From 6555f8942477b680e701c01639e0a89b64494291 Mon Sep 17 00:00:00 2001 From: Mohamadzadeh <7796733@gmail.com> Date: Sun, 4 Oct 2026 13:30:11 +0330 Subject: [PATCH] fix pagination bug --- dist/remote-ui.js | 94 ++++++++++--------- ...kWxSuL.js => AppHeaderPreview-DCi6BIdl.js} | 22 ++--- .../{index-LJMONNgk.js => index-CGeO2iR0.js} | 2 +- dist/remote/index.html | 2 +- src/remote/ui/Pagination/index.jsx | 16 +++- 5 files changed, 80 insertions(+), 56 deletions(-) rename dist/remote/demo-assets/{AppHeaderPreview-CXkWxSuL.js => AppHeaderPreview-DCi6BIdl.js} (85%) rename dist/remote/demo-assets/{index-LJMONNgk.js => index-CGeO2iR0.js} (99%) diff --git a/dist/remote-ui.js b/dist/remote-ui.js index 2165e79..5690d70 100644 --- a/dist/remote-ui.js +++ b/dist/remote-ui.js @@ -1,24 +1,24 @@ -import g, { useRef as d, useEffect as h } from "react"; -import { createRoot as k } from "react-dom/client"; -import { Text as v, Input as w, IconButton as y, HStack as E, Button as x, Badge as C, ChakraProvider as I } from "@chakra-ui/react"; -import { a as f, D as B } from "./chunks/constants-CRZ9QfxV.js"; -import { jsx as D } from "react/jsx-runtime"; -import { AppHeader as z } from "./remote-ui-app-header.js"; -import { AppSidebar as N } from "./remote-ui-app-sidebar.js"; +import k, { useRef as d, useEffect as h } from "react"; +import { createRoot as v } from "react-dom/client"; +import { Text as w, Input as y, IconButton as E, HStack as x, Button as C, Badge as I, ChakraProvider as T, useTheme as D } from "@chakra-ui/react"; +import { a as m, D as P } from "./chunks/constants-CRZ9QfxV.js"; +import { jsx as g } from "react/jsx-runtime"; +import { AppHeader as N } from "./remote-ui-app-header.js"; +import { AppSidebar as J } from "./remote-ui-app-sidebar.js"; function S(e = {}) { if (typeof window > "u") return; - const t = window[f] || {}; - window[f] = { + const t = window[m] || {}; + window[m] = { ...t, - React: e.React || t.React || g, - createRoot: e.createRoot || t.createRoot || k, - ChakraProvider: e.ChakraProvider || t.ChakraProvider || I, - Badge: e.Badge || t.Badge || C, - Button: e.Button || t.Button || x, - HStack: e.HStack || t.HStack || E, - IconButton: e.IconButton || t.IconButton || y, - Input: e.Input || t.Input || w, - Text: e.Text || t.Text || v, + React: e.React || t.React || k, + createRoot: e.createRoot || t.createRoot || v, + ChakraProvider: e.ChakraProvider || t.ChakraProvider || T, + Badge: e.Badge || t.Badge || I, + Button: e.Button || t.Button || C, + HStack: e.HStack || t.HStack || x, + IconButton: e.IconButton || t.IconButton || E, + Input: e.Input || t.Input || y, + Text: e.Text || t.Text || w, ...e.deps || {}, theme: Object.prototype.hasOwnProperty.call(e, "theme") ? e.theme : t.theme, chakraProviderProps: { @@ -28,15 +28,15 @@ function S(e = {}) { }; } const a = /* @__PURE__ */ new Map(); -function T(e = []) { +function b(e = []) { if (typeof window > "u") return !1; - const t = window[f]; + const t = window[m]; return e.every((r) => t == null ? void 0 : t[r]); } -function b(e = []) { - typeof window > "u" || T(e) || S(); +function H(e = []) { + typeof window > "u" || b(e) || S(); } -function H(e, t) { +function G(e, t) { const r = `${e}:${t}`; return a.has(r) || a.set( r, @@ -49,26 +49,26 @@ function H(e, t) { }) ), a.get(r); } -function P({ +function B({ componentName: e, tagName: t, defaultRemoteUrl: r, requiredDeps: u, - normalizeProps: m + normalizeProps: f }) { return function({ - theme: p, - chakraProviderProps: s, + theme: s, + chakraProviderProps: p, ...l }) { const c = d(null), n = d(null), i = d(null); return i.current = { - ...m ? m(l) : l, - ...p !== void 0 ? { theme: p } : {}, - ...s ? { chakraProviderProps: s } : {} + ...f ? f(l) : l, + ...s !== void 0 ? { theme: s } : {}, + ...p ? { chakraProviderProps: p } : {} }, h(() => { let R = !0; - return b(u), H(e, r).then(() => { + return H(u), G(e, r).then(() => { if (!R || !c.current) return; const o = document.createElement(t); o.componentProps = i.current, c.current.appendChild(o), n.current = o; @@ -82,7 +82,7 @@ function P({ }; }, [e, r, t]), h(() => { n.current && (n.current.componentProps = i.current); - }), /* @__PURE__ */ D( + }), /* @__PURE__ */ g( "span", { ref: c, @@ -93,26 +93,26 @@ function P({ ); }; } -function G(e) { +function O(e) { if (typeof e == "string" || typeof e == "number") return e; e != null && console.warn( "[uikit/remote/ui] GBadge only accepts text/number children across the remote boundary." ); } -const $ = P({ +const K = B({ componentName: "GBadge", tagName: "uikit-g-badge", - defaultRemoteUrl: B.GBadge, + defaultRemoteUrl: P.GBadge, requiredDeps: ["React", "createRoot", "ChakraProvider", "Badge"], normalizeProps: ({ children: e, ...t }) => ({ ...t, - children: G(e) + children: O(e) }) -}), j = P({ +}), _ = B({ componentName: "Pagination", tagName: "uikit-pagination", - defaultRemoteUrl: B.Pagination, + defaultRemoteUrl: P.Pagination, requiredDeps: [ "React", "createRoot", @@ -124,10 +124,20 @@ const $ = P({ "Text" ] }); +function L({ theme: e, ...t }) { + const r = D(); + return /* @__PURE__ */ g( + _, + { + ...t, + theme: e ?? r + } + ); +} export { - z as AppHeader, - N as AppSidebar, - $ as GBadge, - j as Pagination, + N as AppHeader, + J as AppSidebar, + K as GBadge, + L as Pagination, S as setupUikitRemoteDeps }; diff --git a/dist/remote/demo-assets/AppHeaderPreview-CXkWxSuL.js b/dist/remote/demo-assets/AppHeaderPreview-DCi6BIdl.js similarity index 85% rename from dist/remote/demo-assets/AppHeaderPreview-CXkWxSuL.js rename to dist/remote/demo-assets/AppHeaderPreview-DCi6BIdl.js index 2a266e7..ed1a0b2 100644 --- a/dist/remote/demo-assets/AppHeaderPreview-CXkWxSuL.js +++ b/dist/remote/demo-assets/AppHeaderPreview-DCi6BIdl.js @@ -1,4 +1,4 @@ -import{r as v,g as xu,c as Pr,R as yl,j as p,a as Su,b as wu,d as Ve,e as Qi,D as Ns,f as bl}from"./index-LJMONNgk.js";function zp(){return!!globalThis?.document}function Bp(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Ze=e=>e?"":void 0,mi=e=>e?!0:void 0;function Dp(e){return Array.isArray(e)}function Fe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Dp(e)}function Ip(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Vp(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function es(e){if(e==null)return e;const{unitless:t}=Vp(e);return t||typeof e=="number"?`${e}px`:e}const ku=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Hs=e=>Object.fromEntries(Object.entries(e).sort(ku));function vl(e){const t=Hs(e);return Object.assign(Object.values(t),t)}function Fp(e){const t=Object.keys(Hs(e));return new Set(t)}function xl(e){if(!e)return e;e=es(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Bn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${es(e)})`),t&&n.push("and",`(max-width: ${es(t)})`),n.join(" ")}function Lp(e){if(!e)return null;e.base=e.base??"0px";const t=vl(e),n=Object.entries(e).sort(ku).map(([i,s],a,l)=>{let[,c]=l[a+1]??[];return c=parseFloat(c)>0?xl(c):void 0,{_minW:xl(s),breakpoint:i,minW:s,maxW:c,maxWQuery:Bn(null,c),minWQuery:Bn(s),minMaxQuery:Bn(s,c)}}),r=Fp(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:Hs(e),asArray:vl(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Bn(i)).slice(1)],toArrayValue(i){if(!Fe(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;Ip(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const c=o[l];return c!=null&&a!=null&&(s[c]=a),s},{})}}}function Sl(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function Op(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}function Cu(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Wp(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=v.createContext(s);a.displayName=t;function l(){const c=v.useContext(a);if(!c&&n){const u=new Error(i??Wp(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const ve=(...e)=>e.filter(Boolean).join(" ");function Np(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},Tu=Hp(Np),Up=e=>e.default||e;function Gp(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function qp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Us(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Fe(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const Kp=e=>typeof e=="function";function rt(e,...t){return Kp(e)?e(...t):e}function Xp(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function wl(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Fe(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c)??c,h=[...a,d];if(r?.(s,h))return t(s,a);l[d]=i(u,h)}return l}return t(s,a)}return i(e)}var mo={exports:{}};mo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",y="[object GeneratorFunction]",g="[object Map]",S="[object Number]",w="[object Null]",C="[object Object]",T="[object Proxy]",P="[object RegExp]",R="[object Set]",_="[object String]",A="[object Undefined]",$="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",F="[object Float32Array]",ue="[object Float64Array]",Oe="[object Int8Array]",je="[object Int16Array]",We="[object Int32Array]",ze="[object Uint8Array]",qa="[object Uint8ClampedArray]",de="[object Uint16Array]",Te="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,St=/^\[object .+?Constructor\]$/,ni=/^(?:0|[1-9]\d*)$/,te={};te[F]=te[ue]=te[Oe]=te[je]=te[We]=te[ze]=te[qa]=te[de]=te[Te]=!0,te[a]=te[l]=te[D]=te[u]=te[j]=te[d]=te[h]=te[m]=te[g]=te[S]=te[C]=te[P]=te[R]=te[_]=te[$]=!1;var Ka=typeof Pr=="object"&&Pr&&Pr.Object===Object&&Pr,xh=typeof self=="object"&&self&&self.Object===Object&&self,Tn=Ka||xh||Function("return this")(),Xa=t&&!t.nodeType&&t,Pn=Xa&&!0&&e&&!e.nodeType&&e,Ya=Pn&&Pn.exports===Xa,ri=Ya&&Ka.process,Za=function(){try{var f=Pn&&Pn.require&&Pn.require("util").types;return f||ri&&ri.binding&&ri.binding("util")}catch{}}(),Ja=Za&&Za.isTypedArray;function Sh(f,x,k){switch(k.length){case 0:return f.call(x);case 1:return f.call(x,k[0]);case 2:return f.call(x,k[0],k[1]);case 3:return f.call(x,k[0],k[1],k[2])}return f.apply(x,k)}function wh(f,x){for(var k=-1,M=Array(f);++k-1}function Hh(f,x){var k=this.__data__,M=wr(k,f);return M<0?(++this.size,k.push([f,x])):k[M][1]=x,this}dt.prototype.clear=Lh,dt.prototype.delete=Oh,dt.prototype.get=Wh,dt.prototype.has=Nh,dt.prototype.set=Hh;function Yt(f){var x=-1,k=f==null?0:f.length;for(this.clear();++x1?k[V-1]:void 0,re=V>2?k[2]:void 0;for(X=f.length>3&&typeof X=="function"?(V--,X):void 0,re&&vp(k[0],k[1],re)&&(X=V<3?void 0:X,V=1),x=Object(x);++M-1&&f%1==0&&f0){if(++x>=o)return arguments[0]}else x=0;return f.apply(void 0,arguments)}}function Ap(f){if(f!=null){try{return vr.call(f)}catch{}try{return f+""}catch{}}return""}function Tr(f,x){return f===x||f!==f&&x!==x}var ci=al(function(){return arguments}())?al:function(f){return $n(f)&&wt.call(f,"callee")&&!Rh.call(f,"callee")},ui=Array.isArray;function di(f){return f!=null&&fl(f.length)&&!fi(f)}function $p(f){return $n(f)&&di(f)}var dl=Mh||jp;function fi(f){if(!Bt(f))return!1;var x=kr(f);return x==m||x==y||x==c||x==T}function fl(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=s}function Bt(f){var x=typeof f;return f!=null&&(x=="object"||x=="function")}function $n(f){return f!=null&&typeof f=="object"}function _p(f){if(!$n(f)||kr(f)!=C)return!1;var x=rl(f);if(x===null)return!0;var k=wt.call(x,"constructor")&&x.constructor;return typeof k=="function"&&k instanceof k&&vr.call(k)==$h}var hl=Ja?kh(Ja):ip;function Rp(f){return pp(f,pl(f))}function pl(f){return di(f)?tp(f):sp(f)}var Ep=mp(function(f,x,k,M){ll(f,x,k,M)});function Mp(f){return function(){return f}}function ml(f){return f}function jp(){return!1}e.exports=Ep})(mo,mo.exports);var Yp=mo.exports;const ot=xu(Yp);function Zp(e,t=[]){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useCallback((...r)=>n.current?.(...r),t)}const ts=globalThis?.document?v.useLayoutEffect:v.useEffect,kl=(e,t)=>{const n=v.useRef(!1),r=v.useRef(!1);v.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),v.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Jp(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 ns(...e){return t=>{e.forEach(n=>{Jp(n,t)})}}function Qp(...e){return v.useMemo(()=>ns(...e),e)}function em(e,t){const n=Zp(e);v.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const fe={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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Xe=e=>Pu(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ft=e=>Pu(t=>e(t,"~ &"),"[data-peer]",".peer"),Pu=(e,...t)=>t.map(e).join(", "),Mo={_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:Xe(fe.open),_groupClosed:Xe(fe.closed),_groupHover:Xe(fe.hover),_peerHover:ft(fe.hover),_groupFocus:Xe(fe.focus),_peerFocus:ft(fe.focus),_groupFocusVisible:Xe(fe.focusVisible),_peerFocusVisible:ft(fe.focusVisible),_groupActive:Xe(fe.active),_peerActive:ft(fe.active),_groupDisabled:Xe(fe.disabled),_peerDisabled:ft(fe.disabled),_groupInvalid:Xe(fe.invalid),_peerInvalid:ft(fe.invalid),_groupChecked:Xe(fe.checked),_peerChecked:ft(fe.checked),_groupFocusWithin:Xe(fe.focusWithin),_peerFocusWithin:ft(fe.focusWithin),_peerPlaceholderShown:ft(fe.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]"},Au=Object.keys(Mo),tm=e=>/!(important)?$/.test(e),Cl=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,nm=(e,t)=>n=>{const r=String(t),o=tm(r),i=Cl(r),s=e?`${e}.${i}`:i;let a=Fe(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Cl(a),o?`${a} !important`:a};function Gs(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=nm(t,i)(s);let l=n?.(a,s)??a;return r&&(l=r(l,s)),l}}const Ar=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Be(e,t){return n=>{const r={property:n,scale:e};return r.transform=Gs({scale:e,transform:t}),r}}const rm=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function om(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:rm(t),transform:n?Gs({scale:n,compose:r}):r}}const $u=["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 im(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...$u].join(" ")}function sm(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...$u].join(" ")}const am={"--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(" ")},lm={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 cm(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 um={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},rs={"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"},dm=new Set(Object.values(rs)),os=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),fm=e=>e.trim();function hm(e,t){if(e==null||os.has(e))return e;if(!(is(e)||os.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,...c]=s.split(",").map(fm).filter(Boolean);if(c?.length===0)return e;const u=l in rs?rs[l]:l;c.unshift(u);const d=c.map(h=>{if(dm.has(h))return h;const m=h.indexOf(" "),[y,g]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],S=is(g)?g:g&&g.split(" "),w=`colors.${y}`,C=w in t.__cssMap?t.__cssMap[w].varRef:y;return S?[C,...Array.isArray(S)?S:[S]].join(" "):C});return`${a}(${d.join(", ")})`}const is=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),pm=(e,t)=>hm(e,t??{});function mm(e){return/^var\(--.+\)$/.test(e)}const gm=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ye=e=>t=>`${e}(${t})`,I={filter(e){return e!=="auto"?e:am},backdropFilter(e){return e!=="auto"?e:lm},ring(e){return cm(I.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?im():e==="auto-gpu"?sm():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=gm(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(mm(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:pm,blur:Ye("blur"),opacity:Ye("opacity"),brightness:Ye("brightness"),contrast:Ye("contrast"),dropShadow:Ye("drop-shadow"),grayscale:Ye("grayscale"),hueRotate:e=>Ye("hue-rotate")(I.degree(e)),invert:Ye("invert"),saturate:Ye("saturate"),sepia:Ye("sepia"),bgImage(e){return e==null||is(e)||os.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:n}=um[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},b={borderWidths:Be("borderWidths"),borderStyles:Be("borderStyles"),colors:Be("colors"),borders:Be("borders"),gradients:Be("gradients",I.gradient),radii:Be("radii",I.px),space:Be("space",Ar(I.vh,I.px)),spaceT:Be("space",Ar(I.vh,I.px)),degreeT(e){return{property:e,transform:I.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Gs({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Be("sizes",Ar(I.vh,I.px)),sizesT:Be("sizes",Ar(I.vh,I.fraction)),shadows:Be("shadows"),logical:om,blur:Be("blur",I.blur)},Ur={background:b.colors("background"),backgroundColor:b.colors("backgroundColor"),backgroundImage:b.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:I.bgClip},bgSize:b.prop("backgroundSize"),bgPosition:b.prop("backgroundPosition"),bg:b.colors("background"),bgColor:b.colors("backgroundColor"),bgPos:b.prop("backgroundPosition"),bgRepeat:b.prop("backgroundRepeat"),bgAttachment:b.prop("backgroundAttachment"),bgGradient:b.gradients("backgroundImage"),bgClip:{transform:I.bgClip}};Object.assign(Ur,{bgImage:Ur.backgroundImage,bgImg:Ur.backgroundImage});const O={border:b.borders("border"),borderWidth:b.borderWidths("borderWidth"),borderStyle:b.borderStyles("borderStyle"),borderColor:b.colors("borderColor"),borderRadius:b.radii("borderRadius"),borderTop:b.borders("borderTop"),borderBlockStart:b.borders("borderBlockStart"),borderTopLeftRadius:b.radii("borderTopLeftRadius"),borderStartStartRadius:b.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:b.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:b.radii("borderTopRightRadius"),borderStartEndRadius:b.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:b.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:b.borders("borderRight"),borderInlineEnd:b.borders("borderInlineEnd"),borderBottom:b.borders("borderBottom"),borderBlockEnd:b.borders("borderBlockEnd"),borderBottomLeftRadius:b.radii("borderBottomLeftRadius"),borderBottomRightRadius:b.radii("borderBottomRightRadius"),borderLeft:b.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:b.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:b.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:b.borders(["borderLeft","borderRight"]),borderInline:b.borders("borderInline"),borderY:b.borders(["borderTop","borderBottom"]),borderBlock:b.borders("borderBlock"),borderTopWidth:b.borderWidths("borderTopWidth"),borderBlockStartWidth:b.borderWidths("borderBlockStartWidth"),borderTopColor:b.colors("borderTopColor"),borderBlockStartColor:b.colors("borderBlockStartColor"),borderTopStyle:b.borderStyles("borderTopStyle"),borderBlockStartStyle:b.borderStyles("borderBlockStartStyle"),borderBottomWidth:b.borderWidths("borderBottomWidth"),borderBlockEndWidth:b.borderWidths("borderBlockEndWidth"),borderBottomColor:b.colors("borderBottomColor"),borderBlockEndColor:b.colors("borderBlockEndColor"),borderBottomStyle:b.borderStyles("borderBottomStyle"),borderBlockEndStyle:b.borderStyles("borderBlockEndStyle"),borderLeftWidth:b.borderWidths("borderLeftWidth"),borderInlineStartWidth:b.borderWidths("borderInlineStartWidth"),borderLeftColor:b.colors("borderLeftColor"),borderInlineStartColor:b.colors("borderInlineStartColor"),borderLeftStyle:b.borderStyles("borderLeftStyle"),borderInlineStartStyle:b.borderStyles("borderInlineStartStyle"),borderRightWidth:b.borderWidths("borderRightWidth"),borderInlineEndWidth:b.borderWidths("borderInlineEndWidth"),borderRightColor:b.colors("borderRightColor"),borderInlineEndColor:b.colors("borderInlineEndColor"),borderRightStyle:b.borderStyles("borderRightStyle"),borderInlineEndStyle:b.borderStyles("borderInlineEndStyle"),borderTopRadius:b.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:b.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:b.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:b.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(O,{rounded:O.borderRadius,roundedTop:O.borderTopRadius,roundedTopLeft:O.borderTopLeftRadius,roundedTopRight:O.borderTopRightRadius,roundedTopStart:O.borderStartStartRadius,roundedTopEnd:O.borderStartEndRadius,roundedBottom:O.borderBottomRadius,roundedBottomLeft:O.borderBottomLeftRadius,roundedBottomRight:O.borderBottomRightRadius,roundedBottomStart:O.borderEndStartRadius,roundedBottomEnd:O.borderEndEndRadius,roundedLeft:O.borderLeftRadius,roundedRight:O.borderRightRadius,roundedStart:O.borderInlineStartRadius,roundedEnd:O.borderInlineEndRadius,borderStart:O.borderInlineStart,borderEnd:O.borderInlineEnd,borderTopStartRadius:O.borderStartStartRadius,borderTopEndRadius:O.borderStartEndRadius,borderBottomStartRadius:O.borderEndStartRadius,borderBottomEndRadius:O.borderEndEndRadius,borderStartRadius:O.borderInlineStartRadius,borderEndRadius:O.borderInlineEndRadius,borderStartWidth:O.borderInlineStartWidth,borderEndWidth:O.borderInlineEndWidth,borderStartColor:O.borderInlineStartColor,borderEndColor:O.borderInlineEndColor,borderStartStyle:O.borderInlineStartStyle,borderEndStyle:O.borderInlineEndStyle});const ym={color:b.colors("color"),textColor:b.colors("color"),fill:b.colors("fill"),stroke:b.colors("stroke"),accentColor:b.colors("accentColor"),textFillColor:b.colors("textFillColor")},go={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:I.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:b.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:b.space("gap"),rowGap:b.space("rowGap"),columnGap:b.space("columnGap")};Object.assign(go,{flexDir:go.flexDirection});const De={width:b.sizesT("width"),inlineSize:b.sizesT("inlineSize"),height:b.sizes("height"),blockSize:b.sizes("blockSize"),boxSize:b.sizes(["width","height"]),minWidth:b.sizes("minWidth"),minInlineSize:b.sizes("minInlineSize"),minHeight:b.sizes("minHeight"),minBlockSize:b.sizes("minBlockSize"),maxWidth:b.sizes("maxWidth"),maxInlineSize:b.sizes("maxInlineSize"),maxHeight:b.sizes("maxHeight"),maxBlockSize:b.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:b.propT("float",I.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(De,{w:De.width,h:De.height,minW:De.minWidth,maxW:De.maxWidth,minH:De.minHeight,maxH:De.maxHeight,overscroll:De.overscrollBehavior,overscrollX:De.overscrollBehaviorX,overscrollY:De.overscrollBehaviorY});const bm={filter:{transform:I.filter},blur:b.blur("--chakra-blur"),brightness:b.propT("--chakra-brightness",I.brightness),contrast:b.propT("--chakra-contrast",I.contrast),hueRotate:b.propT("--chakra-hue-rotate",I.hueRotate),invert:b.propT("--chakra-invert",I.invert),saturate:b.propT("--chakra-saturate",I.saturate),dropShadow:b.propT("--chakra-drop-shadow",I.dropShadow),backdropFilter:{transform:I.backdropFilter},backdropBlur:b.blur("--chakra-backdrop-blur"),backdropBrightness:b.propT("--chakra-backdrop-brightness",I.brightness),backdropContrast:b.propT("--chakra-backdrop-contrast",I.contrast),backdropHueRotate:b.propT("--chakra-backdrop-hue-rotate",I.hueRotate),backdropInvert:b.propT("--chakra-backdrop-invert",I.invert),backdropSaturate:b.propT("--chakra-backdrop-saturate",I.saturate)},vm={ring:{transform:I.ring},ringColor:b.colors("--chakra-ring-color"),ringOffset:b.prop("--chakra-ring-offset-width"),ringOffsetColor:b.colors("--chakra-ring-offset-color"),ringInset:b.prop("--chakra-ring-inset")},xm={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:I.outline},outlineOffset:!0,outlineColor:b.colors("outlineColor")},_u={gridGap:b.space("gridGap"),gridColumnGap:b.space("gridColumnGap"),gridRowGap:b.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 Sm(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},km=wm(Sm),Cm={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Tm={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},gi=(e,t,n)=>{const r={},o=km(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},Pm={srOnly:{transform(e){return e===!0?Cm:e==="focusable"?Tm:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>gi(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>gi(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>gi(t,e,n)}},Wn={position:!0,pos:b.prop("position"),zIndex:b.prop("zIndex","zIndices"),inset:b.spaceT("inset"),insetX:b.spaceT(["left","right"]),insetInline:b.spaceT("insetInline"),insetY:b.spaceT(["top","bottom"]),insetBlock:b.spaceT("insetBlock"),top:b.spaceT("top"),insetBlockStart:b.spaceT("insetBlockStart"),bottom:b.spaceT("bottom"),insetBlockEnd:b.spaceT("insetBlockEnd"),left:b.spaceT("left"),insetInlineStart:b.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:b.spaceT("right"),insetInlineEnd:b.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Wn,{insetStart:Wn.insetInlineStart,insetEnd:Wn.insetInlineEnd});const ss={boxShadow:b.shadows("boxShadow"),mixBlendMode:!0,blendMode:b.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:b.prop("backgroundBlendMode"),opacity:!0};Object.assign(ss,{shadow:ss.boxShadow});const ne={margin:b.spaceT("margin"),marginTop:b.spaceT("marginTop"),marginBlockStart:b.spaceT("marginBlockStart"),marginRight:b.spaceT("marginRight"),marginInlineEnd:b.spaceT("marginInlineEnd"),marginBottom:b.spaceT("marginBottom"),marginBlockEnd:b.spaceT("marginBlockEnd"),marginLeft:b.spaceT("marginLeft"),marginInlineStart:b.spaceT("marginInlineStart"),marginX:b.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:b.spaceT("marginInline"),marginY:b.spaceT(["marginTop","marginBottom"]),marginBlock:b.spaceT("marginBlock"),padding:b.space("padding"),paddingTop:b.space("paddingTop"),paddingBlockStart:b.space("paddingBlockStart"),paddingRight:b.space("paddingRight"),paddingBottom:b.space("paddingBottom"),paddingBlockEnd:b.space("paddingBlockEnd"),paddingLeft:b.space("paddingLeft"),paddingInlineStart:b.space("paddingInlineStart"),paddingInlineEnd:b.space("paddingInlineEnd"),paddingX:b.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:b.space("paddingInline"),paddingY:b.space(["paddingTop","paddingBottom"]),paddingBlock:b.space("paddingBlock")};Object.assign(ne,{m:ne.margin,mt:ne.marginTop,mr:ne.marginRight,me:ne.marginInlineEnd,marginEnd:ne.marginInlineEnd,mb:ne.marginBottom,ml:ne.marginLeft,ms:ne.marginInlineStart,marginStart:ne.marginInlineStart,mx:ne.marginX,my:ne.marginY,p:ne.padding,pt:ne.paddingTop,py:ne.paddingY,px:ne.paddingX,pb:ne.paddingBottom,pl:ne.paddingLeft,ps:ne.paddingInlineStart,paddingStart:ne.paddingInlineStart,pr:ne.paddingRight,pe:ne.paddingInlineEnd,paddingEnd:ne.paddingInlineEnd});const Am={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:b.spaceT("scrollMargin"),scrollMarginTop:b.spaceT("scrollMarginTop"),scrollMarginBottom:b.spaceT("scrollMarginBottom"),scrollMarginLeft:b.spaceT("scrollMarginLeft"),scrollMarginRight:b.spaceT("scrollMarginRight"),scrollMarginX:b.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:b.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:b.spaceT("scrollPadding"),scrollPaddingTop:b.spaceT("scrollPaddingTop"),scrollPaddingBottom:b.spaceT("scrollPaddingBottom"),scrollPaddingLeft:b.spaceT("scrollPaddingLeft"),scrollPaddingRight:b.spaceT("scrollPaddingRight"),scrollPaddingX:b.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:b.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},$m={fontFamily:b.prop("fontFamily","fonts"),fontSize:b.prop("fontSize","fontSizes",I.px),fontWeight:b.prop("fontWeight","fontWeights"),lineHeight:b.prop("lineHeight","lineHeights"),letterSpacing:b.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"}},_m={textDecorationColor:b.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:b.shadows("textShadow")},Rm={clipPath:!0,transform:b.propT("transform",I.transform),transformOrigin:!0,translateX:b.spaceT("--chakra-translate-x"),translateY:b.spaceT("--chakra-translate-y"),skewX:b.degreeT("--chakra-skew-x"),skewY:b.degreeT("--chakra-skew-y"),scaleX:b.prop("--chakra-scale-x"),scaleY:b.prop("--chakra-scale-y"),scale:b.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:b.degreeT("--chakra-rotate")},Em={listStyleType:!0,listStylePosition:!0,listStylePos:b.prop("listStylePosition"),listStyleImage:!0,listStyleImg:b.prop("listStyleImage")},Mm={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:b.prop("transitionDuration","transition.duration"),transitionProperty:b.prop("transitionProperty","transition.property"),transitionTimingFunction:b.prop("transitionTimingFunction","transition.easing")},qs=ot({},Ur,O,ym,go,De,bm,vm,xm,_u,Pm,Wn,ss,ne,Am,$m,_m,Rm,Em,Mm);Object.assign({},ne,De,go,_u,Wn);const jm=[...Object.keys(qs),...Au],zm={...qs,...Mo},Bm=e=>e in zm,Dm=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=rt(e[s],t);if(a==null)continue;if(a=Fe(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!Vm(t),Lm=(e,t)=>{if(t==null)return t;const n=s=>e.__cssMap?.[s]?.varRef,r=s=>n(s)??s,[o,i]=Im(t);return t=n(o)??r(i)??r(t),t};function Om(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{const a=rt(i,r),l=Dm(a)(r);let c={};for(let u in l){const d=l[u];let h=rt(d,r);u in n&&(u=n[u]),Fm(u,h)&&(h=Lm(r,h));let m=t[u];if(m===!0&&(m={property:u}),Fe(h)){c[u]=c[u]??{},c[u]=ot({},c[u],o(h,!0));continue}let y=m?.transform?.(h,r,a)??h;y=m?.processResult?o(y,!0):y;const g=rt(m?.property,r);if(!s&&m?.static){const S=rt(m.static,r);c=ot({},c,S)}if(g&&Array.isArray(g)){for(const S of g)c[S]=y;continue}if(g){g==="&"&&Fe(y)?c=ot({},c,y):c[g]=y;continue}if(Fe(y)){c=ot({},c,y);continue}c[u]=y}return c};return o}const Ru=e=>t=>Om({theme:t,pseudos:Mo,configs:qs})(e);function ee(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Wm(e,t){if(Array.isArray(e))return e;if(Fe(e))return t(e);if(e!=null)return[e]}function Nm(e,t){for(let n=t+1;n{ot(a,{[w]:u?S[w]:{[g]:S[w]}})});continue}if(!d){u?ot(a,S):a[g]=S;continue}a[g]=S}}return a}}function Um(e){return t=>{const{variant:n,size:r,theme:o}=t,i=Hm(o);return ot({},rt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function ct(e){return Gp(e,["styleConfig","size","variant","colorScheme"])}function Eu(e){return Fe(e)&&e.reference?e.reference:String(e)}const jo=(e,...t)=>t.map(Eu).join(` ${e} `).replace(/calc/g,""),Tl=(...e)=>`calc(${jo("+",...e)})`,Pl=(...e)=>`calc(${jo("-",...e)})`,as=(...e)=>`calc(${jo("*",...e)})`,Al=(...e)=>`calc(${jo("/",...e)})`,$l=e=>{const t=Eu(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:as(t,-1)},pt=Object.assign(e=>({add:(...t)=>pt(Tl(e,...t)),subtract:(...t)=>pt(Pl(e,...t)),multiply:(...t)=>pt(as(e,...t)),divide:(...t)=>pt(Al(e,...t)),negate:()=>pt($l(e)),toString:()=>e.toString()}),{add:Tl,subtract:Pl,multiply:as,divide:Al,negate:$l});function Gm(e,t="-"){return e.replace(/\s+/g,t)}function qm(e){const t=Gm(e.toString());return Xm(Km(t))}function Km(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Xm(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Ym(e,t=""){return[t,e].filter(Boolean).join("-")}function Zm(e,t){return`var(${e}${t?`, ${t}`:""})`}function Jm(e,t=""){return qm(`--${Ym(e,t)}`)}function B(e,t,n){const r=Jm(e,n);return{variable:r,reference:Zm(r,t)}}function Qm(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=B(`${e}-${o}`,i);continue}n[r]=B(`${e}-${r}`)}return n}const eg=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function tg(e){return qp(e,eg)}function ng(e){return e.semanticTokens}function rg(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function og(e){const t=tg(e),n=ng(e),r=i=>Au.includes(i)||i==="default",o={};return wl(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),wl(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function _l(e,t){return B(String(e).replace(/\./g,"-"),void 0,t)}function ig(e){const t=og(e),n=e.config?.cssVarPrefix;let r={};const o={};function i(s,a){const c=[String(s).split(".")[0],a].join(".");if(!t[c])return a;const{reference:d}=_l(c,n);return d}for(const[s,a]of Object.entries(t)){const{isSemantic:l,value:c}=a,{variable:u,reference:d}=_l(s,n);if(!l){if(s.startsWith("space")){const m=s.split("."),[y,...g]=m,S=`${y}.-${g.join(".")}`,w=pt.negate(c),C=pt.negate(d);o[S]={value:w,var:u,varRef:C}}r[u]=c,o[s]={value:c,var:u,varRef:d};continue}const h=Fe(c)?c:{default:c};r=ot(r,Object.entries(h).reduce((m,[y,g])=>{if(!g)return m;const S=i(s,`${g}`);if(y==="default")return m[u]=S,m;const w=Mo?.[y]??y;return m[w]={[u]:S},m},{})),o[s]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:o}}function sg(e){const t=rg(e),{cssMap:n,cssVars:r}=ig(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"},...r},__cssMap:n,__breakpoints:Lp(t.breakpoints)}),t}function U(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){r();for(const d of u)t[d]=l(d);return U(e,t)}function i(...u){for(const d of u)d in t||(t[d]=l(d));return U(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,h])=>[d,h.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,h])=>[d,h.className]))}function l(u){const m=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:m,selector:`.${m}`,toString:()=>u}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const ag=U("accordion").parts("root","container","button","panel","icon"),lg=U("alert").parts("title","description","container","icon","spinner"),cg=U("avatar").parts("label","badge","container","excessLabel","group"),ug=U("breadcrumb").parts("link","item","container","separator");U("button").parts();const dg=U("checkbox").parts("control","icon","container","label");U("progress").parts("track","filledTrack","label");const fg=U("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),hg=U("editable").parts("preview","input","textarea"),pg=U("form").parts("container","requiredIndicator","helperText"),mg=U("formError").parts("text","icon"),gg=U("input").parts("addon","field","element","group"),yg=U("list").parts("container","item","icon"),bg=U("menu").parts("button","list","item","groupTitle","icon","command","divider"),vg=U("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),xg=U("numberinput").parts("root","field","stepperGroup","stepper");U("pininput").parts("field");const Sg=U("popover").parts("content","header","body","footer","popper","arrow","closeButton"),wg=U("progress").parts("label","filledTrack","track"),kg=U("radio").parts("container","control","label"),Cg=U("select").parts("field","icon"),Tg=U("slider").parts("container","track","thumb","filledTrack","mark"),Pg=U("stat").parts("container","label","helpText","number","icon"),Ag=U("switch").parts("container","track","thumb","label"),$g=U("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),_g=U("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Rg=U("tag").parts("container","label","closeButton"),Eg=U("card").parts("container","header","body","footer");U("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Mg,defineMultiStyleConfig:jg}=ee(ag.keys),zg={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Bg={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Dg={pt:"2",px:"4",pb:"5"},Ig={fontSize:"1.25em"},Vg=Mg({container:zg,button:Bg,panel:Dg,icon:Ig}),Fg=jg({baseStyle:Vg});function Ft(e,t,n){return Math.min(Math.max(e,n),t)}class Lg extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Dn=Lg;function Ks(e){if(typeof e!="string")throw new Dn(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=Kg.test(e)?Ng(e):e;const n=Hg.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(er(a,2),16)),parseInt(er(s[3]||"f",2),16)/255]}const r=Ug.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=Gg.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=qg.exec(t);if(i){const[s,a,l,c]=Array.from(i).slice(1).map(parseFloat);if(Ft(0,100,a)!==a)throw new Dn(e);if(Ft(0,100,l)!==l)throw new Dn(e);return[...Xg(s,a,l),Number.isNaN(c)?1:c]}throw new Dn(e)}function Og(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const Rl=e=>parseInt(e.replace(/_/g,""),36),Wg="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 n=Rl(t.substring(0,3)),r=Rl(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function Ng(e){const t=e.toLowerCase().trim(),n=Wg[Og(t)];if(!n)throw new Dn(e);return`#${n}`}const er=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Hg=new RegExp(`^#${er("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Ug=new RegExp(`^#${er("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Gg=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${er(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),qg=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Kg=/^[a-z]+$/i,El=e=>Math.round(e*255),Xg=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(El);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,c=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(a=s,c=i):o>=5&&o<6&&(a=i,c=s);const u=r-i/2,d=a+u,h=l+u,m=c+u;return[d,h,m].map(El)};function Yg(e,t,n,r){return`rgba(${Ft(0,255,e).toFixed()}, ${Ft(0,255,t).toFixed()}, ${Ft(0,255,n).toFixed()}, ${parseFloat(Ft(0,1,r).toFixed(3))})`}function Zg(e,t){const[n,r,o,i]=Ks(e);return Yg(n,r,o,i-t)}function Jg(e){const[t,n,r,o]=Ks(e);let i=s=>{const a=Ft(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const Qg=e=>Object.keys(e).length===0;function ey(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=ey(e,`colors.${t}`,t);try{return Jg(r),r}catch{return"#000000"}},ty=e=>{const[t,n,r]=Ks(e);return(t*299+n*587+r*114)/1e3},ny=e=>t=>{const n=Se(t,e);return ty(n)<128?"dark":"light"},ry=e=>t=>ny(e)(t)==="dark",mn=(e,t)=>n=>{const r=Se(n,e);return Zg(r,1-t)};function Ml(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( +import{r as v,g as Su,c as Pr,R as bl,j as p,a as wu,b as ku,d as Ve,e as Qi,D as Ns,f as vl}from"./index-CGeO2iR0.js";function zp(){return!!globalThis?.document}function Bp(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Ze=e=>e?"":void 0,mi=e=>e?!0:void 0;function Dp(e){return Array.isArray(e)}function Fe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Dp(e)}function Ip(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Vp(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function es(e){if(e==null)return e;const{unitless:t}=Vp(e);return t||typeof e=="number"?`${e}px`:e}const Cu=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Hs=e=>Object.fromEntries(Object.entries(e).sort(Cu));function xl(e){const t=Hs(e);return Object.assign(Object.values(t),t)}function Fp(e){const t=Object.keys(Hs(e));return new Set(t)}function Sl(e){if(!e)return e;e=es(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Bn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${es(e)})`),t&&n.push("and",`(max-width: ${es(t)})`),n.join(" ")}function Lp(e){if(!e)return null;e.base=e.base??"0px";const t=xl(e),n=Object.entries(e).sort(Cu).map(([i,s],a,l)=>{let[,c]=l[a+1]??[];return c=parseFloat(c)>0?Sl(c):void 0,{_minW:Sl(s),breakpoint:i,minW:s,maxW:c,maxWQuery:Bn(null,c),minWQuery:Bn(s),minMaxQuery:Bn(s,c)}}),r=Fp(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:Hs(e),asArray:xl(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Bn(i)).slice(1)],toArrayValue(i){if(!Fe(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;Ip(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const c=o[l];return c!=null&&a!=null&&(s[c]=a),s},{})}}}function wl(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function Op(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}function Tu(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Wp(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=v.createContext(s);a.displayName=t;function l(){const c=v.useContext(a);if(!c&&n){const u=new Error(i??Wp(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const ve=(...e)=>e.filter(Boolean).join(" ");function Np(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},Pu=Hp(Np),Up=e=>e.default||e;function Gp(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function qp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Us(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Fe(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const Kp=e=>typeof e=="function";function rt(e,...t){return Kp(e)?e(...t):e}function Xp(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function kl(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Fe(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c)??c,h=[...a,d];if(r?.(s,h))return t(s,a);l[d]=i(u,h)}return l}return t(s,a)}return i(e)}var mo={exports:{}};mo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",y="[object GeneratorFunction]",g="[object Map]",S="[object Number]",w="[object Null]",C="[object Object]",T="[object Proxy]",P="[object RegExp]",R="[object Set]",_="[object String]",A="[object Undefined]",$="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",F="[object Float32Array]",ue="[object Float64Array]",Oe="[object Int8Array]",je="[object Int16Array]",We="[object Int32Array]",ze="[object Uint8Array]",Ka="[object Uint8ClampedArray]",de="[object Uint16Array]",Te="[object Uint32Array]",ut=/[\\^$.*+?()[\]{}|]/g,St=/^\[object .+?Constructor\]$/,ni=/^(?:0|[1-9]\d*)$/,te={};te[F]=te[ue]=te[Oe]=te[je]=te[We]=te[ze]=te[Ka]=te[de]=te[Te]=!0,te[a]=te[l]=te[D]=te[u]=te[j]=te[d]=te[h]=te[m]=te[g]=te[S]=te[C]=te[P]=te[R]=te[_]=te[$]=!1;var Xa=typeof Pr=="object"&&Pr&&Pr.Object===Object&&Pr,xh=typeof self=="object"&&self&&self.Object===Object&&self,Tn=Xa||xh||Function("return this")(),Ya=t&&!t.nodeType&&t,Pn=Ya&&!0&&e&&!e.nodeType&&e,Za=Pn&&Pn.exports===Ya,ri=Za&&Xa.process,Ja=function(){try{var f=Pn&&Pn.require&&Pn.require("util").types;return f||ri&&ri.binding&&ri.binding("util")}catch{}}(),Qa=Ja&&Ja.isTypedArray;function Sh(f,x,k){switch(k.length){case 0:return f.call(x);case 1:return f.call(x,k[0]);case 2:return f.call(x,k[0],k[1]);case 3:return f.call(x,k[0],k[1],k[2])}return f.apply(x,k)}function wh(f,x){for(var k=-1,M=Array(f);++k-1}function Hh(f,x){var k=this.__data__,M=wr(k,f);return M<0?(++this.size,k.push([f,x])):k[M][1]=x,this}dt.prototype.clear=Lh,dt.prototype.delete=Oh,dt.prototype.get=Wh,dt.prototype.has=Nh,dt.prototype.set=Hh;function Yt(f){var x=-1,k=f==null?0:f.length;for(this.clear();++x1?k[V-1]:void 0,re=V>2?k[2]:void 0;for(X=f.length>3&&typeof X=="function"?(V--,X):void 0,re&&vp(k[0],k[1],re)&&(X=V<3?void 0:X,V=1),x=Object(x);++M-1&&f%1==0&&f0){if(++x>=o)return arguments[0]}else x=0;return f.apply(void 0,arguments)}}function Ap(f){if(f!=null){try{return vr.call(f)}catch{}try{return f+""}catch{}}return""}function Tr(f,x){return f===x||f!==f&&x!==x}var ci=ll(function(){return arguments}())?ll:function(f){return $n(f)&&wt.call(f,"callee")&&!Rh.call(f,"callee")},ui=Array.isArray;function di(f){return f!=null&&hl(f.length)&&!fi(f)}function $p(f){return $n(f)&&di(f)}var fl=Mh||jp;function fi(f){if(!Bt(f))return!1;var x=kr(f);return x==m||x==y||x==c||x==T}function hl(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=s}function Bt(f){var x=typeof f;return f!=null&&(x=="object"||x=="function")}function $n(f){return f!=null&&typeof f=="object"}function _p(f){if(!$n(f)||kr(f)!=C)return!1;var x=ol(f);if(x===null)return!0;var k=wt.call(x,"constructor")&&x.constructor;return typeof k=="function"&&k instanceof k&&vr.call(k)==$h}var pl=Qa?kh(Qa):ip;function Rp(f){return pp(f,ml(f))}function ml(f){return di(f)?tp(f):sp(f)}var Ep=mp(function(f,x,k,M){cl(f,x,k,M)});function Mp(f){return function(){return f}}function gl(f){return f}function jp(){return!1}e.exports=Ep})(mo,mo.exports);var Yp=mo.exports;const ot=Su(Yp);function Zp(e,t=[]){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useCallback((...r)=>n.current?.(...r),t)}const ts=globalThis?.document?v.useLayoutEffect:v.useEffect,Cl=(e,t)=>{const n=v.useRef(!1),r=v.useRef(!1);v.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),v.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Jp(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 ns(...e){return t=>{e.forEach(n=>{Jp(n,t)})}}function Qp(...e){return v.useMemo(()=>ns(...e),e)}function em(e,t){const n=Zp(e);v.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const fe={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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Xe=e=>Au(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ft=e=>Au(t=>e(t,"~ &"),"[data-peer]",".peer"),Au=(e,...t)=>t.map(e).join(", "),Mo={_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:Xe(fe.open),_groupClosed:Xe(fe.closed),_groupHover:Xe(fe.hover),_peerHover:ft(fe.hover),_groupFocus:Xe(fe.focus),_peerFocus:ft(fe.focus),_groupFocusVisible:Xe(fe.focusVisible),_peerFocusVisible:ft(fe.focusVisible),_groupActive:Xe(fe.active),_peerActive:ft(fe.active),_groupDisabled:Xe(fe.disabled),_peerDisabled:ft(fe.disabled),_groupInvalid:Xe(fe.invalid),_peerInvalid:ft(fe.invalid),_groupChecked:Xe(fe.checked),_peerChecked:ft(fe.checked),_groupFocusWithin:Xe(fe.focusWithin),_peerFocusWithin:ft(fe.focusWithin),_peerPlaceholderShown:ft(fe.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]"},$u=Object.keys(Mo),tm=e=>/!(important)?$/.test(e),Tl=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,nm=(e,t)=>n=>{const r=String(t),o=tm(r),i=Tl(r),s=e?`${e}.${i}`:i;let a=Fe(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Tl(a),o?`${a} !important`:a};function Gs(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=nm(t,i)(s);let l=n?.(a,s)??a;return r&&(l=r(l,s)),l}}const Ar=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Be(e,t){return n=>{const r={property:n,scale:e};return r.transform=Gs({scale:e,transform:t}),r}}const rm=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function om(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:rm(t),transform:n?Gs({scale:n,compose:r}):r}}const _u=["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 im(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",..._u].join(" ")}function sm(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",..._u].join(" ")}const am={"--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(" ")},lm={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 cm(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 um={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},rs={"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"},dm=new Set(Object.values(rs)),os=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),fm=e=>e.trim();function hm(e,t){if(e==null||os.has(e))return e;if(!(is(e)||os.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,...c]=s.split(",").map(fm).filter(Boolean);if(c?.length===0)return e;const u=l in rs?rs[l]:l;c.unshift(u);const d=c.map(h=>{if(dm.has(h))return h;const m=h.indexOf(" "),[y,g]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],S=is(g)?g:g&&g.split(" "),w=`colors.${y}`,C=w in t.__cssMap?t.__cssMap[w].varRef:y;return S?[C,...Array.isArray(S)?S:[S]].join(" "):C});return`${a}(${d.join(", ")})`}const is=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),pm=(e,t)=>hm(e,t??{});function mm(e){return/^var\(--.+\)$/.test(e)}const gm=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ye=e=>t=>`${e}(${t})`,I={filter(e){return e!=="auto"?e:am},backdropFilter(e){return e!=="auto"?e:lm},ring(e){return cm(I.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?im():e==="auto-gpu"?sm():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=gm(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(mm(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:pm,blur:Ye("blur"),opacity:Ye("opacity"),brightness:Ye("brightness"),contrast:Ye("contrast"),dropShadow:Ye("drop-shadow"),grayscale:Ye("grayscale"),hueRotate:e=>Ye("hue-rotate")(I.degree(e)),invert:Ye("invert"),saturate:Ye("saturate"),sepia:Ye("sepia"),bgImage(e){return e==null||is(e)||os.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:n}=um[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},b={borderWidths:Be("borderWidths"),borderStyles:Be("borderStyles"),colors:Be("colors"),borders:Be("borders"),gradients:Be("gradients",I.gradient),radii:Be("radii",I.px),space:Be("space",Ar(I.vh,I.px)),spaceT:Be("space",Ar(I.vh,I.px)),degreeT(e){return{property:e,transform:I.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Gs({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Be("sizes",Ar(I.vh,I.px)),sizesT:Be("sizes",Ar(I.vh,I.fraction)),shadows:Be("shadows"),logical:om,blur:Be("blur",I.blur)},Ur={background:b.colors("background"),backgroundColor:b.colors("backgroundColor"),backgroundImage:b.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:I.bgClip},bgSize:b.prop("backgroundSize"),bgPosition:b.prop("backgroundPosition"),bg:b.colors("background"),bgColor:b.colors("backgroundColor"),bgPos:b.prop("backgroundPosition"),bgRepeat:b.prop("backgroundRepeat"),bgAttachment:b.prop("backgroundAttachment"),bgGradient:b.gradients("backgroundImage"),bgClip:{transform:I.bgClip}};Object.assign(Ur,{bgImage:Ur.backgroundImage,bgImg:Ur.backgroundImage});const O={border:b.borders("border"),borderWidth:b.borderWidths("borderWidth"),borderStyle:b.borderStyles("borderStyle"),borderColor:b.colors("borderColor"),borderRadius:b.radii("borderRadius"),borderTop:b.borders("borderTop"),borderBlockStart:b.borders("borderBlockStart"),borderTopLeftRadius:b.radii("borderTopLeftRadius"),borderStartStartRadius:b.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:b.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:b.radii("borderTopRightRadius"),borderStartEndRadius:b.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:b.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:b.borders("borderRight"),borderInlineEnd:b.borders("borderInlineEnd"),borderBottom:b.borders("borderBottom"),borderBlockEnd:b.borders("borderBlockEnd"),borderBottomLeftRadius:b.radii("borderBottomLeftRadius"),borderBottomRightRadius:b.radii("borderBottomRightRadius"),borderLeft:b.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:b.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:b.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:b.borders(["borderLeft","borderRight"]),borderInline:b.borders("borderInline"),borderY:b.borders(["borderTop","borderBottom"]),borderBlock:b.borders("borderBlock"),borderTopWidth:b.borderWidths("borderTopWidth"),borderBlockStartWidth:b.borderWidths("borderBlockStartWidth"),borderTopColor:b.colors("borderTopColor"),borderBlockStartColor:b.colors("borderBlockStartColor"),borderTopStyle:b.borderStyles("borderTopStyle"),borderBlockStartStyle:b.borderStyles("borderBlockStartStyle"),borderBottomWidth:b.borderWidths("borderBottomWidth"),borderBlockEndWidth:b.borderWidths("borderBlockEndWidth"),borderBottomColor:b.colors("borderBottomColor"),borderBlockEndColor:b.colors("borderBlockEndColor"),borderBottomStyle:b.borderStyles("borderBottomStyle"),borderBlockEndStyle:b.borderStyles("borderBlockEndStyle"),borderLeftWidth:b.borderWidths("borderLeftWidth"),borderInlineStartWidth:b.borderWidths("borderInlineStartWidth"),borderLeftColor:b.colors("borderLeftColor"),borderInlineStartColor:b.colors("borderInlineStartColor"),borderLeftStyle:b.borderStyles("borderLeftStyle"),borderInlineStartStyle:b.borderStyles("borderInlineStartStyle"),borderRightWidth:b.borderWidths("borderRightWidth"),borderInlineEndWidth:b.borderWidths("borderInlineEndWidth"),borderRightColor:b.colors("borderRightColor"),borderInlineEndColor:b.colors("borderInlineEndColor"),borderRightStyle:b.borderStyles("borderRightStyle"),borderInlineEndStyle:b.borderStyles("borderInlineEndStyle"),borderTopRadius:b.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:b.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:b.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:b.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(O,{rounded:O.borderRadius,roundedTop:O.borderTopRadius,roundedTopLeft:O.borderTopLeftRadius,roundedTopRight:O.borderTopRightRadius,roundedTopStart:O.borderStartStartRadius,roundedTopEnd:O.borderStartEndRadius,roundedBottom:O.borderBottomRadius,roundedBottomLeft:O.borderBottomLeftRadius,roundedBottomRight:O.borderBottomRightRadius,roundedBottomStart:O.borderEndStartRadius,roundedBottomEnd:O.borderEndEndRadius,roundedLeft:O.borderLeftRadius,roundedRight:O.borderRightRadius,roundedStart:O.borderInlineStartRadius,roundedEnd:O.borderInlineEndRadius,borderStart:O.borderInlineStart,borderEnd:O.borderInlineEnd,borderTopStartRadius:O.borderStartStartRadius,borderTopEndRadius:O.borderStartEndRadius,borderBottomStartRadius:O.borderEndStartRadius,borderBottomEndRadius:O.borderEndEndRadius,borderStartRadius:O.borderInlineStartRadius,borderEndRadius:O.borderInlineEndRadius,borderStartWidth:O.borderInlineStartWidth,borderEndWidth:O.borderInlineEndWidth,borderStartColor:O.borderInlineStartColor,borderEndColor:O.borderInlineEndColor,borderStartStyle:O.borderInlineStartStyle,borderEndStyle:O.borderInlineEndStyle});const ym={color:b.colors("color"),textColor:b.colors("color"),fill:b.colors("fill"),stroke:b.colors("stroke"),accentColor:b.colors("accentColor"),textFillColor:b.colors("textFillColor")},go={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:I.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:b.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:b.space("gap"),rowGap:b.space("rowGap"),columnGap:b.space("columnGap")};Object.assign(go,{flexDir:go.flexDirection});const De={width:b.sizesT("width"),inlineSize:b.sizesT("inlineSize"),height:b.sizes("height"),blockSize:b.sizes("blockSize"),boxSize:b.sizes(["width","height"]),minWidth:b.sizes("minWidth"),minInlineSize:b.sizes("minInlineSize"),minHeight:b.sizes("minHeight"),minBlockSize:b.sizes("minBlockSize"),maxWidth:b.sizes("maxWidth"),maxInlineSize:b.sizes("maxInlineSize"),maxHeight:b.sizes("maxHeight"),maxBlockSize:b.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:b.propT("float",I.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(De,{w:De.width,h:De.height,minW:De.minWidth,maxW:De.maxWidth,minH:De.minHeight,maxH:De.maxHeight,overscroll:De.overscrollBehavior,overscrollX:De.overscrollBehaviorX,overscrollY:De.overscrollBehaviorY});const bm={filter:{transform:I.filter},blur:b.blur("--chakra-blur"),brightness:b.propT("--chakra-brightness",I.brightness),contrast:b.propT("--chakra-contrast",I.contrast),hueRotate:b.propT("--chakra-hue-rotate",I.hueRotate),invert:b.propT("--chakra-invert",I.invert),saturate:b.propT("--chakra-saturate",I.saturate),dropShadow:b.propT("--chakra-drop-shadow",I.dropShadow),backdropFilter:{transform:I.backdropFilter},backdropBlur:b.blur("--chakra-backdrop-blur"),backdropBrightness:b.propT("--chakra-backdrop-brightness",I.brightness),backdropContrast:b.propT("--chakra-backdrop-contrast",I.contrast),backdropHueRotate:b.propT("--chakra-backdrop-hue-rotate",I.hueRotate),backdropInvert:b.propT("--chakra-backdrop-invert",I.invert),backdropSaturate:b.propT("--chakra-backdrop-saturate",I.saturate)},vm={ring:{transform:I.ring},ringColor:b.colors("--chakra-ring-color"),ringOffset:b.prop("--chakra-ring-offset-width"),ringOffsetColor:b.colors("--chakra-ring-offset-color"),ringInset:b.prop("--chakra-ring-inset")},xm={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:I.outline},outlineOffset:!0,outlineColor:b.colors("outlineColor")},Ru={gridGap:b.space("gridGap"),gridColumnGap:b.space("gridColumnGap"),gridRowGap:b.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 Sm(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},km=wm(Sm),Cm={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Tm={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},gi=(e,t,n)=>{const r={},o=km(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},Pm={srOnly:{transform(e){return e===!0?Cm:e==="focusable"?Tm:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>gi(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>gi(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>gi(t,e,n)}},Wn={position:!0,pos:b.prop("position"),zIndex:b.prop("zIndex","zIndices"),inset:b.spaceT("inset"),insetX:b.spaceT(["left","right"]),insetInline:b.spaceT("insetInline"),insetY:b.spaceT(["top","bottom"]),insetBlock:b.spaceT("insetBlock"),top:b.spaceT("top"),insetBlockStart:b.spaceT("insetBlockStart"),bottom:b.spaceT("bottom"),insetBlockEnd:b.spaceT("insetBlockEnd"),left:b.spaceT("left"),insetInlineStart:b.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:b.spaceT("right"),insetInlineEnd:b.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Wn,{insetStart:Wn.insetInlineStart,insetEnd:Wn.insetInlineEnd});const ss={boxShadow:b.shadows("boxShadow"),mixBlendMode:!0,blendMode:b.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:b.prop("backgroundBlendMode"),opacity:!0};Object.assign(ss,{shadow:ss.boxShadow});const ne={margin:b.spaceT("margin"),marginTop:b.spaceT("marginTop"),marginBlockStart:b.spaceT("marginBlockStart"),marginRight:b.spaceT("marginRight"),marginInlineEnd:b.spaceT("marginInlineEnd"),marginBottom:b.spaceT("marginBottom"),marginBlockEnd:b.spaceT("marginBlockEnd"),marginLeft:b.spaceT("marginLeft"),marginInlineStart:b.spaceT("marginInlineStart"),marginX:b.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:b.spaceT("marginInline"),marginY:b.spaceT(["marginTop","marginBottom"]),marginBlock:b.spaceT("marginBlock"),padding:b.space("padding"),paddingTop:b.space("paddingTop"),paddingBlockStart:b.space("paddingBlockStart"),paddingRight:b.space("paddingRight"),paddingBottom:b.space("paddingBottom"),paddingBlockEnd:b.space("paddingBlockEnd"),paddingLeft:b.space("paddingLeft"),paddingInlineStart:b.space("paddingInlineStart"),paddingInlineEnd:b.space("paddingInlineEnd"),paddingX:b.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:b.space("paddingInline"),paddingY:b.space(["paddingTop","paddingBottom"]),paddingBlock:b.space("paddingBlock")};Object.assign(ne,{m:ne.margin,mt:ne.marginTop,mr:ne.marginRight,me:ne.marginInlineEnd,marginEnd:ne.marginInlineEnd,mb:ne.marginBottom,ml:ne.marginLeft,ms:ne.marginInlineStart,marginStart:ne.marginInlineStart,mx:ne.marginX,my:ne.marginY,p:ne.padding,pt:ne.paddingTop,py:ne.paddingY,px:ne.paddingX,pb:ne.paddingBottom,pl:ne.paddingLeft,ps:ne.paddingInlineStart,paddingStart:ne.paddingInlineStart,pr:ne.paddingRight,pe:ne.paddingInlineEnd,paddingEnd:ne.paddingInlineEnd});const Am={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:b.spaceT("scrollMargin"),scrollMarginTop:b.spaceT("scrollMarginTop"),scrollMarginBottom:b.spaceT("scrollMarginBottom"),scrollMarginLeft:b.spaceT("scrollMarginLeft"),scrollMarginRight:b.spaceT("scrollMarginRight"),scrollMarginX:b.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:b.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:b.spaceT("scrollPadding"),scrollPaddingTop:b.spaceT("scrollPaddingTop"),scrollPaddingBottom:b.spaceT("scrollPaddingBottom"),scrollPaddingLeft:b.spaceT("scrollPaddingLeft"),scrollPaddingRight:b.spaceT("scrollPaddingRight"),scrollPaddingX:b.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:b.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},$m={fontFamily:b.prop("fontFamily","fonts"),fontSize:b.prop("fontSize","fontSizes",I.px),fontWeight:b.prop("fontWeight","fontWeights"),lineHeight:b.prop("lineHeight","lineHeights"),letterSpacing:b.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"}},_m={textDecorationColor:b.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:b.shadows("textShadow")},Rm={clipPath:!0,transform:b.propT("transform",I.transform),transformOrigin:!0,translateX:b.spaceT("--chakra-translate-x"),translateY:b.spaceT("--chakra-translate-y"),skewX:b.degreeT("--chakra-skew-x"),skewY:b.degreeT("--chakra-skew-y"),scaleX:b.prop("--chakra-scale-x"),scaleY:b.prop("--chakra-scale-y"),scale:b.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:b.degreeT("--chakra-rotate")},Em={listStyleType:!0,listStylePosition:!0,listStylePos:b.prop("listStylePosition"),listStyleImage:!0,listStyleImg:b.prop("listStyleImage")},Mm={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:b.prop("transitionDuration","transition.duration"),transitionProperty:b.prop("transitionProperty","transition.property"),transitionTimingFunction:b.prop("transitionTimingFunction","transition.easing")},qs=ot({},Ur,O,ym,go,De,bm,vm,xm,Ru,Pm,Wn,ss,ne,Am,$m,_m,Rm,Em,Mm);Object.assign({},ne,De,go,Ru,Wn);const jm=[...Object.keys(qs),...$u],zm={...qs,...Mo},Bm=e=>e in zm,Dm=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=rt(e[s],t);if(a==null)continue;if(a=Fe(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!Vm(t),Lm=(e,t)=>{if(t==null)return t;const n=s=>e.__cssMap?.[s]?.varRef,r=s=>n(s)??s,[o,i]=Im(t);return t=n(o)??r(i)??r(t),t};function Om(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{const a=rt(i,r),l=Dm(a)(r);let c={};for(let u in l){const d=l[u];let h=rt(d,r);u in n&&(u=n[u]),Fm(u,h)&&(h=Lm(r,h));let m=t[u];if(m===!0&&(m={property:u}),Fe(h)){c[u]=c[u]??{},c[u]=ot({},c[u],o(h,!0));continue}let y=m?.transform?.(h,r,a)??h;y=m?.processResult?o(y,!0):y;const g=rt(m?.property,r);if(!s&&m?.static){const S=rt(m.static,r);c=ot({},c,S)}if(g&&Array.isArray(g)){for(const S of g)c[S]=y;continue}if(g){g==="&"&&Fe(y)?c=ot({},c,y):c[g]=y;continue}if(Fe(y)){c=ot({},c,y);continue}c[u]=y}return c};return o}const Eu=e=>t=>Om({theme:t,pseudos:Mo,configs:qs})(e);function ee(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Wm(e,t){if(Array.isArray(e))return e;if(Fe(e))return t(e);if(e!=null)return[e]}function Nm(e,t){for(let n=t+1;n{ot(a,{[w]:u?S[w]:{[g]:S[w]}})});continue}if(!d){u?ot(a,S):a[g]=S;continue}a[g]=S}}return a}}function Um(e){return t=>{const{variant:n,size:r,theme:o}=t,i=Hm(o);return ot({},rt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function ct(e){return Gp(e,["styleConfig","size","variant","colorScheme"])}function Mu(e){return Fe(e)&&e.reference?e.reference:String(e)}const jo=(e,...t)=>t.map(Mu).join(` ${e} `).replace(/calc/g,""),Pl=(...e)=>`calc(${jo("+",...e)})`,Al=(...e)=>`calc(${jo("-",...e)})`,as=(...e)=>`calc(${jo("*",...e)})`,$l=(...e)=>`calc(${jo("/",...e)})`,_l=e=>{const t=Mu(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:as(t,-1)},pt=Object.assign(e=>({add:(...t)=>pt(Pl(e,...t)),subtract:(...t)=>pt(Al(e,...t)),multiply:(...t)=>pt(as(e,...t)),divide:(...t)=>pt($l(e,...t)),negate:()=>pt(_l(e)),toString:()=>e.toString()}),{add:Pl,subtract:Al,multiply:as,divide:$l,negate:_l});function Gm(e,t="-"){return e.replace(/\s+/g,t)}function qm(e){const t=Gm(e.toString());return Xm(Km(t))}function Km(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Xm(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Ym(e,t=""){return[t,e].filter(Boolean).join("-")}function Zm(e,t){return`var(${e}${t?`, ${t}`:""})`}function Jm(e,t=""){return qm(`--${Ym(e,t)}`)}function B(e,t,n){const r=Jm(e,n);return{variable:r,reference:Zm(r,t)}}function Qm(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=B(`${e}-${o}`,i);continue}n[r]=B(`${e}-${r}`)}return n}const eg=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function tg(e){return qp(e,eg)}function ng(e){return e.semanticTokens}function rg(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function og(e){const t=tg(e),n=ng(e),r=i=>$u.includes(i)||i==="default",o={};return kl(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),kl(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function Rl(e,t){return B(String(e).replace(/\./g,"-"),void 0,t)}function ig(e){const t=og(e),n=e.config?.cssVarPrefix;let r={};const o={};function i(s,a){const c=[String(s).split(".")[0],a].join(".");if(!t[c])return a;const{reference:d}=Rl(c,n);return d}for(const[s,a]of Object.entries(t)){const{isSemantic:l,value:c}=a,{variable:u,reference:d}=Rl(s,n);if(!l){if(s.startsWith("space")){const m=s.split("."),[y,...g]=m,S=`${y}.-${g.join(".")}`,w=pt.negate(c),C=pt.negate(d);o[S]={value:w,var:u,varRef:C}}r[u]=c,o[s]={value:c,var:u,varRef:d};continue}const h=Fe(c)?c:{default:c};r=ot(r,Object.entries(h).reduce((m,[y,g])=>{if(!g)return m;const S=i(s,`${g}`);if(y==="default")return m[u]=S,m;const w=Mo?.[y]??y;return m[w]={[u]:S},m},{})),o[s]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:o}}function sg(e){const t=rg(e),{cssMap:n,cssVars:r}=ig(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"},...r},__cssMap:n,__breakpoints:Lp(t.breakpoints)}),t}function U(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){r();for(const d of u)t[d]=l(d);return U(e,t)}function i(...u){for(const d of u)d in t||(t[d]=l(d));return U(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,h])=>[d,h.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,h])=>[d,h.className]))}function l(u){const m=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:m,selector:`.${m}`,toString:()=>u}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const ag=U("accordion").parts("root","container","button","panel","icon"),lg=U("alert").parts("title","description","container","icon","spinner"),cg=U("avatar").parts("label","badge","container","excessLabel","group"),ug=U("breadcrumb").parts("link","item","container","separator");U("button").parts();const dg=U("checkbox").parts("control","icon","container","label");U("progress").parts("track","filledTrack","label");const fg=U("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),hg=U("editable").parts("preview","input","textarea"),pg=U("form").parts("container","requiredIndicator","helperText"),mg=U("formError").parts("text","icon"),gg=U("input").parts("addon","field","element","group"),yg=U("list").parts("container","item","icon"),bg=U("menu").parts("button","list","item","groupTitle","icon","command","divider"),vg=U("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),xg=U("numberinput").parts("root","field","stepperGroup","stepper");U("pininput").parts("field");const Sg=U("popover").parts("content","header","body","footer","popper","arrow","closeButton"),wg=U("progress").parts("label","filledTrack","track"),kg=U("radio").parts("container","control","label"),Cg=U("select").parts("field","icon"),Tg=U("slider").parts("container","track","thumb","filledTrack","mark"),Pg=U("stat").parts("container","label","helpText","number","icon"),Ag=U("switch").parts("container","track","thumb","label"),$g=U("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),_g=U("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Rg=U("tag").parts("container","label","closeButton"),Eg=U("card").parts("container","header","body","footer");U("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Mg,defineMultiStyleConfig:jg}=ee(ag.keys),zg={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Bg={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Dg={pt:"2",px:"4",pb:"5"},Ig={fontSize:"1.25em"},Vg=Mg({container:zg,button:Bg,panel:Dg,icon:Ig}),Fg=jg({baseStyle:Vg});function Ft(e,t,n){return Math.min(Math.max(e,n),t)}class Lg extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Dn=Lg;function Ks(e){if(typeof e!="string")throw new Dn(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=Kg.test(e)?Ng(e):e;const n=Hg.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(er(a,2),16)),parseInt(er(s[3]||"f",2),16)/255]}const r=Ug.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=Gg.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=qg.exec(t);if(i){const[s,a,l,c]=Array.from(i).slice(1).map(parseFloat);if(Ft(0,100,a)!==a)throw new Dn(e);if(Ft(0,100,l)!==l)throw new Dn(e);return[...Xg(s,a,l),Number.isNaN(c)?1:c]}throw new Dn(e)}function Og(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const El=e=>parseInt(e.replace(/_/g,""),36),Wg="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 n=El(t.substring(0,3)),r=El(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function Ng(e){const t=e.toLowerCase().trim(),n=Wg[Og(t)];if(!n)throw new Dn(e);return`#${n}`}const er=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Hg=new RegExp(`^#${er("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Ug=new RegExp(`^#${er("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Gg=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${er(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),qg=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Kg=/^[a-z]+$/i,Ml=e=>Math.round(e*255),Xg=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(Ml);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,c=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(a=s,c=i):o>=5&&o<6&&(a=i,c=s);const u=r-i/2,d=a+u,h=l+u,m=c+u;return[d,h,m].map(Ml)};function Yg(e,t,n,r){return`rgba(${Ft(0,255,e).toFixed()}, ${Ft(0,255,t).toFixed()}, ${Ft(0,255,n).toFixed()}, ${parseFloat(Ft(0,1,r).toFixed(3))})`}function Zg(e,t){const[n,r,o,i]=Ks(e);return Yg(n,r,o,i-t)}function Jg(e){const[t,n,r,o]=Ks(e);let i=s=>{const a=Ft(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const Qg=e=>Object.keys(e).length===0;function ey(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=ey(e,`colors.${t}`,t);try{return Jg(r),r}catch{return"#000000"}},ty=e=>{const[t,n,r]=Ks(e);return(t*299+n*587+r*114)/1e3},ny=e=>t=>{const n=Se(t,e);return ty(n)<128?"dark":"light"},ry=e=>t=>ny(e)(t)==="dark",mn=(e,t)=>n=>{const r=Se(n,e);return Zg(r,1-t)};function jl(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -7,19 +7,19 @@ import{r as v,g as xu,c as Pr,R as yl,j as p,a as Su,b as wu,d as Ve,e as Qi,D a ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}const oy=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function iy(e){const t=oy();return!e||Qg(e)?t:e.string&&e.colors?ay(e.string,e.colors):e.string&&!e.colors?sy(e.string):e.colors&&!e.string?ly(e.colors):t}function sy(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function ay(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Xs(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Mu(e){return Fe(e)&&e.reference?e.reference:String(e)}const zo=(e,...t)=>t.map(Mu).join(` ${e} `).replace(/calc/g,""),jl=(...e)=>`calc(${zo("+",...e)})`,zl=(...e)=>`calc(${zo("-",...e)})`,ls=(...e)=>`calc(${zo("*",...e)})`,Bl=(...e)=>`calc(${zo("/",...e)})`,Dl=e=>{const t=Mu(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ls(t,-1)},mt=Object.assign(e=>({add:(...t)=>mt(jl(e,...t)),subtract:(...t)=>mt(zl(e,...t)),multiply:(...t)=>mt(ls(e,...t)),divide:(...t)=>mt(Bl(e,...t)),negate:()=>mt(Dl(e)),toString:()=>e.toString()}),{add:jl,subtract:zl,multiply:ls,divide:Bl,negate:Dl});function cy(e){return!Number.isInteger(parseFloat(e.toString()))}function uy(e,t="-"){return e.replace(/\s+/g,t)}function ju(e){const t=uy(e.toString());return t.includes("\\.")?e:cy(e)?t.replace(".","\\."):e}function dy(e,t=""){return[t,ju(e)].filter(Boolean).join("-")}function fy(e,t){return`var(${ju(e)}${t?`, ${t}`:""})`}function hy(e,t=""){return`--${dy(e,t)}`}function pe(e,t){const n=hy(e,t?.prefix);return{variable:n,reference:fy(n,py(t?.fallback))}}function py(e){return e?.reference}const{definePartsStyle:ur,defineMultiStyleConfig:my}=ee(lg.keys),_e=B("alert-fg"),vt=B("alert-bg"),gy=ur({container:{bg:vt.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:_e.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:_e.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ys(e){const{theme:t,colorScheme:n}=e,r=mn(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const yy=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark}}}}),by=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:_e.reference}}}),vy=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:_e.reference}}}),xy=ur(e=>{const{colorScheme:t}=e;return{container:{[_e.variable]:"colors.white",[vt.variable]:`colors.${t}.600`,_dark:{[_e.variable]:"colors.gray.900",[vt.variable]:`colors.${t}.200`},color:_e.reference}}}),Sy={subtle:yy,"left-accent":by,"top-accent":vy,solid:xy},wy=my({baseStyle:gy,variants:Sy,defaultProps:{variant:"subtle",colorScheme:"blue"}}),zu={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"},ky={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"},Cy={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Bu={...zu,...ky,container:Cy},Ty=e=>typeof e=="function";function Ce(e,...t){return Ty(e)?e(...t):e}const{definePartsStyle:Du,defineMultiStyleConfig:Py}=ee(cg.keys),un=B("avatar-border-color"),Nn=B("avatar-bg"),tr=B("avatar-font-size"),gn=B("avatar-size"),Ay={borderRadius:"full",border:"0.2em solid",borderColor:un.reference,[un.variable]:"white",_dark:{[un.variable]:"colors.gray.800"}},$y={bg:Nn.reference,fontSize:tr.reference,width:gn.reference,height:gn.reference,lineHeight:"1",[Nn.variable]:"colors.gray.200",_dark:{[Nn.variable]:"colors.whiteAlpha.400"}},_y=e=>{const{name:t,theme:n}=e,r=t?iy({string:t}):"colors.gray.400",o=ry(r)(n);let i="white";return o||(i="gray.800"),{bg:Nn.reference,fontSize:tr.reference,color:i,borderColor:un.reference,verticalAlign:"top",width:gn.reference,height:gn.reference,"&:not([data-loaded])":{[Nn.variable]:r},[un.variable]:"colors.white",_dark:{[un.variable]:"colors.gray.800"}}},Ry={fontSize:tr.reference,lineHeight:"1"},Ey=Du(e=>({badge:Ce(Ay,e),excessLabel:Ce($y,e),container:Ce(_y,e),label:Ry}));function kt(e){const t=e!=="100%"?Bu[e]:void 0;return Du({container:{[gn.variable]:t??e,[tr.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[gn.variable]:t??e,[tr.variable]:`calc(${t??e} / 2.5)`}})}const My={"2xs":kt(4),xs:kt(6),sm:kt(8),md:kt(12),lg:kt(16),xl:kt(24),"2xl":kt(32),full:kt("100%")},jy=Py({baseStyle:Ey,sizes:My,defaultProps:{size:"md"}}),se=Qm("badge",["bg","color","shadow"]),zy={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:se.bg.reference,color:se.color.reference,boxShadow:se.shadow.reference},By=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.500`,.6)(n);return{[se.bg.variable]:`colors.${t}.500`,[se.color.variable]:"colors.white",_dark:{[se.bg.variable]:r,[se.color.variable]:"colors.whiteAlpha.800"}}},Dy=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.200`,.16)(n);return{[se.bg.variable]:`colors.${t}.100`,[se.color.variable]:`colors.${t}.800`,_dark:{[se.bg.variable]:r,[se.color.variable]:`colors.${t}.200`}}},Iy=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.200`,.8)(n);return{[se.color.variable]:`colors.${t}.500`,_dark:{[se.color.variable]:r},[se.shadow.variable]:`inset 0 0 0px 1px ${se.color.reference}`}},Vy={solid:By,subtle:Dy,outline:Iy},Hn={baseStyle:zy,variants:Vy,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Fy,definePartsStyle:Ly}=ee(ug.keys),yi=B("breadcrumb-link-decor"),Oy={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:yi.reference,[yi.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[yi.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Wy=Ly({link:Oy}),Ny=Fy({baseStyle:Wy}),Hy={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"}}},Iu=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:z("gray.800","whiteAlpha.900")(e),_hover:{bg:z("gray.100","whiteAlpha.200")(e)},_active:{bg:z("gray.200","whiteAlpha.300")(e)}};const r=mn(`${t}.200`,.12)(n),o=mn(`${t}.200`,.24)(n);return{color:z(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:z(`${t}.50`,r)(e)},_active:{bg:z(`${t}.100`,o)(e)}}},Uy=e=>{const{colorScheme:t}=e,n=z("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"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"},...Ce(Iu,e)}},Gy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},qy=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=z("gray.100","whiteAlpha.200")(e);return{bg:a,color:z("gray.800","whiteAlpha.900")(e),_hover:{bg:z("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:z("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Gy[t]??{},s=z(n,`${t}.200`)(e);return{bg:s,color:z(r,"gray.800")(e),_hover:{bg:z(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:z(i,`${t}.400`)(e)}}},Ky=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:z(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:z(`${t}.700`,`${t}.500`)(e)}}},Xy={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Yy={ghost:Iu,outline:Uy,solid:qy,link:Ky,unstyled:Xy},Zy={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"}},Jy={baseStyle:Hy,variants:Yy,sizes:Zy,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Wt,defineMultiStyleConfig:Qy}=ee(Eg.keys),yo=B("card-bg"),bt=B("card-padding"),Vu=B("card-shadow"),Gr=B("card-radius"),Fu=B("card-border-width","0"),Lu=B("card-border-color"),eb=Wt({container:{[yo.variable]:"colors.chakra-body-bg",backgroundColor:yo.reference,boxShadow:Vu.reference,borderRadius:Gr.reference,color:"chakra-body-text",borderWidth:Fu.reference,borderColor:Lu.reference},body:{padding:bt.reference,flex:"1 1 0%"},header:{padding:bt.reference},footer:{padding:bt.reference}}),tb={sm:Wt({container:{[Gr.variable]:"radii.base",[bt.variable]:"space.3"}}),md:Wt({container:{[Gr.variable]:"radii.md",[bt.variable]:"space.5"}}),lg:Wt({container:{[Gr.variable]:"radii.xl",[bt.variable]:"space.7"}})},nb={elevated:Wt({container:{[Vu.variable]:"shadows.base",_dark:{[yo.variable]:"colors.gray.700"}}}),outline:Wt({container:{[Fu.variable]:"1px",[Lu.variable]:"colors.chakra-border-color"}}),filled:Wt({container:{[yo.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[bt.variable]:0},header:{[bt.variable]:0},footer:{[bt.variable]:0}}},rb=Qy({baseStyle:eb,variants:nb,sizes:tb,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:qr,defineMultiStyleConfig:ob}=ee(dg.keys),Un=B("checkbox-size"),ib=e=>{const{colorScheme:t}=e;return{w:Un.reference,h:Un.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:z(`${t}.500`,`${t}.200`)(e),borderColor:z(`${t}.500`,`${t}.200`)(e),color:z("white","gray.900")(e),_hover:{bg:z(`${t}.600`,`${t}.300`)(e),borderColor:z(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:z("gray.200","transparent")(e),bg:z("gray.200","whiteAlpha.300")(e),color:z("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:z(`${t}.500`,`${t}.200`)(e),borderColor:z(`${t}.500`,`${t}.200`)(e),color:z("white","gray.900")(e)},_disabled:{bg:z("gray.100","whiteAlpha.100")(e),borderColor:z("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:z("red.500","red.300")(e)}}},sb={_disabled:{cursor:"not-allowed"}},ab={userSelect:"none",_disabled:{opacity:.4}},lb={transitionProperty:"transform",transitionDuration:"normal"},cb=qr(e=>({icon:lb,container:sb,control:Ce(ib,e),label:ab})),ub={sm:qr({control:{[Un.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:qr({control:{[Un.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:qr({control:{[Un.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},bo=ob({baseStyle:cb,sizes:ub,defaultProps:{size:"md",colorScheme:"blue"}}),Gn=pe("close-button-size"),Rn=pe("close-button-bg"),db={w:[Gn.reference],h:[Gn.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rn.variable]:"colors.blackAlpha.100",_dark:{[Rn.variable]:"colors.whiteAlpha.100"}},_active:{[Rn.variable]:"colors.blackAlpha.200",_dark:{[Rn.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rn.reference},fb={lg:{[Gn.variable]:"sizes.10",fontSize:"md"},md:{[Gn.variable]:"sizes.8",fontSize:"xs"},sm:{[Gn.variable]:"sizes.6",fontSize:"2xs"}},hb={baseStyle:db,sizes:fb,defaultProps:{size:"md"}},{variants:pb,defaultProps:mb}=Hn,gb={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:se.bg.reference,color:se.color.reference,boxShadow:se.shadow.reference},yb={baseStyle:gb,variants:pb,defaultProps:mb},bb={w:"100%",mx:"auto",maxW:"prose",px:"4"},vb={baseStyle:bb},xb={opacity:.6,borderColor:"inherit"},Sb={borderStyle:"solid"},wb={borderStyle:"dashed"},kb={solid:Sb,dashed:wb},Cb={baseStyle:xb,variants:kb,defaultProps:{variant:"solid"}},{definePartsStyle:cs,defineMultiStyleConfig:Tb}=ee(fg.keys),bi=B("drawer-bg"),vi=B("drawer-box-shadow");function Jt(e){return cs(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const Pb={bg:"blackAlpha.600",zIndex:"modal"},Ab={display:"flex",zIndex:"modal",justifyContent:"center"},$b=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[bi.variable]:"colors.white",[vi.variable]:"shadows.lg",_dark:{[bi.variable]:"colors.gray.700",[vi.variable]:"shadows.dark-lg"},bg:bi.reference,boxShadow:vi.reference}},_b={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Rb={position:"absolute",top:"2",insetEnd:"3"},Eb={px:"6",py:"2",flex:"1",overflow:"auto"},Mb={px:"6",py:"4"},jb=cs(e=>({overlay:Pb,dialogContainer:Ab,dialog:Ce($b,e),header:_b,closeButton:Rb,body:Eb,footer:Mb})),zb={xs:Jt("xs"),sm:Jt("md"),md:Jt("lg"),lg:Jt("2xl"),xl:Jt("4xl"),full:Jt("full")},Bb=Tb({baseStyle:jb,sizes:zb,defaultProps:{size:"xs"}}),{definePartsStyle:Db,defineMultiStyleConfig:Ib}=ee(hg.keys),Vb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Fb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Lb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ob=Db({preview:Vb,input:Fb,textarea:Lb}),Wb=Ib({baseStyle:Ob}),{definePartsStyle:Nb,defineMultiStyleConfig:Hb}=ee(pg.keys),dn=B("form-control-color"),Ub={marginStart:"1",[dn.variable]:"colors.red.500",_dark:{[dn.variable]:"colors.red.300"},color:dn.reference},Gb={mt:"2",[dn.variable]:"colors.gray.600",_dark:{[dn.variable]:"colors.whiteAlpha.600"},color:dn.reference,lineHeight:"normal",fontSize:"sm"},qb=Nb({container:{width:"100%",position:"relative"},requiredIndicator:Ub,helperText:Gb}),Kb=Hb({baseStyle:qb}),{definePartsStyle:Xb,defineMultiStyleConfig:Yb}=ee(mg.keys),fn=B("form-error-color"),Zb={[fn.variable]:"colors.red.500",_dark:{[fn.variable]:"colors.red.300"},color:fn.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Jb={marginEnd:"0.5em",[fn.variable]:"colors.red.500",_dark:{[fn.variable]:"colors.red.300"},color:fn.reference},Qb=Xb({text:Zb,icon:Jb}),e0=Yb({baseStyle:Qb}),t0={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},n0={baseStyle:t0},r0={fontFamily:"heading",fontWeight:"bold"},o0={"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}},i0={baseStyle:r0,sizes:o0,defaultProps:{size:"xl"}},{definePartsStyle:yt,defineMultiStyleConfig:s0}=ee(gg.keys),en=B("input-height"),tn=B("input-font-size"),nn=B("input-padding"),rn=B("input-border-radius"),a0=yt({addon:{height:en.reference,fontSize:tn.reference,px:nn.reference,borderRadius:rn.reference},field:{width:"100%",height:en.reference,fontSize:tn.reference,px:nn.reference,borderRadius:rn.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ct={lg:{[tn.variable]:"fontSizes.lg",[nn.variable]:"space.4",[rn.variable]:"radii.md",[en.variable]:"sizes.12"},md:{[tn.variable]:"fontSizes.md",[nn.variable]:"space.4",[rn.variable]:"radii.md",[en.variable]:"sizes.10"},sm:{[tn.variable]:"fontSizes.sm",[nn.variable]:"space.3",[rn.variable]:"radii.sm",[en.variable]:"sizes.8"},xs:{[tn.variable]:"fontSizes.xs",[nn.variable]:"space.2",[rn.variable]:"radii.sm",[en.variable]:"sizes.6"}},l0={lg:yt({field:Ct.lg,group:Ct.lg}),md:yt({field:Ct.md,group:Ct.md}),sm:yt({field:Ct.sm,group:Ct.sm}),xs:yt({field:Ct.xs,group:Ct.xs})};function Zs(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||z("blue.500","blue.300")(e),errorBorderColor:n||z("red.500","red.300")(e)}}const c0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:z("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r),boxShadow:`0 0 0 1px ${Se(t,r)}`},_focusVisible:{zIndex:1,borderColor:Se(t,n),boxShadow:`0 0 0 1px ${Se(t,n)}`}},addon:{border:"1px solid",borderColor:z("inherit","whiteAlpha.50")(e),bg:z("gray.100","whiteAlpha.300")(e)}}}),u0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{border:"2px solid",borderColor:"transparent",bg:z("gray.100","whiteAlpha.50")(e),_hover:{bg:z("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r)},_focusVisible:{bg:"transparent",borderColor:Se(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:z("gray.100","whiteAlpha.50")(e)}}}),d0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r),boxShadow:`0px 1px 0px 0px ${Se(t,r)}`},_focusVisible:{borderColor:Se(t,n),boxShadow:`0px 1px 0px 0px ${Se(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),f0=yt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),h0={outline:c0,filled:u0,flushed:d0,unstyled:f0},H=s0({baseStyle:a0,sizes:l0,variants:h0,defaultProps:{size:"md",variant:"outline"}}),xi=B("kbd-bg"),p0={[xi.variable]:"colors.gray.100",_dark:{[xi.variable]:"colors.whiteAlpha.100"},bg:xi.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},m0={baseStyle:p0},g0={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},y0={baseStyle:g0},{defineMultiStyleConfig:b0,definePartsStyle:v0}=ee(yg.keys),x0={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},S0=v0({icon:x0}),w0=b0({baseStyle:S0}),{defineMultiStyleConfig:k0,definePartsStyle:C0}=ee(bg.keys),Qe=B("menu-bg"),Si=B("menu-shadow"),T0={[Qe.variable]:"#fff",[Si.variable]:"shadows.sm",_dark:{[Qe.variable]:"colors.gray.700",[Si.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Qe.reference,boxShadow:Si.reference},P0={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Qe.variable]:"colors.gray.100",_dark:{[Qe.variable]:"colors.whiteAlpha.100"}},_active:{[Qe.variable]:"colors.gray.200",_dark:{[Qe.variable]:"colors.whiteAlpha.200"}},_expanded:{[Qe.variable]:"colors.gray.100",_dark:{[Qe.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Qe.reference},A0={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},$0={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},_0={opacity:.6},R0={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},E0={transitionProperty:"common",transitionDuration:"normal"},M0=C0({button:E0,list:T0,item:P0,groupTitle:A0,icon:$0,command:_0,divider:R0}),j0=k0({baseStyle:M0}),{defineMultiStyleConfig:z0,definePartsStyle:us}=ee(vg.keys),wi=B("modal-bg"),ki=B("modal-shadow"),B0={bg:"blackAlpha.600",zIndex:"modal"},D0=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},I0=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[wi.variable]:"colors.white",[ki.variable]:"shadows.lg",_dark:{[wi.variable]:"colors.gray.700",[ki.variable]:"shadows.dark-lg"},bg:wi.reference,boxShadow:ki.reference}},V0={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},F0={position:"absolute",top:"2",insetEnd:"3"},L0=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},O0={px:"6",py:"4"},W0=us(e=>({overlay:B0,dialogContainer:Ce(D0,e),dialog:Ce(I0,e),header:V0,closeButton:F0,body:Ce(L0,e),footer:O0}));function He(e){return us(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const N0={xs:He("xs"),sm:He("sm"),md:He("md"),lg:He("lg"),xl:He("xl"),"2xl":He("2xl"),"3xl":He("3xl"),"4xl":He("4xl"),"5xl":He("5xl"),"6xl":He("6xl"),full:He("full")},H0=z0({baseStyle:W0,sizes:N0,defaultProps:{size:"md"}}),Ou={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:U0,definePartsStyle:Wu}=ee(xg.keys),Js=pe("number-input-stepper-width"),Nu=pe("number-input-input-padding"),G0=mt(Js).add("0.5rem").toString(),Ci=pe("number-input-bg"),Ti=pe("number-input-color"),Pi=pe("number-input-border-color"),q0={[Js.variable]:"sizes.6",[Nu.variable]:G0},K0=e=>Ce(H.baseStyle,e)?.field??{},X0={width:Js.reference},Y0={borderStart:"1px solid",borderStartColor:Pi.reference,color:Ti.reference,bg:Ci.reference,[Ti.variable]:"colors.chakra-body-text",[Pi.variable]:"colors.chakra-border-color",_dark:{[Ti.variable]:"colors.whiteAlpha.800",[Pi.variable]:"colors.whiteAlpha.300"},_active:{[Ci.variable]:"colors.gray.200",_dark:{[Ci.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Z0=Wu(e=>({root:q0,field:Ce(K0,e)??{},stepperGroup:X0,stepper:Y0}));function $r(e){const t=H.sizes?.[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=t.field?.fontSize??"md",o=Ou.fontSizes[r];return Wu({field:{...t.field,paddingInlineEnd:Nu.reference,verticalAlign:"top"},stepper:{fontSize:mt(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const J0={xs:$r("xs"),sm:$r("sm"),md:$r("md"),lg:$r("lg")},Q0=U0({baseStyle:Z0,sizes:J0,variants:H.variants,defaultProps:H.defaultProps}),ev={...H.baseStyle?.field,textAlign:"center"},tv={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"}},nv={outline:e=>Ce(H.variants?.outline,e)?.field??{},flushed:e=>Ce(H.variants?.flushed,e)?.field??{},filled:e=>Ce(H.variants?.filled,e)?.field??{},unstyled:H.variants?.unstyled.field??{}},rv={baseStyle:ev,sizes:tv,variants:nv,defaultProps:H.defaultProps},{defineMultiStyleConfig:ov,definePartsStyle:iv}=ee(Sg.keys),_r=pe("popper-bg"),sv=pe("popper-arrow-bg"),Il=pe("popper-arrow-shadow-color"),av={zIndex:"popover"},lv={[_r.variable]:"colors.white",bg:_r.reference,[sv.variable]:_r.reference,[Il.variable]:"colors.gray.200",_dark:{[_r.variable]:"colors.gray.700",[Il.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},cv={px:3,py:2,borderBottomWidth:"1px"},uv={px:3,py:2},dv={px:3,py:2,borderTopWidth:"1px"},fv={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},hv=iv({popper:av,content:lv,header:cv,body:uv,footer:dv,closeButton:fv}),pv=ov({baseStyle:hv}),{defineMultiStyleConfig:mv,definePartsStyle:In}=ee(wg.keys),gv=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=z(Ml(),Ml("1rem","rgba(0,0,0,0.1)"))(e),s=z(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}const oy=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function iy(e){const t=oy();return!e||Qg(e)?t:e.string&&e.colors?ay(e.string,e.colors):e.string&&!e.colors?sy(e.string):e.colors&&!e.string?ly(e.colors):t}function sy(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function ay(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Xs(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function ju(e){return Fe(e)&&e.reference?e.reference:String(e)}const zo=(e,...t)=>t.map(ju).join(` ${e} `).replace(/calc/g,""),zl=(...e)=>`calc(${zo("+",...e)})`,Bl=(...e)=>`calc(${zo("-",...e)})`,ls=(...e)=>`calc(${zo("*",...e)})`,Dl=(...e)=>`calc(${zo("/",...e)})`,Il=e=>{const t=ju(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ls(t,-1)},mt=Object.assign(e=>({add:(...t)=>mt(zl(e,...t)),subtract:(...t)=>mt(Bl(e,...t)),multiply:(...t)=>mt(ls(e,...t)),divide:(...t)=>mt(Dl(e,...t)),negate:()=>mt(Il(e)),toString:()=>e.toString()}),{add:zl,subtract:Bl,multiply:ls,divide:Dl,negate:Il});function cy(e){return!Number.isInteger(parseFloat(e.toString()))}function uy(e,t="-"){return e.replace(/\s+/g,t)}function zu(e){const t=uy(e.toString());return t.includes("\\.")?e:cy(e)?t.replace(".","\\."):e}function dy(e,t=""){return[t,zu(e)].filter(Boolean).join("-")}function fy(e,t){return`var(${zu(e)}${t?`, ${t}`:""})`}function hy(e,t=""){return`--${dy(e,t)}`}function pe(e,t){const n=hy(e,t?.prefix);return{variable:n,reference:fy(n,py(t?.fallback))}}function py(e){return e?.reference}const{definePartsStyle:ur,defineMultiStyleConfig:my}=ee(lg.keys),_e=B("alert-fg"),vt=B("alert-bg"),gy=ur({container:{bg:vt.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:_e.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:_e.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ys(e){const{theme:t,colorScheme:n}=e,r=mn(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const yy=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark}}}}),by=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:_e.reference}}}),vy=ur(e=>{const{colorScheme:t}=e,n=Ys(e);return{container:{[_e.variable]:`colors.${t}.600`,[vt.variable]:n.light,_dark:{[_e.variable]:`colors.${t}.200`,[vt.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:_e.reference}}}),xy=ur(e=>{const{colorScheme:t}=e;return{container:{[_e.variable]:"colors.white",[vt.variable]:`colors.${t}.600`,_dark:{[_e.variable]:"colors.gray.900",[vt.variable]:`colors.${t}.200`},color:_e.reference}}}),Sy={subtle:yy,"left-accent":by,"top-accent":vy,solid:xy},wy=my({baseStyle:gy,variants:Sy,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Bu={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"},ky={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"},Cy={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Du={...Bu,...ky,container:Cy},Ty=e=>typeof e=="function";function Ce(e,...t){return Ty(e)?e(...t):e}const{definePartsStyle:Iu,defineMultiStyleConfig:Py}=ee(cg.keys),un=B("avatar-border-color"),Nn=B("avatar-bg"),tr=B("avatar-font-size"),gn=B("avatar-size"),Ay={borderRadius:"full",border:"0.2em solid",borderColor:un.reference,[un.variable]:"white",_dark:{[un.variable]:"colors.gray.800"}},$y={bg:Nn.reference,fontSize:tr.reference,width:gn.reference,height:gn.reference,lineHeight:"1",[Nn.variable]:"colors.gray.200",_dark:{[Nn.variable]:"colors.whiteAlpha.400"}},_y=e=>{const{name:t,theme:n}=e,r=t?iy({string:t}):"colors.gray.400",o=ry(r)(n);let i="white";return o||(i="gray.800"),{bg:Nn.reference,fontSize:tr.reference,color:i,borderColor:un.reference,verticalAlign:"top",width:gn.reference,height:gn.reference,"&:not([data-loaded])":{[Nn.variable]:r},[un.variable]:"colors.white",_dark:{[un.variable]:"colors.gray.800"}}},Ry={fontSize:tr.reference,lineHeight:"1"},Ey=Iu(e=>({badge:Ce(Ay,e),excessLabel:Ce($y,e),container:Ce(_y,e),label:Ry}));function kt(e){const t=e!=="100%"?Du[e]:void 0;return Iu({container:{[gn.variable]:t??e,[tr.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[gn.variable]:t??e,[tr.variable]:`calc(${t??e} / 2.5)`}})}const My={"2xs":kt(4),xs:kt(6),sm:kt(8),md:kt(12),lg:kt(16),xl:kt(24),"2xl":kt(32),full:kt("100%")},jy=Py({baseStyle:Ey,sizes:My,defaultProps:{size:"md"}}),se=Qm("badge",["bg","color","shadow"]),zy={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:se.bg.reference,color:se.color.reference,boxShadow:se.shadow.reference},By=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.500`,.6)(n);return{[se.bg.variable]:`colors.${t}.500`,[se.color.variable]:"colors.white",_dark:{[se.bg.variable]:r,[se.color.variable]:"colors.whiteAlpha.800"}}},Dy=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.200`,.16)(n);return{[se.bg.variable]:`colors.${t}.100`,[se.color.variable]:`colors.${t}.800`,_dark:{[se.bg.variable]:r,[se.color.variable]:`colors.${t}.200`}}},Iy=e=>{const{colorScheme:t,theme:n}=e,r=mn(`${t}.200`,.8)(n);return{[se.color.variable]:`colors.${t}.500`,_dark:{[se.color.variable]:r},[se.shadow.variable]:`inset 0 0 0px 1px ${se.color.reference}`}},Vy={solid:By,subtle:Dy,outline:Iy},Hn={baseStyle:zy,variants:Vy,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Fy,definePartsStyle:Ly}=ee(ug.keys),yi=B("breadcrumb-link-decor"),Oy={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:yi.reference,[yi.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[yi.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Wy=Ly({link:Oy}),Ny=Fy({baseStyle:Wy}),Hy={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"}}},Vu=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:z("gray.800","whiteAlpha.900")(e),_hover:{bg:z("gray.100","whiteAlpha.200")(e)},_active:{bg:z("gray.200","whiteAlpha.300")(e)}};const r=mn(`${t}.200`,.12)(n),o=mn(`${t}.200`,.24)(n);return{color:z(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:z(`${t}.50`,r)(e)},_active:{bg:z(`${t}.100`,o)(e)}}},Uy=e=>{const{colorScheme:t}=e,n=z("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"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"},...Ce(Vu,e)}},Gy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},qy=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=z("gray.100","whiteAlpha.200")(e);return{bg:a,color:z("gray.800","whiteAlpha.900")(e),_hover:{bg:z("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:z("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Gy[t]??{},s=z(n,`${t}.200`)(e);return{bg:s,color:z(r,"gray.800")(e),_hover:{bg:z(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:z(i,`${t}.400`)(e)}}},Ky=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:z(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:z(`${t}.700`,`${t}.500`)(e)}}},Xy={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Yy={ghost:Vu,outline:Uy,solid:qy,link:Ky,unstyled:Xy},Zy={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"}},Jy={baseStyle:Hy,variants:Yy,sizes:Zy,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Wt,defineMultiStyleConfig:Qy}=ee(Eg.keys),yo=B("card-bg"),bt=B("card-padding"),Fu=B("card-shadow"),Gr=B("card-radius"),Lu=B("card-border-width","0"),Ou=B("card-border-color"),eb=Wt({container:{[yo.variable]:"colors.chakra-body-bg",backgroundColor:yo.reference,boxShadow:Fu.reference,borderRadius:Gr.reference,color:"chakra-body-text",borderWidth:Lu.reference,borderColor:Ou.reference},body:{padding:bt.reference,flex:"1 1 0%"},header:{padding:bt.reference},footer:{padding:bt.reference}}),tb={sm:Wt({container:{[Gr.variable]:"radii.base",[bt.variable]:"space.3"}}),md:Wt({container:{[Gr.variable]:"radii.md",[bt.variable]:"space.5"}}),lg:Wt({container:{[Gr.variable]:"radii.xl",[bt.variable]:"space.7"}})},nb={elevated:Wt({container:{[Fu.variable]:"shadows.base",_dark:{[yo.variable]:"colors.gray.700"}}}),outline:Wt({container:{[Lu.variable]:"1px",[Ou.variable]:"colors.chakra-border-color"}}),filled:Wt({container:{[yo.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[bt.variable]:0},header:{[bt.variable]:0},footer:{[bt.variable]:0}}},rb=Qy({baseStyle:eb,variants:nb,sizes:tb,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:qr,defineMultiStyleConfig:ob}=ee(dg.keys),Un=B("checkbox-size"),ib=e=>{const{colorScheme:t}=e;return{w:Un.reference,h:Un.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:z(`${t}.500`,`${t}.200`)(e),borderColor:z(`${t}.500`,`${t}.200`)(e),color:z("white","gray.900")(e),_hover:{bg:z(`${t}.600`,`${t}.300`)(e),borderColor:z(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:z("gray.200","transparent")(e),bg:z("gray.200","whiteAlpha.300")(e),color:z("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:z(`${t}.500`,`${t}.200`)(e),borderColor:z(`${t}.500`,`${t}.200`)(e),color:z("white","gray.900")(e)},_disabled:{bg:z("gray.100","whiteAlpha.100")(e),borderColor:z("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:z("red.500","red.300")(e)}}},sb={_disabled:{cursor:"not-allowed"}},ab={userSelect:"none",_disabled:{opacity:.4}},lb={transitionProperty:"transform",transitionDuration:"normal"},cb=qr(e=>({icon:lb,container:sb,control:Ce(ib,e),label:ab})),ub={sm:qr({control:{[Un.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:qr({control:{[Un.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:qr({control:{[Un.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},bo=ob({baseStyle:cb,sizes:ub,defaultProps:{size:"md",colorScheme:"blue"}}),Gn=pe("close-button-size"),Rn=pe("close-button-bg"),db={w:[Gn.reference],h:[Gn.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rn.variable]:"colors.blackAlpha.100",_dark:{[Rn.variable]:"colors.whiteAlpha.100"}},_active:{[Rn.variable]:"colors.blackAlpha.200",_dark:{[Rn.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rn.reference},fb={lg:{[Gn.variable]:"sizes.10",fontSize:"md"},md:{[Gn.variable]:"sizes.8",fontSize:"xs"},sm:{[Gn.variable]:"sizes.6",fontSize:"2xs"}},hb={baseStyle:db,sizes:fb,defaultProps:{size:"md"}},{variants:pb,defaultProps:mb}=Hn,gb={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:se.bg.reference,color:se.color.reference,boxShadow:se.shadow.reference},yb={baseStyle:gb,variants:pb,defaultProps:mb},bb={w:"100%",mx:"auto",maxW:"prose",px:"4"},vb={baseStyle:bb},xb={opacity:.6,borderColor:"inherit"},Sb={borderStyle:"solid"},wb={borderStyle:"dashed"},kb={solid:Sb,dashed:wb},Cb={baseStyle:xb,variants:kb,defaultProps:{variant:"solid"}},{definePartsStyle:cs,defineMultiStyleConfig:Tb}=ee(fg.keys),bi=B("drawer-bg"),vi=B("drawer-box-shadow");function Jt(e){return cs(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const Pb={bg:"blackAlpha.600",zIndex:"modal"},Ab={display:"flex",zIndex:"modal",justifyContent:"center"},$b=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[bi.variable]:"colors.white",[vi.variable]:"shadows.lg",_dark:{[bi.variable]:"colors.gray.700",[vi.variable]:"shadows.dark-lg"},bg:bi.reference,boxShadow:vi.reference}},_b={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Rb={position:"absolute",top:"2",insetEnd:"3"},Eb={px:"6",py:"2",flex:"1",overflow:"auto"},Mb={px:"6",py:"4"},jb=cs(e=>({overlay:Pb,dialogContainer:Ab,dialog:Ce($b,e),header:_b,closeButton:Rb,body:Eb,footer:Mb})),zb={xs:Jt("xs"),sm:Jt("md"),md:Jt("lg"),lg:Jt("2xl"),xl:Jt("4xl"),full:Jt("full")},Bb=Tb({baseStyle:jb,sizes:zb,defaultProps:{size:"xs"}}),{definePartsStyle:Db,defineMultiStyleConfig:Ib}=ee(hg.keys),Vb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Fb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Lb={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ob=Db({preview:Vb,input:Fb,textarea:Lb}),Wb=Ib({baseStyle:Ob}),{definePartsStyle:Nb,defineMultiStyleConfig:Hb}=ee(pg.keys),dn=B("form-control-color"),Ub={marginStart:"1",[dn.variable]:"colors.red.500",_dark:{[dn.variable]:"colors.red.300"},color:dn.reference},Gb={mt:"2",[dn.variable]:"colors.gray.600",_dark:{[dn.variable]:"colors.whiteAlpha.600"},color:dn.reference,lineHeight:"normal",fontSize:"sm"},qb=Nb({container:{width:"100%",position:"relative"},requiredIndicator:Ub,helperText:Gb}),Kb=Hb({baseStyle:qb}),{definePartsStyle:Xb,defineMultiStyleConfig:Yb}=ee(mg.keys),fn=B("form-error-color"),Zb={[fn.variable]:"colors.red.500",_dark:{[fn.variable]:"colors.red.300"},color:fn.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Jb={marginEnd:"0.5em",[fn.variable]:"colors.red.500",_dark:{[fn.variable]:"colors.red.300"},color:fn.reference},Qb=Xb({text:Zb,icon:Jb}),e0=Yb({baseStyle:Qb}),t0={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},n0={baseStyle:t0},r0={fontFamily:"heading",fontWeight:"bold"},o0={"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}},i0={baseStyle:r0,sizes:o0,defaultProps:{size:"xl"}},{definePartsStyle:yt,defineMultiStyleConfig:s0}=ee(gg.keys),en=B("input-height"),tn=B("input-font-size"),nn=B("input-padding"),rn=B("input-border-radius"),a0=yt({addon:{height:en.reference,fontSize:tn.reference,px:nn.reference,borderRadius:rn.reference},field:{width:"100%",height:en.reference,fontSize:tn.reference,px:nn.reference,borderRadius:rn.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ct={lg:{[tn.variable]:"fontSizes.lg",[nn.variable]:"space.4",[rn.variable]:"radii.md",[en.variable]:"sizes.12"},md:{[tn.variable]:"fontSizes.md",[nn.variable]:"space.4",[rn.variable]:"radii.md",[en.variable]:"sizes.10"},sm:{[tn.variable]:"fontSizes.sm",[nn.variable]:"space.3",[rn.variable]:"radii.sm",[en.variable]:"sizes.8"},xs:{[tn.variable]:"fontSizes.xs",[nn.variable]:"space.2",[rn.variable]:"radii.sm",[en.variable]:"sizes.6"}},l0={lg:yt({field:Ct.lg,group:Ct.lg}),md:yt({field:Ct.md,group:Ct.md}),sm:yt({field:Ct.sm,group:Ct.sm}),xs:yt({field:Ct.xs,group:Ct.xs})};function Zs(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||z("blue.500","blue.300")(e),errorBorderColor:n||z("red.500","red.300")(e)}}const c0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:z("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r),boxShadow:`0 0 0 1px ${Se(t,r)}`},_focusVisible:{zIndex:1,borderColor:Se(t,n),boxShadow:`0 0 0 1px ${Se(t,n)}`}},addon:{border:"1px solid",borderColor:z("inherit","whiteAlpha.50")(e),bg:z("gray.100","whiteAlpha.300")(e)}}}),u0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{border:"2px solid",borderColor:"transparent",bg:z("gray.100","whiteAlpha.50")(e),_hover:{bg:z("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r)},_focusVisible:{bg:"transparent",borderColor:Se(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:z("gray.100","whiteAlpha.50")(e)}}}),d0=yt(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Zs(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Se(t,r),boxShadow:`0px 1px 0px 0px ${Se(t,r)}`},_focusVisible:{borderColor:Se(t,n),boxShadow:`0px 1px 0px 0px ${Se(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),f0=yt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),h0={outline:c0,filled:u0,flushed:d0,unstyled:f0},H=s0({baseStyle:a0,sizes:l0,variants:h0,defaultProps:{size:"md",variant:"outline"}}),xi=B("kbd-bg"),p0={[xi.variable]:"colors.gray.100",_dark:{[xi.variable]:"colors.whiteAlpha.100"},bg:xi.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},m0={baseStyle:p0},g0={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},y0={baseStyle:g0},{defineMultiStyleConfig:b0,definePartsStyle:v0}=ee(yg.keys),x0={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},S0=v0({icon:x0}),w0=b0({baseStyle:S0}),{defineMultiStyleConfig:k0,definePartsStyle:C0}=ee(bg.keys),Qe=B("menu-bg"),Si=B("menu-shadow"),T0={[Qe.variable]:"#fff",[Si.variable]:"shadows.sm",_dark:{[Qe.variable]:"colors.gray.700",[Si.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Qe.reference,boxShadow:Si.reference},P0={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Qe.variable]:"colors.gray.100",_dark:{[Qe.variable]:"colors.whiteAlpha.100"}},_active:{[Qe.variable]:"colors.gray.200",_dark:{[Qe.variable]:"colors.whiteAlpha.200"}},_expanded:{[Qe.variable]:"colors.gray.100",_dark:{[Qe.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Qe.reference},A0={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},$0={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},_0={opacity:.6},R0={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},E0={transitionProperty:"common",transitionDuration:"normal"},M0=C0({button:E0,list:T0,item:P0,groupTitle:A0,icon:$0,command:_0,divider:R0}),j0=k0({baseStyle:M0}),{defineMultiStyleConfig:z0,definePartsStyle:us}=ee(vg.keys),wi=B("modal-bg"),ki=B("modal-shadow"),B0={bg:"blackAlpha.600",zIndex:"modal"},D0=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},I0=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[wi.variable]:"colors.white",[ki.variable]:"shadows.lg",_dark:{[wi.variable]:"colors.gray.700",[ki.variable]:"shadows.dark-lg"},bg:wi.reference,boxShadow:ki.reference}},V0={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},F0={position:"absolute",top:"2",insetEnd:"3"},L0=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},O0={px:"6",py:"4"},W0=us(e=>({overlay:B0,dialogContainer:Ce(D0,e),dialog:Ce(I0,e),header:V0,closeButton:F0,body:Ce(L0,e),footer:O0}));function He(e){return us(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const N0={xs:He("xs"),sm:He("sm"),md:He("md"),lg:He("lg"),xl:He("xl"),"2xl":He("2xl"),"3xl":He("3xl"),"4xl":He("4xl"),"5xl":He("5xl"),"6xl":He("6xl"),full:He("full")},H0=z0({baseStyle:W0,sizes:N0,defaultProps:{size:"md"}}),Wu={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:U0,definePartsStyle:Nu}=ee(xg.keys),Js=pe("number-input-stepper-width"),Hu=pe("number-input-input-padding"),G0=mt(Js).add("0.5rem").toString(),Ci=pe("number-input-bg"),Ti=pe("number-input-color"),Pi=pe("number-input-border-color"),q0={[Js.variable]:"sizes.6",[Hu.variable]:G0},K0=e=>Ce(H.baseStyle,e)?.field??{},X0={width:Js.reference},Y0={borderStart:"1px solid",borderStartColor:Pi.reference,color:Ti.reference,bg:Ci.reference,[Ti.variable]:"colors.chakra-body-text",[Pi.variable]:"colors.chakra-border-color",_dark:{[Ti.variable]:"colors.whiteAlpha.800",[Pi.variable]:"colors.whiteAlpha.300"},_active:{[Ci.variable]:"colors.gray.200",_dark:{[Ci.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Z0=Nu(e=>({root:q0,field:Ce(K0,e)??{},stepperGroup:X0,stepper:Y0}));function $r(e){const t=H.sizes?.[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=t.field?.fontSize??"md",o=Wu.fontSizes[r];return Nu({field:{...t.field,paddingInlineEnd:Hu.reference,verticalAlign:"top"},stepper:{fontSize:mt(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const J0={xs:$r("xs"),sm:$r("sm"),md:$r("md"),lg:$r("lg")},Q0=U0({baseStyle:Z0,sizes:J0,variants:H.variants,defaultProps:H.defaultProps}),ev={...H.baseStyle?.field,textAlign:"center"},tv={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"}},nv={outline:e=>Ce(H.variants?.outline,e)?.field??{},flushed:e=>Ce(H.variants?.flushed,e)?.field??{},filled:e=>Ce(H.variants?.filled,e)?.field??{},unstyled:H.variants?.unstyled.field??{}},rv={baseStyle:ev,sizes:tv,variants:nv,defaultProps:H.defaultProps},{defineMultiStyleConfig:ov,definePartsStyle:iv}=ee(Sg.keys),_r=pe("popper-bg"),sv=pe("popper-arrow-bg"),Vl=pe("popper-arrow-shadow-color"),av={zIndex:"popover"},lv={[_r.variable]:"colors.white",bg:_r.reference,[sv.variable]:_r.reference,[Vl.variable]:"colors.gray.200",_dark:{[_r.variable]:"colors.gray.700",[Vl.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},cv={px:3,py:2,borderBottomWidth:"1px"},uv={px:3,py:2},dv={px:3,py:2,borderTopWidth:"1px"},fv={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},hv=iv({popper:av,content:lv,header:cv,body:uv,footer:dv,closeButton:fv}),pv=ov({baseStyle:hv}),{defineMultiStyleConfig:mv,definePartsStyle:In}=ee(wg.keys),gv=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=z(jl(),jl("1rem","rgba(0,0,0,0.1)"))(e),s=z(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( to right, transparent 0%, ${Se(n,s)} 50%, transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},yv={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},bv=e=>({bg:z("gray.100","whiteAlpha.300")(e)}),vv=e=>({transitionProperty:"common",transitionDuration:"slow",...gv(e)}),xv=In(e=>({label:yv,filledTrack:vv(e),track:bv(e)})),Sv={xs:In({track:{h:"1"}}),sm:In({track:{h:"2"}}),md:In({track:{h:"3"}}),lg:In({track:{h:"4"}})},wv=mv({sizes:Sv,baseStyle:xv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kv,definePartsStyle:Kr}=ee(kg.keys),Cv=e=>{const t=Ce(bo.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"}}}},Tv=Kr(e=>({label:bo.baseStyle?.(e).label,container:bo.baseStyle?.(e).container,control:Cv(e)})),Pv={md:Kr({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Kr({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Kr({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Av=kv({baseStyle:Tv,sizes:Pv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$v,definePartsStyle:_v}=ee(Cg.keys),Rr=B("select-bg"),Rv={...H.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Rr.reference,[Rr.variable]:"colors.white",_dark:{[Rr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Rr.reference}},Ev={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Mv=_v({field:Rv,icon:Ev}),Er={paddingInlineEnd:"8"},jv={lg:{...H.sizes?.lg,field:{...H.sizes?.lg.field,...Er}},md:{...H.sizes?.md,field:{...H.sizes?.md.field,...Er}},sm:{...H.sizes?.sm,field:{...H.sizes?.sm.field,...Er}},xs:{...H.sizes?.xs,field:{...H.sizes?.xs.field,...Er},icon:{insetEnd:"1"}}},zv=$v({baseStyle:Mv,sizes:jv,variants:H.variants,defaultProps:H.defaultProps}),Ai=B("skeleton-start-color"),$i=B("skeleton-end-color"),Bv={[Ai.variable]:"colors.gray.100",[$i.variable]:"colors.gray.400",_dark:{[Ai.variable]:"colors.gray.800",[$i.variable]:"colors.gray.600"},background:Ai.reference,borderColor:$i.reference,opacity:.7,borderRadius:"sm"},Dv={baseStyle:Bv},_i=B("skip-link-bg"),Iv={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[_i.variable]:"colors.white",_dark:{[_i.variable]:"colors.gray.700"},bg:_i.reference}},Vv={baseStyle:Iv},{defineMultiStyleConfig:Fv,definePartsStyle:Bo}=ee(Tg.keys),qt=B("slider-thumb-size"),nr=B("slider-track-size"),Pt=B("slider-bg"),Lv=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Xs({orientation:t,vertical:{h:"100%",px:pt(qt.reference).divide(2).toString()},horizontal:{w:"100%",py:pt(qt.reference).divide(2).toString()}})}},Ov=e=>({...Xs({orientation:e.orientation,horizontal:{h:nr.reference},vertical:{w:nr.reference}}),overflow:"hidden",borderRadius:"sm",[Pt.variable]:"colors.gray.200",_dark:{[Pt.variable]:"colors.whiteAlpha.200"},_disabled:{[Pt.variable]:"colors.gray.300",_dark:{[Pt.variable]:"colors.whiteAlpha.300"}},bg:Pt.reference}),Wv=e=>{const{orientation:t}=e;return{...Xs({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:qt.reference,h:qt.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"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},Nv=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Pt.variable]:`colors.${t}.500`,_dark:{[Pt.variable]:`colors.${t}.200`},bg:Pt.reference}},Hv=Bo(e=>({container:Lv(e),track:Ov(e),thumb:Wv(e),filledTrack:Nv(e)})),Uv=Bo({container:{[qt.variable]:"sizes.4",[nr.variable]:"sizes.1"}}),Gv=Bo({container:{[qt.variable]:"sizes.3.5",[nr.variable]:"sizes.1"}}),qv=Bo({container:{[qt.variable]:"sizes.2.5",[nr.variable]:"sizes.0.5"}}),Kv={lg:Uv,md:Gv,sm:qv},Xv=Fv({baseStyle:Hv,sizes:Kv,defaultProps:{size:"md",colorScheme:"blue"}}),Vt=pe("spinner-size"),Yv={width:[Vt.reference],height:[Vt.reference]},Zv={xs:{[Vt.variable]:"sizes.3"},sm:{[Vt.variable]:"sizes.4"},md:{[Vt.variable]:"sizes.6"},lg:{[Vt.variable]:"sizes.8"},xl:{[Vt.variable]:"sizes.12"}},Jv={baseStyle:Yv,sizes:Zv,defaultProps:{size:"md"}},{defineMultiStyleConfig:Qv,definePartsStyle:Hu}=ee(Pg.keys),ex={fontWeight:"medium"},tx={opacity:.8,marginBottom:"2"},nx={verticalAlign:"baseline",fontWeight:"semibold"},rx={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},ox=Hu({container:{},label:ex,helpText:tx,number:nx,icon:rx}),ix={md:Hu({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},sx=Qv({baseStyle:ox,sizes:ix,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ax,definePartsStyle:Vn}=ee(["stepper","step","title","description","indicator","separator","icon","number"]),gt=B("stepper-indicator-size"),on=B("stepper-icon-size"),sn=B("stepper-title-font-size"),Fn=B("stepper-description-font-size"),En=B("stepper-accent-color"),lx=Vn(({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"},[En.variable]:`colors.${e}.500`,_dark:{[En.variable]:`colors.${e}.200`}},title:{fontSize:sn.reference,fontWeight:"medium"},description:{fontSize:Fn.reference,color:"chakra-subtle-text"},number:{fontSize:sn.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:on.reference,height:on.reference},indicator:{flexShrink:0,borderRadius:"full",width:gt.reference,height:gt.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:En.reference},"&[data-status=complete]":{bg:En.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:En.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${gt.reference} - 8px)`,top:`calc(${gt.reference} + 4px)`,insetStart:`calc(${gt.reference} / 2 - 1px)`}}})),cx=ax({baseStyle:lx,sizes:{xs:Vn({stepper:{[gt.variable]:"sizes.4",[on.variable]:"sizes.3",[sn.variable]:"fontSizes.xs",[Fn.variable]:"fontSizes.xs"}}),sm:Vn({stepper:{[gt.variable]:"sizes.6",[on.variable]:"sizes.4",[sn.variable]:"fontSizes.sm",[Fn.variable]:"fontSizes.xs"}}),md:Vn({stepper:{[gt.variable]:"sizes.8",[on.variable]:"sizes.5",[sn.variable]:"fontSizes.md",[Fn.variable]:"fontSizes.sm"}}),lg:Vn({stepper:{[gt.variable]:"sizes.10",[on.variable]:"sizes.6",[sn.variable]:"fontSizes.lg",[Fn.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ux,definePartsStyle:Xr}=ee(Ag.keys),qn=pe("switch-track-width"),Nt=pe("switch-track-height"),Ri=pe("switch-track-diff"),dx=mt.subtract(qn,Nt),ds=pe("switch-thumb-x"),Mn=pe("switch-bg"),fx=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[qn.reference],height:[Nt.reference],transitionProperty:"common",transitionDuration:"fast",[Mn.variable]:"colors.gray.300",_dark:{[Mn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Mn.variable]:`colors.${t}.500`,_dark:{[Mn.variable]:`colors.${t}.200`}},bg:Mn.reference}},hx={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Nt.reference],height:[Nt.reference],_checked:{transform:`translateX(${ds.reference})`}},px=Xr(e=>({container:{[Ri.variable]:dx,[ds.variable]:Ri.reference,_rtl:{[ds.variable]:mt(Ri).negate().toString()}},track:fx(e),thumb:hx})),mx={sm:Xr({container:{[qn.variable]:"1.375rem",[Nt.variable]:"sizes.3"}}),md:Xr({container:{[qn.variable]:"1.875rem",[Nt.variable]:"sizes.4"}}),lg:Xr({container:{[qn.variable]:"2.875rem",[Nt.variable]:"sizes.6"}})},gx=ux({baseStyle:px,sizes:mx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yx,definePartsStyle:hn}=ee($g.keys),bx=hn({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"}}),vo={"&[data-is-numeric=true]":{textAlign:"end"}},vx=hn(e=>{const{colorScheme:t}=e;return{th:{color:z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},td:{borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},caption:{color:z("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xx=hn(e=>{const{colorScheme:t}=e;return{th:{color:z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},td:{borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},caption:{color:z("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e)},td:{background:z(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Sx={simple:vx,striped:xx,unstyled:{}},wx={sm:hn({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:hn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:hn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},kx=yx({baseStyle:bx,variants:Sx,sizes:wx,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Pe=B("tabs-color"),qe=B("tabs-bg"),Mr=B("tabs-border-color"),{defineMultiStyleConfig:Cx,definePartsStyle:it}=ee(_g.keys),Tx=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Px=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}}},Ax=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},$x={p:4},_x=it(e=>({root:Tx(e),tab:Px(e),tablist:Ax(e),tabpanel:$x})),Rx={sm:it({tab:{py:1,px:4,fontSize:"sm"}}),md:it({tab:{fontSize:"md",py:2,px:4}}),lg:it({tab:{fontSize:"lg",py:3,px:4}})},Ex=it(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Pe.variable]:`colors.${t}.600`,_dark:{[Pe.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[qe.variable]:"colors.gray.200",_dark:{[qe.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Pe.reference,bg:qe.reference}}}),Mx=it(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Mr.variable]:"transparent",_selected:{[Pe.variable]:`colors.${t}.600`,[Mr.variable]:"colors.white",_dark:{[Pe.variable]:`colors.${t}.300`,[Mr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Mr.reference},color:Pe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jx=it(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[qe.variable]:"colors.gray.50",_dark:{[qe.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[qe.variable]:"colors.white",[Pe.variable]:`colors.${t}.600`,_dark:{[qe.variable]:"colors.gray.800",[Pe.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Pe.reference,bg:qe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zx=it(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Se(n,`${t}.700`),bg:Se(n,`${t}.100`)}}}}),Bx=it(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Pe.variable]:"colors.gray.600",_dark:{[Pe.variable]:"inherit"},_selected:{[Pe.variable]:"colors.white",[qe.variable]:`colors.${t}.600`,_dark:{[Pe.variable]:"colors.gray.800",[qe.variable]:`colors.${t}.300`}},color:Pe.reference,bg:qe.reference}}}),Dx=it({}),Ix={line:Ex,enclosed:Mx,"enclosed-colored":jx,"soft-rounded":zx,"solid-rounded":Bx,unstyled:Dx},Vx=Cx({baseStyle:_x,sizes:Rx,variants:Ix,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Fx,definePartsStyle:Ht}=ee(Rg.keys),Vl=B("tag-bg"),Fl=B("tag-color"),Ei=B("tag-shadow"),Yr=B("tag-min-height"),Zr=B("tag-min-width"),Jr=B("tag-font-size"),Qr=B("tag-padding-inline"),Lx={fontWeight:"medium",lineHeight:1.2,outline:0,[Fl.variable]:se.color.reference,[Vl.variable]:se.bg.reference,[Ei.variable]:se.shadow.reference,color:Fl.reference,bg:Vl.reference,boxShadow:Ei.reference,borderRadius:"md",minH:Yr.reference,minW:Zr.reference,fontSize:Jr.reference,px:Qr.reference,_focusVisible:{[Ei.variable]:"shadows.outline"}},Ox={lineHeight:1.2,overflow:"visible"},Wx={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}},Nx=Ht({container:Lx,label:Ox,closeButton:Wx}),Hx={sm:Ht({container:{[Yr.variable]:"sizes.5",[Zr.variable]:"sizes.5",[Jr.variable]:"fontSizes.xs",[Qr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ht({container:{[Yr.variable]:"sizes.6",[Zr.variable]:"sizes.6",[Jr.variable]:"fontSizes.sm",[Qr.variable]:"space.2"}}),lg:Ht({container:{[Yr.variable]:"sizes.8",[Zr.variable]:"sizes.8",[Jr.variable]:"fontSizes.md",[Qr.variable]:"space.3"}})},Ux={subtle:Ht(e=>({container:Hn.variants?.subtle(e)})),solid:Ht(e=>({container:Hn.variants?.solid(e)})),outline:Ht(e=>({container:Hn.variants?.outline(e)}))},Gx=Fx({variants:Ux,baseStyle:Nx,sizes:Hx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),qx={...H.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Kx={outline:e=>H.variants?.outline(e).field??{},flushed:e=>H.variants?.flushed(e).field??{},filled:e=>H.variants?.filled(e).field??{},unstyled:H.variants?.unstyled.field??{}},Xx={xs:H.sizes?.xs.field??{},sm:H.sizes?.sm.field??{},md:H.sizes?.md.field??{},lg:H.sizes?.lg.field??{}},Yx={baseStyle:qx,sizes:Xx,variants:Kx,defaultProps:{size:"md",variant:"outline"}},jr=pe("tooltip-bg"),Mi=pe("tooltip-fg"),Zx=pe("popper-arrow-bg"),Jx={bg:jr.reference,color:Mi.reference,[jr.variable]:"colors.gray.700",[Mi.variable]:"colors.whiteAlpha.900",_dark:{[jr.variable]:"colors.gray.300",[Mi.variable]:"colors.gray.900"},[Zx.variable]:jr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Qx={baseStyle:Jx},eS={Accordion:Fg,Alert:wy,Avatar:jy,Badge:Hn,Breadcrumb:Ny,Button:Jy,Checkbox:bo,CloseButton:hb,Code:yb,Container:vb,Divider:Cb,Drawer:Bb,Editable:Wb,Form:Kb,FormError:e0,FormLabel:n0,Heading:i0,Input:H,Kbd:m0,Link:y0,List:w0,Menu:j0,Modal:H0,NumberInput:Q0,PinInput:rv,Popover:pv,Progress:wv,Radio:Av,Select:zv,Skeleton:Dv,SkipLink:Vv,Slider:Xv,Spinner:Jv,Stat:sx,Switch:gx,Table:kx,Tabs:Vx,Tag:Gx,Textarea:Yx,Tooltip:Qx,Card:rb,Stepper:cx},tS={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},nS={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},rS={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"}},oS={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},iS={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"},sS={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"},aS={"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)"},lS={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},cS={property:sS,easing:aS,duration:lS},uS={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},dS={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},fS={breakpoints:nS,zIndices:uS,radii:oS,blur:dS,colors:rS,...Ou,sizes:Bu,shadows:iS,space:zu,borders:tS,transition:cS},hS={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"}}},pS={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"}}},mS="ltr",gS={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yS={semanticTokens:hS,direction:mS,...fS,components:eS,styles:pS,config:gS};function bS(e){if(e.sheet)return e.sheet;for(var t=0;t0?ye(Sn,--Ae):0,yn--,le===10&&(yn=1,Io--),le}function Re(){return le=Ae2||or(le)>3?"":" "}function ES(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return dr(e,eo()+(t<6&&st()==32&&Re()==32))}function hs(e){for(;Re();)switch(le){case e:return Ae;case 34:case 39:e!==34&&e!==39&&hs(le);break;case 40:e===41&&hs(e);break;case 92:Re();break}return Ae}function MS(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&st()===47)break;return"/*"+dr(t,Ae-1)+"*"+Do(e===47?e:Re())}function jS(e){for(;!or(st());)Re();return dr(e,Ae)}function zS(e){return Yu(no("",null,null,null,[""],e=Xu(e),0,[0],e))}function no(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,y=0,g=1,S=1,w=1,C=0,T="",P=o,R=i,_=r,A=T;S;)switch(y=C,C=Re()){case 40:if(y!=108&&ye(A,d-1)==58){fs(A+=N(to(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:A+=to(C);break;case 9:case 10:case 13:case 32:A+=RS(y);break;case 92:A+=ES(eo()-1,7);continue;case 47:switch(st()){case 42:case 47:zr(BS(MS(Re(),eo()),t,n),l);break;default:A+="/"}break;case 123*g:a[c++]=et(A)*w;case 125*g:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+u:w==-1&&(A=N(A,/\f/g,"")),m>0&&et(A)-d&&zr(m>32?Ol(A+";",r,n,d-1):Ol(N(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(zr(_=Ll(A,t,n,c,u,o,a,T,P=[],R=[],d),i),C===123)if(u===0)no(A,t,_,_,P,i,d,a,R);else switch(h===99&&ye(A,3)===110?100:h){case 100:case 108:case 109:case 115:no(e,_,_,r&&zr(Ll(e,_,_,0,0,o,a,T,o,P=[],d),R),o,R,d,a,r?P:R);break;default:no(A,_,_,_,[""],R,0,a,R)}}c=u=m=0,g=w=1,T=A="",d=s;break;case 58:d=1+et(A),m=y;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&_S()==125)continue}switch(A+=Do(C),C*g){case 38:w=u>0?1:(A+="\f",-1);break;case 44:a[c++]=(et(A)-1)*w,w=1;break;case 64:st()===45&&(A+=to(Re())),h=st(),u=d=et(T=A+=jS(eo())),C++;break;case 45:y===45&&et(A)==2&&(g=0)}}return i}function Ll(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],m=ta(h),y=0,g=0,S=0;y0?h[w]+" "+C:N(C,/&\f/g,h[w])))&&(l[S++]=T);return Vo(e,t,n,o===0?Qs:a,l,c,u)}function BS(e,t,n){return Vo(e,t,n,Uu,Do($S()),rr(e,2,-2),0)}function Ol(e,t,n,r){return Vo(e,t,n,ea,rr(e,0,r),rr(e,r+1,-1),r)}function pn(e,t){for(var n="",r=ta(e),o=0;o6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+xo+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fs(e,"stretch")?Ju(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,et(e)-3-(~fs(e,"!important")&&10))){case 107:return N(e,":",":"+W)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ye(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+xe+e+e}return e}var HS=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ea:t.return=Ju(t.value,t.length);break;case Gu:return pn([jn(t,{value:N(t.value,"@","@"+W)})],o);case Qs:if(t.length)return AS(t.props,function(i){switch(PS(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([jn(t,{props:[N(i,/:(read-\w+)/,":"+xo+"$1")]})],o);case"::placeholder":return pn([jn(t,{props:[N(i,/:(plac\w+)/,":"+W+"input-$1")]}),jn(t,{props:[N(i,/:(plac\w+)/,":"+xo+"$1")]}),jn(t,{props:[N(i,/:(plac\w+)/,xe+"input-$1")]})],o)}return""})}},US=[HS],GS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||US,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),w=1;w({bg:z("gray.100","whiteAlpha.300")(e)}),vv=e=>({transitionProperty:"common",transitionDuration:"slow",...gv(e)}),xv=In(e=>({label:yv,filledTrack:vv(e),track:bv(e)})),Sv={xs:In({track:{h:"1"}}),sm:In({track:{h:"2"}}),md:In({track:{h:"3"}}),lg:In({track:{h:"4"}})},wv=mv({sizes:Sv,baseStyle:xv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kv,definePartsStyle:Kr}=ee(kg.keys),Cv=e=>{const t=Ce(bo.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"}}}},Tv=Kr(e=>({label:bo.baseStyle?.(e).label,container:bo.baseStyle?.(e).container,control:Cv(e)})),Pv={md:Kr({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Kr({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Kr({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Av=kv({baseStyle:Tv,sizes:Pv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$v,definePartsStyle:_v}=ee(Cg.keys),Rr=B("select-bg"),Rv={...H.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Rr.reference,[Rr.variable]:"colors.white",_dark:{[Rr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Rr.reference}},Ev={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Mv=_v({field:Rv,icon:Ev}),Er={paddingInlineEnd:"8"},jv={lg:{...H.sizes?.lg,field:{...H.sizes?.lg.field,...Er}},md:{...H.sizes?.md,field:{...H.sizes?.md.field,...Er}},sm:{...H.sizes?.sm,field:{...H.sizes?.sm.field,...Er}},xs:{...H.sizes?.xs,field:{...H.sizes?.xs.field,...Er},icon:{insetEnd:"1"}}},zv=$v({baseStyle:Mv,sizes:jv,variants:H.variants,defaultProps:H.defaultProps}),Ai=B("skeleton-start-color"),$i=B("skeleton-end-color"),Bv={[Ai.variable]:"colors.gray.100",[$i.variable]:"colors.gray.400",_dark:{[Ai.variable]:"colors.gray.800",[$i.variable]:"colors.gray.600"},background:Ai.reference,borderColor:$i.reference,opacity:.7,borderRadius:"sm"},Dv={baseStyle:Bv},_i=B("skip-link-bg"),Iv={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[_i.variable]:"colors.white",_dark:{[_i.variable]:"colors.gray.700"},bg:_i.reference}},Vv={baseStyle:Iv},{defineMultiStyleConfig:Fv,definePartsStyle:Bo}=ee(Tg.keys),qt=B("slider-thumb-size"),nr=B("slider-track-size"),Pt=B("slider-bg"),Lv=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Xs({orientation:t,vertical:{h:"100%",px:pt(qt.reference).divide(2).toString()},horizontal:{w:"100%",py:pt(qt.reference).divide(2).toString()}})}},Ov=e=>({...Xs({orientation:e.orientation,horizontal:{h:nr.reference},vertical:{w:nr.reference}}),overflow:"hidden",borderRadius:"sm",[Pt.variable]:"colors.gray.200",_dark:{[Pt.variable]:"colors.whiteAlpha.200"},_disabled:{[Pt.variable]:"colors.gray.300",_dark:{[Pt.variable]:"colors.whiteAlpha.300"}},bg:Pt.reference}),Wv=e=>{const{orientation:t}=e;return{...Xs({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:qt.reference,h:qt.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"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},Nv=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Pt.variable]:`colors.${t}.500`,_dark:{[Pt.variable]:`colors.${t}.200`},bg:Pt.reference}},Hv=Bo(e=>({container:Lv(e),track:Ov(e),thumb:Wv(e),filledTrack:Nv(e)})),Uv=Bo({container:{[qt.variable]:"sizes.4",[nr.variable]:"sizes.1"}}),Gv=Bo({container:{[qt.variable]:"sizes.3.5",[nr.variable]:"sizes.1"}}),qv=Bo({container:{[qt.variable]:"sizes.2.5",[nr.variable]:"sizes.0.5"}}),Kv={lg:Uv,md:Gv,sm:qv},Xv=Fv({baseStyle:Hv,sizes:Kv,defaultProps:{size:"md",colorScheme:"blue"}}),Vt=pe("spinner-size"),Yv={width:[Vt.reference],height:[Vt.reference]},Zv={xs:{[Vt.variable]:"sizes.3"},sm:{[Vt.variable]:"sizes.4"},md:{[Vt.variable]:"sizes.6"},lg:{[Vt.variable]:"sizes.8"},xl:{[Vt.variable]:"sizes.12"}},Jv={baseStyle:Yv,sizes:Zv,defaultProps:{size:"md"}},{defineMultiStyleConfig:Qv,definePartsStyle:Uu}=ee(Pg.keys),ex={fontWeight:"medium"},tx={opacity:.8,marginBottom:"2"},nx={verticalAlign:"baseline",fontWeight:"semibold"},rx={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},ox=Uu({container:{},label:ex,helpText:tx,number:nx,icon:rx}),ix={md:Uu({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},sx=Qv({baseStyle:ox,sizes:ix,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ax,definePartsStyle:Vn}=ee(["stepper","step","title","description","indicator","separator","icon","number"]),gt=B("stepper-indicator-size"),on=B("stepper-icon-size"),sn=B("stepper-title-font-size"),Fn=B("stepper-description-font-size"),En=B("stepper-accent-color"),lx=Vn(({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"},[En.variable]:`colors.${e}.500`,_dark:{[En.variable]:`colors.${e}.200`}},title:{fontSize:sn.reference,fontWeight:"medium"},description:{fontSize:Fn.reference,color:"chakra-subtle-text"},number:{fontSize:sn.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:on.reference,height:on.reference},indicator:{flexShrink:0,borderRadius:"full",width:gt.reference,height:gt.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:En.reference},"&[data-status=complete]":{bg:En.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:En.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${gt.reference} - 8px)`,top:`calc(${gt.reference} + 4px)`,insetStart:`calc(${gt.reference} / 2 - 1px)`}}})),cx=ax({baseStyle:lx,sizes:{xs:Vn({stepper:{[gt.variable]:"sizes.4",[on.variable]:"sizes.3",[sn.variable]:"fontSizes.xs",[Fn.variable]:"fontSizes.xs"}}),sm:Vn({stepper:{[gt.variable]:"sizes.6",[on.variable]:"sizes.4",[sn.variable]:"fontSizes.sm",[Fn.variable]:"fontSizes.xs"}}),md:Vn({stepper:{[gt.variable]:"sizes.8",[on.variable]:"sizes.5",[sn.variable]:"fontSizes.md",[Fn.variable]:"fontSizes.sm"}}),lg:Vn({stepper:{[gt.variable]:"sizes.10",[on.variable]:"sizes.6",[sn.variable]:"fontSizes.lg",[Fn.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ux,definePartsStyle:Xr}=ee(Ag.keys),qn=pe("switch-track-width"),Nt=pe("switch-track-height"),Ri=pe("switch-track-diff"),dx=mt.subtract(qn,Nt),ds=pe("switch-thumb-x"),Mn=pe("switch-bg"),fx=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[qn.reference],height:[Nt.reference],transitionProperty:"common",transitionDuration:"fast",[Mn.variable]:"colors.gray.300",_dark:{[Mn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Mn.variable]:`colors.${t}.500`,_dark:{[Mn.variable]:`colors.${t}.200`}},bg:Mn.reference}},hx={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Nt.reference],height:[Nt.reference],_checked:{transform:`translateX(${ds.reference})`}},px=Xr(e=>({container:{[Ri.variable]:dx,[ds.variable]:Ri.reference,_rtl:{[ds.variable]:mt(Ri).negate().toString()}},track:fx(e),thumb:hx})),mx={sm:Xr({container:{[qn.variable]:"1.375rem",[Nt.variable]:"sizes.3"}}),md:Xr({container:{[qn.variable]:"1.875rem",[Nt.variable]:"sizes.4"}}),lg:Xr({container:{[qn.variable]:"2.875rem",[Nt.variable]:"sizes.6"}})},gx=ux({baseStyle:px,sizes:mx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yx,definePartsStyle:hn}=ee($g.keys),bx=hn({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"}}),vo={"&[data-is-numeric=true]":{textAlign:"end"}},vx=hn(e=>{const{colorScheme:t}=e;return{th:{color:z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},td:{borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},caption:{color:z("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xx=hn(e=>{const{colorScheme:t}=e;return{th:{color:z("gray.600","gray.400")(e),borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},td:{borderBottom:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e),...vo},caption:{color:z("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:z(`${t}.100`,`${t}.700`)(e)},td:{background:z(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Sx={simple:vx,striped:xx,unstyled:{}},wx={sm:hn({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:hn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:hn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},kx=yx({baseStyle:bx,variants:Sx,sizes:wx,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Pe=B("tabs-color"),qe=B("tabs-bg"),Mr=B("tabs-border-color"),{defineMultiStyleConfig:Cx,definePartsStyle:it}=ee(_g.keys),Tx=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Px=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}}},Ax=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},$x={p:4},_x=it(e=>({root:Tx(e),tab:Px(e),tablist:Ax(e),tabpanel:$x})),Rx={sm:it({tab:{py:1,px:4,fontSize:"sm"}}),md:it({tab:{fontSize:"md",py:2,px:4}}),lg:it({tab:{fontSize:"lg",py:3,px:4}})},Ex=it(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Pe.variable]:`colors.${t}.600`,_dark:{[Pe.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[qe.variable]:"colors.gray.200",_dark:{[qe.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Pe.reference,bg:qe.reference}}}),Mx=it(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Mr.variable]:"transparent",_selected:{[Pe.variable]:`colors.${t}.600`,[Mr.variable]:"colors.white",_dark:{[Pe.variable]:`colors.${t}.300`,[Mr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Mr.reference},color:Pe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jx=it(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[qe.variable]:"colors.gray.50",_dark:{[qe.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[qe.variable]:"colors.white",[Pe.variable]:`colors.${t}.600`,_dark:{[qe.variable]:"colors.gray.800",[Pe.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Pe.reference,bg:qe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zx=it(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Se(n,`${t}.700`),bg:Se(n,`${t}.100`)}}}}),Bx=it(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Pe.variable]:"colors.gray.600",_dark:{[Pe.variable]:"inherit"},_selected:{[Pe.variable]:"colors.white",[qe.variable]:`colors.${t}.600`,_dark:{[Pe.variable]:"colors.gray.800",[qe.variable]:`colors.${t}.300`}},color:Pe.reference,bg:qe.reference}}}),Dx=it({}),Ix={line:Ex,enclosed:Mx,"enclosed-colored":jx,"soft-rounded":zx,"solid-rounded":Bx,unstyled:Dx},Vx=Cx({baseStyle:_x,sizes:Rx,variants:Ix,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Fx,definePartsStyle:Ht}=ee(Rg.keys),Fl=B("tag-bg"),Ll=B("tag-color"),Ei=B("tag-shadow"),Yr=B("tag-min-height"),Zr=B("tag-min-width"),Jr=B("tag-font-size"),Qr=B("tag-padding-inline"),Lx={fontWeight:"medium",lineHeight:1.2,outline:0,[Ll.variable]:se.color.reference,[Fl.variable]:se.bg.reference,[Ei.variable]:se.shadow.reference,color:Ll.reference,bg:Fl.reference,boxShadow:Ei.reference,borderRadius:"md",minH:Yr.reference,minW:Zr.reference,fontSize:Jr.reference,px:Qr.reference,_focusVisible:{[Ei.variable]:"shadows.outline"}},Ox={lineHeight:1.2,overflow:"visible"},Wx={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}},Nx=Ht({container:Lx,label:Ox,closeButton:Wx}),Hx={sm:Ht({container:{[Yr.variable]:"sizes.5",[Zr.variable]:"sizes.5",[Jr.variable]:"fontSizes.xs",[Qr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ht({container:{[Yr.variable]:"sizes.6",[Zr.variable]:"sizes.6",[Jr.variable]:"fontSizes.sm",[Qr.variable]:"space.2"}}),lg:Ht({container:{[Yr.variable]:"sizes.8",[Zr.variable]:"sizes.8",[Jr.variable]:"fontSizes.md",[Qr.variable]:"space.3"}})},Ux={subtle:Ht(e=>({container:Hn.variants?.subtle(e)})),solid:Ht(e=>({container:Hn.variants?.solid(e)})),outline:Ht(e=>({container:Hn.variants?.outline(e)}))},Gx=Fx({variants:Ux,baseStyle:Nx,sizes:Hx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),qx={...H.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Kx={outline:e=>H.variants?.outline(e).field??{},flushed:e=>H.variants?.flushed(e).field??{},filled:e=>H.variants?.filled(e).field??{},unstyled:H.variants?.unstyled.field??{}},Xx={xs:H.sizes?.xs.field??{},sm:H.sizes?.sm.field??{},md:H.sizes?.md.field??{},lg:H.sizes?.lg.field??{}},Yx={baseStyle:qx,sizes:Xx,variants:Kx,defaultProps:{size:"md",variant:"outline"}},jr=pe("tooltip-bg"),Mi=pe("tooltip-fg"),Zx=pe("popper-arrow-bg"),Jx={bg:jr.reference,color:Mi.reference,[jr.variable]:"colors.gray.700",[Mi.variable]:"colors.whiteAlpha.900",_dark:{[jr.variable]:"colors.gray.300",[Mi.variable]:"colors.gray.900"},[Zx.variable]:jr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Qx={baseStyle:Jx},eS={Accordion:Fg,Alert:wy,Avatar:jy,Badge:Hn,Breadcrumb:Ny,Button:Jy,Checkbox:bo,CloseButton:hb,Code:yb,Container:vb,Divider:Cb,Drawer:Bb,Editable:Wb,Form:Kb,FormError:e0,FormLabel:n0,Heading:i0,Input:H,Kbd:m0,Link:y0,List:w0,Menu:j0,Modal:H0,NumberInput:Q0,PinInput:rv,Popover:pv,Progress:wv,Radio:Av,Select:zv,Skeleton:Dv,SkipLink:Vv,Slider:Xv,Spinner:Jv,Stat:sx,Switch:gx,Table:kx,Tabs:Vx,Tag:Gx,Textarea:Yx,Tooltip:Qx,Card:rb,Stepper:cx},tS={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},nS={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},rS={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"}},oS={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},iS={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"},sS={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"},aS={"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)"},lS={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},cS={property:sS,easing:aS,duration:lS},uS={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},dS={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},fS={breakpoints:nS,zIndices:uS,radii:oS,blur:dS,colors:rS,...Wu,sizes:Du,shadows:iS,space:Bu,borders:tS,transition:cS},hS={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"}}},pS={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"}}},mS="ltr",gS={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yS={semanticTokens:hS,direction:mS,...fS,components:eS,styles:pS,config:gS};function bS(e){if(e.sheet)return e.sheet;for(var t=0;t0?ye(Sn,--Ae):0,yn--,le===10&&(yn=1,Io--),le}function Re(){return le=Ae2||or(le)>3?"":" "}function ES(e,t){for(;--t&&Re()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return dr(e,eo()+(t<6&&st()==32&&Re()==32))}function hs(e){for(;Re();)switch(le){case e:return Ae;case 34:case 39:e!==34&&e!==39&&hs(le);break;case 40:e===41&&hs(e);break;case 92:Re();break}return Ae}function MS(e,t){for(;Re()&&e+le!==57;)if(e+le===84&&st()===47)break;return"/*"+dr(t,Ae-1)+"*"+Do(e===47?e:Re())}function jS(e){for(;!or(st());)Re();return dr(e,Ae)}function zS(e){return Zu(no("",null,null,null,[""],e=Yu(e),0,[0],e))}function no(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,y=0,g=1,S=1,w=1,C=0,T="",P=o,R=i,_=r,A=T;S;)switch(y=C,C=Re()){case 40:if(y!=108&&ye(A,d-1)==58){fs(A+=N(to(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:A+=to(C);break;case 9:case 10:case 13:case 32:A+=RS(y);break;case 92:A+=ES(eo()-1,7);continue;case 47:switch(st()){case 42:case 47:zr(BS(MS(Re(),eo()),t,n),l);break;default:A+="/"}break;case 123*g:a[c++]=et(A)*w;case 125*g:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+u:w==-1&&(A=N(A,/\f/g,"")),m>0&&et(A)-d&&zr(m>32?Wl(A+";",r,n,d-1):Wl(N(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(zr(_=Ol(A,t,n,c,u,o,a,T,P=[],R=[],d),i),C===123)if(u===0)no(A,t,_,_,P,i,d,a,R);else switch(h===99&&ye(A,3)===110?100:h){case 100:case 108:case 109:case 115:no(e,_,_,r&&zr(Ol(e,_,_,0,0,o,a,T,o,P=[],d),R),o,R,d,a,r?P:R);break;default:no(A,_,_,_,[""],R,0,a,R)}}c=u=m=0,g=w=1,T=A="",d=s;break;case 58:d=1+et(A),m=y;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&_S()==125)continue}switch(A+=Do(C),C*g){case 38:w=u>0?1:(A+="\f",-1);break;case 44:a[c++]=(et(A)-1)*w,w=1;break;case 64:st()===45&&(A+=to(Re())),h=st(),u=d=et(T=A+=jS(eo())),C++;break;case 45:y===45&&et(A)==2&&(g=0)}}return i}function Ol(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],m=ta(h),y=0,g=0,S=0;y0?h[w]+" "+C:N(C,/&\f/g,h[w])))&&(l[S++]=T);return Vo(e,t,n,o===0?Qs:a,l,c,u)}function BS(e,t,n){return Vo(e,t,n,Gu,Do($S()),rr(e,2,-2),0)}function Wl(e,t,n,r){return Vo(e,t,n,ea,rr(e,0,r),rr(e,r+1,-1),r)}function pn(e,t){for(var n="",r=ta(e),o=0;o6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+xo+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fs(e,"stretch")?Qu(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,et(e)-3-(~fs(e,"!important")&&10))){case 107:return N(e,":",":"+W)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ye(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+xe+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+xe+e+e}return e}var HS=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ea:t.return=Qu(t.value,t.length);break;case qu:return pn([jn(t,{value:N(t.value,"@","@"+W)})],o);case Qs:if(t.length)return AS(t.props,function(i){switch(PS(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([jn(t,{props:[N(i,/:(read-\w+)/,":"+xo+"$1")]})],o);case"::placeholder":return pn([jn(t,{props:[N(i,/:(plac\w+)/,":"+W+"input-$1")]}),jn(t,{props:[N(i,/:(plac\w+)/,":"+xo+"$1")]}),jn(t,{props:[N(i,/:(plac\w+)/,xe+"input-$1")]})],o)}return""})}},US=[HS],GS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||US,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),w=1;w=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 r1={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},o1=/[A-Z]|^ms/g,i1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,od=function(t){return t.charCodeAt(1)===45},Hl=function(t){return t!=null&&typeof t!="boolean"},ji=Zu(function(e){return od(e)?e:e.replace(o1,"-$&").toLowerCase()}),Ul=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(i1,function(r,o,i){return tt={name:o,styles:i,next:tt},o})}return r1[t]!==1&&!od(t)&&typeof n=="number"&&n!==0?n+"px":n};function ir(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return tt={name:o.name,styles:o.styles,next:tt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)tt={name:s.name,styles:s.styles,next:tt},s=s.next;var a=i.styles+";";return a}return s1(e,t,n)}case"function":{if(e!==void 0){var l=tt,c=n(e);return tt=l,ir(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function s1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i?.()},setClassName(o){document.body.classList.add(o?Br.dark:Br.light),document.body.classList.remove(o?Br.light:Br.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.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}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const v1="chakra-ui-color-mode";function x1(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const S1=x1(v1),Xl=()=>{},w1=zp()?v.useLayoutEffect:v.useEffect;function Yl(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const ad=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:s}={},colorModeManager:a=S1}=t,l=l1(),c=i==="dark"?"dark":"light",[u,d]=v.useState(()=>Yl(a,c)),[h,m]=v.useState(()=>Yl(a)),{getSystemTheme:y,setClassName:g,setDataset:S,addListener:w}=v.useMemo(()=>b1({preventTransition:s,nonce:l?.nonce}),[s,l?.nonce]),C=i==="system"&&!u?h:u,T=v.useCallback(_=>{const A=_==="system"?y():_;d(A),g(A==="dark"),S(A),a.set(A)},[a,y,g,S]);w1(()=>{i==="system"&&m(y())},[]),v.useEffect(()=>{const _=a.get();if(_){T(_);return}if(i==="system"){T("system");return}T(c)},[a,c,i,T]);const P=v.useCallback(()=>{T(C==="dark"?"light":"dark")},[C,T]);v.useEffect(()=>{if(o)return w(T)},[o,w,T]);const R=v.useMemo(()=>({colorMode:n??C,toggleColorMode:n?Xl:P,setColorMode:n?Xl:T,forced:n!==void 0}),[C,P,T,n]);return p.jsx(ua.Provider,{value:R,children:r})};ad.displayName="ColorModeProvider";const ld=String.raw,cd=ld` + */var me=typeof Symbol=="function"&&Symbol.for,na=me?Symbol.for("react.element"):60103,ra=me?Symbol.for("react.portal"):60106,Fo=me?Symbol.for("react.fragment"):60107,Lo=me?Symbol.for("react.strict_mode"):60108,Oo=me?Symbol.for("react.profiler"):60114,Wo=me?Symbol.for("react.provider"):60109,No=me?Symbol.for("react.context"):60110,oa=me?Symbol.for("react.async_mode"):60111,Ho=me?Symbol.for("react.concurrent_mode"):60111,Uo=me?Symbol.for("react.forward_ref"):60112,Go=me?Symbol.for("react.suspense"):60113,qS=me?Symbol.for("react.suspense_list"):60120,qo=me?Symbol.for("react.memo"):60115,Ko=me?Symbol.for("react.lazy"):60116,KS=me?Symbol.for("react.block"):60121,XS=me?Symbol.for("react.fundamental"):60117,YS=me?Symbol.for("react.responder"):60118,ZS=me?Symbol.for("react.scope"):60119;function Me(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case na:switch(e=e.type,e){case oa:case Ho:case Fo:case Oo:case Lo:case Go:return e;default:switch(e=e&&e.$$typeof,e){case No:case Uo:case Ko:case qo:case Wo:return e;default:return t}}case ra:return t}}}function td(e){return Me(e)===Ho}K.AsyncMode=oa;K.ConcurrentMode=Ho;K.ContextConsumer=No;K.ContextProvider=Wo;K.Element=na;K.ForwardRef=Uo;K.Fragment=Fo;K.Lazy=Ko;K.Memo=qo;K.Portal=ra;K.Profiler=Oo;K.StrictMode=Lo;K.Suspense=Go;K.isAsyncMode=function(e){return td(e)||Me(e)===oa};K.isConcurrentMode=td;K.isContextConsumer=function(e){return Me(e)===No};K.isContextProvider=function(e){return Me(e)===Wo};K.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===na};K.isForwardRef=function(e){return Me(e)===Uo};K.isFragment=function(e){return Me(e)===Fo};K.isLazy=function(e){return Me(e)===Ko};K.isMemo=function(e){return Me(e)===qo};K.isPortal=function(e){return Me(e)===ra};K.isProfiler=function(e){return Me(e)===Oo};K.isStrictMode=function(e){return Me(e)===Lo};K.isSuspense=function(e){return Me(e)===Go};K.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fo||e===Ho||e===Oo||e===Lo||e===Go||e===qS||typeof e=="object"&&e!==null&&(e.$$typeof===Ko||e.$$typeof===qo||e.$$typeof===Wo||e.$$typeof===No||e.$$typeof===Uo||e.$$typeof===XS||e.$$typeof===YS||e.$$typeof===ZS||e.$$typeof===KS)};K.typeOf=Me;ed.exports=K;var JS=ed.exports,nd=JS,QS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rd={};rd[nd.ForwardRef]=QS;rd[nd.Memo]=e1;var t1=!0;function od(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ia=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||t1===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},sa=function(t,n,r){ia(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function n1(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 r1={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},o1=/[A-Z]|^ms/g,i1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,id=function(t){return t.charCodeAt(1)===45},Ul=function(t){return t!=null&&typeof t!="boolean"},ji=Ju(function(e){return id(e)?e:e.replace(o1,"-$&").toLowerCase()}),Gl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(i1,function(r,o,i){return tt={name:o,styles:i,next:tt},o})}return r1[t]!==1&&!id(t)&&typeof n=="number"&&n!==0?n+"px":n};function ir(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return tt={name:o.name,styles:o.styles,next:tt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)tt={name:s.name,styles:s.styles,next:tt},s=s.next;var a=i.styles+";";return a}return s1(e,t,n)}case"function":{if(e!==void 0){var l=tt,c=n(e);return tt=l,ir(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function s1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i?.()},setClassName(o){document.body.classList.add(o?Br.dark:Br.light),document.body.classList.remove(o?Br.light:Br.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.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}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const v1="chakra-ui-color-mode";function x1(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const S1=x1(v1),Yl=()=>{},w1=zp()?v.useLayoutEffect:v.useEffect;function Zl(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const ld=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:s}={},colorModeManager:a=S1}=t,l=l1(),c=i==="dark"?"dark":"light",[u,d]=v.useState(()=>Zl(a,c)),[h,m]=v.useState(()=>Zl(a)),{getSystemTheme:y,setClassName:g,setDataset:S,addListener:w}=v.useMemo(()=>b1({preventTransition:s,nonce:l?.nonce}),[s,l?.nonce]),C=i==="system"&&!u?h:u,T=v.useCallback(_=>{const A=_==="system"?y():_;d(A),g(A==="dark"),S(A),a.set(A)},[a,y,g,S]);w1(()=>{i==="system"&&m(y())},[]),v.useEffect(()=>{const _=a.get();if(_){T(_);return}if(i==="system"){T("system");return}T(c)},[a,c,i,T]);const P=v.useCallback(()=>{T(C==="dark"?"light":"dark")},[C,T]);v.useEffect(()=>{if(o)return w(T)},[o,w,T]);const R=v.useMemo(()=>({colorMode:n??C,toggleColorMode:n?Yl:P,setColorMode:n?Yl:T,forced:n!==void 0}),[C,P,T,n]);return p.jsx(ua.Provider,{value:R,children:r})};ld.displayName="ColorModeProvider";const cd=String.raw,ud=cd` :root, :host { --chakra-vh: 100vh; @@ -45,7 +45,7 @@ import{r as v,g as xu,c as Pr,R as yl,j as p,a as Su,b as wu,d as Ve,e as Qi,D a --chakra-vh: 100dvh; } } -`,k1=()=>p.jsx(Yo,{styles:cd}),C1=({scope:e=""})=>p.jsx(Yo,{styles:ld` +`,k1=()=>p.jsx(Yo,{styles:ud}),C1=({scope:e=""})=>p.jsx(Yo,{styles:cd` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -297,8 +297,8 @@ import{r as v,g as xu,c as Pr,R as yl,j as p,a as Su,b as wu,d as Ve,e as Qi,D a display: none; } - ${cd} - `});function T1(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=v.useMemo(()=>sg(n),[n]);return p.jsxs(d1,{theme:o,children:[p.jsx(P1,{root:t}),r]})}function P1({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return p.jsx(Yo,{styles:n=>({[t]:n.__cssVars})})}xt({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function A1(){const{colorMode:e}=da();return p.jsx(Yo,{styles:t=>{const n=Tu(t,"styles.global"),r=rt(n,{theme:t,colorMode:e});return r?Ru(r)(t):void 0}})}const[$1,_1]=xt({strict:!1,name:"PortalManagerContext"});function ud(e){const{children:t,zIndex:n}=e;return p.jsx($1,{value:{zIndex:n},children:t})}ud.displayName="PortalManager";const dd=v.createContext({getDocument(){return document},getWindow(){return window}});dd.displayName="EnvironmentContext";function fd(e){const{children:t,environment:n,disabled:r}=e,o=v.useRef(null),i=v.useMemo(()=>n||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[n]),s=!r||!n;return p.jsxs(dd.Provider,{value:i,children:[t,s&&p.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}fd.displayName="EnvironmentProvider";const R1=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=p.jsx(fd,{environment:a,disabled:c,children:t});return p.jsx(T1,{theme:s,cssVarsRoot:l,children:p.jsxs(ad,{colorModeManager:n,options:s.config,children:[i?p.jsx(C1,{scope:o}):p.jsx(k1,{}),!u&&p.jsx(A1,{}),r?p.jsx(ud,{zIndex:r,children:d}):d]})})},fa=v.createContext({});function ha(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const E1=typeof window<"u",hd=E1?v.useLayoutEffect:v.useEffect,fr=v.createContext(null);function pa(e,t){e.indexOf(t)===-1&&e.push(t)}function wo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const lt=(e,t,n)=>n>t?t:n{};const $t={},pd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),md=e=>typeof e=="object"&&e!==null,gd=e=>/^0[^.\s]+$/u.test(e);function yd(e){let t;return()=>(t===void 0&&(t=e()),t)}const Le=e=>e,hr=(...e)=>e.reduce((t,n)=>r=>n(t(r))),sr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ga{constructor(){this.subscriptions=[]}add(t){return pa(this.subscriptions,t),()=>wo(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,Ie=e=>e/1e3,bd=(e,t)=>t?e*(1e3/t):0,vd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,M1=1e-7,j1=12;function z1(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=vd(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>M1&&++az1(i,0,1,e,n);return i=>i===0||i===1?i:vd(o(i),t,r)}const xd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sd=e=>t=>1-e(1-t),wd=pr(.33,1.53,.69,.99),ya=Sd(wd),kd=xd(ya),Cd=e=>e>=1?1:(e*=2)<1?.5*ya(e):.5*(2-Math.pow(2,-10*(e-1))),ba=e=>1-Math.sin(Math.acos(e)),Td=Sd(ba),Pd=xd(ba),B1=pr(.42,0,1,1),D1=pr(0,0,.58,1),Ad=pr(.42,0,.58,1),I1=e=>Array.isArray(e)&&typeof e[0]!="number",$d=e=>Array.isArray(e)&&typeof e[0]=="number",V1={linear:Le,easeIn:B1,easeInOut:Ad,easeOut:D1,circIn:ba,circInOut:Pd,circOut:Td,backIn:ya,backInOut:kd,backOut:wd,anticipate:Cd},F1=e=>typeof e=="string",Zl=e=>{if($d(e)){ma(e.length===4);const[t,n,r,o]=e;return pr(t,n,r,o)}else if(F1(e))return V1[e];return e},Dr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function L1(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const y=h&&o?n:r;return d&&s.add(u),y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0;const d=n;n=r,r=d,n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const O1=40;function _d(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Dr.reduce((T,P)=>(T[P]=L1(i),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:m,postRender:y}=s,g=()=>{const T=$t.useManualTiming,P=T?o.timestamp:performance.now();n=!1,T||(o.delta=r?1e3/60:Math.max(Math.min(P-o.timestamp,O1),1)),o.timestamp=P,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),h.process(o),m.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},S=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:Dr.reduce((T,P)=>{const R=s[P];return T[P]=(_,A=!1,$=!1)=>(n||S(),R.schedule(_,A,$)),T},{}),cancel:T=>{for(let P=0;P(ro===void 0&&we.set(ge.isProcessing||$t.useManualTiming?ge.timestamp:performance.now()),ro),set:e=>{ro=e,queueMicrotask(W1)}},Rd=e=>t=>typeof t=="string"&&t.startsWith(e),Ed=Rd("--"),N1=Rd("var(--"),va=e=>N1(e)?H1.test(e.split("/*")[0].trim()):!1,H1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jl(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const wn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ar={...wn,transform:e=>lt(0,1,e)},Ir={...wn,default:1},Kn=e=>Math.round(e*1e5)/1e5,xa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function U1(e){return e==null}const G1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sa=(e,t)=>n=>!!(typeof n=="string"&&G1.test(n)&&n.startsWith(e)||t&&!U1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Md=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(xa);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},q1=e=>lt(0,255,e),Bi={...wn,transform:e=>Math.round(q1(e))},Lt={test:Sa("rgb","red"),parse:Md("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bi.transform(e)+", "+Bi.transform(t)+", "+Bi.transform(n)+", "+Kn(ar.transform(r))+")"};function K1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ms={test:Sa("#"),parse:K1,transform:Lt.transform},mr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ht=mr("deg"),at=mr("%"),E=mr("px"),X1=mr("vh"),Y1=mr("vw"),Ql={...at,parse:e=>at.parse(e)/100,transform:e=>at.transform(e*100)},an={test:Sa("hsl","hue"),parse:Md("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+at.transform(Kn(t))+", "+at.transform(Kn(n))+", "+Kn(ar.transform(r))+")"},ae={test:e=>Lt.test(e)||ms.test(e)||an.test(e),parse:e=>Lt.test(e)?Lt.parse(e):an.test(e)?an.parse(e):ms.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Lt.transform(e):an.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},Z1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function J1(e){return isNaN(e)&&typeof e=="string"&&(e.match(xa)?.length||0)+(e.match(Z1)?.length||0)>0}const jd="number",zd="color",Q1="var",ew="var(",ec="${}",tw=/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 vn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(tw,l=>(ae.test(l)?(r.color.push(i),o.push(zd),n.push(ae.parse(l))):l.startsWith(ew)?(r.var.push(i),o.push(Q1),n.push(l)):(r.number.push(i),o.push(jd),n.push(parseFloat(l))),++i,ec)).split(ec);return{values:n,split:a,indexes:r,types:o}}function nw(e){return vn(e).values}function Bd({split:e,types:t}){const n=e.length;return r=>{let o="";for(let i=0;itypeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e,iw=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ow(e);function sw(e){const t=vn(e);return Bd(t)(t.values.map((r,o)=>iw(r,t.split[o])))}const Ke={test:J1,parse:nw,createTransformer:rw,getAnimatableNone:sw};function Di(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Di(l,a,e+1/3),i=Di(l,a,e),s=Di(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function ko(e,t){return n=>n>0?t:e}const Y=(e,t,n)=>e+(t-e)*n,Ii=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},lw=[ms,Lt,an],cw=e=>lw.find(t=>t.test(e));function tc(e){const t=cw(e);if(!t)return!1;let n=t.parse(e);return t===an&&(n=aw(n)),n}const nc=(e,t)=>{const n=tc(e),r=tc(t);if(!n||!r)return ko(e,t);const o={...n};return i=>(o.red=Ii(n.red,r.red,i),o.green=Ii(n.green,r.green,i),o.blue=Ii(n.blue,r.blue,i),o.alpha=Y(n.alpha,r.alpha,i),Lt.transform(o))},gs=new Set(["none","hidden"]);function uw(e,t){return gs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dw(e,t){return n=>Y(e,t,n)}function wa(e){return typeof e=="number"?dw:typeof e=="string"?va(e)?ko:ae.test(e)?nc:pw:Array.isArray(e)?Dd:typeof e=="object"?ae.test(e)?nc:fw:ko}function Dd(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>wa(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function hw(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o{const n=Ke.createTransformer(t),r=vn(e),o=vn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?gs.has(e)&&!o.values.length||gs.has(t)&&!r.values.length?uw(e,t):hr(Dd(hw(r,o),o.values),n):ko(e,t)};function Id(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):wa(e)(e,t)}const mw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>_t(t),now:()=>ge.isProcessing?ge.timestamp:we.now()}},Vd=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i=Co?1/0:t}function gw(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ka(r),Co);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ie(o)}}const ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ys(e,t){return e*Math.sqrt(1-t*t)}const yw=12;function bw(e,t,n){let r=n;for(let o=1;o{const u=c*s,d=u*e,h=u-n,m=ys(c,s),y=Math.exp(-d);return Vi-h/m*y},i=c=>{const d=c*s*e,h=d*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-d),g=ys(Math.pow(c,2),s);return(-o(c)+Vi>0?-1:1)*((h-m)*y)/g}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Vi+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=bw(o,i,a);if(e=Ee(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const xw=["duration","bounce"],Sw=["stiffness","damping","mass"];function rc(e,t){return t.some(n=>e[n]!==void 0)}function ww(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!rc(e,Sw)&&rc(e,xw))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*lt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ie.mass,stiffness:o,damping:i}}else{const n=vw({...e,velocity:0});t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function To(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:m}=ww({...n,velocity:-Ie(n.velocity||0)}),y=h||0,g=c/(2*Math.sqrt(l*u)),S=s-i,w=Ie(Math.sqrt(l/u)),C=Math.abs(S)<5;r||(r=C?ie.restSpeed.granular:ie.restSpeed.default),o||(o=C?ie.restDelta.granular:ie.restDelta.default);let T,P,R,_,A,$;if(g<1)R=ys(w,g),_=(y+g*w*S)/R,T=j=>{const F=Math.exp(-g*w*j);return s-F*(_*Math.sin(R*j)+S*Math.cos(R*j))},A=g*w*_+S*R,$=g*w*S-_*R,P=j=>Math.exp(-g*w*j)*(A*Math.sin(R*j)+$*Math.cos(R*j));else if(g===1){T=F=>s-Math.exp(-w*F)*(S+(y+w*S)*F);const j=y+w*S;P=F=>Math.exp(-w*F)*(w*j*F-y)}else{const j=w*Math.sqrt(g*g-1);T=je=>{const We=Math.exp(-g*w*je),ze=Math.min(j*je,300);return s-We*((y+g*w*S)*Math.sinh(ze)+j*S*Math.cosh(ze))/j};const F=(y+g*w*S)/j,ue=g*w*F-S*j,Oe=g*w*S-F*j;P=je=>{const We=Math.exp(-g*w*je),ze=Math.min(j*je,300);return We*(ue*Math.sinh(ze)+Oe*Math.cosh(ze))}}const D={calculatedDuration:m&&d||null,velocity:j=>Ee(P(j)),next:j=>{if(!m&&g<1){const ue=Math.exp(-g*w*j),Oe=Math.sin(R*j),je=Math.cos(R*j),We=s-ue*(_*Oe+S*je),ze=Ee(ue*(A*Oe+$*je));return a.done=Math.abs(ze)<=r&&Math.abs(s-We)<=o,a.value=a.done?s:We,a}const F=T(j);if(m)a.done=j>=d;else{const ue=Ee(P(j));a.done=Math.abs(ue)<=r&&Math.abs(s-F)<=o}return a.value=a.done?s:F,a},toString:()=>{const j=Math.min(ka(D),Co),F=Vd(ue=>D.next(j*ue).value,j,30);return j+"ms "+F},toTransition:()=>{}};return D}To.applyToOptions=e=>{const t=gw(e,100,To);return e.ease=t.ease,e.duration=Ee(t.duration),e.type="keyframes",e};const kw=5;function Fd(e,t,n){const r=Math.max(t-kw,0);return bd(n-e(r),t-r)}function bs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},m=$=>a!==void 0&&$l,y=$=>a===void 0?l:l===void 0||Math.abs(a-$)-g*Math.exp(-$/r),T=$=>w+C($),P=$=>{const D=C($),j=T($);h.done=Math.abs(D)<=c,h.value=h.done?w:j};let R,_;const A=$=>{m(h.value)&&(R=$,_=To({keyframes:[h.value,y(h.value)],velocity:Fd(T,$,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:$=>{let D=!1;return!_&&R===void 0&&(D=!0,P($),A($)),R!==void 0&&$>=R?_.next($-R):(!D&&P($),h)}}}function Cw(e,t,n){const r=[],o=n||$t.mix||Id,i=e.length-1;for(let s=0;st[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Cw(t,r,o),l=a.length,c=u=>{if(s&&u1)for(;dc(lt(e[0],e[i-1],u)):c}function Pw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=sr(0,t,r);e.push(Y(n,1,o))}}function Aw(e){const t=[0];return Pw(t,e.length-1),t}function $w(e,t){return e.map(n=>n*t)}function _w(e,t){return e.map(()=>t||Ad).splice(0,e.length-1)}function Xn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=I1(r)?r.map(Zl):Zl(r),i={done:!1,value:t[0]},s=$w(n&&n.length===t.length?n:Aw(t),e),a=Tw(s,t,{ease:Array.isArray(o)?o:_w(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Rw=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Rw),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Ew={decay:bs,inertia:bs,tween:Xn,keyframes:Xn,spring:To};function Ld(e){typeof e.type=="string"&&(e.type=Ew[e.type])}class Ca{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Mw=e=>e/100;class Po extends Ca{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==we.now()&&this.tick(we.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ld(t);const{type:n=Xn,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Xn;l!==Xn&&typeof a[0]!="number"&&(this.mixKeyframes=hr(Mw,Id(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ka(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:m,type:y,onUpdate:g,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(d){const $=Math.min(this.currentTime,o)/a;let D=Math.floor($),j=$%1;!j&&$>=1&&(j=1),j===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(h==="reverse"?(j=1-j,m&&(j-=m/a)):h==="mirror"&&(P=s)),T=lt(0,1,j)*a}let R;C?(this.delayState.value=u[0],R=this.delayState):R=P.next(T),i&&!C&&(R.value=i(R.value));let{done:_}=R;!C&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&y!==bs&&(R.value=Zo(u,this.options,S,this.speed)),g&&g(R.value),A&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return Ie(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(this.currentTime)}set time(t){t=Ee(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Fd(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(we.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Ie(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=mw,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(we.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jw(e){for(let t=1;te*180/Math.PI,vs=e=>{const t=Ot(Math.atan2(e[1],e[0]));return xs(t)},zw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vs,rotateZ:vs,skewX:e=>Ot(Math.atan(e[1])),skewY:e=>Ot(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xs=e=>(e=e%360,e<0&&(e+=360),e),oc=vs,ic=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ic,scaleY:sc,scale:e=>(ic(e)+sc(e))/2,rotateX:e=>xs(Ot(Math.atan2(e[6],e[5]))),rotateY:e=>xs(Ot(Math.atan2(-e[2],e[0]))),rotateZ:oc,rotate:oc,skewX:e=>Ot(Math.atan(e[4])),skewY:e=>Ot(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ss(e){return e.includes("scale")?1:0}function ws(e,t){if(!e||e==="none")return Ss(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Bw,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zw,o=a}if(!o)return Ss(t);const i=r[t],s=o[1].split(",").map(Iw);return typeof i=="function"?i(s):s[i]}const Dw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ws(n,t)};function Iw(e){return parseFloat(e.trim())}const kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cn=new Set([...kn,"pathRotation"]),ac=e=>e===wn||e===E,Vw=new Set(["x","y","z"]),Fw=kn.filter(e=>!Vw.has(e));function Lw(e){const t=[];return Fw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const At={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ws(t,"x"),y:(e,{transform:t})=>ws(t,"y")};At.translateX=At.x;At.translateY=At.y;const Ut=new Set;let ks=!1,Cs=!1,Ts=!1;function Od(){if(Cs){const e=Array.from(Ut).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Lw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Cs=!1,ks=!1,Ut.forEach(e=>e.complete(Ts)),Ut.clear()}function Wd(){Ut.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cs=!0)})}function Ow(){Ts=!0,Wd(),Od(),Ts=!1}class Ta{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ut.add(this),ks||(ks=!0,Z.read(Wd),Z.resolveKeyframes(Od))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}jw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ut.delete(this)}cancel(){this.state==="scheduled"&&(Ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ww=e=>e.startsWith("--");function Nd(e,t,n){Ww(t)?e.style.setProperty(t,n):e.style[t]=n}const Nw={};function Hd(e,t){const n=yd(e);return()=>Nw[t]??n()}const Hw=Hd(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ud=Hd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ln=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ln([0,.65,.55,1]),circOut:Ln([.55,0,1,.45]),backIn:Ln([.31,.01,.66,-.59]),backOut:Ln([.33,1.53,.69,.99])};function Gd(e,t){if(e)return typeof e=="function"?Ud()?Vd(e,t):"ease-out":$d(e)?Ln(e):Array.isArray(e)?e.map(n=>Gd(n,t)||lc.easeOut):lc[e]}function Uw(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Gd(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function qd(e){return typeof e=="function"&&"applyToOptions"in e}function Gw({type:e,...t}){return qd(e)&&Ud()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Kd extends Ca{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,ma(typeof t.type!="string");const c=Gw(t);this.animation=Uw(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Zo(o,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Nd(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ie(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ee(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Hw()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Le):o(this)}}const Xd={anticipate:Cd,backInOut:kd,circInOut:Pd};function qw(e){return e in Xd}function Kw(e){typeof e.ease=="string"&&qw(e.ease)&&(e.ease=Xd[e.ease])}const Fi=10;class Xw extends Kd{constructor(t){Kw(t),Ld(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Po({...s,autoplay:!1}),l=Math.max(Fi,we.now()-this.startTime),c=lt(0,Fi,l-Fi),u=a.sample(l).value,{name:d}=this.options;i&&d&&Nd(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const cc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ke.test(e)||e==="0")&&!e.startsWith("url("));function Yw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function nk(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return tk()&&n&&(Yd.has(n)||ek.has(n)&&Qw(a))&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const rk=40;class ok extends Ca{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},m=u?.KeyframeResolver||Ta;this.keyframeResolver=new m(a,(y,g,S)=>this.onKeyframesResolved(y,g,h,!S),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=we.now();let d=!0;Zw(t,i,s,a)||(d=!1,($t.instantAnimations||!l)&&u?.(Zo(t,r,n)),t[0]=t[t.length-1],Ps(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>rk?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&nk(m),g=m.motionValue?.owner?.current;let S;if(y)try{S=new Xw({...m,element:g})}catch{S=new Po(m)}else S=new Po(m);S.finished.then(()=>{this.notifyFinished()}).catch(Le),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ow()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Zd(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}const uc=30,ik=e=>!isNaN(parseFloat(e));class sk{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=we.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=we.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ik(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ga);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,uc);return bd(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xn(e,t){return new sk(e,t)}function Jd(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Pa(e,t){const n=e?.[t]??e?.default??e;return n!==e?Jd(n,e):n}const ak={type:"spring",stiffness:500,damping:25,restSpeed:10},lk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ck={type:"keyframes",duration:.8},uk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dk=(e,{keyframes:t})=>t.length>2?ck:Cn.has(e)?e.startsWith("scale")?lk(t[1]):ak:uk,fk=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function hk(e){for(const t in e)if(!fk.has(t))return!0;return!1}const Aa=(e,t,n,r={},o,i)=>s=>{const a=Pa(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ee(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};hk(a)||Object.assign(u,dk(e,u)),u.duration&&(u.duration=Ee(u.duration)),u.repeatDelay&&(u.repeatDelay=Ee(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ps(u),u.delay===0&&(d=!0)),($t.instantAnimations||$t.skipAnimations||o?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,Ps(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=Zo(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Po(u):new ok(u)},pk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mk(e){const t=pk.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Qd(e,t,n=1){const[r,o]=mk(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return pd(s)?parseFloat(s):s}return va(o)?Qd(o,t,n+1):o}function dc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $a(e,t,n,r){if(typeof t=="function"){const[o,i]=dc(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=dc(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Gt(e,t,n){const r=e.getProps();return $a(r,t,n!==void 0?n:r.custom,e)}const ef=new Set(["width","height","top","left","right","bottom",...kn]),As=e=>Array.isArray(e);function gk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function yk(e){return As(e)?e[e.length-1]||0:e}function bk(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=yk(i[s]);gk(e,s,a)}}const be=e=>!!(e&&e.getVelocity);function vk(e){return!!(be(e)&&e.add)}function $s(e,t){const n=e.getValue("willChange");if(vk(n))return n.add(t);if(!n&&$t.WillChange){const r=new $t.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function _a(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const xk="framerAppearId",tf="data-"+_a(xk);function nf(e){return e.props[tf]}function Sk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rf(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();i=i?Jd(i,l):l;const c=i?.reduceMotion,u=i?.skipAnimations;r&&(i=r);const d=[],h=o&&e.animationState&&e.animationState.getState()[o],m=i?.path;m&&m.animateVisualElement(e,a,i,n,d);for(const y in a){const g=e.getValue(y,e.latestValues[y]??null),S=a[y];if(S===void 0||h&&Sk(h,y))continue;const w={delay:n,...Pa(i||{},y)};u&&(w.skipAnimations=!0);const C=g.get();if(C!==void 0&&!g.isAnimating()&&!Array.isArray(S)&&S===C&&!w.velocity){Z.update(()=>g.set(S));continue}let T=!1;if(window.MotionHandoffAnimation){const _=nf(e);if(_){const A=window.MotionHandoffAnimation(_,y,Z);A!==null&&(w.startTime=A,T=!0)}}$s(e,y);const P=c??e.shouldReduceMotion;g.start(Aa(y,g,S,P&&ef.has(y)?{type:!1}:w,e,T));const R=g.animation;R&&d.push(R)}if(s){const y=()=>Z.update(()=>{s&&bk(e,s)});d.length?Promise.all(d).then(y):y()}return d}function _s(e,t,n={}){const r=Gt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(rf(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return wk(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function wk(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(_s(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Zd(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function kk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>_s(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=_s(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(rf(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ck={test:e=>e==="auto",parse:e=>e},of=e=>t=>t.test(e),sf=[wn,E,at,ht,Y1,X1,Ck],fc=e=>sf.find(of(e));function Tk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gd(e):!0}const Pk=new Set(["brightness","contrast","saturate","opacity"]);function Ak(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xa)||[];if(!r)return e;const o=n.replace(r,"");let i=Pk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const $k=/\b([a-z-]*)\(.*?\)/gu,Rs={...Ke,getAnimatableNone:e=>{const t=e.match($k);return t?t.map(Ak).join(" "):e}},Es={...Ke,getAnimatableNone:e=>{const t=Ke.parse(e);return Ke.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},hc={...wn,transform:Math.round},_k={rotate:ht,pathRotation:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scale:Ir,scaleX:Ir,scaleY:Ir,scaleZ:Ir,skew:ht,skewX:ht,skewY:ht,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:ar,originX:Ql,originY:Ql,originZ:E},Ao={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,..._k,zIndex:hc,fillOpacity:ar,strokeOpacity:ar,numOctaves:hc},Rk={...Ao,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:Rs,WebkitFilter:Rs,mask:Es,WebkitMask:Es},af=e=>Rk[e],Ek=new Set([Rs,Es]);function lf(e,t){let n=af(e);return Ek.has(n)||(n=Ke),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mk=new Set(["auto","none","0"]);function jk(e,t,n){let r=0,o;for(;r{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function cf(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Ms=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oo(e){return md(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ra}=_d(queueMicrotask,!1),Ge={x:!1,y:!1};function uf(){return Ge.x||Ge.y}function Bk(e){return e==="x"||e==="y"?Ge[e]?null:(Ge[e]=!0,()=>{Ge[e]=!1}):Ge.x||Ge.y?null:(Ge.x=Ge.y=!0,()=>{Ge.x=Ge.y=!1})}function df(e,t){const n=cf(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Dk(e){return!(e.pointerType==="touch"||uf())}function Ik(e,t,n={}){const[r,o,i]=df(e,n);return r.forEach(s=>{let a=!1,l=!1,c;const u=()=>{s.removeEventListener("pointerleave",y)},d=S=>{c&&(c(S),c=void 0),u()},h=S=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(S))},m=()=>{a=!0,window.addEventListener("pointerup",h,o),window.addEventListener("pointercancel",h,o)},y=S=>{if(S.pointerType!=="touch"){if(a){l=!0;return}d(S)}},g=S=>{if(!Dk(S))return;l=!1;const w=t(s,S);typeof w=="function"&&(c=w,s.addEventListener("pointerleave",y,o))};s.addEventListener("pointerenter",g,o),s.addEventListener("pointerdown",m,o)}),i}const ff=(e,t)=>t?e===t?!0:ff(e,t.parentElement):!1,Ea=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Vk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fk(e){return Vk.has(e.tagName)||e.isContentEditable===!0}const Lk=new Set(["INPUT","SELECT","TEXTAREA"]);function Ok(e){return Lk.has(e.tagName)||e.isContentEditable===!0}const io=new WeakSet;function pc(e){return t=>{t.key==="Enter"&&e(t)}}function Li(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Wk=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=pc(()=>{if(io.has(n))return;Li(n,"down");const o=pc(()=>{Li(n,"up")}),i=()=>Li(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mc(e){return Ea(e)&&!uf()}const gc=new WeakSet;function Nk(e,t,n={}){const[r,o,i]=df(e,n),s=a=>{const l=a.currentTarget;if(!mc(a)||gc.has(a))return;io.add(l),n.stopPropagation&&gc.add(a);const c=t(l,a),u=(m,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),io.has(l)&&io.delete(l),mc(m)&&typeof c=="function"&&c(m,{success:y})},d=m=>{u(m,l===window||l===document||n.useGlobalTarget||ff(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),oo(a)&&(a.addEventListener("focus",c=>Wk(c,o)),!Fk(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ma(e){return md(e)&&"ownerSVGElement"in e}const so=new WeakMap;let ao;const hf=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Ma(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Hk=hf("inline","width","offsetWidth"),Uk=hf("block","height","offsetHeight");function Gk({target:e,borderBoxSize:t}){so.get(e)?.forEach(n=>{n(e,{get width(){return Hk(e,t)},get height(){return Uk(e,t)}})})}function qk(e){e.forEach(Gk)}function Kk(){typeof ResizeObserver>"u"||(ao=new ResizeObserver(qk))}function Xk(e,t){ao||Kk();const n=cf(e);return n.forEach(r=>{let o=so.get(r);o||(o=new Set,so.set(r,o)),o.add(t),ao?.observe(r)}),()=>{n.forEach(r=>{const o=so.get(r);o?.delete(t),o?.size||ao?.unobserve(r)})}}const lo=new Set;let ln;function Yk(){ln=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};lo.forEach(t=>t(e))},window.addEventListener("resize",ln)}function Zk(e){return lo.add(e),ln||Yk(),()=>{lo.delete(e),!lo.size&&typeof ln=="function"&&(window.removeEventListener("resize",ln),ln=void 0)}}function yc(e,t){return typeof e=="function"?Zk(e):Xk(e,t)}function Jk(e){return Ma(e)&&e.tagName==="svg"}const Qk=[...sf,ae,Ke],eC=e=>Qk.find(of(e)),bc=()=>({translate:0,scale:1,origin:0,originPoint:0}),cn=()=>({x:bc(),y:bc()}),vc=()=>({min:0,max:0}),he=()=>({x:vc(),y:vc()}),tC=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function lr(e){return typeof e=="string"||Array.isArray(e)}const ja=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],za=["initial",...ja];function Qo(e){return Jo(e.animate)||za.some(t=>lr(e[t]))}function pf(e){return!!(Qo(e)||e.variants)}function nC(e,t,n){for(const r in t){const o=t[r],i=n[r];if(be(o))e.addValue(r,o);else if(be(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,xn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const js={current:null},mf={current:!1},rC=typeof window<"u";function oC(){if(mf.current=!0,!!rC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>js.current=e.matches;e.addEventListener("change",t),t()}else js.current=!1}const xc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let $o={};function gf(e){$o=e}function iC(){return $o}class sC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ta,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=we.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(mf.current||oC(),this.shouldReduceMotion=js.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Yd.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new Kd({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:Ee(u)}),h=s(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Cn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $o){const n=$o[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(pd(r)||gd(r))?r=parseFloat(r):!eC(r)&&Ke.test(n)&&(r=lf(t,n)),this.setBaseTarget(t,be(r)?r.get():r)),be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=$a(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!be(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ga),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ra.render(this.render)}}class yf extends sC{constructor(){super(...arguments),this.KeyframeResolver=zk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Et{constructor(t){this.isMounted=!1,this.node=t}update(){}}function bf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Oi(e){return e===void 0||e===1}function zs({scale:e,scaleX:t,scaleY:n}){return!Oi(e)||!Oi(t)||!Oi(n)}function It(e){return zs(e)||vf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vf(e){return Sc(e.x)||Sc(e.y)}function Sc(e){return e&&e!=="0%"}function _o(e,t,n){const r=e-n,o=t*r;return n+o}function wc(e,t,n,r,o){return o!==void 0&&(e=_o(e,o,r)),_o(e,n,r)+t}function Bs(e,t=0,n=1,r,o){e.min=wc(e.min,t,n,r,o),e.max=wc(e.max,t,n,r,o)}function xf(e,{x:t,y:n}){Bs(e.x,t.translate,t.scale,t.originPoint),Bs(e.y,n.translate,n.scale,n.originPoint)}const kc=.999999999999,Cc=1.0000000000001;function cC(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;akc&&(t.x=1),t.ykc&&(t.y=1)}function nt(e,t){e.min+=t,e.max+=t}function Tc(e,t,n,r,o=.5){const i=Y(e.min,e.max,o);Bs(e,t,n,i,r)}function Pc(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function co(e,t,n){const r=n??e;Tc(e.x,Pc(t.x,r.x),t.scaleX,t.scale,t.originX),Tc(e.y,Pc(t.y,r.y),t.scaleY,t.scale,t.originY)}function Sf(e,t){return bf(lC(e.getBoundingClientRect(),t))}function uC(e,t,n){const r=Sf(e,n),{scroll:o}=t;return o&&(nt(r.x,o.offset.x),nt(r.y,o.offset.y)),r}const dC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fC=kn.length;function hC(e,t,n){let r="",o=!0;for(let s=0;s{if(!t.target)return e;if(typeof e=="string")if(E.test(e))e=parseFloat(e);else return e;const n=Ac(e,t.target.x),r=Ac(e,t.target.y);return`${n}% ${r}%`}},pC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ke.parse(e);if(o.length>5)return r;const i=Ke.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Y(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Ds={borderRadius:{...zn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zn,borderTopRightRadius:zn,borderBottomLeftRadius:zn,borderBottomRightRadius:zn,boxShadow:pC};function kf(e,{layout:t,layoutId:n}){return Cn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ds[e]||e==="opacity")}function Da(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(be(r[s])||o&&be(o[s])||kf(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function mC(e){return window.getComputedStyle(e)}class gC extends yf{constructor(){super(...arguments),this.type="html",this.renderInstance=wf}readValueFromInstance(t,n){if(Cn.has(n))return this.projection?.isProjecting?Ss(n):Dw(t,n);{const r=mC(t),o=(Ed(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sf(t,n)}build(t,n,r){Ba(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Da(t,n,r)}}const yC={offset:"stroke-dashoffset",array:"stroke-dasharray"},bC={offset:"strokeDashoffset",array:"strokeDasharray"};function vC(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yC:bC;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const xC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Cf(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Ba(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const m of xC)d[m]!==void 0&&(h[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&vC(d,o,i,s,!1)}const Tf=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"]),Pf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function SC(e,t,n,r){wf(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Tf.has(o)?o:_a(o),t.attrs[o])}function Af(e,t,n){const r=Da(e,t,n);for(const o in e)if(be(e[o])||be(t[o])){const i=kn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class wC extends yf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cn.has(n)){const r=af(n);return r&&r.default||0}return n=Tf.has(n)?n:_a(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Af(t,n,r)}build(t,n,r){Cf(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){SC(t,n,r,o)}mount(t){this.isSVGTag=Pf(t.tagName),super.mount(t)}}const kC=za.length;function $f(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$f(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>kk(e,n,r)))}function AC(e){let t=PC(e),n=$c(),r=!0,o=!1;const i=c=>(u,d)=>{const h=Gt(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:m,transitionEnd:y,...g}=h;u={...u,...g,...y}}return u};function s(c){t=c(e)}function a(c){const{props:u}=e,d=$f(e.parent)||{},h=[],m=new Set;let y={},g=1/0;for(let w=0;wg&&R,j=!1;const F=Array.isArray(P)?P:[P];let ue=F.reduce(i(C),{});_===!1&&(ue={});const{prevResolvedValues:Oe={}}=T,je={...Oe,...ue},We=de=>{D=!0,m.has(de)&&(j=!0,m.delete(de)),T.needsAnimating[de]=!0;const Te=e.getValue(de);Te&&(Te.liveStyle=!1)};for(const de in je){const Te=ue[de],ut=Oe[de];if(y.hasOwnProperty(de))continue;let St=!1;As(Te)&&As(ut)?St=!_f(Te,ut)||$:St=Te!==ut,St?Te!=null?We(de):m.add(de):Te!==void 0&&m.has(de)?We(de):T.protectedKeys[de]=!0}T.prevProp=P,T.prevResolvedValues=ue,T.isActive&&(y={...y,...ue}),(r||o)&&e.blockInitialAnimation&&(D=!1);const ze=A&&$;D&&(!ze||j)&&h.push(...F.map(de=>{const Te={type:C};if(typeof de=="string"&&(r||o)&&!ze&&e.manuallyAnimateOnMount&&e.parent){const{parent:ut}=e,St=Gt(ut,de);if(ut.enteringChildren&&St){const{delayChildren:ni}=St.transition||{};Te.delay=Zd(ut.enteringChildren,e,ni)}}return{animation:de,options:Te}}))}if(m.size){const w={};if(typeof u.initial!="boolean"){const C=Gt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);C&&C.transition&&(w.transition=C.transition)}m.forEach(C=>{const T=e.getBaseTarget(C),P=e.getValue(C);P&&(P.liveStyle=!0),w[C]=T??null}),h.push({animation:w})}let S=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,o=!1,S?t(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const d=a(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=$c(),o=!0}}}function $C(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_f(t,e):!1}function Dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $c(){return{animate:Dt(!0),whileInView:Dt(),whileHover:Dt(),whileTap:Dt(),whileDrag:Dt(),whileFocus:Dt(),exit:Dt()}}function Is(e,t){e.min=t.min,e.max=t.max}function Ue(e,t){Is(e.x,t.x),Is(e.y,t.y)}function _c(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Rf=1e-4,_C=1-Rf,RC=1+Rf,Ef=.01,EC=0-Ef,MC=0+Ef;function ke(e){return e.max-e.min}function jC(e,t,n){return Math.abs(e-t)<=n}function Rc(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=ke(n)/ke(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_C&&e.scale<=RC||isNaN(e.scale))&&(e.scale=1),(e.translate>=EC&&e.translate<=MC||isNaN(e.translate))&&(e.translate=0)}function Yn(e,t,n,r){Rc(e.x,t.x,n.x,r?r.originX:void 0),Rc(e.y,t.y,n.y,r?r.originY:void 0)}function Ec(e,t,n,r=0){const o=r?Y(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+ke(t)}function zC(e,t,n,r){Ec(e.x,t.x,n.x,r?.x),Ec(e.y,t.y,n.y,r?.y)}function Mc(e,t,n,r=0){const o=r?Y(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+ke(t)}function Ro(e,t,n,r){Mc(e.x,t.x,n.x,r?.x),Mc(e.y,t.y,n.y,r?.y)}function jc(e,t,n,r,o){return e-=t,e=_o(e,1/n,r),o!==void 0&&(e=_o(e,1/o,r)),e}function BC(e,t=0,n=1,r=.5,o,i=e,s=e){if(at.test(t)&&(t=parseFloat(t),t=Y(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Y(i.min,i.max,r);e===i&&(a-=t),e.min=jc(e.min,t,n,a,o),e.max=jc(e.max,t,n,a,o)}function zc(e,t,[n,r,o],i,s){BC(e,t[n],t[r],t[o],t.scale,i,s)}const DC=["x","scaleX","originX"],IC=["y","scaleY","originY"];function Bc(e,t,n,r){zc(e.x,t,DC,n?n.x:void 0,r?r.x:void 0),zc(e.y,t,IC,n?n.y:void 0,r?r.y:void 0)}function Dc(e){return e.translate===0&&e.scale===1}function Mf(e){return Dc(e.x)&&Dc(e.y)}function Ic(e,t){return e.min===t.min&&e.max===t.max}function VC(e,t){return Ic(e.x,t.x)&&Ic(e.y,t.y)}function Vc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jf(e,t){return Vc(e.x,t.x)&&Vc(e.y,t.y)}function Fc(e){return ke(e.x)/ke(e.y)}function Lc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Je(e){return[e("x"),e("y")]}function FC(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,pathRotation:d,rotateX:h,rotateY:m,skewX:y,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const zf=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],LC=zf.length,Oc=e=>typeof e=="string"?parseFloat(e):e,Wc=e=>typeof e=="number"||E.test(e);function OC(e,t,n,r,o,i){o?(e.opacity=Y(0,n.opacity??1,WC(r)),e.opacityExit=Y(t.opacity??1,0,NC(r))):i&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(sr(e,t,r))}function HC(e,t,n){const r=be(e)?e:xn(e);return r.start(Aa("",r,t,n)),r.animation}function cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const UC=(e,t)=>e.depth-t.depth;class GC{constructor(){this.children=[],this.isDirty=!1}add(t){pa(this.children,t),this.isDirty=!0}remove(t){wo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(UC),this.isDirty=!1,this.children.forEach(t)}}function qC(e,t){const n=we.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(_t(r),e(i-t))};return Z.setup(r,!0),()=>_t(r)}function uo(e){return be(e)?e.get():e}class KC{constructor(){this.members=[]}add(t){pa(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(wo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(wo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:i}=t.options;(o===void 0||o!==i)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const fo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Wi=["","X","Y","Z"],XC=1e3;let YC=0;function Ni(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Df(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nf(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Df(r)}function If({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=YC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QC),this.nodes.forEach(iT),this.nodes.forEach(sT),this.nodes.forEach(eT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;Z.read(()=>{d=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,u&&u(),u=qC(h,250),fo.hasAnimatedSinceResize&&(fo.hasAnimatedSinceResize=!1,this.nodes.forEach(Gc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||dT,{onLayoutAnimationStart:g,onLayoutAnimationComplete:S}=c.getProps(),w=!this.targetLayout||!jf(this.targetLayout,m),C=!d&&h;if(this.options.layoutRoot||this.resumeFrom||C||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Pa(y,"layout"),onPlay:g,onComplete:S};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,C,T.path)}else d||Gc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_t(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Df(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ke(this.snapshot.measuredBox.x)&&!ke(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const A=_/1e3,$=R?.(A);$?(h.x.translate=$.x,h.x.scale=Y(s.x.scale,1,A),h.x.origin=s.x.origin,h.x.originPoint=s.x.originPoint,h.y.translate=$.y,h.y.scale=Y(s.y.scale,1,A),h.y.origin=s.y.origin,h.y.originPoint=s.y.originPoint):(qc(h.x,s.x,A),qc(h.y,s.y,A)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ro(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),cT(this.relativeTarget,this.relativeTargetOrigin,m,A),P&&VC(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=he()),Ue(P,this.relativeTarget)),S&&(this.animationValues=d,OC(d,u,this.latestValues,A,T,C)),$&&$.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=$.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{fo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.motionValue.jump(0,!1),this.currentAnimation=HC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(XC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Vf(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const d=ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Ue(a,l),co(a,u),Yn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new KC),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ni("z",s,c,this.animationValues);for(let u=0;us.currentAnimation?.stop()),this.root.nodes.forEach(Hc),this.root.sharedNodes.clear()}}}function ZC(e){e.updateLayout()}function JC(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;if(o==="size")Je(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=ke(d);d.min=n[u].min,d.max=d.min+h});else if(o==="x"||o==="y"){const u=o==="x"?"y":"x";Is(i?t.measuredBox[u]:t.layoutBox[u],n[u])}else Vf(o,t.layoutBox,n)&&Je(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=ke(n[u]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=cn();Yn(s,n,t.layoutBox);const a=cn();i?Yn(a,e.applyTransform(r,!0),t.measuredBox):Yn(a,n,t.layoutBox);const l=!Mf(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const m=e.options.layoutAnchor||void 0,y=he();Ro(y,t.layoutBox,d.layoutBox,m);const g=he();Ro(g,n,h.layoutBox,m),jf(y,g)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function QC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tT(e){e.clearSnapshot()}function Hc(e){e.clearMeasurements()}function nT(e){e.isLayoutDirty=!0,e.updateLayout()}function Uc(e){e.isLayoutDirty=!1}function rT(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function oT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iT(e){e.resolveTargetDelta()}function sT(e){e.calcProjection()}function aT(e){e.resetSkewAndRotation()}function lT(e){e.removeLeadSnapshot()}function qc(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Kc(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function cT(e,t,n,r){Kc(e.x,t.x,n.x,r),Kc(e.y,t.y,n.y,r)}function uT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dT={duration:.45,ease:[.4,0,.1,1]},Xc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yc=Xc("applewebkit/")&&!Xc("chrome/")?Math.round:Le;function Zc(e){e.min=Yc(e.min),e.max=Yc(e.max)}function fT(e){Zc(e.x),Zc(e.y)}function Vf(e,t,n){return e==="position"||e==="preserve-aspect"&&!jC(Fc(t),Fc(n),.2)}function hT(e){return e!==e.root&&e.scroll?.wasRoot}const pT=If({attachResizeListener:(e,t)=>cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Hi={current:void 0},Ff=If({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hi.current){const e=new pT({});e.mount(window),e.setOptions({layoutScroll:!0}),Hi.current=e}return Hi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ia=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Jc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mT(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Jc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{width:h,height:m,top:y,left:g,right:S,bottom:w,direction:C}=l.current;if(t||i===!1||!a.current||!h||!m)return;const T=C==="rtl",P=n==="left"?T?`right: ${S}`:`left: ${g}`:T?`left: ${g}`:`right: ${S}`,R=r==="bottom"?`bottom: ${w}`:`top: ${y}`;a.current.dataset.motionPopId=s;const _=document.createElement("style");c&&(_.nonce=c);const A=o??document.head;return A.appendChild(_),_.sheet&&_.sheet.insertRule(` + ${ud} + `});function T1(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=v.useMemo(()=>sg(n),[n]);return p.jsxs(d1,{theme:o,children:[p.jsx(P1,{root:t}),r]})}function P1({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return p.jsx(Yo,{styles:n=>({[t]:n.__cssVars})})}xt({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function A1(){const{colorMode:e}=da();return p.jsx(Yo,{styles:t=>{const n=Pu(t,"styles.global"),r=rt(n,{theme:t,colorMode:e});return r?Eu(r)(t):void 0}})}const[$1,_1]=xt({strict:!1,name:"PortalManagerContext"});function dd(e){const{children:t,zIndex:n}=e;return p.jsx($1,{value:{zIndex:n},children:t})}dd.displayName="PortalManager";const fd=v.createContext({getDocument(){return document},getWindow(){return window}});fd.displayName="EnvironmentContext";function hd(e){const{children:t,environment:n,disabled:r}=e,o=v.useRef(null),i=v.useMemo(()=>n||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[n]),s=!r||!n;return p.jsxs(fd.Provider,{value:i,children:[t,s&&p.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}hd.displayName="EnvironmentProvider";const R1=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=p.jsx(hd,{environment:a,disabled:c,children:t});return p.jsx(T1,{theme:s,cssVarsRoot:l,children:p.jsxs(ld,{colorModeManager:n,options:s.config,children:[i?p.jsx(C1,{scope:o}):p.jsx(k1,{}),!u&&p.jsx(A1,{}),r?p.jsx(dd,{zIndex:r,children:d}):d]})})},fa=v.createContext({});function ha(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const E1=typeof window<"u",pd=E1?v.useLayoutEffect:v.useEffect,fr=v.createContext(null);function pa(e,t){e.indexOf(t)===-1&&e.push(t)}function wo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const lt=(e,t,n)=>n>t?t:n{};const $t={},md=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gd=e=>typeof e=="object"&&e!==null,yd=e=>/^0[^.\s]+$/u.test(e);function bd(e){let t;return()=>(t===void 0&&(t=e()),t)}const Le=e=>e,hr=(...e)=>e.reduce((t,n)=>r=>n(t(r))),sr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ga{constructor(){this.subscriptions=[]}add(t){return pa(this.subscriptions,t),()=>wo(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,Ie=e=>e/1e3,vd=(e,t)=>t?e*(1e3/t):0,xd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,M1=1e-7,j1=12;function z1(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=xd(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>M1&&++az1(i,0,1,e,n);return i=>i===0||i===1?i:xd(o(i),t,r)}const Sd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wd=e=>t=>1-e(1-t),kd=pr(.33,1.53,.69,.99),ya=wd(kd),Cd=Sd(ya),Td=e=>e>=1?1:(e*=2)<1?.5*ya(e):.5*(2-Math.pow(2,-10*(e-1))),ba=e=>1-Math.sin(Math.acos(e)),Pd=wd(ba),Ad=Sd(ba),B1=pr(.42,0,1,1),D1=pr(0,0,.58,1),$d=pr(.42,0,.58,1),I1=e=>Array.isArray(e)&&typeof e[0]!="number",_d=e=>Array.isArray(e)&&typeof e[0]=="number",V1={linear:Le,easeIn:B1,easeInOut:$d,easeOut:D1,circIn:ba,circInOut:Ad,circOut:Pd,backIn:ya,backInOut:Cd,backOut:kd,anticipate:Td},F1=e=>typeof e=="string",Jl=e=>{if(_d(e)){ma(e.length===4);const[t,n,r,o]=e;return pr(t,n,r,o)}else if(F1(e))return V1[e];return e},Dr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function L1(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const y=h&&o?n:r;return d&&s.add(u),y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0;const d=n;n=r,r=d,n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const O1=40;function Rd(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Dr.reduce((T,P)=>(T[P]=L1(i),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:m,postRender:y}=s,g=()=>{const T=$t.useManualTiming,P=T?o.timestamp:performance.now();n=!1,T||(o.delta=r?1e3/60:Math.max(Math.min(P-o.timestamp,O1),1)),o.timestamp=P,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),h.process(o),m.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},S=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:Dr.reduce((T,P)=>{const R=s[P];return T[P]=(_,A=!1,$=!1)=>(n||S(),R.schedule(_,A,$)),T},{}),cancel:T=>{for(let P=0;P(ro===void 0&&we.set(ge.isProcessing||$t.useManualTiming?ge.timestamp:performance.now()),ro),set:e=>{ro=e,queueMicrotask(W1)}},Ed=e=>t=>typeof t=="string"&&t.startsWith(e),Md=Ed("--"),N1=Ed("var(--"),va=e=>N1(e)?H1.test(e.split("/*")[0].trim()):!1,H1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ql(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const wn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ar={...wn,transform:e=>lt(0,1,e)},Ir={...wn,default:1},Kn=e=>Math.round(e*1e5)/1e5,xa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function U1(e){return e==null}const G1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sa=(e,t)=>n=>!!(typeof n=="string"&&G1.test(n)&&n.startsWith(e)||t&&!U1(n)&&Object.prototype.hasOwnProperty.call(n,t)),jd=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(xa);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},q1=e=>lt(0,255,e),Bi={...wn,transform:e=>Math.round(q1(e))},Lt={test:Sa("rgb","red"),parse:jd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bi.transform(e)+", "+Bi.transform(t)+", "+Bi.transform(n)+", "+Kn(ar.transform(r))+")"};function K1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ms={test:Sa("#"),parse:K1,transform:Lt.transform},mr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ht=mr("deg"),at=mr("%"),E=mr("px"),X1=mr("vh"),Y1=mr("vw"),ec={...at,parse:e=>at.parse(e)/100,transform:e=>at.transform(e*100)},an={test:Sa("hsl","hue"),parse:jd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+at.transform(Kn(t))+", "+at.transform(Kn(n))+", "+Kn(ar.transform(r))+")"},ae={test:e=>Lt.test(e)||ms.test(e)||an.test(e),parse:e=>Lt.test(e)?Lt.parse(e):an.test(e)?an.parse(e):ms.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Lt.transform(e):an.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},Z1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function J1(e){return isNaN(e)&&typeof e=="string"&&(e.match(xa)?.length||0)+(e.match(Z1)?.length||0)>0}const zd="number",Bd="color",Q1="var",ew="var(",tc="${}",tw=/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 vn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(tw,l=>(ae.test(l)?(r.color.push(i),o.push(Bd),n.push(ae.parse(l))):l.startsWith(ew)?(r.var.push(i),o.push(Q1),n.push(l)):(r.number.push(i),o.push(zd),n.push(parseFloat(l))),++i,tc)).split(tc);return{values:n,split:a,indexes:r,types:o}}function nw(e){return vn(e).values}function Dd({split:e,types:t}){const n=e.length;return r=>{let o="";for(let i=0;itypeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e,iw=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ow(e);function sw(e){const t=vn(e);return Dd(t)(t.values.map((r,o)=>iw(r,t.split[o])))}const Ke={test:J1,parse:nw,createTransformer:rw,getAnimatableNone:sw};function Di(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Di(l,a,e+1/3),i=Di(l,a,e),s=Di(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function ko(e,t){return n=>n>0?t:e}const Y=(e,t,n)=>e+(t-e)*n,Ii=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},lw=[ms,Lt,an],cw=e=>lw.find(t=>t.test(e));function nc(e){const t=cw(e);if(!t)return!1;let n=t.parse(e);return t===an&&(n=aw(n)),n}const rc=(e,t)=>{const n=nc(e),r=nc(t);if(!n||!r)return ko(e,t);const o={...n};return i=>(o.red=Ii(n.red,r.red,i),o.green=Ii(n.green,r.green,i),o.blue=Ii(n.blue,r.blue,i),o.alpha=Y(n.alpha,r.alpha,i),Lt.transform(o))},gs=new Set(["none","hidden"]);function uw(e,t){return gs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dw(e,t){return n=>Y(e,t,n)}function wa(e){return typeof e=="number"?dw:typeof e=="string"?va(e)?ko:ae.test(e)?rc:pw:Array.isArray(e)?Id:typeof e=="object"?ae.test(e)?rc:fw:ko}function Id(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>wa(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function hw(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o{const n=Ke.createTransformer(t),r=vn(e),o=vn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?gs.has(e)&&!o.values.length||gs.has(t)&&!r.values.length?uw(e,t):hr(Id(hw(r,o),o.values),n):ko(e,t)};function Vd(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):wa(e)(e,t)}const mw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>_t(t),now:()=>ge.isProcessing?ge.timestamp:we.now()}},Fd=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i=Co?1/0:t}function gw(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ka(r),Co);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ie(o)}}const ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ys(e,t){return e*Math.sqrt(1-t*t)}const yw=12;function bw(e,t,n){let r=n;for(let o=1;o{const u=c*s,d=u*e,h=u-n,m=ys(c,s),y=Math.exp(-d);return Vi-h/m*y},i=c=>{const d=c*s*e,h=d*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-d),g=ys(Math.pow(c,2),s);return(-o(c)+Vi>0?-1:1)*((h-m)*y)/g}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Vi+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=bw(o,i,a);if(e=Ee(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const xw=["duration","bounce"],Sw=["stiffness","damping","mass"];function oc(e,t){return t.some(n=>e[n]!==void 0)}function ww(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!oc(e,Sw)&&oc(e,xw))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*lt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ie.mass,stiffness:o,damping:i}}else{const n=vw({...e,velocity:0});t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function To(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:m}=ww({...n,velocity:-Ie(n.velocity||0)}),y=h||0,g=c/(2*Math.sqrt(l*u)),S=s-i,w=Ie(Math.sqrt(l/u)),C=Math.abs(S)<5;r||(r=C?ie.restSpeed.granular:ie.restSpeed.default),o||(o=C?ie.restDelta.granular:ie.restDelta.default);let T,P,R,_,A,$;if(g<1)R=ys(w,g),_=(y+g*w*S)/R,T=j=>{const F=Math.exp(-g*w*j);return s-F*(_*Math.sin(R*j)+S*Math.cos(R*j))},A=g*w*_+S*R,$=g*w*S-_*R,P=j=>Math.exp(-g*w*j)*(A*Math.sin(R*j)+$*Math.cos(R*j));else if(g===1){T=F=>s-Math.exp(-w*F)*(S+(y+w*S)*F);const j=y+w*S;P=F=>Math.exp(-w*F)*(w*j*F-y)}else{const j=w*Math.sqrt(g*g-1);T=je=>{const We=Math.exp(-g*w*je),ze=Math.min(j*je,300);return s-We*((y+g*w*S)*Math.sinh(ze)+j*S*Math.cosh(ze))/j};const F=(y+g*w*S)/j,ue=g*w*F-S*j,Oe=g*w*S-F*j;P=je=>{const We=Math.exp(-g*w*je),ze=Math.min(j*je,300);return We*(ue*Math.sinh(ze)+Oe*Math.cosh(ze))}}const D={calculatedDuration:m&&d||null,velocity:j=>Ee(P(j)),next:j=>{if(!m&&g<1){const ue=Math.exp(-g*w*j),Oe=Math.sin(R*j),je=Math.cos(R*j),We=s-ue*(_*Oe+S*je),ze=Ee(ue*(A*Oe+$*je));return a.done=Math.abs(ze)<=r&&Math.abs(s-We)<=o,a.value=a.done?s:We,a}const F=T(j);if(m)a.done=j>=d;else{const ue=Ee(P(j));a.done=Math.abs(ue)<=r&&Math.abs(s-F)<=o}return a.value=a.done?s:F,a},toString:()=>{const j=Math.min(ka(D),Co),F=Fd(ue=>D.next(j*ue).value,j,30);return j+"ms "+F},toTransition:()=>{}};return D}To.applyToOptions=e=>{const t=gw(e,100,To);return e.ease=t.ease,e.duration=Ee(t.duration),e.type="keyframes",e};const kw=5;function Ld(e,t,n){const r=Math.max(t-kw,0);return vd(n-e(r),t-r)}function bs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},m=$=>a!==void 0&&$l,y=$=>a===void 0?l:l===void 0||Math.abs(a-$)-g*Math.exp(-$/r),T=$=>w+C($),P=$=>{const D=C($),j=T($);h.done=Math.abs(D)<=c,h.value=h.done?w:j};let R,_;const A=$=>{m(h.value)&&(R=$,_=To({keyframes:[h.value,y(h.value)],velocity:Ld(T,$,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:$=>{let D=!1;return!_&&R===void 0&&(D=!0,P($),A($)),R!==void 0&&$>=R?_.next($-R):(!D&&P($),h)}}}function Cw(e,t,n){const r=[],o=n||$t.mix||Vd,i=e.length-1;for(let s=0;st[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Cw(t,r,o),l=a.length,c=u=>{if(s&&u1)for(;dc(lt(e[0],e[i-1],u)):c}function Pw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=sr(0,t,r);e.push(Y(n,1,o))}}function Aw(e){const t=[0];return Pw(t,e.length-1),t}function $w(e,t){return e.map(n=>n*t)}function _w(e,t){return e.map(()=>t||$d).splice(0,e.length-1)}function Xn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=I1(r)?r.map(Jl):Jl(r),i={done:!1,value:t[0]},s=$w(n&&n.length===t.length?n:Aw(t),e),a=Tw(s,t,{ease:Array.isArray(o)?o:_w(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Rw=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Rw),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Ew={decay:bs,inertia:bs,tween:Xn,keyframes:Xn,spring:To};function Od(e){typeof e.type=="string"&&(e.type=Ew[e.type])}class Ca{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Mw=e=>e/100;class Po extends Ca{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==we.now()&&this.tick(we.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Od(t);const{type:n=Xn,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Xn;l!==Xn&&typeof a[0]!="number"&&(this.mixKeyframes=hr(Mw,Vd(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ka(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:m,type:y,onUpdate:g,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(d){const $=Math.min(this.currentTime,o)/a;let D=Math.floor($),j=$%1;!j&&$>=1&&(j=1),j===1&&D--,D=Math.min(D,d+1),!!(D%2)&&(h==="reverse"?(j=1-j,m&&(j-=m/a)):h==="mirror"&&(P=s)),T=lt(0,1,j)*a}let R;C?(this.delayState.value=u[0],R=this.delayState):R=P.next(T),i&&!C&&(R.value=i(R.value));let{done:_}=R;!C&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&y!==bs&&(R.value=Zo(u,this.options,S,this.speed)),g&&g(R.value),A&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return Ie(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(this.currentTime)}set time(t){t=Ee(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Ld(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(we.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Ie(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=mw,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(we.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jw(e){for(let t=1;te*180/Math.PI,vs=e=>{const t=Ot(Math.atan2(e[1],e[0]));return xs(t)},zw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vs,rotateZ:vs,skewX:e=>Ot(Math.atan(e[1])),skewY:e=>Ot(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xs=e=>(e=e%360,e<0&&(e+=360),e),ic=vs,sc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ac=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sc,scaleY:ac,scale:e=>(sc(e)+ac(e))/2,rotateX:e=>xs(Ot(Math.atan2(e[6],e[5]))),rotateY:e=>xs(Ot(Math.atan2(-e[2],e[0]))),rotateZ:ic,rotate:ic,skewX:e=>Ot(Math.atan(e[4])),skewY:e=>Ot(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ss(e){return e.includes("scale")?1:0}function ws(e,t){if(!e||e==="none")return Ss(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Bw,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zw,o=a}if(!o)return Ss(t);const i=r[t],s=o[1].split(",").map(Iw);return typeof i=="function"?i(s):s[i]}const Dw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ws(n,t)};function Iw(e){return parseFloat(e.trim())}const kn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cn=new Set([...kn,"pathRotation"]),lc=e=>e===wn||e===E,Vw=new Set(["x","y","z"]),Fw=kn.filter(e=>!Vw.has(e));function Lw(e){const t=[];return Fw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const At={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ws(t,"x"),y:(e,{transform:t})=>ws(t,"y")};At.translateX=At.x;At.translateY=At.y;const Ut=new Set;let ks=!1,Cs=!1,Ts=!1;function Wd(){if(Cs){const e=Array.from(Ut).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Lw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Cs=!1,ks=!1,Ut.forEach(e=>e.complete(Ts)),Ut.clear()}function Nd(){Ut.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cs=!0)})}function Ow(){Ts=!0,Nd(),Wd(),Ts=!1}class Ta{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ut.add(this),ks||(ks=!0,Z.read(Nd),Z.resolveKeyframes(Wd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}jw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ut.delete(this)}cancel(){this.state==="scheduled"&&(Ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ww=e=>e.startsWith("--");function Hd(e,t,n){Ww(t)?e.style.setProperty(t,n):e.style[t]=n}const Nw={};function Ud(e,t){const n=bd(e);return()=>Nw[t]??n()}const Hw=Ud(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Gd=Ud(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ln=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ln([0,.65,.55,1]),circOut:Ln([.55,0,1,.45]),backIn:Ln([.31,.01,.66,-.59]),backOut:Ln([.33,1.53,.69,.99])};function qd(e,t){if(e)return typeof e=="function"?Gd()?Fd(e,t):"ease-out":_d(e)?Ln(e):Array.isArray(e)?e.map(n=>qd(n,t)||cc.easeOut):cc[e]}function Uw(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=qd(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function Kd(e){return typeof e=="function"&&"applyToOptions"in e}function Gw({type:e,...t}){return Kd(e)&&Gd()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Xd extends Ca{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,ma(typeof t.type!="string");const c=Gw(t);this.animation=Uw(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Zo(o,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Hd(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ie(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ie(t)}get time(){return Ie(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ee(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Hw()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Le):o(this)}}const Yd={anticipate:Td,backInOut:Cd,circInOut:Ad};function qw(e){return e in Yd}function Kw(e){typeof e.ease=="string"&&qw(e.ease)&&(e.ease=Yd[e.ease])}const Fi=10;class Xw extends Xd{constructor(t){Kw(t),Od(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Po({...s,autoplay:!1}),l=Math.max(Fi,we.now()-this.startTime),c=lt(0,Fi,l-Fi),u=a.sample(l).value,{name:d}=this.options;i&&d&&Hd(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const uc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ke.test(e)||e==="0")&&!e.startsWith("url("));function Yw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function nk(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return tk()&&n&&(Zd.has(n)||ek.has(n)&&Qw(a))&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const rk=40;class ok extends Ca{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=we.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},m=u?.KeyframeResolver||Ta;this.keyframeResolver=new m(a,(y,g,S)=>this.onKeyframesResolved(y,g,h,!S),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=we.now();let d=!0;Zw(t,i,s,a)||(d=!1,($t.instantAnimations||!l)&&u?.(Zo(t,r,n)),t[0]=t[t.length-1],Ps(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>rk?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&nk(m),g=m.motionValue?.owner?.current;let S;if(y)try{S=new Xw({...m,element:g})}catch{S=new Po(m)}else S=new Po(m);S.finished.then(()=>{this.notifyFinished()}).catch(Le),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ow()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Jd(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}const dc=30,ik=e=>!isNaN(parseFloat(e));class sk{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=we.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=we.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ik(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ga);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=we.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dc);return vd(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xn(e,t){return new sk(e,t)}function Qd(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Pa(e,t){const n=e?.[t]??e?.default??e;return n!==e?Qd(n,e):n}const ak={type:"spring",stiffness:500,damping:25,restSpeed:10},lk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ck={type:"keyframes",duration:.8},uk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dk=(e,{keyframes:t})=>t.length>2?ck:Cn.has(e)?e.startsWith("scale")?lk(t[1]):ak:uk,fk=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function hk(e){for(const t in e)if(!fk.has(t))return!0;return!1}const Aa=(e,t,n,r={},o,i)=>s=>{const a=Pa(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ee(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};hk(a)||Object.assign(u,dk(e,u)),u.duration&&(u.duration=Ee(u.duration)),u.repeatDelay&&(u.repeatDelay=Ee(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ps(u),u.delay===0&&(d=!0)),($t.instantAnimations||$t.skipAnimations||o?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,Ps(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=Zo(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Po(u):new ok(u)},pk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mk(e){const t=pk.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function ef(e,t,n=1){const[r,o]=mk(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return md(s)?parseFloat(s):s}return va(o)?ef(o,t,n+1):o}function fc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $a(e,t,n,r){if(typeof t=="function"){const[o,i]=fc(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=fc(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Gt(e,t,n){const r=e.getProps();return $a(r,t,n!==void 0?n:r.custom,e)}const tf=new Set(["width","height","top","left","right","bottom",...kn]),As=e=>Array.isArray(e);function gk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function yk(e){return As(e)?e[e.length-1]||0:e}function bk(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=yk(i[s]);gk(e,s,a)}}const be=e=>!!(e&&e.getVelocity);function vk(e){return!!(be(e)&&e.add)}function $s(e,t){const n=e.getValue("willChange");if(vk(n))return n.add(t);if(!n&&$t.WillChange){const r=new $t.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function _a(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const xk="framerAppearId",nf="data-"+_a(xk);function rf(e){return e.props[nf]}function Sk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function of(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();i=i?Qd(i,l):l;const c=i?.reduceMotion,u=i?.skipAnimations;r&&(i=r);const d=[],h=o&&e.animationState&&e.animationState.getState()[o],m=i?.path;m&&m.animateVisualElement(e,a,i,n,d);for(const y in a){const g=e.getValue(y,e.latestValues[y]??null),S=a[y];if(S===void 0||h&&Sk(h,y))continue;const w={delay:n,...Pa(i||{},y)};u&&(w.skipAnimations=!0);const C=g.get();if(C!==void 0&&!g.isAnimating()&&!Array.isArray(S)&&S===C&&!w.velocity){Z.update(()=>g.set(S));continue}let T=!1;if(window.MotionHandoffAnimation){const _=rf(e);if(_){const A=window.MotionHandoffAnimation(_,y,Z);A!==null&&(w.startTime=A,T=!0)}}$s(e,y);const P=c??e.shouldReduceMotion;g.start(Aa(y,g,S,P&&tf.has(y)?{type:!1}:w,e,T));const R=g.animation;R&&d.push(R)}if(s){const y=()=>Z.update(()=>{s&&bk(e,s)});d.length?Promise.all(d).then(y):y()}return d}function _s(e,t,n={}){const r=Gt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(of(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return wk(e,t,l,c,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function wk(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(_s(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Jd(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function kk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>_s(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=_s(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(of(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ck={test:e=>e==="auto",parse:e=>e},sf=e=>t=>t.test(e),af=[wn,E,at,ht,Y1,X1,Ck],hc=e=>af.find(sf(e));function Tk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yd(e):!0}const Pk=new Set(["brightness","contrast","saturate","opacity"]);function Ak(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xa)||[];if(!r)return e;const o=n.replace(r,"");let i=Pk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const $k=/\b([a-z-]*)\(.*?\)/gu,Rs={...Ke,getAnimatableNone:e=>{const t=e.match($k);return t?t.map(Ak).join(" "):e}},Es={...Ke,getAnimatableNone:e=>{const t=Ke.parse(e);return Ke.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},pc={...wn,transform:Math.round},_k={rotate:ht,pathRotation:ht,rotateX:ht,rotateY:ht,rotateZ:ht,scale:Ir,scaleX:Ir,scaleY:Ir,scaleZ:Ir,skew:ht,skewX:ht,skewY:ht,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:ar,originX:ec,originY:ec,originZ:E},Ao={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,..._k,zIndex:pc,fillOpacity:ar,strokeOpacity:ar,numOctaves:pc},Rk={...Ao,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:Rs,WebkitFilter:Rs,mask:Es,WebkitMask:Es},lf=e=>Rk[e],Ek=new Set([Rs,Es]);function cf(e,t){let n=lf(e);return Ek.has(n)||(n=Ke),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mk=new Set(["auto","none","0"]);function jk(e,t,n){let r=0,o;for(;r{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function uf(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Ms=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oo(e){return gd(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ra}=Rd(queueMicrotask,!1),Ge={x:!1,y:!1};function df(){return Ge.x||Ge.y}function Bk(e){return e==="x"||e==="y"?Ge[e]?null:(Ge[e]=!0,()=>{Ge[e]=!1}):Ge.x||Ge.y?null:(Ge.x=Ge.y=!0,()=>{Ge.x=Ge.y=!1})}function ff(e,t){const n=uf(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Dk(e){return!(e.pointerType==="touch"||df())}function Ik(e,t,n={}){const[r,o,i]=ff(e,n);return r.forEach(s=>{let a=!1,l=!1,c;const u=()=>{s.removeEventListener("pointerleave",y)},d=S=>{c&&(c(S),c=void 0),u()},h=S=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(S))},m=()=>{a=!0,window.addEventListener("pointerup",h,o),window.addEventListener("pointercancel",h,o)},y=S=>{if(S.pointerType!=="touch"){if(a){l=!0;return}d(S)}},g=S=>{if(!Dk(S))return;l=!1;const w=t(s,S);typeof w=="function"&&(c=w,s.addEventListener("pointerleave",y,o))};s.addEventListener("pointerenter",g,o),s.addEventListener("pointerdown",m,o)}),i}const hf=(e,t)=>t?e===t?!0:hf(e,t.parentElement):!1,Ea=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Vk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fk(e){return Vk.has(e.tagName)||e.isContentEditable===!0}const Lk=new Set(["INPUT","SELECT","TEXTAREA"]);function Ok(e){return Lk.has(e.tagName)||e.isContentEditable===!0}const io=new WeakSet;function mc(e){return t=>{t.key==="Enter"&&e(t)}}function Li(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Wk=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mc(()=>{if(io.has(n))return;Li(n,"down");const o=mc(()=>{Li(n,"up")}),i=()=>Li(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gc(e){return Ea(e)&&!df()}const yc=new WeakSet;function Nk(e,t,n={}){const[r,o,i]=ff(e,n),s=a=>{const l=a.currentTarget;if(!gc(a)||yc.has(a))return;io.add(l),n.stopPropagation&&yc.add(a);const c=t(l,a),u=(m,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),io.has(l)&&io.delete(l),gc(m)&&typeof c=="function"&&c(m,{success:y})},d=m=>{u(m,l===window||l===document||n.useGlobalTarget||hf(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),oo(a)&&(a.addEventListener("focus",c=>Wk(c,o)),!Fk(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ma(e){return gd(e)&&"ownerSVGElement"in e}const so=new WeakMap;let ao;const pf=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Ma(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Hk=pf("inline","width","offsetWidth"),Uk=pf("block","height","offsetHeight");function Gk({target:e,borderBoxSize:t}){so.get(e)?.forEach(n=>{n(e,{get width(){return Hk(e,t)},get height(){return Uk(e,t)}})})}function qk(e){e.forEach(Gk)}function Kk(){typeof ResizeObserver>"u"||(ao=new ResizeObserver(qk))}function Xk(e,t){ao||Kk();const n=uf(e);return n.forEach(r=>{let o=so.get(r);o||(o=new Set,so.set(r,o)),o.add(t),ao?.observe(r)}),()=>{n.forEach(r=>{const o=so.get(r);o?.delete(t),o?.size||ao?.unobserve(r)})}}const lo=new Set;let ln;function Yk(){ln=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};lo.forEach(t=>t(e))},window.addEventListener("resize",ln)}function Zk(e){return lo.add(e),ln||Yk(),()=>{lo.delete(e),!lo.size&&typeof ln=="function"&&(window.removeEventListener("resize",ln),ln=void 0)}}function bc(e,t){return typeof e=="function"?Zk(e):Xk(e,t)}function Jk(e){return Ma(e)&&e.tagName==="svg"}const Qk=[...af,ae,Ke],eC=e=>Qk.find(sf(e)),vc=()=>({translate:0,scale:1,origin:0,originPoint:0}),cn=()=>({x:vc(),y:vc()}),xc=()=>({min:0,max:0}),he=()=>({x:xc(),y:xc()}),tC=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function lr(e){return typeof e=="string"||Array.isArray(e)}const ja=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],za=["initial",...ja];function Qo(e){return Jo(e.animate)||za.some(t=>lr(e[t]))}function mf(e){return!!(Qo(e)||e.variants)}function nC(e,t,n){for(const r in t){const o=t[r],i=n[r];if(be(o))e.addValue(r,o);else if(be(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,xn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const js={current:null},gf={current:!1},rC=typeof window<"u";function oC(){if(gf.current=!0,!!rC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>js.current=e.matches;e.addEventListener("change",t),t()}else js.current=!1}const Sc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let $o={};function yf(e){$o=e}function iC(){return $o}class sC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ta,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=we.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(gf.current||oC(),this.shouldReduceMotion=js.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Zd.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new Xd({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:Ee(u)}),h=s(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=Cn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $o){const n=$o[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(md(r)||yd(r))?r=parseFloat(r):!eC(r)&&Ke.test(n)&&(r=cf(t,n)),this.setBaseTarget(t,be(r)?r.get():r)),be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=$a(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!be(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ga),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ra.render(this.render)}}class bf extends sC{constructor(){super(...arguments),this.KeyframeResolver=zk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Et{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lC(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Oi(e){return e===void 0||e===1}function zs({scale:e,scaleX:t,scaleY:n}){return!Oi(e)||!Oi(t)||!Oi(n)}function It(e){return zs(e)||xf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xf(e){return wc(e.x)||wc(e.y)}function wc(e){return e&&e!=="0%"}function _o(e,t,n){const r=e-n,o=t*r;return n+o}function kc(e,t,n,r,o){return o!==void 0&&(e=_o(e,o,r)),_o(e,n,r)+t}function Bs(e,t=0,n=1,r,o){e.min=kc(e.min,t,n,r,o),e.max=kc(e.max,t,n,r,o)}function Sf(e,{x:t,y:n}){Bs(e.x,t.translate,t.scale,t.originPoint),Bs(e.y,n.translate,n.scale,n.originPoint)}const Cc=.999999999999,Tc=1.0000000000001;function cC(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aCc&&(t.x=1),t.yCc&&(t.y=1)}function nt(e,t){e.min+=t,e.max+=t}function Pc(e,t,n,r,o=.5){const i=Y(e.min,e.max,o);Bs(e,t,n,i,r)}function Ac(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function co(e,t,n){const r=n??e;Pc(e.x,Ac(t.x,r.x),t.scaleX,t.scale,t.originX),Pc(e.y,Ac(t.y,r.y),t.scaleY,t.scale,t.originY)}function wf(e,t){return vf(lC(e.getBoundingClientRect(),t))}function uC(e,t,n){const r=wf(e,n),{scroll:o}=t;return o&&(nt(r.x,o.offset.x),nt(r.y,o.offset.y)),r}const dC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fC=kn.length;function hC(e,t,n){let r="",o=!0;for(let s=0;s{if(!t.target)return e;if(typeof e=="string")if(E.test(e))e=parseFloat(e);else return e;const n=$c(e,t.target.x),r=$c(e,t.target.y);return`${n}% ${r}%`}},pC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ke.parse(e);if(o.length>5)return r;const i=Ke.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Y(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Ds={borderRadius:{...zn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zn,borderTopRightRadius:zn,borderBottomLeftRadius:zn,borderBottomRightRadius:zn,boxShadow:pC};function Cf(e,{layout:t,layoutId:n}){return Cn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ds[e]||e==="opacity")}function Da(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(be(r[s])||o&&be(o[s])||Cf(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function mC(e){return window.getComputedStyle(e)}class gC extends bf{constructor(){super(...arguments),this.type="html",this.renderInstance=kf}readValueFromInstance(t,n){if(Cn.has(n))return this.projection?.isProjecting?Ss(n):Dw(t,n);{const r=mC(t),o=(Md(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wf(t,n)}build(t,n,r){Ba(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Da(t,n,r)}}const yC={offset:"stroke-dashoffset",array:"stroke-dasharray"},bC={offset:"strokeDashoffset",array:"strokeDasharray"};function vC(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yC:bC;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const xC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Tf(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Ba(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const m of xC)d[m]!==void 0&&(h[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&vC(d,o,i,s,!1)}const Pf=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"]),Af=e=>typeof e=="string"&&e.toLowerCase()==="svg";function SC(e,t,n,r){kf(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Pf.has(o)?o:_a(o),t.attrs[o])}function $f(e,t,n){const r=Da(e,t,n);for(const o in e)if(be(e[o])||be(t[o])){const i=kn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class wC extends bf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cn.has(n)){const r=lf(n);return r&&r.default||0}return n=Pf.has(n)?n:_a(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $f(t,n,r)}build(t,n,r){Tf(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){SC(t,n,r,o)}mount(t){this.isSVGTag=Af(t.tagName),super.mount(t)}}const kC=za.length;function _f(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_f(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>kk(e,n,r)))}function AC(e){let t=PC(e),n=_c(),r=!0,o=!1;const i=c=>(u,d)=>{const h=Gt(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:m,transitionEnd:y,...g}=h;u={...u,...g,...y}}return u};function s(c){t=c(e)}function a(c){const{props:u}=e,d=_f(e.parent)||{},h=[],m=new Set;let y={},g=1/0;for(let w=0;wg&&R,j=!1;const F=Array.isArray(P)?P:[P];let ue=F.reduce(i(C),{});_===!1&&(ue={});const{prevResolvedValues:Oe={}}=T,je={...Oe,...ue},We=de=>{D=!0,m.has(de)&&(j=!0,m.delete(de)),T.needsAnimating[de]=!0;const Te=e.getValue(de);Te&&(Te.liveStyle=!1)};for(const de in je){const Te=ue[de],ut=Oe[de];if(y.hasOwnProperty(de))continue;let St=!1;As(Te)&&As(ut)?St=!Rf(Te,ut)||$:St=Te!==ut,St?Te!=null?We(de):m.add(de):Te!==void 0&&m.has(de)?We(de):T.protectedKeys[de]=!0}T.prevProp=P,T.prevResolvedValues=ue,T.isActive&&(y={...y,...ue}),(r||o)&&e.blockInitialAnimation&&(D=!1);const ze=A&&$;D&&(!ze||j)&&h.push(...F.map(de=>{const Te={type:C};if(typeof de=="string"&&(r||o)&&!ze&&e.manuallyAnimateOnMount&&e.parent){const{parent:ut}=e,St=Gt(ut,de);if(ut.enteringChildren&&St){const{delayChildren:ni}=St.transition||{};Te.delay=Jd(ut.enteringChildren,e,ni)}}return{animation:de,options:Te}}))}if(m.size){const w={};if(typeof u.initial!="boolean"){const C=Gt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);C&&C.transition&&(w.transition=C.transition)}m.forEach(C=>{const T=e.getBaseTarget(C),P=e.getValue(C);P&&(P.liveStyle=!0),w[C]=T??null}),h.push({animation:w})}let S=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,o=!1,S?t(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const d=a(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=_c(),o=!0}}}function $C(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rf(t,e):!1}function Dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _c(){return{animate:Dt(!0),whileInView:Dt(),whileHover:Dt(),whileTap:Dt(),whileDrag:Dt(),whileFocus:Dt(),exit:Dt()}}function Is(e,t){e.min=t.min,e.max=t.max}function Ue(e,t){Is(e.x,t.x),Is(e.y,t.y)}function Rc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ef=1e-4,_C=1-Ef,RC=1+Ef,Mf=.01,EC=0-Mf,MC=0+Mf;function ke(e){return e.max-e.min}function jC(e,t,n){return Math.abs(e-t)<=n}function Ec(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=ke(n)/ke(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_C&&e.scale<=RC||isNaN(e.scale))&&(e.scale=1),(e.translate>=EC&&e.translate<=MC||isNaN(e.translate))&&(e.translate=0)}function Yn(e,t,n,r){Ec(e.x,t.x,n.x,r?r.originX:void 0),Ec(e.y,t.y,n.y,r?r.originY:void 0)}function Mc(e,t,n,r=0){const o=r?Y(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+ke(t)}function zC(e,t,n,r){Mc(e.x,t.x,n.x,r?.x),Mc(e.y,t.y,n.y,r?.y)}function jc(e,t,n,r=0){const o=r?Y(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+ke(t)}function Ro(e,t,n,r){jc(e.x,t.x,n.x,r?.x),jc(e.y,t.y,n.y,r?.y)}function zc(e,t,n,r,o){return e-=t,e=_o(e,1/n,r),o!==void 0&&(e=_o(e,1/o,r)),e}function BC(e,t=0,n=1,r=.5,o,i=e,s=e){if(at.test(t)&&(t=parseFloat(t),t=Y(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Y(i.min,i.max,r);e===i&&(a-=t),e.min=zc(e.min,t,n,a,o),e.max=zc(e.max,t,n,a,o)}function Bc(e,t,[n,r,o],i,s){BC(e,t[n],t[r],t[o],t.scale,i,s)}const DC=["x","scaleX","originX"],IC=["y","scaleY","originY"];function Dc(e,t,n,r){Bc(e.x,t,DC,n?n.x:void 0,r?r.x:void 0),Bc(e.y,t,IC,n?n.y:void 0,r?r.y:void 0)}function Ic(e){return e.translate===0&&e.scale===1}function jf(e){return Ic(e.x)&&Ic(e.y)}function Vc(e,t){return e.min===t.min&&e.max===t.max}function VC(e,t){return Vc(e.x,t.x)&&Vc(e.y,t.y)}function Fc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zf(e,t){return Fc(e.x,t.x)&&Fc(e.y,t.y)}function Lc(e){return ke(e.x)/ke(e.y)}function Oc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Je(e){return[e("x"),e("y")]}function FC(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,pathRotation:d,rotateX:h,rotateY:m,skewX:y,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),y&&(r+=`skewX(${y}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Bf=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],LC=Bf.length,Wc=e=>typeof e=="string"?parseFloat(e):e,Nc=e=>typeof e=="number"||E.test(e);function OC(e,t,n,r,o,i){o?(e.opacity=Y(0,n.opacity??1,WC(r)),e.opacityExit=Y(t.opacity??1,0,NC(r))):i&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(sr(e,t,r))}function HC(e,t,n){const r=be(e)?e:xn(e);return r.start(Aa("",r,t,n)),r.animation}function cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const UC=(e,t)=>e.depth-t.depth;class GC{constructor(){this.children=[],this.isDirty=!1}add(t){pa(this.children,t),this.isDirty=!0}remove(t){wo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(UC),this.isDirty=!1,this.children.forEach(t)}}function qC(e,t){const n=we.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(_t(r),e(i-t))};return Z.setup(r,!0),()=>_t(r)}function uo(e){return be(e)?e.get():e}class KC{constructor(){this.members=[]}add(t){pa(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(wo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(wo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:i}=t.options;(o===void 0||o!==i)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const fo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Wi=["","X","Y","Z"],XC=1e3;let YC=0;function Ni(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function If(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rf(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&If(r)}function Vf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=YC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QC),this.nodes.forEach(iT),this.nodes.forEach(sT),this.nodes.forEach(eT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;Z.read(()=>{d=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,u&&u(),u=qC(h,250),fo.hasAnimatedSinceResize&&(fo.hasAnimatedSinceResize=!1,this.nodes.forEach(qc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||dT,{onLayoutAnimationStart:g,onLayoutAnimationComplete:S}=c.getProps(),w=!this.targetLayout||!zf(this.targetLayout,m),C=!d&&h;if(this.options.layoutRoot||this.resumeFrom||C||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Pa(y,"layout"),onPlay:g,onComplete:S};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,C,T.path)}else d||qc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_t(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&If(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ke(this.snapshot.measuredBox.x)&&!ke(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const A=_/1e3,$=R?.(A);$?(h.x.translate=$.x,h.x.scale=Y(s.x.scale,1,A),h.x.origin=s.x.origin,h.x.originPoint=s.x.originPoint,h.y.translate=$.y,h.y.scale=Y(s.y.scale,1,A),h.y.origin=s.y.origin,h.y.originPoint=s.y.originPoint):(Kc(h.x,s.x,A),Kc(h.y,s.y,A)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ro(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),cT(this.relativeTarget,this.relativeTargetOrigin,m,A),P&&VC(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=he()),Ue(P,this.relativeTarget)),S&&(this.animationValues=d,OC(d,u,this.latestValues,A,T,C)),$&&$.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=$.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{fo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.motionValue.jump(0,!1),this.currentAnimation=HC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(XC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Ff(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const d=ke(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=ke(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Ue(a,l),co(a,u),Yn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new KC),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ni("z",s,c,this.animationValues);for(let u=0;us.currentAnimation?.stop()),this.root.nodes.forEach(Uc),this.root.sharedNodes.clear()}}}function ZC(e){e.updateLayout()}function JC(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;if(o==="size")Je(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=ke(d);d.min=n[u].min,d.max=d.min+h});else if(o==="x"||o==="y"){const u=o==="x"?"y":"x";Is(i?t.measuredBox[u]:t.layoutBox[u],n[u])}else Ff(o,t.layoutBox,n)&&Je(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=ke(n[u]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=cn();Yn(s,n,t.layoutBox);const a=cn();i?Yn(a,e.applyTransform(r,!0),t.measuredBox):Yn(a,n,t.layoutBox);const l=!jf(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const m=e.options.layoutAnchor||void 0,y=he();Ro(y,t.layoutBox,d.layoutBox,m);const g=he();Ro(g,n,h.layoutBox,m),zf(y,g)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function QC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tT(e){e.clearSnapshot()}function Uc(e){e.clearMeasurements()}function nT(e){e.isLayoutDirty=!0,e.updateLayout()}function Gc(e){e.isLayoutDirty=!1}function rT(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function oT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iT(e){e.resolveTargetDelta()}function sT(e){e.calcProjection()}function aT(e){e.resetSkewAndRotation()}function lT(e){e.removeLeadSnapshot()}function Kc(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xc(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function cT(e,t,n,r){Xc(e.x,t.x,n.x,r),Xc(e.y,t.y,n.y,r)}function uT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dT={duration:.45,ease:[.4,0,.1,1]},Yc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zc=Yc("applewebkit/")&&!Yc("chrome/")?Math.round:Le;function Jc(e){e.min=Zc(e.min),e.max=Zc(e.max)}function fT(e){Jc(e.x),Jc(e.y)}function Ff(e,t,n){return e==="position"||e==="preserve-aspect"&&!jC(Lc(t),Lc(n),.2)}function hT(e){return e!==e.root&&e.scroll?.wasRoot}const pT=Vf({attachResizeListener:(e,t)=>cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Hi={current:void 0},Lf=Vf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hi.current){const e=new pT({});e.mount(window),e.setOptions({layoutScroll:!0}),Hi.current=e}return Hi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ia=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Qc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mT(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Qc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{width:h,height:m,top:y,left:g,right:S,bottom:w,direction:C}=l.current;if(t||i===!1||!a.current||!h||!m)return;const T=C==="rtl",P=n==="left"?T?`right: ${S}`:`left: ${g}`:T?`left: ${g}`:`right: ${S}`,R=r==="bottom"?`bottom: ${w}`:`top: ${y}`;a.current.dataset.motionPopId=s;const _=document.createElement("style");c&&(_.nonce=c);const A=o??document.head;return A.appendChild(_),_.sheet&&_.sheet.insertRule(` [data-motion-pop-id="${s}"] { position: absolute !important; width: ${h}px !important; @@ -306,7 +306,7 @@ import{r as v,g as xu,c as Pr,R as yl,j as p,a as Su,b as wu,d as Ve,e as Qi,D a ${P}px !important; ${R}px !important; } - `),()=>{a.current?.removeAttribute("data-motion-pop-id"),A.contains(_)&&A.removeChild(_)}},[t]),p.jsx(yT,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:v.cloneElement(e,{ref:d})})}const vT=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,anchorY:l,root:c})=>{const u=ha(xT),d=v.useId();let h=!0,m=v.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:y=>{u.set(y,!0);for(const g of u.values())if(!g)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&h&&(m={...m}),v.useMemo(()=>{u.forEach((y,g)=>u.set(g,!1))},[n]),v.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=p.jsx(bT,{pop:s==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),p.jsx(fr.Provider,{value:m,children:e})};function xT(){return new Map}function Lf(e=!0){const t=v.useContext(fr);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=v.useId();v.useEffect(()=>{if(e)return o(i)},[e]);const s=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}function ST(){return wT(v.useContext(fr))}function wT(e){return e===null?!0:e.isPresent}const Vr=e=>e.key||"";function Qc(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const kT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=Lf(s),h=v.useMemo(()=>Qc(e),[e]),m=s&&!u?[]:h.map(Vr),y=v.useRef(!0),g=v.useRef(h),S=ha(()=>new Map),w=v.useRef(new Set),[C,T]=v.useState(h),[P,R]=v.useState(h);hd(()=>{y.current=!1,g.current=h;for(let $=0;${const D=Vr($),j=s&&!u?!1:h===P||m.includes(D),F=()=>{if(w.current.has(D))return;if(S.has(D))w.current.add(D),S.set(D,!0);else return;let ue=!0;S.forEach(Oe=>{Oe||(ue=!1)}),ue&&(A?.(),R(g.current),s&&d?.(),r&&r())};return p.jsx(vT,{isPresent:j,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:j?void 0:F,anchorX:a,anchorY:l,children:$},D)})})},Of=v.createContext({strict:!1}),eu={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"]};let tu=!1;function CT(){if(tu)return;const e={};for(const t in eu)e[t]={isEnabled:n=>eu[t].some(r=>!!n[r])};gf(e),tu=!0}function Wf(){return CT(),iC()}function TT(e){const t=Wf();for(const n in e)t[n]={...t[n],...e[n]};gf(t)}const PT=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","propagate","ignoreStrict","viewport"]);function Eo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PT.has(e)}let Nf=e=>!Eo(e);function AT(e){typeof e=="function"&&(Nf=t=>t.startsWith("on")?!Eo(t):e(t))}try{AT(require("@emotion/is-prop-valid").default)}catch{}function $T(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||be(e[o])||(Nf(o)||n===!0&&Eo(o)||!t&&!Eo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ei=v.createContext({});function _T(e,t){if(Qo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||lr(n)?n:void 0,animate:lr(r)?r:void 0}}return e.inherit!==!1?t:{}}function RT(e){const{initial:t,animate:n}=_T(e,v.useContext(ei));return v.useMemo(()=>({initial:t,animate:n}),[nu(t),nu(n)])}function nu(e){return Array.isArray(e)?e.join(" "):e}const Va=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hf(e,t,n){for(const r in t)!be(t[r])&&!kf(r,n)&&(e[r]=t[r])}function ET({transformTemplate:e},t){return v.useMemo(()=>{const n=Va();return Ba(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MT(e,t){const n=e.style||{},r={};return Hf(r,n,e),Object.assign(r,ET(e,t)),r}function jT(e,t){const n={},r=MT(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Uf=()=>({...Va(),attrs:{}});function zT(e,t,n,r){const o=v.useMemo(()=>{const i=Uf();return Cf(i,t,Pf(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Hf(i,e.style,e),o.style={...i,...o.style}}return o}const BT=["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 Fa(e){return typeof e!="string"||e.includes("-")?!1:!!(BT.indexOf(e)>-1||/[A-Z]/u.test(e))}function DT(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??Fa(e)?zT:jT)(t,r,o,e),c=$T(t,typeof e=="string",i),u=e!==v.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=v.useMemo(()=>be(d)?d.get():d,[d]);return v.createElement(e,{...u,children:h})}function IT({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:VT(n,r,o,e),renderState:t()}}function VT(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=uo(i[h]);let{initial:s,animate:a}=e;const l=Qo(e),c=pf(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Jo(d)){const h=Array.isArray(d)?d:[d];for(let m=0;m(t,n)=>{const r=v.useContext(ei),o=v.useContext(fr),i=()=>IT(e,t,r,o);return n?i():ha(i)},FT=Gf({scrapeMotionValuesFromProps:Da,createRenderState:Va}),LT=Gf({scrapeMotionValuesFromProps:Af,createRenderState:Uf}),OT=Symbol.for("motionComponentSymbol");function WT(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const o=v.useRef(null);return v.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const s=r.current;if(typeof s=="function")if(i){const a=s(i);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[t])}const qf=v.createContext({});function Qt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NT(e,t,n,r,o,i){const{visualElement:s}=v.useContext(ei),a=v.useContext(Of),l=v.useContext(fr),c=v.useContext(Ia),u=c.reducedMotion,d=c.skipAnimations,h=v.useRef(null),m=v.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,g=v.useContext(qf);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&HT(h.current,n,o,g);const S=v.useRef(!1);v.useInsertionEffect(()=>{y&&S.current&&y.update(n,l)});const w=n[tf],C=v.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return hd(()=>{m.current=!0,y&&(S.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),C.current&&y.animationState&&y.animationState.animateChanges())}),v.useEffect(()=>{y&&(!C.current&&y.animationState&&y.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),y.enteringChildren=void 0)}),y}function HT(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Kf(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Qt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Kf(e){if(e)return e.options.allowProjection!==!1?e.projection:Kf(e.parent)}function Ui(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&TT(r);const i=n?n==="svg":Fa(e),s=i?LT:FT;function a(c,u){let d;const h={...v.useContext(Ia),...c,layoutId:UT(c)},{isStatic:m}=h,y=RT(c),g=s(c,m);if(!m&&typeof window<"u"){GT();const S=qT(h);d=S.MeasureLayout,y.visualElement=NT(e,g,h,o,S.ProjectionNode,i)}return p.jsxs(ei.Provider,{value:y,children:[d&&y.visualElement?p.jsx(d,{visualElement:y.visualElement,...h}):null,DT(e,c,WT(g,y.visualElement,u),g,m,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[OT]=e,l}function UT({layoutId:e}){const t=v.useContext(fa).id;return t&&e!==void 0?t+"-"+e:e}function GT(e,t){v.useContext(Of).strict}function qT(e){const t=Wf(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function KT(e,t){if(typeof Proxy>"u")return Ui;const n=new Map,r=(i,s)=>Ui(i,s,e,t),o=(i,s)=>r(i,s);return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Ui(s,void 0,e,t)),n.get(s))})}const XT=(e,t)=>t.isSVG??Fa(e)?new wC(t):new gC(t,{allowProjection:e!==v.Fragment});class YT extends Et{constructor(t){super(t),t.animationState||(t.animationState=AC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ZT=0;class JT extends Et{constructor(){super(...arguments),this.id=ZT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:i,custom:s}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){const a=Gt(this.node,i,s);if(a){const{transition:l,transitionEnd:c,...u}=a;for(const d in u)this.node.getValue(d)?.jump(u[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QT={animation:{Feature:YT},exit:{Feature:JT}};function gr(e){return{point:{x:e.pageX,y:e.pageY}}}const eP=e=>t=>Ea(t)&&e(t,gr(t));function Zn(e,t,n,r){return cr(e,t,eP(n),r)}const Xf=({current:e})=>e?e.ownerDocument.defaultView:null,ru=(e,t)=>Math.abs(e-t);function tP(e,t){const n=ru(e.x,t.x),r=ru(e.y,t.y);return Math.sqrt(n**2+r**2)}const ou=new Set(["auto","scroll"]);class Yf{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Fr(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Gi(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,g=tP(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!g)return;const{point:S}=m,{timestamp:w}=ge;this.history.push({...S,timestamp:w});const{onStart:C,onMove:T}=this.handlers;y||(C&&C(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Fr(y,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Gi(m.type==="pointercancel"?this.lastMoveEventInfo:Fr(y,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,C),S&&S(m,C)},!Ea(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const l=gr(t),c=Fr(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=ge;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Gi(c,this.history)),this.removeListeners=hr(Zn(this.contextWindow,"pointermove",this.handlePointerMove),Zn(this.contextWindow,"pointerup",this.handlePointerUp),Zn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(ou.has(r.overflowX)||ou.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),Z.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_t(this.updatePoint)}}function Fr(e,t){return t?{point:t(e.point)}:e}function iu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gi({point:e},t){return{point:e,delta:iu(e,Zf(t)),offset:iu(e,nP(t)),velocity:rP(t,.1)}}function nP(e){return e[0]}function Zf(e){return e[e.length-1]}function rP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Zf(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ee(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Ee(t)*2&&(r=e[1]);const i=Ie(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function oP(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function su(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function iP(e,{top:t,left:n,bottom:r,right:o}){return{x:su(e.x,n,o),y:su(e.y,t,r)}}function au(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sr(t.min,t.max-r,e.min):r>o&&(n=sr(e.min,e.max-o,t.min)),lt(0,1,n)}function lP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vs=.35;function cP(e=Vs){return e===!1?e=0:e===!0&&(e=Vs),{x:lu(e,"left","right"),y:lu(e,"top","bottom")}}function lu(e,t,n){return{min:cu(e,t),max:cu(e,n)}}function cu(e,t){return typeof e=="number"?e:e[t]||0}const uP=new WeakMap;class dP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(gr(d).point),this.stopAnimation()},s=(d,h)=>{const{drag:m,dragPropagation:y,onDragStart:g}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bk(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Je(w=>{let C=this.getAxisMotionValue(w).get()||0;if(at.test(C)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[w];P&&(C=ke(P)*(parseFloat(C)/100))}}this.originPoint[w]=C}),g&&Z.update(()=>g(d,h),!1,!0),$s(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:g,onDrag:S}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=h;if(y&&this.currentDirection===null){this.currentDirection=hP(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),S&&Z.update(()=>S(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Yf(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Xf(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Lr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=oP(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Qt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=iP(r.layoutBox,t):this.constraints=!1,this.elastic=cP(n),o!==this.constraints&&!Qt(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Je(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=lP(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qt(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;o.root&&(o.root.scroll=void 0,o.root.updateScroll());const i=uC(r,o.root,this.visualElement.getTransformPagePoint());let s=sP(o.layout.layoutBox,i);if(n){const a=n(aC(s));this.hasMutatedConstraints=!!a,a&&(s=bf(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Je(u=>{if(!Lr(u,n,this.currentDirection))return;let d=l&&l[u]||{};(s===!0||s===u)&&(d={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $s(this.visualElement,t),r.start(Aa(t,r,0,n,this.visualElement,!1))}stopAnimation(){Je(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Je(n=>{const{drag:r}=this.getProps();if(!Lr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Y(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Je(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=aP({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Je(s=>{if(!Lr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Y(l,c,o[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uP.set(this.visualElement,this);const t=this.visualElement.current,n=Zn(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,m=h!==t&&Ok(h);u&&d&&!m&&this.start(c)});let r;const o=()=>{const{dragConstraints:c}=this.getProps();Qt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fP(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Z.read(o);const a=cr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Je(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function uu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function fP(e,t,n){const r=yc(e,uu(n)),o=yc(t,uu(n));return()=>{r(),o()}}function Lr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pP extends Et{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new dP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const qi=e=>(t,n)=>{e&&Z.update(()=>e(t,n),!1,!0)};class mP extends Et{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Yf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:qi(t),onStart:qi(n),onMove:qi(r),onEnd:(i,s)=>{delete this.session,o&&Z.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Zn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ki=!1;class gP extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ki&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Ki=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ra.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ki=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jf(e){const[t,n]=Lf(),r=v.useContext(fa);return p.jsx(gP,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(qf),isPresent:t,safeToRemove:n})}const yP={pan:{Feature:mP},drag:{Feature:pP,ProjectionNode:Ff,MeasureLayout:Jf}};function du(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Z.postRender(()=>i(t,gr(t)))}class bP extends Et{mount(){const{current:t}=this.node;t&&(this.unmount=Ik(t,(n,r)=>(du(this.node,r,"Start"),o=>du(this.node,o,"End"))))}unmount(){}}class vP extends Et{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=hr(cr(this.node.current,"focus",()=>this.onFocus()),cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fu(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Z.postRender(()=>i(t,gr(t)))}class xP extends Et{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Nk(t,(o,i)=>(fu(this.node,i,"Start"),(s,{success:a})=>fu(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Fs=new WeakMap,Xi=new WeakMap,SP=e=>{const t=Fs.get(e.target);t&&t(e)},wP=e=>{e.forEach(SP)};function kP({root:e,...t}){const n=e||document;Xi.has(n)||Xi.set(n,{});const r=Xi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(wP,{root:e,...t})),r[o]}function CP(e,t,n){const r=kP(t);return Fs.set(e,n),r.observe(e),()=>{Fs.delete(e),r.unobserve(e)}}const TP={some:0,all:1};class PP extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:TP[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};this.stopObserver=CP(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AP(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function AP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $P={inView:{Feature:PP},tap:{Feature:xP},focus:{Feature:vP},hover:{Feature:bP}},_P={layout:{ProjectionNode:Ff,MeasureLayout:Jf}},RP={...QT,...$P,...yP,..._P},EP=KT(RP,XT),MP=(e,t)=>e.find(n=>n.id===t);function hu(e,t){const n=Qf(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Qf(e,t){for(const[n,r]of Object.entries(e))if(MP(r,t))return n}function jP(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function zP(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var BP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DP=Zu(function(e){return BP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),IP=DP,VP=function(t){return t!=="theme"},pu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IP:VP},mu=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},FP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ia(n,r,o),sd(function(){return sa(n,r,o)}),null},LP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=mu(t,n,r),l=a||pu(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var h=u[0];d.push(h[0]);for(var m=u.length,y=1;yt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=Xp(s,Bm),l=rt(e,t),c=Bp({},o,l,Cu(a),i),u=Ru(c)(t.theme);return r?[u,r]:u};function Yi(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=HP);const o=GP({baseStyle:n}),i=UP(e,r)(o);return v.forwardRef(function(l,c){const{children:u,...d}=l,{colorMode:h,forced:m}=da(),y=m?h:void 0;return v.createElement(i,{ref:c,"data-theme":y,...d},u)})}function qP(){const e=new Map;return new Proxy(Yi,{apply(t,n,r){return Yi(...r)},get(t,n){return e.has(n)||e.set(n,Yi(n)),e.get(n)}})}const J=qP(),KP={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},eh=v.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=KP,toastSpacing:u="0.5rem"}=e,[d,h]=v.useState(a),m=ST();kl(()=>{m||r?.()},[m]),kl(()=>{h(a)},[a]);const y=()=>h(null),g=()=>h(a),S=()=>{m&&o()};v.useEffect(()=>{m&&i&&o()},[m,i,o]),em(S,d);const w=v.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),C=v.useMemo(()=>jP(s),[s]);return p.jsx(EP.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:g,custom:{position:s},style:C,children:p.jsx(J.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:w,children:rt(n,{id:t,onClose:S})})})});eh.displayName="ToastComponent";function ce(e){return v.forwardRef(e)}var XP=typeof Element<"u",YP=typeof Map=="function",ZP=typeof Set=="function",JP=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ho(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ho(e[r],t[r]))return!1;return!0}var i;if(YP&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ho(r.value[1],t.get(r.value[0])))return!1;return!0}if(ZP&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(JP&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(XP&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!ho(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var QP=function(t,n){try{return ho(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const eA=xu(QP);function th(){const e=v.useContext(bn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function tA(){const e=da(),t=th();return{...e,theme:t}}function nA(e,t,n){if(t==null)return t;const r=o=>e.__cssMap?.[o]?.value;return r(t)??r(n)??n}function rA(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,c)=>{const u=`${e}.${l}`;return nA(i,u,s[c]??l)});return Array.isArray(t)?a:a[0]}}function oA(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!v.isValidElement(n)))}function nh(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=tA(),s=e?Tu(o,`components.${e}`):void 0,a=n||s,l=ot({theme:o,colorMode:i},a?.defaultProps??{},oA(r),(u,d)=>u?void 0:d),c=v.useRef({});if(a){const d=Um(a)(l);eA(c.current,d)||(c.current=d)}return c.current}function Mt(e,t={}){return nh(e,t)}function La(e,t={}){return nh(e,t)}const gu={path:p.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[p.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),p.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),p.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},yr=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...c}=e,u=ve("chakra-icon",a),d=Mt("Icon",e),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},m={ref:t,focusable:i,className:u,__css:h},y=r??gu.viewBox;if(n&&typeof n!="string")return p.jsx(J.svg,{as:n,...m,...c});const g=s??gu.path;return p.jsx(J.svg,{verticalAlign:"middle",viewBox:y,...m,...c,children:g})});yr.displayName="Icon";function iA(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function sA(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function yu(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const aA=y1({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Oa=ce((e,t)=>{const n=Mt("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=ct(e),c=ve("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${aA} ${i} linear infinite`,...n};return p.jsx(J.div,{ref:t,__css:u,className:c,...l,children:r&&p.jsx(J.span,{srOnly:!0,children:r})})});Oa.displayName="Spinner";const[lA,Wa]=xt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[cA,Na]=xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),rh={info:{icon:sA,colorScheme:"blue"},warning:{icon:yu,colorScheme:"orange"},success:{icon:iA,colorScheme:"green"},error:{icon:yu,colorScheme:"red"},loading:{icon:Oa,colorScheme:"blue"}};function uA(e){return rh[e].colorScheme}function dA(e){return rh[e].icon}const oh=ce(function(t,n){const{status:r="info",addRole:o=!0,...i}=ct(t),s=t.colorScheme??uA(r),a=La("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return p.jsx(lA,{value:{status:r},children:p.jsx(cA,{value:a,children:p.jsx(J.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:ve("chakra-alert",t.className),__css:l})})})});oh.displayName="Alert";function ih(e){const{status:t}=Wa(),n=dA(t),r=Na(),o=t==="loading"?r.spinner:r.icon;return p.jsx(J.span,{display:"inherit","data-status":t,...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||p.jsx(n,{h:"100%",w:"100%"})})}ih.displayName="AlertIcon";const sh=ce(function(t,n){const r=Na(),{status:o}=Wa();return p.jsx(J.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});sh.displayName="AlertTitle";const ah=ce(function(t,n){const{status:r}=Wa(),o=Na(),i={display:"inline",...o.description};return p.jsx(J.div,{ref:n,"data-status":r,...t,className:ve("chakra-alert__desc",t.className),__css:i})});ah.displayName="AlertDescription";function fA(e){return p.jsx(yr,{focusable:"false","aria-hidden":!0,...e,children:p.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const lh=ce(function(t,n){const r=Mt("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=ct(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return p.jsx(J.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||p.jsx(fA,{width:"1em",height:"1em"})})});lh.displayName="CloseButton";const hA=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:c}=e,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return p.jsxs(oh,{addRole:!1,status:t,variant:n,id:u?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[p.jsx(ih,{children:c}),p.jsxs(J.div,{flex:"1",maxWidth:"100%",children:[o&&p.jsx(sh,{id:u?.title,children:o}),a&&p.jsx(ah,{id:u?.description,display:"block",children:a})]}),i&&p.jsx(lh,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function pA(e={}){const{render:t,toastComponent:n=hA}=e;return o=>typeof t=="function"?t({...o,...e}):p.jsx(n,{...o,...e})}const mA={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Jn=gA(mA);function gA(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=yA(o,i),{position:a,id:l}=s;return r(c=>{const d=a.includes("top")?[s,...c[a]??[]]:[...c[a]??[],s];return{...c,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:c}=hu(a,o);return l&&c!==-1&&(a[l][c]={...a[l][c],...i,message:pA(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(u=>({...u,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=Qf(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!hu(Jn.getState(),o).position}}let bu=0;function yA(e,t={}){bu+=1;const n=t.id??bu,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Jn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[ch,bA]=xt({strict:!1,name:"PortalContext"}),Ha="chakra-portal",vA=".chakra-portal",xA=e=>p.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),SA=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=v.useState(null),i=v.useRef(null),[,s]=v.useState({});v.useEffect(()=>s({}),[]);const a=bA(),l=_1();ts(()=>{if(!r)return;const u=r.ownerDocument,d=t?a??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=Ha,d.appendChild(i.current),s({});const h=i.current;return()=>{d.contains(h)&&d.removeChild(h)}},[r]);const c=l?.zIndex?p.jsx(xA,{zIndex:l?.zIndex,children:n}):n;return i.current?Su.createPortal(p.jsx(ch,{value:i.current,children:c}),i.current):p.jsx("span",{ref:u=>{u&&o(u)}})},wA=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=v.useMemo(()=>{const l=o?.ownerDocument.createElement("div");return l&&(l.className=Ha),l},[o]),[,a]=v.useState({});return ts(()=>a({}),[]),ts(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Su.createPortal(p.jsx(ch,{value:r?s:null,children:t}),s):null};function ti(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?p.jsx(wA,{containerRef:n,...r}):p.jsx(SA,{...r})}ti.className=Ha;ti.selector=vA;ti.displayName="Portal";const[kA]=xt({name:"ToastOptionsContext",strict:!1}),CA=e=>{const t=v.useSyncExternalStore(Jn.subscribe,Jn.getState,Jn.getState),{motionVariants:n,component:r=eh,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const c=t[l];return p.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!c.length,id:`chakra-toast-manager-${l}`,style:zP(l),children:p.jsx(kT,{...i,initial:!1,children:c.map(u=>p.jsx(r,{motionVariants:n,...u},u.id))})},l)});return p.jsx(ti,{...o,children:a})},TA=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return p.jsxs(R1,{theme:r,...i,children:[p.jsx(kA,{value:o?.defaultOptions,children:n}),p.jsx(CA,{...o})]})},uh=TA(yS),dh=ce(function(t,n){const r=Mt("Badge",t),{className:o,...i}=ct(t);return p.jsx(J.span,{ref:n,className:ve("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});dh.displayName="Badge";const q=J("div");q.displayName="Box";const[_2,PA]=xt({strict:!1,name:"ButtonGroupContext"});function On(e){const{children:t,className:n,...r}=e,o=v.isValidElement(t)?v.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ve("chakra-button__icon",n);return p.jsx(J.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}On.displayName="ButtonIcon";function Os(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=p.jsx(Oa,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=ve("chakra-button__spinner",i),c=n==="start"?"marginEnd":"marginStart",u=v.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,r]);return p.jsx(J.div,{className:l,...a,__css:u,children:o})}Os.displayName="ButtonSpinner";function AA(e){const[t,n]=v.useState(!e);return{ref:v.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Rt=ce((e,t)=>{const n=PA(),r=Mt("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:h,spinner:m,spinnerPlacement:y="start",className:g,as:S,shouldWrapChildren:w,...C}=ct(e),T=v.useMemo(()=>{const A={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:P,type:R}=AA(S),_={rightIcon:c,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:w};return p.jsxs(J.button,{disabled:o||i,ref:Qp(t,P),as:S,type:h??R,"data-active":Ze(s),"data-loading":Ze(i),__css:T,className:ve("chakra-button",g),...C,children:[i&&y==="start"&&p.jsx(Os,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:m}),i?u||p.jsx(J.span,{opacity:0,children:p.jsx(vu,{..._})}):p.jsx(vu,{..._}),i&&y==="end"&&p.jsx(Os,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:m})]})});Rt.displayName="Button";function vu(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?p.jsxs("span",{style:{display:"contents"},children:[t&&p.jsx(On,{marginEnd:o,children:t}),r,n&&p.jsx(On,{marginStart:o,children:n})]}):p.jsxs(p.Fragment,{children:[t&&p.jsx(On,{marginEnd:o,children:t}),r,n&&p.jsx(On,{marginStart:o,children:n})]})}const fh=ce((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=v.isValidElement(a)?v.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return p.jsx(Rt,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});fh.displayName="IconButton";const[$A,_A]=xt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[RA,hh]=xt({strict:!1,name:"FormControlContext"});function EA(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=v.useId(),l=t||`field-${a}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[h,m]=v.useState(!1),[y,g]=v.useState(!1),[S,w]=v.useState(!1),C=v.useCallback((A={},$=null)=>({id:d,...A,ref:ns($,D=>{D&&g(!0)})}),[d]),T=v.useCallback((A={},$=null)=>({...A,ref:$,"data-focus":Ze(S),"data-disabled":Ze(o),"data-invalid":Ze(r),"data-readonly":Ze(i),id:A.id!==void 0?A.id:c,htmlFor:A.htmlFor!==void 0?A.htmlFor:l}),[l,o,S,r,i,c]),P=v.useCallback((A={},$=null)=>({id:u,...A,ref:ns($,D=>{D&&m(!0)}),"aria-live":"polite"}),[u]),R=v.useCallback((A={},$=null)=>({...A,...s,ref:$,role:"group","data-focus":Ze(S),"data-disabled":Ze(o),"data-invalid":Ze(r),"data-readonly":Ze(i)}),[s,o,S,r,i]),_=v.useCallback((A={},$=null)=>({...A,ref:$,role:"presentation","aria-hidden":!0,children:A.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:h,setHasFeedbackText:m,hasHelpText:y,setHasHelpText:g,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:s,getHelpTextProps:C,getErrorMessageProps:P,getRootProps:R,getLabelProps:T,getRequiredIndicatorProps:_}}const MA=ce(function(t,n){const r=La("Form",t),o=ct(t),{getRootProps:i,htmlProps:s,...a}=EA(o),l=ve("chakra-form-control",t.className);return p.jsx(RA,{value:a,children:p.jsx($A,{value:r,children:p.jsx(J.div,{...i({},n),className:l,__css:r.container})})})});MA.displayName="FormControl";const jA=ce(function(t,n){const r=hh(),o=_A(),i=ve("chakra-form__helper-text",t.className);return p.jsx(J.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});jA.displayName="FormHelperText";function zA(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=BA(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":mi(n),"aria-required":mi(o),"aria-readonly":mi(r)}}function BA(e){const t=hh(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...h}=e,m=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&m.push(t.feedbackId),t?.hasHelpText&&m.push(t.helpTextId),{...h,"aria-describedby":m.join(" ")||void 0,id:n??t?.id,isDisabled:r??c??t?.isDisabled,isReadOnly:o??l??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:a??t?.isInvalid,onFocus:Sl(t?.onFocus,u),onBlur:Sl(t?.onBlur,d)}}const Q=ce(function(t,n){const r=Mt("Code",t),{className:o,...i}=ct(t);return p.jsx(J.code,{ref:n,className:ve("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});Q.displayName="Code";const Ws=ce(function(t,n){const{className:r,centerContent:o,...i}=ct(t),s=Mt("Container",t);return p.jsx(J.div,{ref:n,className:ve("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Ws.displayName="Container";const po=ce(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,...u}=t,d={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c};return p.jsx(J.div,{ref:n,__css:d,...u})});po.displayName="Flex";const ph=ce(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:c,autoRows:u,templateRows:d,autoColumns:h,templateColumns:m,...y}=t,g={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:h,gridColumn:a,gridRow:l,gridAutoFlow:c,gridAutoRows:u,gridTemplateRows:d,gridTemplateColumns:m};return p.jsx(J.div,{ref:n,__css:g,...y})});ph.displayName="Grid";const mh=ce(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,c=th(),u=a?IA(a,c):VA(r);return p.jsx(ph,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:u,...l})});mh.displayName="SimpleGrid";function DA(e){return typeof e=="number"?`${e}px`:e}function IA(e,t){return Us(e,n=>{const r=rA("sizes",n,DA(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function VA(e){return Us(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const Ua=ce(function(t,n){const{htmlSize:r,...o}=t,i=La("Input",o),s=ct(o),a=zA(s),l=ve("chakra-input",t.className);return p.jsx(J.input,{size:r,...a,__css:i.field,ref:n,className:l})});Ua.displayName="Input";Ua.id="Input";const gh=e=>p.jsx(J.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});gh.displayName="StackItem";function FA(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Us(n,o=>r[o])}}const Kt=ce((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:c,className:u,shouldWrapChildren:d,...h}=e,m=n?"row":r??"column",y=v.useMemo(()=>FA({spacing:s,direction:m}),[s,m]),g=!!c,S=!d&&!g,w=v.useMemo(()=>{const T=Op(l);return S?T:T.map((P,R)=>{const _=typeof P.key<"u"?P.key:R,A=R+1===T.length,D=d?p.jsx(gh,{children:P},_):P;if(!g)return D;const j=v.cloneElement(c,{__css:y}),F=A?null:j;return p.jsxs(v.Fragment,{children:[D,F]},_)})},[c,y,g,S,d,l]),C=ve("chakra-stack",u);return p.jsx(J.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:m,flexWrap:a,gap:g?void 0:s,className:C,...h,children:w})});Kt.displayName="Stack";const yh=ce((e,t)=>p.jsx(Kt,{align:"center",...e,direction:"row",ref:t}));yh.displayName="HStack";const G=ce(function(t,n){const r=Mt("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=ct(t),c=Cu({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return p.jsx(J.p,{ref:n,className:ve("chakra-text",t.className),...c,...l,__css:r})});G.displayName="Text";function LA(e={}){if(typeof window>"u")return;const t=window[Qi]||{};window[Qi]={...t,React:e.React||t.React||Ve,createRoot:e.createRoot||t.createRoot||wu,ChakraProvider:e.ChakraProvider||t.ChakraProvider||uh,Badge:e.Badge||t.Badge||dh,Button:e.Button||t.Button||Rt,HStack:e.HStack||t.HStack||yh,IconButton:e.IconButton||t.IconButton||fh,Input:e.Input||t.Input||Ua,Text:e.Text||t.Text||G,...e.deps||{},theme:Object.prototype.hasOwnProperty.call(e,"theme")?e.theme:t.theme,chakraProviderProps:{...t.chakraProviderProps||{},...e.chakraProviderProps||{}}}}const Or=new Map;function OA(e=[]){if(typeof window>"u")return!1;const t=window[Qi];return e.every(n=>t?.[n])}function WA(e=[]){typeof window>"u"||OA(e)||LA()}function NA(e,t){const n=`${e}:${t}`;return Or.has(n)||Or.set(n,import(t).catch(r=>{throw Or.delete(n),r})),Or.get(n)}function HA({componentName:e,tagName:t,defaultRemoteUrl:n,requiredDeps:r,normalizeProps:o}){return function({theme:s,chakraProviderProps:a,...l}){const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null);return d.current={...o?o(l):l,...s!==void 0?{theme:s}:{},...a?{chakraProviderProps:a}:{}},v.useEffect(()=>{let h=!0;return WA(r),NA(e,n).then(()=>{if(!h||!c.current)return;const m=document.createElement(t);m.componentProps=d.current,c.current.appendChild(m),u.current=m}).catch(m=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,m)}),()=>{h=!1,u.current&&(u.current.remove(),u.current=null)}},[e,n,t]),v.useEffect(()=>{u.current&&(u.current.componentProps=d.current)}),p.jsx("span",{ref:c,style:{display:"contents"}})}}const Zi=HA({componentName:"Pagination",tagName:"uikit-pagination",defaultRemoteUrl:Ns.Pagination,requiredDeps:["React","createRoot","ChakraProvider","Button","HStack","IconButton","Input","Text"]}),Wr=new Map;function UA(e,t){const n=`${e}:${t}`;return Wr.has(n)||Wr.set(n,import(t).catch(r=>{throw Wr.delete(n),r})),Wr.get(n)}function GA({componentName:e,tagName:t,defaultRemoteUrl:n,normalizeProps:r}){return function(i){const s=v.useRef(null),a=v.useRef(null),l=v.useRef(null);return l.current=r?r(i):i,v.useEffect(()=>{let c=!0;return UA(e,n).then(()=>{if(!c||!s.current)return;const u=document.createElement(t);u.componentProps=l.current,s.current.appendChild(u),a.current=u}).catch(u=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,u)}),()=>{c=!1,a.current&&(a.current.remove(),a.current=null)}},[e,n,t]),v.useEffect(()=>{a.current&&(a.current.componentProps=l.current)}),p.jsx("span",{ref:s,style:{display:"contents"}})}}const bh=Symbol.for("uikit.remote.app-header.slot");function Xt(e){function t(){return null}return t[bh]=e,t}const qA=Xt("brandSection"),KA=Xt("logo"),XA=Xt("brand"),YA=Xt("title"),ZA=Xt("description"),JA=Xt("bi"),QA=Xt("extra");function Qn(e){if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(Qn).filter(Boolean).join("");if(Ve.isValidElement(e))return Qn(e.props?.children)}}function e2(e){const t={showBi:!1,showExtra:!1};function n(r){Ve.Children.forEach(r,o=>{if(!Ve.isValidElement(o))return;const i=o.type?.[bh];i==="logo"?(t.logoSrc=o.props.src,t.logoAlt=o.props.alt):i==="title"?t.title=Qn(o.props.children):i==="description"?t.description=Qn(o.props.children):i==="bi"?(t.showBi=!0,t.biLogoSrc=o.props.logoSrc||o.props.src,t.biLogoAlt=o.props.alt,t.biText=o.props.text):i==="extra"&&(t.showExtra=!0,t.extraLogoSrc=o.props.logoSrc||o.props.src,t.extraLogoAlt=o.props.alt,t.extraText=o.props.text??Qn(o.props.children)),o.props?.children&&n(o.props.children)})}return n(e),t}const t2=GA({componentName:"AppHeader",tagName:"uikit-app-header",defaultRemoteUrl:Ns.AppHeader,normalizeProps:({children:e,...t})=>e==null?t:{...t,...e2(e)}});function n2(e){return p.jsx(t2,{...e})}const Tt=Object.assign(n2,{BrandSection:qA,Logo:KA,Brand:XA,Title:YA,Description:ZA,Extra:QA,Bi:JA}),Nr=new Map;function r2(){if(typeof window>"u")return;const e=window[bl]||{};window[bl]={...e,React:e.React||Ve,createRoot:e.createRoot||wu}}function o2(e,t){const n=`${e}:${t}`;return Nr.has(n)||Nr.set(n,import(t).catch(r=>{throw Nr.delete(n),r})),Nr.get(n)}function i2({componentName:e,tagName:t,defaultRemoteUrl:n,normalizeProps:r}){return function(i){const s=v.useRef(null),a=v.useRef(null),l=v.useRef(null);return l.current=r?r(i):i,v.useEffect(()=>{let c=!0;return r2(),o2(e,n).then(()=>{if(!c||!s.current)return;const u=document.createElement(t);u.componentProps=l.current,s.current.appendChild(u),a.current=u}).catch(u=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,u)}),()=>{c=!1,a.current&&(a.current.remove(),a.current=null)}},[e,n,t]),v.useEffect(()=>{a.current&&(a.current.componentProps=l.current)}),Ve.createElement("span",{ref:s,style:{display:"contents"}})}}const vh=Symbol.for("uikit.remote.app-sidebar.slot");function s2(e){function t(){return null}return t[vh]=e,t}const a2=s2("exit");function l2(e){const t={showExit:!1};return Ve.Children.forEach(e,n=>{Ve.isValidElement(n)&&n.type?.[vh]==="exit"&&(t.showExit=!0,t.onExit=n.props.onClick,t.exitDisabled=!!n.props.disabled)}),t}function c2(e){if(!e||Ve.isValidElement(e))return e;if(typeof e=="function")return Ve.createElement(e);if(typeof e=="object"&&e?.$$typeof)try{return Ve.createElement(e)}catch{return e}return e}function u2(e){return Array.isArray(e)?e.map(t=>({...t,icon:c2(t?.icon)})):[]}const d2=i2({componentName:"AppSidebar",tagName:"uikit-app-sidebar",defaultRemoteUrl:Ns.AppSidebar,normalizeProps:({children:e,items:t,...n})=>({...n,items:u2(t),...e!=null?l2(e):{}})});function f2(e){return Ve.createElement(d2,e)}const Hr=Object.assign(f2,{Exit:a2}),h2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2096'%3e%3crect%20width='96'%20height='96'%20rx='24'%20fill='%23fff'/%3e%3ccircle%20cx='48'%20cy='48'%20r='27'%20fill='%23314E89'/%3e%3cpath%20d='M35%2050.5%2044%2059l18-22'%20fill='none'%20stroke='%23fff'%20stroke-width='7'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",p2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2096'%3e%3crect%20width='96'%20height='96'%20rx='24'%20fill='%23fff'/%3e%3cpath%20d='M27%2029h42v38H27z'%20fill='%23314E89'%20rx='8'/%3e%3cpath%20d='M36%2039h24M36%2048h24M36%2057h15'%20stroke='%23fff'%20stroke-width='5'%20stroke-linecap='round'/%3e%3c/svg%3e",m2=""+new URL("bi-logo-DqGAmlZy.webp",import.meta.url).href,g2=`import { AppHeader } from "uikit/remote/ui"; + `),()=>{a.current?.removeAttribute("data-motion-pop-id"),A.contains(_)&&A.removeChild(_)}},[t]),p.jsx(yT,{isPresent:t,childRef:a,sizeRef:l,pop:i,children:i===!1?e:v.cloneElement(e,{ref:d})})}const vT=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,anchorY:l,root:c})=>{const u=ha(xT),d=v.useId();let h=!0,m=v.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:y=>{u.set(y,!0);for(const g of u.values())if(!g)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&h&&(m={...m}),v.useMemo(()=>{u.forEach((y,g)=>u.set(g,!1))},[n]),v.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=p.jsx(bT,{pop:s==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),p.jsx(fr.Provider,{value:m,children:e})};function xT(){return new Map}function Of(e=!0){const t=v.useContext(fr);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=v.useId();v.useEffect(()=>{if(e)return o(i)},[e]);const s=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}function ST(){return wT(v.useContext(fr))}function wT(e){return e===null?!0:e.isPresent}const Vr=e=>e.key||"";function eu(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const kT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=Of(s),h=v.useMemo(()=>eu(e),[e]),m=s&&!u?[]:h.map(Vr),y=v.useRef(!0),g=v.useRef(h),S=ha(()=>new Map),w=v.useRef(new Set),[C,T]=v.useState(h),[P,R]=v.useState(h);pd(()=>{y.current=!1,g.current=h;for(let $=0;${const D=Vr($),j=s&&!u?!1:h===P||m.includes(D),F=()=>{if(w.current.has(D))return;if(S.has(D))w.current.add(D),S.set(D,!0);else return;let ue=!0;S.forEach(Oe=>{Oe||(ue=!1)}),ue&&(A?.(),R(g.current),s&&d?.(),r&&r())};return p.jsx(vT,{isPresent:j,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:j?void 0:F,anchorX:a,anchorY:l,children:$},D)})})},Wf=v.createContext({strict:!1}),tu={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"]};let nu=!1;function CT(){if(nu)return;const e={};for(const t in tu)e[t]={isEnabled:n=>tu[t].some(r=>!!n[r])};yf(e),nu=!0}function Nf(){return CT(),iC()}function TT(e){const t=Nf();for(const n in e)t[n]={...t[n],...e[n]};yf(t)}const PT=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","propagate","ignoreStrict","viewport"]);function Eo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PT.has(e)}let Hf=e=>!Eo(e);function AT(e){typeof e=="function"&&(Hf=t=>t.startsWith("on")?!Eo(t):e(t))}try{AT(require("@emotion/is-prop-valid").default)}catch{}function $T(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||be(e[o])||(Hf(o)||n===!0&&Eo(o)||!t&&!Eo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ei=v.createContext({});function _T(e,t){if(Qo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||lr(n)?n:void 0,animate:lr(r)?r:void 0}}return e.inherit!==!1?t:{}}function RT(e){const{initial:t,animate:n}=_T(e,v.useContext(ei));return v.useMemo(()=>({initial:t,animate:n}),[ru(t),ru(n)])}function ru(e){return Array.isArray(e)?e.join(" "):e}const Va=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uf(e,t,n){for(const r in t)!be(t[r])&&!Cf(r,n)&&(e[r]=t[r])}function ET({transformTemplate:e},t){return v.useMemo(()=>{const n=Va();return Ba(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MT(e,t){const n=e.style||{},r={};return Uf(r,n,e),Object.assign(r,ET(e,t)),r}function jT(e,t){const n={},r=MT(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Gf=()=>({...Va(),attrs:{}});function zT(e,t,n,r){const o=v.useMemo(()=>{const i=Gf();return Tf(i,t,Af(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Uf(i,e.style,e),o.style={...i,...o.style}}return o}const BT=["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 Fa(e){return typeof e!="string"||e.includes("-")?!1:!!(BT.indexOf(e)>-1||/[A-Z]/u.test(e))}function DT(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??Fa(e)?zT:jT)(t,r,o,e),c=$T(t,typeof e=="string",i),u=e!==v.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=v.useMemo(()=>be(d)?d.get():d,[d]);return v.createElement(e,{...u,children:h})}function IT({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:VT(n,r,o,e),renderState:t()}}function VT(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=uo(i[h]);let{initial:s,animate:a}=e;const l=Qo(e),c=mf(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Jo(d)){const h=Array.isArray(d)?d:[d];for(let m=0;m(t,n)=>{const r=v.useContext(ei),o=v.useContext(fr),i=()=>IT(e,t,r,o);return n?i():ha(i)},FT=qf({scrapeMotionValuesFromProps:Da,createRenderState:Va}),LT=qf({scrapeMotionValuesFromProps:$f,createRenderState:Gf}),OT=Symbol.for("motionComponentSymbol");function WT(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const o=v.useRef(null);return v.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const s=r.current;if(typeof s=="function")if(i){const a=s(i);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[t])}const Kf=v.createContext({});function Qt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function NT(e,t,n,r,o,i){const{visualElement:s}=v.useContext(ei),a=v.useContext(Wf),l=v.useContext(fr),c=v.useContext(Ia),u=c.reducedMotion,d=c.skipAnimations,h=v.useRef(null),m=v.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,g=v.useContext(Kf);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&HT(h.current,n,o,g);const S=v.useRef(!1);v.useInsertionEffect(()=>{y&&S.current&&y.update(n,l)});const w=n[nf],C=v.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return pd(()=>{m.current=!0,y&&(S.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),C.current&&y.animationState&&y.animationState.animateChanges())}),v.useEffect(()=>{y&&(!C.current&&y.animationState&&y.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),y.enteringChildren=void 0)}),y}function HT(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xf(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Qt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Xf(e){if(e)return e.options.allowProjection!==!1?e.projection:Xf(e.parent)}function Ui(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&TT(r);const i=n?n==="svg":Fa(e),s=i?LT:FT;function a(c,u){let d;const h={...v.useContext(Ia),...c,layoutId:UT(c)},{isStatic:m}=h,y=RT(c),g=s(c,m);if(!m&&typeof window<"u"){GT();const S=qT(h);d=S.MeasureLayout,y.visualElement=NT(e,g,h,o,S.ProjectionNode,i)}return p.jsxs(ei.Provider,{value:y,children:[d&&y.visualElement?p.jsx(d,{visualElement:y.visualElement,...h}):null,DT(e,c,WT(g,y.visualElement,u),g,m,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=v.forwardRef(a);return l[OT]=e,l}function UT({layoutId:e}){const t=v.useContext(fa).id;return t&&e!==void 0?t+"-"+e:e}function GT(e,t){v.useContext(Wf).strict}function qT(e){const t=Nf(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function KT(e,t){if(typeof Proxy>"u")return Ui;const n=new Map,r=(i,s)=>Ui(i,s,e,t),o=(i,s)=>r(i,s);return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Ui(s,void 0,e,t)),n.get(s))})}const XT=(e,t)=>t.isSVG??Fa(e)?new wC(t):new gC(t,{allowProjection:e!==v.Fragment});class YT extends Et{constructor(t){super(t),t.animationState||(t.animationState=AC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ZT=0;class JT extends Et{constructor(){super(...arguments),this.id=ZT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:i,custom:s}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){const a=Gt(this.node,i,s);if(a){const{transition:l,transitionEnd:c,...u}=a;for(const d in u)this.node.getValue(d)?.jump(u[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QT={animation:{Feature:YT},exit:{Feature:JT}};function gr(e){return{point:{x:e.pageX,y:e.pageY}}}const eP=e=>t=>Ea(t)&&e(t,gr(t));function Zn(e,t,n,r){return cr(e,t,eP(n),r)}const Yf=({current:e})=>e?e.ownerDocument.defaultView:null,ou=(e,t)=>Math.abs(e-t);function tP(e,t){const n=ou(e.x,t.x),r=ou(e.y,t.y);return Math.sqrt(n**2+r**2)}const iu=new Set(["auto","scroll"]);class Zf{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Fr(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Gi(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,g=tP(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!g)return;const{point:S}=m,{timestamp:w}=ge;this.history.push({...S,timestamp:w});const{onStart:C,onMove:T}=this.handlers;y||(C&&C(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Fr(y,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Gi(m.type==="pointercancel"?this.lastMoveEventInfo:Fr(y,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,C),S&&S(m,C)},!Ea(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const l=gr(t),c=Fr(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=ge;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Gi(c,this.history)),this.removeListeners=hr(Zn(this.contextWindow,"pointermove",this.handlePointerMove),Zn(this.contextWindow,"pointerup",this.handlePointerUp),Zn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(iu.has(r.overflowX)||iu.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),Z.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_t(this.updatePoint)}}function Fr(e,t){return t?{point:t(e.point)}:e}function su(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gi({point:e},t){return{point:e,delta:su(e,Jf(t)),offset:su(e,nP(t)),velocity:rP(t,.1)}}function nP(e){return e[0]}function Jf(e){return e[e.length-1]}function rP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Jf(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ee(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Ee(t)*2&&(r=e[1]);const i=Ie(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function oP(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function au(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function iP(e,{top:t,left:n,bottom:r,right:o}){return{x:au(e.x,n,o),y:au(e.y,t,r)}}function lu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sr(t.min,t.max-r,e.min):r>o&&(n=sr(e.min,e.max-o,t.min)),lt(0,1,n)}function lP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vs=.35;function cP(e=Vs){return e===!1?e=0:e===!0&&(e=Vs),{x:cu(e,"left","right"),y:cu(e,"top","bottom")}}function cu(e,t,n){return{min:uu(e,t),max:uu(e,n)}}function uu(e,t){return typeof e=="number"?e:e[t]||0}const uP=new WeakMap;class dP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(gr(d).point),this.stopAnimation()},s=(d,h)=>{const{drag:m,dragPropagation:y,onDragStart:g}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bk(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Je(w=>{let C=this.getAxisMotionValue(w).get()||0;if(at.test(C)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[w];P&&(C=ke(P)*(parseFloat(C)/100))}}this.originPoint[w]=C}),g&&Z.update(()=>g(d,h),!1,!0),$s(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:g,onDrag:S}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=h;if(y&&this.currentDirection===null){this.currentDirection=hP(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),S&&Z.update(()=>S(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zf(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Yf(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Lr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=oP(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Qt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=iP(r.layoutBox,t):this.constraints=!1,this.elastic=cP(n),o!==this.constraints&&!Qt(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Je(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=lP(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qt(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;o.root&&(o.root.scroll=void 0,o.root.updateScroll());const i=uC(r,o.root,this.visualElement.getTransformPagePoint());let s=sP(o.layout.layoutBox,i);if(n){const a=n(aC(s));this.hasMutatedConstraints=!!a,a&&(s=vf(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Je(u=>{if(!Lr(u,n,this.currentDirection))return;let d=l&&l[u]||{};(s===!0||s===u)&&(d={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $s(this.visualElement,t),r.start(Aa(t,r,0,n,this.visualElement,!1))}stopAnimation(){Je(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Je(n=>{const{drag:r}=this.getProps();if(!Lr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Y(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Je(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=aP({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Je(s=>{if(!Lr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Y(l,c,o[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uP.set(this.visualElement,this);const t=this.visualElement.current,n=Zn(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,m=h!==t&&Ok(h);u&&d&&!m&&this.start(c)});let r;const o=()=>{const{dragConstraints:c}=this.getProps();Qt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fP(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Z.read(o);const a=cr(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Je(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function du(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function fP(e,t,n){const r=bc(e,du(n)),o=bc(t,du(n));return()=>{r(),o()}}function Lr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pP extends Et{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new dP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const qi=e=>(t,n)=>{e&&Z.update(()=>e(t,n),!1,!0)};class mP extends Et{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Zf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:qi(t),onStart:qi(n),onMove:qi(r),onEnd:(i,s)=>{delete this.session,o&&Z.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Zn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ki=!1;class gP extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ki&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Ki=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Ra.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ki=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Qf(e){const[t,n]=Of(),r=v.useContext(fa);return p.jsx(gP,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Kf),isPresent:t,safeToRemove:n})}const yP={pan:{Feature:mP},drag:{Feature:pP,ProjectionNode:Lf,MeasureLayout:Qf}};function fu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Z.postRender(()=>i(t,gr(t)))}class bP extends Et{mount(){const{current:t}=this.node;t&&(this.unmount=Ik(t,(n,r)=>(fu(this.node,r,"Start"),o=>fu(this.node,o,"End"))))}unmount(){}}class vP extends Et{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=hr(cr(this.node.current,"focus",()=>this.onFocus()),cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hu(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Z.postRender(()=>i(t,gr(t)))}class xP extends Et{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Nk(t,(o,i)=>(hu(this.node,i,"Start"),(s,{success:a})=>hu(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Fs=new WeakMap,Xi=new WeakMap,SP=e=>{const t=Fs.get(e.target);t&&t(e)},wP=e=>{e.forEach(SP)};function kP({root:e,...t}){const n=e||document;Xi.has(n)||Xi.set(n,{});const r=Xi.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(wP,{root:e,...t})),r[o]}function CP(e,t,n){const r=kP(t);return Fs.set(e,n),r.observe(e),()=>{Fs.delete(e),r.unobserve(e)}}const TP={some:0,all:1};class PP extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:TP[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};this.stopObserver=CP(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AP(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function AP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $P={inView:{Feature:PP},tap:{Feature:xP},focus:{Feature:vP},hover:{Feature:bP}},_P={layout:{ProjectionNode:Lf,MeasureLayout:Qf}},RP={...QT,...$P,...yP,..._P},EP=KT(RP,XT),MP=(e,t)=>e.find(n=>n.id===t);function pu(e,t){const n=eh(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function eh(e,t){for(const[n,r]of Object.entries(e))if(MP(r,t))return n}function jP(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function zP(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var BP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DP=Ju(function(e){return BP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),IP=DP,VP=function(t){return t!=="theme"},mu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IP:VP},gu=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},FP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ia(n,r,o),ad(function(){return sa(n,r,o)}),null},LP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=gu(t,n,r),l=a||mu(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var h=u[0];d.push(h[0]);for(var m=u.length,y=1;yt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=Xp(s,Bm),l=rt(e,t),c=Bp({},o,l,Tu(a),i),u=Eu(c)(t.theme);return r?[u,r]:u};function Yi(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=HP);const o=GP({baseStyle:n}),i=UP(e,r)(o);return v.forwardRef(function(l,c){const{children:u,...d}=l,{colorMode:h,forced:m}=da(),y=m?h:void 0;return v.createElement(i,{ref:c,"data-theme":y,...d},u)})}function qP(){const e=new Map;return new Proxy(Yi,{apply(t,n,r){return Yi(...r)},get(t,n){return e.has(n)||e.set(n,Yi(n)),e.get(n)}})}const J=qP(),KP={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},th=v.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=KP,toastSpacing:u="0.5rem"}=e,[d,h]=v.useState(a),m=ST();Cl(()=>{m||r?.()},[m]),Cl(()=>{h(a)},[a]);const y=()=>h(null),g=()=>h(a),S=()=>{m&&o()};v.useEffect(()=>{m&&i&&o()},[m,i,o]),em(S,d);const w=v.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),C=v.useMemo(()=>jP(s),[s]);return p.jsx(EP.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:g,custom:{position:s},style:C,children:p.jsx(J.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:w,children:rt(n,{id:t,onClose:S})})})});th.displayName="ToastComponent";function ce(e){return v.forwardRef(e)}var XP=typeof Element<"u",YP=typeof Map=="function",ZP=typeof Set=="function",JP=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ho(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ho(e[r],t[r]))return!1;return!0}var i;if(YP&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ho(r.value[1],t.get(r.value[0])))return!1;return!0}if(ZP&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(JP&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(XP&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!ho(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var QP=function(t,n){try{return ho(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const eA=Su(QP);function La(){const e=v.useContext(bn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function tA(){const e=da(),t=La();return{...e,theme:t}}function nA(e,t,n){if(t==null)return t;const r=o=>e.__cssMap?.[o]?.value;return r(t)??r(n)??n}function rA(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,c)=>{const u=`${e}.${l}`;return nA(i,u,s[c]??l)});return Array.isArray(t)?a:a[0]}}function oA(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!v.isValidElement(n)))}function nh(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=tA(),s=e?Pu(o,`components.${e}`):void 0,a=n||s,l=ot({theme:o,colorMode:i},a?.defaultProps??{},oA(r),(u,d)=>u?void 0:d),c=v.useRef({});if(a){const d=Um(a)(l);eA(c.current,d)||(c.current=d)}return c.current}function Mt(e,t={}){return nh(e,t)}function Oa(e,t={}){return nh(e,t)}const yu={path:p.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[p.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),p.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),p.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},yr=ce((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...c}=e,u=ve("chakra-icon",a),d=Mt("Icon",e),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},m={ref:t,focusable:i,className:u,__css:h},y=r??yu.viewBox;if(n&&typeof n!="string")return p.jsx(J.svg,{as:n,...m,...c});const g=s??yu.path;return p.jsx(J.svg,{verticalAlign:"middle",viewBox:y,...m,...c,children:g})});yr.displayName="Icon";function iA(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function sA(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function bu(e){return p.jsx(yr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const aA=y1({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wa=ce((e,t)=>{const n=Mt("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=ct(e),c=ve("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${aA} ${i} linear infinite`,...n};return p.jsx(J.div,{ref:t,__css:u,className:c,...l,children:r&&p.jsx(J.span,{srOnly:!0,children:r})})});Wa.displayName="Spinner";const[lA,Na]=xt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[cA,Ha]=xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),rh={info:{icon:sA,colorScheme:"blue"},warning:{icon:bu,colorScheme:"orange"},success:{icon:iA,colorScheme:"green"},error:{icon:bu,colorScheme:"red"},loading:{icon:Wa,colorScheme:"blue"}};function uA(e){return rh[e].colorScheme}function dA(e){return rh[e].icon}const oh=ce(function(t,n){const{status:r="info",addRole:o=!0,...i}=ct(t),s=t.colorScheme??uA(r),a=Oa("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return p.jsx(lA,{value:{status:r},children:p.jsx(cA,{value:a,children:p.jsx(J.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:ve("chakra-alert",t.className),__css:l})})})});oh.displayName="Alert";function ih(e){const{status:t}=Na(),n=dA(t),r=Ha(),o=t==="loading"?r.spinner:r.icon;return p.jsx(J.span,{display:"inherit","data-status":t,...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||p.jsx(n,{h:"100%",w:"100%"})})}ih.displayName="AlertIcon";const sh=ce(function(t,n){const r=Ha(),{status:o}=Na();return p.jsx(J.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});sh.displayName="AlertTitle";const ah=ce(function(t,n){const{status:r}=Na(),o=Ha(),i={display:"inline",...o.description};return p.jsx(J.div,{ref:n,"data-status":r,...t,className:ve("chakra-alert__desc",t.className),__css:i})});ah.displayName="AlertDescription";function fA(e){return p.jsx(yr,{focusable:"false","aria-hidden":!0,...e,children:p.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const lh=ce(function(t,n){const r=Mt("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=ct(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return p.jsx(J.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||p.jsx(fA,{width:"1em",height:"1em"})})});lh.displayName="CloseButton";const hA=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:c}=e,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return p.jsxs(oh,{addRole:!1,status:t,variant:n,id:u?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[p.jsx(ih,{children:c}),p.jsxs(J.div,{flex:"1",maxWidth:"100%",children:[o&&p.jsx(sh,{id:u?.title,children:o}),a&&p.jsx(ah,{id:u?.description,display:"block",children:a})]}),i&&p.jsx(lh,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function pA(e={}){const{render:t,toastComponent:n=hA}=e;return o=>typeof t=="function"?t({...o,...e}):p.jsx(n,{...o,...e})}const mA={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Jn=gA(mA);function gA(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=yA(o,i),{position:a,id:l}=s;return r(c=>{const d=a.includes("top")?[s,...c[a]??[]]:[...c[a]??[],s];return{...c,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:c}=pu(a,o);return l&&c!==-1&&(a[l][c]={...a[l][c],...i,message:pA(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(u=>({...u,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=eh(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!pu(Jn.getState(),o).position}}let vu=0;function yA(e,t={}){vu+=1;const n=t.id??vu,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Jn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[ch,bA]=xt({strict:!1,name:"PortalContext"}),Ua="chakra-portal",vA=".chakra-portal",xA=e=>p.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),SA=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=v.useState(null),i=v.useRef(null),[,s]=v.useState({});v.useEffect(()=>s({}),[]);const a=bA(),l=_1();ts(()=>{if(!r)return;const u=r.ownerDocument,d=t?a??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=Ua,d.appendChild(i.current),s({});const h=i.current;return()=>{d.contains(h)&&d.removeChild(h)}},[r]);const c=l?.zIndex?p.jsx(xA,{zIndex:l?.zIndex,children:n}):n;return i.current?wu.createPortal(p.jsx(ch,{value:i.current,children:c}),i.current):p.jsx("span",{ref:u=>{u&&o(u)}})},wA=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=v.useMemo(()=>{const l=o?.ownerDocument.createElement("div");return l&&(l.className=Ua),l},[o]),[,a]=v.useState({});return ts(()=>a({}),[]),ts(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?wu.createPortal(p.jsx(ch,{value:r?s:null,children:t}),s):null};function ti(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?p.jsx(wA,{containerRef:n,...r}):p.jsx(SA,{...r})}ti.className=Ua;ti.selector=vA;ti.displayName="Portal";const[kA]=xt({name:"ToastOptionsContext",strict:!1}),CA=e=>{const t=v.useSyncExternalStore(Jn.subscribe,Jn.getState,Jn.getState),{motionVariants:n,component:r=th,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const c=t[l];return p.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!c.length,id:`chakra-toast-manager-${l}`,style:zP(l),children:p.jsx(kT,{...i,initial:!1,children:c.map(u=>p.jsx(r,{motionVariants:n,...u},u.id))})},l)});return p.jsx(ti,{...o,children:a})},TA=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return p.jsxs(R1,{theme:r,...i,children:[p.jsx(kA,{value:o?.defaultOptions,children:n}),p.jsx(CA,{...o})]})},uh=TA(yS),dh=ce(function(t,n){const r=Mt("Badge",t),{className:o,...i}=ct(t);return p.jsx(J.span,{ref:n,className:ve("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});dh.displayName="Badge";const q=J("div");q.displayName="Box";const[R2,PA]=xt({strict:!1,name:"ButtonGroupContext"});function On(e){const{children:t,className:n,...r}=e,o=v.isValidElement(t)?v.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ve("chakra-button__icon",n);return p.jsx(J.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}On.displayName="ButtonIcon";function Os(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=p.jsx(Wa,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=ve("chakra-button__spinner",i),c=n==="start"?"marginEnd":"marginStart",u=v.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,r]);return p.jsx(J.div,{className:l,...a,__css:u,children:o})}Os.displayName="ButtonSpinner";function AA(e){const[t,n]=v.useState(!e);return{ref:v.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Rt=ce((e,t)=>{const n=PA(),r=Mt("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:h,spinner:m,spinnerPlacement:y="start",className:g,as:S,shouldWrapChildren:w,...C}=ct(e),T=v.useMemo(()=>{const A={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:P,type:R}=AA(S),_={rightIcon:c,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:w};return p.jsxs(J.button,{disabled:o||i,ref:Qp(t,P),as:S,type:h??R,"data-active":Ze(s),"data-loading":Ze(i),__css:T,className:ve("chakra-button",g),...C,children:[i&&y==="start"&&p.jsx(Os,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:m}),i?u||p.jsx(J.span,{opacity:0,children:p.jsx(xu,{..._})}):p.jsx(xu,{..._}),i&&y==="end"&&p.jsx(Os,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:m})]})});Rt.displayName="Button";function xu(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?p.jsxs("span",{style:{display:"contents"},children:[t&&p.jsx(On,{marginEnd:o,children:t}),r,n&&p.jsx(On,{marginStart:o,children:n})]}):p.jsxs(p.Fragment,{children:[t&&p.jsx(On,{marginEnd:o,children:t}),r,n&&p.jsx(On,{marginStart:o,children:n})]})}const fh=ce((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=v.isValidElement(a)?v.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return p.jsx(Rt,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});fh.displayName="IconButton";const[$A,_A]=xt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[RA,hh]=xt({strict:!1,name:"FormControlContext"});function EA(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=v.useId(),l=t||`field-${a}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[h,m]=v.useState(!1),[y,g]=v.useState(!1),[S,w]=v.useState(!1),C=v.useCallback((A={},$=null)=>({id:d,...A,ref:ns($,D=>{D&&g(!0)})}),[d]),T=v.useCallback((A={},$=null)=>({...A,ref:$,"data-focus":Ze(S),"data-disabled":Ze(o),"data-invalid":Ze(r),"data-readonly":Ze(i),id:A.id!==void 0?A.id:c,htmlFor:A.htmlFor!==void 0?A.htmlFor:l}),[l,o,S,r,i,c]),P=v.useCallback((A={},$=null)=>({id:u,...A,ref:ns($,D=>{D&&m(!0)}),"aria-live":"polite"}),[u]),R=v.useCallback((A={},$=null)=>({...A,...s,ref:$,role:"group","data-focus":Ze(S),"data-disabled":Ze(o),"data-invalid":Ze(r),"data-readonly":Ze(i)}),[s,o,S,r,i]),_=v.useCallback((A={},$=null)=>({...A,ref:$,role:"presentation","aria-hidden":!0,children:A.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:h,setHasFeedbackText:m,hasHelpText:y,setHasHelpText:g,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:s,getHelpTextProps:C,getErrorMessageProps:P,getRootProps:R,getLabelProps:T,getRequiredIndicatorProps:_}}const MA=ce(function(t,n){const r=Oa("Form",t),o=ct(t),{getRootProps:i,htmlProps:s,...a}=EA(o),l=ve("chakra-form-control",t.className);return p.jsx(RA,{value:a,children:p.jsx($A,{value:r,children:p.jsx(J.div,{...i({},n),className:l,__css:r.container})})})});MA.displayName="FormControl";const jA=ce(function(t,n){const r=hh(),o=_A(),i=ve("chakra-form__helper-text",t.className);return p.jsx(J.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});jA.displayName="FormHelperText";function zA(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=BA(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":mi(n),"aria-required":mi(o),"aria-readonly":mi(r)}}function BA(e){const t=hh(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...h}=e,m=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&m.push(t.feedbackId),t?.hasHelpText&&m.push(t.helpTextId),{...h,"aria-describedby":m.join(" ")||void 0,id:n??t?.id,isDisabled:r??c??t?.isDisabled,isReadOnly:o??l??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:a??t?.isInvalid,onFocus:wl(t?.onFocus,u),onBlur:wl(t?.onBlur,d)}}const Q=ce(function(t,n){const r=Mt("Code",t),{className:o,...i}=ct(t);return p.jsx(J.code,{ref:n,className:ve("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});Q.displayName="Code";const Ws=ce(function(t,n){const{className:r,centerContent:o,...i}=ct(t),s=Mt("Container",t);return p.jsx(J.div,{ref:n,className:ve("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Ws.displayName="Container";const po=ce(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,...u}=t,d={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c};return p.jsx(J.div,{ref:n,__css:d,...u})});po.displayName="Flex";const ph=ce(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:c,autoRows:u,templateRows:d,autoColumns:h,templateColumns:m,...y}=t,g={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:h,gridColumn:a,gridRow:l,gridAutoFlow:c,gridAutoRows:u,gridTemplateRows:d,gridTemplateColumns:m};return p.jsx(J.div,{ref:n,__css:g,...y})});ph.displayName="Grid";const mh=ce(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,c=La(),u=a?IA(a,c):VA(r);return p.jsx(ph,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:u,...l})});mh.displayName="SimpleGrid";function DA(e){return typeof e=="number"?`${e}px`:e}function IA(e,t){return Us(e,n=>{const r=rA("sizes",n,DA(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function VA(e){return Us(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const Ga=ce(function(t,n){const{htmlSize:r,...o}=t,i=Oa("Input",o),s=ct(o),a=zA(s),l=ve("chakra-input",t.className);return p.jsx(J.input,{size:r,...a,__css:i.field,ref:n,className:l})});Ga.displayName="Input";Ga.id="Input";const gh=e=>p.jsx(J.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});gh.displayName="StackItem";function FA(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Us(n,o=>r[o])}}const Kt=ce((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:c,className:u,shouldWrapChildren:d,...h}=e,m=n?"row":r??"column",y=v.useMemo(()=>FA({spacing:s,direction:m}),[s,m]),g=!!c,S=!d&&!g,w=v.useMemo(()=>{const T=Op(l);return S?T:T.map((P,R)=>{const _=typeof P.key<"u"?P.key:R,A=R+1===T.length,D=d?p.jsx(gh,{children:P},_):P;if(!g)return D;const j=v.cloneElement(c,{__css:y}),F=A?null:j;return p.jsxs(v.Fragment,{children:[D,F]},_)})},[c,y,g,S,d,l]),C=ve("chakra-stack",u);return p.jsx(J.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:m,flexWrap:a,gap:g?void 0:s,className:C,...h,children:w})});Kt.displayName="Stack";const yh=ce((e,t)=>p.jsx(Kt,{align:"center",...e,direction:"row",ref:t}));yh.displayName="HStack";const G=ce(function(t,n){const r=Mt("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=ct(t),c=Tu({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return p.jsx(J.p,{ref:n,className:ve("chakra-text",t.className),...c,...l,__css:r})});G.displayName="Text";function LA(e={}){if(typeof window>"u")return;const t=window[Qi]||{};window[Qi]={...t,React:e.React||t.React||Ve,createRoot:e.createRoot||t.createRoot||ku,ChakraProvider:e.ChakraProvider||t.ChakraProvider||uh,Badge:e.Badge||t.Badge||dh,Button:e.Button||t.Button||Rt,HStack:e.HStack||t.HStack||yh,IconButton:e.IconButton||t.IconButton||fh,Input:e.Input||t.Input||Ga,Text:e.Text||t.Text||G,...e.deps||{},theme:Object.prototype.hasOwnProperty.call(e,"theme")?e.theme:t.theme,chakraProviderProps:{...t.chakraProviderProps||{},...e.chakraProviderProps||{}}}}const Or=new Map;function OA(e=[]){if(typeof window>"u")return!1;const t=window[Qi];return e.every(n=>t?.[n])}function WA(e=[]){typeof window>"u"||OA(e)||LA()}function NA(e,t){const n=`${e}:${t}`;return Or.has(n)||Or.set(n,import(t).catch(r=>{throw Or.delete(n),r})),Or.get(n)}function HA({componentName:e,tagName:t,defaultRemoteUrl:n,requiredDeps:r,normalizeProps:o}){return function({theme:s,chakraProviderProps:a,...l}){const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null);return d.current={...o?o(l):l,...s!==void 0?{theme:s}:{},...a?{chakraProviderProps:a}:{}},v.useEffect(()=>{let h=!0;return WA(r),NA(e,n).then(()=>{if(!h||!c.current)return;const m=document.createElement(t);m.componentProps=d.current,c.current.appendChild(m),u.current=m}).catch(m=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,m)}),()=>{h=!1,u.current&&(u.current.remove(),u.current=null)}},[e,n,t]),v.useEffect(()=>{u.current&&(u.current.componentProps=d.current)}),p.jsx("span",{ref:c,style:{display:"contents"}})}}const UA=HA({componentName:"Pagination",tagName:"uikit-pagination",defaultRemoteUrl:Ns.Pagination,requiredDeps:["React","createRoot","ChakraProvider","Button","HStack","IconButton","Input","Text"]});function Zi({theme:e,...t}){const n=La();return p.jsx(UA,{...t,theme:e??n})}const Wr=new Map;function GA(e,t){const n=`${e}:${t}`;return Wr.has(n)||Wr.set(n,import(t).catch(r=>{throw Wr.delete(n),r})),Wr.get(n)}function qA({componentName:e,tagName:t,defaultRemoteUrl:n,normalizeProps:r}){return function(i){const s=v.useRef(null),a=v.useRef(null),l=v.useRef(null);return l.current=r?r(i):i,v.useEffect(()=>{let c=!0;return GA(e,n).then(()=>{if(!c||!s.current)return;const u=document.createElement(t);u.componentProps=l.current,s.current.appendChild(u),a.current=u}).catch(u=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,u)}),()=>{c=!1,a.current&&(a.current.remove(),a.current=null)}},[e,n,t]),v.useEffect(()=>{a.current&&(a.current.componentProps=l.current)}),p.jsx("span",{ref:s,style:{display:"contents"}})}}const bh=Symbol.for("uikit.remote.app-header.slot");function Xt(e){function t(){return null}return t[bh]=e,t}const KA=Xt("brandSection"),XA=Xt("logo"),YA=Xt("brand"),ZA=Xt("title"),JA=Xt("description"),QA=Xt("bi"),e2=Xt("extra");function Qn(e){if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(Qn).filter(Boolean).join("");if(Ve.isValidElement(e))return Qn(e.props?.children)}}function t2(e){const t={showBi:!1,showExtra:!1};function n(r){Ve.Children.forEach(r,o=>{if(!Ve.isValidElement(o))return;const i=o.type?.[bh];i==="logo"?(t.logoSrc=o.props.src,t.logoAlt=o.props.alt):i==="title"?t.title=Qn(o.props.children):i==="description"?t.description=Qn(o.props.children):i==="bi"?(t.showBi=!0,t.biLogoSrc=o.props.logoSrc||o.props.src,t.biLogoAlt=o.props.alt,t.biText=o.props.text):i==="extra"&&(t.showExtra=!0,t.extraLogoSrc=o.props.logoSrc||o.props.src,t.extraLogoAlt=o.props.alt,t.extraText=o.props.text??Qn(o.props.children)),o.props?.children&&n(o.props.children)})}return n(e),t}const n2=qA({componentName:"AppHeader",tagName:"uikit-app-header",defaultRemoteUrl:Ns.AppHeader,normalizeProps:({children:e,...t})=>e==null?t:{...t,...t2(e)}});function r2(e){return p.jsx(n2,{...e})}const Tt=Object.assign(r2,{BrandSection:KA,Logo:XA,Brand:YA,Title:ZA,Description:JA,Extra:e2,Bi:QA}),Nr=new Map;function o2(){if(typeof window>"u")return;const e=window[vl]||{};window[vl]={...e,React:e.React||Ve,createRoot:e.createRoot||ku}}function i2(e,t){const n=`${e}:${t}`;return Nr.has(n)||Nr.set(n,import(t).catch(r=>{throw Nr.delete(n),r})),Nr.get(n)}function s2({componentName:e,tagName:t,defaultRemoteUrl:n,normalizeProps:r}){return function(i){const s=v.useRef(null),a=v.useRef(null),l=v.useRef(null);return l.current=r?r(i):i,v.useEffect(()=>{let c=!0;return o2(),i2(e,n).then(()=>{if(!c||!s.current)return;const u=document.createElement(t);u.componentProps=l.current,s.current.appendChild(u),a.current=u}).catch(u=>{console.error(`[uikit/remote/ui] Failed to load ${e}:`,u)}),()=>{c=!1,a.current&&(a.current.remove(),a.current=null)}},[e,n,t]),v.useEffect(()=>{a.current&&(a.current.componentProps=l.current)}),Ve.createElement("span",{ref:s,style:{display:"contents"}})}}const vh=Symbol.for("uikit.remote.app-sidebar.slot");function a2(e){function t(){return null}return t[vh]=e,t}const l2=a2("exit");function c2(e){const t={showExit:!1};return Ve.Children.forEach(e,n=>{Ve.isValidElement(n)&&n.type?.[vh]==="exit"&&(t.showExit=!0,t.onExit=n.props.onClick,t.exitDisabled=!!n.props.disabled)}),t}function u2(e){if(!e||Ve.isValidElement(e))return e;if(typeof e=="function")return Ve.createElement(e);if(typeof e=="object"&&e?.$$typeof)try{return Ve.createElement(e)}catch{return e}return e}function d2(e){return Array.isArray(e)?e.map(t=>({...t,icon:u2(t?.icon)})):[]}const f2=s2({componentName:"AppSidebar",tagName:"uikit-app-sidebar",defaultRemoteUrl:Ns.AppSidebar,normalizeProps:({children:e,items:t,...n})=>({...n,items:d2(t),...e!=null?c2(e):{}})});function h2(e){return Ve.createElement(f2,e)}const Hr=Object.assign(h2,{Exit:l2}),p2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2096'%3e%3crect%20width='96'%20height='96'%20rx='24'%20fill='%23fff'/%3e%3ccircle%20cx='48'%20cy='48'%20r='27'%20fill='%23314E89'/%3e%3cpath%20d='M35%2050.5%2044%2059l18-22'%20fill='none'%20stroke='%23fff'%20stroke-width='7'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",m2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2096%2096'%3e%3crect%20width='96'%20height='96'%20rx='24'%20fill='%23fff'/%3e%3cpath%20d='M27%2029h42v38H27z'%20fill='%23314E89'%20rx='8'/%3e%3cpath%20d='M36%2039h24M36%2048h24M36%2057h15'%20stroke='%23fff'%20stroke-width='5'%20stroke-linecap='round'/%3e%3c/svg%3e",g2=""+new URL("bi-logo-DqGAmlZy.webp",import.meta.url).href,y2=`import { AppHeader } from "uikit/remote/ui"; export default function PageHeader() { return ( @@ -333,7 +333,7 @@ export default function PageHeader() { ); -}`,y2=`import { AppSidebar } from "uikit/remote/ui"; +}`,b2=`import { AppSidebar } from "uikit/remote/ui"; const items = [ { @@ -361,7 +361,7 @@ export default function PageSidebar() { logout()} /> ); -}`,b2=`import { Pagination } from "uikit/remote/ui"; +}`,v2=`import { Pagination } from "uikit/remote/ui"; // loading اختیاری است. -// اگر نیاز نداری، اصلاً آن را پاس نده.`;function Ga({children:e}){const[t,n]=v.useState(!1),r=typeof e=="string"?e:String(e??""),o=async()=>{try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(r);else{const i=document.createElement("textarea");i.value=r,i.style.position="fixed",i.style.opacity="0",document.body.appendChild(i),i.select(),document.execCommand("copy"),i.remove()}n(!0),window.setTimeout(()=>n(!1),1400)}catch(i){console.error("Copy failed:",i)}};return p.jsxs(q,{position:"relative",w:"full",children:[p.jsx(Rt,{type:"button",size:"xs",position:"absolute",top:2,right:2,zIndex:1,bg:"whiteAlpha.200",color:"white",_hover:{bg:"whiteAlpha.300"},onClick:o,children:t?"کپی شد":"کپی کد"}),p.jsx(q,{as:"pre",dir:"ltr",textAlign:"left",overflowX:"auto",w:"full",p:{base:3,md:4},pt:{base:10,md:10},bg:"gray.900",color:"gray.100",borderRadius:"lg",fontSize:{base:"12px",md:"13px"},lineHeight:"1.8",whiteSpace:"pre",children:p.jsx(q,{as:"code",children:r})})]})}function Ji({id:e,title:t,children:n}){return p.jsxs(q,{id:e,scrollMarginTop:"18px",bg:"white",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",overflow:"hidden",children:[p.jsx(q,{px:{base:4,md:5},py:4,borderBottomWidth:"1px",borderColor:"gray.100",children:p.jsx(G,{fontSize:{base:"md",md:"lg"},fontWeight:"700",color:"gray.800",children:t})}),p.jsx(q,{p:{base:4,md:5},children:n})]})}const v2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("path",{d:"M4 19V9"}),p.jsx("path",{d:"M10 19V5"}),p.jsx("path",{d:"M16 19v-7"}),p.jsx("path",{d:"M22 19H2"})]}),x2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),p.jsx("circle",{cx:"9",cy:"7",r:"4"}),p.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),p.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),S2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("circle",{cx:"11",cy:"11",r:"8"}),p.jsx("path",{d:"m21 21-4.35-4.35"})]}),w2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("rect",{x:"3",y:"11",width:"18",height:"10",rx:"2"}),p.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]});function k2(){return p.jsxs(Kt,{spacing:5,children:[p.jsxs(G,{color:"gray.600",fontSize:"sm",children:["ظاهر Header داخل remote ایزوله است؛ فونت از سامانه مقصد می‌آید. رنگ پس‌زمینه با",p.jsx(Q,{mx:1,children:"bg"}),"اختیاری قابل تغییر است. ",p.jsx(Q,{children:"AppHeader.Extra"})," و ",p.jsx(Q,{children:"AppHeader.Bi"})," نیز مستقل و اختیاری‌اند."]}),p.jsx(Ga,{children:g2}),p.jsxs(q,{children:[p.jsx(G,{mb:2,fontWeight:"700",fontSize:"sm",children:"نمونه نمایش"}),p.jsx(q,{overflow:"auto",borderWidth:"1px",borderColor:"gray.200",borderRadius:"lg",children:p.jsxs(Tt,{bg:"#314E89",children:[p.jsxs(Tt.BrandSection,{children:[p.jsx(Tt.Logo,{src:h2,alt:"نشان نمونه سامانه"}),p.jsxs(Tt.Brand,{children:[p.jsx(Tt.Title,{children:"عنوان سامانه"}),p.jsx(Tt.Description,{children:"توضیحات سامانه"})]})]}),p.jsx(Tt.Extra,{src:p2,alt:"نشان تکمیلی",text:"متن تکمیلی"}),p.jsx(Tt.Bi,{src:m2})]})})]}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• ترتیب انتهای Header: ",p.jsx(Q,{children:"Extra"})," سپس ",p.jsx(Q,{children:"Bi"}),"."]}),p.jsxs(G,{mt:1,children:["• هرکدام از ",p.jsx(Q,{children:"Extra"})," یا ",p.jsx(Q,{children:"Bi"})," را می‌توان حذف کرد."]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"Extra"})," لوگو و متن دلخواه می‌گیرد؛ اگر ",p.jsx(Q,{children:"text"})," ندهی، فقط لوگو نمایش داده می‌شود و تمام ارتفاع Extra را می‌گیرد."]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"font-family"})," عمداً از Host به ارث می‌رسد."]})]})]})}function C2({allowFixedPreview:e=!0}){const[t,n]=v.useState("analysis"),[r,o]=v.useState("—"),i=v.useMemo(()=>[{id:"analysis",title:"آنالیز",mobileTitle:"آنالیز",icon:v2,active:t==="analysis",onClick:()=>{n("analysis"),o("آنالیز")}},{id:"users",title:"کاربران",mobileTitle:"کاربران",icon:x2,active:t==="users",onClick:()=>{n("users"),o("کاربران")}},{id:"search",title:"جستجو",mobileTitle:"جستجو",icon:S2,active:t==="search",onClick:()=>{n("search"),o("جستجو")}},{id:"restricted",title:"بخش محدود",mobileTitle:"محدود",icon:w2,disabled:!0}],[t]);return p.jsxs(Kt,{spacing:5,children:[p.jsx(G,{color:"gray.600",fontSize:"sm",children:"UI داخل remote می‌ماند؛ route، permission، active state و logout در خود سامانه مقصد تعیین می‌شوند."}),p.jsx(Ga,{children:y2}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• برای مخفی‌کردن آیتم از ",p.jsx(Q,{children:"hidden: true"})," یا filter در Host استفاده کن."]}),p.jsxs(G,{mt:1,children:["• برای حالت غیرقابل کلیک از ",p.jsx(Q,{children:"disabled: true"})," استفاده کن."]}),p.jsx(G,{mt:1,children:"• تا ۴ آیتم در موبایل، خروج مستقیم آخر Bottom Navigation قرار می‌گیرد."}),p.jsx(G,{mt:1,children:"• بیشتر از ۴ آیتم: چهار آیتم اول مستقیم، بقیه + خروج داخل «بیشتر» می‌روند."})]}),p.jsxs(q,{p:3,bg:"gray.50",borderRadius:"md",fontSize:"sm",children:["آخرین callback: ",p.jsx(Q,{children:r})]}),p.jsx(q,{display:{base:"block",lg:"none"},color:"gray.500",fontSize:"xs",children:"در موبایل نمونه AppSidebar به شکل Bottom Navigation پایین صفحه نمایش داده می‌شود."}),e?p.jsx(q,{display:{base:"block",lg:"none"},children:p.jsx(Hr,{items:i,ariaLabel:"نمونه AppSidebar",children:p.jsx(Hr.Exit,{onClick:()=>o("خروج")})})}):null,p.jsx(q,{display:{base:"none",lg:"block"},position:"relative",h:"360px",overflow:"hidden",borderWidth:"1px",borderColor:"gray.200",borderRadius:"lg",children:p.jsx(Hr,{items:i,ariaLabel:"نمونه AppSidebar",children:p.jsx(Hr.Exit,{onClick:()=>o("خروج")})})})]})}function T2(){const[e,t]=v.useState({full:3,compact:3,simple:3,minimal:3}),[n,r]=v.useState(!0),[o,i]=v.useState(3),[s,a]=v.useState(!1),l=v.useRef(null),c=v.useRef(null);v.useEffect(()=>(l.current=window.setTimeout(()=>r(!1),1800),()=>{l.current&&window.clearTimeout(l.current),c.current&&window.clearTimeout(c.current)}),[]);const u=(g,S)=>t(w=>({...w,[g]:S})),d=()=>{l.current&&window.clearTimeout(l.current),r(!0),l.current=window.setTimeout(()=>r(!1),1800)},h=g=>{s||(c.current&&window.clearTimeout(c.current),i(g),a(!0),c.current=window.setTimeout(()=>a(!1),1600))},m=(g,S={})=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:e[g],totalPages:12,totalCount:120,pageSize:10,onPageChange:w=>u(g,w),...S})]}),y=g=>p.jsxs(Kt,{spacing:4,children:[g("full"),p.jsxs(po,{w:"full",align:"flex-start",direction:{base:"column",lg:"row"},gap:{base:4,lg:0},children:[p.jsx(q,{w:{base:"100%",lg:"55%"},minW:0,children:g("compact")}),p.jsx(q,{w:{base:"100%",lg:"25%"},minW:0,children:g("simple")}),p.jsx(q,{w:{base:"100%",lg:"20%"},minW:0,children:g("minimal")})]})]});return p.jsxs(Kt,{spacing:6,children:[p.jsxs(G,{color:"gray.600",fontSize:"sm",children:["همه variantها API یکسان دارند. ",p.jsx(Q,{children:"loading"})," اختیاری است و اگر پاس داده نشود رفتار قبلی کاملاً حفظ می‌شود."]}),p.jsx(Ga,{children:b2}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• ",p.jsx(Q,{children:"currentPage"}),": صفحه فعلی"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"totalPages"}),": تعداد کل صفحات"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"totalCount"}),": تعداد کل رکوردها"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"pageSize"}),": تعداد رکورد در هر صفحه"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"onPageChange"}),": callback تغییر صفحه"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"loading"}),": اختیاری؛ پیش‌فرض ",p.jsx(Q,{children:"false"})]}),p.jsxs(G,{mt:1,children:["• levelها: ",p.jsx(Q,{children:"full"}),"، ",p.jsx(Q,{children:"compact"}),"، ",p.jsx(Q,{children:"simple"}),"، ",p.jsx(Q,{children:"minimal"})]})]}),p.jsxs(q,{children:[p.jsx(G,{mb:3,fontWeight:"700",fontSize:"sm",children:"نمونه حالت‌ها"}),y(g=>m(g))]}),p.jsxs(q,{borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",p:{base:3,md:4},bg:"gray.50",children:[p.jsxs(po,{mb:3,gap:3,align:{base:"stretch",md:"center"},justify:"space-between",direction:{base:"column",md:"row"},children:[p.jsxs(q,{children:[p.jsx(G,{fontWeight:"700",fontSize:"sm",children:"Loading — دریافت اولیه"}),p.jsx(G,{mt:1,color:"gray.600",fontSize:"xs",children:"totalPages و totalCount هنوز وجود ندارند؛ صفحه ۱ ثابت می‌ماند و جای مقادیر نامشخص loader دیده می‌شود."})]}),p.jsx(Rt,{size:"sm",variant:"outline",onClick:d,isDisabled:n,flexShrink:0,children:n?"در حال دریافت...":"اجرای دوباره"})]}),y(g=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:1,totalPages:n?void 0:12,totalCount:n?void 0:120,pageSize:10,loading:n,onPageChange:()=>{}})]}))]}),p.jsxs(q,{borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",p:{base:3,md:4},bg:"gray.50",children:[p.jsxs(po,{mb:3,gap:3,align:{base:"stretch",md:"center"},justify:"space-between",direction:{base:"column",md:"row"},children:[p.jsxs(q,{children:[p.jsx(G,{fontWeight:"700",fontSize:"sm",children:"Loading — جابه‌جایی بین صفحات"}),p.jsx(G,{mt:1,color:"gray.600",fontSize:"xs",children:"totalPages و totalCount قبلی حفظ می‌شوند و فقط صفحه جاری تا رسیدن پاسخ جدید loading نشان می‌دهد."})]}),p.jsx(Rt,{size:"sm",colorScheme:"blue",onClick:()=>h(o>=12?1:o+1),isDisabled:s,flexShrink:0,children:s?"در حال دریافت صفحه...":"صفحه بعدی"})]}),y(g=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:o,totalPages:12,totalCount:120,pageSize:10,loading:s,onPageChange:h})]}))]}),p.jsx(q,{p:3,bg:"gray.50",borderRadius:"md",fontSize:"sm",color:"gray.600",children:"ارتفاع Pagination از والد گرفته نمی‌شود؛ هر variant ارتفاعش را از کنترل‌ها و padding داخلی خودش می‌سازد."})]})}const P2=[{id:"app-header",label:"AppHeader"},{id:"app-sidebar",label:"AppSidebar"},{id:"pagination",label:"Pagination"}];function R2(){const[e,t]=v.useState(!1),[n,r]=v.useState(!1);v.useEffect(()=>{const i=()=>{t(window.scrollY>260),r(window.scrollY>=Math.max(1,window.innerHeight*.75))};return i(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[]);const o=i=>{document.getElementById(i)?.scrollIntoView({behavior:"smooth",block:"start"})};return p.jsx(uh,{children:p.jsxs(q,{minH:"100vh",bg:"gray.50",dir:"rtl",pb:{base:20,lg:8},children:[p.jsx(q,{minH:"100dvh",display:"flex",alignItems:"center",justifyContent:"center",children:p.jsx(Ws,{maxW:"7xl",px:{base:3,md:6},py:{base:5,md:8},children:p.jsx(mh,{columns:{base:1,sm:3},spacing:3,children:P2.map(i=>p.jsx(Rt,{type:"button",h:{base:"84px",md:"104px"},bg:"white",color:"gray.800",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",boxShadow:"sm",fontSize:{base:"md",md:"lg"},_hover:{bg:"gray.50",borderColor:"blue.200",transform:"translateY(-2px)"},transition:"all .18s ease",onClick:()=>o(i.id),children:i.label},i.id))})})}),p.jsx(Ws,{maxW:"7xl",px:{base:3,md:6},pb:{base:5,md:8},children:p.jsxs(Kt,{spacing:6,children:[p.jsx(Ji,{id:"app-header",title:"AppHeader",children:p.jsx(k2,{})}),p.jsx(Ji,{id:"app-sidebar",title:"AppSidebar",children:p.jsx(C2,{allowFixedPreview:n})}),p.jsx(Ji,{id:"pagination",title:"Pagination",children:p.jsx(T2,{})})]})}),e?p.jsx(Rt,{type:"button",position:"fixed",left:{base:4,md:6},bottom:{base:20,lg:6},zIndex:2e3,size:"sm",colorScheme:"blue",boxShadow:"lg",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"بازگشت به بالا ↑"}):null]})})}export{R2 as default}; +// اگر نیاز نداری، اصلاً آن را پاس نده.`;function qa({children:e}){const[t,n]=v.useState(!1),r=typeof e=="string"?e:String(e??""),o=async()=>{try{if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(r);else{const i=document.createElement("textarea");i.value=r,i.style.position="fixed",i.style.opacity="0",document.body.appendChild(i),i.select(),document.execCommand("copy"),i.remove()}n(!0),window.setTimeout(()=>n(!1),1400)}catch(i){console.error("Copy failed:",i)}};return p.jsxs(q,{position:"relative",w:"full",children:[p.jsx(Rt,{type:"button",size:"xs",position:"absolute",top:2,right:2,zIndex:1,bg:"whiteAlpha.200",color:"white",_hover:{bg:"whiteAlpha.300"},onClick:o,children:t?"کپی شد":"کپی کد"}),p.jsx(q,{as:"pre",dir:"ltr",textAlign:"left",overflowX:"auto",w:"full",p:{base:3,md:4},pt:{base:10,md:10},bg:"gray.900",color:"gray.100",borderRadius:"lg",fontSize:{base:"12px",md:"13px"},lineHeight:"1.8",whiteSpace:"pre",children:p.jsx(q,{as:"code",children:r})})]})}function Ji({id:e,title:t,children:n}){return p.jsxs(q,{id:e,scrollMarginTop:"18px",bg:"white",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",overflow:"hidden",children:[p.jsx(q,{px:{base:4,md:5},py:4,borderBottomWidth:"1px",borderColor:"gray.100",children:p.jsx(G,{fontSize:{base:"md",md:"lg"},fontWeight:"700",color:"gray.800",children:t})}),p.jsx(q,{p:{base:4,md:5},children:n})]})}const x2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("path",{d:"M4 19V9"}),p.jsx("path",{d:"M10 19V5"}),p.jsx("path",{d:"M16 19v-7"}),p.jsx("path",{d:"M22 19H2"})]}),S2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),p.jsx("circle",{cx:"9",cy:"7",r:"4"}),p.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),p.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),w2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("circle",{cx:"11",cy:"11",r:"8"}),p.jsx("path",{d:"m21 21-4.35-4.35"})]}),k2=()=>p.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[p.jsx("rect",{x:"3",y:"11",width:"18",height:"10",rx:"2"}),p.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]});function C2(){return p.jsxs(Kt,{spacing:5,children:[p.jsxs(G,{color:"gray.600",fontSize:"sm",children:["ظاهر Header داخل remote ایزوله است؛ فونت از سامانه مقصد می‌آید. رنگ پس‌زمینه با",p.jsx(Q,{mx:1,children:"bg"}),"اختیاری قابل تغییر است. ",p.jsx(Q,{children:"AppHeader.Extra"})," و ",p.jsx(Q,{children:"AppHeader.Bi"})," نیز مستقل و اختیاری‌اند."]}),p.jsx(qa,{children:y2}),p.jsxs(q,{children:[p.jsx(G,{mb:2,fontWeight:"700",fontSize:"sm",children:"نمونه نمایش"}),p.jsx(q,{overflow:"auto",borderWidth:"1px",borderColor:"gray.200",borderRadius:"lg",children:p.jsxs(Tt,{bg:"#314E89",children:[p.jsxs(Tt.BrandSection,{children:[p.jsx(Tt.Logo,{src:p2,alt:"نشان نمونه سامانه"}),p.jsxs(Tt.Brand,{children:[p.jsx(Tt.Title,{children:"عنوان سامانه"}),p.jsx(Tt.Description,{children:"توضیحات سامانه"})]})]}),p.jsx(Tt.Extra,{src:m2,alt:"نشان تکمیلی",text:"متن تکمیلی"}),p.jsx(Tt.Bi,{src:g2})]})})]}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• ترتیب انتهای Header: ",p.jsx(Q,{children:"Extra"})," سپس ",p.jsx(Q,{children:"Bi"}),"."]}),p.jsxs(G,{mt:1,children:["• هرکدام از ",p.jsx(Q,{children:"Extra"})," یا ",p.jsx(Q,{children:"Bi"})," را می‌توان حذف کرد."]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"Extra"})," لوگو و متن دلخواه می‌گیرد؛ اگر ",p.jsx(Q,{children:"text"})," ندهی، فقط لوگو نمایش داده می‌شود و تمام ارتفاع Extra را می‌گیرد."]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"font-family"})," عمداً از Host به ارث می‌رسد."]})]})]})}function T2({allowFixedPreview:e=!0}){const[t,n]=v.useState("analysis"),[r,o]=v.useState("—"),i=v.useMemo(()=>[{id:"analysis",title:"آنالیز",mobileTitle:"آنالیز",icon:x2,active:t==="analysis",onClick:()=>{n("analysis"),o("آنالیز")}},{id:"users",title:"کاربران",mobileTitle:"کاربران",icon:S2,active:t==="users",onClick:()=>{n("users"),o("کاربران")}},{id:"search",title:"جستجو",mobileTitle:"جستجو",icon:w2,active:t==="search",onClick:()=>{n("search"),o("جستجو")}},{id:"restricted",title:"بخش محدود",mobileTitle:"محدود",icon:k2,disabled:!0}],[t]);return p.jsxs(Kt,{spacing:5,children:[p.jsx(G,{color:"gray.600",fontSize:"sm",children:"UI داخل remote می‌ماند؛ route، permission، active state و logout در خود سامانه مقصد تعیین می‌شوند."}),p.jsx(qa,{children:b2}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• برای مخفی‌کردن آیتم از ",p.jsx(Q,{children:"hidden: true"})," یا filter در Host استفاده کن."]}),p.jsxs(G,{mt:1,children:["• برای حالت غیرقابل کلیک از ",p.jsx(Q,{children:"disabled: true"})," استفاده کن."]}),p.jsx(G,{mt:1,children:"• تا ۴ آیتم در موبایل، خروج مستقیم آخر Bottom Navigation قرار می‌گیرد."}),p.jsx(G,{mt:1,children:"• بیشتر از ۴ آیتم: چهار آیتم اول مستقیم، بقیه + خروج داخل «بیشتر» می‌روند."})]}),p.jsxs(q,{p:3,bg:"gray.50",borderRadius:"md",fontSize:"sm",children:["آخرین callback: ",p.jsx(Q,{children:r})]}),p.jsx(q,{display:{base:"block",lg:"none"},color:"gray.500",fontSize:"xs",children:"در موبایل نمونه AppSidebar به شکل Bottom Navigation پایین صفحه نمایش داده می‌شود."}),e?p.jsx(q,{display:{base:"block",lg:"none"},children:p.jsx(Hr,{items:i,ariaLabel:"نمونه AppSidebar",children:p.jsx(Hr.Exit,{onClick:()=>o("خروج")})})}):null,p.jsx(q,{display:{base:"none",lg:"block"},position:"relative",h:"360px",overflow:"hidden",borderWidth:"1px",borderColor:"gray.200",borderRadius:"lg",children:p.jsx(Hr,{items:i,ariaLabel:"نمونه AppSidebar",children:p.jsx(Hr.Exit,{onClick:()=>o("خروج")})})})]})}function P2(){const[e,t]=v.useState({full:3,compact:3,simple:3,minimal:3}),[n,r]=v.useState(!0),[o,i]=v.useState(3),[s,a]=v.useState(!1),l=v.useRef(null),c=v.useRef(null);v.useEffect(()=>(l.current=window.setTimeout(()=>r(!1),1800),()=>{l.current&&window.clearTimeout(l.current),c.current&&window.clearTimeout(c.current)}),[]);const u=(g,S)=>t(w=>({...w,[g]:S})),d=()=>{l.current&&window.clearTimeout(l.current),r(!0),l.current=window.setTimeout(()=>r(!1),1800)},h=g=>{s||(c.current&&window.clearTimeout(c.current),i(g),a(!0),c.current=window.setTimeout(()=>a(!1),1600))},m=(g,S={})=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:e[g],totalPages:12,totalCount:120,pageSize:10,onPageChange:w=>u(g,w),...S})]}),y=g=>p.jsxs(Kt,{spacing:4,children:[g("full"),p.jsxs(po,{w:"full",align:"flex-start",direction:{base:"column",lg:"row"},gap:{base:4,lg:0},children:[p.jsx(q,{w:{base:"100%",lg:"55%"},minW:0,children:g("compact")}),p.jsx(q,{w:{base:"100%",lg:"25%"},minW:0,children:g("simple")}),p.jsx(q,{w:{base:"100%",lg:"20%"},minW:0,children:g("minimal")})]})]});return p.jsxs(Kt,{spacing:6,children:[p.jsxs(G,{color:"gray.600",fontSize:"sm",children:["همه variantها API یکسان دارند. ",p.jsx(Q,{children:"loading"})," اختیاری است و اگر پاس داده نشود رفتار قبلی کاملاً حفظ می‌شود."]}),p.jsx(qa,{children:v2}),p.jsxs(q,{fontSize:"sm",color:"gray.600",children:[p.jsxs(G,{children:["• ",p.jsx(Q,{children:"currentPage"}),": صفحه فعلی"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"totalPages"}),": تعداد کل صفحات"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"totalCount"}),": تعداد کل رکوردها"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"pageSize"}),": تعداد رکورد در هر صفحه"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"onPageChange"}),": callback تغییر صفحه"]}),p.jsxs(G,{mt:1,children:["• ",p.jsx(Q,{children:"loading"}),": اختیاری؛ پیش‌فرض ",p.jsx(Q,{children:"false"})]}),p.jsxs(G,{mt:1,children:["• levelها: ",p.jsx(Q,{children:"full"}),"، ",p.jsx(Q,{children:"compact"}),"، ",p.jsx(Q,{children:"simple"}),"، ",p.jsx(Q,{children:"minimal"})]})]}),p.jsxs(q,{children:[p.jsx(G,{mb:3,fontWeight:"700",fontSize:"sm",children:"نمونه حالت‌ها"}),y(g=>m(g))]}),p.jsxs(q,{borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",p:{base:3,md:4},bg:"gray.50",children:[p.jsxs(po,{mb:3,gap:3,align:{base:"stretch",md:"center"},justify:"space-between",direction:{base:"column",md:"row"},children:[p.jsxs(q,{children:[p.jsx(G,{fontWeight:"700",fontSize:"sm",children:"Loading — دریافت اولیه"}),p.jsx(G,{mt:1,color:"gray.600",fontSize:"xs",children:"totalPages و totalCount هنوز وجود ندارند؛ صفحه ۱ ثابت می‌ماند و جای مقادیر نامشخص loader دیده می‌شود."})]}),p.jsx(Rt,{size:"sm",variant:"outline",onClick:d,isDisabled:n,flexShrink:0,children:n?"در حال دریافت...":"اجرای دوباره"})]}),y(g=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:1,totalPages:n?void 0:12,totalCount:n?void 0:120,pageSize:10,loading:n,onPageChange:()=>{}})]}))]}),p.jsxs(q,{borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",p:{base:3,md:4},bg:"gray.50",children:[p.jsxs(po,{mb:3,gap:3,align:{base:"stretch",md:"center"},justify:"space-between",direction:{base:"column",md:"row"},children:[p.jsxs(q,{children:[p.jsx(G,{fontWeight:"700",fontSize:"sm",children:"Loading — جابه‌جایی بین صفحات"}),p.jsx(G,{mt:1,color:"gray.600",fontSize:"xs",children:"totalPages و totalCount قبلی حفظ می‌شوند و فقط صفحه جاری تا رسیدن پاسخ جدید loading نشان می‌دهد."})]}),p.jsx(Rt,{size:"sm",colorScheme:"blue",onClick:()=>h(o>=12?1:o+1),isDisabled:s,flexShrink:0,children:s?"در حال دریافت صفحه...":"صفحه بعدی"})]}),y(g=>p.jsxs(q,{w:"full",minW:0,children:[p.jsx(G,{mb:2,fontSize:"sm",fontWeight:"600",dir:"ltr",children:g}),p.jsx(Zi,{level:g,currentPage:o,totalPages:12,totalCount:120,pageSize:10,loading:s,onPageChange:h})]}))]}),p.jsx(q,{p:3,bg:"gray.50",borderRadius:"md",fontSize:"sm",color:"gray.600",children:"ارتفاع Pagination از والد گرفته نمی‌شود؛ هر variant ارتفاعش را از کنترل‌ها و padding داخلی خودش می‌سازد."})]})}const A2=[{id:"app-header",label:"AppHeader"},{id:"app-sidebar",label:"AppSidebar"},{id:"pagination",label:"Pagination"}];function E2(){const[e,t]=v.useState(!1),[n,r]=v.useState(!1);v.useEffect(()=>{const i=()=>{t(window.scrollY>260),r(window.scrollY>=Math.max(1,window.innerHeight*.75))};return i(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[]);const o=i=>{document.getElementById(i)?.scrollIntoView({behavior:"smooth",block:"start"})};return p.jsx(uh,{children:p.jsxs(q,{minH:"100vh",bg:"gray.50",dir:"rtl",pb:{base:20,lg:8},children:[p.jsx(q,{minH:"100dvh",display:"flex",alignItems:"center",justifyContent:"center",children:p.jsx(Ws,{maxW:"7xl",px:{base:3,md:6},py:{base:5,md:8},children:p.jsx(mh,{columns:{base:1,sm:3},spacing:3,children:A2.map(i=>p.jsx(Rt,{type:"button",h:{base:"84px",md:"104px"},bg:"white",color:"gray.800",borderWidth:"1px",borderColor:"gray.200",borderRadius:"xl",boxShadow:"sm",fontSize:{base:"md",md:"lg"},_hover:{bg:"gray.50",borderColor:"blue.200",transform:"translateY(-2px)"},transition:"all .18s ease",onClick:()=>o(i.id),children:i.label},i.id))})})}),p.jsx(Ws,{maxW:"7xl",px:{base:3,md:6},pb:{base:5,md:8},children:p.jsxs(Kt,{spacing:6,children:[p.jsx(Ji,{id:"app-header",title:"AppHeader",children:p.jsx(C2,{})}),p.jsx(Ji,{id:"app-sidebar",title:"AppSidebar",children:p.jsx(T2,{allowFixedPreview:n})}),p.jsx(Ji,{id:"pagination",title:"Pagination",children:p.jsx(P2,{})})]})}),e?p.jsx(Rt,{type:"button",position:"fixed",left:{base:4,md:6},bottom:{base:20,lg:6},zIndex:2e3,size:"sm",colorScheme:"blue",boxShadow:"lg",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"بازگشت به بالا ↑"}):null]})})}export{E2 as default}; diff --git a/dist/remote/demo-assets/index-LJMONNgk.js b/dist/remote/demo-assets/index-CGeO2iR0.js similarity index 99% rename from dist/remote/demo-assets/index-LJMONNgk.js rename to dist/remote/demo-assets/index-CGeO2iR0.js index 1043542..33c3295 100644 --- a/dist/remote/demo-assets/index-LJMONNgk.js +++ b/dist/remote/demo-assets/index-CGeO2iR0.js @@ -37,4 +37,4 @@ function oc(e,t){for(var n=0;n")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{El=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hn(e):""}function Uc(e){switch(e.tag){case 5:return hn(e.type);case 16:return hn("Lazy");case 13:return hn("Suspense");case 19:return hn("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function Jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ot:return"Fragment";case Rt:return"Portal";case Xl:return"Profiler";case Ku:return"StrictMode";case Gl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case as:return(e.displayName||"Context")+".Consumer";case ss:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xu:return t=e.displayName||null,t!==null?t:Jl(e.type)||"Memo";case Ge:t=e._payload,e=e._init;try{return Jl(e(t))}catch{}}return null}function $c(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jl(t);case 8:return t===Ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function at(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ac(e){var t=fs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tr(e){e._valueTracker||(e._valueTracker=Ac(e))}function ds(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ql(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ho(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=at(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ps(e,t){t=t.checked,t!=null&&Qu(e,"checked",t,!1)}function bl(e,t){ps(e,t);var n=at(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eu(e,t.type,n):t.hasOwnProperty("defaultValue")&&eu(e,t.type,at(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eu(e,t,n){(t!=="number"||zr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yn=Array.isArray;function Ht(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vc=["Webkit","ms","Moz","O"];Object.keys(Sn).forEach(function(e){Vc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sn[t]=Sn[e]})});function ys(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sn.hasOwnProperty(e)&&Sn[e]?(""+t).trim():t+"px"}function gs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ys(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Bc=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ru(e,t){if(t){if(Bc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function lu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uu=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ou=null,Wt=null,Qt=null;function Yo(e){if(e=Gn(e)){if(typeof ou!="function")throw Error(y(280));var t=e.stateNode;t&&(t=ll(t),ou(e.stateNode,e.type,t))}}function ws(e){Wt?Qt?Qt.push(e):Qt=[e]:Wt=e}function Ss(){if(Wt){var e=Wt,t=Qt;if(Qt=Wt=null,Yo(e),t)for(e=0;e>>=0,e===0?32:31-(bc(e)/ef|0)|0}var rr=64,lr=4194304;function gn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Or(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,o=n&268435455;if(o!==0){var i=o&~l;i!==0?r=gn(i):(u&=o,u!==0&&(r=gn(u)))}else o=n&~l,o!==0?r=gn(o):u!==0&&(r=gn(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Le(t),e[t]=n}function lf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=En),ni=" ",ri=!1;function As(e,t){switch(e){case"keyup":return Mf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mt=!1;function If(e,t){switch(e){case"compositionend":return Vs(t);case"keypress":return t.which!==32?null:(ri=!0,ni);case"textInput":return e=t.data,e===ni&&ri?null:e;default:return null}}function jf(e,t){if(Mt)return e==="compositionend"||!ro&&As(e,t)?(e=Us(),wr=eo=be=null,Mt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ii(n)}}function Qs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ks(){for(var e=window,t=zr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zr(e.document)}return t}function lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qf(e){var t=Ks(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qs(n.ownerDocument.documentElement,n)){if(r!==null&&lo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=si(n,u);var o=si(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Dt=null,du=null,Cn=null,pu=!1;function ai(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pu||Dt==null||Dt!==zr(r)||(r=Dt,"selectionStart"in r&&lo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cn&&jn(Cn,r)||(Cn=r,r=Ir(du,"onSelect"),0Ft||(e.current=wu[Ft],wu[Ft]=null,Ft--)}function M(e,t){Ft++,wu[Ft]=e.current,e.current=t}var ct={},re=dt(ct),ce=dt(!1),_t=ct;function Zt(e,t){var n=e.type.contextTypes;if(!n)return ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function fe(e){return e=e.childContextTypes,e!=null}function Fr(){I(ce),I(re)}function hi(e,t,n){if(re.current!==ct)throw Error(y(168));M(re,t),M(ce,n)}function ta(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,$c(e)||"Unknown",l));return A({},n,r)}function Ur(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ct,_t=re.current,M(re,e),M(ce,ce.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=ta(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,I(ce),I(re),M(re,e)):I(ce),M(ce,n)}var $e=null,ul=!1,Fl=!1;function na(e){$e===null?$e=[e]:$e.push(e)}function rd(e){ul=!0,na(e)}function pt(){if(!Fl&&$e!==null){Fl=!0;var e=0,t=O;try{var n=$e;for(O=1;e>=o,l-=o,Ae=1<<32-Le(t)+l|n<P?(B=x,x=null):B=x.sibling;var L=p(f,x,d[P],h);if(L===null){x===null&&(x=B);break}e&&x&&L.alternate===null&&t(f,x),a=u(L,a,P),C===null?E=L:C.sibling=L,C=L,x=B}if(P===d.length)return n(f,x),F&&ht(f,P),E;if(x===null){for(;PP?(B=x,x=null):B=x.sibling;var xe=p(f,x,L.value,h);if(xe===null){x===null&&(x=B);break}e&&x&&xe.alternate===null&&t(f,x),a=u(xe,a,P),C===null?E=xe:C.sibling=xe,C=xe,x=B}if(L.done)return n(f,x),F&&ht(f,P),E;if(x===null){for(;!L.done;P++,L=d.next())L=m(f,L.value,h),L!==null&&(a=u(L,a,P),C===null?E=L:C.sibling=L,C=L);return F&&ht(f,P),E}for(x=r(f,x);!L.done;P++,L=d.next())L=g(x,f,P,L.value,h),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?P:L.key),a=u(L,a,P),C===null?E=L:C.sibling=L,C=L);return e&&x.forEach(function(un){return t(f,un)}),F&&ht(f,P),E}function j(f,a,d,h){if(typeof d=="object"&&d!==null&&d.type===Ot&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case er:e:{for(var E=d.key,C=a;C!==null;){if(C.key===E){if(E=d.type,E===Ot){if(C.tag===7){n(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ge&&Si(E)===C.type){n(f,C.sibling),a=l(C,d.props),a.ref=pn(f,C,d),a.return=f,f=a;break e}n(f,C);break}else t(f,C);C=C.sibling}d.type===Ot?(a=Et(d.props.children,f.mode,h,d.key),a.return=f,f=a):(h=Nr(d.type,d.key,d.props,null,f.mode,h),h.ref=pn(f,a,d),h.return=f,f=h)}return o(f);case Rt:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Ql(d,f.mode,h),a.return=f,f=a}return o(f);case Ge:return C=d._init,j(f,a,C(d._payload),h)}if(yn(d))return w(f,a,d,h);if(sn(d))return S(f,a,d,h);fr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Wl(d,f.mode,h),a.return=f,f=a),o(f)):n(f,a)}return j}var qt=oa(!0),ia=oa(!1),Vr=dt(null),Br=null,At=null,so=null;function ao(){so=At=Br=null}function co(e){var t=Vr.current;I(Vr),e._currentValue=t}function Eu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yt(e,t){Br=e,so=At=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ae=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(so!==e)if(e={context:e,memoizedValue:t,next:null},At===null){if(Br===null)throw Error(y(308));At=e,Br.dependencies={lanes:0,firstContext:e}}else At=At.next=e;return t}var wt=null;function fo(e){wt===null?wt=[e]:wt.push(e)}function sa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,fo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Qe(e,r)}function Qe(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ze=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Be(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Qe(e,n)}return l=r.interleaved,l===null?(t.next=t,fo(r)):(t.next=l.next,l.next=t),r.interleaved=t,Qe(e,n)}function kr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ju(e,n)}}function ki(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=o:u=u.next=o,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hr(e,t,n,r){var l=e.updateQueue;Ze=!1;var u=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,c=s.next;s.next=null,o===null?u=c:o.next=c,o=s;var v=e.alternate;v!==null&&(v=v.updateQueue,i=v.lastBaseUpdate,i!==o&&(i===null?v.firstBaseUpdate=c:i.next=c,v.lastBaseUpdate=s))}if(u!==null){var m=l.baseState;o=0,v=c=s=null,i=u;do{var p=i.lane,g=i.eventTime;if((r&p)===p){v!==null&&(v=v.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,S=i;switch(p=t,g=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=A({},m,p);break e;case 2:Ze=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[i]:p.push(i))}else g={eventTime:g,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},v===null?(c=v=g,s=m):v=v.next=g,o|=p;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;p=i,i=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(v===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=v,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Pt|=o,e.lanes=o,e.memoizedState=m}}function Ei(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),t()}finally{O=n,$l.transition=r}}function Pa(){return Ce().memoizedState}function id(e,t,n){var r=it(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Na(e))za(t,n);else if(n=sa(e,t,n,r),n!==null){var l=ue();Re(n,e,r,l),Ta(n,t,r)}}function sd(e,t,n){var r=it(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Na(e))za(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,i=u(o,n);if(l.hasEagerState=!0,l.eagerState=i,Oe(i,o)){var s=t.interleaved;s===null?(l.next=l,fo(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=sa(e,t,l,r),n!==null&&(l=ue(),Re(n,e,r,l),Ta(n,t,r))}}function Na(e){var t=e.alternate;return e===$||t!==null&&t===$}function za(e,t){xn=Qr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ta(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ju(e,n)}}var Kr={readContext:_e,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useInsertionEffect:ee,useLayoutEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useMutableSource:ee,useSyncExternalStore:ee,useId:ee,unstable_isNewReconciler:!1},ad={readContext:_e,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Ci,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_r(4194308,4,ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){return _r(4,2,e,t)},useMemo:function(e,t){var n=De();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=De();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=id.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:_i,useDebugValue:ko,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=_i(!1),t=e[0];return e=od.bind(null,e[1]),De().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$,l=De();if(F){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),Z===null)throw Error(y(349));xt&30||pa(r,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Ci(va.bind(null,r,u,e),[e]),r.flags|=2048,Wn(9,ma.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=De(),t=Z.identifierPrefix;if(F){var n=Ve,r=Ae;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ie]=t,e[$n]=r,$a(e,t,!1,!1),t.stateNode=e;e:{switch(o=lu(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;ltn&&(t.flags|=128,r=!0,mn(u,!1),t.lanes=4194304)}else{if(!r)if(e=Wr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mn(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!F)return te(t),null}else 2*W()-u.renderingStartTime>tn&&n!==1073741824&&(t.flags|=128,r=!0,mn(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(n=u.last,n!==null?n.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=W(),t.sibling=null,n=U.current,M(U,r?n&1|2:n&1),t):(te(t),null);case 22:case 23:return No(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pe&1073741824&&(te(t),t.subtreeFlags&6&&(t.flags|=8192)):te(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function yd(e,t){switch(oo(t),t.tag){case 1:return fe(t.type)&&Fr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bt(),I(ce),I(re),ho(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vo(t),null;case 13:if(I(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));Jt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(U),null;case 4:return bt(),null;case 10:return co(t.type._context),null;case 22:case 23:return No(),null;case 24:return null;default:return null}}var pr=!1,ne=!1,gd=typeof WeakSet=="function"?WeakSet:Set,k=null;function Vt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Ru(e,t,n){try{n()}catch(r){V(e,t,r)}}var Ii=!1;function wd(e,t){if(mu=Mr,e=Ks(),lo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var o=0,i=-1,s=-1,c=0,v=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(i=o+l),m!==u||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(i=o),p===u&&++v===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},Mr=!1,k=t;k!==null;)if(t=k,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,k=e;else for(;k!==null;){t=k;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,j=w.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ne(t.type,S),j);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){V(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,k=e;break}k=t.return}return w=Ii,Ii=!1,w}function Pn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Ru(t,n,u)}l=l.next}while(l!==r)}}function sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ba(e){var t=e.alternate;t!==null&&(e.alternate=null,Ba(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ie],delete t[$n],delete t[gu],delete t[td],delete t[nd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ha(e){return e.tag===5||e.tag===3||e.tag===4}function ji(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ha(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jr));else if(r!==4&&(e=e.child,e!==null))for(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}var J=null,ze=!1;function Xe(e,t,n){for(n=n.child;n!==null;)Wa(e,t,n),n=n.sibling}function Wa(e,t,n){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(el,n)}catch{}switch(n.tag){case 5:ne||Vt(n,t);case 6:var r=J,l=ze;J=null,Xe(e,t,n),J=r,ze=l,J!==null&&(ze?(e=J,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):J.removeChild(n.stateNode));break;case 18:J!==null&&(ze?(e=J,n=n.stateNode,e.nodeType===8?jl(e.parentNode,n):e.nodeType===1&&jl(e,n),Dn(e)):jl(J,n.stateNode));break;case 4:r=J,l=ze,J=n.stateNode.containerInfo,ze=!0,Xe(e,t,n),J=r,ze=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,o=u.destroy;u=u.tag,o!==void 0&&(u&2||u&4)&&Ru(n,t,o),l=l.next}while(l!==r)}Xe(e,t,n);break;case 1:if(!ne&&(Vt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){V(n,t,i)}Xe(e,t,n);break;case 21:Xe(e,t,n);break;case 22:n.mode&1?(ne=(r=ne)||n.memoizedState!==null,Xe(e,t,n),ne=r):Xe(e,t,n);break;default:Xe(e,t,n)}}function Fi(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gd),t.forEach(function(r){var l=zd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~u}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kd(r/1960))-r,10e?16:e,et===null)var r=!1;else{if(e=et,et=null,Gr=0,R&6)throw Error(y(331));var l=R;for(R|=4,k=e.current;k!==null;){var u=k,o=u.child;if(k.flags&16){var i=u.deletions;if(i!==null){for(var s=0;sW()-xo?kt(e,0):Co|=n),de(e,t)}function qa(e,t){t===0&&(e.mode&1?(t=lr,lr<<=1,!(lr&130023424)&&(lr=4194304)):t=1);var n=ue();e=Qe(e,t),e!==null&&(Yn(e,t,n),de(e,n))}function Nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qa(e,n)}function zd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),qa(e,n)}var ba;ba=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ce.current)ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ae=!1,vd(e,t,n);ae=!!(e.flags&131072)}else ae=!1,F&&t.flags&1048576&&ra(t,Ar,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cr(e,t),e=t.pendingProps;var l=Zt(t,re.current);Yt(t,n),l=go(null,t,r,e,l,n);var u=wo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fe(r)?(u=!0,Ur(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,po(t),l.updater=il,t.stateNode=l,l._reactInternals=t,Cu(t,r,e,n),t=Nu(null,t,r,!0,u,n)):(t.tag=0,F&&u&&uo(t),le(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ld(r),e=Ne(r,e),l){case 0:t=Pu(null,t,r,e,n);break e;case 1:t=Oi(null,t,r,e,n);break e;case 11:t=Li(null,t,r,e,n);break e;case 14:t=Ri(null,t,r,Ne(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Pu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Oi(e,t,r,l,n);case 3:e:{if(ja(t),e===null)throw Error(y(387));r=t.pendingProps,u=t.memoizedState,l=u.element,aa(e,t),Hr(t,r,null,n);var o=t.memoizedState;if(r=o.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=en(Error(y(423)),t),t=Mi(e,t,r,n,l);break e}else if(r!==l){l=en(Error(y(424)),t),t=Mi(e,t,r,n,l);break e}else for(me=lt(t.stateNode.containerInfo.firstChild),ve=t,F=!0,Te=null,n=ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jt(),r===l){t=Ke(e,t,n);break e}le(e,t,r,n)}t=t.child}return t;case 5:return ca(t),e===null&&ku(t),r=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,o=l.children,hu(r,l)?o=null:u!==null&&hu(r,u)&&(t.flags|=32),Ia(e,t),le(e,t,o,n),t.child;case 6:return e===null&&ku(t),null;case 13:return Fa(e,t,n);case 4:return mo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qt(t,null,r,n):le(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Li(e,t,r,l,n);case 7:return le(e,t,t.pendingProps,n),t.child;case 8:return le(e,t,t.pendingProps.children,n),t.child;case 12:return le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,u=t.memoizedProps,o=l.value,M(Vr,r._currentValue),r._currentValue=o,u!==null)if(Oe(u.value,o)){if(u.children===l.children&&!ce.current){t=Ke(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){o=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=Be(-1,n&-n),s.tag=2;var c=u.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?s.next=s:(s.next=v.next,v.next=s),c.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Eu(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)o=u.type===t.type?null:u.child;else if(u.tag===18){if(o=u.return,o===null)throw Error(y(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Eu(o,n,t),o=u.sibling}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}le(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Yt(t,n),l=_e(l),r=r(l),t.flags|=1,le(e,t,r,n),t.child;case 14:return r=t.type,l=Ne(r,t.pendingProps),l=Ne(r.type,l),Ri(e,t,r,l,n);case 15:return Ma(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Cr(e,t),t.tag=1,fe(r)?(e=!0,Ur(t)):e=!1,Yt(t,n),La(t,r,l),Cu(t,r,l,n),Nu(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 22:return Da(e,t,n)}throw Error(y(156,t.tag))};function ec(e,t){return Ns(e,t)}function Td(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(e,t,n,r){return new Td(e,t,n,r)}function To(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ld(e){if(typeof e=="function")return To(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Xu)return 14}return 2}function st(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nr(e,t,n,r,l,u){var o=2;if(r=e,typeof e=="function")To(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ot:return Et(n.children,l,u,t);case Ku:o=8,l|=8;break;case Xl:return e=ke(12,n,t,l|2),e.elementType=Xl,e.lanes=u,e;case Gl:return e=ke(13,n,t,l),e.elementType=Gl,e.lanes=u,e;case Zl:return e=ke(19,n,t,l),e.elementType=Zl,e.lanes=u,e;case cs:return cl(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ss:o=10;break e;case as:o=9;break e;case Yu:o=11;break e;case Xu:o=14;break e;case Ge:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=ke(o,n,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function Et(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function cl(e,t,n,r){return e=ke(22,e,r,t),e.elementType=cs,e.lanes=n,e.stateNode={isHidden:!1},e}function Wl(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xl(0),this.expirationTimes=xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lo(e,t,n,r,l,u,o,i,s){return e=new Rd(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=ke(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},po(u),e}function Od(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lc)}catch(e){console.error(e)}}lc(),ls.exports=ye;var Fd=ls.exports,Ud,Qi=Fd;Ud=Kl.createRoot=Qi.createRoot,Kl.hydrateRoot=Qi.hydrateRoot;const vl={GBadge:"https://uikit.d.aiengines.ir/GBadge.js",Pagination:"https://uikit.d.aiengines.ir/Pagination.js",AppHeader:"https://uikit.d.aiengines.ir/AppHeader.js",AppSidebar:"https://uikit.d.aiengines.ir/AppSidebar.js"},Vd="__UIKIT_REMOTE_DEPS__",Bd="__UIKIT_REACT_REMOTE_DEPS__",hl=window.location.origin;vl.AppHeader=`${hl}/AppHeader.js`;vl.AppSidebar=`${hl}/AppSidebar.js`;vl.Pagination=`${hl}/Pagination.js`;vl.GBadge=`${hl}/GBadge.js`;ac(async()=>{const{default:e}=await import("./AppHeaderPreview-CXkWxSuL.js");return{default:e}},[],import.meta.url).then(({default:e})=>{Kl.createRoot(document.getElementById("root")).render($o.jsx(ns.StrictMode,{children:$o.jsx(e,{})}))});export{vl as D,Ad as R,Fd as a,Ud as b,$d as c,ns as d,Vd as e,Bd as f,cc as g,$o as j,br as r}; +`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dd=typeof WeakMap=="function"?WeakMap:Map;function Ra(e,t,n){n=Be(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xr||(Xr=!0,Iu=r),xu(e,t)},n}function Oa(e,t,n){n=Be(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){xu(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){xu(e,t),typeof r!="function"&&(ot===null?ot=new Set([this]):ot.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ni(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Pd.bind(null,e,t,n),t.then(e,e))}function zi(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ti(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Be(-1,1),t.tag=2,ut(n,t,1))),n.lanes|=1),e)}var pd=Ye.ReactCurrentOwner,ae=!1;function le(e,t,n,r){t.child=e===null?ia(t,null,n,r):qt(t,e.child,n,r)}function Li(e,t,n,r,l){n=n.render;var u=t.ref;return Yt(t,l),r=go(e,t,n,r,u,l),n=wo(),e!==null&&!ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ke(e,t,l)):(F&&n&&uo(t),t.flags|=1,le(e,t,r,l),t.child)}function Ri(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!To(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Ma(e,t,u,r,l)):(e=Nr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&l)){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:jn,n(o,r)&&e.ref===t.ref)return Ke(e,t,l)}return t.flags|=1,e=st(u,r),e.ref=t.ref,e.return=t,t.child=e}function Ma(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(jn(u,r)&&e.ref===t.ref)if(ae=!1,t.pendingProps=r=u,(e.lanes&l)!==0)e.flags&131072&&(ae=!0);else return t.lanes=e.lanes,Ke(e,t,l)}return Pu(e,t,n,r,l)}function Da(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},M(Bt,pe),pe|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,M(Bt,pe),pe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,M(Bt,pe),pe|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,M(Bt,pe),pe|=r;return le(e,t,l,n),t.child}function Ia(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pu(e,t,n,r,l){var u=fe(n)?_t:re.current;return u=Zt(t,u),Yt(t,l),n=go(e,t,n,r,u,l),r=wo(),e!==null&&!ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ke(e,t,l)):(F&&r&&uo(t),t.flags|=1,le(e,t,n,l),t.child)}function Oi(e,t,n,r,l){if(fe(n)){var u=!0;Ur(t)}else u=!1;if(Yt(t,l),t.stateNode===null)Cr(e,t),La(t,n,r),Cu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=_e(c):(c=fe(n)?_t:re.current,c=Zt(t,c));var v=n.getDerivedStateFromProps,m=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==c)&&Pi(t,o,r,c),Ze=!1;var p=t.memoizedState;o.state=p,Hr(t,r,o,l),s=t.memoizedState,i!==r||p!==s||ce.current||Ze?(typeof v=="function"&&(_u(t,n,v,r),s=t.memoizedState),(i=Ze||xi(t,n,i,r,p,s,c))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=c,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,aa(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:Ne(t.type,i),o.props=c,m=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=_e(s):(s=fe(n)?_t:re.current,s=Zt(t,s));var g=n.getDerivedStateFromProps;(v=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==m||p!==s)&&Pi(t,o,r,s),Ze=!1,p=t.memoizedState,o.state=p,Hr(t,r,o,l);var w=t.memoizedState;i!==m||p!==w||ce.current||Ze?(typeof g=="function"&&(_u(t,n,g,r),w=t.memoizedState),(c=Ze||xi(t,n,c,r,p,w,s)||!1)?(v||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=s,r=c):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Nu(e,t,n,r,u,l)}function Nu(e,t,n,r,l,u){Ia(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&yi(t,n,!1),Ke(e,t,u);r=t.stateNode,pd.current=t;var i=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=qt(t,e.child,null,u),t.child=qt(t,null,i,u)):le(e,t,i,u),t.memoizedState=r.state,l&&yi(t,n,!0),t.child}function ja(e){var t=e.stateNode;t.pendingContext?hi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(e,t.context,!1),mo(e,t.containerInfo)}function Mi(e,t,n,r,l){return Jt(),io(l),t.flags|=256,le(e,t,n,r),t.child}var zu={dehydrated:null,treeContext:null,retryLane:0};function Tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fa(e,t,n){var r=t.pendingProps,l=U.current,u=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),M(U,l&1),e===null)return ku(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,u?(r=t.mode,u=t.child,o={mode:"hidden",children:o},!(r&1)&&u!==null?(u.childLanes=0,u.pendingProps=o):u=cl(o,r,0,null),e=Et(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Tu(n),t.memoizedState=zu,e):Eo(t,o));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return md(e,t,o,r,i,l,n);if(u){u=r.fallback,o=t.mode,l=e.child,i=l.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=st(l,s),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?u=st(i,u):(u=Et(u,o,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,o=e.child.memoizedState,o=o===null?Tu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},u.memoizedState=o,u.childLanes=e.childLanes&~n,t.memoizedState=zu,r}return u=e.child,e=u.sibling,r=st(u,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Eo(e,t){return t=cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function dr(e,t,n,r){return r!==null&&io(r),qt(t,e.child,null,n),e=Eo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function md(e,t,n,r,l,u,o){if(n)return t.flags&256?(t.flags&=-257,r=Bl(Error(y(422))),dr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,l=t.mode,r=cl({mode:"visible",children:r.children},l,0,null),u=Et(u,l,o,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&qt(t,e.child,null,o),t.child.memoizedState=Tu(o),t.memoizedState=zu,u);if(!(t.mode&1))return dr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,u=Error(y(419)),r=Bl(u,r,void 0),dr(e,t,o,r)}if(i=(o&e.childLanes)!==0,ae||i){if(r=Z,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==u.retryLane&&(u.retryLane=l,Qe(e,l),Re(r,e,l,-1))}return zo(),r=Bl(Error(y(421))),dr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Nd.bind(null,e),l._reactRetry=t,null):(e=u.treeContext,me=lt(l.nextSibling),ve=t,F=!0,Te=null,e!==null&&(we[Se++]=Ae,we[Se++]=Ve,we[Se++]=Ct,Ae=e.id,Ve=e.overflow,Ct=t),t=Eo(t,r.children),t.flags|=4096,t)}function Di(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Eu(e.return,t,n)}function Hl(e,t,n,r,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=l)}function Ua(e,t,n){var r=t.pendingProps,l=r.revealOrder,u=r.tail;if(le(e,t,r.children,n),r=U.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Di(e,n,t);else if(e.tag===19)Di(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(M(U,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Wr(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Hl(t,!1,l,n,u);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Wr(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Hl(t,!0,n,null,u);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ke(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(y(153));if(t.child!==null){for(e=t.child,n=st(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=st(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vd(e,t,n){switch(t.tag){case 3:ja(t),Jt();break;case 5:ca(t);break;case 1:fe(t.type)&&Ur(t);break;case 4:mo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;M(Vr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(M(U,U.current&1),t.flags|=128,null):n&t.child.childLanes?Fa(e,t,n):(M(U,U.current&1),e=Ke(e,t,n),e!==null?e.sibling:null);M(U,U.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ua(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),M(U,U.current),r)break;return null;case 22:case 23:return t.lanes=0,Da(e,t,n)}return Ke(e,t,n)}var $a,Lu,Aa,Va;$a=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Lu=function(){};Aa=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,St(Fe.current);var u=null;switch(n){case"input":l=ql(e,l),r=ql(e,r),u=[];break;case"select":l=A({},l,{value:void 0}),r=A({},r,{value:void 0}),u=[];break;case"textarea":l=tu(e,l),r=tu(e,r),u=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jr)}ru(n,r);var o;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var i=l[c];for(o in i)i.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Tn.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var s=r[c];if(i=l?.[c],r.hasOwnProperty(c)&&s!==i&&(s!=null||i!=null))if(c==="style")if(i){for(o in i)!i.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&i[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(u||(u=[]),u.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(u=u||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(u=u||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Tn.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&D("scroll",e),u||i===s||(u=[])):(u=u||[]).push(c,s))}n&&(u=u||[]).push("style",n);var c=u;(t.updateQueue=c)&&(t.flags|=4)}};Va=function(e,t,n,r){n!==r&&(t.flags|=4)};function mn(e,t){if(!F)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function te(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hd(e,t,n){var r=t.pendingProps;switch(oo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return te(t),null;case 1:return fe(t.type)&&Fr(),te(t),null;case 3:return r=t.stateNode,bt(),I(ce),I(re),ho(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(cr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Te!==null&&(Uu(Te),Te=null))),Lu(e,t),te(t),null;case 5:vo(t);var l=St(Vn.current);if(n=t.type,e!==null&&t.stateNode!=null)Aa(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(y(166));return te(t),null}if(e=St(Fe.current),cr(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Ie]=t,r[$n]=u,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ie]=t,e[$n]=r,$a(e,t,!1,!1),t.stateNode=e;e:{switch(o=lu(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;ltn&&(t.flags|=128,r=!0,mn(u,!1),t.lanes=4194304)}else{if(!r)if(e=Wr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mn(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!F)return te(t),null}else 2*W()-u.renderingStartTime>tn&&n!==1073741824&&(t.flags|=128,r=!0,mn(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(n=u.last,n!==null?n.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=W(),t.sibling=null,n=U.current,M(U,r?n&1|2:n&1),t):(te(t),null);case 22:case 23:return No(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pe&1073741824&&(te(t),t.subtreeFlags&6&&(t.flags|=8192)):te(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function yd(e,t){switch(oo(t),t.tag){case 1:return fe(t.type)&&Fr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bt(),I(ce),I(re),ho(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vo(t),null;case 13:if(I(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));Jt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(U),null;case 4:return bt(),null;case 10:return co(t.type._context),null;case 22:case 23:return No(),null;case 24:return null;default:return null}}var pr=!1,ne=!1,gd=typeof WeakSet=="function"?WeakSet:Set,k=null;function Vt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Ru(e,t,n){try{n()}catch(r){V(e,t,r)}}var Ii=!1;function wd(e,t){if(mu=Mr,e=Ks(),lo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var o=0,i=-1,s=-1,c=0,v=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(i=o+l),m!==u||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(i=o),p===u&&++v===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},Mr=!1,k=t;k!==null;)if(t=k,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,k=e;else for(;k!==null;){t=k;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,j=w.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ne(t.type,S),j);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){V(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,k=e;break}k=t.return}return w=Ii,Ii=!1,w}function Pn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Ru(t,n,u)}l=l.next}while(l!==r)}}function sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ba(e){var t=e.alternate;t!==null&&(e.alternate=null,Ba(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ie],delete t[$n],delete t[gu],delete t[td],delete t[nd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ha(e){return e.tag===5||e.tag===3||e.tag===4}function ji(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ha(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jr));else if(r!==4&&(e=e.child,e!==null))for(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}var J=null,ze=!1;function Xe(e,t,n){for(n=n.child;n!==null;)Wa(e,t,n),n=n.sibling}function Wa(e,t,n){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(el,n)}catch{}switch(n.tag){case 5:ne||Vt(n,t);case 6:var r=J,l=ze;J=null,Xe(e,t,n),J=r,ze=l,J!==null&&(ze?(e=J,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):J.removeChild(n.stateNode));break;case 18:J!==null&&(ze?(e=J,n=n.stateNode,e.nodeType===8?jl(e.parentNode,n):e.nodeType===1&&jl(e,n),Dn(e)):jl(J,n.stateNode));break;case 4:r=J,l=ze,J=n.stateNode.containerInfo,ze=!0,Xe(e,t,n),J=r,ze=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,o=u.destroy;u=u.tag,o!==void 0&&(u&2||u&4)&&Ru(n,t,o),l=l.next}while(l!==r)}Xe(e,t,n);break;case 1:if(!ne&&(Vt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){V(n,t,i)}Xe(e,t,n);break;case 21:Xe(e,t,n);break;case 22:n.mode&1?(ne=(r=ne)||n.memoizedState!==null,Xe(e,t,n),ne=r):Xe(e,t,n);break;default:Xe(e,t,n)}}function Fi(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gd),t.forEach(function(r){var l=zd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~u}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kd(r/1960))-r,10e?16:e,et===null)var r=!1;else{if(e=et,et=null,Gr=0,R&6)throw Error(y(331));var l=R;for(R|=4,k=e.current;k!==null;){var u=k,o=u.child;if(k.flags&16){var i=u.deletions;if(i!==null){for(var s=0;sW()-xo?kt(e,0):Co|=n),de(e,t)}function qa(e,t){t===0&&(e.mode&1?(t=lr,lr<<=1,!(lr&130023424)&&(lr=4194304)):t=1);var n=ue();e=Qe(e,t),e!==null&&(Yn(e,t,n),de(e,n))}function Nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qa(e,n)}function zd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),qa(e,n)}var ba;ba=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ce.current)ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ae=!1,vd(e,t,n);ae=!!(e.flags&131072)}else ae=!1,F&&t.flags&1048576&&ra(t,Ar,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cr(e,t),e=t.pendingProps;var l=Zt(t,re.current);Yt(t,n),l=go(null,t,r,e,l,n);var u=wo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fe(r)?(u=!0,Ur(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,po(t),l.updater=il,t.stateNode=l,l._reactInternals=t,Cu(t,r,e,n),t=Nu(null,t,r,!0,u,n)):(t.tag=0,F&&u&&uo(t),le(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ld(r),e=Ne(r,e),l){case 0:t=Pu(null,t,r,e,n);break e;case 1:t=Oi(null,t,r,e,n);break e;case 11:t=Li(null,t,r,e,n);break e;case 14:t=Ri(null,t,r,Ne(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Pu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Oi(e,t,r,l,n);case 3:e:{if(ja(t),e===null)throw Error(y(387));r=t.pendingProps,u=t.memoizedState,l=u.element,aa(e,t),Hr(t,r,null,n);var o=t.memoizedState;if(r=o.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=en(Error(y(423)),t),t=Mi(e,t,r,n,l);break e}else if(r!==l){l=en(Error(y(424)),t),t=Mi(e,t,r,n,l);break e}else for(me=lt(t.stateNode.containerInfo.firstChild),ve=t,F=!0,Te=null,n=ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jt(),r===l){t=Ke(e,t,n);break e}le(e,t,r,n)}t=t.child}return t;case 5:return ca(t),e===null&&ku(t),r=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,o=l.children,hu(r,l)?o=null:u!==null&&hu(r,u)&&(t.flags|=32),Ia(e,t),le(e,t,o,n),t.child;case 6:return e===null&&ku(t),null;case 13:return Fa(e,t,n);case 4:return mo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qt(t,null,r,n):le(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Li(e,t,r,l,n);case 7:return le(e,t,t.pendingProps,n),t.child;case 8:return le(e,t,t.pendingProps.children,n),t.child;case 12:return le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,u=t.memoizedProps,o=l.value,M(Vr,r._currentValue),r._currentValue=o,u!==null)if(Oe(u.value,o)){if(u.children===l.children&&!ce.current){t=Ke(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){o=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=Be(-1,n&-n),s.tag=2;var c=u.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?s.next=s:(s.next=v.next,v.next=s),c.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Eu(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)o=u.type===t.type?null:u.child;else if(u.tag===18){if(o=u.return,o===null)throw Error(y(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Eu(o,n,t),o=u.sibling}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}le(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Yt(t,n),l=_e(l),r=r(l),t.flags|=1,le(e,t,r,n),t.child;case 14:return r=t.type,l=Ne(r,t.pendingProps),l=Ne(r.type,l),Ri(e,t,r,l,n);case 15:return Ma(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ne(r,l),Cr(e,t),t.tag=1,fe(r)?(e=!0,Ur(t)):e=!1,Yt(t,n),La(t,r,l),Cu(t,r,l,n),Nu(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 22:return Da(e,t,n)}throw Error(y(156,t.tag))};function ec(e,t){return Ns(e,t)}function Td(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(e,t,n,r){return new Td(e,t,n,r)}function To(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ld(e){if(typeof e=="function")return To(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Xu)return 14}return 2}function st(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nr(e,t,n,r,l,u){var o=2;if(r=e,typeof e=="function")To(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ot:return Et(n.children,l,u,t);case Ku:o=8,l|=8;break;case Xl:return e=ke(12,n,t,l|2),e.elementType=Xl,e.lanes=u,e;case Gl:return e=ke(13,n,t,l),e.elementType=Gl,e.lanes=u,e;case Zl:return e=ke(19,n,t,l),e.elementType=Zl,e.lanes=u,e;case cs:return cl(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ss:o=10;break e;case as:o=9;break e;case Yu:o=11;break e;case Xu:o=14;break e;case Ge:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=ke(o,n,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function Et(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function cl(e,t,n,r){return e=ke(22,e,r,t),e.elementType=cs,e.lanes=n,e.stateNode={isHidden:!1},e}function Wl(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xl(0),this.expirationTimes=xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lo(e,t,n,r,l,u,o,i,s){return e=new Rd(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=ke(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},po(u),e}function Od(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lc)}catch(e){console.error(e)}}lc(),ls.exports=ye;var Fd=ls.exports,Ud,Qi=Fd;Ud=Kl.createRoot=Qi.createRoot,Kl.hydrateRoot=Qi.hydrateRoot;const vl={GBadge:"https://uikit.d.aiengines.ir/GBadge.js",Pagination:"https://uikit.d.aiengines.ir/Pagination.js",AppHeader:"https://uikit.d.aiengines.ir/AppHeader.js",AppSidebar:"https://uikit.d.aiengines.ir/AppSidebar.js"},Vd="__UIKIT_REMOTE_DEPS__",Bd="__UIKIT_REACT_REMOTE_DEPS__",hl=window.location.origin;vl.AppHeader=`${hl}/AppHeader.js`;vl.AppSidebar=`${hl}/AppSidebar.js`;vl.Pagination=`${hl}/Pagination.js`;vl.GBadge=`${hl}/GBadge.js`;ac(async()=>{const{default:e}=await import("./AppHeaderPreview-DCi6BIdl.js");return{default:e}},[],import.meta.url).then(({default:e})=>{Kl.createRoot(document.getElementById("root")).render($o.jsx(ns.StrictMode,{children:$o.jsx(e,{})}))});export{vl as D,Ad as R,Fd as a,Ud as b,$d as c,ns as d,Vd as e,Bd as f,cc as g,$o as j,br as r}; diff --git a/dist/remote/index.html b/dist/remote/index.html index bdcf74c..95df9ef 100644 --- a/dist/remote/index.html +++ b/dist/remote/index.html @@ -5,7 +5,7 @@ UI Kit Remote Demo - +
diff --git a/src/remote/ui/Pagination/index.jsx b/src/remote/ui/Pagination/index.jsx index fa300b7..79c8b89 100644 --- a/src/remote/ui/Pagination/index.jsx +++ b/src/remote/ui/Pagination/index.jsx @@ -1,9 +1,11 @@ "use client"; +import { useTheme } from "@chakra-ui/react"; + import { DEFAULT_REMOTE_URLS } from "../_core/constants"; import { createRemoteElementComponent } from "../_core/createRemoteElementComponent"; -export const Pagination = createRemoteElementComponent({ +const RemotePagination = createRemoteElementComponent({ componentName: "Pagination", tagName: "uikit-pagination", defaultRemoteUrl: DEFAULT_REMOTE_URLS.Pagination, @@ -18,3 +20,15 @@ export const Pagination = createRemoteElementComponent({ "Text", ], }); + + +export function Pagination({ theme, ...props }) { + const hostTheme = useTheme(); + + return ( + + ); +}