quantum-component-library 1.4.45-qa.3 → 1.4.45-qa.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{babel-vendor-Brd7V25k.js → babel-vendor-BOM86iTb.js} +71 -76
  2. package/dist/babel-vendor-cKvSpnBp.cjs +3 -0
  3. package/dist/components.cjs +1 -1
  4. package/dist/components.js +49 -49
  5. package/dist/{dnd-core-vendor-B9bDJoIO.js → dnd-core-vendor-LFMXiCD5.js} +2 -2
  6. package/dist/{dnd-core-vendor-B8SfRHAC.cjs → dnd-core-vendor-rqY4Q0Vq.cjs} +1 -1
  7. package/dist/{graphql-vendor-2jHffeBc.cjs → graphql-vendor-DRps04BT.cjs} +10 -10
  8. package/dist/{graphql-vendor-DZM4vSNi.js → graphql-vendor-DUv16c0G.js} +42 -42
  9. package/dist/hooks.cjs +1 -1
  10. package/dist/hooks.js +1 -1
  11. package/dist/lodash-vendor-D5A6v3mw.cjs +1 -0
  12. package/dist/lodash-vendor-Dz4vW7Gd.js +1120 -0
  13. package/dist/providers.cjs +1 -1
  14. package/dist/providers.js +6 -6
  15. package/dist/quantum-component-library.css +1 -1
  16. package/dist/{react-dnd-vendor-CrTWIfyP.js → react-dnd-vendor-Cuc51Scz.js} +15 -15
  17. package/dist/{react-dnd-vendor-CMnbNCdx.cjs → react-dnd-vendor-FieaWO8Z.cjs} +1 -1
  18. package/dist/{react-select-vendor-Dt2A4G_u.js → react-select-vendor-BrXjJVof.js} +35 -35
  19. package/dist/{react-select-vendor-DwRVrD2f.cjs → react-select-vendor-CVxjkFXv.cjs} +1 -1
  20. package/dist/services.cjs +1 -1
  21. package/dist/services.js +1 -1
  22. package/dist/types.cjs +1 -1
  23. package/dist/types.js +1 -1
  24. package/dist/utils.cjs +1 -1
  25. package/dist/utils.js +18 -18
  26. package/dist/vendor-CPJGEWOn.cjs +45 -0
  27. package/dist/vendor-CoDHTSgb.js +7981 -0
  28. package/package.json +6 -6
  29. package/dist/babel-vendor-pl7onWh-.cjs +0 -3
  30. package/dist/framer-motion-vendor-BgJ2HqtS.cjs +0 -1
  31. package/dist/framer-motion-vendor-Cn84b4iY.js +0 -3285
  32. package/dist/lodash-vendor-Dkc3o8vE.cjs +0 -1
  33. package/dist/lodash-vendor-KQku4vKh.js +0 -1602
  34. package/dist/ui-vendor-BAkBLewK.cjs +0 -294
  35. package/dist/ui-vendor-DLN2xOTj.js +0 -10756
  36. package/dist/vendor-Br-qBXqd.cjs +0 -90
  37. package/dist/vendor-BvxNWBst.js +0 -11937
