@moontra/moonui 6.22.0 → 6.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/moonui.css +1 -1
- package/dist/cdn/moonui.esm.js +2 -2
- package/dist/cdn/moonui.global.js +2 -2
- package/dist/index.js +31 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/issue-544-kontrast.test.tsx +601 -0
- package/src/components/ui/__tests__/badge.test.tsx +5 -1
- package/src/components/ui/__tests__/switch-variant-contrast.test.tsx +26 -2
- package/src/components/ui/badge.tsx +19 -3
- package/src/components/ui/button.tsx +12 -3
- package/src/components/ui/input.stories.tsx +6 -2
- package/tailwind-preset.js +60 -1
package/dist/cdn/moonui.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** @license MoonUI v6.
|
|
1
|
+
/** @license MoonUI v6.24.0 — MIT — https://moonui.dev
|
|
2
2
|
* CDN build (ESM — sayfada importmap gerektirir). React bundle'a DAHIL DEGILDIR — sayfadan gelir.
|
|
3
3
|
* Stil icin moonui.css de yuklenmelidir.
|
|
4
4
|
*/
|
|
5
|
-
var Qk=Object.create;var $l=Object.defineProperty;var Jk=Object.getOwnPropertyDescriptor;var eE=Object.getOwnPropertyNames;var tE=Object.getPrototypeOf,oE=Object.prototype.hasOwnProperty;var rE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var aE=(e,t)=>()=>(e&&(t=e(e=0)),t);var fv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nE=(e,t)=>{for(var o in t)$l(e,o,{get:t[o],enumerable:!0})},pv=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eE(t))!oE.call(e,a)&&a!==o&&$l(e,a,{get:()=>t[a],enumerable:!(r=Jk(t,a))||r.enumerable});return e};var sE=(e,t,o)=>(o=e!=null?Qk(tE(e)):{},pv(t||!e||!e.__esModule?$l(o,"default",{value:e,enumerable:!0}):o,e)),iE=e=>pv($l({},"__esModule",{value:!0}),e);var B={};nE(B,{Children:()=>Ie,Component:()=>Rs,Fragment:()=>Je,Profiler:()=>lE,PureComponent:()=>uE,StrictMode:()=>cE,Suspense:()=>dE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>fE,act:()=>pE,cloneElement:()=>Fe,createContext:()=>ce,createElement:()=>me,createFactory:()=>mE,createRef:()=>gE,default:()=>Pe,forwardRef:()=>C,isValidElement:()=>Ee,lazy:()=>hE,memo:()=>Zd,startTransition:()=>vE,unstable_act:()=>xE,useCallback:()=>H,useContext:()=>ae,useDebugValue:()=>yE,useDeferredValue:()=>bE,useEffect:()=>D,useId:()=>qe,useImperativeHandle:()=>ta,useInsertionEffect:()=>Is,useLayoutEffect:()=>ct,useMemo:()=>Z,useReducer:()=>Gt,useRef:()=>E,useState:()=>k,useSyncExternalStore:()=>Qd,useTransition:()=>CE,version:()=>wE});import*as oe from"react";var Ie,Rs,Je,lE,uE,cE,dE,fE,pE,Fe,ce,me,mE,gE,C,Ee,hE,Zd,vE,xE,H,ae,yE,bE,D,qe,ta,Is,ct,Z,Gt,E,k,Qd,CE,wE,Pe,N=aE(()=>{Ie=oe.Children,Rs=oe.Component,Je=oe.Fragment,lE=oe.Profiler,uE=oe.PureComponent,cE=oe.StrictMode,dE=oe.Suspense,fE=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pE=oe.act,Fe=oe.cloneElement,ce=oe.createContext,me=oe.createElement,mE=oe.createFactory,gE=oe.createRef,C=oe.forwardRef,Ee=oe.isValidElement,hE=oe.lazy,Zd=oe.memo,vE=oe.startTransition,xE=oe.unstable_act,H=oe.useCallback,ae=oe.useContext,yE=oe.useDebugValue,bE=oe.useDeferredValue,D=oe.useEffect,qe=oe.useId,ta=oe.useImperativeHandle,Is=oe.useInsertionEffect,ct=oe.useLayoutEffect,Z=oe.useMemo,Gt=oe.useReducer,E=oe.useRef,k=oe.useState,Qd=oe.useSyncExternalStore,CE=oe.useTransition,wE=oe.version,Pe=oe.default!==void 0?oe.default:oe});var ix=fv(sx=>{"use strict";var un=(N(),iE(B));function OD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FD=typeof Object.is=="function"?Object.is:OD,_D=un.useState,VD=un.useEffect,BD=un.useLayoutEffect,HD=un.useDebugValue;function UD(e,t){var o=t(),r=_D({inst:{value:o,getSnapshot:t}}),a=r[0].inst,n=r[1];return BD(function(){a.value=o,a.getSnapshot=t,mf(a)&&n({inst:a})},[e,o,t]),VD(function(){return mf(a)&&n({inst:a}),e(function(){mf(a)&&n({inst:a})})},[e]),HD(o),o}function mf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!FD(e,o)}catch{return!0}}function GD(e,t){return t()}var zD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?GD:UD;sx.useSyncExternalStore=un.useSyncExternalStore!==void 0?un.useSyncExternalStore:zD});var ux=fv((D$,lx)=>{"use strict";lx.exports=ix()});N();N();N();import*as oa from"react/jsx-runtime";var Ve=oa.Fragment,d=oa.jsx,P=oa.jsxs;function mv(e,t){let o=ce(t),r=n=>{let{children:s,...i}=n,l=Z(()=>i,Object.values(i));return d(o.Provider,{value:l,children:s})};r.displayName=e+"Provider";function a(n){let s=ae(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[r,a]}function ke(e,t=[]){let o=[];function r(n,s){let i=ce(s),l=o.length;o=[...o,s];let u=f=>{let{scope:p,children:m,...h}=f,g=p?.[e]?.[l]||i,v=Z(()=>h,Object.values(h));return d(g.Provider,{value:v,children:m})};u.displayName=n+"Provider";function c(f,p){let m=p?.[e]?.[l]||i,h=ae(m);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[u,c]}let a=()=>{let n=o.map(s=>ce(s));return function(i){let l=i?.[e]||n;return Z(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return a.scopeName=e,[r,SE(a,...t)]}function SE(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let f=l(n)[`__scope${u}`];return{...i,...f}},{});return Z(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}N();N();function gv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nt(...e){return t=>{let o=!1,r=e.map(a=>{let n=gv(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():gv(e[a],null)}}}}function pe(...e){return H(Nt(...e),e)}N();function It(e){let t=RE(e),o=C((r,a)=>{let{children:n,...s}=r,i=Ie.toArray(n),l=i.find(IE);if(l){let u=l.props.children,c=i.map(f=>f===l?Ie.count(u)>1?Ie.only(null):Ee(u)?u.props.children:null:f);return d(t,{...s,ref:a,children:Ee(u)?Fe(u,void 0,c):null})}return d(t,{...s,ref:a,children:n})});return o.displayName=`${e}.Slot`,o}var jl=It("Slot");function RE(e){let t=C((o,r)=>{let{children:a,...n}=o;if(Ee(a)){let s=LE(a),i=PE(n,a.props);return a.type!==Je&&(i.ref=r?Nt(r,s):s),Fe(a,i)}return Ie.count(a)>1?Ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hv=Symbol("radix.slottable");function vv(e){let t=({children:o})=>d(Ve,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=hv,t}function IE(e){return Ee(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hv}function PE(e,t){let o={...t};for(let r in t){let a=e[r],n=t[r];/^on[A-Z]/.test(r)?a&&n?o[r]=(...i)=>{let l=n(...i);return a(...i),l}:a&&(o[r]=a):r==="style"?o[r]={...a,...n}:r==="className"&&(o[r]=[a,n].filter(Boolean).join(" "))}return{...e,...o}}function LE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}N();function Lo(e){let t=e+"CollectionProvider",[o,r]=ke(t),[a,n]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:x}=g,y=Pe.useRef(null),b=Pe.useRef(new Map).current;return d(a,{scope:v,itemMap:b,collectionRef:y,children:x})};s.displayName=t;let i=e+"CollectionSlot",l=It(i),u=Pe.forwardRef((g,v)=>{let{scope:x,children:y}=g,b=n(i,x),R=pe(v,b.collectionRef);return d(l,{ref:R,children:y})});u.displayName=i;let c=e+"CollectionItemSlot",f="data-radix-collection-item",p=It(c),m=Pe.forwardRef((g,v)=>{let{scope:x,children:y,...b}=g,R=Pe.useRef(null),w=pe(v,R),I=n(c,x);return Pe.useEffect(()=>(I.itemMap.set(R,{ref:R,...b}),()=>void I.itemMap.delete(R))),d(p,{[f]:"",ref:w,children:y})});m.displayName=c;function h(g){let v=n(e+"CollectionConsumer",g);return Pe.useCallback(()=>{let y=v.collectionRef.current;if(!y)return[];let b=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((I,S)=>b.indexOf(I.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,r]}var l5=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:o=!0}={}){return function(a){if(e?.(a),o===!1||!a.defaultPrevented)return t?.(a)}}N();N();var Ae=globalThis?.document?ct:()=>{};N();var TE=B[" useInsertionEffect ".trim().toString()]||Ae;function Be({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[a,n,s]=ME({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:a;{let c=E(e!==void 0);D(()=>{let f=c.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=i},[i,r])}let u=H(c=>{if(i){let f=kE(c)?c(e):c;f!==e&&s.current?.(f)}else n(c)},[i,e,n,s]);return[l,u]}function ME({defaultProp:e,onChange:t}){let[o,r]=k(e),a=E(o),n=E(t);return TE(()=>{n.current=t},[t]),D(()=>{a.current!==o&&(n.current?.(o),a.current=o)},[o,a]),[o,r,n]}function kE(e){return typeof e=="function"}var f5=Symbol("RADIX:SYNC_STATE");N();import*as st from"react-dom";var Ps=st.createPortal;var Uo=st.flushSync;var xv=st.default!==void 0?st.default:st;var EE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=EE.reduce((e,t)=>{let o=It(`Primitive.${t}`),r=C((a,n)=>{let{asChild:s,...i}=a,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ya(e,t){e&&Uo(()=>e.dispatchEvent(t))}N();N();N();function AE(e,t){return Gt((o,r)=>t[o][r]??o,e)}var $e=e=>{let{present:t,children:o}=e,r=DE(t),a=typeof o=="function"?o({present:r.isPresent}):Ie.only(o),n=pe(r.ref,NE(a));return typeof o=="function"||r.isPresent?Fe(a,{ref:n}):null};$e.displayName="Presence";function DE(e){let[t,o]=k(),r=E(null),a=E(e),n=E("none"),s=e?"mounted":"unmounted",[i,l]=AE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D(()=>{let u=Kl(r.current);n.current=i==="mounted"?u:"none"},[i]),Ae(()=>{let u=r.current,c=a.current;if(c!==e){let p=n.current,m=Kl(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&p!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),Ae(()=>{if(t){let u,c=t.ownerDocument.defaultView??window,f=m=>{let g=Kl(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!a.current)){let v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(n.current=Kl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:H(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Kl(e){return e?.animationName||"none"}function NE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}N();var OE=B[" useId ".trim().toString()]||(()=>{}),FE=0;function Le(e){let[t,o]=k(OE());return Ae(()=>{e||o(r=>r??String(FE++))},[e]),e||(t?`radix-${t}`:"")}var Xl="Collapsible",[_E,Jd]=ke(Xl),[VE,ef]=_E(Xl),yv=C((e,t)=>{let{__scopeCollapsible:o,open:r,defaultOpen:a,disabled:n,onOpenChange:s,...i}=e,[l,u]=Be({prop:r,defaultProp:a??!1,onChange:s,caller:Xl});return d(VE,{scope:o,disabled:n,contentId:Le(),open:l,onOpenToggle:H(()=>u(c=>!c),[u]),children:d(Y.div,{"data-state":of(l),"data-disabled":n?"":void 0,...i,ref:t})})});yv.displayName=Xl;var bv="CollapsibleTrigger",Cv=C((e,t)=>{let{__scopeCollapsible:o,...r}=e,a=ef(bv,o);return d(Y.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":of(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:X(e.onClick,a.onOpenToggle)})});Cv.displayName=bv;var tf="CollapsibleContent",wv=C((e,t)=>{let{forceMount:o,...r}=e,a=ef(tf,e.__scopeCollapsible);return d($e,{present:o||a.open,children:({present:n})=>d(BE,{...r,ref:t,present:n})})});wv.displayName=tf;var BE=C((e,t)=>{let{__scopeCollapsible:o,present:r,children:a,...n}=e,s=ef(tf,o),[i,l]=k(r),u=E(null),c=pe(t,u),f=E(0),p=f.current,m=E(0),h=m.current,g=s.open||i,v=E(g),x=E(void 0);return D(()=>{let y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),Ae(()=>{let y=u.current;if(y){x.current=x.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";let b=y.getBoundingClientRect();f.current=b.height,m.current=b.width,v.current||(y.style.transitionDuration=x.current.transitionDuration,y.style.animationName=x.current.animationName),l(r)}},[s.open,r]),d(Y.div,{"data-state":of(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...n,ref:c,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&a})});function of(e){return e?"open":"closed"}var Yl=yv,Za=Cv,Ls=wv;N();var HE=ce(void 0);function To(e){let t=ae(HE);return e||t||"ltr"}var ao="Accordion",UE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[af,GE,zE]=Lo(ao),[Ql,W5]=ke(ao,[zE,Jd]),nf=Jd(),Rv=Pe.forwardRef((e,t)=>{let{type:o,...r}=e,a=r,n=r;return d(af.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?d(jE,{...n,ref:t}):d($E,{...a,ref:t})})});Rv.displayName=ao;var[Iv,WE]=Ql(ao),[Pv,qE]=Ql(ao,{collapsible:!1}),$E=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},collapsible:n=!1,...s}=e,[i,l]=Be({prop:o,defaultProp:r??"",onChange:a,caller:ao});return d(Iv,{scope:e.__scopeAccordion,value:Pe.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:Pe.useCallback(()=>n&&l(""),[n,l]),children:d(Pv,{scope:e.__scopeAccordion,collapsible:n,children:d(Lv,{...s,ref:t})})})}),jE=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},...n}=e,[s,i]=Be({prop:o,defaultProp:r??[],onChange:a,caller:ao}),l=Pe.useCallback(c=>i((f=[])=>[...f,c]),[i]),u=Pe.useCallback(c=>i((f=[])=>f.filter(p=>p!==c)),[i]);return d(Iv,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:d(Pv,{scope:e.__scopeAccordion,collapsible:!0,children:d(Lv,{...n,ref:t})})})}),[KE,Jl]=Ql(ao),Lv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,disabled:r,dir:a,orientation:n="vertical",...s}=e,i=Pe.useRef(null),l=pe(i,t),u=GE(o),f=To(a)==="ltr",p=X(e.onKeyDown,m=>{if(!UE.includes(m.key))return;let h=m.target,g=u().filter(T=>!T.ref.current?.disabled),v=g.findIndex(T=>T.ref.current===h),x=g.length;if(v===-1)return;m.preventDefault();let y=v,b=0,R=x-1,w=()=>{y=v+1,y>R&&(y=b)},I=()=>{y=v-1,y<b&&(y=R)};switch(m.key){case"Home":y=b;break;case"End":y=R;break;case"ArrowRight":n==="horizontal"&&(f?w():I());break;case"ArrowDown":n==="vertical"&&w();break;case"ArrowLeft":n==="horizontal"&&(f?I():w());break;case"ArrowUp":n==="vertical"&&I();break}let S=y%x;g[S].ref.current?.focus()});return d(KE,{scope:o,disabled:r,direction:a,orientation:n,children:d(af.Slot,{scope:o,children:d(Y.div,{...s,"data-orientation":n,ref:l,onKeyDown:r?void 0:p})})})}),Zl="AccordionItem",[XE,sf]=Ql(Zl),Tv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,value:r,...a}=e,n=Jl(Zl,o),s=WE(Zl,o),i=nf(o),l=Le(),u=r&&s.value.includes(r)||!1,c=n.disabled||e.disabled;return d(XE,{scope:o,open:u,disabled:c,triggerId:l,children:d(Yl,{"data-orientation":n.orientation,"data-state":Nv(u),...i,...a,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Tv.displayName=Zl;var Mv="AccordionHeader",kv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=Jl(ao,o),n=sf(Mv,o);return d(Y.h3,{"data-orientation":a.orientation,"data-state":Nv(n.open),"data-disabled":n.disabled?"":void 0,...r,ref:t})});kv.displayName=Mv;var rf="AccordionTrigger",Ev=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=Jl(ao,o),n=sf(rf,o),s=qE(rf,o),i=nf(o);return d(af.ItemSlot,{scope:o,children:d(Za,{"aria-disabled":n.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:n.triggerId,...i,...r,ref:t})})});Ev.displayName=rf;var Av="AccordionContent",Dv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=Jl(ao,o),n=sf(Av,o),s=nf(o);return d(Ls,{role:"region","aria-labelledby":n.triggerId,"data-orientation":a.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Dv.displayName=Av;function Nv(e){return e?"open":"closed"}var Ov=Rv,Fv=Tv,_v=kv,lf=Ev,uf=Dv;N();var Vv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZE=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase()),cf=e=>{let t=ZE(e);return t.charAt(0).toUpperCase()+t.slice(1)},eu=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim(),Bv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};N();var Hv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Uv=C(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:a="",children:n,iconNode:s,...i},l)=>me("svg",{ref:l,...Hv,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:eu("lucide",a),...!n&&!Bv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,c])=>me(u,c)),...Array.isArray(n)?n:[n]]));var j=(e,t)=>{let o=C(({className:r,...a},n)=>me(Uv,{ref:n,iconNode:t,className:eu(`lucide-${Vv(cf(e))}`,`lucide-${e}`,r),...a}));return o.displayName=cf(e),o};var QE=[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ts=j("align-center",QE);var JE=[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]],Ms=j("align-justify",JE);var eA=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],ks=j("align-left",eA);var tA=[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Es=j("align-right",tA);var oA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Qa=j("arrow-down",oA);var rA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],As=j("arrow-left",rA);var aA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ds=j("arrow-right",aA);var nA=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Ja=j("arrow-up-down",nA);var sA=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],en=j("arrow-up",sA);var iA=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Ns=j("bold",iA);var lA=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],aa=j("calendar",lA);var uA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pt=j("check",uA);var cA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mo=j("chevron-down",cA);var dA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],no=j("chevron-left",dA);var fA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wt=j("chevron-right",fA);var pA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Os=j("chevron-up",pA);var mA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],so=j("circle-alert",mA);var gA=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hr=j("circle-check-big",gA);var hA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],na=j("circle",hA);var vA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fs=j("clock",vA);var xA=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],_s=j("code",xA);var yA=[["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"}]],Vs=j("copy",yA);var bA=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Bs=j("credit-card",bA);var CA=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],tn=j("crown",CA);var wA=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Hs=j("dot",wA);var SA=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ko=j("ellipsis",SA);var RA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Us=j("external-link",RA);var IA=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sa=j("eye",IA);var PA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Gs=j("file-text",PA);var LA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],zs=j("file",LA);var TA=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],Ws=j("git-fork",TA);var MA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ia=j("image",MA);var kA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],on=j("info",kA);var EA=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],qs=j("italic",EA);var AA=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],$s=j("link",AA);var DA=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],js=j("list-ordered",DA);var NA=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Ks=j("list",NA);var OA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ot=j("loader-circle",OA);var FA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],rn=j("lock",FA);var _A=[["path",{d:"M5 12h14",key:"1ays0h"}]],Xs=j("minus",_A);var VA=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Ys=j("music",VA);var BA=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],an=j("palette",BA);var HA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Zs=j("phone",HA);var UA=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],tu=j("pipette",UA);var GA=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Qs=j("quote",GA);var zA=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],Js=j("redo",zA);var WA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],la=j("search",WA);var qA=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Pt=j("square-pen",qA);var $A=[["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"}]],vr=j("star",$A);var jA=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],ei=j("strikethrough",jA);var KA=[["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"}]],xr=j("triangle-alert",KA);var XA=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],ti=j("underline",XA);var YA=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],oi=j("undo",YA);var ZA=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ri=j("upload",ZA);var QA=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],ai=j("video",QA);var JA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ot=j("x",JA);var eD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],nn=j("zap",eD);N();function Gv(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Gv(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function ou(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Gv(e))&&(r&&(r+=" "),r+=t);return r}var pf="-",tD=e=>{let t=rD(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(pf);return i[0]===""&&i.length!==1&&i.shift(),qv(i,t)||oD(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},qv=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?qv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(pf);return t.validators.find(({validator:s})=>s(n))?.classGroupId},zv=/^\[(.+)\]$/,oD=e=>{if(zv.test(e)){let t=zv.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},rD=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return nD(Object.entries(e.classGroups),o).forEach(([n,s])=>{ff(s,r,n,t)}),r},ff=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Wv(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(aD(a)){ff(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,s])=>{ff(s,Wv(t,n),o,r)})})},Wv=(e,t)=>{let o=e;return t.split(pf).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},aD=e=>e.isThemeGetter,nD=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[o,a]}):e,sD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,s)=>{o.set(n,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return a(n,s),s},set(n,s){o.has(n)?o.set(n,s):a(n,s)}}},$v="!",iD=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,s=i=>{let l=[],u=0,c=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(u===0){if(x===a&&(r||i.slice(v,v+n)===t)){l.push(i.slice(c,v)),c=v+n;continue}if(x==="/"){f=v;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(c),m=p.startsWith($v),h=m?p.substring(1):p,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},lD=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},uD=e=>({cache:sD(e.cacheSize),parseClassName:iD(e),...tD(e)}),cD=/\s+/,dD=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],s=e.trim().split(cD),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(u),h=!!m,g=r(h?p.substring(0,m):p);if(!g){if(!h){i=u+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=u+(i.length>0?" "+i:i);continue}h=!1}let v=lD(c).join(":"),x=f?v+$v:v,y=x+g;if(n.includes(y))continue;n.push(y);let b=a(g,h);for(let R=0;R<b.length;++R){let w=b[R];n.push(x+w)}i=u+(i.length>0?" "+i:i)}return i};function fD(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jv(t))&&(r&&(r+=" "),r+=o);return r}var jv=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=jv(e[r]))&&(o&&(o+=" "),o+=t);return o};function pD(e,...t){let o,r,a,n=s;function s(l){let u=t.reduce((c,f)=>f(c),e());return o=uD(u),r=o.cache.get,a=o.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let c=dD(l,o);return a(l,c),c}return function(){return n(fD.apply(null,arguments))}}var Ge=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Kv=/^\[(?:([a-z-]+):)?(.+)\]$/i,mD=/^\d+\/\d+$/,gD=new Set(["px","full","screen"]),hD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Go=e=>sn(e)||gD.has(e)||mD.test(e),yr=e=>ln(e,"length",TD),sn=e=>!!e&&!Number.isNaN(Number(e)),df=e=>ln(e,"number",sn),ni=e=>!!e&&Number.isInteger(Number(e)),CD=e=>e.endsWith("%")&&sn(e.slice(0,-1)),Ce=e=>Kv.test(e),br=e=>hD.test(e),wD=new Set(["length","size","percentage"]),SD=e=>ln(e,wD,Xv),RD=e=>ln(e,"position",Xv),ID=new Set(["image","url"]),PD=e=>ln(e,ID,kD),LD=e=>ln(e,"",MD),si=()=>!0,ln=(e,t,o)=>{let r=Kv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},TD=e=>vD.test(e)&&!xD.test(e),Xv=()=>!1,MD=e=>yD.test(e),kD=e=>bD.test(e);var ED=()=>{let e=Ge("colors"),t=Ge("spacing"),o=Ge("blur"),r=Ge("brightness"),a=Ge("borderColor"),n=Ge("borderRadius"),s=Ge("borderSpacing"),i=Ge("borderWidth"),l=Ge("contrast"),u=Ge("grayscale"),c=Ge("hueRotate"),f=Ge("invert"),p=Ge("gap"),m=Ge("gradientColorStops"),h=Ge("gradientColorStopPositions"),g=Ge("inset"),v=Ge("margin"),x=Ge("opacity"),y=Ge("padding"),b=Ge("saturate"),R=Ge("scale"),w=Ge("sepia"),I=Ge("skew"),S=Ge("space"),T=Ge("translate"),M=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Ce,t],V=()=>[Ce,t],q=()=>["",Go,yr],F=()=>["auto",sn,Ce],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",Ce],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[sn,Ce];return{cacheSize:500,separator:":",theme:{colors:[si],spacing:[Go,yr],blur:["none","",br,Ce],brightness:le(),borderColor:[e],borderRadius:["none","","full",br,Ce],borderSpacing:V(),borderWidth:q(),contrast:le(),grayscale:_(),hueRotate:le(),invert:_(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[CD,yr],inset:O(),margin:O(),opacity:le(),padding:V(),saturate:le(),scale:le(),sepia:_(),skew:le(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),Ce]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ni,Ce]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",ni,Ce]}],"grid-cols":[{"grid-cols":[si]}],"col-start-end":[{col:["auto",{span:["full",ni,Ce]},Ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[si]}],"row-start-end":[{row:["auto",{span:[ni,Ce]},Ce]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",df]}],"font-family":[{font:[si]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",sn,df]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Go,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Go,yr]}],"underline-offset":[{"underline-offset":["auto",Go,Ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),RD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},PD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:U()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Go,Ce]}],"outline-w":[{outline:[Go,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Go,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,LD]}],"shadow-color":[{shadow:[si]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,Ce]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ni,Ce]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Go,yr,df]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Yv=pD(ED);function L(...e){return Yv(ou(e))}function ii(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(ii).filter(Boolean).join(" ").trim();if(Ee(e)){let t=e.props;return ii(t.children)}return""}var AD=Ov,Zv=C(({className:e,...t},o)=>d(Fv,{ref:o,className:L("moonui-theme","border-b border-gray-200 dark:border-gray-800",e),...t}));Zv.displayName="AccordionItem";var Qv=C(({className:e,children:t,...o},r)=>d(_v,{className:"flex",children:P(lf,{ref:r,className:L("flex flex-1 items-center justify-between py-4 font-medium transition-all dark:text-gray-100","hover:underline hover:text-primary","[&[data-state=open]>svg]:rotate-180",e),...o,children:[t,d(Mo,{className:"h-4 w-4 shrink-0 transition-transform duration-200 opacity-70 group-hover:opacity-100"})]})}));Qv.displayName=lf.displayName;var Jv=C(({className:e,children:t,...o},r)=>d(uf,{ref:r,className:L("overflow-hidden text-sm text-gray-700 dark:text-gray-300 transition-all","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:d("div",{className:"pb-4 pt-0",children:t})}));Jv.displayName=uf.displayName;N();var ex=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tx=ou,Q=(e,t)=>o=>{var r;if(t?.variants==null)return tx(e,o?.class,o?.className);let{variants:a,defaultVariants:n}=t,s=Object.keys(a).map(u=>{let c=o?.[u],f=n?.[u];if(c===null)return null;let p=ex(c)||ex(f);return a[u][p]}),i=o&&Object.entries(o).reduce((u,c)=>{let[f,p]=c;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:p,...m}=c;return Object.entries(m).every(h=>{let[g,v]=h;return Array.isArray(v)?v.includes({...n,...i}[g]):{...n,...i}[g]===v})?[...u,f,p]:u},[]);return tx(e,s,l,o?.class,o?.className)};var DD=Q("relative w-full flex items-center gap-3 p-4 border text-foreground [&>svg]:shrink-0",{variants:{variant:{default:"bg-background text-foreground border-border",primary:"bg-primary/10 text-primary border-primary/30",success:"bg-success/10 text-success border-success/30",warning:"bg-warning/10 text-warning border-warning/30",error:"bg-destructive/10 text-destructive border-destructive/30",info:"bg-info/10 text-info border-info/30"},size:{sm:"py-2 text-xs",md:"py-3 text-sm",lg:"py-4 text-base",default:"py-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",default:"rounded-md",lg:"rounded-lg",full:"rounded-full"},withClose:{true:"pr-10"}},defaultVariants:{variant:"default",size:"md",radius:"default",withClose:!1}}),ox=C(({className:e,variant:t="default",size:o,radius:r,hideIcon:a=!1,closable:n=!1,onClose:s,children:i,...l},u)=>{let c=Z(()=>{switch(t){case"success":return pt;case"warning":return xr;case"error":return so;case"info":return on;default:return on}},[t]);return P("div",{ref:u,role:"alert",className:L("moonui-theme",DD({variant:t,size:o,radius:r,withClose:n}),e),...l,children:[!a&&d(c,{className:"h-5 w-5"}),d("div",{className:"flex-1",children:i}),n&&s&&d("button",{onClick:s,className:"absolute right-3 top-3 inline-flex h-6 w-6 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100","aria-label":"Close alert",children:d(Ot,{className:"h-4 w-4"})})]})});ox.displayName="Alert";var rx=C(({className:e,as:t="div",...o},r)=>d(t,{ref:r,className:L("moonui-theme","font-semibold leading-tight tracking-tight mb-1",e),...o}));rx.displayName="AlertTitle";var ax=C(({className:e,...t},o)=>d("div",{ref:o,className:L("moonui-theme","text-sm leading-5 text-muted-foreground",e),...t}));ax.displayName="AlertDescription";N();var ND=Q("relative overflow-hidden",{variants:{variant:{default:"bg-muted/10",ghost:"bg-transparent",outline:"border border-border",card:"bg-card shadow-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"default",radius:"md"}}),nx=C(({className:e,variant:t,radius:o,ratio:r=16/9,style:a,children:n,...s},i)=>d("div",{ref:i,className:L("moonui-theme",ND({variant:t,radius:o}),e),style:{position:"relative",paddingBottom:`${1/r*100}%`,...a},...s,children:d("div",{className:"absolute inset-0",children:n})}));nx.displayName="AspectRatio";N();N();N();function ze(e){let t=E(e);return D(()=>{t.current=e}),Z(()=>(...o)=>t.current?.(...o),[])}var cx=sE(ux(),1);function dx(){return(0,cx.useSyncExternalStore)(WD,()=>!0,()=>!1)}function WD(){return()=>{}}var gf="Avatar",[qD,U$]=ke(gf),[$D,px]=qD(gf),mx=C((e,t)=>{let{__scopeAvatar:o,...r}=e,[a,n]=k("idle");return d($D,{scope:o,imageLoadingStatus:a,onImageLoadingStatusChange:n,children:d(Y.span,{...r,ref:t})})});mx.displayName=gf;var gx="AvatarImage",hx=C((e,t)=>{let{__scopeAvatar:o,src:r,onLoadingStatusChange:a=()=>{},...n}=e,s=px(gx,o),i=jD(r,n),l=ze(u=>{a(u),s.onImageLoadingStatusChange(u)});return Ae(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?d(Y.img,{...n,ref:t,src:r}):null});hx.displayName=gx;var vx="AvatarFallback",xx=C((e,t)=>{let{__scopeAvatar:o,delayMs:r,...a}=e,n=px(vx,o),[s,i]=k(r===void 0);return D(()=>{if(r!==void 0){let l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&n.imageLoadingStatus!=="loaded"?d(Y.span,{...a,ref:t}):null});xx.displayName=vx;function fx(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function jD(e,{referrerPolicy:t,crossOrigin:o}){let r=dx(),a=E(null),n=(()=>r?(a.current||(a.current=new window.Image),a.current):null)(),[s,i]=k(()=>fx(n,e));return Ae(()=>{i(fx(n,e))},[n,e]),Ae(()=>{let l=f=>()=>{i(f)};if(!n)return;let u=l("loaded"),c=l("error");return n.addEventListener("load",u),n.addEventListener("error",c),t&&(n.referrerPolicy=t),typeof o=="string"&&(n.crossOrigin=o),()=>{n.removeEventListener("load",u),n.removeEventListener("error",c)}},[n,o,t]),s}var hf=mx,vf=hx,xf=xx;var XD=Q("relative flex shrink-0 overflow-hidden",{variants:{size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16","2xl":"h-20 w-20",default:"h-10 w-10"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",full:"rounded-full",none:"rounded-none"},variant:{default:"",ring:"ring-2 ring-border",ringOffset:"ring-2 ring-border ring-offset-2 ring-offset-background",border:"border-2 border-border"}},defaultVariants:{size:"md",radius:"default",variant:"default"}}),yf=C(({className:e,size:t,radius:o,variant:r,...a},n)=>d(hf,{ref:n,className:L("moonui-theme",XD({size:t,radius:o,variant:r}),e),...a}));yf.displayName=hf.displayName;var yx=C(({className:e,alt:t="",...o},r)=>d(vf,{ref:r,alt:t,className:L("moonui-theme","aspect-square h-full w-full",e),...o}));yx.displayName=vf.displayName;var bf=C(({className:e,...t},o)=>d(xf,{ref:o,className:L("flex h-full w-full items-center justify-center bg-muted",e),...t}));bf.displayName=xf.displayName;var bx=C(({className:e,max:t,children:o,overlapOffset:r=-8,...a},n)=>{let s=Ie.toArray(o),i=t?s.slice(0,t):s,l=t?Math.max(0,s.length-t):0;return d("div",{ref:n,className:L("moonui-theme","flex items-center",e),...a,children:P("div",{className:"flex",children:[i.map((u,c)=>d("div",{className:"relative",style:{marginLeft:c===0?0:`${r}px`,zIndex:i.length-c},children:u},c)),l>0&&d("div",{className:"relative z-0",style:{marginLeft:`${r}px`},children:d(yf,{variant:"border",children:P(bf,{children:["+",l]})})})]})})});bx.displayName="AvatarGroup";N();var Cx=Q(["inline-flex items-center justify-center gap-1.5","font-medium transition-colors duration-200","border focus:outline-none","focus-visible:ring-2 focus-visible:ring-offset-1","mr-2 mb-2 last:mr-0"],{variants:{variant:{primary:["border-transparent bg-primary text-primary-foreground","hover:bg-primary/90","focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40","dark:bg-primary/90 dark:shadow-inner dark:shadow-primary/10"],secondary:["border-transparent bg-secondary text-secondary-foreground","hover:bg-gray-200 dark:hover:bg-gray-600","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:bg-gray-700/50 dark:text-gray-50 dark:shadow-inner dark:shadow-gray-950/10"],outline:["border-gray-200 dark:border-gray-600","bg-transparent text-foreground","hover:border-gray-300 dark:hover:border-gray-500","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:text-gray-100 dark:bg-transparent dark:backdrop-blur-sm"],destructive:["border-transparent bg-error text-white","hover:bg-error/90 dark:hover:bg-error/80","focus-visible:ring-error/30 dark:focus-visible:ring-error/25","dark:bg-error/90 dark:text-white dark:shadow-inner dark:shadow-error/10"],success:["border-transparent bg-success text-success-foreground","hover:bg-success/90 dark:hover:bg-success/80","focus-visible:ring-success/30 dark:focus-visible:ring-success/25","dark:bg-success/90 dark:text-success-foreground dark:shadow-inner dark:shadow-success/10"],warning:["border-transparent bg-warning text-warning-foreground","hover:bg-warning/90 dark:hover:bg-warning/80","focus-visible:ring-warning/30 dark:focus-visible:ring-warning/25","dark:bg-warning/90 dark:text-warning-foreground dark:shadow-inner dark:shadow-warning/10"],ghost:["border border-gray-200 bg-gray-50/50 text-gray-700","hover:bg-gray-100 dark:hover:bg-gray-800/60","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:border-gray-700 dark:bg-gray-800/30 dark:text-gray-300","transition-all duration-200"],pro:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"],admin:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"]},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-3 text-sm",lg:"h-8 px-4 text-base"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",none:"rounded-none"}},defaultVariants:{variant:"primary",size:"md",radius:"default"}}),Lt=C(({className:e,variant:t,size:o,radius:r,withDot:a,dotColor:n,removable:s,onRemove:i,removeLabel:l,leftIcon:u,rightIcon:c,noAutoSpacing:f,children:p,...m},h)=>{let g=u,v=p;return t==="pro"&&(g=u||P("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:[d("path",{d:"M12 0L13.09 8.26L22 9L13.09 9.74L12 18L10.91 9.74L2 9L10.91 8.26L12 0Z",fill:"currentColor"}),d("path",{d:"M19 5L19.5 7L21 7.5L19.5 8L19 10L18.5 8L17 7.5L18.5 7L19 5Z",fill:"currentColor"}),d("path",{d:"M19 15L19.5 17L21 17.5L19.5 18L19 20L18.5 18L17 17.5L18.5 17L19 15Z",fill:"currentColor"})]}),v=p||"Pro"),t==="admin"&&(g=u||d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:d("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"currentColor"})}),v=p||"Admin Pro"),P("div",{ref:h,className:L("moonui-theme",Cx({variant:t,size:o,radius:r}),f&&"mr-0 mb-0",e),"data-removable":s?"":void 0,...m,children:[a&&d("span",{className:L("h-2 w-2 rounded-full",n||(t==="destructive"||t==="success"||t==="warning"?"bg-white":t==="secondary"?"bg-secondary-foreground":t==="outline"||t==="ghost"?"bg-foreground":t==="pro"||t==="admin"?"bg-white":"bg-primary-foreground")),"aria-hidden":"true"}),g&&d("span",{className:"inline-flex shrink-0 items-center",children:g}),d("span",{className:"inline-flex items-center",children:v}),c&&d("span",{className:"inline-flex shrink-0 items-center",children:c}),s&&i&&d("button",{type:"button",className:"ml-1 -mr-1 h-3.5 w-3.5 rounded-full inline-flex items-center justify-center hover:bg-black/10 dark:hover:bg-white/10",onClick:x=>{x.stopPropagation(),i()},"aria-label":l||(ii(v)?`Remove ${ii(v)}`:"Remove badge"),children:d("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"opacity-70","aria-hidden":"true",children:d("path",{d:"M0.799988 7.19999L7.19999 0.799988M0.799988 0.799988L7.19999 7.19999",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Lt.displayName="Badge";N();var YD=Q("flex items-center gap-1.5 text-sm",{variants:{variant:{default:"text-foreground transition-colors",muted:"text-muted-foreground transition-colors",ghost:"text-foreground/60 transition-colors"},size:{md:"text-sm",sm:"text-xs",lg:"text-base",default:"text-sm"}},defaultVariants:{variant:"default",size:"md"}}),wx=ce(void 0),Sx=C(({className:e,variant:t,size:o,separator:r,showHomeIcon:a,...n},s)=>d(wx.Provider,{value:r,children:d("nav",{ref:s,className:L("moonui-theme",YD({variant:t,size:o}),e),"aria-label":"breadcrumb",...n})}));Sx.displayName="Breadcrumb";var Rx=C(({className:e,collapsed:t,collapsedWidth:o=3,...r},a)=>{let n=Ie.toArray(r.children).filter(Boolean),s=n.length;if(t&&s>o){let i=n[0],l=n.slice(-2);return P("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r,children:[i,d(Cf,{}),l]})}return d("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r})});Rx.displayName="BreadcrumbList";var Ix=C(({className:e,isCurrent:t,href:o,asChild:r=!1,children:a,...n},s)=>{let i=r?jl:o?"a":"span",l=!r&&o?{href:o}:{};return d("li",{ref:s,className:L("moonui-theme","inline-flex items-center gap-1.5",e),...n,children:d(i,{"aria-current":t?"page":void 0,className:L("transition-colors duration-200 hover:text-foreground",t?"font-medium text-foreground":"text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30"),...l,children:a})})});Ix.displayName="BreadcrumbItem";var Px=({children:e,className:t,icon:o,...r})=>{let a=ae(wx);return d("span",{role:"presentation","aria-hidden":"true",className:L("moonui-theme","text-muted-foreground opacity-70",t),...r,children:e||o||a||d(wt,{className:"h-3.5 w-3.5"})})};Px.displayName="BreadcrumbSeparator";var Cf=({className:e,icon:t,...o})=>P("span",{role:"presentation",className:L("moonui-theme","flex items-center text-muted-foreground hover:text-foreground/80 transition-colors duration-200",e),...o,children:[d("span",{"aria-hidden":"true",className:"flex items-center",children:t||d(ko,{className:"h-4 w-4"})}),d("span",{className:"sr-only",children:"More pages"})]});Cf.displayName="BreadcrumbEllipsis";var Lx=C(({className:e,href:t,...o},r)=>d("a",{ref:r,href:t,className:L("transition-colors duration-200 hover:text-foreground text-muted-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30",e),...o}));Lx.displayName="BreadcrumbLink";var Tx=C(({className:e,...t},o)=>d("span",{ref:o,className:L("font-medium text-foreground dark:text-white dark:text-opacity-95",e),...t}));Tx.displayName="BreadcrumbPage";N();var ru=Q(["inline-flex items-center justify-center gap-2 whitespace-nowrap","font-medium relative","transition-all duration-200 ease-out","transform active:scale-[0.98]","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none disabled:transform-none"],{variants:{variant:{primary:["bg-primary text-primary-foreground","dark:bg-primary dark:text-primary-foreground","hover:bg-primary/90 dark:hover:bg-primary/90","active:bg-primary/80 dark:active:bg-primary/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],secondary:["bg-gray-100 text-gray-900","dark:bg-gray-800 dark:text-gray-100","hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600","border border-input","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","shadow-sm hover:shadow-md"],outline:["bg-background text-foreground","dark:bg-background dark:text-foreground","border border-input dark:border-input","hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground","active:bg-accent/80 dark:active:bg-accent/80","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],ghost:["text-gray-700","dark:text-gray-300","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-100","active:bg-gray-200 dark:active:bg-gray-700","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],destructive:["bg-destructive text-destructive-foreground","dark:bg-destructive dark:text-destructive-foreground","hover:bg-destructive/90 dark:hover:bg-destructive/90","active:bg-destructive/80 dark:active:bg-destructive/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],success:["bg-success text-success-foreground","dark:bg-success dark:text-success-foreground","hover:bg-success/90 dark:hover:bg-success/90","active:bg-success/80 dark:active:bg-success/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],link:["text-primary bg-transparent","underline-offset-4 hover:underline","hover:text-primary/80 active:text-primary/70","p-0 h-auto","transition-colors duration-200"],gradient:["bg-gradient-to-r from-purple-500 to-pink-500 text-white","hover:from-purple-600 hover:to-pink-600","active:from-purple-700 active:to-pink-700","shadow-xl shadow-purple-500/40","hover:shadow-2xl hover:shadow-purple-500/50","focus-visible:ring-purple-500/50","transition-all duration-300"],glow:["bg-blue-500 text-white","shadow-[0_0_30px_rgba(59,130,246,0.5)]","hover:shadow-[0_0_40px_rgba(59,130,246,0.7)]","active:shadow-[0_0_20px_rgba(59,130,246,0.4)]","hover:bg-blue-600","focus-visible:ring-blue-500/50","transition-all duration-300"],soft:["bg-primary/10 text-primary","hover:bg-primary/20","active:bg-primary/30","focus-visible:ring-primary/50","dark:bg-primary/20 dark:text-primary-foreground","dark:hover:bg-primary/30 dark:active:bg-primary/40","transition-colors duration-200"],glass:["bg-white/10 backdrop-blur-md text-foreground","border border-white/20","hover:bg-white/20 hover:border-white/30","active:bg-white/30","shadow-lg","focus-visible:ring-white/50","dark:bg-gray-800/10 dark:border-gray-700/20","dark:hover:bg-gray-800/20 dark:hover:border-gray-700/30","transition-all duration-200"],neon:["bg-transparent text-green-400","border-2 border-green-400","hover:bg-green-400 hover:text-gray-900","hover:shadow-[0_0_30px_rgba(74,222,128,0.6)]","active:shadow-[0_0_15px_rgba(74,222,128,0.4)]","focus-visible:ring-green-400/50","transition-all duration-300"]},size:{xs:"h-7 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-base",lg:"h-12 px-6 text-lg",xl:"h-14 px-8 text-xl",icon:"h-10 w-10 p-2","icon-sm":"h-8 w-8 p-1.5","icon-lg":"h-12 w-12 p-3"},rounded:{default:"rounded-xl",full:"rounded-full",none:"rounded-none",sm:"rounded-lg",lg:"rounded-2xl"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md",rounded:"default",fullWidth:!1}}),Te=C(({className:e,variant:t,size:o,rounded:r,fullWidth:a,asChild:n=!1,loading:s=!1,leftIcon:i,rightIcon:l,children:u,disabled:c,...f},p)=>P("button",{className:L("moonui-theme",ru({variant:t,size:o,rounded:r,fullWidth:a,className:e})),ref:p,disabled:c||s,"aria-busy":s||void 0,"data-loading":s?"":void 0,...f,children:[s&&d(ot,{className:"w-4 h-4 animate-spin","aria-hidden":"true"}),!s&&i,u,!s&&l]}));Te.displayName="Button";N();N();N();var cn=ce({});N();function Eo(e){let t=E(null);return t.current===null&&(t.current=e()),t.current}N();var dn=typeof window<"u";var fn=dn?ct:D;N();N();N();var Cr=ce(null);function ua(e,t){e.indexOf(t)===-1&&e.push(t)}function io(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var it=(e,t,o)=>o>t?t:o<e?e:o;var zo=()=>{},dt=()=>{};var mt={};var li=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ui(e){return typeof e=="object"&&e!==null}var ci=e=>/^0[^.\s]+$/u.test(e);function ca(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ke=e=>e;var ZD=(e,t)=>o=>t(e(o)),lo=(...e)=>e.reduce(ZD);var zt=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};var Wo=class{constructor(){this.subscriptions=[]}add(t){return ua(this.subscriptions,t),()=>io(this.subscriptions,t)}notify(t,o,r){let a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,o,r);else for(let n=0;n<a;n++){let s=this.subscriptions[n];s&&s(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var et=e=>e*1e3,rt=e=>e/1e3;function di(e,t){return t?e*(1e3/t):0}var Mx=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};var kx=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,QD=1e-7,JD=12;function e1(e,t,o,r,a){let n,s,i=0;do s=t+(o-t)/2,n=kx(s,r,a)-e,n>0?o=s:t=s;while(Math.abs(n)>QD&&++i<JD);return s}function wr(e,t,o,r){if(e===t&&o===r)return Ke;let a=n=>e1(n,0,1,e,o);return n=>n===0||n===1?n:kx(a(n),t,r)}var au=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var nu=e=>t=>1-e(1-t);var su=wr(.33,1.53,.69,.99),pn=nu(su),fi=au(pn);var pi=e=>(e*=2)<1?.5*pn(e):.5*(2-Math.pow(2,-10*(e-1)));var mi=e=>1-Math.sin(Math.acos(e)),gi=nu(mi),hi=au(mi);var wf=wr(.42,0,1,1),Sf=wr(0,0,.58,1),vi=wr(.42,0,.58,1);var xi=e=>Array.isArray(e)&&typeof e[0]!="number";function yi(e,t){return xi(e)?e[Mx(0,e.length,t)]:e}var bi=e=>Array.isArray(e)&&typeof e[0]=="number";var Ex={linear:Ke,easeIn:wf,easeInOut:vi,easeOut:Sf,circIn:mi,circInOut:hi,circOut:gi,backIn:pn,backInOut:fi,backOut:su,anticipate:pi},t1=e=>typeof e=="string",iu=e=>{if(bi(e)){dt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,r,a]=e;return wr(t,o,r,a)}else if(t1(e))return dt(Ex[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ex[e];return e};var Ci=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Tt={value:null,addProjectionMetrics:null};function Ax(e,t){let o=new Set,r=new Set,a=!1,n=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){s.has(f)&&(c.schedule(f),e()),l++,f(i)}let c={schedule:(f,p=!1,m=!1)=>{let g=m&&a?o:r;return p&&s.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(i=f,a){n=!0;return}a=!0,[o,r]=[r,o],o.forEach(u),t&&Tt.value&&Tt.value.frameloop[t].push(l),l=0,o.clear(),a=!1,n&&(n=!1,c.process(f))}};return c}var o1=40;function lu(e,t){let o=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},n=()=>o=!0,s=Ci.reduce((b,R)=>(b[R]=Ax(n,t?R:void 0),b),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let b=mt.useManualTiming?a.timestamp:performance.now();o=!1,mt.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(b-a.timestamp,o1),1)),a.timestamp=b,a.isProcessing=!0,i.process(a),l.process(a),u.process(a),c.process(a),f.process(a),p.process(a),m.process(a),h.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,a.isProcessing||e(g)};return{schedule:Ci.reduce((b,R)=>{let w=s[R];return b[R]=(I,S=!1,T=!1)=>(o||v(),w.schedule(I,S,T)),b},{}),cancel:b=>{for(let R=0;R<Ci.length;R++)s[Ci[R]].cancel(b)},state:a,steps:s}}var{schedule:we,cancel:gt,state:Ye,steps:wi}=lu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);var uu;function r1(){uu=void 0}var Ze={now:()=>(uu===void 0&&Ze.set(Ye.isProcessing||mt.useManualTiming?Ye.timestamp:performance.now()),uu),set:e=>{uu=e,queueMicrotask(r1)}};var uo={layout:0,mainThread:0,waapi:0};var Dx=e=>t=>typeof t=="string"&&t.startsWith(e),da=Dx("--"),a1=Dx("var(--"),fa=e=>a1(e)?n1.test(e.split("/*")[0].trim()):!1,n1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ao={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qo={...Ao,transform:e=>it(0,1,e)},Si={...Ao,default:1};var Sr=e=>Math.round(e*1e5)/1e5;var mn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nx(e){return e==null}var Ox=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var gn=(e,t)=>o=>!!(typeof o=="string"&&Ox.test(o)&&o.startsWith(e)||t&&!Nx(o)&&Object.prototype.hasOwnProperty.call(o,t)),cu=(e,t,o)=>r=>{if(typeof r!="string")return r;let[a,n,s,i]=r.match(mn);return{[e]:parseFloat(a),[t]:parseFloat(n),[o]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var s1=e=>it(0,255,e),Rf={...Ao,transform:e=>Math.round(s1(e))},Do={test:gn("rgb","red"),parse:cu("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+Rf.transform(e)+", "+Rf.transform(t)+", "+Rf.transform(o)+", "+Sr(qo.transform(r))+")"};function i1(e){let t="",o="",r="",a="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,o+=o,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}var Ri={test:gn("#"),parse:i1,transform:Do.transform};var Ii=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),co=Ii("deg"),ht=Ii("%"),de=Ii("px"),If=Ii("vh"),Pf=Ii("vw"),du=(()=>({...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)}))();var Rr={test:gn("hsl","hue"),parse:cu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Sr(t))+", "+ht.transform(Sr(o))+", "+Sr(qo.transform(r))+")"};var je={test:e=>Do.test(e)||Ri.test(e)||Rr.test(e),parse:e=>Do.test(e)?Do.parse(e):Rr.test(e)?Rr.parse(e):Ri.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):Rr.transform(e),getAnimatableNone:e=>{let t=je.parse(e);return t.alpha=0,je.transform(t)}};var Fx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function l1(e){return isNaN(e)&&typeof e=="string"&&(e.match(mn)?.length||0)+(e.match(Fx)?.length||0)>0}var Vx="number",Bx="color",u1="var",c1="var(",_x="${}",d1=/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 Ir(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},a=[],n=0,i=t.replace(d1,l=>(je.test(l)?(r.color.push(n),a.push(Bx),o.push(je.parse(l))):l.startsWith(c1)?(r.var.push(n),a.push(u1),o.push(l)):(r.number.push(n),a.push(Vx),o.push(parseFloat(l))),++n,_x)).split(_x);return{values:o,split:i,indexes:r,types:a}}function Hx(e){return Ir(e).values}function Ux(e){let{split:t,types:o}=Ir(e),r=t.length;return a=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],a[s]!==void 0){let i=o[s];i===Vx?n+=Sr(a[s]):i===Bx?n+=je.transform(a[s]):n+=a[s]}return n}}var f1=e=>typeof e=="number"?0:je.test(e)?je.getAnimatableNone(e):e;function p1(e){let t=Hx(e);return Ux(e)(t.map(f1))}var vt={test:l1,parse:Hx,createTransformer:Ux,getAnimatableNone:p1};function Lf(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Gx({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let a=0,n=0,s=0;if(!t)a=n=s=o;else{let i=o<.5?o*(1+t):o+t-o*t,l=2*o-i;a=Lf(l,i,e+1/3),n=Lf(l,i,e),s=Lf(l,i,e-1/3)}return{red:Math.round(a*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function hn(e,t){return o=>o>0?t:e}var Re=(e,t,o)=>e+(t-e)*o;var Tf=(e,t,o)=>{let r=e*e,a=o*(t*t-r)+r;return a<0?0:Math.sqrt(a)},m1=[Ri,Do,Rr],g1=e=>m1.find(t=>t.test(e));function zx(e){let t=g1(e);if(zo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Rr&&(o=Gx(o)),o}var Mf=(e,t)=>{let o=zx(e),r=zx(t);if(!o||!r)return hn(e,t);let a={...o};return n=>(a.red=Tf(o.red,r.red,n),a.green=Tf(o.green,r.green,n),a.blue=Tf(o.blue,r.blue,n),a.alpha=Re(o.alpha,r.alpha,n),Do.transform(a))};var fu=new Set(["none","hidden"]);function Wx(e,t){return fu.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function h1(e,t){return o=>Re(e,t,o)}function pu(e){return typeof e=="number"?h1:typeof e=="string"?fa(e)?hn:je.test(e)?Mf:y1:Array.isArray(e)?qx:typeof e=="object"?je.test(e)?Mf:v1:hn}function qx(e,t){let o=[...e],r=o.length,a=e.map((n,s)=>pu(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)o[s]=a[s](n);return o}}function v1(e,t){let o={...e,...t},r={};for(let a in o)e[a]!==void 0&&t[a]!==void 0&&(r[a]=pu(e[a])(e[a],t[a]));return a=>{for(let n in r)o[n]=r[n](a);return o}}function x1(e,t){let o=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let n=t.types[a],s=e.indexes[n][r[n]],i=e.values[s]??0;o[a]=i,r[n]++}return o}var y1=(e,t)=>{let o=vt.createTransformer(t),r=Ir(e),a=Ir(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?fu.has(e)&&!a.values.length||fu.has(t)&&!r.values.length?Wx(e,t):lo(qx(x1(r,a),a.values),o):(zo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),hn(e,t))};function mu(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?Re(e,t,o):pu(e)(e,t)}var $x=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>we.update(t,o),stop:()=>gt(t),now:()=>Ye.isProcessing?Ye.timestamp:Ze.now()}};var gu=(e,t,o=10)=>{let r="",a=Math.max(Math.round(t/o),2);for(let n=0;n<a;n++)r+=Math.round(e(n/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function vn(e){let t=0,o=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=o,r=e.next(t);return t>=2e4?1/0:t}function Pi(e,t=100,o){let r=o({...e,keyframes:[0,t]}),a=Math.min(vn(r),2e4);return{type:"keyframes",ease:n=>r.next(a*n).value/t,duration:rt(a)}}var b1=5;function hu(e,t,o){let r=Math.max(t-b1,0);return di(o-e(r),t-r)}var We={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};var Ef=.001;function jx({duration:e=We.duration,bounce:t=We.bounce,velocity:o=We.velocity,mass:r=We.mass}){let a,n;zo(e<=et(We.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=it(We.minDamping,We.maxDamping,s),e=it(We.minDuration,We.maxDuration,rt(e)),s<1?(a=u=>{let c=u*s,f=c*e,p=c-o,m=vu(u,s),h=Math.exp(-f);return Ef-p/m*h},n=u=>{let f=u*s*e,p=f*o+o,m=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-f),g=vu(Math.pow(u,2),s);return(-a(u)+Ef>0?-1:1)*((p-m)*h)/g}):(a=u=>{let c=Math.exp(-u*e),f=(u-o)*e+1;return-Ef+c*f},n=u=>{let c=Math.exp(-u*e),f=(o-u)*(e*e);return c*f});let i=5/e,l=w1(a,n,i);if(e=et(e),isNaN(l))return{stiffness:We.stiffness,damping:We.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var C1=12;function w1(e,t,o){let r=o;for(let a=1;a<C1;a++)r=r-e(r)/t(r);return r}function vu(e,t){return e*Math.sqrt(1-t*t)}var S1=["duration","bounce"],R1=["stiffness","damping","mass"];function Kx(e,t){return t.some(o=>e[o]!==void 0)}function I1(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!Kx(e,R1)&&Kx(e,S1))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),a=r*r,n=2*it(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:We.mass,stiffness:a,damping:n}}else{let o=jx(e);t={...t,...o,mass:We.mass},t.isResolvedFromDuration=!0}return t}function $o(e=We.visualDuration,t=We.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:a}=o,n=o.keyframes[0],s=o.keyframes[o.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:c,duration:f,velocity:p,isResolvedFromDuration:m}=I1({...o,velocity:-rt(o.velocity||0)}),h=p||0,g=u/(2*Math.sqrt(l*c)),v=s-n,x=rt(Math.sqrt(l/c)),y=Math.abs(v)<5;r||(r=y?We.restSpeed.granular:We.restSpeed.default),a||(a=y?We.restDelta.granular:We.restDelta.default);let b;if(g<1){let w=vu(x,g);b=I=>{let S=Math.exp(-g*x*I);return s-S*((h+g*x*v)/w*Math.sin(w*I)+v*Math.cos(w*I))}}else if(g===1)b=w=>s-Math.exp(-x*w)*(v+(h+x*v)*w);else{let w=x*Math.sqrt(g*g-1);b=I=>{let S=Math.exp(-g*x*I),T=Math.min(w*I,300);return s-S*((h+g*x*v)*Math.sinh(T)+w*v*Math.cosh(T))/w}}let R={calculatedDuration:m&&f||null,next:w=>{let I=b(w);if(m)i.done=w>=f;else{let S=w===0?h:0;g<1&&(S=w===0?et(h):hu(b,w,I));let T=Math.abs(S)<=r,M=Math.abs(s-I)<=a;i.done=T&&M}return i.value=i.done?s:I,i},toString:()=>{let w=Math.min(vn(R),2e4),I=gu(S=>R.next(w*S).value,w,30);return w+"ms "+I},toTransition:()=>{}};return R}$o.applyToOptions=e=>{let t=Pi(e,100,$o);return e.ease=t.ease,e.duration=et(t.duration),e.type="keyframes",e};function Li({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let f=e[0],p={done:!1,value:f},m=T=>i!==void 0&&T<i||l!==void 0&&T>l,h=T=>i===void 0?l:l===void 0||Math.abs(i-T)<Math.abs(l-T)?i:l,g=o*t,v=f+g,x=s===void 0?v:s(v);x!==v&&(g=x-f);let y=T=>-g*Math.exp(-T/r),b=T=>x+y(T),R=T=>{let M=y(T),A=b(T);p.done=Math.abs(M)<=u,p.value=p.done?x:A},w,I,S=T=>{m(p.value)&&(w=T,I=$o({keyframes:[p.value,h(p.value)],velocity:hu(b,T,p.value),damping:a,stiffness:n,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:T=>{let M=!1;return!I&&w===void 0&&(M=!0,R(T),S(T)),w!==void 0&&T>=w?I.next(T-w):(!M&&R(T),p)}}}function P1(e,t,o){let r=[],a=o||mt.mix||mu,n=e.length-1;for(let s=0;s<n;s++){let i=a(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Ke:t;i=lo(l,i)}r.push(i)}return r}function xu(e,t,{clamp:o=!0,ease:r,mixer:a}={}){let n=e.length;if(dt(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=P1(t,r,a),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);let p=zt(e[f],e[f+1],c);return i[f](p)};return o?c=>u(it(e[0],e[n-1],c)):u}function Ti(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let a=zt(0,t,r);e.push(Re(o,1,a))}}function Mi(e){let t=[0];return Ti(t,e.length-1),t}function Xx(e,t){return e.map(o=>o*t)}function L1(e,t){return e.map(()=>t||vi).splice(0,e.length-1)}function pa({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let a=xi(r)?r.map(iu):iu(r),n={done:!1,value:t[0]},s=Xx(o&&o.length===t.length?o:Mi(t),e),i=xu(s,t,{ease:Array.isArray(a)?a:L1(t,a)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var T1=e=>e!==null;function xn(e,{repeat:t,repeatType:o="loop"},r,a=1){let n=e.filter(T1),i=a<0||t&&o!=="loop"&&t%2===1?0:n.length-1;return!i||r===void 0?n[i]:r}var M1={decay:Li,inertia:Li,tween:pa,keyframes:pa,spring:$o};function yu(e){typeof e.type=="string"&&(e.type=M1[e.type])}var Pr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var k1=e=>e/100,jo=class extends Pr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},uo.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;yu(t);let{type:o=pa,repeat:r=0,repeatDelay:a=0,repeatType:n,velocity:s=0}=t,{keyframes:i}=t,l=o||pa;l!==pa&&typeof i[0]!="number"&&(this.mixKeyframes=lo(k1,mu(i[0],i[1])),i=[0,100]);let u=l({...t,keyframes:i});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=vn(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=u}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:r,totalDuration:a,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);let{delay:u=0,keyframes:c,repeat:f,repeatType:p,repeatDelay:m,type:h,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?x<0:x>a;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let b=this.currentTime,R=r;if(f){let T=Math.min(this.currentTime,a)/i,M=Math.floor(T),A=T%1;!A&&T>=1&&(A=1),A===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(p==="reverse"?(A=1-A,m&&(A-=m/i)):p==="mirror"&&(R=s)),b=it(0,1,A)*i}let w=y?{done:!1,value:c[0]}:R.next(b);n&&(w.value=n(w.value));let{done:I}=w;!y&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return S&&h!==Li&&(w.value=xn(c,this.options,v,this.speed)),g&&g(w.value),S&&this.finish(),w}then(t,o){return this.finished.then(t,o)}get duration(){return rt(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(this.currentTime)}set time(t){t=et(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ze.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=rt(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=$x,startTime:o}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();let r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??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(Ze.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,uo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function Yx(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ma=e=>e*180/Math.PI,Af=e=>{let t=ma(Math.atan2(e[1],e[0]));return Df(t)},E1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Af,rotateZ:Af,skewX:e=>ma(Math.atan(e[1])),skewY:e=>ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Df=e=>(e=e%360,e<0&&(e+=360),e),Zx=Af,Qx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Jx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),A1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Qx,scaleY:Jx,scale:e=>(Qx(e)+Jx(e))/2,rotateX:e=>Df(ma(Math.atan2(e[6],e[5]))),rotateY:e=>Df(ma(Math.atan2(-e[2],e[0]))),rotateZ:Zx,rotate:Zx,skewX:e=>ma(Math.atan(e[4])),skewY:e=>ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ki(e){return e.includes("scale")?1:0}function Ei(e,t){if(!e||e==="none")return ki(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,a;if(o)r=A1,a=o;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=E1,a=i}if(!a)return ki(t);let n=r[t],s=a[1].split(",").map(D1);return typeof n=="function"?n(s):s[n]}var Nf=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return Ei(o,t)};function D1(e){return parseFloat(e.trim())}var fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=(()=>new Set(fo))();var Of=e=>e===Ao||e===de,N1=new Set(["x","y","z"]),O1=fo.filter(e=>!N1.has(e));function ey(e){let t=[];return O1.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var Lr={width:({x:e},{paddingLeft:t="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),height:({y:e},{paddingTop:t="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),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})=>Ei(t,"x"),y:(e,{transform:t})=>Ei(t,"y")};Lr.translateX=Lr.x;Lr.translateY=Lr.y;var ga=new Set,Ff=!1,_f=!1,Vf=!1;function ty(){if(_f){let e=Array.from(ga).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let a=ey(r);a.length&&(o.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let a=o.get(r);a&&a.forEach(([n,s])=>{r.getValue(n)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_f=!1,Ff=!1,ga.forEach(e=>e.complete(Vf)),ga.clear()}function oy(){ga.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_f=!0)})}function Bf(){Vf=!0,oy(),ty(),Vf=!1}var Ko=class{constructor(t,o,r,a,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=r,this.motionValue=a,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ga.add(this),Ff||(Ff=!0,we.read(oy),we.resolveKeyframes(ty))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:a}=this;if(t[0]===null){let n=a?.get(),s=t[t.length-1];if(n!==void 0)t[0]=n;else if(r&&o){let i=r.readValue(o,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),a&&n===void 0&&a.set(t[0])}Yx(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ga.delete(this)}cancel(){this.state==="scheduled"&&(ga.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var ry=e=>e.startsWith("--");function ay(e,t,o){ry(t)?e.style.setProperty(t,o):e.style[t]=o}var ny=ca(()=>window.ScrollTimeline!==void 0);var sy={};function iy(e,t){let o=ca(e);return()=>sy[t]??o()}var bu=iy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ha=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;var Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ha([0,.65,.55,1]),circOut:ha([.55,0,1,.45]),backIn:ha([.31,.01,.66,-.59]),backOut:ha([.33,1.53,.69,.99])};function Uf(e,t){if(e)return typeof e=="function"?bu()?gu(e,t):"ease-out":bi(e)?ha(e):Array.isArray(e)?e.map(o=>Uf(o,t)||Hf.easeOut):Hf[e]}function ly(e,t,o,{delay:r=0,duration:a=300,repeat:n=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:o};l&&(c.offset=l);let f=Uf(i,a);Array.isArray(f)&&(c.easing=f),Tt.value&&uo.waapi++;let p={delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};u&&(p.pseudoElement=u);let m=e.animate(c,p);return Tt.value&&m.finished.finally(()=>{uo.waapi--}),m}function va(e){return typeof e=="function"&&"applyToOptions"in e}function uy({type:e,...t}){return va(e)&&bu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Cu=class extends Pr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:a,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,dt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=uy(t);this.animation=ly(o,r,a,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=xn(a,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):ay(o,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return rt(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=et(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ny()?(this.animation.timeline=t,Ke):o(this)}};var cy={anticipate:pi,backInOut:fi,circInOut:hi};function F1(e){return e in cy}function dy(e){typeof e.ease=="string"&&F1(e.ease)&&(e.ease=cy[e.ease])}var fy=10,wu=class extends Cu{constructor(t){dy(t),yu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:a,element:n,...s}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let i=new jo({...s,autoplay:!1}),l=et(this.finishedTime??this.time);o.setWithVelocity(i.sample(l-fy).value,i.sample(l).value,fy),i.stop()}};var Gf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vt.test(e)||e==="0")&&!e.startsWith("url("));function _1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function py(e,t,o,r){let a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=Gf(a,t),i=Gf(n,t);return zo(s===i,`You are trying to animate ${t} from "${a}" to "${n}". "${s?n:a}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:_1(e)||(o==="spring"||va(o))&&r}function yn(e){e.duration=0,e.type="keyframes"}var V1=new Set(["opacity","clipPath","filter","transform"]),B1=ca(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function my(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:a,damping:n,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return B1()&&o&&V1.has(o)&&(o!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&n!==0&&s!=="inertia"}var H1=40,Ai=class extends Pr{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:a=0,repeatDelay:n=0,repeatType:s="loop",keyframes:i,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ze.now();let p={autoplay:t,delay:o,type:r,repeat:a,repeatDelay:n,repeatType:s,name:l,motionValue:u,element:c,...f},m=c?.KeyframeResolver||Ko;this.keyframeResolver=new m(i,(h,g,v)=>this.onKeyframesResolved(h,g,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,a){this.keyframeResolver=void 0;let{name:n,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ze.now(),py(t,n,s,i)||((mt.instantAnimations||!l)&&c?.(xn(t,r,o)),t[0]=t[t.length-1],yn(r),r.repeat=0);let p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>H1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!u&&my(p)?new wu({...p,element:p.motionValue.owner.current}):new jo(p);m.finished.then(()=>this.notifyFinished()).catch(Ke),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Bf()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var Su=class{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,o){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=o}attachTimeline(t){let o=this.animations.map(r=>r.attachTimeline(t));return()=>{o.forEach((r,a)=>{r&&r(),this.animations[a].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 gy(this.animations,"duration")}get iterationDuration(){return gy(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(o=>o[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function gy(e,t){let o=0;for(let r=0;r<e.length;r++){let a=e[r][t];a!==null&&a>o&&(o=a)}return o}var Di=class extends Su{then(t,o){return this.finished.finally(t).then(()=>{})}};var U1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G1(e){let t=U1.exec(e);if(!t)return[,];let[,o,r,a]=t;return[`--${o??r}`,a]}var z1=4;function zf(e,t,o=1){dt(o<=z1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,a]=G1(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return li(s)?parseFloat(s):s}return fa(a)?zf(a,t,o+1):a}function xa(e,t){return e?.[t]??e?.default??e}var Ni=new Set(["width","height","top","left","right","bottom",...fo]);var hy={test:e=>e==="auto",parse:e=>e};var Ru=e=>t=>t.test(e);var Wf=[Ao,de,ht,co,Pf,If,hy],qf=e=>Wf.find(Ru(e));function vy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ci(e):!0}var W1=new Set(["brightness","contrast","saturate","opacity"]);function q1(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(mn)||[];if(!r)return e;let a=o.replace(r,""),n=W1.has(t)?1:0;return r!==o&&(n*=100),t+"("+n+a+")"}var $1=/\b([a-z-]*)\(.*?\)/gu,Oi={...vt,getAnimatableNone:e=>{let t=e.match($1);return t?t.map(q1).join(" "):e}};var $f={...Ao,transform:Math.round};var xy={rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:Si,scaleX:Si,scaleY:Si,scaleZ:Si,skew:co,skewX:co,skewY:co,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:qo,originX:du,originY:du,originZ:de};var ya={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de,...xy,zIndex:$f,fillOpacity:qo,strokeOpacity:qo,numOctaves:$f};var yy={...ya,color:je,backgroundColor:je,outlineColor:je,fill:je,stroke:je,borderColor:je,borderTopColor:je,borderRightColor:je,borderBottomColor:je,borderLeftColor:je,filter:Oi,WebkitFilter:Oi},Fi=e=>yy[e];function _i(e,t){let o=Fi(e);return o!==Oi&&(o=vt),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var j1=new Set(["auto","none","0"]);function by(e,t,o){let r=0,a;for(;r<e.length&&!a;){let n=e[r];typeof n=="string"&&!j1.has(n)&&Ir(n).values.length&&(a=e[r]),r++}if(a&&o)for(let n of t)e[n]=_i(o,a)}var Vi=class extends Ko{constructor(t,o,r,a,n){super(t,o,r,a,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),fa(u))){let c=zf(u,o.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ni.has(r)||t.length!==2)return;let[a,n]=t,s=qf(a),i=qf(n);if(s!==i)if(Of(s)&&Of(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Lr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||vy(t[a]))&&r.push(a);r.length&&by(t,r,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let a=o[o.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let a=t.getValue(o);a&&a.jump(this.measuredOrigin,!1);let n=r.length-1,s=r[n];r[n]=Lr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}};function Bi(e,t,o){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let a=o?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}var Hi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ui(e){return ui(e)&&"offsetHeight"in e}var Cy=30,K1=e=>!isNaN(parseFloat(e)),ba={current:void 0},Iu=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{let a=Ze.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=K1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new Wo);let r=this.events[t].add(o);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.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 ba.current&&ba.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Cy)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,Cy);return di(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Mt(e,t){return new Iu(e,t)}var{schedule:Ca,cancel:X1}=lu(queueMicrotask,!1);var Wt={x:!1,y:!1};function Pu(){return Wt.x||Wt.y}function jf(e){return e==="x"||e==="y"?Wt[e]?null:(Wt[e]=!0,()=>{Wt[e]=!1}):Wt.x||Wt.y?null:(Wt.x=Wt.y=!0,()=>{Wt.x=Wt.y=!1})}function Lu(e,t){let o=Bi(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[o,a,()=>r.abort()]}function wy(e){return!(e.pointerType==="touch"||Pu())}function Kf(e,t,o={}){let[r,a,n]=Lu(e,o),s=i=>{if(!wy(i))return;let{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;let c=f=>{wy(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,a)};return r.forEach(i=>{i.addEventListener("pointerenter",s,a)}),n}var Xf=(e,t)=>t?e===t?!0:Xf(e,t.parentElement):!1;var wa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var Y1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sy(e){return Y1.has(e.tagName)||e.tabIndex!==-1}var bn=new WeakSet;function Ry(e){return t=>{t.key==="Enter"&&e(t)}}function Yf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var Iy=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=Ry(()=>{if(bn.has(o))return;Yf(o,"down");let a=Ry(()=>{Yf(o,"up")}),n=()=>Yf(o,"cancel");o.addEventListener("keyup",a,t),o.addEventListener("blur",n,t)});o.addEventListener("keydown",r,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),t)};function Py(e){return wa(e)&&!Pu()}function Zf(e,t,o={}){let[r,a,n]=Lu(e,o),s=i=>{let l=i.currentTarget;if(!Py(i))return;bn.add(l);let u=t(l,i),c=(m,h)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),bn.has(l)&&bn.delete(l),Py(m)&&typeof u=="function"&&u(m,{success:h})},f=m=>{c(m,l===window||l===document||o.useGlobalTarget||Xf(l,m.target))},p=m=>{c(m,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",p,a)};return r.forEach(i=>{(o.useGlobalTarget?window:i).addEventListener("pointerdown",s,a),Ui(i)&&(i.addEventListener("focus",u=>Iy(u,a)),!Sy(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),n}function Sa(e){return ui(e)&&"ownerSVGElement"in e}function Gi(e){return Sa(e)&&e.tagName==="svg"}function Qf(...e){let t=!Array.isArray(e[0]),o=t?0:-1,r=e[0+o],a=e[1+o],n=e[2+o],s=e[3+o],i=xu(a,n,s);return t?i(r):i}var De=e=>!!(e&&e.getVelocity);var Z1=[...Wf,je,vt],Jf=e=>Z1.find(Ru(e));N();N();N();var Tr=ce({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});N();function Ly(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Q1(...e){return t=>{let o=!1,r=e.map(a=>{let n=Ly(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():Ly(e[a],null)}}}}function Ty(...e){return H(Q1(...e),e)}var ep=class extends Rs{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(o&&t.isPresent&&!this.props.isPresent){let r=o.offsetParent,a=Ui(r)&&r.offsetWidth||0,n=this.props.sizeRef.current;n.height=o.offsetHeight||0,n.width=o.offsetWidth||0,n.top=o.offsetTop,n.left=o.offsetLeft,n.right=a-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}};function My({children:e,isPresent:t,anchorX:o,root:r}){let a=qe(),n=E(null),s=E({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=ae(Tr),l=Ty(n,e?.ref);return Is(()=>{let{width:u,height:c,top:f,left:p,right:m}=s.current;if(t||!n.current||!u||!c)return;let h=o==="left"?`left: ${p}`:`right: ${m}`;n.current.dataset.motionPopId=a;let g=document.createElement("style");i&&(g.nonce=i);let v=r??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
|
|
5
|
+
var Qk=Object.create;var $l=Object.defineProperty;var Jk=Object.getOwnPropertyDescriptor;var eE=Object.getOwnPropertyNames;var tE=Object.getPrototypeOf,oE=Object.prototype.hasOwnProperty;var rE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var aE=(e,t)=>()=>(e&&(t=e(e=0)),t);var fv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nE=(e,t)=>{for(var o in t)$l(e,o,{get:t[o],enumerable:!0})},pv=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eE(t))!oE.call(e,a)&&a!==o&&$l(e,a,{get:()=>t[a],enumerable:!(r=Jk(t,a))||r.enumerable});return e};var sE=(e,t,o)=>(o=e!=null?Qk(tE(e)):{},pv(t||!e||!e.__esModule?$l(o,"default",{value:e,enumerable:!0}):o,e)),iE=e=>pv($l({},"__esModule",{value:!0}),e);var B={};nE(B,{Children:()=>Ie,Component:()=>Rs,Fragment:()=>Je,Profiler:()=>lE,PureComponent:()=>uE,StrictMode:()=>cE,Suspense:()=>dE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>fE,act:()=>pE,cloneElement:()=>Fe,createContext:()=>ce,createElement:()=>me,createFactory:()=>mE,createRef:()=>gE,default:()=>Pe,forwardRef:()=>C,isValidElement:()=>Ee,lazy:()=>hE,memo:()=>Zd,startTransition:()=>vE,unstable_act:()=>xE,useCallback:()=>H,useContext:()=>ae,useDebugValue:()=>yE,useDeferredValue:()=>bE,useEffect:()=>D,useId:()=>qe,useImperativeHandle:()=>ta,useInsertionEffect:()=>Is,useLayoutEffect:()=>ct,useMemo:()=>Z,useReducer:()=>Gt,useRef:()=>E,useState:()=>k,useSyncExternalStore:()=>Qd,useTransition:()=>CE,version:()=>wE});import*as oe from"react";var Ie,Rs,Je,lE,uE,cE,dE,fE,pE,Fe,ce,me,mE,gE,C,Ee,hE,Zd,vE,xE,H,ae,yE,bE,D,qe,ta,Is,ct,Z,Gt,E,k,Qd,CE,wE,Pe,N=aE(()=>{Ie=oe.Children,Rs=oe.Component,Je=oe.Fragment,lE=oe.Profiler,uE=oe.PureComponent,cE=oe.StrictMode,dE=oe.Suspense,fE=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pE=oe.act,Fe=oe.cloneElement,ce=oe.createContext,me=oe.createElement,mE=oe.createFactory,gE=oe.createRef,C=oe.forwardRef,Ee=oe.isValidElement,hE=oe.lazy,Zd=oe.memo,vE=oe.startTransition,xE=oe.unstable_act,H=oe.useCallback,ae=oe.useContext,yE=oe.useDebugValue,bE=oe.useDeferredValue,D=oe.useEffect,qe=oe.useId,ta=oe.useImperativeHandle,Is=oe.useInsertionEffect,ct=oe.useLayoutEffect,Z=oe.useMemo,Gt=oe.useReducer,E=oe.useRef,k=oe.useState,Qd=oe.useSyncExternalStore,CE=oe.useTransition,wE=oe.version,Pe=oe.default!==void 0?oe.default:oe});var ix=fv(sx=>{"use strict";var un=(N(),iE(B));function OD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FD=typeof Object.is=="function"?Object.is:OD,_D=un.useState,VD=un.useEffect,BD=un.useLayoutEffect,HD=un.useDebugValue;function UD(e,t){var o=t(),r=_D({inst:{value:o,getSnapshot:t}}),a=r[0].inst,n=r[1];return BD(function(){a.value=o,a.getSnapshot=t,mf(a)&&n({inst:a})},[e,o,t]),VD(function(){return mf(a)&&n({inst:a}),e(function(){mf(a)&&n({inst:a})})},[e]),HD(o),o}function mf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!FD(e,o)}catch{return!0}}function GD(e,t){return t()}var zD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?GD:UD;sx.useSyncExternalStore=un.useSyncExternalStore!==void 0?un.useSyncExternalStore:zD});var ux=fv((D$,lx)=>{"use strict";lx.exports=ix()});N();N();N();import*as oa from"react/jsx-runtime";var Ve=oa.Fragment,d=oa.jsx,P=oa.jsxs;function mv(e,t){let o=ce(t),r=n=>{let{children:s,...i}=n,l=Z(()=>i,Object.values(i));return d(o.Provider,{value:l,children:s})};r.displayName=e+"Provider";function a(n){let s=ae(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[r,a]}function ke(e,t=[]){let o=[];function r(n,s){let i=ce(s),l=o.length;o=[...o,s];let u=f=>{let{scope:p,children:m,...h}=f,g=p?.[e]?.[l]||i,v=Z(()=>h,Object.values(h));return d(g.Provider,{value:v,children:m})};u.displayName=n+"Provider";function c(f,p){let m=p?.[e]?.[l]||i,h=ae(m);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[u,c]}let a=()=>{let n=o.map(s=>ce(s));return function(i){let l=i?.[e]||n;return Z(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return a.scopeName=e,[r,SE(a,...t)]}function SE(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let f=l(n)[`__scope${u}`];return{...i,...f}},{});return Z(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}N();N();function gv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nt(...e){return t=>{let o=!1,r=e.map(a=>{let n=gv(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():gv(e[a],null)}}}}function pe(...e){return H(Nt(...e),e)}N();function It(e){let t=RE(e),o=C((r,a)=>{let{children:n,...s}=r,i=Ie.toArray(n),l=i.find(IE);if(l){let u=l.props.children,c=i.map(f=>f===l?Ie.count(u)>1?Ie.only(null):Ee(u)?u.props.children:null:f);return d(t,{...s,ref:a,children:Ee(u)?Fe(u,void 0,c):null})}return d(t,{...s,ref:a,children:n})});return o.displayName=`${e}.Slot`,o}var jl=It("Slot");function RE(e){let t=C((o,r)=>{let{children:a,...n}=o;if(Ee(a)){let s=LE(a),i=PE(n,a.props);return a.type!==Je&&(i.ref=r?Nt(r,s):s),Fe(a,i)}return Ie.count(a)>1?Ie.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hv=Symbol("radix.slottable");function vv(e){let t=({children:o})=>d(Ve,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=hv,t}function IE(e){return Ee(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hv}function PE(e,t){let o={...t};for(let r in t){let a=e[r],n=t[r];/^on[A-Z]/.test(r)?a&&n?o[r]=(...i)=>{let l=n(...i);return a(...i),l}:a&&(o[r]=a):r==="style"?o[r]={...a,...n}:r==="className"&&(o[r]=[a,n].filter(Boolean).join(" "))}return{...e,...o}}function LE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}N();function Lo(e){let t=e+"CollectionProvider",[o,r]=ke(t),[a,n]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:x}=g,y=Pe.useRef(null),b=Pe.useRef(new Map).current;return d(a,{scope:v,itemMap:b,collectionRef:y,children:x})};s.displayName=t;let i=e+"CollectionSlot",l=It(i),u=Pe.forwardRef((g,v)=>{let{scope:x,children:y}=g,b=n(i,x),R=pe(v,b.collectionRef);return d(l,{ref:R,children:y})});u.displayName=i;let c=e+"CollectionItemSlot",f="data-radix-collection-item",p=It(c),m=Pe.forwardRef((g,v)=>{let{scope:x,children:y,...b}=g,R=Pe.useRef(null),w=pe(v,R),I=n(c,x);return Pe.useEffect(()=>(I.itemMap.set(R,{ref:R,...b}),()=>void I.itemMap.delete(R))),d(p,{[f]:"",ref:w,children:y})});m.displayName=c;function h(g){let v=n(e+"CollectionConsumer",g);return Pe.useCallback(()=>{let y=v.collectionRef.current;if(!y)return[];let b=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((I,S)=>b.indexOf(I.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,r]}var l5=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:o=!0}={}){return function(a){if(e?.(a),o===!1||!a.defaultPrevented)return t?.(a)}}N();N();var Ae=globalThis?.document?ct:()=>{};N();var TE=B[" useInsertionEffect ".trim().toString()]||Ae;function Be({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[a,n,s]=ME({defaultProp:t,onChange:o}),i=e!==void 0,l=i?e:a;{let c=E(e!==void 0);D(()=>{let f=c.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=i},[i,r])}let u=H(c=>{if(i){let f=kE(c)?c(e):c;f!==e&&s.current?.(f)}else n(c)},[i,e,n,s]);return[l,u]}function ME({defaultProp:e,onChange:t}){let[o,r]=k(e),a=E(o),n=E(t);return TE(()=>{n.current=t},[t]),D(()=>{a.current!==o&&(n.current?.(o),a.current=o)},[o,a]),[o,r,n]}function kE(e){return typeof e=="function"}var f5=Symbol("RADIX:SYNC_STATE");N();import*as st from"react-dom";var Ps=st.createPortal;var Uo=st.flushSync;var xv=st.default!==void 0?st.default:st;var EE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=EE.reduce((e,t)=>{let o=It(`Primitive.${t}`),r=C((a,n)=>{let{asChild:s,...i}=a,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ya(e,t){e&&Uo(()=>e.dispatchEvent(t))}N();N();N();function AE(e,t){return Gt((o,r)=>t[o][r]??o,e)}var $e=e=>{let{present:t,children:o}=e,r=DE(t),a=typeof o=="function"?o({present:r.isPresent}):Ie.only(o),n=pe(r.ref,NE(a));return typeof o=="function"||r.isPresent?Fe(a,{ref:n}):null};$e.displayName="Presence";function DE(e){let[t,o]=k(),r=E(null),a=E(e),n=E("none"),s=e?"mounted":"unmounted",[i,l]=AE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D(()=>{let u=Kl(r.current);n.current=i==="mounted"?u:"none"},[i]),Ae(()=>{let u=r.current,c=a.current;if(c!==e){let p=n.current,m=Kl(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&p!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),Ae(()=>{if(t){let u,c=t.ownerDocument.defaultView??window,f=m=>{let g=Kl(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!a.current)){let v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(n.current=Kl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:H(u=>{r.current=u?getComputedStyle(u):null,o(u)},[])}}function Kl(e){return e?.animationName||"none"}function NE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}N();var OE=B[" useId ".trim().toString()]||(()=>{}),FE=0;function Le(e){let[t,o]=k(OE());return Ae(()=>{e||o(r=>r??String(FE++))},[e]),e||(t?`radix-${t}`:"")}var Xl="Collapsible",[_E,Jd]=ke(Xl),[VE,ef]=_E(Xl),yv=C((e,t)=>{let{__scopeCollapsible:o,open:r,defaultOpen:a,disabled:n,onOpenChange:s,...i}=e,[l,u]=Be({prop:r,defaultProp:a??!1,onChange:s,caller:Xl});return d(VE,{scope:o,disabled:n,contentId:Le(),open:l,onOpenToggle:H(()=>u(c=>!c),[u]),children:d(Y.div,{"data-state":of(l),"data-disabled":n?"":void 0,...i,ref:t})})});yv.displayName=Xl;var bv="CollapsibleTrigger",Cv=C((e,t)=>{let{__scopeCollapsible:o,...r}=e,a=ef(bv,o);return d(Y.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":of(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:X(e.onClick,a.onOpenToggle)})});Cv.displayName=bv;var tf="CollapsibleContent",wv=C((e,t)=>{let{forceMount:o,...r}=e,a=ef(tf,e.__scopeCollapsible);return d($e,{present:o||a.open,children:({present:n})=>d(BE,{...r,ref:t,present:n})})});wv.displayName=tf;var BE=C((e,t)=>{let{__scopeCollapsible:o,present:r,children:a,...n}=e,s=ef(tf,o),[i,l]=k(r),u=E(null),c=pe(t,u),f=E(0),p=f.current,m=E(0),h=m.current,g=s.open||i,v=E(g),x=E(void 0);return D(()=>{let y=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(y)},[]),Ae(()=>{let y=u.current;if(y){x.current=x.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";let b=y.getBoundingClientRect();f.current=b.height,m.current=b.width,v.current||(y.style.transitionDuration=x.current.transitionDuration,y.style.animationName=x.current.animationName),l(r)}},[s.open,r]),d(Y.div,{"data-state":of(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...n,ref:c,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&a})});function of(e){return e?"open":"closed"}var Yl=yv,Za=Cv,Ls=wv;N();var HE=ce(void 0);function To(e){let t=ae(HE);return e||t||"ltr"}var ao="Accordion",UE=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[af,GE,zE]=Lo(ao),[Ql,W5]=ke(ao,[zE,Jd]),nf=Jd(),Rv=Pe.forwardRef((e,t)=>{let{type:o,...r}=e,a=r,n=r;return d(af.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?d(jE,{...n,ref:t}):d($E,{...a,ref:t})})});Rv.displayName=ao;var[Iv,WE]=Ql(ao),[Pv,qE]=Ql(ao,{collapsible:!1}),$E=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},collapsible:n=!1,...s}=e,[i,l]=Be({prop:o,defaultProp:r??"",onChange:a,caller:ao});return d(Iv,{scope:e.__scopeAccordion,value:Pe.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:Pe.useCallback(()=>n&&l(""),[n,l]),children:d(Pv,{scope:e.__scopeAccordion,collapsible:n,children:d(Lv,{...s,ref:t})})})}),jE=Pe.forwardRef((e,t)=>{let{value:o,defaultValue:r,onValueChange:a=()=>{},...n}=e,[s,i]=Be({prop:o,defaultProp:r??[],onChange:a,caller:ao}),l=Pe.useCallback(c=>i((f=[])=>[...f,c]),[i]),u=Pe.useCallback(c=>i((f=[])=>f.filter(p=>p!==c)),[i]);return d(Iv,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:d(Pv,{scope:e.__scopeAccordion,collapsible:!0,children:d(Lv,{...n,ref:t})})})}),[KE,Jl]=Ql(ao),Lv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,disabled:r,dir:a,orientation:n="vertical",...s}=e,i=Pe.useRef(null),l=pe(i,t),u=GE(o),f=To(a)==="ltr",p=X(e.onKeyDown,m=>{if(!UE.includes(m.key))return;let h=m.target,g=u().filter(T=>!T.ref.current?.disabled),v=g.findIndex(T=>T.ref.current===h),x=g.length;if(v===-1)return;m.preventDefault();let y=v,b=0,R=x-1,w=()=>{y=v+1,y>R&&(y=b)},I=()=>{y=v-1,y<b&&(y=R)};switch(m.key){case"Home":y=b;break;case"End":y=R;break;case"ArrowRight":n==="horizontal"&&(f?w():I());break;case"ArrowDown":n==="vertical"&&w();break;case"ArrowLeft":n==="horizontal"&&(f?I():w());break;case"ArrowUp":n==="vertical"&&I();break}let S=y%x;g[S].ref.current?.focus()});return d(KE,{scope:o,disabled:r,direction:a,orientation:n,children:d(af.Slot,{scope:o,children:d(Y.div,{...s,"data-orientation":n,ref:l,onKeyDown:r?void 0:p})})})}),Zl="AccordionItem",[XE,sf]=Ql(Zl),Tv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,value:r,...a}=e,n=Jl(Zl,o),s=WE(Zl,o),i=nf(o),l=Le(),u=r&&s.value.includes(r)||!1,c=n.disabled||e.disabled;return d(XE,{scope:o,open:u,disabled:c,triggerId:l,children:d(Yl,{"data-orientation":n.orientation,"data-state":Nv(u),...i,...a,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Tv.displayName=Zl;var Mv="AccordionHeader",kv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=Jl(ao,o),n=sf(Mv,o);return d(Y.h3,{"data-orientation":a.orientation,"data-state":Nv(n.open),"data-disabled":n.disabled?"":void 0,...r,ref:t})});kv.displayName=Mv;var rf="AccordionTrigger",Ev=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=Jl(ao,o),n=sf(rf,o),s=qE(rf,o),i=nf(o);return d(af.ItemSlot,{scope:o,children:d(Za,{"aria-disabled":n.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:n.triggerId,...i,...r,ref:t})})});Ev.displayName=rf;var Av="AccordionContent",Dv=Pe.forwardRef((e,t)=>{let{__scopeAccordion:o,...r}=e,a=Jl(ao,o),n=sf(Av,o),s=nf(o);return d(Ls,{role:"region","aria-labelledby":n.triggerId,"data-orientation":a.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Dv.displayName=Av;function Nv(e){return e?"open":"closed"}var Ov=Rv,Fv=Tv,_v=kv,lf=Ev,uf=Dv;N();var Vv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZE=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,r)=>r?r.toUpperCase():o.toLowerCase()),cf=e=>{let t=ZE(e);return t.charAt(0).toUpperCase()+t.slice(1)},eu=(...e)=>e.filter((t,o,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===o).join(" ").trim(),Bv=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};N();var Hv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Uv=C(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:a="",children:n,iconNode:s,...i},l)=>me("svg",{ref:l,...Hv,width:t,height:t,stroke:e,strokeWidth:r?Number(o)*24/Number(t):o,className:eu("lucide",a),...!n&&!Bv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,c])=>me(u,c)),...Array.isArray(n)?n:[n]]));var j=(e,t)=>{let o=C(({className:r,...a},n)=>me(Uv,{ref:n,iconNode:t,className:eu(`lucide-${Vv(cf(e))}`,`lucide-${e}`,r),...a}));return o.displayName=cf(e),o};var QE=[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ts=j("align-center",QE);var JE=[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]],Ms=j("align-justify",JE);var eA=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],ks=j("align-left",eA);var tA=[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Es=j("align-right",tA);var oA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Qa=j("arrow-down",oA);var rA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],As=j("arrow-left",rA);var aA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ds=j("arrow-right",aA);var nA=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Ja=j("arrow-up-down",nA);var sA=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],en=j("arrow-up",sA);var iA=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Ns=j("bold",iA);var lA=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],aa=j("calendar",lA);var uA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pt=j("check",uA);var cA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mo=j("chevron-down",cA);var dA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],no=j("chevron-left",dA);var fA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wt=j("chevron-right",fA);var pA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Os=j("chevron-up",pA);var mA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],so=j("circle-alert",mA);var gA=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hr=j("circle-check-big",gA);var hA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],na=j("circle",hA);var vA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fs=j("clock",vA);var xA=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],_s=j("code",xA);var yA=[["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"}]],Vs=j("copy",yA);var bA=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Bs=j("credit-card",bA);var CA=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],tn=j("crown",CA);var wA=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Hs=j("dot",wA);var SA=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ko=j("ellipsis",SA);var RA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Us=j("external-link",RA);var IA=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sa=j("eye",IA);var PA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Gs=j("file-text",PA);var LA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],zs=j("file",LA);var TA=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],Ws=j("git-fork",TA);var MA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ia=j("image",MA);var kA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],on=j("info",kA);var EA=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],qs=j("italic",EA);var AA=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],$s=j("link",AA);var DA=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],js=j("list-ordered",DA);var NA=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Ks=j("list",NA);var OA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ot=j("loader-circle",OA);var FA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],rn=j("lock",FA);var _A=[["path",{d:"M5 12h14",key:"1ays0h"}]],Xs=j("minus",_A);var VA=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Ys=j("music",VA);var BA=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],an=j("palette",BA);var HA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Zs=j("phone",HA);var UA=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],tu=j("pipette",UA);var GA=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Qs=j("quote",GA);var zA=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],Js=j("redo",zA);var WA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],la=j("search",WA);var qA=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Pt=j("square-pen",qA);var $A=[["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"}]],vr=j("star",$A);var jA=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],ei=j("strikethrough",jA);var KA=[["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"}]],xr=j("triangle-alert",KA);var XA=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],ti=j("underline",XA);var YA=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],oi=j("undo",YA);var ZA=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ri=j("upload",ZA);var QA=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],ai=j("video",QA);var JA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ot=j("x",JA);var eD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],nn=j("zap",eD);N();function Gv(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Gv(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function ou(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Gv(e))&&(r&&(r+=" "),r+=t);return r}var pf="-",tD=e=>{let t=rD(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(pf);return i[0]===""&&i.length!==1&&i.shift(),qv(i,t)||oD(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},qv=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?qv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(pf);return t.validators.find(({validator:s})=>s(n))?.classGroupId},zv=/^\[(.+)\]$/,oD=e=>{if(zv.test(e)){let t=zv.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},rD=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return nD(Object.entries(e.classGroups),o).forEach(([n,s])=>{ff(s,r,n,t)}),r},ff=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Wv(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(aD(a)){ff(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,s])=>{ff(s,Wv(t,n),o,r)})})},Wv=(e,t)=>{let o=e;return t.split(pf).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},aD=e=>e.isThemeGetter,nD=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[o,a]}):e,sD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,s)=>{o.set(n,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=r.get(n))!==void 0)return a(n,s),s},set(n,s){o.has(n)?o.set(n,s):a(n,s)}}},$v="!",iD=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,s=i=>{let l=[],u=0,c=0,f;for(let v=0;v<i.length;v++){let x=i[v];if(u===0){if(x===a&&(r||i.slice(v,v+n)===t)){l.push(i.slice(c,v)),c=v+n;continue}if(x==="/"){f=v;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(c),m=p.startsWith($v),h=m?p.substring(1):p,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},lD=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},uD=e=>({cache:sD(e.cacheSize),parseClassName:iD(e),...tD(e)}),cD=/\s+/,dD=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],s=e.trim().split(cD),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(u),h=!!m,g=r(h?p.substring(0,m):p);if(!g){if(!h){i=u+(i.length>0?" "+i:i);continue}if(g=r(p),!g){i=u+(i.length>0?" "+i:i);continue}h=!1}let v=lD(c).join(":"),x=f?v+$v:v,y=x+g;if(n.includes(y))continue;n.push(y);let b=a(g,h);for(let R=0;R<b.length;++R){let w=b[R];n.push(x+w)}i=u+(i.length>0?" "+i:i)}return i};function fD(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jv(t))&&(r&&(r+=" "),r+=o);return r}var jv=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=jv(e[r]))&&(o&&(o+=" "),o+=t);return o};function pD(e,...t){let o,r,a,n=s;function s(l){let u=t.reduce((c,f)=>f(c),e());return o=uD(u),r=o.cache.get,a=o.cache.set,n=i,i(l)}function i(l){let u=r(l);if(u)return u;let c=dD(l,o);return a(l,c),c}return function(){return n(fD.apply(null,arguments))}}var Ge=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Kv=/^\[(?:([a-z-]+):)?(.+)\]$/i,mD=/^\d+\/\d+$/,gD=new Set(["px","full","screen"]),hD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Go=e=>sn(e)||gD.has(e)||mD.test(e),yr=e=>ln(e,"length",TD),sn=e=>!!e&&!Number.isNaN(Number(e)),df=e=>ln(e,"number",sn),ni=e=>!!e&&Number.isInteger(Number(e)),CD=e=>e.endsWith("%")&&sn(e.slice(0,-1)),Ce=e=>Kv.test(e),br=e=>hD.test(e),wD=new Set(["length","size","percentage"]),SD=e=>ln(e,wD,Xv),RD=e=>ln(e,"position",Xv),ID=new Set(["image","url"]),PD=e=>ln(e,ID,kD),LD=e=>ln(e,"",MD),si=()=>!0,ln=(e,t,o)=>{let r=Kv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},TD=e=>vD.test(e)&&!xD.test(e),Xv=()=>!1,MD=e=>yD.test(e),kD=e=>bD.test(e);var ED=()=>{let e=Ge("colors"),t=Ge("spacing"),o=Ge("blur"),r=Ge("brightness"),a=Ge("borderColor"),n=Ge("borderRadius"),s=Ge("borderSpacing"),i=Ge("borderWidth"),l=Ge("contrast"),u=Ge("grayscale"),c=Ge("hueRotate"),f=Ge("invert"),p=Ge("gap"),m=Ge("gradientColorStops"),h=Ge("gradientColorStopPositions"),g=Ge("inset"),v=Ge("margin"),x=Ge("opacity"),y=Ge("padding"),b=Ge("saturate"),R=Ge("scale"),w=Ge("sepia"),I=Ge("skew"),S=Ge("space"),T=Ge("translate"),M=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Ce,t],V=()=>[Ce,t],q=()=>["",Go,yr],F=()=>["auto",sn,Ce],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",Ce],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[sn,Ce];return{cacheSize:500,separator:":",theme:{colors:[si],spacing:[Go,yr],blur:["none","",br,Ce],brightness:le(),borderColor:[e],borderRadius:["none","","full",br,Ce],borderSpacing:V(),borderWidth:q(),contrast:le(),grayscale:_(),hueRotate:le(),invert:_(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[CD,yr],inset:O(),margin:O(),opacity:le(),padding:V(),saturate:le(),scale:le(),sepia:_(),skew:le(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[br]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),Ce]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ni,Ce]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",ni,Ce]}],"grid-cols":[{"grid-cols":[si]}],"col-start-end":[{col:["auto",{span:["full",ni,Ce]},Ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[si]}],"row-start-end":[{row:["auto",{span:[ni,Ce]},Ce]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[br]},br]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",br,yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",df]}],"font-family":[{font:[si]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",sn,df]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Go,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Go,yr]}],"underline-offset":[{"underline-offset":["auto",Go,Ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),RD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},PD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:U()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Go,Ce]}],"outline-w":[{outline:[Go,yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Go,yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",br,LD]}],"shadow-color":[{shadow:[si]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",br,Ce]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ni,Ce]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Go,yr,df]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Yv=pD(ED);function L(...e){return Yv(ou(e))}function ii(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(ii).filter(Boolean).join(" ").trim();if(Ee(e)){let t=e.props;return ii(t.children)}return""}var AD=Ov,Zv=C(({className:e,...t},o)=>d(Fv,{ref:o,className:L("moonui-theme","border-b border-gray-200 dark:border-gray-800",e),...t}));Zv.displayName="AccordionItem";var Qv=C(({className:e,children:t,...o},r)=>d(_v,{className:"flex",children:P(lf,{ref:r,className:L("flex flex-1 items-center justify-between py-4 font-medium transition-all dark:text-gray-100","hover:underline hover:text-primary","[&[data-state=open]>svg]:rotate-180",e),...o,children:[t,d(Mo,{className:"h-4 w-4 shrink-0 transition-transform duration-200 opacity-70 group-hover:opacity-100"})]})}));Qv.displayName=lf.displayName;var Jv=C(({className:e,children:t,...o},r)=>d(uf,{ref:r,className:L("overflow-hidden text-sm text-gray-700 dark:text-gray-300 transition-all","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:d("div",{className:"pb-4 pt-0",children:t})}));Jv.displayName=uf.displayName;N();var ex=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tx=ou,Q=(e,t)=>o=>{var r;if(t?.variants==null)return tx(e,o?.class,o?.className);let{variants:a,defaultVariants:n}=t,s=Object.keys(a).map(u=>{let c=o?.[u],f=n?.[u];if(c===null)return null;let p=ex(c)||ex(f);return a[u][p]}),i=o&&Object.entries(o).reduce((u,c)=>{let[f,p]=c;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:p,...m}=c;return Object.entries(m).every(h=>{let[g,v]=h;return Array.isArray(v)?v.includes({...n,...i}[g]):{...n,...i}[g]===v})?[...u,f,p]:u},[]);return tx(e,s,l,o?.class,o?.className)};var DD=Q("relative w-full flex items-center gap-3 p-4 border text-foreground [&>svg]:shrink-0",{variants:{variant:{default:"bg-background text-foreground border-border",primary:"bg-primary/10 text-primary border-primary/30",success:"bg-success/10 text-success border-success/30",warning:"bg-warning/10 text-warning border-warning/30",error:"bg-destructive/10 text-destructive border-destructive/30",info:"bg-info/10 text-info border-info/30"},size:{sm:"py-2 text-xs",md:"py-3 text-sm",lg:"py-4 text-base",default:"py-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",default:"rounded-md",lg:"rounded-lg",full:"rounded-full"},withClose:{true:"pr-10"}},defaultVariants:{variant:"default",size:"md",radius:"default",withClose:!1}}),ox=C(({className:e,variant:t="default",size:o,radius:r,hideIcon:a=!1,closable:n=!1,onClose:s,children:i,...l},u)=>{let c=Z(()=>{switch(t){case"success":return pt;case"warning":return xr;case"error":return so;case"info":return on;default:return on}},[t]);return P("div",{ref:u,role:"alert",className:L("moonui-theme",DD({variant:t,size:o,radius:r,withClose:n}),e),...l,children:[!a&&d(c,{className:"h-5 w-5"}),d("div",{className:"flex-1",children:i}),n&&s&&d("button",{onClick:s,className:"absolute right-3 top-3 inline-flex h-6 w-6 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100","aria-label":"Close alert",children:d(Ot,{className:"h-4 w-4"})})]})});ox.displayName="Alert";var rx=C(({className:e,as:t="div",...o},r)=>d(t,{ref:r,className:L("moonui-theme","font-semibold leading-tight tracking-tight mb-1",e),...o}));rx.displayName="AlertTitle";var ax=C(({className:e,...t},o)=>d("div",{ref:o,className:L("moonui-theme","text-sm leading-5 text-muted-foreground",e),...t}));ax.displayName="AlertDescription";N();var ND=Q("relative overflow-hidden",{variants:{variant:{default:"bg-muted/10",ghost:"bg-transparent",outline:"border border-border",card:"bg-card shadow-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"default",radius:"md"}}),nx=C(({className:e,variant:t,radius:o,ratio:r=16/9,style:a,children:n,...s},i)=>d("div",{ref:i,className:L("moonui-theme",ND({variant:t,radius:o}),e),style:{position:"relative",paddingBottom:`${1/r*100}%`,...a},...s,children:d("div",{className:"absolute inset-0",children:n})}));nx.displayName="AspectRatio";N();N();N();function ze(e){let t=E(e);return D(()=>{t.current=e}),Z(()=>(...o)=>t.current?.(...o),[])}var cx=sE(ux(),1);function dx(){return(0,cx.useSyncExternalStore)(WD,()=>!0,()=>!1)}function WD(){return()=>{}}var gf="Avatar",[qD,U$]=ke(gf),[$D,px]=qD(gf),mx=C((e,t)=>{let{__scopeAvatar:o,...r}=e,[a,n]=k("idle");return d($D,{scope:o,imageLoadingStatus:a,onImageLoadingStatusChange:n,children:d(Y.span,{...r,ref:t})})});mx.displayName=gf;var gx="AvatarImage",hx=C((e,t)=>{let{__scopeAvatar:o,src:r,onLoadingStatusChange:a=()=>{},...n}=e,s=px(gx,o),i=jD(r,n),l=ze(u=>{a(u),s.onImageLoadingStatusChange(u)});return Ae(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?d(Y.img,{...n,ref:t,src:r}):null});hx.displayName=gx;var vx="AvatarFallback",xx=C((e,t)=>{let{__scopeAvatar:o,delayMs:r,...a}=e,n=px(vx,o),[s,i]=k(r===void 0);return D(()=>{if(r!==void 0){let l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&n.imageLoadingStatus!=="loaded"?d(Y.span,{...a,ref:t}):null});xx.displayName=vx;function fx(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function jD(e,{referrerPolicy:t,crossOrigin:o}){let r=dx(),a=E(null),n=(()=>r?(a.current||(a.current=new window.Image),a.current):null)(),[s,i]=k(()=>fx(n,e));return Ae(()=>{i(fx(n,e))},[n,e]),Ae(()=>{let l=f=>()=>{i(f)};if(!n)return;let u=l("loaded"),c=l("error");return n.addEventListener("load",u),n.addEventListener("error",c),t&&(n.referrerPolicy=t),typeof o=="string"&&(n.crossOrigin=o),()=>{n.removeEventListener("load",u),n.removeEventListener("error",c)}},[n,o,t]),s}var hf=mx,vf=hx,xf=xx;var XD=Q("relative flex shrink-0 overflow-hidden",{variants:{size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16","2xl":"h-20 w-20",default:"h-10 w-10"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",full:"rounded-full",none:"rounded-none"},variant:{default:"",ring:"ring-2 ring-border",ringOffset:"ring-2 ring-border ring-offset-2 ring-offset-background",border:"border-2 border-border"}},defaultVariants:{size:"md",radius:"default",variant:"default"}}),yf=C(({className:e,size:t,radius:o,variant:r,...a},n)=>d(hf,{ref:n,className:L("moonui-theme",XD({size:t,radius:o,variant:r}),e),...a}));yf.displayName=hf.displayName;var yx=C(({className:e,alt:t="",...o},r)=>d(vf,{ref:r,alt:t,className:L("moonui-theme","aspect-square h-full w-full",e),...o}));yx.displayName=vf.displayName;var bf=C(({className:e,...t},o)=>d(xf,{ref:o,className:L("flex h-full w-full items-center justify-center bg-muted",e),...t}));bf.displayName=xf.displayName;var bx=C(({className:e,max:t,children:o,overlapOffset:r=-8,...a},n)=>{let s=Ie.toArray(o),i=t?s.slice(0,t):s,l=t?Math.max(0,s.length-t):0;return d("div",{ref:n,className:L("moonui-theme","flex items-center",e),...a,children:P("div",{className:"flex",children:[i.map((u,c)=>d("div",{className:"relative",style:{marginLeft:c===0?0:`${r}px`,zIndex:i.length-c},children:u},c)),l>0&&d("div",{className:"relative z-0",style:{marginLeft:`${r}px`},children:d(yf,{variant:"border",children:P(bf,{children:["+",l]})})})]})})});bx.displayName="AvatarGroup";N();var Cx=Q(["inline-flex items-center justify-center gap-1.5","font-medium transition-colors duration-200","border focus:outline-none","focus-visible:ring-2 focus-visible:ring-offset-1","mr-2 mb-2 last:mr-0"],{variants:{variant:{primary:["border-transparent bg-primary text-primary-foreground","hover:bg-primary/90","focus-visible:ring-primary/30 dark:focus-visible:ring-primary/40","dark:bg-primary/90 dark:shadow-inner dark:shadow-primary/10"],secondary:["border-transparent bg-secondary text-secondary-foreground","hover:bg-gray-200 dark:hover:bg-gray-600","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:bg-gray-700/50 dark:text-gray-50 dark:shadow-inner dark:shadow-gray-950/10"],outline:["border-gray-200 dark:border-gray-600","bg-transparent text-foreground","hover:border-gray-300 dark:hover:border-gray-500","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:text-gray-100 dark:bg-transparent dark:backdrop-blur-sm"],destructive:["border-transparent bg-error-600 text-white","hover:bg-error-700 dark:hover:bg-error-700","focus-visible:ring-error/30 dark:focus-visible:ring-error/25","dark:text-white dark:shadow-inner dark:shadow-error/10"],success:["border-transparent bg-success text-success-foreground","hover:bg-success/90 dark:hover:bg-success/80","focus-visible:ring-success/30 dark:focus-visible:ring-success/25","dark:bg-success/90 dark:text-success-foreground dark:shadow-inner dark:shadow-success/10"],warning:["border-transparent bg-warning text-warning-foreground","hover:bg-warning/90 dark:hover:bg-warning/80","focus-visible:ring-warning/30 dark:focus-visible:ring-warning/25","dark:bg-warning/90 dark:text-warning-foreground dark:shadow-inner dark:shadow-warning/10"],ghost:["border border-gray-200 bg-gray-50/50 text-gray-700","hover:bg-gray-100 dark:hover:bg-gray-800/60","focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40","dark:border-gray-700 dark:bg-gray-800/30 dark:text-gray-300","transition-all duration-200"],pro:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"],admin:["border-transparent bg-gradient-to-r from-purple-600 to-pink-600 text-white","hover:from-purple-700 hover:to-pink-700","focus-visible:ring-purple-400/30 dark:focus-visible:ring-purple-500/40","shadow-md dark:shadow-lg dark:shadow-purple-500/10"]},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-3 text-sm",lg:"h-8 px-4 text-base"},radius:{default:"rounded-full",sm:"rounded-md",lg:"rounded-xl",none:"rounded-none"}},defaultVariants:{variant:"primary",size:"md",radius:"default"}}),Lt=C(({className:e,variant:t,size:o,radius:r,withDot:a,dotColor:n,removable:s,onRemove:i,removeLabel:l,leftIcon:u,rightIcon:c,noAutoSpacing:f,children:p,...m},h)=>{let g=u,v=p;return t==="pro"&&(g=u||P("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:[d("path",{d:"M12 0L13.09 8.26L22 9L13.09 9.74L12 18L10.91 9.74L2 9L10.91 8.26L12 0Z",fill:"currentColor"}),d("path",{d:"M19 5L19.5 7L21 7.5L19.5 8L19 10L18.5 8L17 7.5L18.5 7L19 5Z",fill:"currentColor"}),d("path",{d:"M19 15L19.5 17L21 17.5L19.5 18L19 20L18.5 18L17 17.5L18.5 17L19 15Z",fill:"currentColor"})]}),v=p||"Pro"),t==="admin"&&(g=u||d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-3 h-3",children:d("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"currentColor"})}),v=p||"Admin Pro"),P("div",{ref:h,className:L("moonui-theme",Cx({variant:t,size:o,radius:r}),f&&"mr-0 mb-0",e),"data-removable":s?"":void 0,...m,children:[a&&d("span",{className:L("h-2 w-2 rounded-full",n||(t==="destructive"||t==="success"||t==="warning"?"bg-white":t==="secondary"?"bg-secondary-foreground":t==="outline"||t==="ghost"?"bg-foreground":t==="pro"||t==="admin"?"bg-white":"bg-primary-foreground")),"aria-hidden":"true"}),g&&d("span",{className:"inline-flex shrink-0 items-center",children:g}),d("span",{className:"inline-flex items-center",children:v}),c&&d("span",{className:"inline-flex shrink-0 items-center",children:c}),s&&i&&d("button",{type:"button",className:"ml-1 -mr-1 h-3.5 w-3.5 rounded-full inline-flex items-center justify-center hover:bg-black/10 dark:hover:bg-white/10",onClick:x=>{x.stopPropagation(),i()},"aria-label":l||(ii(v)?`Remove ${ii(v)}`:"Remove badge"),children:d("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"opacity-70","aria-hidden":"true",children:d("path",{d:"M0.799988 7.19999L7.19999 0.799988M0.799988 0.799988L7.19999 7.19999",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Lt.displayName="Badge";N();var YD=Q("flex items-center gap-1.5 text-sm",{variants:{variant:{default:"text-foreground transition-colors",muted:"text-muted-foreground transition-colors",ghost:"text-foreground/60 transition-colors"},size:{md:"text-sm",sm:"text-xs",lg:"text-base",default:"text-sm"}},defaultVariants:{variant:"default",size:"md"}}),wx=ce(void 0),Sx=C(({className:e,variant:t,size:o,separator:r,showHomeIcon:a,...n},s)=>d(wx.Provider,{value:r,children:d("nav",{ref:s,className:L("moonui-theme",YD({variant:t,size:o}),e),"aria-label":"breadcrumb",...n})}));Sx.displayName="Breadcrumb";var Rx=C(({className:e,collapsed:t,collapsedWidth:o=3,...r},a)=>{let n=Ie.toArray(r.children).filter(Boolean),s=n.length;if(t&&s>o){let i=n[0],l=n.slice(-2);return P("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r,children:[i,d(Cf,{}),l]})}return d("ol",{ref:a,className:L("flex flex-wrap items-center gap-1.5 sm:gap-2.5",e),...r})});Rx.displayName="BreadcrumbList";var Ix=C(({className:e,isCurrent:t,href:o,asChild:r=!1,children:a,...n},s)=>{let i=r?jl:o?"a":"span",l=!r&&o?{href:o}:{};return d("li",{ref:s,className:L("moonui-theme","inline-flex items-center gap-1.5",e),...n,children:d(i,{"aria-current":t?"page":void 0,className:L("transition-colors duration-200 hover:text-foreground",t?"font-medium text-foreground":"text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30"),...l,children:a})})});Ix.displayName="BreadcrumbItem";var Px=({children:e,className:t,icon:o,...r})=>{let a=ae(wx);return d("span",{role:"presentation","aria-hidden":"true",className:L("moonui-theme","text-muted-foreground opacity-70",t),...r,children:e||o||a||d(wt,{className:"h-3.5 w-3.5"})})};Px.displayName="BreadcrumbSeparator";var Cf=({className:e,icon:t,...o})=>P("span",{role:"presentation",className:L("moonui-theme","flex items-center text-muted-foreground hover:text-foreground/80 transition-colors duration-200",e),...o,children:[d("span",{"aria-hidden":"true",className:"flex items-center",children:t||d(ko,{className:"h-4 w-4"})}),d("span",{className:"sr-only",children:"More pages"})]});Cf.displayName="BreadcrumbEllipsis";var Lx=C(({className:e,href:t,...o},r)=>d("a",{ref:r,href:t,className:L("transition-colors duration-200 hover:text-foreground text-muted-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30",e),...o}));Lx.displayName="BreadcrumbLink";var Tx=C(({className:e,...t},o)=>d("span",{ref:o,className:L("font-medium text-foreground dark:text-white dark:text-opacity-95",e),...t}));Tx.displayName="BreadcrumbPage";N();var ru=Q(["inline-flex items-center justify-center gap-2 whitespace-nowrap","font-medium relative","transition-all duration-200 ease-out","transform active:scale-[0.98]","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none disabled:transform-none"],{variants:{variant:{primary:["bg-primary text-primary-foreground","dark:bg-primary dark:text-primary-foreground","hover:bg-primary/90 dark:hover:bg-primary/90","active:bg-primary/80 dark:active:bg-primary/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],secondary:["bg-gray-100 text-gray-900","dark:bg-gray-800 dark:text-gray-100","hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600","border border-input","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","shadow-sm hover:shadow-md"],outline:["bg-background text-foreground","dark:bg-background dark:text-foreground","border border-input dark:border-input","hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground","active:bg-accent/80 dark:active:bg-accent/80","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],ghost:["text-gray-700","dark:text-gray-300","hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-100","active:bg-gray-200 dark:active:bg-gray-700","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],destructive:["bg-destructive text-destructive-foreground","dark:bg-error-600 dark:text-destructive-foreground","hover:bg-destructive/90 dark:hover:bg-error-700","active:bg-destructive/80 dark:active:bg-error-800","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],success:["bg-success text-success-foreground","dark:bg-success dark:text-success-foreground","hover:bg-success/90 dark:hover:bg-success/90","active:bg-success/80 dark:active:bg-success/80","shadow-sm hover:shadow-md","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","transition-all duration-200"],link:["text-primary bg-transparent","underline-offset-4 hover:underline","hover:text-primary/80 active:text-primary/70","p-0 h-auto","transition-colors duration-200"],gradient:["bg-gradient-to-r from-purple-500 to-pink-500 text-white","hover:from-purple-600 hover:to-pink-600","active:from-purple-700 active:to-pink-700","shadow-xl shadow-purple-500/40","hover:shadow-2xl hover:shadow-purple-500/50","focus-visible:ring-purple-500/50","transition-all duration-300"],glow:["bg-blue-500 text-white","shadow-[0_0_30px_rgba(59,130,246,0.5)]","hover:shadow-[0_0_40px_rgba(59,130,246,0.7)]","active:shadow-[0_0_20px_rgba(59,130,246,0.4)]","hover:bg-blue-600","focus-visible:ring-blue-500/50","transition-all duration-300"],soft:["bg-primary/10 text-primary","hover:bg-primary/20","active:bg-primary/30","focus-visible:ring-primary/50","dark:bg-primary/20 dark:text-primary-foreground","dark:hover:bg-primary/30 dark:active:bg-primary/40","transition-colors duration-200"],glass:["bg-white/10 backdrop-blur-md text-foreground","border border-white/20","hover:bg-white/20 hover:border-white/30","active:bg-white/30","shadow-lg","focus-visible:ring-white/50","dark:bg-gray-800/10 dark:border-gray-700/20","dark:hover:bg-gray-800/20 dark:hover:border-gray-700/30","transition-all duration-200"],neon:["bg-transparent text-green-400","border-2 border-green-400","hover:bg-green-400 hover:text-gray-900","hover:shadow-[0_0_30px_rgba(74,222,128,0.6)]","active:shadow-[0_0_15px_rgba(74,222,128,0.4)]","focus-visible:ring-green-400/50","transition-all duration-300"]},size:{xs:"h-7 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-base",lg:"h-12 px-6 text-lg",xl:"h-14 px-8 text-xl",icon:"h-10 w-10 p-2","icon-sm":"h-8 w-8 p-1.5","icon-lg":"h-12 w-12 p-3"},rounded:{default:"rounded-xl",full:"rounded-full",none:"rounded-none",sm:"rounded-lg",lg:"rounded-2xl"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md",rounded:"default",fullWidth:!1}}),Te=C(({className:e,variant:t,size:o,rounded:r,fullWidth:a,asChild:n=!1,loading:s=!1,leftIcon:i,rightIcon:l,children:u,disabled:c,...f},p)=>P("button",{className:L("moonui-theme",ru({variant:t,size:o,rounded:r,fullWidth:a,className:e})),ref:p,disabled:c||s,"aria-busy":s||void 0,"data-loading":s?"":void 0,...f,children:[s&&d(ot,{className:"w-4 h-4 animate-spin","aria-hidden":"true"}),!s&&i,u,!s&&l]}));Te.displayName="Button";N();N();N();var cn=ce({});N();function Eo(e){let t=E(null);return t.current===null&&(t.current=e()),t.current}N();var dn=typeof window<"u";var fn=dn?ct:D;N();N();N();var Cr=ce(null);function ua(e,t){e.indexOf(t)===-1&&e.push(t)}function io(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}var it=(e,t,o)=>o>t?t:o<e?e:o;var zo=()=>{},dt=()=>{};var mt={};var li=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ui(e){return typeof e=="object"&&e!==null}var ci=e=>/^0[^.\s]+$/u.test(e);function ca(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ke=e=>e;var ZD=(e,t)=>o=>t(e(o)),lo=(...e)=>e.reduce(ZD);var zt=(e,t,o)=>{let r=t-e;return r===0?1:(o-e)/r};var Wo=class{constructor(){this.subscriptions=[]}add(t){return ua(this.subscriptions,t),()=>io(this.subscriptions,t)}notify(t,o,r){let a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,o,r);else for(let n=0;n<a;n++){let s=this.subscriptions[n];s&&s(t,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var et=e=>e*1e3,rt=e=>e/1e3;function di(e,t){return t?e*(1e3/t):0}var Mx=(e,t,o)=>{let r=t-e;return((o-e)%r+r)%r+e};var kx=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,QD=1e-7,JD=12;function e1(e,t,o,r,a){let n,s,i=0;do s=t+(o-t)/2,n=kx(s,r,a)-e,n>0?o=s:t=s;while(Math.abs(n)>QD&&++i<JD);return s}function wr(e,t,o,r){if(e===t&&o===r)return Ke;let a=n=>e1(n,0,1,e,o);return n=>n===0||n===1?n:kx(a(n),t,r)}var au=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var nu=e=>t=>1-e(1-t);var su=wr(.33,1.53,.69,.99),pn=nu(su),fi=au(pn);var pi=e=>(e*=2)<1?.5*pn(e):.5*(2-Math.pow(2,-10*(e-1)));var mi=e=>1-Math.sin(Math.acos(e)),gi=nu(mi),hi=au(mi);var wf=wr(.42,0,1,1),Sf=wr(0,0,.58,1),vi=wr(.42,0,.58,1);var xi=e=>Array.isArray(e)&&typeof e[0]!="number";function yi(e,t){return xi(e)?e[Mx(0,e.length,t)]:e}var bi=e=>Array.isArray(e)&&typeof e[0]=="number";var Ex={linear:Ke,easeIn:wf,easeInOut:vi,easeOut:Sf,circIn:mi,circInOut:hi,circOut:gi,backIn:pn,backInOut:fi,backOut:su,anticipate:pi},t1=e=>typeof e=="string",iu=e=>{if(bi(e)){dt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,r,a]=e;return wr(t,o,r,a)}else if(t1(e))return dt(Ex[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ex[e];return e};var Ci=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Tt={value:null,addProjectionMetrics:null};function Ax(e,t){let o=new Set,r=new Set,a=!1,n=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){s.has(f)&&(c.schedule(f),e()),l++,f(i)}let c={schedule:(f,p=!1,m=!1)=>{let g=m&&a?o:r;return p&&s.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(i=f,a){n=!0;return}a=!0,[o,r]=[r,o],o.forEach(u),t&&Tt.value&&Tt.value.frameloop[t].push(l),l=0,o.clear(),a=!1,n&&(n=!1,c.process(f))}};return c}var o1=40;function lu(e,t){let o=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},n=()=>o=!0,s=Ci.reduce((b,R)=>(b[R]=Ax(n,t?R:void 0),b),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let b=mt.useManualTiming?a.timestamp:performance.now();o=!1,mt.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(b-a.timestamp,o1),1)),a.timestamp=b,a.isProcessing=!0,i.process(a),l.process(a),u.process(a),c.process(a),f.process(a),p.process(a),m.process(a),h.process(a),a.isProcessing=!1,o&&t&&(r=!1,e(g))},v=()=>{o=!0,r=!0,a.isProcessing||e(g)};return{schedule:Ci.reduce((b,R)=>{let w=s[R];return b[R]=(I,S=!1,T=!1)=>(o||v(),w.schedule(I,S,T)),b},{}),cancel:b=>{for(let R=0;R<Ci.length;R++)s[Ci[R]].cancel(b)},state:a,steps:s}}var{schedule:we,cancel:gt,state:Ye,steps:wi}=lu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);var uu;function r1(){uu=void 0}var Ze={now:()=>(uu===void 0&&Ze.set(Ye.isProcessing||mt.useManualTiming?Ye.timestamp:performance.now()),uu),set:e=>{uu=e,queueMicrotask(r1)}};var uo={layout:0,mainThread:0,waapi:0};var Dx=e=>t=>typeof t=="string"&&t.startsWith(e),da=Dx("--"),a1=Dx("var(--"),fa=e=>a1(e)?n1.test(e.split("/*")[0].trim()):!1,n1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ao={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qo={...Ao,transform:e=>it(0,1,e)},Si={...Ao,default:1};var Sr=e=>Math.round(e*1e5)/1e5;var mn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nx(e){return e==null}var Ox=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var gn=(e,t)=>o=>!!(typeof o=="string"&&Ox.test(o)&&o.startsWith(e)||t&&!Nx(o)&&Object.prototype.hasOwnProperty.call(o,t)),cu=(e,t,o)=>r=>{if(typeof r!="string")return r;let[a,n,s,i]=r.match(mn);return{[e]:parseFloat(a),[t]:parseFloat(n),[o]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var s1=e=>it(0,255,e),Rf={...Ao,transform:e=>Math.round(s1(e))},Do={test:gn("rgb","red"),parse:cu("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:r=1})=>"rgba("+Rf.transform(e)+", "+Rf.transform(t)+", "+Rf.transform(o)+", "+Sr(qo.transform(r))+")"};function i1(e){let t="",o="",r="",a="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,o+=o,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}var Ri={test:gn("#"),parse:i1,transform:Do.transform};var Ii=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),co=Ii("deg"),ht=Ii("%"),de=Ii("px"),If=Ii("vh"),Pf=Ii("vw"),du=(()=>({...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)}))();var Rr={test:gn("hsl","hue"),parse:cu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Sr(t))+", "+ht.transform(Sr(o))+", "+Sr(qo.transform(r))+")"};var je={test:e=>Do.test(e)||Ri.test(e)||Rr.test(e),parse:e=>Do.test(e)?Do.parse(e):Rr.test(e)?Rr.parse(e):Ri.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):Rr.transform(e),getAnimatableNone:e=>{let t=je.parse(e);return t.alpha=0,je.transform(t)}};var Fx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function l1(e){return isNaN(e)&&typeof e=="string"&&(e.match(mn)?.length||0)+(e.match(Fx)?.length||0)>0}var Vx="number",Bx="color",u1="var",c1="var(",_x="${}",d1=/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 Ir(e){let t=e.toString(),o=[],r={color:[],number:[],var:[]},a=[],n=0,i=t.replace(d1,l=>(je.test(l)?(r.color.push(n),a.push(Bx),o.push(je.parse(l))):l.startsWith(c1)?(r.var.push(n),a.push(u1),o.push(l)):(r.number.push(n),a.push(Vx),o.push(parseFloat(l))),++n,_x)).split(_x);return{values:o,split:i,indexes:r,types:a}}function Hx(e){return Ir(e).values}function Ux(e){let{split:t,types:o}=Ir(e),r=t.length;return a=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],a[s]!==void 0){let i=o[s];i===Vx?n+=Sr(a[s]):i===Bx?n+=je.transform(a[s]):n+=a[s]}return n}}var f1=e=>typeof e=="number"?0:je.test(e)?je.getAnimatableNone(e):e;function p1(e){let t=Hx(e);return Ux(e)(t.map(f1))}var vt={test:l1,parse:Hx,createTransformer:Ux,getAnimatableNone:p1};function Lf(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Gx({hue:e,saturation:t,lightness:o,alpha:r}){e/=360,t/=100,o/=100;let a=0,n=0,s=0;if(!t)a=n=s=o;else{let i=o<.5?o*(1+t):o+t-o*t,l=2*o-i;a=Lf(l,i,e+1/3),n=Lf(l,i,e),s=Lf(l,i,e-1/3)}return{red:Math.round(a*255),green:Math.round(n*255),blue:Math.round(s*255),alpha:r}}function hn(e,t){return o=>o>0?t:e}var Re=(e,t,o)=>e+(t-e)*o;var Tf=(e,t,o)=>{let r=e*e,a=o*(t*t-r)+r;return a<0?0:Math.sqrt(a)},m1=[Ri,Do,Rr],g1=e=>m1.find(t=>t.test(e));function zx(e){let t=g1(e);if(zo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Rr&&(o=Gx(o)),o}var Mf=(e,t)=>{let o=zx(e),r=zx(t);if(!o||!r)return hn(e,t);let a={...o};return n=>(a.red=Tf(o.red,r.red,n),a.green=Tf(o.green,r.green,n),a.blue=Tf(o.blue,r.blue,n),a.alpha=Re(o.alpha,r.alpha,n),Do.transform(a))};var fu=new Set(["none","hidden"]);function Wx(e,t){return fu.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function h1(e,t){return o=>Re(e,t,o)}function pu(e){return typeof e=="number"?h1:typeof e=="string"?fa(e)?hn:je.test(e)?Mf:y1:Array.isArray(e)?qx:typeof e=="object"?je.test(e)?Mf:v1:hn}function qx(e,t){let o=[...e],r=o.length,a=e.map((n,s)=>pu(n)(n,t[s]));return n=>{for(let s=0;s<r;s++)o[s]=a[s](n);return o}}function v1(e,t){let o={...e,...t},r={};for(let a in o)e[a]!==void 0&&t[a]!==void 0&&(r[a]=pu(e[a])(e[a],t[a]));return a=>{for(let n in r)o[n]=r[n](a);return o}}function x1(e,t){let o=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let n=t.types[a],s=e.indexes[n][r[n]],i=e.values[s]??0;o[a]=i,r[n]++}return o}var y1=(e,t)=>{let o=vt.createTransformer(t),r=Ir(e),a=Ir(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?fu.has(e)&&!a.values.length||fu.has(t)&&!r.values.length?Wx(e,t):lo(qx(x1(r,a),a.values),o):(zo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),hn(e,t))};function mu(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?Re(e,t,o):pu(e)(e,t)}var $x=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>we.update(t,o),stop:()=>gt(t),now:()=>Ye.isProcessing?Ye.timestamp:Ze.now()}};var gu=(e,t,o=10)=>{let r="",a=Math.max(Math.round(t/o),2);for(let n=0;n<a;n++)r+=Math.round(e(n/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function vn(e){let t=0,o=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=o,r=e.next(t);return t>=2e4?1/0:t}function Pi(e,t=100,o){let r=o({...e,keyframes:[0,t]}),a=Math.min(vn(r),2e4);return{type:"keyframes",ease:n=>r.next(a*n).value/t,duration:rt(a)}}var b1=5;function hu(e,t,o){let r=Math.max(t-b1,0);return di(o-e(r),t-r)}var We={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};var Ef=.001;function jx({duration:e=We.duration,bounce:t=We.bounce,velocity:o=We.velocity,mass:r=We.mass}){let a,n;zo(e<=et(We.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=it(We.minDamping,We.maxDamping,s),e=it(We.minDuration,We.maxDuration,rt(e)),s<1?(a=u=>{let c=u*s,f=c*e,p=c-o,m=vu(u,s),h=Math.exp(-f);return Ef-p/m*h},n=u=>{let f=u*s*e,p=f*o+o,m=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-f),g=vu(Math.pow(u,2),s);return(-a(u)+Ef>0?-1:1)*((p-m)*h)/g}):(a=u=>{let c=Math.exp(-u*e),f=(u-o)*e+1;return-Ef+c*f},n=u=>{let c=Math.exp(-u*e),f=(o-u)*(e*e);return c*f});let i=5/e,l=w1(a,n,i);if(e=et(e),isNaN(l))return{stiffness:We.stiffness,damping:We.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var C1=12;function w1(e,t,o){let r=o;for(let a=1;a<C1;a++)r=r-e(r)/t(r);return r}function vu(e,t){return e*Math.sqrt(1-t*t)}var S1=["duration","bounce"],R1=["stiffness","damping","mass"];function Kx(e,t){return t.some(o=>e[o]!==void 0)}function I1(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!Kx(e,R1)&&Kx(e,S1))if(e.visualDuration){let o=e.visualDuration,r=2*Math.PI/(o*1.2),a=r*r,n=2*it(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:We.mass,stiffness:a,damping:n}}else{let o=jx(e);t={...t,...o,mass:We.mass},t.isResolvedFromDuration=!0}return t}function $o(e=We.visualDuration,t=We.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:a}=o,n=o.keyframes[0],s=o.keyframes[o.keyframes.length-1],i={done:!1,value:n},{stiffness:l,damping:u,mass:c,duration:f,velocity:p,isResolvedFromDuration:m}=I1({...o,velocity:-rt(o.velocity||0)}),h=p||0,g=u/(2*Math.sqrt(l*c)),v=s-n,x=rt(Math.sqrt(l/c)),y=Math.abs(v)<5;r||(r=y?We.restSpeed.granular:We.restSpeed.default),a||(a=y?We.restDelta.granular:We.restDelta.default);let b;if(g<1){let w=vu(x,g);b=I=>{let S=Math.exp(-g*x*I);return s-S*((h+g*x*v)/w*Math.sin(w*I)+v*Math.cos(w*I))}}else if(g===1)b=w=>s-Math.exp(-x*w)*(v+(h+x*v)*w);else{let w=x*Math.sqrt(g*g-1);b=I=>{let S=Math.exp(-g*x*I),T=Math.min(w*I,300);return s-S*((h+g*x*v)*Math.sinh(T)+w*v*Math.cosh(T))/w}}let R={calculatedDuration:m&&f||null,next:w=>{let I=b(w);if(m)i.done=w>=f;else{let S=w===0?h:0;g<1&&(S=w===0?et(h):hu(b,w,I));let T=Math.abs(S)<=r,M=Math.abs(s-I)<=a;i.done=T&&M}return i.value=i.done?s:I,i},toString:()=>{let w=Math.min(vn(R),2e4),I=gu(S=>R.next(w*S).value,w,30);return w+"ms "+I},toTransition:()=>{}};return R}$o.applyToOptions=e=>{let t=Pi(e,100,$o);return e.ease=t.ease,e.duration=et(t.duration),e.type="keyframes",e};function Li({keyframes:e,velocity:t=0,power:o=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:n=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let f=e[0],p={done:!1,value:f},m=T=>i!==void 0&&T<i||l!==void 0&&T>l,h=T=>i===void 0?l:l===void 0||Math.abs(i-T)<Math.abs(l-T)?i:l,g=o*t,v=f+g,x=s===void 0?v:s(v);x!==v&&(g=x-f);let y=T=>-g*Math.exp(-T/r),b=T=>x+y(T),R=T=>{let M=y(T),A=b(T);p.done=Math.abs(M)<=u,p.value=p.done?x:A},w,I,S=T=>{m(p.value)&&(w=T,I=$o({keyframes:[p.value,h(p.value)],velocity:hu(b,T,p.value),damping:a,stiffness:n,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:T=>{let M=!1;return!I&&w===void 0&&(M=!0,R(T),S(T)),w!==void 0&&T>=w?I.next(T-w):(!M&&R(T),p)}}}function P1(e,t,o){let r=[],a=o||mt.mix||mu,n=e.length-1;for(let s=0;s<n;s++){let i=a(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Ke:t;i=lo(l,i)}r.push(i)}return r}function xu(e,t,{clamp:o=!0,ease:r,mixer:a}={}){let n=e.length;if(dt(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=P1(t,r,a),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);let p=zt(e[f],e[f+1],c);return i[f](p)};return o?c=>u(it(e[0],e[n-1],c)):u}function Ti(e,t){let o=e[e.length-1];for(let r=1;r<=t;r++){let a=zt(0,t,r);e.push(Re(o,1,a))}}function Mi(e){let t=[0];return Ti(t,e.length-1),t}function Xx(e,t){return e.map(o=>o*t)}function L1(e,t){return e.map(()=>t||vi).splice(0,e.length-1)}function pa({duration:e=300,keyframes:t,times:o,ease:r="easeInOut"}){let a=xi(r)?r.map(iu):iu(r),n={done:!1,value:t[0]},s=Xx(o&&o.length===t.length?o:Mi(t),e),i=xu(s,t,{ease:Array.isArray(a)?a:L1(t,a)});return{calculatedDuration:e,next:l=>(n.value=i(l),n.done=l>=e,n)}}var T1=e=>e!==null;function xn(e,{repeat:t,repeatType:o="loop"},r,a=1){let n=e.filter(T1),i=a<0||t&&o!=="loop"&&t%2===1?0:n.length-1;return!i||r===void 0?n[i]:r}var M1={decay:Li,inertia:Li,tween:pa,keyframes:pa,spring:$o};function yu(e){typeof e.type=="string"&&(e.type=M1[e.type])}var Pr=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var k1=e=>e/100,jo=class extends Pr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},uo.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;yu(t);let{type:o=pa,repeat:r=0,repeatDelay:a=0,repeatType:n,velocity:s=0}=t,{keyframes:i}=t,l=o||pa;l!==pa&&typeof i[0]!="number"&&(this.mixKeyframes=lo(k1,mu(i[0],i[1])),i=[0,100]);let u=l({...t,keyframes:i});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=vn(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=u}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:r,totalDuration:a,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);let{delay:u=0,keyframes:c,repeat:f,repeatType:p,repeatDelay:m,type:h,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?x<0:x>a;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let b=this.currentTime,R=r;if(f){let T=Math.min(this.currentTime,a)/i,M=Math.floor(T),A=T%1;!A&&T>=1&&(A=1),A===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(p==="reverse"?(A=1-A,m&&(A-=m/i)):p==="mirror"&&(R=s)),b=it(0,1,A)*i}let w=y?{done:!1,value:c[0]}:R.next(b);n&&(w.value=n(w.value));let{done:I}=w;!y&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return S&&h!==Li&&(w.value=xn(c,this.options,v,this.speed)),g&&g(w.value),S&&this.finish(),w}then(t,o){return this.finished.then(t,o)}get duration(){return rt(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(this.currentTime)}set time(t){t=et(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ze.now());let o=this.playbackSpeed!==t;this.playbackSpeed=t,o&&(this.time=rt(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=$x,startTime:o}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();let r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??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(Ze.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,uo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function Yx(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ma=e=>e*180/Math.PI,Af=e=>{let t=ma(Math.atan2(e[1],e[0]));return Df(t)},E1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Af,rotateZ:Af,skewX:e=>ma(Math.atan(e[1])),skewY:e=>ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Df=e=>(e=e%360,e<0&&(e+=360),e),Zx=Af,Qx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Jx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),A1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Qx,scaleY:Jx,scale:e=>(Qx(e)+Jx(e))/2,rotateX:e=>Df(ma(Math.atan2(e[6],e[5]))),rotateY:e=>Df(ma(Math.atan2(-e[2],e[0]))),rotateZ:Zx,rotate:Zx,skewX:e=>ma(Math.atan(e[4])),skewY:e=>ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ki(e){return e.includes("scale")?1:0}function Ei(e,t){if(!e||e==="none")return ki(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,a;if(o)r=A1,a=o;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=E1,a=i}if(!a)return ki(t);let n=r[t],s=a[1].split(",").map(D1);return typeof n=="function"?n(s):s[n]}var Nf=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return Ei(o,t)};function D1(e){return parseFloat(e.trim())}var fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=(()=>new Set(fo))();var Of=e=>e===Ao||e===de,N1=new Set(["x","y","z"]),O1=fo.filter(e=>!N1.has(e));function ey(e){let t=[];return O1.forEach(o=>{let r=e.getValue(o);r!==void 0&&(t.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),t}var Lr={width:({x:e},{paddingLeft:t="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),height:({y:e},{paddingTop:t="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(t)-parseFloat(o),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})=>Ei(t,"x"),y:(e,{transform:t})=>Ei(t,"y")};Lr.translateX=Lr.x;Lr.translateY=Lr.y;var ga=new Set,Ff=!1,_f=!1,Vf=!1;function ty(){if(_f){let e=Array.from(ga).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),o=new Map;t.forEach(r=>{let a=ey(r);a.length&&(o.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let a=o.get(r);a&&a.forEach(([n,s])=>{r.getValue(n)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_f=!1,Ff=!1,ga.forEach(e=>e.complete(Vf)),ga.clear()}function oy(){ga.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_f=!0)})}function Bf(){Vf=!0,oy(),ty(),Vf=!1}var Ko=class{constructor(t,o,r,a,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=r,this.motionValue=a,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ga.add(this),Ff||(Ff=!0,we.read(oy),we.resolveKeyframes(ty))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:r,motionValue:a}=this;if(t[0]===null){let n=a?.get(),s=t[t.length-1];if(n!==void 0)t[0]=n;else if(r&&o){let i=r.readValue(o,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),a&&n===void 0&&a.set(t[0])}Yx(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ga.delete(this)}cancel(){this.state==="scheduled"&&(ga.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var ry=e=>e.startsWith("--");function ay(e,t,o){ry(t)?e.style.setProperty(t,o):e.style[t]=o}var ny=ca(()=>window.ScrollTimeline!==void 0);var sy={};function iy(e,t){let o=ca(e);return()=>sy[t]??o()}var bu=iy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ha=([e,t,o,r])=>`cubic-bezier(${e}, ${t}, ${o}, ${r})`;var Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ha([0,.65,.55,1]),circOut:ha([.55,0,1,.45]),backIn:ha([.31,.01,.66,-.59]),backOut:ha([.33,1.53,.69,.99])};function Uf(e,t){if(e)return typeof e=="function"?bu()?gu(e,t):"ease-out":bi(e)?ha(e):Array.isArray(e)?e.map(o=>Uf(o,t)||Hf.easeOut):Hf[e]}function ly(e,t,o,{delay:r=0,duration:a=300,repeat:n=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:o};l&&(c.offset=l);let f=Uf(i,a);Array.isArray(f)&&(c.easing=f),Tt.value&&uo.waapi++;let p={delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:n+1,direction:s==="reverse"?"alternate":"normal"};u&&(p.pseudoElement=u);let m=e.animate(c,p);return Tt.value&&m.finished.finally(()=>{uo.waapi--}),m}function va(e){return typeof e=="function"&&"applyToOptions"in e}function uy({type:e,...t}){return va(e)&&bu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Cu=class extends Pr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:o,name:r,keyframes:a,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,dt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=uy(t);this.animation=ly(o,r,a,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let c=xn(a,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(c):ay(o,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return rt(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+rt(t)}get time(){return rt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=et(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ny()?(this.animation.timeline=t,Ke):o(this)}};var cy={anticipate:pi,backInOut:fi,circInOut:hi};function F1(e){return e in cy}function dy(e){typeof e.ease=="string"&&F1(e.ease)&&(e.ease=cy[e.ease])}var fy=10,wu=class extends Cu{constructor(t){dy(t),yu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:r,onComplete:a,element:n,...s}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let i=new jo({...s,autoplay:!1}),l=et(this.finishedTime??this.time);o.setWithVelocity(i.sample(l-fy).value,i.sample(l).value,fy),i.stop()}};var Gf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vt.test(e)||e==="0")&&!e.startsWith("url("));function _1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function py(e,t,o,r){let a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],s=Gf(a,t),i=Gf(n,t);return zo(s===i,`You are trying to animate ${t} from "${a}" to "${n}". "${s?n:a}" is not an animatable value.`,"value-not-animatable"),!s||!i?!1:_1(e)||(o==="spring"||va(o))&&r}function yn(e){e.duration=0,e.type="keyframes"}var V1=new Set(["opacity","clipPath","filter","transform"]),B1=ca(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function my(e){let{motionValue:t,name:o,repeatDelay:r,repeatType:a,damping:n,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return B1()&&o&&V1.has(o)&&(o!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&n!==0&&s!=="inertia"}var H1=40,Ai=class extends Pr{constructor({autoplay:t=!0,delay:o=0,type:r="keyframes",repeat:a=0,repeatDelay:n=0,repeatType:s="loop",keyframes:i,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ze.now();let p={autoplay:t,delay:o,type:r,repeat:a,repeatDelay:n,repeatType:s,name:l,motionValue:u,element:c,...f},m=c?.KeyframeResolver||Ko;this.keyframeResolver=new m(i,(h,g,v)=>this.onKeyframesResolved(h,g,p,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,r,a){this.keyframeResolver=void 0;let{name:n,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ze.now(),py(t,n,s,i)||((mt.instantAnimations||!l)&&c?.(xn(t,r,o)),t[0]=t[t.length-1],yn(r),r.repeat=0);let p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>H1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:t},m=!u&&my(p)?new wu({...p,element:p.motionValue.owner.current}):new jo(p);m.finished.then(()=>this.notifyFinished()).catch(Ke),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Bf()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var Su=class{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,o){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=o}attachTimeline(t){let o=this.animations.map(r=>r.attachTimeline(t));return()=>{o.forEach((r,a)=>{r&&r(),this.animations[a].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 gy(this.animations,"duration")}get iterationDuration(){return gy(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(o=>o[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function gy(e,t){let o=0;for(let r=0;r<e.length;r++){let a=e[r][t];a!==null&&a>o&&(o=a)}return o}var Di=class extends Su{then(t,o){return this.finished.finally(t).then(()=>{})}};var U1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G1(e){let t=U1.exec(e);if(!t)return[,];let[,o,r,a]=t;return[`--${o??r}`,a]}var z1=4;function zf(e,t,o=1){dt(o<=z1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,a]=G1(e);if(!r)return;let n=window.getComputedStyle(t).getPropertyValue(r);if(n){let s=n.trim();return li(s)?parseFloat(s):s}return fa(a)?zf(a,t,o+1):a}function xa(e,t){return e?.[t]??e?.default??e}var Ni=new Set(["width","height","top","left","right","bottom",...fo]);var hy={test:e=>e==="auto",parse:e=>e};var Ru=e=>t=>t.test(e);var Wf=[Ao,de,ht,co,Pf,If,hy],qf=e=>Wf.find(Ru(e));function vy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ci(e):!0}var W1=new Set(["brightness","contrast","saturate","opacity"]);function q1(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=o.match(mn)||[];if(!r)return e;let a=o.replace(r,""),n=W1.has(t)?1:0;return r!==o&&(n*=100),t+"("+n+a+")"}var $1=/\b([a-z-]*)\(.*?\)/gu,Oi={...vt,getAnimatableNone:e=>{let t=e.match($1);return t?t.map(q1).join(" "):e}};var $f={...Ao,transform:Math.round};var xy={rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:Si,scaleX:Si,scaleY:Si,scaleZ:Si,skew:co,skewX:co,skewY:co,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:qo,originX:du,originY:du,originZ:de};var ya={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de,...xy,zIndex:$f,fillOpacity:qo,strokeOpacity:qo,numOctaves:$f};var yy={...ya,color:je,backgroundColor:je,outlineColor:je,fill:je,stroke:je,borderColor:je,borderTopColor:je,borderRightColor:je,borderBottomColor:je,borderLeftColor:je,filter:Oi,WebkitFilter:Oi},Fi=e=>yy[e];function _i(e,t){let o=Fi(e);return o!==Oi&&(o=vt),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var j1=new Set(["auto","none","0"]);function by(e,t,o){let r=0,a;for(;r<e.length&&!a;){let n=e[r];typeof n=="string"&&!j1.has(n)&&Ir(n).values.length&&(a=e[r]),r++}if(a&&o)for(let n of t)e[n]=_i(o,a)}var Vi=class extends Ko{constructor(t,o,r,a,n){super(t,o,r,a,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),fa(u))){let c=zf(u,o.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ni.has(r)||t.length!==2)return;let[a,n]=t,s=qf(a),i=qf(n);if(s!==i)if(Of(s)&&Of(i))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Lr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||vy(t[a]))&&r.push(a);r.length&&by(t,r,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let a=o[o.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let a=t.getValue(o);a&&a.jump(this.measuredOrigin,!1);let n=r.length-1,s=r[n];r[n]=Lr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([i,l])=>{t.getValue(i).set(l)}),this.resolveNoneKeyframes()}};function Bi(e,t,o){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);let a=o?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}var Hi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ui(e){return ui(e)&&"offsetHeight"in e}var Cy=30,K1=e=>!isNaN(parseFloat(e)),ba={current:void 0},Iu=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{let a=Ze.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=K1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new Wo);let r=this.events[t].add(o);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.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 ba.current&&ba.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Cy)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,Cy);return di(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Mt(e,t){return new Iu(e,t)}var{schedule:Ca,cancel:X1}=lu(queueMicrotask,!1);var Wt={x:!1,y:!1};function Pu(){return Wt.x||Wt.y}function jf(e){return e==="x"||e==="y"?Wt[e]?null:(Wt[e]=!0,()=>{Wt[e]=!1}):Wt.x||Wt.y?null:(Wt.x=Wt.y=!0,()=>{Wt.x=Wt.y=!1})}function Lu(e,t){let o=Bi(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[o,a,()=>r.abort()]}function wy(e){return!(e.pointerType==="touch"||Pu())}function Kf(e,t,o={}){let[r,a,n]=Lu(e,o),s=i=>{if(!wy(i))return;let{target:l}=i,u=t(l,i);if(typeof u!="function"||!l)return;let c=f=>{wy(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,a)};return r.forEach(i=>{i.addEventListener("pointerenter",s,a)}),n}var Xf=(e,t)=>t?e===t?!0:Xf(e,t.parentElement):!1;var wa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var Y1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sy(e){return Y1.has(e.tagName)||e.tabIndex!==-1}var bn=new WeakSet;function Ry(e){return t=>{t.key==="Enter"&&e(t)}}function Yf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var Iy=(e,t)=>{let o=e.currentTarget;if(!o)return;let r=Ry(()=>{if(bn.has(o))return;Yf(o,"down");let a=Ry(()=>{Yf(o,"up")}),n=()=>Yf(o,"cancel");o.addEventListener("keyup",a,t),o.addEventListener("blur",n,t)});o.addEventListener("keydown",r,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),t)};function Py(e){return wa(e)&&!Pu()}function Zf(e,t,o={}){let[r,a,n]=Lu(e,o),s=i=>{let l=i.currentTarget;if(!Py(i))return;bn.add(l);let u=t(l,i),c=(m,h)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),bn.has(l)&&bn.delete(l),Py(m)&&typeof u=="function"&&u(m,{success:h})},f=m=>{c(m,l===window||l===document||o.useGlobalTarget||Xf(l,m.target))},p=m=>{c(m,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",p,a)};return r.forEach(i=>{(o.useGlobalTarget?window:i).addEventListener("pointerdown",s,a),Ui(i)&&(i.addEventListener("focus",u=>Iy(u,a)),!Sy(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),n}function Sa(e){return ui(e)&&"ownerSVGElement"in e}function Gi(e){return Sa(e)&&e.tagName==="svg"}function Qf(...e){let t=!Array.isArray(e[0]),o=t?0:-1,r=e[0+o],a=e[1+o],n=e[2+o],s=e[3+o],i=xu(a,n,s);return t?i(r):i}var De=e=>!!(e&&e.getVelocity);var Z1=[...Wf,je,vt],Jf=e=>Z1.find(Ru(e));N();N();N();var Tr=ce({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});N();function Ly(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Q1(...e){return t=>{let o=!1,r=e.map(a=>{let n=Ly(a,t);return!o&&typeof n=="function"&&(o=!0),n});if(o)return()=>{for(let a=0;a<r.length;a++){let n=r[a];typeof n=="function"?n():Ly(e[a],null)}}}}function Ty(...e){return H(Q1(...e),e)}var ep=class extends Rs{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(o&&t.isPresent&&!this.props.isPresent){let r=o.offsetParent,a=Ui(r)&&r.offsetWidth||0,n=this.props.sizeRef.current;n.height=o.offsetHeight||0,n.width=o.offsetWidth||0,n.top=o.offsetTop,n.left=o.offsetLeft,n.right=a-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}};function My({children:e,isPresent:t,anchorX:o,root:r}){let a=qe(),n=E(null),s=E({width:0,height:0,top:0,left:0,right:0}),{nonce:i}=ae(Tr),l=Ty(n,e?.ref);return Is(()=>{let{width:u,height:c,top:f,left:p,right:m}=s.current;if(t||!n.current||!u||!c)return;let h=o==="left"?`left: ${p}`:`right: ${m}`;n.current.dataset.motionPopId=a;let g=document.createElement("style");i&&(g.nonce=i);let v=r??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
|
|
6
6
|
[data-motion-pop-id="${a}"] {
|
|
7
7
|
position: absolute !important;
|
|
8
8
|
width: ${u}px !important;
|