diff --git a/starter/assets/2AaRyeKOjg4f.js b/starter/assets/2AaRyeKOjg4f.js new file mode 100644 index 000000000..43836c37f --- /dev/null +++ b/starter/assets/2AaRyeKOjg4f.js @@ -0,0 +1,95 @@ +var C_=Object.defineProperty;var Id=i=>{throw TypeError(i)};var S_=(i,t,e)=>t in i?C_(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var Ct=(i,t,e)=>S_(i,typeof t!="symbol"?t+"":t,e),ch=(i,t,e)=>t.has(i)||Id("Cannot "+e);var C=(i,t,e)=>(ch(i,t,"read from private field"),e?e.call(i):t.get(i)),Y=(i,t,e)=>t.has(i)?Id("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),rt=(i,t,e,n)=>(ch(i,t,"write to private field"),n?n.call(i,e):t.set(i,e),e),lt=(i,t,e)=>(ch(i,t,"access private method"),e);var Rd=(i,t,e,n)=>({set _(s){rt(i,t,s,e)},get _(){return C(i,t,n)}});import{i as Qc,e as I_,f as R_,g as T_,r as b,h as P_,k as nc,l as L_,m as tu,n as A_,o as Zn,p as eu,q as wl,j as R,b as Oe,s as Ks,I as Cl,t as O_,v as Pa,w as Kg,x as D_,y as k_,z as F_,A as N_,C as Ri,D as sc,E as G_,F as Er,G as z_,J as V_,K as j_,L as B_,M as U_,N as di,O as rc,P as W_,Q as Zg,B as Mt,u as iu,R as Td,S as Pd,U as $_,V as Ld,W as X_,X as H_,_ as Ad,c as Y_,Y as Jg,a as Jn,Z as Un,T as Sl,$ as q_,a0 as J,a1 as Q,a2 as Qg,a3 as K_,a4 as Od,a5 as Z_,d as J_}from"./BUVr5rEhM7JP.js";import{u as De,c as nu,T as Dd,S as kd}from"./D_NXjk9T_0pm.js";import{u as t0,a as Q_,s as tv,b as e0,d as ev,B as i0,F as n0,H as iv}from"./7klUr-ROEMCm.js";const Za=Symbol("EventEmitterState");class s0{[Za]=new nv;on(t,e){return this[Za].on(t,{listener:e})}once(t,e){return this[Za].on(t,{listener:e,once:!0})}emit(t,...e){this[Za].emit(t,e[0])}}class nv{handlers=new Map;on(t,e){let n=this.handlers.get(t);return n||(n=new Set,this.handlers.set(t,n)),n.add(e),{destroy(){e.removed=!0,n?.delete(e),n=void 0}}}emit(t,e){const n=this.handlers.get(t);if(!n)return;const s=[...n];for(const r of s)r.removed||(r.once&&(r.removed=!0,n.delete(r)),r.listener(e))}}function sv(i){return r0(i)?.defaultView??window}function r0(i){return Qc(i)?i.ownerDocument:document}function rv(i){return r0(i).activeElement}const a0=i=>i.hasAttribute("tabindex"),av=i=>a0(i)&&i.tabIndex===-1;function ov(i){if(!Qc(i)||I_(i)||R_(i))return!1;const{localName:t}=i;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>i.hasAttribute("href"),audio:()=>i.hasAttribute("controls"),video:()=>i.hasAttribute("controls")};return t in n?n[t]():T_(i)?!0:a0(i)}function lv(i){return i?Qc(i)&&ov(i)&&!av(i):!1}function hv(i){const{isOpen:t,ref:e}=i,[n,s]=b.useState(t),[r,a]=b.useState(!1);return b.useEffect(()=>{r||(s(t),a(!0))},[t,r,n]),P_(()=>e.current,"animationend",()=>{s(t)}),{present:!(t?!1:!n),onComplete(){const l=sv(e.current),h=new l.CustomEvent("animationend",{bubbles:!0});e.current?.dispatchEvent(h)}}}function cv(i){const t=i.current;if(!t)return!1;const e=rv(t);return!e||t.contains(e)?!1:!!lv(e)}function uv(i,t){const{shouldFocus:e,visible:n,focusRef:s}=t,r=e&&!n;nc(()=>{if(!r||cv(i))return;const a=s?.current||i.current;let o;if(a)return o=requestAnimationFrame(()=>{a.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(o)}},[r,i,s])}function dv(i,t){const e=b.useId();return b.useMemo(()=>i||[t,e].filter(Boolean).join("-"),[i,t,e])}function fv(i,...t){const e=dv(i);return b.useMemo(()=>t.map(n=>`${n}-${e}`),[e,t])}function gv(i){const{ref:t,handler:e,enabled:n=!0}=i,s=L_(e),a=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;b.useEffect(()=>{if(!n)return;const o=u=>{uh(u,t)&&(a.isPointerDown=!0)},l=u=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&e&&uh(u,t)&&(a.isPointerDown=!1,s(u))},h=u=>{a.ignoreEmulatedMouseEvents=!0,e&&a.isPointerDown&&uh(u,t)&&(a.isPointerDown=!1,s(u))},c=o0(t.current);return c.addEventListener("mousedown",o,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",o,!0),c.addEventListener("touchend",h,!0),()=>{c.removeEventListener("mousedown",o,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",o,!0),c.removeEventListener("touchend",h,!0)}},[e,t,s,a,n])}function uh(i,t){const e=i.target;return e&&!o0(e).contains(e)?!1:!t.current?.contains(i.composedPath?.()[0]??e)}function o0(i){return i?.ownerDocument??document}function Fd(i){return i.sort((t,e)=>{const n=t.compareDocumentPosition(e);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const mv=i=>typeof i=="object"&&"nodeType"in i&&i.nodeType===Node.ELEMENT_NODE;function Nd(i,t,e){let n=i+1;return e&&n>=t&&(n=0),n}function Gd(i,t,e){let n=i-1;return e&&n<0&&(n=t),n}const dh=typeof window<"u"?b.useLayoutEffect:b.useEffect,zd=i=>i;var pv=Object.defineProperty,_v=(i,t,e)=>t in i?pv(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Lt=(i,t,e)=>(_v(i,typeof t!="symbol"?t+"":t,e),e);class vv{constructor(){Lt(this,"descendants",new Map),Lt(this,"register",t=>{if(t!=null)return mv(t)?this.registerNode(t):e=>{this.registerNode(e,t)}}),Lt(this,"unregister",t=>{this.descendants.delete(t);const e=Fd(Array.from(this.descendants.keys()));this.assignIndex(e)}),Lt(this,"destroy",()=>{this.descendants.clear()}),Lt(this,"assignIndex",t=>{this.descendants.forEach(e=>{const n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()})}),Lt(this,"count",()=>this.descendants.size),Lt(this,"enabledCount",()=>this.enabledValues().length),Lt(this,"values",()=>Array.from(this.descendants.values()).sort((e,n)=>e.index-n.index)),Lt(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Lt(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Lt(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Lt(this,"first",()=>this.item(0)),Lt(this,"firstEnabled",()=>this.enabledItem(0)),Lt(this,"last",()=>this.item(this.descendants.size-1)),Lt(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Lt(this,"indexOf",t=>t?this.descendants.get(t)?.index??-1:-1),Lt(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(e=>e.node.isSameNode(t))),Lt(this,"next",(t,e=!0)=>{const n=Nd(t,this.count(),e);return this.item(n)}),Lt(this,"nextEnabled",(t,e=!0)=>{const n=this.item(t);if(!n)return;const s=this.enabledIndexOf(n.node),r=Nd(s,this.enabledCount(),e);return this.enabledItem(r)}),Lt(this,"prev",(t,e=!0)=>{const n=Gd(t,this.count()-1,e);return this.item(n)}),Lt(this,"prevEnabled",(t,e=!0)=>{const n=this.item(t);if(!n)return;const s=this.enabledIndexOf(n.node),r=Gd(s,this.enabledCount()-1,e);return this.enabledItem(r)}),Lt(this,"registerNode",(t,e)=>{if(!t||this.descendants.has(t))return;const n=Array.from(this.descendants.keys()).concat(t),s=Fd(n);e?.disabled&&(e.disabled=!!e.disabled);const r={node:t,index:-1,...e};this.descendants.set(t,r),this.assignIndex(s)})}}function yv(){const[i,t]=tu({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[i,t,()=>{const s=b.useRef(new vv);return dh(()=>()=>s.current.destroy()),s.current},s=>{const r=t(),[a,o]=b.useState(-1),l=b.useRef(null);dh(()=>()=>{l.current&&r.unregister(l.current)},[]),dh(()=>{if(!l.current)return;const c=Number(l.current.dataset.index);a!=c&&!Number.isNaN(c)&&o(c)});const h=zd(s?r.register(s):r.register);return{descendants:r,index:a,enabledIndex:r.enabledIndexOf(l.current),register:A_(h,l)}}]}const su=Zn(function(t,e){const{borderLeftWidth:n,borderBottomWidth:s,borderTopWidth:r,borderRightWidth:a,borderWidth:o,borderStyle:l,borderColor:h,...c}=eu("Divider",t),{className:u,orientation:d="horizontal",__css:g,...f}=wl(t),m={vertical:{borderLeftWidth:n||a||o||"1px",height:"100%"},horizontal:{borderBottomWidth:s||r||o||"1px",width:"100%"}};return R.jsx(Oe.hr,{ref:e,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:h,borderStyle:l,...m[d],...g},className:Ks("chakra-divider",u)})});su.displayName="Divider";const Ms=Zn(function(t,e){const{direction:n,align:s,justify:r,wrap:a,basis:o,grow:l,shrink:h,...c}=t,u={display:"flex",flexDirection:n,alignItems:s,justifyContent:r,flexWrap:a,flexBasis:o,flexGrow:l,flexShrink:h};return R.jsx(Oe.div,{ref:e,__css:u,...c})});Ms.displayName="Flex";function xv(i,t){if(i==null)return{};var e={};for(var n in i)if({}.hasOwnProperty.call(i,n)){if(t.includes(n))continue;e[n]=i[n]}return e}function ac(i,t){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ac(i,t)}function $n(i){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(i)}function Mv(i,t){if($n(i)!="object"||!i)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var n=e.call(i,t||"default");if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}function l0(i){var t=Mv(i,"string");return $n(t)=="symbol"?t:t+""}function bs(i,t,e){return(t=l0(t))in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}const ru=Zn(function(t,e){const n=eu("FormLabel",t),s=wl(t),{className:r,children:a,requiredIndicator:o=R.jsx(h0,{}),optionalIndicator:l=null,...h}=s,c=t0(),u=c?.getLabelProps(h,e)??{ref:e,...h};return R.jsxs(Oe.label,{...u,className:Ks("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...n},children:[a,c?.isRequired?o:l]})});ru.displayName="FormLabel";const h0=Zn(function(t,e){const n=t0(),s=Q_();if(!n?.isRequired)return null;const r=Ks("chakra-form__required-indicator",t.className);return R.jsx(Oe.span,{...n?.getRequiredIndicatorProps(t,e),__css:s.requiredIndicator,className:r})});h0.displayName="RequiredIndicator";function bv(i){const{viewBox:t="0 0 24 24",d:e,displayName:n,defaultProps:s={}}=i,r=b.Children.toArray(i.path),a=Zn((o,l)=>R.jsx(Cl,{ref:l,viewBox:t,...s,...o,children:r.length?r:R.jsx("path",{fill:"currentColor",d:e})}));return a.displayName=n,a}function Ev(i,t={}){const{ssr:e=!0,fallback:n}=t,{getWindow:s}=O_(),r=Array.isArray(i)?i:[i];let a=Array.isArray(n)?n:[n];a=a.filter(h=>h!=null);const[o,l]=b.useState(()=>r.map((h,c)=>({media:h,matches:e?!!a[c]:s().matchMedia(h).matches})));return b.useEffect(()=>{const h=s();l(r.map(d=>({media:d,matches:h.matchMedia(d).matches})));const c=r.map(d=>h.matchMedia(d)),u=d=>{l(g=>g.slice().map(f=>f.media===d.media?{...f,matches:d.matches}:f))};return c.forEach(d=>{typeof d.addListener=="function"?d.addListener(u):d.addEventListener("change",u)}),()=>{c.forEach(d=>{typeof d.removeListener=="function"?d.removeListener(u):d.removeEventListener("change",u)})}},[s]),o.map(h=>h.matches)}function wv(i){const t=Kg(i)?i:{fallback:i??"base"},n=Pa().__breakpoints.details.map(({minMaxQuery:o,breakpoint:l})=>({breakpoint:l,query:o.replace("@media screen and ","")})),s=n.map(o=>o.breakpoint===t.fallback),a=Ev(n.map(o=>o.query),{fallback:s,ssr:t.ssr}).findIndex(o=>o==!0);return n[a]?.breakpoint??t.fallback}function Cv(i,t,e=D_){let n=Object.keys(i).indexOf(t);if(n!==-1)return i[t];let s=e.indexOf(t);for(;s>=0;){const r=e[s];if(i.hasOwnProperty(r)){n=s;break}s-=1}if(n!==-1){const r=e[n];return i[r]}}function Sv(i,t){const e=Kg(t)?t:{fallback:t??"base"},n=wv(e),s=Pa();if(!n)return;const r=Array.from(s.__breakpoints?.keys||[]),a=Array.isArray(i)?Object.fromEntries(Object.entries(k_(i,r)).map(([o,l])=>[o,l])):i;return Cv(a,n,r)}const[Iv,IO,Rv,RO]=yv(),[Tv,TO]=tu({strict:!1,name:"MenuContext"});function Pv(i){return i?.ownerDocument??document}function Lv(i={}){const{id:t,closeOnSelect:e=!0,closeOnBlur:n=!0,initialFocusRef:s,autoSelect:r=!0,isLazy:a,isOpen:o,defaultIsOpen:l,onClose:h,onOpen:c,placement:u="bottom-start",lazyBehavior:d="unmount",direction:g,computePositionOnMount:f=!1,...m}=i,p=b.useRef(null),_=b.useRef(null),v=b.useRef(!0),x=Rv(),y=b.useCallback(()=>{requestAnimationFrame(()=>{p.current?.focus({preventScroll:!1})})},[]),M=b.useCallback(()=>{const X=setTimeout(()=>{if(s)s.current?.focus();else if(!x.count())p.current?.focus({preventScroll:!1});else{const A=x.firstEnabled();A&&G(A.index)}});q.current.add(X)},[x,s]),w=b.useCallback(()=>{const X=setTimeout(()=>{if(!x.count())p.current?.focus({preventScroll:!1});else{const A=x.lastEnabled();A&&G(A.index)}});q.current.add(X)},[x]),I=b.useCallback(()=>{c?.(),r?M():y()},[r,M,y,c]),{isOpen:E,onOpen:S,onClose:T,onToggle:O}=F_({isOpen:o,defaultIsOpen:l,onClose:h,onOpen:I});gv({enabled:E&&n,ref:p,handler:X=>{const A=X.composedPath?.()?.[0]??X.target;_.current?.contains(A)||T()}});const P=N_({...m,enabled:E||f,placement:u,direction:g}),[N,G]=b.useState(-1);uv(p,{focusRef:_,visible:E,shouldFocus:!0});const k=hv({isOpen:E,ref:p}),[D,z]=fv(t,"menu-button","menu-list"),U=b.useCallback(()=>{S(),y()},[S,y]),q=b.useRef(new Set([]));b.useEffect(()=>{const X=q.current;return()=>{X.forEach(A=>clearTimeout(A)),X.clear()}},[]),nc(()=>{E||(G(-1),p.current?.scrollTo(0,0))},[E]),nc(()=>{E&&N===-1&&y()},[N,E]),b.useEffect(()=>{if(!E)return;x.item(N)?.node?.focus({preventScroll:!v.current})},[x,N,E]);const V=b.useCallback(()=>{S(),M()},[M,S]),$=b.useCallback(()=>{v.current=!0,S(),w()},[S,w]),H=b.useCallback(()=>{const X=Pv(p.current),A=p.current?.contains(X.activeElement);if(!(E&&!A))return;x.item(N)?.node?.focus({preventScroll:!v.current})},[E,N,x]);return{openAndFocusMenu:U,openAndFocusFirstItem:V,openAndFocusLastItem:$,onTransitionEnd:H,unstable__animationState:k,descendants:x,popper:P,buttonId:D,menuId:z,forceUpdate:P.forceUpdate,orientation:"vertical",isOpen:E,onToggle:O,onOpen:S,onClose:T,menuRef:p,buttonRef:_,focusedIndex:N,closeOnSelect:e,closeOnBlur:n,autoSelect:r,setFocusedIndex:G,isLazy:a,lazyBehavior:d,initialFocusRef:s,scrollIntoViewRef:v}}const[Av,Ov]=tu({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),c0=i=>{const{children:t}=i,e=Ri("Menu",i),n=wl(i),{direction:s}=Pa(),{descendants:r,...a}=Lv({...n,direction:s}),o=b.useMemo(()=>a,[a]),{isOpen:l,onClose:h,forceUpdate:c}=o;return R.jsx(Iv,{value:r,children:R.jsx(Tv,{value:o,children:R.jsx(Av,{value:e,children:sc(t,{isOpen:l,onClose:h,forceUpdate:c})})})})};c0.displayName="Menu";const u0=i=>{const{className:t,children:e,...n}=i,s=Ov(),r=b.Children.only(e),a=b.isValidElement(r)?b.cloneElement(r,{focusable:"false","aria-hidden":!0,className:Ks("chakra-menu__icon",r.props.className)}):null,o=Ks("chakra-menu__icon-wrapper",t);return R.jsx(Oe.span,{className:o,...n,__css:s.icon,children:a})};u0.displayName="MenuIcon";const d0=Zn(function(t,e){const{children:n,placeholder:s,className:r,...a}=t;return R.jsxs(Oe.select,{...a,ref:e,className:Ks("chakra-select",r),children:[s&&R.jsx("option",{value:"",children:s}),n]})});d0.displayName="SelectField";const f0=Zn((i,t)=>{const e=Ri("Select",i),{rootProps:n,placeholder:s,icon:r,color:a,height:o,h:l,minH:h,minHeight:c,iconColor:u,iconSize:d,...g}=wl(i),[f,m]=tv(g,G_),p=e0(m),_={width:"100%",height:"fit-content",position:"relative",color:a},v={paddingEnd:"2rem",...e.field,_focus:{zIndex:"unset",...e.field?._focus}};return R.jsxs(Oe.div,{className:"chakra-select__wrapper",__css:_,...f,...n,children:[R.jsx(d0,{ref:t,height:l??o,minH:h??c,placeholder:s,...p,__css:v,children:i.children}),R.jsx(g0,{"data-disabled":ev(p.disabled),...(u||a)&&{color:u||a},__css:e.icon,...d&&{fontSize:d},children:r})]})});f0.displayName="Select";const Dv=i=>R.jsx("svg",{viewBox:"0 0 24 24",...i,children:R.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),kv=Oe("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),g0=i=>{const{children:t=R.jsx(Dv,{}),...e}=i,n=b.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return R.jsx(kv,{...e,className:"chakra-select__icon-wrapper",children:b.isValidElement(t)?n:null})};g0.displayName="SelectIcon";function Fv(i,t){const e=i??"bottom";return{"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[e]?.[t]??e}function Nv(i,t){const e=s=>({...t,...s,position:Fv(s?.position??t?.position,i)}),n=s=>{const r=e(s),a=z_(r);return Er.notify(a,r)};return n.update=(s,r)=>{Er.update(s,e(r))},n.promise=(s,r)=>{const a=n({...r.loading,status:"loading",duration:null});s.then(o=>n.update(a,{status:"success",duration:5e3,...sc(r.success,o)})).catch(o=>n.update(a,{status:"error",duration:5e3,...sc(r.error,o)}))},n.closeAll=Er.closeAll,n.close=Er.close,n.isActive=Er.isActive,n}function Gv(i){const{theme:t}=V_(),e=j_();return b.useMemo(()=>Nv(t.direction,{...e,...i}),[i,t.direction,e])}function oc(i){const t=b.useRef(null);return b.useLayoutEffect(()=>{t.current=i}),b.useCallback((...n)=>{const s=t.current;return s(...n)},[])}const zv=B_({},U_);var Vv=Symbol.for("preact-signals");function Il(){if(_n>1)_n--;else{for(var i,t=!1;Br!==void 0;){var e=Br;for(Br=void 0,lc++;e!==void 0;){var n=e.o;if(e.o=void 0,e.f&=-3,!(8&e.f)&&p0(e))try{e.c()}catch(s){t||(i=s,t=!0)}e=n}}if(lc=0,_n--,t)throw i}}function jv(i){if(_n>0)return i();_n++;try{return i()}finally{Il()}}var xt=void 0;function La(i){var t=xt;xt=void 0;try{return i()}finally{xt=t}}var Br=void 0,_n=0,lc=0,Fo=0;function m0(i){if(xt!==void 0){var t=i.n;if(t===void 0||t.t!==xt)return t={i:0,S:i,p:xt.s,n:void 0,t:xt,e:void 0,x:void 0,r:t},xt.s!==void 0&&(xt.s.n=t),xt.s=t,i.n=t,32&xt.f&&i.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=xt.s,t.n=void 0,xt.s.n=t,xt.s=t),t}}function ue(i){this.v=i,this.i=0,this.n=void 0,this.t=void 0}ue.prototype.brand=Vv;ue.prototype.h=function(){return!0};ue.prototype.S=function(i){this.t!==i&&i.e===void 0&&(i.x=this.t,this.t!==void 0&&(this.t.e=i),this.t=i)};ue.prototype.U=function(i){if(this.t!==void 0){var t=i.e,e=i.x;t!==void 0&&(t.x=e,i.e=void 0),e!==void 0&&(e.e=t,i.x=void 0),i===this.t&&(this.t=e)}};ue.prototype.subscribe=function(i){var t=this;return x0(function(){var e=t.value,n=xt;xt=void 0;try{i(e)}finally{xt=n}})};ue.prototype.valueOf=function(){return this.value};ue.prototype.toString=function(){return this.value+""};ue.prototype.toJSON=function(){return this.value};ue.prototype.peek=function(){var i=xt;xt=void 0;try{return this.value}finally{xt=i}};Object.defineProperty(ue.prototype,"value",{get:function(){var i=m0(this);return i!==void 0&&(i.i=this.i),this.v},set:function(i){if(i!==this.v){if(lc>100)throw new Error("Cycle detected");this.v=i,this.i++,Fo++,_n++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Il()}}}});function au(i){return new ue(i)}function p0(i){for(var t=i.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _0(i){for(var t=i.s;t!==void 0;t=t.n){var e=t.S.n;if(e!==void 0&&(t.r=e),t.S.n=t,t.i=-1,t.n===void 0){i.s=t;break}}}function v0(i){for(var t=i.s,e=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):e=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}i.s=e}function dr(i){ue.call(this,void 0),this.x=i,this.s=void 0,this.g=Fo-1,this.f=4}(dr.prototype=new ue).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Fo))return!0;if(this.g=Fo,this.f|=1,this.i>0&&!p0(this))return this.f&=-2,!0;var i=xt;try{_0(this),xt=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return xt=i,v0(this),this.f&=-2,!0};dr.prototype.S=function(i){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ue.prototype.S.call(this,i)};dr.prototype.U=function(i){if(this.t!==void 0&&(ue.prototype.U.call(this,i),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};dr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;i!==void 0;i=i.x)i.t.N()}};Object.defineProperty(dr.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=m0(this);if(this.h(),i!==void 0&&(i.i=this.i),16&this.f)throw this.v;return this.v}});function ou(i){return new dr(i)}function y0(i){var t=i.u;if(i.u=void 0,typeof t=="function"){_n++;var e=xt;xt=void 0;try{t()}catch(n){throw i.f&=-2,i.f|=8,lu(i),n}finally{xt=e,Il()}}}function lu(i){for(var t=i.s;t!==void 0;t=t.n)t.S.U(t);i.x=void 0,i.s=void 0,y0(i)}function Bv(i){if(xt!==this)throw new Error("Out-of-order effect");v0(this),xt=i,this.f&=-2,8&this.f&&lu(this),Il()}function Aa(i){this.x=i,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Aa.prototype.c=function(){var i=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{i()}};Aa.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,y0(this),_0(this),_n++;var i=xt;return xt=this,Bv.bind(this,i)};Aa.prototype.N=function(){2&this.f||(this.f|=2,this.o=Br,Br=this)};Aa.prototype.d=function(){this.f|=8,1&this.f||lu(this)};function x0(i){var t=new Aa(i);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function Uv(i){let t;return{destroy:x0(function(){this[Wv]=i.bind(void 0),t=this[$v].bind(this)}),start:t}}var Wv="N",$v="S",Vd="S",jd="U";function Xv(i,t){const e=ou(i),n=e[Vd],s=e[jd];let r=0,a;return e[Vd]=function(l){n.call(this,l),r++===0&&(a=t())},e[jd]=function(l){s.call(this,l),--r===0&&(a?.(),a=void 0)},e}function ri(i,t){return new qv(i,t?.equal)}function Zr(i,t){return new Yv(i,t?.equal)}function Hv(i,t){const e=au(!1),n=()=>{e.value=!e.peek()},s=Zr(()=>(e.value,La(()=>i())),t);return s.trigger=n,s}function Ur(i,t){return new Zv(i,t)}function M0(i){return jv(i)}function b0(i){return La(i)}var ms=Symbol("signal"),Wr=Symbol("equals"),hu=class{[ms];constructor(i){this[ms]=i}get value(){return this[ms].value}set value(i){throw new Error("Cannot update a readonly reactive object.")}trigger(){throw new Error("Cannot trigger this reactive object.")}peek(){return this[ms].peek()}toJSON(){return this.value}toString(){return`Reactive[value=${Qv(this[ms].value)}]`}},Yv=class extends hu{[Wr];constructor(i,t){const e=ou(t?Jv(i,t):i);super(e),this[Wr]=t}},qv=class extends hu{[Wr];constructor(i,t){super(au(i)),this[Wr]=t}get value(){return super.value}set value(i){La(()=>this[Wr]?.(this.value,i))||(this[ms].value=i)}},Ja=Symbol("invalidate_signal"),Qa=Symbol("is_watched"),Kv=Symbol("has_scheduled_invalidate"),Ug,Wg,$g,Xg,Gs,Hg,Zv=(Hg=class extends(Xg=hu,$g=Ja,Wg=Qa,Ug=Kv,Xg){constructor(t,e){const n=Xv(()=>(this[Ja].value,this[Qa]||C(this,Gs).call(this),La(()=>t())),()=>{this[Qa]=!0;const s=e(C(this,Gs));return()=>{this[Qa]=!1,s(),C(this,Gs).call(this)}});super(n);Ct(this,$g,au(!1));Ct(this,Wg,!1);Ct(this,Ug,!1);Y(this,Gs,()=>{this[Ja].value=!this[Ja].peek()})}},Gs=new WeakMap,Hg);function Jv(i,t){let e=!0,n;return function(){const r=i();return La(()=>((e||!t(n,r))&&(n=r,e=!1),n))}}function Qv(i){return typeof i=="string"?JSON.stringify(i):String(i)}function ty(i,t){return i===t?!0:i.length===t.length&&i.every((e,n)=>e===t[n])}function ey(i,t,e,n){const s=ou(t),r=n?.immediate??!1,a=n?.equal??iy;let o=!0,l,h;function c(){const g=h;h=void 0;try{g?.()}catch(f){throw d.destroy(),f}}const u=i(()=>{const g=s.value;b0(()=>{const f=l,m=o&&r||!o&&!a(f,g);(m||o)&&(l=g,o=!1),m&&(c(),h=e(g,f))})}),d={destroy(){try{c()}finally{u.destroy()}}};return d}function iy(i,t){return i===t}function E0(i){Promise.reject(new Error("Error in effect or watch callback",{cause:i}))}var ny=class{queue=[];channel=new MessageChannel;constructor(){this.channel.port2.start()}enqueue(i){const t={fn:i,destroyed:!1};return this.queue.push(t),this.queue.length===1&&this.scheduleIteration(),{destroy(){t.destroyed||(t.destroyed=!0)}}}messageHandler=()=>this.runIteration();scheduleIteration(){const i=this.channel;i.port2.addEventListener("message",this.messageHandler),i.port1.postMessage("")}runIteration(){this.channel.port2.removeEventListener("message",this.messageHandler);const i=this.queue;this.queue=[];for(const t of i)if(!t.destroyed)try{t.fn()}catch(e){E0(e)}}};function sy(i){const t=new ry(i);return{destroy:t.destroy.bind(t)}}var ry=class{callback;cleanup;watcher;scheduledExecution;isDestroyed=!1;initialExecution=!0;isExecuting=!1;constructor(i){this.callback=i,this.watcher=Uv(this.scheduleExecution),this.execute(),this.initialExecution=!1}destroy(){if(!this.isDestroyed){this.isDestroyed=!0;try{this.triggerCleanup()}finally{this.watcher?.destroy(),this.watcher=void 0,this.scheduledExecution?.destroy(),this.scheduledExecution=void 0}}}execute(){const i=this.watcher;if(!i)return;this.isExecuting=!0;const t=i.start();try{if(this.initialExecution)try{this.triggerCallback()}catch(e){throw this.destroy(),e}else try{this.triggerCallback()}catch(e){E0(e)}}finally{t(),this.isExecuting=!1}this.isDestroyed&&this.triggerCleanup()}triggerCallback(){if(!this.isDestroyed){this.triggerCleanup();const i=this.callback();typeof i=="function"&&(this.cleanup=i)}}triggerCleanup(){const i=this.cleanup;this.cleanup=void 0;try{i&&b0(i)}catch(t){throw this.destroy(),t}}scheduleExecution=()=>{if(!this.isDestroyed){if(this.isExecuting)throw new Error("Cycle detected");this.scheduledExecution||(this.scheduledExecution=ly(()=>{try{this.execute()}finally{this.scheduledExecution=void 0}}))}}};function ay(i,t,e){return ey(sy,i,t,{equal:ty,...e})}var oy=new ny;function ly(i){return oy.enqueue(i)}function cu(i){return new hy(i)}var ie,zs,Yt,nn,So,w0,C0,Yg,hy=(Yg=class{constructor(i){Y(this,Yt);Y(this,ie,new Map);Y(this,zs,ri(!1));if(i)for(const[t,e]of i)C(this,ie).set(t,ri(e))}get size(){return lt(this,Yt,nn).call(this),C(this,ie).size}forEach(i){lt(this,Yt,nn).call(this);const t=C(this,ie).entries();for(const[e,n]of t)i(n.value,e)}entries(){return lt(this,Yt,nn).call(this),lt(this,Yt,w0).call(this)}keys(){return lt(this,Yt,nn).call(this),C(this,ie).keys()}values(){return lt(this,Yt,nn).call(this),lt(this,Yt,C0).call(this)}[Symbol.iterator](){return this.entries()}clear(){const i=!!C(this,ie).size;C(this,ie).clear(),i&<(this,Yt,So).call(this)}delete(i){const t=C(this,ie).delete(i);return t&<(this,Yt,So).call(this),t}get(i){return lt(this,Yt,nn).call(this),C(this,ie).get(i)?.value}has(i){return lt(this,Yt,nn).call(this),C(this,ie).has(i)}set(i,t){const e=C(this,ie).get(i);return e?e.value=t:(C(this,ie).set(i,ri(t)),lt(this,Yt,So).call(this)),this}},ie=new WeakMap,zs=new WeakMap,Yt=new WeakSet,nn=function(){C(this,zs).value},So=function(){C(this,zs).value=!C(this,zs).peek()},w0=function*(){const i=C(this,ie).entries();for(const[t,e]of i)yield[t,e.value]},C0=function*(){const i=C(this,ie).values();for(const t of i)yield t.value},Yg);function cy(i){return new uy(i)}var Je,qg,uy=(qg=class{constructor(i){Y(this,Je);rt(this,Je,cu(i?dy(i):void 0))}get size(){return C(this,Je).size}clear(){C(this,Je).clear()}has(i){return C(this,Je).has(i)}add(i){return C(this,Je).set(i,void 0),this}delete(i){return C(this,Je).delete(i)}forEach(i){C(this,Je).forEach((t,e)=>i(e,e))}entries(){return fy(this.values())}values(){return C(this,Je).keys()}[Symbol.iterator](){return this.values()}},Je=new WeakMap,qg);function*dy(i){for(const t of i)yield[t,void 0]}function*fy(i){for(const t of i)yield[t,t]}class Rl{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}class fi{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}function gy(i,t,e){let n,s;e=e||ji;let r=0,a=i.length,o=!1;for(;r>1),s=+e(i[n],t),s<0?r=n+1:(a=n,o=!s);return o?r:~r}function ji(i,t){return i>t?1:i-1&&b%1==0&&b0){if(++E>=o)return arguments[0]}else E=0;return b.apply(void 0,arguments)}}function ZE(b){if(b!=null){try{return Xn.call(b)}catch{}try{return b+""}catch{}}return""}function ol(b,E){return b===E||b!==b&&E!==E}var ld=Cg(function(){return arguments}())?Cg:function(b){return qi(b)&&lr.call(b,"callee")&&!tE.call(b,"callee")},ud=Array.isArray;function cd(b){return b!=null&&Rg(b.length)&&!dd(b)}function JE(b){return qi(b)&&cd(b)}var Ag=nE||oC;function dd(b){if(!Qn(b))return!1;var E=rl(b);return E==m||E==y||E==u||E==g}function Rg(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function Qn(b){var E=typeof b;return b!=null&&(E=="object"||E=="function")}function qi(b){return b!=null&&typeof b=="object"}function eC(b){if(!qi(b)||rl(b)!=h)return!1;var E=xg(b);if(E===null)return!0;var _=lr.call(E,"constructor")&&E.constructor;return typeof _=="function"&&_ instanceof _&&Xn.call(_)==Za}var Ig=me?Wi(me):RE;function tC(b){return zE(b,$g(b))}function $g(b){return cd(b)?TE(b):IE(b)}var rC=FE(function(b,E,_,N){Tg(b,E,_,N)});function nC(b){return function(){return b}}function Lg(b){return b}function oC(){return!1}e.exports=rC})(bu,bu.exports);var r2=bu.exports;const Jt=ip(r2);function Su(e,t=[]){const r=w.useRef(e);return w.useEffect(()=>{r.current=e}),w.useCallback((...n)=>r.current?.(...n),t)}function Sd(e,t,r,n){const o=Su(r);return w.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{(typeof e=="function"?e():e??document)?.removeEventListener(t,o,n)}}function n2(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=Su(r),s=Su(t),[a,l]=w.useState(e.defaultIsOpen||!1),u=n!==void 0?n:a,c=n!==void 0,d=w.useId(),f=o??`disclosure-${d}`,m=w.useCallback(()=>{c||l(!1),s?.()},[c,s]),y=w.useCallback(()=>{c||l(!0),i?.()},[c,i]),v=w.useCallback(()=>{u?m():y()},[u,y,m]);function x(h={}){return{...h,"aria-expanded":u,"aria-controls":f,onClick(g){h.onClick?.(g),v()}}}function p(h={}){return{...h,hidden:!u,id:f}}return{isOpen:u,onOpen:y,onClose:m,onToggle:v,isControlled:c,getButtonProps:x,getDisclosureProps:p}}const xu=globalThis?.document?w.useLayoutEffect:w.useEffect,a0=(e,t)=>{const r=w.useRef(!1),n=w.useRef(!1);w.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function o2(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function wu(...e){return t=>{e.forEach(r=>{o2(r,t)})}}function wV(...e){return w.useMemo(()=>wu(...e),e)}function i2(e,t){const r=Su(e);w.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}const je={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},xr=e=>d1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),zr=e=>d1(t=>e(t,"~ &"),"[data-peer]",".peer"),d1=(e,...t)=>t.map(e).join(", "),dc={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:xr(je.open),_groupClosed:xr(je.closed),_groupHover:xr(je.hover),_peerHover:zr(je.hover),_groupFocus:xr(je.focus),_peerFocus:zr(je.focus),_groupFocusVisible:xr(je.focusVisible),_peerFocusVisible:zr(je.focusVisible),_groupActive:xr(je.active),_peerActive:zr(je.active),_groupDisabled:xr(je.disabled),_peerDisabled:zr(je.disabled),_groupInvalid:xr(je.invalid),_peerInvalid:zr(je.invalid),_groupChecked:xr(je.checked),_peerChecked:zr(je.checked),_groupFocusWithin:xr(je.focusWithin),_peerFocusWithin:zr(je.focusWithin),_peerPlaceholderShown:zr(je.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},f1=Object.keys(dc),s2=e=>/!(important)?$/.test(e),l0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,a2=(e,t)=>r=>{const n=String(t),o=s2(n),i=l0(n),s=e?`${e}.${i}`:i;let a=gt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=l0(a),o?`${a} !important`:a};function Sp(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{const a=a2(t,i)(s);let l=r?.(a,s)??a;return n&&(l=n(l,s)),l}}const dl=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Xt(e,t){return r=>{const n={property:r,scale:e};return n.transform=Sp({scale:e,transform:t}),n}}const l2=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function u2(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:l2(t),transform:r?Sp({scale:r,compose:n}):n}}const h1=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function c2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h1].join(" ")}function d2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h1].join(" ")}const f2={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},h2={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function p2(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const m2={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Of={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},g2=new Set(Object.values(Of)),Nf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),y2=e=>e.trim();function v2(e,t){if(e==null||Nf.has(e))return e;if(!(Df(e)||Nf.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o?.[1],s=o?.[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(y2).filter(Boolean);if(u?.length===0)return e;const c=l in Of?Of[l]:l;u.unshift(c);const d=u.map(f=>{if(g2.has(f))return f;const m=f.indexOf(" "),[y,v]=m!==-1?[f.substr(0,m),f.substr(m+1)]:[f],x=Df(v)?v:v&&v.split(" "),p=`colors.${y}`,h=p in t.__cssMap?t.__cssMap[p].varRef:y;return x?[h,...Array.isArray(x)?x:[x]].join(" "):h});return`${a}(${d.join(", ")})`}const Df=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),b2=(e,t)=>v2(e,t??{});function S2(e){return/^var\(--.+\)$/.test(e)}const x2=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},wr=e=>t=>`${e}(${t})`,K={filter(e){return e!=="auto"?e:f2},backdropFilter(e){return e!=="auto"?e:h2},ring(e){return p2(K.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?c2():e==="auto-gpu"?d2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=x2(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(S2(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:b2,blur:wr("blur"),opacity:wr("opacity"),brightness:wr("brightness"),contrast:wr("contrast"),dropShadow:wr("drop-shadow"),grayscale:wr("grayscale"),hueRotate:e=>wr("hue-rotate")(K.degree(e)),invert:wr("invert"),saturate:wr("saturate"),sepia:wr("sepia"),bgImage(e){return e==null||Df(e)||Nf.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=m2[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},k={borderWidths:Xt("borderWidths"),borderStyles:Xt("borderStyles"),colors:Xt("colors"),borders:Xt("borders"),gradients:Xt("gradients",K.gradient),radii:Xt("radii",K.px),space:Xt("space",dl(K.vh,K.px)),spaceT:Xt("space",dl(K.vh,K.px)),degreeT(e){return{property:e,transform:K.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Sp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Xt("sizes",dl(K.vh,K.px)),sizesT:Xt("sizes",dl(K.vh,K.fraction)),shadows:Xt("shadows"),logical:u2,blur:Xt("blur",K.blur)},Wl={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:K.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:K.bgClip}};Object.assign(Wl,{bgImage:Wl.backgroundImage,bgImg:Wl.backgroundImage});const ne={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ne,{rounded:ne.borderRadius,roundedTop:ne.borderTopRadius,roundedTopLeft:ne.borderTopLeftRadius,roundedTopRight:ne.borderTopRightRadius,roundedTopStart:ne.borderStartStartRadius,roundedTopEnd:ne.borderStartEndRadius,roundedBottom:ne.borderBottomRadius,roundedBottomLeft:ne.borderBottomLeftRadius,roundedBottomRight:ne.borderBottomRightRadius,roundedBottomStart:ne.borderEndStartRadius,roundedBottomEnd:ne.borderEndEndRadius,roundedLeft:ne.borderLeftRadius,roundedRight:ne.borderRightRadius,roundedStart:ne.borderInlineStartRadius,roundedEnd:ne.borderInlineEndRadius,borderStart:ne.borderInlineStart,borderEnd:ne.borderInlineEnd,borderTopStartRadius:ne.borderStartStartRadius,borderTopEndRadius:ne.borderStartEndRadius,borderBottomStartRadius:ne.borderEndStartRadius,borderBottomEndRadius:ne.borderEndEndRadius,borderStartRadius:ne.borderInlineStartRadius,borderEndRadius:ne.borderInlineEndRadius,borderStartWidth:ne.borderInlineStartWidth,borderEndWidth:ne.borderInlineEndWidth,borderStartColor:ne.borderInlineStartColor,borderEndColor:ne.borderInlineEndColor,borderStartStyle:ne.borderInlineStartStyle,borderEndStyle:ne.borderInlineEndStyle});const w2={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},ku={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:K.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(ku,{flexDir:ku.flexDirection});const Yt={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`]:{display:"none"}})},hideBelow:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`]:{display:"none"}})},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",K.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Yt,{w:Yt.width,h:Yt.height,minW:Yt.minWidth,maxW:Yt.maxWidth,minH:Yt.minHeight,maxH:Yt.maxHeight,overscroll:Yt.overscrollBehavior,overscrollX:Yt.overscrollBehaviorX,overscrollY:Yt.overscrollBehaviorY});const k2={filter:{transform:K.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",K.brightness),contrast:k.propT("--chakra-contrast",K.contrast),hueRotate:k.propT("--chakra-hue-rotate",K.hueRotate),invert:k.propT("--chakra-invert",K.invert),saturate:k.propT("--chakra-saturate",K.saturate),dropShadow:k.propT("--chakra-drop-shadow",K.dropShadow),backdropFilter:{transform:K.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",K.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",K.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",K.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",K.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",K.saturate)},E2={ring:{transform:K.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},C2={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:K.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},p1={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function T2(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n {const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},_2=P2(T2),A2={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},R2={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},xd=(e,t,r)=>{const n={},o=_2(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},I2={srOnly:{transform(e){return e===!0?A2:e==="focusable"?R2:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>xd(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>xd(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>xd(t,e,r)}},Cs={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Cs,{insetStart:Cs.insetInlineStart,insetEnd:Cs.insetInlineEnd});const Bf={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(Bf,{shadow:Bf.boxShadow});const xe={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(xe,{m:xe.margin,mt:xe.marginTop,mr:xe.marginRight,me:xe.marginInlineEnd,marginEnd:xe.marginInlineEnd,mb:xe.marginBottom,ml:xe.marginLeft,ms:xe.marginInlineStart,marginStart:xe.marginInlineStart,mx:xe.marginX,my:xe.marginY,p:xe.padding,pt:xe.paddingTop,py:xe.paddingY,px:xe.paddingX,pb:xe.paddingBottom,pl:xe.paddingLeft,ps:xe.paddingInlineStart,paddingStart:xe.paddingInlineStart,pr:xe.paddingRight,pe:xe.paddingInlineEnd,paddingEnd:xe.paddingInlineEnd});const $2={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},L2={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",K.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},M2={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},O2={clipPath:!0,transform:k.propT("transform",K.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},N2={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},D2={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},xp=Jt({},Wl,ne,w2,ku,Yt,k2,E2,C2,p1,I2,Cs,Bf,xe,$2,L2,M2,O2,N2,D2),B2=Object.assign({},xe,Yt,ku,p1,Cs),kV=Object.keys(B2),z2=[...Object.keys(xp),...f1],F2={...xp,...dc},j2=e=>e in F2,V2=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=Ar(e[s],t);if(a==null)continue;if(a=gt(a)&&r(a)?n(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;u e.startsWith("--")&&typeof t=="string"&&!U2(t),G2=(e,t)=>{if(t==null)return t;const r=s=>e.__cssMap?.[s]?.varRef,n=s=>r(s)??s,[o,i]=H2(t);return t=r(o)??n(i)??n(t),t};function X2(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{const a=Ar(i,n),l=V2(a)(n);let u={};for(let c in l){const d=l[c];let f=Ar(d,n);c in r&&(c=r[c]),W2(c,f)&&(f=G2(n,f));let m=t[c];if(m===!0&&(m={property:c}),gt(f)){u[c]=u[c]??{},u[c]=Jt({},u[c],o(f,!0));continue}let y=m?.transform?.(f,n,a)??f;y=m?.processResult?o(y,!0):y;const v=Ar(m?.property,n);if(!s&&m?.static){const x=Ar(m.static,n);u=Jt({},u,x)}if(v&&Array.isArray(v)){for(const x of v)u[x]=y;continue}if(v){v==="&"&>(y)?u=Jt({},u,y):u[v]=y;continue}if(gt(y)){u=Jt({},u,y);continue}u[c]=y}return u};return o}const m1=e=>t=>X2({theme:t,pseudos:dc,configs:xp})(e);function EV(e){return e}function ye(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function q2(e,t,r){return e.__cssMap?.[`${t}.${r}`]?.varRef??r}function Y2(e,t){if(Array.isArray(e))return e;if(gt(e))return t(e);if(e!=null)return[e]}function K2(e,t){for(let r=t+1;r {Jt(a,{[p]:c?x[p]:{[v]:x[p]}})});continue}if(!d){c?Jt(a,x):a[v]=x;continue}a[v]=x}}return a}}function Z2(e){return t=>{const{variant:r,size:n,theme:o}=t,i=Q2(o);return Jt({},Ar(e.baseStyle??{},t),i(e,"sizes",n,t),i(e,"variants",r,t))}}function zi(e){return bp(e,["styleConfig","size","variant","colorScheme"])}function g1(e){return gt(e)&&e.reference?e.reference:String(e)}const fc=(e,...t)=>t.map(g1).join(` ${e} `).replace(/calc/g,""),u0=(...e)=>`calc(${fc("+",...e)})`,c0=(...e)=>`calc(${fc("-",...e)})`,zf=(...e)=>`calc(${fc("*",...e)})`,d0=(...e)=>`calc(${fc("/",...e)})`,f0=e=>{const t=g1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:zf(t,-1)},Vr=Object.assign(e=>({add:(...t)=>Vr(u0(e,...t)),subtract:(...t)=>Vr(c0(e,...t)),multiply:(...t)=>Vr(zf(e,...t)),divide:(...t)=>Vr(d0(e,...t)),negate:()=>Vr(f0(e)),toString:()=>e.toString()}),{add:u0,subtract:c0,multiply:zf,divide:d0,negate:f0});function J2(e,t="-"){return e.replace(/\s+/g,t)}function e_(e){const t=J2(e.toString());return r_(t_(t))}function t_(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function r_(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function n_(e,t=""){return[t,e].filter(Boolean).join("-")}function o_(e,t){return`var(${e}${t?`, ${t}`:""})`}function i_(e,t=""){return e_(`--${n_(e,t)}`)}function V(e,t,r){const n=i_(e,r);return{variable:n,reference:o_(n,t)}}function s_(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=V(`${e}-${o}`,i);continue}r[n]=V(`${e}-${n}`)}return r}const a_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function l_(e){return u1(e,a_)}function u_(e){return e.semanticTokens}function c_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}function d_(e){const t=l_(e),r=u_(e),n=i=>f1.includes(i)||i==="default",o={};return s0(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),s0(r,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(n)}),o}function h0(e,t){return V(String(e).replace(/\./g,"-"),void 0,t)}function f_(e){const t=d_(e),r=e.config?.cssVarPrefix;let n={};const o={};function i(s,a){const u=[String(s).split(".")[0],a].join(".");if(!t[u])return a;const{reference:d}=h0(u,r);return d}for(const[s,a]of Object.entries(t)){const{isSemantic:l,value:u}=a,{variable:c,reference:d}=h0(s,r);if(!l){if(s.startsWith("space")){const m=s.split("."),[y,...v]=m,x=`${y}.-${v.join(".")}`,p=Vr.negate(u),h=Vr.negate(d);o[x]={value:p,var:c,varRef:h}}n[c]=u,o[s]={value:u,var:c,varRef:d};continue}const f=gt(u)?u:{default:u};n=Jt(n,Object.entries(f).reduce((m,[y,v])=>{if(!v)return m;const x=i(s,`${v}`);if(y==="default")return m[c]=x,m;const p=dc?.[y]??y;return m[p]={[c]:x},m},{})),o[s]={value:d,var:c,varRef:d}}return{cssVars:n,cssMap:o}}function h_(e){const t=c_(e),{cssMap:r,cssVars:n}=f_(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...n},__cssMap:r,__breakpoints:UP(t.breakpoints)}),t}function ae(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return ae(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return ae(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const m=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:m,selector:`.${m}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const p_=ae("accordion").parts("root","container","button","panel","icon"),m_=ae("alert").parts("title","description","container","icon","spinner"),g_=ae("avatar").parts("label","badge","container","excessLabel","group"),y_=ae("breadcrumb").parts("link","item","container","separator");ae("button").parts();const v_=ae("checkbox").parts("control","icon","container","label");ae("progress").parts("track","filledTrack","label");const b_=ae("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),S_=ae("editable").parts("preview","input","textarea"),x_=ae("form").parts("container","requiredIndicator","helperText"),w_=ae("formError").parts("text","icon"),k_=ae("input").parts("addon","field","element","group"),E_=ae("list").parts("container","item","icon"),C_=ae("menu").parts("button","list","item","groupTitle","icon","command","divider"),T_=ae("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),P_=ae("numberinput").parts("root","field","stepperGroup","stepper");ae("pininput").parts("field");const __=ae("popover").parts("content","header","body","footer","popper","arrow","closeButton"),A_=ae("progress").parts("label","filledTrack","track"),R_=ae("radio").parts("container","control","label"),I_=ae("select").parts("field","icon"),$_=ae("slider").parts("container","track","thumb","filledTrack","mark"),L_=ae("stat").parts("container","label","helpText","number","icon"),M_=ae("switch").parts("container","track","thumb","label"),O_=ae("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),N_=ae("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),D_=ae("tag").parts("container","label","closeButton"),B_=ae("card").parts("container","header","body","footer");ae("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:z_,defineMultiStyleConfig:F_}=ye(p_.keys),j_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},V_={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},H_={pt:"2",px:"4",pb:"5"},U_={fontSize:"1.25em"},W_=z_({container:j_,button:V_,panel:H_,icon:U_}),G_=F_({baseStyle:W_});function ao(e,t,r){return Math.min(Math.max(e,r),t)}class X_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var ps=X_;function wp(e){if(typeof e!="string")throw new ps(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=tA.test(e)?K_(e):e;const r=Q_.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(Xs(a,2),16)),parseInt(Xs(s[3]||"f",2),16)/255]}const n=Z_.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=J_.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=eA.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(ao(0,100,a)!==a)throw new ps(e);if(ao(0,100,l)!==l)throw new ps(e);return[...rA(s,a,l),Number.isNaN(u)?1:u]}throw new ps(e)}function q_(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const p0=e=>parseInt(e.replace(/_/g,""),36),Y_="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=p0(t.substring(0,3)),n=p0(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function K_(e){const t=e.toLowerCase().trim(),r=Y_[q_(t)];if(!r)throw new ps(e);return`#${r}`}const Xs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Q_=new RegExp(`^#${Xs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Z_=new RegExp(`^#${Xs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),J_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Xs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),eA=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,tA=/^[a-z]+$/i,m0=e=>Math.round(e*255),rA=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(m0);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=n-i/2,d=a+c,f=l+c,m=u+c;return[d,f,m].map(m0)};function nA(e,t,r,n){return`rgba(${ao(0,255,e).toFixed()}, ${ao(0,255,t).toFixed()}, ${ao(0,255,r).toFixed()}, ${parseFloat(ao(0,1,n).toFixed(3))})`}function oA(e,t){const[r,n,o,i]=wp(e);return nA(r,n,o,i-t)}function iA(e){const[t,r,n,o]=wp(e);let i=s=>{const a=ao(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}const sA=e=>Object.keys(e).length===0;function aA(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n {const n=aA(e,`colors.${t}`,t);try{return iA(n),n}catch{return"#000000"}},lA=e=>{const[t,r,n]=wp(e);return(t*299+r*587+n*114)/1e3},uA=e=>t=>{const r=mt(t,e);return lA(r)<128?"dark":"light"},cA=e=>t=>uA(e)(t)==="dark",bi=(e,t)=>r=>{const n=mt(r,e);return oA(n,1-t)};function g0(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}const dA=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function fA(e){const t=dA();return!e||sA(e)?t:e.string&&e.colors?pA(e.string,e.colors):e.string&&!e.colors?hA(e.string):e.colors&&!e.string?mA(e.colors):t}function hA(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n >n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function pA(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;n r.colorMode==="dark"?t:e}function kp(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function y1(e){return gt(e)&&e.reference?e.reference:String(e)}const hc=(e,...t)=>t.map(y1).join(` ${e} `).replace(/calc/g,""),y0=(...e)=>`calc(${hc("+",...e)})`,v0=(...e)=>`calc(${hc("-",...e)})`,Ff=(...e)=>`calc(${hc("*",...e)})`,b0=(...e)=>`calc(${hc("/",...e)})`,S0=e=>{const t=y1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ff(t,-1)},Hr=Object.assign(e=>({add:(...t)=>Hr(y0(e,...t)),subtract:(...t)=>Hr(v0(e,...t)),multiply:(...t)=>Hr(Ff(e,...t)),divide:(...t)=>Hr(b0(e,...t)),negate:()=>Hr(S0(e)),toString:()=>e.toString()}),{add:y0,subtract:v0,multiply:Ff,divide:b0,negate:S0});function gA(e){return!Number.isInteger(parseFloat(e.toString()))}function yA(e,t="-"){return e.replace(/\s+/g,t)}function v1(e){const t=yA(e.toString());return t.includes("\\.")?e:gA(e)?t.replace(".","\\."):e}function vA(e,t=""){return[t,v1(e)].filter(Boolean).join("-")}function bA(e,t){return`var(${v1(e)}${t?`, ${t}`:""})`}function SA(e,t=""){return`--${vA(e,t)}`}function Ue(e,t){const r=SA(e,t?.prefix);return{variable:r,reference:bA(r,xA(t?.fallback))}}function xA(e){return e?.reference}const{definePartsStyle:Ma,defineMultiStyleConfig:wA}=ye(m_.keys),Nt=V("alert-fg"),nn=V("alert-bg"),kA=Ma({container:{bg:nn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Nt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Nt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ep(e){const{theme:t,colorScheme:r}=e,n=bi(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}const EA=Ma(e=>{const{colorScheme:t}=e,r=Ep(e);return{container:{[Nt.variable]:`colors.${t}.600`,[nn.variable]:r.light,_dark:{[Nt.variable]:`colors.${t}.200`,[nn.variable]:r.dark}}}}),CA=Ma(e=>{const{colorScheme:t}=e,r=Ep(e);return{container:{[Nt.variable]:`colors.${t}.600`,[nn.variable]:r.light,_dark:{[Nt.variable]:`colors.${t}.200`,[nn.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Nt.reference}}}),TA=Ma(e=>{const{colorScheme:t}=e,r=Ep(e);return{container:{[Nt.variable]:`colors.${t}.600`,[nn.variable]:r.light,_dark:{[Nt.variable]:`colors.${t}.200`,[nn.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Nt.reference}}}),PA=Ma(e=>{const{colorScheme:t}=e;return{container:{[Nt.variable]:"colors.white",[nn.variable]:`colors.${t}.600`,_dark:{[Nt.variable]:"colors.gray.900",[nn.variable]:`colors.${t}.200`},color:Nt.reference}}}),_A={subtle:EA,"left-accent":CA,"top-accent":TA,solid:PA},AA=wA({baseStyle:kA,variants:_A,defaultProps:{variant:"subtle",colorScheme:"blue"}}),b1={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},RA={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},IA={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},S1={...b1,...RA,container:IA},$A=e=>typeof e=="function";function yt(e,...t){return $A(e)?e(...t):e}const{definePartsStyle:x1,defineMultiStyleConfig:LA}=ye(g_.keys),ai=V("avatar-border-color"),Ts=V("avatar-bg"),qs=V("avatar-font-size"),Si=V("avatar-size"),MA={borderRadius:"full",border:"0.2em solid",borderColor:ai.reference,[ai.variable]:"white",_dark:{[ai.variable]:"colors.gray.800"}},OA={bg:Ts.reference,fontSize:qs.reference,width:Si.reference,height:Si.reference,lineHeight:"1",[Ts.variable]:"colors.gray.200",_dark:{[Ts.variable]:"colors.whiteAlpha.400"}},NA=e=>{const{name:t,theme:r}=e,n=t?fA({string:t}):"colors.gray.400",o=cA(n)(r);let i="white";return o||(i="gray.800"),{bg:Ts.reference,fontSize:qs.reference,color:i,borderColor:ai.reference,verticalAlign:"top",width:Si.reference,height:Si.reference,"&:not([data-loaded])":{[Ts.variable]:n},[ai.variable]:"colors.white",_dark:{[ai.variable]:"colors.gray.800"}}},DA={fontSize:qs.reference,lineHeight:"1"},BA=x1(e=>({badge:yt(MA,e),excessLabel:yt(OA,e),container:yt(NA,e),label:DA}));function gn(e){const t=e!=="100%"?S1[e]:void 0;return x1({container:{[Si.variable]:t??e,[qs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Si.variable]:t??e,[qs.variable]:`calc(${t??e} / 2.5)`}})}const zA={"2xs":gn(4),xs:gn(6),sm:gn(8),md:gn(12),lg:gn(16),xl:gn(24),"2xl":gn(32),full:gn("100%")},FA=LA({baseStyle:BA,sizes:zA,defaultProps:{size:"md"}}),Be=s_("badge",["bg","color","shadow"]),jA={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Be.bg.reference,color:Be.color.reference,boxShadow:Be.shadow.reference},VA=e=>{const{colorScheme:t,theme:r}=e,n=bi(`${t}.500`,.6)(r);return{[Be.bg.variable]:`colors.${t}.500`,[Be.color.variable]:"colors.white",_dark:{[Be.bg.variable]:n,[Be.color.variable]:"colors.whiteAlpha.800"}}},HA=e=>{const{colorScheme:t,theme:r}=e,n=bi(`${t}.200`,.16)(r);return{[Be.bg.variable]:`colors.${t}.100`,[Be.color.variable]:`colors.${t}.800`,_dark:{[Be.bg.variable]:n,[Be.color.variable]:`colors.${t}.200`}}},UA=e=>{const{colorScheme:t,theme:r}=e,n=bi(`${t}.200`,.8)(r);return{[Be.color.variable]:`colors.${t}.500`,_dark:{[Be.color.variable]:n},[Be.shadow.variable]:`inset 0 0 0px 1px ${Be.color.reference}`}},WA={solid:VA,subtle:HA,outline:UA},Ps={baseStyle:jA,variants:WA,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:GA,definePartsStyle:XA}=ye(y_.keys),wd=V("breadcrumb-link-decor"),qA={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:wd.reference,[wd.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[wd.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},YA=XA({link:qA}),KA=GA({baseStyle:YA}),QA={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},w1=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const n=bi(`${t}.200`,.12)(r),o=bi(`${t}.200`,.24)(r);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,n)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},ZA=e=>{const{colorScheme:t}=e,r=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...yt(w1,e)}},JA={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},eR=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=j("gray.100","whiteAlpha.200")(e);return{bg:a,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=JA[t]??{},s=j(r,`${t}.200`)(e);return{bg:s,color:j(n,"gray.800")(e),_hover:{bg:j(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${t}.400`)(e)}}},tR=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},rR={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},nR={ghost:w1,outline:ZA,solid:eR,link:tR,unstyled:rR},oR={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},iR={baseStyle:QA,variants:nR,sizes:oR,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ho,defineMultiStyleConfig:sR}=ye(B_.keys),Eu=V("card-bg"),Kr=V("card-padding"),k1=V("card-shadow"),Gl=V("card-radius"),E1=V("card-border-width","0"),C1=V("card-border-color"),aR=ho({container:{[Eu.variable]:"colors.chakra-body-bg",backgroundColor:Eu.reference,boxShadow:k1.reference,borderRadius:Gl.reference,color:"chakra-body-text",borderWidth:E1.reference,borderColor:C1.reference},body:{padding:Kr.reference,flex:"1 1 0%"},header:{padding:Kr.reference},footer:{padding:Kr.reference}}),lR={sm:ho({container:{[Gl.variable]:"radii.base",[Kr.variable]:"space.3"}}),md:ho({container:{[Gl.variable]:"radii.md",[Kr.variable]:"space.5"}}),lg:ho({container:{[Gl.variable]:"radii.xl",[Kr.variable]:"space.7"}})},uR={elevated:ho({container:{[k1.variable]:"shadows.base",_dark:{[Eu.variable]:"colors.gray.700"}}}),outline:ho({container:{[E1.variable]:"1px",[C1.variable]:"colors.chakra-border-color"}}),filled:ho({container:{[Eu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Kr.variable]:0},header:{[Kr.variable]:0},footer:{[Kr.variable]:0}}},cR=sR({baseStyle:aR,variants:uR,sizes:lR,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Xl,defineMultiStyleConfig:dR}=ye(v_.keys),_s=V("checkbox-size"),fR=e=>{const{colorScheme:t}=e;return{w:_s.reference,h:_s.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},hR={_disabled:{cursor:"not-allowed"}},pR={userSelect:"none",_disabled:{opacity:.4}},mR={transitionProperty:"transform",transitionDuration:"normal"},gR=Xl(e=>({icon:mR,container:hR,control:yt(fR,e),label:pR})),yR={sm:Xl({control:{[_s.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Xl({control:{[_s.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Xl({control:{[_s.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Cu=dR({baseStyle:gR,sizes:yR,defaultProps:{size:"md",colorScheme:"blue"}}),As=Ue("close-button-size"),Zi=Ue("close-button-bg"),vR={w:[As.reference],h:[As.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Zi.variable]:"colors.blackAlpha.100",_dark:{[Zi.variable]:"colors.whiteAlpha.100"}},_active:{[Zi.variable]:"colors.blackAlpha.200",_dark:{[Zi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Zi.reference},bR={lg:{[As.variable]:"sizes.10",fontSize:"md"},md:{[As.variable]:"sizes.8",fontSize:"xs"},sm:{[As.variable]:"sizes.6",fontSize:"2xs"}},SR={baseStyle:vR,sizes:bR,defaultProps:{size:"md"}},{variants:xR,defaultProps:wR}=Ps,kR={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Be.bg.reference,color:Be.color.reference,boxShadow:Be.shadow.reference},ER={baseStyle:kR,variants:xR,defaultProps:wR},CR={w:"100%",mx:"auto",maxW:"prose",px:"4"},TR={baseStyle:CR},PR={opacity:.6,borderColor:"inherit"},_R={borderStyle:"solid"},AR={borderStyle:"dashed"},RR={solid:_R,dashed:AR},IR={baseStyle:PR,variants:RR,defaultProps:{variant:"solid"}},{definePartsStyle:jf,defineMultiStyleConfig:$R}=ye(b_.keys),kd=V("drawer-bg"),Ed=V("drawer-box-shadow");function Oo(e){return jf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const LR={bg:"blackAlpha.600",zIndex:"modal"},MR={display:"flex",zIndex:"modal",justifyContent:"center"},OR=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[kd.variable]:"colors.white",[Ed.variable]:"shadows.lg",_dark:{[kd.variable]:"colors.gray.700",[Ed.variable]:"shadows.dark-lg"},bg:kd.reference,boxShadow:Ed.reference}},NR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},DR={position:"absolute",top:"2",insetEnd:"3"},BR={px:"6",py:"2",flex:"1",overflow:"auto"},zR={px:"6",py:"4"},FR=jf(e=>({overlay:LR,dialogContainer:MR,dialog:yt(OR,e),header:NR,closeButton:DR,body:BR,footer:zR})),jR={xs:Oo("xs"),sm:Oo("md"),md:Oo("lg"),lg:Oo("2xl"),xl:Oo("4xl"),full:Oo("full")},VR=$R({baseStyle:FR,sizes:jR,defaultProps:{size:"xs"}}),{definePartsStyle:HR,defineMultiStyleConfig:UR}=ye(S_.keys),WR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},GR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},XR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},qR=HR({preview:WR,input:GR,textarea:XR}),YR=UR({baseStyle:qR}),{definePartsStyle:KR,defineMultiStyleConfig:QR}=ye(x_.keys),li=V("form-control-color"),ZR={marginStart:"1",[li.variable]:"colors.red.500",_dark:{[li.variable]:"colors.red.300"},color:li.reference},JR={mt:"2",[li.variable]:"colors.gray.600",_dark:{[li.variable]:"colors.whiteAlpha.600"},color:li.reference,lineHeight:"normal",fontSize:"sm"},eI=KR({container:{width:"100%",position:"relative"},requiredIndicator:ZR,helperText:JR}),tI=QR({baseStyle:eI}),{definePartsStyle:rI,defineMultiStyleConfig:nI}=ye(w_.keys),ui=V("form-error-color"),oI={[ui.variable]:"colors.red.500",_dark:{[ui.variable]:"colors.red.300"},color:ui.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},iI={marginEnd:"0.5em",[ui.variable]:"colors.red.500",_dark:{[ui.variable]:"colors.red.300"},color:ui.reference},sI=rI({text:oI,icon:iI}),aI=nI({baseStyle:sI}),lI={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},uI={baseStyle:lI},cI={fontFamily:"heading",fontWeight:"bold"},dI={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},fI={baseStyle:cI,sizes:dI,defaultProps:{size:"xl"}},{definePartsStyle:Gr,defineMultiStyleConfig:hI}=ye(k_.keys),Bo=V("input-height"),zo=V("input-font-size"),Fo=V("input-padding"),jo=V("input-border-radius"),pI=Gr({addon:{height:Bo.reference,fontSize:zo.reference,px:Fo.reference,borderRadius:jo.reference},field:{width:"100%",height:Bo.reference,fontSize:zo.reference,px:Fo.reference,borderRadius:jo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),yn={lg:{[zo.variable]:"fontSizes.lg",[Fo.variable]:"space.4",[jo.variable]:"radii.md",[Bo.variable]:"sizes.12"},md:{[zo.variable]:"fontSizes.md",[Fo.variable]:"space.4",[jo.variable]:"radii.md",[Bo.variable]:"sizes.10"},sm:{[zo.variable]:"fontSizes.sm",[Fo.variable]:"space.3",[jo.variable]:"radii.sm",[Bo.variable]:"sizes.8"},xs:{[zo.variable]:"fontSizes.xs",[Fo.variable]:"space.2",[jo.variable]:"radii.sm",[Bo.variable]:"sizes.6"}},mI={lg:Gr({field:yn.lg,group:yn.lg}),md:Gr({field:yn.md,group:yn.md}),sm:Gr({field:yn.sm,group:yn.sm}),xs:Gr({field:yn.xs,group:yn.xs})};function Cp(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:r||j("red.500","red.300")(e)}}const gI=Gr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Cp(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mt(t,n),boxShadow:`0 0 0 1px ${mt(t,n)}`},_focusVisible:{zIndex:1,borderColor:mt(t,r),boxShadow:`0 0 0 1px ${mt(t,r)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),yI=Gr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Cp(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mt(t,n)},_focusVisible:{bg:"transparent",borderColor:mt(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),vI=Gr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Cp(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mt(t,n),boxShadow:`0px 1px 0px 0px ${mt(t,n)}`},_focusVisible:{borderColor:mt(t,r),boxShadow:`0px 1px 0px 0px ${mt(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),bI=Gr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),SI={outline:gI,filled:yI,flushed:vI,unstyled:bI},se=hI({baseStyle:pI,sizes:mI,variants:SI,defaultProps:{size:"md",variant:"outline"}}),Cd=V("kbd-bg"),xI={[Cd.variable]:"colors.gray.100",_dark:{[Cd.variable]:"colors.whiteAlpha.100"},bg:Cd.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},wI={baseStyle:xI},kI={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},EI={baseStyle:kI},{defineMultiStyleConfig:CI,definePartsStyle:TI}=ye(E_.keys),PI={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},_I=TI({icon:PI}),AI=CI({baseStyle:_I}),{defineMultiStyleConfig:RI,definePartsStyle:II}=ye(C_.keys),Cr=V("menu-bg"),Td=V("menu-shadow"),$I={[Cr.variable]:"#fff",[Td.variable]:"shadows.sm",_dark:{[Cr.variable]:"colors.gray.700",[Td.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Cr.reference,boxShadow:Td.reference},LI={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Cr.variable]:"colors.gray.100",_dark:{[Cr.variable]:"colors.whiteAlpha.100"}},_active:{[Cr.variable]:"colors.gray.200",_dark:{[Cr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Cr.variable]:"colors.gray.100",_dark:{[Cr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Cr.reference},MI={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},OI={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},NI={opacity:.6},DI={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},BI={transitionProperty:"common",transitionDuration:"normal"},zI=II({button:BI,list:$I,item:LI,groupTitle:MI,icon:OI,command:NI,divider:DI}),FI=RI({baseStyle:zI}),{defineMultiStyleConfig:jI,definePartsStyle:Vf}=ye(T_.keys),Pd=V("modal-bg"),_d=V("modal-shadow"),VI={bg:"blackAlpha.600",zIndex:"modal"},HI=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},UI=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Pd.variable]:"colors.white",[_d.variable]:"shadows.lg",_dark:{[Pd.variable]:"colors.gray.700",[_d.variable]:"shadows.dark-lg"},bg:Pd.reference,boxShadow:_d.reference}},WI={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},GI={position:"absolute",top:"2",insetEnd:"3"},XI=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},qI={px:"6",py:"4"},YI=Vf(e=>({overlay:VI,dialogContainer:yt(HI,e),dialog:yt(UI,e),header:WI,closeButton:GI,body:yt(XI,e),footer:qI}));function cr(e){return Vf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const KI={xs:cr("xs"),sm:cr("sm"),md:cr("md"),lg:cr("lg"),xl:cr("xl"),"2xl":cr("2xl"),"3xl":cr("3xl"),"4xl":cr("4xl"),"5xl":cr("5xl"),"6xl":cr("6xl"),full:cr("full")},QI=jI({baseStyle:YI,sizes:KI,defaultProps:{size:"md"}}),T1={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:ZI,definePartsStyle:P1}=ye(P_.keys),Tp=Ue("number-input-stepper-width"),_1=Ue("number-input-input-padding"),JI=Hr(Tp).add("0.5rem").toString(),Ad=Ue("number-input-bg"),Rd=Ue("number-input-color"),Id=Ue("number-input-border-color"),e$={[Tp.variable]:"sizes.6",[_1.variable]:JI},t$=e=>yt(se.baseStyle,e)?.field??{},r$={width:Tp.reference},n$={borderStart:"1px solid",borderStartColor:Id.reference,color:Rd.reference,bg:Ad.reference,[Rd.variable]:"colors.chakra-body-text",[Id.variable]:"colors.chakra-border-color",_dark:{[Rd.variable]:"colors.whiteAlpha.800",[Id.variable]:"colors.whiteAlpha.300"},_active:{[Ad.variable]:"colors.gray.200",_dark:{[Ad.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},o$=P1(e=>({root:e$,field:yt(t$,e)??{},stepperGroup:r$,stepper:n$}));function fl(e){const t=se.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=t.field?.fontSize??"md",o=T1.fontSizes[n];return P1({field:{...t.field,paddingInlineEnd:_1.reference,verticalAlign:"top"},stepper:{fontSize:Hr(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const i$={xs:fl("xs"),sm:fl("sm"),md:fl("md"),lg:fl("lg")},s$=ZI({baseStyle:o$,sizes:i$,variants:se.variants,defaultProps:se.defaultProps}),a$={...se.baseStyle?.field,textAlign:"center"},l$={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},u$={outline:e=>yt(se.variants?.outline,e)?.field??{},flushed:e=>yt(se.variants?.flushed,e)?.field??{},filled:e=>yt(se.variants?.filled,e)?.field??{},unstyled:se.variants?.unstyled.field??{}},c$={baseStyle:a$,sizes:l$,variants:u$,defaultProps:se.defaultProps},{defineMultiStyleConfig:d$,definePartsStyle:f$}=ye(__.keys),hl=Ue("popper-bg"),h$=Ue("popper-arrow-bg"),x0=Ue("popper-arrow-shadow-color"),p$={zIndex:"popover"},m$={[hl.variable]:"colors.white",bg:hl.reference,[h$.variable]:hl.reference,[x0.variable]:"colors.gray.200",_dark:{[hl.variable]:"colors.gray.700",[x0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},g$={px:3,py:2,borderBottomWidth:"1px"},y$={px:3,py:2},v$={px:3,py:2,borderTopWidth:"1px"},b$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},S$=f$({popper:p$,content:m$,header:g$,body:y$,footer:v$,closeButton:b$}),x$=d$({baseStyle:S$}),{defineMultiStyleConfig:w$,definePartsStyle:ms}=ye(A_.keys),k$=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=j(g0(),g0("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + to right, + transparent 0%, + ${mt(r,s)} 50%, + transparent 100% + )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},E$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},C$=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),T$=e=>({transitionProperty:"common",transitionDuration:"slow",...k$(e)}),P$=ms(e=>({label:E$,filledTrack:T$(e),track:C$(e)})),_$={xs:ms({track:{h:"1"}}),sm:ms({track:{h:"2"}}),md:ms({track:{h:"3"}}),lg:ms({track:{h:"4"}})},A$=w$({sizes:_$,baseStyle:P$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:R$,definePartsStyle:ql}=ye(R_.keys),I$=e=>{const t=yt(Cu.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},$$=ql(e=>({label:Cu.baseStyle?.(e).label,container:Cu.baseStyle?.(e).container,control:I$(e)})),L$={md:ql({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ql({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ql({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},M$=R$({baseStyle:$$,sizes:L$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:O$,definePartsStyle:N$}=ye(I_.keys),pl=V("select-bg"),D$={...se.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:pl.reference,[pl.variable]:"colors.white",_dark:{[pl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:pl.reference}},B$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},z$=N$({field:D$,icon:B$}),ml={paddingInlineEnd:"8"},F$={lg:{...se.sizes?.lg,field:{...se.sizes?.lg.field,...ml}},md:{...se.sizes?.md,field:{...se.sizes?.md.field,...ml}},sm:{...se.sizes?.sm,field:{...se.sizes?.sm.field,...ml}},xs:{...se.sizes?.xs,field:{...se.sizes?.xs.field,...ml},icon:{insetEnd:"1"}}},j$=O$({baseStyle:z$,sizes:F$,variants:se.variants,defaultProps:se.defaultProps}),$d=V("skeleton-start-color"),Ld=V("skeleton-end-color"),V$={[$d.variable]:"colors.gray.100",[Ld.variable]:"colors.gray.400",_dark:{[$d.variable]:"colors.gray.800",[Ld.variable]:"colors.gray.600"},background:$d.reference,borderColor:Ld.reference,opacity:.7,borderRadius:"sm"},H$={baseStyle:V$},Md=V("skip-link-bg"),U$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Md.variable]:"colors.white",_dark:{[Md.variable]:"colors.gray.700"},bg:Md.reference}},W$={baseStyle:U$},{defineMultiStyleConfig:G$,definePartsStyle:pc}=ye($_.keys),xo=V("slider-thumb-size"),Ys=V("slider-track-size"),wn=V("slider-bg"),X$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...kp({orientation:t,vertical:{h:"100%",px:Vr(xo.reference).divide(2).toString()},horizontal:{w:"100%",py:Vr(xo.reference).divide(2).toString()}})}},q$=e=>({...kp({orientation:e.orientation,horizontal:{h:Ys.reference},vertical:{w:Ys.reference}}),overflow:"hidden",borderRadius:"sm",[wn.variable]:"colors.gray.200",_dark:{[wn.variable]:"colors.whiteAlpha.200"},_disabled:{[wn.variable]:"colors.gray.300",_dark:{[wn.variable]:"colors.whiteAlpha.300"}},bg:wn.reference}),Y$=e=>{const{orientation:t}=e;return{...kp({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:xo.reference,h:xo.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},K$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[wn.variable]:`colors.${t}.500`,_dark:{[wn.variable]:`colors.${t}.200`},bg:wn.reference}},Q$=pc(e=>({container:X$(e),track:q$(e),thumb:Y$(e),filledTrack:K$(e)})),Z$=pc({container:{[xo.variable]:"sizes.4",[Ys.variable]:"sizes.1"}}),J$=pc({container:{[xo.variable]:"sizes.3.5",[Ys.variable]:"sizes.1"}}),eL=pc({container:{[xo.variable]:"sizes.2.5",[Ys.variable]:"sizes.0.5"}}),tL={lg:Z$,md:J$,sm:eL},rL=G$({baseStyle:Q$,sizes:tL,defaultProps:{size:"md",colorScheme:"blue"}}),io=Ue("spinner-size"),nL={width:[io.reference],height:[io.reference]},oL={xs:{[io.variable]:"sizes.3"},sm:{[io.variable]:"sizes.4"},md:{[io.variable]:"sizes.6"},lg:{[io.variable]:"sizes.8"},xl:{[io.variable]:"sizes.12"}},iL={baseStyle:nL,sizes:oL,defaultProps:{size:"md"}},{defineMultiStyleConfig:sL,definePartsStyle:A1}=ye(L_.keys),aL={fontWeight:"medium"},lL={opacity:.8,marginBottom:"2"},uL={verticalAlign:"baseline",fontWeight:"semibold"},cL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},dL=A1({container:{},label:aL,helpText:lL,number:uL,icon:cL}),fL={md:A1({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},hL=sL({baseStyle:dL,sizes:fL,defaultProps:{size:"md"}}),{defineMultiStyleConfig:pL,definePartsStyle:gs}=ye(["stepper","step","title","description","indicator","separator","icon","number"]),Ur=V("stepper-indicator-size"),Vo=V("stepper-icon-size"),Ho=V("stepper-title-font-size"),ys=V("stepper-description-font-size"),Ji=V("stepper-accent-color"),mL=gs(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Ji.variable]:`colors.${e}.500`,_dark:{[Ji.variable]:`colors.${e}.200`}},title:{fontSize:Ho.reference,fontWeight:"medium"},description:{fontSize:ys.reference,color:"chakra-subtle-text"},number:{fontSize:Ho.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Vo.reference,height:Vo.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ur.reference,height:Ur.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ji.reference},"&[data-status=complete]":{bg:Ji.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ji.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ur.reference} - 8px)`,top:`calc(${Ur.reference} + 4px)`,insetStart:`calc(${Ur.reference} / 2 - 1px)`}}})),gL=pL({baseStyle:mL,sizes:{xs:gs({stepper:{[Ur.variable]:"sizes.4",[Vo.variable]:"sizes.3",[Ho.variable]:"fontSizes.xs",[ys.variable]:"fontSizes.xs"}}),sm:gs({stepper:{[Ur.variable]:"sizes.6",[Vo.variable]:"sizes.4",[Ho.variable]:"fontSizes.sm",[ys.variable]:"fontSizes.xs"}}),md:gs({stepper:{[Ur.variable]:"sizes.8",[Vo.variable]:"sizes.5",[Ho.variable]:"fontSizes.md",[ys.variable]:"fontSizes.sm"}}),lg:gs({stepper:{[Ur.variable]:"sizes.10",[Vo.variable]:"sizes.6",[Ho.variable]:"fontSizes.lg",[ys.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yL,definePartsStyle:Yl}=ye(M_.keys),Rs=Ue("switch-track-width"),po=Ue("switch-track-height"),Od=Ue("switch-track-diff"),vL=Hr.subtract(Rs,po),Hf=Ue("switch-thumb-x"),es=Ue("switch-bg"),bL=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Rs.reference],height:[po.reference],transitionProperty:"common",transitionDuration:"fast",[es.variable]:"colors.gray.300",_dark:{[es.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[es.variable]:`colors.${t}.500`,_dark:{[es.variable]:`colors.${t}.200`}},bg:es.reference}},SL={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[po.reference],height:[po.reference],_checked:{transform:`translateX(${Hf.reference})`}},xL=Yl(e=>({container:{[Od.variable]:vL,[Hf.variable]:Od.reference,_rtl:{[Hf.variable]:Hr(Od).negate().toString()}},track:bL(e),thumb:SL})),wL={sm:Yl({container:{[Rs.variable]:"1.375rem",[po.variable]:"sizes.3"}}),md:Yl({container:{[Rs.variable]:"1.875rem",[po.variable]:"sizes.4"}}),lg:Yl({container:{[Rs.variable]:"2.875rem",[po.variable]:"sizes.6"}})},kL=yL({baseStyle:xL,sizes:wL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EL,definePartsStyle:ci}=ye(O_.keys),CL=ci({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Tu={"&[data-is-numeric=true]":{textAlign:"end"}},TL=ci(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Tu},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Tu},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),PL=ci(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Tu},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Tu},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),_L={simple:TL,striped:PL,unstyled:{}},AL={sm:ci({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ci({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ci({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},RL=EL({baseStyle:CL,variants:_L,sizes:AL,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),kt=V("tabs-color"),mr=V("tabs-bg"),gl=V("tabs-border-color"),{defineMultiStyleConfig:IL,definePartsStyle:Rr}=ye(N_.keys),$L=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},LL=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},ML=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},OL={p:4},NL=Rr(e=>({root:$L(e),tab:LL(e),tablist:ML(e),tabpanel:OL})),DL={sm:Rr({tab:{py:1,px:4,fontSize:"sm"}}),md:Rr({tab:{fontSize:"md",py:2,px:4}}),lg:Rr({tab:{fontSize:"lg",py:3,px:4}})},BL=Rr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[kt.variable]:`colors.${t}.600`,_dark:{[kt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[mr.variable]:"colors.gray.200",_dark:{[mr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:kt.reference,bg:mr.reference}}}),zL=Rr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[gl.variable]:"transparent",_selected:{[kt.variable]:`colors.${t}.600`,[gl.variable]:"colors.white",_dark:{[kt.variable]:`colors.${t}.300`,[gl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:gl.reference},color:kt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),FL=Rr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[mr.variable]:"colors.gray.50",_dark:{[mr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[mr.variable]:"colors.white",[kt.variable]:`colors.${t}.600`,_dark:{[mr.variable]:"colors.gray.800",[kt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:kt.reference,bg:mr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jL=Rr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:mt(r,`${t}.700`),bg:mt(r,`${t}.100`)}}}}),VL=Rr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[kt.variable]:"colors.gray.600",_dark:{[kt.variable]:"inherit"},_selected:{[kt.variable]:"colors.white",[mr.variable]:`colors.${t}.600`,_dark:{[kt.variable]:"colors.gray.800",[mr.variable]:`colors.${t}.300`}},color:kt.reference,bg:mr.reference}}}),HL=Rr({}),UL={line:BL,enclosed:zL,"enclosed-colored":FL,"soft-rounded":jL,"solid-rounded":VL,unstyled:HL},WL=IL({baseStyle:NL,sizes:DL,variants:UL,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:GL,definePartsStyle:mo}=ye(D_.keys),w0=V("tag-bg"),k0=V("tag-color"),Nd=V("tag-shadow"),Kl=V("tag-min-height"),Ql=V("tag-min-width"),Zl=V("tag-font-size"),Jl=V("tag-padding-inline"),XL={fontWeight:"medium",lineHeight:1.2,outline:0,[k0.variable]:Be.color.reference,[w0.variable]:Be.bg.reference,[Nd.variable]:Be.shadow.reference,color:k0.reference,bg:w0.reference,boxShadow:Nd.reference,borderRadius:"md",minH:Kl.reference,minW:Ql.reference,fontSize:Zl.reference,px:Jl.reference,_focusVisible:{[Nd.variable]:"shadows.outline"}},qL={lineHeight:1.2,overflow:"visible"},YL={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},KL=mo({container:XL,label:qL,closeButton:YL}),QL={sm:mo({container:{[Kl.variable]:"sizes.5",[Ql.variable]:"sizes.5",[Zl.variable]:"fontSizes.xs",[Jl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:mo({container:{[Kl.variable]:"sizes.6",[Ql.variable]:"sizes.6",[Zl.variable]:"fontSizes.sm",[Jl.variable]:"space.2"}}),lg:mo({container:{[Kl.variable]:"sizes.8",[Ql.variable]:"sizes.8",[Zl.variable]:"fontSizes.md",[Jl.variable]:"space.3"}})},ZL={subtle:mo(e=>({container:Ps.variants?.subtle(e)})),solid:mo(e=>({container:Ps.variants?.solid(e)})),outline:mo(e=>({container:Ps.variants?.outline(e)}))},JL=GL({variants:ZL,baseStyle:KL,sizes:QL,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),eM={...se.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},tM={outline:e=>se.variants?.outline(e).field??{},flushed:e=>se.variants?.flushed(e).field??{},filled:e=>se.variants?.filled(e).field??{},unstyled:se.variants?.unstyled.field??{}},rM={xs:se.sizes?.xs.field??{},sm:se.sizes?.sm.field??{},md:se.sizes?.md.field??{},lg:se.sizes?.lg.field??{}},nM={baseStyle:eM,sizes:rM,variants:tM,defaultProps:{size:"md",variant:"outline"}},yl=Ue("tooltip-bg"),Dd=Ue("tooltip-fg"),oM=Ue("popper-arrow-bg"),iM={bg:yl.reference,color:Dd.reference,[yl.variable]:"colors.gray.700",[Dd.variable]:"colors.whiteAlpha.900",_dark:{[yl.variable]:"colors.gray.300",[Dd.variable]:"colors.gray.900"},[oM.variable]:yl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},sM={baseStyle:iM},aM={Accordion:G_,Alert:AA,Avatar:FA,Badge:Ps,Breadcrumb:KA,Button:iR,Checkbox:Cu,CloseButton:SR,Code:ER,Container:TR,Divider:IR,Drawer:VR,Editable:YR,Form:tI,FormError:aI,FormLabel:uI,Heading:fI,Input:se,Kbd:wI,Link:EI,List:AI,Menu:FI,Modal:QI,NumberInput:s$,PinInput:c$,Popover:x$,Progress:A$,Radio:M$,Select:j$,Skeleton:H$,SkipLink:W$,Slider:rL,Spinner:iL,Stat:hL,Switch:kL,Table:RL,Tabs:WL,Tag:JL,Textarea:nM,Tooltip:sM,Card:cR,Stepper:gL},lM={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},uM={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},cM={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},dM={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},fM={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},hM={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},pM={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},mM={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},gM={property:hM,easing:pM,duration:mM},yM={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},vM={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},bM={breakpoints:uM,zIndices:yM,radii:dM,blur:vM,colors:cM,...T1,sizes:S1,shadows:fM,space:b1,borders:lM,transition:gM},SM={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},xM={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},wM=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function kM(e){return gt(e)?wM.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const EM="ltr",CM={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Pu={semanticTokens:SM,direction:EM,...bM,components:aM,styles:xM,config:CM};var TM=!1;function PM(e){if(e.sheet)return e.sheet;for(var t=0;t 0?Qe(Fi,--Rt):0,xi--,ze===10&&(xi=1,gc--),ze}function Dt(){return ze=Rt 2||Qs(ze)>3?"":" "}function FM(e,t){for(;--t&&Dt()&&!(ze<48||ze>102||ze>57&&ze<65||ze>70&&ze<97););return Oa(e,eu()+(t<6&&Ir()==32&&Dt()==32))}function Wf(e){for(;Dt();)switch(ze){case e:return Rt;case 34:case 39:e!==34&&e!==39&&Wf(ze);break;case 40:e===41&&Wf(e);break;case 92:Dt();break}return Rt}function jM(e,t){for(;Dt()&&e+ze!==57;)if(e+ze===84&&Ir()===47)break;return"/*"+Oa(t,Rt-1)+"*"+mc(e===47?e:Dt())}function VM(e){for(;!Qs(Ir());)Dt();return Oa(e,Rt)}function HM(e){return O1(ru("",null,null,null,[""],e=M1(e),0,[0],e))}function ru(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,m=0,y=0,v=1,x=1,p=1,h=0,g="",S=o,C=i,P=n,T=g;x;)switch(y=h,h=Dt()){case 40:if(y!=108&&Qe(T,d-1)==58){Uf(T+=ie(tu(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:T+=tu(h);break;case 9:case 10:case 13:case 32:T+=zM(y);break;case 92:T+=FM(eu()-1,7);continue;case 47:switch(Ir()){case 42:case 47:vl(UM(jM(Dt(),eu()),t,r),l);break;default:T+="/"}break;case 123*v:a[u++]=Tr(T)*p;case 125*v:case 59:case 0:switch(h){case 0:case 125:x=0;case 59+c:p==-1&&(T=ie(T,/\f/g,"")),m>0&&Tr(T)-d&&vl(m>32?C0(T+";",n,r,d-1):C0(ie(T," ","")+";",n,r,d-2),l);break;case 59:T+=";";default:if(vl(P=E0(T,t,r,u,c,o,a,g,S=[],C=[],d),i),h===123)if(c===0)ru(T,t,P,P,S,i,d,a,C);else switch(f===99&&Qe(T,3)===110?100:f){case 100:case 108:case 109:case 115:ru(e,P,P,n&&vl(E0(e,P,P,0,0,o,a,g,o,S=[],d),C),o,C,d,a,n?S:C);break;default:ru(T,P,P,P,[""],C,0,a,C)}}u=c=m=0,v=p=1,g=T="",d=s;break;case 58:d=1+Tr(T),m=y;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&BM()==125)continue}switch(T+=mc(h),h*v){case 38:p=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Tr(T)-1)*p,p=1;break;case 64:Ir()===45&&(T+=tu(Dt())),f=Ir(),c=d=Tr(g=T+=VM(eu())),h++;break;case 45:y===45&&Tr(T)==2&&(v=0)}}return i}function E0(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],m=Ap(f),y=0,v=0,x=0;y 0?f[p]+" "+h:ie(h,/&\f/g,f[p])))&&(l[x++]=g);return yc(e,t,r,o===0?Pp:a,l,u,c)}function UM(e,t,r){return yc(e,t,r,R1,mc(DM()),Ks(e,2,-2),0)}function C0(e,t,r,n){return yc(e,t,r,_p,Ks(e,0,n),Ks(e,n+1,-1),n)}function di(e,t){for(var r="",n=Ap(e),o=0;o 6)switch(Qe(e,t+1)){case 109:if(Qe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+_u+(Qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Uf(e,"stretch")?D1(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qe(e,t+1)!==115)break;case 6444:switch(Qe(e,Tr(e)-3-(~Uf(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Qe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(Qe(e,t+11)){case 114:return oe+e+nt+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+nt+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+nt+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+nt+e+e}return e}var JM=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case _p:t.return=D1(t.value,t.length);break;case I1:return di([ts(t,{value:ie(t.value,"@","@"+oe)})],o);case Pp:if(t.length)return NM(t.props,function(i){switch(OM(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return di([ts(t,{props:[ie(i,/:(read-\w+)/,":"+_u+"$1")]})],o);case"::placeholder":return di([ts(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),ts(t,{props:[ie(i,/:(plac\w+)/,":"+_u+"$1")]}),ts(t,{props:[ie(i,/:(plac\w+)/,nt+"input-$1")]})],o)}return""})}},eO=[JM],B1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||eO,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),p=1;p =4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var dO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fO=!1,hO=/[A-Z]|^ms/g,pO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U1=function(t){return t.charCodeAt(1)===45},_0=function(t){return t!=null&&typeof t!="boolean"},Bd=N1(function(e){return U1(e)?e:e.replace(hO,"-$&").toLowerCase()}),A0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(pO,function(n,o,i){return Pr={name:o,styles:i,next:Pr},o})}return dO[t]!==1&&!U1(t)&&typeof r=="number"&&r!==0?r+"px":r},mO="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Zs(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Pr={name:o.name,styles:o.styles,next:Pr},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Pr={name:s.name,styles:s.styles,next:Pr},s=s.next;var a=i.styles+";";return a}return gO(e,t,r)}case"function":{if(e!==void 0){var l=Pr,u=r(e);return Pr=l,Zs(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function gO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o {const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i?.()},setClassName(o){document.body.classList.add(o?bl.dark:bl.light),document.body.classList.remove(o?bl.light:bl.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return n.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=n.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r!==void 0&&(o.nonce=r),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return n}const RO="chakra-ui-color-mode";function IO(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const $O=IO(RO),ki=()=>{},LO=BP()?w.useLayoutEffect:w.useEffect;function $0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const MO=Ac(function(t,r){const{value:n,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=$O}=t,u=s==="dark"?"dark":"light",[c,d]=w.useState(()=>$0(l,u)),[f,m]=w.useState(()=>$0(l)),{getSystemTheme:y,setClassName:v,setDataset:x,addListener:p}=w.useMemo(()=>AO({preventTransition:a,nonce:r?.nonce}),[a,r?.nonce]),h=s==="system"&&!c?f:c,g=w.useCallback(P=>{const T=P==="system"?y():P;d(T),v(T==="dark"),x(T),l.set(T)},[l,y,v,x]);LO(()=>{s==="system"&&m(y())},[]),w.useEffect(()=>{const P=l.get();if(P){g(P);return}if(s==="system"){g("system");return}g(u)},[l,u,s,g]);const S=w.useCallback(()=>{g(h==="dark"?"light":"dark")},[h,g]);w.useEffect(()=>{if(i)return p(g)},[i,p,g]);const C=w.useMemo(()=>({colorMode:n??h,toggleColorMode:n?ki:S,setColorMode:n?ki:g,forced:n!==void 0}),[h,S,g,n]);return R.jsx(Na.Provider,{value:C,children:o})});MO.displayName="ColorModeProvider";function q1(e){const t=w.useMemo(()=>({colorMode:"dark",toggleColorMode:ki,setColorMode:ki,forced:!0}),[]);return R.jsx(Na.Provider,{value:t,...e})}q1.displayName="DarkMode";function Y1(e){const t=w.useMemo(()=>({colorMode:"light",toggleColorMode:ki,setColorMode:ki,forced:!0}),[]);return R.jsx(Na.Provider,{value:t,...e})}Y1.displayName="LightMode";const K1=String.raw,OO=K1` + :root, + :host { + --chakra-vh: 100vh; + } + + @supports (height: -webkit-fill-available) { + :root, + :host { + --chakra-vh: -webkit-fill-available; + } + } + + @supports (height: -moz-fill-available) { + :root, + :host { + --chakra-vh: -moz-fill-available; + } + } + + @supports (height: 100dvh) { + :root, + :host { + --chakra-vh: 100dvh; + } + } +`,NO=({scope:e=""})=>R.jsx(Rc,{styles:K1` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${OO} + `});function DO(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=w.useMemo(()=>h_(r),[r]);return R.jsxs(wO,{theme:o,children:[R.jsx(BO,{root:t}),n]})}function BO({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return R.jsx(Rc,{styles:r=>({[t]:r.__cssVars})})}Bi({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in ` ` "});function zO(){const{colorMode:e}=Ic();return R.jsx(Rc,{styles:t=>{const r=l1(t,"styles.global"),n=Ar(r,{theme:t,colorMode:e});return n?m1(n)(t):void 0}})}const[PV,FO]=Bi({strict:!1,name:"PortalManagerContext"}),Np=w.createContext({getDocument(){return document},getWindow(){return window}});Np.displayName="EnvironmentContext";function _V({defer:e}={}){const[,t]=w.useReducer(r=>r+1,0);return xu(()=>{e&&t()},[e]),w.useContext(Np)}function Q1(e){const{children:t,environment:r,disabled:n}=e,o=w.useRef(null),i=w.useMemo(()=>r||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[r]),s=!n||!r;return R.jsxs(Np.Provider,{value:i,children:[t,s&&R.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Q1.displayName="EnvironmentProvider";const Dp=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$c=w.createContext({}),Da=w.createContext(null),Bp=typeof window<"u",Z1=Bp?w.useLayoutEffect:w.useEffect,J1=w.createContext({strict:!1}),Lc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jO="framerAppearId",eS="data-"+Lc(jO),VO={skipAnimations:!1,useManualTiming:!1};function HO(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const m=d&&n?t:r;return c&&i.add(u),m.has(u)||m.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(s=u,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(a),n=!1,o&&(o=!1,l.process(u))}};return l}const Sl=["read","resolveKeyframes","update","preRender","render","postRender"],UO=40;function tS(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=Sl.reduce((p,h)=>(p[h]=HO(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,m=()=>{const p=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(p-o.timestamp,UO),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))},y=()=>{r=!0,n=!0,o.isProcessing||e(m)};return{schedule:Sl.reduce((p,h)=>{const g=s[h];return p[h]=(S,C=!1,P=!1)=>(r||y(),g.schedule(S,C,P)),p},{}),cancel:p=>{for(let h=0;h {d&&d.update(r,l)});const m=r[eS],y=w.useRef(!!m&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,m)));return Z1(()=>{d&&(d.updateFeatures(),zp.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())}),w.useEffect(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current=!1,L0||(L0=!0,queueMicrotask(GO)))}),d}function GO(){window.MotionHandoffIsComplete=!0}function XO(e,t,r,n){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:nS(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Uo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}function nS(e){if(e)return e.options.allowProjection!==!1?e.projection:nS(e.parent)}function qO(e,t,r){return w.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Uo(r)&&(r.current=n))},[t])}function Js(e){return typeof e=="string"||Array.isArray(e)}function ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Fp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jp=["initial",...Fp];function Mc(e){return ea(e.animate)||jp.some(t=>Js(e[t]))}function oS(e){return!!(Mc(e)||e.variants)}function YO(e,t){if(Mc(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Js(r)?r:void 0,animate:Js(n)?n:void 0}}return e.inherit!==!1?t:{}}function KO(e){const{initial:t,animate:r}=YO(e,w.useContext($c));return w.useMemo(()=>({initial:t,animate:r}),[M0(t),M0(r)])}function M0(e){return Array.isArray(e)?e.join(" "):e}const O0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ei={};for(const e in O0)Ei[e]={isEnabled:t=>O0[e].some(r=>!!t[r])};function QO(e){for(const t in e)Ei[t]={...Ei[t],...e[t]}}const Vp=w.createContext({}),ZO=Symbol.for("motionComponentSymbol"),at=e=>e;let Xf=at;function JO({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&QO(e);function i(a,l){let u;const c={...w.useContext(Dp),...a,layoutId:eN(a)},{isStatic:d}=c,f=KO(a),m=n(a,d);if(!d&&Bp){tN();const y=rN(c);u=y.MeasureLayout,f.visualElement=WO(o,m,c,t,y.ProjectionNode)}return R.jsxs($c.Provider,{value:f,children:[u&&f.visualElement?R.jsx(u,{visualElement:f.visualElement,...c}):null,r(o,a,qO(m,f.visualElement,l),m,d,f.visualElement)]})}const s=w.forwardRef(i);return s[ZO]=o,s}function eN({layoutId:e}){const t=w.useContext(Vp).id;return t&&e!==void 0?t+"-"+e:e}function tN(e,t){w.useContext(J1).strict}function rN(e){const{drag:t,layout:r}=Ei;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function nN(e){function t(n,o={}){return JO(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const oN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hp(e){return typeof e!="string"||e.includes("-")?!1:!!(oN.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ru={};function iN(e){Object.assign(Ru,e)}const Ba=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fn=new Set(Ba);function iS(e,{layout:t,layoutId:r}){return Fn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ru[e]||e==="opacity")}const st=e=>!!(e&&e.getVelocity),sS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,On=(e,t,r)=>r>t?t:r typeof e=="number",parse:parseFloat,transform:e=>e},Is={...ji,transform:e=>On(0,1,e)},xl={...ji,default:1},$s=e=>Math.round(e*1e5)/1e5,Up=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,sN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,aN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function za(e){return typeof e=="string"}function lN(e){return e==null}const Fa=e=>({test:t=>za(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bn=Fa("deg"),$r=Fa("%"),W=Fa("px"),uN=Fa("vh"),cN=Fa("vw"),N0={...$r,parse:e=>$r.parse(e)/100,transform:e=>$r.transform(e*100)},D0={...ji,transform:Math.round},Wp={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,size:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,rotate:bn,rotateX:bn,rotateY:bn,rotateZ:bn,scale:xl,scaleX:xl,scaleY:xl,scaleZ:xl,skew:bn,skewX:bn,skewY:bn,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:Is,originX:N0,originY:N0,originZ:W,zIndex:D0,backgroundPositionX:W,backgroundPositionY:W,fillOpacity:Is,strokeOpacity:Is,numOctaves:D0},dN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fN=Ba.length;function hN(e,t,r){let n="",o=!0;for(let i=0;i t=>typeof t=="string"&&t.startsWith(e),lS=aS("--"),pN=aS("var(--"),Gp=e=>pN(e)?mN.test(e.split("/*")[0].trim()):!1,mN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Xp(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Fn.has(l)){s=!0;continue}else if(lS(l)){o[l]=u;continue}else{const c=sS(u,Wp[l]);l.startsWith("origin")?(a=!0,i[l]=c):n[l]=c}}if(t.transform||(s||r?n.transform=hN(t,e.transform,r):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;n.transformOrigin=`${l} ${u} ${c}`}}const qp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uS(e,t,r){for(const n in t)!st(t[n])&&!iS(n,r)&&(e[n]=t[n])}function gN({transformTemplate:e},t){return w.useMemo(()=>{const r=qp();return Xp(r,t,e),Object.assign({},r.vars,r.style)},[t])}function yN(e,t){const r=e.style||{},n={};return uS(n,r,e),Object.assign(n,gN(e,t)),n}function vN(e,t){const r={},n=yN(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const bN=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Iu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bN.has(e)}let cS=e=>!Iu(e);function SN(e){e&&(cS=t=>t.startsWith("on")?!Iu(t):e(t))}try{SN(require("@emotion/is-prop-valid").default)}catch{}function xN(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(cS(o)||r===!0&&Iu(o)||!t&&!Iu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function B0(e,t,r){return typeof e=="string"?e:W.transform(t+r*e)}function wN(e,t,r){const n=B0(t,e.x,e.width),o=B0(r,e.y,e.height);return`${n} ${o}`}const kN={offset:"stroke-dashoffset",array:"stroke-dasharray"},EN={offset:"strokeDashoffset",array:"strokeDasharray"};function CN(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?kN:EN;e[i.offset]=W.transform(-n);const s=W.transform(t),a=W.transform(r);e[i.array]=`${s} ${a}`}function Yp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(Xp(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:y}=e;f.transform&&(y&&(m.transform=f.transform),delete f.transform),y&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=wN(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),s!==void 0&&CN(f,s,a,l,!1)}const dS=()=>({...qp(),attrs:{}}),Kp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function TN(e,t,r,n){const o=w.useMemo(()=>{const i=dS();return Yp(i,t,Kp(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};uS(i,e.style,e),o.style={...i,...o.style}}return o}function PN(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(Hp(r)?TN:vN)(n,i,s,r),u=xN(n,typeof r=="string",e),c=r!==w.Fragment?{...u,...l,ref:o}:{},{children:d}=n,f=w.useMemo(()=>st(d)?d.get():d,[d]);return w.createElement(r,{...c,children:f})}}function fS(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const hS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function pS(e,t,r,n){fS(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(hS.has(o)?o:Lc(o),t.attrs[o])}function Qp(e,t,r){var n;const{style:o}=e,i={};for(const s in o)(st(o[s])||t.style&&st(t.style[s])||iS(s,e)||((n=r?.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=o[s]);return r&&o&&typeof o.willChange=="string"&&(r.applyWillChange=!1),i}function mS(e,t,r){const n=Qp(e,t,r);for(const o in e)if(st(e[o])||st(t[o])){const i=Ba.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}function z0(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Zp(e,t,r,n){if(typeof t=="function"){const[o,i]=z0(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=z0(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function Jp(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const qf=e=>Array.isArray(e),_N=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),AN=e=>qf(e)?e[e.length-1]||0:e;function nu(e){const t=st(e)?e.get():e;return _N(t)?t.toValue():t}const gS=new Set(["opacity","clipPath","filter","transform"]);function yS(e){if(Fn.has(e))return"transform";if(gS.has(e))return Lc(e)}function Oc(e,t){e.indexOf(t)===-1&&e.push(t)}function Nc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function RN({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},o,i,s,a){const l={latestValues:$N(o,i,s,a?!1:e,t),renderState:r()};return n&&(l.mount=u=>n(o,u,l)),l}const vS=e=>(t,r)=>{const n=w.useContext($c),o=w.useContext(Da),i=()=>RN(e,t,n,o,r);return r?i():Jp(i)};function IN(e,t){const r=yS(t);r&&Oc(e,r)}function F0(e,t,r){const n=Array.isArray(t)?t:[t];for(let o=0;o {for(const h in x){let g=x[h];if(Array.isArray(g)){const S=y?g.length-1:0;g=g[S]}g!==null&&(s[h]=g)}for(const h in p)s[h]=p[h]}),l&&(d&&c!==!1&&!ea(d)&&F0(e,d,x=>{for(const p in x)IN(a,p)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:ce,cancel:on,state:Ke,steps:zd}=tS(typeof requestAnimationFrame<"u"?requestAnimationFrame:at,!0),LN={useVisualState:vS({scrapeMotionValuesFromProps:mS,createRenderState:dS,onMount:(e,t,{renderState:r,latestValues:n})=>{ce.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ce.render(()=>{Yp(r,n,Kp(t.tagName),e.transformTemplate),pS(t,r)})}})},MN={useVisualState:vS({applyWillChange:!0,scrapeMotionValuesFromProps:Qp,createRenderState:qp})};function ON(e,{forwardMotionProps:t=!1},r,n){return{...Hp(e)?LN:MN,preloadedFeatures:r,useRender:PN(t),createVisualElement:n,Component:e}}function Xr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const bS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dc(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const NN=e=>t=>bS(t)&&e(t,Dc(t));function Qr(e,t,r,n){return Xr(e,t,NN(r),n)}const DN=(e,t)=>r=>t(e(r)),Zr=(...e)=>e.reduce(DN);function SS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const j0=SS("dragHorizontal"),V0=SS("dragVertical");function xS(e){let t=!1;if(e==="y")t=V0();else if(e==="x")t=j0();else{const r=j0(),n=V0();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function wS(){const e=xS(!0);return e?(e(),!1):!0}class jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function H0(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||wS())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[n];l&&ce.postRender(()=>l(i,s))};return Qr(e.current,r,o,{passive:!e.getProps()[n]})}class BN extends jn{mount(){this.unmount=Zr(H0(this.node,!0),H0(this.node,!1))}unmount(){}}class zN extends jn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zr(Xr(this.node.current,"focus",()=>this.onFocus()),Xr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const kS=(e,t)=>t?e===t?!0:kS(e,t.parentElement):!1;function Fd(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Dc(r))}class FN extends jn{constructor(){super(...arguments),this.removeStartListeners=at,this.removeEndListeners=at,this.removeAccessibleListeners=at,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Qr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!kS(this.node.current,a.target)?c:u;f&&ce.update(()=>f(a,l))},{passive:!(n.onTap||n.onPointerUp)}),s=Qr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Zr(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Fd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ce.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Xr(this.node.current,"keyup",s),Fd("down",(a,l)=>{this.startPress(a,l)})},r=Xr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Fd("cancel",(i,s)=>this.cancelPress(i,s))},o=Xr(this.node.current,"blur",n);this.removeAccessibleListeners=Zr(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ce.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!wS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ce.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Qr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Xr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zr(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Yf=new WeakMap,jd=new WeakMap,jN=e=>{const t=Yf.get(e.target);t&&t(e)},VN=e=>{e.forEach(jN)};function HN({root:e,...t}){const r=e||document;jd.has(r)||jd.set(r,{});const n=jd.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(VN,{root:e,...t})),n[o]}function UN(e,t,r){const n=HN(t);return Yf.set(e,r),n.observe(e),()=>{Yf.delete(e),n.unobserve(e)}}const WN={some:0,all:1};class GN extends jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:WN[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return UN(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(XN(t,r))&&this.startObserver()}unmount(){}}function XN({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const qN={inView:{Feature:GN},tap:{Feature:FN},focus:{Feature:zN},hover:{Feature:BN}};function ES(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n e*1e3,en=e=>e/1e3,YN={type:"spring",stiffness:500,damping:25,restSpeed:10},KN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),QN={type:"keyframes",duration:.8},ZN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},JN=(e,{keyframes:t})=>t.length>2?QN:Fn.has(e)?e.startsWith("scale")?KN(t[1]):YN:ZN;function eD({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function em(e,t){return e[t]||e.default||e}const tD=e=>e!==null;function zc(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(tD),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}const CS=e=>/^0[^.\s]+$/u.test(e);function rD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||CS(e):!0}const TS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),nD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oD(e){const t=nD.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}function PS(e,t,r=1){const[n,o]=oD(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return TS(s)?parseFloat(s):s}return Gp(o)?PS(o,t,r+1):o}const iD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),U0=e=>e===ji||e===W,W0=(e,t)=>parseFloat(e.split(", ")[t]),G0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return W0(o[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?W0(i[1],e):0}},sD=new Set(["x","y","z"]),aD=Ba.filter(e=>!sD.has(e));function lD(e){const t=[];return aD.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Ci={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:G0(4,13),y:G0(5,14)};Ci.translateX=Ci.x;Ci.translateY=Ci.y;const _S=e=>t=>t.test(e),uD={test:e=>e==="auto",parse:e=>e},AS=[ji,W,$r,bn,cN,uN,uD],X0=e=>AS.find(_S(e)),go=new Set;let Kf=!1,Qf=!1;function RS(){if(Qf){const e=Array.from(go).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=lD(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,s])=>{var a;(a=n.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Qf=!1,Kf=!1,go.forEach(e=>e.complete()),go.clear()}function IS(){go.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qf=!0)})}function cD(){IS(),RS()}class tm{constructor(t,r,n,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(go.add(this),Kf||(Kf=!0,ce.read(IS),ce.resolveKeyframes(RS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let i=0;i r=>!!(za(r)&&aN.test(r)&&r.startsWith(e)||t&&!lN(r)&&Object.prototype.hasOwnProperty.call(r,t)),$S=(e,t,r)=>n=>{if(!za(n))return n;const[o,i,s,a]=n.match(Up);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},dD=e=>On(0,255,e),Vd={...ji,transform:e=>Math.round(dD(e))},lo={test:rm("rgb","red"),parse:$S("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Vd.transform(e)+", "+Vd.transform(t)+", "+Vd.transform(r)+", "+$s(Is.transform(n))+")"};function fD(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Zf={test:rm("#"),parse:fD,transform:lo.transform},Wo={test:rm("hsl","hue"),parse:$S("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+$r.transform($s(t))+", "+$r.transform($s(r))+", "+$s(Is.transform(n))+")"},ot={test:e=>lo.test(e)||Zf.test(e)||Wo.test(e),parse:e=>lo.test(e)?lo.parse(e):Wo.test(e)?Wo.parse(e):Zf.parse(e),transform:e=>za(e)?e:e.hasOwnProperty("red")?lo.transform(e):Wo.transform(e)};function hD(e){var t,r;return isNaN(e)&&za(e)&&(((t=e.match(Up))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(sN))===null||r===void 0?void 0:r.length)||0)>0}const LS="number",MS="color",pD="var",mD="var(",q0="${}",gD=/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 ta(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(gD,l=>(ot.test(l)?(n.color.push(i),o.push(MS),r.push(ot.parse(l))):l.startsWith(mD)?(n.var.push(i),o.push(pD),r.push(l)):(n.number.push(i),o.push(LS),r.push(parseFloat(l))),++i,q0)).split(q0);return{values:r,split:a,indexes:n,types:o}}function OS(e){return ta(e).values}function NS(e){const{split:t,types:r}=ta(e),n=t.length;return o=>{let i="";for(let s=0;s typeof e=="number"?0:e;function vD(e){const t=OS(e);return NS(e)(t.map(yD))}const Nn={test:hD,parse:OS,createTransformer:NS,getAnimatableNone:vD},bD=new Set(["brightness","contrast","saturate","opacity"]);function SD(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Up)||[];if(!n)return e;const o=r.replace(n,"");let i=bD.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const xD=/\b([a-z-]*)\(.*?\)/gu,Jf={...Nn,getAnimatableNone:e=>{const t=e.match(xD);return t?t.map(SD).join(" "):e}},wD={...Wp,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Jf,WebkitFilter:Jf},nm=e=>wD[e];function DS(e,t){let r=nm(e);return r!==Jf&&(r=Nn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const kD=new Set(["auto","none","0"]);function ED(e,t,r){let n=0,o;for(;n {r.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function zS(e){let t;return()=>(t===void 0&&(t=e()),t)}let ou;function CD(){ou=void 0}const tn={now:()=>(ou===void 0&&tn.set(Ke.isProcessing||VO.useManualTiming?Ke.timestamp:performance.now()),ou),set:e=>{ou=e,queueMicrotask(CD)}},Y0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nn.test(e)||e==="0")&&!e.startsWith("url("));function TD(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r _D?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cD(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=tn.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!PD(t,n,o,i))if(s)this.options.duration=0;else{l?.(zc(t,this.options,r)),a?.(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,r);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...c},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function jS(e,t){return t?e*(1e3/t):0}const AD=5;function VS(e,t,r){const n=Math.max(t-AD,0);return jS(r-e(n),t-n)}const Hd=.001,RD=.01,ID=10,$D=.05,LD=1;function MD({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,s=1-t;s=On($D,LD,s),e=On(RD,ID,en(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-r,m=eh(u,s),y=Math.exp(-d);return Hd-f/m*y},i=u=>{const d=u*s*e,f=d*r+r,m=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),v=eh(Math.pow(u,2),s);return(-o(u)+Hd>0?-1:1)*((f-m)*y)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Hd+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const a=5/e,l=ND(o,i,a);if(e=Jr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const OD=12;function ND(e,t,r){let n=r;for(let o=1;o e[r]!==void 0)}function zD(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!K0(e,BD)&&K0(e,DD)){const r=MD(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function HS({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=zD({...n,velocity:-en(n.velocity||0)}),m=d||0,y=l/(2*Math.sqrt(a*u)),v=i-o,x=en(Math.sqrt(a/u)),p=Math.abs(v)<5;r||(r=p?.01:2),t||(t=p?.005:.5);let h;if(y<1){const g=eh(x,y);h=S=>{const C=Math.exp(-y*x*S);return i-C*((m+y*x*v)/g*Math.sin(g*S)+v*Math.cos(g*S))}}else if(y===1)h=g=>i-Math.exp(-x*g)*(v+(m+x*v)*g);else{const g=x*Math.sqrt(y*y-1);h=S=>{const C=Math.exp(-y*x*S),P=Math.min(g*S,300);return i-C*((m+y*x*v)*Math.sinh(P)+g*v*Math.cosh(P))/g}}return{calculatedDuration:f&&c||null,next:g=>{const S=h(g);if(f)s.done=g>=c;else{let C=0;y<1&&(C=g===0?Jr(m):VS(h,g,S));const P=Math.abs(C)<=r,T=Math.abs(i-S)<=t;s.done=P&&T}return s.value=s.done?i:S,s}}}function Q0({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=A=>a!==void 0&&Al,y=A=>a===void 0?l:l===void 0||Math.abs(a-A) -v*Math.exp(-A/n),g=A=>p+h(A),S=A=>{const M=h(A),I=g(A);f.done=Math.abs(M)<=u,f.value=f.done?p:I};let C,P;const T=A=>{m(f.value)&&(C=A,P=HS({keyframes:[f.value,y(f.value)],velocity:VS(g,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:A=>{let M=!1;return!P&&C===void 0&&(M=!0,S(A),T(A)),C!==void 0&&A>=C?P.next(A-C):(!M&&S(A),f)}}}const US=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,FD=1e-7,jD=12;function VD(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=US(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>FD&&++a VD(i,0,1,e,r);return i=>i===0||i===1?i:US(o(i),t,n)}const HD=ja(.42,0,1,1),UD=ja(0,0,.58,1),WS=ja(.42,0,.58,1),WD=e=>Array.isArray(e)&&typeof e[0]!="number",GS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,XS=e=>t=>1-e(1-t),om=e=>1-Math.sin(Math.acos(e)),qS=XS(om),GD=GS(om),YS=ja(.33,1.53,.69,.99),im=XS(YS),XD=GS(im),qD=e=>(e*=2)<1?.5*im(e):.5*(2-Math.pow(2,-10*(e-1))),Z0={linear:at,easeIn:HD,easeInOut:WS,easeOut:UD,circIn:om,circInOut:GD,circOut:qS,backIn:im,backInOut:XD,backOut:YS,anticipate:qD},J0=e=>{if(Array.isArray(e)){Xf(e.length===4);const[t,r,n,o]=e;return ja(t,r,n,o)}else if(typeof e=="string")return Xf(Z0[e]!==void 0),Z0[e];return e},ra=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},_e=(e,t,r)=>e+(t-e)*r;function Ud(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function YD({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=Ud(l,a,e+1/3),i=Ud(l,a,e),s=Ud(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function $u(e,t){return r=>r>0?t:e}const Wd=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},KD=[Zf,lo,Wo],QD=e=>KD.find(t=>t.test(e));function ey(e){const t=QD(e);if(!t)return!1;let r=t.parse(e);return t===Wo&&(r=YD(r)),r}const ty=(e,t)=>{const r=ey(e),n=ey(t);if(!r||!n)return $u(e,t);const o={...r};return i=>(o.red=Wd(r.red,n.red,i),o.green=Wd(r.green,n.green,i),o.blue=Wd(r.blue,n.blue,i),o.alpha=_e(r.alpha,n.alpha,i),lo.transform(o))},th=new Set(["none","hidden"]);function ZD(e,t){return th.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function JD(e,t){return r=>_e(e,t,r)}function sm(e){return typeof e=="number"?JD:typeof e=="string"?Gp(e)?$u:ot.test(e)?ty:r5:Array.isArray(e)?KS:typeof e=="object"?ot.test(e)?ty:e5:$u}function KS(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>sm(i)(i,t[s]));return i=>{for(let s=0;s {for(const i in n)r[i]=n[i](o);return r}}function t5(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i {const r=Nn.createTransformer(t),n=ta(e),o=ta(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?th.has(e)&&!o.values.length||th.has(t)&&!n.values.length?ZD(e,t):Zr(KS(t5(n,o),o.values),r):$u(e,t)};function QS(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?_e(e,t,r):sm(e)(e,t)}function n5(e,t,r){const n=[],o=r||QS,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=n5(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;c l(On(e[0],e[i-1],u)):l}function i5(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ra(0,t,n);e.push(_e(r,1,o))}}function s5(e){const t=[0];return i5(t,e.length-1),t}function a5(e,t){return e.map(r=>r*t)}function l5(e,t){return e.map(()=>t||WS).splice(0,e.length-1)}function Lu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=WD(n)?n.map(J0):J0(n),i={done:!1,value:t[0]},s=a5(r&&r.length===t.length?r:s5(t),e),a=o5(s,t,{ease:Array.isArray(o)?o:l5(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const ry=2e4;function u5(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t =ry?1/0:t}const c5=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ce.update(t,!0),stop:()=>on(t),now:()=>Ke.isProcessing?Ke.timestamp:tn.now()}},d5={decay:Q0,inertia:Q0,tween:Lu,keyframes:Lu,spring:HS},f5=e=>e/100;class am extends FS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:r,motionValue:n,element:o,keyframes:i}=this.options,s=o?.KeyframeResolver||tm,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,r,n,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=d5[r]||Lu;let l,u;a!==Lu&&typeof t[0]!="number"&&(l=Zr(f5,QS(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=u5(c));const{calculatedDuration:d}=c,f=d+o,m=f*(n+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=n;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:y,repeatDelay:v,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,S=i;if(m){const A=Math.min(this.currentTime,c)/d;let M=Math.floor(A),I=A%1;!I&&A>=1&&(I=1),I===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(y==="reverse"?(I=1-I,v&&(I-=v/d)):y==="mirror"&&(S=s)),g=On(0,1,I)*d}const C=h?{done:!1,value:l[0]}:S.next(g);a&&(C.value=a(C.value));let{done:P}=C;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return T&&o!==void 0&&(C.value=zc(l,this.options,o)),x&&x(C.value),T&&this.finish(),C}get duration(){const{resolved:t}=this;return t?en(t.calculatedDuration):0}get time(){return en(this.currentTime)}set time(t){t=Jr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=en(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=c5,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),r&&r();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const ZS=e=>Array.isArray(e)&&typeof e[0]=="number";function JS(e){return!!(!e||typeof e=="string"&&e in lm||ZS(e)||Array.isArray(e)&&e.every(JS))}const vs=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,lm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vs([0,.65,.55,1]),circOut:vs([.55,0,1,.45]),backIn:vs([.31,.01,.66,-.59]),backOut:vs([.33,1.53,.69,.99])};function h5(e){return ex(e)||lm.easeOut}function ex(e){if(e)return ZS(e)?vs(e):Array.isArray(e)?e.map(h5):lm[e]}function p5(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=ex(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const m5=zS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mu=10,g5=2e4;function y5(e){return e.type==="spring"||!JS(e.ease)}function v5(e,t){const r=new am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i this.onKeyframesResolved(s,a),r,n,o),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(y5(this.options)){const{onComplete:f,onUpdate:m,motionValue:y,element:v,...x}=this.options,p=v5(t,x);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const d=p5(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(zc(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return en(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return en(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=Jr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return at;const{animation:n}=r;n.timeline=t,n.onfinish=null}return at}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:o,type:i,ease:s,times:a}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...m}=this.options,y=new am({...m,keyframes:n,duration:o,type:i,ease:s,times:a,isGenerator:!0}),v=Jr(this.time);u.setWithVelocity(y.sample(v-Mu).value,y.sample(v).value,Mu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return m5()&&n&&gS.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function b5(e,t){let r;const n=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;r!==s&&e(s),r=s};return ce.update(n,!0),()=>on(n)}const S5=zS(()=>window.ScrollTimeline!==void 0);class x5{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n {if(S5()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),b5(o=>{n.time=n.duration*o},t)});return()=>{r.forEach((n,o)=>{n&&n(),this.animations[o].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 startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const um=(e,t,r,n={},o,i,s)=>a=>{const l=em(n,e)||{},u=l.delay||n.delay||0;let{elapsed:c=0}=n;c=c-Jr(u);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};eD(l)||(d={...d,...JN(e,d)}),d.duration&&(d.duration=Jr(d.duration)),d.repeatDelay&&(d.repeatDelay=Jr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const m=zc(d.keyframes,l);if(m!==void 0)return ce.update(()=>{d.onUpdate(m),d.onComplete()}),new x5([])}return!i&&ny.supports(d)?new ny(d):new am(d)};class cm{constructor(){this.subscriptions=[]}add(t){return Oc(this.subscriptions,t),()=>Nc(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i !isNaN(parseFloat(e));class tx{constructor(t,r={}){this.version="11.3.31",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{const i=tn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=w5(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new cm);const n=this.events[t].add(r);return t==="change"?()=>{n(),ce.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>oy)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,oy);return jS(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function na(e,t){return new tx(e,t)}function k5(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,na(r))}function E5(e,t){const r=Bc(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const s in i){const a=AN(i[s]);k5(e,s,a)}}function rx(e){return e.props[eS]}class C5 extends tx{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const r=yS(t);if(!r)return;const n=this.counts.get(r)||0;this.counts.set(r,n+1),n===0&&(this.output.push(r),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(r)-1;this.counts.set(r,i),i===0&&(Nc(this.output,r),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function T5(e){return!!(st(e)&&e.add)}function rh(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");if(!n&&!(!((r=e.props.style)===null||r===void 0)&&r.willChange)&&(n=new C5("auto"),e.addValue("willChange",n)),T5(n))return n.add(t)}function P5({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function nx(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;n&&(s=n);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=l[d];if(m===void 0||c&&P5(c,d))continue;const y={delay:r,...em(s||{},d)};let v=!1;if(window.MotionHandoffAnimation){const p=rx(e);if(p){const h=window.MotionHandoffAnimation(p,d,ce);h!==null&&(y.startTime=h,v=!0)}}f.start(um(d,f,m,e.shouldReduceMotion&&Fn.has(d)?{type:!1}:y,e,v,rh(e,d)));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{ce.update(()=>{a&&E5(e,a)})}),u}function nh(e,t,r={}){var n;const o=Bc(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const s=o?()=>Promise.all(nx(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return _5(e,t,c+u,d,f,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(r.delay)])}function _5(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(A5).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(nh(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function A5(e,t){return e.sortNodePosition(t)}function R5(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>nh(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=nh(e,t,r);else{const o=typeof t=="function"?Bc(e,t,r.custom):t;n=Promise.all(nx(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const I5=[...Fp].reverse(),$5=Fp.length;function L5(e){return t=>Promise.all(t.map(({animation:r,options:n})=>R5(e,r,n)))}function M5(e){let t=L5(e),r=iy(),n=!0;const o=l=>(u,c)=>{var d;const f=Bc(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:y,...v}=f;u={...u,...v,...y}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let m={},y=1/0;for(let x=0;x<$5;x++){const p=I5[x],h=r[p],g=u[p]!==void 0?u[p]:c[p],S=Js(g),C=p===l?h.isActive:null;C===!1&&(y=x);let P=g===c[p]&&g!==u[p]&&S;if(P&&n&&e.manuallyAnimateOnMount&&(P=!1),h.protectedKeys={...m},!h.isActive&&C===null||!g&&!h.prevProp||ea(g)||typeof g=="boolean")continue;let A=O5(h.prevProp,g)||p===l&&h.isActive&&!P&&S||x>y&&S,M=!1;const I=Array.isArray(g)?g:[g];let H=I.reduce(o(p),{});C===!1&&(H={});const{prevResolvedValues:ve={}}=h,he={...ve,...H},We=ue=>{A=!0,f.has(ue)&&(M=!0,f.delete(ue)),h.needsAnimating[ue]=!0;const q=e.getValue(ue);q&&(q.liveStyle=!1)};for(const ue in he){const q=H[ue],le=ve[ue];if(m.hasOwnProperty(ue))continue;let L=!1;qf(q)&&qf(le)?L=!ES(q,le):L=q!==le,L?q!=null?We(ue):f.add(ue):q!==void 0&&f.has(ue)?We(ue):h.protectedKeys[ue]=!0}h.prevProp=g,h.prevResolvedValues=H,h.isActive&&(m={...m,...H}),n&&e.blockInitialAnimation&&(A=!1),A&&(!P||M)&&d.push(...I.map(ue=>({animation:ue,options:{type:p}})))}if(f.size){const x={};f.forEach(p=>{const h=e.getBaseTarget(p),g=e.getValue(p);g&&(g.liveStyle=!0),x[p]=h??null}),d.push({animation:x})}let v=!!d.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function a(l,u){var c;if(r[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),r[l].isActive=u;const d=s(l);for(const f in r)r[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r,reset:()=>{r=iy(),n=!0}}}function O5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ES(t,e):!1}function Jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iy(){return{animate:Jn(!0),whileInView:Jn(),whileHover:Jn(),whileTap:Jn(),whileDrag:Jn(),whileFocus:Jn(),exit:Jn()}}class N5 extends jn{constructor(t){super(t),t.animationState||(t.animationState=M5(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let D5=0;class B5 extends jn{constructor(){super(...arguments),this.id=D5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const z5={animation:{Feature:N5},exit:{Feature:B5}},sy=(e,t)=>Math.abs(e-t);function F5(e,t){const r=sy(e.x,t.x),n=sy(e.y,t.y);return Math.sqrt(r**2+n**2)}class ox{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Xd(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=F5(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:y}=d,{timestamp:v}=Ke;this.history.push({...y,timestamp:v});const{onStart:x,onMove:p}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Gd(f,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Xd(d.type==="pointercancel"?this.lastMoveEventInfo:Gd(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),y&&y(d,x)},!bS(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const s=Dc(t),a=Gd(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ke;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,Xd(a,this.history)),this.removeListeners=Zr(Qr(this.contextWindow,"pointermove",this.handlePointerMove),Qr(this.contextWindow,"pointerup",this.handlePointerUp),Qr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),on(this.updatePoint)}}function Gd(e,t){return t?{point:t(e.point)}:e}function ay(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xd({point:e},t){return{point:e,delta:ay(e,ix(t)),offset:ay(e,j5(t)),velocity:V5(t,.1)}}function j5(e){return e[0]}function ix(e){return e[e.length-1]}function V5(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=ix(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Jr(t)));)r--;if(!n)return{x:0,y:0};const i=en(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const sx=1e-4,H5=1-sx,U5=1+sx,ax=.01,W5=0-ax,G5=0+ax;function zt(e){return e.max-e.min}function X5(e,t,r){return Math.abs(e-t)<=r}function ly(e,t,r,n=.5){e.origin=n,e.originPoint=_e(t.min,t.max,e.origin),e.scale=zt(r)/zt(t),e.translate=_e(r.min,r.max,e.origin)-e.originPoint,(e.scale>=H5&&e.scale<=U5||isNaN(e.scale))&&(e.scale=1),(e.translate>=W5&&e.translate<=G5||isNaN(e.translate))&&(e.translate=0)}function Ls(e,t,r,n){ly(e.x,t.x,r.x,n?n.originX:void 0),ly(e.y,t.y,r.y,n?n.originY:void 0)}function uy(e,t,r){e.min=r.min+t.min,e.max=e.min+zt(t)}function q5(e,t,r){uy(e.x,t.x,r.x),uy(e.y,t.y,r.y)}function cy(e,t,r){e.min=t.min-r.min,e.max=e.min+zt(t)}function Ms(e,t,r){cy(e.x,t.x,r.x),cy(e.y,t.y,r.y)}function Y5(e,{min:t,max:r},n){return t!==void 0&&e r&&(e=n?_e(r,e,n.max):Math.min(e,r)),e}function dy(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function K5(e,{top:t,left:r,bottom:n,right:o}){return{x:dy(e.x,r,o),y:dy(e.y,t,n)}}function fy(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min