@@ -1,294 +0,0 @@
1
- "use strict";const Je=require("./lodash-vendor-Dkc3o8vE.cjs"),l=require("react"),d=require("./vendor-Br-qBXqd.cjs"),Re=require("./framer-motion-vendor-BgJ2HqtS.cjs"),Qo=require("react-dom");function Oa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const La=Oa(l);function Wa(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Lr(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Va(){return!!globalThis?.document}function Jo(e){return e.parentElement&&Jo(e.parentElement)?!0:e.hidden}function Ha(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function qa(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function Ga(e){return es(e)?.defaultView??window}function es(e){return Lr(e)?e.ownerDocument:document}function Ua(e){return e.view??window}function Ka(e){return es(e).activeElement}function Xa(e){const t=Ua(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function ts(e){return!!e.touches}function Ya(e){return ts(e)&&e.touches.length>1}function Za(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function Qa(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function rs(e,t="page"){return ts(e)?Za(e,t):Qa(e,t)}function Ja(e){return t=>{const r=Xa(t);(!r||r&&t.button===0)&&e(t)}}function ei(e,t=!1){function r(o){e(o,{point:rs(o)})}return t?Ja(r):r}function Er(e,t,r,n){return Wa(e,t,ei(r,t==="pointerdown"),n)}function ti(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}const V=e=>e?"":void 0,lt=e=>e?!0:void 0;function ri(e){return Array.isArray(e)}function Pe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ri(e)}function ni(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function oi(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Tn(e){if(e==null)return e;const{unitless:t}=oi(e);return t||typeof e=="number"?`${e}px`:e}const ns=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,qn=e=>Object.fromEntries(Object.entries(e).sort(ns));function bo(e){const t=qn(e);return Object.assign(Object.values(t),t)}function si(e){const t=Object.keys(qn(e));return new Set(t)}function ho(e){if(!e)return e;e=Tn(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function Jt(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Tn(e)})`),t&&r.push("and",`(max-width: ${Tn(t)})`),r.join(" ")}function ai(e){if(!e)return null;e.base=e.base??"0px";const t=bo(e),r=Object.entries(e).sort(ns).map(([s,a],i,c)=>{let[,u]=c[i+1]??[];return u=parseFloat(u)>0?ho(u):void 0,{_minW:ho(a),breakpoint:s,minW:a,maxW:u,maxWQuery:Jt(null,u),minWQuery:Jt(a),minMaxQuery:Jt(a,u)}}),n=si(e),o=Array.from(n.values());return{keys:n,normalized:t,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(i=>n.has(i))},asObject:qn(e),asArray:bo(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...t.map(s=>Jt(s)).slice(1)],toArrayValue(s){if(!Pe(s))throw new Error("toArrayValue: value must be an object");const a=o.map(i=>s[i]??null);for(;ni(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,i,c)=>{const u=o[c];return u!=null&&i!=null&&(a[u]=i),a},{})}}}function ii(...e){return function(...r){e.forEach(n=>n?.(...r))}}function q(...e){return function(r){e.some(n=>(n?.(r),r?.defaultPrevented))}}function os(e){return l.Children.toArray(e).filter(t=>l.isValidElement(t))}function Wr(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function li(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ie(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,i=l.createContext(a);i.displayName=t;function c(){const u=l.useContext(i);if(!u&&r){const f=new Error(s??li(n,o));throw f.name="ContextError",Error.captureStackTrace?.(f,c),f}return u}return[i.Provider,c,i]}const L=(...e)=>e.filter(Boolean).join(" "),ss=e=>e.hasAttribute("tabindex"),ci=e=>ss(e)&&e.tabIndex===-1;function as(e){if(!Lr(e)||Jo(e)||qa(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]():Ha(e)?!0:ss(e)}function di(e){return e?Lr(e)&&as(e)&&!ci(e):!1}const ui=["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]"],fi=ui.join(),pi=e=>e.offsetWidth>0&&e.offsetHeight>0;function mi(e){const t=Array.from(e.querySelectorAll(fi));return t.unshift(e),t.filter(r=>as(r)&&pi(r))}function bi(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}const hi=e=>{const t=new WeakMap;return(n,o,s,a)=>{if(typeof n>"u")return e(n,o,s);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(o))return i.get(o);const c=e(n,o,s,a);return i.set(o,c),c}},is=hi(bi),gi=e=>e.default||e;function xi(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function Gn(e,t){let r=xi(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function In(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 go(e,t,r){return(e-t)*100/(r-t)}function yi(e,t,r){return(r-t)*e+t}function Si(e,t,r){const n=Math.round((e-t)/r)*r+t,o=In(r);return Gn(n,o)}function jn(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 Vr(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function ls(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}const cs=Object.freeze(["base","sm","md","lg","xl","2xl"]);function vi(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Pe(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function ki(e,t=cs){const r={};return e.forEach((n,o)=>{const s=t[o];n!=null&&(r[s]=n)}),r}const wi=e=>typeof e=="function";function Ie(e,...t){return wi(e)?e(...t):e}function Ci(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 Ei(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function ds(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Lr(e)&&Ci(e)?e:ds(Ei(e))}function Ri(e,t){const r={},n={};for(const[o,s]of Object.entries(e))t.includes(o)?r[o]=s:n[o]=s;return[r,n]}function $i(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),o=a=>{const i={};for(let c=0;c<a.length;c++){const u=a[c];r[u]&&(Object.defineProperty(i,u,r[u]),delete r[u])}return i},s=a=>o(Array.isArray(a)?a:n.filter(a));return t.map(s).concat(o(n))}function xo(e,t,r={}){const{stop:n,getKey:o}=r;function s(a,i=[]){if(Pe(a)||Array.isArray(a)){const c={};for(const[u,f]of Object.entries(a)){const m=o?.(u)??u,b=[...i,m];if(n?.(a,b))return t(a,i);c[m]=s(f,b)}return c}return t(a,i)}return s(e)}function de(e,t=[]){const r=l.useRef(e);return l.useEffect(()=>{r.current=e}),l.useCallback((...n)=>r.current?.(...n),t)}function sr(e,t,r,n){const o=de(r);return l.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!r||!s))return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{(typeof e=="function"?e():e??document)?.removeEventListener(t,o,n)}}function _i(e){const{isOpen:t,ref:r}=e,[n,o]=l.useState(t),[s,a]=l.useState(!1);return l.useEffect(()=>{s||(o(t),a(!0))},[t,s,n]),sr(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){const c=Ga(r.current),u=new c.CustomEvent("animationend",{bubbles:!0});r.current?.dispatchEvent(u)}}}function Pi(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(b,h)=>b!==h}=e,s=de(n),a=de(o),[i,c]=l.useState(r),u=t!==void 0,f=u?t:i,m=de(b=>{const g=typeof b=="function"?b(f):b;a(f,g)&&(u||c(g),s(g))},[u,s,f,a]);return[f,m]}function Ti(e={}){const{onChange:t,precision:r,defaultValue:n,value:o,step:s=1,min:a=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,u=de(t),[f,m]=l.useState(()=>n==null?"":sn(n,s,r)??""),b=typeof o<"u",h=b?o:f,g=us(pt(h),s),y=r??g,x=l.useCallback(S=>{S!==h&&(b||m(S.toString()),u?.(S.toString(),pt(S)))},[u,b,h]),$=l.useCallback(S=>{let M=S;return c&&(M=jn(M,a,i)),Gn(M,y)},[y,c,i,a]),C=l.useCallback((S=s)=>{let M;h===""?M=pt(S):M=pt(h)+S,M=$(M),x(M)},[$,s,x,h]),w=l.useCallback((S=s)=>{let M;h===""?M=pt(-S):M=pt(h)-S,M=$(M),x(M)},[$,s,x,h]),A=l.useCallback(()=>{let S;n==null?S="":S=sn(n,s,r)??a,x(S)},[n,r,s,x,a]),U=l.useCallback(S=>{const M=sn(S,s,y)??a;x(M)},[y,s,x,a]),N=pt(h);return{isOutOfRange:N>i||N<a,isAtMax:N===i,isAtMin:N===a,precision:y,value:h,valueAsNumber:N,update:x,reset:A,increment:C,decrement:w,clamp:$,cast:U,setValue:m}}function pt(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function us(e,t){return Math.max(In(t),In(e))}function sn(e,t,r){const n=pt(e);if(Number.isNaN(n))return;const o=us(n,t);return Gn(n,r??o)}function Un(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,s=de(r),a=de(t),[i,c]=l.useState(e.defaultIsOpen||!1),u=n!==void 0?n:i,f=n!==void 0,m=l.useId(),b=o??`disclosure-${m}`,h=l.useCallback(()=>{f||c(!1),a?.()},[f,a]),g=l.useCallback(()=>{f||c(!0),s?.()},[f,s]),y=l.useCallback(()=>{u?h():g()},[u,g,h]);function x(C={}){return{...C,"aria-expanded":u,"aria-controls":b,onClick(w){C.onClick?.(w),y()}}}function $(C={}){return{...C,hidden:!u,id:b}}return{isOpen:u,onOpen:g,onClose:h,onToggle:y,isControlled:f,getButtonProps:x,getDisclosureProps:$}}const bt=globalThis?.document?l.useLayoutEffect:l.useEffect,ht=(e,t)=>{const r=l.useRef(!1),n=l.useRef(!1);l.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),l.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Ii(e){const t=e.current;if(!t)return!1;const r=Ka(t);return!r||t.contains(r)?!1:!!di(r)}function ji(e,t){const{visible:r,focusRef:n}=t,o=!r;ht(()=>{if(!o||Ii(e))return;const s=n?.current||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[o,e,n])}function zi(e,t){const r=l.useId();return l.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function Mi(e,...t){const r=zi(e);return l.useMemo(()=>t.map(n=>`${n}-${r}`),[r,t])}function Ai(e,t){const r=de(e);l.useEffect(()=>{let n=null;const o=()=>r();return t!==null&&(n=window.setInterval(o,t)),()=>{n&&window.clearInterval(n)}},[t,r])}function Ni(e){const t=l.useRef(null);return t.current=e,t}function Bi(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 ke(...e){return t=>{e.forEach(r=>{Bi(r,t)})}}function Fi(...e){return l.useMemo(()=>ke(...e),e)}function Di(e){const{ref:t,handler:r,enabled:n=!0}=e,o=de(r),a=l.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;l.useEffect(()=>{if(!n)return;const i=m=>{an(m,t)&&(a.isPointerDown=!0)},c=m=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&an(m,t)&&(a.isPointerDown=!1,o(m))},u=m=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&an(m,t)&&(a.isPointerDown=!1,o(m))},f=fs(t.current);return f.addEventListener("mousedown",i,!0),f.addEventListener("mouseup",c,!0),f.addEventListener("touchstart",i,!0),f.addEventListener("touchend",u,!0),()=>{f.removeEventListener("mousedown",i,!0),f.removeEventListener("mouseup",c,!0),f.removeEventListener("touchstart",i,!0),f.removeEventListener("touchend",u,!0)}},[r,t,o,a,n])}function an(e,t){const r=e.composedPath?.()[0]??e.target;return r&&!fs(r).contains(r)?!1:!t.current?.contains(r)}function fs(e){return e?.ownerDocument??document}function Oi(e,t){const r=de(e);l.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}var Li=Object.defineProperty,Wi=(e,t,r)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ve=(e,t,r)=>(Wi(e,typeof t!="symbol"?t+"":t,r),r);class Vi{constructor(t,r,n){if(Ve(this,"history",[]),Ve(this,"startEvent",null),Ve(this,"lastEvent",null),Ve(this,"lastEventInfo",null),Ve(this,"handlers",{}),Ve(this,"removeListeners",()=>{}),Ve(this,"threshold",3),Ve(this,"win"),Ve(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const i=ln(this.lastEventInfo,this.history),c=this.startEvent!==null,u=Ui(i.offset,{x:0,y:0})>=this.threshold;if(!c&&!u)return;const{timestamp:f}=d.getFrameData();this.history.push({...i.point,timestamp:f});const{onStart:m,onMove:b}=this.handlers;c||(m?.(this.lastEvent,i),this.startEvent=this.lastEvent),b?.(this.lastEvent,i)}),Ve(this,"onPointerMove",(i,c)=>{this.lastEvent=i,this.lastEventInfo=c,d.sync.update(this.updatePoint,!0)}),Ve(this,"onPointerUp",(i,c)=>{const u=ln(c,this.history),{onEnd:f,onSessionEnd:m}=this.handlers;m?.(i,u),this.end(),!(!f||!this.startEvent)&&f?.(i,u)}),this.win=t.view??window,Ya(t))return;this.handlers=r,n&&(this.threshold=n),t.stopPropagation(),t.preventDefault();const o={point:rs(t)},{timestamp:s}=d.getFrameData();this.history=[{...o.point,timestamp:s}];const{onSessionStart:a}=r;a?.(t,ln(o,this.history)),this.removeListeners=Gi(Er(this.win,"pointermove",this.onPointerMove),Er(this.win,"pointerup",this.onPointerUp),Er(this.win,"pointercancel",this.onPointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners?.(),d.cancelSync.update(this.updatePoint)}}function yo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ln(e,t){return{point:e.point,delta:yo(e.point,t[t.length-1]),offset:yo(e.point,t[0]),velocity:qi(t,.1)}}const Hi=e=>e*1e3;function qi(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>Hi(t)));)r--;if(!n)return{x:0,y:0};const s=(o.timestamp-n.timestamp)/1e3;if(s===0)return{x:0,y:0};const a={x:(o.x-n.x)/s,y:(o.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Gi(...e){return t=>e.reduce((r,n)=>n(r),t)}function cn(e,t){return Math.abs(e-t)}function So(e){return"x"in e&&"y"in e}function Ui(e,t){if(typeof e=="number"&&typeof t=="number")return cn(e,t);if(So(e)&&So(t)){const r=cn(e.x,t.x),n=cn(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function Ki(e,t){const{onPan:r,onPanStart:n,onPanEnd:o,onPanSessionStart:s,onPanSessionEnd:a,threshold:i}=t,c=!!(r||n||o||s||a),u=l.useRef(null),f=Ni({onSessionStart:s,onSessionEnd:a,onStart:n,onMove:r,onEnd(m,b){u.current=null,o?.(m,b)}});l.useEffect(()=>{u.current?.updateHandlers(f.current)}),l.useEffect(()=>{const m=e.current;if(!m||!c)return;function b(h){u.current=new Vi(h,f.current,i)}return Er(m,"pointerdown",b)},[e,c,f,i]),l.useEffect(()=>()=>{u.current?.end(),u.current=null},[])}const be={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Xe=e=>ps(t=>e(t,"&"),"[role=group]","[data-group]",".group"),nt=e=>ps(t=>e(t,"~ &"),"[data-peer]",".peer"),ps=(e,...t)=>t.map(e).join(", "),Hr={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Xe(be.open),_groupClosed:Xe(be.closed),_groupHover:Xe(be.hover),_peerHover:nt(be.hover),_groupFocus:Xe(be.focus),_peerFocus:nt(be.focus),_groupFocusVisible:Xe(be.focusVisible),_peerFocusVisible:nt(be.focusVisible),_groupActive:Xe(be.active),_peerActive:nt(be.active),_groupDisabled:Xe(be.disabled),_peerDisabled:nt(be.disabled),_groupInvalid:Xe(be.invalid),_peerInvalid:nt(be.invalid),_groupChecked:Xe(be.checked),_peerChecked:nt(be.checked),_groupFocusWithin:Xe(be.focusWithin),_peerFocusWithin:nt(be.focusWithin),_peerPlaceholderShown:nt(be.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},ms=Object.keys(Hr),Xi=e=>/!(important)?$/.test(e),vo=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Yi=(e,t)=>r=>{const n=String(t),o=Xi(n),s=vo(n),a=e?`${e}.${s}`:s;let i=Pe(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return i=vo(i),o?`${i} !important`:i};function Kn(e){const{scale:t,transform:r,compose:n}=e;return(s,a)=>{const i=Yi(t,s)(a);let c=r?.(i,a)??i;return n&&(c=n(c,a)),c}}const gr=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Oe(e,t){return r=>{const n={property:r,scale:e};return n.transform=Kn({scale:e,transform:t}),n}}const Zi=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function Qi(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:Zi(t),transform:r?Kn({scale:r,compose:n}):n}}const bs=["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 Ji(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...bs].join(" ")}function el(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...bs].join(" ")}const tl={"--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(" ")},rl={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 nl(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const ol={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},zn={"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"},sl=new Set(Object.values(zn)),Mn=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),al=e=>e.trim();function il(e,t){if(e==null||Mn.has(e))return e;if(!(An(e)||Mn.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),s=o?.[1],a=o?.[2];if(!s||!a)return e;const i=s.includes("-gradient")?s:`${s}-gradient`,[c,...u]=a.split(",").map(al).filter(Boolean);if(u?.length===0)return e;const f=c in zn?zn[c]:c;u.unshift(f);const m=u.map(b=>{if(sl.has(b))return b;const h=b.indexOf(" "),[g,y]=h!==-1?[b.substr(0,h),b.substr(h+1)]:[b],x=An(y)?y:y&&y.split(" "),$=`colors.${g}`,C=$ in t.__cssMap?t.__cssMap[$].varRef:g;return x?[C,...Array.isArray(x)?x:[x]].join(" "):C});return`${i}(${m.join(", ")})`}const An=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),ll=(e,t)=>il(e,t??{});function cl(e){return/^var\(--.+\)$/.test(e)}const dl=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Ye=e=>t=>`${e}(${t})`,G={filter(e){return e!=="auto"?e:tl},backdropFilter(e){return e!=="auto"?e:rl},ring(e){return nl(G.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Ji():e==="auto-gpu"?el():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=dl(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(cl(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:ll,blur:Ye("blur"),opacity:Ye("opacity"),brightness:Ye("brightness"),contrast:Ye("contrast"),dropShadow:Ye("drop-shadow"),grayscale:Ye("grayscale"),hueRotate:e=>Ye("hue-rotate")(G.degree(e)),invert:Ye("invert"),saturate:Ye("saturate"),sepia:Ye("sepia"),bgImage(e){return e==null||An(e)||Mn.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=ol[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},p={borderWidths:Oe("borderWidths"),borderStyles:Oe("borderStyles"),colors:Oe("colors"),borders:Oe("borders"),gradients:Oe("gradients",G.gradient),radii:Oe("radii",G.px),space:Oe("space",gr(G.vh,G.px)),spaceT:Oe("space",gr(G.vh,G.px)),degreeT(e){return{property:e,transform:G.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Kn({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Oe("sizes",gr(G.vh,G.px)),sizesT:Oe("sizes",gr(G.vh,G.fraction)),shadows:Oe("shadows"),logical:Qi,blur:Oe("blur",G.blur)},Rr={background:p.colors("background"),backgroundColor:p.colors("backgroundColor"),backgroundImage:p.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:G.bgClip},bgSize:p.prop("backgroundSize"),bgPosition:p.prop("backgroundPosition"),bg:p.colors("background"),bgColor:p.colors("backgroundColor"),bgPos:p.prop("backgroundPosition"),bgRepeat:p.prop("backgroundRepeat"),bgAttachment:p.prop("backgroundAttachment"),bgGradient:p.gradients("backgroundImage"),bgClip:{transform:G.bgClip}};Object.assign(Rr,{bgImage:Rr.backgroundImage,bgImg:Rr.backgroundImage});const Y={border:p.borders("border"),borderWidth:p.borderWidths("borderWidth"),borderStyle:p.borderStyles("borderStyle"),borderColor:p.colors("borderColor"),borderRadius:p.radii("borderRadius"),borderTop:p.borders("borderTop"),borderBlockStart:p.borders("borderBlockStart"),borderTopLeftRadius:p.radii("borderTopLeftRadius"),borderStartStartRadius:p.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:p.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:p.radii("borderTopRightRadius"),borderStartEndRadius:p.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:p.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:p.borders("borderRight"),borderInlineEnd:p.borders("borderInlineEnd"),borderBottom:p.borders("borderBottom"),borderBlockEnd:p.borders("borderBlockEnd"),borderBottomLeftRadius:p.radii("borderBottomLeftRadius"),borderBottomRightRadius:p.radii("borderBottomRightRadius"),borderLeft:p.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:p.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:p.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:p.borders(["borderLeft","borderRight"]),borderInline:p.borders("borderInline"),borderY:p.borders(["borderTop","borderBottom"]),borderBlock:p.borders("borderBlock"),borderTopWidth:p.borderWidths("borderTopWidth"),borderBlockStartWidth:p.borderWidths("borderBlockStartWidth"),borderTopColor:p.colors("borderTopColor"),borderBlockStartColor:p.colors("borderBlockStartColor"),borderTopStyle:p.borderStyles("borderTopStyle"),borderBlockStartStyle:p.borderStyles("borderBlockStartStyle"),borderBottomWidth:p.borderWidths("borderBottomWidth"),borderBlockEndWidth:p.borderWidths("borderBlockEndWidth"),borderBottomColor:p.colors("borderBottomColor"),borderBlockEndColor:p.colors("borderBlockEndColor"),borderBottomStyle:p.borderStyles("borderBottomStyle"),borderBlockEndStyle:p.borderStyles("borderBlockEndStyle"),borderLeftWidth:p.borderWidths("borderLeftWidth"),borderInlineStartWidth:p.borderWidths("borderInlineStartWidth"),borderLeftColor:p.colors("borderLeftColor"),borderInlineStartColor:p.colors("borderInlineStartColor"),borderLeftStyle:p.borderStyles("borderLeftStyle"),borderInlineStartStyle:p.borderStyles("borderInlineStartStyle"),borderRightWidth:p.borderWidths("borderRightWidth"),borderInlineEndWidth:p.borderWidths("borderInlineEndWidth"),borderRightColor:p.colors("borderRightColor"),borderInlineEndColor:p.colors("borderInlineEndColor"),borderRightStyle:p.borderStyles("borderRightStyle"),borderInlineEndStyle:p.borderStyles("borderInlineEndStyle"),borderTopRadius:p.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:p.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:p.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:p.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Y,{rounded:Y.borderRadius,roundedTop:Y.borderTopRadius,roundedTopLeft:Y.borderTopLeftRadius,roundedTopRight:Y.borderTopRightRadius,roundedTopStart:Y.borderStartStartRadius,roundedTopEnd:Y.borderStartEndRadius,roundedBottom:Y.borderBottomRadius,roundedBottomLeft:Y.borderBottomLeftRadius,roundedBottomRight:Y.borderBottomRightRadius,roundedBottomStart:Y.borderEndStartRadius,roundedBottomEnd:Y.borderEndEndRadius,roundedLeft:Y.borderLeftRadius,roundedRight:Y.borderRightRadius,roundedStart:Y.borderInlineStartRadius,roundedEnd:Y.borderInlineEndRadius,borderStart:Y.borderInlineStart,borderEnd:Y.borderInlineEnd,borderTopStartRadius:Y.borderStartStartRadius,borderTopEndRadius:Y.borderStartEndRadius,borderBottomStartRadius:Y.borderEndStartRadius,borderBottomEndRadius:Y.borderEndEndRadius,borderStartRadius:Y.borderInlineStartRadius,borderEndRadius:Y.borderInlineEndRadius,borderStartWidth:Y.borderInlineStartWidth,borderEndWidth:Y.borderInlineEndWidth,borderStartColor:Y.borderInlineStartColor,borderEndColor:Y.borderInlineEndColor,borderStartStyle:Y.borderInlineStartStyle,borderEndStyle:Y.borderInlineEndStyle});const ul={color:p.colors("color"),textColor:p.colors("color"),fill:p.colors("fill"),stroke:p.colors("stroke"),accentColor:p.colors("accentColor"),textFillColor:p.colors("textFillColor")},Br={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:G.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:p.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:p.space("gap"),rowGap:p.space("rowGap"),columnGap:p.space("columnGap")};Object.assign(Br,{flexDir:Br.flexDirection});const Le={width:p.sizesT("width"),inlineSize:p.sizesT("inlineSize"),height:p.sizes("height"),blockSize:p.sizes("blockSize"),boxSize:p.sizes(["width","height"]),minWidth:p.sizes("minWidth"),minInlineSize:p.sizes("minInlineSize"),minHeight:p.sizes("minHeight"),minBlockSize:p.sizes("minBlockSize"),maxWidth:p.sizes("maxWidth"),maxInlineSize:p.sizes("maxInlineSize"),maxHeight:p.sizes("maxHeight"),maxBlockSize:p.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`]:{display:"none"}})},hideBelow:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`]:{display:"none"}})},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:p.propT("float",G.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Le,{w:Le.width,h:Le.height,minW:Le.minWidth,maxW:Le.maxWidth,minH:Le.minHeight,maxH:Le.maxHeight,overscroll:Le.overscrollBehavior,overscrollX:Le.overscrollBehaviorX,overscrollY:Le.overscrollBehaviorY});const fl={filter:{transform:G.filter},blur:p.blur("--chakra-blur"),brightness:p.propT("--chakra-brightness",G.brightness),contrast:p.propT("--chakra-contrast",G.contrast),hueRotate:p.propT("--chakra-hue-rotate",G.hueRotate),invert:p.propT("--chakra-invert",G.invert),saturate:p.propT("--chakra-saturate",G.saturate),dropShadow:p.propT("--chakra-drop-shadow",G.dropShadow),backdropFilter:{transform:G.backdropFilter},backdropBlur:p.blur("--chakra-backdrop-blur"),backdropBrightness:p.propT("--chakra-backdrop-brightness",G.brightness),backdropContrast:p.propT("--chakra-backdrop-contrast",G.contrast),backdropHueRotate:p.propT("--chakra-backdrop-hue-rotate",G.hueRotate),backdropInvert:p.propT("--chakra-backdrop-invert",G.invert),backdropSaturate:p.propT("--chakra-backdrop-saturate",G.saturate)},pl={ring:{transform:G.ring},ringColor:p.colors("--chakra-ring-color"),ringOffset:p.prop("--chakra-ring-offset-width"),ringOffsetColor:p.colors("--chakra-ring-offset-color"),ringInset:p.prop("--chakra-ring-inset")},ml={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:G.outline},outlineOffset:!0,outlineColor:p.colors("outlineColor")},hs={gridGap:p.space("gridGap"),gridColumnGap:p.space("gridColumnGap"),gridRowGap:p.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function bl(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}const hl=e=>{const t=new WeakMap;return(n,o,s,a)=>{if(typeof n>"u")return e(n,o,s);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(o))return i.get(o);const c=e(n,o,s,a);return i.set(o,c),c}},gl=hl(bl),xl={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},yl={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},dn=(e,t,r)=>{const n={},o=gl(e,t,{});for(const s in o)s in r&&r[s]!=null||(n[s]=o[s]);return n},Sl={srOnly:{transform(e){return e===!0?xl:e==="focusable"?yl:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>dn(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>dn(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>dn(t,e,r)}},ar={position:!0,pos:p.prop("position"),zIndex:p.prop("zIndex","zIndices"),inset:p.spaceT("inset"),insetX:p.spaceT(["left","right"]),insetInline:p.spaceT("insetInline"),insetY:p.spaceT(["top","bottom"]),insetBlock:p.spaceT("insetBlock"),top:p.spaceT("top"),insetBlockStart:p.spaceT("insetBlockStart"),bottom:p.spaceT("bottom"),insetBlockEnd:p.spaceT("insetBlockEnd"),left:p.spaceT("left"),insetInlineStart:p.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:p.spaceT("right"),insetInlineEnd:p.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ar,{insetStart:ar.insetInlineStart,insetEnd:ar.insetInlineEnd});const Nn={boxShadow:p.shadows("boxShadow"),mixBlendMode:!0,blendMode:p.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:p.prop("backgroundBlendMode"),opacity:!0};Object.assign(Nn,{shadow:Nn.boxShadow});const oe={margin:p.spaceT("margin"),marginTop:p.spaceT("marginTop"),marginBlockStart:p.spaceT("marginBlockStart"),marginRight:p.spaceT("marginRight"),marginInlineEnd:p.spaceT("marginInlineEnd"),marginBottom:p.spaceT("marginBottom"),marginBlockEnd:p.spaceT("marginBlockEnd"),marginLeft:p.spaceT("marginLeft"),marginInlineStart:p.spaceT("marginInlineStart"),marginX:p.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:p.spaceT("marginInline"),marginY:p.spaceT(["marginTop","marginBottom"]),marginBlock:p.spaceT("marginBlock"),padding:p.space("padding"),paddingTop:p.space("paddingTop"),paddingBlockStart:p.space("paddingBlockStart"),paddingRight:p.space("paddingRight"),paddingBottom:p.space("paddingBottom"),paddingBlockEnd:p.space("paddingBlockEnd"),paddingLeft:p.space("paddingLeft"),paddingInlineStart:p.space("paddingInlineStart"),paddingInlineEnd:p.space("paddingInlineEnd"),paddingX:p.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:p.space("paddingInline"),paddingY:p.space(["paddingTop","paddingBottom"]),paddingBlock:p.space("paddingBlock")};Object.assign(oe,{m:oe.margin,mt:oe.marginTop,mr:oe.marginRight,me:oe.marginInlineEnd,marginEnd:oe.marginInlineEnd,mb:oe.marginBottom,ml:oe.marginLeft,ms:oe.marginInlineStart,marginStart:oe.marginInlineStart,mx:oe.marginX,my:oe.marginY,p:oe.padding,pt:oe.paddingTop,py:oe.paddingY,px:oe.paddingX,pb:oe.paddingBottom,pl:oe.paddingLeft,ps:oe.paddingInlineStart,paddingStart:oe.paddingInlineStart,pr:oe.paddingRight,pe:oe.paddingInlineEnd,paddingEnd:oe.paddingInlineEnd});const vl={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:p.spaceT("scrollMargin"),scrollMarginTop:p.spaceT("scrollMarginTop"),scrollMarginBottom:p.spaceT("scrollMarginBottom"),scrollMarginLeft:p.spaceT("scrollMarginLeft"),scrollMarginRight:p.spaceT("scrollMarginRight"),scrollMarginX:p.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:p.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:p.spaceT("scrollPadding"),scrollPaddingTop:p.spaceT("scrollPaddingTop"),scrollPaddingBottom:p.spaceT("scrollPaddingBottom"),scrollPaddingLeft:p.spaceT("scrollPaddingLeft"),scrollPaddingRight:p.spaceT("scrollPaddingRight"),scrollPaddingX:p.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:p.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},kl={fontFamily:p.prop("fontFamily","fonts"),fontSize:p.prop("fontSize","fontSizes",G.px),fontWeight:p.prop("fontWeight","fontWeights"),lineHeight:p.prop("lineHeight","lineHeights"),letterSpacing:p.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"}},wl={textDecorationColor:p.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:p.shadows("textShadow")},Cl={clipPath:!0,transform:p.propT("transform",G.transform),transformOrigin:!0,translateX:p.spaceT("--chakra-translate-x"),translateY:p.spaceT("--chakra-translate-y"),skewX:p.degreeT("--chakra-skew-x"),skewY:p.degreeT("--chakra-skew-y"),scaleX:p.prop("--chakra-scale-x"),scaleY:p.prop("--chakra-scale-y"),scale:p.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:p.degreeT("--chakra-rotate")},El={listStyleType:!0,listStylePosition:!0,listStylePos:p.prop("listStylePosition"),listStyleImage:!0,listStyleImg:p.prop("listStyleImage")},Rl={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:p.prop("transitionDuration","transition.duration"),transitionProperty:p.prop("transitionProperty","transition.property"),transitionTimingFunction:p.prop("transitionTimingFunction","transition.easing")},Xn=Je.mergeWith({},Rr,Y,ul,Br,Le,fl,pl,ml,hs,Sl,ar,Nn,oe,vl,kl,wl,Cl,El,Rl),$l=Object.assign({},oe,Le,Br,hs,ar),_l=Object.keys($l),Pl=[...Object.keys(Xn),...ms],Tl={...Xn,...Hr},Il=e=>e in Tl,jl=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,s={};for(const a in e){let i=Ie(e[a],t);if(i==null)continue;if(i=Pe(i)&&r(i)?n(i):i,!Array.isArray(i)){s[a]=i;continue}const c=i.slice(0,o.length).length;for(let u=0;u<c;u+=1){const f=o?.[u];if(!f){s[a]=i[u];continue}s[f]=s[f]||{},i[u]!=null&&(s[f][a]=i[u])}}return s};function zl(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const s=e[o];s==="("?(n=!0,r+=s):s===")"?(n=!1,r+=s):s===","&&!n?(t.push(r),r=""):r+=s}return r=r.trim(),r&&t.push(r),t}function Ml(e){return/^var\(--.+\)$/.test(e)}const Al=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Ml(t),Nl=(e,t)=>{if(t==null)return t;const r=a=>e.__cssMap?.[a]?.varRef,n=a=>r(a)??a,[o,s]=zl(t);return t=r(o)??n(s)??n(t),t};function Bl(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(s,a=!1)=>{const i=Ie(s,n),c=jl(i)(n);let u={};for(let f in c){const m=c[f];let b=Ie(m,n);f in r&&(f=r[f]),Al(f,b)&&(b=Nl(n,b));let h=t[f];if(h===!0&&(h={property:f}),Pe(b)){u[f]=u[f]??{},u[f]=Je.mergeWith({},u[f],o(b,!0));continue}let g=h?.transform?.(b,n,i)??b;g=h?.processResult?o(g,!0):g;const y=Ie(h?.property,n);if(!a&&h?.static){const x=Ie(h.static,n);u=Je.mergeWith({},u,x)}if(y&&Array.isArray(y)){for(const x of y)u[x]=g;continue}if(y){y==="&"&&Pe(g)?u=Je.mergeWith({},u,g):u[y]=g;continue}if(Pe(g)){u=Je.mergeWith({},u,g);continue}u[f]=g}return u};return o}const gs=e=>t=>Bl({theme:t,pseudos:Hr,configs:Xn})(e);function te(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Fl(e,t,r){return e.__cssMap?.[`${t}.${r}`]?.varRef??r}function Dl(e,t){if(Array.isArray(e))return e;if(Pe(e))return t(e);if(e!=null)return[e]}function Ol(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function Ll(e){const t=e.__breakpoints;return function(n,o,s,a){if(!t)return;const i={},c=Dl(s,t.toArrayValue);if(!c)return i;const u=c.length,f=u===1,m=!!n.parts;for(let b=0;b<u;b++){const h=t.details[b],g=t.details[Ol(c,b)],y=Jt(h.minW,g?._minW),x=Ie(n[o]?.[c[b]],a);if(x){if(m){n.parts?.forEach($=>{Je.mergeWith(i,{[$]:f?x[$]:{[y]:x[$]}})});continue}if(!m){f?Je.mergeWith(i,x):i[y]=x;continue}i[y]=x}}return i}}function Wl(e){return t=>{const{variant:r,size:n,theme:o}=t,s=Ll(o);return Je.mergeWith({},Ie(e.baseStyle??{},t),s(e,"sizes",n,t),s(e,"variants",r,t))}}function he(e){return Vr(e,["styleConfig","size","variant","colorScheme"])}function xs(e){return Pe(e)&&e.reference?e.reference:String(e)}const qr=(e,...t)=>t.map(xs).join(` ${e} `).replace(/calc/g,""),ko=(...e)=>`calc(${qr("+",...e)})`,wo=(...e)=>`calc(${qr("-",...e)})`,Bn=(...e)=>`calc(${qr("*",...e)})`,Co=(...e)=>`calc(${qr("/",...e)})`,Eo=e=>{const t=xs(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bn(t,-1)},ot=Object.assign(e=>({add:(...t)=>ot(ko(e,...t)),subtract:(...t)=>ot(wo(e,...t)),multiply:(...t)=>ot(Bn(e,...t)),divide:(...t)=>ot(Co(e,...t)),negate:()=>ot(Eo(e)),toString:()=>e.toString()}),{add:ko,subtract:wo,multiply:Bn,divide:Co,negate:Eo});function Vl(e,t="-"){return e.replace(/\s+/g,t)}function Hl(e){const t=Vl(e.toString());return Gl(ql(t))}function ql(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Gl(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Ul(e,t=""){return[t,e].filter(Boolean).join("-")}function Kl(e,t){return`var(${e}${t?`, ${t}`:""})`}function Xl(e,t=""){return Hl(`--${Ul(e,t)}`)}function j(e,t,r){const n=Xl(e,r);return{variable:n,reference:Kl(n,t)}}function Yl(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,s]=n;r[o]=j(`${e}-${o}`,s);continue}r[n]=j(`${e}-${n}`)}return r}const Zl=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Ql(e){return ls(e,Zl)}function Jl(e){return e.semanticTokens}function ec(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}function tc(e){const t=Ql(e),r=Jl(e),n=s=>ms.includes(s)||s==="default",o={};return xo(t,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!1,value:s})}),xo(r,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(n)}),o}function Ro(e,t){return j(String(e).replace(/\./g,"-"),void 0,t)}function rc(e){const t=tc(e),r=e.config?.cssVarPrefix;let n={};const o={};function s(a,i){const u=[String(a).split(".")[0],i].join(".");if(!t[u])return i;const{reference:m}=Ro(u,r);return m}for(const[a,i]of Object.entries(t)){const{isSemantic:c,value:u}=i,{variable:f,reference:m}=Ro(a,r);if(!c){if(a.startsWith("space")){const h=a.split("."),[g,...y]=h,x=`${g}.-${y.join(".")}`,$=ot.negate(u),C=ot.negate(m);o[x]={value:$,var:f,varRef:C}}n[f]=u,o[a]={value:u,var:f,varRef:m};continue}const b=Pe(u)?u:{default:u};n=Je.mergeWith(n,Object.entries(b).reduce((h,[g,y])=>{if(!y)return h;const x=s(a,`${y}`);if(g==="default")return h[f]=x,h;const $=Hr?.[g]??g;return h[$]={[f]:x},h},{})),o[a]={value:m,var:f,varRef:m}}return{cssVars:n,cssMap:o}}function nc(e){const t=ec(e),{cssMap:r,cssVars:n}=rc(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...n},__cssMap:r,__breakpoints:ai(t.breakpoints)}),t}function Q(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(...f){n();for(const m of f)t[m]=c(m);return Q(e,t)}function s(...f){for(const m of f)m in t||(t[m]=c(m));return Q(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([m,b])=>[m,b.selector]))}function i(){return Object.fromEntries(Object.entries(t).map(([m,b])=>[m,b.className]))}function c(f){const h=`chakra-${(["container","root"].includes(f??"")?[e]:[e,f]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>f}}return{parts:o,toPart:c,extend:s,selectors:a,classnames:i,get keys(){return Object.keys(t)},__type:{}}}const oc=Q("accordion").parts("root","container","button","panel","icon"),sc=Q("alert").parts("title","description","container","icon","spinner"),ac=Q("avatar").parts("label","badge","container","excessLabel","group"),ic=Q("breadcrumb").parts("link","item","container","separator");Q("button").parts();const lc=Q("checkbox").parts("control","icon","container","label");Q("progress").parts("track","filledTrack","label");const cc=Q("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),dc=Q("editable").parts("preview","input","textarea"),uc=Q("form").parts("container","requiredIndicator","helperText"),fc=Q("formError").parts("text","icon"),pc=Q("input").parts("addon","field","element","group"),mc=Q("list").parts("container","item","icon"),bc=Q("menu").parts("button","list","item","groupTitle","icon","command","divider"),hc=Q("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),gc=Q("numberinput").parts("root","field","stepperGroup","stepper");Q("pininput").parts("field");const xc=Q("popover").parts("content","header","body","footer","popper","arrow","closeButton"),yc=Q("progress").parts("label","filledTrack","track"),Sc=Q("radio").parts("container","control","label"),vc=Q("select").parts("field","icon"),kc=Q("slider").parts("container","track","thumb","filledTrack","mark"),wc=Q("stat").parts("container","label","helpText","number","icon"),Cc=Q("switch").parts("container","track","thumb","label"),Ec=Q("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Rc=Q("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),$c=Q("tag").parts("container","label","closeButton"),_c=Q("card").parts("container","header","body","footer");Q("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Pc,defineMultiStyleConfig:Tc}=te(oc.keys),Ic={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},jc={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},zc={pt:"2",px:"4",pb:"5"},Mc={fontSize:"1.25em"},Ac=Pc({container:Ic,button:jc,panel:zc,icon:Mc}),Nc=Tc({baseStyle:Ac}),Bc=e=>Object.keys(e).length===0;function Fc(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}const Ce=(e,t,r)=>{const n=Fc(e,`colors.${t}`,t);try{return d.toHex(n),n}catch{return r??"#000000"}},Dc=e=>{const[t,r,n]=d.parseToRgba(e);return(t*299+r*587+n*114)/1e3},Oc=e=>t=>{const r=Ce(t,e);return Dc(r)<128?"dark":"light"},Lc=e=>t=>Oc(e)(t)==="dark",Ot=(e,t)=>r=>{const n=Ce(r,e);return d.transparentize(n,1-t)};function $o(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
2
- 45deg,
3
- ${t} 25%,
4
- transparent 25%,
5
- transparent 50%,
6
- ${t} 50%,
7
- ${t} 75%,
8
- transparent 75%,
9
- transparent
10
- )`,backgroundSize:`${e} ${e}`}}const Wc=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Vc(e){const t=Wc();return!e||Bc(e)?t:e.string&&e.colors?qc(e.string,e.colors):e.string&&!e.colors?Hc(e.string):e.colors&&!e.string?Gc(e.colors):t}function Hc(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 qc(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 Gc(e){return e[Math.floor(Math.random()*e.length)]}function I(e,t){return r=>r.colorMode==="dark"?t:e}function Yn(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function ys(e){return Pe(e)&&e.reference?e.reference:String(e)}const Gr=(e,...t)=>t.map(ys).join(` ${e} `).replace(/calc/g,""),_o=(...e)=>`calc(${Gr("+",...e)})`,Po=(...e)=>`calc(${Gr("-",...e)})`,Fn=(...e)=>`calc(${Gr("*",...e)})`,To=(...e)=>`calc(${Gr("/",...e)})`,Io=e=>{const t=ys(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Fn(t,-1)},st=Object.assign(e=>({add:(...t)=>st(_o(e,...t)),subtract:(...t)=>st(Po(e,...t)),multiply:(...t)=>st(Fn(e,...t)),divide:(...t)=>st(To(e,...t)),negate:()=>st(Io(e)),toString:()=>e.toString()}),{add:_o,subtract:Po,multiply:Fn,divide:To,negate:Io});function Uc(e){return!Number.isInteger(parseFloat(e.toString()))}function Kc(e,t="-"){return e.replace(/\s+/g,t)}function Ss(e){const t=Kc(e.toString());return t.includes("\\.")?e:Uc(e)?t.replace(".","\\."):e}function Xc(e,t=""){return[t,Ss(e)].filter(Boolean).join("-")}function Yc(e,t){return`var(${Ss(e)}${t?`, ${t}`:""})`}function Zc(e,t=""){return`--${Xc(e,t)}`}function ge(e,t){const r=Zc(e,t?.prefix);return{variable:r,reference:Yc(r,Qc(t?.fallback))}}function Qc(e){return e?.reference}const{definePartsStyle:mr,defineMultiStyleConfig:Jc}=te(sc.keys),je=j("alert-fg"),dt=j("alert-bg"),ed=mr({container:{bg:dt.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:je.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:je.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Zn(e){const{theme:t,colorScheme:r}=e,n=Ot(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}const td=mr(e=>{const{colorScheme:t}=e,r=Zn(e);return{container:{[je.variable]:`colors.${t}.600`,[dt.variable]:r.light,_dark:{[je.variable]:`colors.${t}.200`,[dt.variable]:r.dark}}}}),rd=mr(e=>{const{colorScheme:t}=e,r=Zn(e);return{container:{[je.variable]:`colors.${t}.600`,[dt.variable]:r.light,_dark:{[je.variable]:`colors.${t}.200`,[dt.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:je.reference}}}),nd=mr(e=>{const{colorScheme:t}=e,r=Zn(e);return{container:{[je.variable]:`colors.${t}.600`,[dt.variable]:r.light,_dark:{[je.variable]:`colors.${t}.200`,[dt.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:je.reference}}}),od=mr(e=>{const{colorScheme:t}=e;return{container:{[je.variable]:"colors.white",[dt.variable]:`colors.${t}.600`,_dark:{[je.variable]:"colors.gray.900",[dt.variable]:`colors.${t}.200`},color:je.reference}}}),sd={subtle:td,"left-accent":rd,"top-accent":nd,solid:od},ad=Jc({baseStyle:ed,variants:sd,defaultProps:{variant:"subtle",colorScheme:"blue"}}),vs={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"},id={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"},ld={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ks={...vs,...id,container:ld},cd=e=>typeof e=="function";function Ee(e,...t){return cd(e)?e(...t):e}const{definePartsStyle:ws,defineMultiStyleConfig:dd}=te(ac.keys),Nt=j("avatar-border-color"),ir=j("avatar-bg"),fr=j("avatar-font-size"),Lt=j("avatar-size"),ud={borderRadius:"full",border:"0.2em solid",borderColor:Nt.reference,[Nt.variable]:"white",_dark:{[Nt.variable]:"colors.gray.800"}},fd={bg:ir.reference,fontSize:fr.reference,width:Lt.reference,height:Lt.reference,lineHeight:"1",[ir.variable]:"colors.gray.200",_dark:{[ir.variable]:"colors.whiteAlpha.400"}},pd=e=>{const{name:t,theme:r}=e,n=t?Vc({string:t}):"colors.gray.400",o=Lc(n)(r);let s="white";return o||(s="gray.800"),{bg:ir.reference,fontSize:fr.reference,color:s,borderColor:Nt.reference,verticalAlign:"top",width:Lt.reference,height:Lt.reference,"&:not([data-loaded])":{[ir.variable]:n},[Nt.variable]:"colors.white",_dark:{[Nt.variable]:"colors.gray.800"}}},md={fontSize:fr.reference,lineHeight:"1"},bd=ws(e=>({badge:Ee(ud,e),excessLabel:Ee(fd,e),container:Ee(pd,e),label:md}));function ut(e){const t=e!=="100%"?ks[e]:void 0;return ws({container:{[Lt.variable]:t??e,[fr.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Lt.variable]:t??e,[fr.variable]:`calc(${t??e} / 2.5)`}})}const hd={"2xs":ut(4),xs:ut(6),sm:ut(8),md:ut(12),lg:ut(16),xl:ut(24),"2xl":ut(32),full:ut("100%")},gd=dd({baseStyle:bd,sizes:hd,defaultProps:{size:"md"}}),ue=Yl("badge",["bg","color","shadow"]),xd={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ue.bg.reference,color:ue.color.reference,boxShadow:ue.shadow.reference},yd=e=>{const{colorScheme:t,theme:r}=e,n=Ot(`${t}.500`,.6)(r);return{[ue.bg.variable]:`colors.${t}.500`,[ue.color.variable]:"colors.white",_dark:{[ue.bg.variable]:n,[ue.color.variable]:"colors.whiteAlpha.800"}}},Sd=e=>{const{colorScheme:t,theme:r}=e,n=Ot(`${t}.200`,.16)(r);return{[ue.bg.variable]:`colors.${t}.100`,[ue.color.variable]:`colors.${t}.800`,_dark:{[ue.bg.variable]:n,[ue.color.variable]:`colors.${t}.200`}}},vd=e=>{const{colorScheme:t,theme:r}=e,n=Ot(`${t}.200`,.8)(r);return{[ue.color.variable]:`colors.${t}.500`,_dark:{[ue.color.variable]:n},[ue.shadow.variable]:`inset 0 0 0px 1px ${ue.color.reference}`}},kd={solid:yd,subtle:Sd,outline:vd},lr={baseStyle:xd,variants:kd,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:wd,definePartsStyle:Cd}=te(ic.keys),un=j("breadcrumb-link-decor"),Ed={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:un.reference,[un.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[un.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Rd=Cd({link:Ed}),$d=wd({baseStyle:Rd}),_d={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"}}},Cs=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:I("gray.800","whiteAlpha.900")(e),_hover:{bg:I("gray.100","whiteAlpha.200")(e)},_active:{bg:I("gray.200","whiteAlpha.300")(e)}};const n=Ot(`${t}.200`,.12)(r),o=Ot(`${t}.200`,.24)(r);return{color:I(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:I(`${t}.50`,n)(e)},_active:{bg:I(`${t}.100`,o)(e)}}},Pd=e=>{const{colorScheme:t}=e,r=I("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"},...Ee(Cs,e)}},Td={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Id=e=>{const{colorScheme:t}=e;if(t==="gray"){const i=I("gray.100","whiteAlpha.200")(e);return{bg:i,color:I("gray.800","whiteAlpha.900")(e),_hover:{bg:I("gray.200","whiteAlpha.300")(e),_disabled:{bg:i}},_active:{bg:I("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:s=`${t}.700`}=Td[t]??{},a=I(r,`${t}.200`)(e);return{bg:a,color:I(n,"gray.800")(e),_hover:{bg:I(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:I(s,`${t}.400`)(e)}}},jd=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:I(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:I(`${t}.700`,`${t}.500`)(e)}}},zd={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Md={ghost:Cs,outline:Pd,solid:Id,link:jd,unstyled:zd},Ad={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"}},Nd={baseStyle:_d,variants:Md,sizes:Ad,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:St,defineMultiStyleConfig:Bd}=te(_c.keys),Fr=j("card-bg"),ct=j("card-padding"),Es=j("card-shadow"),$r=j("card-radius"),Rs=j("card-border-width","0"),$s=j("card-border-color"),Fd=St({container:{[Fr.variable]:"colors.chakra-body-bg",backgroundColor:Fr.reference,boxShadow:Es.reference,borderRadius:$r.reference,color:"chakra-body-text",borderWidth:Rs.reference,borderColor:$s.reference},body:{padding:ct.reference,flex:"1 1 0%"},header:{padding:ct.reference},footer:{padding:ct.reference}}),Dd={sm:St({container:{[$r.variable]:"radii.base",[ct.variable]:"space.3"}}),md:St({container:{[$r.variable]:"radii.md",[ct.variable]:"space.5"}}),lg:St({container:{[$r.variable]:"radii.xl",[ct.variable]:"space.7"}})},Od={elevated:St({container:{[Es.variable]:"shadows.base",_dark:{[Fr.variable]:"colors.gray.700"}}}),outline:St({container:{[Rs.variable]:"1px",[$s.variable]:"colors.chakra-border-color"}}),filled:St({container:{[Fr.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ct.variable]:0},header:{[ct.variable]:0},footer:{[ct.variable]:0}}},Ld=Bd({baseStyle:Fd,variants:Od,sizes:Dd,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:_r,defineMultiStyleConfig:Wd}=te(lc.keys),cr=j("checkbox-size"),Vd=e=>{const{colorScheme:t}=e;return{w:cr.reference,h:cr.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:I(`${t}.500`,`${t}.200`)(e),borderColor:I(`${t}.500`,`${t}.200`)(e),color:I("white","gray.900")(e),_hover:{bg:I(`${t}.600`,`${t}.300`)(e),borderColor:I(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:I("gray.200","transparent")(e),bg:I("gray.200","whiteAlpha.300")(e),color:I("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:I(`${t}.500`,`${t}.200`)(e),borderColor:I(`${t}.500`,`${t}.200`)(e),color:I("white","gray.900")(e)},_disabled:{bg:I("gray.100","whiteAlpha.100")(e),borderColor:I("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:I("red.500","red.300")(e)}}},Hd={_disabled:{cursor:"not-allowed"}},qd={userSelect:"none",_disabled:{opacity:.4}},Gd={transitionProperty:"transform",transitionDuration:"normal"},Ud=_r(e=>({icon:Gd,container:Hd,control:Ee(Vd,e),label:qd})),Kd={sm:_r({control:{[cr.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:_r({control:{[cr.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:_r({control:{[cr.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Dr=Wd({baseStyle:Ud,sizes:Kd,defaultProps:{size:"md",colorScheme:"blue"}}),dr=ge("close-button-size"),Yt=ge("close-button-bg"),Xd={w:[dr.reference],h:[dr.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Yt.variable]:"colors.blackAlpha.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_active:{[Yt.variable]:"colors.blackAlpha.200",_dark:{[Yt.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Yt.reference},Yd={lg:{[dr.variable]:"sizes.10",fontSize:"md"},md:{[dr.variable]:"sizes.8",fontSize:"xs"},sm:{[dr.variable]:"sizes.6",fontSize:"2xs"}},Zd={baseStyle:Xd,sizes:Yd,defaultProps:{size:"md"}},{variants:Qd,defaultProps:Jd}=lr,eu={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ue.bg.reference,color:ue.color.reference,boxShadow:ue.shadow.reference},tu={baseStyle:eu,variants:Qd,defaultProps:Jd},ru={w:"100%",mx:"auto",maxW:"prose",px:"4"},nu={baseStyle:ru},ou={opacity:.6,borderColor:"inherit"},su={borderStyle:"solid"},au={borderStyle:"dashed"},iu={solid:su,dashed:au},lu={baseStyle:ou,variants:iu,defaultProps:{variant:"solid"}},{definePartsStyle:Dn,defineMultiStyleConfig:cu}=te(cc.keys),fn=j("drawer-bg"),pn=j("drawer-box-shadow");function _t(e){return Dn(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const du={bg:"blackAlpha.600",zIndex:"modal"},uu={display:"flex",zIndex:"modal",justifyContent:"center"},fu=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[fn.variable]:"colors.white",[pn.variable]:"shadows.lg",_dark:{[fn.variable]:"colors.gray.700",[pn.variable]:"shadows.dark-lg"},bg:fn.reference,boxShadow:pn.reference}},pu={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mu={position:"absolute",top:"2",insetEnd:"3"},bu={px:"6",py:"2",flex:"1",overflow:"auto"},hu={px:"6",py:"4"},gu=Dn(e=>({overlay:du,dialogContainer:uu,dialog:Ee(fu,e),header:pu,closeButton:mu,body:bu,footer:hu})),xu={xs:_t("xs"),sm:_t("md"),md:_t("lg"),lg:_t("2xl"),xl:_t("4xl"),full:_t("full")},yu=cu({baseStyle:gu,sizes:xu,defaultProps:{size:"xs"}}),{definePartsStyle:Su,defineMultiStyleConfig:vu}=te(dc.keys),ku={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},wu={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Cu={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Eu=Su({preview:ku,input:wu,textarea:Cu}),Ru=vu({baseStyle:Eu}),{definePartsStyle:$u,defineMultiStyleConfig:_u}=te(uc.keys),Bt=j("form-control-color"),Pu={marginStart:"1",[Bt.variable]:"colors.red.500",_dark:{[Bt.variable]:"colors.red.300"},color:Bt.reference},Tu={mt:"2",[Bt.variable]:"colors.gray.600",_dark:{[Bt.variable]:"colors.whiteAlpha.600"},color:Bt.reference,lineHeight:"normal",fontSize:"sm"},Iu=$u({container:{width:"100%",position:"relative"},requiredIndicator:Pu,helperText:Tu}),ju=_u({baseStyle:Iu}),{definePartsStyle:zu,defineMultiStyleConfig:Mu}=te(fc.keys),Ft=j("form-error-color"),Au={[Ft.variable]:"colors.red.500",_dark:{[Ft.variable]:"colors.red.300"},color:Ft.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Nu={marginEnd:"0.5em",[Ft.variable]:"colors.red.500",_dark:{[Ft.variable]:"colors.red.300"},color:Ft.reference},Bu=zu({text:Au,icon:Nu}),Fu=Mu({baseStyle:Bu}),Du={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Ou={baseStyle:Du},Lu={fontFamily:"heading",fontWeight:"bold"},Wu={"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}},Vu={baseStyle:Lu,sizes:Wu,defaultProps:{size:"xl"}},{definePartsStyle:it,defineMultiStyleConfig:Hu}=te(pc.keys),Tt=j("input-height"),It=j("input-font-size"),jt=j("input-padding"),zt=j("input-border-radius"),qu=it({addon:{height:Tt.reference,fontSize:It.reference,px:jt.reference,borderRadius:zt.reference},field:{width:"100%",height:Tt.reference,fontSize:It.reference,px:jt.reference,borderRadius:zt.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ft={lg:{[It.variable]:"fontSizes.lg",[jt.variable]:"space.4",[zt.variable]:"radii.md",[Tt.variable]:"sizes.12"},md:{[It.variable]:"fontSizes.md",[jt.variable]:"space.4",[zt.variable]:"radii.md",[Tt.variable]:"sizes.10"},sm:{[It.variable]:"fontSizes.sm",[jt.variable]:"space.3",[zt.variable]:"radii.sm",[Tt.variable]:"sizes.8"},xs:{[It.variable]:"fontSizes.xs",[jt.variable]:"space.2",[zt.variable]:"radii.sm",[Tt.variable]:"sizes.6"}},Gu={lg:it({field:ft.lg,group:ft.lg}),md:it({field:ft.md,group:ft.md}),sm:it({field:ft.sm,group:ft.sm}),xs:it({field:ft.xs,group:ft.xs})};function Qn(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||I("blue.500","blue.300")(e),errorBorderColor:r||I("red.500","red.300")(e)}}const Uu=it(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Qn(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:I("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ce(t,n),boxShadow:`0 0 0 1px ${Ce(t,n)}`},_focusVisible:{zIndex:1,borderColor:Ce(t,r),boxShadow:`0 0 0 1px ${Ce(t,r)}`}},addon:{border:"1px solid",borderColor:I("inherit","whiteAlpha.50")(e),bg:I("gray.100","whiteAlpha.300")(e)}}}),Ku=it(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Qn(e);return{field:{border:"2px solid",borderColor:"transparent",bg:I("gray.100","whiteAlpha.50")(e),_hover:{bg:I("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ce(t,n)},_focusVisible:{bg:"transparent",borderColor:Ce(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:I("gray.100","whiteAlpha.50")(e)}}}),Xu=it(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Qn(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ce(t,n),boxShadow:`0px 1px 0px 0px ${Ce(t,n)}`},_focusVisible:{borderColor:Ce(t,r),boxShadow:`0px 1px 0px 0px ${Ce(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Yu=it({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Zu={outline:Uu,filled:Ku,flushed:Xu,unstyled:Yu},Z=Hu({baseStyle:qu,sizes:Gu,variants:Zu,defaultProps:{size:"md",variant:"outline"}}),mn=j("kbd-bg"),Qu={[mn.variable]:"colors.gray.100",_dark:{[mn.variable]:"colors.whiteAlpha.100"},bg:mn.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Ju={baseStyle:Qu},ef={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},tf={baseStyle:ef},{defineMultiStyleConfig:rf,definePartsStyle:nf}=te(mc.keys),of={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},sf=nf({icon:of}),af=rf({baseStyle:sf}),{defineMultiStyleConfig:lf,definePartsStyle:cf}=te(bc.keys),Ze=j("menu-bg"),bn=j("menu-shadow"),df={[Ze.variable]:"#fff",[bn.variable]:"shadows.sm",_dark:{[Ze.variable]:"colors.gray.700",[bn.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Ze.reference,boxShadow:bn.reference},uf={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ze.variable]:"colors.gray.100",_dark:{[Ze.variable]:"colors.whiteAlpha.100"}},_active:{[Ze.variable]:"colors.gray.200",_dark:{[Ze.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ze.variable]:"colors.gray.100",_dark:{[Ze.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ze.reference},ff={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},pf={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},mf={opacity:.6},bf={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},hf={transitionProperty:"common",transitionDuration:"normal"},gf=cf({button:hf,list:df,item:uf,groupTitle:ff,icon:pf,command:mf,divider:bf}),xf=lf({baseStyle:gf}),{defineMultiStyleConfig:yf,definePartsStyle:On}=te(hc.keys),hn=j("modal-bg"),gn=j("modal-shadow"),Sf={bg:"blackAlpha.600",zIndex:"modal"},vf=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"}},kf=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,[hn.variable]:"colors.white",[gn.variable]:"shadows.lg",_dark:{[hn.variable]:"colors.gray.700",[gn.variable]:"shadows.dark-lg"},bg:hn.reference,boxShadow:gn.reference}},wf={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Cf={position:"absolute",top:"2",insetEnd:"3"},Ef=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Rf={px:"6",py:"4"},$f=On(e=>({overlay:Sf,dialogContainer:Ee(vf,e),dialog:Ee(kf,e),header:wf,closeButton:Cf,body:Ee(Ef,e),footer:Rf}));function He(e){return On(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const _f={xs:He("xs"),sm:He("sm"),md:He("md"),lg:He("lg"),xl:He("xl"),"2xl":He("2xl"),"3xl":He("3xl"),"4xl":He("4xl"),"5xl":He("5xl"),"6xl":He("6xl"),full:He("full")},Pf=yf({baseStyle:$f,sizes:_f,defaultProps:{size:"md"}}),_s={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:Tf,definePartsStyle:Ps}=te(gc.keys),Jn=ge("number-input-stepper-width"),Ts=ge("number-input-input-padding"),If=st(Jn).add("0.5rem").toString(),xn=ge("number-input-bg"),yn=ge("number-input-color"),Sn=ge("number-input-border-color"),jf={[Jn.variable]:"sizes.6",[Ts.variable]:If},zf=e=>Ee(Z.baseStyle,e)?.field??{},Mf={width:Jn.reference},Af={borderStart:"1px solid",borderStartColor:Sn.reference,color:yn.reference,bg:xn.reference,[yn.variable]:"colors.chakra-body-text",[Sn.variable]:"colors.chakra-border-color",_dark:{[yn.variable]:"colors.whiteAlpha.800",[Sn.variable]:"colors.whiteAlpha.300"},_active:{[xn.variable]:"colors.gray.200",_dark:{[xn.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Nf=Ps(e=>({root:jf,field:Ee(zf,e)??{},stepperGroup:Mf,stepper:Af}));function xr(e){const t=Z.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=t.field?.fontSize??"md",o=_s.fontSizes[n];return Ps({field:{...t.field,paddingInlineEnd:Ts.reference,verticalAlign:"top"},stepper:{fontSize:st(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const Bf={xs:xr("xs"),sm:xr("sm"),md:xr("md"),lg:xr("lg")},Ff=Tf({baseStyle:Nf,sizes:Bf,variants:Z.variants,defaultProps:Z.defaultProps}),Df={...Z.baseStyle?.field,textAlign:"center"},Of={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"}},Lf={outline:e=>Ee(Z.variants?.outline,e)?.field??{},flushed:e=>Ee(Z.variants?.flushed,e)?.field??{},filled:e=>Ee(Z.variants?.filled,e)?.field??{},unstyled:Z.variants?.unstyled.field??{}},Wf={baseStyle:Df,sizes:Of,variants:Lf,defaultProps:Z.defaultProps},{defineMultiStyleConfig:Vf,definePartsStyle:Hf}=te(xc.keys),yr=ge("popper-bg"),qf=ge("popper-arrow-bg"),jo=ge("popper-arrow-shadow-color"),Gf={zIndex:"popover"},Uf={[yr.variable]:"colors.white",bg:yr.reference,[qf.variable]:yr.reference,[jo.variable]:"colors.gray.200",_dark:{[yr.variable]:"colors.gray.700",[jo.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Kf={px:3,py:2,borderBottomWidth:"1px"},Xf={px:3,py:2},Yf={px:3,py:2,borderTopWidth:"1px"},Zf={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Qf=Hf({popper:Gf,content:Uf,header:Kf,body:Xf,footer:Yf,closeButton:Zf}),Jf=Vf({baseStyle:Qf}),{defineMultiStyleConfig:ep,definePartsStyle:er}=te(yc.keys),tp=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,s=I($o(),$o("1rem","rgba(0,0,0,0.1)"))(e),a=I(`${t}.500`,`${t}.200`)(e),i=`linear-gradient(
11
- to right,
12
- transparent 0%,
13
- ${Ce(r,a)} 50%,
14
- transparent 100%
15
- )`;return{...!n&&o&&s,...n?{bgImage:i}:{bgColor:a}}},rp={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},np=e=>({bg:I("gray.100","whiteAlpha.300")(e)}),op=e=>({transitionProperty:"common",transitionDuration:"slow",...tp(e)}),sp=er(e=>({label:rp,filledTrack:op(e),track:np(e)})),ap={xs:er({track:{h:"1"}}),sm:er({track:{h:"2"}}),md:er({track:{h:"3"}}),lg:er({track:{h:"4"}})},ip=ep({sizes:ap,baseStyle:sp,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lp,definePartsStyle:Pr}=te(Sc.keys),cp=e=>{const t=Ee(Dr.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},dp=Pr(e=>({label:Dr.baseStyle?.(e).label,container:Dr.baseStyle?.(e).container,control:cp(e)})),up={md:Pr({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Pr({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Pr({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},fp=lp({baseStyle:dp,sizes:up,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:pp,definePartsStyle:mp}=te(vc.keys),Sr=j("select-bg"),bp={...Z.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Sr.reference,[Sr.variable]:"colors.white",_dark:{[Sr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Sr.reference}},hp={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},gp=mp({field:bp,icon:hp}),vr={paddingInlineEnd:"8"},xp={lg:{...Z.sizes?.lg,field:{...Z.sizes?.lg.field,...vr}},md:{...Z.sizes?.md,field:{...Z.sizes?.md.field,...vr}},sm:{...Z.sizes?.sm,field:{...Z.sizes?.sm.field,...vr}},xs:{...Z.sizes?.xs,field:{...Z.sizes?.xs.field,...vr},icon:{insetEnd:"1"}}},yp=pp({baseStyle:gp,sizes:xp,variants:Z.variants,defaultProps:Z.defaultProps}),vn=j("skeleton-start-color"),kn=j("skeleton-end-color"),Sp={[vn.variable]:"colors.gray.100",[kn.variable]:"colors.gray.400",_dark:{[vn.variable]:"colors.gray.800",[kn.variable]:"colors.gray.600"},background:vn.reference,borderColor:kn.reference,opacity:.7,borderRadius:"sm"},vp={baseStyle:Sp},wn=j("skip-link-bg"),kp={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[wn.variable]:"colors.white",_dark:{[wn.variable]:"colors.gray.700"},bg:wn.reference}},wp={baseStyle:kp},{defineMultiStyleConfig:Cp,definePartsStyle:Ur}=te(kc.keys),Et=j("slider-thumb-size"),pr=j("slider-track-size"),mt=j("slider-bg"),Ep=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Yn({orientation:t,vertical:{h:"100%",px:ot(Et.reference).divide(2).toString()},horizontal:{w:"100%",py:ot(Et.reference).divide(2).toString()}})}},Rp=e=>({...Yn({orientation:e.orientation,horizontal:{h:pr.reference},vertical:{w:pr.reference}}),overflow:"hidden",borderRadius:"sm",[mt.variable]:"colors.gray.200",_dark:{[mt.variable]:"colors.whiteAlpha.200"},_disabled:{[mt.variable]:"colors.gray.300",_dark:{[mt.variable]:"colors.whiteAlpha.300"}},bg:mt.reference}),$p=e=>{const{orientation:t}=e;return{...Yn({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Et.reference,h:Et.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},_p=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[mt.variable]:`colors.${t}.500`,_dark:{[mt.variable]:`colors.${t}.200`},bg:mt.reference}},Pp=Ur(e=>({container:Ep(e),track:Rp(e),thumb:$p(e),filledTrack:_p(e)})),Tp=Ur({container:{[Et.variable]:"sizes.4",[pr.variable]:"sizes.1"}}),Ip=Ur({container:{[Et.variable]:"sizes.3.5",[pr.variable]:"sizes.1"}}),jp=Ur({container:{[Et.variable]:"sizes.2.5",[pr.variable]:"sizes.0.5"}}),zp={lg:Tp,md:Ip,sm:jp},Mp=Cp({baseStyle:Pp,sizes:zp,defaultProps:{size:"md",colorScheme:"blue"}}),yt=ge("spinner-size"),Ap={width:[yt.reference],height:[yt.reference]},Np={xs:{[yt.variable]:"sizes.3"},sm:{[yt.variable]:"sizes.4"},md:{[yt.variable]:"sizes.6"},lg:{[yt.variable]:"sizes.8"},xl:{[yt.variable]:"sizes.12"}},Bp={baseStyle:Ap,sizes:Np,defaultProps:{size:"md"}},{defineMultiStyleConfig:Fp,definePartsStyle:Is}=te(wc.keys),Dp={fontWeight:"medium"},Op={opacity:.8,marginBottom:"2"},Lp={verticalAlign:"baseline",fontWeight:"semibold"},Wp={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Vp=Is({container:{},label:Dp,helpText:Op,number:Lp,icon:Wp}),Hp={md:Is({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},qp=Fp({baseStyle:Vp,sizes:Hp,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Gp,definePartsStyle:tr}=te(["stepper","step","title","description","indicator","separator","icon","number"]),at=j("stepper-indicator-size"),Mt=j("stepper-icon-size"),At=j("stepper-title-font-size"),rr=j("stepper-description-font-size"),Zt=j("stepper-accent-color"),Up=tr(({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"},[Zt.variable]:`colors.${e}.500`,_dark:{[Zt.variable]:`colors.${e}.200`}},title:{fontSize:At.reference,fontWeight:"medium"},description:{fontSize:rr.reference,color:"chakra-subtle-text"},number:{fontSize:At.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:Mt.reference,height:Mt.reference},indicator:{flexShrink:0,borderRadius:"full",width:at.reference,height:at.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Zt.reference},"&[data-status=complete]":{bg:Zt.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Zt.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${at.reference} - 8px)`,top:`calc(${at.reference} + 4px)`,insetStart:`calc(${at.reference} / 2 - 1px)`}}})),Kp=Gp({baseStyle:Up,sizes:{xs:tr({stepper:{[at.variable]:"sizes.4",[Mt.variable]:"sizes.3",[At.variable]:"fontSizes.xs",[rr.variable]:"fontSizes.xs"}}),sm:tr({stepper:{[at.variable]:"sizes.6",[Mt.variable]:"sizes.4",[At.variable]:"fontSizes.sm",[rr.variable]:"fontSizes.xs"}}),md:tr({stepper:{[at.variable]:"sizes.8",[Mt.variable]:"sizes.5",[At.variable]:"fontSizes.md",[rr.variable]:"fontSizes.sm"}}),lg:tr({stepper:{[at.variable]:"sizes.10",[Mt.variable]:"sizes.6",[At.variable]:"fontSizes.lg",[rr.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Xp,definePartsStyle:Tr}=te(Cc.keys),ur=ge("switch-track-width"),vt=ge("switch-track-height"),Cn=ge("switch-track-diff"),Yp=st.subtract(ur,vt),Ln=ge("switch-thumb-x"),Qt=ge("switch-bg"),Zp=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ur.reference],height:[vt.reference],transitionProperty:"common",transitionDuration:"fast",[Qt.variable]:"colors.gray.300",_dark:{[Qt.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Qt.variable]:`colors.${t}.500`,_dark:{[Qt.variable]:`colors.${t}.200`}},bg:Qt.reference}},Qp={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[vt.reference],height:[vt.reference],_checked:{transform:`translateX(${Ln.reference})`}},Jp=Tr(e=>({container:{[Cn.variable]:Yp,[Ln.variable]:Cn.reference,_rtl:{[Ln.variable]:st(Cn).negate().toString()}},track:Zp(e),thumb:Qp})),em={sm:Tr({container:{[ur.variable]:"1.375rem",[vt.variable]:"sizes.3"}}),md:Tr({container:{[ur.variable]:"1.875rem",[vt.variable]:"sizes.4"}}),lg:Tr({container:{[ur.variable]:"2.875rem",[vt.variable]:"sizes.6"}})},tm=Xp({baseStyle:Jp,sizes:em,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rm,definePartsStyle:Dt}=te(Ec.keys),nm=Dt({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"}}),Or={"&[data-is-numeric=true]":{textAlign:"end"}},om=Dt(e=>{const{colorScheme:t}=e;return{th:{color:I("gray.600","gray.400")(e),borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Or},td:{borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Or},caption:{color:I("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),sm=Dt(e=>{const{colorScheme:t}=e;return{th:{color:I("gray.600","gray.400")(e),borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Or},td:{borderBottom:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e),...Or},caption:{color:I("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:I(`${t}.100`,`${t}.700`)(e)},td:{background:I(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),am={simple:om,striped:sm,unstyled:{}},im={sm:Dt({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:Dt({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Dt({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},lm=rm({baseStyle:nm,variants:am,sizes:im,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),_e=j("tabs-color"),qe=j("tabs-bg"),kr=j("tabs-border-color"),{defineMultiStyleConfig:cm,definePartsStyle:et}=te(Rc.keys),dm=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},um=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}}},fm=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},pm={p:4},mm=et(e=>({root:dm(e),tab:um(e),tablist:fm(e),tabpanel:pm})),bm={sm:et({tab:{py:1,px:4,fontSize:"sm"}}),md:et({tab:{fontSize:"md",py:2,px:4}}),lg:et({tab:{fontSize:"lg",py:3,px:4}})},hm=et(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",s=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{[_e.variable]:`colors.${t}.600`,_dark:{[_e.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[qe.variable]:"colors.gray.200",_dark:{[qe.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:_e.reference,bg:qe.reference}}}),gm=et(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[kr.variable]:"transparent",_selected:{[_e.variable]:`colors.${t}.600`,[kr.variable]:"colors.white",_dark:{[_e.variable]:`colors.${t}.300`,[kr.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:kr.reference},color:_e.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),xm=et(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",[_e.variable]:`colors.${t}.600`,_dark:{[qe.variable]:"colors.gray.800",[_e.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:_e.reference,bg:qe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ym=et(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ce(r,`${t}.700`),bg:Ce(r,`${t}.100`)}}}}),Sm=et(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[_e.variable]:"colors.gray.600",_dark:{[_e.variable]:"inherit"},_selected:{[_e.variable]:"colors.white",[qe.variable]:`colors.${t}.600`,_dark:{[_e.variable]:"colors.gray.800",[qe.variable]:`colors.${t}.300`}},color:_e.reference,bg:qe.reference}}}),vm=et({}),km={line:hm,enclosed:gm,"enclosed-colored":xm,"soft-rounded":ym,"solid-rounded":Sm,unstyled:vm},wm=cm({baseStyle:mm,sizes:bm,variants:km,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Cm,definePartsStyle:kt}=te($c.keys),zo=j("tag-bg"),Mo=j("tag-color"),En=j("tag-shadow"),Ir=j("tag-min-height"),jr=j("tag-min-width"),zr=j("tag-font-size"),Mr=j("tag-padding-inline"),Em={fontWeight:"medium",lineHeight:1.2,outline:0,[Mo.variable]:ue.color.reference,[zo.variable]:ue.bg.reference,[En.variable]:ue.shadow.reference,color:Mo.reference,bg:zo.reference,boxShadow:En.reference,borderRadius:"md",minH:Ir.reference,minW:jr.reference,fontSize:zr.reference,px:Mr.reference,_focusVisible:{[En.variable]:"shadows.outline"}},Rm={lineHeight:1.2,overflow:"visible"},$m={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}},_m=kt({container:Em,label:Rm,closeButton:$m}),Pm={sm:kt({container:{[Ir.variable]:"sizes.5",[jr.variable]:"sizes.5",[zr.variable]:"fontSizes.xs",[Mr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:kt({container:{[Ir.variable]:"sizes.6",[jr.variable]:"sizes.6",[zr.variable]:"fontSizes.sm",[Mr.variable]:"space.2"}}),lg:kt({container:{[Ir.variable]:"sizes.8",[jr.variable]:"sizes.8",[zr.variable]:"fontSizes.md",[Mr.variable]:"space.3"}})},Tm={subtle:kt(e=>({container:lr.variants?.subtle(e)})),solid:kt(e=>({container:lr.variants?.solid(e)})),outline:kt(e=>({container:lr.variants?.outline(e)}))},Im=Cm({variants:Tm,baseStyle:_m,sizes:Pm,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),jm={...Z.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},zm={outline:e=>Z.variants?.outline(e).field??{},flushed:e=>Z.variants?.flushed(e).field??{},filled:e=>Z.variants?.filled(e).field??{},unstyled:Z.variants?.unstyled.field??{}},Mm={xs:Z.sizes?.xs.field??{},sm:Z.sizes?.sm.field??{},md:Z.sizes?.md.field??{},lg:Z.sizes?.lg.field??{}},Am={baseStyle:jm,sizes:Mm,variants:zm,defaultProps:{size:"md",variant:"outline"}},wr=ge("tooltip-bg"),Rn=ge("tooltip-fg"),Nm=ge("popper-arrow-bg"),Bm={bg:wr.reference,color:Rn.reference,[wr.variable]:"colors.gray.700",[Rn.variable]:"colors.whiteAlpha.900",_dark:{[wr.variable]:"colors.gray.300",[Rn.variable]:"colors.gray.900"},[Nm.variable]:wr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Fm={baseStyle:Bm},Dm={Accordion:Nc,Alert:ad,Avatar:gd,Badge:lr,Breadcrumb:$d,Button:Nd,Checkbox:Dr,CloseButton:Zd,Code:tu,Container:nu,Divider:lu,Drawer:yu,Editable:Ru,Form:ju,FormError:Fu,FormLabel:Ou,Heading:Vu,Input:Z,Kbd:Ju,Link:tf,List:af,Menu:xf,Modal:Pf,NumberInput:Ff,PinInput:Wf,Popover:Jf,Progress:ip,Radio:fp,Select:yp,Skeleton:vp,SkipLink:wp,Slider:Mp,Spinner:Bp,Stat:qp,Switch:tm,Table:lm,Tabs:wm,Tag:Im,Textarea:Am,Tooltip:Fm,Card:Ld,Stepper:Kp},Om={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Lm={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Wm={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"}},Vm={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Hm={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"},qm={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"},Gm={"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)"},Um={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Km={property:qm,easing:Gm,duration:Um},Xm={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},Ym={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Zm={breakpoints:Lm,zIndices:Xm,radii:Vm,blur:Ym,colors:Wm,..._s,sizes:ks,shadows:Hm,space:vs,borders:Om,transition:Km},Qm={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"}}},Jm={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"}}},eb="ltr",tb={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},rb={semanticTokens:Qm,direction:eb,...Zm,components:Dm,styles:Jm,config:tb},eo=l.createContext({});eo.displayName="ColorModeContext";function Kr(){const e=l.useContext(eo);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function nb(e,t){const{colorMode:r}=Kr();return r==="dark"?t:e}const Cr={light:"chakra-ui-light",dark:"chakra-ui-dark"};function ob(e={}){const{preventTransition:t=!0,nonce:r}=e,n={setDataset:o=>{const s=t?n.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,s?.()},setClassName(o){document.body.classList.add(o?Cr.dark:Cr.light),document.body.classList.remove(o?Cr.light:Cr.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return n.query().matches??o==="dark"?"dark":"light"},addListener(o){const s=n.query(),a=i=>{o(i.matches?"dark":"light")};return typeof s.addListener=="function"?s.addListener(a):s.addEventListener("change",a),()=>{typeof s.removeListener=="function"?s.removeListener(a):s.removeEventListener("change",a)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r!==void 0&&(o.nonce=r),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return n}const sb="chakra-ui-color-mode";function ab(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const ib=ab(sb),Ao=()=>{},lb=Va()?l.useLayoutEffect:l.useEffect;function No(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const js=function(t){const{value:r,children:n,options:{useSystemColorMode:o,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:i=ib}=t,c=d.__unsafe_useEmotionCache(),u=s==="dark"?"dark":"light",[f,m]=l.useState(()=>No(i,u)),[b,h]=l.useState(()=>No(i)),{getSystemTheme:g,setClassName:y,setDataset:x,addListener:$}=l.useMemo(()=>ob({preventTransition:a,nonce:c?.nonce}),[a,c?.nonce]),C=s==="system"&&!f?b:f,w=l.useCallback(N=>{const R=N==="system"?g():N;m(R),y(R==="dark"),x(R),i.set(R)},[i,g,y,x]);lb(()=>{s==="system"&&h(g())},[]),l.useEffect(()=>{const N=i.get();if(N){w(N);return}if(s==="system"){w("system");return}w(u)},[i,u,s,w]);const A=l.useCallback(()=>{w(C==="dark"?"light":"dark")},[C,w]);l.useEffect(()=>{if(o)return $(w)},[o,$,w]);const U=l.useMemo(()=>({colorMode:r??C,toggleColorMode:r?Ao:A,setColorMode:r?Ao:w,forced:r!==void 0}),[C,A,w,r]);return d.jsxRuntimeExports.jsx(eo.Provider,{value:U,children:n})};js.displayName="ColorModeProvider";const zs=String.raw,Ms=zs`
16
- :root,
17
- :host {
18
- --chakra-vh: 100vh;
19
- }
20
-
21
- @supports (height: -webkit-fill-available) {
22
- :root,
23
- :host {
24
- --chakra-vh: -webkit-fill-available;
25
- }
26
- }
27
-
28
- @supports (height: -moz-fill-available) {
29
- :root,
30
- :host {
31
- --chakra-vh: -moz-fill-available;
32
- }
33
- }
34
-
35
- @supports (height: 100dvh) {
36
- :root,
37
- :host {
38
- --chakra-vh: 100dvh;
39
- }
40
- }
41
- `,cb=()=>d.jsxRuntimeExports.jsx(d.Global,{styles:Ms}),db=({scope:e=""})=>d.jsxRuntimeExports.jsx(d.Global,{styles:zs`
42
- html {
43
- line-height: 1.5;
44
- -webkit-text-size-adjust: 100%;
45
- font-family: system-ui, sans-serif;
46
- -webkit-font-smoothing: antialiased;
47
- text-rendering: optimizeLegibility;
48
- -moz-osx-font-smoothing: grayscale;
49
- touch-action: manipulation;
50
- }
51
-
52
- body {
53
- position: relative;
54
- min-height: 100%;
55
- margin: 0;
56
- font-feature-settings: "kern";
57
- }
58
-
59
- ${e} :where(*, *::before, *::after) {
60
- border-width: 0;
61
- border-style: solid;
62
- box-sizing: border-box;
63
- word-wrap: break-word;
64
- }
65
-
66
- main {
67
- display: block;
68
- }
69
-
70
- ${e} hr {
71
- border-top-width: 1px;
72
- box-sizing: content-box;
73
- height: 0;
74
- overflow: visible;
75
- }
76
-
77
- ${e} :where(pre, code, kbd,samp) {
78
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
79
- font-size: 1em;
80
- }
81
-
82
- ${e} a {
83
- background-color: transparent;
84
- color: inherit;
85
- text-decoration: inherit;
86
- }
87
-
88
- ${e} abbr[title] {
89
- border-bottom: none;
90
- text-decoration: underline;
91
- -webkit-text-decoration: underline dotted;
92
- text-decoration: underline dotted;
93
- }
94
-
95
- ${e} :where(b, strong) {
96
- font-weight: bold;
97
- }
98
-
99
- ${e} small {
100
- font-size: 80%;
101
- }
102
-
103
- ${e} :where(sub,sup) {
104
- font-size: 75%;
105
- line-height: 0;
106
- position: relative;
107
- vertical-align: baseline;
108
- }
109
-
110
- ${e} sub {
111
- bottom: -0.25em;
112
- }
113
-
114
- ${e} sup {
115
- top: -0.5em;
116
- }
117
-
118
- ${e} img {
119
- border-style: none;
120
- }
121
-
122
- ${e} :where(button, input, optgroup, select, textarea) {
123
- font-family: inherit;
124
- font-size: 100%;
125
- line-height: 1.15;
126
- margin: 0;
127
- }
128
-
129
- ${e} :where(button, input) {
130
- overflow: visible;
131
- }
132
-
133
- ${e} :where(button, select) {
134
- text-transform: none;
135
- }
136
-
137
- ${e} :where(
138
- button::-moz-focus-inner,
139
- [type="button"]::-moz-focus-inner,
140
- [type="reset"]::-moz-focus-inner,
141
- [type="submit"]::-moz-focus-inner
142
- ) {
143
- border-style: none;
144
- padding: 0;
145
- }
146
-
147
- ${e} fieldset {
148
- padding: 0.35em 0.75em 0.625em;
149
- }
150
-
151
- ${e} legend {
152
- box-sizing: border-box;
153
- color: inherit;
154
- display: table;
155
- max-width: 100%;
156
- padding: 0;
157
- white-space: normal;
158
- }
159
-
160
- ${e} progress {
161
- vertical-align: baseline;
162
- }
163
-
164
- ${e} textarea {
165
- overflow: auto;
166
- }
167
-
168
- ${e} :where([type="checkbox"], [type="radio"]) {
169
- box-sizing: border-box;
170
- padding: 0;
171
- }
172
-
173
- ${e} input[type="number"]::-webkit-inner-spin-button,
174
- ${e} input[type="number"]::-webkit-outer-spin-button {
175
- -webkit-appearance: none !important;
176
- }
177
-
178
- ${e} input[type="number"] {
179
- -moz-appearance: textfield;
180
- }
181
-
182
- ${e} input[type="search"] {
183
- -webkit-appearance: textfield;
184
- outline-offset: -2px;
185
- }
186
-
187
- ${e} input[type="search"]::-webkit-search-decoration {
188
- -webkit-appearance: none !important;
189
- }
190
-
191
- ${e} ::-webkit-file-upload-button {
192
- -webkit-appearance: button;
193
- font: inherit;
194
- }
195
-
196
- ${e} details {
197
- display: block;
198
- }
199
-
200
- ${e} summary {
201
- display: list-item;
202
- }
203
-
204
- template {
205
- display: none;
206
- }
207
-
208
- [hidden] {
209
- display: none !important;
210
- }
211
-
212
- ${e} :where(
213
- blockquote,
214
- dl,
215
- dd,
216
- h1,
217
- h2,
218
- h3,
219
- h4,
220
- h5,
221
- h6,
222
- hr,
223
- figure,
224
- p,
225
- pre
226
- ) {
227
- margin: 0;
228
- }
229
-
230
- ${e} button {
231
- background: transparent;
232
- padding: 0;
233
- }
234
-
235
- ${e} fieldset {
236
- margin: 0;
237
- padding: 0;
238
- }
239
-
240
- ${e} :where(ol, ul) {
241
- margin: 0;
242
- padding: 0;
243
- }
244
-
245
- ${e} textarea {
246
- resize: vertical;
247
- }
248
-
249
- ${e} :where(button, [role="button"]) {
250
- cursor: pointer;
251
- }
252
-
253
- ${e} button::-moz-focus-inner {
254
- border: 0 !important;
255
- }
256
-
257
- ${e} table {
258
- border-collapse: collapse;
259
- }
260
-
261
- ${e} :where(h1, h2, h3, h4, h5, h6) {
262
- font-size: inherit;
263
- font-weight: inherit;
264
- }
265
-
266
- ${e} :where(button, input, optgroup, select, textarea) {
267
- padding: 0;
268
- line-height: inherit;
269
- color: inherit;
270
- }
271
-
272
- ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
273
- display: block;
274
- }
275
-
276
- ${e} :where(img, video) {
277
- max-width: 100%;
278
- height: auto;
279
- }
280
-
281
- [data-js-focus-visible]
282
- :focus:not([data-focus-visible-added]):not(
283
- [data-focus-visible-disabled]
284
- ) {
285
- outline: none;
286
- box-shadow: none;
287
- }
288
-
289
- ${e} select::-ms-expand {
290
- display: none;
291
- }
292
-
293
- ${Ms}
294
- `});function ub(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=l.useMemo(()=>nc(r),[r]);return d.jsxRuntimeExports.jsxs(d.ThemeProvider,{theme:o,children:[d.jsxRuntimeExports.jsx(fb,{root:t}),n]})}function fb({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return d.jsxRuntimeExports.jsx(d.Global,{styles:r=>({[t]:r.__cssVars})})}ie({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function pb(){const{colorMode:e}=Kr();return d.jsxRuntimeExports.jsx(d.Global,{styles:t=>{const r=is(t,"styles.global"),n=Ie(r,{theme:t,colorMode:e});return n?gs(n)(t):void 0}})}const[mb,bb]=ie({strict:!1,name:"PortalManagerContext"});function As(e){const{children:t,zIndex:r}=e;return d.jsxRuntimeExports.jsx(mb,{value:{zIndex:r},children:t})}As.displayName="PortalManager";const to=l.createContext({getDocument(){return document},getWindow(){return window}});to.displayName="EnvironmentContext";function hb({defer:e}={}){const[,t]=l.useReducer(r=>r+1,0);return bt(()=>{e&&t()},[e]),l.useContext(to)}function Ns(e){const{children:t,environment:r,disabled:n}=e,o=l.useRef(null),s=l.useMemo(()=>r||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[r]),a=!n||!r;return d.jsxRuntimeExports.jsxs(to.Provider,{value:s,children:[t,a&&d.jsxRuntimeExports.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Ns.displayName="EnvironmentProvider";const gb=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:s=!0,theme:a={},environment:i,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:f}=e,m=d.jsxRuntimeExports.jsx(Ns,{environment:i,disabled:u,children:t});return d.jsxRuntimeExports.jsx(ub,{theme:a,cssVarsRoot:c,children:d.jsxRuntimeExports.jsxs(js,{colorModeManager:r,options:a.config,children:[s?d.jsxRuntimeExports.jsx(db,{scope:o}):d.jsxRuntimeExports.jsx(cb,{}),!f&&d.jsxRuntimeExports.jsx(pb,{}),n?d.jsxRuntimeExports.jsx(As,{zIndex:n,children:m}):m]})})},xb=(e,t)=>e.find(r=>r.id===t);function Bo(e,t){const r=Bs(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Bs(e,t){for(const[r,n]of Object.entries(e))if(xb(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,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=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:s,left:a}}const vb=new Set([...Pl,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),kb=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function wb(e){return(kb.has(e)||!vb.has(e))&&e[0]!=="_"}const Cb=gi(d.styled),Eb=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:s,...a}=t,[i]=$i(a,Il),c=Ie(e,t),u=ti({},o,c,Wr(i),s),f=gs(u)(t.theme);return n?[f,n]:f};function $n(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=wb);const o=Eb({baseStyle:r}),s=Cb(e,n)(o);return l.forwardRef(function(c,u){const{children:f,...m}=c,{colorMode:b,forced:h}=Kr(),g=h?b:void 0;return l.createElement(s,{ref:u,"data-theme":g,...m},f)})}function Rb(){const e=new Map;return new Proxy($n,{apply(t,r,n){return $n(...n)},get(t,r){return e.has(r)||e.set(r,$n(r)),e.get(r)}})}const k=Rb(),$b={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]}}},Fs=l.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:s=!1,position:a="bottom",duration:i=5e3,containerStyle:c,motionVariants:u=$b,toastSpacing:f="0.5rem"}=e,[m,b]=l.useState(i),h=Re.useIsPresent();ht(()=>{h||n?.()},[h]),ht(()=>{b(i)},[i]);const g=()=>b(null),y=()=>b(i),x=()=>{h&&o()};l.useEffect(()=>{h&&s&&o()},[h,s,o]),Oi(x,m);const $=l.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:f,...c}),[c,f]),C=l.useMemo(()=>yb(a),[a]);return d.jsxRuntimeExports.jsx(Re.motion.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:a},style:C,children:d.jsxRuntimeExports.jsx(k.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:$,children:Ie(r,{id:t,onClose:x})})})});Fs.displayName="ToastComponent";function P(e){return l.forwardRef(e)}function $t(){const e=l.useContext(d.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Ds(){const e=Kr(),t=$t();return{...e,theme:t}}function _b(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>r!==void 0&&t!=="children"&&!l.isValidElement(r)))}function Os(e,t={}){const{styleConfig:r,...n}=t,{theme:o,colorMode:s}=Ds(),a=e?is(o,`components.${e}`):void 0,i=r||a,c=Je.mergeWith({theme:o,colorMode:s},i?.defaultProps??{},_b(n),(f,m)=>f?void 0:m),u=l.useRef({});if(i){const m=Wl(i)(c);d.isEqual(u.current,m)||(u.current=m)}return u.current}function tt(e,t={}){return Os(e,t)}function ze(e,t={}){return Os(e,t)}const Fo={path:d.jsxRuntimeExports.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[d.jsxRuntimeExports.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),d.jsxRuntimeExports.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),d.jsxRuntimeExports.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ge=P((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:s=!1,children:a,className:i,__css:c,...u}=e,f=L("chakra-icon",i),m=tt("Icon",e),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c,...m},h={ref:t,focusable:s,className:f,__css:b},g=n??Fo.viewBox;if(r&&typeof r!="string")return d.jsxRuntimeExports.jsx(k.svg,{as:r,...h,...u});const y=a??Fo.path;return d.jsxRuntimeExports.jsx(k.svg,{verticalAlign:"middle",viewBox:g,...h,...u,children:y})});Ge.displayName="Icon";function Pb(e){return d.jsxRuntimeExports.jsx(Ge,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Tb(e){return d.jsxRuntimeExports.jsx(Ge,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Do(e){return d.jsxRuntimeExports.jsx(Ge,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const Ib=d.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Xr=P((e,t)=>{const r=tt("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:s="0.45s",emptyColor:a="transparent",className:i,...c}=he(e),u=L("chakra-spinner",i),f={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${Ib} ${s} linear infinite`,...r};return d.jsxRuntimeExports.jsx(k.div,{ref:t,__css:f,className:u,...c,children:n&&d.jsxRuntimeExports.jsx(k.span,{srOnly:!0,children:n})})});Xr.displayName="Spinner";const[jb,ro]=ie({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[zb,no]=ie({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Ls={info:{icon:Tb,colorScheme:"blue"},warning:{icon:Do,colorScheme:"orange"},success:{icon:Pb,colorScheme:"green"},error:{icon:Do,colorScheme:"red"},loading:{icon:Xr,colorScheme:"blue"}};function Mb(e){return Ls[e].colorScheme}function Ab(e){return Ls[e].icon}const oo=P(function(t,r){const{status:n="info",addRole:o=!0,...s}=he(t),a=t.colorScheme??Mb(n),i=ze("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...i.container};return d.jsxRuntimeExports.jsx(jb,{value:{status:n},children:d.jsxRuntimeExports.jsx(zb,{value:i,children:d.jsxRuntimeExports.jsx(k.div,{"data-status":n,role:o?"alert":void 0,ref:r,...s,className:L("chakra-alert",t.className),__css:c})})})});oo.displayName="Alert";function so(e){const{status:t}=ro(),r=Ab(t),n=no(),o=t==="loading"?n.spinner:n.icon;return d.jsxRuntimeExports.jsx(k.span,{display:"inherit","data-status":t,...e,className:L("chakra-alert__icon",e.className),__css:o,children:e.children||d.jsxRuntimeExports.jsx(r,{h:"100%",w:"100%"})})}so.displayName="AlertIcon";const Ws=P(function(t,r){const n=no(),{status:o}=ro();return d.jsxRuntimeExports.jsx(k.div,{ref:r,"data-status":o,...t,className:L("chakra-alert__title",t.className),__css:n.title})});Ws.displayName="AlertTitle";const Vs=P(function(t,r){const{status:n}=ro(),o=no(),s={display:"inline",...o.description};return d.jsxRuntimeExports.jsx(k.div,{ref:r,"data-status":n,...t,className:L("chakra-alert__desc",t.className),__css:s})});Vs.displayName="AlertDescription";function Nb(e){return d.jsxRuntimeExports.jsx(Ge,{focusable:"false","aria-hidden":!0,...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const ao=P(function(t,r){const n=tt("CloseButton",t),{children:o,isDisabled:s,__css:a,...i}=he(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return d.jsxRuntimeExports.jsx(k.button,{type:"button","aria-label":"Close",ref:r,disabled:s,__css:{...c,...n,...a},...i,children:o||d.jsxRuntimeExports.jsx(Nb,{width:"1em",height:"1em"})})});ao.displayName="CloseButton";const Bb=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:s,onClose:a,description:i,colorScheme:c,icon:u}=e,f=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return d.jsxRuntimeExports.jsxs(oo,{addRole:!1,status:t,variant:r,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[d.jsxRuntimeExports.jsx(so,{children:u}),d.jsxRuntimeExports.jsxs(k.div,{flex:"1",maxWidth:"100%",children:[o&&d.jsxRuntimeExports.jsx(Ws,{id:f?.title,children:o}),i&&d.jsxRuntimeExports.jsx(Vs,{id:f?.description,display:"block",children:i})]}),s&&d.jsxRuntimeExports.jsx(ao,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Hs(e={}){const{render:t,toastComponent:r=Bb}=e;return o=>typeof t=="function"?t({...o,...e}):d.jsxRuntimeExports.jsx(r,{...o,...e})}const Fb={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Qe=Db(Fb);function Db(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(s=>s())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,s)=>{n(a=>({...a,[s]:a[s].filter(i=>i.id!=o)}))},notify:(o,s)=>{const a=Ob(o,s),{position:i,id:c}=a;return n(u=>{const m=i.includes("top")?[a,...u[i]??[]]:[...u[i]??[],a];return{...u,[i]:m}}),c},update:(o,s)=>{o&&n(a=>{const i={...a},{position:c,index:u}=Bo(i,o);return c&&u!==-1&&(i[c][u]={...i[c][u],...s,message:Hs(s)}),i})},closeAll:({positions:o}={})=>{n(s=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=s[u].map(f=>({...f,requestClose:!0})),c),{...s}))},close:o=>{n(s=>{const a=Bs(s,o);return a?{...s,[a]:s[a].map(i=>i.id==o?{...i,requestClose:!0}:i)}:s})},isActive:o=>!!Bo(Qe.getState(),o).position}}let Oo=0;function Ob(e,t={}){Oo+=1;const r=t.id??Oo,n=t.position??"bottom";return{id:r,message:e,position:n,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Qe.removeToast(String(r),n),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[qs,Lb]=ie({strict:!1,name:"PortalContext"}),io="chakra-portal",Wb=".chakra-portal",Vb=e=>d.jsxRuntimeExports.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Hb=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=l.useState(null),s=l.useRef(null),[,a]=l.useState({});l.useEffect(()=>a({}),[]);const i=Lb(),c=bb();bt(()=>{if(!n)return;const f=n.ownerDocument,m=t?i??f.body:f.body;if(!m)return;s.current=f.createElement("div"),s.current.className=io,m.appendChild(s.current),a({});const b=s.current;return()=>{m.contains(b)&&m.removeChild(b)}},[n]);const u=c?.zIndex?d.jsxRuntimeExports.jsx(Vb,{zIndex:c?.zIndex,children:r}):r;return s.current?Qo.createPortal(d.jsxRuntimeExports.jsx(qs,{value:s.current,children:u}),s.current):d.jsxRuntimeExports.jsx("span",{ref:f=>{f&&o(f)}})},qb=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,s=o??(typeof window<"u"?document.body:void 0),a=l.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=io),c},[o]),[,i]=l.useState({});return bt(()=>i({}),[]),bt(()=>{if(!(!a||!s))return s.appendChild(a),()=>{s.removeChild(a)}},[a,s]),s&&a?Qo.createPortal(d.jsxRuntimeExports.jsx(qs,{value:n?a:null,children:t}),a):null};function Wt(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?d.jsxRuntimeExports.jsx(qb,{containerRef:r,...n}):d.jsxRuntimeExports.jsx(Hb,{...n})}Wt.className=io;Wt.selector=Wb;Wt.displayName="Portal";const[Gb,Ub]=ie({name:"ToastOptionsContext",strict:!1}),Kb=e=>{const t=l.useSyncExternalStore(Qe.subscribe,Qe.getState,Qe.getState),{motionVariants:r,component:n=Fs,portalProps:o,animatePresenceProps:s}=e,i=Object.keys(t).map(c=>{const u=t[c];return d.jsxRuntimeExports.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,id:`chakra-toast-manager-${c}`,style:Sb(c),children:d.jsxRuntimeExports.jsx(Re.AnimatePresence,{...s,initial:!1,children:u.map(f=>d.jsxRuntimeExports.jsx(n,{motionVariants:r,...f},f.id))})},c)});return d.jsxRuntimeExports.jsx(Wt,{...o,children:i})},Xb=e=>function({children:r,theme:n=e,toastOptions:o,...s}){return d.jsxRuntimeExports.jsxs(gb,{theme:n,...s,children:[d.jsxRuntimeExports.jsx(Gb,{value:o?.defaultOptions,children:r}),d.jsxRuntimeExports.jsx(Kb,{...o})]})},Yb=Xb(rb);function Lo(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})}const Zb=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Wo(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Vo(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}const _n=typeof window<"u"?l.useLayoutEffect:l.useEffect,Ho=e=>e;var Qb=Object.defineProperty,Jb=(e,t,r)=>t in e?Qb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t,r)=>(Jb(e,typeof t!="symbol"?t+"":t,r),r);class eh{constructor(){ae(this,"descendants",new Map),ae(this,"register",t=>{if(t!=null)return Zb(t)?this.registerNode(t):r=>{this.registerNode(r,t)}}),ae(this,"unregister",t=>{this.descendants.delete(t);const r=Lo(Array.from(this.descendants.keys()));this.assignIndex(r)}),ae(this,"destroy",()=>{this.descendants.clear()}),ae(this,"assignIndex",t=>{this.descendants.forEach(r=>{const n=t.indexOf(r.node);r.index=n,r.node.dataset.index=r.index.toString()})}),ae(this,"count",()=>this.descendants.size),ae(this,"enabledCount",()=>this.enabledValues().length),ae(this,"values",()=>Array.from(this.descendants.values()).sort((r,n)=>r.index-n.index)),ae(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),ae(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),ae(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),ae(this,"first",()=>this.item(0)),ae(this,"firstEnabled",()=>this.enabledItem(0)),ae(this,"last",()=>this.item(this.descendants.size-1)),ae(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),ae(this,"indexOf",t=>t?this.descendants.get(t)?.index??-1:-1),ae(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(r=>r.node.isSameNode(t))),ae(this,"next",(t,r=!0)=>{const n=Wo(t,this.count(),r);return this.item(n)}),ae(this,"nextEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),s=Wo(o,this.enabledCount(),r);return this.enabledItem(s)}),ae(this,"prev",(t,r=!0)=>{const n=Vo(t,this.count()-1,r);return this.item(n)}),ae(this,"prevEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),s=Vo(o,this.enabledCount()-1,r);return this.enabledItem(s)}),ae(this,"registerNode",(t,r)=>{if(!t||this.descendants.has(t))return;const n=Array.from(this.descendants.keys()).concat(t),o=Lo(n);r?.disabled&&(r.disabled=!!r.disabled);const s={node:t,index:-1,...r};this.descendants.set(t,s),this.assignIndex(o)})}}function th(){const[e,t]=ie({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=l.useRef(new eh);return _n(()=>()=>o.current.destroy()),o.current},o=>{const s=t(),[a,i]=l.useState(-1),c=l.useRef(null);_n(()=>()=>{c.current&&s.unregister(c.current)},[]),_n(()=>{if(!c.current)return;const f=Number(c.current.dataset.index);a!=f&&!Number.isNaN(f)&&i(f)});const u=Ho(o?s.register(o):s.register);return{descendants:s,index:a,enabledIndex:s.enabledIndexOf(c.current),register:ke(u,c)}}]}const qo={easeIn:[.4,0,1,1],easeOut:[0,0,.2,1]},wt={enter:{duration:.2,ease:qo.easeOut},exit:{duration:.1,ease:qo.easeIn}},Ct={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},Gs=k("div");Gs.displayName="Box";const[rh,nh]=ie({strict:!1,name:"ButtonGroupContext"});function nr(e){const{children:t,className:r,...n}=e,o=l.isValidElement(t)?l.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=L("chakra-button__icon",r);return d.jsxRuntimeExports.jsx(k.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:s,children:o})}nr.displayName="ButtonIcon";function Wn(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=d.jsxRuntimeExports.jsx(Xr,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:a,...i}=e,c=L("chakra-button__spinner",s),u=r==="start"?"marginEnd":"marginStart",f=l.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return d.jsxRuntimeExports.jsx(k.div,{className:c,...i,__css:f,children:o})}Wn.displayName="ButtonSpinner";function oh(e){const[t,r]=l.useState(!e);return{ref:l.useCallback(s=>{s&&r(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}const lo=P((e,t)=>{const r=nh(),n=tt("Button",{...r,...e}),{isDisabled:o=r?.isDisabled,isLoading:s,isActive:a,children:i,leftIcon:c,rightIcon:u,loadingText:f,iconSpacing:m="0.5rem",type:b,spinner:h,spinnerPlacement:g="start",className:y,as:x,shouldWrapChildren:$,...C}=he(e),w=l.useMemo(()=>{const R={...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:R}}},[n,r]),{ref:A,type:U}=oh(x),N={rightIcon:u,leftIcon:c,iconSpacing:m,children:i,shouldWrapChildren:$};return d.jsxRuntimeExports.jsxs(k.button,{disabled:o||s,ref:Fi(t,A),as:x,type:b??U,"data-active":V(a),"data-loading":V(s),__css:w,className:L("chakra-button",y),...C,children:[s&&g==="start"&&d.jsxRuntimeExports.jsx(Wn,{className:"chakra-button__spinner--start",label:f,placement:"start",spacing:m,children:h}),s?f||d.jsxRuntimeExports.jsx(k.span,{opacity:0,children:d.jsxRuntimeExports.jsx(Go,{...N})}):d.jsxRuntimeExports.jsx(Go,{...N}),s&&g==="end"&&d.jsxRuntimeExports.jsx(Wn,{className:"chakra-button__spinner--end",label:f,placement:"end",spacing:m,children:h})]})});lo.displayName="Button";function Go(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o,shouldWrapChildren:s}=e;return s?d.jsxRuntimeExports.jsxs("span",{style:{display:"contents"},children:[t&&d.jsxRuntimeExports.jsx(nr,{marginEnd:o,children:t}),n,r&&d.jsxRuntimeExports.jsx(nr,{marginStart:o,children:r})]}):d.jsxRuntimeExports.jsxs(d.jsxRuntimeExports.Fragment,{children:[t&&d.jsxRuntimeExports.jsx(nr,{marginEnd:o,children:t}),n,r&&d.jsxRuntimeExports.jsx(nr,{marginStart:o,children:r})]})}const sh={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}}},ah={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Us=P(function(t,r){const{size:n,colorScheme:o,variant:s,className:a,spacing:i="0.5rem",isAttached:c,isDisabled:u,orientation:f="horizontal",...m}=t,b=L("chakra-button__group",a),h=l.useMemo(()=>({size:n,colorScheme:o,variant:s,isDisabled:u}),[n,o,s,u]);let g={display:"inline-flex",...c?sh[f]:ah[f](i)};const y=f==="vertical";return d.jsxRuntimeExports.jsx(rh,{value:h,children:d.jsxRuntimeExports.jsx(k.div,{ref:r,role:"group",__css:g,className:b,"data-attached":c?"":void 0,"data-orientation":f,flexDir:y?"column":void 0,...m})})});Us.displayName="ButtonGroup";const Ks=P((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":s,...a}=e,i=r||n,c=l.isValidElement(i)?l.cloneElement(i,{"aria-hidden":!0,focusable:!1}):null;return d.jsxRuntimeExports.jsx(lo,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s,...a,children:c})});Ks.displayName="IconButton";const[d0,ih]=ie({name:"CheckboxGroupContext",strict:!1});function lh(e){return d.jsxRuntimeExports.jsx(k.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:d.jsxRuntimeExports.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function ch(e){return d.jsxRuntimeExports.jsx(k.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:d.jsxRuntimeExports.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function dh(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?ch:lh;return r||t?d.jsxRuntimeExports.jsx(k.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:d.jsxRuntimeExports.jsx(o,{...n})}):null}const[uh,Xs]=ie({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[fh,Yr]=ie({strict:!1,name:"FormControlContext"});function ph(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:s,...a}=e,i=l.useId(),c=t||`field-${i}`,u=`${c}-label`,f=`${c}-feedback`,m=`${c}-helptext`,[b,h]=l.useState(!1),[g,y]=l.useState(!1),[x,$]=l.useState(!1),C=l.useCallback((R={},B=null)=>({id:m,...R,ref:ke(B,z=>{z&&y(!0)})}),[m]),w=l.useCallback((R={},B=null)=>({...R,ref:B,"data-focus":V(x),"data-disabled":V(o),"data-invalid":V(n),"data-readonly":V(s),id:R.id!==void 0?R.id:u,htmlFor:R.htmlFor!==void 0?R.htmlFor:c}),[c,o,x,n,s,u]),A=l.useCallback((R={},B=null)=>({id:f,...R,ref:ke(B,z=>{z&&h(!0)}),"aria-live":"polite"}),[f]),U=l.useCallback((R={},B=null)=>({...R,...a,ref:B,role:"group","data-focus":V(x),"data-disabled":V(o),"data-invalid":V(n),"data-readonly":V(s)}),[a,o,x,n,s]),N=l.useCallback((R={},B=null)=>({...R,ref:B,role:"presentation","aria-hidden":!0,children:R.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!s,isDisabled:!!o,isFocused:!!x,onFocus:()=>$(!0),onBlur:()=>$(!1),hasFeedbackText:b,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:y,id:c,labelId:u,feedbackId:f,helpTextId:m,htmlProps:a,getHelpTextProps:C,getErrorMessageProps:A,getRootProps:U,getLabelProps:w,getRequiredIndicatorProps:N}}const Ys=P(function(t,r){const n=ze("Form",t),o=he(t),{getRootProps:s,htmlProps:a,...i}=ph(o),c=L("chakra-form-control",t.className);return d.jsxRuntimeExports.jsx(fh,{value:i,children:d.jsxRuntimeExports.jsx(uh,{value:n,children:d.jsxRuntimeExports.jsx(k.div,{...s({},r),className:c,__css:n.container})})})});Ys.displayName="FormControl";const mh=P(function(t,r){const n=Yr(),o=Xs(),s=L("chakra-form__helper-text",t.className);return d.jsxRuntimeExports.jsx(k.div,{...n?.getHelpTextProps(t,r),__css:o.helperText,className:s})});mh.displayName="FormHelperText";function Zr(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...s}=co(e);return{...s,disabled:t,readOnly:n,required:o,"aria-invalid":lt(r),"aria-required":lt(o),"aria-readonly":lt(n)}}function co(e){const t=Yr(),{id:r,disabled:n,readOnly:o,required:s,isRequired:a,isInvalid:i,isReadOnly:c,isDisabled:u,onFocus:f,onBlur:m,...b}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&h.push(t.feedbackId),t?.hasHelpText&&h.push(t.helpTextId),{...b,"aria-describedby":h.join(" ")||void 0,id:r??t?.id,isDisabled:n??u??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:s??a??t?.isRequired,isInvalid:i??t?.isInvalid,onFocus:q(t?.onFocus,f),onBlur:q(t?.onBlur,m)}}const bh={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function hh(e={}){const t=co(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:s,id:a,onBlur:i,onFocus:c,"aria-describedby":u}=t,{defaultChecked:f,isChecked:m,isFocusable:b,onChange:h,isIndeterminate:g,name:y,value:x,tabIndex:$=void 0,"aria-label":C,"aria-labelledby":w,"aria-invalid":A,...U}=e,N=Vr(U,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),R=de(h),B=de(i),z=de(c),[S,M]=l.useState(!1),[Se,fe]=l.useState(!1),[pe,xe]=l.useState(!1),le=l.useRef(!1);l.useEffect(()=>d.trackFocusVisible(_=>{le.current=_}),[]);const F=l.useRef(null),[T,ee]=l.useState(!0),[Te,K]=l.useState(!!f),$e=m!==void 0,D=$e?m:Te,H=l.useCallback(_=>{if(n||r){_.preventDefault();return}$e||K(D?_.currentTarget.checked:g?!0:_.currentTarget.checked),R?.(_)},[n,r,D,$e,g,R]);bt(()=>{F.current&&(F.current.indeterminate=!!g)},[g]),ht(()=>{r&&M(!1)},[r,M]),bt(()=>{const _=F.current;if(!_?.form)return;const ce=()=>{K(!!f)};return _.form.addEventListener("reset",ce),()=>_.form?.removeEventListener("reset",ce)},[]);const re=r&&!b,Me=l.useCallback(_=>{_.key===" "&&xe(!0)},[xe]),Ae=l.useCallback(_=>{_.key===" "&&xe(!1)},[xe]);bt(()=>{if(!F.current)return;F.current.checked!==D&&K(F.current.checked)},[F.current]);const Ue=l.useCallback((_={},ce=null)=>{const De=me=>{S&&me.preventDefault(),xe(!0)};return{..._,ref:ce,"data-active":V(pe),"data-hover":V(Se),"data-checked":V(D),"data-focus":V(S),"data-focus-visible":V(S&&le.current),"data-indeterminate":V(g),"data-disabled":V(r),"data-invalid":V(s),"data-readonly":V(n),"aria-hidden":!0,onMouseDown:q(_.onMouseDown,De),onMouseUp:q(_.onMouseUp,()=>xe(!1)),onMouseEnter:q(_.onMouseEnter,()=>fe(!0)),onMouseLeave:q(_.onMouseLeave,()=>fe(!1))}},[pe,D,r,S,Se,g,s,n]),Ne=l.useCallback((_={},ce=null)=>({..._,ref:ce,"data-active":V(pe),"data-hover":V(Se),"data-checked":V(D),"data-focus":V(S),"data-focus-visible":V(S&&le.current),"data-indeterminate":V(g),"data-disabled":V(r),"data-invalid":V(s),"data-readonly":V(n)}),[pe,D,r,S,Se,g,s,n]),Be=l.useCallback((_={},ce=null)=>({...N,..._,ref:ke(ce,De=>{De&&ee(De.tagName==="LABEL")}),onClick:q(_.onClick,()=>{T||(F.current?.click(),requestAnimationFrame(()=>{F.current?.focus({preventScroll:!0})}))}),"data-disabled":V(r),"data-checked":V(D),"data-invalid":V(s)}),[N,r,D,s,T]),Fe=l.useCallback((_={},ce=null)=>({..._,ref:ke(F,ce),type:"checkbox",name:y,value:x,id:a,tabIndex:$,onChange:q(_.onChange,H),onBlur:q(_.onBlur,B,()=>M(!1)),onFocus:q(_.onFocus,z,()=>M(!0)),onKeyDown:q(_.onKeyDown,Me),onKeyUp:q(_.onKeyUp,Ae),required:o,checked:D,disabled:re,readOnly:n,"aria-label":C,"aria-labelledby":w,"aria-invalid":A?!!A:s,"aria-describedby":u,"aria-disabled":r,"aria-checked":g?"mixed":D,style:bh}),[y,x,a,$,H,B,z,Me,Ae,o,D,re,n,C,w,A,s,u,r,g]),J=l.useCallback((_={},ce=null)=>({..._,ref:ce,onMouseDown:q(_.onMouseDown,gh),"data-disabled":V(r),"data-checked":V(D),"data-invalid":V(s)}),[D,r,s]);return{state:{isInvalid:s,isFocused:S,isChecked:D,isActive:pe,isHovered:Se,isIndeterminate:g,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Be,getCheckboxProps:Ue,getIndicatorProps:Ne,getInputProps:Fe,getLabelProps:J,htmlProps:N}}function gh(e){e.preventDefault(),e.stopPropagation()}function xh(e){const[t,r]=l.useState(e),[n,o]=l.useState(!1);return e!==t&&(o(!0),r(e)),n}const yh={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Sh={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},vh=d.keyframes({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),kh=d.keyframes({from:{opacity:0},to:{opacity:1}}),wh=d.keyframes({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Zs=P(function(t,r){const n=ih(),o={...n,...t},s=ze("Checkbox",o),a=he(t),{spacing:i="0.5rem",className:c,children:u,iconColor:f,iconSize:m,icon:b=d.jsxRuntimeExports.jsx(dh,{}),isChecked:h,isDisabled:g=n?.isDisabled,onChange:y,inputProps:x,...$}=a;let C=h;n?.value&&a.value&&(C=n.value.includes(a.value));let w=y;n?.onChange&&a.value&&(w=ii(n.onChange,y));const{state:A,getInputProps:U,getCheckboxProps:N,getLabelProps:R,getRootProps:B}=hh({...$,isDisabled:g,isChecked:C,onChange:w}),z=xh(A.isChecked),S=l.useMemo(()=>({animation:z?A.isIndeterminate?`${kh} 20ms linear, ${wh} 200ms linear`:`${vh} 200ms linear`:void 0,...s.icon,...Wr({fontSize:m,color:f})}),[f,m,z,A.isIndeterminate,s.icon]),M=l.cloneElement(b,{__css:S,isIndeterminate:A.isIndeterminate,isChecked:A.isChecked});return d.jsxRuntimeExports.jsxs(k.label,{__css:{...Sh,...s.container},className:L("chakra-checkbox",c),...B(),children:[d.jsxRuntimeExports.jsx("input",{className:"chakra-checkbox__input",...U(x,r)}),d.jsxRuntimeExports.jsx(k.span,{__css:{...yh,...s.control},className:"chakra-checkbox__control",...N(),children:M}),u&&d.jsxRuntimeExports.jsx(k.span,{className:"chakra-checkbox__label",...R(),__css:{marginStart:i,...s.label},children:u})]})});Zs.displayName="Checkbox";const Qs=P(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:s,borderRightWidth:a,borderWidth:i,borderStyle:c,borderColor:u,...f}=tt("Divider",t),{className:m,orientation:b="horizontal",__css:h,...g}=he(t),y={vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:o||s||i||"1px",width:"100%"}};return d.jsxRuntimeExports.jsx(k.hr,{ref:r,"aria-orientation":b,...g,__css:{...f,border:"0",borderColor:u,borderStyle:c,...y[b],...h},className:L("chakra-divider",m)})});Qs.displayName="Divider";const Js=P(function(t,r){const{direction:n,align:o,justify:s,wrap:a,basis:i,grow:c,shrink:u,...f}=t,m={display:"flex",flexDirection:n,alignItems:o,justifyContent:s,flexWrap:a,flexBasis:i,flexGrow:c,flexShrink:u};return d.jsxRuntimeExports.jsx(k.div,{ref:r,__css:m,...f})});Js.displayName="Flex";const Ch=d.FocusLockCombination.default??d.FocusLockCombination,ea=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:s,isDisabled:a,autoFocus:i,persistentFocus:c,lockFocusAcrossFrames:u}=e,f=l.useCallback(()=>{t?.current?t.current.focus():n?.current&&mi(n.current).length===0&&requestAnimationFrame(()=>{n.current?.focus()})},[t,n]),m=l.useCallback(()=>{r?.current?.focus()},[r]),b=o&&!r;return d.jsxRuntimeExports.jsx(Ch,{crossFrame:u,persistentFocus:c,autoFocus:i,disabled:a,onActivation:f,onDeactivation:m,returnFocus:b,children:s})};ea.displayName="FocusLock";const ta=P(function(t,r){const n=tt("FormLabel",t),o=he(t),{className:s,children:a,requiredIndicator:i=d.jsxRuntimeExports.jsx(ra,{}),optionalIndicator:c=null,...u}=o,f=Yr(),m=f?.getLabelProps(u,r)??{ref:r,...u};return d.jsxRuntimeExports.jsxs(k.label,{...m,className:L("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...n},children:[a,f?.isRequired?i:c]})});ta.displayName="FormLabel";const ra=P(function(t,r){const n=Yr(),o=Xs();if(!n?.isRequired)return null;const s=L("chakra-form__required-indicator",t.className);return d.jsxRuntimeExports.jsx(k.span,{...n?.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:s})});ra.displayName="RequiredIndicator";const uo=P(function(t,r){const{htmlSize:n,...o}=t,s=ze("Input",o),a=he(o),i=Zr(a),c=L("chakra-input",t.className);return d.jsxRuntimeExports.jsx(k.input,{size:n,...i,__css:s.field,ref:r,className:c})});uo.displayName="Input";uo.id="Input";const[Eh,Rh]=ie({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),na=P(function(t,r){const n=ze("Input",t),{children:o,className:s,...a}=he(t),i=L("chakra-input__group",s),c={},u=os(o),f=n.field;u.forEach(b=>{n&&(f&&b.type.id==="InputLeftElement"&&(c.paddingStart=f.height??f.h),f&&b.type.id==="InputRightElement"&&(c.paddingEnd=f.height??f.h),b.type.id==="InputRightAddon"&&(c.borderEndRadius=0),b.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const m=u.map(b=>{const h=Wr({size:b.props?.size||t.size,variant:b.props?.variant||t.variant});return b.type.id!=="Input"?l.cloneElement(b,h):l.cloneElement(b,Object.assign(h,c,b.props))});return d.jsxRuntimeExports.jsx(k.div,{className:i,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:d.jsxRuntimeExports.jsx(Eh,{value:n,children:m})})});na.displayName="InputGroup";const $h=k("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Qr=P(function(t,r){const{placement:n="left",...o}=t,s=Rh(),a=s.field,c={[n==="left"?"insetStart":"insetEnd"]:"0",width:a?.height??a?.h,height:a?.height??a?.h,fontSize:a?.fontSize,...s.element};return d.jsxRuntimeExports.jsx($h,{ref:r,__css:c,...o})});Qr.id="InputElement";Qr.displayName="InputElement";const fo=P(function(t,r){const{className:n,...o}=t,s=L("chakra-input__left-element",n);return d.jsxRuntimeExports.jsx(Qr,{ref:r,placement:"left",className:s,...o})});fo.id="InputLeftElement";fo.displayName="InputLeftElement";const oa=P(function(t,r){const{className:n,...o}=t,s=L("chakra-input__right-element",n);return d.jsxRuntimeExports.jsx(Qr,{ref:r,placement:"right",className:s,...o})});oa.id="InputRightElement";oa.displayName="InputRightElement";function _h(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=hb(),s=Array.isArray(e)?e:[e];let a=Array.isArray(n)?n:[n];a=a.filter(u=>u!=null);const[i,c]=l.useState(()=>s.map((u,f)=>({media:u,matches:r?!!a[f]:o().matchMedia(u).matches})));return l.useEffect(()=>{const u=o();c(s.map(b=>({media:b,matches:u.matchMedia(b).matches})));const f=s.map(b=>u.matchMedia(b)),m=b=>{c(h=>h.slice().map(g=>g.media===b.media?{...g,matches:b.matches}:g))};return f.forEach(b=>{typeof b.addListener=="function"?b.addListener(m):b.addEventListener("change",m)}),()=>{f.forEach(b=>{typeof b.removeListener=="function"?b.removeListener(m):b.removeEventListener("change",m)})}},[o]),i.map(u=>u.matches)}function Ph(e){const t=Pe(e)?e:{fallback:e??"base"},n=$t().__breakpoints.details.map(({minMaxQuery:i,breakpoint:c})=>({breakpoint:c,query:i.replace("@media screen and ","")})),o=n.map(i=>i.breakpoint===t.fallback),a=_h(n.map(i=>i.query),{fallback:o,ssr:t.ssr}).findIndex(i=>i==!0);return n[a]?.breakpoint??t.fallback}function Th(e,t,r=cs){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const s=r[o];if(e.hasOwnProperty(s)){n=o;break}o-=1}if(n!==-1){const s=r[n];return e[s]}}function Ih(e,t){const r=Pe(t)?t:{fallback:t??"base"},n=Ph(r),o=$t();if(!n)return;const s=Array.from(o.__breakpoints?.keys||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(ki(e,s)).map(([i,c])=>[i,c])):e;return Th(a,n,s)}const Pt=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),ve={arrowShadowColor:Pt("--popper-arrow-shadow-color"),arrowSize:Pt("--popper-arrow-size","8px"),arrowSizeHalf:Pt("--popper-arrow-size-half"),arrowBg:Pt("--popper-arrow-bg"),transformOrigin:Pt("--popper-transform-origin"),arrowOffset:Pt("--popper-arrow-offset")};function jh(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)"}const zh={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"},Mh=e=>zh[e],Uo={scroll:!0,resize:!0};function Ah(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Uo,...e}}:t={enabled:e,options:Uo},t}const Nh={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`}},Bh={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ko(e)},effect:({state:e})=>()=>{Ko(e)}},Ko=e=>{e.elements.popper.style.setProperty(ve.transformOrigin.var,Mh(e.placement))},Fh={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Dh(e)}},Dh=e=>{if(!e.placement)return;const t=Oh(e.placement);if(e.elements?.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:ve.arrowSize.varRef,height:ve.arrowSize.varRef,zIndex:-1});const r={[ve.arrowSizeHalf.var]:`calc(${ve.arrowSize.varRef} / 2 - 1px)`,[ve.arrowOffset.var]:`calc(${ve.arrowSizeHalf.varRef} * -1)`};for(const n in r)e.elements.arrow.style.setProperty(n,r[n])}},Oh=e=>{if(e.startsWith("top"))return{property:"bottom",value:ve.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:ve.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:ve.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:ve.arrowOffset.varRef}},Lh={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Xo(e)},effect:({state:e})=>()=>{Xo(e)}},Xo=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=jh(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:ve.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},Wh={"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"}},Vh={"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 Hh(e,t="ltr"){const r=Wh[e]?.[t]||e;return t==="ltr"?r:Vh[e]??r}function sa(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:s=8,eventListeners:a=!0,offset:i,gutter:c=8,flip:u=!0,boundary:f="clippingParents",preventOverflow:m=!0,matchWidth:b,direction:h="ltr"}=e,g=l.useRef(null),y=l.useRef(null),x=l.useRef(null),$=Hh(n,h),C=l.useRef(()=>{}),w=l.useCallback(()=>{!t||!g.current||!y.current||(C.current?.(),x.current=d.createPopper(g.current,y.current,{placement:$,modifiers:[Lh,Fh,Bh,{...Nh,enabled:!!b},{name:"eventListeners",...Ah(a)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:i??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!m,options:{boundary:f}},...r??[]],strategy:o}),x.current.forceUpdate(),C.current=x.current.destroy)},[$,t,r,b,a,s,i,c,u,m,f,o]);l.useEffect(()=>()=>{!g.current&&!y.current&&(x.current?.destroy(),x.current=null)},[]);const A=l.useCallback(S=>{g.current=S,w()},[w]),U=l.useCallback((S={},M=null)=>({...S,ref:ke(A,M)}),[A]),N=l.useCallback(S=>{y.current=S,w()},[w]),R=l.useCallback((S={},M=null)=>({...S,ref:ke(N,M),style:{...S.style,position:o,minWidth:b?void 0:"max-content",inset:"0 auto auto 0"}}),[o,N,b]),B=l.useCallback((S={},M=null)=>{const{size:Se,shadowColor:fe,bg:pe,style:xe,...le}=S;return{...le,ref:M,"data-popper-arrow":"",style:qh(S)}},[]),z=l.useCallback((S={},M=null)=>({...S,ref:M,"data-popper-arrow-inner":""}),[]);return{update(){x.current?.update()},forceUpdate(){x.current?.forceUpdate()},transformOrigin:ve.transformOrigin.varRef,referenceRef:A,popperRef:N,getPopperProps:R,getArrowProps:B,getArrowInnerProps:z,getReferenceProps:U}}function qh(e){const{size:t,shadowColor:r,bg:n,style:o}=e,s={...o,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),r&&(s["--popper-arrow-shadow-color"]=r),n&&(s["--popper-arrow-bg"]=n),s}const[Gh,u0,Uh,f0]=th(),[Kh,p0]=ie({strict:!1,name:"MenuContext"});function Xh(e){return e?.ownerDocument??document}function Yh(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:s=!0,isLazy:a,isOpen:i,defaultIsOpen:c,onClose:u,onOpen:f,placement:m="bottom-start",lazyBehavior:b="unmount",direction:h,computePositionOnMount:g=!1,...y}=e,x=l.useRef(null),$=l.useRef(null),C=l.useRef(!0),w=Uh(),A=l.useCallback(()=>{requestAnimationFrame(()=>{x.current?.focus({preventScroll:!1})})},[]),U=l.useCallback(()=>{const D=setTimeout(()=>{if(o)o.current?.focus();else if(!w.count())x.current?.focus({preventScroll:!1});else{const H=w.firstEnabled();H&&pe(H.index)}});ee.current.add(D)},[w,o]),N=l.useCallback(()=>{const D=setTimeout(()=>{if(!w.count())x.current?.focus({preventScroll:!1});else{const H=w.lastEnabled();H&&pe(H.index)}});ee.current.add(D)},[w]),R=l.useCallback(()=>{f?.(),s?U():A()},[s,U,A,f]),{isOpen:B,onOpen:z,onClose:S,onToggle:M}=Un({isOpen:i,defaultIsOpen:c,onClose:u,onOpen:R});Di({enabled:B&&n,ref:x,handler:D=>{const H=D.composedPath?.()?.[0]??D.target;$.current?.contains(H)||S()}});const Se=sa({...y,enabled:B||g,placement:m,direction:h}),[fe,pe]=l.useState(-1);ji(x,{focusRef:$,visible:B});const xe=_i({isOpen:B,ref:x}),[le,F]=Mi(t,"menu-button","menu-list"),T=l.useCallback(()=>{z(),A()},[z,A]),ee=l.useRef(new Set([]));l.useEffect(()=>{const D=ee.current;return()=>{D.forEach(H=>clearTimeout(H)),D.clear()}},[]),ht(()=>{B||(pe(-1),x.current?.scrollTo(0,0))},[B]),ht(()=>{B&&fe===-1&&A()},[fe,B]),l.useEffect(()=>{if(!B)return;w.item(fe)?.node?.focus({preventScroll:!C.current})},[w,fe,B]);const Te=l.useCallback(()=>{z(),U()},[U,z]),K=l.useCallback(()=>{C.current=!0,z(),N()},[z,N]),$e=l.useCallback(()=>{const D=Xh(x.current),H=x.current?.contains(D.activeElement);if(!(B&&!H))return;w.item(fe)?.node?.focus({preventScroll:!C.current})},[B,fe,w]);return{openAndFocusMenu:T,openAndFocusFirstItem:Te,openAndFocusLastItem:K,onTransitionEnd:$e,unstable__animationState:xe,descendants:w,popper:Se,buttonId:le,menuId:F,forceUpdate:Se.forceUpdate,orientation:"vertical",isOpen:B,onToggle:M,onOpen:z,onClose:S,menuRef:x,buttonRef:$,focusedIndex:fe,closeOnSelect:r,closeOnBlur:n,autoSelect:s,setFocusedIndex:pe,isLazy:a,lazyBehavior:b,initialFocusRef:o,scrollIntoViewRef:C}}const[Zh,Qh]=ie({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),aa=e=>{const{children:t}=e,r=ze("Menu",e),n=he(e),{direction:o}=$t(),{descendants:s,...a}=Yh({...n,direction:o}),i=l.useMemo(()=>a,[a]),{isOpen:c,onClose:u,forceUpdate:f}=i;return d.jsxRuntimeExports.jsx(Gh,{value:s,children:d.jsxRuntimeExports.jsx(Kh,{value:i,children:d.jsxRuntimeExports.jsx(Zh,{value:r,children:Ie(t,{isOpen:c,onClose:u,forceUpdate:f})})})})};aa.displayName="Menu";const ia=e=>{const{className:t,children:r,...n}=e,o=Qh(),s=l.Children.only(r),a=l.isValidElement(s)?l.cloneElement(s,{focusable:"false","aria-hidden":!0,className:L("chakra-menu__icon",s.props.className)}):null,i=L("chakra-menu__icon-wrapper",t);return d.jsxRuntimeExports.jsx(k.span,{className:i,...n,__css:o.icon,children:a})};ia.displayName="MenuIcon";var Jh=Object.defineProperty,eg=(e,t,r)=>t in e?Jh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tg=(e,t,r)=>(eg(e,t+"",r),r);class rg{constructor(){tg(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const r=Array.from(this.modals)[this.modals.size-1];return t===r}}const Vn=new rg;function la(e,t){const[r,n]=l.useState(0);return l.useEffect(()=>{const o=e.current;if(o){if(t){const s=Vn.add(o);n(s)}return()=>{Vn.remove(o),n(0)}}},[t,e]),r}function ng(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:s=!0,useInert:a=!0,onOverlayClick:i,onEsc:c}=e,u=l.useRef(null),f=l.useRef(null),[m,b,h]=sg(n,"chakra-modal","chakra-modal--header","chakra-modal--body");og(u,t&&a);const g=la(u,t),y=l.useRef(null),x=l.useCallback(z=>{y.current=z.target},[]),$=l.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),s&&r?.(),c?.())},[s,r,c]),[C,w]=l.useState(!1),[A,U]=l.useState(!1),N=l.useCallback((z={},S=null)=>({role:"dialog",...z,ref:ke(S,u),id:m,tabIndex:-1,"aria-modal":!0,"aria-labelledby":C?b:void 0,"aria-describedby":A?h:void 0,onClick:q(z.onClick,M=>M.stopPropagation())}),[h,A,m,b,C]),R=l.useCallback(z=>{z.stopPropagation(),y.current===z.target&&Vn.isTopModal(u.current)&&(o&&r?.(),i?.())},[r,o,i]),B=l.useCallback((z={},S=null)=>({...z,ref:ke(S,f),onClick:q(z.onClick,R),onKeyDown:q(z.onKeyDown,$),onMouseDown:q(z.onMouseDown,x)}),[$,x,R]);return{isOpen:t,onClose:r,headerId:b,bodyId:h,setBodyMounted:U,setHeaderMounted:w,dialogRef:u,overlayRef:f,getDialogProps:N,getDialogContainerProps:B,index:g}}function og(e,t){const r=e.current;l.useEffect(()=>{if(!(!e.current||!t))return d.hideOthers(e.current)},[t,e,r])}function sg(e,...t){const r=l.useId(),n=e||r;return l.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}const[ag,Vt]=ie({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[ig,Rt]=ie({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),ca=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:r,children:n,autoFocus:o,trapFocus:s,initialFocusRef:a,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:f,preserveScrollBarGap:m,motionPreset:b,lockFocusAcrossFrames:h,animatePresenceProps:g,onCloseComplete:y}=t,x=ze("Modal",t),C={...ng(t),autoFocus:o,trapFocus:s,initialFocusRef:a,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:f,preserveScrollBarGap:m,motionPreset:b,lockFocusAcrossFrames:h};return d.jsxRuntimeExports.jsx(ig,{value:C,children:d.jsxRuntimeExports.jsx(ag,{value:x,children:d.jsxRuntimeExports.jsx(Re.AnimatePresence,{...g,onExitComplete:y,children:C.isOpen&&d.jsxRuntimeExports.jsx(Wt,{...r,children:n})})})})};ca.displayName="Modal";function lg(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:a,finalFocusRef:i,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:f,isOpen:m}=Rt(),[b,h]=Re.usePresence();l.useEffect(()=>{!b&&h&&setTimeout(h)},[b,h]);const g=la(n,m);return d.jsxRuntimeExports.jsx(ea,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:i,restoreFocus:c,contentRef:n,lockFocusAcrossFrames:f,children:d.jsxRuntimeExports.jsx(d.ReactRemoveScroll,{removeScrollBar:!u,allowPinchZoom:a,enabled:g===1&&s,forwardProps:!0,children:e.children})})}const cg={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,x:e,y:t,transition:r?.exit??Ct.exit(wt.exit,o),transitionEnd:n?.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:e?.enter??Ct.enter(wt.enter,r),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:s})=>{const a={x:t,y:e};return{opacity:0,transition:r?.exit??Ct.exit(wt.exit,s),...o?{...a,transitionEnd:n?.exit}:{transitionEnd:{...a,...n?.exit}}}}},or={initial:"initial",animate:"enter",exit:"exit",variants:cg},dg=l.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:s=!0,className:a,offsetX:i=0,offsetY:c=8,transition:u,transitionEnd:f,delay:m,animatePresenceProps:b,...h}=t,g=n?o&&n:!0,y=o||n?"enter":"exit",x={offsetX:i,offsetY:c,reverse:s,transition:u,transitionEnd:f,delay:m};return d.jsxRuntimeExports.jsx(Re.AnimatePresence,{...b,custom:x,children:g&&d.jsxRuntimeExports.jsx(Re.motion.div,{ref:r,className:L("chakra-offset-slide",a),custom:x,...or,animate:y,...h})})});dg.displayName="SlideFade";const ug={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:n?.exit}:{transitionEnd:{scale:t,...n?.exit}},transition:r?.exit??Ct.exit(wt.exit,o)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:t?.enter??Ct.enter(wt.enter,r),transitionEnd:e?.enter})},da={initial:"exit",animate:"enter",exit:"exit",variants:ug},fg=l.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:s=!0,initialScale:a=.95,className:i,transition:c,transitionEnd:u,delay:f,animatePresenceProps:m,...b}=t,h=n?o&&n:!0,g=o||n?"enter":"exit",y={initialScale:a,reverse:s,transition:c,transitionEnd:u,delay:f};return d.jsxRuntimeExports.jsx(Re.AnimatePresence,{...m,custom:y,children:h&&d.jsxRuntimeExports.jsx(Re.motion.div,{ref:r,className:L("chakra-offset-slide",i),...da,animate:g,custom:y,...b})})});fg.displayName="ScaleFade";const pg={slideInBottom:{...or,custom:{offsetY:16,reverse:!0}},slideInRight:{...or,custom:{offsetX:16,reverse:!0}},slideInTop:{...or,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...or,custom:{offsetX:-16,reverse:!0}},scale:{...da,custom:{initialScale:.95,reverse:!0}},none:{}},mg=k(Re.motion.section),bg=e=>pg[e||"none"],ua=l.forwardRef((e,t)=>{const{preset:r,motionProps:n=bg(r),...o}=e;return d.jsxRuntimeExports.jsx(mg,{ref:t,...n,...o})});ua.displayName="ModalTransition";const fa=P((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:s,...a}=e,{getDialogProps:i,getDialogContainerProps:c}=Rt(),u=i(a,t),f=c(o),m=L("chakra-modal__content",r),b=Vt(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...b.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...b.dialogContainer},{motionPreset:y}=Rt();return d.jsxRuntimeExports.jsx(lg,{children:d.jsxRuntimeExports.jsx(k.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:d.jsxRuntimeExports.jsx(ua,{preset:y,motionProps:s,className:m,...u,__css:h,children:n})})})});fa.displayName="ModalContent";const pa=P((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:s}=Rt();l.useEffect(()=>(s(!0),()=>s(!1)),[s]);const a=L("chakra-modal__body",r),i=Vt();return d.jsxRuntimeExports.jsx(k.div,{ref:t,className:a,id:o,...n,__css:i.body})});pa.displayName="ModalBody";const ma=P((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:s}=Rt(),a=L("chakra-modal__close-btn",n),i=Vt();return d.jsxRuntimeExports.jsx(ao,{ref:t,__css:i.closeButton,className:a,onClick:q(r,c=>{c.stopPropagation(),s()}),...o})});ma.displayName="ModalCloseButton";const ba=P((e,t)=>{const{className:r,...n}=e,o=L("chakra-modal__footer",r),s=Vt(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return d.jsxRuntimeExports.jsx(k.footer,{ref:t,...n,__css:a,className:o})});ba.displayName="ModalFooter";const ha=P((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:s}=Rt();l.useEffect(()=>(s(!0),()=>s(!1)),[s]);const a=L("chakra-modal__header",r),i=Vt(),c={flex:0,...i.header};return d.jsxRuntimeExports.jsx(k.header,{ref:t,className:a,id:o,...n,__css:c})});ha.displayName="ModalHeader";const hg={enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:e?.enter??Ct.enter(wt.enter,r),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:e?.exit??Ct.exit(wt.exit,r),transitionEnd:t?.exit})},ga={initial:"exit",animate:"enter",exit:"exit",variants:hg},gg=l.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:s,transition:a,transitionEnd:i,delay:c,animatePresenceProps:u,...f}=t,m=o||n?"enter":"exit",b=n?o&&n:!0,h={transition:a,transitionEnd:i,delay:c};return d.jsxRuntimeExports.jsx(Re.AnimatePresence,{...u,custom:h,children:b&&d.jsxRuntimeExports.jsx(Re.motion.div,{ref:r,className:L("chakra-fade",s),custom:h,...ga,animate:m,...f})})});gg.displayName="Fade";const xg=k(Re.motion.div),xa=P((e,t)=>{const{className:r,transition:n,motionProps:o,...s}=e,a=L("chakra-modal__overlay",r),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Vt().overlay},{motionPreset:u}=Rt(),m=o||(u==="none"?{}:ga);return d.jsxRuntimeExports.jsx(xg,{...m,__css:c,ref:t,className:a,...s})});xa.displayName="ModalOverlay";const yg=e=>d.jsxRuntimeExports.jsx(Ge,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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"})}),Sg=e=>d.jsxRuntimeExports.jsx(Ge,{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("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 Yo(e,t,r,n){l.useEffect(()=>{if(!e.current||!n)return;const o=e.current.ownerDocument.defaultView??window,s=Array.isArray(t)?t:[t],a=new o.MutationObserver(i=>{for(const c of i)c.type==="attributes"&&c.attributeName&&s.includes(c.attributeName)&&r(c)});return a.observe(e.current,{attributes:!0,attributeFilter:s}),()=>a.disconnect()})}const vg=50,Zo=300;function kg(e,t){const[r,n]=l.useState(!1),[o,s]=l.useState(null),[a,i]=l.useState(!0),c=l.useRef(null),u=()=>clearTimeout(c.current);Ai(()=>{o==="increment"&&e(),o==="decrement"&&t()},r?vg:null);const f=l.useCallback(()=>{a&&e(),c.current=setTimeout(()=>{i(!1),n(!0),s("increment")},Zo)},[e,a]),m=l.useCallback(()=>{a&&t(),c.current=setTimeout(()=>{i(!1),n(!0),s("decrement")},Zo)},[t,a]),b=l.useCallback(()=>{i(!0),n(!1),u()},[]);return l.useEffect(()=>()=>u(),[]),{up:f,down:m,stop:b,isSpinning:r}}const wg=/^[Ee0-9+\-.]$/;function Cg(e){return wg.test(e)}function Eg(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 Rg(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:o=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:i,isDisabled:c,isRequired:u,isInvalid:f,pattern:m="[0-9]*(.[0-9]+)?",inputMode:b="decimal",allowMouseWheel:h,id:g,onChange:y,precision:x,name:$,"aria-describedby":C,"aria-label":w,"aria-labelledby":A,onFocus:U,onBlur:N,onInvalid:R,getAriaValueText:B,isValidCharacter:z,format:S,parse:M,...Se}=e,fe=de(U),pe=de(N),xe=de(R),le=de(z??Cg),F=de(B),T=Ti(e),{update:ee,increment:Te,decrement:K}=T,[$e,D]=l.useState(!1),H=!(i||c),re=l.useRef(null),Me=l.useRef(null),Ae=l.useRef(null),Ue=l.useRef(null),Ne=l.useCallback(v=>v.split("").filter(le).join(""),[le]),Be=l.useCallback(v=>M?.(v)??v,[M]),Fe=l.useCallback(v=>(S?.(v)??v).toString(),[S]);ht(()=>{(T.valueAsNumber>s||T.valueAsNumber<o)&&xe?.("rangeOverflow",Fe(T.value),T.valueAsNumber)},[T.valueAsNumber,T.value,Fe,xe]),bt(()=>{if(!re.current)return;if(re.current.value!=T.value){const se=Be(re.current.value);T.setValue(Ne(se))}},[Be,Ne]);const J=l.useCallback((v=a)=>{H&&Te(v)},[Te,H,a]),X=l.useCallback((v=a)=>{H&&K(v)},[K,H,a]),_=kg(J,X);Yo(Ae,"disabled",_.stop,_.isSpinning),Yo(Ue,"disabled",_.stop,_.isSpinning);const ce=l.useCallback(v=>{if(v.nativeEvent.isComposing)return;const we=Be(v.currentTarget.value);ee(Ne(we)),Me.current={start:v.currentTarget.selectionStart,end:v.currentTarget.selectionEnd}},[ee,Ne,Be]),De=l.useCallback(v=>{fe?.(v),Me.current&&(v.currentTarget.selectionStart=Me.current.start??v.currentTarget.value?.length,v.currentTarget.selectionEnd=Me.current.end??v.currentTarget.selectionStart)},[fe]),me=l.useCallback(v=>{if(v.nativeEvent.isComposing)return;Eg(v,le)||v.preventDefault();const se=Ht(v)*a,we=v.key,xt={ArrowUp:()=>J(se),ArrowDown:()=>X(se),Home:()=>ee(o),End:()=>ee(s)}[we];xt&&(v.preventDefault(),xt(v))},[le,a,J,X,ee,o,s]),Ht=v=>{let se=1;return(v.metaKey||v.ctrlKey)&&(se=.1),v.shiftKey&&(se=10),se},qt=l.useMemo(()=>{const v=F?.(T.value);if(v!=null)return v;const se=T.value.toString();return se||void 0},[T.value,F]),Gt=l.useCallback(()=>{let v=T.value;if(T.value==="")return;/^[eE]/.test(T.value.toString())?T.setValue(""):(T.valueAsNumber<o&&(v=o),T.valueAsNumber>s&&(v=s),T.cast(v))},[T,s,o]),Ut=l.useCallback(()=>{D(!1),r&&Gt()},[r,D,Gt]),gt=l.useCallback(()=>{t&&requestAnimationFrame(()=>{re.current?.focus()})},[t]),Kt=l.useCallback(v=>{v.preventDefault(),_.up(),gt()},[gt,_]),hr=l.useCallback(v=>{v.preventDefault(),_.down(),gt()},[gt,_]);sr(()=>re.current,"wheel",v=>{const we=(re.current?.ownerDocument??document).activeElement===re.current;if(!h||!we)return;v.preventDefault();const We=Ht(v)*a,xt=Math.sign(v.deltaY);xt===-1?J(We):xt===1&&X(We)},{passive:!1});const rn=l.useCallback((v={},se=null)=>{const we=c||n&&T.isAtMax;return{...v,ref:ke(se,Ae),role:"button",tabIndex:-1,onPointerDown:q(v.onPointerDown,We=>{We.button!==0||we||Kt(We)}),onPointerLeave:q(v.onPointerLeave,_.stop),onPointerUp:q(v.onPointerUp,_.stop),disabled:we,"aria-disabled":lt(we)}},[T.isAtMax,n,Kt,_.stop,c]),nn=l.useCallback((v={},se=null)=>{const we=c||n&&T.isAtMin;return{...v,ref:ke(se,Ue),role:"button",tabIndex:-1,onPointerDown:q(v.onPointerDown,We=>{We.button!==0||we||hr(We)}),onPointerLeave:q(v.onPointerLeave,_.stop),onPointerUp:q(v.onPointerUp,_.stop),disabled:we,"aria-disabled":lt(we)}},[T.isAtMin,n,hr,_.stop,c]),on=l.useCallback((v={},se=null)=>({name:$,inputMode:b,type:"text",pattern:m,"aria-labelledby":A,"aria-label":w,"aria-describedby":C,id:g,disabled:c,role:"spinbutton",...v,readOnly:v.readOnly??i,"aria-readonly":v.readOnly??i,"aria-required":v.required??u,required:v.required??u,ref:ke(re,se),value:Fe(T.value),"aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":Number.isNaN(T.valueAsNumber)?void 0:T.valueAsNumber,"aria-invalid":lt(f??T.isOutOfRange),"aria-valuetext":qt,autoComplete:"off",autoCorrect:"off",onChange:q(v.onChange,ce),onKeyDown:q(v.onKeyDown,me),onFocus:q(v.onFocus,De,()=>D(!0)),onBlur:q(v.onBlur,pe,Ut)}),[$,b,m,A,w,Fe,C,g,c,u,i,f,T.value,T.valueAsNumber,T.isOutOfRange,o,s,qt,ce,me,De,pe,Ut]);return{value:Fe(T.value),valueAsNumber:T.valueAsNumber,isFocused:$e,isDisabled:c,isReadOnly:i,getIncrementButtonProps:rn,getDecrementButtonProps:nn,getInputProps:on,htmlProps:Se}}const[$g,Jr]=ie({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[_g,po]=ie({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),ya=P(function(t,r){const n=ze("NumberInput",t),o=he(t),s=co(o),{htmlProps:a,...i}=Rg(s),c=l.useMemo(()=>i,[i]);return d.jsxRuntimeExports.jsx(_g,{value:c,children:d.jsxRuntimeExports.jsx($g,{value:n,children:d.jsxRuntimeExports.jsx(k.div,{...a,ref:r,className:L("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});ya.displayName="NumberInput";const Pg=P(function(t,r){const n=Jr();return d.jsxRuntimeExports.jsx(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}})});Pg.displayName="NumberInputStepper";const Sa=P(function(t,r){const{getInputProps:n}=po(),o=n(t,r),s=Jr();return d.jsxRuntimeExports.jsx(k.input,{...o,className:L("chakra-numberinput__field",t.className),__css:{width:"100%",...s.field}})});Sa.displayName="NumberInputField";const va=k("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Tg=P(function(t,r){const n=Jr(),{getDecrementButtonProps:o}=po(),s=o(t,r);return d.jsxRuntimeExports.jsx(va,{...s,__css:n.stepper,children:t.children??d.jsxRuntimeExports.jsx(yg,{})})});Tg.displayName="NumberDecrementStepper";const Ig=P(function(t,r){const{getIncrementButtonProps:n}=po(),o=n(t,r),s=Jr();return d.jsxRuntimeExports.jsx(va,{...o,__css:s.stepper,children:t.children??d.jsxRuntimeExports.jsx(Sg,{})})});Ig.displayName="NumberIncrementStepper";function jg(e){const t=La.version;return typeof t!="string"||t.startsWith("18.")?e?.ref:e?.props?.ref}const ka=P(function(t,r){const{children:n,placeholder:o,className:s,...a}=t;return d.jsxRuntimeExports.jsxs(k.select,{...a,ref:r,className:L("chakra-select",s),children:[o&&d.jsxRuntimeExports.jsx("option",{value:"",children:o}),n]})});ka.displayName="SelectField";const wa=P((e,t)=>{const r=ze("Select",e),{rootProps:n,placeholder:o,icon:s,color:a,height:i,h:c,minH:u,minHeight:f,iconColor:m,iconSize:b,...h}=he(e),[g,y]=Ri(h,_l),x=Zr(y),$={width:"100%",height:"fit-content",position:"relative",color:a},C={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...r.field?._focus}};return d.jsxRuntimeExports.jsxs(k.div,{className:"chakra-select__wrapper",__css:$,...g,...n,children:[d.jsxRuntimeExports.jsx(ka,{ref:t,height:c??i,minH:u??f,placeholder:o,...x,__css:C,children:e.children}),d.jsxRuntimeExports.jsx(Ca,{"data-disabled":V(x.disabled),...(m||a)&&{color:m||a},__css:r.icon,...b&&{fontSize:b},children:s})]})});wa.displayName="Select";const zg=e=>d.jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Mg=k("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Ca=e=>{const{children:t=d.jsxRuntimeExports.jsx(zg,{}),...r}=e,n=l.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return d.jsxRuntimeExports.jsx(Mg,{...r,className:"chakra-select__icon-wrapper",children:l.isValidElement(t)?n:null})};Ca.displayName="SelectIcon";function Ag(e){return{root:`slider-root-${e}`,getThumb:t=>`slider-thumb-${e}-${t}`,getInput:t=>`slider-input-${e}-${t}`,track:`slider-track-${e}`,innerTrack:`slider-filled-track-${e}`,getMarker:t=>`slider-marker-${e}-${t}`,output:`slider-output-${e}`}}function Ar(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function Ng(e){const{orientation:t,thumbPercents:r,isReversed:n}=e,o=h=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...Ar({orientation:t,vertical:{bottom:`${r[h]}%`,transform:"translate(-50%, 50%) scale(var(--slider-thumb-scale, 1))"},horizontal:{left:`${r[h]}%`,transform:"translate(-50%, -50%) scale(var(--slider-thumb-scale, 1))"}})}),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},a={position:"absolute",...Ar({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},i=r.length===1,c=[0,n?100-r[0]:r[0]],u=i?c:r;let f=u[0];!i&&n&&(f=100-f);const m=Math.abs(u[u.length-1]-u[0]),b={...a,...Ar({orientation:t,vertical:n?{height:`${m}%`,top:`${f}%`}:{height:`${m}%`,bottom:`${f}%`},horizontal:n?{width:`${m}%`,right:`${f}%`}:{width:`${m}%`,left:`${f}%`}})};return{trackStyle:a,innerTrackStyle:b,rootStyle:s,getThumbStyle:o}}function Bg(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function Fg(e){const{min:t=0,max:r=100,onChange:n,value:o,defaultValue:s,isReversed:a,direction:i="ltr",orientation:c="horizontal",id:u,isDisabled:f,isReadOnly:m,onChangeStart:b,onChangeEnd:h,step:g=1,getAriaValueText:y,"aria-valuetext":x,"aria-label":$,"aria-labelledby":C,name:w,focusThumbOnChange:A=!0,minStepsBetweenThumbs:U=0,...N}=e,R=de(b),B=de(h),z=de(y),S=Bg({isReversed:a,direction:i,orientation:c}),[M,Se]=Pi({value:o,defaultValue:s??[25,75],onChange:n});if(!Array.isArray(M))throw new TypeError(`[range-slider] You passed an invalid value for \`value\` or \`defaultValue\`, expected \`Array\` but got \`${typeof M}\``);const[fe,pe]=l.useState(!1),[xe,le]=l.useState(!1),[F,T]=l.useState(-1),ee=!(f||m),Te=l.useRef(M),K=M.map(E=>jn(E,t,r)),$e=U*g,D=Dg(K,t,r,$e),H=l.useRef({eventSource:null,value:[],valueBounds:[]});H.current.value=K,H.current.valueBounds=D;const re=K.map(E=>r-E+t),Ae=(S?re:K).map(E=>go(E,t,r)),Ue=c==="vertical",Ne=l.useRef(null),Be=l.useRef(null),Fe=l.useId(),X=Ag(u??Fe),_=l.useCallback(E=>{if(!Ne.current)return;H.current.eventSource="pointer";const W=Ne.current.getBoundingClientRect(),{clientX:O,clientY:ne}=E.touches?.[0]??E,ye=Ue?W.bottom-ne:O-W.left,rt=Ue?W.height:W.width;let Ke=ye/rt;return S&&(Ke=1-Ke),yi(Ke,t,r)},[Ue,S,r,t]),ce=(r-t)/10,De=g||(r-t)/100,me=l.useMemo(()=>({setValueAtIndex(E,W){if(!ee)return;const O=H.current.valueBounds[E];W=parseFloat(Si(W,O.min,De)),W=jn(W,O.min,O.max);const ne=[...H.current.value];ne[E]=W,Se(ne)},setActiveIndex:T,stepUp(E,W=De){const O=H.current.value[E],ne=S?O-W:O+W;me.setValueAtIndex(E,ne)},stepDown(E,W=De){const O=H.current.value[E],ne=S?O+W:O-W;me.setValueAtIndex(E,ne)},reset(){Se(Te.current)}}),[De,S,Se,ee]),Ht=l.useCallback(E=>{const W=E.key,ne={ArrowRight:()=>me.stepUp(F),ArrowUp:()=>me.stepUp(F),ArrowLeft:()=>me.stepDown(F),ArrowDown:()=>me.stepDown(F),PageUp:()=>me.stepUp(F,ce),PageDown:()=>me.stepDown(F,ce),Home:()=>{const{min:ye}=D[F];me.setValueAtIndex(F,ye)},End:()=>{const{max:ye}=D[F];me.setValueAtIndex(F,ye)}}[W];ne&&(E.preventDefault(),E.stopPropagation(),ne(E),H.current.eventSource="keyboard")},[me,F,ce,D]),{getThumbStyle:qt,rootStyle:Gt,trackStyle:Ut,innerTrackStyle:gt}=l.useMemo(()=>Ng({isReversed:S,orientation:c,thumbPercents:Ae}),[S,c,Ae]),Kt=l.useCallback(E=>{const W=E??F;if(W!==-1&&A){const O=X.getThumb(W),ne=Be.current?.ownerDocument.getElementById(O);ne&&setTimeout(()=>ne.focus())}},[A,F,X]);ht(()=>{H.current.eventSource==="keyboard"&&B?.(H.current.value)},[K,B]);const hr=E=>{const W=_(E)||0,O=H.current.value.map(Xt=>Math.abs(Xt-W)),ne=Math.min(...O);let ye=O.indexOf(ne);const rt=O.filter(Xt=>Xt===ne);rt.length>1&&W>H.current.value[ye]&&(ye=ye+rt.length-1),T(ye),me.setValueAtIndex(ye,W),Kt(ye)},rn=E=>{if(F==-1)return;const W=_(E)||0;T(F),me.setValueAtIndex(F,W),Kt(F)};Ki(Be,{onPanSessionStart(E){ee&&(pe(!0),hr(E),R?.(H.current.value))},onPanSessionEnd(){ee&&(pe(!1),B?.(H.current.value))},onPan(E){ee&&rn(E)}});const nn=l.useCallback((E={},W=null)=>({...E,...N,id:X.root,ref:ke(W,Be),tabIndex:-1,"aria-disabled":lt(f),"data-focused":V(xe),style:{...E.style,...Gt}}),[N,f,xe,Gt,X]),on=l.useCallback((E={},W=null)=>({...E,ref:ke(W,Ne),id:X.track,"data-disabled":V(f),style:{...E.style,...Ut}}),[f,Ut,X]),v=l.useCallback((E={},W=null)=>({...E,ref:W,id:X.innerTrack,style:{...E.style,...gt}}),[gt,X]),se=l.useCallback((E,W=null)=>{const{index:O,...ne}=E,ye=K[O];if(ye==null)throw new TypeError(`[range-slider > thumb] Cannot find value at index \`${O}\`. The \`value\` or \`defaultValue\` length is : ${K.length}`);const rt=D[O];return{...ne,ref:W,role:"slider",tabIndex:ee?0:void 0,id:X.getThumb(O),"data-active":V(fe&&F===O),"aria-valuetext":z?.(ye)??x?.[O],"aria-valuemin":rt.min,"aria-valuemax":rt.max,"aria-valuenow":ye,"aria-orientation":c,"aria-disabled":lt(f),"aria-readonly":lt(m),"aria-label":$?.[O],"aria-labelledby":$?.[O]?void 0:C?.[O],style:{...E.style,...qt(O)},onKeyDown:q(E.onKeyDown,Ht),onFocus:q(E.onFocus,()=>{le(!0),T(O)}),onBlur:q(E.onBlur,()=>{le(!1),T(-1)})}},[X,K,D,ee,fe,F,z,x,c,f,m,$,C,qt,Ht,le]),we=l.useCallback((E={},W=null)=>({...E,ref:W,id:X.output,htmlFor:K.map((O,ne)=>X.getThumb(ne)).join(" "),"aria-live":"off"}),[X,K]),We=l.useCallback((E,W=null)=>{const{value:O,...ne}=E,ye=!(O<t||O>r),rt=O>=K[0]&&O<=K[K.length-1];let Ke=go(O,t,r);Ke=S?100-Ke:Ke;const Xt={position:"absolute",pointerEvents:"none",...Ar({orientation:c,vertical:{bottom:`${Ke}%`},horizontal:{left:`${Ke}%`}})};return{...ne,ref:W,id:X.getMarker(E.value),role:"presentation","aria-hidden":!0,"data-disabled":V(f),"data-invalid":V(!ye),"data-highlighted":V(rt),style:{...E.style,...Xt}}},[f,S,r,t,c,K,X]),xt=l.useCallback((E,W=null)=>{const{index:O,...ne}=E;return{...ne,ref:W,id:X.getInput(O),type:"hidden",value:K[O],name:Array.isArray(w)?w[O]:`${w}-${O}`}},[w,K,X]);return{state:{value:K,isFocused:xe,isDragging:fe,getThumbPercent:E=>Ae[E],getThumbMinValue:E=>D[E].min,getThumbMaxValue:E=>D[E].max},actions:me,getRootProps:nn,getTrackProps:on,getInnerTrackProps:v,getThumbProps:se,getMarkerProps:We,getInputProps:xt,getOutputProps:we}}function Dg(e,t,r,n){return e.map((o,s)=>{const a=s===0?t:e[s-1]+n,i=s===e.length-1?r:e[s+1]-n;return{min:a,max:i}})}const[Og,en]=ie({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <RangeSlider />"}),[Lg,tn]=ie({name:"RangeSliderStylesContext",errorMessage:`useRangeSliderStyles returned is 'undefined'. Seems you forgot to wrap the components in "<RangeSlider />" `}),Ea=P(function(t,r){const n={orientation:"horizontal",...t},o=ze("Slider",n),s=he(n),{direction:a}=$t();s.direction=a;const{getRootProps:i,...c}=Fg(s),u=l.useMemo(()=>({...c,name:n.name}),[c,n.name]);return d.jsxRuntimeExports.jsx(Og,{value:u,children:d.jsxRuntimeExports.jsx(Lg,{value:o,children:d.jsxRuntimeExports.jsx(k.div,{...i({},r),className:"chakra-slider",__css:o.container,children:n.children})})})});Ea.displayName="RangeSlider";const Ra=P(function(t,r){const{getThumbProps:n,getInputProps:o,name:s}=en(),a=tn(),i=n(t,r);return d.jsxRuntimeExports.jsxs(k.div,{...i,className:L("chakra-slider__thumb",t.className),__css:a.thumb,children:[i.children,s&&d.jsxRuntimeExports.jsx("input",{...o({index:t.index})})]})});Ra.displayName="RangeSliderThumb";const $a=P(function(t,r){const{getTrackProps:n}=en(),o=tn(),s=n(t,r);return d.jsxRuntimeExports.jsx(k.div,{...s,className:L("chakra-slider__track",t.className),__css:o.track,"data-testid":"chakra-range-slider-track"})});$a.displayName="RangeSliderTrack";const _a=P(function(t,r){const{getInnerTrackProps:n}=en(),o=tn(),s=n(t,r);return d.jsxRuntimeExports.jsx(k.div,{...s,className:"chakra-slider__filled-track",__css:o.filledTrack})});_a.displayName="RangeSliderFilledTrack";const Pa=P(function(t,r){const{getMarkerProps:n}=en(),o=tn(),s=n(t,r);return d.jsxRuntimeExports.jsx(k.div,{...s,className:L("chakra-slider__marker",t.className),__css:o.mark})});Pa.displayName="RangeSliderMark";const Ta=e=>d.jsxRuntimeExports.jsx(k.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Ta.displayName="StackItem";function Wg(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{"&":vi(r,o=>n[o])}}const mo=P((e,t)=>{const{isInline:r,direction:n,align:o,justify:s,spacing:a="0.5rem",wrap:i,children:c,divider:u,className:f,shouldWrapChildren:m,...b}=e,h=r?"row":n??"column",g=l.useMemo(()=>Wg({spacing:a,direction:h}),[a,h]),y=!!u,x=!m&&!y,$=l.useMemo(()=>{const w=os(c);return x?w:w.map((A,U)=>{const N=typeof A.key<"u"?A.key:U,R=U+1===w.length,z=m?d.jsxRuntimeExports.jsx(Ta,{children:A},N):A;if(!y)return z;const S=l.cloneElement(u,{__css:g}),M=R?null:S;return d.jsxRuntimeExports.jsxs(l.Fragment,{children:[z,M]},N)})},[u,g,y,x,m,c]),C=L("chakra-stack",f);return d.jsxRuntimeExports.jsx(k.div,{ref:t,display:"flex",alignItems:o,justifyContent:s,flexDirection:h,flexWrap:i,gap:y?void 0:a,className:C,...b,children:$})});mo.displayName="Stack";const Ia=P((e,t)=>d.jsxRuntimeExports.jsx(mo,{align:"center",...e,direction:"row",ref:t}));Ia.displayName="HStack";const ja=P((e,t)=>d.jsxRuntimeExports.jsx(mo,{align:"center",...e,direction:"column",ref:t}));ja.displayName="VStack";const[Vg,br]=ie({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),za=P((e,t)=>{const r=ze("Table",e),{className:n,layout:o,...s}=he(e);return d.jsxRuntimeExports.jsx(Vg,{value:r,children:d.jsxRuntimeExports.jsx(k.table,{ref:t,__css:{tableLayout:o,...r.table},className:L("chakra-table",n),...s})})});za.displayName="Table";const Hg=P((e,t)=>{const{overflow:r,overflowX:n,className:o,...s}=e;return d.jsxRuntimeExports.jsx(k.div,{ref:t,className:L("chakra-table__container",o),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:r??n??"auto",overflowY:"hidden",maxWidth:"100%"}})}),qg=P((e,t)=>{const r=br();return d.jsxRuntimeExports.jsx(k.tbody,{...e,ref:t,__css:r.tbody})}),Gg=P(({isNumeric:e,...t},r)=>{const n=br();return d.jsxRuntimeExports.jsx(k.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),Ug=P(({isNumeric:e,...t},r)=>{const n=br();return d.jsxRuntimeExports.jsx(k.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),Kg=P((e,t)=>{const r=br();return d.jsxRuntimeExports.jsx(k.thead,{...e,ref:t,__css:r.thead})}),Xg=P((e,t)=>{const r=br();return d.jsxRuntimeExports.jsx(k.tr,{...e,ref:t,__css:r.tr})}),[Yg,Ma]=ie({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),Aa=P((e,t)=>{const r=ze("Tag",e),n=he(e),o={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return d.jsxRuntimeExports.jsx(Yg,{value:r,children:d.jsxRuntimeExports.jsx(k.span,{ref:t,...n,__css:o})})});Aa.displayName="Tag";const Zg=P((e,t)=>{const r=Ma();return d.jsxRuntimeExports.jsx(k.span,{ref:t,noOfLines:1,...e,__css:r.label})});Zg.displayName="TagLabel";const Qg=P((e,t)=>d.jsxRuntimeExports.jsx(Ge,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));Qg.displayName="TagLeftIcon";const Jg=P((e,t)=>d.jsxRuntimeExports.jsx(Ge,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));Jg.displayName="TagRightIcon";const Na=e=>d.jsxRuntimeExports.jsx(Ge,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:d.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});Na.displayName="TagCloseIcon";const e0=P((e,t)=>{const{isDisabled:r,children:n,...o}=e,a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...Ma().closeButton};return d.jsxRuntimeExports.jsx(k.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:r,__css:a,children:n||d.jsxRuntimeExports.jsx(Na,{})})});e0.displayName="TagCloseButton";const t0=["h","minH","height","minHeight"],Ba=P((e,t)=>{const r=tt("Textarea",e),{className:n,rows:o,...s}=he(e),a=Zr(s),i=o?Vr(r,t0):r;return d.jsxRuntimeExports.jsx(k.textarea,{ref:t,rows:o,...a,className:L("chakra-textarea",n),__css:i})});Ba.displayName="Textarea";function r0(e,t){const r=e??"bottom";return{"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r]?.[t]??r}function n0(e,t){const r=o=>({...t,...o,position:r0(o?.position??t?.position,e)}),n=o=>{const s=r(o),a=Hs(s);return Qe.notify(a,s)};return n.update=(o,s)=>{Qe.update(o,r(s))},n.promise=(o,s)=>{const a=n({...s.loading,status:"loading",duration:null});o.then(i=>n.update(a,{status:"success",duration:5e3,...Ie(s.success,i)})).catch(i=>n.update(a,{status:"error",duration:5e3,...Ie(s.error,i)}))},n.closeAll=Qe.closeAll,n.close=Qe.close,n.isActive=Qe.isActive,n}function o0(e){const{theme:t}=Ds(),r=Ub();return l.useMemo(()=>n0(t.direction,{...r,...e}),[e,t.direction,r])}const s0={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]}}}},Hn=e=>e.current?.ownerDocument||document,Nr=e=>e.current?.ownerDocument?.defaultView||window;function a0(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:s,closeOnPointerDown:a=o,closeOnEsc:i=!0,onOpen:c,onClose:u,placement:f,id:m,isOpen:b,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:y,arrowPadding:x,modifiers:$,isDisabled:C,gutter:w,offset:A,direction:U,...N}=e,{isOpen:R,onOpen:B,onClose:z}=Un({isOpen:b,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:S,getPopperProps:M,getArrowInnerProps:Se,getArrowProps:fe}=sa({enabled:R,placement:f,arrowPadding:x,modifiers:$,gutter:w,offset:A,direction:U}),pe=l.useId(),le=`tooltip-${m??pe}`,F=l.useRef(null),T=l.useRef(void 0),ee=l.useCallback(()=>{T.current&&(clearTimeout(T.current),T.current=void 0)},[]),Te=l.useRef(void 0),K=l.useCallback(()=>{Te.current&&(clearTimeout(Te.current),Te.current=void 0)},[]),$e=l.useCallback(()=>{K(),z()},[z,K]),D=i0(F,$e),H=l.useCallback(()=>{if(!C&&!T.current){R&&D();const J=Nr(F);T.current=J.setTimeout(B,t)}},[D,C,R,B,t]),re=l.useCallback(()=>{ee();const J=Nr(F);Te.current=J.setTimeout($e,r)},[r,$e,ee]),Me=l.useCallback(()=>{R&&n&&re()},[n,re,R]),Ae=l.useCallback(()=>{R&&a&&re()},[a,re,R]),Ue=l.useCallback(J=>{R&&J.key==="Escape"&&re()},[R,re]);sr(()=>Hn(F),"keydown",i?Ue:void 0),sr(()=>{if(!s)return null;const J=F.current;if(!J)return null;const X=ds(J);return X.localName==="body"?Nr(F):X},"scroll",()=>{R&&s&&$e()},{passive:!0,capture:!0}),l.useEffect(()=>{C&&(ee(),R&&z())},[C,R,z,ee]),l.useEffect(()=>()=>{ee(),K()},[ee,K]),sr(()=>F.current,"pointerleave",re);const Ne=l.useCallback((J={},X=null)=>({...J,ref:ke(F,X,S),onPointerEnter:q(J.onPointerEnter,ce=>{ce.pointerType!=="touch"&&H()}),onClick:q(J.onClick,Me),onPointerDown:q(J.onPointerDown,Ae),onFocus:q(J.onFocus,H),onBlur:q(J.onBlur,re),"aria-describedby":R?le:void 0}),[H,re,Ae,R,le,Me,S]),Be=l.useCallback((J={},X=null)=>M({...J,style:{...J.style,[ve.arrowSize.var]:g?`${g}px`:void 0,[ve.arrowShadowColor.var]:y}},X),[M,g,y]),Fe=l.useCallback((J={},X=null)=>{const _={...J.style,position:"relative",transformOrigin:ve.transformOrigin.varRef};return{ref:X,...N,...J,id:le,role:"tooltip",style:_}},[N,le]);return{isOpen:R,show:H,hide:re,getTriggerProps:Ne,getTooltipProps:Fe,getTooltipPositionerProps:Be,getArrowProps:fe,getArrowInnerProps:Se}}const Pn="chakra-ui:close-tooltip";function i0(e,t){return l.useEffect(()=>{const r=Hn(e);return r.addEventListener(Pn,t),()=>r.removeEventListener(Pn,t)},[t,e]),()=>{const r=Hn(e),n=Nr(e);r.dispatchEvent(new n.CustomEvent(Pn))}}const l0=k(Re.motion.div),Fa=P((e,t)=>{const r=tt("Tooltip",e),n=he(e),o=$t(),{children:s,label:a,shouldWrapChildren:i,"aria-label":c,hasArrow:u,bg:f,portalProps:m,background:b,backgroundColor:h,bgColor:g,motionProps:y,animatePresenceProps:x,...$}=n,C=b??h??f??g;if(C){r.bg=C;const S=Fl(o,"colors",C);r[ve.arrowBg.var]=S}const w=a0({...$,direction:o.direction}),A=!l.isValidElement(s)||i;let U;if(A)U=d.jsxRuntimeExports.jsx(k.span,{display:"inline-block",tabIndex:0,...w.getTriggerProps(),children:s});else{const S=l.Children.only(s);U=l.cloneElement(S,w.getTriggerProps(S.props,jg(S)))}const N=!!c,R=w.getTooltipProps({},t),B=N?Vr(R,["role","id"]):R,z=ls(R,["role","id"]);return a?d.jsxRuntimeExports.jsxs(d.jsxRuntimeExports.Fragment,{children:[U,d.jsxRuntimeExports.jsx(Re.AnimatePresence,{...x,children:w.isOpen&&d.jsxRuntimeExports.jsx(Wt,{...m,children:d.jsxRuntimeExports.jsx(k.div,{...w.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"},children:d.jsxRuntimeExports.jsxs(l0,{variants:s0,initial:"exit",animate:"enter",exit:"exit",...y,...B,__css:r,children:[a,N&&d.jsxRuntimeExports.jsx(k.span,{srOnly:!0,...z,children:c}),u&&d.jsxRuntimeExports.jsx(k.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:d.jsxRuntimeExports.jsx(k.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}})})]})})})})]}):d.jsxRuntimeExports.jsx(d.jsxRuntimeExports.Fragment,{children:s})});Fa.displayName="Tooltip";const Da=P(function(t,r){const n=tt("Text",t),{className:o,align:s,decoration:a,casing:i,...c}=he(t),u=Wr({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return d.jsxRuntimeExports.jsx(k.p,{ref:r,className:L("chakra-text",t.className),...u,...c,__css:n})});Da.displayName="Text";exports.Alert=oo;exports.AlertIcon=so;exports.Box=Gs;exports.Button=lo;exports.ButtonGroup=Us;exports.ChakraProvider=Yb;exports.Checkbox=Zs;exports.Divider=Qs;exports.Flex=Js;exports.FormControl=Ys;exports.FormLabel=ta;exports.HStack=Ia;exports.Icon=Ge;exports.IconButton=Ks;exports.Input=uo;exports.InputGroup=na;exports.InputLeftElement=fo;exports.Menu=aa;exports.MenuIcon=ia;exports.Modal=ca;exports.ModalBody=pa;exports.ModalCloseButton=ma;exports.ModalContent=fa;exports.ModalFooter=ba;exports.ModalHeader=ha;exports.ModalOverlay=xa;exports.NumberInput=ya;exports.NumberInputField=Sa;exports.RangeSlider=Ea;exports.RangeSliderFilledTrack=_a;exports.RangeSliderMark=Pa;exports.RangeSliderThumb=Ra;exports.RangeSliderTrack=$a;exports.Select=wa;exports.Spinner=Xr;exports.Table=za;exports.TableContainer=Hg;exports.Tag=Aa;exports.Tbody=qg;exports.Td=Gg;exports.Text=Da;exports.Textarea=Ba;exports.Th=Ug;exports.Thead=Kg;exports.Tooltip=Fa;exports.Tr=Xg;exports.VStack=ja;exports.chakra=k;exports.useBreakpointValue=Ih;exports.useColorModeValue=nb;exports.useDisclosure=Un;exports.useFormControl=Zr;exports.useMultiStyleConfig=ze;exports.useStyleConfig=tt;exports.useTheme=$t;exports.useToast=o0;