@xdcs-protocol/ui-kit 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +3 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -88,7 +88,7 @@ Use unitless line heights instead.`:tB(6));FQ(t)||(t=parseFloat(E(t,"rem"))/pars
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
`},MuiLink:{defaultProps:{underline:"hover"},styleOverrides:{root:{textDecorationColor:"transparent","&:hover":{textDecorationColor:"currentColor"},color:A==="dark"?"#0D6FF0":"#021B3B",transition:"color 0.2s ease"}}},MuiCard:{variants:[{props:{variant:"side"},style:{position:"relative",width:250,height:330,borderRadius:18,overflow:"hidden",background:A==="light"?"#FFFFFFB2":"#00000099",backdropFilter:"blur(3.375rem)",boxShadow:A==="light"?"0rem 0rem 0.625rem 0.125rem #0D6FF04D, 0rem -12.875rem 9.375rem 0rem #E5F0FF4D inset":"0rem 0.375rem 0.875rem 0.063rem #032047","&::before":{content:'""',position:"absolute",top:-2,left:-2,right:-2,bottom:-2,borderRadius:18,pointerEvents:"none",zIndex:2,background:A==="light"?"linear-gradient(128.81deg, #66A9FF 90.8%, #FFFFFF 119.06%, #FFFFFF 125.04%, #66A9FF 135.17%)":"linear-gradient(0deg, #0048A6, #0048A6)",padding:2,WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",boxSizing:"border-box"},"& > *":{position:"relative",zIndex:3}}}],styleOverrides:{root:{position:"relative",width:654,height:630,borderRadius:18,overflow:"hidden",background:A==="dark"?"radial-gradient(50% 50% at 50% 50%, rgba(0, 26, 61, 0.9) 0%, rgba(0, 0, 0, 0.9) 100%)":"radial-gradient(50% 50% at 50% 50%, rgba(245, 249, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%)",boxShadow:A==="dark"?"0rem 0.25rem 4rem 0rem rgba(8, 85, 188, 0.7), inset 0 0 0 0.094rem #0048A6":"0rem 0rem 3.625rem 0.063rem #0D6FF080, inset 0 0 0 0.094rem #438BE9",border:"none","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:18,margin:2,background:A==="dark"?"linear-gradient(139.62deg, #0048A6 1.57%, #0066cc 50%, #0048A6 124.13%)":"linear-gradient(128.81deg, #146BDC 90.8%, #FFFFFF 119.06%, #FFFFFF 125.04%, #438BE9 135.17%)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",pointerEvents:"none",zIndex:1,boxSizing:"border-box"}}}},MuiButton:{defaultProps:{variant:"contained",color:"primary"},styleOverrides:{root:{textTransform:"none",borderRadius:8,fontFamily:`${eB}, sans-serif`,fontWeight:700,fontStyle:"normal",fontSize:"1.125rem",lineHeight:1.3,letterSpacing:"0.034rem"},containedPrimary:{backgroundColor:"#0d6ff0",color:"#ffffff",":hover":{backgroundColor:"#1669df"},":disabled":{backgroundColor:A==="dark"?"#04397F":"#0D6FF066",color:A==="dark"?" #FFFFFF80":"#FFFFFF"}}}},MuiTab:{styleOverrides:{root:{textTransform:"none",minHeight:"unset",padding:8,color:A==="light"?"#8EA4C0":"#6A7D95","&.Mui-selected":{color:A==="light"?"#021B3B":"#FDFFFF"}}}},MuiTabs:{styleOverrides:{root:{minHeight:"unset",marginBottom:0},indicator:{display:"none"}}},MuiTextField:{styleOverrides:{root:{borderRadius:5,opacity:1,input:{color:A==="dark"?"#ffffff":"#021b3b"},"& .MuiOutlinedInput-root":{backgroundColor:A==="dark"?"#183762":"#dbeaff",borderRadius:5,"& fieldset":{borderColor:A==="dark"?"#5D616D":"#9DBAE2",borderWidth:"0.063rem"},"&:hover fieldset":{borderColor:"#0D6FF0"},"&.Mui-focused fieldset":{borderColor:"#0D6FF0"}},"& .MuiInputBase-input":{fontFamily:eB.fontFamily,fontWeight:550,fontStyle:"normal",fontSize:"1.25rem",lineHeight:"130%",letterSpacing:"0.063rem",color:A==="dark"?"#ffffff":"#021b3b"},"& .MuiInputLabel-root":{color:A==="dark"?"#ffffff":"#021b3b",fontFamily:eB.fontFamily,fontWeight:700,fontSize:"1.125rem",lineHeight:"130%",letterSpacing:"3%"},"& .MuiInputLabel-root.Mui-focused":{color:"#0D6FF0"}}}},MuiMenu:{styleOverrides:{paper:{borderRadius:18,overflow:"visible",overflowY:"auto",background:A==="dark"?"radial-gradient(50% 50% at 50% 50%, rgba(0, 26, 61, 0.9) 0%, rgba(0, 0, 0, 0.9) 100%)":"radial-gradient(50% 50% at 50% 50%, rgba(245, 249, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%)",boxShadow:A==="dark"?"0rem 0.25rem 4rem 0rem rgba(8, 85, 188, 0.7), inset 0 0 0 0.094rem #0048A6":"0rem 0rem 3.625rem 0.063rem #0D6FF080, inset 0 0 0 0.094rem #438BE9","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:18,margin:1.5,background:A==="dark"?"linear-gradient(139.62deg, #0048A6 1.57%, #0066cc 50%, #0048A6 124.13%)":"linear-gradient(128.81deg, #146BDC 90.8%, #FFFFFF 119.06%, #FFFFFF 125.04%, #438BE9 135.17%)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",pointerEvents:"none",zIndex:1,boxSizing:"border-box"}}}},MuiTypography:{styleOverrides:{root:{color:A==="dark"?"#ffffff":"#021b3b"},h4:{color:A==="dark"?"#DEE2EE":"#1a202c"},caption:{color:A==="dark"?"#888CA7":"#5f6b7c"}}},MuiTableContainer:{styleOverrides:{root:{backgroundColor:"#E5F0FE",border:A==="dark"?"1px solid #162F4E":"1px solid #A4B6CF",borderRadius:"0.625rem",overflow:"hidden","&::-webkit-scrollbar":{height:8},"&::-webkit-scrollbar-track":{backgroundColor:"#B9D8FF"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#0D6FF0",borderRadius:4}}}},MuiTable:{styleOverrides:{root:{backgroundColor:A==="dark"?"#04101f":"#E5F0FE",borderCollapse:"separate",borderSpacing:0}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-root:last-child td":{borderBottom:"none","&:first-of-type":{borderBottomLeftRadius:"0.625rem"},"&:last-child":{borderBottomRightRadius:"0.625rem"}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:A==="dark"?"1px solid #162F4E":"1px solid #A4B6CF",color:A==="dark"?"#C7DDF9":"#021B3B",backgroundColor:A==="dark"?"#04101f":"#E5F0FE"},head:{backgroundColor:A==="dark"?"#0a2547":"#FFFFFF",fontWeight:600,color:A==="dark"?"#c7ddf9":"#021b3b","&:first-of-type":{borderTopLeftRadius:"0.625rem"},"&:last-child":{borderTopRightRadius:"0.625rem"},borderBottomLeftRadius:0,borderBottomRightRadius:0}}},MuiDivider:{styleOverrides:{root:{borderColor:A==="dark"?"#062244":"#CFE3FD",borderWidth:"0.063rem",borderStyle:"solid"}}},MuiDrawer:{styleOverrides:{paper:{backgroundColor:A==="dark"?"#000914":" #F4F4F4",color:A==="dark"?"#ffffff":"#021b3b",width:278,opacity:1,boxShadow:"none",borderRight:A==="dark"?"0.063rem solid #062244":"0.063rem solid #CFE3FD"}}},MuiPaginationItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:"#9ec3f2",color:A==="dark"?"#2e3339":"#021b3b"},backgroundColor:A==="dark"?"#000102":"#f5f9ff",color:A==="dark"?"#c7ddf9":"#021b3b"}}}}}),SE=A=>GE(De(KE(A))),j={boldSx:{fontFamily:eB.fontFamily,fontWeight:700,lineHeight:"130%",letterSpacing:"0.03em"},regularSx:{fontFamily:eB.fontFamily,fontWeight:400,fontStyle:"normal",lineHeight:"130%",letterSpacing:"0.03em"}},HE=[{Icon:_e,href:"https://www.google.com",alt:"Google"},{Icon:Bg,href:"https://www.github.com",alt:"GitHub"},{Icon:AC,href:"https://www.twitter.com",alt:"Twitter"},{Icon:$e,href:"https://www.linkedin.com",alt:"LinkedIn"}],Gg=()=>{const{liquidStakingUrl:A,nativeStakingUrl:B,anchorStakingUrl:s,privateStakingUrl:g,bridgeUrl:Q,prfiLiquidStakingUrl:e,masternodeDashboardUrl:C,defiDashboardUrl:w,docsUrl:E}=qA(c=>({liquidStakingUrl:c.liquidStakingUrl,nativeStakingUrl:c.nativeStakingUrl,anchorStakingUrl:c.anchorStakingUrl,privateStakingUrl:c.privateStakingUrl,bridgeUrl:c.bridgeUrl,prfiLiquidStakingUrl:c.prfiLiquidStakingUrl,masternodeDashboardUrl:c.masternodeDashboardUrl,defiDashboardUrl:c.defiDashboardUrl,docsUrl:c.docsUrl})),o=y.useTheme(),I=OB.useLocation().pathname,F=c=>{try{const t=new URL(c,window.location.origin);return t.origin+t.pathname}catch{return window.location.origin+c}},i=[{text:"XDC Staking",links:[{icon:Jg,label:"Liquid Staking",path:(A==null?void 0:A.url)||"http://localhost:5173/",activePath:A==null?void 0:A.path,disabled:!1},{icon:Ze,label:"Native Staking",path:(B==null?void 0:B.url)||"http://localhost:3000/",activePath:B==null?void 0:B.path,disabled:!1},{icon:qe,label:"Anchor Staking",path:(s==null?void 0:s.url)||"http://localhost:3001/",activePath:s==null?void 0:s.path},{icon:ze,label:"Private Staking",path:(g==null?void 0:g.url)||"http://localhost:3002/",activePath:g==null?void 0:g.path,disabled:!1}]},{text:"Prfi Staking",links:[{icon:Jg,label:"Liquid Staking",path:(e==null?void 0:e.url)||"http://localhost:3003/",activePath:e==null?void 0:e.path,disabled:!0},{icon:ve,label:r.jsx(y.Typography,{color:"inherit",sx:{...j.boldSx,mb:2,fontSize:"1rem",display:"inline"},children:"Bridge"}),path:(Q==null?void 0:Q.url)||"http://localhost:3004/",activePath:Q==null?void 0:Q.path,disabled:!0},{icon:Oe,label:r.jsx(y.Typography,{color:"inherit",sx:{...j.boldSx,mb:2,fontSize:"1rem",display:"inline",textWrap:"nowrap"},children:"Masternode Dashboard"}),path:(C==null?void 0:C.url)||"http://localhost:3005/",activePath:C==null?void 0:C.path},{icon:je,label:r.jsx(y.Typography,{color:"inherit",sx:{...j.boldSx,mb:2,fontSize:"1rem",display:"inline"},children:"DeFi"}),path:(w==null?void 0:w.url)||"http://localhost:3006/",activePath:w==null?void 0:w.path},{icon:We,label:r.jsx(y.Typography,{color:"inherit",sx:{...j.boldSx,mb:2,fontSize:"1rem",display:"inline"},children:"Docs"}),path:E||"/S",disabled:!0}]}];return r.jsxs(y.Box,{sx:{width:226.51,height:545.74,ml:{xs:3,md:5},display:"flex",flexDirection:"column",gap:2},children:[i.map(({text:c,links:t},D)=>r.jsxs(y.Box,{sx:{ml:"-1.2rem"},children:[r.jsx(y.Typography,{sx:{...j.boldSx,mb:2,fontSize:"1rem",pl:"1rem"},children:c}),t.map((d,R)=>{const M=F(d.path),Y=window.location.origin+I,b=m=>{try{const sA=new URL(m,window.location.origin),p=sA.pathname==="/"?"/":sA.pathname.replace(/\/$/,"");return sA.origin+p}catch{return m}};let V=window.location.origin+"/";try{const m=new URL(d.path,window.location.origin);V=m.origin+(m.pathname==="/"?"/":m.pathname.replace(/\/$/,""))}catch{typeof d.path=="string"&&d.path.startsWith("/")&&(V=window.location.origin+(d.path==="/"?"/":d.path.replace(/\/$/,"")))}const G=d.activePaths??d.activePath,l=[];if(G!=null){const m=Array.isArray(G)?G:[G];for(const sA of m)if(sA!=null){if(typeof sA=="string"&&(sA.startsWith("http://")||sA.startsWith("https://")||sA.startsWith(window.location.origin))){l.push(b(sA));continue}if(typeof sA=="string"&&sA.startsWith("/")){try{const p=new URL(V,window.location.origin),O=p.origin,yA=p.pathname==="/"?"":p.pathname.replace(/\/$/,""),IA=sA.replace(/^\/+/,""),x=IA===""?yA||"/":`${yA}/${IA}`;l.push(b(O+x))}catch{}continue}if(typeof sA=="string")try{l.push(b(new URL(sA,V).href))}catch{}}}else l.push(b(M));const a=b(Y),L=b(M),U=a===L||l.includes(a),eA=R===t.length-1,W=c==="Prfi Staking";return r.jsxs(y.Box,{children:[r.jsx(y.Box,{sx:{width:"100%",backgroundColor:U?"#0d6ff0":"transparent",borderRadius:"0.25rem",padding:"0.5rem 0rem",pl:2,transition:"background-color 0.3s"},children:r.jsxs(y.Link,{component:OB.Link,to:d.path,underline:"none",color:U?"white":o.palette.mode==="dark"?"#6E9EDC":"text.primary",sx:{fontWeight:500,opacity:d.disabled?.4:1,pointerEvents:d.disabled?"none":"auto",cursor:d.disabled?"default":"pointer"},children:[d.icon&&r.jsx(y.Box,{component:"img",src:d.icon,alt:d.label,sx:{width:20,height:20,mr:1,verticalAlign:"middle",mt:-.5,alignItems:"center"}}),d.label]})}),W&&!eA&&r.jsx(y.Divider,{sx:{my:1}})]},d.path)}),D===0&&r.jsx(y.Divider,{sx:{my:2}})]},c)),r.jsx(y.Box,{sx:{display:"flex",mt:10},children:HE.map(({Icon:c,href:t,alt:D},d)=>r.jsx(y.Box,{component:"a",href:t,target:"_blank",rel:"noopener noreferrer",sx:{cursor:"default",display:"inline-block",mr:1,mb:3,opacity:.4,pointerEvents:"none","&:hover img":{opacity:1}},children:r.jsx(y.Box,{component:"img",src:c,alt:D,sx:{width:c===Bg?27:20,height:c===Bg?27:20,verticalAlign:"middle",ml:1}})},d))}),r.jsx(NQ,{})]})},IQ="data:image/svg+xml,%3csvg%20width='78'%20height='55'%20viewBox='0%200%2078%2055'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M37.3171%200.5H19.955V3.10432H37.3171V0.5Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M45.5359%204.48926H11.6439V6.89655H45.5359V4.48926Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M49.8885%208.47754H7.29272V10.8848H49.8885V8.47754Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M52.1107%2012.4668H5.06934V14.8741H52.1107V12.4668Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M53.546%2016.4551H3.63403V18.8624H53.546V16.4551Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.0278%2020.4453H2.15332V22.8526H55.0278V20.4453Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.7216%2024.4336H1.45837V26.8409H55.7216V24.4336Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M56.3247%2028.4229H0.856567V30.8301H56.3247V28.4229Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.7216%2032.4111H1.45837V34.8184H55.7216V32.4111Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M53.9628%2036.4004H3.21741V38.8077H53.9628V36.4004Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M51.8791%2040.3887H5.30103V42.796H51.8791V40.3887Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M49.1935%2044.3779H7.98645V46.7852H49.1935V44.3779Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M44.4255%2048.3682H12.7557V50.7755H44.4255V48.3682Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M37.3171%2052.585H19.955V54.763H37.3171V52.585Z'%20fill='%230D6FF0'/%3e%3cmask%20id='mask0_378_7364'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='78'%20height='55'%3e%3cpath%20d='M77.8566%200.5H0.856567V54.7632H77.8566V0.5Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_378_7364)'%3e%3cpath%20d='M20.3418%2044.4848C20.3418%2044.4848%2017.6575%2038.2958%2016.5577%2036.3351C14.5301%2032.7423%2012.1065%2029.3879%209.33228%2026.3346L12.2053%2022.5374C12.2053%2022.5374%2019.3352%2029.9467%2022.1163%2036.7996C22.1163%2036.7996%2026.5619%2019.1139%2037.858%204.48145L40.3656%208.46375C37.287%2012.5738%2034.6776%2017.0151%2032.5861%2021.7051C29.2145%2029.0691%2026.4241%2036.6856%2024.2405%2044.4848H20.3418ZM74.0606%2044.2078V42.6758C72.9489%2043.5054%2071.6283%2044.0095%2070.2466%2044.1316C68.8648%2044.2537%2067.4763%2043.989%2066.2364%2043.3672C64.9964%2042.7454%2063.9539%2041.7909%2063.2253%2040.6105C62.4967%2039.4301%2062.1109%2038.0703%2062.1109%2036.6832C62.1109%2035.2961%2062.4967%2033.9363%2063.2253%2032.7559C63.9539%2031.5755%2064.9964%2030.621%2066.2364%2029.9992C67.4763%2029.3773%2068.8648%2029.1127%2070.2466%2029.2348C71.6283%2029.3569%2072.9489%2029.861%2074.0606%2030.6906V20.1312H77.859V44.2078H74.0606ZM65.7664%2036.685C65.7664%2037.4405%2065.9903%2038.179%2066.4099%2038.8073C66.8295%2039.4355%2067.426%2039.9253%2068.1238%2040.2146C68.8217%2040.504%2069.5897%2040.5801%2070.3308%2040.4331C71.0718%2040.2861%2071.7527%2039.9228%2072.2873%2039.389C72.8219%2038.8552%2073.1863%2038.1749%2073.3344%2037.4341C73.4826%2036.6933%2073.4077%2035.9252%2073.1194%2035.2268C72.8311%2034.5285%2072.3423%2033.9313%2071.7147%2033.5108C71.0871%2033.0902%2070.3489%2032.8651%2069.5935%2032.8639C68.5799%2032.8645%2067.6079%2033.2669%2066.8905%2033.983C66.1732%2034.699%2065.7689%2035.6702%2065.7664%2036.6838V36.685ZM55.4494%2044.2078V29.4834H59.2454V44.2078H55.4494ZM48.5953%2044.2078V20.1312H52.3925V44.2078H48.5953ZM41.1919%2044.2078V43.2167C40.0765%2043.8639%2038.8102%2044.2057%2037.5206%2044.2078C36.2311%2044.2098%2034.9637%2043.8721%2033.8462%2043.2285C32.7287%2042.5849%2031.8005%2041.6582%2031.1551%2040.5417C30.5098%2039.4253%2030.17%2038.1585%2030.17%2036.8689C30.17%2035.5793%2030.5098%2034.3125%2031.1551%2033.196C31.8005%2032.0796%2032.7287%2031.1529%2033.8462%2030.5093C34.9637%2029.8657%2036.2311%2029.5279%2037.5206%2029.53C38.8102%2029.532%2040.0765%2029.8739%2041.1919%2030.5211V29.4834H44.9891V44.2078H41.1919ZM33.7575%2036.8689C33.7573%2037.8001%2034.1032%2038.6982%2034.728%2039.3886C35.3528%2040.0791%2036.2119%2040.5128%2037.1385%2040.6054C38.0651%2040.6979%2038.9931%2040.4428%2039.7421%2039.8896C40.4912%2039.3363%2041.0079%2038.5245%2041.1919%2037.6116V36.1261C41.0079%2035.2134%2040.4913%2034.4016%2039.7424%2033.8483C38.9934%2033.2951%2038.0656%2033.0399%2037.1391%2033.1323C36.2126%2033.2248%2035.3535%2033.6582%2034.7286%2034.3484C34.1037%2035.0387%2033.7576%2035.9378%2033.7575%2036.8689ZM54.6147%2022.4466C54.615%2021.989%2054.7509%2021.5417%2055.0053%2021.1612C55.2597%2020.7808%2055.6213%2020.4844%2056.0441%2020.3095C56.467%2020.1345%2056.9323%2020.0888%2057.3811%2020.1783C57.8299%2020.2677%2058.2421%2020.4882%2058.5657%2020.8119C58.8892%2021.1355%2059.1095%2021.5479%2059.1987%2021.9968C59.2879%2022.4456%2059.242%2022.9109%2059.0668%2023.3337C58.8916%2023.7564%2058.595%2024.1178%2058.2144%2024.372C57.8339%2024.6263%2057.3865%2024.7619%2056.9289%2024.7619C56.6248%2024.7621%2056.3238%2024.7023%2056.0428%2024.586C55.7619%2024.4697%2055.5067%2024.2991%2055.2918%2024.0841C55.0768%2023.869%2054.9064%2023.6137%2054.7902%2023.3327C54.6741%2023.0518%2054.6144%2022.7506%2054.6147%2022.4466Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e";var cB={},js={};process.env.NODE_ENV!=="production"&&(H.node,H.object.isRequired);function fE(A){return pt(A)}function mE(A){return dg("MuiSvgIcon",A)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pE=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],PE=A=>{const{color:B,fontSize:s,classes:g}=A,Q={root:["root",B!=="inherit"&&`color${pA(B)}`,`fontSize${pA(s)}`]};return Ht(Q,mE,g)},NE=VE("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(A,B)=>{const{ownerState:s}=A;return[B.root,s.color!=="inherit"&&B[`color${pA(s.color)}`],B[`fontSize${pA(s.fontSize)}`]]}})(({theme:A,ownerState:B})=>{var s,g,Q,e,C,w,E,o,n,I,F,i,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:B.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(s=A.transitions)==null||(g=s.create)==null?void 0:g.call(s,"fill",{duration:(Q=A.transitions)==null||(Q=Q.duration)==null?void 0:Q.shorter}),fontSize:{inherit:"inherit",small:((e=A.typography)==null||(C=e.pxToRem)==null?void 0:C.call(e,20))||"1.25rem",medium:((w=A.typography)==null||(E=w.pxToRem)==null?void 0:E.call(w,24))||"1.5rem",large:((o=A.typography)==null||(n=o.pxToRem)==null?void 0:n.call(o,35))||"2.1875rem"}[B.fontSize],color:(I=(F=(A.vars||A).palette)==null||(F=F[B.color])==null?void 0:F.main)!=null?I:{action:(i=(A.vars||A).palette)==null||(i=i.action)==null?void 0:i.active,disabled:(c=(A.vars||A).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[B.color]}}),$B=BA.forwardRef(function(B,s){const g=fE({props:B,name:"MuiSvgIcon"}),{children:Q,className:e,color:C="inherit",component:w="svg",fontSize:E="medium",htmlColor:o,inheritViewBox:n=!1,titleAccess:I,viewBox:F="0 0 24 24"}=g,i=NA(g,pE),c=BA.isValidElement(Q)&&Q.type==="svg",t=z({},g,{color:C,component:w,fontSize:E,instanceFontSize:B.fontSize,inheritViewBox:n,viewBox:F,hasSvgAsChild:c}),D={};n||(D.viewBox=F);const d=PE(t);return r.jsxs(NE,z({as:w,className:wt(d.root,e),focusable:"false",color:o,"aria-hidden":I?void 0:!0,role:I?"img":void 0,ref:s},D,i,c&&Q.props,{ownerState:t,children:[c?Q.props.children:Q,I?r.jsx("title",{children:I}):null]}))});process.env.NODE_ENV!=="production"&&($B.propTypes={children:H.node,classes:H.object,className:H.string,color:H.oneOfType([H.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),H.string]),component:H.elementType,fontSize:H.oneOfType([H.oneOf(["inherit","large","medium","small"]),H.string]),htmlColor:H.string,inheritViewBox:H.bool,shapeRendering:H.string,sx:H.oneOfType([H.arrayOf(H.oneOfType([H.func,H.object,H.bool])),H.func,H.object]),titleAccess:H.string,viewBox:H.string});$B.muiName="SvgIcon";function TE(A,B){function s(g,Q){return r.jsx($B,z({"data-testid":`${B}Icon`,ref:Q},g,{children:A}))}return process.env.NODE_ENV!=="production"&&(s.displayName=`${B}Icon`),s.muiName=$B.muiName,BA.memo(BA.forwardRef(s))}const vE={configure:A=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
91
|
-
`)),oe.configure(A)}},jE=Object.freeze(Object.defineProperty({__proto__:null,capitalize:pA,createChainedFunction:dt,createSvgIcon:TE,debounce:yt,deprecatedPropType:Gt,isMuiElement:lt,ownerDocument:Ie,ownerWindow:bt,requirePropFactory:Rt,setRef:re,unstable_ClassNameGenerator:vE,unstable_useEnhancedEffect:ce,unstable_useId:xt,unsupportedProp:Mt,useControlled:Lt,useEventCallback:ht,useForkRef:Jt,useIsFocusVisible:St},Symbol.toStringTag,{value:"Module"})),WE=SA(jE);var rQ;function FB(){return rQ||(rQ=1,(function(A){"use client";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"default",{enumerable:!0,get:function(){return B.createSvgIcon}});var B=WE})(js)),js}var DQ;function OE(){if(DQ)return cB;DQ=1;var A=jA();Object.defineProperty(cB,"__esModule",{value:!0}),cB.default=void 0;var B=A(FB()),s=r;return cB.default=(0,B.default)((0,s.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),cB}var ZE=OE();const zE=TA(ZE),dQ="data:image/svg+xml,%3csvg%20width='78'%20height='55'%20viewBox='0%200%2078%2055'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M37.3171%200.5H19.955V3.10432H37.3171V0.5Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M45.5359%204.48926H11.6439V6.89655H45.5359V4.48926Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M49.8885%208.47754H7.29272V10.8848H49.8885V8.47754Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M52.1107%2012.4668H5.06934V14.8741H52.1107V12.4668Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M53.546%2016.4551H3.63403V18.8624H53.546V16.4551Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.0278%2020.4453H2.15332V22.8526H55.0278V20.4453Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.7216%2024.4336H1.45837V26.8409H55.7216V24.4336Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M56.3247%2028.4229H0.856567V30.8301H56.3247V28.4229Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.7216%2032.4111H1.45837V34.8184H55.7216V32.4111Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M53.9628%2036.4004H3.21741V38.8077H53.9628V36.4004Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M51.8791%2040.3887H5.30103V42.796H51.8791V40.3887Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M49.1935%2044.3779H7.98645V46.7852H49.1935V44.3779Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M44.4255%2048.3682H12.7557V50.7755H44.4255V48.3682Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M37.3171%2052.585H19.955V54.763H37.3171V52.585Z'%20fill='%230D6FF0'/%3e%3cmask%20id='mask0_181_31403'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='78'%20height='55'%3e%3cpath%20d='M77.8566%200.5H0.856567V54.7632H77.8566V0.5Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_181_31403)'%3e%3cpath%20d='M20.3418%2044.4848C20.3418%2044.4848%2017.6575%2038.2958%2016.5577%2036.3351C14.5301%2032.7423%2012.1065%2029.3879%209.33228%2026.3346L12.2053%2022.5374C12.2053%2022.5374%2019.3352%2029.9467%2022.1163%2036.7996C22.1163%2036.7996%2026.5619%2019.1139%2037.858%204.48145L40.3656%208.46375C37.287%2012.5738%2034.6776%2017.0151%2032.5861%2021.7051C29.2145%2029.0691%2026.4241%2036.6856%2024.2405%2044.4848H20.3418ZM74.0606%2044.2078V42.6758C72.9489%2043.5054%2071.6283%2044.0095%2070.2466%2044.1316C68.8648%2044.2537%2067.4763%2043.989%2066.2364%2043.3672C64.9964%2042.7454%2063.9539%2041.7909%2063.2253%2040.6105C62.4967%2039.4301%2062.1109%2038.0703%2062.1109%2036.6832C62.1109%2035.2961%2062.4967%2033.9363%2063.2253%2032.7559C63.9539%2031.5755%2064.9964%2030.621%2066.2364%2029.9992C67.4763%2029.3773%2068.8648%2029.1127%2070.2466%2029.2348C71.6283%2029.3569%2072.9489%2029.861%2074.0606%2030.6906V20.1312H77.859V44.2078H74.0606ZM65.7664%2036.685C65.7664%2037.4405%2065.9903%2038.179%2066.4099%2038.8073C66.8295%2039.4355%2067.426%2039.9253%2068.1238%2040.2146C68.8217%2040.504%2069.5897%2040.5801%2070.3308%2040.4331C71.0718%2040.2861%2071.7527%2039.9228%2072.2873%2039.389C72.8219%2038.8552%2073.1863%2038.1749%2073.3344%2037.4341C73.4826%2036.6933%2073.4077%2035.9252%2073.1194%2035.2268C72.8311%2034.5285%2072.3423%2033.9313%2071.7147%2033.5108C71.0871%2033.0902%2070.3489%2032.8651%2069.5935%2032.8639C68.5799%2032.8645%2067.6079%2033.2669%2066.8905%2033.983C66.1732%2034.699%2065.7689%2035.6702%2065.7664%2036.6838V36.685ZM55.4494%2044.2078V29.4834H59.2454V44.2078H55.4494ZM48.5953%2044.2078V20.1312H52.3925V44.2078H48.5953ZM41.1919%2044.2078V43.2167C40.0765%2043.8639%2038.8102%2044.2057%2037.5206%2044.2078C36.2311%2044.2098%2034.9637%2043.8721%2033.8462%2043.2285C32.7287%2042.5849%2031.8005%2041.6582%2031.1551%2040.5417C30.5098%2039.4253%2030.17%2038.1585%2030.17%2036.8689C30.17%2035.5793%2030.5098%2034.3125%2031.1551%2033.196C31.8005%2032.0796%2032.7287%2031.1529%2033.8462%2030.5093C34.9637%2029.8657%2036.2311%2029.5279%2037.5206%2029.53C38.8102%2029.532%2040.0765%2029.8739%2041.1919%2030.5211V29.4834H44.9891V44.2078H41.1919ZM33.7575%2036.8689C33.7573%2037.8001%2034.1032%2038.6982%2034.728%2039.3886C35.3528%2040.0791%2036.2119%2040.5128%2037.1385%2040.6054C38.0651%2040.6979%2038.9931%2040.4428%2039.7421%2039.8896C40.4912%2039.3363%2041.0079%2038.5245%2041.1919%2037.6116V36.1261C41.0079%2035.2134%2040.4913%2034.4016%2039.7424%2033.8483C38.9934%2033.2951%2038.0656%2033.0399%2037.1391%2033.1323C36.2126%2033.2248%2035.3535%2033.6582%2034.7286%2034.3484C34.1037%2035.0387%2033.7576%2035.9378%2033.7575%2036.8689ZM54.6147%2022.4466C54.615%2021.989%2054.7509%2021.5417%2055.0053%2021.1612C55.2597%2020.7808%2055.6213%2020.4844%2056.0441%2020.3095C56.467%2020.1345%2056.9323%2020.0888%2057.3811%2020.1783C57.8299%2020.2677%2058.2421%2020.4882%2058.5657%2020.8119C58.8892%2021.1355%2059.1095%2021.5479%2059.1987%2021.9968C59.2879%2022.4456%2059.242%2022.9109%2059.0668%2023.3337C58.8916%2023.7564%2058.595%2024.1178%2058.2144%2024.372C57.8339%2024.6263%2057.3865%2024.7619%2056.9289%2024.7619C56.6248%2024.7621%2056.3238%2024.7023%2056.0428%2024.586C55.7619%2024.4697%2055.5067%2024.2991%2055.2918%2024.0841C55.0768%2023.869%2054.9064%2023.6137%2054.7902%2023.3327C54.6741%2023.0518%2054.6144%2022.7506%2054.6147%2022.4466Z'%20fill='black'/%3e%3c/g%3e%3c/svg%3e";var IB={},yQ;function qE(){if(yQ)return IB;yQ=1;var A=jA();Object.defineProperty(IB,"__esModule",{value:!0}),IB.default=void 0;var B=A(FB()),s=r;return IB.default=(0,B.default)((0,s.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 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-2m0 16H8V7h11z"}),"ContentCopy"),IB}var _E=qE();const GQ=TA(_E);var rB={},lQ;function $E(){if(lQ)return rB;lQ=1;var A=jA();Object.defineProperty(rB,"__esModule",{value:!0}),rB.default=void 0;var B=A(FB()),s=r;return rB.default=(0,B.default)((0,s.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew"),rB}var A0=$E();const bQ=TA(A0);var DB={},RQ;function B0(){if(RQ)return DB;RQ=1;var A=jA();Object.defineProperty(DB,"__esModule",{value:!0}),DB.default=void 0;var B=A(FB()),s=r;return DB.default=(0,B.default)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),DB}var s0=B0();const aQ=TA(s0),zA={LSD:"LSD",Anchor:"Anchor",Private:"Private",Native:"Native",PrFi:"PrFi"};function JB(A){if(!Number.isSafeInteger(A)||A<0)throw new Error(`positive integer expected, not ${A}`)}function g0(A){if(typeof A!="boolean")throw new Error(`boolean expected, not ${A}`)}function Q0(A){return A instanceof Uint8Array||A!=null&&typeof A=="object"&&A.constructor.name==="Uint8Array"}function us(A,...B){if(!Q0(A))throw new Error("Uint8Array expected");if(B.length>0&&!B.includes(A.length))throw new Error(`Uint8Array expected of length ${B}, not of length=${A.length}`)}function e0(A){if(typeof A!="function"||typeof A.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");JB(A.outputLen),JB(A.blockLen)}function Cg(A,B=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(B&&A.finished)throw new Error("Hash#digest() has already been called")}function ye(A,B){us(A);const s=B.outputLen;if(A.length<s)throw new Error(`digestInto() expects output buffer of length at least ${s}`)}const C0={number:JB,bool:g0,bytes:us,hash:e0,exists:Cg,output:ye},fB=BigInt(2**32-1),xQ=BigInt(32);function w0(A,B=!1){return B?{h:Number(A&fB),l:Number(A>>xQ&fB)}:{h:Number(A>>xQ&fB)|0,l:Number(A&fB)|0}}function t0(A,B=!1){let s=new Uint32Array(A.length),g=new Uint32Array(A.length);for(let Q=0;Q<A.length;Q++){const{h:e,l:C}=w0(A[Q],B);[s[Q],g[Q]]=[e,C]}return[s,g]}const E0=(A,B,s)=>A<<s|B>>>32-s,o0=(A,B,s)=>B<<s|A>>>32-s,F0=(A,B,s)=>B<<s-32|A>>>64-s,i0=(A,B,s)=>A<<s-32|B>>>64-s;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const n0=A=>new Uint32Array(A.buffer,A.byteOffset,Math.floor(A.byteLength/4)),MQ=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,c0=A=>A<<24&4278190080|A<<8&16711680|A>>>8&65280|A>>>24&255;function LQ(A){for(let B=0;B<A.length;B++)A[B]=c0(A[B])}function lg(A){if(typeof A!="string")throw new Error(`utf8ToBytes expected string, got ${typeof A}`);return new Uint8Array(new TextEncoder().encode(A))}function Ge(A){return typeof A=="string"&&(A=lg(A)),us(A),A}class I0{clone(){return this._cloneInto()}}function r0(A){const B=g=>A().update(Ge(g)).digest(),s=A();return B.outputLen=s.outputLen,B.blockLen=s.blockLen,B.create=()=>A(),B}const le=[],be=[],Re=[],D0=BigInt(0),dB=BigInt(1),d0=BigInt(2),y0=BigInt(7),G0=BigInt(256),l0=BigInt(113);for(let A=0,B=dB,s=1,g=0;A<24;A++){[s,g]=[g,(2*s+3*g)%5],le.push(2*(5*g+s)),be.push((A+1)*(A+2)/2%64);let Q=D0;for(let e=0;e<7;e++)B=(B<<dB^(B>>y0)*l0)%G0,B&d0&&(Q^=dB<<(dB<<BigInt(e))-dB);Re.push(Q)}const[b0,R0]=t0(Re,!0),hQ=(A,B,s)=>s>32?F0(A,B,s):E0(A,B,s),JQ=(A,B,s)=>s>32?i0(A,B,s):o0(A,B,s);function a0(A,B=24){const s=new Uint32Array(10);for(let g=24-B;g<24;g++){for(let C=0;C<10;C++)s[C]=A[C]^A[C+10]^A[C+20]^A[C+30]^A[C+40];for(let C=0;C<10;C+=2){const w=(C+8)%10,E=(C+2)%10,o=s[E],n=s[E+1],I=hQ(o,n,1)^s[w],F=JQ(o,n,1)^s[w+1];for(let i=0;i<50;i+=10)A[C+i]^=I,A[C+i+1]^=F}let Q=A[2],e=A[3];for(let C=0;C<24;C++){const w=be[C],E=hQ(Q,e,w),o=JQ(Q,e,w),n=le[C];Q=A[n],e=A[n+1],A[n]=E,A[n+1]=o}for(let C=0;C<50;C+=10){for(let w=0;w<10;w++)s[w]=A[C+w];for(let w=0;w<10;w++)A[C+w]^=~s[(w+2)%10]&s[(w+4)%10]}A[0]^=b0[g],A[1]^=R0[g]}s.fill(0)}class bg extends I0{constructor(B,s,g,Q=!1,e=24){if(super(),this.blockLen=B,this.suffix=s,this.outputLen=g,this.enableXOF=Q,this.rounds=e,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,JB(g),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=n0(this.state)}keccak(){MQ||LQ(this.state32),a0(this.state32,this.rounds),MQ||LQ(this.state32),this.posOut=0,this.pos=0}update(B){Cg(this);const{blockLen:s,state:g}=this;B=Ge(B);const Q=B.length;for(let e=0;e<Q;){const C=Math.min(s-this.pos,Q-e);for(let w=0;w<C;w++)g[this.pos++]^=B[e++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:B,suffix:s,pos:g,blockLen:Q}=this;B[g]^=s,(s&128)!==0&&g===Q-1&&this.keccak(),B[Q-1]^=128,this.keccak()}writeInto(B){Cg(this,!1),us(B),this.finish();const s=this.state,{blockLen:g}=this;for(let Q=0,e=B.length;Q<e;){this.posOut>=g&&this.keccak();const C=Math.min(g-this.posOut,e-Q);B.set(s.subarray(this.posOut,this.posOut+C),Q),this.posOut+=C,Q+=C}return B}xofInto(B){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(B)}xof(B){return JB(B),this.xofInto(new Uint8Array(B))}digestInto(B){if(ye(B,this),this.finished)throw new Error("digest() was already called");return this.writeInto(B),this.destroy(),B}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(B){const{blockLen:s,suffix:g,outputLen:Q,rounds:e,enableXOF:C}=this;return B||(B=new bg(s,g,Q,C,e)),B.state32.set(this.state32),B.pos=this.pos,B.posOut=this.posOut,B.finished=this.finished,B.rounds=e,B.suffix=g,B.outputLen=Q,B.enableXOF=C,B.destroyed=this.destroyed,B}}const x0=(A,B,s)=>r0(()=>new bg(B,A,s)),YQ=x0(1,136,256/8);function M0(A){return B=>(C0.bytes(B),A(B))}(()=>{const A=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,B=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);return{node:B&&!A?B("crypto"):void 0,web:A}})();const ae=(()=>{const A=M0(YQ);return A.create=YQ.create,A})(),L0=208,h0=4001,J0=4100,Y0=4200,u0=4900,X0=4901,U0=1005,As=-32700,Bs=-32600,ss=-32601,gs=-32602,Qs=-32603,es=-32e3,Cs=-32001,ws=-32002,ts=-32003,Es=-32004,os=-32005,Fs=-32006;class is extends Error{get innerError(){return this.cause instanceof Ws?this.cause.errors:this.cause}set innerError(B){Array.isArray(B)?this.cause=new Ws(B):this.cause=B}constructor(B,s){super(B),Array.isArray(s)?this.cause=new Ws(s):this.cause=s,this.name=this.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(new.target.constructor):this.stack=new Error().stack}static convertToString(B,s=!1){if(B==null)return"undefined";const g=JSON.stringify(B,(Q,e)=>typeof e=="bigint"?e.toString():e);return s&&["bigint","string"].includes(typeof B)?g.replace(/['\\"]+/g,""):g}toJSON(){return{name:this.name,code:this.code,message:this.message,cause:this.cause,innerError:this.cause}}}class Ws extends is{constructor(B){super(`Multiple errors occurred: [${B.map(s=>s.message).join("], [")}]`),this.code=L0,this.errors=B}}class k0 extends is{constructor(B,s){super(`Invalid value given "${is.convertToString(B,!0)}". Error: ${s}.`),this.name=this.constructor.name}}class V0 extends k0{constructor(B){super(B,"invalid ethereum address"),this.code=U0}}const K0="An Rpc error has occured with a code of *code*",LA={[As]:{message:"Parse error",description:"Invalid JSON"},[Bs]:{message:"Invalid request",description:"JSON is not a valid request object "},[ss]:{message:"Method not found",description:"Method does not exist "},[gs]:{message:"Invalid params",description:"Invalid method parameters"},[Qs]:{message:"Internal error",description:"Internal JSON-RPC error"},[es]:{message:"Invalid input",description:"Missing or invalid parameters"},[Cs]:{message:"Resource not found",description:"Requested resource not found"},[ws]:{message:"Resource unavailable",description:"Requested resource not available"},[ts]:{message:"Transaction rejected",description:"Transaction creation failed"},[Es]:{message:"Method not supported",description:"Method is not implemented"},[os]:{message:"Limit exceeded",description:"Request exceeds defined limit"},[Fs]:{message:"JSON-RPC version not supported",description:"Version of JSON-RPC protocol is not supported"},[h0]:{name:"User Rejected Request",message:"The user rejected the request."},[J0]:{name:"Unauthorized",message:"The requested method and/or account has not been authorized by the user."},[Y0]:{name:"Unsupported Method",message:"The Provider does not support the requested method."},[u0]:{name:"Disconnected",message:"The Provider is disconnected from all chains."},[X0]:{name:"Chain Disconnected",message:"The Provider is not connected to the requested chain."},"0-999":{name:"",message:"Not used."},1e3:{name:"Normal Closure",message:"The connection successfully completed the purpose for which it was created."},1001:{name:"Going Away",message:"The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection."},1002:{name:"Protocol error",message:"The endpoint is terminating the connection due to a protocol error."},1003:{name:"Unsupported Data",message:"The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.)"},1004:{name:"Reserved",message:"Reserved. A meaning might be defined in the future."},1005:{name:"No Status Rcvd",message:"Reserved. Indicates that no status code was provided even though one was expected."},1006:{name:"Abnormal Closure",message:"Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected."},1007:{name:"Invalid frame payload data",message:"The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)."},1008:{name:"Policy Violation",message:"The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable."},1009:{name:"Message Too Big",message:"The endpoint is terminating the connection because a data frame was received that is too large."},1010:{name:"Mandatory Ext.",message:"The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't."},1011:{name:"Internal Error",message:"The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request."},1012:{name:"Service Restart",message:"The server is terminating the connection because it is restarting."},1013:{name:"Try Again Later",message:"The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients."},1014:{name:"Bad Gateway",message:"The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code."},1015:{name:"TLS handshake",message:"Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)."},"1016-2999":{name:"",message:"For definition by future revisions of the WebSocket Protocol specification, and for definition by extension specifications."},"3000-3999":{name:"",message:"For use by libraries, frameworks, and applications. These status codes are registered directly with IANA. The interpretation of these codes is undefined by the WebSocket protocol."},"4000-4999":{name:"",message:"For private use, and thus can't be registered. Such codes can be used by prior agreements between WebSocket applications. The interpretation of these codes is undefined by the WebSocket protocol."}};class hA extends is{constructor(B,s){super(s??K0.replace("*code*",B.error.code.toString())),this.code=B.error.code,this.id=B.id,this.jsonrpc=B.jsonrpc,this.jsonRpcError=B.error}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{error:this.jsonRpcError,id:this.id,jsonRpc:this.jsonrpc})}}class S0 extends hA{constructor(B){super(B,LA[As].message),this.code=As}}class H0 extends hA{constructor(B){super(B,LA[Bs].message),this.code=Bs}}class f0 extends hA{constructor(B){super(B,LA[ss].message),this.code=ss}}class m0 extends hA{constructor(B){super(B,LA[gs].message),this.code=gs}}class p0 extends hA{constructor(B){super(B,LA[Qs].message),this.code=Qs}}class P0 extends hA{constructor(B){super(B,LA[es].message),this.code=es}}class N0 extends hA{constructor(B){super(B,LA[Es].message),this.code=Es}}class T0 extends hA{constructor(B){super(B,LA[ws].message),this.code=ws}}class v0 extends hA{constructor(B){super(B,LA[Cs].message),this.code=Cs}}class j0 extends hA{constructor(B){super(B,LA[Fs].message),this.code=Fs}}class W0 extends hA{constructor(B){super(B,LA[ts].message),this.code=ts}}class O0 extends hA{constructor(B){super(B,LA[os].message),this.code=os}}const JA=new Map;JA.set(As,{error:S0});JA.set(Bs,{error:H0});JA.set(ss,{error:f0});JA.set(gs,{error:m0});JA.set(Qs,{error:p0});JA.set(es,{error:P0});JA.set(Es,{error:N0});JA.set(ws,{error:T0});JA.set(ts,{error:W0});JA.set(Cs,{error:v0});JA.set(Fs,{error:j0});JA.set(os,{error:O0});const Z0=A=>typeof A=="string"&&/^((-)?0x[0-9a-f]+|(0x))$/i.test(A);function Rg(A){let B="0x";for(const s of A){const g=s.toString(16);B+=g.length===1?`0${g}`:g}return B}function xe(A){var B;return!(A instanceof Uint8Array)&&((B=A==null?void 0:A.constructor)===null||B===void 0?void 0:B.name)==="Uint8Array"?Uint8Array.from(A):A}const uQ=A=>{var B,s;return A instanceof Uint8Array||((B=A==null?void 0:A.constructor)===null||B===void 0?void 0:B.name)==="Uint8Array"||((s=A==null?void 0:A.constructor)===null||s===void 0?void 0:s.name)==="Buffer"},z0=A=>{if(!/^(0x)?[0-9a-f]{40}$/i.test(A))return!1;const B=A.slice(2),s=lg(B.toLowerCase()),g=Rg(ae(xe(s))).slice(2);for(let Q=0;Q<40;Q+=1)if(parseInt(g[Q],16)>7&&B[Q].toUpperCase()!==B[Q]||parseInt(g[Q],16)<=7&&B[Q].toLowerCase()!==B[Q])return!1;return!0},q0=(A,B=!0)=>{if(typeof A!="string"&&!uQ(A))return!1;let s;return uQ(A)?s=Rg(A):typeof A=="string"&&!Z0(A)?s=A.toLowerCase().startsWith("0x")?A:`0x${A}`:s=A,/^(0x)?[0-9a-f]{40}$/i.test(s)?/^(0x|0X)?[0-9a-f]{40}$/.test(s)||/^(0x|0X)?[0-9A-F]{40}$/.test(s)?!0:B?z0(s):!0:!1};var ns;(function(A){A.NUMBER="NUMBER_NUMBER",A.HEX="NUMBER_HEX",A.STR="NUMBER_STR",A.BIGINT="NUMBER_BIGINT"})(ns||(ns={}));var cs;(function(A){A.HEX="BYTES_HEX",A.UINT8ARRAY="BYTES_UINT8ARRAY"})(cs||(cs={}));ns.BIGINT,cs.HEX;ns.HEX,cs.HEX;var XQ;(function(A){A.EARLIEST="earliest",A.LATEST="latest",A.PENDING="pending",A.SAFE="safe",A.FINALIZED="finalized",A.COMMITTED="committed"})(XQ||(XQ={}));var UQ;(function(A){A.chainstart="chainstart",A.frontier="frontier",A.homestead="homestead",A.dao="dao",A.tangerineWhistle="tangerineWhistle",A.spuriousDragon="spuriousDragon",A.byzantium="byzantium",A.constantinople="constantinople",A.petersburg="petersburg",A.istanbul="istanbul",A.muirGlacier="muirGlacier",A.berlin="berlin",A.london="london",A.altair="altair",A.arrowGlacier="arrowGlacier",A.grayGlacier="grayGlacier",A.bellatrix="bellatrix",A.merge="merge",A.capella="capella",A.shanghai="shanghai"})(UQ||(UQ={}));const _0=A=>A==null;BigInt(0),BigInt(1),BigInt(1e3),BigInt(1e3),BigInt(1e3),BigInt(1e3),BigInt(1e6),BigInt(1e6),BigInt(1e6),BigInt(1e6),BigInt(1e9),BigInt(1e9),BigInt(1e9),BigInt(1e9),BigInt(1e9),BigInt(1e12),BigInt(1e12),BigInt(1e12),BigInt(1e15),BigInt(1e15),BigInt(1e15),BigInt("1000000000000000000"),BigInt("1000000000000000000000"),BigInt("1000000000000000000000"),BigInt("1000000000000000000000000"),BigInt("1000000000000000000000000000"),BigInt("1000000000000000000000000000000");const $0=lg,Me=A=>{if(!q0(A,!1))throw new V0(A);const B=A.toLowerCase().replace(/^0x/i,""),s=Rg(ae(xe($0(B))));if(_0(s)||s==="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")return"";let g="0x";const Q=s.replace(/^0x/i,"");for(let e=0;e<B.length;e+=1)parseInt(Q[e],16)>7?g+=B[e].toUpperCase():g+=B[e];return g},Ao=A=>A==null?void 0:A.replace(/^0x/,"xdc"),kQ=A=>A==null?void 0:A.replace(/^xdc/,"0x"),VQ=(A,B,s)=>A?!s||s<=0?`${A.slice(0,B)}...`:`${A.slice(0,B)}...${A.slice(-s)}`:"",Bo=A=>Me(A),Is="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.2743%2011.852C23.6063%20-5.89599%202.18627%20-1.09599%200.722266%2011.852C3.69827%2013.52%204.37027%2013.916%204.37027%2013.916C4.37027%2013.916%203.21827%2014.648%200.710266%2016.244C3.90227%2033.308%2027.0023%2030.02%2028.2743%2016.22C25.9463%2014.756%2024.5663%2013.904%2024.5663%2013.904C24.5663%2013.904%2027.7103%2012.152%2028.2743%2011.852ZM16.6583%2019.616L14.2103%2015.416L11.7263%2019.616L9.85427%2019.484L13.3943%2013.52L10.2023%208.37201L12.1223%208.20401L14.3903%2012.02L16.6583%208.37201L18.4463%208.42001L15.4823%2013.484L18.7583%2019.58L16.6583%2019.628V19.616Z'%20fill='%23244B81'/%3e%3c/svg%3e",rs="data:image/svg+xml,%3csvg%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.2692%206.52332H7.26147L9.16378%2012.1062L7.26147%2018.0612L12.803%2019.5086L18.2592%2017.5455L15.1188%2012.1062L17.2692%206.89552V6.52332Z'%20fill='%23D9D9D9'/%3e%3cpath%20d='M24.4875%2011.0729C21.6763%20-5.22597%200.3918%20-2.07198%200.00979499%2011.0729C1.23417%2011.7096%202.00797%2012.1014%202.00797%2012.1014C2.00797%2012.1014%201.3615%2012.4932%200%2013.3551C2.44875%2029.3406%2023.3709%2027.0192%2024.4875%2013.3355C23.1554%2012.5226%2022.4305%2012.0916%2022.4305%2012.0916C22.4305%2012.0916%2023.0574%2011.7977%2024.4875%2011.0729ZM14.0166%2016.7638L12.0185%2013.3355L9.99089%2016.7638L8.45308%2016.656L11.3426%2011.7879L8.73713%207.58588L10.3043%207.44875L12.1556%2010.5636L14.0068%207.58588L15.4663%207.62506L13.0371%2011.7586L15.7112%2016.7344L13.997%2016.7736L14.0166%2016.7638Z'%20fill='%23B7B5B1'/%3e%3cpath%20d='M23.4981%2010.4362C19.6879%20-4.05055%202.20381%20-0.132554%201.00882%2010.4362C3.43798%2011.7978%203.9865%2012.121%203.9865%2012.121C3.9865%2012.121%203.04618%2012.7185%200.999023%2014.0212C3.60449%2027.9497%2022.4599%2025.2659%2023.4981%2014.0016C21.5979%2012.8066%2020.4715%2012.1112%2020.4715%2012.1112C20.4715%2012.1112%2023.0378%2010.6811%2023.4981%2010.4362ZM14.0166%2016.7736L12.0184%2013.3454L9.99083%2016.7736L8.46281%2016.6659L11.3523%2011.7978L8.74686%207.5957L10.3141%207.45857L12.1653%2010.5734L14.0166%207.5957L15.476%207.63488L13.0567%2011.7684L15.7307%2016.7442L14.0166%2016.7834V16.7736Z'%20fill='%23244B81'/%3e%3c/svg%3e",mB="data:image/png;base64,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",Ds={50:{name:"XDC",logoLight:Is,logoDark:rs,explorer:"https://xdcscan.com",prefix:"xdc"},51:{name:"XDC",logoLight:Is,logoDark:rs,explorer:"https://testnet.xdcscan.com",prefix:"xdc"},8453:{name:"Base",logoLight:mB,logoDark:mB,explorer:"https://basescan.org",prefix:"0x"},84532:{name:"Base",logoLight:mB,logoDark:mB,explorer:"https://sepolia.basescan.org",prefix:"0x"}},so=({address:A,showAddress:B=!0,showCopyButton:s=!0,showInBlockExplorer:g=!0,withBackground:Q=!1,isTransaction:e=!1,showAddToWallet:C=!1,shrinkAddress:w=!0,chainId:E,onCopy:o,onOpenExplorer:n,onAddToWallet:I})=>{const F=A&&kQ(A),i=y.useTheme(),c=y.useMediaQuery(i.breakpoints.down("sm")),t=E?Ds[E]:Ds[51],D=(t==null?void 0:t.prefix)??"0x",d=(t==null?void 0:t.explorer)??"https://testnet.xdcscan.com",R=tA.useMemo(()=>{const G=D==="xdc"?Ao(F):F,l=D==="xdc"?G:Me(G);return w?c?VQ(l,5,0):VQ(l,7,4):l},[A,F,D,w,c,E]),M=()=>e?`${d}/tx/${F}`:`${d}/address/${F}`,Y=()=>{const G=kQ(Bo(F));o?o(G):navigator.clipboard.writeText(G)},b=()=>{const G=M();n?n(G):window.open(G,"_blank")},V=()=>{I&&I()};return r.jsxs(y.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",mt:{xs:2,md:0},p:0,alignItems:"center"},children:[B&&r.jsx(y.Box,{sx:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:r.jsx(y.Typography,{sx:{...j.regularSx,fontSize:{xs:"14px",md:"16px"}},children:R})}),r.jsxs(y.Box,{sx:{display:"flex",gap:{xs:1}},children:[s&&r.jsx(y.Tooltip,{title:"Copy",children:r.jsxs(y.IconButton,{"aria-label":"copy address",onClick:Y,sx:{ml:.5,mr:0,width:{xs:"0.57rem",md:"auto"},height:{xs:"0.663rem",md:"auto"}},children:[!Q&&r.jsx(GQ,{sx:{fontSize:"1rem"}}),Q&&r.jsx(GQ,{sx:{fontSize:"1rem"}})]})}),g&&r.jsx(y.Tooltip,{title:"Go to Explorer",children:r.jsxs(y.IconButton,{onClick:b,sx:{width:{xs:"0.57rem",md:"auto"},height:{xs:"0.663rem",md:"auto"}},children:[!Q&&r.jsx(bQ,{sx:{fontSize:"1rem"}}),Q&&r.jsx(bQ,{sx:{fontSize:"1rem"}})]})}),C&&r.jsx(y.Tooltip,{title:"Add to Wallet",children:r.jsxs(y.IconButton,{onClick:V,sx:{width:{xs:"0.57rem",md:"auto"},height:{xs:"0.663rem",md:"auto"}},children:[!Q&&r.jsx(aQ,{sx:{fontSize:"1rem"}}),Q&&r.jsx(aQ,{sx:{fontSize:"1rem"}})]})})]})]})},go=()=>{var t,D;const A=y.useTheme(),B=y.useMediaQuery(A.breakpoints.down("md")),{account:s,onConnect:g,onDisconnect:Q,logoUrl:e,isSupported:C,wallet:w}=qA(d=>({account:d.account,onConnect:d.onConnect,onDisconnect:d.onDisconnect,logoUrl:d.logoUrl,isSupported:d.isSupported,wallet:d.wallet})),E=!!s,o=(D=(t=w==null?void 0:w.chains)==null?void 0:t[0])==null?void 0:D.id,n=o?typeof o=="string"?parseInt(o,16):o:51,I=Ds[n]??Ds[51],F=!E,i=E&&!C,c=E;return r.jsxs(y.Box,{sx:{display:"flex",mr:{xs:1,md:1},mt:2,p:0},children:[c&&C&&r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"5.25rem",height:"3.563rem",opacity:1,backgroundColor:A.palette.mode==="dark"?"#183762":"#E1EEFF",borderRadius:"0.563rem",mr:1,gap:1},children:[r.jsx("img",{src:A.palette.mode==="dark"?I.logoDark??"":I.logoLight??"",alt:I.name??"Unknown Chain",width:30,height:30}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mt:2,mb:2},children:I.name??"Unknown Chain"})]}),i&&r.jsx(y.Button,{sx:{width:{xs:"auto",md:"11.798rem"},height:{xs:"3.17rem",md:"3.563rem"},opacity:1,mr:1,p:1,whiteSpace:"nowrap"},children:r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",textAlign:"center",color:"#F9FCFF",mt:2,mb:2},children:"Unsupported Chain"})}),F&&r.jsx(y.Box,{sx:{mt:1.5},children:r.jsx(y.Button,{sx:{...j.boldSx,width:"11rem",height:"3.563rem",fontSize:"3.563",zIndex:999999,mb:2},onClick:g,children:"Connect Wallet"})}),c&&r.jsxs(y.Box,{sx:{width:{xs:"auto",md:"16.199rem"},height:{xs:"3.17rem",md:"3.563rem"},borderRadius:"0.563rem",backgroundColor:A.palette.mode==="dark"?"#183762":"#E1EEFF",display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",overflow:"hidden",px:1,boxSizing:"border-box"},children:[r.jsx(y.Box,{component:"img",alt:"wallet",src:e??"",sx:{width:{xs:C?"1.733rem":"2.184rem",md:"2.184rem"},height:{xs:C?"1.733rem":"2.184rem",md:"2.184rem"},objectFit:"contain",mr:1,mb:{xs:0,md:2},mt:{xs:C?"-2rem":0,md:0}}}),(!B||B&&C)&&r.jsxs(y.Box,{sx:{display:"flex",flexDirection:"column",minWidth:0,flex:1},children:[r.jsx(so,{address:s,showCopyButton:!0,showInBlockExplorer:!0,chainId:n}),r.jsx(y.Typography,{sx:{...j.boldSx,display:"inline",cursor:"pointer",fontSize:{xs:"0.75rem",md:"0.875rem"},ml:{xs:0,md:4},color:"#0D6FF0",mt:0,mb:2},component:"span",variant:"body2",onClick:Q,children:"Disconnect"})]})]})]})};var yB={},KQ;function Qo(){if(KQ)return yB;KQ=1;var A=jA();Object.defineProperty(yB,"__esModule",{value:!0}),yB.default=void 0;var B=A(FB()),s=r;return yB.default=(0,B.default)((0,s.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),yB}var eo=Qo();const Co=TA(eo);var GB={},SQ;function wo(){if(SQ)return GB;SQ=1;var A=jA();Object.defineProperty(GB,"__esModule",{value:!0}),GB.default=void 0;var B=A(FB()),s=r;return GB.default=(0,B.default)((0,s.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),GB}var to=wo();const Eo=TA(to),oo=()=>{const A=y.useTheme(),{menuItems:B}=qA(E=>({menuItems:E.menuItems})),[s,g]=tA.useState(null),Q=!!s,e=E=>{g(E.currentTarget)},C=()=>{g(null)},w=E=>{E(),C()};return r.jsxs(y.Box,{sx:{mr:{xs:1,md:3},mt:2,display:"flex",alignItems:"center",justifyContent:"center"},children:[r.jsx(y.Box,{sx:{backgroundColor:A.palette.mode==="dark"?" #183762":"#E1EEFF",width:{xs:"1.853rem",md:"3.125rem"},height:{xs:"3.17rem",md:"3.563rem"},borderRadius:"0.563rem"},children:r.jsx(y.IconButton,{"aria-label":"more options","aria-controls":Q?"three-dots-menu":void 0,"aria-haspopup":"true","aria-expanded":Q?"true":void 0,onClick:e,sx:{mt:1,ml:{xs:-.5,md:.5}},children:r.jsx(Co,{})})}),r.jsx(y.Menu,{id:"three-dots-menu",anchorEl:s,open:Q,onClose:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{mt:1,width:235,minHeight:30}},children:B==null?void 0:B.map(({title:E,onClick:o},n)=>r.jsxs(y.MenuItem,{onClick:()=>w(o),children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mb:2},children:E}),r.jsx(y.ListItemIcon,{sx:{minWidth:0,ml:"auto",mb:2},children:r.jsx(Eo,{fontSize:"small"})}),r.jsx(y.Divider,{})]},n))})]})},Le=()=>{const A=OB.useNavigate(),[B,s]=tA.useState(!1),g=y.useTheme(),Q=y.useMediaQuery(g.breakpoints.down("md")),e=C=>()=>{s(C)};return r.jsxs(r.Fragment,{children:[r.jsx(y.AppBar,{position:"static",elevation:0,sx:{backgroundColor:"transparent",boxShadow:"none"},children:r.jsxs(y.Toolbar,{sx:{width:"100%",mx:"auto",display:"flex",justifyContent:"space-between"},disableGutters:!0,children:[Q&&r.jsx(y.IconButton,{edge:"start",color:"default","aria-label":"menu",onClick:e(!0),sx:{ml:.5},children:r.jsx(zE,{})}),r.jsx(y.Box,{sx:{display:{xs:"none",md:"flex"}},children:r.jsx(y.Box,{sx:{display:{xs:"none",md:"flex"},position:"absolute",top:"0.313rem",left:"0.313rem",p:2,borderTopColor:"transparent",borderRadius:"0rem 0rem 3.5rem 3.5rem"},children:r.jsx(y.Box,{component:"img",src:g.palette.mode==="dark"?IQ:dQ,sx:{cursor:"pointer"}})})}),r.jsx(y.Box,{sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"monospace",fontWeight:700,letterSpacing:".3rem",color:"inherit",textDecoration:"none",height:"2.938rem",width:"4.188rem"},children:r.jsx(y.Box,{component:"img",src:g.palette.mode==="dark"?IQ:dQ,onClick:()=>{A("/")},sx:{cursor:"pointer"}})}),r.jsxs(y.Box,{sx:{display:"flex"},children:[r.jsx(go,{}),r.jsx(oo,{})]})]})}),r.jsx(y.Drawer,{anchor:"left",open:B,onClose:e(!1),children:r.jsx(y.Box,{sx:{width:278,p:2,opacity:1,height:92},role:"presentation",onClick:e(!1),onKeyDown:e(!1),children:r.jsx(Gg,{})})})]})},Fo="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.0569%2029.9668C23.065%2029.9668%2029.5569%2023.4749%2029.5569%2015.4668C29.5569%207.45867%2023.065%200.966797%2015.0569%200.966797C7.04876%200.966797%200.556885%207.45867%200.556885%2015.4668C0.556885%2023.4749%207.04876%2029.9668%2015.0569%2029.9668Z'%20fill='url(%23paint0_linear_527_34589)'/%3e%3cpath%20d='M18.8153%2017.4823C18.8153%2015.4987%2017.6321%2014.8129%2015.257%2014.5374C13.5663%2014.3054%2013.227%2013.8617%2013.227%2013.0598C13.227%2012.258%2013.7968%2011.7548%2014.9264%2011.7548C15.3297%2011.6917%2015.7421%2011.7782%2016.0861%2011.998C16.4301%2012.2177%2016.6818%2012.5557%2016.794%2012.9482C16.8235%2013.0316%2016.8777%2013.1041%2016.9495%2013.1559C17.0213%2013.2077%2017.1071%2013.2364%2017.1956%2013.2382H18.0845C18.1868%2013.2386%2018.2853%2013.1989%2018.3587%2013.1276C18.4322%2013.0563%2018.4748%2012.9591%2018.4774%2012.8568V12.8307C18.3691%2012.2173%2018.0606%2011.6569%2017.6003%2011.2372C17.1399%2010.8175%2016.5535%2010.5621%2015.9327%2010.5107V9.10131C15.9327%208.87801%2015.7645%208.70981%2015.4803%208.64746H14.59C14.3681%208.64746%2014.1985%208.81566%2014.1448%209.10131V10.4063C13.4188%2010.4345%2012.73%2010.7352%2012.2157%2011.2484C11.7014%2011.7617%2011.3993%2012.4498%2011.3695%2013.1758C11.3695%2015.0449%2012.4991%2015.7858%2014.8742%2016.0671C16.4576%2016.3426%2016.9738%2016.6906%2016.9738%2017.5882C16.9738%2018.4857%2016.1821%2019.1194%2015.1062%2019.1194C13.6286%2019.1194%2013.1226%2018.4959%2012.9529%2017.6505C12.9361%2017.5564%2012.8868%2017.4711%2012.8138%2017.4094C12.7407%2017.3478%2012.6484%2017.3135%2012.5527%2017.3127H11.6276C11.5774%2017.3115%2011.5274%2017.3203%2011.4805%2017.3384C11.4336%2017.3566%2011.3907%2017.3839%2011.3544%2017.4186C11.318%2017.4533%2011.2889%2017.4949%2011.2686%2017.5409C11.2483%2017.5869%2011.2373%2017.6365%2011.2361%2017.6868V17.7578C11.3381%2018.494%2011.6964%2019.1708%2012.248%2019.6688C12.7997%2020.1669%2013.5094%2020.4545%2014.2521%2020.4809V21.8468C14.2521%2022.0701%2014.4203%2022.2383%2014.706%2022.292H15.5948C15.7118%2022.2859%2015.8224%2022.2373%2015.906%2022.1553C15.9896%2022.0733%2016.0404%2021.9636%2016.0487%2021.8468V20.4867C16.8054%2020.4193%2017.5111%2020.077%2018.0324%2019.5244C18.5537%2018.9719%2018.8544%2018.2474%2018.8776%2017.4881L18.8153%2017.4823Z'%20fill='white'/%3e%3cpath%20d='M12.1728%2023.3892C10.5339%2022.798%209.11714%2021.7158%208.11575%2020.2901C7.11436%2018.8643%206.57704%2017.1644%206.57704%2015.4222C6.57704%2013.6799%207.11436%2011.98%208.11575%2010.5543C9.11714%209.12852%2010.5339%208.0463%2012.1728%207.45514C12.2806%207.40601%2012.3707%207.32507%2012.4311%207.2232C12.4915%207.12132%2012.5192%207.00341%2012.5106%206.88529V6.11969C12.5152%206.01787%2012.4839%205.91767%2012.4222%205.83658C12.3604%205.75548%2012.2722%205.69865%2012.1728%205.67599C12.0908%205.66644%2012.0083%205.68876%2011.9422%205.73834C9.88258%206.39401%208.08489%207.68787%206.80918%209.43276C5.53347%2011.1777%204.84589%2013.2831%204.84589%2015.4446C4.84589%2017.6061%205.53347%2019.7116%206.80918%2021.4565C8.08489%2023.2014%209.88258%2024.4953%2011.9422%2025.1509C12.0215%2025.1974%2012.1159%2025.2106%2012.2048%2025.1875C12.2937%2025.1643%2012.3698%2025.1069%2012.4164%2025.0277C12.4363%2024.994%2012.4505%2024.9573%2012.4584%2024.9189C12.5106%2024.8667%2012.5106%2024.8131%2012.5106%2024.6971V23.9054C12.4949%2023.8001%2012.4566%2023.6994%2012.3982%2023.6103C12.3399%2023.5212%2012.263%2023.4458%2012.1728%2023.3892ZM18.17%205.72819C18.0931%205.68175%2018.0008%205.66773%2017.9136%205.68921C17.8263%205.71069%2017.7511%205.7659%2017.7045%205.84274C17.684%205.87611%2017.6697%205.91297%2017.6625%205.95149C17.6088%206.01384%2017.6088%206.06749%2017.6088%206.18204V6.97374C17.6185%207.08688%2017.654%207.19631%2017.7125%207.29359C17.7711%207.39087%2017.8512%207.47342%2017.9467%207.53489C19.5768%208.1312%2020.9843%209.21396%2021.9788%2010.6366C22.9732%2012.0593%2023.5065%2013.7531%2023.5065%2015.4889C23.5065%2017.2246%2022.9732%2018.9185%2021.9788%2020.3411C20.9843%2021.7638%2019.5768%2022.8465%2017.9467%2023.4428C17.838%2023.4908%2017.747%2023.5715%2017.6865%2023.6736C17.6259%2023.7758%2017.5987%2023.8943%2017.6088%2024.0127V24.8044C17.6018%2024.9079%2017.6319%2025.0105%2017.6939%2025.0937C17.7559%2025.177%2017.8455%2025.2353%2017.9467%2025.2582C18.0263%2025.2658%2018.1058%2025.2436%2018.17%2025.1959C20.231%2024.5337%2022.0287%2023.2343%2023.304%2021.4851C24.5793%2019.7358%2025.2664%2017.6268%2025.2664%2015.462C25.2664%2013.2972%2024.5793%2011.1883%2023.304%209.43902C22.0287%207.68974%2020.231%206.39041%2018.17%205.72819Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_527_34589'%20x1='15.0569'%20y1='29.9668'%20x2='15.0569'%20y2='0.966797'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230750A1'/%3e%3cstop%20offset='1'%20stop-color='%23268DFF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",io="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9863%2029.3164C22.9945%2029.3164%2029.4863%2022.8245%2029.4863%2014.8164C29.4863%206.80828%2022.9945%200.316406%2014.9863%200.316406C6.9782%200.316406%200.486328%206.80828%200.486328%2014.8164C0.486328%2022.8245%206.9782%2029.3164%2014.9863%2029.3164Z'%20fill='url(%23paint0_linear_654_8779)'/%3e%3cpath%20d='M18.7447%2016.8319C18.7447%2014.8483%2017.5615%2014.1625%2015.1864%2013.887C13.4957%2013.655%2013.1564%2013.2113%2013.1564%2012.4094C13.1564%2011.6076%2013.7263%2011.1044%2014.8558%2011.1044C15.2591%2011.0413%2015.6716%2011.1278%2016.0155%2011.3476C16.3595%2011.5674%2016.6113%2011.9053%2016.7234%2012.2978C16.7529%2012.3812%2016.8072%2012.4537%2016.8789%2012.5055C16.9507%2012.5574%2017.0366%2012.586%2017.1251%2012.5878H18.0139C18.1163%2012.5882%2018.2147%2012.5485%2018.2882%2012.4772C18.3616%2012.4059%2018.4042%2012.3087%2018.4069%2012.2064V12.1803C18.2985%2011.5669%2017.9901%2011.0065%2017.5297%2010.5868C17.0693%2010.1671%2016.483%209.91167%2015.8621%209.86032V8.45092C15.8621%208.22762%2015.6939%208.05942%2015.4097%207.99707H14.5194C14.2976%207.99707%2014.1279%208.16527%2014.0743%208.45092V9.75592C13.3482%209.78411%2012.6594%2010.0848%2012.1451%2010.598C11.6308%2011.1113%2011.3287%2011.7994%2011.299%2012.5254C11.299%2014.3945%2012.4285%2015.1354%2014.8036%2015.4167C16.387%2015.6922%2016.9032%2016.0402%2016.9032%2016.9378C16.9032%2017.8353%2016.1115%2018.469%2015.0356%2018.469C13.5581%2018.469%2013.052%2017.8455%2012.8824%2017.0001C12.8655%2016.906%2012.8163%2016.8207%2012.7432%2016.759C12.6701%2016.6974%2012.5778%2016.6631%2012.4822%2016.6623H11.5571C11.5068%2016.6611%2011.4568%2016.6699%2011.4099%2016.6881C11.363%2016.7062%2011.3202%2016.7335%2011.2838%2016.7682C11.2475%2016.8029%2011.2183%2016.8445%2011.198%2016.8905C11.1777%2016.9365%2011.1667%2016.9861%2011.1656%2017.0364V17.1074C11.2675%2017.8437%2011.6258%2018.5204%2012.1775%2019.0184C12.7291%2019.5165%2013.4388%2019.8041%2014.1816%2019.8305V21.1964C14.1816%2021.4197%2014.3498%2021.5879%2014.6354%2021.6416H15.5243C15.6412%2021.6355%2015.7519%2021.5869%2015.8355%2021.5049C15.9191%2021.4229%2015.9698%2021.3132%2015.9781%2021.1964V19.8363C16.7348%2019.7689%2017.4405%2019.4266%2017.9618%2018.874C18.4831%2018.3215%2018.7838%2017.597%2018.8071%2016.8377L18.7447%2016.8319Z'%20fill='white'/%3e%3cpath%20d='M12.1022%2022.7388C10.4633%2022.1476%209.04659%2021.0654%208.04519%2019.6397C7.0438%2018.2139%206.50648%2016.5141%206.50648%2014.7718C6.50648%2013.0295%207.0438%2011.3296%208.04519%209.90387C9.04659%208.47812%2010.4633%207.39591%2012.1022%206.80475C12.21%206.75562%2012.3001%206.67468%2012.3605%206.57281C12.4209%206.47093%2012.4487%206.35302%2012.4401%206.2349V5.4693C12.4447%205.36748%2012.4134%205.26728%2012.3516%205.18619C12.2899%205.10509%2012.2016%205.04826%2012.1022%205.0256C12.0202%205.01605%2011.9377%205.03837%2011.8717%205.08795C9.81203%205.74362%208.01433%207.03748%206.73862%208.78237C5.46291%2010.5273%204.77533%2012.6327%204.77533%2014.7942C4.77533%2016.9558%205.46291%2019.0612%206.73862%2020.8061C8.01433%2022.551%209.81203%2023.8449%2011.8717%2024.5005C11.9509%2024.547%2012.0454%2024.5602%2012.1343%2024.5371C12.2232%2024.514%2012.2993%2024.4565%2012.3458%2024.3773C12.3658%2024.3436%2012.38%2024.3069%2012.3879%2024.2685C12.4401%2024.2163%2012.4401%2024.1627%2012.4401%2024.0467V23.255C12.4243%2023.1497%2012.386%2023.049%2012.3277%2022.9599C12.2694%2022.8708%2012.1925%2022.7954%2012.1022%2022.7388ZM18.0994%205.0778C18.0225%205.03136%2017.9303%205.01734%2017.843%205.03882C17.7558%205.0603%2017.6806%205.11551%2017.634%205.19235C17.6134%205.22572%2017.5992%205.26258%2017.5919%205.3011C17.5383%205.36345%2017.5383%205.4171%2017.5383%205.53165V6.32335C17.5479%206.43649%2017.5834%206.54591%2017.642%206.6432C17.7006%206.74048%2017.7807%206.82303%2017.8761%206.8845C19.5063%207.4808%2020.9138%208.56357%2021.9082%209.98622C22.9027%2011.4089%2023.436%2013.1027%2023.436%2014.8385C23.436%2016.5742%2022.9027%2018.2681%2021.9082%2019.6907C20.9138%2021.1134%2019.5063%2022.1961%2017.8761%2022.7924C17.7675%2022.8404%2017.6765%2022.9211%2017.6159%2023.0232C17.5553%2023.1254%2017.5282%2023.2439%2017.5383%2023.3623V24.154C17.5312%2024.2575%2017.5614%2024.3601%2017.6233%2024.4434C17.6853%2024.5266%2017.775%2024.5849%2017.8761%2024.6078C17.9557%2024.6154%2018.0353%2024.5932%2018.0994%2024.5455C20.1605%2023.8833%2021.9581%2022.584%2023.2334%2020.8347C24.5087%2019.0854%2025.1959%2016.9765%2025.1959%2014.8116C25.1959%2012.6468%2024.5087%2010.5379%2023.2334%208.78862C21.9581%207.03934%2020.1605%205.74001%2018.0994%205.0778Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_654_8779'%20x1='14.9863'%20y1='29.3164'%20x2='14.9863'%20y2='0.316406'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230750A1'/%3e%3cstop%20offset='1'%20stop-color='%23268DFF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",no="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.5569'%20cy='15.4668'%20r='14.5'%20fill='%23ECE5FF'%20stroke='%23DFD2FF'/%3e%3cpath%20d='M18.0225%2015.046C17.6989%2015.1052%2017.6475%2015.3625%2016.8151%2016.5567C15.9827%2017.751%2014.6827%2017.9414%2013.352%2017.4832C12.3473%2017.1373%2011.8175%2015.5424%2011.6368%2014.8751C11.5481%2013.1208%2010.1002%2011.7256%208.32699%2011.7256C6.55381%2011.7256%205.04165%2013.1839%205.01373%2014.9935C5.01373%2014.9963%205.01326%2014.9993%205.01303%2015.0021C4.73293%2020.0002%208.67642%2022.6309%2011.5642%2022.5176C16.2203%2022.3351%2017.8659%2018.4472%2018.2282%2017.0611C18.5108%2015.9801%2018.3664%2014.983%2018.0227%2015.0457L18.0225%2015.046Z'%20fill='url(%23paint0_linear_527_34576)'/%3e%3cpath%20d='M13.0329%2016.1353C13.3565%2016.0761%2013.4079%2015.8188%2014.2403%2014.6245C15.0727%2013.4303%2016.3726%2013.2398%2017.7034%2013.6981C18.7081%2014.0439%2019.2378%2015.6389%2019.4186%2016.3062C19.5072%2018.0605%2020.9552%2019.4557%2022.7284%2019.4557C24.5411%2019.4557%2026.0137%2017.9973%2026.0419%2016.1878C26.0419%2016.185%2026.0423%2016.1819%2026.0426%2016.1791C26.3224%2011.1811%2022.379%208.55039%2019.4914%208.66367C14.8354%208.84616%2013.1897%2012.7341%2012.8274%2014.1202C12.5448%2015.2012%2012.6893%2016.1982%2013.0329%2016.1356V16.1353Z'%20fill='url(%23paint1_linear_527_34576)'/%3e%3cpath%20d='M15.5599%2016.5816C16.1322%2016.5816%2016.5963%2016.1167%2016.5963%2015.5432C16.5963%2014.9698%2016.1322%2014.5049%2015.5599%2014.5049C14.9875%2014.5049%2014.5234%2014.9698%2014.5234%2015.5432C14.5234%2016.1167%2014.9875%2016.5816%2015.5599%2016.5816Z'%20fill='url(%23paint2_linear_527_34576)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_527_34576'%20x1='18.4199'%20y1='16.6798'%20x2='5.08409'%20y2='17.3695'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.02'%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_527_34576'%20x1='12.6776'%20y1='14.0579'%20x2='26.0565'%20y2='14.0579'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_527_34576'%20x1='14.5234'%20y1='15.5432'%20x2='16.5965'%20y2='15.5432'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",co="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.4863'%20cy='15.8164'%20r='14.5'%20fill='%23ECE5FF'%20stroke='%23DFD2FF'/%3e%3cpath%20d='M17.952%2015.3956C17.6284%2015.4548%2017.5769%2015.7121%2016.7446%2016.9064C15.9122%2018.1006%2014.6122%2018.291%2013.2815%2017.8328C12.2767%2017.4869%2011.747%2015.892%2011.5662%2015.2247C11.4776%2013.4704%2010.0296%2012.0752%208.25644%2012.0752C6.48325%2012.0752%204.97109%2013.5335%204.94317%2015.3431C4.94317%2015.3459%204.94271%2015.349%204.94248%2015.3517C4.66238%2020.3498%208.60586%2022.9805%2011.4936%2022.8672C16.1497%2022.6847%2017.7954%2018.7968%2018.1576%2017.4107C18.4403%2016.3297%2018.2958%2015.3326%2017.9522%2015.3953L17.952%2015.3956Z'%20fill='url(%23paint0_linear_654_8764)'/%3e%3cpath%20d='M12.9623%2016.4849C13.2859%2016.4257%2013.3373%2016.1684%2014.1697%2014.9741C15.0021%2013.7799%2016.3021%2013.5894%2017.6328%2014.0477C18.6376%2014.3936%2019.1673%2015.9885%2019.3481%2016.6558C19.4367%2018.4101%2020.8846%2019.8053%2022.6578%2019.8053C24.4706%2019.8053%2025.9432%2018.347%2025.9713%2016.5374C25.9713%2016.5346%2025.9718%2016.5315%2025.972%2016.5287C26.2519%2011.5307%2022.3084%208.9%2019.4209%209.01328C14.7648%209.19577%2013.1191%2013.0837%2012.7569%2014.4698C12.4742%2015.5508%2012.6187%2016.5479%2012.9623%2016.4852V16.4849Z'%20fill='url(%23paint1_linear_654_8764)'/%3e%3cpath%20d='M15.4893%2016.9312C16.0617%2016.9312%2016.5257%2016.4663%2016.5257%2015.8928C16.5257%2015.3194%2016.0617%2014.8545%2015.4893%2014.8545C14.9169%2014.8545%2014.4529%2015.3194%2014.4529%2015.8928C14.4529%2016.4663%2014.9169%2016.9312%2015.4893%2016.9312Z'%20fill='url(%23paint2_linear_654_8764)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_654_8764'%20x1='18.3493'%20y1='17.0294'%20x2='5.01353'%20y2='17.7191'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.02'%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_654_8764'%20x1='12.6071'%20y1='14.4075'%20x2='25.986'%20y2='14.4075'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_654_8764'%20x1='14.4529'%20y1='15.8928'%20x2='16.5259'%20y2='15.8928'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function HQ(A){if(!Number.isFinite(A))return String(A);const B=A<0?"-":"",s=Math.abs(A);return s>=1e9?`${B}${(s/1e9).toLocaleString(void 0,{maximumFractionDigits:2})} B`:s>=1e6?`${B}${(s/1e6).toLocaleString(void 0,{maximumFractionDigits:2})} M`:s>=1e4?`${B}${(s/1e3).toLocaleString(void 0,{maximumFractionDigits:1})} K`:`${B}${s.toLocaleString()}`}function ag(){const[A,B]=tA.useState(null),[s,g]=tA.useState(null),[Q,e]=tA.useState(null),[C,w]=tA.useState({}),{validBackendUrl:E}=qA(n=>({validBackendUrl:n.validBackendUrl})),o=(n,I)=>{if(!n||!I){e(null);return}const F=Number(I);if(!Number.isFinite(F)){e(null);return}const i=n*F,c=HQ(i);e(c)};return tA.useEffect(()=>{let n=!0;if(E)return fetch(`${E.replace(/\/$/,"")}/master-node/get-total-token-supply`).then(I=>I.json()).then(I=>{if(!n)return;const F=(I==null?void 0:I.currentSupply)??null;if(F==null){B(null),g(null);return}const i=Number(F);if(!Number.isFinite(i)){B(null),g(String(F));return}B(i),g(HQ(i)),o(i,C.XDC_TO_USD_RATE??null)}).catch(()=>{n&&(B(null),g(null))}),()=>{n=!1}},[E]),tA.useEffect(()=>{let n=!0;if(E)return fetch(`${E.replace(/\/$/,"")}/app-config/get-all-app-config`).then(I=>I.json()).then(I=>{if(!n||!Array.isArray(I))return;const F={};for(const c of I)c&&c.key&&(F[c.key]=String(c.value));const i={LSD_APY:F.LSD_APY,ANCHOR_APY:F.ANCHOR_APY,NATIVE_APY:F.NATIVE_APY,PRIVATE_APY:F.PRIVATE_APY,PRFI_LIQUID_APY:F.PRFI_LIQUID_APY,XDC_TO_USD_RATE:F.XDC_TO_USD_RATE};w(i)}).catch(()=>{n&&w({})}),()=>{n=!1}},[E]),tA.useEffect(()=>{A&&C.XDC_TO_USD_RATE&&o(A,C.XDC_TO_USD_RATE)},[C,A]),{xdcSupply:s,xdcSupplyRaw:A,tvlUSD:Q,apys:C}}const Io=()=>{const A=y.useTheme(),{tvlUSD:B,xdcSupply:s}=ag(),g=[{Icon:A.palette.mode==="dark"?Fo:io,Label:"TVL",value:`$${B||"0"}`},{Icon:A.palette.mode==="dark"?rs:Is,Label:"XDC",value:s||"0"},{Icon:A.palette.mode==="dark"?no:co,Label:"PrFi",value:"0"}];return r.jsxs(y.Card,{variant:"side",sx:{width:{xs:390,md:273},height:175,opacity:1},children:[r.jsx(y.Typography,{sx:{...j.boldSx,m:"0.625rem 0 0 1.25rem",fontSize:"1rem"},children:"Valid Stats"}),g.map(({Icon:Q,Label:e,value:C},w)=>r.jsxs(y.Box,{children:[r.jsx(y.Divider,{sx:{my:1,mx:.2}}),r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between"},children:[r.jsxs(y.Box,{sx:{display:"flex",alignItems:"center"},children:[Q&&r.jsx(y.Box,{component:"img",src:Q,alt:e,sx:{width:20,height:20,mr:1,ml:2}}),r.jsx(y.Typography,{children:e})]}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mr:2},children:C})]})]},w))]})},ro=()=>{const{apys:A}=ag(),B=[{Label:"XDC - Liquid",value:A.LSD_APY?`${A.LSD_APY}%`:"...%"},{Label:"XDC - Anchor",value:A.ANCHOR_APY?`${A.ANCHOR_APY}%`:"...%"},{Label:"XDC - Native",value:A.NATIVE_APY?`${A.NATIVE_APY}%`:"...%"},{Label:"XDC - Private",value:A.PRIVATE_APY?`${A.PRIVATE_APY}%`:"...%"},{Label:"PrFi - Liquid",value:A.PRFI_LIQUID_APY?`${A.PRFI_LIQUID_APY}%`:"...%"}];return r.jsxs(y.Card,{variant:"side",sx:{width:{xs:390,md:273},height:190,opacity:1},children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",m:"0.625rem 0 0 1.25rem"},children:"Staking APY"}),r.jsx(y.Divider,{sx:{my:1,mx:.2}}),B.map(({Label:s,value:g},Q)=>r.jsx(y.Box,{children:r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between",my:.5},children:[r.jsx(y.Typography,{sx:{ml:2},children:s}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mr:2},children:g})]})},Q))]})},Do=y.styled(y.Slider)(({theme:A})=>{const B=A.palette.mode==="dark";return{color:"#0D6FF0",height:3,padding:"0rem","&.MuiSlider-root":{display:"block",padding:5},"& .MuiSlider-track":{border:"none",backgroundColor:"#0D6FF0"},"& .MuiSlider-rail":{opacity:1,backgroundColor:B?"#02203C":"#CFE3FD"},"& .MuiSlider-thumb":{height:12,width:12,backgroundColor:"#0D6FF0",border:"0.063rem solid #0D6FF0","&:hover, &.Mui-focusVisible, &.Mui-active":{boxShadow:"0 0 0 0.375rem rgba(13, 111, 240, 0.16)"}},"& .MuiSlider-valueLabel":{display:"none"},"&.Mui-disabled":{color:"#666","& .MuiSlider-track":{backgroundColor:"#666"},"& .MuiSlider-thumb":{backgroundColor:"#666"}}}}),yo=()=>{const{appType:A}=qA(Y=>({appType:Y.appType})),{apys:B}=ag(),s=1,g=1,[Q,e]=tA.useState(0),[C,w]=tA.useState(0),[E,o]=tA.useState(0),n=y.useTheme(),[I,F]=tA.useState(null),i={...j.boldSx,fontSize:"0.625rem",lineHeight:"190%",color:n.palette.mode==="dark"?"#6E9EDC":"#6982A2"},c=A===zA.LSD;tA.useEffect(()=>{c||o(0)},[c]);const t=[{Label:"Staking Period",value:Q,unit:" Months",min:1,max:12,setProgress:e},{Label:"Token Appreciation",value:C,unit:"%",min:0,max:100,setProgress:w},{Label:"Defi Yield",value:E,unit:"%",min:0,max:20,setProgress:o}],D=(C+100)/100,d={[zA.LSD]:Number(B.LSD_APY),[zA.Native]:Number(B.NATIVE_APY),[zA.Private]:Number(B.PRIVATE_APY),[zA.Anchor]:Number(B.ANCHOR_APY),[zA.PrFi]:Number(B.PRFI_LIQUID_APY)};function R(Y){return d[Y]}const M=()=>{const Y=(R(A)+E*s/g)*D;F(Number(Y.toFixed(2)))};return r.jsxs(y.Card,{variant:"side",sx:{width:{xs:390,md:273},height:340,opacity:1},children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",m:"0.625rem 0 0 1.25rem"},children:"ROI Calculator"}),r.jsx(y.Divider,{sx:{my:1,mx:.2}}),t.map(({Label:Y,value:b,unit:V,max:G,min:l,setProgress:a},L)=>r.jsxs(y.Box,{children:[r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between"},children:[r.jsx(y.Typography,{sx:{ml:2},children:Y}),r.jsxs(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mr:2},children:[b,V]})]}),r.jsx(Do,{value:b,min:l,max:G,disabled:!c&&Y==="Defi Yield",onChange:(U,eA)=>a(eA),sx:{ml:2,width:{xs:350,md:240},mb:0}}),r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between",mb:Y==="Defi Yield"?1:2},children:[r.jsxs(y.Typography,{sx:{...i,ml:2},children:[l,V]}),r.jsxs(y.Typography,{sx:{...i,mr:2},children:[G,V]})]})]},L)),r.jsx(y.Button,{onClick:M,sx:{width:{xs:370.7,md:251.38},height:34,opacity:1,borderRadius:"0.438rem",mx:"auto",display:"block",mb:2},children:"Calculate"}),r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between"},children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1.25rem",ml:2},children:"ROI ($)"}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1.25rem",mr:2},children:I!==null?`${I}%`:"0%"})]})]})},Go=()=>r.jsxs(y.Box,{sx:{width:{xs:410,md:273},height:730,opacity:1,display:"flex",flexDirection:"column",m:{xs:2,md:"0rem 2.5rem 1.25rem 0rem"},justifyContent:"space-between",alignItems:"center"},children:[r.jsx(Io,{}),r.jsx(ro,{}),r.jsx(yo,{})]}),lo=()=>{const A=y.useTheme(),B=y.useMediaQuery(A.breakpoints.down("md"));return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs(y.Box,{sx:{display:"flex",mt:7,justifyContent:"space-between",alignItems:{xs:"center",md:"flex-start"},flexDirection:{xs:"column",md:"row"}},children:[!B&&r.jsx(Gg,{}),r.jsx(OB.Outlet,{}),r.jsx(Go,{})]})]})};/**
|
|
91
|
+
`)),oe.configure(A)}},jE=Object.freeze(Object.defineProperty({__proto__:null,capitalize:pA,createChainedFunction:dt,createSvgIcon:TE,debounce:yt,deprecatedPropType:Gt,isMuiElement:lt,ownerDocument:Ie,ownerWindow:bt,requirePropFactory:Rt,setRef:re,unstable_ClassNameGenerator:vE,unstable_useEnhancedEffect:ce,unstable_useId:xt,unsupportedProp:Mt,useControlled:Lt,useEventCallback:ht,useForkRef:Jt,useIsFocusVisible:St},Symbol.toStringTag,{value:"Module"})),WE=SA(jE);var rQ;function FB(){return rQ||(rQ=1,(function(A){"use client";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"default",{enumerable:!0,get:function(){return B.createSvgIcon}});var B=WE})(js)),js}var DQ;function OE(){if(DQ)return cB;DQ=1;var A=jA();Object.defineProperty(cB,"__esModule",{value:!0}),cB.default=void 0;var B=A(FB()),s=r;return cB.default=(0,B.default)((0,s.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),cB}var ZE=OE();const zE=TA(ZE),dQ="data:image/svg+xml,%3csvg%20width='78'%20height='55'%20viewBox='0%200%2078%2055'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M37.3171%200.5H19.955V3.10432H37.3171V0.5Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M45.5359%204.48926H11.6439V6.89655H45.5359V4.48926Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M49.8885%208.47754H7.29272V10.8848H49.8885V8.47754Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M52.1107%2012.4668H5.06934V14.8741H52.1107V12.4668Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M53.546%2016.4551H3.63403V18.8624H53.546V16.4551Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.0278%2020.4453H2.15332V22.8526H55.0278V20.4453Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.7216%2024.4336H1.45837V26.8409H55.7216V24.4336Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M56.3247%2028.4229H0.856567V30.8301H56.3247V28.4229Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M55.7216%2032.4111H1.45837V34.8184H55.7216V32.4111Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M53.9628%2036.4004H3.21741V38.8077H53.9628V36.4004Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M51.8791%2040.3887H5.30103V42.796H51.8791V40.3887Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M49.1935%2044.3779H7.98645V46.7852H49.1935V44.3779Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M44.4255%2048.3682H12.7557V50.7755H44.4255V48.3682Z'%20fill='%230D6FF0'/%3e%3cpath%20d='M37.3171%2052.585H19.955V54.763H37.3171V52.585Z'%20fill='%230D6FF0'/%3e%3cmask%20id='mask0_181_31403'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='78'%20height='55'%3e%3cpath%20d='M77.8566%200.5H0.856567V54.7632H77.8566V0.5Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_181_31403)'%3e%3cpath%20d='M20.3418%2044.4848C20.3418%2044.4848%2017.6575%2038.2958%2016.5577%2036.3351C14.5301%2032.7423%2012.1065%2029.3879%209.33228%2026.3346L12.2053%2022.5374C12.2053%2022.5374%2019.3352%2029.9467%2022.1163%2036.7996C22.1163%2036.7996%2026.5619%2019.1139%2037.858%204.48145L40.3656%208.46375C37.287%2012.5738%2034.6776%2017.0151%2032.5861%2021.7051C29.2145%2029.0691%2026.4241%2036.6856%2024.2405%2044.4848H20.3418ZM74.0606%2044.2078V42.6758C72.9489%2043.5054%2071.6283%2044.0095%2070.2466%2044.1316C68.8648%2044.2537%2067.4763%2043.989%2066.2364%2043.3672C64.9964%2042.7454%2063.9539%2041.7909%2063.2253%2040.6105C62.4967%2039.4301%2062.1109%2038.0703%2062.1109%2036.6832C62.1109%2035.2961%2062.4967%2033.9363%2063.2253%2032.7559C63.9539%2031.5755%2064.9964%2030.621%2066.2364%2029.9992C67.4763%2029.3773%2068.8648%2029.1127%2070.2466%2029.2348C71.6283%2029.3569%2072.9489%2029.861%2074.0606%2030.6906V20.1312H77.859V44.2078H74.0606ZM65.7664%2036.685C65.7664%2037.4405%2065.9903%2038.179%2066.4099%2038.8073C66.8295%2039.4355%2067.426%2039.9253%2068.1238%2040.2146C68.8217%2040.504%2069.5897%2040.5801%2070.3308%2040.4331C71.0718%2040.2861%2071.7527%2039.9228%2072.2873%2039.389C72.8219%2038.8552%2073.1863%2038.1749%2073.3344%2037.4341C73.4826%2036.6933%2073.4077%2035.9252%2073.1194%2035.2268C72.8311%2034.5285%2072.3423%2033.9313%2071.7147%2033.5108C71.0871%2033.0902%2070.3489%2032.8651%2069.5935%2032.8639C68.5799%2032.8645%2067.6079%2033.2669%2066.8905%2033.983C66.1732%2034.699%2065.7689%2035.6702%2065.7664%2036.6838V36.685ZM55.4494%2044.2078V29.4834H59.2454V44.2078H55.4494ZM48.5953%2044.2078V20.1312H52.3925V44.2078H48.5953ZM41.1919%2044.2078V43.2167C40.0765%2043.8639%2038.8102%2044.2057%2037.5206%2044.2078C36.2311%2044.2098%2034.9637%2043.8721%2033.8462%2043.2285C32.7287%2042.5849%2031.8005%2041.6582%2031.1551%2040.5417C30.5098%2039.4253%2030.17%2038.1585%2030.17%2036.8689C30.17%2035.5793%2030.5098%2034.3125%2031.1551%2033.196C31.8005%2032.0796%2032.7287%2031.1529%2033.8462%2030.5093C34.9637%2029.8657%2036.2311%2029.5279%2037.5206%2029.53C38.8102%2029.532%2040.0765%2029.8739%2041.1919%2030.5211V29.4834H44.9891V44.2078H41.1919ZM33.7575%2036.8689C33.7573%2037.8001%2034.1032%2038.6982%2034.728%2039.3886C35.3528%2040.0791%2036.2119%2040.5128%2037.1385%2040.6054C38.0651%2040.6979%2038.9931%2040.4428%2039.7421%2039.8896C40.4912%2039.3363%2041.0079%2038.5245%2041.1919%2037.6116V36.1261C41.0079%2035.2134%2040.4913%2034.4016%2039.7424%2033.8483C38.9934%2033.2951%2038.0656%2033.0399%2037.1391%2033.1323C36.2126%2033.2248%2035.3535%2033.6582%2034.7286%2034.3484C34.1037%2035.0387%2033.7576%2035.9378%2033.7575%2036.8689ZM54.6147%2022.4466C54.615%2021.989%2054.7509%2021.5417%2055.0053%2021.1612C55.2597%2020.7808%2055.6213%2020.4844%2056.0441%2020.3095C56.467%2020.1345%2056.9323%2020.0888%2057.3811%2020.1783C57.8299%2020.2677%2058.2421%2020.4882%2058.5657%2020.8119C58.8892%2021.1355%2059.1095%2021.5479%2059.1987%2021.9968C59.2879%2022.4456%2059.242%2022.9109%2059.0668%2023.3337C58.8916%2023.7564%2058.595%2024.1178%2058.2144%2024.372C57.8339%2024.6263%2057.3865%2024.7619%2056.9289%2024.7619C56.6248%2024.7621%2056.3238%2024.7023%2056.0428%2024.586C55.7619%2024.4697%2055.5067%2024.2991%2055.2918%2024.0841C55.0768%2023.869%2054.9064%2023.6137%2054.7902%2023.3327C54.6741%2023.0518%2054.6144%2022.7506%2054.6147%2022.4466Z'%20fill='black'/%3e%3c/g%3e%3c/svg%3e";var IB={},yQ;function qE(){if(yQ)return IB;yQ=1;var A=jA();Object.defineProperty(IB,"__esModule",{value:!0}),IB.default=void 0;var B=A(FB()),s=r;return IB.default=(0,B.default)((0,s.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 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-2m0 16H8V7h11z"}),"ContentCopy"),IB}var _E=qE();const GQ=TA(_E);var rB={},lQ;function $E(){if(lQ)return rB;lQ=1;var A=jA();Object.defineProperty(rB,"__esModule",{value:!0}),rB.default=void 0;var B=A(FB()),s=r;return rB.default=(0,B.default)((0,s.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew"),rB}var A0=$E();const bQ=TA(A0);var DB={},RQ;function B0(){if(RQ)return DB;RQ=1;var A=jA();Object.defineProperty(DB,"__esModule",{value:!0}),DB.default=void 0;var B=A(FB()),s=r;return DB.default=(0,B.default)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),DB}var s0=B0();const aQ=TA(s0),zA={LSD:"LSD",Anchor:"Anchor",Private:"Private",Native:"Native",PrFi:"PrFi"};function JB(A){if(!Number.isSafeInteger(A)||A<0)throw new Error(`positive integer expected, not ${A}`)}function g0(A){if(typeof A!="boolean")throw new Error(`boolean expected, not ${A}`)}function Q0(A){return A instanceof Uint8Array||A!=null&&typeof A=="object"&&A.constructor.name==="Uint8Array"}function us(A,...B){if(!Q0(A))throw new Error("Uint8Array expected");if(B.length>0&&!B.includes(A.length))throw new Error(`Uint8Array expected of length ${B}, not of length=${A.length}`)}function e0(A){if(typeof A!="function"||typeof A.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");JB(A.outputLen),JB(A.blockLen)}function Cg(A,B=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(B&&A.finished)throw new Error("Hash#digest() has already been called")}function ye(A,B){us(A);const s=B.outputLen;if(A.length<s)throw new Error(`digestInto() expects output buffer of length at least ${s}`)}const C0={number:JB,bool:g0,bytes:us,hash:e0,exists:Cg,output:ye},fB=BigInt(2**32-1),xQ=BigInt(32);function w0(A,B=!1){return B?{h:Number(A&fB),l:Number(A>>xQ&fB)}:{h:Number(A>>xQ&fB)|0,l:Number(A&fB)|0}}function t0(A,B=!1){let s=new Uint32Array(A.length),g=new Uint32Array(A.length);for(let Q=0;Q<A.length;Q++){const{h:e,l:C}=w0(A[Q],B);[s[Q],g[Q]]=[e,C]}return[s,g]}const E0=(A,B,s)=>A<<s|B>>>32-s,o0=(A,B,s)=>B<<s|A>>>32-s,F0=(A,B,s)=>B<<s-32|A>>>64-s,i0=(A,B,s)=>A<<s-32|B>>>64-s;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const n0=A=>new Uint32Array(A.buffer,A.byteOffset,Math.floor(A.byteLength/4)),MQ=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,c0=A=>A<<24&4278190080|A<<8&16711680|A>>>8&65280|A>>>24&255;function LQ(A){for(let B=0;B<A.length;B++)A[B]=c0(A[B])}function lg(A){if(typeof A!="string")throw new Error(`utf8ToBytes expected string, got ${typeof A}`);return new Uint8Array(new TextEncoder().encode(A))}function Ge(A){return typeof A=="string"&&(A=lg(A)),us(A),A}class I0{clone(){return this._cloneInto()}}function r0(A){const B=g=>A().update(Ge(g)).digest(),s=A();return B.outputLen=s.outputLen,B.blockLen=s.blockLen,B.create=()=>A(),B}const le=[],be=[],Re=[],D0=BigInt(0),dB=BigInt(1),d0=BigInt(2),y0=BigInt(7),G0=BigInt(256),l0=BigInt(113);for(let A=0,B=dB,s=1,g=0;A<24;A++){[s,g]=[g,(2*s+3*g)%5],le.push(2*(5*g+s)),be.push((A+1)*(A+2)/2%64);let Q=D0;for(let e=0;e<7;e++)B=(B<<dB^(B>>y0)*l0)%G0,B&d0&&(Q^=dB<<(dB<<BigInt(e))-dB);Re.push(Q)}const[b0,R0]=t0(Re,!0),hQ=(A,B,s)=>s>32?F0(A,B,s):E0(A,B,s),JQ=(A,B,s)=>s>32?i0(A,B,s):o0(A,B,s);function a0(A,B=24){const s=new Uint32Array(10);for(let g=24-B;g<24;g++){for(let C=0;C<10;C++)s[C]=A[C]^A[C+10]^A[C+20]^A[C+30]^A[C+40];for(let C=0;C<10;C+=2){const w=(C+8)%10,E=(C+2)%10,o=s[E],n=s[E+1],I=hQ(o,n,1)^s[w],F=JQ(o,n,1)^s[w+1];for(let i=0;i<50;i+=10)A[C+i]^=I,A[C+i+1]^=F}let Q=A[2],e=A[3];for(let C=0;C<24;C++){const w=be[C],E=hQ(Q,e,w),o=JQ(Q,e,w),n=le[C];Q=A[n],e=A[n+1],A[n]=E,A[n+1]=o}for(let C=0;C<50;C+=10){for(let w=0;w<10;w++)s[w]=A[C+w];for(let w=0;w<10;w++)A[C+w]^=~s[(w+2)%10]&s[(w+4)%10]}A[0]^=b0[g],A[1]^=R0[g]}s.fill(0)}class bg extends I0{constructor(B,s,g,Q=!1,e=24){if(super(),this.blockLen=B,this.suffix=s,this.outputLen=g,this.enableXOF=Q,this.rounds=e,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,JB(g),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=n0(this.state)}keccak(){MQ||LQ(this.state32),a0(this.state32,this.rounds),MQ||LQ(this.state32),this.posOut=0,this.pos=0}update(B){Cg(this);const{blockLen:s,state:g}=this;B=Ge(B);const Q=B.length;for(let e=0;e<Q;){const C=Math.min(s-this.pos,Q-e);for(let w=0;w<C;w++)g[this.pos++]^=B[e++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:B,suffix:s,pos:g,blockLen:Q}=this;B[g]^=s,(s&128)!==0&&g===Q-1&&this.keccak(),B[Q-1]^=128,this.keccak()}writeInto(B){Cg(this,!1),us(B),this.finish();const s=this.state,{blockLen:g}=this;for(let Q=0,e=B.length;Q<e;){this.posOut>=g&&this.keccak();const C=Math.min(g-this.posOut,e-Q);B.set(s.subarray(this.posOut,this.posOut+C),Q),this.posOut+=C,Q+=C}return B}xofInto(B){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(B)}xof(B){return JB(B),this.xofInto(new Uint8Array(B))}digestInto(B){if(ye(B,this),this.finished)throw new Error("digest() was already called");return this.writeInto(B),this.destroy(),B}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(B){const{blockLen:s,suffix:g,outputLen:Q,rounds:e,enableXOF:C}=this;return B||(B=new bg(s,g,Q,C,e)),B.state32.set(this.state32),B.pos=this.pos,B.posOut=this.posOut,B.finished=this.finished,B.rounds=e,B.suffix=g,B.outputLen=Q,B.enableXOF=C,B.destroyed=this.destroyed,B}}const x0=(A,B,s)=>r0(()=>new bg(B,A,s)),YQ=x0(1,136,256/8);function M0(A){return B=>(C0.bytes(B),A(B))}(()=>{const A=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,B=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);return{node:B&&!A?B("crypto"):void 0,web:A}})();const ae=(()=>{const A=M0(YQ);return A.create=YQ.create,A})(),L0=208,h0=4001,J0=4100,Y0=4200,u0=4900,X0=4901,U0=1005,As=-32700,Bs=-32600,ss=-32601,gs=-32602,Qs=-32603,es=-32e3,Cs=-32001,ws=-32002,ts=-32003,Es=-32004,os=-32005,Fs=-32006;class is extends Error{get innerError(){return this.cause instanceof Ws?this.cause.errors:this.cause}set innerError(B){Array.isArray(B)?this.cause=new Ws(B):this.cause=B}constructor(B,s){super(B),Array.isArray(s)?this.cause=new Ws(s):this.cause=s,this.name=this.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(new.target.constructor):this.stack=new Error().stack}static convertToString(B,s=!1){if(B==null)return"undefined";const g=JSON.stringify(B,(Q,e)=>typeof e=="bigint"?e.toString():e);return s&&["bigint","string"].includes(typeof B)?g.replace(/['\\"]+/g,""):g}toJSON(){return{name:this.name,code:this.code,message:this.message,cause:this.cause,innerError:this.cause}}}class Ws extends is{constructor(B){super(`Multiple errors occurred: [${B.map(s=>s.message).join("], [")}]`),this.code=L0,this.errors=B}}class k0 extends is{constructor(B,s){super(`Invalid value given "${is.convertToString(B,!0)}". Error: ${s}.`),this.name=this.constructor.name}}class V0 extends k0{constructor(B){super(B,"invalid ethereum address"),this.code=U0}}const K0="An Rpc error has occured with a code of *code*",LA={[As]:{message:"Parse error",description:"Invalid JSON"},[Bs]:{message:"Invalid request",description:"JSON is not a valid request object "},[ss]:{message:"Method not found",description:"Method does not exist "},[gs]:{message:"Invalid params",description:"Invalid method parameters"},[Qs]:{message:"Internal error",description:"Internal JSON-RPC error"},[es]:{message:"Invalid input",description:"Missing or invalid parameters"},[Cs]:{message:"Resource not found",description:"Requested resource not found"},[ws]:{message:"Resource unavailable",description:"Requested resource not available"},[ts]:{message:"Transaction rejected",description:"Transaction creation failed"},[Es]:{message:"Method not supported",description:"Method is not implemented"},[os]:{message:"Limit exceeded",description:"Request exceeds defined limit"},[Fs]:{message:"JSON-RPC version not supported",description:"Version of JSON-RPC protocol is not supported"},[h0]:{name:"User Rejected Request",message:"The user rejected the request."},[J0]:{name:"Unauthorized",message:"The requested method and/or account has not been authorized by the user."},[Y0]:{name:"Unsupported Method",message:"The Provider does not support the requested method."},[u0]:{name:"Disconnected",message:"The Provider is disconnected from all chains."},[X0]:{name:"Chain Disconnected",message:"The Provider is not connected to the requested chain."},"0-999":{name:"",message:"Not used."},1e3:{name:"Normal Closure",message:"The connection successfully completed the purpose for which it was created."},1001:{name:"Going Away",message:"The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection."},1002:{name:"Protocol error",message:"The endpoint is terminating the connection due to a protocol error."},1003:{name:"Unsupported Data",message:"The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.)"},1004:{name:"Reserved",message:"Reserved. A meaning might be defined in the future."},1005:{name:"No Status Rcvd",message:"Reserved. Indicates that no status code was provided even though one was expected."},1006:{name:"Abnormal Closure",message:"Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected."},1007:{name:"Invalid frame payload data",message:"The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)."},1008:{name:"Policy Violation",message:"The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable."},1009:{name:"Message Too Big",message:"The endpoint is terminating the connection because a data frame was received that is too large."},1010:{name:"Mandatory Ext.",message:"The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't."},1011:{name:"Internal Error",message:"The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request."},1012:{name:"Service Restart",message:"The server is terminating the connection because it is restarting."},1013:{name:"Try Again Later",message:"The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients."},1014:{name:"Bad Gateway",message:"The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code."},1015:{name:"TLS handshake",message:"Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)."},"1016-2999":{name:"",message:"For definition by future revisions of the WebSocket Protocol specification, and for definition by extension specifications."},"3000-3999":{name:"",message:"For use by libraries, frameworks, and applications. These status codes are registered directly with IANA. The interpretation of these codes is undefined by the WebSocket protocol."},"4000-4999":{name:"",message:"For private use, and thus can't be registered. Such codes can be used by prior agreements between WebSocket applications. The interpretation of these codes is undefined by the WebSocket protocol."}};class hA extends is{constructor(B,s){super(s??K0.replace("*code*",B.error.code.toString())),this.code=B.error.code,this.id=B.id,this.jsonrpc=B.jsonrpc,this.jsonRpcError=B.error}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{error:this.jsonRpcError,id:this.id,jsonRpc:this.jsonrpc})}}class S0 extends hA{constructor(B){super(B,LA[As].message),this.code=As}}class H0 extends hA{constructor(B){super(B,LA[Bs].message),this.code=Bs}}class f0 extends hA{constructor(B){super(B,LA[ss].message),this.code=ss}}class m0 extends hA{constructor(B){super(B,LA[gs].message),this.code=gs}}class p0 extends hA{constructor(B){super(B,LA[Qs].message),this.code=Qs}}class P0 extends hA{constructor(B){super(B,LA[es].message),this.code=es}}class N0 extends hA{constructor(B){super(B,LA[Es].message),this.code=Es}}class T0 extends hA{constructor(B){super(B,LA[ws].message),this.code=ws}}class v0 extends hA{constructor(B){super(B,LA[Cs].message),this.code=Cs}}class j0 extends hA{constructor(B){super(B,LA[Fs].message),this.code=Fs}}class W0 extends hA{constructor(B){super(B,LA[ts].message),this.code=ts}}class O0 extends hA{constructor(B){super(B,LA[os].message),this.code=os}}const JA=new Map;JA.set(As,{error:S0});JA.set(Bs,{error:H0});JA.set(ss,{error:f0});JA.set(gs,{error:m0});JA.set(Qs,{error:p0});JA.set(es,{error:P0});JA.set(Es,{error:N0});JA.set(ws,{error:T0});JA.set(ts,{error:W0});JA.set(Cs,{error:v0});JA.set(Fs,{error:j0});JA.set(os,{error:O0});const Z0=A=>typeof A=="string"&&/^((-)?0x[0-9a-f]+|(0x))$/i.test(A);function Rg(A){let B="0x";for(const s of A){const g=s.toString(16);B+=g.length===1?`0${g}`:g}return B}function xe(A){var B;return!(A instanceof Uint8Array)&&((B=A==null?void 0:A.constructor)===null||B===void 0?void 0:B.name)==="Uint8Array"?Uint8Array.from(A):A}const uQ=A=>{var B,s;return A instanceof Uint8Array||((B=A==null?void 0:A.constructor)===null||B===void 0?void 0:B.name)==="Uint8Array"||((s=A==null?void 0:A.constructor)===null||s===void 0?void 0:s.name)==="Buffer"},z0=A=>{if(!/^(0x)?[0-9a-f]{40}$/i.test(A))return!1;const B=A.slice(2),s=lg(B.toLowerCase()),g=Rg(ae(xe(s))).slice(2);for(let Q=0;Q<40;Q+=1)if(parseInt(g[Q],16)>7&&B[Q].toUpperCase()!==B[Q]||parseInt(g[Q],16)<=7&&B[Q].toLowerCase()!==B[Q])return!1;return!0},q0=(A,B=!0)=>{if(typeof A!="string"&&!uQ(A))return!1;let s;return uQ(A)?s=Rg(A):typeof A=="string"&&!Z0(A)?s=A.toLowerCase().startsWith("0x")?A:`0x${A}`:s=A,/^(0x)?[0-9a-f]{40}$/i.test(s)?/^(0x|0X)?[0-9a-f]{40}$/.test(s)||/^(0x|0X)?[0-9A-F]{40}$/.test(s)?!0:B?z0(s):!0:!1};var ns;(function(A){A.NUMBER="NUMBER_NUMBER",A.HEX="NUMBER_HEX",A.STR="NUMBER_STR",A.BIGINT="NUMBER_BIGINT"})(ns||(ns={}));var cs;(function(A){A.HEX="BYTES_HEX",A.UINT8ARRAY="BYTES_UINT8ARRAY"})(cs||(cs={}));ns.BIGINT,cs.HEX;ns.HEX,cs.HEX;var XQ;(function(A){A.EARLIEST="earliest",A.LATEST="latest",A.PENDING="pending",A.SAFE="safe",A.FINALIZED="finalized",A.COMMITTED="committed"})(XQ||(XQ={}));var UQ;(function(A){A.chainstart="chainstart",A.frontier="frontier",A.homestead="homestead",A.dao="dao",A.tangerineWhistle="tangerineWhistle",A.spuriousDragon="spuriousDragon",A.byzantium="byzantium",A.constantinople="constantinople",A.petersburg="petersburg",A.istanbul="istanbul",A.muirGlacier="muirGlacier",A.berlin="berlin",A.london="london",A.altair="altair",A.arrowGlacier="arrowGlacier",A.grayGlacier="grayGlacier",A.bellatrix="bellatrix",A.merge="merge",A.capella="capella",A.shanghai="shanghai"})(UQ||(UQ={}));const _0=A=>A==null;BigInt(0),BigInt(1),BigInt(1e3),BigInt(1e3),BigInt(1e3),BigInt(1e3),BigInt(1e6),BigInt(1e6),BigInt(1e6),BigInt(1e6),BigInt(1e9),BigInt(1e9),BigInt(1e9),BigInt(1e9),BigInt(1e9),BigInt(1e12),BigInt(1e12),BigInt(1e12),BigInt(1e15),BigInt(1e15),BigInt(1e15),BigInt("1000000000000000000"),BigInt("1000000000000000000000"),BigInt("1000000000000000000000"),BigInt("1000000000000000000000000"),BigInt("1000000000000000000000000000"),BigInt("1000000000000000000000000000000");const $0=lg,Me=A=>{if(!q0(A,!1))throw new V0(A);const B=A.toLowerCase().replace(/^0x/i,""),s=Rg(ae(xe($0(B))));if(_0(s)||s==="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")return"";let g="0x";const Q=s.replace(/^0x/i,"");for(let e=0;e<B.length;e+=1)parseInt(Q[e],16)>7?g+=B[e].toUpperCase():g+=B[e];return g},Ao=A=>A==null?void 0:A.replace(/^0x/,"xdc"),kQ=A=>A==null?void 0:A.replace(/^xdc/,"0x"),VQ=(A,B,s)=>A?!s||s<=0?`${A.slice(0,B)}...`:`${A.slice(0,B)}...${A.slice(-s)}`:"",Bo=A=>Me(A),Is="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.2743%2011.852C23.6063%20-5.89599%202.18627%20-1.09599%200.722266%2011.852C3.69827%2013.52%204.37027%2013.916%204.37027%2013.916C4.37027%2013.916%203.21827%2014.648%200.710266%2016.244C3.90227%2033.308%2027.0023%2030.02%2028.2743%2016.22C25.9463%2014.756%2024.5663%2013.904%2024.5663%2013.904C24.5663%2013.904%2027.7103%2012.152%2028.2743%2011.852ZM16.6583%2019.616L14.2103%2015.416L11.7263%2019.616L9.85427%2019.484L13.3943%2013.52L10.2023%208.37201L12.1223%208.20401L14.3903%2012.02L16.6583%208.37201L18.4463%208.42001L15.4823%2013.484L18.7583%2019.58L16.6583%2019.628V19.616Z'%20fill='%23244B81'/%3e%3c/svg%3e",rs="data:image/svg+xml,%3csvg%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.2692%206.52332H7.26147L9.16378%2012.1062L7.26147%2018.0612L12.803%2019.5086L18.2592%2017.5455L15.1188%2012.1062L17.2692%206.89552V6.52332Z'%20fill='%23D9D9D9'/%3e%3cpath%20d='M24.4875%2011.0729C21.6763%20-5.22597%200.3918%20-2.07198%200.00979499%2011.0729C1.23417%2011.7096%202.00797%2012.1014%202.00797%2012.1014C2.00797%2012.1014%201.3615%2012.4932%200%2013.3551C2.44875%2029.3406%2023.3709%2027.0192%2024.4875%2013.3355C23.1554%2012.5226%2022.4305%2012.0916%2022.4305%2012.0916C22.4305%2012.0916%2023.0574%2011.7977%2024.4875%2011.0729ZM14.0166%2016.7638L12.0185%2013.3355L9.99089%2016.7638L8.45308%2016.656L11.3426%2011.7879L8.73713%207.58588L10.3043%207.44875L12.1556%2010.5636L14.0068%207.58588L15.4663%207.62506L13.0371%2011.7586L15.7112%2016.7344L13.997%2016.7736L14.0166%2016.7638Z'%20fill='%23B7B5B1'/%3e%3cpath%20d='M23.4981%2010.4362C19.6879%20-4.05055%202.20381%20-0.132554%201.00882%2010.4362C3.43798%2011.7978%203.9865%2012.121%203.9865%2012.121C3.9865%2012.121%203.04618%2012.7185%200.999023%2014.0212C3.60449%2027.9497%2022.4599%2025.2659%2023.4981%2014.0016C21.5979%2012.8066%2020.4715%2012.1112%2020.4715%2012.1112C20.4715%2012.1112%2023.0378%2010.6811%2023.4981%2010.4362ZM14.0166%2016.7736L12.0184%2013.3454L9.99083%2016.7736L8.46281%2016.6659L11.3523%2011.7978L8.74686%207.5957L10.3141%207.45857L12.1653%2010.5734L14.0166%207.5957L15.476%207.63488L13.0567%2011.7684L15.7307%2016.7442L14.0166%2016.7834V16.7736Z'%20fill='%23244B81'/%3e%3c/svg%3e",mB="data:image/png;base64,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",Ds={50:{name:"XDC",logoLight:Is,logoDark:rs,explorer:"https://xdcscan.com",prefix:"xdc"},51:{name:"XDC",logoLight:Is,logoDark:rs,explorer:"https://testnet.xdcscan.com",prefix:"xdc"},8453:{name:"Base",logoLight:mB,logoDark:mB,explorer:"https://basescan.org",prefix:"0x"},84532:{name:"Base",logoLight:mB,logoDark:mB,explorer:"https://sepolia.basescan.org",prefix:"0x"}},so=({address:A,showAddress:B=!0,showCopyButton:s=!0,showInBlockExplorer:g=!0,withBackground:Q=!1,isTransaction:e=!1,showAddToWallet:C=!1,shrinkAddress:w=!0,chainId:E,onCopy:o,onOpenExplorer:n,onAddToWallet:I})=>{const F=A&&kQ(A),i=y.useTheme(),c=y.useMediaQuery(i.breakpoints.down("sm")),t=E?Ds[E]:Ds[51],D=(t==null?void 0:t.prefix)??"0x",d=(t==null?void 0:t.explorer)??"https://testnet.xdcscan.com",R=tA.useMemo(()=>{const G=D==="xdc"?Ao(F):F,l=D==="xdc"?G:Me(G);return w?c?VQ(l,5,0):VQ(l,7,4):l},[A,F,D,w,c,E]),M=()=>e?`${d}/tx/${F}`:`${d}/address/${F}`,Y=()=>{const G=kQ(Bo(F));o?o(G):navigator.clipboard.writeText(G)},b=()=>{const G=M();n?n(G):window.open(G,"_blank")},V=()=>{I&&I()};return r.jsxs(y.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",mt:{xs:2,md:0},p:0,alignItems:"center"},children:[B&&r.jsx(y.Box,{sx:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:r.jsx(y.Typography,{sx:{...j.regularSx,fontSize:{xs:"14px",md:"16px"}},children:R})}),r.jsxs(y.Box,{sx:{display:"flex",gap:{xs:1}},children:[s&&r.jsx(y.Tooltip,{title:"Copy",children:r.jsxs(y.IconButton,{"aria-label":"copy address",onClick:Y,sx:{ml:.5,mr:0,width:{xs:"0.57rem",md:"auto"},height:{xs:"0.663rem",md:"auto"}},children:[!Q&&r.jsx(GQ,{sx:{fontSize:"1rem"}}),Q&&r.jsx(GQ,{sx:{fontSize:"1rem"}})]})}),g&&r.jsx(y.Tooltip,{title:"Go to Explorer",children:r.jsxs(y.IconButton,{onClick:b,sx:{width:{xs:"0.57rem",md:"auto"},height:{xs:"0.663rem",md:"auto"}},children:[!Q&&r.jsx(bQ,{sx:{fontSize:"1rem"}}),Q&&r.jsx(bQ,{sx:{fontSize:"1rem"}})]})}),C&&r.jsx(y.Tooltip,{title:"Add to Wallet",children:r.jsxs(y.IconButton,{onClick:V,sx:{width:{xs:"0.57rem",md:"auto"},height:{xs:"0.663rem",md:"auto"}},children:[!Q&&r.jsx(aQ,{sx:{fontSize:"1rem"}}),Q&&r.jsx(aQ,{sx:{fontSize:"1rem"}})]})})]})]})},go=()=>{var t,D;const A=y.useTheme(),B=y.useMediaQuery(A.breakpoints.down("md")),{account:s,onConnect:g,onDisconnect:Q,logoUrl:e,isSupported:C,wallet:w}=qA(d=>({account:d.account,onConnect:d.onConnect,onDisconnect:d.onDisconnect,logoUrl:d.logoUrl,isSupported:d.isSupported,wallet:d.wallet})),E=!!s,o=(D=(t=w==null?void 0:w.chains)==null?void 0:t[0])==null?void 0:D.id,n=o?typeof o=="string"?parseInt(o,16):o:51,I=Ds[n]??Ds[51],F=!E,i=E&&!C,c=E;return r.jsxs(y.Box,{sx:{display:"flex",mr:{xs:1,md:1},mt:2,p:0},children:[c&&C&&r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"5.25rem",height:"3.563rem",opacity:1,backgroundColor:A.palette.mode==="dark"?"#183762":"#E1EEFF",borderRadius:"0.563rem",mr:1,gap:1},children:[r.jsx("img",{src:A.palette.mode==="dark"?I.logoDark??"":I.logoLight??"",alt:I.name??"Unknown Chain",width:30,height:30}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mt:2,mb:2},children:I.name??"Unknown Chain"})]}),i&&r.jsx(y.Button,{sx:{width:{xs:"auto",md:"11.798rem"},height:{xs:"3.17rem",md:"3.563rem"},opacity:1,mr:1,p:1,whiteSpace:"nowrap"},children:r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",textAlign:"center",color:"#F9FCFF",mt:2,mb:2},children:"Unsupported Chain"})}),F&&r.jsx(y.Box,{sx:{mt:1.5},children:r.jsx(y.Button,{sx:{...j.boldSx,width:"11rem",height:"3.563rem",fontSize:"3.563",zIndex:999999,mb:2},onClick:g,children:"Connect Wallet"})}),c&&r.jsxs(y.Box,{sx:{width:{xs:"auto",md:"16.199rem"},height:{xs:"3.17rem",md:"3.563rem"},borderRadius:"0.563rem",backgroundColor:A.palette.mode==="dark"?"#183762":"#E1EEFF",display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",overflow:"hidden",px:1,boxSizing:"border-box"},children:[r.jsx(y.Box,{component:"img",alt:"wallet",src:e??"",sx:{width:{xs:C?"1.733rem":"2.184rem",md:"2.184rem"},height:{xs:C?"1.733rem":"2.184rem",md:"2.184rem"},objectFit:"contain",mr:1,mb:{xs:0,md:2},mt:{xs:C?"-2rem":0,md:0}}}),(!B||B&&C)&&r.jsxs(y.Box,{sx:{display:"flex",flexDirection:"column",minWidth:0,flex:1},children:[r.jsx(so,{address:s,showCopyButton:!0,showInBlockExplorer:!0,chainId:n}),r.jsx(y.Typography,{sx:{...j.boldSx,display:"inline",cursor:"pointer",fontSize:{xs:"0.75rem",md:"0.875rem"},ml:{xs:0,md:4},color:"#0D6FF0",mt:0,mb:2},component:"span",variant:"body2",onClick:Q,children:"Disconnect"})]})]})]})};var yB={},KQ;function Qo(){if(KQ)return yB;KQ=1;var A=jA();Object.defineProperty(yB,"__esModule",{value:!0}),yB.default=void 0;var B=A(FB()),s=r;return yB.default=(0,B.default)((0,s.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),yB}var eo=Qo();const Co=TA(eo);var GB={},SQ;function wo(){if(SQ)return GB;SQ=1;var A=jA();Object.defineProperty(GB,"__esModule",{value:!0}),GB.default=void 0;var B=A(FB()),s=r;return GB.default=(0,B.default)((0,s.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),GB}var to=wo();const Eo=TA(to),oo=()=>{const A=y.useTheme(),{menuItems:B}=qA(E=>({menuItems:E.menuItems})),[s,g]=tA.useState(null),Q=!!s,e=E=>{g(E.currentTarget)},C=()=>{g(null)},w=E=>{E(),C()};return r.jsxs(y.Box,{sx:{mr:{xs:1,md:3},mt:2,display:"flex",alignItems:"center",justifyContent:"center"},children:[r.jsx(y.Box,{sx:{backgroundColor:A.palette.mode==="dark"?" #183762":"#E1EEFF",width:{xs:"1.853rem",md:"3.125rem"},height:{xs:"3.17rem",md:"3.563rem"},borderRadius:"0.563rem"},children:r.jsx(y.IconButton,{"aria-label":"more options","aria-controls":Q?"three-dots-menu":void 0,"aria-haspopup":"true","aria-expanded":Q?"true":void 0,onClick:e,sx:{mt:1,ml:{xs:-.5,md:.5}},children:r.jsx(Co,{})})}),r.jsx(y.Menu,{id:"three-dots-menu",anchorEl:s,open:Q,onClose:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{mt:1,width:235,minHeight:30}},children:B==null?void 0:B.map(({title:E,onClick:o},n)=>r.jsxs(y.MenuItem,{onClick:()=>w(o),children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mb:2},children:E}),r.jsx(y.ListItemIcon,{sx:{minWidth:0,ml:"auto",mb:2},children:r.jsx(Eo,{fontSize:"small"})}),r.jsx(y.Divider,{})]},n))})]})},Le=()=>{const A=OB.useNavigate(),[B,s]=tA.useState(!1),g=y.useTheme(),Q=y.useMediaQuery(g.breakpoints.down("md")),e=C=>()=>{s(C)};return r.jsxs(r.Fragment,{children:[r.jsx(y.AppBar,{position:"static",elevation:0,sx:{backgroundColor:"transparent",boxShadow:"none"},children:r.jsxs(y.Toolbar,{sx:{width:"100%",mx:"auto",display:"flex",justifyContent:"space-between"},disableGutters:!0,children:[Q&&r.jsx(y.IconButton,{edge:"start",color:"default","aria-label":"menu",onClick:e(!0),sx:{ml:.5},children:r.jsx(zE,{})}),r.jsx(y.Box,{sx:{display:{xs:"none",md:"flex"}},children:r.jsx(y.Box,{sx:{display:{xs:"none",md:"flex"},position:"absolute",top:"0.313rem",left:"0.313rem",p:2,borderTopColor:"transparent",borderRadius:"0rem 0rem 3.5rem 3.5rem"},children:r.jsx(y.Box,{component:"img",src:g.palette.mode==="dark"?IQ:dQ,onClick:()=>{A("/")},sx:{cursor:"pointer"}})})}),r.jsx(y.Box,{sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"monospace",fontWeight:700,letterSpacing:".3rem",color:"inherit",textDecoration:"none",height:"2.938rem",width:"4.188rem"},children:r.jsx(y.Box,{component:"img",src:g.palette.mode==="dark"?IQ:dQ,onClick:()=>{A("/")},sx:{cursor:"pointer"}})}),r.jsxs(y.Box,{sx:{display:"flex"},children:[r.jsx(go,{}),r.jsx(oo,{})]})]})}),r.jsx(y.Drawer,{anchor:"left",open:B,onClose:e(!1),children:r.jsx(y.Box,{sx:{width:278,p:2,opacity:1,height:92},role:"presentation",onClick:e(!1),onKeyDown:e(!1),children:r.jsx(Gg,{})})})]})},Fo="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.0569%2029.9668C23.065%2029.9668%2029.5569%2023.4749%2029.5569%2015.4668C29.5569%207.45867%2023.065%200.966797%2015.0569%200.966797C7.04876%200.966797%200.556885%207.45867%200.556885%2015.4668C0.556885%2023.4749%207.04876%2029.9668%2015.0569%2029.9668Z'%20fill='url(%23paint0_linear_527_34589)'/%3e%3cpath%20d='M18.8153%2017.4823C18.8153%2015.4987%2017.6321%2014.8129%2015.257%2014.5374C13.5663%2014.3054%2013.227%2013.8617%2013.227%2013.0598C13.227%2012.258%2013.7968%2011.7548%2014.9264%2011.7548C15.3297%2011.6917%2015.7421%2011.7782%2016.0861%2011.998C16.4301%2012.2177%2016.6818%2012.5557%2016.794%2012.9482C16.8235%2013.0316%2016.8777%2013.1041%2016.9495%2013.1559C17.0213%2013.2077%2017.1071%2013.2364%2017.1956%2013.2382H18.0845C18.1868%2013.2386%2018.2853%2013.1989%2018.3587%2013.1276C18.4322%2013.0563%2018.4748%2012.9591%2018.4774%2012.8568V12.8307C18.3691%2012.2173%2018.0606%2011.6569%2017.6003%2011.2372C17.1399%2010.8175%2016.5535%2010.5621%2015.9327%2010.5107V9.10131C15.9327%208.87801%2015.7645%208.70981%2015.4803%208.64746H14.59C14.3681%208.64746%2014.1985%208.81566%2014.1448%209.10131V10.4063C13.4188%2010.4345%2012.73%2010.7352%2012.2157%2011.2484C11.7014%2011.7617%2011.3993%2012.4498%2011.3695%2013.1758C11.3695%2015.0449%2012.4991%2015.7858%2014.8742%2016.0671C16.4576%2016.3426%2016.9738%2016.6906%2016.9738%2017.5882C16.9738%2018.4857%2016.1821%2019.1194%2015.1062%2019.1194C13.6286%2019.1194%2013.1226%2018.4959%2012.9529%2017.6505C12.9361%2017.5564%2012.8868%2017.4711%2012.8138%2017.4094C12.7407%2017.3478%2012.6484%2017.3135%2012.5527%2017.3127H11.6276C11.5774%2017.3115%2011.5274%2017.3203%2011.4805%2017.3384C11.4336%2017.3566%2011.3907%2017.3839%2011.3544%2017.4186C11.318%2017.4533%2011.2889%2017.4949%2011.2686%2017.5409C11.2483%2017.5869%2011.2373%2017.6365%2011.2361%2017.6868V17.7578C11.3381%2018.494%2011.6964%2019.1708%2012.248%2019.6688C12.7997%2020.1669%2013.5094%2020.4545%2014.2521%2020.4809V21.8468C14.2521%2022.0701%2014.4203%2022.2383%2014.706%2022.292H15.5948C15.7118%2022.2859%2015.8224%2022.2373%2015.906%2022.1553C15.9896%2022.0733%2016.0404%2021.9636%2016.0487%2021.8468V20.4867C16.8054%2020.4193%2017.5111%2020.077%2018.0324%2019.5244C18.5537%2018.9719%2018.8544%2018.2474%2018.8776%2017.4881L18.8153%2017.4823Z'%20fill='white'/%3e%3cpath%20d='M12.1728%2023.3892C10.5339%2022.798%209.11714%2021.7158%208.11575%2020.2901C7.11436%2018.8643%206.57704%2017.1644%206.57704%2015.4222C6.57704%2013.6799%207.11436%2011.98%208.11575%2010.5543C9.11714%209.12852%2010.5339%208.0463%2012.1728%207.45514C12.2806%207.40601%2012.3707%207.32507%2012.4311%207.2232C12.4915%207.12132%2012.5192%207.00341%2012.5106%206.88529V6.11969C12.5152%206.01787%2012.4839%205.91767%2012.4222%205.83658C12.3604%205.75548%2012.2722%205.69865%2012.1728%205.67599C12.0908%205.66644%2012.0083%205.68876%2011.9422%205.73834C9.88258%206.39401%208.08489%207.68787%206.80918%209.43276C5.53347%2011.1777%204.84589%2013.2831%204.84589%2015.4446C4.84589%2017.6061%205.53347%2019.7116%206.80918%2021.4565C8.08489%2023.2014%209.88258%2024.4953%2011.9422%2025.1509C12.0215%2025.1974%2012.1159%2025.2106%2012.2048%2025.1875C12.2937%2025.1643%2012.3698%2025.1069%2012.4164%2025.0277C12.4363%2024.994%2012.4505%2024.9573%2012.4584%2024.9189C12.5106%2024.8667%2012.5106%2024.8131%2012.5106%2024.6971V23.9054C12.4949%2023.8001%2012.4566%2023.6994%2012.3982%2023.6103C12.3399%2023.5212%2012.263%2023.4458%2012.1728%2023.3892ZM18.17%205.72819C18.0931%205.68175%2018.0008%205.66773%2017.9136%205.68921C17.8263%205.71069%2017.7511%205.7659%2017.7045%205.84274C17.684%205.87611%2017.6697%205.91297%2017.6625%205.95149C17.6088%206.01384%2017.6088%206.06749%2017.6088%206.18204V6.97374C17.6185%207.08688%2017.654%207.19631%2017.7125%207.29359C17.7711%207.39087%2017.8512%207.47342%2017.9467%207.53489C19.5768%208.1312%2020.9843%209.21396%2021.9788%2010.6366C22.9732%2012.0593%2023.5065%2013.7531%2023.5065%2015.4889C23.5065%2017.2246%2022.9732%2018.9185%2021.9788%2020.3411C20.9843%2021.7638%2019.5768%2022.8465%2017.9467%2023.4428C17.838%2023.4908%2017.747%2023.5715%2017.6865%2023.6736C17.6259%2023.7758%2017.5987%2023.8943%2017.6088%2024.0127V24.8044C17.6018%2024.9079%2017.6319%2025.0105%2017.6939%2025.0937C17.7559%2025.177%2017.8455%2025.2353%2017.9467%2025.2582C18.0263%2025.2658%2018.1058%2025.2436%2018.17%2025.1959C20.231%2024.5337%2022.0287%2023.2343%2023.304%2021.4851C24.5793%2019.7358%2025.2664%2017.6268%2025.2664%2015.462C25.2664%2013.2972%2024.5793%2011.1883%2023.304%209.43902C22.0287%207.68974%2020.231%206.39041%2018.17%205.72819Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_527_34589'%20x1='15.0569'%20y1='29.9668'%20x2='15.0569'%20y2='0.966797'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230750A1'/%3e%3cstop%20offset='1'%20stop-color='%23268DFF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",io="data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9863%2029.3164C22.9945%2029.3164%2029.4863%2022.8245%2029.4863%2014.8164C29.4863%206.80828%2022.9945%200.316406%2014.9863%200.316406C6.9782%200.316406%200.486328%206.80828%200.486328%2014.8164C0.486328%2022.8245%206.9782%2029.3164%2014.9863%2029.3164Z'%20fill='url(%23paint0_linear_654_8779)'/%3e%3cpath%20d='M18.7447%2016.8319C18.7447%2014.8483%2017.5615%2014.1625%2015.1864%2013.887C13.4957%2013.655%2013.1564%2013.2113%2013.1564%2012.4094C13.1564%2011.6076%2013.7263%2011.1044%2014.8558%2011.1044C15.2591%2011.0413%2015.6716%2011.1278%2016.0155%2011.3476C16.3595%2011.5674%2016.6113%2011.9053%2016.7234%2012.2978C16.7529%2012.3812%2016.8072%2012.4537%2016.8789%2012.5055C16.9507%2012.5574%2017.0366%2012.586%2017.1251%2012.5878H18.0139C18.1163%2012.5882%2018.2147%2012.5485%2018.2882%2012.4772C18.3616%2012.4059%2018.4042%2012.3087%2018.4069%2012.2064V12.1803C18.2985%2011.5669%2017.9901%2011.0065%2017.5297%2010.5868C17.0693%2010.1671%2016.483%209.91167%2015.8621%209.86032V8.45092C15.8621%208.22762%2015.6939%208.05942%2015.4097%207.99707H14.5194C14.2976%207.99707%2014.1279%208.16527%2014.0743%208.45092V9.75592C13.3482%209.78411%2012.6594%2010.0848%2012.1451%2010.598C11.6308%2011.1113%2011.3287%2011.7994%2011.299%2012.5254C11.299%2014.3945%2012.4285%2015.1354%2014.8036%2015.4167C16.387%2015.6922%2016.9032%2016.0402%2016.9032%2016.9378C16.9032%2017.8353%2016.1115%2018.469%2015.0356%2018.469C13.5581%2018.469%2013.052%2017.8455%2012.8824%2017.0001C12.8655%2016.906%2012.8163%2016.8207%2012.7432%2016.759C12.6701%2016.6974%2012.5778%2016.6631%2012.4822%2016.6623H11.5571C11.5068%2016.6611%2011.4568%2016.6699%2011.4099%2016.6881C11.363%2016.7062%2011.3202%2016.7335%2011.2838%2016.7682C11.2475%2016.8029%2011.2183%2016.8445%2011.198%2016.8905C11.1777%2016.9365%2011.1667%2016.9861%2011.1656%2017.0364V17.1074C11.2675%2017.8437%2011.6258%2018.5204%2012.1775%2019.0184C12.7291%2019.5165%2013.4388%2019.8041%2014.1816%2019.8305V21.1964C14.1816%2021.4197%2014.3498%2021.5879%2014.6354%2021.6416H15.5243C15.6412%2021.6355%2015.7519%2021.5869%2015.8355%2021.5049C15.9191%2021.4229%2015.9698%2021.3132%2015.9781%2021.1964V19.8363C16.7348%2019.7689%2017.4405%2019.4266%2017.9618%2018.874C18.4831%2018.3215%2018.7838%2017.597%2018.8071%2016.8377L18.7447%2016.8319Z'%20fill='white'/%3e%3cpath%20d='M12.1022%2022.7388C10.4633%2022.1476%209.04659%2021.0654%208.04519%2019.6397C7.0438%2018.2139%206.50648%2016.5141%206.50648%2014.7718C6.50648%2013.0295%207.0438%2011.3296%208.04519%209.90387C9.04659%208.47812%2010.4633%207.39591%2012.1022%206.80475C12.21%206.75562%2012.3001%206.67468%2012.3605%206.57281C12.4209%206.47093%2012.4487%206.35302%2012.4401%206.2349V5.4693C12.4447%205.36748%2012.4134%205.26728%2012.3516%205.18619C12.2899%205.10509%2012.2016%205.04826%2012.1022%205.0256C12.0202%205.01605%2011.9377%205.03837%2011.8717%205.08795C9.81203%205.74362%208.01433%207.03748%206.73862%208.78237C5.46291%2010.5273%204.77533%2012.6327%204.77533%2014.7942C4.77533%2016.9558%205.46291%2019.0612%206.73862%2020.8061C8.01433%2022.551%209.81203%2023.8449%2011.8717%2024.5005C11.9509%2024.547%2012.0454%2024.5602%2012.1343%2024.5371C12.2232%2024.514%2012.2993%2024.4565%2012.3458%2024.3773C12.3658%2024.3436%2012.38%2024.3069%2012.3879%2024.2685C12.4401%2024.2163%2012.4401%2024.1627%2012.4401%2024.0467V23.255C12.4243%2023.1497%2012.386%2023.049%2012.3277%2022.9599C12.2694%2022.8708%2012.1925%2022.7954%2012.1022%2022.7388ZM18.0994%205.0778C18.0225%205.03136%2017.9303%205.01734%2017.843%205.03882C17.7558%205.0603%2017.6806%205.11551%2017.634%205.19235C17.6134%205.22572%2017.5992%205.26258%2017.5919%205.3011C17.5383%205.36345%2017.5383%205.4171%2017.5383%205.53165V6.32335C17.5479%206.43649%2017.5834%206.54591%2017.642%206.6432C17.7006%206.74048%2017.7807%206.82303%2017.8761%206.8845C19.5063%207.4808%2020.9138%208.56357%2021.9082%209.98622C22.9027%2011.4089%2023.436%2013.1027%2023.436%2014.8385C23.436%2016.5742%2022.9027%2018.2681%2021.9082%2019.6907C20.9138%2021.1134%2019.5063%2022.1961%2017.8761%2022.7924C17.7675%2022.8404%2017.6765%2022.9211%2017.6159%2023.0232C17.5553%2023.1254%2017.5282%2023.2439%2017.5383%2023.3623V24.154C17.5312%2024.2575%2017.5614%2024.3601%2017.6233%2024.4434C17.6853%2024.5266%2017.775%2024.5849%2017.8761%2024.6078C17.9557%2024.6154%2018.0353%2024.5932%2018.0994%2024.5455C20.1605%2023.8833%2021.9581%2022.584%2023.2334%2020.8347C24.5087%2019.0854%2025.1959%2016.9765%2025.1959%2014.8116C25.1959%2012.6468%2024.5087%2010.5379%2023.2334%208.78862C21.9581%207.03934%2020.1605%205.74001%2018.0994%205.0778Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_654_8779'%20x1='14.9863'%20y1='29.3164'%20x2='14.9863'%20y2='0.316406'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230750A1'/%3e%3cstop%20offset='1'%20stop-color='%23268DFF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",no="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.5569'%20cy='15.4668'%20r='14.5'%20fill='%23ECE5FF'%20stroke='%23DFD2FF'/%3e%3cpath%20d='M18.0225%2015.046C17.6989%2015.1052%2017.6475%2015.3625%2016.8151%2016.5567C15.9827%2017.751%2014.6827%2017.9414%2013.352%2017.4832C12.3473%2017.1373%2011.8175%2015.5424%2011.6368%2014.8751C11.5481%2013.1208%2010.1002%2011.7256%208.32699%2011.7256C6.55381%2011.7256%205.04165%2013.1839%205.01373%2014.9935C5.01373%2014.9963%205.01326%2014.9993%205.01303%2015.0021C4.73293%2020.0002%208.67642%2022.6309%2011.5642%2022.5176C16.2203%2022.3351%2017.8659%2018.4472%2018.2282%2017.0611C18.5108%2015.9801%2018.3664%2014.983%2018.0227%2015.0457L18.0225%2015.046Z'%20fill='url(%23paint0_linear_527_34576)'/%3e%3cpath%20d='M13.0329%2016.1353C13.3565%2016.0761%2013.4079%2015.8188%2014.2403%2014.6245C15.0727%2013.4303%2016.3726%2013.2398%2017.7034%2013.6981C18.7081%2014.0439%2019.2378%2015.6389%2019.4186%2016.3062C19.5072%2018.0605%2020.9552%2019.4557%2022.7284%2019.4557C24.5411%2019.4557%2026.0137%2017.9973%2026.0419%2016.1878C26.0419%2016.185%2026.0423%2016.1819%2026.0426%2016.1791C26.3224%2011.1811%2022.379%208.55039%2019.4914%208.66367C14.8354%208.84616%2013.1897%2012.7341%2012.8274%2014.1202C12.5448%2015.2012%2012.6893%2016.1982%2013.0329%2016.1356V16.1353Z'%20fill='url(%23paint1_linear_527_34576)'/%3e%3cpath%20d='M15.5599%2016.5816C16.1322%2016.5816%2016.5963%2016.1167%2016.5963%2015.5432C16.5963%2014.9698%2016.1322%2014.5049%2015.5599%2014.5049C14.9875%2014.5049%2014.5234%2014.9698%2014.5234%2015.5432C14.5234%2016.1167%2014.9875%2016.5816%2015.5599%2016.5816Z'%20fill='url(%23paint2_linear_527_34576)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_527_34576'%20x1='18.4199'%20y1='16.6798'%20x2='5.08409'%20y2='17.3695'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.02'%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_527_34576'%20x1='12.6776'%20y1='14.0579'%20x2='26.0565'%20y2='14.0579'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_527_34576'%20x1='14.5234'%20y1='15.5432'%20x2='16.5965'%20y2='15.5432'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",co="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.4863'%20cy='15.8164'%20r='14.5'%20fill='%23ECE5FF'%20stroke='%23DFD2FF'/%3e%3cpath%20d='M17.952%2015.3956C17.6284%2015.4548%2017.5769%2015.7121%2016.7446%2016.9064C15.9122%2018.1006%2014.6122%2018.291%2013.2815%2017.8328C12.2767%2017.4869%2011.747%2015.892%2011.5662%2015.2247C11.4776%2013.4704%2010.0296%2012.0752%208.25644%2012.0752C6.48325%2012.0752%204.97109%2013.5335%204.94317%2015.3431C4.94317%2015.3459%204.94271%2015.349%204.94248%2015.3517C4.66238%2020.3498%208.60586%2022.9805%2011.4936%2022.8672C16.1497%2022.6847%2017.7954%2018.7968%2018.1576%2017.4107C18.4403%2016.3297%2018.2958%2015.3326%2017.9522%2015.3953L17.952%2015.3956Z'%20fill='url(%23paint0_linear_654_8764)'/%3e%3cpath%20d='M12.9623%2016.4849C13.2859%2016.4257%2013.3373%2016.1684%2014.1697%2014.9741C15.0021%2013.7799%2016.3021%2013.5894%2017.6328%2014.0477C18.6376%2014.3936%2019.1673%2015.9885%2019.3481%2016.6558C19.4367%2018.4101%2020.8846%2019.8053%2022.6578%2019.8053C24.4706%2019.8053%2025.9432%2018.347%2025.9713%2016.5374C25.9713%2016.5346%2025.9718%2016.5315%2025.972%2016.5287C26.2519%2011.5307%2022.3084%208.9%2019.4209%209.01328C14.7648%209.19577%2013.1191%2013.0837%2012.7569%2014.4698C12.4742%2015.5508%2012.6187%2016.5479%2012.9623%2016.4852V16.4849Z'%20fill='url(%23paint1_linear_654_8764)'/%3e%3cpath%20d='M15.4893%2016.9312C16.0617%2016.9312%2016.5257%2016.4663%2016.5257%2015.8928C16.5257%2015.3194%2016.0617%2014.8545%2015.4893%2014.8545C14.9169%2014.8545%2014.4529%2015.3194%2014.4529%2015.8928C14.4529%2016.4663%2014.9169%2016.9312%2015.4893%2016.9312Z'%20fill='url(%23paint2_linear_654_8764)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_654_8764'%20x1='18.3493'%20y1='17.0294'%20x2='5.01353'%20y2='17.7191'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.02'%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_654_8764'%20x1='12.6071'%20y1='14.4075'%20x2='25.986'%20y2='14.4075'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_654_8764'%20x1='14.4529'%20y1='15.8928'%20x2='16.5259'%20y2='15.8928'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236F3BFF'/%3e%3cstop%20offset='1'%20stop-color='%234C0BF0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function HQ(A){if(!Number.isFinite(A))return String(A);const B=A<0?"-":"",s=Math.abs(A);return s>=1e9?`${B}${(s/1e9).toLocaleString(void 0,{maximumFractionDigits:2})} B`:s>=1e6?`${B}${(s/1e6).toLocaleString(void 0,{maximumFractionDigits:2})} M`:s>=1e4?`${B}${(s/1e3).toLocaleString(void 0,{maximumFractionDigits:1})} K`:`${B}${s.toLocaleString()}`}function ag(){const[A,B]=tA.useState(null),[s,g]=tA.useState(null),[Q,e]=tA.useState(null),[C,w]=tA.useState({}),{validBackendUrl:E}=qA(n=>({validBackendUrl:n.validBackendUrl})),o=(n,I)=>{if(!n||!I){e(null);return}const F=Number(I);if(!Number.isFinite(F)){e(null);return}const i=n*F,c=HQ(i);e(c)};return tA.useEffect(()=>{let n=!0;if(E)return fetch(`${E.replace(/\/$/,"")}/master-node/get-total-token-supply`).then(I=>I.json()).then(I=>{if(!n)return;const F=(I==null?void 0:I.currentSupply)??null;if(F==null){B(null),g(null);return}const i=Number(F);if(!Number.isFinite(i)){B(null),g(String(F));return}B(i),g(HQ(i)),o(i,C.XDC_TO_USD_RATE??null)}).catch(()=>{n&&(B(null),g(null))}),()=>{n=!1}},[E]),tA.useEffect(()=>{let n=!0;if(E)return fetch(`${E.replace(/\/$/,"")}/app-config/get-all-app-config`).then(I=>I.json()).then(I=>{if(!n||!Array.isArray(I))return;const F={};for(const c of I)c&&c.key&&(F[c.key]=String(c.value));const i={LSD_APY:F.LSD_APY,ANCHOR_APY:F.ANCHOR_APY,NATIVE_APY:F.NATIVE_APY,PRIVATE_APY:F.PRIVATE_APY,PRFI_LIQUID_APY:F.PRFI_LIQUID_APY,XDC_TO_USD_RATE:F.XDC_TO_USD_RATE};w(i)}).catch(()=>{n&&w({})}),()=>{n=!1}},[E]),tA.useEffect(()=>{A&&C.XDC_TO_USD_RATE&&o(A,C.XDC_TO_USD_RATE)},[C,A]),{xdcSupply:s,xdcSupplyRaw:A,tvlUSD:Q,apys:C}}const Io=()=>{const A=y.useTheme(),{tvlUSD:B,xdcSupply:s}=ag(),g=[{Icon:A.palette.mode==="dark"?Fo:io,Label:"TVL",value:`$${B||"0"}`},{Icon:A.palette.mode==="dark"?rs:Is,Label:"XDC",value:s||"0"},{Icon:A.palette.mode==="dark"?no:co,Label:"PrFi",value:"0"}];return r.jsxs(y.Card,{variant:"side",sx:{width:{xs:390,md:273},height:175,opacity:1},children:[r.jsx(y.Typography,{sx:{...j.boldSx,m:"0.625rem 0 0 1.25rem",fontSize:"1rem"},children:"Valid Stats"}),g.map(({Icon:Q,Label:e,value:C},w)=>r.jsxs(y.Box,{children:[r.jsx(y.Divider,{sx:{my:1,mx:.2}}),r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between"},children:[r.jsxs(y.Box,{sx:{display:"flex",alignItems:"center"},children:[Q&&r.jsx(y.Box,{component:"img",src:Q,alt:e,sx:{width:20,height:20,mr:1,ml:2}}),r.jsx(y.Typography,{children:e})]}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mr:2},children:C})]})]},w))]})},ro=()=>{const{apys:A}=ag(),B=[{Label:"XDC - Liquid",value:A.LSD_APY?`${A.LSD_APY}%`:"...%"},{Label:"XDC - Anchor",value:A.ANCHOR_APY?`${A.ANCHOR_APY}%`:"...%"},{Label:"XDC - Native",value:A.NATIVE_APY?`${A.NATIVE_APY}%`:"...%"},{Label:"XDC - Private",value:A.PRIVATE_APY?`${A.PRIVATE_APY}%`:"...%"},{Label:"PrFi - Liquid",value:A.PRFI_LIQUID_APY?`${A.PRFI_LIQUID_APY}%`:"...%"}];return r.jsxs(y.Card,{variant:"side",sx:{width:{xs:390,md:273},height:190,opacity:1},children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",m:"0.625rem 0 0 1.25rem"},children:"Staking APY"}),r.jsx(y.Divider,{sx:{my:1,mx:.2}}),B.map(({Label:s,value:g},Q)=>r.jsx(y.Box,{children:r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between",my:.5},children:[r.jsx(y.Typography,{sx:{ml:2},children:s}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mr:2},children:g})]})},Q))]})},Do=y.styled(y.Slider)(({theme:A})=>{const B=A.palette.mode==="dark";return{color:"#0D6FF0",height:3,padding:"0rem","&.MuiSlider-root":{display:"block",padding:5},"& .MuiSlider-track":{border:"none",backgroundColor:"#0D6FF0"},"& .MuiSlider-rail":{opacity:1,backgroundColor:B?"#02203C":"#CFE3FD"},"& .MuiSlider-thumb":{height:12,width:12,backgroundColor:"#0D6FF0",border:"0.063rem solid #0D6FF0","&:hover, &.Mui-focusVisible, &.Mui-active":{boxShadow:"0 0 0 0.375rem rgba(13, 111, 240, 0.16)"}},"& .MuiSlider-valueLabel":{display:"none"},"&.Mui-disabled":{color:"#666","& .MuiSlider-track":{backgroundColor:"#666"},"& .MuiSlider-thumb":{backgroundColor:"#666"}}}}),yo=()=>{const{appType:A}=qA(Y=>({appType:Y.appType})),{apys:B}=ag(),s=1,g=1,[Q,e]=tA.useState(0),[C,w]=tA.useState(0),[E,o]=tA.useState(0),n=y.useTheme(),[I,F]=tA.useState(null),i={...j.boldSx,fontSize:"0.625rem",lineHeight:"190%",color:n.palette.mode==="dark"?"#6E9EDC":"#6982A2"},c=A===zA.LSD;tA.useEffect(()=>{c||o(0)},[c]);const t=[{Label:"Staking Period",value:Q,unit:" Months",min:1,max:12,setProgress:e},{Label:"Token Appreciation",value:C,unit:"%",min:0,max:100,setProgress:w},{Label:"Defi Yield",value:E,unit:"%",min:0,max:20,setProgress:o}],D=(C+100)/100,d={[zA.LSD]:Number(B.LSD_APY),[zA.Native]:Number(B.NATIVE_APY),[zA.Private]:Number(B.PRIVATE_APY),[zA.Anchor]:Number(B.ANCHOR_APY),[zA.PrFi]:Number(B.PRFI_LIQUID_APY)};function R(Y){return d[Y]}const M=()=>{const Y=(R(A)+E*s/g)*D;F(Number(Y.toFixed(2)))};return r.jsxs(y.Card,{variant:"side",sx:{width:{xs:390,md:273},height:340,opacity:1},children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",m:"0.625rem 0 0 1.25rem"},children:"ROI Calculator"}),r.jsx(y.Divider,{sx:{my:1,mx:.2}}),t.map(({Label:Y,value:b,unit:V,max:G,min:l,setProgress:a},L)=>r.jsxs(y.Box,{children:[r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between"},children:[r.jsx(y.Typography,{sx:{ml:2},children:Y}),r.jsxs(y.Typography,{sx:{...j.boldSx,fontSize:"1rem",mr:2},children:[b,V]})]}),r.jsx(Do,{value:b,min:l,max:G,disabled:!c&&Y==="Defi Yield",onChange:(U,eA)=>a(eA),sx:{ml:2,width:{xs:350,md:240},mb:0}}),r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between",mb:Y==="Defi Yield"?1:2},children:[r.jsxs(y.Typography,{sx:{...i,ml:2},children:[l,V]}),r.jsxs(y.Typography,{sx:{...i,mr:2},children:[G,V]})]})]},L)),r.jsx(y.Button,{onClick:M,sx:{width:{xs:370.7,md:251.38},height:34,opacity:1,borderRadius:"0.438rem",mx:"auto",display:"block",mb:2},children:"Calculate"}),r.jsxs(y.Box,{sx:{display:"flex",justifyContent:"space-between"},children:[r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1.25rem",ml:2},children:"ROI ($)"}),r.jsx(y.Typography,{sx:{...j.boldSx,fontSize:"1.25rem",mr:2},children:I!==null?`${I}%`:"0%"})]})]})},Go=()=>r.jsxs(y.Box,{sx:{width:{xs:410,md:273},height:730,opacity:1,display:"flex",flexDirection:"column",m:{xs:2,md:"0rem 2.5rem 1.25rem 0rem"},justifyContent:"space-between",alignItems:"center"},children:[r.jsx(Io,{}),r.jsx(ro,{}),r.jsx(yo,{})]}),lo=()=>{const A=y.useTheme(),B=y.useMediaQuery(A.breakpoints.down("md"));return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs(y.Box,{sx:{display:"flex",mt:7,justifyContent:"space-between",alignItems:{xs:"center",md:"flex-start"},flexDirection:{xs:"column",md:"row"}},children:[!B&&r.jsx(Gg,{}),r.jsx(OB.Outlet,{}),r.jsx(Go,{})]})]})};/**
|
|
92
92
|
* table-core
|
|
93
93
|
*
|
|
94
94
|
* Copyright (c) TanStack
|
package/dist/index.es.js
CHANGED