({value:m,label:m})))??[],[o,l]=v.useState(s),u=async()=>{var m,b;await((m=Se)==null?void 0:m.put({name:t,workflowIDs:[],updateTime:Date.now()})),await((b=Se)==null?void 0:b.listAll().then(g=>a(g??[]))),i("")},d=async()=>{var b;const m=await((b=Se)==null?void 0:b.listAll());a(m??[])};if(Se==null)return alert("Error: TagsTable is not loaded"),null;const f=r.map(m=>({value:m.name,label:m.name})),h=37*5;return c.jsxs(Br,{isLazy:!0,onOpen:d,closeOnBlur:!1,placement:"auto",children:[c.jsx(Wr,{children:c.jsx(ne,{icon:c.jsx(Dn,{}),children:"Add Tag"})}),c.jsxs(Ur,{children:[c.jsx(Gr,{}),c.jsx(Yr,{}),c.jsx(Pn,{children:c.jsx("b",{children:n.name})}),c.jsxs(Kr,{children:[c.jsx(Il,{isMulti:!0,name:"tags",options:f,menuIsOpen:!0,value:o,onChange:async m=>{var b;l(m),await((b=U)==null?void 0:b.updateMetaInfo(n.id,{tags:m.map(g=>g.value)})),await(e==null?void 0:e())},chakraStyles:{dropdownIndicator:m=>({...m,p:0,w:"30px"}),menuList:m=>({...m,shadow:"none",pt:0})},placeholder:"Select tags",closeMenuOnSelect:!1,maxMenuHeight:h}),c.jsxs(Y,{gap:4,mt:Math.min(h,Math.max(r.length,3)*37),children:[c.jsx(Ve,{placeholder:"New tag name",size:"sm",mt:6,mb:6,variant:"flushed",value:t,onChange:m=>{i(m.target.value.trim())}}),c.jsx(Q,{iconSpacing:1,leftIcon:c.jsx(Mt,{size:16}),colorScheme:"teal",variant:"solid",size:"xs",px:5,isDisabled:t.length===0,onClick:u,children:"New Tag"})]})]})]})]})}function kl({workflow:n}){const e=wt(),{onDuplicateWorkflow:r}=v.useContext(kt),[a,t]=v.useState(n.saveLock??!1),i=async()=>{var o;const s=!a;t(s),await((o=U)==null?void 0:o.updateMetaInfo(n.id,{saveLock:s})),e({title:`${s?"Locked":"Unlocked"} successfully`,status:"success",duration:2e3})};return c.jsx(c.Fragment,{children:c.jsxs(Me,{isLazy:!0,closeOnSelect:!1,children:[c.jsx(Le,{border:0,as:q,"aria-label":"Options",icon:c.jsx(ha,{size:20}),size:"sm",variant:"outline"}),c.jsxs(Ee,{zIndex:101,children:[c.jsx(ne,{icon:c.jsx(oa,{}),onClick:()=>r&&r(n.id),children:"Duplicate"}),c.jsx(Ml,{workflow:n}),c.jsx(te,{hasArrow:!0,label:a?"Unlock workflow, allow modifying":"Lock workflow, prevent modifying",placement:"bottom",children:c.jsx(ne,{icon:a?c.jsx(wn,{}):c.jsx(ba,{}),onClick:i,children:a?"Unlock":"Lock"})})]})]})})}const fn=v.memo(function({workflow:e}){const{colorMode:r}=yt(),{setDraggingFile:a,isMultiSelecting:t,onMultiSelectFlow:i,onDeleteFlow:s,multiSelectedFlowsID:o}=v.useContext(fe),l=o&&o.length>0&&o.includes(e.id),{curFlowID:u,loadWorkflowID:d}=v.useContext(kt),f=u===e.id,h=r==="light"?"gray.200":"#4A5568",p=c.jsx(N,{flexShrink:1,flexGrow:1,backgroundColor:f?"teal.200":void 0,color:f&&!t?"#333":void 0,draggable:!t,onDragStart:()=>a==null?void 0:a(e),borderRadius:6,px:1,py:"3px",onClick:()=>{!t&&d(e.id)},_hover:{bg:h},children:c.jsxs(Y,{children:[e.coverMediaPath!=null&&c.jsx(ia,{mediaLocalPath:e.coverMediaPath,size:60,hideBrokenImage:!0,isPreview:!0}),c.jsxs(ge,{textAlign:"left",gap:0,children:[c.jsxs(Ce,{alignItems:"center",children:[c.jsx(ee,{fontWeight:"500",noOfLines:2,style:{display:"inline-block"},children:e.name??"untitled"}),e.saveLock&&c.jsx(wn,{size:18,style:{display:"inline-block"}})]}),c.jsxs(ee,{color:"GrayText",ml:2,fontSize:"sm",children:["Updated: ",qr(e.updateTime)]})]})]})});return c.jsx(Y,{w:"100%",mb:1,justify:"space-between",children:t?c.jsx(Fe,{isChecked:l,spacing:4,onChange:m=>{i&&i(e.id,m.target.checked)},children:p}):c.jsxs(c.Fragment,{children:[p,c.jsxs(Ce,{width:"90px",justifyContent:"flex-end",children:[c.jsx(te,{label:"Open in new tab",children:c.jsx(q,{"aria-label":"Open in new tab",size:"sm",variant:"ghost",onClick:()=>Xr(e.id),icon:c.jsx(Zr,{color:"#718096",size:23})})}),c.jsx(yn,{promptMessage:"Are you sure you want to delete this workflow?",onDelete:()=>{s&&s(e.id)}}),c.jsx(kl,{workflow:e})]})]})})});function cr({items:n}){var h;const[e,r]=v.useState(!1),a=n.filter(xe),t=n.filter(p=>!xe(p)),i=(h=t[0])==null?void 0:h.parentFolderID,[s,o]=v.useState(!1),{onRefreshFilesList:l,draggingFile:u,refreshFolderStamp:d}=v.useContext(fe),f=async p=>{var m,b;if(p.preventDefault(),p.stopPropagation(),!u)return o(!1);if(xe(u)){if(u.id===i)return o(!1);await((m=de)==null?void 0:m.update(u.id,{parentFolderID:i}))}else await((b=U)==null?void 0:b.updateFolder(u.id,{parentFolderID:i}));await(l==null?void 0:l()),o(!1)};return v.useEffect(()=>{var p;(p=K)==null||p.getSetting("foldersOnTop").then(m=>{r(m??!1)})},[d]),c.jsxs(c.Fragment,{children:[e&&a.map(p=>c.jsx(Wt,{folder:p},p.id)),c.jsx(N,{border:s?"2px dashed #718096":"2px dashed transparent",onDragOver:p=>{p.preventDefault(),p.stopPropagation(),o(!0)},onDragLeave:p=>{p.preventDefault(),p.stopPropagation(),o(!1)},onDrop:f,className:"droppable",children:e?t.map(p=>c.jsx(fn,{workflow:p},p.id)):n.map(p=>xe(p)?c.jsx(Wt,{folder:p},p.id):c.jsx(fn,{workflow:p},p.id))})]})}function $l({onClose:n,onClickNewFlow:e}){const[r,a]=v.useState([]),t=v.useRef([]),i=v.useRef([]),{loadWorkflowID:s,curFlowID:o}=v.useContext(kt),[l,u]=v.useState(),[d,f]=v.useState(!1),[h,p]=v.useState([]),[m,b]=v.useState(0),[g,S]=v.useState(""),w=Fa(g,400),y=v.useRef(null),[x,I]=v.useState(null),C=v.useRef(window.localStorage.getItem(dt)??At.RECENTLY_MODIFIED),D=async()=>{var O,T;t.current=await((O=U)==null?void 0:O.listFolderContent())??[],i.current=await((T=U)==null?void 0:T.listAll())??[],R(),b(Date.now())},M=!!l||!!w,R=()=>{if(M){const O=i.current.filter(T=>{var se;let _=!0,z=!0;return l&&(_=!!((se=T.tags)!=null&&se.includes(l))),w&&(z=!!T.name.toLocaleLowerCase().includes(w.toLocaleLowerCase())),_&&z});a(rt(O,C.current))}else a(rt(t.current,C.current))},A=O=>{a(rt(r,O)),C.current=O,window.localStorage.setItem(dt,O),!M&&b(Date.now())};v.useEffect(()=>{R()},[w,l]);const W=v.useCallback(async O=>{var T,_,z;await((T=U)==null?void 0:T.deleteFlow(O)),((z=(_=U)==null?void 0:_.curWorkflow)==null?void 0:z.id)===O&&await(s==null?void 0:s(null)),await D()},[l,w]);v.useEffect(()=>{D();const O=async T=>{var _;if(y.current){const z=await((_=U)==null?void 0:_.get(y.current));z&&z.json&&ta(z.json,[T.canvasX,T.canvasY])}};return Te.canvasEl.addEventListener("drop",O),Te.canvasEl.addEventListener("click",n),()=>{Te.canvasEl.removeEventListener("drop",O),Te.canvasEl.removeEventListener("click",n)}},[]);const k=v.useCallback((O,T)=>{p(_=>{const z=[..._];return T?z.push(O):z.splice(z.indexOf(O),1),z})},[]),F=(O,T)=>{var _;switch(O){case"batchDelete":o&&((_=U)==null||_.get(o).then(z=>{z||s==null||s(null)})),D(),f(!1),p([]);return;case"selectAll":p(T?i.current.map(z=>z.id):[]);return}},V=O=>{I(O),xe(O)||(y.current=O.id)},$=O=>{S(O)},H=450;return c.jsx(fe.Provider,{value:{onRefreshFilesList:D,draggingFile:x??void 0,setDraggingFile:V,isMultiSelecting:d,onMultiSelectFlow:k,multiSelectedFlowsID:h,onDeleteFlow:W,refreshFolderStamp:m,setRefreshFolderStamp:b},children:c.jsx(N,{style:{width:H},children:c.jsxs(Jr,{width:H,height:"100vh",pl:2,pr:2,pt:4,gap:4,position:"absolute",top:0,left:0,shadow:"xl",zIndex:Qr,children:[c.jsxs(Ce,{alignItems:"center",justifyContent:"space-between",children:[c.jsxs(Y,{gap:4,children:[c.jsx(Y,{gap:2,children:c.jsx(ee,{fontSize:19,fontWeight:600,children:"🦄Workspace"})}),c.jsx(Vn,{}),c.jsx(te,{label:"Open workspace save directory",children:c.jsx(q,{"aria-label":"Open workspace save directory",size:"sm",icon:c.jsx(Cn,{}),variant:"outline",colorScheme:"teal",onClick:()=>ea()})}),c.jsx(te,{label:"New workflow",children:c.jsx(q,{"aria-label":"New workflow",size:"sm",icon:c.jsx(Mt,{}),variant:"outline",colorScheme:"teal",onClick:e})})]}),c.jsx(Y,{alignItems:"center",children:c.jsx(Va,{})})]}),c.jsxs(Ce,{direction:"column",h:"calc(100% - 64px)",children:[c.jsx(Ta,{selectedTag:l,setSelectedTag:u}),c.jsxs(Y,{mb:2,mt:2,p:0,justifyContent:"space-between",children:[c.jsxs(Y,{children:[i.current.length>0?c.jsx(Ea,{multipleState:d,changeMultipleState:O=>{f(O),!O&&p([])},selectedKeys:h,isSelectedAll:h.length===i.current.length,batchOperationCallback:F}):c.jsx(N,{}),!d&&c.jsx(te,{hasArrow:!0,label:"New folder",placement:"bottom-start",children:c.jsx(q,{size:"sm",variant:"outline",icon:c.jsx(jn,{size:21}),onClick:async()=>{var O;await((O=de)==null?void 0:O.create({name:"New Folder"})),D()},"aria-label":"new folder button"})})]}),c.jsxs(Me,{closeOnSelect:!0,children:[c.jsx(Le,{as:Q,variant:"ghost",size:"xs",pr:0,rightIcon:c.jsx(It,{size:"16"}),children:c.jsxs(Y,{children:[c.jsx(ee,{children:"Sort by:"}),c.jsx(ee,{display:"inline-block",children:C.current})]})}),c.jsx(Ee,{children:c.jsx(kn,{value:C.current,type:"radio",onChange:O=>A(O),children:Object.values(At).map((O,T)=>c.jsx(Pt,{value:O,children:O},T))})})]})]}),c.jsx(Ra,{searchValue:g,onUpdateSearchValue:$}),c.jsx(Ce,{overflowY:"auto",overflowX:"hidden",direction:"column",children:c.jsx(cr,{items:r})})]})]})})})}export{$l as default};
diff --git a/dist/workspace_web/ShareDialog-gz6oeI9x.js b/dist/workspace_web/ShareDialog-gz6oeI9x.js
new file mode 100644
index 0000000..32ab570
--- /dev/null
+++ b/dist/workspace_web/ShareDialog-gz6oeI9x.js
@@ -0,0 +1 @@
+import{f as Z,n as ge,o as ie,j as e,g as G,e as ce,r as a,m as me,w as ne,b as ve,l as y,q as E,p as Y,k as we,H as ke,ah as be,h as K,M as xe,N as ye,O as Ce,Q as Se,S as je}from"./input.js";import{aB as De,h as Ie,B as Pe,J as Re,ab as _e,H as Q,l as X,a7 as Fe,a9 as de,j as Ee,o as le,k as re,aC as Me,n as Ne,F as We,A as q,aD as J,aE as Le,aF as Te,aG as Be,T as He,aH as Ve}from"./App-5Q89H_Oo.js";import{app as Oe}from"/scripts/app.js";import{t as Ae}from"./index-pz0vT7Or.js";import{L as qe}from"./chunk-K7XRJ7NL-DRLDc1uk.js";import{I as Ge}from"./IconCopy-g3YYgbEQ.js";import"/scripts/api.js";var ue=Z(function(c,r){const o=ge("Badge",c),{className:d,...h}=ie(c);return e.jsx(G.span,{ref:r,className:ce("chakra-badge",c.className),...h,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...o}})});ue.displayName="Badge";function Ke(t){return t&&ne(t)&&ne(t.target)}function $e(t={}){const{onChange:c,value:r,defaultValue:o,name:d,isDisabled:h,isFocusable:f,isNative:g,...p}=t,[w,C]=a.useState(o||""),k=typeof r<"u",S=k?r:w,b=a.useRef(null),j=a.useCallback(()=>{const n=b.current;if(!n)return;let u="input:not(:disabled):checked";const D=n.querySelector(u);if(D){D.focus();return}u="input:not(:disabled)";const s=n.querySelector(u);s==null||s.focus()},[]),m=`radio-${a.useId()}`,N=d||m,R=a.useCallback(n=>{const u=Ke(n)?n.target.value:n;k||C(u),c==null||c(String(u))},[c,k]),V=a.useCallback((n={},u=null)=>({...n,ref:me(u,b),role:"radiogroup"}),[]),_=a.useCallback((n={},u=null)=>({...n,ref:u,name:N,[g?"checked":"isChecked"]:S!=null?n.value===S:void 0,onChange(s){R(s)},"data-radiogroup":!0}),[g,N,R,S]);return{getRootProps:V,getRadioProps:_,name:N,ref:b,focus:j,setValue:C,value:S,onChange:R,isDisabled:h,isFocusable:f,htmlProps:p}}var[ze,he]=ve({name:"RadioGroupContext",strict:!1}),fe=Z((t,c)=>{const{colorScheme:r,size:o,variant:d,children:h,className:f,isDisabled:g,isFocusable:p,...w}=t,{value:C,onChange:k,getRootProps:S,name:b,htmlProps:j}=$e(w),M=a.useMemo(()=>({name:b,size:o,onChange:k,colorScheme:r,value:C,variant:d,isDisabled:g,isFocusable:p}),[b,o,k,r,C,d,g,p]);return e.jsx(ze,{value:M,children:e.jsx(G.div,{...S(j,c),className:ce("chakra-radio-group",f),children:h})})});fe.displayName="RadioGroup";var Ue={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Je(t={}){const{defaultChecked:c,isChecked:r,isFocusable:o,isDisabled:d,isReadOnly:h,isRequired:f,onChange:g,isInvalid:p,name:w,value:C,id:k,"data-radiogroup":S,"aria-describedby":b,...j}=t,M=`radio-${a.useId()}`,m=De(),R=!!he()||!!S;let _=!!m&&!R?m.id:M;_=k??_;const n=d??(m==null?void 0:m.isDisabled),u=h??(m==null?void 0:m.isReadOnly),D=f??(m==null?void 0:m.isRequired),s=p??(m==null?void 0:m.isInvalid),[l,P]=a.useState(!1),[v,I]=a.useState(!1),[x,W]=a.useState(!1),[L,T]=a.useState(!1),[$,z]=a.useState(!!c),O=typeof r<"u",F=O?r:$;a.useEffect(()=>Ae(P),[]);const B=a.useCallback(i=>{if(u||n){i.preventDefault();return}O||z(i.target.checked),g==null||g(i)},[O,n,u,g]),A=a.useCallback(i=>{i.key===" "&&T(!0)},[T]),U=a.useCallback(i=>{i.key===" "&&T(!1)},[T]),oe=a.useCallback((i={},H=null)=>({...i,ref:H,"data-active":y(L),"data-hover":y(x),"data-disabled":y(n),"data-invalid":y(s),"data-checked":y(F),"data-focus":y(v),"data-focus-visible":y(v&&l),"data-readonly":y(u),"aria-hidden":!0,onMouseDown:E(i.onMouseDown,()=>T(!0)),onMouseUp:E(i.onMouseUp,()=>T(!1)),onMouseEnter:E(i.onMouseEnter,()=>W(!0)),onMouseLeave:E(i.onMouseLeave,()=>W(!1))}),[L,x,n,s,F,v,u,l]),{onFocus:se,onBlur:te}=m??{},pe=a.useCallback((i={},H=null)=>{const ae=n&&!o;return{...i,id:_,ref:H,type:"radio",name:w,value:C,onChange:E(i.onChange,B),onBlur:E(te,i.onBlur,()=>I(!1)),onFocus:E(se,i.onFocus,()=>I(!0)),onKeyDown:E(i.onKeyDown,A),onKeyUp:E(i.onKeyUp,U),checked:F,disabled:ae,readOnly:u,required:D,"aria-invalid":Y(s),"aria-disabled":Y(ae),"aria-required":Y(D),"data-readonly":y(u),"aria-describedby":b,style:Ue}},[n,o,_,w,C,B,te,se,A,U,F,u,D,s,b]);return{state:{isInvalid:s,isFocused:v,isChecked:F,isActive:L,isHovered:x,isDisabled:n,isReadOnly:u,isRequired:D},getCheckboxProps:oe,getRadioProps:oe,getInputProps:pe,getLabelProps:(i={},H=null)=>({...i,ref:H,onMouseDown:E(i.onMouseDown,Qe),"data-disabled":y(n),"data-checked":y(F),"data-invalid":y(s)}),getRootProps:(i,H=null)=>({...i,ref:H,"data-disabled":y(n),"data-checked":y(F),"data-invalid":y(s)}),htmlProps:j}}function Qe(t){t.preventDefault(),t.stopPropagation()}function Ye(t,c){const r={},o={};for(const[d,h]of Object.entries(t))c.includes(d)?r[d]=h:o[d]=h;return[r,o]}var ee=Z((t,c)=>{var r;const o=he(),{onChange:d,value:h}=t,f=we("Radio",{...o,...t}),g=ie(t),{spacing:p="0.5rem",children:w,isDisabled:C=o==null?void 0:o.isDisabled,isFocusable:k=o==null?void 0:o.isFocusable,inputProps:S,...b}=g;let j=t.isChecked;(o==null?void 0:o.value)!=null&&h!=null&&(j=o.value===h);let M=d;o!=null&&o.onChange&&h!=null&&(M=ke(o.onChange,d));const m=(r=t==null?void 0:t.name)!=null?r:o==null?void 0:o.name,{getInputProps:N,getCheckboxProps:R,getLabelProps:V,getRootProps:_,htmlProps:n}=Je({...b,isChecked:j,isFocusable:k,isDisabled:C,onChange:M,name:m}),[u,D]=Ye(n,be),s=R(D),l=N(S,c),P=V(),v=Object.assign({},u,_()),I={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...f.container},x={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...f.control},W={userSelect:"none",marginStart:p,...f.label};return e.jsxs(G.label,{className:"chakra-radio",...v,__css:I,children:[e.jsx("input",{className:"chakra-radio__input",...l}),e.jsx(G.span,{className:"chakra-radio__control",...s,__css:x}),w&&e.jsx(G.span,{className:"chakra-radio__label",...P,__css:W,children:w})]})});ee.displayName="Radio";var Xe=Ie("cloud","IconCloud",[["path",{d:"M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878",key:"svg-0"}]]);function Ze({options:t,value:c,onChange:r}){const[o,d]=a.useState(!1),h=a.useRef(null),f=t.find(p=>p.value===c);a.useEffect(()=>{const p=w=>{h.current&&!h.current.contains(w.target)&&d(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[h]);const g=()=>d(!o);return e.jsxs(Pe,{position:"relative",children:[e.jsx(K,{onClick:g,rightIcon:e.jsx(Re,{}),leftIcon:f==null?void 0:f.icon,children:f==null?void 0:f.label}),o&&e.jsx(_e,{gap:4,ref:h,mt:"2",shadow:"md",borderWidth:"1px",p:"2",position:"absolute",zIndex:100,children:t.map(p=>e.jsx(K,{onClick:()=>{d(!1),r(p.value)},leftIcon:p.icon,justifyContent:"flex-start",variant:"ghost",width:"full",children:p.label},p.label))})]})}function eo({version:t,cloudHost:c,cloudWorkflowID:r}){const o=t,d=e.jsxs(Q,{spacing:4,alignItems:"center",children:[e.jsx(X,{children:o.name}),e.jsx(X,{color:"GrayText",children:Fe(o.createTime,!1)}),o.cloudID&&r&&e.jsx("a",{href:c+"/workflow/"+r+"/"+o.cloudID,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:e.jsx(K,{size:"xs",colorScheme:"teal",variant:"outline",leftIcon:e.jsx(Xe,{}),rightIcon:e.jsx(de,{size:18}),children:"Shared"})})]});return t.cloudID?e.jsx(e.Fragment,{children:d}):e.jsx(ee,{value:o.id,mb:5,children:d},o.id)}function fo({onClose:t}){var u,D;const[c,r]=a.useState("version "+oo()),[o,d]=a.useState([]),[h,f]=a.useState(!1),[g,p]=a.useState(""),[w,C]=a.useState("PRIVATE"),[k,S]=a.useState("new_version"),b=a.useRef(""),[j,M]=a.useState(),m=Ee(),N=async s=>{var W,L;const l=s.data;if(s.origin!==b.current||l.type!=="share_workflow_success")return;const P=l.localWorkflowID,v=l.localVersionID,I=l.version.id,x=l.version.workflowID;x&&P&&await((W=q)==null?void 0:W.updateMetaInfo(P,{cloudID:x,cloudOrigin:s.origin,privacy:w})),v&&I&&await((L=J)==null?void 0:L.update(v,{cloudID:I,cloudOrigin:s.origin})),R(),window.open(b.current+"/workflow/"+x+"/"+I,"_blank"),f(!1)};a.useEffect(()=>(R(),window.addEventListener("message",N),()=>{window.removeEventListener("message",N)}),[]);const R=async()=>{var P,v,I;const s=await((P=le)==null?void 0:P.getSetting("cloudHost"));s&&(p(s),b.current=s);const l=((v=q)==null?void 0:v.curWorkflow)??void 0;M(l),l!=null&&l.cloudID&&l.cloudOrigin&&Be(l).then(x=>{C(x)}),(I=J)==null||I.listByWorkflowID(l.id).then(x=>{d(x)})},V=s=>{navigator.clipboard.writeText(s).then(()=>{m({title:"Copied to clipboard",status:"success",duration:2e3,isClosable:!0})}).catch(l=>{console.error("Failed to copy text: ",l)})},_=async()=>{var z,O,F;f(!0);const s=Le(32),l=await((z=le)==null?void 0:z.getSetting("cloudHost"));let P,v;try{if(P=Te(),k==="new_version"?v=await((O=J)==null?void 0:O.add({workflowID:j.id,name:c,createTime:Date.now(),json:JSON.stringify(Oe.graph.serialize())})):v=await((F=J)==null?void 0:F.get(k)),!v){alert(`Failed to find version: ${k}, please try again.`),f(!1);return}}catch(B){console.error(B),f(!1),alert("Failed to share workflow, please try again.");return}const I=window.location.protocol,x=window.location.host,W=`${I}//${x}`,L=l+`/share_workflow_confirm/${s}?redirectUrl=${W}`,T=window.open(L,"Share Workflow","width=800,height=800"),$=B=>{var A;if(B.origin===l&&B.data==="child_ready"){const U=(A=q)==null?void 0:A.curWorkflow;T.postMessage({workflow:U,version:v,nodeDefs:P,privacy:w},l),window.removeEventListener("message",$)}};window.addEventListener("message",$)},n=(D=(u=q)==null?void 0:u.curWorkflow)==null?void 0:D.cloudID;return e.jsxs(xe,{isOpen:!0,onClose:t,size:"lg",children:[e.jsx(ye,{}),e.jsxs(Ce,{width:["98%","90%","50%"],maxWidth:"600px",children:[e.jsxs(Se,{children:['Share "',j==null?void 0:j.name,'"']}),e.jsxs(je,{pb:10,children:[e.jsxs(re,{gap:5,children:[n==null?e.jsx(Ze,{options:Me,value:w,onChange:s=>{C(s)}}):e.jsx(He,{variant:"outline",borderRadius:"full",width:"fit-content",children:e.jsx(Ve,{privacy:w,showEmoji:!0})}),n&&e.jsxs(Q,{spacing:2,color:"teal.400",children:[e.jsxs(qe,{href:g+"/workflow/"+n,isExternal:!0,children:[g+"/workflow/"+n," ",e.jsx(de,{size:20,style:{display:"inline-block",verticalAlign:"middle"}})]}),e.jsx(K,{width:"180px",size:"sm",leftIcon:e.jsx(Ge,{}),onClick:()=>{var s,l;V(g+"/workflow/"+((l=(s=q)==null?void 0:s.curWorkflow)==null?void 0:l.cloudID))},children:"Copy link"})]}),e.jsx(X,{children:"Choose a version to share:"}),e.jsx(fe,{gap:4,onChange:s=>{S(s)},value:k,children:e.jsxs(re,{children:[e.jsxs(Q,{mb:5,alignItems:"center",children:[e.jsx(ee,{value:"new_version"},"new_version"),e.jsx(Ne,{value:c,width:"60%",onFocus:()=>{S("new_version")},onChange:s=>{r(s.target.value)}}),e.jsx(We,{color:"green",children:e.jsx(ue,{colorScheme:"purple",children:"New version"})})]}),o.slice(0,4).map(s=>e.jsx(eo,{version:s,cloudHost:g,cloudWorkflowID:n??null},s.id))]})})]}),e.jsx(Q,{justifyContent:"flex-end",mt:16,children:e.jsx(K,{colorScheme:"teal",onClick:_,isDisabled:h,children:h?"Sharing":"Share"})})]})]})]})}function oo(){const t=new Date,c=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${c}-${r}-${o}`}export{fo as default};
diff --git a/dist/workspace_web/chunk-3RSXBRAN-ioWnq-ld.js b/dist/workspace_web/chunk-3RSXBRAN-ioWnq-ld.js
new file mode 100644
index 0000000..0efbef9
--- /dev/null
+++ b/dist/workspace_web/chunk-3RSXBRAN-ioWnq-ld.js
@@ -0,0 +1 @@
+import{f as x,j as l,g as i,e as b,k as C,o as E,l as I,r as f,ah as P}from"./input.js";import{_ as z}from"./App-5Q89H_Oo.js";var _=x(function(o,s){const{children:t,placeholder:n,className:r,...a}=o;return l.jsxs(i.select,{...a,ref:s,className:b("chakra-select",r),children:[n&&l.jsx("option",{value:"",children:n}),t]})});_.displayName="SelectField";function F(e,o){const s={},t={};for(const[n,r]of Object.entries(e))o.includes(n)?s[n]=r:t[n]=r;return[s,t]}var H=x((e,o)=>{var s;const t=C("Select",e),{rootProps:n,placeholder:r,icon:a,color:c,height:S,h:d,minH:h,minHeight:y,iconColor:p,iconSize:u,...j}=E(e),[g,N]=F(j,P),m=z(N),k={width:"100%",height:"fit-content",position:"relative",color:c},w={paddingEnd:"2rem",...t.field,_focus:{zIndex:"unset",...(s=t.field)==null?void 0:s._focus}};return l.jsxs(i.div,{className:"chakra-select__wrapper",__css:k,...g,...n,children:[l.jsx(_,{ref:o,height:d??S,minH:h??y,placeholder:r,...m,__css:w,children:e.children}),l.jsx(v,{"data-disabled":I(m.disabled),...(p||c)&&{color:p||c},__css:t.icon,...u&&{fontSize:u},children:a})]})});H.displayName="Select";var M=e=>l.jsx("svg",{viewBox:"0 0 24 24",...e,children:l.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),R=i("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),v=e=>{const{children:o=l.jsx(M,{}),...s}=e,t=f.cloneElement(o,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return l.jsx(R,{...s,className:"chakra-select__icon-wrapper",children:f.isValidElement(o)?t:null})};v.displayName="SelectIcon";export{H as S};
diff --git a/dist/workspace_web/chunk-JARCRF6W-26PFjau4.js b/dist/workspace_web/chunk-JARCRF6W-26PFjau4.js
new file mode 100644
index 0000000..e2a41c3
--- /dev/null
+++ b/dist/workspace_web/chunk-JARCRF6W-26PFjau4.js
@@ -0,0 +1,5 @@
+<<<<<<<< HEAD:dist/workspace_web/chunk-JARCRF6W-kzTkLGda.js
+import{f as $,j as f,r as l,y as q,g as P,b as ue,d as W,x as fe,l as i,q as y,m as oe,a4 as J,k as me,o as he,H as ge,e as be}from"./input.js";import{aj as ke}from"./App-cZxcRZX7.js";import{t as ve}from"./index-pz0vT7Or.js";var X=$(function(n,e){const{htmlWidth:a,htmlHeight:c,alt:s,...d}=n;return f.jsx("img",{width:a,height:c,ref:e,alt:s,...d})});X.displayName="NativeImage";function pe(o){const{loading:n,src:e,srcSet:a,onLoad:c,onError:s,crossOrigin:d,sizes:p,ignoreFallback:C}=o,[m,g]=l.useState("pending");l.useEffect(()=>{g(e?"loading":"pending")},[e]);const u=l.useRef(),x=l.useCallback(()=>{if(!e)return;k();const r=new Image;r.src=e,d&&(r.crossOrigin=d),a&&(r.srcset=a),p&&(r.sizes=p),n&&(r.loading=n),r.onload=b=>{k(),g("loaded"),c==null||c(b)},r.onerror=b=>{k(),g("failed"),s==null||s(b)},u.current=r},[e,d,a,p,c,s,n]),k=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return q(()=>{if(!C)return m==="loading"&&x(),()=>{k()}},[m,x,C]),C?"loaded":m}var Ce=(o,n)=>o!=="loaded"&&n==="beforeLoadOrError"||o==="failed"&&n==="onError";function ye(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}var xe=$(function(n,e){const{fallbackSrc:a,fallback:c,src:s,srcSet:d,align:p,fit:C,loading:m,ignoreFallback:g,crossOrigin:u,fallbackStrategy:x="beforeLoadOrError",referrerPolicy:k,...r}=n,b=a!==void 0||c!==void 0,R=m!=null||g||!b,_=pe({...n,crossOrigin:u,ignoreFallback:R}),A=Ce(_,x),j={ref:e,objectFit:C,objectPosition:p,...R?r:ye(r,["onError","onLoad"])};return A?c||f.jsx(P.img,{as:X,className:"chakra-image__placeholder",src:a,...j}):f.jsx(P.img,{as:X,src:s,srcSet:d,crossOrigin:u,loading:m,referrerPolicy:k,className:"chakra-image",...j})});xe.displayName="Image";var[qe,Ie]=ue({name:"CheckboxGroupContext",strict:!1});function Se(o){const[n,e]=l.useState(o),[a,c]=l.useState(!1);return o!==n&&(c(!0),e(o)),a}function we(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...o,children:f.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Pe(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...o,children:f.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function je(o){const{isIndeterminate:n,isChecked:e,...a}=o,c=n?Pe:we;return e||n?f.jsx(P.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f.jsx(c,{...a})}):null}var Fe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Re(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}function Ae(o={}){const n=ke(o),{isDisabled:e,isReadOnly:a,isRequired:c,isInvalid:s,id:d,onBlur:p,onFocus:C,"aria-describedby":m}=n,{defaultChecked:g,isChecked:u,isFocusable:x,onChange:k,isIndeterminate:r,name:b,value:R,tabIndex:_=void 0,"aria-label":A,"aria-labelledby":j,"aria-invalid":w,...z}=o,L=Re(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=W(k),O=W(p),B=W(C),[D,T]=l.useState(!1),[F,H]=l.useState(!1),[G,Q]=l.useState(!1),[M,E]=l.useState(!1);l.useEffect(()=>ve(T),[]);const I=l.useRef(null),[Y,ne]=l.useState(!0),[se,K]=l.useState(!!g),V=u!==void 0,h=V?u:se,Z=l.useCallback(t=>{if(a||e){t.preventDefault();return}V||K(h?t.target.checked:r?!0:t.target.checked),N==null||N(t)},[a,e,h,V,r,N]);q(()=>{I.current&&(I.current.indeterminate=!!r)},[r]),fe(()=>{e&&H(!1)},[e,H]),q(()=>{const t=I.current;if(!(t!=null&&t.form))return;const v=()=>{K(!!g)};return t.form.addEventListener("reset",v),()=>{var S;return(S=t.form)==null?void 0:S.removeEventListener("reset",v)}},[]);const ee=e&&!x,ae=l.useCallback(t=>{t.key===" "&&E(!0)},[E]),te=l.useCallback(t=>{t.key===" "&&E(!1)},[E]);q(()=>{if(!I.current)return;I.current.checked!==h&&K(I.current.checked)},[I.current]);const re=l.useCallback((t={},v=null)=>{const S=U=>{F&&U.preventDefault(),E(!0)};return{...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a),"aria-hidden":!0,onMouseDown:y(t.onMouseDown,S),onMouseUp:y(t.onMouseUp,()=>E(!1)),onMouseEnter:y(t.onMouseEnter,()=>Q(!0)),onMouseLeave:y(t.onMouseLeave,()=>Q(!1))}},[M,h,e,F,D,G,r,s,a]),ie=l.useCallback((t={},v=null)=>({...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a)}),[M,h,e,F,D,G,r,s,a]),le=l.useCallback((t={},v=null)=>({...L,...t,ref:oe(v,S=>{S&&ne(S.tagName==="LABEL")}),onClick:y(t.onClick,()=>{var S;Y||((S=I.current)==null||S.click(),requestAnimationFrame(()=>{var U;(U=I.current)==null||U.focus({preventScroll:!0})}))}),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[L,e,h,s,Y]),ce=l.useCallback((t={},v=null)=>({...t,ref:oe(I,v),type:"checkbox",name:b,value:R,id:d,tabIndex:_,onChange:y(t.onChange,Z),onBlur:y(t.onBlur,O,()=>H(!1)),onFocus:y(t.onFocus,B,()=>H(!0)),onKeyDown:y(t.onKeyDown,ae),onKeyUp:y(t.onKeyUp,te),required:c,checked:h,disabled:ee,readOnly:a,"aria-label":A,"aria-labelledby":j,"aria-invalid":w?!!w:s,"aria-describedby":m,"aria-disabled":e,style:Fe}),[b,R,d,Z,O,B,ae,te,c,h,ee,a,A,j,w,s,m,e,_]),de=l.useCallback((t={},v=null)=>({...t,ref:v,onMouseDown:y(t.onMouseDown,_e),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[h,e,s]);return{state:{isInvalid:s,isFocused:F,isChecked:h,isActive:M,isHovered:G,isIndeterminate:r,isDisabled:e,isReadOnly:a,isRequired:c},getRootProps:le,getCheckboxProps:re,getIndicatorProps:ie,getInputProps:ce,getLabelProps:de,htmlProps:L}}function _e(o){o.preventDefault(),o.stopPropagation()}var De={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Ee={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Le=J({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Ne=J({from:{opacity:0},to:{opacity:1}}),Be=J({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Ge=$(function(n,e){const a=Ie(),c={...a,...n},s=me("Checkbox",c),d=he(n),{spacing:p="0.5rem",className:C,children:m,iconColor:g,iconSize:u,icon:x=f.jsx(je,{}),isChecked:k,isDisabled:r=a==null?void 0:a.isDisabled,onChange:b,inputProps:R,..._}=d;let A=k;a!=null&&a.value&&d.value&&(A=a.value.includes(d.value));let j=b;a!=null&&a.onChange&&d.value&&(j=ge(a.onChange,b));const{state:w,getInputProps:z,getCheckboxProps:L,getLabelProps:N,getRootProps:O}=Ae({..._,isDisabled:r,isChecked:A,onChange:j}),B=Se(w.isChecked),D=l.useMemo(()=>({animation:B?w.isIndeterminate?`${Ne} 20ms linear, ${Be} 200ms linear`:`${Le} 200ms linear`:void 0,fontSize:u,color:g,...s.icon}),[g,u,B,w.isIndeterminate,s.icon]),T=l.cloneElement(x,{__css:D,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return f.jsxs(P.label,{__css:{...Ee,...s.container},className:be("chakra-checkbox",C),...O(),children:[f.jsx("input",{className:"chakra-checkbox__input",...z(R,e)}),f.jsx(P.span,{__css:{...De,...s.control},className:"chakra-checkbox__control",...L(),children:T}),m&&f.jsx(P.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:p,...s.label},children:m})]})});Ge.displayName="Checkbox";var Me=$(function(n,e){const{templateAreas:a,gap:c,rowGap:s,columnGap:d,column:p,row:C,autoFlow:m,autoRows:g,templateRows:u,autoColumns:x,templateColumns:k,...r}=n,b={display:"grid",gridTemplateAreas:a,gridGap:c,gridRowGap:s,gridColumnGap:d,gridAutoColumns:x,gridColumn:p,gridRow:C,gridAutoFlow:m,gridAutoRows:g,gridTemplateRows:u,gridTemplateColumns:k};return f.jsx(P.div,{ref:e,__css:b,...r})});Me.displayName="Grid";export{Ge as C,Me as G,xe as I};
+========
+import{f as $,j as f,r as l,y as q,g as P,b as ue,d as W,x as fe,l as i,q as y,m as oe,a4 as J,k as me,o as he,H as ge,e as be}from"./input.js";import{aj as ke}from"./App-5Q89H_Oo.js";import{t as ve}from"./index-pz0vT7Or.js";var X=$(function(n,e){const{htmlWidth:a,htmlHeight:c,alt:s,...d}=n;return f.jsx("img",{width:a,height:c,ref:e,alt:s,...d})});X.displayName="NativeImage";function pe(o){const{loading:n,src:e,srcSet:a,onLoad:c,onError:s,crossOrigin:d,sizes:p,ignoreFallback:C}=o,[m,g]=l.useState("pending");l.useEffect(()=>{g(e?"loading":"pending")},[e]);const u=l.useRef(),x=l.useCallback(()=>{if(!e)return;k();const r=new Image;r.src=e,d&&(r.crossOrigin=d),a&&(r.srcset=a),p&&(r.sizes=p),n&&(r.loading=n),r.onload=b=>{k(),g("loaded"),c==null||c(b)},r.onerror=b=>{k(),g("failed"),s==null||s(b)},u.current=r},[e,d,a,p,c,s,n]),k=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return q(()=>{if(!C)return m==="loading"&&x(),()=>{k()}},[m,x,C]),C?"loaded":m}var Ce=(o,n)=>o!=="loaded"&&n==="beforeLoadOrError"||o==="failed"&&n==="onError";function ye(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}var xe=$(function(n,e){const{fallbackSrc:a,fallback:c,src:s,srcSet:d,align:p,fit:C,loading:m,ignoreFallback:g,crossOrigin:u,fallbackStrategy:x="beforeLoadOrError",referrerPolicy:k,...r}=n,b=a!==void 0||c!==void 0,R=m!=null||g||!b,_=pe({...n,crossOrigin:u,ignoreFallback:R}),A=Ce(_,x),j={ref:e,objectFit:C,objectPosition:p,...R?r:ye(r,["onError","onLoad"])};return A?c||f.jsx(P.img,{as:X,className:"chakra-image__placeholder",src:a,...j}):f.jsx(P.img,{as:X,src:s,srcSet:d,crossOrigin:u,loading:m,referrerPolicy:k,className:"chakra-image",...j})});xe.displayName="Image";var[qe,Ie]=ue({name:"CheckboxGroupContext",strict:!1});function Se(o){const[n,e]=l.useState(o),[a,c]=l.useState(!1);return o!==n&&(c(!0),e(o)),a}function we(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...o,children:f.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Pe(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...o,children:f.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function je(o){const{isIndeterminate:n,isChecked:e,...a}=o,c=n?Pe:we;return e||n?f.jsx(P.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f.jsx(c,{...a})}):null}var Fe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Re(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}function Ae(o={}){const n=ke(o),{isDisabled:e,isReadOnly:a,isRequired:c,isInvalid:s,id:d,onBlur:p,onFocus:C,"aria-describedby":m}=n,{defaultChecked:g,isChecked:u,isFocusable:x,onChange:k,isIndeterminate:r,name:b,value:R,tabIndex:_=void 0,"aria-label":A,"aria-labelledby":j,"aria-invalid":w,...z}=o,L=Re(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=W(k),O=W(p),B=W(C),[D,T]=l.useState(!1),[F,H]=l.useState(!1),[G,Q]=l.useState(!1),[M,E]=l.useState(!1);l.useEffect(()=>ve(T),[]);const I=l.useRef(null),[Y,ne]=l.useState(!0),[se,K]=l.useState(!!g),V=u!==void 0,h=V?u:se,Z=l.useCallback(t=>{if(a||e){t.preventDefault();return}V||K(h?t.target.checked:r?!0:t.target.checked),N==null||N(t)},[a,e,h,V,r,N]);q(()=>{I.current&&(I.current.indeterminate=!!r)},[r]),fe(()=>{e&&H(!1)},[e,H]),q(()=>{const t=I.current;if(!(t!=null&&t.form))return;const v=()=>{K(!!g)};return t.form.addEventListener("reset",v),()=>{var S;return(S=t.form)==null?void 0:S.removeEventListener("reset",v)}},[]);const ee=e&&!x,ae=l.useCallback(t=>{t.key===" "&&E(!0)},[E]),te=l.useCallback(t=>{t.key===" "&&E(!1)},[E]);q(()=>{if(!I.current)return;I.current.checked!==h&&K(I.current.checked)},[I.current]);const re=l.useCallback((t={},v=null)=>{const S=U=>{F&&U.preventDefault(),E(!0)};return{...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a),"aria-hidden":!0,onMouseDown:y(t.onMouseDown,S),onMouseUp:y(t.onMouseUp,()=>E(!1)),onMouseEnter:y(t.onMouseEnter,()=>Q(!0)),onMouseLeave:y(t.onMouseLeave,()=>Q(!1))}},[M,h,e,F,D,G,r,s,a]),ie=l.useCallback((t={},v=null)=>({...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a)}),[M,h,e,F,D,G,r,s,a]),le=l.useCallback((t={},v=null)=>({...L,...t,ref:oe(v,S=>{S&&ne(S.tagName==="LABEL")}),onClick:y(t.onClick,()=>{var S;Y||((S=I.current)==null||S.click(),requestAnimationFrame(()=>{var U;(U=I.current)==null||U.focus({preventScroll:!0})}))}),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[L,e,h,s,Y]),ce=l.useCallback((t={},v=null)=>({...t,ref:oe(I,v),type:"checkbox",name:b,value:R,id:d,tabIndex:_,onChange:y(t.onChange,Z),onBlur:y(t.onBlur,O,()=>H(!1)),onFocus:y(t.onFocus,B,()=>H(!0)),onKeyDown:y(t.onKeyDown,ae),onKeyUp:y(t.onKeyUp,te),required:c,checked:h,disabled:ee,readOnly:a,"aria-label":A,"aria-labelledby":j,"aria-invalid":w?!!w:s,"aria-describedby":m,"aria-disabled":e,style:Fe}),[b,R,d,Z,O,B,ae,te,c,h,ee,a,A,j,w,s,m,e,_]),de=l.useCallback((t={},v=null)=>({...t,ref:v,onMouseDown:y(t.onMouseDown,_e),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[h,e,s]);return{state:{isInvalid:s,isFocused:F,isChecked:h,isActive:M,isHovered:G,isIndeterminate:r,isDisabled:e,isReadOnly:a,isRequired:c},getRootProps:le,getCheckboxProps:re,getIndicatorProps:ie,getInputProps:ce,getLabelProps:de,htmlProps:L}}function _e(o){o.preventDefault(),o.stopPropagation()}var De={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Ee={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Le=J({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Ne=J({from:{opacity:0},to:{opacity:1}}),Be=J({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Ge=$(function(n,e){const a=Ie(),c={...a,...n},s=me("Checkbox",c),d=he(n),{spacing:p="0.5rem",className:C,children:m,iconColor:g,iconSize:u,icon:x=f.jsx(je,{}),isChecked:k,isDisabled:r=a==null?void 0:a.isDisabled,onChange:b,inputProps:R,..._}=d;let A=k;a!=null&&a.value&&d.value&&(A=a.value.includes(d.value));let j=b;a!=null&&a.onChange&&d.value&&(j=ge(a.onChange,b));const{state:w,getInputProps:z,getCheckboxProps:L,getLabelProps:N,getRootProps:O}=Ae({..._,isDisabled:r,isChecked:A,onChange:j}),B=Se(w.isChecked),D=l.useMemo(()=>({animation:B?w.isIndeterminate?`${Ne} 20ms linear, ${Be} 200ms linear`:`${Le} 200ms linear`:void 0,fontSize:u,color:g,...s.icon}),[g,u,B,w.isIndeterminate,s.icon]),T=l.cloneElement(x,{__css:D,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return f.jsxs(P.label,{__css:{...Ee,...s.container},className:be("chakra-checkbox",C),...O(),children:[f.jsx("input",{className:"chakra-checkbox__input",...z(R,e)}),f.jsx(P.span,{__css:{...De,...s.control},className:"chakra-checkbox__control",...L(),children:T}),m&&f.jsx(P.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:p,...s.label},children:m})]})});Ge.displayName="Checkbox";var Me=$(function(n,e){const{templateAreas:a,gap:c,rowGap:s,columnGap:d,column:p,row:C,autoFlow:m,autoRows:g,templateRows:u,autoColumns:x,templateColumns:k,...r}=n,b={display:"grid",gridTemplateAreas:a,gridGap:c,gridRowGap:s,gridColumnGap:d,gridAutoColumns:x,gridColumn:p,gridRow:C,gridAutoFlow:m,gridAutoRows:g,gridTemplateRows:u,gridTemplateColumns:k};return f.jsx(P.div,{ref:e,__css:b,...r})});Me.displayName="Grid";export{Ge as C,Me as G,xe as I};
+>>>>>>>> f551431 (build dist):dist/workspace_web/chunk-JARCRF6W-26PFjau4.js
diff --git a/dist/workspace_web/chunk-JARCRF6W-kzTkLGda.js b/dist/workspace_web/chunk-JARCRF6W-kzTkLGda.js
index ab3bb2d..e2a41c3 100644
--- a/dist/workspace_web/chunk-JARCRF6W-kzTkLGda.js
+++ b/dist/workspace_web/chunk-JARCRF6W-kzTkLGda.js
@@ -1 +1,5 @@
+<<<<<<<< HEAD:dist/workspace_web/chunk-JARCRF6W-kzTkLGda.js
import{f as $,j as f,r as l,y as q,g as P,b as ue,d as W,x as fe,l as i,q as y,m as oe,a4 as J,k as me,o as he,H as ge,e as be}from"./input.js";import{aj as ke}from"./App-cZxcRZX7.js";import{t as ve}from"./index-pz0vT7Or.js";var X=$(function(n,e){const{htmlWidth:a,htmlHeight:c,alt:s,...d}=n;return f.jsx("img",{width:a,height:c,ref:e,alt:s,...d})});X.displayName="NativeImage";function pe(o){const{loading:n,src:e,srcSet:a,onLoad:c,onError:s,crossOrigin:d,sizes:p,ignoreFallback:C}=o,[m,g]=l.useState("pending");l.useEffect(()=>{g(e?"loading":"pending")},[e]);const u=l.useRef(),x=l.useCallback(()=>{if(!e)return;k();const r=new Image;r.src=e,d&&(r.crossOrigin=d),a&&(r.srcset=a),p&&(r.sizes=p),n&&(r.loading=n),r.onload=b=>{k(),g("loaded"),c==null||c(b)},r.onerror=b=>{k(),g("failed"),s==null||s(b)},u.current=r},[e,d,a,p,c,s,n]),k=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return q(()=>{if(!C)return m==="loading"&&x(),()=>{k()}},[m,x,C]),C?"loaded":m}var Ce=(o,n)=>o!=="loaded"&&n==="beforeLoadOrError"||o==="failed"&&n==="onError";function ye(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}var xe=$(function(n,e){const{fallbackSrc:a,fallback:c,src:s,srcSet:d,align:p,fit:C,loading:m,ignoreFallback:g,crossOrigin:u,fallbackStrategy:x="beforeLoadOrError",referrerPolicy:k,...r}=n,b=a!==void 0||c!==void 0,R=m!=null||g||!b,_=pe({...n,crossOrigin:u,ignoreFallback:R}),A=Ce(_,x),j={ref:e,objectFit:C,objectPosition:p,...R?r:ye(r,["onError","onLoad"])};return A?c||f.jsx(P.img,{as:X,className:"chakra-image__placeholder",src:a,...j}):f.jsx(P.img,{as:X,src:s,srcSet:d,crossOrigin:u,loading:m,referrerPolicy:k,className:"chakra-image",...j})});xe.displayName="Image";var[qe,Ie]=ue({name:"CheckboxGroupContext",strict:!1});function Se(o){const[n,e]=l.useState(o),[a,c]=l.useState(!1);return o!==n&&(c(!0),e(o)),a}function we(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...o,children:f.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Pe(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...o,children:f.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function je(o){const{isIndeterminate:n,isChecked:e,...a}=o,c=n?Pe:we;return e||n?f.jsx(P.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f.jsx(c,{...a})}):null}var Fe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Re(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}function Ae(o={}){const n=ke(o),{isDisabled:e,isReadOnly:a,isRequired:c,isInvalid:s,id:d,onBlur:p,onFocus:C,"aria-describedby":m}=n,{defaultChecked:g,isChecked:u,isFocusable:x,onChange:k,isIndeterminate:r,name:b,value:R,tabIndex:_=void 0,"aria-label":A,"aria-labelledby":j,"aria-invalid":w,...z}=o,L=Re(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=W(k),O=W(p),B=W(C),[D,T]=l.useState(!1),[F,H]=l.useState(!1),[G,Q]=l.useState(!1),[M,E]=l.useState(!1);l.useEffect(()=>ve(T),[]);const I=l.useRef(null),[Y,ne]=l.useState(!0),[se,K]=l.useState(!!g),V=u!==void 0,h=V?u:se,Z=l.useCallback(t=>{if(a||e){t.preventDefault();return}V||K(h?t.target.checked:r?!0:t.target.checked),N==null||N(t)},[a,e,h,V,r,N]);q(()=>{I.current&&(I.current.indeterminate=!!r)},[r]),fe(()=>{e&&H(!1)},[e,H]),q(()=>{const t=I.current;if(!(t!=null&&t.form))return;const v=()=>{K(!!g)};return t.form.addEventListener("reset",v),()=>{var S;return(S=t.form)==null?void 0:S.removeEventListener("reset",v)}},[]);const ee=e&&!x,ae=l.useCallback(t=>{t.key===" "&&E(!0)},[E]),te=l.useCallback(t=>{t.key===" "&&E(!1)},[E]);q(()=>{if(!I.current)return;I.current.checked!==h&&K(I.current.checked)},[I.current]);const re=l.useCallback((t={},v=null)=>{const S=U=>{F&&U.preventDefault(),E(!0)};return{...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a),"aria-hidden":!0,onMouseDown:y(t.onMouseDown,S),onMouseUp:y(t.onMouseUp,()=>E(!1)),onMouseEnter:y(t.onMouseEnter,()=>Q(!0)),onMouseLeave:y(t.onMouseLeave,()=>Q(!1))}},[M,h,e,F,D,G,r,s,a]),ie=l.useCallback((t={},v=null)=>({...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a)}),[M,h,e,F,D,G,r,s,a]),le=l.useCallback((t={},v=null)=>({...L,...t,ref:oe(v,S=>{S&&ne(S.tagName==="LABEL")}),onClick:y(t.onClick,()=>{var S;Y||((S=I.current)==null||S.click(),requestAnimationFrame(()=>{var U;(U=I.current)==null||U.focus({preventScroll:!0})}))}),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[L,e,h,s,Y]),ce=l.useCallback((t={},v=null)=>({...t,ref:oe(I,v),type:"checkbox",name:b,value:R,id:d,tabIndex:_,onChange:y(t.onChange,Z),onBlur:y(t.onBlur,O,()=>H(!1)),onFocus:y(t.onFocus,B,()=>H(!0)),onKeyDown:y(t.onKeyDown,ae),onKeyUp:y(t.onKeyUp,te),required:c,checked:h,disabled:ee,readOnly:a,"aria-label":A,"aria-labelledby":j,"aria-invalid":w?!!w:s,"aria-describedby":m,"aria-disabled":e,style:Fe}),[b,R,d,Z,O,B,ae,te,c,h,ee,a,A,j,w,s,m,e,_]),de=l.useCallback((t={},v=null)=>({...t,ref:v,onMouseDown:y(t.onMouseDown,_e),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[h,e,s]);return{state:{isInvalid:s,isFocused:F,isChecked:h,isActive:M,isHovered:G,isIndeterminate:r,isDisabled:e,isReadOnly:a,isRequired:c},getRootProps:le,getCheckboxProps:re,getIndicatorProps:ie,getInputProps:ce,getLabelProps:de,htmlProps:L}}function _e(o){o.preventDefault(),o.stopPropagation()}var De={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Ee={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Le=J({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Ne=J({from:{opacity:0},to:{opacity:1}}),Be=J({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Ge=$(function(n,e){const a=Ie(),c={...a,...n},s=me("Checkbox",c),d=he(n),{spacing:p="0.5rem",className:C,children:m,iconColor:g,iconSize:u,icon:x=f.jsx(je,{}),isChecked:k,isDisabled:r=a==null?void 0:a.isDisabled,onChange:b,inputProps:R,..._}=d;let A=k;a!=null&&a.value&&d.value&&(A=a.value.includes(d.value));let j=b;a!=null&&a.onChange&&d.value&&(j=ge(a.onChange,b));const{state:w,getInputProps:z,getCheckboxProps:L,getLabelProps:N,getRootProps:O}=Ae({..._,isDisabled:r,isChecked:A,onChange:j}),B=Se(w.isChecked),D=l.useMemo(()=>({animation:B?w.isIndeterminate?`${Ne} 20ms linear, ${Be} 200ms linear`:`${Le} 200ms linear`:void 0,fontSize:u,color:g,...s.icon}),[g,u,B,w.isIndeterminate,s.icon]),T=l.cloneElement(x,{__css:D,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return f.jsxs(P.label,{__css:{...Ee,...s.container},className:be("chakra-checkbox",C),...O(),children:[f.jsx("input",{className:"chakra-checkbox__input",...z(R,e)}),f.jsx(P.span,{__css:{...De,...s.control},className:"chakra-checkbox__control",...L(),children:T}),m&&f.jsx(P.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:p,...s.label},children:m})]})});Ge.displayName="Checkbox";var Me=$(function(n,e){const{templateAreas:a,gap:c,rowGap:s,columnGap:d,column:p,row:C,autoFlow:m,autoRows:g,templateRows:u,autoColumns:x,templateColumns:k,...r}=n,b={display:"grid",gridTemplateAreas:a,gridGap:c,gridRowGap:s,gridColumnGap:d,gridAutoColumns:x,gridColumn:p,gridRow:C,gridAutoFlow:m,gridAutoRows:g,gridTemplateRows:u,gridTemplateColumns:k};return f.jsx(P.div,{ref:e,__css:b,...r})});Me.displayName="Grid";export{Ge as C,Me as G,xe as I};
+========
+import{f as $,j as f,r as l,y as q,g as P,b as ue,d as W,x as fe,l as i,q as y,m as oe,a4 as J,k as me,o as he,H as ge,e as be}from"./input.js";import{aj as ke}from"./App-5Q89H_Oo.js";import{t as ve}from"./index-pz0vT7Or.js";var X=$(function(n,e){const{htmlWidth:a,htmlHeight:c,alt:s,...d}=n;return f.jsx("img",{width:a,height:c,ref:e,alt:s,...d})});X.displayName="NativeImage";function pe(o){const{loading:n,src:e,srcSet:a,onLoad:c,onError:s,crossOrigin:d,sizes:p,ignoreFallback:C}=o,[m,g]=l.useState("pending");l.useEffect(()=>{g(e?"loading":"pending")},[e]);const u=l.useRef(),x=l.useCallback(()=>{if(!e)return;k();const r=new Image;r.src=e,d&&(r.crossOrigin=d),a&&(r.srcset=a),p&&(r.sizes=p),n&&(r.loading=n),r.onload=b=>{k(),g("loaded"),c==null||c(b)},r.onerror=b=>{k(),g("failed"),s==null||s(b)},u.current=r},[e,d,a,p,c,s,n]),k=()=>{u.current&&(u.current.onload=null,u.current.onerror=null,u.current=null)};return q(()=>{if(!C)return m==="loading"&&x(),()=>{k()}},[m,x,C]),C?"loaded":m}var Ce=(o,n)=>o!=="loaded"&&n==="beforeLoadOrError"||o==="failed"&&n==="onError";function ye(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}var xe=$(function(n,e){const{fallbackSrc:a,fallback:c,src:s,srcSet:d,align:p,fit:C,loading:m,ignoreFallback:g,crossOrigin:u,fallbackStrategy:x="beforeLoadOrError",referrerPolicy:k,...r}=n,b=a!==void 0||c!==void 0,R=m!=null||g||!b,_=pe({...n,crossOrigin:u,ignoreFallback:R}),A=Ce(_,x),j={ref:e,objectFit:C,objectPosition:p,...R?r:ye(r,["onError","onLoad"])};return A?c||f.jsx(P.img,{as:X,className:"chakra-image__placeholder",src:a,...j}):f.jsx(P.img,{as:X,src:s,srcSet:d,crossOrigin:u,loading:m,referrerPolicy:k,className:"chakra-image",...j})});xe.displayName="Image";var[qe,Ie]=ue({name:"CheckboxGroupContext",strict:!1});function Se(o){const[n,e]=l.useState(o),[a,c]=l.useState(!1);return o!==n&&(c(!0),e(o)),a}function we(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...o,children:f.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Pe(o){return f.jsx(P.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...o,children:f.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function je(o){const{isIndeterminate:n,isChecked:e,...a}=o,c=n?Pe:we;return e||n?f.jsx(P.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:f.jsx(c,{...a})}):null}var Fe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Re(o,n=[]){const e=Object.assign({},o);for(const a of n)a in e&&delete e[a];return e}function Ae(o={}){const n=ke(o),{isDisabled:e,isReadOnly:a,isRequired:c,isInvalid:s,id:d,onBlur:p,onFocus:C,"aria-describedby":m}=n,{defaultChecked:g,isChecked:u,isFocusable:x,onChange:k,isIndeterminate:r,name:b,value:R,tabIndex:_=void 0,"aria-label":A,"aria-labelledby":j,"aria-invalid":w,...z}=o,L=Re(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=W(k),O=W(p),B=W(C),[D,T]=l.useState(!1),[F,H]=l.useState(!1),[G,Q]=l.useState(!1),[M,E]=l.useState(!1);l.useEffect(()=>ve(T),[]);const I=l.useRef(null),[Y,ne]=l.useState(!0),[se,K]=l.useState(!!g),V=u!==void 0,h=V?u:se,Z=l.useCallback(t=>{if(a||e){t.preventDefault();return}V||K(h?t.target.checked:r?!0:t.target.checked),N==null||N(t)},[a,e,h,V,r,N]);q(()=>{I.current&&(I.current.indeterminate=!!r)},[r]),fe(()=>{e&&H(!1)},[e,H]),q(()=>{const t=I.current;if(!(t!=null&&t.form))return;const v=()=>{K(!!g)};return t.form.addEventListener("reset",v),()=>{var S;return(S=t.form)==null?void 0:S.removeEventListener("reset",v)}},[]);const ee=e&&!x,ae=l.useCallback(t=>{t.key===" "&&E(!0)},[E]),te=l.useCallback(t=>{t.key===" "&&E(!1)},[E]);q(()=>{if(!I.current)return;I.current.checked!==h&&K(I.current.checked)},[I.current]);const re=l.useCallback((t={},v=null)=>{const S=U=>{F&&U.preventDefault(),E(!0)};return{...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a),"aria-hidden":!0,onMouseDown:y(t.onMouseDown,S),onMouseUp:y(t.onMouseUp,()=>E(!1)),onMouseEnter:y(t.onMouseEnter,()=>Q(!0)),onMouseLeave:y(t.onMouseLeave,()=>Q(!1))}},[M,h,e,F,D,G,r,s,a]),ie=l.useCallback((t={},v=null)=>({...t,ref:v,"data-active":i(M),"data-hover":i(G),"data-checked":i(h),"data-focus":i(F),"data-focus-visible":i(F&&D),"data-indeterminate":i(r),"data-disabled":i(e),"data-invalid":i(s),"data-readonly":i(a)}),[M,h,e,F,D,G,r,s,a]),le=l.useCallback((t={},v=null)=>({...L,...t,ref:oe(v,S=>{S&&ne(S.tagName==="LABEL")}),onClick:y(t.onClick,()=>{var S;Y||((S=I.current)==null||S.click(),requestAnimationFrame(()=>{var U;(U=I.current)==null||U.focus({preventScroll:!0})}))}),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[L,e,h,s,Y]),ce=l.useCallback((t={},v=null)=>({...t,ref:oe(I,v),type:"checkbox",name:b,value:R,id:d,tabIndex:_,onChange:y(t.onChange,Z),onBlur:y(t.onBlur,O,()=>H(!1)),onFocus:y(t.onFocus,B,()=>H(!0)),onKeyDown:y(t.onKeyDown,ae),onKeyUp:y(t.onKeyUp,te),required:c,checked:h,disabled:ee,readOnly:a,"aria-label":A,"aria-labelledby":j,"aria-invalid":w?!!w:s,"aria-describedby":m,"aria-disabled":e,style:Fe}),[b,R,d,Z,O,B,ae,te,c,h,ee,a,A,j,w,s,m,e,_]),de=l.useCallback((t={},v=null)=>({...t,ref:v,onMouseDown:y(t.onMouseDown,_e),"data-disabled":i(e),"data-checked":i(h),"data-invalid":i(s)}),[h,e,s]);return{state:{isInvalid:s,isFocused:F,isChecked:h,isActive:M,isHovered:G,isIndeterminate:r,isDisabled:e,isReadOnly:a,isRequired:c},getRootProps:le,getCheckboxProps:re,getIndicatorProps:ie,getInputProps:ce,getLabelProps:de,htmlProps:L}}function _e(o){o.preventDefault(),o.stopPropagation()}var De={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Ee={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Le=J({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Ne=J({from:{opacity:0},to:{opacity:1}}),Be=J({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Ge=$(function(n,e){const a=Ie(),c={...a,...n},s=me("Checkbox",c),d=he(n),{spacing:p="0.5rem",className:C,children:m,iconColor:g,iconSize:u,icon:x=f.jsx(je,{}),isChecked:k,isDisabled:r=a==null?void 0:a.isDisabled,onChange:b,inputProps:R,..._}=d;let A=k;a!=null&&a.value&&d.value&&(A=a.value.includes(d.value));let j=b;a!=null&&a.onChange&&d.value&&(j=ge(a.onChange,b));const{state:w,getInputProps:z,getCheckboxProps:L,getLabelProps:N,getRootProps:O}=Ae({..._,isDisabled:r,isChecked:A,onChange:j}),B=Se(w.isChecked),D=l.useMemo(()=>({animation:B?w.isIndeterminate?`${Ne} 20ms linear, ${Be} 200ms linear`:`${Le} 200ms linear`:void 0,fontSize:u,color:g,...s.icon}),[g,u,B,w.isIndeterminate,s.icon]),T=l.cloneElement(x,{__css:D,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return f.jsxs(P.label,{__css:{...Ee,...s.container},className:be("chakra-checkbox",C),...O(),children:[f.jsx("input",{className:"chakra-checkbox__input",...z(R,e)}),f.jsx(P.span,{__css:{...De,...s.control},className:"chakra-checkbox__control",...L(),children:T}),m&&f.jsx(P.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:p,...s.label},children:m})]})});Ge.displayName="Checkbox";var Me=$(function(n,e){const{templateAreas:a,gap:c,rowGap:s,columnGap:d,column:p,row:C,autoFlow:m,autoRows:g,templateRows:u,autoColumns:x,templateColumns:k,...r}=n,b={display:"grid",gridTemplateAreas:a,gridGap:c,gridRowGap:s,gridColumnGap:d,gridAutoColumns:x,gridColumn:p,gridRow:C,gridAutoFlow:m,gridAutoRows:g,gridTemplateRows:u,gridTemplateColumns:k};return f.jsx(P.div,{ref:e,__css:b,...r})});Me.displayName="Grid";export{Ge as C,Me as G,xe as I};
+>>>>>>>> f551431 (build dist):dist/workspace_web/chunk-JARCRF6W-26PFjau4.js
diff --git a/dist/workspace_web/chunk-NTCQBYKE-lObvYl8K.js b/dist/workspace_web/chunk-NTCQBYKE-lObvYl8K.js
new file mode 100644
index 0000000..a6aba00
--- /dev/null
+++ b/dist/workspace_web/chunk-NTCQBYKE-lObvYl8K.js
@@ -0,0 +1,5 @@
+<<<<<<<< HEAD:dist/workspace_web/chunk-NTCQBYKE-mBgQZCps.js
+import{k as t}from"./App-cZxcRZX7.js";import{f as o,j as s}from"./input.js";var e=o((a,r)=>s.jsx(t,{align:"center",...a,direction:"column",ref:r}));e.displayName="VStack";export{e as V};
+========
+import{k as t}from"./App-5Q89H_Oo.js";import{f as o,j as s}from"./input.js";var e=o((a,r)=>s.jsx(t,{align:"center",...a,direction:"column",ref:r}));e.displayName="VStack";export{e as V};
+>>>>>>>> f551431 (build dist):dist/workspace_web/chunk-NTCQBYKE-lObvYl8K.js
diff --git a/dist/workspace_web/chunk-NTCQBYKE-mBgQZCps.js b/dist/workspace_web/chunk-NTCQBYKE-mBgQZCps.js
index 5a17e9a..a6aba00 100644
--- a/dist/workspace_web/chunk-NTCQBYKE-mBgQZCps.js
+++ b/dist/workspace_web/chunk-NTCQBYKE-mBgQZCps.js
@@ -1 +1,5 @@
+<<<<<<<< HEAD:dist/workspace_web/chunk-NTCQBYKE-mBgQZCps.js
import{k as t}from"./App-cZxcRZX7.js";import{f as o,j as s}from"./input.js";var e=o((a,r)=>s.jsx(t,{align:"center",...a,direction:"column",ref:r}));e.displayName="VStack";export{e as V};
+========
+import{k as t}from"./App-5Q89H_Oo.js";import{f as o,j as s}from"./input.js";var e=o((a,r)=>s.jsx(t,{align:"center",...a,direction:"column",ref:r}));e.displayName="VStack";export{e as V};
+>>>>>>>> f551431 (build dist):dist/workspace_web/chunk-NTCQBYKE-lObvYl8K.js
diff --git a/dist/workspace_web/input.js b/dist/workspace_web/input.js
index 08bf322..1dadc5a 100644
--- a/dist/workspace_web/input.js
+++ b/dist/workspace_web/input.js
@@ -323,9 +323,15 @@ Error generating stack: `+i.message+`
}
${wb}
+<<<<<<< HEAD
`});function _P(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function mn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=S.createContext(a);s.displayName=t;function l(){var u;const c=S.useContext(s);if(!c&&r){const d=new Error(i??_P(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[PP,TP]=mn({strict:!1,name:"PortalManagerContext"});function kb(e){const{children:t,zIndex:r}=e;return E.jsx(PP,{value:{zIndex:r},children:t})}kb.displayName="PortalManager";var ka=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect,[Cb,EP]=mn({strict:!1,name:"PortalContext"}),tp="chakra-portal",$P=".chakra-portal",AP=e=>E.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),RP=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=S.useState(null),i=S.useRef(null),[,a]=S.useState({});S.useEffect(()=>a({}),[]);const s=EP(),l=TP();ka(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=tp,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?E.jsx(AP,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Uh.createPortal(E.jsx(Cb,{value:i.current,children:u}),i.current):E.jsx("span",{ref:c=>{c&&o(c)}})},MP=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=S.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=tp),l},[o]),[,s]=S.useState({});return ka(()=>s({}),[]),ka(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?Uh.createPortal(E.jsx(Cb,{value:n?a:null,children:t}),a):null};function Na(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?E.jsx(MP,{containerRef:r,...n}):E.jsx(RP,{...n})}Na.className=tp;Na.selector=$P;Na.displayName="Portal";function zP(){const e=S.useContext(Qo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Fu=S.createContext({});Fu.displayName="ColorModeContext";function Du(){const e=S.useContext(Fu);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function wB(e,t){const{colorMode:r}=Du();return r==="dark"?t:e}var Cs={light:"chakra-ui-light",dark:"chakra-ui-dark"};function FP(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Cs.dark:Cs.light),document.body.classList.remove(n?Cs.light:Cs.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var DP="chakra-ui-color-mode";function IP(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var LP=IP(DP),jl=()=>{};function Av(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function _b(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=LP}=e,s=o==="dark"?"dark":"light",[l,u]=S.useState(()=>Av(a,s)),[c,d]=S.useState(()=>Av(a)),{getSystemTheme:f,setClassName:p,setDataset:v,addListener:y}=S.useMemo(()=>FP({preventTransition:i}),[i]),x=o==="system"&&!l?c:l,m=S.useCallback(C=>{const _=C==="system"?f():C;u(_),p(_==="dark"),v(_),a.set(_)},[a,f,p,v]);ka(()=>{o==="system"&&d(f())},[]),S.useEffect(()=>{const C=a.get();if(C){m(C);return}if(o==="system"){m("system");return}m(s)},[a,s,o,m]);const h=S.useCallback(()=>{m(x==="dark"?"light":"dark")},[x,m]);S.useEffect(()=>{if(n)return y(m)},[n,y,m]);const g=S.useMemo(()=>({colorMode:t??x,toggleColorMode:t?jl:h,setColorMode:t?jl:m,forced:t!==void 0}),[x,h,m,t]);return E.jsx(Fu.Provider,{value:g,children:r})}_b.displayName="ColorModeProvider";function Pb(e){const t=S.useMemo(()=>({colorMode:"dark",toggleColorMode:jl,setColorMode:jl,forced:!0}),[]);return E.jsx(Fu.Provider,{value:t,...e})}Pb.displayName="DarkMode";var OP=new Set(["dark","light","system"]);function BP(e){let t=e;return OP.has(t)||(t="light"),t}function jP(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,o=BP(t),i=r==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
`,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${i?a:s}`.trim()}function NP(e={}){const{nonce:t}=e;return E.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:jP(e)}})}function VP(){const e=Du(),t=zP();return{...e,theme:t}}function WP(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function UP(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function kB(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,u)=>{var c,d;if(e==="breakpoints")return WP(i,l,(c=a[u])!=null?c:l);const f=`${e}.${l}`;return UP(i,f,(d=a[u])!=null?d:l)});return Array.isArray(t)?s:s[0]}}var Be=(...e)=>e.filter(Boolean).join(" ");function HP(){return!1}function Kt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var CB=e=>{const{condition:t,message:r}=e;t&&HP()&&console.warn(r)};function lr(e,...t){return GP(e)?e(...t):e}var GP=e=>typeof e=="function",Rv=e=>e?"":void 0,_B=e=>e?!0:void 0;function $i(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function PB(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Nl={exports:{}};Nl.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",y="[object Map]",x="[object Number]",m="[object Null]",h="[object Object]",g="[object Proxy]",C="[object RegExp]",_="[object Set]",$="[object String]",T="[object Undefined]",A="[object WeakMap]",M="[object ArrayBuffer]",I="[object DataView]",ee="[object Float32Array]",ze="[object Float64Array]",Pe="[object Int8Array]",oe="[object Int16Array]",ue="[object Int32Array]",He="[object Uint8Array]",it="[object Uint8ClampedArray]",z="[object Uint16Array]",N="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,U={};U[ee]=U[ze]=U[Pe]=U[oe]=U[ue]=U[He]=U[it]=U[z]=U[N]=!0,U[s]=U[l]=U[M]=U[c]=U[I]=U[d]=U[f]=U[p]=U[y]=U[x]=U[h]=U[C]=U[_]=U[$]=U[A]=!1;var Ge=typeof is=="object"&&is&&is.Object===Object&&is,Xt=typeof self=="object"&&self&&self.Object===Object&&self,we=Ge||Xt||Function("return this")(),Fe=t&&!t.nodeType&&t,mt=Fe&&!0&&e&&!e.nodeType&&e,Qt=mt&&mt.exports===Fe,Ot=Qt&&Ge.process,qt=function(){try{var b=mt&&mt.require&&mt.require("util").types;return b||Ot&&Ot.binding&&Ot.binding("util")}catch{}}(),si=qt&&qt.isTypedArray;function Qa(b,w,P){switch(P.length){case 0:return b.call(w);case 1:return b.call(w,P[0]);case 2:return b.call(w,P[0],P[1]);case 3:return b.call(w,P[0],P[1],P[2])}return b.apply(w,P)}function Ow(b,w){for(var P=-1,F=Array(b);++P-1}function ak(b,w){var P=this.__data__,F=ts(P,b);return F<0?(++this.size,P.push([b,w])):P[F][1]=w,this}vr.prototype.clear=rk,vr.prototype.delete=nk,vr.prototype.get=ok,vr.prototype.has=ik,vr.prototype.set=ak;function qn(b){var w=-1,P=b==null?0:b.length;for(this.clear();++w1?P[K-1]:void 0,he=K>2?P[2]:void 0;for(ie=b.length>3&&typeof ie=="function"?(K--,ie):void 0,he&&Dk(P[0],P[1],he)&&(ie=K<3?void 0:ie,K=1),w=Object(w);++F-1&&b%1==0&&b0){if(++w>=o)return arguments[0]}else w=0;return b.apply(void 0,arguments)}}function Wk(b){if(b!=null){try{return Za.call(b)}catch{}try{return b+""}catch{}}return""}function os(b,w){return b===w||b!==b&&w!==w}var rc=tm(function(){return arguments}())?tm:function(b){return ui(b)&&mr.call(b,"callee")&&!Gw.call(b,"callee")},nc=Array.isArray;function oc(b){return b!=null&&am(b.length)&&!ic(b)}function Uk(b){return ui(b)&&oc(b)}var im=Yw||Xk;function ic(b){if(!bn(b))return!1;var w=rs(b);return w==p||w==v||w==u||w==g}function am(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=a}function bn(b){var w=typeof b;return b!=null&&(w=="object"||w=="function")}function ui(b){return b!=null&&typeof b=="object"}function Hk(b){if(!ui(b)||rs(b)!=h)return!1;var w=qp(b);if(w===null)return!0;var P=mr.call(w,"constructor")&&w.constructor;return typeof P=="function"&&P instanceof P&&Za.call(P)==Uw}var sm=si?Bw(si):xk;function Gk(b){return Ak(b,lm(b))}function lm(b){return oc(b)?gk(b,!0):wk(b)}var Kk=Rk(function(b,w,P,F){rm(b,w,P,F)});function Yk(b){return function(){return b}}function um(b){return b}function Xk(){return!1}e.exports=Kk})(Nl,Nl.exports);var KP=Nl.exports;const Ft=Xf(KP);var YP=e=>/!(important)?$/.test(e),Mv=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,XP=(e,t)=>r=>{const n=String(t),o=YP(n),i=Mv(n),a=e?`${e}.${i}`:i;let s=Kt(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=Mv(s),o?`${s} !important`:s};function rp(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=XP(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var _s=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Et(e,t){return r=>{const n={property:r,scale:e};return n.transform=rp({scale:e,transform:t}),n}}var QP=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function qP(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:QP(t),transform:r?rp({scale:r,compose:n}):n}}var Tb=["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 ZP(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Tb].join(" ")}function JP(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Tb].join(" ")}var eT={"--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(" ")},tT={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 rT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var nT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},vf={"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"},oT=new Set(Object.values(vf)),gf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),iT=e=>e.trim();function aT(e,t){if(e==null||gf.has(e))return e;if(!(yf(e)||gf.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(iT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in vf?vf[l]:l;u.unshift(c);const d=u.map(f=>{if(oT.has(f))return f;const p=f.indexOf(" "),[v,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],x=yf(y)?y:y&&y.split(" "),m=`colors.${v}`,h=m in t.__cssMap?t.__cssMap[m].varRef:v;return x?[h,...Array.isArray(x)?x:[x]].join(" "):h});return`${s}(${d.join(", ")})`}var yf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),sT=(e,t)=>aT(e,t??{});function lT(e){return/^var\(--.+\)$/.test(e)}var uT=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Jt=e=>t=>`${e}(${t})`,G={filter(e){return e!=="auto"?e:eT},backdropFilter(e){return e!=="auto"?e:tT},ring(e){return rT(G.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?ZP():e==="auto-gpu"?JP():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=uT(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(lT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:sT,blur:Jt("blur"),opacity:Jt("opacity"),brightness:Jt("brightness"),contrast:Jt("contrast"),dropShadow:Jt("drop-shadow"),grayscale:Jt("grayscale"),hueRotate:e=>Jt("hue-rotate")(G.degree(e)),invert:Jt("invert"),saturate:Jt("saturate"),sepia:Jt("sepia"),bgImage(e){return e==null||yf(e)||gf.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=nT[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},k={borderWidths:Et("borderWidths"),borderStyles:Et("borderStyles"),colors:Et("colors"),borders:Et("borders"),gradients:Et("gradients",G.gradient),radii:Et("radii",G.px),space:Et("space",_s(G.vh,G.px)),spaceT:Et("space",_s(G.vh,G.px)),degreeT(e){return{property:e,transform:G.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:rp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Et("sizes",_s(G.vh,G.px)),sizesT:Et("sizes",_s(G.vh,G.fraction)),shadows:Et("shadows"),logical:qP,blur:Et("blur",G.blur)},tl={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:G.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:G.bgClip}};Object.assign(tl,{bgImage:tl.backgroundImage,bgImg:tl.backgroundImage});var X={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(X,{rounded:X.borderRadius,roundedTop:X.borderTopRadius,roundedTopLeft:X.borderTopLeftRadius,roundedTopRight:X.borderTopRightRadius,roundedTopStart:X.borderStartStartRadius,roundedTopEnd:X.borderStartEndRadius,roundedBottom:X.borderBottomRadius,roundedBottomLeft:X.borderBottomLeftRadius,roundedBottomRight:X.borderBottomRightRadius,roundedBottomStart:X.borderEndStartRadius,roundedBottomEnd:X.borderEndEndRadius,roundedLeft:X.borderLeftRadius,roundedRight:X.borderRightRadius,roundedStart:X.borderInlineStartRadius,roundedEnd:X.borderInlineEndRadius,borderStart:X.borderInlineStart,borderEnd:X.borderInlineEnd,borderTopStartRadius:X.borderStartStartRadius,borderTopEndRadius:X.borderStartEndRadius,borderBottomStartRadius:X.borderEndStartRadius,borderBottomEndRadius:X.borderEndEndRadius,borderStartRadius:X.borderInlineStartRadius,borderEndRadius:X.borderInlineEndRadius,borderStartWidth:X.borderInlineStartWidth,borderEndWidth:X.borderInlineEndWidth,borderStartColor:X.borderInlineStartColor,borderEndColor:X.borderInlineEndColor,borderStartStyle:X.borderInlineStartStyle,borderEndStyle:X.borderInlineEndStyle});var cT={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")},bf={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(bf,{shadow:bf.boxShadow});var dT={filter:{transform:G.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",G.brightness),contrast:k.propT("--chakra-contrast",G.contrast),hueRotate:k.propT("--chakra-hue-rotate",G.hueRotate),invert:k.propT("--chakra-invert",G.invert),saturate:k.propT("--chakra-saturate",G.saturate),dropShadow:k.propT("--chakra-drop-shadow",G.dropShadow),backdropFilter:{transform:G.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",G.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",G.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",G.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",G.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",G.saturate)},Vl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:G.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Vl,{flexDir:Vl.flexDirection});var Eb={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},fT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:G.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},At={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",G.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(At,{w:At.width,h:At.height,minW:At.minWidth,maxW:At.maxWidth,minH:At.minHeight,maxH:At.maxHeight,overscroll:At.overscrollBehavior,overscrollX:At.overscrollBehaviorX,overscrollY:At.overscrollBehaviorY});var hT={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")};function pT(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},vT=mT(pT),gT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},yT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Dc=(e,t,r)=>{const n={},o=vT(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},bT={srOnly:{transform(e){return e===!0?gT:e==="focusable"?yT:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Dc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Dc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Dc(t,e,r)}},Ki={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ki,{insetStart:Ki.insetInlineStart,insetEnd:Ki.insetInlineEnd});var ST={ring:{transform:G.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},de={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(de,{m:de.margin,mt:de.marginTop,mr:de.marginRight,me:de.marginInlineEnd,marginEnd:de.marginInlineEnd,mb:de.marginBottom,ml:de.marginLeft,ms:de.marginInlineStart,marginStart:de.marginInlineStart,mx:de.marginX,my:de.marginY,p:de.padding,pt:de.paddingTop,py:de.paddingY,px:de.paddingX,pb:de.paddingBottom,pl:de.paddingLeft,ps:de.paddingInlineStart,paddingStart:de.paddingInlineStart,pr:de.paddingRight,pe:de.paddingInlineEnd,paddingEnd:de.paddingInlineEnd});var xT={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},wT={clipPath:!0,transform:k.propT("transform",G.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},kT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},CT={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",G.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},_T={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function $b(e){return Kt(e)&&e.reference?e.reference:String(e)}var Iu=(e,...t)=>t.map($b).join(` ${e} `).replace(/calc/g,""),zv=(...e)=>`calc(${Iu("+",...e)})`,Fv=(...e)=>`calc(${Iu("-",...e)})`,Sf=(...e)=>`calc(${Iu("*",...e)})`,Dv=(...e)=>`calc(${Iu("/",...e)})`,Iv=e=>{const t=$b(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Sf(t,-1)},Pn=Object.assign(e=>({add:(...t)=>Pn(zv(e,...t)),subtract:(...t)=>Pn(Fv(e,...t)),multiply:(...t)=>Pn(Sf(e,...t)),divide:(...t)=>Pn(Dv(e,...t)),negate:()=>Pn(Iv(e)),toString:()=>e.toString()}),{add:zv,subtract:Fv,multiply:Sf,divide:Dv,negate:Iv});function PT(e,t="-"){return e.replace(/\s+/g,t)}function TT(e){const t=PT(e.toString());return $T(ET(t))}function ET(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function $T(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function AT(e,t=""){return[t,e].filter(Boolean).join("-")}function RT(e,t){return`var(${e}${t?`, ${t}`:""})`}function MT(e,t=""){return TT(`--${AT(e,t)}`)}function O(e,t,r){const n=MT(e,r);return{variable:n,reference:RT(n,t)}}function zT(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=O(`${e}-${o}`,i);continue}r[n]=O(`${e}-${n}`)}return r}function FT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function DT(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function xf(e){if(e==null)return e;const{unitless:t}=DT(e);return t||typeof e=="number"?`${e}px`:e}var Ab=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,np=e=>Object.fromEntries(Object.entries(e).sort(Ab));function Lv(e){const t=np(e);return Object.assign(Object.values(t),t)}function IT(e){const t=Object.keys(np(e));return new Set(t)}function Ov(e){var t;if(!e)return e;e=(t=xf(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ai(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${xf(e)})`),t&&r.push("and",`(max-width: ${xf(t)})`),r.join(" ")}function LT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Lv(e),n=Object.entries(e).sort(Ab).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Ov(d):void 0,{_minW:Ov(s),breakpoint:a,minW:s,maxW:d,maxWQuery:Ai(null,d),minWQuery:Ai(s),minMaxQuery:Ai(s,d)}}),o=IT(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:np(e),asArray:Lv(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>Ai(a)).slice(1)],toArrayValue(a){if(!Kt(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;FT(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var je={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Br=e=>Rb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),gr=e=>Rb(t=>e(t,"~ &"),"[data-peer]",".peer"),Rb=(e,...t)=>t.map(e).join(", "),Lu={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Br(je.hover),_peerHover:gr(je.hover),_groupFocus:Br(je.focus),_peerFocus:gr(je.focus),_groupFocusVisible:Br(je.focusVisible),_peerFocusVisible:gr(je.focusVisible),_groupActive:Br(je.active),_peerActive:gr(je.active),_groupDisabled:Br(je.disabled),_peerDisabled:gr(je.disabled),_groupInvalid:Br(je.invalid),_peerInvalid:gr(je.invalid),_groupChecked:Br(je.checked),_peerChecked:gr(je.checked),_groupFocusWithin:Br(je.focusWithin),_peerFocusWithin:gr(je.focusWithin),_peerPlaceholderShown:gr(je.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Mb=Object.keys(Lu);function Bv(e,t){return O(String(e).replace(/\./g,"-"),void 0,t)}function OT(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=Bv(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[p,...v]=f,y=`${p}.-${v.join(".")}`,x=Pn.negate(s),m=Pn.negate(u);n[y]={value:x,var:l,varRef:m}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const v=[String(o).split(".")[0],f].join(".");if(!e[v])return f;const{reference:x}=Bv(v,t==null?void 0:t.cssVarPrefix);return x},d=Kt(s)?s:{default:s};r=Ft(r,Object.entries(d).reduce((f,[p,v])=>{var y,x;if(!v)return f;const m=c(`${v}`);if(p==="default")return f[l]=m,f;const h=(x=(y=Lu)==null?void 0:y[p])!=null?x:p;return f[h]={[l]:m},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function BT(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function jT(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function NT(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function jv(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(NT(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...s,f];if(n!=null&&n(a,p))return t(a,s);u[f]=i(d,p)}return u}return t(a,s)}return i(e)}var VT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function WT(e){return jT(e,VT)}function UT(e){return e.semanticTokens}function HT(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var GT=e=>Mb.includes(e)||e==="default";function KT({tokens:e,semanticTokens:t}){const r={};return jv(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),jv(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(GT)}),r}function YT(e){var t;const r=HT(e),n=WT(r),o=UT(r),i=KT({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=OT(i,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:LT(r.breakpoints)}),r}var op=Ft({},tl,X,cT,Vl,At,dT,ST,fT,Eb,bT,Ki,bf,de,_T,CT,xT,wT,hT,kT),XT=Object.assign({},de,At,Vl,Eb,Ki),TB=Object.keys(XT),QT=[...Object.keys(op),...Mb],qT={...op,...Lu},ZT=e=>e in qT,JT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=lr(e[a],t);if(s==null)continue;if(s=Kt(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!tE(t),nE=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=eE(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function oE(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=lr(i,n),d=JT(c)(n);let f={};for(let p in d){const v=d[p];let y=lr(v,n);p in r&&(p=r[p]),rE(p,y)&&(y=nE(n,y));let x=t[p];if(x===!0&&(x={property:p}),Kt(y)){f[p]=(s=f[p])!=null?s:{},f[p]=Ft({},f[p],o(y,!0));continue}let m=(u=(l=x==null?void 0:x.transform)==null?void 0:l.call(x,y,n,c))!=null?u:y;m=x!=null&&x.processResult?o(m,!0):m;const h=lr(x==null?void 0:x.property,n);if(!a&&(x!=null&&x.static)){const g=lr(x.static,n);f=Ft({},f,g)}if(h&&Array.isArray(h)){for(const g of h)f[g]=m;continue}if(h){h==="&"&&Kt(m)?f=Ft({},f,m):f[h]=m;continue}if(Kt(m)){f=Ft({},f,m);continue}f[p]=m}return f};return o}var zb=e=>t=>oE({theme:t,pseudos:Lu,configs:op})(e);function le(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function iE(e,t){if(Array.isArray(e))return e;if(Kt(e))return t(e);if(e!=null)return[e]}function aE(e,t){for(let r=t+1;r{Ft(u,{[g]:f?h[g]:{[m]:h[g]}})});continue}if(!p){f?Ft(u,h):u[m]=h;continue}u[m]=h}}return u}}function lE(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=sE(i);return Ft({},lr((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function EB(e,t,r){var n,o,i;return(i=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?i:r}function Ou(e){return BT(e,["styleConfig","size","variant","colorScheme"])}var uE=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function cE(e){return Kt(e)?uE.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var dE={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"},fE={"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)"},hE={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},pE={property:dE,easing:fE,duration:hE},mE=pE,vE={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},gE=vE,yE={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},bE=yE,SE={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},xE=SE,wE={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},kE=wE,CE={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},_E=CE,PE={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"},TE=PE,EE={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},$E=EE,AE={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"}},Fb=AE,Db={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"},RE={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"},ME={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},zE={...Db,...RE,container:ME},Ib=zE,FE={breakpoints:xE,zIndices:gE,radii:_E,blur:$E,colors:kE,...Fb,sizes:Ib,shadows:TE,space:Db,borders:bE,transition:mE},{defineMultiStyleConfig:DE,definePartsStyle:Ri}=le(["stepper","step","title","description","indicator","separator","icon","number"]),Sr=O("stepper-indicator-size"),go=O("stepper-icon-size"),yo=O("stepper-title-font-size"),Mi=O("stepper-description-font-size"),Si=O("stepper-accent-color"),IE=Ri(({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"},[Si.variable]:`colors.${e}.500`,_dark:{[Si.variable]:`colors.${e}.200`}},title:{fontSize:yo.reference,fontWeight:"medium"},description:{fontSize:Mi.reference,color:"chakra-subtle-text"},number:{fontSize:yo.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:go.reference,height:go.reference},indicator:{flexShrink:0,borderRadius:"full",width:Sr.reference,height:Sr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Si.reference},"&[data-status=complete]":{bg:Si.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Si.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Sr.reference} - 8px)`,top:`calc(${Sr.reference} + 4px)`,insetStart:`calc(${Sr.reference} / 2 - 1px)`}}})),LE=DE({baseStyle:IE,sizes:{xs:Ri({stepper:{[Sr.variable]:"sizes.4",[go.variable]:"sizes.3",[yo.variable]:"fontSizes.xs",[Mi.variable]:"fontSizes.xs"}}),sm:Ri({stepper:{[Sr.variable]:"sizes.6",[go.variable]:"sizes.4",[yo.variable]:"fontSizes.sm",[Mi.variable]:"fontSizes.xs"}}),md:Ri({stepper:{[Sr.variable]:"sizes.8",[go.variable]:"sizes.5",[yo.variable]:"fontSizes.md",[Mi.variable]:"fontSizes.sm"}}),lg:Ri({stepper:{[Sr.variable]:"sizes.10",[go.variable]:"sizes.6",[yo.variable]:"fontSizes.lg",[Mi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function J(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return J(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return J(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var OE=J("accordion").parts("root","container","button","panel").extend("icon"),BE=J("alert").parts("title","description","container").extend("icon","spinner"),jE=J("avatar").parts("label","badge","container").extend("excessLabel","group"),NE=J("breadcrumb").parts("link","item","container").extend("separator");J("button").parts();var VE=J("checkbox").parts("control","icon","container").extend("label");J("progress").parts("track","filledTrack").extend("label");var WE=J("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),UE=J("editable").parts("preview","input","textarea"),HE=J("form").parts("container","requiredIndicator","helperText"),GE=J("formError").parts("text","icon"),KE=J("input").parts("addon","field","element","group"),YE=J("list").parts("container","item","icon"),XE=J("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),QE=J("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),qE=J("numberinput").parts("root","field","stepperGroup","stepper");J("pininput").parts("field");var ZE=J("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),JE=J("progress").parts("label","filledTrack","track"),e$=J("radio").parts("container","control","label"),t$=J("select").parts("field","icon"),r$=J("slider").parts("container","track","thumb","filledTrack","mark"),n$=J("stat").parts("container","label","helpText","number","icon"),o$=J("switch").parts("container","track","thumb","label"),i$=J("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),a$=J("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),s$=J("tag").parts("container","label","closeButton"),l$=J("card").parts("container","header","body","footer");J("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Rn(e,t,r){return Math.min(Math.max(e,r),t)}class u$ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var zi=u$;function ip(e){if(typeof e!="string")throw new zi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=g$.test(e)?f$(e):e;const r=h$.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(Ca(s,2),16)),parseInt(Ca(a[3]||"f",2),16)/255]}const n=p$.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=m$.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=v$.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Rn(0,100,s)!==s)throw new zi(e);if(Rn(0,100,l)!==l)throw new zi(e);return[...y$(a,s,l),Number.isNaN(u)?1:u]}throw new zi(e)}function c$(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Nv=e=>parseInt(e.replace(/_/g,""),36),d$="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=Nv(t.substring(0,3)),n=Nv(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function f$(e){const t=e.toLowerCase().trim(),r=d$[c$(t)];if(!r)throw new zi(e);return`#${r}`}const Ca=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),h$=new RegExp(`^#${Ca("([a-f0-9])",3)}([a-f0-9])?$`,"i"),p$=new RegExp(`^#${Ca("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),m$=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ca(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),v$=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,g$=/^[a-z]+$/i,Vv=e=>Math.round(e*255),y$=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Vv);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,p=u+c;return[d,f,p].map(Vv)};function b$(e,t,r,n){return`rgba(${Rn(0,255,e).toFixed()}, ${Rn(0,255,t).toFixed()}, ${Rn(0,255,r).toFixed()}, ${parseFloat(Rn(0,1,n).toFixed(3))})`}function S$(e,t){const[r,n,o,i]=ip(e);return b$(r,n,o,i-t)}function x$(e){const[t,r,n,o]=ip(e);let i=a=>{const s=Rn(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function w$(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,et=(e,t,r)=>{const n=w$(e,`colors.${t}`,t);try{return x$(n),n}catch{return r??"#000000"}},C$=e=>{const[t,r,n]=ip(e);return(t*299+r*587+n*114)/1e3},_$=e=>t=>{const r=et(t,e);return C$(r)<128?"dark":"light"},P$=e=>t=>_$(e)(t)==="dark",qo=(e,t)=>r=>{const n=et(r,e);return S$(n,1-t)};function Wv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
+=======
+ `});function _P(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function mn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=S.createContext(a);s.displayName=t;function l(){var u;const c=S.useContext(s);if(!c&&r){const d=new Error(i??_P(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[PP,TP]=mn({strict:!1,name:"PortalManagerContext"});function kb(e){const{children:t,zIndex:r}=e;return E.jsx(PP,{value:{zIndex:r},children:t})}kb.displayName="PortalManager";var ka=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect,[Cb,EP]=mn({strict:!1,name:"PortalContext"}),tp="chakra-portal",$P=".chakra-portal",AP=e=>E.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),RP=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=S.useState(null),i=S.useRef(null),[,a]=S.useState({});S.useEffect(()=>a({}),[]);const s=EP(),l=TP();ka(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=tp,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?E.jsx(AP,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Uh.createPortal(E.jsx(Cb,{value:i.current,children:u}),i.current):E.jsx("span",{ref:c=>{c&&o(c)}})},MP=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=S.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=tp),l},[o]),[,s]=S.useState({});return ka(()=>s({}),[]),ka(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?Uh.createPortal(E.jsx(Cb,{value:n?a:null,children:t}),a):null};function Na(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?E.jsx(MP,{containerRef:r,...n}):E.jsx(RP,{...n})}Na.className=tp;Na.selector=$P;Na.displayName="Portal";function zP(){const e=S.useContext(Qo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Fu=S.createContext({});Fu.displayName="ColorModeContext";function Du(){const e=S.useContext(Fu);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function wB(e,t){const{colorMode:r}=Du();return r==="dark"?t:e}var Cs={light:"chakra-ui-light",dark:"chakra-ui-dark"};function FP(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Cs.dark:Cs.light),document.body.classList.remove(n?Cs.light:Cs.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var DP="chakra-ui-color-mode";function IP(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var LP=IP(DP),jl=()=>{};function Av(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function _b(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=LP}=e,s=o==="dark"?"dark":"light",[l,u]=S.useState(()=>Av(a,s)),[c,d]=S.useState(()=>Av(a)),{getSystemTheme:f,setClassName:p,setDataset:g,addListener:y}=S.useMemo(()=>FP({preventTransition:i}),[i]),k=o==="system"&&!l?c:l,m=S.useCallback(C=>{const _=C==="system"?f():C;u(_),p(_==="dark"),g(_),a.set(_)},[a,f,p,g]);ka(()=>{o==="system"&&d(f())},[]),S.useEffect(()=>{const C=a.get();if(C){m(C);return}if(o==="system"){m("system");return}m(s)},[a,s,o,m]);const h=S.useCallback(()=>{m(k==="dark"?"light":"dark")},[k,m]);S.useEffect(()=>{if(n)return y(m)},[n,y,m]);const v=S.useMemo(()=>({colorMode:t??k,toggleColorMode:t?jl:h,setColorMode:t?jl:m,forced:t!==void 0}),[k,h,m,t]);return E.jsx(Fu.Provider,{value:v,children:r})}_b.displayName="ColorModeProvider";function Pb(e){const t=S.useMemo(()=>({colorMode:"dark",toggleColorMode:jl,setColorMode:jl,forced:!0}),[]);return E.jsx(Fu.Provider,{value:t,...e})}Pb.displayName="DarkMode";var OP=new Set(["dark","light","system"]);function BP(e){let t=e;return OP.has(t)||(t="light"),t}function jP(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,o=BP(t),i=r==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
+ `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
+ `;return`!${i?a:s}`.trim()}function NP(e={}){const{nonce:t}=e;return E.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:jP(e)}})}function VP(){const e=Du(),t=zP();return{...e,theme:t}}function WP(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function UP(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function kB(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,u)=>{var c,d;if(e==="breakpoints")return WP(i,l,(c=a[u])!=null?c:l);const f=`${e}.${l}`;return UP(i,f,(d=a[u])!=null?d:l)});return Array.isArray(t)?s:s[0]}}var Be=(...e)=>e.filter(Boolean).join(" ");function HP(){return!1}function Kt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var CB=e=>{const{condition:t,message:r}=e;t&&HP()&&console.warn(r)};function lr(e,...t){return GP(e)?e(...t):e}var GP=e=>typeof e=="function",Rv=e=>e?"":void 0,_B=e=>e?!0:void 0;function $i(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function PB(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Nl={exports:{}};Nl.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",y="[object Map]",k="[object Number]",m="[object Null]",h="[object Object]",v="[object Proxy]",C="[object RegExp]",_="[object Set]",$="[object String]",T="[object Undefined]",A="[object WeakMap]",M="[object ArrayBuffer]",I="[object DataView]",ee="[object Float32Array]",ze="[object Float64Array]",Pe="[object Int8Array]",oe="[object Int16Array]",ue="[object Int32Array]",He="[object Uint8Array]",it="[object Uint8ClampedArray]",z="[object Uint16Array]",N="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,U={};U[ee]=U[ze]=U[Pe]=U[oe]=U[ue]=U[He]=U[it]=U[z]=U[N]=!0,U[s]=U[l]=U[M]=U[c]=U[I]=U[d]=U[f]=U[p]=U[y]=U[k]=U[h]=U[C]=U[_]=U[$]=U[A]=!1;var Ge=typeof is=="object"&&is&&is.Object===Object&&is,Xt=typeof self=="object"&&self&&self.Object===Object&&self,we=Ge||Xt||Function("return this")(),Fe=t&&!t.nodeType&&t,mt=Fe&&!0&&e&&!e.nodeType&&e,Qt=mt&&mt.exports===Fe,Ot=Qt&&Ge.process,qt=function(){try{var b=mt&&mt.require&&mt.require("util").types;return b||Ot&&Ot.binding&&Ot.binding("util")}catch{}}(),si=qt&&qt.isTypedArray;function Qa(b,x,P){switch(P.length){case 0:return b.call(x);case 1:return b.call(x,P[0]);case 2:return b.call(x,P[0],P[1]);case 3:return b.call(x,P[0],P[1],P[2])}return b.apply(x,P)}function Ow(b,x){for(var P=-1,F=Array(b);++P-1}function ak(b,x){var P=this.__data__,F=ts(P,b);return F<0?(++this.size,P.push([b,x])):P[F][1]=x,this}vr.prototype.clear=rk,vr.prototype.delete=nk,vr.prototype.get=ok,vr.prototype.has=ik,vr.prototype.set=ak;function qn(b){var x=-1,P=b==null?0:b.length;for(this.clear();++x1?P[K-1]:void 0,he=K>2?P[2]:void 0;for(ie=b.length>3&&typeof ie=="function"?(K--,ie):void 0,he&&Dk(P[0],P[1],he)&&(ie=K<3?void 0:ie,K=1),x=Object(x);++F-1&&b%1==0&&b0){if(++x>=o)return arguments[0]}else x=0;return b.apply(void 0,arguments)}}function Wk(b){if(b!=null){try{return Za.call(b)}catch{}try{return b+""}catch{}}return""}function os(b,x){return b===x||b!==b&&x!==x}var rc=tm(function(){return arguments}())?tm:function(b){return ui(b)&&mr.call(b,"callee")&&!Gw.call(b,"callee")},nc=Array.isArray;function oc(b){return b!=null&&am(b.length)&&!ic(b)}function Uk(b){return ui(b)&&oc(b)}var im=Yw||Xk;function ic(b){if(!bn(b))return!1;var x=rs(b);return x==p||x==g||x==u||x==v}function am(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=a}function bn(b){var x=typeof b;return b!=null&&(x=="object"||x=="function")}function ui(b){return b!=null&&typeof b=="object"}function Hk(b){if(!ui(b)||rs(b)!=h)return!1;var x=qp(b);if(x===null)return!0;var P=mr.call(x,"constructor")&&x.constructor;return typeof P=="function"&&P instanceof P&&Za.call(P)==Uw}var sm=si?Bw(si):xk;function Gk(b){return Ak(b,lm(b))}function lm(b){return oc(b)?gk(b,!0):wk(b)}var Kk=Rk(function(b,x,P,F){rm(b,x,P,F)});function Yk(b){return function(){return b}}function um(b){return b}function Xk(){return!1}e.exports=Kk})(Nl,Nl.exports);var KP=Nl.exports;const Ft=Xf(KP);var YP=e=>/!(important)?$/.test(e),Mv=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,XP=(e,t)=>r=>{const n=String(t),o=YP(n),i=Mv(n),a=e?`${e}.${i}`:i;let s=Kt(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=Mv(s),o?`${s} !important`:s};function rp(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=XP(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var _s=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Et(e,t){return r=>{const n={property:r,scale:e};return n.transform=rp({scale:e,transform:t}),n}}var QP=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function qP(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:QP(t),transform:r?rp({scale:r,compose:n}):n}}var Tb=["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 ZP(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Tb].join(" ")}function JP(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Tb].join(" ")}var eT={"--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(" ")},tT={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 rT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var nT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},vf={"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"},oT=new Set(Object.values(vf)),gf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),iT=e=>e.trim();function aT(e,t){if(e==null||gf.has(e))return e;if(!(yf(e)||gf.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(iT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in vf?vf[l]:l;u.unshift(c);const d=u.map(f=>{if(oT.has(f))return f;const p=f.indexOf(" "),[g,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],k=yf(y)?y:y&&y.split(" "),m=`colors.${g}`,h=m in t.__cssMap?t.__cssMap[m].varRef:g;return k?[h,...Array.isArray(k)?k:[k]].join(" "):h});return`${s}(${d.join(", ")})`}var yf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),sT=(e,t)=>aT(e,t??{});function lT(e){return/^var\(--.+\)$/.test(e)}var uT=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Jt=e=>t=>`${e}(${t})`,G={filter(e){return e!=="auto"?e:eT},backdropFilter(e){return e!=="auto"?e:tT},ring(e){return rT(G.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?ZP():e==="auto-gpu"?JP():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=uT(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(lT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:sT,blur:Jt("blur"),opacity:Jt("opacity"),brightness:Jt("brightness"),contrast:Jt("contrast"),dropShadow:Jt("drop-shadow"),grayscale:Jt("grayscale"),hueRotate:e=>Jt("hue-rotate")(G.degree(e)),invert:Jt("invert"),saturate:Jt("saturate"),sepia:Jt("sepia"),bgImage(e){return e==null||yf(e)||gf.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=nT[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:Et("borderWidths"),borderStyles:Et("borderStyles"),colors:Et("colors"),borders:Et("borders"),gradients:Et("gradients",G.gradient),radii:Et("radii",G.px),space:Et("space",_s(G.vh,G.px)),spaceT:Et("space",_s(G.vh,G.px)),degreeT(e){return{property:e,transform:G.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:rp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Et("sizes",_s(G.vh,G.px)),sizesT:Et("sizes",_s(G.vh,G.fraction)),shadows:Et("shadows"),logical:qP,blur:Et("blur",G.blur)},tl={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:G.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:G.bgClip}};Object.assign(tl,{bgImage:tl.backgroundImage,bgImg:tl.backgroundImage});var X={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(X,{rounded:X.borderRadius,roundedTop:X.borderTopRadius,roundedTopLeft:X.borderTopLeftRadius,roundedTopRight:X.borderTopRightRadius,roundedTopStart:X.borderStartStartRadius,roundedTopEnd:X.borderStartEndRadius,roundedBottom:X.borderBottomRadius,roundedBottomLeft:X.borderBottomLeftRadius,roundedBottomRight:X.borderBottomRightRadius,roundedBottomStart:X.borderEndStartRadius,roundedBottomEnd:X.borderEndEndRadius,roundedLeft:X.borderLeftRadius,roundedRight:X.borderRightRadius,roundedStart:X.borderInlineStartRadius,roundedEnd:X.borderInlineEndRadius,borderStart:X.borderInlineStart,borderEnd:X.borderInlineEnd,borderTopStartRadius:X.borderStartStartRadius,borderTopEndRadius:X.borderStartEndRadius,borderBottomStartRadius:X.borderEndStartRadius,borderBottomEndRadius:X.borderEndEndRadius,borderStartRadius:X.borderInlineStartRadius,borderEndRadius:X.borderInlineEndRadius,borderStartWidth:X.borderInlineStartWidth,borderEndWidth:X.borderInlineEndWidth,borderStartColor:X.borderInlineStartColor,borderEndColor:X.borderInlineEndColor,borderStartStyle:X.borderInlineStartStyle,borderEndStyle:X.borderInlineEndStyle});var cT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},bf={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(bf,{shadow:bf.boxShadow});var dT={filter:{transform:G.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",G.brightness),contrast:w.propT("--chakra-contrast",G.contrast),hueRotate:w.propT("--chakra-hue-rotate",G.hueRotate),invert:w.propT("--chakra-invert",G.invert),saturate:w.propT("--chakra-saturate",G.saturate),dropShadow:w.propT("--chakra-drop-shadow",G.dropShadow),backdropFilter:{transform:G.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",G.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",G.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",G.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",G.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",G.saturate)},Vl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:G.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(Vl,{flexDir:Vl.flexDirection});var Eb={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.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},fT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:G.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},At={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",G.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(At,{w:At.width,h:At.height,minW:At.minWidth,maxW:At.maxWidth,minH:At.minHeight,maxH:At.maxHeight,overscroll:At.overscrollBehavior,overscrollX:At.overscrollBehaviorX,overscrollY:At.overscrollBehaviorY});var hT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function pT(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},vT=mT(pT),gT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},yT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Dc=(e,t,r)=>{const n={},o=vT(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},bT={srOnly:{transform(e){return e===!0?gT:e==="focusable"?yT:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Dc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Dc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Dc(t,e,r)}},Ki={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ki,{insetStart:Ki.insetInlineStart,insetEnd:Ki.insetInlineEnd});var ST={ring:{transform:G.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},de={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(de,{m:de.margin,mt:de.marginTop,mr:de.marginRight,me:de.marginInlineEnd,marginEnd:de.marginInlineEnd,mb:de.marginBottom,ml:de.marginLeft,ms:de.marginInlineStart,marginStart:de.marginInlineStart,mx:de.marginX,my:de.marginY,p:de.padding,pt:de.paddingTop,py:de.paddingY,px:de.paddingX,pb:de.paddingBottom,pl:de.paddingLeft,ps:de.paddingInlineStart,paddingStart:de.paddingInlineStart,pr:de.paddingRight,pe:de.paddingInlineEnd,paddingEnd:de.paddingInlineEnd});var xT={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},wT={clipPath:!0,transform:w.propT("transform",G.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},kT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},CT={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",G.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.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"}},_T={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function $b(e){return Kt(e)&&e.reference?e.reference:String(e)}var Iu=(e,...t)=>t.map($b).join(` ${e} `).replace(/calc/g,""),zv=(...e)=>`calc(${Iu("+",...e)})`,Fv=(...e)=>`calc(${Iu("-",...e)})`,Sf=(...e)=>`calc(${Iu("*",...e)})`,Dv=(...e)=>`calc(${Iu("/",...e)})`,Iv=e=>{const t=$b(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Sf(t,-1)},Pn=Object.assign(e=>({add:(...t)=>Pn(zv(e,...t)),subtract:(...t)=>Pn(Fv(e,...t)),multiply:(...t)=>Pn(Sf(e,...t)),divide:(...t)=>Pn(Dv(e,...t)),negate:()=>Pn(Iv(e)),toString:()=>e.toString()}),{add:zv,subtract:Fv,multiply:Sf,divide:Dv,negate:Iv});function PT(e,t="-"){return e.replace(/\s+/g,t)}function TT(e){const t=PT(e.toString());return $T(ET(t))}function ET(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function $T(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function AT(e,t=""){return[t,e].filter(Boolean).join("-")}function RT(e,t){return`var(${e}${t?`, ${t}`:""})`}function MT(e,t=""){return TT(`--${AT(e,t)}`)}function O(e,t,r){const n=MT(e,r);return{variable:n,reference:RT(n,t)}}function zT(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=O(`${e}-${o}`,i);continue}r[n]=O(`${e}-${n}`)}return r}function FT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function DT(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function xf(e){if(e==null)return e;const{unitless:t}=DT(e);return t||typeof e=="number"?`${e}px`:e}var Ab=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,np=e=>Object.fromEntries(Object.entries(e).sort(Ab));function Lv(e){const t=np(e);return Object.assign(Object.values(t),t)}function IT(e){const t=Object.keys(np(e));return new Set(t)}function Ov(e){var t;if(!e)return e;e=(t=xf(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ai(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${xf(e)})`),t&&r.push("and",`(max-width: ${xf(t)})`),r.join(" ")}function LT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Lv(e),n=Object.entries(e).sort(Ab).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Ov(d):void 0,{_minW:Ov(s),breakpoint:a,minW:s,maxW:d,maxWQuery:Ai(null,d),minWQuery:Ai(s),minMaxQuery:Ai(s,d)}}),o=IT(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:np(e),asArray:Lv(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>Ai(a)).slice(1)],toArrayValue(a){if(!Kt(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;FT(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var je={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Br=e=>Rb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),gr=e=>Rb(t=>e(t,"~ &"),"[data-peer]",".peer"),Rb=(e,...t)=>t.map(e).join(", "),Lu={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Br(je.hover),_peerHover:gr(je.hover),_groupFocus:Br(je.focus),_peerFocus:gr(je.focus),_groupFocusVisible:Br(je.focusVisible),_peerFocusVisible:gr(je.focusVisible),_groupActive:Br(je.active),_peerActive:gr(je.active),_groupDisabled:Br(je.disabled),_peerDisabled:gr(je.disabled),_groupInvalid:Br(je.invalid),_peerInvalid:gr(je.invalid),_groupChecked:Br(je.checked),_peerChecked:gr(je.checked),_groupFocusWithin:Br(je.focusWithin),_peerFocusWithin:gr(je.focusWithin),_peerPlaceholderShown:gr(je.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Mb=Object.keys(Lu);function Bv(e,t){return O(String(e).replace(/\./g,"-"),void 0,t)}function OT(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=Bv(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[p,...g]=f,y=`${p}.-${g.join(".")}`,k=Pn.negate(s),m=Pn.negate(u);n[y]={value:k,var:l,varRef:m}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const g=[String(o).split(".")[0],f].join(".");if(!e[g])return f;const{reference:k}=Bv(g,t==null?void 0:t.cssVarPrefix);return k},d=Kt(s)?s:{default:s};r=Ft(r,Object.entries(d).reduce((f,[p,g])=>{var y,k;if(!g)return f;const m=c(`${g}`);if(p==="default")return f[l]=m,f;const h=(k=(y=Lu)==null?void 0:y[p])!=null?k:p;return f[h]={[l]:m},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function BT(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function jT(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function NT(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function jv(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(NT(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...s,f];if(n!=null&&n(a,p))return t(a,s);u[f]=i(d,p)}return u}return t(a,s)}return i(e)}var VT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function WT(e){return jT(e,VT)}function UT(e){return e.semanticTokens}function HT(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var GT=e=>Mb.includes(e)||e==="default";function KT({tokens:e,semanticTokens:t}){const r={};return jv(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),jv(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(GT)}),r}function YT(e){var t;const r=HT(e),n=WT(r),o=UT(r),i=KT({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=OT(i,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:LT(r.breakpoints)}),r}var op=Ft({},tl,X,cT,Vl,At,dT,ST,fT,Eb,bT,Ki,bf,de,_T,CT,xT,wT,hT,kT),XT=Object.assign({},de,At,Vl,Eb,Ki),TB=Object.keys(XT),QT=[...Object.keys(op),...Mb],qT={...op,...Lu},ZT=e=>e in qT,JT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=lr(e[a],t);if(s==null)continue;if(s=Kt(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!tE(t),nE=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=eE(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function oE(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=lr(i,n),d=JT(c)(n);let f={};for(let p in d){const g=d[p];let y=lr(g,n);p in r&&(p=r[p]),rE(p,y)&&(y=nE(n,y));let k=t[p];if(k===!0&&(k={property:p}),Kt(y)){f[p]=(s=f[p])!=null?s:{},f[p]=Ft({},f[p],o(y,!0));continue}let m=(u=(l=k==null?void 0:k.transform)==null?void 0:l.call(k,y,n,c))!=null?u:y;m=k!=null&&k.processResult?o(m,!0):m;const h=lr(k==null?void 0:k.property,n);if(!a&&(k!=null&&k.static)){const v=lr(k.static,n);f=Ft({},f,v)}if(h&&Array.isArray(h)){for(const v of h)f[v]=m;continue}if(h){h==="&"&&Kt(m)?f=Ft({},f,m):f[h]=m;continue}if(Kt(m)){f=Ft({},f,m);continue}f[p]=m}return f};return o}var zb=e=>t=>oE({theme:t,pseudos:Lu,configs:op})(e);function le(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function iE(e,t){if(Array.isArray(e))return e;if(Kt(e))return t(e);if(e!=null)return[e]}function aE(e,t){for(let r=t+1;r{Ft(u,{[v]:f?h[v]:{[m]:h[v]}})});continue}if(!p){f?Ft(u,h):u[m]=h;continue}u[m]=h}}return u}}function lE(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=sE(i);return Ft({},lr((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function EB(e,t,r){var n,o,i;return(i=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?i:r}function Ou(e){return BT(e,["styleConfig","size","variant","colorScheme"])}var uE=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function cE(e){return Kt(e)?uE.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var dE={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"},fE={"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)"},hE={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},pE={property:dE,easing:fE,duration:hE},mE=pE,vE={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},gE=vE,yE={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},bE=yE,SE={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},xE=SE,wE={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},kE=wE,CE={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},_E=CE,PE={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"},TE=PE,EE={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},$E=EE,AE={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"}},Fb=AE,Db={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"},RE={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"},ME={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},zE={...Db,...RE,container:ME},Ib=zE,FE={breakpoints:xE,zIndices:gE,radii:_E,blur:$E,colors:kE,...Fb,sizes:Ib,shadows:TE,space:Db,borders:bE,transition:mE},{defineMultiStyleConfig:DE,definePartsStyle:Ri}=le(["stepper","step","title","description","indicator","separator","icon","number"]),Sr=O("stepper-indicator-size"),go=O("stepper-icon-size"),yo=O("stepper-title-font-size"),Mi=O("stepper-description-font-size"),Si=O("stepper-accent-color"),IE=Ri(({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"},[Si.variable]:`colors.${e}.500`,_dark:{[Si.variable]:`colors.${e}.200`}},title:{fontSize:yo.reference,fontWeight:"medium"},description:{fontSize:Mi.reference,color:"chakra-subtle-text"},number:{fontSize:yo.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:go.reference,height:go.reference},indicator:{flexShrink:0,borderRadius:"full",width:Sr.reference,height:Sr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Si.reference},"&[data-status=complete]":{bg:Si.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Si.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Sr.reference} - 8px)`,top:`calc(${Sr.reference} + 4px)`,insetStart:`calc(${Sr.reference} / 2 - 1px)`}}})),LE=DE({baseStyle:IE,sizes:{xs:Ri({stepper:{[Sr.variable]:"sizes.4",[go.variable]:"sizes.3",[yo.variable]:"fontSizes.xs",[Mi.variable]:"fontSizes.xs"}}),sm:Ri({stepper:{[Sr.variable]:"sizes.6",[go.variable]:"sizes.4",[yo.variable]:"fontSizes.sm",[Mi.variable]:"fontSizes.xs"}}),md:Ri({stepper:{[Sr.variable]:"sizes.8",[go.variable]:"sizes.5",[yo.variable]:"fontSizes.md",[Mi.variable]:"fontSizes.sm"}}),lg:Ri({stepper:{[Sr.variable]:"sizes.10",[go.variable]:"sizes.6",[yo.variable]:"fontSizes.lg",[Mi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function J(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return J(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return J(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var OE=J("accordion").parts("root","container","button","panel").extend("icon"),BE=J("alert").parts("title","description","container").extend("icon","spinner"),jE=J("avatar").parts("label","badge","container").extend("excessLabel","group"),NE=J("breadcrumb").parts("link","item","container").extend("separator");J("button").parts();var VE=J("checkbox").parts("control","icon","container").extend("label");J("progress").parts("track","filledTrack").extend("label");var WE=J("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),UE=J("editable").parts("preview","input","textarea"),HE=J("form").parts("container","requiredIndicator","helperText"),GE=J("formError").parts("text","icon"),KE=J("input").parts("addon","field","element","group"),YE=J("list").parts("container","item","icon"),XE=J("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),QE=J("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),qE=J("numberinput").parts("root","field","stepperGroup","stepper");J("pininput").parts("field");var ZE=J("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),JE=J("progress").parts("label","filledTrack","track"),e$=J("radio").parts("container","control","label"),t$=J("select").parts("field","icon"),r$=J("slider").parts("container","track","thumb","filledTrack","mark"),n$=J("stat").parts("container","label","helpText","number","icon"),o$=J("switch").parts("container","track","thumb","label"),i$=J("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),a$=J("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),s$=J("tag").parts("container","label","closeButton"),l$=J("card").parts("container","header","body","footer");J("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Rn(e,t,r){return Math.min(Math.max(e,r),t)}class u$ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var zi=u$;function ip(e){if(typeof e!="string")throw new zi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=g$.test(e)?f$(e):e;const r=h$.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(Ca(s,2),16)),parseInt(Ca(a[3]||"f",2),16)/255]}const n=p$.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=m$.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=v$.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Rn(0,100,s)!==s)throw new zi(e);if(Rn(0,100,l)!==l)throw new zi(e);return[...y$(a,s,l),Number.isNaN(u)?1:u]}throw new zi(e)}function c$(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Nv=e=>parseInt(e.replace(/_/g,""),36),d$="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=Nv(t.substring(0,3)),n=Nv(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function f$(e){const t=e.toLowerCase().trim(),r=d$[c$(t)];if(!r)throw new zi(e);return`#${r}`}const Ca=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),h$=new RegExp(`^#${Ca("([a-f0-9])",3)}([a-f0-9])?$`,"i"),p$=new RegExp(`^#${Ca("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),m$=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ca(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),v$=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,g$=/^[a-z]+$/i,Vv=e=>Math.round(e*255),y$=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Vv);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,p=u+c;return[d,f,p].map(Vv)};function b$(e,t,r,n){return`rgba(${Rn(0,255,e).toFixed()}, ${Rn(0,255,t).toFixed()}, ${Rn(0,255,r).toFixed()}, ${parseFloat(Rn(0,1,n).toFixed(3))})`}function S$(e,t){const[r,n,o,i]=ip(e);return b$(r,n,o,i-t)}function x$(e){const[t,r,n,o]=ip(e);let i=a=>{const s=Rn(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function w$(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,et=(e,t,r)=>{const n=w$(e,`colors.${t}`,t);try{return x$(n),n}catch{return r??"#000000"}},C$=e=>{const[t,r,n]=ip(e);return(t*299+r*587+n*114)/1e3},_$=e=>t=>{const r=et(t,e);return C$(r)<128?"dark":"light"},P$=e=>t=>_$(e)(t)==="dark",qo=(e,t)=>r=>{const n=et(r,e);return S$(n,1-t)};function Wv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
+>>>>>>> f551431 (build dist)
45deg,
${t} 25%,
transparent 25%,
@@ -339,7 +345,11 @@ Error generating stack: `+i.message+`
transparent 0%,
${et(r,a)} 50%,
transparent 100%
+<<<<<<< HEAD
)`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},W5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},U5=e=>({bg:L("gray.100","whiteAlpha.300")(e)}),H5=e=>({transitionProperty:"common",transitionDuration:"slow",...V5(e)}),G5=Fi(e=>({label:W5,filledTrack:H5(e),track:U5(e)})),K5={xs:Fi({track:{h:"1"}}),sm:Fi({track:{h:"2"}}),md:Fi({track:{h:"3"}}),lg:Fi({track:{h:"4"}})},Y5=N5({sizes:K5,baseStyle:G5,defaultProps:{size:"md",colorScheme:"blue"}}),X5=e=>typeof e=="function";function rt(e,...t){return X5(e)?e(...t):e}var{definePartsStyle:sl,defineMultiStyleConfig:Q5}=le(VE.keys),Qi=O("checkbox-size"),q5=e=>{const{colorScheme:t}=e;return{w:Qi.reference,h:Qi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e),_hover:{bg:L(`${t}.600`,`${t}.300`)(e),borderColor:L(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:L("gray.200","transparent")(e),bg:L("gray.200","whiteAlpha.300")(e),color:L("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e)},_disabled:{bg:L("gray.100","whiteAlpha.100")(e),borderColor:L("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:L("red.500","red.300")(e)}}},Z5={_disabled:{cursor:"not-allowed"}},J5={userSelect:"none",_disabled:{opacity:.4}},eA={transitionProperty:"transform",transitionDuration:"normal"},tA=sl(e=>({icon:eA,container:Z5,control:rt(q5,e),label:J5})),rA={sm:sl({control:{[Qi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:sl({control:{[Qi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:sl({control:{[Qi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ul=Q5({baseStyle:tA,sizes:rA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nA,definePartsStyle:ll}=le(e$.keys),oA=e=>{var t;const r=(t=rt(Ul.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},iA=ll(e=>{var t,r,n,o;return{label:(r=(t=Ul).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Ul).baseStyle)==null?void 0:o.call(n,e).container,control:oA(e)}}),aA={md:ll({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ll({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ll({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},sA=nA({baseStyle:iA,sizes:aA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lA,definePartsStyle:uA}=le(t$.keys),Es=O("select-bg"),sg,cA={...(sg=Z.baseStyle)==null?void 0:sg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Es.reference,[Es.variable]:"colors.white",_dark:{[Es.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Es.reference}},dA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},fA=uA({field:cA,icon:dA}),$s={paddingInlineEnd:"8"},lg,ug,cg,dg,fg,hg,pg,mg,hA={lg:{...(lg=Z.sizes)==null?void 0:lg.lg,field:{...(ug=Z.sizes)==null?void 0:ug.lg.field,...$s}},md:{...(cg=Z.sizes)==null?void 0:cg.md,field:{...(dg=Z.sizes)==null?void 0:dg.md.field,...$s}},sm:{...(fg=Z.sizes)==null?void 0:fg.sm,field:{...(hg=Z.sizes)==null?void 0:hg.sm.field,...$s}},xs:{...(pg=Z.sizes)==null?void 0:pg.xs,field:{...(mg=Z.sizes)==null?void 0:mg.xs.field,...$s},icon:{insetEnd:"1"}}},pA=lA({baseStyle:fA,sizes:hA,variants:Z.variants,defaultProps:Z.defaultProps}),Bc=O("skeleton-start-color"),jc=O("skeleton-end-color"),mA={[Bc.variable]:"colors.gray.100",[jc.variable]:"colors.gray.400",_dark:{[Bc.variable]:"colors.gray.800",[jc.variable]:"colors.gray.600"},background:Bc.reference,borderColor:jc.reference,opacity:.7,borderRadius:"sm"},vA={baseStyle:mA},Nc=O("skip-link-bg"),gA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Nc.variable]:"colors.white",_dark:{[Nc.variable]:"colors.gray.700"},bg:Nc.reference}},yA={baseStyle:gA},{defineMultiStyleConfig:bA,definePartsStyle:ju}=le(r$.keys),_a=O("slider-thumb-size"),Pa=O("slider-track-size"),Yr=O("slider-bg"),SA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ap({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},xA=e=>({...ap({orientation:e.orientation,horizontal:{h:Pa.reference},vertical:{w:Pa.reference}}),overflow:"hidden",borderRadius:"sm",[Yr.variable]:"colors.gray.200",_dark:{[Yr.variable]:"colors.whiteAlpha.200"},_disabled:{[Yr.variable]:"colors.gray.300",_dark:{[Yr.variable]:"colors.whiteAlpha.300"}},bg:Yr.reference}),wA=e=>{const{orientation:t}=e;return{...ap({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:_a.reference,h:_a.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},kA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Yr.variable]:`colors.${t}.500`,_dark:{[Yr.variable]:`colors.${t}.200`},bg:Yr.reference}},CA=ju(e=>({container:SA(e),track:xA(e),thumb:wA(e),filledTrack:kA(e)})),_A=ju({container:{[_a.variable]:"sizes.4",[Pa.variable]:"sizes.1"}}),PA=ju({container:{[_a.variable]:"sizes.3.5",[Pa.variable]:"sizes.1"}}),TA=ju({container:{[_a.variable]:"sizes.2.5",[Pa.variable]:"sizes.0.5"}}),EA={lg:_A,md:PA,sm:TA},$A=bA({baseStyle:CA,sizes:EA,defaultProps:{size:"md",colorScheme:"blue"}}),Tn=Me("spinner-size"),AA={width:[Tn.reference],height:[Tn.reference]},RA={xs:{[Tn.variable]:"sizes.3"},sm:{[Tn.variable]:"sizes.4"},md:{[Tn.variable]:"sizes.6"},lg:{[Tn.variable]:"sizes.8"},xl:{[Tn.variable]:"sizes.12"}},MA={baseStyle:AA,sizes:RA,defaultProps:{size:"md"}},{defineMultiStyleConfig:zA,definePartsStyle:Bb}=le(n$.keys),FA={fontWeight:"medium"},DA={opacity:.8,marginBottom:"2"},IA={verticalAlign:"baseline",fontWeight:"semibold"},LA={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},OA=Bb({container:{},label:FA,helpText:DA,number:IA,icon:LA}),BA={md:Bb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},jA=zA({baseStyle:OA,sizes:BA,defaultProps:{size:"md"}}),Vc=O("kbd-bg"),NA={[Vc.variable]:"colors.gray.100",_dark:{[Vc.variable]:"colors.whiteAlpha.100"},bg:Vc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},VA={baseStyle:NA},WA={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},UA={baseStyle:WA},{defineMultiStyleConfig:HA,definePartsStyle:GA}=le(YE.keys),KA={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},YA=GA({icon:KA}),XA=HA({baseStyle:YA}),{defineMultiStyleConfig:QA,definePartsStyle:qA}=le(XE.keys),rr=O("menu-bg"),Wc=O("menu-shadow"),ZA={[rr.variable]:"#fff",[Wc.variable]:"shadows.sm",_dark:{[rr.variable]:"colors.gray.700",[Wc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:rr.reference,boxShadow:Wc.reference},JA={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[rr.variable]:"colors.gray.100",_dark:{[rr.variable]:"colors.whiteAlpha.100"}},_active:{[rr.variable]:"colors.gray.200",_dark:{[rr.variable]:"colors.whiteAlpha.200"}},_expanded:{[rr.variable]:"colors.gray.100",_dark:{[rr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:rr.reference},eR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},tR={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},rR={opacity:.6},nR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},oR={transitionProperty:"common",transitionDuration:"normal"},iR=qA({button:oR,list:ZA,item:JA,groupTitle:eR,icon:tR,command:rR,divider:nR}),aR=QA({baseStyle:iR}),{defineMultiStyleConfig:sR,definePartsStyle:Cf}=le(QE.keys),Uc=O("modal-bg"),Hc=O("modal-shadow"),lR={bg:"blackAlpha.600",zIndex:"modal"},uR=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"}},cR=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,[Uc.variable]:"colors.white",[Hc.variable]:"shadows.lg",_dark:{[Uc.variable]:"colors.gray.700",[Hc.variable]:"shadows.dark-lg"},bg:Uc.reference,boxShadow:Hc.reference}},dR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},fR={position:"absolute",top:"2",insetEnd:"3"},hR=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},pR={px:"6",py:"4"},mR=Cf(e=>({overlay:lR,dialogContainer:rt(uR,e),dialog:rt(cR,e),header:dR,closeButton:fR,body:rt(hR,e),footer:pR}));function jt(e){return Cf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var vR={xs:jt("xs"),sm:jt("sm"),md:jt("md"),lg:jt("lg"),xl:jt("xl"),"2xl":jt("2xl"),"3xl":jt("3xl"),"4xl":jt("4xl"),"5xl":jt("5xl"),"6xl":jt("6xl"),full:jt("full")},gR=sR({baseStyle:mR,sizes:vR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:yR,definePartsStyle:jb}=le(qE.keys),lp=Me("number-input-stepper-width"),Nb=Me("number-input-input-padding"),bR=xr(lp).add("0.5rem").toString(),Gc=Me("number-input-bg"),Kc=Me("number-input-color"),Yc=Me("number-input-border-color"),SR={[lp.variable]:"sizes.6",[Nb.variable]:bR},xR=e=>{var t,r;return(r=(t=rt(Z.baseStyle,e))==null?void 0:t.field)!=null?r:{}},wR={width:lp.reference},kR={borderStart:"1px solid",borderStartColor:Yc.reference,color:Kc.reference,bg:Gc.reference,[Kc.variable]:"colors.chakra-body-text",[Yc.variable]:"colors.chakra-border-color",_dark:{[Kc.variable]:"colors.whiteAlpha.800",[Yc.variable]:"colors.whiteAlpha.300"},_active:{[Gc.variable]:"colors.gray.200",_dark:{[Gc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},CR=jb(e=>{var t;return{root:SR,field:(t=rt(xR,e))!=null?t:{},stepperGroup:wR,stepper:kR}});function As(e){var t,r,n;const o=(t=Z.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=Fb.fontSizes[a];return jb({field:{...o.field,paddingInlineEnd:Nb.reference,verticalAlign:"top"},stepper:{fontSize:xr(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var _R={xs:As("xs"),sm:As("sm"),md:As("md"),lg:As("lg")},PR=yR({baseStyle:CR,sizes:_R,variants:Z.variants,defaultProps:Z.defaultProps}),vg,TR={...(vg=Z.baseStyle)==null?void 0:vg.field,textAlign:"center"},ER={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"}},gg,yg,$R={outline:e=>{var t,r,n;return(n=(r=rt((t=Z.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=rt((t=Z.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=rt((t=Z.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(yg=(gg=Z.variants)==null?void 0:gg.unstyled.field)!=null?yg:{}},AR={baseStyle:TR,sizes:ER,variants:$R,defaultProps:Z.defaultProps},{defineMultiStyleConfig:RR,definePartsStyle:MR}=le(ZE.keys),Rs=Me("popper-bg"),zR=Me("popper-arrow-bg"),bg=Me("popper-arrow-shadow-color"),FR={zIndex:10},DR={[Rs.variable]:"colors.white",bg:Rs.reference,[zR.variable]:Rs.reference,[bg.variable]:"colors.gray.200",_dark:{[Rs.variable]:"colors.gray.700",[bg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},IR={px:3,py:2,borderBottomWidth:"1px"},LR={px:3,py:2},OR={px:3,py:2,borderTopWidth:"1px"},BR={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},jR=MR({popper:FR,content:DR,header:IR,body:LR,footer:OR,closeButton:BR}),NR=RR({baseStyle:jR}),{definePartsStyle:_f,defineMultiStyleConfig:VR}=le(WE.keys),Xc=O("drawer-bg"),Qc=O("drawer-box-shadow");function eo(e){return _f(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var WR={bg:"blackAlpha.600",zIndex:"modal"},UR={display:"flex",zIndex:"modal",justifyContent:"center"},HR=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Xc.variable]:"colors.white",[Qc.variable]:"shadows.lg",_dark:{[Xc.variable]:"colors.gray.700",[Qc.variable]:"shadows.dark-lg"},bg:Xc.reference,boxShadow:Qc.reference}},GR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},KR={position:"absolute",top:"2",insetEnd:"3"},YR={px:"6",py:"2",flex:"1",overflow:"auto"},XR={px:"6",py:"4"},QR=_f(e=>({overlay:WR,dialogContainer:UR,dialog:rt(HR,e),header:GR,closeButton:KR,body:YR,footer:XR})),qR={xs:eo("xs"),sm:eo("md"),md:eo("lg"),lg:eo("2xl"),xl:eo("4xl"),full:eo("full")},ZR=VR({baseStyle:QR,sizes:qR,defaultProps:{size:"xs"}}),{definePartsStyle:JR,defineMultiStyleConfig:eM}=le(UE.keys),tM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},rM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},nM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},oM=JR({preview:tM,input:rM,textarea:nM}),iM=eM({baseStyle:oM}),{definePartsStyle:aM,defineMultiStyleConfig:sM}=le(HE.keys),Io=O("form-control-color"),lM={marginStart:"1",[Io.variable]:"colors.red.500",_dark:{[Io.variable]:"colors.red.300"},color:Io.reference},uM={mt:"2",[Io.variable]:"colors.gray.600",_dark:{[Io.variable]:"colors.whiteAlpha.600"},color:Io.reference,lineHeight:"normal",fontSize:"sm"},cM=aM({container:{width:"100%",position:"relative"},requiredIndicator:lM,helperText:uM}),dM=sM({baseStyle:cM}),{definePartsStyle:fM,defineMultiStyleConfig:hM}=le(GE.keys),Lo=O("form-error-color"),pM={[Lo.variable]:"colors.red.500",_dark:{[Lo.variable]:"colors.red.300"},color:Lo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},mM={marginEnd:"0.5em",[Lo.variable]:"colors.red.500",_dark:{[Lo.variable]:"colors.red.300"},color:Lo.reference},vM=fM({text:pM,icon:mM}),gM=hM({baseStyle:vM}),yM={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},bM={baseStyle:yM},SM={fontFamily:"heading",fontWeight:"bold"},xM={"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}},wM={baseStyle:SM,sizes:xM,defaultProps:{size:"xl"}},{defineMultiStyleConfig:kM,definePartsStyle:CM}=le(NE.keys),qc=O("breadcrumb-link-decor"),_M={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:qc.reference,[qc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[qc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},PM=CM({link:_M}),TM=kM({baseStyle:PM}),EM={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"}}},Vb=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.100","whiteAlpha.200")(e)},_active:{bg:L("gray.200","whiteAlpha.300")(e)}};const n=qo(`${t}.200`,.12)(r),o=qo(`${t}.200`,.24)(r);return{color:L(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:L(`${t}.50`,n)(e)},_active:{bg:L(`${t}.100`,o)(e)}}},$M=e=>{const{colorScheme:t}=e,r=L("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"},...rt(Vb,e)}},AM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},RM=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=L("gray.100","whiteAlpha.200")(e);return{bg:l,color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:L("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=AM[r])!=null?t:{},s=L(n,`${r}.200`)(e);return{bg:s,color:L(o,"gray.800")(e),_hover:{bg:L(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:L(a,`${r}.400`)(e)}}},MM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:L(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:L(`${t}.700`,`${t}.500`)(e)}}},zM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},FM={ghost:Vb,outline:$M,solid:RM,link:MM,unstyled:zM},DM={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"}},IM={baseStyle:EM,variants:FM,sizes:DM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ln,defineMultiStyleConfig:LM}=le(l$.keys),Hl=O("card-bg"),Tr=O("card-padding"),Wb=O("card-shadow"),ul=O("card-radius"),Ub=O("card-border-width","0"),Hb=O("card-border-color"),OM=Ln({container:{[Hl.variable]:"colors.chakra-body-bg",backgroundColor:Hl.reference,boxShadow:Wb.reference,borderRadius:ul.reference,color:"chakra-body-text",borderWidth:Ub.reference,borderColor:Hb.reference},body:{padding:Tr.reference,flex:"1 1 0%"},header:{padding:Tr.reference},footer:{padding:Tr.reference}}),BM={sm:Ln({container:{[ul.variable]:"radii.base",[Tr.variable]:"space.3"}}),md:Ln({container:{[ul.variable]:"radii.md",[Tr.variable]:"space.5"}}),lg:Ln({container:{[ul.variable]:"radii.xl",[Tr.variable]:"space.7"}})},jM={elevated:Ln({container:{[Wb.variable]:"shadows.base",_dark:{[Hl.variable]:"colors.gray.700"}}}),outline:Ln({container:{[Ub.variable]:"1px",[Hb.variable]:"colors.chakra-border-color"}}),filled:Ln({container:{[Hl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Tr.variable]:0},header:{[Tr.variable]:0},footer:{[Tr.variable]:0}}},NM=LM({baseStyle:OM,variants:jM,sizes:BM,defaultProps:{variant:"elevated",size:"md"}}),qi=Me("close-button-size"),wi=Me("close-button-bg"),VM={w:[qi.reference],h:[qi.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[wi.variable]:"colors.blackAlpha.100",_dark:{[wi.variable]:"colors.whiteAlpha.100"}},_active:{[wi.variable]:"colors.blackAlpha.200",_dark:{[wi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:wi.reference},WM={lg:{[qi.variable]:"sizes.10",fontSize:"md"},md:{[qi.variable]:"sizes.8",fontSize:"xs"},sm:{[qi.variable]:"sizes.6",fontSize:"2xs"}},UM={baseStyle:VM,sizes:WM,defaultProps:{size:"md"}},{variants:HM,defaultProps:GM}=Xi,KM={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},YM={baseStyle:KM,variants:HM,defaultProps:GM},XM={w:"100%",mx:"auto",maxW:"prose",px:"4"},QM={baseStyle:XM},qM={opacity:.6,borderColor:"inherit"},ZM={borderStyle:"solid"},JM={borderStyle:"dashed"},ez={solid:ZM,dashed:JM},tz={baseStyle:qM,variants:ez,defaultProps:{variant:"solid"}},{definePartsStyle:rz,defineMultiStyleConfig:nz}=le(OE.keys),oz={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},iz={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},az={pt:"2",px:"4",pb:"5"},sz={fontSize:"1.25em"},lz=rz({container:oz,button:iz,panel:az,icon:sz}),uz=nz({baseStyle:lz}),{definePartsStyle:Va,defineMultiStyleConfig:cz}=le(BE.keys),xt=O("alert-fg"),Dr=O("alert-bg"),dz=Va({container:{bg:Dr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:xt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:xt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function up(e){const{theme:t,colorScheme:r}=e,n=qo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var fz=Va(e=>{const{colorScheme:t}=e,r=up(e);return{container:{[xt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[xt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark}}}}),hz=Va(e=>{const{colorScheme:t}=e,r=up(e);return{container:{[xt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[xt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:xt.reference}}}),pz=Va(e=>{const{colorScheme:t}=e,r=up(e);return{container:{[xt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[xt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:xt.reference}}}),mz=Va(e=>{const{colorScheme:t}=e;return{container:{[xt.variable]:"colors.white",[Dr.variable]:`colors.${t}.600`,_dark:{[xt.variable]:"colors.gray.900",[Dr.variable]:`colors.${t}.200`},color:xt.reference}}}),vz={subtle:fz,"left-accent":hz,"top-accent":pz,solid:mz},gz=cz({baseStyle:dz,variants:vz,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Gb,defineMultiStyleConfig:yz}=le(jE.keys),Oo=O("avatar-border-color"),Zi=O("avatar-bg"),Ta=O("avatar-font-size"),Zo=O("avatar-size"),bz={borderRadius:"full",border:"0.2em solid",borderColor:Oo.reference,[Oo.variable]:"white",_dark:{[Oo.variable]:"colors.gray.800"}},Sz={bg:Zi.reference,fontSize:Ta.reference,width:Zo.reference,height:Zo.reference,lineHeight:"1",[Zi.variable]:"colors.gray.200",_dark:{[Zi.variable]:"colors.whiteAlpha.400"}},xz=e=>{const{name:t,theme:r}=e,n=t?E$({string:t}):"colors.gray.400",o=P$(n)(r);let i="white";return o||(i="gray.800"),{bg:Zi.reference,fontSize:Ta.reference,color:i,borderColor:Oo.reference,verticalAlign:"top",width:Zo.reference,height:Zo.reference,"&:not([data-loaded])":{[Zi.variable]:n},[Oo.variable]:"colors.white",_dark:{[Oo.variable]:"colors.gray.800"}}},wz={fontSize:Ta.reference,lineHeight:"1"},kz=Gb(e=>({badge:rt(bz,e),excessLabel:rt(Sz,e),container:rt(xz,e),label:wz}));function Nr(e){const t=e!=="100%"?Ib[e]:void 0;return Gb({container:{[Zo.variable]:t??e,[Ta.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Zo.variable]:t??e,[Ta.variable]:`calc(${t??e} / 2.5)`}})}var Cz={"2xs":Nr(4),xs:Nr(6),sm:Nr(8),md:Nr(12),lg:Nr(16),xl:Nr(24),"2xl":Nr(32),full:Nr("100%")},_z=yz({baseStyle:kz,sizes:Cz,defaultProps:{size:"md"}}),Pz={Accordion:uz,Alert:gz,Avatar:_z,Badge:Xi,Breadcrumb:TM,Button:IM,Checkbox:Ul,CloseButton:UM,Code:YM,Container:QM,Divider:tz,Drawer:ZR,Editable:iM,Form:dM,FormError:gM,FormLabel:bM,Heading:wM,Input:Z,Kbd:VA,Link:UA,List:XA,Menu:aR,Modal:gR,NumberInput:PR,PinInput:AR,Popover:NR,Progress:Y5,Radio:sA,Select:pA,Skeleton:vA,SkipLink:yA,Slider:$A,Spinner:MA,Stat:jA,Switch:U$,Table:q$,Tabs:f5,Tag:_5,Textarea:L5,Tooltip:j5,Card:NM,Stepper:LE},Tz={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"}}},Ez={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"}}},$z="ltr",Az={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Kb={semanticTokens:Tz,direction:$z,...FE,components:Pz,styles:Ez,config:Az};function Di(e){return typeof e=="function"}function Rz(...e){return t=>e.reduce((r,n)=>n(r),t)}var Mz=e=>function(...r){let n=[...r],o=r[r.length-1];return cE(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Rz(...n.map(i=>a=>Di(i)?i(a):Fz(a,i)))(o)},zz=Mz(Kb);function Fz(...e){return Ft({},...e,Yb)}function Yb(e,t,r,n){if((Di(e)||Di(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Di(e)?e(...o):e,a=Di(t)?t(...o):t;return Ft({},i,a,Yb)}}function Dz(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function Iz(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},Xb=Lz(Iz);function Qb(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var qb=e=>Qb(e,t=>t!=null);function Oz(e){return typeof e=="function"}function Zb(e,...t){return Oz(e)?e(...t):e}function $B(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var Bz=typeof Element<"u",jz=typeof Map=="function",Nz=typeof Set=="function",Vz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function cl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!cl(e[n],t[n]))return!1;return!0}var i;if(jz&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!cl(n.value[1],t.get(n.value[0])))return!1;return!0}if(Nz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Vz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Bz&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!cl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Wz=function(t,r){try{return cl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Uz=Xf(Wz);function Jb(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=VP(),s=e?Xb(i,`components.${e}`):void 0,l=n||s,u=Ft({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},qb(Dz(o,["children"]))),c=S.useRef({});if(l){const f=lE(l)(u);Uz(c.current,f)||(c.current=f)}return c.current}function Nu(e,t={}){return Jb(e,t)}function eS(e,t={}){return Jb(e,t)}var Hz=new Set([...QT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Gz=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Kz(e){return Gz.has(e)||!Hz.has(e)}function Yz(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}var Xz=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qz=cb(function(e){return Xz.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qz=Qz,Zz=function(t){return t!=="theme"},Sg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qz:Zz},xg=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Jz=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return qh(r,n,o),bb(function(){return Zh(r,n,o)}),null},e3=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=xg(t,r,n),l=s||Sg(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=Qb(a,(d,f)=>ZT(f)),l=Zb(e,t),u=Yz({},o,l,qb(s),i),c=zb(u)(t.theme);return n?[c,n]:c};function Zc(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=Kz);const o=n3({baseStyle:r}),i=r3(e,n)(o);return Ar.forwardRef(function(l,u){const{colorMode:c,forced:d}=Du();return Ar.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function o3(){const e=new Map;return new Proxy(Zc,{apply(t,r,n){return Zc(...n)},get(t,r){return e.has(r)||e.set(r,Zc(r)),e.get(r)}})}var _e=o3();function pt(e){return S.forwardRef(e)}function tS(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=S.createContext(void 0);o.displayName=n;function i(){var a;const s=S.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function i3(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=S.useMemo(()=>YT(r),[r]);return E.jsxs(vP,{theme:o,children:[E.jsx(a3,{root:t}),n]})}function a3({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E.jsx(ja,{styles:r=>({[t]:r.__cssVars})})}tS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function AB(e){return tS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function s3(){const{colorMode:e}=Du();return E.jsx(ja,{styles:t=>{const r=Xb(t,"styles.global"),n=Zb(r,{theme:t,colorMode:e});return n?zb(n)(t):void 0}})}var cp=S.createContext({getDocument(){return document},getWindow(){return window}});cp.displayName="EnvironmentContext";function RB({defer:e}={}){const[,t]=S.useReducer(r=>r+1,0);return ka(()=>{e&&t()},[e]),S.useContext(cp)}function rS(e){const{children:t,environment:r,disabled:n}=e,o=S.useRef(null),i=S.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return E.jsxs(cp.Provider,{value:i,children:[t,a&&E.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}rS.displayName="EnvironmentProvider";var l3=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=E.jsx(rS,{environment:s,disabled:u,children:t});return E.jsx(i3,{theme:a,cssVarsRoot:l,children:E.jsxs(_b,{colorModeManager:r,options:a.config,children:[i?E.jsx(CP,{scope:o}):E.jsx(kP,{}),!c&&E.jsx(s3,{}),n?E.jsx(kb,{zIndex:n,children:d}):d]})})},u3=(e,t)=>e.find(r=>r.id===t);function kg(e,t){const r=nS(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function nS(e,t){for(const[r,n]of Object.entries(e))if(u3(n,t))return r}function c3(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 d3(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,i=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:i,left:a}}function f3(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function h3(e,t){const r=f3(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Cg(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const oS=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vu=S.createContext({}),Wa=S.createContext(null),Wu=typeof document<"u",dp=Wu?S.useLayoutEffect:S.useEffect,iS=S.createContext({strict:!1}),fp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p3="framerAppearId",aS="data-"+fp(p3);function m3(e,t,r,n){const{visualElement:o}=S.useContext(Vu),i=S.useContext(iS),a=S.useContext(Wa),s=S.useContext(oS).reducedMotion,l=S.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(r,a)});const c=S.useRef(!!r[aS]);return dp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(window.HandoffAppearAnimations=!1,c.current=!1))}),u}function ko(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function v3(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ko(r)&&(r.current=n))},[t])}function Ea(e){return typeof e=="string"||Array.isArray(e)}function Uu(e){return typeof e=="object"&&typeof e.start=="function"}const hp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pp=["initial",...hp];function Hu(e){return Uu(e.animate)||pp.some(t=>Ea(e[t]))}function sS(e){return!!(Hu(e)||e.variants)}function g3(e,t){if(Hu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ea(r)?r:void 0,animate:Ea(n)?n:void 0}}return e.inherit!==!1?t:{}}function y3(e){const{initial:t,animate:r}=g3(e,S.useContext(Vu));return S.useMemo(()=>({initial:t,animate:r}),[_g(t),_g(r)])}function _g(e){return Array.isArray(e)?e.join(" "):e}const Pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$a={};for(const e in Pg)$a[e]={isEnabled:t=>Pg[e].some(r=>!!t[r])};function b3(e){for(const t in e)$a[t]={...$a[t],...e[t]}}const mp=S.createContext({}),lS=S.createContext({}),S3=Symbol.for("motionComponentSymbol");function x3({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&b3(e);function i(s,l){let u;const c={...S.useContext(oS),...s,layoutId:w3(s)},{isStatic:d}=c,f=y3(s),p=n(s,d);if(!d&&Wu){f.visualElement=m3(o,p,c,t);const v=S.useContext(lS),y=S.useContext(iS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,v))}return S.createElement(Vu.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,v3(p,f.visualElement,l),p,d,f.visualElement))}const a=S.forwardRef(i);return a[S3]=o,a}function w3({layoutId:e}){const t=S.useContext(mp).id;return t&&e!==void 0?t+"-"+e:e}function k3(e){function t(n,o={}){return x3(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const C3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vp(e){return typeof e!="string"||e.includes("-")?!1:!!(C3.indexOf(e)>-1||/[A-Z]/.test(e))}const Kl={};function _3(e){Object.assign(Kl,e)}const Ua=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xn=new Set(Ua);function uS(e,{layout:t,layoutId:r}){return Xn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Kl[e]||e==="opacity")}const ht=e=>!!(e&&e.getVelocity),P3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},T3=Ua.length;function E3(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),dS=cS("--"),Pf=cS("var(--"),$3=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,A3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,cn=(e,t,r)=>Math.min(Math.max(r,e),t),Qn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ji={...Qn,transform:e=>cn(0,1,e)},Ms={...Qn,default:1},ea=e=>Math.round(e*1e5)/1e5,Gu=/(-)?([\d]*\.?[\d])+/g,fS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,R3=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ha(e){return typeof e=="string"}const Ga=e=>({test:t=>Ha(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vr=Ga("deg"),hr=Ga("%"),j=Ga("px"),M3=Ga("vh"),z3=Ga("vw"),Tg={...hr,parse:e=>hr.parse(e)/100,transform:e=>hr.transform(e*100)},Eg={...Qn,transform:Math.round},hS={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,size:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:Vr,rotateX:Vr,rotateY:Vr,rotateZ:Vr,scale:Ms,scaleX:Ms,scaleY:Ms,scaleZ:Ms,skew:Vr,skewX:Vr,skewY:Vr,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Ji,originX:Tg,originY:Tg,originZ:j,zIndex:Eg,fillOpacity:Ji,strokeOpacity:Ji,numOctaves:Eg};function gp(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(dS(d)){i[d]=f;continue}const p=hS[d],v=A3(f,p);if(Xn.has(d)){if(l=!0,a[d]=v,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=v):o[d]=v}if(t.transform||(l||n?o.transform=E3(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const yp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pS(e,t,r){for(const n in t)!ht(t[n])&&!uS(n,r)&&(e[n]=t[n])}function F3({transformTemplate:e},t,r){return S.useMemo(()=>{const n=yp();return gp(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function D3(e,t,r){const n=e.style||{},o={};return pS(o,n,e),Object.assign(o,F3(e,t,r)),e.transformValues?e.transformValues(o):o}function I3(e,t,r){const n={},o=D3(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const L3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Yl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||L3.has(e)}let mS=e=>!Yl(e);function O3(e){e&&(mS=t=>t.startsWith("on")?!Yl(t):e(t))}try{O3(require("@emotion/is-prop-valid").default)}catch{}function B3(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(mS(o)||r===!0&&Yl(o)||!t&&!Yl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function $g(e,t,r){return typeof e=="string"?e:j.transform(t+r*e)}function j3(e,t,r){const n=$g(t,e.x,e.width),o=$g(r,e.y,e.height);return`${n} ${o}`}const N3={offset:"stroke-dashoffset",array:"stroke-dasharray"},V3={offset:"strokeDashoffset",array:"strokeDasharray"};function W3(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?N3:V3;e[i.offset]=j.transform(-n);const a=j.transform(t),s=j.transform(r);e[i.array]=`${a} ${s}`}function bp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(gp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:y}=e;p.transform&&(y&&(v.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=j3(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),a!==void 0&&W3(p,a,s,l,!1)}const vS=()=>({...yp(),attrs:{}}),Sp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function U3(e,t,r,n){const o=S.useMemo(()=>{const i=vS();return bp(i,t,{enableHardwareAcceleration:!1},Sp(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};pS(i,e.style,e),o.style={...i,...o.style}}return o}function H3(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(vp(r)?U3:I3)(n,i,a,r),c={...B3(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=S.useMemo(()=>ht(d)?d.get():d,[d]);return S.createElement(r,{...c,children:f})}}function gS(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const yS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function bS(e,t,r,n){gS(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(yS.has(o)?o:fp(o),t.attrs[o])}function xp(e,t){const{style:r}=e,n={};for(const o in r)(ht(r[o])||t.style&&ht(t.style[o])||uS(o,e))&&(n[o]=r[o]);return n}function SS(e,t){const r=xp(e,t);for(const n in e)if(ht(e[n])||ht(t[n])){const o=Ua.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function wp(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function xS(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xl=e=>Array.isArray(e),G3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),K3=e=>Xl(e)?e[e.length-1]||0:e;function dl(e){const t=ht(e)?e.get():e;return G3(t)?t.toValue():t}function Y3({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:X3(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const wS=e=>(t,r)=>{const n=S.useContext(Vu),o=S.useContext(Wa),i=()=>Y3(e,t,n,o);return r?i():xS(i)};function X3(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=dl(i[f]);let{initial:a,animate:s}=e;const l=Hu(e),u=sS(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!Uu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const v=wp(e,p);if(!v)return;const{transitionEnd:y,transition:x,...m}=v;for(const h in m){let g=m[h];if(Array.isArray(g)){const C=c?g.length-1:0;g=g[C]}g!==null&&(o[h]=g)}for(const h in y)o[h]=y[h]}),o}const xe=e=>e;class Ag{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Q3(e){let t=new Ag,r=new Ag,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&a.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=Q3(()=>r=!0),d),{}),a=d=>i[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,q3),1),o.timestamp=d,o.isProcessing=!0,zs.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:zs.reduce((d,f)=>{const p=i[f];return d[f]=(v,y=!1,x=!1)=>(r||l(),p.schedule(v,y,x)),d},{}),cancel:d=>zs.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:se,cancel:Ir,state:De,steps:Jc}=Z3(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0),J3={useVisualState:wS({scrapeMotionValuesFromProps:SS,createRenderState:vS,onMount:(e,t,{renderState:r,latestValues:n})=>{se.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),se.render(()=>{bp(r,n,{enableHardwareAcceleration:!1},Sp(t.tagName),e.transformTemplate),bS(t,r)})}})},e4={useVisualState:wS({scrapeMotionValuesFromProps:xp,createRenderState:yp})};function t4(e,{forwardMotionProps:t=!1},r,n){return{...vp(e)?J3:e4,preloadedFeatures:r,useRender:H3(t),createVisualElement:n,Component:e}}function _r(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const kS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ku(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const r4=e=>t=>kS(t)&&e(t,Ku(t));function Er(e,t,r,n){return _r(e,t,r4(r),n)}const n4=(e,t)=>r=>t(e(r)),an=(...e)=>e.reduce(n4);function CS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Rg=CS("dragHorizontal"),Mg=CS("dragVertical");function _S(e){let t=!1;if(e==="y")t=Mg();else if(e==="x")t=Rg();else{const r=Rg(),n=Mg();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function PS(){const e=_S(!0);return e?(e(),!1):!0}class vn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function zg(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||PS())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&se.update(()=>s[n](i,a))};return Er(e.current,r,o,{passive:!e.getProps()[n]})}class o4 extends vn{mount(){this.unmount=an(zg(this.node,!0),zg(this.node,!1))}unmount(){}}class i4 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=an(_r(this.node.current,"focus",()=>this.onFocus()),_r(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const TS=(e,t)=>t?e===t?!0:TS(e,t.parentElement):!1;function ed(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ku(r))}class a4 extends vn{constructor(){super(...arguments),this.removeStartListeners=xe,this.removeEndListeners=xe,this.removeAccessibleListeners=xe,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Er(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();se.update(()=>{TS(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=Er(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=an(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ed("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&se.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=_r(this.node.current,"keyup",a),ed("down",(s,l)=>{this.startPress(s,l)})},r=_r(this.node.current,"keydown",t),n=()=>{this.isPressing&&ed("cancel",(i,a)=>this.cancelPress(i,a))},o=_r(this.node.current,"blur",n);this.removeAccessibleListeners=an(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&se.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!PS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&se.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Er(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=_r(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=an(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tf=new WeakMap,td=new WeakMap,s4=e=>{const t=Tf.get(e.target);t&&t(e)},l4=e=>{e.forEach(s4)};function u4({root:e,...t}){const r=e||document;td.has(r)||td.set(r,{});const n=td.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(l4,{root:e,...t})),n[o]}function c4(e,t,r){const n=u4(t);return Tf.set(e,r),n.observe(e),()=>{Tf.delete(e),n.unobserve(e)}}const d4={some:0,all:1};class f4 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:d4[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return c4(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(h4(t,r))&&this.startObserver()}unmount(){}}function h4({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const p4={inView:{Feature:f4},tap:{Feature:a4},focus:{Feature:i4},hover:{Feature:o4}};function ES(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function v4(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Yu(e,t,r){const n=e.getProps();return wp(n,t,r!==void 0?r:n.custom,m4(e),v4(e))}let g4=xe,kp=xe;const sn=e=>e*1e3,$r=e=>e/1e3,y4={current:!1},$S=e=>Array.isArray(e)&&typeof e[0]=="number";function AS(e){return!!(!e||typeof e=="string"&&RS[e]||$S(e)||Array.isArray(e)&&e.every(AS))}const Ii=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,RS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ii([0,.65,.55,1]),circOut:Ii([.55,0,1,.45]),backIn:Ii([.31,.01,.66,-.59]),backOut:Ii([.33,1.53,.69,.99])};function MS(e){if(e)return $S(e)?Ii(e):Array.isArray(e)?e.map(MS):RS[e]}function b4(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=MS(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function S4(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const zS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,x4=1e-7,w4=12;function k4(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=zS(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>x4&&++sk4(i,0,1,e,r);return i=>i===0||i===1?i:zS(o(i),t,n)}const C4=Ka(.42,0,1,1),_4=Ka(0,0,.58,1),FS=Ka(.42,0,.58,1),P4=e=>Array.isArray(e)&&typeof e[0]!="number",DS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,IS=e=>t=>1-e(1-t),LS=e=>1-Math.sin(Math.acos(e)),Cp=IS(LS),T4=DS(Cp),OS=Ka(.33,1.53,.69,.99),_p=IS(OS),E4=DS(_p),$4=e=>(e*=2)<1?.5*_p(e):.5*(2-Math.pow(2,-10*(e-1))),A4={linear:xe,easeIn:C4,easeInOut:FS,easeOut:_4,circIn:LS,circInOut:T4,circOut:Cp,backIn:_p,backInOut:E4,backOut:OS,anticipate:$4},Fg=e=>{if(Array.isArray(e)){kp(e.length===4);const[t,r,n,o]=e;return Ka(t,r,n,o)}else if(typeof e=="string")return A4[e];return e},Pp=(e,t)=>r=>!!(Ha(r)&&R3.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),BS=(e,t,r)=>n=>{if(!Ha(n))return n;const[o,i,a,s]=n.match(Gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},R4=e=>cn(0,255,e),rd={...Qn,transform:e=>Math.round(R4(e))},Mn={test:Pp("rgb","red"),parse:BS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+rd.transform(e)+", "+rd.transform(t)+", "+rd.transform(r)+", "+ea(Ji.transform(n))+")"};function M4(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Ef={test:Pp("#"),parse:M4,transform:Mn.transform},Co={test:Pp("hsl","hue"),parse:BS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+hr.transform(ea(t))+", "+hr.transform(ea(r))+", "+ea(Ji.transform(n))+")"},Ze={test:e=>Mn.test(e)||Ef.test(e)||Co.test(e),parse:e=>Mn.test(e)?Mn.parse(e):Co.test(e)?Co.parse(e):Ef.parse(e),transform:e=>Ha(e)?e:e.hasOwnProperty("red")?Mn.transform(e):Co.transform(e)},ge=(e,t,r)=>-r*e+r*t+e;function nd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function z4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=nd(l,s,e+1/3),i=nd(l,s,e),a=nd(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const od=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},F4=[Ef,Mn,Co],D4=e=>F4.find(t=>t.test(e));function Dg(e){const t=D4(e);let r=t.parse(e);return t===Co&&(r=z4(r)),r}const jS=(e,t)=>{const r=Dg(e),n=Dg(t),o={...r};return i=>(o.red=od(r.red,n.red,i),o.green=od(r.green,n.green,i),o.blue=od(r.blue,n.blue,i),o.alpha=ge(r.alpha,n.alpha,i),Mn.transform(o))};function I4(e){var t,r;return isNaN(e)&&Ha(e)&&(((t=e.match(Gu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(fS))===null||r===void 0?void 0:r.length)||0)>0}const NS={regex:$3,countKey:"Vars",token:"${v}",parse:xe},VS={regex:fS,countKey:"Colors",token:"${c}",parse:Ze.parse},WS={regex:Gu,countKey:"Numbers",token:"${n}",parse:Qn.parse};function id(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function Ql(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&id(r,NS),id(r,VS),id(r,WS),r}function US(e){return Ql(e).values}function HS(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Ql(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function O4(e){const t=US(e);return HS(e)(t.map(L4))}const dn={test:I4,parse:US,createTransformer:HS,getAnimatableNone:O4},GS=(e,t)=>r=>`${r>0?t:e}`;function KS(e,t){return typeof e=="number"?r=>ge(e,t,r):Ze.test(e)?jS(e,t):e.startsWith("var(")?GS(e,t):XS(e,t)}const YS=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>KS(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=KS(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},XS=(e,t)=>{const r=dn.createTransformer(t),n=Ql(e),o=Ql(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?an(YS(n.values,o.values),r):GS(e,t)},Aa=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Ig=(e,t)=>r=>ge(e,t,r);function j4(e){return typeof e=="number"?Ig:typeof e=="string"?Ze.test(e)?jS:XS:Array.isArray(e)?YS:typeof e=="object"?B4:Ig}function N4(e,t,r){const n=[],o=r||j4(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=N4(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(cn(e[0],e[i-1],u)):l}function V4(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Aa(0,t,n);e.push(ge(r,1,o))}}function W4(e){const t=[0];return V4(t,e.length-1),t}function U4(e,t){return e.map(r=>r*t)}function H4(e,t){return e.map(()=>t||FS).splice(0,e.length-1)}function ql({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=P4(n)?n.map(Fg):Fg(n),i={done:!1,value:t[0]},a=U4(r&&r.length===t.length?r:W4(t),e),s=QS(a,t,{ease:Array.isArray(o)?o:H4(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function qS(e,t){return t?e*(1e3/t):0}const G4=5;function ZS(e,t,r){const n=Math.max(t-G4,0);return qS(r-e(n),t-n)}const ad=.001,K4=.01,Lg=10,Y4=.05,X4=1;function Q4({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;g4(e<=sn(Lg));let a=1-t;a=cn(Y4,X4,a),e=cn(K4,Lg,$r(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,p=$f(u,a),v=Math.exp(-d);return ad-f/p*v},i=u=>{const d=u*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=$f(Math.pow(u,2),a);return(-o(u)+ad>0?-1:1)*((f-p)*v)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-ad+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=Z4(o,i,s);if(e=sn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const q4=12;function Z4(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function tF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Og(e,eF)&&Og(e,J4)){const r=Q4(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function JS({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=tF(n),p=c?-$r(c):0,v=l/(2*Math.sqrt(s*u)),y=i-o,x=$r(Math.sqrt(s/u)),m=Math.abs(y)<5;r||(r=m?.01:2),t||(t=m?.005:.5);let h;if(v<1){const g=$f(x,v);h=C=>{const _=Math.exp(-v*x*C);return i-_*((p+v*x*y)/g*Math.sin(g*C)+y*Math.cos(g*C))}}else if(v===1)h=g=>i-Math.exp(-x*g)*(y+(p+x*y)*g);else{const g=x*Math.sqrt(v*v-1);h=C=>{const _=Math.exp(-v*x*C),$=Math.min(g*C,300);return i-_*((p+v*x*y)*Math.sinh($)+g*y*Math.cosh($))/g}}return{calculatedDuration:f&&d||null,next:g=>{const C=h(g);if(f)a.done=g>=d;else{let _=p;g!==0&&(v<1?_=ZS(h,g,C):_=0);const $=Math.abs(_)<=r,T=Math.abs(i-C)<=t;a.done=$&&T}return a.value=a.done?i:C,a}}}function Bg({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=A=>s!==void 0&&Al,v=A=>s===void 0?l:l===void 0||Math.abs(s-A)-y*Math.exp(-A/n),g=A=>m+h(A),C=A=>{const M=h(A),I=g(A);f.done=Math.abs(M)<=u,f.value=f.done?m:I};let _,$;const T=A=>{p(f.value)&&(_=A,$=JS({keyframes:[f.value,v(f.value)],velocity:ZS(g,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:A=>{let M=!1;return!$&&_===void 0&&(M=!0,C(A),T(A)),_!==void 0&&A>_?$.next(A-_):(!M&&C(A),f)}}}const rF=e=>{const t=({timestamp:r})=>e(r);return{start:()=>se.update(t,!0),stop:()=>Ir(t),now:()=>De.isProcessing?De.timestamp:performance.now()}},jg=2e4;function Ng(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=jg?1/0:t}const nF={decay:Bg,inertia:Bg,tween:ql,keyframes:ql,spring:JS};function Zl({autoplay:e=!0,delay:t=0,driver:r=rF,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,v=!1,y,x;const m=()=>{x=new Promise(B=>{y=B})};m();let h;const g=nF[o]||ql;let C;g!==ql&&typeof n[0]!="number"&&(C=QS([0,100],n,{clamp:!1}),n=[0,100]);const _=g({...f,keyframes:n});let $;s==="mirror"&&($=g({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let T="idle",A=null,M=null,I=null;_.calculatedDuration===null&&i&&(_.calculatedDuration=Ng(_));const{calculatedDuration:ee}=_;let ze=1/0,Pe=1/0;ee!==null&&(ze=ee+a,Pe=ze*(i+1)-a);let oe=0;const ue=B=>{if(M===null)return;p>0&&(M=Math.min(M,B)),p<0&&(M=Math.min(B-Pe/p,M)),A!==null?oe=A:oe=Math.round(B-M)*p;const ne=oe-t*(p>=0?1:-1),U=p>=0?ne<0:ne>Pe;oe=Math.max(ne,0),T==="finished"&&A===null&&(oe=Pe);let Ge=oe,Xt=_;if(i){const Qt=oe/ze;let Ot=Math.floor(Qt),qt=Qt%1;!qt&&Qt>=1&&(qt=1),qt===1&&Ot--,Ot=Math.min(Ot,i+1);const si=!!(Ot%2);si&&(s==="reverse"?(qt=1-qt,a&&(qt-=a/ze)):s==="mirror"&&(Xt=$));let Qa=cn(0,1,qt);oe>Pe&&(Qa=s==="reverse"&&si?1:0),Ge=Qa*ze}const we=U?{done:!1,value:n[0]}:Xt.next(Ge);C&&(we.value=C(we.value));let{done:Fe}=we;!U&&ee!==null&&(Fe=p>=0?oe>=Pe:oe<=0);const mt=A===null&&(T==="finished"||T==="running"&&Fe);return d&&d(we.value),mt&&z(),we},He=()=>{h&&h.stop(),h=void 0},it=()=>{T="idle",He(),y(),m(),M=I=null},z=()=>{T="finished",c&&c(),He(),y()},N=()=>{if(v)return;h||(h=r(ue));const B=h.now();l&&l(),A!==null?M=B-A:(!M||T==="finished")&&(M=B),T==="finished"&&m(),I=M,A=null,T="running",h.start()};e&&N();const V={then(B,ne){return x.then(B,ne)},get time(){return $r(oe)},set time(B){B=sn(B),oe=B,A!==null||!h||p===0?A=B:M=h.now()-B/p},get duration(){const B=_.calculatedDuration===null?Ng(_):_.calculatedDuration;return $r(B)},get speed(){return p},set speed(B){B===p||!h||(p=B,V.time=$r(oe))},get state(){return T},play:N,pause:()=>{T="paused",A=oe},stop:()=>{v=!0,T!=="idle"&&(T="idle",u&&u(),it())},cancel:()=>{I!==null&&ue(I),it()},complete:()=>{T="finished"},sample:B=>(M=0,ue(B))};return V}function oF(e){let t;return()=>(t===void 0&&(t=e()),t)}const iF=oF(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),aF=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Fs=10,sF=2e4,lF=(e,t)=>t.type==="spring"||e==="backgroundColor"||!AS(t.ease);function uF(e,t,{onUpdate:r,onComplete:n,...o}){if(!(iF()&&aF.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const u=()=>{l=new Promise(h=>{s=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(lF(t,o)){const h=Zl({...o,repeat:0,delay:0});let g={done:!1,value:c[0]};const C=[];let _=0;for(;!g.done&&_v.cancel(),x=()=>{se.update(y),s(),u()};return v.onfinish=()=>{e.set(S4(c,o)),n&&n(),x()},{then(h,g){return l.then(h,g)},attachTimeline(h){return v.timeline=h,v.onfinish=null,xe},get time(){return $r(v.currentTime||0)},set time(h){v.currentTime=sn(h)},get speed(){return v.playbackRate},set speed(h){v.playbackRate=h},get duration(){return $r(d)},play:()=>{a||(v.play(),Ir(y))},pause:()=>v.pause(),stop:()=>{if(a=!0,v.playState==="idle")return;const{currentTime:h}=v;if(h){const g=Zl({...o,autoplay:!1});e.setWithVelocity(g.sample(h-Fs).value,g.sample(h).value,Fs)}x()},complete:()=>v.finish(),cancel:x}}function cF({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:xe,pause:xe,stop:xe,then:i=>(i(),Promise.resolve()),cancel:xe,complete:xe});return t?Zl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const dF={type:"spring",stiffness:500,damping:25,restSpeed:10},fF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hF={type:"keyframes",duration:.8},pF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mF=(e,{keyframes:t})=>t.length>2?hF:Xn.has(e)?e.startsWith("scale")?fF(t[1]):dF:pF,Af=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(dn.test(t)||t==="0")&&!t.startsWith("url(")),vF=new Set(["brightness","contrast","saturate","opacity"]);function gF(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Gu)||[];if(!n)return e;const o=r.replace(n,"");let i=vF.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const yF=/([a-z-]*)\(.*?\)/g,Rf={...dn,getAnimatableNone:e=>{const t=e.match(yF);return t?t.map(gF).join(" "):e}},bF={...hS,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:Rf,WebkitFilter:Rf},Tp=e=>bF[e];function ex(e,t){let r=Tp(e);return r!==Rf&&(r=dn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tx=e=>/^0[^.\s]+$/.test(e);function SF(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tx(e)}function xF(e,t,r,n){const o=Af(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=Ep(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-sn(a);const l=xF(t,e,r,i),u=l[0],c=l[l.length-1],d=Af(e,u),f=Af(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(wF(i)||(p={...p,...mF(e,p)}),p.duration&&(p.duration=sn(p.duration)),p.repeatDelay&&(p.repeatDelay=sn(p.repeatDelay)),!d||!f||y4.current||i.type===!1)return cF(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=uF(t,e,p);if(v)return v}return Zl(p)};function Jl(e){return!!(ht(e)&&e.add)}const rx=e=>/^\-?\d*\.?\d+$/.test(e);function Ap(e,t){e.indexOf(t)===-1&&e.push(t)}function Rp(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Mp{constructor(){this.subscriptions=[]}add(t){return Ap(this.subscriptions,t),()=>Rp(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class CF{constructor(t,r={}){this.version="10.16.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=De;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,se.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=kF(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mp);const n=this.events[t].add(r);return t==="change"?()=>{n(),se.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?qS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jo(e,t){return new CF(e,t)}const nx=e=>t=>t.test(e),_F={test:e=>e==="auto",parse:e=>e},ox=[Qn,j,hr,Vr,z3,M3,_F],ki=e=>ox.find(nx(e)),PF=[...ox,Ze,dn],TF=e=>PF.find(nx(e));function EF(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jo(r))}function $F(e,t){const r=Yu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=K3(i[a]);EF(e,a,s)}}function AF(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(m)}return a&&Promise.all(u).then(()=>{a&&$F(e,a)}),u}function Mf(e,t,r={}){const n=Yu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(ix(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return FF(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function FF(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(DF).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Mf(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function DF(e,t){return e.sortNodePosition(t)}function IF(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Mf(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Mf(e,t,r);else{const o=typeof t=="function"?Yu(e,t,r.custom):t;n=Promise.all(ix(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const LF=[...hp].reverse(),OF=hp.length;function BF(e){return t=>Promise.all(t.map(({animation:r,options:n})=>IF(e,r,n)))}function jF(e){let t=BF(e);const r=VF();let n=!0;const o=(l,u)=>{const c=Yu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let v={},y=1/0;for(let m=0;my&&_;const I=Array.isArray(C)?C:[C];let ee=I.reduce(o,{});$===!1&&(ee={});const{prevResolvedValues:ze={}}=g,Pe={...ze,...ee},oe=ue=>{M=!0,p.delete(ue),g.needsAnimating[ue]=!0};for(const ue in Pe){const He=ee[ue],it=ze[ue];v.hasOwnProperty(ue)||(He!==it?Xl(He)&&Xl(it)?!ES(He,it)||A?oe(ue):g.protectedKeys[ue]=!0:He!==void 0?oe(ue):p.add(ue):He!==void 0&&p.has(ue)?oe(ue):g.protectedKeys[ue]=!0)}g.prevProp=C,g.prevResolvedValues=ee,g.isActive&&(v={...v,...ee}),n&&e.blockInitialAnimation&&(M=!1),M&&!T&&f.push(...I.map(ue=>({animation:ue,options:{type:h,...l}})))}if(p.size){const m={};p.forEach(h=>{const g=e.getBaseTarget(h);g!==void 0&&(m[h]=g)}),f.push({animation:m})}let x=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),n=!1,x?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),r[l].isActive=u;const f=a(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function NF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ES(t,e):!1}function Sn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function VF(){return{animate:Sn(!0),whileInView:Sn(),whileHover:Sn(),whileTap:Sn(),whileDrag:Sn(),whileFocus:Sn(),exit:Sn()}}class WF extends vn{constructor(t){super(t),t.animationState||(t.animationState=jF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Uu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let UF=0;class HF extends vn{constructor(){super(...arguments),this.id=UF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GF={animation:{Feature:WF},exit:{Feature:HF}},Vg=(e,t)=>Math.abs(e-t);function KF(e,t){const r=Vg(e.x,t.x),n=Vg(e.y,t.y);return Math.sqrt(r**2+n**2)}class ax{constructor(t,r,{transformPagePoint:n,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=ld(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=KF(c.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=c,{timestamp:v}=De;this.history.push({...p,timestamp:v});const{onStart:y,onMove:x}=this.handlers;d||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=sd(d,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:p}=this.handlers,v=ld(c.type==="pointercancel"?this.lastMoveEventInfo:sd(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,v),p&&p(c,v)},!kS(t))return;this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const i=Ku(t),a=sd(i,this.transformPagePoint),{point:s}=a,{timestamp:l}=De;this.history=[{...s,timestamp:l}];const{onSessionStart:u}=r;u&&u(t,ld(a,this.history)),this.removeListeners=an(Er(this.contextWindow,"pointermove",this.handlePointerMove),Er(this.contextWindow,"pointerup",this.handlePointerUp),Er(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ir(this.updatePoint)}}function sd(e,t){return t?{point:t(e.point)}:e}function Wg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ld({point:e},t){return{point:e,delta:Wg(e,sx(t)),offset:Wg(e,YF(t)),velocity:XF(t,.1)}}function YF(e){return e[0]}function sx(e){return e[e.length-1]}function XF(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=sx(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>sn(t)));)r--;if(!n)return{x:0,y:0};const i=$r(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function kt(e){return e.max-e.min}function zf(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ug(e,t,r,n=.5){e.origin=n,e.originPoint=ge(t.min,t.max,e.origin),e.scale=kt(r)/kt(t),(zf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ge(r.min,r.max,e.origin)-e.originPoint,(zf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ta(e,t,r,n){Ug(e.x,t.x,r.x,n?n.originX:void 0),Ug(e.y,t.y,r.y,n?n.originY:void 0)}function Hg(e,t,r){e.min=r.min+t.min,e.max=e.min+kt(t)}function QF(e,t,r){Hg(e.x,t.x,r.x),Hg(e.y,t.y,r.y)}function Gg(e,t,r){e.min=t.min-r.min,e.max=e.min+kt(t)}function ra(e,t,r){Gg(e.x,t.x,r.x),Gg(e.y,t.y,r.y)}function qF(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ge(r,e,n.max):Math.min(e,r)),e}function Kg(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function ZF(e,{top:t,left:r,bottom:n,right:o}){return{x:Kg(e.x,r,o),y:Kg(e.y,t,n)}}function Yg(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Aa(t.min,t.max-n,e.min):n>o&&(r=Aa(e.min,e.max-o,t.min)),cn(0,1,r)}function tD(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ff=.35;function rD(e=Ff){return e===!1?e=0:e===!0&&(e=Ff),{x:Xg(e,"left","right"),y:Xg(e,"top","bottom")}}function Xg(e,t,r){return{min:Qg(e,t),max:Qg(e,r)}}function Qg(e,t){return typeof e=="number"?e:e[t]||0}const qg=()=>({translate:0,scale:1,origin:0,originPoint:0}),_o=()=>({x:qg(),y:qg()}),Zg=()=>({min:0,max:0}),Te=()=>({x:Zg(),y:Zg()});function tr(e){return[e("x"),e("y")]}function lx({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oD(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ud(e){return e===void 0||e===1}function Df({scale:e,scaleX:t,scaleY:r}){return!ud(e)||!ud(t)||!ud(r)}function kn(e){return Df(e)||ux(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ux(e){return Jg(e.x)||Jg(e.y)}function Jg(e){return e&&e!=="0%"}function eu(e,t,r){const n=e-r,o=t*n;return r+o}function e0(e,t,r,n,o){return o!==void 0&&(e=eu(e,o,n)),eu(e,r,n)+t}function If(e,t=0,r=1,n,o){e.min=e0(e.min,t,r,n,o),e.max=e0(e.max,t,r,n,o)}function cx(e,{x:t,y:r}){If(e.x,t.translate,t.scale,t.originPoint),If(e.y,r.translate,r.scale,r.originPoint)}function iD(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Hr(e,t){e.min=e.min+t,e.max=e.max+t}function r0(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=ge(e.min,e.max,i);If(e,t[r],t[n],a,t.scale)}const aD=["x","scaleX","originX"],sD=["y","scaleY","originY"];function Po(e,t){r0(e.x,t,aD),r0(e.y,t,sD)}function dx(e,t){return lx(oD(e.getBoundingClientRect(),t))}function lD(e,t,r){const n=dx(e,r),{scroll:o}=t;return o&&(Hr(n.x,o.offset.x),Hr(n.y,o.offset.y)),n}const fx=({current:e})=>e?e.ownerDocument.defaultView:null,uD=new WeakMap;class cD{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(Ku(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_S(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tr(v=>{let y=this.getAxisMotionValue(v).get()||0;if(hr.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const m=x.layout.layoutBox[v];m&&(y=kt(m)*(parseFloat(y)/100))}}this.originPoint[v]=y}),f&&se.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:v}=u;if(d&&this.currentDirection===null){this.currentDirection=dD(v),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),p&&p(l,u)},s=(l,u)=>this.stop(l,u);this.panSession=new ax(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:fx(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&se.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Ds(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=qF(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&ko(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=ZF(o.layoutBox,r):this.constraints=!1,this.elastic=rD(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&tr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=tD(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ko(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=lD(n,o.root,this.visualElement.getTransformPagePoint());let a=JF(o.layout.layoutBox,i);if(r){const s=r(nD(a));this.hasMutatedConstraints=!!s,s&&(a=lx(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=tr(c=>{if(!Ds(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,v={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($p(t,n,0,r))}stopAnimation(){tr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){tr(r=>{const{drag:n}=this.getProps();if(!Ds(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-ge(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!ko(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};tr(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=eD({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tr(a=>{if(!Ds(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(ge(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;uD.set(this.visualElement,this);const t=this.visualElement.current,r=Er(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();ko(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=_r(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(tr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Ff,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Ds(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function dD(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class fD extends vn{constructor(t){super(t),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new cD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const n0=e=>(t,r)=>{e&&se.update(()=>e(t,r))};class hD extends vn{constructor(){super(...arguments),this.removePointerDownListener=xe}onPointerDown(t){this.session=new ax(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:n0(t),onStart:n0(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&se.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Er(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function hx(){const e=S.useContext(Wa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=S.useId();return S.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function pD(){return mD(S.useContext(Wa))}function mD(e){return e===null?!0:e.isPresent}const fl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function o0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ci={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const r=o0(e,t.target.x),n=o0(e,t.target.y);return`${r}% ${n}%`}},vD={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=dn.parse(e);if(o.length>5)return n;const i=dn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=ge(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class gD extends Ar.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;_3(yD),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),fl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||se.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function px(e){const[t,r]=hx(),n=S.useContext(mp);return Ar.createElement(gD,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(lS),isPresent:t,safeToRemove:r})}const yD={borderRadius:{...Ci,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ci,borderTopRightRadius:Ci,borderBottomLeftRadius:Ci,borderBottomRightRadius:Ci,boxShadow:vD},mx=["TopLeft","TopRight","BottomLeft","BottomRight"],bD=mx.length,i0=e=>typeof e=="string"?parseFloat(e):e,a0=e=>typeof e=="number"||j.test(e);function SD(e,t,r,n,o,i){o?(e.opacity=ge(0,r.opacity!==void 0?r.opacity:1,xD(n)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,wD(n))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(Aa(e,t,n))}function l0(e,t){e.min=t.min,e.max=t.max}function $t(e,t){l0(e.x,t.x),l0(e.y,t.y)}function u0(e,t,r,n,o){return e-=t,e=eu(e,1/r,n),o!==void 0&&(e=eu(e,1/o,n)),e}function kD(e,t=0,r=1,n=.5,o,i=e,a=e){if(hr.test(t)&&(t=parseFloat(t),t=ge(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ge(i.min,i.max,n);e===i&&(s-=t),e.min=u0(e.min,t,r,s,o),e.max=u0(e.max,t,r,s,o)}function c0(e,t,[r,n,o],i,a){kD(e,t[r],t[n],t[o],t.scale,i,a)}const CD=["x","scaleX","originX"],_D=["y","scaleY","originY"];function d0(e,t,r,n){c0(e.x,t,CD,r?r.x:void 0,n?n.x:void 0),c0(e.y,t,_D,r?r.y:void 0,n?n.y:void 0)}function f0(e){return e.translate===0&&e.scale===1}function gx(e){return f0(e.x)&&f0(e.y)}function PD(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function yx(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function h0(e){return kt(e.x)/kt(e.y)}class TD{constructor(){this.members=[]}add(t){Ap(this.members,t),t.scheduleRender()}remove(t){if(Rp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function p0(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const ED=(e,t)=>e.depth-t.depth;class $D{constructor(){this.children=[],this.isDirty=!1}add(t){Ap(this.children,t),this.isDirty=!0}remove(t){Rp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ED),this.isDirty=!1,this.children.forEach(t)}}function AD(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Ir(n),e(i-t))};return se.read(n,!0),()=>Ir(n)}function RD(e){window.MotionDebug&&window.MotionDebug.record(e)}function MD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function zD(e,t,r){const n=ht(e)?e:Jo(e);return n.start($p("",n,t,r)),n.animation}const m0=["","X","Y","Z"],FD={visibility:"hidden"},v0=1e3;let DD=0;const Cn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function bx({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=DD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Cn.totalNodes=Cn.resolvedTargetDeltas=Cn.recalculatedProjection=0,this.nodes.forEach(OD),this.nodes.forEach(WD),this.nodes.forEach(UD),this.nodes.forEach(BD),RD(Cn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=AD(f,250),fl.hasAnimatedSinceResize&&(fl.hasAnimatedSinceResize=!1,this.nodes.forEach(y0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||XD,{onLayoutAnimationStart:x,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!yx(this.targetLayout,v)||p,g=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const C={...Ep(y,"layout"),onPlay:x,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||y0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ir(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(jD),this.sharedNodes.forEach(GD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const _=C/1e3;b0(d.x,a.x,_),b0(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ra(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KD(this.relativeTarget,this.relativeTargetOrigin,f,_),g&&PD(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Te()),$t(g,this.relativeTarget)),y&&(this.animationValues=c,SD(c,u,this.latestValues,_,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{fl.hasAnimatedSinceResize=!0,this.currentAnimation=zD(0,v0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(v0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Sx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Te();const d=kt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=kt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}$t(s,l),Po(s,c),ta(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TD),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(g0),this.root.sharedNodes.clear()}}}function ID(e){e.updateLayout()}function LD(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?tr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=kt(f);f.min=n[d].min,f.max=f.min+p}):Sx(i,r.layoutBox,n)&&tr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=kt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=_o();ta(s,n,r.layoutBox);const l=_o();a?ta(l,e.applyTransform(o,!0),r.measuredBox):ta(l,n,r.layoutBox);const u=!gx(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const v=Te();ra(v,r.layoutBox,f.layoutBox);const y=Te();ra(y,n,p.layoutBox),yx(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function OD(e){Cn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jD(e){e.clearSnapshot()}function g0(e){e.clearMeasurements()}function ND(e){e.isLayoutDirty=!1}function VD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function y0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WD(e){e.resolveTargetDelta()}function UD(e){e.calcProjection()}function HD(e){e.resetRotation()}function GD(e){e.removeLeadSnapshot()}function b0(e,t,r){e.translate=ge(t.translate,0,r),e.scale=ge(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function S0(e,t,r,n){e.min=ge(t.min,r.min,n),e.max=ge(t.max,r.max,n)}function KD(e,t,r,n){S0(e.x,t.x,r.x,n),S0(e.y,t.y,r.y,n)}function YD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XD={duration:.45,ease:[.4,0,.1,1]},x0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),w0=x0("applewebkit/")&&!x0("chrome/")?Math.round:xe;function k0(e){e.min=w0(e.min),e.max=w0(e.max)}function QD(e){k0(e.x),k0(e.y)}function Sx(e,t,r){return e==="position"||e==="preserve-aspect"&&!zf(h0(t),h0(r),.2)}const qD=bx({attachResizeListener:(e,t)=>_r(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cd={current:void 0},xx=bx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cd.current){const e=new qD({});e.mount(window),e.setOptions({layoutScroll:!0}),cd.current=e}return cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZD={pan:{Feature:hD},drag:{Feature:fD,ProjectionNode:xx,MeasureLayout:px}},JD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eI(e){const t=JD.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Lf(e,t,r=1){const[n,o]=eI(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return rx(a)?parseFloat(a):a}else return Pf(o)?Lf(o,t,r+1):o}function tI(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Pf(i))return;const a=Lf(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!Pf(i))continue;const a=Lf(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const rI=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wx=e=>rI.has(e),nI=e=>Object.keys(e).some(wx),C0=e=>e===Qn||e===j,_0=(e,t)=>parseFloat(e.split(", ")[t]),P0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return _0(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?_0(i[1],e):0}},oI=new Set(["x","y","z"]),iI=Ua.filter(e=>!oI.has(e));function aI(e){const t=[];return iI.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ei={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:P0(4,13),y:P0(5,14)};ei.translateX=ei.x;ei.translateY=ei.y;const sI=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=ei[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=ei[u](l,i)}),e},lI=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(wx);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=ki(c);const f=t[l];let p;if(Xl(f)){const v=f.length,y=f[0]===null?1:0;c=f[y],d=ki(c);for(let x=y;x=0?window.pageYOffset:null,u=sI(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Wu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function uI(e,t,r,n){return nI(t)?lI(e,t,r,n):{target:t,transitionEnd:n}}const cI=(e,t,r,n)=>{const o=tI(e,t,n);return t=o.target,n=o.transitionEnd,uI(e,t,r,n)},Of={current:null},kx={current:!1};function dI(){if(kx.current=!0,!!Wu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Of.current=e.matches;e.addListener(t),t()}else Of.current=!1}function fI(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(ht(i))e.addValue(o,i),Jl(n)&&n.add(o);else if(ht(a))e.addValue(o,Jo(i,{owner:e})),Jl(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Jo(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const T0=new WeakMap,Cx=Object.keys($a),hI=Cx.length,E0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pI=pp.length;class mI{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>se.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Hu(r),this.isVariantNode=sS(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];s[d]!==void 0&&ht(f)&&(f.set(s[d],!1),Jl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,T0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),kx.current||dI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Of.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){T0.delete(this.current),this.projection&&this.projection.unmount(),Ir(this.notifyUpdate),Ir(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Xn.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&se.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jo(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=wp(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class _x extends mI{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=MF(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){AF(this,n,a);const s=cI(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function vI(e){return window.getComputedStyle(e)}class gI extends _x{readValueFromInstance(t,r){if(Xn.has(r)){const n=Tp(r);return n&&n.default||0}else{const n=vI(t),o=(dS(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return dx(t,r)}build(t,r,n,o){gp(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return xp(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){gS(t,r,n,o)}}class yI extends _x{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Xn.has(r)){const n=Tp(r);return n&&n.default||0}return r=yS.has(r)?r:fp(r),t.getAttribute(r)}measureInstanceViewportBox(){return Te()}scrapeMotionValuesFromProps(t,r){return SS(t,r)}build(t,r,n,o){bp(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){bS(t,r,n,o)}mount(t){this.isSVGTag=Sp(t.tagName),super.mount(t)}}const bI=(e,t)=>vp(e)?new yI(t,{enableHardwareAcceleration:!1}):new gI(t,{enableHardwareAcceleration:!0}),SI={layout:{ProjectionNode:xx,MeasureLayout:px}},xI={...GF,...p4,...ZD,...SI},ii=k3((e,t)=>t4(e,t,xI,bI));function Px(){const e=S.useRef(!1);return dp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function wI(){const e=Px(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>se.postRender(n),[n]),t]}class kI extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function CI({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
+=======
+ )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},W5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},U5=e=>({bg:L("gray.100","whiteAlpha.300")(e)}),H5=e=>({transitionProperty:"common",transitionDuration:"slow",...V5(e)}),G5=Fi(e=>({label:W5,filledTrack:H5(e),track:U5(e)})),K5={xs:Fi({track:{h:"1"}}),sm:Fi({track:{h:"2"}}),md:Fi({track:{h:"3"}}),lg:Fi({track:{h:"4"}})},Y5=N5({sizes:K5,baseStyle:G5,defaultProps:{size:"md",colorScheme:"blue"}}),X5=e=>typeof e=="function";function rt(e,...t){return X5(e)?e(...t):e}var{definePartsStyle:sl,defineMultiStyleConfig:Q5}=le(VE.keys),Qi=O("checkbox-size"),q5=e=>{const{colorScheme:t}=e;return{w:Qi.reference,h:Qi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e),_hover:{bg:L(`${t}.600`,`${t}.300`)(e),borderColor:L(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:L("gray.200","transparent")(e),bg:L("gray.200","whiteAlpha.300")(e),color:L("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e)},_disabled:{bg:L("gray.100","whiteAlpha.100")(e),borderColor:L("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:L("red.500","red.300")(e)}}},Z5={_disabled:{cursor:"not-allowed"}},J5={userSelect:"none",_disabled:{opacity:.4}},eA={transitionProperty:"transform",transitionDuration:"normal"},tA=sl(e=>({icon:eA,container:Z5,control:rt(q5,e),label:J5})),rA={sm:sl({control:{[Qi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:sl({control:{[Qi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:sl({control:{[Qi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ul=Q5({baseStyle:tA,sizes:rA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nA,definePartsStyle:ll}=le(e$.keys),oA=e=>{var t;const r=(t=rt(Ul.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},iA=ll(e=>{var t,r,n,o;return{label:(r=(t=Ul).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Ul).baseStyle)==null?void 0:o.call(n,e).container,control:oA(e)}}),aA={md:ll({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ll({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ll({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},sA=nA({baseStyle:iA,sizes:aA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lA,definePartsStyle:uA}=le(t$.keys),Es=O("select-bg"),sg,cA={...(sg=Z.baseStyle)==null?void 0:sg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Es.reference,[Es.variable]:"colors.white",_dark:{[Es.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Es.reference}},dA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},fA=uA({field:cA,icon:dA}),$s={paddingInlineEnd:"8"},lg,ug,cg,dg,fg,hg,pg,mg,hA={lg:{...(lg=Z.sizes)==null?void 0:lg.lg,field:{...(ug=Z.sizes)==null?void 0:ug.lg.field,...$s}},md:{...(cg=Z.sizes)==null?void 0:cg.md,field:{...(dg=Z.sizes)==null?void 0:dg.md.field,...$s}},sm:{...(fg=Z.sizes)==null?void 0:fg.sm,field:{...(hg=Z.sizes)==null?void 0:hg.sm.field,...$s}},xs:{...(pg=Z.sizes)==null?void 0:pg.xs,field:{...(mg=Z.sizes)==null?void 0:mg.xs.field,...$s},icon:{insetEnd:"1"}}},pA=lA({baseStyle:fA,sizes:hA,variants:Z.variants,defaultProps:Z.defaultProps}),Bc=O("skeleton-start-color"),jc=O("skeleton-end-color"),mA={[Bc.variable]:"colors.gray.100",[jc.variable]:"colors.gray.400",_dark:{[Bc.variable]:"colors.gray.800",[jc.variable]:"colors.gray.600"},background:Bc.reference,borderColor:jc.reference,opacity:.7,borderRadius:"sm"},vA={baseStyle:mA},Nc=O("skip-link-bg"),gA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Nc.variable]:"colors.white",_dark:{[Nc.variable]:"colors.gray.700"},bg:Nc.reference}},yA={baseStyle:gA},{defineMultiStyleConfig:bA,definePartsStyle:ju}=le(r$.keys),_a=O("slider-thumb-size"),Pa=O("slider-track-size"),Yr=O("slider-bg"),SA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ap({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},xA=e=>({...ap({orientation:e.orientation,horizontal:{h:Pa.reference},vertical:{w:Pa.reference}}),overflow:"hidden",borderRadius:"sm",[Yr.variable]:"colors.gray.200",_dark:{[Yr.variable]:"colors.whiteAlpha.200"},_disabled:{[Yr.variable]:"colors.gray.300",_dark:{[Yr.variable]:"colors.whiteAlpha.300"}},bg:Yr.reference}),wA=e=>{const{orientation:t}=e;return{...ap({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:_a.reference,h:_a.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},kA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Yr.variable]:`colors.${t}.500`,_dark:{[Yr.variable]:`colors.${t}.200`},bg:Yr.reference}},CA=ju(e=>({container:SA(e),track:xA(e),thumb:wA(e),filledTrack:kA(e)})),_A=ju({container:{[_a.variable]:"sizes.4",[Pa.variable]:"sizes.1"}}),PA=ju({container:{[_a.variable]:"sizes.3.5",[Pa.variable]:"sizes.1"}}),TA=ju({container:{[_a.variable]:"sizes.2.5",[Pa.variable]:"sizes.0.5"}}),EA={lg:_A,md:PA,sm:TA},$A=bA({baseStyle:CA,sizes:EA,defaultProps:{size:"md",colorScheme:"blue"}}),Tn=Me("spinner-size"),AA={width:[Tn.reference],height:[Tn.reference]},RA={xs:{[Tn.variable]:"sizes.3"},sm:{[Tn.variable]:"sizes.4"},md:{[Tn.variable]:"sizes.6"},lg:{[Tn.variable]:"sizes.8"},xl:{[Tn.variable]:"sizes.12"}},MA={baseStyle:AA,sizes:RA,defaultProps:{size:"md"}},{defineMultiStyleConfig:zA,definePartsStyle:Bb}=le(n$.keys),FA={fontWeight:"medium"},DA={opacity:.8,marginBottom:"2"},IA={verticalAlign:"baseline",fontWeight:"semibold"},LA={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},OA=Bb({container:{},label:FA,helpText:DA,number:IA,icon:LA}),BA={md:Bb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},jA=zA({baseStyle:OA,sizes:BA,defaultProps:{size:"md"}}),Vc=O("kbd-bg"),NA={[Vc.variable]:"colors.gray.100",_dark:{[Vc.variable]:"colors.whiteAlpha.100"},bg:Vc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},VA={baseStyle:NA},WA={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},UA={baseStyle:WA},{defineMultiStyleConfig:HA,definePartsStyle:GA}=le(YE.keys),KA={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},YA=GA({icon:KA}),XA=HA({baseStyle:YA}),{defineMultiStyleConfig:QA,definePartsStyle:qA}=le(XE.keys),rr=O("menu-bg"),Wc=O("menu-shadow"),ZA={[rr.variable]:"#fff",[Wc.variable]:"shadows.sm",_dark:{[rr.variable]:"colors.gray.700",[Wc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:rr.reference,boxShadow:Wc.reference},JA={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[rr.variable]:"colors.gray.100",_dark:{[rr.variable]:"colors.whiteAlpha.100"}},_active:{[rr.variable]:"colors.gray.200",_dark:{[rr.variable]:"colors.whiteAlpha.200"}},_expanded:{[rr.variable]:"colors.gray.100",_dark:{[rr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:rr.reference},eR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},tR={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},rR={opacity:.6},nR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},oR={transitionProperty:"common",transitionDuration:"normal"},iR=qA({button:oR,list:ZA,item:JA,groupTitle:eR,icon:tR,command:rR,divider:nR}),aR=QA({baseStyle:iR}),{defineMultiStyleConfig:sR,definePartsStyle:Cf}=le(QE.keys),Uc=O("modal-bg"),Hc=O("modal-shadow"),lR={bg:"blackAlpha.600",zIndex:"modal"},uR=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"}},cR=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,[Uc.variable]:"colors.white",[Hc.variable]:"shadows.lg",_dark:{[Uc.variable]:"colors.gray.700",[Hc.variable]:"shadows.dark-lg"},bg:Uc.reference,boxShadow:Hc.reference}},dR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},fR={position:"absolute",top:"2",insetEnd:"3"},hR=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},pR={px:"6",py:"4"},mR=Cf(e=>({overlay:lR,dialogContainer:rt(uR,e),dialog:rt(cR,e),header:dR,closeButton:fR,body:rt(hR,e),footer:pR}));function jt(e){return Cf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var vR={xs:jt("xs"),sm:jt("sm"),md:jt("md"),lg:jt("lg"),xl:jt("xl"),"2xl":jt("2xl"),"3xl":jt("3xl"),"4xl":jt("4xl"),"5xl":jt("5xl"),"6xl":jt("6xl"),full:jt("full")},gR=sR({baseStyle:mR,sizes:vR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:yR,definePartsStyle:jb}=le(qE.keys),lp=Me("number-input-stepper-width"),Nb=Me("number-input-input-padding"),bR=xr(lp).add("0.5rem").toString(),Gc=Me("number-input-bg"),Kc=Me("number-input-color"),Yc=Me("number-input-border-color"),SR={[lp.variable]:"sizes.6",[Nb.variable]:bR},xR=e=>{var t,r;return(r=(t=rt(Z.baseStyle,e))==null?void 0:t.field)!=null?r:{}},wR={width:lp.reference},kR={borderStart:"1px solid",borderStartColor:Yc.reference,color:Kc.reference,bg:Gc.reference,[Kc.variable]:"colors.chakra-body-text",[Yc.variable]:"colors.chakra-border-color",_dark:{[Kc.variable]:"colors.whiteAlpha.800",[Yc.variable]:"colors.whiteAlpha.300"},_active:{[Gc.variable]:"colors.gray.200",_dark:{[Gc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},CR=jb(e=>{var t;return{root:SR,field:(t=rt(xR,e))!=null?t:{},stepperGroup:wR,stepper:kR}});function As(e){var t,r,n;const o=(t=Z.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=Fb.fontSizes[a];return jb({field:{...o.field,paddingInlineEnd:Nb.reference,verticalAlign:"top"},stepper:{fontSize:xr(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var _R={xs:As("xs"),sm:As("sm"),md:As("md"),lg:As("lg")},PR=yR({baseStyle:CR,sizes:_R,variants:Z.variants,defaultProps:Z.defaultProps}),vg,TR={...(vg=Z.baseStyle)==null?void 0:vg.field,textAlign:"center"},ER={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"}},gg,yg,$R={outline:e=>{var t,r,n;return(n=(r=rt((t=Z.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=rt((t=Z.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=rt((t=Z.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(yg=(gg=Z.variants)==null?void 0:gg.unstyled.field)!=null?yg:{}},AR={baseStyle:TR,sizes:ER,variants:$R,defaultProps:Z.defaultProps},{defineMultiStyleConfig:RR,definePartsStyle:MR}=le(ZE.keys),Rs=Me("popper-bg"),zR=Me("popper-arrow-bg"),bg=Me("popper-arrow-shadow-color"),FR={zIndex:10},DR={[Rs.variable]:"colors.white",bg:Rs.reference,[zR.variable]:Rs.reference,[bg.variable]:"colors.gray.200",_dark:{[Rs.variable]:"colors.gray.700",[bg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},IR={px:3,py:2,borderBottomWidth:"1px"},LR={px:3,py:2},OR={px:3,py:2,borderTopWidth:"1px"},BR={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},jR=MR({popper:FR,content:DR,header:IR,body:LR,footer:OR,closeButton:BR}),NR=RR({baseStyle:jR}),{definePartsStyle:_f,defineMultiStyleConfig:VR}=le(WE.keys),Xc=O("drawer-bg"),Qc=O("drawer-box-shadow");function eo(e){return _f(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var WR={bg:"blackAlpha.600",zIndex:"modal"},UR={display:"flex",zIndex:"modal",justifyContent:"center"},HR=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Xc.variable]:"colors.white",[Qc.variable]:"shadows.lg",_dark:{[Xc.variable]:"colors.gray.700",[Qc.variable]:"shadows.dark-lg"},bg:Xc.reference,boxShadow:Qc.reference}},GR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},KR={position:"absolute",top:"2",insetEnd:"3"},YR={px:"6",py:"2",flex:"1",overflow:"auto"},XR={px:"6",py:"4"},QR=_f(e=>({overlay:WR,dialogContainer:UR,dialog:rt(HR,e),header:GR,closeButton:KR,body:YR,footer:XR})),qR={xs:eo("xs"),sm:eo("md"),md:eo("lg"),lg:eo("2xl"),xl:eo("4xl"),full:eo("full")},ZR=VR({baseStyle:QR,sizes:qR,defaultProps:{size:"xs"}}),{definePartsStyle:JR,defineMultiStyleConfig:eM}=le(UE.keys),tM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},rM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},nM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},oM=JR({preview:tM,input:rM,textarea:nM}),iM=eM({baseStyle:oM}),{definePartsStyle:aM,defineMultiStyleConfig:sM}=le(HE.keys),Io=O("form-control-color"),lM={marginStart:"1",[Io.variable]:"colors.red.500",_dark:{[Io.variable]:"colors.red.300"},color:Io.reference},uM={mt:"2",[Io.variable]:"colors.gray.600",_dark:{[Io.variable]:"colors.whiteAlpha.600"},color:Io.reference,lineHeight:"normal",fontSize:"sm"},cM=aM({container:{width:"100%",position:"relative"},requiredIndicator:lM,helperText:uM}),dM=sM({baseStyle:cM}),{definePartsStyle:fM,defineMultiStyleConfig:hM}=le(GE.keys),Lo=O("form-error-color"),pM={[Lo.variable]:"colors.red.500",_dark:{[Lo.variable]:"colors.red.300"},color:Lo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},mM={marginEnd:"0.5em",[Lo.variable]:"colors.red.500",_dark:{[Lo.variable]:"colors.red.300"},color:Lo.reference},vM=fM({text:pM,icon:mM}),gM=hM({baseStyle:vM}),yM={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},bM={baseStyle:yM},SM={fontFamily:"heading",fontWeight:"bold"},xM={"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}},wM={baseStyle:SM,sizes:xM,defaultProps:{size:"xl"}},{defineMultiStyleConfig:kM,definePartsStyle:CM}=le(NE.keys),qc=O("breadcrumb-link-decor"),_M={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:qc.reference,[qc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[qc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},PM=CM({link:_M}),TM=kM({baseStyle:PM}),EM={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"}}},Vb=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.100","whiteAlpha.200")(e)},_active:{bg:L("gray.200","whiteAlpha.300")(e)}};const n=qo(`${t}.200`,.12)(r),o=qo(`${t}.200`,.24)(r);return{color:L(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:L(`${t}.50`,n)(e)},_active:{bg:L(`${t}.100`,o)(e)}}},$M=e=>{const{colorScheme:t}=e,r=L("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"},...rt(Vb,e)}},AM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},RM=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=L("gray.100","whiteAlpha.200")(e);return{bg:l,color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:L("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=AM[r])!=null?t:{},s=L(n,`${r}.200`)(e);return{bg:s,color:L(o,"gray.800")(e),_hover:{bg:L(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:L(a,`${r}.400`)(e)}}},MM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:L(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:L(`${t}.700`,`${t}.500`)(e)}}},zM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},FM={ghost:Vb,outline:$M,solid:RM,link:MM,unstyled:zM},DM={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"}},IM={baseStyle:EM,variants:FM,sizes:DM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ln,defineMultiStyleConfig:LM}=le(l$.keys),Hl=O("card-bg"),Tr=O("card-padding"),Wb=O("card-shadow"),ul=O("card-radius"),Ub=O("card-border-width","0"),Hb=O("card-border-color"),OM=Ln({container:{[Hl.variable]:"colors.chakra-body-bg",backgroundColor:Hl.reference,boxShadow:Wb.reference,borderRadius:ul.reference,color:"chakra-body-text",borderWidth:Ub.reference,borderColor:Hb.reference},body:{padding:Tr.reference,flex:"1 1 0%"},header:{padding:Tr.reference},footer:{padding:Tr.reference}}),BM={sm:Ln({container:{[ul.variable]:"radii.base",[Tr.variable]:"space.3"}}),md:Ln({container:{[ul.variable]:"radii.md",[Tr.variable]:"space.5"}}),lg:Ln({container:{[ul.variable]:"radii.xl",[Tr.variable]:"space.7"}})},jM={elevated:Ln({container:{[Wb.variable]:"shadows.base",_dark:{[Hl.variable]:"colors.gray.700"}}}),outline:Ln({container:{[Ub.variable]:"1px",[Hb.variable]:"colors.chakra-border-color"}}),filled:Ln({container:{[Hl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Tr.variable]:0},header:{[Tr.variable]:0},footer:{[Tr.variable]:0}}},NM=LM({baseStyle:OM,variants:jM,sizes:BM,defaultProps:{variant:"elevated",size:"md"}}),qi=Me("close-button-size"),wi=Me("close-button-bg"),VM={w:[qi.reference],h:[qi.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[wi.variable]:"colors.blackAlpha.100",_dark:{[wi.variable]:"colors.whiteAlpha.100"}},_active:{[wi.variable]:"colors.blackAlpha.200",_dark:{[wi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:wi.reference},WM={lg:{[qi.variable]:"sizes.10",fontSize:"md"},md:{[qi.variable]:"sizes.8",fontSize:"xs"},sm:{[qi.variable]:"sizes.6",fontSize:"2xs"}},UM={baseStyle:VM,sizes:WM,defaultProps:{size:"md"}},{variants:HM,defaultProps:GM}=Xi,KM={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},YM={baseStyle:KM,variants:HM,defaultProps:GM},XM={w:"100%",mx:"auto",maxW:"prose",px:"4"},QM={baseStyle:XM},qM={opacity:.6,borderColor:"inherit"},ZM={borderStyle:"solid"},JM={borderStyle:"dashed"},ez={solid:ZM,dashed:JM},tz={baseStyle:qM,variants:ez,defaultProps:{variant:"solid"}},{definePartsStyle:rz,defineMultiStyleConfig:nz}=le(OE.keys),oz={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},iz={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},az={pt:"2",px:"4",pb:"5"},sz={fontSize:"1.25em"},lz=rz({container:oz,button:iz,panel:az,icon:sz}),uz=nz({baseStyle:lz}),{definePartsStyle:Va,defineMultiStyleConfig:cz}=le(BE.keys),xt=O("alert-fg"),Dr=O("alert-bg"),dz=Va({container:{bg:Dr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:xt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:xt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function up(e){const{theme:t,colorScheme:r}=e,n=qo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var fz=Va(e=>{const{colorScheme:t}=e,r=up(e);return{container:{[xt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[xt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark}}}}),hz=Va(e=>{const{colorScheme:t}=e,r=up(e);return{container:{[xt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[xt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:xt.reference}}}),pz=Va(e=>{const{colorScheme:t}=e,r=up(e);return{container:{[xt.variable]:`colors.${t}.600`,[Dr.variable]:r.light,_dark:{[xt.variable]:`colors.${t}.200`,[Dr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:xt.reference}}}),mz=Va(e=>{const{colorScheme:t}=e;return{container:{[xt.variable]:"colors.white",[Dr.variable]:`colors.${t}.600`,_dark:{[xt.variable]:"colors.gray.900",[Dr.variable]:`colors.${t}.200`},color:xt.reference}}}),vz={subtle:fz,"left-accent":hz,"top-accent":pz,solid:mz},gz=cz({baseStyle:dz,variants:vz,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Gb,defineMultiStyleConfig:yz}=le(jE.keys),Oo=O("avatar-border-color"),Zi=O("avatar-bg"),Ta=O("avatar-font-size"),Zo=O("avatar-size"),bz={borderRadius:"full",border:"0.2em solid",borderColor:Oo.reference,[Oo.variable]:"white",_dark:{[Oo.variable]:"colors.gray.800"}},Sz={bg:Zi.reference,fontSize:Ta.reference,width:Zo.reference,height:Zo.reference,lineHeight:"1",[Zi.variable]:"colors.gray.200",_dark:{[Zi.variable]:"colors.whiteAlpha.400"}},xz=e=>{const{name:t,theme:r}=e,n=t?E$({string:t}):"colors.gray.400",o=P$(n)(r);let i="white";return o||(i="gray.800"),{bg:Zi.reference,fontSize:Ta.reference,color:i,borderColor:Oo.reference,verticalAlign:"top",width:Zo.reference,height:Zo.reference,"&:not([data-loaded])":{[Zi.variable]:n},[Oo.variable]:"colors.white",_dark:{[Oo.variable]:"colors.gray.800"}}},wz={fontSize:Ta.reference,lineHeight:"1"},kz=Gb(e=>({badge:rt(bz,e),excessLabel:rt(Sz,e),container:rt(xz,e),label:wz}));function Nr(e){const t=e!=="100%"?Ib[e]:void 0;return Gb({container:{[Zo.variable]:t??e,[Ta.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Zo.variable]:t??e,[Ta.variable]:`calc(${t??e} / 2.5)`}})}var Cz={"2xs":Nr(4),xs:Nr(6),sm:Nr(8),md:Nr(12),lg:Nr(16),xl:Nr(24),"2xl":Nr(32),full:Nr("100%")},_z=yz({baseStyle:kz,sizes:Cz,defaultProps:{size:"md"}}),Pz={Accordion:uz,Alert:gz,Avatar:_z,Badge:Xi,Breadcrumb:TM,Button:IM,Checkbox:Ul,CloseButton:UM,Code:YM,Container:QM,Divider:tz,Drawer:ZR,Editable:iM,Form:dM,FormError:gM,FormLabel:bM,Heading:wM,Input:Z,Kbd:VA,Link:UA,List:XA,Menu:aR,Modal:gR,NumberInput:PR,PinInput:AR,Popover:NR,Progress:Y5,Radio:sA,Select:pA,Skeleton:vA,SkipLink:yA,Slider:$A,Spinner:MA,Stat:jA,Switch:U$,Table:q$,Tabs:f5,Tag:_5,Textarea:L5,Tooltip:j5,Card:NM,Stepper:LE},Tz={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"}}},Ez={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"}}},$z="ltr",Az={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Kb={semanticTokens:Tz,direction:$z,...FE,components:Pz,styles:Ez,config:Az};function Di(e){return typeof e=="function"}function Rz(...e){return t=>e.reduce((r,n)=>n(r),t)}var Mz=e=>function(...r){let n=[...r],o=r[r.length-1];return cE(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Rz(...n.map(i=>a=>Di(i)?i(a):Fz(a,i)))(o)},zz=Mz(Kb);function Fz(...e){return Ft({},...e,Yb)}function Yb(e,t,r,n){if((Di(e)||Di(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Di(e)?e(...o):e,a=Di(t)?t(...o):t;return Ft({},i,a,Yb)}}function Dz(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function Iz(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},Xb=Lz(Iz);function Qb(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var qb=e=>Qb(e,t=>t!=null);function Oz(e){return typeof e=="function"}function Zb(e,...t){return Oz(e)?e(...t):e}function $B(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var Bz=typeof Element<"u",jz=typeof Map=="function",Nz=typeof Set=="function",Vz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function cl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!cl(e[n],t[n]))return!1;return!0}var i;if(jz&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!cl(n.value[1],t.get(n.value[0])))return!1;return!0}if(Nz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Vz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Bz&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!cl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Wz=function(t,r){try{return cl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Uz=Xf(Wz);function Jb(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=VP(),s=e?Xb(i,`components.${e}`):void 0,l=n||s,u=Ft({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},qb(Dz(o,["children"]))),c=S.useRef({});if(l){const f=lE(l)(u);Uz(c.current,f)||(c.current=f)}return c.current}function Nu(e,t={}){return Jb(e,t)}function eS(e,t={}){return Jb(e,t)}var Hz=new Set([...QT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Gz=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Kz(e){return Gz.has(e)||!Hz.has(e)}function Yz(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}var Xz=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qz=cb(function(e){return Xz.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qz=Qz,Zz=function(t){return t!=="theme"},Sg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qz:Zz},xg=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Jz=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return qh(r,n,o),bb(function(){return Zh(r,n,o)}),null},e3=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=xg(t,r,n),l=s||Sg(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=Qb(a,(d,f)=>ZT(f)),l=Zb(e,t),u=Yz({},o,l,qb(s),i),c=zb(u)(t.theme);return n?[c,n]:c};function Zc(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=Kz);const o=n3({baseStyle:r}),i=r3(e,n)(o);return Ar.forwardRef(function(l,u){const{colorMode:c,forced:d}=Du();return Ar.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function o3(){const e=new Map;return new Proxy(Zc,{apply(t,r,n){return Zc(...n)},get(t,r){return e.has(r)||e.set(r,Zc(r)),e.get(r)}})}var _e=o3();function pt(e){return S.forwardRef(e)}function tS(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=S.createContext(void 0);o.displayName=n;function i(){var a;const s=S.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function i3(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=S.useMemo(()=>YT(r),[r]);return E.jsxs(vP,{theme:o,children:[E.jsx(a3,{root:t}),n]})}function a3({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E.jsx(ja,{styles:r=>({[t]:r.__cssVars})})}tS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function AB(e){return tS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function s3(){const{colorMode:e}=Du();return E.jsx(ja,{styles:t=>{const r=Xb(t,"styles.global"),n=Zb(r,{theme:t,colorMode:e});return n?zb(n)(t):void 0}})}var cp=S.createContext({getDocument(){return document},getWindow(){return window}});cp.displayName="EnvironmentContext";function RB({defer:e}={}){const[,t]=S.useReducer(r=>r+1,0);return ka(()=>{e&&t()},[e]),S.useContext(cp)}function rS(e){const{children:t,environment:r,disabled:n}=e,o=S.useRef(null),i=S.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return E.jsxs(cp.Provider,{value:i,children:[t,a&&E.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}rS.displayName="EnvironmentProvider";var l3=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=E.jsx(rS,{environment:s,disabled:u,children:t});return E.jsx(i3,{theme:a,cssVarsRoot:l,children:E.jsxs(_b,{colorModeManager:r,options:a.config,children:[i?E.jsx(CP,{scope:o}):E.jsx(kP,{}),!c&&E.jsx(s3,{}),n?E.jsx(kb,{zIndex:n,children:d}):d]})})},u3=(e,t)=>e.find(r=>r.id===t);function kg(e,t){const r=nS(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function nS(e,t){for(const[r,n]of Object.entries(e))if(u3(n,t))return r}function c3(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 d3(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,i=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:i,left:a}}function f3(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function h3(e,t){const r=f3(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Cg(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const oS=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vu=S.createContext({}),Wa=S.createContext(null),Wu=typeof document<"u",dp=Wu?S.useLayoutEffect:S.useEffect,iS=S.createContext({strict:!1}),fp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p3="framerAppearId",aS="data-"+fp(p3);function m3(e,t,r,n){const{visualElement:o}=S.useContext(Vu),i=S.useContext(iS),a=S.useContext(Wa),s=S.useContext(oS).reducedMotion,l=S.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(r,a)});const c=S.useRef(!!r[aS]);return dp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(window.HandoffAppearAnimations=!1,c.current=!1))}),u}function ko(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function v3(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ko(r)&&(r.current=n))},[t])}function Ea(e){return typeof e=="string"||Array.isArray(e)}function Uu(e){return typeof e=="object"&&typeof e.start=="function"}const hp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pp=["initial",...hp];function Hu(e){return Uu(e.animate)||pp.some(t=>Ea(e[t]))}function sS(e){return!!(Hu(e)||e.variants)}function g3(e,t){if(Hu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ea(r)?r:void 0,animate:Ea(n)?n:void 0}}return e.inherit!==!1?t:{}}function y3(e){const{initial:t,animate:r}=g3(e,S.useContext(Vu));return S.useMemo(()=>({initial:t,animate:r}),[_g(t),_g(r)])}function _g(e){return Array.isArray(e)?e.join(" "):e}const Pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$a={};for(const e in Pg)$a[e]={isEnabled:t=>Pg[e].some(r=>!!t[r])};function b3(e){for(const t in e)$a[t]={...$a[t],...e[t]}}const mp=S.createContext({}),lS=S.createContext({}),S3=Symbol.for("motionComponentSymbol");function x3({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&b3(e);function i(s,l){let u;const c={...S.useContext(oS),...s,layoutId:w3(s)},{isStatic:d}=c,f=y3(s),p=n(s,d);if(!d&&Wu){f.visualElement=m3(o,p,c,t);const g=S.useContext(lS),y=S.useContext(iS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,g))}return S.createElement(Vu.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,v3(p,f.visualElement,l),p,d,f.visualElement))}const a=S.forwardRef(i);return a[S3]=o,a}function w3({layoutId:e}){const t=S.useContext(mp).id;return t&&e!==void 0?t+"-"+e:e}function k3(e){function t(n,o={}){return x3(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const C3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vp(e){return typeof e!="string"||e.includes("-")?!1:!!(C3.indexOf(e)>-1||/[A-Z]/.test(e))}const Kl={};function _3(e){Object.assign(Kl,e)}const Ua=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xn=new Set(Ua);function uS(e,{layout:t,layoutId:r}){return Xn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Kl[e]||e==="opacity")}const ht=e=>!!(e&&e.getVelocity),P3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},T3=Ua.length;function E3(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),dS=cS("--"),Pf=cS("var(--"),$3=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,A3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,cn=(e,t,r)=>Math.min(Math.max(r,e),t),Qn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ji={...Qn,transform:e=>cn(0,1,e)},Ms={...Qn,default:1},ea=e=>Math.round(e*1e5)/1e5,Gu=/(-)?([\d]*\.?[\d])+/g,fS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,R3=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ha(e){return typeof e=="string"}const Ga=e=>({test:t=>Ha(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vr=Ga("deg"),hr=Ga("%"),j=Ga("px"),M3=Ga("vh"),z3=Ga("vw"),Tg={...hr,parse:e=>hr.parse(e)/100,transform:e=>hr.transform(e*100)},Eg={...Qn,transform:Math.round},hS={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,size:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:Vr,rotateX:Vr,rotateY:Vr,rotateZ:Vr,scale:Ms,scaleX:Ms,scaleY:Ms,scaleZ:Ms,skew:Vr,skewX:Vr,skewY:Vr,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Ji,originX:Tg,originY:Tg,originZ:j,zIndex:Eg,fillOpacity:Ji,strokeOpacity:Ji,numOctaves:Eg};function gp(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(dS(d)){i[d]=f;continue}const p=hS[d],g=A3(f,p);if(Xn.has(d)){if(l=!0,a[d]=g,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=g):o[d]=g}if(t.transform||(l||n?o.transform=E3(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const yp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pS(e,t,r){for(const n in t)!ht(t[n])&&!uS(n,r)&&(e[n]=t[n])}function F3({transformTemplate:e},t,r){return S.useMemo(()=>{const n=yp();return gp(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function D3(e,t,r){const n=e.style||{},o={};return pS(o,n,e),Object.assign(o,F3(e,t,r)),e.transformValues?e.transformValues(o):o}function I3(e,t,r){const n={},o=D3(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const L3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Yl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||L3.has(e)}let mS=e=>!Yl(e);function O3(e){e&&(mS=t=>t.startsWith("on")?!Yl(t):e(t))}try{O3(require("@emotion/is-prop-valid").default)}catch{}function B3(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(mS(o)||r===!0&&Yl(o)||!t&&!Yl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function $g(e,t,r){return typeof e=="string"?e:j.transform(t+r*e)}function j3(e,t,r){const n=$g(t,e.x,e.width),o=$g(r,e.y,e.height);return`${n} ${o}`}const N3={offset:"stroke-dashoffset",array:"stroke-dasharray"},V3={offset:"strokeDashoffset",array:"strokeDasharray"};function W3(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?N3:V3;e[i.offset]=j.transform(-n);const a=j.transform(t),s=j.transform(r);e[i.array]=`${a} ${s}`}function bp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(gp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=j3(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),a!==void 0&&W3(p,a,s,l,!1)}const vS=()=>({...yp(),attrs:{}}),Sp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function U3(e,t,r,n){const o=S.useMemo(()=>{const i=vS();return bp(i,t,{enableHardwareAcceleration:!1},Sp(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};pS(i,e.style,e),o.style={...i,...o.style}}return o}function H3(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(vp(r)?U3:I3)(n,i,a,r),c={...B3(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=S.useMemo(()=>ht(d)?d.get():d,[d]);return S.createElement(r,{...c,children:f})}}function gS(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const yS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function bS(e,t,r,n){gS(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(yS.has(o)?o:fp(o),t.attrs[o])}function xp(e,t){const{style:r}=e,n={};for(const o in r)(ht(r[o])||t.style&&ht(t.style[o])||uS(o,e))&&(n[o]=r[o]);return n}function SS(e,t){const r=xp(e,t);for(const n in e)if(ht(e[n])||ht(t[n])){const o=Ua.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function wp(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function xS(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xl=e=>Array.isArray(e),G3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),K3=e=>Xl(e)?e[e.length-1]||0:e;function dl(e){const t=ht(e)?e.get():e;return G3(t)?t.toValue():t}function Y3({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:X3(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const wS=e=>(t,r)=>{const n=S.useContext(Vu),o=S.useContext(Wa),i=()=>Y3(e,t,n,o);return r?i():xS(i)};function X3(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=dl(i[f]);let{initial:a,animate:s}=e;const l=Hu(e),u=sS(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!Uu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const g=wp(e,p);if(!g)return;const{transitionEnd:y,transition:k,...m}=g;for(const h in m){let v=m[h];if(Array.isArray(v)){const C=c?v.length-1:0;v=v[C]}v!==null&&(o[h]=v)}for(const h in y)o[h]=y[h]}),o}const xe=e=>e;class Ag{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Q3(e){let t=new Ag,r=new Ag,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&a.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=Q3(()=>r=!0),d),{}),a=d=>i[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,q3),1),o.timestamp=d,o.isProcessing=!0,zs.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:zs.reduce((d,f)=>{const p=i[f];return d[f]=(g,y=!1,k=!1)=>(r||l(),p.schedule(g,y,k)),d},{}),cancel:d=>zs.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:se,cancel:Ir,state:De,steps:Jc}=Z3(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0),J3={useVisualState:wS({scrapeMotionValuesFromProps:SS,createRenderState:vS,onMount:(e,t,{renderState:r,latestValues:n})=>{se.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),se.render(()=>{bp(r,n,{enableHardwareAcceleration:!1},Sp(t.tagName),e.transformTemplate),bS(t,r)})}})},e4={useVisualState:wS({scrapeMotionValuesFromProps:xp,createRenderState:yp})};function t4(e,{forwardMotionProps:t=!1},r,n){return{...vp(e)?J3:e4,preloadedFeatures:r,useRender:H3(t),createVisualElement:n,Component:e}}function _r(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const kS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ku(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const r4=e=>t=>kS(t)&&e(t,Ku(t));function Er(e,t,r,n){return _r(e,t,r4(r),n)}const n4=(e,t)=>r=>t(e(r)),an=(...e)=>e.reduce(n4);function CS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Rg=CS("dragHorizontal"),Mg=CS("dragVertical");function _S(e){let t=!1;if(e==="y")t=Mg();else if(e==="x")t=Rg();else{const r=Rg(),n=Mg();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function PS(){const e=_S(!0);return e?(e(),!1):!0}class vn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function zg(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||PS())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&se.update(()=>s[n](i,a))};return Er(e.current,r,o,{passive:!e.getProps()[n]})}class o4 extends vn{mount(){this.unmount=an(zg(this.node,!0),zg(this.node,!1))}unmount(){}}class i4 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=an(_r(this.node.current,"focus",()=>this.onFocus()),_r(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const TS=(e,t)=>t?e===t?!0:TS(e,t.parentElement):!1;function ed(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ku(r))}class a4 extends vn{constructor(){super(...arguments),this.removeStartListeners=xe,this.removeEndListeners=xe,this.removeAccessibleListeners=xe,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Er(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();se.update(()=>{TS(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=Er(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=an(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ed("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&se.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=_r(this.node.current,"keyup",a),ed("down",(s,l)=>{this.startPress(s,l)})},r=_r(this.node.current,"keydown",t),n=()=>{this.isPressing&&ed("cancel",(i,a)=>this.cancelPress(i,a))},o=_r(this.node.current,"blur",n);this.removeAccessibleListeners=an(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&se.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!PS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&se.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Er(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=_r(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=an(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tf=new WeakMap,td=new WeakMap,s4=e=>{const t=Tf.get(e.target);t&&t(e)},l4=e=>{e.forEach(s4)};function u4({root:e,...t}){const r=e||document;td.has(r)||td.set(r,{});const n=td.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(l4,{root:e,...t})),n[o]}function c4(e,t,r){const n=u4(t);return Tf.set(e,r),n.observe(e),()=>{Tf.delete(e),n.unobserve(e)}}const d4={some:0,all:1};class f4 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:d4[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return c4(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(h4(t,r))&&this.startObserver()}unmount(){}}function h4({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const p4={inView:{Feature:f4},tap:{Feature:a4},focus:{Feature:i4},hover:{Feature:o4}};function ES(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function v4(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Yu(e,t,r){const n=e.getProps();return wp(n,t,r!==void 0?r:n.custom,m4(e),v4(e))}let g4=xe,kp=xe;const sn=e=>e*1e3,$r=e=>e/1e3,y4={current:!1},$S=e=>Array.isArray(e)&&typeof e[0]=="number";function AS(e){return!!(!e||typeof e=="string"&&RS[e]||$S(e)||Array.isArray(e)&&e.every(AS))}const Ii=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,RS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ii([0,.65,.55,1]),circOut:Ii([.55,0,1,.45]),backIn:Ii([.31,.01,.66,-.59]),backOut:Ii([.33,1.53,.69,.99])};function MS(e){if(e)return $S(e)?Ii(e):Array.isArray(e)?e.map(MS):RS[e]}function b4(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=MS(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function S4(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const zS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,x4=1e-7,w4=12;function k4(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=zS(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>x4&&++sk4(i,0,1,e,r);return i=>i===0||i===1?i:zS(o(i),t,n)}const C4=Ka(.42,0,1,1),_4=Ka(0,0,.58,1),FS=Ka(.42,0,.58,1),P4=e=>Array.isArray(e)&&typeof e[0]!="number",DS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,IS=e=>t=>1-e(1-t),LS=e=>1-Math.sin(Math.acos(e)),Cp=IS(LS),T4=DS(Cp),OS=Ka(.33,1.53,.69,.99),_p=IS(OS),E4=DS(_p),$4=e=>(e*=2)<1?.5*_p(e):.5*(2-Math.pow(2,-10*(e-1))),A4={linear:xe,easeIn:C4,easeInOut:FS,easeOut:_4,circIn:LS,circInOut:T4,circOut:Cp,backIn:_p,backInOut:E4,backOut:OS,anticipate:$4},Fg=e=>{if(Array.isArray(e)){kp(e.length===4);const[t,r,n,o]=e;return Ka(t,r,n,o)}else if(typeof e=="string")return A4[e];return e},Pp=(e,t)=>r=>!!(Ha(r)&&R3.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),BS=(e,t,r)=>n=>{if(!Ha(n))return n;const[o,i,a,s]=n.match(Gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},R4=e=>cn(0,255,e),rd={...Qn,transform:e=>Math.round(R4(e))},Mn={test:Pp("rgb","red"),parse:BS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+rd.transform(e)+", "+rd.transform(t)+", "+rd.transform(r)+", "+ea(Ji.transform(n))+")"};function M4(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Ef={test:Pp("#"),parse:M4,transform:Mn.transform},Co={test:Pp("hsl","hue"),parse:BS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+hr.transform(ea(t))+", "+hr.transform(ea(r))+", "+ea(Ji.transform(n))+")"},Ze={test:e=>Mn.test(e)||Ef.test(e)||Co.test(e),parse:e=>Mn.test(e)?Mn.parse(e):Co.test(e)?Co.parse(e):Ef.parse(e),transform:e=>Ha(e)?e:e.hasOwnProperty("red")?Mn.transform(e):Co.transform(e)},ge=(e,t,r)=>-r*e+r*t+e;function nd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function z4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=nd(l,s,e+1/3),i=nd(l,s,e),a=nd(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const od=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},F4=[Ef,Mn,Co],D4=e=>F4.find(t=>t.test(e));function Dg(e){const t=D4(e);let r=t.parse(e);return t===Co&&(r=z4(r)),r}const jS=(e,t)=>{const r=Dg(e),n=Dg(t),o={...r};return i=>(o.red=od(r.red,n.red,i),o.green=od(r.green,n.green,i),o.blue=od(r.blue,n.blue,i),o.alpha=ge(r.alpha,n.alpha,i),Mn.transform(o))};function I4(e){var t,r;return isNaN(e)&&Ha(e)&&(((t=e.match(Gu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(fS))===null||r===void 0?void 0:r.length)||0)>0}const NS={regex:$3,countKey:"Vars",token:"${v}",parse:xe},VS={regex:fS,countKey:"Colors",token:"${c}",parse:Ze.parse},WS={regex:Gu,countKey:"Numbers",token:"${n}",parse:Qn.parse};function id(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function Ql(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&id(r,NS),id(r,VS),id(r,WS),r}function US(e){return Ql(e).values}function HS(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Ql(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function O4(e){const t=US(e);return HS(e)(t.map(L4))}const dn={test:I4,parse:US,createTransformer:HS,getAnimatableNone:O4},GS=(e,t)=>r=>`${r>0?t:e}`;function KS(e,t){return typeof e=="number"?r=>ge(e,t,r):Ze.test(e)?jS(e,t):e.startsWith("var(")?GS(e,t):XS(e,t)}const YS=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>KS(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=KS(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},XS=(e,t)=>{const r=dn.createTransformer(t),n=Ql(e),o=Ql(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?an(YS(n.values,o.values),r):GS(e,t)},Aa=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Ig=(e,t)=>r=>ge(e,t,r);function j4(e){return typeof e=="number"?Ig:typeof e=="string"?Ze.test(e)?jS:XS:Array.isArray(e)?YS:typeof e=="object"?B4:Ig}function N4(e,t,r){const n=[],o=r||j4(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=N4(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(cn(e[0],e[i-1],u)):l}function V4(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Aa(0,t,n);e.push(ge(r,1,o))}}function W4(e){const t=[0];return V4(t,e.length-1),t}function U4(e,t){return e.map(r=>r*t)}function H4(e,t){return e.map(()=>t||FS).splice(0,e.length-1)}function ql({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=P4(n)?n.map(Fg):Fg(n),i={done:!1,value:t[0]},a=U4(r&&r.length===t.length?r:W4(t),e),s=QS(a,t,{ease:Array.isArray(o)?o:H4(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function qS(e,t){return t?e*(1e3/t):0}const G4=5;function ZS(e,t,r){const n=Math.max(t-G4,0);return qS(r-e(n),t-n)}const ad=.001,K4=.01,Lg=10,Y4=.05,X4=1;function Q4({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;g4(e<=sn(Lg));let a=1-t;a=cn(Y4,X4,a),e=cn(K4,Lg,$r(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,p=$f(u,a),g=Math.exp(-d);return ad-f/p*g},i=u=>{const d=u*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=$f(Math.pow(u,2),a);return(-o(u)+ad>0?-1:1)*((f-p)*g)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-ad+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=Z4(o,i,s);if(e=sn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const q4=12;function Z4(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function tF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Og(e,eF)&&Og(e,J4)){const r=Q4(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function JS({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=tF(n),p=c?-$r(c):0,g=l/(2*Math.sqrt(s*u)),y=i-o,k=$r(Math.sqrt(s/u)),m=Math.abs(y)<5;r||(r=m?.01:2),t||(t=m?.005:.5);let h;if(g<1){const v=$f(k,g);h=C=>{const _=Math.exp(-g*k*C);return i-_*((p+g*k*y)/v*Math.sin(v*C)+y*Math.cos(v*C))}}else if(g===1)h=v=>i-Math.exp(-k*v)*(y+(p+k*y)*v);else{const v=k*Math.sqrt(g*g-1);h=C=>{const _=Math.exp(-g*k*C),$=Math.min(v*C,300);return i-_*((p+g*k*y)*Math.sinh($)+v*y*Math.cosh($))/v}}return{calculatedDuration:f&&d||null,next:v=>{const C=h(v);if(f)a.done=v>=d;else{let _=p;v!==0&&(g<1?_=ZS(h,v,C):_=0);const $=Math.abs(_)<=r,T=Math.abs(i-C)<=t;a.done=$&&T}return a.value=a.done?i:C,a}}}function Bg({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=A=>s!==void 0&&Al,g=A=>s===void 0?l:l===void 0||Math.abs(s-A)-y*Math.exp(-A/n),v=A=>m+h(A),C=A=>{const M=h(A),I=v(A);f.done=Math.abs(M)<=u,f.value=f.done?m:I};let _,$;const T=A=>{p(f.value)&&(_=A,$=JS({keyframes:[f.value,g(f.value)],velocity:ZS(v,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:A=>{let M=!1;return!$&&_===void 0&&(M=!0,C(A),T(A)),_!==void 0&&A>_?$.next(A-_):(!M&&C(A),f)}}}const rF=e=>{const t=({timestamp:r})=>e(r);return{start:()=>se.update(t,!0),stop:()=>Ir(t),now:()=>De.isProcessing?De.timestamp:performance.now()}},jg=2e4;function Ng(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=jg?1/0:t}const nF={decay:Bg,inertia:Bg,tween:ql,keyframes:ql,spring:JS};function Zl({autoplay:e=!0,delay:t=0,driver:r=rF,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,g=!1,y,k;const m=()=>{k=new Promise(B=>{y=B})};m();let h;const v=nF[o]||ql;let C;v!==ql&&typeof n[0]!="number"&&(C=QS([0,100],n,{clamp:!1}),n=[0,100]);const _=v({...f,keyframes:n});let $;s==="mirror"&&($=v({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let T="idle",A=null,M=null,I=null;_.calculatedDuration===null&&i&&(_.calculatedDuration=Ng(_));const{calculatedDuration:ee}=_;let ze=1/0,Pe=1/0;ee!==null&&(ze=ee+a,Pe=ze*(i+1)-a);let oe=0;const ue=B=>{if(M===null)return;p>0&&(M=Math.min(M,B)),p<0&&(M=Math.min(B-Pe/p,M)),A!==null?oe=A:oe=Math.round(B-M)*p;const ne=oe-t*(p>=0?1:-1),U=p>=0?ne<0:ne>Pe;oe=Math.max(ne,0),T==="finished"&&A===null&&(oe=Pe);let Ge=oe,Xt=_;if(i){const Qt=oe/ze;let Ot=Math.floor(Qt),qt=Qt%1;!qt&&Qt>=1&&(qt=1),qt===1&&Ot--,Ot=Math.min(Ot,i+1);const si=!!(Ot%2);si&&(s==="reverse"?(qt=1-qt,a&&(qt-=a/ze)):s==="mirror"&&(Xt=$));let Qa=cn(0,1,qt);oe>Pe&&(Qa=s==="reverse"&&si?1:0),Ge=Qa*ze}const we=U?{done:!1,value:n[0]}:Xt.next(Ge);C&&(we.value=C(we.value));let{done:Fe}=we;!U&&ee!==null&&(Fe=p>=0?oe>=Pe:oe<=0);const mt=A===null&&(T==="finished"||T==="running"&&Fe);return d&&d(we.value),mt&&z(),we},He=()=>{h&&h.stop(),h=void 0},it=()=>{T="idle",He(),y(),m(),M=I=null},z=()=>{T="finished",c&&c(),He(),y()},N=()=>{if(g)return;h||(h=r(ue));const B=h.now();l&&l(),A!==null?M=B-A:(!M||T==="finished")&&(M=B),T==="finished"&&m(),I=M,A=null,T="running",h.start()};e&&N();const V={then(B,ne){return k.then(B,ne)},get time(){return $r(oe)},set time(B){B=sn(B),oe=B,A!==null||!h||p===0?A=B:M=h.now()-B/p},get duration(){const B=_.calculatedDuration===null?Ng(_):_.calculatedDuration;return $r(B)},get speed(){return p},set speed(B){B===p||!h||(p=B,V.time=$r(oe))},get state(){return T},play:N,pause:()=>{T="paused",A=oe},stop:()=>{g=!0,T!=="idle"&&(T="idle",u&&u(),it())},cancel:()=>{I!==null&&ue(I),it()},complete:()=>{T="finished"},sample:B=>(M=0,ue(B))};return V}function oF(e){let t;return()=>(t===void 0&&(t=e()),t)}const iF=oF(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),aF=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Fs=10,sF=2e4,lF=(e,t)=>t.type==="spring"||e==="backgroundColor"||!AS(t.ease);function uF(e,t,{onUpdate:r,onComplete:n,...o}){if(!(iF()&&aF.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const u=()=>{l=new Promise(h=>{s=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(lF(t,o)){const h=Zl({...o,repeat:0,delay:0});let v={done:!1,value:c[0]};const C=[];let _=0;for(;!v.done&&_g.cancel(),k=()=>{se.update(y),s(),u()};return g.onfinish=()=>{e.set(S4(c,o)),n&&n(),k()},{then(h,v){return l.then(h,v)},attachTimeline(h){return g.timeline=h,g.onfinish=null,xe},get time(){return $r(g.currentTime||0)},set time(h){g.currentTime=sn(h)},get speed(){return g.playbackRate},set speed(h){g.playbackRate=h},get duration(){return $r(d)},play:()=>{a||(g.play(),Ir(y))},pause:()=>g.pause(),stop:()=>{if(a=!0,g.playState==="idle")return;const{currentTime:h}=g;if(h){const v=Zl({...o,autoplay:!1});e.setWithVelocity(v.sample(h-Fs).value,v.sample(h).value,Fs)}k()},complete:()=>g.finish(),cancel:k}}function cF({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:xe,pause:xe,stop:xe,then:i=>(i(),Promise.resolve()),cancel:xe,complete:xe});return t?Zl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const dF={type:"spring",stiffness:500,damping:25,restSpeed:10},fF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hF={type:"keyframes",duration:.8},pF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mF=(e,{keyframes:t})=>t.length>2?hF:Xn.has(e)?e.startsWith("scale")?fF(t[1]):dF:pF,Af=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(dn.test(t)||t==="0")&&!t.startsWith("url(")),vF=new Set(["brightness","contrast","saturate","opacity"]);function gF(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Gu)||[];if(!n)return e;const o=r.replace(n,"");let i=vF.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const yF=/([a-z-]*)\(.*?\)/g,Rf={...dn,getAnimatableNone:e=>{const t=e.match(yF);return t?t.map(gF).join(" "):e}},bF={...hS,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:Rf,WebkitFilter:Rf},Tp=e=>bF[e];function ex(e,t){let r=Tp(e);return r!==Rf&&(r=dn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tx=e=>/^0[^.\s]+$/.test(e);function SF(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tx(e)}function xF(e,t,r,n){const o=Af(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=Ep(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-sn(a);const l=xF(t,e,r,i),u=l[0],c=l[l.length-1],d=Af(e,u),f=Af(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:g=>{t.set(g),i.onUpdate&&i.onUpdate(g)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(wF(i)||(p={...p,...mF(e,p)}),p.duration&&(p.duration=sn(p.duration)),p.repeatDelay&&(p.repeatDelay=sn(p.repeatDelay)),!d||!f||y4.current||i.type===!1)return cF(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=uF(t,e,p);if(g)return g}return Zl(p)};function Jl(e){return!!(ht(e)&&e.add)}const rx=e=>/^\-?\d*\.?\d+$/.test(e);function Ap(e,t){e.indexOf(t)===-1&&e.push(t)}function Rp(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Mp{constructor(){this.subscriptions=[]}add(t){return Ap(this.subscriptions,t),()=>Rp(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class CF{constructor(t,r={}){this.version="10.16.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=De;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,se.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=kF(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mp);const n=this.events[t].add(r);return t==="change"?()=>{n(),se.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?qS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jo(e,t){return new CF(e,t)}const nx=e=>t=>t.test(e),_F={test:e=>e==="auto",parse:e=>e},ox=[Qn,j,hr,Vr,z3,M3,_F],ki=e=>ox.find(nx(e)),PF=[...ox,Ze,dn],TF=e=>PF.find(nx(e));function EF(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jo(r))}function $F(e,t){const r=Yu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=K3(i[a]);EF(e,a,s)}}function AF(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(m)}return a&&Promise.all(u).then(()=>{a&&$F(e,a)}),u}function Mf(e,t,r={}){const n=Yu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(ix(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return FF(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function FF(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(DF).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Mf(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function DF(e,t){return e.sortNodePosition(t)}function IF(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Mf(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Mf(e,t,r);else{const o=typeof t=="function"?Yu(e,t,r.custom):t;n=Promise.all(ix(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const LF=[...hp].reverse(),OF=hp.length;function BF(e){return t=>Promise.all(t.map(({animation:r,options:n})=>IF(e,r,n)))}function jF(e){let t=BF(e);const r=VF();let n=!0;const o=(l,u)=>{const c=Yu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let g={},y=1/0;for(let m=0;my&&_;const I=Array.isArray(C)?C:[C];let ee=I.reduce(o,{});$===!1&&(ee={});const{prevResolvedValues:ze={}}=v,Pe={...ze,...ee},oe=ue=>{M=!0,p.delete(ue),v.needsAnimating[ue]=!0};for(const ue in Pe){const He=ee[ue],it=ze[ue];g.hasOwnProperty(ue)||(He!==it?Xl(He)&&Xl(it)?!ES(He,it)||A?oe(ue):v.protectedKeys[ue]=!0:He!==void 0?oe(ue):p.add(ue):He!==void 0&&p.has(ue)?oe(ue):v.protectedKeys[ue]=!0)}v.prevProp=C,v.prevResolvedValues=ee,v.isActive&&(g={...g,...ee}),n&&e.blockInitialAnimation&&(M=!1),M&&!T&&f.push(...I.map(ue=>({animation:ue,options:{type:h,...l}})))}if(p.size){const m={};p.forEach(h=>{const v=e.getBaseTarget(h);v!==void 0&&(m[h]=v)}),f.push({animation:m})}let k=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(k=!1),n=!1,k?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),r[l].isActive=u;const f=a(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function NF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ES(t,e):!1}function Sn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function VF(){return{animate:Sn(!0),whileInView:Sn(),whileHover:Sn(),whileTap:Sn(),whileDrag:Sn(),whileFocus:Sn(),exit:Sn()}}class WF extends vn{constructor(t){super(t),t.animationState||(t.animationState=jF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Uu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let UF=0;class HF extends vn{constructor(){super(...arguments),this.id=UF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GF={animation:{Feature:WF},exit:{Feature:HF}},Vg=(e,t)=>Math.abs(e-t);function KF(e,t){const r=Vg(e.x,t.x),n=Vg(e.y,t.y);return Math.sqrt(r**2+n**2)}class ax{constructor(t,r,{transformPagePoint:n,contextWindow:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=ld(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=KF(c.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=c,{timestamp:g}=De;this.history.push({...p,timestamp:g});const{onStart:y,onMove:k}=this.handlers;d||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=sd(d,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:p}=this.handlers,g=ld(c.type==="pointercancel"?this.lastMoveEventInfo:sd(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,g),p&&p(c,g)},!kS(t))return;this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const i=Ku(t),a=sd(i,this.transformPagePoint),{point:s}=a,{timestamp:l}=De;this.history=[{...s,timestamp:l}];const{onSessionStart:u}=r;u&&u(t,ld(a,this.history)),this.removeListeners=an(Er(this.contextWindow,"pointermove",this.handlePointerMove),Er(this.contextWindow,"pointerup",this.handlePointerUp),Er(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ir(this.updatePoint)}}function sd(e,t){return t?{point:t(e.point)}:e}function Wg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ld({point:e},t){return{point:e,delta:Wg(e,sx(t)),offset:Wg(e,YF(t)),velocity:XF(t,.1)}}function YF(e){return e[0]}function sx(e){return e[e.length-1]}function XF(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=sx(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>sn(t)));)r--;if(!n)return{x:0,y:0};const i=$r(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function kt(e){return e.max-e.min}function zf(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ug(e,t,r,n=.5){e.origin=n,e.originPoint=ge(t.min,t.max,e.origin),e.scale=kt(r)/kt(t),(zf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ge(r.min,r.max,e.origin)-e.originPoint,(zf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ta(e,t,r,n){Ug(e.x,t.x,r.x,n?n.originX:void 0),Ug(e.y,t.y,r.y,n?n.originY:void 0)}function Hg(e,t,r){e.min=r.min+t.min,e.max=e.min+kt(t)}function QF(e,t,r){Hg(e.x,t.x,r.x),Hg(e.y,t.y,r.y)}function Gg(e,t,r){e.min=t.min-r.min,e.max=e.min+kt(t)}function ra(e,t,r){Gg(e.x,t.x,r.x),Gg(e.y,t.y,r.y)}function qF(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ge(r,e,n.max):Math.min(e,r)),e}function Kg(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function ZF(e,{top:t,left:r,bottom:n,right:o}){return{x:Kg(e.x,r,o),y:Kg(e.y,t,n)}}function Yg(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Aa(t.min,t.max-n,e.min):n>o&&(r=Aa(e.min,e.max-o,t.min)),cn(0,1,r)}function tD(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ff=.35;function rD(e=Ff){return e===!1?e=0:e===!0&&(e=Ff),{x:Xg(e,"left","right"),y:Xg(e,"top","bottom")}}function Xg(e,t,r){return{min:Qg(e,t),max:Qg(e,r)}}function Qg(e,t){return typeof e=="number"?e:e[t]||0}const qg=()=>({translate:0,scale:1,origin:0,originPoint:0}),_o=()=>({x:qg(),y:qg()}),Zg=()=>({min:0,max:0}),Te=()=>({x:Zg(),y:Zg()});function tr(e){return[e("x"),e("y")]}function lx({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oD(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ud(e){return e===void 0||e===1}function Df({scale:e,scaleX:t,scaleY:r}){return!ud(e)||!ud(t)||!ud(r)}function kn(e){return Df(e)||ux(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ux(e){return Jg(e.x)||Jg(e.y)}function Jg(e){return e&&e!=="0%"}function eu(e,t,r){const n=e-r,o=t*n;return r+o}function e0(e,t,r,n,o){return o!==void 0&&(e=eu(e,o,n)),eu(e,r,n)+t}function If(e,t=0,r=1,n,o){e.min=e0(e.min,t,r,n,o),e.max=e0(e.max,t,r,n,o)}function cx(e,{x:t,y:r}){If(e.x,t.translate,t.scale,t.originPoint),If(e.y,r.translate,r.scale,r.originPoint)}function iD(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Hr(e,t){e.min=e.min+t,e.max=e.max+t}function r0(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=ge(e.min,e.max,i);If(e,t[r],t[n],a,t.scale)}const aD=["x","scaleX","originX"],sD=["y","scaleY","originY"];function Po(e,t){r0(e.x,t,aD),r0(e.y,t,sD)}function dx(e,t){return lx(oD(e.getBoundingClientRect(),t))}function lD(e,t,r){const n=dx(e,r),{scroll:o}=t;return o&&(Hr(n.x,o.offset.x),Hr(n.y,o.offset.y)),n}const fx=({current:e})=>e?e.ownerDocument.defaultView:null,uD=new WeakMap;class cD{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(Ku(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_S(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tr(g=>{let y=this.getAxisMotionValue(g).get()||0;if(hr.test(y)){const{projection:k}=this.visualElement;if(k&&k.layout){const m=k.layout.layoutBox[g];m&&(y=kt(m)*(parseFloat(y)/100))}}this.originPoint[g]=y}),f&&se.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=u;if(d&&this.currentDirection===null){this.currentDirection=dD(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),p&&p(l,u)},s=(l,u)=>this.stop(l,u);this.panSession=new ax(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:fx(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&se.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Ds(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=qF(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&ko(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=ZF(o.layoutBox,r):this.constraints=!1,this.elastic=rD(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&tr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=tD(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ko(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=lD(n,o.root,this.visualElement.getTransformPagePoint());let a=JF(o.layout.layoutBox,i);if(r){const s=r(nD(a));this.hasMutatedConstraints=!!s,s&&(a=lx(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=tr(c=>{if(!Ds(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($p(t,n,0,r))}stopAnimation(){tr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){tr(r=>{const{drag:n}=this.getProps();if(!Ds(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-ge(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!ko(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};tr(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=eD({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tr(a=>{if(!Ds(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(ge(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;uD.set(this.visualElement,this);const t=this.visualElement.current,r=Er(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();ko(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=_r(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(tr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Ff,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Ds(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function dD(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class fD extends vn{constructor(t){super(t),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new cD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const n0=e=>(t,r)=>{e&&se.update(()=>e(t,r))};class hD extends vn{constructor(){super(...arguments),this.removePointerDownListener=xe}onPointerDown(t){this.session=new ax(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:n0(t),onStart:n0(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&se.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Er(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function hx(){const e=S.useContext(Wa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=S.useId();return S.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function pD(){return mD(S.useContext(Wa))}function mD(e){return e===null?!0:e.isPresent}const fl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function o0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ci={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const r=o0(e,t.target.x),n=o0(e,t.target.y);return`${r}% ${n}%`}},vD={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=dn.parse(e);if(o.length>5)return n;const i=dn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=ge(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class gD extends Ar.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;_3(yD),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),fl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||se.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function px(e){const[t,r]=hx(),n=S.useContext(mp);return Ar.createElement(gD,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(lS),isPresent:t,safeToRemove:r})}const yD={borderRadius:{...Ci,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ci,borderTopRightRadius:Ci,borderBottomLeftRadius:Ci,borderBottomRightRadius:Ci,boxShadow:vD},mx=["TopLeft","TopRight","BottomLeft","BottomRight"],bD=mx.length,i0=e=>typeof e=="string"?parseFloat(e):e,a0=e=>typeof e=="number"||j.test(e);function SD(e,t,r,n,o,i){o?(e.opacity=ge(0,r.opacity!==void 0?r.opacity:1,xD(n)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,wD(n))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(Aa(e,t,n))}function l0(e,t){e.min=t.min,e.max=t.max}function $t(e,t){l0(e.x,t.x),l0(e.y,t.y)}function u0(e,t,r,n,o){return e-=t,e=eu(e,1/r,n),o!==void 0&&(e=eu(e,1/o,n)),e}function kD(e,t=0,r=1,n=.5,o,i=e,a=e){if(hr.test(t)&&(t=parseFloat(t),t=ge(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ge(i.min,i.max,n);e===i&&(s-=t),e.min=u0(e.min,t,r,s,o),e.max=u0(e.max,t,r,s,o)}function c0(e,t,[r,n,o],i,a){kD(e,t[r],t[n],t[o],t.scale,i,a)}const CD=["x","scaleX","originX"],_D=["y","scaleY","originY"];function d0(e,t,r,n){c0(e.x,t,CD,r?r.x:void 0,n?n.x:void 0),c0(e.y,t,_D,r?r.y:void 0,n?n.y:void 0)}function f0(e){return e.translate===0&&e.scale===1}function gx(e){return f0(e.x)&&f0(e.y)}function PD(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function yx(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function h0(e){return kt(e.x)/kt(e.y)}class TD{constructor(){this.members=[]}add(t){Ap(this.members,t),t.scheduleRender()}remove(t){if(Rp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function p0(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const ED=(e,t)=>e.depth-t.depth;class $D{constructor(){this.children=[],this.isDirty=!1}add(t){Ap(this.children,t),this.isDirty=!0}remove(t){Rp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ED),this.isDirty=!1,this.children.forEach(t)}}function AD(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Ir(n),e(i-t))};return se.read(n,!0),()=>Ir(n)}function RD(e){window.MotionDebug&&window.MotionDebug.record(e)}function MD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function zD(e,t,r){const n=ht(e)?e:Jo(e);return n.start($p("",n,t,r)),n.animation}const m0=["","X","Y","Z"],FD={visibility:"hidden"},v0=1e3;let DD=0;const Cn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function bx({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=DD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Cn.totalNodes=Cn.resolvedTargetDeltas=Cn.recalculatedProjection=0,this.nodes.forEach(OD),this.nodes.forEach(WD),this.nodes.forEach(UD),this.nodes.forEach(BD),RD(Cn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=AD(f,250),fl.hasAnimatedSinceResize&&(fl.hasAnimatedSinceResize=!1,this.nodes.forEach(y0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||XD,{onLayoutAnimationStart:k,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!yx(this.targetLayout,g)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const C={...Ep(y,"layout"),onPlay:k,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||y0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ir(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(jD),this.sharedNodes.forEach(GD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const _=C/1e3;b0(d.x,a.x,_),b0(d.y,a.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ra(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KD(this.relativeTarget,this.relativeTargetOrigin,f,_),v&&PD(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Te()),$t(v,this.relativeTarget)),y&&(this.animationValues=c,SD(c,u,this.latestValues,_,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{fl.hasAnimatedSinceResize=!0,this.currentAnimation=zD(0,v0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(v0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Sx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Te();const d=kt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=kt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}$t(s,l),Po(s,c),ta(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TD),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(g0),this.root.sharedNodes.clear()}}}function ID(e){e.updateLayout()}function LD(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?tr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=kt(f);f.min=n[d].min,f.max=f.min+p}):Sx(i,r.layoutBox,n)&&tr(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=kt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=_o();ta(s,n,r.layoutBox);const l=_o();a?ta(l,e.applyTransform(o,!0),r.measuredBox):ta(l,n,r.layoutBox);const u=!gx(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const g=Te();ra(g,r.layoutBox,f.layoutBox);const y=Te();ra(y,n,p.layoutBox),yx(g,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function OD(e){Cn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jD(e){e.clearSnapshot()}function g0(e){e.clearMeasurements()}function ND(e){e.isLayoutDirty=!1}function VD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function y0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WD(e){e.resolveTargetDelta()}function UD(e){e.calcProjection()}function HD(e){e.resetRotation()}function GD(e){e.removeLeadSnapshot()}function b0(e,t,r){e.translate=ge(t.translate,0,r),e.scale=ge(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function S0(e,t,r,n){e.min=ge(t.min,r.min,n),e.max=ge(t.max,r.max,n)}function KD(e,t,r,n){S0(e.x,t.x,r.x,n),S0(e.y,t.y,r.y,n)}function YD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XD={duration:.45,ease:[.4,0,.1,1]},x0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),w0=x0("applewebkit/")&&!x0("chrome/")?Math.round:xe;function k0(e){e.min=w0(e.min),e.max=w0(e.max)}function QD(e){k0(e.x),k0(e.y)}function Sx(e,t,r){return e==="position"||e==="preserve-aspect"&&!zf(h0(t),h0(r),.2)}const qD=bx({attachResizeListener:(e,t)=>_r(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cd={current:void 0},xx=bx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cd.current){const e=new qD({});e.mount(window),e.setOptions({layoutScroll:!0}),cd.current=e}return cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZD={pan:{Feature:hD},drag:{Feature:fD,ProjectionNode:xx,MeasureLayout:px}},JD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eI(e){const t=JD.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Lf(e,t,r=1){const[n,o]=eI(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return rx(a)?parseFloat(a):a}else return Pf(o)?Lf(o,t,r+1):o}function tI(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Pf(i))return;const a=Lf(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!Pf(i))continue;const a=Lf(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const rI=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wx=e=>rI.has(e),nI=e=>Object.keys(e).some(wx),C0=e=>e===Qn||e===j,_0=(e,t)=>parseFloat(e.split(", ")[t]),P0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return _0(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?_0(i[1],e):0}},oI=new Set(["x","y","z"]),iI=Ua.filter(e=>!oI.has(e));function aI(e){const t=[];return iI.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ei={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:P0(4,13),y:P0(5,14)};ei.translateX=ei.x;ei.translateY=ei.y;const sI=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=ei[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=ei[u](l,i)}),e},lI=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(wx);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=ki(c);const f=t[l];let p;if(Xl(f)){const g=f.length,y=f[0]===null?1:0;c=f[y],d=ki(c);for(let k=y;k=0?window.pageYOffset:null,u=sI(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Wu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function uI(e,t,r,n){return nI(t)?lI(e,t,r,n):{target:t,transitionEnd:n}}const cI=(e,t,r,n)=>{const o=tI(e,t,n);return t=o.target,n=o.transitionEnd,uI(e,t,r,n)},Of={current:null},kx={current:!1};function dI(){if(kx.current=!0,!!Wu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Of.current=e.matches;e.addListener(t),t()}else Of.current=!1}function fI(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(ht(i))e.addValue(o,i),Jl(n)&&n.add(o);else if(ht(a))e.addValue(o,Jo(i,{owner:e})),Jl(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Jo(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const T0=new WeakMap,Cx=Object.keys($a),hI=Cx.length,E0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pI=pp.length;class mI{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>se.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Hu(r),this.isVariantNode=sS(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];s[d]!==void 0&&ht(f)&&(f.set(s[d],!1),Jl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,T0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),kx.current||dI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Of.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){T0.delete(this.current),this.projection&&this.projection.unmount(),Ir(this.notifyUpdate),Ir(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Xn.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&se.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jo(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=wp(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class _x extends mI{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=MF(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){AF(this,n,a);const s=cI(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function vI(e){return window.getComputedStyle(e)}class gI extends _x{readValueFromInstance(t,r){if(Xn.has(r)){const n=Tp(r);return n&&n.default||0}else{const n=vI(t),o=(dS(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return dx(t,r)}build(t,r,n,o){gp(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return xp(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){gS(t,r,n,o)}}class yI extends _x{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Xn.has(r)){const n=Tp(r);return n&&n.default||0}return r=yS.has(r)?r:fp(r),t.getAttribute(r)}measureInstanceViewportBox(){return Te()}scrapeMotionValuesFromProps(t,r){return SS(t,r)}build(t,r,n,o){bp(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){bS(t,r,n,o)}mount(t){this.isSVGTag=Sp(t.tagName),super.mount(t)}}const bI=(e,t)=>vp(e)?new yI(t,{enableHardwareAcceleration:!1}):new gI(t,{enableHardwareAcceleration:!0}),SI={layout:{ProjectionNode:xx,MeasureLayout:px}},xI={...GF,...p4,...ZD,...SI},ii=k3((e,t)=>t4(e,t,xI,bI));function Px(){const e=S.useRef(!1);return dp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function wI(){const e=Px(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>se.postRender(n),[n]),t]}class kI extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function CI({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
+>>>>>>> f551431 (build dist)
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${i}px !important;
@@ -347,7 +357,11 @@ Error generating stack: `+i.message+`
top: ${s}px !important;
left: ${l}px !important;
}
+<<<<<<< HEAD
`),()=>{document.head.removeChild(u)}},[t]),S.createElement(kI,{isPresent:t,childRef:n,sizeRef:o},S.cloneElement(e,{ref:n}))}const dd=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=xS(_I),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[r]);return S.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),S.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=S.createElement(CI,{isPresent:r},e)),S.createElement(Wa.Provider,{value:u},e)};function _I(){return new Map}function PI(e){return S.useEffect(()=>()=>e(),[])}const _n=e=>e.key||"";function TI(e,t){e.forEach(r=>{const n=_n(r);t.set(n,r)})}function EI(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const Ya=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=S.useContext(mp).forceRender||wI()[0],l=Px(),u=EI(e);let c=u;const d=S.useRef(new Map).current,f=S.useRef(c),p=S.useRef(new Map).current,v=S.useRef(!0);if(dp(()=>{v.current=!1,TI(u,p),f.current=c}),PI(()=>{v.current=!0,p.clear(),d.clear()}),v.current)return S.createElement(S.Fragment,null,c.map(h=>S.createElement(dd,{key:_n(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},h)));c=[...c];const y=f.current.map(_n),x=u.map(_n),m=y.length;for(let h=0;h{if(x.indexOf(g)!==-1)return;const C=p.get(g);if(!C)return;const _=y.indexOf(g);let $=h;if(!$){const T=()=>{d.delete(g);const A=Array.from(p.keys()).filter(M=>!x.includes(M));if(A.forEach(M=>p.delete(M)),f.current=u.filter(M=>{const I=_n(M);return I===g||A.includes(I)}),!d.size){if(l.current===!1)return;s(),n&&n()}};$=S.createElement(dd,{key:_n(C),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:a},C),d.set(g,$)}c.splice(_,0,$)}),c=c.map(h=>{const g=h.key;return d.has(g)?h:S.createElement(dd,{key:_n(h),isPresent:!0,presenceAffectsLayout:i,mode:a},h)}),S.createElement(S.Fragment,null,d.size?c:c.map(h=>S.cloneElement(h)))};var $I={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]}}},Tx=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=$I,toastSpacing:c="0.5rem"}=e,[d,f]=S.useState(s),p=pD();Cg(()=>{p||n==null||n()},[p]),Cg(()=>{f(s)},[s]);const v=()=>f(null),y=()=>f(s),x=()=>{p&&o()};S.useEffect(()=>{p&&i&&o()},[p,i,o]),h3(x,d);const m=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=S.useMemo(()=>c3(a),[a]);return E.jsx(ii.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:y,custom:{position:a},style:h,children:E.jsx(_e.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:lr(r,{id:t,onClose:x})})})});Tx.displayName="ToastComponent";function AI(e,t){var r;const n=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=i==null?void 0:i[t])!=null?r:n}var $0={path:E.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E.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"}),E.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"}),E.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Xa=pt((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=Be("chakra-icon",s),d=Nu("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},v=n??$0.viewBox;if(r&&typeof r!="string")return E.jsx(_e.svg,{as:r,...p,...u});const y=a??$0.path;return E.jsx(_e.svg,{verticalAlign:"middle",viewBox:v,...p,...u,children:y})});Xa.displayName="Icon";function RI(e){return E.jsx(Xa,{viewBox:"0 0 24 24",...e,children:E.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 MI(e){return E.jsx(Xa,{viewBox:"0 0 24 24",...e,children:E.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 A0(e){return E.jsx(Xa,{viewBox:"0 0 24 24",...e,children:E.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"})})}var zI=wP({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),zp=pt((e,t)=>{const r=Nu("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Ou(e),u=Be("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${zI} ${i} linear infinite`,...r};return E.jsx(_e.div,{ref:t,__css:c,className:u,...l,children:n&&E.jsx(_e.span,{srOnly:!0,children:n})})});zp.displayName="Spinner";var[FI,Fp]=mn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[DI,Dp]=mn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Ex={info:{icon:MI,colorScheme:"blue"},warning:{icon:A0,colorScheme:"orange"},success:{icon:RI,colorScheme:"green"},error:{icon:A0,colorScheme:"red"},loading:{icon:zp,colorScheme:"blue"}};function II(e){return Ex[e].colorScheme}function LI(e){return Ex[e].icon}var $x=pt(function(t,r){const n=Dp(),{status:o}=Fp(),i={display:"inline",...n.description};return E.jsx(_e.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__desc",t.className),__css:i})});$x.displayName="AlertDescription";function Ax(e){const{status:t}=Fp(),r=LI(t),n=Dp(),o=t==="loading"?n.spinner:n.icon;return E.jsx(_e.span,{display:"inherit","data-status":t,...e,className:Be("chakra-alert__icon",e.className),__css:o,children:e.children||E.jsx(r,{h:"100%",w:"100%"})})}Ax.displayName="AlertIcon";var Rx=pt(function(t,r){const n=Dp(),{status:o}=Fp();return E.jsx(_e.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__title",t.className),__css:n.title})});Rx.displayName="AlertTitle";var Mx=pt(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=Ou(t),s=(n=t.colorScheme)!=null?n:II(o),l=eS("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return E.jsx(FI,{value:{status:o},children:E.jsx(DI,{value:l,children:E.jsx(_e.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:Be("chakra-alert",t.className),__css:u})})})});Mx.displayName="Alert";function OI(e){return E.jsx(Xa,{focusable:"false","aria-hidden":!0,...e,children:E.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"})})}var Ip=pt(function(t,r){const n=Nu("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=Ou(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return E.jsx(_e.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||E.jsx(OI,{width:"1em",height:"1em"})})});Ip.displayName="CloseButton";var BI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ar=jI(BI);function jI(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=NI(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const p=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:p}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=kg(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:zx(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=nS(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!kg(ar.getState(),o).position}}var R0=0;function NI(e,t={}){var r,n;R0+=1;const o=(r=t.id)!=null?r:R0,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ar.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var VI=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return E.jsxs(Mx,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[E.jsx(Ax,{children:u}),E.jsxs(_e.div,{flex:"1",maxWidth:"100%",children:[o&&E.jsx(Rx,{id:c==null?void 0:c.title,children:o}),s&&E.jsx($x,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&E.jsx(Ip,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function zx(e={}){const{render:t,toastComponent:r=VI}=e;return o=>typeof t=="function"?t({...o,...e}):E.jsx(r,{...o,...e})}function zB(e,t){const r=o=>{var i;return{...t,...o,position:AI((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},n=o=>{const i=r(o),a=zx(i);return ar.notify(a,i)};return n.update=(o,i)=>{ar.update(o,r(i))},n.promise=(o,i)=>{const a=n({...i.loading,status:"loading",duration:null});o.then(s=>n.update(a,{status:"success",duration:5e3,...lr(i.success,s)})).catch(s=>n.update(a,{status:"error",duration:5e3,...lr(i.error,s)}))},n.closeAll=ar.closeAll,n.close=ar.close,n.isActive=ar.isActive,n}var[WI,FB]=mn({name:"ToastOptionsContext",strict:!1}),UI=e=>{const t=S.useSyncExternalStore(ar.subscribe,ar.getState,ar.getState),{motionVariants:r,component:n=Tx,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return E.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:d3(s),children:E.jsx(Ya,{initial:!1,children:l.map(u=>E.jsx(n,{motionVariants:r,...u},u.id))})},s)});return E.jsx(Na,{...o,children:a})},HI=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return E.jsxs(l3,{theme:n,...i,children:[E.jsx(WI,{value:o==null?void 0:o.defaultOptions,children:r}),E.jsx(UI,{...o})]})},GI=HI(Kb);function KI(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 Bf(...e){return t=>{e.forEach(r=>{KI(r,t)})}}function YI(...e){return S.useMemo(()=>Bf(...e),e)}var M0={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},On={enter:{duration:.2,ease:M0.easeOut},exit:{duration:.1,ease:M0.easeIn}},Bn={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},XI={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:Bn.enter(On.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:Bn.exit(On.exit,r),transitionEnd:t==null?void 0:t.exit}}},Fx={initial:"exit",animate:"enter",exit:"exit",variants:XI},QI=S.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:i,transition:a,transitionEnd:s,delay:l,...u}=t,c=o||n?"enter":"exit",d=n?o&&n:!0,f={transition:a,transitionEnd:s,delay:l};return E.jsx(Ya,{custom:f,children:d&&E.jsx(ii.div,{ref:r,className:Be("chakra-fade",i),custom:f,...Fx,animate:c,...u})})});QI.displayName="Fade";var qI={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(i=r==null?void 0:r.exit)!=null?i:Bn.exit(On.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:Bn.enter(On.enter,r),transitionEnd:e==null?void 0:e.enter}}},Dx={initial:"exit",animate:"enter",exit:"exit",variants:qI},ZI=S.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:u,delay:c,...d}=t,f=n?o&&n:!0,p=o||n?"enter":"exit",v={initialScale:a,reverse:i,transition:l,transitionEnd:u,delay:c};return E.jsx(Ya,{custom:v,children:f&&E.jsx(ii.div,{ref:r,className:Be("chakra-offset-slide",s),...Dx,animate:p,custom:v,...d})})});ZI.displayName="ScaleFade";var JI={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:(i=r==null?void 0:r.exit)!=null?i:Bn.exit(On.exit,o),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:Bn.enter(On.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:i})=>{var a;const s={x:t,y:e};return{opacity:0,transition:(a=r==null?void 0:r.exit)!=null?a:Bn.exit(On.exit,i),...o?{...s,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...s,...n==null?void 0:n.exit}}}}},Li={initial:"initial",animate:"enter",exit:"exit",variants:JI},eL=S.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:u,transitionEnd:c,delay:d,...f}=t,p=n?o&&n:!0,v=o||n?"enter":"exit",y={offsetX:s,offsetY:l,reverse:i,transition:u,transitionEnd:c,delay:d};return E.jsx(Ya,{custom:y,children:p&&E.jsx(ii.div,{ref:r,className:Be("chakra-offset-slide",a),custom:y,...Li,animate:v,...f})})});eL.displayName="SlideFade";var[DB,tL]=mn({strict:!1,name:"ButtonGroupContext"});function rL(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function jf(e){const{children:t,className:r,...n}=e,o=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Be("chakra-button__icon",r);return E.jsx(_e.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}jf.displayName="ButtonIcon";function Nf(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=E.jsx(zp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=Be("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return E.jsx(_e.div,{className:l,...s,__css:c,children:o})}Nf.displayName="ButtonSpinner";var Ix=pt((e,t)=>{const r=tL(),n=Nu("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:v="start",className:y,as:x,...m}=Ou(e),h=S.useMemo(()=>{const $={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:$}}},[n,r]),{ref:g,type:C}=rL(x),_={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return E.jsxs(_e.button,{ref:YI(t,g),as:x,type:f??C,"data-active":Rv(a),"data-loading":Rv(i),__css:h,className:Be("chakra-button",y),...m,disabled:o||i,children:[i&&v==="start"&&E.jsx(Nf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||E.jsx(_e.span,{opacity:0,children:E.jsx(z0,{..._})}):E.jsx(z0,{..._}),i&&v==="end"&&E.jsx(Nf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Ix.displayName="Button";function z0(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return E.jsxs(E.Fragment,{children:[t&&E.jsx(jf,{marginEnd:o,children:t}),n,r&&E.jsx(jf,{marginStart:o,children:r})]})}function nL(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var Vf="data-focus-lock",Lx="data-focus-lock-disabled",oL="data-no-focus-lock",iL="data-autofocus-inside",aL="data-no-autofocus";function sL(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lL(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function Ox(e,t){return lL(t||null,function(r){return e.forEach(function(n){return sL(n,r)})})}var fd={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},sr=function(){return sr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0}).sort(PL)},TL=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],jp=TL.join(","),EL="".concat(jp,", [data-focus-guard]"),rw=function(e,t){return pr((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?EL:jp)?[n]:[],rw(n))},[])},$L=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Xu([e.contentDocument.body],t):[e]},Xu=function(e,t){return e.reduce(function(r,n){var o,i=rw(n,t),a=(o=[]).concat.apply(o,i.map(function(s){return $L(s,t)}));return r.concat(a,n.parentNode?pr(n.parentNode.querySelectorAll(jp)).filter(function(s){return s===n}):[])},[])},AL=function(e){var t=e.querySelectorAll("[".concat(iL,"]"));return pr(t).map(function(r){return Xu([r])}).reduce(function(r,n){return r.concat(n)},[])},Np=function(e,t){return pr(e).filter(function(r){return Qx(t,r)}).filter(function(r){return kL(r)})},F0=function(e,t){return t===void 0&&(t=new Map),pr(e).filter(function(r){return qx(t,r)})},Uf=function(e,t,r){return tw(Np(Xu(e,r),t),!0,r)},D0=function(e,t){return tw(Np(Xu(e),t),!1)},RL=function(e,t){return Np(AL(e),t)},Bo=function(e,t){return e.shadowRoot?Bo(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:pr(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?Bo(o,t):!1}return Bo(r,t)})},ML=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(a,s){return!t.has(s)})},nw=function(e){return e.parentNode?nw(e.parentNode):e},Vp=function(e){var t=tu(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(Vf);return r.push.apply(r,o?ML(pr(nw(n).querySelectorAll("[".concat(Vf,'="').concat(o,'"]:not([').concat(Lx,'="disabled"])')))):[n]),r},[])},zL=function(e){try{return e()}catch{return}},Ma=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ma(t.shadowRoot):t instanceof HTMLIFrameElement&&zL(function(){return t.contentWindow.document})?Ma(t.contentWindow.document):t}},FL=function(e,t){return e===t},DL=function(e,t){return!!pr(e.querySelectorAll("iframe")).some(function(r){return FL(r,t)})},ow=function(e,t){return t===void 0&&(t=Ma(Kx(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Vp(e).some(function(r){return Bo(r,t)||DL(r,t)})},IL=function(e){e===void 0&&(e=document);var t=Ma(e);return t?pr(e.querySelectorAll("[".concat(oL,"]"))).some(function(r){return Bo(r,t)}):!1},LL=function(e,t){return t.filter(ew).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Wp=function(e,t){return ew(e)&&e.name?LL(e,t):e},OL=function(e){var t=new Set;return e.forEach(function(r){return t.add(Wp(r,e))}),e.filter(function(r){return t.has(r)})},I0=function(e){return e[0]&&e.length>1?Wp(e[0],e):e[0]},L0=function(e,t){return e.length>1?e.indexOf(Wp(e[t],e)):t},iw="NEW_FOCUS",BL=function(e,t,r,n){var o=e.length,i=e[0],a=e[o-1],s=Bp(r);if(!(r&&e.indexOf(r)>=0)){var l=r!==void 0?t.indexOf(r):-1,u=n?t.indexOf(n):l,c=n?e.indexOf(n):-1,d=l-u,f=t.indexOf(i),p=t.indexOf(a),v=OL(t),y=r!==void 0?v.indexOf(r):-1,x=y-(n?v.indexOf(n):l),m=L0(e,0),h=L0(e,o-1);if(l===-1||c===-1)return iw;if(!d&&c>=0)return c;if(l<=f&&s&&Math.abs(d)>1)return h;if(l>=p&&s&&Math.abs(d)>1)return m;if(d&&Math.abs(x)>1)return c;if(l<=f)return h;if(l>p)return m;if(d)return Math.abs(d)>1?c:(o+c+d)%o}},jL=function(e){return function(t){var r,n=(r=Zx(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},NL=function(e,t,r){var n=e.map(function(i){var a=i.node;return a}),o=F0(n.filter(jL(r)));return o&&o.length?I0(o):I0(F0(t))},Hf=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Hf(e.parentNode.host||e.parentNode,t),t},hd=function(e,t){for(var r=Hf(e),n=Hf(t),o=0;o=0)return i}return!1},aw=function(e,t,r){var n=tu(e),o=tu(t),i=n[0],a=!1;return o.filter(Boolean).forEach(function(s){a=hd(a||s,s)||a,r.filter(Boolean).forEach(function(l){var u=hd(i,l);u&&(!a||Bo(u,a)?a=u:a=hd(u,a))})}),a},VL=function(e,t){return e.reduce(function(r,n){return r.concat(RL(n,t))},[])},WL=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(_L)},UL=function(e,t){var r=Ma(tu(e).length>0?document:Kx(e).ownerDocument),n=Vp(e).filter(ru),o=aw(r||e,e,n),i=new Map,a=D0(n,i),s=Uf(n,i).filter(function(p){var v=p.node;return ru(v)});if(!(!s[0]&&(s=a,!s[0]))){var l=D0([o],i).map(function(p){var v=p.node;return v}),u=WL(l,s),c=u.map(function(p){var v=p.node;return v}),d=BL(c,l,r,t);if(d===iw){var f=NL(a,c,VL(n,i));if(f)return{node:f};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},HL=function(e){var t=Vp(e).filter(ru),r=aw(e,e,t),n=new Map,o=Uf([r],n,!0),i=Uf(t,n).filter(function(a){var s=a.node;return ru(s)}).map(function(a){var s=a.node;return s});return o.map(function(a){var s=a.node,l=a.index;return{node:s,index:l,lockItem:i.indexOf(s)>=0,guard:Bp(s)}})},GL=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},pd=0,md=!1,sw=function(e,t,r){r===void 0&&(r={});var n=UL(e,t);if(!md&&n){if(pd>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),md=!0,setTimeout(function(){md=!1},1);return}pd++,GL(n.node,r.focusOptions),pd--}};function Up(e){setTimeout(e,1)}var KL=function(){return document&&document.activeElement===document.body},YL=function(){return KL()||IL()},jo=null,To=null,No=null,za=!1,XL=function(){return!0},QL=function(t){return(jo.whiteList||XL)(t)},qL=function(t,r){No={observerNode:t,portaledElement:r}},ZL=function(t){return No&&No.portaledElement===t};function O0(e,t,r,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=r)!==t);o&&(o.node.tabIndex=0)}var JL=function(t){return t&&"current"in t?t.current:t},eO=function(t){return t?!!za:za==="meanwhile"},tO=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},rO=function(t,r){return r.some(function(n){return tO(t,n,n)})},nu=function(){var t=!1;if(jo){var r=jo,n=r.observed,o=r.persistentFocus,i=r.autoFocus,a=r.shards,s=r.crossFrame,l=r.focusOptions,u=n||No&&No.portaledElement,c=document&&document.activeElement;if(u){var d=[u].concat(a.map(JL).filter(Boolean));if((!c||QL(c))&&(o||eO(s)||!YL()||!To&&i)&&(u&&!(ow(d)||c&&rO(c,d)||ZL(c))&&(document&&!To&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(t=sw(d,To,{focusOptions:l}),No={})),za=!1,To=document&&document.activeElement),document){var f=document&&document.activeElement,p=HL(d),v=p.map(function(y){var x=y.node;return x}).indexOf(f);v>-1&&(p.filter(function(y){var x=y.guard,m=y.node;return x&&m.dataset.focusAutoGuard}).forEach(function(y){var x=y.node;return x.removeAttribute("tabIndex")}),O0(v,p.length,1,p),O0(v,-1,-1,p))}}}return t},lw=function(t){nu()&&t&&(t.stopPropagation(),t.preventDefault())},Hp=function(){return Up(nu)},nO=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||qL(n,r)},oO=function(){return null},uw=function(){za="just",Up(function(){za="meanwhile"})},iO=function(){document.addEventListener("focusin",lw),document.addEventListener("focusout",Hp),window.addEventListener("blur",uw)},aO=function(){document.removeEventListener("focusin",lw),document.removeEventListener("focusout",Hp),window.removeEventListener("blur",uw)};function sO(e){return e.filter(function(t){var r=t.disabled;return!r})}function lO(e){var t=e.slice(-1)[0];t&&!jo&&iO();var r=jo,n=r&&t&&t.id===r.id;jo=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var i=o.id;return i===r.id}).length||r.returnFocus(!t)),t?(To=null,(!n||r.observed!==t.observed)&&t.onActivation(),nu(),Up(nu)):(aO(),To=null)}Ux.assignSyncMedium(nO);Hx.assignMedium(Hp);dL.assignMedium(function(e){return e({moveFocusInside:sw,focusInside:ow})});const uO=yL(sO,lO)(oO);var cw=S.forwardRef(function(t,r){return S.createElement(Gx,Hn({sideCar:uO,ref:r},t))}),dw=Gx.propTypes||{};dw.sideCar;nL(dw,["sideCar"]);cw.propTypes={};const B0=cw;function fw(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function hw(e){var t;if(!fw(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function IB(e){var t,r;return(r=(t=pw(e))==null?void 0:t.defaultView)!=null?r:window}function pw(e){return fw(e)?e.ownerDocument:document}function LB(e){return pw(e).activeElement}var mw=e=>e.hasAttribute("tabindex"),cO=e=>mw(e)&&e.tabIndex===-1;function dO(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function vw(e){return e.parentElement&&vw(e.parentElement)?!0:e.hidden}function fO(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function gw(e){if(!hw(e)||vw(e)||dO(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]():fO(e)?!0:mw(e)}function OB(e){return e?hw(e)&&gw(e)&&!cO(e):!1}var hO=["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]"],pO=hO.join(),mO=e=>e.offsetWidth>0&&e.offsetHeight>0;function vO(e){const t=Array.from(e.querySelectorAll(pO));return t.unshift(e),t.filter(r=>gw(r)&&mO(r))}var j0,gO=(j0=B0.default)!=null?j0:B0,yw=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=S.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&vO(n.current).length===0&&requestAnimationFrame(()=>{var v;(v=n.current)==null||v.focus()})},[t,n]),d=S.useCallback(()=>{var p;(p=r==null?void 0:r.current)==null||p.focus()},[r]),f=o&&!r;return E.jsx(gO,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:a,onActivation:c,onDeactivation:d,returnFocus:f,children:i})};yw.displayName="FocusLock";var yO={slideInBottom:{...Li,custom:{offsetY:16,reverse:!0}},slideInRight:{...Li,custom:{offsetX:16,reverse:!0}},slideInTop:{...Li,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Li,custom:{offsetX:-16,reverse:!0}},scale:{...Dx,custom:{initialScale:.95,reverse:!0}},none:{}},bO=_e(ii.section),SO=e=>yO[e||"none"],bw=S.forwardRef((e,t)=>{const{preset:r,motionProps:n=SO(r),...o}=e;return E.jsx(bO,{ref:t,...n,...o})});bw.displayName="ModalTransition";var xO=Object.defineProperty,wO=(e,t,r)=>t in e?xO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kO=(e,t,r)=>(wO(e,typeof t!="symbol"?t+"":t,r),r),CO=class{constructor(){kO(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Gf=new CO;function Sw(e,t){const[r,n]=S.useState(0);return S.useEffect(()=>{const o=e.current;if(o){if(t){const i=Gf.add(o);n(i)}return()=>{Gf.remove(o),n(0)}}},[t,e]),r}var _O=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,Is=new WeakMap,Ls={},vd=0,xw=function(e){return e&&(e.host||xw(e.parentNode))},PO=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},TO=function(e,t,r,n){var o=PO(t,Array.isArray(e)?e:[e]);Ls[r]||(Ls[r]=new WeakMap);var i=Ls[r],a=[],s=new Set,l=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else{var p=f.getAttribute(n),v=p!==null&&p!=="false",y=(to.get(f)||0)+1,x=(i.get(f)||0)+1;to.set(f,y),i.set(f,x),a.push(f),y===1&&v&&Is.set(f,!0),x===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}})};return c(t),s.clear(),vd++,function(){a.forEach(function(d){var f=to.get(d)-1,p=i.get(d)-1;to.set(d,f),i.set(d,p),f||(Is.has(d)||d.removeAttribute(n),Is.delete(d)),p||d.removeAttribute(r)}),vd--,vd||(to=new WeakMap,to=new WeakMap,Is=new WeakMap,Ls={})}},EO=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||_O(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),TO(n,o,r,"aria-hidden")):function(){return null}};function $O(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=S.useRef(null),c=S.useRef(null),[d,f,p]=RO(n,"chakra-modal","chakra-modal--header","chakra-modal--body");AO(u,t&&a);const v=Sw(u,t),y=S.useRef(null),x=S.useCallback(M=>{y.current=M.target},[]),m=S.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),i&&(r==null||r()),l==null||l())},[i,r,l]),[h,g]=S.useState(!1),[C,_]=S.useState(!1),$=S.useCallback((M={},I=null)=>({role:"dialog",...M,ref:Bf(I,u),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":h?f:void 0,"aria-describedby":C?p:void 0,onClick:$i(M.onClick,ee=>ee.stopPropagation())}),[p,C,d,f,h]),T=S.useCallback(M=>{M.stopPropagation(),y.current===M.target&&Gf.isTopModal(u.current)&&(o&&(r==null||r()),s==null||s())},[r,o,s]),A=S.useCallback((M={},I=null)=>({...M,ref:Bf(I,c),onClick:$i(M.onClick,T),onKeyDown:$i(M.onKeyDown,m),onMouseDown:$i(M.onMouseDown,x)}),[m,x,T]);return{isOpen:t,onClose:r,headerId:f,bodyId:p,setBodyMounted:_,setHeaderMounted:g,dialogRef:u,overlayRef:c,getDialogProps:$,getDialogContainerProps:A,index:v}}function AO(e,t){const r=e.current;S.useEffect(()=>{if(!(!e.current||!t))return EO(e.current)},[t,e,r])}function RO(e,...t){const r=S.useId(),n=e||r;return S.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}var[MO,ai]=mn({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[zO,Gn]=mn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),ww=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:v}=t,y=eS("Modal",t),m={...$O(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return E.jsx(zO,{value:m,children:E.jsx(MO,{value:y,children:E.jsx(Ya,{onExitComplete:v,children:m.isOpen&&E.jsx(Na,{...r,children:n})})})})};ww.displayName="Modal";var hl="right-scroll-bar-position",pl="width-before-scroll-bar",FO="with-scroll-bars-hidden",DO="--removed-body-scroll-bar-size",kw=Vx(),gd=function(){},Qu=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:gd,onWheelCapture:gd,onTouchMoveCapture:gd}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,v=e.inert,y=e.allowPinchZoom,x=e.as,m=x===void 0?"div":x,h=e.gapMode,g=Bx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,_=Ox([r,t]),$=sr(sr({},g),o);return S.createElement(S.Fragment,null,c&&S.createElement(C,{sideCar:kw,removeScrollBar:u,shards:d,noIsolation:p,inert:v,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:h}),a?S.cloneElement(S.Children.only(s),sr(sr({},$),{ref:_})):S.createElement(m,sr({},$,{className:l,ref:_}),s))});Qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qu.classNames={fullWidth:pl,zeroRight:hl};var N0,IO=function(){if(N0)return N0;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function LO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IO();return t&&e.setAttribute("nonce",t),e}function OO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function BO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=LO())&&(OO(t,r),BO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NO=function(){var e=jO();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Cw=function(){var e=NO(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},VO={left:0,top:0,right:0,gap:0},yd=function(e){return parseInt(e||"",10)||0},WO=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yd(r),yd(n),yd(o)]},UO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VO;var t=WO(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},HO=Cw(),GO=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
+=======
+ `),()=>{document.head.removeChild(u)}},[t]),S.createElement(kI,{isPresent:t,childRef:n,sizeRef:o},S.cloneElement(e,{ref:n}))}const dd=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=xS(_I),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[r]);return S.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),S.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=S.createElement(CI,{isPresent:r},e)),S.createElement(Wa.Provider,{value:u},e)};function _I(){return new Map}function PI(e){return S.useEffect(()=>()=>e(),[])}const _n=e=>e.key||"";function TI(e,t){e.forEach(r=>{const n=_n(r);t.set(n,r)})}function EI(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const Ya=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=S.useContext(mp).forceRender||wI()[0],l=Px(),u=EI(e);let c=u;const d=S.useRef(new Map).current,f=S.useRef(c),p=S.useRef(new Map).current,g=S.useRef(!0);if(dp(()=>{g.current=!1,TI(u,p),f.current=c}),PI(()=>{g.current=!0,p.clear(),d.clear()}),g.current)return S.createElement(S.Fragment,null,c.map(h=>S.createElement(dd,{key:_n(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},h)));c=[...c];const y=f.current.map(_n),k=u.map(_n),m=y.length;for(let h=0;h{if(k.indexOf(v)!==-1)return;const C=p.get(v);if(!C)return;const _=y.indexOf(v);let $=h;if(!$){const T=()=>{d.delete(v);const A=Array.from(p.keys()).filter(M=>!k.includes(M));if(A.forEach(M=>p.delete(M)),f.current=u.filter(M=>{const I=_n(M);return I===v||A.includes(I)}),!d.size){if(l.current===!1)return;s(),n&&n()}};$=S.createElement(dd,{key:_n(C),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:a},C),d.set(v,$)}c.splice(_,0,$)}),c=c.map(h=>{const v=h.key;return d.has(v)?h:S.createElement(dd,{key:_n(h),isPresent:!0,presenceAffectsLayout:i,mode:a},h)}),S.createElement(S.Fragment,null,d.size?c:c.map(h=>S.cloneElement(h)))};var $I={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]}}},Tx=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=$I,toastSpacing:c="0.5rem"}=e,[d,f]=S.useState(s),p=pD();Cg(()=>{p||n==null||n()},[p]),Cg(()=>{f(s)},[s]);const g=()=>f(null),y=()=>f(s),k=()=>{p&&o()};S.useEffect(()=>{p&&i&&o()},[p,i,o]),h3(k,d);const m=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=S.useMemo(()=>c3(a),[a]);return E.jsx(ii.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:a},style:h,children:E.jsx(_e.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:lr(r,{id:t,onClose:k})})})});Tx.displayName="ToastComponent";function AI(e,t){var r;const n=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=i==null?void 0:i[t])!=null?r:n}var $0={path:E.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E.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"}),E.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"}),E.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Xa=pt((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=Be("chakra-icon",s),d=Nu("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},g=n??$0.viewBox;if(r&&typeof r!="string")return E.jsx(_e.svg,{as:r,...p,...u});const y=a??$0.path;return E.jsx(_e.svg,{verticalAlign:"middle",viewBox:g,...p,...u,children:y})});Xa.displayName="Icon";function RI(e){return E.jsx(Xa,{viewBox:"0 0 24 24",...e,children:E.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 MI(e){return E.jsx(Xa,{viewBox:"0 0 24 24",...e,children:E.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 A0(e){return E.jsx(Xa,{viewBox:"0 0 24 24",...e,children:E.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"})})}var zI=wP({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),zp=pt((e,t)=>{const r=Nu("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Ou(e),u=Be("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${zI} ${i} linear infinite`,...r};return E.jsx(_e.div,{ref:t,__css:c,className:u,...l,children:n&&E.jsx(_e.span,{srOnly:!0,children:n})})});zp.displayName="Spinner";var[FI,Fp]=mn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[DI,Dp]=mn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Ex={info:{icon:MI,colorScheme:"blue"},warning:{icon:A0,colorScheme:"orange"},success:{icon:RI,colorScheme:"green"},error:{icon:A0,colorScheme:"red"},loading:{icon:zp,colorScheme:"blue"}};function II(e){return Ex[e].colorScheme}function LI(e){return Ex[e].icon}var $x=pt(function(t,r){const n=Dp(),{status:o}=Fp(),i={display:"inline",...n.description};return E.jsx(_e.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__desc",t.className),__css:i})});$x.displayName="AlertDescription";function Ax(e){const{status:t}=Fp(),r=LI(t),n=Dp(),o=t==="loading"?n.spinner:n.icon;return E.jsx(_e.span,{display:"inherit","data-status":t,...e,className:Be("chakra-alert__icon",e.className),__css:o,children:e.children||E.jsx(r,{h:"100%",w:"100%"})})}Ax.displayName="AlertIcon";var Rx=pt(function(t,r){const n=Dp(),{status:o}=Fp();return E.jsx(_e.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__title",t.className),__css:n.title})});Rx.displayName="AlertTitle";var Mx=pt(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=Ou(t),s=(n=t.colorScheme)!=null?n:II(o),l=eS("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return E.jsx(FI,{value:{status:o},children:E.jsx(DI,{value:l,children:E.jsx(_e.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:Be("chakra-alert",t.className),__css:u})})})});Mx.displayName="Alert";function OI(e){return E.jsx(Xa,{focusable:"false","aria-hidden":!0,...e,children:E.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"})})}var Ip=pt(function(t,r){const n=Nu("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=Ou(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return E.jsx(_e.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||E.jsx(OI,{width:"1em",height:"1em"})})});Ip.displayName="CloseButton";var BI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ar=jI(BI);function jI(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=NI(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const p=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:p}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=kg(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:zx(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=nS(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!kg(ar.getState(),o).position}}var R0=0;function NI(e,t={}){var r,n;R0+=1;const o=(r=t.id)!=null?r:R0,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ar.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var VI=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return E.jsxs(Mx,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[E.jsx(Ax,{children:u}),E.jsxs(_e.div,{flex:"1",maxWidth:"100%",children:[o&&E.jsx(Rx,{id:c==null?void 0:c.title,children:o}),s&&E.jsx($x,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&E.jsx(Ip,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function zx(e={}){const{render:t,toastComponent:r=VI}=e;return o=>typeof t=="function"?t({...o,...e}):E.jsx(r,{...o,...e})}function zB(e,t){const r=o=>{var i;return{...t,...o,position:AI((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},n=o=>{const i=r(o),a=zx(i);return ar.notify(a,i)};return n.update=(o,i)=>{ar.update(o,r(i))},n.promise=(o,i)=>{const a=n({...i.loading,status:"loading",duration:null});o.then(s=>n.update(a,{status:"success",duration:5e3,...lr(i.success,s)})).catch(s=>n.update(a,{status:"error",duration:5e3,...lr(i.error,s)}))},n.closeAll=ar.closeAll,n.close=ar.close,n.isActive=ar.isActive,n}var[WI,FB]=mn({name:"ToastOptionsContext",strict:!1}),UI=e=>{const t=S.useSyncExternalStore(ar.subscribe,ar.getState,ar.getState),{motionVariants:r,component:n=Tx,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return E.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:d3(s),children:E.jsx(Ya,{initial:!1,children:l.map(u=>E.jsx(n,{motionVariants:r,...u},u.id))})},s)});return E.jsx(Na,{...o,children:a})},HI=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return E.jsxs(l3,{theme:n,...i,children:[E.jsx(WI,{value:o==null?void 0:o.defaultOptions,children:r}),E.jsx(UI,{...o})]})},GI=HI(Kb);function KI(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 Bf(...e){return t=>{e.forEach(r=>{KI(r,t)})}}function YI(...e){return S.useMemo(()=>Bf(...e),e)}var M0={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},On={enter:{duration:.2,ease:M0.easeOut},exit:{duration:.1,ease:M0.easeIn}},Bn={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},XI={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:Bn.enter(On.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:Bn.exit(On.exit,r),transitionEnd:t==null?void 0:t.exit}}},Fx={initial:"exit",animate:"enter",exit:"exit",variants:XI},QI=S.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:i,transition:a,transitionEnd:s,delay:l,...u}=t,c=o||n?"enter":"exit",d=n?o&&n:!0,f={transition:a,transitionEnd:s,delay:l};return E.jsx(Ya,{custom:f,children:d&&E.jsx(ii.div,{ref:r,className:Be("chakra-fade",i),custom:f,...Fx,animate:c,...u})})});QI.displayName="Fade";var qI={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(i=r==null?void 0:r.exit)!=null?i:Bn.exit(On.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:Bn.enter(On.enter,r),transitionEnd:e==null?void 0:e.enter}}},Dx={initial:"exit",animate:"enter",exit:"exit",variants:qI},ZI=S.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:u,delay:c,...d}=t,f=n?o&&n:!0,p=o||n?"enter":"exit",g={initialScale:a,reverse:i,transition:l,transitionEnd:u,delay:c};return E.jsx(Ya,{custom:g,children:f&&E.jsx(ii.div,{ref:r,className:Be("chakra-offset-slide",s),...Dx,animate:p,custom:g,...d})})});ZI.displayName="ScaleFade";var JI={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:(i=r==null?void 0:r.exit)!=null?i:Bn.exit(On.exit,o),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:Bn.enter(On.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:i})=>{var a;const s={x:t,y:e};return{opacity:0,transition:(a=r==null?void 0:r.exit)!=null?a:Bn.exit(On.exit,i),...o?{...s,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...s,...n==null?void 0:n.exit}}}}},Li={initial:"initial",animate:"enter",exit:"exit",variants:JI},eL=S.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:u,transitionEnd:c,delay:d,...f}=t,p=n?o&&n:!0,g=o||n?"enter":"exit",y={offsetX:s,offsetY:l,reverse:i,transition:u,transitionEnd:c,delay:d};return E.jsx(Ya,{custom:y,children:p&&E.jsx(ii.div,{ref:r,className:Be("chakra-offset-slide",a),custom:y,...Li,animate:g,...f})})});eL.displayName="SlideFade";var[DB,tL]=mn({strict:!1,name:"ButtonGroupContext"});function rL(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function jf(e){const{children:t,className:r,...n}=e,o=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Be("chakra-button__icon",r);return E.jsx(_e.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}jf.displayName="ButtonIcon";function Nf(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=E.jsx(zp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=Be("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return E.jsx(_e.div,{className:l,...s,__css:c,children:o})}Nf.displayName="ButtonSpinner";var Ix=pt((e,t)=>{const r=tL(),n=Nu("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:g="start",className:y,as:k,...m}=Ou(e),h=S.useMemo(()=>{const $={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:$}}},[n,r]),{ref:v,type:C}=rL(k),_={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return E.jsxs(_e.button,{ref:YI(t,v),as:k,type:f??C,"data-active":Rv(a),"data-loading":Rv(i),__css:h,className:Be("chakra-button",y),...m,disabled:o||i,children:[i&&g==="start"&&E.jsx(Nf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||E.jsx(_e.span,{opacity:0,children:E.jsx(z0,{..._})}):E.jsx(z0,{..._}),i&&g==="end"&&E.jsx(Nf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Ix.displayName="Button";function z0(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return E.jsxs(E.Fragment,{children:[t&&E.jsx(jf,{marginEnd:o,children:t}),n,r&&E.jsx(jf,{marginStart:o,children:r})]})}function nL(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var Vf="data-focus-lock",Lx="data-focus-lock-disabled",oL="data-no-focus-lock",iL="data-autofocus-inside",aL="data-no-autofocus";function sL(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lL(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function Ox(e,t){return lL(t||null,function(r){return e.forEach(function(n){return sL(n,r)})})}var fd={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},sr=function(){return sr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0}).sort(PL)},TL=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],jp=TL.join(","),EL="".concat(jp,", [data-focus-guard]"),rw=function(e,t){return pr((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?EL:jp)?[n]:[],rw(n))},[])},$L=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Xu([e.contentDocument.body],t):[e]},Xu=function(e,t){return e.reduce(function(r,n){var o,i=rw(n,t),a=(o=[]).concat.apply(o,i.map(function(s){return $L(s,t)}));return r.concat(a,n.parentNode?pr(n.parentNode.querySelectorAll(jp)).filter(function(s){return s===n}):[])},[])},AL=function(e){var t=e.querySelectorAll("[".concat(iL,"]"));return pr(t).map(function(r){return Xu([r])}).reduce(function(r,n){return r.concat(n)},[])},Np=function(e,t){return pr(e).filter(function(r){return Qx(t,r)}).filter(function(r){return kL(r)})},F0=function(e,t){return t===void 0&&(t=new Map),pr(e).filter(function(r){return qx(t,r)})},Uf=function(e,t,r){return tw(Np(Xu(e,r),t),!0,r)},D0=function(e,t){return tw(Np(Xu(e),t),!1)},RL=function(e,t){return Np(AL(e),t)},Bo=function(e,t){return e.shadowRoot?Bo(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:pr(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?Bo(o,t):!1}return Bo(r,t)})},ML=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(a,s){return!t.has(s)})},nw=function(e){return e.parentNode?nw(e.parentNode):e},Vp=function(e){var t=tu(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(Vf);return r.push.apply(r,o?ML(pr(nw(n).querySelectorAll("[".concat(Vf,'="').concat(o,'"]:not([').concat(Lx,'="disabled"])')))):[n]),r},[])},zL=function(e){try{return e()}catch{return}},Ma=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ma(t.shadowRoot):t instanceof HTMLIFrameElement&&zL(function(){return t.contentWindow.document})?Ma(t.contentWindow.document):t}},FL=function(e,t){return e===t},DL=function(e,t){return!!pr(e.querySelectorAll("iframe")).some(function(r){return FL(r,t)})},ow=function(e,t){return t===void 0&&(t=Ma(Kx(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Vp(e).some(function(r){return Bo(r,t)||DL(r,t)})},IL=function(e){e===void 0&&(e=document);var t=Ma(e);return t?pr(e.querySelectorAll("[".concat(oL,"]"))).some(function(r){return Bo(r,t)}):!1},LL=function(e,t){return t.filter(ew).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Wp=function(e,t){return ew(e)&&e.name?LL(e,t):e},OL=function(e){var t=new Set;return e.forEach(function(r){return t.add(Wp(r,e))}),e.filter(function(r){return t.has(r)})},I0=function(e){return e[0]&&e.length>1?Wp(e[0],e):e[0]},L0=function(e,t){return e.length>1?e.indexOf(Wp(e[t],e)):t},iw="NEW_FOCUS",BL=function(e,t,r,n){var o=e.length,i=e[0],a=e[o-1],s=Bp(r);if(!(r&&e.indexOf(r)>=0)){var l=r!==void 0?t.indexOf(r):-1,u=n?t.indexOf(n):l,c=n?e.indexOf(n):-1,d=l-u,f=t.indexOf(i),p=t.indexOf(a),g=OL(t),y=r!==void 0?g.indexOf(r):-1,k=y-(n?g.indexOf(n):l),m=L0(e,0),h=L0(e,o-1);if(l===-1||c===-1)return iw;if(!d&&c>=0)return c;if(l<=f&&s&&Math.abs(d)>1)return h;if(l>=p&&s&&Math.abs(d)>1)return m;if(d&&Math.abs(k)>1)return c;if(l<=f)return h;if(l>p)return m;if(d)return Math.abs(d)>1?c:(o+c+d)%o}},jL=function(e){return function(t){var r,n=(r=Zx(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},NL=function(e,t,r){var n=e.map(function(i){var a=i.node;return a}),o=F0(n.filter(jL(r)));return o&&o.length?I0(o):I0(F0(t))},Hf=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Hf(e.parentNode.host||e.parentNode,t),t},hd=function(e,t){for(var r=Hf(e),n=Hf(t),o=0;o=0)return i}return!1},aw=function(e,t,r){var n=tu(e),o=tu(t),i=n[0],a=!1;return o.filter(Boolean).forEach(function(s){a=hd(a||s,s)||a,r.filter(Boolean).forEach(function(l){var u=hd(i,l);u&&(!a||Bo(u,a)?a=u:a=hd(u,a))})}),a},VL=function(e,t){return e.reduce(function(r,n){return r.concat(RL(n,t))},[])},WL=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(_L)},UL=function(e,t){var r=Ma(tu(e).length>0?document:Kx(e).ownerDocument),n=Vp(e).filter(ru),o=aw(r||e,e,n),i=new Map,a=D0(n,i),s=Uf(n,i).filter(function(p){var g=p.node;return ru(g)});if(!(!s[0]&&(s=a,!s[0]))){var l=D0([o],i).map(function(p){var g=p.node;return g}),u=WL(l,s),c=u.map(function(p){var g=p.node;return g}),d=BL(c,l,r,t);if(d===iw){var f=NL(a,c,VL(n,i));if(f)return{node:f};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},HL=function(e){var t=Vp(e).filter(ru),r=aw(e,e,t),n=new Map,o=Uf([r],n,!0),i=Uf(t,n).filter(function(a){var s=a.node;return ru(s)}).map(function(a){var s=a.node;return s});return o.map(function(a){var s=a.node,l=a.index;return{node:s,index:l,lockItem:i.indexOf(s)>=0,guard:Bp(s)}})},GL=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},pd=0,md=!1,sw=function(e,t,r){r===void 0&&(r={});var n=UL(e,t);if(!md&&n){if(pd>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),md=!0,setTimeout(function(){md=!1},1);return}pd++,GL(n.node,r.focusOptions),pd--}};function Up(e){setTimeout(e,1)}var KL=function(){return document&&document.activeElement===document.body},YL=function(){return KL()||IL()},jo=null,To=null,No=null,za=!1,XL=function(){return!0},QL=function(t){return(jo.whiteList||XL)(t)},qL=function(t,r){No={observerNode:t,portaledElement:r}},ZL=function(t){return No&&No.portaledElement===t};function O0(e,t,r,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=r)!==t);o&&(o.node.tabIndex=0)}var JL=function(t){return t&&"current"in t?t.current:t},eO=function(t){return t?!!za:za==="meanwhile"},tO=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},rO=function(t,r){return r.some(function(n){return tO(t,n,n)})},nu=function(){var t=!1;if(jo){var r=jo,n=r.observed,o=r.persistentFocus,i=r.autoFocus,a=r.shards,s=r.crossFrame,l=r.focusOptions,u=n||No&&No.portaledElement,c=document&&document.activeElement;if(u){var d=[u].concat(a.map(JL).filter(Boolean));if((!c||QL(c))&&(o||eO(s)||!YL()||!To&&i)&&(u&&!(ow(d)||c&&rO(c,d)||ZL(c))&&(document&&!To&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(t=sw(d,To,{focusOptions:l}),No={})),za=!1,To=document&&document.activeElement),document){var f=document&&document.activeElement,p=HL(d),g=p.map(function(y){var k=y.node;return k}).indexOf(f);g>-1&&(p.filter(function(y){var k=y.guard,m=y.node;return k&&m.dataset.focusAutoGuard}).forEach(function(y){var k=y.node;return k.removeAttribute("tabIndex")}),O0(g,p.length,1,p),O0(g,-1,-1,p))}}}return t},lw=function(t){nu()&&t&&(t.stopPropagation(),t.preventDefault())},Hp=function(){return Up(nu)},nO=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||qL(n,r)},oO=function(){return null},uw=function(){za="just",Up(function(){za="meanwhile"})},iO=function(){document.addEventListener("focusin",lw),document.addEventListener("focusout",Hp),window.addEventListener("blur",uw)},aO=function(){document.removeEventListener("focusin",lw),document.removeEventListener("focusout",Hp),window.removeEventListener("blur",uw)};function sO(e){return e.filter(function(t){var r=t.disabled;return!r})}function lO(e){var t=e.slice(-1)[0];t&&!jo&&iO();var r=jo,n=r&&t&&t.id===r.id;jo=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var i=o.id;return i===r.id}).length||r.returnFocus(!t)),t?(To=null,(!n||r.observed!==t.observed)&&t.onActivation(),nu(),Up(nu)):(aO(),To=null)}Ux.assignSyncMedium(nO);Hx.assignMedium(Hp);dL.assignMedium(function(e){return e({moveFocusInside:sw,focusInside:ow})});const uO=yL(sO,lO)(oO);var cw=S.forwardRef(function(t,r){return S.createElement(Gx,Hn({sideCar:uO,ref:r},t))}),dw=Gx.propTypes||{};dw.sideCar;nL(dw,["sideCar"]);cw.propTypes={};const B0=cw;function fw(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function hw(e){var t;if(!fw(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function IB(e){var t,r;return(r=(t=pw(e))==null?void 0:t.defaultView)!=null?r:window}function pw(e){return fw(e)?e.ownerDocument:document}function LB(e){return pw(e).activeElement}var mw=e=>e.hasAttribute("tabindex"),cO=e=>mw(e)&&e.tabIndex===-1;function dO(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function vw(e){return e.parentElement&&vw(e.parentElement)?!0:e.hidden}function fO(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function gw(e){if(!hw(e)||vw(e)||dO(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]():fO(e)?!0:mw(e)}function OB(e){return e?hw(e)&&gw(e)&&!cO(e):!1}var hO=["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]"],pO=hO.join(),mO=e=>e.offsetWidth>0&&e.offsetHeight>0;function vO(e){const t=Array.from(e.querySelectorAll(pO));return t.unshift(e),t.filter(r=>gw(r)&&mO(r))}var j0,gO=(j0=B0.default)!=null?j0:B0,yw=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=S.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&vO(n.current).length===0&&requestAnimationFrame(()=>{var g;(g=n.current)==null||g.focus()})},[t,n]),d=S.useCallback(()=>{var p;(p=r==null?void 0:r.current)==null||p.focus()},[r]),f=o&&!r;return E.jsx(gO,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:a,onActivation:c,onDeactivation:d,returnFocus:f,children:i})};yw.displayName="FocusLock";var yO={slideInBottom:{...Li,custom:{offsetY:16,reverse:!0}},slideInRight:{...Li,custom:{offsetX:16,reverse:!0}},slideInTop:{...Li,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Li,custom:{offsetX:-16,reverse:!0}},scale:{...Dx,custom:{initialScale:.95,reverse:!0}},none:{}},bO=_e(ii.section),SO=e=>yO[e||"none"],bw=S.forwardRef((e,t)=>{const{preset:r,motionProps:n=SO(r),...o}=e;return E.jsx(bO,{ref:t,...n,...o})});bw.displayName="ModalTransition";var xO=Object.defineProperty,wO=(e,t,r)=>t in e?xO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kO=(e,t,r)=>(wO(e,typeof t!="symbol"?t+"":t,r),r),CO=class{constructor(){kO(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Gf=new CO;function Sw(e,t){const[r,n]=S.useState(0);return S.useEffect(()=>{const o=e.current;if(o){if(t){const i=Gf.add(o);n(i)}return()=>{Gf.remove(o),n(0)}}},[t,e]),r}var _O=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,Is=new WeakMap,Ls={},vd=0,xw=function(e){return e&&(e.host||xw(e.parentNode))},PO=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},TO=function(e,t,r,n){var o=PO(t,Array.isArray(e)?e:[e]);Ls[r]||(Ls[r]=new WeakMap);var i=Ls[r],a=[],s=new Set,l=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else{var p=f.getAttribute(n),g=p!==null&&p!=="false",y=(to.get(f)||0)+1,k=(i.get(f)||0)+1;to.set(f,y),i.set(f,k),a.push(f),y===1&&g&&Is.set(f,!0),k===1&&f.setAttribute(r,"true"),g||f.setAttribute(n,"true")}})};return c(t),s.clear(),vd++,function(){a.forEach(function(d){var f=to.get(d)-1,p=i.get(d)-1;to.set(d,f),i.set(d,p),f||(Is.has(d)||d.removeAttribute(n),Is.delete(d)),p||d.removeAttribute(r)}),vd--,vd||(to=new WeakMap,to=new WeakMap,Is=new WeakMap,Ls={})}},EO=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||_O(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),TO(n,o,r,"aria-hidden")):function(){return null}};function $O(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=S.useRef(null),c=S.useRef(null),[d,f,p]=RO(n,"chakra-modal","chakra-modal--header","chakra-modal--body");AO(u,t&&a);const g=Sw(u,t),y=S.useRef(null),k=S.useCallback(M=>{y.current=M.target},[]),m=S.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),i&&(r==null||r()),l==null||l())},[i,r,l]),[h,v]=S.useState(!1),[C,_]=S.useState(!1),$=S.useCallback((M={},I=null)=>({role:"dialog",...M,ref:Bf(I,u),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":h?f:void 0,"aria-describedby":C?p:void 0,onClick:$i(M.onClick,ee=>ee.stopPropagation())}),[p,C,d,f,h]),T=S.useCallback(M=>{M.stopPropagation(),y.current===M.target&&Gf.isTopModal(u.current)&&(o&&(r==null||r()),s==null||s())},[r,o,s]),A=S.useCallback((M={},I=null)=>({...M,ref:Bf(I,c),onClick:$i(M.onClick,T),onKeyDown:$i(M.onKeyDown,m),onMouseDown:$i(M.onMouseDown,k)}),[m,k,T]);return{isOpen:t,onClose:r,headerId:f,bodyId:p,setBodyMounted:_,setHeaderMounted:v,dialogRef:u,overlayRef:c,getDialogProps:$,getDialogContainerProps:A,index:g}}function AO(e,t){const r=e.current;S.useEffect(()=>{if(!(!e.current||!t))return EO(e.current)},[t,e,r])}function RO(e,...t){const r=S.useId(),n=e||r;return S.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}var[MO,ai]=mn({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[zO,Gn]=mn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),ww=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:g}=t,y=eS("Modal",t),m={...$O(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return E.jsx(zO,{value:m,children:E.jsx(MO,{value:y,children:E.jsx(Ya,{onExitComplete:g,children:m.isOpen&&E.jsx(Na,{...r,children:n})})})})};ww.displayName="Modal";var hl="right-scroll-bar-position",pl="width-before-scroll-bar",FO="with-scroll-bars-hidden",DO="--removed-body-scroll-bar-size",kw=Vx(),gd=function(){},Qu=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:gd,onWheelCapture:gd,onTouchMoveCapture:gd}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,g=e.inert,y=e.allowPinchZoom,k=e.as,m=k===void 0?"div":k,h=e.gapMode,v=Bx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,_=Ox([r,t]),$=sr(sr({},v),o);return S.createElement(S.Fragment,null,c&&S.createElement(C,{sideCar:kw,removeScrollBar:u,shards:d,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:h}),a?S.cloneElement(S.Children.only(s),sr(sr({},$),{ref:_})):S.createElement(m,sr({},$,{className:l,ref:_}),s))});Qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qu.classNames={fullWidth:pl,zeroRight:hl};var N0,IO=function(){if(N0)return N0;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function LO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IO();return t&&e.setAttribute("nonce",t),e}function OO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function BO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=LO())&&(OO(t,r),BO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NO=function(){var e=jO();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Cw=function(){var e=NO(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},VO={left:0,top:0,right:0,gap:0},yd=function(e){return parseInt(e||"",10)||0},WO=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yd(r),yd(n),yd(o)]},UO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VO;var t=WO(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},HO=Cw(),GO=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
+>>>>>>> f551431 (build dist)
.`.concat(FO,` {
overflow: hidden `).concat(n,`;
padding-right: `).concat(s,"px ").concat(n,`;
@@ -384,10 +398,17 @@ Error generating stack: `+i.message+`
body {
`).concat(DO,": ").concat(s,`px;
}
+<<<<<<< HEAD
`)},KO=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=S.useMemo(function(){return UO(o)},[o]);return S.createElement(HO,{styles:GO(i,!t,o,r?"":"!important")})},Kf=!1;if(typeof window<"u")try{var Os=Object.defineProperty({},"passive",{get:function(){return Kf=!0,!0}});window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Kf=!1}var ro=Kf?{passive:!1}:!1,YO=function(e){return e.tagName==="TEXTAREA"},_w=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!YO(e)&&r[t]==="visible")},XO=function(e){return _w(e,"overflowY")},QO=function(e){return _w(e,"overflowX")},V0=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Pw(e,n);if(o){var i=Tw(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},qO=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ZO=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Pw=function(e,t){return e==="v"?XO(t):QO(t)},Tw=function(e,t){return e==="v"?qO(t):ZO(t)},JO=function(e,t){return e==="h"&&t==="rtl"?-1:1},eB=function(e,t,r,n,o){var i=JO(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=Tw(e,s),v=p[0],y=p[1],x=p[2],m=y-x-i*v;(v||m)&&Pw(e,s)&&(d+=m,f+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&Math.abs(d)<1||!o&&a>d)||!c&&(o&&Math.abs(f)<1||!o&&-a>f))&&(u=!0),u},Bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W0=function(e){return[e.deltaX,e.deltaY]},U0=function(e){return e&&"current"in e?e.current:e},tB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rB=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},nB=0,no=[];function oB(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),o=S.useState(nB++)[0],i=S.useState(Cw)[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=uL([e.lockRef.current],(e.shards||[]).map(U0),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(y,x){if("touches"in y&&y.touches.length===2)return!a.current.allowPinchZoom;var m=Bs(y),h=r.current,g="deltaX"in y?y.deltaX:h[0]-m[0],C="deltaY"in y?y.deltaY:h[1]-m[1],_,$=y.target,T=Math.abs(g)>Math.abs(C)?"h":"v";if("touches"in y&&T==="h"&&$.type==="range")return!1;var A=V0(T,$);if(!A)return!0;if(A?_=T:(_=T==="v"?"h":"v",A=V0(T,$)),!A)return!1;if(!n.current&&"changedTouches"in y&&(g||C)&&(n.current=_),!_)return!0;var M=n.current||_;return eB(M,x,y,M==="h"?g:C,!0)},[]),l=S.useCallback(function(y){var x=y;if(!(!no.length||no[no.length-1]!==i)){var m="deltaY"in x?W0(x):Bs(x),h=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&tB(_.delta,m)})[0];if(h&&h.should){x.cancelable&&x.preventDefault();return}if(!h){var g=(a.current.shards||[]).map(U0).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=g.length>0?s(x,g[0]):!a.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=S.useCallback(function(y,x,m,h){var g={name:y,delta:x,target:m,should:h,shadowParent:iB(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(C){return C!==g})},1)},[]),c=S.useCallback(function(y){r.current=Bs(y),n.current=void 0},[]),d=S.useCallback(function(y){u(y.type,W0(y),y.target,s(y,e.lockRef.current))},[]),f=S.useCallback(function(y){u(y.type,Bs(y),y.target,s(y,e.lockRef.current))},[]);S.useEffect(function(){return no.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ro),document.addEventListener("touchmove",l,ro),document.addEventListener("touchstart",c,ro),function(){no=no.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,ro),document.removeEventListener("touchmove",l,ro),document.removeEventListener("touchstart",c,ro)}},[]);var p=e.removeScrollBar,v=e.inert;return S.createElement(S.Fragment,null,v?S.createElement(i,{styles:rB(o)}):null,p?S.createElement(KO,{gapMode:e.gapMode}):null)}function iB(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aB=cL(kw,oB);var Ew=S.forwardRef(function(e,t){return S.createElement(Qu,sr({},e,{ref:t,sideCar:aB}))});Ew.classNames=Qu.classNames;const sB=Ew;function lB(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=Gn(),[f,p]=hx();S.useEffect(()=>{!f&&p&&setTimeout(p)},[f,p]);const v=Sw(n,d);return E.jsx(yw,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:c,children:E.jsx(sB,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&i,forwardProps:!0,children:e.children})})}var $w=pt((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Gn(),u=s(a,t),c=l(o),d=Be("chakra-modal__content",r),f=ai(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:y}=Gn();return E.jsx(lB,{children:E.jsx(_e.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:E.jsx(bw,{preset:y,motionProps:i,className:d,...u,__css:p,children:n})})})});$w.displayName="ModalContent";function uB(e){const{leastDestructiveRef:t,...r}=e;return E.jsx(ww,{...r,initialFocusRef:t})}var cB=pt((e,t)=>E.jsx($w,{ref:t,role:"alertdialog",...e})),Aw=pt((e,t)=>{const{className:r,...n}=e,o=Be("chakra-modal__footer",r),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...ai().footer};return E.jsx(_e.footer,{ref:t,...n,__css:a,className:o})});Aw.displayName="ModalFooter";var Rw=pt((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:i}=Gn();S.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=Be("chakra-modal__header",r),l={flex:0,...ai().header};return E.jsx(_e.header,{ref:t,className:a,id:o,...n,__css:l})});Rw.displayName="ModalHeader";var dB=_e(ii.div),Mw=pt((e,t)=>{const{className:r,transition:n,motionProps:o,...i}=e,a=Be("chakra-modal__overlay",r),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ai().overlay},{motionPreset:u}=Gn(),d=o||(u==="none"?{}:Fx);return E.jsx(dB,{...d,__css:l,ref:t,className:a,...i})});Mw.displayName="ModalOverlay";var zw=pt((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:i}=Gn();S.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=Be("chakra-modal__body",r),s=ai();return E.jsx(_e.div,{ref:t,className:a,id:o,...n,__css:s.body})});zw.displayName="ModalBody";var Fw=pt((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:i}=Gn(),a=Be("chakra-modal__close-btn",n),s=ai();return E.jsx(Ip,{ref:t,__css:s.closeButton,className:a,onClick:$i(r,l=>{l.stopPropagation(),i()}),...o})});Fw.displayName="ModalCloseButton";const Dw=S.createContext(void 0),BB=()=>{const e=S.useContext(Dw);if(!e)throw new Error("useDialog must be used within a DialogProvider");return e},fB=({children:e})=>{const[t,r]=S.useState(!1),[n,o]=S.useState(""),[i,a]=S.useState([]),[s,l]=S.useState(!1),[u,c]=S.useState(!0),d=Ar.useRef(null),f=S.useCallback((v,y,x)=>{o(v),a(y??[]),r(!0),l((x==null?void 0:x.hideCloseIcon)??!1),c((x==null?void 0:x.closeOnOverlayClick)??!0)},[]),p=S.useCallback(()=>{r(!1)},[]);return E.jsxs(Dw.Provider,{value:{showDialog:f},children:[e,t&&E.jsx(uB,{isOpen:t,leastDestructiveRef:d,onClose:p,size:"xl",closeOnOverlayClick:u,children:E.jsx(Pb,{children:E.jsx(Mw,{children:E.jsxs(cB,{className:"workspace_manager",children:[E.jsx(Rw,{fontSize:"lg",fontWeight:"bold"}),s?null:E.jsx(Fw,{}),E.jsx(zw,{whiteSpace:"pre-wrap",children:n}),E.jsx(Aw,{children:i.map((v,y)=>v&&E.jsx(Ix,{colorScheme:v.colorScheme??"gray",onClick:()=>{v.onClick(),p()},iconSpacing:1,leftIcon:v.icon,ml:3,children:v.label},y))})]})})})})]})},Iw=String.raw,hB=Iw`
+=======
+`)},KO=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=S.useMemo(function(){return UO(o)},[o]);return S.createElement(HO,{styles:GO(i,!t,o,r?"":"!important")})},Kf=!1;if(typeof window<"u")try{var Os=Object.defineProperty({},"passive",{get:function(){return Kf=!0,!0}});window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Kf=!1}var ro=Kf?{passive:!1}:!1,YO=function(e){return e.tagName==="TEXTAREA"},_w=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!YO(e)&&r[t]==="visible")},XO=function(e){return _w(e,"overflowY")},QO=function(e){return _w(e,"overflowX")},V0=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Pw(e,n);if(o){var i=Tw(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},qO=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ZO=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Pw=function(e,t){return e==="v"?XO(t):QO(t)},Tw=function(e,t){return e==="v"?qO(t):ZO(t)},JO=function(e,t){return e==="h"&&t==="rtl"?-1:1},eB=function(e,t,r,n,o){var i=JO(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=Tw(e,s),g=p[0],y=p[1],k=p[2],m=y-k-i*g;(g||m)&&Pw(e,s)&&(d+=m,f+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&Math.abs(d)<1||!o&&a>d)||!c&&(o&&Math.abs(f)<1||!o&&-a>f))&&(u=!0),u},Bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W0=function(e){return[e.deltaX,e.deltaY]},U0=function(e){return e&&"current"in e?e.current:e},tB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rB=function(e){return`
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
+`)},nB=0,no=[];function oB(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),o=S.useState(nB++)[0],i=S.useState(Cw)[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=uL([e.lockRef.current],(e.shards||[]).map(U0),!0).filter(Boolean);return y.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(y,k){if("touches"in y&&y.touches.length===2)return!a.current.allowPinchZoom;var m=Bs(y),h=r.current,v="deltaX"in y?y.deltaX:h[0]-m[0],C="deltaY"in y?y.deltaY:h[1]-m[1],_,$=y.target,T=Math.abs(v)>Math.abs(C)?"h":"v";if("touches"in y&&T==="h"&&$.type==="range")return!1;var A=V0(T,$);if(!A)return!0;if(A?_=T:(_=T==="v"?"h":"v",A=V0(T,$)),!A)return!1;if(!n.current&&"changedTouches"in y&&(v||C)&&(n.current=_),!_)return!0;var M=n.current||_;return eB(M,k,y,M==="h"?v:C,!0)},[]),l=S.useCallback(function(y){var k=y;if(!(!no.length||no[no.length-1]!==i)){var m="deltaY"in k?W0(k):Bs(k),h=t.current.filter(function(_){return _.name===k.type&&(_.target===k.target||k.target===_.shadowParent)&&tB(_.delta,m)})[0];if(h&&h.should){k.cancelable&&k.preventDefault();return}if(!h){var v=(a.current.shards||[]).map(U0).filter(Boolean).filter(function(_){return _.contains(k.target)}),C=v.length>0?s(k,v[0]):!a.current.noIsolation;C&&k.cancelable&&k.preventDefault()}}},[]),u=S.useCallback(function(y,k,m,h){var v={name:y,delta:k,target:m,should:h,shadowParent:iB(m)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(C){return C!==v})},1)},[]),c=S.useCallback(function(y){r.current=Bs(y),n.current=void 0},[]),d=S.useCallback(function(y){u(y.type,W0(y),y.target,s(y,e.lockRef.current))},[]),f=S.useCallback(function(y){u(y.type,Bs(y),y.target,s(y,e.lockRef.current))},[]);S.useEffect(function(){return no.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ro),document.addEventListener("touchmove",l,ro),document.addEventListener("touchstart",c,ro),function(){no=no.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,ro),document.removeEventListener("touchmove",l,ro),document.removeEventListener("touchstart",c,ro)}},[]);var p=e.removeScrollBar,g=e.inert;return S.createElement(S.Fragment,null,g?S.createElement(i,{styles:rB(o)}):null,p?S.createElement(KO,{gapMode:e.gapMode}):null)}function iB(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aB=cL(kw,oB);var Ew=S.forwardRef(function(e,t){return S.createElement(Qu,sr({},e,{ref:t,sideCar:aB}))});Ew.classNames=Qu.classNames;const sB=Ew;function lB(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=Gn(),[f,p]=hx();S.useEffect(()=>{!f&&p&&setTimeout(p)},[f,p]);const g=Sw(n,d);return E.jsx(yw,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:c,children:E.jsx(sB,{removeScrollBar:!u,allowPinchZoom:a,enabled:g===1&&i,forwardProps:!0,children:e.children})})}var $w=pt((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Gn(),u=s(a,t),c=l(o),d=Be("chakra-modal__content",r),f=ai(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:y}=Gn();return E.jsx(lB,{children:E.jsx(_e.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:E.jsx(bw,{preset:y,motionProps:i,className:d,...u,__css:p,children:n})})})});$w.displayName="ModalContent";function uB(e){const{leastDestructiveRef:t,...r}=e;return E.jsx(ww,{...r,initialFocusRef:t})}var cB=pt((e,t)=>E.jsx($w,{ref:t,role:"alertdialog",...e})),Aw=pt((e,t)=>{const{className:r,...n}=e,o=Be("chakra-modal__footer",r),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...ai().footer};return E.jsx(_e.footer,{ref:t,...n,__css:a,className:o})});Aw.displayName="ModalFooter";var Rw=pt((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:i}=Gn();S.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=Be("chakra-modal__header",r),l={flex:0,...ai().header};return E.jsx(_e.header,{ref:t,className:a,id:o,...n,__css:l})});Rw.displayName="ModalHeader";var dB=_e(ii.div),Mw=pt((e,t)=>{const{className:r,transition:n,motionProps:o,...i}=e,a=Be("chakra-modal__overlay",r),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ai().overlay},{motionPreset:u}=Gn(),d=o||(u==="none"?{}:Fx);return E.jsx(dB,{...d,__css:l,ref:t,className:a,...i})});Mw.displayName="ModalOverlay";var zw=pt((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:i}=Gn();S.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=Be("chakra-modal__body",r),s=ai();return E.jsx(_e.div,{ref:t,className:a,id:o,...n,__css:s.body})});zw.displayName="ModalBody";var Fw=pt((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:i}=Gn(),a=Be("chakra-modal__close-btn",n),s=ai();return E.jsx(Ip,{ref:t,__css:s.closeButton,className:a,onClick:$i(r,l=>{l.stopPropagation(),i()}),...o})});Fw.displayName="ModalCloseButton";const Dw=S.createContext(void 0),BB=()=>{const e=S.useContext(Dw);if(!e)throw new Error("useDialog must be used within a DialogProvider");return e},fB=({children:e})=>{const[t,r]=S.useState(!1),[n,o]=S.useState(""),[i,a]=S.useState([]),[s,l]=S.useState(!1),u=Ar.useRef(null),c=S.useCallback((f,p,g=!1)=>{o(f),a(p??[]),r(!0),l(g)},[]),d=S.useCallback(()=>{r(!1)},[]);return E.jsxs(Dw.Provider,{value:{showDialog:c},children:[e,t&&E.jsx(uB,{isOpen:t,leastDestructiveRef:u,onClose:d,size:"xl",children:E.jsx(Pb,{children:E.jsx(Mw,{children:E.jsxs(cB,{className:"workspace_manager",children:[E.jsx(Rw,{fontSize:"lg",fontWeight:"bold"}),s?null:E.jsx(Fw,{}),E.jsx(zw,{whiteSpace:"pre-wrap",children:n}),E.jsx(Aw,{children:i.map((f,p)=>f&&E.jsx(Ix,{colorScheme:f.colorScheme??"gray",onClick:()=>{f.onClick(),d()},iconSpacing:1,leftIcon:f.icon,ml:3,children:f.label},p))})]})})})})]})},Iw=String.raw,hB=Iw`
+>>>>>>> f551431 (build dist)
:root,
:host {
--chakra-vh: 100vh;
@@ -679,10 +700,17 @@ Error generating stack: `+i.message+`
}
${hB}
+<<<<<<< HEAD
`}),Lw=document.createElement("div");document.body.append(Lw);const mB=Ar.lazy(()=>Jk(()=>import("./App-cZxcRZX7.js").then(e=>e.aJ),__vite__mapDeps([0,1])).then(({default:e})=>({default:e}))),vB={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e7,sticky:11e6,banner:12e6,overlay:13e6,modal:14e6,popover:15e6,skipLink:16e6,toast:17e6,tooltip:18e6},gB=zz({zIndices:vB});bd.createRoot(Lw).render(E.jsx(Ar.StrictMode,{children:E.jsxs(GI,{resetCSS:!1,disableGlobalStyle:!0,theme:gB,children:[E.jsx(pB,{scope:".workspace_manager"}),E.jsx(NP,{initialColorMode:"dark"}),E.jsx(fB,{children:E.jsx(S.Suspense,{children:E.jsx(mB,{})})})]})}));const Yf=document.body,yB={attributes:!0,attributeFilter:["class"]},bB=function(e,t){const r=document.documentElement;r.style.colorScheme==="dark"&&r.style.removeProperty("color-scheme");for(const n of e)if(n.type==="attributes"&&n.attributeName==="class")for(const o of Yf.classList)o.includes("chakra")&&Yf.classList.remove(o)},SB=new MutationObserver(bB);SB.observe(Yf,yB);export{gL as $,LB as A,DB as B,OB as C,IB as D,zP as E,lr as F,ii as G,PB as H,Xa as I,Ip as J,EB as K,Ya as L,ww as M,Mw as N,$w as O,Na as P,Rw as Q,Fw as R,zw as S,Aw as T,Pb as U,BB as V,is as W,Ar as X,RB as Y,Du as Z,Jk as _,FB as a,nL as a0,vL as a1,Wf as a2,Ra as a3,wP as a4,xB as a5,Hn as a6,Uh as a7,xP as a8,zp as a9,wB as aa,CB as ab,Bn as ac,M0 as ad,kB as ae,uB as af,cB as ag,TB as ah,mn as b,zB as c,f3 as d,Be as e,pt as f,_e as g,Ix as h,AB as i,E as j,eS as k,Rv as l,Bf as m,Nu as n,Ou as o,_B as p,$i as q,S as r,Xf as s,hw as t,VP as u,$B as v,Kt as w,Cg as x,ka as y,vO as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["workspace_web/App-cZxcRZX7.js","workspace_web/assets/App-JXePnJiV.css"]
+=======
+ `}),Lw=document.createElement("div");document.body.append(Lw);const mB=Ar.lazy(()=>Jk(()=>import("./App-5Q89H_Oo.js").then(e=>e.aJ),__vite__mapDeps([0,1])).then(({default:e})=>({default:e}))),vB={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e7,sticky:11e6,banner:12e6,overlay:13e6,modal:14e6,popover:15e6,skipLink:16e6,toast:17e6,tooltip:18e6},gB=zz({zIndices:vB});bd.createRoot(Lw).render(E.jsx(Ar.StrictMode,{children:E.jsxs(GI,{resetCSS:!1,disableGlobalStyle:!0,theme:gB,children:[E.jsx(pB,{scope:".workspace_manager"}),E.jsx(NP,{initialColorMode:"dark"}),E.jsx(fB,{children:E.jsx(S.Suspense,{children:E.jsx(mB,{})})})]})}));const Yf=document.body,yB={attributes:!0,attributeFilter:["class"]},bB=function(e,t){const r=document.documentElement;r.style.colorScheme==="dark"&&r.style.removeProperty("color-scheme");for(const n of e)if(n.type==="attributes"&&n.attributeName==="class")for(const o of Yf.classList)o.includes("chakra")&&Yf.classList.remove(o)},SB=new MutationObserver(bB);SB.observe(Yf,yB);export{gL as $,LB as A,DB as B,OB as C,IB as D,zP as E,lr as F,ii as G,PB as H,Xa as I,Ip as J,EB as K,Ya as L,ww as M,Mw as N,$w as O,Na as P,Rw as Q,Fw as R,zw as S,Aw as T,Pb as U,BB as V,is as W,Ar as X,RB as Y,Du as Z,Jk as _,FB as a,nL as a0,vL as a1,Wf as a2,Ra as a3,wP as a4,xB as a5,Hn as a6,Uh as a7,xP as a8,zp as a9,wB as aa,CB as ab,Bn as ac,M0 as ad,kB as ae,uB as af,cB as ag,TB as ah,mn as b,zB as c,f3 as d,Be as e,pt as f,_e as g,Ix as h,AB as i,E as j,eS as k,Rv as l,Bf as m,Nu as n,Ou as o,_B as p,$i as q,S as r,Xf as s,hw as t,VP as u,$B as v,Kt as w,Cg as x,ka as y,vO as z};
+function __vite__mapDeps(indexes) {
+ if (!__vite__mapDeps.viteFileDeps) {
+ __vite__mapDeps.viteFileDeps = ["workspace_web/App-5Q89H_Oo.js","workspace_web/assets/App-JXePnJiV.css"]
+>>>>>>> f551431 (build dist)
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
\ No newline at end of file