diff --git a/dist/assets/index.css b/dist/assets/index.css index 84dc602..a98c4b2 100644 --- a/dist/assets/index.css +++ b/dist/assets/index.css @@ -1 +1 @@ -body.chakra-ui-dark,.chakra-ui-dark *:not([data-focus]){--chakra-colors-chakra-body-bg: #121212 !important;--menu-bg: #121212 !important}.chakra-ui-dark *[data-focus]{--menu-bg: #232323 !important}.chakra-portal>div[role=region]{margin-top:40px!important}.titanHead{-webkit-app-region:drag}.titanHead *:not(div){-webkit-app-region:no-drag}.titanBody{-webkit-app-region:no-drag}.branch-table-header-cell,.branch-table-body-cell{padding-left:5px!important;padding-right:5px!important}.chakra-react-select__menu{z-index:99!important}.animation-pulse{animation:pulse 1.5s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.animation-fadein-forward{animation:fadeinforward .5s}@keyframes fadeinforward{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:none}}.animation-fadein-left-forward{animation:fadeinleftforward .5s}@keyframes fadeinleftforward{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:none}}.animation-fadein-right-forward{animation:fadeinrightforward .5s}@keyframes fadeinrightforward{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:none}}.animation-handwave{animation:handwave 10s infinite}@keyframes handwave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(15deg)}40%,80%{transform:rotate(-15deg)}}.ag-cell-focus,.ag-cell-no-focus{border:none!important}.large{--ag-grid-size: 10px;--ag-list-item-height: 40px;--ag-font-size: 32px}.compact{--ag-grid-size: 4px;--ag-list-item-height: 20px;--ag-font-size: 16px} +body.chakra-ui-dark,.chakra-ui-dark *:not([data-focus]){--chakra-colors-chakra-body-bg: #121212 !important;--menu-bg: #121212 !important}.chakra-ui-dark *[data-focus]{--menu-bg: #232323 !important}.chakra-portal>div[role=region]{margin-top:40px!important}.titanHead{-webkit-app-region:drag}.titanHead *:not(div){-webkit-app-region:no-drag}.titanBody{-webkit-app-region:no-drag}.branch-table-header-cell,.branch-table-body-cell{padding-left:5px!important;padding-right:5px!important}.chakra-react-select__menu{z-index:99!important}.animation-pulse{animation:pulse 1.5s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.animation-fadein-forward{animation:fadeinforward .5s}@keyframes fadeinforward{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:none}}.animation-fadein-left-forward{animation:fadeinleftforward .5s}@keyframes fadeinleftforward{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:none}}.animation-fadein-right-forward{animation:fadeinrightforward .5s}@keyframes fadeinrightforward{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:none}}.animation-handwave{animation:handwave 10s infinite}@keyframes handwave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(15deg)}40%,80%{transform:rotate(-15deg)}}.ag-cell-focus,.ag-cell-no-focus{border:none!important}.large{--ag-grid-size: 10px;--ag-list-item-height: 40px;--ag-font-size: 32px}.compact *:not(.ag-header-cell-text){--ag-grid-size: 4px;--ag-list-item-height: 20px;--ag-font-size: 16px}.compact .ag-header-cell-text{--ag-font-size: 14px !important} diff --git a/dist/assets/index.js b/dist/assets/index.js index ad854ae..b90f05e 100644 --- a/dist/assets/index.js +++ b/dist/assets/index.js @@ -1,3 +1,3 @@ -import{r as t,u as ds,l as us,R as Me,j as e,d as $e,W as Ae,e as Ee,L as qe,I as hs,H as Z,T as D,f as H,g as K,M as fs,h as ms,i as gs,k as xs,m as bs,n as ps,A as _e,o as pe,p as Ge,q as Ce,s as we,t as ye,B as E,D as Cs,C as Fe,F as M,v as Be,w as ws,x as js,y as Qe,z as Ss,E as ys,G as Ye,J as Bs,S as ks,V as Ds,K as Pe,N as vs,O as Ke,P as Je,Q as Fs,U as Is,X as Rs,Y as Ts,Z as Ns,_ as Oe,$ as b,a0 as Ms,a1 as As,a2 as ke,a3 as P,a4 as Ie,a5 as ae,a6 as oe,a7 as re,a8 as te,a9 as Ls,aa as Xe,ab as X,ac as Vs,ad as Es,ae as Ps,af as ze,ag as je,ah as Os,ai as Se,aj as ie,ak as Re,al as Te,am as zs,an as Us,ao as Ze,ap as Ws,aq as Hs,ar as $s,as as qs,at as es,au as ss,av as xe,aw as ts,ax as be,ay as _s,az as Ne,aA as Gs,aB as Qs,aC as Ys,aD as Ks,aE as Js,aF as Xs,aG as Zs,aH as et,aI as st,aJ as tt,aK as nt,aL as lt,aM as at}from"./vendor.js";import{_ as G}from"./lodash.js";import{A as de}from"./ag-grid-react.js";import"./ag-grid-community.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();const ot="/assets/Titan.png";function ce(s=[]){return(Array.isArray(s)?s:[s]).map(o=>(delete o["Branch Info"],o))}function De(s,a,o){return`${s==""?"Uncategorised":s} ${a==""?"Unversioned":a} ${String(o).split("\\").at(-1)}`}function rt(s){return String(s).split("\\").at(-1)}const it="http://localhost:4000",ct="40px";function ge(s,a="info",o=3e3,n=!1){return{position:"top",variant:"solid",title:n?"Server Notification":"Client Notification",description:s,status:a,duration:o,isClosable:!0}}const ns=t.createContext({socket:null,toast:null,config:null,updateConfig:s=>{},isDebug:!1,setIsDebug:s=>{},configurableRowData:[],setConfigurableRowData:s=>{},branchInfos:{},setBranchInfos:s=>{},branchTableGridRef:null,selectedBranches:[],setSelectedBranches:s=>{},showSelectedBranchesLog:!1,setShowSelectedBranchesLog:s=>{},isCommitMode:!1,setIsCommitMode:s=>{},selectedBranchStatuses:[],setSelectedBranchStatuses:s=>{},localChangesGridRef:null,untrackedChangesGridRef:null,showCommitView:!1,setShowCommitView:s=>{},sourceBranch:null,setSourceBranch:s=>{},branchOptions:[],issueNumber:{},setIssueNumber:s=>{},commitMessage:"",setCommitMessage:s=>{},selectedLocalChanges:[],setSelectedLocalChanges:s=>{},selectedUntrackedChanges:[],setSelectedUntrackedChanges:s=>{},socketPayload:null,setSocketPayload:s=>{},postCommitData:{},setPostCommitData:s=>{},logData:[],setLogData:s=>{}}),V=()=>t.useContext(ns),dt=({children:s})=>{const[a,o]=t.useState(null),[n,r]=t.useState(null),i=ds(),[l,c]=t.useState(()=>localStorage.getItem("isDebug")==="true");t.useEffect(()=>{const w=us(it);return r(w),w.on("connect",()=>{w.emit("titan-config-get","fetch"),w.once("titan-config-get",A=>{o(A),A||i(ge("Couldn't load data from the server","error",0))})}),w.on("notification",A=>{i(ge(A.description,A.status,A.duration,!0))}),w.on("disconnect",()=>{i(ge("Server Has Been Disconnected","warning",0,!0))}),w.on("reconnect",()=>{i(ge("Server Has Been Reconnected","success",2e3,!0))}),()=>{w.disconnect()}},[]),t.useEffect(()=>{localStorage.setItem("isDebug",String(l))},[l]);const u=t.useCallback(w=>{w!=null&&(console.debug("Saving config:",w),n==null||n.emit("titan-config-set",w))},[n]),d=t.useCallback(w=>{o(A=>{const N=w(A);return G.isEqual(A,N)?A:(u(N),N)})},[o,u]),[f,p]=t.useState([]),[C,F]=t.useState({}),k=t.useRef(null),[g,m]=t.useState([]),[j,B]=t.useState(!1),[x,S]=t.useState(!1),[v,O]=t.useState([]),$=t.useRef(null),L=t.useRef(null),[T,U]=t.useState(!1),[q,I]=t.useState(null),z=t.useMemo(()=>{let w=a&&a.commitOptions&&a.commitOptions.useFolderOnlySource,A=f.filter(N=>N["Branch Folder"]&&N["Branch Version"]&&N["SVN Branch"]&&N["Branch Folder"]!==""&&N["Branch Version"]!==""&&N["SVN Branch"]!=="");return w&&(A=A.reduce((N,me)=>(N.some(ve=>ve["Branch Folder"]===me["Branch Folder"])||N.push(me),N),[])),A.map(N=>({value:N.id,label:w?N["Branch Folder"]:De(N["Branch Folder"],N["Branch Version"],N["SVN Branch"])}))},[a,g,f]),[W,Y]=t.useState({}),[J,ee]=t.useState(""),[se,he]=t.useState([]),[y,h]=t.useState([]),[R,Q]=t.useState(null),[fe,Ve]=t.useState({}),[le,_]=Me.useState([]);return t.useEffect(()=>{O([]),U(!1)},[f]),t.useEffect(()=>{if(!x||!T)return;const w=setTimeout(()=>{var A;(A=document.getElementById("sectionCommit"))==null||A.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},100);return()=>clearTimeout(w)},[x,T]),t.useEffect(()=>{if(g.length<1||T){g.length<1&&S(!1);return}O([]),Q(null),ce(g).forEach(w=>{console.debug("Emitting svn-status-single for branch:",w),n==null||n.emit("svn-status-single",{selectedBranch:w})})},[n,g,T]),t.useEffect(()=>{const w=()=>{U(!1)};return n==null||n.on("branch-refresh-unseen",w),()=>n==null?void 0:n.off("branch-refresh-unseen",w)},[n]),t.useEffect(()=>{const w=A=>{l&&console.debug("Received branch status data:",A),O(N=>[...N,A])};return n==null||n.on("branch-status-single",w),()=>n==null?void 0:n.off("branch-status-single",w)},[n]),t.useEffect(()=>{_([])},[g]),t.useEffect(()=>{le.length===0&&n&&m(w=>(w.length>0&&n.emit("svn-log-selected",{selectedBranches:g}),w))},[le,n]),t.useEffect(()=>{const w=A=>{console.debug("Received svn-log-result from socket in SectionBranchLog component in background"),_(N=>N.some(ve=>ve.id===A.id)?N:[...N,A])};return n==null||n.on("svn-log-result",w),()=>n==null?void 0:n.off("svn-log-result",w)},[n]),e.jsx(ns.Provider,{value:{socket:n,toast:i,config:a,updateConfig:d,isDebug:l,setIsDebug:c,configurableRowData:f,setConfigurableRowData:p,branchInfos:C,setBranchInfos:F,branchTableGridRef:k,selectedBranches:g,setSelectedBranches:m,showSelectedBranchesLog:j,setShowSelectedBranchesLog:B,isCommitMode:x,setIsCommitMode:S,selectedBranchStatuses:v,setSelectedBranchStatuses:O,localChangesGridRef:$,untrackedChangesGridRef:L,showCommitView:T,setShowCommitView:U,sourceBranch:q,setSourceBranch:I,branchOptions:z,issueNumber:W,setIssueNumber:Y,commitMessage:J,setCommitMessage:ee,selectedLocalChanges:se,setSelectedLocalChanges:he,selectedUntrackedChanges:y,setSelectedUntrackedChanges:h,socketPayload:R,setSocketPayload:Q,postCommitData:fe,setPostCommitData:Ve,logData:le,setLogData:_},children:s})};function ue(){const{socket:s}=V(),a=t.useCallback(()=>{s==null||s.emit("titan-config-open",{})},[s]),o=t.useCallback((d,f,p,C)=>{s==null||s.emit("svn-update-single",{id:d,branch:f,version:p,folder:C})},[s]),n=t.useCallback((d,f,p,C)=>{s==null||s.emit("svn-info-single",{id:d,branch:f,version:p,folder:C})},[s]),r=t.useCallback(d=>{s==null||s.emit("svn-commit",d)},[s]),i=t.useCallback(d=>{s==null||s.emit("svn-files-revert",{filesToProcess:d})},[s]),l=t.useCallback(d=>{s==null||s.emit("svn-files-add-remove",{filesToProcess:d})},[s]),c=t.useCallback((d,f,p,C=null)=>{s==null||s.emit("trello-search-names-card",{key:d,token:f,query:p,limit:C})},[s]),u=t.useCallback((d,f,p,C)=>{s==null||s.emit("trello-update-card",{key:d,token:f,trelloData:p,commitResponses:C})},[s]);return{emitOpenConfig:a,emitUpdateSingle:o,emitInfoSingle:n,emitCommitPayload:r,emitFilesRevert:i,emitFilesAddRemove:l,emitTrelloCardNamesSearch:c,emitTrelloCardUpdate:u}}function ne(){const{toast:s}=V(),a=t.useCallback((o="",n="info",r=3e3,i=null)=>{const l=ge(o,n,r);if(s)return s(l);if(i)return i(l)},[s]);return{toast:s,RaiseClientNotificaiton:a}}function ut(){const{config:s,isDebug:a,setIsDebug:o}=V(),{emitOpenConfig:n}=ue(),{RaiseClientNotificaiton:r}=ne(),{colorMode:i,toggleColorMode:l}=$e(),c=t.useCallback(()=>{window.electron.checkForUpdates().then(d=>{console.debug("Check for updates result: ",d)}),window.electron.on("update-not-available",()=>{r("Titan is up to date","info",3e3),window.electron.removeAllListeners("update-not-available")})},[r]),u=t.useCallback(()=>{window.electron&&window.electron.getAppVersion().then(d=>{r(`Application Version: v${d}`,"info",2e3)})},[r]);return e.jsxs(Ae,{my:5,spacingY:5,justify:"space-between",children:[e.jsxs(Ee,{alignItems:"center",children:[e.jsx(qe,{onClick:u,children:e.jsx(hs,{src:ot,alt:"Titan Logo",boxSize:"100px",mr:5,borderRadius:"full"})}),e.jsx(Z,{as:"h2",size:"2xl",noOfLines:1,className:"animation-fadein-forward",children:"Welcome back"}),e.jsx(Z,{as:"h2",size:"2xl",noOfLines:1,p:2,className:"animation-handwave",children:"👋"})]}),e.jsxs(Ee,{alignItems:"center",columnGap:2,children:[e.jsx(D,{label:"Toggle Light/Dark Mode",hasArrow:!0,placement:"left",children:e.jsx(H,{"aria-label":"Toggle light/dark mode",colorScheme:"yellow",icon:e.jsx(K,{as:i==="light"?fs:ms}),onClick:l})}),e.jsx(D,{label:"Check For Updates",hasArrow:!0,placement:"bottom-start",isDisabled:!window.electron,children:e.jsx(H,{"aria-label":"Check for updates",colorScheme:"yellow",icon:e.jsx(K,{as:gs}),onClick:c,isDisabled:!window.electron})}),e.jsx(D,{label:"Open Config File",hasArrow:!0,placement:"bottom-start",children:e.jsx(H,{"aria-label":"Open configuration file",colorScheme:"yellow",icon:e.jsx(K,{as:xs}),onClick:()=>n()})}),e.jsx(D,{label:`Current Debug Mode: ${a?"on":"off"}`,hasArrow:!0,placement:"right",children:e.jsx(H,{"aria-label":"Toggle Debug Mode",colorScheme:"yellow",icon:a?e.jsx(K,{as:ps}):e.jsx(K,{as:bs}),onClick:()=>o(d=>!d)})})]})]})}function ht({isAlertOpen:s,onCloseAlert:a,cancelRef:o,removeSelectedRows:n}){return e.jsx(_e,{isOpen:s,leastDestructiveRef:o,onClose:a,children:e.jsx(pe,{children:e.jsxs(Ge,{children:[e.jsx(Ce,{fontSize:"lg",fontWeight:"bold",children:"Delete Selected Rows"}),e.jsx(we,{children:"Are you sure you want to delete the selected rows? This action cannot be undone."}),e.jsxs(ye,{children:[e.jsx(E,{ref:o,onClick:a,children:"Cancel"}),e.jsx(E,{colorScheme:"red",onClick:n,ml:3,children:"Delete"})]})]})})})}function Ue(){const{innerWidth:s,innerHeight:a}=window;return{width:s,height:a}}function ft(){const[s,a]=t.useState(Ue());return t.useEffect(()=>{function o(){a(Ue())}return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),s}function mt({rowData:s,onRowValueChanged:a}){const{config:o,branchTableGridRef:n,updateConfig:r,isDebug:i,selectedBranches:l,setSelectedBranches:c,setSelectedBranchStatuses:u,setShowCommitView:d}=V(),f=ft(),[p,C]=t.useState(f.height>768),F=t.useCallback(x=>{const S={...x,id:String(Date.now()),"Branch Info":"Hasn't been refreshed"};r(v=>({...v,branches:ce([...v.branches,S])}))},[r]),k=t.useCallback(x=>{var v,O,$,L;const S=(O=(v=n==null?void 0:n.current)==null?void 0:v.api)==null?void 0:O.getSelectedNodes().map(T=>T.data);if(i&&console.log("SectionBranches.jsx: onSelectionChanged - event",x),i&&console.log("SectionBranches.jsx: onSelectionChanged - selectedBranches",l),(x==null?void 0:x.source)=="rowDataChanged"){const T=l.map(U=>U.id);(L=($=n==null?void 0:n.current)==null?void 0:$.api)==null||L.forEachNode(U=>{T.includes(U.data.id)&&U.setSelected(!0)});return}else["api"].includes(x==null?void 0:x.source)||(c(S),u([]),d(!1))},[i,n,l,c,d]),g=t.useCallback(x=>{const S=[];x.api.forEachNode(v=>S.push(v.data)),i&&console.debug("SectionBranches.jsx: onRowDragEnd - movedRowData",S),r(v=>({...v,branches:ce(S)}))},[r,i]),m=t.useCallback(x=>{const S=o==null?void 0:o.branchFolderColours[x.data["Branch Folder"]];return{backgroundColor:S?`${S}20`:"transparent"}},[o==null?void 0:o.branchFolderColours]),j=t.useMemo(()=>({resizable:!0,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!0,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),B=t.useMemo(()=>{const x=[{headerCheckboxSelection:!0,checkboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{headerName:"",width:60,resizable:!1,sortable:!1,filter:!1,editable:!1,cellRenderer:S=>e.jsx(D,{label:"Copy Row",hasArrow:!0,children:e.jsx(H,{colorScheme:"yellow","aria-label":"Copy Row",size:"sm",onClick:()=>F(S.data),icon:e.jsx(Fe,{})})})},{field:"Branch Folder",resizable:!1,width:130,valueFormatter:S=>S.value.toUpperCase()},{field:"Branch Version",resizable:!1,width:130},{field:"SVN Branch",flex:1},{field:"Branch Info",editable:!1,resizable:!1,width:200}];return p?[{field:"",rowDrag:!0,resizable:!1,filter:!1,suppressMovable:!1,editable:!1,width:20,cellRenderer:Cs,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},...x]:x},[o,p,F]);return t.useEffect(()=>{C(f.height>768)},[f]),e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:p?"auto":"428px",width:"100%"},children:e.jsx(de,{ref:n,rowData:s,defaultColDef:j,columnDefs:B,stopEditingWhenCellsLoseFocus:!0,getRowStyle:m,onRowDragEnd:g,domLayout:p?"autoHeight":"normal",suppressRowClickSelection:!0,rowSelection:"multiple",rowMultiSelectWithClick:!0,animateRows:!0,rowDragManaged:!0,onSelectionChanged:k,onRowValueChanged:a,columnMenu:"new",editType:"fullRow",deltaRowDataMode:!0,getRowNodeId:x=>x.id,immutableData:!0,suppressFlash:!0,enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!p,paginationAutoPageSize:!1,paginationPageSizeSelector:!1,paginationPageSize:10})})}function gt(){const{updateConfig:s,isDebug:a,socket:o,configurableRowData:n,setConfigurableRowData:r,branchInfos:i,config:l,setBranchInfos:c,setSelectedBranches:u,setSelectedBranchStatuses:d,showCommitView:f,setShowCommitView:p}=V(),[C,F]=t.useState([]),k=t.useCallback(g=>{a&&console.log("AG Grid: onRowValueChanged - event",g),a&&console.log("AG Grid: onRowValueChanged - rowDataBranches",C),s(m=>({...m,branches:ce(C)}))},[C,s,a]);return t.useEffect(()=>{const g=G.debounce(()=>{const m=n.map(j=>({...j,"Branch Info":i[j.id]||"Hasn't been refreshed"}));F(j=>G.isEqual(m,j)?j:m)},300);return g(),()=>g.cancel()},[n,i]),t.useEffect(()=>{r(g=>l&&l.branches&&!G.isEqual(l.branches,g)?l.branches:g)},[l]),t.useEffect(()=>{const g=m=>{c(j=>{const B={...j,[m.id]:m.info};return console.debug("branch-info-single data received:",m),console.debug("branch-info-single newBranchInfos",B),u(x=>(x.find(v=>v.id===m.id)&&f&&(d([]),p(!1)),x)),B})};return o==null||o.on("branch-info-single",g),()=>o==null?void 0:o.off("branch-info-single")},[o,f]),{rowDataBranches:C,setRowDataBranches:F,onRowValueChanged:k}}function xt(){const{socket:s,updateConfig:a,isDebug:o,setShowSelectedBranchesLog:n,configurableRowData:r,branchTableGridRef:i,selectedBranches:l,setSelectedBranches:c,isCommitMode:u,setIsCommitMode:d,setSelectedBranchStatuses:f,setShowCommitView:p}=V(),{emitUpdateSingle:C,emitInfoSingle:F}=ue(),{RaiseClientNotificaiton:k}=ne(),[g,m]=t.useState(!1),j=t.useRef(),B=()=>m(!1),{rowDataBranches:x,setRowDataBranches:S,onRowValueChanged:v}=gt(),[O,$]=t.useState(0),[L,T]=t.useState([]),U=t.useCallback(()=>{var y,h;o&&console.log("SectionBranches.jsx: clearSelection: START"),(h=(y=i==null?void 0:i.current)==null?void 0:y.api)==null||h.deselectAll(),c([]),d(!1)},[o,i,c]),q=t.useCallback(()=>{var h,R;const y=(R=(h=i==null?void 0:i.current)==null?void 0:h.api)==null?void 0:R.getSelectedNodes().map(Q=>Q.data);c(y),m(!0)},[i,c]),I=t.useCallback(()=>{const y={id:String(Date.now()),"Branch Folder":"","Branch Version":"","SVN Branch":"","Branch Info":""};a(h=>({...h,branches:ce([...h.branches,y])}))},[a]),z=t.useCallback(()=>{l.forEach(y=>{C(y.id,y["SVN Branch"],y["Branch Version"],y["Branch Folder"])})},[l,C]),W=t.useCallback(()=>{L.forEach(y=>{C(y.id,y["SVN Branch"],y["Branch Version"],y["Branch Folder"])})},[L,C]),Y=t.useCallback(()=>{const y=l.map(R=>R.id),h=x.filter(R=>!y.includes(R.id));console.log("SectionBranches.jsx: removeSelectedRows - updatedData",h),a(R=>({...R,branches:ce(h)})),U(),B()},[l,x,a]),J=t.useCallback(()=>{n(!0)},[]),ee=t.useCallback(()=>{S(y=>{const h=[...y];return l.forEach(R=>{const Q=h.findIndex(fe=>fe.id===R.id);h[Q]["Branch Info"]="Refreshing..."}),h}),l.forEach(y=>{F(y.id,y["SVN Branch"],y["Branch Version"],y["Branch Folder"])})},[l,F]),se=t.useCallback(()=>{if(u)return;k("Refreshing all branches. Please wait until this is done!","info",3e3);const y=Date.now();r.forEach(h=>{F(h.id,h["SVN Branch"],h["Branch Version"],h["Branch Folder"])}),$(y)},[r,F,k,u]),he=t.useCallback(()=>{d(y=>!y),p(!1)},[d]);return t.useEffect(()=>{const y=x.filter(h=>String(h["Branch Info"]).toLowerCase().includes("behind"));T(y)},[x]),t.useEffect(()=>{const h=Date.now();if(r.length>0){h-O>3e5&&se();const R=setInterval(()=>{se()},3e5);return()=>clearInterval(R)}},[r,O,se]),t.useEffect(()=>{const y=h=>{o&&console.debug("branch-success-single data received:",h),F(h.id,h.branch,h.version,h.folder)};return s==null||s.on("branch-success-single",y),()=>s==null?void 0:s.off("branch-success-single",y)},[o,s,F]),e.jsxs("div",{children:[e.jsxs(Ae,{mb:4,justify:"space-between",children:[e.jsxs(M,{columnGap:2,children:[e.jsx(D,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(E,{onClick:ee,leftIcon:e.jsx(Be,{}),colorScheme:"yellow",isDisabled:l.length<1,children:["Refresh ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(D,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(E,{onClick:z,leftIcon:e.jsx(K,{as:ws}),colorScheme:"yellow",isDisabled:l.length<1,children:["Update ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(D,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsx(E,{onClick:he,leftIcon:e.jsx(K,{as:u?js:Qe}),colorScheme:"yellow",isDisabled:l.length<1,children:u?"Undo Commit":"Commit"})}),e.jsx(D,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsx(E,{onClick:J,leftIcon:e.jsx(Ss,{}),colorScheme:"yellow",isDisabled:l.length<1,children:"View Logs"})})]}),e.jsx(M,{columnGap:2,children:e.jsx(D,{label:"No outdated branches to update",isDisabled:L.length>0,hasArrow:!0,children:e.jsx(E,{onClick:W,leftIcon:e.jsx(ys,{}),colorScheme:"yellow",isDisabled:L.length<1,children:"Update Outdated"})})})]}),e.jsx(mt,{rowData:x,onRowValueChanged:v}),e.jsxs(M,{columnGap:2,mt:4,children:[e.jsx(D,{label:"Please select at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(E,{onClick:U,leftIcon:e.jsx(Ye,{}),colorScheme:"red",isDisabled:l.length<1,children:["Deselect ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(D,{label:"Please select at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(E,{onClick:q,leftIcon:e.jsx(Bs,{}),colorScheme:"red",isDisabled:l.length<1,children:["Delete ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(E,{onClick:I,leftIcon:e.jsx(ks,{boxSize:8}),colorScheme:"green",children:"New Row"})]}),e.jsx(ht,{isAlertOpen:g,onCloseAlert:B,cancelRef:j,removeSelectedRows:Y})]})}function ls(s){const{data:a,onDiffResult:o}=s,n=async()=>{try{const r=await window.electron.openTortoiseSVNDiff({fullPath:a["Full Path"],branchFolder:a["Branch Folder"],branchVersion:a["Branch Version"]});o(r)}catch(r){o({success:!1,error:r.message})}};return e.jsx(H,{"aria-label":"Diff",size:"sm",icon:e.jsx(Ds,{}),onClick:n,colorScheme:"yellow"})}function as(){const{config:s}=V(),{emitTrelloCardNamesSearch:a,emitTrelloCardUpdate:o}=ue(),n=s==null?void 0:s.trelloIntegration,r=(n==null?void 0:n.key)||null,i=(n==null?void 0:n.token)||null,l=r&&i&&r.trim()!==""&&i.trim()!==""&&r.toUpperCase()!=="TRELLO_API_KEY"&&i.toUpperCase!=="TRELLO_TOKEN";return{key:r,token:i,isTrelloIntegrationEnabled:l,emitTrelloCardNamesSearch:a,emitTrelloCardUpdate:o}}function bt({isModalOpen:s,closeModal:a}){const{socket:o,setIsCommitMode:n,setSelectedBranchStatuses:r,setShowCommitView:i,socketPayload:l,postCommitData:c,setPostCommitData:u}=V(),{emitUpdateSingle:d,emitCommitPayload:f}=ue(),{key:p,token:C,isTrelloIntegrationEnabled:F,emitTrelloCardUpdate:k}=as(),{RaiseClientNotificaiton:g}=ne(),[m,j]=t.useState([]),{onCopy:B,value:x,setValue:S,hasCopied:v}=Pe(""),{onCopy:O,value:$,setValue:L,hasCopied:T}=Pe(""),U=t.useCallback(h=>{h.success?g("TortoiseSVN diff opened successfully","success",3e3):g(`Error opening TortoiseSVN diff: ${JSON.stringify(h.error,null,4)}`,"error",0)},[g]),q=[{title:"Review",description:"Confirm SVN changes"},{title:"Commit",description:"Commit changes"},{title:"Complete",description:"Process Completed"}],{activeStep:I,setActiveStep:z}=vs({index:1,count:q.length}),W=t.useMemo(()=>({resizable:!1,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),Y=t.useMemo(()=>[{field:"Branch Folder"},{field:"Branch Version",sort:"asc"},{field:"File Path",flex:1},{field:"Local Status",headerTooltip:"Working Copy"},{headerName:"Diff",filter:!1,sortable:!1,cellRenderer:ls,cellRendererParams:{onDiffResult:U},width:90}],[]),J=t.useCallback((h,R=!0)=>{const Q="​".repeat(7),fe=h.includes("MarkupSupport")?`\r -${Q}`:`\r -`,le=m.sort((_,w)=>_["Branch Version"].localeCompare(w["Branch Version"])).map(_=>{const w=[];h.includes("BranchFolder")&&w.push(_["Branch Folder"]),h.includes("BranchVersion")&&w.push(_["Branch Version"]),h.includes("SVNBranch")&&w.push(_.branchPathFolder);let A=w.join(" ").trim();if(h.includes("IssueNumber")){const me=_.branchIssueNumber;A+=` Issue [${me}]`}const N=_.revision?_.revision:_.errorMessage||"Error";return A+=` Revision [${N}]`,A});return R?le.join(fe):le},[m,l]),ee=t.useCallback(h=>{const R=J(h);S(R)},[J,S]),se=t.useCallback(()=>{z(h=>h-1)},[z]),he=t.useCallback(()=>{if(c.type!=="trello"){g("Trello Autofill is not enabled for this commit","error");return}const h=c.data,R=J(["BranchFolder","BranchVersion","IssueNumber"],!1);k(p,C,h,R),g("Updating Trello card with commit information","info"),u(null)},[c,g,J]),y=t.useCallback(()=>{z(h=>{switch(h){case 1:f(l);case 2:S(""),L("");break;case 3:return B(),g("Updating selected branches! Please wait","info",1500),m.forEach(R=>{d(R.branchId,R["SVN Branch"],R["Branch Version"],R["Branch Folder"])}),n(!1),r([]),i(!1),a(),1}return h+1})},[z,f,l,S,L,B,g,m,d,n,r,i,a]);return t.useEffect(()=>{z(1),j([]),S(""),L("")},[s,j]),t.useEffect(()=>{!s||I!=0||(a(),z(1),j([]),S(""),L(""))},[I,s]),t.useEffect(()=>{!s||I!=3||(g("The commit process has been completed successfully","success",5e3),ee(["BranchFolder","BranchVersion","SVNBranch"]),L(l.commitMessage||""))},[g,I,s,ee]),t.useEffect(()=>{const h=R=>{j(Q=>[...Q,R])};return o==null||o.on("svn-commit-status-live",h),()=>o==null?void 0:o.off("svn-commit-status-live",h)},[o]),t.useEffect(()=>{if(I!=2)return;const h=setTimeout(()=>{m.length>0&&m[0].bulkCommitLength==m.length&&z(3)},3e3);return()=>clearTimeout(h)},[I,m]),t.useEffect(()=>{(v||T)&&g("Copied to Clipboard","success",1500)},[v,T,g]),!s||!l?e.jsx(e.Fragment,{}):e.jsxs(Ke,{isOpen:s,onClose:a,isCentered:!0,motionPreset:"slideInBottom",scrollBehavior:"inside",size:"xl",closeOnOverlayClick:I==1,children:[e.jsx(pe,{}),e.jsxs(Je,{maxH:"85%",maxW:"95%",children:[e.jsxs(Ce,{display:"flex",justifyContent:"space-between",maxWidth:I==1?"94%":"100%",children:[e.jsx(Z,{as:"h2",size:"lg",children:"Commit Selected Files"}),e.jsx(Fs,{index:I-1,mb:0,size:"sm",colorScheme:"yellow",children:q.map((h,R)=>e.jsxs(Is,{children:[e.jsx(Rs,{children:e.jsx(Ts,{complete:e.jsx(Ns,{}),incomplete:e.jsx(Oe,{}),active:e.jsx(Oe,{})})}),e.jsx(b,{flexShrink:"0",children:e.jsx(Ms,{children:h.title})}),e.jsx(As,{})]},R))})]}),I==1?e.jsx(ke,{size:"lg",py:6}):e.jsx(e.Fragment,{}),e.jsx(we,{children:e.jsxs(b,{children:[I!=1?e.jsx(e.Fragment,{}):e.jsxs(b,{children:[e.jsxs(b,{mb:4,children:[e.jsx(P,{fontWeight:600,children:"Please confirm that the following information is correct before proceeding to commit your files:"}),e.jsxs(Ie,{spacing:3,children:[e.jsxs(ae,{children:[e.jsx(oe,{as:re,color:"yellow.500"}),"Source Branch: ",e.jsx(te,{children:De(l.sourceBranch["Branch Folder"],l.sourceBranch["Branch Version"],l.sourceBranch["SVN Branch"])})]}),e.jsxs(ae,{children:[e.jsx(oe,{as:re,color:"yellow.500"}),"Issue Numbers: ",e.jsx(te,{children:Object.entries(l.issueNumber).map(h=>`${h[1]} (${h[0]})`).join(", ")})]}),e.jsxs(ae,{children:[e.jsx(oe,{as:re,color:"yellow.500"}),"Commit Message: ",e.jsx(te,{children:l.commitMessage})]}),e.jsxs(ae,{children:[e.jsx(oe,{as:re,color:"yellow.500"}),"Example:"," ",e.jsxs(te,{children:["Issue ",l.issueNumber[l.sourceBranch["Branch Folder"]]," (",l.sourceBranch["Branch Folder"]," ",l.sourceBranch["Branch Version"],"): ",l.commitMessage]})]})]})]}),e.jsx(b,{children:e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"350px",width:"100%"},children:e.jsx(de,{rowData:l.filesToProcess,defaultColDef:W,columnDefs:Y,domLayout:"normal",columnMenu:"new",pagination:!0,paginationAutoPageSize:!0})})})]}),I!=2?e.jsx(e.Fragment,{}):e.jsxs(b,{children:[e.jsxs(P,{fontWeight:600,children:["Please wait while the files are being committed to the SVN repository.",e.jsx("br",{}),"Current live status of the commit process:"]}),e.jsx(b,{children:e.jsx(Ie,{spacing:3,children:m.map((h,R)=>e.jsxs(ae,{children:[e.jsx(oe,{as:h.errorMessage?Ls:re,color:h.errorMessage?"red.500":"yellow.500"}),h.branchString,": ",e.jsx(te,{children:h.errorMessage||h.revision})]},R))})})]}),I!=3?e.jsx(e.Fragment,{}):e.jsxs(b,{children:[e.jsx(b,{mb:4,children:e.jsxs(P,{fontWeight:600,children:["The commit process has been completed successfully.",e.jsx("br",{}),"Please find your revisions here for view and copy:"]})}),e.jsxs(M,{columnGap:10,alignItems:"center",children:[e.jsxs(b,{children:[e.jsx(Z,{as:"h3",size:"md",children:"SVN Revisions"}),e.jsx(b,{children:e.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:x})})]}),e.jsx(b,{children:e.jsx(D,{hasArrow:!0,label:"Copy to clipboard",children:e.jsx(H,{"aria-label":"Copy To Clipboard",onClick:B,icon:e.jsx(Fe,{}),colorScheme:"yellow"})})})]}),e.jsxs(b,{my:4,children:[e.jsx(P,{fontWeight:600,children:"Modify the clipboard text to include..."}),e.jsx(Xe,{colorScheme:"yellow",defaultValue:["BranchFolder","BranchVersion"],onChange:ee,children:e.jsxs(Ae,{children:[e.jsx(X,{value:"BranchFolder",children:"Branch Folder"}),e.jsx(X,{value:"BranchVersion",children:"Branch Version"}),e.jsx(X,{value:"SVNBranch",children:"SVN Branch"}),e.jsx(X,{value:"IssueNumber",children:"Issue Number"}),e.jsx(X,{value:"MarkupSupport",children:"Markup Support"})]})})]}),e.jsxs(M,{columnGap:10,alignItems:"center",children:[e.jsxs(b,{children:[e.jsx(P,{fontWeight:600,children:"Here is your SVN commit message for the source branch:"}),l.sourceBranch&&l.sourceBranch["Branch Folder"]&&l.sourceBranch["Branch Version"]?e.jsx(te,{children:`Issue ${l.issueNumber[l.sourceBranch["Branch Folder"]]} (${l.sourceBranch["Branch Folder"]} ${l.sourceBranch["Branch Version"]}): ${$}`}):e.jsx(te,{children:"Source information is undefined. Please check that you have entered the correct details otherwise contact the developer!"})]}),e.jsx(D,{hasArrow:!0,label:"Copy to clipboard",children:e.jsx(H,{"aria-label":"Copy To Clipboard",onClick:O,icon:e.jsx(Fe,{}),colorScheme:"yellow"})})]})]})]})}),e.jsx(ye,{children:e.jsxs(M,{flex:1,justifyContent:"space-between",children:[e.jsx(M,{columnGap:2,children:e.jsx(D,{hasArrow:!0,label:"Cannot undo the commit currently",isDisabled:I<2,children:e.jsx(E,{onClick:se,mr:3,isDisabled:I>=2,children:I==1?"Cancel":"Previous"})})}),e.jsxs(M,{columnGap:2,children:[e.jsx(D,{hasArrow:!0,label:"Requires Trello Autofill",isDisabled:(c==null?void 0:c.type)==="trello"&&F,children:e.jsx(E,{colorScheme:"yellow",leftIcon:e.jsx(K,{as:Vs}),onClick:he,isDisabled:I<3||(c==null?void 0:c.type)!="trello"||!F,children:"Update Card"})}),e.jsx(D,{hasArrow:!0,label:"Cannot undo the commit currently",isDisabled:I!=2,children:e.jsx(E,{colorScheme:"yellow",onClick:y,isDisabled:I==2,children:I==q.length?"Complete":"Next"})})]})]})})]})]})}function pt({fileUpdates:s}){return e.jsx(b,{children:Object.keys(s).length>0?e.jsxs(b,{children:[e.jsx(P,{mb:4,children:"Below are the list of files which have been changed on your machine but there exists a newer version of them in the repository:"}),e.jsx(b,{maxHeight:"200px",overflowY:"auto",children:e.jsxs(Es,{children:[e.jsx(Ps,{children:e.jsxs(ze,{children:[e.jsx(je,{children:"Branch"}),e.jsx(je,{children:"Path"}),e.jsx(je,{children:e.jsx(D,{label:"Working Copy",hasArrow:!0,children:"Local Status"})}),e.jsx(je,{children:e.jsx(D,{label:"Repository",hasArrow:!0,children:"Remote Status"})})]})}),e.jsx(Os,{children:Object.keys(s).map(a=>e.jsx(Me.Fragment,{children:s[a].map((o,n)=>e.jsxs(ze,{children:[e.jsx(Se,{children:a}),e.jsx(Se,{children:o.pathDisplay}),e.jsx(Se,{children:o.wcStatus}),e.jsx(Se,{children:o.reposStatus})]},n))},a))})]})}),e.jsx(P,{mt:4,children:"If you wish to commit these files, please update the associated branches!"})]}):e.jsx(b,{children:e.jsx(P,{children:"Your selected branches do not contain any changed files for which a newer version exists in the repository."})})})}function Ct({rowDataLocalChanges:s,setRowDataLocalChanges:a,defaultColDefsCommit:o}){const{localChangesGridRef:n,isDebug:r,selectedBranches:i,showCommitView:l,setSelectedLocalChanges:c,selectedLocalChanges:u}=V(),{emitFilesRevert:d}=ue(),{RaiseClientNotificaiton:f}=ne(),[p,C]=t.useState(""),F=t.useCallback(()=>{d(u)},[d,u]),k=t.useCallback(B=>{C(B.target.value)},[C]),g=t.useCallback(B=>{var v,O,$,L;if(console.debug("PanelLocalChanges.jsx: onFileViewSelectionChanged - event",B),String(B==null?void 0:B.source).toLowerCase().includes("api"))return;let x=(O=(v=n==null?void 0:n.current)==null?void 0:v.api)==null?void 0:O.getSelectedNodes().map(T=>T.data);r&&console.debug("PanelLocalChanges.jsx: onFileViewSelectionChanged - selectedBranches",x);const S=x.filter(T=>T["Local Status"].toLowerCase()==="added");(L=($=n==null?void 0:n.current)==null?void 0:$.api)==null||L.forEachNode(T=>{S.some(q=>q["File Path"].includes(T.data["File Path"])&&q["File Path"]!==T.data["File Path"])&&T.data["Local Status"].toLowerCase()==="added"&&!T.isSelected()&&(T.setSelected(!0),x.push(T.data),console.debug("PanelLocalChanges.jsx (onFileViewSelectionChanged): Adding ancestor node: ",T))}),c(x)},[n,r,c]),m=t.useCallback(B=>{B.success?f("TortoiseSVN diff opened successfully","success",3e3):f(`Error opening TortoiseSVN diff: ${JSON.stringify(B.error,null,4)}`,"error",0)},[f]),j=t.useMemo(()=>[{headerCheckboxSelection:!0,checkboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"Branch Folder"},{field:"Branch Version",sort:"asc",sortIndex:0},{field:"File Path",flex:1,sort:"asc",sortIndex:2},{field:"Local Status",headerTooltip:"Working Copy",sort:"asc",sortIndex:1},{headerName:"Diff",filter:!1,sortable:!1,resizable:!1,cellRenderer:ls,cellRendererParams:{onDiffResult:m},width:90}],[]);return t.useEffect(()=>{i.length<1||l||(C(""),a([]),c([]))},[i,l]),e.jsx(b,{children:s.length>0?e.jsxs(b,{children:[e.jsxs(M,{mb:4,alignItems:"center",children:[e.jsx(P,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(ie,{placeholder:"Type to search...",onInput:k,width:"100%"})]}),e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"480px",width:"100%"},children:e.jsx(de,{ref:n,rowData:s,defaultColDef:o,columnDefs:j,onSelectionChanged:g,quickFilterText:p,domLayout:"normal",rowSelection:"multiple",suppressRowClickSelection:!0,rowMultiSelectWithClick:!0,animateRows:!0,columnMenu:"new",enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!0,paginationAutoPageSize:!0})}),e.jsx(M,{mt:4,columnGap:2,justifyContent:"flex-end",children:e.jsx(D,{label:"Requires you to select at least 1 file",hasArrow:!0,isDisabled:u.length>0,children:e.jsx(E,{onClick:F,colorScheme:"red",isDisabled:u.length<1,children:"Revert Selected"})})})]}):e.jsx(b,{children:e.jsx(P,{children:"Your selected branches do not contain any files to commit."})})})}function wt({rowDataUntrackedChanges:s,setRowDataUntrackedChanges:a,defaultColDefsCommit:o}){const{untrackedChangesGridRef:n,selectedUntrackedChanges:r,setSelectedUntrackedChanges:i,isDebug:l,selectedBranches:c,showCommitView:u}=V(),{emitFilesAddRemove:d,emitFilesRevert:f}=ue(),[p,C]=t.useState(""),F=t.useCallback(B=>{C(B.target.value)},[C]),k=t.useCallback(()=>{var x,S;const B=(S=(x=n==null?void 0:n.current)==null?void 0:x.api)==null?void 0:S.getSelectedNodes().map(v=>v.data);l&&console.debug("PanelUntrackedChanges.jsx (onUnseenFilesSelectionChanged): selectedBranches",B),i(B)},[n,l]),g=t.useCallback(()=>{d(r)},[d,r]),m=t.useCallback(()=>{f(r)},[f,r]),j=t.useMemo(()=>[{headerCheckboxSelection:!0,checkboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"Branch Folder"},{field:"Branch Version",sort:"asc",sortIndex:0},{field:"File Path",flex:1,sort:"asc",sortIndex:1},{field:"Local Status",headerTooltip:"Working Copy"}],[]);return t.useEffect(()=>{c.length<1||u||(C(""),a([]),i([]))},[c,u]),e.jsx(b,{children:s.length>0?e.jsxs(b,{children:[e.jsx(P,{mb:4,children:"Below are the list of files which are either unversioned or missing in the repository:"}),e.jsxs(M,{mb:4,alignItems:"center",children:[e.jsx(P,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(ie,{placeholder:"Type to search...",onInput:F,width:"100%"})]}),e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"390px",width:"100%"},children:e.jsx(de,{ref:n,rowData:s,defaultColDef:o,columnDefs:j,onSelectionChanged:k,quickFilterText:p,domLayout:"normal",rowSelection:"multiple",rowMultiSelectWithClick:!0,animateRows:!0,columnMenu:"new",enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!0,paginationAutoPageSize:!0})}),e.jsxs(M,{mt:4,columnGap:2,justifyContent:"flex-end",children:[e.jsx(D,{label:"Requires you to select at least 1 file",hasArrow:!0,isDisabled:r.length>0,children:e.jsxs(E,{onClick:g,colorScheme:"green",isDisabled:r.length<1,children:["Add/Remove ",r.length," File",r.length>1?"s":""]})}),e.jsx(D,{label:"Requires you to select at least 1 file",hasArrow:!0,isDisabled:r.length>0,children:e.jsxs(E,{onClick:m,colorScheme:"red",isDisabled:r.length<1,children:["Revert ",r.length," File",r.length>1?"s":""]})})]})]}):e.jsx(b,{children:e.jsx(P,{children:"Your selected branches do not contain any unversioned or missing files."})})})}function Le(){const{config:s}=V();return s&&s.commitOptions?s.commitOptions:null}function We({branchFolder:s}){const{issueNumber:a,setIssueNumber:o,selectedBranches:n}=V(),r=Le(),i=t.useCallback(u=>{const d=String(u.target.value||"").trim();/^\d*$/.test(d)&&o(f=>({...f,[s]:d}))},[s,o]),l=!s,c=!s||!(r!=null&&r.useIssuePerFolder)?!0:n==null?void 0:n.map(u=>u["Branch Folder"]).includes(s);return t.useEffect(()=>(s&&o(u=>({...u,[s]:""})),()=>{s&&Object.keys(a).includes(s)&&o(u=>G.omit(u,[s]))}),[s,o]),e.jsx(D,{label:"Please select source branch first!",isDisabled:!l,hasArrow:!0,children:e.jsxs(Re,{isDisabled:l,isRequired:c,children:[e.jsx(Te,{children:s?`Issue Number For ${s}`:"Issue Number"}),e.jsx(ie,{value:a[s]||"",onInput:i,placeholder:"Enter number"})]},s)})}function os(){const{configurableRowData:s,sourceBranch:a,selectedBranches:o}=V(),n=t.useCallback(c=>s&&s.length>0?s.find(u=>u.id==c)["Branch Folder"]:"",[s]),r=t.useMemo(()=>{if(!(a!=null&&a.value))return[];const c=n(a.value);return[...new Set(o.filter(u=>u["Branch Folder"]!==c).map(u=>u["Branch Folder"]))]},[a,o,n]),i=t.useCallback(c=>s&&s.length>0?s.find(u=>u.id==c)["Branch Version"]:"",[s]),l=t.useCallback(c=>s&&s.length>0?s.find(u=>u.id==c)["SVN Branch"]:"",[s]);return{getBranchFolderById:n,selectedBranchFolders:r,getBranchVersionById:i,getSvnBranchById:l}}function jt({openMessageAutoFillModal:s}){const{sourceBranch:a,setSourceBranch:o,branchOptions:n,setIssueNumber:r,commitMessage:i,setCommitMessage:l,isCommitMode:c,selectedBranches:u}=V(),d=Le(),{getBranchFolderById:f,selectedBranchFolders:p}=os(),C=t.useCallback(k=>{o(k)},[o]),F=t.useCallback(k=>{l(String(k.target.value).replace(/["`]/g,"'"))},[l]);return t.useEffect(()=>{c&&(o(null),r({}))},[c]),t.useEffect(()=>{d!=null&&d.reusePreviousCommitMessage||l("")},[d==null?void 0:d.reusePreviousCommitMessage,l,c]),t.useEffect(()=>{r(k=>Object.fromEntries(Object.entries(k).filter(([g])=>u.some(m=>m["Branch Folder"]===g))))},[u]),e.jsx(b,{children:e.jsxs(M,{columnGap:3,children:[e.jsxs(b,{flexGrow:1,children:[e.jsxs(M,{columnGap:2,mb:2,children:[e.jsx(b,{width:"50%",children:e.jsxs(Re,{isRequired:!0,children:[e.jsx(Te,{children:"Source Branch"}),e.jsx(zs,{value:a,onChange:C,options:n,placeholder:"SVN Branch you're commiting from",selectedOptionStyle:"check",selectedOptionColorScheme:"yellow",isClearable:!0,classNamePrefix:"chakra-react-select"})]})}),e.jsx(M,{width:"50%",alignItems:"flex-end",columnGap:2,children:e.jsx(We,{branchFolder:a&&a.value?f(a.value):null})})]}),e.jsxs(M,{columnGap:2,height:"auto",children:[e.jsxs(Re,{width:d!=null&&d.useIssuePerFolder?"50%":"100%",isRequired:!0,children:[e.jsx(Te,{children:"Commit Message"}),e.jsx(Us,{placeholder:"Enter Commit Message",height:"76%",resize:"none",onInput:F,value:i})]}),d!=null&&d.useIssuePerFolder?a!=null&&a.value?e.jsx(M,{width:"50%",flexDir:"column",rowGap:2,children:p.map(k=>e.jsx(We,{branchFolder:k},k))}):e.jsx(b,{width:"50%",textAlign:"center",m:"auto",children:e.jsx(P,{fontSize:"lg",fontWeight:"600",color:"yellow.500",children:"Please select source branch first!"})}):null]})]}),e.jsx(b,{pt:8,children:e.jsx(D,{label:a!=null&&a.value?"Auto Fill Message":"Please select source branch first!",hasArrow:!0,placement:"bottom-end",children:e.jsx(H,{colorScheme:"yellow","aria-label":"Auto Fill Message",size:"md",onClick:()=>s(),icon:e.jsx(Ze,{}),isDisabled:!(a!=null&&a.value)})})})]})})}function St({openCommitModal:s}){const{setShowCommitView:a,selectedLocalChanges:o,sourceBranch:n,issueNumber:r,commitMessage:i,setSocketPayload:l,configurableRowData:c,selectedBranches:u}=V(),{RaiseClientNotificaiton:d}=ne(),f=Le(),{selectedBranchFolders:p}=os(),C=t.useCallback(()=>{a(!1)},[a]),F=t.useCallback(()=>{if(!n||n.value===""){d("Please select the source branch to proceed!","error");return}const k=c.find(j=>j.id==n.value),g=f!=null&&f.useIssuePerFolder?p.every(j=>r[j]&&r[j]!==""):!0,m=f!=null&&f.useIssuePerFolder&&!u.some(j=>j["Branch Folder"]===k["Branch Folder"])||r[k["Branch Folder"]];if(!r||G.isEmpty(r)||!g||!m){d("Please provide the issue number to proceed!","error");return}if(!i||i.trim()===""){d("Please provide the commit message to proceed!","error");return}l({sourceBranch:k,issueNumber:r,commitMessage:i,filesToProcess:o,commitOptions:f}),s()},[d,n,c,f,p,r,u,i,o]);return e.jsx(b,{children:e.jsxs(M,{columnGap:2,justifyContent:"center",children:[e.jsx(E,{onClick:C,leftIcon:e.jsx(Be,{}),colorScheme:"yellow",children:"Refresh Process"}),e.jsx(D,{label:"Select at least 1 file",hasArrow:!0,isDisabled:o.length>0,children:e.jsxs(E,{onClick:F,leftIcon:e.jsx(K,{as:Qe}),colorScheme:"yellow",isDisabled:o.length<1,children:["Commit ",o.length>0?`${o.length} File`:"",o.length>1?"s":""]})})]})})}function yt(){const{selectedBranches:s,logData:a,setLogData:o}=V(),[n,r]=t.useState([]),[i,l]=t.useState(""),c=t.useCallback(f=>{l(f.target.value)},[l]),u=t.useCallback(()=>{o([])},[o]),d=a.length===s.length;return t.useEffect(()=>{if(a.length===0)return;const f=a.map(p=>p.logs).flat();r(p=>G.isEqual(p,f)?p:f)},[a]),{rowDataLogs:n,quickFilterLogsText:i,setQuickFilterLogsText:l,onQuickFilterLogsInputChanged:c,refreshLogs:u,areLogsFetched:d}}function Bt({rowDataLogs:s,quickFilterLogsText:a,setAutoFillSelection:o=null,isAutofill:n=!1}){const r=t.useMemo(()=>({sortable:!0,resizable:!1,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),i=t.useMemo(()=>{const u=[{field:"revision",headerName:"Revision",sort:"desc",width:130},{field:"date",headerName:"Date",sortable:!1},{field:"branchFolder",headerName:"Branch Folder",width:135},{field:"branchVersion",headerName:"Branch Version",width:125},{field:"author",headerName:"Author"},{field:"message",headerName:"Message",flex:1}];return n?[{checkboxSelection:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},...u]:u},[n]),l=t.useRef(null),c=t.useCallback(()=>{var u,d;if(o){const f=(d=(u=l==null?void 0:l.current)==null?void 0:u.api)==null?void 0:d.getSelectedNodes().map(p=>p.data);o(f[0]||null)}},[o]);return e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:n?"90%":"85%",width:"100%"},children:e.jsx(de,{ref:l,rowData:s,defaultColDef:r,columnDefs:i,onSelectionChanged:c,quickFilterText:a,domLayout:"normal",columnMenu:"new",rowSelection:"single",suppressRowClickSelection:!n,animateRows:!1,immutableData:!0,suppressFlash:!0,enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!0,paginationAutoPageSize:!0})})}function rs({setAutoFillSelection:s=!1,isAutofill:a=!1}){const{selectedBranches:o,logData:n}=V(),{rowDataLogs:r,quickFilterLogsText:i,onQuickFilterLogsInputChanged:l,refreshLogs:c,areLogsFetched:u}=yt();return u?e.jsxs(b,{h:"100%",children:[e.jsxs(M,{mb:4,width:"100%",alignItems:"center",columnGap:4,children:[e.jsxs(M,{alignItems:"center",width:"100%",children:[e.jsx(P,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(ie,{placeholder:"Type to search...",onInput:l,width:"100%"})]}),e.jsx(b,{children:e.jsx(D,{label:"Refresh",hasArrow:!0,children:e.jsx(H,{onClick:c,icon:e.jsx(Be,{}),colorScheme:"yellow","aria-label":"Refresh"})})})]}),e.jsx(Bt,{rowDataLogs:r,quickFilterLogsText:i,setAutoFillSelection:s,isAutofill:a})]}):e.jsxs(b,{children:[e.jsxs(b,{mb:4,children:[e.jsx(P,{fontWeight:600,children:"Showing SVN Log for the following branches:"}),e.jsx(Ie,{spacing:3,children:o.map(d=>{const f=n.find(p=>p.id===d.id);return e.jsxs(ae,{display:"flex",alignItems:"center",children:[e.jsx(oe,{w:30,h:30,as:f?re:Ws,color:"yellow.500"}),De(d["Branch Folder"],d["Branch Version"],d["SVN Branch"])]},d.branchId)})})]}),e.jsx(M,{justifyContent:"center",children:e.jsx(Hs,{value:n.length/o.length*360,color:"yellow.300",size:"100px",children:e.jsxs($s,{children:[n.length," / ",o.length]})})})]})}function kt(s){const{data:a}=s,o=async()=>{window.open(a.url,"_blank")};return e.jsx(H,{"aria-label":"Diff",size:"sm",icon:e.jsx(qs,{}),onClick:o,colorScheme:"yellow"})}function Dt({rowDataTrello:s,quickFilterTrelloText:a,setAutoFillSelection:o}){const n=t.useMemo(()=>({sortable:!0,resizable:!1,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),r=t.useMemo(()=>[{checkboxSelection:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"name",headerName:"Name",flex:1},{field:"lastActivityDate",headerName:"Last Activity Date"},{field:"url",headerName:"Goto Trello",filter:!1,sortable:!1,resizable:!1,cellRenderer:kt,width:120}],[]),i=t.useRef(null),l=t.useCallback(()=>{var u,d;const c=(d=(u=i==null?void 0:i.current)==null?void 0:u.api)==null?void 0:d.getSelectedNodes().map(f=>f.data);o(c[0]||null)},[o]);return e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"80%",width:"100%"},children:e.jsx(de,{ref:i,rowData:s,defaultColDef:n,columnDefs:r,onSelectionChanged:l,quickFilterText:a,domLayout:"normal",columnMenu:"new",rowSelection:"single",suppressRowClickSelection:!1,animateRows:!1,enableCellTextSelection:!0,pagination:!0,paginationAutoPageSize:!0})})}function vt({setAutoFillSelection:s}){const{socket:a}=V(),{key:o,token:n,isTrelloIntegrationEnabled:r,emitTrelloCardNamesSearch:i}=as(),[l,c]=t.useState(""),[u,d]=t.useState(""),[f,p]=t.useState([]),C=t.useCallback(G.debounce(m=>{m.trim()!==""&&i(o,n,m)},400),[o,n,i]),F=t.useCallback(m=>{c(String(m.target.value).trim())},[c]),k=t.useCallback(()=>{l.trim()!==""&&i(o,n,l)},[l,o,n,i]),g=t.useCallback(m=>{d(m.target.value)},[]);return t.useEffect(()=>(C(l),()=>C.cancel()),[l,C]),t.useEffect(()=>{const m=j=>{p(j&&j.length>0?j:[])};return a==null||a.on("trello-result-search-names-card",m),()=>a==null?void 0:a.off("trello-result-search-names-card",m)},[a]),r?e.jsxs(b,{h:"100%",children:[e.jsxs(M,{mb:4,width:"100%",alignItems:"center",columnGap:4,children:[e.jsxs(M,{alignItems:"center",width:"100%",children:[e.jsx(P,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Trello Query:"}),e.jsx(ie,{placeholder:"Type to search...",onInput:F,width:"100%"})]}),e.jsx(b,{children:e.jsx(D,{label:"Resubmit Query",hasArrow:!0,children:e.jsx(H,{onClick:k,icon:e.jsx(Be,{}),colorScheme:"yellow","aria-label":"Resubmit"})})})]}),e.jsx(M,{mb:4,width:"100%",alignItems:"center",columnGap:4,children:e.jsxs(M,{alignItems:"center",width:"100%",children:[e.jsx(P,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(ie,{placeholder:"Type to search...",onInput:g,width:"100%"})]})}),e.jsx(Dt,{rowDataTrello:f,quickFilterTrelloText:u,setAutoFillSelection:s})]}):e.jsx(b,{h:"100%",p:4,children:e.jsxs(P,{fontSize:"lg",fontWeight:"600",color:"red.500",children:["You need to"," ",e.jsxs(qe,{href:"https://help.merge.dev/en/articles/8757597-trello-how-do-i-link-my-account",isExternal:!0,color:"yellow.500",children:["set up Trello Integration ",e.jsx(Ze,{mx:"2px"})]})," ","in the configuration file to use this feature."]})})}function Ft({isModalOpen:s,closeModal:a}){const{setIssueNumber:o,setCommitMessage:n,setPostCommitData:r}=V(),[i,l]=t.useState(0),[c,u]=t.useState([null,null]),[d,f]=t.useState(!0),p=t.useCallback(g=>{l(g),u(g===0?m=>[m[0],null]:m=>[null,m[1]])},[l]),C=t.useCallback(g=>{u(m=>[g,...m.slice(1)])},[u]),F=t.useCallback(g=>{u(m=>[m[0],g])},[u]),k=t.useCallback(()=>{console.debug("Selected tab index:",i),console.debug("Selected autofill selection:",JSON.stringify(c,null,4));let g=c[i];if(i===0){const m=g.message,j=m.match(/\s*(Issue)*\s*(\d+)\s*/),B=j?j[2]:null,x=m.replace(/\s*(Issue)*\s*(\d+)?\s*(\([^\)]+\))*\s?:?\s*/,"");B&&o(S=>Object.fromEntries(Object.keys(S).map(v=>[v,B]))),x.trim()!==""&&n(x)}else{const m=g.name,j=m.match(/\s*(Issue)*\s*(\d+)\s*/),B=j?j[2]:null,x=m.replace(/\s*(Issue)*\s*(\d+)/,"");B&&o(S=>Object.fromEntries(Object.keys(S).map(v=>[v,B]))),x.trim()!==""&&n(x),r({type:"trello",data:g})}a()},[i,c,o,n,r,a]);return t.useEffect(()=>{f(!(c.length==2&&(c[0]||c[1])))},[c]),t.useEffect(()=>{u([null,null]),l(0)},[s]),e.jsxs(Ke,{isOpen:s,onClose:a,isCentered:!0,motionPreset:"slideInBottom",scrollBehavior:"inside",size:"xl",closeOnOverlayClick:!0,children:[e.jsx(pe,{}),e.jsxs(Je,{maxH:"95%",maxW:"95%",children:[e.jsx(Ce,{children:e.jsx(Z,{as:"h2",size:"lg",children:"Autofill Commit Message"})}),e.jsx(ke,{size:"lg"}),e.jsx(we,{children:e.jsx(b,{height:"70vh",children:e.jsxs(es,{variant:"solid-rounded",colorScheme:"yellow",defaultIndex:0,isLazy:!0,h:"100%",onChange:g=>p(g),children:[e.jsxs(ss,{children:[e.jsx(xe,{children:"SVN Logs"}),e.jsx(xe,{children:"Trello"})]}),e.jsxs(ts,{h:"90%",children:[e.jsx(be,{px:0,pb:0,h:"100%",children:e.jsx(rs,{setAutoFillSelection:C,isAutofill:!0})}),e.jsx(be,{px:0,pb:0,h:"100%",children:e.jsx(vt,{setAutoFillSelection:F})})]})]})})}),e.jsxs(ye,{children:[e.jsx(E,{mr:3,onClick:()=>a(),children:"Cancel"}),e.jsx(D,{hasArrow:!0,label:"Please select exactly one row!",placement:"top-start",isDisabled:!d,children:e.jsx(E,{colorScheme:"yellow",onClick:k,isDisabled:d,children:"Select"})})]})]})]})}function It(){const{config:s,updateConfig:a,setSourceBranch:o,setIssueNumber:n}=V(),[r,i]=t.useState({}),l=t.useCallback((c,u)=>{i(d=>({...d,[c]:u}))},[i]);return t.useEffect(()=>{!s||G.isEmpty(s)||(s.commitOptions?i(s.commitOptions):a(c=>({...c,commitOptions:{useFolderOnlySource:!1,useIssuePerFolder:!1,reusePreviousCommitMessage:!1}})))},[s]),t.useEffect(()=>{G.isEmpty(r)||a(c=>G.isEqual(c.commitOptions,r)?c:{...c,commitOptions:r})},[r]),t.useEffect(()=>{o(null)},[r==null?void 0:r.useFolderOnlySource,o]),t.useEffect(()=>{n({})},[r==null?void 0:r.useIssuePerFolder,n]),e.jsxs(b,{mb:4,children:[e.jsx(Z,{as:"h6",size:"sm",children:"Commit Options"}),e.jsx(Xe,{colorScheme:"yellow",children:e.jsxs(_s,{direction:"row",spacing:4,mt:2,children:[e.jsx(X,{isChecked:r.useFolderOnlySource,onChange:c=>l("useFolderOnlySource",c.target.checked),children:e.jsx(D,{label:"Removes extra branch details from source branch.",hasArrow:!0,placement:"bottom-start",children:"Use Folder Only Source Branch?"})}),e.jsx(X,{isChecked:r.useIssuePerFolder,onChange:c=>l("useIssuePerFolder",c.target.checked),children:e.jsx(D,{label:"Allows users to input issue number for each branch folder.",hasArrow:!0,placement:"bottom-start",children:"Use 1 Issue Per Folder?"})}),e.jsx(X,{isChecked:r.reusePreviousCommitMessage,onChange:c=>l("reusePreviousCommitMessage",c.target.checked),children:e.jsx(D,{label:"Reuses the commit message from the previous commit made in Titan.",hasArrow:!0,children:"Reuse Previous Commit Message?"})})]})})]})}function Rt(){const{isDebug:s,setIsCommitMode:a,selectedBranchStatuses:o,showCommitView:n,setShowCommitView:r,selectedBranches:i,configurableRowData:l}=V(),[c,u]=t.useState({}),[d,f]=t.useState([]),[p,C]=t.useState([]),{isOpen:F,onOpen:k,onClose:g}=Ne(),{isOpen:m,onOpen:j,onClose:B}=Ne(),x=t.useMemo(()=>({resizable:!0,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]);t.useEffect(()=>{if(i.length<1||n){i.length<1&&a(!1);return}u({})},[i,n]),t.useEffect(()=>{s&&(console.debug("Branch Status Rows:",o),console.debug("Selected Rows:",i))},[s,o,i]),t.useEffect(()=>{o.length===i.length&&(o.forEach(L=>{let T=L.id,U=L.status.filesToCommit,q=L.status.filesToUpdate;const I=l.find(z=>z.id===T);if(q.length>0){const z=De(I["Branch Folder"],I["Branch Version"],I["SVN Branch"]);u(W=>({...W,[z]:[...W[z]||[],...q]}))}if(U.length>0){const z=U.map(W=>({branchId:T,"Branch Folder":I["Branch Folder"],"Branch Version":I["Branch Version"],"SVN Branch":I["SVN Branch"],"Full Path":W.path,"File Path":`${rt(L.status.branch)}\\${W.pathDisplay}`,"Local Status":W.wcStatus}));f(W=>[...W,...z.filter(Y=>!["unversioned","missing"].includes(Y["Local Status"]))]),C(W=>[...W,...z.filter(Y=>["unversioned","missing"].includes(Y["Local Status"]))])}}),r(!0))},[o,i,l]);const S=Object.keys(c).length>0,v=d.length>0,O=p.length>0,$=S||v||O;return e.jsxs(b,{children:[e.jsx(It,{}),e.jsx(b,{mb:6,children:e.jsx(jt,{openMessageAutoFillModal:j})}),e.jsx(Gs,{isLoaded:n&&$,startColor:"yelow.500",endColor:"yellow.500",children:e.jsxs(es,{variant:"solid-rounded",colorScheme:"yellow",defaultIndex:S?0:v?1:2,isLazy:!1,children:[e.jsxs(ss,{children:[e.jsx(xe,{isDisabled:!S,children:e.jsx(D,{label:"No files to update!",hasArrow:!0,isDisabled:S,children:"Files to Update"})}),e.jsx(xe,{isDisabled:!v,children:e.jsx(D,{label:"No files to commit!",hasArrow:!0,isDisabled:v,children:"Local Changes"})}),e.jsx(xe,{isDisabled:!O,children:e.jsx(D,{label:"No unversioned/missing files!",hasArrow:!0,isDisabled:O,children:"Untracked Changes"})})]}),e.jsxs(ts,{children:[e.jsx(be,{px:0,children:e.jsx(pt,{fileUpdates:c})}),e.jsx(be,{px:0,children:e.jsx(Ct,{rowDataLocalChanges:d,setRowDataLocalChanges:f,defaultColDefsCommit:x})}),e.jsx(be,{px:0,children:e.jsx(wt,{rowDataUntrackedChanges:p,setRowDataUntrackedChanges:C,defaultColDefsCommit:x})})]})]})}),n&&!$?e.jsxs(P,{mt:4,className:"animation-pulse",fontWeight:600,textAlign:"center",children:["No changes have been spotted!",e.jsx("br",{}),"Please use the refresh button 👇 if you have recently made a change"]}):e.jsx(e.Fragment,{}),e.jsx(b,{mt:6,children:e.jsx(St,{openCommitModal:k})}),e.jsx(bt,{isModalOpen:F,closeModal:g}),e.jsx(Ft,{isModalOpen:m,closeModal:B})]})}function Tt(){const{showSelectedBranchesLog:s,setShowSelectedBranchesLog:a}=V();return e.jsxs(Qs,{isOpen:s,onClose:()=>a(!1),placement:"left",size:"full",children:[e.jsx(pe,{}),e.jsxs(Ys,{children:[e.jsx(ke,{size:"lg"}),e.jsx(Ce,{children:"Selected Branches: SVN Log"}),e.jsx(we,{children:e.jsx(b,{height:"100%",children:e.jsx(rs,{})})})]})]})}function Nt(){const{toast:s,RaiseClientNotificaiton:a}=ne(),{isOpen:o,onOpen:n,onClose:r}=Ne(),i=t.useRef(),[l,c]=t.useState(!1);t.useEffect(()=>{if(!window.electron){a("Electron context is not available. Updates cannot be checked.","warning",5e3);return}return window.electron.on("update-available",()=>{s.closeAll(),n()}),window.electron.on("update-error",f=>{a(`An error occurred while checking for updates: ${f}`,"error",5e3),c(!1)}),()=>{window.electron.removeAllListeners("update-available"),window.electron.removeAllListeners("update-error")}},[s,n]);const u=t.useCallback(()=>{r(),a("You may update the application later by manually triggering an update check or wait until Titan does this","info",5e3)},[r,a]),d=t.useCallback(()=>{if(l){a("Update is already in progress. Please wait.","info",5e3);return}window.electron?(c(!0),window.electron.downloadUpdate().catch(f=>{c(!1),a(`An error occurred while downloading the update: ${f}`,"error",5e3)}),window.electron.on("update-downloaded",()=>{a("Update has been downloaded successfully. Titan will now restart to apply the update.","info",5e3),window.electron.removeAllListeners("update-downloaded"),r()}),window.electron.on("update-not-available",()=>{a("Titan is up to date","info",3e3),window.electron.removeAllListeners("update-not-available"),c(!1),r()})):a("Cannot update Titan in a non-desktop application environment","error",5e3)},[l,a,c,r]);return e.jsx(_e,{isOpen:o,leastDestructiveRef:i,onClose:r,motionPreset:"slideInBottom",closeOnOverlayClick:!l,children:e.jsx(pe,{children:e.jsxs(Ge,{children:[e.jsx(Ce,{fontSize:"lg",fontWeight:"bold",children:"Update Available"}),l?e.jsx(e.Fragment,{}):e.jsx(ke,{}),e.jsx(we,{children:"A new version of Titan is available. Would you like to download and install the update?"}),e.jsxs(ye,{children:[e.jsx(E,{colorScheme:"red",ref:i,onClick:u,isDisabled:l,children:"Cancel"}),e.jsx(E,{colorScheme:"yellow",onClick:d,ml:3,isDisabled:l,children:"Confirm"})]})]})})})}function Mt(){if(!window.electron)return e.jsx(e.Fragment,{});const{colorMode:s}=$e(),a=t.useCallback(()=>{window.electron.minimizeWindow()},[]),o=t.useCallback(()=>{window.electron.maximizeWindow()},[]),n=t.useCallback(()=>{window.electron.closeWindow()},[]);return e.jsx(Ks.header,{w:"100%",position:"fixed",bgColor:s==="light"?"white":"#121212",className:"titanHead",zIndex:9999999,top:0,children:e.jsxs(M,{justifyContent:"space-between",alignItems:"center",p:2,position:"static",children:[e.jsx(Z,{as:"h6",size:"sm",noOfLines:1,className:"animation-fadein-left-forward",children:"Titan"}),e.jsxs(M,{alignItems:"center",columnGap:2,flexWrap:"nowrap",wrap:"nowrap",children:[e.jsx(H,{"aria-label":"Minimize",size:"xs",icon:e.jsx(Js,{}),onClick:a,colorScheme:"gray",_hover:{bg:"#FAF089",color:"#1A202C"}}),e.jsx(H,{"aria-label":"Maximize",size:"xs",icon:e.jsx(Xs,{}),onClick:o,colorScheme:"gray",_hover:{bg:"#FAF089",color:"#1A202C"}}),e.jsx(H,{"aria-label":"Close",size:"xs",icon:e.jsx(Ye,{}),onClick:n,colorScheme:"gray",_hover:{bg:"#FEB2B2",color:"#1A202C"}})]})]})})}function At(){const{isCommitMode:s,selectedBranches:a,configurableRowData:o}=V(),{RaiseClientNotificaiton:n}=ne();return t.useEffect(()=>{if(window.electron)return window.electron.onAppClosing(()=>{n("App is closing, performing cleanup...","info",0),window.electron.closeWindow()}),()=>{window.electron.removeAppClosingListener()};console.warn("Electron specific logic is not available in browser mode.")},[]),e.jsxs(b,{className:"titanBody",children:[e.jsx(Mt,{}),e.jsxs(b,{p:10,children:[e.jsx(ut,{}),e.jsx(Nt,{}),e.jsxs(M,{rowGap:4,flexDirection:"column",children:[e.jsx(b,{children:e.jsx(xt,{})}),e.jsx(Zs,{in:s,animateOpacity:!0,children:e.jsxs(b,{id:"sectionCommit",children:[e.jsxs(Z,{as:"h2",size:"lg",noOfLines:1,mb:4,className:"animation-pulse",lineHeight:"1.4",children:["Committing ",a.length==o.length?"All":`${a.length}/${o.length}`," Branch",a.length==1?"":"es"]}),e.jsx(Rt,{})]})})]}),e.jsx(Tt,{})]})]})}const{definePartsStyle:is,defineMultiStyleConfig:cs}=lt(at.keys),Lt=is({overlay:{bg:"blackAlpha.900"},dialog:{bg:"gray.900",color:"white",boxShadow:"rgba(255, 255, 255, 0.07) 0px 0px 20px 7px"},header:{bg:"gray.900",color:"white",borderRadius:"20px",p:4},body:{p:4,color:"white"},footer:{bg:"gray.900",p:4,color:"white",borderRadius:"20px"}}),Vt=cs({baseStyle:Lt}),Et=is({overlay:{bg:"blackAlpha.900"},dialog:{mt:ct,bg:"gray.900",color:"white",boxShadow:"rgba(255, 255, 255, 0.07) 0px 0px 20px 7px"},header:{bg:"gray.900",color:"white",borderRadius:"20px",p:4},body:{p:4,color:"white"},footer:{bg:"gray.900",p:2,color:"white",borderRadius:"20px"}}),Pt=cs({baseStyle:Et}),Ot={initialColorMode:"dark",useSystemColorMode:!1},He=et({config:Ot,components:{Modal:Vt,Drawer:Pt}});st.createRoot(document.getElementById("root")).render(e.jsx(Me.StrictMode,{children:e.jsxs(tt,{theme:He,children:[e.jsx(nt,{initialColorMode:He.config.initialColorMode}),e.jsx(dt,{children:e.jsx(At,{})})]})})); +import{r as t,u as ms,l as gs,R as Ee,j as e,T as I,I as _,d as Ge,W as Pe,e as Oe,L as Qe,f as xs,H as ee,g as Y,M as bs,h as ps,i as Cs,k as ws,m as js,n as Ss,o as ys,A as Ye,p as Ce,q as Ke,s as we,t as je,v as Be,B as z,D as ks,F as N,w as Bs,C as Te,x as De,y as Ds,z as vs,E as Je,G as Fs,J as Is,K as Xe,N as Rs,S as Ns,V as Ts,O as Ue,P as Ms,Q as Ze,U as es,X as As,Y as Ls,Z as Vs,_ as Es,$ as Ps,a0 as We,a1 as p,a2 as zs,a3 as Os,a4 as ve,a5 as U,a6 as Me,a7 as ae,a8 as re,a9 as ie,aa as le,ab as Us,ac as ss,ad as Z,ae as Ws,af as Hs,ag as $s,ah as He,ai as ye,aj as _s,ak as ke,al as de,am as Ae,an as Le,ao as qs,ap as Gs,aq as ts,ar as Qs,as as Ys,at as Ks,au as Js,av as ns,aw as ls,ax as be,ay as os,az as pe,aA as Xs,aB as Ve,aC as Zs,aD as et,aE as st,aF as tt,aG as nt,aH as lt,aI as ot,aJ as at,aK as rt,aL as it,aM as ct,aN as dt,aO as ut}from"./vendor.js";import{_ as G}from"./lodash.js";import{A as he}from"./ag-grid-react.js";import"./ag-grid-community.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function a(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=a(r);fetch(r.href,i)}})();const ht="/assets/Titan.png";function ue(s=[]){return(Array.isArray(s)?s:[s]).map(a=>(delete a["Branch Info"],a))}function Fe(s,o,a){return`${s==""?"Uncategorised":s} ${o==""?"Unversioned":o} ${String(a).split("\\").at(-1)}`}function ft(s){return String(s).split("\\").at(-1)}const mt="http://localhost:4000",gt="40px";function ce(s,o="info",a=3e3,n=!1){return{position:"top",variant:"solid",title:n?"Server Notification":"Client Notification",description:s,status:o,duration:a,isClosable:!0}}const as=t.createContext({socket:null,toast:null,config:null,updateConfig:s=>{},isDebug:!1,setIsDebug:s=>{},configurableRowData:[],setConfigurableRowData:s=>{},branchInfos:{},setBranchInfos:s=>{},branchTableGridRef:null,selectedBranches:[],setSelectedBranches:s=>{},showSelectedBranchesLog:!1,setShowSelectedBranchesLog:s=>{},customScripts:[],setCustomScripts:s=>{},isCommitMode:!1,setIsCommitMode:s=>{},selectedBranchStatuses:[],setSelectedBranchStatuses:s=>{},localChangesGridRef:null,untrackedChangesGridRef:null,showCommitView:!1,setShowCommitView:s=>{},sourceBranch:null,setSourceBranch:s=>{},branchOptions:[],issueNumber:{},setIssueNumber:s=>{},commitMessage:"",setCommitMessage:s=>{},selectedLocalChanges:[],setSelectedLocalChanges:s=>{},selectedUntrackedChanges:[],setSelectedUntrackedChanges:s=>{},socketPayload:null,setSocketPayload:s=>{},postCommitData:{},setPostCommitData:s=>{},logData:[],setLogData:s=>{}}),P=()=>t.useContext(as),xt=({children:s})=>{const[o,a]=t.useState(null),[n,r]=t.useState(null),i=ms(),[l,c]=t.useState(()=>localStorage.getItem("isDebug")==="true");t.useEffect(()=>{const j=gs(mt);return r(j),j.on("connect",()=>{j.emit("titan-config-get","fetch"),j.once("titan-config-get",V=>{a(V),V||i(ce("Couldn't load data from the server","error",0))})}),j.on("notification",V=>{i(ce(V.description,V.status,V.duration,!0))}),j.on("disconnect",()=>{i(ce("Server Has Been Disconnected","warning",0,!0))}),j.on("reconnect",()=>{i(ce("Server Has Been Reconnected","success",2e3,!0))}),()=>{j.disconnect()}},[]),t.useEffect(()=>{localStorage.setItem("isDebug",String(l))},[l]);const d=t.useCallback(j=>{j!=null&&(console.debug("Saving config:",j),n==null||n.emit("titan-config-set",j))},[n]),u=t.useCallback(j=>{a(V=>{const L=j(V);return G.isEqual(V,L)?V:(d(L),L)})},[a,d]),[h,x]=t.useState([]),[b,R]=t.useState({}),B=t.useRef(null),[m,g]=t.useState([]),[w,k]=t.useState(!1),[v,T]=t.useState([]),[C,D]=t.useState(!1),[A,M]=t.useState([]),E=t.useRef(null),$=t.useRef(null),[O,y]=t.useState(!1),[W,H]=t.useState(null),K=t.useMemo(()=>{let j=o&&o.commitOptions&&o.commitOptions.useFolderOnlySource,V=h.filter(L=>L["Branch Folder"]&&L["Branch Version"]&&L["SVN Branch"]&&L["Branch Folder"]!==""&&L["Branch Version"]!==""&&L["SVN Branch"]!=="");return j&&(V=V.reduce((L,Re)=>(L.some(Ne=>Ne["Branch Folder"]===Re["Branch Folder"])||L.push(Re),L),[])),V.map(L=>({value:L.id,label:j?L["Branch Folder"]:Fe(L["Branch Folder"],L["Branch Version"],L["SVN Branch"])}))},[o,m,h]),[X,se]=t.useState({}),[te,me]=t.useState(""),[S,f]=t.useState([]),[F,J]=t.useState([]),[ge,Ie]=t.useState(null),[Se,q]=t.useState({}),[Q,ne]=Ee.useState([]);return t.useEffect(()=>{M([]),y(!1)},[h]),t.useEffect(()=>{window.electron&&window.electron.fetchCustomScripts().then(j=>{if(j.success){T(j.scripts);return}i(ce(j.error,"error",0,!0))})},[h]),t.useEffect(()=>{if(!C||!O)return;const j=setTimeout(()=>{var V;(V=document.getElementById("sectionCommit"))==null||V.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},100);return()=>clearTimeout(j)},[C,O]),t.useEffect(()=>{if(m.length<1||O){m.length<1&&D(!1);return}M([]),Ie(null),ue(m).forEach(j=>{console.debug("Emitting svn-status-single for branch:",j),n==null||n.emit("svn-status-single",{selectedBranch:j})})},[n,m,O]),t.useEffect(()=>{const j=()=>{y(!1)};return n==null||n.on("branch-refresh-unseen",j),()=>n==null?void 0:n.off("branch-refresh-unseen",j)},[n]),t.useEffect(()=>{const j=V=>{l&&console.debug("Received branch status data:",V),M(L=>[...L,V])};return n==null||n.on("branch-status-single",j),()=>n==null?void 0:n.off("branch-status-single",j)},[n]),t.useEffect(()=>{ne([])},[m]),t.useEffect(()=>{Q.length===0&&n&&g(j=>(j.length>0&&n.emit("svn-log-selected",{selectedBranches:m}),j))},[Q,n]),t.useEffect(()=>{const j=V=>{console.debug("Received svn-log-result from socket in SectionBranchLog component in background"),ne(L=>L.some(Ne=>Ne.id===V.id)?L:[...L,V])};return n==null||n.on("svn-log-result",j),()=>n==null?void 0:n.off("svn-log-result",j)},[n]),e.jsx(as.Provider,{value:{socket:n,toast:i,config:o,updateConfig:u,isDebug:l,setIsDebug:c,configurableRowData:h,setConfigurableRowData:x,branchInfos:b,setBranchInfos:R,branchTableGridRef:B,selectedBranches:m,setSelectedBranches:g,showSelectedBranchesLog:w,setShowSelectedBranchesLog:k,customScripts:v,setCustomScripts:T,isCommitMode:C,setIsCommitMode:D,selectedBranchStatuses:A,setSelectedBranchStatuses:M,localChangesGridRef:E,untrackedChangesGridRef:$,showCommitView:O,setShowCommitView:y,sourceBranch:W,setSourceBranch:H,branchOptions:K,issueNumber:X,setIssueNumber:se,commitMessage:te,setCommitMessage:me,selectedLocalChanges:S,setSelectedLocalChanges:f,selectedUntrackedChanges:F,setSelectedUntrackedChanges:J,socketPayload:ge,setSocketPayload:Ie,postCommitData:Se,setPostCommitData:q,logData:Q,setLogData:ne},children:s})};function fe(){const{socket:s}=P(),o=t.useCallback(()=>{s==null||s.emit("titan-config-open",{})},[s]),a=t.useCallback((u,h,x,b)=>{s==null||s.emit("svn-update-single",{id:u,branch:h,version:x,folder:b})},[s]),n=t.useCallback((u,h,x,b)=>{s==null||s.emit("svn-info-single",{id:u,branch:h,version:x,folder:b})},[s]),r=t.useCallback(u=>{s==null||s.emit("svn-commit",u)},[s]),i=t.useCallback(u=>{s==null||s.emit("svn-files-revert",{filesToProcess:u})},[s]),l=t.useCallback(u=>{s==null||s.emit("svn-files-add-remove",{filesToProcess:u})},[s]),c=t.useCallback((u,h,x,b=null)=>{s==null||s.emit("trello-search-names-card",{key:u,token:h,query:x,limit:b})},[s]),d=t.useCallback((u,h,x,b)=>{s==null||s.emit("trello-update-card",{key:u,token:h,trelloData:x,commitResponses:b})},[s]);return{emitOpenConfig:o,emitUpdateSingle:a,emitInfoSingle:n,emitCommitPayload:r,emitFilesRevert:i,emitFilesAddRemove:l,emitTrelloCardNamesSearch:c,emitTrelloCardUpdate:d}}function oe(){const{toast:s}=P(),o=t.useCallback((a="",n="info",r=3e3,i=null)=>{const l=ce(a,n,r);if(s)return s(l);if(i)return i(l)},[s]);return{toast:s,RaiseClientNotificaiton:o}}function rs(s){const{icon:o,onClick:a,colorScheme:n,label:r,size:i}=s,l=t.useCallback(()=>{a&&a()},[a]);return e.jsx(I,{label:window.electron?r:"Feature must be used in desktop application",children:e.jsx(_,{"aria-label":r,size:i,icon:o,onClick:l,colorScheme:n,isDisabled:!window.electron})})}function xe(s){const{icon:o,onClick:a,colorScheme:n,label:r,size:i,placement:l,isDisabled:c=!1}=s,d=t.useCallback(()=>{a&&a()},[a]);return r&&l?e.jsx(I,{label:r,hasArrow:!0,placement:l,children:e.jsx(_,{"aria-label":r,size:i,icon:o,onClick:d,colorScheme:n,isDisabled:c})}):e.jsx(_,{"aria-label":r,size:i,icon:o,onClick:d,colorScheme:n,isDisabled:c})}function bt(){const{isDebug:s,setIsDebug:o}=P(),{emitOpenConfig:a}=fe(),{RaiseClientNotificaiton:n}=oe(),{colorMode:r,toggleColorMode:i}=Ge(),l=t.useCallback(()=>{window.electron&&window.electron.getAppVersion().then(x=>{n(`Application Version: v${x}`,"info",2e3)})},[n]),c=t.useCallback(()=>{window.location.reload()},[]),d=t.useCallback(()=>{window.electron.checkForUpdates().then(x=>{console.debug("Check for updates result: ",x)}),window.electron.on("update-not-available",()=>{n("Titan is up to date","info",3e3),window.electron.removeAllListeners("update-not-available")})},[n]),u=t.useCallback(()=>{a()},[a]),h=t.useCallback(()=>{o(x=>!x)},[o]);return e.jsxs(Pe,{my:5,spacingY:5,justify:"space-between",children:[e.jsxs(Oe,{alignItems:"center",children:[e.jsx(Qe,{onClick:l,children:e.jsx(xs,{src:ht,alt:"Titan Logo",boxSize:"100px",mr:5,borderRadius:"full"})}),e.jsx(ee,{as:"h2",size:"2xl",noOfLines:1,className:"animation-fadein-forward",children:"Welcome back"}),e.jsx(ee,{as:"h2",size:"2xl",noOfLines:1,p:2,className:"animation-handwave",children:"👋"})]}),e.jsxs(Oe,{alignItems:"center",columnGap:2,children:[e.jsx(xe,{icon:e.jsx(Y,{as:r==="light"?bs:ps}),onClick:i,colorScheme:"yellow",label:"Toggle Light/Dark Mode",placement:"bottom-start",size:"md"}),e.jsx(xe,{icon:e.jsx(Y,{as:Cs}),onClick:c,colorScheme:"yellow",label:"Reload",placement:"bottom-start",size:"md"}),e.jsx(rs,{icon:e.jsx(Y,{as:ws}),onClick:d,colorScheme:"yellow",label:"Check For Updates",size:"md"}),e.jsx(xe,{icon:e.jsx(Y,{as:js}),onClick:u,colorScheme:"yellow",label:"Open Config File",placement:"bottom-start",size:"md"}),e.jsx(xe,{icon:s?e.jsx(Y,{as:ys}):e.jsx(Y,{as:Ss}),onClick:h,colorScheme:"yellow",label:`Current Debug Mode: ${s?"on":"off"}`,placement:"bottom-start",size:"md"})]})]})}function pt({isAlertOpen:s,onCloseAlert:o,cancelRef:a,removeSelectedRows:n}){return e.jsx(Ye,{isOpen:s,leastDestructiveRef:a,onClose:o,children:e.jsx(Ce,{children:e.jsxs(Ke,{children:[e.jsx(we,{fontSize:"lg",fontWeight:"bold",children:"Delete Selected Rows"}),e.jsx(je,{children:"Are you sure you want to delete the selected rows? This action cannot be undone."}),e.jsxs(Be,{children:[e.jsx(z,{ref:a,onClick:o,children:"Cancel"}),e.jsx(z,{colorScheme:"red",onClick:n,ml:3,children:"Delete"})]})]})})})}function $e(){const{innerWidth:s,innerHeight:o}=window;return{width:s,height:o}}function Ct(){const[s,o]=t.useState($e());return t.useEffect(()=>{function a(){o($e())}return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),s}function wt({rowData:s,onRowValueChanged:o}){const{config:a,branchTableGridRef:n,updateConfig:r,isDebug:i,selectedBranches:l,setSelectedBranches:c,setSelectedBranchStatuses:d,customScripts:u,setShowCommitView:h}=P(),x=Ct(),[b,R]=t.useState(x.height>768),B=t.useCallback((C,D,A)=>{window.electron.runCustomScript({scriptType:C,scriptPath:D,branchData:A}).then(M=>{console.log("Custom Script Result: ",M)})},[]),m=t.useCallback(C=>{const D={...C,id:String(Date.now()),"Branch Info":"Hasn't been refreshed"};r(A=>({...A,branches:ue([...A.branches,D])}))},[r]),g=t.useCallback(C=>{var A,M,E,$;const D=(M=(A=n==null?void 0:n.current)==null?void 0:A.api)==null?void 0:M.getSelectedNodes().map(O=>O.data);if(i&&console.log("SectionBranches.jsx: onSelectionChanged - event",C),i&&console.log("SectionBranches.jsx: onSelectionChanged - selectedBranches",l),(C==null?void 0:C.source)=="rowDataChanged"){const O=l.map(y=>y.id);($=(E=n==null?void 0:n.current)==null?void 0:E.api)==null||$.forEachNode(y=>{O.includes(y.data.id)&&y.setSelected(!0)});return}else["api"].includes(C==null?void 0:C.source)||(c(D),d([]),h(!1))},[i,n,l,c,h]),w=t.useCallback(C=>{const D=[];C.api.forEachNode(A=>D.push(A.data)),i&&console.debug("SectionBranches.jsx: onRowDragEnd - movedRowData",D),r(A=>({...A,branches:ue(D)}))},[r,i]),k=t.useCallback(C=>{const D=a==null?void 0:a.branchFolderColours[C.data["Branch Folder"]];return{backgroundColor:D?`${D}20`:"transparent"}},[a==null?void 0:a.branchFolderColours]),v=t.useMemo(()=>({resizable:!0,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!0,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),T=t.useMemo(()=>{const C=[{headerCheckboxSelection:!0,checkboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0,width:25,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"Branch Folder",resizable:!1,width:130,valueFormatter:D=>D.value.toUpperCase()},{field:"Branch Version",resizable:!1,width:130},{field:"SVN Branch",flex:2},{field:"Branch Info",editable:!1,resizable:!1,width:125},{headerName:"",resizable:!0,sortable:!1,filter:!1,editable:!1,cellRenderer:D=>e.jsxs(N,{columnGap:1,children:[u.map(A=>e.jsx(rs,{icon:e.jsx(Bs,{}),onClick:()=>B(A.type,A.path,D.data),colorScheme:"yellow",label:A.fileName,size:"sm"})),e.jsx(xe,{icon:e.jsx(Te,{}),onClick:()=>m(D.data),colorScheme:"yellow",label:"Copy Row",size:"sm"})]})}];return b?[{field:"",rowDrag:!0,resizable:!1,filter:!1,suppressMovable:!1,editable:!1,width:20,cellRenderer:ks,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},...C]:C},[b,u,m]);return t.useEffect(()=>{R(x.height>768)},[x]),e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:b?"auto":"428px",width:"100%"},children:e.jsx(he,{ref:n,rowData:s,defaultColDef:v,columnDefs:T,stopEditingWhenCellsLoseFocus:!0,getRowStyle:k,onRowDragEnd:w,domLayout:b?"autoHeight":"normal",suppressRowClickSelection:!0,rowSelection:"multiple",rowMultiSelectWithClick:!0,animateRows:!0,rowDragManaged:!0,onSelectionChanged:g,onRowValueChanged:o,columnMenu:"new",editType:"fullRow",deltaRowDataMode:!0,getRowNodeId:C=>C.id,immutableData:!0,suppressFlash:!0,enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!b,paginationAutoPageSize:!1,paginationPageSizeSelector:!1,paginationPageSize:10})})}function jt(){const{updateConfig:s,isDebug:o,socket:a,configurableRowData:n,setConfigurableRowData:r,branchInfos:i,config:l,setBranchInfos:c,setSelectedBranches:d,setSelectedBranchStatuses:u,showCommitView:h,setShowCommitView:x}=P(),[b,R]=t.useState([]),B=t.useCallback(m=>{o&&console.log("AG Grid: onRowValueChanged - event",m),o&&console.log("AG Grid: onRowValueChanged - rowDataBranches",b),s(g=>({...g,branches:ue(b)}))},[b,s,o]);return t.useEffect(()=>{const m=G.debounce(()=>{const g=n.map(w=>({...w,"Branch Info":i[w.id]||"Hasn't been refreshed"}));R(w=>G.isEqual(g,w)?w:g)},300);return m(),()=>m.cancel()},[n,i]),t.useEffect(()=>{r(m=>l&&l.branches&&!G.isEqual(l.branches,m)?l.branches:m)},[l]),t.useEffect(()=>{const m=g=>{c(w=>{const k={...w,[g.id]:g.info};return console.debug("branch-info-single data received:",g),console.debug("branch-info-single newBranchInfos",k),d(v=>(v.find(C=>C.id===g.id)&&h&&(u([]),x(!1)),v)),k})};return a==null||a.on("branch-info-single",m),()=>a==null?void 0:a.off("branch-info-single")},[a,h]),{rowDataBranches:b,setRowDataBranches:R,onRowValueChanged:B}}function St(){const{socket:s,updateConfig:o,isDebug:a,setShowSelectedBranchesLog:n,configurableRowData:r,branchTableGridRef:i,selectedBranches:l,setSelectedBranches:c,isCommitMode:d,setIsCommitMode:u,setSelectedBranchStatuses:h,setShowCommitView:x}=P(),{emitUpdateSingle:b,emitInfoSingle:R}=fe(),{RaiseClientNotificaiton:B}=oe(),[m,g]=t.useState(!1),w=t.useRef(),k=()=>g(!1),{rowDataBranches:v,setRowDataBranches:T,onRowValueChanged:C}=jt(),[D,A]=t.useState(0),[M,E]=t.useState([]),$=t.useCallback(()=>{var S,f;a&&console.log("SectionBranches.jsx: clearSelection: START"),(f=(S=i==null?void 0:i.current)==null?void 0:S.api)==null||f.deselectAll(),c([]),u(!1)},[a,i,c]),O=t.useCallback(()=>{var f,F;const S=(F=(f=i==null?void 0:i.current)==null?void 0:f.api)==null?void 0:F.getSelectedNodes().map(J=>J.data);c(S),g(!0)},[i,c]),y=t.useCallback(()=>{const S={id:String(Date.now()),"Branch Folder":"","Branch Version":"","SVN Branch":"","Branch Info":""};o(f=>({...f,branches:ue([...f.branches,S])}))},[o]),W=t.useCallback(()=>{l.forEach(S=>{b(S.id,S["SVN Branch"],S["Branch Version"],S["Branch Folder"])})},[l,b]),H=t.useCallback(()=>{M.forEach(S=>{b(S.id,S["SVN Branch"],S["Branch Version"],S["Branch Folder"])})},[M,b]),K=t.useCallback(()=>{const S=l.map(F=>F.id),f=v.filter(F=>!S.includes(F.id));console.log("SectionBranches.jsx: removeSelectedRows - updatedData",f),o(F=>({...F,branches:ue(f)})),$(),k()},[l,v,o]),X=t.useCallback(()=>{n(!0)},[]),se=t.useCallback(()=>{T(S=>{const f=[...S];return l.forEach(F=>{const J=f.findIndex(ge=>ge.id===F.id);f[J]["Branch Info"]="Refreshing..."}),f}),l.forEach(S=>{R(S.id,S["SVN Branch"],S["Branch Version"],S["Branch Folder"])})},[l,R]),te=t.useCallback(()=>{if(d)return;B("Refreshing all branches. Please wait until this is done!","info",3e3);const S=Date.now();r.forEach(f=>{R(f.id,f["SVN Branch"],f["Branch Version"],f["Branch Folder"])}),A(S)},[r,R,B,d]),me=t.useCallback(()=>{u(S=>!S),x(!1)},[u]);return t.useEffect(()=>{const S=v.filter(f=>String(f["Branch Info"]).toLowerCase().includes("-"));E(S)},[v]),t.useEffect(()=>{const f=Date.now();if(r.length>0){f-D>3e5&&te();const F=setInterval(()=>{te()},3e5);return()=>clearInterval(F)}},[r,D,te]),t.useEffect(()=>{const S=f=>{a&&console.debug("branch-success-single data received:",f),R(f.id,f.branch,f.version,f.folder)};return s==null||s.on("branch-success-single",S),()=>s==null?void 0:s.off("branch-success-single",S)},[a,s,R]),e.jsxs("div",{children:[e.jsxs(Pe,{mb:4,justify:"space-between",children:[e.jsxs(N,{columnGap:2,children:[e.jsx(I,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(z,{onClick:se,leftIcon:e.jsx(De,{}),colorScheme:"yellow",isDisabled:l.length<1,children:["Refresh ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(I,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(z,{onClick:W,leftIcon:e.jsx(Y,{as:Ds}),colorScheme:"yellow",isDisabled:l.length<1,children:["Update ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(I,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsx(z,{onClick:me,leftIcon:e.jsx(Y,{as:d?vs:Je}),colorScheme:"yellow",isDisabled:l.length<1,children:d?"Undo Commit":"Commit"})}),e.jsx(I,{label:"Requires at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsx(z,{onClick:X,leftIcon:e.jsx(Fs,{}),colorScheme:"yellow",isDisabled:l.length<1,children:"View Logs"})})]}),e.jsx(N,{columnGap:2,children:e.jsx(I,{label:"No outdated branches to update",isDisabled:M.length>0,hasArrow:!0,children:e.jsx(z,{onClick:H,leftIcon:e.jsx(Is,{}),colorScheme:"yellow",isDisabled:M.length<1,children:"Update Outdated"})})})]}),e.jsx(wt,{rowData:v,onRowValueChanged:C}),e.jsxs(N,{columnGap:2,mt:4,children:[e.jsx(I,{label:"Please select at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(z,{onClick:$,leftIcon:e.jsx(Xe,{}),colorScheme:"red",isDisabled:l.length<1,children:["Deselect ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(I,{label:"Please select at least 1 branch",isDisabled:l.length>0,hasArrow:!0,children:e.jsxs(z,{onClick:O,leftIcon:e.jsx(Rs,{}),colorScheme:"red",isDisabled:l.length<1,children:["Delete ",l.length>0?`${l.length} Branch`:"",l.length>1?"es":""]})}),e.jsx(z,{onClick:y,leftIcon:e.jsx(Ns,{boxSize:8}),colorScheme:"green",children:"New Row"})]}),e.jsx(pt,{isAlertOpen:m,onCloseAlert:k,cancelRef:w,removeSelectedRows:K})]})}function is(s){const{data:o,onDiffResult:a}=s,n=t.useCallback(async()=>{try{const r=await window.electron.openTortoiseSVNDiff({fullPath:o["Full Path"],branchFolder:o["Branch Folder"],branchVersion:o["Branch Version"]});a(r)}catch(r){a({success:!1,error:r.message})}},[o,a]);return e.jsx(_,{"aria-label":"Diff",size:"sm",icon:e.jsx(Ts,{}),onClick:n,colorScheme:"yellow"})}function cs(){const{config:s}=P(),{emitTrelloCardNamesSearch:o,emitTrelloCardUpdate:a}=fe(),n=s==null?void 0:s.trelloIntegration,r=(n==null?void 0:n.key)||null,i=(n==null?void 0:n.token)||null,l=r&&i&&r.trim()!==""&&i.trim()!==""&&r.toUpperCase()!=="TRELLO_API_KEY"&&i.toUpperCase!=="TRELLO_TOKEN";return{key:r,token:i,isTrelloIntegrationEnabled:l,emitTrelloCardNamesSearch:o,emitTrelloCardUpdate:a}}function yt({isModalOpen:s,closeModal:o}){const{socket:a,setIsCommitMode:n,setSelectedBranchStatuses:r,setShowCommitView:i,socketPayload:l,postCommitData:c,setPostCommitData:d}=P(),{emitUpdateSingle:u,emitCommitPayload:h}=fe(),{key:x,token:b,isTrelloIntegrationEnabled:R,emitTrelloCardUpdate:B}=cs(),{RaiseClientNotificaiton:m}=oe(),[g,w]=t.useState([]),{onCopy:k,value:v,setValue:T,hasCopied:C}=Ue(""),{onCopy:D,value:A,setValue:M,hasCopied:E}=Ue(""),$=t.useCallback(f=>{f.success?m("TortoiseSVN diff opened successfully","success",3e3):m(`Error opening TortoiseSVN diff: ${JSON.stringify(f.error,null,4)}`,"error",0)},[m]),O=[{title:"Review",description:"Confirm SVN changes"},{title:"Commit",description:"Commit changes"},{title:"Complete",description:"Process Completed"}],{activeStep:y,setActiveStep:W}=Ms({index:1,count:O.length}),H=t.useMemo(()=>({resizable:!1,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),K=t.useMemo(()=>[{field:"Branch Folder"},{field:"Branch Version",sort:"asc"},{field:"File Path",flex:1},{field:"Local Status",headerTooltip:"Working Copy"},{headerName:"Diff",filter:!1,sortable:!1,cellRenderer:is,cellRendererParams:{onDiffResult:$},width:90}],[]),X=t.useCallback((f,F=!0)=>{const J="​".repeat(7),ge=f.includes("MarkupSupport")?`\r +${J}`:`\r +`,Se=g.sort((q,Q)=>q["Branch Version"].localeCompare(Q["Branch Version"])).map(q=>{const Q=[];f.includes("BranchFolder")&&Q.push(q["Branch Folder"]),f.includes("BranchVersion")&&Q.push(q["Branch Version"]),f.includes("SVNBranch")&&Q.push(q.branchPathFolder);let ne=Q.join(" ").trim();if(f.includes("IssueNumber")){const V=q.branchIssueNumber;ne+=` Issue [${V}]`}const j=q.revision?q.revision:q.errorMessage||"Error";return ne+=` Revision [${j}]`,ne});return F?Se.join(ge):Se},[g,l]),se=t.useCallback(f=>{const F=X(f);T(F)},[X,T]),te=t.useCallback(()=>{W(f=>f-1)},[W]),me=t.useCallback(()=>{if(c.type!=="trello"){m("Trello Autofill is not enabled for this commit","error");return}const f=c.data,F=X(["BranchFolder","BranchVersion","IssueNumber"],!1);B(x,b,f,F),m("Updating Trello card with commit information","info"),d(null)},[c,m,X]),S=t.useCallback(()=>{W(f=>{switch(f){case 1:h(l);case 2:T(""),M("");break;case 3:return k(),m("Updating selected branches! Please wait","info",1500),g.forEach(F=>{u(F.branchId,F["SVN Branch"],F["Branch Version"],F["Branch Folder"])}),n(!1),r([]),i(!1),o(),1}return f+1})},[W,h,l,T,M,k,m,g,u,n,r,i,o]);return t.useEffect(()=>{W(1),w([]),T(""),M("")},[s,w]),t.useEffect(()=>{!s||y!=0||(o(),W(1),w([]),T(""),M(""))},[y,s]),t.useEffect(()=>{!s||y!=3||(m("The commit process has been completed successfully","success",5e3),se(["BranchFolder","BranchVersion","SVNBranch"]),M(l.commitMessage||""))},[m,y,s,se]),t.useEffect(()=>{const f=F=>{w(J=>[...J,F])};return a==null||a.on("svn-commit-status-live",f),()=>a==null?void 0:a.off("svn-commit-status-live",f)},[a]),t.useEffect(()=>{if(y!=2)return;const f=setTimeout(()=>{g.length>0&&g[0].bulkCommitLength==g.length&&W(3)},3e3);return()=>clearTimeout(f)},[y,g]),t.useEffect(()=>{(C||E)&&m("Copied to Clipboard","success",1500)},[C,E,m]),!s||!l?e.jsx(e.Fragment,{}):e.jsxs(Ze,{isOpen:s,onClose:o,isCentered:!0,motionPreset:"slideInBottom",scrollBehavior:"inside",size:"xl",closeOnOverlayClick:y==1,children:[e.jsx(Ce,{}),e.jsxs(es,{maxH:"85%",maxW:"95%",children:[e.jsxs(we,{display:"flex",justifyContent:"space-between",maxWidth:y==1?"94%":"100%",children:[e.jsx(ee,{as:"h2",size:"lg",children:"Commit Selected Files"}),e.jsx(As,{index:y-1,mb:0,size:"sm",colorScheme:"yellow",children:O.map((f,F)=>e.jsxs(Ls,{children:[e.jsx(Vs,{children:e.jsx(Es,{complete:e.jsx(Ps,{}),incomplete:e.jsx(We,{}),active:e.jsx(We,{})})}),e.jsx(p,{flexShrink:"0",children:e.jsx(zs,{children:f.title})}),e.jsx(Os,{})]},F))})]}),y==1?e.jsx(ve,{size:"lg",py:6}):e.jsx(e.Fragment,{}),e.jsx(je,{children:e.jsxs(p,{children:[y!=1?e.jsx(e.Fragment,{}):e.jsxs(p,{children:[e.jsxs(p,{mb:4,children:[e.jsx(U,{fontWeight:600,children:"Please confirm that the following information is correct before proceeding to commit your files:"}),e.jsxs(Me,{spacing:3,children:[e.jsxs(ae,{children:[e.jsx(re,{as:ie,color:"yellow.500"}),"Source Branch: ",e.jsx(le,{children:Fe(l.sourceBranch["Branch Folder"],l.sourceBranch["Branch Version"],l.sourceBranch["SVN Branch"])})]}),e.jsxs(ae,{children:[e.jsx(re,{as:ie,color:"yellow.500"}),"Issue Numbers: ",e.jsx(le,{children:Object.entries(l.issueNumber).map(f=>`${f[1]} (${f[0]})`).join(", ")})]}),e.jsxs(ae,{children:[e.jsx(re,{as:ie,color:"yellow.500"}),"Commit Message: ",e.jsx(le,{children:l.commitMessage})]}),e.jsxs(ae,{children:[e.jsx(re,{as:ie,color:"yellow.500"}),"Example:"," ",e.jsxs(le,{children:["Issue ",l.issueNumber[l.sourceBranch["Branch Folder"]]," (",l.sourceBranch["Branch Folder"]," ",l.sourceBranch["Branch Version"],"): ",l.commitMessage]})]})]})]}),e.jsx(p,{children:e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"350px",width:"100%"},children:e.jsx(he,{rowData:l.filesToProcess,defaultColDef:H,columnDefs:K,domLayout:"normal",columnMenu:"new",pagination:!0,paginationAutoPageSize:!0})})})]}),y!=2?e.jsx(e.Fragment,{}):e.jsxs(p,{children:[e.jsxs(U,{fontWeight:600,children:["Please wait while the files are being committed to the SVN repository.",e.jsx("br",{}),"Current live status of the commit process:"]}),e.jsx(p,{children:e.jsx(Me,{spacing:3,children:g.map((f,F)=>e.jsxs(ae,{children:[e.jsx(re,{as:f.errorMessage?Us:ie,color:f.errorMessage?"red.500":"yellow.500"}),f.branchString,": ",e.jsx(le,{children:f.errorMessage||f.revision})]},F))})})]}),y!=3?e.jsx(e.Fragment,{}):e.jsxs(p,{children:[e.jsx(p,{mb:4,children:e.jsxs(U,{fontWeight:600,children:["The commit process has been completed successfully.",e.jsx("br",{}),"Please find your revisions here for view and copy:"]})}),e.jsxs(N,{columnGap:10,alignItems:"center",children:[e.jsxs(p,{children:[e.jsx(ee,{as:"h3",size:"md",children:"SVN Revisions"}),e.jsx(p,{children:e.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:v})})]}),e.jsx(p,{children:e.jsx(I,{hasArrow:!0,label:"Copy to clipboard",children:e.jsx(_,{"aria-label":"Copy To Clipboard",onClick:k,icon:e.jsx(Te,{}),colorScheme:"yellow"})})})]}),e.jsxs(p,{my:4,children:[e.jsx(U,{fontWeight:600,children:"Modify the clipboard text to include..."}),e.jsx(ss,{colorScheme:"yellow",defaultValue:["BranchFolder","BranchVersion"],onChange:se,children:e.jsxs(Pe,{children:[e.jsx(Z,{value:"BranchFolder",children:"Branch Folder"}),e.jsx(Z,{value:"BranchVersion",children:"Branch Version"}),e.jsx(Z,{value:"SVNBranch",children:"SVN Branch"}),e.jsx(Z,{value:"IssueNumber",children:"Issue Number"}),e.jsx(Z,{value:"MarkupSupport",children:"Markup Support"})]})})]}),e.jsxs(N,{columnGap:10,alignItems:"center",children:[e.jsxs(p,{children:[e.jsx(U,{fontWeight:600,children:"Here is your SVN commit message for the source branch:"}),l.sourceBranch&&l.sourceBranch["Branch Folder"]&&l.sourceBranch["Branch Version"]?e.jsx(le,{children:`Issue ${l.issueNumber[l.sourceBranch["Branch Folder"]]} (${l.sourceBranch["Branch Folder"]} ${l.sourceBranch["Branch Version"]}): ${A}`}):e.jsx(le,{children:"Source information is undefined. Please check that you have entered the correct details otherwise contact the developer!"})]}),e.jsx(I,{hasArrow:!0,label:"Copy to clipboard",children:e.jsx(_,{"aria-label":"Copy To Clipboard",onClick:D,icon:e.jsx(Te,{}),colorScheme:"yellow"})})]})]})]})}),e.jsx(Be,{children:e.jsxs(N,{flex:1,justifyContent:"space-between",children:[e.jsx(N,{columnGap:2,children:e.jsx(I,{hasArrow:!0,label:"Cannot undo the commit currently",isDisabled:y<2,children:e.jsx(z,{onClick:te,mr:3,isDisabled:y>=2,children:y==1?"Cancel":"Previous"})})}),e.jsxs(N,{columnGap:2,children:[e.jsx(I,{hasArrow:!0,label:"Requires Trello Autofill",isDisabled:(c==null?void 0:c.type)==="trello"&&R,children:e.jsx(z,{colorScheme:"yellow",leftIcon:e.jsx(Y,{as:Ws}),onClick:me,isDisabled:y<3||(c==null?void 0:c.type)!="trello"||!R,children:"Update Card"})}),e.jsx(I,{hasArrow:!0,label:"Cannot undo the commit currently",isDisabled:y!=2,children:e.jsx(z,{colorScheme:"yellow",onClick:S,isDisabled:y==2,children:y==O.length?"Complete":"Next"})})]})]})})]})]})}function kt({fileUpdates:s}){return e.jsx(p,{children:Object.keys(s).length>0?e.jsxs(p,{children:[e.jsx(U,{mb:4,children:"Below are the list of files which have been changed on your machine but there exists a newer version of them in the repository:"}),e.jsx(p,{maxHeight:"200px",overflowY:"auto",children:e.jsxs(Hs,{children:[e.jsx($s,{children:e.jsxs(He,{children:[e.jsx(ye,{children:"Branch"}),e.jsx(ye,{children:"Path"}),e.jsx(ye,{children:e.jsx(I,{label:"Working Copy",hasArrow:!0,children:"Local Status"})}),e.jsx(ye,{children:e.jsx(I,{label:"Repository",hasArrow:!0,children:"Remote Status"})})]})}),e.jsx(_s,{children:Object.keys(s).map(o=>e.jsx(Ee.Fragment,{children:s[o].map((a,n)=>e.jsxs(He,{children:[e.jsx(ke,{children:o}),e.jsx(ke,{children:a.pathDisplay}),e.jsx(ke,{children:a.wcStatus}),e.jsx(ke,{children:a.reposStatus})]},n))},o))})]})}),e.jsx(U,{mt:4,children:"If you wish to commit these files, please update the associated branches!"})]}):e.jsx(p,{children:e.jsx(U,{children:"Your selected branches do not contain any changed files for which a newer version exists in the repository."})})})}function Bt({rowDataLocalChanges:s,setRowDataLocalChanges:o,defaultColDefsCommit:a}){const{localChangesGridRef:n,isDebug:r,selectedBranches:i,showCommitView:l,setSelectedLocalChanges:c,selectedLocalChanges:d}=P(),{emitFilesRevert:u}=fe(),{RaiseClientNotificaiton:h}=oe(),[x,b]=t.useState(""),R=t.useCallback(()=>{u(d)},[u,d]),B=t.useCallback(k=>{b(k.target.value)},[b]),m=t.useCallback(k=>{var C,D,A,M;if(console.debug("PanelLocalChanges.jsx: onFileViewSelectionChanged - event",k),String(k==null?void 0:k.source).toLowerCase().includes("api"))return;let v=(D=(C=n==null?void 0:n.current)==null?void 0:C.api)==null?void 0:D.getSelectedNodes().map(E=>E.data);r&&console.debug("PanelLocalChanges.jsx: onFileViewSelectionChanged - selectedBranches",v);const T=v.filter(E=>E["Local Status"].toLowerCase()==="added");(M=(A=n==null?void 0:n.current)==null?void 0:A.api)==null||M.forEachNode(E=>{T.some(O=>O["File Path"].includes(E.data["File Path"])&&O["File Path"]!==E.data["File Path"])&&E.data["Local Status"].toLowerCase()==="added"&&!E.isSelected()&&(E.setSelected(!0),v.push(E.data),console.debug("PanelLocalChanges.jsx (onFileViewSelectionChanged): Adding ancestor node: ",E))}),c(v)},[n,r,c]),g=t.useCallback(k=>{k.success?h("TortoiseSVN diff opened successfully","success",3e3):h(`Error opening TortoiseSVN diff: ${JSON.stringify(k.error,null,4)}`,"error",0)},[h]),w=t.useMemo(()=>[{headerCheckboxSelection:!0,checkboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"Branch Folder"},{field:"Branch Version",sort:"asc",sortIndex:0},{field:"File Path",flex:1,sort:"asc",sortIndex:2},{field:"Local Status",headerTooltip:"Working Copy",sort:"asc",sortIndex:1},{headerName:"Diff",filter:!1,sortable:!1,resizable:!1,cellRenderer:is,cellRendererParams:{onDiffResult:g},width:90}],[]);return t.useEffect(()=>{i.length<1||l||(b(""),o([]),c([]))},[i,l]),e.jsx(p,{children:s.length>0?e.jsxs(p,{children:[e.jsxs(N,{mb:4,alignItems:"center",children:[e.jsx(U,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(de,{placeholder:"Type to search...",onInput:B,width:"100%"})]}),e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"480px",width:"100%"},children:e.jsx(he,{ref:n,rowData:s,defaultColDef:a,columnDefs:w,onSelectionChanged:m,quickFilterText:x,domLayout:"normal",rowSelection:"multiple",suppressRowClickSelection:!0,rowMultiSelectWithClick:!0,animateRows:!0,columnMenu:"new",enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!0,paginationAutoPageSize:!0})}),e.jsx(N,{mt:4,columnGap:2,justifyContent:"flex-end",children:e.jsx(I,{label:"Requires you to select at least 1 file",hasArrow:!0,isDisabled:d.length>0,children:e.jsx(z,{onClick:R,colorScheme:"red",isDisabled:d.length<1,children:"Revert Selected"})})})]}):e.jsx(p,{children:e.jsx(U,{children:"Your selected branches do not contain any files to commit."})})})}function Dt({rowDataUntrackedChanges:s,setRowDataUntrackedChanges:o,defaultColDefsCommit:a}){const{untrackedChangesGridRef:n,selectedUntrackedChanges:r,setSelectedUntrackedChanges:i,isDebug:l,selectedBranches:c,showCommitView:d}=P(),{emitFilesAddRemove:u,emitFilesRevert:h}=fe(),[x,b]=t.useState(""),R=t.useCallback(k=>{b(k.target.value)},[b]),B=t.useCallback(()=>{var v,T;const k=(T=(v=n==null?void 0:n.current)==null?void 0:v.api)==null?void 0:T.getSelectedNodes().map(C=>C.data);l&&console.debug("PanelUntrackedChanges.jsx (onUnseenFilesSelectionChanged): selectedBranches",k),i(k)},[n,l]),m=t.useCallback(()=>{u(r)},[u,r]),g=t.useCallback(()=>{h(r)},[h,r]),w=t.useMemo(()=>[{headerCheckboxSelection:!0,checkboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"Branch Folder"},{field:"Branch Version",sort:"asc",sortIndex:0},{field:"File Path",flex:1,sort:"asc",sortIndex:1},{field:"Local Status",headerTooltip:"Working Copy"}],[]);return t.useEffect(()=>{c.length<1||d||(b(""),o([]),i([]))},[c,d]),e.jsx(p,{children:s.length>0?e.jsxs(p,{children:[e.jsx(U,{mb:4,children:"Below are the list of files which are either unversioned or missing in the repository:"}),e.jsxs(N,{mb:4,alignItems:"center",children:[e.jsx(U,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(de,{placeholder:"Type to search...",onInput:R,width:"100%"})]}),e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"390px",width:"100%"},children:e.jsx(he,{ref:n,rowData:s,defaultColDef:a,columnDefs:w,onSelectionChanged:B,quickFilterText:x,domLayout:"normal",rowSelection:"multiple",rowMultiSelectWithClick:!0,animateRows:!0,columnMenu:"new",enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!0,paginationAutoPageSize:!0})}),e.jsxs(N,{mt:4,columnGap:2,justifyContent:"flex-end",children:[e.jsx(I,{label:"Requires you to select at least 1 file",hasArrow:!0,isDisabled:r.length>0,children:e.jsxs(z,{onClick:m,colorScheme:"green",isDisabled:r.length<1,children:["Add/Remove ",r.length," File",r.length>1?"s":""]})}),e.jsx(I,{label:"Requires you to select at least 1 file",hasArrow:!0,isDisabled:r.length>0,children:e.jsxs(z,{onClick:g,colorScheme:"red",isDisabled:r.length<1,children:["Revert ",r.length," File",r.length>1?"s":""]})})]})]}):e.jsx(p,{children:e.jsx(U,{children:"Your selected branches do not contain any unversioned or missing files."})})})}function ze(){const{config:s}=P();return s&&s.commitOptions?s.commitOptions:null}function _e({branchFolder:s}){const{issueNumber:o,setIssueNumber:a,selectedBranches:n}=P(),r=ze(),i=t.useCallback(d=>{const u=String(d.target.value||"").trim();/^\d*$/.test(u)&&a(h=>({...h,[s]:u}))},[s,a]),l=!s,c=!s||!(r!=null&&r.useIssuePerFolder)?!0:n==null?void 0:n.map(d=>d["Branch Folder"]).includes(s);return t.useEffect(()=>(s&&a(d=>({...d,[s]:""})),()=>{s&&Object.keys(o).includes(s)&&a(d=>G.omit(d,[s]))}),[s,a]),e.jsx(I,{label:"Please select source branch first!",isDisabled:!l,hasArrow:!0,children:e.jsxs(Ae,{isDisabled:l,isRequired:c,children:[e.jsx(Le,{children:s?`Issue Number For ${s}`:"Issue Number"}),e.jsx(de,{value:o[s]||"",onInput:i,placeholder:"Enter number"})]},s)})}function ds(){const{configurableRowData:s,sourceBranch:o,selectedBranches:a}=P(),n=t.useCallback(c=>s&&s.length>0?s.find(d=>d.id==c)["Branch Folder"]:"",[s]),r=t.useMemo(()=>{if(!(o!=null&&o.value))return[];const c=n(o.value);return[...new Set(a.filter(d=>d["Branch Folder"]!==c).map(d=>d["Branch Folder"]))]},[o,a,n]),i=t.useCallback(c=>s&&s.length>0?s.find(d=>d.id==c)["Branch Version"]:"",[s]),l=t.useCallback(c=>s&&s.length>0?s.find(d=>d.id==c)["SVN Branch"]:"",[s]);return{getBranchFolderById:n,selectedBranchFolders:r,getBranchVersionById:i,getSvnBranchById:l}}function vt({openMessageAutoFillModal:s}){const{sourceBranch:o,setSourceBranch:a,branchOptions:n,setIssueNumber:r,commitMessage:i,setCommitMessage:l,isCommitMode:c,selectedBranches:d}=P(),u=ze(),{getBranchFolderById:h,selectedBranchFolders:x}=ds(),b=t.useCallback(B=>{a(B)},[a]),R=t.useCallback(B=>{l(String(B.target.value).replace(/["`]/g,"'"))},[l]);return t.useEffect(()=>{c&&(a(null),r({}))},[c]),t.useEffect(()=>{u!=null&&u.reusePreviousCommitMessage||l("")},[u==null?void 0:u.reusePreviousCommitMessage,l,c]),t.useEffect(()=>{r(B=>Object.fromEntries(Object.entries(B).filter(([m])=>d.some(g=>g["Branch Folder"]===m))))},[d]),e.jsx(p,{children:e.jsxs(N,{columnGap:3,children:[e.jsxs(p,{flexGrow:1,children:[e.jsxs(N,{columnGap:2,mb:2,children:[e.jsx(p,{width:"50%",children:e.jsxs(Ae,{isRequired:!0,children:[e.jsx(Le,{children:"Source Branch"}),e.jsx(qs,{value:o,onChange:b,options:n,placeholder:"SVN Branch you're commiting from",selectedOptionStyle:"check",selectedOptionColorScheme:"yellow",isClearable:!0,classNamePrefix:"chakra-react-select"})]})}),e.jsx(N,{width:"50%",alignItems:"flex-end",columnGap:2,children:e.jsx(_e,{branchFolder:o&&o.value?h(o.value):null})})]}),e.jsxs(N,{columnGap:2,height:"auto",children:[e.jsxs(Ae,{width:u!=null&&u.useIssuePerFolder?"50%":"100%",isRequired:!0,children:[e.jsx(Le,{children:"Commit Message"}),e.jsx(Gs,{placeholder:"Enter Commit Message",height:"76%",resize:"none",onInput:R,value:i})]}),u!=null&&u.useIssuePerFolder?o!=null&&o.value?e.jsx(N,{width:"50%",flexDir:"column",rowGap:2,children:x.map(B=>e.jsx(_e,{branchFolder:B},B))}):e.jsx(p,{width:"50%",textAlign:"center",m:"auto",children:e.jsx(U,{fontSize:"lg",fontWeight:"600",color:"yellow.500",children:"Please select source branch first!"})}):null]})]}),e.jsx(p,{pt:8,children:e.jsx(I,{label:o!=null&&o.value?"Auto Fill Message":"Please select source branch first!",hasArrow:!0,placement:"bottom-end",children:e.jsx(_,{colorScheme:"yellow","aria-label":"Auto Fill Message",size:"md",onClick:()=>s(),icon:e.jsx(ts,{}),isDisabled:!(o!=null&&o.value)})})})]})})}function Ft({openCommitModal:s}){const{setShowCommitView:o,selectedLocalChanges:a,sourceBranch:n,issueNumber:r,commitMessage:i,setSocketPayload:l,configurableRowData:c,selectedBranches:d}=P(),{RaiseClientNotificaiton:u}=oe(),h=ze(),{selectedBranchFolders:x}=ds(),b=t.useCallback(()=>{o(!1)},[o]),R=t.useCallback(()=>{if(!n||n.value===""){u("Please select the source branch to proceed!","error");return}const B=c.find(w=>w.id==n.value),m=h!=null&&h.useIssuePerFolder?x.every(w=>r[w]&&r[w]!==""):!0,g=h!=null&&h.useIssuePerFolder&&!d.some(w=>w["Branch Folder"]===B["Branch Folder"])||r[B["Branch Folder"]];if(!r||G.isEmpty(r)||!m||!g){u("Please provide the issue number to proceed!","error");return}if(!i||i.trim()===""){u("Please provide the commit message to proceed!","error");return}l({sourceBranch:B,issueNumber:r,commitMessage:i,filesToProcess:a,commitOptions:h}),s()},[u,n,c,h,x,r,d,i,a]);return e.jsx(p,{children:e.jsxs(N,{columnGap:2,justifyContent:"center",children:[e.jsx(z,{onClick:b,leftIcon:e.jsx(De,{}),colorScheme:"yellow",children:"Refresh Process"}),e.jsx(I,{label:"Select at least 1 file",hasArrow:!0,isDisabled:a.length>0,children:e.jsxs(z,{onClick:R,leftIcon:e.jsx(Y,{as:Je}),colorScheme:"yellow",isDisabled:a.length<1,children:["Commit ",a.length>0?`${a.length} File`:"",a.length>1?"s":""]})})]})})}function It(){const{selectedBranches:s,logData:o,setLogData:a}=P(),[n,r]=t.useState([]),[i,l]=t.useState(""),c=t.useCallback(h=>{l(h.target.value)},[l]),d=t.useCallback(()=>{a([])},[a]),u=o.length===s.length;return t.useEffect(()=>{if(o.length===0)return;const h=o.map(x=>x.logs).flat();r(x=>G.isEqual(x,h)?x:h)},[o]),{rowDataLogs:n,quickFilterLogsText:i,setQuickFilterLogsText:l,onQuickFilterLogsInputChanged:c,refreshLogs:d,areLogsFetched:u}}function Rt({rowDataLogs:s,quickFilterLogsText:o,setAutoFillSelection:a=null,isAutofill:n=!1}){const r=t.useMemo(()=>({sortable:!0,resizable:!1,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),i=t.useMemo(()=>{const d=[{field:"revision",headerName:"Revision",sort:"desc",width:130},{field:"date",headerName:"Date",sortable:!1},{field:"branchFolder",headerName:"Branch Folder",width:135},{field:"branchVersion",headerName:"Branch Version",width:125},{field:"author",headerName:"Author"},{field:"message",headerName:"Message",flex:1}];return n?[{checkboxSelection:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},...d]:d},[n]),l=t.useRef(null),c=t.useCallback(()=>{var d,u;if(a){const h=(u=(d=l==null?void 0:l.current)==null?void 0:d.api)==null?void 0:u.getSelectedNodes().map(x=>x.data);a(h[0]||null)}},[a]);return e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:n?"90%":"85%",width:"100%"},children:e.jsx(he,{ref:l,rowData:s,defaultColDef:r,columnDefs:i,onSelectionChanged:c,quickFilterText:o,domLayout:"normal",columnMenu:"new",rowSelection:"single",suppressRowClickSelection:!n,animateRows:!1,immutableData:!0,suppressFlash:!0,enableCellTextSelection:!0,ensureDomOrder:!0,pagination:!0,paginationAutoPageSize:!0})})}function us({setAutoFillSelection:s=!1,isAutofill:o=!1}){const{selectedBranches:a,logData:n}=P(),{rowDataLogs:r,quickFilterLogsText:i,onQuickFilterLogsInputChanged:l,refreshLogs:c,areLogsFetched:d}=It();return d?e.jsxs(p,{h:"100%",children:[e.jsxs(N,{mb:4,width:"100%",alignItems:"center",columnGap:4,children:[e.jsxs(N,{alignItems:"center",width:"100%",children:[e.jsx(U,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(de,{placeholder:"Type to search...",onInput:l,width:"100%"})]}),e.jsx(p,{children:e.jsx(I,{label:"Refresh",hasArrow:!0,children:e.jsx(_,{onClick:c,icon:e.jsx(De,{}),colorScheme:"yellow","aria-label":"Refresh"})})})]}),e.jsx(Rt,{rowDataLogs:r,quickFilterLogsText:i,setAutoFillSelection:s,isAutofill:o})]}):e.jsxs(p,{children:[e.jsxs(p,{mb:4,children:[e.jsx(U,{fontWeight:600,children:"Showing SVN Log for the following branches:"}),e.jsx(Me,{spacing:3,children:a.map(u=>{const h=n.find(x=>x.id===u.id);return e.jsxs(ae,{display:"flex",alignItems:"center",children:[e.jsx(re,{w:30,h:30,as:h?ie:Qs,color:"yellow.500"}),Fe(u["Branch Folder"],u["Branch Version"],u["SVN Branch"])]},u.branchId)})})]}),e.jsx(N,{justifyContent:"center",children:e.jsx(Ys,{value:n.length/a.length*360,color:"yellow.300",size:"100px",children:e.jsxs(Ks,{children:[n.length," / ",a.length]})})})]})}function Nt(s){const{data:o}=s,a=async()=>{window.open(o.url,"_blank")};return e.jsx(_,{"aria-label":"Diff",size:"sm",icon:e.jsx(Js,{}),onClick:a,colorScheme:"yellow"})}function Tt({rowDataTrello:s,quickFilterTrelloText:o,setAutoFillSelection:a}){const n=t.useMemo(()=>({sortable:!0,resizable:!1,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]),r=t.useMemo(()=>[{checkboxSelection:!0,width:20,resizable:!1,suppressMovable:!1,filter:!1,editable:!1,headerClass:"branch-table-header-cell",cellClass:"branch-table-body-cell"},{field:"name",headerName:"Name",flex:1},{field:"lastActivityDate",headerName:"Last Activity Date"},{field:"url",headerName:"Goto Trello",filter:!1,sortable:!1,resizable:!1,cellRenderer:Nt,width:120}],[]),i=t.useRef(null),l=t.useCallback(()=>{var d,u;const c=(u=(d=i==null?void 0:i.current)==null?void 0:d.api)==null?void 0:u.getSelectedNodes().map(h=>h.data);a(c[0]||null)},[a]);return e.jsx("div",{className:"ag-theme-balham-dark compact",style:{height:"80%",width:"100%"},children:e.jsx(he,{ref:i,rowData:s,defaultColDef:n,columnDefs:r,onSelectionChanged:l,quickFilterText:o,domLayout:"normal",columnMenu:"new",rowSelection:"single",suppressRowClickSelection:!1,animateRows:!1,enableCellTextSelection:!0,pagination:!0,paginationAutoPageSize:!0})})}function Mt({setAutoFillSelection:s}){const{socket:o}=P(),{key:a,token:n,isTrelloIntegrationEnabled:r,emitTrelloCardNamesSearch:i}=cs(),[l,c]=t.useState(""),[d,u]=t.useState(""),[h,x]=t.useState([]),b=t.useCallback(G.debounce(g=>{g.trim()!==""&&i(a,n,g)},400),[a,n,i]),R=t.useCallback(g=>{c(String(g.target.value).trim())},[c]),B=t.useCallback(()=>{l.trim()!==""&&i(a,n,l)},[l,a,n,i]),m=t.useCallback(g=>{u(g.target.value)},[]);return t.useEffect(()=>(b(l),()=>b.cancel()),[l,b]),t.useEffect(()=>{const g=w=>{x(w&&w.length>0?w:[])};return o==null||o.on("trello-result-search-names-card",g),()=>o==null?void 0:o.off("trello-result-search-names-card",g)},[o]),r?e.jsxs(p,{h:"100%",children:[e.jsxs(N,{mb:4,width:"100%",alignItems:"center",columnGap:4,children:[e.jsxs(N,{alignItems:"center",width:"100%",children:[e.jsx(U,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Trello Query:"}),e.jsx(de,{placeholder:"Type to search...",onInput:R,width:"100%"})]}),e.jsx(p,{children:e.jsx(I,{label:"Resubmit Query",hasArrow:!0,children:e.jsx(_,{onClick:B,icon:e.jsx(De,{}),colorScheme:"yellow","aria-label":"Resubmit"})})})]}),e.jsx(N,{mb:4,width:"100%",alignItems:"center",columnGap:4,children:e.jsxs(N,{alignItems:"center",width:"100%",children:[e.jsx(U,{mr:2,fontWeight:"600",whiteSpace:"nowrap",children:"Quick Filter:"}),e.jsx(de,{placeholder:"Type to search...",onInput:m,width:"100%"})]})}),e.jsx(Tt,{rowDataTrello:h,quickFilterTrelloText:d,setAutoFillSelection:s})]}):e.jsx(p,{h:"100%",p:4,children:e.jsxs(U,{fontSize:"lg",fontWeight:"600",color:"red.500",children:["You need to"," ",e.jsxs(Qe,{href:"https://help.merge.dev/en/articles/8757597-trello-how-do-i-link-my-account",isExternal:!0,color:"yellow.500",children:["set up Trello Integration ",e.jsx(ts,{mx:"2px"})]})," ","in the configuration file to use this feature."]})})}function At({isModalOpen:s,closeModal:o}){const{setIssueNumber:a,setCommitMessage:n,setPostCommitData:r}=P(),[i,l]=t.useState(0),[c,d]=t.useState([null,null]),[u,h]=t.useState(!0),x=t.useCallback(m=>{l(m),d(m===0?g=>[g[0],null]:g=>[null,g[1]])},[l]),b=t.useCallback(m=>{d(g=>[m,...g.slice(1)])},[d]),R=t.useCallback(m=>{d(g=>[g[0],m])},[d]),B=t.useCallback(()=>{console.debug("Selected tab index:",i),console.debug("Selected autofill selection:",JSON.stringify(c,null,4));let m=c[i];if(i===0){const g=m.message,w=g.match(/\s*(Issue)*\s*(\d+)\s*/),k=w?w[2]:null,v=g.replace(/\s*(Issue)*\s*(\d+)?\s*(\([^\)]+\))*\s?:?\s*/,"");k&&a(T=>Object.fromEntries(Object.keys(T).map(C=>[C,k]))),v.trim()!==""&&n(v)}else{const g=m.name,w=g.match(/\s*(Issue)*\s*(\d+)\s*/),k=w?w[2]:null,v=g.replace(/\s*(Issue)*\s*(\d+)/,"");k&&a(T=>Object.fromEntries(Object.keys(T).map(C=>[C,k]))),v.trim()!==""&&n(v),r({type:"trello",data:m})}o()},[i,c,a,n,r,o]);return t.useEffect(()=>{h(!(c.length==2&&(c[0]||c[1])))},[c]),t.useEffect(()=>{d([null,null]),l(0)},[s]),e.jsxs(Ze,{isOpen:s,onClose:o,isCentered:!0,motionPreset:"slideInBottom",scrollBehavior:"inside",size:"xl",closeOnOverlayClick:!0,children:[e.jsx(Ce,{}),e.jsxs(es,{maxH:"95%",maxW:"95%",children:[e.jsx(we,{children:e.jsx(ee,{as:"h2",size:"lg",children:"Autofill Commit Message"})}),e.jsx(ve,{size:"lg"}),e.jsx(je,{children:e.jsx(p,{height:"70vh",children:e.jsxs(ns,{variant:"solid-rounded",colorScheme:"yellow",defaultIndex:0,isLazy:!0,h:"100%",onChange:m=>x(m),children:[e.jsxs(ls,{children:[e.jsx(be,{children:"SVN Logs"}),e.jsx(be,{children:"Trello"})]}),e.jsxs(os,{h:"90%",children:[e.jsx(pe,{px:0,pb:0,h:"100%",children:e.jsx(us,{setAutoFillSelection:b,isAutofill:!0})}),e.jsx(pe,{px:0,pb:0,h:"100%",children:e.jsx(Mt,{setAutoFillSelection:R})})]})]})})}),e.jsxs(Be,{children:[e.jsx(z,{mr:3,onClick:()=>o(),children:"Cancel"}),e.jsx(I,{hasArrow:!0,label:"Please select exactly one row!",placement:"top-start",isDisabled:!u,children:e.jsx(z,{colorScheme:"yellow",onClick:B,isDisabled:u,children:"Select"})})]})]})]})}function Lt(){const{config:s,updateConfig:o,setSourceBranch:a,setIssueNumber:n}=P(),[r,i]=t.useState({}),l=t.useCallback((c,d)=>{i(u=>({...u,[c]:d}))},[i]);return t.useEffect(()=>{!s||G.isEmpty(s)||(s.commitOptions?i(s.commitOptions):o(c=>({...c,commitOptions:{useFolderOnlySource:!1,useIssuePerFolder:!1,reusePreviousCommitMessage:!1}})))},[s]),t.useEffect(()=>{G.isEmpty(r)||o(c=>G.isEqual(c.commitOptions,r)?c:{...c,commitOptions:r})},[r]),t.useEffect(()=>{a(null)},[r==null?void 0:r.useFolderOnlySource,a]),t.useEffect(()=>{n({})},[r==null?void 0:r.useIssuePerFolder,n]),e.jsxs(p,{mb:4,children:[e.jsx(ee,{as:"h6",size:"sm",children:"Commit Options"}),e.jsx(ss,{colorScheme:"yellow",children:e.jsxs(Xs,{direction:"row",spacing:4,mt:2,children:[e.jsx(Z,{isChecked:r.useFolderOnlySource,onChange:c=>l("useFolderOnlySource",c.target.checked),children:e.jsx(I,{label:"Removes extra branch details from source branch.",hasArrow:!0,placement:"bottom-start",children:"Use Folder Only Source Branch?"})}),e.jsx(Z,{isChecked:r.useIssuePerFolder,onChange:c=>l("useIssuePerFolder",c.target.checked),children:e.jsx(I,{label:"Allows users to input issue number for each branch folder.",hasArrow:!0,placement:"bottom-start",children:"Use 1 Issue Per Folder?"})}),e.jsx(Z,{isChecked:r.reusePreviousCommitMessage,onChange:c=>l("reusePreviousCommitMessage",c.target.checked),children:e.jsx(I,{label:"Reuses the commit message from the previous commit made in Titan.",hasArrow:!0,children:"Reuse Previous Commit Message?"})})]})})]})}function Vt(){const{isDebug:s,setIsCommitMode:o,selectedBranchStatuses:a,showCommitView:n,setShowCommitView:r,selectedBranches:i,configurableRowData:l}=P(),[c,d]=t.useState({}),[u,h]=t.useState([]),[x,b]=t.useState([]),{isOpen:R,onOpen:B,onClose:m}=Ve(),{isOpen:g,onOpen:w,onClose:k}=Ve(),v=t.useMemo(()=>({resizable:!0,wrapText:!0,autoHeight:!0,filter:!0,suppressMovable:!0,editable:!1,wrapHeaderText:!0,autoHeaderHeight:!0}),[]);t.useEffect(()=>{if(i.length<1||n){i.length<1&&o(!1);return}d({})},[i,n]),t.useEffect(()=>{s&&(console.debug("Branch Status Rows:",a),console.debug("Selected Rows:",i))},[s,a,i]),t.useEffect(()=>{a.length===i.length&&(a.forEach(M=>{let E=M.id,$=M.status.filesToCommit,O=M.status.filesToUpdate;const y=l.find(W=>W.id===E);if(O.length>0){const W=Fe(y["Branch Folder"],y["Branch Version"],y["SVN Branch"]);d(H=>({...H,[W]:[...H[W]||[],...O]}))}if($.length>0){const W=$.map(H=>({branchId:E,"Branch Folder":y["Branch Folder"],"Branch Version":y["Branch Version"],"SVN Branch":y["SVN Branch"],"Full Path":H.path,"File Path":`${ft(M.status.branch)}\\${H.pathDisplay}`,"Local Status":H.wcStatus}));h(H=>[...H,...W.filter(K=>!["unversioned","missing"].includes(K["Local Status"]))]),b(H=>[...H,...W.filter(K=>["unversioned","missing"].includes(K["Local Status"]))])}}),r(!0))},[a,i,l]);const T=Object.keys(c).length>0,C=u.length>0,D=x.length>0,A=T||C||D;return e.jsxs(p,{children:[e.jsx(Lt,{}),e.jsx(p,{mb:6,children:e.jsx(vt,{openMessageAutoFillModal:w})}),e.jsx(Zs,{isLoaded:n&&A,startColor:"yelow.500",endColor:"yellow.500",children:e.jsxs(ns,{variant:"solid-rounded",colorScheme:"yellow",defaultIndex:T?0:C?1:2,isLazy:!1,children:[e.jsxs(ls,{children:[e.jsx(be,{isDisabled:!T,children:e.jsx(I,{label:"No files to update!",hasArrow:!0,isDisabled:T,children:"Files to Update"})}),e.jsx(be,{isDisabled:!C,children:e.jsx(I,{label:"No files to commit!",hasArrow:!0,isDisabled:C,children:"Local Changes"})}),e.jsx(be,{isDisabled:!D,children:e.jsx(I,{label:"No unversioned/missing files!",hasArrow:!0,isDisabled:D,children:"Untracked Changes"})})]}),e.jsxs(os,{children:[e.jsx(pe,{px:0,children:e.jsx(kt,{fileUpdates:c})}),e.jsx(pe,{px:0,children:e.jsx(Bt,{rowDataLocalChanges:u,setRowDataLocalChanges:h,defaultColDefsCommit:v})}),e.jsx(pe,{px:0,children:e.jsx(Dt,{rowDataUntrackedChanges:x,setRowDataUntrackedChanges:b,defaultColDefsCommit:v})})]})]})}),n&&!A?e.jsxs(U,{mt:4,className:"animation-pulse",fontWeight:600,textAlign:"center",children:["No changes have been spotted!",e.jsx("br",{}),"Please use the refresh button 👇 if you have recently made a change"]}):e.jsx(e.Fragment,{}),e.jsx(p,{mt:6,children:e.jsx(Ft,{openCommitModal:B})}),e.jsx(yt,{isModalOpen:R,closeModal:m}),e.jsx(At,{isModalOpen:g,closeModal:k})]})}function Et(){const{showSelectedBranchesLog:s,setShowSelectedBranchesLog:o}=P();return e.jsxs(et,{isOpen:s,onClose:()=>o(!1),placement:"left",size:"full",children:[e.jsx(Ce,{}),e.jsxs(st,{children:[e.jsx(ve,{size:"lg"}),e.jsx(we,{children:"Selected Branches: SVN Log"}),e.jsx(je,{children:e.jsx(p,{height:"100%",children:e.jsx(us,{})})})]})]})}function Pt(){const{toast:s,RaiseClientNotificaiton:o}=oe(),{isOpen:a,onOpen:n,onClose:r}=Ve(),i=t.useRef(),[l,c]=t.useState(!1);t.useEffect(()=>{if(!window.electron){o("Electron context is not available. Updates cannot be checked.","warning",5e3);return}return window.electron.on("update-available",()=>{s.closeAll(),n()}),window.electron.on("update-error",h=>{o(`An error occurred while checking for updates: ${h}`,"error",5e3),c(!1)}),()=>{window.electron.removeAllListeners("update-available"),window.electron.removeAllListeners("update-error")}},[s,n]);const d=t.useCallback(()=>{r(),o("You may update the application later by manually triggering an update check or wait until Titan does this","info",5e3)},[r,o]),u=t.useCallback(()=>{if(l){o("Update is already in progress. Please wait.","info",5e3);return}window.electron?(c(!0),window.electron.downloadUpdate().catch(h=>{c(!1),o(`An error occurred while downloading the update: ${h}`,"error",5e3)}),window.electron.on("update-downloaded",()=>{o("Update has been downloaded successfully. Titan will now restart to apply the update.","info",5e3),window.electron.removeAllListeners("update-downloaded"),r()}),window.electron.on("update-not-available",()=>{o("Titan is up to date","info",3e3),window.electron.removeAllListeners("update-not-available"),c(!1),r()})):o("Cannot update Titan in a non-desktop application environment","error",5e3)},[l,o,c,r]);return e.jsx(Ye,{isOpen:a,leastDestructiveRef:i,onClose:r,motionPreset:"slideInBottom",closeOnOverlayClick:!l,children:e.jsx(Ce,{children:e.jsxs(Ke,{children:[e.jsx(we,{fontSize:"lg",fontWeight:"bold",children:"Update Available"}),l?e.jsx(e.Fragment,{}):e.jsx(ve,{}),e.jsx(je,{children:"A new version of Titan is available. Would you like to download and install the update?"}),e.jsxs(Be,{children:[e.jsx(z,{colorScheme:"red",ref:i,onClick:d,isDisabled:l,children:"Cancel"}),e.jsx(z,{colorScheme:"yellow",onClick:u,ml:3,isDisabled:l,children:"Confirm"})]})]})})})}function zt(){if(!window.electron)return e.jsx(e.Fragment,{});const{colorMode:s}=Ge(),o=t.useCallback(()=>{window.electron.minimizeWindow()},[]),a=t.useCallback(()=>{window.electron.maximizeWindow()},[]),n=t.useCallback(()=>{window.electron.closeWindow()},[]);return e.jsx(tt.header,{w:"100%",position:"fixed",bgColor:s==="light"?"white":"#121212",className:"titanHead",zIndex:9999999,top:0,children:e.jsxs(N,{justifyContent:"space-between",alignItems:"center",p:2,position:"static",children:[e.jsx(ee,{as:"h6",size:"sm",noOfLines:1,className:"animation-fadein-left-forward",children:"Titan"}),e.jsxs(N,{alignItems:"center",columnGap:2,flexWrap:"nowrap",wrap:"nowrap",children:[e.jsx(_,{"aria-label":"Minimize",size:"xs",icon:e.jsx(nt,{}),onClick:o,colorScheme:"gray",_hover:{bg:"#FAF089",color:"#1A202C"}}),e.jsx(_,{"aria-label":"Maximize",size:"xs",icon:e.jsx(lt,{}),onClick:a,colorScheme:"gray",_hover:{bg:"#FAF089",color:"#1A202C"}}),e.jsx(_,{"aria-label":"Close",size:"xs",icon:e.jsx(Xe,{}),onClick:n,colorScheme:"gray",_hover:{bg:"#FEB2B2",color:"#1A202C"}})]})]})})}function Ot(){const{isCommitMode:s,selectedBranches:o,configurableRowData:a}=P(),{RaiseClientNotificaiton:n}=oe();return t.useEffect(()=>{if(window.electron)return window.electron.onAppClosing(()=>{n("App is closing, performing cleanup...","info",0),window.electron.closeWindow()}),()=>{window.electron.removeAppClosingListener()};console.warn("Electron specific logic is not available in browser mode.")},[]),e.jsxs(p,{className:"titanBody",children:[e.jsx(zt,{}),e.jsxs(p,{p:10,children:[e.jsx(bt,{}),e.jsx(Pt,{}),e.jsxs(N,{rowGap:4,flexDirection:"column",children:[e.jsx(p,{children:e.jsx(St,{})}),e.jsx(ot,{in:s,animateOpacity:!0,children:e.jsxs(p,{id:"sectionCommit",children:[e.jsxs(ee,{as:"h2",size:"lg",noOfLines:1,mb:4,className:"animation-pulse",lineHeight:"1.4",children:["Committing ",o.length==a.length?"All":`${o.length}/${a.length}`," Branch",o.length==1?"":"es"]}),e.jsx(Vt,{})]})})]}),e.jsx(Et,{})]})]})}const{definePartsStyle:hs,defineMultiStyleConfig:fs}=dt(ut.keys),Ut=hs({overlay:{bg:"blackAlpha.900"},dialog:{bg:"gray.900",color:"white",boxShadow:"rgba(255, 255, 255, 0.07) 0px 0px 20px 7px"},header:{bg:"gray.900",color:"white",borderRadius:"20px",p:4},body:{p:4,color:"white"},footer:{bg:"gray.900",p:4,color:"white",borderRadius:"20px"}}),Wt=fs({baseStyle:Ut}),Ht=hs({overlay:{bg:"blackAlpha.900"},dialog:{mt:gt,bg:"gray.900",color:"white",boxShadow:"rgba(255, 255, 255, 0.07) 0px 0px 20px 7px"},header:{bg:"gray.900",color:"white",borderRadius:"20px",p:4},body:{p:4,color:"white"},footer:{bg:"gray.900",p:2,color:"white",borderRadius:"20px"}}),$t=fs({baseStyle:Ht}),_t={initialColorMode:"dark",useSystemColorMode:!1},qe=at({config:_t,components:{Modal:Wt,Drawer:$t}});rt.createRoot(document.getElementById("root")).render(e.jsx(Ee.StrictMode,{children:e.jsxs(it,{theme:qe,children:[e.jsx(ct,{initialColorMode:qe.config.initialColorMode}),e.jsx(xt,{children:e.jsx(Ot,{})})]})})); diff --git a/dist/assets/vendor.js b/dist/assets/vendor.js index 5143b92..ed72833 100644 --- a/dist/assets/vendor.js +++ b/dist/assets/vendor.js @@ -1,4 +1,4 @@ -import{g as Kd,m as _n}from"./lodash.js";function IO(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var kk={exports:{}},Gd={},Ck={exports:{}},ue={};/** +import{g as Kd,m as _n}from"./lodash.js";function I4(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var kk={exports:{}},Gd={},Ck={exports:{}},ue={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ import{g as Kd,m as _n}from"./lodash.js";function IO(e,t){for(var n=0;n>>1,B=O[oe];if(0>>1;oeo(te,V))aeo(we,te)?(O[oe]=we,O[ae]=V,oe=ae):(O[oe]=te,O[j]=V,oe=j);else if(aeo(we,V))O[oe]=we,O[ae]=V,oe=ae;else break e}}return D}function o(O,D){var V=O.sortIndex-D.sortIndex;return V!==0?V:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=O)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function x(O){if(h=!1,b(O),!m)if(n(l)!==null)m=!0,N(k);else{var D=n(u);D!==null&&R(x,D.startTime-O)}}function k(O,D){m=!1,h&&(h=!1,v(E),E=-1),p=!0;var V=f;try{for(b(D),d=n(l);d!==null&&(!(d.expirationTime>D)||O&&!M());){var oe=d.callback;if(typeof oe=="function"){d.callback=null,f=d.priorityLevel;var B=oe(d.expirationTime<=D);D=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),b(D)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var j=n(u);j!==null&&R(x,j.startTime-D),ee=!1}return ee}finally{d=null,f=V,p=!1}}var P=!1,C=null,E=-1,_=5,$=-1;function M(){return!(e.unstable_now()-$<_)}function F(){if(C!==null){var O=e.unstable_now();$=O;var D=!0;try{D=C(!0,O)}finally{D?H():(P=!1,C=null)}}else P=!1}var H;if(typeof y=="function")H=function(){y(F)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,W=re.port2;re.port1.onmessage=F,H=function(){W.postMessage(null)}}else H=function(){S(F,0)};function N(O){C=O,P||(P=!0,H())}function R(O,D){E=S(function(){O(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,N(k))},e.unstable_forceFrameRate=function(O){0>O||125oe?(O.sortIndex=V,t(u,O),n(l)===null&&O===n(u)&&(h?(v(E),E=-1):h=!0,R(x,V-oe))):(O.sortIndex=B,t(l,O),m||p||(m=!0,N(k))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var D=f;return function(){var V=f;f=D;try{return O.apply(this,arguments)}finally{f=V}}}})(Fk);Dk.exports=Fk;var t4=Dk.exports;/** + */(function(e){function t(O,D){var V=O.length;O.push(D);e:for(;0>>1,B=O[oe];if(0>>1;oeo(te,V))aeo(we,te)?(O[oe]=we,O[ae]=V,oe=ae):(O[oe]=te,O[j]=V,oe=j);else if(aeo(we,V))O[oe]=we,O[ae]=V,oe=ae;else break e}}return D}function o(O,D){var V=O.sortIndex-D.sortIndex;return V!==0?V:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=O)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function x(O){if(h=!1,b(O),!m)if(n(l)!==null)m=!0,N(k);else{var D=n(u);D!==null&&R(x,D.startTime-O)}}function k(O,D){m=!1,h&&(h=!1,v(E),E=-1),p=!0;var V=f;try{for(b(D),d=n(l);d!==null&&(!(d.expirationTime>D)||O&&!M());){var oe=d.callback;if(typeof oe=="function"){d.callback=null,f=d.priorityLevel;var B=oe(d.expirationTime<=D);D=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),b(D)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var j=n(u);j!==null&&R(x,j.startTime-D),ee=!1}return ee}finally{d=null,f=V,p=!1}}var P=!1,C=null,E=-1,_=5,$=-1;function M(){return!(e.unstable_now()-$<_)}function F(){if(C!==null){var O=e.unstable_now();$=O;var D=!0;try{D=C(!0,O)}finally{D?W():(P=!1,C=null)}}else P=!1}var W;if(typeof y=="function")W=function(){y(F)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,H=re.port2;re.port1.onmessage=F,W=function(){H.postMessage(null)}}else W=function(){S(F,0)};function N(O){C=O,P||(P=!0,W())}function R(O,D){E=S(function(){O(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,N(k))},e.unstable_forceFrameRate=function(O){0>O||125oe?(O.sortIndex=V,t(u,O),n(l)===null&&O===n(u)&&(h?(v(E),E=-1):h=!0,R(x,V-oe))):(O.sortIndex=B,t(l,O),m||p||(m=!0,N(k))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var D=f;return function(){var V=f;f=D;try{return O.apply(this,arguments)}finally{f=V}}}})(Fk);Dk.exports=Fk;var tO=Dk.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ import{g as Kd,m as _n}from"./lodash.js";function IO(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nh=Object.prototype.hasOwnProperty,r4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qy={},Ky={};function o4(e){return Nh.call(Ky,e)?!0:Nh.call(qy,e)?!1:r4.test(e)?Ky[e]=!0:(qy[e]=!0,!1)}function i4(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s4(e,t,n,r){if(t===null||typeof t>"u"||i4(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Nt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new Nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new Nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new Nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new Nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yt[e]=new Nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new Nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new Nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new Nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new Nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gv=/[\-:]([a-z])/g;function Yv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gv,Yv);yt[t]=new Nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gv,Yv);yt[t]=new Nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gv,Yv);yt[t]=new Nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xv(e,t,n,r){var o=yt.hasOwnProperty(t)?yt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nh=Object.prototype.hasOwnProperty,rO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qy={},Ky={};function oO(e){return Nh.call(Ky,e)?!0:Nh.call(qy,e)?!1:rO.test(e)?Ky[e]=!0:(qy[e]=!0,!1)}function iO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sO(e,t,n,r){if(t===null||typeof t>"u"||iO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Nt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new Nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new Nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new Nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new Nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yt[e]=new Nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new Nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new Nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new Nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new Nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gv=/[\-:]([a-z])/g;function Yv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gv,Yv);yt[t]=new Nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gv,Yv);yt[t]=new Nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gv,Yv);yt[t]=new Nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xv(e,t,n,r){var o=yt.hasOwnProperty(t)?yt[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{op=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ha(e):""}function a4(e){switch(e.tag){case 5:return ha(e.type);case 16:return ha("Lazy");case 13:return ha("Suspense");case 19:return ha("SuspenseList");case 0:case 2:case 15:return e=ip(e.type,!1),e;case 11:return e=ip(e.type.render,!1),e;case 1:return e=ip(e.type,!0),e;default:return""}}function jh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vi:return"Fragment";case Ni:return"Portal";case Vh:return"Profiler";case Qv:return"StrictMode";case zh:return"Suspense";case Bh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vk:return(e.displayName||"Context")+".Consumer";case Nk:return(e._context.displayName||"Context")+".Provider";case Zv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jv:return t=e.displayName||null,t!==null?t:jh(e.type)||"Memo";case oo:t=e._payload,e=e._init;try{return jh(e(t))}catch{}}return null}function l4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jh(t);case 8:return t===Qv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Po(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u4(e){var t=Bk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iu(e){e._valueTracker||(e._valueTracker=u4(e))}function jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bk(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wh(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Po(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wk(e,t){t=t.checked,t!=null&&Xv(e,"checked",t,!1)}function Hh(e,t){Wk(e,t);var n=Po(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uh(e,t.type,Po(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Uh(e,t,n){(t!=="number"||zc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ma=Array.isArray;function as(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=su.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ma={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},c4=["Webkit","ms","Moz","O"];Object.keys(Ma).forEach(function(e){c4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ma[t]=Ma[e]})});function Kk(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ma.hasOwnProperty(e)&&Ma[e]?(""+t).trim():t+"px"}function Gk(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Kk(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var d4=ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gh(e,t){if(t){if(d4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Yh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xh=null;function eg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qh=null,ls=null,us=null;function Jy(e){if(e=jl(e)){if(typeof Qh!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Jd(t),Qh(e.stateNode,e.type,t))}}function Yk(e){ls?us?us.push(e):us=[e]:ls=e}function Xk(){if(ls){var e=ls,t=us;if(us=ls=null,Jy(e),t)for(e=0;e>>=0,e===0?32:31-(w4(e)/k4|0)|0}var au=64,lu=4194304;function va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=va(a):(i&=s,i!==0&&(r=va(i)))}else s=n&~o,s!==0?r=va(s):i!==0&&(r=va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qn(t),e[t]=n}function T4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Aa),l1=" ",u1=!1;function vC(e,t){switch(e){case"keyup":return tR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zi=!1;function rR(e,t){switch(e){case"compositionend":return gC(t);case"keypress":return t.which!==32?null:(u1=!0,l1);case"textInput":return e=t.data,e===l1&&u1?null:e;default:return null}}function oR(e,t){if(zi)return e==="compositionend"||!lg&&vC(e,t)?(e=hC(),Qu=ig=co=null,zi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=p1(n)}}function xC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wC(){for(var e=window,t=zc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zc(e.document)}return t}function ug(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pR(e){var t=wC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xC(n.ownerDocument.documentElement,n)){if(r!==null&&ug(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=h1(n,i);var s=h1(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Bi=null,rm=null,Fa=null,om=!1;function m1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;om||Bi==null||Bi!==zc(r)||(r=Bi,"selectionStart"in r&&ug(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fa&&ll(Fa,r)||(Fa=r,r=Kc(rm,"onSelect"),0Hi||(e.current=cm[Hi],cm[Hi]=null,Hi--)}function $e(e,t){Hi++,cm[Hi]=e.current,e.current=t}var Eo={},Rt=Ro(Eo),Gt=Ro(!1),fi=Eo;function ks(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Yt(e){return e=e.childContextTypes,e!=null}function Yc(){Ae(Gt),Ae(Rt)}function w1(e,t,n){if(Rt.current!==Eo)throw Error(I(168));$e(Rt,t),$e(Gt,n)}function RC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,l4(e)||"Unknown",o));return ze({},n,r)}function Xc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,fi=Rt.current,$e(Rt,e),$e(Gt,Gt.current),!0}function k1(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=RC(e,t,fi),r.__reactInternalMemoizedMergedChildContext=e,Ae(Gt),Ae(Rt),$e(Rt,e)):Ae(Gt),$e(Gt,n)}var Pr=null,ef=!1,bp=!1;function MC(e){Pr===null?Pr=[e]:Pr.push(e)}function PR(e){ef=!0,MC(e)}function Mo(){if(!bp&&Pr!==null){bp=!0;var e=0,t=ke;try{var n=Pr;for(ke=1;e>=s,o-=s,_r=1<<32-qn(t)+o|n<E?(_=C,C=null):_=C.sibling;var $=f(v,C,b[E],x);if($===null){C===null&&(C=_);break}e&&C&&$.alternate===null&&t(v,C),y=i($,y,E),P===null?k=$:P.sibling=$,P=$,C=_}if(E===b.length)return n(v,C),Fe&&No(v,E),k;if(C===null){for(;EE?(_=C,C=null):_=C.sibling;var M=f(v,C,$.value,x);if(M===null){C===null&&(C=_);break}e&&C&&M.alternate===null&&t(v,C),y=i(M,y,E),P===null?k=M:P.sibling=M,P=M,C=_}if($.done)return n(v,C),Fe&&No(v,E),k;if(C===null){for(;!$.done;E++,$=b.next())$=d(v,$.value,x),$!==null&&(y=i($,y,E),P===null?k=$:P.sibling=$,P=$);return Fe&&No(v,E),k}for(C=r(v,C);!$.done;E++,$=b.next())$=p(C,v,E,$.value,x),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?E:$.key),y=i($,y,E),P===null?k=$:P.sibling=$,P=$);return e&&C.forEach(function(F){return t(v,F)}),Fe&&No(v,E),k}function S(v,y,b,x){if(typeof b=="object"&&b!==null&&b.type===Vi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ou:e:{for(var k=b.key,P=y;P!==null;){if(P.key===k){if(k=b.type,k===Vi){if(P.tag===7){n(v,P.sibling),y=o(P,b.props.children),y.return=v,v=y;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===oo&&E1(k)===P.type){n(v,P.sibling),y=o(P,b.props),y.ref=ta(v,P,b),y.return=v,v=y;break e}n(v,P);break}else t(v,P);P=P.sibling}b.type===Vi?(y=oi(b.props.children,v.mode,x,b.key),y.return=v,v=y):(x=ic(b.type,b.key,b.props,null,v.mode,x),x.ref=ta(v,y,b),x.return=v,v=x)}return s(v);case Ni:e:{for(P=b.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),y=o(y,b.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=Tp(b,v.mode,x),y.return=v,v=y}return s(v);case oo:return P=b._init,S(v,y,P(b._payload),x)}if(ma(b))return m(v,y,b,x);if(Xs(b))return h(v,y,b,x);mu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,b),y.return=v,v=y):(n(v,y),y=Ep(b,v.mode,x),y.return=v,v=y),s(v)):n(v,y)}return S}var Ps=FC(!0),LC=FC(!1),Jc=Ro(null),ed=null,Ki=null,pg=null;function hg(){pg=Ki=ed=null}function mg(e){var t=Jc.current;Ae(Jc),e._currentValue=t}function pm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ds(e,t){ed=e,pg=Ki=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function In(e){var t=e._currentValue;if(pg!==e)if(e={context:e,memoizedValue:t,next:null},Ki===null){if(ed===null)throw Error(I(308));Ki=e,ed.dependencies={lanes:0,firstContext:e}}else Ki=Ki.next=e;return t}var Yo=null;function vg(e){Yo===null?Yo=[e]:Yo.push(e)}function NC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,vg(t)):(n.next=o.next,o.next=n),t.interleaved=n,zr(e,r)}function zr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var io=!1;function gg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zr(e,n)}return o=r.interleaved,o===null?(t.next=t,vg(r)):(t.next=o.next,o.next=t),r.interleaved=t,zr(e,n)}function Ju(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ng(e,n)}}function T1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function td(e,t,n,r){var o=e.updateQueue;io=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,h=a;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=ze({},d,f);break e;case 2:io=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);mi|=s,e.lanes=s,e.memoizedState=d}}function _1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xp.transition;xp.transition={};try{e(!1),t()}finally{ke=n,xp.transition=r}}function n2(){return An().memoizedState}function $R(e,t,n){var r=xo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},r2(e))o2(t,n);else if(n=NC(e,t,n,r),n!==null){var o=Dt();Kn(n,e,r,o),i2(n,t,r)}}function OR(e,t,n){var r=xo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(r2(e))o2(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Yn(a,s)){var l=t.interleaved;l===null?(o.next=o,vg(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=NC(e,t,o,r),n!==null&&(o=Dt(),Kn(n,e,r,o),i2(n,t,r))}}function r2(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function o2(e,t){La=rd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ng(e,n)}}var od={readContext:In,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},RR={readContext:In,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:O1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tc(4194308,4,QC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tc(4194308,4,e,t)},useInsertionEffect:function(e,t){return tc(4,2,e,t)},useMemo:function(e,t){var n=ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$R.bind(null,Ve,e),[r.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:$1,useDebugValue:Pg,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=$1(!1),t=e[0];return e=_R.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ve,o=ir();if(Fe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),lt===null)throw Error(I(349));hi&30||WC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,O1(UC.bind(null,r,i,e),[e]),r.flags|=2048,vl(9,HC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ir(),t=lt.identifierPrefix;if(Fe){var n=$r,r=_r;n=(r&~(1<<32-qn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hl++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{op=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ha(e):""}function aO(e){switch(e.tag){case 5:return ha(e.type);case 16:return ha("Lazy");case 13:return ha("Suspense");case 19:return ha("SuspenseList");case 0:case 2:case 15:return e=ip(e.type,!1),e;case 11:return e=ip(e.type.render,!1),e;case 1:return e=ip(e.type,!0),e;default:return""}}function jh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vi:return"Fragment";case Ni:return"Portal";case Vh:return"Profiler";case Qv:return"StrictMode";case zh:return"Suspense";case Bh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vk:return(e.displayName||"Context")+".Consumer";case Nk:return(e._context.displayName||"Context")+".Provider";case Zv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jv:return t=e.displayName||null,t!==null?t:jh(e.type)||"Memo";case oo:t=e._payload,e=e._init;try{return jh(e(t))}catch{}}return null}function lO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jh(t);case 8:return t===Qv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Po(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uO(e){var t=Bk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iu(e){e._valueTracker||(e._valueTracker=uO(e))}function jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bk(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hh(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Po(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hk(e,t){t=t.checked,t!=null&&Xv(e,"checked",t,!1)}function Wh(e,t){Hk(e,t);var n=Po(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uh(e,t.type,Po(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Uh(e,t,n){(t!=="number"||zc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ma=Array.isArray;function as(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=su.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ma={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cO=["Webkit","ms","Moz","O"];Object.keys(Ma).forEach(function(e){cO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ma[t]=Ma[e]})});function Kk(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ma.hasOwnProperty(e)&&Ma[e]?(""+t).trim():t+"px"}function Gk(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Kk(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dO=ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gh(e,t){if(t){if(dO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Yh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xh=null;function eg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qh=null,ls=null,us=null;function Jy(e){if(e=jl(e)){if(typeof Qh!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Jd(t),Qh(e.stateNode,e.type,t))}}function Yk(e){ls?us?us.push(e):us=[e]:ls=e}function Xk(){if(ls){var e=ls,t=us;if(us=ls=null,Jy(e),t)for(e=0;e>>=0,e===0?32:31-(wO(e)/kO|0)|0}var au=64,lu=4194304;function va(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=va(a):(i&=s,i!==0&&(r=va(i)))}else s=n&~o,s!==0?r=va(s):i!==0&&(r=va(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qn(t),e[t]=n}function TO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Aa),l1=" ",u1=!1;function vC(e,t){switch(e){case"keyup":return tR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zi=!1;function rR(e,t){switch(e){case"compositionend":return gC(t);case"keypress":return t.which!==32?null:(u1=!0,l1);case"textInput":return e=t.data,e===l1&&u1?null:e;default:return null}}function oR(e,t){if(zi)return e==="compositionend"||!lg&&vC(e,t)?(e=hC(),Qu=ig=co=null,zi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=p1(n)}}function xC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wC(){for(var e=window,t=zc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zc(e.document)}return t}function ug(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pR(e){var t=wC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xC(n.ownerDocument.documentElement,n)){if(r!==null&&ug(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=h1(n,i);var s=h1(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Bi=null,rm=null,Fa=null,om=!1;function m1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;om||Bi==null||Bi!==zc(r)||(r=Bi,"selectionStart"in r&&ug(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fa&&ll(Fa,r)||(Fa=r,r=Kc(rm,"onSelect"),0Wi||(e.current=cm[Wi],cm[Wi]=null,Wi--)}function $e(e,t){Wi++,cm[Wi]=e.current,e.current=t}var Eo={},Rt=Ro(Eo),Gt=Ro(!1),fi=Eo;function ks(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Yt(e){return e=e.childContextTypes,e!=null}function Yc(){Ae(Gt),Ae(Rt)}function w1(e,t,n){if(Rt.current!==Eo)throw Error(I(168));$e(Rt,t),$e(Gt,n)}function RC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,lO(e)||"Unknown",o));return ze({},n,r)}function Xc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,fi=Rt.current,$e(Rt,e),$e(Gt,Gt.current),!0}function k1(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=RC(e,t,fi),r.__reactInternalMemoizedMergedChildContext=e,Ae(Gt),Ae(Rt),$e(Rt,e)):Ae(Gt),$e(Gt,n)}var Pr=null,ef=!1,bp=!1;function MC(e){Pr===null?Pr=[e]:Pr.push(e)}function PR(e){ef=!0,MC(e)}function Mo(){if(!bp&&Pr!==null){bp=!0;var e=0,t=ke;try{var n=Pr;for(ke=1;e>=s,o-=s,_r=1<<32-qn(t)+o|n<E?(_=C,C=null):_=C.sibling;var $=f(v,C,b[E],x);if($===null){C===null&&(C=_);break}e&&C&&$.alternate===null&&t(v,C),y=i($,y,E),P===null?k=$:P.sibling=$,P=$,C=_}if(E===b.length)return n(v,C),Fe&&No(v,E),k;if(C===null){for(;EE?(_=C,C=null):_=C.sibling;var M=f(v,C,$.value,x);if(M===null){C===null&&(C=_);break}e&&C&&M.alternate===null&&t(v,C),y=i(M,y,E),P===null?k=M:P.sibling=M,P=M,C=_}if($.done)return n(v,C),Fe&&No(v,E),k;if(C===null){for(;!$.done;E++,$=b.next())$=d(v,$.value,x),$!==null&&(y=i($,y,E),P===null?k=$:P.sibling=$,P=$);return Fe&&No(v,E),k}for(C=r(v,C);!$.done;E++,$=b.next())$=p(C,v,E,$.value,x),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?E:$.key),y=i($,y,E),P===null?k=$:P.sibling=$,P=$);return e&&C.forEach(function(F){return t(v,F)}),Fe&&No(v,E),k}function S(v,y,b,x){if(typeof b=="object"&&b!==null&&b.type===Vi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ou:e:{for(var k=b.key,P=y;P!==null;){if(P.key===k){if(k=b.type,k===Vi){if(P.tag===7){n(v,P.sibling),y=o(P,b.props.children),y.return=v,v=y;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===oo&&E1(k)===P.type){n(v,P.sibling),y=o(P,b.props),y.ref=ta(v,P,b),y.return=v,v=y;break e}n(v,P);break}else t(v,P);P=P.sibling}b.type===Vi?(y=oi(b.props.children,v.mode,x,b.key),y.return=v,v=y):(x=ic(b.type,b.key,b.props,null,v.mode,x),x.ref=ta(v,y,b),x.return=v,v=x)}return s(v);case Ni:e:{for(P=b.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),y=o(y,b.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=Tp(b,v.mode,x),y.return=v,v=y}return s(v);case oo:return P=b._init,S(v,y,P(b._payload),x)}if(ma(b))return m(v,y,b,x);if(Xs(b))return h(v,y,b,x);mu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,b),y.return=v,v=y):(n(v,y),y=Ep(b,v.mode,x),y.return=v,v=y),s(v)):n(v,y)}return S}var Ps=FC(!0),LC=FC(!1),Jc=Ro(null),ed=null,Ki=null,pg=null;function hg(){pg=Ki=ed=null}function mg(e){var t=Jc.current;Ae(Jc),e._currentValue=t}function pm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ds(e,t){ed=e,pg=Ki=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function In(e){var t=e._currentValue;if(pg!==e)if(e={context:e,memoizedValue:t,next:null},Ki===null){if(ed===null)throw Error(I(308));Ki=e,ed.dependencies={lanes:0,firstContext:e}}else Ki=Ki.next=e;return t}var Yo=null;function vg(e){Yo===null?Yo=[e]:Yo.push(e)}function NC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,vg(t)):(n.next=o.next,o.next=n),t.interleaved=n,zr(e,r)}function zr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var io=!1;function gg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zr(e,n)}return o=r.interleaved,o===null?(t.next=t,vg(r)):(t.next=o.next,o.next=t),r.interleaved=t,zr(e,n)}function Ju(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ng(e,n)}}function T1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function td(e,t,n,r){var o=e.updateQueue;io=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,h=a;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=ze({},d,f);break e;case 2:io=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);mi|=s,e.lanes=s,e.memoizedState=d}}function _1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xp.transition;xp.transition={};try{e(!1),t()}finally{ke=n,xp.transition=r}}function n2(){return An().memoizedState}function $R(e,t,n){var r=xo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},r2(e))o2(t,n);else if(n=NC(e,t,n,r),n!==null){var o=Dt();Kn(n,e,r,o),i2(n,t,r)}}function OR(e,t,n){var r=xo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(r2(e))o2(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Yn(a,s)){var l=t.interleaved;l===null?(o.next=o,vg(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=NC(e,t,o,r),n!==null&&(o=Dt(),Kn(n,e,r,o),i2(n,t,r))}}function r2(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function o2(e,t){La=rd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ng(e,n)}}var od={readContext:In,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},RR={readContext:In,useCallback:function(e,t){return ir().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:O1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tc(4194308,4,QC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tc(4194308,4,e,t)},useInsertionEffect:function(e,t){return tc(4,2,e,t)},useMemo:function(e,t){var n=ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$R.bind(null,Ve,e),[r.memoizedState,e]},useRef:function(e){var t=ir();return e={current:e},t.memoizedState=e},useState:$1,useDebugValue:Pg,useDeferredValue:function(e){return ir().memoizedState=e},useTransition:function(){var e=$1(!1),t=e[0];return e=_R.bind(null,e[1]),ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ve,o=ir();if(Fe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),lt===null)throw Error(I(349));hi&30||HC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,O1(UC.bind(null,r,i,e),[e]),r.flags|=2048,vl(9,WC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ir(),t=lt.identifierPrefix;if(Fe){var n=$r,r=_r;n=(r&~(1<<32-qn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ur]=t,e[dl]=r,m2(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yh(n,r),n){case"dialog":Re("cancel",e),Re("close",e),o=r;break;case"iframe":case"object":case"embed":Re("load",e),o=r;break;case"video":case"audio":for(o=0;o_s&&(t.flags|=128,r=!0,na(i,!1),t.lanes=4194304)}else{if(!r)if(e=nd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),na(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Fe)return Ct(t),null}else 2*qe()-i.renderingStartTime>_s&&n!==1073741824&&(t.flags|=128,r=!0,na(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qe(),t.sibling=null,n=Le.current,$e(Le,r?n&1|2:n&1),t):(Ct(t),null);case 22:case 23:return Rg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rn&1073741824&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function VR(e,t){switch(dg(t),t.tag){case 1:return Yt(t.type)&&Yc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Es(),Ae(Gt),Ae(Rt),Sg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bg(t),null;case 13:if(Ae(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Le),null;case 4:return Es(),null;case 10:return mg(t.type._context),null;case 22:case 23:return Rg(),null;case 24:return null;default:return null}}var gu=!1,Tt=!1,zR=typeof WeakSet=="function"?WeakSet:Set,z=null;function Gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){We(e,t,r)}else n.current=null}function wm(e,t,n){try{n()}catch(r){We(e,t,r)}}var B1=!1;function BR(e,t){if(im=Uc,e=wC(),ug(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sm={focusedElem:e,selectionRange:n},Uc=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,S=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:zn(t.type,h),S);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(x){We(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=B1,B1=!1,m}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&wm(t,n,i)}o=o.next}while(o!==r)}}function rf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function km(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y2(e){var t=e.alternate;t!==null&&(e.alternate=null,y2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[dl],delete t[um],delete t[kR],delete t[CR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function b2(e){return e.tag===5||e.tag===3||e.tag===4}function j1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gc));else if(r!==4&&(e=e.child,e!==null))for(Cm(e,t,n),e=e.sibling;e!==null;)Cm(e,t,n),e=e.sibling}function Pm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pm(e,t,n),e=e.sibling;e!==null;)Pm(e,t,n),e=e.sibling}var ft=null,Bn=!1;function Qr(e,t,n){for(n=n.child;n!==null;)S2(e,t,n),n=n.sibling}function S2(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Yd,n)}catch{}switch(n.tag){case 5:Tt||Gi(n,t);case 6:var r=ft,o=Bn;ft=null,Qr(e,t,n),ft=r,Bn=o,ft!==null&&(Bn?(e=ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ft.removeChild(n.stateNode));break;case 18:ft!==null&&(Bn?(e=ft,n=n.stateNode,e.nodeType===8?yp(e.parentNode,n):e.nodeType===1&&yp(e,n),sl(e)):yp(ft,n.stateNode));break;case 4:r=ft,o=Bn,ft=n.stateNode.containerInfo,Bn=!0,Qr(e,t,n),ft=r,Bn=o;break;case 0:case 11:case 14:case 15:if(!Tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&wm(n,t,s),o=o.next}while(o!==r)}Qr(e,t,n);break;case 1:if(!Tt&&(Gi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){We(n,t,a)}Qr(e,t,n);break;case 21:Qr(e,t,n);break;case 22:n.mode&1?(Tt=(r=Tt)||n.memoizedState!==null,Qr(e,t,n),Tt=r):Qr(e,t,n);break;default:Qr(e,t,n)}}function W1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zR),t.forEach(function(r){var o=XR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Nn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WR(r/1960))-r,10e?16:e,fo===null)var r=!1;else{if(e=fo,fo=null,ad=0,he&6)throw Error(I(331));var o=he;for(he|=4,z=e.current;z!==null;){var i=z,s=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lqe()-$g?ri(e,0):_g|=n),Xt(e,t)}function _2(e,t){t===0&&(e.mode&1?(t=lu,lu<<=1,!(lu&130023424)&&(lu=4194304)):t=1);var n=Dt();e=zr(e,t),e!==null&&(zl(e,t,n),Xt(e,n))}function YR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_2(e,n)}function XR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),_2(e,n)}var $2;$2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qt=!1,LR(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Fe&&t.flags&1048576&&IC(t,Zc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nc(e,t),e=t.pendingProps;var o=ks(t,Rt.current);ds(t,n),o=wg(null,t,r,e,o,n);var i=kg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yt(r)?(i=!0,Xc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gg(t),o.updater=nf,t.stateNode=o,o._reactInternals=t,mm(t,r,e,n),t=ym(null,t,r,!0,i,n)):(t.tag=0,Fe&&i&&cg(t),Mt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ZR(r),e=zn(r,e),o){case 0:t=gm(null,t,r,e,n);break e;case 1:t=N1(null,t,r,e,n);break e;case 11:t=F1(null,t,r,e,n);break e;case 14:t=L1(null,t,r,zn(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),gm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),N1(e,t,r,o,n);case 3:e:{if(f2(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,VC(e,t),td(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ts(Error(I(423)),t),t=V1(e,t,r,n,o);break e}else if(r!==o){o=Ts(Error(I(424)),t),t=V1(e,t,r,n,o);break e}else for(un=yo(t.stateNode.containerInfo.firstChild),cn=t,Fe=!0,Wn=null,n=LC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cs(),r===o){t=Br(e,t,n);break e}Mt(e,t,r,n)}t=t.child}return t;case 5:return zC(t),e===null&&fm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,am(r,o)?s=null:i!==null&&am(r,i)&&(t.flags|=32),d2(e,t),Mt(e,t,s,n),t.child;case 6:return e===null&&fm(t),null;case 13:return p2(e,t,n);case 4:return yg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):Mt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),F1(e,t,r,o,n);case 7:return Mt(e,t,t.pendingProps,n),t.child;case 8:return Mt(e,t,t.pendingProps.children,n),t.child;case 12:return Mt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$e(Jc,r._currentValue),r._currentValue=s,i!==null)if(Yn(i.value,s)){if(i.children===o.children&&!Gt.current){t=Br(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Mr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),pm(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pm(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Mt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ds(t,n),o=In(o),r=r(o),t.flags|=1,Mt(e,t,r,n),t.child;case 14:return r=t.type,o=zn(r,t.pendingProps),o=zn(r.type,o),L1(e,t,r,o,n);case 15:return u2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),nc(e,t),t.tag=1,Yt(r)?(e=!0,Xc(t)):e=!1,ds(t,n),s2(t,r,o),mm(t,r,o,n),ym(null,t,r,!0,e,n);case 19:return h2(e,t,n);case 22:return c2(e,t,n)}throw Error(I(156,t.tag))};function O2(e,t){return rC(e,t)}function QR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,r){return new QR(e,t,n,r)}function Ig(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZR(e){if(typeof e=="function")return Ig(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zv)return 11;if(e===Jv)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ig(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vi:return oi(n.children,o,i,t);case Qv:s=8,o|=8;break;case Vh:return e=$n(12,n,t,o|2),e.elementType=Vh,e.lanes=i,e;case zh:return e=$n(13,n,t,o),e.elementType=zh,e.lanes=i,e;case Bh:return e=$n(19,n,t,o),e.elementType=Bh,e.lanes=i,e;case zk:return sf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nk:s=10;break e;case Vk:s=9;break e;case Zv:s=11;break e;case Jv:s=14;break e;case oo:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=$n(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function oi(e,t,n,r){return e=$n(7,e,r,t),e.lanes=n,e}function sf(e,t,n,r){return e=$n(22,e,r,t),e.elementType=zk,e.lanes=n,e.stateNode={isHidden:!1},e}function Ep(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function Tp(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ap(0),this.expirationTimes=ap(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ap(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ag(e,t,n,r,o,i,s,a,l){return e=new JR(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$n(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gg(i),e}function e5(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A2)}catch(e){console.error(e)}}A2(),Ak.exports=gn;var Hl=Ak.exports;const cee=Kd(Hl);var Q1=Hl;Uy.createRoot=Q1.createRoot,Uy.hydrateRoot=Q1.hydrateRoot;function i5(e){if(e.sheet)return e.sheet;for(var t=0;t0?ht(Ws,--Jt):0,$s--,Xe===10&&($s=1,ff--),Xe}function dn(){return Xe=Jt2||bl(Xe)>3?"":" "}function y5(e,t){for(;--t&&dn()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return Ul(e,sc()+(t<6&&hr()==32&&dn()==32))}function Rm(e){for(;dn();)switch(Xe){case e:return Jt;case 34:case 39:e!==34&&e!==39&&Rm(Xe);break;case 40:e===41&&Rm(e);break;case 92:dn();break}return Jt}function b5(e,t){for(;dn()&&e+Xe!==57;)if(e+Xe===84&&hr()===47)break;return"/*"+Ul(t,Jt-1)+"*"+df(e===47?e:dn())}function S5(e){for(;!bl(hr());)dn();return Ul(e,Jt)}function x5(e){return z2(lc("",null,null,null,[""],e=V2(e),0,[0],e))}function lc(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,h=1,S=1,v=1,y=0,b="",x=o,k=i,P=r,C=b;S;)switch(m=y,y=dn()){case 40:if(m!=108&&ht(C,d-1)==58){Om(C+=ge(ac(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:C+=ac(y);break;case 9:case 10:case 13:case 32:C+=g5(m);break;case 92:C+=y5(sc()-1,7);continue;case 47:switch(hr()){case 42:case 47:Su(w5(b5(dn(),sc()),t,n),l);break;default:C+="/"}break;case 123*h:a[u++]=ar(C)*v;case 125*h:case 59:case 0:switch(y){case 0:case 125:S=0;case 59+c:v==-1&&(C=ge(C,/\f/g,"")),p>0&&ar(C)-d&&Su(p>32?J1(C+";",r,n,d-1):J1(ge(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Su(P=Z1(C,t,n,u,c,o,a,b,x=[],k=[],d),i),y===123)if(c===0)lc(C,t,P,P,x,i,d,a,k);else switch(f===99&&ht(C,3)===110?100:f){case 100:case 108:case 109:case 115:lc(e,P,P,r&&Su(Z1(e,P,P,0,0,o,a,b,o,x=[],d),k),o,k,d,a,r?x:k);break;default:lc(C,P,P,P,[""],k,0,a,k)}}u=c=p=0,h=v=1,b=C="",d=s;break;case 58:d=1+ar(C),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&v5()==125)continue}switch(C+=df(y),y*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(ar(C)-1)*v,v=1;break;case 64:hr()===45&&(C+=ac(dn())),f=hr(),c=d=ar(b=C+=S5(sc())),y++;break;case 45:m===45&&ar(C)==2&&(h=0)}}return i}function Z1(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=zg(f),m=0,h=0,S=0;m0?f[v]+" "+y:ge(y,/&\f/g,f[v])))&&(l[S++]=b);return pf(e,t,n,o===0?Ng:a,l,u,c)}function w5(e,t,n){return pf(e,t,n,D2,df(m5()),yl(e,2,-2),0)}function J1(e,t,n,r){return pf(e,t,n,Vg,yl(e,0,r),yl(e,r+1,-1),r)}function ps(e,t){for(var n="",r=zg(e),o=0;o6)switch(ht(e,t+1)){case 109:if(ht(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+cd+(ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Om(e,"stretch")?j2(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ht(e,t+1)!==115)break;case 6444:switch(ht(e,ar(e)-3-(~Om(e,"!important")&&10))){case 107:return ge(e,":",":"+ve)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(ht(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(ht(e,t+11)){case 114:return ve+e+Pt+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+Pt+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+Pt+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+Pt+e+e}return e}var R5=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Vg:t.return=j2(t.value,t.length);break;case F2:return ps([oa(t,{value:ge(t.value,"@","@"+ve)})],o);case Ng:if(t.length)return h5(t.props,function(i){switch(p5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ps([oa(t,{props:[ge(i,/:(read-\w+)/,":"+cd+"$1")]})],o);case"::placeholder":return ps([oa(t,{props:[ge(i,/:(plac\w+)/,":"+ve+"input-$1")]}),oa(t,{props:[ge(i,/:(plac\w+)/,":"+cd+"$1")]}),oa(t,{props:[ge(i,/:(plac\w+)/,Pt+"input-$1")]})],o)}return""})}},M5=[R5],I5=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var S=h.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||M5,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var S=h.getAttribute("data-emotion").split(" "),v=1;v<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ur]=t,e[dl]=r,m2(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yh(n,r),n){case"dialog":Re("cancel",e),Re("close",e),o=r;break;case"iframe":case"object":case"embed":Re("load",e),o=r;break;case"video":case"audio":for(o=0;o_s&&(t.flags|=128,r=!0,na(i,!1),t.lanes=4194304)}else{if(!r)if(e=nd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),na(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Fe)return Ct(t),null}else 2*qe()-i.renderingStartTime>_s&&n!==1073741824&&(t.flags|=128,r=!0,na(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qe(),t.sibling=null,n=Le.current,$e(Le,r?n&1|2:n&1),t):(Ct(t),null);case 22:case 23:return Rg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rn&1073741824&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function VR(e,t){switch(dg(t),t.tag){case 1:return Yt(t.type)&&Yc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Es(),Ae(Gt),Ae(Rt),Sg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bg(t),null;case 13:if(Ae(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Le),null;case 4:return Es(),null;case 10:return mg(t.type._context),null;case 22:case 23:return Rg(),null;case 24:return null;default:return null}}var gu=!1,Tt=!1,zR=typeof WeakSet=="function"?WeakSet:Set,z=null;function Gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){He(e,t,r)}else n.current=null}function wm(e,t,n){try{n()}catch(r){He(e,t,r)}}var B1=!1;function BR(e,t){if(im=Uc,e=wC(),ug(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sm={focusedElem:e,selectionRange:n},Uc=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,S=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:zn(t.type,h),S);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(x){He(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=B1,B1=!1,m}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&wm(t,n,i)}o=o.next}while(o!==r)}}function rf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function km(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y2(e){var t=e.alternate;t!==null&&(e.alternate=null,y2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[dl],delete t[um],delete t[kR],delete t[CR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function b2(e){return e.tag===5||e.tag===3||e.tag===4}function j1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gc));else if(r!==4&&(e=e.child,e!==null))for(Cm(e,t,n),e=e.sibling;e!==null;)Cm(e,t,n),e=e.sibling}function Pm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pm(e,t,n),e=e.sibling;e!==null;)Pm(e,t,n),e=e.sibling}var ft=null,Bn=!1;function Qr(e,t,n){for(n=n.child;n!==null;)S2(e,t,n),n=n.sibling}function S2(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Yd,n)}catch{}switch(n.tag){case 5:Tt||Gi(n,t);case 6:var r=ft,o=Bn;ft=null,Qr(e,t,n),ft=r,Bn=o,ft!==null&&(Bn?(e=ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ft.removeChild(n.stateNode));break;case 18:ft!==null&&(Bn?(e=ft,n=n.stateNode,e.nodeType===8?yp(e.parentNode,n):e.nodeType===1&&yp(e,n),sl(e)):yp(ft,n.stateNode));break;case 4:r=ft,o=Bn,ft=n.stateNode.containerInfo,Bn=!0,Qr(e,t,n),ft=r,Bn=o;break;case 0:case 11:case 14:case 15:if(!Tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&wm(n,t,s),o=o.next}while(o!==r)}Qr(e,t,n);break;case 1:if(!Tt&&(Gi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){He(n,t,a)}Qr(e,t,n);break;case 21:Qr(e,t,n);break;case 22:n.mode&1?(Tt=(r=Tt)||n.memoizedState!==null,Qr(e,t,n),Tt=r):Qr(e,t,n);break;default:Qr(e,t,n)}}function H1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zR),t.forEach(function(r){var o=XR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Nn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HR(r/1960))-r,10e?16:e,fo===null)var r=!1;else{if(e=fo,fo=null,ad=0,he&6)throw Error(I(331));var o=he;for(he|=4,z=e.current;z!==null;){var i=z,s=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lqe()-$g?ri(e,0):_g|=n),Xt(e,t)}function _2(e,t){t===0&&(e.mode&1?(t=lu,lu<<=1,!(lu&130023424)&&(lu=4194304)):t=1);var n=Dt();e=zr(e,t),e!==null&&(zl(e,t,n),Xt(e,n))}function YR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_2(e,n)}function XR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),_2(e,n)}var $2;$2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qt=!1,LR(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Fe&&t.flags&1048576&&IC(t,Zc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nc(e,t),e=t.pendingProps;var o=ks(t,Rt.current);ds(t,n),o=wg(null,t,r,e,o,n);var i=kg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yt(r)?(i=!0,Xc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gg(t),o.updater=nf,t.stateNode=o,o._reactInternals=t,mm(t,r,e,n),t=ym(null,t,r,!0,i,n)):(t.tag=0,Fe&&i&&cg(t),Mt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ZR(r),e=zn(r,e),o){case 0:t=gm(null,t,r,e,n);break e;case 1:t=N1(null,t,r,e,n);break e;case 11:t=F1(null,t,r,e,n);break e;case 14:t=L1(null,t,r,zn(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),gm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),N1(e,t,r,o,n);case 3:e:{if(f2(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,VC(e,t),td(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ts(Error(I(423)),t),t=V1(e,t,r,n,o);break e}else if(r!==o){o=Ts(Error(I(424)),t),t=V1(e,t,r,n,o);break e}else for(un=yo(t.stateNode.containerInfo.firstChild),cn=t,Fe=!0,Hn=null,n=LC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cs(),r===o){t=Br(e,t,n);break e}Mt(e,t,r,n)}t=t.child}return t;case 5:return zC(t),e===null&&fm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,am(r,o)?s=null:i!==null&&am(r,i)&&(t.flags|=32),d2(e,t),Mt(e,t,s,n),t.child;case 6:return e===null&&fm(t),null;case 13:return p2(e,t,n);case 4:return yg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):Mt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),F1(e,t,r,o,n);case 7:return Mt(e,t,t.pendingProps,n),t.child;case 8:return Mt(e,t,t.pendingProps.children,n),t.child;case 12:return Mt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$e(Jc,r._currentValue),r._currentValue=s,i!==null)if(Yn(i.value,s)){if(i.children===o.children&&!Gt.current){t=Br(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Mr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),pm(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pm(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Mt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ds(t,n),o=In(o),r=r(o),t.flags|=1,Mt(e,t,r,n),t.child;case 14:return r=t.type,o=zn(r,t.pendingProps),o=zn(r.type,o),L1(e,t,r,o,n);case 15:return u2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zn(r,o),nc(e,t),t.tag=1,Yt(r)?(e=!0,Xc(t)):e=!1,ds(t,n),s2(t,r,o),mm(t,r,o,n),ym(null,t,r,!0,e,n);case 19:return h2(e,t,n);case 22:return c2(e,t,n)}throw Error(I(156,t.tag))};function O2(e,t){return rC(e,t)}function QR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,r){return new QR(e,t,n,r)}function Ig(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZR(e){if(typeof e=="function")return Ig(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zv)return 11;if(e===Jv)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Ig(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vi:return oi(n.children,o,i,t);case Qv:s=8,o|=8;break;case Vh:return e=$n(12,n,t,o|2),e.elementType=Vh,e.lanes=i,e;case zh:return e=$n(13,n,t,o),e.elementType=zh,e.lanes=i,e;case Bh:return e=$n(19,n,t,o),e.elementType=Bh,e.lanes=i,e;case zk:return sf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nk:s=10;break e;case Vk:s=9;break e;case Zv:s=11;break e;case Jv:s=14;break e;case oo:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=$n(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function oi(e,t,n,r){return e=$n(7,e,r,t),e.lanes=n,e}function sf(e,t,n,r){return e=$n(22,e,r,t),e.elementType=zk,e.lanes=n,e.stateNode={isHidden:!1},e}function Ep(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function Tp(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ap(0),this.expirationTimes=ap(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ap(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ag(e,t,n,r,o,i,s,a,l){return e=new JR(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$n(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gg(i),e}function e5(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A2)}catch(e){console.error(e)}}A2(),Ak.exports=gn;var Wl=Ak.exports;const cee=Kd(Wl);var Q1=Wl;Uy.createRoot=Q1.createRoot,Uy.hydrateRoot=Q1.hydrateRoot;function i5(e){if(e.sheet)return e.sheet;for(var t=0;t0?ht(Hs,--Jt):0,$s--,Qe===10&&($s=1,ff--),Qe}function dn(){return Qe=Jt2||bl(Qe)>3?"":" "}function y5(e,t){for(;--t&&dn()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return Ul(e,sc()+(t<6&&hr()==32&&dn()==32))}function Rm(e){for(;dn();)switch(Qe){case e:return Jt;case 34:case 39:e!==34&&e!==39&&Rm(Qe);break;case 40:e===41&&Rm(e);break;case 92:dn();break}return Jt}function b5(e,t){for(;dn()&&e+Qe!==57;)if(e+Qe===84&&hr()===47)break;return"/*"+Ul(t,Jt-1)+"*"+df(e===47?e:dn())}function S5(e){for(;!bl(hr());)dn();return Ul(e,Jt)}function x5(e){return z2(lc("",null,null,null,[""],e=V2(e),0,[0],e))}function lc(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,h=1,S=1,v=1,y=0,b="",x=o,k=i,P=r,C=b;S;)switch(m=y,y=dn()){case 40:if(m!=108&&ht(C,d-1)==58){Om(C+=ge(ac(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:C+=ac(y);break;case 9:case 10:case 13:case 32:C+=g5(m);break;case 92:C+=y5(sc()-1,7);continue;case 47:switch(hr()){case 42:case 47:Su(w5(b5(dn(),sc()),t,n),l);break;default:C+="/"}break;case 123*h:a[u++]=ar(C)*v;case 125*h:case 59:case 0:switch(y){case 0:case 125:S=0;case 59+c:v==-1&&(C=ge(C,/\f/g,"")),p>0&&ar(C)-d&&Su(p>32?J1(C+";",r,n,d-1):J1(ge(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Su(P=Z1(C,t,n,u,c,o,a,b,x=[],k=[],d),i),y===123)if(c===0)lc(C,t,P,P,x,i,d,a,k);else switch(f===99&&ht(C,3)===110?100:f){case 100:case 108:case 109:case 115:lc(e,P,P,r&&Su(Z1(e,P,P,0,0,o,a,b,o,x=[],d),k),o,k,d,a,r?x:k);break;default:lc(C,P,P,P,[""],k,0,a,k)}}u=c=p=0,h=v=1,b=C="",d=s;break;case 58:d=1+ar(C),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&v5()==125)continue}switch(C+=df(y),y*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(ar(C)-1)*v,v=1;break;case 64:hr()===45&&(C+=ac(dn())),f=hr(),c=d=ar(b=C+=S5(sc())),y++;break;case 45:m===45&&ar(C)==2&&(h=0)}}return i}function Z1(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=zg(f),m=0,h=0,S=0;m0?f[v]+" "+y:ge(y,/&\f/g,f[v])))&&(l[S++]=b);return pf(e,t,n,o===0?Ng:a,l,u,c)}function w5(e,t,n){return pf(e,t,n,D2,df(m5()),yl(e,2,-2),0)}function J1(e,t,n,r){return pf(e,t,n,Vg,yl(e,0,r),yl(e,r+1,-1),r)}function ps(e,t){for(var n="",r=zg(e),o=0;o6)switch(ht(e,t+1)){case 109:if(ht(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+cd+(ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Om(e,"stretch")?j2(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ht(e,t+1)!==115)break;case 6444:switch(ht(e,ar(e)-3-(~Om(e,"!important")&&10))){case 107:return ge(e,":",":"+ve)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(ht(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(ht(e,t+11)){case 114:return ve+e+Pt+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+Pt+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+Pt+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+Pt+e+e}return e}var R5=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Vg:t.return=j2(t.value,t.length);break;case F2:return ps([oa(t,{value:ge(t.value,"@","@"+ve)})],o);case Ng:if(t.length)return h5(t.props,function(i){switch(p5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ps([oa(t,{props:[ge(i,/:(read-\w+)/,":"+cd+"$1")]})],o);case"::placeholder":return ps([oa(t,{props:[ge(i,/:(plac\w+)/,":"+ve+"input-$1")]}),oa(t,{props:[ge(i,/:(plac\w+)/,":"+cd+"$1")]}),oa(t,{props:[ge(i,/:(plac\w+)/,Pt+"input-$1")]})],o)}return""})}},M5=[R5],I5=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var S=h.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||M5,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var S=h.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var H5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},U5=/[A-Z]|^ms/g,q5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G2=function(t){return t.charCodeAt(1)===45},nb=function(t){return t!=null&&typeof t!="boolean"},_p=B2(function(e){return G2(e)?e:e.replace(U5,"-$&").toLowerCase()}),rb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q5,function(r,o,i){return lr={name:o,styles:i,next:lr},o})}return H5[t]!==1&&!G2(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return lr={name:n.name,styles:n.styles,next:lr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)lr={name:r.name,styles:r.styles,next:lr},r=r.next;var o=n.styles+";";return o}return K5(e,t,n)}case"function":{if(e!==void 0){var i=lr,s=n(e);return lr=i,Sl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function K5(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var W5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},U5=/[A-Z]|^ms/g,q5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G2=function(t){return t.charCodeAt(1)===45},nb=function(t){return t!=null&&typeof t!="boolean"},_p=B2(function(e){return G2(e)?e:e.replace(U5,"-$&").toLowerCase()}),rb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q5,function(r,o,i){return lr={name:o,styles:i,next:lr},o})}return W5[t]!==1&&!G2(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return lr={name:n.name,styles:n.styles,next:lr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)lr={name:r.name,styles:r.styles,next:lr},r=r.next;var o=n.styles+";";return o}return K5(e,t,n)}case"function":{if(e!==void 0){var i=lr,s=n(e);return lr=i,Sl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function K5(e,t,n){var r="";if(Array.isArray(n))for(var o=0;ow.jsx(Pf,{styles:J2}),rM=({scope:e=""})=>w.jsx(Pf,{styles:Z2` +`,n3=()=>w.jsx(Pf,{styles:J2}),r3=({scope:e=""})=>w.jsx(Pf,{styles:Z2` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -323,9 +323,9 @@ Error generating stack: `+i.message+` } ${J2} - `});function oM(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ge(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=g.createContext(s);a.displayName=t;function l(){var u;const c=g.useContext(a);if(!c&&n){const d=new Error(i??oM(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[iM,sM]=Ge({strict:!1,name:"PortalManagerContext"});function eP(e){const{children:t,zIndex:n}=e;return w.jsx(iM,{value:{zIndex:n},children:t})}eP.displayName="PortalManager";var Ir=globalThis!=null&&globalThis.document?g.useLayoutEffect:g.useEffect,[tP,aM]=Ge({strict:!1,name:"PortalContext"}),Yg="chakra-portal",lM=".chakra-portal",uM=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),cM=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=g.useState(null),i=g.useRef(null),[,s]=g.useState({});g.useEffect(()=>s({}),[]);const a=aM(),l=sM();Ir(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=Yg,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?w.jsx(uM,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?Hl.createPortal(w.jsx(tP,{value:i.current,children:u}),i.current):w.jsx("span",{ref:c=>{c&&o(c)}})},dM=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=g.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Yg),l},[o]),[,a]=g.useState({});return Ir(()=>a({}),[]),Ir(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Hl.createPortal(w.jsx(tP,{value:r?s:null,children:t}),s):null};function Hs(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?w.jsx(dM,{containerRef:n,...r}):w.jsx(cM,{...r})}Hs.className=Yg;Hs.selector=lM;Hs.displayName="Portal";function Yr(){const e=g.useContext(Os);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Xg=g.createContext({});Xg.displayName="ColorModeContext";function Ef(){const e=g.useContext(Xg);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function sb(e,t){const{colorMode:n}=Ef();return n==="dark"?t:e}var xu={light:"chakra-ui-light",dark:"chakra-ui-dark"};function fM(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?xu.dark:xu.light),document.body.classList.remove(r?xu.light:xu.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.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 r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var pM="chakra-ui-color-mode";function hM(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var mM=hM(pM),ab=()=>{};function lb(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function nP(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=mM}=e,a=o==="dark"?"dark":"light",[l,u]=g.useState(()=>lb(s,a)),[c,d]=g.useState(()=>lb(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:h}=g.useMemo(()=>fM({preventTransition:i}),[i]),S=o==="system"&&!l?c:l,v=g.useCallback(x=>{const k=x==="system"?f():x;u(k),p(k==="dark"),m(k),s.set(k)},[s,f,p,m]);Ir(()=>{o==="system"&&d(f())},[]),g.useEffect(()=>{const x=s.get();if(x){v(x);return}if(o==="system"){v("system");return}v(a)},[s,a,o,v]);const y=g.useCallback(()=>{v(S==="dark"?"light":"dark")},[S,v]);g.useEffect(()=>{if(r)return h(v)},[r,h,v]);const b=g.useMemo(()=>({colorMode:t??S,toggleColorMode:t?ab:y,setColorMode:t?ab:v,forced:t!==void 0}),[S,y,v,t]);return w.jsx(Xg.Provider,{value:b,children:n})}nP.displayName="ColorModeProvider";var vM=new Set(["dark","light","system"]);function gM(e){let t=e;return vM.has(t)||(t="light"),t}function yM(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=gM(t),i=n==="cookie",s=`(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="${r}",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){}})(); + `});function o3(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ge(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=g.createContext(s);a.displayName=t;function l(){var u;const c=g.useContext(a);if(!c&&n){const d=new Error(i??o3(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[i3,s3]=Ge({strict:!1,name:"PortalManagerContext"});function eP(e){const{children:t,zIndex:n}=e;return w.jsx(i3,{value:{zIndex:n},children:t})}eP.displayName="PortalManager";var Ir=globalThis!=null&&globalThis.document?g.useLayoutEffect:g.useEffect,[tP,a3]=Ge({strict:!1,name:"PortalContext"}),Yg="chakra-portal",l3=".chakra-portal",u3=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),c3=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=g.useState(null),i=g.useRef(null),[,s]=g.useState({});g.useEffect(()=>s({}),[]);const a=a3(),l=s3();Ir(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=Yg,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?w.jsx(u3,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?Wl.createPortal(w.jsx(tP,{value:i.current,children:u}),i.current):w.jsx("span",{ref:c=>{c&&o(c)}})},d3=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=g.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Yg),l},[o]),[,a]=g.useState({});return Ir(()=>a({}),[]),Ir(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Wl.createPortal(w.jsx(tP,{value:r?s:null,children:t}),s):null};function Ws(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?w.jsx(d3,{containerRef:n,...r}):w.jsx(c3,{...r})}Ws.className=Yg;Ws.selector=l3;Ws.displayName="Portal";function Yr(){const e=g.useContext(Os);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Xg=g.createContext({});Xg.displayName="ColorModeContext";function Ef(){const e=g.useContext(Xg);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function sb(e,t){const{colorMode:n}=Ef();return n==="dark"?t:e}var xu={light:"chakra-ui-light",dark:"chakra-ui-dark"};function f3(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?xu.dark:xu.light),document.body.classList.remove(r?xu.light:xu.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.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 r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var p3="chakra-ui-color-mode";function h3(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var m3=h3(p3),ab=()=>{};function lb(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function nP(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=m3}=e,a=o==="dark"?"dark":"light",[l,u]=g.useState(()=>lb(s,a)),[c,d]=g.useState(()=>lb(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:h}=g.useMemo(()=>f3({preventTransition:i}),[i]),S=o==="system"&&!l?c:l,v=g.useCallback(x=>{const k=x==="system"?f():x;u(k),p(k==="dark"),m(k),s.set(k)},[s,f,p,m]);Ir(()=>{o==="system"&&d(f())},[]),g.useEffect(()=>{const x=s.get();if(x){v(x);return}if(o==="system"){v("system");return}v(a)},[s,a,o,v]);const y=g.useCallback(()=>{v(S==="dark"?"light":"dark")},[S,v]);g.useEffect(()=>{if(r)return h(v)},[r,h,v]);const b=g.useMemo(()=>({colorMode:t??S,toggleColorMode:t?ab:y,setColorMode:t?ab:v,forced:t!==void 0}),[S,y,v,t]);return w.jsx(Xg.Provider,{value:b,children:n})}nP.displayName="ColorModeProvider";var v3=new Set(["dark","light","system"]);function g3(e){let t=e;return v3.has(t)||(t="light"),t}function y3(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=g3(t),i=n==="cookie",s=`(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="${r}",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){}})(); `,a=`(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="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:a}`.trim()}function dee(e={}){const{nonce:t}=e;return w.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:yM(e)}})}function rP(){const e=Ef(),t=Yr();return{...e,theme:t}}function bM(e,t,n){var r,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.value};return(o=(r=i(t))!=null?r:i(n))!=null?o:n}function SM(e,t,n){const r=Yr();return xM(e,t,n)(r)}function xM(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,u)=>{var c;const d=`${e}.${l}`;return bM(i,d,(c=s[u])!=null?c:l)});return Array.isArray(t)?a:a[0]}}var Z=(...e)=>e.filter(Boolean).join(" ");function wM(){return!1}function $t(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var kM=e=>{const{condition:t,message:n}=e;t&&wM()&&console.warn(n)};function Kt(e,...t){return CM(e)?e(...t):e}var CM=e=>typeof e=="function",ce=e=>e?"":void 0,$p=e=>e?!0:void 0;function Ee(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function PM(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var EM=e=>/!(important)?$/.test(e),ub=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,TM=(e,t)=>n=>{const r=String(t),o=EM(r),i=ub(r),s=e?`${e}.${i}`:i;let a=$t(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=ub(a),o?`${a} !important`:a};function Qg(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=TM(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var wu=(...e)=>t=>e.reduce((n,r)=>r(n),t);function xn(e,t){return n=>{const r={property:n,scale:e};return r.transform=Qg({scale:e,transform:t}),r}}var _M=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function $M(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:_M(t),transform:n?Qg({scale:n,compose:r}):r}}var oP=["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 OM(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...oP].join(" ")}function RM(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...oP].join(" ")}var MM={"--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(" ")},IM={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 AM(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 DM={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Im={"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"},FM=new Set(Object.values(Im)),Am=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),LM=e=>e.trim();function NM(e,t){if(e==null||Am.has(e))return e;if(!(Dm(e)||Am.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(LM).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Im?Im[l]:l;u.unshift(c);const d=u.map(f=>{if(FM.has(f))return f;const p=f.indexOf(" "),[m,h]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],S=Dm(h)?h:h&&h.split(" "),v=`colors.${m}`,y=v in t.__cssMap?t.__cssMap[v].varRef:m;return S?[y,...Array.isArray(S)?S:[S]].join(" "):y});return`${a}(${d.join(", ")})`}var Dm=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),VM=(e,t)=>NM(e,t??{});function zM(e){return/^var\(--.+\)$/.test(e)}var BM=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},tr=e=>t=>`${e}(${t})`,fe={filter(e){return e!=="auto"?e:MM},backdropFilter(e){return e!=="auto"?e:IM},ring(e){return AM(fe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?OM():e==="auto-gpu"?RM():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=BM(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(zM(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:VM,blur:tr("blur"),opacity:tr("opacity"),brightness:tr("brightness"),contrast:tr("contrast"),dropShadow:tr("drop-shadow"),grayscale:tr("grayscale"),hueRotate:e=>tr("hue-rotate")(fe.degree(e)),invert:tr("invert"),saturate:tr("saturate"),sepia:tr("sepia"),bgImage(e){return e==null||Dm(e)||Am.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:n,divide:r}=(t=DM[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},T={borderWidths:xn("borderWidths"),borderStyles:xn("borderStyles"),colors:xn("colors"),borders:xn("borders"),gradients:xn("gradients",fe.gradient),radii:xn("radii",fe.px),space:xn("space",wu(fe.vh,fe.px)),spaceT:xn("space",wu(fe.vh,fe.px)),degreeT(e){return{property:e,transform:fe.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Qg({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xn("sizes",wu(fe.vh,fe.px)),sizesT:xn("sizes",wu(fe.vh,fe.fraction)),shadows:xn("shadows"),logical:$M,blur:xn("blur",fe.blur)},uc={background:T.colors("background"),backgroundColor:T.colors("backgroundColor"),backgroundImage:T.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:fe.bgClip},bgSize:T.prop("backgroundSize"),bgPosition:T.prop("backgroundPosition"),bg:T.colors("background"),bgColor:T.colors("backgroundColor"),bgPos:T.prop("backgroundPosition"),bgRepeat:T.prop("backgroundRepeat"),bgAttachment:T.prop("backgroundAttachment"),bgGradient:T.gradients("backgroundImage"),bgClip:{transform:fe.bgClip}};Object.assign(uc,{bgImage:uc.backgroundImage,bgImg:uc.backgroundImage});var me={border:T.borders("border"),borderWidth:T.borderWidths("borderWidth"),borderStyle:T.borderStyles("borderStyle"),borderColor:T.colors("borderColor"),borderRadius:T.radii("borderRadius"),borderTop:T.borders("borderTop"),borderBlockStart:T.borders("borderBlockStart"),borderTopLeftRadius:T.radii("borderTopLeftRadius"),borderStartStartRadius:T.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:T.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:T.radii("borderTopRightRadius"),borderStartEndRadius:T.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:T.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:T.borders("borderRight"),borderInlineEnd:T.borders("borderInlineEnd"),borderBottom:T.borders("borderBottom"),borderBlockEnd:T.borders("borderBlockEnd"),borderBottomLeftRadius:T.radii("borderBottomLeftRadius"),borderBottomRightRadius:T.radii("borderBottomRightRadius"),borderLeft:T.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:T.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:T.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:T.borders(["borderLeft","borderRight"]),borderInline:T.borders("borderInline"),borderY:T.borders(["borderTop","borderBottom"]),borderBlock:T.borders("borderBlock"),borderTopWidth:T.borderWidths("borderTopWidth"),borderBlockStartWidth:T.borderWidths("borderBlockStartWidth"),borderTopColor:T.colors("borderTopColor"),borderBlockStartColor:T.colors("borderBlockStartColor"),borderTopStyle:T.borderStyles("borderTopStyle"),borderBlockStartStyle:T.borderStyles("borderBlockStartStyle"),borderBottomWidth:T.borderWidths("borderBottomWidth"),borderBlockEndWidth:T.borderWidths("borderBlockEndWidth"),borderBottomColor:T.colors("borderBottomColor"),borderBlockEndColor:T.colors("borderBlockEndColor"),borderBottomStyle:T.borderStyles("borderBottomStyle"),borderBlockEndStyle:T.borderStyles("borderBlockEndStyle"),borderLeftWidth:T.borderWidths("borderLeftWidth"),borderInlineStartWidth:T.borderWidths("borderInlineStartWidth"),borderLeftColor:T.colors("borderLeftColor"),borderInlineStartColor:T.colors("borderInlineStartColor"),borderLeftStyle:T.borderStyles("borderLeftStyle"),borderInlineStartStyle:T.borderStyles("borderInlineStartStyle"),borderRightWidth:T.borderWidths("borderRightWidth"),borderInlineEndWidth:T.borderWidths("borderInlineEndWidth"),borderRightColor:T.colors("borderRightColor"),borderInlineEndColor:T.colors("borderInlineEndColor"),borderRightStyle:T.borderStyles("borderRightStyle"),borderInlineEndStyle:T.borderStyles("borderInlineEndStyle"),borderTopRadius:T.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:T.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:T.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:T.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(me,{rounded:me.borderRadius,roundedTop:me.borderTopRadius,roundedTopLeft:me.borderTopLeftRadius,roundedTopRight:me.borderTopRightRadius,roundedTopStart:me.borderStartStartRadius,roundedTopEnd:me.borderStartEndRadius,roundedBottom:me.borderBottomRadius,roundedBottomLeft:me.borderBottomLeftRadius,roundedBottomRight:me.borderBottomRightRadius,roundedBottomStart:me.borderEndStartRadius,roundedBottomEnd:me.borderEndEndRadius,roundedLeft:me.borderLeftRadius,roundedRight:me.borderRightRadius,roundedStart:me.borderInlineStartRadius,roundedEnd:me.borderInlineEndRadius,borderStart:me.borderInlineStart,borderEnd:me.borderInlineEnd,borderTopStartRadius:me.borderStartStartRadius,borderTopEndRadius:me.borderStartEndRadius,borderBottomStartRadius:me.borderEndStartRadius,borderBottomEndRadius:me.borderEndEndRadius,borderStartRadius:me.borderInlineStartRadius,borderEndRadius:me.borderInlineEndRadius,borderStartWidth:me.borderInlineStartWidth,borderEndWidth:me.borderInlineEndWidth,borderStartColor:me.borderInlineStartColor,borderEndColor:me.borderInlineEndColor,borderStartStyle:me.borderInlineStartStyle,borderEndStyle:me.borderInlineEndStyle});var jM={color:T.colors("color"),textColor:T.colors("color"),fill:T.colors("fill"),stroke:T.colors("stroke")},Fm={boxShadow:T.shadows("boxShadow"),mixBlendMode:!0,blendMode:T.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:T.prop("backgroundBlendMode"),opacity:!0};Object.assign(Fm,{shadow:Fm.boxShadow});var WM={filter:{transform:fe.filter},blur:T.blur("--chakra-blur"),brightness:T.propT("--chakra-brightness",fe.brightness),contrast:T.propT("--chakra-contrast",fe.contrast),hueRotate:T.propT("--chakra-hue-rotate",fe.hueRotate),invert:T.propT("--chakra-invert",fe.invert),saturate:T.propT("--chakra-saturate",fe.saturate),dropShadow:T.propT("--chakra-drop-shadow",fe.dropShadow),backdropFilter:{transform:fe.backdropFilter},backdropBlur:T.blur("--chakra-backdrop-blur"),backdropBrightness:T.propT("--chakra-backdrop-brightness",fe.brightness),backdropContrast:T.propT("--chakra-backdrop-contrast",fe.contrast),backdropHueRotate:T.propT("--chakra-backdrop-hue-rotate",fe.hueRotate),backdropInvert:T.propT("--chakra-backdrop-invert",fe.invert),backdropSaturate:T.propT("--chakra-backdrop-saturate",fe.saturate)},dd={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:fe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:T.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:T.space("gap"),rowGap:T.space("rowGap"),columnGap:T.space("columnGap")};Object.assign(dd,{flexDir:dd.flexDirection});var iP={gridGap:T.space("gridGap"),gridColumnGap:T.space("gridColumnGap"),gridRowGap:T.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},HM={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:fe.outline},outlineOffset:!0,outlineColor:T.colors("outlineColor")},kn={width:T.sizesT("width"),inlineSize:T.sizesT("inlineSize"),height:T.sizes("height"),blockSize:T.sizes("blockSize"),boxSize:T.sizes(["width","height"]),minWidth:T.sizes("minWidth"),minInlineSize:T.sizes("minInlineSize"),minHeight:T.sizes("minHeight"),minBlockSize:T.sizes("minBlockSize"),maxWidth:T.sizes("maxWidth"),maxInlineSize:T.sizes("maxInlineSize"),maxHeight:T.sizes("maxHeight"),maxBlockSize:T.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 n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:T.propT("float",fe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(kn,{w:kn.width,h:kn.height,minW:kn.minWidth,maxW:kn.maxWidth,minH:kn.minHeight,maxH:kn.maxHeight,overscroll:kn.overscrollBehavior,overscrollX:kn.overscrollBehaviorX,overscrollY:kn.overscrollBehaviorY});var UM={listStyleType:!0,listStylePosition:!0,listStylePos:T.prop("listStylePosition"),listStyleImage:!0,listStyleImg:T.prop("listStyleImage")};function qM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},GM=KM(qM),YM={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},XM={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Op=(e,t,n)=>{const r={},o=GM(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},QM={srOnly:{transform(e){return e===!0?YM:e==="focusable"?XM:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Op(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Op(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Op(t,e,n)}},Ba={position:!0,pos:T.prop("position"),zIndex:T.prop("zIndex","zIndices"),inset:T.spaceT("inset"),insetX:T.spaceT(["left","right"]),insetInline:T.spaceT("insetInline"),insetY:T.spaceT(["top","bottom"]),insetBlock:T.spaceT("insetBlock"),top:T.spaceT("top"),insetBlockStart:T.spaceT("insetBlockStart"),bottom:T.spaceT("bottom"),insetBlockEnd:T.spaceT("insetBlockEnd"),left:T.spaceT("left"),insetInlineStart:T.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:T.spaceT("right"),insetInlineEnd:T.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ba,{insetStart:Ba.insetInlineStart,insetEnd:Ba.insetInlineEnd});var ZM={ring:{transform:fe.ring},ringColor:T.colors("--chakra-ring-color"),ringOffset:T.prop("--chakra-ring-offset-width"),ringOffsetColor:T.colors("--chakra-ring-offset-color"),ringInset:T.prop("--chakra-ring-inset")},Me={margin:T.spaceT("margin"),marginTop:T.spaceT("marginTop"),marginBlockStart:T.spaceT("marginBlockStart"),marginRight:T.spaceT("marginRight"),marginInlineEnd:T.spaceT("marginInlineEnd"),marginBottom:T.spaceT("marginBottom"),marginBlockEnd:T.spaceT("marginBlockEnd"),marginLeft:T.spaceT("marginLeft"),marginInlineStart:T.spaceT("marginInlineStart"),marginX:T.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:T.spaceT("marginInline"),marginY:T.spaceT(["marginTop","marginBottom"]),marginBlock:T.spaceT("marginBlock"),padding:T.space("padding"),paddingTop:T.space("paddingTop"),paddingBlockStart:T.space("paddingBlockStart"),paddingRight:T.space("paddingRight"),paddingBottom:T.space("paddingBottom"),paddingBlockEnd:T.space("paddingBlockEnd"),paddingLeft:T.space("paddingLeft"),paddingInlineStart:T.space("paddingInlineStart"),paddingInlineEnd:T.space("paddingInlineEnd"),paddingX:T.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:T.space("paddingInline"),paddingY:T.space(["paddingTop","paddingBottom"]),paddingBlock:T.space("paddingBlock")};Object.assign(Me,{m:Me.margin,mt:Me.marginTop,mr:Me.marginRight,me:Me.marginInlineEnd,marginEnd:Me.marginInlineEnd,mb:Me.marginBottom,ml:Me.marginLeft,ms:Me.marginInlineStart,marginStart:Me.marginInlineStart,mx:Me.marginX,my:Me.marginY,p:Me.padding,pt:Me.paddingTop,py:Me.paddingY,px:Me.paddingX,pb:Me.paddingBottom,pl:Me.paddingLeft,ps:Me.paddingInlineStart,paddingStart:Me.paddingInlineStart,pr:Me.paddingRight,pe:Me.paddingInlineEnd,paddingEnd:Me.paddingInlineEnd});var JM={textDecorationColor:T.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:T.shadows("textShadow")},e3={clipPath:!0,transform:T.propT("transform",fe.transform),transformOrigin:!0,translateX:T.spaceT("--chakra-translate-x"),translateY:T.spaceT("--chakra-translate-y"),skewX:T.degreeT("--chakra-skew-x"),skewY:T.degreeT("--chakra-skew-y"),scaleX:T.prop("--chakra-scale-x"),scaleY:T.prop("--chakra-scale-y"),scale:T.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:T.degreeT("--chakra-rotate")},t3={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:T.prop("transitionDuration","transition.duration"),transitionProperty:T.prop("transitionProperty","transition.property"),transitionTimingFunction:T.prop("transitionTimingFunction","transition.easing")},n3={fontFamily:T.prop("fontFamily","fonts"),fontSize:T.prop("fontSize","fontSizes",fe.px),fontWeight:T.prop("fontWeight","fontWeights"),lineHeight:T.prop("lineHeight","lineHeights"),letterSpacing:T.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"}},r3={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:T.spaceT("scrollMargin"),scrollMarginTop:T.spaceT("scrollMarginTop"),scrollMarginBottom:T.spaceT("scrollMarginBottom"),scrollMarginLeft:T.spaceT("scrollMarginLeft"),scrollMarginRight:T.spaceT("scrollMarginRight"),scrollMarginX:T.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:T.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:T.spaceT("scrollPadding"),scrollPaddingTop:T.spaceT("scrollPaddingTop"),scrollPaddingBottom:T.spaceT("scrollPaddingBottom"),scrollPaddingLeft:T.spaceT("scrollPaddingLeft"),scrollPaddingRight:T.spaceT("scrollPaddingRight"),scrollPaddingX:T.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:T.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function sP(e){return $t(e)&&e.reference?e.reference:String(e)}var Tf=(e,...t)=>t.map(sP).join(` ${e} `).replace(/calc/g,""),cb=(...e)=>`calc(${Tf("+",...e)})`,db=(...e)=>`calc(${Tf("-",...e)})`,Lm=(...e)=>`calc(${Tf("*",...e)})`,fb=(...e)=>`calc(${Tf("/",...e)})`,pb=e=>{const t=sP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Lm(t,-1)},Wo=Object.assign(e=>({add:(...t)=>Wo(cb(e,...t)),subtract:(...t)=>Wo(db(e,...t)),multiply:(...t)=>Wo(Lm(e,...t)),divide:(...t)=>Wo(fb(e,...t)),negate:()=>Wo(pb(e)),toString:()=>e.toString()}),{add:cb,subtract:db,multiply:Lm,divide:fb,negate:pb});function o3(e,t="-"){return e.replace(/\s+/g,t)}function i3(e){const t=o3(e.toString());return a3(s3(t))}function s3(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function a3(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function l3(e,t=""){return[t,e].filter(Boolean).join("-")}function u3(e,t){return`var(${e}${t?`, ${t}`:""})`}function c3(e,t=""){return i3(`--${l3(e,t)}`)}function Y(e,t,n){const r=c3(e,n);return{variable:r,reference:u3(r,t)}}function d3(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=Y(`${e}-${o}`,i);continue}n[r]=Y(`${e}-${r}`)}return n}function f3(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function p3(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Nm(e){if(e==null)return e;const{unitless:t}=p3(e);return t||typeof e=="number"?`${e}px`:e}var aP=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Zg=e=>Object.fromEntries(Object.entries(e).sort(aP));function hb(e){const t=Zg(e);return Object.assign(Object.values(t),t)}function h3(e){const t=Object.keys(Zg(e));return new Set(t)}function mb(e){var t;if(!e)return e;e=(t=Nm(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function ya(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Nm(e)})`),t&&n.push("and",`(max-width: ${Nm(t)})`),n.join(" ")}function m3(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=hb(e),r=Object.entries(e).sort(aP).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?mb(d):void 0,{_minW:mb(a),breakpoint:s,minW:a,maxW:d,maxWQuery:ya(null,d),minWQuery:ya(a),minMaxQuery:ya(a,d)}}),o=h3(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:Zg(e),asArray:hb(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>ya(s)).slice(1)],toArrayValue(s){if(!$t(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;f3(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var dt={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}`},Zr=e=>lP(t=>e(t,"&"),"[role=group]","[data-group]",".group"),wr=e=>lP(t=>e(t,"~ &"),"[data-peer]",".peer"),lP=(e,...t)=>t.map(e).join(", "),_f={_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:Zr(dt.hover),_peerHover:wr(dt.hover),_groupFocus:Zr(dt.focus),_peerFocus:wr(dt.focus),_groupFocusVisible:Zr(dt.focusVisible),_peerFocusVisible:wr(dt.focusVisible),_groupActive:Zr(dt.active),_peerActive:wr(dt.active),_groupDisabled:Zr(dt.disabled),_peerDisabled:wr(dt.disabled),_groupInvalid:Zr(dt.invalid),_peerInvalid:wr(dt.invalid),_groupChecked:Zr(dt.checked),_peerChecked:wr(dt.checked),_groupFocusWithin:Zr(dt.focusWithin),_peerFocusWithin:wr(dt.focusWithin),_peerPlaceholderShown:wr(dt.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]"},uP=Object.keys(_f);function vb(e,t){return Y(String(e).replace(/\./g,"-"),void 0,t)}function v3(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=vb(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,h=`${p}.-${m.join(".")}`,S=Wo.negate(a),v=Wo.negate(u);r[h]={value:S,var:l,varRef:v}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=f=>{const m=[String(o).split(".")[0],f].join(".");if(!e[m])return f;const{reference:S}=vb(m,t==null?void 0:t.cssVarPrefix);return S},d=$t(a)?a:{default:a};n=_n(n,Object.entries(d).reduce((f,[p,m])=>{var h,S;if(!m)return f;const v=c(`${m}`);if(p==="default")return f[l]=v,f;const y=(S=(h=_f)==null?void 0:h[p])!=null?S:p;return f[y]={[l]:v},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function g3(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function y3(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function b3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function gb(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(b3(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(r!=null&&r(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var S3=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function x3(e){return y3(e,S3)}function w3(e){return e.semanticTokens}function k3(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var C3=e=>uP.includes(e)||e==="default";function P3({tokens:e,semanticTokens:t}){const n={};return gb(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),gb(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(C3)}),n}function E3(e){var t;const n=k3(e),r=x3(n),o=w3(n),i=P3({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=v3(i,{cssVarPrefix:s});return Object.assign(n,{__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:a,__breakpoints:m3(n.breakpoints)}),n}var Jg=_n({},uc,me,jM,dd,kn,WM,ZM,HM,iP,QM,Ba,Fm,Me,r3,n3,JM,e3,UM,t3);Object.assign({},Me,kn,dd,iP,Ba);var T3=[...Object.keys(Jg),...uP],_3={...Jg,..._f},$3=e=>e in _3,O3=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Kt(e[s],t);if(a==null)continue;if(a=$t(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!M3(t),A3=(e,t)=>{var n,r;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},[s,a]=R3(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function D3(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Kt(i,r),d=O3(c)(r);let f={};for(let p in d){const m=d[p];let h=Kt(m,r);p in n&&(p=n[p]),I3(p,h)&&(h=A3(r,h));let S=t[p];if(S===!0&&(S={property:p}),$t(h)){f[p]=(a=f[p])!=null?a:{},f[p]=_n({},f[p],o(h,!0));continue}let v=(u=(l=S==null?void 0:S.transform)==null?void 0:l.call(S,h,r,c))!=null?u:h;v=S!=null&&S.processResult?o(v,!0):v;const y=Kt(S==null?void 0:S.property,r);if(!s&&(S!=null&&S.static)){const b=Kt(S.static,r);f=_n({},f,b)}if(y&&Array.isArray(y)){for(const b of y)f[b]=v;continue}if(y){y==="&"&&$t(v)?f=_n({},f,v):f[y]=v;continue}if($t(v)){f=_n({},f,v);continue}f[p]=v}return f};return o}var cP=e=>t=>D3({theme:t,pseudos:_f,configs:Jg})(e);function Oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function F3(e,t){if(Array.isArray(e))return e;if($t(e))return t(e);if(e!=null)return[e]}function L3(e,t){for(let n=t+1;n{_n(u,{[b]:f?y[b]:{[v]:y[b]}})});continue}if(!p){f?_n(u,y):u[v]=y;continue}u[v]=y}}return u}}function V3(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=N3(i);return _n({},Kt((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function z3(e,t,n){var r,o,i;return(i=(o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)!=null?i:n}function Ye(e){return g3(e,["styleConfig","size","variant","colorScheme"])}var B3=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function j3(e){return $t(e)?B3.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var W3={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"},H3={"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)"},U3={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},q3={property:W3,easing:H3,duration:U3},K3=q3,G3={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},Y3=G3,X3={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Q3=X3,Z3={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},J3=Z3,eI={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"}},tI=eI,nI={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},rI=nI,oI={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"},iI=oI,sI={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},aI=sI,lI={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"}},dP=lI,fP={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"},uI={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"},cI={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},dI={...fP,...uI,container:cI},pP=dI,fI={breakpoints:J3,zIndices:Y3,radii:rI,blur:aI,colors:tI,...dP,sizes:pP,shadows:iI,space:fP,borders:Q3,transition:K3},{defineMultiStyleConfig:pI,definePartsStyle:ba}=Oe(["stepper","step","title","description","indicator","separator","icon","number"]),Er=Y("stepper-indicator-size"),Xi=Y("stepper-icon-size"),Qi=Y("stepper-title-font-size"),Sa=Y("stepper-description-font-size"),ia=Y("stepper-accent-color"),hI=ba(({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"},[ia.variable]:`colors.${e}.500`,_dark:{[ia.variable]:`colors.${e}.200`}},title:{fontSize:Qi.reference,fontWeight:"medium"},description:{fontSize:Sa.reference,color:"chakra-subtle-text"},number:{fontSize:Qi.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:Xi.reference,height:Xi.reference},indicator:{flexShrink:0,borderRadius:"full",width:Er.reference,height:Er.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ia.reference},"&[data-status=complete]":{bg:ia.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ia.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Er.reference} - 8px)`,top:`calc(${Er.reference} + 4px)`,insetStart:`calc(${Er.reference} / 2 - 1px)`}}})),mI=pI({baseStyle:hI,sizes:{xs:ba({stepper:{[Er.variable]:"sizes.4",[Xi.variable]:"sizes.3",[Qi.variable]:"fontSizes.xs",[Sa.variable]:"fontSizes.xs"}}),sm:ba({stepper:{[Er.variable]:"sizes.6",[Xi.variable]:"sizes.4",[Qi.variable]:"fontSizes.sm",[Sa.variable]:"fontSizes.xs"}}),md:ba({stepper:{[Er.variable]:"sizes.8",[Xi.variable]:"sizes.5",[Qi.variable]:"fontSizes.md",[Sa.variable]:"fontSizes.sm"}}),lg:ba({stepper:{[Er.variable]:"sizes.10",[Xi.variable]:"sizes.6",[Qi.variable]:"fontSizes.lg",[Sa.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function be(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return be(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return be(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const 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:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var vI=be("accordion").parts("root","container","button","panel").extend("icon"),gI=be("alert").parts("title","description","container").extend("icon","spinner"),yI=be("avatar").parts("label","badge","container").extend("excessLabel","group"),bI=be("breadcrumb").parts("link","item","container").extend("separator");be("button").parts();var SI=be("checkbox").parts("control","icon","container").extend("label");be("progress").parts("track","filledTrack").extend("label");var xI=be("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),wI=be("editable").parts("preview","input","textarea"),kI=be("form").parts("container","requiredIndicator","helperText"),CI=be("formError").parts("text","icon"),PI=be("input").parts("addon","field","element","group"),EI=be("list").parts("container","item","icon"),TI=be("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),_I=be("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),$I=be("numberinput").parts("root","field","stepperGroup","stepper");be("pininput").parts("field");var OI=be("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),RI=be("progress").parts("label","filledTrack","track"),MI=be("radio").parts("container","control","label"),II=be("select").parts("field","icon"),AI=be("slider").parts("container","track","thumb","filledTrack","mark"),DI=be("stat").parts("container","label","helpText","number","icon"),FI=be("switch").parts("container","track","thumb","label"),LI=be("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),NI=be("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),VI=be("tag").parts("container","label","closeButton"),zI=be("card").parts("container","header","body","footer");be("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Qo(e,t,n){return Math.min(Math.max(e,n),t)}class BI extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var xa=BI;function e0(e){if(typeof e!="string")throw new xa(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=YI.test(e)?HI(e):e;const n=UI.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(xl(a,2),16)),parseInt(xl(s[3]||"f",2),16)/255]}const r=qI.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=KI.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=GI.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Qo(0,100,a)!==a)throw new xa(e);if(Qo(0,100,l)!==l)throw new xa(e);return[...XI(s,a,l),Number.isNaN(u)?1:u]}throw new xa(e)}function jI(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const yb=e=>parseInt(e.replace(/_/g,""),36),WI="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=yb(t.substring(0,3)),r=yb(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function HI(e){const t=e.toLowerCase().trim(),n=WI[jI(t)];if(!n)throw new xa(e);return`#${n}`}const xl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),UI=new RegExp(`^#${xl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),qI=new RegExp(`^#${xl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),KI=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${xl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),GI=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,YI=/^[a-z]+$/i,bb=e=>Math.round(e*255),XI=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(bb);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(bb)};function QI(e,t,n,r){return`rgba(${Qo(0,255,e).toFixed()}, ${Qo(0,255,t).toFixed()}, ${Qo(0,255,n).toFixed()}, ${parseFloat(Qo(0,1,r).toFixed(3))})`}function ZI(e,t){const[n,r,o,i]=e0(e);return QI(n,r,o,i-t)}function JI(e){const[t,n,r,o]=e0(e);let i=s=>{const a=Qo(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function eA(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,At=(e,t,n)=>{const r=eA(e,`colors.${t}`,t);try{return JI(r),r}catch{return n??"#000000"}},nA=e=>{const[t,n,r]=e0(e);return(t*299+n*587+r*114)/1e3},rA=e=>t=>{const n=At(t,e);return nA(n)<128?"dark":"light"},oA=e=>t=>rA(e)(t)==="dark",Rs=(e,t)=>n=>{const r=At(n,e);return ZI(r,1-t)};function Sb(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + `;return`!${i?s:a}`.trim()}function dee(e={}){const{nonce:t}=e;return w.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:y3(e)}})}function rP(){const e=Ef(),t=Yr();return{...e,theme:t}}function b3(e,t,n){var r,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.value};return(o=(r=i(t))!=null?r:i(n))!=null?o:n}function S3(e,t,n){const r=Yr();return x3(e,t,n)(r)}function x3(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,u)=>{var c;const d=`${e}.${l}`;return b3(i,d,(c=s[u])!=null?c:l)});return Array.isArray(t)?a:a[0]}}var Z=(...e)=>e.filter(Boolean).join(" ");function w3(){return!1}function $t(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var k3=e=>{const{condition:t,message:n}=e;t&&w3()&&console.warn(n)};function Kt(e,...t){return C3(e)?e(...t):e}var C3=e=>typeof e=="function",ce=e=>e?"":void 0,$p=e=>e?!0:void 0;function Ee(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function P3(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var E3=e=>/!(important)?$/.test(e),ub=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,T3=(e,t)=>n=>{const r=String(t),o=E3(r),i=ub(r),s=e?`${e}.${i}`:i;let a=$t(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=ub(a),o?`${a} !important`:a};function Qg(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=T3(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var wu=(...e)=>t=>e.reduce((n,r)=>r(n),t);function xn(e,t){return n=>{const r={property:n,scale:e};return r.transform=Qg({scale:e,transform:t}),r}}var _3=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function $3(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:_3(t),transform:n?Qg({scale:n,compose:r}):r}}var oP=["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 O3(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...oP].join(" ")}function R3(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...oP].join(" ")}var M3={"--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(" ")},I3={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 A3(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 D3={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Im={"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"},F3=new Set(Object.values(Im)),Am=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),L3=e=>e.trim();function N3(e,t){if(e==null||Am.has(e))return e;if(!(Dm(e)||Am.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(L3).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Im?Im[l]:l;u.unshift(c);const d=u.map(f=>{if(F3.has(f))return f;const p=f.indexOf(" "),[m,h]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],S=Dm(h)?h:h&&h.split(" "),v=`colors.${m}`,y=v in t.__cssMap?t.__cssMap[v].varRef:m;return S?[y,...Array.isArray(S)?S:[S]].join(" "):y});return`${a}(${d.join(", ")})`}var Dm=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),V3=(e,t)=>N3(e,t??{});function z3(e){return/^var\(--.+\)$/.test(e)}var B3=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},tr=e=>t=>`${e}(${t})`,fe={filter(e){return e!=="auto"?e:M3},backdropFilter(e){return e!=="auto"?e:I3},ring(e){return A3(fe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?O3():e==="auto-gpu"?R3():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=B3(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(z3(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:V3,blur:tr("blur"),opacity:tr("opacity"),brightness:tr("brightness"),contrast:tr("contrast"),dropShadow:tr("drop-shadow"),grayscale:tr("grayscale"),hueRotate:e=>tr("hue-rotate")(fe.degree(e)),invert:tr("invert"),saturate:tr("saturate"),sepia:tr("sepia"),bgImage(e){return e==null||Dm(e)||Am.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:n,divide:r}=(t=D3[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},T={borderWidths:xn("borderWidths"),borderStyles:xn("borderStyles"),colors:xn("colors"),borders:xn("borders"),gradients:xn("gradients",fe.gradient),radii:xn("radii",fe.px),space:xn("space",wu(fe.vh,fe.px)),spaceT:xn("space",wu(fe.vh,fe.px)),degreeT(e){return{property:e,transform:fe.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Qg({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xn("sizes",wu(fe.vh,fe.px)),sizesT:xn("sizes",wu(fe.vh,fe.fraction)),shadows:xn("shadows"),logical:$3,blur:xn("blur",fe.blur)},uc={background:T.colors("background"),backgroundColor:T.colors("backgroundColor"),backgroundImage:T.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:fe.bgClip},bgSize:T.prop("backgroundSize"),bgPosition:T.prop("backgroundPosition"),bg:T.colors("background"),bgColor:T.colors("backgroundColor"),bgPos:T.prop("backgroundPosition"),bgRepeat:T.prop("backgroundRepeat"),bgAttachment:T.prop("backgroundAttachment"),bgGradient:T.gradients("backgroundImage"),bgClip:{transform:fe.bgClip}};Object.assign(uc,{bgImage:uc.backgroundImage,bgImg:uc.backgroundImage});var me={border:T.borders("border"),borderWidth:T.borderWidths("borderWidth"),borderStyle:T.borderStyles("borderStyle"),borderColor:T.colors("borderColor"),borderRadius:T.radii("borderRadius"),borderTop:T.borders("borderTop"),borderBlockStart:T.borders("borderBlockStart"),borderTopLeftRadius:T.radii("borderTopLeftRadius"),borderStartStartRadius:T.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:T.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:T.radii("borderTopRightRadius"),borderStartEndRadius:T.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:T.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:T.borders("borderRight"),borderInlineEnd:T.borders("borderInlineEnd"),borderBottom:T.borders("borderBottom"),borderBlockEnd:T.borders("borderBlockEnd"),borderBottomLeftRadius:T.radii("borderBottomLeftRadius"),borderBottomRightRadius:T.radii("borderBottomRightRadius"),borderLeft:T.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:T.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:T.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:T.borders(["borderLeft","borderRight"]),borderInline:T.borders("borderInline"),borderY:T.borders(["borderTop","borderBottom"]),borderBlock:T.borders("borderBlock"),borderTopWidth:T.borderWidths("borderTopWidth"),borderBlockStartWidth:T.borderWidths("borderBlockStartWidth"),borderTopColor:T.colors("borderTopColor"),borderBlockStartColor:T.colors("borderBlockStartColor"),borderTopStyle:T.borderStyles("borderTopStyle"),borderBlockStartStyle:T.borderStyles("borderBlockStartStyle"),borderBottomWidth:T.borderWidths("borderBottomWidth"),borderBlockEndWidth:T.borderWidths("borderBlockEndWidth"),borderBottomColor:T.colors("borderBottomColor"),borderBlockEndColor:T.colors("borderBlockEndColor"),borderBottomStyle:T.borderStyles("borderBottomStyle"),borderBlockEndStyle:T.borderStyles("borderBlockEndStyle"),borderLeftWidth:T.borderWidths("borderLeftWidth"),borderInlineStartWidth:T.borderWidths("borderInlineStartWidth"),borderLeftColor:T.colors("borderLeftColor"),borderInlineStartColor:T.colors("borderInlineStartColor"),borderLeftStyle:T.borderStyles("borderLeftStyle"),borderInlineStartStyle:T.borderStyles("borderInlineStartStyle"),borderRightWidth:T.borderWidths("borderRightWidth"),borderInlineEndWidth:T.borderWidths("borderInlineEndWidth"),borderRightColor:T.colors("borderRightColor"),borderInlineEndColor:T.colors("borderInlineEndColor"),borderRightStyle:T.borderStyles("borderRightStyle"),borderInlineEndStyle:T.borderStyles("borderInlineEndStyle"),borderTopRadius:T.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:T.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:T.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:T.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(me,{rounded:me.borderRadius,roundedTop:me.borderTopRadius,roundedTopLeft:me.borderTopLeftRadius,roundedTopRight:me.borderTopRightRadius,roundedTopStart:me.borderStartStartRadius,roundedTopEnd:me.borderStartEndRadius,roundedBottom:me.borderBottomRadius,roundedBottomLeft:me.borderBottomLeftRadius,roundedBottomRight:me.borderBottomRightRadius,roundedBottomStart:me.borderEndStartRadius,roundedBottomEnd:me.borderEndEndRadius,roundedLeft:me.borderLeftRadius,roundedRight:me.borderRightRadius,roundedStart:me.borderInlineStartRadius,roundedEnd:me.borderInlineEndRadius,borderStart:me.borderInlineStart,borderEnd:me.borderInlineEnd,borderTopStartRadius:me.borderStartStartRadius,borderTopEndRadius:me.borderStartEndRadius,borderBottomStartRadius:me.borderEndStartRadius,borderBottomEndRadius:me.borderEndEndRadius,borderStartRadius:me.borderInlineStartRadius,borderEndRadius:me.borderInlineEndRadius,borderStartWidth:me.borderInlineStartWidth,borderEndWidth:me.borderInlineEndWidth,borderStartColor:me.borderInlineStartColor,borderEndColor:me.borderInlineEndColor,borderStartStyle:me.borderInlineStartStyle,borderEndStyle:me.borderInlineEndStyle});var j3={color:T.colors("color"),textColor:T.colors("color"),fill:T.colors("fill"),stroke:T.colors("stroke")},Fm={boxShadow:T.shadows("boxShadow"),mixBlendMode:!0,blendMode:T.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:T.prop("backgroundBlendMode"),opacity:!0};Object.assign(Fm,{shadow:Fm.boxShadow});var H3={filter:{transform:fe.filter},blur:T.blur("--chakra-blur"),brightness:T.propT("--chakra-brightness",fe.brightness),contrast:T.propT("--chakra-contrast",fe.contrast),hueRotate:T.propT("--chakra-hue-rotate",fe.hueRotate),invert:T.propT("--chakra-invert",fe.invert),saturate:T.propT("--chakra-saturate",fe.saturate),dropShadow:T.propT("--chakra-drop-shadow",fe.dropShadow),backdropFilter:{transform:fe.backdropFilter},backdropBlur:T.blur("--chakra-backdrop-blur"),backdropBrightness:T.propT("--chakra-backdrop-brightness",fe.brightness),backdropContrast:T.propT("--chakra-backdrop-contrast",fe.contrast),backdropHueRotate:T.propT("--chakra-backdrop-hue-rotate",fe.hueRotate),backdropInvert:T.propT("--chakra-backdrop-invert",fe.invert),backdropSaturate:T.propT("--chakra-backdrop-saturate",fe.saturate)},dd={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:fe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:T.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:T.space("gap"),rowGap:T.space("rowGap"),columnGap:T.space("columnGap")};Object.assign(dd,{flexDir:dd.flexDirection});var iP={gridGap:T.space("gridGap"),gridColumnGap:T.space("gridColumnGap"),gridRowGap:T.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},W3={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:fe.outline},outlineOffset:!0,outlineColor:T.colors("outlineColor")},kn={width:T.sizesT("width"),inlineSize:T.sizesT("inlineSize"),height:T.sizes("height"),blockSize:T.sizes("blockSize"),boxSize:T.sizes(["width","height"]),minWidth:T.sizes("minWidth"),minInlineSize:T.sizes("minInlineSize"),minHeight:T.sizes("minHeight"),minBlockSize:T.sizes("minBlockSize"),maxWidth:T.sizes("maxWidth"),maxInlineSize:T.sizes("maxInlineSize"),maxHeight:T.sizes("maxHeight"),maxBlockSize:T.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 n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:T.propT("float",fe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(kn,{w:kn.width,h:kn.height,minW:kn.minWidth,maxW:kn.maxWidth,minH:kn.minHeight,maxH:kn.maxHeight,overscroll:kn.overscrollBehavior,overscrollX:kn.overscrollBehaviorX,overscrollY:kn.overscrollBehaviorY});var U3={listStyleType:!0,listStylePosition:!0,listStylePos:T.prop("listStylePosition"),listStyleImage:!0,listStyleImg:T.prop("listStyleImage")};function q3(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},G3=K3(q3),Y3={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},X3={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Op=(e,t,n)=>{const r={},o=G3(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},Q3={srOnly:{transform(e){return e===!0?Y3:e==="focusable"?X3:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Op(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Op(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Op(t,e,n)}},Ba={position:!0,pos:T.prop("position"),zIndex:T.prop("zIndex","zIndices"),inset:T.spaceT("inset"),insetX:T.spaceT(["left","right"]),insetInline:T.spaceT("insetInline"),insetY:T.spaceT(["top","bottom"]),insetBlock:T.spaceT("insetBlock"),top:T.spaceT("top"),insetBlockStart:T.spaceT("insetBlockStart"),bottom:T.spaceT("bottom"),insetBlockEnd:T.spaceT("insetBlockEnd"),left:T.spaceT("left"),insetInlineStart:T.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:T.spaceT("right"),insetInlineEnd:T.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ba,{insetStart:Ba.insetInlineStart,insetEnd:Ba.insetInlineEnd});var Z3={ring:{transform:fe.ring},ringColor:T.colors("--chakra-ring-color"),ringOffset:T.prop("--chakra-ring-offset-width"),ringOffsetColor:T.colors("--chakra-ring-offset-color"),ringInset:T.prop("--chakra-ring-inset")},Me={margin:T.spaceT("margin"),marginTop:T.spaceT("marginTop"),marginBlockStart:T.spaceT("marginBlockStart"),marginRight:T.spaceT("marginRight"),marginInlineEnd:T.spaceT("marginInlineEnd"),marginBottom:T.spaceT("marginBottom"),marginBlockEnd:T.spaceT("marginBlockEnd"),marginLeft:T.spaceT("marginLeft"),marginInlineStart:T.spaceT("marginInlineStart"),marginX:T.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:T.spaceT("marginInline"),marginY:T.spaceT(["marginTop","marginBottom"]),marginBlock:T.spaceT("marginBlock"),padding:T.space("padding"),paddingTop:T.space("paddingTop"),paddingBlockStart:T.space("paddingBlockStart"),paddingRight:T.space("paddingRight"),paddingBottom:T.space("paddingBottom"),paddingBlockEnd:T.space("paddingBlockEnd"),paddingLeft:T.space("paddingLeft"),paddingInlineStart:T.space("paddingInlineStart"),paddingInlineEnd:T.space("paddingInlineEnd"),paddingX:T.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:T.space("paddingInline"),paddingY:T.space(["paddingTop","paddingBottom"]),paddingBlock:T.space("paddingBlock")};Object.assign(Me,{m:Me.margin,mt:Me.marginTop,mr:Me.marginRight,me:Me.marginInlineEnd,marginEnd:Me.marginInlineEnd,mb:Me.marginBottom,ml:Me.marginLeft,ms:Me.marginInlineStart,marginStart:Me.marginInlineStart,mx:Me.marginX,my:Me.marginY,p:Me.padding,pt:Me.paddingTop,py:Me.paddingY,px:Me.paddingX,pb:Me.paddingBottom,pl:Me.paddingLeft,ps:Me.paddingInlineStart,paddingStart:Me.paddingInlineStart,pr:Me.paddingRight,pe:Me.paddingInlineEnd,paddingEnd:Me.paddingInlineEnd});var J3={textDecorationColor:T.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:T.shadows("textShadow")},eM={clipPath:!0,transform:T.propT("transform",fe.transform),transformOrigin:!0,translateX:T.spaceT("--chakra-translate-x"),translateY:T.spaceT("--chakra-translate-y"),skewX:T.degreeT("--chakra-skew-x"),skewY:T.degreeT("--chakra-skew-y"),scaleX:T.prop("--chakra-scale-x"),scaleY:T.prop("--chakra-scale-y"),scale:T.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:T.degreeT("--chakra-rotate")},tM={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:T.prop("transitionDuration","transition.duration"),transitionProperty:T.prop("transitionProperty","transition.property"),transitionTimingFunction:T.prop("transitionTimingFunction","transition.easing")},nM={fontFamily:T.prop("fontFamily","fonts"),fontSize:T.prop("fontSize","fontSizes",fe.px),fontWeight:T.prop("fontWeight","fontWeights"),lineHeight:T.prop("lineHeight","lineHeights"),letterSpacing:T.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"}},rM={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:T.spaceT("scrollMargin"),scrollMarginTop:T.spaceT("scrollMarginTop"),scrollMarginBottom:T.spaceT("scrollMarginBottom"),scrollMarginLeft:T.spaceT("scrollMarginLeft"),scrollMarginRight:T.spaceT("scrollMarginRight"),scrollMarginX:T.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:T.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:T.spaceT("scrollPadding"),scrollPaddingTop:T.spaceT("scrollPaddingTop"),scrollPaddingBottom:T.spaceT("scrollPaddingBottom"),scrollPaddingLeft:T.spaceT("scrollPaddingLeft"),scrollPaddingRight:T.spaceT("scrollPaddingRight"),scrollPaddingX:T.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:T.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function sP(e){return $t(e)&&e.reference?e.reference:String(e)}var Tf=(e,...t)=>t.map(sP).join(` ${e} `).replace(/calc/g,""),cb=(...e)=>`calc(${Tf("+",...e)})`,db=(...e)=>`calc(${Tf("-",...e)})`,Lm=(...e)=>`calc(${Tf("*",...e)})`,fb=(...e)=>`calc(${Tf("/",...e)})`,pb=e=>{const t=sP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Lm(t,-1)},Ho=Object.assign(e=>({add:(...t)=>Ho(cb(e,...t)),subtract:(...t)=>Ho(db(e,...t)),multiply:(...t)=>Ho(Lm(e,...t)),divide:(...t)=>Ho(fb(e,...t)),negate:()=>Ho(pb(e)),toString:()=>e.toString()}),{add:cb,subtract:db,multiply:Lm,divide:fb,negate:pb});function oM(e,t="-"){return e.replace(/\s+/g,t)}function iM(e){const t=oM(e.toString());return aM(sM(t))}function sM(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function aM(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function lM(e,t=""){return[t,e].filter(Boolean).join("-")}function uM(e,t){return`var(${e}${t?`, ${t}`:""})`}function cM(e,t=""){return iM(`--${lM(e,t)}`)}function Y(e,t,n){const r=cM(e,n);return{variable:r,reference:uM(r,t)}}function dM(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=Y(`${e}-${o}`,i);continue}n[r]=Y(`${e}-${r}`)}return n}function fM(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function pM(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Nm(e){if(e==null)return e;const{unitless:t}=pM(e);return t||typeof e=="number"?`${e}px`:e}var aP=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Zg=e=>Object.fromEntries(Object.entries(e).sort(aP));function hb(e){const t=Zg(e);return Object.assign(Object.values(t),t)}function hM(e){const t=Object.keys(Zg(e));return new Set(t)}function mb(e){var t;if(!e)return e;e=(t=Nm(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function ya(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Nm(e)})`),t&&n.push("and",`(max-width: ${Nm(t)})`),n.join(" ")}function mM(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=hb(e),r=Object.entries(e).sort(aP).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?mb(d):void 0,{_minW:mb(a),breakpoint:s,minW:a,maxW:d,maxWQuery:ya(null,d),minWQuery:ya(a),minMaxQuery:ya(a,d)}}),o=hM(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:Zg(e),asArray:hb(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>ya(s)).slice(1)],toArrayValue(s){if(!$t(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;fM(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var dt={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}`},Zr=e=>lP(t=>e(t,"&"),"[role=group]","[data-group]",".group"),wr=e=>lP(t=>e(t,"~ &"),"[data-peer]",".peer"),lP=(e,...t)=>t.map(e).join(", "),_f={_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:Zr(dt.hover),_peerHover:wr(dt.hover),_groupFocus:Zr(dt.focus),_peerFocus:wr(dt.focus),_groupFocusVisible:Zr(dt.focusVisible),_peerFocusVisible:wr(dt.focusVisible),_groupActive:Zr(dt.active),_peerActive:wr(dt.active),_groupDisabled:Zr(dt.disabled),_peerDisabled:wr(dt.disabled),_groupInvalid:Zr(dt.invalid),_peerInvalid:wr(dt.invalid),_groupChecked:Zr(dt.checked),_peerChecked:wr(dt.checked),_groupFocusWithin:Zr(dt.focusWithin),_peerFocusWithin:wr(dt.focusWithin),_peerPlaceholderShown:wr(dt.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]"},uP=Object.keys(_f);function vb(e,t){return Y(String(e).replace(/\./g,"-"),void 0,t)}function vM(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=vb(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,h=`${p}.-${m.join(".")}`,S=Ho.negate(a),v=Ho.negate(u);r[h]={value:S,var:l,varRef:v}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=f=>{const m=[String(o).split(".")[0],f].join(".");if(!e[m])return f;const{reference:S}=vb(m,t==null?void 0:t.cssVarPrefix);return S},d=$t(a)?a:{default:a};n=_n(n,Object.entries(d).reduce((f,[p,m])=>{var h,S;if(!m)return f;const v=c(`${m}`);if(p==="default")return f[l]=v,f;const y=(S=(h=_f)==null?void 0:h[p])!=null?S:p;return f[y]={[l]:v},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function gM(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function yM(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bM(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function gb(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(bM(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(r!=null&&r(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var SM=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function xM(e){return yM(e,SM)}function wM(e){return e.semanticTokens}function kM(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var CM=e=>uP.includes(e)||e==="default";function PM({tokens:e,semanticTokens:t}){const n={};return gb(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),gb(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(CM)}),n}function EM(e){var t;const n=kM(e),r=xM(n),o=wM(n),i=PM({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=vM(i,{cssVarPrefix:s});return Object.assign(n,{__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:a,__breakpoints:mM(n.breakpoints)}),n}var Jg=_n({},uc,me,j3,dd,kn,H3,Z3,W3,iP,Q3,Ba,Fm,Me,rM,nM,J3,eM,U3,tM);Object.assign({},Me,kn,dd,iP,Ba);var TM=[...Object.keys(Jg),...uP],_M={...Jg,..._f},$M=e=>e in _M,OM=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Kt(e[s],t);if(a==null)continue;if(a=$t(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!MM(t),AM=(e,t)=>{var n,r;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},[s,a]=RM(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function DM(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Kt(i,r),d=OM(c)(r);let f={};for(let p in d){const m=d[p];let h=Kt(m,r);p in n&&(p=n[p]),IM(p,h)&&(h=AM(r,h));let S=t[p];if(S===!0&&(S={property:p}),$t(h)){f[p]=(a=f[p])!=null?a:{},f[p]=_n({},f[p],o(h,!0));continue}let v=(u=(l=S==null?void 0:S.transform)==null?void 0:l.call(S,h,r,c))!=null?u:h;v=S!=null&&S.processResult?o(v,!0):v;const y=Kt(S==null?void 0:S.property,r);if(!s&&(S!=null&&S.static)){const b=Kt(S.static,r);f=_n({},f,b)}if(y&&Array.isArray(y)){for(const b of y)f[b]=v;continue}if(y){y==="&"&&$t(v)?f=_n({},f,v):f[y]=v;continue}if($t(v)){f=_n({},f,v);continue}f[p]=v}return f};return o}var cP=e=>t=>DM({theme:t,pseudos:_f,configs:Jg})(e);function Oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function FM(e,t){if(Array.isArray(e))return e;if($t(e))return t(e);if(e!=null)return[e]}function LM(e,t){for(let n=t+1;n{_n(u,{[b]:f?y[b]:{[v]:y[b]}})});continue}if(!p){f?_n(u,y):u[v]=y;continue}u[v]=y}}return u}}function VM(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=NM(i);return _n({},Kt((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function zM(e,t,n){var r,o,i;return(i=(o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)!=null?i:n}function Ye(e){return gM(e,["styleConfig","size","variant","colorScheme"])}var BM=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function jM(e){return $t(e)?BM.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var HM={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},WM={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},UM={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},qM={property:HM,easing:WM,duration:UM},KM=qM,GM={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},YM=GM,XM={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},QM=XM,ZM={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},JM=ZM,eI={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"}},tI=eI,nI={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},rI=nI,oI={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"},iI=oI,sI={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},aI=sI,lI={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"}},dP=lI,fP={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"},uI={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"},cI={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},dI={...fP,...uI,container:cI},pP=dI,fI={breakpoints:JM,zIndices:YM,radii:rI,blur:aI,colors:tI,...dP,sizes:pP,shadows:iI,space:fP,borders:QM,transition:KM},{defineMultiStyleConfig:pI,definePartsStyle:ba}=Oe(["stepper","step","title","description","indicator","separator","icon","number"]),Er=Y("stepper-indicator-size"),Xi=Y("stepper-icon-size"),Qi=Y("stepper-title-font-size"),Sa=Y("stepper-description-font-size"),ia=Y("stepper-accent-color"),hI=ba(({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"},[ia.variable]:`colors.${e}.500`,_dark:{[ia.variable]:`colors.${e}.200`}},title:{fontSize:Qi.reference,fontWeight:"medium"},description:{fontSize:Sa.reference,color:"chakra-subtle-text"},number:{fontSize:Qi.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:Xi.reference,height:Xi.reference},indicator:{flexShrink:0,borderRadius:"full",width:Er.reference,height:Er.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ia.reference},"&[data-status=complete]":{bg:ia.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ia.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Er.reference} - 8px)`,top:`calc(${Er.reference} + 4px)`,insetStart:`calc(${Er.reference} / 2 - 1px)`}}})),mI=pI({baseStyle:hI,sizes:{xs:ba({stepper:{[Er.variable]:"sizes.4",[Xi.variable]:"sizes.3",[Qi.variable]:"fontSizes.xs",[Sa.variable]:"fontSizes.xs"}}),sm:ba({stepper:{[Er.variable]:"sizes.6",[Xi.variable]:"sizes.4",[Qi.variable]:"fontSizes.sm",[Sa.variable]:"fontSizes.xs"}}),md:ba({stepper:{[Er.variable]:"sizes.8",[Xi.variable]:"sizes.5",[Qi.variable]:"fontSizes.md",[Sa.variable]:"fontSizes.sm"}}),lg:ba({stepper:{[Er.variable]:"sizes.10",[Xi.variable]:"sizes.6",[Qi.variable]:"fontSizes.lg",[Sa.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function be(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return be(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return be(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const 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:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var vI=be("accordion").parts("root","container","button","panel").extend("icon"),gI=be("alert").parts("title","description","container").extend("icon","spinner"),yI=be("avatar").parts("label","badge","container").extend("excessLabel","group"),bI=be("breadcrumb").parts("link","item","container").extend("separator");be("button").parts();var SI=be("checkbox").parts("control","icon","container").extend("label");be("progress").parts("track","filledTrack").extend("label");var xI=be("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),wI=be("editable").parts("preview","input","textarea"),kI=be("form").parts("container","requiredIndicator","helperText"),CI=be("formError").parts("text","icon"),PI=be("input").parts("addon","field","element","group"),EI=be("list").parts("container","item","icon"),TI=be("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),_I=be("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),$I=be("numberinput").parts("root","field","stepperGroup","stepper");be("pininput").parts("field");var OI=be("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),RI=be("progress").parts("label","filledTrack","track"),MI=be("radio").parts("container","control","label"),II=be("select").parts("field","icon"),AI=be("slider").parts("container","track","thumb","filledTrack","mark"),DI=be("stat").parts("container","label","helpText","number","icon"),FI=be("switch").parts("container","track","thumb","label"),LI=be("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),NI=be("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),VI=be("tag").parts("container","label","closeButton"),zI=be("card").parts("container","header","body","footer");be("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Qo(e,t,n){return Math.min(Math.max(e,n),t)}class BI extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var xa=BI;function e0(e){if(typeof e!="string")throw new xa(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=YI.test(e)?WI(e):e;const n=UI.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(xl(a,2),16)),parseInt(xl(s[3]||"f",2),16)/255]}const r=qI.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=KI.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=GI.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Qo(0,100,a)!==a)throw new xa(e);if(Qo(0,100,l)!==l)throw new xa(e);return[...XI(s,a,l),Number.isNaN(u)?1:u]}throw new xa(e)}function jI(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const yb=e=>parseInt(e.replace(/_/g,""),36),HI="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=yb(t.substring(0,3)),r=yb(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function WI(e){const t=e.toLowerCase().trim(),n=HI[jI(t)];if(!n)throw new xa(e);return`#${n}`}const xl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),UI=new RegExp(`^#${xl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),qI=new RegExp(`^#${xl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),KI=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${xl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),GI=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,YI=/^[a-z]+$/i,bb=e=>Math.round(e*255),XI=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(bb);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(bb)};function QI(e,t,n,r){return`rgba(${Qo(0,255,e).toFixed()}, ${Qo(0,255,t).toFixed()}, ${Qo(0,255,n).toFixed()}, ${parseFloat(Qo(0,1,r).toFixed(3))})`}function ZI(e,t){const[n,r,o,i]=e0(e);return QI(n,r,o,i-t)}function JI(e){const[t,n,r,o]=e0(e);let i=s=>{const a=Qo(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function eA(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,At=(e,t,n)=>{const r=eA(e,`colors.${t}`,t);try{return JI(r),r}catch{return n??"#000000"}},nA=e=>{const[t,n,r]=e0(e);return(t*299+n*587+r*114)/1e3},rA=e=>t=>{const n=At(t,e);return nA(n)<128?"dark":"light"},oA=e=>t=>rA(e)(t)==="dark",Rs=(e,t)=>n=>{const r=At(n,e);return ZI(r,1-t)};function Sb(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -334,12 +334,12 @@ Error generating stack: `+i.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var iA=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function sA(e){const t=iA();return!e||tA(e)?t:e.string&&e.colors?lA(e.string,e.colors):e.string&&!e.colors?aA(e.string):e.colors&&!e.string?uA(e.colors):t}function aA(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function lA(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function t0(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function hP(e){return $t(e)&&e.reference?e.reference:String(e)}var $f=(e,...t)=>t.map(hP).join(` ${e} `).replace(/calc/g,""),xb=(...e)=>`calc(${$f("+",...e)})`,wb=(...e)=>`calc(${$f("-",...e)})`,Vm=(...e)=>`calc(${$f("*",...e)})`,kb=(...e)=>`calc(${$f("/",...e)})`,Cb=e=>{const t=hP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Vm(t,-1)},Tr=Object.assign(e=>({add:(...t)=>Tr(xb(e,...t)),subtract:(...t)=>Tr(wb(e,...t)),multiply:(...t)=>Tr(Vm(e,...t)),divide:(...t)=>Tr(kb(e,...t)),negate:()=>Tr(Cb(e)),toString:()=>e.toString()}),{add:xb,subtract:wb,multiply:Vm,divide:kb,negate:Cb});function cA(e){return!Number.isInteger(parseFloat(e.toString()))}function dA(e,t="-"){return e.replace(/\s+/g,t)}function mP(e){const t=dA(e.toString());return t.includes("\\.")?e:cA(e)?t.replace(".","\\."):e}function fA(e,t=""){return[t,mP(e)].filter(Boolean).join("-")}function pA(e,t){return`var(${mP(e)}${t?`, ${t}`:""})`}function hA(e,t=""){return`--${fA(e,t)}`}function ot(e,t){const n=hA(e,void 0);return{variable:n,reference:pA(n,mA(void 0))}}function mA(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:vA,definePartsStyle:cc}=Oe(FI.keys),ja=ot("switch-track-width"),ii=ot("switch-track-height"),Rp=ot("switch-track-diff"),gA=Tr.subtract(ja,ii),zm=ot("switch-thumb-x"),sa=ot("switch-bg"),yA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ja.reference],height:[ii.reference],transitionProperty:"common",transitionDuration:"fast",[sa.variable]:"colors.gray.300",_dark:{[sa.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[sa.variable]:`colors.${t}.500`,_dark:{[sa.variable]:`colors.${t}.200`}},bg:sa.reference}},bA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ii.reference],height:[ii.reference],_checked:{transform:`translateX(${zm.reference})`}},SA=cc(e=>({container:{[Rp.variable]:gA,[zm.variable]:Rp.reference,_rtl:{[zm.variable]:Tr(Rp).negate().toString()}},track:yA(e),thumb:bA})),xA={sm:cc({container:{[ja.variable]:"1.375rem",[ii.variable]:"sizes.3"}}),md:cc({container:{[ja.variable]:"1.875rem",[ii.variable]:"sizes.4"}}),lg:cc({container:{[ja.variable]:"2.875rem",[ii.variable]:"sizes.6"}})},wA=vA({baseStyle:SA,sizes:xA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kA,definePartsStyle:hs}=Oe(LI.keys),CA=hs({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),fd={"&[data-is-numeric=true]":{textAlign:"end"}},PA=hs(e=>{const{colorScheme:t}=e;return{th:{color:Q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},td:{borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},caption:{color:Q("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),EA=hs(e=>{const{colorScheme:t}=e;return{th:{color:Q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},td:{borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},caption:{color:Q("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e)},td:{background:Q(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),TA={simple:PA,striped:EA,unstyled:{}},_A={sm:hs({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:hs({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:hs({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},$A=kA({baseStyle:CA,variants:TA,sizes:_A,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ut=Y("tabs-color"),Hn=Y("tabs-bg"),ku=Y("tabs-border-color"),{defineMultiStyleConfig:OA,definePartsStyle:mr}=Oe(NI.keys),RA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},MA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},IA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},AA={p:4},DA=mr(e=>({root:RA(e),tab:MA(e),tablist:IA(e),tabpanel:AA})),FA={sm:mr({tab:{py:1,px:4,fontSize:"sm"}}),md:mr({tab:{fontSize:"md",py:2,px:4}}),lg:mr({tab:{fontSize:"lg",py:3,px:4}})},LA=mr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Ut.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Hn.variable]:"colors.gray.200",_dark:{[Hn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ut.reference,bg:Hn.reference}}}),NA=mr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ku.variable]:"transparent",_selected:{[Ut.variable]:`colors.${t}.600`,[ku.variable]:"colors.white",_dark:{[Ut.variable]:`colors.${t}.300`,[ku.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ku.reference},color:Ut.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),VA=mr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Hn.variable]:"colors.gray.50",_dark:{[Hn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Hn.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[Hn.variable]:"colors.gray.800",[Ut.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ut.reference,bg:Hn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zA=mr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:At(n,`${t}.700`),bg:At(n,`${t}.100`)}}}}),BA=mr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ut.variable]:"colors.gray.600",_dark:{[Ut.variable]:"inherit"},_selected:{[Ut.variable]:"colors.white",[Hn.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:"colors.gray.800",[Hn.variable]:`colors.${t}.300`}},color:Ut.reference,bg:Hn.reference}}}),jA=mr({}),WA={line:LA,enclosed:NA,"enclosed-colored":VA,"soft-rounded":zA,"solid-rounded":BA,unstyled:jA},HA=OA({baseStyle:DA,sizes:FA,variants:WA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Ke=d3("badge",["bg","color","shadow"]),UA={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ke.bg.reference,color:Ke.color.reference,boxShadow:Ke.shadow.reference},qA=e=>{const{colorScheme:t,theme:n}=e,r=Rs(`${t}.500`,.6)(n);return{[Ke.bg.variable]:`colors.${t}.500`,[Ke.color.variable]:"colors.white",_dark:{[Ke.bg.variable]:r,[Ke.color.variable]:"colors.whiteAlpha.800"}}},KA=e=>{const{colorScheme:t,theme:n}=e,r=Rs(`${t}.200`,.16)(n);return{[Ke.bg.variable]:`colors.${t}.100`,[Ke.color.variable]:`colors.${t}.800`,_dark:{[Ke.bg.variable]:r,[Ke.color.variable]:`colors.${t}.200`}}},GA=e=>{const{colorScheme:t,theme:n}=e,r=Rs(`${t}.200`,.8)(n);return{[Ke.color.variable]:`colors.${t}.500`,_dark:{[Ke.color.variable]:r},[Ke.shadow.variable]:`inset 0 0 0px 1px ${Ke.color.reference}`}},YA={solid:qA,subtle:KA,outline:GA},Wa={baseStyle:UA,variants:YA,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:XA,definePartsStyle:si}=Oe(VI.keys),Pb=Y("tag-bg"),Eb=Y("tag-color"),Mp=Y("tag-shadow"),dc=Y("tag-min-height"),fc=Y("tag-min-width"),pc=Y("tag-font-size"),hc=Y("tag-padding-inline"),QA={fontWeight:"medium",lineHeight:1.2,outline:0,[Eb.variable]:Ke.color.reference,[Pb.variable]:Ke.bg.reference,[Mp.variable]:Ke.shadow.reference,color:Eb.reference,bg:Pb.reference,boxShadow:Mp.reference,borderRadius:"md",minH:dc.reference,minW:fc.reference,fontSize:pc.reference,px:hc.reference,_focusVisible:{[Mp.variable]:"shadows.outline"}},ZA={lineHeight:1.2,overflow:"visible"},JA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},eD=si({container:QA,label:ZA,closeButton:JA}),tD={sm:si({container:{[dc.variable]:"sizes.5",[fc.variable]:"sizes.5",[pc.variable]:"fontSizes.xs",[hc.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:si({container:{[dc.variable]:"sizes.6",[fc.variable]:"sizes.6",[pc.variable]:"fontSizes.sm",[hc.variable]:"space.2"}}),lg:si({container:{[dc.variable]:"sizes.8",[fc.variable]:"sizes.8",[pc.variable]:"fontSizes.md",[hc.variable]:"space.3"}})},nD={subtle:si(e=>{var t;return{container:(t=Wa.variants)==null?void 0:t.subtle(e)}}),solid:si(e=>{var t;return{container:(t=Wa.variants)==null?void 0:t.solid(e)}}),outline:si(e=>{var t;return{container:(t=Wa.variants)==null?void 0:t.outline(e)}})},rD=XA({variants:nD,baseStyle:eD,sizes:tD,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Or,defineMultiStyleConfig:oD}=Oe(PI.keys),Zi=Y("input-height"),Ji=Y("input-font-size"),es=Y("input-padding"),ts=Y("input-border-radius"),iD=Or({addon:{height:Zi.reference,fontSize:Ji.reference,px:es.reference,borderRadius:ts.reference},field:{width:"100%",height:Zi.reference,fontSize:Ji.reference,px:es.reference,borderRadius:ts.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Jr={lg:{[Ji.variable]:"fontSizes.lg",[es.variable]:"space.4",[ts.variable]:"radii.md",[Zi.variable]:"sizes.12"},md:{[Ji.variable]:"fontSizes.md",[es.variable]:"space.4",[ts.variable]:"radii.md",[Zi.variable]:"sizes.10"},sm:{[Ji.variable]:"fontSizes.sm",[es.variable]:"space.3",[ts.variable]:"radii.sm",[Zi.variable]:"sizes.8"},xs:{[Ji.variable]:"fontSizes.xs",[es.variable]:"space.2",[ts.variable]:"radii.sm",[Zi.variable]:"sizes.6"}},sD={lg:Or({field:Jr.lg,group:Jr.lg}),md:Or({field:Jr.md,group:Jr.md}),sm:Or({field:Jr.sm,group:Jr.sm}),xs:Or({field:Jr.xs,group:Jr.xs})};function n0(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Q("blue.500","blue.300")(e),errorBorderColor:n||Q("red.500","red.300")(e)}}var aD=Or(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=n0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:At(t,r),boxShadow:`0 0 0 1px ${At(t,r)}`},_focusVisible:{zIndex:1,borderColor:At(t,n),boxShadow:`0 0 0 1px ${At(t,n)}`}},addon:{border:"1px solid",borderColor:Q("inherit","whiteAlpha.50")(e),bg:Q("gray.100","whiteAlpha.300")(e)}}}),lD=Or(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=n0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Q("gray.100","whiteAlpha.50")(e),_hover:{bg:Q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:At(t,r)},_focusVisible:{bg:"transparent",borderColor:At(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Q("gray.100","whiteAlpha.50")(e)}}}),uD=Or(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=n0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:At(t,r),boxShadow:`0px 1px 0px 0px ${At(t,r)}`},_focusVisible:{borderColor:At(t,n),boxShadow:`0px 1px 0px 0px ${At(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),cD=Or({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),dD={outline:aD,filled:lD,flushed:uD,unstyled:cD},ye=oD({baseStyle:iD,sizes:sD,variants:dD,defaultProps:{size:"md",variant:"outline"}}),Tb,fD={...(Tb=ye.baseStyle)==null?void 0:Tb.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},_b,$b,pD={outline:e=>{var t,n;return(n=(t=ye.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=ye.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=ye.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:($b=(_b=ye.variants)==null?void 0:_b.unstyled.field)!=null?$b:{}},Ob,Rb,Mb,Ib,Ab,Db,Fb,Lb,hD={xs:(Rb=(Ob=ye.sizes)==null?void 0:Ob.xs.field)!=null?Rb:{},sm:(Ib=(Mb=ye.sizes)==null?void 0:Mb.sm.field)!=null?Ib:{},md:(Db=(Ab=ye.sizes)==null?void 0:Ab.md.field)!=null?Db:{},lg:(Lb=(Fb=ye.sizes)==null?void 0:Fb.lg.field)!=null?Lb:{}},mD={baseStyle:fD,sizes:hD,variants:pD,defaultProps:{size:"md",variant:"outline"}},Cu=ot("tooltip-bg"),Ip=ot("tooltip-fg"),vD=ot("popper-arrow-bg"),gD={bg:Cu.reference,color:Ip.reference,[Cu.variable]:"colors.gray.700",[Ip.variable]:"colors.whiteAlpha.900",_dark:{[Cu.variable]:"colors.gray.300",[Ip.variable]:"colors.gray.900"},[vD.variable]:Cu.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},yD={baseStyle:gD},{defineMultiStyleConfig:bD,definePartsStyle:wa}=Oe(RI.keys),SD=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=Q(Sb(),Sb("1rem","rgba(0,0,0,0.1)"))(e),s=Q(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var iA=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function sA(e){const t=iA();return!e||tA(e)?t:e.string&&e.colors?lA(e.string,e.colors):e.string&&!e.colors?aA(e.string):e.colors&&!e.string?uA(e.colors):t}function aA(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function lA(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function t0(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function hP(e){return $t(e)&&e.reference?e.reference:String(e)}var $f=(e,...t)=>t.map(hP).join(` ${e} `).replace(/calc/g,""),xb=(...e)=>`calc(${$f("+",...e)})`,wb=(...e)=>`calc(${$f("-",...e)})`,Vm=(...e)=>`calc(${$f("*",...e)})`,kb=(...e)=>`calc(${$f("/",...e)})`,Cb=e=>{const t=hP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Vm(t,-1)},Tr=Object.assign(e=>({add:(...t)=>Tr(xb(e,...t)),subtract:(...t)=>Tr(wb(e,...t)),multiply:(...t)=>Tr(Vm(e,...t)),divide:(...t)=>Tr(kb(e,...t)),negate:()=>Tr(Cb(e)),toString:()=>e.toString()}),{add:xb,subtract:wb,multiply:Vm,divide:kb,negate:Cb});function cA(e){return!Number.isInteger(parseFloat(e.toString()))}function dA(e,t="-"){return e.replace(/\s+/g,t)}function mP(e){const t=dA(e.toString());return t.includes("\\.")?e:cA(e)?t.replace(".","\\."):e}function fA(e,t=""){return[t,mP(e)].filter(Boolean).join("-")}function pA(e,t){return`var(${mP(e)}${t?`, ${t}`:""})`}function hA(e,t=""){return`--${fA(e,t)}`}function it(e,t){const n=hA(e,void 0);return{variable:n,reference:pA(n,mA(void 0))}}function mA(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:vA,definePartsStyle:cc}=Oe(FI.keys),ja=it("switch-track-width"),ii=it("switch-track-height"),Rp=it("switch-track-diff"),gA=Tr.subtract(ja,ii),zm=it("switch-thumb-x"),sa=it("switch-bg"),yA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ja.reference],height:[ii.reference],transitionProperty:"common",transitionDuration:"fast",[sa.variable]:"colors.gray.300",_dark:{[sa.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[sa.variable]:`colors.${t}.500`,_dark:{[sa.variable]:`colors.${t}.200`}},bg:sa.reference}},bA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ii.reference],height:[ii.reference],_checked:{transform:`translateX(${zm.reference})`}},SA=cc(e=>({container:{[Rp.variable]:gA,[zm.variable]:Rp.reference,_rtl:{[zm.variable]:Tr(Rp).negate().toString()}},track:yA(e),thumb:bA})),xA={sm:cc({container:{[ja.variable]:"1.375rem",[ii.variable]:"sizes.3"}}),md:cc({container:{[ja.variable]:"1.875rem",[ii.variable]:"sizes.4"}}),lg:cc({container:{[ja.variable]:"2.875rem",[ii.variable]:"sizes.6"}})},wA=vA({baseStyle:SA,sizes:xA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kA,definePartsStyle:hs}=Oe(LI.keys),CA=hs({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),fd={"&[data-is-numeric=true]":{textAlign:"end"}},PA=hs(e=>{const{colorScheme:t}=e;return{th:{color:Q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},td:{borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},caption:{color:Q("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),EA=hs(e=>{const{colorScheme:t}=e;return{th:{color:Q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},td:{borderBottom:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e),...fd},caption:{color:Q("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Q(`${t}.100`,`${t}.700`)(e)},td:{background:Q(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),TA={simple:PA,striped:EA,unstyled:{}},_A={sm:hs({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:hs({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:hs({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},$A=kA({baseStyle:CA,variants:TA,sizes:_A,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ut=Y("tabs-color"),Wn=Y("tabs-bg"),ku=Y("tabs-border-color"),{defineMultiStyleConfig:OA,definePartsStyle:mr}=Oe(NI.keys),RA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},MA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},IA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},AA={p:4},DA=mr(e=>({root:RA(e),tab:MA(e),tablist:IA(e),tabpanel:AA})),FA={sm:mr({tab:{py:1,px:4,fontSize:"sm"}}),md:mr({tab:{fontSize:"md",py:2,px:4}}),lg:mr({tab:{fontSize:"lg",py:3,px:4}})},LA=mr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Ut.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Wn.variable]:"colors.gray.200",_dark:{[Wn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ut.reference,bg:Wn.reference}}}),NA=mr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ku.variable]:"transparent",_selected:{[Ut.variable]:`colors.${t}.600`,[ku.variable]:"colors.white",_dark:{[Ut.variable]:`colors.${t}.300`,[ku.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ku.reference},color:Ut.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),VA=mr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Wn.variable]:"colors.gray.50",_dark:{[Wn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Wn.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[Wn.variable]:"colors.gray.800",[Ut.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ut.reference,bg:Wn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zA=mr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:At(n,`${t}.700`),bg:At(n,`${t}.100`)}}}}),BA=mr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ut.variable]:"colors.gray.600",_dark:{[Ut.variable]:"inherit"},_selected:{[Ut.variable]:"colors.white",[Wn.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:"colors.gray.800",[Wn.variable]:`colors.${t}.300`}},color:Ut.reference,bg:Wn.reference}}}),jA=mr({}),HA={line:LA,enclosed:NA,"enclosed-colored":VA,"soft-rounded":zA,"solid-rounded":BA,unstyled:jA},WA=OA({baseStyle:DA,sizes:FA,variants:HA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Ke=dM("badge",["bg","color","shadow"]),UA={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ke.bg.reference,color:Ke.color.reference,boxShadow:Ke.shadow.reference},qA=e=>{const{colorScheme:t,theme:n}=e,r=Rs(`${t}.500`,.6)(n);return{[Ke.bg.variable]:`colors.${t}.500`,[Ke.color.variable]:"colors.white",_dark:{[Ke.bg.variable]:r,[Ke.color.variable]:"colors.whiteAlpha.800"}}},KA=e=>{const{colorScheme:t,theme:n}=e,r=Rs(`${t}.200`,.16)(n);return{[Ke.bg.variable]:`colors.${t}.100`,[Ke.color.variable]:`colors.${t}.800`,_dark:{[Ke.bg.variable]:r,[Ke.color.variable]:`colors.${t}.200`}}},GA=e=>{const{colorScheme:t,theme:n}=e,r=Rs(`${t}.200`,.8)(n);return{[Ke.color.variable]:`colors.${t}.500`,_dark:{[Ke.color.variable]:r},[Ke.shadow.variable]:`inset 0 0 0px 1px ${Ke.color.reference}`}},YA={solid:qA,subtle:KA,outline:GA},Ha={baseStyle:UA,variants:YA,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:XA,definePartsStyle:si}=Oe(VI.keys),Pb=Y("tag-bg"),Eb=Y("tag-color"),Mp=Y("tag-shadow"),dc=Y("tag-min-height"),fc=Y("tag-min-width"),pc=Y("tag-font-size"),hc=Y("tag-padding-inline"),QA={fontWeight:"medium",lineHeight:1.2,outline:0,[Eb.variable]:Ke.color.reference,[Pb.variable]:Ke.bg.reference,[Mp.variable]:Ke.shadow.reference,color:Eb.reference,bg:Pb.reference,boxShadow:Mp.reference,borderRadius:"md",minH:dc.reference,minW:fc.reference,fontSize:pc.reference,px:hc.reference,_focusVisible:{[Mp.variable]:"shadows.outline"}},ZA={lineHeight:1.2,overflow:"visible"},JA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},eD=si({container:QA,label:ZA,closeButton:JA}),tD={sm:si({container:{[dc.variable]:"sizes.5",[fc.variable]:"sizes.5",[pc.variable]:"fontSizes.xs",[hc.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:si({container:{[dc.variable]:"sizes.6",[fc.variable]:"sizes.6",[pc.variable]:"fontSizes.sm",[hc.variable]:"space.2"}}),lg:si({container:{[dc.variable]:"sizes.8",[fc.variable]:"sizes.8",[pc.variable]:"fontSizes.md",[hc.variable]:"space.3"}})},nD={subtle:si(e=>{var t;return{container:(t=Ha.variants)==null?void 0:t.subtle(e)}}),solid:si(e=>{var t;return{container:(t=Ha.variants)==null?void 0:t.solid(e)}}),outline:si(e=>{var t;return{container:(t=Ha.variants)==null?void 0:t.outline(e)}})},rD=XA({variants:nD,baseStyle:eD,sizes:tD,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Or,defineMultiStyleConfig:oD}=Oe(PI.keys),Zi=Y("input-height"),Ji=Y("input-font-size"),es=Y("input-padding"),ts=Y("input-border-radius"),iD=Or({addon:{height:Zi.reference,fontSize:Ji.reference,px:es.reference,borderRadius:ts.reference},field:{width:"100%",height:Zi.reference,fontSize:Ji.reference,px:es.reference,borderRadius:ts.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Jr={lg:{[Ji.variable]:"fontSizes.lg",[es.variable]:"space.4",[ts.variable]:"radii.md",[Zi.variable]:"sizes.12"},md:{[Ji.variable]:"fontSizes.md",[es.variable]:"space.4",[ts.variable]:"radii.md",[Zi.variable]:"sizes.10"},sm:{[Ji.variable]:"fontSizes.sm",[es.variable]:"space.3",[ts.variable]:"radii.sm",[Zi.variable]:"sizes.8"},xs:{[Ji.variable]:"fontSizes.xs",[es.variable]:"space.2",[ts.variable]:"radii.sm",[Zi.variable]:"sizes.6"}},sD={lg:Or({field:Jr.lg,group:Jr.lg}),md:Or({field:Jr.md,group:Jr.md}),sm:Or({field:Jr.sm,group:Jr.sm}),xs:Or({field:Jr.xs,group:Jr.xs})};function n0(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Q("blue.500","blue.300")(e),errorBorderColor:n||Q("red.500","red.300")(e)}}var aD=Or(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=n0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:At(t,r),boxShadow:`0 0 0 1px ${At(t,r)}`},_focusVisible:{zIndex:1,borderColor:At(t,n),boxShadow:`0 0 0 1px ${At(t,n)}`}},addon:{border:"1px solid",borderColor:Q("inherit","whiteAlpha.50")(e),bg:Q("gray.100","whiteAlpha.300")(e)}}}),lD=Or(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=n0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Q("gray.100","whiteAlpha.50")(e),_hover:{bg:Q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:At(t,r)},_focusVisible:{bg:"transparent",borderColor:At(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Q("gray.100","whiteAlpha.50")(e)}}}),uD=Or(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=n0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:At(t,r),boxShadow:`0px 1px 0px 0px ${At(t,r)}`},_focusVisible:{borderColor:At(t,n),boxShadow:`0px 1px 0px 0px ${At(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),cD=Or({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),dD={outline:aD,filled:lD,flushed:uD,unstyled:cD},ye=oD({baseStyle:iD,sizes:sD,variants:dD,defaultProps:{size:"md",variant:"outline"}}),Tb,fD={...(Tb=ye.baseStyle)==null?void 0:Tb.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},_b,$b,pD={outline:e=>{var t,n;return(n=(t=ye.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=ye.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=ye.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:($b=(_b=ye.variants)==null?void 0:_b.unstyled.field)!=null?$b:{}},Ob,Rb,Mb,Ib,Ab,Db,Fb,Lb,hD={xs:(Rb=(Ob=ye.sizes)==null?void 0:Ob.xs.field)!=null?Rb:{},sm:(Ib=(Mb=ye.sizes)==null?void 0:Mb.sm.field)!=null?Ib:{},md:(Db=(Ab=ye.sizes)==null?void 0:Ab.md.field)!=null?Db:{},lg:(Lb=(Fb=ye.sizes)==null?void 0:Fb.lg.field)!=null?Lb:{}},mD={baseStyle:fD,sizes:hD,variants:pD,defaultProps:{size:"md",variant:"outline"}},Cu=it("tooltip-bg"),Ip=it("tooltip-fg"),vD=it("popper-arrow-bg"),gD={bg:Cu.reference,color:Ip.reference,[Cu.variable]:"colors.gray.700",[Ip.variable]:"colors.whiteAlpha.900",_dark:{[Cu.variable]:"colors.gray.300",[Ip.variable]:"colors.gray.900"},[vD.variable]:Cu.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},yD={baseStyle:gD},{defineMultiStyleConfig:bD,definePartsStyle:wa}=Oe(RI.keys),SD=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=Q(Sb(),Sb("1rem","rgba(0,0,0,0.1)"))(e),s=Q(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( to right, transparent 0%, ${At(n,s)} 50%, transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},xD={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},wD=e=>({bg:Q("gray.100","whiteAlpha.300")(e)}),kD=e=>({transitionProperty:"common",transitionDuration:"slow",...SD(e)}),CD=wa(e=>({label:xD,filledTrack:kD(e),track:wD(e)})),PD={xs:wa({track:{h:"1"}}),sm:wa({track:{h:"2"}}),md:wa({track:{h:"3"}}),lg:wa({track:{h:"4"}})},ED=bD({sizes:PD,baseStyle:CD,defaultProps:{size:"md",colorScheme:"blue"}}),TD=e=>typeof e=="function";function Ft(e,...t){return TD(e)?e(...t):e}var{definePartsStyle:mc,defineMultiStyleConfig:_D}=Oe(SI.keys),Ha=Y("checkbox-size"),$D=e=>{const{colorScheme:t}=e;return{w:Ha.reference,h:Ha.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Q(`${t}.500`,`${t}.200`)(e),borderColor:Q(`${t}.500`,`${t}.200`)(e),color:Q("white","gray.900")(e),_hover:{bg:Q(`${t}.600`,`${t}.300`)(e),borderColor:Q(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Q("gray.200","transparent")(e),bg:Q("gray.200","whiteAlpha.300")(e),color:Q("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Q(`${t}.500`,`${t}.200`)(e),borderColor:Q(`${t}.500`,`${t}.200`)(e),color:Q("white","gray.900")(e)},_disabled:{bg:Q("gray.100","whiteAlpha.100")(e),borderColor:Q("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Q("red.500","red.300")(e)}}},OD={_disabled:{cursor:"not-allowed"}},RD={userSelect:"none",_disabled:{opacity:.4}},MD={transitionProperty:"transform",transitionDuration:"normal"},ID=mc(e=>({icon:MD,container:OD,control:Ft($D,e),label:RD})),AD={sm:mc({control:{[Ha.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:mc({control:{[Ha.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:mc({control:{[Ha.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},pd=_D({baseStyle:ID,sizes:AD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:DD,definePartsStyle:vc}=Oe(MI.keys),FD=e=>{var t;const n=(t=Ft(pd.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},LD=vc(e=>{var t,n,r,o;return{label:(n=(t=pd).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=pd).baseStyle)==null?void 0:o.call(r,e).container,control:FD(e)}}),ND={md:vc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:vc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:vc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},VD=DD({baseStyle:LD,sizes:ND,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zD,definePartsStyle:BD}=Oe(II.keys),Pu=Y("select-bg"),Nb,jD={...(Nb=ye.baseStyle)==null?void 0:Nb.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Pu.reference,[Pu.variable]:"colors.white",_dark:{[Pu.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Pu.reference}},WD={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},HD=BD({field:jD,icon:WD}),Eu={paddingInlineEnd:"8"},Vb,zb,Bb,jb,Wb,Hb,Ub,qb,UD={lg:{...(Vb=ye.sizes)==null?void 0:Vb.lg,field:{...(zb=ye.sizes)==null?void 0:zb.lg.field,...Eu}},md:{...(Bb=ye.sizes)==null?void 0:Bb.md,field:{...(jb=ye.sizes)==null?void 0:jb.md.field,...Eu}},sm:{...(Wb=ye.sizes)==null?void 0:Wb.sm,field:{...(Hb=ye.sizes)==null?void 0:Hb.sm.field,...Eu}},xs:{...(Ub=ye.sizes)==null?void 0:Ub.xs,field:{...(qb=ye.sizes)==null?void 0:qb.xs.field,...Eu},icon:{insetEnd:"1"}}},qD=zD({baseStyle:HD,sizes:UD,variants:ye.variants,defaultProps:ye.defaultProps}),Ap=Y("skeleton-start-color"),Dp=Y("skeleton-end-color"),KD={[Ap.variable]:"colors.gray.100",[Dp.variable]:"colors.gray.400",_dark:{[Ap.variable]:"colors.gray.800",[Dp.variable]:"colors.gray.600"},background:Ap.reference,borderColor:Dp.reference,opacity:.7,borderRadius:"sm"},GD={baseStyle:KD},Fp=Y("skip-link-bg"),YD={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Fp.variable]:"colors.white",_dark:{[Fp.variable]:"colors.gray.700"},bg:Fp.reference}},XD={baseStyle:YD},{defineMultiStyleConfig:QD,definePartsStyle:Of}=Oe(AI.keys),wl=Y("slider-thumb-size"),kl=Y("slider-track-size"),uo=Y("slider-bg"),ZD=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...t0({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},JD=e=>({...t0({orientation:e.orientation,horizontal:{h:kl.reference},vertical:{w:kl.reference}}),overflow:"hidden",borderRadius:"sm",[uo.variable]:"colors.gray.200",_dark:{[uo.variable]:"colors.whiteAlpha.200"},_disabled:{[uo.variable]:"colors.gray.300",_dark:{[uo.variable]:"colors.whiteAlpha.300"}},bg:uo.reference}),eF=e=>{const{orientation:t}=e;return{...t0({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:wl.reference,h:wl.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"}}},tF=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[uo.variable]:`colors.${t}.500`,_dark:{[uo.variable]:`colors.${t}.200`},bg:uo.reference}},nF=Of(e=>({container:ZD(e),track:JD(e),thumb:eF(e),filledTrack:tF(e)})),rF=Of({container:{[wl.variable]:"sizes.4",[kl.variable]:"sizes.1"}}),oF=Of({container:{[wl.variable]:"sizes.3.5",[kl.variable]:"sizes.1"}}),iF=Of({container:{[wl.variable]:"sizes.2.5",[kl.variable]:"sizes.0.5"}}),sF={lg:rF,md:oF,sm:iF},aF=QD({baseStyle:nF,sizes:sF,defaultProps:{size:"md",colorScheme:"blue"}}),Ho=ot("spinner-size"),lF={width:[Ho.reference],height:[Ho.reference]},uF={xs:{[Ho.variable]:"sizes.3"},sm:{[Ho.variable]:"sizes.4"},md:{[Ho.variable]:"sizes.6"},lg:{[Ho.variable]:"sizes.8"},xl:{[Ho.variable]:"sizes.12"}},cF={baseStyle:lF,sizes:uF,defaultProps:{size:"md"}},{defineMultiStyleConfig:dF,definePartsStyle:vP}=Oe(DI.keys),fF={fontWeight:"medium"},pF={opacity:.8,marginBottom:"2"},hF={verticalAlign:"baseline",fontWeight:"semibold"},mF={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},vF=vP({container:{},label:fF,helpText:pF,number:hF,icon:mF}),gF={md:vP({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},yF=dF({baseStyle:vF,sizes:gF,defaultProps:{size:"md"}}),Lp=Y("kbd-bg"),bF={[Lp.variable]:"colors.gray.100",_dark:{[Lp.variable]:"colors.whiteAlpha.100"},bg:Lp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},SF={baseStyle:bF},xF={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},wF={baseStyle:xF},{defineMultiStyleConfig:kF,definePartsStyle:CF}=Oe(EI.keys),PF={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},EF=CF({icon:PF}),TF=kF({baseStyle:EF}),{defineMultiStyleConfig:_F,definePartsStyle:$F}=Oe(TI.keys),sr=Y("menu-bg"),Np=Y("menu-shadow"),OF={[sr.variable]:"#fff",[Np.variable]:"shadows.sm",_dark:{[sr.variable]:"colors.gray.700",[Np.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:sr.reference,boxShadow:Np.reference},RF={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[sr.variable]:"colors.gray.100",_dark:{[sr.variable]:"colors.whiteAlpha.100"}},_active:{[sr.variable]:"colors.gray.200",_dark:{[sr.variable]:"colors.whiteAlpha.200"}},_expanded:{[sr.variable]:"colors.gray.100",_dark:{[sr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:sr.reference},MF={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},IF={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},AF={opacity:.6},DF={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},FF={transitionProperty:"common",transitionDuration:"normal"},LF=$F({button:FF,list:OF,item:RF,groupTitle:MF,icon:IF,command:AF,divider:DF}),NF=_F({baseStyle:LF}),{defineMultiStyleConfig:VF,definePartsStyle:Bm}=Oe(_I.keys),Vp=Y("modal-bg"),zp=Y("modal-shadow"),zF={bg:"blackAlpha.600",zIndex:"modal"},BF=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},jF=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Vp.variable]:"colors.white",[zp.variable]:"shadows.lg",_dark:{[Vp.variable]:"colors.gray.700",[zp.variable]:"shadows.dark-lg"},bg:Vp.reference,boxShadow:zp.reference}},WF={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},HF={position:"absolute",top:"2",insetEnd:"3"},UF=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},qF={px:"6",py:"4"},KF=Bm(e=>({overlay:zF,dialogContainer:Ft(BF,e),dialog:Ft(jF,e),header:WF,closeButton:HF,body:Ft(UF,e),footer:qF}));function Vn(e){return Bm(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var GF={xs:Vn("xs"),sm:Vn("sm"),md:Vn("md"),lg:Vn("lg"),xl:Vn("xl"),"2xl":Vn("2xl"),"3xl":Vn("3xl"),"4xl":Vn("4xl"),"5xl":Vn("5xl"),"6xl":Vn("6xl"),full:Vn("full")},YF=VF({baseStyle:KF,sizes:GF,defaultProps:{size:"md"}}),{defineMultiStyleConfig:XF,definePartsStyle:gP}=Oe($I.keys),r0=ot("number-input-stepper-width"),yP=ot("number-input-input-padding"),QF=Tr(r0).add("0.5rem").toString(),Bp=ot("number-input-bg"),jp=ot("number-input-color"),Wp=ot("number-input-border-color"),ZF={[r0.variable]:"sizes.6",[yP.variable]:QF},JF=e=>{var t,n;return(n=(t=Ft(ye.baseStyle,e))==null?void 0:t.field)!=null?n:{}},eL={width:r0.reference},tL={borderStart:"1px solid",borderStartColor:Wp.reference,color:jp.reference,bg:Bp.reference,[jp.variable]:"colors.chakra-body-text",[Wp.variable]:"colors.chakra-border-color",_dark:{[jp.variable]:"colors.whiteAlpha.800",[Wp.variable]:"colors.whiteAlpha.300"},_active:{[Bp.variable]:"colors.gray.200",_dark:{[Bp.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},nL=gP(e=>{var t;return{root:ZF,field:(t=Ft(JF,e))!=null?t:{},stepperGroup:eL,stepper:tL}});function Tu(e){var t,n,r;const o=(t=ye.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",a=dP.fontSizes[s];return gP({field:{...o.field,paddingInlineEnd:yP.reference,verticalAlign:"top"},stepper:{fontSize:Tr(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var rL={xs:Tu("xs"),sm:Tu("sm"),md:Tu("md"),lg:Tu("lg")},oL=XF({baseStyle:nL,sizes:rL,variants:ye.variants,defaultProps:ye.defaultProps}),Kb,iL={...(Kb=ye.baseStyle)==null?void 0:Kb.field,textAlign:"center"},sL={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"}},Gb,Yb,aL={outline:e=>{var t,n,r;return(r=(n=Ft((t=ye.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Ft((t=ye.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Ft((t=ye.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Yb=(Gb=ye.variants)==null?void 0:Gb.unstyled.field)!=null?Yb:{}},lL={baseStyle:iL,sizes:sL,variants:aL,defaultProps:ye.defaultProps},{defineMultiStyleConfig:uL,definePartsStyle:cL}=Oe(OI.keys),_u=ot("popper-bg"),dL=ot("popper-arrow-bg"),Xb=ot("popper-arrow-shadow-color"),fL={zIndex:10},pL={[_u.variable]:"colors.white",bg:_u.reference,[dL.variable]:_u.reference,[Xb.variable]:"colors.gray.200",_dark:{[_u.variable]:"colors.gray.700",[Xb.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},hL={px:3,py:2,borderBottomWidth:"1px"},mL={px:3,py:2},vL={px:3,py:2,borderTopWidth:"1px"},gL={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},yL=cL({popper:fL,content:pL,header:hL,body:mL,footer:vL,closeButton:gL}),bL=uL({baseStyle:yL}),{definePartsStyle:jm,defineMultiStyleConfig:SL}=Oe(xI.keys),Hp=Y("drawer-bg"),Up=Y("drawer-box-shadow");function $i(e){return jm(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var xL={bg:"blackAlpha.600",zIndex:"modal"},wL={display:"flex",zIndex:"modal",justifyContent:"center"},kL=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Hp.variable]:"colors.white",[Up.variable]:"shadows.lg",_dark:{[Hp.variable]:"colors.gray.700",[Up.variable]:"shadows.dark-lg"},bg:Hp.reference,boxShadow:Up.reference}},CL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},PL={position:"absolute",top:"2",insetEnd:"3"},EL={px:"6",py:"2",flex:"1",overflow:"auto"},TL={px:"6",py:"4"},_L=jm(e=>({overlay:xL,dialogContainer:wL,dialog:Ft(kL,e),header:CL,closeButton:PL,body:EL,footer:TL})),$L={xs:$i("xs"),sm:$i("md"),md:$i("lg"),lg:$i("2xl"),xl:$i("4xl"),full:$i("full")},OL=SL({baseStyle:_L,sizes:$L,defaultProps:{size:"xs"}}),{definePartsStyle:RL,defineMultiStyleConfig:ML}=Oe(wI.keys),IL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},AL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},DL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},FL=RL({preview:IL,input:AL,textarea:DL}),LL=ML({baseStyle:FL}),{definePartsStyle:NL,defineMultiStyleConfig:VL}=Oe(kI.keys),ms=Y("form-control-color"),zL={marginStart:"1",[ms.variable]:"colors.red.500",_dark:{[ms.variable]:"colors.red.300"},color:ms.reference},BL={mt:"2",[ms.variable]:"colors.gray.600",_dark:{[ms.variable]:"colors.whiteAlpha.600"},color:ms.reference,lineHeight:"normal",fontSize:"sm"},jL=NL({container:{width:"100%",position:"relative"},requiredIndicator:zL,helperText:BL}),WL=VL({baseStyle:jL}),{definePartsStyle:HL,defineMultiStyleConfig:UL}=Oe(CI.keys),vs=Y("form-error-color"),qL={[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},KL={marginEnd:"0.5em",[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference},GL=HL({text:qL,icon:KL}),YL=UL({baseStyle:GL}),XL={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},QL={baseStyle:XL},ZL={fontFamily:"heading",fontWeight:"bold"},JL={"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}},eN={baseStyle:ZL,sizes:JL,defaultProps:{size:"xl"}},{defineMultiStyleConfig:tN,definePartsStyle:nN}=Oe(bI.keys),qp=Y("breadcrumb-link-decor"),rN={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:qp.reference,[qp.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[qp.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},oN=nN({link:rN}),iN=tN({baseStyle:oN}),sN={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"}}},bP=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:Q("gray.800","whiteAlpha.900")(e),_hover:{bg:Q("gray.100","whiteAlpha.200")(e)},_active:{bg:Q("gray.200","whiteAlpha.300")(e)}};const r=Rs(`${t}.200`,.12)(n),o=Rs(`${t}.200`,.24)(n);return{color:Q(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Q(`${t}.50`,r)(e)},_active:{bg:Q(`${t}.100`,o)(e)}}},aN=e=>{const{colorScheme:t}=e,n=Q("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ft(bP,e)}},lN={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},uN=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=Q("gray.100","whiteAlpha.200")(e);return{bg:l,color:Q("gray.800","whiteAlpha.900")(e),_hover:{bg:Q("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:Q("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=lN[n])!=null?t:{},a=Q(r,`${n}.200`)(e);return{bg:a,color:Q(o,"gray.800")(e),_hover:{bg:Q(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:Q(s,`${n}.400`)(e)}}},cN=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Q(`${t}.700`,`${t}.500`)(e)}}},dN={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},fN={ghost:bP,outline:aN,solid:uN,link:cN,unstyled:dN},pN={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"}},hN={baseStyle:sN,variants:fN,sizes:pN,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ai,defineMultiStyleConfig:mN}=Oe(zI.keys),hd=Y("card-bg"),Ar=Y("card-padding"),SP=Y("card-shadow"),gc=Y("card-radius"),xP=Y("card-border-width","0"),wP=Y("card-border-color"),vN=ai({container:{[hd.variable]:"colors.chakra-body-bg",backgroundColor:hd.reference,boxShadow:SP.reference,borderRadius:gc.reference,color:"chakra-body-text",borderWidth:xP.reference,borderColor:wP.reference},body:{padding:Ar.reference,flex:"1 1 0%"},header:{padding:Ar.reference},footer:{padding:Ar.reference}}),gN={sm:ai({container:{[gc.variable]:"radii.base",[Ar.variable]:"space.3"}}),md:ai({container:{[gc.variable]:"radii.md",[Ar.variable]:"space.5"}}),lg:ai({container:{[gc.variable]:"radii.xl",[Ar.variable]:"space.7"}})},yN={elevated:ai({container:{[SP.variable]:"shadows.base",_dark:{[hd.variable]:"colors.gray.700"}}}),outline:ai({container:{[xP.variable]:"1px",[wP.variable]:"colors.chakra-border-color"}}),filled:ai({container:{[hd.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ar.variable]:0},header:{[Ar.variable]:0},footer:{[Ar.variable]:0}}},bN=mN({baseStyle:vN,variants:yN,sizes:gN,defaultProps:{variant:"elevated",size:"md"}}),Ua=ot("close-button-size"),aa=ot("close-button-bg"),SN={w:[Ua.reference],h:[Ua.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[aa.variable]:"colors.blackAlpha.100",_dark:{[aa.variable]:"colors.whiteAlpha.100"}},_active:{[aa.variable]:"colors.blackAlpha.200",_dark:{[aa.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:aa.reference},xN={lg:{[Ua.variable]:"sizes.10",fontSize:"md"},md:{[Ua.variable]:"sizes.8",fontSize:"xs"},sm:{[Ua.variable]:"sizes.6",fontSize:"2xs"}},wN={baseStyle:SN,sizes:xN,defaultProps:{size:"md"}},{variants:kN,defaultProps:CN}=Wa,PN={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ke.bg.reference,color:Ke.color.reference,boxShadow:Ke.shadow.reference},EN={baseStyle:PN,variants:kN,defaultProps:CN},TN={w:"100%",mx:"auto",maxW:"prose",px:"4"},_N={baseStyle:TN},$N={opacity:.6,borderColor:"inherit"},ON={borderStyle:"solid"},RN={borderStyle:"dashed"},MN={solid:ON,dashed:RN},IN={baseStyle:$N,variants:MN,defaultProps:{variant:"solid"}},{definePartsStyle:AN,defineMultiStyleConfig:DN}=Oe(vI.keys),FN={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},LN={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},NN={pt:"2",px:"4",pb:"5"},VN={fontSize:"1.25em"},zN=AN({container:FN,button:LN,panel:NN,icon:VN}),BN=DN({baseStyle:zN}),{definePartsStyle:ql,defineMultiStyleConfig:jN}=Oe(gI.keys),fn=Y("alert-fg"),jr=Y("alert-bg"),WN=ql({container:{bg:jr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function o0(e){const{theme:t,colorScheme:n}=e,r=Rs(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var HN=ql(e=>{const{colorScheme:t}=e,n=o0(e);return{container:{[fn.variable]:`colors.${t}.600`,[jr.variable]:n.light,_dark:{[fn.variable]:`colors.${t}.200`,[jr.variable]:n.dark}}}}),UN=ql(e=>{const{colorScheme:t}=e,n=o0(e);return{container:{[fn.variable]:`colors.${t}.600`,[jr.variable]:n.light,_dark:{[fn.variable]:`colors.${t}.200`,[jr.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:fn.reference}}}),qN=ql(e=>{const{colorScheme:t}=e,n=o0(e);return{container:{[fn.variable]:`colors.${t}.600`,[jr.variable]:n.light,_dark:{[fn.variable]:`colors.${t}.200`,[jr.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:fn.reference}}}),KN=ql(e=>{const{colorScheme:t}=e;return{container:{[fn.variable]:"colors.white",[jr.variable]:`colors.${t}.600`,_dark:{[fn.variable]:"colors.gray.900",[jr.variable]:`colors.${t}.200`},color:fn.reference}}}),GN={subtle:HN,"left-accent":UN,"top-accent":qN,solid:KN},YN=jN({baseStyle:WN,variants:GN,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:kP,defineMultiStyleConfig:XN}=Oe(yI.keys),gs=Y("avatar-border-color"),qa=Y("avatar-bg"),Cl=Y("avatar-font-size"),Ms=Y("avatar-size"),QN={borderRadius:"full",border:"0.2em solid",borderColor:gs.reference,[gs.variable]:"white",_dark:{[gs.variable]:"colors.gray.800"}},ZN={bg:qa.reference,fontSize:Cl.reference,width:Ms.reference,height:Ms.reference,lineHeight:"1",[qa.variable]:"colors.gray.200",_dark:{[qa.variable]:"colors.whiteAlpha.400"}},JN=e=>{const{name:t,theme:n}=e,r=t?sA({string:t}):"colors.gray.400",o=oA(r)(n);let i="white";return o||(i="gray.800"),{bg:qa.reference,fontSize:Cl.reference,color:i,borderColor:gs.reference,verticalAlign:"top",width:Ms.reference,height:Ms.reference,"&:not([data-loaded])":{[qa.variable]:r},[gs.variable]:"colors.white",_dark:{[gs.variable]:"colors.gray.800"}}},e6={fontSize:Cl.reference,lineHeight:"1"},t6=kP(e=>({badge:Ft(QN,e),excessLabel:Ft(ZN,e),container:Ft(JN,e),label:e6}));function eo(e){const t=e!=="100%"?pP[e]:void 0;return kP({container:{[Ms.variable]:t??e,[Cl.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ms.variable]:t??e,[Cl.variable]:`calc(${t??e} / 2.5)`}})}var n6={"2xs":eo(4),xs:eo(6),sm:eo(8),md:eo(12),lg:eo(16),xl:eo(24),"2xl":eo(32),full:eo("100%")},r6=XN({baseStyle:t6,sizes:n6,defaultProps:{size:"md"}}),o6={Accordion:BN,Alert:YN,Avatar:r6,Badge:Wa,Breadcrumb:iN,Button:hN,Checkbox:pd,CloseButton:wN,Code:EN,Container:_N,Divider:IN,Drawer:OL,Editable:LL,Form:WL,FormError:YL,FormLabel:QL,Heading:eN,Input:ye,Kbd:SF,Link:wF,List:TF,Menu:NF,Modal:YF,NumberInput:oL,PinInput:lL,Popover:bL,Progress:ED,Radio:VD,Select:qD,Skeleton:GD,SkipLink:XD,Slider:aF,Spinner:cF,Stat:yF,Switch:wA,Table:$A,Tabs:HA,Tag:rD,Textarea:mD,Tooltip:yD,Card:bN,Stepper:mI},i6={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"}}},s6={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"}}},a6="ltr",l6={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},CP={semanticTokens:i6,direction:a6,...fI,components:o6,styles:s6,config:l6};function ka(e){return typeof e=="function"}function u6(...e){return t=>e.reduce((n,r)=>r(n),t)}var c6=e=>function(...n){let r=[...n],o=n[n.length-1];return j3(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,u6(...r.map(i=>s=>ka(i)?i(s):d6(s,i)))(o)},fee=c6(CP);function d6(...e){return _n({},...e,PP)}function PP(e,t,n,r){if((ka(e)||ka(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=ka(e)?e(...o):e,s=ka(t)?t(...o):t;return _n({},i,s,PP)}}function f6(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var p6=f6();function h6(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function m6(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},EP=v6(m6);function TP(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var _P=e=>TP(e,t=>t!=null);function g6(e){return typeof e=="function"}function $P(e,...t){return g6(e)?e(...t):e}function y6(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var b6=typeof Element<"u",S6=typeof Map=="function",x6=typeof Set=="function",w6=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function yc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!yc(e[r],t[r]))return!1;return!0}var i;if(S6&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!yc(r.value[1],t.get(r.value[0])))return!1;return!0}if(x6&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(w6&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(b6&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!yc(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var k6=function(t,n){try{return yc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const C6=Kd(k6);function OP(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=rP(),a=e?EP(i,`components.${e}`):void 0,l=r||a,u=_n({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},_P(h6(o,["children"]))),c=g.useRef({});if(l){const f=V3(l)(u);C6(c.current,f)||(c.current=f)}return c.current}function en(e,t={}){return OP(e,t)}function ut(e,t={}){return OP(e,t)}var P6=new Set([...T3,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),E6=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function T6(e){return E6.has(e)||!P6.has(e)}function _6(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function $6(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var O6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,R6=B2(function(e){return O6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),M6=R6,I6=function(t){return t!=="theme"},Qb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?M6:I6},Zb=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},A6=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Hg(n,r,o),X2(function(){return Ug(n,r,o)}),null},D6=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Zb(t,n,r),l=a||Qb(o),u=!l("as");return function(){var c=arguments,d=r&&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:n,css:r,__css:o,sx:i,...s}=t,a=TP(s,(d,f)=>$3(f)),l=$P(e,t),u=_6({},o,l,_P(a),i),c=cP(u)(t.theme);return r?[c,r]:c};function Kp(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=T6);const o=N6({baseStyle:n}),i=L6(e,r)(o);return Un.forwardRef(function(l,u){const{colorMode:c,forced:d}=Ef();return Un.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function V6(){const e=new Map;return new Proxy(Kp,{apply(t,n,r){return Kp(...r)},get(t,n){return e.has(n)||e.set(n,Kp(n)),e.get(n)}})}var A=V6();function U(e){return g.forwardRef(e)}function RP(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=g.createContext(void 0);o.displayName=r;function i(){var s;const a=g.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function z6(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=g.useMemo(()=>E3(n),[n]);return w.jsxs(Q5,{theme:o,children:[w.jsx(B6,{root:t}),r]})}function B6({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(Pf,{styles:n=>({[t]:n.__cssVars})})}RP({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function j6(e){return RP({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function W6(){const{colorMode:e}=Ef();return w.jsx(Pf,{styles:t=>{const n=EP(t,"styles.global"),r=$P(n,{theme:t,colorMode:e});return r?cP(r)(t):void 0}})}var i0=g.createContext({getDocument(){return document},getWindow(){return window}});i0.displayName="EnvironmentContext";function H6({defer:e}={}){const[,t]=g.useReducer(n=>n+1,0);return Ir(()=>{e&&t()},[e]),g.useContext(i0)}function MP(e){const{children:t,environment:n,disabled:r}=e,o=g.useRef(null),i=g.useMemo(()=>n||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[n]),s=!r||!n;return w.jsxs(i0.Provider,{value:i,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}MP.displayName="EnvironmentProvider";var U6=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=w.jsx(MP,{environment:a,disabled:u,children:t});return w.jsx(z6,{theme:s,cssVarsRoot:l,children:w.jsxs(nP,{colorModeManager:n,options:s.config,children:[i?w.jsx(rM,{scope:o}):w.jsx(nM,{}),!c&&w.jsx(W6,{}),r?w.jsx(eP,{zIndex:r,children:d}):d]})})},q6=(e,t)=>e.find(n=>n.id===t);function eS(e,t){const n=IP(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function IP(e,t){for(const[n,r]of Object.entries(e))if(q6(r,t))return n}function K6(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function G6(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}function Rn(e,t=[]){const n=g.useRef(e);return g.useEffect(()=>{n.current=e}),g.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Y6(e,t){const n=Rn(e);g.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Pl(e,t){const n=g.useRef(!1),r=g.useRef(!1);g.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),g.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const s0=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Rf=g.createContext({}),Kl=g.createContext(null),a0=typeof document<"u",l0=a0?g.useLayoutEffect:g.useEffect,AP=g.createContext({strict:!1}),Mf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),X6="framerAppearId",DP="data-"+Mf(X6),Q6={skipAnimations:!1,useManualTiming:!1};class tS{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 n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Z6(e){let t=new tS,n=new tS,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;un=!0,s=$u.reduce((v,y)=>(v[y]=Z6(i),v),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const v=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(v-o.timestamp,J6),1),o.timestamp=v,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:$u.reduce((v,y)=>{const b=s[y];return v[y]=(x,k=!1,P=!1)=>(n||m(),b.schedule(x,k,P)),v},{}),cancel:v=>{for(let y=0;y<$u.length;y++)s[$u[y]].cancel(v)},state:o,steps:s}}const{schedule:u0,cancel:pee}=FP(queueMicrotask,!1);function ns(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const LP=g.createContext({});let nS=!1;function eV(e,t,n,r,o){const{visualElement:i}=g.useContext(Rf),s=g.useContext(AP),a=g.useContext(Kl),l=g.useContext(s0).reducedMotion,u=g.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=g.useContext(LP);c&&!c.projection&&o&&(c.type==="html"||c.type==="svg")&&nV(u.current,n,o,d),g.useInsertionEffect(()=>{c&&c.update(n,a)});const f=g.useRef(!!(n[DP]&&!window.HandoffComplete));return l0(()=>{c&&(c.updateFeatures(),u0.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,nS||(nS=!0,queueMicrotask(tV))))}),c}function tV(){window.HandoffComplete=!0}function nV(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:NP(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ns(a),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function NP(e){if(e)return e.options.allowProjection!==!1?e.projection:NP(e.parent)}function rV(e,t,n){return g.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ns(n)&&(n.current=r))},[t])}function El(e){return typeof e=="string"||Array.isArray(e)}function Tl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const c0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d0=["initial",...c0];function If(e){return Tl(e.animate)||d0.some(t=>El(e[t]))}function VP(e){return!!(If(e)||e.variants)}function oV(e,t){if(If(e)){const{initial:n,animate:r}=e;return{initial:n===!1||El(n)?n:void 0,animate:El(r)?r:void 0}}return e.inherit!==!1?t:{}}function iV(e){const{initial:t,animate:n}=oV(e,g.useContext(Rf));return g.useMemo(()=>({initial:t,animate:n}),[rS(t),rS(n)])}function rS(e){return Array.isArray(e)?e.join(" "):e}const oS={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"]},Is={};for(const e in oS)Is[e]={isEnabled:t=>oS[e].some(n=>!!t[n])};function sV(e){for(const t in e)Is[t]={...Is[t],...e[t]}}const f0=g.createContext({}),aV=Symbol.for("motionComponentSymbol"),Ot=e=>e;let Wm=Ot;function lV({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&sV(e);function i(a,l){let u;const c={...g.useContext(s0),...a,layoutId:uV(a)},{isStatic:d}=c,f=iV(a),p=r(a,d);if(!d&&a0){cV();const m=dV(c);u=m.MeasureLayout,f.visualElement=eV(o,p,c,t,m.ProjectionNode)}return w.jsxs(Rf.Provider,{value:f,children:[u&&f.visualElement?w.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,rV(p,f.visualElement,l),p,d,f.visualElement)]})}const s=g.forwardRef(i);return s[aV]=o,s}function uV({layoutId:e}){const t=g.useContext(f0).id;return t&&e!==void 0?t+"-"+e:e}function cV(e,t){g.useContext(AP).strict}function dV(e){const{drag:t,layout:n}=Is;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fV(e){function t(r,o={}){return lV(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const pV=["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 p0(e){return typeof e!="string"||e.includes("-")?!1:!!(pV.indexOf(e)>-1||/[A-Z]/u.test(e))}const vd={};function hV(e){Object.assign(vd,e)}const Gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Io=new Set(Gl);function zP(e,{layout:t,layoutId:n}){return Io.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}const _t=e=>!!(e&&e.getVelocity),mV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vV=Gl.length;function gV(e,t,n){let r="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),jP=BP("--"),yV=BP("var(--"),h0=e=>yV(e)?bV.test(e.split("/*")[0].trim()):!1,bV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,SV=(e,t)=>t&&typeof e=="number"?t.transform(e):e,To=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ka={...Us,transform:e=>To(0,1,e)},Ou={...Us,default:1},Ga=e=>Math.round(e*1e5)/1e5,m0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,xV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,wV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Yl(e){return typeof e=="string"}function kV(e){return e==null}const Xl=e=>({test:t=>Yl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=Xl("deg"),vr=Xl("%"),J=Xl("px"),CV=Xl("vh"),PV=Xl("vw"),iS={...vr,parse:e=>vr.parse(e)/100,transform:e=>vr.transform(e*100)},sS={...Us,transform:Math.round},WP={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:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ou,scaleX:Ou,scaleY:Ou,scaleZ:Ou,skew:to,skewX:to,skewY:to,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Ka,originX:iS,originY:iS,originZ:J,zIndex:sS,backgroundPositionX:J,backgroundPositionY:J,fillOpacity:Ka,strokeOpacity:Ka,numOctaves:sS};function v0(e,t,n){const{style:r,vars:o,transform:i,transformOrigin:s}=e;let a=!1,l=!1,u=!0;for(const c in t){const d=t[c];if(jP(c)){o[c]=d;continue}const f=WP[c],p=SV(d,f);if(Io.has(c)){if(a=!0,i[c]=p,!u)continue;d!==(f.default||0)&&(u=!1)}else c.startsWith("origin")?(l=!0,s[c]=p):r[c]=p}if(t.transform||(a||n?r.transform=gV(e.transform,u,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:f=0}=s;r.transformOrigin=`${c} ${d} ${f}`}}const g0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HP(e,t,n){for(const r in t)!_t(t[r])&&!zP(r,n)&&(e[r]=t[r])}function EV({transformTemplate:e},t){return g.useMemo(()=>{const n=g0();return v0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TV(e,t){const n=e.style||{},r={};return HP(r,n,e),Object.assign(r,EV(e,t)),r}function _V(e,t){const n={},r=TV(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const $V=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function gd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$V.has(e)}let UP=e=>!gd(e);function OV(e){e&&(UP=t=>t.startsWith("on")?!gd(t):e(t))}try{OV(require("@emotion/is-prop-valid").default)}catch{}function RV(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(UP(o)||n===!0&&gd(o)||!t&&!gd(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function aS(e,t,n){return typeof e=="string"?e:J.transform(t+n*e)}function MV(e,t,n){const r=aS(t,e.x,e.width),o=aS(n,e.y,e.height);return`${r} ${o}`}const IV={offset:"stroke-dashoffset",array:"stroke-dasharray"},AV={offset:"strokeDashoffset",array:"strokeDasharray"};function DV(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?IV:AV;e[i.offset]=J.transform(-r);const s=J.transform(t),a=J.transform(n);e[i.array]=`${s} ${a}`}function y0(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(v0(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=MV(m,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&DV(f,s,a,l,!1)}const qP=()=>({...g0(),attrs:{}}),b0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FV(e,t,n,r){const o=g.useMemo(()=>{const i=qP();return y0(i,t,b0(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};HP(i,e.style,e),o.style={...i,...o.style}}return o}function LV(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(p0(n)?FV:_V)(r,i,s,n),u=RV(r,typeof n=="string",e),c=n!==g.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=g.useMemo(()=>_t(d)?d.get():d,[d]);return g.createElement(n,{...c,children:f})}}function KP(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const GP=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 YP(e,t,n,r){KP(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(GP.has(o)?o:Mf(o),t.attrs[o])}function S0(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(_t(o[s])||t.style&&_t(t.style[s])||zP(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function XP(e,t,n){const r=S0(e,t,n);for(const o in e)if(_t(e[o])||_t(t[o])){const i=Gl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function lS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function x0(e,t,n,r){if(typeof t=="function"){const[o,i]=lS(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=lS(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function QP(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Hm=e=>Array.isArray(e),NV=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VV=e=>Hm(e)?e[e.length-1]||0:e;function bc(e){const t=_t(e)?e.get():e;return NV(t)?t.toValue():t}const ZP=new Set(["opacity","clipPath","filter","transform"]);function JP(e){if(Io.has(e))return"transform";if(ZP.has(e))return Mf(e)}function Af(e,t){e.indexOf(t)===-1&&e.push(t)}function Df(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zV({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:jV(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const eE=e=>(t,n)=>{const r=g.useContext(Rf),o=g.useContext(Kl),i=()=>zV(e,t,r,o,n);return n?i():QP(i)};function BV(e,t){const n=JP(t);n&&Af(e,n)}function uS(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const y in S){let b=S[y];if(Array.isArray(b)){const x=m?b.length-1:0;b=b[x]}b!==null&&(s[y]=b)}for(const y in v)s[y]=v[y]}),l&&(d&&c!==!1&&!Tl(d)&&uS(e,d,S=>{for(const v in S)BV(a,v)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:xe,cancel:Wr,state:pt,steps:Gp}=FP(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ot,!0),WV={useVisualState:eE({scrapeMotionValuesFromProps:XP,createRenderState:qP,onMount:(e,t,{renderState:n,latestValues:r})=>{xe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),xe.render(()=>{y0(n,r,b0(t.tagName),e.transformTemplate),YP(t,n)})}})},HV={useVisualState:eE({applyWillChange:!0,scrapeMotionValuesFromProps:S0,createRenderState:g0})};function UV(e,{forwardMotionProps:t=!1},n,r){return{...p0(e)?WV:HV,preloadedFeatures:n,useRender:LV(t),createVisualElement:r,Component:e}}function Rr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ff(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const qV=e=>t=>tE(t)&&e(t,Ff(t));function Dr(e,t,n,r){return Rr(e,t,qV(n),r)}const KV=(e,t)=>n=>t(e(n)),Fr=(...e)=>e.reduce(KV);function nE(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const cS=nE("dragHorizontal"),dS=nE("dragVertical");function rE(e){let t=!1;if(e==="y")t=dS();else if(e==="x")t=cS();else{const n=cS(),r=dS();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function oE(){const e=rE(!0);return e?(e(),!1):!0}class Ao{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||oE())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&xe.postRender(()=>l(i,s))};return Dr(e.current,n,o,{passive:!e.getProps()[r]})}class GV extends Ao{mount(){this.unmount=Fr(fS(this.node,!0),fS(this.node,!1))}unmount(){}}class YV extends Ao{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=Fr(Rr(this.node.current,"focus",()=>this.onFocus()),Rr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const iE=(e,t)=>t?e===t?!0:iE(e,t.parentElement):!1;function Yp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ff(n))}class XV extends Ao{constructor(){super(...arguments),this.removeStartListeners=Ot,this.removeEndListeners=Ot,this.removeAccessibleListeners=Ot,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Dr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!iE(this.node.current,a.target)?c:u;f&&xe.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Dr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Fr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Yp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&xe.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Rr(this.node.current,"keyup",s),Yp("down",(a,l)=>{this.startPress(a,l)})},n=Rr(this.node.current,"keydown",t),r=()=>{this.isPressing&&Yp("cancel",(i,s)=>this.cancelPress(i,s))},o=Rr(this.node.current,"blur",r);this.removeAccessibleListeners=Fr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&xe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!oE()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&xe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Dr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Rr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Fr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Um=new WeakMap,Xp=new WeakMap,QV=e=>{const t=Um.get(e.target);t&&t(e)},ZV=e=>{e.forEach(QV)};function JV({root:e,...t}){const n=e||document;Xp.has(n)||Xp.set(n,{});const r=Xp.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ZV,{root:e,...t})),r[o]}function ez(e,t,n){const r=JV(t);return Um.set(e,n),r.observe(e),()=>{Um.delete(e),r.unobserve(e)}}const tz={some:0,all:1};class nz extends Ao{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:tz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return ez(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rz(t,n))&&this.startObserver()}unmount(){}}function rz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oz={inView:{Feature:nz},tap:{Feature:XV},focus:{Feature:YV},hover:{Feature:GV}};function sE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,Lr=e=>e/1e3,iz={type:"spring",stiffness:500,damping:25,restSpeed:10},sz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),az={type:"keyframes",duration:.8},lz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uz=(e,{keyframes:t})=>t.length>2?az:Io.has(e)?e.startsWith("scale")?sz(t[1]):iz:lz;function cz({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function w0(e,t){return e[t]||e.default||e}const dz=e=>e!==null;function Nf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(dz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let Sc;function fz(){Sc=void 0}const Co={now:()=>(Sc===void 0&&Co.set(pt.isProcessing||Q6.useManualTiming?pt.timestamp:performance.now()),Sc),set:e=>{Sc=e,queueMicrotask(fz)}},aE=e=>/^0[^.\s]+$/u.test(e);function pz(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||aE(e):!0}const lE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mz(e){const t=hz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function uE(e,t,n=1){const[r,o]=mz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return lE(s)?parseFloat(s):s}return h0(o)?uE(o,t,n+1):o}const vz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pS=e=>e===Us||e===J,hS=(e,t)=>parseFloat(e.split(", ")[t]),mS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return hS(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?hS(i[1],e):0}},gz=new Set(["x","y","z"]),yz=Gl.filter(e=>!gz.has(e));function bz(e){const t=[];return yz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const As={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mS(4,13),y:mS(5,14)};As.translateX=As.x;As.translateY=As.y;const cE=e=>t=>t.test(e),Sz={test:e=>e==="auto",parse:e=>e},dE=[Us,J,vr,to,PV,CV,Sz],vS=e=>dE.find(cE(e)),li=new Set;let qm=!1,Km=!1;function fE(){if(Km){const e=Array.from(li).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=bz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Km=!1,qm=!1,li.forEach(e=>e.complete()),li.clear()}function pE(){li.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Km=!0)})}function xz(){pE(),fE()}class k0{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(li.add(this),qm||(qm=!0,xe.read(pE),xe.resolveKeyframes(fE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Yl(n)&&wV.test(n)&&n.startsWith(e)||t&&!kV(n)&&Object.prototype.hasOwnProperty.call(n,t)),hE=(e,t,n)=>r=>{if(!Yl(r))return r;const[o,i,s,a]=r.match(m0);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},wz=e=>To(0,255,e),Qp={...Us,transform:e=>Math.round(wz(e))},Zo={test:C0("rgb","red"),parse:hE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qp.transform(e)+", "+Qp.transform(t)+", "+Qp.transform(n)+", "+Ga(Ka.transform(r))+")"};function kz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Gm={test:C0("#"),parse:kz,transform:Zo.transform},rs={test:C0("hsl","hue"),parse:hE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vr.transform(Ga(t))+", "+vr.transform(Ga(n))+", "+Ga(Ka.transform(r))+")"},Et={test:e=>Zo.test(e)||Gm.test(e)||rs.test(e),parse:e=>Zo.test(e)?Zo.parse(e):rs.test(e)?rs.parse(e):Gm.parse(e),transform:e=>Yl(e)?e:e.hasOwnProperty("red")?Zo.transform(e):rs.transform(e)};function Cz(e){var t,n;return isNaN(e)&&Yl(e)&&(((t=e.match(m0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(xV))===null||n===void 0?void 0:n.length)||0)>0}const mE="number",vE="color",Pz="var",Ez="var(",gS="${}",Tz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _l(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Tz,l=>(Et.test(l)?(r.color.push(i),o.push(vE),n.push(Et.parse(l))):l.startsWith(Ez)?(r.var.push(i),o.push(Pz),n.push(l)):(r.number.push(i),o.push(mE),n.push(parseFloat(l))),++i,gS)).split(gS);return{values:n,split:a,indexes:r,types:o}}function gE(e){return _l(e).values}function yE(e){const{split:t,types:n}=_l(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function $z(e){const t=gE(e);return yE(e)(t.map(_z))}const _o={test:Cz,parse:gE,createTransformer:yE,getAnimatableNone:$z},Oz=new Set(["brightness","contrast","saturate","opacity"]);function Rz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m0)||[];if(!r)return e;const o=n.replace(r,"");let i=Oz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Mz=/\b([a-z-]*)\(.*?\)/gu,Ym={..._o,getAnimatableNone:e=>{const t=e.match(Mz);return t?t.map(Rz).join(" "):e}},Iz={...WP,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Ym,WebkitFilter:Ym},P0=e=>Iz[e];function bE(e,t){let n=P0(e);return n!==Ym&&(n=_o),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Az=new Set(["auto","none","0"]);function Dz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function xE(e){let t;return()=>(t===void 0&&(t=e()),t)}const yS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_o.test(e)||e==="0")&&!e.startsWith("url("));function Fz(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function kE(e,t){return t?e*(1e3/t):0}const Nz=5;function CE(e,t,n){const r=Math.max(t-Nz,0);return kE(n-e(r),t-r)}const Zp=.001,Vz=.01,zz=10,Bz=.05,jz=1;function Wz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=To(Bz,jz,s),e=To(Vz,zz,Lr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=Xm(u,s),m=Math.exp(-d);return Zp-f/p*m},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),h=Xm(Math.pow(u,2),s);return(-o(u)+Zp>0?-1:1)*((f-p)*m)/h}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Zp+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Uz(o,i,a);if(e=ko(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Hz=12;function Uz(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function Gz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!bS(e,Kz)&&bS(e,qz)){const n=Wz(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function PE({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=Gz({...r,velocity:-Lr(r.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(a*u)),h=i-o,S=Lr(Math.sqrt(a/u)),v=Math.abs(h)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let y;if(m<1){const b=Xm(S,m);y=x=>{const k=Math.exp(-m*S*x);return i-k*((p+m*S*h)/b*Math.sin(b*x)+h*Math.cos(b*x))}}else if(m===1)y=b=>i-Math.exp(-S*b)*(h+(p+S*h)*b);else{const b=S*Math.sqrt(m*m-1);y=x=>{const k=Math.exp(-m*S*x),P=Math.min(b*x,300);return i-k*((p+m*S*h)*Math.sinh(P)+b*h*Math.cosh(P))/b}}return{calculatedDuration:f&&c||null,next:b=>{const x=y(b);if(f)s.done=b>=c;else{let k=p;b!==0&&(m<1?k=CE(y,b,x):k=0);const P=Math.abs(k)<=n,C=Math.abs(i-x)<=t;s.done=P&&C}return s.value=s.done?i:x,s}}}function SS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=E=>a!==void 0&&El,m=E=>a===void 0?l:l===void 0||Math.abs(a-E)-h*Math.exp(-E/r),b=E=>v+y(E),x=E=>{const _=y(E),$=b(E);f.done=Math.abs(_)<=u,f.value=f.done?v:$};let k,P;const C=E=>{p(f.value)&&(k=E,P=PE({keyframes:[f.value,m(f.value)],velocity:CE(b,E,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:E=>{let _=!1;return!P&&k===void 0&&(_=!0,x(E),C(E)),k!==void 0&&E>=k?P.next(E-k):(!_&&x(E),f)}}}const EE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Yz=1e-7,Xz=12;function Qz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=EE(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Yz&&++aQz(i,0,1,e,n);return i=>i===0||i===1?i:EE(o(i),t,r)}const Zz=Ql(.42,0,1,1),Jz=Ql(0,0,.58,1),TE=Ql(.42,0,.58,1),eB=e=>Array.isArray(e)&&typeof e[0]!="number",_E=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$E=e=>t=>1-e(1-t),E0=e=>1-Math.sin(Math.acos(e)),OE=$E(E0),tB=_E(E0),RE=Ql(.33,1.53,.69,.99),T0=$E(RE),nB=_E(T0),rB=e=>(e*=2)<1?.5*T0(e):.5*(2-Math.pow(2,-10*(e-1))),xS={linear:Ot,easeIn:Zz,easeInOut:TE,easeOut:Jz,circIn:E0,circInOut:tB,circOut:OE,backIn:T0,backInOut:nB,backOut:RE,anticipate:rB},wS=e=>{if(Array.isArray(e)){Wm(e.length===4);const[t,n,r,o]=e;return Ql(t,n,r,o)}else if(typeof e=="string")return Wm(xS[e]!==void 0),xS[e];return e},$l=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ne=(e,t,n)=>e+(t-e)*n;function Jp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oB({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Jp(l,a,e+1/3),i=Jp(l,a,e),s=Jp(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function yd(e,t){return n=>n>0?t:e}const eh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},iB=[Gm,Zo,rs],sB=e=>iB.find(t=>t.test(e));function kS(e){const t=sB(e);if(!t)return!1;let n=t.parse(e);return t===rs&&(n=oB(n)),n}const CS=(e,t)=>{const n=kS(e),r=kS(t);if(!n||!r)return yd(e,t);const o={...n};return i=>(o.red=eh(n.red,r.red,i),o.green=eh(n.green,r.green,i),o.blue=eh(n.blue,r.blue,i),o.alpha=Ne(n.alpha,r.alpha,i),Zo.transform(o))},Qm=new Set(["none","hidden"]);function aB(e,t){return Qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function lB(e,t){return n=>Ne(e,t,n)}function _0(e){return typeof e=="number"?lB:typeof e=="string"?h0(e)?yd:Et.test(e)?CS:dB:Array.isArray(e)?ME:typeof e=="object"?Et.test(e)?CS:uB:yd}function ME(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>_0(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function cB(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=_o.createTransformer(t),r=_l(e),o=_l(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Qm.has(e)&&!o.values.length||Qm.has(t)&&!r.values.length?aB(e,t):Fr(ME(cB(r,o),o.values),n):yd(e,t)};function IE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ne(e,t,n):_0(e)(e,t)}function fB(e,t,n){const r=[],o=n||IE,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fB(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(To(e[0],e[i-1],u)):l}function hB(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=$l(0,t,r);e.push(Ne(n,1,o))}}function mB(e){const t=[0];return hB(t,e.length-1),t}function vB(e,t){return e.map(n=>n*t)}function gB(e,t){return e.map(()=>t||TE).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=eB(r)?r.map(wS):wS(r),i={done:!1,value:t[0]},s=vB(n&&n.length===t.length?n:mB(t),e),a=pB(s,t,{ease:Array.isArray(o)?o:gB(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const PS=2e4;function yB(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=PS?1/0:t}const bB=e=>{const t=({timestamp:n})=>e(n);return{start:()=>xe.update(t,!0),stop:()=>Wr(t),now:()=>pt.isProcessing?pt.timestamp:Co.now()}},SB={decay:SS,inertia:SS,tween:bd,keyframes:bd,spring:PE},xB=e=>e/100;class $0 extends wE{constructor({KeyframeResolver:t=k0,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new t(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=SB[n]||bd;let l,u;a!==bd&&typeof t[0]!="number"&&(l=Fr(xB,IE(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=yB(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:h,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let b=this.currentTime,x=i;if(p){const E=Math.min(this.currentTime,c)/d;let _=Math.floor(E),$=E%1;!$&&E>=1&&($=1),$===1&&_--,_=Math.min(_,p+1),!!(_%2)&&(m==="reverse"?($=1-$,h&&($-=h/d)):m==="mirror"&&(x=s)),b=To(0,1,$)*d}const k=y?{done:!1,value:l[0]}:x.next(b);a&&(k.value=a(k.value));let{done:P}=k;!y&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return C&&o!==void 0&&(k.value=Nf(l,this.options,o)),S&&S(k.value),C&&this.finish(),k}get duration(){const{resolved:t}=this;return t?Lr(t.calculatedDuration):0}get time(){return Lr(this.currentTime)}set time(t){t=ko(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Lr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=bB,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const AE=e=>Array.isArray(e)&&typeof e[0]=="number";function DE(e){return!!(!e||typeof e=="string"&&e in O0||AE(e)||Array.isArray(e)&&e.every(DE))}const Ca=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,O0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ca([0,.65,.55,1]),circOut:Ca([.55,0,1,.45]),backIn:Ca([.31,.01,.66,-.59]),backOut:Ca([.33,1.53,.69,.99])};function wB(e){return FE(e)||O0.easeOut}function FE(e){if(e)return AE(e)?Ca(e):Array.isArray(e)?e.map(wB):O0[e]}function kB(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=FE(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const CB=xE(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sd=10,PB=2e4;function EB(e){return e.type==="spring"||!DE(e.ease)}function TB(e,t){const n=new $0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(EB(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...m}=this.options,h=TB(t,m);t=h.keyframes,t.length===1&&(t[1]=t[0]),o=h.duration,i=h.times,s=h.ease,a="keyframes"}const c=kB(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return c.startTime=Co.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Nf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Lr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Lr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ko(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ot;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ot}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,...f}=this.options,p=new $0({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),m=ko(this.time);u.setWithVelocity(p.sample(m-Sd).value,p.sample(m).value,Sd)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return CB()&&r&&ZP.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function _B(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return xe.update(r,!0),()=>Wr(r)}const $B=xE(()=>window.ScrollTimeline!==void 0);class OB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if($B()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),_B(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const R0=(e,t,n,r={},o,i,s)=>a=>{const l=w0(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ko(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};cz(l)||(d={...d,...uz(e,d)}),d.duration&&(d.duration=ko(d.duration)),d.repeatDelay&&(d.repeatDelay=ko(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Nf(d.keyframes,l);if(p!==void 0)return xe.update(()=>{d.onUpdate(p),d.onComplete()}),new OB([])}return!i&&ES.supports(d)?new ES(d):new $0(d)};class M0{constructor(){this.subscriptions=[]}add(t){return Af(this.subscriptions,t),()=>Df(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class LE{constructor(t,n={}){this.version="11.3.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Co.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Co.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new M0);const r=this.events[t].add(n);return t==="change"?()=>{r(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Co.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>TS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,TS);return kE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ol(e,t){return new LE(e,t)}function MB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ol(n))}function IB(e,t){const n=Lf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=VV(i[s]);MB(e,s,a)}}function NE(e){return e.getProps()[DP]}class AB extends LE{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=JP(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(Df(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function DB(e){return!!(_t(e)&&e.add)}function Zm(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new AB("auto"),e.addValue("willChange",r)),DB(r))return r.add(t)}function FB({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function VE(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&FB(c,d))continue;const m={delay:n,elapsed:0,...w0(s||{},d)};let h=!1;if(window.HandoffAppearAnimations){const v=NE(e);if(v){const y=window.HandoffAppearAnimations(v,d,f,xe);y!==null&&(m.elapsed=y,h=!0)}}f.start(R0(d,f,p,e.shouldReduceMotion&&Io.has(d)?{type:!1}:m,e,h,Zm(e,d)));const S=f.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{xe.update(()=>{a&&IB(e,a)})}),u}function Jm(e,t,n={}){var r;const o=Lf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(VE(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return LB(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function LB(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(NB).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Jm(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function NB(e,t){return e.sortNodePosition(t)}function VB(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Jm(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Jm(e,t,n);else{const o=typeof t=="function"?Lf(e,t,n.custom):t;r=Promise.all(VE(e,o,n))}return r.then(()=>{xe.postRender(()=>{e.notify("AnimationComplete",t)})})}const zB=[...c0].reverse(),BB=c0.length;function jB(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VB(e,n,r)))}function WB(e){let t=jB(e),n=_S(),r=!0;const o=l=>(u,c)=>{var d;const f=Lf(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;u={...u,...h,...m}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let S=0;Sm&&x,_=!1;const $=Array.isArray(b)?b:[b];let M=$.reduce(o(v),{});k===!1&&(M={});const{prevResolvedValues:F={}}=y,H={...F,...M},re=W=>{E=!0,f.has(W)&&(_=!0,f.delete(W)),y.needsAnimating[W]=!0;const N=e.getValue(W);N&&(N.liveStyle=!1)};for(const W in H){const N=M[W],R=F[W];if(p.hasOwnProperty(W))continue;let O=!1;Hm(N)&&Hm(R)?O=!sE(N,R):O=N!==R,O?N!=null?re(W):f.add(W):N!==void 0&&f.has(W)?re(W):y.protectedKeys[W]=!0}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(E=!1),E&&(!P||_)&&d.push(...$.map(W=>({animation:W,options:{type:v}})))}if(f.size){const S={};f.forEach(v=>{const y=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),S[v]=y??null}),d.push({animation:S})}let h=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=_S(),r=!0}}}function HB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sE(t,e):!1}function Lo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _S(){return{animate:Lo(!0),whileInView:Lo(),whileHover:Lo(),whileTap:Lo(),whileDrag:Lo(),whileFocus:Lo(),exit:Lo()}}class UB extends Ao{constructor(t){super(t),t.animationState||(t.animationState=WB(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Tl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let qB=0;class KB extends Ao{constructor(){super(...arguments),this.id=qB++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GB={animation:{Feature:UB},exit:{Feature:KB}},$S=(e,t)=>Math.abs(e-t);function YB(e,t){const n=$S(e.x,t.x),r=$S(e.y,t.y);return Math.sqrt(n**2+r**2)}class zE{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=nh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=YB(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:h}=pt;this.history.push({...m,timestamp:h});const{onStart:S,onMove:v}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=th(f,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=nh(d.type==="pointercancel"?this.lastMoveEventInfo:th(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,S),m&&m(d,S)},!tE(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ff(t),a=th(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=pt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,nh(a,this.history)),this.removeListeners=Fr(Dr(this.contextWindow,"pointermove",this.handlePointerMove),Dr(this.contextWindow,"pointerup",this.handlePointerUp),Dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wr(this.updatePoint)}}function th(e,t){return t?{point:t(e.point)}:e}function OS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nh({point:e},t){return{point:e,delta:OS(e,BE(t)),offset:OS(e,XB(t)),velocity:QB(t,.1)}}function XB(e){return e[0]}function BE(e){return e[e.length-1]}function QB(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=BE(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ko(t)));)n--;if(!r)return{x:0,y:0};const i=Lr(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function hn(e){return e.max-e.min}function ev(e,t=0,n=.01){return Math.abs(e-t)<=n}function RS(e,t,n,r=.5){e.origin=r,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=hn(n)/hn(t),(ev(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ne(n.min,n.max,e.origin)-e.originPoint,(ev(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ya(e,t,n,r){RS(e.x,t.x,n.x,r?r.originX:void 0),RS(e.y,t.y,n.y,r?r.originY:void 0)}function MS(e,t,n){e.min=n.min+t.min,e.max=e.min+hn(t)}function ZB(e,t,n){MS(e.x,t.x,n.x),MS(e.y,t.y,n.y)}function IS(e,t,n){e.min=t.min-n.min,e.max=e.min+hn(t)}function Xa(e,t,n){IS(e.x,t.x,n.x),IS(e.y,t.y,n.y)}function JB(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ne(n,e,r.max):Math.min(e,n)),e}function AS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function e9(e,{top:t,left:n,bottom:r,right:o}){return{x:AS(e.x,n,o),y:AS(e.y,t,r)}}function DS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=$l(t.min,t.max-r,e.min):r>o&&(n=$l(e.min,e.max-o,t.min)),To(0,1,n)}function r9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tv=.35;function o9(e=tv){return e===!1?e=0:e===!0&&(e=tv),{x:FS(e,"left","right"),y:FS(e,"top","bottom")}}function FS(e,t,n){return{min:LS(e,t),max:LS(e,n)}}function LS(e,t){return typeof e=="number"?e:e[t]||0}const NS=()=>({translate:0,scale:1,origin:0,originPoint:0}),os=()=>({x:NS(),y:NS()}),VS=()=>({min:0,max:0}),Ue=()=>({x:VS(),y:VS()});function Cn(e){return[e("x"),e("y")]}function jE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rh(e){return e===void 0||e===1}function nv({scale:e,scaleX:t,scaleY:n}){return!rh(e)||!rh(t)||!rh(n)}function zo(e){return nv(e)||WE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function WE(e){return zS(e.x)||zS(e.y)}function zS(e){return e&&e!=="0%"}function xd(e,t,n){const r=e-n,o=t*r;return n+o}function BS(e,t,n,r,o){return o!==void 0&&(e=xd(e,o,r)),xd(e,n,r)+t}function rv(e,t=0,n=1,r,o){e.min=BS(e.min,t,n,r,o),e.max=BS(e.max,t,n,r,o)}function HE(e,{x:t,y:n}){rv(e.x,t.translate,t.scale,t.originPoint),rv(e.y,n.translate,n.scale,n.originPoint)}function a9(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function so(e,t){e.min=e.min+t,e.max=e.max+t}function WS(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=Ne(e.min,e.max,i);rv(e,t[n],t[r],s,t.scale)}const l9=["x","scaleX","originX"],u9=["y","scaleY","originY"];function is(e,t){WS(e.x,t,l9),WS(e.y,t,u9)}function UE(e,t){return jE(s9(e.getBoundingClientRect(),t))}function c9(e,t,n){const r=UE(e,n),{scroll:o}=t;return o&&(so(r.x,o.offset.x),so(r.y,o.offset.y)),r}const qE=({current:e})=>e?e.ownerDocument.defaultView:null,d9=new WeakMap;class f9{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=Ue(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ff(c,"page").point)},i=(c,d)=>{var f;const{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rE(p),!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),Cn(v=>{let y=this.getAxisMotionValue(v).get()||0;if(vr.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[v];x&&(y=hn(x)*(parseFloat(y)/100))}}this.originPoint[v]=y}),h&&xe.postRender(()=>h(c,d)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=Zm(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(p&&this.currentDirection===null){this.currentDirection=p9(S),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),h&&h(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Cn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zE(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:qE(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&xe.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ru(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=JB(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=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;n&&ns(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=e9(o.layoutBox,n):this.constraints=!1,this.elastic=o9(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Cn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=r9(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ns(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=c9(r,o.root,this.visualElement.getTransformPagePoint());let s=t9(o.layout.layoutBox,i);if(n){const a=n(i9(s));this.hasMutatedConstraints=!!a,a&&(s=jE(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Cn(c=>{if(!Ru(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(R0(t,r,0,n,this.visualElement,!1,Zm(this.visualElement,t)))}stopAnimation(){Cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Cn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Cn(n=>{const{drag:r}=this.getProps();if(!Ru(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ns(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Cn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=n9({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Cn(s=>{if(!Ru(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Ne(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;d9.set(this.visualElement,this);const t=this.visualElement.current,n=Dr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ns(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),xe.read(r);const s=Rr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Cn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=tv,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ru(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function p9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class h9 extends Ao{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new f9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const HS=e=>(t,n)=>{e&&xe.postRender(()=>e(t,n))};class m9 extends Ao{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new zE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:HS(t),onStart:HS(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&xe.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Dr(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 KE(){const e=g.useContext(Kl);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=g.useId();return g.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function v9(){return g9(g.useContext(Kl))}function g9(e){return e===null?!0:e.isPresent}const xc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function US(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const la={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(J.test(e))e=parseFloat(e);else return e;const n=US(e,t.target.x),r=US(e,t.target.y);return`${n}% ${r}%`}},y9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=_o.parse(e);if(o.length>5)return r;const i=_o.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=Ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class b9 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;hV(S9),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||xe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),u0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function GE(e){const[t,n]=KE(),r=g.useContext(f0);return w.jsx(b9,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(LP),isPresent:t,safeToRemove:n})}const S9={borderRadius:{...la,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:la,borderTopRightRadius:la,borderBottomLeftRadius:la,borderBottomRightRadius:la,boxShadow:y9},YE=["TopLeft","TopRight","BottomLeft","BottomRight"],x9=YE.length,qS=e=>typeof e=="string"?parseFloat(e):e,KS=e=>typeof e=="number"||J.test(e);function w9(e,t,n,r,o,i){o?(e.opacity=Ne(0,n.opacity!==void 0?n.opacity:1,k9(r)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,C9(r))):i&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n($l(e,t,r))}function YS(e,t){e.min=t.min,e.max=t.max}function wn(e,t){YS(e.x,t.x),YS(e.y,t.y)}function XS(e,t,n,r,o){return e-=t,e=xd(e,1/n,r),o!==void 0&&(e=xd(e,1/o,r)),e}function P9(e,t=0,n=1,r=.5,o,i=e,s=e){if(vr.test(t)&&(t=parseFloat(t),t=Ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Ne(i.min,i.max,r);e===i&&(a-=t),e.min=XS(e.min,t,n,a,o),e.max=XS(e.max,t,n,a,o)}function QS(e,t,[n,r,o],i,s){P9(e,t[n],t[r],t[o],t.scale,i,s)}const E9=["x","scaleX","originX"],T9=["y","scaleY","originY"];function ZS(e,t,n,r){QS(e.x,t,E9,n?n.x:void 0,r?r.x:void 0),QS(e.y,t,T9,n?n.y:void 0,r?r.y:void 0)}function JS(e){return e.translate===0&&e.scale===1}function QE(e){return JS(e.x)&&JS(e.y)}function _9(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 ZE(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 ex(e){return hn(e.x)/hn(e.y)}class $9{constructor(){this.members=[]}add(t){Af(this.members,t),t.scheduleRender()}remove(t){if(Df(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tx(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const O9=(e,t)=>e.depth-t.depth;class R9{constructor(){this.children=[],this.isDirty=!1}add(t){Af(this.children,t),this.isDirty=!0}remove(t){Df(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(O9),this.isDirty=!1,this.children.forEach(t)}}function M9(e,t){const n=Co.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Wr(r),e(i-t))};return xe.read(r,!0),()=>Wr(r)}function I9(e){window.MotionDebug&&window.MotionDebug.record(e)}function A9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function D9(e,t,n){const r=_t(e)?e:Ol(e);return r.start(R0("",r,t,n)),r.animation}const oh=["","X","Y","Z"],F9={visibility:"hidden"},nx=1e3;let L9=0;const Bo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ih(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function JE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?NE(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?JE(e.parent):!1:!1}function eT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=L9++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bo.totalNodes=Bo.resolvedTargetDeltas=Bo.recalculatedProjection=0,this.nodes.forEach(z9),this.nodes.forEach(U9),this.nodes.forEach(q9),this.nodes.forEach(B9),I9(Bo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=M9(f,250),xc.hasAnimatedSinceResize&&(xc.hasAnimatedSinceResize=!1,this.nodes.forEach(ox))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||c.getDefaultTransition()||Q9,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!ZE(this.targetLayout,m)||p,b=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const x={...w0(h,"layout"),onPlay:S,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||ox(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wr(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(K9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&JE(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 k=x/1e3;ix(d.x,s.x,k),ix(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xa(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Y9(this.relativeTarget,this.relativeTargetOrigin,f,k),b&&_9(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ue()),wn(b,this.relativeTarget)),h&&(this.animationValues=c,w9(c,u,this.latestValues,k,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{xc.hasAnimatedSinceResize=!0,this.currentAnimation=D9(0,nx,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&tT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ue();const d=hn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=hn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}wn(a,l),is(a,c),Ya(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new $9),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ih("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rx),this.root.sharedNodes.clear()}}}function N9(e){e.updateLayout()}function V9(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Cn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=hn(f);f.min=r[d].min,f.max=f.min+p}):tT(i,n.layoutBox,r)&&Cn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=hn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=os();Ya(a,r,n.layoutBox);const l=os();s?Ya(l,e.applyTransform(o,!0),n.measuredBox):Ya(l,r,n.layoutBox);const u=!QE(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ue();Xa(m,n.layoutBox,f.layoutBox);const h=Ue();Xa(h,r,p.layoutBox),ZE(m,h)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function z9(e){Bo.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 B9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j9(e){e.clearSnapshot()}function rx(e){e.clearMeasurements()}function W9(e){e.isLayoutDirty=!1}function H9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ox(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function U9(e){e.resolveTargetDelta()}function q9(e){e.calcProjection()}function K9(e){e.resetSkewAndRotation()}function G9(e){e.removeLeadSnapshot()}function ix(e,t,n){e.translate=Ne(t.translate,0,n),e.scale=Ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sx(e,t,n,r){e.min=Ne(t.min,n.min,r),e.max=Ne(t.max,n.max,r)}function Y9(e,t,n,r){sx(e.x,t.x,n.x,r),sx(e.y,t.y,n.y,r)}function X9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Q9={duration:.45,ease:[.4,0,.1,1]},ax=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lx=ax("applewebkit/")&&!ax("chrome/")?Math.round:Ot;function ux(e){e.min=lx(e.min),e.max=lx(e.max)}function Z9(e){ux(e.x),ux(e.y)}function tT(e,t,n){return e==="position"||e==="preserve-aspect"&&!ev(ex(t),ex(n),.2)}const J9=eT({attachResizeListener:(e,t)=>Rr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sh={current:void 0},nT=eT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sh.current){const e=new J9({});e.mount(window),e.setOptions({layoutScroll:!0}),sh.current=e}return sh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ej={pan:{Feature:m9},drag:{Feature:h9,ProjectionNode:nT,MeasureLayout:GE}},ov={current:null},rT={current:!1};function tj(){if(rT.current=!0,!!a0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ov.current=e.matches;e.addListener(t),t()}else ov.current=!1}function nj(e,t,n){for(const r in t){const o=t[r],i=n[r];if(_t(o))e.addValue(r,o);else if(_t(i))e.addValue(r,Ol(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ol(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const cx=new WeakMap,rj=[...dE,Et,_o],oj=e=>rj.find(cE(e)),dx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ij=d0.length;class sj{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,m,h)=>new this.KeyframeResolver(f,p,m,h,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=k0,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=()=>xe.render(this.render,!1,!0);const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=If(n),this.isVariantNode=VP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&_t(p)&&p.set(l[f],!1)}}mount(t){this.current=t,cx.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((n,r)=>this.bindToMotionValue(r,n)),rT.current||tj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ov.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cx.delete(this.current),this.projection&&this.projection.unmount(),Wr(this.notifyUpdate),Wr(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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=Io.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Is){const n=Is[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ol(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=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);return o!=null&&(typeof o=="string"&&(lE(o)||aE(o))?o=parseFloat(o):!oj(o)&&_o.test(n)&&(o=bE(t,n)),this.setBaseTarget(t,_t(o)?o.get():o)),_t(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=x0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!_t(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new M0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class oT extends sj{constructor(){super(...arguments),this.KeyframeResolver=SE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function aj(e){return window.getComputedStyle(e)}class lj extends oT{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0}readValueFromInstance(t,n){if(Io.has(n)){const r=P0(n);return r&&r.default||0}else{const r=aj(t),o=(jP(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return UE(t,n)}build(t,n,r){v0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return S0(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_t(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){KP(t,n,r,o)}}class uj extends oT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Io.has(n)){const r=P0(n);return r&&r.default||0}return n=GP.has(n)?n:Mf(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ue()}scrapeMotionValuesFromProps(t,n,r){return XP(t,n,r)}build(t,n,r){y0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){YP(t,n,r,o)}mount(t){this.isSVGTag=b0(t.tagName),super.mount(t)}}const cj=(e,t)=>p0(e)?new uj(t):new lj(t,{allowProjection:e!==g.Fragment}),dj={layout:{ProjectionNode:nT,MeasureLayout:GE}},fj={...GB,...oz,...ej,...dj},Xr=fV((e,t)=>UV(e,t,fj,cj));function iT(){const e=g.useRef(!1);return l0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function pj(){const e=iT(),[t,n]=g.useState(0),r=g.useCallback(()=>{e.current&&n(t+1)},[t]);return[g.useCallback(()=>xe.postRender(r),[r]),t]}class hj extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function mj({children:e,isPresent:t}){const n=g.useId(),r=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=g.useContext(s0);return g.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},xD={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},wD=e=>({bg:Q("gray.100","whiteAlpha.300")(e)}),kD=e=>({transitionProperty:"common",transitionDuration:"slow",...SD(e)}),CD=wa(e=>({label:xD,filledTrack:kD(e),track:wD(e)})),PD={xs:wa({track:{h:"1"}}),sm:wa({track:{h:"2"}}),md:wa({track:{h:"3"}}),lg:wa({track:{h:"4"}})},ED=bD({sizes:PD,baseStyle:CD,defaultProps:{size:"md",colorScheme:"blue"}}),TD=e=>typeof e=="function";function Ft(e,...t){return TD(e)?e(...t):e}var{definePartsStyle:mc,defineMultiStyleConfig:_D}=Oe(SI.keys),Wa=Y("checkbox-size"),$D=e=>{const{colorScheme:t}=e;return{w:Wa.reference,h:Wa.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Q(`${t}.500`,`${t}.200`)(e),borderColor:Q(`${t}.500`,`${t}.200`)(e),color:Q("white","gray.900")(e),_hover:{bg:Q(`${t}.600`,`${t}.300`)(e),borderColor:Q(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Q("gray.200","transparent")(e),bg:Q("gray.200","whiteAlpha.300")(e),color:Q("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Q(`${t}.500`,`${t}.200`)(e),borderColor:Q(`${t}.500`,`${t}.200`)(e),color:Q("white","gray.900")(e)},_disabled:{bg:Q("gray.100","whiteAlpha.100")(e),borderColor:Q("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Q("red.500","red.300")(e)}}},OD={_disabled:{cursor:"not-allowed"}},RD={userSelect:"none",_disabled:{opacity:.4}},MD={transitionProperty:"transform",transitionDuration:"normal"},ID=mc(e=>({icon:MD,container:OD,control:Ft($D,e),label:RD})),AD={sm:mc({control:{[Wa.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:mc({control:{[Wa.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:mc({control:{[Wa.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},pd=_D({baseStyle:ID,sizes:AD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:DD,definePartsStyle:vc}=Oe(MI.keys),FD=e=>{var t;const n=(t=Ft(pd.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},LD=vc(e=>{var t,n,r,o;return{label:(n=(t=pd).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=pd).baseStyle)==null?void 0:o.call(r,e).container,control:FD(e)}}),ND={md:vc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:vc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:vc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},VD=DD({baseStyle:LD,sizes:ND,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zD,definePartsStyle:BD}=Oe(II.keys),Pu=Y("select-bg"),Nb,jD={...(Nb=ye.baseStyle)==null?void 0:Nb.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Pu.reference,[Pu.variable]:"colors.white",_dark:{[Pu.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Pu.reference}},HD={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},WD=BD({field:jD,icon:HD}),Eu={paddingInlineEnd:"8"},Vb,zb,Bb,jb,Hb,Wb,Ub,qb,UD={lg:{...(Vb=ye.sizes)==null?void 0:Vb.lg,field:{...(zb=ye.sizes)==null?void 0:zb.lg.field,...Eu}},md:{...(Bb=ye.sizes)==null?void 0:Bb.md,field:{...(jb=ye.sizes)==null?void 0:jb.md.field,...Eu}},sm:{...(Hb=ye.sizes)==null?void 0:Hb.sm,field:{...(Wb=ye.sizes)==null?void 0:Wb.sm.field,...Eu}},xs:{...(Ub=ye.sizes)==null?void 0:Ub.xs,field:{...(qb=ye.sizes)==null?void 0:qb.xs.field,...Eu},icon:{insetEnd:"1"}}},qD=zD({baseStyle:WD,sizes:UD,variants:ye.variants,defaultProps:ye.defaultProps}),Ap=Y("skeleton-start-color"),Dp=Y("skeleton-end-color"),KD={[Ap.variable]:"colors.gray.100",[Dp.variable]:"colors.gray.400",_dark:{[Ap.variable]:"colors.gray.800",[Dp.variable]:"colors.gray.600"},background:Ap.reference,borderColor:Dp.reference,opacity:.7,borderRadius:"sm"},GD={baseStyle:KD},Fp=Y("skip-link-bg"),YD={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Fp.variable]:"colors.white",_dark:{[Fp.variable]:"colors.gray.700"},bg:Fp.reference}},XD={baseStyle:YD},{defineMultiStyleConfig:QD,definePartsStyle:Of}=Oe(AI.keys),wl=Y("slider-thumb-size"),kl=Y("slider-track-size"),uo=Y("slider-bg"),ZD=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...t0({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},JD=e=>({...t0({orientation:e.orientation,horizontal:{h:kl.reference},vertical:{w:kl.reference}}),overflow:"hidden",borderRadius:"sm",[uo.variable]:"colors.gray.200",_dark:{[uo.variable]:"colors.whiteAlpha.200"},_disabled:{[uo.variable]:"colors.gray.300",_dark:{[uo.variable]:"colors.whiteAlpha.300"}},bg:uo.reference}),eF=e=>{const{orientation:t}=e;return{...t0({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:wl.reference,h:wl.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"}}},tF=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[uo.variable]:`colors.${t}.500`,_dark:{[uo.variable]:`colors.${t}.200`},bg:uo.reference}},nF=Of(e=>({container:ZD(e),track:JD(e),thumb:eF(e),filledTrack:tF(e)})),rF=Of({container:{[wl.variable]:"sizes.4",[kl.variable]:"sizes.1"}}),oF=Of({container:{[wl.variable]:"sizes.3.5",[kl.variable]:"sizes.1"}}),iF=Of({container:{[wl.variable]:"sizes.2.5",[kl.variable]:"sizes.0.5"}}),sF={lg:rF,md:oF,sm:iF},aF=QD({baseStyle:nF,sizes:sF,defaultProps:{size:"md",colorScheme:"blue"}}),Wo=it("spinner-size"),lF={width:[Wo.reference],height:[Wo.reference]},uF={xs:{[Wo.variable]:"sizes.3"},sm:{[Wo.variable]:"sizes.4"},md:{[Wo.variable]:"sizes.6"},lg:{[Wo.variable]:"sizes.8"},xl:{[Wo.variable]:"sizes.12"}},cF={baseStyle:lF,sizes:uF,defaultProps:{size:"md"}},{defineMultiStyleConfig:dF,definePartsStyle:vP}=Oe(DI.keys),fF={fontWeight:"medium"},pF={opacity:.8,marginBottom:"2"},hF={verticalAlign:"baseline",fontWeight:"semibold"},mF={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},vF=vP({container:{},label:fF,helpText:pF,number:hF,icon:mF}),gF={md:vP({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},yF=dF({baseStyle:vF,sizes:gF,defaultProps:{size:"md"}}),Lp=Y("kbd-bg"),bF={[Lp.variable]:"colors.gray.100",_dark:{[Lp.variable]:"colors.whiteAlpha.100"},bg:Lp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},SF={baseStyle:bF},xF={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},wF={baseStyle:xF},{defineMultiStyleConfig:kF,definePartsStyle:CF}=Oe(EI.keys),PF={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},EF=CF({icon:PF}),TF=kF({baseStyle:EF}),{defineMultiStyleConfig:_F,definePartsStyle:$F}=Oe(TI.keys),sr=Y("menu-bg"),Np=Y("menu-shadow"),OF={[sr.variable]:"#fff",[Np.variable]:"shadows.sm",_dark:{[sr.variable]:"colors.gray.700",[Np.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:sr.reference,boxShadow:Np.reference},RF={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[sr.variable]:"colors.gray.100",_dark:{[sr.variable]:"colors.whiteAlpha.100"}},_active:{[sr.variable]:"colors.gray.200",_dark:{[sr.variable]:"colors.whiteAlpha.200"}},_expanded:{[sr.variable]:"colors.gray.100",_dark:{[sr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:sr.reference},MF={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},IF={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},AF={opacity:.6},DF={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},FF={transitionProperty:"common",transitionDuration:"normal"},LF=$F({button:FF,list:OF,item:RF,groupTitle:MF,icon:IF,command:AF,divider:DF}),NF=_F({baseStyle:LF}),{defineMultiStyleConfig:VF,definePartsStyle:Bm}=Oe(_I.keys),Vp=Y("modal-bg"),zp=Y("modal-shadow"),zF={bg:"blackAlpha.600",zIndex:"modal"},BF=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},jF=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Vp.variable]:"colors.white",[zp.variable]:"shadows.lg",_dark:{[Vp.variable]:"colors.gray.700",[zp.variable]:"shadows.dark-lg"},bg:Vp.reference,boxShadow:zp.reference}},HF={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},WF={position:"absolute",top:"2",insetEnd:"3"},UF=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},qF={px:"6",py:"4"},KF=Bm(e=>({overlay:zF,dialogContainer:Ft(BF,e),dialog:Ft(jF,e),header:HF,closeButton:WF,body:Ft(UF,e),footer:qF}));function Vn(e){return Bm(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var GF={xs:Vn("xs"),sm:Vn("sm"),md:Vn("md"),lg:Vn("lg"),xl:Vn("xl"),"2xl":Vn("2xl"),"3xl":Vn("3xl"),"4xl":Vn("4xl"),"5xl":Vn("5xl"),"6xl":Vn("6xl"),full:Vn("full")},YF=VF({baseStyle:KF,sizes:GF,defaultProps:{size:"md"}}),{defineMultiStyleConfig:XF,definePartsStyle:gP}=Oe($I.keys),r0=it("number-input-stepper-width"),yP=it("number-input-input-padding"),QF=Tr(r0).add("0.5rem").toString(),Bp=it("number-input-bg"),jp=it("number-input-color"),Hp=it("number-input-border-color"),ZF={[r0.variable]:"sizes.6",[yP.variable]:QF},JF=e=>{var t,n;return(n=(t=Ft(ye.baseStyle,e))==null?void 0:t.field)!=null?n:{}},eL={width:r0.reference},tL={borderStart:"1px solid",borderStartColor:Hp.reference,color:jp.reference,bg:Bp.reference,[jp.variable]:"colors.chakra-body-text",[Hp.variable]:"colors.chakra-border-color",_dark:{[jp.variable]:"colors.whiteAlpha.800",[Hp.variable]:"colors.whiteAlpha.300"},_active:{[Bp.variable]:"colors.gray.200",_dark:{[Bp.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},nL=gP(e=>{var t;return{root:ZF,field:(t=Ft(JF,e))!=null?t:{},stepperGroup:eL,stepper:tL}});function Tu(e){var t,n,r;const o=(t=ye.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",a=dP.fontSizes[s];return gP({field:{...o.field,paddingInlineEnd:yP.reference,verticalAlign:"top"},stepper:{fontSize:Tr(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var rL={xs:Tu("xs"),sm:Tu("sm"),md:Tu("md"),lg:Tu("lg")},oL=XF({baseStyle:nL,sizes:rL,variants:ye.variants,defaultProps:ye.defaultProps}),Kb,iL={...(Kb=ye.baseStyle)==null?void 0:Kb.field,textAlign:"center"},sL={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"}},Gb,Yb,aL={outline:e=>{var t,n,r;return(r=(n=Ft((t=ye.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Ft((t=ye.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Ft((t=ye.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Yb=(Gb=ye.variants)==null?void 0:Gb.unstyled.field)!=null?Yb:{}},lL={baseStyle:iL,sizes:sL,variants:aL,defaultProps:ye.defaultProps},{defineMultiStyleConfig:uL,definePartsStyle:cL}=Oe(OI.keys),_u=it("popper-bg"),dL=it("popper-arrow-bg"),Xb=it("popper-arrow-shadow-color"),fL={zIndex:10},pL={[_u.variable]:"colors.white",bg:_u.reference,[dL.variable]:_u.reference,[Xb.variable]:"colors.gray.200",_dark:{[_u.variable]:"colors.gray.700",[Xb.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},hL={px:3,py:2,borderBottomWidth:"1px"},mL={px:3,py:2},vL={px:3,py:2,borderTopWidth:"1px"},gL={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},yL=cL({popper:fL,content:pL,header:hL,body:mL,footer:vL,closeButton:gL}),bL=uL({baseStyle:yL}),{definePartsStyle:jm,defineMultiStyleConfig:SL}=Oe(xI.keys),Wp=Y("drawer-bg"),Up=Y("drawer-box-shadow");function $i(e){return jm(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var xL={bg:"blackAlpha.600",zIndex:"modal"},wL={display:"flex",zIndex:"modal",justifyContent:"center"},kL=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Wp.variable]:"colors.white",[Up.variable]:"shadows.lg",_dark:{[Wp.variable]:"colors.gray.700",[Up.variable]:"shadows.dark-lg"},bg:Wp.reference,boxShadow:Up.reference}},CL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},PL={position:"absolute",top:"2",insetEnd:"3"},EL={px:"6",py:"2",flex:"1",overflow:"auto"},TL={px:"6",py:"4"},_L=jm(e=>({overlay:xL,dialogContainer:wL,dialog:Ft(kL,e),header:CL,closeButton:PL,body:EL,footer:TL})),$L={xs:$i("xs"),sm:$i("md"),md:$i("lg"),lg:$i("2xl"),xl:$i("4xl"),full:$i("full")},OL=SL({baseStyle:_L,sizes:$L,defaultProps:{size:"xs"}}),{definePartsStyle:RL,defineMultiStyleConfig:ML}=Oe(wI.keys),IL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},AL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},DL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},FL=RL({preview:IL,input:AL,textarea:DL}),LL=ML({baseStyle:FL}),{definePartsStyle:NL,defineMultiStyleConfig:VL}=Oe(kI.keys),ms=Y("form-control-color"),zL={marginStart:"1",[ms.variable]:"colors.red.500",_dark:{[ms.variable]:"colors.red.300"},color:ms.reference},BL={mt:"2",[ms.variable]:"colors.gray.600",_dark:{[ms.variable]:"colors.whiteAlpha.600"},color:ms.reference,lineHeight:"normal",fontSize:"sm"},jL=NL({container:{width:"100%",position:"relative"},requiredIndicator:zL,helperText:BL}),HL=VL({baseStyle:jL}),{definePartsStyle:WL,defineMultiStyleConfig:UL}=Oe(CI.keys),vs=Y("form-error-color"),qL={[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},KL={marginEnd:"0.5em",[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference},GL=WL({text:qL,icon:KL}),YL=UL({baseStyle:GL}),XL={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},QL={baseStyle:XL},ZL={fontFamily:"heading",fontWeight:"bold"},JL={"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}},e6={baseStyle:ZL,sizes:JL,defaultProps:{size:"xl"}},{defineMultiStyleConfig:t6,definePartsStyle:n6}=Oe(bI.keys),qp=Y("breadcrumb-link-decor"),r6={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:qp.reference,[qp.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[qp.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},o6=n6({link:r6}),i6=t6({baseStyle:o6}),s6={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"}}},bP=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:Q("gray.800","whiteAlpha.900")(e),_hover:{bg:Q("gray.100","whiteAlpha.200")(e)},_active:{bg:Q("gray.200","whiteAlpha.300")(e)}};const r=Rs(`${t}.200`,.12)(n),o=Rs(`${t}.200`,.24)(n);return{color:Q(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Q(`${t}.50`,r)(e)},_active:{bg:Q(`${t}.100`,o)(e)}}},a6=e=>{const{colorScheme:t}=e,n=Q("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ft(bP,e)}},l6={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},u6=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=Q("gray.100","whiteAlpha.200")(e);return{bg:l,color:Q("gray.800","whiteAlpha.900")(e),_hover:{bg:Q("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:Q("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=l6[n])!=null?t:{},a=Q(r,`${n}.200`)(e);return{bg:a,color:Q(o,"gray.800")(e),_hover:{bg:Q(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:Q(s,`${n}.400`)(e)}}},c6=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Q(`${t}.700`,`${t}.500`)(e)}}},d6={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},f6={ghost:bP,outline:a6,solid:u6,link:c6,unstyled:d6},p6={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"}},h6={baseStyle:s6,variants:f6,sizes:p6,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ai,defineMultiStyleConfig:m6}=Oe(zI.keys),hd=Y("card-bg"),Ar=Y("card-padding"),SP=Y("card-shadow"),gc=Y("card-radius"),xP=Y("card-border-width","0"),wP=Y("card-border-color"),v6=ai({container:{[hd.variable]:"colors.chakra-body-bg",backgroundColor:hd.reference,boxShadow:SP.reference,borderRadius:gc.reference,color:"chakra-body-text",borderWidth:xP.reference,borderColor:wP.reference},body:{padding:Ar.reference,flex:"1 1 0%"},header:{padding:Ar.reference},footer:{padding:Ar.reference}}),g6={sm:ai({container:{[gc.variable]:"radii.base",[Ar.variable]:"space.3"}}),md:ai({container:{[gc.variable]:"radii.md",[Ar.variable]:"space.5"}}),lg:ai({container:{[gc.variable]:"radii.xl",[Ar.variable]:"space.7"}})},y6={elevated:ai({container:{[SP.variable]:"shadows.base",_dark:{[hd.variable]:"colors.gray.700"}}}),outline:ai({container:{[xP.variable]:"1px",[wP.variable]:"colors.chakra-border-color"}}),filled:ai({container:{[hd.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ar.variable]:0},header:{[Ar.variable]:0},footer:{[Ar.variable]:0}}},b6=m6({baseStyle:v6,variants:y6,sizes:g6,defaultProps:{variant:"elevated",size:"md"}}),Ua=it("close-button-size"),aa=it("close-button-bg"),S6={w:[Ua.reference],h:[Ua.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[aa.variable]:"colors.blackAlpha.100",_dark:{[aa.variable]:"colors.whiteAlpha.100"}},_active:{[aa.variable]:"colors.blackAlpha.200",_dark:{[aa.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:aa.reference},x6={lg:{[Ua.variable]:"sizes.10",fontSize:"md"},md:{[Ua.variable]:"sizes.8",fontSize:"xs"},sm:{[Ua.variable]:"sizes.6",fontSize:"2xs"}},w6={baseStyle:S6,sizes:x6,defaultProps:{size:"md"}},{variants:k6,defaultProps:C6}=Ha,P6={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ke.bg.reference,color:Ke.color.reference,boxShadow:Ke.shadow.reference},E6={baseStyle:P6,variants:k6,defaultProps:C6},T6={w:"100%",mx:"auto",maxW:"prose",px:"4"},_6={baseStyle:T6},$6={opacity:.6,borderColor:"inherit"},O6={borderStyle:"solid"},R6={borderStyle:"dashed"},M6={solid:O6,dashed:R6},I6={baseStyle:$6,variants:M6,defaultProps:{variant:"solid"}},{definePartsStyle:A6,defineMultiStyleConfig:D6}=Oe(vI.keys),F6={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},L6={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},N6={pt:"2",px:"4",pb:"5"},V6={fontSize:"1.25em"},z6=A6({container:F6,button:L6,panel:N6,icon:V6}),B6=D6({baseStyle:z6}),{definePartsStyle:ql,defineMultiStyleConfig:j6}=Oe(gI.keys),fn=Y("alert-fg"),jr=Y("alert-bg"),H6=ql({container:{bg:jr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function o0(e){const{theme:t,colorScheme:n}=e,r=Rs(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var W6=ql(e=>{const{colorScheme:t}=e,n=o0(e);return{container:{[fn.variable]:`colors.${t}.600`,[jr.variable]:n.light,_dark:{[fn.variable]:`colors.${t}.200`,[jr.variable]:n.dark}}}}),U6=ql(e=>{const{colorScheme:t}=e,n=o0(e);return{container:{[fn.variable]:`colors.${t}.600`,[jr.variable]:n.light,_dark:{[fn.variable]:`colors.${t}.200`,[jr.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:fn.reference}}}),q6=ql(e=>{const{colorScheme:t}=e,n=o0(e);return{container:{[fn.variable]:`colors.${t}.600`,[jr.variable]:n.light,_dark:{[fn.variable]:`colors.${t}.200`,[jr.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:fn.reference}}}),K6=ql(e=>{const{colorScheme:t}=e;return{container:{[fn.variable]:"colors.white",[jr.variable]:`colors.${t}.600`,_dark:{[fn.variable]:"colors.gray.900",[jr.variable]:`colors.${t}.200`},color:fn.reference}}}),G6={subtle:W6,"left-accent":U6,"top-accent":q6,solid:K6},Y6=j6({baseStyle:H6,variants:G6,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:kP,defineMultiStyleConfig:X6}=Oe(yI.keys),gs=Y("avatar-border-color"),qa=Y("avatar-bg"),Cl=Y("avatar-font-size"),Ms=Y("avatar-size"),Q6={borderRadius:"full",border:"0.2em solid",borderColor:gs.reference,[gs.variable]:"white",_dark:{[gs.variable]:"colors.gray.800"}},Z6={bg:qa.reference,fontSize:Cl.reference,width:Ms.reference,height:Ms.reference,lineHeight:"1",[qa.variable]:"colors.gray.200",_dark:{[qa.variable]:"colors.whiteAlpha.400"}},J6=e=>{const{name:t,theme:n}=e,r=t?sA({string:t}):"colors.gray.400",o=oA(r)(n);let i="white";return o||(i="gray.800"),{bg:qa.reference,fontSize:Cl.reference,color:i,borderColor:gs.reference,verticalAlign:"top",width:Ms.reference,height:Ms.reference,"&:not([data-loaded])":{[qa.variable]:r},[gs.variable]:"colors.white",_dark:{[gs.variable]:"colors.gray.800"}}},eN={fontSize:Cl.reference,lineHeight:"1"},tN=kP(e=>({badge:Ft(Q6,e),excessLabel:Ft(Z6,e),container:Ft(J6,e),label:eN}));function eo(e){const t=e!=="100%"?pP[e]:void 0;return kP({container:{[Ms.variable]:t??e,[Cl.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ms.variable]:t??e,[Cl.variable]:`calc(${t??e} / 2.5)`}})}var nN={"2xs":eo(4),xs:eo(6),sm:eo(8),md:eo(12),lg:eo(16),xl:eo(24),"2xl":eo(32),full:eo("100%")},rN=X6({baseStyle:tN,sizes:nN,defaultProps:{size:"md"}}),oN={Accordion:B6,Alert:Y6,Avatar:rN,Badge:Ha,Breadcrumb:i6,Button:h6,Checkbox:pd,CloseButton:w6,Code:E6,Container:_6,Divider:I6,Drawer:OL,Editable:LL,Form:HL,FormError:YL,FormLabel:QL,Heading:e6,Input:ye,Kbd:SF,Link:wF,List:TF,Menu:NF,Modal:YF,NumberInput:oL,PinInput:lL,Popover:bL,Progress:ED,Radio:VD,Select:qD,Skeleton:GD,SkipLink:XD,Slider:aF,Spinner:cF,Stat:yF,Switch:wA,Table:$A,Tabs:WA,Tag:rD,Textarea:mD,Tooltip:yD,Card:b6,Stepper:mI},iN={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"}}},sN={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"}}},aN="ltr",lN={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},CP={semanticTokens:iN,direction:aN,...fI,components:oN,styles:sN,config:lN};function ka(e){return typeof e=="function"}function uN(...e){return t=>e.reduce((n,r)=>r(n),t)}var cN=e=>function(...n){let r=[...n],o=n[n.length-1];return jM(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,uN(...r.map(i=>s=>ka(i)?i(s):dN(s,i)))(o)},fee=cN(CP);function dN(...e){return _n({},...e,PP)}function PP(e,t,n,r){if((ka(e)||ka(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=ka(e)?e(...o):e,s=ka(t)?t(...o):t;return _n({},i,s,PP)}}function fN(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var pN=fN();function hN(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function mN(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},EP=vN(mN);function TP(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var _P=e=>TP(e,t=>t!=null);function gN(e){return typeof e=="function"}function $P(e,...t){return gN(e)?e(...t):e}function yN(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var bN=typeof Element<"u",SN=typeof Map=="function",xN=typeof Set=="function",wN=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function yc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!yc(e[r],t[r]))return!1;return!0}var i;if(SN&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!yc(r.value[1],t.get(r.value[0])))return!1;return!0}if(xN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(wN&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(bN&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!yc(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var kN=function(t,n){try{return yc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const CN=Kd(kN);function OP(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=rP(),a=e?EP(i,`components.${e}`):void 0,l=r||a,u=_n({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},_P(hN(o,["children"]))),c=g.useRef({});if(l){const f=VM(l)(u);CN(c.current,f)||(c.current=f)}return c.current}function en(e,t={}){return OP(e,t)}function ut(e,t={}){return OP(e,t)}var PN=new Set([...TM,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),EN=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function TN(e){return EN.has(e)||!PN.has(e)}function _N(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function $N(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var ON=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,RN=B2(function(e){return ON.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),MN=RN,IN=function(t){return t!=="theme"},Qb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?MN:IN},Zb=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},AN=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Wg(n,r,o),X2(function(){return Ug(n,r,o)}),null},DN=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Zb(t,n,r),l=a||Qb(o),u=!l("as");return function(){var c=arguments,d=r&&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:n,css:r,__css:o,sx:i,...s}=t,a=TP(s,(d,f)=>$M(f)),l=$P(e,t),u=_N({},o,l,_P(a),i),c=cP(u)(t.theme);return r?[c,r]:c};function Kp(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=TN);const o=NN({baseStyle:n}),i=LN(e,r)(o);return Un.forwardRef(function(l,u){const{colorMode:c,forced:d}=Ef();return Un.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function VN(){const e=new Map;return new Proxy(Kp,{apply(t,n,r){return Kp(...r)},get(t,n){return e.has(n)||e.set(n,Kp(n)),e.get(n)}})}var A=VN();function U(e){return g.forwardRef(e)}function RP(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=g.createContext(void 0);o.displayName=r;function i(){var s;const a=g.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function zN(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=g.useMemo(()=>EM(n),[n]);return w.jsxs(Q5,{theme:o,children:[w.jsx(BN,{root:t}),r]})}function BN({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(Pf,{styles:n=>({[t]:n.__cssVars})})}RP({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function jN(e){return RP({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function HN(){const{colorMode:e}=Ef();return w.jsx(Pf,{styles:t=>{const n=EP(t,"styles.global"),r=$P(n,{theme:t,colorMode:e});return r?cP(r)(t):void 0}})}var i0=g.createContext({getDocument(){return document},getWindow(){return window}});i0.displayName="EnvironmentContext";function WN({defer:e}={}){const[,t]=g.useReducer(n=>n+1,0);return Ir(()=>{e&&t()},[e]),g.useContext(i0)}function MP(e){const{children:t,environment:n,disabled:r}=e,o=g.useRef(null),i=g.useMemo(()=>n||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[n]),s=!r||!n;return w.jsxs(i0.Provider,{value:i,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}MP.displayName="EnvironmentProvider";var UN=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=w.jsx(MP,{environment:a,disabled:u,children:t});return w.jsx(zN,{theme:s,cssVarsRoot:l,children:w.jsxs(nP,{colorModeManager:n,options:s.config,children:[i?w.jsx(r3,{scope:o}):w.jsx(n3,{}),!c&&w.jsx(HN,{}),r?w.jsx(eP,{zIndex:r,children:d}):d]})})},qN=(e,t)=>e.find(n=>n.id===t);function eS(e,t){const n=IP(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function IP(e,t){for(const[n,r]of Object.entries(e))if(qN(r,t))return n}function KN(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function GN(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}function Rn(e,t=[]){const n=g.useRef(e);return g.useEffect(()=>{n.current=e}),g.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function YN(e,t){const n=Rn(e);g.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Pl(e,t){const n=g.useRef(!1),r=g.useRef(!1);g.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),g.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const s0=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Rf=g.createContext({}),Kl=g.createContext(null),a0=typeof document<"u",l0=a0?g.useLayoutEffect:g.useEffect,AP=g.createContext({strict:!1}),Mf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),XN="framerAppearId",DP="data-"+Mf(XN),QN={skipAnimations:!1,useManualTiming:!1};class tS{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 n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ZN(e){let t=new tS,n=new tS,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;un=!0,s=$u.reduce((v,y)=>(v[y]=ZN(i),v),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const v=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(v-o.timestamp,JN),1),o.timestamp=v,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:$u.reduce((v,y)=>{const b=s[y];return v[y]=(x,k=!1,P=!1)=>(n||m(),b.schedule(x,k,P)),v},{}),cancel:v=>{for(let y=0;y<$u.length;y++)s[$u[y]].cancel(v)},state:o,steps:s}}const{schedule:u0,cancel:pee}=FP(queueMicrotask,!1);function ns(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const LP=g.createContext({});let nS=!1;function eV(e,t,n,r,o){const{visualElement:i}=g.useContext(Rf),s=g.useContext(AP),a=g.useContext(Kl),l=g.useContext(s0).reducedMotion,u=g.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=g.useContext(LP);c&&!c.projection&&o&&(c.type==="html"||c.type==="svg")&&nV(u.current,n,o,d),g.useInsertionEffect(()=>{c&&c.update(n,a)});const f=g.useRef(!!(n[DP]&&!window.HandoffComplete));return l0(()=>{c&&(c.updateFeatures(),u0.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,nS||(nS=!0,queueMicrotask(tV))))}),c}function tV(){window.HandoffComplete=!0}function nV(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:NP(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ns(a),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function NP(e){if(e)return e.options.allowProjection!==!1?e.projection:NP(e.parent)}function rV(e,t,n){return g.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ns(n)&&(n.current=r))},[t])}function El(e){return typeof e=="string"||Array.isArray(e)}function Tl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const c0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d0=["initial",...c0];function If(e){return Tl(e.animate)||d0.some(t=>El(e[t]))}function VP(e){return!!(If(e)||e.variants)}function oV(e,t){if(If(e)){const{initial:n,animate:r}=e;return{initial:n===!1||El(n)?n:void 0,animate:El(r)?r:void 0}}return e.inherit!==!1?t:{}}function iV(e){const{initial:t,animate:n}=oV(e,g.useContext(Rf));return g.useMemo(()=>({initial:t,animate:n}),[rS(t),rS(n)])}function rS(e){return Array.isArray(e)?e.join(" "):e}const oS={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"]},Is={};for(const e in oS)Is[e]={isEnabled:t=>oS[e].some(n=>!!t[n])};function sV(e){for(const t in e)Is[t]={...Is[t],...e[t]}}const f0=g.createContext({}),aV=Symbol.for("motionComponentSymbol"),Ot=e=>e;let Hm=Ot;function lV({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&sV(e);function i(a,l){let u;const c={...g.useContext(s0),...a,layoutId:uV(a)},{isStatic:d}=c,f=iV(a),p=r(a,d);if(!d&&a0){cV();const m=dV(c);u=m.MeasureLayout,f.visualElement=eV(o,p,c,t,m.ProjectionNode)}return w.jsxs(Rf.Provider,{value:f,children:[u&&f.visualElement?w.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,rV(p,f.visualElement,l),p,d,f.visualElement)]})}const s=g.forwardRef(i);return s[aV]=o,s}function uV({layoutId:e}){const t=g.useContext(f0).id;return t&&e!==void 0?t+"-"+e:e}function cV(e,t){g.useContext(AP).strict}function dV(e){const{drag:t,layout:n}=Is;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fV(e){function t(r,o={}){return lV(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const pV=["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 p0(e){return typeof e!="string"||e.includes("-")?!1:!!(pV.indexOf(e)>-1||/[A-Z]/u.test(e))}const vd={};function hV(e){Object.assign(vd,e)}const Gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Io=new Set(Gl);function zP(e,{layout:t,layoutId:n}){return Io.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}const _t=e=>!!(e&&e.getVelocity),mV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vV=Gl.length;function gV(e,t,n){let r="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),jP=BP("--"),yV=BP("var(--"),h0=e=>yV(e)?bV.test(e.split("/*")[0].trim()):!1,bV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,SV=(e,t)=>t&&typeof e=="number"?t.transform(e):e,To=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ka={...Us,transform:e=>To(0,1,e)},Ou={...Us,default:1},Ga=e=>Math.round(e*1e5)/1e5,m0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,xV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,wV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Yl(e){return typeof e=="string"}function kV(e){return e==null}const Xl=e=>({test:t=>Yl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=Xl("deg"),vr=Xl("%"),J=Xl("px"),CV=Xl("vh"),PV=Xl("vw"),iS={...vr,parse:e=>vr.parse(e)/100,transform:e=>vr.transform(e*100)},sS={...Us,transform:Math.round},HP={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:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ou,scaleX:Ou,scaleY:Ou,scaleZ:Ou,skew:to,skewX:to,skewY:to,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Ka,originX:iS,originY:iS,originZ:J,zIndex:sS,backgroundPositionX:J,backgroundPositionY:J,fillOpacity:Ka,strokeOpacity:Ka,numOctaves:sS};function v0(e,t,n){const{style:r,vars:o,transform:i,transformOrigin:s}=e;let a=!1,l=!1,u=!0;for(const c in t){const d=t[c];if(jP(c)){o[c]=d;continue}const f=HP[c],p=SV(d,f);if(Io.has(c)){if(a=!0,i[c]=p,!u)continue;d!==(f.default||0)&&(u=!1)}else c.startsWith("origin")?(l=!0,s[c]=p):r[c]=p}if(t.transform||(a||n?r.transform=gV(e.transform,u,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:f=0}=s;r.transformOrigin=`${c} ${d} ${f}`}}const g0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WP(e,t,n){for(const r in t)!_t(t[r])&&!zP(r,n)&&(e[r]=t[r])}function EV({transformTemplate:e},t){return g.useMemo(()=>{const n=g0();return v0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TV(e,t){const n=e.style||{},r={};return WP(r,n,e),Object.assign(r,EV(e,t)),r}function _V(e,t){const n={},r=TV(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const $V=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function gd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$V.has(e)}let UP=e=>!gd(e);function OV(e){e&&(UP=t=>t.startsWith("on")?!gd(t):e(t))}try{OV(require("@emotion/is-prop-valid").default)}catch{}function RV(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(UP(o)||n===!0&&gd(o)||!t&&!gd(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function aS(e,t,n){return typeof e=="string"?e:J.transform(t+n*e)}function MV(e,t,n){const r=aS(t,e.x,e.width),o=aS(n,e.y,e.height);return`${r} ${o}`}const IV={offset:"stroke-dashoffset",array:"stroke-dasharray"},AV={offset:"strokeDashoffset",array:"strokeDasharray"};function DV(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?IV:AV;e[i.offset]=J.transform(-r);const s=J.transform(t),a=J.transform(n);e[i.array]=`${s} ${a}`}function y0(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(v0(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=MV(m,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&DV(f,s,a,l,!1)}const qP=()=>({...g0(),attrs:{}}),b0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FV(e,t,n,r){const o=g.useMemo(()=>{const i=qP();return y0(i,t,b0(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};WP(i,e.style,e),o.style={...i,...o.style}}return o}function LV(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(p0(n)?FV:_V)(r,i,s,n),u=RV(r,typeof n=="string",e),c=n!==g.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=g.useMemo(()=>_t(d)?d.get():d,[d]);return g.createElement(n,{...c,children:f})}}function KP(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const GP=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 YP(e,t,n,r){KP(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(GP.has(o)?o:Mf(o),t.attrs[o])}function S0(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(_t(o[s])||t.style&&_t(t.style[s])||zP(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function XP(e,t,n){const r=S0(e,t,n);for(const o in e)if(_t(e[o])||_t(t[o])){const i=Gl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function lS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function x0(e,t,n,r){if(typeof t=="function"){const[o,i]=lS(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=lS(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function QP(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wm=e=>Array.isArray(e),NV=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VV=e=>Wm(e)?e[e.length-1]||0:e;function bc(e){const t=_t(e)?e.get():e;return NV(t)?t.toValue():t}const ZP=new Set(["opacity","clipPath","filter","transform"]);function JP(e){if(Io.has(e))return"transform";if(ZP.has(e))return Mf(e)}function Af(e,t){e.indexOf(t)===-1&&e.push(t)}function Df(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zV({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:jV(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const eE=e=>(t,n)=>{const r=g.useContext(Rf),o=g.useContext(Kl),i=()=>zV(e,t,r,o,n);return n?i():QP(i)};function BV(e,t){const n=JP(t);n&&Af(e,n)}function uS(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const y in S){let b=S[y];if(Array.isArray(b)){const x=m?b.length-1:0;b=b[x]}b!==null&&(s[y]=b)}for(const y in v)s[y]=v[y]}),l&&(d&&c!==!1&&!Tl(d)&&uS(e,d,S=>{for(const v in S)BV(a,v)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:xe,cancel:Hr,state:pt,steps:Gp}=FP(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ot,!0),HV={useVisualState:eE({scrapeMotionValuesFromProps:XP,createRenderState:qP,onMount:(e,t,{renderState:n,latestValues:r})=>{xe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),xe.render(()=>{y0(n,r,b0(t.tagName),e.transformTemplate),YP(t,n)})}})},WV={useVisualState:eE({applyWillChange:!0,scrapeMotionValuesFromProps:S0,createRenderState:g0})};function UV(e,{forwardMotionProps:t=!1},n,r){return{...p0(e)?HV:WV,preloadedFeatures:n,useRender:LV(t),createVisualElement:r,Component:e}}function Rr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ff(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const qV=e=>t=>tE(t)&&e(t,Ff(t));function Dr(e,t,n,r){return Rr(e,t,qV(n),r)}const KV=(e,t)=>n=>t(e(n)),Fr=(...e)=>e.reduce(KV);function nE(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const cS=nE("dragHorizontal"),dS=nE("dragVertical");function rE(e){let t=!1;if(e==="y")t=dS();else if(e==="x")t=cS();else{const n=cS(),r=dS();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function oE(){const e=rE(!0);return e?(e(),!1):!0}class Ao{constructor(t){this.isMounted=!1,this.node=t}update(){}}function fS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||oE())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&xe.postRender(()=>l(i,s))};return Dr(e.current,n,o,{passive:!e.getProps()[r]})}class GV extends Ao{mount(){this.unmount=Fr(fS(this.node,!0),fS(this.node,!1))}unmount(){}}class YV extends Ao{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=Fr(Rr(this.node.current,"focus",()=>this.onFocus()),Rr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const iE=(e,t)=>t?e===t?!0:iE(e,t.parentElement):!1;function Yp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ff(n))}class XV extends Ao{constructor(){super(...arguments),this.removeStartListeners=Ot,this.removeEndListeners=Ot,this.removeAccessibleListeners=Ot,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Dr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!iE(this.node.current,a.target)?c:u;f&&xe.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Dr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Fr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Yp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&xe.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Rr(this.node.current,"keyup",s),Yp("down",(a,l)=>{this.startPress(a,l)})},n=Rr(this.node.current,"keydown",t),r=()=>{this.isPressing&&Yp("cancel",(i,s)=>this.cancelPress(i,s))},o=Rr(this.node.current,"blur",r);this.removeAccessibleListeners=Fr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&xe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!oE()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&xe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Dr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Rr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Fr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Um=new WeakMap,Xp=new WeakMap,QV=e=>{const t=Um.get(e.target);t&&t(e)},ZV=e=>{e.forEach(QV)};function JV({root:e,...t}){const n=e||document;Xp.has(n)||Xp.set(n,{});const r=Xp.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ZV,{root:e,...t})),r[o]}function ez(e,t,n){const r=JV(t);return Um.set(e,n),r.observe(e),()=>{Um.delete(e),r.unobserve(e)}}const tz={some:0,all:1};class nz extends Ao{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:tz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return ez(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rz(t,n))&&this.startObserver()}unmount(){}}function rz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oz={inView:{Feature:nz},tap:{Feature:XV},focus:{Feature:YV},hover:{Feature:GV}};function sE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,Lr=e=>e/1e3,iz={type:"spring",stiffness:500,damping:25,restSpeed:10},sz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),az={type:"keyframes",duration:.8},lz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uz=(e,{keyframes:t})=>t.length>2?az:Io.has(e)?e.startsWith("scale")?sz(t[1]):iz:lz;function cz({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function w0(e,t){return e[t]||e.default||e}const dz=e=>e!==null;function Nf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(dz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let Sc;function fz(){Sc=void 0}const Co={now:()=>(Sc===void 0&&Co.set(pt.isProcessing||QN.useManualTiming?pt.timestamp:performance.now()),Sc),set:e=>{Sc=e,queueMicrotask(fz)}},aE=e=>/^0[^.\s]+$/u.test(e);function pz(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||aE(e):!0}const lE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mz(e){const t=hz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function uE(e,t,n=1){const[r,o]=mz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return lE(s)?parseFloat(s):s}return h0(o)?uE(o,t,n+1):o}const vz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pS=e=>e===Us||e===J,hS=(e,t)=>parseFloat(e.split(", ")[t]),mS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return hS(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?hS(i[1],e):0}},gz=new Set(["x","y","z"]),yz=Gl.filter(e=>!gz.has(e));function bz(e){const t=[];return yz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const As={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mS(4,13),y:mS(5,14)};As.translateX=As.x;As.translateY=As.y;const cE=e=>t=>t.test(e),Sz={test:e=>e==="auto",parse:e=>e},dE=[Us,J,vr,to,PV,CV,Sz],vS=e=>dE.find(cE(e)),li=new Set;let qm=!1,Km=!1;function fE(){if(Km){const e=Array.from(li).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=bz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Km=!1,qm=!1,li.forEach(e=>e.complete()),li.clear()}function pE(){li.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Km=!0)})}function xz(){pE(),fE()}class k0{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(li.add(this),qm||(qm=!0,xe.read(pE),xe.resolveKeyframes(fE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Yl(n)&&wV.test(n)&&n.startsWith(e)||t&&!kV(n)&&Object.prototype.hasOwnProperty.call(n,t)),hE=(e,t,n)=>r=>{if(!Yl(r))return r;const[o,i,s,a]=r.match(m0);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},wz=e=>To(0,255,e),Qp={...Us,transform:e=>Math.round(wz(e))},Zo={test:C0("rgb","red"),parse:hE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qp.transform(e)+", "+Qp.transform(t)+", "+Qp.transform(n)+", "+Ga(Ka.transform(r))+")"};function kz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Gm={test:C0("#"),parse:kz,transform:Zo.transform},rs={test:C0("hsl","hue"),parse:hE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vr.transform(Ga(t))+", "+vr.transform(Ga(n))+", "+Ga(Ka.transform(r))+")"},Et={test:e=>Zo.test(e)||Gm.test(e)||rs.test(e),parse:e=>Zo.test(e)?Zo.parse(e):rs.test(e)?rs.parse(e):Gm.parse(e),transform:e=>Yl(e)?e:e.hasOwnProperty("red")?Zo.transform(e):rs.transform(e)};function Cz(e){var t,n;return isNaN(e)&&Yl(e)&&(((t=e.match(m0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(xV))===null||n===void 0?void 0:n.length)||0)>0}const mE="number",vE="color",Pz="var",Ez="var(",gS="${}",Tz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _l(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Tz,l=>(Et.test(l)?(r.color.push(i),o.push(vE),n.push(Et.parse(l))):l.startsWith(Ez)?(r.var.push(i),o.push(Pz),n.push(l)):(r.number.push(i),o.push(mE),n.push(parseFloat(l))),++i,gS)).split(gS);return{values:n,split:a,indexes:r,types:o}}function gE(e){return _l(e).values}function yE(e){const{split:t,types:n}=_l(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function $z(e){const t=gE(e);return yE(e)(t.map(_z))}const _o={test:Cz,parse:gE,createTransformer:yE,getAnimatableNone:$z},Oz=new Set(["brightness","contrast","saturate","opacity"]);function Rz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m0)||[];if(!r)return e;const o=n.replace(r,"");let i=Oz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Mz=/\b([a-z-]*)\(.*?\)/gu,Ym={..._o,getAnimatableNone:e=>{const t=e.match(Mz);return t?t.map(Rz).join(" "):e}},Iz={...HP,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Ym,WebkitFilter:Ym},P0=e=>Iz[e];function bE(e,t){let n=P0(e);return n!==Ym&&(n=_o),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Az=new Set(["auto","none","0"]);function Dz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function xE(e){let t;return()=>(t===void 0&&(t=e()),t)}const yS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_o.test(e)||e==="0")&&!e.startsWith("url("));function Fz(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function kE(e,t){return t?e*(1e3/t):0}const Nz=5;function CE(e,t,n){const r=Math.max(t-Nz,0);return kE(n-e(r),t-r)}const Zp=.001,Vz=.01,zz=10,Bz=.05,jz=1;function Hz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=To(Bz,jz,s),e=To(Vz,zz,Lr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=Xm(u,s),m=Math.exp(-d);return Zp-f/p*m},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),h=Xm(Math.pow(u,2),s);return(-o(u)+Zp>0?-1:1)*((f-p)*m)/h}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Zp+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Uz(o,i,a);if(e=ko(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Wz=12;function Uz(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function Gz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!bS(e,Kz)&&bS(e,qz)){const n=Hz(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function PE({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=Gz({...r,velocity:-Lr(r.velocity||0)}),p=d||0,m=l/(2*Math.sqrt(a*u)),h=i-o,S=Lr(Math.sqrt(a/u)),v=Math.abs(h)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let y;if(m<1){const b=Xm(S,m);y=x=>{const k=Math.exp(-m*S*x);return i-k*((p+m*S*h)/b*Math.sin(b*x)+h*Math.cos(b*x))}}else if(m===1)y=b=>i-Math.exp(-S*b)*(h+(p+S*h)*b);else{const b=S*Math.sqrt(m*m-1);y=x=>{const k=Math.exp(-m*S*x),P=Math.min(b*x,300);return i-k*((p+m*S*h)*Math.sinh(P)+b*h*Math.cosh(P))/b}}return{calculatedDuration:f&&c||null,next:b=>{const x=y(b);if(f)s.done=b>=c;else{let k=p;b!==0&&(m<1?k=CE(y,b,x):k=0);const P=Math.abs(k)<=n,C=Math.abs(i-x)<=t;s.done=P&&C}return s.value=s.done?i:x,s}}}function SS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=E=>a!==void 0&&El,m=E=>a===void 0?l:l===void 0||Math.abs(a-E)-h*Math.exp(-E/r),b=E=>v+y(E),x=E=>{const _=y(E),$=b(E);f.done=Math.abs(_)<=u,f.value=f.done?v:$};let k,P;const C=E=>{p(f.value)&&(k=E,P=PE({keyframes:[f.value,m(f.value)],velocity:CE(b,E,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:E=>{let _=!1;return!P&&k===void 0&&(_=!0,x(E),C(E)),k!==void 0&&E>=k?P.next(E-k):(!_&&x(E),f)}}}const EE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Yz=1e-7,Xz=12;function Qz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=EE(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Yz&&++aQz(i,0,1,e,n);return i=>i===0||i===1?i:EE(o(i),t,r)}const Zz=Ql(.42,0,1,1),Jz=Ql(0,0,.58,1),TE=Ql(.42,0,.58,1),eB=e=>Array.isArray(e)&&typeof e[0]!="number",_E=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$E=e=>t=>1-e(1-t),E0=e=>1-Math.sin(Math.acos(e)),OE=$E(E0),tB=_E(E0),RE=Ql(.33,1.53,.69,.99),T0=$E(RE),nB=_E(T0),rB=e=>(e*=2)<1?.5*T0(e):.5*(2-Math.pow(2,-10*(e-1))),xS={linear:Ot,easeIn:Zz,easeInOut:TE,easeOut:Jz,circIn:E0,circInOut:tB,circOut:OE,backIn:T0,backInOut:nB,backOut:RE,anticipate:rB},wS=e=>{if(Array.isArray(e)){Hm(e.length===4);const[t,n,r,o]=e;return Ql(t,n,r,o)}else if(typeof e=="string")return Hm(xS[e]!==void 0),xS[e];return e},$l=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ne=(e,t,n)=>e+(t-e)*n;function Jp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oB({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Jp(l,a,e+1/3),i=Jp(l,a,e),s=Jp(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function yd(e,t){return n=>n>0?t:e}const eh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},iB=[Gm,Zo,rs],sB=e=>iB.find(t=>t.test(e));function kS(e){const t=sB(e);if(!t)return!1;let n=t.parse(e);return t===rs&&(n=oB(n)),n}const CS=(e,t)=>{const n=kS(e),r=kS(t);if(!n||!r)return yd(e,t);const o={...n};return i=>(o.red=eh(n.red,r.red,i),o.green=eh(n.green,r.green,i),o.blue=eh(n.blue,r.blue,i),o.alpha=Ne(n.alpha,r.alpha,i),Zo.transform(o))},Qm=new Set(["none","hidden"]);function aB(e,t){return Qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function lB(e,t){return n=>Ne(e,t,n)}function _0(e){return typeof e=="number"?lB:typeof e=="string"?h0(e)?yd:Et.test(e)?CS:dB:Array.isArray(e)?ME:typeof e=="object"?Et.test(e)?CS:uB:yd}function ME(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>_0(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function cB(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=_o.createTransformer(t),r=_l(e),o=_l(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Qm.has(e)&&!o.values.length||Qm.has(t)&&!r.values.length?aB(e,t):Fr(ME(cB(r,o),o.values),n):yd(e,t)};function IE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ne(e,t,n):_0(e)(e,t)}function fB(e,t,n){const r=[],o=n||IE,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fB(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(To(e[0],e[i-1],u)):l}function hB(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=$l(0,t,r);e.push(Ne(n,1,o))}}function mB(e){const t=[0];return hB(t,e.length-1),t}function vB(e,t){return e.map(n=>n*t)}function gB(e,t){return e.map(()=>t||TE).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=eB(r)?r.map(wS):wS(r),i={done:!1,value:t[0]},s=vB(n&&n.length===t.length?n:mB(t),e),a=pB(s,t,{ease:Array.isArray(o)?o:gB(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const PS=2e4;function yB(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=PS?1/0:t}const bB=e=>{const t=({timestamp:n})=>e(n);return{start:()=>xe.update(t,!0),stop:()=>Hr(t),now:()=>pt.isProcessing?pt.timestamp:Co.now()}},SB={decay:SS,inertia:SS,tween:bd,keyframes:bd,spring:PE},xB=e=>e/100;class $0 extends wE{constructor({KeyframeResolver:t=k0,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new t(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=SB[n]||bd;let l,u;a!==bd&&typeof t[0]!="number"&&(l=Fr(xB,IE(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=yB(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:h,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let b=this.currentTime,x=i;if(p){const E=Math.min(this.currentTime,c)/d;let _=Math.floor(E),$=E%1;!$&&E>=1&&($=1),$===1&&_--,_=Math.min(_,p+1),!!(_%2)&&(m==="reverse"?($=1-$,h&&($-=h/d)):m==="mirror"&&(x=s)),b=To(0,1,$)*d}const k=y?{done:!1,value:l[0]}:x.next(b);a&&(k.value=a(k.value));let{done:P}=k;!y&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return C&&o!==void 0&&(k.value=Nf(l,this.options,o)),S&&S(k.value),C&&this.finish(),k}get duration(){const{resolved:t}=this;return t?Lr(t.calculatedDuration):0}get time(){return Lr(this.currentTime)}set time(t){t=ko(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Lr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=bB,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const AE=e=>Array.isArray(e)&&typeof e[0]=="number";function DE(e){return!!(!e||typeof e=="string"&&e in O0||AE(e)||Array.isArray(e)&&e.every(DE))}const Ca=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,O0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ca([0,.65,.55,1]),circOut:Ca([.55,0,1,.45]),backIn:Ca([.31,.01,.66,-.59]),backOut:Ca([.33,1.53,.69,.99])};function wB(e){return FE(e)||O0.easeOut}function FE(e){if(e)return AE(e)?Ca(e):Array.isArray(e)?e.map(wB):O0[e]}function kB(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=FE(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const CB=xE(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sd=10,PB=2e4;function EB(e){return e.type==="spring"||!DE(e.ease)}function TB(e,t){const n=new $0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(EB(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...m}=this.options,h=TB(t,m);t=h.keyframes,t.length===1&&(t[1]=t[0]),o=h.duration,i=h.times,s=h.ease,a="keyframes"}const c=kB(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return c.startTime=Co.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Nf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Lr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Lr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ko(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ot;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ot}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,...f}=this.options,p=new $0({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),m=ko(this.time);u.setWithVelocity(p.sample(m-Sd).value,p.sample(m).value,Sd)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return CB()&&r&&ZP.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function _B(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return xe.update(r,!0),()=>Hr(r)}const $B=xE(()=>window.ScrollTimeline!==void 0);class OB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if($B()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),_B(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const R0=(e,t,n,r={},o,i,s)=>a=>{const l=w0(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ko(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};cz(l)||(d={...d,...uz(e,d)}),d.duration&&(d.duration=ko(d.duration)),d.repeatDelay&&(d.repeatDelay=ko(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Nf(d.keyframes,l);if(p!==void 0)return xe.update(()=>{d.onUpdate(p),d.onComplete()}),new OB([])}return!i&&ES.supports(d)?new ES(d):new $0(d)};class M0{constructor(){this.subscriptions=[]}add(t){return Af(this.subscriptions,t),()=>Df(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class LE{constructor(t,n={}){this.version="11.3.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Co.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Co.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new M0);const r=this.events[t].add(n);return t==="change"?()=>{r(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Co.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>TS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,TS);return kE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ol(e,t){return new LE(e,t)}function MB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ol(n))}function IB(e,t){const n=Lf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=VV(i[s]);MB(e,s,a)}}function NE(e){return e.getProps()[DP]}class AB extends LE{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=JP(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(Df(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function DB(e){return!!(_t(e)&&e.add)}function Zm(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new AB("auto"),e.addValue("willChange",r)),DB(r))return r.add(t)}function FB({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function VE(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&FB(c,d))continue;const m={delay:n,elapsed:0,...w0(s||{},d)};let h=!1;if(window.HandoffAppearAnimations){const v=NE(e);if(v){const y=window.HandoffAppearAnimations(v,d,f,xe);y!==null&&(m.elapsed=y,h=!0)}}f.start(R0(d,f,p,e.shouldReduceMotion&&Io.has(d)?{type:!1}:m,e,h,Zm(e,d)));const S=f.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{xe.update(()=>{a&&IB(e,a)})}),u}function Jm(e,t,n={}){var r;const o=Lf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(VE(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return LB(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function LB(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(NB).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Jm(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function NB(e,t){return e.sortNodePosition(t)}function VB(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Jm(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Jm(e,t,n);else{const o=typeof t=="function"?Lf(e,t,n.custom):t;r=Promise.all(VE(e,o,n))}return r.then(()=>{xe.postRender(()=>{e.notify("AnimationComplete",t)})})}const zB=[...c0].reverse(),BB=c0.length;function jB(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VB(e,n,r)))}function HB(e){let t=jB(e),n=_S(),r=!0;const o=l=>(u,c)=>{var d;const f=Lf(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;u={...u,...h,...m}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let S=0;Sm&&x,_=!1;const $=Array.isArray(b)?b:[b];let M=$.reduce(o(v),{});k===!1&&(M={});const{prevResolvedValues:F={}}=y,W={...F,...M},re=H=>{E=!0,f.has(H)&&(_=!0,f.delete(H)),y.needsAnimating[H]=!0;const N=e.getValue(H);N&&(N.liveStyle=!1)};for(const H in W){const N=M[H],R=F[H];if(p.hasOwnProperty(H))continue;let O=!1;Wm(N)&&Wm(R)?O=!sE(N,R):O=N!==R,O?N!=null?re(H):f.add(H):N!==void 0&&f.has(H)?re(H):y.protectedKeys[H]=!0}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(E=!1),E&&(!P||_)&&d.push(...$.map(H=>({animation:H,options:{type:v}})))}if(f.size){const S={};f.forEach(v=>{const y=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),S[v]=y??null}),d.push({animation:S})}let h=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=_S(),r=!0}}}function WB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sE(t,e):!1}function Lo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _S(){return{animate:Lo(!0),whileInView:Lo(),whileHover:Lo(),whileTap:Lo(),whileDrag:Lo(),whileFocus:Lo(),exit:Lo()}}class UB extends Ao{constructor(t){super(t),t.animationState||(t.animationState=HB(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Tl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let qB=0;class KB extends Ao{constructor(){super(...arguments),this.id=qB++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GB={animation:{Feature:UB},exit:{Feature:KB}},$S=(e,t)=>Math.abs(e-t);function YB(e,t){const n=$S(e.x,t.x),r=$S(e.y,t.y);return Math.sqrt(n**2+r**2)}class zE{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=nh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=YB(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:h}=pt;this.history.push({...m,timestamp:h});const{onStart:S,onMove:v}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=th(f,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=nh(d.type==="pointercancel"?this.lastMoveEventInfo:th(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,S),m&&m(d,S)},!tE(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ff(t),a=th(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=pt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,nh(a,this.history)),this.removeListeners=Fr(Dr(this.contextWindow,"pointermove",this.handlePointerMove),Dr(this.contextWindow,"pointerup",this.handlePointerUp),Dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hr(this.updatePoint)}}function th(e,t){return t?{point:t(e.point)}:e}function OS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nh({point:e},t){return{point:e,delta:OS(e,BE(t)),offset:OS(e,XB(t)),velocity:QB(t,.1)}}function XB(e){return e[0]}function BE(e){return e[e.length-1]}function QB(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=BE(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ko(t)));)n--;if(!r)return{x:0,y:0};const i=Lr(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function hn(e){return e.max-e.min}function ev(e,t=0,n=.01){return Math.abs(e-t)<=n}function RS(e,t,n,r=.5){e.origin=r,e.originPoint=Ne(t.min,t.max,e.origin),e.scale=hn(n)/hn(t),(ev(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ne(n.min,n.max,e.origin)-e.originPoint,(ev(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ya(e,t,n,r){RS(e.x,t.x,n.x,r?r.originX:void 0),RS(e.y,t.y,n.y,r?r.originY:void 0)}function MS(e,t,n){e.min=n.min+t.min,e.max=e.min+hn(t)}function ZB(e,t,n){MS(e.x,t.x,n.x),MS(e.y,t.y,n.y)}function IS(e,t,n){e.min=t.min-n.min,e.max=e.min+hn(t)}function Xa(e,t,n){IS(e.x,t.x,n.x),IS(e.y,t.y,n.y)}function JB(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ne(n,e,r.max):Math.min(e,n)),e}function AS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function e9(e,{top:t,left:n,bottom:r,right:o}){return{x:AS(e.x,n,o),y:AS(e.y,t,r)}}function DS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=$l(t.min,t.max-r,e.min):r>o&&(n=$l(e.min,e.max-o,t.min)),To(0,1,n)}function r9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tv=.35;function o9(e=tv){return e===!1?e=0:e===!0&&(e=tv),{x:FS(e,"left","right"),y:FS(e,"top","bottom")}}function FS(e,t,n){return{min:LS(e,t),max:LS(e,n)}}function LS(e,t){return typeof e=="number"?e:e[t]||0}const NS=()=>({translate:0,scale:1,origin:0,originPoint:0}),os=()=>({x:NS(),y:NS()}),VS=()=>({min:0,max:0}),Ue=()=>({x:VS(),y:VS()});function Cn(e){return[e("x"),e("y")]}function jE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rh(e){return e===void 0||e===1}function nv({scale:e,scaleX:t,scaleY:n}){return!rh(e)||!rh(t)||!rh(n)}function zo(e){return nv(e)||HE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function HE(e){return zS(e.x)||zS(e.y)}function zS(e){return e&&e!=="0%"}function xd(e,t,n){const r=e-n,o=t*r;return n+o}function BS(e,t,n,r,o){return o!==void 0&&(e=xd(e,o,r)),xd(e,n,r)+t}function rv(e,t=0,n=1,r,o){e.min=BS(e.min,t,n,r,o),e.max=BS(e.max,t,n,r,o)}function WE(e,{x:t,y:n}){rv(e.x,t.translate,t.scale,t.originPoint),rv(e.y,n.translate,n.scale,n.originPoint)}function a9(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function so(e,t){e.min=e.min+t,e.max=e.max+t}function HS(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=Ne(e.min,e.max,i);rv(e,t[n],t[r],s,t.scale)}const l9=["x","scaleX","originX"],u9=["y","scaleY","originY"];function is(e,t){HS(e.x,t,l9),HS(e.y,t,u9)}function UE(e,t){return jE(s9(e.getBoundingClientRect(),t))}function c9(e,t,n){const r=UE(e,n),{scroll:o}=t;return o&&(so(r.x,o.offset.x),so(r.y,o.offset.y)),r}const qE=({current:e})=>e?e.ownerDocument.defaultView:null,d9=new WeakMap;class f9{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=Ue(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ff(c,"page").point)},i=(c,d)=>{var f;const{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rE(p),!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),Cn(v=>{let y=this.getAxisMotionValue(v).get()||0;if(vr.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[v];x&&(y=hn(x)*(parseFloat(y)/100))}}this.originPoint[v]=y}),h&&xe.postRender(()=>h(c,d)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=Zm(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(p&&this.currentDirection===null){this.currentDirection=p9(S),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),h&&h(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Cn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zE(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:qE(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&xe.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ru(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=JB(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=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;n&&ns(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=e9(o.layoutBox,n):this.constraints=!1,this.elastic=o9(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Cn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=r9(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ns(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=c9(r,o.root,this.visualElement.getTransformPagePoint());let s=t9(o.layout.layoutBox,i);if(n){const a=n(i9(s));this.hasMutatedConstraints=!!a,a&&(s=jE(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Cn(c=>{if(!Ru(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(R0(t,r,0,n,this.visualElement,!1,Zm(this.visualElement,t)))}stopAnimation(){Cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Cn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Cn(n=>{const{drag:r}=this.getProps();if(!Ru(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ns(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Cn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=n9({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Cn(s=>{if(!Ru(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Ne(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;d9.set(this.visualElement,this);const t=this.visualElement.current,n=Dr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ns(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),xe.read(r);const s=Rr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Cn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=tv,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ru(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function p9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class h9 extends Ao{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new f9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const WS=e=>(t,n)=>{e&&xe.postRender(()=>e(t,n))};class m9 extends Ao{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new zE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:WS(t),onStart:WS(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&xe.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Dr(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 KE(){const e=g.useContext(Kl);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=g.useId();return g.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function v9(){return g9(g.useContext(Kl))}function g9(e){return e===null?!0:e.isPresent}const xc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function US(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const la={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(J.test(e))e=parseFloat(e);else return e;const n=US(e,t.target.x),r=US(e,t.target.y);return`${n}% ${r}%`}},y9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=_o.parse(e);if(o.length>5)return r;const i=_o.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=Ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class b9 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;hV(S9),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||xe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),u0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function GE(e){const[t,n]=KE(),r=g.useContext(f0);return w.jsx(b9,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(LP),isPresent:t,safeToRemove:n})}const S9={borderRadius:{...la,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:la,borderTopRightRadius:la,borderBottomLeftRadius:la,borderBottomRightRadius:la,boxShadow:y9},YE=["TopLeft","TopRight","BottomLeft","BottomRight"],x9=YE.length,qS=e=>typeof e=="string"?parseFloat(e):e,KS=e=>typeof e=="number"||J.test(e);function w9(e,t,n,r,o,i){o?(e.opacity=Ne(0,n.opacity!==void 0?n.opacity:1,k9(r)),e.opacityExit=Ne(t.opacity!==void 0?t.opacity:1,0,C9(r))):i&&(e.opacity=Ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n($l(e,t,r))}function YS(e,t){e.min=t.min,e.max=t.max}function wn(e,t){YS(e.x,t.x),YS(e.y,t.y)}function XS(e,t,n,r,o){return e-=t,e=xd(e,1/n,r),o!==void 0&&(e=xd(e,1/o,r)),e}function P9(e,t=0,n=1,r=.5,o,i=e,s=e){if(vr.test(t)&&(t=parseFloat(t),t=Ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Ne(i.min,i.max,r);e===i&&(a-=t),e.min=XS(e.min,t,n,a,o),e.max=XS(e.max,t,n,a,o)}function QS(e,t,[n,r,o],i,s){P9(e,t[n],t[r],t[o],t.scale,i,s)}const E9=["x","scaleX","originX"],T9=["y","scaleY","originY"];function ZS(e,t,n,r){QS(e.x,t,E9,n?n.x:void 0,r?r.x:void 0),QS(e.y,t,T9,n?n.y:void 0,r?r.y:void 0)}function JS(e){return e.translate===0&&e.scale===1}function QE(e){return JS(e.x)&&JS(e.y)}function _9(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 ZE(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 ex(e){return hn(e.x)/hn(e.y)}class $9{constructor(){this.members=[]}add(t){Af(this.members,t),t.scheduleRender()}remove(t){if(Df(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tx(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const O9=(e,t)=>e.depth-t.depth;class R9{constructor(){this.children=[],this.isDirty=!1}add(t){Af(this.children,t),this.isDirty=!0}remove(t){Df(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(O9),this.isDirty=!1,this.children.forEach(t)}}function M9(e,t){const n=Co.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Hr(r),e(i-t))};return xe.read(r,!0),()=>Hr(r)}function I9(e){window.MotionDebug&&window.MotionDebug.record(e)}function A9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function D9(e,t,n){const r=_t(e)?e:Ol(e);return r.start(R0("",r,t,n)),r.animation}const oh=["","X","Y","Z"],F9={visibility:"hidden"},nx=1e3;let L9=0;const Bo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ih(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function JE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?NE(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?JE(e.parent):!1:!1}function eT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=L9++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Bo.totalNodes=Bo.resolvedTargetDeltas=Bo.recalculatedProjection=0,this.nodes.forEach(z9),this.nodes.forEach(U9),this.nodes.forEach(q9),this.nodes.forEach(B9),I9(Bo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=M9(f,250),xc.hasAnimatedSinceResize&&(xc.hasAnimatedSinceResize=!1,this.nodes.forEach(ox))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||c.getDefaultTransition()||Q9,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!ZE(this.targetLayout,m)||p,b=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const x={...w0(h,"layout"),onPlay:S,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||ox(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Hr(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(K9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&JE(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 k=x/1e3;ix(d.x,s.x,k),ix(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xa(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Y9(this.relativeTarget,this.relativeTargetOrigin,f,k),b&&_9(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ue()),wn(b,this.relativeTarget)),h&&(this.animationValues=c,w9(c,u,this.latestValues,k,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{xc.hasAnimatedSinceResize=!0,this.currentAnimation=D9(0,nx,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&tT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ue();const d=hn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=hn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}wn(a,l),is(a,c),Ya(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new $9),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ih("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rx),this.root.sharedNodes.clear()}}}function N9(e){e.updateLayout()}function V9(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Cn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=hn(f);f.min=r[d].min,f.max=f.min+p}):tT(i,n.layoutBox,r)&&Cn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=hn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=os();Ya(a,r,n.layoutBox);const l=os();s?Ya(l,e.applyTransform(o,!0),n.measuredBox):Ya(l,r,n.layoutBox);const u=!QE(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ue();Xa(m,n.layoutBox,f.layoutBox);const h=Ue();Xa(h,r,p.layoutBox),ZE(m,h)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function z9(e){Bo.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 B9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j9(e){e.clearSnapshot()}function rx(e){e.clearMeasurements()}function H9(e){e.isLayoutDirty=!1}function W9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ox(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function U9(e){e.resolveTargetDelta()}function q9(e){e.calcProjection()}function K9(e){e.resetSkewAndRotation()}function G9(e){e.removeLeadSnapshot()}function ix(e,t,n){e.translate=Ne(t.translate,0,n),e.scale=Ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sx(e,t,n,r){e.min=Ne(t.min,n.min,r),e.max=Ne(t.max,n.max,r)}function Y9(e,t,n,r){sx(e.x,t.x,n.x,r),sx(e.y,t.y,n.y,r)}function X9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Q9={duration:.45,ease:[.4,0,.1,1]},ax=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lx=ax("applewebkit/")&&!ax("chrome/")?Math.round:Ot;function ux(e){e.min=lx(e.min),e.max=lx(e.max)}function Z9(e){ux(e.x),ux(e.y)}function tT(e,t,n){return e==="position"||e==="preserve-aspect"&&!ev(ex(t),ex(n),.2)}const J9=eT({attachResizeListener:(e,t)=>Rr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sh={current:void 0},nT=eT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sh.current){const e=new J9({});e.mount(window),e.setOptions({layoutScroll:!0}),sh.current=e}return sh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ej={pan:{Feature:m9},drag:{Feature:h9,ProjectionNode:nT,MeasureLayout:GE}},ov={current:null},rT={current:!1};function tj(){if(rT.current=!0,!!a0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ov.current=e.matches;e.addListener(t),t()}else ov.current=!1}function nj(e,t,n){for(const r in t){const o=t[r],i=n[r];if(_t(o))e.addValue(r,o);else if(_t(i))e.addValue(r,Ol(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ol(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const cx=new WeakMap,rj=[...dE,Et,_o],oj=e=>rj.find(cE(e)),dx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ij=d0.length;class sj{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,m,h)=>new this.KeyframeResolver(f,p,m,h,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=k0,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=()=>xe.render(this.render,!1,!0);const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=If(n),this.isVariantNode=VP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&_t(p)&&p.set(l[f],!1)}}mount(t){this.current=t,cx.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((n,r)=>this.bindToMotionValue(r,n)),rT.current||tj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ov.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){cx.delete(this.current),this.projection&&this.projection.unmount(),Hr(this.notifyUpdate),Hr(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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=Io.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Is){const n=Is[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ol(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=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);return o!=null&&(typeof o=="string"&&(lE(o)||aE(o))?o=parseFloat(o):!oj(o)&&_o.test(n)&&(o=bE(t,n)),this.setBaseTarget(t,_t(o)?o.get():o)),_t(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=x0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!_t(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new M0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class oT extends sj{constructor(){super(...arguments),this.KeyframeResolver=SE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function aj(e){return window.getComputedStyle(e)}class lj extends oT{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0}readValueFromInstance(t,n){if(Io.has(n)){const r=P0(n);return r&&r.default||0}else{const r=aj(t),o=(jP(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return UE(t,n)}build(t,n,r){v0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return S0(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_t(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){KP(t,n,r,o)}}class uj extends oT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Io.has(n)){const r=P0(n);return r&&r.default||0}return n=GP.has(n)?n:Mf(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ue()}scrapeMotionValuesFromProps(t,n,r){return XP(t,n,r)}build(t,n,r){y0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){YP(t,n,r,o)}mount(t){this.isSVGTag=b0(t.tagName),super.mount(t)}}const cj=(e,t)=>p0(e)?new uj(t):new lj(t,{allowProjection:e!==g.Fragment}),dj={layout:{ProjectionNode:nT,MeasureLayout:GE}},fj={...GB,...oz,...ej,...dj},Xr=fV((e,t)=>UV(e,t,fj,cj));function iT(){const e=g.useRef(!1);return l0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function pj(){const e=iT(),[t,n]=g.useState(0),r=g.useCallback(()=>{e.current&&n(t+1)},[t]);return[g.useCallback(()=>xe.postRender(r),[r]),t]}class hj extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function mj({children:e,isPresent:t}){const n=g.useId(),r=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=g.useContext(s0);return g.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; @@ -347,8 +347,8 @@ Error generating stack: `+i.message+` top: ${l}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),w.jsx(hj,{isPresent:t,childRef:r,sizeRef:o,children:g.cloneElement(e,{ref:r})})}const ah=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=QP(vj),l=g.useId(),u=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return g.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),g.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=w.jsx(mj,{isPresent:n,children:e})),w.jsx(Kl.Provider,{value:u,children:e})};function vj(){return new Map}function gj(e){return g.useEffect(()=>()=>e(),[])}const jo=e=>e.key||"";function yj(e,t){e.forEach(n=>{const r=jo(n);t.set(r,n)})}function bj(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Do=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=g.useContext(f0).forceRender||pj()[0],l=iT(),u=bj(e);let c=u;const d=g.useRef(new Map).current,f=g.useRef(c),p=g.useRef(new Map).current,m=g.useRef(!0);if(l0(()=>{m.current=!1,yj(u,p),f.current=c}),gj(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return w.jsx(w.Fragment,{children:c.map(y=>w.jsx(ah,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:y},jo(y)))});c=[...c];const h=f.current.map(jo),S=u.map(jo),v=h.length;for(let y=0;y{if(S.indexOf(b)!==-1)return;const x=p.get(b);if(!x)return;const k=h.indexOf(b);let P=y;if(!P){const C=()=>{d.delete(b);const E=Array.from(p.keys()).filter(_=>!S.includes(_));if(E.forEach(_=>p.delete(_)),f.current=u.filter(_=>{const $=jo(_);return $===b||E.includes($)}),!d.size){if(l.current===!1)return;a(),r&&r()}};P=w.jsx(ah,{isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:i,mode:s,children:x},jo(x)),d.set(b,P)}c.splice(k,0,P)}),c=c.map(y=>{const b=y.key;return d.has(b)?y:w.jsx(ah,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:y},jo(y))}),w.jsx(w.Fragment,{children:d.size?c:c.map(y=>g.cloneElement(y))})};var Sj={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},sT=g.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=Sj,toastSpacing:c="0.5rem"}=e,[d,f]=g.useState(a),p=v9();Pl(()=>{p||r==null||r()},[p]),Pl(()=>{f(a)},[a]);const m=()=>f(null),h=()=>f(a),S=()=>{p&&o()};g.useEffect(()=>{p&&i&&o()},[p,i,o]),Y6(S,d);const v=g.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=g.useMemo(()=>K6(s),[s]);return w.jsx(Xr.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:h,custom:{position:s},style:y,children:w.jsx(A.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Kt(n,{id:t,onClose:S})})})});sT.displayName="ToastComponent";function xj(e,t){var n;const r=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"}}[r];return(n=i==null?void 0:i[t])!=null?n:r}var fx={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.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"}),w.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"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Qn=U((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Z("chakra-icon",a),d=en("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},m=r??fx.viewBox;if(n&&typeof n!="string")return w.jsx(A.svg,{as:n,...p,...u});const h=s??fx.path;return w.jsx(A.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:h})});Qn.displayName="Icon";function ki(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=g.Children.toArray(e.path),s=U((a,l)=>w.jsx(Qn,{ref:l,viewBox:t,...o,...a,children:i.length?i:w.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function wj(e){return w.jsx(Qn,{viewBox:"0 0 24 24",...e,children:w.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 kj(e){return w.jsx(Qn,{viewBox:"0 0 24 24",...e,children:w.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 px(e){return w.jsx(Qn,{viewBox:"0 0 24 24",...e,children:w.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 Cj=Xn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Vf=U((e,t)=>{const n=en("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Ye(e),u=Z("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${Cj} ${i} linear infinite`,...n};return w.jsx(A.div,{ref:t,__css:c,className:u,...l,children:r&&w.jsx(A.span,{srOnly:!0,children:r})})});Vf.displayName="Spinner";var[Pj,I0]=Ge({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[Ej,A0]=Ge({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),aT={info:{icon:kj,colorScheme:"blue"},warning:{icon:px,colorScheme:"orange"},success:{icon:wj,colorScheme:"green"},error:{icon:px,colorScheme:"red"},loading:{icon:Vf,colorScheme:"blue"}};function Tj(e){return aT[e].colorScheme}function _j(e){return aT[e].icon}var lT=U(function(t,n){const r=A0(),{status:o}=I0(),i={display:"inline",...r.description};return w.jsx(A.div,{ref:n,"data-status":o,...t,className:Z("chakra-alert__desc",t.className),__css:i})});lT.displayName="AlertDescription";function uT(e){const{status:t}=I0(),n=_j(t),r=A0(),o=t==="loading"?r.spinner:r.icon;return w.jsx(A.span,{display:"inherit","data-status":t,...e,className:Z("chakra-alert__icon",e.className),__css:o,children:e.children||w.jsx(n,{h:"100%",w:"100%"})})}uT.displayName="AlertIcon";var cT=U(function(t,n){const r=A0(),{status:o}=I0();return w.jsx(A.div,{ref:n,"data-status":o,...t,className:Z("chakra-alert__title",t.className),__css:r.title})});cT.displayName="AlertTitle";var dT=U(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=Ye(t),a=(r=t.colorScheme)!=null?r:Tj(o),l=ut("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return w.jsx(Pj,{value:{status:o},children:w.jsx(Ej,{value:l,children:w.jsx(A.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:Z("chakra-alert",t.className),__css:u})})})});dT.displayName="Alert";function $j(e){return w.jsx(Qn,{focusable:"false","aria-hidden":!0,...e,children:w.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 D0=U(function(t,n){const r=en("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Ye(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(A.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||w.jsx($j,{width:"1em",height:"1em"})})});D0.displayName="CloseButton";var Oj={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},cr=Rj(Oj);function Rj(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=Mj(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=eS(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:fT(i)}),a})},closeAll:({positions:o}={})=>{r(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=>{r(i=>{const s=IP(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!eS(cr.getState(),o).position}}var hx=0;function Mj(e,t={}){var n,r;hx+=1;const o=(n=t.id)!=null?n:hx,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>cr.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Ij=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return w.jsxs(dT,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[w.jsx(uT,{children:u}),w.jsxs(A.div,{flex:"1",maxWidth:"100%",children:[o&&w.jsx(cT,{id:c==null?void 0:c.title,children:o}),a&&w.jsx(lT,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&w.jsx(D0,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function fT(e={}){const{render:t,toastComponent:n=Ij}=e;return o=>typeof t=="function"?t({...o,...e}):w.jsx(n,{...o,...e})}function Aj(e,t){const n=o=>{var i;return{...t,...o,position:xj((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},r=o=>{const i=n(o),s=fT(i);return cr.notify(s,i)};return r.update=(o,i)=>{cr.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Kt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Kt(i.error,a)}))},r.closeAll=cr.closeAll,r.close=cr.close,r.isActive=cr.isActive,r}var[Dj,Fj]=Ge({name:"ToastOptionsContext",strict:!1}),Lj=e=>{const t=g.useSyncExternalStore(cr.subscribe,cr.getState,cr.getState),{motionVariants:n,component:r=sT,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:G6(a),children:w.jsx(Do,{initial:!1,children:l.map(u=>w.jsx(r,{motionVariants:n,...u},u.id))})},a)});return w.jsx(Hs,{...o,children:s})};function mee(e){const{theme:t}=rP(),n=Fj();return g.useMemo(()=>Aj(t.direction,{...n,...e}),[e,t.direction,n])}var Nj=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return w.jsxs(U6,{theme:r,...i,children:[w.jsx(Dj,{value:o==null?void 0:o.defaultOptions,children:n}),w.jsx(Lj,{...o})]})},vee=Nj(CP),Vj=Object.defineProperty,zj=(e,t,n)=>t in e?Vj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,je=(e,t,n)=>(zj(e,typeof t!="symbol"?t+"":t,n),n);function mx(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Bj=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function vx(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function gx(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var iv=typeof window<"u"?g.useLayoutEffect:g.useEffect,wd=e=>e,jj=class{constructor(){je(this,"descendants",new Map),je(this,"register",e=>{if(e!=null)return Bj(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),je(this,"unregister",e=>{this.descendants.delete(e);const t=mx(Array.from(this.descendants.keys()));this.assignIndex(t)}),je(this,"destroy",()=>{this.descendants.clear()}),je(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),je(this,"count",()=>this.descendants.size),je(this,"enabledCount",()=>this.enabledValues().length),je(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),je(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),je(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),je(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),je(this,"first",()=>this.item(0)),je(this,"firstEnabled",()=>this.enabledItem(0)),je(this,"last",()=>this.item(this.descendants.size-1)),je(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),je(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),je(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),je(this,"next",(e,t=!0)=>{const n=vx(e,this.count(),t);return this.item(n)}),je(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=vx(r,this.enabledCount(),t);return this.enabledItem(o)}),je(this,"prev",(e,t=!0)=>{const n=gx(e,this.count()-1,t);return this.item(n)}),je(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=gx(r,this.enabledCount()-1,t);return this.enabledItem(o)}),je(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=mx(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)})}};function Wj(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 mn(...e){return t=>{e.forEach(n=>{Wj(n,t)})}}function Hj(...e){return g.useMemo(()=>mn(...e),e)}function Uj(){const e=g.useRef(new jj);return iv(()=>()=>e.current.destroy()),e.current}var[qj,pT]=Ge({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Kj(e){const t=pT(),[n,r]=g.useState(-1),o=g.useRef(null);iv(()=>()=>{o.current&&t.unregister(o.current)},[]),iv(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=wd(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:mn(i,o)}}function hT(){return[wd(qj),()=>wd(pT()),()=>Uj(),o=>Kj(o)]}function mT(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(f,p)=>f!==p}=e,i=Rn(r),s=Rn(o),[a,l]=g.useState(n),u=t!==void 0,c=u?t:a,d=Rn(f=>{const m=typeof f=="function"?f(c):f;s(c,m)&&(u||l(m),i(m))},[u,i,c,s]);return[c,d]}var Jo={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ua={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function sv(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return ua.slideRight;case"left":return ua.slideLeft;case"bottom":return ua.slideDown;case"top":return ua.slideUp;default:return ua.slideRight}}var ui={enter:{duration:.2,ease:Jo.easeOut},exit:{duration:.1,ease:Jo.easeIn}},Gn={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})},Gj=e=>e!=null&&parseInt(e.toString(),10)>0,yx={exit:{height:{duration:.2,ease:Jo.ease},opacity:{duration:.3,ease:Jo.ease}},enter:{height:{duration:.3,ease:Jo.ease},opacity:{duration:.4,ease:Jo.ease}}},Yj={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{...e&&{opacity:Gj(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(i=n==null?void 0:n.exit)!=null?i:Gn.exit(yx.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(i=n==null?void 0:n.enter)!=null?i:Gn.enter(yx.enter,o)}}},Xj=g.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:a,className:l,transition:u,transitionEnd:c,...d}=e,[f,p]=g.useState(!1);g.useEffect(()=>{const y=setTimeout(()=>{p(!0)});return()=>clearTimeout(y)},[]),kM({condition:Number(i)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(i.toString())>0,h={startingHeight:i,endingHeight:s,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:c==null?void 0:c.enter,exit:r?c==null?void 0:c.exit:{...c==null?void 0:c.exit,display:m?"block":"none"}}},S=r?n:!0,v=n||r?"enter":"exit";return w.jsx(Do,{initial:!1,custom:h,children:S&&w.jsx(Xr.div,{ref:t,...d,className:Z("chakra-collapse",l),style:{overflow:"hidden",display:"block",...a},custom:h,variants:Yj,initial:r?"exit":!1,animate:v,exit:"exit"})})});Xj.displayName="Collapse";var Qj={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Gn.enter(ui.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Gn.exit(ui.exit,n),transitionEnd:t==null?void 0:t.exit}}},vT={initial:"exit",animate:"enter",exit:"exit",variants:Qj},Zj=g.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:a,delay:l,...u}=t,c=o||r?"enter":"exit",d=r?o&&r:!0,f={transition:s,transitionEnd:a,delay:l};return w.jsx(Do,{custom:f,children:d&&w.jsx(Xr.div,{ref:n,className:Z("chakra-fade",i),custom:f,...vT,animate:c,...u})})});Zj.displayName="Fade";var Jj={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(i=n==null?void 0:n.exit)!=null?i:Gn.exit(ui.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Gn.enter(ui.enter,n),transitionEnd:e==null?void 0:e.enter}}},gT={initial:"exit",animate:"enter",exit:"exit",variants:Jj},e8=g.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:a,transition:l,transitionEnd:u,delay:c,...d}=t,f=r?o&&r:!0,p=o||r?"enter":"exit",m={initialScale:s,reverse:i,transition:l,transitionEnd:u,delay:c};return w.jsx(Do,{custom:m,children:f&&w.jsx(Xr.div,{ref:n,className:Z("chakra-offset-slide",a),...gT,animate:p,custom:m,...d})})});e8.displayName="ScaleFade";var t8={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:(i=n==null?void 0:n.exit)!=null?i:Gn.exit(ui.exit,o),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:Gn.enter(ui.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{var s;const a={x:t,y:e};return{opacity:0,transition:(s=n==null?void 0:n.exit)!=null?s:Gn.exit(ui.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Pa={initial:"initial",animate:"enter",exit:"exit",variants:t8},n8=g.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:a=0,offsetY:l=8,transition:u,transitionEnd:c,delay:d,...f}=t,p=r?o&&r:!0,m=o||r?"enter":"exit",h={offsetX:a,offsetY:l,reverse:i,transition:u,transitionEnd:c,delay:d};return w.jsx(Do,{custom:h,children:p&&w.jsx(Xr.div,{ref:n,className:Z("chakra-offset-slide",s),custom:h,...Pa,animate:m,...f})})});n8.displayName="SlideFade";var bx={exit:{duration:.15,ease:Jo.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},r8={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{var o;const{exit:i}=sv({direction:e});return{...i,transition:(o=t==null?void 0:t.exit)!=null?o:Gn.exit(bx.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{var o;const{enter:i}=sv({direction:e});return{...i,transition:(o=n==null?void 0:n.enter)!=null?o:Gn.enter(bx.enter,r),transitionEnd:t==null?void 0:t.enter}}},yT=g.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:a,transition:l,transitionEnd:u,delay:c,motionProps:d,...f}=t,p=sv({direction:r}),m=Object.assign({position:"fixed"},p.position,o),h=i?s&&i:!0,S=s||i?"enter":"exit",v={transitionEnd:u,transition:l,direction:r,delay:c};return w.jsx(Do,{custom:v,children:h&&w.jsx(Xr.div,{...f,ref:n,initial:"exit",className:Z("chakra-slide",a),animate:S,exit:"exit",custom:v,variants:r8,style:m,...d})})});yT.displayName="Slide";var av=U(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return w.jsx("img",{width:r,height:o,ref:n,alt:i,...s})});av.displayName="NativeImage";function o8(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=g.useState("pending");g.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=g.useRef(),f=g.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=h=>{p(),c("loaded"),o==null||o(h)},m.onerror=h=>{p(),c("failed"),i==null||i(h)},d.current=m},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ir(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var i8=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function s8(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var a8=U(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,h=r!==void 0||o!==void 0,S=u!=null||c||!h,v=o8({...t,crossOrigin:d,ignoreFallback:S}),y=i8(v,f),b={ref:n,objectFit:l,objectPosition:a,...S?m:s8(m,["onError","onLoad"])};return y?o||w.jsx(A.img,{as:av,className:"chakra-image__placeholder",src:r,...b}):w.jsx(A.img,{as:av,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...b})});a8.displayName="Image";function F0(e){return g.Children.toArray(e).filter(t=>g.isValidElement(t))}var[gee,l8]=Ge({strict:!1,name:"ButtonGroupContext"});function u8(e){const[t,n]=g.useState(!e);return{ref:g.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function lv(e){const{children:t,className:n,...r}=e,o=g.isValidElement(t)?g.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Z("chakra-button__icon",n);return w.jsx(A.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}lv.displayName="ButtonIcon";function uv(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=w.jsx(Vf,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Z("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=g.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return w.jsx(A.div,{className:l,...a,__css:c,children:o})}uv.displayName="ButtonSpinner";var bT=U((e,t)=>{const n=l8(),r=en("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:h,as:S,...v}=Ye(e),y=g.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:b,type:x}=u8(S),k={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return w.jsxs(A.button,{ref:Hj(t,b),as:S,type:f??x,"data-active":ce(s),"data-loading":ce(i),__css:y,className:Z("chakra-button",h),...v,disabled:o||i,children:[i&&m==="start"&&w.jsx(uv,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||w.jsx(A.span,{opacity:0,children:w.jsx(Sx,{...k})}):w.jsx(Sx,{...k}),i&&m==="end"&&w.jsx(uv,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});bT.displayName="Button";function Sx(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx(lv,{marginEnd:o,children:t}),r,n&&w.jsx(lv,{marginStart:o,children:n})]})}var c8=U((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=g.isValidElement(a)?g.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return w.jsx(bT,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});c8.displayName="IconButton";var[d8,f8]=Ge({name:"CheckboxGroupContext",strict:!1});function xx(e){return e&&$t(e)&&$t(e.target)}function p8(e={}){const{defaultValue:t,value:n,onChange:r,isDisabled:o,isNative:i}=e,s=Rn(r),[a,l]=mT({value:n,defaultValue:t||[],onChange:s}),u=g.useCallback(d=>{if(!a)return;const f=xx(d)?d.target.checked:!a.includes(d),p=xx(d)?d.target.value:d,m=f?[...a,p]:a.filter(h=>String(h)!==String(p));l(m)},[l,a]),c=g.useCallback((d={})=>({...d,[i?"checked":"isChecked"]:a.some(p=>String(d.value)===String(p)),onChange:u}),[u,i,a]);return{value:a,isDisabled:o,onChange:u,setValue:l,getCheckboxProps:c}}function h8(e){const{colorScheme:t,size:n,variant:r,children:o,isDisabled:i}=e,{value:s,onChange:a}=p8(e),l=g.useMemo(()=>({size:n,onChange:a,colorScheme:t,value:s,variant:r,isDisabled:i}),[n,a,t,s,r,i]);return w.jsx(d8,{value:l,children:o})}h8.displayName="CheckboxGroup";function m8(e){const[t,n]=g.useState(e),[r,o]=g.useState(!1);return e!==t&&(o(!0),n(e)),r}function v8(e){return w.jsx(A.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:w.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function g8(e){return w.jsx(A.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:w.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function y8(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?g8:v8;return n||t?w.jsx(A.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:w.jsx(o,{...r})}):null}var[b8,ST]=Ge({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[S8,zf]=Ge({strict:!1,name:"FormControlContext"});function x8(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=g.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=g.useState(!1),[m,h]=g.useState(!1),[S,v]=g.useState(!1),y=g.useCallback((C={},E=null)=>({id:d,...C,ref:mn(E,_=>{_&&h(!0)})}),[d]),b=g.useCallback((C={},E=null)=>({...C,ref:E,"data-focus":ce(S),"data-disabled":ce(o),"data-invalid":ce(r),"data-readonly":ce(i),id:C.id!==void 0?C.id:u,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,S,r,i,u]),x=g.useCallback((C={},E=null)=>({id:c,...C,ref:mn(E,_=>{_&&p(!0)}),"aria-live":"polite"}),[c]),k=g.useCallback((C={},E=null)=>({...C,...s,ref:E,role:"group","data-focus":ce(S),"data-disabled":ce(o),"data-invalid":ce(r),"data-readonly":ce(i)}),[s,o,S,r,i]),P=g.useCallback((C={},E=null)=>({...C,ref:E,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:h,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:x,getRootProps:k,getLabelProps:b,getRequiredIndicatorProps:P}}var w8=U(function(t,n){const r=ut("Form",t),o=Ye(t),{getRootProps:i,htmlProps:s,...a}=x8(o),l=Z("chakra-form-control",t.className);return w.jsx(S8,{value:a,children:w.jsx(b8,{value:r,children:w.jsx(A.div,{...i({},n),className:l,__css:r.container})})})});w8.displayName="FormControl";var k8=U(function(t,n){const r=zf(),o=ST(),i=Z("chakra-form__helper-text",t.className);return w.jsx(A.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});k8.displayName="FormHelperText";var C8=U(function(t,n){var r;const o=en("FormLabel",t),i=Ye(t),{className:s,children:a,requiredIndicator:l=w.jsx(xT,{}),optionalIndicator:u=null,...c}=i,d=zf(),f=(r=d==null?void 0:d.getLabelProps(c,n))!=null?r:{ref:n,...c};return w.jsxs(A.label,{...f,className:Z("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...o},children:[a,d!=null&&d.isRequired?l:u]})});C8.displayName="FormLabel";var xT=U(function(t,n){const r=zf(),o=ST();if(!(r!=null&&r.isRequired))return null;const i=Z("chakra-form__required-indicator",t.className);return w.jsx(A.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});xT.displayName="RequiredIndicator";function L0(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=wT(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":$p(n),"aria-required":$p(o),"aria-readonly":$p(r)}}function wT(e){var t,n,r;const o=zf(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...h}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&S.push(o.feedbackId),o!=null&&o.hasHelpText&&S.push(o.helpTextId),{...h,"aria-describedby":S.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=a??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Ee(o==null?void 0:o.onFocus,p),onBlur:Ee(o==null?void 0:o.onBlur,m)}}var P8={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},E8=()=>typeof document<"u",wx=!1,Zl=null,gi=!1,cv=!1,dv=new Set;function N0(e,t){dv.forEach(n=>n(e,t))}var T8=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function _8(e){return!(e.metaKey||!T8&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function kx(e){gi=!0,_8(e)&&(Zl="keyboard",N0("keyboard",e))}function Oi(e){if(Zl="pointer",e.type==="mousedown"||e.type==="pointerdown"){gi=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;N0("pointer",e)}}function $8(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function O8(e){$8(e)&&(gi=!0,Zl="virtual")}function R8(e){e.target===window||e.target===document||(!gi&&!cv&&(Zl="virtual",N0("virtual",e)),gi=!1,cv=!1)}function M8(){gi=!1,cv=!0}function Cx(){return Zl!=="pointer"}function I8(){if(!E8()||wx)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){gi=!0,e.apply(this,n)},document.addEventListener("keydown",kx,!0),document.addEventListener("keyup",kx,!0),document.addEventListener("click",O8,!0),window.addEventListener("focus",R8,!0),window.addEventListener("blur",M8,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Oi,!0),document.addEventListener("pointermove",Oi,!0),document.addEventListener("pointerup",Oi,!0)):(document.addEventListener("mousedown",Oi,!0),document.addEventListener("mousemove",Oi,!0),document.addEventListener("mouseup",Oi,!0)),wx=!0}function A8(e){I8(),e(Cx());const t=()=>e(Cx());return dv.add(t),()=>{dv.delete(t)}}function D8(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function F8(e={}){const t=wT(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:m,name:h,value:S,tabIndex:v=void 0,"aria-label":y,"aria-labelledby":b,"aria-invalid":x,...k}=e,P=D8(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=Rn(p),E=Rn(a),_=Rn(l),[$,M]=g.useState(!1),[F,H]=g.useState(!1),[re,W]=g.useState(!1),[N,R]=g.useState(!1);g.useEffect(()=>A8(M),[]);const O=g.useRef(null),[D,V]=g.useState(!0),[oe,B]=g.useState(!!c),ee=d!==void 0,j=ee?d:oe,te=g.useCallback(ne=>{if(r||n){ne.preventDefault();return}ee||B(j?ne.target.checked:m?!0:ne.target.checked),C==null||C(ne)},[r,n,j,ee,m,C]);Ir(()=>{O.current&&(O.current.indeterminate=!!m)},[m]),Pl(()=>{n&&H(!1)},[n,H]),Ir(()=>{const ne=O.current;if(!(ne!=null&&ne.form))return;const Pe=()=>{B(!!c)};return ne.form.addEventListener("reset",Pe),()=>{var Be;return(Be=ne.form)==null?void 0:Be.removeEventListener("reset",Pe)}},[]);const ae=n&&!f,we=g.useCallback(ne=>{ne.key===" "&&R(!0)},[R]),Se=g.useCallback(ne=>{ne.key===" "&&R(!1)},[R]);Ir(()=>{if(!O.current)return;O.current.checked!==j&&B(O.current.checked)},[O.current]);const xt=g.useCallback((ne={},Pe=null)=>{const Be=tt=>{F&&tt.preventDefault(),R(!0)};return{...ne,ref:Pe,"data-active":ce(N),"data-hover":ce(re),"data-checked":ce(j),"data-focus":ce(F),"data-focus-visible":ce(F&&$),"data-indeterminate":ce(m),"data-disabled":ce(n),"data-invalid":ce(i),"data-readonly":ce(r),"aria-hidden":!0,onMouseDown:Ee(ne.onMouseDown,Be),onMouseUp:Ee(ne.onMouseUp,()=>R(!1)),onMouseEnter:Ee(ne.onMouseEnter,()=>W(!0)),onMouseLeave:Ee(ne.onMouseLeave,()=>W(!1))}},[N,j,n,F,$,re,m,i,r]),Ln=g.useCallback((ne={},Pe=null)=>({...ne,ref:Pe,"data-active":ce(N),"data-hover":ce(re),"data-checked":ce(j),"data-focus":ce(F),"data-focus-visible":ce(F&&$),"data-indeterminate":ce(m),"data-disabled":ce(n),"data-invalid":ce(i),"data-readonly":ce(r)}),[N,j,n,F,$,re,m,i,r]),Bt=g.useCallback((ne={},Pe=null)=>({...P,...ne,ref:mn(Pe,Be=>{Be&&V(Be.tagName==="LABEL")}),onClick:Ee(ne.onClick,()=>{var Be;D||((Be=O.current)==null||Be.click(),requestAnimationFrame(()=>{var tt;(tt=O.current)==null||tt.focus({preventScroll:!0})}))}),"data-disabled":ce(n),"data-checked":ce(j),"data-invalid":ce(i)}),[P,n,j,i,D]),pe=g.useCallback((ne={},Pe=null)=>({...ne,ref:mn(O,Pe),type:"checkbox",name:h,value:S,id:s,tabIndex:v,onChange:Ee(ne.onChange,te),onBlur:Ee(ne.onBlur,E,()=>H(!1)),onFocus:Ee(ne.onFocus,_,()=>H(!0)),onKeyDown:Ee(ne.onKeyDown,we),onKeyUp:Ee(ne.onKeyUp,Se),required:o,checked:j,disabled:ae,readOnly:r,"aria-label":y,"aria-labelledby":b,"aria-invalid":x?!!x:i,"aria-describedby":u,"aria-disabled":n,style:P8}),[h,S,s,te,E,_,we,Se,o,j,ae,r,y,b,x,i,u,n,v]),et=g.useCallback((ne={},Pe=null)=>({...ne,ref:Pe,onMouseDown:Ee(ne.onMouseDown,L8),"data-disabled":ce(n),"data-checked":ce(j),"data-invalid":ce(i)}),[j,n,i]);return{state:{isInvalid:i,isFocused:F,isChecked:j,isActive:N,isHovered:re,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Bt,getCheckboxProps:xt,getIndicatorProps:Ln,getInputProps:pe,getLabelProps:et,htmlProps:P}}function L8(e){e.preventDefault(),e.stopPropagation()}var N8={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},V8={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},z8=Xn({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),B8=Xn({from:{opacity:0},to:{opacity:1}}),j8=Xn({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),W8=U(function(t,n){const r=f8(),o={...r,...t},i=ut("Checkbox",o),s=Ye(t),{spacing:a="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:f=w.jsx(y8,{}),isChecked:p,isDisabled:m=r==null?void 0:r.isDisabled,onChange:h,inputProps:S,...v}=s;let y=p;r!=null&&r.value&&s.value&&(y=r.value.includes(s.value));let b=h;r!=null&&r.onChange&&s.value&&(b=PM(r.onChange,h));const{state:x,getInputProps:k,getCheckboxProps:P,getLabelProps:C,getRootProps:E}=F8({...v,isDisabled:m,isChecked:y,onChange:b}),_=m8(x.isChecked),$=g.useMemo(()=>({animation:_?x.isIndeterminate?`${B8} 20ms linear, ${j8} 200ms linear`:`${z8} 200ms linear`:void 0,fontSize:d,color:c,...i.icon}),[c,d,_,x.isIndeterminate,i.icon]),M=g.cloneElement(f,{__css:$,isIndeterminate:x.isIndeterminate,isChecked:x.isChecked});return w.jsxs(A.label,{__css:{...V8,...i.container},className:Z("chakra-checkbox",l),...E(),children:[w.jsx("input",{className:"chakra-checkbox__input",...k(S,n)}),w.jsx(A.span,{__css:{...N8,...i.control},className:"chakra-checkbox__control",...P(),children:M}),u&&w.jsx(A.span,{className:"chakra-checkbox__label",...C(),__css:{marginStart:a,...i.label},children:u})]})});W8.displayName="Checkbox";function wc(e,t,n,r){const o=Rn(n);return g.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function kT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fv="data-focus-lock",CT="data-focus-lock-disabled",H8="data-no-focus-lock",U8="data-autofocus-inside",q8="data-no-autofocus";function lh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function K8(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var G8=typeof window<"u"?g.useLayoutEffect:g.useEffect,Px=new WeakMap;function PT(e,t){var n=K8(null,function(r){return e.forEach(function(o){return lh(o,r)})});return G8(function(){var r=Px.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||lh(a,null)}),i.forEach(function(a){o.has(a)||lh(a,s)})}Px.set(n,e)},[e]),n}var uh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},dr=function(){return dr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0}).sort(f7)},h7=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],W0=h7.join(","),m7="".concat(W0,", [data-focus-guard]"),jT=function(e,t){return xr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?m7:W0)?[r]:[],jT(r))},[])},v7=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Ds([e.contentDocument.body],t):[e]},Ds=function(e,t){return e.reduce(function(n,r){var o,i=jT(r,t),s=(o=[]).concat.apply(o,i.map(function(a){return v7(a,t)}));return n.concat(s,r.parentNode?xr(r.parentNode.querySelectorAll(W0)).filter(function(a){return a===r}):[])},[])},g7=function(e){var t=e.querySelectorAll("[".concat(U8,"]"));return xr(t).map(function(n){return Ds([n])}).reduce(function(n,r){return n.concat(r)},[])},H0=function(e,t){return xr(e).filter(function(n){return LT(t,n)}).filter(function(n){return u7(n)})},Ex=function(e,t){return t===void 0&&(t=new Map),xr(e).filter(function(n){return NT(t,n)})},U0=function(e,t,n){return j0(H0(Ds(e,n),t),!0,n)},Cd=function(e,t){return j0(H0(Ds(e),t),!1)},y7=function(e,t){return H0(g7(e),t)},ci=function(e,t){return e.shadowRoot?ci(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:xr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?ci(o,t):!1}return ci(n,t)})},b7=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,a){return!t.has(a)})},WT=function(e){return e.parentNode?WT(e.parentNode):e},q0=function(e){var t=bi(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(fv);return n.push.apply(n,o?b7(xr(WT(r).querySelectorAll("[".concat(fv,'="').concat(o,'"]:not([').concat(CT,'="disabled"])')))):[r]),n},[])},S7=function(e){try{return e()}catch{return}},Rl=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Rl(t.shadowRoot):t instanceof HTMLIFrameElement&&S7(function(){return t.contentWindow.document})?Rl(t.contentWindow.document):t}},x7=function(e,t){return e===t},w7=function(e,t){return!!xr(e.querySelectorAll("iframe")).some(function(n){return x7(n,t)})},HT=function(e,t){return t===void 0&&(t=Rl(AT(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:q0(e).some(function(n){return ci(n,t)||w7(n,t)})},k7=function(e){e===void 0&&(e=document);var t=Rl(e);return t?xr(e.querySelectorAll("[".concat(H8,"]"))).some(function(n){return ci(n,t)}):!1},C7=function(e,t){return t.filter(BT).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},K0=function(e,t){return BT(e)&&e.name?C7(e,t):e},P7=function(e){var t=new Set;return e.forEach(function(n){return t.add(K0(n,e))}),e.filter(function(n){return t.has(n)})},Tx=function(e){return e[0]&&e.length>1?K0(e[0],e):e[0]},_x=function(e,t){return e.indexOf(K0(t,e))},hv="NEW_FOCUS",E7=function(e,t,n,r,o){var i=e.length,s=e[0],a=e[i-1],l=B0(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,c=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(u===-1)return d!==-1?d:hv;if(d===-1)return hv;var f=u-c,p=n.indexOf(s),m=n.indexOf(a),h=P7(n),S=r!==void 0?h.indexOf(r):-1,v=S-(o?h.indexOf(o):u);if(!f&&d>=0||t.length===0)return d;var y=_x(e,t[0]),b=_x(e,t[t.length-1]);if(u<=p&&l&&Math.abs(f)>1)return b;if(u>=m&&l&&Math.abs(f)>1)return y;if(f&&Math.abs(v)>1)return d;if(u<=p)return b;if(u>m)return y;if(f)return Math.abs(f)>1?d:(i+d+f)%i}},T7=function(e){return function(t){var n,r=(n=VT(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$x=function(e,t,n){var r=e.map(function(i){var s=i.node;return s}),o=Ex(r.filter(T7(n)));return o&&o.length?Tx(o):Tx(Ex(t))},mv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&mv(e.parentNode.host||e.parentNode,t),t},ch=function(e,t){for(var n=mv(e),r=mv(t),o=0;o=0)return i}return!1},UT=function(e,t,n){var r=bi(e),o=bi(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(a){s=ch(s||a,a)||s,n.filter(Boolean).forEach(function(l){var u=ch(i,l);u&&(!s||ci(u,s)?s=u:s=ch(u,s))})}),s},Ox=function(e,t){return e.reduce(function(n,r){return n.concat(y7(r,t))},[])},_7=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(d7)},$7=function(e,t){var n=Rl(bi(e).length>0?document:AT(e).ownerDocument),r=q0(e).filter(pv),o=UT(n||e,e,r),i=new Map,s=Cd(r,i),a=s.filter(function(m){var h=m.node;return pv(h)});if(a[0]){var l=Cd([o],i).map(function(m){var h=m.node;return h}),u=_7(l,a),c=u.map(function(m){var h=m.node;return h}),d=u.filter(function(m){var h=m.tabIndex;return h>=0}).map(function(m){var h=m.node;return h}),f=E7(c,d,l,n,t);if(f===hv){var p=$x(s,d,Ox(r,i))||$x(s,c,Ox(r,i));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return f===void 0?f:u[f]}},O7=function(e){var t=q0(e).filter(pv),n=UT(e,e,t),r=j0(Ds([n],!0),!0,!0),o=Ds(t,!1);return r.map(function(i){var s=i.node,a=i.index;return{node:s,index:a,lockItem:o.indexOf(s)>=0,guard:B0(s)}})},G0=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},dh=0,fh=!1,qT=function(e,t,n){n===void 0&&(n={});var r=$7(e,t);if(!fh&&r){if(dh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),fh=!0,setTimeout(function(){fh=!1},1);return}dh++,G0(r.node,n.focusOptions),dh--}};function ca(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var R7=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:ca(n),parent:ca(n.parentElement),left:ca(n.previousElementSibling),right:ca(n.nextElementSibling)}),n=n.parentElement;return{element:ca(e),stack:t,ownerDocument:e.ownerDocument}},M7=function(e){var t,n,r,o,i;if(e)for(var s=e.stack,a=e.ownerDocument,l=new Map,u=0,c=s;u-1&&(p.filter(function(h){var S=h.guard,v=h.node;return S&&v.dataset.focusAutoGuard}).forEach(function(h){var S=h.node;return S.removeAttribute("tabIndex")}),Rx(m,p.length,1,p),Rx(m,-1,-1,p))}}}return t},YT=function(t){Pd()&&t&&(t.stopPropagation(),t.preventDefault())},X0=function(){return Y0(Pd)},Q7=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||q7(r,n)},Z7=function(){return null},XT=function(){Ml="just",Y0(function(){Ml="meanwhile"})},J7=function(){document.addEventListener("focusin",YT),document.addEventListener("focusout",X0),window.addEventListener("blur",XT)},eW=function(){document.removeEventListener("focusin",YT),document.removeEventListener("focusout",X0),window.removeEventListener("blur",XT)};function tW(e){return e.filter(function(t){var n=t.disabled;return!n})}var QT={moveFocusInside:qT,focusInside:HT,focusNextElement:L7,focusPrevElement:N7,focusFirstElement:V7,focusLastElement:z7,captureFocusRestore:I7};function nW(e){var t=e.slice(-1)[0];t&&!ys&&J7();var n=ys,r=n&&t&&t.id===n.id;ys=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(ss=null,(!r||n.observed!==t.observed)&&t.onActivation(QT),Pd(),Y0(Pd)):(eW(),ss=null)}RT.assignSyncMedium(Q7);MT.assignMedium(X0);Q8.assignMedium(function(e){return e(QT)});const rW=r7(tW,nW)(Z7);var vv=g.forwardRef(function(t,n){return g.createElement(z0,K({sideCar:rW,ref:n},t))}),ZT=z0.propTypes||{};ZT.sideCar;kT(ZT,["sideCar"]);vv.propTypes={};function JT(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Q0(e){var t;if(!JT(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function oW(e){var t,n;return(n=(t=e_(e))==null?void 0:t.defaultView)!=null?n:window}function e_(e){return JT(e)?e.ownerDocument:document}function iW(e){return e_(e).activeElement}function sW(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}function aW(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function t_(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Q0(e)&&sW(e)?e:t_(aW(e))}var n_=e=>e.hasAttribute("tabindex"),lW=e=>n_(e)&&e.tabIndex===-1;function uW(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function r_(e){return e.parentElement&&r_(e.parentElement)?!0:e.hidden}function cW(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function o_(e){if(!Q0(e)||r_(e)||uW(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():cW(e)?!0:n_(e)}function dW(e){return e?Q0(e)&&o_(e)&&!lW(e):!1}var fW=["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]"],pW=fW.join(),hW=e=>e.offsetWidth>0&&e.offsetHeight>0;function mW(e){const t=Array.from(e.querySelectorAll(pW));return t.unshift(e),t.filter(n=>o_(n)&&hW(n))}var Mx,vW=(Mx=vv.default)!=null?Mx:vv,i_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:a,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=g.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&mW(r.current).length===0&&requestAnimationFrame(()=>{var m;(m=r.current)==null||m.focus()})},[t,r]),d=g.useCallback(()=>{var p;(p=n==null?void 0:n.current)==null||p.focus()},[n]),f=o&&!n;return w.jsx(vW,{crossFrame:u,persistentFocus:l,autoFocus:a,disabled:s,onActivation:c,onDeactivation:d,returnFocus:f,children:i})};i_.displayName="FocusLock";var gW=p6?g.useLayoutEffect:g.useEffect;function Ix(e,t=[]){const n=g.useRef(e);return gW(()=>{n.current=e}),g.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function yW(e,t){const n=g.useId();return g.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function bW(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function yee(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Ix(n),s=Ix(t),[a,l]=g.useState(e.defaultIsOpen||!1),[u,c]=bW(r,a),d=yW(o,"disclosure"),f=g.useCallback(()=>{u||l(!1),s==null||s()},[u,s]),p=g.useCallback(()=>{u||l(!0),i==null||i()},[u,i]),m=g.useCallback(()=>{(c?f:p)()},[c,p,f]);return{isOpen:!!c,onOpen:p,onClose:f,onToggle:m,isControlled:u,getButtonProps:(h={})=>({...h,"aria-expanded":c,"aria-controls":d,onClick:y6(h.onClick,m)}),getDisclosureProps:(h={})=>({...h,hidden:!c,id:d})}}var SW=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=Ax[t.format]||Ax.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=kW("message"in t?t.message:wW),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return l}var PW=CW;const EW=Kd(PW);function bee(e,t={}){const[n,r]=g.useState(!1),[o,i]=g.useState(e);g.useEffect(()=>i(e),[e]);const{timeout:s=1500,...a}=typeof t=="number"?{timeout:t}:t,l=g.useCallback(()=>{const u=EW(o,a);r(u)},[o,a]);return g.useEffect(()=>{let u=null;return n&&(u=window.setTimeout(()=>{r(!1)},s)),()=>{u&&window.clearTimeout(u)}},[s,n]),{value:o,setValue:i,onCopy:l,hasCopied:n}}var s_=U(function(t,n){const{htmlSize:r,...o}=t,i=ut("Input",o),s=Ye(o),a=L0(s),l=Z("chakra-input",t.className);return w.jsx(A.input,{size:r,...a,__css:i.field,ref:n,className:l})});s_.displayName="Input";s_.id="Input";var TW=U(function(t,n){const r=en("Link",t),{className:o,isExternal:i,...s}=Ye(t);return w.jsx(A.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Z("chakra-link",o),...s,__css:r})});TW.displayName="Link";var[_W,a_]=Ge({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Z0=U(function(t,n){const r=ut("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=Ye(t),u=F0(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return w.jsx(_W,{value:r,children:w.jsx(A.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...d},...l,children:u})})});Z0.displayName="List";var $W=U((e,t)=>{const{as:n,...r}=e;return w.jsx(Z0,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});$W.displayName="OrderedList";var OW=U(function(t,n){const{as:r,...o}=t;return w.jsx(Z0,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});OW.displayName="UnorderedList";var RW=U(function(t,n){const r=a_();return w.jsx(A.li,{ref:n,...t,__css:r.item})});RW.displayName="ListItem";var MW=U(function(t,n){const r=a_();return w.jsx(Qn,{ref:n,role:"presentation",...t,__css:r.icon})});MW.displayName="ListIcon";var l_=Object.freeze(["base","sm","md","lg","xl","2xl"]);function IW(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):$t(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function AW(e,t=l_){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}var DW=U(function(t,n){const r=en("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Ye(t),u=$6({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(A.p,{ref:n,className:Z("chakra-text",t.className),...u,...l,__css:r})});DW.displayName="Text";var FW=U(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:a,direction:l,align:u,className:c,shouldWrapChildren:d,...f}=t,p=g.useMemo(()=>d?g.Children.map(s,(m,h)=>w.jsx(u_,{children:m},h)):s,[s,d]);return w.jsx(A.div,{ref:n,className:Z("chakra-wrap",c),...f,children:w.jsx(A.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:a,alignItems:u,flexDirection:l,listStyleType:"none",gap:r,columnGap:o,rowGap:i,padding:"0"},children:p})})});FW.displayName="Wrap";var u_=U(function(t,n){const{className:r,...o}=t;return w.jsx(A.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Z("chakra-wrap__listitem",r),...o})});u_.displayName="WrapItem";var c_=e=>w.jsx(A.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});c_.displayName="StackItem";function LW(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":IW(n,o=>r[o])}}var NW=U((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=n?"row":r??"column",m=g.useMemo(()=>LW({spacing:s,direction:p}),[s,p]),h=!!u,S=!d&&!h,v=g.useMemo(()=>{const b=F0(l);return S?b:b.map((x,k)=>{const P=typeof x.key<"u"?x.key:k,C=k+1===b.length,_=d?w.jsx(c_,{children:x},P):x;if(!h)return _;const $=g.cloneElement(u,{__css:m}),M=C?null:$;return w.jsxs(g.Fragment,{children:[_,M]},P)})},[u,m,h,S,d,l]),y=Z("chakra-stack",c);return w.jsx(A.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:h?void 0:s,className:y,...f,children:v})});NW.displayName="Stack";var VW=U(function(t,n){const r=en("Heading",t),{className:o,...i}=Ye(t);return w.jsx(A.h2,{ref:n,className:Z("chakra-heading",t.className),...i,__css:r})});VW.displayName="Heading";var Je=A("div");Je.displayName="Box";var d_=U(function(t,n){const{size:r,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(Je,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...i})});d_.displayName="Square";var zW=U(function(t,n){const{size:r,...o}=t;return w.jsx(d_,{size:r,ref:n,borderRadius:"9999px",...o})});zW.displayName="Circle";var BW=U(function(t,n){const r=en("Code",t),{className:o,...i}=Ye(t);return w.jsx(A.code,{ref:n,className:Z("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});BW.displayName="Code";var f_=U(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:a,borderStyle:l,borderColor:u,...c}=en("Divider",t),{className:d,orientation:f="horizontal",__css:p,...m}=Ye(t),h={vertical:{borderLeftWidth:r||s||a||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||a||"1px",width:"100%"}};return w.jsx(A.hr,{ref:n,"aria-orientation":f,...m,__css:{...c,border:"0",borderColor:u,borderStyle:l,...h[f],...p},className:Z("chakra-divider",d)})});f_.displayName="Divider";var jW=U(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:u};return w.jsx(A.div,{ref:n,__css:d,...c})});jW.displayName="Flex";function WW(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=H6(),i=Array.isArray(e)?e:[e];let s=Array.isArray(r)?r:[r];s=s.filter(u=>u!=null);const[a,l]=g.useState(()=>i.map((u,c)=>({media:u,matches:n?!!s[c]:o().matchMedia(u).matches})));return g.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(p=>p.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),a.map(u=>u.matches)}function HW(e,t,n=l_){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function UW(e){var t,n;const r=$t(e)?e:{fallback:e??"base"},i=Yr().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===r.fallback),l=WW(i.map(u=>u.query),{fallback:s,ssr:r.ssr}).findIndex(u=>u==!0);return(n=(t=i[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function qW(e,t){var n;const r=$t(t)?t:{fallback:t??"base"},o=UW(r),i=Yr();if(!o)return;const s=Array.from(((n=i.__breakpoints)==null?void 0:n.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(AW(e,s)).map(([l,u])=>[l,u])):e;return HW(a,o,s)}function KW(){const e=g.useRef(new Map),t=e.current,n=g.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),r=g.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return g.useEffect(()=>()=>{t.forEach((o,i)=>{r(o.el,o.type,i,o.options)})},[r,t]),{add:n,remove:r}}function ph(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function GW(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...m}=e,[h,S]=g.useState(!0),[v,y]=g.useState(!1),b=KW(),x=R=>{R&&R.tagName!=="BUTTON"&&S(!1)},k=h?d:d||0,P=n&&!r,C=g.useCallback(R=>{if(n){R.stopPropagation(),R.preventDefault();return}R.currentTarget.focus(),l==null||l(R)},[n,l]),E=g.useCallback(R=>{v&&ph(R)&&(R.preventDefault(),R.stopPropagation(),y(!1),b.remove(document,"keyup",E,!1))},[v,b]),_=g.useCallback(R=>{if(u==null||u(R),n||R.defaultPrevented||R.metaKey||!ph(R.nativeEvent)||h)return;const O=o&&R.key==="Enter";i&&R.key===" "&&(R.preventDefault(),y(!0)),O&&(R.preventDefault(),R.currentTarget.click()),b.add(document,"keyup",E,!1)},[n,h,u,o,i,b,E]),$=g.useCallback(R=>{if(c==null||c(R),n||R.defaultPrevented||R.metaKey||!ph(R.nativeEvent)||h)return;i&&R.key===" "&&(R.preventDefault(),y(!1),R.currentTarget.click())},[i,h,n,c]),M=g.useCallback(R=>{R.button===0&&(y(!1),b.remove(document,"mouseup",M,!1))},[b]),F=g.useCallback(R=>{if(R.button!==0)return;if(n){R.stopPropagation(),R.preventDefault();return}h||y(!0),R.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",M,!1),s==null||s(R)},[n,h,s,b,M]),H=g.useCallback(R=>{R.button===0&&(h||y(!1),a==null||a(R))},[a,h]),re=g.useCallback(R=>{if(n){R.preventDefault();return}f==null||f(R)},[n,f]),W=g.useCallback(R=>{v&&(R.preventDefault(),y(!1)),p==null||p(R)},[v,p]),N=mn(t,x);return h?{...m,ref:N,type:"button","aria-disabled":P?void 0:n,disabled:P,onClick:C,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:N,role:"button","data-active":ce(v),"aria-disabled":n?"true":void 0,tabIndex:P?void 0:k,onClick:C,onMouseDown:F,onMouseUp:H,onKeyUp:$,onKeyDown:_,onMouseOver:re,onMouseLeave:W}}function YW(e){const t=e.current;if(!t)return!1;const n=iW(t);return!n||t.contains(n)?!1:!!dW(n)}function XW(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;Pl(()=>{if(!i||YW(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}var Ri=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),mt={arrowShadowColor:Ri("--popper-arrow-shadow-color"),arrowSize:Ri("--popper-arrow-size","8px"),arrowSizeHalf:Ri("--popper-arrow-size-half"),arrowBg:Ri("--popper-arrow-bg"),transformOrigin:Ri("--popper-transform-origin"),arrowOffset:Ri("--popper-arrow-offset")};function QW(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var ZW={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},JW=e=>ZW[e],Dx={scroll:!0,resize:!0};function eH(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Dx,...e}}:t={enabled:e,options:Dx},t}var tH={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},nH={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Fx(e)},effect:({state:e})=>()=>{Fx(e)}},Fx=e=>{e.elements.popper.style.setProperty(mt.transformOrigin.var,JW(e.placement))},rH={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{oH(e)}},oH=e=>{var t;if(!e.placement)return;const n=iH(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:mt.arrowSize.varRef,height:mt.arrowSize.varRef,zIndex:-1});const r={[mt.arrowSizeHalf.var]:`calc(${mt.arrowSize.varRef} / 2 - 1px)`,[mt.arrowOffset.var]:`calc(${mt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},iH=e=>{if(e.startsWith("top"))return{property:"bottom",value:mt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:mt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:mt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:mt.arrowOffset.varRef}},sH={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Lx(e)},effect:({state:e})=>()=>{Lx(e)}},Lx=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=QW(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:mt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},aH={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},lH={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function uH(e,t="ltr"){var n,r;const o=((n=aH[e])==null?void 0:n[t])||e;return t==="ltr"?o:(r=lH[e])!=null?r:o}var Qt="top",Dn="bottom",Fn="right",Zt="left",J0="auto",Jl=[Qt,Dn,Fn,Zt],Fs="start",Il="end",cH="clippingParents",p_="viewport",da="popper",dH="reference",Nx=Jl.reduce(function(e,t){return e.concat([t+"-"+Fs,t+"-"+Il])},[]),h_=[].concat(Jl,[J0]).reduce(function(e,t){return e.concat([t,t+"-"+Fs,t+"-"+Il])},[]),fH="beforeRead",pH="read",hH="afterRead",mH="beforeMain",vH="main",gH="afterMain",yH="beforeWrite",bH="write",SH="afterWrite",xH=[fH,pH,hH,mH,vH,gH,yH,bH,SH];function br(e){return e?(e.nodeName||"").toLowerCase():null}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Si(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Mn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ey(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wH(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Mn(i)||!br(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function kH(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Mn(o)||!br(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const CH={name:"applyStyles",enabled:!0,phase:"write",fn:wH,effect:kH,requires:["computeStyles"]};function gr(e){return e.split("-")[0]}var di=Math.max,Ed=Math.min,Ls=Math.round;function gv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function m_(){return!/^((?!chrome|android).)*safari/i.test(gv())}function Ns(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Mn(e)&&(o=e.offsetWidth>0&&Ls(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ls(r.height)/e.offsetHeight||1);var s=Si(e)?vn(e):window,a=s.visualViewport,l=!m_()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function ty(e){var t=Ns(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function v_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ey(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hr(e){return vn(e).getComputedStyle(e)}function PH(e){return["table","td","th"].indexOf(br(e))>=0}function Fo(e){return((Si(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bf(e){return br(e)==="html"?e:e.assignedSlot||e.parentNode||(ey(e)?e.host:null)||Fo(e)}function Vx(e){return!Mn(e)||Hr(e).position==="fixed"?null:e.offsetParent}function EH(e){var t=/firefox/i.test(gv()),n=/Trident/i.test(gv());if(n&&Mn(e)){var r=Hr(e);if(r.position==="fixed")return null}var o=Bf(e);for(ey(o)&&(o=o.host);Mn(o)&&["html","body"].indexOf(br(o))<0;){var i=Hr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function eu(e){for(var t=vn(e),n=Vx(e);n&&PH(n)&&Hr(n).position==="static";)n=Vx(n);return n&&(br(n)==="html"||br(n)==="body"&&Hr(n).position==="static")?t:n||EH(e)||t}function ny(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return di(e,Ed(t,n))}function TH(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function g_(){return{top:0,right:0,bottom:0,left:0}}function y_(e){return Object.assign({},g_(),e)}function b_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var _H=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,y_(typeof t!="number"?t:b_(t,Jl))};function $H(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=gr(n.placement),l=ny(a),u=[Zt,Fn].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=_H(o.padding,n),f=ty(i),p=l==="y"?Qt:Zt,m=l==="y"?Dn:Fn,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],S=s[l]-n.rects.reference[l],v=eu(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=h/2-S/2,x=d[p],k=y-f[c]-d[m],P=y/2-f[c]/2+b,C=Qa(x,P,k),E=l;n.modifiersData[r]=(t={},t[E]=C,t.centerOffset=C-P,t)}}function OH(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||v_(t.elements.popper,o)&&(t.elements.arrow=o))}const RH={name:"arrow",enabled:!0,phase:"main",fn:$H,effect:OH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var MH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IH(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ls(n*o)/o||0,y:Ls(r*o)/o||0}}function zx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,h=m===void 0?0:m,S=typeof c=="function"?c({x:p,y:h}):{x:p,y:h};p=S.x,h=S.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Zt,x=Qt,k=window;if(u){var P=eu(n),C="clientHeight",E="clientWidth";if(P===vn(n)&&(P=Fo(n),Hr(P).position!=="static"&&a==="absolute"&&(C="scrollHeight",E="scrollWidth")),P=P,o===Qt||(o===Zt||o===Fn)&&i===Il){x=Dn;var _=d&&P===k&&k.visualViewport?k.visualViewport.height:P[C];h-=_-r.height,h*=l?1:-1}if(o===Zt||(o===Qt||o===Dn)&&i===Il){b=Fn;var $=d&&P===k&&k.visualViewport?k.visualViewport.width:P[E];p-=$-r.width,p*=l?1:-1}}var M=Object.assign({position:a},u&&MH),F=c===!0?IH({x:p,y:h},vn(n)):{x:p,y:h};if(p=F.x,h=F.y,l){var H;return Object.assign({},M,(H={},H[x]=y?"0":"",H[b]=v?"0":"",H.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",H))}return Object.assign({},M,(t={},t[x]=y?h+"px":"",t[b]=v?p+"px":"",t.transform="",t))}function AH(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:gr(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AH,data:{}};var Mu={passive:!0};function FH(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=vn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Mu)}),a&&l.addEventListener("resize",n.update,Mu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Mu)}),a&&l.removeEventListener("resize",n.update,Mu)}}const LH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FH,data:{}};var NH={left:"right",right:"left",bottom:"top",top:"bottom"};function kc(e){return e.replace(/left|right|bottom|top/g,function(t){return NH[t]})}var VH={start:"end",end:"start"};function Bx(e){return e.replace(/start|end/g,function(t){return VH[t]})}function ry(e){var t=vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oy(e){return Ns(Fo(e)).left+ry(e).scrollLeft}function zH(e,t){var n=vn(e),r=Fo(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=m_();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+oy(e),y:l}}function BH(e){var t,n=Fo(e),r=ry(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=di(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=di(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+oy(e),l=-r.scrollTop;return Hr(o||n).direction==="rtl"&&(a+=di(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function iy(e){var t=Hr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function S_(e){return["html","body","#document"].indexOf(br(e))>=0?e.ownerDocument.body:Mn(e)&&iy(e)?e:S_(Bf(e))}function Za(e,t){var n;t===void 0&&(t=[]);var r=S_(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=vn(r),s=o?[i].concat(i.visualViewport||[],iy(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Za(Bf(s)))}function yv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jH(e,t){var n=Ns(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jx(e,t,n){return t===p_?yv(zH(e,n)):Si(t)?jH(t,n):yv(BH(Fo(e)))}function WH(e){var t=Za(Bf(e)),n=["absolute","fixed"].indexOf(Hr(e).position)>=0,r=n&&Mn(e)?eu(e):e;return Si(r)?t.filter(function(o){return Si(o)&&v_(o,r)&&br(o)!=="body"}):[]}function HH(e,t,n,r){var o=t==="clippingParents"?WH(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=jx(e,u,r);return l.top=di(c.top,l.top),l.right=Ed(c.right,l.right),l.bottom=Ed(c.bottom,l.bottom),l.left=di(c.left,l.left),l},jx(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function x_(e){var t=e.reference,n=e.element,r=e.placement,o=r?gr(r):null,i=r?Vs(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qt:l={x:s,y:t.y-n.height};break;case Dn:l={x:s,y:t.y+t.height};break;case Fn:l={x:t.x+t.width,y:a};break;case Zt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?ny(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Fs:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Il:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Al(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?cH:a,u=n.rootBoundary,c=u===void 0?p_:u,d=n.elementContext,f=d===void 0?da:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,S=h===void 0?0:h,v=y_(typeof S!="number"?S:b_(S,Jl)),y=f===da?dH:da,b=e.rects.popper,x=e.elements[m?y:f],k=HH(Si(x)?x:x.contextElement||Fo(e.elements.popper),l,c,s),P=Ns(e.elements.reference),C=x_({reference:P,element:b,strategy:"absolute",placement:o}),E=yv(Object.assign({},b,C)),_=f===da?E:P,$={top:k.top-_.top+v.top,bottom:_.bottom-k.bottom+v.bottom,left:k.left-_.left+v.left,right:_.right-k.right+v.right},M=e.modifiersData.offset;if(f===da&&M){var F=M[o];Object.keys($).forEach(function(H){var re=[Fn,Dn].indexOf(H)>=0?1:-1,W=[Qt,Dn].indexOf(H)>=0?"y":"x";$[H]+=F[W]*re})}return $}function UH(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?h_:l,c=Vs(r),d=c?a?Nx:Nx.filter(function(m){return Vs(m)===c}):Jl,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,h){return m[h]=Al(e,{placement:h,boundary:o,rootBoundary:i,padding:s})[gr(h)],m},{});return Object.keys(p).sort(function(m,h){return p[m]-p[h]})}function qH(e){if(gr(e)===J0)return[];var t=kc(e);return[Bx(e),t,Bx(t)]}function KH(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,S=t.options.placement,v=gr(S),y=v===S,b=l||(y||!m?[kc(S)]:qH(S)),x=[S].concat(b).reduce(function(j,te){return j.concat(gr(te)===J0?UH(t,{placement:te,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):te)},[]),k=t.rects.reference,P=t.rects.popper,C=new Map,E=!0,_=x[0],$=0;$=0,W=re?"width":"height",N=Al(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=re?H?Fn:Zt:H?Dn:Qt;k[W]>P[W]&&(R=kc(R));var O=kc(R),D=[];if(i&&D.push(N[F]<=0),a&&D.push(N[R]<=0,N[O]<=0),D.every(function(j){return j})){_=M,E=!1;break}C.set(M,D)}if(E)for(var V=m?3:1,oe=function(te){var ae=x.find(function(we){var Se=C.get(we);if(Se)return Se.slice(0,te).every(function(xt){return xt})});if(ae)return _=ae,"break"},B=V;B>0;B--){var ee=oe(B);if(ee==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const GH={name:"flip",enabled:!0,phase:"main",fn:KH,requiresIfExists:["offset"],data:{_skip:!1}};function Wx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Hx(e){return[Qt,Fn,Dn,Zt].some(function(t){return e[t]>=0})}function YH(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Al(t,{elementContext:"reference"}),a=Al(t,{altBoundary:!0}),l=Wx(s,r),u=Wx(a,o,i),c=Hx(l),d=Hx(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const XH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YH};function QH(e,t,n){var r=gr(e),o=[Zt,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Zt,Fn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ZH(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=h_.reduce(function(c,d){return c[d]=QH(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const JH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZH};function eU(e){var t=e.state,n=e.name;t.modifiersData[n]=x_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tU={name:"popperOffsets",enabled:!0,phase:"read",fn:eU,data:{}};function nU(e){return e==="x"?"y":"x"}function rU(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,S=Al(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=gr(t.placement),y=Vs(t.placement),b=!y,x=ny(v),k=nU(x),P=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,_=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,$=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(i){var H,re=x==="y"?Qt:Zt,W=x==="y"?Dn:Fn,N=x==="y"?"height":"width",R=P[x],O=R+S[re],D=R-S[W],V=p?-E[N]/2:0,oe=y===Fs?C[N]:E[N],B=y===Fs?-E[N]:-C[N],ee=t.elements.arrow,j=p&&ee?ty(ee):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:g_(),ae=te[re],we=te[W],Se=Qa(0,C[N],j[N]),xt=b?C[N]/2-V-Se-ae-$.mainAxis:oe-Se-ae-$.mainAxis,Ln=b?-C[N]/2+V+Se+we+$.mainAxis:B+Se+we+$.mainAxis,Bt=t.elements.arrow&&eu(t.elements.arrow),pe=Bt?x==="y"?Bt.clientTop||0:Bt.clientLeft||0:0,et=(H=M==null?void 0:M[x])!=null?H:0,Sn=R+xt-et-pe,ne=R+Ln-et,Pe=Qa(p?Ed(O,Sn):O,R,p?di(D,ne):D);P[x]=Pe,F[x]=Pe-R}if(a){var Be,tt=x==="x"?Qt:Zt,wt=x==="x"?Dn:Fn,De=P[k],Ei=k==="y"?"height":"width",Ti=De+S[tt],Fy=De-S[wt],tp=[Qt,Zt].indexOf(v)!==-1,Ly=(Be=M==null?void 0:M[k])!=null?Be:0,Ny=tp?Ti:De-C[Ei]-E[Ei]-Ly+$.altAxis,Vy=tp?De+C[Ei]+E[Ei]-Ly-$.altAxis:Fy,zy=p&&tp?TH(Ny,De,Vy):Qa(p?Ny:Ti,De,p?Vy:Fy);P[k]=zy,F[k]=zy-De}t.modifiersData[r]=F}}const oU={name:"preventOverflow",enabled:!0,phase:"main",fn:rU,requiresIfExists:["offset"]};function iU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sU(e){return e===vn(e)||!Mn(e)?ry(e):iU(e)}function aU(e){var t=e.getBoundingClientRect(),n=Ls(t.width)/e.offsetWidth||1,r=Ls(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lU(e,t,n){n===void 0&&(n=!1);var r=Mn(t),o=Mn(t)&&aU(t),i=Fo(t),s=Ns(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((br(t)!=="body"||iy(i))&&(a=sU(t)),Mn(t)?(l=Ns(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=oy(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function uU(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function cU(e){var t=uU(e);return xH.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function dU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fU(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ux={placement:"bottom",modifiers:[],strategy:"absolute"};function qx(){for(var e=arguments.length,t=new Array(e),n=0;n{}),b=g.useCallback(()=>{var $;!t||!m.current||!h.current||(($=y.current)==null||$.call(y),S.current=mU(m.current,h.current,{placement:v,modifiers:[sH,rH,nH,{...tH,enabled:!!f},{name:"eventListeners",...eH(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...n??[]],strategy:o}),S.current.forceUpdate(),y.current=S.current.destroy)},[v,t,n,f,s,i,a,l,u,d,c,o]);g.useEffect(()=>()=>{var $;!m.current&&!h.current&&(($=S.current)==null||$.destroy(),S.current=null)},[]);const x=g.useCallback($=>{m.current=$,b()},[b]),k=g.useCallback(($={},M=null)=>({...$,ref:mn(x,M)}),[x]),P=g.useCallback($=>{h.current=$,b()},[b]),C=g.useCallback(($={},M=null)=>({...$,ref:mn(P,M),style:{...$.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,P,f]),E=g.useCallback(($={},M=null)=>{const{size:F,shadowColor:H,bg:re,style:W,...N}=$;return{...N,ref:M,"data-popper-arrow":"",style:vU($)}},[]),_=g.useCallback(($={},M=null)=>({...$,ref:M,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=S.current)==null||$.update()},forceUpdate(){var $;($=S.current)==null||$.forceUpdate()},transformOrigin:mt.transformOrigin.varRef,referenceRef:x,popperRef:P,getPopperProps:C,getArrowProps:E,getArrowInnerProps:_,getReferenceProps:k}}function vU(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function k_(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Rn(n),s=Rn(t),[a,l]=g.useState(e.defaultIsOpen||!1),u=r!==void 0?r:a,c=r!==void 0,d=g.useId(),f=o??`disclosure-${d}`,p=g.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=g.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),h=g.useCallback(()=>{u?p():m()},[u,m,p]);function S(y={}){return{...y,"aria-expanded":u,"aria-controls":f,onClick(b){var x;(x=y.onClick)==null||x.call(y,b),h()}}}function v(y={}){return{...y,hidden:!u,id:f}}return{isOpen:u,onOpen:m,onClose:p,onToggle:h,isControlled:c,getButtonProps:S,getDisclosureProps:v}}function gU(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Rn(n),s=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;g.useEffect(()=>{if(!r)return;const a=d=>{hh(d,t)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&hh(d,t)&&(s.isPointerDown=!1,o(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&hh(d,t)&&(s.isPointerDown=!1,o(d))},c=C_(t.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[n,t,o,s,r])}function hh(e,t){var n;const r=e.target;return r&&!C_(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function C_(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function yU(e){const{isOpen:t,ref:n}=e,[r,o]=g.useState(t),[i,s]=g.useState(!1);return g.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),wc(()=>n.current,"animationend",()=>{o(t)}),{present:!(t?!1:!r),onComplete(){var l;const u=oW(n.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(c)}}}function bU(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[SU,See,xU,xee]=hT(),[wU,wee]=Ge({strict:!1,name:"MenuContext"});function kU(e,...t){const n=g.useId(),r=e||n;return g.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}function CU(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function PU(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...h}=e,S=g.useRef(null),v=g.useRef(null),y=xU(),b=g.useCallback(()=>{requestAnimationFrame(()=>{var ee;(ee=S.current)==null||ee.focus({preventScroll:!1})})},[]),x=g.useCallback(()=>{const ee=setTimeout(()=>{var j;if(o)(j=o.current)==null||j.focus();else{const te=y.firstEnabled();te&&H(te.index)}});O.current.add(ee)},[y,o]),k=g.useCallback(()=>{const ee=setTimeout(()=>{const j=y.lastEnabled();j&&H(j.index)});O.current.add(ee)},[y]),P=g.useCallback(()=>{c==null||c(),i?x():b()},[i,x,b,c]),{isOpen:C,onOpen:E,onClose:_,onToggle:$}=k_({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:P});gU({enabled:C&&r,ref:S,handler:ee=>{var j;(j=v.current)!=null&&j.contains(ee.target)||_()}});const M=w_({...h,enabled:C||m,placement:d,direction:p}),[F,H]=g.useState(-1);Pl(()=>{C||H(-1)},[C]),XW(S,{focusRef:v,visible:C,shouldFocus:!0});const re=yU({isOpen:C,ref:S}),[W,N]=kU(t,"menu-button","menu-list"),R=g.useCallback(()=>{E(),b()},[E,b]),O=g.useRef(new Set([]));g.useEffect(()=>{const ee=O.current;return()=>{ee.forEach(j=>clearTimeout(j)),ee.clear()}},[]);const D=g.useCallback(()=>{E(),x()},[x,E]),V=g.useCallback(()=>{E(),k()},[E,k]),oe=g.useCallback(()=>{var ee,j;const te=CU(S.current),ae=(ee=S.current)==null?void 0:ee.contains(te.activeElement);if(!(C&&!ae))return;const Se=(j=y.item(F))==null?void 0:j.node;Se==null||Se.focus({preventScroll:!0})},[C,F,y]),B=g.useRef(null);return{openAndFocusMenu:R,openAndFocusFirstItem:D,openAndFocusLastItem:V,onTransitionEnd:oe,unstable__animationState:re,descendants:y,popper:M,buttonId:W,menuId:N,forceUpdate:M.forceUpdate,orientation:"vertical",isOpen:C,onToggle:$,onOpen:E,onClose:_,menuRef:S,buttonRef:v,focusedIndex:F,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:H,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:B}}var[EU,TU]=Ge({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),P_=e=>{const{children:t}=e,n=ut("Menu",e),r=Ye(e),{direction:o}=Yr(),{descendants:i,...s}=PU({...r,direction:o}),a=g.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return w.jsx(SU,{value:i,children:w.jsx(wU,{value:a,children:w.jsx(EU,{value:n,children:Kt(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};P_.displayName="Menu";var E_=e=>{const{className:t,children:n,...r}=e,o=TU(),i=g.Children.only(n),s=g.isValidElement(i)?g.cloneElement(i,{focusable:"false","aria-hidden":!0,className:Z("chakra-menu__icon",i.props.className)}):null,a=Z("chakra-menu__icon-wrapper",t);return w.jsx(A.span,{className:a,...r,__css:o.icon,children:s})};E_.displayName="MenuIcon";var _U={slideInBottom:{...Pa,custom:{offsetY:16,reverse:!0}},slideInRight:{...Pa,custom:{offsetX:16,reverse:!0}},slideInTop:{...Pa,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Pa,custom:{offsetX:-16,reverse:!0}},scale:{...gT,custom:{initialScale:.95,reverse:!0}},none:{}},$U=A(Xr.section),OU=e=>_U[e||"none"],T_=g.forwardRef((e,t)=>{const{preset:n,motionProps:r=OU(n),...o}=e;return w.jsx($U,{ref:t,...r,...o})});T_.displayName="ModalTransition";var RU=Object.defineProperty,MU=(e,t,n)=>t in e?RU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IU=(e,t,n)=>(MU(e,t+"",n),n),AU=class{constructor(){IU(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}},bv=new AU;function __(e,t){const[n,r]=g.useState(0);return g.useEffect(()=>{const o=e.current;if(o){if(t){const i=bv.add(o);r(i)}return()=>{bv.remove(o),r(0)}}},[t,e]),n}var DU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mi=new WeakMap,Iu=new WeakMap,Au={},mh=0,$_=function(e){return e&&(e.host||$_(e.parentNode))},FU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},LU=function(e,t,n,r){var o=FU(t,Array.isArray(e)?e:[e]);Au[n]||(Au[n]=new WeakMap);var i=Au[n],s=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.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(a.has(f))c(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(Mi.get(f)||0)+1,S=(i.get(f)||0)+1;Mi.set(f,h),i.set(f,S),s.push(f),h===1&&m&&Iu.set(f,!0),S===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return c(t),a.clear(),mh++,function(){s.forEach(function(d){var f=Mi.get(d)-1,p=i.get(d)-1;Mi.set(d,f),i.set(d,p),f||(Iu.has(d)||d.removeAttribute(r),Iu.delete(d)),p||d.removeAttribute(n)}),mh--,mh||(Mi=new WeakMap,Mi=new WeakMap,Iu=new WeakMap,Au={})}},NU=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=DU(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),LU(r,o,n,"aria-hidden")):function(){return null}};function VU(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:a,onEsc:l}=e,u=g.useRef(null),c=g.useRef(null),[d,f,p]=BU(r,"chakra-modal","chakra-modal--header","chakra-modal--body");zU(u,t&&s);const m=__(u,t),h=g.useRef(null),S=g.useCallback(_=>{h.current=_.target},[]),v=g.useCallback(_=>{_.key==="Escape"&&(_.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[y,b]=g.useState(!1),[x,k]=g.useState(!1),P=g.useCallback((_={},$=null)=>({role:"dialog",..._,ref:mn($,u),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?f:void 0,"aria-describedby":x?p:void 0,onClick:Ee(_.onClick,M=>M.stopPropagation())}),[p,x,d,f,y]),C=g.useCallback(_=>{_.stopPropagation(),h.current===_.target&&bv.isTopModal(u.current)&&(o&&(n==null||n()),a==null||a())},[n,o,a]),E=g.useCallback((_={},$=null)=>({..._,ref:mn($,c),onClick:Ee(_.onClick,C),onKeyDown:Ee(_.onKeyDown,v),onMouseDown:Ee(_.onMouseDown,S)}),[v,S,C]);return{isOpen:t,onClose:n,headerId:f,bodyId:p,setBodyMounted:k,setHeaderMounted:b,dialogRef:u,overlayRef:c,getDialogProps:P,getDialogContainerProps:E,index:m}}function zU(e,t){const n=e.current;g.useEffect(()=>{if(!(!e.current||!t))return NU(e.current)},[t,e,n])}function BU(e,...t){const n=g.useId(),r=e||n;return g.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[jU,Ci]=Ge({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[WU,$o]=Ge({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),sy=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:m}=t,h=ut("Modal",t),v={...VU(t),autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return w.jsx(WU,{value:v,children:w.jsx(jU,{value:h,children:w.jsx(Do,{onExitComplete:m,children:v.isOpen&&w.jsx(Hs,{...n,children:r})})})})};sy.displayName="Modal";var Cc="right-scroll-bar-position",Pc="width-before-scroll-bar",HU="with-scroll-bars-hidden",UU="--removed-body-scroll-bar-size",O_=$T(),vh=function(){},jf=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:vh,onWheelCapture:vh,onTouchMoveCapture:vh}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,S=e.as,v=S===void 0?"div":S,y=e.gapMode,b=ET(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,k=PT([n,t]),P=dr(dr({},b),o);return g.createElement(g.Fragment,null,c&&g.createElement(x,{sideCar:O_,removeScrollBar:u,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),s?g.cloneElement(g.Children.only(a),dr(dr({},P),{ref:k})):g.createElement(v,dr({},P,{className:l,ref:k}),a))});jf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jf.classNames={fullWidth:Pc,zeroRight:Cc};var qU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qU();return t&&e.setAttribute("nonce",t),e}function GU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XU=function(){var e=0,t=null;return{add:function(n){e==0&&(t=KU())&&(GU(t,n),YU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QU=function(){var e=XU();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},R_=function(){var e=QU(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ZU={left:0,top:0,right:0,gap:0},gh=function(e){return parseInt(e||"",10)||0},JU=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gh(n),gh(r),gh(o)]},eq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZU;var t=JU(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tq=R_(),Ss="data-scroll-locked",nq=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(HU,` { + `),()=>{document.head.removeChild(c)}},[t]),w.jsx(hj,{isPresent:t,childRef:r,sizeRef:o,children:g.cloneElement(e,{ref:r})})}const ah=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=QP(vj),l=g.useId(),u=g.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return g.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),g.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=w.jsx(mj,{isPresent:n,children:e})),w.jsx(Kl.Provider,{value:u,children:e})};function vj(){return new Map}function gj(e){return g.useEffect(()=>()=>e(),[])}const jo=e=>e.key||"";function yj(e,t){e.forEach(n=>{const r=jo(n);t.set(r,n)})}function bj(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Do=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=g.useContext(f0).forceRender||pj()[0],l=iT(),u=bj(e);let c=u;const d=g.useRef(new Map).current,f=g.useRef(c),p=g.useRef(new Map).current,m=g.useRef(!0);if(l0(()=>{m.current=!1,yj(u,p),f.current=c}),gj(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return w.jsx(w.Fragment,{children:c.map(y=>w.jsx(ah,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:y},jo(y)))});c=[...c];const h=f.current.map(jo),S=u.map(jo),v=h.length;for(let y=0;y{if(S.indexOf(b)!==-1)return;const x=p.get(b);if(!x)return;const k=h.indexOf(b);let P=y;if(!P){const C=()=>{d.delete(b);const E=Array.from(p.keys()).filter(_=>!S.includes(_));if(E.forEach(_=>p.delete(_)),f.current=u.filter(_=>{const $=jo(_);return $===b||E.includes($)}),!d.size){if(l.current===!1)return;a(),r&&r()}};P=w.jsx(ah,{isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:i,mode:s,children:x},jo(x)),d.set(b,P)}c.splice(k,0,P)}),c=c.map(y=>{const b=y.key;return d.has(b)?y:w.jsx(ah,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:y},jo(y))}),w.jsx(w.Fragment,{children:d.size?c:c.map(y=>g.cloneElement(y))})};var Sj={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},sT=g.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=Sj,toastSpacing:c="0.5rem"}=e,[d,f]=g.useState(a),p=v9();Pl(()=>{p||r==null||r()},[p]),Pl(()=>{f(a)},[a]);const m=()=>f(null),h=()=>f(a),S=()=>{p&&o()};g.useEffect(()=>{p&&i&&o()},[p,i,o]),YN(S,d);const v=g.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=g.useMemo(()=>KN(s),[s]);return w.jsx(Xr.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:h,custom:{position:s},style:y,children:w.jsx(A.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Kt(n,{id:t,onClose:S})})})});sT.displayName="ToastComponent";function xj(e,t){var n;const r=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"}}[r];return(n=i==null?void 0:i[t])!=null?n:r}var fx={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.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"}),w.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"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Qn=U((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Z("chakra-icon",a),d=en("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},m=r??fx.viewBox;if(n&&typeof n!="string")return w.jsx(A.svg,{as:n,...p,...u});const h=s??fx.path;return w.jsx(A.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:h})});Qn.displayName="Icon";function ki(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=g.Children.toArray(e.path),s=U((a,l)=>w.jsx(Qn,{ref:l,viewBox:t,...o,...a,children:i.length?i:w.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function wj(e){return w.jsx(Qn,{viewBox:"0 0 24 24",...e,children:w.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 kj(e){return w.jsx(Qn,{viewBox:"0 0 24 24",...e,children:w.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 px(e){return w.jsx(Qn,{viewBox:"0 0 24 24",...e,children:w.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 Cj=Xn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Vf=U((e,t)=>{const n=en("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Ye(e),u=Z("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${Cj} ${i} linear infinite`,...n};return w.jsx(A.div,{ref:t,__css:c,className:u,...l,children:r&&w.jsx(A.span,{srOnly:!0,children:r})})});Vf.displayName="Spinner";var[Pj,I0]=Ge({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[Ej,A0]=Ge({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),aT={info:{icon:kj,colorScheme:"blue"},warning:{icon:px,colorScheme:"orange"},success:{icon:wj,colorScheme:"green"},error:{icon:px,colorScheme:"red"},loading:{icon:Vf,colorScheme:"blue"}};function Tj(e){return aT[e].colorScheme}function _j(e){return aT[e].icon}var lT=U(function(t,n){const r=A0(),{status:o}=I0(),i={display:"inline",...r.description};return w.jsx(A.div,{ref:n,"data-status":o,...t,className:Z("chakra-alert__desc",t.className),__css:i})});lT.displayName="AlertDescription";function uT(e){const{status:t}=I0(),n=_j(t),r=A0(),o=t==="loading"?r.spinner:r.icon;return w.jsx(A.span,{display:"inherit","data-status":t,...e,className:Z("chakra-alert__icon",e.className),__css:o,children:e.children||w.jsx(n,{h:"100%",w:"100%"})})}uT.displayName="AlertIcon";var cT=U(function(t,n){const r=A0(),{status:o}=I0();return w.jsx(A.div,{ref:n,"data-status":o,...t,className:Z("chakra-alert__title",t.className),__css:r.title})});cT.displayName="AlertTitle";var dT=U(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=Ye(t),a=(r=t.colorScheme)!=null?r:Tj(o),l=ut("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return w.jsx(Pj,{value:{status:o},children:w.jsx(Ej,{value:l,children:w.jsx(A.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:Z("chakra-alert",t.className),__css:u})})})});dT.displayName="Alert";function $j(e){return w.jsx(Qn,{focusable:"false","aria-hidden":!0,...e,children:w.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 D0=U(function(t,n){const r=en("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Ye(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(A.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||w.jsx($j,{width:"1em",height:"1em"})})});D0.displayName="CloseButton";var Oj={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},cr=Rj(Oj);function Rj(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=Mj(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=eS(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:fT(i)}),a})},closeAll:({positions:o}={})=>{r(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=>{r(i=>{const s=IP(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!eS(cr.getState(),o).position}}var hx=0;function Mj(e,t={}){var n,r;hx+=1;const o=(n=t.id)!=null?n:hx,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>cr.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Ij=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return w.jsxs(dT,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[w.jsx(uT,{children:u}),w.jsxs(A.div,{flex:"1",maxWidth:"100%",children:[o&&w.jsx(cT,{id:c==null?void 0:c.title,children:o}),a&&w.jsx(lT,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&w.jsx(D0,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function fT(e={}){const{render:t,toastComponent:n=Ij}=e;return o=>typeof t=="function"?t({...o,...e}):w.jsx(n,{...o,...e})}function Aj(e,t){const n=o=>{var i;return{...t,...o,position:xj((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},r=o=>{const i=n(o),s=fT(i);return cr.notify(s,i)};return r.update=(o,i)=>{cr.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Kt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Kt(i.error,a)}))},r.closeAll=cr.closeAll,r.close=cr.close,r.isActive=cr.isActive,r}var[Dj,Fj]=Ge({name:"ToastOptionsContext",strict:!1}),Lj=e=>{const t=g.useSyncExternalStore(cr.subscribe,cr.getState,cr.getState),{motionVariants:n,component:r=sT,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:GN(a),children:w.jsx(Do,{initial:!1,children:l.map(u=>w.jsx(r,{motionVariants:n,...u},u.id))})},a)});return w.jsx(Ws,{...o,children:s})};function mee(e){const{theme:t}=rP(),n=Fj();return g.useMemo(()=>Aj(t.direction,{...n,...e}),[e,t.direction,n])}var Nj=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return w.jsxs(UN,{theme:r,...i,children:[w.jsx(Dj,{value:o==null?void 0:o.defaultOptions,children:n}),w.jsx(Lj,{...o})]})},vee=Nj(CP),Vj=Object.defineProperty,zj=(e,t,n)=>t in e?Vj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,je=(e,t,n)=>(zj(e,typeof t!="symbol"?t+"":t,n),n);function mx(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Bj=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function vx(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function gx(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var iv=typeof window<"u"?g.useLayoutEffect:g.useEffect,wd=e=>e,jj=class{constructor(){je(this,"descendants",new Map),je(this,"register",e=>{if(e!=null)return Bj(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),je(this,"unregister",e=>{this.descendants.delete(e);const t=mx(Array.from(this.descendants.keys()));this.assignIndex(t)}),je(this,"destroy",()=>{this.descendants.clear()}),je(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),je(this,"count",()=>this.descendants.size),je(this,"enabledCount",()=>this.enabledValues().length),je(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),je(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),je(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),je(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),je(this,"first",()=>this.item(0)),je(this,"firstEnabled",()=>this.enabledItem(0)),je(this,"last",()=>this.item(this.descendants.size-1)),je(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),je(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),je(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),je(this,"next",(e,t=!0)=>{const n=vx(e,this.count(),t);return this.item(n)}),je(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=vx(r,this.enabledCount(),t);return this.enabledItem(o)}),je(this,"prev",(e,t=!0)=>{const n=gx(e,this.count()-1,t);return this.item(n)}),je(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=gx(r,this.enabledCount()-1,t);return this.enabledItem(o)}),je(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=mx(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)})}};function Hj(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 mn(...e){return t=>{e.forEach(n=>{Hj(n,t)})}}function Wj(...e){return g.useMemo(()=>mn(...e),e)}function Uj(){const e=g.useRef(new jj);return iv(()=>()=>e.current.destroy()),e.current}var[qj,pT]=Ge({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Kj(e){const t=pT(),[n,r]=g.useState(-1),o=g.useRef(null);iv(()=>()=>{o.current&&t.unregister(o.current)},[]),iv(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=wd(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:mn(i,o)}}function hT(){return[wd(qj),()=>wd(pT()),()=>Uj(),o=>Kj(o)]}function mT(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(f,p)=>f!==p}=e,i=Rn(r),s=Rn(o),[a,l]=g.useState(n),u=t!==void 0,c=u?t:a,d=Rn(f=>{const m=typeof f=="function"?f(c):f;s(c,m)&&(u||l(m),i(m))},[u,i,c,s]);return[c,d]}var Jo={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ua={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function sv(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return ua.slideRight;case"left":return ua.slideLeft;case"bottom":return ua.slideDown;case"top":return ua.slideUp;default:return ua.slideRight}}var ui={enter:{duration:.2,ease:Jo.easeOut},exit:{duration:.1,ease:Jo.easeIn}},Gn={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})},Gj=e=>e!=null&&parseInt(e.toString(),10)>0,yx={exit:{height:{duration:.2,ease:Jo.ease},opacity:{duration:.3,ease:Jo.ease}},enter:{height:{duration:.3,ease:Jo.ease},opacity:{duration:.4,ease:Jo.ease}}},Yj={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{...e&&{opacity:Gj(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(i=n==null?void 0:n.exit)!=null?i:Gn.exit(yx.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(i=n==null?void 0:n.enter)!=null?i:Gn.enter(yx.enter,o)}}},Xj=g.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:a,className:l,transition:u,transitionEnd:c,...d}=e,[f,p]=g.useState(!1);g.useEffect(()=>{const y=setTimeout(()=>{p(!0)});return()=>clearTimeout(y)},[]),k3({condition:Number(i)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(i.toString())>0,h={startingHeight:i,endingHeight:s,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:c==null?void 0:c.enter,exit:r?c==null?void 0:c.exit:{...c==null?void 0:c.exit,display:m?"block":"none"}}},S=r?n:!0,v=n||r?"enter":"exit";return w.jsx(Do,{initial:!1,custom:h,children:S&&w.jsx(Xr.div,{ref:t,...d,className:Z("chakra-collapse",l),style:{overflow:"hidden",display:"block",...a},custom:h,variants:Yj,initial:r?"exit":!1,animate:v,exit:"exit"})})});Xj.displayName="Collapse";var Qj={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Gn.enter(ui.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Gn.exit(ui.exit,n),transitionEnd:t==null?void 0:t.exit}}},vT={initial:"exit",animate:"enter",exit:"exit",variants:Qj},Zj=g.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:a,delay:l,...u}=t,c=o||r?"enter":"exit",d=r?o&&r:!0,f={transition:s,transitionEnd:a,delay:l};return w.jsx(Do,{custom:f,children:d&&w.jsx(Xr.div,{ref:n,className:Z("chakra-fade",i),custom:f,...vT,animate:c,...u})})});Zj.displayName="Fade";var Jj={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(i=n==null?void 0:n.exit)!=null?i:Gn.exit(ui.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Gn.enter(ui.enter,n),transitionEnd:e==null?void 0:e.enter}}},gT={initial:"exit",animate:"enter",exit:"exit",variants:Jj},e8=g.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:a,transition:l,transitionEnd:u,delay:c,...d}=t,f=r?o&&r:!0,p=o||r?"enter":"exit",m={initialScale:s,reverse:i,transition:l,transitionEnd:u,delay:c};return w.jsx(Do,{custom:m,children:f&&w.jsx(Xr.div,{ref:n,className:Z("chakra-offset-slide",a),...gT,animate:p,custom:m,...d})})});e8.displayName="ScaleFade";var t8={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:(i=n==null?void 0:n.exit)!=null?i:Gn.exit(ui.exit,o),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:Gn.enter(ui.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{var s;const a={x:t,y:e};return{opacity:0,transition:(s=n==null?void 0:n.exit)!=null?s:Gn.exit(ui.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Pa={initial:"initial",animate:"enter",exit:"exit",variants:t8},n8=g.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:a=0,offsetY:l=8,transition:u,transitionEnd:c,delay:d,...f}=t,p=r?o&&r:!0,m=o||r?"enter":"exit",h={offsetX:a,offsetY:l,reverse:i,transition:u,transitionEnd:c,delay:d};return w.jsx(Do,{custom:h,children:p&&w.jsx(Xr.div,{ref:n,className:Z("chakra-offset-slide",s),custom:h,...Pa,animate:m,...f})})});n8.displayName="SlideFade";var bx={exit:{duration:.15,ease:Jo.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},r8={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{var o;const{exit:i}=sv({direction:e});return{...i,transition:(o=t==null?void 0:t.exit)!=null?o:Gn.exit(bx.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{var o;const{enter:i}=sv({direction:e});return{...i,transition:(o=n==null?void 0:n.enter)!=null?o:Gn.enter(bx.enter,r),transitionEnd:t==null?void 0:t.enter}}},yT=g.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:a,transition:l,transitionEnd:u,delay:c,motionProps:d,...f}=t,p=sv({direction:r}),m=Object.assign({position:"fixed"},p.position,o),h=i?s&&i:!0,S=s||i?"enter":"exit",v={transitionEnd:u,transition:l,direction:r,delay:c};return w.jsx(Do,{custom:v,children:h&&w.jsx(Xr.div,{...f,ref:n,initial:"exit",className:Z("chakra-slide",a),animate:S,exit:"exit",custom:v,variants:r8,style:m,...d})})});yT.displayName="Slide";var av=U(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return w.jsx("img",{width:r,height:o,ref:n,alt:i,...s})});av.displayName="NativeImage";function o8(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=g.useState("pending");g.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=g.useRef(),f=g.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=h=>{p(),c("loaded"),o==null||o(h)},m.onerror=h=>{p(),c("failed"),i==null||i(h)},d.current=m},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Ir(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var i8=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function s8(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var a8=U(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,h=r!==void 0||o!==void 0,S=u!=null||c||!h,v=o8({...t,crossOrigin:d,ignoreFallback:S}),y=i8(v,f),b={ref:n,objectFit:l,objectPosition:a,...S?m:s8(m,["onError","onLoad"])};return y?o||w.jsx(A.img,{as:av,className:"chakra-image__placeholder",src:r,...b}):w.jsx(A.img,{as:av,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...b})});a8.displayName="Image";function F0(e){return g.Children.toArray(e).filter(t=>g.isValidElement(t))}var[gee,l8]=Ge({strict:!1,name:"ButtonGroupContext"});function u8(e){const[t,n]=g.useState(!e);return{ref:g.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function lv(e){const{children:t,className:n,...r}=e,o=g.isValidElement(t)?g.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Z("chakra-button__icon",n);return w.jsx(A.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}lv.displayName="ButtonIcon";function uv(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=w.jsx(Vf,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Z("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=g.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return w.jsx(A.div,{className:l,...a,__css:c,children:o})}uv.displayName="ButtonSpinner";var bT=U((e,t)=>{const n=l8(),r=en("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:h,as:S,...v}=Ye(e),y=g.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:b,type:x}=u8(S),k={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return w.jsxs(A.button,{ref:Wj(t,b),as:S,type:f??x,"data-active":ce(s),"data-loading":ce(i),__css:y,className:Z("chakra-button",h),...v,disabled:o||i,children:[i&&m==="start"&&w.jsx(uv,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||w.jsx(A.span,{opacity:0,children:w.jsx(Sx,{...k})}):w.jsx(Sx,{...k}),i&&m==="end"&&w.jsx(uv,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});bT.displayName="Button";function Sx(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx(lv,{marginEnd:o,children:t}),r,n&&w.jsx(lv,{marginStart:o,children:n})]})}var c8=U((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=g.isValidElement(a)?g.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return w.jsx(bT,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});c8.displayName="IconButton";var[d8,f8]=Ge({name:"CheckboxGroupContext",strict:!1});function xx(e){return e&&$t(e)&&$t(e.target)}function p8(e={}){const{defaultValue:t,value:n,onChange:r,isDisabled:o,isNative:i}=e,s=Rn(r),[a,l]=mT({value:n,defaultValue:t||[],onChange:s}),u=g.useCallback(d=>{if(!a)return;const f=xx(d)?d.target.checked:!a.includes(d),p=xx(d)?d.target.value:d,m=f?[...a,p]:a.filter(h=>String(h)!==String(p));l(m)},[l,a]),c=g.useCallback((d={})=>({...d,[i?"checked":"isChecked"]:a.some(p=>String(d.value)===String(p)),onChange:u}),[u,i,a]);return{value:a,isDisabled:o,onChange:u,setValue:l,getCheckboxProps:c}}function h8(e){const{colorScheme:t,size:n,variant:r,children:o,isDisabled:i}=e,{value:s,onChange:a}=p8(e),l=g.useMemo(()=>({size:n,onChange:a,colorScheme:t,value:s,variant:r,isDisabled:i}),[n,a,t,s,r,i]);return w.jsx(d8,{value:l,children:o})}h8.displayName="CheckboxGroup";function m8(e){const[t,n]=g.useState(e),[r,o]=g.useState(!1);return e!==t&&(o(!0),n(e)),r}function v8(e){return w.jsx(A.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:w.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function g8(e){return w.jsx(A.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:w.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function y8(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?g8:v8;return n||t?w.jsx(A.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:w.jsx(o,{...r})}):null}var[b8,ST]=Ge({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[S8,zf]=Ge({strict:!1,name:"FormControlContext"});function x8(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=g.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=g.useState(!1),[m,h]=g.useState(!1),[S,v]=g.useState(!1),y=g.useCallback((C={},E=null)=>({id:d,...C,ref:mn(E,_=>{_&&h(!0)})}),[d]),b=g.useCallback((C={},E=null)=>({...C,ref:E,"data-focus":ce(S),"data-disabled":ce(o),"data-invalid":ce(r),"data-readonly":ce(i),id:C.id!==void 0?C.id:u,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,S,r,i,u]),x=g.useCallback((C={},E=null)=>({id:c,...C,ref:mn(E,_=>{_&&p(!0)}),"aria-live":"polite"}),[c]),k=g.useCallback((C={},E=null)=>({...C,...s,ref:E,role:"group","data-focus":ce(S),"data-disabled":ce(o),"data-invalid":ce(r),"data-readonly":ce(i)}),[s,o,S,r,i]),P=g.useCallback((C={},E=null)=>({...C,ref:E,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:h,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:x,getRootProps:k,getLabelProps:b,getRequiredIndicatorProps:P}}var w8=U(function(t,n){const r=ut("Form",t),o=Ye(t),{getRootProps:i,htmlProps:s,...a}=x8(o),l=Z("chakra-form-control",t.className);return w.jsx(S8,{value:a,children:w.jsx(b8,{value:r,children:w.jsx(A.div,{...i({},n),className:l,__css:r.container})})})});w8.displayName="FormControl";var k8=U(function(t,n){const r=zf(),o=ST(),i=Z("chakra-form__helper-text",t.className);return w.jsx(A.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});k8.displayName="FormHelperText";var C8=U(function(t,n){var r;const o=en("FormLabel",t),i=Ye(t),{className:s,children:a,requiredIndicator:l=w.jsx(xT,{}),optionalIndicator:u=null,...c}=i,d=zf(),f=(r=d==null?void 0:d.getLabelProps(c,n))!=null?r:{ref:n,...c};return w.jsxs(A.label,{...f,className:Z("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...o},children:[a,d!=null&&d.isRequired?l:u]})});C8.displayName="FormLabel";var xT=U(function(t,n){const r=zf(),o=ST();if(!(r!=null&&r.isRequired))return null;const i=Z("chakra-form__required-indicator",t.className);return w.jsx(A.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});xT.displayName="RequiredIndicator";function L0(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=wT(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":$p(n),"aria-required":$p(o),"aria-readonly":$p(r)}}function wT(e){var t,n,r;const o=zf(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...h}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&S.push(o.feedbackId),o!=null&&o.hasHelpText&&S.push(o.helpTextId),{...h,"aria-describedby":S.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=a??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Ee(o==null?void 0:o.onFocus,p),onBlur:Ee(o==null?void 0:o.onBlur,m)}}var P8={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},E8=()=>typeof document<"u",wx=!1,Zl=null,gi=!1,cv=!1,dv=new Set;function N0(e,t){dv.forEach(n=>n(e,t))}var T8=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function _8(e){return!(e.metaKey||!T8&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function kx(e){gi=!0,_8(e)&&(Zl="keyboard",N0("keyboard",e))}function Oi(e){if(Zl="pointer",e.type==="mousedown"||e.type==="pointerdown"){gi=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;N0("pointer",e)}}function $8(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function O8(e){$8(e)&&(gi=!0,Zl="virtual")}function R8(e){e.target===window||e.target===document||(!gi&&!cv&&(Zl="virtual",N0("virtual",e)),gi=!1,cv=!1)}function M8(){gi=!1,cv=!0}function Cx(){return Zl!=="pointer"}function I8(){if(!E8()||wx)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){gi=!0,e.apply(this,n)},document.addEventListener("keydown",kx,!0),document.addEventListener("keyup",kx,!0),document.addEventListener("click",O8,!0),window.addEventListener("focus",R8,!0),window.addEventListener("blur",M8,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Oi,!0),document.addEventListener("pointermove",Oi,!0),document.addEventListener("pointerup",Oi,!0)):(document.addEventListener("mousedown",Oi,!0),document.addEventListener("mousemove",Oi,!0),document.addEventListener("mouseup",Oi,!0)),wx=!0}function A8(e){I8(),e(Cx());const t=()=>e(Cx());return dv.add(t),()=>{dv.delete(t)}}function D8(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function F8(e={}){const t=wT(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:m,name:h,value:S,tabIndex:v=void 0,"aria-label":y,"aria-labelledby":b,"aria-invalid":x,...k}=e,P=D8(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=Rn(p),E=Rn(a),_=Rn(l),[$,M]=g.useState(!1),[F,W]=g.useState(!1),[re,H]=g.useState(!1),[N,R]=g.useState(!1);g.useEffect(()=>A8(M),[]);const O=g.useRef(null),[D,V]=g.useState(!0),[oe,B]=g.useState(!!c),ee=d!==void 0,j=ee?d:oe,te=g.useCallback(ne=>{if(r||n){ne.preventDefault();return}ee||B(j?ne.target.checked:m?!0:ne.target.checked),C==null||C(ne)},[r,n,j,ee,m,C]);Ir(()=>{O.current&&(O.current.indeterminate=!!m)},[m]),Pl(()=>{n&&W(!1)},[n,W]),Ir(()=>{const ne=O.current;if(!(ne!=null&&ne.form))return;const Pe=()=>{B(!!c)};return ne.form.addEventListener("reset",Pe),()=>{var Be;return(Be=ne.form)==null?void 0:Be.removeEventListener("reset",Pe)}},[]);const ae=n&&!f,we=g.useCallback(ne=>{ne.key===" "&&R(!0)},[R]),Se=g.useCallback(ne=>{ne.key===" "&&R(!1)},[R]);Ir(()=>{if(!O.current)return;O.current.checked!==j&&B(O.current.checked)},[O.current]);const xt=g.useCallback((ne={},Pe=null)=>{const Be=nt=>{F&&nt.preventDefault(),R(!0)};return{...ne,ref:Pe,"data-active":ce(N),"data-hover":ce(re),"data-checked":ce(j),"data-focus":ce(F),"data-focus-visible":ce(F&&$),"data-indeterminate":ce(m),"data-disabled":ce(n),"data-invalid":ce(i),"data-readonly":ce(r),"aria-hidden":!0,onMouseDown:Ee(ne.onMouseDown,Be),onMouseUp:Ee(ne.onMouseUp,()=>R(!1)),onMouseEnter:Ee(ne.onMouseEnter,()=>H(!0)),onMouseLeave:Ee(ne.onMouseLeave,()=>H(!1))}},[N,j,n,F,$,re,m,i,r]),Ln=g.useCallback((ne={},Pe=null)=>({...ne,ref:Pe,"data-active":ce(N),"data-hover":ce(re),"data-checked":ce(j),"data-focus":ce(F),"data-focus-visible":ce(F&&$),"data-indeterminate":ce(m),"data-disabled":ce(n),"data-invalid":ce(i),"data-readonly":ce(r)}),[N,j,n,F,$,re,m,i,r]),Bt=g.useCallback((ne={},Pe=null)=>({...P,...ne,ref:mn(Pe,Be=>{Be&&V(Be.tagName==="LABEL")}),onClick:Ee(ne.onClick,()=>{var Be;D||((Be=O.current)==null||Be.click(),requestAnimationFrame(()=>{var nt;(nt=O.current)==null||nt.focus({preventScroll:!0})}))}),"data-disabled":ce(n),"data-checked":ce(j),"data-invalid":ce(i)}),[P,n,j,i,D]),pe=g.useCallback((ne={},Pe=null)=>({...ne,ref:mn(O,Pe),type:"checkbox",name:h,value:S,id:s,tabIndex:v,onChange:Ee(ne.onChange,te),onBlur:Ee(ne.onBlur,E,()=>W(!1)),onFocus:Ee(ne.onFocus,_,()=>W(!0)),onKeyDown:Ee(ne.onKeyDown,we),onKeyUp:Ee(ne.onKeyUp,Se),required:o,checked:j,disabled:ae,readOnly:r,"aria-label":y,"aria-labelledby":b,"aria-invalid":x?!!x:i,"aria-describedby":u,"aria-disabled":n,style:P8}),[h,S,s,te,E,_,we,Se,o,j,ae,r,y,b,x,i,u,n,v]),tt=g.useCallback((ne={},Pe=null)=>({...ne,ref:Pe,onMouseDown:Ee(ne.onMouseDown,L8),"data-disabled":ce(n),"data-checked":ce(j),"data-invalid":ce(i)}),[j,n,i]);return{state:{isInvalid:i,isFocused:F,isChecked:j,isActive:N,isHovered:re,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Bt,getCheckboxProps:xt,getIndicatorProps:Ln,getInputProps:pe,getLabelProps:tt,htmlProps:P}}function L8(e){e.preventDefault(),e.stopPropagation()}var N8={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},V8={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},z8=Xn({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),B8=Xn({from:{opacity:0},to:{opacity:1}}),j8=Xn({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),H8=U(function(t,n){const r=f8(),o={...r,...t},i=ut("Checkbox",o),s=Ye(t),{spacing:a="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:f=w.jsx(y8,{}),isChecked:p,isDisabled:m=r==null?void 0:r.isDisabled,onChange:h,inputProps:S,...v}=s;let y=p;r!=null&&r.value&&s.value&&(y=r.value.includes(s.value));let b=h;r!=null&&r.onChange&&s.value&&(b=P3(r.onChange,h));const{state:x,getInputProps:k,getCheckboxProps:P,getLabelProps:C,getRootProps:E}=F8({...v,isDisabled:m,isChecked:y,onChange:b}),_=m8(x.isChecked),$=g.useMemo(()=>({animation:_?x.isIndeterminate?`${B8} 20ms linear, ${j8} 200ms linear`:`${z8} 200ms linear`:void 0,fontSize:d,color:c,...i.icon}),[c,d,_,x.isIndeterminate,i.icon]),M=g.cloneElement(f,{__css:$,isIndeterminate:x.isIndeterminate,isChecked:x.isChecked});return w.jsxs(A.label,{__css:{...V8,...i.container},className:Z("chakra-checkbox",l),...E(),children:[w.jsx("input",{className:"chakra-checkbox__input",...k(S,n)}),w.jsx(A.span,{__css:{...N8,...i.control},className:"chakra-checkbox__control",...P(),children:M}),u&&w.jsx(A.span,{className:"chakra-checkbox__label",...C(),__css:{marginStart:a,...i.label},children:u})]})});H8.displayName="Checkbox";function wc(e,t,n,r){const o=Rn(n);return g.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function kT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fv="data-focus-lock",CT="data-focus-lock-disabled",W8="data-no-focus-lock",U8="data-autofocus-inside",q8="data-no-autofocus";function lh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function K8(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var G8=typeof window<"u"?g.useLayoutEffect:g.useEffect,Px=new WeakMap;function PT(e,t){var n=K8(null,function(r){return e.forEach(function(o){return lh(o,r)})});return G8(function(){var r=Px.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||lh(a,null)}),i.forEach(function(a){o.has(a)||lh(a,s)})}Px.set(n,e)},[e]),n}var uh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},dr=function(){return dr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0}).sort(f7)},h7=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],H0=h7.join(","),m7="".concat(H0,", [data-focus-guard]"),jT=function(e,t){return xr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?m7:H0)?[r]:[],jT(r))},[])},v7=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Ds([e.contentDocument.body],t):[e]},Ds=function(e,t){return e.reduce(function(n,r){var o,i=jT(r,t),s=(o=[]).concat.apply(o,i.map(function(a){return v7(a,t)}));return n.concat(s,r.parentNode?xr(r.parentNode.querySelectorAll(H0)).filter(function(a){return a===r}):[])},[])},g7=function(e){var t=e.querySelectorAll("[".concat(U8,"]"));return xr(t).map(function(n){return Ds([n])}).reduce(function(n,r){return n.concat(r)},[])},W0=function(e,t){return xr(e).filter(function(n){return LT(t,n)}).filter(function(n){return u7(n)})},Ex=function(e,t){return t===void 0&&(t=new Map),xr(e).filter(function(n){return NT(t,n)})},U0=function(e,t,n){return j0(W0(Ds(e,n),t),!0,n)},Cd=function(e,t){return j0(W0(Ds(e),t),!1)},y7=function(e,t){return W0(g7(e),t)},ci=function(e,t){return e.shadowRoot?ci(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:xr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?ci(o,t):!1}return ci(n,t)})},b7=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,a){return!t.has(a)})},HT=function(e){return e.parentNode?HT(e.parentNode):e},q0=function(e){var t=bi(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(fv);return n.push.apply(n,o?b7(xr(HT(r).querySelectorAll("[".concat(fv,'="').concat(o,'"]:not([').concat(CT,'="disabled"])')))):[r]),n},[])},S7=function(e){try{return e()}catch{return}},Rl=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Rl(t.shadowRoot):t instanceof HTMLIFrameElement&&S7(function(){return t.contentWindow.document})?Rl(t.contentWindow.document):t}},x7=function(e,t){return e===t},w7=function(e,t){return!!xr(e.querySelectorAll("iframe")).some(function(n){return x7(n,t)})},WT=function(e,t){return t===void 0&&(t=Rl(AT(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:q0(e).some(function(n){return ci(n,t)||w7(n,t)})},k7=function(e){e===void 0&&(e=document);var t=Rl(e);return t?xr(e.querySelectorAll("[".concat(W8,"]"))).some(function(n){return ci(n,t)}):!1},C7=function(e,t){return t.filter(BT).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},K0=function(e,t){return BT(e)&&e.name?C7(e,t):e},P7=function(e){var t=new Set;return e.forEach(function(n){return t.add(K0(n,e))}),e.filter(function(n){return t.has(n)})},Tx=function(e){return e[0]&&e.length>1?K0(e[0],e):e[0]},_x=function(e,t){return e.indexOf(K0(t,e))},hv="NEW_FOCUS",E7=function(e,t,n,r,o){var i=e.length,s=e[0],a=e[i-1],l=B0(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,c=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(u===-1)return d!==-1?d:hv;if(d===-1)return hv;var f=u-c,p=n.indexOf(s),m=n.indexOf(a),h=P7(n),S=r!==void 0?h.indexOf(r):-1,v=S-(o?h.indexOf(o):u);if(!f&&d>=0||t.length===0)return d;var y=_x(e,t[0]),b=_x(e,t[t.length-1]);if(u<=p&&l&&Math.abs(f)>1)return b;if(u>=m&&l&&Math.abs(f)>1)return y;if(f&&Math.abs(v)>1)return d;if(u<=p)return b;if(u>m)return y;if(f)return Math.abs(f)>1?d:(i+d+f)%i}},T7=function(e){return function(t){var n,r=(n=VT(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$x=function(e,t,n){var r=e.map(function(i){var s=i.node;return s}),o=Ex(r.filter(T7(n)));return o&&o.length?Tx(o):Tx(Ex(t))},mv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&mv(e.parentNode.host||e.parentNode,t),t},ch=function(e,t){for(var n=mv(e),r=mv(t),o=0;o=0)return i}return!1},UT=function(e,t,n){var r=bi(e),o=bi(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(a){s=ch(s||a,a)||s,n.filter(Boolean).forEach(function(l){var u=ch(i,l);u&&(!s||ci(u,s)?s=u:s=ch(u,s))})}),s},Ox=function(e,t){return e.reduce(function(n,r){return n.concat(y7(r,t))},[])},_7=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(d7)},$7=function(e,t){var n=Rl(bi(e).length>0?document:AT(e).ownerDocument),r=q0(e).filter(pv),o=UT(n||e,e,r),i=new Map,s=Cd(r,i),a=s.filter(function(m){var h=m.node;return pv(h)});if(a[0]){var l=Cd([o],i).map(function(m){var h=m.node;return h}),u=_7(l,a),c=u.map(function(m){var h=m.node;return h}),d=u.filter(function(m){var h=m.tabIndex;return h>=0}).map(function(m){var h=m.node;return h}),f=E7(c,d,l,n,t);if(f===hv){var p=$x(s,d,Ox(r,i))||$x(s,c,Ox(r,i));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return f===void 0?f:u[f]}},O7=function(e){var t=q0(e).filter(pv),n=UT(e,e,t),r=j0(Ds([n],!0),!0,!0),o=Ds(t,!1);return r.map(function(i){var s=i.node,a=i.index;return{node:s,index:a,lockItem:o.indexOf(s)>=0,guard:B0(s)}})},G0=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},dh=0,fh=!1,qT=function(e,t,n){n===void 0&&(n={});var r=$7(e,t);if(!fh&&r){if(dh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),fh=!0,setTimeout(function(){fh=!1},1);return}dh++,G0(r.node,n.focusOptions),dh--}};function ca(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var R7=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:ca(n),parent:ca(n.parentElement),left:ca(n.previousElementSibling),right:ca(n.nextElementSibling)}),n=n.parentElement;return{element:ca(e),stack:t,ownerDocument:e.ownerDocument}},M7=function(e){var t,n,r,o,i;if(e)for(var s=e.stack,a=e.ownerDocument,l=new Map,u=0,c=s;u-1&&(p.filter(function(h){var S=h.guard,v=h.node;return S&&v.dataset.focusAutoGuard}).forEach(function(h){var S=h.node;return S.removeAttribute("tabIndex")}),Rx(m,p.length,1,p),Rx(m,-1,-1,p))}}}return t},YT=function(t){Pd()&&t&&(t.stopPropagation(),t.preventDefault())},X0=function(){return Y0(Pd)},Q7=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||q7(r,n)},Z7=function(){return null},XT=function(){Ml="just",Y0(function(){Ml="meanwhile"})},J7=function(){document.addEventListener("focusin",YT),document.addEventListener("focusout",X0),window.addEventListener("blur",XT)},eH=function(){document.removeEventListener("focusin",YT),document.removeEventListener("focusout",X0),window.removeEventListener("blur",XT)};function tH(e){return e.filter(function(t){var n=t.disabled;return!n})}var QT={moveFocusInside:qT,focusInside:WT,focusNextElement:L7,focusPrevElement:N7,focusFirstElement:V7,focusLastElement:z7,captureFocusRestore:I7};function nH(e){var t=e.slice(-1)[0];t&&!ys&&J7();var n=ys,r=n&&t&&t.id===n.id;ys=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(ss=null,(!r||n.observed!==t.observed)&&t.onActivation(QT),Pd(),Y0(Pd)):(eH(),ss=null)}RT.assignSyncMedium(Q7);MT.assignMedium(X0);Q8.assignMedium(function(e){return e(QT)});const rH=r7(tH,nH)(Z7);var vv=g.forwardRef(function(t,n){return g.createElement(z0,K({sideCar:rH,ref:n},t))}),ZT=z0.propTypes||{};ZT.sideCar;kT(ZT,["sideCar"]);vv.propTypes={};function JT(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Q0(e){var t;if(!JT(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function oH(e){var t,n;return(n=(t=e_(e))==null?void 0:t.defaultView)!=null?n:window}function e_(e){return JT(e)?e.ownerDocument:document}function iH(e){return e_(e).activeElement}function sH(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}function aH(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function t_(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Q0(e)&&sH(e)?e:t_(aH(e))}var n_=e=>e.hasAttribute("tabindex"),lH=e=>n_(e)&&e.tabIndex===-1;function uH(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function r_(e){return e.parentElement&&r_(e.parentElement)?!0:e.hidden}function cH(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function o_(e){if(!Q0(e)||r_(e)||uH(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():cH(e)?!0:n_(e)}function dH(e){return e?Q0(e)&&o_(e)&&!lH(e):!1}var fH=["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]"],pH=fH.join(),hH=e=>e.offsetWidth>0&&e.offsetHeight>0;function mH(e){const t=Array.from(e.querySelectorAll(pH));return t.unshift(e),t.filter(n=>o_(n)&&hH(n))}var Mx,vH=(Mx=vv.default)!=null?Mx:vv,i_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:a,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=g.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&mH(r.current).length===0&&requestAnimationFrame(()=>{var m;(m=r.current)==null||m.focus()})},[t,r]),d=g.useCallback(()=>{var p;(p=n==null?void 0:n.current)==null||p.focus()},[n]),f=o&&!n;return w.jsx(vH,{crossFrame:u,persistentFocus:l,autoFocus:a,disabled:s,onActivation:c,onDeactivation:d,returnFocus:f,children:i})};i_.displayName="FocusLock";var gH=pN?g.useLayoutEffect:g.useEffect;function Ix(e,t=[]){const n=g.useRef(e);return gH(()=>{n.current=e}),g.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function yH(e,t){const n=g.useId();return g.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function bH(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function yee(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Ix(n),s=Ix(t),[a,l]=g.useState(e.defaultIsOpen||!1),[u,c]=bH(r,a),d=yH(o,"disclosure"),f=g.useCallback(()=>{u||l(!1),s==null||s()},[u,s]),p=g.useCallback(()=>{u||l(!0),i==null||i()},[u,i]),m=g.useCallback(()=>{(c?f:p)()},[c,p,f]);return{isOpen:!!c,onOpen:p,onClose:f,onToggle:m,isControlled:u,getButtonProps:(h={})=>({...h,"aria-expanded":c,"aria-controls":d,onClick:yN(h.onClick,m)}),getDisclosureProps:(h={})=>({...h,hidden:!c,id:d})}}var SH=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=Ax[t.format]||Ax.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=kH("message"in t?t.message:wH),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return l}var PH=CH;const EH=Kd(PH);function bee(e,t={}){const[n,r]=g.useState(!1),[o,i]=g.useState(e);g.useEffect(()=>i(e),[e]);const{timeout:s=1500,...a}=typeof t=="number"?{timeout:t}:t,l=g.useCallback(()=>{const u=EH(o,a);r(u)},[o,a]);return g.useEffect(()=>{let u=null;return n&&(u=window.setTimeout(()=>{r(!1)},s)),()=>{u&&window.clearTimeout(u)}},[s,n]),{value:o,setValue:i,onCopy:l,hasCopied:n}}var s_=U(function(t,n){const{htmlSize:r,...o}=t,i=ut("Input",o),s=Ye(o),a=L0(s),l=Z("chakra-input",t.className);return w.jsx(A.input,{size:r,...a,__css:i.field,ref:n,className:l})});s_.displayName="Input";s_.id="Input";var TH=U(function(t,n){const r=en("Link",t),{className:o,isExternal:i,...s}=Ye(t);return w.jsx(A.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Z("chakra-link",o),...s,__css:r})});TH.displayName="Link";var[_H,a_]=Ge({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Z0=U(function(t,n){const r=ut("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=Ye(t),u=F0(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return w.jsx(_H,{value:r,children:w.jsx(A.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...d},...l,children:u})})});Z0.displayName="List";var $H=U((e,t)=>{const{as:n,...r}=e;return w.jsx(Z0,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});$H.displayName="OrderedList";var OH=U(function(t,n){const{as:r,...o}=t;return w.jsx(Z0,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});OH.displayName="UnorderedList";var RH=U(function(t,n){const r=a_();return w.jsx(A.li,{ref:n,...t,__css:r.item})});RH.displayName="ListItem";var MH=U(function(t,n){const r=a_();return w.jsx(Qn,{ref:n,role:"presentation",...t,__css:r.icon})});MH.displayName="ListIcon";var l_=Object.freeze(["base","sm","md","lg","xl","2xl"]);function IH(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):$t(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function AH(e,t=l_){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}var DH=U(function(t,n){const r=en("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Ye(t),u=$N({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(A.p,{ref:n,className:Z("chakra-text",t.className),...u,...l,__css:r})});DH.displayName="Text";var FH=U(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:a,direction:l,align:u,className:c,shouldWrapChildren:d,...f}=t,p=g.useMemo(()=>d?g.Children.map(s,(m,h)=>w.jsx(u_,{children:m},h)):s,[s,d]);return w.jsx(A.div,{ref:n,className:Z("chakra-wrap",c),...f,children:w.jsx(A.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:a,alignItems:u,flexDirection:l,listStyleType:"none",gap:r,columnGap:o,rowGap:i,padding:"0"},children:p})})});FH.displayName="Wrap";var u_=U(function(t,n){const{className:r,...o}=t;return w.jsx(A.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Z("chakra-wrap__listitem",r),...o})});u_.displayName="WrapItem";var c_=e=>w.jsx(A.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});c_.displayName="StackItem";function LH(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":IH(n,o=>r[o])}}var NH=U((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=n?"row":r??"column",m=g.useMemo(()=>LH({spacing:s,direction:p}),[s,p]),h=!!u,S=!d&&!h,v=g.useMemo(()=>{const b=F0(l);return S?b:b.map((x,k)=>{const P=typeof x.key<"u"?x.key:k,C=k+1===b.length,_=d?w.jsx(c_,{children:x},P):x;if(!h)return _;const $=g.cloneElement(u,{__css:m}),M=C?null:$;return w.jsxs(g.Fragment,{children:[_,M]},P)})},[u,m,h,S,d,l]),y=Z("chakra-stack",c);return w.jsx(A.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:h?void 0:s,className:y,...f,children:v})});NH.displayName="Stack";var VH=U(function(t,n){const r=en("Heading",t),{className:o,...i}=Ye(t);return w.jsx(A.h2,{ref:n,className:Z("chakra-heading",t.className),...i,__css:r})});VH.displayName="Heading";var et=A("div");et.displayName="Box";var d_=U(function(t,n){const{size:r,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(et,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...i})});d_.displayName="Square";var zH=U(function(t,n){const{size:r,...o}=t;return w.jsx(d_,{size:r,ref:n,borderRadius:"9999px",...o})});zH.displayName="Circle";var BH=U(function(t,n){const r=en("Code",t),{className:o,...i}=Ye(t);return w.jsx(A.code,{ref:n,className:Z("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});BH.displayName="Code";var f_=U(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:a,borderStyle:l,borderColor:u,...c}=en("Divider",t),{className:d,orientation:f="horizontal",__css:p,...m}=Ye(t),h={vertical:{borderLeftWidth:r||s||a||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||a||"1px",width:"100%"}};return w.jsx(A.hr,{ref:n,"aria-orientation":f,...m,__css:{...c,border:"0",borderColor:u,borderStyle:l,...h[f],...p},className:Z("chakra-divider",d)})});f_.displayName="Divider";var jH=U(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:u};return w.jsx(A.div,{ref:n,__css:d,...c})});jH.displayName="Flex";function HH(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=WN(),i=Array.isArray(e)?e:[e];let s=Array.isArray(r)?r:[r];s=s.filter(u=>u!=null);const[a,l]=g.useState(()=>i.map((u,c)=>({media:u,matches:n?!!s[c]:o().matchMedia(u).matches})));return g.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(p=>p.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),a.map(u=>u.matches)}function WH(e,t,n=l_){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function UH(e){var t,n;const r=$t(e)?e:{fallback:e??"base"},i=Yr().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===r.fallback),l=HH(i.map(u=>u.query),{fallback:s,ssr:r.ssr}).findIndex(u=>u==!0);return(n=(t=i[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function qH(e,t){var n;const r=$t(t)?t:{fallback:t??"base"},o=UH(r),i=Yr();if(!o)return;const s=Array.from(((n=i.__breakpoints)==null?void 0:n.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(AH(e,s)).map(([l,u])=>[l,u])):e;return WH(a,o,s)}function KH(){const e=g.useRef(new Map),t=e.current,n=g.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),r=g.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return g.useEffect(()=>()=>{t.forEach((o,i)=>{r(o.el,o.type,i,o.options)})},[r,t]),{add:n,remove:r}}function ph(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function GH(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...m}=e,[h,S]=g.useState(!0),[v,y]=g.useState(!1),b=KH(),x=R=>{R&&R.tagName!=="BUTTON"&&S(!1)},k=h?d:d||0,P=n&&!r,C=g.useCallback(R=>{if(n){R.stopPropagation(),R.preventDefault();return}R.currentTarget.focus(),l==null||l(R)},[n,l]),E=g.useCallback(R=>{v&&ph(R)&&(R.preventDefault(),R.stopPropagation(),y(!1),b.remove(document,"keyup",E,!1))},[v,b]),_=g.useCallback(R=>{if(u==null||u(R),n||R.defaultPrevented||R.metaKey||!ph(R.nativeEvent)||h)return;const O=o&&R.key==="Enter";i&&R.key===" "&&(R.preventDefault(),y(!0)),O&&(R.preventDefault(),R.currentTarget.click()),b.add(document,"keyup",E,!1)},[n,h,u,o,i,b,E]),$=g.useCallback(R=>{if(c==null||c(R),n||R.defaultPrevented||R.metaKey||!ph(R.nativeEvent)||h)return;i&&R.key===" "&&(R.preventDefault(),y(!1),R.currentTarget.click())},[i,h,n,c]),M=g.useCallback(R=>{R.button===0&&(y(!1),b.remove(document,"mouseup",M,!1))},[b]),F=g.useCallback(R=>{if(R.button!==0)return;if(n){R.stopPropagation(),R.preventDefault();return}h||y(!0),R.currentTarget.focus({preventScroll:!0}),b.add(document,"mouseup",M,!1),s==null||s(R)},[n,h,s,b,M]),W=g.useCallback(R=>{R.button===0&&(h||y(!1),a==null||a(R))},[a,h]),re=g.useCallback(R=>{if(n){R.preventDefault();return}f==null||f(R)},[n,f]),H=g.useCallback(R=>{v&&(R.preventDefault(),y(!1)),p==null||p(R)},[v,p]),N=mn(t,x);return h?{...m,ref:N,type:"button","aria-disabled":P?void 0:n,disabled:P,onClick:C,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:N,role:"button","data-active":ce(v),"aria-disabled":n?"true":void 0,tabIndex:P?void 0:k,onClick:C,onMouseDown:F,onMouseUp:W,onKeyUp:$,onKeyDown:_,onMouseOver:re,onMouseLeave:H}}function YH(e){const t=e.current;if(!t)return!1;const n=iH(t);return!n||t.contains(n)?!1:!!dH(n)}function XH(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;Pl(()=>{if(!i||YH(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}var Ri=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),mt={arrowShadowColor:Ri("--popper-arrow-shadow-color"),arrowSize:Ri("--popper-arrow-size","8px"),arrowSizeHalf:Ri("--popper-arrow-size-half"),arrowBg:Ri("--popper-arrow-bg"),transformOrigin:Ri("--popper-transform-origin"),arrowOffset:Ri("--popper-arrow-offset")};function QH(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var ZH={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},JH=e=>ZH[e],Dx={scroll:!0,resize:!0};function eW(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Dx,...e}}:t={enabled:e,options:Dx},t}var tW={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},nW={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Fx(e)},effect:({state:e})=>()=>{Fx(e)}},Fx=e=>{e.elements.popper.style.setProperty(mt.transformOrigin.var,JH(e.placement))},rW={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{oW(e)}},oW=e=>{var t;if(!e.placement)return;const n=iW(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:mt.arrowSize.varRef,height:mt.arrowSize.varRef,zIndex:-1});const r={[mt.arrowSizeHalf.var]:`calc(${mt.arrowSize.varRef} / 2 - 1px)`,[mt.arrowOffset.var]:`calc(${mt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},iW=e=>{if(e.startsWith("top"))return{property:"bottom",value:mt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:mt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:mt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:mt.arrowOffset.varRef}},sW={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Lx(e)},effect:({state:e})=>()=>{Lx(e)}},Lx=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=QH(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:mt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},aW={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},lW={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function uW(e,t="ltr"){var n,r;const o=((n=aW[e])==null?void 0:n[t])||e;return t==="ltr"?o:(r=lW[e])!=null?r:o}var Qt="top",Dn="bottom",Fn="right",Zt="left",J0="auto",Jl=[Qt,Dn,Fn,Zt],Fs="start",Il="end",cW="clippingParents",p_="viewport",da="popper",dW="reference",Nx=Jl.reduce(function(e,t){return e.concat([t+"-"+Fs,t+"-"+Il])},[]),h_=[].concat(Jl,[J0]).reduce(function(e,t){return e.concat([t,t+"-"+Fs,t+"-"+Il])},[]),fW="beforeRead",pW="read",hW="afterRead",mW="beforeMain",vW="main",gW="afterMain",yW="beforeWrite",bW="write",SW="afterWrite",xW=[fW,pW,hW,mW,vW,gW,yW,bW,SW];function br(e){return e?(e.nodeName||"").toLowerCase():null}function vn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Si(e){var t=vn(e).Element;return e instanceof t||e instanceof Element}function Mn(e){var t=vn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ey(e){if(typeof ShadowRoot>"u")return!1;var t=vn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Mn(i)||!br(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function kW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Mn(o)||!br(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const CW={name:"applyStyles",enabled:!0,phase:"write",fn:wW,effect:kW,requires:["computeStyles"]};function gr(e){return e.split("-")[0]}var di=Math.max,Ed=Math.min,Ls=Math.round;function gv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function m_(){return!/^((?!chrome|android).)*safari/i.test(gv())}function Ns(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Mn(e)&&(o=e.offsetWidth>0&&Ls(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ls(r.height)/e.offsetHeight||1);var s=Si(e)?vn(e):window,a=s.visualViewport,l=!m_()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function ty(e){var t=Ns(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function v_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ey(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wr(e){return vn(e).getComputedStyle(e)}function PW(e){return["table","td","th"].indexOf(br(e))>=0}function Fo(e){return((Si(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bf(e){return br(e)==="html"?e:e.assignedSlot||e.parentNode||(ey(e)?e.host:null)||Fo(e)}function Vx(e){return!Mn(e)||Wr(e).position==="fixed"?null:e.offsetParent}function EW(e){var t=/firefox/i.test(gv()),n=/Trident/i.test(gv());if(n&&Mn(e)){var r=Wr(e);if(r.position==="fixed")return null}var o=Bf(e);for(ey(o)&&(o=o.host);Mn(o)&&["html","body"].indexOf(br(o))<0;){var i=Wr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function eu(e){for(var t=vn(e),n=Vx(e);n&&PW(n)&&Wr(n).position==="static";)n=Vx(n);return n&&(br(n)==="html"||br(n)==="body"&&Wr(n).position==="static")?t:n||EW(e)||t}function ny(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return di(e,Ed(t,n))}function TW(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function g_(){return{top:0,right:0,bottom:0,left:0}}function y_(e){return Object.assign({},g_(),e)}function b_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var _W=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,y_(typeof t!="number"?t:b_(t,Jl))};function $W(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=gr(n.placement),l=ny(a),u=[Zt,Fn].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=_W(o.padding,n),f=ty(i),p=l==="y"?Qt:Zt,m=l==="y"?Dn:Fn,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],S=s[l]-n.rects.reference[l],v=eu(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=h/2-S/2,x=d[p],k=y-f[c]-d[m],P=y/2-f[c]/2+b,C=Qa(x,P,k),E=l;n.modifiersData[r]=(t={},t[E]=C,t.centerOffset=C-P,t)}}function OW(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||v_(t.elements.popper,o)&&(t.elements.arrow=o))}const RW={name:"arrow",enabled:!0,phase:"main",fn:$W,effect:OW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var MW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IW(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ls(n*o)/o||0,y:Ls(r*o)/o||0}}function zx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,h=m===void 0?0:m,S=typeof c=="function"?c({x:p,y:h}):{x:p,y:h};p=S.x,h=S.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Zt,x=Qt,k=window;if(u){var P=eu(n),C="clientHeight",E="clientWidth";if(P===vn(n)&&(P=Fo(n),Wr(P).position!=="static"&&a==="absolute"&&(C="scrollHeight",E="scrollWidth")),P=P,o===Qt||(o===Zt||o===Fn)&&i===Il){x=Dn;var _=d&&P===k&&k.visualViewport?k.visualViewport.height:P[C];h-=_-r.height,h*=l?1:-1}if(o===Zt||(o===Qt||o===Dn)&&i===Il){b=Fn;var $=d&&P===k&&k.visualViewport?k.visualViewport.width:P[E];p-=$-r.width,p*=l?1:-1}}var M=Object.assign({position:a},u&&MW),F=c===!0?IW({x:p,y:h},vn(n)):{x:p,y:h};if(p=F.x,h=F.y,l){var W;return Object.assign({},M,(W={},W[x]=y?"0":"",W[b]=v?"0":"",W.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",W))}return Object.assign({},M,(t={},t[x]=y?h+"px":"",t[b]=v?p+"px":"",t.transform="",t))}function AW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:gr(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AW,data:{}};var Mu={passive:!0};function FW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=vn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Mu)}),a&&l.addEventListener("resize",n.update,Mu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Mu)}),a&&l.removeEventListener("resize",n.update,Mu)}}const LW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FW,data:{}};var NW={left:"right",right:"left",bottom:"top",top:"bottom"};function kc(e){return e.replace(/left|right|bottom|top/g,function(t){return NW[t]})}var VW={start:"end",end:"start"};function Bx(e){return e.replace(/start|end/g,function(t){return VW[t]})}function ry(e){var t=vn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oy(e){return Ns(Fo(e)).left+ry(e).scrollLeft}function zW(e,t){var n=vn(e),r=Fo(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=m_();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+oy(e),y:l}}function BW(e){var t,n=Fo(e),r=ry(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=di(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=di(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+oy(e),l=-r.scrollTop;return Wr(o||n).direction==="rtl"&&(a+=di(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function iy(e){var t=Wr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function S_(e){return["html","body","#document"].indexOf(br(e))>=0?e.ownerDocument.body:Mn(e)&&iy(e)?e:S_(Bf(e))}function Za(e,t){var n;t===void 0&&(t=[]);var r=S_(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=vn(r),s=o?[i].concat(i.visualViewport||[],iy(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Za(Bf(s)))}function yv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jW(e,t){var n=Ns(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jx(e,t,n){return t===p_?yv(zW(e,n)):Si(t)?jW(t,n):yv(BW(Fo(e)))}function HW(e){var t=Za(Bf(e)),n=["absolute","fixed"].indexOf(Wr(e).position)>=0,r=n&&Mn(e)?eu(e):e;return Si(r)?t.filter(function(o){return Si(o)&&v_(o,r)&&br(o)!=="body"}):[]}function WW(e,t,n,r){var o=t==="clippingParents"?HW(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=jx(e,u,r);return l.top=di(c.top,l.top),l.right=Ed(c.right,l.right),l.bottom=Ed(c.bottom,l.bottom),l.left=di(c.left,l.left),l},jx(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function x_(e){var t=e.reference,n=e.element,r=e.placement,o=r?gr(r):null,i=r?Vs(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qt:l={x:s,y:t.y-n.height};break;case Dn:l={x:s,y:t.y+t.height};break;case Fn:l={x:t.x+t.width,y:a};break;case Zt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?ny(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Fs:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Il:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Al(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?cW:a,u=n.rootBoundary,c=u===void 0?p_:u,d=n.elementContext,f=d===void 0?da:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,S=h===void 0?0:h,v=y_(typeof S!="number"?S:b_(S,Jl)),y=f===da?dW:da,b=e.rects.popper,x=e.elements[m?y:f],k=WW(Si(x)?x:x.contextElement||Fo(e.elements.popper),l,c,s),P=Ns(e.elements.reference),C=x_({reference:P,element:b,strategy:"absolute",placement:o}),E=yv(Object.assign({},b,C)),_=f===da?E:P,$={top:k.top-_.top+v.top,bottom:_.bottom-k.bottom+v.bottom,left:k.left-_.left+v.left,right:_.right-k.right+v.right},M=e.modifiersData.offset;if(f===da&&M){var F=M[o];Object.keys($).forEach(function(W){var re=[Fn,Dn].indexOf(W)>=0?1:-1,H=[Qt,Dn].indexOf(W)>=0?"y":"x";$[W]+=F[H]*re})}return $}function UW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?h_:l,c=Vs(r),d=c?a?Nx:Nx.filter(function(m){return Vs(m)===c}):Jl,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,h){return m[h]=Al(e,{placement:h,boundary:o,rootBoundary:i,padding:s})[gr(h)],m},{});return Object.keys(p).sort(function(m,h){return p[m]-p[h]})}function qW(e){if(gr(e)===J0)return[];var t=kc(e);return[Bx(e),t,Bx(t)]}function KW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,S=t.options.placement,v=gr(S),y=v===S,b=l||(y||!m?[kc(S)]:qW(S)),x=[S].concat(b).reduce(function(j,te){return j.concat(gr(te)===J0?UW(t,{placement:te,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):te)},[]),k=t.rects.reference,P=t.rects.popper,C=new Map,E=!0,_=x[0],$=0;$=0,H=re?"width":"height",N=Al(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=re?W?Fn:Zt:W?Dn:Qt;k[H]>P[H]&&(R=kc(R));var O=kc(R),D=[];if(i&&D.push(N[F]<=0),a&&D.push(N[R]<=0,N[O]<=0),D.every(function(j){return j})){_=M,E=!1;break}C.set(M,D)}if(E)for(var V=m?3:1,oe=function(te){var ae=x.find(function(we){var Se=C.get(we);if(Se)return Se.slice(0,te).every(function(xt){return xt})});if(ae)return _=ae,"break"},B=V;B>0;B--){var ee=oe(B);if(ee==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const GW={name:"flip",enabled:!0,phase:"main",fn:KW,requiresIfExists:["offset"],data:{_skip:!1}};function Hx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wx(e){return[Qt,Fn,Dn,Zt].some(function(t){return e[t]>=0})}function YW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Al(t,{elementContext:"reference"}),a=Al(t,{altBoundary:!0}),l=Hx(s,r),u=Hx(a,o,i),c=Wx(l),d=Wx(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const XW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YW};function QW(e,t,n){var r=gr(e),o=[Zt,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Zt,Fn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ZW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=h_.reduce(function(c,d){return c[d]=QW(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const JW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZW};function eU(e){var t=e.state,n=e.name;t.modifiersData[n]=x_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tU={name:"popperOffsets",enabled:!0,phase:"read",fn:eU,data:{}};function nU(e){return e==="x"?"y":"x"}function rU(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,S=Al(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=gr(t.placement),y=Vs(t.placement),b=!y,x=ny(v),k=nU(x),P=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,_=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,$=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(i){var W,re=x==="y"?Qt:Zt,H=x==="y"?Dn:Fn,N=x==="y"?"height":"width",R=P[x],O=R+S[re],D=R-S[H],V=p?-E[N]/2:0,oe=y===Fs?C[N]:E[N],B=y===Fs?-E[N]:-C[N],ee=t.elements.arrow,j=p&&ee?ty(ee):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:g_(),ae=te[re],we=te[H],Se=Qa(0,C[N],j[N]),xt=b?C[N]/2-V-Se-ae-$.mainAxis:oe-Se-ae-$.mainAxis,Ln=b?-C[N]/2+V+Se+we+$.mainAxis:B+Se+we+$.mainAxis,Bt=t.elements.arrow&&eu(t.elements.arrow),pe=Bt?x==="y"?Bt.clientTop||0:Bt.clientLeft||0:0,tt=(W=M==null?void 0:M[x])!=null?W:0,Sn=R+xt-tt-pe,ne=R+Ln-tt,Pe=Qa(p?Ed(O,Sn):O,R,p?di(D,ne):D);P[x]=Pe,F[x]=Pe-R}if(a){var Be,nt=x==="x"?Qt:Zt,wt=x==="x"?Dn:Fn,De=P[k],Ei=k==="y"?"height":"width",Ti=De+S[nt],Fy=De-S[wt],tp=[Qt,Zt].indexOf(v)!==-1,Ly=(Be=M==null?void 0:M[k])!=null?Be:0,Ny=tp?Ti:De-C[Ei]-E[Ei]-Ly+$.altAxis,Vy=tp?De+C[Ei]+E[Ei]-Ly-$.altAxis:Fy,zy=p&&tp?TW(Ny,De,Vy):Qa(p?Ny:Ti,De,p?Vy:Fy);P[k]=zy,F[k]=zy-De}t.modifiersData[r]=F}}const oU={name:"preventOverflow",enabled:!0,phase:"main",fn:rU,requiresIfExists:["offset"]};function iU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sU(e){return e===vn(e)||!Mn(e)?ry(e):iU(e)}function aU(e){var t=e.getBoundingClientRect(),n=Ls(t.width)/e.offsetWidth||1,r=Ls(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lU(e,t,n){n===void 0&&(n=!1);var r=Mn(t),o=Mn(t)&&aU(t),i=Fo(t),s=Ns(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((br(t)!=="body"||iy(i))&&(a=sU(t)),Mn(t)?(l=Ns(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=oy(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function uU(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function cU(e){var t=uU(e);return xW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function dU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fU(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ux={placement:"bottom",modifiers:[],strategy:"absolute"};function qx(){for(var e=arguments.length,t=new Array(e),n=0;n{}),b=g.useCallback(()=>{var $;!t||!m.current||!h.current||(($=y.current)==null||$.call(y),S.current=mU(m.current,h.current,{placement:v,modifiers:[sW,rW,nW,{...tW,enabled:!!f},{name:"eventListeners",...eW(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...n??[]],strategy:o}),S.current.forceUpdate(),y.current=S.current.destroy)},[v,t,n,f,s,i,a,l,u,d,c,o]);g.useEffect(()=>()=>{var $;!m.current&&!h.current&&(($=S.current)==null||$.destroy(),S.current=null)},[]);const x=g.useCallback($=>{m.current=$,b()},[b]),k=g.useCallback(($={},M=null)=>({...$,ref:mn(x,M)}),[x]),P=g.useCallback($=>{h.current=$,b()},[b]),C=g.useCallback(($={},M=null)=>({...$,ref:mn(P,M),style:{...$.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,P,f]),E=g.useCallback(($={},M=null)=>{const{size:F,shadowColor:W,bg:re,style:H,...N}=$;return{...N,ref:M,"data-popper-arrow":"",style:vU($)}},[]),_=g.useCallback(($={},M=null)=>({...$,ref:M,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=S.current)==null||$.update()},forceUpdate(){var $;($=S.current)==null||$.forceUpdate()},transformOrigin:mt.transformOrigin.varRef,referenceRef:x,popperRef:P,getPopperProps:C,getArrowProps:E,getArrowInnerProps:_,getReferenceProps:k}}function vU(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function k_(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Rn(n),s=Rn(t),[a,l]=g.useState(e.defaultIsOpen||!1),u=r!==void 0?r:a,c=r!==void 0,d=g.useId(),f=o??`disclosure-${d}`,p=g.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=g.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),h=g.useCallback(()=>{u?p():m()},[u,m,p]);function S(y={}){return{...y,"aria-expanded":u,"aria-controls":f,onClick(b){var x;(x=y.onClick)==null||x.call(y,b),h()}}}function v(y={}){return{...y,hidden:!u,id:f}}return{isOpen:u,onOpen:m,onClose:p,onToggle:h,isControlled:c,getButtonProps:S,getDisclosureProps:v}}function gU(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Rn(n),s=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;g.useEffect(()=>{if(!r)return;const a=d=>{hh(d,t)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&hh(d,t)&&(s.isPointerDown=!1,o(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&hh(d,t)&&(s.isPointerDown=!1,o(d))},c=C_(t.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[n,t,o,s,r])}function hh(e,t){var n;const r=e.target;return r&&!C_(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function C_(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function yU(e){const{isOpen:t,ref:n}=e,[r,o]=g.useState(t),[i,s]=g.useState(!1);return g.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),wc(()=>n.current,"animationend",()=>{o(t)}),{present:!(t?!1:!r),onComplete(){var l;const u=oH(n.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(c)}}}function bU(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[SU,See,xU,xee]=hT(),[wU,wee]=Ge({strict:!1,name:"MenuContext"});function kU(e,...t){const n=g.useId(),r=e||n;return g.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}function CU(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function PU(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...h}=e,S=g.useRef(null),v=g.useRef(null),y=xU(),b=g.useCallback(()=>{requestAnimationFrame(()=>{var ee;(ee=S.current)==null||ee.focus({preventScroll:!1})})},[]),x=g.useCallback(()=>{const ee=setTimeout(()=>{var j;if(o)(j=o.current)==null||j.focus();else{const te=y.firstEnabled();te&&W(te.index)}});O.current.add(ee)},[y,o]),k=g.useCallback(()=>{const ee=setTimeout(()=>{const j=y.lastEnabled();j&&W(j.index)});O.current.add(ee)},[y]),P=g.useCallback(()=>{c==null||c(),i?x():b()},[i,x,b,c]),{isOpen:C,onOpen:E,onClose:_,onToggle:$}=k_({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:P});gU({enabled:C&&r,ref:S,handler:ee=>{var j;(j=v.current)!=null&&j.contains(ee.target)||_()}});const M=w_({...h,enabled:C||m,placement:d,direction:p}),[F,W]=g.useState(-1);Pl(()=>{C||W(-1)},[C]),XH(S,{focusRef:v,visible:C,shouldFocus:!0});const re=yU({isOpen:C,ref:S}),[H,N]=kU(t,"menu-button","menu-list"),R=g.useCallback(()=>{E(),b()},[E,b]),O=g.useRef(new Set([]));g.useEffect(()=>{const ee=O.current;return()=>{ee.forEach(j=>clearTimeout(j)),ee.clear()}},[]);const D=g.useCallback(()=>{E(),x()},[x,E]),V=g.useCallback(()=>{E(),k()},[E,k]),oe=g.useCallback(()=>{var ee,j;const te=CU(S.current),ae=(ee=S.current)==null?void 0:ee.contains(te.activeElement);if(!(C&&!ae))return;const Se=(j=y.item(F))==null?void 0:j.node;Se==null||Se.focus({preventScroll:!0})},[C,F,y]),B=g.useRef(null);return{openAndFocusMenu:R,openAndFocusFirstItem:D,openAndFocusLastItem:V,onTransitionEnd:oe,unstable__animationState:re,descendants:y,popper:M,buttonId:H,menuId:N,forceUpdate:M.forceUpdate,orientation:"vertical",isOpen:C,onToggle:$,onOpen:E,onClose:_,menuRef:S,buttonRef:v,focusedIndex:F,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:W,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:B}}var[EU,TU]=Ge({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),P_=e=>{const{children:t}=e,n=ut("Menu",e),r=Ye(e),{direction:o}=Yr(),{descendants:i,...s}=PU({...r,direction:o}),a=g.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return w.jsx(SU,{value:i,children:w.jsx(wU,{value:a,children:w.jsx(EU,{value:n,children:Kt(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};P_.displayName="Menu";var E_=e=>{const{className:t,children:n,...r}=e,o=TU(),i=g.Children.only(n),s=g.isValidElement(i)?g.cloneElement(i,{focusable:"false","aria-hidden":!0,className:Z("chakra-menu__icon",i.props.className)}):null,a=Z("chakra-menu__icon-wrapper",t);return w.jsx(A.span,{className:a,...r,__css:o.icon,children:s})};E_.displayName="MenuIcon";var _U={slideInBottom:{...Pa,custom:{offsetY:16,reverse:!0}},slideInRight:{...Pa,custom:{offsetX:16,reverse:!0}},slideInTop:{...Pa,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Pa,custom:{offsetX:-16,reverse:!0}},scale:{...gT,custom:{initialScale:.95,reverse:!0}},none:{}},$U=A(Xr.section),OU=e=>_U[e||"none"],T_=g.forwardRef((e,t)=>{const{preset:n,motionProps:r=OU(n),...o}=e;return w.jsx($U,{ref:t,...r,...o})});T_.displayName="ModalTransition";var RU=Object.defineProperty,MU=(e,t,n)=>t in e?RU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IU=(e,t,n)=>(MU(e,t+"",n),n),AU=class{constructor(){IU(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}},bv=new AU;function __(e,t){const[n,r]=g.useState(0);return g.useEffect(()=>{const o=e.current;if(o){if(t){const i=bv.add(o);r(i)}return()=>{bv.remove(o),r(0)}}},[t,e]),n}var DU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mi=new WeakMap,Iu=new WeakMap,Au={},mh=0,$_=function(e){return e&&(e.host||$_(e.parentNode))},FU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},LU=function(e,t,n,r){var o=FU(t,Array.isArray(e)?e:[e]);Au[n]||(Au[n]=new WeakMap);var i=Au[n],s=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.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(a.has(f))c(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(Mi.get(f)||0)+1,S=(i.get(f)||0)+1;Mi.set(f,h),i.set(f,S),s.push(f),h===1&&m&&Iu.set(f,!0),S===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return c(t),a.clear(),mh++,function(){s.forEach(function(d){var f=Mi.get(d)-1,p=i.get(d)-1;Mi.set(d,f),i.set(d,p),f||(Iu.has(d)||d.removeAttribute(r),Iu.delete(d)),p||d.removeAttribute(n)}),mh--,mh||(Mi=new WeakMap,Mi=new WeakMap,Iu=new WeakMap,Au={})}},NU=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=DU(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),LU(r,o,n,"aria-hidden")):function(){return null}};function VU(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:a,onEsc:l}=e,u=g.useRef(null),c=g.useRef(null),[d,f,p]=BU(r,"chakra-modal","chakra-modal--header","chakra-modal--body");zU(u,t&&s);const m=__(u,t),h=g.useRef(null),S=g.useCallback(_=>{h.current=_.target},[]),v=g.useCallback(_=>{_.key==="Escape"&&(_.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[y,b]=g.useState(!1),[x,k]=g.useState(!1),P=g.useCallback((_={},$=null)=>({role:"dialog",..._,ref:mn($,u),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?f:void 0,"aria-describedby":x?p:void 0,onClick:Ee(_.onClick,M=>M.stopPropagation())}),[p,x,d,f,y]),C=g.useCallback(_=>{_.stopPropagation(),h.current===_.target&&bv.isTopModal(u.current)&&(o&&(n==null||n()),a==null||a())},[n,o,a]),E=g.useCallback((_={},$=null)=>({..._,ref:mn($,c),onClick:Ee(_.onClick,C),onKeyDown:Ee(_.onKeyDown,v),onMouseDown:Ee(_.onMouseDown,S)}),[v,S,C]);return{isOpen:t,onClose:n,headerId:f,bodyId:p,setBodyMounted:k,setHeaderMounted:b,dialogRef:u,overlayRef:c,getDialogProps:P,getDialogContainerProps:E,index:m}}function zU(e,t){const n=e.current;g.useEffect(()=>{if(!(!e.current||!t))return NU(e.current)},[t,e,n])}function BU(e,...t){const n=g.useId(),r=e||n;return g.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[jU,Ci]=Ge({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[HU,$o]=Ge({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),sy=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:m}=t,h=ut("Modal",t),v={...VU(t),autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return w.jsx(HU,{value:v,children:w.jsx(jU,{value:h,children:w.jsx(Do,{onExitComplete:m,children:v.isOpen&&w.jsx(Ws,{...n,children:r})})})})};sy.displayName="Modal";var Cc="right-scroll-bar-position",Pc="width-before-scroll-bar",WU="with-scroll-bars-hidden",UU="--removed-body-scroll-bar-size",O_=$T(),vh=function(){},jf=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:vh,onWheelCapture:vh,onTouchMoveCapture:vh}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,S=e.as,v=S===void 0?"div":S,y=e.gapMode,b=ET(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,k=PT([n,t]),P=dr(dr({},b),o);return g.createElement(g.Fragment,null,c&&g.createElement(x,{sideCar:O_,removeScrollBar:u,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),s?g.cloneElement(g.Children.only(a),dr(dr({},P),{ref:k})):g.createElement(v,dr({},P,{className:l,ref:k}),a))});jf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jf.classNames={fullWidth:Pc,zeroRight:Cc};var qU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qU();return t&&e.setAttribute("nonce",t),e}function GU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XU=function(){var e=0,t=null;return{add:function(n){e==0&&(t=KU())&&(GU(t,n),YU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QU=function(){var e=XU();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},R_=function(){var e=QU(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ZU={left:0,top:0,right:0,gap:0},gh=function(e){return parseInt(e||"",10)||0},JU=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gh(n),gh(r),gh(o)]},eq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZU;var t=JU(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tq=R_(),Ss="data-scroll-locked",nq=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(WU,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } @@ -387,7 +387,7 @@ Error generating stack: `+i.message+` `)},Kx=function(){var e=parseInt(document.body.getAttribute(Ss)||"0",10);return isFinite(e)?e:0},rq=function(){g.useEffect(function(){return document.body.setAttribute(Ss,(Kx()+1).toString()),function(){var e=Kx()-1;e<=0?document.body.removeAttribute(Ss):document.body.setAttribute(Ss,e.toString())}},[])},oq=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;rq();var i=g.useMemo(function(){return eq(o)},[o]);return g.createElement(tq,{styles:nq(i,!t,o,n?"":"!important")})},Sv=!1;if(typeof window<"u")try{var Du=Object.defineProperty({},"passive",{get:function(){return Sv=!0,!0}});window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{Sv=!1}var Ii=Sv?{passive:!1}:!1,iq=function(e){return e.tagName==="TEXTAREA"},M_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!iq(e)&&n[t]==="visible")},sq=function(e){return M_(e,"overflowY")},aq=function(e){return M_(e,"overflowX")},Gx=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=I_(e,r);if(o){var i=A_(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lq=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uq=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},I_=function(e,t){return e==="v"?sq(t):aq(t)},A_=function(e,t){return e==="v"?lq(t):uq(t)},cq=function(e,t){return e==="h"&&t==="rtl"?-1:1},dq=function(e,t,n,r,o){var i=cq(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{var p=A_(e,a),m=p[0],h=p[1],S=p[2],v=h-S-i*m;(m||v)&&I_(e,a)&&(d+=v,f+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(u=!0),u},Fu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yx=function(e){return[e.deltaX,e.deltaY]},Xx=function(e){return e&&"current"in e?e.current:e},fq=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pq=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},hq=0,Ai=[];function mq(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(hq++)[0],i=g.useState(R_)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Y8([e.lockRef.current],(e.shards||[]).map(Xx),!0).filter(Boolean);return h.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(h,S){if("touches"in h&&h.touches.length===2)return!s.current.allowPinchZoom;var v=Fu(h),y=n.current,b="deltaX"in h?h.deltaX:y[0]-v[0],x="deltaY"in h?h.deltaY:y[1]-v[1],k,P=h.target,C=Math.abs(b)>Math.abs(x)?"h":"v";if("touches"in h&&C==="h"&&P.type==="range")return!1;var E=Gx(C,P);if(!E)return!0;if(E?k=C:(k=C==="v"?"h":"v",E=Gx(C,P)),!E)return!1;if(!r.current&&"changedTouches"in h&&(b||x)&&(r.current=k),!k)return!0;var _=r.current||k;return dq(_,S,h,_==="h"?b:x,!0)},[]),l=g.useCallback(function(h){var S=h;if(!(!Ai.length||Ai[Ai.length-1]!==i)){var v="deltaY"in S?Yx(S):Fu(S),y=t.current.filter(function(k){return k.name===S.type&&(k.target===S.target||S.target===k.shadowParent)&&fq(k.delta,v)})[0];if(y&&y.should){S.cancelable&&S.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(Xx).filter(Boolean).filter(function(k){return k.contains(S.target)}),x=b.length>0?a(S,b[0]):!s.current.noIsolation;x&&S.cancelable&&S.preventDefault()}}},[]),u=g.useCallback(function(h,S,v,y){var b={name:h,delta:S,target:v,should:y,shadowParent:vq(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(x){return x!==b})},1)},[]),c=g.useCallback(function(h){n.current=Fu(h),r.current=void 0},[]),d=g.useCallback(function(h){u(h.type,Yx(h),h.target,a(h,e.lockRef.current))},[]),f=g.useCallback(function(h){u(h.type,Fu(h),h.target,a(h,e.lockRef.current))},[]);g.useEffect(function(){return Ai.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ii),document.addEventListener("touchmove",l,Ii),document.addEventListener("touchstart",c,Ii),function(){Ai=Ai.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Ii),document.removeEventListener("touchmove",l,Ii),document.removeEventListener("touchstart",c,Ii)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:pq(o)}):null,p?g.createElement(oq,{gapMode:e.gapMode}):null)}function vq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gq=X8(O_,mq);var D_=g.forwardRef(function(e,t){return g.createElement(jf,dr({},e,{ref:t,sideCar:gq}))});D_.classNames=jf.classNames;function F_(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:a,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=$o(),[f,p]=KE();g.useEffect(()=>{!f&&p&&setTimeout(p)},[f,p]);const m=__(r,d);return w.jsx(i_,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:a,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:c,children:w.jsx(D_,{removeScrollBar:!u,allowPinchZoom:s,enabled:m===1&&i,forwardProps:!0,children:e.children})})}var L_=U((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l}=$o(),u=a(s,t),c=l(o),d=Z("chakra-modal__content",n),f=Ci(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:h}=$o();return w.jsx(F_,{children:w.jsx(A.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:m,children:w.jsx(T_,{preset:h,motionProps:i,className:d,...u,__css:p,children:r})})})});L_.displayName="ModalContent";function kee(e){const{leastDestructiveRef:t,...n}=e;return w.jsx(sy,{...n,initialFocusRef:t})}var Cee=U((e,t)=>w.jsx(L_,{ref:t,role:"alertdialog",...e})),[yq,bq]=Ge(),Sq={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function xq(e,t){var n,r;if(e)return(r=(n=Sq[e])==null?void 0:n[t])!=null?r:e}function Pee(e){var t;const{isOpen:n,onClose:r,placement:o="right",children:i,...s}=e,a=Yr(),l=(t=a.components)==null?void 0:t.Drawer,u=xq(o,a.direction);return w.jsx(yq,{value:{placement:u},children:w.jsx(sy,{isOpen:n,onClose:r,styleConfig:l,...s,children:i})})}var wq=A(yT),kq=U((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l,isOpen:u}=$o(),c=a(s,t),d=l(i),f=Z("chakra-modal__content",n),p=Ci(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{placement:S}=bq();return w.jsx(F_,{children:w.jsx(A.div,{...d,className:"chakra-modal__content-container",__css:h,children:w.jsx(wq,{motionProps:o,direction:S,in:u,className:f,...c,__css:m,children:r})})})});kq.displayName="DrawerContent";var Cq=U((e,t)=>{const{className:n,...r}=e,o=Z("chakra-modal__footer",n),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...Ci().footer};return w.jsx(A.footer,{ref:t,...r,__css:s,className:o})});Cq.displayName="ModalFooter";var Pq=U((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=$o();g.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Z("chakra-modal__header",n),l={flex:0,...Ci().header};return w.jsx(A.header,{ref:t,className:s,id:o,...r,__css:l})});Pq.displayName="ModalHeader";var Eq=A(Xr.div),Tq=U((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,s=Z("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ci().overlay},{motionPreset:u}=$o(),d=o||(u==="none"?{}:vT);return w.jsx(Eq,{...d,__css:l,ref:t,className:s,...i})});Tq.displayName="ModalOverlay";var _q=U((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=$o();g.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Z("chakra-modal__body",n),a=Ci();return w.jsx(A.div,{ref:t,className:s,id:o,...r,__css:a.body})});_q.displayName="ModalBody";var $q=U((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=$o(),s=Z("chakra-modal__close-btn",r),a=Ci();return w.jsx(D0,{ref:t,__css:a.closeButton,className:s,onClick:Ee(n,l=>{l.stopPropagation(),i()}),...o})});$q.displayName="ModalCloseButton";var Oq=A("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Oq.displayName="CircularProgressLabel";var xv=e=>w.jsx(A.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});xv.displayName="Circle";function Rq(e,t,n){return(e-t)*100/(n-t)}var Mq=Xn({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),Iq=Xn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});Xn({"0%":{left:"-40%"},"100%":{left:"100%"}});Xn({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Aq(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s,role:a="progressbar"}=e,l=Rq(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:a},percent:l,value:t}}var N_=e=>{const{size:t,isIndeterminate:n,...r}=e;return w.jsx(A.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${Iq} 2s linear infinite`:void 0},...r})};N_.displayName="Shape";var Dq=U((e,t)=>{var n;const{size:r="48px",max:o=100,min:i=0,valueText:s,getValueText:a,value:l,capIsRound:u,children:c,thickness:d="10px",color:f="#0078d4",trackColor:p="#edebe9",isIndeterminate:m,...h}=e,S=Aq({min:i,max:o,value:l,valueText:s,getValueText:a,isIndeterminate:m}),v=m?void 0:((n=S.percent)!=null?n:0)*2.64,y=v==null?void 0:`${v} ${264-v}`,b=m?{css:{animation:`${Mq} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:y,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},x={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return w.jsxs(A.div,{ref:t,className:"chakra-progress",...S.bind,...h,__css:x,children:[w.jsxs(N_,{size:r,isIndeterminate:m,children:[w.jsx(xv,{stroke:p,strokeWidth:d,className:"chakra-progress__track"}),w.jsx(xv,{stroke:f,strokeWidth:d,className:"chakra-progress__indicator",strokeLinecap:u?"round":void 0,opacity:S.value===0&&!m?0:void 0,...b})]}),c]})});Dq.displayName="CircularProgress";function Fq(){const e=g.useRef(!0);return g.useEffect(()=>{e.current=!1},[]),e.current}function Lq(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}var Nq=A("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),wv=Y("skeleton-start-color"),kv=Y("skeleton-end-color"),Vq=Xn({from:{opacity:0},to:{opacity:1}}),zq=Xn({from:{borderColor:wv.reference,background:wv.reference},to:{borderColor:kv.reference,background:kv.reference}}),Bq=U((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=en("Skeleton",n),o=Fq(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=Ye(n),[p,m]=SM("colors",[i,s]),h=Lq(a),S=Z("chakra-skeleton",c),v={...p&&{[wv.variable]:p},...m&&{[kv.variable]:m}};if(a){const y=o||h?"none":`${Vq} ${l}s`;return w.jsx(A.div,{ref:t,className:S,__css:{animation:y},...f})}return w.jsx(Nq,{ref:t,className:S,...f,__css:{width:d?"fit-content":void 0,...r,...v,_dark:{...r._dark,...v},animation:`${u}s linear infinite alternate ${zq}`}})});Bq.displayName="Skeleton";var[jq,Pi]=Ge({name:"StepContext"}),[Wq,qs]=j6("Stepper"),Eee=U(function(t,n){const{status:r}=Pi(),o=qs();return w.jsx(A.h3,{ref:n,"data-status":r,...t,__css:o.title,className:Z("chakra-step__title",t.className)})}),Tee=U(function(t,n){const{orientation:r,status:o,showLastSeparator:i}=Pi(),s=qs();return w.jsx(A.div,{ref:n,"data-status":o,"data-orientation":r,"data-stretch":ce(i),__css:s.step,...t,className:Z("chakra-step",t.className)})}),_ee=U(function(t,n){const r=ut("Stepper",t),{children:o,index:i,orientation:s="horizontal",showLastSeparator:a=!1,...l}=Ye(t),u=g.Children.toArray(o),c=u.length;function d(f){return fi?"incomplete":"active"}return w.jsx(A.div,{ref:n,"aria-label":"Progress","data-orientation":s,...l,__css:r.stepper,className:Z("chakra-stepper",t.className),children:w.jsx(Wq,{value:r,children:u.map((f,p)=>w.jsx(jq,{value:{index:p,status:d(p),orientation:s,showLastSeparator:a,count:c,isFirst:p===0,isLast:p===c-1},children:f},p))})})});function $ee(e={}){const{index:t=0,count:n}=e,[r,o]=g.useState(t),i=typeof n=="number"?n-1:0,s=r/i;return{activeStep:r,setActiveStep:o,activeStepPercent:s,isActiveStep(a){return a===r},isCompleteStep(a){return ar},getStatus(a){return ar?"incomplete":"active"},goToNext(){o(a=>typeof n=="number"?Math.min(n,a+1):a+1)},goToPrevious(){o(a=>Math.max(0,a-1))}}}function Oee(e){const{complete:t,incomplete:n,active:r}=e,o=Pi();let i=null;switch(o.status){case"complete":i=Kt(t,o);break;case"incomplete":i=Kt(n,o);break;case"active":i=Kt(r,o);break}return i?w.jsx(w.Fragment,{children:i}):null}function Hq(e){return w.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:w.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function Ree(e){const{status:t}=Pi(),n=qs(),r=t==="complete"?Hq:void 0;return w.jsx(Qn,{as:r,__css:n.icon,...e,className:Z("chakra-step__icon",e.className)})}var Mee=U(function(t,n){const{children:r,...o}=t,{status:i,index:s}=Pi(),a=qs();return w.jsx(A.div,{ref:n,"data-status":i,__css:a.number,...o,className:Z("chakra-step__number",t.className),children:r||s+1})});function Iee(e){const{status:t}=Pi(),n=qs();return w.jsx(A.div,{"data-status":t,...e,__css:n.indicator,className:Z("chakra-step__indicator",e.className)})}var Aee=U(function(t,n){const{orientation:r,status:o,isLast:i,showLastSeparator:s}=Pi(),a=qs();return i&&!s?null:w.jsx(A.div,{ref:n,role:"separator","data-orientation":r,"data-status":o,__css:a.separator,...t,className:Z("chakra-step__separator",t.className)})}),[Uq,tu]=Ge({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),qq=U((e,t)=>{const n=ut("Table",e),{className:r,layout:o,...i}=Ye(e);return w.jsx(Uq,{value:n,children:w.jsx(A.table,{ref:t,__css:{tableLayout:o,...n.table},className:Z("chakra-table",r),...i})})});qq.displayName="Table";var Dee=U((e,t)=>{const n=tu();return w.jsx(A.thead,{...e,ref:t,__css:n.thead})}),Fee=U((e,t)=>{const n=tu();return w.jsx(A.tr,{...e,ref:t,__css:n.tr})}),Lee=U((e,t)=>{const n=tu();return w.jsx(A.tbody,{...e,ref:t,__css:n.tbody})}),Nee=U(({isNumeric:e,...t},n)=>{const r=tu();return w.jsx(A.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Vee=U(({isNumeric:e,...t},n)=>{const r=tu();return w.jsx(A.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),[Kq,Gq,Yq,Xq]=hT();function Qq(e){var t;const{defaultIndex:n,onChange:r,index:o,isManual:i,isLazy:s,lazyBehavior:a="unmount",orientation:l="horizontal",direction:u="ltr",...c}=e,[d,f]=g.useState(n??0),[p,m]=mT({defaultValue:n??0,value:o,onChange:r});g.useEffect(()=>{o!=null&&f(o)},[o]);const h=Yq(),S=g.useId();return{id:`tabs-${(t=e.id)!=null?t:S}`,selectedIndex:p,focusedIndex:d,setSelectedIndex:m,setFocusedIndex:f,isManual:i,isLazy:s,lazyBehavior:a,orientation:l,descendants:h,direction:u,htmlProps:c}}var[Zq,Wf]=Ge({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Jq(e){const{focusedIndex:t,orientation:n,direction:r}=Wf(),o=Gq(),i=g.useCallback(s=>{const a=()=>{var y;const b=o.nextEnabled(t);b&&((y=b.node)==null||y.focus())},l=()=>{var y;const b=o.prevEnabled(t);b&&((y=b.node)==null||y.focus())},u=()=>{var y;const b=o.firstEnabled();b&&((y=b.node)==null||y.focus())},c=()=>{var y;const b=o.lastEnabled();b&&((y=b.node)==null||y.focus())},d=n==="horizontal",f=n==="vertical",p=s.key,m=r==="ltr"?"ArrowLeft":"ArrowRight",h=r==="ltr"?"ArrowRight":"ArrowLeft",v={[m]:()=>d&&l(),[h]:()=>d&&a(),ArrowDown:()=>f&&a(),ArrowUp:()=>f&&l(),Home:u,End:c}[p];v&&(s.preventDefault(),v(s))},[o,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Ee(e.onKeyDown,i)}}function eK(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:o,isManual:i,id:s,setFocusedIndex:a,selectedIndex:l}=Wf(),{index:u,register:c}=Xq({disabled:t&&!n}),d=u===l,f=()=>{o(u)},p=()=>{a(u),!i&&!(t&&n)&&o(u)};return{...GW({...r,ref:mn(c,e.ref),isDisabled:t,isFocusable:n,onClick:Ee(e.onClick,f)}),id:V_(s,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":z_(s,u),onFocus:t?void 0:Ee(e.onFocus,p)}}var[tK,nK]=Ge({});function rK(e){const t=Wf(),{id:n,selectedIndex:r}=t,i=F0(e.children).map((s,a)=>g.createElement(tK,{key:a,value:{isSelected:a===r,id:z_(n,a),tabId:V_(n,a),selectedIndex:r}},s));return{...e,children:i}}function oK(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:o}=Wf(),{isSelected:i,id:s,tabId:a}=nK(),l=g.useRef(!1);i&&(l.current=!0);const u=bU({wasSelected:l.current,isSelected:i,enabled:r,mode:o});return{tabIndex:0,...n,children:u?t:null,role:"tabpanel","aria-labelledby":a,hidden:!i,id:s}}function V_(e,t){return`${e}--tab-${t}`}function z_(e,t){return`${e}--tabpanel-${t}`}var[iK,Hf]=Ge({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),sK=U(function(t,n){const r=ut("Tabs",t),{children:o,className:i,...s}=Ye(t),{htmlProps:a,descendants:l,...u}=Qq(s),c=g.useMemo(()=>u,[u]),{isFitted:d,...f}=a,p={position:"relative",...r.root};return w.jsx(Kq,{value:l,children:w.jsx(Zq,{value:c,children:w.jsx(iK,{value:r,children:w.jsx(A.div,{className:Z("chakra-tabs",i),ref:n,...f,__css:p,children:o})})})})});sK.displayName="Tabs";var aK=U(function(t,n){const r=Jq({...t,ref:n}),i={display:"flex",...Hf().tablist};return w.jsx(A.div,{...r,className:Z("chakra-tabs__tablist",t.className),__css:i})});aK.displayName="TabList";var lK=U(function(t,n){const r=oK({...t,ref:n}),o=Hf();return w.jsx(A.div,{outline:"0",...r,className:Z("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});lK.displayName="TabPanel";var uK=U(function(t,n){const r=rK(t),o=Hf();return w.jsx(A.div,{...r,width:"100%",ref:n,className:Z("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});uK.displayName="TabPanels";var cK=U(function(t,n){const r=Hf(),o=eK({...t,ref:n}),i={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return w.jsx(A.button,{...o,className:Z("chakra-tabs__tab",t.className),__css:i})});cK.displayName="Tab";function dK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var fK=["h","minH","height","minHeight"],pK=U((e,t)=>{const n=en("Textarea",e),{className:r,rows:o,...i}=Ye(e),s=L0(i),a=o?dK(n,fK):n;return w.jsx(A.textarea,{ref:t,rows:o,...s,className:Z("chakra-textarea",r),__css:a})});pK.displayName="Textarea";var hK={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Cv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Ec=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function mK(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:s=o,closeOnEsc:a=!0,onOpen:l,onClose:u,placement:c,id:d,isOpen:f,defaultIsOpen:p,arrowSize:m=10,arrowShadowColor:h,arrowPadding:S,modifiers:v,isDisabled:y,gutter:b,offset:x,direction:k,...P}=e,{isOpen:C,onOpen:E,onClose:_}=k_({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:$,getPopperProps:M,getArrowInnerProps:F,getArrowProps:H}=w_({enabled:C,placement:c,arrowPadding:S,modifiers:v,gutter:b,offset:x,direction:k}),re=g.useId(),N=`tooltip-${d??re}`,R=g.useRef(null),O=g.useRef(),D=g.useCallback(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),V=g.useRef(),oe=g.useCallback(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),B=g.useCallback(()=>{oe(),_()},[_,oe]),ee=vK(R,B),j=g.useCallback(()=>{if(!y&&!O.current){C&&ee();const pe=Ec(R);O.current=pe.setTimeout(E,t)}},[ee,y,C,E,t]),te=g.useCallback(()=>{D();const pe=Ec(R);V.current=pe.setTimeout(B,n)},[n,B,D]),ae=g.useCallback(()=>{C&&r&&te()},[r,te,C]),we=g.useCallback(()=>{C&&s&&te()},[s,te,C]),Se=g.useCallback(pe=>{C&&pe.key==="Escape"&&te()},[C,te]);wc(()=>Cv(R),"keydown",a?Se:void 0),wc(()=>{if(!i)return null;const pe=R.current;if(!pe)return null;const et=t_(pe);return et.localName==="body"?Ec(R):et},"scroll",()=>{C&&i&&B()},{passive:!0,capture:!0}),g.useEffect(()=>{y&&(D(),C&&_())},[y,C,_,D]),g.useEffect(()=>()=>{D(),oe()},[D,oe]),wc(()=>R.current,"pointerleave",te);const xt=g.useCallback((pe={},et=null)=>({...pe,ref:mn(R,et,$),onPointerEnter:Ee(pe.onPointerEnter,ne=>{ne.pointerType!=="touch"&&j()}),onClick:Ee(pe.onClick,ae),onPointerDown:Ee(pe.onPointerDown,we),onFocus:Ee(pe.onFocus,j),onBlur:Ee(pe.onBlur,te),"aria-describedby":C?N:void 0}),[j,te,we,C,N,ae,$]),Ln=g.useCallback((pe={},et=null)=>M({...pe,style:{...pe.style,[mt.arrowSize.var]:m?`${m}px`:void 0,[mt.arrowShadowColor.var]:h}},et),[M,m,h]),Bt=g.useCallback((pe={},et=null)=>{const Sn={...pe.style,position:"relative",transformOrigin:mt.transformOrigin.varRef};return{ref:et,...P,...pe,id:N,role:"tooltip",style:Sn}},[P,N]);return{isOpen:C,show:j,hide:te,getTriggerProps:xt,getTooltipProps:Bt,getTooltipPositionerProps:Ln,getArrowProps:H,getArrowInnerProps:F}}var yh="chakra-ui:close-tooltip";function vK(e,t){return g.useEffect(()=>{const n=Cv(e);return n.addEventListener(yh,t),()=>n.removeEventListener(yh,t)},[t,e]),()=>{const n=Cv(e),r=Ec(e);n.dispatchEvent(new r.CustomEvent(yh))}}function gK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function yK(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var bK=A(Xr.div),SK=U((e,t)=>{var n,r;const o=en("Tooltip",e),i=Ye(e),s=Yr(),{children:a,label:l,shouldWrapChildren:u,"aria-label":c,hasArrow:d,bg:f,portalProps:p,background:m,backgroundColor:h,bgColor:S,motionProps:v,...y}=i,b=(r=(n=m??h)!=null?n:f)!=null?r:S;if(b){o.bg=b;const M=z3(s,"colors",b);o[mt.arrowBg.var]=M}const x=mK({...y,direction:s.direction}),k=typeof a=="string"||u;let P;if(k)P=w.jsx(A.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:a});else{const M=g.Children.only(a);P=g.cloneElement(M,x.getTriggerProps(M.props,M.ref))}const C=!!c,E=x.getTooltipProps({},t),_=C?gK(E,["role","id"]):E,$=yK(E,["role","id"]);return l?w.jsxs(w.Fragment,{children:[P,w.jsx(Do,{children:x.isOpen&&w.jsx(Hs,{...p,children:w.jsx(A.div,{...x.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:w.jsxs(bK,{variants:hK,initial:"exit",animate:"enter",exit:"exit",...v,..._,__css:o,children:[l,C&&w.jsx(A.span,{srOnly:!0,...$,children:c}),d&&w.jsx(A.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:w.jsx(A.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):w.jsx(w.Fragment,{children:a})});SK.displayName="Tooltip";const Sr=Object.create(null);Sr.open="0";Sr.close="1";Sr.ping="2";Sr.pong="3";Sr.message="4";Sr.upgrade="5";Sr.noop="6";const Tc=Object.create(null);Object.keys(Sr).forEach(e=>{Tc[Sr[e]]=e});const Pv={type:"error",data:"parser error"},B_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",j_=typeof ArrayBuffer=="function",W_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ay=({type:e,data:t},n,r)=>B_&&t instanceof Blob?n?r(t):Qx(t,r):j_&&(t instanceof ArrayBuffer||W_(t))?n?r(t):Qx(new Blob([t]),r):r(Sr[e]+(t||"")),Qx=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Zx(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let bh;function xK(e,t){if(B_&&e.data instanceof Blob)return e.data.arrayBuffer().then(Zx).then(t);if(j_&&(e.data instanceof ArrayBuffer||W_(e.data)))return t(Zx(e.data));ay(e,!1,n=>{bh||(bh=new TextEncoder),t(bh.encode(n))})}const Jx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},kK=typeof ArrayBuffer=="function",ly=(e,t)=>{if(typeof e!="string")return{type:"message",data:H_(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:CK(e.substring(1),t)}:Tc[n]?e.length>1?{type:Tc[n],data:e.substring(1)}:{type:Tc[n]}:Pv},CK=(e,t)=>{if(kK){const n=wK(e);return H_(n,t)}else return{base64:!0,data:e}},H_=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},U_="",PK=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{ay(i,!1,a=>{r[s]=a,++o===n&&t(r.join(U_))})})},EK=(e,t)=>{const n=e.split(U_),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Sh;function Lu(e){return e.reduce((t,n)=>t+n.length,0)}function Nu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(Pv);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Lu(n)e){a.enqueue(Pv);break}}}})}const q_=4;function Ze(e){if(e)return $K(e)}function $K(e){for(var t in Ze.prototype)e[t]=Ze.prototype[t];return e}Ze.prototype.on=Ze.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ze.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ze.prototype.off=Ze.prototype.removeListener=Ze.prototype.removeAllListeners=Ze.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const OK=Tn.setTimeout,RK=Tn.clearTimeout;function Uf(e,t){t.useNativeTimers?(e.setTimeoutFn=OK.bind(Tn),e.clearTimeoutFn=RK.bind(Tn)):(e.setTimeoutFn=Tn.setTimeout.bind(Tn),e.clearTimeoutFn=Tn.clearTimeout.bind(Tn))}const MK=1.33;function IK(e){return typeof e=="string"?AK(e):Math.ceil((e.byteLength||e.size)*MK)}function AK(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function DK(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function FK(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function Y_(){const e=nw(+new Date);return e!==tw?(ew=0,tw=e):e+"."+nw(ew++)}for(;Vu{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};EK(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,PK(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Y_()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new yr(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class yr extends Ze{constructor(t,n){super(),Uf(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=K_(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Q_(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=yr.requestsCount++,yr.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=zK,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete yr.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}yr.requestsCount=0;yr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rw);else if(typeof addEventListener=="function"){const e="onpagehide"in Tn?"pagehide":"unload";addEventListener(e,rw,!1)}}function rw(){for(let e in yr.requests)yr.requests.hasOwnProperty(e)&&yr.requests[e].abort()}const cy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),zu=Tn.WebSocket||Tn.MozWebSocket,ow=!0,WK="arraybuffer",iw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class HK extends uy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=iw?{}:K_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=ow&&!iw?n?new zu(t,n):new zu(t):new zu(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{ow&&this.ws.send(i)}catch{}o&&cy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Y_()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!zu}}class UK extends uy{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=_K(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=TK();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&cy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const qK={websocket:HK,webtransport:UK,polling:jK},KK=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,GK=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Tv(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=KK.exec(e||""),i={},s=14;for(;s--;)i[GK[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=YK(i,i.path),i.queryKey=XK(i,i.query),i}function YK(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function XK(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let Z_=class Fi extends Ze{constructor(t,n={}){super(),this.binaryType=WK,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Tv(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Tv(n.host).host),Uf(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=FK(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=q_,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new qK[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Fi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Fi.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Fi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Fi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Fi.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,J_=Object.prototype.toString,eG=typeof Blob=="function"||typeof Blob<"u"&&J_.call(Blob)==="[object BlobConstructor]",tG=typeof File=="function"||typeof File<"u"&&J_.call(File)==="[object FileConstructor]";function dy(e){return ZK&&(e instanceof ArrayBuffer||JK(e))||eG&&e instanceof Blob||tG&&e instanceof File}function _c(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:de.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case de.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case de.EVENT:case de.BINARY_EVENT:this.onevent(t);break;case de.ACK:case de.BINARY_ACK:this.onack(t);break;case de.DISCONNECT:this.ondisconnect();break;case de.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:de.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:de.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ks.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ks.prototype.reset=function(){this.attempts=0};Ks.prototype.setMin=function(e){this.ms=e};Ks.prototype.setMax=function(e){this.max=e};Ks.prototype.setJitter=function(e){this.jitter=e};class Ov extends Ze{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Uf(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ks({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||lG;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Z_(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=jn(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=jn(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(jn(t,"ping",this.onping.bind(this)),jn(t,"data",this.ondata.bind(this)),jn(t,"error",this.onerror.bind(this)),jn(t,"close",this.onclose.bind(this)),jn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new e$(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const fa={};function xh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=QK(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=fa[o]&&i in fa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Ov(r,t):(fa[o]||(fa[o]=new Ov(r,t)),l=fa[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(xh,{Manager:Ov,Socket:e$,io:xh,connect:xh});var t$={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},aw=Un.createContext&&Un.createContext(t$),cG=["attr","size","title"];function dG(e,t){if(e==null)return{};var n=fG(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;tUn.createElement(t.tag,_d({key:n},t.attr),n$(t.child)))}function it(e){return t=>Un.createElement(vG,Td({attr:_d({},e.attr)},t),n$(e.child))}function vG(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=dG(e,cG),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Un.createElement("svg",Td({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:_d(_d({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&Un.createElement("title",null,i),e.children)};return aw!==void 0?Un.createElement(aw.Consumer,null,n=>t(n)):t(t$)}function zee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},child:[]}]})(e)}function Bee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19.17 12-4.58-4.59L16 6l6 6-3.59 3.59L17 14.17 19.17 12zM1.39 4.22l4.19 4.19L2 12l6 6 1.41-1.41L4.83 12 7 9.83l12.78 12.78 1.41-1.41L2.81 2.81 1.39 4.22z"},child:[]}]})(e)}function jee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"},child:[]}]})(e)}function Wee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Hee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26 5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"},child:[]}]})(e)}function Uee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"},child:[]}]})(e)}function qee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"},child:[]}]})(e)}function Kee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"},child:[]}]})(e)}function Gee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 4V2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1s-1-.45-1-1zm7.36 3.05 1.41-1.42a.996.996 0 1 0-1.41-1.41l-1.41 1.42a.996.996 0 1 0 1.41 1.41zM22 11h-2c-.55 0-1 .45-1 1s.45 1 1 1h2c.55 0 1-.45 1-1s-.45-1-1-1zm-10 8c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1zM5.64 7.05 4.22 5.64c-.39-.39-.39-1.03 0-1.41s1.03-.39 1.41 0l1.41 1.41c.39.39.39 1.03 0 1.41s-1.02.39-1.4 0zm11.31 9.9a.996.996 0 0 0 0 1.41l1.41 1.41c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.41-1.41a.996.996 0 0 0-1.41 0zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm3.64 6.78 1.41-1.41c.39-.39.39-1.03 0-1.41s-1.03-.39-1.41 0l-1.41 1.41a.996.996 0 0 0 0 1.41c.38.39 1.02.39 1.41 0zM12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6z"},child:[]}]})(e)}function Yee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9 1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"},child:[]}]})(e)}function Xee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.06 8.94 5 8l2.06-.94L8 5l.94 2.06L11 8l-2.06.94L8 11l-.94-2.06zM8 21l.94-2.06L11 18l-2.06-.94L8 15l-.94 2.06L5 18l2.06.94L8 21zm-3.63-8.63L3 13l1.37.63L5 15l.63-1.37L7 13l-1.37-.63L5 11l-.63 1.37zM12 12c0-3.09 1.38-5.94 3.44-8H12V2h7v7h-2V5.28c-1.8 1.74-3 4.2-3 6.72 0 3.32 2.1 6.36 5 7.82V22c-4.09-1.59-7-5.65-7-10z"},child:[]}]})(e)}function Qee(e){return it({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2H4"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"circle",attr:{cx:"6",cy:"14",r:"3"},child:[]},{tag:"path",attr:{d:"M6 10v1"},child:[]},{tag:"path",attr:{d:"M6 17v1"},child:[]},{tag:"path",attr:{d:"M10 14H9"},child:[]},{tag:"path",attr:{d:"M3 14H2"},child:[]},{tag:"path",attr:{d:"m9 11-.88.88"},child:[]},{tag:"path",attr:{d:"M3.88 16.12 3 17"},child:[]},{tag:"path",attr:{d:"m9 17-.88-.88"},child:[]},{tag:"path",attr:{d:"M3.88 11.88 3 11"},child:[]}]})(e)}var Zee=ki({displayName:"TimeIcon",path:w.jsxs("g",{fill:"currentColor",children:[w.jsx("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),w.jsx("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})}),Jee=ki({displayName:"RepeatIcon",path:w.jsxs("g",{fill:"currentColor",children:[w.jsx("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),w.jsx("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})}),ete=ki({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:w.jsx("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),tte=ki({displayName:"ExternalLinkIcon",path:w.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[w.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),w.jsx("path",{d:"M15 3h6v6"}),w.jsx("path",{d:"M10 14L21 3"})]})}),nte=ki({displayName:"CloseIcon",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"}),rte=ki({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),ote=ki({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});function ite(e){return it({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},child:[]}]})(e)}function ste(e){return it({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(e)}function ate(e){return it({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"},child:[]}]})(e)}var Gs={};/** +`)},hq=0,Ai=[];function mq(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(hq++)[0],i=g.useState(R_)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Y8([e.lockRef.current],(e.shards||[]).map(Xx),!0).filter(Boolean);return h.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(h,S){if("touches"in h&&h.touches.length===2)return!s.current.allowPinchZoom;var v=Fu(h),y=n.current,b="deltaX"in h?h.deltaX:y[0]-v[0],x="deltaY"in h?h.deltaY:y[1]-v[1],k,P=h.target,C=Math.abs(b)>Math.abs(x)?"h":"v";if("touches"in h&&C==="h"&&P.type==="range")return!1;var E=Gx(C,P);if(!E)return!0;if(E?k=C:(k=C==="v"?"h":"v",E=Gx(C,P)),!E)return!1;if(!r.current&&"changedTouches"in h&&(b||x)&&(r.current=k),!k)return!0;var _=r.current||k;return dq(_,S,h,_==="h"?b:x,!0)},[]),l=g.useCallback(function(h){var S=h;if(!(!Ai.length||Ai[Ai.length-1]!==i)){var v="deltaY"in S?Yx(S):Fu(S),y=t.current.filter(function(k){return k.name===S.type&&(k.target===S.target||S.target===k.shadowParent)&&fq(k.delta,v)})[0];if(y&&y.should){S.cancelable&&S.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(Xx).filter(Boolean).filter(function(k){return k.contains(S.target)}),x=b.length>0?a(S,b[0]):!s.current.noIsolation;x&&S.cancelable&&S.preventDefault()}}},[]),u=g.useCallback(function(h,S,v,y){var b={name:h,delta:S,target:v,should:y,shadowParent:vq(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(x){return x!==b})},1)},[]),c=g.useCallback(function(h){n.current=Fu(h),r.current=void 0},[]),d=g.useCallback(function(h){u(h.type,Yx(h),h.target,a(h,e.lockRef.current))},[]),f=g.useCallback(function(h){u(h.type,Fu(h),h.target,a(h,e.lockRef.current))},[]);g.useEffect(function(){return Ai.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ii),document.addEventListener("touchmove",l,Ii),document.addEventListener("touchstart",c,Ii),function(){Ai=Ai.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Ii),document.removeEventListener("touchmove",l,Ii),document.removeEventListener("touchstart",c,Ii)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:pq(o)}):null,p?g.createElement(oq,{gapMode:e.gapMode}):null)}function vq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gq=X8(O_,mq);var D_=g.forwardRef(function(e,t){return g.createElement(jf,dr({},e,{ref:t,sideCar:gq}))});D_.classNames=jf.classNames;function F_(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:a,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=$o(),[f,p]=KE();g.useEffect(()=>{!f&&p&&setTimeout(p)},[f,p]);const m=__(r,d);return w.jsx(i_,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:a,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:c,children:w.jsx(D_,{removeScrollBar:!u,allowPinchZoom:s,enabled:m===1&&i,forwardProps:!0,children:e.children})})}var L_=U((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l}=$o(),u=a(s,t),c=l(o),d=Z("chakra-modal__content",n),f=Ci(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:h}=$o();return w.jsx(F_,{children:w.jsx(A.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:m,children:w.jsx(T_,{preset:h,motionProps:i,className:d,...u,__css:p,children:r})})})});L_.displayName="ModalContent";function kee(e){const{leastDestructiveRef:t,...n}=e;return w.jsx(sy,{...n,initialFocusRef:t})}var Cee=U((e,t)=>w.jsx(L_,{ref:t,role:"alertdialog",...e})),[yq,bq]=Ge(),Sq={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function xq(e,t){var n,r;if(e)return(r=(n=Sq[e])==null?void 0:n[t])!=null?r:e}function Pee(e){var t;const{isOpen:n,onClose:r,placement:o="right",children:i,...s}=e,a=Yr(),l=(t=a.components)==null?void 0:t.Drawer,u=xq(o,a.direction);return w.jsx(yq,{value:{placement:u},children:w.jsx(sy,{isOpen:n,onClose:r,styleConfig:l,...s,children:i})})}var wq=A(yT),kq=U((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l,isOpen:u}=$o(),c=a(s,t),d=l(i),f=Z("chakra-modal__content",n),p=Ci(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{placement:S}=bq();return w.jsx(F_,{children:w.jsx(A.div,{...d,className:"chakra-modal__content-container",__css:h,children:w.jsx(wq,{motionProps:o,direction:S,in:u,className:f,...c,__css:m,children:r})})})});kq.displayName="DrawerContent";var Cq=U((e,t)=>{const{className:n,...r}=e,o=Z("chakra-modal__footer",n),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...Ci().footer};return w.jsx(A.footer,{ref:t,...r,__css:s,className:o})});Cq.displayName="ModalFooter";var Pq=U((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=$o();g.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Z("chakra-modal__header",n),l={flex:0,...Ci().header};return w.jsx(A.header,{ref:t,className:s,id:o,...r,__css:l})});Pq.displayName="ModalHeader";var Eq=A(Xr.div),Tq=U((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,s=Z("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ci().overlay},{motionPreset:u}=$o(),d=o||(u==="none"?{}:vT);return w.jsx(Eq,{...d,__css:l,ref:t,className:s,...i})});Tq.displayName="ModalOverlay";var _q=U((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=$o();g.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Z("chakra-modal__body",n),a=Ci();return w.jsx(A.div,{ref:t,className:s,id:o,...r,__css:a.body})});_q.displayName="ModalBody";var $q=U((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=$o(),s=Z("chakra-modal__close-btn",r),a=Ci();return w.jsx(D0,{ref:t,__css:a.closeButton,className:s,onClick:Ee(n,l=>{l.stopPropagation(),i()}),...o})});$q.displayName="ModalCloseButton";var Oq=A("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Oq.displayName="CircularProgressLabel";var xv=e=>w.jsx(A.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});xv.displayName="Circle";function Rq(e,t,n){return(e-t)*100/(n-t)}var Mq=Xn({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),Iq=Xn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});Xn({"0%":{left:"-40%"},"100%":{left:"100%"}});Xn({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Aq(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s,role:a="progressbar"}=e,l=Rq(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:a},percent:l,value:t}}var N_=e=>{const{size:t,isIndeterminate:n,...r}=e;return w.jsx(A.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?`${Iq} 2s linear infinite`:void 0},...r})};N_.displayName="Shape";var Dq=U((e,t)=>{var n;const{size:r="48px",max:o=100,min:i=0,valueText:s,getValueText:a,value:l,capIsRound:u,children:c,thickness:d="10px",color:f="#0078d4",trackColor:p="#edebe9",isIndeterminate:m,...h}=e,S=Aq({min:i,max:o,value:l,valueText:s,getValueText:a,isIndeterminate:m}),v=m?void 0:((n=S.percent)!=null?n:0)*2.64,y=v==null?void 0:`${v} ${264-v}`,b=m?{css:{animation:`${Mq} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:y,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},x={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return w.jsxs(A.div,{ref:t,className:"chakra-progress",...S.bind,...h,__css:x,children:[w.jsxs(N_,{size:r,isIndeterminate:m,children:[w.jsx(xv,{stroke:p,strokeWidth:d,className:"chakra-progress__track"}),w.jsx(xv,{stroke:f,strokeWidth:d,className:"chakra-progress__indicator",strokeLinecap:u?"round":void 0,opacity:S.value===0&&!m?0:void 0,...b})]}),c]})});Dq.displayName="CircularProgress";function Fq(){const e=g.useRef(!0);return g.useEffect(()=>{e.current=!1},[]),e.current}function Lq(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}var Nq=A("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),wv=Y("skeleton-start-color"),kv=Y("skeleton-end-color"),Vq=Xn({from:{opacity:0},to:{opacity:1}}),zq=Xn({from:{borderColor:wv.reference,background:wv.reference},to:{borderColor:kv.reference,background:kv.reference}}),Bq=U((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=en("Skeleton",n),o=Fq(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=Ye(n),[p,m]=S3("colors",[i,s]),h=Lq(a),S=Z("chakra-skeleton",c),v={...p&&{[wv.variable]:p},...m&&{[kv.variable]:m}};if(a){const y=o||h?"none":`${Vq} ${l}s`;return w.jsx(A.div,{ref:t,className:S,__css:{animation:y},...f})}return w.jsx(Nq,{ref:t,className:S,...f,__css:{width:d?"fit-content":void 0,...r,...v,_dark:{...r._dark,...v},animation:`${u}s linear infinite alternate ${zq}`}})});Bq.displayName="Skeleton";var[jq,Pi]=Ge({name:"StepContext"}),[Hq,qs]=jN("Stepper"),Eee=U(function(t,n){const{status:r}=Pi(),o=qs();return w.jsx(A.h3,{ref:n,"data-status":r,...t,__css:o.title,className:Z("chakra-step__title",t.className)})}),Tee=U(function(t,n){const{orientation:r,status:o,showLastSeparator:i}=Pi(),s=qs();return w.jsx(A.div,{ref:n,"data-status":o,"data-orientation":r,"data-stretch":ce(i),__css:s.step,...t,className:Z("chakra-step",t.className)})}),_ee=U(function(t,n){const r=ut("Stepper",t),{children:o,index:i,orientation:s="horizontal",showLastSeparator:a=!1,...l}=Ye(t),u=g.Children.toArray(o),c=u.length;function d(f){return fi?"incomplete":"active"}return w.jsx(A.div,{ref:n,"aria-label":"Progress","data-orientation":s,...l,__css:r.stepper,className:Z("chakra-stepper",t.className),children:w.jsx(Hq,{value:r,children:u.map((f,p)=>w.jsx(jq,{value:{index:p,status:d(p),orientation:s,showLastSeparator:a,count:c,isFirst:p===0,isLast:p===c-1},children:f},p))})})});function $ee(e={}){const{index:t=0,count:n}=e,[r,o]=g.useState(t),i=typeof n=="number"?n-1:0,s=r/i;return{activeStep:r,setActiveStep:o,activeStepPercent:s,isActiveStep(a){return a===r},isCompleteStep(a){return ar},getStatus(a){return ar?"incomplete":"active"},goToNext(){o(a=>typeof n=="number"?Math.min(n,a+1):a+1)},goToPrevious(){o(a=>Math.max(0,a-1))}}}function Oee(e){const{complete:t,incomplete:n,active:r}=e,o=Pi();let i=null;switch(o.status){case"complete":i=Kt(t,o);break;case"incomplete":i=Kt(n,o);break;case"active":i=Kt(r,o);break}return i?w.jsx(w.Fragment,{children:i}):null}function Wq(e){return w.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:w.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function Ree(e){const{status:t}=Pi(),n=qs(),r=t==="complete"?Wq:void 0;return w.jsx(Qn,{as:r,__css:n.icon,...e,className:Z("chakra-step__icon",e.className)})}var Mee=U(function(t,n){const{children:r,...o}=t,{status:i,index:s}=Pi(),a=qs();return w.jsx(A.div,{ref:n,"data-status":i,__css:a.number,...o,className:Z("chakra-step__number",t.className),children:r||s+1})});function Iee(e){const{status:t}=Pi(),n=qs();return w.jsx(A.div,{"data-status":t,...e,__css:n.indicator,className:Z("chakra-step__indicator",e.className)})}var Aee=U(function(t,n){const{orientation:r,status:o,isLast:i,showLastSeparator:s}=Pi(),a=qs();return i&&!s?null:w.jsx(A.div,{ref:n,role:"separator","data-orientation":r,"data-status":o,__css:a.separator,...t,className:Z("chakra-step__separator",t.className)})}),[Uq,tu]=Ge({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),qq=U((e,t)=>{const n=ut("Table",e),{className:r,layout:o,...i}=Ye(e);return w.jsx(Uq,{value:n,children:w.jsx(A.table,{ref:t,__css:{tableLayout:o,...n.table},className:Z("chakra-table",r),...i})})});qq.displayName="Table";var Dee=U((e,t)=>{const n=tu();return w.jsx(A.thead,{...e,ref:t,__css:n.thead})}),Fee=U((e,t)=>{const n=tu();return w.jsx(A.tr,{...e,ref:t,__css:n.tr})}),Lee=U((e,t)=>{const n=tu();return w.jsx(A.tbody,{...e,ref:t,__css:n.tbody})}),Nee=U(({isNumeric:e,...t},n)=>{const r=tu();return w.jsx(A.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Vee=U(({isNumeric:e,...t},n)=>{const r=tu();return w.jsx(A.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),[Kq,Gq,Yq,Xq]=hT();function Qq(e){var t;const{defaultIndex:n,onChange:r,index:o,isManual:i,isLazy:s,lazyBehavior:a="unmount",orientation:l="horizontal",direction:u="ltr",...c}=e,[d,f]=g.useState(n??0),[p,m]=mT({defaultValue:n??0,value:o,onChange:r});g.useEffect(()=>{o!=null&&f(o)},[o]);const h=Yq(),S=g.useId();return{id:`tabs-${(t=e.id)!=null?t:S}`,selectedIndex:p,focusedIndex:d,setSelectedIndex:m,setFocusedIndex:f,isManual:i,isLazy:s,lazyBehavior:a,orientation:l,descendants:h,direction:u,htmlProps:c}}var[Zq,Hf]=Ge({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Jq(e){const{focusedIndex:t,orientation:n,direction:r}=Hf(),o=Gq(),i=g.useCallback(s=>{const a=()=>{var y;const b=o.nextEnabled(t);b&&((y=b.node)==null||y.focus())},l=()=>{var y;const b=o.prevEnabled(t);b&&((y=b.node)==null||y.focus())},u=()=>{var y;const b=o.firstEnabled();b&&((y=b.node)==null||y.focus())},c=()=>{var y;const b=o.lastEnabled();b&&((y=b.node)==null||y.focus())},d=n==="horizontal",f=n==="vertical",p=s.key,m=r==="ltr"?"ArrowLeft":"ArrowRight",h=r==="ltr"?"ArrowRight":"ArrowLeft",v={[m]:()=>d&&l(),[h]:()=>d&&a(),ArrowDown:()=>f&&a(),ArrowUp:()=>f&&l(),Home:u,End:c}[p];v&&(s.preventDefault(),v(s))},[o,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Ee(e.onKeyDown,i)}}function eK(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:o,isManual:i,id:s,setFocusedIndex:a,selectedIndex:l}=Hf(),{index:u,register:c}=Xq({disabled:t&&!n}),d=u===l,f=()=>{o(u)},p=()=>{a(u),!i&&!(t&&n)&&o(u)};return{...GH({...r,ref:mn(c,e.ref),isDisabled:t,isFocusable:n,onClick:Ee(e.onClick,f)}),id:V_(s,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":z_(s,u),onFocus:t?void 0:Ee(e.onFocus,p)}}var[tK,nK]=Ge({});function rK(e){const t=Hf(),{id:n,selectedIndex:r}=t,i=F0(e.children).map((s,a)=>g.createElement(tK,{key:a,value:{isSelected:a===r,id:z_(n,a),tabId:V_(n,a),selectedIndex:r}},s));return{...e,children:i}}function oK(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:o}=Hf(),{isSelected:i,id:s,tabId:a}=nK(),l=g.useRef(!1);i&&(l.current=!0);const u=bU({wasSelected:l.current,isSelected:i,enabled:r,mode:o});return{tabIndex:0,...n,children:u?t:null,role:"tabpanel","aria-labelledby":a,hidden:!i,id:s}}function V_(e,t){return`${e}--tab-${t}`}function z_(e,t){return`${e}--tabpanel-${t}`}var[iK,Wf]=Ge({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),sK=U(function(t,n){const r=ut("Tabs",t),{children:o,className:i,...s}=Ye(t),{htmlProps:a,descendants:l,...u}=Qq(s),c=g.useMemo(()=>u,[u]),{isFitted:d,...f}=a,p={position:"relative",...r.root};return w.jsx(Kq,{value:l,children:w.jsx(Zq,{value:c,children:w.jsx(iK,{value:r,children:w.jsx(A.div,{className:Z("chakra-tabs",i),ref:n,...f,__css:p,children:o})})})})});sK.displayName="Tabs";var aK=U(function(t,n){const r=Jq({...t,ref:n}),i={display:"flex",...Wf().tablist};return w.jsx(A.div,{...r,className:Z("chakra-tabs__tablist",t.className),__css:i})});aK.displayName="TabList";var lK=U(function(t,n){const r=oK({...t,ref:n}),o=Wf();return w.jsx(A.div,{outline:"0",...r,className:Z("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});lK.displayName="TabPanel";var uK=U(function(t,n){const r=rK(t),o=Wf();return w.jsx(A.div,{...r,width:"100%",ref:n,className:Z("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});uK.displayName="TabPanels";var cK=U(function(t,n){const r=Wf(),o=eK({...t,ref:n}),i={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return w.jsx(A.button,{...o,className:Z("chakra-tabs__tab",t.className),__css:i})});cK.displayName="Tab";function dK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var fK=["h","minH","height","minHeight"],pK=U((e,t)=>{const n=en("Textarea",e),{className:r,rows:o,...i}=Ye(e),s=L0(i),a=o?dK(n,fK):n;return w.jsx(A.textarea,{ref:t,rows:o,...s,className:Z("chakra-textarea",r),__css:a})});pK.displayName="Textarea";var hK={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Cv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Ec=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function mK(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:s=o,closeOnEsc:a=!0,onOpen:l,onClose:u,placement:c,id:d,isOpen:f,defaultIsOpen:p,arrowSize:m=10,arrowShadowColor:h,arrowPadding:S,modifiers:v,isDisabled:y,gutter:b,offset:x,direction:k,...P}=e,{isOpen:C,onOpen:E,onClose:_}=k_({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:$,getPopperProps:M,getArrowInnerProps:F,getArrowProps:W}=w_({enabled:C,placement:c,arrowPadding:S,modifiers:v,gutter:b,offset:x,direction:k}),re=g.useId(),N=`tooltip-${d??re}`,R=g.useRef(null),O=g.useRef(),D=g.useCallback(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),V=g.useRef(),oe=g.useCallback(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),B=g.useCallback(()=>{oe(),_()},[_,oe]),ee=vK(R,B),j=g.useCallback(()=>{if(!y&&!O.current){C&&ee();const pe=Ec(R);O.current=pe.setTimeout(E,t)}},[ee,y,C,E,t]),te=g.useCallback(()=>{D();const pe=Ec(R);V.current=pe.setTimeout(B,n)},[n,B,D]),ae=g.useCallback(()=>{C&&r&&te()},[r,te,C]),we=g.useCallback(()=>{C&&s&&te()},[s,te,C]),Se=g.useCallback(pe=>{C&&pe.key==="Escape"&&te()},[C,te]);wc(()=>Cv(R),"keydown",a?Se:void 0),wc(()=>{if(!i)return null;const pe=R.current;if(!pe)return null;const tt=t_(pe);return tt.localName==="body"?Ec(R):tt},"scroll",()=>{C&&i&&B()},{passive:!0,capture:!0}),g.useEffect(()=>{y&&(D(),C&&_())},[y,C,_,D]),g.useEffect(()=>()=>{D(),oe()},[D,oe]),wc(()=>R.current,"pointerleave",te);const xt=g.useCallback((pe={},tt=null)=>({...pe,ref:mn(R,tt,$),onPointerEnter:Ee(pe.onPointerEnter,ne=>{ne.pointerType!=="touch"&&j()}),onClick:Ee(pe.onClick,ae),onPointerDown:Ee(pe.onPointerDown,we),onFocus:Ee(pe.onFocus,j),onBlur:Ee(pe.onBlur,te),"aria-describedby":C?N:void 0}),[j,te,we,C,N,ae,$]),Ln=g.useCallback((pe={},tt=null)=>M({...pe,style:{...pe.style,[mt.arrowSize.var]:m?`${m}px`:void 0,[mt.arrowShadowColor.var]:h}},tt),[M,m,h]),Bt=g.useCallback((pe={},tt=null)=>{const Sn={...pe.style,position:"relative",transformOrigin:mt.transformOrigin.varRef};return{ref:tt,...P,...pe,id:N,role:"tooltip",style:Sn}},[P,N]);return{isOpen:C,show:j,hide:te,getTriggerProps:xt,getTooltipProps:Bt,getTooltipPositionerProps:Ln,getArrowProps:W,getArrowInnerProps:F}}var yh="chakra-ui:close-tooltip";function vK(e,t){return g.useEffect(()=>{const n=Cv(e);return n.addEventListener(yh,t),()=>n.removeEventListener(yh,t)},[t,e]),()=>{const n=Cv(e),r=Ec(e);n.dispatchEvent(new r.CustomEvent(yh))}}function gK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function yK(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var bK=A(Xr.div),SK=U((e,t)=>{var n,r;const o=en("Tooltip",e),i=Ye(e),s=Yr(),{children:a,label:l,shouldWrapChildren:u,"aria-label":c,hasArrow:d,bg:f,portalProps:p,background:m,backgroundColor:h,bgColor:S,motionProps:v,...y}=i,b=(r=(n=m??h)!=null?n:f)!=null?r:S;if(b){o.bg=b;const M=zM(s,"colors",b);o[mt.arrowBg.var]=M}const x=mK({...y,direction:s.direction}),k=typeof a=="string"||u;let P;if(k)P=w.jsx(A.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:a});else{const M=g.Children.only(a);P=g.cloneElement(M,x.getTriggerProps(M.props,M.ref))}const C=!!c,E=x.getTooltipProps({},t),_=C?gK(E,["role","id"]):E,$=yK(E,["role","id"]);return l?w.jsxs(w.Fragment,{children:[P,w.jsx(Do,{children:x.isOpen&&w.jsx(Ws,{...p,children:w.jsx(A.div,{...x.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:w.jsxs(bK,{variants:hK,initial:"exit",animate:"enter",exit:"exit",...v,..._,__css:o,children:[l,C&&w.jsx(A.span,{srOnly:!0,...$,children:c}),d&&w.jsx(A.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:w.jsx(A.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):w.jsx(w.Fragment,{children:a})});SK.displayName="Tooltip";const Sr=Object.create(null);Sr.open="0";Sr.close="1";Sr.ping="2";Sr.pong="3";Sr.message="4";Sr.upgrade="5";Sr.noop="6";const Tc=Object.create(null);Object.keys(Sr).forEach(e=>{Tc[Sr[e]]=e});const Pv={type:"error",data:"parser error"},B_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",j_=typeof ArrayBuffer=="function",H_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ay=({type:e,data:t},n,r)=>B_&&t instanceof Blob?n?r(t):Qx(t,r):j_&&(t instanceof ArrayBuffer||H_(t))?n?r(t):Qx(new Blob([t]),r):r(Sr[e]+(t||"")),Qx=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Zx(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let bh;function xK(e,t){if(B_&&e.data instanceof Blob)return e.data.arrayBuffer().then(Zx).then(t);if(j_&&(e.data instanceof ArrayBuffer||H_(e.data)))return t(Zx(e.data));ay(e,!1,n=>{bh||(bh=new TextEncoder),t(bh.encode(n))})}const Jx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},kK=typeof ArrayBuffer=="function",ly=(e,t)=>{if(typeof e!="string")return{type:"message",data:W_(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:CK(e.substring(1),t)}:Tc[n]?e.length>1?{type:Tc[n],data:e.substring(1)}:{type:Tc[n]}:Pv},CK=(e,t)=>{if(kK){const n=wK(e);return W_(n,t)}else return{base64:!0,data:e}},W_=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},U_="",PK=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{ay(i,!1,a=>{r[s]=a,++o===n&&t(r.join(U_))})})},EK=(e,t)=>{const n=e.split(U_),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Sh;function Lu(e){return e.reduce((t,n)=>t+n.length,0)}function Nu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(Pv);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Lu(n)e){a.enqueue(Pv);break}}}})}const q_=4;function Je(e){if(e)return $K(e)}function $K(e){for(var t in Je.prototype)e[t]=Je.prototype[t];return e}Je.prototype.on=Je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const OK=Tn.setTimeout,RK=Tn.clearTimeout;function Uf(e,t){t.useNativeTimers?(e.setTimeoutFn=OK.bind(Tn),e.clearTimeoutFn=RK.bind(Tn)):(e.setTimeoutFn=Tn.setTimeout.bind(Tn),e.clearTimeoutFn=Tn.clearTimeout.bind(Tn))}const MK=1.33;function IK(e){return typeof e=="string"?AK(e):Math.ceil((e.byteLength||e.size)*MK)}function AK(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function DK(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function FK(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function Y_(){const e=nw(+new Date);return e!==tw?(ew=0,tw=e):e+"."+nw(ew++)}for(;Vu{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};EK(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,PK(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Y_()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new yr(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class yr extends Je{constructor(t,n){super(),Uf(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=K_(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Q_(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=yr.requestsCount++,yr.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=zK,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete yr.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}yr.requestsCount=0;yr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rw);else if(typeof addEventListener=="function"){const e="onpagehide"in Tn?"pagehide":"unload";addEventListener(e,rw,!1)}}function rw(){for(let e in yr.requests)yr.requests.hasOwnProperty(e)&&yr.requests[e].abort()}const cy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),zu=Tn.WebSocket||Tn.MozWebSocket,ow=!0,HK="arraybuffer",iw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WK extends uy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=iw?{}:K_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=ow&&!iw?n?new zu(t,n):new zu(t):new zu(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{ow&&this.ws.send(i)}catch{}o&&cy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Y_()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!zu}}class UK extends uy{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=_K(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=TK();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&cy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const qK={websocket:WK,webtransport:UK,polling:jK},KK=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,GK=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Tv(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=KK.exec(e||""),i={},s=14;for(;s--;)i[GK[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=YK(i,i.path),i.queryKey=XK(i,i.query),i}function YK(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function XK(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let Z_=class Fi extends Je{constructor(t,n={}){super(),this.binaryType=HK,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Tv(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Tv(n.host).host),Uf(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=FK(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=q_,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new qK[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Fi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Fi.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Fi.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Fi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Fi.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,J_=Object.prototype.toString,eG=typeof Blob=="function"||typeof Blob<"u"&&J_.call(Blob)==="[object BlobConstructor]",tG=typeof File=="function"||typeof File<"u"&&J_.call(File)==="[object FileConstructor]";function dy(e){return ZK&&(e instanceof ArrayBuffer||JK(e))||eG&&e instanceof Blob||tG&&e instanceof File}function _c(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:de.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case de.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case de.EVENT:case de.BINARY_EVENT:this.onevent(t);break;case de.ACK:case de.BINARY_ACK:this.onack(t);break;case de.DISCONNECT:this.ondisconnect();break;case de.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:de.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:de.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ks.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Ks.prototype.reset=function(){this.attempts=0};Ks.prototype.setMin=function(e){this.ms=e};Ks.prototype.setMax=function(e){this.max=e};Ks.prototype.setJitter=function(e){this.jitter=e};class Ov extends Je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Uf(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ks({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||lG;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Z_(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=jn(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=jn(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(jn(t,"ping",this.onping.bind(this)),jn(t,"data",this.ondata.bind(this)),jn(t,"error",this.onerror.bind(this)),jn(t,"close",this.onclose.bind(this)),jn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new e$(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const fa={};function xh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=QK(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=fa[o]&&i in fa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Ov(r,t):(fa[o]||(fa[o]=new Ov(r,t)),l=fa[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(xh,{Manager:Ov,Socket:e$,io:xh,connect:xh});var t$={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},aw=Un.createContext&&Un.createContext(t$),cG=["attr","size","title"];function dG(e,t){if(e==null)return{};var n=fG(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;tUn.createElement(t.tag,_d({key:n},t.attr),n$(t.child)))}function Xe(e){return t=>Un.createElement(vG,Td({attr:_d({},e.attr)},t),n$(e.child))}function vG(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=dG(e,cG),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Un.createElement("svg",Td({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:_d(_d({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&Un.createElement("title",null,i),e.children)};return aw!==void 0?Un.createElement(aw.Consumer,null,n=>t(n)):t(t$)}function zee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},child:[]}]})(e)}function Bee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19.17 12-4.58-4.59L16 6l6 6-3.59 3.59L17 14.17 19.17 12zM1.39 4.22l4.19 4.19L2 12l6 6 1.41-1.41L4.83 12 7 9.83l12.78 12.78 1.41-1.41L2.81 2.81 1.39 4.22z"},child:[]}]})(e)}function jee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"},child:[]}]})(e)}function Hee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Wee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26 5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"},child:[]}]})(e)}function Uee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"},child:[]}]})(e)}function qee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"},child:[]}]})(e)}function Kee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"},child:[]}]})(e)}function Gee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 4V2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1s-1-.45-1-1zm7.36 3.05 1.41-1.42a.996.996 0 1 0-1.41-1.41l-1.41 1.42a.996.996 0 1 0 1.41 1.41zM22 11h-2c-.55 0-1 .45-1 1s.45 1 1 1h2c.55 0 1-.45 1-1s-.45-1-1-1zm-10 8c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1zM5.64 7.05 4.22 5.64c-.39-.39-.39-1.03 0-1.41s1.03-.39 1.41 0l1.41 1.41c.39.39.39 1.03 0 1.41s-1.02.39-1.4 0zm11.31 9.9a.996.996 0 0 0 0 1.41l1.41 1.41c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.41-1.41a.996.996 0 0 0-1.41 0zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm3.64 6.78 1.41-1.41c.39-.39.39-1.03 0-1.41s-1.03-.39-1.41 0l-1.41 1.41a.996.996 0 0 0 0 1.41c.38.39 1.02.39 1.41 0zM12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6z"},child:[]}]})(e)}function Yee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9 1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"},child:[]}]})(e)}function Xee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.06 8.94 5 8l2.06-.94L8 5l.94 2.06L11 8l-2.06.94L8 11l-.94-2.06zM8 21l.94-2.06L11 18l-2.06-.94L8 15l-.94 2.06L5 18l2.06.94L8 21zm-3.63-8.63L3 13l1.37.63L5 15l.63-1.37L7 13l-1.37-.63L5 11l-.63 1.37zM12 12c0-3.09 1.38-5.94 3.44-8H12V2h7v7h-2V5.28c-1.8 1.74-3 4.2-3 6.72 0 3.32 2.1 6.36 5 7.82V22c-4.09-1.59-7-5.65-7-10z"},child:[]}]})(e)}function Qee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"m400 148-21.12-24.57A191.43 191.43 0 0 0 240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 0 0 181.07-128"},child:[]},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 0 1-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"},child:[]}]})(e)}function Zee(e){return Xe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2H4"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"circle",attr:{cx:"6",cy:"14",r:"3"},child:[]},{tag:"path",attr:{d:"M6 10v1"},child:[]},{tag:"path",attr:{d:"M6 17v1"},child:[]},{tag:"path",attr:{d:"M10 14H9"},child:[]},{tag:"path",attr:{d:"M3 14H2"},child:[]},{tag:"path",attr:{d:"m9 11-.88.88"},child:[]},{tag:"path",attr:{d:"M3.88 16.12 3 17"},child:[]},{tag:"path",attr:{d:"m9 17-.88-.88"},child:[]},{tag:"path",attr:{d:"M3.88 11.88 3 11"},child:[]}]})(e)}var Jee=ki({displayName:"TimeIcon",path:w.jsxs("g",{fill:"currentColor",children:[w.jsx("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),w.jsx("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})}),ete=ki({displayName:"RepeatIcon",path:w.jsxs("g",{fill:"currentColor",children:[w.jsx("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),w.jsx("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})}),tte=ki({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:w.jsx("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),nte=ki({displayName:"ExternalLinkIcon",path:w.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[w.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),w.jsx("path",{d:"M15 3h6v6"}),w.jsx("path",{d:"M10 14L21 3"})]})}),rte=ki({displayName:"CloseIcon",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"}),ote=ki({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),ite=ki({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});function ste(e){return Xe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},child:[]}]})(e)}function ate(e){return Xe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(e)}function lte(e){return Xe({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"},child:[]}]})(e)}var Gs={};/** * @license React * react-dom-server-legacy.browser.production.min.js * @@ -401,7 +401,7 @@ Error generating stack: `+i.message+` `?e.push(` `,n):e.push(""+n))}return typeof i=="string"&&i[0]===` `&&e.push(` -`),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(nr(t));for(var p in n)if(jt.call(n,p)&&(i=n[p],i!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(ie(399,t));default:tn(e,r,p,i)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return wh(e,n,t,r);case"html":return o.insertionMode===0&&e.push(""),wh(e,n,t,r);default:if(t.indexOf("-")===-1&&typeof n.is!="string")return wh(e,n,t,r);e.push(nr(t)),s=i=null;for(u in n)if(jt.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":i$(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:o$(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",u,'="',It(a),'"')}return e.push(">"),Oc(e,s,i),i}}function pw(e,t,n){if(e.push('')}function EG(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('
');case 5:return e.push('');case 6:return e.push('');case 7:return e.push('');default:throw Error(ie(397))}}function TG(e,t){switch(t.insertionMode){case 0:case 1:return e.push("");case 2:return e.push("");case 3:return e.push("");case 4:return e.push("");case 5:return e.push("");case 6:return e.push("");case 7:return e.push("");default:throw Error(ie(397))}}var _G=/[<\u2028\u2029]/g;function kh(e){return JSON.stringify(e).replace(_G,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function $G(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"