import{o as f,G as Tn,q as Br,y as Nn,p as K,h as B,_ as V,z as us,F as J,T as S,C as Ao,k as tt,s as Mc,x as zc,O as cr,g as Dc,V as Ke,a as Or,b as it,c as Bt,d as Me,w as Rc}from"./preact.js";import{m as qe}from"./lodash.mergewith.js";import{c as Bc,s as Oc,g as Wa}from"./framesync.js";import{G as En,T as Lc,n as Va,a as Wc,k as $t}from"./@emotion.js";import{t as Vc,a as Hc,p as jc}from"./color2k.js";import{u as Uc,m as st,A as Tt,a as Gc}from"./framer-motion.js";import{_ as Fo,a as qc,b as Kc,c as Xc}from"./@babel.js";import{c as oa,a as fs,e as Yc}from"./use-sidecar.js";import{u as ms}from"./use-callback-ref.js";import{_ as Zc,a as Gt,b as Qc}from"./tslib.js";import{s as vs}from"./react-style-singleton.js";import{h as Jc}from"./aria-hidden.js";import{t as ps,a as ed}from"./@zag-js.js";import{c as td}from"./@popperjs.js";import{i as rd}from"./react-fast-compare.js";var hs=String.raw,bs=hs`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,nd=()=>f(En,{styles:bs}),od=({scope:e=""})=>f(En,{styles:hs`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${bs}
    `});function ad(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ce(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:i}=e,s=Tn(i);s.displayName=t;function l(){var c;const d=Br(s);if(!d&&r){const u=new Error(a??ad(n,o));throw u.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,u,l),u}return d}return[s.Provider,l,s]}var[id,sd]=ce({strict:!1,name:"PortalManagerContext"});function gs(e){const{children:t,zIndex:r}=e;return f(id,{value:{zIndex:r},children:t})}gs.displayName="PortalManager";var ot=globalThis!=null&&globalThis.document?Nn:K,[ys,ld]=ce({strict:!1,name:"PortalContext"}),aa="chakra-portal",cd=".chakra-portal",dd=e=>f("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),ud=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=B(null),a=V(null),[,i]=B({});K(()=>i({}),[]);const s=ld(),l=sd();ot(()=>{if(!n)return;const d=n.ownerDocument,u=t?s??d.body:d.body;if(!u)return;a.current=d.createElement("div"),a.current.className=aa,u.appendChild(a.current),i({});const m=a.current;return()=>{u.contains(m)&&u.removeChild(m)}},[n]);const c=l!=null&&l.zIndex?f(dd,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return a.current?us(f(ys,{value:a.current,children:c}),a.current):f("span",{ref:d=>{d&&o(d)}})},fd=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,a=o??(typeof window<"u"?document.body:void 0),i=J(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=aa),l},[o]),[,s]=B({});return ot(()=>s({}),[]),ot(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?us(f(ys,{value:n?i:null,children:t}),i):null};function dr(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?f(fd,{containerRef:r,...n}):f(ud,{...n})}dr.className=aa;dr.selector=cd;dr.displayName="Portal";function yt(){const e=Br(Lc);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var An=Tn({});An.displayName="ColorModeContext";function ia(){const e=Br(An);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Gr={light:"chakra-ui-light",dark:"chakra-ui-dark"};function md(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Gr.dark:Gr.light),document.body.classList.remove(n?Gr.light:Gr.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),a=i=>{n(i.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var vd="chakra-ui-color-mode";function pd(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var hd=pd(vd),Sn=()=>{};function Ha(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Ss(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:i=hd}=e,s=o==="dark"?"dark":"light",[l,c]=B(()=>Ha(i,s)),[d,u]=B(()=>Ha(i)),{getSystemTheme:m,setClassName:v,setDataset:h,addListener:p}=J(()=>md({preventTransition:a}),[a]),b=o==="system"&&!l?d:l,y=S(I=>{const N=I==="system"?m():I;c(N),v(N==="dark"),h(N),i.set(N)},[i,m,v,h]);ot(()=>{o==="system"&&u(m())},[]),K(()=>{const I=i.get();if(I){y(I);return}if(o==="system"){y("system");return}y(s)},[i,s,o,y]);const x=S(()=>{y(b==="dark"?"light":"dark")},[b,y]);K(()=>{if(n)return p(y)},[n,p,y]);const w=J(()=>({colorMode:t??b,toggleColorMode:t?Sn:x,setColorMode:t?Sn:y,forced:t!==void 0}),[b,x,y,t]);return f(An.Provider,{value:w,children:r})}Ss.displayName="ColorModeProvider";function bd(e){const t=J(()=>({colorMode:"dark",toggleColorMode:Sn,setColorMode:Sn,forced:!0}),[]);return f(An.Provider,{value:t,...e})}bd.displayName="DarkMode";function xs(){const e=ia(),t=yt();return{...e,theme:t}}function gd(e,t,r){var n,o;if(t==null)return t;const a=i=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[i]};return(o=(n=a(t))!=null?n:a(r))!=null?o:r}function yd(e,t,r){var n,o;if(t==null)return t;const a=i=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[i])==null?void 0:l.value};return(o=(n=a(t))!=null?n:a(r))!=null?o:r}function Sd(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return a=>{const i=o.filter(Boolean),s=n.map((l,c)=>{var d,u;if(e==="breakpoints")return gd(a,l,(d=i[c])!=null?d:l);const m=`${e}.${l}`;return yd(a,m,(u=i[c])!=null?u:l)});return Array.isArray(t)?s:s[0]}}var z=(...e)=>e.filter(Boolean).join(" ");function xd(){return!1}function Te(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Lr=e=>{const{condition:t,message:r}=e;t&&xd()&&console.warn(r)};function Je(e,...t){return kd(e)?e(...t):e}var kd=e=>typeof e=="function",U=e=>e?"":void 0,ht=e=>e?!0:void 0;function L(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function sa(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var wd=e=>/!(important)?$/.test(e),ja=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,_d=(e,t)=>r=>{const n=String(t),o=wd(n),a=ja(n),i=e?`${e}.${a}`:a;let s=Te(r.__cssMap)&&i in r.__cssMap?r.__cssMap[i].varRef:t;return s=ja(s),o?`${s} !important`:s};function la(e){const{scale:t,transform:r,compose:n}=e;return(a,i)=>{var s;const l=_d(t,a)(i);let c=(s=r==null?void 0:r(l,i))!=null?s:l;return n&&(c=n(c,i)),c}}var qr=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Ue(e,t){return r=>{const n={property:r,scale:e};return n.transform=la({scale:e,transform:t}),n}}var Cd=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Pd(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:Cd(t),transform:r?la({scale:r,compose:n}):n}}var ks=["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 Id(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ks].join(" ")}function $d(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ks].join(" ")}var Td={"--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(" ")},Nd={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 Ed(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(", ")}}var Ad={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Mo={"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"},Fd=new Set(Object.values(Mo)),zo=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Md=e=>e.trim();function zd(e,t){if(e==null||zo.has(e))return e;if(!(Do(e)||zo.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=o==null?void 0:o[1],i=o==null?void 0:o[2];if(!a||!i)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[l,...c]=i.split(",").map(Md).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=l in Mo?Mo[l]:l;c.unshift(d);const u=c.map(m=>{if(Fd.has(m))return m;const v=m.indexOf(" "),[h,p]=v!==-1?[m.substr(0,v),m.substr(v+1)]:[m],b=Do(p)?p:p&&p.split(" "),y=`colors.${h}`,x=y in t.__cssMap?t.__cssMap[y].varRef:h;return b?[x,...Array.isArray(b)?b:[b]].join(" "):x});return`${s}(${u.join(", ")})`}var Do=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Dd=(e,t)=>zd(e,t??{});function Rd(e){return/^var\(--.+\)$/.test(e)}var Bd=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},rt=e=>t=>`${e}(${t})`,oe={filter(e){return e!=="auto"?e:Td},backdropFilter(e){return e!=="auto"?e:Nd},ring(e){return Ed(oe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Id():e==="auto-gpu"?$d():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Bd(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(Rd(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Dd,blur:rt("blur"),opacity:rt("opacity"),brightness:rt("brightness"),contrast:rt("contrast"),dropShadow:rt("drop-shadow"),grayscale:rt("grayscale"),hueRotate:rt("hue-rotate"),invert:rt("invert"),saturate:rt("saturate"),sepia:rt("sepia"),bgImage(e){return e==null||Do(e)||zo.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){var t;const{space:r,divide:n}=(t=Ad[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},g={borderWidths:Ue("borderWidths"),borderStyles:Ue("borderStyles"),colors:Ue("colors"),borders:Ue("borders"),gradients:Ue("gradients",oe.gradient),radii:Ue("radii",oe.px),space:Ue("space",qr(oe.vh,oe.px)),spaceT:Ue("space",qr(oe.vh,oe.px)),degreeT(e){return{property:e,transform:oe.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:la({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Ue("sizes",qr(oe.vh,oe.px)),sizesT:Ue("sizes",qr(oe.vh,oe.fraction)),shadows:Ue("shadows"),logical:Pd,blur:Ue("blur",oe.blur)},on={background:g.colors("background"),backgroundColor:g.colors("backgroundColor"),backgroundImage:g.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:oe.bgClip},bgSize:g.prop("backgroundSize"),bgPosition:g.prop("backgroundPosition"),bg:g.colors("background"),bgColor:g.colors("backgroundColor"),bgPos:g.prop("backgroundPosition"),bgRepeat:g.prop("backgroundRepeat"),bgAttachment:g.prop("backgroundAttachment"),bgGradient:g.gradients("backgroundImage"),bgClip:{transform:oe.bgClip}};Object.assign(on,{bgImage:on.backgroundImage,bgImg:on.backgroundImage});var se={border:g.borders("border"),borderWidth:g.borderWidths("borderWidth"),borderStyle:g.borderStyles("borderStyle"),borderColor:g.colors("borderColor"),borderRadius:g.radii("borderRadius"),borderTop:g.borders("borderTop"),borderBlockStart:g.borders("borderBlockStart"),borderTopLeftRadius:g.radii("borderTopLeftRadius"),borderStartStartRadius:g.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:g.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:g.radii("borderTopRightRadius"),borderStartEndRadius:g.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:g.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:g.borders("borderRight"),borderInlineEnd:g.borders("borderInlineEnd"),borderBottom:g.borders("borderBottom"),borderBlockEnd:g.borders("borderBlockEnd"),borderBottomLeftRadius:g.radii("borderBottomLeftRadius"),borderBottomRightRadius:g.radii("borderBottomRightRadius"),borderLeft:g.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:g.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:g.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:g.borders(["borderLeft","borderRight"]),borderInline:g.borders("borderInline"),borderY:g.borders(["borderTop","borderBottom"]),borderBlock:g.borders("borderBlock"),borderTopWidth:g.borderWidths("borderTopWidth"),borderBlockStartWidth:g.borderWidths("borderBlockStartWidth"),borderTopColor:g.colors("borderTopColor"),borderBlockStartColor:g.colors("borderBlockStartColor"),borderTopStyle:g.borderStyles("borderTopStyle"),borderBlockStartStyle:g.borderStyles("borderBlockStartStyle"),borderBottomWidth:g.borderWidths("borderBottomWidth"),borderBlockEndWidth:g.borderWidths("borderBlockEndWidth"),borderBottomColor:g.colors("borderBottomColor"),borderBlockEndColor:g.colors("borderBlockEndColor"),borderBottomStyle:g.borderStyles("borderBottomStyle"),borderBlockEndStyle:g.borderStyles("borderBlockEndStyle"),borderLeftWidth:g.borderWidths("borderLeftWidth"),borderInlineStartWidth:g.borderWidths("borderInlineStartWidth"),borderLeftColor:g.colors("borderLeftColor"),borderInlineStartColor:g.colors("borderInlineStartColor"),borderLeftStyle:g.borderStyles("borderLeftStyle"),borderInlineStartStyle:g.borderStyles("borderInlineStartStyle"),borderRightWidth:g.borderWidths("borderRightWidth"),borderInlineEndWidth:g.borderWidths("borderInlineEndWidth"),borderRightColor:g.colors("borderRightColor"),borderInlineEndColor:g.colors("borderInlineEndColor"),borderRightStyle:g.borderStyles("borderRightStyle"),borderInlineEndStyle:g.borderStyles("borderInlineEndStyle"),borderTopRadius:g.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:g.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:g.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:g.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(se,{rounded:se.borderRadius,roundedTop:se.borderTopRadius,roundedTopLeft:se.borderTopLeftRadius,roundedTopRight:se.borderTopRightRadius,roundedTopStart:se.borderStartStartRadius,roundedTopEnd:se.borderStartEndRadius,roundedBottom:se.borderBottomRadius,roundedBottomLeft:se.borderBottomLeftRadius,roundedBottomRight:se.borderBottomRightRadius,roundedBottomStart:se.borderEndStartRadius,roundedBottomEnd:se.borderEndEndRadius,roundedLeft:se.borderLeftRadius,roundedRight:se.borderRightRadius,roundedStart:se.borderInlineStartRadius,roundedEnd:se.borderInlineEndRadius,borderStart:se.borderInlineStart,borderEnd:se.borderInlineEnd,borderTopStartRadius:se.borderStartStartRadius,borderTopEndRadius:se.borderStartEndRadius,borderBottomStartRadius:se.borderEndStartRadius,borderBottomEndRadius:se.borderEndEndRadius,borderStartRadius:se.borderInlineStartRadius,borderEndRadius:se.borderInlineEndRadius,borderStartWidth:se.borderInlineStartWidth,borderEndWidth:se.borderInlineEndWidth,borderStartColor:se.borderInlineStartColor,borderEndColor:se.borderInlineEndColor,borderStartStyle:se.borderInlineStartStyle,borderEndStyle:se.borderInlineEndStyle});var Od={color:g.colors("color"),textColor:g.colors("color"),fill:g.colors("fill"),stroke:g.colors("stroke")},Ro={boxShadow:g.shadows("boxShadow"),mixBlendMode:!0,blendMode:g.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:g.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ro,{shadow:Ro.boxShadow});var Ld={filter:{transform:oe.filter},blur:g.blur("--chakra-blur"),brightness:g.propT("--chakra-brightness",oe.brightness),contrast:g.propT("--chakra-contrast",oe.contrast),hueRotate:g.degreeT("--chakra-hue-rotate"),invert:g.propT("--chakra-invert",oe.invert),saturate:g.propT("--chakra-saturate",oe.saturate),dropShadow:g.propT("--chakra-drop-shadow",oe.dropShadow),backdropFilter:{transform:oe.backdropFilter},backdropBlur:g.blur("--chakra-backdrop-blur"),backdropBrightness:g.propT("--chakra-backdrop-brightness",oe.brightness),backdropContrast:g.propT("--chakra-backdrop-contrast",oe.contrast),backdropHueRotate:g.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:g.propT("--chakra-backdrop-invert",oe.invert),backdropSaturate:g.propT("--chakra-backdrop-saturate",oe.saturate)},xn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:oe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:g.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:g.space("gap"),rowGap:g.space("rowGap"),columnGap:g.space("columnGap")};Object.assign(xn,{flexDir:xn.flexDirection});var ws={gridGap:g.space("gridGap"),gridColumnGap:g.space("gridColumnGap"),gridRowGap:g.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},Wd={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:oe.outline},outlineOffset:!0,outlineColor:g.colors("outlineColor")},Ge={width:g.sizesT("width"),inlineSize:g.sizesT("inlineSize"),height:g.sizes("height"),blockSize:g.sizes("blockSize"),boxSize:g.sizes(["width","height"]),minWidth:g.sizes("minWidth"),minInlineSize:g.sizes("minInlineSize"),minHeight:g.sizes("minHeight"),minBlockSize:g.sizes("minBlockSize"),maxWidth:g.sizes("maxWidth"),maxInlineSize:g.sizes("maxInlineSize"),maxHeight:g.sizes("maxHeight"),maxBlockSize:g.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:g.propT("float",oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ge,{w:Ge.width,h:Ge.height,minW:Ge.minWidth,maxW:Ge.maxWidth,minH:Ge.minHeight,maxH:Ge.maxHeight,overscroll:Ge.overscrollBehavior,overscrollX:Ge.overscrollBehaviorX,overscrollY:Ge.overscrollBehaviorY});var Vd={listStyleType:!0,listStylePosition:!0,listStylePos:g.prop("listStylePosition"),listStyleImage:!0,listStyleImg:g.prop("listStyleImage")};function Hd(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}var jd=e=>{const t=new WeakMap;return(n,o,a,i)=>{if(typeof n>"u")return e(n,o,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,a,i);return s.set(o,l),l}},Ud=jd(Hd),Gd={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},qd={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Jn=(e,t,r)=>{const n={},o=Ud(e,t,{});for(const a in o)a in r&&r[a]!=null||(n[a]=o[a]);return n},Kd={srOnly:{transform(e){return e===!0?Gd:e==="focusable"?qd:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Jn(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Jn(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Jn(t,e,r)}},Pr={position:!0,pos:g.prop("position"),zIndex:g.prop("zIndex","zIndices"),inset:g.spaceT("inset"),insetX:g.spaceT(["left","right"]),insetInline:g.spaceT("insetInline"),insetY:g.spaceT(["top","bottom"]),insetBlock:g.spaceT("insetBlock"),top:g.spaceT("top"),insetBlockStart:g.spaceT("insetBlockStart"),bottom:g.spaceT("bottom"),insetBlockEnd:g.spaceT("insetBlockEnd"),left:g.spaceT("left"),insetInlineStart:g.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:g.spaceT("right"),insetInlineEnd:g.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Pr,{insetStart:Pr.insetInlineStart,insetEnd:Pr.insetInlineEnd});var Xd={ring:{transform:oe.ring},ringColor:g.colors("--chakra-ring-color"),ringOffset:g.prop("--chakra-ring-offset-width"),ringOffsetColor:g.colors("--chakra-ring-offset-color"),ringInset:g.prop("--chakra-ring-inset")},pe={margin:g.spaceT("margin"),marginTop:g.spaceT("marginTop"),marginBlockStart:g.spaceT("marginBlockStart"),marginRight:g.spaceT("marginRight"),marginInlineEnd:g.spaceT("marginInlineEnd"),marginBottom:g.spaceT("marginBottom"),marginBlockEnd:g.spaceT("marginBlockEnd"),marginLeft:g.spaceT("marginLeft"),marginInlineStart:g.spaceT("marginInlineStart"),marginX:g.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:g.spaceT("marginInline"),marginY:g.spaceT(["marginTop","marginBottom"]),marginBlock:g.spaceT("marginBlock"),padding:g.space("padding"),paddingTop:g.space("paddingTop"),paddingBlockStart:g.space("paddingBlockStart"),paddingRight:g.space("paddingRight"),paddingBottom:g.space("paddingBottom"),paddingBlockEnd:g.space("paddingBlockEnd"),paddingLeft:g.space("paddingLeft"),paddingInlineStart:g.space("paddingInlineStart"),paddingInlineEnd:g.space("paddingInlineEnd"),paddingX:g.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:g.space("paddingInline"),paddingY:g.space(["paddingTop","paddingBottom"]),paddingBlock:g.space("paddingBlock")};Object.assign(pe,{m:pe.margin,mt:pe.marginTop,mr:pe.marginRight,me:pe.marginInlineEnd,marginEnd:pe.marginInlineEnd,mb:pe.marginBottom,ml:pe.marginLeft,ms:pe.marginInlineStart,marginStart:pe.marginInlineStart,mx:pe.marginX,my:pe.marginY,p:pe.padding,pt:pe.paddingTop,py:pe.paddingY,px:pe.paddingX,pb:pe.paddingBottom,pl:pe.paddingLeft,ps:pe.paddingInlineStart,paddingStart:pe.paddingInlineStart,pr:pe.paddingRight,pe:pe.paddingInlineEnd,paddingEnd:pe.paddingInlineEnd});var Yd={textDecorationColor:g.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:g.shadows("textShadow")},Zd={clipPath:!0,transform:g.propT("transform",oe.transform),transformOrigin:!0,translateX:g.spaceT("--chakra-translate-x"),translateY:g.spaceT("--chakra-translate-y"),skewX:g.degreeT("--chakra-skew-x"),skewY:g.degreeT("--chakra-skew-y"),scaleX:g.prop("--chakra-scale-x"),scaleY:g.prop("--chakra-scale-y"),scale:g.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:g.degreeT("--chakra-rotate")},Qd={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:g.prop("transitionDuration","transition.duration"),transitionProperty:g.prop("transitionProperty","transition.property"),transitionTimingFunction:g.prop("transitionTimingFunction","transition.easing")},Jd={fontFamily:g.prop("fontFamily","fonts"),fontSize:g.prop("fontSize","fontSizes",oe.px),fontWeight:g.prop("fontWeight","fontWeights"),lineHeight:g.prop("lineHeight","lineHeights"),letterSpacing:g.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"}},eu={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:g.spaceT("scrollMargin"),scrollMarginTop:g.spaceT("scrollMarginTop"),scrollMarginBottom:g.spaceT("scrollMarginBottom"),scrollMarginLeft:g.spaceT("scrollMarginLeft"),scrollMarginRight:g.spaceT("scrollMarginRight"),scrollMarginX:g.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:g.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:g.spaceT("scrollPadding"),scrollPaddingTop:g.spaceT("scrollPaddingTop"),scrollPaddingBottom:g.spaceT("scrollPaddingBottom"),scrollPaddingLeft:g.spaceT("scrollPaddingLeft"),scrollPaddingRight:g.spaceT("scrollPaddingRight"),scrollPaddingX:g.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:g.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function _s(e){return Te(e)&&e.reference?e.reference:String(e)}var Fn=(e,...t)=>t.map(_s).join(` ${e} `).replace(/calc/g,""),Ua=(...e)=>`calc(${Fn("+",...e)})`,Ga=(...e)=>`calc(${Fn("-",...e)})`,Bo=(...e)=>`calc(${Fn("*",...e)})`,qa=(...e)=>`calc(${Fn("/",...e)})`,Ka=e=>{const t=_s(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bo(t,-1)},Et=Object.assign(e=>({add:(...t)=>Et(Ua(e,...t)),subtract:(...t)=>Et(Ga(e,...t)),multiply:(...t)=>Et(Bo(e,...t)),divide:(...t)=>Et(qa(e,...t)),negate:()=>Et(Ka(e)),toString:()=>e.toString()}),{add:Ua,subtract:Ga,multiply:Bo,divide:qa,negate:Ka});function tu(e,t="-"){return e.replace(/\s+/g,t)}function ru(e){const t=tu(e.toString());return ou(nu(t))}function nu(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function ou(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function au(e,t=""){return[t,e].filter(Boolean).join("-")}function iu(e,t){return`var(${e}${t?`, ${t}`:""})`}function su(e,t=""){return ru(`--${au(e,t)}`)}function W(e,t,r){const n=su(e,r);return{variable:n,reference:iu(n,t)}}function lu(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,a]=n;r[o]=W(`${e}-${o}`,a);continue}r[n]=W(`${e}-${n}`)}return r}function cu(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function du(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Oo(e){if(e==null)return e;const{unitless:t}=du(e);return t||typeof e=="number"?`${e}px`:e}var Cs=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ca=e=>Object.fromEntries(Object.entries(e).sort(Cs));function Xa(e){const t=ca(e);return Object.assign(Object.values(t),t)}function uu(e){const t=Object.keys(ca(e));return new Set(t)}function Ya(e){var t;if(!e)return e;e=(t=Oo(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function xr(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Oo(e)})`),t&&r.push("and",`(max-width: ${Oo(t)})`),r.join(" ")}function fu(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Xa(e),n=Object.entries(e).sort(Cs).map(([i,s],l,c)=>{var d;let[,u]=(d=c[l+1])!=null?d:[];return u=parseFloat(u)>0?Ya(u):void 0,{_minW:Ya(s),breakpoint:i,minW:s,maxW:u,maxWQuery:xr(null,u),minWQuery:xr(s),minMaxQuery:xr(s,u)}}),o=uu(e),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(l=>o.has(l))},asObject:ca(e),asArray:Xa(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...r.map(i=>xr(i)).slice(1)],toArrayValue(i){if(!Te(i))throw new Error("toArrayValue: value must be an object");const s=a.map(l=>{var c;return(c=i[l])!=null?c:null});for(;cu(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,l,c)=>{const d=a[c];return d!=null&&l!=null&&(s[d]=l),s},{})}}}var Ee={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},xt=e=>Ps(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ut=e=>Ps(t=>e(t,"~ &"),"[data-peer]",".peer"),Ps=(e,...t)=>t.map(e).join(", "),Mn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&: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",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-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]",_groupHover:xt(Ee.hover),_peerHover:ut(Ee.hover),_groupFocus:xt(Ee.focus),_peerFocus:ut(Ee.focus),_groupFocusVisible:xt(Ee.focusVisible),_peerFocusVisible:ut(Ee.focusVisible),_groupActive:xt(Ee.active),_peerActive:ut(Ee.active),_groupDisabled:xt(Ee.disabled),_peerDisabled:ut(Ee.disabled),_groupInvalid:xt(Ee.invalid),_peerInvalid:ut(Ee.invalid),_groupChecked:xt(Ee.checked),_peerChecked:ut(Ee.checked),_groupFocusWithin:xt(Ee.focusWithin),_peerFocusWithin:ut(Ee.focusWithin),_peerPlaceholderShown:ut(Ee.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&: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]"},Is=Object.keys(Mn);function Za(e,t){return W(String(e).replace(/\./g,"-"),void 0,t)}function mu(e,t){let r={};const n={};for(const[o,a]of Object.entries(e)){const{isSemantic:i,value:s}=a,{variable:l,reference:c}=Za(o,t==null?void 0:t.cssVarPrefix);if(!i){if(o.startsWith("space")){const m=o.split("."),[v,...h]=m,p=`${v}.-${h.join(".")}`,b=Et.negate(s),y=Et.negate(c);n[p]={value:b,var:l,varRef:y}}r[l]=s,n[o]={value:s,var:l,varRef:c};continue}const d=m=>{const h=[String(o).split(".")[0],m].join(".");if(!e[h])return m;const{reference:b}=Za(h,t==null?void 0:t.cssVarPrefix);return b},u=Te(s)?s:{default:s};r=qe(r,Object.entries(u).reduce((m,[v,h])=>{var p,b;if(!h)return m;const y=d(`${h}`);if(v==="default")return m[l]=y,m;const x=(b=(p=Mn)==null?void 0:p[v])!=null?b:v;return m[x]={[l]:y},m},{})),n[o]={value:c,var:l,varRef:c}}return{cssVars:r,cssMap:n}}function vu(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function pu(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function hu(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Qa(e,t,r={}){const{stop:n,getKey:o}=r;function a(i,s=[]){var l;if(hu(i)||Array.isArray(i)){const c={};for(const[d,u]of Object.entries(i)){const m=(l=o==null?void 0:o(d))!=null?l:d,v=[...s,m];if(n!=null&&n(i,v))return t(i,s);c[m]=a(u,v)}return c}return t(i,s)}return a(e)}var bu=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function gu(e){return pu(e,bu)}function yu(e){return e.semanticTokens}function Su(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var xu=e=>Is.includes(e)||e==="default";function ku({tokens:e,semanticTokens:t}){const r={};return Qa(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),Qa(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(xu)}),r}function wu(e){var t;const r=Su(e),n=gu(r),o=yu(r),a=ku({tokens:n,semanticTokens:o}),i=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=mu(a,{cssVarPrefix:i});return Object.assign(r,{__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"},...l},__cssMap:s,__breakpoints:fu(r.breakpoints)}),r}var da=qe({},on,se,Od,xn,Ge,Ld,Xd,Wd,ws,Kd,Pr,Ro,pe,eu,Jd,Yd,Zd,Vd,Qd),_u=Object.assign({},pe,Ge,xn,ws,Pr),$s=Object.keys(_u),Cu=[...Object.keys(da),...Is],Pu={...da,...Mn},Iu=e=>e in Pu,$u=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,a={};for(const i in e){let s=Je(e[i],t);if(s==null)continue;if(s=Te(s)&&r(s)?n(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let c=0;c<l;c+=1){const d=o==null?void 0:o[c];if(!d){a[i]=s[c];continue}a[d]=a[d]||{},s[c]!=null&&(a[d][i]=s[c])}}return a};function Tu(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const a=e[o];a==="("?(n=!0,r+=a):a===")"?(n=!1,r+=a):a===","&&!n?(t.push(r),r=""):r+=a}return r=r.trim(),r&&t.push(r),t}function Nu(e){return/^var\(--.+\)$/.test(e)}var Eu=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Nu(t),Au=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var c,d;return(d=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:d.varRef},a=l=>{var c;return(c=o(l))!=null?c:l},[i,s]=Tu(t);return t=(n=(r=o(i))!=null?r:a(s))!=null?n:a(t),t};function Fu(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(a,i=!1)=>{var s,l,c;const d=Je(a,n),u=$u(d)(n);let m={};for(let v in u){const h=u[v];let p=Je(h,n);v in r&&(v=r[v]),Eu(v,p)&&(p=Au(n,p));let b=t[v];if(b===!0&&(b={property:v}),Te(p)){m[v]=(s=m[v])!=null?s:{},m[v]=qe({},m[v],o(p,!0));continue}let y=(c=(l=b==null?void 0:b.transform)==null?void 0:l.call(b,p,n,d))!=null?c:p;y=b!=null&&b.processResult?o(y,!0):y;const x=Je(b==null?void 0:b.property,n);if(!i&&(b!=null&&b.static)){const w=Je(b.static,n);m=qe({},m,w)}if(x&&Array.isArray(x)){for(const w of x)m[w]=y;continue}if(x){x==="&"&&Te(y)?m=qe({},m,y):m[x]=y;continue}if(Te(y)){m=qe({},m,y);continue}m[v]=y}return m};return o}var Ts=e=>t=>Fu({theme:t,pseudos:Mn,configs:da})(e);function ve(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Mu(e,t){if(Array.isArray(e))return e;if(Te(e))return t(e);if(e!=null)return[e]}function zu(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function Du(e){const t=e.__breakpoints;return function(n,o,a,i){var s,l;if(!t)return;const c={},d=Mu(a,t.toArrayValue);if(!d)return c;const u=d.length,m=u===1,v=!!n.parts;for(let h=0;h<u;h++){const p=t.details[h],b=t.details[zu(d,h)],y=xr(p.minW,b==null?void 0:b._minW),x=Je((s=n[o])==null?void 0:s[d[h]],i);if(x){if(v){(l=n.parts)==null||l.forEach(w=>{qe(c,{[w]:m?x[w]:{[y]:x[w]}})});continue}if(!v){m?qe(c,x):c[y]=x;continue}c[y]=x}}return c}}function Ru(e){return t=>{var r;const{variant:n,size:o,theme:a}=t,i=Du(a);return qe({},Je((r=e.baseStyle)!=null?r:{},t),i(e,"sizes",o,t),i(e,"variants",n,t))}}function Bu(e,t,r){var n,o,a;return(a=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?a:r}function ue(e){return vu(e,["styleConfig","size","variant","colorScheme"])}var Ou=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Lu(e){return Te(e)?Ou.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Wu={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"},Vu={"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)"},Hu={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},ju={property:Wu,easing:Vu,duration:Hu},Uu=ju,Gu={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},qu=Gu,Ku={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Xu=Ku,Yu={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Zu=Yu,Qu={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"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Ju=Qu,ef={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},tf=ef,rf={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"},nf=rf,of={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},af=of,sf={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"}},Ns=sf,Es={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"},lf={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"},cf={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},df={...Es,...lf,container:cf},As=df,uf={breakpoints:Zu,zIndices:qu,radii:tf,blur:af,colors:Ju,...Ns,sizes:As,shadows:nf,space:Es,borders:Xu,transition:Uu},{defineMultiStyleConfig:ff,definePartsStyle:kr}=ve(["stepper","step","title","description","indicator","separator","icon","number"]),ft=W("stepper-indicator-size"),qt=W("stepper-icon-size"),Kt=W("stepper-title-font-size"),wr=W("stepper-description-font-size"),br=W("stepper-accent-color"),mf=kr(({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"},[br.variable]:`colors.${e}.500`,_dark:{[br.variable]:`colors.${e}.200`}},title:{fontSize:Kt.reference,fontWeight:"medium"},description:{fontSize:wr.reference,color:"chakra-subtle-text"},number:{fontSize:Kt.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:qt.reference,height:qt.reference},indicator:{flexShrink:0,borderRadius:"full",width:ft.reference,height:ft.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:br.reference},"&[data-status=complete]":{bg:br.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:br.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ft.reference} - 8px)`,top:`calc(${ft.reference} + 4px)`,insetStart:`calc(${ft.reference} / 2 - 1px)`}}})),vf=ff({baseStyle:mf,sizes:{xs:kr({stepper:{[ft.variable]:"sizes.4",[qt.variable]:"sizes.3",[Kt.variable]:"fontSizes.xs",[wr.variable]:"fontSizes.xs"}}),sm:kr({stepper:{[ft.variable]:"sizes.6",[qt.variable]:"sizes.4",[Kt.variable]:"fontSizes.sm",[wr.variable]:"fontSizes.xs"}}),md:kr({stepper:{[ft.variable]:"sizes.8",[qt.variable]:"sizes.5",[Kt.variable]:"fontSizes.md",[wr.variable]:"fontSizes.sm"}}),lg:kr({stepper:{[ft.variable]:"sizes.10",[qt.variable]:"sizes.6",[Kt.variable]:"fontSizes.lg",[wr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function de(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){n();for(const u of d)t[u]=l(u);return de(e,t)}function a(...d){for(const u of d)u in t||(t[u]=l(u));return de(e,t)}function i(){return Object.fromEntries(Object.entries(t).map(([u,m])=>[u,m.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([u,m])=>[u,m.className]))}function l(d){const v=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>d}}return{parts:o,toPart:l,extend:a,selectors:i,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var pf=de("accordion").parts("root","container","button","panel").extend("icon"),hf=de("alert").parts("title","description","container").extend("icon","spinner"),bf=de("avatar").parts("label","badge","container").extend("excessLabel","group"),gf=de("breadcrumb").parts("link","item","container").extend("separator");de("button").parts();var yf=de("checkbox").parts("control","icon","container").extend("label");de("progress").parts("track","filledTrack").extend("label");var Sf=de("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),xf=de("editable").parts("preview","input","textarea"),kf=de("form").parts("container","requiredIndicator","helperText"),wf=de("formError").parts("text","icon"),_f=de("input").parts("addon","field","element","group"),Cf=de("list").parts("container","item","icon"),Pf=de("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),If=de("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),$f=de("numberinput").parts("root","field","stepperGroup","stepper");de("pininput").parts("field");var Tf=de("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Nf=de("progress").parts("label","filledTrack","track"),Ef=de("radio").parts("container","control","label"),Af=de("select").parts("field","icon"),Ff=de("slider").parts("container","track","thumb","filledTrack","mark"),Mf=de("stat").parts("container","label","helpText","number","icon"),zf=de("switch").parts("container","track","thumb"),Df=de("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Rf=de("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Bf=de("tag").parts("container","label","closeButton"),Of=de("card").parts("container","header","body","footer");function Lf(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}var Wf=e=>Object.keys(e).length===0,Be=(e,t,r)=>{const n=Lf(e,`colors.${t}`,t);try{return Vc(n),n}catch{return r??"#000000"}},Vf=e=>{const[t,r,n]=jc(e);return(t*299+r*587+n*114)/1e3},Hf=e=>t=>{const r=Be(t,e);return Vf(r)<128?"dark":"light"},jf=e=>t=>Hf(e)(t)==="dark",sr=(e,t)=>r=>{const n=Be(r,e);return Hc(n,1-t)};function Ja(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}var Uf=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Gf(e){const t=Uf();return!e||Wf(e)?t:e.string&&e.colors?Kf(e.string,e.colors):e.string&&!e.colors?qf(e.string):e.colors&&!e.string?Xf(e.colors):t}function qf(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t=t&t;let r="#";for(let n=0;n<3;n+=1){const o=t>>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function Kf(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function Xf(e){return e[Math.floor(Math.random()*e.length)]}function O(e,t){return r=>r.colorMode==="dark"?t:e}function ua(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Fs(e){return Te(e)&&e.reference?e.reference:String(e)}var zn=(e,...t)=>t.map(Fs).join(` ${e} `).replace(/calc/g,""),ei=(...e)=>`calc(${zn("+",...e)})`,ti=(...e)=>`calc(${zn("-",...e)})`,Lo=(...e)=>`calc(${zn("*",...e)})`,ri=(...e)=>`calc(${zn("/",...e)})`,ni=e=>{const t=Fs(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Lo(t,-1)},mt=Object.assign(e=>({add:(...t)=>mt(ei(e,...t)),subtract:(...t)=>mt(ti(e,...t)),multiply:(...t)=>mt(Lo(e,...t)),divide:(...t)=>mt(ri(e,...t)),negate:()=>mt(ni(e)),toString:()=>e.toString()}),{add:ei,subtract:ti,multiply:Lo,divide:ri,negate:ni});function Yf(e){return!Number.isInteger(parseFloat(e.toString()))}function Zf(e,t="-"){return e.replace(/\s+/g,t)}function Ms(e){const t=Zf(e.toString());return t.includes("\\.")?e:Yf(e)?t.replace(".","\\."):e}function Qf(e,t=""){return[t,Ms(e)].filter(Boolean).join("-")}function Jf(e,t){return`var(${Ms(e)}${t?`, ${t}`:""})`}function em(e,t=""){return`--${Qf(e,t)}`}function Pe(e,t){const r=em(e,t==null?void 0:t.prefix);return{variable:r,reference:Jf(r,tm(t==null?void 0:t.fallback))}}function tm(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:rm,definePartsStyle:an}=ve(zf.keys),Ir=Pe("switch-track-width"),Mt=Pe("switch-track-height"),eo=Pe("switch-track-diff"),nm=mt.subtract(Ir,Mt),Wo=Pe("switch-thumb-x"),gr=Pe("switch-bg"),om=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ir.reference],height:[Mt.reference],transitionProperty:"common",transitionDuration:"fast",[gr.variable]:"colors.gray.300",_dark:{[gr.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[gr.variable]:`colors.${t}.500`,_dark:{[gr.variable]:`colors.${t}.200`}},bg:gr.reference}},am={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Mt.reference],height:[Mt.reference],_checked:{transform:`translateX(${Wo.reference})`}},im=an(e=>({container:{[eo.variable]:nm,[Wo.variable]:eo.reference,_rtl:{[Wo.variable]:mt(eo).negate().toString()}},track:om(e),thumb:am})),sm={sm:an({container:{[Ir.variable]:"1.375rem",[Mt.variable]:"sizes.3"}}),md:an({container:{[Ir.variable]:"1.875rem",[Mt.variable]:"sizes.4"}}),lg:an({container:{[Ir.variable]:"2.875rem",[Mt.variable]:"sizes.6"}})},lm=rm({baseStyle:im,sizes:sm,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cm,definePartsStyle:er}=ve(Df.keys),dm=er({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"}}),kn={"&[data-is-numeric=true]":{textAlign:"end"}},um=er(e=>{const{colorScheme:t}=e;return{th:{color:O("gray.600","gray.400")(e),borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},td:{borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},caption:{color:O("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fm=er(e=>{const{colorScheme:t}=e;return{th:{color:O("gray.600","gray.400")(e),borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},td:{borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...kn},caption:{color:O("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e)},td:{background:O(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),mm={simple:um,striped:fm,unstyled:{}},vm={sm:er({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:er({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:er({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},pm=cm({baseStyle:dm,variants:mm,sizes:vm,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),We=W("tabs-color"),Qe=W("tabs-bg"),Kr=W("tabs-border-color"),{defineMultiStyleConfig:hm,definePartsStyle:at}=ve(Rf.keys),bm=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},gm=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}}},ym=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},Sm={p:4},xm=at(e=>({root:bm(e),tab:gm(e),tablist:ym(e),tabpanel:Sm})),km={sm:at({tab:{py:1,px:4,fontSize:"sm"}}),md:at({tab:{fontSize:"md",py:2,px:4}}),lg:at({tab:{fontSize:"lg",py:3,px:4}})},wm=at(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",a=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[We.variable]:`colors.${t}.600`,_dark:{[We.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Qe.variable]:"colors.gray.200",_dark:{[Qe.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:We.reference,bg:Qe.reference}}}),_m=at(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Kr.variable]:"transparent",_selected:{[We.variable]:`colors.${t}.600`,[Kr.variable]:"colors.white",_dark:{[We.variable]:`colors.${t}.300`,[Kr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Kr.reference},color:We.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Cm=at(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",[We.variable]:`colors.${t}.600`,_dark:{[Qe.variable]:"colors.gray.800",[We.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:We.reference,bg:Qe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Pm=at(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Be(r,`${t}.700`),bg:Be(r,`${t}.100`)}}}}),Im=at(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[We.variable]:"colors.gray.600",_dark:{[We.variable]:"inherit"},_selected:{[We.variable]:"colors.white",[Qe.variable]:`colors.${t}.600`,_dark:{[We.variable]:"colors.gray.800",[Qe.variable]:`colors.${t}.300`}},color:We.reference,bg:Qe.reference}}}),$m=at({}),Tm={line:wm,enclosed:_m,"enclosed-colored":Cm,"soft-rounded":Pm,"solid-rounded":Im,unstyled:$m},Nm=hm({baseStyle:xm,sizes:km,variants:Tm,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ke=lu("badge",["bg","color","shadow"]),Em={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ke.bg.reference,color:ke.color.reference,boxShadow:ke.shadow.reference},Am=e=>{const{colorScheme:t,theme:r}=e,n=sr(`${t}.500`,.6)(r);return{[ke.bg.variable]:`colors.${t}.500`,[ke.color.variable]:"colors.white",_dark:{[ke.bg.variable]:n,[ke.color.variable]:"colors.whiteAlpha.800"}}},Fm=e=>{const{colorScheme:t,theme:r}=e,n=sr(`${t}.200`,.16)(r);return{[ke.bg.variable]:`colors.${t}.100`,[ke.color.variable]:`colors.${t}.800`,_dark:{[ke.bg.variable]:n,[ke.color.variable]:`colors.${t}.200`}}},Mm=e=>{const{colorScheme:t,theme:r}=e,n=sr(`${t}.200`,.8)(r);return{[ke.color.variable]:`colors.${t}.500`,_dark:{[ke.color.variable]:n},[ke.shadow.variable]:`inset 0 0 0px 1px ${ke.color.reference}`}},zm={solid:Am,subtle:Fm,outline:Mm},$r={baseStyle:Em,variants:zm,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Dm,definePartsStyle:zt}=ve(Bf.keys),oi=W("tag-bg"),ai=W("tag-color"),to=W("tag-shadow"),sn=W("tag-min-height"),ln=W("tag-min-width"),cn=W("tag-font-size"),dn=W("tag-padding-inline"),Rm={fontWeight:"medium",lineHeight:1.2,outline:0,[ai.variable]:ke.color.reference,[oi.variable]:ke.bg.reference,[to.variable]:ke.shadow.reference,color:ai.reference,bg:oi.reference,boxShadow:to.reference,borderRadius:"md",minH:sn.reference,minW:ln.reference,fontSize:cn.reference,px:dn.reference,_focusVisible:{[to.variable]:"shadows.outline"}},Bm={lineHeight:1.2,overflow:"visible"},Om={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}},Lm=zt({container:Rm,label:Bm,closeButton:Om}),Wm={sm:zt({container:{[sn.variable]:"sizes.5",[ln.variable]:"sizes.5",[cn.variable]:"fontSizes.xs",[dn.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:zt({container:{[sn.variable]:"sizes.6",[ln.variable]:"sizes.6",[cn.variable]:"fontSizes.sm",[dn.variable]:"space.2"}}),lg:zt({container:{[sn.variable]:"sizes.8",[ln.variable]:"sizes.8",[cn.variable]:"fontSizes.md",[dn.variable]:"space.3"}})},Vm={subtle:zt(e=>{var t;return{container:(t=$r.variants)==null?void 0:t.subtle(e)}}),solid:zt(e=>{var t;return{container:(t=$r.variants)==null?void 0:t.solid(e)}}),outline:zt(e=>{var t;return{container:(t=$r.variants)==null?void 0:t.outline(e)}})},Hm=Dm({variants:Vm,baseStyle:Lm,sizes:Wm,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:pt,defineMultiStyleConfig:jm}=ve(_f.keys),Xt=W("input-height"),Yt=W("input-font-size"),Zt=W("input-padding"),Qt=W("input-border-radius"),Um=pt({addon:{height:Xt.reference,fontSize:Yt.reference,px:Zt.reference,borderRadius:Qt.reference},field:{width:"100%",height:Xt.reference,fontSize:Yt.reference,px:Zt.reference,borderRadius:Qt.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),kt={lg:{[Yt.variable]:"fontSizes.lg",[Zt.variable]:"space.4",[Qt.variable]:"radii.md",[Xt.variable]:"sizes.12"},md:{[Yt.variable]:"fontSizes.md",[Zt.variable]:"space.4",[Qt.variable]:"radii.md",[Xt.variable]:"sizes.10"},sm:{[Yt.variable]:"fontSizes.sm",[Zt.variable]:"space.3",[Qt.variable]:"radii.sm",[Xt.variable]:"sizes.8"},xs:{[Yt.variable]:"fontSizes.xs",[Zt.variable]:"space.2",[Qt.variable]:"radii.sm",[Xt.variable]:"sizes.6"}},Gm={lg:pt({field:kt.lg,group:kt.lg}),md:pt({field:kt.md,group:kt.md}),sm:pt({field:kt.sm,group:kt.sm}),xs:pt({field:kt.xs,group:kt.xs})};function fa(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||O("blue.500","blue.300")(e),errorBorderColor:r||O("red.500","red.300")(e)}}var qm=pt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=fa(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:O("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(t,n),boxShadow:`0 0 0 1px ${Be(t,n)}`},_focusVisible:{zIndex:1,borderColor:Be(t,r),boxShadow:`0 0 0 1px ${Be(t,r)}`}},addon:{border:"1px solid",borderColor:O("inherit","whiteAlpha.50")(e),bg:O("gray.100","whiteAlpha.300")(e)}}}),Km=pt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=fa(e);return{field:{border:"2px solid",borderColor:"transparent",bg:O("gray.100","whiteAlpha.50")(e),_hover:{bg:O("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(t,n)},_focusVisible:{bg:"transparent",borderColor:Be(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:O("gray.100","whiteAlpha.50")(e)}}}),Xm=pt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=fa(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Be(t,n),boxShadow:`0px 1px 0px 0px ${Be(t,n)}`},_focusVisible:{borderColor:Be(t,r),boxShadow:`0px 1px 0px 0px ${Be(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Ym=pt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Zm={outline:qm,filled:Km,flushed:Xm,unstyled:Ym},le=jm({baseStyle:Um,sizes:Gm,variants:Zm,defaultProps:{size:"md",variant:"outline"}}),ii,Qm={...(ii=le.baseStyle)==null?void 0:ii.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},si,li,Jm={outline:e=>{var t,r;return(r=(t=le.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=le.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=le.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(li=(si=le.variants)==null?void 0:si.unstyled.field)!=null?li:{}},ci,di,ui,fi,mi,vi,pi,hi,ev={xs:(di=(ci=le.sizes)==null?void 0:ci.xs.field)!=null?di:{},sm:(fi=(ui=le.sizes)==null?void 0:ui.sm.field)!=null?fi:{},md:(vi=(mi=le.sizes)==null?void 0:mi.md.field)!=null?vi:{},lg:(hi=(pi=le.sizes)==null?void 0:pi.lg.field)!=null?hi:{}},tv={baseStyle:Qm,sizes:ev,variants:Jm,defaultProps:{size:"md",variant:"outline"}},Xr=Pe("tooltip-bg"),ro=Pe("tooltip-fg"),rv=Pe("popper-arrow-bg"),nv={bg:Xr.reference,color:ro.reference,[Xr.variable]:"colors.gray.700",[ro.variable]:"colors.whiteAlpha.900",_dark:{[Xr.variable]:"colors.gray.300",[ro.variable]:"colors.gray.900"},[rv.variable]:Xr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},ov={baseStyle:nv},{defineMultiStyleConfig:av,definePartsStyle:_r}=ve(Nf.keys),iv=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,a=O(Ja(),Ja("1rem","rgba(0,0,0,0.1)"))(e),i=O(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
    to right,
    transparent 0%,
    ${Be(r,i)} 50%,
    transparent 100%
  )`;return{...!n&&o&&a,...n?{bgImage:s}:{bgColor:i}}},sv={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},lv=e=>({bg:O("gray.100","whiteAlpha.300")(e)}),cv=e=>({transitionProperty:"common",transitionDuration:"slow",...iv(e)}),dv=_r(e=>({label:sv,filledTrack:cv(e),track:lv(e)})),uv={xs:_r({track:{h:"1"}}),sm:_r({track:{h:"2"}}),md:_r({track:{h:"3"}}),lg:_r({track:{h:"4"}})},fv=av({sizes:uv,baseStyle:dv,defaultProps:{size:"md",colorScheme:"blue"}}),mv=e=>typeof e=="function";function Oe(e,...t){return mv(e)?e(...t):e}var{definePartsStyle:un,defineMultiStyleConfig:vv}=ve(yf.keys),Tr=W("checkbox-size"),pv=e=>{const{colorScheme:t}=e;return{w:Tr.reference,h:Tr.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:O(`${t}.500`,`${t}.200`)(e),borderColor:O(`${t}.500`,`${t}.200`)(e),color:O("white","gray.900")(e),_hover:{bg:O(`${t}.600`,`${t}.300`)(e),borderColor:O(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:O("gray.200","transparent")(e),bg:O("gray.200","whiteAlpha.300")(e),color:O("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:O(`${t}.500`,`${t}.200`)(e),borderColor:O(`${t}.500`,`${t}.200`)(e),color:O("white","gray.900")(e)},_disabled:{bg:O("gray.100","whiteAlpha.100")(e),borderColor:O("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:O("red.500","red.300")(e)}}},hv={_disabled:{cursor:"not-allowed"}},bv={userSelect:"none",_disabled:{opacity:.4}},gv={transitionProperty:"transform",transitionDuration:"normal"},yv=un(e=>({icon:gv,container:hv,control:Oe(pv,e),label:bv})),Sv={sm:un({control:{[Tr.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:un({control:{[Tr.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:un({control:{[Tr.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},wn=vv({baseStyle:yv,sizes:Sv,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:xv,definePartsStyle:fn}=ve(Ef.keys),kv=e=>{var t;const r=(t=Oe(wn.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},wv=fn(e=>{var t,r,n,o;return{label:(r=(t=wn).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=wn).baseStyle)==null?void 0:o.call(n,e).container,control:kv(e)}}),_v={md:fn({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:fn({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:fn({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Cv=xv({baseStyle:wv,sizes:_v,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Pv,definePartsStyle:Iv}=ve(Af.keys),Yr=W("select-bg"),bi,$v={...(bi=le.baseStyle)==null?void 0:bi.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Yr.reference,[Yr.variable]:"colors.white",_dark:{[Yr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Yr.reference}},Tv={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Nv=Iv({field:$v,icon:Tv}),Zr={paddingInlineEnd:"8"},gi,yi,Si,xi,ki,wi,_i,Ci,Ev={lg:{...(gi=le.sizes)==null?void 0:gi.lg,field:{...(yi=le.sizes)==null?void 0:yi.lg.field,...Zr}},md:{...(Si=le.sizes)==null?void 0:Si.md,field:{...(xi=le.sizes)==null?void 0:xi.md.field,...Zr}},sm:{...(ki=le.sizes)==null?void 0:ki.sm,field:{...(wi=le.sizes)==null?void 0:wi.sm.field,...Zr}},xs:{...(_i=le.sizes)==null?void 0:_i.xs,field:{...(Ci=le.sizes)==null?void 0:Ci.xs.field,...Zr},icon:{insetEnd:"1"}}},Av=Pv({baseStyle:Nv,sizes:Ev,variants:le.variants,defaultProps:le.defaultProps}),no=W("skeleton-start-color"),oo=W("skeleton-end-color"),Fv={[no.variable]:"colors.gray.100",[oo.variable]:"colors.gray.400",_dark:{[no.variable]:"colors.gray.800",[oo.variable]:"colors.gray.600"},background:no.reference,borderColor:oo.reference,opacity:.7,borderRadius:"sm"},Mv={baseStyle:Fv},ao=W("skip-link-bg"),zv={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[ao.variable]:"colors.white",_dark:{[ao.variable]:"colors.gray.700"},bg:ao.reference}},Dv={baseStyle:zv},{defineMultiStyleConfig:Rv,definePartsStyle:Dn}=ve(Ff.keys),Fr=W("slider-thumb-size"),Mr=W("slider-track-size"),Ct=W("slider-bg"),Bv=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ua({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Ov=e=>({...ua({orientation:e.orientation,horizontal:{h:Mr.reference},vertical:{w:Mr.reference}}),overflow:"hidden",borderRadius:"sm",[Ct.variable]:"colors.gray.200",_dark:{[Ct.variable]:"colors.whiteAlpha.200"},_disabled:{[Ct.variable]:"colors.gray.300",_dark:{[Ct.variable]:"colors.whiteAlpha.300"}},bg:Ct.reference}),Lv=e=>{const{orientation:t}=e;return{...ua({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Fr.reference,h:Fr.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Wv=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ct.variable]:`colors.${t}.500`,_dark:{[Ct.variable]:`colors.${t}.200`},bg:Ct.reference}},Vv=Dn(e=>({container:Bv(e),track:Ov(e),thumb:Lv(e),filledTrack:Wv(e)})),Hv=Dn({container:{[Fr.variable]:"sizes.4",[Mr.variable]:"sizes.1"}}),jv=Dn({container:{[Fr.variable]:"sizes.3.5",[Mr.variable]:"sizes.1"}}),Uv=Dn({container:{[Fr.variable]:"sizes.2.5",[Mr.variable]:"sizes.0.5"}}),Gv={lg:Hv,md:jv,sm:Uv},qv=Rv({baseStyle:Vv,sizes:Gv,defaultProps:{size:"md",colorScheme:"blue"}}),At=Pe("spinner-size"),Kv={width:[At.reference],height:[At.reference]},Xv={xs:{[At.variable]:"sizes.3"},sm:{[At.variable]:"sizes.4"},md:{[At.variable]:"sizes.6"},lg:{[At.variable]:"sizes.8"},xl:{[At.variable]:"sizes.12"}},Yv={baseStyle:Kv,sizes:Xv,defaultProps:{size:"md"}},{defineMultiStyleConfig:Zv,definePartsStyle:zs}=ve(Mf.keys),Qv={fontWeight:"medium"},Jv={opacity:.8,marginBottom:"2"},e0={verticalAlign:"baseline",fontWeight:"semibold"},t0={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},r0=zs({container:{},label:Qv,helpText:Jv,number:e0,icon:t0}),n0={md:zs({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},o0=Zv({baseStyle:r0,sizes:n0,defaultProps:{size:"md"}}),io=W("kbd-bg"),a0={[io.variable]:"colors.gray.100",_dark:{[io.variable]:"colors.whiteAlpha.100"},bg:io.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},i0={baseStyle:a0},s0={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},l0={baseStyle:s0},{defineMultiStyleConfig:c0,definePartsStyle:d0}=ve(Cf.keys),u0={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},f0=d0({icon:u0}),m0=c0({baseStyle:f0}),{defineMultiStyleConfig:v0,definePartsStyle:p0}=ve(Pf.keys),nt=W("menu-bg"),so=W("menu-shadow"),h0={[nt.variable]:"#fff",[so.variable]:"shadows.sm",_dark:{[nt.variable]:"colors.gray.700",[so.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:nt.reference,boxShadow:so.reference},b0={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nt.variable]:"colors.gray.100",_dark:{[nt.variable]:"colors.whiteAlpha.100"}},_active:{[nt.variable]:"colors.gray.200",_dark:{[nt.variable]:"colors.whiteAlpha.200"}},_expanded:{[nt.variable]:"colors.gray.100",_dark:{[nt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nt.reference},g0={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},y0={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},S0={opacity:.6},x0={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},k0={transitionProperty:"common",transitionDuration:"normal"},w0=p0({button:k0,list:h0,item:b0,groupTitle:g0,icon:y0,command:S0,divider:x0}),_0=v0({baseStyle:w0}),{defineMultiStyleConfig:C0,definePartsStyle:Vo}=ve(If.keys),lo=W("modal-bg"),co=W("modal-shadow"),P0={bg:"blackAlpha.600",zIndex:"modal"},I0=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},$0=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[lo.variable]:"colors.white",[co.variable]:"shadows.lg",_dark:{[lo.variable]:"colors.gray.700",[co.variable]:"shadows.dark-lg"},bg:lo.reference,boxShadow:co.reference}},T0={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},N0={position:"absolute",top:"2",insetEnd:"3"},E0=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},A0={px:"6",py:"4"},F0=Vo(e=>({overlay:P0,dialogContainer:Oe(I0,e),dialog:Oe($0,e),header:T0,closeButton:N0,body:Oe(E0,e),footer:A0}));function Ye(e){return Vo(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var M0={xs:Ye("xs"),sm:Ye("sm"),md:Ye("md"),lg:Ye("lg"),xl:Ye("xl"),"2xl":Ye("2xl"),"3xl":Ye("3xl"),"4xl":Ye("4xl"),"5xl":Ye("5xl"),"6xl":Ye("6xl"),full:Ye("full")},z0=C0({baseStyle:F0,sizes:M0,defaultProps:{size:"md"}}),{defineMultiStyleConfig:D0,definePartsStyle:Ds}=ve($f.keys),ma=Pe("number-input-stepper-width"),Rs=Pe("number-input-input-padding"),R0=mt(ma).add("0.5rem").toString(),uo=Pe("number-input-bg"),fo=Pe("number-input-color"),mo=Pe("number-input-border-color"),B0={[ma.variable]:"sizes.6",[Rs.variable]:R0},O0=e=>{var t,r;return(r=(t=Oe(le.baseStyle,e))==null?void 0:t.field)!=null?r:{}},L0={width:ma.reference},W0={borderStart:"1px solid",borderStartColor:mo.reference,color:fo.reference,bg:uo.reference,[fo.variable]:"colors.chakra-body-text",[mo.variable]:"colors.chakra-border-color",_dark:{[fo.variable]:"colors.whiteAlpha.800",[mo.variable]:"colors.whiteAlpha.300"},_active:{[uo.variable]:"colors.gray.200",_dark:{[uo.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},V0=Ds(e=>{var t;return{root:B0,field:(t=Oe(O0,e))!=null?t:{},stepperGroup:L0,stepper:W0}});function Qr(e){var t,r,n;const o=(t=le.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=Ns.fontSizes[i];return Ds({field:{...o.field,paddingInlineEnd:Rs.reference,verticalAlign:"top"},stepper:{fontSize:mt(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var H0={xs:Qr("xs"),sm:Qr("sm"),md:Qr("md"),lg:Qr("lg")},j0=D0({baseStyle:V0,sizes:H0,variants:le.variants,defaultProps:le.defaultProps}),Pi,U0={...(Pi=le.baseStyle)==null?void 0:Pi.field,textAlign:"center"},G0={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"}},Ii,$i,q0={outline:e=>{var t,r,n;return(n=(r=Oe((t=le.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=Oe((t=le.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=Oe((t=le.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:($i=(Ii=le.variants)==null?void 0:Ii.unstyled.field)!=null?$i:{}},K0={baseStyle:U0,sizes:G0,variants:q0,defaultProps:le.defaultProps},{defineMultiStyleConfig:X0,definePartsStyle:Y0}=ve(Tf.keys),Jr=Pe("popper-bg"),Z0=Pe("popper-arrow-bg"),Ti=Pe("popper-arrow-shadow-color"),Q0={zIndex:10},J0={[Jr.variable]:"colors.white",bg:Jr.reference,[Z0.variable]:Jr.reference,[Ti.variable]:"colors.gray.200",_dark:{[Jr.variable]:"colors.gray.700",[Ti.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},ep={px:3,py:2,borderBottomWidth:"1px"},tp={px:3,py:2},rp={px:3,py:2,borderTopWidth:"1px"},np={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},op=Y0({popper:Q0,content:J0,header:ep,body:tp,footer:rp,closeButton:np}),ap=X0({baseStyle:op}),{definePartsStyle:Ho,defineMultiStyleConfig:ip}=ve(Sf.keys),vo=W("drawer-bg"),po=W("drawer-box-shadow");function Wt(e){return Ho(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var sp={bg:"blackAlpha.600",zIndex:"overlay"},lp={display:"flex",zIndex:"modal",justifyContent:"center"},cp=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[vo.variable]:"colors.white",[po.variable]:"shadows.lg",_dark:{[vo.variable]:"colors.gray.700",[po.variable]:"shadows.dark-lg"},bg:vo.reference,boxShadow:po.reference}},dp={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},up={position:"absolute",top:"2",insetEnd:"3"},fp={px:"6",py:"2",flex:"1",overflow:"auto"},mp={px:"6",py:"4"},vp=Ho(e=>({overlay:sp,dialogContainer:lp,dialog:Oe(cp,e),header:dp,closeButton:up,body:fp,footer:mp})),pp={xs:Wt("xs"),sm:Wt("md"),md:Wt("lg"),lg:Wt("2xl"),xl:Wt("4xl"),full:Wt("full")},hp=ip({baseStyle:vp,sizes:pp,defaultProps:{size:"xs"}}),{definePartsStyle:bp,defineMultiStyleConfig:gp}=ve(xf.keys),yp={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Sp={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},xp={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},kp=bp({preview:yp,input:Sp,textarea:xp}),wp=gp({baseStyle:kp}),{definePartsStyle:_p,defineMultiStyleConfig:Cp}=ve(kf.keys),tr=W("form-control-color"),Pp={marginStart:"1",[tr.variable]:"colors.red.500",_dark:{[tr.variable]:"colors.red.300"},color:tr.reference},Ip={mt:"2",[tr.variable]:"colors.gray.600",_dark:{[tr.variable]:"colors.whiteAlpha.600"},color:tr.reference,lineHeight:"normal",fontSize:"sm"},$p=_p({container:{width:"100%",position:"relative"},requiredIndicator:Pp,helperText:Ip}),Tp=Cp({baseStyle:$p}),{definePartsStyle:Np,defineMultiStyleConfig:Ep}=ve(wf.keys),rr=W("form-error-color"),Ap={[rr.variable]:"colors.red.500",_dark:{[rr.variable]:"colors.red.300"},color:rr.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Fp={marginEnd:"0.5em",[rr.variable]:"colors.red.500",_dark:{[rr.variable]:"colors.red.300"},color:rr.reference},Mp=Np({text:Ap,icon:Fp}),zp=Ep({baseStyle:Mp}),Dp={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Rp={baseStyle:Dp},Bp={fontFamily:"heading",fontWeight:"bold"},Op={"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}},Lp={baseStyle:Bp,sizes:Op,defaultProps:{size:"xl"}},{defineMultiStyleConfig:Wp,definePartsStyle:Vp}=ve(gf.keys),ho=W("breadcrumb-link-decor"),Hp={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ho.reference,[ho.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ho.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},jp=Vp({link:Hp}),Up=Wp({baseStyle:jp}),Gp={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"}}},Bs=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:O("gray.800","whiteAlpha.900")(e),_hover:{bg:O("gray.100","whiteAlpha.200")(e)},_active:{bg:O("gray.200","whiteAlpha.300")(e)}};const n=sr(`${t}.200`,.12)(r),o=sr(`${t}.200`,.24)(r);return{color:O(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:O(`${t}.50`,n)(e)},_active:{bg:O(`${t}.100`,o)(e)}}},qp=e=>{const{colorScheme:t}=e,r=O("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Oe(Bs,e)}},Kp={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Xp=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=O("gray.100","whiteAlpha.200")(e);return{bg:l,color:O("gray.800","whiteAlpha.900")(e),_hover:{bg:O("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:O("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:a=`${r}.600`,activeBg:i=`${r}.700`}=(t=Kp[r])!=null?t:{},s=O(n,`${r}.200`)(e);return{bg:s,color:O(o,"gray.800")(e),_hover:{bg:O(a,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:O(i,`${r}.400`)(e)}}},Yp=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:O(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:O(`${t}.700`,`${t}.500`)(e)}}},Zp={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Qp={ghost:Bs,outline:qp,solid:Xp,link:Yp,unstyled:Zp},Jp={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"}},eh={baseStyle:Gp,variants:Qp,sizes:Jp,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Dt,defineMultiStyleConfig:th}=ve(Of.keys),_n=W("card-bg"),bt=W("card-padding"),Os=W("card-shadow"),mn=W("card-radius"),Ls=W("card-border-width","0"),Ws=W("card-border-color"),rh=Dt({container:{[_n.variable]:"colors.chakra-body-bg",backgroundColor:_n.reference,boxShadow:Os.reference,borderRadius:mn.reference,color:"chakra-body-text",borderWidth:Ls.reference,borderColor:Ws.reference},body:{padding:bt.reference,flex:"1 1 0%"},header:{padding:bt.reference},footer:{padding:bt.reference}}),nh={sm:Dt({container:{[mn.variable]:"radii.base",[bt.variable]:"space.3"}}),md:Dt({container:{[mn.variable]:"radii.md",[bt.variable]:"space.5"}}),lg:Dt({container:{[mn.variable]:"radii.xl",[bt.variable]:"space.7"}})},oh={elevated:Dt({container:{[Os.variable]:"shadows.base",_dark:{[_n.variable]:"colors.gray.700"}}}),outline:Dt({container:{[Ls.variable]:"1px",[Ws.variable]:"colors.chakra-border-color"}}),filled:Dt({container:{[_n.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[bt.variable]:0},header:{[bt.variable]:0},footer:{[bt.variable]:0}}},ah=th({baseStyle:rh,variants:oh,sizes:nh,defaultProps:{variant:"elevated",size:"md"}}),Nr=Pe("close-button-size"),yr=Pe("close-button-bg"),ih={w:[Nr.reference],h:[Nr.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[yr.variable]:"colors.blackAlpha.100",_dark:{[yr.variable]:"colors.whiteAlpha.100"}},_active:{[yr.variable]:"colors.blackAlpha.200",_dark:{[yr.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:yr.reference},sh={lg:{[Nr.variable]:"sizes.10",fontSize:"md"},md:{[Nr.variable]:"sizes.8",fontSize:"xs"},sm:{[Nr.variable]:"sizes.6",fontSize:"2xs"}},lh={baseStyle:ih,sizes:sh,defaultProps:{size:"md"}},{variants:ch,defaultProps:dh}=$r,uh={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ke.bg.reference,color:ke.color.reference,boxShadow:ke.shadow.reference},fh={baseStyle:uh,variants:ch,defaultProps:dh},mh={w:"100%",mx:"auto",maxW:"prose",px:"4"},vh={baseStyle:mh},ph={opacity:.6,borderColor:"inherit"},hh={borderStyle:"solid"},bh={borderStyle:"dashed"},gh={solid:hh,dashed:bh},yh={baseStyle:ph,variants:gh,defaultProps:{variant:"solid"}},{definePartsStyle:Sh,defineMultiStyleConfig:xh}=ve(pf.keys),kh={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},wh={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},_h={pt:"2",px:"4",pb:"5"},Ch={fontSize:"1.25em"},Ph=Sh({container:kh,button:wh,panel:_h,icon:Ch}),Ih=xh({baseStyle:Ph}),{definePartsStyle:Wr,defineMultiStyleConfig:$h}=ve(hf.keys),He=W("alert-fg"),gt=W("alert-bg"),Th=Wr({container:{bg:gt.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:He.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:He.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function va(e){const{theme:t,colorScheme:r}=e,n=sr(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var Nh=Wr(e=>{const{colorScheme:t}=e,r=va(e);return{container:{[He.variable]:`colors.${t}.500`,[gt.variable]:r.light,_dark:{[He.variable]:`colors.${t}.200`,[gt.variable]:r.dark}}}}),Eh=Wr(e=>{const{colorScheme:t}=e,r=va(e);return{container:{[He.variable]:`colors.${t}.500`,[gt.variable]:r.light,_dark:{[He.variable]:`colors.${t}.200`,[gt.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:He.reference}}}),Ah=Wr(e=>{const{colorScheme:t}=e,r=va(e);return{container:{[He.variable]:`colors.${t}.500`,[gt.variable]:r.light,_dark:{[He.variable]:`colors.${t}.200`,[gt.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:He.reference}}}),Fh=Wr(e=>{const{colorScheme:t}=e;return{container:{[He.variable]:"colors.white",[gt.variable]:`colors.${t}.500`,_dark:{[He.variable]:"colors.gray.900",[gt.variable]:`colors.${t}.200`},color:He.reference}}}),Mh={subtle:Nh,"left-accent":Eh,"top-accent":Ah,solid:Fh},zh=$h({baseStyle:Th,variants:Mh,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Vs,defineMultiStyleConfig:Dh}=ve(bf.keys),nr=W("avatar-border-color"),Er=W("avatar-bg"),zr=W("avatar-font-size"),lr=W("avatar-size"),Rh={borderRadius:"full",border:"0.2em solid",borderColor:nr.reference,[nr.variable]:"white",_dark:{[nr.variable]:"colors.gray.800"}},Bh={bg:Er.reference,fontSize:zr.reference,width:lr.reference,height:lr.reference,lineHeight:"1",[Er.variable]:"colors.gray.200",_dark:{[Er.variable]:"colors.whiteAlpha.400"}},Oh=e=>{const{name:t,theme:r}=e,n=t?Gf({string:t}):"colors.gray.400",o=jf(n)(r);let a="white";return o||(a="gray.800"),{bg:Er.reference,fontSize:zr.reference,color:a,borderColor:nr.reference,verticalAlign:"top",width:lr.reference,height:lr.reference,"&:not([data-loaded])":{[Er.variable]:n},[nr.variable]:"colors.white",_dark:{[nr.variable]:"colors.gray.800"}}},Lh={fontSize:zr.reference,lineHeight:"1"},Wh=Vs(e=>({badge:Oe(Rh,e),excessLabel:Oe(Bh,e),container:Oe(Oh,e),label:Lh}));function wt(e){const t=e!=="100%"?As[e]:void 0;return Vs({container:{[lr.variable]:t??e,[zr.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[lr.variable]:t??e,[zr.variable]:`calc(${t??e} / 2.5)`}})}var Vh={"2xs":wt(4),xs:wt(6),sm:wt(8),md:wt(12),lg:wt(16),xl:wt(24),"2xl":wt(32),full:wt("100%")},Hh=Dh({baseStyle:Wh,sizes:Vh,defaultProps:{size:"md"}}),jh={Accordion:Ih,Alert:zh,Avatar:Hh,Badge:$r,Breadcrumb:Up,Button:eh,Checkbox:wn,CloseButton:lh,Code:fh,Container:vh,Divider:yh,Drawer:hp,Editable:wp,Form:Tp,FormError:zp,FormLabel:Rp,Heading:Lp,Input:le,Kbd:i0,Link:l0,List:m0,Menu:_0,Modal:z0,NumberInput:j0,PinInput:K0,Popover:ap,Progress:fv,Radio:Cv,Select:Av,Skeleton:Mv,SkipLink:Dv,Slider:qv,Spinner:Yv,Stat:o0,Switch:lm,Table:pm,Tabs:Nm,Tag:Hm,Textarea:tv,Tooltip:ov,Card:ah,Stepper:vf},Uh={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"}}},Gh={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"}}},qh="ltr",Kh={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Hs={semanticTokens:Uh,direction:qh,...uf,components:jh,styles:Gh,config:Kh};function Cr(e){return typeof e=="function"}function Xh(...e){return t=>e.reduce((r,n)=>n(r),t)}var Yh=e=>function(...r){let n=[...r],o=r[r.length-1];return Lu(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Xh(...n.map(a=>i=>Cr(a)?a(i):Zh(i,a)))(o)},qw=Yh(Hs);function Zh(...e){return qe({},...e,js)}function js(e,t,r,n){if((Cr(e)||Cr(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const a=Cr(e)?e(...o):e,i=Cr(t)?t(...o):t;return qe({},a,i,js)}}function Qh(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Jh=Qh();function eb(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function tb(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}var rb=e=>{const t=new WeakMap;return(n,o,a,i)=>{if(typeof n>"u")return e(n,o,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,a,i);return s.set(o,l),l}},Us=rb(tb);function Gs(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var qs=e=>Gs(e,t=>t!=null);function nb(e){return typeof e=="function"}function Ks(e,...t){return nb(e)?e(...t):e}function ob(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function Xs(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:a,colorMode:i}=xs(),s=e?Us(a,`components.${e}`):void 0,l=n||s,c=qe({theme:a,colorMode:i},(r=l==null?void 0:l.defaultProps)!=null?r:{},qs(eb(o,["children"]))),d=V({});if(l){const m=Ru(l)(c);rd(d.current,m)||(d.current=m)}return d.current}function je(e,t={}){return Xs(e,t)}function Ne(e,t={}){return Xs(e,t)}var ab=new Set([...Cu,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ib=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function sb(e){return ib.has(e)||!ab.has(e)}function lb(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function pa(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var Ni,cb=(Ni=Va.default)!=null?Ni:Va,db=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:a,...i}=t,s=Gs(i,(u,m)=>Iu(m)),l=Ks(e,t),c=lb({},o,l,qs(s),a),d=Ts(c)(t.theme);return n?[d,n]:d};function bo(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=sb);const o=db({baseStyle:r}),a=cb(e,n)(o);return Ao.forwardRef(function(l,c){const{colorMode:d,forced:u}=ia();return Ao.createElement(a,{ref:c,"data-theme":u?d:void 0,...l})})}function ub(){const e=new Map;return new Proxy(bo,{apply(t,r,n){return bo(...n)},get(t,r){return e.has(r)||e.set(r,bo(r)),e.get(r)}})}var k=ub();function C(e){return tt(e)}function fb(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Tn(void 0);o.displayName=n;function a(){var i;const s=Br(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,a),l}return s}return[o.Provider,a,o]}function mb(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=J(()=>wu(r),[r]);return f(Wc,{theme:o,children:[f(vb,{root:t}),n]})}function vb({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return f(En,{styles:r=>({[t]:r.__cssVars})})}fb({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function pb(){const{colorMode:e}=ia();return f(En,{styles:t=>{const r=Us(t,"styles.global"),n=Ks(r,{theme:t,colorMode:e});return n?Ts(n)(t):void 0}})}var ha=Tn({getDocument(){return document},getWindow(){return window}});ha.displayName="EnvironmentContext";function hb({defer:e}={}){const[,t]=Mc(r=>r+1,0);return ot(()=>{e&&t()},[e]),Br(ha)}function Ys(e){const{children:t,environment:r,disabled:n}=e,o=V(null),a=J(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),i=!n||!r;return f(ha.Provider,{value:a,children:[t,i&&f("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Ys.displayName="EnvironmentProvider";var bb=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:a=!0,theme:i={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,u=f(Ys,{environment:s,disabled:c,children:t});return f(mb,{theme:i,cssVarsRoot:l,children:f(Ss,{colorModeManager:r,options:i.config,children:[a?f(od,{scope:o}):f(nd,{}),!d&&f(pb,{}),n?f(gs,{zIndex:n,children:u}):u]})})},gb=(e,t)=>e.find(r=>r.id===t);function Ei(e,t){const r=Zs(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Zs(e,t){for(const[r,n]of Object.entries(e))if(gb(n,t))return r}function yb(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function Sb(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=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:r,top:n,bottom:o,right:a,left:i}}function Se(e,t=[]){const r=V(e);return K(()=>{r.current=e}),S((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function xb(e,t){const r=Se(e);K(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Pt(e,t){const r=V(!1),n=V(!1);K(()=>{if(r.current&&n.current)return e();n.current=!0},t),K(()=>(r.current=!0,()=>{r.current=!1}),[])}var kb={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*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]}}},Qs=zc(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:a=!1,position:i="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=kb,toastSpacing:d="0.5rem"}=e,[u,m]=B(s),v=Uc();Pt(()=>{v||n==null||n()},[v]),Pt(()=>{m(s)},[s]);const h=()=>m(null),p=()=>m(s),b=()=>{v&&o()};K(()=>{v&&a&&o()},[v,a,o]),xb(b,u);const y=J(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l}),[l,d]),x=J(()=>yb(i),[i]);return f(st.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:h,onHoverEnd:p,custom:{position:i},style:x,children:f(k.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:Je(r,{id:t,onClose:b})})})});Qs.displayName="ToastComponent";function wb(e,t){var r;const n=e??"bottom",a={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=a==null?void 0:a[t])!=null?r:n}var Ai={path:f("g",{stroke:"currentColor",strokeWidth:"1.5",children:[f("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"}),f("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),f("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},lt=C((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...c}=e,d=z("chakra-icon",s),u=je("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...u},v={ref:t,focusable:a,className:d,__css:m},h=n??Ai.viewBox;if(r&&typeof r!="string")return f(k.svg,{as:r,...v,...c});const p=i??Ai.path;return f(k.svg,{verticalAlign:"middle",viewBox:h,...v,...c,children:p})});lt.displayName="Icon";function ze(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,a=cr.toArray(e.path),i=C((s,l)=>f(lt,{ref:l,viewBox:t,...o,...s,children:a.length?a:f("path",{fill:"currentColor",d:r})}));return i.displayName=n,i}function _b(e){return f(lt,{viewBox:"0 0 24 24",...e,children:f("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 Cb(e){return f(lt,{viewBox:"0 0 24 24",...e,children:f("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 Fi(e){return f(lt,{viewBox:"0 0 24 24",...e,children:f("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"})})}var Pb=$t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ba=C((e,t)=>{const r=je("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=ue(e),c=z("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${Pb} ${a} linear infinite`,...r};return f(k.div,{ref:t,__css:d,className:c,...l,children:n&&f(k.span,{srOnly:!0,children:n})})});ba.displayName="Spinner";var[Ib,ga]=ce({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[$b,ya]=ce({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Js={info:{icon:Cb,colorScheme:"blue"},warning:{icon:Fi,colorScheme:"orange"},success:{icon:_b,colorScheme:"green"},error:{icon:Fi,colorScheme:"red"},loading:{icon:ba,colorScheme:"blue"}};function Tb(e){return Js[e].colorScheme}function Nb(e){return Js[e].icon}var el=C(function(t,r){const n=ya(),{status:o}=ga(),a={display:"inline",...n.description};return f(k.div,{ref:r,"data-status":o,...t,className:z("chakra-alert__desc",t.className),__css:a})});el.displayName="AlertDescription";function tl(e){const{status:t}=ga(),r=Nb(t),n=ya(),o=t==="loading"?n.spinner:n.icon;return f(k.span,{display:"inherit","data-status":t,...e,className:z("chakra-alert__icon",e.className),__css:o,children:e.children||f(r,{h:"100%",w:"100%"})})}tl.displayName="AlertIcon";var rl=C(function(t,r){const n=ya(),{status:o}=ga();return f(k.div,{ref:r,"data-status":o,...t,className:z("chakra-alert__title",t.className),__css:n.title})});rl.displayName="AlertTitle";var nl=C(function(t,r){var n;const{status:o="info",addRole:a=!0,...i}=ue(t),s=(n=t.colorScheme)!=null?n:Tb(o),l=Ne("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return f(Ib,{value:{status:o},children:f($b,{value:l,children:f(k.div,{"data-status":o,role:a?"alert":void 0,ref:r,...i,className:z("chakra-alert",t.className),__css:c})})})});nl.displayName="Alert";function Eb(e){return f(lt,{focusable:"false","aria-hidden":!0,...e,children:f("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"})})}var Sa=C(function(t,r){const n=je("CloseButton",t),{children:o,isDisabled:a,__css:i,...s}=ue(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return f(k.button,{type:"button","aria-label":"Close",ref:r,disabled:a,__css:{...l,...n,...i},...s,children:o||f(Eb,{width:"1em",height:"1em"})})});Sa.displayName="CloseButton";var Ab={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},vt=Fb(Ab);function Fb(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(a=>a())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,a)=>{n(i=>({...i,[a]:i[a].filter(s=>s.id!=o)}))},notify:(o,a)=>{const i=Mb(o,a),{position:s,id:l}=i;return n(c=>{var d,u;const v=s.includes("top")?[i,...(d=c[s])!=null?d:[]]:[...(u=c[s])!=null?u:[],i];return{...c,[s]:v}}),l},update:(o,a)=>{o&&n(i=>{const s={...i},{position:l,index:c}=Ei(s,o);return l&&c!==-1&&(s[l][c]={...s[l][c],...a,message:ol(a)}),s})},closeAll:({positions:o}={})=>{n(a=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=a[c].map(d=>({...d,requestClose:!0})),l),{...a}))},close:o=>{n(a=>{const i=Zs(a,o);return i?{...a,[i]:a[i].map(s=>s.id==o?{...s,requestClose:!0}:s)}:a})},isActive:o=>!!Ei(vt.getState(),o).position}}var Mi=0;function Mb(e,t={}){var r,n;Mi+=1;const o=(r=t.id)!=null?r:Mi,a=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>vt.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var zb=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:a,onClose:i,description:s,colorScheme:l,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return f(nl,{addRole:!1,status:t,variant:r,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[f(tl,{children:c}),f(k.div,{flex:"1",maxWidth:"100%",children:[o&&f(rl,{id:d==null?void 0:d.title,children:o}),s&&f(el,{id:d==null?void 0:d.description,display:"block",children:s})]}),a&&f(Sa,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function ol(e={}){const{render:t,toastComponent:r=zb}=e;return o=>typeof t=="function"?t({...o,...e}):f(r,{...o,...e})}function Db(e,t){const r=o=>{var a;return{...t,...o,position:wb((a=o==null?void 0:o.position)!=null?a:t==null?void 0:t.position,e)}},n=o=>{const a=r(o),i=ol(a);return vt.notify(i,a)};return n.update=(o,a)=>{vt.update(o,r(a))},n.promise=(o,a)=>{const i=n({...a.loading,status:"loading",duration:null});o.then(s=>n.update(i,{status:"success",duration:5e3,...Je(a.success,s)})).catch(s=>n.update(i,{status:"error",duration:5e3,...Je(a.error,s)}))},n.closeAll=vt.closeAll,n.close=vt.close,n.isActive=vt.isActive,n}var[Rb,Bb]=ce({name:"ToastOptionsContext",strict:!1}),Ob=e=>{const t=Dc(vt.subscribe,vt.getState),{motionVariants:r,component:n=Qs,portalProps:o}=e,i=Object.keys(t).map(s=>{const l=t[s];return f("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:Sb(s),children:f(Tt,{initial:!1,children:l.map(c=>f(n,{motionVariants:r,...c},c.id))})},s)});return f(dr,{...o,children:i})};function Kw(e){const{theme:t}=xs(),r=Bb();return J(()=>Db(t.direction,{...r,...e}),[e,t.direction,r])}var Lb=e=>function({children:r,theme:n=e,toastOptions:o,...a}){return f(bb,{theme:n,...a,children:[f(Rb,{value:o==null?void 0:o.defaultOptions,children:r}),f(Ob,{...o})]})},Xw=Lb(Hs),Wb=Object.defineProperty,Vb=(e,t,r)=>t in e?Wb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ye=(e,t,r)=>(Vb(e,typeof t!="symbol"?t+"":t,r),r);function zi(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Hb=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Di(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Ri(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var jo=typeof window<"u"?Nn:K,Cn=e=>e,jb=class{constructor(){ye(this,"descendants",new Map),ye(this,"register",e=>{if(e!=null)return Hb(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),ye(this,"unregister",e=>{this.descendants.delete(e);const t=zi(Array.from(this.descendants.keys()));this.assignIndex(t)}),ye(this,"destroy",()=>{this.descendants.clear()}),ye(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),ye(this,"count",()=>this.descendants.size),ye(this,"enabledCount",()=>this.enabledValues().length),ye(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),ye(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),ye(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),ye(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),ye(this,"first",()=>this.item(0)),ye(this,"firstEnabled",()=>this.enabledItem(0)),ye(this,"last",()=>this.item(this.descendants.size-1)),ye(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),ye(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),ye(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),ye(this,"next",(e,t=!0)=>{const r=Di(e,this.count(),t);return this.item(r)}),ye(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Di(n,this.enabledCount(),t);return this.enabledItem(o)}),ye(this,"prev",(e,t=!0)=>{const r=Ri(e,this.count()-1,t);return this.item(r)}),ye(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Ri(n,this.enabledCount()-1,t);return this.enabledItem(o)}),ye(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=zi(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(n)})}};function Ub(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 he(...e){return t=>{e.forEach(r=>{Ub(r,t)})}}function Gb(...e){return J(()=>he(...e),e)}function qb(){const e=V(new jb);return jo(()=>()=>e.current.destroy()),e.current}var[Kb,al]=ce({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Xb(e){const t=al(),[r,n]=B(-1),o=V(null);jo(()=>()=>{o.current&&t.unregister(o.current)},[]),jo(()=>{if(!o.current)return;const i=Number(o.current.dataset.index);r!=i&&!Number.isNaN(i)&&n(i)});const a=Cn(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:he(a,o)}}function xa(){return[Cn(Kb),()=>Cn(al()),()=>qb(),o=>Xb(o)]}var[Yb,Rn]=ce({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[Zb,ka]=ce({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[Qb,Yw,Jb,eg]=xa(),tg=C(function(t,r){const{getButtonProps:n}=ka(),o=n(t,r),i={display:"flex",alignItems:"center",width:"100%",outline:0,...Rn().button};return f(k.button,{...o,className:z("chakra-accordion__button",t.className),__css:i})});tg.displayName="AccordionButton";function Bn(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(m,v)=>m!==v}=e,a=Se(n),i=Se(o),[s,l]=B(r),c=t!==void 0,d=c?t:s,u=Se(m=>{const h=typeof m=="function"?m(d):m;i(d,h)&&(c||l(h),a(h))},[c,a,d,i]);return[d,u]}function rg(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:o,allowToggle:a,...i}=e;ag(e),ig(e);const s=Jb(),[l,c]=B(-1);K(()=>()=>{c(-1)},[]);const[d,u]=Bn({value:n,defaultValue(){return o?r??[]:r??-1},onChange:t});return{index:d,setIndex:u,htmlProps:i,getAccordionItemProps:v=>{let h=!1;return v!==null&&(h=Array.isArray(d)?d.includes(v):d===v),{isOpen:h,onChange:b=>{if(v!==null)if(o&&Array.isArray(d)){const y=b?d.concat(v):d.filter(x=>x!==v);u(y)}else b?u(v):a&&u(-1)}}},focusedIndex:l,setFocusedIndex:c,descendants:s}}var[ng,wa]=ce({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function og(e){const{isDisabled:t,isFocusable:r,id:n,...o}=e,{getAccordionItemProps:a,setFocusedIndex:i}=wa(),s=V(null),l=Ke(),c=n??l,d=`accordion-button-${c}`,u=`accordion-panel-${c}`;sg(e);const{register:m,index:v,descendants:h}=eg({disabled:t&&!r}),{isOpen:p,onChange:b}=a(v===-1?null:v);lg({isOpen:p,isDisabled:t});const y=()=>{b==null||b(!0)},x=()=>{b==null||b(!1)},w=S(()=>{b==null||b(!p),i(v)},[v,i,p,b]),I=S(A=>{const _={ArrowDown:()=>{const E=h.nextEnabled(v);E==null||E.node.focus()},ArrowUp:()=>{const E=h.prevEnabled(v);E==null||E.node.focus()},Home:()=>{const E=h.firstEnabled();E==null||E.node.focus()},End:()=>{const E=h.lastEnabled();E==null||E.node.focus()}}[A.key];_&&(A.preventDefault(),_(A))},[h,v]),N=S(()=>{i(v)},[i,v]),T=S(function(M={},_=null){return{...M,type:"button",ref:he(m,s,_),id:d,disabled:!!t,"aria-expanded":!!p,"aria-controls":u,onClick:L(M.onClick,w),onFocus:L(M.onFocus,N),onKeyDown:L(M.onKeyDown,I)}},[d,t,p,w,N,I,u,m]),P=S(function(M={},_=null){return{...M,ref:_,role:"region",id:u,"aria-labelledby":d,hidden:!p}},[d,p,u]);return{isOpen:p,isDisabled:t,isFocusable:r,onOpen:y,onClose:x,getButtonProps:T,getPanelProps:P,htmlProps:o}}function ag(e){const t=e.index||e.defaultIndex,r=t!=null&&!Array.isArray(t)&&e.allowMultiple;Lr({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function ig(e){Lr({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function sg(e){Lr({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
    `})}function lg(e){Lr({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function cg(e){const{isOpen:t,isDisabled:r}=ka(),{reduceMotion:n}=wa(),o=z("chakra-accordion__icon",e.className),a=Rn(),i={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return f(lt,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:i,...e,children:f("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}cg.displayName="AccordionIcon";var dg=C(function(t,r){const{children:n,className:o}=t,{htmlProps:a,...i}=og(t),l={...Rn().container,overflowAnchor:"none"},c=J(()=>i,[i]);return f(Zb,{value:c,children:f(k.div,{ref:r,...a,className:z("chakra-accordion__item",o),__css:l,children:typeof n=="function"?n({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):n})})});dg.displayName="AccordionItem";var Ft={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Sr={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Uo(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return Sr.slideRight;case"left":return Sr.slideLeft;case"bottom":return Sr.slideDown;case"top":return Sr.slideUp;default:return Sr.slideRight}}var Rt={enter:{duration:.2,ease:Ft.easeOut},exit:{duration:.1,ease:Ft.easeIn}},et={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},ug=e=>e!=null&&parseInt(e.toString(),10)>0,Bi={exit:{height:{duration:.2,ease:Ft.ease},opacity:{duration:.3,ease:Ft.ease}},enter:{height:{duration:.3,ease:Ft.ease},opacity:{duration:.4,ease:Ft.ease}}},fg={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{...e&&{opacity:ug(t)?1:0},height:t,transitionEnd:n==null?void 0:n.exit,transition:(a=r==null?void 0:r.exit)!=null?a:et.exit(Bi.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:n==null?void 0:n.enter,transition:(a=r==null?void 0:r.enter)!=null?a:et.enter(Bi.enter,o)}}},il=tt((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:a=0,endingHeight:i="auto",style:s,className:l,transition:c,transitionEnd:d,...u}=e,[m,v]=B(!1);K(()=>{const x=setTimeout(()=>{v(!0)});return()=>clearTimeout(x)},[]),Lr({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const h=parseFloat(a.toString())>0,p={startingHeight:a,endingHeight:i,animateOpacity:o,transition:m?c:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:n?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:h?"block":"none"}}},b=n?r:!0,y=r||n?"enter":"exit";return f(Tt,{initial:!1,custom:p,children:b&&f(st.div,{ref:t,...u,className:z("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:p,variants:fg,initial:n?"exit":!1,animate:y,exit:"exit"})})});il.displayName="Collapse";var mg={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:et.enter(Rt.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:et.exit(Rt.exit,r),transitionEnd:t==null?void 0:t.exit}}},sl={initial:"exit",animate:"enter",exit:"exit",variants:mg},vg=tt(function(t,r){const{unmountOnExit:n,in:o,className:a,transition:i,transitionEnd:s,delay:l,...c}=t,d=o||n?"enter":"exit",u=n?o&&n:!0,m={transition:i,transitionEnd:s,delay:l};return f(Tt,{custom:m,children:u&&f(st.div,{ref:r,className:z("chakra-fade",a),custom:m,...sl,animate:d,...c})})});vg.displayName="Fade";var pg={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(a=r==null?void 0:r.exit)!=null?a:et.exit(Rt.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:et.enter(Rt.enter,r),transitionEnd:e==null?void 0:e.enter}}},ll={initial:"exit",animate:"enter",exit:"exit",variants:pg},hg=tt(function(t,r){const{unmountOnExit:n,in:o,reverse:a=!0,initialScale:i=.95,className:s,transition:l,transitionEnd:c,delay:d,...u}=t,m=n?o&&n:!0,v=o||n?"enter":"exit",h={initialScale:i,reverse:a,transition:l,transitionEnd:c,delay:d};return f(Tt,{custom:h,children:m&&f(st.div,{ref:r,className:z("chakra-offset-slide",s),...ll,animate:v,custom:h,...u})})});hg.displayName="ScaleFade";var bg={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:(a=r==null?void 0:r.exit)!=null?a:et.exit(Rt.exit,o),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:et.enter(Rt.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:a})=>{var i;const s={x:t,y:e};return{opacity:0,transition:(i=r==null?void 0:r.exit)!=null?i:et.exit(Rt.exit,a),...o?{...s,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...s,...n==null?void 0:n.exit}}}}},Go={initial:"initial",animate:"enter",exit:"exit",variants:bg},gg=tt(function(t,r){const{unmountOnExit:n,in:o,reverse:a=!0,className:i,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:d,delay:u,...m}=t,v=n?o&&n:!0,h=o||n?"enter":"exit",p={offsetX:s,offsetY:l,reverse:a,transition:c,transitionEnd:d,delay:u};return f(Tt,{custom:p,children:v&&f(st.div,{ref:r,className:z("chakra-offset-slide",i),custom:p,...Go,animate:h,...m})})});gg.displayName="SlideFade";var Oi={exit:{duration:.15,ease:Ft.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},yg={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var o;const{exit:a}=Uo({direction:e});return{...a,transition:(o=t==null?void 0:t.exit)!=null?o:et.exit(Oi.exit,n),transitionEnd:r==null?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var o;const{enter:a}=Uo({direction:e});return{...a,transition:(o=r==null?void 0:r.enter)!=null?o:et.enter(Oi.enter,n),transitionEnd:t==null?void 0:t.enter}}},cl=tt(function(t,r){const{direction:n="right",style:o,unmountOnExit:a,in:i,className:s,transition:l,transitionEnd:c,delay:d,motionProps:u,...m}=t,v=Uo({direction:n}),h=Object.assign({position:"fixed"},v.position,o),p=a?i&&a:!0,b=i||a?"enter":"exit",y={transitionEnd:c,transition:l,direction:n,delay:d};return f(Tt,{custom:y,children:p&&f(st.div,{...m,ref:r,initial:"exit",className:z("chakra-slide",s),animate:b,exit:"exit",custom:y,variants:yg,style:h,...u})})});cl.displayName="Slide";var Sg=C(function(t,r){const{className:n,motionProps:o,...a}=t,{reduceMotion:i}=wa(),{getPanelProps:s,isOpen:l}=ka(),c=s(a,r),d=z("chakra-accordion__panel",n),u=Rn();i||delete c.hidden;const m=f(k.div,{...c,__css:u.panel,className:d});return i?m:f(il,{in:l,...o,children:m})});Sg.displayName="AccordionPanel";var xg=C(function({children:t,reduceMotion:r,...n},o){const a=Ne("Accordion",n),i=ue(n),{htmlProps:s,descendants:l,...c}=rg(i),d=J(()=>({...c,reduceMotion:!!r}),[c,r]);return f(Qb,{value:l,children:f(ng,{value:d,children:f(Yb,{value:a,children:f(k.div,{ref:o,...s,className:z("chakra-accordion",n.className),__css:a.root,children:t})})})})});xg.displayName="Accordion";var qo=C(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:a,...i}=t;return f("img",{width:n,height:o,ref:r,alt:a,...i})});qo.displayName="NativeImage";function kg(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:i,sizes:s,ignoreFallback:l}=e,[c,d]=B("pending");K(()=>{d(r?"loading":"pending")},[r]);const u=V(),m=S(()=>{if(!r)return;v();const h=new Image;h.src=r,i&&(h.crossOrigin=i),n&&(h.srcset=n),s&&(h.sizes=s),t&&(h.loading=t),h.onload=p=>{v(),d("loaded"),o==null||o(p)},h.onerror=p=>{v(),d("failed"),a==null||a(p)},u.current=h},[r,i,n,s,o,a,t]),v=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return ot(()=>{if(!l)return c==="loading"&&m(),()=>{v()}},[c,m,l]),l?"loaded":c}var wg=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function _g(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Cg=C(function(t,r){const{fallbackSrc:n,fallback:o,src:a,srcSet:i,align:s,fit:l,loading:c,ignoreFallback:d,crossOrigin:u,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...h}=t,p=n!==void 0||o!==void 0,b=c!=null||d||!p,y=kg({...t,crossOrigin:u,ignoreFallback:b}),x=wg(y,m),w={ref:r,objectFit:l,objectPosition:s,...b?h:_g(h,["onError","onLoad"])};return x?o||f(k.img,{as:qo,className:"chakra-image__placeholder",src:n,...w}):f(k.img,{as:qo,src:a,srcSet:i,crossOrigin:u,loading:c,referrerPolicy:v,className:"chakra-image",...w})});Cg.displayName="Image";function _a(e){return cr.toArray(e).filter(t=>Or(t))}var[Pg,Ig]=ce({strict:!1,name:"ButtonGroupContext"}),$g={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},Tg={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Ng=C(function(t,r){const{size:n,colorScheme:o,variant:a,className:i,spacing:s="0.5rem",isAttached:l,isDisabled:c,orientation:d="horizontal",...u}=t,m=z("chakra-button__group",i),v=J(()=>({size:n,colorScheme:o,variant:a,isDisabled:c}),[n,o,a,c]);let h={display:"inline-flex",...l?$g[d]:Tg[d](s)};const p=d==="vertical";return f(Pg,{value:v,children:f(k.div,{ref:r,role:"group",__css:h,className:m,"data-attached":l?"":void 0,"data-orientation":d,flexDir:p?"column":void 0,...u})})});Ng.displayName="ButtonGroup";function Eg(e){const[t,r]=B(!e);return{ref:S(a=>{a&&r(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Ko(e){const{children:t,className:r,...n}=e,o=Or(t)?it(t,{"aria-hidden":!0,focusable:!1}):t,a=z("chakra-button__icon",r);return f(k.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:a,children:o})}Ko.displayName="ButtonIcon";function Xo(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=f(ba,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=z("chakra-button__spinner",a),c=r==="start"?"marginEnd":"marginStart",d=J(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,c,n]);return f(k.div,{className:l,...s,__css:d,children:o})}Xo.displayName="ButtonSpinner";var dl=C((e,t)=>{const r=Ig(),n=je("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:c,loadingText:d,iconSpacing:u="0.5rem",type:m,spinner:v,spinnerPlacement:h="start",className:p,as:b,...y}=ue(e),x=J(()=>{const T={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:T}}},[n,r]),{ref:w,type:I}=Eg(b),N={rightIcon:c,leftIcon:l,iconSpacing:u,children:s};return f(k.button,{ref:Gb(t,w),as:b,type:m??I,"data-active":U(i),"data-loading":U(a),__css:x,className:z("chakra-button",p),...y,disabled:o||a,children:[a&&h==="start"&&f(Xo,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:u,children:v}),a?d||f(k.span,{opacity:0,children:f(Li,{...N})}):f(Li,{...N}),a&&h==="end"&&f(Xo,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:u,children:v})]})});dl.displayName="Button";function Li(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return f(Bt,{children:[t&&f(Ko,{marginEnd:o,children:t}),n,r&&f(Ko,{marginStart:o,children:r})]})}var Ag=C((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":a,...i}=e,s=r||n,l=Or(s)?it(s,{"aria-hidden":!0,focusable:!1}):null;return f(dl,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...i,children:l})});Ag.displayName="IconButton";var[Fg,Mg]=ce({name:"CheckboxGroupContext",strict:!1});function Wi(e){return e&&Te(e)&&Te(e.target)}function zg(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:o,isNative:a}=e,i=Se(n),[s,l]=Bn({value:r,defaultValue:t||[],onChange:i}),c=S(u=>{if(!s)return;const m=Wi(u)?u.target.checked:!s.includes(u),v=Wi(u)?u.target.value:u,h=m?[...s,v]:s.filter(p=>String(p)!==String(v));l(h)},[l,s]),d=S((u={})=>({...u,[a?"checked":"isChecked"]:s.some(v=>String(u.value)===String(v)),onChange:c}),[c,a,s]);return{value:s,isDisabled:o,onChange:c,setValue:l,getCheckboxProps:d}}function Dg(e){const{colorScheme:t,size:r,variant:n,children:o,isDisabled:a}=e,{value:i,onChange:s}=zg(e),l=J(()=>({size:r,onChange:s,colorScheme:t,value:i,variant:n,isDisabled:a}),[r,s,t,i,n,a]);return f(Fg,{value:l,children:o})}Dg.displayName="CheckboxGroup";function Rg(e){const[t,r]=B(e),[n,o]=B(!1);return e!==t&&(o(!0),r(e)),n}function Bg(e){return f(k.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:f("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Og(e){return f(k.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:f("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Lg(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?Og:Bg;return r||t?f(k.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f(o,{...n})}):null}var[Wg,ul]=ce({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Vg,Ot]=ce({strict:!1,name:"FormControlContext"});function Hg(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...i}=e,s=Ke(),l=t||`field-${s}`,c=`${l}-label`,d=`${l}-feedback`,u=`${l}-helptext`,[m,v]=B(!1),[h,p]=B(!1),[b,y]=B(!1),x=S((P={},A=null)=>({id:u,...P,ref:he(A,M=>{M&&p(!0)})}),[u]),w=S((P={},A=null)=>({...P,ref:A,"data-focus":U(b),"data-disabled":U(o),"data-invalid":U(n),"data-readonly":U(a),id:P.id!==void 0?P.id:c,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,o,b,n,a,c]),I=S((P={},A=null)=>({id:d,...P,ref:he(A,M=>{M&&v(!0)}),"aria-live":"polite"}),[d]),N=S((P={},A=null)=>({...P,...i,ref:A,role:"group"}),[i]),T=S((P={},A=null)=>({...P,ref:A,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:h,setHasHelpText:p,id:l,labelId:c,feedbackId:d,helpTextId:u,htmlProps:i,getHelpTextProps:x,getErrorMessageProps:I,getRootProps:N,getLabelProps:w,getRequiredIndicatorProps:T}}var jg=C(function(t,r){const n=Ne("Form",t),o=ue(t),{getRootProps:a,htmlProps:i,...s}=Hg(o),l=z("chakra-form-control",t.className);return f(Vg,{value:s,children:f(Wg,{value:n,children:f(k.div,{...a({},r),className:l,__css:n.container})})})});jg.displayName="FormControl";var Ug=C(function(t,r){const n=Ot(),o=ul(),a=z("chakra-form__helper-text",t.className);return f(k.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:a})});Ug.displayName="FormHelperText";var[Gg,qg]=ce({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),Kg=C((e,t)=>{const r=Ne("FormError",e),n=ue(e),o=Ot();return o!=null&&o.isInvalid?f(Gg,{value:r,children:f(k.div,{...o==null?void 0:o.getErrorMessageProps(n,t),className:z("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});Kg.displayName="FormErrorMessage";var Xg=C((e,t)=>{const r=qg(),n=Ot();if(!(n!=null&&n.isInvalid))return null;const o=z("chakra-form__error-icon",e.className);return f(lt,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:f("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"})})});Xg.displayName="FormErrorIcon";var Yg=C(function(t,r){var n;const o=je("FormLabel",t),a=ue(t),{className:i,children:s,requiredIndicator:l=f(fl,{}),optionalIndicator:c=null,...d}=a,u=Ot(),m=(n=u==null?void 0:u.getLabelProps(d,r))!=null?n:{ref:r,...d};return f(k.label,{...m,className:z("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...o},children:[s,u!=null&&u.isRequired?l:c]})});Yg.displayName="FormLabel";var fl=C(function(t,r){const n=Ot(),o=ul();if(!(n!=null&&n.isRequired))return null;const a=z("chakra-form__required-indicator",t.className);return f(k.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:a})});fl.displayName="RequiredIndicator";function ml(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...a}=Ca(e);return{...a,disabled:t,readOnly:n,required:o,"aria-invalid":ht(r),"aria-required":ht(o),"aria-readonly":ht(n)}}function Ca(e){var t,r,n;const o=Ot(),{id:a,disabled:i,readOnly:s,required:l,isRequired:c,isInvalid:d,isReadOnly:u,isDisabled:m,onFocus:v,onBlur:h,...p}=e,b=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&b.push(o.feedbackId),o!=null&&o.hasHelpText&&b.push(o.helpTextId),{...p,"aria-describedby":b.join(" ")||void 0,id:a??(o==null?void 0:o.id),isDisabled:(t=i??m)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??u)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??c)!=null?n:o==null?void 0:o.isRequired,isInvalid:d??(o==null?void 0:o.isInvalid),onFocus:L(o==null?void 0:o.onFocus,v),onBlur:L(o==null?void 0:o.onBlur,h)}}var Zg={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Qg(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function vl(e={}){const t=Ca(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:a,id:i,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:d,isChecked:u,isFocusable:m,onChange:v,isIndeterminate:h,name:p,value:b,tabIndex:y=void 0,"aria-label":x,"aria-labelledby":w,"aria-invalid":I,...N}=e,T=Qg(N,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=Se(v),A=Se(s),M=Se(l),[_,E]=B(!1),[ee,te]=B(!1),[ae,fe]=B(!1),[Q,$]=B(!1);K(()=>ps(E),[]);const D=V(null),[ie,X]=B(!0),[Ie,Ce]=B(!!d),ne=u!==void 0,G=ne?u:Ie,j=S(H=>{if(n||r){H.preventDefault();return}ne||Ce(G?H.target.checked:h?!0:H.target.checked),P==null||P(H)},[n,r,G,ne,h,P]);ot(()=>{D.current&&(D.current.indeterminate=!!h)},[h]),Pt(()=>{r&&te(!1)},[r,te]),ot(()=>{const H=D.current;if(!(H!=null&&H.form))return;const $e=()=>{Ce(!!d)};return H.form.addEventListener("reset",$e),()=>{var Fe;return(Fe=H.form)==null?void 0:Fe.removeEventListener("reset",$e)}},[]);const xe=r&&!m,be=S(H=>{H.key===" "&&$(!0)},[$]),we=S(H=>{H.key===" "&&$(!1)},[$]);ot(()=>{if(!D.current)return;D.current.checked!==G&&Ce(D.current.checked)},[D.current]);const De=S((H={},$e=null)=>{const Fe=Xe=>{ee&&Xe.preventDefault(),$(!0)};return{...H,ref:$e,"data-active":U(Q),"data-hover":U(ae),"data-checked":U(G),"data-focus":U(ee),"data-focus-visible":U(ee&&_),"data-indeterminate":U(h),"data-disabled":U(r),"data-invalid":U(a),"data-readonly":U(n),"aria-hidden":!0,onMouseDown:L(H.onMouseDown,Fe),onMouseUp:L(H.onMouseUp,()=>$(!1)),onMouseEnter:L(H.onMouseEnter,()=>fe(!0)),onMouseLeave:L(H.onMouseLeave,()=>fe(!1))}},[Q,G,r,ee,_,ae,h,a,n]),Re=S((H={},$e=null)=>({...H,ref:$e,"data-active":U(Q),"data-hover":U(ae),"data-checked":U(G),"data-focus":U(ee),"data-focus-visible":U(ee&&_),"data-indeterminate":U(h),"data-disabled":U(r),"data-invalid":U(a),"data-readonly":U(n)}),[Q,G,r,ee,_,ae,h,a,n]),Y=S((H={},$e=null)=>({...T,...H,ref:he($e,Fe=>{Fe&&X(Fe.tagName==="LABEL")}),onClick:L(H.onClick,()=>{var Fe;ie||((Fe=D.current)==null||Fe.click(),requestAnimationFrame(()=>{var Xe;(Xe=D.current)==null||Xe.focus({preventScroll:!0})}))}),"data-disabled":U(r),"data-checked":U(G),"data-invalid":U(a)}),[T,r,G,a,ie]),Z=S((H={},$e=null)=>({...H,ref:he(D,$e),type:"checkbox",name:p,value:b,id:i,tabIndex:y,onChange:L(H.onChange,j),onBlur:L(H.onBlur,A,()=>te(!1)),onFocus:L(H.onFocus,M,()=>te(!0)),onKeyDown:L(H.onKeyDown,be),onKeyUp:L(H.onKeyUp,we),required:o,checked:G,disabled:xe,readOnly:n,"aria-label":x,"aria-labelledby":w,"aria-invalid":I?!!I:a,"aria-describedby":c,"aria-disabled":r,style:Zg}),[p,b,i,j,A,M,be,we,o,G,xe,n,x,w,I,a,c,r,y]),_e=S((H={},$e=null)=>({...H,ref:$e,onMouseDown:L(H.onMouseDown,Jg),"data-disabled":U(r),"data-checked":U(G),"data-invalid":U(a)}),[G,r,a]);return{state:{isInvalid:a,isFocused:ee,isChecked:G,isActive:Q,isHovered:ae,isIndeterminate:h,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Y,getCheckboxProps:De,getIndicatorProps:Re,getInputProps:Z,getLabelProps:_e,htmlProps:T}}function Jg(e){e.preventDefault(),e.stopPropagation()}var ey={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},ty={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},ry=$t({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),ny=$t({from:{opacity:0},to:{opacity:1}}),oy=$t({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),ay=C(function(t,r){const n=Mg(),o={...n,...t},a=Ne("Checkbox",o),i=ue(t),{spacing:s="0.5rem",className:l,children:c,iconColor:d,iconSize:u,icon:m=f(Lg,{}),isChecked:v,isDisabled:h=n==null?void 0:n.isDisabled,onChange:p,inputProps:b,...y}=i;let x=v;n!=null&&n.value&&i.value&&(x=n.value.includes(i.value));let w=p;n!=null&&n.onChange&&i.value&&(w=sa(n.onChange,p));const{state:I,getInputProps:N,getCheckboxProps:T,getLabelProps:P,getRootProps:A}=vl({...y,isDisabled:h,isChecked:x,onChange:w}),M=Rg(I.isChecked),_=J(()=>({animation:M?I.isIndeterminate?`${ny} 20ms linear, ${oy} 200ms linear`:`${ry} 200ms linear`:void 0,fontSize:u,color:d,...a.icon}),[d,u,M,I.isIndeterminate,a.icon]),E=it(m,{__css:_,isIndeterminate:I.isIndeterminate,isChecked:I.isChecked});return f(k.label,{__css:{...ty,...a.container},className:z("chakra-checkbox",l),...A(),children:[f("input",{className:"chakra-checkbox__input",...N(b,r)}),f(k.span,{__css:{...ey,...a.control},className:"chakra-checkbox__control",...T(),children:E}),c&&f(k.span,{className:"chakra-checkbox__label",...P(),__css:{marginStart:s,...a.label},children:c})]})});ay.displayName="Checkbox";function iy(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function Pa(e,t){let r=iy(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Yo(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function Vi(e,t,r){return(e-t)*100/(r-t)}function sy(e,t,r){return(r-t)*e+t}function Hi(e,t,r){const n=Math.round((e-t)/r)*r+t,o=Yo(r);return Pa(n,o)}function vn(e,t,r){return e==null?e:(r<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),r))}function ly(e={}){const{onChange:t,precision:r,defaultValue:n,value:o,step:a=1,min:i=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,keepWithinRange:l=!0}=e,c=Se(t),[d,u]=B(()=>{var _;return n==null?"":(_=go(n,a,r))!=null?_:""}),m=typeof o<"u",v=m?o:d,h=pl(_t(v),a),p=r??h,b=S(_=>{_!==v&&(m||u(_.toString()),c==null||c(_.toString(),_t(_)))},[c,m,v]),y=S(_=>{let E=_;return l&&(E=vn(E,i,s)),Pa(E,p)},[p,l,s,i]),x=S((_=a)=>{let E;v===""?E=_t(_):E=_t(v)+_,E=y(E),b(E)},[y,a,b,v]),w=S((_=a)=>{let E;v===""?E=_t(-_):E=_t(v)-_,E=y(E),b(E)},[y,a,b,v]),I=S(()=>{var _;let E;n==null?E="":E=(_=go(n,a,r))!=null?_:i,b(E)},[n,r,a,b,i]),N=S(_=>{var E;const ee=(E=go(_,a,p))!=null?E:i;b(ee)},[p,a,b,i]),T=_t(v);return{isOutOfRange:T>s||T<i,isAtMax:T===s,isAtMin:T===i,precision:p,value:v,valueAsNumber:T,update:b,reset:I,increment:x,decrement:w,clamp:y,cast:N,setValue:u}}function _t(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function pl(e,t){return Math.max(Yo(t),Yo(e))}function go(e,t,r){const n=_t(e);if(Number.isNaN(n))return;const o=pl(n,t);return Pa(n,r??o)}function Ar(e,t,r,n){const o=Se(r);return K(()=>{const a=typeof e=="function"?e():e??document;if(!(!r||!a))return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,o,n)}}var Zo="data-focus-lock",hl="data-focus-lock-disabled",cy="data-no-focus-lock",dy="data-autofocus-inside",uy="data-no-autofocus",yo={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},bl=oa({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),gl=oa(),fy=oa(),my=fs({async:!0}),vy=[],Ia=tt(function(t,r){var n,o=B(),a=o[0],i=o[1],s=V(),l=V(!1),c=V(null),d=t.children,u=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,h=t.crossFrame,p=t.autoFocus;t.allowTextSelection;var b=t.group,y=t.className,x=t.whiteList,w=t.hasPositiveIndices,I=t.shards,N=I===void 0?vy:I,T=t.as,P=T===void 0?"div":T,A=t.lockProps,M=A===void 0?{}:A,_=t.sideCar,E=t.returnFocus,ee=t.focusOptions,te=t.onActivation,ae=t.onDeactivation,fe=B({}),Q=fe[0],$=S(function(){c.current=c.current||document&&document.activeElement,s.current&&te&&te(s.current),l.current=!0},[te]),D=S(function(){l.current=!1,ae&&ae(s.current)},[ae]);K(function(){u||(c.current=null)},[]);var ie=S(function(be){var we=c.current;if(we&&we.focus){var De=typeof E=="function"?E(we):E;if(De){var Re=typeof De=="object"?De:void 0;c.current=null,be?Promise.resolve().then(function(){return we.focus(Re)}):we.focus(Re)}}},[E]),X=S(function(be){l.current&&bl.useMedium(be)},[]),Ie=gl.useMedium,Ce=S(function(be){s.current!==be&&(s.current=be,i(be))},[]),ne=Fo((n={},n[hl]=u&&"disabled",n[Zo]=b,n),M),G=m!==!0,j=G&&m!=="tail",xe=ms([r,Ce]);return Me(Bt,null,G&&[Me("div",{key:"guard-first","data-focus-guard":!0,tabIndex:u?-1:0,style:yo}),w?Me("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:u?-1:1,style:yo}):null],!u&&Me(_,{id:Q,sideCar:my,observed:a,disabled:u,persistentFocus:v,crossFrame:h,autoFocus:p,whiteList:x,shards:N,onActivation:$,onDeactivation:D,returnFocus:ie,focusOptions:ee}),Me(P,Fo({ref:xe},ne,{className:y,onBlur:Ie,onFocus:X}),d),j&&Me("div",{"data-focus-guard":!0,tabIndex:u?-1:0,style:yo}))});Ia.propTypes={};Ia.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const yl=Ia;function py(e,t){function r(n){return n.displayName||n.name||"Component"}return function(o){var a=[],i;function s(){i=e(a.map(function(c){return c.props})),t(i)}var l=function(c){Kc(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return i};var u=d.prototype;return u.componentDidMount=function(){a.push(this),s()},u.componentDidUpdate=function(){s()},u.componentWillUnmount=function(){var v=a.indexOf(this);a.splice(v,1),s()},u.render=function(){return Ao.createElement(o,this.props)},d}(Rc);return qc(l,"displayName","SideEffect("+r(o)+")"),l}}var ct=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},Pn=function(e){return Array.isArray(e)?e:[e]},Sl=function(e){return Array.isArray(e)?e[0]:e},hy=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},xl=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},kl=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},by=function(e,t){return!e||kl(e)||!hy(e)&&t(xl(e))},wl=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=by(t,wl.bind(void 0,e));return e.set(t,n),n},gy=function(e,t){return e&&!kl(e)?xy(e)?t(xl(e)):!1:!0},_l=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=gy(t,_l.bind(void 0,e));return e.set(t,n),n},Cl=function(e){return e.dataset},yy=function(e){return e.tagName==="BUTTON"},Pl=function(e){return e.tagName==="INPUT"},Il=function(e){return Pl(e)&&e.type==="radio"},Sy=function(e){return!((Pl(e)||yy(e))&&(e.type==="hidden"||e.disabled))},xy=function(e){var t=e.getAttribute(uy);return![!0,"true",""].includes(t)},$a=function(e){var t;return!!(e&&(!((t=Cl(e))===null||t===void 0)&&t.focusGuard))},In=function(e){return!$a(e)},ky=function(e){return!!e},wy=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||n},$l=function(e,t,r){return ct(e).map(function(n,o){return{node:n,index:o,tabIndex:r&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}}).filter(function(n){return!t||n.tabIndex>=0}).sort(wy)},_y=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ta=_y.join(","),Cy="".concat(Ta,", [data-focus-guard]"),Tl=function(e,t){return ct((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?Cy:Ta)?[n]:[],Tl(n))},[])},Py=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?On([e.contentDocument.body],t):[e]},On=function(e,t){return e.reduce(function(r,n){var o,a=Tl(n,t),i=(o=[]).concat.apply(o,a.map(function(s){return Py(s,t)}));return r.concat(i,n.parentNode?ct(n.parentNode.querySelectorAll(Ta)).filter(function(s){return s===n}):[])},[])},Iy=function(e){var t=e.querySelectorAll("[".concat(dy,"]"));return ct(t).map(function(r){return On([r])}).reduce(function(r,n){return r.concat(n)},[])},Na=function(e,t){return ct(e).filter(function(r){return wl(t,r)}).filter(function(r){return Sy(r)})},ji=function(e,t){return t===void 0&&(t=new Map),ct(e).filter(function(r){return _l(t,r)})},Qo=function(e,t,r){return $l(Na(On(e,r),t),!0,r)},Ui=function(e,t){return $l(Na(On(e),t),!1)},$y=function(e,t){return Na(Iy(e),t)},or=function(e,t){return e.shadowRoot?or(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:ct(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?or(o,t):!1}return or(r,t)})},Ty=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(i,s){return!t.has(s)})},Nl=function(e){return e.parentNode?Nl(e.parentNode):e},Ea=function(e){var t=Pn(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(Zo);return r.push.apply(r,o?Ty(ct(Nl(n).querySelectorAll("[".concat(Zo,'="').concat(o,'"]:not([').concat(hl,'="disabled"])')))):[n]),r},[])},Ny=function(e){try{return e()}catch{return}},Dr=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Dr(t.shadowRoot):t instanceof HTMLIFrameElement&&Ny(function(){return t.contentWindow.document})?Dr(t.contentWindow.document):t}},Ey=function(e,t){return e===t},Ay=function(e,t){return!!ct(e.querySelectorAll("iframe")).some(function(r){return Ey(r,t)})},El=function(e,t){return t===void 0&&(t=Dr(Sl(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Ea(e).some(function(r){return or(r,t)||Ay(r,t)})},Fy=function(e){e===void 0&&(e=document);var t=Dr(e);return t?ct(e.querySelectorAll("[".concat(cy,"]"))).some(function(r){return or(r,t)}):!1},My=function(e,t){return t.filter(Il).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Aa=function(e,t){return Il(e)&&e.name?My(e,t):e},zy=function(e){var t=new Set;return e.forEach(function(r){return t.add(Aa(r,e))}),e.filter(function(r){return t.has(r)})},Gi=function(e){return e[0]&&e.length>1?Aa(e[0],e):e[0]},qi=function(e,t){return e.length>1?e.indexOf(Aa(e[t],e)):t},Al="NEW_FOCUS",Dy=function(e,t,r,n){var o=e.length,a=e[0],i=e[o-1],s=$a(r);if(!(r&&e.indexOf(r)>=0)){var l=r!==void 0?t.indexOf(r):-1,c=n?t.indexOf(n):l,d=n?e.indexOf(n):-1,u=l-c,m=t.indexOf(a),v=t.indexOf(i),h=zy(t),p=r!==void 0?h.indexOf(r):-1,b=p-(n?h.indexOf(n):l),y=qi(e,0),x=qi(e,o-1);if(l===-1||d===-1)return Al;if(!u&&d>=0)return d;if(l<=m&&s&&Math.abs(u)>1)return x;if(l>=v&&s&&Math.abs(u)>1)return y;if(u&&Math.abs(b)>1)return d;if(l<=m)return x;if(l>v)return y;if(u)return Math.abs(u)>1?d:(o+d+u)%o}},Ry=function(e){return function(t){var r,n=(r=Cl(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},By=function(e,t,r){var n=e.map(function(a){var i=a.node;return i}),o=ji(n.filter(Ry(r)));return o&&o.length?Gi(o):Gi(ji(t))},Jo=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Jo(e.parentNode.host||e.parentNode,t),t},So=function(e,t){for(var r=Jo(e),n=Jo(t),o=0;o<r.length;o+=1){var a=r[o];if(n.indexOf(a)>=0)return a}return!1},Fl=function(e,t,r){var n=Pn(e),o=Pn(t),a=n[0],i=!1;return o.filter(Boolean).forEach(function(s){i=So(i||s,s)||i,r.filter(Boolean).forEach(function(l){var c=So(a,l);c&&(!i||or(c,i)?i=c:i=So(c,i))})}),i},Oy=function(e,t){return e.reduce(function(r,n){return r.concat($y(n,t))},[])},Ly=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(ky)},Wy=function(e,t){var r=Dr(Pn(e).length>0?document:Sl(e).ownerDocument),n=Ea(e).filter(In),o=Fl(r||e,e,n),a=new Map,i=Ui(n,a),s=Qo(n,a).filter(function(v){var h=v.node;return In(h)});if(!(!s[0]&&(s=i,!s[0]))){var l=Ui([o],a).map(function(v){var h=v.node;return h}),c=Ly(l,s),d=c.map(function(v){var h=v.node;return h}),u=Dy(d,l,r,t);if(u===Al){var m=By(i,d,Oy(n,a));if(m)return{node:m};console.warn("focus-lock: cannot find any node to move focus into");return}return u===void 0?u:c[u]}},Vy=function(e){var t=Ea(e).filter(In),r=Fl(e,e,t),n=new Map,o=Qo([r],n,!0),a=Qo(t,n).filter(function(i){var s=i.node;return In(s)}).map(function(i){var s=i.node;return s});return o.map(function(i){var s=i.node,l=i.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:$a(s)}})},Hy=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},xo=0,ko=!1,Ml=function(e,t,r){r===void 0&&(r={});var n=Wy(e,t);if(!ko&&n){if(xo>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ko=!0,setTimeout(function(){ko=!1},1);return}xo++,Hy(n.node,r.focusOptions),xo--}};function Fa(e){setTimeout(e,1)}var jy=function(){return document&&document.activeElement===document.body},Uy=function(){return jy()||Fy()},ar=null,Jt=null,ir=null,Rr=!1,Gy=function(){return!0},qy=function(t){return(ar.whiteList||Gy)(t)},Ky=function(t,r){ir={observerNode:t,portaledElement:r}},Xy=function(t){return ir&&ir.portaledElement===t};function Ki(e,t,r,n){var o=null,a=e;do{var i=n[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=r)!==t);o&&(o.node.tabIndex=0)}var Yy=function(t){return t&&"current"in t?t.current:t},Zy=function(t){return t?!!Rr:Rr==="meanwhile"},Qy=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Jy=function(t,r){return r.some(function(n){return Qy(t,n,n)})},$n=function(){var t=!1;if(ar){var r=ar,n=r.observed,o=r.persistentFocus,a=r.autoFocus,i=r.shards,s=r.crossFrame,l=r.focusOptions,c=n||ir&&ir.portaledElement,d=document&&document.activeElement;if(c){var u=[c].concat(i.map(Yy).filter(Boolean));if((!d||qy(d))&&(o||Zy(s)||!Uy()||!Jt&&a)&&(c&&!(El(u)||d&&Jy(d,u)||Xy(d))&&(document&&!Jt&&d&&!a?(d.blur&&d.blur(),document.body.focus()):(t=Ml(u,Jt,{focusOptions:l}),ir={})),Rr=!1,Jt=document&&document.activeElement),document){var m=document&&document.activeElement,v=Vy(u),h=v.map(function(p){var b=p.node;return b}).indexOf(m);h>-1&&(v.filter(function(p){var b=p.guard,y=p.node;return b&&y.dataset.focusAutoGuard}).forEach(function(p){var b=p.node;return b.removeAttribute("tabIndex")}),Ki(h,v.length,1,v),Ki(h,-1,-1,v))}}}return t},zl=function(t){$n()&&t&&(t.stopPropagation(),t.preventDefault())},Ma=function(){return Fa($n)},e1=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||Ky(n,r)},t1=function(){return null},Dl=function(){Rr="just",Fa(function(){Rr="meanwhile"})},r1=function(){document.addEventListener("focusin",zl),document.addEventListener("focusout",Ma),window.addEventListener("blur",Dl)},n1=function(){document.removeEventListener("focusin",zl),document.removeEventListener("focusout",Ma),window.removeEventListener("blur",Dl)};function o1(e){return e.filter(function(t){var r=t.disabled;return!r})}function a1(e){var t=e.slice(-1)[0];t&&!ar&&r1();var r=ar,n=r&&t&&t.id===r.id;ar=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var a=o.id;return a===r.id}).length||r.returnFocus(!t)),t?(Jt=null,(!n||r.observed!==t.observed)&&t.onActivation(),$n(),Fa($n)):(n1(),Jt=null)}bl.assignSyncMedium(e1);gl.assignMedium(Ma);fy.assignMedium(function(e){return e({moveFocusInside:Ml,focusInside:El})});const i1=py(o1,a1)(t1);var Rl=tt(function(t,r){return Me(yl,Fo({sideCar:i1,ref:r},t))}),Bl=yl.propTypes||{};Bl.sideCar;Xc(Bl,["sideCar"]);Rl.propTypes={};const Xi=Rl;function Ol(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function za(e){var t;if(!Ol(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function s1(e){var t,r;return(r=(t=Ll(e))==null?void 0:t.defaultView)!=null?r:window}function Ll(e){return Ol(e)?e.ownerDocument:document}function l1(e){return Ll(e).activeElement}function c1(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function d1(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function Wl(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:za(e)&&c1(e)?e:Wl(d1(e))}var Vl=e=>e.hasAttribute("tabindex"),u1=e=>Vl(e)&&e.tabIndex===-1;function f1(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function Hl(e){return e.parentElement&&Hl(e.parentElement)?!0:e.hidden}function m1(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function jl(e){if(!za(e)||Hl(e)||f1(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():m1(e)?!0:Vl(e)}function v1(e){return e?za(e)&&jl(e)&&!u1(e):!1}var p1=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],h1=p1.join(),b1=e=>e.offsetWidth>0&&e.offsetHeight>0;function g1(e){const t=Array.from(e.querySelectorAll(h1));return t.unshift(e),t.filter(r=>jl(r)&&b1(r))}var Yi,y1=(Yi=Xi.default)!=null?Yi:Xi,Ul=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:a,isDisabled:i,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=S(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&g1(n.current).length===0&&requestAnimationFrame(()=>{var h;(h=n.current)==null||h.focus()})},[t,n]),u=S(()=>{var v;(v=r==null?void 0:r.current)==null||v.focus()},[r]);return f(y1,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:i,onActivation:d,onDeactivation:u,returnFocus:o&&!r,children:a})};Ul.displayName="FocusLock";var S1=Jh?Nn:K;function Zi(e,t=[]){const r=V(e);return S1(()=>{r.current=e}),S((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function x1(e,t){const r=Ke();return J(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function k1(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function Zw(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=Zi(r),i=Zi(t),[s,l]=B(e.defaultIsOpen||!1),[c,d]=k1(n,s),u=x1(o,"disclosure"),m=S(()=>{c||l(!1),i==null||i()},[c,i]),v=S(()=>{c||l(!0),a==null||a()},[c,a]),h=S(()=>{(d?m:v)()},[d,v,m]);return{isOpen:!!d,onOpen:v,onClose:m,onToggle:h,isControlled:c,getButtonProps:(p={})=>({...p,"aria-expanded":d,"aria-controls":u,onClick:ob(p.onClick,h)}),getDisclosureProps:(p={})=>({...p,hidden:!d,id:u})}}function Qw(e=!1){const[t,r]=B(e),n=J(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(o=>!o)}),[]);return[t,n]}var[w1,Gl]=ce({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),_1=C(function(t,r){const n=Ne("Input",t),{children:o,className:a,...i}=ue(t),s=z("chakra-input__group",a),l={},c=_a(o),d=n.field;c.forEach(m=>{var v,h;n&&(d&&m.type.id==="InputLeftElement"&&(l.paddingStart=(v=d.height)!=null?v:d.h),d&&m.type.id==="InputRightElement"&&(l.paddingEnd=(h=d.height)!=null?h:d.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const u=c.map(m=>{var v,h;const p=pa({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((h=m.props)==null?void 0:h.variant)||t.variant});return m.type.id!=="Input"?it(m,p):it(m,Object.assign(p,l,m.props))});return f(k.div,{className:s,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...i,children:f(w1,{value:n,children:u})})});_1.displayName="InputGroup";var C1={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},P1=k("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Da=C(function(t,r){var n;const{placement:o="left",...a}=t,i=(n=C1[o])!=null?n:{},s=Gl();return f(P1,{ref:r,...a,__css:{...s.addon,...i}})});Da.displayName="InputAddon";var ql=C(function(t,r){return f(Da,{ref:r,placement:"left",...t,className:z("chakra-input__left-addon",t.className)})});ql.displayName="InputLeftAddon";ql.id="InputLeftAddon";var Kl=C(function(t,r){return f(Da,{ref:r,placement:"right",...t,className:z("chakra-input__right-addon",t.className)})});Kl.displayName="InputRightAddon";Kl.id="InputRightAddon";var I1=k("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Ln=C(function(t,r){var n,o;const{placement:a="left",...i}=t,s=Gl(),l=s.field,d={[a==="left"?"insetStart":"insetEnd"]:"0",width:(n=l==null?void 0:l.height)!=null?n:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...s.element};return f(I1,{ref:r,__css:d,...i})});Ln.id="InputElement";Ln.displayName="InputElement";var Xl=C(function(t,r){const{className:n,...o}=t,a=z("chakra-input__left-element",n);return f(Ln,{ref:r,placement:"left",className:a,...o})});Xl.id="InputLeftElement";Xl.displayName="InputLeftElement";var Yl=C(function(t,r){const{className:n,...o}=t,a=z("chakra-input__right-element",n);return f(Ln,{ref:r,placement:"right",className:a,...o})});Yl.id="InputRightElement";Yl.displayName="InputRightElement";var Zl=C(function(t,r){const{htmlSize:n,...o}=t,a=Ne("Input",o),i=ue(o),s=ml(i),l=z("chakra-input",t.className);return f(k.input,{size:n,...s,__css:a.field,ref:r,className:l})});Zl.displayName="Input";Zl.id="Input";var $1=C(function(t,r){const n=je("Link",t),{className:o,isExternal:a,...i}=ue(t);return f(k.a,{target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:r,className:z("chakra-link",o),...i,__css:n})});$1.displayName="Link";var Ql=C(function(t,r){const{templateAreas:n,gap:o,rowGap:a,columnGap:i,column:s,row:l,autoFlow:c,autoRows:d,templateRows:u,autoColumns:m,templateColumns:v,...h}=t,p={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:a,gridColumnGap:i,gridAutoColumns:m,gridColumn:s,gridRow:l,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:u,gridTemplateColumns:v};return f(k.div,{ref:r,__css:p,...h})});Ql.displayName="Grid";var Jl=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Wn(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Te(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function T1(e,t=Jl){const r={};return e.forEach((n,o)=>{const a=t[o];n!=null&&(r[a]=n)}),r}var N1=C(function(t,r){const{columns:n,spacingX:o,spacingY:a,spacing:i,minChildWidth:s,...l}=t,c=yt(),d=s?A1(s,c):F1(n);return f(Ql,{ref:r,gap:i,columnGap:o,rowGap:a,templateColumns:d,...l})});N1.displayName="SimpleGrid";function E1(e){return typeof e=="number"?`${e}px`:e}function A1(e,t){return Wn(e,r=>{const n=Sd("sizes",r,E1(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function F1(e){return Wn(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var M1=k("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});M1.displayName="Spacer";var z1=C(function(t,r){const n=je("Text",t),{className:o,align:a,decoration:i,casing:s,...l}=ue(t),c=pa({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return f(k.p,{ref:r,className:z("chakra-text",t.className),...c,...l,__css:n})});z1.displayName="Text";var D1=C(function(t,r){const{spacing:n="0.5rem",spacingX:o,spacingY:a,children:i,justify:s,direction:l,align:c,className:d,shouldWrapChildren:u,...m}=t,v=J(()=>u?cr.map(i,(h,p)=>f(ec,{children:h},p)):i,[i,u]);return f(k.div,{ref:r,className:z("chakra-wrap",d),...m,children:f(k.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:c,flexDirection:l,listStyleType:"none",gap:n,columnGap:o,rowGap:a,padding:"0"},children:v})})});D1.displayName="Wrap";var ec=C(function(t,r){const{className:n,...o}=t;return f(k.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:z("chakra-wrap__listitem",n),...o})});ec.displayName="WrapItem";var tc=e=>f(k.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});tc.displayName="StackItem";function R1(e){const{spacing:t,direction:r}=e,n={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{"&":Wn(r,o=>n[o])}}var Ra=C((e,t)=>{const{isInline:r,direction:n,align:o,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:c,className:d,shouldWrapChildren:u,...m}=e,v=r?"row":n??"column",h=J(()=>R1({spacing:i,direction:v}),[i,v]),p=!!c,b=!u&&!p,y=J(()=>{const w=_a(l);return b?w:w.map((I,N)=>{const T=typeof I.key<"u"?I.key:N,P=N+1===w.length,M=u?f(tc,{children:I},T):I;if(!p)return M;const _=it(c,{__css:h});return f(Bt,{children:[M,P?null:_]},T)})},[c,h,p,b,u,l]),x=z("chakra-stack",d);return f(k.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:v,flexWrap:s,gap:p?void 0:i,className:x,...m,children:y})});Ra.displayName="Stack";var B1=C((e,t)=>f(Ra,{align:"center",...e,direction:"column",ref:t}));B1.displayName="VStack";var O1=C((e,t)=>f(Ra,{align:"center",...e,direction:"row",ref:t}));O1.displayName="HStack";function Qi(e){return Wn(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var L1=C(function(t,r){const{area:n,colSpan:o,colStart:a,colEnd:i,rowEnd:s,rowSpan:l,rowStart:c,...d}=t,u=pa({gridArea:n,gridColumn:Qi(o),gridRow:Qi(l),gridColumnStart:a,gridColumnEnd:i,gridRowStart:c,gridRowEnd:s});return f(k.div,{ref:r,__css:u,...d})});L1.displayName="GridItem";var W1=C(function(t,r){const n=je("Heading",t),{className:o,...a}=ue(t);return f(k.h2,{ref:r,className:z("chakra-heading",t.className),...a,__css:n})});W1.displayName="Heading";var rc=k("div");rc.displayName="Box";var nc=C(function(t,r){const{size:n,centerContent:o=!0,...a}=t;return f(rc,{ref:r,boxSize:n,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...a})});nc.displayName="Square";var V1=C(function(t,r){const{size:n,...o}=t;return f(nc,{size:n,ref:r,borderRadius:"9999px",...o})});V1.displayName="Circle";var H1=C(function(t,r){const n=je("Badge",t),{className:o,...a}=ue(t);return f(k.span,{ref:r,className:z("chakra-badge",t.className),...a,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});H1.displayName="Badge";var j1=k("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});j1.displayName="Center";var U1={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};C(function(t,r){const{axis:n="both",...o}=t;return f(k.div,{ref:r,__css:U1[n],...o,position:"absolute"})});var G1=C(function(t,r){const n=je("Code",t),{className:o,...a}=ue(t);return f(k.code,{ref:r,className:z("chakra-code",t.className),...a,__css:{display:"inline-block",...n}})});G1.displayName="Code";var q1=C(function(t,r){const{className:n,centerContent:o,...a}=ue(t),i=je("Container",t);return f(k.div,{ref:r,className:z("chakra-container",n),...a,__css:{...i,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});q1.displayName="Container";var K1=C(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:a,borderRightWidth:i,borderWidth:s,borderStyle:l,borderColor:c,...d}=je("Divider",t),{className:u,orientation:m="horizontal",__css:v,...h}=ue(t),p={vertical:{borderLeftWidth:n||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||a||s||"1px",width:"100%"}};return f(k.hr,{ref:r,"aria-orientation":m,...h,__css:{...d,border:"0",borderColor:c,borderStyle:l,...p[m],...v},className:z("chakra-divider",u)})});K1.displayName="Divider";var X1=C(function(t,r){const{direction:n,align:o,justify:a,wrap:i,basis:s,grow:l,shrink:c,...d}=t,u={display:"flex",flexDirection:n,alignItems:o,justifyContent:a,flexWrap:i,flexBasis:s,flexGrow:l,flexShrink:c};return f(k.div,{ref:r,__css:u,...d})});X1.displayName="Flex";function oc(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=hb(),a=Array.isArray(e)?e:[e];let i=Array.isArray(n)?n:[n];i=i.filter(c=>c!=null);const[s,l]=B(()=>a.map((c,d)=>({media:c,matches:r?!!i[d]:o().matchMedia(c).matches})));return K(()=>{const c=o();l(a.map(m=>({media:m,matches:c.matchMedia(m).matches})));const d=a.map(m=>c.matchMedia(m)),u=m=>{l(v=>v.slice().map(h=>h.media===m.media?{...h,matches:m.matches}:h))};return d.forEach(m=>{typeof m.addListener=="function"?m.addListener(u):m.addEventListener("change",u)}),()=>{d.forEach(m=>{typeof m.removeListener=="function"?m.removeListener(u):m.removeEventListener("change",u)})}},[o]),s.map(c=>c.matches)}function Y1(e){const{breakpoint:t,hide:r,children:n,ssr:o}=e,[a]=oc(t,{ssr:o});return(r?!a:a)?n:null}var Ji=(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.breakpoints)==null?void 0:r[t])!=null?n:t};function Z1(e){const{breakpoint:t="",below:r,above:n}=e,o=yt(),a=Ji(o,r),i=Ji(o,n);let s=t;return a?s=`(max-width: ${a})`:i&&(s=`(min-width: ${i})`),s}function Q1(e){const{children:t,ssr:r}=e,n=Z1(e);return f(Y1,{breakpoint:n,ssr:r,children:t})}Q1.displayName="Show";function J1(e,t,r=Jl){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const a=r[o];if(e.hasOwnProperty(a)){n=o;break}o-=1}if(n!==-1){const a=r[n];return e[a]}}function eS(e){var t,r;const n=Te(e)?e:{fallback:e??"base"},a=yt().__breakpoints.details.map(({minMaxQuery:c,breakpoint:d})=>({breakpoint:d,query:c.replace("@media screen and ","")})),i=a.map(c=>c.breakpoint===n.fallback),l=oc(a.map(c=>c.query),{fallback:i,ssr:n.ssr}).findIndex(c=>c==!0);return(r=(t=a[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function Jw(e,t){var r;const n=Te(t)?t:{fallback:t??"base"},o=eS(n),a=yt();if(!o)return;const i=Array.from(((r=a.__breakpoints)==null?void 0:r.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries(T1(e,i)).map(([l,c])=>[l,c])):e;return J1(s,o,i)}function tS(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function rS(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=B([]),a=V(),i=()=>{a.current&&(clearTimeout(a.current),a.current=null)},s=()=>{i(),a.current=setTimeout(()=>{o([]),a.current=null},t)};K(()=>i,[]);function l(c){return d=>{if(d.key==="Backspace"){const u=[...n];u.pop(),o(u);return}if(tS(d)){const u=n.concat(d.key);r(d)&&(d.preventDefault(),d.stopPropagation()),o(u),c(u.join("")),s()}}}return l}function nS(e,t,r,n){if(t==null)return n;if(!n)return e.find(i=>r(i).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(a=>r(a).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let a;return o.includes(n)?(a=o.indexOf(n)+1,a===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a])}return n}function oS(){const e=V(new Map),t=e.current,r=S((o,a,i,s)=>{e.current.set(i,{type:a,el:o,options:s}),o.addEventListener(a,i,s)},[]),n=S((o,a,i,s)=>{o.removeEventListener(a,i,s),e.current.delete(i)},[]);return K(()=>()=>{t.forEach((o,a)=>{n(o.el,o.type,a,o.options)})},[n,t]),{add:r,remove:n}}function wo(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function ac(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:i,onMouseUp:s,onClick:l,onKeyDown:c,onKeyUp:d,tabIndex:u,onMouseOver:m,onMouseLeave:v,...h}=e,[p,b]=B(!0),[y,x]=B(!1),w=oS(),I=$=>{$&&$.tagName!=="BUTTON"&&b(!1)},N=p?u:u||0,T=r&&!n,P=S($=>{if(r){$.stopPropagation(),$.preventDefault();return}$.currentTarget.focus(),l==null||l($)},[r,l]),A=S($=>{y&&wo($)&&($.preventDefault(),$.stopPropagation(),x(!1),w.remove(document,"keyup",A,!1))},[y,w]),M=S($=>{if(c==null||c($),r||$.defaultPrevented||$.metaKey||!wo($.nativeEvent)||p)return;const D=o&&$.key==="Enter";a&&$.key===" "&&($.preventDefault(),x(!0)),D&&($.preventDefault(),$.currentTarget.click()),w.add(document,"keyup",A,!1)},[r,p,c,o,a,w,A]),_=S($=>{if(d==null||d($),r||$.defaultPrevented||$.metaKey||!wo($.nativeEvent)||p)return;a&&$.key===" "&&($.preventDefault(),x(!1),$.currentTarget.click())},[a,p,r,d]),E=S($=>{$.button===0&&(x(!1),w.remove(document,"mouseup",E,!1))},[w]),ee=S($=>{if($.button!==0)return;if(r){$.stopPropagation(),$.preventDefault();return}p||x(!0),$.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",E,!1),i==null||i($)},[r,p,i,w,E]),te=S($=>{$.button===0&&(p||x(!1),s==null||s($))},[s,p]),ae=S($=>{if(r){$.preventDefault();return}m==null||m($)},[r,m]),fe=S($=>{y&&($.preventDefault(),x(!1)),v==null||v($)},[y,v]),Q=he(t,I);return p?{...h,ref:Q,type:"button","aria-disabled":T?void 0:r,disabled:T,onClick:P,onMouseDown:i,onMouseUp:s,onKeyUp:d,onKeyDown:c,onMouseOver:m,onMouseLeave:v}:{...h,ref:Q,role:"button","data-active":U(y),"aria-disabled":r?"true":void 0,tabIndex:T?void 0:N,onClick:P,onMouseDown:ee,onMouseUp:te,onKeyUp:_,onKeyDown:M,onMouseOver:ae,onMouseLeave:fe}}function aS(e){const t=e.current;if(!t)return!1;const r=l1(t);return!r||t.contains(r)?!1:!!v1(r)}function iS(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,a=r&&!n;Pt(()=>{if(!a||aS(e))return;const i=(o==null?void 0:o.current)||e.current;let s;if(i)return s=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,o])}var Vt=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ae={arrowShadowColor:Vt("--popper-arrow-shadow-color"),arrowSize:Vt("--popper-arrow-size","8px"),arrowSizeHalf:Vt("--popper-arrow-size-half"),arrowBg:Vt("--popper-arrow-bg"),transformOrigin:Vt("--popper-transform-origin"),arrowOffset:Vt("--popper-arrow-offset")};function sS(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var lS={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},cS=e=>lS[e],es={scroll:!0,resize:!0};function dS(e){let t;return typeof e=="object"?t={enabled:!0,options:{...es,...e}}:t={enabled:e,options:es},t}var uS={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},fS={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{ts(e)},effect:({state:e})=>()=>{ts(e)}},ts=e=>{e.elements.popper.style.setProperty(Ae.transformOrigin.var,cS(e.placement))},mS={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{vS(e)}},vS=e=>{var t;if(!e.placement)return;const r=pS(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:Ae.arrowSize.varRef,height:Ae.arrowSize.varRef,zIndex:-1});const n={[Ae.arrowSizeHalf.var]:`calc(${Ae.arrowSize.varRef} / 2 - 1px)`,[Ae.arrowOffset.var]:`calc(${Ae.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},pS=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ae.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ae.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ae.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ae.arrowOffset.varRef}},hS={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{rs(e)},effect:({state:e})=>()=>{rs(e)}},rs=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=sS(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Ae.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},bS={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},gS={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function yS(e,t="ltr"){var r,n;const o=((r=bS[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=gS[e])!=null?n:o}function ic(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:i=!0,offset:s,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:u=!0,matchWidth:m,direction:v="ltr"}=e,h=V(null),p=V(null),b=V(null),y=yS(n,v),x=V(()=>{}),w=S(()=>{var _;!t||!h.current||!p.current||((_=x.current)==null||_.call(x),b.current=td(h.current,p.current,{placement:y,modifiers:[hS,mS,fS,{...uS,enabled:!!m},{name:"eventListeners",...dS(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!u,options:{boundary:d}},...r??[]],strategy:o}),b.current.forceUpdate(),x.current=b.current.destroy)},[y,t,r,m,i,a,s,l,c,u,d,o]);K(()=>()=>{var _;!h.current&&!p.current&&((_=b.current)==null||_.destroy(),b.current=null)},[]);const I=S(_=>{h.current=_,w()},[w]),N=S((_={},E=null)=>({..._,ref:he(I,E)}),[I]),T=S(_=>{p.current=_,w()},[w]),P=S((_={},E=null)=>({..._,ref:he(T,E),style:{..._.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,T,m]),A=S((_={},E=null)=>{const{size:ee,shadowColor:te,bg:ae,style:fe,...Q}=_;return{...Q,ref:E,"data-popper-arrow":"",style:SS(_)}},[]),M=S((_={},E=null)=>({..._,ref:E,"data-popper-arrow-inner":""}),[]);return{update(){var _;(_=b.current)==null||_.update()},forceUpdate(){var _;(_=b.current)==null||_.forceUpdate()},transformOrigin:Ae.transformOrigin.varRef,referenceRef:I,popperRef:T,getPopperProps:P,getArrowProps:A,getArrowInnerProps:M,getReferenceProps:N}}function SS(e){const{size:t,shadowColor:r,bg:n,style:o}=e,a={...o,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function sc(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=Se(r),i=Se(t),[s,l]=B(e.defaultIsOpen||!1),c=n!==void 0?n:s,d=n!==void 0,u=Ke(),m=o??`disclosure-${u}`,v=S(()=>{d||l(!1),i==null||i()},[d,i]),h=S(()=>{d||l(!0),a==null||a()},[d,a]),p=S(()=>{c?v():h()},[c,h,v]);function b(x={}){return{...x,"aria-expanded":c,"aria-controls":m,onClick(w){var I;(I=x.onClick)==null||I.call(x,w),p()}}}function y(x={}){return{...x,hidden:!c,id:m}}return{isOpen:c,onOpen:h,onClose:v,onToggle:p,isControlled:d,getButtonProps:b,getDisclosureProps:y}}function xS(e){const{ref:t,handler:r,enabled:n=!0}=e,o=Se(r),i=V({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;K(()=>{if(!n)return;const s=u=>{_o(u,t)&&(i.isPointerDown=!0)},l=u=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&r&&_o(u,t)&&(i.isPointerDown=!1,o(u))},c=u=>{i.ignoreEmulatedMouseEvents=!0,r&&i.isPointerDown&&_o(u,t)&&(i.isPointerDown=!1,o(u))},d=lc(t.current);return d.addEventListener("mousedown",s,!0),d.addEventListener("mouseup",l,!0),d.addEventListener("touchstart",s,!0),d.addEventListener("touchend",c,!0),()=>{d.removeEventListener("mousedown",s,!0),d.removeEventListener("mouseup",l,!0),d.removeEventListener("touchstart",s,!0),d.removeEventListener("touchend",c,!0)}},[r,t,o,i,n])}function _o(e,t){var r;const n=e.target;return n&&!lc(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function lc(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function kS(e){const{isOpen:t,ref:r}=e,[n,o]=B(t),[a,i]=B(!1);return K(()=>{a||(o(t),i(!0))},[t,a,n]),Ar(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var l;const c=s1(r.current),d=new c.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(d)}}}function cc(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}var[wS,_S,CS,PS]=xa(),[IS,Vr]=ce({strict:!1,name:"MenuContext"});function $S(e,...t){const r=Ke(),n=e||r;return J(()=>t.map(o=>`${o}-${n}`),[n,t])}function dc(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function ns(e){return dc(e).activeElement===e}function TS(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:i,isOpen:s,defaultIsOpen:l,onClose:c,onOpen:d,placement:u="bottom-start",lazyBehavior:m="unmount",direction:v,computePositionOnMount:h=!1,...p}=e,b=V(null),y=V(null),x=CS(),w=S(()=>{requestAnimationFrame(()=>{var ne;(ne=b.current)==null||ne.focus({preventScroll:!1})})},[]),I=S(()=>{const ne=setTimeout(()=>{var G;if(o)(G=o.current)==null||G.focus();else{const j=x.firstEnabled();j&&te(j.index)}});D.current.add(ne)},[x,o]),N=S(()=>{const ne=setTimeout(()=>{const G=x.lastEnabled();G&&te(G.index)});D.current.add(ne)},[x]),T=S(()=>{d==null||d(),a?I():w()},[a,I,w,d]),{isOpen:P,onOpen:A,onClose:M,onToggle:_}=sc({isOpen:s,defaultIsOpen:l,onClose:c,onOpen:T});xS({enabled:P&&n,ref:b,handler:ne=>{var G;(G=y.current)!=null&&G.contains(ne.target)||M()}});const E=ic({...p,enabled:P||h,placement:u,direction:v}),[ee,te]=B(-1);Pt(()=>{P||te(-1)},[P]),iS(b,{focusRef:y,visible:P,shouldFocus:!0});const ae=kS({isOpen:P,ref:b}),[fe,Q]=$S(t,"menu-button","menu-list"),$=S(()=>{A(),w()},[A,w]),D=V(new Set([]));DS(()=>{D.current.forEach(ne=>clearTimeout(ne)),D.current.clear()});const ie=S(()=>{A(),I()},[I,A]),X=S(()=>{A(),N()},[A,N]),Ie=S(()=>{var ne,G;const j=dc(b.current),xe=(ne=b.current)==null?void 0:ne.contains(j.activeElement);if(!(P&&!xe))return;const we=(G=x.item(ee))==null?void 0:G.node;we==null||we.focus()},[P,ee,x]),Ce=V(null);return{openAndFocusMenu:$,openAndFocusFirstItem:ie,openAndFocusLastItem:X,onTransitionEnd:Ie,unstable__animationState:ae,descendants:x,popper:E,buttonId:fe,menuId:Q,forceUpdate:E.forceUpdate,orientation:"vertical",isOpen:P,onToggle:_,onOpen:A,onClose:M,menuRef:b,buttonRef:y,focusedIndex:ee,closeOnSelect:r,closeOnBlur:n,autoSelect:a,setFocusedIndex:te,isLazy:i,lazyBehavior:m,initialFocusRef:o,rafId:Ce}}function NS(e={},t=null){const r=Vr(),{onToggle:n,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:i}=r,s=S(l=>{const c=l.key,u={Enter:a,ArrowDown:a,ArrowUp:i}[c];u&&(l.preventDefault(),l.stopPropagation(),u(l))},[a,i]);return{...e,ref:he(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":U(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:L(e.onClick,n),onKeyDown:L(e.onKeyDown,s)}}function ea(e){var t;return MS(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function ES(e={},t=null){const r=Vr();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:n,setFocusedIndex:o,menuRef:a,isOpen:i,onClose:s,menuId:l,isLazy:c,lazyBehavior:d,unstable__animationState:u}=r,m=_S(),v=rS({preventDefault:y=>y.key!==" "&&ea(y.target)}),h=S(y=>{if(!y.currentTarget.contains(y.target))return;const x=y.key,I={Tab:T=>T.preventDefault(),Escape:s,ArrowDown:()=>{const T=m.nextEnabled(n);T&&o(T.index)},ArrowUp:()=>{const T=m.prevEnabled(n);T&&o(T.index)}}[x];if(I){y.preventDefault(),I(y);return}const N=v(T=>{const P=nS(m.values(),T,A=>{var M,_;return(_=(M=A==null?void 0:A.node)==null?void 0:M.textContent)!=null?_:""},m.item(n));if(P){const A=m.indexOf(P.node);o(A)}});ea(y.target)&&N(y)},[m,n,v,s,o]),p=V(!1);i&&(p.current=!0);const b=cc({wasSelected:p.current,enabled:c,mode:d,isSelected:u.present});return{...e,ref:he(a,t),children:b?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:L(e.onKeyDown,h)}}function AS(e={}){const{popper:t,isOpen:r}=Vr();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function FS(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:a,onFocus:i,isDisabled:s,isFocusable:l,closeOnSelect:c,type:d,...u}=e,m=Vr(),{setFocusedIndex:v,focusedIndex:h,closeOnSelect:p,onClose:b,menuRef:y,isOpen:x,menuId:w,rafId:I}=m,N=V(null),T=`${w}-menuitem-${Ke()}`,{index:P,register:A}=PS({disabled:s&&!l}),M=S($=>{r==null||r($),!s&&v(P)},[v,P,s,r]),_=S($=>{n==null||n($),N.current&&!ns(N.current)&&M($)},[M,n]),E=S($=>{o==null||o($),!s&&v(-1)},[v,s,o]),ee=S($=>{a==null||a($),ea($.currentTarget)&&(c??p)&&b()},[b,a,p,c]),te=S($=>{i==null||i($),v(P)},[v,i,P]),ae=P===h,fe=s&&!l;Pt(()=>{x&&(ae&&!fe&&N.current?(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{var $;($=N.current)==null||$.focus(),I.current=null})):y.current&&!ns(y.current)&&y.current.focus({preventScroll:!0}))},[ae,fe,y,x]);const Q=ac({onClick:ee,onFocus:te,onMouseEnter:M,onMouseMove:_,onMouseLeave:E,ref:he(A,N,t),isDisabled:s,isFocusable:l});return{...u,...Q,type:d??Q.type,id:T,role:"menuitem",tabIndex:ae?0:-1}}function MS(e){var t;if(!zS(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function zS(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function DS(e,t=[]){return K(()=>()=>e(),t)}var[RS,Hr]=ce({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),BS=e=>{const{children:t}=e,r=Ne("Menu",e),n=ue(e),{direction:o}=yt(),{descendants:a,...i}=TS({...n,direction:o}),s=J(()=>i,[i]),{isOpen:l,onClose:c,forceUpdate:d}=s;return f(wS,{value:a,children:f(IS,{value:s,children:f(RS,{value:r,children:Je(t,{isOpen:l,onClose:c,forceUpdate:d})})})})};BS.displayName="Menu";var uc=C((e,t)=>{const r=Hr();return f(k.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});uc.displayName="MenuCommand";var OS=C((e,t)=>{const{type:r,...n}=e,o=Hr(),a=n.as||r?r??void 0:"button",i=J(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return f(k.button,{ref:t,type:a,...n,__css:i})}),fc=e=>{const{className:t,children:r,...n}=e,o=Hr(),a=cr.only(r),i=Or(a)?it(a,{focusable:"false","aria-hidden":!0,className:z("chakra-menu__icon",a.props.className)}):null,s=z("chakra-menu__icon-wrapper",t);return f(k.span,{className:s,...n,__css:o.icon,children:i})};fc.displayName="MenuIcon";var LS=C((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:o,commandSpacing:a="0.75rem",children:i,...s}=e,l=FS(s,t),d=r||o?f("span",{style:{pointerEvents:"none",flex:1},children:i}):i;return f(OS,{...l,className:z("chakra-menu__menuitem",l.className),children:[r&&f(fc,{fontSize:"0.8em",marginEnd:n,children:r}),d,o&&f(uc,{marginStart:a,children:o})]})});LS.displayName="MenuItem";var WS={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},VS=k(st.div),HS=C(function(t,r){var n,o;const{rootProps:a,motionProps:i,...s}=t,{isOpen:l,onTransitionEnd:c,unstable__animationState:d}=Vr(),u=ES(s,r),m=AS(a),v=Hr();return f(k.div,{...m,__css:{zIndex:(o=t.zIndex)!=null?o:(n=v.list)==null?void 0:n.zIndex},children:f(VS,{variants:WS,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...v.list},...i,className:z("chakra-menu__menu-list",u.className),...u,onUpdate:c,onAnimationComplete:sa(d.onComplete,u.onAnimationComplete)})})});HS.displayName="MenuList";var jS=C((e,t)=>{const r=Hr();return f(k.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),US=C((e,t)=>{const{children:r,as:n,...o}=e,a=NS(o,t);return f(n||jS,{...a,className:z("chakra-menu__menu-button",e.className),children:f(k.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});US.displayName="MenuButton";var GS={slideInBottom:{...Go,custom:{offsetY:16,reverse:!0}},slideInRight:{...Go,custom:{offsetX:16,reverse:!0}},scale:{...ll,custom:{initialScale:.95,reverse:!0}},none:{}},qS=k(st.section),KS=e=>GS[e||"none"],mc=tt((e,t)=>{const{preset:r,motionProps:n=KS(r),...o}=e;return f(qS,{ref:t,...n,...o})});mc.displayName="ModalTransition";var XS=Object.defineProperty,YS=(e,t,r)=>t in e?XS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZS=(e,t,r)=>(YS(e,typeof t!="symbol"?t+"":t,r),r),QS=class{constructor(){ZS(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},ta=new QS;function vc(e,t){const[r,n]=B(0);return K(()=>{const o=e.current;if(o){if(t){const a=ta.add(o);n(a)}return()=>{ta.remove(o),n(0)}}},[t,e]),r}function JS(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:i=!0,onOverlayClick:s,onEsc:l}=e,c=V(null),d=V(null),[u,m,v]=tx(n,"chakra-modal","chakra-modal--header","chakra-modal--body");ex(c,t&&i);const h=vc(c,t),p=V(null),b=S(M=>{p.current=M.target},[]),y=S(M=>{M.key==="Escape"&&(M.stopPropagation(),a&&(r==null||r()),l==null||l())},[a,r,l]),[x,w]=B(!1),[I,N]=B(!1),T=S((M={},_=null)=>({role:"dialog",...M,ref:he(_,c),id:u,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?m:void 0,"aria-describedby":I?v:void 0,onClick:L(M.onClick,E=>E.stopPropagation())}),[v,I,u,m,x]),P=S(M=>{M.stopPropagation(),p.current===M.target&&ta.isTopModal(c.current)&&(o&&(r==null||r()),s==null||s())},[r,o,s]),A=S((M={},_=null)=>({...M,ref:he(_,d),onClick:L(M.onClick,P),onKeyDown:L(M.onKeyDown,y),onMouseDown:L(M.onMouseDown,b)}),[y,b,P]);return{isOpen:t,onClose:r,headerId:m,bodyId:v,setBodyMounted:N,setHeaderMounted:w,dialogRef:c,overlayRef:d,getDialogProps:T,getDialogContainerProps:A,index:h}}function ex(e,t){const r=e.current;K(()=>{if(!(!e.current||!t))return Jc(e.current)},[t,e,r])}function tx(e,...t){const r=Ke(),n=e||r;return J(()=>t.map(o=>`${o}-${n}`),[n,t])}var[rx,Lt]=ce({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[nx,It]=ce({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Ba=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:u,motionPreset:m,lockFocusAcrossFrames:v,onCloseComplete:h}=t,p=Ne("Modal",t),y={...JS(t),autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:u,motionPreset:m,lockFocusAcrossFrames:v};return f(nx,{value:y,children:f(rx,{value:p,children:f(Tt,{onExitComplete:h,children:y.isOpen&&f(dr,{...r,children:n})})})})};Ba.displayName="Modal";var pn="right-scroll-bar-position",hn="width-before-scroll-bar",ox="with-scroll-bars-hidden",ax="--removed-body-scroll-bar-size",pc=fs(),Co=function(){},Vn=tt(function(e,t){var r=V(null),n=B({onScrollCapture:Co,onWheelCapture:Co,onTouchMoveCapture:Co}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,m=e.sideCar,v=e.noIsolation,h=e.inert,p=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=Zc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=m,N=ms([r,t]),T=Gt(Gt({},w),o);return Me(Bt,null,d&&Me(I,{sideCar:pc,removeScrollBar:c,shards:u,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!p,lockRef:r,gapMode:x}),i?it(cr.only(s),Gt(Gt({},T),{ref:N})):Me(y,Gt({},T,{className:l,ref:N}),s))});Vn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vn.classNames={fullWidth:hn,zeroRight:pn};var ix={left:0,top:0,right:0,gap:0},Po=function(e){return parseInt(e||"",10)||0},sx=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Po(r),Po(n),Po(o)]},lx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ix;var t=sx(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cx=vs(),dx=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(ox,` {
   overflow: hidden `).concat(n,`;
   padding-right: `).concat(s,"px ").concat(n,`;
  }
  body {
    overflow: hidden `).concat(n,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(s,"px ").concat(n,`;
    `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(pn,` {
    right: `).concat(s,"px ").concat(n,`;
  }
  
  .`).concat(hn,` {
    margin-right: `).concat(s,"px ").concat(n,`;
  }
  
  .`).concat(pn," .").concat(pn,` {
    right: 0 `).concat(n,`;
  }
  
  .`).concat(hn," .").concat(hn,` {
    margin-right: 0 `).concat(n,`;
  }
  
  body {
    `).concat(ax,": ").concat(s,`px;
  }
`)},ux=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=J(function(){return lx(o)},[o]);return Me(cx,{styles:dx(a,!t,o,r?"":"!important")})},ra=!1;if(typeof window<"u")try{var en=Object.defineProperty({},"passive",{get:function(){return ra=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{ra=!1}var Ht=ra?{passive:!1}:!1,fx=function(e){return e.tagName==="TEXTAREA"},hc=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!fx(e)&&r[t]==="visible")},mx=function(e){return hc(e,"overflowY")},vx=function(e){return hc(e,"overflowX")},os=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=bc(e,n);if(o){var a=gc(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},px=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},hx=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},bc=function(e,t){return e==="v"?mx(t):vx(t)},gc=function(e,t){return e==="v"?px(t):hx(t)},bx=function(e,t){return e==="h"&&t==="rtl"?-1:1},gx=function(e,t,r,n,o){var a=bx(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,l=t.contains(s),c=!1,d=i>0,u=0,m=0;do{var v=gc(e,s),h=v[0],p=v[1],b=v[2],y=p-b-a*h;(h||y)&&bc(e,s)&&(u+=y,m+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(o&&u===0||!o&&i>u)||!d&&(o&&m===0||!o&&-i>m))&&(c=!0),c},tn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},as=function(e){return[e.deltaX,e.deltaY]},is=function(e){return e&&"current"in e?e.current:e},yx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sx=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},xx=0,jt=[];function kx(e){var t=V([]),r=V([0,0]),n=V(),o=B(xx++)[0],a=B(vs)[0],i=V(e);K(function(){i.current=e},[e]),K(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Qc([e.lockRef.current],(e.shards||[]).map(is),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S(function(p,b){if("touches"in p&&p.touches.length===2)return!i.current.allowPinchZoom;var y=tn(p),x=r.current,w="deltaX"in p?p.deltaX:x[0]-y[0],I="deltaY"in p?p.deltaY:x[1]-y[1],N,T=p.target,P=Math.abs(w)>Math.abs(I)?"h":"v";if("touches"in p&&P==="h"&&T.type==="range")return!1;var A=os(P,T);if(!A)return!0;if(A?N=P:(N=P==="v"?"h":"v",A=os(P,T)),!A)return!1;if(!n.current&&"changedTouches"in p&&(w||I)&&(n.current=N),!N)return!0;var M=n.current||N;return gx(M,b,p,M==="h"?w:I,!0)},[]),l=S(function(p){var b=p;if(!(!jt.length||jt[jt.length-1]!==a)){var y="deltaY"in b?as(b):tn(b),x=t.current.filter(function(N){return N.name===b.type&&N.target===b.target&&yx(N.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(is).filter(Boolean).filter(function(N){return N.contains(b.target)}),I=w.length>0?s(b,w[0]):!i.current.noIsolation;I&&b.cancelable&&b.preventDefault()}}},[]),c=S(function(p,b,y,x){var w={name:p,delta:b,target:y,should:x};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(I){return I!==w})},1)},[]),d=S(function(p){r.current=tn(p),n.current=void 0},[]),u=S(function(p){c(p.type,as(p),p.target,s(p,e.lockRef.current))},[]),m=S(function(p){c(p.type,tn(p),p.target,s(p,e.lockRef.current))},[]);K(function(){return jt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ht),document.addEventListener("touchmove",l,Ht),document.addEventListener("touchstart",d,Ht),function(){jt=jt.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,Ht),document.removeEventListener("touchmove",l,Ht),document.removeEventListener("touchstart",d,Ht)}},[]);var v=e.removeScrollBar,h=e.inert;return Me(Bt,null,h?Me(a,{styles:Sx(o)}):null,v?Me(ux,{gapMode:e.gapMode}):null)}const wx=Yc(pc,kx);var yc=tt(function(e,t){return Me(Vn,Gt({},e,{ref:t,sideCar:wx}))});yc.classNames=Vn.classNames;const _x=yc;function Sc(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:i,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:u}=It(),[m,v]=Gc();K(()=>{!m&&v&&setTimeout(v)},[m,v]);const h=vc(n,u);return f(Ul,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:d,children:f(_x,{removeScrollBar:!c,allowPinchZoom:i,enabled:h===1&&a,forwardProps:!0,children:e.children})})}var xc=C((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l}=It(),c=s(i,t),d=l(o),u=z("chakra-modal__content",r),m=Lt(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:p}=It();return f(Sc,{children:f(k.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:f(mc,{preset:p,motionProps:a,className:u,...c,__css:v,children:n})})})});xc.displayName="ModalContent";function e_(e){const{leastDestructiveRef:t,...r}=e;return f(Ba,{...r,initialFocusRef:t})}var t_=C((e,t)=>f(xc,{ref:t,role:"alertdialog",...e})),[Cx,Px]=ce(),Ix={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function $x(e,t){var r,n;if(e)return(n=(r=Ix[e])==null?void 0:r[t])!=null?n:e}function r_(e){var t;const{isOpen:r,onClose:n,placement:o="right",children:a,...i}=e,s=yt(),l=(t=s.components)==null?void 0:t.Drawer,c=$x(o,s.direction);return f(Cx,{value:{placement:c},children:f(Ba,{isOpen:r,onClose:n,styleConfig:l,...i,children:a})})}var Tx=k(cl),Nx=C((e,t)=>{const{className:r,children:n,motionProps:o,containerProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:c}=It(),d=s(i,t),u=l(a),m=z("chakra-modal__content",r),v=Lt(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{placement:b}=Px();return f(Sc,{children:f(k.div,{...u,className:"chakra-modal__content-container",__css:p,children:f(Tx,{motionProps:o,direction:b,in:c,className:m,...d,__css:h,children:n})})})});Nx.displayName="DrawerContent";var Ex=C((e,t)=>{const{className:r,...n}=e,o=z("chakra-modal__footer",r),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...Lt().footer};return f(k.footer,{ref:t,...n,__css:i,className:o})});Ex.displayName="ModalFooter";var Ax=C((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:a}=It();K(()=>(a(!0),()=>a(!1)),[a]);const i=z("chakra-modal__header",r),l={flex:0,...Lt().header};return f(k.header,{ref:t,className:i,id:o,...n,__css:l})});Ax.displayName="ModalHeader";var Fx=k(st.div),Mx=C((e,t)=>{const{className:r,transition:n,motionProps:o,...a}=e,i=z("chakra-modal__overlay",r),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Lt().overlay},{motionPreset:c}=It();return f(Fx,{...o||(c==="none"?{}:sl),__css:l,ref:t,className:i,...a})});Mx.displayName="ModalOverlay";var zx=C((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:a}=It();K(()=>(a(!0),()=>a(!1)),[a]);const i=z("chakra-modal__body",r),s=Lt();return f(k.div,{ref:t,className:i,id:o,...n,__css:s.body})});zx.displayName="ModalBody";var Dx=C((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:a}=It(),i=z("chakra-modal__close-btn",n),s=Lt();return f(Sa,{ref:t,__css:s.closeButton,className:i,onClick:L(r,l=>{l.stopPropagation(),a()}),...o})});Dx.displayName="ModalCloseButton";var Rx=e=>f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Bx=e=>f(lt,{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function ss(e,t,r,n){K(()=>{var o;if(!e.current||!n)return;const a=(o=e.current.ownerDocument.defaultView)!=null?o:window,i=Array.isArray(t)?t:[t],s=new a.MutationObserver(l=>{for(const c of l)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&r(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}function Ox(e,t){const r=Se(e);K(()=>{let n=null;const o=()=>r();return t!==null&&(n=window.setInterval(o,t)),()=>{n&&window.clearInterval(n)}},[t,r])}var Lx=50,ls=300;function Wx(e,t){const[r,n]=B(!1),[o,a]=B(null),[i,s]=B(!0),l=V(null),c=()=>clearTimeout(l.current);Ox(()=>{o==="increment"&&e(),o==="decrement"&&t()},r?Lx:null);const d=S(()=>{i&&e(),l.current=setTimeout(()=>{s(!1),n(!0),a("increment")},ls)},[e,i]),u=S(()=>{i&&t(),l.current=setTimeout(()=>{s(!1),n(!0),a("decrement")},ls)},[t,i]),m=S(()=>{s(!0),n(!1),c()},[]);return K(()=>()=>c(),[]),{up:d,down:u,stop:m,isSpinning:r}}var Vx=/^[Ee0-9+\-.]$/;function Hx(e){return Vx.test(e)}function jx(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function Ux(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:o=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:i=1,isReadOnly:s,isDisabled:l,isRequired:c,isInvalid:d,pattern:u="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:h,onChange:p,precision:b,name:y,"aria-describedby":x,"aria-label":w,"aria-labelledby":I,onFocus:N,onBlur:T,onInvalid:P,getAriaValueText:A,isValidCharacter:M,format:_,parse:E,...ee}=e,te=Se(N),ae=Se(T),fe=Se(P),Q=Se(M??Hx),$=Se(A),D=ly(e),{update:ie,increment:X,decrement:Ie}=D,[Ce,ne]=B(!1),G=!(s||l),j=V(null),xe=V(null),be=V(null),we=V(null),De=S(F=>F.split("").filter(Q).join(""),[Q]),Re=S(F=>{var re;return(re=E==null?void 0:E(F))!=null?re:F},[E]),Y=S(F=>{var re;return((re=_==null?void 0:_(F))!=null?re:F).toString()},[_]);Pt(()=>{(D.valueAsNumber>a||D.valueAsNumber<o)&&(fe==null||fe("rangeOverflow",Y(D.value),D.valueAsNumber))},[D.valueAsNumber,D.value,Y,fe]),ot(()=>{if(!j.current)return;if(j.current.value!=D.value){const re=Re(j.current.value);D.setValue(De(re))}},[Re,De]);const Z=S((F=i)=>{G&&X(F)},[X,G,i]),_e=S((F=i)=>{G&&Ie(F)},[Ie,G,i]),me=Wx(Z,_e);ss(be,"disabled",me.stop,me.isSpinning),ss(we,"disabled",me.stop,me.isSpinning);const H=S(F=>{if(F.nativeEvent.isComposing)return;const ge=Re(F.currentTarget.value);ie(De(ge)),xe.current={start:F.currentTarget.selectionStart,end:F.currentTarget.selectionEnd}},[ie,De,Re]),$e=S(F=>{var re,ge,Le;te==null||te(F),xe.current&&(F.target.selectionStart=(ge=xe.current.start)!=null?ge:(re=F.currentTarget.value)==null?void 0:re.length,F.currentTarget.selectionEnd=(Le=xe.current.end)!=null?Le:F.currentTarget.selectionStart)},[te]),Fe=S(F=>{if(F.nativeEvent.isComposing)return;jx(F,Q)||F.preventDefault();const re=Xe(F)*i,ge=F.key,R={ArrowUp:()=>Z(re),ArrowDown:()=>_e(re),Home:()=>ie(o),End:()=>ie(a)}[ge];R&&(F.preventDefault(),R(F))},[Q,i,Z,_e,ie,o,a]),Xe=F=>{let re=1;return(F.metaKey||F.ctrlKey)&&(re=.1),F.shiftKey&&(re=10),re},ur=J(()=>{const F=$==null?void 0:$(D.value);if(F!=null)return F;const re=D.value.toString();return re||void 0},[D.value,$]),fr=S(()=>{let F=D.value;if(D.value==="")return;/^[eE]/.test(D.value.toString())?D.setValue(""):(D.valueAsNumber<o&&(F=o),D.valueAsNumber>a&&(F=a),D.cast(F))},[D,a,o]),mr=S(()=>{ne(!1),r&&fr()},[r,ne,fr]),Nt=S(()=>{t&&requestAnimationFrame(()=>{var F;(F=j.current)==null||F.focus()})},[t]),vr=S(F=>{F.preventDefault(),me.up(),Nt()},[Nt,me]),pr=S(F=>{F.preventDefault(),me.down(),Nt()},[Nt,me]);Ar(()=>j.current,"wheel",F=>{var re,ge;const R=((ge=(re=j.current)==null?void 0:re.ownerDocument)!=null?ge:document).activeElement===j.current;if(!v||!R)return;F.preventDefault();const q=Xe(F)*i,St=Math.sign(F.deltaY);St===-1?Z(q):St===1&&_e(q)},{passive:!1});const Kn=S((F={},re=null)=>{const ge=l||n&&D.isAtMax;return{...F,ref:he(re,be),role:"button",tabIndex:-1,onPointerDown:L(F.onPointerDown,Le=>{Le.button!==0||ge||vr(Le)}),onPointerLeave:L(F.onPointerLeave,me.stop),onPointerUp:L(F.onPointerUp,me.stop),disabled:ge,"aria-disabled":ht(ge)}},[D.isAtMax,n,vr,me.stop,l]),Xn=S((F={},re=null)=>{const ge=l||n&&D.isAtMin;return{...F,ref:he(re,we),role:"button",tabIndex:-1,onPointerDown:L(F.onPointerDown,Le=>{Le.button!==0||ge||pr(Le)}),onPointerLeave:L(F.onPointerLeave,me.stop),onPointerUp:L(F.onPointerUp,me.stop),disabled:ge,"aria-disabled":ht(ge)}},[D.isAtMin,n,pr,me.stop,l]),Yn=S((F={},re=null)=>{var ge,Le,R,q;return{name:y,inputMode:m,type:"text",pattern:u,"aria-labelledby":I,"aria-label":w,"aria-describedby":x,id:h,disabled:l,...F,readOnly:(ge=F.readOnly)!=null?ge:s,"aria-readonly":(Le=F.readOnly)!=null?Le:s,"aria-required":(R=F.required)!=null?R:c,required:(q=F.required)!=null?q:c,ref:he(j,re),value:Y(D.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Number.isNaN(D.valueAsNumber)?void 0:D.valueAsNumber,"aria-invalid":ht(d??D.isOutOfRange),"aria-valuetext":ur,autoComplete:"off",autoCorrect:"off",onChange:L(F.onChange,H),onKeyDown:L(F.onKeyDown,Fe),onFocus:L(F.onFocus,$e,()=>ne(!0)),onBlur:L(F.onBlur,ae,mr)}},[y,m,u,I,w,Y,x,h,l,c,s,d,D.value,D.valueAsNumber,D.isOutOfRange,o,a,ur,H,Fe,$e,ae,mr]);return{value:Y(D.value),valueAsNumber:D.valueAsNumber,isFocused:Ce,isDisabled:l,isReadOnly:s,getIncrementButtonProps:Kn,getDecrementButtonProps:Xn,getInputProps:Yn,htmlProps:ee}}var[Gx,Hn]=ce({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[qx,Oa]=ce({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Kx=C(function(t,r){const n=Ne("NumberInput",t),o=ue(t),a=Ca(o),{htmlProps:i,...s}=Ux(a),l=J(()=>s,[s]);return f(qx,{value:l,children:f(Gx,{value:n,children:f(k.div,{...i,ref:r,className:z("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});Kx.displayName="NumberInput";var Xx=C(function(t,r){const n=Hn();return f(k.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});Xx.displayName="NumberInputStepper";var Yx=C(function(t,r){const{getInputProps:n}=Oa(),o=n(t,r),a=Hn();return f(k.input,{...o,className:z("chakra-numberinput__field",t.className),__css:{width:"100%",...a.field}})});Yx.displayName="NumberInputField";var kc=k("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Zx=C(function(t,r){var n;const o=Hn(),{getDecrementButtonProps:a}=Oa(),i=a(t,r);return f(kc,{...i,__css:o.stepper,children:(n=t.children)!=null?n:f(Rx,{})})});Zx.displayName="NumberDecrementStepper";var Qx=C(function(t,r){var n;const{getIncrementButtonProps:o}=Oa(),a=o(t,r),i=Hn();return f(kc,{...a,__css:i.stepper,children:(n=t.children)!=null?n:f(Bx,{})})});Qx.displayName="NumberIncrementStepper";function Jx(e,t,r){return(e-t)*100/(r-t)}$t({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});$t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var ek=$t({"0%":{left:"-40%"},"100%":{left:"100%"}}),tk=$t({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function rk(e){const{value:t=0,min:r,max:n,valueText:o,getValueText:a,isIndeterminate:i,role:s="progressbar"}=e,l=Jx(t,r,n);return{bind:{"data-indeterminate":i?"":void 0,"aria-valuemax":n,"aria-valuemin":r,"aria-valuenow":i?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof a=="function"?a(t,l):o})(),role:s},percent:l,value:t}}var[nk,ok]=ce({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),ak=C((e,t)=>{const{min:r,max:n,value:o,isIndeterminate:a,role:i,...s}=e,l=rk({value:o,min:r,max:n,isIndeterminate:a,role:i}),d={height:"100%",...ok().filledTrack};return f(k.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:d})}),ik=C((e,t)=>{var r;const{value:n,min:o=0,max:a=100,hasStripe:i,isAnimated:s,children:l,borderRadius:c,isIndeterminate:d,"aria-label":u,"aria-labelledby":m,"aria-valuetext":v,title:h,role:p,...b}=ue(e),y=Ne("Progress",e),x=c??((r=y.track)==null?void 0:r.borderRadius),w={animation:`${tk} 1s linear infinite`},T={...!d&&i&&s&&w,...d&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${ek} 1s ease infinite normal none running`}},P={overflow:"hidden",position:"relative",...y.track};return f(k.div,{ref:t,borderRadius:x,__css:P,...b,children:f(nk,{value:y,children:[f(ak,{"aria-label":u,"aria-labelledby":m,"aria-valuetext":v,min:o,max:a,value:n,isIndeterminate:d,css:T,borderRadius:x,title:h,role:p}),l]})})});ik.displayName="Progress";function sk(e){return e&&Te(e)&&Te(e.target)}function lk(e={}){const{onChange:t,value:r,defaultValue:n,name:o,isDisabled:a,isFocusable:i,isNative:s,...l}=e,[c,d]=B(n||""),u=typeof r<"u",m=u?r:c,v=V(null),h=S(()=>{const N=v.current;if(!N)return;let T="input:not(:disabled):checked";const P=N.querySelector(T);if(P){P.focus();return}T="input:not(:disabled)";const A=N.querySelector(T);A==null||A.focus()},[]),b=`radio-${Ke()}`,y=o||b,x=S(N=>{const T=sk(N)?N.target.value:N;u||d(T),t==null||t(String(T))},[t,u]),w=S((N={},T=null)=>({...N,ref:he(T,v),role:"radiogroup"}),[]),I=S((N={},T=null)=>({...N,ref:T,name:y,[s?"checked":"isChecked"]:m!=null?N.value===m:void 0,onChange(A){x(A)},"data-radiogroup":!0}),[s,y,x,m]);return{getRootProps:w,getRadioProps:I,name:y,ref:v,focus:h,setValue:d,value:m,onChange:x,isDisabled:a,isFocusable:i,htmlProps:l}}var[ck,wc]=ce({name:"RadioGroupContext",strict:!1}),dk=C((e,t)=>{const{colorScheme:r,size:n,variant:o,children:a,className:i,isDisabled:s,isFocusable:l,...c}=e,{value:d,onChange:u,getRootProps:m,name:v,htmlProps:h}=lk(c),p=J(()=>({name:v,size:n,onChange:u,colorScheme:r,value:d,variant:o,isDisabled:s,isFocusable:l}),[v,n,u,r,d,o,s,l]);return f(ck,{value:p,children:f(k.div,{...m(h,t),className:z("chakra-radio-group",i),children:a})})});dk.displayName="RadioGroup";var uk={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function fk(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:o,isReadOnly:a,isRequired:i,onChange:s,isInvalid:l,name:c,value:d,id:u,"data-radiogroup":m,"aria-describedby":v,...h}=e,p=`radio-${Ke()}`,b=Ot(),x=!!wc()||!!m;let I=!!b&&!x?b.id:p;I=u??I;const N=o??(b==null?void 0:b.isDisabled),T=a??(b==null?void 0:b.isReadOnly),P=i??(b==null?void 0:b.isRequired),A=l??(b==null?void 0:b.isInvalid),[M,_]=B(!1),[E,ee]=B(!1),[te,ae]=B(!1),[fe,Q]=B(!1),[$,D]=B(!!t),ie=typeof r<"u",X=ie?r:$;K(()=>ps(_),[]);const Ie=S(Y=>{if(T||N){Y.preventDefault();return}ie||D(Y.target.checked),s==null||s(Y)},[ie,N,T,s]),Ce=S(Y=>{Y.key===" "&&Q(!0)},[Q]),ne=S(Y=>{Y.key===" "&&Q(!1)},[Q]),G=S((Y={},Z=null)=>({...Y,ref:Z,"data-active":U(fe),"data-hover":U(te),"data-disabled":U(N),"data-invalid":U(A),"data-checked":U(X),"data-focus":U(E),"data-focus-visible":U(E&&M),"data-readonly":U(T),"aria-hidden":!0,onMouseDown:L(Y.onMouseDown,()=>Q(!0)),onMouseUp:L(Y.onMouseUp,()=>Q(!1)),onMouseEnter:L(Y.onMouseEnter,()=>ae(!0)),onMouseLeave:L(Y.onMouseLeave,()=>ae(!1))}),[fe,te,N,A,X,E,T,M]),{onFocus:j,onBlur:xe}=b??{},be=S((Y={},Z=null)=>{const _e=N&&!n;return{...Y,id:I,ref:Z,type:"radio",name:c,value:d,onChange:L(Y.onChange,Ie),onBlur:L(xe,Y.onBlur,()=>ee(!1)),onFocus:L(j,Y.onFocus,()=>ee(!0)),onKeyDown:L(Y.onKeyDown,Ce),onKeyUp:L(Y.onKeyUp,ne),checked:X,disabled:_e,readOnly:T,required:P,"aria-invalid":ht(A),"aria-disabled":ht(_e),"aria-required":ht(P),"data-readonly":U(T),"aria-describedby":v,style:uk}},[N,n,I,c,d,Ie,xe,j,Ce,ne,X,T,P,A,v]);return{state:{isInvalid:A,isFocused:E,isChecked:X,isActive:fe,isHovered:te,isDisabled:N,isReadOnly:T,isRequired:P},getCheckboxProps:G,getRadioProps:G,getInputProps:be,getLabelProps:(Y={},Z=null)=>({...Y,ref:Z,onMouseDown:L(Y.onMouseDown,mk),"data-disabled":U(N),"data-checked":U(X),"data-invalid":U(A)}),getRootProps:(Y,Z=null)=>({...Y,ref:Z,"data-disabled":U(N),"data-checked":U(X),"data-invalid":U(A)}),htmlProps:h}}function mk(e){e.preventDefault(),e.stopPropagation()}function vk(e,t){const r={},n={};for(const[o,a]of Object.entries(e))t.includes(o)?r[o]=a:n[o]=a;return[r,n]}var pk=C((e,t)=>{var r;const n=wc(),{onChange:o,value:a}=e,i=Ne("Radio",{...n,...e}),s=ue(e),{spacing:l="0.5rem",children:c,isDisabled:d=n==null?void 0:n.isDisabled,isFocusable:u=n==null?void 0:n.isFocusable,inputProps:m,...v}=s;let h=e.isChecked;(n==null?void 0:n.value)!=null&&a!=null&&(h=n.value===a);let p=o;n!=null&&n.onChange&&a!=null&&(p=sa(n.onChange,o));const b=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:y,getCheckboxProps:x,getLabelProps:w,getRootProps:I,htmlProps:N}=fk({...v,isChecked:h,isFocusable:u,isDisabled:d,onChange:p,name:b}),[T,P]=vk(N,$s),A=x(P),M=y(m,t),_=w(),E=Object.assign({},T,I()),ee={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...i.container},te={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...i.control},ae={userSelect:"none",marginStart:l,...i.label};return f(k.label,{className:"chakra-radio",...E,__css:ee,children:[f("input",{className:"chakra-radio__input",...M}),f(k.span,{className:"chakra-radio__control",...A,__css:te}),c&&f(k.span,{className:"chakra-radio__label",..._,__css:ae,children:c})]})});pk.displayName="Radio";var _c=C(function(t,r){const{children:n,placeholder:o,className:a,...i}=t;return f(k.select,{...i,ref:r,className:z("chakra-select",a),children:[o&&f("option",{value:"",children:o}),n]})});_c.displayName="SelectField";function hk(e,t){const r={},n={};for(const[o,a]of Object.entries(e))t.includes(o)?r[o]=a:n[o]=a;return[r,n]}var bk=C((e,t)=>{var r;const n=Ne("Select",e),{rootProps:o,placeholder:a,icon:i,color:s,height:l,h:c,minH:d,minHeight:u,iconColor:m,iconSize:v,...h}=ue(e),[p,b]=hk(h,$s),y=ml(b),x={width:"100%",height:"fit-content",position:"relative",color:s},w={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return f(k.div,{className:"chakra-select__wrapper",__css:x,...p,...o,children:[f(_c,{ref:t,height:c??l,minH:d??u,placeholder:a,...y,__css:w,children:e.children}),f(Cc,{"data-disabled":U(y.disabled),...(m||s)&&{color:m||s},__css:n.icon,...v&&{fontSize:v},children:i})]})});bk.displayName="Select";var gk=e=>f("svg",{viewBox:"0 0 24 24",...e,children:f("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),yk=k("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Cc=e=>{const{children:t=f(gk,{}),...r}=e,n=it(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return f(yk,{...r,className:"chakra-select__icon-wrapper",children:Or(t)?n:null})};Cc.displayName="SelectIcon";var Ut=e=>e?"":void 0,Io=e=>e?!0:void 0,jr=(...e)=>e.filter(Boolean).join(" ");function $o(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function rn(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}var bn={width:0,height:0},nn=e=>e||bn;function Sk(e){const{orientation:t,thumbPercents:r,thumbRects:n,isReversed:o}=e,a=p=>{var b;const y=(b=n[p])!=null?b:bn;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...rn({orientation:t,vertical:{bottom:`calc(${r[p]}% - ${y.height/2}px)`},horizontal:{left:`calc(${r[p]}% - ${y.width/2}px)`}})}},i=t==="vertical"?n.reduce((p,b)=>nn(p).height>nn(b).height?p:b,bn):n.reduce((p,b)=>nn(p).width>nn(b).width?p:b,bn),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...rn({orientation:t,vertical:i?{paddingLeft:i.width/2,paddingRight:i.width/2}:{},horizontal:i?{paddingTop:i.height/2,paddingBottom:i.height/2}:{}})},l={position:"absolute",...rn({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},c=r.length===1,d=[0,o?100-r[0]:r[0]],u=c?d:r;let m=u[0];!c&&o&&(m=100-m);const v=Math.abs(u[u.length-1]-u[0]),h={...l,...rn({orientation:t,vertical:o?{height:`${v}%`,top:`${m}%`}:{height:`${v}%`,bottom:`${m}%`},horizontal:o?{width:`${v}%`,right:`${m}%`}:{width:`${v}%`,left:`${m}%`}})};return{trackStyle:l,innerTrackStyle:h,rootStyle:s,getThumbStyle:a}}function xk(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function kk(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function wk(e){const t=Ck(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function Pc(e){return!!e.touches}function _k(e){return Pc(e)&&e.touches.length>1}function Ck(e){var t;return(t=e.view)!=null?t:window}function Pk(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function Ik(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function Ic(e,t="page"){return Pc(e)?Pk(e,t):Ik(e,t)}function $k(e){return t=>{const r=wk(t);(!r||r&&t.button===0)&&e(t)}}function Tk(e,t=!1){function r(o){e(o,{point:Ic(o)})}return t?$k(r):r}function gn(e,t,r,n){return kk(e,t,Tk(r,t==="pointerdown"),n)}var Nk=Object.defineProperty,Ek=(e,t,r)=>t in e?Nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t,r)=>(Ek(e,typeof t!="symbol"?t+"":t,r),r),Ak=class{constructor(e,t,r){Ze(this,"history",[]),Ze(this,"startEvent",null),Ze(this,"lastEvent",null),Ze(this,"lastEventInfo",null),Ze(this,"handlers",{}),Ze(this,"removeListeners",()=>{}),Ze(this,"threshold",3),Ze(this,"win"),Ze(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const s=To(this.lastEventInfo,this.history),l=this.startEvent!==null,c=Dk(s.offset,{x:0,y:0})>=this.threshold;if(!l&&!c)return;const{timestamp:d}=Wa();this.history.push({...s.point,timestamp:d});const{onStart:u,onMove:m}=this.handlers;l||(u==null||u(this.lastEvent,s),this.startEvent=this.lastEvent),m==null||m(this.lastEvent,s)}),Ze(this,"onPointerMove",(s,l)=>{this.lastEvent=s,this.lastEventInfo=l,Oc.update(this.updatePoint,!0)}),Ze(this,"onPointerUp",(s,l)=>{const c=To(l,this.history),{onEnd:d,onSessionEnd:u}=this.handlers;u==null||u(s,c),this.end(),!(!d||!this.startEvent)&&(d==null||d(s,c))});var n;if(this.win=(n=e.view)!=null?n:window,_k(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const o={point:Ic(e)},{timestamp:a}=Wa();this.history=[{...o.point,timestamp:a}];const{onSessionStart:i}=t;i==null||i(e,To(o,this.history)),this.removeListeners=zk(gn(this.win,"pointermove",this.onPointerMove),gn(this.win,"pointerup",this.onPointerUp),gn(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),Bc.update(this.updatePoint)}};function cs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function To(e,t){return{point:e.point,delta:cs(e.point,t[t.length-1]),offset:cs(e.point,t[0]),velocity:Mk(t,.1)}}var Fk=e=>e*1e3;function Mk(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=e[e.length-1];for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Fk(t)));)r--;if(!n)return{x:0,y:0};const a=(o.timestamp-n.timestamp)/1e3;if(a===0)return{x:0,y:0};const i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function zk(...e){return t=>e.reduce((r,n)=>n(r),t)}function No(e,t){return Math.abs(e-t)}function ds(e){return"x"in e&&"y"in e}function Dk(e,t){if(typeof e=="number"&&typeof t=="number")return No(e,t);if(ds(e)&&ds(t)){const r=No(e.x,t.x),n=No(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function $c(e){const t=V(null);return t.current=e,t}function Rk(e,t){const{onPan:r,onPanStart:n,onPanEnd:o,onPanSessionStart:a,onPanSessionEnd:i,threshold:s}=t,l=!!(r||n||o||a||i),c=V(null),d=$c({onSessionStart:a,onSessionEnd:i,onStart:n,onMove:r,onEnd(u,m){c.current=null,o==null||o(u,m)}});K(()=>{var u;(u=c.current)==null||u.updateHandlers(d.current)}),K(()=>{const u=e.current;if(!u||!l)return;function m(v){c.current=new Ak(v,d.current,s)}return gn(u,"pointerdown",m)},[e,l,d,s]),K(()=>()=>{var u;(u=c.current)==null||u.end(),c.current=null},[])}var Bk=globalThis!=null&&globalThis.document?Nn:K;function Ok(e,t){var r,n;if(!e||!e.parentElement)return;const o=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,a=new o.MutationObserver(()=>{t()});return a.observe(e.parentElement,{childList:!0}),()=>{a.disconnect()}}function Lk({getNodes:e,observeMutation:t=!0}){const[r,n]=B([]),[o,a]=B(0);return Bk(()=>{const i=e(),s=i.map((l,c)=>ed(l,d=>{n(u=>[...u.slice(0,c),d,...u.slice(c+1)])}));if(t){const l=i[0];s.push(Ok(l,()=>{a(c=>c+1)}))}return()=>{s.forEach(l=>{l==null||l()})}},[o]),r}function Wk(e){return typeof e=="object"&&e!==null&&"current"in e}function Vk(e){const[t]=Lk({observeMutation:!1,getNodes(){return[Wk(e)?e.current:e]}});return t}function Hk(e){var t;const{min:r=0,max:n=100,onChange:o,value:a,defaultValue:i,isReversed:s,direction:l="ltr",orientation:c="horizontal",id:d,isDisabled:u,isReadOnly:m,onChangeStart:v,onChangeEnd:h,step:p=1,getAriaValueText:b,"aria-valuetext":y,"aria-label":x,"aria-labelledby":w,name:I,focusThumbOnChange:N=!0,...T}=e,P=Se(v),A=Se(h),M=Se(b),_=xk({isReversed:s,direction:l,orientation:c}),[E,ee]=Bn({value:a,defaultValue:i??Uk(r,n),onChange:o}),[te,ae]=B(!1),[fe,Q]=B(!1),$=!(u||m),D=(n-r)/10,ie=p||(n-r)/100,X=vn(E,r,n),Ie=n-X+r,ne=Vi(_?Ie:X,r,n),G=c==="vertical",j=$c({min:r,max:n,step:p,isDisabled:u,value:X,isInteractive:$,isReversed:_,isVertical:G,eventSource:null,focusThumbOnChange:N,orientation:c}),xe=V(null),be=V(null),we=V(null),De=Ke(),Re=d??De,[Y,Z]=[`slider-thumb-${Re}`,`slider-track-${Re}`],_e=S(R=>{var q,St;if(!xe.current)return;const Ve=j.current;Ve.eventSource="pointer";const dt=xe.current.getBoundingClientRect(),{clientX:Zn,clientY:Ec}=(St=(q=R.touches)==null?void 0:q[0])!=null?St:R,Ac=G?dt.bottom-Ec:Zn-dt.left,Fc=G?dt.height:dt.width;let Qn=Ac/Fc;_&&(Qn=1-Qn);let hr=sy(Qn,Ve.min,Ve.max);return Ve.step&&(hr=parseFloat(Hi(hr,Ve.min,Ve.step))),hr=vn(hr,Ve.min,Ve.max),hr},[G,_,j]),me=S(R=>{const q=j.current;q.isInteractive&&(R=parseFloat(Hi(R,q.min,ie)),R=vn(R,q.min,q.max),ee(R))},[ie,ee,j]),H=J(()=>({stepUp(R=ie){const q=_?X-R:X+R;me(q)},stepDown(R=ie){const q=_?X+R:X-R;me(q)},reset(){me(i||0)},stepTo(R){me(R)}}),[me,_,X,ie,i]),$e=S(R=>{const q=j.current,Ve={ArrowRight:()=>H.stepUp(),ArrowUp:()=>H.stepUp(),ArrowLeft:()=>H.stepDown(),ArrowDown:()=>H.stepDown(),PageUp:()=>H.stepUp(D),PageDown:()=>H.stepDown(D),Home:()=>me(q.min),End:()=>me(q.max)}[R.key];Ve&&(R.preventDefault(),R.stopPropagation(),Ve(R),q.eventSource="keyboard")},[H,me,D,j]),Fe=(t=M==null?void 0:M(X))!=null?t:y,Xe=Vk(be),{getThumbStyle:ur,rootStyle:fr,trackStyle:mr,innerTrackStyle:Nt}=J(()=>{const R=j.current,q=Xe??{width:0,height:0};return Sk({isReversed:_,orientation:R.orientation,thumbRects:[q],thumbPercents:[ne]})},[_,Xe,ne,j]),vr=S(()=>{j.current.focusThumbOnChange&&setTimeout(()=>{var q;return(q=be.current)==null?void 0:q.focus()})},[j]);Pt(()=>{const R=j.current;vr(),R.eventSource==="keyboard"&&(A==null||A(R.value))},[X,A]);function pr(R){const q=_e(R);q!=null&&q!==j.current.value&&ee(q)}Rk(we,{onPanSessionStart(R){const q=j.current;q.isInteractive&&(ae(!0),vr(),pr(R),P==null||P(q.value))},onPanSessionEnd(){const R=j.current;R.isInteractive&&(ae(!1),A==null||A(R.value))},onPan(R){j.current.isInteractive&&pr(R)}});const Kn=S((R={},q=null)=>({...R,...T,ref:he(q,we),tabIndex:-1,"aria-disabled":Io(u),"data-focused":Ut(fe),style:{...R.style,...fr}}),[T,u,fe,fr]),Xn=S((R={},q=null)=>({...R,ref:he(q,xe),id:Z,"data-disabled":Ut(u),style:{...R.style,...mr}}),[u,Z,mr]),Yn=S((R={},q=null)=>({...R,ref:q,style:{...R.style,...Nt}}),[Nt]),F=S((R={},q=null)=>({...R,ref:he(q,be),role:"slider",tabIndex:$?0:void 0,id:Y,"data-active":Ut(te),"aria-valuetext":Fe,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":X,"aria-orientation":c,"aria-disabled":Io(u),"aria-readonly":Io(m),"aria-label":x,"aria-labelledby":x?void 0:w,style:{...R.style,...ur(0)},onKeyDown:$o(R.onKeyDown,$e),onFocus:$o(R.onFocus,()=>Q(!0)),onBlur:$o(R.onBlur,()=>Q(!1))}),[$,Y,te,Fe,r,n,X,c,u,m,x,w,ur,$e]),re=S((R,q=null)=>{const St=!(R.value<r||R.value>n),Ve=X>=R.value,dt=Vi(R.value,r,n),Zn={position:"absolute",pointerEvents:"none",...jk({orientation:c,vertical:{bottom:_?`${100-dt}%`:`${dt}%`},horizontal:{left:_?`${100-dt}%`:`${dt}%`}})};return{...R,ref:q,role:"presentation","aria-hidden":!0,"data-disabled":Ut(u),"data-invalid":Ut(!St),"data-highlighted":Ut(Ve),style:{...R.style,...Zn}}},[u,_,n,r,c,X]),ge=S((R={},q=null)=>({...R,ref:q,type:"hidden",value:X,name:I}),[I,X]);return{state:{value:X,isFocused:fe,isDragging:te},actions:H,getRootProps:Kn,getTrackProps:Xn,getInnerTrackProps:Yn,getThumbProps:F,getMarkerProps:re,getInputProps:ge}}function jk(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function Uk(e,t){return t<e?e:e+(t-e)/2}var[Gk,jn]=ce({name:"SliderContext",hookName:"useSliderContext",providerName:"<Slider />"}),[qk,Un]=ce({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:"<Slider />"}),Kk=C((e,t)=>{var r;const n={...e,orientation:(r=e==null?void 0:e.orientation)!=null?r:"horizontal"},o=Ne("Slider",n),a=ue(n),{direction:i}=yt();a.direction=i;const{getInputProps:s,getRootProps:l,...c}=Hk(a),d=l(),u=s({},t);return f(Gk,{value:c,children:f(qk,{value:o,children:f(k.div,{...d,className:jr("chakra-slider",n.className),__css:o.container,children:[n.children,f("input",{...u})]})})})});Kk.displayName="Slider";var Xk=C((e,t)=>{const{getThumbProps:r}=jn(),n=Un(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__thumb",e.className),__css:n.thumb})});Xk.displayName="SliderThumb";var Yk=C((e,t)=>{const{getTrackProps:r}=jn(),n=Un(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__track",e.className),__css:n.track})});Yk.displayName="SliderTrack";var Zk=C((e,t)=>{const{getInnerTrackProps:r}=jn(),n=Un(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__filled-track",e.className),__css:n.filledTrack})});Zk.displayName="SliderFilledTrack";var Qk=C((e,t)=>{const{getMarkerProps:r}=jn(),n=Un(),o=r(e,t);return f(k.div,{...o,className:jr("chakra-slider__marker",e.className),__css:n.mark})});Qk.displayName="SliderMark";var[Jk,La]=ce({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Stat />" `}),ew=C(function(t,r){const n=Ne("Stat",t),o={position:"relative",flex:"1 1 0%",...n.container},{className:a,children:i,...s}=ue(t);return f(Jk,{value:n,children:f(k.div,{ref:r,...s,className:z("chakra-stat",a),__css:o,children:f("dl",{children:i})})})});ew.displayName="Stat";var tw=C(function(t,r){const n=La();return f(k.dd,{ref:r,...t,className:z("chakra-stat__help-text",t.className),__css:n.helpText})});tw.displayName="StatHelpText";var rw=C(function(t,r){const n=La();return f(k.dt,{ref:r,...t,className:z("chakra-stat__label",t.className),__css:n.label})});rw.displayName="StatLabel";var nw=C(function(t,r){const n=La();return f(k.dd,{ref:r,...t,className:z("chakra-stat__number",t.className),__css:{...n.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});nw.displayName="StatNumber";var ow=C(function(t,r){const n=Ne("Switch",t),{spacing:o="0.5rem",children:a,...i}=ue(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:d,getLabelProps:u}=vl(i),m=J(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),v=J(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),h=J(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return f(k.label,{...d(),className:z("chakra-switch",t.className),__css:m,children:[f("input",{className:"chakra-switch__input",...l({},r)}),f(k.span,{...c(),className:"chakra-switch__track",__css:v,children:f(k.span,{__css:n.thumb,className:"chakra-switch__thumb",...s()})}),a&&f(k.span,{className:"chakra-switch__label",...u(),__css:h,children:a})]})});ow.displayName="Switch";var[aw,Ur]=ce({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),iw=C((e,t)=>{const r=Ne("Table",e),{className:n,layout:o,...a}=ue(e);return f(aw,{value:r,children:f(k.table,{ref:t,__css:{tableLayout:o,...r.table},className:z("chakra-table",n),...a})})});iw.displayName="Table";var n_=C((e,t)=>{const r=Ur();return f(k.thead,{...e,ref:t,__css:r.thead})}),o_=C((e,t)=>{const r=Ur();return f(k.tr,{...e,ref:t,__css:r.tr})}),a_=C((e,t)=>{var r;const{overflow:n,overflowX:o,className:a,...i}=e;return f(k.div,{ref:t,className:z("chakra-table__container",a),...i,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??o)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),i_=C((e,t)=>{const r=Ur();return f(k.tbody,{...e,ref:t,__css:r.tbody})}),s_=C(({isNumeric:e,...t},r)=>{const n=Ur();return f(k.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),l_=C(({isNumeric:e,...t},r)=>{const n=Ur();return f(k.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),[sw,lw,cw,dw]=xa();function uw(e){var t;const{defaultIndex:r,onChange:n,index:o,isManual:a,isLazy:i,lazyBehavior:s="unmount",orientation:l="horizontal",direction:c="ltr",...d}=e,[u,m]=B(r??0),[v,h]=Bn({defaultValue:r??0,value:o,onChange:n});K(()=>{o!=null&&m(o)},[o]);const p=cw(),b=Ke();return{id:`tabs-${(t=e.id)!=null?t:b}`,selectedIndex:v,focusedIndex:u,setSelectedIndex:h,setFocusedIndex:m,isManual:a,isLazy:i,lazyBehavior:s,orientation:l,descendants:p,direction:c,htmlProps:d}}var[fw,Gn]=ce({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function mw(e){const{focusedIndex:t,orientation:r,direction:n}=Gn(),o=lw(),a=S(i=>{const s=()=>{var x;const w=o.nextEnabled(t);w&&((x=w.node)==null||x.focus())},l=()=>{var x;const w=o.prevEnabled(t);w&&((x=w.node)==null||x.focus())},c=()=>{var x;const w=o.firstEnabled();w&&((x=w.node)==null||x.focus())},d=()=>{var x;const w=o.lastEnabled();w&&((x=w.node)==null||x.focus())},u=r==="horizontal",m=r==="vertical",v=i.key,h=n==="ltr"?"ArrowLeft":"ArrowRight",p=n==="ltr"?"ArrowRight":"ArrowLeft",y={[h]:()=>u&&l(),[p]:()=>u&&s(),ArrowDown:()=>m&&s(),ArrowUp:()=>m&&l(),Home:c,End:d}[v];y&&(i.preventDefault(),y(i))},[o,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:L(e.onKeyDown,a)}}function vw(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:o,isManual:a,id:i,setFocusedIndex:s,selectedIndex:l}=Gn(),{index:c,register:d}=dw({disabled:t&&!r}),u=c===l,m=()=>{o(c)},v=()=>{s(c),!a&&!(t&&r)&&o(c)},h=ac({...n,ref:he(d,e.ref),isDisabled:t,isFocusable:r,onClick:L(e.onClick,m)}),p="button";return{...h,id:Tc(i,c),role:"tab",tabIndex:u?0:-1,type:p,"aria-selected":u,"aria-controls":Nc(i,c),onFocus:t?void 0:L(e.onFocus,v)}}var[pw,hw]=ce({});function bw(e){const t=Gn(),{id:r,selectedIndex:n}=t,a=_a(e.children).map((i,s)=>Me(pw,{key:s,value:{isSelected:s===n,id:Nc(r,s),tabId:Tc(r,s),selectedIndex:n}},i));return{...e,children:a}}function gw(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:o}=Gn(),{isSelected:a,id:i,tabId:s}=hw(),l=V(!1);a&&(l.current=!0);const c=cc({wasSelected:l.current,isSelected:a,enabled:n,mode:o});return{tabIndex:0,...r,children:c?t:null,role:"tabpanel","aria-labelledby":s,hidden:!a,id:i}}function Tc(e,t){return`${e}--tab-${t}`}function Nc(e,t){return`${e}--tabpanel-${t}`}var[yw,qn]=ce({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),Sw=C(function(t,r){const n=Ne("Tabs",t),{children:o,className:a,...i}=ue(t),{htmlProps:s,descendants:l,...c}=uw(i),d=J(()=>c,[c]),{isFitted:u,...m}=s;return f(sw,{value:l,children:f(fw,{value:d,children:f(yw,{value:n,children:f(k.div,{className:z("chakra-tabs",a),ref:r,...m,__css:n.root,children:o})})})})});Sw.displayName="Tabs";var xw=C(function(t,r){const n=mw({...t,ref:r}),a={display:"flex",...qn().tablist};return f(k.div,{...n,className:z("chakra-tabs__tablist",t.className),__css:a})});xw.displayName="TabList";var kw=C(function(t,r){const n=gw({...t,ref:r}),o=qn();return f(k.div,{outline:"0",...n,className:z("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});kw.displayName="TabPanel";var ww=C(function(t,r){const n=bw(t),o=qn();return f(k.div,{...n,width:"100%",ref:r,className:z("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});ww.displayName="TabPanels";var _w=C(function(t,r){const n=qn(),o=vw({...t,ref:r}),a={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return f(k.button,{...o,className:z("chakra-tabs__tab",t.className),__css:a})});_w.displayName="Tab";var Cw={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},na=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},yn=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function Pw(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:a,closeOnPointerDown:i=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:d,id:u,isOpen:m,defaultIsOpen:v,arrowSize:h=10,arrowShadowColor:p,arrowPadding:b,modifiers:y,isDisabled:x,gutter:w,offset:I,direction:N,...T}=e,{isOpen:P,onOpen:A,onClose:M}=sc({isOpen:m,defaultIsOpen:v,onOpen:l,onClose:c}),{referenceRef:_,getPopperProps:E,getArrowInnerProps:ee,getArrowProps:te}=ic({enabled:P,placement:d,arrowPadding:b,modifiers:y,gutter:w,offset:I,direction:N}),ae=Ke(),Q=`tooltip-${u??ae}`,$=V(null),D=V(),ie=S(()=>{D.current&&(clearTimeout(D.current),D.current=void 0)},[]),X=V(),Ie=S(()=>{X.current&&(clearTimeout(X.current),X.current=void 0)},[]),Ce=S(()=>{Ie(),M()},[M,Ie]),ne=Iw($,Ce),G=S(()=>{if(!x&&!D.current){P&&ne();const Z=yn($);D.current=Z.setTimeout(A,t)}},[ne,x,P,A,t]),j=S(()=>{ie();const Z=yn($);X.current=Z.setTimeout(Ce,r)},[r,Ce,ie]),xe=S(()=>{P&&n&&j()},[n,j,P]),be=S(()=>{P&&i&&j()},[i,j,P]),we=S(Z=>{P&&Z.key==="Escape"&&j()},[P,j]);Ar(()=>na($),"keydown",s?we:void 0),Ar(()=>{const Z=$.current;if(!Z)return null;const _e=Wl(Z);return _e.localName==="body"?yn($):_e},"scroll",()=>{P&&a&&Ce()},{passive:!0,capture:!0}),K(()=>{x&&(ie(),P&&M())},[x,P,M,ie]),K(()=>()=>{ie(),Ie()},[ie,Ie]),Ar(()=>$.current,"pointerleave",j);const De=S((Z={},_e=null)=>({...Z,ref:he($,_e,_),onPointerEnter:L(Z.onPointerEnter,H=>{H.pointerType!=="touch"&&G()}),onClick:L(Z.onClick,xe),onPointerDown:L(Z.onPointerDown,be),onFocus:L(Z.onFocus,G),onBlur:L(Z.onBlur,j),"aria-describedby":P?Q:void 0}),[G,j,be,P,Q,xe,_]),Re=S((Z={},_e=null)=>E({...Z,style:{...Z.style,[Ae.arrowSize.var]:h?`${h}px`:void 0,[Ae.arrowShadowColor.var]:p}},_e),[E,h,p]),Y=S((Z={},_e=null)=>{const me={...Z.style,position:"relative",transformOrigin:Ae.transformOrigin.varRef};return{ref:_e,...T,...Z,id:Q,role:"tooltip",style:me}},[T,Q]);return{isOpen:P,show:G,hide:j,getTriggerProps:De,getTooltipProps:Y,getTooltipPositionerProps:Re,getArrowProps:te,getArrowInnerProps:ee}}var Eo="chakra-ui:close-tooltip";function Iw(e,t){return K(()=>{const r=na(e);return r.addEventListener(Eo,t),()=>r.removeEventListener(Eo,t)},[t,e]),()=>{const r=na(e),n=yn(e);r.dispatchEvent(new n.CustomEvent(Eo))}}function $w(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Tw(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var Nw=k(st.div),Ew=C((e,t)=>{var r,n;const o=je("Tooltip",e),a=ue(e),i=yt(),{children:s,label:l,shouldWrapChildren:c,"aria-label":d,hasArrow:u,bg:m,portalProps:v,background:h,backgroundColor:p,bgColor:b,motionProps:y,...x}=a,w=(n=(r=h??p)!=null?r:m)!=null?n:b;if(w){o.bg=w;const E=Bu(i,"colors",w);o[Ae.arrowBg.var]=E}const I=Pw({...x,direction:i.direction}),N=typeof s=="string"||c;let T;if(N)T=f(k.span,{display:"inline-block",tabIndex:0,...I.getTriggerProps(),children:s});else{const E=cr.only(s);T=it(E,I.getTriggerProps(E.props,E.ref))}const P=!!d,A=I.getTooltipProps({},t),M=P?$w(A,["role","id"]):A,_=Tw(A,["role","id"]);return l?f(Bt,{children:[T,f(Tt,{children:I.isOpen&&f(dr,{...v,children:f(k.div,{...I.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:f(Nw,{variants:Cw,initial:"exit",animate:"enter",exit:"exit",...y,...M,__css:o,children:[l,P&&f(k.span,{srOnly:!0,..._,children:d}),u&&f(k.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:f(k.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):f(Bt,{children:s})});Ew.displayName="Tooltip";var c_=ze({displayName:"ViewOffIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),f("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})}),d_=ze({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",displayName:"WarningIcon"}),u_=ze({displayName:"ViewIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),f("circle",{cx:"12",cy:"12",r:"2"})]})}),f_=ze({displayName:"RepeatIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),f("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})}),m_=ze({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),v_=ze({displayName:"EditIcon",path:f("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[f("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),f("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),p_=ze({displayName:"ExternalLinkIcon",path:f("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[f("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),f("path",{d:"M15 3h6v6"}),f("path",{d:"M10 14L21 3"})]})}),h_=ze({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"}),b_=ze({displayName:"LinkIcon",path:f("g",{fill:"currentColor",children:[f("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),f("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})}),g_=ze({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),y_=ze({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),S_=ze({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),x_=ze({displayName:"DeleteIcon",path:f("g",{fill:"currentColor",children:f("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),k_=ze({viewBox:"0 0 14 14",path:f("g",{fill:"currentColor",children:f("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),w_=ze({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),__=ze({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});export{S_ as $,tl as A,dl as B,Xw as C,K1 as D,tg as E,X1 as F,H1 as G,O1 as H,lt as I,cg as J,Sg as K,iw as L,n_ as M,o_ as N,l_ as O,i_ as P,s_ as Q,_1 as R,ba as S,z1 as T,Xl as U,B1 as V,d_ as W,m_ as X,Zl as Y,bk as Z,Ag as _,je as a,yt as a$,w_ as a0,Ng as a1,Yg as a2,Kl as a3,jg as a4,Ra as a5,Yl as a6,Kg as a7,Ug as a8,Xg as a9,Zk as aA,Xk as aB,el as aC,h_ as aD,k_ as aE,g_ as aF,$1 as aG,t_ as aH,e_ as aI,p_ as aJ,Kx as aK,Yx as aL,Xx as aM,Qx as aN,Zx as aO,Q1 as aP,Dg as aQ,ay as aR,f_ as aS,D1 as aT,ec as aU,b_ as aV,rl as aW,US as aX,HS as aY,LS as aZ,BS as a_,c_ as aa,u_ as ab,__ as ac,x_ as ad,Qw as ae,Mx as af,xc as ag,Ax as ah,Dx as ai,zx as aj,Ex as ak,Ba as al,Zw as am,a_ as an,y_ as ao,G1 as ap,v_ as aq,il as ar,dk as as,pk as at,ik as au,bd as av,r_ as aw,Nx as ax,Kk as ay,Yk as az,rc as b,Jw as b0,Ql as b1,L1 as b2,Cg as c,j1 as d,qw as e,V1 as f,M1 as g,Sa as h,Ew as i,q1 as j,ow as k,ew as l,rw as m,nw as n,tw as o,N1 as p,xw as q,_w as r,ww as s,kw as t,Kw as u,Sw as v,nl as w,W1 as x,xg as y,dg as z};
