@orderly.network/ui 2.3.2 → 2.4.0

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.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import * as ze from 'react';
2
- import ze__default, { forwardRef, useMemo, useRef, useCallback, useState, useEffect, useId, createContext, Fragment as Fragment$1, memo, useImperativeHandle, useContext, useReducer } from 'react';
3
- import { createTV, tv, cnBase, cn } from 'tailwind-variants';
1
+ import * as Le from 'react';
2
+ import Le__default, { forwardRef, useMemo, useRef, useCallback, useState, useEffect, useId, createContext, Fragment as Fragment$1, memo, useImperativeHandle, useContext, useReducer } from 'react';
3
+ import { createTV, tv, cnBase, cn as cn$1 } from 'tailwind-variants';
4
4
  export { cnBase as cn } from 'tailwind-variants';
5
5
  import { Slot } from '@radix-ui/react-slot';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { findLongestCommonSubString, Decimal, getPrecisionByNumber, numberToHumanStyle, commify, getGlobalObject, todpIfNeed } from '@orderly.network/utils';
8
8
  import { format, isValid } from 'date-fns';
9
9
  import * as fe from '@radix-ui/react-avatar';
10
- import cc from 'ethereum-blockies-base64';
10
+ import yc from 'ethereum-blockies-base64';
11
11
  import * as P from '@radix-ui/react-select';
12
12
  import { SelectItem, SelectItemText, ItemIndicator } from '@radix-ui/react-select';
13
13
  import * as q from '@radix-ui/react-popover';
@@ -19,7 +19,7 @@ import { useReactTable, getFilteredRowModel, getSortedRowModel, getExpandedRowMo
19
19
  import { enUS } from 'date-fns/locale';
20
20
  import { ErrorBoundary } from 'react-error-boundary';
21
21
  import { DayPicker } from 'react-day-picker';
22
- import * as L from '@radix-ui/react-dialog';
22
+ import * as B from '@radix-ui/react-dialog';
23
23
  import * as ie from '@radix-ui/react-tabs';
24
24
  import * as ae from '@radix-ui/react-hover-card';
25
25
  import * as ke from '@radix-ui/react-slider';
@@ -28,9 +28,9 @@ export { default as toast } from 'react-hot-toast';
28
28
  import * as Ro from '@radix-ui/react-collapsible';
29
29
  import * as M from '@radix-ui/react-dropdown-menu';
30
30
 
31
- var Ru=Object.defineProperty;var yr=(e,o)=>{for(var t in o)Ru(e,t,{get:o[t],enumerable:true});};var dt={variants:{gap:{0:"oui-gap-0",1:"oui-gap-1",2:"oui-gap-2",3:"oui-gap-3",4:"oui-gap-4",5:"oui-gap-5",6:"oui-gap-6",8:"oui-gap-8",10:"oui-gap-10"},gapX:{0:"oui-gap-x-0",1:"oui-gap-x-1",2:"oui-gap-x-2",3:"oui-gap-x-3",4:"oui-gap-x-4",5:"oui-gap-x-5",6:"oui-gap-x-6",8:"oui-gap-x-8",10:"oui-gap-x-10"},gapY:{0:"oui-gap-y-0",1:"oui-gap-y-1",2:"oui-gap-y-2",3:"oui-gap-y-3",4:"oui-gap-y-4",5:"oui-gap-y-5",6:"oui-gap-y-6",8:"oui-gap-y-8",10:"oui-gap-y-10"}}};var h=createTV({twMergeConfig:{prefix:"oui-"}});var ga={variants:{p:{0:"oui-p-0",1:"oui-p-1",2:"oui-p-2",3:"oui-p-3",4:"oui-p-4",5:"oui-p-5",6:"oui-p-6",7:"oui-p-7",8:"oui-p-8",9:"oui-p-9",10:"oui-p-10"},px:{0:"oui-px-0",1:"oui-px-1",2:"oui-px-2",3:"oui-px-3",4:"oui-px-4",5:"oui-px-5",6:"oui-px-6",7:"oui-px-7",8:"oui-px-8",9:"oui-px-9",10:"oui-px-10"},py:{0:"oui-py-0",1:"oui-py-1",2:"oui-py-2",3:"oui-py-3",4:"oui-py-4",5:"oui-py-5",6:"oui-py-6",7:"oui-py-7",8:"oui-py-8",9:"oui-py-9",10:"oui-py-10"},pt:{0:"oui-pt-0",1:"oui-pt-1",2:"oui-pt-2",3:"oui-pt-3",4:"oui-pt-4",5:"oui-pt-5",6:"oui-pt-6",7:"oui-pt-7",8:"oui-pt-8",9:"oui-pt-9",10:"oui-pt-10"},pb:{0:"oui-pb-0",1:"oui-pb-1",2:"oui-pb-2",3:"oui-pb-3",4:"oui-pb-4",5:"oui-pb-5",6:"oui-pb-6",7:"oui-pb-7",8:"oui-pb-8",9:"oui-pb-9",10:"oui-pb-10"},pl:{0:"oui-pl-0",1:"oui-pl-1",2:"oui-pl-2",3:"oui-pl-3",4:"oui-pl-4",5:"oui-pl-5",6:"oui-pl-6",7:"oui-pl-7",8:"oui-pl-8",9:"oui-pl-9",10:"oui-pl-10"},pr:{0:"oui-pr-0",1:"oui-pr-1",2:"oui-pr-2",3:"oui-pr-3",4:"oui-pr-4",5:"oui-pr-5",6:"oui-pr-6",7:"oui-pr-7",8:"oui-pr-8",9:"oui-pr-9",10:"oui-pr-10"},m:{0:"oui-m-0",1:"oui-m-1",2:"oui-m-2",3:"oui-m-3",4:"oui-m-4",5:"oui-m-5",6:"oui-m-6",7:"oui-m-7",8:"oui-m-8",9:"oui-m-9",10:"oui-m-10"},mx:{0:"oui-mx-0",1:"oui-mx-1",2:"oui-mx-2",3:"oui-mx-3",4:"oui-mx-4",5:"oui-mx-5",6:"oui-mx-6",7:"oui-mx-7",8:"oui-mx-8",9:"oui-mx-9",10:"oui-mx-10"},my:{0:"oui-my-0",1:"oui-my-1",2:"oui-my-2",3:"oui-my-3",4:"oui-my-4",5:"oui-my-5",6:"oui-my-6",7:"oui-my-7",8:"oui-my-8",9:"oui-my-9",10:"oui-my-10"},mt:{0:"oui-mt-0",1:"oui-mt-1",2:"oui-mt-2",3:"oui-mt-3",4:"oui-mt-4",5:"oui-mt-5",6:"oui-mt-6",7:"oui-mt-7",8:"oui-mt-8",9:"oui-mt-9",10:"oui-mt-10"},mb:{0:"oui-mb-0",1:"oui-mb-1",2:"oui-mb-2",3:"oui-mb-3",4:"oui-mb-4",5:"oui-mb-5",6:"oui-mb-6",7:"oui-mb-7",8:"oui-mb-8",9:"oui-mb-9",10:"oui-mb-10"},ml:{0:"oui-ml-0",1:"oui-ml-1",2:"oui-ml-2",3:"oui-ml-3",4:"oui-ml-4",5:"oui-ml-5",6:"oui-ml-6",7:"oui-ml-7",8:"oui-ml-8",9:"oui-ml-9",10:"oui-ml-10"},mr:{0:"oui-mr-0",1:"oui-mr-1",2:"oui-mr-2",3:"oui-mr-3",4:"oui-mr-4",5:"oui-mr-5",6:"oui-mr-6",7:"oui-mr-7",8:"oui-mr-8",9:"oui-mr-9",10:"oui-mr-10"},grow:{true:"oui-grow"}}};var fa=e=>{let{width:o,height:t,angle:r,left:i,top:n,bottom:a,right:s,...l}=e,u=Object.create(null);return r&&(u["--oui-gradient-angle"]=`${r}deg`),je("--oui-width",o,u),je("--oui-height",t,u),je("--oui-left",i,u),je("--oui-right",s,u),je("--oui-top",n,u),je("--oui-bottom",a,u),{...l,style:{...l.style,...u}}};function je(e,o,t){typeof o<"u"&&(t[e]=Nu(o));}function Nu(e){return typeof e=="number"?`${e}px`:e}var mt=e=>{let{angle:o}=e;return {"--oui-gradient-angle":o?`${o}deg`:"180deg"}};var gt={variants:{shadow:{sm:"oui-shadow-sm",base:"oui-shadow",md:"oui-shadow-md",lg:"oui-shadow-lg",xl:"oui-shadow-xl","2xl":"oui-shadow-2xl",inner:"oui-shadow-inner",none:"oui-shadow-none"}}};var ft={variants:{border:{true:"oui-border oui-border-line"},r:{none:"oui-rounded-none",sm:"oui-rounded-sm",base:"oui-rounded",md:"oui-rounded-md",lg:"oui-rounded-lg",xl:"oui-rounded-xl","2xl":"oui-rounded-2xl",full:"oui-rounded-full"},gradient:{primary:"oui-gradient-primary",secondary:"oui-gradient-secondary",brand:"oui-gradient-brand",success:"oui-gradient-success",warning:"oui-gradient-warning",danger:"oui-gradient-danger",neutral:"oui-gradient-neutral"},intensity:{100:"oui-bg-base-1",200:"oui-bg-base-2",300:"oui-bg-base-3",400:"oui-bg-base-4",500:"oui-bg-base-5",600:"oui-bg-base-6",700:"oui-bg-base-7",800:"oui-bg-base-8",900:"oui-bg-base-9"},borderColor:{4:"oui-border-line-4",6:"oui-border-line-6",8:"oui-border-line",12:"oui-border-line-12",16:"oui-border-line-16"}}};var xa={variants:{position:{static:"oui-static",fixed:"oui-fixed",absolute:"oui-absolute",relative:"oui-relative",sticky:"oui-sticky"},zIndex:{0:"oui-z-0",10:"oui-z-10",20:"oui-z-20",30:"oui-z-30",40:"oui-z-40",50:"oui-z-50",auto:"oui-z-auto"}}};var ba={variants:{invisible:{true:"oui-invisible"}}};var Cr=h({base:["oui-box"],variants:{...ga.variants,...gt.variants,...ft.variants,...xa.variants,...ba.variants,__position:{true:"oui-position"},__size_width:{true:"oui-size-width"},__size_height:{true:"oui-size-height"}},defaultVariants:{__position:false,__size:false}}),W=ze__default.forwardRef((e,o)=>{let{asChild:t=false,as:r="div",className:i,p:n,px:a,py:s,pt:l,pb:u,pl:c,pr:m,m:g,mx:p,my:f,mr:b,mt:T,mb:x,ml:S,grow:R,zIndex:v,style:D,shadow:y,border:A,gradient:j,r:K,invisible:ne,intensity:w,position:V,borderColor:O,...Le}=fa(e);return jsx(t?Slot:r,{style:D,className:Cr({className:i,p:n,r:K,px:a,py:s,pt:l,pb:u,pr:m,pl:c,m:g,mx:p,my:f,mt:T,mb:x,ml:S,mr:b,zIndex:v,shadow:y,border:A,gradient:j,position:V,intensity:w,invisible:ne,grow:R,borderColor:O,__position:typeof V<"u",__size_width:typeof e.width<"u",__size_height:typeof e.height<"u"}),...Le,ref:o})});W.displayName="Box";var Vu=h({variants:{...dt.variants}}),ha=h({extend:Vu,base:["oui-flex"],variants:{display:{flex:"oui-flex",inlineFlex:"oui-inline-flex"},direction:{row:"oui-flex-row",rowReverse:"oui-flex-row-reverse",column:"oui-flex-col",columnReverse:"oui-flex-col-reverse"},itemAlign:{start:"oui-items-start",end:"oui-items-end",center:"oui-items-center",baseline:"oui-items-baseline",stretch:"oui-items-stretch"},justify:{start:"oui-justify-start",end:"oui-justify-end",center:"oui-justify-center",between:"oui-justify-between",around:"oui-justify-around",evenly:"oui-justify-evenly",stretch:"oui-justify-stretch"},wrap:{noWrap:"oui-flex-nowrap",wrap:"oui-flex-wrap",wrapReverse:"oui-flex-wrap-reverse"}},defaultVariants:{display:"flex",direction:"row",itemAlign:"center",justify:"start",wrap:"noWrap"}},{responsiveVariants:true}),z=forwardRef((e,o)=>{let{className:t,display:r,gap:i,gapX:n,gapY:a,wrap:s,justify:l,itemAlign:u,direction:c,...m}=e;return jsx(W,{ref:o,className:ha({className:t,display:r,gap:i,gapX:n,gapY:a,wrap:s,justify:l,itemAlign:u,direction:c}),...m})});z.displayName="Flex";var va=tv({base:"oui-text-gray-200 oui-animate-spin dark:oui-text-gray-600 oui-fill-primary-darken",variants:{size:{xs:"oui-w-3 oui-h-3",sm:"oui-w-4 oui-h-4",md:"oui-w-6 oui-h-6",lg:"oui-w-8 oui-h-8",xl:"oui-w-10 oui-h-10"},color:{primary:"oui-fill-primary-darken",success:"oui-fill-success",danger:"oui-fill-danger",warning:"oui-fill-warning-darken",gray:"oui-fill-gray",darkGray:"oui-fill-darkGray",white:"oui-fill-white"}},defaultVariants:{size:"lg",color:"primary"}}),Re=e=>{let{size:o,color:t,loading:r=true,children:i,className:n}=e;return r?jsxs("span",{role:"status",className:"oui-inline-block",children:[jsxs("svg",{"aria-hidden":"true",className:va({size:o,className:n,color:t}),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor",fillOpacity:.2}),jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),jsx("span",{className:"oui-sr-only",children:"Loading..."})]}):jsx(Fragment,{children:i})};var kr=ze__default.forwardRef((e,o)=>{let{asChild:t=false,children:r,loading:i,leading:n,trailing:a,size:s,icon:l,disabled:u,...c}=e,m=t?Slot:"button",g=typeof u<"u"?u:i,p=useMemo(()=>l?ze__default.cloneElement(l,{size:s==="xs"||s==="sm"?12:s==="md"?14:s==="lg"?16:s==="xl"?18:12,className:"oui-text-inherit",opacity:i?0:1}):null,[s,l]),f=useMemo(()=>!n&&!a&&!p?r:jsxs(z,{as:"span",itemAlign:"center",className:"oui-space-x-1",children:[n,p,jsx("span",{children:r}),a]}),[r,n,a,p]),b=useMemo(()=>{switch(s){case "xl":return "md";case "lg":return "md";case "md":return "sm";case "sm":case "xs":return "xs";default:return "md"}},[s]);return jsx(m,{...c,disabled:g,ref:o,children:i?jsxs(Fragment,{children:[jsx("span",{className:"oui-invisible",children:f}),jsx(z,{itemAlign:"center",justify:"center",position:"absolute",as:"span",children:jsx(Re,{size:b,color:"white"})})]}):f})});kr.displayName="BaseButton";var bt=tv({base:["oui-button","oui-inline-flex","oui-items-center","oui-justify-center","oui-whitespace-nowrap","oui-transition-colors","disabled:oui-cursor-not-allowed","disabled:oui-bg-base-3","disabled:oui-text-base-contrast-36","disabled:hover:oui-bg-base-3"],variants:{...gt.variants,variant:{text:"oui-bg-transparent",outlined:"oui-border",contained:"oui-text-white",gradient:"oui-gradient-brand oui-text-[rgba(0,0,0,0.88)]"},size:{xs:["oui-px-2","oui-rounded","oui-h-6","oui-text-2xs"],sm:["oui-px-3","oui-rounded","oui-h-7","oui-text-2xs"],md:["oui-px-3","oui-rounded-md","oui-h-8","oui-text-sm"],lg:["oui-px-3","oui-rounded-md","oui-h-10","oui-text-base"],xl:["oui-px-4","oui-rounded-lg","oui-h-13","oui-text-lg"]},color:{primary:["hover:oui-bg-primary-darken/80 active:oui-bg-primary-darken/70"],secondary:"hover:oui-bg-base-4/80 active:oui-bg-base-4/70",success:"hover:oui-bg-success/80 active:oui-bg-success/70",buy:"hover:oui-bg-success/80 active:oui-bg-success/70",danger:"hover:oui-bg-danger/80 active:oui-bg-danger/70",sell:"hover:oui-bg-danger/80 active:oui-bg-danger/70",warning:"hover:oui-bg-warning-darken/80 active:oui-bg-warning-darken/70",gray:"hover:oui-bg-base-2/80 active:oui-bg-base-2/70",light:"hover:oui-bg-white/80 active:oui-bg-white/50 disable:oui-bg-white/20"},fullWidth:{true:"oui-w-full"}},compoundVariants:[{variant:"contained",color:"primary",className:["oui-bg-primary-darken","oui-text-primary-contrast"]},{variant:"contained",color:"secondary",className:["oui-bg-base-4","oui-text-primary-contrast"]},{variant:"contained",color:"success",className:["oui-bg-success","oui-text-success-contrast"]},{variant:"contained",color:"buy",className:["oui-bg-trade-profit","oui-text-success-contrast"]},{variant:"contained",color:"warning",className:["oui-bg-warning-darken","oui-text-warning-contrast"]},{variant:"contained",color:"danger",className:["oui-bg-danger","oui-text-danger-contrast"]},{variant:"contained",color:"sell",className:["oui-bg-trade-loss","oui-text-danger-contrast"]},{variant:"contained",color:"gray",className:["oui-bg-base-2","oui-text-base-contrast"]},{variant:"contained",color:"light",className:["oui-bg-white","oui-text-black/[.88]","disabled:oui-bg-white/30 hover:disabled:oui-bg-white/30 disabled:oui-text-black/[.36]"]},{variant:"outlined",color:"primary",className:["oui-border-primary-darken","oui-text-primary-darken","hover:oui-bg-primary-darken/20"]},{variant:"outlined",color:"secondary",className:["oui-border-base-4","oui-text-base-contrast-54","hover:oui-bg-base-4/20"]},{variant:"outlined",color:"success",className:["oui-border-success","oui-text-success","hover:oui-bg-success/20"]},{variant:"outlined",color:"warning",className:["oui-border-warning-darken","oui-text-warning-contrast","hover:oui-bg-warning-darken/20"]},{variant:"outlined",color:"danger",className:["oui-border-danger","oui-text-danger","hover:oui-bg-danger/20"]},{variant:"outlined",color:"gray",className:["oui-border-base-2","oui-text-base"]},{variant:"text",color:"primary",className:["oui-text-primary-darken hover:oui-bg-primary-darken/10"]},{variant:"text",color:"success",className:["oui-text-success hover:oui-bg-success/10"]},{variant:"text",color:"warning",className:["oui-text-warning-contrast hover:oui-bg-warning-darken/10"]},{variant:"text",color:"danger",className:["oui-text-danger hover:oui-bg-danger/10"]},{variant:"text",color:"gray",className:["oui-text-base hover:oui-bg-base-2/10"]},{variant:"text",color:"secondary",className:["oui-text-base-contrast-36 hover:oui-bg-base-2/10"]}],defaultVariants:{size:"lg",variant:"contained",color:"primary"}},{responsiveVariants:["md","lg"]}),$e=ze__default.forwardRef(({className:e,variant:o,size:t,color:r,fullWidth:i,shadow:n,angle:a,style:s,...l},u)=>{let c=mt({angle:a});return jsx(kr,{className:bt({variant:o,size:t,color:r,className:e,fullWidth:i,shadow:n}),size:t,ref:u,style:{...s,...c},...l})});$e.displayName="Button";var Sr=ze__default.forwardRef(({onClick:e,throttleDuration:o=700,...t},r)=>{let i=useRef(0),a=useCallback((s,l)=>function(...u){let c=Date.now();c-i.current>=s&&(i.current=c,l?.(...u));},[o])(o,e);return jsx($e,{onClick:a,ref:r,...t})});var Pa=h({extend:dt,base:["oui-grid"],variants:{cols:{1:"oui-grid-cols-1",2:"oui-grid-cols-2",3:"oui-grid-cols-3",4:"oui-grid-cols-4",5:"oui-grid-cols-5",6:"oui-grid-cols-6",7:"oui-grid-cols-7",8:"oui-grid-cols-8",9:"oui-grid-cols-9",none:"oui-grid-cols-none"},rows:{1:"oui-grid-rows-1",2:"oui-grid-rows-2",3:"oui-grid-rows-3",4:"oui-grid-rows-4",5:"oui-grid-rows-5",6:"oui-grid-rows-6",7:"oui-grid-rows-7",8:"oui-grid-rows-8",9:"oui-grid-rows-9",none:"oui-grid-rows-none"},autoFlow:{row:"oui-grid-flow-row",col:"oui-grid-flow-col",rowDense:"oui-grid-flow-row-dense",colDense:"oui-grid-flow-col-dense"},gap:{0:"oui-gap-0",1:"oui-gap-1",2:"oui-gap-2",3:"oui-gap-3",4:"oui-gap-4",5:"oui-gap-5"},gapX:{0:"oui-gap-x-0",1:"oui-gap-x-1",2:"oui-gap-x-2",3:"oui-gap-x-3",4:"oui-gap-x-4",5:"oui-gap-x-5"},gapY:{0:"oui-gap-y-0",1:"oui-gap-y-1",2:"oui-gap-y-2",3:"oui-gap-y-3",4:"oui-gap-y-4",5:"oui-gap-y-5"}},defaultVariants:{}}),Rr=ze__default.forwardRef((e,o)=>{let{className:t,cols:r,rows:i,gap:n,gapX:a,gapY:s,autoFlow:l,...u}=e;return jsx(W,{ref:o,...u,className:Pa({className:t,cols:r,rows:i,gap:n,gapX:a,gapY:s,autoFlow:l})})});Rr.displayName="Grid";var qu=h({variants:{colSpan:{auto:"oui-col-auto",1:"oui-col-span-1",2:"oui-col-span-2",3:"oui-col-span-3",4:"oui-col-span-4",5:"oui-col-span-5",6:"oui-col-span-6",7:"oui-col-span-7",8:"oui-col-span-8",9:"oui-col-span-9"},rowSpan:{auto:"oui-row-auto",1:"oui-row-span-1",2:"oui-row-span-2",3:"oui-row-span-3",4:"oui-row-span-4",5:"oui-row-span-5",6:"oui-row-span-6",7:"oui-row-span-7",8:"oui-row-span-8",9:"oui-row-span-9"}}}),ka=e=>{let{colSpan:o,rowSpan:t,className:r,...i}=e,n=useRef(null);return useEffect(()=>{if(n.current){let a=n.current.parentElement;!a||a.classList.contains("oui-grid");}},[]),jsx(W,{ref:n,...i,className:qu({colSpan:o,rowSpan:t,className:r})})};var Sa=Rr;Sa.span=ka;var Ia=h({variants:{size:{"3xs":["oui-text-3xs"],"2xs":["oui-text-2xs"],xs:["oui-text-xs"],sm:["oui-text-sm"],base:["oui-text-base"],lg:["oui-text-lg"],xl:["oui-text-xl"],"2xl":["oui-text-2xl"],"3xl":["oui-text-3xl"],"4xl":["oui-text-4xl"],"5xl":["oui-text-5xl"],"6xl":["oui-text-6xl"]},weight:{regular:["oui-font-normal"],semibold:["oui-font-semibold"],bold:["oui-font-bold"]},color:{inherit:"oui-text-inherit",neutral:"oui-text-base-contrast-54",primary:"oui-text-primary",primaryLight:"oui-text-primary-light",secondary:"oui-text-secondary",tertiary:"oui-text-tertiary",warning:"oui-text-warning-darken",danger:"oui-text-danger",success:"oui-text-success",buy:"oui-text-trade-profit",sell:"oui-text-trade-loss",lose:"oui-text-trade-loss",withdraw:"oui-text-trade-loss",profit:"oui-text-trade-profit",deposit:"oui-text-trade-profit"},intensity:{12:"oui-text-base-contrast-12",20:"oui-text-base-contrast-20",36:"oui-text-base-contrast-36",54:"oui-text-base-contrast-54",80:"oui-text-base-contrast-80",98:"oui-text-base-contrast"},dashBoard:{default:"oui-border-b oui-border-dashed oui-border-base-contrast-12"}}}),ee=ze__default.forwardRef((e,o)=>{let{children:t,className:r,asChild:i,as:n="span",color:a,size:s,weight:l,intensity:u,...c}=e;return jsx(Slot,{"data-accent-color":a,...c,ref:o,className:Ia({className:r,color:a,size:s,weight:l,intensity:u}),children:i?t:jsx(n,{children:t})})});ee.displayName="Text";var Nr=(e,o={})=>{let{rule:t,dp:r,tick:i,rm:n=Decimal.ROUND_DOWN,padding:a=true,abs:s}=o;if(Number.isNaN(e))return "--";if(r=typeof r<"u"?r:i?getPrecisionByNumber(i):2,t==="human")return numberToHumanStyle(typeof e=="number"?e:Number(e),r);let l=new Decimal(e);if(s&&(l=l.abs()),t==="percentages")return Na(l.mul(100),{dp:r,rm:n,padding:a})+"%";let u=Na(l,{dp:r,rm:n,padding:a});return t==="price"?commify(u):u?.includes("e")?new Decimal(u)?.toFixed():u};function Na(e,o){let{dp:t,rm:r,padding:i}=o;return r==="truncate"?todpIfNeed(e.toString(),t):i?e.toFixed(t,r):e.todp(t,r).toString()}function Tr(e,o){if(e==null)return "";let[t,r]=o??[6,4],i=new RegExp(`^(.{${t}})(.*)(.{${r}})$`);return `${e.replace(i,"$1...$3")}`}var za=e=>["percentages","price","human"].includes(e),qe=e=>{let{rule:o="price",coloring:t,dp:r,tick:i,suffix:n,prefix:a,visible:s,unit:l,currency:u,rm:c,padding:m=true,showIdentifier:g=false,identifiers:p,className:f,unitClassName:b,placeholder:T,masking:x,ignoreDP:S,...R}=e,v=Number(e.children),D=useMemo(()=>e.children==="-"?e.children:isNaN(v)?T??"--":typeof s<"u"&&!s?x??"*****":S?e.showIdentifier?Math.abs(v).toString():v:Nr(v,{rule:o,dp:r,tick:i,rm:c,padding:m,abs:g}),[v,s,i,r]),y=R.color||"inherit",A=useMemo(()=>!t||typeof s<"u"&&!s||Number.isNaN(v)?y:v===0?"neutral":v<0?"lose":"profit",[t,v,R.color,e.visible]),j=useMemo(()=>!g||Number.isNaN(v)||v===0||typeof s<"u"&&!s?null:v<0?p?.loss?p.loss:jsx("span",{children:"-"}):p?.profit?p.profit:jsx("span",{children:"+"}),[v,e.visible,g]),K=useMemo(()=>{if(typeof n>"u"&&typeof a>"u"&&typeof l>"u"&&typeof u>"u"&&!g)return D;let ne=n?typeof n=="string"?jsx("span",{children:n}):n:void 0,w=l?jsx("span",{className:cnBase("orderly-numeral-unit",b),children:l}):void 0,V=a||(u?jsx("span",{children:u}):void 0),O=jsxs(Fragment,{children:[D,w]});return jsxs(Fragment,{children:[V,typeof j<"u"?jsxs("span",{children:[j,jsx("span",{children:O})]}):jsx("span",{children:O}),ne]})},[D,n,l,a,j,b]);return jsx(ee,{...R,color:A,className:cnBase("oui-tabular-nums",f),children:K})};var Vr=h({slots:{root:"oui-text-base oui-flex oui-flex-col",label:"oui-text-xs oui-text-base-contrast-36",value:""},variants:{align:{start:{root:"oui-items-start"},end:{root:"oui-items-end"}}},defaultVariants:{align:"start"}}),Br=ze__default.forwardRef((e,o)=>{let{label:t}=Vr({});return jsx("div",{ref:o,className:t({className:cnBase("oui-statistic-label",e.className)}),children:e.children})});Br.displayName="StatisticLabel";var Va=ze__default.forwardRef((e,o)=>{let{label:t,valueProps:r,align:i,className:n,classNames:a,children:s,...l}=e,{root:u,value:c}=Vr({align:i}),m=useMemo(()=>{if(typeof s=="string"||typeof s=="number"){let{className:g,...p}=r??{};return jsx(qe,{...p,className:cnBase(c({className:g}),"oui-font-semibold",!r?.coloring&&"oui-text-base-contrast-80"),children:s})}return s},[s,r]);return jsxs("div",{...l,className:u({className:cnBase(n,a?.root)}),ref:o,children:[jsx(Br,{className:a?.label,children:t}),m]})});Va.displayName="Statistic";var lc=tv({variants:{color:{primary:"oui-text-primary-darken",success:"oui-text-success",danger:"oui-text-danger",warning:"oui-text-warning-darken",white:"oui-text-white",black:"oui-text-black",inherit:"oui-text-inherit"}},defaultVariants:{color:"black"}}),d=ze__default.forwardRef((e,o)=>{let{size:t=24,color:r,className:i,children:n,...a}=e;return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 24 24",ref:o,className:lc({className:i,color:r}),...a,children:n})});var Lr=h({slots:{root:"oui-relative oui-flex oui-shrink-0 oui-overflow-hidden oui-rounded-full",image:"oui-aspect-square oui-h-full oui-w-full",fallback:"oui-flex oui-h-full oui-w-full oui-items-center oui-justify-center oui-rounded-full oui-bg-base-2"},variants:{size:{"2xs":{root:"oui-w-4 oui-h-4"},xs:{root:"oui-w-5 oui-h-5"},sm:{root:"oui-w-6 oui-h-6"},md:{root:"oui-w-8 oui-h-8"},lg:{root:"oui-w-10 oui-h-10"},xl:{root:"oui-w-12 oui-h-12"}}},defaultVariants:{size:"sm"}}),_r=ze.forwardRef(({className:e,size:o,...t},r)=>{let{root:i}=Lr({size:o});return jsx(fe.Root,{ref:r,...t,className:i({className:e})})});_r.displayName=fe.Root.displayName;var Er=ze.forwardRef(({className:e,...o},t)=>{let{image:r}=Lr();return jsx(fe.Image,{ref:t,className:r({className:e}),...o})});Er.displayName=fe.Image.displayName;var Fr=ze.forwardRef(({className:e,...o},t)=>{let{fallback:r}=Lr({className:e});return jsx(fe.Fallback,{ref:t,className:r(),...o})});Fr.displayName=fe.Fallback.displayName;var xe=ze.forwardRef((e,o)=>{let{size:t,src:r,fallback:i,delayMs:n,alt:a,onLoadingStatusChange:s,...l}=e;return jsxs(_r,{...l,ref:o,size:t,children:[jsx(Er,{src:r,onLoadingStatusChange:s,alt:a}),typeof i<"u"&&jsx(Fr,{delayMs:n,children:i})]})}),Ba=ze.forwardRef((e,o)=>{let{address:t,...r}=e,i=useMemo(()=>cc(t),[e.address]);return jsx(xe,{...r,src:i})});var Ar=e=>{let o=useMemo(()=>`https://oss.orderly.network/static/network_logo/${e.chainId}.png`,[e.chainId]);return jsx(xe,{size:e.size,src:o,alt:`${e.chainId}`,className:e.className})};var Ne=e=>{let o=useMemo(()=>{let t=e.name;return typeof e.symbol=="string"&&(t=(e.symbol?.split("_"))[1]),`https://oss.orderly.network/static/symbol_logo/${t}.png`},[e.name,e.symbol]);return jsx(xe,{size:e.size,src:o,alt:e.name,className:e.className})};var La=e=>{let{secondary:o}=e,t=useMemo(()=>{let r="oui-bg-base-6 oui-absolute oui-bottom-0 oui-right-0 oui-outline oui-outline-2 oui-outline-base-1 oui-z-10";return o.component?jsx("div",{className:cnBase(r,o?.className),children:o.component}):"chainId"in o?jsx(Ar,{...o,className:cnBase(r,o?.className)}):jsx(Ne,{...o,className:cnBase(r,o?.className)})},[o]);return jsxs("div",{className:"oui-relative",children:[e.children,t]})};var Te=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M4.994 3.906c-.256 0-.523.086-.718.281a1.029 1.029 0 0 0 0 1.438l6.28 6.281-6.28 6.281a1.029 1.029 0 0 0 0 1.438c.39.39 1.047.39 1.437 0l6.281-6.28 6.282 6.28c.39.39 1.047.39 1.437 0 .39-.39.39-1.047 0-1.438l-6.281-6.28 6.281-6.282c.39-.39.39-1.047 0-1.438a1.013 1.013 0 0 0-.719-.28c-.256 0-.523.085-.718.28l-6.282 6.281-6.28-6.28a1.013 1.013 0 0 0-.72-.282Z"})})});Te.displayName="CloseIcon";var k=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,d:r,...i}=e;return jsx(d,{ref:o,...i,children:jsx("path",{fill:"currentcolor",fillOpacity:t,fillRule:"evenodd",clipRule:"evenodd",d:r})})});var Fa=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(k,{d:"M19.018 5.997c-.256 0-.523.084-.718.276l-8.707 8.594c-.257.253-.515.206-.717-.092l-2.996-4.42a1.034 1.034 0 0 0-1.405-.276.996.996 0 0 0-.28 1.38l2.995 4.42c.902 1.33 2.659 1.499 3.808.369l8.738-8.563a1 1 0 0 0 0-1.412 1.02 1.02 0 0 0-.718-.276Z",ref:o,...e})});Fa.displayName="CheckIcon";var wt=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M5.827 9.03c-.25.05-.502.175-.655.404a1.019 1.019 0 0 0 .28 1.401l5.992 3.985c.334.223.787.223 1.122 0l5.992-3.985c.459-.305.587-.943.28-1.4a1.023 1.023 0 0 0-1.404-.28l-5.43 3.61-5.428-3.61c-.23-.154-.498-.176-.75-.126Z"})})});wt.displayName="ChevronDownIcon";var vt=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"m11.443 9.17-5.991 3.986a1.02 1.02 0 0 0-.28 1.4c.305.458.945.586 1.404.281l5.429-3.612 5.428 3.612a1.025 1.025 0 0 0 1.404-.28 1.02 1.02 0 0 0-.28-1.401l-5.99-3.986a1.028 1.028 0 0 0-1.124 0Z"})})});vt.displayName="ChevronUpIcon";var yt=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.017 5.997c-.3 0-.612.14-.812.406l-6 8c-.495.66-.012 1.594.812 1.594h12c.824 0 1.307-.935.812-1.594l-6-8a1.022 1.022 0 0 0-.812-.406Z"})})});yt.displayName="CaretUpIcon";var oe=ze__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M6.007 7.996c-.824 0-1.276.935-.781 1.594l6 8a.994.994 0 0 0 1.593 0l6-8c.495-.66.012-1.594-.812-1.594h-12Z"}));oe.displayName="CaretDownIcon";var Wa=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M15.475 5.113a1.014 1.014 0 0 0-1.063.094l-8 6a1.025 1.025 0 0 0 0 1.624l8 6c.659.495 1.594.012 1.594-.812v-12c0-.412-.214-.747-.531-.906Z"})})});Wa.displayName="CaretLeftIcon";var Ua=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M8.558 5.113a1.015 1.015 0 0 0-.562.906v12c0 .824.966 1.307 1.625.812l8-6c.533-.4.533-1.224 0-1.624l-8-6a1.014 1.014 0 0 0-1.063-.094Z"})})});Ua.displayName="CaretRightIcon";var Je=ze__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M13.778 5.022c-.25.05-.5.176-.653.406l-3.986 6a1.03 1.03 0 0 0 0 1.125l3.986 6c.305.459.943.588 1.401.28.457-.305.585-.946.28-1.405l-3.612-5.438 3.612-5.437c.305-.46.177-1.1-.28-1.406-.229-.154-.498-.176-.748-.125Z"}));Je.displayName="ChevronLeftIcon";var eo=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M10.166 5.022c-.25-.051-.519-.03-.748.125a1.027 1.027 0 0 0-.28 1.406l3.612 5.437-3.612 5.438c-.305.459-.177 1.1.28 1.406a1.019 1.019 0 0 0 1.401-.281l3.986-6a1.03 1.03 0 0 0 0-1.125l-3.986-6c-.152-.23-.403-.356-.653-.406Z"})})});eo.displayName="ChevronRightIcon";var Xa=ze__default.forwardRef((e,o)=>jsx(k,{d:"M9.67364 2.34985C9.02964 2.34985 8.50697 2.87252 8.50697 3.51652C5.9298 3.51652 3.8403 5.60602 3.8403 8.18319V19.8499C3.8403 22.427 5.9298 24.5165 8.50697 24.5165H20.1736C22.7508 24.5165 24.8403 22.427 24.8403 19.8499V8.18319C24.8403 5.60602 22.7508 3.51652 20.1736 3.51652C20.1736 2.87252 19.651 2.34985 19.007 2.34985C18.363 2.34985 17.8403 2.87252 17.8403 3.51652H10.8403C10.8403 2.87252 10.3176 2.34985 9.67364 2.34985ZM8.50697 5.84985H20.1736C21.4628 5.84985 22.507 6.89402 22.507 8.18319V19.8499C22.507 21.139 21.4628 22.1832 20.1736 22.1832H8.50697C7.2178 22.1832 6.17364 21.139 6.17364 19.8499V8.18319C6.17364 6.89402 7.2178 5.84985 8.50697 5.84985ZM9.67364 8.18319C9.02964 8.18319 8.50697 8.70585 8.50697 9.34985C8.50697 9.99385 9.02964 10.5165 9.67364 10.5165H19.007C19.651 10.5165 20.1736 9.99385 20.1736 9.34985C20.1736 8.70585 19.651 8.18319 19.007 8.18319H9.67364ZM12.007 15.1832C11.363 15.1832 10.8403 15.7059 10.8403 16.3499C10.8403 16.9939 11.363 17.5165 12.007 17.5165H16.6736C17.3176 17.5165 17.8403 16.9939 17.8403 16.3499C17.8403 15.7059 17.3176 15.1832 16.6736 15.1832H12.007Z",ref:o,...e}));Xa.displayName="CalendarMinusIcon";var $a=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M8.968 2.455a9.671 9.671 0 0 0-3.72 2.188c-.332.31-.434.818-.218 1.218.8 1.481-.037 3.066-1.844 3.157-.442.022-.833.35-.937.781a8.71 8.71 0 0 0-.25 2.188c0 .687.074 1.464.219 2.156.09.432.466.743.906.781 1.818.158 2.718 1.544 1.906 3.313-.18.393-.098.863.219 1.157 1.062.982 2.282 1.675 3.719 2.125.41.128.873-.027 1.125-.375 1.112-1.54 2.725-1.544 3.78 0 .25.363.706.538 1.126.405a10.1 10.1 0 0 0 3.75-2.155c.33-.301.417-.788.219-1.188-.832-1.68.125-3.22 1.843-3.25.456-.008.862-.307.969-.75.173-.717.219-1.341.219-2.22 0-.754-.09-1.497-.25-2.218a.994.994 0 0 0-.97-.782c-1.69-.003-2.638-1.665-1.811-3.125a.977.977 0 0 0-.188-1.218c-1.09-.99-2.42-1.764-3.812-2.188a.986.986 0 0 0-1.125.406c-.966 1.501-2.77 1.527-3.72.032a1.023 1.023 0 0 0-1.155-.438Zm6.078 2.124a7.904 7.904 0 0 1 1.84 1.054c-.725 2.297.506 4.683 3.056 5.265.063.412.057.662.057 1.088 0 .51.007.688-.051 1.056-2.54.527-3.795 2.845-3.088 5.296-.608.441-1.043.747-1.806 1.043-1.792-1.825-4.28-1.904-6.11.011-.714-.314-1.263-.593-1.818-1.061.688-2.49-.475-4.638-3.057-5.29-.115-.457-.07-1.745-.003-2.136 2.67-.64 3.722-3.003 3.059-5.279.586-.44 1.113-.762 1.798-1.04 1.725 1.755 4.315 1.93 6.123-.007Zm-3.047 3.407a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z"})})});$a.displayName="SettingIcon";var Ka=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M8.968 2.456a9.669 9.669 0 0 0-3.72 2.187c-.332.31-.434.818-.218 1.219.8 1.48-.037 3.065-1.843 3.156-.443.023-.834.35-.938.78a8.712 8.712 0 0 0-.25 2.188c0 .688.074 1.464.219 2.156.09.433.466.744.906.783 1.818.156 2.718 1.543 1.906 3.311-.18.393-.098.863.219 1.156 1.062.983 2.282 1.675 3.719 2.125.41.13.873-.026 1.125-.375 1.112-1.537 2.725-1.543 3.78 0 .25.364.706.54 1.126.407a10.072 10.072 0 0 0 3.75-2.157c.33-.3.417-.787.219-1.186-.832-1.68.125-3.221 1.843-3.25.456-.008.862-.308.969-.75.173-.717.219-1.342.219-2.22 0-.754-.09-1.497-.25-2.218a.994.994 0 0 0-.97-.781c-1.69-.003-2.638-1.665-1.811-3.125a.979.979 0 0 0-.188-1.22 10.153 10.153 0 0 0-3.812-2.186.986.986 0 0 0-1.125.406c-.966 1.5-2.77 1.527-3.72.03-.242-.382-.723-.574-1.155-.436Zm3.03 5.53a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"})})});Ka.displayName="SettingFillIcon";var Ja=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M7.006 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm2 5c.256 0 .523.086.719.28l2.28 2.282 2.282-2.281c.195-.195.463-.281.719-.281.256 0 .523.086.719.28a1.03 1.03 0 0 1 0 1.439l-2.281 2.28 2.28 2.282a1.03 1.03 0 0 1 0 1.438 1.03 1.03 0 0 1-1.437 0l-2.281-2.281-2.281 2.28a1.03 1.03 0 0 1-1.438 0 1.03 1.03 0 0 1 0-1.437l2.28-2.281-2.28-2.281a1.03 1.03 0 0 1 0-1.438c.195-.195.463-.281.719-.281Z"})})});Ja.displayName="CloseSquareFillIcon";var on=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M11.999 1.953c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm-3 6c.256 0 .523.086.719.281l2.28 2.281 2.282-2.28c.196-.196.463-.282.719-.282.256 0 .523.086.719.281a1.03 1.03 0 0 1 0 1.438l-2.281 2.281 2.28 2.281a1.03 1.03 0 0 1 0 1.438 1.03 1.03 0 0 1-1.437 0l-2.281-2.28-2.281 2.28a1.03 1.03 0 0 1-1.438 0 1.029 1.029 0 0 1 0-1.438l2.28-2.28-2.28-2.282a1.029 1.029 0 0 1 0-1.438c.196-.195.463-.28.719-.28Z"})})});on.displayName="CloseCircleFillIcon";var tn=ze__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M2.014 11.999c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10Zm14.971-4.687c.227-.217.539-.312.837-.312.298 0 .61.095.836.312a1.102 1.102 0 0 1 0 1.595l-8.15 7.768a1.24 1.24 0 0 1-1.673 0l-3.494-3.33a1.104 1.104 0 0 1 0-1.594 1.24 1.24 0 0 1 1.674 0l2.656 2.531 7.314-6.97Z"}));tn.displayName="CheckedCircleFillIcon";var an=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,fillRule:"evenodd",clipRule:"evenodd",d:"M6.99 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm9.995 4.382c.227-.217.539-.312.837-.312.298 0 .61.095.836.312a1.102 1.102 0 0 1 0 1.595l-8.15 7.768a1.24 1.24 0 0 1-1.673 0l-3.494-3.33a1.104 1.104 0 0 1 0-1.594 1.24 1.24 0 0 1 1.674 0l2.656 2.531 7.314-6.97Z"})})});an.displayName="CheckSquareFillIcon";var sn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,fillRule:"evenodd",clipRule:"evenodd",d:"M6.99 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm0 2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2Z"})})});sn.displayName="CheckSquareEmptyIcon";var un=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M11.99 2.93a1 1 0 0 0-1 1v7h-7a1 1 0 0 0 0 2h7v7a1 1 0 0 0 2 0v-7h7a1 1 0 0 0 0-2h-7v-7a1 1 0 0 0-1-1Z"})})});un.displayName="PlusIcon";var pn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("rect",{x:"4",y:"11",width:"16",height:"1.5",rx:"0.666667",fill:"currentcolor",fillOpacity:t})})});pn.displayName="ReduceIcon";var mn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.014 1.999c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Z"})})});mn.displayName="CircleOutlinedIcon";var fn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M6.99 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm0 2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2Z"})})});fn.displayName="SquareOutlinedIcon";var bn=ze__default.forwardRef((e,o)=>{let{...t}=e;return jsx(d,{ref:o,...t,children:jsx("path",{fill:"currentcolor",d:"M12.014 1.999c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm0 5a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0v-5a1 1 0 0 1 1-1Zm0 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"})})});bn.displayName="ExclamationFillIcon";var wn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.014 1.953c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm0 5a3.006 3.006 0 0 1 3 3c.004 1.11-.516 2.044-1.375 2.906-.18.181-.353.355-.563.532-.099.084-.376.287-.406.312-.422.356-1.05.33-1.406-.094a1.035 1.035 0 0 1 .125-1.437l.375-.313c.168-.14.335-.272.47-.406.518-.522.782-1.022.78-1.5a1 1 0 0 0-1.969-.25c-.14.534-.685.86-1.219.72a1.034 1.034 0 0 1-.718-1.25 2.995 2.995 0 0 1 2.906-2.22Zm0 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"})})});wn.displayName="ExclamationFillIcon";var vn=ze__default.forwardRef((e,o)=>jsx(k,{d:"M21.995 16.007c0-.256-.086-.523-.28-.719l-3.72-3.687-1.406 1.406 1.968 2H3.995a1 1 0 000 2h14.562l-1.968 2 1.406 1.406 3.72-3.687c.194-.196.28-.463.28-.719zm-1-8a1 1 0 00-1-1H5.432l1.97-2-1.407-1.406-3.719 3.687a1.03 1.03 0 000 1.438l3.72 3.687L7.4 11.007l-1.969-2h14.563a1 1 0 001-1z",ref:o,...e}));vn.displayName="ArrowLeftRightIcon";var yn=ze__default.forwardRef((e,o)=>jsx(k,{d:"M16.007 2.014c-.256 0-.523.086-.718.281L11.6 6.015l1.406 1.405 2-1.968v14.562a1 1 0 002 0V5.452l2 1.968 1.407-1.406-3.688-3.719a1.012 1.012 0 00-.719-.28zm-8 1a1 1 0 00-1 1v14.562l-2-1.968-1.406 1.406 3.688 3.72c.39.39 1.047.39 1.437 0l3.688-3.72-1.407-1.406-2 1.968V4.014a1 1 0 00-1-1z",ref:o,...e}));yn.displayName="ArrowDownUpIconIcon";var Cn=ze__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M6.99 20.99a4 4 0 01-4-4v-10a4 4 0 014-4h10a4 4 0 014 4v10a4 4 0 01-4 4h-10zm5-4a1 1 0 001-1v-5h3l-4-4-4 4h3v5a1 1 0 001 1z"}));Cn.displayName="ArrowUpSquareFillIconIcon";var kn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M6.99 2.99a4 4 0 00-4 4v10a4 4 0 004 4h10a4 4 0 004-4v-10a4 4 0 00-4-4h-10zm5 4a1 1 0 011 1v5h3l-4 4-4-4h3v-5a1 1 0 011-1z"})})});kn.displayName="ArrowDownSquareFillIconIcon";var Rn=ze__default.forwardRef((e,o)=>jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",fill:"currentColor",focusable:false,ref:o,...e,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.74463 4.07796C1.74463 2.78938 2.78938 1.74463 4.07796 1.74463H9.9113C11.1999 1.74463 12.2446 2.78938 12.2446 4.07796V9.9113C12.2446 11.1999 11.1999 12.2446 9.9113 12.2446H4.07796C2.78938 12.2446 1.74463 11.1999 1.74463 9.9113V4.07796ZM6.5 5.5C6.224 5.5 6 5.724 6 6C6 6.276 6.224 6.5 6.5 6.5H9V8L11 6L9 4V5.5H6.5ZM7.5 7.5C7.776 7.5 8 7.724 8 8C8 8.276 7.776 8.5 7.5 8.5H5V10L3 8L5 6V7.5H7.5Z"})}));process.env.NODE_ENV!=="production"&&(Rn.displayName="ArrowLeftRightSquareFill");var In=ze__default.forwardRef((e,o)=>jsx(k,{d:"M7.998 2.014a4 4 0 00-4 4v12a4 4 0 004 4h8a4 4 0 004-4v-12a4 4 0 00-4-4h-8zm0 2h8a2 2 0 012 2v12a2 2 0 01-2 2h-8a2 2 0 01-2-2v-12a2 2 0 012-2zm1 2a1 1 0 00-1 1v1a1 1 0 001 1h6a1 1 0 001-1v-1a1 1 0 00-1-1h-6zm0 4a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2zm-6 3a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 00-1 1v3a1 1 0 002 0v-3a1 1 0 00-1-1zm-6 3a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2z",ref:o,...e}));In.displayName="FeeTierIconIcon";var Tn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M16.995 1.953a1.02 1.02 0 00-.719.281l-3 3.002-9.006 9.005-1 1c-.14.14-.212.338-.25.532l-1 5.003a.974.974 0 001.155 1.157l5.003-1c.194-.04.392-.112.532-.25l1-1.002 9.005-9.005c.445-.444 2.447-2.446 3.003-3a1.02 1.02 0 00.28-.72c0-1.637-.417-2.807-1.282-3.69-.873-.89-2.039-1.313-3.72-1.313zm.395 2.02c.902.052 1.488.26 1.889.67.41.417.669.997.724 1.882-.547.547-1.35 1.337-2.006 1.994l-2.565-2.564c.658-.657 1.41-1.436 1.958-1.983zm-3.396 3.42l2.564 2.564-7.567 7.567-2.564-2.564 7.568-7.567zM4.99 16.398l2.564 2.564-.094.094c-.66.132-1.993.411-3.22.657l.656-3.22.094-.095z"})})});Tn.displayName="EditIcon";var zn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.001 3.998c-2.959 0-5.452 1.454-7.5 3.844a16.652 16.652 0 00-1.812 2.562c-.302.528-.486.936-.594 1.188a1.058 1.058 0 000 .812c.108.252.292.66.594 1.188a16.652 16.652 0 001.812 2.562c2.048 2.39 4.541 3.844 7.5 3.844 2.96 0 5.452-1.454 7.5-3.844a16.652 16.652 0 001.812-2.562c.302-.528.486-.936.594-1.188a1.058 1.058 0 000-.812c-.108-.252-.292-.66-.594-1.188a16.652 16.652 0 00-1.812-2.562c-2.048-2.39-4.54-3.844-7.5-3.844zm0 4a4 4 0 110 8 4 4 0 010-8zm0 2a2 2 0 100 3.999 2 2 0 000-4z"})})});zn.displayName="EyeIcon";var Vn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M16.998 1.953a3 3 0 0 0-3 3c0 .257.04.577.102.815L8.747 9.504a3.25 3.25 0 0 0-1.75-.55 3 3 0 1 0 0 6c.633 0 1.257-.236 1.74-.569l5.365 3.766a3.2 3.2 0 0 0-.104.802 3 3 0 1 0 3-3c-.632 0-1.248.228-1.731.562l-5.378-3.763a3.2 3.2 0 0 0 .109-.799c0-.268-.038-.557-.104-.804l5.365-3.752c.479.323 1.118.556 1.739.556a3 3 0 1 0 0-6"})})});Vn.displayName="ShareIcon";var Ln=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.001 3.998c-2.959-.007-5.452 1.454-7.5 3.844a16.654 16.654 0 00-1.812 2.562c-.302.528-.486.936-.594 1.188a1.058 1.058 0 000 .812c.108.252.292.66.594 1.188.401.703.87 1.419 1.406 2.094.085.107.76.873 1.344 1.468l-1.157 1.125a1.03 1.03 0 000 1.438 1.03 1.03 0 001.438 0l14-14a1.03 1.03 0 000-1.438 1.014 1.014 0 00-.719-.281c-.256 0-.523.086-.719.28l-1.28 1.314c-1.654-1.106-3.298-1.59-5-1.594zm0 4c.518 0 1.31.137 2.031.562l-1.53 1.532c-.158-.082-.457-.094-.5-.094a2 2 0 00-2 2c0 .044-.015.347.03.53-.192.234-1.5 1.5-1.5 1.5a4.204 4.204 0 01-.53-2.03c-.012-2.21 1.79-4 4-4zm7.938.344s-9.755 9.718-11.063 11.03c1.44.572 2.918.626 3.125.626 2.96 0 5.452-1.454 7.5-3.844a16.652 16.652 0 001.812-2.562c.302-.528.486-.936.594-1.188a1.04 1.04 0 000-.812c-.227-.52-.654-1.347-1.312-2.313-.177-.26-.656-.937-.656-.937z"})})});Ln.displayName="EyeCloseIcon";var En=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.007 2.99a9 9 0 0 0-5.594 1.94 1 1 0 1 0 1.25 1.562 6.97 6.97 0 0 1 4.344-1.5 7 7 0 0 1 7 7h-2l3 4 3-4h-2a9 9 0 0 0-9-9m-8 5-3 4h2a9 9 0 0 0 9 9 9 9 0 0 0 5.594-1.937 1 1 0 1 0-1.25-1.562 6.96 6.96 0 0 1-4.344 1.5 7 7 0 0 1-7-7h2z"})})});En.displayName="RefreshIcon";var cp=e=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,children:[jsxs("g",{clipPath:"url(#clip0_862_2443)",children:[jsx("path",{d:"M10.0249 19.9491C15.5202 19.9491 19.9751 15.4942 19.9751 9.99883C19.9751 4.50346 15.5202 0.048584 10.0249 0.048584C4.52949 0.048584 0.0746155 4.50346 0.0746155 9.99883C0.0746155 15.4942 4.52949 19.9491 10.0249 19.9491Z",fill:"url(#paint0_linear_862_2443)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1556 4.8931C14.2202 4.94547 14.1824 5.04764 14.0992 5.04764H5.95063C5.86743 5.04764 5.82963 4.94547 5.89428 4.8931C7.02258 3.97918 8.4598 3.4317 10.0249 3.4317C11.59 3.4317 13.0272 3.97918 14.1556 4.8931Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.47028 11.7869C7.4233 11.7199 7.34764 11.6777 7.26581 11.6777H3.83C3.75128 11.6777 3.69391 11.7525 3.71579 11.8281C4.50796 14.565 7.03275 16.566 10.0249 16.566C13.0171 16.566 15.5419 14.565 16.334 11.8281C16.3559 11.7525 16.2985 11.6777 16.2198 11.6777H12.7841C12.7022 11.6777 12.6266 11.7199 12.5796 11.7869C12.0156 12.5911 11.0817 13.1167 10.025 13.1167C8.96818 13.1167 8.03421 12.5911 7.47028 11.7869Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.335 7.90476C12.3825 7.95713 12.4493 7.98867 12.5199 7.98867H16.114C16.1955 7.98867 16.2533 7.9094 16.2264 7.83259C15.9727 7.10647 15.5951 6.43851 15.119 5.85405C15.0743 5.79918 15.007 5.76813 14.9361 5.76813H5.11354C5.04278 5.76813 4.97543 5.79918 4.93074 5.85405C4.45459 6.43851 4.07701 7.10647 3.82337 7.83259C3.79652 7.9094 3.85428 7.98867 3.93567 7.98867H7.52982C7.60052 7.98867 7.66725 7.95713 7.71475 7.90476C8.28522 7.27587 9.10892 6.88093 10.0249 6.88093C10.9408 6.88093 11.7646 7.27587 12.335 7.90476Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.116 10.9587C13.0549 10.9587 13.0114 10.8991 13.028 10.8402C13.1029 10.5723 13.1429 10.29 13.1429 9.99822C13.1429 9.5877 13.0636 9.19568 12.9195 8.83669C12.895 8.77593 12.9388 8.70813 13.0042 8.70813H16.3916C16.4345 8.70813 16.4716 8.73843 16.4795 8.78064C16.5534 9.17523 16.5921 9.58228 16.5921 9.99832C16.5921 10.2979 16.572 10.5927 16.5333 10.8816C16.5273 10.9259 16.4894 10.9587 16.4447 10.9587H13.116ZM7.02183 10.8402C7.03829 10.8991 6.99492 10.9587 6.93381 10.9587H3.60511C3.56045 10.9587 3.52246 10.9259 3.51651 10.8816C3.47767 10.5927 3.45761 10.2979 3.45761 9.99832C3.45761 9.58228 3.49631 9.17523 3.5703 8.78064C3.5782 8.73843 3.61523 8.70813 3.65817 8.70813H7.04553C7.11101 8.70813 7.15477 8.77593 7.13037 8.83669C6.98617 9.19568 6.90682 9.5877 6.90682 9.99822C6.90682 10.29 6.94688 10.5723 7.02183 10.8402Z",fill:"white"})]}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_862_2443",x1:"10.0249",y1:"0.0486119",x2:"10.0249",y2:"19.9491",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#C750FF"}),jsx("stop",{offset:"1",stopColor:"#5800E8"})]}),jsx("clipPath",{id:"clip0_862_2443",children:jsx("rect",{width:"20",height:"20",fill:"white"})})]})]});var pp=e=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,children:[jsxs("g",{clipPath:"url(#clip0_862_2449)",children:[jsx("path",{d:"M10.0249 19.9361C15.5202 19.9361 19.9751 15.4813 19.9751 9.98589C19.9751 4.49052 15.5202 0.0356445 10.0249 0.0356445C4.52949 0.0356445 0.0746155 4.49052 0.0746155 9.98589C0.0746155 15.4813 4.52949 19.9361 10.0249 19.9361Z",fill:"url(#paint0_linear_862_2449)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0992 5.0347C14.1824 5.0347 14.2202 4.93253 14.1556 4.88017C13.0272 3.96625 11.59 3.41876 10.0249 3.41876C8.4598 3.41876 7.02258 3.96625 5.89428 4.88017C5.82963 4.93253 5.86743 5.0347 5.95063 5.0347H14.0992ZM7.2658 11.6648C7.34763 11.6648 7.42329 11.707 7.47028 11.7739C8.03421 12.5781 8.96819 13.1038 10.025 13.1038C11.0817 13.1038 12.0156 12.5781 12.5796 11.7739C12.6266 11.707 12.7022 11.6648 12.7841 11.6648H16.2198C16.2985 11.6648 16.3559 11.7395 16.334 11.8151C15.5419 14.5521 13.0171 16.5531 10.0249 16.5531C7.03275 16.5531 4.50795 14.5521 3.71578 11.8151C3.6939 11.7395 3.75127 11.6648 3.83 11.6648H7.2658ZM12.335 7.8919C12.3825 7.94426 12.4493 7.97581 12.5199 7.97581H16.114C16.1955 7.97581 16.2533 7.89653 16.2264 7.81972C15.9727 7.0936 15.5951 6.42564 15.119 5.84118C15.0743 5.78631 15.007 5.75526 14.9361 5.75526H5.11354C5.04279 5.75526 4.97543 5.78631 4.93075 5.84118C4.4546 6.42564 4.07701 7.0936 3.82337 7.81972C3.79653 7.89653 3.8543 7.97581 3.93567 7.97581H7.52983C7.60053 7.97581 7.66725 7.94426 7.71477 7.8919C8.28522 7.263 9.10892 6.86807 10.0249 6.86807C10.9408 6.86807 11.7646 7.263 12.335 7.8919ZM13.028 10.8273C13.0114 10.8862 13.0549 10.9458 13.116 10.9458H16.4447C16.4894 10.9458 16.5273 10.913 16.5333 10.8688C16.572 10.5798 16.5921 10.285 16.5921 9.98539C16.5921 9.56935 16.5534 9.1623 16.4795 8.76771C16.4716 8.72551 16.4345 8.6952 16.3916 8.6952H13.0042C12.9388 8.6952 12.895 8.763 12.9195 8.82377C13.0636 9.18276 13.1429 9.57477 13.1429 9.98529C13.1429 10.277 13.1029 10.5595 13.028 10.8273ZM6.9338 10.9458C6.99492 10.9458 7.03829 10.8862 7.02183 10.8273C6.94688 10.5595 6.90682 10.277 6.90682 9.98529C6.90682 9.57477 6.98617 9.18276 7.13037 8.82377C7.15477 8.763 7.11101 8.6952 7.04553 8.6952H3.65817C3.61522 8.6952 3.5782 8.72551 3.5703 8.76771C3.49631 9.1623 3.45761 9.56935 3.45761 9.98539C3.45761 10.285 3.47767 10.5798 3.51651 10.8688C3.52246 10.913 3.56045 10.9458 3.60511 10.9458H6.9338Z",fill:"url(#paint1_linear_862_2449)"})]}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_862_2449",x1:"10.0249",y1:"-2.24058",x2:"10.0249",y2:"21.2774",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"white"}),jsx("stop",{offset:"1",stopColor:"#EDE9F4"})]}),jsxs("linearGradient",{id:"paint1_linear_862_2449",x1:"10.0249",y1:"3.41876",x2:"10.0249",y2:"16.5531",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#C750FF"}),jsx("stop",{offset:"1",stopColor:"#5800E8"})]}),jsx("clipPath",{id:"clip0_862_2449",children:jsx("rect",{width:"20",height:"20",fill:"white"})})]})]});var mp=ze__default.forwardRef((e,o)=>jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e?.className,children:jsx("path",{d:"M7.99925 1.84277C4.31738 1.84277 1.33258 4.82744 1.33258 8.50944C1.33258 12.1914 4.31738 15.1761 7.99925 15.1761C11.6811 15.1761 14.6659 12.1914 14.6659 8.50944C14.6659 4.82744 11.6811 1.84277 7.99925 1.84277ZM7.99925 5.17611C8.36745 5.17611 8.66591 5.47477 8.66591 5.84277C8.66591 6.21077 8.36745 6.50944 7.99925 6.50944C7.63105 6.50944 7.33258 6.21077 7.33258 5.84277C7.33258 5.47477 7.63105 5.17611 7.99925 5.17611ZM7.99925 7.17611C8.36745 7.17611 8.66591 7.47477 8.66591 7.84277V11.1761C8.66591 11.5441 8.36745 11.8428 7.99925 11.8428C7.63105 11.8428 7.33258 11.5441 7.33258 11.1761V7.84277C7.33258 7.47477 7.63105 7.17611 7.99925 7.17611Z",fill:"white",fillOpacity:"0.36"})}));var fp=e=>{let o=useMemo(()=>`https://oss.orderly.network/static/wallet_icon/${e.name?.split(" ")?.[0]?.toLowerCase()}.png`,[e.name]);return jsx(xe,{size:e.size,src:o,alt:`${e.name}`})};var oo=ze__default.forwardRef((e,o)=>jsx(k,{d:"M8.006 2.014a1 1 0 0 0-1 1 4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10c0-2.205-1.792-4-4-4a1 1 0 0 0-2 0h-6a1 1 0 0 0-1-1Zm-1 3a1 1 0 0 0 2 0h6a1 1 0 0 0 2 0 2 2 0 0 1 2 2v1h-14v-1a2 2 0 0 1 2-2Zm-2 5h14v7a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-7Zm3 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-8 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",ref:o,...e}));oo.displayName="CaretLeftIcon";var Pt=ze__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M6.998 2.99a4 4 0 00-4 4v6a4 4 0 004 4 4 4 0 004 4h6a4 4 0 004-4v-6a4 4 0 00-4-4 4 4 0 00-4-4h-6zm10 6a2 2 0 012 2v6a2 2 0 01-2 2h-6a2 2 0 01-2-2h4a4 4 0 004-4v-4z"}));Pt.displayName="CopyIcon";var An=ze__default.forwardRef((e,o)=>jsx(k,{d:"M11.998 1.953c-4.362 0-8 1.56-8 4s3.638 4 8 4 8-1.559 8-4-3.638-4-8-4m-8 7.625v2.375c0 2.441 3.638 4 8 4s8-1.559 8-4V9.578c-1.814 1.49-4.642 2.375-8 2.375s-6.186-.885-8-2.375m0 6v2.375c0 2.441 3.638 4 8 4s8-1.559 8-4v-2.375c-1.814 1.49-4.642 2.375-8 2.375s-6.186-.885-8-2.375",ref:o,...e}));An.displayName="ServerFillIcon";var Hn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsxs(d,{ref:o,...r,children:[jsx("path",{d:"M12 2.5c-.3 0-.611.112-.81.325l-5.99 6.4c-.495.527-.013 1.275.81 1.275h11.98c.823 0 1.305-.748.81-1.275l-5.99-6.4c-.198-.213-.51-.325-.81-.325",fill:"currentcolor",fillOpacity:".98"}),jsx("path",{d:"M12 21.5c-.3 0-.611-.112-.81-.325l-5.99-6.4c-.495-.527-.013-1.275.81-1.275h11.98c.823 0 1.305.748.81 1.275l-5.99 6.4c-.198.213-.51.325-.81.325",fill:"currentcolor",fillOpacity:".36"})]})});Hn.displayName="SortingAscIcon";var Wn=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsxs(d,{ref:o,...r,children:[jsx("path",{d:"M12 2.5c-.3 0-.611.112-.81.325l-5.99 6.4c-.495.527-.013 1.275.81 1.275h11.98c.823 0 1.305-.748.81-1.275l-5.99-6.4c-.198-.213-.51-.325-.81-.325",fill:"currentcolor",fillOpacity:".36"}),jsx("path",{d:"M12 21.5c-.3 0-.611-.112-.81-.325l-5.99-6.4c-.495-.527-.013-1.275.81-1.275h11.98c.823 0 1.305.748.81 1.275l-5.99 6.4c-.198.213-.51.325-.81.325",fill:"currentcolor",fillOpacity:".98"})]})});Wn.displayName="SortingDescIcon";var Zn=ze__default.forwardRef((e,o)=>jsx(k,{d:"M11.993 18.012a1 1 0 0 1-.999-.999V9.458l-2.997 2.966-1.405-1.405 4.683-4.714a1 1 0 0 1 .72-.293c.26 0 .521.098.716.293l4.683 4.714-1.405 1.405-2.997-2.966v7.555a1 1 0 0 1-.999.999",ref:o,...e})),Un=ze__default.forwardRef((e,o)=>jsx(k,{d:"M11.993 6.012a1 1 0 0 0-1 .999v7.555L7.998 11.6l-1.405 1.405 4.683 4.714c.195.196.457.293.719.293.26 0 .522-.098.717-.293l4.683-4.714L15.99 11.6l-2.997 2.966V7.011a1 1 0 0 0-1-.999",ref:o,...e})),Yn=ze__default.forwardRef((e,o)=>jsx(k,{d:"M18.012 11.993a1 1 0 0 0-.999-1H9.458l2.966-2.996-1.405-1.405-4.714 4.683a1 1 0 0 0-.293.719c0 .26.098.522.293.717l4.714 4.683 1.405-1.405-2.966-2.997h7.555a1 1 0 0 0 .999-1",ref:o,...e})),Xn=ze__default.forwardRef((e,o)=>jsx(k,{d:"M6.012 11.993a1 1 0 0 1 .999-1h7.555L11.6 7.998l1.405-1.405 4.714 4.683c.196.195.293.457.293.719 0 .26-.098.522-.293.717l-4.714 4.683L11.6 15.99l2.966-2.997H7.011a1 1 0 0 1-.999-1",ref:o,...e}));Zn.displayName="ArrowUpShortIcon";Un.displayName="ArrowDownShortIcon";Yn.displayName="ArrowLeftShortIcon";Xn.displayName="ArrowRightShortIcon";var $n=ze__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12 2.5c-.3 0-.611.112-.81.325l-5.99 6.4c-.495.527-.013 1.275.81 1.275h11.98c.823 0 1.305-.748.81-1.275l-5.99-6.4c-.198-.213-.51-.325-.81-.325m0 19c-.3 0-.611-.112-.81-.325l-5.99-6.4c-.495-.527-.013-1.275.81-1.275h11.98c.823 0 1.305.748.81 1.275l-5.99 6.4c-.198.213-.51.325-.81.325"})})});$n.displayName="SortingIconIcon";var Np=()=>jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{children:jsx("path",{d:"M1.33301 18.6668C1.33301 17.9304 1.92996 17.3335 2.66634 17.3335H5.33301C6.06939 17.3335 6.66634 17.9304 6.66634 18.6668V28.0002C6.66634 28.7365 6.06939 29.3335 5.33301 29.3335H2.66634C1.92996 29.3335 1.33301 28.7365 1.33301 28.0002V18.6668Z",fill:"url(#paint0_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33301 18.0002H2.66634C2.29815 18.0002 1.99967 18.2986 1.99967 18.6668V28.0002C1.99967 28.3684 2.29815 28.6668 2.66634 28.6668H5.33301C5.7012 28.6668 5.99967 28.3684 5.99967 28.0002V18.6668C5.99967 18.2986 5.7012 18.0002 5.33301 18.0002ZM2.66634 17.3335C1.92996 17.3335 1.33301 17.9304 1.33301 18.6668V28.0002C1.33301 28.7365 1.92996 29.3335 2.66634 29.3335H5.33301C6.06939 29.3335 6.66634 28.7365 6.66634 28.0002V18.6668C6.66634 17.9304 6.06939 17.3335 5.33301 17.3335H2.66634Z",fill:"url(#paint1_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{d:"M9.33301 12.0001C9.33301 11.2637 9.92996 10.6667 10.6663 10.6667H13.333C14.0694 10.6667 14.6663 11.2637 14.6663 12.0001V28.0001C14.6663 28.7365 14.0694 29.3334 13.333 29.3334H10.6663C9.92996 29.3334 9.33301 28.7365 9.33301 28.0001V12.0001Z",fill:"url(#paint2_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.333 11.3334H10.6663C10.2982 11.3334 9.99967 11.6319 9.99967 12.0001V28.0001C9.99967 28.3683 10.2982 28.6667 10.6663 28.6667H13.333C13.7012 28.6667 13.9997 28.3683 13.9997 28.0001V12.0001C13.9997 11.6319 13.7012 11.3334 13.333 11.3334ZM10.6663 10.6667C9.92996 10.6667 9.33301 11.2637 9.33301 12.0001V28.0001C9.33301 28.7365 9.92996 29.3334 10.6663 29.3334H13.333C14.0694 29.3334 14.6663 28.7365 14.6663 28.0001V12.0001C14.6663 11.2637 14.0694 10.6667 13.333 10.6667H10.6663Z",fill:"url(#paint3_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{d:"M17.333 16.0001C17.333 15.2637 17.93 14.6667 18.6663 14.6667H21.333C22.0694 14.6667 22.6663 15.2637 22.6663 16.0001V28.0001C22.6663 28.7365 22.0694 29.3334 21.333 29.3334H18.6663C17.93 29.3334 17.333 28.7365 17.333 28.0001V16.0001Z",fill:"url(#paint4_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.333 15.3334H18.6663C18.2982 15.3334 17.9997 15.6319 17.9997 16.0001V28.0001C17.9997 28.3683 18.2982 28.6667 18.6663 28.6667H21.333C21.7012 28.6667 21.9997 28.3683 21.9997 28.0001V16.0001C21.9997 15.6319 21.7012 15.3334 21.333 15.3334ZM18.6663 14.6667C17.93 14.6667 17.333 15.2637 17.333 16.0001V28.0001C17.333 28.7365 17.93 29.3334 18.6663 29.3334H21.333C22.0694 29.3334 22.6663 28.7365 22.6663 28.0001V16.0001C22.6663 15.2637 22.0694 14.6667 21.333 14.6667H18.6663Z",fill:"url(#paint5_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{d:"M25.333 22.6668C25.333 21.9304 25.93 21.3335 26.6663 21.3335H29.333C30.0694 21.3335 30.6663 21.9304 30.6663 22.6668V28.0002C30.6663 28.7365 30.0694 29.3335 29.333 29.3335H26.6663C25.93 29.3335 25.333 28.7365 25.333 28.0002V22.6668Z",fill:"url(#paint6_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.333 22.0002H26.6663C26.2982 22.0002 25.9997 22.2986 25.9997 22.6668V28.0002C25.9997 28.3684 26.2982 28.6668 26.6663 28.6668H29.333C29.7012 28.6668 29.9997 28.3684 29.9997 28.0002V22.6668C29.9997 22.2986 29.7012 22.0002 29.333 22.0002ZM26.6663 21.3335C25.93 21.3335 25.333 21.9304 25.333 22.6668V28.0002C25.333 28.7365 25.93 29.3335 26.6663 29.3335H29.333C30.0694 29.3335 30.6663 28.7365 30.6663 28.0002V22.6668C30.6663 21.9304 30.0694 21.3335 29.333 21.3335H26.6663Z",fill:"url(#paint7_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.9997 3.33341C23.9997 2.96522 24.2981 2.66675 24.6663 2.66675H27.9997C28.3679 2.66675 28.6663 2.96522 28.6663 3.33341V6.66675C28.6663 7.03494 28.3679 7.33341 27.9997 7.33341C27.6315 7.33341 27.333 7.03494 27.333 6.66675V4.94289L20.9425 11.3334C20.4218 11.8541 19.5776 11.8541 19.0569 11.3334L11.9997 4.27622L4.47108 11.8048C4.21073 12.0652 3.78862 12.0652 3.52827 11.8048C3.26792 11.5445 3.26792 11.1224 3.52827 10.862L11.0569 3.33341C11.5776 2.81272 12.4218 2.81272 12.9425 3.33341L19.9997 10.3906L26.3902 4.00008H24.6663C24.2981 4.00008 23.9997 3.7016 23.9997 3.33341Z",fill:"url(#paint8_linear_1609_10673)"})}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_1609_10673",x1:"5.99967",y1:"23.3335",x2:"1.99967",y2:"23.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint1_linear_1609_10673",x1:"3.99967",y1:"17.3335",x2:"3.99967",y2:"29.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint2_linear_1609_10673",x1:"13.9997",y1:"19.3334",x2:"9.92665",y2:"19.3783",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#015B50"}),jsx("stop",{offset:"1",stopColor:"#01B49E"})]}),jsxs("linearGradient",{id:"paint3_linear_1609_10673",x1:"11.9997",y1:"10.6667",x2:"11.9997",y2:"29.3334",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#01B49E"}),jsx("stop",{offset:"1",stopColor:"#01B49E"})]}),jsxs("linearGradient",{id:"paint4_linear_1609_10673",x1:"21.9997",y1:"22.0001",x2:"17.9997",y2:"22.0001",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint5_linear_1609_10673",x1:"19.9997",y1:"14.6667",x2:"19.9997",y2:"29.3334",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint6_linear_1609_10673",x1:"29.9997",y1:"25.3335",x2:"25.9997",y2:"25.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint7_linear_1609_10673",x1:"27.9997",y1:"21.3335",x2:"27.9997",y2:"29.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint8_linear_1609_10673",x1:"3.66634",y1:"12.0001",x2:"21.262",y2:"-4.99792",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#01B49E",stopOpacity:"0.36"}),jsx("stop",{offset:"1",stopColor:"#01B49E"})]})]})]});var Tp=()=>jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M1.6001 14.3967C1.6001 13.86 1.86916 13.359 2.31661 13.0627L15.1166 4.58513C15.6522 4.23041 16.348 4.23041 16.8836 4.58513L29.6836 13.0627C30.131 13.359 30.4001 13.86 30.4001 14.3967V28C30.4001 28.8836 29.6838 29.6 28.8001 29.6H3.2001C2.31644 29.6 1.6001 28.8836 1.6001 28V14.3967Z",fill:"url(#paint0_linear_1609_7317)"}),jsx("path",{d:"M28.8001 28.8V29.6H3.2001V28.8H28.8001ZM29.6001 28V14.3969C29.6001 14.1285 29.4652 13.8778 29.2415 13.7297L16.4415 5.25232C16.2073 5.09729 15.9121 5.07755 15.6626 5.19373L15.5587 5.25232L2.75869 13.7297C2.53497 13.8778 2.4001 14.1285 2.4001 14.3969V28C2.4001 28.4418 2.75827 28.8 3.2001 28.8V29.6L3.03682 29.5914C2.28357 29.515 1.68506 28.9165 1.60869 28.1633L1.6001 28V14.3969C1.6001 13.8937 1.83627 13.4215 2.23447 13.1203L2.3165 13.0625L15.1165 4.58513C15.6521 4.23041 16.3481 4.23041 16.8837 4.58513L29.6837 13.0625C30.1311 13.3588 30.4001 13.8602 30.4001 14.3969V28L30.3915 28.1633C30.3151 28.9165 29.7166 29.515 28.9634 29.5914L28.8001 29.6V28.8C29.2419 28.8 29.6001 28.4418 29.6001 28Z",fill:"url(#paint1_linear_1609_7317)"}),jsx("path",{d:"M5.6001 4.7999C5.6001 3.47442 6.67461 2.3999 8.0001 2.3999H20.1374C20.5617 2.3999 20.9687 2.56847 21.2687 2.86853L25.9315 7.53127C26.2315 7.83133 26.4001 8.2383 26.4001 8.66264V17.2121C26.4001 17.7088 26.1694 18.1774 25.7756 18.4803L16.9998 25.2309C16.4135 25.6819 15.5944 25.6722 15.0189 25.2074L6.19476 18.0802C5.81868 17.7764 5.6001 17.3189 5.6001 16.8355V4.7999Z",fill:"url(#paint2_linear_1609_7317)"}),jsx("path",{d:"M5.6001 16.8358V4.7999C5.6001 3.51582 6.60854 2.46727 7.87666 2.40303L8.0001 2.3999H20.1376L20.2954 2.40771C20.6617 2.44407 21.0063 2.60608 21.2688 2.86865L25.9313 7.53115C26.2313 7.83115 26.4 8.23814 26.4001 8.6624V17.2124L26.3892 17.3968C26.3396 17.8233 26.1203 18.2154 25.7759 18.4804L17.0001 25.2312L16.8876 25.3101C16.3507 25.6545 15.6584 25.6459 15.1298 25.289L15.0188 25.2077L6.19463 18.0804C5.86561 17.8146 5.65728 17.431 5.61025 17.0155L5.6001 16.8358ZM6.4001 16.8358C6.4002 17.0774 6.5098 17.3059 6.69775 17.4577L15.522 24.5851C15.8097 24.8172 16.2187 24.8221 16.5118 24.5968L25.2876 17.846L25.3579 17.7858C25.5118 17.6362 25.6 17.4296 25.6001 17.2124V8.6624C25.6 8.47675 25.5355 8.2977 25.4188 8.15537L25.3657 8.09678L20.7032 3.43428C20.5532 3.2843 20.3497 3.19997 20.1376 3.1999H8.0001C7.11644 3.1999 6.4001 3.91625 6.4001 4.7999V16.8358Z",fill:"url(#paint3_linear_1609_7317)"}),jsx("path",{d:"M1.68437 14.1546C1.80314 14.0019 2.0105 13.9586 2.17734 14.0413L2.24531 14.0843L16.3922 25.0874L29.7461 14.0913C29.9166 13.951 30.1682 13.9755 30.3086 14.146C30.4489 14.3166 30.4244 14.5681 30.2539 14.7085L16.6539 25.9085L16.407 26.1124L16.1547 25.9156L1.75469 14.7156L1.69609 14.6601C1.57487 14.5188 1.56569 14.3073 1.68437 14.1546Z",fill:"url(#paint4_linear_1609_7317)"}),jsx("path",{d:"M15.063 19.8766C15.6222 19.4728 16.3773 19.4728 16.9366 19.8766L29.3969 28.8758C29.7115 29.103 29.5508 29.6001 29.1627 29.6001H2.8368C2.44873 29.6001 2.28801 29.103 2.6026 28.8758L15.063 19.8766Z",fill:"url(#paint5_linear_1609_7317)"}),jsx("path",{d:"M15.0634 19.8766C15.6226 19.4728 16.3776 19.4728 16.9368 19.8766L29.3969 28.8758C29.6919 29.0889 29.5693 29.5393 29.2329 29.5946L29.1634 29.6H2.83679L2.76726 29.5946C2.43083 29.5393 2.3082 29.0889 2.6032 28.8758L15.0634 19.8766ZM16.4688 20.525C16.2242 20.3484 15.9041 20.3262 15.6407 20.4586L15.5313 20.525L4.07429 28.8H27.9259L16.4688 20.525Z",fill:"url(#paint6_linear_1609_7317)"}),jsx("path",{d:"M16.2198 10.2711L15.999 10.4993L15.7783 10.2701C14.9185 9.38023 13.5199 9.37627 12.6562 10.2622L12.6485 10.2701C11.7838 11.164 11.7838 12.6095 12.6485 13.5044L15.6424 16.6463C15.8361 16.8487 16.1523 16.8517 16.3499 16.6532L16.3566 16.6463L19.3515 13.5044C20.2162 12.6105 20.2162 11.165 19.3515 10.2701C18.4917 9.38023 17.0931 9.37627 16.2294 10.2612L16.2198 10.2711Z",fill:"#B9D1FF"}),jsx("path",{d:"M15.9992 9.92654C17.0243 8.93604 18.641 8.95922 19.6391 9.99217L19.7312 10.0922C20.6519 11.146 20.6216 12.7633 19.6406 13.7797L19.6414 13.7804L16.6461 16.9219L16.6437 16.925L16.6336 16.9351C16.2776 17.2926 15.7023 17.2874 15.3531 16.9226V16.9219L12.3586 13.7804V13.7797C11.3466 12.7297 11.3471 11.0404 12.3609 9.99217L12.3695 9.98357V9.98279L12.4672 9.88748C13.4713 8.95732 15.0109 8.97251 15.9992 9.92654ZM19.0641 10.5476C18.3608 9.81979 17.2216 9.81726 16.5156 10.5406L16.507 10.55L16.5062 10.5492L16.2867 10.7773L15.9984 11.075L15.7109 10.7765L15.4898 10.5476V10.5469C14.7865 9.81999 13.6486 9.81767 12.943 10.5414L12.9422 10.5406L12.9351 10.5476L12.9359 10.5484C12.2663 11.2409 12.2241 12.3379 12.8101 13.082L12.9359 13.2265L12.9383 13.2281L15.9312 16.3695L15.9633 16.3922C15.9974 16.4073 16.0371 16.4004 16.0664 16.3711L16.0695 16.3672L19.0617 13.2281L19.0641 13.2258L19.1898 13.0828C19.7369 12.3893 19.7369 11.3867 19.1898 10.6922L19.0641 10.5476Z",fill:"#B9D1FF"}),jsx("path",{d:"M20 7.19997V3.53134C20 2.81862 20.8617 2.46168 21.3657 2.96565L25.8343 7.43428C26.3383 7.93826 25.9814 8.79997 25.2686 8.79997H21.6C20.7163 8.79997 20 8.08363 20 7.19997Z",fill:"#1F2D94"}),jsx("path",{d:"M20 7.19997V3.53122C20.0001 2.8186 20.8617 2.46174 21.3656 2.9656L25.8344 7.43435C26.3068 7.90689 26.0224 8.69348 25.3977 8.78981L25.2688 8.79997V7.99997L20.8 3.53122V7.19997C20.8 7.6418 21.1582 7.99997 21.6 7.99997V8.79997C20.7163 8.79997 20 8.08363 20 7.19997ZM25.2688 7.99997V8.79997H21.6V7.99997H25.2688Z",fill:"url(#paint7_linear_1609_7317)"}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_1609_7317",x1:"2.8001",y1:"15.5451",x2:"29.6001",y2:"15.5451",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#333948"}),jsx("stop",{offset:"1",stopColor:"#181C23"})]}),jsxs("linearGradient",{id:"paint1_linear_1609_7317",x1:"16.0001",y1:"3.99998",x2:"16.0001",y2:"29.6",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#222832"})]}),jsxs("linearGradient",{id:"paint2_linear_1609_7317",x1:"25.6001",y1:"14.3999",x2:"9.46705",y2:"7.84048",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#1828C3"}),jsx("stop",{offset:"1",stopColor:"#608CFF"})]}),jsxs("linearGradient",{id:"paint3_linear_1609_7317",x1:"15.2001",y1:"25.9999",x2:"23.4343",y2:"5.74778",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#1828C3"}),jsx("stop",{offset:"1",stopColor:"#608CFF"})]}),jsxs("linearGradient",{id:"paint4_linear_1609_7317",x1:"30",y1:"14.3999",x2:"2",y2:"14.3999",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#3B4355"}),jsx("stop",{offset:"0.483985",stopColor:"#6A7387"}),jsx("stop",{offset:"1",stopColor:"#3B4355"})]}),jsxs("linearGradient",{id:"paint5_linear_1609_7317",x1:"1.59977",y1:"24.4001",x2:"30.3998",y2:"24.4001",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#333948"}),jsx("stop",{offset:"1",stopColor:"#181C23"})]}),jsxs("linearGradient",{id:"paint6_linear_1609_7317",x1:"16.0001",y1:"19.2",x2:"16.0001",y2:"29.6",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#656D83"}),jsx("stop",{offset:"1",stopColor:"#222832"})]}),jsxs("linearGradient",{id:"paint7_linear_1609_7317",x1:"23.6",y1:"5.19997",x2:"20",y2:"8.79997",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#5D86FC"}),jsx("stop",{offset:"1",stopColor:"#4667E8"})]})]})]});var Mp=()=>jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M7.38623 9.2336C7.38623 4.46801 11.2495 0.604736 16.0151 0.604736C20.7807 0.604736 24.644 4.46801 24.644 9.2336C24.644 13.9992 20.7807 17.8625 16.0151 17.8625C11.2495 17.8625 7.38623 13.9992 7.38623 9.2336Z",fill:"url(#paint0_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3296 5.18278C19.3806 5.22417 19.3507 5.30493 19.285 5.30493H12.8438C12.778 5.30493 12.7482 5.22417 12.7993 5.18278C13.6911 4.46035 14.8272 4.02759 16.0643 4.02759C17.3016 4.02759 18.4376 4.46035 19.3296 5.18278Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0452 10.6322C14.0081 10.5792 13.9483 10.5459 13.8836 10.5459H11.1677C11.1055 10.5459 11.0601 10.605 11.0774 10.6647C11.7036 12.8282 13.6994 14.4099 16.0646 14.4099C18.4298 14.4099 20.4256 12.8282 21.0517 10.6647C21.069 10.605 21.0236 10.5459 20.9614 10.5459H18.2456C18.1809 10.5459 18.1211 10.5792 18.084 10.6322C17.6382 11.2679 16.8999 11.6834 16.0646 11.6834C15.2293 11.6834 14.491 11.2679 14.0452 10.6322Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8902 7.56345C17.9277 7.60484 17.9805 7.62978 18.0363 7.62978H20.8773C20.9418 7.62978 20.9874 7.56711 20.9661 7.50639C20.7656 6.93242 20.4672 6.40442 20.0908 5.94243C20.0555 5.89906 20.0022 5.87451 19.9462 5.87451H12.1818C12.1259 5.87451 12.0727 5.89906 12.0373 5.94243C11.661 6.40442 11.3625 6.93242 11.162 7.50639C11.1408 7.56711 11.1864 7.62978 11.2508 7.62978H14.0918C14.1477 7.62978 14.2005 7.60484 14.238 7.56345C14.6889 7.06633 15.34 6.75415 16.0641 6.75415C16.7881 6.75415 17.4392 7.06633 17.8902 7.56345Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5077 9.9775C18.4594 9.9775 18.425 9.93038 18.4381 9.88382C18.4973 9.67209 18.5289 9.44887 18.5289 9.21826C18.5289 8.89376 18.4662 8.58388 18.3523 8.30011C18.333 8.25208 18.3676 8.19849 18.4193 8.19849H21.0969C21.1308 8.19849 21.1602 8.22244 21.1664 8.2558C21.2248 8.56772 21.2554 8.88947 21.2554 9.21834C21.2554 9.45516 21.2395 9.68821 21.2089 9.91654C21.2041 9.95154 21.1742 9.9775 21.1389 9.9775H18.5077ZM13.6904 9.88382C13.7034 9.93038 13.6692 9.9775 13.6209 9.9775H10.9896C10.9543 9.9775 10.9243 9.95154 10.9196 9.91654C10.8889 9.68821 10.873 9.45516 10.873 9.21834C10.873 8.88947 10.9036 8.56772 10.9621 8.2558C10.9684 8.22244 10.9976 8.19849 11.0316 8.19849H13.7092C13.7609 8.19849 13.7955 8.25208 13.7762 8.30011C13.6622 8.58388 13.5995 8.89376 13.5995 9.21826C13.5995 9.44887 13.6312 9.67209 13.6904 9.88382Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00258 9.2336C8.00258 13.6588 11.5899 17.2461 16.0151 17.2461C20.4403 17.2461 24.0276 13.6588 24.0276 9.2336C24.0276 4.80841 20.4403 1.22108 16.0151 1.22108C11.5899 1.22108 8.00258 4.80841 8.00258 9.2336ZM16.0151 0.604736C11.2495 0.604736 7.38623 4.46801 7.38623 9.2336C7.38623 13.9992 11.2495 17.8625 16.0151 17.8625C20.7807 17.8625 24.644 13.9992 24.644 9.2336C24.644 4.46801 20.7807 0.604736 16.0151 0.604736Z",fill:"url(#paint1_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4248 19.2514C16.1912 19.0438 15.8393 19.0438 15.6058 19.2514L11.6798 22.7412C11.2562 23.1177 11.5225 23.8182 12.0893 23.8182H13.5494V25.6673C13.5494 26.3481 14.1013 26.9 14.7821 26.9H17.2475C17.9283 26.9 18.4802 26.3481 18.4802 25.6673V23.8182H19.9413C20.508 23.8182 20.7744 23.1177 20.3508 22.7412L16.4248 19.2514ZM14.474 27.5163C13.9634 27.5163 13.5494 27.9302 13.5494 28.4408C13.5494 28.9514 13.9634 29.3654 14.474 29.3654H17.5557C18.0663 29.3654 18.4802 28.9514 18.4802 28.4408C18.4802 27.9302 18.0663 27.5163 17.5557 27.5163H14.474ZM13.5494 30.5981C13.5494 30.2577 13.8254 29.9817 14.1658 29.9817H17.8639C18.2043 29.9817 18.4802 30.2577 18.4802 30.5981C18.4802 30.9385 18.2043 31.2144 17.8639 31.2144H14.1658C13.8254 31.2144 13.5494 30.9385 13.5494 30.5981Z",fill:"url(#paint2_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1658 23.2018V25.6673C14.1658 26.0077 14.4417 26.2836 14.7821 26.2836H17.2475C17.5879 26.2836 17.8639 26.0077 17.8639 25.6673V23.2018H19.9413L16.0153 19.7121L12.0893 23.2018H14.1658ZM12.0893 23.8182C11.5225 23.8182 11.2562 23.1177 11.6798 22.7412L15.6058 19.2514C15.8393 19.0438 16.1912 19.0438 16.4248 19.2514L20.3508 22.7412C20.7744 23.1177 20.508 23.8182 19.9413 23.8182H18.4802V25.6673C18.4802 26.3481 17.9283 26.9 17.2475 26.9H14.7821C14.1013 26.9 13.5494 26.3481 13.5494 25.6673V23.8182H12.0893ZM14.1658 29.9817C13.8254 29.9817 13.5494 30.2577 13.5494 30.5981C13.5494 30.9385 13.8254 31.2144 14.1658 31.2144H17.8639C18.2043 31.2144 18.4802 30.9385 18.4802 30.5981C18.4802 30.2577 18.2043 29.9817 17.8639 29.9817H14.1658ZM14.474 27.5163C13.9634 27.5163 13.5494 27.9302 13.5494 28.4408C13.5494 28.9514 13.9634 29.3654 14.474 29.3654H17.5557C18.0663 29.3654 18.4802 28.9514 18.4802 28.4408C18.4802 27.9302 18.0663 27.5163 17.5557 27.5163H14.474ZM14.474 28.1327C14.3038 28.1327 14.1658 28.2706 14.1658 28.4408C14.1658 28.611 14.3038 28.749 14.474 28.749H17.5557C17.7259 28.749 17.8639 28.611 17.8639 28.4408C17.8639 28.2706 17.7259 28.1327 17.5557 28.1327H14.474Z",fill:"url(#paint3_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.88568 17.3473C8.87284 17.0263 8.61551 16.7689 8.29446 16.7561L4.99029 16.6239C4.42967 16.6015 4.1331 17.2789 4.52983 17.6756L5.15844 18.3042L3.85097 19.6117C3.36957 20.0931 3.36957 20.8736 3.85097 21.355L4.2868 21.7908C4.76819 22.2722 5.54869 22.2722 6.03009 21.7908L7.33756 20.4833L7.96617 21.1119C8.36291 21.5087 9.04027 21.2121 9.01785 20.6515L8.88568 17.3473ZM2.10768 21.355C2.34838 21.1143 2.73863 21.1143 2.97932 21.355L4.2868 22.6624C4.52749 22.9031 4.52749 23.2934 4.2868 23.5341C4.0461 23.7748 3.65585 23.7748 3.41515 23.5341L2.10768 22.2266C1.86698 21.9859 1.86698 21.5957 2.10768 21.355Z",fill:"url(#paint4_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.03009 18.3042L4.2868 20.0475C4.0461 20.2882 4.0461 20.6785 4.2868 20.9192L4.72262 21.355C4.96332 21.5957 5.35357 21.5957 5.59427 21.355L7.33756 19.6117L8.40199 20.6761L8.26983 17.3719L4.96566 17.2398L6.03009 18.3042ZM8.29446 16.7561L4.99029 16.6239C4.42967 16.6015 4.1331 17.2789 4.52983 17.6756L5.15844 18.3042L3.85097 19.6117C3.36957 20.0931 3.36957 20.8736 3.85097 21.355L4.2868 21.7908C4.76819 22.2722 5.54869 22.2722 6.03009 21.7908L7.33756 20.4833L7.96617 21.1119C8.36291 21.5087 9.04027 21.2121 9.01785 20.6515L8.88568 17.3473C8.87284 17.0263 8.61551 16.7689 8.29446 16.7561ZM2.97932 21.355C2.73863 21.1143 2.34838 21.1143 2.10768 21.355C1.86698 21.5957 1.86698 21.9859 2.10768 22.2266L3.41515 23.5341C3.65585 23.7748 4.0461 23.7748 4.2868 23.5341C4.52749 23.2934 4.52749 22.9031 4.2868 22.6624L2.97932 21.355Z",fill:"url(#paint5_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.921 17.3473C22.9338 17.0263 23.1911 16.7689 23.5122 16.7561L26.8164 16.6239C27.377 16.6015 27.6735 17.2789 27.2768 17.6756L26.6482 18.3042L27.9557 19.6117C28.4371 20.0931 28.4371 20.8736 27.9557 21.355L27.5198 21.7908C27.0384 22.2722 26.2579 22.2722 25.7766 21.7908L24.4691 20.4833L23.8405 21.1119C23.4437 21.5087 22.7664 21.2121 22.7888 20.6515L22.921 17.3473ZM29.699 21.355C29.4583 21.1143 29.068 21.1143 28.8273 21.355L27.5198 22.6624C27.2791 22.9031 27.2791 23.2934 27.5198 23.5341C27.7605 23.7748 28.1508 23.7748 28.3915 23.5341L29.699 22.2266C29.9397 21.9859 29.9397 21.5957 29.699 21.355Z",fill:"url(#paint6_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.7766 18.3042L27.5198 20.0475C27.7605 20.2882 27.7605 20.6785 27.5198 20.9192L27.084 21.355C26.8433 21.5957 26.4531 21.5957 26.2124 21.355L24.4691 19.6117L23.4046 20.6761L23.5368 17.3719L26.841 17.2398L25.7766 18.3042ZM23.5122 16.7561L26.8164 16.6239C27.377 16.6015 27.6735 17.2789 27.2768 17.6756L26.6482 18.3042L27.9557 19.6117C28.4371 20.0931 28.4371 20.8736 27.9557 21.355L27.5198 21.7908C27.0384 22.2722 26.2579 22.2722 25.7766 21.7908L24.4691 20.4833L23.8405 21.1119C23.4437 21.5087 22.7664 21.2121 22.7888 20.6515L22.921 17.3473C22.9338 17.0263 23.1911 16.7689 23.5122 16.7561ZM28.8273 21.355C29.068 21.1143 29.4583 21.1143 29.699 21.355C29.9397 21.5957 29.9397 21.9859 29.699 22.2266L28.3915 23.5341C28.1508 23.7748 27.7605 23.7748 27.5198 23.5341C27.2791 23.2934 27.2791 22.9031 27.5198 22.6624L28.8273 21.355Z",fill:"url(#paint7_linear_1609_7349)"}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_1609_7349",x1:"22.4867",y1:"8.61726",x2:"9.32517",y2:"9.12524",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#5806D4"}),jsx("stop",{offset:"1",stopColor:"#BB6CED"})]}),jsxs("linearGradient",{id:"paint1_linear_1609_7349",x1:"16.0151",y1:"0.604736",x2:"16.0151",y2:"17.8625",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#BD6CED"}),jsx("stop",{offset:"1",stopColor:"#5A08DD"})]}),jsxs("linearGradient",{id:"paint2_linear_1609_7349",x1:"20.1752",y1:"20.7365",x2:"11.8545",y2:"20.7365",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#28303B"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint3_linear_1609_7349",x1:"16.0069",y1:"19.4285",x2:"16.0069",y2:"30.9792",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#636D85"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint4_linear_1609_7349",x1:"11.0242",y1:"20.3888",x2:"5.14058",y2:"14.5052",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint5_linear_1609_7349",x1:"8.7345",y1:"16.8618",x2:"2.74525",y2:"22.8511",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#636D85"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint6_linear_1609_7349",x1:"20.7824",y1:"20.3888",x2:"26.6661",y2:"14.5052",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint7_linear_1609_7349",x1:"23.2796",y1:"16.8618",x2:"29.2688",y2:"22.8511",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#636D85",stopOpacity:"0.411765"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]})]})]});var zp=e=>jsxs(d,{...e,children:[jsxs("g",{id:"Portfolio",children:[jsx("path",{id:"Vector",d:"M8.9688 13.3124C6.3545 14.0269 4.5 16.3001 4.5 18.9999V20.9999C4.5 21.5522 4.9477 21.9999 5.5 21.9999H19.5C20.0523 21.9999 20.5 21.5522 20.5 20.9999V18.9999C20.5 16.3001 18.6455 14.0269 16.0312 13.3124C15.8071 13.2511 15.5869 13.2794 15.375 13.3749C14.4595 13.7875 13.4849 13.9999 12.5 13.9999C11.5151 13.9999 10.5405 13.7875 9.625 13.3749C9.4131 13.2794 9.1929 13.2511 8.9688 13.3124Z",fill:"white",fillOpacity:"0.36"}),jsx("path",{id:"Vector_2",d:"M12.5 2C9.7386 2 7.5 4.2386 7.5 7C7.5 9.7614 9.7386 12 12.5 12C15.2614 12 17.5 9.7614 17.5 7C17.5 4.2386 15.2614 2 12.5 2Z",fill:"url(#paint0_linear_148_26239)"})]}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_148_26239",x1:"17.5",y1:"7",x2:"7.5",y2:"7",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var Dp=e=>jsx(d,{...e,children:jsxs("g",{id:"Portfolio",children:[jsx("path",{id:"Vector",d:"M8.9688 13.3124C6.3545 14.0269 4.5 16.3001 4.5 18.9999V20.9999C4.5 21.5522 4.9477 21.9999 5.5 21.9999H19.5C20.0523 21.9999 20.5 21.5522 20.5 20.9999V18.9999C20.5 16.3001 18.6455 14.0269 16.0312 13.3124C15.8071 13.2511 15.5869 13.2794 15.375 13.3749C14.4595 13.7875 13.4849 13.9999 12.5 13.9999C11.5151 13.9999 10.5405 13.7875 9.625 13.3749C9.4131 13.2794 9.1929 13.2511 8.9688 13.3124Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{id:"Vector_2",d:"M12.5 2C9.7386 2 7.5 4.2386 7.5 7C7.5 9.7614 9.7386 12 12.5 12C15.2614 12 17.5 9.7614 17.5 7C17.5 4.2386 15.2614 2 12.5 2Z",fill:"white",fillOpacity:"0.36"})]})});var Bp=e=>jsxs(d,{...e,children:[jsxs("g",{id:"Trading",children:[jsx("path",{id:"Vector 646 (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 7C2.5 6.44772 2.94772 6 3.5 6H5.66905C7.77663 6 9.72966 7.10579 10.814 8.91303L13.901 14.058C14.6239 15.2628 15.9259 16 17.3309 16H19.5V14L22.5 17L19.5 20V18H17.3309C15.2234 18 13.2703 16.8942 12.186 15.087L9.09902 9.94202C8.37613 8.7372 7.0741 8 5.66905 8H3.5C2.94772 8 2.5 7.55228 2.5 7Z",fill:"url(#paint0_linear_134_17004)"}),jsx("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18C2.94772 18 2.5 17.5523 2.5 17C2.5 16.4477 2.94772 16 3.5 16H5.66905C7.0741 16 8.37613 15.2628 9.09902 14.058L10.3338 12L11.5 13.9436L10.814 15.087C9.72966 16.8942 7.77663 18 5.66905 18H3.5ZM12.6662 12L13.901 9.94202C14.6239 8.7372 15.9259 8 17.3309 8H19.5V10L22.5 7L19.5 4V6H17.3309C15.2234 6 13.2703 7.10579 12.186 8.91303L11.5 10.0563L12.6662 12Z",fill:"white",fillOpacity:"0.36"})]}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_134_17004",x1:"22.5",y1:"13",x2:"2.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var Lp=e=>jsx(d,{...e,children:jsxs("g",{id:"Trading",children:[jsx("path",{id:"Vector 646 (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 7C2.5 6.44772 2.94772 6 3.5 6H5.66905C7.77663 6 9.72967 7.10579 10.814 8.91303L13.901 14.058C14.6239 15.2628 15.9259 16 17.331 16H19.5V14L22.5 17L19.5 20V18H17.331C15.2234 18 13.2703 16.8942 12.186 15.087L9.09902 9.94202C8.37613 8.7372 7.0741 8 5.66905 8H3.5C2.94772 8 2.5 7.55228 2.5 7Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18C2.94772 18 2.5 17.5523 2.5 17C2.5 16.4477 2.94772 16 3.5 16H5.66905C7.0741 16 8.37613 15.2628 9.09902 14.058L10.3338 12L11.5 13.9437L10.814 15.087C9.72967 16.8942 7.77663 18 5.66905 18H3.5ZM12.6662 12L13.901 9.94202C14.6239 8.7372 15.9259 8 17.331 8H19.5V10L22.5 7L19.5 4V6H17.331C15.2234 6 13.2703 7.10579 12.186 8.91303L11.5 10.0563L12.6662 12Z",fill:"white",fillOpacity:"0.36"})]})});var Ep=e=>jsxs(d,{...e,children:[jsx("path",{d:"M18 11H21C22.103 11 23 11.897 23 13V17C23 18.103 22.103 19 21 19H18V17V11Z",fill:"white",fillOpacity:"0.36"}),jsx("path",{d:"M6 9V17V19H3C1.897 19 1 18.103 1 17V11C1 9.897 1.897 9 3 9H6Z",fill:"white",fillOpacity:"0.36"}),jsx("path",{d:"M16 7V17V19H8V17V7C8 5.897 8.897 5 10 5H14C15.103 5 16 5.897 16 7Z",fill:"url(#paint0_linear_999_8196)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_999_8196",x1:"16",y1:"12",x2:"8",y2:"12",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var Fp=e=>jsxs(d,{...e,children:[jsx("path",{d:"M18 11H21C22.103 11 23 11.897 23 13V17C23 18.103 22.103 19 21 19H18V17V11Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{d:"M6 9V17V19H3C1.897 19 1 18.103 1 17V11C1 9.897 1.897 9 3 9H6Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{d:"M16 7V17V19H8V17V7C8 5.897 8.897 5 10 5H14C15.103 5 16 5.897 16 7Z",fill:"white",fillOpacity:"0.36"})]});var Op=e=>jsxs(d,{...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 8C10.6454 8 9.75 8.89543 9.75 10V18C9.75 19.1046 10.6454 20 11.75 20H13.75C14.8546 20 15.75 19.1046 15.75 18V10C15.75 8.89543 14.8546 8 13.75 8H11.75ZM4.75 12C3.64543 12 2.75 12.8954 2.75 14V18C2.75 19.1046 3.64543 20 4.75 20H6.75C7.85457 20 8.75 19.1046 8.75 18V14C8.75 12.8954 7.85457 12 6.75 12H4.75Z",fill:"white",fillOpacity:"0.16"}),jsx("path",{d:"M16.75 6C16.75 4.89543 17.6454 4 18.75 4H20.75C21.8546 4 22.75 4.89543 22.75 6V18C22.75 19.1046 21.8546 20 20.75 20H18.75C17.6454 20 16.75 19.1046 16.75 18V6Z",fill:"url(#paint0_linear_2097_10887)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_2097_10887",x1:"22.75",y1:"12",x2:"16.75",y2:"12",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var Hp=e=>jsxs(d,{...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 8a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-7 4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z",fill:"#fff",fillOpacity:".12"}),jsx("path",{d:"M16.5 6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z",fill:"#fff",fillOpacity:".36"})]});var Wp=d;Wp.combine=La;var Jn=e=>["date","address","symbol","status","txId"].includes(e),Xp="base-quote",jp="yyyy-MM-dd HH:mm:ss",Vo=ze__default.forwardRef((e,o)=>{let{rule:t,children:r,prefix:i,symbolElement:n,formatString:a,range:s,capitalize:l,copyable:u,copyIconSize:c,onCopy:m,showIcon:g,iconSize:p="xs",copyIconTestid:f,isIcon:b,...T}=e,x=useMemo(()=>t==="symbol"&&g?jsx(Ne,{symbol:r,size:p}):i,[i,g,t,p,r]),S=useMemo(()=>{if(typeof e.suffix<"u")return e.suffix;if(u)return jsx("button",{className:"oui-cursor-pointer oui-text-sm","data-testid":f,onClick:D=>{navigator.clipboard.writeText(r),m?.(D);},children:jsx(Pt,{size:c??12,color:"white"})})},[e.suffix,u,r]),R=useMemo(()=>{if(typeof r>"u")return "--";if(typeof t>"u")return r;if(t==="address"||t==="txId")return Tr(r,s??(t==="address"?[6,4]:[6,6]));if(t==="date"){let D=new Date(r);return isValid(D)?format(new Date(r),a??jp):"Error: Invalid Date"}if(t==="symbol"){let D=r.split("_"),y=D[0],A=D[1],j=D[2];return (a??Xp).replace("type",y).replace("base",A).replace("quote",j)}return r},[r,t,a,s,n]),v=useMemo(()=>typeof S>"u"&&typeof x>"u"?R:jsxs("span",{className:"oui-flex oui-items-center oui-gap-1",children:[x,R,S]}),[R,S,x]);return jsx(ee,{...T,ref:o,children:v})});Vo.displayName="FormattedText";var es=h({base:"oui-text-transparent oui-bg-clip-text",variants:{color:{primary:"oui-gradient-primary",brand:"oui-gradient-brand",success:"oui-gradient-success",warning:"oui-gradient-warning",danger:"oui-gradient-danger",neutral:"oui-gradient-neutral",inherit:"oui-text-inherit"}}}),Xr=ze__default.forwardRef((e,o)=>{let{color:t,className:r,angle:i,...n}=e,a=mt({angle:i});return jsx(ee,{...n,ref:o,className:es({color:t,className:r}),style:a})});Xr.displayName="GradientText";var Q=ee;Q.formatted=Vo;Q.numeral=qe;Q.gradient=Xr;var $r=forwardRef((e,o)=>{let{clearable:t,onClean:r,fixClassName:i,helpText:n,loading:a,inputMode:s,containerClassName:l,onValueChange:u,onChange:c,id:m,formatters:g,value:p,...f}=e,[b,T]=useState(null),x=useRef(null),S=useRef(null),R=useRef(false),v=useMemo(()=>g??[],[g]);useEffect(()=>{o&&(typeof o=="function"?o(x.current):o.current=x.current);},[x,o]);let D=useCallback(w=>{if(!Array.isArray(v)||v.length===0)return w;if(w==null)return "";let V=0;for(;V<v.length;)w=v[V].onRenderBefore(w,{isFocused:R.current}),V++;return w},[v]),y=useCallback((w,V)=>{if(!Array.isArray(v)||v.length===0)return w;if(w==null)return "";let O=v.length-1;for(;O>-1;)w=v[O].onSendBefore(w,{isFocused:R.current,originValue:V}),O--;return w},[v]),A=useMemo(()=>typeof p>"u"?p:D(p),[p]);return useEffect(()=>{if(document.activeElement!==x.current)return;let w=`${A}`.length,V=S.current?.length||0,O=b?b+(w-V):0;x.current?.setSelectionRange(O,O);},[A]),jsx("input",{type:"text",...f,ref:x,onBlur:w=>{R.current=false,f.onBlur?.(w);},onFocus:w=>{R.current=true,f.onFocus?.(w);},onChange:w=>{if(w.target.value.length<e.value?.length){let V=w.target.selectionStart,O=findLongestCommonSubString(`${e.value}`,w.target.value);O>-1&&`${e.value}`.at(O)===","&&(w.target.value=`${w.target.value.substring(0,O-1)}${w.target.value.substring(O)}`,w.target.selectionStart=V?V-1:0);}if(typeof c=="function"&&c(w),typeof u=="function"){let V=w.target.value;V=y(V,String(e.value)),u(V);}S.current=w.target.value,T(w.target.selectionStart);},value:A,id:m})});$r.displayName="BaseInput";var ro=e=>{let{asChild:o,as:t="label"}=e;return jsx(o?Slot:"label",{htmlFor:e.name,className:e.className,children:e.children})};var is=e=>{let{prefix:o,id:t}=e;return typeof o>"u"?null:typeof o=="string"?jsx(ro,{name:t,className:e.className,children:o}):o};var as=e=>{let{suffix:o,id:t}=e;return typeof o>"u"?null:typeof o=="string"?jsx(ro,{name:t,className:e.className,children:o}):o};var ss=h({slots:{input:["oui-w-full oui-bg-transparent","oui-bg-transparent","oui-flex-1","focus-visible:oui-outline-none","oui-flex","placeholder:oui-text-base-contrast-20","placeholder:oui-text-xs","oui-tabular-nums","oui-text-white","autofill:oui-bg-transparent","oui-input-input","disabled:oui-cursor-not-allowed","oui-peer"],box:["oui-rounded","oui-bg-base-6","oui-flex","oui-items-center","oui-outline","oui-outline-offset-0","oui-outline-1","oui-outline-transparent","focus-within:oui-outline-primary-light","oui-input-root"],additional:["oui-h-full oui-flex oui-flex-col oui-justify-center oui-px-2 oui-text-base-contrast"],closeButton:["oui-cursor-pointer","oui-invisible","peer-focus:oui-visible"]},variants:{size:{xs:{input:["oui-h-6","oui-text-2xs","placeholder:oui-text-2xs"],box:["oui-h-6"],additional:["oui-text-2xs"]},sm:{input:["oui-h-7","oui-text-2xs","placeholder:oui-text-2xs"],box:["oui-h-7"],additional:["oui-text-2xs"]},md:{input:["oui-h-8","oui-text-2xs","placeholder:oui-text-2xs"],box:["oui-h-8"],additional:["oui-text-2xs"]},lg:{input:["oui-h-10","oui-text-sm","placeholder:oui-text-sm"],box:["oui-h-10 oui-rounded-md"],additional:["oui-text-sm"]},xl:{input:["oui-h-12","oui-text-base","placeholder:oui-text-base"],box:["oui-h-12 oui-rounded-md"],additional:["oui-text-sm"]}},color:{success:{box:["oui-outline-success","focus-within:oui-outline-success"],input:["oui-text-success"]},danger:{box:["oui-outline-danger","focus-within:oui-outline-danger"],input:["oui-text-danger"]},warning:{box:["oui-outline-warning-darken","focus-within:oui-outline-warning-darken"],input:["oui-text-warning-darken"]},default:{box:["oui-outline-transparent"]}},disabled:{true:{input:["oui-cursor-not-allowed","oui-text-base-contrast-20"],box:["oui-bg-base-5"]}},pl:{true:{box:"oui-pl-3"},false:{box:"oui-pl-0"}},pr:{true:{box:"oui-pr-3"},false:{box:"oui-pr-0"}},fullWidth:{true:{box:"oui-w-full"}},align:{center:{input:"oui-text-center"},left:{input:"oui-text-left"},right:{input:"oui-text-right"}}},defaultVariants:{size:"lg"}},{responsiveVariants:["md","lg"]}),he=ze__default.forwardRef((e,o)=>{let{size:t,disabled:r,color:i,suffix:n,prefix:a,id:s,pl:l,pr:u,fullWidth:c,className:m,classNames:g,onClear:p,align:f,...b}=e,{input:T,box:x,additional:S,closeButton:R}=ss({size:t,disabled:r,color:i,fullWidth:c,align:f,pl:typeof a>"u"||l,pr:typeof n>"u"||u}),v=useId(),D=typeof p<"u"?jsx(ls,{className:R({className:g?.clearButton}),onClick:()=>{p?.();},value:b.value}):n;return jsxs("div",{className:x({className:cnBase(m,g?.root)}),children:[jsx(is,{id:s||v,prefix:a,className:S({className:cnBase(g?.additional,g?.prefix)})}),jsx($r,{...b,id:s||v,disabled:r,ref:o,className:T({align:f,className:g?.input})}),jsx(as,{id:s||v,suffix:D,className:S({className:cnBase(g?.additional,g?.suffix)})})]})}),ls=ze__default.forwardRef((e,o)=>jsx("button",{onMouseDown:t=>{t.preventDefault(),e.onClick();},ref:o,className:e.className,children:jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8 1.302a6.667 6.667 0 1 0 0 13.333A6.667 6.667 0 0 0 8 1.302m-2 4c.17 0 .349.057.479.187l1.52 1.521L9.52 5.49a.68.68 0 0 1 .48-.188c.17 0 .348.057.479.187.26.261.26.698 0 .96l-1.52 1.52 1.52 1.52c.26.261.26.698 0 .96a.687.687 0 0 1-.959 0L8 8.926l-1.521 1.521a.686.686 0 0 1-.959 0 .686.686 0 0 1 0-.959l1.521-1.52-1.52-1.52a.686.686 0 0 1 0-.96A.68.68 0 0 1 6 5.302",fill:"#fff",fillOpacity:".2"})})}));ls.displayName="ClearButton";he.displayName="Input";var ld=h({base:["oui-z-50","oui-w-72","oui-rounded-md","oui-border","oui-border-line-6","oui-p-4","oui-bg-base-8","oui-shadow-md","oui-outline-none","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"]}),Tt=q.Root,ps=q.Trigger,Kr=q.Anchor,Bo=ze.forwardRef(({className:e,align:o="center",sideOffset:t=4,...r},i)=>jsx(q.Portal,{children:jsx(q.Content,{ref:i,align:o,sideOffset:t,className:ld({className:e}),...r})}));Bo.displayName=q.Content.displayName;var Lo=e=>{let{arrow:o,content:t,contentProps:r,...i}=e;return jsxs(Tt,{...i,children:[jsx(ps,{asChild:true,children:e.children}),jsxs(Bo,{...r,children:[t,o&&jsx(q.Arrow,{className:"oui-fill-base-8",width:10,height:6})]})]})};var Z=h({slots:{trigger:["oui-flex","oui-group","oui-w-full","oui-items-center","oui-justify-between","oui-whitespace-nowrap","oui-rounded-md","oui-px-2","oui-space-x-2","oui-shadow-sm","oui-text-base-contrast-54","placeholder:oui-text-base-contrast-54","data-[state=open]:oui-text-base-contrast-80","focus:oui-outline-none","focus:oui-ring-1","focus:oui-ring-ring","disabled:oui-cursor-not-allowed","disabled:oui-opacity-50","[&>span]:oui-line-clamp-1"],scrollUpButton:"oui-flex oui-cursor-default oui-items-center oui-justify-center oui-py-1",scrollDownButton:"oui-flex oui-cursor-default oui-items-center oui-justify-center oui-py-1",content:["oui-relative","oui-z-50","oui-max-h-96","oui-overflow-hidden","oui-rounded-md","oui-bg-base-8","oui-text-base-contrast","oui-shadow-md","data-[state=open]:oui-animate-in","data-[state=closed]:aoui-nimate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"],viewport:["oui-p-1"],label:"oui-px-2 oui-py-1.5 oui-text-sm oui-font-semibold",item:["oui-option-item","oui-relative","oui-flex","oui-cursor-default","oui-select-none","oui-items-center","oui-rounded-sm","oui-py-1","oui-pl-2","oui-pr-8","oui-text-sm","oui-text-base-contrast-54","oui-outline-none","hover:oui-bg-base-6","hover:oui-rounded","focus:oui-bg-accent","focus:oui-text-accent-foreground","data-[state=checked]:oui-bg-base-5","data-[state=checked]:oui-text-base-contrast-80","data-[disabled]:oui-pointer-events-none","data-[disabled]:oui-opacity-50"],separator:"-oui-mx-1 oui-my-1 oui-h-px oui-bg-muted",icon:""},variants:{variant:{outlined:{trigger:["oui-border oui-border-line-6 oui-bg-line-4"]},contained:{trigger:["oui-bg-base-4"]},text:{trigger:[]}},position:{popper:{content:["data-[side=bottom]:oui-translate-y-1","data-[side=left]:-oui-translate-x-1","data-[side=right]:oui-translate-x-1","data-[side=top]:-oui-translate-y-1"],viewport:"oui-h-[var(--radix-select-trigger-height)] oui-w-full oui-min-w-[var(--radix-select-trigger-width)]"},"item-aligned":{content:"",viewport:""}},size:{xs:{trigger:["oui-h-6","oui-text-2xs"],item:["oui-h-6","oui-text-2xs"],icon:["oui-w-3","oui-h-3"]},sm:{trigger:["oui-h-7","oui-text-2xs"],item:["oui-h-7","oui-text-2xs"],icon:["oui-w-4","oui-h-4"]},md:{trigger:["oui-h-8","oui-text-xs"],item:["oui-h-7","oui-text-xs"],icon:["oui-w-4","oui-h-4"]},lg:{trigger:["oui-h-10","oui-text-sm","oui-px-3"],item:["oui-h-8","oui-text-2xs"],icon:["oui-w-5","oui-h-5"]},xl:{trigger:["oui-h-12","oui-text-2xs","oui-px-3"],item:["oui-h-12","oui-text-2xs"],icon:["oui-w-6","oui-h-6"]}},error:{true:{trigger:["oui-border-danger","focus:oui-ring-danger","focus:oui-ring-ring-danger"]}}},defaultVariants:{size:"lg",variant:"outlined"}},{responsiveVariants:["md","lg"]}),Qr=P.Root,Jr=P.Group,ei=P.Value,Mt=ze.forwardRef(({className:e,children:o,size:t,error:r,variant:i,asChild:n,showCaret:a=true,...s},l)=>{let{trigger:u}=Z({size:t,error:r,variant:i});return n?jsx(P.Trigger,{ref:l,className:u({className:e}),asChild:n,...s,children:o}):jsxs(P.Trigger,{ref:l,className:u({className:e}),asChild:n,...s,children:[o,jsx(Fragment,{children:a&&jsx(P.Icon,{asChild:true,className:"oui-transition-transform group-data-[state=open]:oui-rotate-180 group-data-[state=closed]:oui-rotate-0",children:jsx(oe,{size:12,className:"oui-text-inherit",opacity:1})})})]})});Mt.displayName=P.Trigger.displayName;var ds=ze.forwardRef(({className:e,...o},t)=>{let{scrollUpButton:r}=Z();return jsx(P.ScrollUpButton,{ref:t,className:r({className:e}),...o,children:jsx(yt,{size:16,color:"white"})})});ds.displayName=P.ScrollUpButton.displayName;var ms=ze.forwardRef(({className:e,...o},t)=>{let{scrollDownButton:r}=Z();return jsx(P.ScrollDownButton,{ref:t,className:r({className:e}),...o,children:jsx(oe,{size:16,color:"white"})})});ms.displayName=P.ScrollDownButton.displayName;var zt=ze.forwardRef(({className:e,children:o,position:t="popper",...r},i)=>{let{content:n,viewport:a}=Z({position:t,className:e});return jsx(P.Portal,{children:jsx(P.Content,{ref:i,className:n({className:e}),position:t,...r,children:jsx(P.Viewport,{className:a(),children:o})})})});zt.displayName=P.Content.displayName;var gs=ze.forwardRef(({className:e,...o},t)=>{let{label:r}=Z();return jsx(P.Label,{ref:t,className:r({className:e}),...o})});gs.displayName=P.Label.displayName;var _o=ze.forwardRef(({className:e,children:o,size:t,...r},i)=>{let{item:n}=Z({size:t});return jsx(P.Item,{ref:i,className:n({className:e}),...r,children:jsx(P.ItemText,{children:o})})});_o.displayName=P.Item.displayName;var fs=ze.forwardRef(({className:e,...o},t)=>{let{separator:r}=Z();return jsx(P.Separator,{ref:t,className:r({className:e}),...o})});fs.displayName=P.Separator.displayName;var oi=h({slots:{root:"oui-relative oui-overflow-hidden oui-scroll-area-root",viewport:"oui-h-full oui-w-full oui-rounded-[inherit]",bar:["oui-flex","oui-touch-none","oui-select-none","oui-transition-colors"],tumb:"oui-relative oui-flex-1 oui-rounded-full oui-bg-base-10"},variants:{orientation:{vertical:{bar:"oui-h-full oui-w-2 oui-border-l oui-border-l-transparent oui-p-[1px]"},horizontal:{bar:"oui-h-2 oui-flex-col oui-border-t oui-border-t-transparent oui-p-[1px]"}}}}),io=ze__default.forwardRef(({className:e,children:o,orientation:t="vertical",...r},i)=>{let{root:n,viewport:a,bar:s}=oi({orientation:t});return jsxs(J.Root,{ref:i,className:n({className:e}),...r,children:[jsx(J.Viewport,{className:a(),children:o}),jsx(ti,{orientation:t}),jsx(J.Corner,{})]})});io.displayName=J.Root.displayName;var ti=ze__default.forwardRef(({className:e,orientation:o="vertical",...t},r)=>{let{bar:i,tumb:n}=oi({className:e,orientation:o});return jsx(J.ScrollAreaScrollbar,{ref:r,orientation:o,className:i({className:e}),...t,children:jsx(J.ScrollAreaThumb,{className:n()})})});ti.displayName=J.ScrollAreaScrollbar.displayName;var Vt=e=>{let{options:o,variant:t,valueFormatter:r,...i}=e,[n,a]=useState(""),[s,l]=useState(e.value??""),{trigger:u}=Z({size:e.size,variant:t}),[c,m]=useState(()=>typeof e.value>"u"?-1:o.findIndex(x=>x.value===e.value)),[g,p]=useState(false),f=useRef(null),b=()=>{p(true);},T=n?o.filter(x=>{if(x.value.toLowerCase().includes(n.toLowerCase()))return true}):o;return jsxs(Tt,{open:g,children:[jsx(Kr,{children:jsx(Fo,{ref:f,size:e.size,autoComplete:"off",onFocus:b,onBlur:()=>{p(false);},placeholder:e.placeholder??"All",value:g?n:typeof r=="function"?r(s??"",{placeholder:e.placeholder}):s,onValueChange:x=>{a(x);},classNames:{root:u({className:"oui-w-24 oui-peer"}),input:"oui-text-base-contrast-54 oui-font-semibold"},"data-state":g?"open":"closed",suffix:jsx(P.Icon,{onMouseDown:x=>{x.preventDefault(),g?f.current?.blur():f.current?.focus();},asChild:true,className:"oui-transition-transform peer-data-[state=open]:oui-rotate-180 peer-data-[state=closed]:oui-rotate-0 oui-mx-2",children:jsx(oe,{size:12,className:"oui-text-inherit"})})})}),jsx(Bo,{onOpenAutoFocus:x=>{x.preventDefault(),a("");},className:"oui-w-[var(_--radix-popover-trigger-width)] oui-p-1",children:jsx(io,{className:"oui-h-[200px]",children:T.map((x,S)=>jsx(md,{option:x,size:e.size,activated:c===S,onClick:R=>{l(R.value),m(S),e.onValueChange?.(R.value),f.current?.blur();}},S))})})]})},md=e=>{let{item:o}=Z({size:e.size});return jsx("button",{className:o({className:`oui-text-base-contrast-54 oui-w-full ${e.activated?"oui-bg-base-7":""}`}),onMouseDown:t=>{t.preventDefault(),e.onClick(e.option);},children:e.option.label})};var Bt=e=>{let{children:o,size:t,error:r,placeholder:i,variant:n,contentProps:a,valueFormatter:s,showCaret:l,maxHeight:u,testid:c,classNames:m,...g}=e;return jsxs(Qr,{...g,children:[jsx(Mt,{size:t,error:r,variant:n,showCaret:l,className:cnBase("oui-cursor-pointer oui-font-semibold focus:oui-ring-transparent",m?.trigger),"data-testid":c,children:typeof s=="function"?s(e.value||e.defaultValue,{placeholder:i}):jsx(ei,{placeholder:i})}),jsx(zt,{...a,children:jsx(io,{children:jsx("div",{style:{maxHeight:u},children:o})})})]})};var hd=(e,o)=>jsxs(_o,{value:e.value,className:cnBase("oui-relative oui-cursor-pointer"),"data-testid":`oui-testid-selectItem-${e.value.toLowerCase().replace(" ","_")}`,children:[e.label,o==e.value&&jsx(W,{width:4,height:4,gradient:"brand",r:"full",className:"oui-absolute oui-right-2 oui-top-1/2 -oui-translate-y-1/2"})]},e.value),ao=e=>{let{children:o,options:t,optionRenderer:r=hd,currentValue:i,...n}=e;return jsx(Bt,{...n,children:jsx(Jr,{children:t.map((a,s)=>ze__default.cloneElement(r(a,i),{size:e.size,key:s,index:s}))})})};var hs=e=>{let{tokens:o,showIcon:t=true,...r}=e,{icon:i}=Z(),n=useMemo(()=>o.map(u=>({...u,label:u.name,value:u.name})),[o]),a=n.length>1;return jsx(ao,{...r,showCaret:a,options:n,valueFormatter:t?u=>typeof e.valueFormatter=="function"?e.valueFormatter(u,{}):jsxs(z,{gapX:1,children:[jsx(Ne,{name:u,className:i({size:e.size})}),jsx(Q,{weight:"semibold",intensity:54,children:u})]}):void 0,optionRenderer:u=>typeof e.optionRenderer=="function"?e.optionRenderer(u):jsx(kd,{...u}),maxHeight:254})},kd=e=>{let{size:o,label:t,value:r}=e,{item:i,icon:n}=Z();return jsxs(SelectItem,{value:r,className:i({size:o,className:"oui-space-x-1 oui-flex oui-flex-row oui-items-center"}),children:[jsx(Ne,{name:r,className:n({size:o})}),jsx(SelectItemText,{children:t}),jsx(ItemIndicator,{})]})};var Ve=Bt;Ve.options=ao;Ve.combine=Vt;Ve.tokens=hs;var ai=forwardRef((e,o)=>{let{tokens:t,...r}=e,[i,n]=useState(t[0]),a=useMemo(()=>e.tokens.map(l=>({name:l})),[e.tokens]),s=useRef(null);return jsx(he,{ref:l=>{s.current=l,o&&(typeof o=="function"?o(l):o.current=l);},autoComplete:"off",...r,suffix:jsx("div",{className:"oui-max-w-fit",children:jsx(Ve.tokens,{disabled:r.disabled,variant:"text",tokens:a,value:i,size:r.size,onValueChange:l=>n(l),showIcon:r.align!=="right",contentProps:{align:"end",onCloseAutoFocus:l=>{l.preventDefault(),s.current?.focus();}}})})})});ai.displayName="QuantityInput";var Md=Y.Provider,si=Y.Root,li=Y.Trigger,Lt=Y.Portal,zd=h({base:["oui-z-50","oui-overflow-hidden","oui-rounded-md","oui-bg-base-8","oui-px-2","oui-py-1","oui-text-xs","oui-text-base-contrast","oui-animate-in","oui-fade-in-0","oui-zoom-in-95","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=closed]:oui-zoom-out-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"]}),Ho=ze.forwardRef(({className:e,sideOffset:o=4,...t},r)=>jsx(Y.Content,{ref:r,sideOffset:o,className:zd({className:e}),...t}));Ho.displayName=Y.Content.displayName;var _t=e=>{let{className:o,...t}=e;return jsx(Y.Arrow,{width:12,height:6,...t,className:cn("oui-fill-base-8",o)({twMerge:true})})},ys=ze.forwardRef((e,o)=>{let{children:t,content:r,defaultOpen:i,open:n,onOpenChange:a,delayDuration:s,disableHoverableContent:l,arrow:u,...c}=e,{className:m,...g}=u||{};return jsxs(Y.Root,{defaultOpen:i,open:n,onOpenChange:a,delayDuration:s,disableHoverableContent:l,children:[jsx(Y.Trigger,{asChild:true,children:t}),jsx(Lt,{children:jsxs(Ho,{ref:o,...c,children:[r,jsx(_t,{...u})]})})]})});ys.displayName="Tooltip";var ui=forwardRef((e,o)=>{let{tooltip:t,tooltipProps:r,triggerClassName:i,...n}=e,[a,s]=useState(false);return useEffect(()=>{s(typeof t<"u"&&t!==""&&t!==null);},[t]),jsxs(si,{open:a,children:[jsx(li,{asChild:true,children:jsx("div",{className:i,children:jsx(he,{...n,ref:o})})}),jsx(Lt,{children:jsxs(Ho,{...r?.content,children:[e.tooltip,jsx(_t,{...r?.arrow})]})})]})});ui.displayName="InputWithTooltip";var ci={};yr(ci,{createRegexInputFormatter:()=>Ss,currencyFormatter:()=>Ps,decimalPointFormatter:()=>Ts,dpFormatter:()=>Rs,identifierFormatter:()=>Ns,numberFormatter:()=>ks,rangeFormatter:()=>Is});var Ps={onRenderBefore:function(e,o){return e==null?"":commify(e)},onSendBefore:function(e,o){return e==null?"":(e=e.replace(/,/g,""),e)}};var ks={onRenderBefore:function(e,o){return ""+e},onSendBefore:function(e,o){return e.startsWith(".")?`0${e}`:e==="00"?"0":(e=e.replace(/[^\d.]/g,"").replace(".","$#$").replace(/\./g,"").replace("$#$","."),e)}};var Ss=(e,o)=>({onRenderBefore:(t,r)=>typeof e=="function"?e(String(t)):`${t}`.replace(e,""),onSendBefore:(t,r)=>o?.(t,r)||t});var Rs=(e,o)=>{let t=(r,i)=>(typeof r=="number"&&(r=r.toString()),!r||r.endsWith(".")?r:_d(r,e));return {onRenderBefore:t,onSendBefore:t}};function _d(e,o){let t=e.indexOf(".");if(t===-1||o<=0)return e.split(".")[0];let r=t+o+1;return e.substring(0,r)}var Is=e=>{let o=(t,r)=>{if(typeof t=="number"&&(t=t.toString()),!t||t.endsWith("."))return t;let i=e.max??Number(t),n=e.min??Number(t),a=Number(t);return `${a<n?n:a>i?i:a}`};return {onRenderBefore:o,onSendBefore:o}};var Ns=()=>{let e="+",o="-";return {onRenderBefore:(t,r)=>{if(typeof t=="number"&&(t=t.toString()),!t||t.endsWith("."))return t;let i=Number(t);if(i){if(i>0&&!t.startsWith(e))return e+t;if(i<0&&!t.startsWith(o))return o+t}return t},onSendBefore:(t,r)=>{if(typeof t=="number"&&(t=t.toString()),!t||t.endsWith("."))return t;let i=Number(t);return i&&i>0?t.replace(e,""):t}}};var Ts={onRenderBefore:function(e,o){return String(e)},onSendBefore:function(e,o){return e==null?"":Fd(e,o?.originValue)}},Fd=(e,o)=>{if(e==null)return "";if(e.endsWith(","))return e.slice(0,-1)+".";if(e.startsWith(","))return e.slice(0,1)+".";let t=commify(o);return o&&e.length>t.length&&e.length-t.length===1?Ad(e,t):e},Ad=(e,o)=>{if(e.length<=o.length)return e;for(let t=0;t<o.length;t++)if(e[t]!==o[t]){let r=e[t],i=r===","?".":r;return e.slice(0,t)+i+e.slice(t+1)}return e};var Wd=tv({base:["oui-text-xs","oui-text-base-contrast-36","oui-mt-1","oui-list-disc","oui-list-inside","oui-list-item"],variants:{color:{success:["oui-text-success"],danger:["oui-text-danger"],warning:["oui-text-warning-darken"],default:["oui-text-base-contrast-54"]}}}),Et=ze__default.forwardRef((e,o)=>{let{className:t,asChild:r,color:i,...n}=e;return jsx(r?Slot:"div",{ref:o,className:Wd({className:t,color:i}),...n})});Et.displayName="InputHelpText";var Yd=h({slots:{root:"oui-flex",label:"oui-text-sm oui-font-semibold",input:[]},variants:{direction:{column:{root:"oui-flex-col oui-space-y-1"},row:{root:"oui-flex-row oui-space-x-3 "}}},defaultVariants:{direction:"column"}}),pi=ze__default.forwardRef((e,o)=>{let{label:t,helpText:r,direction:i,className:n,...a}=e,{root:s,label:l}=Yd({direction:i});return jsxs("div",{className:s({className:n,direction:i}),children:[jsx(Ds,{className:cnBase(e.classNames?.label)||l(),children:t}),jsxs("div",{children:[jsx(he,{...a}),(r?.length||0>0)&&jsx(Et,{color:a.color,children:r})]})]})});pi.displayName="TextField";var Ds=ze__default.forwardRef((e,o)=>{let{asChild:t=false,className:r,...i}=e;return jsx(t?Slot:"label",{className:r,ref:o,...i,children:e.children})});Ds.displayName="InputLabel";var Fo=he;Fo.token=ai;Fo.tooltip=ui;var jd=tv({base:["peer","oui-h-3","oui-w-3","oui-shrink-0","oui-rounded-sm","oui-border","focus-visible:oui-outline-none","disabled:oui-cursor-not-allowed","disabled:oui-opacity-50"],variants:{color:{primary:"oui-border-primary data-[state=checked]:oui-text-base-contrast",white:"oui-border-base-contrast-54 "},variant:{checkBox:"data-[state=checked]:oui-border-none",radio:"oui-rounded-full data-[state=checked]:oui-border-base-contrast-20 data-[state=checked]:oui-bg-transparent"}},compoundVariants:[{color:"primary",variant:"radio",className:"data-[state=checked]:oui-border-parimary data-[state=checked]:!oui-text-parimary"}],defaultVariants:{color:"white"}}),mi=ze.forwardRef(({className:e,color:o="white",variant:t="checkBox",...r},i)=>jsx(Wo.Root,{ref:i,className:jd({color:o,className:e,variant:t}),...r,children:jsx(Wo.Indicator,{className:cnBase("oui-flex oui-items-center oui-justify-center oui-text-current",r.indicatorClassName),children:t==="checkBox"?jsx($d,{className:cnBase(o==="primary"?"oui-text-primary":"oui-text-white")}):jsx("div",{className:cnBase("oui-w-[6px] oui-h-[6px] oui-rounded-full",o==="primary"?"oui-bg-primary":"oui-bg-base-contrast-80")})})}));mi.displayName=Wo.Root.displayName;var $d=e=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.078.71A2.333 2.333 0 0 0 .745 3.041v5.834a2.333 2.333 0 0 0 2.333 2.333H8.91a2.333 2.333 0 0 0 2.334-2.333V3.042A2.333 2.333 0 0 0 8.91.71zm5.83 2.555a.7.7 0 0 1 .488-.182c.174 0 .355.056.488.182a.643.643 0 0 1 0 .93L5.129 8.728a.723.723 0 0 1-.975 0L2.115 6.785a.644.644 0 0 1 0-.93.724.724 0 0 1 .977 0l1.55 1.476z",fillOpacity:".8"})});var Qd=tv({slots:{root:["peer","oui-inline-flex","oui-h-[16px]","oui-w-[28px]","oui-shrink-0","oui-cursor-pointer","oui-items-center","oui-rounded-full","oui-border-transparent","oui-shadow-sm","oui-transition-colors","focus-visible:oui-outline-none","focus-visible:oui-ring-2","focus-visible:oui-ring-ring","focus-visible:oui-ring-offset-2","focus-visible:oui-ring-offset-background","disabled:oui-cursor-not-allowed","disabled:oui-opacity-50","data-[state=checked]:oui-bg-primary-darken","data-[state=unchecked]:oui-bg-input"],thumb:["oui-pointer-events-none","oui-block","oui-h-[10px]","oui-w-[10px]","oui-rounded-full","oui-bg-white/80","oui-shadow-lg","oui-ring-0","oui-transition-transform","data-[state=checked]:oui-translate-x-[15px]","data-[state=unchecked]:oui-translate-x-[3px]"]},variants:{color:{primary:{root:["data-[state=checked]:oui-bg-primary-darken","data-[state=unchecked]:oui-bg-base-1"]},success:{root:["data-[state=checked]:oui-bg-success","data-[state=unchecked]:oui-bg-success"]},danger:{root:["data-[state=checked]:oui-bg-danger","data-[state=unchecked]:oui-bg-danger"]},warning:{root:["data-[state=checked]:oui-bg-warning-darken","data-[state=unchecked]:oui-bg-warning-darken"]}}},defaultVariants:{color:"primary"}}),gi=ze__default.forwardRef(({className:e,color:o,...t},r)=>{let{root:i,thumb:n}=Qd({className:e,color:o});return jsx(Zo.Root,{className:i({className:e}),...t,ref:r,children:jsx(Zo.Thumb,{className:n()})})});gi.displayName=Zo.Root.displayName;var Jd=h({base:"oui-inline-flex oui-items-center oui-rounded-md oui-font-semibold oui-transition-colors focus:oui-outline-none focus:oui-ring-2 focus:oui-ring-ring focus:oui-ring-offset-2",variants:{variant:{contained:"",text:""},color:{primary:"",primaryLight:"",secondary:"",danger:"",buy:"",success:"",warning:"",sell:"",neutral:""},size:{xs:"oui-px-2 oui-py-0.5 oui-text-2xs oui-rounded oui-h-[18px]",sm:"oui-px-2 oui-py-0.5 oui-text-2xs oui-rounded",md:"oui-px-2 oui-py-0.5 oui-text-sm",lg:"oui-px-2 oui-py-1 oui-text-base"}},compoundVariants:[{variant:"contained",color:"primary",className:["oui-bg-primary/15","oui-text-primary"]},{variant:"contained",color:"primaryLight",className:["oui-bg-primary-light/15","oui-text-primary-light"]},{variant:"contained",color:"danger",className:["oui-bg-danger/15","oui-text-danger"]},{variant:"contained",color:"sell",className:["oui-bg-danger/15","oui-text-danger"]},{variant:"contained",color:"success",className:["oui-bg-success/15","oui-text-success"]},{variant:"contained",color:"buy",className:["oui-bg-success/15","oui-text-success"]},{variant:"contained",color:"warning",className:["oui-bg-warning-darken/15","oui-text-warning-darken"]},{variant:"contained",color:"neutral",className:["oui-bg-line","oui-text-base-contrast-36"]},{variant:"text",color:"primary",className:["oui-text-primary"]},{variant:"text",color:"danger",className:["oui-text-danger"]},{variant:"text",color:"success",className:["oui-text-success"]},{variant:"text",color:"warning",className:["oui-text-warning-darken"]},{variant:"text",color:"neutral",className:["oui-text-base-contrast-36"]}],defaultVariants:{variant:"contained",color:"primary",size:"md"}});function e1({className:e,variant:o,color:t,size:r,...i}){return jsx("div",{className:Jd({variant:o,className:e,color:t,size:r}),...i})}var Ls=ze__default.forwardRef(({src:e,alt:o,href:t},r)=>jsx("div",{className:"logo oui-px-3",ref:r,children:jsx("a",{href:t??"/",children:jsx("img",{src:e,alt:o,className:"oui-object-contain oui-h-8 oui-py-2"})})}));Ls.displayName="LogoElement";function _s(e){let{dataSource:o,loading:t,ignoreLoadingCheck:r}=e,[i,n]=useState(false);return useEffect(()=>{i||(r||t||Array.isArray(o))&&n(true);},[t,r,o,i]),i}function Os(e){let o=useRef(null),[t,r]=useState(false),[i,n]=useState(false);return useEffect(()=>{o.current&&o.current.addEventListener("scroll",function(a){r(o.current.scrollLeft>0),n(!As(o.current));});},[o]),useEffect(()=>{if(!o.current)return;let a=n1(o.current),s=As(o.current);n(a&&!s);},[o,...e]),{scrollRef:o,showLeftShadow:t,showRightShadow:i}}function As(e){return e.scrollLeft+e.clientWidth>=e.scrollWidth}function n1(e){return e.scrollWidth>e.clientWidth}function Hs(e){let{dataSource:o,loading:t}=e,r=useRef(false),i=useMemo(()=>t&&!o?.length?r.current:!!o?.length,[t,o]);return useEffect(()=>{i&&(r.current=true);},[i]),i}function Gs(e){let{loading:o,dataSource:t,pagination:r,rows:i}=e,n=useRef(false),a=useMemo(()=>o&&!t?.length?n.current:!!(r&&t?.length&&i?.length),[o,r,t,i]);return useEffect(()=>{a&&(n.current=true);},[a]),a}function Ws(e){let{onSort:o,initialSort:t}=e,[r,i]=useState(t?[{id:t.sortKey,desc:t.sort==="desc"}]:[]);return useEffect(()=>{let{id:n,desc:a}=r[0]||{};o?.(n?{sortKey:n,sort:a?"desc":"asc"}:void 0);},[r,o]),[r,i]}function Zs(e){let o=useRef(null);return useEffect(()=>{if(!o.current)return;let t=window.getComputedStyle(o.current).backgroundColor;o.current.style.setProperty("--oui-table-background-color",t);},e),o}var At=tv({variants:{align:{left:"oui-text-left",center:"oui-text-center",right:"oui-text-right"}},defaultVariants:{align:"left"}});var Ys=e=>{let{cell:o}=e,{original:t,index:r}=o.row,{formatter:i,render:n,rule:a,textProps:s,numeralProps:l}=o.column.columnDef.meta||{},u=o.getValue();if(typeof i=="function"&&(u=i(u,t,r)),typeof n=="function")return n(u,t,r);if(typeof a<"u"){if(Jn(a)){let c=typeof s=="function"?s(u,t,r):s;return jsx(Vo,{rule:a,...c,children:u})}if(za(a)){let c=typeof l=="function"?l(u,t,r):l;return jsx(qe,{rule:a,...c,children:u})}}return flexRender(o.column.columnDef.cell,o.getContext())};function Ht(e,o){let t=e.getIsPinned(),r=t==="left"&&e.getIsLastColumn("left"),i=t==="right"&&e.getIsFirstColumn("right"),n={left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,width:e.getSize()},a=cnBase(t?"oui-sticky":"oui-relative",t?"oui-z-[1]":"oui-z-0",t&&"oui-bg-[var(--oui-table-background-color)]"),s=cnBase("before:oui-block before:oui-absolute","before:oui-w-[32px] before:oui-h-full","before:oui-top-0 before:oui-z-[-1]","before:oui-bg-[linear-gradient(90deg,rgba(var(--oui-color-base-10)_/_0.80)_0%,rgba(var(--oui-color-base-10)_/_0.36)_65%,rgba(var(--oui-color-base-10)_/_0.00)_100%)]"),l=r&&cnBase(s,"before:oui-right-[-32px]"),u=i&&cnBase(s,"before:oui-left-[-32px] before:oui-rotate-180");return {style:n,classNames:{content:a,leftShadow:l,rightShadow:u}}}var $s=e=>jsx("tbody",{className:cnBase("oui-table-tbody oui-relative","oui-text-base-contrast-80",e.className),"data-testid":e.testId,children:e.rows.map(o=>{let{className:t,onClick:r,...i}=typeof e.onRow=="function"?e.onRow(o.original,o.index)||{}:{},n=o.getIsExpanded()&&jsx("tr",{className:"oui-table-expand-tr oui-z-0",children:jsx("td",{className:"oui-table-expand-td",colSpan:o.getVisibleCells().length,children:e.expandRowRender?.(o,o.index)})}),a=jsxs(Fragment$1,{children:[jsx("tr",{className:cnBase("oui-table-tbody-tr oui-group oui-h-10",typeof r=="function"&&"oui-cursor-pointer",e.bordered&&"oui-border-b oui-border-b-line-4",t),onClick:()=>{o.getCanExpand()&&o.getToggleExpandedHandler(),r?.();},...i,children:o.getVisibleCells().map(s=>{let l=s.column,{style:u,classNames:c}=Ht(l),{align:m,className:g}=l.columnDef.meta||{},{style:p,className:f,children:b,...T}=typeof e.onCell=="function"?e.onCell(s.column,o.original,o.index)||{}:{},x=b!==void 0?b:jsxs(Fragment,{children:[jsx(Ys,{cell:s}),jsx(w1,{selected:o.getIsSelected(),isFirst:l.getIsFirstColumn(),isLast:l.getIsLastColumn()})]});return jsx("td",{style:{...u,...p},className:cnBase("oui-table-tbody-td oui-relative","oui-px-3",At({align:m}),g,c.content,e.showLeftShadow&&c.leftShadow,e.showRightShadow&&c.rightShadow,f),...T,children:x},s.id)})},o.id),n]},o.id);return typeof e.renderRowContainer=="function"?jsx(Fragment$1,{children:e.renderRowContainer(o.original,o.index,a)},o.id):a})}),w1=({selected:e,isFirst:o,isLast:t})=>jsx("div",{className:cnBase("oui-absolute oui-left-0 oui-top-0 oui-z-[-1]","oui-size-full","group-hover:oui-bg-line-4",e&&"oui-bg-line-6 group-hover:oui-bg-line-6",o&&"oui-rounded-l",t&&"oui-rounded-r")});var xi=e=>jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:e.children}),qs=()=>jsx(xi,{children:jsx("path",{d:"M5 1.042a.47.47 0 0 0-.338.135L2.166 3.844c-.206.22-.005.531.338.531h4.992c.342 0 .543-.311.337-.531L5.338 1.177A.47.47 0 0 0 5 1.042m0 7.916a.47.47 0 0 1-.338-.135L2.166 6.156c-.206-.22-.005-.531.338-.531h4.992c.342 0 .543.311.337.531L5.338 8.823A.47.47 0 0 1 5 8.958",fill:"#fff",fillOpacity:".2"})}),Ks=()=>jsxs(xi,{children:[jsx("path",{d:"M5 1.042a.47.47 0 0 0-.338.135L2.166 3.844c-.206.22-.005.531.338.531h4.992c.342 0 .543-.311.337-.531L5.338 1.177A.47.47 0 0 0 5 1.042",fill:"#fff",fillOpacity:".8"}),jsx("path",{d:"M5 8.958a.47.47 0 0 1-.338-.135L2.166 6.156c-.206-.22-.005-.531.338-.531h4.992c.342 0 .543.311.337.531L5.338 8.823A.47.47 0 0 1 5 8.958",fill:"#fff",fillOpacity:".2"})]}),Qs=()=>jsxs(xi,{children:[jsx("path",{d:"M5 1.042a.47.47 0 0 0-.338.135L2.166 3.844c-.206.22-.005.531.338.531h4.992c.342 0 .543-.311.337-.531L5.338 1.177A.47.47 0 0 0 5 1.042",fill:"#fff",fillOpacity:".2"}),jsx("path",{d:"M5 8.958a.47.47 0 0 1-.338-.135L2.166 6.156c-.206-.22-.005-.531.338-.531h4.992c.342 0 .543.311.337.531L5.338 8.823A.47.47 0 0 1 5 8.958",fill:"#fff",fillOpacity:".8"})]});var el=e=>jsx("thead",{className:cnBase("oui-table-thead","oui-sticky oui-top-0 oui-z-[2]","oui-bg-[var(--oui-table-background-color)]","oui-text-base-contrast-36"),children:e.headerGroups.map(o=>jsx("tr",{className:cnBase("oui-table-thead-tr","oui-h-10",e.className),children:o.headers.map(t=>{let r=t.column,{align:i,className:n,title:a}=r.columnDef.meta||{},{style:s,classNames:l}=Ht(r),u=r.getCanSort(),c=r.getIsSorted();return jsx("th",{style:s,className:cnBase("oui-table-thead-th","oui-whitespace-nowrap","oui-px-3",e.bordered&&"after:oui-block after:oui-absolute after:oui-w-full after:oui-h-full after:oui-top-0 after:oui-left-0 after:oui-z-[-1] after:oui-border-b after:oui-border-line",At({align:i}),n,l.content,e.showLeftShadow&&l.leftShadow,e.showRightShadow&&l.rightShadow),children:t.isPlaceholder?null:jsxs("div",{className:cnBase("oui-inline-flex oui-items-center oui-gap-x-1",u&&"oui-cursor-pointer oui-select-none hover:oui-text-base-contrast-80"),onClick:r.getToggleSortingHandler(),children:[a,u&&jsx(y1,{isSorted:c})]})},t.id)})},o.id))}),y1=({isSorted:e})=>({asc:jsx(Ks,{}),desc:jsx(Qs,{})})[e]||jsx(qs,{});var Uo=createContext(void 0);var S1=e=>{let o=useMemo(()=>({...e.locale,exist:true}),[e.locale]);return jsx(Uo.Provider,{value:o,children:e.children})};var bi={locale:"en",dialog:{ok:"OK",cancel:"Cancel"},modal:{confirm:"Confirm",cancel:"Cancel"},pagination:{morePages:"More pages",rowsPerPage:"Rows per page"},picker:{selectDate:"Select Date",dayPicker:enUS},empty:{description:"No results found."}};var H=(e,o)=>{let t=useContext(Uo),r=useMemo(()=>{let n=o||bi[e],a=t?.[e]||{};return {...typeof n=="function"?n():n,...a}},[e,o,t]),i=useMemo(()=>{let n=t?.locale,a=bi.locale;return n||a},[t]);return [r,i]};var rl=({className:e,...o})=>jsx("nav",{role:"navigation","aria-label":"pagination",className:cnBase("oui-flex oui-justify-between oui-items-center oui-w-full oui-text-xs",e),...o});rl.displayName="Pagination";var il=ze__default.forwardRef(({className:e,...o},t)=>jsx("ul",{ref:t,className:cnBase("oui-flex oui-flex-row oui-items-center oui-gap-x-2",e),...o}));il.displayName="PaginationContent";var Zt=ze__default.forwardRef(({className:e,...o},t)=>jsx("li",{ref:t,className:cnBase("oui-leading-[0px]",e),...o}));Zt.displayName="PaginationItem";var Ut=({className:e,isActive:o,...t})=>jsx("button",{"aria-current":o?"page":void 0,"data-active":o,className:bt({size:"xs",variant:o?"contained":"text",className:"oui-min-w-6 oui-text-base-contrast-80 oui-font-semibold data-[active=false]:hover:oui-bg-base-6 disabled:oui-bg-transparent disabled:hover:oui-bg-transparent"}),...t});Ut.displayName="PaginationLink";var al=({className:e,...o})=>jsx(Ut,{"aria-label":"Go to previous page",className:cnBase("oui-gap-1 oui-pl-2.5",e),...o,children:jsx(Je,{className:"oui-h-4 oui-w-4",color:"white"})});al.displayName="PaginationPrevious";var nl=({className:e,...o})=>jsx(Ut,{"aria-label":"Go to next page",className:cnBase("oui-gap-1 oui-pr-2.5",e),...o,children:jsx(eo,{className:"oui-h-4 oui-w-4",color:"white"})});nl.displayName="PaginationNext";var sl=e=>{let{classNames:o,className:t,pageTotal:r,page:i}=e,[n]=H("pagination");return jsxs(rl,{className:cnBase(o?.pagination,t),children:[jsxs(z,{mr:4,children:[jsx(ee,{as:"div",size:"2xs",intensity:54,className:"oui-text-nowrap oui-mr-2",children:n.rowsPerPage}),jsx("div",{className:"oui-w-15",children:jsx(Ve.options,{options:[{value:"10",label:"10"},{value:"20",label:"20"},{value:"50",label:"50"},{value:"100",label:"100"}],value:`${e.pageSize??5}`,size:"xs",onValueChange:a=>e.onPageSizeChange?.(parseInt(a))})})]}),jsx(ll,{...e})]})};function z1(e,o){let t=[],r="...";if(o<=5)for(let n=1;n<=o;n++)t.push(n);else e<=3?t.push(1,2,3,4,r,o):e>=o-2?t.push(1,r,o-3,o-2,o-1,o):t.push(1,r,e-1,e,e+1,r,o);return t}var ll=e=>{let{classNames:o,className:t,pageTotal:r,page:i}=e;if(r<=1)return null;let n=useMemo(()=>z1(i,r),[i,r]);return jsxs(il,{children:[jsx(Zt,{children:jsx(al,{disabled:e.page===1,onClick:a=>{a.preventDefault(),e.onPageChange?.(e.page-1);}})}),n.map((a,s)=>jsx(Zt,{children:jsx(Ut,{isActive:a===e.page,onClick:l=>{l.preventDefault(),a!=="..."?e.onPageChange?.(Number(a)):e.onPageChange?.(Number(n[s+1]-1));},children:a})},s)),jsx(Zt,{children:jsx(nl,{disabled:e.page===e.pageTotal,onClick:a=>{a.preventDefault(),e.onPageChange?.(e.page+1);}})})]})};var cl=e=>e.pageTotal===0?null:jsx(z,{justify:"end",py:2,mx:3,className:"oui-h-10 oui-w-full",children:jsx(sl,{...e,className:"oui-table-pagination oui-justify-between oui-w-full"})});var ve=class e{static getInstance(){let o=getGlobalObject();return o.__ORDERLY_EXTENSION_REGISTRY__||(o.__ORDERLY_EXTENSION_REGISTRY__=new e),o.__ORDERLY_EXTENSION_REGISTRY__}extensionMap=new Map;register(o){o.builder;for(let t=0;t<o.positions.length;t++){if(typeof o.builder!="function"){let i=this.extensionMap.get(o.positions[t])?.builder;o.builder=typeof i>"u"?void 0:i;}let r=o.positions[t];this.registerToPosition(r,o);}}registerToPosition(o,t){if(this.extensionMap.has(o)){let r=this.extensionMap.get(o);if(!r?.__isInternal){!r?.builder&&t.__isInternal&&this.setBuilder(o,t.builder);return}t.builder||(t.builder=r.builder);}this.extensionMap.set(o,t);}setBuilder(o,t){let r=this.extensionMap.get(o);r&&(r.builder=t);}unregister(o){for(let t=0;t<o.positions.length;t++){let r=o.positions[t];this.unregisterFromPosition(r);}}unregisterFromPosition(o){this.extensionMap.delete(o);}getPluginsByPosition(o){return this.extensionMap.get(o)}getFormatterByPosition(o){return this.extensionMap.get(o)}};var Yo=e=>o=>{ve.getInstance().register({name:e.name,positions:e.positions,__isInternal:!!e.__isInternal,builder:e.builder,render:o});},V1=(e,o)=>{ve.getInstance().setBuilder(e,o);};var pl=(e,o)=>{let r=ve.getInstance().getPluginsByPosition(e);return ()=>r?.builder?.(o)||o};var dl=(e,o)=>pl(e,o)();var gl=e=>{let{position:o}=e;return jsxs("div",{className:"oui-text-danger",children:[jsx("strong",{children:`[${o}] `}),jsx("span",{children:"Not found!"})]})};var wi=e=>{let{position:o,scope:t,defaultWidget:r,...i}=e,n=dl(o,i),a=useMemo(()=>ve.getInstance().getPluginsByPosition(o)?.render??r??gl,[]);return jsx(ErrorBoundary,{fallback:jsx("div",{children:`Component: [${o}] went wrong`}),children:jsx(Slot,{...n,position:o,children:jsx(a,{})})})};var Xt=(a=>(a.DepositForm="depositForm",a.WithdrawForm="withdrawForm",a.AccountMenu="accountMenu",a.MobileAccountMenu="mobileAccountMenu",a.MainMenus="mainMenus",a.EmptyDataIdentifier="emptyDataIdentifier",a))(Xt||{});var fl=e=>{let{visible:o,loading:t,emptyView:r}=e;return o?jsx(W,{position:"absolute",left:0,top:0,right:0,bottom:0,className:"oui-flex oui-justify-center oui-items-center",children:t?jsx(Re,{}):r||jsx(wi,{position:"emptyDataIdentifier"})}):null};var jt={columns:e=>{let o=createColumnHelper();return e?.map((t,r)=>{let i={meta:t,size:t.width||100},{dataIndex:n,onSort:a}=t;return o.accessor(n,{header:()=>t.title,enableSorting:!!a,sortingFn:typeof a=="function"?(s,l,u)=>a?.(s.original,l.original):"alphanumeric",...i})})},columnPinning:e=>{let o=[],t=[];return e?.map(r=>{r.fixed==="left"?o.push(r.dataIndex):r.fixed==="right"&&t.push(r.dataIndex);}),{left:o,right:t}},pagination:e=>{let o={},t={};return e&&(o={pagination:{pageIndex:e.page-1,pageSize:e.pageSize}},t={getPaginationRowModel:getPaginationRowModel()}),{state:o,config:t}}};function X1(e){let{columns:o,className:t,classNames:r,pagination:i,getRowCanExpand:n,manualPagination:a,loading:s,ignoreLoadingCheck:l,emptyView:u,initialSort:c,manualSorting:m,onSort:g,expanded:p,onExpandedChange:f}=e,b=useMemo(()=>e.dataSource?e.dataSource:[],[e.dataSource]),T=useMemo(()=>jt.columns(o),[o]),x=useMemo(()=>jt.columnPinning(o),[o]),S=useMemo(()=>e.rowSelection||{},[e.rowSelection]),{state:R,config:v}=useMemo(()=>jt.pagination(i),[i]),[D,y]=Ws({onSort:g,initialSort:c}),A=_s({dataSource:b,loading:s,ignoreLoadingCheck:l}),j=useMemo(()=>Array.isArray(e.columnFilters)?e.columnFilters:e.columnFilters?[e.columnFilters]:[],[e.columnFilters]),K=useReactTable({_features:e.features,data:b,columns:T,state:{columnPinning:x,columnFilters:j,rowSelection:S,sorting:D,expanded:p,...R},onSortingChange:y,getRowId:e.generatedRowKey,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),getRowCanExpand:n,onExpandedChange:f,getSubRows:e.getSubRows,getSortedRowModel:getSortedRowModel(),getFilteredRowModel:getFilteredRowModel(),manualSorting:m,manualPagination:a,enableMultiRowSelection:false,enableExpanding:true,...v});useEffect(()=>{e.getTableInstance?.(K);},[K]);let ne=Zs([t,r?.root]),{scrollRef:w,showLeftShadow:V,showRightShadow:O}=Os([b?.length]),Le=K.getRowModel().rows,da=A&&(Le.length===0||s),Su=Hs({loading:s,dataSource:b}),ma=Gs({loading:s,dataSource:b,rows:Le,pagination:i});return jsxs("div",{ref:ne,id:e.id,className:cn("oui-table-root oui-size-full","oui-bg-base-9",t,r?.root)({twMerge:true}),children:[jsxs("div",{ref:w,className:cn("oui-table-scroll oui-relative","oui-min-h-[162px] oui-w-full","oui-text-xs oui-font-semibold","oui-custom-scrollbar oui-overflow-auto",ma?"oui-h-[calc(100%_-_40px)]":"oui-h-full",r?.scroll)({twMerge:true}),children:[jsxs("table",{className:cnBase("oui-w-full","oui-table-fixed oui-border-collapse"),children:[Su&&jsx(el,{className:r?.header,headerGroups:K.getHeaderGroups(),bordered:e.bordered,showLeftShadow:V,showRightShadow:O}),jsx($s,{className:r?.body,rows:Le,bordered:e.bordered,renderRowContainer:e.renderRowContainer,expandRowRender:e.expandRowRender,onRow:e.onRow,onCell:e.onCell,showLeftShadow:V,showRightShadow:O,testId:e.testIds?.body})]}),jsx(fl,{visible:da,loading:s,emptyView:u})]}),ma&&jsx(cl,{className:r?.pagination,count:i?.count||Le?.length,pageTotal:i?.pageTotal||K.getPageCount(),page:i?.page,pageSize:i?.pageSize,onPageChange:i?.onPageChange,onPageSizeChange:i?.onPageSizeChange})]})}function lo({className:e,classNames:o,showOutsideDays:t=true,...r}){let[i]=H("picker");return jsx(DayPicker,{locale:i.dayPicker,showOutsideDays:t,className:cnBase("oui-p-3 oui-bg-base-7 oui-rounded",e),classNames:{months:"oui-flex oui-flex-col sm:oui-flex-row oui-space-y-4 sm:oui-space-x-4 sm:oui-space-y-0",month:"oui-space-y-4",caption:"oui-flex oui-justify-center oui-pt-1 oui-relative oui-items-center",caption_label:"oui-text-sm oui-font-medium ",nav:"oui-space-x-1 oui-flex oui-items-center",nav_button:cnBase("oui-h-7 oui-w-7 oui-bg-transparent oui-p-0 oui-opacity-50 hover:oui-opacity-100"),nav_button_previous:"oui-absolute oui-left-1",nav_button_next:"oui-absolute oui-right-1",table:"oui-w-full oui-border-collapse oui-space-y-1",head_row:"oui-flex",head_cell:"oui-text-base-contrast-80 oui-rounded-md oui-w-7 oui-font-normal oui-text-[0.8rem] oui-opacity-30",row:"oui-flex oui-w-full oui-mt-2",cell:cnBase("oui-relative oui-day-cell oui-p-0 oui-text-center oui-text-2xs focus-within:oui-relative focus-within:oui-z-20 [&:has([aria-selected])]:oui-bg-base-4 [&:has([aria-selected].day-outside)]:oui-bg-base-4/50 [&:has([aria-selected].day-range-end)]:oui-rounded-r-md",r.mode==="range"?"[&:has(>.oui-day-range-end)]:oui-rounded-r-md [&:has(>.oui-day-range-start)]:oui-rounded-l-md first:[&:has([aria-selected])]:oui-rounded-l-md last:[&:has([aria-selected])]:oui-rounded-r-md":"[&:has([aria-selected])]:oui-rounded-md"),day:cnBase("oui-h-7 oui-w-7 oui-p-0 oui-rounded-md oui-font-normal aria-selected:oui-opacity-100 oui-text-base-contrast-80 hover:oui-bg-base-5"),day_range_start:"day-range-start oui-bg-primary-darken oui-text-base-contrast-80 hover:oui-bg-primary-darken",day_range_end:"day-range-end oui-bg-primary-darken oui-text-base-contrast-80 hover:oui-bg-primary-darken",day_selected:"oui-bg-base-4 ",day_today:"oui-bg-accent ",day_outside:"oui-day-outside oui-text-muted-foreground oui-opacity-50 aria-selected:oui-bg-accent/50 aria-selected:oui-text-muted-foreground aria-selected:oui-opacity-30",day_disabled:"oui-text-muted-foreground oui-opacity-50",day_range_middle:"aria-selected:oui-bg-accent aria-selected:oui-text-accent-foreground",day_hidden:"oui-invisible",...o},components:{IconLeft:({...n})=>jsx(Je,{size:16,className:"oui-text-inherit",opacity:1}),IconRight:({...n})=>jsx(eo,{size:16,className:"oui-text-inherit",opacity:1})},...r})}lo.displayName="Calendar";var Q1="yyyy/MM/dd",Xo=e=>{let{placeholder:o,dateFormat:t,onChange:r,value:i,initialValue:n,size:a,className:s,formatString:l=Q1,...u}=e,[c]=H("picker"),[m,g]=useState(false),[p,f]=useState(i||n||null),[b,T]=useState(false),x=J1(y=>{T(y<=768);},100);useEffect(()=>{let y=()=>{x(window.innerWidth);};return T(window.innerWidth<=768),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y);}},[]),useEffect(()=>{i?.from&&i?.to&&p?.from&&p?.to&&!em(i,p)&&f(i);},[i]);let{trigger:S}=Z({size:a,className:s}),R=useMemo(()=>{if(!p||!p.from||!p.to)return o??c.selectDate;let y=[];return p.from&&y.push(format(p.from,l)),p.to&&y.push(format(p.to,l)),`${y.join(" - ")}`},[p,o,c]);return jsx(Lo,{open:m,onOpenChange:y=>{typeof p?.to>"u"&&typeof p?.from<"u"&&f({...p,to:p.from}),!y&&p&&r?.(p),g(y);},contentProps:{className:"oui-w-auto oui-p-0",align:"start"},content:jsx(lo,{numberOfMonths:b?1:2,...u,mode:"range",selected:p,onSelect:(y,A)=>{p?.from&&p?.to?f({from:A}):f(y);}}),children:jsxs("button",{className:S({className:"oui-datepicker-trigger oui-group"}),children:[jsx("span",{className:"oui-datepicker-trigger-icon",children:jsx(oo,{size:14,className:"oui-text-inherit",opacity:1})}),jsx("span",{children:R}),jsx(oe,{size:12,className:"oui-datepicker-trigger-arrow oui-text-inherit oui-transition-transform group-data-[state=open]:oui-rotate-180 group-data-[state=closed]:oui-rotate-0",opacity:1})]})})};Xo.displayName="DateRangePicker";function J1(e,o){let t=useRef(null);return useCallback(i=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{e(i);},o);},[e,o])}function em(e,o){let t=s=>({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}),r=t(e.from),i=t(e.to),n=t(o.from),a=t(o.to);return r.year===n.year&&r.month===n.month&&r.day===n.day&&i.year===a.year&&i.month===a.month&&i.day===a.day}var jo=e=>{let{placeholder:o,dateFormat:t,onChange:r,value:i,size:n,className:a,...s}=e,[l]=H("picker"),{trigger:u}=Z({size:n,className:a}),[c,m]=useState(false),g=useMemo(()=>{if(typeof i>"u")return o??l.selectDate},[i,o,l]);return jsx(Lo,{open:c,onOpenChange:m,contentProps:{className:"oui-w-auto oui-p-0"},content:jsx(lo,{onSelect:(f,b,T,x)=>{s.onSelect?.(f,b,T,x),f&&(r?.(f),m(false));},...s}),children:jsxs("button",{className:u({className:"orderly-datepicker-trigger oui-group"}),children:[jsx("span",{className:"orderly-datepicker-trigger-icon",children:jsx(oo,{size:14,className:"oui-text-inherit",opacity:1})}),jsx("span",{children:g}),jsx(oe,{size:12,className:"orderly-datepicker-trigger-arrow oui-text-inherit oui-transition-transform group-data-[state=open]:oui-rotate-180 group-data-[state=closed]:oui-rotate-0",opacity:1})]})})};jo.displayName="DatePicker";var Ko=L.Root,ki=L.Trigger,sm=L.Close,wl=L.Portal,Si=ze.forwardRef(({className:e,...o},t)=>jsx(L.Overlay,{className:cnBase("oui-fixed oui-inset-0 oui-z-50 oui-bg-black/80 data-[state=open]:oui-animate-in data-[state=closed]:oui-animate-out data-[state=closed]:oui-fade-out-0 data-[state=open]:oui-fade-in-0",e),...o,ref:t}));Si.displayName=L.Overlay.displayName;var lm=tv({base:"oui-fixed oui-z-50 oui-gap-4 oui-bg-base-8 oui-px-4 oui-shadow-lg oui-transition oui-ease-in-out data-[state=closed]:oui-duration-260 data-[state=open]:oui-duration-300 data-[state=open]:oui-animate-in data-[state=closed]:oui-animate-out",variants:{side:{top:"oui-inset-x-0 oui-top-0 oui-border-b data-[state=closed]:oui-slide-out-to-top data-[state=open]:oui-slide-in-from-top",bottom:"oui-inset-x-0 oui-bottom-0 oui-rounded-t-2xl data-[state=closed]:oui-slide-out-to-bottom data-[state=open]:oui-slide-in-from-bottom",left:"oui-inset-y-0 oui-left-0 oui-h-full oui-w-3/4 data-[state=closed]:oui-slide-out-to-left data-[state=open]:oui-slide-in-from-left sm:oui-max-w-sm",right:"oui-inset-y-0 oui-right-0 oui-h-full oui-w-3/4 oui-border-l data-[state=closed]:oui-slide-out-to-right data-[state=open]:oui-slide-in-from-right sm:oui-max-w-sm"}},defaultVariants:{side:"bottom"}}),po=ze.forwardRef(({side:e="bottom",closeable:o=true,className:t,children:r,...i},n)=>jsxs(wl,{children:[jsx(Si,{}),jsxs(L.Content,{ref:n,className:cnBase(lm({side:e}),t),onOpenAutoFocus:a=>a.preventDefault(),onCloseAutoFocus:a=>a.preventDefault(),...i,children:[o&&jsxs(L.Close,{className:cnBase("oui-absolute oui-right-4 oui-top-4 oui-rounded-sm oui-ring-offset-base-700 oui-transition-opacity focus:oui-outline-none focus:oui-ring-2 focus:oui-ring-ring focus:oui-ring-offset-2 disabled:oui-pointer-events-none data-[state=open]:oui-bg-secondary"),children:[jsx(Te,{size:16,color:"white",opacity:.98}),jsx("span",{className:"oui-sr-only",children:"Close"})]}),r]})]}));po.displayName=L.Content.displayName;var Kt=({className:e,leading:o,...t})=>jsxs("div",{className:cnBase("oui-sheet-header oui-grid oui-grid-cols-[40px_1fr_40px] oui-items-center oui-min-h-12"),children:[jsx("div",{children:o}),jsx("div",{...t,className:cnBase("oui-flex oui-flex-col oui-space-y-2 oui-text-center oui-text-lg oui-text-base-contrast",e)})]});Kt.displayName="SheetHeader";var Ri=({className:e,...o})=>jsx("div",{className:cn("oui-py-4",e)({twMerge:true}),...o});Ri.displayName="DialogBody";var vl=({className:e,...o})=>jsx("div",{className:cnBase("oui-sheet-footer oui-flex oui-flex-col-reverse sm:oui-flex-row sm:oui-justify-end sm:oui-space-x-2",e),...o});vl.displayName="SheetFooter";var Qt=ze.forwardRef(({className:e,leading:o,...t},r)=>jsxs("div",{className:"oui-sheet-header oui-grid oui-grid-cols-[40px_1fr_40px] oui-items-center",ref:r,children:[jsx("div",{children:o}),jsx("div",{className:cnBase("oui-flex oui-flex-col oui-space-y-2 oui-text-center oui-text-lg oui-text-base-contrast",e),...t})]}));Qt.displayName=L.Title.displayName;var yl=ze.forwardRef(({className:e,...o},t)=>jsx(L.Description,{ref:t,className:cnBase("oui-sheet-description oui-text-2xs oui-text-base-contrast-54",e),...o}));yl.displayName=L.Description.displayName;var Ii=Symbol("modalId"),um=0,cm=()=>`__modal_${um++}`,Qo=e=>typeof e=="string"?e:(e[Ii]||(e[Ii]=cm()),e[Ii]);function X(e,o){let t=useContext(Ge),r=useContext(Jo),i,n=e&&typeof e!="string";if(e?i=Qo(e):i=r,!i)throw new Error("modalId is required");let a=i;useEffect(()=>{n&&mo(a,e,o);},[n,i,e,o]);let s=t[a],l=useCallback(x=>G.show(a,x),[a]),u=useCallback(()=>G.hide(a),[a]),c=useCallback(()=>G.remove(a),[a]),m=useCallback(x=>{x||(b("cancel"),u());},[a]),g=useCallback(x=>{G.setStates(a,x);},[a]),p=useCallback(x=>{G.updateArgs(a,x);},[a]),f=useCallback(x=>{ue[a]?.resolve(x),delete ue[a];},[a]),b=useCallback(x=>{ue[a]?.reject(x),delete ue[a];},[a]),T=useCallback(x=>{He[a]?.resolve(x),delete He[a];},[]);return {id:a,args:s?.args,states:s?.states,visible:!!s?.visible,keepMounted:!!s?.keepMounted,show:l,hide:u,onOpenChange:m,setStates:g,updateArgs:p,remove:c,resolve:f,reject:b,resolveHide:T}}var ce=new Map,pe=e=>({id:o,defaultVisible:t,keepMounted:r,...i})=>{let{args:n,show:a}=X(o),s=useContext(Ge),l=!!s[o];useEffect(()=>(t&&a(),go[o]=true,()=>{r||delete go[o];}),[o,a,t]),useEffect(()=>{r&&G.setStates(o,{keepMounted:true});},[o,r]);let u=s[o]?.delayVisible;return useEffect(()=>{u&&a(n);},[u,n,a]),l?jsx(Jo.Provider,{value:o,children:jsx(e,{...i,...n})}):null};function mo(e,o,t){ce.has(e)?ce.set(e,{comp:ce.get(e).comp,props:t}):ce.set(e,{comp:o,props:t});}var kl=e=>{ce.delete(e);};var Rl={},go={},Ge=createContext(Rl),Jo=createContext(null),ue={},He={},fo=()=>{throw new Error("No dispatch method detected, did you embed your app with Modal.Provider?")};function fm(e,o){return {type:"SHOW_MODAL",payload:{id:e,args:o}}}function xm(e){return {type:"HIDE_MODAL",payload:{id:e}}}function bm(e){return {type:"DESTROY_MODAL",payload:{id:e}}}function hm(e,o){return {type:"UPDATE_ARGS",payload:{id:e,args:o}}}function wm(e,o){return {type:"SET_MODAL_STATES",payload:{id:e,states:o}}}var vm=(e,o)=>{let{id:t,args:r}=o.payload;switch(o.type){case "SHOW_MODAL":return {...e,[t]:{...e[t],id:t,args:r,visible:!!go[t],delayVisible:!go[t]}};case "HIDE_MODAL":return {...e,[t]:{...e[t],visible:false}};case "DESTROY_MODAL":{let i={...e};return delete i[t],i}case "UPDATE_ARGS":return {...e,[t]:{...e[t],args:{...e[t].args,...r}}};case "SET_MODAL_STATES":return {...e,[t]:{...e[t],states:{...e.states,...o.payload.states}}};default:return e}},ym=()=>{let e=useContext(Ge),o=Object.keys(e).filter(r=>!!e[r]);o.forEach(r=>{!ce.has(r)&&go[r];});let t=o.filter(r=>ce.has(r)).map(r=>({id:r,...ce.get(r)}));return jsx(Fragment,{children:t.map(r=>{let i=r.comp;return jsx(i,{id:r.id,...r.props},r.id)})})},Cm=e=>{let[o,t]=useReducer(vm,Rl);return fo=t,jsxs(Ge.Provider,{value:o,children:[e.children,jsx(ym,{})]})};function Pm(e,o){let t=Qo(e);if(typeof e!="string"&&!ce.has(t)&&mo(t,e),fo(fm(t,o)),!ue[t]){let r,i,n=new Promise((a,s)=>{r=a,i=s;});ue[t]={resolve:r,reject:i,promise:n};}return ue[t].promise}function km(e){let o=Qo(e);if(fo(xm(o)),delete ue[o],!He[o]){let t,r,i=new Promise((n,a)=>{t=n,r=a;});He[o]={resolve:t,reject:r,promise:i};}return He[o].promise}function Sm(e){fo(bm(e)),delete ue[e],delete He[e];}function Rm(e,o){fo(wm(e,o));}function Im(e,o){fo(hm(e,o));}var G={show:Pm,hide:km,remove:Sm,setStates:Rm,updateArgs:Im};var zm=h({base:["oui-pointer-events-none oui-box-content"],variants:{intensity:{4:"oui-border-line-4",6:"oui-border-line-6",8:"oui-border-line",12:"oui-border-line-12",16:"oui-border-line-16"},direction:{horizontal:["oui-border-b"],vertical:["oui-border-l"]},lineStyle:{dashed:"oui-border-dashed",dotted:"oui-border-dotted"},mx:{2:"oui-mx-2",4:"oui-mx-4",6:"oui-mx-6",8:"oui-mx-8",10:"oui-mx-10"},my:{2:"oui-my-2",4:"oui-my-4",6:"oui-my-6",8:"oui-my-8",10:"oui-my-10"}},defaultVariants:{direction:"horizontal",intensity:4}}),de=ze__default.forwardRef((e,o)=>{let{className:t,intensity:r,direction:i,lineStyle:n,mx:a,my:s,...l}=e;return jsx("div",{ref:o,...l,className:zm({direction:i,intensity:r,className:t,lineStyle:n,mx:a,my:s})})});de.displayName="Divider";var ot=e=>{let{open:o,onOpenChange:t,classNames:r,contentProps:i,closable:n=true}=e,a=typeof e.title=="function"?e.title():e.title;return jsx(Ko,{open:o,onOpenChange:t,children:jsxs(po,{onOpenAutoFocus:s=>s.preventDefault(),className:r?.content,closeable:n,...i,children:[a&&jsxs(Fragment,{children:[jsx(Kt,{leading:e.leading,children:jsx(Qt,{children:a})}),jsx(de,{})]}),jsx(Ri,{className:r?.body,children:e.children})]})})};var Bm=pe(e=>{let{visible:o,hide:t,resolve:r,onOpenChange:i}=X();return jsx(ot,{open:o,onOpenChange:i,...e,children:e.content})}),Nl=e=>G.show(Bm,e);var We=tv({slots:{overlay:["oui-dialog-overlay","oui-fixed","oui-inset-0","oui-z-50","oui-bg-black/80","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0"],content:["oui-dialog-content","oui-fixed","oui-left-[50%]","oui-top-[50%]","oui-z-50","oui-w-full","oui-max-w-lg","oui-translate-x-[-50%]","oui-translate-y-[-50%]","oui-text-base-contrast-54","oui-px-4 lg:oui-px-5","oui-shadow-lg","oui-duration-200","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[state=closed]:oui-slide-out-to-left-1/2","data-[state=closed]:oui-slide-out-to-top-[48%]","data-[state=open]:oui-slide-in-from-left-1/2","data-[state=open]:oui-slide-in-from-top-[48%]","sm:oui-rounded-xl"],body:["oui-dialog-body","oui-py-4 lg:oui-py-5","oui-text-xs"],close:["oui-dialog-close-btn","oui-absolute","oui-right-4","oui-top-4","oui-ring-offset-background","oui-transition-opacity","hover:oui-opacity-100","disabled:oui-pointer-events-none"],header:["oui-dialog-header","oui-flex","oui-flex-col"],footer:["oui-dialog-footer","oui-flex","oui-flex-row","oui-justify-end","oui-space-x-2","oui-pb-5","oui-pt-2 lg:oui-pt-3"],title:["oui-dialog-title","oui-text-base","oui-min-h-11 lg:oui-min-h-[46px]","oui-flex","oui-items-center","oui-text-base-contrast"],desc:["oui-dialog-desc","oui-text-xs","oui-text-warning-darken","oui-pt-2","oui-text-center","oui-pb-3"]},variants:{size:{xs:{content:["oui-max-w-xs"]},sm:{content:["oui-max-w-sm"]},md:{content:["oui-max-w-md"]},lg:{content:["oui-max-w-lg"]},xl:{content:["oui-max-w-xl"]}},intensity:{100:{content:["oui-bg-base-1"]},200:{content:["oui-bg-base-2"]},300:{content:["oui-bg-base-3"]},400:{content:["oui-bg-base-4"]},500:{content:["oui-bg-base-5"]},600:{content:["oui-bg-base-6"]},700:{content:["oui-bg-base-7"]},800:{content:["oui-bg-base-8"]},900:{content:["oui-bg-base-9"]}}},defaultVariants:{intensity:800}}),rt=L.Root,zi=L.Trigger,Tl=L.Portal,Em=L.Close,Di=ze.forwardRef(({className:e,...o},t)=>{let{overlay:r}=We();return jsx(L.Overlay,{ref:t,className:r({className:e}),...o})});Di.displayName=L.Overlay.displayName;var xo=ze.forwardRef(({overlyClassName:e,className:o,children:t,size:r,closable:i=true,intensity:n,...a},s)=>{let{content:l,close:u}=We({className:o,size:r,intensity:n});return jsxs(Tl,{children:[jsx(Di,{className:e}),jsxs(L.Content,{ref:s,className:l({className:o}),...a,children:[t,i&&jsxs(L.Close,{className:u(),"data-testid":"oui-testid-dialog-content-close-btn",children:[jsx(Te,{size:16,color:"white",opacity:.98}),jsx("span",{className:"oui-sr-only",children:"Close"})]})]})]})});xo.displayName=L.Content.displayName;var bo=({className:e,...o})=>{let{header:t}=We();return jsx("div",{className:t({className:e}),...o})};bo.displayName="DialogHeader";var it=({className:e,...o})=>{let{body:t}=We();return jsx("div",{className:t({className:e}),...o})},Jt=({className:e,...o})=>{let{footer:t}=We();return jsx("div",{className:t({className:e}),...o})};Jt.displayName="DialogFooter";var ho=ze.forwardRef(({className:e,...o},t)=>{let{title:r}=We();return jsx(L.Title,{ref:t,className:r({className:e}),...o})});ho.displayName=L.Title.displayName;var wo=ze.forwardRef(({className:e,...o},t)=>{let{desc:r}=We();return jsx(L.Description,{ref:t,className:r({className:e}),...o})});wo.displayName=L.Description.displayName;var at=e=>{let{actions:o}=e,[t,r]=useState(o?.primary?.loading??false);if(useEffect(()=>(o?.primary?.loading&&r(o?.primary?.loading),()=>{r(false);}),[o?.primary?.loading]),!o)return null;let i=useMemo(()=>{let n=[];if(o.secondary&&typeof o.secondary.onClick=="function"){let{fullWidth:a=true,color:s="gray",label:l,...u}=o.secondary;n.push(jsx($e,{...u,"data-testid":o.secondary?.["data-testid"],color:s,fullWidth:a,children:l},"secondary"));}if(o.primary&&typeof o.primary.onClick=="function"){let{fullWidth:a=true,color:s,disabled:l,label:u,onClick:c,...m}=o.primary;n.push(jsx(Sr,{...m,"data-testid":o.primary?.["data-testid"],onClick:async g=>{if(!t)try{r(!0),await c(g);}catch{}finally{r(false);}},disabled:l||t,loading:t,fullWidth:a,color:s,children:u},"primary"));}return n},[o,t]);return jsx(Jt,{className:e.className,children:i})};var Pe=e=>{let o=typeof e.title=="function"?e.title():e.title;return jsx(rt,{open:e.open,onOpenChange:e.onOpenChange,children:jsxs(xo,{size:e.size,closable:e.closable,onOpenAutoFocus:t=>t.preventDefault(),onCloseAutoFocus:t=>t.preventDefault(),className:e.classNames?.content,overlyClassName:e.classNames?.overlay,...e.contentProps,children:[o&&jsxs(Fragment,{children:[jsx(bo,{children:jsx(ho,{children:o})}),jsx(de,{})]}),jsx(it,{className:e.classNames?.body,children:e.children}),typeof e.description<"u"&&jsx(wo,{children:e.description}),jsx(at,{actions:e.actions,className:e.classNames?.footer})]})})};function Bi(e){let o=n=>typeof window<"u"?window.matchMedia(n).matches:false,[t,r]=useState(o(e));function i(){r(o(e));}return useEffect(()=>{let n=window?.matchMedia(e);return i(),n?.addListener?n?.addListener(i):n?.addEventListener?.("change",i),()=>{n?.removeListener?n?.removeListener(i):n?.removeEventListener?.("change",i);}},[e]),t}function nt(){let e=Bi("(max-width: 768px)");return {isMobile:e,isDesktop:!e}}function Um(e,o){useEffect(()=>{if(!e)return;let t=new ResizeObserver(r=>{for(let i of r)o(i);});return t.observe(e),()=>{t.unobserve(e);}},[e]);}var _i=e=>{let[o]=H("dialog"),{title:t,message:r,open:i,onOpenChange:n,onOk:a,onCancel:s,okLabel:l=o.ok,cancelLabel:u=o.cancel,size:c,classNames:m}=e,{isMobile:g}=nt(),p=useMemo(()=>{if(typeof a!="function"&&typeof s!="function")return;let b={};return typeof s=="function"&&(b.secondary={label:u,onClick:s,size:"md",fullWidth:true,...e.actions?.secondary}),typeof a=="function"&&(b.primary={label:l,size:"md",fullWidth:true,className:"oui-w-full lg:oui-w-[154px]",onClick:a,...e.actions?.primary}),b},[a,s,l,u,e.actions]);return jsx(Pe,{open:i,title:t,size:c||(g?"xs":"sm"),actions:p,onOpenChange:n,classNames:{content:cnBase("oui-bg-base-8 oui-font-semibold oui-border oui-border-line-6","oui-p-4 oui-pt-0 lg:oui-p-5 lg:oui-pt-0",m?.content),body:cnBase("oui-py-4 lg:oui-py-5",m?.body),footer:cnBase("oui-justify-center oui-pb-0 oui-pt-2 lg:oui-pt-3",m?.footer)},children:r})};var $m=pe(e=>{let{onOk:o}=e,{visible:t,hide:r,resolve:i,reject:n,onOpenChange:a}=X(),s=useCallback(()=>Promise.resolve().then(o).then(r),[o]);return jsx(_i,{open:t,onOpenChange:a,...e,onOk:s})}),zl=e=>G.show($m,e);var Km=pe(e=>{let{visible:o,hide:t,resolve:r,reject:i,onOpenChange:n}=X();return jsx(Pe,{title:e.title,open:o,onOpenChange:n,size:e.size,closable:e.closable,children:e.content})}),Dl=e=>G.show(Km,e);var Jm=e=>jsxs(rt,{children:[jsx(zi,{asChild:true,children:e.trigger}),jsxs(xo,{size:e.size,closable:e.closable,onOpenAutoFocus:o=>o.preventDefault(),children:[e.title&&jsxs(Fragment,{children:[jsx(bo,{children:jsx(ho,{children:e.title})}),jsx(de,{})]}),jsx(it,{children:e.children}),typeof e.description<"u"&&jsx(wo,{children:e.description}),jsx(at,{actions:e.actions})]})]});function o0(e){return vo.create(o=>{let{visible:t,hide:r,resolve:i,reject:n,onOpenChange:a}=X(),{title:s,size:l,contentClassName:u,bodyClassName:c,closable:m,classNames:g,...p}=o;return jsx(Pe,{open:t,onOpenChange:a,size:l,title:s,closable:m,classNames:{content:u,body:c,...g},contentProps:{onInteractOutside:f=>{document.querySelector("#privy-dialog")&&f.preventDefault();}},children:jsx(e,{...p,close:r,resolve:i,reject:n})})})}function t0(e,o,t){vo.register(e,o0(o),t);}var Bl=pe(e=>{let{size:o}=e,{visible:t,hide:r,resolve:i,reject:n,onOpenChange:a}=X(),[s]=H("modal"),{isMobile:l}=nt(),u=l?"xs":"sm",c=typeof e.title=="function"?e.title():e.title;return jsx(Pe,{open:t,title:jsx(Q,{size:"base",weight:"semibold",children:c}),size:o||u,classNames:{content:e.contentClassName,body:e.bodyClassName,...e.classNames},closable:true,onOpenChange:m=>{m||n(),a(m);},actions:{primary:{label:e.okLabel??s.confirm,className:"oui-text-sm oui-font-semibold oui-w-[100%] oui-h-8","data-testid":"oui-testid-confirm-dialog-confirm-btn",onClick:()=>Promise.resolve().then(()=>typeof e.onOk=="function"?e.onOk():true).then(m=>{i(m),r();},m=>{n(m),r();})},secondary:{label:e.cancelLabel??s.cancel,className:"oui-text-sm oui-font-semibold oui-w-[100%] oui-h-8","data-testid":"oui-testid-confirm-dialog-cancel-btn",onClick:()=>Promise.resolve().then(()=>typeof e.onCancel=="function"?e.onCancel():Promise.reject("cancel")).then(m=>{i(m),r();},m=>{n(m),r();})}},children:jsx("div",{className:"oui-text-2xs lg:oui-text-sm",children:e.content})})}),Ll=e=>G.show(Bl,e);var vo={create:pe,register:mo,unregister:kl,...G,confirm:Ll,alert:zl,sheet:Nl,dialog:Dl};function r0(e){return vo.create(o=>{let{title:t,leading:r,classNames:i,contentProps:n,closable:a,...s}=o,{visible:l,hide:u,resolve:c,reject:m,onOpenChange:g,args:p}=X();return jsx(ot,{open:l,onOpenChange:g,title:t,leading:r,classNames:i,closable:a,contentProps:n,children:jsx(e,{...s,close:u,resolve:c,reject:m})})})}function i0(e,o,t){vo.register(e,r0(o),t);}var s0=e=>{let{action:o}=e,t=useCallback(()=>{typeof o.onClick=="function"?o.onClick(o):e.onClick?.({...o,index:e.index});},[o]),r=useMemo(()=>o.label,[o.label]);return jsx("div",{className:cnBase("oui-flex oui-justify-center oui-items-center oui-text-lg oui-h-[52px] oui-cursor-pointer",e.active&&"oui-text-primary-darken"),onClick:t,children:r})},l0=e=>jsx("div",{className:"oui-relative oui-h-[1px] oui-bg-base-300 oui-mt-[-1px]"}),u0=e=>jsx(Fragment,{children:e.actionSheets.map((o,t)=>o.type==="division"?jsx(l0,{},t):jsxs(Fragment$1,{children:[o.value==="cancel"&&jsx("div",{className:"oui-h-2 oui-bg-base-10"}),jsx(s0,{onClick:r=>{r.value!=="cancel"&&(typeof o.onClick=="function"?o.onClick(o):(e.onValueChange?.(r.value),e.onClose?.()));},index:t,action:o,active:typeof e.value<"u"&&e.value.value===o.value}),t<e.actionSheets.length-1&&jsx(de,{className:"oui-border-base-contrast/10"})]},o.value||t))}),Ai=e=>{let[o]=H("modal"),t=useMemo(()=>{let r=[];if(Array.isArray(e.actionSheets))for(let i of e.actionSheets)typeof i=="string"?i==="Cancel"?r.push({label:o.cancel,value:"cancel",onClick:()=>{e.onClose?.();}}):i==="Confirm"?r.push({label:o.confirm,value:"confirm"}):i.startsWith("---")&&r.push({label:"---",value:"---",type:"division"}):r.push(i);return r},[e.actionSheets]);return jsxs(Ko,{open:e.open,onOpenChange:e.onOpenChange,children:[typeof e.children<"u"&&jsx(ki,{asChild:true,children:e.children}),jsx(po,{closeable:false,className:"oui-action-sheet-content !oui-p-0 oui-pb-[env(safe-area-inset-bottom)]",onOpenAutoFocus:r=>r.preventDefault(),children:jsx(u0,{actionSheets:t,onClose:e.onClose,onValueChange:e.onValueChange,value:e.value})})]})};var m0=h({base:"oui-flex oui-flex-row oui-items-stretch oui-rounded-md oui-cursor-pointer oui-border oui-border-line-6 oui-bg-line-4 oui-text-base-contrast-54",variants:{size:{sm:"oui-px-2 oui-h-[22px] oui-text-2xs",md:"oui-px-2 oui-h-[24px] oui-text-2xs",base:"oui-px-3 oui-h-[40px]",lg:"oui-px-6 oui-py-3"},fullWidth:{true:"oui-w-full"},disabled:{true:"oui-opacity-50 oui-cursor-not-allowed"},color:{base:"oui-text-base-contract",buy:"oui-text-trade-profit",sell:"oui-text-trade-loss"}},defaultVariants:{size:"base",color:"base"}}),Hi=forwardRef((e,o)=>{let{size:t,color:r,value:i,label:n,placeholder:a,className:s,options:l,fullWidth:u,disabled:c,valueRenderer:m,...g}=e,[p,f]=useState(false),b=useMemo(()=>{if(i&&i.value)return i;if(typeof i=="number"||typeof i=="string"){let S=l.find(R=>R.value===i);if(S)return S}},[i,l]),T=useMemo(()=>b?b.label:a||n||"",[b,n,a]),x=useMemo(()=>[...l,"---","Cancel"],[l]);return jsx(Ai,{actionSheets:x,onOpenChange:f,open:p,onClose:()=>f(false),value:b,onValueChange:g.onValueChange,children:typeof m=="function"?m(b?.value||g.defaultValue,{open:p,data:b?.data}):jsxs("div",{className:cnBase("oui-space-x-1","oui-text-base-contrast-54","oui-rounded-md","oui-bg-base-8",m0({size:t,color:r,fullWidth:u,disabled:c||l.length===0,className:s})),children:[jsx("div",{className:"oui-flex oui-flex-1 oui-items-center oui-justify-start oui-text-2xs oui-text-inherit",children:T}),jsx("div",{className:"oui-flex oui-items-center",children:p?jsx(vt,{size:14,color:"white"}):jsx(wt,{size:14,color:"white"})})]})})});var x0=e=>jsx("div",{children:jsx(jo,{size:"xs",...e,mode:"single",onChange:o=>{}})}),b0=e=>{let{onChange:o,...t}=e;return jsx("div",{className:"oui-min-w-[180px]",children:jsx(Xo,{size:"xs",...t,onChange:i=>{typeof o=="function"&&o(i);}})})},h0=e=>{let{onChange:o,type:t,isCombine:r,...i}=e;switch(t){case "select":return jsx("div",{className:"oui-min-w-24",children:r?jsx(Vt,{size:"xs",...i,onValueChange:o}):jsx(ao,{size:"xs",...i,onValueChange:o})});case "date":return jsx(x0,{...i});case "range":return jsx(b0,{...i,onChange:o});case "symbol":return jsx("div",{});case "picker":return jsx(Hi,{...i,onValueChange:o});case "input":default:return jsx("div",{children:"No Component"})}},w0=e=>jsxs(z,{justify:"start",gapX:3,py:3,width:"100%",className:cnBase("oui-data-filter-bar oui-border-b oui-border-line",e.className),children:[e.items.filter(Boolean).map((o,t)=>(o.type==="date"&&(o.mode="range"),jsx(h0,{...o,onChange:r=>{e.onFilter({name:o.name??o.type,value:r});}},t))),e.trailing&&jsx("div",{className:"oui-flex oui-flex-1 oui-justify-end",children:e.trailing})]});var k0=e=>{let o=useRef(0),[t,r]=useState(e?.page??1),[i,n]=useState(e?.pageSize??10),a=useCallback(c=>{if(n(c),o.current>0){let m=Math.ceil(o.current/c);t>m&&r(m);}},[t]),s=c=>{let m=c?.total??o.current;o.current=m;let g=c?.records_per_page??i,p=m?Math.ceil(m/g):0,f=Math.min(c?.current_page??t,p);return {count:m,page:f,pageSize:g,pageTotal:p}},l=useCallback(c=>({...s(c),onPageChange:r,onPageSizeChange:a}),[t,i]),u=useMemo(()=>({page:t,pageSize:i,onPageChange:r,onPageSizeChange:a}),[l]);return useEffect(()=>{e?.resetPageWhenPageSizeChange!==false&&r(1);},[i,e?.resetPageWhenPageSizeChange]),{page:t,pageSize:i,setPage:r,setPageSize:a,parseMeta:s,pagination:u,parsePagination:l}};function S0(){return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none",viewBox:"0 0 64 64",children:[jsx("rect",{width:"36",height:"48",x:"18",y:"5",fill:"#07080A",rx:"4"}),jsx("rect",{width:"36",height:"48",x:"11",y:"12",fill:"url(#paint0_linear_309_13641)",rx:"4"}),jsx("rect",{width:"36",height:"48",x:"9",y:"10",fill:"url(#paint1_linear_309_13641)",rx:"4"}),jsx("path",{fill:"#303237",d:"M36.636 53.323V50H6v3.323C6 55.91 7.943 58 10.462 58H41c-2.392 0-4.364-2.168-4.364-4.663"}),jsx("rect",{width:"9",height:"2",x:"15",y:"16",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"16",height:"2",x:"15",y:"24",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"12",height:"3",x:"28",y:"29",fill:"#45484E",rx:"1.5"}),jsx("path",{fill:"#45484E",d:"M33 23a2 2 0 012-2h1.5a1.5 1.5 0 010 3H34a1 1 0 01-1-1z"}),jsx("rect",{width:"9",height:"3",x:"29",y:"37",fill:"#45484E",rx:"1.5"}),jsx("rect",{width:"13",height:"2",x:"15",y:"30",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"15",height:"2",x:"15",y:"36",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"24",height:"2",x:"15",y:"42",fill:"#3F4146",rx:"1"}),jsx("path",{fill:"#181A1D",fillRule:"evenodd",d:"M27.24 30.022a12.451 12.451 0 1122.195 9.87l5.328 5.328-1.58 1.58-5.241-5.24a12.452 12.452 0 01-20.703-11.537zm14.193 12.39A10.156 10.156 0 1037.47 22.49a10.156 10.156 0 003.963 19.92z",clipRule:"evenodd"}),jsx("path",{fill:"#54565B",fillRule:"evenodd",d:"M27.24 29.022a12.451 12.451 0 1122.195 9.87l5.328 5.328-1.58 1.58-5.241-5.24a12.452 12.452 0 01-20.703-11.537zm14.193 12.39A10.156 10.156 0 1037.47 21.49a10.156 10.156 0 003.963 19.92z",clipRule:"evenodd"}),jsx("path",{fill:"#16181B",d:"M51.755 43.867c-.99.99-.99 2.596 0 3.586l3.754 3.754a2.536 2.536 0 103.586-3.586l-3.754-3.754a2.536 2.536 0 00-3.586 0z"}),jsx("path",{fill:"#4E525C",d:"M51.755 42.867c-.99.99-.99 2.596 0 3.586l3.754 3.754a2.536 2.536 0 103.586-3.586l-3.754-3.754a2.536 2.536 0 00-3.586 0z"}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_309_13641",x1:"27.286",x2:"48.844",y1:"55.742",y2:"25.703",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#0C0D10"}),jsx("stop",{offset:"1",stopColor:"#121418"})]}),jsxs("linearGradient",{id:"paint1_linear_309_13641",x1:"25.286",x2:"46.844",y1:"53.742",y2:"23.703",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#1B1D22"}),jsx("stop",{offset:"1",stopColor:"#26292E"})]})]})]})}var Hl=S0;var or=e=>{let[o]=H("empty");return jsxs(z,{itemAlign:"center",direction:"column",gapY:4,className:e.className,children:[jsx(W,{children:jsx(Hl,{})}),jsx(Q,{as:"div",intensity:36,size:"2xs",children:e.title??o.description})]})};Yo({name:"emptyDataIdentifier",positions:["emptyDataIdentifier"]})(or);var Wl={};yr(Wl,{DownloadFeature:()=>Gl});var Gl={createTable:e=>{e.getPlainTextData=()=>{let o=e.getAllColumns().filter(i=>i.columnDef.meta.type!=="action").map(i=>{let{title:n,plantTextTitle:a}=i.columnDef.meta;return a||n}),t=e.getRowModel().rows.map(i=>i.getVisibleCells().filter(n=>n.column.columnDef.meta.type!=="action").map(n=>{let{original:a,index:s}=n.row,{renderPlantText:l}=n.column.columnDef.meta||{},u=n.getValue();return typeof l=="function"&&(u=l(u,a,s)),`"${u}"`}));return [o,...t]},e.download=o=>{let t=e.getPlainTextData();N0(t,o);};}};function I0(e){return e.map(o=>o.join(",")).join(`
32
- `)}function N0(e,o=`${Date.now()}.csv`){let t=I0(e),r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),n=document.createElement("a");n.href=i,n.setAttribute("download",o),n.click(),URL.revokeObjectURL(i);}var Wi=h({slots:{list:["oui-header-list","oui-flex","oui-items-center"],content:["oui-ring-offset-background","focus-visible:oui-outline-none","focus-visible:oui-ring-2","focus-visible:oui-ring-ring","focus-visible:oui-ring-offset-2"],trigger:["oui-tab-trigger","oui-inline-flex","oui-items-center","oui-justify-center","oui-whitespace-nowrap","oui-box-content","oui-font-medium","oui-text-base-contrast-36 hover:oui-text-base-contrast-54","oui-ring-offset-background","oui-transition-all","oui-space-x-1","focus-visible:oui-outline-none","focus-visible:oui-ring-2","focus-visible:oui-ring-ring","focus-visible:oui-ring-offset-2","disabled:oui-pointer-events-none","disabled:oui-opacity-50"],icon:["oui-text-inherit"]},variants:{variant:{text:{list:["oui-space-x-6","oui-border-b","oui-border-line-6","oui-px-1"],trigger:["oui-pb-2","oui-relative","data-[state=active]:oui-text-base-contrast","data-[state=active]:after:oui-content-['']","data-[state=active]:after:oui-block","data-[state=active]:after:oui-h-[3px]","data-[state=active]:after:oui-bg-white","data-[state=active]:after:oui-absolute","data-[state=active]:after:oui-rounded-full","data-[state=active]:after:-oui-bottom-0","data-[state=active]:after:oui-left-0","data-[state=active]:after:oui-right-0"]},contained:{list:["oui-space-x-[6px]"],trigger:["oui-rounded","oui-px-3","oui-bg-base-7 hover:oui-bg-base-5","oui-text-base-contrast-36","data-[state=active]:oui-bg-base-5","data-[state=active]:oui-text-base-contrast"],icon:["oui-text-inherit"]}},size:{sm:{},md:{},lg:{},xl:{}}},compoundVariants:[{size:"sm",variant:"text",className:{trigger:["oui-text-sm","oui-h-5"],icon:["oui-w-[10px]","oui-h-[10px]"]}},{size:"md",variant:"text",className:{trigger:["oui-text-base","oui-h-6"],icon:["oui-w-3","oui-h-3"]}},{size:"lg",variant:"text",className:{trigger:["oui-text-lg","oui-h-7"],icon:["oui-w-[14px]","oui-h-[14px]"]}},{size:"xl",variant:"text",className:{trigger:["oui-text-lg","oui-h-7"],icon:["oui-w-4","oui-h-4"]}},{size:"sm",variant:"contained",className:{list:["oui-space-x-1"],trigger:["oui-text-2xs","oui-h-6"],icon:["oui-w-[10px]","oui-h-[10px]"]}},{size:"md",variant:"contained",className:{trigger:["oui-text-2xs","oui-h-7"],icon:["oui-w-3","oui-h-3"]}},{size:"lg",variant:"contained",className:{trigger:["oui-text-sm","oui-h-8","oui-rounded-md"],icon:["oui-w-[14px]","oui-h-[14px]"]}},{size:"xl",variant:"contained",className:{trigger:["oui-text-base","oui-h-9","oui-rounded-md"],icon:["oui-w-4","oui-h-4"]}}],defaultVariants:{size:"md",variant:"text"}}),Zi=ie.Root,tr=ze.forwardRef(({className:e,size:o,variant:t,...r},i)=>{let{list:n}=Wi({size:o,variant:t});return jsx(ie.List,{ref:i,className:n({className:e}),...r})});tr.displayName=ie.List.displayName;var rr=ze.forwardRef(({className:e,size:o,children:t,icon:r,variant:i,...n},a)=>{let{trigger:s,icon:l}=Wi({size:o,variant:i});return jsxs(ie.Trigger,{ref:a,className:s({className:e}),...n,children:[typeof r<"u"?ze.cloneElement(r,{className:l(),opacity:1}):null,jsx("span",{children:t})]})});rr.displayName=ie.Trigger.displayName;var ir=ze.forwardRef(({className:e,size:o,...t},r)=>{let{content:i}=Wi({size:o});return jsx(ie.Content,{ref:r,className:i({className:e}),...t})});ir.displayName=ie.Content.displayName;var Zl=e=>(useEffect(()=>{if(e.components&&Object.keys(e.components).length)for(let o in e.components){let t=e.components[o];Yo({name:t.displayName??`custom-component-${o}`,positions:[o],__isInternal:false})(r=>jsx(t,{...r}));}},[e.components]),e.children);var Yl=createContext({}),Yi=()=>useContext(Yl),B0=e=>{let o=(t,r)=>e.overrides?.[t]||r;return jsx(Yl.Provider,{value:{getComponentTheme:o},children:jsx(Zl,{components:e.components,children:e.children})})};function Xl(e){let[o,t]=useState(false),[r,i]=useState(0),[n,a]=useState(0);return {handleMouseDown:c=>{e.current&&(t(true),i(c.pageX-e.current.offsetLeft),a(e.current.scrollLeft));},handleMouseMove:c=>{if(!o||!e.current)return;c.preventDefault();let g=c.pageX-e.current.offsetLeft-r;e.current.scrollLeft=n-g;},handleMouseUp:()=>{t(false);},isDragging:o}}function ql(){let[e,o]=useState(false),[t,r]=useState(false),i=useRef(null);return useEffect(()=>{if(!i.current)return;let a=()=>{let u=i.current;u&&(o(u.scrollLeft>0),r(u.scrollLeft+u.clientWidth<u.scrollWidth));},s=new IntersectionObserver(u=>{u.forEach(c=>{c.isIntersecting&&a();});}),l=i.current;return l.addEventListener("scroll",a),s.observe(l),()=>{l.removeEventListener("scroll",a),s.disconnect();}},[]),useEffect(()=>{if(!i.current)return;let a=new IntersectionObserver(s=>{s.forEach(l=>{l.isIntersecting;});});return a.observe(i.current),()=>{a.disconnect();}},[]),{containerRef:i,leadingVisible:e,tailingVisible:t,onScoll:a=>{a==="left"?i.current?.scrollBy({left:-100,behavior:"smooth"}):i.current?.scrollBy({left:100,behavior:"smooth"});}}}var ji=e=>{let{visible:o,leading:t,tailing:r,onClick:i}=e;return o?jsxs("button",{onClick:()=>{i?.(t?"left":"right");},className:cnBase(t?"oui-scroll-indicator-leading":"oui-scroll-indicator-tailing","oui-group oui-flex","oui-absolute oui-top-0 oui-bottom-0",t&&"oui-left-0 oui-flex-row-reverse",r&&"oui-right-0"),children:[jsx("div",{className:cnBase("oui-w-6 oui-h-full","oui-bg-[linear-gradient(90deg,rgba(var(--oui-color-base-9)_/_0)_0%,rgba(var(--oui-color-base-9)_/_1)_100%)]",t&&"oui-rotate-180")}),jsx("div",{className:cnBase("oui-flex oui-justify-center oui-items-center","oui-w-3 oui-bg-base-9 oui-h-full"),children:jsx(_0,{className:cnBase("oui-text-base-contrast-54 group-hover:oui-text-base-contrast",t&&"oui-rotate-180")})})]}):null},_0=e=>jsx("svg",{width:"6",height:"14",viewBox:"0 0 6 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{d:"M1.194.025C.944-.026.675-.005.446.15a1.027 1.027 0 0 0-.28 1.406l3.612 5.437L.166 12.43c-.305.459-.177 1.1.28 1.406a1.02 1.02 0 0 0 1.401-.281l3.986-6a1.03 1.03 0 0 0 0-1.125l-3.986-6C1.695.2 1.444.075 1.194.025"})});var qi=e=>{let{containerRef:o,leadingVisible:t,tailingVisible:r,onScoll:i}=ql(),{handleMouseDown:n,handleMouseMove:a,handleMouseUp:s,isDragging:l}=Xl(o);return jsxs("div",{className:cnBase("oui-scroll-indicator","oui-relative oui-select-none oui-overflow-hidden",e.className),children:[jsx("div",{ref:o,className:cnBase("oui-hide-scrollbar oui-overflow-x-scroll",l?"oui-cursor-grabbing":"oui-cursor-grab"),onMouseDown:n,onMouseMove:a,onMouseUp:s,onMouseLeave:s,children:e.children}),jsx(ji,{leading:true,onClick:i,visible:t}),jsx(ji,{tailing:true,onClick:i,visible:r})]})};var Jl=createContext({}),eu=e=>{let{getComponentTheme:o}=Yi(),{classNames:t,contentVisible:r=true,variant:i,showScrollIndicator:n,...a}=e,s=o("tabs",{variant:"contained"}),l=i||s.variant,[u,c]=useState({}),m=p=>{c(f=>({...f,[p.value]:p}));},g=()=>{let p=jsx(tr,{variant:l,size:a.size,className:cnBase("oui-flex-1 oui-border-0",t?.tabsList),children:Object.keys(u).map(f=>{let b=u[f];return jsx(rr,{value:b.value,icon:b.icon,variant:l,size:a.size,"data-testid":b.testid,className:t?.trigger,children:b.title},f)})});return n?jsx(qi,{className:t?.scrollIndicator,children:p}):p};return jsxs(Jl.Provider,{value:{registerTab:m},children:[e.children,jsxs(Zi,{...a,children:[jsxs(z,{justify:"between",itemAlign:"center",width:"100%",className:cnBase(l!=="contained"&&"oui-border-b oui-border-b-line-6",t?.tabsListContainer),children:[e.leading,g(),e.trailing]}),r&&Object.keys(u).map(p=>{let f=u[p];return jsx(ir,{value:f.value,className:t?.tabsContent,children:f.content},p)})]})]})};eu.displayName="Tabs";var ou=e=>{let{title:o,value:t,icon:r,testid:i}=e,{registerTab:n}=useContext(Jl);return useEffect(()=>{let a={title:o,value:t,icon:r,testid:i,content:e.children};n(a);},[e.children,o,t]),null};ou.displayName="TabPanel";var W0=h({base:["oui-card-root","oui-card","oui-rounded-xl","oui-shadow","oui-text-base-contrast","oui-p-6"],variants:{...ft.variants},defaultVariants:{intensity:900}}),lr=ze__default.forwardRef(({className:e,intensity:o,children:t,...r},i)=>jsx("div",{ref:i,className:W0({intensity:o,className:e}),...r,children:t}));lr.displayName="CardBase";var ur=ze__default.forwardRef(({className:e,children:o,...t},r)=>jsx("div",{ref:r,className:cnBase("oui-card-header oui-flex oui-flex-col oui-space-y-1.5",e),...t,children:o}));ur.displayName="CardHeader";var cr=ze__default.forwardRef(({className:e,children:o,...t},r)=>jsx("h3",{ref:r,className:cnBase("oui-card-header-title oui-text-lg oui-font-semibold oui-leading-none oui-tracking-tight",e),...t,children:o}));cr.displayName="CardTitle";var Z0=ze__default.forwardRef(({className:e,children:o,...t},r)=>jsx("p",{ref:r,className:cnBase("oui-text-muted-foreground oui-text-sm",e),...t,children:o})),pr=ze__default.forwardRef(({className:e,children:o,...t},r)=>jsx("div",{ref:r,className:cnBase("oui-card-content oui-pt-4",e),...t,children:o}));pr.displayName="CardContent";var dr=ze__default.forwardRef(({className:e,children:o,...t},r)=>jsx("div",{ref:r,className:e,...t,children:o}));dr.displayName="CardFooter";var tu=forwardRef((e,o)=>{let{title:t,children:r,footer:i,classNames:n,...a}=e;return jsxs(lr,{...a,className:n?.root,ref:o,children:[jsx(ur,{className:n?.header,children:typeof t=="string"?jsx(cr,{children:t}):t}),jsx(pr,{className:n?.content,children:r}),i&&jsx(dr,{className:n?.footer,children:i})]})});tu.displayName="Card";var X0=ae.Root,j0=ae.Trigger,au=ze.forwardRef(({className:e,align:o="center",sideOffset:t=4,...r},i)=>jsx(ae.Content,{ref:i,align:o,sideOffset:t,className:cnBase("oui-z-[100] oui-w-64 oui-rounded-md oui-bg-base-8 oui-p-3 oui-text-base-contrast oui-shadow-md oui-outline-none data-[state=open]:oui-animate-in data-[state=closed]:oui-animate-out data-[state=closed]:oui-fade-out-0 data-[state=open]:oui-fade-in-0 data-[state=closed]:oui-zoom-out-95 data-[state=open]:oui-zoom-in-95 data-[side=bottom]:oui-slide-in-from-top-2 data-[side=left]:oui-slide-in-from-right-2 data-[side=right]:oui-slide-in-from-left-2 data-[side=top]:oui-slide-in-from-bottom-2",e),...r}));au.displayName=ae.Content.displayName;var $0=e=>{let{content:o,open:t,defaultOpen:r,onOpenChange:i,children:n,...a}=e;return jsxs(X0,{open:t,defaultOpen:r,onOpenChange:i,children:[jsx(j0,{asChild:true,children:n}),jsx(ae.Portal,{children:jsxs(au,{...a,children:[o,jsx(ae.Arrow,{width:11,height:5,className:"oui-fill-base-4"})]})})]})};$0.displayName="HoverCard";var q0=jo;q0.range=Xo;function nu(e,[o,t]){return Math.min(t,Math.max(o,e))}function fr(e,o,t){let r=t-o;if(r===0)return nu(0,[0,100]);let n=100/r*(e-o);return nu(n,[0,100])}function K0(e,o){return t=>{let r=(o[1]-o[0])/(e[1]-e[0]);return o[0]+r*(t-e[0])}}function su(e,o,t){let r=e/2,n=K0([0,50],[0,r]);return (r-n(o)*t)*t}var eg=h({slots:{root:"oui-relative oui-flex oui-w-full oui-touch-none oui-select-none oui-items-center",thumb:["oui-block","oui-h-[10px]","oui-w-[10px]","oui-rounded-full","oui-border-[2px]","oui-border-primary","oui-bg-base-6","oui-shadow","oui-group","oui-transition-colors","focus-visible:oui-outline-none","focus:oui-shadow-[0_0_0_8px]","focus:oui-shadow-base-contrast/20","focus:oui-h-[14px]","focus:oui-w-[14px]","data-[disabled]:oui-pointer-events-none","data-[disabled]:oui-border-base-2","data-[disabled]:oui-hidden"],track:"oui-relative oui-h-[8px] oui-w-full oui-grow oui-overflow-hidden oui-rounded-full",trackInner:"oui-absolute oui-left-0 oui-right-0 oui-h-[2px] oui-top-[3px] oui-pointer-events-none oui-bg-base-2",range:"oui-absolute oui-h-[2px] oui-top-[3px] oui-bg-primary data-[disabled]:oui-bg-base-2",mark:"oui-absolute oui-top-[1px] oui-w-[6px] oui-h-[6px] oui-rounded oui-border oui-border-base-2 oui-bg-base-6 oui-pointer-events-none oui-translate-x-[-50%]",tips:["oui-absolute","oui-hidden","oui-rounded","oui-drop-shadow","oui-w-[36px]","oui-h-[19px]","oui-translate-x-[-12px]","oui-top-[-28px]","oui-font-semibold","oui-text-center","group-focus:oui-inline-block","after:oui-block","after:oui-absolute","after:oui-bottom-[-8px]","after:oui-w-0","after:oui-h-0","after:oui-border-4","after:oui-left-1/2","after:oui-translate-x-[-50%]","after:oui-border-solid","after:oui-border-transparent","after:oui-border-t-inherit","oui-text-base-5","oui-text-2xs"]},variants:{color:{primary:{thumb:["oui-border-primary","oui-bg-base-5"],range:"oui-bg-primary",tips:"oui-bg-primary after:oui-border-t-primary"},primaryLight:{thumb:["oui-border-primary-light","oui-bg-base-5"],range:"oui-bg-primary-light",tips:"oui-bg-primary-light after:oui-border-t-primary-light"},buy:{thumb:["oui-border-success","oui-bg-base-5"],range:"oui-bg-success",tips:["oui-bg-success after:oui-border-t-success"]},sell:{thumb:["oui-border-danger","oui-bg-base-5"],range:"oui-bg-danger",tips:["oui-bg-danger after:oui-border-t-danger"]}}}}),Ji=ze.forwardRef(({className:e,color:o,marks:t,markCount:r,classNames:i,markLabelVisible:n,showTip:a,onValueChange:s,value:l,...u},c)=>{let{track:m,range:g,thumb:p,root:f,trackInner:b,mark:T,tips:x}=eg({color:o}),[S,R]=ze.useState(l);ze.useEffect(()=>{R(y=>!y||l?.some((A,j)=>A!==y[j])?l:y);},[l]);let v=useMemo(()=>{if(Array.isArray(t)&&t.length>0)return t;let y=u.max;if(y||(y=100),typeof r<"u"){let A=[],j=y/r,K=r-1;for(let ne=0;ne<=K;ne++){let w=ne*j;A.push({value:w,label:`${w}`});}return A.push({value:y,label:"100"}),A}return []},[t,r,u.max]),D=y=>{R(y),s?.(y);};return jsxs(ke.Root,{ref:c,className:f({className:e}),value:s?l:S,onValueChange:s||D,...u,children:[jsxs(ke.Track,{className:m({className:i?.track}),children:[jsx("div",{className:b()}),jsx(ke.Range,{className:g({className:i?.range})})]}),Array.isArray(v)&&v.length>0&&jsx(og,{value:S,color:o,marks:v,isInnerMask:!Array.isArray(t)||t.length===0,markLabelVisible:n,disabled:u.disabled,className:T(),step:u.step}),jsx(ke.Thumb,{className:p({className:cnBase(i?.thumb,"oui-slider-thumb")}),children:a&&jsx(tg,{value:S,className:x({color:o}),max:u.max??100,min:0,tipFormatter:u.tipFormatter})})]})});Ji.displayName=ke.Root.displayName;var og=e=>{let{marks:o,value:t,isInnerMask:r,markLabelVisible:i,className:n,color:a="primary"}=e,s=useMemo(()=>t?.[0]??0,[t]),l=useMemo(()=>{if(!(typeof e.step>"u"))return Math.floor(s/e.step)},[s,e.step]),u=useMemo(()=>{switch(a){case "primary":return "oui-border-primary oui-bg-primary";case "buy":return "oui-border-trade-profit oui-bg-trade-profit";case "sell":return "oui-border-trade-loss oui-bg-trade-loss";case "primaryLight":return "oui-border-primary-light oui-bg-primary-light"}},[a]),c=useMemo(()=>{switch(a){case "primary":return "oui-text-primary";case "buy":return "oui-texttrade-profit";case "sell":return "oui-text-trade-loss";case "primaryLight":return "oui-text-primary-light"}},[a]);return jsx(Fragment,{children:o?.map((m,g)=>{let p=fr(g,0,o.length-1),f=su(6,p,1),b=r?m.value:g,x=(r?s>=b:(l??0)>=b)&&s>=0&&!e.disabled?u:"";return jsxs(Fragment$1,{children:[jsx("span",{className:cnBase(n,x),style:{left:`calc(${p}% + ${f}px)`}}),!e.disabled&&i&&jsx("span",{"data-testid":`oui-testid-slider-mark-label-${m.label}`,className:cnBase("oui-absolute oui-top-[16px] oui-text-2xs xl:oui-text-xs oui-text-base-contrast-54 oui-cursor-pointer oui-translate-x-[-50%]",l===g&&c),style:{left:`calc(${p}% + ${f}px)`},children:m.label},g)]},g)})})},tg=e=>{let{className:o,min:t,max:r}=e,i=e.value?.[0]??0,n=fr(i,t,r);return jsx("span",{className:o,style:{lineHeight:"19px"},children:e.tipFormatter?.(i,t,r,n)??`${n.toFixed()}%`})},lu=ze.forwardRef((e,o)=>{let t=useMemo(()=>[e.value],[e.value]);return jsx(Ji,{...e,value:t,ref:o,onValueChange:typeof e.onValueChange=="function"?r=>{e.onValueChange(r[0]);}:void 0,onValueCommit:typeof e.onValueCommit=="function"?r=>{e.onValueCommit(r[0]);}:void 0})});lu.displayName="SingleSlider";var uu=Ji;uu.single=lu;var oa=ze__default.forwardRef((e,o)=>{let{opacity:t=1,viewBox:r="0 0 20 20",...i}=e;return jsx(d,{ref:o,viewBox:r,...i,children:jsx("path",{d:"M10 1.628a8.333 8.333 0 1 0-.001 16.666 8.333 8.333 0 0 0 0-16.666m-2.5 5c.212 0 .435.071.598.234L10 8.762l1.9-1.9a.85.85 0 0 1 .6-.234c.213 0 .436.071.6.234a.86.86 0 0 1 0 1.198l-1.902 1.901 1.901 1.9a.86.86 0 0 1 0 1.2.86.86 0 0 1-1.198 0L10 11.158 8.097 13.06a.86.86 0 0 1-1.198 0 .857.857 0 0 1 0-1.198L8.8 9.96l-1.9-1.9a.857.857 0 0 1 0-1.2.84.84 0 0 1 .6-.233",fill:"#FF447C",fillOpacity:t})})}),ta=ze__default.forwardRef((e,o)=>{let{opacity:t=1,viewBox:r="0 0 20 20",...i}=e;return jsx(d,{ref:o,viewBox:r,...i,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.678 10a8.333 8.333 0 1 1 16.667-.001 8.333 8.333 0 0 1-16.667 0m12.477-3.907c.189-.18.448-.26.697-.26s.507.08.697.26c.38.362.38.969 0 1.33l-6.793 6.473a1.033 1.033 0 0 1-1.394 0l-2.911-2.774a.92.92 0 0 1 0-1.33 1.034 1.034 0 0 1 1.395 0l2.213 2.11z",fill:"#00B49E"})})}),ra=ze__default.forwardRef((e,o)=>{let{opacity:t=1,viewBox:r="0 0 20 20",...i}=e;return jsx(d,{ref:o,viewBox:r,...i,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 3.333c0-.46.373-.833.833-.833A7.5 7.5 0 1 1 2.5 10a.833.833 0 0 1 1.667 0A5.834 5.834 0 1 0 10 4.167a.833.833 0 0 1-.833-.834",fill:"#4774F6",fillOpacity:t})})});oa.displayName="ToasterErrorIcon";ta.displayName="ToastSuccessIcon";ra.displayName="ToastLoadingIcon";var sg=e=>jsx(Toaster,{toastOptions:{duration:3e3,success:{iconTheme:{primary:"rgba(123, 220, 138, 1)",secondary:"rgba(25, 14, 44, 1)"},style:{background:"rgba(40, 46, 58, 1)"}},loading:{duration:5e3,style:{background:"rgba(40, 46, 58, 1)"}},error:{iconTheme:{primary:"rgba(217, 91, 129, 1)",secondary:"rgba(25, 14, 44, 1)"},style:{background:"rgba(40, 46, 58, 1)"}}},...e,containerClassName:cnBase("!top-[62px] md:!top-[80px] oui-font-semibold",e.className),children:o=>jsx(ToastBar,{toast:o,style:{...o.style,color:"rgba(255, 255, 255, 0.8)",borderRadius:"6px",wordBreak:"break-all",maxWidth:800,boxShadow:"0px 4px 8px 0px rgba(0, 0, 0, 0.36)"},children:({icon:t,message:r})=>{let i=t;return o.type==="error"?i=jsx(oa,{className:"w-[16px] h-[16px] md:w-[24px] md:h-[24px]"}):o.type==="success"?i=jsx(ta,{size:20}):o.type==="loading"&&(i=jsx("div",{className:"oui-animate-rotate-360 oui-rounded-full",children:jsx(ra,{className:"w-[16px] h-[16px] md:w-[24px] md:h-[24px]"})})),jsxs("div",{className:"oui-flex oui-items-center oui-padding-[12px] md:oui-padding-[16px]",children:[i,jsx("div",{className:"oui-text-base oui-px-[2px]",children:r}),jsx("button",{onClick:()=>toast.dismiss(o.id),className:"oui-hidden md:oui-block",children:jsx(Te,{size:16,className:" oui-text-base-contrast-54"})})]})}})});var ug=e=>jsxs(z,{direction:"column",itemAlign:"start",className:cnBase("oui-gap-[2px]",e.classNames?.className),children:[jsx(Q,{size:"base",intensity:80,className:e.classNames?.titleClassName,children:e.title}),(e.subtitle?.length||0)>0&&jsx(Q,{size:"xs",intensity:54,className:e.classNames?.subtitleClassName,children:e.subtitle})]});function mu(e,o){let t=useRef(),r=useRef(o);r.current=o,useEffect(()=>{let i={root:null,rootMargin:"0px",threshold:0},n=a=>{a.forEach(s=>{s.isIntersecting&&r.current?.();});};return t.current=new IntersectionObserver(n,i),()=>{t.current?.disconnect();}},[]),useEffect(()=>{t.current?.observe(e.current);},[]);}var gg=(e,o)=>{let t=useRef(null),r=useRef(null);mu(t,()=>{e.isLoading||e.loadMore?.();});let i=useMemo(()=>Array.isArray(e.dataSource)&&e.dataSource.length<=0,[e.dataSource]),n=useMemo(()=>e.dataSource?i?e.emptyView||jsx(z,{direction:"column",height:"100%",itemAlign:"center",justify:"center",mt:3,children:jsx(or,{})}):e.dataSource.map((s,l)=>jsx(ze__default.Fragment,{children:e.renderItem(s,l,e.extraData)},l)):null,[i,e.dataSource,e.extraData,e.emptyView]),a=useMemo(()=>(e.dataSource?.length||0)===0||!e.isLoading?null:jsx("div",{className:"oui-flex oui-py-2 oui-justify-center oui-items-center",children:jsx(Re,{})}),[e.isLoading,e.dataSource]);return useImperativeHandle(o,()=>({scroll:s=>{r.current?.scroll({left:s.x,top:s.y,behavior:"smooth"});}})),jsxs("div",{style:e.style,ref:r,className:cn("oui-relative oui-min-h-[180px] oui-custom-scrollbar oui-overflow-auto",e.className)({twMerge:true}),children:[jsx("div",{className:cn("oui-space-y-3 oui-h-full oui-w-full",i&&"oui-absolute oui-left-0 oui-right-0 oui-top-0 oui-bottom-0",e.contentClassName)({twMerge:true}),children:n}),jsx("div",{ref:t,className:"oui-relative oui-invisible oui-h-[1px] oui-top-[-300px]"}),a]})},fg=forwardRef(gg);var aa=Ro.Root,na=Ro.CollapsibleTrigger,sa=e=>jsx(Ro.CollapsibleContent,{...e,className:cnBase(e.className,"data-[state=open]:oui-animate-collapsible-down data-[state=closed]:oui-animate-collapsible-up oui-overflow-hidden")});var la=createContext({}),xu=()=>useContext(la);var hu=e=>{let{activeKey:o,setActiveKey:t}=xu(),r=useMemo(()=>typeof e.header=="string"?jsxs("div",{className:cnBase("oui-py-2 oui-border-b oui-border-divider flex items-center oui-group oui-cursor-pointer",e.headerClassName),children:[jsx("div",{className:"oui-flex-1 group-data-[state=open]:oui-font-semibold",children:e.header}),jsx(ChevronDown,{size:16,className:"group-data-[state=open]:oui-rotate-180 oui-transition-transform"})]}):e.header,[e.header,e.headerClassName]);return jsxs(aa,{disabled:e.disabled,open:e.itemKey===o,onOpenChange:i=>{t(i?e.itemKey:"");},children:[jsx(na,{asChild:true,children:r}),jsx(sa,{className:"oui-py-3",children:e.children})]})};var Cg=e=>{let[o,t]=useState(e.activeKey??"");return jsx(la.Provider,{value:{activeKey:o,setActiveKey:t},children:e.children})},wu=Cg;wu.panel=hu;var Pg=wu;var ua=M.Root,ca=M.Trigger,Rg=M.Group,pa=M.Portal,Ig=M.Sub,Ng=M.RadioGroup,ct=tv({slots:{content:["oui-z-50","oui-min-w-[8rem]","oui-overflow-hidden","oui-rounded-xl","oui-p-1","oui-bg-base-8","oui-text-base-contrast","oui-shadow-md","oui-border","oui-border-line-6","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"],item:["oui-relative","oui-flex","oui-cursor-default","oui-select-none","oui-items-center","oui-px-2","oui-py-1.5","oui-text-sm","oui-outline-none","oui-transition-colors","hover:oui-bg-base-5","focus:oui-bg-accent","focus:oui-text-accent-foreground","data-[disabled]:oui-pointer-events-none","data-[disabled]:oui-opacity-50"],label:"oui-px-2 oui-py-1.5 oui-text-sm oui-font-semibold",separator:"-oui-mx-1 oui-my-1 oui-h-px oui-bg-muted",shortcut:"oui-ml-auto oui-text-xs oui-tracking-widest oui-opacity-60"},variants:{size:{xs:{content:"oui-rounded",item:["oui-px-2","oui-py-1.5","oui-h-6","oui-rounded","oui-text-2xs"]},sm:{content:"oui-rounded",item:["oui-px-2","oui-py-1.5","oui-h-6","oui-rounded","oui-text-2xs"]},md:{content:"oui-rounded-md",item:["oui-px-4","oui-py-3","oui-h-6","oui-rounded"]},lg:{content:"oui-rounded-lg",item:["oui-px-4","oui-py-3","oui-h-6","oui-rounded-md"]},xl:{content:"oui-rounded-xl",item:["oui-px-4","oui-py-3","oui-h-10","oui-rounded-lg","oui-text-base"]}},inset:{true:{item:["oui-pl-8"],label:["oui-pl-8"]}}},defaultVariants:{inset:false,size:"lg"}}),br=ze.forwardRef(({className:e,sideOffset:o=4,size:t,...r},i)=>{let{content:n}=ct({size:t});return jsx(M.Portal,{children:jsx(M.Content,{ref:i,sideOffset:o,className:n({className:e}),...r})})});br.displayName=M.Content.displayName;var hr=ze.forwardRef(({className:e,inset:o,size:t,...r},i)=>{let{item:n}=ct({size:t});return jsx(M.Item,{ref:i,className:n({className:e,inset:o}),...r})});hr.displayName=M.Item.displayName;var vu=ze.forwardRef(({className:e,inset:o,...t},r)=>{let{label:i}=ct({inset:o});return jsx(M.Label,{ref:r,className:i({className:e}),...t})});vu.displayName=M.Label.displayName;var yu=ze.forwardRef(({className:e,...o},t)=>{let{separator:r}=ct();return jsx(M.Separator,{ref:t,className:r({className:e}),...o})});yu.displayName=M.Separator.displayName;var Cu=({className:e,...o})=>{let{shortcut:t}=ct();return jsx("span",{className:t({className:e}),...o})};Cu.displayName="DropdownMenuShortcut";var Mg=e=>{let{currentValue:o,menu:t,render:r,size:i,children:n,...a}=e,s=useMemo(()=>typeof e.render=="function"?e.menu.map((l,u)=>e.render?.(l,u)):e.menu.map(l=>jsx(hr,{textValue:l.value,onSelect:u=>{e.onSelect?.(l);},size:i,"data-testid":l.testId,children:jsxs(z,{justify:"between",width:"100%",children:[l.label,o==l.value&&jsx(W,{width:4,height:4,gradient:"primary",r:"full"})]})},l.value)),[e.menu,e.render,o]);return jsxs(ua,{children:[jsx(ca,{asChild:true,children:n}),jsx(pa,{children:jsx(br,{onCloseAutoFocus:l=>{l.preventDefault();},size:i,...a,children:s})})]})};var Vg=memo(e=>{let{value:o,children:t,left:r}=e;return useMemo(()=>!!(typeof o=="function"?o():o),[o])?t:r});var Bg=e=>{let{value:o,case:t,default:r,...i}=e,n=typeof o=="function"?o():o;if(typeof t=="function"){let s=t(n);return s?jsx(Slot,{children:s,...i}):typeof r>"u"?void 0:jsx(Slot,{children:r,...i})}let a=Object.keys(t);for(;a.length;){let s=a.pop();if(s===n.toString())return jsx(Slot,{children:t[s],...i})}return jsx(Slot,{children:r,...i})};var Lg=(e,o)=>typeof e>"u"||e===null?o??void 0:e.charAt(0).toUpperCase()+e.slice(1);var ku={};yr(ku,{default:()=>Eg});var Eg={};
31
+ var Eu=Object.defineProperty;var Cr=(e,o)=>{for(var t in o)Eu(e,t,{get:o[t],enumerable:true});};var dt={variants:{gap:{0:"oui-gap-0",1:"oui-gap-1",2:"oui-gap-2",3:"oui-gap-3",4:"oui-gap-4",5:"oui-gap-5",6:"oui-gap-6",8:"oui-gap-8",10:"oui-gap-10"},gapX:{0:"oui-gap-x-0",1:"oui-gap-x-1",2:"oui-gap-x-2",3:"oui-gap-x-3",4:"oui-gap-x-4",5:"oui-gap-x-5",6:"oui-gap-x-6",8:"oui-gap-x-8",10:"oui-gap-x-10"},gapY:{0:"oui-gap-y-0",1:"oui-gap-y-1",2:"oui-gap-y-2",3:"oui-gap-y-3",4:"oui-gap-y-4",5:"oui-gap-y-5",6:"oui-gap-y-6",8:"oui-gap-y-8",10:"oui-gap-y-10"}}};var h=createTV({twMergeConfig:{prefix:"oui-"}});var fa={variants:{p:{0:"oui-p-0",1:"oui-p-1",2:"oui-p-2",3:"oui-p-3",4:"oui-p-4",5:"oui-p-5",6:"oui-p-6",7:"oui-p-7",8:"oui-p-8",9:"oui-p-9",10:"oui-p-10"},px:{0:"oui-px-0",1:"oui-px-1",2:"oui-px-2",3:"oui-px-3",4:"oui-px-4",5:"oui-px-5",6:"oui-px-6",7:"oui-px-7",8:"oui-px-8",9:"oui-px-9",10:"oui-px-10"},py:{0:"oui-py-0",1:"oui-py-1",2:"oui-py-2",3:"oui-py-3",4:"oui-py-4",5:"oui-py-5",6:"oui-py-6",7:"oui-py-7",8:"oui-py-8",9:"oui-py-9",10:"oui-py-10"},pt:{0:"oui-pt-0",1:"oui-pt-1",2:"oui-pt-2",3:"oui-pt-3",4:"oui-pt-4",5:"oui-pt-5",6:"oui-pt-6",7:"oui-pt-7",8:"oui-pt-8",9:"oui-pt-9",10:"oui-pt-10"},pb:{0:"oui-pb-0",1:"oui-pb-1",2:"oui-pb-2",3:"oui-pb-3",4:"oui-pb-4",5:"oui-pb-5",6:"oui-pb-6",7:"oui-pb-7",8:"oui-pb-8",9:"oui-pb-9",10:"oui-pb-10"},pl:{0:"oui-pl-0",1:"oui-pl-1",2:"oui-pl-2",3:"oui-pl-3",4:"oui-pl-4",5:"oui-pl-5",6:"oui-pl-6",7:"oui-pl-7",8:"oui-pl-8",9:"oui-pl-9",10:"oui-pl-10"},pr:{0:"oui-pr-0",1:"oui-pr-1",2:"oui-pr-2",3:"oui-pr-3",4:"oui-pr-4",5:"oui-pr-5",6:"oui-pr-6",7:"oui-pr-7",8:"oui-pr-8",9:"oui-pr-9",10:"oui-pr-10"},m:{0:"oui-m-0",1:"oui-m-1",2:"oui-m-2",3:"oui-m-3",4:"oui-m-4",5:"oui-m-5",6:"oui-m-6",7:"oui-m-7",8:"oui-m-8",9:"oui-m-9",10:"oui-m-10"},mx:{0:"oui-mx-0",1:"oui-mx-1",2:"oui-mx-2",3:"oui-mx-3",4:"oui-mx-4",5:"oui-mx-5",6:"oui-mx-6",7:"oui-mx-7",8:"oui-mx-8",9:"oui-mx-9",10:"oui-mx-10"},my:{0:"oui-my-0",1:"oui-my-1",2:"oui-my-2",3:"oui-my-3",4:"oui-my-4",5:"oui-my-5",6:"oui-my-6",7:"oui-my-7",8:"oui-my-8",9:"oui-my-9",10:"oui-my-10"},mt:{0:"oui-mt-0",1:"oui-mt-1",2:"oui-mt-2",3:"oui-mt-3",4:"oui-mt-4",5:"oui-mt-5",6:"oui-mt-6",7:"oui-mt-7",8:"oui-mt-8",9:"oui-mt-9",10:"oui-mt-10"},mb:{0:"oui-mb-0",1:"oui-mb-1",2:"oui-mb-2",3:"oui-mb-3",4:"oui-mb-4",5:"oui-mb-5",6:"oui-mb-6",7:"oui-mb-7",8:"oui-mb-8",9:"oui-mb-9",10:"oui-mb-10"},ml:{0:"oui-ml-0",1:"oui-ml-1",2:"oui-ml-2",3:"oui-ml-3",4:"oui-ml-4",5:"oui-ml-5",6:"oui-ml-6",7:"oui-ml-7",8:"oui-ml-8",9:"oui-ml-9",10:"oui-ml-10"},mr:{0:"oui-mr-0",1:"oui-mr-1",2:"oui-mr-2",3:"oui-mr-3",4:"oui-mr-4",5:"oui-mr-5",6:"oui-mr-6",7:"oui-mr-7",8:"oui-mr-8",9:"oui-mr-9",10:"oui-mr-10"},grow:{true:"oui-grow"}}};var xa=e=>{let{width:o,height:t,angle:r,left:i,top:n,bottom:a,right:s,...l}=e,u=Object.create(null);return r&&(u["--oui-gradient-angle"]=`${r}deg`),je("--oui-width",o,u),je("--oui-height",t,u),je("--oui-left",i,u),je("--oui-right",s,u),je("--oui-top",n,u),je("--oui-bottom",a,u),{...l,style:{...l.style,...u}}};function je(e,o,t){typeof o<"u"&&(t[e]=Hu(o));}function Hu(e){return typeof e=="number"?`${e}px`:e}var mt=e=>{let{angle:o}=e;return {"--oui-gradient-angle":o?`${o}deg`:"180deg"}};var gt={variants:{shadow:{sm:"oui-shadow-sm",base:"oui-shadow",md:"oui-shadow-md",lg:"oui-shadow-lg",xl:"oui-shadow-xl","2xl":"oui-shadow-2xl",inner:"oui-shadow-inner",none:"oui-shadow-none"}}};var ft={variants:{border:{true:"oui-border oui-border-line"},r:{none:"oui-rounded-none",sm:"oui-rounded-sm",base:"oui-rounded",md:"oui-rounded-md",lg:"oui-rounded-lg",xl:"oui-rounded-xl","2xl":"oui-rounded-2xl",full:"oui-rounded-full"},gradient:{primary:"oui-gradient-primary",secondary:"oui-gradient-secondary",brand:"oui-gradient-brand",success:"oui-gradient-success",warning:"oui-gradient-warning",danger:"oui-gradient-danger",neutral:"oui-gradient-neutral"},intensity:{100:"oui-bg-base-1",200:"oui-bg-base-2",300:"oui-bg-base-3",400:"oui-bg-base-4",500:"oui-bg-base-5",600:"oui-bg-base-6",700:"oui-bg-base-7",800:"oui-bg-base-8",900:"oui-bg-base-9"},borderColor:{4:"oui-border-line-4",6:"oui-border-line-6",8:"oui-border-line",12:"oui-border-line-12",16:"oui-border-line-16"}}};var ba={variants:{position:{static:"oui-static",fixed:"oui-fixed",absolute:"oui-absolute",relative:"oui-relative",sticky:"oui-sticky"},zIndex:{0:"oui-z-0",10:"oui-z-10",20:"oui-z-20",30:"oui-z-30",40:"oui-z-40",50:"oui-z-50",auto:"oui-z-auto"}}};var ha={variants:{invisible:{true:"oui-invisible"}}};var Pr=h({base:["oui-box"],variants:{...fa.variants,...gt.variants,...ft.variants,...ba.variants,...ha.variants,__position:{true:"oui-position"},__size_width:{true:"oui-size-width"},__size_height:{true:"oui-size-height"}},defaultVariants:{__position:false,__size:false}}),W=Le__default.forwardRef((e,o)=>{let{asChild:t=false,as:r="div",className:i,p:n,px:a,py:s,pt:l,pb:u,pl:c,pr:m,m:g,mx:p,my:f,mr:b,mt:T,mb:x,ml:S,grow:R,zIndex:v,style:V,shadow:y,border:H,gradient:j,r:K,invisible:ne,intensity:w,position:z,borderColor:A,...Be}=xa(e);return jsx(t?Slot:r,{style:V,className:Pr({className:i,p:n,r:K,px:a,py:s,pt:l,pb:u,pr:m,pl:c,m:g,mx:p,my:f,mt:T,mb:x,ml:S,mr:b,zIndex:v,shadow:y,border:H,gradient:j,position:z,intensity:w,invisible:ne,grow:R,borderColor:A,__position:typeof z<"u",__size_width:typeof e.width<"u",__size_height:typeof e.height<"u"}),...Be,ref:o})});W.displayName="Box";var Zu=h({variants:{...dt.variants}}),wa=h({extend:Zu,base:["oui-flex"],variants:{display:{flex:"oui-flex",inlineFlex:"oui-inline-flex"},direction:{row:"oui-flex-row",rowReverse:"oui-flex-row-reverse",column:"oui-flex-col",columnReverse:"oui-flex-col-reverse"},itemAlign:{start:"oui-items-start",end:"oui-items-end",center:"oui-items-center",baseline:"oui-items-baseline",stretch:"oui-items-stretch"},justify:{start:"oui-justify-start",end:"oui-justify-end",center:"oui-justify-center",between:"oui-justify-between",around:"oui-justify-around",evenly:"oui-justify-evenly",stretch:"oui-justify-stretch"},wrap:{noWrap:"oui-flex-nowrap",wrap:"oui-flex-wrap",wrapReverse:"oui-flex-wrap-reverse"}},defaultVariants:{display:"flex",direction:"row",itemAlign:"center",justify:"start",wrap:"noWrap"}},{responsiveVariants:true}),L=forwardRef((e,o)=>{let{className:t,display:r,gap:i,gapX:n,gapY:a,wrap:s,justify:l,itemAlign:u,direction:c,...m}=e;return jsx(W,{ref:o,className:wa({className:t,display:r,gap:i,gapX:n,gapY:a,wrap:s,justify:l,itemAlign:u,direction:c}),...m})});L.displayName="Flex";var ya=tv({base:"oui-text-gray-200 oui-animate-spin dark:oui-text-gray-600 oui-fill-primary-darken",variants:{size:{xs:"oui-w-3 oui-h-3",sm:"oui-w-4 oui-h-4",md:"oui-w-6 oui-h-6",lg:"oui-w-8 oui-h-8",xl:"oui-w-10 oui-h-10"},color:{primary:"oui-fill-primary-darken",success:"oui-fill-success",danger:"oui-fill-danger",warning:"oui-fill-warning-darken",gray:"oui-fill-gray",darkGray:"oui-fill-darkGray",white:"oui-fill-white"}},defaultVariants:{size:"lg",color:"primary"}}),Re=e=>{let{size:o,color:t,loading:r=true,children:i,className:n}=e;return r?jsxs("span",{role:"status",className:"oui-inline-block",children:[jsxs("svg",{"aria-hidden":"true",className:ya({size:o,className:n,color:t}),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor",fillOpacity:.2}),jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),jsx("span",{className:"oui-sr-only",children:"Loading..."})]}):jsx(Fragment,{children:i})};var Sr=Le__default.forwardRef((e,o)=>{let{asChild:t=false,children:r,loading:i,leading:n,trailing:a,size:s,icon:l,disabled:u,...c}=e,m=t?Slot:"button",g=typeof u<"u"?u:i,p=useMemo(()=>l?Le__default.cloneElement(l,{size:s==="xs"||s==="sm"?12:s==="md"?14:s==="lg"?16:s==="xl"?18:12,className:"oui-text-inherit",opacity:i?0:1}):null,[s,l]),f=useMemo(()=>!n&&!a&&!p?r:jsxs(L,{as:"span",itemAlign:"center",className:"oui-space-x-1",children:[n,p,jsx("span",{children:r}),a]}),[r,n,a,p]),b=useMemo(()=>{switch(s){case "xl":return "md";case "lg":return "md";case "md":return "sm";case "sm":case "xs":return "xs";default:return "md"}},[s]);return jsx(m,{...c,disabled:g,ref:o,children:i?jsxs(Fragment,{children:[jsx("span",{className:"oui-invisible",children:f}),jsx(L,{itemAlign:"center",justify:"center",position:"absolute",as:"span",children:jsx(Re,{size:b,color:"white"})})]}):f})});Sr.displayName="BaseButton";var bt=tv({base:["oui-button","oui-inline-flex","oui-items-center","oui-justify-center","oui-whitespace-nowrap","oui-transition-colors","disabled:oui-cursor-not-allowed","disabled:oui-bg-base-3","disabled:oui-text-base-contrast-36","disabled:hover:oui-bg-base-3"],variants:{...gt.variants,variant:{text:"oui-bg-transparent",outlined:"oui-border",contained:"oui-text-white",gradient:"oui-gradient-brand oui-text-[rgba(0,0,0,0.88)]"},size:{xs:["oui-px-2","oui-rounded","oui-h-6","oui-text-2xs"],sm:["oui-px-3","oui-rounded","oui-h-7","oui-text-2xs"],md:["oui-px-3","oui-rounded-md","oui-h-8","oui-text-sm"],lg:["oui-px-3","oui-rounded-md","oui-h-10","oui-text-base"],xl:["oui-px-4","oui-rounded-lg","oui-h-13","oui-text-lg"]},color:{primary:["hover:oui-bg-primary-darken/80 active:oui-bg-primary-darken/70"],secondary:"hover:oui-bg-base-4/80 active:oui-bg-base-4/70",success:"hover:oui-bg-success/80 active:oui-bg-success/70",buy:"hover:oui-bg-success/80 active:oui-bg-success/70",danger:"hover:oui-bg-danger/80 active:oui-bg-danger/70",sell:"hover:oui-bg-danger/80 active:oui-bg-danger/70",warning:"hover:oui-bg-warning-darken/80 active:oui-bg-warning-darken/70",gray:"hover:oui-bg-base-2/80 active:oui-bg-base-2/70",light:"hover:oui-bg-white/80 active:oui-bg-white/50 disable:oui-bg-white/20"},fullWidth:{true:"oui-w-full"}},compoundVariants:[{variant:"contained",color:"primary",className:["oui-bg-primary-darken","oui-text-primary-contrast"]},{variant:"contained",color:"secondary",className:["oui-bg-base-4","oui-text-primary-contrast"]},{variant:"contained",color:"success",className:["oui-bg-success","oui-text-success-contrast"]},{variant:"contained",color:"buy",className:["oui-bg-trade-profit","oui-text-success-contrast"]},{variant:"contained",color:"warning",className:["oui-bg-warning-darken","oui-text-warning-contrast"]},{variant:"contained",color:"danger",className:["oui-bg-danger","oui-text-danger-contrast"]},{variant:"contained",color:"sell",className:["oui-bg-trade-loss","oui-text-danger-contrast"]},{variant:"contained",color:"gray",className:["oui-bg-base-2","oui-text-base-contrast"]},{variant:"contained",color:"light",className:["oui-bg-white","oui-text-black/[.88]","disabled:oui-bg-white/30 hover:disabled:oui-bg-white/30 disabled:oui-text-black/[.36]"]},{variant:"outlined",color:"primary",className:["oui-border-primary-darken","oui-text-primary-darken","hover:oui-bg-primary-darken/20"]},{variant:"outlined",color:"secondary",className:["oui-border-base-4","oui-text-base-contrast-54","hover:oui-bg-base-4/20"]},{variant:"outlined",color:"success",className:["oui-border-success","oui-text-success","hover:oui-bg-success/20"]},{variant:"outlined",color:"warning",className:["oui-border-warning-darken","oui-text-warning-contrast","hover:oui-bg-warning-darken/20"]},{variant:"outlined",color:"danger",className:["oui-border-danger","oui-text-danger","hover:oui-bg-danger/20"]},{variant:"outlined",color:"gray",className:["oui-border-base-2","oui-text-base"]},{variant:"text",color:"primary",className:["oui-text-primary-darken hover:oui-bg-primary-darken/10"]},{variant:"text",color:"success",className:["oui-text-success hover:oui-bg-success/10"]},{variant:"text",color:"warning",className:["oui-text-warning-contrast hover:oui-bg-warning-darken/10"]},{variant:"text",color:"danger",className:["oui-text-danger hover:oui-bg-danger/10"]},{variant:"text",color:"gray",className:["oui-text-base hover:oui-bg-base-2/10"]},{variant:"text",color:"secondary",className:["oui-text-base-contrast-36 hover:oui-bg-base-2/10"]}],defaultVariants:{size:"lg",variant:"contained",color:"primary"}},{responsiveVariants:["md","lg"]}),$e=Le__default.forwardRef(({className:e,variant:o,size:t,color:r,fullWidth:i,shadow:n,angle:a,style:s,...l},u)=>{let c=mt({angle:a});return jsx(Sr,{className:bt({variant:o,size:t,color:r,className:e,fullWidth:i,shadow:n}),size:t,ref:u,style:{...s,...c},...l})});$e.displayName="Button";var Rr=Le__default.forwardRef(({onClick:e,throttleDuration:o=700,...t},r)=>{let i=useRef(0),a=useCallback((s,l)=>function(...u){let c=Date.now();c-i.current>=s&&(i.current=c,l?.(...u));},[o])(o,e);return jsx($e,{onClick:a,ref:r,...t})});var ka=h({extend:dt,base:["oui-grid"],variants:{cols:{1:"oui-grid-cols-1",2:"oui-grid-cols-2",3:"oui-grid-cols-3",4:"oui-grid-cols-4",5:"oui-grid-cols-5",6:"oui-grid-cols-6",7:"oui-grid-cols-7",8:"oui-grid-cols-8",9:"oui-grid-cols-9",none:"oui-grid-cols-none"},rows:{1:"oui-grid-rows-1",2:"oui-grid-rows-2",3:"oui-grid-rows-3",4:"oui-grid-rows-4",5:"oui-grid-rows-5",6:"oui-grid-rows-6",7:"oui-grid-rows-7",8:"oui-grid-rows-8",9:"oui-grid-rows-9",none:"oui-grid-rows-none"},autoFlow:{row:"oui-grid-flow-row",col:"oui-grid-flow-col",rowDense:"oui-grid-flow-row-dense",colDense:"oui-grid-flow-col-dense"},gap:{0:"oui-gap-0",1:"oui-gap-1",2:"oui-gap-2",3:"oui-gap-3",4:"oui-gap-4",5:"oui-gap-5"},gapX:{0:"oui-gap-x-0",1:"oui-gap-x-1",2:"oui-gap-x-2",3:"oui-gap-x-3",4:"oui-gap-x-4",5:"oui-gap-x-5"},gapY:{0:"oui-gap-y-0",1:"oui-gap-y-1",2:"oui-gap-y-2",3:"oui-gap-y-3",4:"oui-gap-y-4",5:"oui-gap-y-5"}},defaultVariants:{}}),Ir=Le__default.forwardRef((e,o)=>{let{className:t,cols:r,rows:i,gap:n,gapX:a,gapY:s,autoFlow:l,...u}=e;return jsx(W,{ref:o,...u,className:ka({className:t,cols:r,rows:i,gap:n,gapX:a,gapY:s,autoFlow:l})})});Ir.displayName="Grid";var sc=h({variants:{colSpan:{auto:"oui-col-auto",1:"oui-col-span-1",2:"oui-col-span-2",3:"oui-col-span-3",4:"oui-col-span-4",5:"oui-col-span-5",6:"oui-col-span-6",7:"oui-col-span-7",8:"oui-col-span-8",9:"oui-col-span-9"},rowSpan:{auto:"oui-row-auto",1:"oui-row-span-1",2:"oui-row-span-2",3:"oui-row-span-3",4:"oui-row-span-4",5:"oui-row-span-5",6:"oui-row-span-6",7:"oui-row-span-7",8:"oui-row-span-8",9:"oui-row-span-9"}}}),Sa=e=>{let{colSpan:o,rowSpan:t,className:r,...i}=e,n=useRef(null);return useEffect(()=>{if(n.current){let a=n.current.parentElement;!a||a.classList.contains("oui-grid");}},[]),jsx(W,{ref:n,...i,className:sc({colSpan:o,rowSpan:t,className:r})})};var Ra=Ir;Ra.span=Sa;var Na=h({variants:{size:{"3xs":["oui-text-3xs"],"2xs":["oui-text-2xs"],xs:["oui-text-xs"],sm:["oui-text-sm"],base:["oui-text-base"],lg:["oui-text-lg"],xl:["oui-text-xl"],"2xl":["oui-text-2xl"],"3xl":["oui-text-3xl"],"4xl":["oui-text-4xl"],"5xl":["oui-text-5xl"],"6xl":["oui-text-6xl"]},weight:{regular:["oui-font-normal"],semibold:["oui-font-semibold"],bold:["oui-font-bold"]},color:{inherit:"oui-text-inherit",neutral:"oui-text-base-contrast-54",primary:"oui-text-primary",primaryLight:"oui-text-primary-light",secondary:"oui-text-secondary",tertiary:"oui-text-tertiary",warning:"oui-text-warning-darken",danger:"oui-text-danger",success:"oui-text-success",buy:"oui-text-trade-profit",sell:"oui-text-trade-loss",lose:"oui-text-trade-loss",withdraw:"oui-text-trade-loss",profit:"oui-text-trade-profit",deposit:"oui-text-trade-profit"},intensity:{12:"oui-text-base-contrast-12",20:"oui-text-base-contrast-20",36:"oui-text-base-contrast-36",54:"oui-text-base-contrast-54",80:"oui-text-base-contrast-80",98:"oui-text-base-contrast"},dashBoard:{default:"oui-border-b oui-border-dashed oui-border-base-contrast-12"}}}),ee=Le__default.forwardRef((e,o)=>{let{children:t,className:r,asChild:i,as:n="span",color:a,size:s,weight:l,intensity:u,...c}=e;return jsx(Slot,{"data-accent-color":a,...c,ref:o,className:Na({className:r,color:a,size:s,weight:l,intensity:u}),children:i?t:jsx(n,{children:t})})});ee.displayName="Text";var Tr=(e,o={})=>{let{rule:t,dp:r,tick:i,rm:n=Decimal.ROUND_DOWN,padding:a=true,abs:s}=o;if(Number.isNaN(e))return "--";if(r=typeof r<"u"?r:i?getPrecisionByNumber(i):2,t==="human")return numberToHumanStyle(typeof e=="number"?e:Number(e),r);let l=new Decimal(e);if(s&&(l=l.abs()),t==="percentages")return Ta(l.mul(100),{dp:r,rm:n,padding:a})+"%";let u=Ta(l,{dp:r,rm:n,padding:a});return t==="price"?commify(u):u?.includes("e")?new Decimal(u)?.toFixed():u};function Ta(e,o){let{dp:t,rm:r,padding:i}=o;return r==="truncate"?todpIfNeed(e.toString(),t):i?e.toFixed(t,r):e.todp(t,r).toString()}function Mr(e,o){if(e==null)return "";let[t,r]=o??[6,4],i=new RegExp(`^(.{${t}})(.*)(.{${r}})$`);return `${e.replace(i,"$1...$3")}`}var Va=e=>["percentages","price","human"].includes(e),qe=e=>{let{rule:o="price",coloring:t,dp:r,tick:i,suffix:n,prefix:a,visible:s,unit:l,currency:u,rm:c,padding:m=true,showIdentifier:g=false,identifiers:p,className:f,unitClassName:b,placeholder:T,masking:x,ignoreDP:S,...R}=e,v=Number(e.children),V=useMemo(()=>e.children==="-"?e.children:isNaN(v)?T??"--":typeof s<"u"&&!s?x??"*****":S?e.showIdentifier?Math.abs(v).toString():v:Tr(v,{rule:o,dp:r,tick:i,rm:c,padding:m,abs:g}),[v,s,i,r]),y=R.color||"inherit",H=useMemo(()=>!t||typeof s<"u"&&!s||Number.isNaN(v)?y:v===0?"neutral":v<0?"lose":"profit",[t,v,R.color,e.visible]),j=useMemo(()=>!g||Number.isNaN(v)||v===0||typeof s<"u"&&!s?null:v<0?p?.loss?p.loss:jsx("span",{children:"-"}):p?.profit?p.profit:jsx("span",{children:"+"}),[v,e.visible,g]),K=useMemo(()=>{if(typeof n>"u"&&typeof a>"u"&&typeof l>"u"&&typeof u>"u"&&!g)return V;let ne=n?typeof n=="string"?jsx("span",{children:n}):n:void 0,w=l?jsx("span",{className:cnBase("orderly-numeral-unit",b),children:l}):void 0,z=a||(u?jsx("span",{children:u}):void 0),A=jsxs(Fragment,{children:[V,w]});return jsxs(Fragment,{children:[z,typeof j<"u"?jsxs("span",{children:[j,jsx("span",{children:A})]}):jsx("span",{children:A}),ne]})},[V,n,l,a,j,b]);return jsx(ee,{...R,color:H,className:cnBase("oui-tabular-nums",f),children:K})};var Dr=h({slots:{root:"oui-text-base oui-flex oui-flex-col",label:"oui-text-xs oui-text-base-contrast-36",value:""},variants:{align:{start:{root:"oui-items-start"},end:{root:"oui-items-end"}}},defaultVariants:{align:"start"}}),Br=Le__default.forwardRef((e,o)=>{let{label:t}=Dr({});return jsx("div",{ref:o,className:t({className:cnBase("oui-statistic-label",e.className)}),children:e.children})});Br.displayName="StatisticLabel";var Da=Le__default.forwardRef((e,o)=>{let{label:t,valueProps:r,align:i,className:n,classNames:a,children:s,...l}=e,{root:u,value:c}=Dr({align:i}),m=useMemo(()=>{if(typeof s=="string"||typeof s=="number"){let{className:g,...p}=r??{};return jsx(qe,{...p,className:cnBase(c({className:g}),"oui-font-semibold",!r?.coloring&&"oui-text-base-contrast-80"),children:s})}return s},[s,r]);return jsxs("div",{...l,className:u({className:cnBase(n,a?.root)}),ref:o,children:[jsx(Br,{className:a?.label,children:t}),m]})});Da.displayName="Statistic";var wc=tv({variants:{color:{primary:"oui-text-primary-darken",success:"oui-text-success",danger:"oui-text-danger",warning:"oui-text-warning-darken",white:"oui-text-white",black:"oui-text-black",inherit:"oui-text-inherit"}},defaultVariants:{color:"black"}}),d=Le__default.forwardRef((e,o)=>{let{size:t=24,color:r,className:i,children:n,...a}=e;return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 24 24",ref:o,className:wc({className:i,color:r}),...a,children:n})});var _r=h({slots:{root:"oui-relative oui-flex oui-shrink-0 oui-overflow-hidden oui-rounded-full",image:"oui-aspect-square oui-h-full oui-w-full",fallback:"oui-flex oui-h-full oui-w-full oui-items-center oui-justify-center oui-rounded-full oui-bg-base-2"},variants:{size:{"2xs":{root:"oui-w-4 oui-h-4"},xs:{root:"oui-w-5 oui-h-5"},sm:{root:"oui-w-6 oui-h-6"},md:{root:"oui-w-8 oui-h-8"},lg:{root:"oui-w-10 oui-h-10"},xl:{root:"oui-w-12 oui-h-12"}}},defaultVariants:{size:"sm"}}),Er=Le.forwardRef(({className:e,size:o,...t},r)=>{let{root:i}=_r({size:o});return jsx(fe.Root,{ref:r,...t,className:i({className:e})})});Er.displayName=fe.Root.displayName;var Fr=Le.forwardRef(({className:e,...o},t)=>{let{image:r}=_r();return jsx(fe.Image,{ref:t,className:r({className:e}),...o})});Fr.displayName=fe.Image.displayName;var Hr=Le.forwardRef(({className:e,...o},t)=>{let{fallback:r}=_r({className:e});return jsx(fe.Fallback,{ref:t,className:r(),...o})});Hr.displayName=fe.Fallback.displayName;var xe=Le.forwardRef((e,o)=>{let{size:t,src:r,fallback:i,delayMs:n,alt:a,onLoadingStatusChange:s,...l}=e;return jsxs(Er,{...l,ref:o,size:t,children:[jsx(Fr,{src:r,onLoadingStatusChange:s,alt:a}),typeof i<"u"&&jsx(Hr,{delayMs:n,children:i})]})}),Ba=Le.forwardRef((e,o)=>{let{address:t,...r}=e,i=useMemo(()=>yc(t),[e.address]);return jsx(xe,{...r,src:i})});var Ar=e=>{let o=useMemo(()=>`https://oss.orderly.network/static/network_logo/${e.chainId}.png`,[e.chainId]);return jsx(xe,{size:e.size,src:o,alt:`${e.chainId}`,className:e.className})};var Ne=e=>{let o=useMemo(()=>{let t=e.name;return typeof e.symbol=="string"&&(t=(e.symbol?.split("_"))[1]),`https://oss.orderly.network/static/symbol_logo/${t}.png`},[e.name,e.symbol]);return jsx(xe,{size:e.size,src:o,alt:e.name,className:e.className})};var _a=e=>{let{secondary:o}=e,t=useMemo(()=>{let r="oui-bg-base-6 oui-absolute oui-bottom-0 oui-right-0 oui-outline oui-outline-2 oui-outline-base-1 oui-z-10";return o.component?jsx("div",{className:cnBase(r,o?.className),children:o.component}):"chainId"in o?jsx(Ar,{...o,className:cnBase(r,o?.className)}):jsx(Ne,{...o,className:cnBase(r,o?.className)})},[o]);return jsxs("div",{className:"oui-relative",children:[e.children,t]})};var Te=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M4.994 3.906c-.256 0-.523.086-.718.281a1.029 1.029 0 0 0 0 1.438l6.28 6.281-6.28 6.281a1.029 1.029 0 0 0 0 1.438c.39.39 1.047.39 1.437 0l6.281-6.28 6.282 6.28c.39.39 1.047.39 1.437 0 .39-.39.39-1.047 0-1.438l-6.281-6.28 6.281-6.282c.39-.39.39-1.047 0-1.438a1.013 1.013 0 0 0-.719-.28c-.256 0-.523.085-.718.28l-6.282 6.281-6.28-6.28a1.013 1.013 0 0 0-.72-.282Z"})})});Te.displayName="CloseIcon";var k=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,d:r,...i}=e;return jsx(d,{ref:o,...i,children:jsx("path",{fill:"currentcolor",fillOpacity:t,fillRule:"evenodd",clipRule:"evenodd",d:r})})});var Ha=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(k,{d:"M19.018 5.997c-.256 0-.523.084-.718.276l-8.707 8.594c-.257.253-.515.206-.717-.092l-2.996-4.42a1.034 1.034 0 0 0-1.405-.276.996.996 0 0 0-.28 1.38l2.995 4.42c.902 1.33 2.659 1.499 3.808.369l8.738-8.563a1 1 0 0 0 0-1.412 1.02 1.02 0 0 0-.718-.276Z",ref:o,...e})});Ha.displayName="CheckIcon";var wt=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M5.827 9.03c-.25.05-.502.175-.655.404a1.019 1.019 0 0 0 .28 1.401l5.992 3.985c.334.223.787.223 1.122 0l5.992-3.985c.459-.305.587-.943.28-1.4a1.023 1.023 0 0 0-1.404-.28l-5.43 3.61-5.428-3.61c-.23-.154-.498-.176-.75-.126Z"})})});wt.displayName="ChevronDownIcon";var vt=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"m11.443 9.17-5.991 3.986a1.02 1.02 0 0 0-.28 1.4c.305.458.945.586 1.404.281l5.429-3.612 5.428 3.612a1.025 1.025 0 0 0 1.404-.28 1.02 1.02 0 0 0-.28-1.401l-5.99-3.986a1.028 1.028 0 0 0-1.124 0Z"})})});vt.displayName="ChevronUpIcon";var yt=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.017 5.997c-.3 0-.612.14-.812.406l-6 8c-.495.66-.012 1.594.812 1.594h12c.824 0 1.307-.935.812-1.594l-6-8a1.022 1.022 0 0 0-.812-.406Z"})})});yt.displayName="CaretUpIcon";var oe=Le__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M6.007 7.996c-.824 0-1.276.935-.781 1.594l6 8a.994.994 0 0 0 1.593 0l6-8c.495-.66.012-1.594-.812-1.594h-12Z"}));oe.displayName="CaretDownIcon";var Za=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M15.475 5.113a1.014 1.014 0 0 0-1.063.094l-8 6a1.025 1.025 0 0 0 0 1.624l8 6c.659.495 1.594.012 1.594-.812v-12c0-.412-.214-.747-.531-.906Z"})})});Za.displayName="CaretLeftIcon";var Ya=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M8.558 5.113a1.015 1.015 0 0 0-.562.906v12c0 .824.966 1.307 1.625.812l8-6c.533-.4.533-1.224 0-1.624l-8-6a1.014 1.014 0 0 0-1.063-.094Z"})})});Ya.displayName="CaretRightIcon";var Je=Le__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M13.778 5.022c-.25.05-.5.176-.653.406l-3.986 6a1.03 1.03 0 0 0 0 1.125l3.986 6c.305.459.943.588 1.401.28.457-.305.585-.946.28-1.405l-3.612-5.438 3.612-5.437c.305-.46.177-1.1-.28-1.406-.229-.154-.498-.176-.748-.125Z"}));Je.displayName="ChevronLeftIcon";var eo=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M10.166 5.022c-.25-.051-.519-.03-.748.125a1.027 1.027 0 0 0-.28 1.406l3.612 5.437-3.612 5.438c-.305.459-.177 1.1.28 1.406a1.019 1.019 0 0 0 1.401-.281l3.986-6a1.03 1.03 0 0 0 0-1.125l-3.986-6c-.152-.23-.403-.356-.653-.406Z"})})});eo.displayName="ChevronRightIcon";var ja=Le__default.forwardRef((e,o)=>jsx(k,{d:"M9.67364 2.34985C9.02964 2.34985 8.50697 2.87252 8.50697 3.51652C5.9298 3.51652 3.8403 5.60602 3.8403 8.18319V19.8499C3.8403 22.427 5.9298 24.5165 8.50697 24.5165H20.1736C22.7508 24.5165 24.8403 22.427 24.8403 19.8499V8.18319C24.8403 5.60602 22.7508 3.51652 20.1736 3.51652C20.1736 2.87252 19.651 2.34985 19.007 2.34985C18.363 2.34985 17.8403 2.87252 17.8403 3.51652H10.8403C10.8403 2.87252 10.3176 2.34985 9.67364 2.34985ZM8.50697 5.84985H20.1736C21.4628 5.84985 22.507 6.89402 22.507 8.18319V19.8499C22.507 21.139 21.4628 22.1832 20.1736 22.1832H8.50697C7.2178 22.1832 6.17364 21.139 6.17364 19.8499V8.18319C6.17364 6.89402 7.2178 5.84985 8.50697 5.84985ZM9.67364 8.18319C9.02964 8.18319 8.50697 8.70585 8.50697 9.34985C8.50697 9.99385 9.02964 10.5165 9.67364 10.5165H19.007C19.651 10.5165 20.1736 9.99385 20.1736 9.34985C20.1736 8.70585 19.651 8.18319 19.007 8.18319H9.67364ZM12.007 15.1832C11.363 15.1832 10.8403 15.7059 10.8403 16.3499C10.8403 16.9939 11.363 17.5165 12.007 17.5165H16.6736C17.3176 17.5165 17.8403 16.9939 17.8403 16.3499C17.8403 15.7059 17.3176 15.1832 16.6736 15.1832H12.007Z",ref:o,...e}));ja.displayName="CalendarMinusIcon";var qa=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M8.968 2.455a9.671 9.671 0 0 0-3.72 2.188c-.332.31-.434.818-.218 1.218.8 1.481-.037 3.066-1.844 3.157-.442.022-.833.35-.937.781a8.71 8.71 0 0 0-.25 2.188c0 .687.074 1.464.219 2.156.09.432.466.743.906.781 1.818.158 2.718 1.544 1.906 3.313-.18.393-.098.863.219 1.157 1.062.982 2.282 1.675 3.719 2.125.41.128.873-.027 1.125-.375 1.112-1.54 2.725-1.544 3.78 0 .25.363.706.538 1.126.405a10.1 10.1 0 0 0 3.75-2.155c.33-.301.417-.788.219-1.188-.832-1.68.125-3.22 1.843-3.25.456-.008.862-.307.969-.75.173-.717.219-1.341.219-2.22 0-.754-.09-1.497-.25-2.218a.994.994 0 0 0-.97-.782c-1.69-.003-2.638-1.665-1.811-3.125a.977.977 0 0 0-.188-1.218c-1.09-.99-2.42-1.764-3.812-2.188a.986.986 0 0 0-1.125.406c-.966 1.501-2.77 1.527-3.72.032a1.023 1.023 0 0 0-1.155-.438Zm6.078 2.124a7.904 7.904 0 0 1 1.84 1.054c-.725 2.297.506 4.683 3.056 5.265.063.412.057.662.057 1.088 0 .51.007.688-.051 1.056-2.54.527-3.795 2.845-3.088 5.296-.608.441-1.043.747-1.806 1.043-1.792-1.825-4.28-1.904-6.11.011-.714-.314-1.263-.593-1.818-1.061.688-2.49-.475-4.638-3.057-5.29-.115-.457-.07-1.745-.003-2.136 2.67-.64 3.722-3.003 3.059-5.279.586-.44 1.113-.762 1.798-1.04 1.725 1.755 4.315 1.93 6.123-.007Zm-3.047 3.407a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z"})})});qa.displayName="SettingIcon";var Qa=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M7.006 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm2 5c.256 0 .523.086.719.28l2.28 2.282 2.282-2.281c.195-.195.463-.281.719-.281.256 0 .523.086.719.28a1.03 1.03 0 0 1 0 1.439l-2.281 2.28 2.28 2.282a1.03 1.03 0 0 1 0 1.438 1.03 1.03 0 0 1-1.437 0l-2.281-2.281-2.281 2.28a1.03 1.03 0 0 1-1.438 0 1.03 1.03 0 0 1 0-1.437l2.28-2.281-2.28-2.281a1.03 1.03 0 0 1 0-1.438c.195-.195.463-.281.719-.281Z"})})});Qa.displayName="CloseSquareFillIcon";var en=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M11.999 1.953c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm-3 6c.256 0 .523.086.719.281l2.28 2.281 2.282-2.28c.196-.196.463-.282.719-.282.256 0 .523.086.719.281a1.03 1.03 0 0 1 0 1.438l-2.281 2.281 2.28 2.281a1.03 1.03 0 0 1 0 1.438 1.03 1.03 0 0 1-1.437 0l-2.281-2.28-2.281 2.28a1.03 1.03 0 0 1-1.438 0 1.029 1.029 0 0 1 0-1.438l2.28-2.28-2.28-2.282a1.029 1.029 0 0 1 0-1.438c.196-.195.463-.28.719-.28Z"})})});en.displayName="CloseCircleFillIcon";var on=Le__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M2.014 11.999c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10Zm14.971-4.687c.227-.217.539-.312.837-.312.298 0 .61.095.836.312a1.102 1.102 0 0 1 0 1.595l-8.15 7.768a1.24 1.24 0 0 1-1.673 0l-3.494-3.33a1.104 1.104 0 0 1 0-1.594 1.24 1.24 0 0 1 1.674 0l2.656 2.531 7.314-6.97Z"}));on.displayName="CheckedCircleFillIcon";var rn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,fillRule:"evenodd",clipRule:"evenodd",d:"M6.99 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm9.995 4.382c.227-.217.539-.312.837-.312.298 0 .61.095.836.312a1.102 1.102 0 0 1 0 1.595l-8.15 7.768a1.24 1.24 0 0 1-1.673 0l-3.494-3.33a1.104 1.104 0 0 1 0-1.594 1.24 1.24 0 0 1 1.674 0l2.656 2.531 7.314-6.97Z"})})});rn.displayName="CheckSquareFillIcon";var nn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,fillRule:"evenodd",clipRule:"evenodd",d:"M6.99 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm0 2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2Z"})})});nn.displayName="CheckSquareEmptyIcon";var ln=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M11.99 2.93a1 1 0 0 0-1 1v7h-7a1 1 0 0 0 0 2h7v7a1 1 0 0 0 2 0v-7h7a1 1 0 0 0 0-2h-7v-7a1 1 0 0 0-1-1Z"})})});ln.displayName="PlusIcon";var cn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("rect",{x:"4",y:"11",width:"16",height:"1.5",rx:"0.666667",fill:"currentcolor",fillOpacity:t})})});cn.displayName="ReduceIcon";var dn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.014 1.999c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Z"})})});dn.displayName="CircleOutlinedIcon";var gn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M6.99 2.93a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4h-10Zm0 2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2Z"})})});gn.displayName="SquareOutlinedIcon";var xn=Le__default.forwardRef((e,o)=>{let{...t}=e;return jsx(d,{ref:o,...t,children:jsx("path",{fill:"currentcolor",d:"M12.014 1.999c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm0 5a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0v-5a1 1 0 0 1 1-1Zm0 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"})})});xn.displayName="ExclamationFillIcon";var hn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.014 1.953c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10Zm0 5a3.006 3.006 0 0 1 3 3c.004 1.11-.516 2.044-1.375 2.906-.18.181-.353.355-.563.532-.099.084-.376.287-.406.312-.422.356-1.05.33-1.406-.094a1.035 1.035 0 0 1 .125-1.437l.375-.313c.168-.14.335-.272.47-.406.518-.522.782-1.022.78-1.5a1 1 0 0 0-1.969-.25c-.14.534-.685.86-1.219.72a1.034 1.034 0 0 1-.718-1.25 2.995 2.995 0 0 1 2.906-2.22Zm0 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"})})});hn.displayName="ExclamationFillIcon";var wn=Le__default.forwardRef((e,o)=>jsx(k,{d:"M21.995 16.007c0-.256-.086-.523-.28-.719l-3.72-3.687-1.406 1.406 1.968 2H3.995a1 1 0 000 2h14.562l-1.968 2 1.406 1.406 3.72-3.687c.194-.196.28-.463.28-.719zm-1-8a1 1 0 00-1-1H5.432l1.97-2-1.407-1.406-3.719 3.687a1.03 1.03 0 000 1.438l3.72 3.687L7.4 11.007l-1.969-2h14.563a1 1 0 001-1z",ref:o,...e}));wn.displayName="ArrowLeftRightIcon";var vn=Le__default.forwardRef((e,o)=>jsx(k,{d:"M16.007 2.014c-.256 0-.523.086-.718.281L11.6 6.015l1.406 1.405 2-1.968v14.562a1 1 0 002 0V5.452l2 1.968 1.407-1.406-3.688-3.719a1.012 1.012 0 00-.719-.28zm-8 1a1 1 0 00-1 1v14.562l-2-1.968-1.406 1.406 3.688 3.72c.39.39 1.047.39 1.437 0l3.688-3.72-1.407-1.406-2 1.968V4.014a1 1 0 00-1-1z",ref:o,...e}));vn.displayName="ArrowDownUpIconIcon";var yn=Le__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M6.99 20.99a4 4 0 01-4-4v-10a4 4 0 014-4h10a4 4 0 014 4v10a4 4 0 01-4 4h-10zm5-4a1 1 0 001-1v-5h3l-4-4-4 4h3v5a1 1 0 001 1z"}));yn.displayName="ArrowUpSquareFillIconIcon";var Pn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M6.99 2.99a4 4 0 00-4 4v10a4 4 0 004 4h10a4 4 0 004-4v-10a4 4 0 00-4-4h-10zm5 4a1 1 0 011 1v5h3l-4 4-4-4h3v-5a1 1 0 011-1z"})})});Pn.displayName="ArrowDownSquareFillIconIcon";var Sn=Le__default.forwardRef((e,o)=>jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",fill:"currentColor",focusable:false,ref:o,...e,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.74463 4.07796C1.74463 2.78938 2.78938 1.74463 4.07796 1.74463H9.9113C11.1999 1.74463 12.2446 2.78938 12.2446 4.07796V9.9113C12.2446 11.1999 11.1999 12.2446 9.9113 12.2446H4.07796C2.78938 12.2446 1.74463 11.1999 1.74463 9.9113V4.07796ZM6.5 5.5C6.224 5.5 6 5.724 6 6C6 6.276 6.224 6.5 6.5 6.5H9V8L11 6L9 4V5.5H6.5ZM7.5 7.5C7.776 7.5 8 7.724 8 8C8 8.276 7.776 8.5 7.5 8.5H5V10L3 8L5 6V7.5H7.5Z"})}));process.env.NODE_ENV!=="production"&&(Sn.displayName="ArrowLeftRightSquareFill");var m1=()=>jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M10.9004 5H12.9004V6.59961L13.5 6.90039C13.8 7.10039 14.1008 7.29961 14.3008 7.59961C14.5008 7.89961 14.7008 8.19961 14.8008 8.59961C14.9008 8.99961 15 9.40039 15 9.90039H13.0996C13.0996 9.30039 13.0008 8.89961 12.8008 8.59961C12.6008 8.29961 12.4 8.19922 12 8.19922C11.8 8.19922 11.6 8.20078 11.5 8.30078L11.1992 8.59961C11.0992 8.69961 11.1 8.9 11 9C10.9 9.1 10.9004 9.3 10.9004 9.5C10.9004 9.7 11 9.8 11 10C11 10.2 11.0992 10.3004 11.1992 10.4004C11.2992 10.6004 11.3996 10.7008 11.5996 10.8008C11.6996 10.9008 11.8992 10.9996 12.1992 11.0996C12.5992 11.2996 13.0008 11.4992 13.3008 11.6992C13.7008 11.8992 13.9992 12.1004 14.1992 12.4004C14.4992 12.7004 14.7008 13.0008 14.8008 13.3008C14.9008 13.6008 15 14 15 14.5C15 15 14.9008 15.3992 14.8008 15.6992C14.7008 16.0992 14.5008 16.2996 14.3008 16.5996C14.1008 16.7996 13.8 16.9992 13.5 17.1992C13.3 17.2992 13.2 17.4004 13 17.4004V19H11V17.3008C10.8 17.2008 10.6004 17.1996 10.4004 17.0996C10.0004 16.9996 9.8 16.8 9.5 16.5C9.3 16.3 9.10039 15.9 8.90039 15.5C8.80039 15 8.69922 14.5004 8.69922 13.9004H10.6992C10.6992 14.2004 10.7008 14.5008 10.8008 14.8008C10.9008 15.1008 10.9996 15.3004 11.0996 15.4004C11.1996 15.5004 11.3 15.5992 11.5 15.6992C11.7 15.7992 11.8 15.8008 12 15.8008C12.2 15.8008 12.3 15.7992 12.5 15.6992C12.7 15.5992 12.8004 15.5004 12.9004 15.4004C13.0004 15.3004 12.9996 15.2 13.0996 15C13.1996 14.9 13.1992 14.7 13.1992 14.5C13.1992 14.3 13.0996 14.1 13.0996 14C13.0996 13.9 13.0004 13.6996 12.9004 13.5996C12.8004 13.3996 12.7 13.2992 12.5 13.1992L11.9004 12.9004C11.5004 12.7004 11.1008 12.5008 10.8008 12.3008C10.4008 12.1008 10.1004 11.8996 9.90039 11.5996C9.60039 11.3996 9.40078 11.0992 9.30078 10.6992C9.20078 10.3992 9.09961 10 9.09961 9.5C9.09961 9.1 9.09922 8.70039 9.19922 8.40039C9.39922 8.10039 9.50078 7.8 9.80078 7.5C10.0008 7.2 10.2004 7.00039 10.4004 6.90039C10.6004 6.80039 10.7004 6.69922 10.9004 6.69922V5Z",fill:"white",fillOpacity:.8}),jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"white",strokeOpacity:.8,strokeWidth:"2"})]});var f1=()=>jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M18.0142 3.9978C16.9092 3.9978 16.0142 4.8928 16.0142 5.9978V17.9978C16.0142 19.1028 16.9092 19.9978 18.0142 19.9978H20.0142C21.1192 19.9978 22.0142 19.1028 22.0142 17.9978V5.9978C22.0142 4.8928 21.1192 3.9978 20.0142 3.9978H18.0142ZM18.0142 5.9978H20.0142V17.9978H18.0142V5.9978ZM11.0142 7.9978C9.90917 7.9978 9.01416 8.8928 9.01416 9.9978V17.9978C9.01416 19.1028 9.90917 19.9978 11.0142 19.9978H13.0142C14.1192 19.9978 15.0142 19.1028 15.0142 17.9978V9.9978C15.0142 8.8928 14.1192 7.9978 13.0142 7.9978H11.0142ZM11.0142 9.9978H13.0142V17.9978H11.0142V9.9978ZM4.01416 11.9978C2.90916 11.9978 2.01416 12.8928 2.01416 13.9978V17.9978C2.01416 19.1028 2.90916 19.9978 4.01416 19.9978H6.01416C7.11916 19.9978 8.01416 19.1028 8.01416 17.9978V13.9978C8.01416 12.8928 7.11916 11.9978 6.01416 11.9978H4.01416ZM4.01416 13.9978H6.01416V17.9978H4.01416V13.9978Z",fill:"white",fillOpacity:.8})});var x1=()=>jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M3.59485 3L4.43619 6.47708L9.86872 11.7606L7.84097 13.9847L7.13438 13.2513L5.94468 14.4805L6.69071 15.2513L4.58079 17.5637L4.1897 17.163L3 18.3922L5.52401 21L6.71371 19.7708L6.32262 19.3667L8.56399 17.1902L9.31002 17.9576L10.4997 16.7284L9.79314 15.9983L12.0082 13.8387L14.2167 15.9881L13.5003 16.7284L14.69 17.9576L15.4426 17.18L17.684 19.3565L17.283 19.7708L18.476 21L21 18.3922L19.8103 17.163L19.4291 17.5569L17.3192 15.2411L18.0553 14.4805L16.8656 13.2513L16.1656 13.9745L14.1477 11.7606L14.151 11.7572L12.0082 9.41087L6.9602 3.86927L3.59485 3ZM20.4216 3L17.0562 3.86927L12.9777 8.34465L15.2454 10.691L19.5802 6.47708L20.4216 3Z",fill:"white",fillOpacity:.8})});var Tn=Le__default.forwardRef((e,o)=>jsx(k,{d:"M7.998 2.014a4 4 0 00-4 4v12a4 4 0 004 4h8a4 4 0 004-4v-12a4 4 0 00-4-4h-8zm0 2h8a2 2 0 012 2v12a2 2 0 01-2 2h-8a2 2 0 01-2-2v-12a2 2 0 012-2zm1 2a1 1 0 00-1 1v1a1 1 0 001 1h6a1 1 0 001-1v-1a1 1 0 00-1-1h-6zm0 4a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2zm-6 3a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 00-1 1v3a1 1 0 002 0v-3a1 1 0 00-1-1zm-6 3a1 1 0 100 2 1 1 0 000-2zm3 0a1 1 0 100 2 1 1 0 000-2z",ref:o,...e}));Tn.displayName="FeeTierIconIcon";var Ln=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M16.995 1.953a1.02 1.02 0 00-.719.281l-3 3.002-9.006 9.005-1 1c-.14.14-.212.338-.25.532l-1 5.003a.974.974 0 001.155 1.157l5.003-1c.194-.04.392-.112.532-.25l1-1.002 9.005-9.005c.445-.444 2.447-2.446 3.003-3a1.02 1.02 0 00.28-.72c0-1.637-.417-2.807-1.282-3.69-.873-.89-2.039-1.313-3.72-1.313zm.395 2.02c.902.052 1.488.26 1.889.67.41.417.669.997.724 1.882-.547.547-1.35 1.337-2.006 1.994l-2.565-2.564c.658-.657 1.41-1.436 1.958-1.983zm-3.396 3.42l2.564 2.564-7.567 7.567-2.564-2.564 7.568-7.567zM4.99 16.398l2.564 2.564-.094.094c-.66.132-1.993.411-3.22.657l.656-3.22.094-.095z"})})});Ln.displayName="EditIcon";var zn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.001 3.998c-2.959 0-5.452 1.454-7.5 3.844a16.652 16.652 0 00-1.812 2.562c-.302.528-.486.936-.594 1.188a1.058 1.058 0 000 .812c.108.252.292.66.594 1.188a16.652 16.652 0 001.812 2.562c2.048 2.39 4.541 3.844 7.5 3.844 2.96 0 5.452-1.454 7.5-3.844a16.652 16.652 0 001.812-2.562c.302-.528.486-.936.594-1.188a1.058 1.058 0 000-.812c-.108-.252-.292-.66-.594-1.188a16.652 16.652 0 00-1.812-2.562c-2.048-2.39-4.54-3.844-7.5-3.844zm0 4a4 4 0 110 8 4 4 0 010-8zm0 2a2 2 0 100 3.999 2 2 0 000-4z"})})});zn.displayName="EyeIcon";var Bn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M16.998 1.953a3 3 0 0 0-3 3c0 .257.04.577.102.815L8.747 9.504a3.25 3.25 0 0 0-1.75-.55 3 3 0 1 0 0 6c.633 0 1.257-.236 1.74-.569l5.365 3.766a3.2 3.2 0 0 0-.104.802 3 3 0 1 0 3-3c-.632 0-1.248.228-1.731.562l-5.378-3.763a3.2 3.2 0 0 0 .109-.799c0-.268-.038-.557-.104-.804l5.365-3.752c.479.323 1.118.556 1.739.556a3 3 0 1 0 0-6"})})});Bn.displayName="ShareIcon";var En=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.001 3.998c-2.959-.007-5.452 1.454-7.5 3.844a16.654 16.654 0 00-1.812 2.562c-.302.528-.486.936-.594 1.188a1.058 1.058 0 000 .812c.108.252.292.66.594 1.188.401.703.87 1.419 1.406 2.094.085.107.76.873 1.344 1.468l-1.157 1.125a1.03 1.03 0 000 1.438 1.03 1.03 0 001.438 0l14-14a1.03 1.03 0 000-1.438 1.014 1.014 0 00-.719-.281c-.256 0-.523.086-.719.28l-1.28 1.314c-1.654-1.106-3.298-1.59-5-1.594zm0 4c.518 0 1.31.137 2.031.562l-1.53 1.532c-.158-.082-.457-.094-.5-.094a2 2 0 00-2 2c0 .044-.015.347.03.53-.192.234-1.5 1.5-1.5 1.5a4.204 4.204 0 01-.53-2.03c-.012-2.21 1.79-4 4-4zm7.938.344s-9.755 9.718-11.063 11.03c1.44.572 2.918.626 3.125.626 2.96 0 5.452-1.454 7.5-3.844a16.652 16.652 0 001.812-2.562c.302-.528.486-.936.594-1.188a1.04 1.04 0 000-.812c-.227-.52-.654-1.347-1.312-2.313-.177-.26-.656-.937-.656-.937z"})})});En.displayName="EyeCloseIcon";var Hn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12.007 2.99a9 9 0 0 0-5.594 1.94 1 1 0 1 0 1.25 1.562 6.97 6.97 0 0 1 4.344-1.5 7 7 0 0 1 7 7h-2l3 4 3-4h-2a9 9 0 0 0-9-9m-8 5-3 4h2a9 9 0 0 0 9 9 9 9 0 0 0 5.594-1.937 1 1 0 1 0-1.25-1.562 6.96 6.96 0 0 1-4.344 1.5 7 7 0 0 1-7-7h2z"})})});Hn.displayName="RefreshIcon";var k1=e=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,children:[jsxs("g",{clipPath:"url(#clip0_862_2443)",children:[jsx("path",{d:"M10.0249 19.9491C15.5202 19.9491 19.9751 15.4942 19.9751 9.99883C19.9751 4.50346 15.5202 0.048584 10.0249 0.048584C4.52949 0.048584 0.0746155 4.50346 0.0746155 9.99883C0.0746155 15.4942 4.52949 19.9491 10.0249 19.9491Z",fill:"url(#paint0_linear_862_2443)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1556 4.8931C14.2202 4.94547 14.1824 5.04764 14.0992 5.04764H5.95063C5.86743 5.04764 5.82963 4.94547 5.89428 4.8931C7.02258 3.97918 8.4598 3.4317 10.0249 3.4317C11.59 3.4317 13.0272 3.97918 14.1556 4.8931Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.47028 11.7869C7.4233 11.7199 7.34764 11.6777 7.26581 11.6777H3.83C3.75128 11.6777 3.69391 11.7525 3.71579 11.8281C4.50796 14.565 7.03275 16.566 10.0249 16.566C13.0171 16.566 15.5419 14.565 16.334 11.8281C16.3559 11.7525 16.2985 11.6777 16.2198 11.6777H12.7841C12.7022 11.6777 12.6266 11.7199 12.5796 11.7869C12.0156 12.5911 11.0817 13.1167 10.025 13.1167C8.96818 13.1167 8.03421 12.5911 7.47028 11.7869Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.335 7.90476C12.3825 7.95713 12.4493 7.98867 12.5199 7.98867H16.114C16.1955 7.98867 16.2533 7.9094 16.2264 7.83259C15.9727 7.10647 15.5951 6.43851 15.119 5.85405C15.0743 5.79918 15.007 5.76813 14.9361 5.76813H5.11354C5.04278 5.76813 4.97543 5.79918 4.93074 5.85405C4.45459 6.43851 4.07701 7.10647 3.82337 7.83259C3.79652 7.9094 3.85428 7.98867 3.93567 7.98867H7.52982C7.60052 7.98867 7.66725 7.95713 7.71475 7.90476C8.28522 7.27587 9.10892 6.88093 10.0249 6.88093C10.9408 6.88093 11.7646 7.27587 12.335 7.90476Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.116 10.9587C13.0549 10.9587 13.0114 10.8991 13.028 10.8402C13.1029 10.5723 13.1429 10.29 13.1429 9.99822C13.1429 9.5877 13.0636 9.19568 12.9195 8.83669C12.895 8.77593 12.9388 8.70813 13.0042 8.70813H16.3916C16.4345 8.70813 16.4716 8.73843 16.4795 8.78064C16.5534 9.17523 16.5921 9.58228 16.5921 9.99832C16.5921 10.2979 16.572 10.5927 16.5333 10.8816C16.5273 10.9259 16.4894 10.9587 16.4447 10.9587H13.116ZM7.02183 10.8402C7.03829 10.8991 6.99492 10.9587 6.93381 10.9587H3.60511C3.56045 10.9587 3.52246 10.9259 3.51651 10.8816C3.47767 10.5927 3.45761 10.2979 3.45761 9.99832C3.45761 9.58228 3.49631 9.17523 3.5703 8.78064C3.5782 8.73843 3.61523 8.70813 3.65817 8.70813H7.04553C7.11101 8.70813 7.15477 8.77593 7.13037 8.83669C6.98617 9.19568 6.90682 9.5877 6.90682 9.99822C6.90682 10.29 6.94688 10.5723 7.02183 10.8402Z",fill:"white"})]}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_862_2443",x1:"10.0249",y1:"0.0486119",x2:"10.0249",y2:"19.9491",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#C750FF"}),jsx("stop",{offset:"1",stopColor:"#5800E8"})]}),jsx("clipPath",{id:"clip0_862_2443",children:jsx("rect",{width:"20",height:"20",fill:"white"})})]})]});var S1=e=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,children:[jsxs("g",{clipPath:"url(#clip0_862_2449)",children:[jsx("path",{d:"M10.0249 19.9361C15.5202 19.9361 19.9751 15.4813 19.9751 9.98589C19.9751 4.49052 15.5202 0.0356445 10.0249 0.0356445C4.52949 0.0356445 0.0746155 4.49052 0.0746155 9.98589C0.0746155 15.4813 4.52949 19.9361 10.0249 19.9361Z",fill:"url(#paint0_linear_862_2449)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0992 5.0347C14.1824 5.0347 14.2202 4.93253 14.1556 4.88017C13.0272 3.96625 11.59 3.41876 10.0249 3.41876C8.4598 3.41876 7.02258 3.96625 5.89428 4.88017C5.82963 4.93253 5.86743 5.0347 5.95063 5.0347H14.0992ZM7.2658 11.6648C7.34763 11.6648 7.42329 11.707 7.47028 11.7739C8.03421 12.5781 8.96819 13.1038 10.025 13.1038C11.0817 13.1038 12.0156 12.5781 12.5796 11.7739C12.6266 11.707 12.7022 11.6648 12.7841 11.6648H16.2198C16.2985 11.6648 16.3559 11.7395 16.334 11.8151C15.5419 14.5521 13.0171 16.5531 10.0249 16.5531C7.03275 16.5531 4.50795 14.5521 3.71578 11.8151C3.6939 11.7395 3.75127 11.6648 3.83 11.6648H7.2658ZM12.335 7.8919C12.3825 7.94426 12.4493 7.97581 12.5199 7.97581H16.114C16.1955 7.97581 16.2533 7.89653 16.2264 7.81972C15.9727 7.0936 15.5951 6.42564 15.119 5.84118C15.0743 5.78631 15.007 5.75526 14.9361 5.75526H5.11354C5.04279 5.75526 4.97543 5.78631 4.93075 5.84118C4.4546 6.42564 4.07701 7.0936 3.82337 7.81972C3.79653 7.89653 3.8543 7.97581 3.93567 7.97581H7.52983C7.60053 7.97581 7.66725 7.94426 7.71477 7.8919C8.28522 7.263 9.10892 6.86807 10.0249 6.86807C10.9408 6.86807 11.7646 7.263 12.335 7.8919ZM13.028 10.8273C13.0114 10.8862 13.0549 10.9458 13.116 10.9458H16.4447C16.4894 10.9458 16.5273 10.913 16.5333 10.8688C16.572 10.5798 16.5921 10.285 16.5921 9.98539C16.5921 9.56935 16.5534 9.1623 16.4795 8.76771C16.4716 8.72551 16.4345 8.6952 16.3916 8.6952H13.0042C12.9388 8.6952 12.895 8.763 12.9195 8.82377C13.0636 9.18276 13.1429 9.57477 13.1429 9.98529C13.1429 10.277 13.1029 10.5595 13.028 10.8273ZM6.9338 10.9458C6.99492 10.9458 7.03829 10.8862 7.02183 10.8273C6.94688 10.5595 6.90682 10.277 6.90682 9.98529C6.90682 9.57477 6.98617 9.18276 7.13037 8.82377C7.15477 8.763 7.11101 8.6952 7.04553 8.6952H3.65817C3.61522 8.6952 3.5782 8.72551 3.5703 8.76771C3.49631 9.1623 3.45761 9.56935 3.45761 9.98539C3.45761 10.285 3.47767 10.5798 3.51651 10.8688C3.52246 10.913 3.56045 10.9458 3.60511 10.9458H6.9338Z",fill:"url(#paint1_linear_862_2449)"})]}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_862_2449",x1:"10.0249",y1:"-2.24058",x2:"10.0249",y2:"21.2774",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"white"}),jsx("stop",{offset:"1",stopColor:"#EDE9F4"})]}),jsxs("linearGradient",{id:"paint1_linear_862_2449",x1:"10.0249",y1:"3.41876",x2:"10.0249",y2:"16.5531",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#C750FF"}),jsx("stop",{offset:"1",stopColor:"#5800E8"})]}),jsx("clipPath",{id:"clip0_862_2449",children:jsx("rect",{width:"20",height:"20",fill:"white"})})]})]});var I1=Le__default.forwardRef((e,o)=>jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e?.className,children:jsx("path",{d:"M7.99925 1.84277C4.31738 1.84277 1.33258 4.82744 1.33258 8.50944C1.33258 12.1914 4.31738 15.1761 7.99925 15.1761C11.6811 15.1761 14.6659 12.1914 14.6659 8.50944C14.6659 4.82744 11.6811 1.84277 7.99925 1.84277ZM7.99925 5.17611C8.36745 5.17611 8.66591 5.47477 8.66591 5.84277C8.66591 6.21077 8.36745 6.50944 7.99925 6.50944C7.63105 6.50944 7.33258 6.21077 7.33258 5.84277C7.33258 5.47477 7.63105 5.17611 7.99925 5.17611ZM7.99925 7.17611C8.36745 7.17611 8.66591 7.47477 8.66591 7.84277V11.1761C8.66591 11.5441 8.36745 11.8428 7.99925 11.8428C7.63105 11.8428 7.33258 11.5441 7.33258 11.1761V7.84277C7.33258 7.47477 7.63105 7.17611 7.99925 7.17611Z",fill:"white",fillOpacity:"0.36"})}));var T1=e=>{let o=useMemo(()=>`https://oss.orderly.network/static/wallet_icon/${e.name?.split(" ")?.[0]?.toLowerCase()}.png`,[e.name]);return jsx(xe,{size:e.size,src:o,alt:`${e.name}`})};var oo=Le__default.forwardRef((e,o)=>jsx(k,{d:"M8.006 2.014a1 1 0 0 0-1 1 4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-10c0-2.205-1.792-4-4-4a1 1 0 0 0-2 0h-6a1 1 0 0 0-1-1Zm-1 3a1 1 0 0 0 2 0h6a1 1 0 0 0 2 0 2 2 0 0 1 2 2v1h-14v-1a2 2 0 0 1 2-2Zm-2 5h14v7a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-7Zm3 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-8 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",ref:o,...e}));oo.displayName="CaretLeftIcon";var Pt=Le__default.forwardRef((e,o)=>jsx(k,{ref:o,...e,d:"M6.998 2.99a4 4 0 00-4 4v6a4 4 0 004 4 4 4 0 004 4h6a4 4 0 004-4v-6a4 4 0 00-4-4 4 4 0 00-4-4h-6zm10 6a2 2 0 012 2v6a2 2 0 01-2 2h-6a2 2 0 01-2-2h4a4 4 0 004-4v-4z"}));Pt.displayName="CopyIcon";var On=Le__default.forwardRef((e,o)=>jsx(k,{d:"M11.998 1.953c-4.362 0-8 1.56-8 4s3.638 4 8 4 8-1.559 8-4-3.638-4-8-4m-8 7.625v2.375c0 2.441 3.638 4 8 4s8-1.559 8-4V9.578c-1.814 1.49-4.642 2.375-8 2.375s-6.186-.885-8-2.375m0 6v2.375c0 2.441 3.638 4 8 4s8-1.559 8-4v-2.375c-1.814 1.49-4.642 2.375-8 2.375s-6.186-.885-8-2.375",ref:o,...e}));On.displayName="ServerFillIcon";var Wn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsxs(d,{ref:o,...r,children:[jsx("path",{d:"M12 2.5c-.3 0-.611.112-.81.325l-5.99 6.4c-.495.527-.013 1.275.81 1.275h11.98c.823 0 1.305-.748.81-1.275l-5.99-6.4c-.198-.213-.51-.325-.81-.325",fill:"currentcolor",fillOpacity:".98"}),jsx("path",{d:"M12 21.5c-.3 0-.611-.112-.81-.325l-5.99-6.4c-.495-.527-.013-1.275.81-1.275h11.98c.823 0 1.305.748.81 1.275l-5.99 6.4c-.198.213-.51.325-.81.325",fill:"currentcolor",fillOpacity:".36"})]})});Wn.displayName="SortingAscIcon";var Un=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsxs(d,{ref:o,...r,children:[jsx("path",{d:"M12 2.5c-.3 0-.611.112-.81.325l-5.99 6.4c-.495.527-.013 1.275.81 1.275h11.98c.823 0 1.305-.748.81-1.275l-5.99-6.4c-.198-.213-.51-.325-.81-.325",fill:"currentcolor",fillOpacity:".36"}),jsx("path",{d:"M12 21.5c-.3 0-.611-.112-.81-.325l-5.99-6.4c-.495-.527-.013-1.275.81-1.275h11.98c.823 0 1.305.748.81 1.275l-5.99 6.4c-.198.213-.51.325-.81.325",fill:"currentcolor",fillOpacity:".98"})]})});Un.displayName="SortingDescIcon";var Yn=Le__default.forwardRef((e,o)=>jsx(k,{d:"M11.993 18.012a1 1 0 0 1-.999-.999V9.458l-2.997 2.966-1.405-1.405 4.683-4.714a1 1 0 0 1 .72-.293c.26 0 .521.098.716.293l4.683 4.714-1.405 1.405-2.997-2.966v7.555a1 1 0 0 1-.999.999",ref:o,...e})),Xn=Le__default.forwardRef((e,o)=>jsx(k,{d:"M11.993 6.012a1 1 0 0 0-1 .999v7.555L7.998 11.6l-1.405 1.405 4.683 4.714c.195.196.457.293.719.293.26 0 .522-.098.717-.293l4.683-4.714L15.99 11.6l-2.997 2.966V7.011a1 1 0 0 0-1-.999",ref:o,...e})),jn=Le__default.forwardRef((e,o)=>jsx(k,{d:"M18.012 11.993a1 1 0 0 0-.999-1H9.458l2.966-2.996-1.405-1.405-4.714 4.683a1 1 0 0 0-.293.719c0 .26.098.522.293.717l4.714 4.683 1.405-1.405-2.966-2.997h7.555a1 1 0 0 0 .999-1",ref:o,...e})),$n=Le__default.forwardRef((e,o)=>jsx(k,{d:"M6.012 11.993a1 1 0 0 1 .999-1h7.555L11.6 7.998l1.405-1.405 4.714 4.683c.196.195.293.457.293.719 0 .26-.098.522-.293.717l-4.714 4.683L11.6 15.99l2.966-2.997H7.011a1 1 0 0 1-.999-1",ref:o,...e}));Yn.displayName="ArrowUpShortIcon";Xn.displayName="ArrowDownShortIcon";jn.displayName="ArrowLeftShortIcon";$n.displayName="ArrowRightShortIcon";var Kn=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M12 2.5c-.3 0-.611.112-.81.325l-5.99 6.4c-.495.527-.013 1.275.81 1.275h11.98c.823 0 1.305-.748.81-1.275l-5.99-6.4c-.198-.213-.51-.325-.81-.325m0 19c-.3 0-.611-.112-.81-.325l-5.99-6.4c-.495-.527-.013-1.275.81-1.275h11.98c.823 0 1.305.748.81 1.275l-5.99 6.4c-.198.213-.51.325-.81.325"})})});Kn.displayName="SortingIconIcon";var G1=()=>jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{children:jsx("path",{d:"M1.33301 18.6668C1.33301 17.9304 1.92996 17.3335 2.66634 17.3335H5.33301C6.06939 17.3335 6.66634 17.9304 6.66634 18.6668V28.0002C6.66634 28.7365 6.06939 29.3335 5.33301 29.3335H2.66634C1.92996 29.3335 1.33301 28.7365 1.33301 28.0002V18.6668Z",fill:"url(#paint0_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33301 18.0002H2.66634C2.29815 18.0002 1.99967 18.2986 1.99967 18.6668V28.0002C1.99967 28.3684 2.29815 28.6668 2.66634 28.6668H5.33301C5.7012 28.6668 5.99967 28.3684 5.99967 28.0002V18.6668C5.99967 18.2986 5.7012 18.0002 5.33301 18.0002ZM2.66634 17.3335C1.92996 17.3335 1.33301 17.9304 1.33301 18.6668V28.0002C1.33301 28.7365 1.92996 29.3335 2.66634 29.3335H5.33301C6.06939 29.3335 6.66634 28.7365 6.66634 28.0002V18.6668C6.66634 17.9304 6.06939 17.3335 5.33301 17.3335H2.66634Z",fill:"url(#paint1_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{d:"M9.33301 12.0001C9.33301 11.2637 9.92996 10.6667 10.6663 10.6667H13.333C14.0694 10.6667 14.6663 11.2637 14.6663 12.0001V28.0001C14.6663 28.7365 14.0694 29.3334 13.333 29.3334H10.6663C9.92996 29.3334 9.33301 28.7365 9.33301 28.0001V12.0001Z",fill:"url(#paint2_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.333 11.3334H10.6663C10.2982 11.3334 9.99967 11.6319 9.99967 12.0001V28.0001C9.99967 28.3683 10.2982 28.6667 10.6663 28.6667H13.333C13.7012 28.6667 13.9997 28.3683 13.9997 28.0001V12.0001C13.9997 11.6319 13.7012 11.3334 13.333 11.3334ZM10.6663 10.6667C9.92996 10.6667 9.33301 11.2637 9.33301 12.0001V28.0001C9.33301 28.7365 9.92996 29.3334 10.6663 29.3334H13.333C14.0694 29.3334 14.6663 28.7365 14.6663 28.0001V12.0001C14.6663 11.2637 14.0694 10.6667 13.333 10.6667H10.6663Z",fill:"url(#paint3_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{d:"M17.333 16.0001C17.333 15.2637 17.93 14.6667 18.6663 14.6667H21.333C22.0694 14.6667 22.6663 15.2637 22.6663 16.0001V28.0001C22.6663 28.7365 22.0694 29.3334 21.333 29.3334H18.6663C17.93 29.3334 17.333 28.7365 17.333 28.0001V16.0001Z",fill:"url(#paint4_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.333 15.3334H18.6663C18.2982 15.3334 17.9997 15.6319 17.9997 16.0001V28.0001C17.9997 28.3683 18.2982 28.6667 18.6663 28.6667H21.333C21.7012 28.6667 21.9997 28.3683 21.9997 28.0001V16.0001C21.9997 15.6319 21.7012 15.3334 21.333 15.3334ZM18.6663 14.6667C17.93 14.6667 17.333 15.2637 17.333 16.0001V28.0001C17.333 28.7365 17.93 29.3334 18.6663 29.3334H21.333C22.0694 29.3334 22.6663 28.7365 22.6663 28.0001V16.0001C22.6663 15.2637 22.0694 14.6667 21.333 14.6667H18.6663Z",fill:"url(#paint5_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{d:"M25.333 22.6668C25.333 21.9304 25.93 21.3335 26.6663 21.3335H29.333C30.0694 21.3335 30.6663 21.9304 30.6663 22.6668V28.0002C30.6663 28.7365 30.0694 29.3335 29.333 29.3335H26.6663C25.93 29.3335 25.333 28.7365 25.333 28.0002V22.6668Z",fill:"url(#paint6_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.333 22.0002H26.6663C26.2982 22.0002 25.9997 22.2986 25.9997 22.6668V28.0002C25.9997 28.3684 26.2982 28.6668 26.6663 28.6668H29.333C29.7012 28.6668 29.9997 28.3684 29.9997 28.0002V22.6668C29.9997 22.2986 29.7012 22.0002 29.333 22.0002ZM26.6663 21.3335C25.93 21.3335 25.333 21.9304 25.333 22.6668V28.0002C25.333 28.7365 25.93 29.3335 26.6663 29.3335H29.333C30.0694 29.3335 30.6663 28.7365 30.6663 28.0002V22.6668C30.6663 21.9304 30.0694 21.3335 29.333 21.3335H26.6663Z",fill:"url(#paint7_linear_1609_10673)"})}),jsx("g",{children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.9997 3.33341C23.9997 2.96522 24.2981 2.66675 24.6663 2.66675H27.9997C28.3679 2.66675 28.6663 2.96522 28.6663 3.33341V6.66675C28.6663 7.03494 28.3679 7.33341 27.9997 7.33341C27.6315 7.33341 27.333 7.03494 27.333 6.66675V4.94289L20.9425 11.3334C20.4218 11.8541 19.5776 11.8541 19.0569 11.3334L11.9997 4.27622L4.47108 11.8048C4.21073 12.0652 3.78862 12.0652 3.52827 11.8048C3.26792 11.5445 3.26792 11.1224 3.52827 10.862L11.0569 3.33341C11.5776 2.81272 12.4218 2.81272 12.9425 3.33341L19.9997 10.3906L26.3902 4.00008H24.6663C24.2981 4.00008 23.9997 3.7016 23.9997 3.33341Z",fill:"url(#paint8_linear_1609_10673)"})}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_1609_10673",x1:"5.99967",y1:"23.3335",x2:"1.99967",y2:"23.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint1_linear_1609_10673",x1:"3.99967",y1:"17.3335",x2:"3.99967",y2:"29.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint2_linear_1609_10673",x1:"13.9997",y1:"19.3334",x2:"9.92665",y2:"19.3783",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#015B50"}),jsx("stop",{offset:"1",stopColor:"#01B49E"})]}),jsxs("linearGradient",{id:"paint3_linear_1609_10673",x1:"11.9997",y1:"10.6667",x2:"11.9997",y2:"29.3334",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#01B49E"}),jsx("stop",{offset:"1",stopColor:"#01B49E"})]}),jsxs("linearGradient",{id:"paint4_linear_1609_10673",x1:"21.9997",y1:"22.0001",x2:"17.9997",y2:"22.0001",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint5_linear_1609_10673",x1:"19.9997",y1:"14.6667",x2:"19.9997",y2:"29.3334",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint6_linear_1609_10673",x1:"29.9997",y1:"25.3335",x2:"25.9997",y2:"25.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint7_linear_1609_10673",x1:"27.9997",y1:"21.3335",x2:"27.9997",y2:"29.3335",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint8_linear_1609_10673",x1:"3.66634",y1:"12.0001",x2:"21.262",y2:"-4.99792",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#01B49E",stopOpacity:"0.36"}),jsx("stop",{offset:"1",stopColor:"#01B49E"})]})]})]});var W1=()=>jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M1.6001 14.3967C1.6001 13.86 1.86916 13.359 2.31661 13.0627L15.1166 4.58513C15.6522 4.23041 16.348 4.23041 16.8836 4.58513L29.6836 13.0627C30.131 13.359 30.4001 13.86 30.4001 14.3967V28C30.4001 28.8836 29.6838 29.6 28.8001 29.6H3.2001C2.31644 29.6 1.6001 28.8836 1.6001 28V14.3967Z",fill:"url(#paint0_linear_1609_7317)"}),jsx("path",{d:"M28.8001 28.8V29.6H3.2001V28.8H28.8001ZM29.6001 28V14.3969C29.6001 14.1285 29.4652 13.8778 29.2415 13.7297L16.4415 5.25232C16.2073 5.09729 15.9121 5.07755 15.6626 5.19373L15.5587 5.25232L2.75869 13.7297C2.53497 13.8778 2.4001 14.1285 2.4001 14.3969V28C2.4001 28.4418 2.75827 28.8 3.2001 28.8V29.6L3.03682 29.5914C2.28357 29.515 1.68506 28.9165 1.60869 28.1633L1.6001 28V14.3969C1.6001 13.8937 1.83627 13.4215 2.23447 13.1203L2.3165 13.0625L15.1165 4.58513C15.6521 4.23041 16.3481 4.23041 16.8837 4.58513L29.6837 13.0625C30.1311 13.3588 30.4001 13.8602 30.4001 14.3969V28L30.3915 28.1633C30.3151 28.9165 29.7166 29.515 28.9634 29.5914L28.8001 29.6V28.8C29.2419 28.8 29.6001 28.4418 29.6001 28Z",fill:"url(#paint1_linear_1609_7317)"}),jsx("path",{d:"M5.6001 4.7999C5.6001 3.47442 6.67461 2.3999 8.0001 2.3999H20.1374C20.5617 2.3999 20.9687 2.56847 21.2687 2.86853L25.9315 7.53127C26.2315 7.83133 26.4001 8.2383 26.4001 8.66264V17.2121C26.4001 17.7088 26.1694 18.1774 25.7756 18.4803L16.9998 25.2309C16.4135 25.6819 15.5944 25.6722 15.0189 25.2074L6.19476 18.0802C5.81868 17.7764 5.6001 17.3189 5.6001 16.8355V4.7999Z",fill:"url(#paint2_linear_1609_7317)"}),jsx("path",{d:"M5.6001 16.8358V4.7999C5.6001 3.51582 6.60854 2.46727 7.87666 2.40303L8.0001 2.3999H20.1376L20.2954 2.40771C20.6617 2.44407 21.0063 2.60608 21.2688 2.86865L25.9313 7.53115C26.2313 7.83115 26.4 8.23814 26.4001 8.6624V17.2124L26.3892 17.3968C26.3396 17.8233 26.1203 18.2154 25.7759 18.4804L17.0001 25.2312L16.8876 25.3101C16.3507 25.6545 15.6584 25.6459 15.1298 25.289L15.0188 25.2077L6.19463 18.0804C5.86561 17.8146 5.65728 17.431 5.61025 17.0155L5.6001 16.8358ZM6.4001 16.8358C6.4002 17.0774 6.5098 17.3059 6.69775 17.4577L15.522 24.5851C15.8097 24.8172 16.2187 24.8221 16.5118 24.5968L25.2876 17.846L25.3579 17.7858C25.5118 17.6362 25.6 17.4296 25.6001 17.2124V8.6624C25.6 8.47675 25.5355 8.2977 25.4188 8.15537L25.3657 8.09678L20.7032 3.43428C20.5532 3.2843 20.3497 3.19997 20.1376 3.1999H8.0001C7.11644 3.1999 6.4001 3.91625 6.4001 4.7999V16.8358Z",fill:"url(#paint3_linear_1609_7317)"}),jsx("path",{d:"M1.68437 14.1546C1.80314 14.0019 2.0105 13.9586 2.17734 14.0413L2.24531 14.0843L16.3922 25.0874L29.7461 14.0913C29.9166 13.951 30.1682 13.9755 30.3086 14.146C30.4489 14.3166 30.4244 14.5681 30.2539 14.7085L16.6539 25.9085L16.407 26.1124L16.1547 25.9156L1.75469 14.7156L1.69609 14.6601C1.57487 14.5188 1.56569 14.3073 1.68437 14.1546Z",fill:"url(#paint4_linear_1609_7317)"}),jsx("path",{d:"M15.063 19.8766C15.6222 19.4728 16.3773 19.4728 16.9366 19.8766L29.3969 28.8758C29.7115 29.103 29.5508 29.6001 29.1627 29.6001H2.8368C2.44873 29.6001 2.28801 29.103 2.6026 28.8758L15.063 19.8766Z",fill:"url(#paint5_linear_1609_7317)"}),jsx("path",{d:"M15.0634 19.8766C15.6226 19.4728 16.3776 19.4728 16.9368 19.8766L29.3969 28.8758C29.6919 29.0889 29.5693 29.5393 29.2329 29.5946L29.1634 29.6H2.83679L2.76726 29.5946C2.43083 29.5393 2.3082 29.0889 2.6032 28.8758L15.0634 19.8766ZM16.4688 20.525C16.2242 20.3484 15.9041 20.3262 15.6407 20.4586L15.5313 20.525L4.07429 28.8H27.9259L16.4688 20.525Z",fill:"url(#paint6_linear_1609_7317)"}),jsx("path",{d:"M16.2198 10.2711L15.999 10.4993L15.7783 10.2701C14.9185 9.38023 13.5199 9.37627 12.6562 10.2622L12.6485 10.2701C11.7838 11.164 11.7838 12.6095 12.6485 13.5044L15.6424 16.6463C15.8361 16.8487 16.1523 16.8517 16.3499 16.6532L16.3566 16.6463L19.3515 13.5044C20.2162 12.6105 20.2162 11.165 19.3515 10.2701C18.4917 9.38023 17.0931 9.37627 16.2294 10.2612L16.2198 10.2711Z",fill:"#B9D1FF"}),jsx("path",{d:"M15.9992 9.92654C17.0243 8.93604 18.641 8.95922 19.6391 9.99217L19.7312 10.0922C20.6519 11.146 20.6216 12.7633 19.6406 13.7797L19.6414 13.7804L16.6461 16.9219L16.6437 16.925L16.6336 16.9351C16.2776 17.2926 15.7023 17.2874 15.3531 16.9226V16.9219L12.3586 13.7804V13.7797C11.3466 12.7297 11.3471 11.0404 12.3609 9.99217L12.3695 9.98357V9.98279L12.4672 9.88748C13.4713 8.95732 15.0109 8.97251 15.9992 9.92654ZM19.0641 10.5476C18.3608 9.81979 17.2216 9.81726 16.5156 10.5406L16.507 10.55L16.5062 10.5492L16.2867 10.7773L15.9984 11.075L15.7109 10.7765L15.4898 10.5476V10.5469C14.7865 9.81999 13.6486 9.81767 12.943 10.5414L12.9422 10.5406L12.9351 10.5476L12.9359 10.5484C12.2663 11.2409 12.2241 12.3379 12.8101 13.082L12.9359 13.2265L12.9383 13.2281L15.9312 16.3695L15.9633 16.3922C15.9974 16.4073 16.0371 16.4004 16.0664 16.3711L16.0695 16.3672L19.0617 13.2281L19.0641 13.2258L19.1898 13.0828C19.7369 12.3893 19.7369 11.3867 19.1898 10.6922L19.0641 10.5476Z",fill:"#B9D1FF"}),jsx("path",{d:"M20 7.19997V3.53134C20 2.81862 20.8617 2.46168 21.3657 2.96565L25.8343 7.43428C26.3383 7.93826 25.9814 8.79997 25.2686 8.79997H21.6C20.7163 8.79997 20 8.08363 20 7.19997Z",fill:"#1F2D94"}),jsx("path",{d:"M20 7.19997V3.53122C20.0001 2.8186 20.8617 2.46174 21.3656 2.9656L25.8344 7.43435C26.3068 7.90689 26.0224 8.69348 25.3977 8.78981L25.2688 8.79997V7.99997L20.8 3.53122V7.19997C20.8 7.6418 21.1582 7.99997 21.6 7.99997V8.79997C20.7163 8.79997 20 8.08363 20 7.19997ZM25.2688 7.99997V8.79997H21.6V7.99997H25.2688Z",fill:"url(#paint7_linear_1609_7317)"}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_1609_7317",x1:"2.8001",y1:"15.5451",x2:"29.6001",y2:"15.5451",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#333948"}),jsx("stop",{offset:"1",stopColor:"#181C23"})]}),jsxs("linearGradient",{id:"paint1_linear_1609_7317",x1:"16.0001",y1:"3.99998",x2:"16.0001",y2:"29.6",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#4A5369"}),jsx("stop",{offset:"1",stopColor:"#222832"})]}),jsxs("linearGradient",{id:"paint2_linear_1609_7317",x1:"25.6001",y1:"14.3999",x2:"9.46705",y2:"7.84048",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#1828C3"}),jsx("stop",{offset:"1",stopColor:"#608CFF"})]}),jsxs("linearGradient",{id:"paint3_linear_1609_7317",x1:"15.2001",y1:"25.9999",x2:"23.4343",y2:"5.74778",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#1828C3"}),jsx("stop",{offset:"1",stopColor:"#608CFF"})]}),jsxs("linearGradient",{id:"paint4_linear_1609_7317",x1:"30",y1:"14.3999",x2:"2",y2:"14.3999",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#3B4355"}),jsx("stop",{offset:"0.483985",stopColor:"#6A7387"}),jsx("stop",{offset:"1",stopColor:"#3B4355"})]}),jsxs("linearGradient",{id:"paint5_linear_1609_7317",x1:"1.59977",y1:"24.4001",x2:"30.3998",y2:"24.4001",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#333948"}),jsx("stop",{offset:"1",stopColor:"#181C23"})]}),jsxs("linearGradient",{id:"paint6_linear_1609_7317",x1:"16.0001",y1:"19.2",x2:"16.0001",y2:"29.6",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#656D83"}),jsx("stop",{offset:"1",stopColor:"#222832"})]}),jsxs("linearGradient",{id:"paint7_linear_1609_7317",x1:"23.6",y1:"5.19997",x2:"20",y2:"8.79997",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#5D86FC"}),jsx("stop",{offset:"1",stopColor:"#4667E8"})]})]})]});var Z1=()=>jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M7.38623 9.2336C7.38623 4.46801 11.2495 0.604736 16.0151 0.604736C20.7807 0.604736 24.644 4.46801 24.644 9.2336C24.644 13.9992 20.7807 17.8625 16.0151 17.8625C11.2495 17.8625 7.38623 13.9992 7.38623 9.2336Z",fill:"url(#paint0_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3296 5.18278C19.3806 5.22417 19.3507 5.30493 19.285 5.30493H12.8438C12.778 5.30493 12.7482 5.22417 12.7993 5.18278C13.6911 4.46035 14.8272 4.02759 16.0643 4.02759C17.3016 4.02759 18.4376 4.46035 19.3296 5.18278Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0452 10.6322C14.0081 10.5792 13.9483 10.5459 13.8836 10.5459H11.1677C11.1055 10.5459 11.0601 10.605 11.0774 10.6647C11.7036 12.8282 13.6994 14.4099 16.0646 14.4099C18.4298 14.4099 20.4256 12.8282 21.0517 10.6647C21.069 10.605 21.0236 10.5459 20.9614 10.5459H18.2456C18.1809 10.5459 18.1211 10.5792 18.084 10.6322C17.6382 11.2679 16.8999 11.6834 16.0646 11.6834C15.2293 11.6834 14.491 11.2679 14.0452 10.6322Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8902 7.56345C17.9277 7.60484 17.9805 7.62978 18.0363 7.62978H20.8773C20.9418 7.62978 20.9874 7.56711 20.9661 7.50639C20.7656 6.93242 20.4672 6.40442 20.0908 5.94243C20.0555 5.89906 20.0022 5.87451 19.9462 5.87451H12.1818C12.1259 5.87451 12.0727 5.89906 12.0373 5.94243C11.661 6.40442 11.3625 6.93242 11.162 7.50639C11.1408 7.56711 11.1864 7.62978 11.2508 7.62978H14.0918C14.1477 7.62978 14.2005 7.60484 14.238 7.56345C14.6889 7.06633 15.34 6.75415 16.0641 6.75415C16.7881 6.75415 17.4392 7.06633 17.8902 7.56345Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5077 9.9775C18.4594 9.9775 18.425 9.93038 18.4381 9.88382C18.4973 9.67209 18.5289 9.44887 18.5289 9.21826C18.5289 8.89376 18.4662 8.58388 18.3523 8.30011C18.333 8.25208 18.3676 8.19849 18.4193 8.19849H21.0969C21.1308 8.19849 21.1602 8.22244 21.1664 8.2558C21.2248 8.56772 21.2554 8.88947 21.2554 9.21834C21.2554 9.45516 21.2395 9.68821 21.2089 9.91654C21.2041 9.95154 21.1742 9.9775 21.1389 9.9775H18.5077ZM13.6904 9.88382C13.7034 9.93038 13.6692 9.9775 13.6209 9.9775H10.9896C10.9543 9.9775 10.9243 9.95154 10.9196 9.91654C10.8889 9.68821 10.873 9.45516 10.873 9.21834C10.873 8.88947 10.9036 8.56772 10.9621 8.2558C10.9684 8.22244 10.9976 8.19849 11.0316 8.19849H13.7092C13.7609 8.19849 13.7955 8.25208 13.7762 8.30011C13.6622 8.58388 13.5995 8.89376 13.5995 9.21826C13.5995 9.44887 13.6312 9.67209 13.6904 9.88382Z",fill:"white"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00258 9.2336C8.00258 13.6588 11.5899 17.2461 16.0151 17.2461C20.4403 17.2461 24.0276 13.6588 24.0276 9.2336C24.0276 4.80841 20.4403 1.22108 16.0151 1.22108C11.5899 1.22108 8.00258 4.80841 8.00258 9.2336ZM16.0151 0.604736C11.2495 0.604736 7.38623 4.46801 7.38623 9.2336C7.38623 13.9992 11.2495 17.8625 16.0151 17.8625C20.7807 17.8625 24.644 13.9992 24.644 9.2336C24.644 4.46801 20.7807 0.604736 16.0151 0.604736Z",fill:"url(#paint1_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4248 19.2514C16.1912 19.0438 15.8393 19.0438 15.6058 19.2514L11.6798 22.7412C11.2562 23.1177 11.5225 23.8182 12.0893 23.8182H13.5494V25.6673C13.5494 26.3481 14.1013 26.9 14.7821 26.9H17.2475C17.9283 26.9 18.4802 26.3481 18.4802 25.6673V23.8182H19.9413C20.508 23.8182 20.7744 23.1177 20.3508 22.7412L16.4248 19.2514ZM14.474 27.5163C13.9634 27.5163 13.5494 27.9302 13.5494 28.4408C13.5494 28.9514 13.9634 29.3654 14.474 29.3654H17.5557C18.0663 29.3654 18.4802 28.9514 18.4802 28.4408C18.4802 27.9302 18.0663 27.5163 17.5557 27.5163H14.474ZM13.5494 30.5981C13.5494 30.2577 13.8254 29.9817 14.1658 29.9817H17.8639C18.2043 29.9817 18.4802 30.2577 18.4802 30.5981C18.4802 30.9385 18.2043 31.2144 17.8639 31.2144H14.1658C13.8254 31.2144 13.5494 30.9385 13.5494 30.5981Z",fill:"url(#paint2_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1658 23.2018V25.6673C14.1658 26.0077 14.4417 26.2836 14.7821 26.2836H17.2475C17.5879 26.2836 17.8639 26.0077 17.8639 25.6673V23.2018H19.9413L16.0153 19.7121L12.0893 23.2018H14.1658ZM12.0893 23.8182C11.5225 23.8182 11.2562 23.1177 11.6798 22.7412L15.6058 19.2514C15.8393 19.0438 16.1912 19.0438 16.4248 19.2514L20.3508 22.7412C20.7744 23.1177 20.508 23.8182 19.9413 23.8182H18.4802V25.6673C18.4802 26.3481 17.9283 26.9 17.2475 26.9H14.7821C14.1013 26.9 13.5494 26.3481 13.5494 25.6673V23.8182H12.0893ZM14.1658 29.9817C13.8254 29.9817 13.5494 30.2577 13.5494 30.5981C13.5494 30.9385 13.8254 31.2144 14.1658 31.2144H17.8639C18.2043 31.2144 18.4802 30.9385 18.4802 30.5981C18.4802 30.2577 18.2043 29.9817 17.8639 29.9817H14.1658ZM14.474 27.5163C13.9634 27.5163 13.5494 27.9302 13.5494 28.4408C13.5494 28.9514 13.9634 29.3654 14.474 29.3654H17.5557C18.0663 29.3654 18.4802 28.9514 18.4802 28.4408C18.4802 27.9302 18.0663 27.5163 17.5557 27.5163H14.474ZM14.474 28.1327C14.3038 28.1327 14.1658 28.2706 14.1658 28.4408C14.1658 28.611 14.3038 28.749 14.474 28.749H17.5557C17.7259 28.749 17.8639 28.611 17.8639 28.4408C17.8639 28.2706 17.7259 28.1327 17.5557 28.1327H14.474Z",fill:"url(#paint3_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.88568 17.3473C8.87284 17.0263 8.61551 16.7689 8.29446 16.7561L4.99029 16.6239C4.42967 16.6015 4.1331 17.2789 4.52983 17.6756L5.15844 18.3042L3.85097 19.6117C3.36957 20.0931 3.36957 20.8736 3.85097 21.355L4.2868 21.7908C4.76819 22.2722 5.54869 22.2722 6.03009 21.7908L7.33756 20.4833L7.96617 21.1119C8.36291 21.5087 9.04027 21.2121 9.01785 20.6515L8.88568 17.3473ZM2.10768 21.355C2.34838 21.1143 2.73863 21.1143 2.97932 21.355L4.2868 22.6624C4.52749 22.9031 4.52749 23.2934 4.2868 23.5341C4.0461 23.7748 3.65585 23.7748 3.41515 23.5341L2.10768 22.2266C1.86698 21.9859 1.86698 21.5957 2.10768 21.355Z",fill:"url(#paint4_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.03009 18.3042L4.2868 20.0475C4.0461 20.2882 4.0461 20.6785 4.2868 20.9192L4.72262 21.355C4.96332 21.5957 5.35357 21.5957 5.59427 21.355L7.33756 19.6117L8.40199 20.6761L8.26983 17.3719L4.96566 17.2398L6.03009 18.3042ZM8.29446 16.7561L4.99029 16.6239C4.42967 16.6015 4.1331 17.2789 4.52983 17.6756L5.15844 18.3042L3.85097 19.6117C3.36957 20.0931 3.36957 20.8736 3.85097 21.355L4.2868 21.7908C4.76819 22.2722 5.54869 22.2722 6.03009 21.7908L7.33756 20.4833L7.96617 21.1119C8.36291 21.5087 9.04027 21.2121 9.01785 20.6515L8.88568 17.3473C8.87284 17.0263 8.61551 16.7689 8.29446 16.7561ZM2.97932 21.355C2.73863 21.1143 2.34838 21.1143 2.10768 21.355C1.86698 21.5957 1.86698 21.9859 2.10768 22.2266L3.41515 23.5341C3.65585 23.7748 4.0461 23.7748 4.2868 23.5341C4.52749 23.2934 4.52749 22.9031 4.2868 22.6624L2.97932 21.355Z",fill:"url(#paint5_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.921 17.3473C22.9338 17.0263 23.1911 16.7689 23.5122 16.7561L26.8164 16.6239C27.377 16.6015 27.6735 17.2789 27.2768 17.6756L26.6482 18.3042L27.9557 19.6117C28.4371 20.0931 28.4371 20.8736 27.9557 21.355L27.5198 21.7908C27.0384 22.2722 26.2579 22.2722 25.7766 21.7908L24.4691 20.4833L23.8405 21.1119C23.4437 21.5087 22.7664 21.2121 22.7888 20.6515L22.921 17.3473ZM29.699 21.355C29.4583 21.1143 29.068 21.1143 28.8273 21.355L27.5198 22.6624C27.2791 22.9031 27.2791 23.2934 27.5198 23.5341C27.7605 23.7748 28.1508 23.7748 28.3915 23.5341L29.699 22.2266C29.9397 21.9859 29.9397 21.5957 29.699 21.355Z",fill:"url(#paint6_linear_1609_7349)"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.7766 18.3042L27.5198 20.0475C27.7605 20.2882 27.7605 20.6785 27.5198 20.9192L27.084 21.355C26.8433 21.5957 26.4531 21.5957 26.2124 21.355L24.4691 19.6117L23.4046 20.6761L23.5368 17.3719L26.841 17.2398L25.7766 18.3042ZM23.5122 16.7561L26.8164 16.6239C27.377 16.6015 27.6735 17.2789 27.2768 17.6756L26.6482 18.3042L27.9557 19.6117C28.4371 20.0931 28.4371 20.8736 27.9557 21.355L27.5198 21.7908C27.0384 22.2722 26.2579 22.2722 25.7766 21.7908L24.4691 20.4833L23.8405 21.1119C23.4437 21.5087 22.7664 21.2121 22.7888 20.6515L22.921 17.3473C22.9338 17.0263 23.1911 16.7689 23.5122 16.7561ZM28.8273 21.355C29.068 21.1143 29.4583 21.1143 29.699 21.355C29.9397 21.5957 29.9397 21.9859 29.699 22.2266L28.3915 23.5341C28.1508 23.7748 27.7605 23.7748 27.5198 23.5341C27.2791 23.2934 27.2791 22.9031 27.5198 22.6624L28.8273 21.355Z",fill:"url(#paint7_linear_1609_7349)"}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_1609_7349",x1:"22.4867",y1:"8.61726",x2:"9.32517",y2:"9.12524",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#5806D4"}),jsx("stop",{offset:"1",stopColor:"#BB6CED"})]}),jsxs("linearGradient",{id:"paint1_linear_1609_7349",x1:"16.0151",y1:"0.604736",x2:"16.0151",y2:"17.8625",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#BD6CED"}),jsx("stop",{offset:"1",stopColor:"#5A08DD"})]}),jsxs("linearGradient",{id:"paint2_linear_1609_7349",x1:"20.1752",y1:"20.7365",x2:"11.8545",y2:"20.7365",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#28303B"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint3_linear_1609_7349",x1:"16.0069",y1:"19.4285",x2:"16.0069",y2:"30.9792",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#636D85"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint4_linear_1609_7349",x1:"11.0242",y1:"20.3888",x2:"5.14058",y2:"14.5052",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint5_linear_1609_7349",x1:"8.7345",y1:"16.8618",x2:"2.74525",y2:"22.8511",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#636D85"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]}),jsxs("linearGradient",{id:"paint6_linear_1609_7349",x1:"20.7824",y1:"20.3888",x2:"26.6661",y2:"14.5052",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#181C23"}),jsx("stop",{offset:"1",stopColor:"#333948"})]}),jsxs("linearGradient",{id:"paint7_linear_1609_7349",x1:"23.2796",y1:"16.8618",x2:"29.2688",y2:"22.8511",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#636D85",stopOpacity:"0.411765"}),jsx("stop",{offset:"1",stopColor:"#1B2028"})]})]})]});var U1=e=>jsxs(d,{...e,children:[jsxs("g",{id:"Portfolio",children:[jsx("path",{id:"Vector",d:"M8.9688 13.3124C6.3545 14.0269 4.5 16.3001 4.5 18.9999V20.9999C4.5 21.5522 4.9477 21.9999 5.5 21.9999H19.5C20.0523 21.9999 20.5 21.5522 20.5 20.9999V18.9999C20.5 16.3001 18.6455 14.0269 16.0312 13.3124C15.8071 13.2511 15.5869 13.2794 15.375 13.3749C14.4595 13.7875 13.4849 13.9999 12.5 13.9999C11.5151 13.9999 10.5405 13.7875 9.625 13.3749C9.4131 13.2794 9.1929 13.2511 8.9688 13.3124Z",fill:"white",fillOpacity:"0.36"}),jsx("path",{id:"Vector_2",d:"M12.5 2C9.7386 2 7.5 4.2386 7.5 7C7.5 9.7614 9.7386 12 12.5 12C15.2614 12 17.5 9.7614 17.5 7C17.5 4.2386 15.2614 2 12.5 2Z",fill:"url(#paint0_linear_148_26239)"})]}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_148_26239",x1:"17.5",y1:"7",x2:"7.5",y2:"7",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var Y1=e=>jsx(d,{...e,children:jsxs("g",{id:"Portfolio",children:[jsx("path",{id:"Vector",d:"M8.9688 13.3124C6.3545 14.0269 4.5 16.3001 4.5 18.9999V20.9999C4.5 21.5522 4.9477 21.9999 5.5 21.9999H19.5C20.0523 21.9999 20.5 21.5522 20.5 20.9999V18.9999C20.5 16.3001 18.6455 14.0269 16.0312 13.3124C15.8071 13.2511 15.5869 13.2794 15.375 13.3749C14.4595 13.7875 13.4849 13.9999 12.5 13.9999C11.5151 13.9999 10.5405 13.7875 9.625 13.3749C9.4131 13.2794 9.1929 13.2511 8.9688 13.3124Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{id:"Vector_2",d:"M12.5 2C9.7386 2 7.5 4.2386 7.5 7C7.5 9.7614 9.7386 12 12.5 12C15.2614 12 17.5 9.7614 17.5 7C17.5 4.2386 15.2614 2 12.5 2Z",fill:"white",fillOpacity:"0.36"})]})});var j1=e=>jsxs(d,{...e,children:[jsxs("g",{id:"Trading",children:[jsx("path",{id:"Vector 646 (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 7C2.5 6.44772 2.94772 6 3.5 6H5.66905C7.77663 6 9.72966 7.10579 10.814 8.91303L13.901 14.058C14.6239 15.2628 15.9259 16 17.3309 16H19.5V14L22.5 17L19.5 20V18H17.3309C15.2234 18 13.2703 16.8942 12.186 15.087L9.09902 9.94202C8.37613 8.7372 7.0741 8 5.66905 8H3.5C2.94772 8 2.5 7.55228 2.5 7Z",fill:"url(#paint0_linear_134_17004)"}),jsx("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18C2.94772 18 2.5 17.5523 2.5 17C2.5 16.4477 2.94772 16 3.5 16H5.66905C7.0741 16 8.37613 15.2628 9.09902 14.058L10.3338 12L11.5 13.9436L10.814 15.087C9.72966 16.8942 7.77663 18 5.66905 18H3.5ZM12.6662 12L13.901 9.94202C14.6239 8.7372 15.9259 8 17.3309 8H19.5V10L22.5 7L19.5 4V6H17.3309C15.2234 6 13.2703 7.10579 12.186 8.91303L11.5 10.0563L12.6662 12Z",fill:"white",fillOpacity:"0.36"})]}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_134_17004",x1:"22.5",y1:"13",x2:"2.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var $1=()=>jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 7C2 6.44772 2.44772 6 3 6H5.16905C7.27663 6 9.22967 7.10579 10.314 8.91303L13.401 14.058C14.1239 15.2628 15.4259 16 16.831 16H19V14L22 17L19 20V18H16.831C14.7234 18 12.7703 16.8942 11.686 15.087L8.59902 9.94202C7.87613 8.7372 6.5741 8 5.16905 8H3C2.44772 8 2 7.55228 2 7Z",fill:"white",fillOpacity:.8}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18C2.44772 18 2 17.5523 2 17C2 16.4477 2.44772 16 3 16H5.16905C6.5741 16 7.87613 15.2628 8.59902 14.058L9.83381 12L11 13.9437L10.314 15.087C9.22967 16.8942 7.27663 18 5.16905 18H3ZM12.1662 12L13.401 9.94202C14.1239 8.7372 15.4259 8 16.831 8H19V10L22 7L19 4V6H16.831C14.7234 6 12.7703 7.10579 11.686 8.91303L11 10.0563L12.1662 12Z",fill:"white",fillOpacity:.8})]});var K1=e=>jsx(d,{...e,children:jsxs("g",{id:"Trading",children:[jsx("path",{id:"Vector 646 (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 7C2.5 6.44772 2.94772 6 3.5 6H5.66905C7.77663 6 9.72967 7.10579 10.814 8.91303L13.901 14.058C14.6239 15.2628 15.9259 16 17.331 16H19.5V14L22.5 17L19.5 20V18H17.331C15.2234 18 13.2703 16.8942 12.186 15.087L9.09902 9.94202C8.37613 8.7372 7.0741 8 5.66905 8H3.5C2.94772 8 2.5 7.55228 2.5 7Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18C2.94772 18 2.5 17.5523 2.5 17C2.5 16.4477 2.94772 16 3.5 16H5.66905C7.0741 16 8.37613 15.2628 9.09902 14.058L10.3338 12L11.5 13.9437L10.814 15.087C9.72967 16.8942 7.77663 18 5.66905 18H3.5ZM12.6662 12L13.901 9.94202C14.6239 8.7372 15.9259 8 17.331 8H19.5V10L22.5 7L19.5 4V6H17.331C15.2234 6 13.2703 7.10579 12.186 8.91303L11.5 10.0563L12.6662 12Z",fill:"white",fillOpacity:"0.36"})]})});var J1=e=>jsxs(d,{...e,children:[jsx("path",{d:"M18 11H21C22.103 11 23 11.897 23 13V17C23 18.103 22.103 19 21 19H18V17V11Z",fill:"white",fillOpacity:"0.36"}),jsx("path",{d:"M6 9V17V19H3C1.897 19 1 18.103 1 17V11C1 9.897 1.897 9 3 9H6Z",fill:"white",fillOpacity:"0.36"}),jsx("path",{d:"M16 7V17V19H8V17V7C8 5.897 8.897 5 10 5H14C15.103 5 16 5.897 16 7Z",fill:"url(#paint0_linear_999_8196)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_999_8196",x1:"16",y1:"12",x2:"8",y2:"12",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var ep=e=>jsxs(d,{...e,children:[jsx("path",{d:"M18 11H21C22.103 11 23 11.897 23 13V17C23 18.103 22.103 19 21 19H18V17V11Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{d:"M6 9V17V19H3C1.897 19 1 18.103 1 17V11C1 9.897 1.897 9 3 9H6Z",fill:"white",fillOpacity:"0.12"}),jsx("path",{d:"M16 7V17V19H8V17V7C8 5.897 8.897 5 10 5H14C15.103 5 16 5.897 16 7Z",fill:"white",fillOpacity:"0.36"})]});var tp=e=>jsxs(d,{...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 8C10.6454 8 9.75 8.89543 9.75 10V18C9.75 19.1046 10.6454 20 11.75 20H13.75C14.8546 20 15.75 19.1046 15.75 18V10C15.75 8.89543 14.8546 8 13.75 8H11.75ZM4.75 12C3.64543 12 2.75 12.8954 2.75 14V18C2.75 19.1046 3.64543 20 4.75 20H6.75C7.85457 20 8.75 19.1046 8.75 18V14C8.75 12.8954 7.85457 12 6.75 12H4.75Z",fill:"white",fillOpacity:"0.16"}),jsx("path",{d:"M16.75 6C16.75 4.89543 17.6454 4 18.75 4H20.75C21.8546 4 22.75 4.89543 22.75 6V18C22.75 19.1046 21.8546 20 20.75 20H18.75C17.6454 20 16.75 19.1046 16.75 18V6Z",fill:"url(#paint0_linear_2097_10887)"}),jsx("defs",{children:jsxs("linearGradient",{id:"paint0_linear_2097_10887",x1:"22.75",y1:"12",x2:"16.75",y2:"12",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"rgb(var(--oui-gradient-brand-end))"}),jsx("stop",{offset:"1",stopColor:"rgb(var(--oui-gradient-brand-start))"})]})})]});var rp=e=>jsxs(d,{...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 8a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-7 4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z",fill:"#fff",fillOpacity:".12"}),jsx("path",{d:"M16.5 6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z",fill:"#fff",fillOpacity:".36"})]});function ts(){return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none",viewBox:"0 0 64 64",children:[jsx("rect",{width:"36",height:"48",x:"18",y:"5",fill:"#07080A",rx:"4"}),jsx("rect",{width:"36",height:"48",x:"11",y:"12",fill:"url(#paint0_linear_309_13641)",rx:"4"}),jsx("rect",{width:"36",height:"48",x:"9",y:"10",fill:"url(#paint1_linear_309_13641)",rx:"4"}),jsx("path",{fill:"#303237",d:"M36.636 53.323V50H6v3.323C6 55.91 7.943 58 10.462 58H41c-2.392 0-4.364-2.168-4.364-4.663"}),jsx("rect",{width:"9",height:"2",x:"15",y:"16",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"16",height:"2",x:"15",y:"24",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"12",height:"3",x:"28",y:"29",fill:"#45484E",rx:"1.5"}),jsx("path",{fill:"#45484E",d:"M33 23a2 2 0 012-2h1.5a1.5 1.5 0 010 3H34a1 1 0 01-1-1z"}),jsx("rect",{width:"9",height:"3",x:"29",y:"37",fill:"#45484E",rx:"1.5"}),jsx("rect",{width:"13",height:"2",x:"15",y:"30",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"15",height:"2",x:"15",y:"36",fill:"#3F4146",rx:"1"}),jsx("rect",{width:"24",height:"2",x:"15",y:"42",fill:"#3F4146",rx:"1"}),jsx("path",{fill:"#181A1D",fillRule:"evenodd",d:"M27.24 30.022a12.451 12.451 0 1122.195 9.87l5.328 5.328-1.58 1.58-5.241-5.24a12.452 12.452 0 01-20.703-11.537zm14.193 12.39A10.156 10.156 0 1037.47 22.49a10.156 10.156 0 003.963 19.92z",clipRule:"evenodd"}),jsx("path",{fill:"#54565B",fillRule:"evenodd",d:"M27.24 29.022a12.451 12.451 0 1122.195 9.87l5.328 5.328-1.58 1.58-5.241-5.24a12.452 12.452 0 01-20.703-11.537zm14.193 12.39A10.156 10.156 0 1037.47 21.49a10.156 10.156 0 003.963 19.92z",clipRule:"evenodd"}),jsx("path",{fill:"#16181B",d:"M51.755 43.867c-.99.99-.99 2.596 0 3.586l3.754 3.754a2.536 2.536 0 103.586-3.586l-3.754-3.754a2.536 2.536 0 00-3.586 0z"}),jsx("path",{fill:"#4E525C",d:"M51.755 42.867c-.99.99-.99 2.596 0 3.586l3.754 3.754a2.536 2.536 0 103.586-3.586l-3.754-3.754a2.536 2.536 0 00-3.586 0z"}),jsxs("defs",{children:[jsxs("linearGradient",{id:"paint0_linear_309_13641",x1:"27.286",x2:"48.844",y1:"55.742",y2:"25.703",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#0C0D10"}),jsx("stop",{offset:"1",stopColor:"#121418"})]}),jsxs("linearGradient",{id:"paint1_linear_309_13641",x1:"25.286",x2:"46.844",y1:"53.742",y2:"23.703",gradientUnits:"userSpaceOnUse",children:[jsx("stop",{stopColor:"#1B1D22"}),jsx("stop",{offset:"1",stopColor:"#26292E"})]})]})]})}var rs=ts;var as=Le__default.forwardRef((e,o)=>jsx("svg",{width:"20",height:"13",viewBox:"0 0 20 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{fillOpacity:.8,d:"M0.999023 0.103516C0.447023 0.103516 -0.000976562 0.551516 -0.000976562 1.10352C-0.000976562 1.65552 0.447023 2.10352 0.999023 2.10352H18.999C19.551 2.10352 19.999 1.65552 19.999 1.10352C19.999 0.551516 19.551 0.103516 18.999 0.103516H0.999023ZM0.999023 5.10352C0.447023 5.10352 -0.000976562 5.55152 -0.000976562 6.10352C-0.000976562 6.65552 0.447023 7.10352 0.999023 7.10352H18.999C19.551 7.10352 19.999 6.65552 19.999 6.10352C19.999 5.55152 19.551 5.10352 18.999 5.10352H0.999023ZM0.999023 10.1035C0.447023 10.1035 -0.000976562 10.5515 -0.000976562 11.1035C-0.000976562 11.6555 0.447023 12.1035 0.999023 12.1035H18.999C19.551 12.1035 19.999 11.6555 19.999 11.1035C19.999 10.5515 19.551 10.1035 18.999 10.1035H0.999023Z",fill:"white"})}));as.displayName="VectorIcon";var np=()=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("mask",{id:"mask0_2321_5422",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),jsx("g",{mask:"url(#mask0_2321_5422)",children:jsx("path",{d:"M6 16.5L2 12.5L6 8.5L7.0625 9.5625L4.875 11.75H11V13.25H4.875L7.0625 15.4375L6 16.5ZM14 11.5L12.9375 10.4375L15.125 8.25H9V6.75H15.125L12.9375 4.5625L14 3.5L18 7.5L14 11.5Z",fill:"white",fillOpacity:"0.54"})})]});var lp=()=>jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M15.499 2.92969C13.0137 2.92969 10.999 4.94469 10.999 7.42969C10.999 9.91469 13.0137 11.9297 15.499 11.9297C17.9843 11.9297 19.999 9.91469 19.999 7.42969C19.999 4.94469 17.9843 2.92969 15.499 2.92969ZM7.99902 3.92969C5.78992 3.92969 3.99902 5.72069 3.99902 7.92969C3.99902 10.1387 5.78992 11.9297 7.99902 11.9297C8.82842 11.9297 9.61402 11.6767 10.2802 11.2107C10.7329 10.8947 10.8466 10.2577 10.5302 9.80469C10.2138 9.35169 9.60792 9.26969 9.15522 9.58569C8.82232 9.81869 8.41522 9.92969 7.99902 9.92969C6.89442 9.92969 5.99902 9.03469 5.99902 7.92969C5.99902 6.82469 6.89442 5.92969 7.99902 5.92969C8.32522 5.92969 8.62362 6.00168 8.90522 6.14868C9.39522 6.40368 10.0254 6.2317 10.2802 5.7417C10.5351 5.2527 10.3327 4.62168 9.84282 4.36768C9.27772 4.07368 8.64842 3.92969 7.99902 3.92969ZM15.499 4.92969C16.8797 4.92969 17.999 6.04869 17.999 7.42969C17.999 8.81069 16.8797 9.92969 15.499 9.92969C14.1183 9.92969 12.999 8.81069 12.999 7.42969C12.999 6.04869 14.1183 4.92969 15.499 4.92969ZM5.06152 13.2737C3.22742 14.0307 1.99902 15.8857 1.99902 17.9297V19.9297C1.99902 20.4817 2.44672 20.9297 2.99902 20.9297H6.99902C7.55132 20.9297 7.99902 20.4817 7.99902 19.9297C7.99902 19.3777 7.55132 18.9297 6.99902 18.9297H3.99902V17.9297C3.99902 16.8057 4.66572 15.7737 5.43202 15.3197C6.15272 15.6237 6.91512 15.8537 7.59312 15.9107C8.14352 15.9577 8.63982 15.5427 8.68652 14.9917C8.73322 14.4417 8.33552 13.9757 7.78522 13.9287C7.34622 13.8917 6.86642 13.7597 6.31152 13.5237C6.17752 13.4667 6.09972 13.4217 5.84282 13.3047C5.59092 13.1897 5.31732 13.1677 5.06152 13.2737ZM12.0615 13.2737C10.2274 14.0307 8.99902 15.8857 8.99902 17.9297V19.9297C8.99902 20.4817 9.44672 20.9297 9.99902 20.9297H20.999C21.5513 20.9297 21.999 20.4817 21.999 19.9297V17.9297C21.999 15.9337 20.7638 14.1237 18.9365 13.3357C18.6793 13.2247 18.3796 13.2217 18.124 13.3357C17.2392 13.7327 16.3772 13.9297 15.499 13.9297C14.6238 13.9297 13.7588 13.7217 12.8428 13.3047C12.5909 13.1897 12.3173 13.1677 12.0615 13.2737ZM12.446 15.3197C13.3908 15.6777 14.5299 15.9297 15.499 15.9297C16.4605 15.9297 17.5525 15.6947 18.4782 15.3527C19.3808 15.8667 19.999 16.8287 19.999 17.9297V18.9297H10.999V17.9297C10.999 16.7647 11.6549 15.7827 12.446 15.3197Z",fill:"white",fillOpacity:.8})});var up=()=>jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M11.998 1.95312C9.23665 1.95312 6.99805 4.19172 6.99805 6.95312C6.99805 9.71452 9.23665 11.9531 11.998 11.9531C14.7594 11.9531 16.998 9.71452 16.998 6.95312C16.998 4.19172 14.7594 1.95312 11.998 1.95312ZM11.998 3.95312C13.6549 3.95312 14.998 5.29622 14.998 6.95312C14.998 8.61002 13.6549 9.95312 11.998 9.95312C10.3411 9.95312 8.99805 8.61002 8.99805 6.95312C8.99805 5.29622 10.3411 3.95312 11.998 3.95312ZM8.46685 13.2656C5.85255 13.9801 3.99805 16.2533 3.99805 18.9531V20.9531C3.99805 21.5054 4.44575 21.9531 4.99805 21.9531H18.998C19.5503 21.9531 19.998 21.5054 19.998 20.9531V18.9531C19.998 16.2533 18.1435 13.9801 15.5292 13.2656C15.3051 13.2043 15.0849 13.2326 14.873 13.3281C13.9575 13.7407 12.9829 13.9531 11.998 13.9531C11.0131 13.9531 10.0385 13.7407 9.12305 13.3281C8.91115 13.2326 8.69095 13.2043 8.46685 13.2656ZM8.87305 15.2656C9.88285 15.6475 10.9177 15.9531 11.998 15.9531C13.0783 15.9531 14.1132 15.6475 15.123 15.2656C16.8264 15.7816 17.998 17.2195 17.998 18.9531V19.9531H5.99805V18.9531C5.99805 17.2195 7.16965 15.7816 8.87305 15.2656Z",fill:"white",fillOpacity:.8})});var us=Le__default.forwardRef((e,o)=>{let{opacity:t=.54,...r}=e;return jsx(d,{ref:o,...r,children:jsx("path",{fill:"currentcolor",fillOpacity:t,d:"M8.968 2.456a9.669 9.669 0 0 0-3.72 2.187c-.332.31-.434.818-.218 1.219.8 1.48-.037 3.065-1.843 3.156-.443.023-.834.35-.938.78a8.712 8.712 0 0 0-.25 2.188c0 .688.074 1.464.219 2.156.09.433.466.744.906.783 1.818.156 2.718 1.543 1.906 3.311-.18.393-.098.863.219 1.156 1.062.983 2.282 1.675 3.719 2.125.41.13.873-.026 1.125-.375 1.112-1.537 2.725-1.543 3.78 0 .25.364.706.54 1.126.407a10.072 10.072 0 0 0 3.75-2.157c.33-.3.417-.787.219-1.186-.832-1.68.125-3.221 1.843-3.25.456-.008.862-.308.969-.75.173-.717.219-1.342.219-2.22 0-.754-.09-1.497-.25-2.218a.994.994 0 0 0-.97-.781c-1.69-.003-2.638-1.665-1.811-3.125a.979.979 0 0 0-.188-1.22 10.153 10.153 0 0 0-3.812-2.186.986.986 0 0 0-1.125.406c-.966 1.5-2.77 1.527-3.72.03-.242-.382-.723-.574-1.155-.436Zm3.03 5.53a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"})})});us.displayName="SettingFillIcon";var pp=e=>{let{width:o=24,height:t=24,opacity:r=.54,...i}=e;return jsx("svg",{width:`${o}px`,height:`${t}px`,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...i,children:jsx("path",{d:"M5.426 1.66663C5.24175 1.67715 4.98875 1.75081 4.85308 1.85868C4.80817 1.89464 4.67798 2.0148 4.65323 2.05076L1.02049 7.28121C0.892158 7.44872 0.833496 7.67235 0.833496 7.80916C0.833496 8.18539 1.09108 8.41167 1.09108 8.41167L9.28423 18.0043C9.28973 18.0113 9.58307 18.3393 10.0002 18.3332C10.4172 18.3262 10.7106 18.0113 10.7161 18.0043C10.9718 17.7053 18.9404 8.37835 18.9404 8.37835C18.9404 8.37835 19.1668 8.08015 19.1668 7.80916C19.1668 7.53729 18.9486 7.23472 18.9486 7.23472L15.3571 2.05338C15.3315 2.01742 15.2728 2.0297 15.2426 1.99901C15.2059 1.95691 15.2013 1.89728 15.1564 1.86132C15.0207 1.75345 14.8603 1.74292 14.6981 1.7245C14.6541 1.71836 14.6284 1.67013 14.5835 1.67013H14.4973L5.426 1.66663ZM7.36474 3.42414H12.6356L10.0002 6.43841L7.36474 3.42414ZM5.50299 4.02664L8.05224 6.93216H3.46891L5.50299 4.02664ZM14.4973 4.02664L16.5314 6.93216H11.9481L14.4973 4.02664ZM3.69808 8.68616H9.08349V14.9892L3.69808 8.68616ZM10.9168 8.68616H16.3022C15.0235 10.1806 12.4999 13.1387 10.9168 14.9892V8.68616Z",fill:"white",fillOpacity:r})})};var dp=d;dp.combine=_a;var ps=e=>["date","address","symbol","status","txId"].includes(e),xp="base-quote",bp="yyyy-MM-dd HH:mm:ss",zo=Le__default.forwardRef((e,o)=>{let{rule:t,children:r,prefix:i,symbolElement:n,formatString:a,range:s,capitalize:l,copyable:u,copyIconSize:c,onCopy:m,showIcon:g,iconSize:p="xs",copyIconTestid:f,isIcon:b,...T}=e,x=useMemo(()=>t==="symbol"&&g?jsx(Ne,{symbol:r,size:p}):i,[i,g,t,p,r]),S=useMemo(()=>{if(typeof e.suffix<"u")return e.suffix;if(u)return jsx("button",{className:"oui-cursor-pointer oui-text-sm","data-testid":f,onClick:V=>{navigator.clipboard.writeText(r),m?.(V);},children:jsx(Pt,{size:c??12,color:"white"})})},[e.suffix,u,r]),R=useMemo(()=>{if(typeof r>"u")return "--";if(typeof t>"u")return r;if(t==="address"||t==="txId")return Mr(r,s??(t==="address"?[6,4]:[6,6]));if(t==="date"){let V=new Date(r);return isValid(V)?format(new Date(r),a??bp):"Error: Invalid Date"}if(t==="symbol"){let V=r.split("_"),y=V[0],H=V[1],j=V[2];return (a??xp).replace("type",y).replace("base",H).replace("quote",j)}return r},[r,t,a,s,n]),v=useMemo(()=>typeof S>"u"&&typeof x>"u"?R:jsxs("span",{className:"oui-flex oui-items-center oui-gap-1",children:[x,R,S]}),[R,S,x]);return jsx(ee,{...T,ref:o,children:v})});zo.displayName="FormattedText";var ds=h({base:"oui-text-transparent oui-bg-clip-text",variants:{color:{primary:"oui-gradient-primary",brand:"oui-gradient-brand",success:"oui-gradient-success",warning:"oui-gradient-warning",danger:"oui-gradient-danger",neutral:"oui-gradient-neutral",inherit:"oui-text-inherit"}}}),jr=Le__default.forwardRef((e,o)=>{let{color:t,className:r,angle:i,...n}=e,a=mt({angle:i});return jsx(ee,{...n,ref:o,className:ds({color:t,className:r}),style:a})});jr.displayName="GradientText";var Q=ee;Q.formatted=zo;Q.numeral=qe;Q.gradient=jr;var qr=forwardRef((e,o)=>{let{clearable:t,onClean:r,fixClassName:i,helpText:n,loading:a,inputMode:s,containerClassName:l,onValueChange:u,onChange:c,id:m,formatters:g,value:p,...f}=e,[b,T]=useState(null),x=useRef(null),S=useRef(null),R=useRef(false),v=useMemo(()=>g??[],[g]);useEffect(()=>{o&&(typeof o=="function"?o(x.current):o.current=x.current);},[x,o]);let V=useCallback(w=>{if(!Array.isArray(v)||v.length===0)return w;if(w==null)return "";let z=0;for(;z<v.length;)w=v[z].onRenderBefore(w,{isFocused:R.current}),z++;return w},[v]),y=useCallback((w,z)=>{if(!Array.isArray(v)||v.length===0)return w;if(w==null)return "";let A=v.length-1;for(;A>-1;)w=v[A].onSendBefore(w,{isFocused:R.current,originValue:z}),A--;return w},[v]),H=useMemo(()=>typeof p>"u"?p:V(p),[p]);return useEffect(()=>{if(document.activeElement!==x.current)return;let w=`${H}`.length,z=S.current?.length||0,A=b?b+(w-z):0;x.current?.setSelectionRange(A,A);},[H]),jsx("input",{type:"text",...f,ref:x,onBlur:w=>{R.current=false,f.onBlur?.(w);},onFocus:w=>{R.current=true,f.onFocus?.(w);},onChange:w=>{if(w.target.value.length<e.value?.length){let z=w.target.selectionStart,A=findLongestCommonSubString(`${e.value}`,w.target.value);A>-1&&`${e.value}`.at(A)===","&&(w.target.value=`${w.target.value.substring(0,A-1)}${w.target.value.substring(A)}`,w.target.selectionStart=z?z-1:0);}if(typeof c=="function"&&c(w),typeof u=="function"){let z=w.target.value;z=y(z,String(e.value)),u(z);}S.current=w.target.value,T(w.target.selectionStart);},value:H,id:m})});qr.displayName="BaseInput";var ro=e=>{let{asChild:o,as:t="label"}=e;return jsx(o?Slot:"label",{htmlFor:e.name,className:e.className,children:e.children})};var xs=e=>{let{prefix:o,id:t}=e;return typeof o>"u"?null:typeof o=="string"?jsx(ro,{name:t,className:e.className,children:o}):o};var bs=e=>{let{suffix:o,id:t}=e;return typeof o>"u"?null:typeof o=="string"?jsx(ro,{name:t,className:e.className,children:o}):o};var ws=h({slots:{input:["oui-w-full oui-bg-transparent","oui-bg-transparent","oui-flex-1","focus-visible:oui-outline-none","oui-flex","placeholder:oui-text-base-contrast-20","placeholder:oui-text-xs","oui-tabular-nums","oui-text-white","autofill:oui-bg-transparent","oui-input-input","disabled:oui-cursor-not-allowed","oui-peer"],box:["oui-rounded","oui-bg-base-6","oui-flex","oui-items-center","oui-outline","oui-outline-offset-0","oui-outline-1","oui-outline-transparent","focus-within:oui-outline-primary-light","oui-input-root"],additional:["oui-h-full oui-flex oui-flex-col oui-justify-center oui-px-2 oui-text-base-contrast"],closeButton:["oui-cursor-pointer","oui-invisible","peer-focus:oui-visible"]},variants:{size:{xs:{input:["oui-h-6","oui-text-2xs","placeholder:oui-text-2xs"],box:["oui-h-6"],additional:["oui-text-2xs"]},sm:{input:["oui-h-7","oui-text-2xs","placeholder:oui-text-2xs"],box:["oui-h-7"],additional:["oui-text-2xs"]},md:{input:["oui-h-8","oui-text-2xs","placeholder:oui-text-2xs"],box:["oui-h-8"],additional:["oui-text-2xs"]},lg:{input:["oui-h-10","oui-text-sm","placeholder:oui-text-sm"],box:["oui-h-10 oui-rounded-md"],additional:["oui-text-sm"]},xl:{input:["oui-h-12","oui-text-base","placeholder:oui-text-base"],box:["oui-h-12 oui-rounded-md"],additional:["oui-text-sm"]}},color:{success:{box:["oui-outline-success","focus-within:oui-outline-success"],input:["oui-text-success"]},danger:{box:["oui-outline-danger","focus-within:oui-outline-danger"],input:["oui-text-danger"]},warning:{box:["oui-outline-warning-darken","focus-within:oui-outline-warning-darken"],input:["oui-text-warning-darken"]},default:{box:["oui-outline-transparent"]}},disabled:{true:{input:["oui-cursor-not-allowed","oui-text-base-contrast-20"],box:["oui-bg-base-5"]}},pl:{true:{box:"oui-pl-3"},false:{box:"oui-pl-0"}},pr:{true:{box:"oui-pr-3"},false:{box:"oui-pr-0"}},fullWidth:{true:{box:"oui-w-full"}},align:{center:{input:"oui-text-center"},left:{input:"oui-text-left"},right:{input:"oui-text-right"}}},defaultVariants:{size:"lg"}},{responsiveVariants:["md","lg"]}),he=Le__default.forwardRef((e,o)=>{let{size:t,disabled:r,color:i,suffix:n,prefix:a,id:s,pl:l,pr:u,fullWidth:c,className:m,classNames:g,onClear:p,align:f,...b}=e,{input:T,box:x,additional:S,closeButton:R}=ws({size:t,disabled:r,color:i,fullWidth:c,align:f,pl:typeof a>"u"||l,pr:typeof n>"u"||u}),v=useId(),V=typeof p<"u"?jsx(vs,{className:R({className:g?.clearButton}),onClick:()=>{p?.();},value:b.value}):n;return jsxs("div",{className:x({className:cnBase(m,g?.root)}),children:[jsx(xs,{id:s||v,prefix:a,className:S({className:cnBase(g?.additional,g?.prefix)})}),jsx(qr,{...b,id:s||v,disabled:r,ref:o,className:T({align:f,className:g?.input})}),jsx(bs,{id:s||v,suffix:V,className:S({className:cnBase(g?.additional,g?.suffix)})})]})}),vs=Le__default.forwardRef((e,o)=>jsx("button",{onMouseDown:t=>{t.preventDefault(),e.onClick();},ref:o,className:e.className,children:jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8 1.302a6.667 6.667 0 1 0 0 13.333A6.667 6.667 0 0 0 8 1.302m-2 4c.17 0 .349.057.479.187l1.52 1.521L9.52 5.49a.68.68 0 0 1 .48-.188c.17 0 .348.057.479.187.26.261.26.698 0 .96l-1.52 1.52 1.52 1.52c.26.261.26.698 0 .96a.687.687 0 0 1-.959 0L8 8.926l-1.521 1.521a.686.686 0 0 1-.959 0 .686.686 0 0 1 0-.959l1.521-1.52-1.52-1.52a.686.686 0 0 1 0-.96A.68.68 0 0 1 6 5.302",fill:"#fff",fillOpacity:".2"})})}));vs.displayName="ClearButton";he.displayName="Input";var Lp=h({base:["oui-z-50","oui-w-72","oui-rounded-md","oui-border","oui-border-line-6","oui-p-4","oui-bg-base-8","oui-shadow-md","oui-outline-none","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"]}),Lt=q.Root,Ps=q.Trigger,Qr=q.Anchor,Do=Le.forwardRef(({className:e,align:o="center",sideOffset:t=4,...r},i)=>jsx(q.Portal,{children:jsx(q.Content,{ref:i,align:o,sideOffset:t,className:Lp({className:e}),...r})}));Do.displayName=q.Content.displayName;var Bo=e=>{let{arrow:o,content:t,contentProps:r,...i}=e;return jsxs(Lt,{...i,children:[jsx(Ps,{asChild:true,children:e.children}),jsxs(Do,{...r,children:[t,o&&jsx(q.Arrow,{className:"oui-fill-base-8",width:10,height:6})]})]})};var Z=h({slots:{trigger:["oui-flex","oui-group","oui-w-full","oui-items-center","oui-justify-between","oui-whitespace-nowrap","oui-rounded-md","oui-px-2","oui-space-x-2","oui-shadow-sm","oui-text-base-contrast-54","placeholder:oui-text-base-contrast-54","data-[state=open]:oui-text-base-contrast-80","focus:oui-outline-none","focus:oui-ring-1","focus:oui-ring-ring","disabled:oui-cursor-not-allowed","disabled:oui-opacity-50","[&>span]:oui-line-clamp-1"],scrollUpButton:"oui-flex oui-cursor-default oui-items-center oui-justify-center oui-py-1",scrollDownButton:"oui-flex oui-cursor-default oui-items-center oui-justify-center oui-py-1",content:["oui-relative","oui-z-50","oui-max-h-96","oui-overflow-hidden","oui-rounded-md","oui-bg-base-8","oui-text-base-contrast","oui-shadow-md","data-[state=open]:oui-animate-in","data-[state=closed]:aoui-nimate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"],viewport:["oui-p-1"],label:"oui-px-2 oui-py-1.5 oui-text-sm oui-font-semibold",item:["oui-option-item","oui-relative","oui-flex","oui-cursor-default","oui-select-none","oui-items-center","oui-rounded-sm","oui-py-1","oui-pl-2","oui-pr-8","oui-text-sm","oui-text-base-contrast-54","oui-outline-none","hover:oui-bg-base-6","hover:oui-rounded","focus:oui-bg-accent","focus:oui-text-accent-foreground","data-[state=checked]:oui-bg-base-5","data-[state=checked]:oui-text-base-contrast-80","data-[disabled]:oui-pointer-events-none","data-[disabled]:oui-opacity-50"],separator:"-oui-mx-1 oui-my-1 oui-h-px oui-bg-muted",icon:""},variants:{variant:{outlined:{trigger:["oui-border oui-border-line-6 oui-bg-line-4"]},contained:{trigger:["oui-bg-base-4"]},text:{trigger:[]}},position:{popper:{content:["data-[side=bottom]:oui-translate-y-1","data-[side=left]:-oui-translate-x-1","data-[side=right]:oui-translate-x-1","data-[side=top]:-oui-translate-y-1"],viewport:"oui-h-[var(--radix-select-trigger-height)] oui-w-full oui-min-w-[var(--radix-select-trigger-width)]"},"item-aligned":{content:"",viewport:""}},size:{xs:{trigger:["oui-h-6","oui-text-2xs"],item:["oui-h-6","oui-text-2xs"],icon:["oui-w-3","oui-h-3"]},sm:{trigger:["oui-h-7","oui-text-2xs"],item:["oui-h-7","oui-text-2xs"],icon:["oui-w-4","oui-h-4"]},md:{trigger:["oui-h-8","oui-text-xs"],item:["oui-h-7","oui-text-xs"],icon:["oui-w-4","oui-h-4"]},lg:{trigger:["oui-h-10","oui-text-sm","oui-px-3"],item:["oui-h-8","oui-text-2xs"],icon:["oui-w-5","oui-h-5"]},xl:{trigger:["oui-h-12","oui-text-2xs","oui-px-3"],item:["oui-h-12","oui-text-2xs"],icon:["oui-w-6","oui-h-6"]}},error:{true:{trigger:["oui-border-danger","focus:oui-ring-danger","focus:oui-ring-ring-danger"]}}},defaultVariants:{size:"lg",variant:"outlined"}},{responsiveVariants:["md","lg"]}),Jr=P.Root,ei=P.Group,oi=P.Value,Vt=Le.forwardRef(({className:e,children:o,size:t,error:r,variant:i,asChild:n,showCaret:a=true,...s},l)=>{let{trigger:u}=Z({size:t,error:r,variant:i});return n?jsx(P.Trigger,{ref:l,className:u({className:e}),asChild:n,...s,children:o}):jsxs(P.Trigger,{ref:l,className:u({className:e}),asChild:n,...s,children:[o,jsx(Fragment,{children:a&&jsx(P.Icon,{asChild:true,className:"oui-transition-transform group-data-[state=open]:oui-rotate-180 group-data-[state=closed]:oui-rotate-0",children:jsx(oe,{size:12,className:"oui-text-inherit",opacity:1})})})]})});Vt.displayName=P.Trigger.displayName;var ks=Le.forwardRef(({className:e,...o},t)=>{let{scrollUpButton:r}=Z();return jsx(P.ScrollUpButton,{ref:t,className:r({className:e}),...o,children:jsx(yt,{size:16,color:"white"})})});ks.displayName=P.ScrollUpButton.displayName;var Ss=Le.forwardRef(({className:e,...o},t)=>{let{scrollDownButton:r}=Z();return jsx(P.ScrollDownButton,{ref:t,className:r({className:e}),...o,children:jsx(oe,{size:16,color:"white"})})});Ss.displayName=P.ScrollDownButton.displayName;var zt=Le.forwardRef(({className:e,children:o,position:t="popper",...r},i)=>{let{content:n,viewport:a}=Z({position:t,className:e});return jsx(P.Portal,{children:jsx(P.Content,{ref:i,className:n({className:e}),position:t,...r,children:jsx(P.Viewport,{className:a(),children:o})})})});zt.displayName=P.Content.displayName;var Rs=Le.forwardRef(({className:e,...o},t)=>{let{label:r}=Z();return jsx(P.Label,{ref:t,className:r({className:e}),...o})});Rs.displayName=P.Label.displayName;var _o=Le.forwardRef(({className:e,children:o,size:t,...r},i)=>{let{item:n}=Z({size:t});return jsx(P.Item,{ref:i,className:n({className:e}),...r,children:jsx(P.ItemText,{children:o})})});_o.displayName=P.Item.displayName;var Is=Le.forwardRef(({className:e,...o},t)=>{let{separator:r}=Z();return jsx(P.Separator,{ref:t,className:r({className:e}),...o})});Is.displayName=P.Separator.displayName;var ti=h({slots:{root:"oui-relative oui-overflow-hidden oui-scroll-area-root",viewport:"oui-h-full oui-w-full oui-rounded-[inherit]",bar:["oui-flex","oui-touch-none","oui-select-none","oui-transition-colors"],tumb:"oui-relative oui-flex-1 oui-rounded-full oui-bg-base-10"},variants:{orientation:{vertical:{bar:"oui-h-full oui-w-2 oui-border-l oui-border-l-transparent oui-p-[1px]"},horizontal:{bar:"oui-h-2 oui-flex-col oui-border-t oui-border-t-transparent oui-p-[1px]"}}}}),io=Le__default.forwardRef(({className:e,children:o,orientation:t="vertical",...r},i)=>{let{root:n,viewport:a,bar:s}=ti({orientation:t});return jsxs(J.Root,{ref:i,className:n({className:e}),...r,children:[jsx(J.Viewport,{className:a(),children:o}),jsx(ri,{orientation:t}),jsx(J.Corner,{})]})});io.displayName=J.Root.displayName;var ri=Le__default.forwardRef(({className:e,orientation:o="vertical",...t},r)=>{let{bar:i,tumb:n}=ti({className:e,orientation:o});return jsx(J.ScrollAreaScrollbar,{ref:r,orientation:o,className:i({className:e}),...t,children:jsx(J.ScrollAreaThumb,{className:n()})})});ri.displayName=J.ScrollAreaScrollbar.displayName;var Bt=e=>{let{options:o,variant:t,valueFormatter:r,...i}=e,[n,a]=useState(""),[s,l]=useState(e.value??""),{trigger:u}=Z({size:e.size,variant:t}),[c,m]=useState(()=>typeof e.value>"u"?-1:o.findIndex(x=>x.value===e.value)),[g,p]=useState(false),f=useRef(null),b=()=>{p(true);},T=n?o.filter(x=>{if(x.value.toLowerCase().includes(n.toLowerCase()))return true}):o;return jsxs(Lt,{open:g,children:[jsx(Qr,{children:jsx(Fo,{ref:f,size:e.size,autoComplete:"off",onFocus:b,onBlur:()=>{p(false);},placeholder:e.placeholder??"All",value:g?n:typeof r=="function"?r(s??"",{placeholder:e.placeholder}):s,onValueChange:x=>{a(x);},classNames:{root:u({className:"oui-w-24 oui-peer"}),input:"oui-text-base-contrast-54 oui-font-semibold"},"data-state":g?"open":"closed",suffix:jsx(P.Icon,{onMouseDown:x=>{x.preventDefault(),g?f.current?.blur():f.current?.focus();},asChild:true,className:"oui-transition-transform peer-data-[state=open]:oui-rotate-180 peer-data-[state=closed]:oui-rotate-0 oui-mx-2",children:jsx(oe,{size:12,className:"oui-text-inherit"})})})}),jsx(Do,{onOpenAutoFocus:x=>{x.preventDefault(),a("");},className:"oui-w-[var(_--radix-popover-trigger-width)] oui-p-1",children:jsx(io,{className:"oui-h-[200px]",children:T.map((x,S)=>jsx(_p,{option:x,size:e.size,activated:c===S,onClick:R=>{l(R.value),m(S),e.onValueChange?.(R.value),f.current?.blur();}},S))})})]})},_p=e=>{let{item:o}=Z({size:e.size});return jsx("button",{className:o({className:`oui-text-base-contrast-54 oui-w-full ${e.activated?"oui-bg-base-7":""}`}),onMouseDown:t=>{t.preventDefault(),e.onClick(e.option);},children:e.option.label})};var _t=e=>{let{children:o,size:t,error:r,placeholder:i,variant:n,contentProps:a,valueFormatter:s,showCaret:l,maxHeight:u,testid:c,classNames:m,...g}=e;return jsxs(Jr,{...g,children:[jsx(Vt,{size:t,error:r,variant:n,showCaret:l,className:cnBase("oui-cursor-pointer oui-font-semibold focus:oui-ring-transparent",m?.trigger),"data-testid":c,children:typeof s=="function"?s(e.value||e.defaultValue,{placeholder:i}):jsx(oi,{placeholder:i})}),jsx(zt,{...a,children:jsx(io,{children:jsx("div",{style:{maxHeight:u},children:o})})})]})};var Op=(e,o)=>jsxs(_o,{value:e.value,className:cnBase("oui-relative oui-cursor-pointer"),"data-testid":`oui-testid-selectItem-${e.value.toLowerCase().replace(" ","_")}`,children:[e.label,o==e.value&&jsx(W,{width:4,height:4,gradient:"brand",r:"full",className:"oui-absolute oui-right-2 oui-top-1/2 -oui-translate-y-1/2"})]},e.value),ao=e=>{let{children:o,options:t,optionRenderer:r=Op,currentValue:i,...n}=e;return jsx(_t,{...n,children:jsx(ei,{children:t.map((a,s)=>Le__default.cloneElement(r(a,i),{size:e.size,key:s,index:s}))})})};var Ms=e=>{let{tokens:o,showIcon:t=true,...r}=e,{icon:i}=Z(),n=useMemo(()=>o.map(u=>({...u,label:u.name,value:u.name})),[o]),a=n.length>1;return jsx(ao,{...r,showCaret:a,options:n,valueFormatter:t?u=>typeof e.valueFormatter=="function"?e.valueFormatter(u,{}):jsxs(L,{gapX:1,children:[jsx(Ne,{name:u,className:i({size:e.size})}),jsx(Q,{weight:"semibold",intensity:54,children:u})]}):void 0,optionRenderer:u=>typeof e.optionRenderer=="function"?e.optionRenderer(u):jsx(Xp,{...u}),maxHeight:254})},Xp=e=>{let{size:o,label:t,value:r}=e,{item:i,icon:n}=Z();return jsxs(SelectItem,{value:r,className:i({size:o,className:"oui-space-x-1 oui-flex oui-flex-row oui-items-center"}),children:[jsx(Ne,{name:r,className:n({size:o})}),jsx(SelectItemText,{children:t}),jsx(ItemIndicator,{})]})};var ze=_t;ze.options=ao;ze.combine=Bt;ze.tokens=Ms;var ni=forwardRef((e,o)=>{let{tokens:t,...r}=e,[i,n]=useState(t[0]),a=useMemo(()=>e.tokens.map(l=>({name:l})),[e.tokens]),s=useRef(null);return jsx(he,{ref:l=>{s.current=l,o&&(typeof o=="function"?o(l):o.current=l);},autoComplete:"off",...r,suffix:jsx("div",{className:"oui-max-w-fit",children:jsx(ze.tokens,{disabled:r.disabled,variant:"text",tokens:a,value:i,size:r.size,onValueChange:l=>n(l),showIcon:r.align!=="right",contentProps:{align:"end",onCloseAutoFocus:l=>{l.preventDefault(),s.current?.focus();}}})})})});ni.displayName="QuantityInput";var Jp=Y.Provider,li=Y.Root,ui=Y.Trigger,Et=Y.Portal,ed=h({base:["oui-z-50","oui-overflow-hidden","oui-rounded-md","oui-bg-base-8","oui-px-2","oui-py-1","oui-text-xs","oui-text-base-contrast","oui-animate-in","oui-fade-in-0","oui-zoom-in-95","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=closed]:oui-zoom-out-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"]}),Oo=Le.forwardRef(({className:e,sideOffset:o=4,...t},r)=>jsx(Y.Content,{ref:r,sideOffset:o,className:ed({className:e}),...t}));Oo.displayName=Y.Content.displayName;var Ft=e=>{let{className:o,...t}=e;return jsx(Y.Arrow,{width:12,height:6,...t,className:cn$1("oui-fill-base-8",o)({twMerge:true})})},zs=Le.forwardRef((e,o)=>{let{children:t,content:r,defaultOpen:i,open:n,onOpenChange:a,delayDuration:s,disableHoverableContent:l,arrow:u,...c}=e,{className:m,...g}=u||{};return jsxs(Y.Root,{defaultOpen:i,open:n,onOpenChange:a,delayDuration:s,disableHoverableContent:l,children:[jsx(Y.Trigger,{asChild:true,children:t}),jsx(Et,{children:jsxs(Oo,{ref:o,...c,children:[r,jsx(Ft,{...u})]})})]})});zs.displayName="Tooltip";var ci=forwardRef((e,o)=>{let{tooltip:t,tooltipProps:r,triggerClassName:i,...n}=e,[a,s]=useState(false);return useEffect(()=>{s(typeof t<"u"&&t!==""&&t!==null);},[t]),jsxs(li,{open:a,children:[jsx(ui,{asChild:true,children:jsx("div",{className:i,children:jsx(he,{...n,ref:o})})}),jsx(Et,{children:jsxs(Oo,{...r?.content,children:[e.tooltip,jsx(Ft,{...r?.arrow})]})})]})});ci.displayName="InputWithTooltip";var pi={};Cr(pi,{createRegexInputFormatter:()=>Es,currencyFormatter:()=>Bs,decimalPointFormatter:()=>Os,dpFormatter:()=>Fs,identifierFormatter:()=>As,numberFormatter:()=>_s,rangeFormatter:()=>Hs});var Bs={onRenderBefore:function(e,o){return e==null?"":commify(e)},onSendBefore:function(e,o){return e==null?"":(e=e.replace(/,/g,""),e)}};var _s={onRenderBefore:function(e,o){return ""+e},onSendBefore:function(e,o){return e.startsWith(".")?`0${e}`:e==="00"?"0":(e=e.replace(/[^\d.]/g,"").replace(".","$#$").replace(/\./g,"").replace("$#$","."),e)}};var Es=(e,o)=>({onRenderBefore:(t,r)=>typeof e=="function"?e(String(t)):`${t}`.replace(e,""),onSendBefore:(t,r)=>o?.(t,r)||t});var Fs=(e,o)=>{let t=(r,i)=>(typeof r=="number"&&(r=r.toString()),!r||r.endsWith(".")?r:ad(r,e));return {onRenderBefore:t,onSendBefore:t}};function ad(e,o){let t=e.indexOf(".");if(t===-1||o<=0)return e.split(".")[0];let r=t+o+1;return e.substring(0,r)}var Hs=e=>{let o=(t,r)=>{if(typeof t=="number"&&(t=t.toString()),t===".")return "0.";if(!t||t.endsWith("."))return t;let{max:i,min:n,dp:a}=e,s=Number(t);if(isNaN(s))return "";if(s<n)return n.toString();if(s>i)return i.toString();if(a!==void 0&&t.includes(".")){let[l,u]=t.split(".");return u?.length<=a?t:t.slice(0,-1)}return t};return {onRenderBefore:o,onSendBefore:o}};var As=()=>{let e="+",o="-";return {onRenderBefore:(t,r)=>{if(typeof t=="number"&&(t=t.toString()),!t||t.endsWith("."))return t;let i=Number(t);if(i){if(i>0&&!t.startsWith(e))return e+t;if(i<0&&!t.startsWith(o))return o+t}return t},onSendBefore:(t,r)=>{if(typeof t=="number"&&(t=t.toString()),!t||t.endsWith("."))return t;let i=Number(t);return i&&i>0?t.replace(e,""):t}}};var Os={onRenderBefore:function(e,o){return String(e)},onSendBefore:function(e,o){return e==null?"":sd(e,o?.originValue)}},sd=(e,o)=>{if(e==null)return "";if(e.endsWith(","))return e.slice(0,-1)+".";if(e.startsWith(","))return e.slice(0,1)+".";let t=commify(o);return o&&e.length>t.length&&e.length-t.length===1?ld(e,t):e},ld=(e,o)=>{if(e.length<=o.length)return e;for(let t=0;t<o.length;t++)if(e[t]!==o[t]){let r=e[t],i=r===","?".":r;return e.slice(0,t)+i+e.slice(t+1)}return e};var dd=tv({base:["oui-text-xs","oui-text-base-contrast-36","oui-mt-1","oui-list-disc","oui-list-inside","oui-list-item"],variants:{color:{success:["oui-text-success"],danger:["oui-text-danger"],warning:["oui-text-warning-darken"],default:["oui-text-base-contrast-54"]}}}),Ht=Le__default.forwardRef((e,o)=>{let{className:t,asChild:r,color:i,...n}=e;return jsx(r?Slot:"div",{ref:o,className:dd({className:t,color:i}),...n})});Ht.displayName="InputHelpText";var fd=h({slots:{root:"oui-flex",label:"oui-text-sm oui-font-semibold",input:[]},variants:{direction:{column:{root:"oui-flex-col oui-space-y-1"},row:{root:"oui-flex-row oui-space-x-3 "}}},defaultVariants:{direction:"column"}}),di=Le__default.forwardRef((e,o)=>{let{label:t,helpText:r,direction:i,className:n,...a}=e,{root:s,label:l}=fd({direction:i});return jsxs("div",{className:s({className:n,direction:i}),children:[jsx(Zs,{className:cnBase(e.classNames?.label)||l(),children:t}),jsxs("div",{children:[jsx(he,{...a}),(r?.length||0>0)&&jsx(Ht,{color:a.color,children:r})]})]})});di.displayName="TextField";var Zs=Le__default.forwardRef((e,o)=>{let{asChild:t=false,className:r,...i}=e;return jsx(t?Slot:"label",{className:r,ref:o,...i,children:e.children})});Zs.displayName="InputLabel";var Fo=he;Fo.token=ni;Fo.tooltip=ci;var bd=tv({base:["peer","oui-h-3","oui-w-3","oui-shrink-0","oui-rounded-sm","oui-border","focus-visible:oui-outline-none","disabled:oui-cursor-not-allowed","disabled:oui-opacity-50"],variants:{color:{primary:"oui-border-primary data-[state=checked]:oui-text-base-contrast",white:"oui-border-base-contrast-54 "},variant:{checkBox:"data-[state=checked]:oui-border-none",radio:"oui-rounded-full data-[state=checked]:oui-border-base-contrast-20 data-[state=checked]:oui-bg-transparent"}},compoundVariants:[{color:"primary",variant:"radio",className:"data-[state=checked]:oui-border-parimary data-[state=checked]:!oui-text-parimary"}],defaultVariants:{color:"white"}}),gi=Le.forwardRef(({className:e,color:o="white",variant:t="checkBox",...r},i)=>jsx(Wo.Root,{ref:i,className:bd({color:o,className:e,variant:t}),...r,children:jsx(Wo.Indicator,{className:cnBase("oui-flex oui-items-center oui-justify-center oui-text-current",r.indicatorClassName),children:t==="checkBox"?jsx(hd,{className:cnBase(o==="primary"?"oui-text-primary":"oui-text-white")}):jsx("div",{className:cnBase("oui-w-[6px] oui-h-[6px] oui-rounded-full",o==="primary"?"oui-bg-primary":"oui-bg-base-contrast-80")})})}));gi.displayName=Wo.Root.displayName;var hd=e=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.078.71A2.333 2.333 0 0 0 .745 3.041v5.834a2.333 2.333 0 0 0 2.333 2.333H8.91a2.333 2.333 0 0 0 2.334-2.333V3.042A2.333 2.333 0 0 0 8.91.71zm5.83 2.555a.7.7 0 0 1 .488-.182c.174 0 .355.056.488.182a.643.643 0 0 1 0 .93L5.129 8.728a.723.723 0 0 1-.975 0L2.115 6.785a.644.644 0 0 1 0-.93.724.724 0 0 1 .977 0l1.55 1.476z",fillOpacity:".8"})});var yd=tv({slots:{root:["peer","oui-inline-flex","oui-h-[16px]","oui-w-[28px]","oui-shrink-0","oui-cursor-pointer","oui-items-center","oui-rounded-full","oui-border-transparent","oui-shadow-sm","oui-transition-colors","focus-visible:oui-outline-none","focus-visible:oui-ring-2","focus-visible:oui-ring-ring","focus-visible:oui-ring-offset-2","focus-visible:oui-ring-offset-background","disabled:oui-cursor-not-allowed","disabled:oui-opacity-50","data-[state=checked]:oui-bg-primary-darken","data-[state=unchecked]:oui-bg-input"],thumb:["oui-pointer-events-none","oui-block","oui-h-[10px]","oui-w-[10px]","oui-rounded-full","oui-bg-white/80","oui-shadow-lg","oui-ring-0","oui-transition-transform","data-[state=checked]:oui-translate-x-[15px]","data-[state=unchecked]:oui-translate-x-[3px]"]},variants:{color:{primary:{root:["data-[state=checked]:oui-bg-primary-darken","data-[state=unchecked]:oui-bg-base-1"]},success:{root:["data-[state=checked]:oui-bg-success","data-[state=unchecked]:oui-bg-success"]},danger:{root:["data-[state=checked]:oui-bg-danger","data-[state=unchecked]:oui-bg-danger"]},warning:{root:["data-[state=checked]:oui-bg-warning-darken","data-[state=unchecked]:oui-bg-warning-darken"]}}},defaultVariants:{color:"primary"}}),fi=Le__default.forwardRef(({className:e,color:o,...t},r)=>{let{root:i,thumb:n}=yd({className:e,color:o});return jsx(Zo.Root,{className:i({className:e}),...t,ref:r,children:jsx(Zo.Thumb,{className:n()})})});fi.displayName=Zo.Root.displayName;var Cd=h({base:"oui-inline-flex oui-items-center oui-rounded-md oui-font-semibold oui-transition-colors focus:oui-outline-none focus:oui-ring-2 focus:oui-ring-ring focus:oui-ring-offset-2",variants:{variant:{contained:"",text:""},color:{primary:"",primaryLight:"",secondary:"",danger:"",buy:"",success:"",warning:"",sell:"",neutral:""},size:{xs:"oui-px-2 oui-py-0.5 oui-text-2xs oui-rounded oui-h-[18px]",sm:"oui-px-2 oui-py-0.5 oui-text-2xs oui-rounded",md:"oui-px-2 oui-py-0.5 oui-text-sm",lg:"oui-px-2 oui-py-1 oui-text-base"}},compoundVariants:[{variant:"contained",color:"primary",className:["oui-bg-primary/15","oui-text-primary"]},{variant:"contained",color:"primaryLight",className:["oui-bg-primary-light/15","oui-text-primary-light"]},{variant:"contained",color:"danger",className:["oui-bg-danger/15","oui-text-danger"]},{variant:"contained",color:"sell",className:["oui-bg-danger/15","oui-text-danger"]},{variant:"contained",color:"success",className:["oui-bg-success/15","oui-text-success"]},{variant:"contained",color:"buy",className:["oui-bg-success/15","oui-text-success"]},{variant:"contained",color:"warning",className:["oui-bg-warning-darken/15","oui-text-warning-darken"]},{variant:"contained",color:"neutral",className:["oui-bg-line","oui-text-base-contrast-36"]},{variant:"text",color:"primary",className:["oui-text-primary"]},{variant:"text",color:"danger",className:["oui-text-danger"]},{variant:"text",color:"success",className:["oui-text-success"]},{variant:"text",color:"warning",className:["oui-text-warning-darken"]},{variant:"text",color:"neutral",className:["oui-text-base-contrast-36"]}],defaultVariants:{variant:"contained",color:"primary",size:"md"}});function Pd({className:e,variant:o,color:t,size:r,...i}){return jsx("div",{className:Cd({variant:o,className:e,color:t,size:r}),...i})}var Xs=Le__default.forwardRef(({src:e,alt:o,href:t},r)=>jsx("div",{className:"logo oui-px-3",ref:r,children:jsx("a",{href:t??"/",children:jsx("img",{src:e,alt:o,className:"oui-object-contain oui-h-8 oui-py-2"})})}));Xs.displayName="LogoElement";function js(e){let{dataSource:o,loading:t,ignoreLoadingCheck:r}=e,[i,n]=useState(false);return useEffect(()=>{i||(r||t||Array.isArray(o))&&n(true);},[t,r,o,i]),i}function Qs(e){let o=useRef(null),[t,r]=useState(false),[i,n]=useState(false);return useEffect(()=>{o.current&&o.current.addEventListener("scroll",function(a){r(o.current.scrollLeft>0),n(!Ks(o.current));});},[o]),useEffect(()=>{if(!o.current)return;let a=Td(o.current),s=Ks(o.current);n(a&&!s);},[o,...e]),{scrollRef:o,showLeftShadow:t,showRightShadow:i}}function Ks(e){return e.scrollLeft+e.clientWidth>=e.scrollWidth}function Td(e){return e.scrollWidth>e.clientWidth}function Js(e){let{dataSource:o,loading:t}=e,r=useRef(false),i=useMemo(()=>t&&!o?.length?r.current:!!o?.length,[t,o]);return useEffect(()=>{i&&(r.current=true);},[i]),i}function el(e){let{loading:o,dataSource:t,pagination:r,rows:i}=e,n=useRef(false),a=useMemo(()=>o&&!t?.length?n.current:!!(r&&t?.length&&i?.length),[o,r,t,i]);return useEffect(()=>{a&&(n.current=true);},[a]),a}function ol(e){let{onSort:o,initialSort:t}=e,[r,i]=useState(t?[{id:t.sortKey,desc:t.sort==="desc"}]:[]);return useEffect(()=>{let{id:n,desc:a}=r[0]||{};o?.(n?{sortKey:n,sort:a?"desc":"asc"}:void 0);},[r,o]),[r,i]}function tl(e){let o=useRef(null);return useEffect(()=>{if(!o.current)return;let t=window.getComputedStyle(o.current).backgroundColor;o.current.style.setProperty("--oui-table-background-color",t);},e),o}var Ot=tv({variants:{align:{left:"oui-text-left",center:"oui-text-center",right:"oui-text-right"}},defaultVariants:{align:"left"}});var il=e=>{let{cell:o}=e,{original:t,index:r}=o.row,{formatter:i,render:n,rule:a,textProps:s,numeralProps:l}=o.column.columnDef.meta||{},u=o.getValue();if(typeof i=="function"&&(u=i(u,t,r)),typeof n=="function")return n(u,t,r);if(typeof a<"u"){if(ps(a)){let c=typeof s=="function"?s(u,t,r):s;return jsx(zo,{rule:a,...c,children:u})}if(Va(a)){let c=typeof l=="function"?l(u,t,r):l;return jsx(qe,{rule:a,...c,children:u})}}return flexRender(o.column.columnDef.cell,o.getContext())};function Wt(e,o){let t=e.getIsPinned(),r=t==="left"&&e.getIsLastColumn("left"),i=t==="right"&&e.getIsFirstColumn("right"),n={left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,width:e.getSize()},a=cnBase(t?"oui-sticky":"oui-relative",t?"oui-z-[1]":"oui-z-0",t&&"oui-bg-[var(--oui-table-background-color)]"),s=cnBase("before:oui-block before:oui-absolute","before:oui-w-[32px] before:oui-h-full","before:oui-top-0 before:oui-z-[-1]","before:oui-bg-[linear-gradient(90deg,rgba(var(--oui-color-base-10)_/_0.80)_0%,rgba(var(--oui-color-base-10)_/_0.36)_65%,rgba(var(--oui-color-base-10)_/_0.00)_100%)]"),l=r&&cnBase(s,"before:oui-right-[-32px]"),u=i&&cnBase(s,"before:oui-left-[-32px] before:oui-rotate-180");return {style:n,classNames:{content:a,leftShadow:l,rightShadow:u}}}var sl=e=>jsx("tbody",{className:cnBase("oui-table-tbody oui-relative","oui-text-base-contrast-80",e.className),"data-testid":e.testId,children:e.rows.map(o=>{let{className:t,onClick:r,...i}=typeof e.onRow=="function"?e.onRow(o.original,o.index)||{}:{},n=o.getIsExpanded()&&jsx("tr",{className:"oui-table-expand-tr oui-z-0",children:jsx("td",{className:"oui-table-expand-td",colSpan:o.getVisibleCells().length,children:e.expandRowRender?.(o,o.index)})}),a=jsxs(Fragment$1,{children:[jsx("tr",{className:cnBase("oui-table-tbody-tr oui-group oui-h-10",typeof r=="function"&&"oui-cursor-pointer",e.bordered&&"oui-border-b oui-border-b-line-4",t),onClick:()=>{o.getCanExpand()&&o.getToggleExpandedHandler(),r?.();},...i,children:o.getVisibleCells().map(s=>{let l=s.column,{style:u,classNames:c}=Wt(l),{align:m,className:g}=l.columnDef.meta||{},{style:p,className:f,children:b,...T}=typeof e.onCell=="function"?e.onCell(s.column,o.original,o.index)||{}:{},x=b!==void 0?b:jsxs(Fragment,{children:[jsx(il,{cell:s}),jsx(Gd,{selected:o.getIsSelected(),isFirst:l.getIsFirstColumn(),isLast:l.getIsLastColumn()})]});return jsx("td",{style:{...u,...p},className:cnBase("oui-table-tbody-td oui-relative","oui-px-3",Ot({align:m}),g,c.content,e.showLeftShadow&&c.leftShadow,e.showRightShadow&&c.rightShadow,f),...T,children:x},s.id)})},o.id),n]},o.id);return typeof e.renderRowContainer=="function"?jsx(Fragment$1,{children:e.renderRowContainer(o.original,o.index,a)},o.id):a})}),Gd=({selected:e,isFirst:o,isLast:t})=>jsx("div",{className:cnBase("oui-absolute oui-left-0 oui-top-0 oui-z-[-1]","oui-size-full","group-hover:oui-bg-line-4",e&&"oui-bg-line-6 group-hover:oui-bg-line-6",o&&"oui-rounded-l",t&&"oui-rounded-r")});var bi=e=>jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:e.children}),ll=()=>jsx(bi,{children:jsx("path",{d:"M5 1.042a.47.47 0 0 0-.338.135L2.166 3.844c-.206.22-.005.531.338.531h4.992c.342 0 .543-.311.337-.531L5.338 1.177A.47.47 0 0 0 5 1.042m0 7.916a.47.47 0 0 1-.338-.135L2.166 6.156c-.206-.22-.005-.531.338-.531h4.992c.342 0 .543.311.337.531L5.338 8.823A.47.47 0 0 1 5 8.958",fill:"#fff",fillOpacity:".2"})}),ul=()=>jsxs(bi,{children:[jsx("path",{d:"M5 1.042a.47.47 0 0 0-.338.135L2.166 3.844c-.206.22-.005.531.338.531h4.992c.342 0 .543-.311.337-.531L5.338 1.177A.47.47 0 0 0 5 1.042",fill:"#fff",fillOpacity:".8"}),jsx("path",{d:"M5 8.958a.47.47 0 0 1-.338-.135L2.166 6.156c-.206-.22-.005-.531.338-.531h4.992c.342 0 .543.311.337.531L5.338 8.823A.47.47 0 0 1 5 8.958",fill:"#fff",fillOpacity:".2"})]}),cl=()=>jsxs(bi,{children:[jsx("path",{d:"M5 1.042a.47.47 0 0 0-.338.135L2.166 3.844c-.206.22-.005.531.338.531h4.992c.342 0 .543-.311.337-.531L5.338 1.177A.47.47 0 0 0 5 1.042",fill:"#fff",fillOpacity:".2"}),jsx("path",{d:"M5 8.958a.47.47 0 0 1-.338-.135L2.166 6.156c-.206-.22-.005-.531.338-.531h4.992c.342 0 .543.311.337.531L5.338 8.823A.47.47 0 0 1 5 8.958",fill:"#fff",fillOpacity:".8"})]});var dl=e=>jsx("thead",{className:cnBase("oui-table-thead","oui-sticky oui-top-0 oui-z-[2]","oui-bg-[var(--oui-table-background-color)]","oui-text-base-contrast-36"),children:e.headerGroups.map(o=>jsx("tr",{className:cnBase("oui-table-thead-tr","oui-h-10",e.className),children:o.headers.map(t=>{let r=t.column,{align:i,className:n,title:a}=r.columnDef.meta||{},{style:s,classNames:l}=Wt(r),u=r.getCanSort(),c=r.getIsSorted();return jsx("th",{style:s,className:cnBase("oui-table-thead-th","oui-whitespace-nowrap","oui-px-3",e.bordered&&"after:oui-block after:oui-absolute after:oui-w-full after:oui-h-full after:oui-top-0 after:oui-left-0 after:oui-z-[-1] after:oui-border-b after:oui-border-line",Ot({align:i}),n,l.content,e.showLeftShadow&&l.leftShadow,e.showRightShadow&&l.rightShadow),children:t.isPlaceholder?null:jsxs("div",{className:cnBase("oui-inline-flex oui-items-center oui-gap-x-1",u&&"oui-cursor-pointer oui-select-none hover:oui-text-base-contrast-80"),onClick:r.getToggleSortingHandler(),children:[a,u&&jsx(Zd,{isSorted:c})]})},t.id)})},o.id))}),Zd=({isSorted:e})=>({asc:jsx(ul,{}),desc:jsx(cl,{})})[e]||jsx(ll,{});var Uo=createContext(void 0);var jd=e=>{let o=useMemo(()=>({...e.locale,exist:true}),[e.locale]);return jsx(Uo.Provider,{value:o,children:e.children})};var hi={locale:"en",dialog:{ok:"OK",cancel:"Cancel"},modal:{confirm:"Confirm",cancel:"Cancel"},pagination:{morePages:"More pages",rowsPerPage:"Rows per page"},picker:{selectDate:"Select Date",dayPicker:enUS},empty:{description:"No results found."}};var O=(e,o)=>{let t=useContext(Uo),r=useMemo(()=>{let n=o||hi[e],a=t?.[e]||{};return {...typeof n=="function"?n():n,...a}},[e,o,t]),i=useMemo(()=>{let n=t?.locale,a=hi.locale;return n||a},[t]);return [r,i]};var fl=({className:e,...o})=>jsx("nav",{role:"navigation","aria-label":"pagination",className:cnBase("oui-flex oui-justify-between oui-items-center oui-w-full oui-text-xs",e),...o});fl.displayName="Pagination";var xl=Le__default.forwardRef(({className:e,...o},t)=>jsx("ul",{ref:t,className:cnBase("oui-flex oui-flex-row oui-items-center oui-gap-x-2",e),...o}));xl.displayName="PaginationContent";var Yt=Le__default.forwardRef(({className:e,...o},t)=>jsx("li",{ref:t,className:cnBase("oui-leading-[0px]",e),...o}));Yt.displayName="PaginationItem";var Xt=({className:e,isActive:o,...t})=>jsx("button",{"aria-current":o?"page":void 0,"data-active":o,className:bt({size:"xs",variant:o?"contained":"text",className:"oui-min-w-6 oui-text-base-contrast-80 oui-font-semibold data-[active=false]:hover:oui-bg-base-6 disabled:oui-bg-transparent disabled:hover:oui-bg-transparent"}),...t});Xt.displayName="PaginationLink";var bl=({className:e,...o})=>jsx(Xt,{"aria-label":"Go to previous page",className:cnBase("oui-gap-1 oui-pl-2.5",e),...o,children:jsx(Je,{className:"oui-h-4 oui-w-4",color:"white"})});bl.displayName="PaginationPrevious";var hl=({className:e,...o})=>jsx(Xt,{"aria-label":"Go to next page",className:cnBase("oui-gap-1 oui-pr-2.5",e),...o,children:jsx(eo,{className:"oui-h-4 oui-w-4",color:"white"})});hl.displayName="PaginationNext";var wl=e=>{let{classNames:o,className:t,pageTotal:r,page:i}=e,[n]=O("pagination");return jsxs(fl,{className:cnBase(o?.pagination,t),children:[jsxs(L,{mr:4,children:[jsx(ee,{as:"div",size:"2xs",intensity:54,className:"oui-text-nowrap oui-mr-2",children:n.rowsPerPage}),jsx("div",{className:"oui-w-15",children:jsx(ze.options,{options:[{value:"10",label:"10"},{value:"20",label:"20"},{value:"50",label:"50"},{value:"100",label:"100"}],value:`${e.pageSize??5}`,size:"xs",onValueChange:a=>e.onPageSizeChange?.(parseInt(a))})})]}),jsx(vl,{...e})]})};function e0(e,o){let t=[],r="...";if(o<=5)for(let n=1;n<=o;n++)t.push(n);else e<=3?t.push(1,2,3,4,r,o):e>=o-2?t.push(1,r,o-3,o-2,o-1,o):t.push(1,r,e-1,e,e+1,r,o);return t}var vl=e=>{let{classNames:o,className:t,pageTotal:r,page:i}=e;if(r<=1)return null;let n=useMemo(()=>e0(i,r),[i,r]);return jsxs(xl,{children:[jsx(Yt,{children:jsx(bl,{disabled:e.page===1,onClick:a=>{a.preventDefault(),e.onPageChange?.(e.page-1);}})}),n.map((a,s)=>jsx(Yt,{children:jsx(Xt,{isActive:a===e.page,onClick:l=>{l.preventDefault(),a!=="..."?e.onPageChange?.(Number(a)):e.onPageChange?.(Number(n[s+1]-1));},children:a})},s)),jsx(Yt,{children:jsx(hl,{disabled:e.page===e.pageTotal,onClick:a=>{a.preventDefault(),e.onPageChange?.(e.page+1);}})})]})};var Cl=e=>e.pageTotal===0?null:jsx(L,{justify:"end",py:2,mx:3,className:"oui-h-10 oui-w-full",children:jsx(wl,{...e,className:"oui-table-pagination oui-justify-between oui-w-full"})});var ve=class e{static getInstance(){let o=getGlobalObject();return o.__ORDERLY_EXTENSION_REGISTRY__||(o.__ORDERLY_EXTENSION_REGISTRY__=new e),o.__ORDERLY_EXTENSION_REGISTRY__}extensionMap=new Map;register(o){o.builder;for(let t=0;t<o.positions.length;t++){if(typeof o.builder!="function"){let i=this.extensionMap.get(o.positions[t])?.builder;o.builder=typeof i>"u"?void 0:i;}let r=o.positions[t];this.registerToPosition(r,o);}}registerToPosition(o,t){if(this.extensionMap.has(o)){let r=this.extensionMap.get(o);if(!r?.__isInternal){!r?.builder&&t.__isInternal&&this.setBuilder(o,t.builder);return}t.builder||(t.builder=r.builder);}this.extensionMap.set(o,t);}setBuilder(o,t){let r=this.extensionMap.get(o);r&&(r.builder=t);}unregister(o){for(let t=0;t<o.positions.length;t++){let r=o.positions[t];this.unregisterFromPosition(r);}}unregisterFromPosition(o){this.extensionMap.delete(o);}getPluginsByPosition(o){return this.extensionMap.get(o)}getFormatterByPosition(o){return this.extensionMap.get(o)}};var Yo=e=>o=>{ve.getInstance().register({name:e.name,positions:e.positions,__isInternal:!!e.__isInternal,builder:e.builder,render:o});},t0=(e,o)=>{ve.getInstance().setBuilder(e,o);};var Pl=(e,o)=>{let r=ve.getInstance().getPluginsByPosition(e);return ()=>r?.builder?.(o)||o};var kl=(e,o)=>Pl(e,o)();var Rl=e=>{let{position:o}=e;return jsxs("div",{className:"oui-text-danger",children:[jsx("strong",{children:`[${o}] `}),jsx("span",{children:"Not found!"})]})};var vi=e=>{let{position:o,scope:t,defaultWidget:r,...i}=e,n=kl(o,i),a=useMemo(()=>ve.getInstance().getPluginsByPosition(o)?.render??r??Rl,[]);return jsx(ErrorBoundary,{fallback:jsx("div",{children:`Component: [${o}] went wrong`}),children:jsx(Slot,{...n,position:o,children:jsx(a,{})})})};var $t=(a=>(a.DepositForm="depositForm",a.WithdrawForm="withdrawForm",a.AccountMenu="accountMenu",a.MobileAccountMenu="mobileAccountMenu",a.MainMenus="mainMenus",a.EmptyDataIdentifier="emptyDataIdentifier",a))($t||{});var Il=e=>{let{visible:o,loading:t,emptyView:r}=e;return o?jsx(W,{position:"absolute",left:0,top:0,right:0,bottom:0,className:"oui-flex oui-justify-center oui-items-center",children:t?jsx(Re,{}):r||jsx(vi,{position:"emptyDataIdentifier"})}):null};var qt={columns:e=>{let o=createColumnHelper();return e?.map((t,r)=>{let i={meta:t,size:t.width||100},{dataIndex:n,onSort:a}=t;return o.accessor(n,{header:()=>t.title,enableSorting:!!a,sortingFn:typeof a=="function"?(s,l,u)=>a?.(s.original,l.original):"alphanumeric",...i})})},columnPinning:e=>{let o=[],t=[];return e?.map(r=>{r.fixed==="left"?o.push(r.dataIndex):r.fixed==="right"&&t.push(r.dataIndex);}),{left:o,right:t}},pagination:e=>{let o={},t={};return e&&(o={pagination:{pageIndex:e.page-1,pageSize:e.pageSize}},t={getPaginationRowModel:getPaginationRowModel()}),{state:o,config:t}}};function x0(e){let{columns:o,className:t,classNames:r,pagination:i,getRowCanExpand:n,manualPagination:a,loading:s,ignoreLoadingCheck:l,emptyView:u,initialSort:c,manualSorting:m,onSort:g,expanded:p,onExpandedChange:f}=e,b=useMemo(()=>e.dataSource?e.dataSource:[],[e.dataSource]),T=useMemo(()=>qt.columns(o),[o]),x=useMemo(()=>qt.columnPinning(o),[o]),S=useMemo(()=>e.rowSelection||{},[e.rowSelection]),{state:R,config:v}=useMemo(()=>qt.pagination(i),[i]),[V,y]=ol({onSort:g,initialSort:c}),H=js({dataSource:b,loading:s,ignoreLoadingCheck:l}),j=useMemo(()=>Array.isArray(e.columnFilters)?e.columnFilters:e.columnFilters?[e.columnFilters]:[],[e.columnFilters]),K=useReactTable({_features:e.features,data:b,columns:T,state:{columnPinning:x,columnFilters:j,rowSelection:S,sorting:V,expanded:p,...R},onSortingChange:y,getRowId:e.generatedRowKey,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),getRowCanExpand:n,onExpandedChange:f,getSubRows:e.getSubRows,getSortedRowModel:getSortedRowModel(),getFilteredRowModel:getFilteredRowModel(),manualSorting:m,manualPagination:a,enableMultiRowSelection:false,enableExpanding:true,...v});useEffect(()=>{e.getTableInstance?.(K);},[K]);let ne=tl([t,r?.root]),{scrollRef:w,showLeftShadow:z,showRightShadow:A}=Qs([b?.length]),Be=K.getRowModel().rows,ma=H&&(Be.length===0||s),_u=Js({loading:s,dataSource:b}),ga=el({loading:s,dataSource:b,rows:Be,pagination:i});return jsxs("div",{ref:ne,id:e.id,className:cn$1("oui-table-root oui-size-full","oui-bg-base-9",t,r?.root)({twMerge:true}),children:[jsxs("div",{ref:w,className:cn$1("oui-table-scroll oui-relative","oui-min-h-[162px] oui-w-full","oui-text-xs oui-font-semibold","oui-custom-scrollbar oui-overflow-auto",ga?"oui-h-[calc(100%_-_40px)]":"oui-h-full",r?.scroll)({twMerge:true}),children:[jsxs("table",{className:cnBase("oui-w-full","oui-table-fixed oui-border-collapse"),children:[_u&&jsx(dl,{className:r?.header,headerGroups:K.getHeaderGroups(),bordered:e.bordered,showLeftShadow:z,showRightShadow:A}),jsx(sl,{className:r?.body,rows:Be,bordered:e.bordered,renderRowContainer:e.renderRowContainer,expandRowRender:e.expandRowRender,onRow:e.onRow,onCell:e.onCell,showLeftShadow:z,showRightShadow:A,testId:e.testIds?.body})]}),jsx(Il,{visible:ma,loading:s,emptyView:u})]}),ga&&jsx(Cl,{className:r?.pagination,count:i?.count||Be?.length,pageTotal:i?.pageTotal||K.getPageCount(),page:i?.page,pageSize:i?.pageSize,onPageChange:i?.onPageChange,onPageSizeChange:i?.onPageSizeChange})]})}function lo({className:e,classNames:o,showOutsideDays:t=true,...r}){let[i]=O("picker");return jsx(DayPicker,{locale:i.dayPicker,showOutsideDays:t,className:cnBase("oui-p-3 oui-bg-base-7 oui-rounded",e),classNames:{months:"oui-flex oui-flex-col sm:oui-flex-row oui-space-y-4 sm:oui-space-x-4 sm:oui-space-y-0",month:"oui-space-y-4",caption:"oui-flex oui-justify-center oui-pt-1 oui-relative oui-items-center",caption_label:"oui-text-sm oui-font-medium ",nav:"oui-space-x-1 oui-flex oui-items-center",nav_button:cnBase("oui-h-7 oui-w-7 oui-bg-transparent oui-p-0 oui-opacity-50 hover:oui-opacity-100"),nav_button_previous:"oui-absolute oui-left-1",nav_button_next:"oui-absolute oui-right-1",table:"oui-w-full oui-border-collapse oui-space-y-1",head_row:"oui-flex",head_cell:"oui-text-base-contrast-80 oui-rounded-md oui-w-7 oui-font-normal oui-text-[0.8rem] oui-opacity-30",row:"oui-flex oui-w-full oui-mt-2",cell:cnBase("oui-relative oui-day-cell oui-p-0 oui-text-center oui-text-2xs focus-within:oui-relative focus-within:oui-z-20 [&:has([aria-selected])]:oui-bg-base-4 [&:has([aria-selected].day-outside)]:oui-bg-base-4/50 [&:has([aria-selected].day-range-end)]:oui-rounded-r-md",r.mode==="range"?"[&:has(>.oui-day-range-end)]:oui-rounded-r-md [&:has(>.oui-day-range-start)]:oui-rounded-l-md first:[&:has([aria-selected])]:oui-rounded-l-md last:[&:has([aria-selected])]:oui-rounded-r-md":"[&:has([aria-selected])]:oui-rounded-md"),day:cnBase("oui-h-7 oui-w-7 oui-p-0 oui-rounded-md oui-font-normal aria-selected:oui-opacity-100 oui-text-base-contrast-80 hover:oui-bg-base-5"),day_range_start:"day-range-start oui-bg-primary-darken oui-text-base-contrast-80 hover:oui-bg-primary-darken",day_range_end:"day-range-end oui-bg-primary-darken oui-text-base-contrast-80 hover:oui-bg-primary-darken",day_selected:"oui-bg-base-4 ",day_today:"oui-bg-accent ",day_outside:"oui-day-outside oui-text-muted-foreground oui-opacity-50 aria-selected:oui-bg-accent/50 aria-selected:oui-text-muted-foreground aria-selected:oui-opacity-30",day_disabled:"oui-text-muted-foreground oui-opacity-50",day_range_middle:"aria-selected:oui-bg-accent aria-selected:oui-text-accent-foreground",day_hidden:"oui-invisible",...o},components:{IconLeft:({...n})=>jsx(Je,{size:16,className:"oui-text-inherit",opacity:1}),IconRight:({...n})=>jsx(eo,{size:16,className:"oui-text-inherit",opacity:1})},...r})}lo.displayName="Calendar";var y0="yyyy/MM/dd",Xo=e=>{let{placeholder:o,dateFormat:t,onChange:r,value:i,initialValue:n,size:a,className:s,formatString:l=y0,...u}=e,[c]=O("picker"),[m,g]=useState(false),[p,f]=useState(i||n||null),[b,T]=useState(false),x=C0(y=>{T(y<=768);},100);useEffect(()=>{let y=()=>{x(window.innerWidth);};return T(window.innerWidth<=768),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y);}},[]),useEffect(()=>{i?.from&&i?.to&&p?.from&&p?.to&&!P0(i,p)&&f(i);},[i]);let{trigger:S}=Z({size:a,className:s}),R=useMemo(()=>{if(!p||!p.from||!p.to)return o??c.selectDate;let y=[];return p.from&&y.push(format(p.from,l)),p.to&&y.push(format(p.to,l)),`${y.join(" - ")}`},[p,o,c]);return jsx(Bo,{open:m,onOpenChange:y=>{typeof p?.to>"u"&&typeof p?.from<"u"&&f({...p,to:p.from}),!y&&p&&r?.(p),g(y);},contentProps:{className:"oui-w-auto oui-p-0",align:"start"},content:jsx(lo,{numberOfMonths:b?1:2,...u,mode:"range",selected:p,onSelect:(y,H)=>{p?.from&&p?.to?f({from:H}):f(y);}}),children:jsxs("button",{className:S({className:"oui-datepicker-trigger oui-group"}),children:[jsx("span",{className:"oui-datepicker-trigger-icon",children:jsx(oo,{size:14,className:"oui-text-inherit",opacity:1})}),jsx("span",{children:R}),jsx(oe,{size:12,className:"oui-datepicker-trigger-arrow oui-text-inherit oui-transition-transform group-data-[state=open]:oui-rotate-180 group-data-[state=closed]:oui-rotate-0",opacity:1})]})})};Xo.displayName="DateRangePicker";function C0(e,o){let t=useRef(null);return useCallback(i=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{e(i);},o);},[e,o])}function P0(e,o){let t=s=>({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}),r=t(e.from),i=t(e.to),n=t(o.from),a=t(o.to);return r.year===n.year&&r.month===n.month&&r.day===n.day&&i.year===a.year&&i.month===a.month&&i.day===a.day}var jo=e=>{let{placeholder:o,dateFormat:t,onChange:r,value:i,size:n,className:a,...s}=e,[l]=O("picker"),{trigger:u}=Z({size:n,className:a}),[c,m]=useState(false),g=useMemo(()=>{if(typeof i>"u")return o??l.selectDate},[i,o,l]);return jsx(Bo,{open:c,onOpenChange:m,contentProps:{className:"oui-w-auto oui-p-0"},content:jsx(lo,{onSelect:(f,b,T,x)=>{s.onSelect?.(f,b,T,x),f&&(r?.(f),m(false));},...s}),children:jsxs("button",{className:u({className:"orderly-datepicker-trigger oui-group"}),children:[jsx("span",{className:"orderly-datepicker-trigger-icon",children:jsx(oo,{size:14,className:"oui-text-inherit",opacity:1})}),jsx("span",{children:g}),jsx(oe,{size:12,className:"orderly-datepicker-trigger-arrow oui-text-inherit oui-transition-transform group-data-[state=open]:oui-rotate-180 group-data-[state=closed]:oui-rotate-0",opacity:1})]})})};jo.displayName="DatePicker";var Ko=B.Root,Si=B.Trigger,M0=B.Close,Ll=B.Portal,Ri=Le.forwardRef(({className:e,...o},t)=>jsx(B.Overlay,{className:cnBase("oui-fixed oui-inset-0 oui-z-50 oui-bg-black/80 data-[state=open]:oui-animate-in data-[state=closed]:oui-animate-out data-[state=closed]:oui-fade-out-0 data-[state=open]:oui-fade-in-0",e),...o,ref:t}));Ri.displayName=B.Overlay.displayName;var L0=tv({base:"oui-fixed oui-z-50 oui-gap-4 oui-bg-base-8 oui-px-4 oui-shadow-lg oui-transition oui-ease-in-out data-[state=closed]:oui-duration-260 data-[state=open]:oui-duration-300 data-[state=open]:oui-animate-in data-[state=closed]:oui-animate-out",variants:{side:{top:"oui-inset-x-0 oui-top-0 oui-border-b data-[state=closed]:oui-slide-out-to-top data-[state=open]:oui-slide-in-from-top",bottom:"oui-inset-x-0 oui-bottom-0 oui-rounded-t-2xl data-[state=closed]:oui-slide-out-to-bottom data-[state=open]:oui-slide-in-from-bottom",left:"oui-inset-y-0 oui-left-0 oui-h-full oui-w-3/4 data-[state=closed]:oui-slide-out-to-left data-[state=open]:oui-slide-in-from-left sm:oui-max-w-sm",right:"oui-inset-y-0 oui-right-0 oui-h-full oui-w-3/4 oui-border-l data-[state=closed]:oui-slide-out-to-right data-[state=open]:oui-slide-in-from-right sm:oui-max-w-sm"}},defaultVariants:{side:"bottom"}}),po=Le.forwardRef(({side:e="bottom",closeable:o=true,closeableSize:t=16,closeOpacity:r=.98,className:i,children:n,...a},s)=>jsxs(Ll,{children:[jsx(Ri,{}),jsxs(B.Content,{ref:s,className:cnBase(L0({side:e}),i),onOpenAutoFocus:l=>l.preventDefault(),onCloseAutoFocus:l=>l.preventDefault(),...a,children:[o&&jsxs(B.Close,{className:cnBase("oui-ring-offset-base-700 focus:oui-ring-ring oui-absolute oui-right-4 oui-top-4 oui-z-10 oui-rounded-sm oui-transition-opacity focus:oui-outline-none focus:oui-ring-2 focus:oui-ring-offset-2 active:oui-outline-none focus:orderly-outline-none disabled:oui-pointer-events-none data-[state=open]:oui-bg-secondary",a?.closeClassName),children:[jsx(Te,{size:t,color:"white",opacity:r,onClick:a?.onClose}),jsx("span",{className:"oui-sr-only",children:"Close"})]}),n]})]}));po.displayName=B.Content.displayName;var Jt=({className:e,leading:o,...t})=>jsxs("div",{className:cnBase("oui-sheet-header oui-grid oui-min-h-12 oui-grid-cols-[40px_1fr_40px] oui-items-center"),children:[jsx("div",{children:o}),jsx("div",{...t,className:cnBase("oui-flex oui-flex-col oui-space-y-2 oui-text-center oui-text-lg oui-text-base-contrast",e)})]});Jt.displayName="SheetHeader";var Ii=({className:e,...o})=>jsx("div",{className:cn$1("oui-py-4",e)({twMerge:true}),...o});Ii.displayName="DialogBody";var Vl=({className:e,...o})=>jsx("div",{className:cnBase("oui-sheet-footer oui-flex oui-flex-col-reverse sm:oui-flex-row sm:oui-justify-end sm:oui-space-x-2",e),...o});Vl.displayName="SheetFooter";var er=Le.forwardRef(({className:e,leading:o,...t},r)=>jsxs("div",{className:"oui-sheet-header oui-grid oui-grid-cols-[40px_1fr_40px] oui-items-center",ref:r,children:[jsx("div",{children:o}),jsx("div",{className:cnBase("oui-flex oui-flex-col oui-space-y-2 oui-text-center oui-text-lg oui-text-base-contrast",e),...t})]}));er.displayName=B.Title.displayName;var zl=Le.forwardRef(({className:e,...o},t)=>jsx(B.Description,{ref:t,className:cnBase("oui-sheet-description oui-text-2xs oui-text-base-contrast-54",e),...o}));zl.displayName=B.Description.displayName;var Ni=Symbol("modalId"),V0=0,z0=()=>`__modal_${V0++}`,Qo=e=>typeof e=="string"?e:(e[Ni]||(e[Ni]=z0()),e[Ni]);function X(e,o){let t=useContext(Ge),r=useContext(Jo),i,n=e&&typeof e!="string";if(e?i=Qo(e):i=r,!i)throw new Error("modalId is required");let a=i;useEffect(()=>{n&&mo(a,e,o);},[n,i,e,o]);let s=t[a],l=useCallback(x=>G.show(a,x),[a]),u=useCallback(()=>G.hide(a),[a]),c=useCallback(()=>G.remove(a),[a]),m=useCallback(x=>{x||(b("cancel"),u());},[a]),g=useCallback(x=>{G.setStates(a,x);},[a]),p=useCallback(x=>{G.updateArgs(a,x);},[a]),f=useCallback(x=>{ue[a]?.resolve(x),delete ue[a];},[a]),b=useCallback(x=>{ue[a]?.reject(x),delete ue[a];},[a]),T=useCallback(x=>{Oe[a]?.resolve(x),delete Oe[a];},[]);return {id:a,args:s?.args,states:s?.states,visible:!!s?.visible,keepMounted:!!s?.keepMounted,show:l,hide:u,onOpenChange:m,setStates:g,updateArgs:p,remove:c,resolve:f,reject:b,resolveHide:T}}var ce=new Map,pe=e=>({id:o,defaultVisible:t,keepMounted:r,...i})=>{let{args:n,show:a}=X(o),s=useContext(Ge),l=!!s[o];useEffect(()=>(t&&a(),go[o]=true,()=>{r||delete go[o];}),[o,a,t]),useEffect(()=>{r&&G.setStates(o,{keepMounted:true});},[o,r]);let u=s[o]?.delayVisible;return useEffect(()=>{u&&a(n);},[u,n,a]),l?jsx(Jo.Provider,{value:o,children:jsx(e,{...i,...n})}):null};function mo(e,o,t){ce.has(e)?ce.set(e,{comp:ce.get(e).comp,props:t}):ce.set(e,{comp:o,props:t});}var _l=e=>{ce.delete(e);};var Fl={},go={},Ge=createContext(Fl),Jo=createContext(null),ue={},Oe={},fo=()=>{throw new Error("No dispatch method detected, did you embed your app with Modal.Provider?")};function F0(e,o){return {type:"SHOW_MODAL",payload:{id:e,args:o}}}function H0(e){return {type:"HIDE_MODAL",payload:{id:e}}}function A0(e){return {type:"DESTROY_MODAL",payload:{id:e}}}function O0(e,o){return {type:"UPDATE_ARGS",payload:{id:e,args:o}}}function G0(e,o){return {type:"SET_MODAL_STATES",payload:{id:e,states:o}}}var W0=(e,o)=>{let{id:t,args:r}=o.payload;switch(o.type){case "SHOW_MODAL":return {...e,[t]:{...e[t],id:t,args:r,visible:!!go[t],delayVisible:!go[t]}};case "HIDE_MODAL":return {...e,[t]:{...e[t],visible:false}};case "DESTROY_MODAL":{let i={...e};return delete i[t],i}case "UPDATE_ARGS":return {...e,[t]:{...e[t],args:{...e[t].args,...r}}};case "SET_MODAL_STATES":return {...e,[t]:{...e[t],states:{...e.states,...o.payload.states}}};default:return e}},Z0=()=>{let e=useContext(Ge),o=Object.keys(e).filter(r=>!!e[r]);o.forEach(r=>{!ce.has(r)&&go[r];});let t=o.filter(r=>ce.has(r)).map(r=>({id:r,...ce.get(r)}));return jsx(Fragment,{children:t.map(r=>{let i=r.comp;return jsx(i,{id:r.id,...r.props},r.id)})})},U0=e=>{let[o,t]=useReducer(W0,Fl);return fo=t,jsxs(Ge.Provider,{value:o,children:[e.children,jsx(Z0,{})]})};function Y0(e,o){let t=Qo(e);if(typeof e!="string"&&!ce.has(t)&&mo(t,e),fo(F0(t,o)),!ue[t]){let r,i,n=new Promise((a,s)=>{r=a,i=s;});ue[t]={resolve:r,reject:i,promise:n};}return ue[t].promise}function X0(e){let o=Qo(e);if(fo(H0(o)),delete ue[o],!Oe[o]){let t,r,i=new Promise((n,a)=>{t=n,r=a;});Oe[o]={resolve:t,reject:r,promise:i};}return Oe[o].promise}function j0(e){fo(A0(e)),delete ue[e],delete Oe[e];}function $0(e,o){fo(G0(e,o));}function q0(e,o){fo(O0(e,o));}var G={show:Y0,hide:X0,remove:j0,setStates:$0,updateArgs:q0};var em=h({base:["oui-pointer-events-none oui-box-content"],variants:{intensity:{4:"oui-border-line-4",6:"oui-border-line-6",8:"oui-border-line",12:"oui-border-line-12",16:"oui-border-line-16"},direction:{horizontal:["oui-border-b"],vertical:["oui-border-l"]},lineStyle:{dashed:"oui-border-dashed",dotted:"oui-border-dotted"},mx:{2:"oui-mx-2",4:"oui-mx-4",6:"oui-mx-6",8:"oui-mx-8",10:"oui-mx-10"},my:{2:"oui-my-2",4:"oui-my-4",6:"oui-my-6",8:"oui-my-8",10:"oui-my-10"}},defaultVariants:{direction:"horizontal",intensity:4}}),de=Le__default.forwardRef((e,o)=>{let{className:t,intensity:r,direction:i,lineStyle:n,mx:a,my:s,...l}=e;return jsx("div",{ref:o,...l,className:em({direction:i,intensity:r,className:t,lineStyle:n,mx:a,my:s})})});de.displayName="Divider";var ot=e=>{let{open:o,onOpenChange:t,classNames:r,contentProps:i,closable:n=true}=e,a=typeof e.title=="function"?e.title():e.title;return jsx(Ko,{open:o,onOpenChange:t,children:jsxs(po,{onOpenAutoFocus:s=>s.preventDefault(),className:r?.content,closeable:n,...i,children:[a&&jsxs(Fragment,{children:[jsx(Jt,{leading:e.leading,children:jsx(er,{children:a})}),jsx(de,{})]}),jsx(Ii,{className:r?.body,children:e.children})]})})};var rm=pe(e=>{let{visible:o,hide:t,resolve:r,onOpenChange:i}=X();return jsx(ot,{open:o,onOpenChange:i,...e,children:e.content})}),Al=e=>G.show(rm,e);var We=tv({slots:{overlay:["oui-dialog-overlay","oui-fixed","oui-inset-0","oui-z-50","oui-bg-black/80","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0"],content:["oui-dialog-content","oui-fixed","oui-left-[50%]","oui-top-[50%]","oui-z-50","oui-w-full","oui-max-w-lg","oui-translate-x-[-50%]","oui-translate-y-[-50%]","oui-text-base-contrast-54","oui-px-4 lg:oui-px-5","oui-shadow-lg","oui-duration-200","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[state=closed]:oui-slide-out-to-left-1/2","data-[state=closed]:oui-slide-out-to-top-[48%]","data-[state=open]:oui-slide-in-from-left-1/2","data-[state=open]:oui-slide-in-from-top-[48%]","sm:oui-rounded-xl"],body:["oui-dialog-body","oui-py-4 lg:oui-py-5","oui-text-xs"],close:["oui-dialog-close-btn","oui-absolute","oui-right-4","oui-top-4","oui-ring-offset-background","oui-transition-opacity","hover:oui-opacity-100","disabled:oui-pointer-events-none"],header:["oui-dialog-header","oui-flex","oui-flex-col"],footer:["oui-dialog-footer","oui-flex","oui-flex-row","oui-justify-end","oui-space-x-2","oui-pb-5","oui-pt-2 lg:oui-pt-3"],title:["oui-dialog-title","oui-text-base","oui-min-h-11 lg:oui-min-h-[46px]","oui-flex","oui-items-center","oui-text-base-contrast"],desc:["oui-dialog-desc","oui-text-xs","oui-text-warning-darken","oui-pt-2","oui-text-center","oui-pb-3"]},variants:{size:{xs:{content:["oui-max-w-xs"]},sm:{content:["oui-max-w-sm"]},md:{content:["oui-max-w-md"]},lg:{content:["oui-max-w-lg"]},xl:{content:["oui-max-w-xl"]}},intensity:{100:{content:["oui-bg-base-1"]},200:{content:["oui-bg-base-2"]},300:{content:["oui-bg-base-3"]},400:{content:["oui-bg-base-4"]},500:{content:["oui-bg-base-5"]},600:{content:["oui-bg-base-6"]},700:{content:["oui-bg-base-7"]},800:{content:["oui-bg-base-8"]},900:{content:["oui-bg-base-9"]}}},defaultVariants:{intensity:800}}),rt=B.Root,Vi=B.Trigger,Ol=B.Portal,nm=B.Close,zi=Le.forwardRef(({className:e,...o},t)=>{let{overlay:r}=We();return jsx(B.Overlay,{ref:t,className:r({className:e}),...o})});zi.displayName=B.Overlay.displayName;var xo=Le.forwardRef(({overlyClassName:e,className:o,children:t,size:r,closable:i=true,intensity:n,...a},s)=>{let{content:l,close:u}=We({className:o,size:r,intensity:n});return jsxs(Ol,{children:[jsx(zi,{className:e}),jsxs(B.Content,{ref:s,className:l({className:o}),...a,children:[t,i&&jsxs(B.Close,{className:u(),"data-testid":"oui-testid-dialog-content-close-btn",children:[jsx(Te,{size:16,color:"white",opacity:.98}),jsx("span",{className:"oui-sr-only",children:"Close"})]})]})]})});xo.displayName=B.Content.displayName;var bo=({className:e,...o})=>{let{header:t}=We();return jsx("div",{className:t({className:e}),...o})};bo.displayName="DialogHeader";var it=({className:e,...o})=>{let{body:t}=We();return jsx("div",{className:t({className:e}),...o})},or=({className:e,...o})=>{let{footer:t}=We();return jsx("div",{className:t({className:e}),...o})};or.displayName="DialogFooter";var ho=Le.forwardRef(({className:e,...o},t)=>{let{title:r}=We();return jsx(B.Title,{ref:t,className:r({className:e}),...o})});ho.displayName=B.Title.displayName;var wo=Le.forwardRef(({className:e,...o},t)=>{let{desc:r}=We();return jsx(B.Description,{ref:t,className:r({className:e}),...o})});wo.displayName=B.Description.displayName;var at=e=>{let{actions:o}=e,[t,r]=useState(o?.primary?.loading??false);if(useEffect(()=>(o?.primary?.loading&&r(o?.primary?.loading),()=>{r(false);}),[o?.primary?.loading]),!o)return null;let i=useMemo(()=>{let n=[];if(o.secondary&&typeof o.secondary.onClick=="function"){let{fullWidth:a=true,color:s="gray",label:l,...u}=o.secondary;n.push(jsx($e,{...u,"data-testid":o.secondary?.["data-testid"],color:s,fullWidth:a,children:l},"secondary"));}if(o.primary&&typeof o.primary.onClick=="function"){let{fullWidth:a=true,color:s,disabled:l,label:u,onClick:c,...m}=o.primary;n.push(jsx(Rr,{...m,"data-testid":o.primary?.["data-testid"],onClick:async g=>{if(!t)try{r(!0),await c(g);}catch{}finally{r(false);}},disabled:l||t,loading:t,fullWidth:a,color:s,children:u},"primary"));}return n},[o,t]);return jsx(or,{className:e.className,children:i})};var Pe=e=>{let o=typeof e.title=="function"?e.title():e.title;return jsx(rt,{open:e.open,onOpenChange:e.onOpenChange,children:jsxs(xo,{size:e.size,closable:e.closable,onOpenAutoFocus:t=>t.preventDefault(),onCloseAutoFocus:t=>t.preventDefault(),className:e.classNames?.content,overlyClassName:e.classNames?.overlay,...e.contentProps,children:[o&&jsxs(Fragment,{children:[jsx(bo,{children:jsx(ho,{children:o})}),jsx(de,{})]}),jsx(it,{className:e.classNames?.body,children:e.children}),typeof e.description<"u"&&jsx(wo,{children:e.description}),jsx(at,{actions:e.actions,className:e.classNames?.footer})]})})};function Bi(e){let o=n=>typeof window<"u"?window.matchMedia(n).matches:false,[t,r]=useState(o(e));function i(){r(o(e));}return useEffect(()=>{let n=window?.matchMedia(e);return i(),n?.addListener?n?.addListener(i):n?.addEventListener?.("change",i),()=>{n?.removeListener?n?.removeListener(i):n?.removeEventListener?.("change",i);}},[e]),t}function nt(){let e=Bi("(max-width: 768px)");return {isMobile:e,isDesktop:!e}}function gm(e,o){useEffect(()=>{if(!e)return;let t=new ResizeObserver(r=>{for(let i of r)o(i);});return t.observe(e),()=>{t.unobserve(e);}},[e]);}var Ei=e=>{let[o]=O("dialog"),{title:t,message:r,open:i,onOpenChange:n,onOk:a,onCancel:s,okLabel:l=o.ok,cancelLabel:u=o.cancel,size:c,classNames:m}=e,{isMobile:g}=nt(),p=useMemo(()=>{if(typeof a!="function"&&typeof s!="function")return;let b={};return typeof s=="function"&&(b.secondary={label:u,onClick:s,size:"md",fullWidth:true,...e.actions?.secondary}),typeof a=="function"&&(b.primary={label:l,size:"md",fullWidth:true,className:"oui-w-full lg:oui-w-[154px]",onClick:a,...e.actions?.primary}),b},[a,s,l,u,e.actions]);return jsx(Pe,{open:i,title:t,size:c||(g?"xs":"sm"),actions:p,onOpenChange:n,classNames:{content:cnBase("oui-bg-base-8 oui-font-semibold oui-border oui-border-line-6","oui-p-4 oui-pt-0 lg:oui-p-5 lg:oui-pt-0",m?.content),body:cnBase("oui-py-4 lg:oui-py-5",m?.body),footer:cnBase("oui-justify-center oui-pb-0 oui-pt-2 lg:oui-pt-3",m?.footer)},children:r})};var hm=pe(e=>{let{onOk:o}=e,{visible:t,hide:r,resolve:i,reject:n,onOpenChange:a}=X(),s=useCallback(()=>Promise.resolve().then(o).then(r),[o]);return jsx(Ei,{open:t,onOpenChange:a,...e,onOk:s})}),Wl=e=>G.show(hm,e);var vm=pe(e=>{let{visible:o,hide:t,resolve:r,reject:i,onOpenChange:n}=X();return jsx(Pe,{title:e.title,open:o,onOpenChange:n,size:e.size,closable:e.closable,children:e.content})}),Zl=e=>G.show(vm,e);var Cm=e=>jsxs(rt,{children:[jsx(Vi,{asChild:true,children:e.trigger}),jsxs(xo,{size:e.size,closable:e.closable,onOpenAutoFocus:o=>o.preventDefault(),children:[e.title&&jsxs(Fragment,{children:[jsx(bo,{children:jsx(ho,{children:e.title})}),jsx(de,{})]}),jsx(it,{children:e.children}),typeof e.description<"u"&&jsx(wo,{children:e.description}),jsx(at,{actions:e.actions})]})]});function km(e){return vo.create(o=>{let{visible:t,hide:r,resolve:i,reject:n,onOpenChange:a}=X(),{title:s,size:l,contentClassName:u,bodyClassName:c,closable:m,classNames:g,...p}=o;return jsx(Pe,{open:t,onOpenChange:a,size:l,title:s,closable:m,classNames:{content:u,body:c,...g},contentProps:{onInteractOutside:f=>{document.querySelector("#privy-dialog")&&f.preventDefault();}},children:jsx(e,{...p,close:r,resolve:i,reject:n})})})}function Sm(e,o,t){vo.register(e,km(o),t);}var Yl=pe(e=>{let{size:o}=e,{visible:t,hide:r,resolve:i,reject:n,onOpenChange:a}=X(),[s]=O("modal"),{isMobile:l}=nt(),u=l?"xs":"sm",c=typeof e.title=="function"?e.title():e.title;return jsx(Pe,{open:t,title:jsx(Q,{size:"base",weight:"semibold",children:c}),size:o||u,classNames:{content:e.contentClassName,body:e.bodyClassName,...e.classNames},closable:true,onOpenChange:m=>{m||n(),a(m);},actions:{primary:{label:e.okLabel??s.confirm,className:"oui-text-sm oui-font-semibold oui-w-[100%] oui-h-8","data-testid":"oui-testid-confirm-dialog-confirm-btn",onClick:()=>Promise.resolve().then(()=>typeof e.onOk=="function"?e.onOk():true).then(m=>{i(m),r();},m=>{n(m),r();})},secondary:{label:e.cancelLabel??s.cancel,className:"oui-text-sm oui-font-semibold oui-w-[100%] oui-h-8","data-testid":"oui-testid-confirm-dialog-cancel-btn",onClick:()=>Promise.resolve().then(()=>typeof e.onCancel=="function"?e.onCancel():Promise.reject("cancel")).then(m=>{i(m),r();},m=>{n(m),r();})}},children:jsx("div",{className:"oui-text-2xs lg:oui-text-sm",children:e.content})})}),Xl=e=>G.show(Yl,e);var vo={create:pe,register:mo,unregister:_l,...G,confirm:Xl,alert:Wl,sheet:Al,dialog:Zl};function Rm(e){return vo.create(o=>{let{title:t,leading:r,classNames:i,contentProps:n,closable:a,...s}=o,{visible:l,hide:u,resolve:c,reject:m,onOpenChange:g,args:p}=X();return jsx(ot,{open:l,onOpenChange:g,title:t,leading:r,classNames:i,closable:a,contentProps:n,children:jsx(e,{...s,close:u,resolve:c,reject:m})})})}function Im(e,o,t){vo.register(e,Rm(o),t);}var Mm=e=>{let{action:o}=e,t=useCallback(()=>{typeof o.onClick=="function"?o.onClick(o):e.onClick?.({...o,index:e.index});},[o]),r=useMemo(()=>o.label,[o.label]);return jsx("div",{className:cnBase("oui-flex oui-justify-center oui-items-center oui-text-lg oui-h-[52px] oui-cursor-pointer",e.active&&"oui-text-primary-darken"),onClick:t,children:r})},Lm=e=>jsx("div",{className:"oui-relative oui-h-[1px] oui-bg-base-300 oui-mt-[-1px]"}),Vm=e=>jsx(Fragment,{children:e.actionSheets.map((o,t)=>o.type==="division"?jsx(Lm,{},t):jsxs(Fragment$1,{children:[o.value==="cancel"&&jsx("div",{className:"oui-h-2 oui-bg-base-10"}),jsx(Mm,{onClick:r=>{r.value!=="cancel"&&(typeof o.onClick=="function"?o.onClick(o):(e.onValueChange?.(r.value),e.onClose?.()));},index:t,action:o,active:typeof e.value<"u"&&e.value.value===o.value}),t<e.actionSheets.length-1&&jsx(de,{className:"oui-border-base-contrast/10"})]},o.value||t))}),Ai=e=>{let[o]=O("modal"),t=useMemo(()=>{let r=[];if(Array.isArray(e.actionSheets))for(let i of e.actionSheets)typeof i=="string"?i==="Cancel"?r.push({label:o.cancel,value:"cancel",onClick:()=>{e.onClose?.();}}):i==="Confirm"?r.push({label:o.confirm,value:"confirm"}):i.startsWith("---")&&r.push({label:"---",value:"---",type:"division"}):r.push(i);return r},[e.actionSheets]);return jsxs(Ko,{open:e.open,onOpenChange:e.onOpenChange,children:[typeof e.children<"u"&&jsx(Si,{asChild:true,children:e.children}),jsx(po,{closeable:false,className:"oui-action-sheet-content !oui-p-0 oui-pb-[env(safe-area-inset-bottom)]",onOpenAutoFocus:r=>r.preventDefault(),children:jsx(Vm,{actionSheets:t,onClose:e.onClose,onValueChange:e.onValueChange,value:e.value})})]})};var _m=h({base:"oui-flex oui-flex-row oui-items-stretch oui-rounded-md oui-cursor-pointer oui-border oui-border-line-6 oui-bg-line-4 oui-text-base-contrast-54",variants:{size:{sm:"oui-px-2 oui-h-[22px] oui-text-2xs",md:"oui-px-2 oui-h-[24px] oui-text-2xs",base:"oui-px-3 oui-h-[40px]",lg:"oui-px-6 oui-py-3"},fullWidth:{true:"oui-w-full"},disabled:{true:"oui-opacity-50 oui-cursor-not-allowed"},color:{base:"oui-text-base-contract",buy:"oui-text-trade-profit",sell:"oui-text-trade-loss"}},defaultVariants:{size:"base",color:"base"}}),Gi=forwardRef((e,o)=>{let{size:t,color:r,value:i,label:n,placeholder:a,className:s,options:l,fullWidth:u,disabled:c,valueRenderer:m,...g}=e,[p,f]=useState(false),b=useMemo(()=>{if(i&&i.value)return i;if(typeof i=="number"||typeof i=="string"){let S=l.find(R=>R.value===i);if(S)return S}},[i,l]),T=useMemo(()=>b?b.label:a||n||"",[b,n,a]),x=useMemo(()=>[...l,"---","Cancel"],[l]);return jsx(Ai,{actionSheets:x,onOpenChange:f,open:p,onClose:()=>f(false),value:b,onValueChange:g.onValueChange,children:typeof m=="function"?m(b?.value||g.defaultValue,{open:p,data:b?.data}):jsxs("div",{className:cnBase("oui-space-x-1","oui-text-base-contrast-54","oui-rounded-md","oui-bg-base-8",_m({size:t,color:r,fullWidth:u,disabled:c||l.length===0,className:s})),children:[jsx("div",{className:"oui-flex oui-flex-1 oui-items-center oui-justify-start oui-text-2xs oui-text-inherit",children:T}),jsx("div",{className:"oui-flex oui-items-center",children:p?jsx(vt,{size:14,color:"white"}):jsx(wt,{size:14,color:"white"})})]})})});var Hm=e=>jsx("div",{children:jsx(jo,{size:"xs",...e,mode:"single",onChange:o=>{}})}),Am=e=>{let{onChange:o,...t}=e;return jsx("div",{className:"oui-min-w-[180px]",children:jsx(Xo,{size:"xs",...t,onChange:i=>{typeof o=="function"&&o(i);}})})},Om=e=>{let{onChange:o,type:t,isCombine:r,...i}=e;switch(t){case "select":return jsx("div",{className:"oui-min-w-24",children:r?jsx(Bt,{size:"xs",...i,onValueChange:o}):jsx(ao,{size:"xs",...i,onValueChange:o})});case "date":return jsx(Hm,{...i});case "range":return jsx(Am,{...i,onChange:o});case "symbol":return jsx("div",{});case "picker":return jsx(Gi,{...i,onValueChange:o});case "input":default:return jsx("div",{children:"No Component"})}},Gm=e=>jsxs(L,{justify:"start",gapX:3,py:3,width:"100%",className:cnBase("oui-data-filter-bar oui-border-b oui-border-line",e.className),children:[e.items.filter(Boolean).map((o,t)=>(o.type==="date"&&(o.mode="range"),jsx(Om,{...o,onChange:r=>{e.onFilter({name:o.name??o.type,value:r});}},t))),e.trailing&&jsx("div",{className:"oui-flex oui-flex-1 oui-justify-end",children:e.trailing})]});var Xm=e=>{let o=useRef(0),[t,r]=useState(e?.page??1),[i,n]=useState(e?.pageSize??10),a=useCallback(c=>{if(n(c),o.current>0){let m=Math.ceil(o.current/c);t>m&&r(m);}},[t]),s=c=>{let m=c?.total??o.current;o.current=m;let g=c?.records_per_page??i,p=m?Math.ceil(m/g):0,f=Math.min(c?.current_page??t,p);return {count:m,page:f,pageSize:g,pageTotal:p}},l=useCallback(c=>({...s(c),onPageChange:r,onPageSizeChange:a}),[t,i]),u=useMemo(()=>({page:t,pageSize:i,onPageChange:r,onPageSizeChange:a}),[l]);return useEffect(()=>{e?.resetPageWhenPageSizeChange!==false&&r(1);},[i,e?.resetPageWhenPageSizeChange]),{page:t,pageSize:i,setPage:r,setPageSize:a,parseMeta:s,pagination:u,parsePagination:l}};var tr=e=>{let[o]=O("empty");return jsxs(L,{itemAlign:"center",direction:"column",gapY:4,className:e.className,children:[jsx(W,{children:jsx(rs,{})}),jsx(Q,{as:"div",intensity:36,size:"2xs",children:e.title??o.description})]})};Yo({name:"emptyDataIdentifier",positions:["emptyDataIdentifier"]})(tr);var eu={};Cr(eu,{DownloadFeature:()=>Jl});var Jl={createTable:e=>{e.getPlainTextData=()=>{let o=e.getAllColumns().filter(i=>i.columnDef.meta.type!=="action").map(i=>{let{title:n,plantTextTitle:a}=i.columnDef.meta;return a||n}),t=e.getRowModel().rows.map(i=>i.getVisibleCells().filter(n=>n.column.columnDef.meta.type!=="action").map(n=>{let{original:a,index:s}=n.row,{renderPlantText:l}=n.column.columnDef.meta||{},u=n.getValue();return typeof l=="function"&&(u=l(u,a,s)),`"${u}"`}));return [o,...t]},e.download=o=>{let t=e.getPlainTextData();qm(t,o);};}};function $m(e){return e.map(o=>o.join(",")).join(`
32
+ `)}function qm(e,o=`${Date.now()}.csv`){let t=$m(e),r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),n=document.createElement("a");n.href=i,n.setAttribute("download",o),n.click(),URL.revokeObjectURL(i);}var Zi=h({slots:{list:["oui-header-list","oui-flex","oui-items-center"],content:["oui-ring-offset-background","focus-visible:oui-outline-none","focus-visible:oui-ring-2","focus-visible:oui-ring-ring","focus-visible:oui-ring-offset-2"],trigger:["oui-tab-trigger","oui-inline-flex","oui-items-center","oui-justify-center","oui-whitespace-nowrap","oui-box-content","oui-font-medium","oui-text-base-contrast-36 hover:oui-text-base-contrast-54","oui-ring-offset-background","oui-transition-all","oui-space-x-1","focus-visible:oui-outline-none","focus-visible:oui-ring-2","focus-visible:oui-ring-ring","focus-visible:oui-ring-offset-2","disabled:oui-pointer-events-none","disabled:oui-opacity-50"],icon:["oui-text-inherit"]},variants:{variant:{text:{list:["oui-space-x-6","oui-border-b","oui-border-line-6","oui-px-1"],trigger:["oui-pb-2","oui-relative","data-[state=active]:oui-text-base-contrast","data-[state=active]:after:oui-content-['']","data-[state=active]:after:oui-block","data-[state=active]:after:oui-h-[3px]","data-[state=active]:after:oui-bg-white","data-[state=active]:after:oui-absolute","data-[state=active]:after:oui-rounded-full","data-[state=active]:after:-oui-bottom-0","data-[state=active]:after:oui-left-0","data-[state=active]:after:oui-right-0"]},contained:{list:["oui-space-x-[6px]"],trigger:["oui-rounded","oui-px-3","oui-bg-base-7 hover:oui-bg-base-5","oui-text-base-contrast-36","data-[state=active]:oui-bg-base-5","data-[state=active]:oui-text-base-contrast"],icon:["oui-text-inherit"]}},size:{sm:{},md:{},lg:{},xl:{}}},compoundVariants:[{size:"sm",variant:"text",className:{trigger:["oui-text-sm","oui-h-5"],icon:["oui-w-[10px]","oui-h-[10px]"]}},{size:"md",variant:"text",className:{trigger:["oui-text-base","oui-h-6"],icon:["oui-w-3","oui-h-3"]}},{size:"lg",variant:"text",className:{trigger:["oui-text-lg","oui-h-7"],icon:["oui-w-[14px]","oui-h-[14px]"]}},{size:"xl",variant:"text",className:{trigger:["oui-text-lg","oui-h-7"],icon:["oui-w-4","oui-h-4"]}},{size:"sm",variant:"contained",className:{list:["oui-space-x-1"],trigger:["oui-text-2xs","oui-h-6"],icon:["oui-w-[10px]","oui-h-[10px]"]}},{size:"md",variant:"contained",className:{trigger:["oui-text-2xs","oui-h-7"],icon:["oui-w-3","oui-h-3"]}},{size:"lg",variant:"contained",className:{trigger:["oui-text-sm","oui-h-8","oui-rounded-md"],icon:["oui-w-[14px]","oui-h-[14px]"]}},{size:"xl",variant:"contained",className:{trigger:["oui-text-base","oui-h-9","oui-rounded-md"],icon:["oui-w-4","oui-h-4"]}}],defaultVariants:{size:"md",variant:"text"}}),Ui=ie.Root,rr=Le.forwardRef(({className:e,size:o,variant:t,...r},i)=>{let{list:n}=Zi({size:o,variant:t});return jsx(ie.List,{ref:i,className:n({className:e}),...r})});rr.displayName=ie.List.displayName;var ir=Le.forwardRef(({className:e,size:o,children:t,icon:r,variant:i,...n},a)=>{let{trigger:s,icon:l}=Zi({size:o,variant:i});return jsxs(ie.Trigger,{ref:a,className:s({className:e}),...n,children:[typeof r<"u"?Le.cloneElement(r,{className:l(),opacity:1}):null,jsx("span",{children:t})]})});ir.displayName=ie.Trigger.displayName;var ar=Le.forwardRef(({className:e,size:o,...t},r)=>{let{content:i}=Zi({size:o});return jsx(ie.Content,{ref:r,className:i({className:e}),...t})});ar.displayName=ie.Content.displayName;var ou=e=>(useEffect(()=>{if(e.components&&Object.keys(e.components).length)for(let o in e.components){let t=e.components[o];Yo({name:t.displayName??`custom-component-${o}`,positions:[o],__isInternal:false})(r=>jsx(t,{...r}));}},[e.components]),e.children);var ru=createContext({}),Xi=()=>useContext(ru),t2=e=>{let o=(t,r)=>e.overrides?.[t]||r;return jsx(ru.Provider,{value:{getComponentTheme:o},children:jsx(ou,{components:e.components,children:e.children})})};function iu(e){let[o,t]=useState(false),[r,i]=useState(0),[n,a]=useState(0);return {handleMouseDown:c=>{e.current&&(t(true),i(c.pageX-e.current.offsetLeft),a(e.current.scrollLeft));},handleMouseMove:c=>{if(!o||!e.current)return;c.preventDefault();let g=c.pageX-e.current.offsetLeft-r;e.current.scrollLeft=n-g;},handleMouseUp:()=>{t(false);},isDragging:o}}function su(){let[e,o]=useState(false),[t,r]=useState(false),i=useRef(null);return useEffect(()=>{if(!i.current)return;let a=()=>{let u=i.current;u&&(o(u.scrollLeft>0),r(u.scrollLeft+u.clientWidth<u.scrollWidth));},s=new IntersectionObserver(u=>{u.forEach(c=>{c.isIntersecting&&a();});}),l=i.current;return l.addEventListener("scroll",a),s.observe(l),()=>{l.removeEventListener("scroll",a),s.disconnect();}},[]),useEffect(()=>{if(!i.current)return;let a=new IntersectionObserver(s=>{s.forEach(l=>{l.isIntersecting;});});return a.observe(i.current),()=>{a.disconnect();}},[]),{containerRef:i,leadingVisible:e,tailingVisible:t,onScoll:a=>{a==="left"?i.current?.scrollBy({left:-100,behavior:"smooth"}):i.current?.scrollBy({left:100,behavior:"smooth"});}}}var $i=e=>{let{visible:o,leading:t,tailing:r,onClick:i}=e;return o?jsxs("button",{onClick:()=>{i?.(t?"left":"right");},className:cnBase(t?"oui-scroll-indicator-leading":"oui-scroll-indicator-tailing","oui-group oui-flex","oui-absolute oui-top-0 oui-bottom-0",t&&"oui-left-0 oui-flex-row-reverse",r&&"oui-right-0"),children:[jsx("div",{className:cnBase("oui-w-6 oui-h-full","oui-bg-[linear-gradient(90deg,rgba(var(--oui-color-base-9)_/_0)_0%,rgba(var(--oui-color-base-9)_/_1)_100%)]",t&&"oui-rotate-180")}),jsx("div",{className:cnBase("oui-flex oui-justify-center oui-items-center","oui-w-3 oui-bg-base-9 oui-h-full"),children:jsx(i2,{className:cnBase("oui-text-base-contrast-54 group-hover:oui-text-base-contrast",t&&"oui-rotate-180")})})]}):null},i2=e=>jsx("svg",{width:"6",height:"14",viewBox:"0 0 6 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{d:"M1.194.025C.944-.026.675-.005.446.15a1.027 1.027 0 0 0-.28 1.406l3.612 5.437L.166 12.43c-.305.459-.177 1.1.28 1.406a1.02 1.02 0 0 0 1.401-.281l3.986-6a1.03 1.03 0 0 0 0-1.125l-3.986-6C1.695.2 1.444.075 1.194.025"})});var Ki=e=>{let{containerRef:o,leadingVisible:t,tailingVisible:r,onScoll:i}=su(),{handleMouseDown:n,handleMouseMove:a,handleMouseUp:s,isDragging:l}=iu(o);return jsxs("div",{className:cnBase("oui-scroll-indicator","oui-relative oui-select-none oui-overflow-hidden",e.className),children:[jsx("div",{ref:o,className:cnBase("oui-hide-scrollbar oui-overflow-x-scroll",l?"oui-cursor-grabbing":"oui-cursor-grab"),onMouseDown:n,onMouseMove:a,onMouseUp:s,onMouseLeave:s,children:e.children}),jsx($i,{leading:true,onClick:i,visible:t}),jsx($i,{tailing:true,onClick:i,visible:r})]})};var cu=createContext({}),pu=e=>{let{getComponentTheme:o}=Xi(),{classNames:t,contentVisible:r=true,variant:i,showScrollIndicator:n,...a}=e,s=o("tabs",{variant:"contained"}),l=i||s.variant,[u,c]=useState({}),m=p=>{c(f=>({...f,[p.value]:p}));},g=()=>{let p=jsx(rr,{variant:l,size:a.size,className:cnBase("oui-flex-1 oui-border-0",t?.tabsList),children:Object.keys(u).map(f=>{let b=u[f];return jsx(ir,{value:b.value,icon:b.icon,variant:l,size:a.size,"data-testid":b.testid,className:t?.trigger,children:b.title},f)})});return n?jsx(Ki,{className:t?.scrollIndicator,children:p}):p};return jsxs(cu.Provider,{value:{registerTab:m},children:[e.children,jsxs(Ui,{...a,children:[jsxs(L,{justify:"between",itemAlign:"center",width:"100%",className:cnBase(l!=="contained"&&"oui-border-b oui-border-b-line-6",t?.tabsListContainer),children:[e.leading,g(),e.trailing]}),r&&Object.keys(u).map(p=>{let f=u[p];return jsx(ar,{value:f.value,className:t?.tabsContent,children:f.content},p)})]})]})};pu.displayName="Tabs";var du=e=>{let{title:o,value:t,icon:r,testid:i}=e,{registerTab:n}=useContext(cu);return useEffect(()=>{let a={title:o,value:t,icon:r,testid:i,content:e.children};n(a);},[e.children,o,t]),null};du.displayName="TabPanel";var p2=h({base:["oui-card-root","oui-card","oui-rounded-xl","oui-shadow","oui-text-base-contrast","oui-p-6"],variants:{...ft.variants},defaultVariants:{intensity:900}}),ur=Le__default.forwardRef(({className:e,intensity:o,children:t,...r},i)=>jsx("div",{ref:i,className:p2({intensity:o,className:e}),...r,children:t}));ur.displayName="CardBase";var cr=Le__default.forwardRef(({className:e,children:o,...t},r)=>jsx("div",{ref:r,className:cnBase("oui-card-header oui-flex oui-flex-col oui-space-y-1.5",e),...t,children:o}));cr.displayName="CardHeader";var pr=Le__default.forwardRef(({className:e,children:o,...t},r)=>jsx("h3",{ref:r,className:cnBase("oui-card-header-title oui-text-lg oui-font-semibold oui-leading-none oui-tracking-tight",e),...t,children:o}));pr.displayName="CardTitle";var d2=Le__default.forwardRef(({className:e,children:o,...t},r)=>jsx("p",{ref:r,className:cnBase("oui-text-muted-foreground oui-text-sm",e),...t,children:o})),dr=Le__default.forwardRef(({className:e,children:o,...t},r)=>jsx("div",{ref:r,className:cnBase("oui-card-content oui-pt-4",e),...t,children:o}));dr.displayName="CardContent";var mr=Le__default.forwardRef(({className:e,children:o,...t},r)=>jsx("div",{ref:r,className:e,...t,children:o}));mr.displayName="CardFooter";var mu=forwardRef((e,o)=>{let{title:t,children:r,footer:i,classNames:n,...a}=e;return jsxs(ur,{...a,className:n?.root,ref:o,children:[jsx(cr,{className:n?.header,children:typeof t=="string"?jsx(pr,{children:t}):t}),jsx(dr,{className:n?.content,children:r}),i&&jsx(mr,{className:n?.footer,children:i})]})});mu.displayName="Card";var f2=ae.Root,x2=ae.Trigger,xu=Le.forwardRef(({className:e,align:o="center",sideOffset:t=4,...r},i)=>jsx(ae.Content,{ref:i,align:o,sideOffset:t,className:cnBase("oui-z-[100] oui-w-64 oui-rounded-md oui-bg-base-8 oui-p-3 oui-text-base-contrast oui-shadow-md oui-outline-none data-[state=open]:oui-animate-in data-[state=closed]:oui-animate-out data-[state=closed]:oui-fade-out-0 data-[state=open]:oui-fade-in-0 data-[state=closed]:oui-zoom-out-95 data-[state=open]:oui-zoom-in-95 data-[side=bottom]:oui-slide-in-from-top-2 data-[side=left]:oui-slide-in-from-right-2 data-[side=right]:oui-slide-in-from-left-2 data-[side=top]:oui-slide-in-from-bottom-2",e),...r}));xu.displayName=ae.Content.displayName;var b2=e=>{let{content:o,open:t,defaultOpen:r,onOpenChange:i,children:n,...a}=e;return jsxs(f2,{open:t,defaultOpen:r,onOpenChange:i,children:[jsx(x2,{asChild:true,children:n}),jsx(ae.Portal,{children:jsxs(xu,{...a,children:[o,jsx(ae.Arrow,{width:11,height:5,className:"oui-fill-base-4"})]})})]})};b2.displayName="HoverCard";var h2=jo;h2.range=Xo;function bu(e,[o,t]){return Math.min(t,Math.max(o,e))}function xr(e,o,t){let r=t-o;if(r===0)return bu(0,[0,100]);let n=100/r*(e-o);return bu(n,[0,100])}function w2(e,o){return t=>{let r=(o[1]-o[0])/(e[1]-e[0]);return o[0]+r*(t-e[0])}}function hu(e,o,t){let r=e/2,n=w2([0,50],[0,r]);return (r-n(o)*t)*t}var C2=h({slots:{root:"oui-relative oui-flex oui-w-full oui-touch-none oui-select-none oui-items-center",thumb:["oui-block","oui-h-[10px]","oui-w-[10px]","oui-rounded-full","oui-border-[2px]","oui-border-primary","oui-bg-base-6","oui-shadow","oui-group","oui-transition-colors","focus-visible:oui-outline-none","focus:oui-shadow-[0_0_0_8px]","focus:oui-shadow-base-contrast/20","focus:oui-h-[14px]","focus:oui-w-[14px]","data-[disabled]:oui-pointer-events-none","data-[disabled]:oui-border-base-2","data-[disabled]:oui-hidden"],track:"oui-relative oui-h-[8px] oui-w-full oui-grow oui-overflow-hidden oui-rounded-full",trackInner:"oui-absolute oui-left-0 oui-right-0 oui-h-[2px] oui-top-[3px] oui-pointer-events-none oui-bg-base-2",range:"oui-absolute oui-h-[2px] oui-top-[3px] oui-bg-primary data-[disabled]:oui-bg-base-2",mark:"oui-absolute oui-top-[1px] oui-w-[6px] oui-h-[6px] oui-rounded oui-border oui-border-base-2 oui-bg-base-6 oui-pointer-events-none oui-translate-x-[-50%]",tips:["oui-absolute","oui-hidden","oui-rounded","oui-drop-shadow","oui-w-[36px]","oui-h-[19px]","oui-translate-x-[-12px]","oui-top-[-28px]","oui-font-semibold","oui-text-center","group-focus:oui-inline-block","after:oui-block","after:oui-absolute","after:oui-bottom-[-8px]","after:oui-w-0","after:oui-h-0","after:oui-border-4","after:oui-left-1/2","after:oui-translate-x-[-50%]","after:oui-border-solid","after:oui-border-transparent","after:oui-border-t-inherit","oui-text-base-5","oui-text-2xs"]},variants:{color:{primary:{thumb:["oui-border-primary","oui-bg-base-5"],range:"oui-bg-primary",tips:"oui-bg-primary after:oui-border-t-primary"},primaryLight:{thumb:["oui-border-primary-light","oui-bg-base-5"],range:"oui-bg-primary-light",tips:"oui-bg-primary-light after:oui-border-t-primary-light"},buy:{thumb:["oui-border-success","oui-bg-base-5"],range:"oui-bg-success",tips:["oui-bg-success after:oui-border-t-success"]},sell:{thumb:["oui-border-danger","oui-bg-base-5"],range:"oui-bg-danger",tips:["oui-bg-danger after:oui-border-t-danger"]}}}}),ea=Le.forwardRef(({className:e,color:o,marks:t,markCount:r,classNames:i,markLabelVisible:n,showTip:a,onValueChange:s,value:l,...u},c)=>{let{track:m,range:g,thumb:p,root:f,trackInner:b,mark:T,tips:x}=C2({color:o}),[S,R]=Le.useState(l);Le.useEffect(()=>{R(y=>!y||l?.some((H,j)=>H!==y[j])?l:y);},[l]);let v=useMemo(()=>{if(Array.isArray(t)&&t.length>0)return t;let y=u.max;if(y||(y=100),typeof r<"u"){let H=[],j=y/r,K=r-1;for(let ne=0;ne<=K;ne++){let w=ne*j;H.push({value:w,label:`${w}`});}return H.push({value:y,label:"100"}),H}return []},[t,r,u.max]),V=y=>{R(y),s?.(y);};return jsxs(ke.Root,{ref:c,className:f({className:e}),value:s?l:S,onValueChange:s||V,...u,children:[jsxs(ke.Track,{className:m({className:i?.track}),children:[jsx("div",{className:b()}),jsx(ke.Range,{className:g({className:i?.range})})]}),Array.isArray(v)&&v.length>0&&jsx(P2,{value:S,color:o,marks:v,isInnerMask:!Array.isArray(t)||t.length===0,markLabelVisible:n,disabled:u.disabled,className:T(),step:u.step}),jsx(ke.Thumb,{className:p({className:cnBase(i?.thumb,"oui-slider-thumb")}),children:a&&jsx(k2,{value:S,className:x({color:o}),max:u.max??100,min:0,tipFormatter:u.tipFormatter})})]})});ea.displayName=ke.Root.displayName;var P2=e=>{let{marks:o,value:t,isInnerMask:r,markLabelVisible:i,className:n,color:a="primary"}=e,s=useMemo(()=>t?.[0]??0,[t]),l=useMemo(()=>{if(!(typeof e.step>"u"))return Math.floor(s/e.step)},[s,e.step]),u=useMemo(()=>{switch(a){case "primary":return "oui-border-primary oui-bg-primary";case "buy":return "oui-border-trade-profit oui-bg-trade-profit";case "sell":return "oui-border-trade-loss oui-bg-trade-loss";case "primaryLight":return "oui-border-primary-light oui-bg-primary-light"}},[a]),c=useMemo(()=>{switch(a){case "primary":return "oui-text-primary";case "buy":return "oui-texttrade-profit";case "sell":return "oui-text-trade-loss";case "primaryLight":return "oui-text-primary-light"}},[a]);return jsx(Fragment,{children:o?.map((m,g)=>{let p=xr(g,0,o.length-1),f=hu(6,p,1),b=r?m.value:g,x=(r?s>=b:(l??0)>=b)&&s>=0&&!e.disabled?u:"";return jsxs(Fragment$1,{children:[jsx("span",{className:cnBase(n,x),style:{left:`calc(${p}% + ${f}px)`}}),!e.disabled&&i&&jsx("span",{"data-testid":`oui-testid-slider-mark-label-${m.label}`,className:cnBase("oui-absolute oui-top-[16px] oui-text-2xs xl:oui-text-xs oui-text-base-contrast-54 oui-cursor-pointer oui-translate-x-[-50%]",l===g&&c),style:{left:`calc(${p}% + ${f}px)`},children:m.label},g)]},g)})})},k2=e=>{let{className:o,min:t,max:r}=e,i=e.value?.[0]??0,n=xr(i,t,r);return jsx("span",{className:o,style:{lineHeight:"19px"},children:e.tipFormatter?.(i,t,r,n)??`${n.toFixed()}%`})},wu=Le.forwardRef((e,o)=>{let t=useMemo(()=>[e.value],[e.value]);return jsx(ea,{...e,value:t,ref:o,onValueChange:typeof e.onValueChange=="function"?r=>{e.onValueChange(r[0]);}:void 0,onValueCommit:typeof e.onValueCommit=="function"?r=>{e.onValueCommit(r[0]);}:void 0})});wu.displayName="SingleSlider";var vu=ea;vu.single=wu;var ta=Le__default.forwardRef((e,o)=>{let{opacity:t=1,viewBox:r="0 0 20 20",...i}=e;return jsx(d,{ref:o,viewBox:r,...i,children:jsx("path",{d:"M10 1.628a8.333 8.333 0 1 0-.001 16.666 8.333 8.333 0 0 0 0-16.666m-2.5 5c.212 0 .435.071.598.234L10 8.762l1.9-1.9a.85.85 0 0 1 .6-.234c.213 0 .436.071.6.234a.86.86 0 0 1 0 1.198l-1.902 1.901 1.901 1.9a.86.86 0 0 1 0 1.2.86.86 0 0 1-1.198 0L10 11.158 8.097 13.06a.86.86 0 0 1-1.198 0 .857.857 0 0 1 0-1.198L8.8 9.96l-1.9-1.9a.857.857 0 0 1 0-1.2.84.84 0 0 1 .6-.233",fill:"#FF447C",fillOpacity:t})})}),ra=Le__default.forwardRef((e,o)=>{let{opacity:t=1,viewBox:r="0 0 20 20",...i}=e;return jsx(d,{ref:o,viewBox:r,...i,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.678 10a8.333 8.333 0 1 1 16.667-.001 8.333 8.333 0 0 1-16.667 0m12.477-3.907c.189-.18.448-.26.697-.26s.507.08.697.26c.38.362.38.969 0 1.33l-6.793 6.473a1.033 1.033 0 0 1-1.394 0l-2.911-2.774a.92.92 0 0 1 0-1.33 1.034 1.034 0 0 1 1.395 0l2.213 2.11z",fill:"#00B49E"})})}),ia=Le__default.forwardRef((e,o)=>{let{opacity:t=1,viewBox:r="0 0 20 20",...i}=e;return jsx(d,{ref:o,viewBox:r,...i,children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 3.333c0-.46.373-.833.833-.833A7.5 7.5 0 1 1 2.5 10a.833.833 0 0 1 1.667 0A5.834 5.834 0 1 0 10 4.167a.833.833 0 0 1-.833-.834",fill:"#4774F6",fillOpacity:t})})});ta.displayName="ToasterErrorIcon";ra.displayName="ToastSuccessIcon";ia.displayName="ToastLoadingIcon";var T2=e=>jsx(Toaster,{toastOptions:{duration:3e3,success:{iconTheme:{primary:"rgba(123, 220, 138, 1)",secondary:"rgba(25, 14, 44, 1)"},style:{background:"rgba(40, 46, 58, 1)"}},loading:{duration:5e3,style:{background:"rgba(40, 46, 58, 1)"}},error:{iconTheme:{primary:"rgba(217, 91, 129, 1)",secondary:"rgba(25, 14, 44, 1)"},style:{background:"rgba(40, 46, 58, 1)"}}},...e,containerClassName:cnBase("!top-[62px] md:!top-[80px] oui-font-semibold",e.className),children:o=>jsx(ToastBar,{toast:o,style:{...o.style,color:"rgba(255, 255, 255, 0.8)",borderRadius:"6px",wordBreak:"break-all",maxWidth:800,boxShadow:"0px 4px 8px 0px rgba(0, 0, 0, 0.36)"},children:({icon:t,message:r})=>{let i=t;return o.type==="error"?i=jsx(ta,{className:"w-[16px] h-[16px] md:w-[24px] md:h-[24px]"}):o.type==="success"?i=jsx(ra,{size:20}):o.type==="loading"&&(i=jsx("div",{className:"oui-animate-rotate-360 oui-rounded-full",children:jsx(ia,{className:"w-[16px] h-[16px] md:w-[24px] md:h-[24px]"})})),jsxs("div",{className:"oui-flex oui-items-center oui-padding-[12px] md:oui-padding-[16px]",children:[i,jsx("div",{className:"oui-text-base oui-px-[2px]",children:r}),jsx("button",{onClick:()=>toast.dismiss(o.id),className:"oui-hidden md:oui-block",children:jsx(Te,{size:16,className:" oui-text-base-contrast-54"})})]})}})});var L2=e=>jsxs(L,{direction:"column",itemAlign:"start",className:cnBase("oui-gap-[2px]",e.classNames?.className),children:[jsx(Q,{size:"base",intensity:80,className:e.classNames?.titleClassName,children:e.title}),(e.subtitle?.length||0)>0&&jsx(Q,{size:"xs",intensity:54,className:e.classNames?.subtitleClassName,children:e.subtitle})]});function ku(e,o){let t=useRef(),r=useRef(o);r.current=o,useEffect(()=>{let i={root:null,rootMargin:"0px",threshold:0},n=a=>{a.forEach(s=>{s.isIntersecting&&r.current?.();});};return t.current=new IntersectionObserver(n,i),()=>{t.current?.disconnect();}},[]),useEffect(()=>{t.current?.observe(e.current);},[]);}var _2=(e,o)=>{let t=useRef(null),r=useRef(null);ku(t,()=>{e.isLoading||e.loadMore?.();});let i=useMemo(()=>Array.isArray(e.dataSource)&&e.dataSource.length<=0,[e.dataSource]),n=useMemo(()=>e.dataSource?i?e.emptyView||jsx(L,{direction:"column",height:"100%",itemAlign:"center",justify:"center",mt:3,children:jsx(tr,{})}):e.dataSource.map((s,l)=>jsx(Le__default.Fragment,{children:e.renderItem(s,l,e.extraData)},l)):null,[i,e.dataSource,e.extraData,e.emptyView]),a=useMemo(()=>(e.dataSource?.length||0)===0||!e.isLoading?null:jsx("div",{className:"oui-flex oui-py-2 oui-justify-center oui-items-center",children:jsx(Re,{})}),[e.isLoading,e.dataSource]);return useImperativeHandle(o,()=>({scroll:s=>{r.current?.scroll({left:s.x,top:s.y,behavior:"smooth"});}})),jsxs("div",{style:e.style,ref:r,className:cn$1("oui-relative oui-min-h-[180px] oui-custom-scrollbar oui-overflow-auto",e.className)({twMerge:true}),children:[jsx("div",{className:cn$1("oui-space-y-3 oui-h-full oui-w-full",i&&"oui-absolute oui-left-0 oui-right-0 oui-top-0 oui-bottom-0",e.contentClassName)({twMerge:true}),children:n}),jsx("div",{ref:t,className:"oui-relative oui-invisible oui-h-[1px] oui-top-[-300px]"}),a]})},E2=forwardRef(_2);var na=Ro.Root,sa=Ro.CollapsibleTrigger,la=e=>jsx(Ro.CollapsibleContent,{...e,className:cnBase(e.className,"data-[state=open]:oui-animate-collapsible-down data-[state=closed]:oui-animate-collapsible-up oui-overflow-hidden")});var ua=createContext({}),Iu=()=>useContext(ua);var Tu=e=>{let{activeKey:o,setActiveKey:t}=Iu(),r=useMemo(()=>typeof e.header=="string"?jsxs("div",{className:cnBase("oui-py-2 oui-border-b oui-border-divider flex items-center oui-group oui-cursor-pointer",e.headerClassName),children:[jsx("div",{className:"oui-flex-1 group-data-[state=open]:oui-font-semibold",children:e.header}),jsx(ChevronDown,{size:16,className:"group-data-[state=open]:oui-rotate-180 oui-transition-transform"})]}):e.header,[e.header,e.headerClassName]);return jsxs(na,{disabled:e.disabled,open:e.itemKey===o,onOpenChange:i=>{t(i?e.itemKey:"");},children:[jsx(sa,{asChild:true,children:r}),jsx(la,{className:"oui-py-3",children:e.children})]})};var Z2=e=>{let[o,t]=useState(e.activeKey??"");return jsx(ua.Provider,{value:{activeKey:o,setActiveKey:t},children:e.children})},Mu=Z2;Mu.panel=Tu;var U2=Mu;var ca=M.Root,pa=M.Trigger,j2=M.Group,da=M.Portal,$2=M.Sub,q2=M.RadioGroup,ct=tv({slots:{content:["oui-z-50","oui-min-w-[8rem]","oui-overflow-hidden","oui-rounded-xl","oui-p-1","oui-bg-base-8","oui-text-base-contrast","oui-shadow-md","oui-border","oui-border-line-6","data-[state=open]:oui-animate-in","data-[state=closed]:oui-animate-out","data-[state=closed]:oui-fade-out-0","data-[state=open]:oui-fade-in-0","data-[state=closed]:oui-zoom-out-95","data-[state=open]:oui-zoom-in-95","data-[side=bottom]:oui-slide-in-from-top-2","data-[side=left]:oui-slide-in-from-right-2","data-[side=right]:oui-slide-in-from-left-2","data-[side=top]:oui-slide-in-from-bottom-2"],item:["oui-relative","oui-flex","oui-cursor-default","oui-select-none","oui-items-center","oui-px-2","oui-py-1.5","oui-text-sm","oui-outline-none","oui-transition-colors","hover:oui-bg-base-5","focus:oui-bg-accent","focus:oui-text-accent-foreground","data-[disabled]:oui-pointer-events-none","data-[disabled]:oui-opacity-50"],label:"oui-px-2 oui-py-1.5 oui-text-sm oui-font-semibold",separator:"-oui-mx-1 oui-my-1 oui-h-px oui-bg-muted",shortcut:"oui-ml-auto oui-text-xs oui-tracking-widest oui-opacity-60"},variants:{size:{xs:{content:"oui-rounded",item:["oui-px-2","oui-py-1.5","oui-h-6","oui-rounded","oui-text-2xs"]},sm:{content:"oui-rounded",item:["oui-px-2","oui-py-1.5","oui-h-6","oui-rounded","oui-text-2xs"]},md:{content:"oui-rounded-md",item:["oui-px-4","oui-py-3","oui-h-6","oui-rounded"]},lg:{content:"oui-rounded-lg",item:["oui-px-4","oui-py-3","oui-h-6","oui-rounded-md"]},xl:{content:"oui-rounded-xl",item:["oui-px-4","oui-py-3","oui-h-10","oui-rounded-lg","oui-text-base"]}},inset:{true:{item:["oui-pl-8"],label:["oui-pl-8"]}}},defaultVariants:{inset:false,size:"lg"}}),hr=Le.forwardRef(({className:e,sideOffset:o=4,size:t,...r},i)=>{let{content:n}=ct({size:t});return jsx(M.Portal,{children:jsx(M.Content,{ref:i,sideOffset:o,className:n({className:e}),...r})})});hr.displayName=M.Content.displayName;var wr=Le.forwardRef(({className:e,inset:o,size:t,...r},i)=>{let{item:n}=ct({size:t});return jsx(M.Item,{ref:i,className:n({className:e,inset:o}),...r})});wr.displayName=M.Item.displayName;var Lu=Le.forwardRef(({className:e,inset:o,...t},r)=>{let{label:i}=ct({inset:o});return jsx(M.Label,{ref:r,className:i({className:e}),...t})});Lu.displayName=M.Label.displayName;var Vu=Le.forwardRef(({className:e,...o},t)=>{let{separator:r}=ct();return jsx(M.Separator,{ref:t,className:r({className:e}),...o})});Vu.displayName=M.Separator.displayName;var zu=({className:e,...o})=>{let{shortcut:t}=ct();return jsx("span",{className:t({className:e}),...o})};zu.displayName="DropdownMenuShortcut";var Q2=e=>{let{currentValue:o,menu:t,render:r,size:i,children:n,...a}=e,s=useMemo(()=>typeof e.render=="function"?e.menu.map((l,u)=>e.render?.(l,u)):e.menu.map(l=>jsx(wr,{textValue:l.value,onSelect:u=>{e.onSelect?.(l);},size:i,"data-testid":l.testId,children:jsxs(L,{justify:"between",width:"100%",children:[l.label,o==l.value&&jsx(W,{width:4,height:4,gradient:"primary",r:"full"})]})},l.value)),[e.menu,e.render,o]);return jsxs(ca,{children:[jsx(pa,{asChild:true,children:n}),jsx(da,{children:jsx(hr,{onCloseAutoFocus:l=>{l.preventDefault();},size:i,...a,children:s})})]})};var og=memo(e=>{let{value:o,children:t,left:r}=e;return useMemo(()=>!!(typeof o=="function"?o():o),[o])?t:r});var tg=e=>{let{value:o,case:t,default:r,...i}=e,n=typeof o=="function"?o():o;if(typeof t=="function"){let s=t(n);return s?jsx(Slot,{children:s,...i}):typeof r>"u"?void 0:jsx(Slot,{children:r,...i})}let a=Object.keys(t);for(;a.length;){let s=a.pop();if(s===n.toString())return jsx(Slot,{children:t[s],...i})}return jsx(Slot,{children:r,...i})};var rg=(e,o)=>typeof e>"u"||e===null?o??void 0:e.charAt(0).toUpperCase()+e.slice(1);var Bu={};Cr(Bu,{default:()=>ag});var ag={};
33
33
 
34
- export { Ai as ActionSheet, Tp as AffiliateIcon, _i as AlertDialog, Un as ArrowDownShortIcon, kn as ArrowDownSquareFillIcon, yn as ArrowDownUpIcon, vn as ArrowLeftRightIcon, Rn as ArrowLeftRightSquareFill, Yn as ArrowLeftShortIcon, Xn as ArrowRightShortIcon, Zn as ArrowUpShortIcon, Cn as ArrowUpSquareFillIcon, xe as Avatar, e1 as Badge, W as Box, $e as Button, lo as Calendar, oo as CalendarIcon, Xa as CalendarMinusIcon, tu as Card, lr as CardBase, pr as CardContent, Z0 as CardDescription, dr as CardFooter, ur as CardHeader, cr as CardTitle, oe as CaretDownIcon, Wa as CaretLeftIcon, Ua as CaretRightIcon, yt as CaretUpIcon, Ar as ChainIcon, Fa as CheckIcon, sn as CheckSquareEmptyIcon, mi as Checkbox, tn as CheckedCircleFillIcon, an as CheckedSquareFillIcon, wt as ChevronDownIcon, Je as ChevronLeftIcon, eo as ChevronRightIcon, vt as ChevronUpIcon, mn as CircleOutlinedIcon, on as CloseCircleFillIcon, Te as CloseIcon, Ja as CloseSquareFillIcon, Pg as Collapse, aa as Collapsible, sa as CollapsibleContent, na as CollapsibleTrigger, Bl as ConfirmDialog, Pt as CopyIcon, w0 as DataFilter, X1 as DataTable, q0 as DatePicker, rt as Dialog, it as DialogBody, Em as DialogClose, xo as DialogContent, wo as DialogDescription, Jt as DialogFooter, bo as DialogHeader, Di as DialogOverlay, Tl as DialogPortal, ho as DialogTitle, zi as DialogTrigger, de as Divider, br as DropdownMenuContent, Rg as DropdownMenuGroup, hr as DropdownMenuItem, vu as DropdownMenuLabel, pa as DropdownMenuPortal, Ng as DropdownMenuRadioGroup, ua as DropdownMenuRoot, yu as DropdownMenuSeparator, Cu as DropdownMenuShortcut, Ig as DropdownMenuSub, ca as DropdownMenuTrigger, Ba as EVMAvatar, Tn as EditIcon, Vg as Either, or as EmptyDataState, pp as EsOrderlyIcon, bn as ExclamationFillIcon, Xt as ExtensionPositionEnum, wi as ExtensionSlot, Ln as EyeCloseIcon, zn as EyeIcon, In as FeeTierIcon, z as Flex, Sa as Grid, $0 as HoverCard, au as HoverCardContent, X0 as HoverCardRoot, j0 as HoverCardTrigger, Wp as Icon, mp as InfoCircleIcon, Fo as Input, ro as InputAdditional, Ep as LeaderboardActiveIcon, Fp as LeaderboardInactiveIcon, fg as ListView, Uo as LocaleContext, S1 as LocaleProvider, Ls as Logo, Op as MarketsActiveIcon, Hp as MarketsInactiveIcon, Bg as Match, Ge as ModalContext, Jo as ModalIdContext, Cm as ModalProvider, ku as OUITailwind, cp as OrderlyIcon, B0 as OrderlyThemeProvider, ll as PaginationItems, Hi as Picker, un as PlusIcon, Lo as Popover, Kr as PopoverAnchor, Bo as PopoverContent, Tt as PopoverRoot, ps as PopoverTrigger, zp as PortfolioActiveIcon, Dp as PortfolioInactiveIcon, wn as QuestionFillIcon, pn as ReduceIcon, En as RefreshIcon, io as ScrollArea, ti as ScrollBar, qi as ScrollIndicator, Ve as Select, _o as SelectItem, An as ServerFillIcon, Ka as SettingFillIcon, $a as SettingIcon, Vn as ShareIcon, Ko as Sheet, sm as SheetClose, po as SheetContent, yl as SheetDescription, vl as SheetFooter, Kt as SheetHeader, Si as SheetOverlay, wl as SheetPortal, Qt as SheetTitle, ki as SheetTrigger, Pe as SimpleDialog, at as SimpleDialogFooter, Mg as SimpleDropdownMenu, ot as SimpleSheet, uu as Slider, Hn as SortingAscIcon, Wn as SortingDescIcon, $n as SortingIcon, Re as Spinner, fn as SquareOutlinedIcon, Va as Statistic, Br as StatisticLabel, gi as Switch, ou as TabPanel, Wl as TableFeatures, eu as Tabs, Zi as TabsBase, ir as TabsContent, tr as TabsList, rr as TabsTrigger, Q as Text, pi as TextField, Sr as ThrottledButton, ug as ToastTile, sg as Toaster, Ne as TokenIcon, ys as Tooltip, _t as TooltipArrow, Ho as TooltipContent, Lt as TooltipPortal, Md as TooltipProvider, si as TooltipRoot, li as TooltipTrigger, Np as TraderMobileIcon, Bp as TradingActiveIcon, Lp as TradingInactiveIcon, Mp as TradingRewardsIcon, Jm as TriggerDialog, fp as WalletIcon, Cr as boxVariants, bt as buttonVariants, Lg as capitalizeFirstLetter, fr as convertValueToPercentage, Tr as formatAddress, es as gradientTextVariants, ci as inputFormatter, Yo as installExtension, vo as modal, Nr as parseNumber, t0 as registerSimpleDialog, i0 as registerSimpleSheet, oi as scrollAreaVariants, V1 as setExtensionBuilder, Vr as statisticVariants, Ia as textVariants, h as tv, H as useLocale, Bi as useMediaQuery, X as useModal, Um as useObserverElement, Yi as useOrderlyTheme, k0 as usePagination, nt as useScreen };
34
+ export { Ai as ActionSheet, W1 as AffiliateIcon, Ei as AlertDialog, Xn as ArrowDownShortIcon, Pn as ArrowDownSquareFillIcon, vn as ArrowDownUpIcon, wn as ArrowLeftRightIcon, Sn as ArrowLeftRightSquareFill, jn as ArrowLeftShortIcon, $n as ArrowRightShortIcon, Yn as ArrowUpShortIcon, yn as ArrowUpSquareFillIcon, m1 as AssetIcon, xe as Avatar, Pd as Badge, f1 as BarChartIcon, x1 as BattleIcon, W as Box, $e as Button, lo as Calendar, oo as CalendarIcon, ja as CalendarMinusIcon, mu as Card, ur as CardBase, dr as CardContent, d2 as CardDescription, mr as CardFooter, cr as CardHeader, pr as CardTitle, oe as CaretDownIcon, Za as CaretLeftIcon, Ya as CaretRightIcon, yt as CaretUpIcon, Ar as ChainIcon, Ha as CheckIcon, nn as CheckSquareEmptyIcon, gi as Checkbox, on as CheckedCircleFillIcon, rn as CheckedSquareFillIcon, wt as ChevronDownIcon, Je as ChevronLeftIcon, eo as ChevronRightIcon, vt as ChevronUpIcon, dn as CircleOutlinedIcon, en as CloseCircleFillIcon, Te as CloseIcon, Qa as CloseSquareFillIcon, U2 as Collapse, na as Collapsible, la as CollapsibleContent, sa as CollapsibleTrigger, Yl as ConfirmDialog, Pt as CopyIcon, Gm as DataFilter, x0 as DataTable, h2 as DatePicker, rt as Dialog, it as DialogBody, nm as DialogClose, xo as DialogContent, wo as DialogDescription, or as DialogFooter, bo as DialogHeader, zi as DialogOverlay, Ol as DialogPortal, ho as DialogTitle, Vi as DialogTrigger, de as Divider, hr as DropdownMenuContent, j2 as DropdownMenuGroup, wr as DropdownMenuItem, Lu as DropdownMenuLabel, da as DropdownMenuPortal, q2 as DropdownMenuRadioGroup, ca as DropdownMenuRoot, Vu as DropdownMenuSeparator, zu as DropdownMenuShortcut, $2 as DropdownMenuSub, pa as DropdownMenuTrigger, Ba as EVMAvatar, Ln as EditIcon, og as Either, tr as EmptyDataState, ts as EmptyStateIcon, S1 as EsOrderlyIcon, xn as ExclamationFillIcon, $t as ExtensionPositionEnum, vi as ExtensionSlot, En as EyeCloseIcon, zn as EyeIcon, Tn as FeeTierIcon, L as Flex, Ra as Grid, b2 as HoverCard, xu as HoverCardContent, f2 as HoverCardRoot, x2 as HoverCardTrigger, dp as Icon, I1 as InfoCircleIcon, Fo as Input, ro as InputAdditional, J1 as LeaderboardActiveIcon, ep as LeaderboardInactiveIcon, E2 as ListView, Uo as LocaleContext, jd as LocaleProvider, Xs as Logo, tp as MarketsActiveIcon, rp as MarketsInactiveIcon, tg as Match, Ge as ModalContext, Jo as ModalIdContext, U0 as ModalProvider, Bu as OUITailwind, k1 as OrderlyIcon, t2 as OrderlyThemeProvider, vl as PaginationItems, lp as PeopleIcon, up as PersonIcon, Gi as Picker, ln as PlusIcon, Bo as Popover, Qr as PopoverAnchor, Do as PopoverContent, Lt as PopoverRoot, Ps as PopoverTrigger, U1 as PortfolioActiveIcon, Y1 as PortfolioInactiveIcon, hn as QuestionFillIcon, cn as ReduceIcon, Hn as RefreshIcon, io as ScrollArea, ri as ScrollBar, Ki as ScrollIndicator, ze as Select, _o as SelectItem, On as ServerFillIcon, us as SettingFillIcon, qa as SettingIcon, Bn as ShareIcon, Ko as Sheet, M0 as SheetClose, po as SheetContent, zl as SheetDescription, Vl as SheetFooter, Jt as SheetHeader, Ri as SheetOverlay, Ll as SheetPortal, er as SheetTitle, Si as SheetTrigger, Pe as SimpleDialog, at as SimpleDialogFooter, Q2 as SimpleDropdownMenu, ot as SimpleSheet, vu as Slider, Wn as SortingAscIcon, Un as SortingDescIcon, Kn as SortingIcon, Re as Spinner, gn as SquareOutlinedIcon, Da as Statistic, Br as StatisticLabel, np as SwapHorizIcon, fi as Switch, du as TabPanel, eu as TableFeatures, pu as Tabs, Ui as TabsBase, ar as TabsContent, rr as TabsList, ir as TabsTrigger, Q as Text, di as TextField, Rr as ThrottledButton, L2 as ToastTile, T2 as Toaster, Ne as TokenIcon, zs as Tooltip, Ft as TooltipArrow, Oo as TooltipContent, Et as TooltipPortal, Jp as TooltipProvider, li as TooltipRoot, ui as TooltipTrigger, G1 as TraderMobileIcon, j1 as TradingActiveIcon, $1 as TradingIcon, K1 as TradingInactiveIcon, pp as TradingLeftNavIcon, Z1 as TradingRewardsIcon, Cm as TriggerDialog, as as VectorIcon, T1 as WalletIcon, Pr as boxVariants, bt as buttonVariants, rg as capitalizeFirstLetter, xr as convertValueToPercentage, Mr as formatAddress, ds as gradientTextVariants, pi as inputFormatter, Yo as installExtension, vo as modal, Tr as parseNumber, Sm as registerSimpleDialog, Im as registerSimpleSheet, ti as scrollAreaVariants, t0 as setExtensionBuilder, Dr as statisticVariants, Na as textVariants, h as tv, O as useLocale, Bi as useMediaQuery, X as useModal, gm as useObserverElement, Xi as useOrderlyTheme, Xm as usePagination, nt as useScreen };
35
35
  //# sourceMappingURL=out.js.map
36
36
  //# sourceMappingURL=index.mjs.map