PageSourceSearch

https://www.tapbit.com/_next_app/price/0.1.227/_next/static/chunks…/markets/page-9226f60944d042a9.js

js tapbit.com collected 2026-10-03 21:39:43 UTC 79,375 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="062c6b7f-a1ad-4394-8653-5a45252054ad",e._sentryDebugIdIdentifier="sentry-dbid-062c6b7f-a1ad-4394-8653-5a45252054ad")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[723,3603],{1647:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(38113);let a=function(e){return function(t,r){var a=(0,n.useRef)(!1);e(function(){return function(){a.current=!1}},[]),e(function(){if(a.current)return t();a.current=!0},r)}}(n.useEffect)},3529:(e,t,r)=>{"use strict";r.d(t,{A2:()=>c,IK:()=>o,Qx:()=>i,j:()=>m,oA:()=>u,zi:()=>d});let n="-SWAP",a="USDT",l="XUSDT",s=/[-/_]/;function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",r=null==e?void 0:e.toUpperCase();if(null==r?void 0:r.endsWith("".concat(t).concat(a))){let e=a.length+t.length;return r.slice(0,-e)+n}return console.warn("transformUSDT2SWAP input a invalid symbol",e),""}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=null==e?void 0:e.toUpperCase();if(null==r?void 0:r.endsWith(l)){let e=l.length+t.length;return r.slice(0,-e)+n}return console.warn("transformXUSDT2SWAP input a invalid symbol",e),""}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=null==e?void 0:e.toUpperCase();return(null==r?void 0:r.endsWith(n))?r.slice(0,-n.length)+t+a:(console.warn("transformSWAP2USDT input a invalid symbol",e),"")}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=null==e?void 0:e.toUpperCase();return(null==r?void 0:r.endsWith(n))?r.slice(0,-n.length)+t+l:(console.warn("transformSWAP2XUSDT input a invalid symbol",e),"")}function d(e){let t=null==e?void 0:e.trim().toUpperCase();if(!t)return"";let[r="",n=""]=t.split(s);return r&&n?"".concat(r).concat("-").concat(n):(console.warn("normalizeSpotPathSymbol input a invalid symbol",e),"")}function m(e,t){let r=d(e);if(!r)return"";let[n="",a=""]=r.split("-");return"ws"===t?"".concat(n).concat(a):"".concat(n,"/").concat(a)}},4246:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M957.056 338.624C951.84 327.296 940.512 320 928 320H96c-12.512 0-23.84 7.296-29.088 18.624-5.216 11.36-3.328 24.704 4.768 34.208l416 485.344c6.08 7.104 14.944 11.2 24.288 11.2s18.208-4.096 24.288-11.2l416-485.344c8.192-9.504 10.016-22.848 4.8-34.208z"})}));s.displayName="TriangleDownIcon"},5885:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M952.32 715.2l-416-485.376c-12.16-14.176-36.448-14.176-48.608 0l-416 485.376c-8.128 9.472-9.984 22.848-4.768 34.176C72.16 760.704 83.488 768 96 768h832c12.512 0 23.84-7.296 29.056-18.624s3.392-24.704-4.736-34.176z"})}));s.displayName="TriangleUpIcon"},12642:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(79237),a=r(53678),l=r(90477);function s(e){let{description:t,className:r,imageUrl:s,imageWidth:i,imageHeight:o,size:c="m",descriptionClassName:u}=e;return(0,n.jsxs)(a.Sv,{className:r,children:[(0,n.jsx)(a.HY,{size:c,children:(0,n.jsx)("span",{"aria-hidden":"true",className:(0,l.Q)("block h-20 w-20","bg-contain bg-center bg-no-repeat",!s&&"bg-[url('https://cdn.tapbit.mobi/next-web/common/no-record.png')]"),style:{backgroundImage:s?'url("'.concat(s,'")'):void 0,width:i,height:o}})}),(0,n.jsx)(a.Ou,{className:u,children:t})]})}},12733:(e,t,r)=>{"use strict";r.d(t,{CR:()=>h,bZ:()=>v,h$:()=>p,hs:()=>b});var n=r(47387),a=r(26212),l=r(65568),s=r(28824),i=r(38113),o=r(41809),c=r(91474),u=r(76656),d=r(17883);let m="contract-usdt-activeTab";var p=function(e){return e.BTC="BTC",e.USDT="USDT",e.XUSDT="XUSDT",e}({});let f=(0,d.AG)(),x=n.hv.get(m)||"2",g="USDT",v=(0,o.v)()((0,c.Zr)((e,t)=>({...f,contractType:g,activeTab:x,fetchContractTier:async r=>{let l=t();if(!l.loading){e({loading:!0,error:void 0});try{let t=await (0,s.LA)(r);if(t&&200===t.code){let s=(0,d.z6)(t.data),i={...l,...s,loaded:!0,loading:!1,lastUpdatedAt:Date.now(),locale:null==r?void 0:r.locale,error:void 0};e(i),a.ep.setConfig(i.symbolsConfig),n.hv.set({siteConfig:i.siteConfig});return}e({loading:!1,error:"Unexpected response code: ".concat(null==t?void 0:t.code)})}catch(t){e({loading:!1,error:t instanceof Error?t.message:"Unknown error"})}}},ensureContractTier:async e=>{let r=t();if(r.locale!==(null==e?void 0:e.locale))return void await r.fetchContractTier(e);r.lastUpdatedAt&&Date.now()-r.lastUpdatedAt<6e4||await r.fetchContractTier(e)},setContractType:t=>{e({contractType:t})}
1,setActiveTab:t=>{e({activeTab:t}),n.hv.set({[m]:t})},reset:()=>{n.hv.set({[m]:"2"}),e({...(0,d.AG)(),contractType:g,activeTab:"2"})}}),{name:"contract-tier-configs-futures-storage",partialize:e=>({contractType:e.contractType,activeTab:e.activeTab,loaded:e.loaded,hash:e.hash,siteConfig:e.siteConfig,symbolsConfig:e.symbolsConfig,symbolsConfigBySymbol:e.symbolsConfigBySymbol,contractGroupList:e.contractGroupList,lastUpdatedAt:e.lastUpdatedAt,locale:e.locale,error:e.error})}));function h(e){var t;let r=null==(t=v.getState().symbolsConfigBySymbol[e])?void 0:t.precision;return"number"==typeof r?r:2}let b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,{ensureContractTier:r}=v((0,u.k)(e=>({ensureContractTier:e.ensureContractTier})));(0,i.useEffect)(()=>{if(0===t)return void r(e);(0,l.y)(t).then(()=>{r(e)}).catch(()=>{})},[r,e,t])}},13603:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tabs:()=>g,TabsContent:()=>w,TabsList:()=>h,TabsTrigger:()=>y,getTabsAutoCenterScrollDelta:()=>x});var n=r(79237),a=r(90477),l=r(4487),s=r(61877),i=r.n(s),o=r(77222),c=r(38113),u=r(76562),d=r(82586);let m=(0,c.createContext)(void 0),p=()=>{let e=(0,c.useContext)(m);if(!e)throw Error("Tabs components must be used within a Tabs provider");return e},f=e=>{var t;let r=null!=(t=null==e?void 0:e.split(/[?#]/)[0])?t:"";return r?"/"===r?"/":r.replace(/\/+$/,"")||"/":""};function x(e){return e.tabLeft+e.tabWidth/2-(e.viewportLeft+e.viewportWidth/2)}let g=e=>{let{value:t,defaultValue:r,onValueChange:l,children:s,className:i,variant:u="card",size:d="m",showScrollBar:p=!1,showUnderline:f,isLink:x=!1}=e,[g,v]=(0,c.useState)(r||""),h=(0,o.usePathname)(),b=void 0!==t,y=b||void 0!==r,w=b?t:g,N=(0,c.useCallback)(e=>{b||v(e),null==l||l(e)},[b,l]);return(0,n.jsx)(m.Provider,{value:{value:w,onValueChange:N,variant:u,size:d,showScrollBar:p,showUnderline:f,isLink:x,hasExplicitValue:y,currentPathname:h},children:(0,n.jsx)("div",{className:(0,a.Q)("flex flex-col max-md:w-full",i),children:s})})},v=(0,l.F)(["inline-flex","items-center"],{variants:{variant:{card:["bg-bg5","p-s1","rounded-r2","gap-0","h-10"],text:["gap-s6"],capsule:["gap-0","p-0"]},size:{l:[],m:[],s:[]}},compoundVariants:[{variant:"capsule",size:"l",class:["h-11"]},{variant:"capsule",size:"m",class:["h-10"]},{variant:"capsule",size:"s",class:["h-9"]},{variant:"text",size:"l",class:["h-11","md:h-12"]},{variant:"text",size:"m",class:["h-10"]},{variant:"text",size:"s",class:["h-9"]}],defaultVariants:{variant:"card",size:"m"}}),h=(0,c.forwardRef)((e,t)=>{let{children:r,className:l,scrollGradientClass:s,scrollArrowBgClass:i,underlineClassName:o}=e,{variant:m,size:f,value:g,showScrollBar:h,showUnderline:b}=p(),y="text"===m||"capsule"===m,w=null!=b?b:"text"===m&&"l"!==f,N="card"===m,j=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),k=(0,c.useRef)(null),T=(0,c.useRef)(null),A=(0,c.useRef)(null),E=(0,c.useRef)(!1),z=(0,c.useRef)(null),R=(0,c.useRef)(null),L=(0,c.useRef)(!1),M=(0,c.useRef)(0),[P,_]=(0,c.useState)(!1),[I,D]=(0,c.useState)(!1),[B,U]=(0,c.useState)(!1),[F,V]=(0,c.useState)(!0),[Q,O]=(0,c.useState)(null),W=(0,c.useCallback)(()=>{var e,t;return null!=(t=null==(e=C.current)?void 0:e.querySelector('[role="tab"][data-state="active"]'))?t:null},[]),K=(0,c.useCallback)(e=>{C.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),q=(0,c.useCallback)(()=>{var e,t,r;null!==R.current&&((null!=(r=null==(t=j.current)||null==(e=t.ownerDocument)?void 0:e.defaultView)?r:window).cancelAnimationFrame(R.current),R.current=null)},[]),G=(0,c.useCallback)(e=>{var t,r,n,a,l;let s=j.current;if(!s||.05>Math.abs(e))return;let i=null!=(a=null==(t=s.ownerDocument)?void 0:t.defaultView)?a:window;q();let o=e,c=null!=(l=null==(n=i.performance)||null==(r=n.now)?void 0:r.call(n))?l:Date.now(),u=e=>{let t=Math.min(32,Math.max(1,e-c));if(c=e,.02>Math.abs(o)){R.current=null;return}let r=s.scrollLeft;if(s.scrollLeft+=o*t,.5>Math.abs(s.scrollLeft-r)){R.current=null;return}o*=Math.pow(.92,t/16),R.current=i.requestAnimationFrame(u)};R.current=i.requestAnimationFrame(u)},[q]),H=(0,c.useCallback)(e=>{let t=A.current;t&&(void 0===e||t.pointerId===e)&&(t.hasDragged&&(M.current=Date.now()+120,"touch"===t.pointerType&&G(t.scrollVelocity)),A.current=null,U(!1))},[G]),X=(0,c.useCallback)(()=>{var e,t,r;null!==z.current&&((null!=(r=null==(t=j.current)||null==(e=t.ownerDocument)?void 0:e.defaultView)?r:window).clearTimeout(z.current),z.current=null)},[]),Y=(0,c.useCallback)(()=>{X(),V(!0)},[X]),$=(0,c.useCallback)(function(){var e,t,r;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:80,a=null!=(r=null==(t=j.current)||null==(e=t.ownerDocument)?void 0:e.defaultView)?r:window;X(),z.current=a.setTimeout(()=>{z.current=null,V(!1)},n)},[X]),Z=(0,c.useCallback)(()=>
1{if(!y||!j.current){_(!1),D(!1);return}let{scrollLeft:e,scrollWidth:t,clientWidth:r}=j.current,n=t-r;_(n>1&&e>1),D(n>1&&e<n-1)},[y]),J=(0,c.useCallback)(()=>{if(!w||!C.current||!S.current){E.current=!1,Y(),O(null);return}if(L.current)return;let e=W();if(!e){E.current=!1,Y(),O(null);return}let t=!1;if(j.current){var r,n,a,l;let s=j.current.getBoundingClientRect(),i=e.getBoundingClientRect();if(!(i.right>s.left&&i.left<s.right)){E.current=!1,Y(),O(null);return}let o=null!=(a=null==(r=k.current)?void 0:r.getBoundingClientRect().width)?a:0,c=null!=(l=null==(n=T.current)?void 0:n.getBoundingClientRect().width)?l:0,u=s.left+o+1,d=s.right-c-1;t=i.left<u||i.right>d}let s=S.current.getBoundingClientRect(),i=e.getBoundingClientRect();if((!E.current||t)&&Y(),O({width:i.width,transform:"translateX(".concat(i.left-s.left,"px)")}),!E.current){E.current=!0,$(0);return}E.current=!0},[W,Y,w,$]);(0,c.useLayoutEffect)(()=>{Z(),J()},[Z,J,r,f,g,m]),(0,c.useEffect)(()=>()=>{q(),X()},[q,X]),(0,c.useEffect)(()=>{if(!y||!j.current)return;let e=j.current,t=()=>{var t,r;let n=null!=(r=null==(t=e.ownerDocument)?void 0:t.defaultView)?r:window;X(),z.current=n.setTimeout(()=>{z.current=null,L.current&&(L.current=!1,J())},80)},r=()=>{if(Y(),Z(),L.current)return void t();J(),$()};if(e.addEventListener("scroll",r,{passive:!0}),"undefined"!=typeof ResizeObserver){let n=new ResizeObserver(()=>{if(Y(),Z(),L.current)return void t();J(),$()});return n.observe(e),()=>{e.removeEventListener("scroll",r),n.disconnect()}}return()=>{e.removeEventListener("scroll",r)}},[X,y,Y,$,Z,J]),(0,c.useEffect)(()=>{var e,t,r;if(!y||!j.current)return;let n=j.current,a=null!=(r=null==(e=n.ownerDocument)?void 0:e.defaultView)?r:window,l=(null==(t=document)?void 0:t.dir)==="rtl"?-1:1,s=e=>{("mouse"!==e.pointerType||0===e.button)&&!1!==e.isPrimary&&(n.scrollWidth<=n.clientWidth+1||(q(),A.current={pointerId:e.pointerId,pointerType:e.pointerType,startX:e.clientX,startY:e.clientY,startScrollLeft:n.scrollLeft,hasDragged:!1,lastScrollLeft:n.scrollLeft,lastTimestamp:e.timeStamp||Date.now(),scrollVelocity:0},M.current=0))},i=e=>{let t=A.current;if(!t||t.pointerId!==e.pointerId)return;let r=e.clientX-t.startX,a=e.clientY-t.startY;if(!t.hasDragged&&6>Math.abs(r)&&6>Math.abs(a))return;if(!t.hasDragged){if(Math.abs(a)>Math.abs(r)){A.current=null;return}t.hasDragged=!0,U(!0)}let s=t.startScrollLeft-r*l;e.preventDefault(),n.scrollLeft=s;let i=e.timeStamp||Date.now(),o=Math.max(1,i-t.lastTimestamp);t.scrollVelocity=(n.scrollLeft-t.lastScrollLeft)/o,t.lastScrollLeft=n.scrollLeft,t.lastTimestamp=i},o=e=>{H(e.pointerId)},c=e=>{H(e.pointerId)};return n.addEventListener("pointerdown",s),a.addEventListener("pointermove",i),a.addEventListener("pointerup",o),a.addEventListener("pointercancel",c),()=>{n.removeEventListener("pointerdown",s),a.removeEventListener("pointermove",i),a.removeEventListener("pointerup",o),a.removeEventListener("pointercancel",c),H()}},[q,H,y]),(0,c.useEffect)(()=>{var e,t,r,n;if(!y||!j.current||!C.current)return;let a=j.current;if(a.scrollWidth<=a.clientWidth+1)return;let l=W();if(!l)return;let s=a.getBoundingClientRect(),i=l.getBoundingClientRect(),o=null!=(r=null==(e=k.current)?void 0:e.getBoundingClientRect().width)?r:0,c=null!=(n=null==(t=T.current)?void 0:t.getBoundingClientRect().width)?n:0,u=s.left+o+1,d=s.right-c-1;(i.left<u||i.right>d)&&(L.current=!0,E.current=!1,Y(),O(null),a.scrollBy({left:x({tabLeft:i.left,tabWidth:i.width,viewportLeft:s.left,viewportWidth:s.width}),behavior:"smooth"}))},[W,y,Y,g]);let ee=(0,c.useMemo)(()=>y?"text"===m?{gradientWidth:"s"===f?"w-[24px]":"w-[36px]",iconSize:"s"===f?"size-3":"size-4",offset:"bottom-0"}:{gradientWidth:"s"===f?"w-[24px]":"m"===f?"w-[28px]":"w-[36px]",iconSize:"s"===f?"size-3":"size-4",offset:"bottom-0"}:null,[y,f,m]),et=(0,c.useCallback)(e=>{var t;if(!j.current)return;let r=(null==(t=document)?void 0:t.dir)==="rtl"?-1:1;j.current.scrollBy({left:r*e*j.current.clientWidth*.6,behavior:"smooth"})},[]),er=(0,c.useCallback)(()=>{et(1)},[et]),en=(0,c.useCallback)(()=>{et(-1)},[et]),ea=(0,c.useCallback)(e=>{Date.now()>M.current||(e.preventDefault(),e.stopPropagation(),M.current=0)},[]),el=(0,n.jsx)("div",{ref:K,role:"tablist",onClickCapture:ea,className:(0,a.Q)(v({variant:m,size:f}),N&&"max-md:w-full max-md:[&>[role=tab]]:flex-1",l),children:r});if(!y||!ee)return el;let es=(0,a.Q)("relative max-w-full min-w-0 overflow-hidden","capsule"===m?"inline-block":"w-full",w&&(0,a.Q)("border-b border-l1",o)),ei=(0,n.jsx)(d.ScrollArea,{orientation:"horizontal",showScrollBar:h,viewportRef:j,viewportClassName:(0,a.Q)("max-w-full min-w-0 overflow-x-auto overflow-y-hidden","text"===m&&"w-full","touch-pan-y","[-webkit-overflow-scrolling:touch]",(P||I)&&"cursor-grab",B&&"cursor-grabbing select-none"),className:(0,a.Q)("max-w-full min-w-0","text"===m&&"w-full"),children:el});return(0,n.jsxs)("div",{ref:S,className:es,children:[ei,w&&Q&&(0,n.jsx)("span",{"aria-hidden":"true",className:(0,a.Q)("bg-t1 absolute bottom-0 left-0 h-px",!F&&"transition-transform duration-200"),style:Q}),P&&(0,n.jsxs)("div",{ref:k,className:(0,a.Q)("pointer-events-none absolute top-0 left-0 flex h-full items-center justify-start",ee.offset),children:[(0,n.jsx)("button",{type:"button","aria-label":"Scroll tabs",className:(0,a.Q)("bg-bg1 gap-s1 pointer-events-auto flex h-full shrink-0 items-center justify-start px-0",i),onClick:en,children:(0,n.jsx)(u.Y,{className:(0,a.Q)(ee.iconSize,"text-t3 rotate-180 curs
1or-pointer rtl:rotate-0")})}),(0,n.jsx)("div",{"aria-hidden":"true",className:(0,a.Q)("h-full shrink-0 bg-gradient-to-l from-transparent",s||"to-bg1",ee.gradientWidth)})]}),I&&(0,n.jsxs)("div",{ref:T,className:(0,a.Q)("pointer-events-none absolute top-0 right-0 flex h-full items-center justify-end",ee.offset),children:[(0,n.jsx)("div",{"aria-hidden":"true",className:(0,a.Q)("h-full shrink-0 bg-gradient-to-r from-transparent",s||"to-bg1",ee.gradientWidth)}),(0,n.jsx)("button",{type:"button","aria-label":"Scroll tabs",className:(0,a.Q)("bg-bg1 gap-s1 pointer-events-auto flex h-full shrink-0 items-center justify-end px-0",i),onClick:er,children:(0,n.jsx)(u.Y,{className:(0,a.Q)(ee.iconSize,"text-t3 cursor-pointer rtl:rotate-180")})})]})]})});h.displayName="TabsList";let b=(0,l.F)(["inline-flex","items-center","justify-center","transition-all","duration-200","cursor-pointer","whitespace-nowrap","disabled:pointer-events-none","disabled:text-t5","relative","outline-none","focus-visible:ring-2","focus-visible:ring-offset-2"],{variants:{variant:{card:["px-s5","h-8","rounded-r1"],text:["px-0","rounded-r1"],capsule:["rounded-full"]},size:{l:[],m:[],s:[]},selected:{true:"",false:""}},compoundVariants:[{variant:"card",selected:!0,class:["bg-bg3","text-t1","text-tm14"]},{variant:"card",selected:!1,class:["text-t3","text-mm14"]},{variant:"text",size:"l",class:["h-11","md:h-12","py-[10px]"]},{variant:"text",size:"m",class:["h-10","py-[11px]"]},{variant:"text",size:"s",class:["h-9","py-[10px]"]},{variant:"text",size:"l",selected:!0,class:["text-t1","text-tm20"]},{variant:"text",size:"l",selected:!1,class:["text-t3","text-mm20"]},{variant:"text",size:"m",selected:!0,class:["text-t1","text-tm16"]},{variant:"text",size:"m",selected:!1,class:["text-t3","text-mm16"]},{variant:"text",size:"s",selected:!0,class:["text-t1","md:text-t14","text-t12"]},{variant:"text",size:"s",selected:!1,class:["text-t3","md:text-b14","text-c12"]},{variant:"capsule",size:"l",class:["h-11","px-[20px]"]},{variant:"capsule",size:"m",class:["h-10","px-s4"]},{variant:"capsule",size:"s",class:["h-9","px-s3"]},{variant:"capsule",selected:!0,size:"l",class:["bg-bg2","text-t1","text-t16"]},{variant:"capsule",selected:!1,size:"l",class:["text-t3","text-b16"]},{variant:"capsule",selected:!0,size:"m",class:["bg-bg2","text-t1","text-tm14"]},{variant:"capsule",selected:!1,size:"m",class:["text-t3","text-mm14"]},{variant:"capsule",size:"s",selected:!0,class:["bg-bg2","text-t1","text-tm12"]},{variant:"capsule",size:"s",selected:!1,class:["text-t3","text-mm12"]}],defaultVariants:{variant:"card",selected:!1,size:"m"}}),y=(0,c.forwardRef)((e,t)=>{let{value:r,children:l,className:s,disabled:o=!1,href:c,replace:u,scroll:d,prefetch:m,locale:x,target:g,rel:v,onClick:h}=e,{value:y,onValueChange:w,variant:N,size:j,isLink:C,hasExplicitValue:S,currentPathname:k}=p(),T=C&&!S&&(e=>{if(!e)return"";if("string"==typeof e){try{if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e))return f(new URL(e).pathname)}catch(e){return""}return f(e)}return f("pathname"in e?e.pathname:"")})(c)===f(k),A=y===r||T,E=(0,a.Q)(b({variant:N,size:j,selected:A}),o&&"pointer-events-none text-t5",s);return C&&c?(0,n.jsx)(i(),{ref:t,href:c,role:"tab","aria-selected":A,"aria-controls":"tabpanel-".concat(r),"aria-disabled":o||void 0,"data-state":A?"active":"inactive",tabIndex:o?-1:void 0,replace:u,scroll:d,prefetch:m||!1,locale:x,target:g,rel:v,onClick:e=>{if(o){e.preventDefault(),e.stopPropagation();return}null==h||h(e)},className:E,children:l}):(0,n.jsx)("button",{ref:t,type:"button",role:"tab","aria-selected":A,"aria-controls":"tabpanel-".concat(r),"data-state":A?"active":"inactive",disabled:o,onClick:e=>{null==h||h(e),!e.defaultPrevented&&(o||w(r))},className:E,children:l})});y.displayName="TabsTrigger";let w=(0,c.forwardRef)((e,t)=>{let{value:r,children:l,className:s,forceMount:i=!1,...o}=e,{value:c}=p(),u=c===r;return u||i?(0,n.jsx)("div",{ref:t,role:"tabpanel",id:"tabpanel-".concat(r),"aria-labelledby":"tab-".concat(r),"data-state":u?"active":"inactive",hidden:!u,className:(0,a.Q)("mt-2",!u&&i&&"hidden",s),...o,children:l}):null});w.displayName="TabsContent"},18983:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>
1(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M197.290667 283.392L104.362667 190.464 156.16 138.752l722.432 722.389333-51.754667 51.754667-119.381333-118.954667-17.109333-17.109333c-55.04 21.973333-115.328 34.218667-178.474667 34.218667-203.733333 0-377.728-126.72-448.213333-305.578667A480.938667 480.938667 0 0 1 216.021333 302.08l-18.773333-18.773333z m518.272 222.037333a203.818667 203.818667 0 0 0-203.733334-203.733333c-26.453333 0-51.328 5.290667-74.581333 14.677333L349.269333 228.352a474.496 474.496 0 0 1 162.133334-28.501333c203.733333 0 377.728 126.72 448.213333 305.578666a481.450667 481.450667 0 0 1-139.733333 193.536l-118.997334-118.954666c9.386667-23.253333 14.677333-48.085333 14.677334-74.581334z m-385.877334-89.6a201.941333 201.941333 0 0 0-21.589333 89.6 203.818667 203.818667 0 0 0 203.733333 203.733334c32.213333 0 62.336-8.106667 89.642667-21.589334l-63.146667-63.146666c-8.533333 2.048-17.493333 3.242667-26.453333 3.242666a122.069333 122.069333 0 0 1-122.282667-122.197333c0-8.96 1.237333-17.92 3.285334-26.496l-63.146667-63.146667z m304 96.554667l-128.341333-128.341333 6.912-0.426667a122.069333 122.069333 0 0 1 122.24 122.282667l-0.853333 6.485333z"})}));s.displayName="EyeOff1Icon"},23719:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SocketContainer:()=>o});var n=r(79237),a=r(62302),l=r(25825),s=r(38113),i=r(76656);function o(){let{children:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{let{socket:e,connecting:r}=l.G.getState();(null==e?void 0:e.readyState)===WebSocket.OPEN||r||t.current||(async()=>{try{t.current=!0,await a.W.connect()}catch(e){console.error("WebSocket connection failed:",e)}finally{t.current=!1}})()},[]),(0,s.useEffect)(()=>()=>{a.W.disconnect()},[]),null!=e?e:(0,n.jsx)(c,{})}function c(e){let{position:t="fixed",left:r=15,bottom:a=15}=e,{reconnecting:s,connectionFailed:o}=(0,l.G)((0,i.k)(e=>({reconnecting:e.reconnecting,connectionFailed:e.connectionFailed})));return s||o?(0,n.jsx)("div",{className:"bg-error-light center-vh sh-2 br-main z-10000 h-[50px] min-w-[150px] px-[15px] ".concat("fixed"===t?"fixed":"absolute"),style:{left:"".concat(r,"px"),bottom:"".concat(a,"px")},children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"h-4 w-4",children:o?(0,n.jsx)("div",{className:"h-4 w-4 animate-pulse rounded-full bg-red-500"}):(0,n.jsx)("div",{className:"h-4 w-4 animate-pulse rounded-full bg-yellow-500"})}),(0,n.jsx)("span",{className:"".concat(o?"text-p3":"text-p1"," text-sm font-medium"),children:o?"Connection failed, please refresh the page":"Network reconnecting ..."})]})}):null}},24983:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Pagination:()=>g,PaginationItem:()=>f,generatePagination:()=>v,paginationItemVariants:()=>p,paginationVariants:()=>x,shouldShowNavigationButtons:()=>h});var n=r(79237),a=r(91405),l=r(90477),s=r(4487),i=r(38113),o=r(4637),c=r(76562),u=r(99978),d=r(85906),m=r(39517);let p=(0,s.F)(["flex","items-center","justify-center","transition-all","duration-200","cursor-pointer","select-none","text-bm14","![line-height:1]"],{variants:{type:{number:["h-7","min-w-7","px-s2","rounded-r1","text-t3","hover:bg-bg2","disabled:opacity-20","disabled:pointer-events-none","disabled:cursor-not-allowed"],button:["h-7","min-w-7","rounded-r1","text-t3","hover:bg-bg2","disabled:opacity-20","disabled:pointer-events-none","disabled:cursor-not-allowed"],more:["h-6","min-w-6","text-t3","pointer-events-none"],text:["h-8","px-s6","cursor-pointer"]},active:{true:[],false:[]},ended:{true:[],false:[]}},compoundVariants:[{type:"number",active:!0,class:["bg-bg2","text-t1","text-tm14"]},{type:"text",active:!1,ended:!1,class:["text-p1-dark"]},{type:"text",ended:!0,class:["text-t3","pointer-events-none"]}],defaultVariants:{type:"number",active:!1,ended:!1}}),f=i.forwardRef((e,t)=>{let{className:r,type:a,active:s,ended:i,icon:f,children:x,disabled:g,...v}=e,h=()=>"button"===a&&"prev"===f?(0,n.jsx)(o.F,{className:"size-3 rtl:rotate-180"}):"button"===a&&"next"===f?(0,n.jsx)(c.Y,{className:"size-3 rtl:rotate-180"}):"button"===a&&"first"===f?(0,n.jsx)(u.m,{className:"size-3 rtl:rotate-180"}):"button"===a&&"last"===f?(0,n.jsx)(d.k,{className:"size-3 rtl:rotate-180"}):"more"===a?(0,n.jsx)(m.j,{}):"text"===a?i?"No more":x||"Load more":x;return"more"===a?(0,n.jsx)("span",{className:(0,l.Q)(p({type:a,active:s,ended:i}),r),"aria-hidden":"true",children:h()}):(0,n.jsx)("button",{ref:t,type:"button",className:(0,l.Q)(p({type:a,active:s,ended:i}),r),disabled:g||i,"aria-current":s?"page":void 0,...v,children:h()})});f.displayName="PaginationItem";let x=(0,s.F)(["flex","items-center","gap-s2"],{variants:{variant:{number:[],text:["justify-center"]}},defaultVariants:{variant:"number"}}),g=i.forwardRef((e,t)=>
1{let{className:r,variant:s="number",children:o,current:c,total:u,pageSize:d=10,onChange:m,showQuickJumper:p,hasNextPage:g,...b}=e,y="number"===s&&void 0!==c,w="number"==typeof u,N=Math.max(1,d),j=i.useRef(Math.max(1,null!=c?c:1)),C=(0,a.no)();if(y&&w){let e=Math.max(1,Math.ceil(u/N)),a=v(c,e,C?1:2),i=h(e),o=null!=p&&p,d=e=>{e!==c&&m&&m(e)};return(0,n.jsxs)("nav",{ref:t,"aria-label":"pagination",className:(0,l.Q)(x({variant:s}),r),...b,children:[i&&(0,n.jsxs)(n.Fragment,{children:[o&&(0,n.jsx)(f,{type:"button",icon:"first",disabled:1===c,onClick:()=>d(1)}),(0,n.jsx)(f,{type:"button",icon:"prev",disabled:1===c,onClick:()=>d(Math.max(1,c-1))})]}),a.map((e,t)=>"more"===e?(0,n.jsx)(f,{type:"more"},"more-".concat(t)):(0,n.jsx)(f,{type:"number",active:e===c,onClick:()=>d(e),children:e},e)),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{type:"button",icon:"next",disabled:c===e,onClick:()=>d(Math.min(e,c+1))}),o&&(0,n.jsx)(f,{type:"button",icon:"last",disabled:c===e,onClick:()=>d(e)})]})]})}if(y&&!w){if(void 0===g)return(0,n.jsx)("nav",{ref:t,"aria-label":"pagination",className:(0,l.Q)(x({variant:s}),r),...b,children:o});let e=Math.max(1,null!=c?c:1);e>j.current&&(j.current=e);let a=Array.from({length:j.current},(e,t)=>t+1),i=t=>{t!==e&&m&&m(t)};return(0,n.jsxs)("nav",{ref:t,"aria-label":"pagination",className:(0,l.Q)(x({variant:s}),r),...b,children:[(0,n.jsx)(f,{type:"button",icon:"first",disabled:1===e,onClick:()=>i(1)}),(0,n.jsx)(f,{type:"button",icon:"prev",disabled:1===e,onClick:()=>i(Math.max(1,e-1))}),a.map(t=>(0,n.jsx)(f,{type:"number",active:t===e,onClick:()=>i(t),children:t},t)),(0,n.jsx)(f,{type:"button",icon:"next",disabled:!g,onClick:()=>{g&&i(e+1)}})]})}return(0,n.jsx)("nav",{ref:t,"aria-label":"pagination",className:(0,l.Q)(x({variant:s}),r),...b,children:o})});g.displayName="Pagination";let v=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(t<=5)return Array.from({length:t},(e,t)=>t+1);let n=[];n.push(1);let a=Math.max(1,r),l=Math.max(2,e-a),s=Math.min(t-1,e+a);l>2&&n.push("more");for(let e=l;e<=s;e++)n.push(e);return s<t-1&&n.push("more"),n.push(t),n},h=e=>e>=5},26212:(e,t,r)=>{"use strict";r.d(t,{UP:()=>s,ep:()=>l});var n=r(69534);let a=e=>{let{namespace:t,defaultSymbol:r,mode:a,defaultSymbolConfig:l}=e,s="".concat(t,".symbols.current"),i="".concat(t,".symbols.configList");return{setCurrent(e){n.xM.setItem(s,e)},getCurrent:()=>n.xM.getItem(s)||r,setConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.xM.setItem(i,e)},getConfig(e,t){let r=n.xM.getItem(i)||[];if(!e)return r;let s="simul"===a?r.find(t=>t.symbol===e||t.prodSymbol===e):r.find(t=>t.symbol===e);return s||t&&l||{}}}},l=a({namespace:"contract_futures",defaultSymbol:"BTC-SWAP",mode:"futures"}),s=a({namespace:"contract_simul",defaultSymbol:"BTCXUSDT",mode:"simul"})},28824:(e,t,r)=>{"use strict";r.d(t,{BJ:()=>f,E$:()=>m,LA:()=>d,Nd:()=>s,TH:()=>c,bD:()=>u,c5:()=>l,r0:()=>p,vc:()=>o,x4:()=>i});var n=r(59292),a=r(4390);function l(e){return n.request.get("/api/usdt-market-api/contract/events",e)}function s(e){return n.request.get("/api/usdt-market-api/tier-info",e)}function i(e){return n.request.get("/api/usdt-market-api/contract/fundingtime",e)}function o(e){return n.request.get("/api/usdt-market-api/contract/market-session",e)}function c(e){return n.request.get("/api/usdt-market-api/contract/market-session-config",e)}let u=e=>(0,a.useQuery)({queryKey:["getFundingRateHistoryUsingGet",e],queryFn:()=>n.request.get("/api/usdt-market-api/contract/fundratehistory",e),staleTime:3e4});function d(e){return n.request.get("/api/usdt-market-api/contract/tier",e)}let m=e=>(0,a.useQuery)({queryKey:["getContractTierConfigUsingGet",e],queryFn:()=>d(e),staleTime:3e5});function p(e){var t;let{params:r,...a}=e,l=null!=(t=null==r?void 0:r.limit)?t:500;return n.request.get("/api/usdt-market-api/web/klines",{...a,params:{...r,limit:l}})}let f=e=>(0,a.useQuery)({queryKey:["getHomepagePromotedContractsUsingGet",e],queryFn:()=>n.request.get("/api/usdt-market-api/markets/homepage/promoted-contracts",e),staleTime:6e4})},30511:(e,t,r)=>{"use strict";r.d(t,{t:()=>c});var n=r(79237),a=r(90477),l=r(4487),s=r(38113),i=r(37392);let o=(0,l.F)("inline-block",{variants:{type:{global:"",general:"animate-spin"},size:{l:"",m:"",s:"",xs:""}},compoundVariants:[{type:"global",size:"l",className:"w-12 h-12"},{type:"global",size:"m",className:"w-10 h-10"},{type:"global",size:"s",className:"w-8 h-8"},{type:"general",size:"l",className:"w-6 h-6"},{type:"general",size:"m",className:"w-5 h-5"},{type:"general",size:"s",className:"w-4 h-4"},{type:"general",size:"xs",className:"w-3 h-3"}],defaultVariants:{type:"general",size:"m"}}),c=s.forwardRef((e,t)=>
1{let{className:r,type:l="general",size:s="m",...c}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.Q)(o({type:l,size:s}),r),...c,children:"global"===l?(0,n.jsxs)("svg",{viewBox:"0 0 20 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-full w-full",children:[(0,n.jsx)("rect",{x:"0",y:"0",width:"12",height:"12",rx:"1",fill:"var(--color-p1)",className:"animate-rect1"}),(0,n.jsx)("rect",{x:"4.7",y:"19.6",width:"7.3",height:"7.5",rx:"1",fill:"var(--color-p1)",className:"animate-rect2"}),(0,n.jsx)("rect",{x:"12",y:"12",width:"7.5",height:"7.5",rx:"1",fill:"var(--color-p1)",className:"animate-rect3"})]}):(0,n.jsx)(i.m,{className:"h-full w-full"})})});c.displayName="Spin"},33162:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M512 207.061333c-100.394667 0-191.232 28.16-272.512 84.821334C158.165333 348.586667 99.754667 421.845333 64 512c35.541333 90.197333 93.952 163.712 175.488 220.117333 81.28 56.618667 172.117333 84.864 272.512 84.864 100.394667 0 191.232-28.245333 272.512-84.906666 81.322667-56.618667 139.733333-129.92 175.488-220.074667-35.541333-90.197333-93.952-163.712-175.488-220.117333C703.232 235.264 612.394667 207.018667 512 207.018667z m0 508.842667c-36.864 0-70.826667-9.088-101.973333-27.562667a209.493333 209.493333 0 0 1-74.368-74.368A196.266667 196.266667 0 0 1 308.053333 512a196.266667 196.266667 0 0 1 27.562667-101.973333A209.493333 209.493333 0 0 1 410.026667 335.701333 196.181333 196.181333 0 0 1 512 308.053333c36.864 0 70.826667 9.088 101.973333 27.562667a209.493333 209.493333 0 0 1 74.368 74.410667c18.432 31.061333 27.562667 65.066667 27.562667 101.930666a196.266667 196.266667 0 0 1-27.562667 101.973334 209.365333 209.365333 0 0 1-74.368 74.368 196.266667 196.266667 0 0 1-101.973333 27.562666z m0-325.845333c-34.218667 0-63.317333 11.776-86.613333 35.328-23.552 23.552-35.328 52.394667-35.328 86.613333 0 34.218667 11.776 63.317333 35.328 86.613333 23.552 23.552 52.394667 35.328 86.613333 35.328 34.218667 0 63.317333-11.776 86.613333-35.328 23.552-23.552 35.328-52.394667 35.328-86.613333 0-34.218667-11.776-63.317333-35.328-86.613333-23.296-23.552-52.394667-35.328-86.613333-35.328z"})}));s.displayName="Eye1Icon"},35256:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FloatingSignupBanner:()=>c.FloatingSignupBanner,FloatingSignupBannerDynamic:()=>d,default:()=>m});var n=r(79237),a=r(29265),l=r(69534),s=r(51025),i=r(12407),o=r(46383),c=r(74396);let u=(0,i.default)(()=>Promise.resolve().then(r.bind(r,74396)).then(e=>e.FloatingSignupBanner),{loadableGenerated:{webpack:()=>[74396]},ssr:!1}),d=()=>{let e=(0,s.k)(e=>e.userLoadFromStorage),t=(0,s.k)(e=>e.user),r=null==t?void 0:t.userId,[i]=(0,a.fj)(),c=Number(l.xM.getItem(o.A)),d=!(Number.isFinite(c)&&c>0)||Date.now()-c>864e5;return e&&!r&&i&&d?(0,n.jsx)(u,{}):null},m=u},35349:(e,t,r)=>{"use strict";r.d(t,{kO:()=>l});var n=r(38113),a=r(62302);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enabled:r=!0}=t,{key:l,list:s}=(0,n.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Array.from(new Set(e.filter(Boolean))).sort();return{key:t.join("|"),list:t}})(e),[e]),i=(0,n.useRef)([]);(0,n.useEffect)(()=>{if(!r||0===s.length){i.current.length>0&&(a.W.unsubscribe(i.current),i.current=[]);return}let{toSubscribe:e,toUnsubscribe:t}=function(e,t){let r=new Set(e),n=new Set(t);return{toSubscribe:t.filter(e=>!r.has(e)),toUnsubscribe:e.filter(e=>!n.has(e))}}(i.current,s);t.length>0&&a.W.unsubscribe(t),e.length>0&&a.W.subscribe(e),i.current=s},[l,r]),(0,n.useEffect)(()=>()=>{i.current.length>0&&(a.W.unsubscribe(i.current),i.current=[])},[])}},39087:(e,t,r)=>{"use strict";r.d(t,{Fs:()=>s,IZ:()=>a,aJ:()=>i,i5:()=>o,vK:()=>l});var n=r(3529);let a={ws:"",http:"",base:"",quote:""};function l(e){let t=(0,n.zi)(e);if(!t)return{...a};let r=(0,n.j)(t,"http"),l=(0,n.j)(t,"ws"),[s="",i=""]=r.split("/");return{ws:l,http:r,base:s,quote:i}}function s(e){let t=null==e?void 0:e.trim().toUpperCase();return t?t.includes("/")?t.replace("/","-"):t.includes("_")?t.replace("_","-"):t:""}function i(e){let t=null==e?void 0:e.trim().toUpperCase();return t?t.includes("/")?t.replace("/",""):t.includes("-")||t.includes("_")?(0,n.j)(t,"ws"):t:""}let o=e=>{if(!e)return 0;let t=e.toString(),r=t.indexOf(".");return -1===r?0:t.length-r-1}},39517:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>
1(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M170.666667 426.666667a85.333333 85.333333 0 1 1 0 170.666666 85.333333 85.333333 0 0 1 0-170.666666z m341.333333 0a85.333333 85.333333 0 1 1 0 170.666666 85.333333 85.333333 0 0 1 0-170.666666z m341.333333 0a85.333333 85.333333 0 1 1 0 170.666666 85.333333 85.333333 0 0 1 0-170.666666z"})}));s.displayName="MoreHorizontalIcon"},41636:(e,t,r)=>{"use strict";r.d(t,{default:()=>ew});var n=r(79237),a=r(87042),l=r(13603),s=r(44031),i=r(30511),o=r(66960),c=r(59502),u=r(35349),d=r(96620),m=r(78063),p=r(9238),f=r(47582),x=r(51025),g=r(12642),v=r(23719),h=r(14275),b=r(48571),y=r(38113),w=r(63036),N=r(1647);let j=function(e,t,r){var n=(0,b.__read)((0,y.useState)({}),2),a=n[0],l=n[1],s=(0,w.A)(function(){l({})},r).run;(0,y.useEffect)(function(){return s()},t),(0,N.A)(e,[a])};var C=r(39087),S=r(3529);let k=["USDT","USDC"];function T(e){if(e.includes("/")||e.includes("_"))return(0,C.Fs)(e);if(e.endsWith("-SWAP"))return(0,S.A2)(e,"-");let t=k.find(t=>e.endsWith(t));return t?"".concat(e.slice(0,-t.length),"-").concat(t):e}let A=e=>{if("number"==typeof e)return e;if("string"==typeof e){let t=Number(e.replace("%",""));return Number.isNaN(t)?0:t}return 0},E=e=>(e.symbol||e.tradePair||e.tradePairName||"").toString();function z(e,t){if(!t.field||!t.direction)return e;let r=[...e];if("symbol"===t.field)return r.sort((e,r)=>{let n=E(e).localeCompare(E(r));return"asc"===t.direction?n:-n}),r;if("change"===t.field)return r.sort((e,r)=>{let n=A(e.change)-A(r.change);return"asc"===t.direction?n:-n}),r;if("last"===t.field||"high"===t.field||"low"===t.field||"usdtVolume"===t.field){let e,n;return e=t.field,n=t.direction,r.sort((t,r)=>{let a=A(t[e])-A(r[e]);return"asc"===n?a:-a})}return r}function R(e,t){return t?e.filter(e=>(e.asset||"").toUpperCase().includes(t)):e}function L(e,t){return M(e,t).filter(e=>(e.asset||"").toUpperCase()===t).sort((e,t)=>A(t.usdtVolume)-A(e.usdtVolume))}function M(e,t){return R(e,t).filter(e=>(e.asset||"").toUpperCase().startsWith(t)).sort((e,t)=>A(t.usdtVolume)-A(e.usdtVolume))}function P(e,t){let r=R(e,t),n=[...M(e,t),...L(e,t)];return r.filter(e=>!n.some(t=>t.asset===e.asset)).sort((e,t)=>A(t.usdtVolume)-A(e.usdtVolume))}function _(e,t){return t?e.filter(e=>(e.back||"USDT").toUpperCase().includes(t)).sort((e,t)=>A(t.usdtVolume)-A(e.usdtVolume)):[]}function I(e){let t=new Set;return e.flatMap(e=>e.list).filter(e=>{let r="".concat(e.bizType,":").concat(e.tradePair);return!t.has(r)&&(t.add(r),!0)})}function D(e,t){let r=e.map(e=>({...e,list:function(e,t,r){let n=z(e,r),a=(t||"").replace("/","").trim().toUpperCase();return a?z(n=function(e){let t=new Set;return e.reduce((e,r)=>{let n=(r.tradePair||r.symbol||"").toString();return!n||t.has(n)||(t.add(n),e.push(r)),e},[])}(n=L(n,a).concat(M(n,a)).concat(P(n,a)).concat(_(n,a)).concat(function(e,t){if(!t)return[];let r=L(e,t).concat(M(e,t)).concat(P(e,t)).concat(_(e,t)),n=e.filter(e=>(e.tradePair||"").toString().replace(/-SWAP$/,"USDT").includes(t));return n.some(e=>r.find(t=>t.asset===e.asset))?[]:n}(n,a))),r):n}(e.list,t,{})})),n=I(r);return{groups:r,total:n.length,groupCounts:Object.fromEntries(r.map(e=>[e.groupName,e.list.length]))}}let B=e=>{var t;return(null==(t=e.groups.find(t=>{var r;return(null!=(r=e.groupCounts[t.groupName])?r:0)>0}))?void 0:t.groupName)||""},U=(e,t)=>{if("favorites"===e)return B(t);let r=t.groups.find(t=>"spot"===e?"USDT"===t.groupCode||"USDT"===t.groupName.toUpperCase():"All"===t.groupCode);return(null==r?void 0:r.groupName)||B(t)};var F=r(25825),V=r(12733),Q=r(4390),O=r(76656),W=r(122),K=r(19490);let q=e=>null==e||""===e?"--":(0,K.iT)(e),G=e=>{let t=new Map;return e.forEach(e=>{t.set(e.tradePair,e)}),Array.from(t.values())},H=e=>new Map(e.map(e=>[e.symbol,e])),X=(e,t)=>new Set(e.filter(e=>e.bizType===t).map(e=>e.tradePair)),Y=e=>{let{tradingGroups:t,isLogged:r,spotTickersMap:n,favoritesSpotSet:a}=e;return t.map(e=>{let t=(e.list||[]).filter(e=>r||1===e.special).map(e=>{var t,r;let[l,s]=(e.tradePairName||"").split("/"),i=n.get(e.tradePair),o=a.has(e.tradePair);return{...e,...i,asset:l,back:s,bizType:0,isFavorite:o,usdtVolume:null!=(r=null!=(t=null==i?void 0:i.usdtVolume)?t:null==i?void 0:i.volume)?r:"",tradePairName:e.tradePairName||e.tradePair,tradePair:e.tradePair}});return{groupName:e.groupName,list:t}})},$=e=>{let{contractList:t,isLogged:r,usdtTickersMap:n,favoritesDerivativesSet:a,$t:l,contractGroupList:s}=e,i=(e,t)=>{var r,n;let a=null==(n=e.groupList)||null==(r=n.find(e=>e.groupCode===t))?void 0:r.sort;return"number"==typeof a?a:Number.MAX_SAFE_INTEGER},o=t.filter(e=>r||1===e.special).map(e=>{let t=n.get(e.symbol),r=a.has(e.symbol),l="".concat(e.baseAsset).concat(e.quoteAsset),s=t?new W.A(t.volume||0).mul(e.multiplier||0).mul(t.last||0).toNumber():"";return{...e,...t,tradePair:e.symbol,tradePairName:l,asset:e.baseAsset,back:e.quoteAsset,bizType:1,isFavorite:r,usdtVolume:s}});return(null==s?void 0:s.length)?s.map(e=>
1{let t=o.filter(t=>{var r;return"All"===e.groupCode||(null==(r=t.groupList)?void 0:r.some(t=>t.groupCode===e.groupCode))});return"All"!==e.groupCode&&t.sort((t,r)=>{let n=i(t,e.groupCode)-i(r,e.groupCode);return 0!==n?n:(t.symbol||"").localeCompare(r.symbol||"")}),{groupName:e.name||"",groupCode:e.groupCode,tag:e.tag,list:t}}):[{groupName:l("ALL"),groupCode:"All",list:o}]},Z=e=>{let{isLogged:t,spotGroups:r,derivativeGroups:n,$t:a}=e;if(!t)return[];let l=G(r.flatMap(e=>e.list).filter(e=>e.isFavorite)),s=G(n.flatMap(e=>e.list).filter(e=>e.isFavorite));return[{groupName:a("Spot"),list:l},{groupName:a("Derivatives"),list:s}]},J=d.p.SPOT.SIMPLE_TICKER_ALL(),ee=d.p.USDT.SIMPLE_TICKER_ALL(),et=[],er=new Map;var en=r(5885),ea=r(4246),el=r(37392),es=r(70659),ei=r(73799),eo=r(24983),ec=r(90477),eu=r(90052),ed=r(83125),em=r(61877),ep=r.n(em);function ef(e){let{type:t,groupName:r,sort:a,onSort:l,items:s,getTradeHref:i,detailHref:o,onToggleFavorite:c,favoriteLoading:u,onNavigate:d,searchKeyword:m}=e,[p,f]=(0,y.useState)(1),x=(0,y.useRef)(null);(0,y.useEffect)(()=>{f(1)},[a.field,a.direction,r,m,s.length]);let g=(0,y.useMemo)(()=>{let e=(p-1)*25,t=new Map;return s.slice(e,e+25).map(e=>{let r=e.tradePair||"market-row",n=(t.get(r)||0)+1;return t.set(r,n),{...e,key:1===n?r:"".concat(r,"__dup_").concat(n)}})},[s,p]);return(0,n.jsxs)("div",{className:"overflow-x-hidden lg:overflow-x-auto",children:[(0,n.jsxs)("div",{className:"flex w-full min-w-0 flex-col lg:min-w-[1200px]",children:[(0,n.jsx)(ex,{ref:x,type:t,groupName:r,sort:a,onSort:l}),(0,n.jsx)("div",{className:"flex flex-col",children:g.map(e=>(0,n.jsx)(ev,{type:t,item:e,groupName:r,getTradeHref:i,detailHref:o,onToggleFavorite:c,favoriteLoading:null==u?void 0:u[e.tradePair],onNavigate:d},e.key))})]}),s.length>25&&(0,n.jsx)("div",{className:"flex justify-center py-6",children:(0,n.jsx)(eo.Pagination,{current:p,total:s.length,pageSize:25,onChange:e=>{f(e),requestAnimationFrame(()=>{if(!x.current)return;let e=x.current.getBoundingClientRect().top+window.scrollY-200;window.scrollTo({top:e,behavior:"smooth"})})}})})]})}let ex=(0,y.forwardRef)((e,t)=>{let{type:r,groupName:a,sort:l,onSort:s}=e,{$t:i}=(0,o.B)(),c="derivatives"===r||"favorites"===r&&a===i("Derivatives");return(0,n.jsxs)("div",{ref:t,className:"text-t3 gap-s3 grid grid-cols-[minmax(0,1fr)_auto_auto] items-center py-2 text-xs lg:grid-cols-[280px_205px_145px_175px_130px_140px_1fr] lg:gap-0",children:[(0,n.jsx)(eg,{label:i("Symbol"),field:"symbol",sort:l,onSort:s}),(0,n.jsx)(eg,{label:i("Last Price"),field:"last",sort:l,onSort:s,className:"justify-end text-end lg:justify-start lg:text-left"}),(0,n.jsx)(eg,{label:i("Change"),field:"change",sort:l,onSort:s,className:"justify-end text-end lg:justify-start lg:text-left"}),(0,n.jsx)(eg,{label:i("Highest Price"),field:"high",sort:l,onSort:s,className:"hidden lg:flex"}),(0,n.jsx)(eg,{label:i("Lowest Price"),field:"low",sort:l,onSort:s,className:"hidden lg:flex"}),(0,n.jsx)(eg,{label:"".concat(i("24h Vol")," ").concat(c?"(USDT)":""),field:"usdtVolume",sort:l,onSort:s,align:"right",className:"hidden lg:flex"}),(0,n.jsx)("div",{className:"text-t3 hidden pr-1 text-end text-xs lg:block",children:i("Action")})]})});function eg(e){let{label:t,field:r,sort:a,onSort:l,align:s="left",className:i}=e,o=a.field===r,c=o&&"asc"===a.direction,u=o&&"desc"===a.direction;return(0,n.jsxs)("button",{type:"button",onClick:()=>l(r),className:(0,ec.cn)("text-t3 flex items-center gap-1 text-left text-xs","right"===s&&"justify-end text-end",i),children:[(0,n.jsx)("span",{className:"whitespace-nowrap",children:t}),(0,n.jsxs)("span",{className:"flex flex-col gap-[2px]",children:[(0,n.jsx)(en.D,{className:(0,ec.cn)("h-2 w-2",c?"text-p1":"text-t4")}),(0,n.jsx)(ea.k,{className:(0,ec.cn)("-mt-1 h-2 w-2",u?"text-p1":"text-t4")})]})]})}function ev(e){var t,r;let{item:a,groupName:l,getTradeHref:s,detailHref:i,onToggleFavorite:c,favoriteLoading:u,onNavigate:d,type:m}=e,{$t:p}=(0,o.B)(),[f,x]=(0,y.useState)(!1),g=Number(a.change),v=!Number.isNaN(g),h=v?(e=>{if(null==e||""===e)return"--";let t=Number(e);return Number.isNaN(t)?"--":0===t?"0.00%":"".concat(t>0?"+":"").concat((100*t).toFixed(2),"%")})(g):"--",b="spot"===m||l===p("Spot"),w=null==(r=a.cmcSlug)||!r.trim()||1===a.bizType&&!!a.contractScope&&"CRYPTO"!==a.contractScope;return(0,n.jsx)("div",{className:"hover:bg-bg2 hover:rounded-r3 py-s2 cursor-pointer transition lg:py-4",onClick:()=>d(a),children:(0,n.jsxs)("div",{className:"gap-s2 grid grid-cols-[minmax(0,1fr)_144px] items-center lg:grid-cols-[280px_205px_145px_175px_130px_140px_1fr] lg:gap-0",children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center",children:[(0,n.jsx)(eh,{active:a.isFavorite,loading:u,onClick:e=>c(a,e)}),(0,n.jsxs)("div",{className:"ml-s2 mr-s2 lg:mr-s3 relative shrink-0 overflow-hidden rounded-full",children:[(0,n.jsx)("div",{className:"border-l1 h-[28px] w-[28px] rounded-full border"}),a.asset&&!f?(0,n.jsx)(ed.Image,{src:"/resource-upload/".concat(a.asset,".png"),alt:a.asset,width:28,height:28,bucket:"res",className:"absolute top-0 left-0",onError:()=>x(!0)}):(0,n.jsx)("div",{className:"bg-bg5 absolute top-0 left-0 h-[28px] w-[28px] rounded-full"})]}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[b?(0,n.jsxs)("span",{className:"text-t1 block truncate text-sm font-medium",children:[a.asset,(0,n.jsxs)("span",{className:"text-t3",children:["/",a.back]})]}):(0,n.jsx)("span",{className:"text-t1 block truncate text-sm font-medium",children:a.tradePairName}),(0,n.jsxs)("div",{className:"hidden items-center gap-1 lg:flex",children:[null==(t=a.tags)?void 0:t.map(e=>(0,n.jsx)(ed.Image,{src:e,alt:"tag",width:16,height:16,className:"h-4 w-4",unoptimized:!0},e)),a.risk?(0,n.jsx)(eb,{}):null,a.zeroFee?(0,n.jsx)(ey,{label:p("0 Fee")}):null,a.makerZeroFee?(0,n.jsx)(ey,{label:p("0 Maker Fee")}):null]})]}),(0,n.jsx)("span",{className:"text-t3 truncate text-xs",children:a.back||l})]})]}),(0,n.jsxs)("div",{className:"flex flex-col items-end lg:items-start",children:[(0,n.jsx)("span",{className:"text-t1 text-sm font-medium",children:q(a.last)}),(0,n.jsx)("span",{className:"text-t3 hidden text-xs lg:inline",children:(0,n.jsx)(eu.b,{usdt:a.last,precision:(e=>{var t;if(null==e)return 0;let[,r]=null!=(t="".concat(e).split("."))?t:[];return r?r.length:0})(a.last)})}),(0,n.jsx)("span",{className:"lg:hidden",children:v&&0!==g?(0,n.jsx)(ei.l,{value:100*g,className:"text-xs leading-4 font-normal"}):(0,n.jsx)("span",{className:"text-t3 text-xs leading-4",children:h})})]}),(0,n.jsx)("div",{className:"hidden text-end text-sm font-medium lg:block lg:text-left",children:v&&0!==g?(0,n.jsx)(ei.l,{value:100*g}):(0,n.jsx)("span",{className:"text-t3",children:h})}),(0,n.jsx)("div",{className:"text-t1 hidden truncate text-sm lg:block",children:q(a.high)}),(0,n.jsx)("div",{className:"text-t1 hidden truncate text-sm lg:block",children:q(a.low)}),(0,n.jsx)("div",{className:"text-t1 hidden truncate text-end text-sm lg:block",children:""!==a.usdtVolume&&void 0!==a.usdtVolume?(0,K.iT)((0,K.Yv)(a.usdtVolume,2)):"--"}),(0,n.jsxs)("div",{className:"gap-s3 hidden justify-end pr-1 lg:flex",children:[(0,n.jsx)(ep(),{href:s(a),target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),className:"text-p1-dark text-end text-sm font-medium",children:p("Trade")}),(0,n.jsx)("span",{className:(0,ec.cn)("inline-flex",w&&"cursor-default"),onClick:e=>e.stopPropagation(),children:(0,n.jsx)(es.$,{type:"button",variant:"link",disabled:w,onClick:e=>{if(e.stopPropagation(),w)return;let t=i(a);t&&window.open(t,"_blank","noopener,noreferrer")},className:"text-end text-sm font-medium",children:p("Detail")})})]})]})})}function eh(e){let{active:t,loading:r,onClick:a}=e;return(0,n.jsx)("button",{type:"button",onClick:a,className:"flex h-6 w-6 cursor-pointer items-center justify-center","aria-label":"favorite",children:r?(0,n.jsx)("div",{className:"animate-spin",children:(0,n.jsx)(el.m,{})}):(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:t?"#F2B200":"none",stroke:t?"#F2B200":"#A3A9B3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polygon",{points:"12 2 15 9 22 9 16.5 14 18.5 22 12 17.5 5.5 22 7.5 14 2 9 9 9"})})})}function eb(){return(0,n.jsx)("span",{className:"inline-flex h-[18px] items-center rounded-[4px] border border-[rgba(255,61,85,0.3)] px-1.5 text-[11px] text-[#ff3d55]",children:"H.Risk"})}function ey(e){let{label:t}=e;return(0,n.jsx)("span",{className:"text-p1-dark inline-flex h-[18px] items-center rounded-[4px] border border-[rgba(242,178,0,0.3)] px-1.5 text-[11px]",children:t})}function ew(){var e;(0,c.s)("markets_view");let{$t:t,locale:r}=(0,o.B)(),b=(0,h.useQueryClient)(),{user:w}=(0,x.k)(),N=!!(null==w?void 0:w.userId),[C,S]=(0,y.useState)("spot"),[k,A]=(0,y.useState)({spot:{},derivatives:{},favorites:{}}),E=k[C],[R,L]=(0,y.useState)(""),[M,P]=(0,y.useState)(""),[_,B]=(0,y.useState)(null),[W,K]=(0,y.useState)({}),q=(0,y.useRef)(null),G=(0,y.useRef)(""),en=(0,p.$Z)("tab");(0,y.useEffect)(()=>{"0"===en&&N?S("favorites"):"2"===en?S("derivatives"):S("spot")},[en,N]),(0,y.useEffect)(()=>{N||"favorites"!==C||S("spot")},[C,N]),j(()=>{P(R.trim())},[R],{wait:200});let{spotGroups:ea,derivativeGroups:el,favoriteGroups:es,searchSourceGroups:ei,tradingGroupsLoading:eo,contractListLoading:ec,favoritesLoading:eu}=function(e){let{locale:t,isLogged:r,t:n}=e,{data:a,isLoading:l}=(0,Q.useQuery)({queryKey:["markets-trading-groups",t],queryFn:()=>(0,f.AB)({locale:t,params:{}}),staleTime:12e4}),{data:s,isLoading:i}=(0,Q.useQuery)({queryKey:["markets-favorites",t,r],queryFn:()=>(0,f.qM)({locale:t,params:{}}),enabled:r,staleTime:3e4}),{symbolsConfig:o,contractGroupList:c,loading:u,loaded:d,ensureContractTier:m}=(0,V.bZ)((0,O.k)(e=>({symbolsConfig:e.symbolsConfig,contractGroupList:e.contractGroupList,loading:e.loading,loaded:e.loaded,ensureContractTier:e.ensureContractTier})));(0,y.useEffect)(()=>{m({locale:t,params:{}})},[m,t]);let p=(0,F.G)(e=>{var t;return null!=(t=e.topicData[J])?t:et}),x=(0,F.G)(e=>{var t;return null!=(t=e.topicData[ee])?t:et}),g=(null==a?void 0:a.data)||[],v=o||[],h=(null==s?void 0:s.data)||[],b=(0,y.useMemo)(()=>H(p),[p]),w=(0,y.useMemo)(()=>H(x),[x]),N=(0,y.useMemo)(()=>X(h,0),[h]),j=(0,y.useMemo)(()=>X(h,1),[h]),C=(0,y.useMemo)(()=>Y({tradingGroups:g,isLogged:r,spotTickersMap:er,favoritesSpotSet:N}),[g,r,N]),S=(0,y.useMemo)(()=>$({contractList:v,isLogged:r,usdtTickersMap:er,favoritesDerivativesSet:j,contractGroupList:c,$t:n}),[v,r,j,c,n]),k=(0,y.useMemo)(()=>Z({isLogged:r,spotGroups:C,derivativeGroups:S,$t:n}),[r,C,S,n]),T=(0,y.useMemo)(()=>({favorites:k,spot:C,derivatives:S}),[k,C,S]),A=(0,y.useMemo)(()=>Y({tradingGroups:g,isLogged:r,spotTickersMap:b,favoritesSpotSet:N}),[g,r,b,N]),E=(0,y.useMemo)(()=>$({contractList:v,isLogged:r,usdtTickersMap:w,favoritesDerivativesSet:j,contractGroupList:c,$t:n}),[v,r,w,j,c,n]),z=(0,y.useMemo)(()=>Z({isLogged:r,spotGroups:A,derivativeGroups:E,$t:n}),[r,A,E,n]);return{spotGroups:A,derivativeGroups:E,favoriteGroups:z,searchSourceGroups:T,tradingGroupsLoading:l,contractListLoading:!d||u,favoritesLoading:i}}({locale:r,isLogged:N,t:t}),ed=(0,y.useMemo)(()=>({favorites:es,spot:ea,derivatives:el}),[es,ea,el]),em=!!M,ep=(0,y.useMemo)(()=>M?{favorites:D(ei.favorites,M),spot:D(ei.spot,M),derivatives:D(ei.derivatives,M)}:{favorites:{groups:ei.favorites,total:0,groupCounts:{}},spot:{groups:ei.spot,total:0,groupCounts:{}},derivatives:{groups:ei.derivatives,total:0,groupCounts:{}}},[M,ei]),ex=ed[C],eg=(0,y.useMemo)(()=>em?D(ex,M):null,[ex,em,M]),ev=null!=(e=null==eg?void 0:eg.groups)?e:ex,eh=ev.map(e=>e.groupName),[eb,ey]=(0,y.useState)(eh[0]||""),ew=(0,y.useMemo)(()=>{var e;if(N||!eg)return ev;let t=null!=(e=ev.find(e=>e.groupName===eb))?e:ev[0];return t?[{...t,list:I(ev)}]:[]},[eb,ev,eg,N]);(0,y.useEffect)(()=>{ey(e=>eh.includes(e)?e:eh[0]||"")},[C,eh.join("|")]),(0,y.useEffect)(()=>{let e=G.current;if(!e&&M)q.current={nav:C,groupKey:eb};else if(e&&!M){let e=q.current;if(e){var t;let r=ed[e.nav],n=r.some(t=>t.groupName===e.groupKey)?e.groupKey:(null==(t=r[0])?void 0:t.groupName)||"";S(e.nav),ey(n)}q.current=null,B(null)}else e&&M&&e!==M&&B(null);G.current=M},[eb,C,ed,M]);let eN=eo||ec||N&&eu;(0,y.useEffect)(()=>
1{if(!em||eN||_===M)return;let e=function(e){let{currentNav:t,currentGroupKey:r,isLogged:n,summary:a}=e,l=a[t];if(l.total>0){var s;if("favorites"===t&&(null!=(s=l.groupCounts[r])?s:0)===0){let e=U(t,l);return e&&e!==r?{nav:t,groupKey:e}:null}return null}let i=(n?["favorites","spot","derivatives"]:["spot","derivatives"]).find(e=>a[e].total>0);return i?{nav:i,groupKey:U(i,a[i])}:null}({currentNav:C,currentGroupKey:eb,isLogged:N,summary:ep});e&&(S(e.nav),ey(e.groupKey))},[C,eb,N,eN,em,_,M,ep]);let ej="favorites"===C?eo||ec||eu:"derivatives"===C?ec:eo,eC=e=>{A(t=>({...t,[C]:function(e,t){var r;let n=null!=(r=t.direction)?r:null;switch(!0){case e!==t.field:n="asc";break;case e===t.field&&"asc"===n:n="desc";break;case e===t.field&&"desc"===n:n=null;break;case e===t.field&&!n:n="asc"}return{field:e,direction:n}}(e,t[C])}))},eS=async(e,t)=>{if(t.stopPropagation(),!N)return void(0,m.jG)();K(t=>({...t,[e.tradePair]:!0}));try{await (0,f.dw)({locale:r,body:{tradePair:e.tradePair,type:e.isFavorite?2:1,bizType:e.bizType}}),b.invalidateQueries({queryKey:["markets-favorites",r]})}catch(e){console.error("toggle favorite failed",e)}finally{K(t=>({...t,[e.tradePair]:!1}))}},ek=e=>(function(e,t){if(1===e.bizType){let r=T(e.tradePair);return"/".concat(t,"/futures/").concat(r)}let r=e.asset&&e.back?"".concat(e.asset,"-").concat(e.back):T(e.tradePairName||e.tradePair),n=e.back,a=n&&"USDT"!==n?"?tab=".concat(encodeURIComponent(n)):"";return"/".concat(t,"/spot/").concat(r).concat(a)})(e,r),eT=e=>(function(e,t){var r;let n=null==(r=e.cmcSlug)?void 0:r.trim();if(n)return"/".concat(t,"/price/").concat(n,"?source=markets")})(e,r),eA=e=>{window.open(ek(e),"_blank","noopener,noreferrer")},eE=[{key:"favorites",label:t("Favorites"),requiresLogin:!0},{key:"spot",label:t("Spot")},{key:"derivatives",label:t("Derivatives")}].filter(e=>!e.requiresLogin||N),ez=(0,y.useMemo)(()=>[d.p.SPOT.SIMPLE_TICKER_ALL(),d.p.USDT.SIMPLE_TICKER_ALL(),d.p.EXCHANGE_RATE()],[]);return(0,u.kO)(ez),(0,n.jsxs)("div",{className:"bg-bg1",children:[(0,n.jsx)(v.SocketContainer,{}),(0,n.jsx)("section",{className:"bg-bg1 rounded-t-[20px]",children:(0,n.jsxs)("div",{className:"mx-auto flex w-full max-w-[1200px] flex-col gap-4 px-4 pt-6 pb-10 lg:px-0 lg:pt-10",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1 lg:flex-row lg:items-center lg:justify-between",children:[(0,n.jsx)(l.Tabs,{value:C,onValueChange:e=>{var t;let r=ed[e];S(e),ey(em?U(e,ep[e]):(null==(t=r[0])?void 0:t.groupName)||""),em&&B(M)},variant:"text",showUnderline:!1,className:"flex-1",children:(0,n.jsx)(l.TabsList,{className:"gap-6",children:eE.map(e=>(0,n.jsx)(l.TabsTrigger,{className:"text-t16 lg:text-t20",value:e.key,children:em?"".concat(e.label,"(").concat(ep[e.key].total,")"):e.label},e.key))})}),(0,n.jsx)("div",{className:"w-full lg:max-w-[260px]",children:(0,n.jsx)(s.Input,{value:R,onChange:e=>L(e.target.value),onClear:()=>L(""),clearable:!0,leftSlot:(0,n.jsx)(a.W,{className:"text-t4 h-4 w-4"}),placeholder:t("Coin/Token/Symbol"),wrapperClassName:"h-10 text-[14px]",className:"placeholder:text-[14px]"})})]}),0===ew.length?(0,n.jsx)("div",{className:"bg-bg1 rounded-[16px] p-4",children:ej?(0,n.jsx)("div",{className:"flex min-h-[320px] items-center justify-center",children:(0,n.jsx)(i.t,{type:"global",size:"l"})}):(0,n.jsx)("div",{className:"flex min-h-[240px] items-center justify-center",children:(0,n.jsx)(g.A,{description:t("No Record")})})}):(0,n.jsxs)(l.Tabs,{value:eb,onValueChange:e=>{ey(e),em&&B(M)},variant:"card",className:"w-full",children:[N&&ew.length>0?(0,n.jsx)(l.TabsList,{className:"pb-s6 flex h-auto gap-2 overflow-auto rounded-none bg-transparent p-0",children:ew.map(e=>{var t;let r=null!=(t=ep[C].groupCounts[e.groupName])?t:0;return(0,n.jsx)(l.TabsTrigger,{value:e.groupName,className:"text-c12 lg:text-m14 data-[state=active]:bg-bg2 rounded-r2 !px-s3 !flex-none bg-transparent leading-4 font-normal lg:h-[36px] lg:flex-1",children:em&&r>0?"".concat(e.groupName,"(").concat(r,")"):e.groupName},e.groupName)})}):null,ew.map(e=>{let r=z(e.list,E);return(0,n.jsx)(l.TabsContent,{value:e.groupName,className:"mt-0",children:(0,n.jsxs)("div",{className:"bg-bg1 rounded-[16px]",children:[ej?(0,n.jsx)("div",{className:"flex min-h-[320px] items-center justify-center",children:(0,n.jsx)(i.t,{type:"global",size:"l"})}):0===r.length?(0,n.jsx)("div",{className:"flex min-h-[240px] items-center justify-center",children:(0,n.jsx)(g.A,{description:t("No Record")})}):(0,n.jsx)(ef,{type:C,groupName:e.groupName,sort:E,onSort:eC,items:r,getTradeHref:ek,detailHref:eT,onToggleFavorite:eS,favoriteLoading:W,onNavigate:eA,searchKeyword:M}),N?null:(0,n.jsx)("div",{className:"mt-6 flex justify-center",children:(0,n.jsxs)("button",{type:"button",onClick:()=>(0,m.jG)(),className:"border-l1 text-t2 rounded-full border px-6 py-2 text-sm",children:[(0,n.jsx)("span",{className:"text-p1",children:t("Log In")})," ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t("<span>{0}</span> to view more",{0:""})}})]})})]})},e.groupName)})]})]})})]})}},44031:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Input:()=>v,OTPInput:()=>
1y,PasswordInput:()=>b,TextArea:()=>h});var n=r(79237),a=r(90477),l=r(4487),s=r(38113),i=r(71591),o=r(65375);let c=s.forwardRef((e,t)=>(0,n.jsx)(o.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M829.013333 516.096a51.2 51.2 0 1 1 72.362667 72.405333l-301.653333 301.738667a51.242667 51.242667 0 0 1-72.448-72.448l301.696-301.653333z m-63.402666-358.997333a51.2 51.2 0 0 1 72.405333 72.405333l-597.333333 597.333333a51.2 51.2 0 0 1-72.405334-72.405333l597.333334-597.333333z"})}));c.displayName="TextAreaIcon";var u=r(33162),d=r(18983);let m=(0,l.F)(["w-0","flex-1","border-0","bg-transparent","outline-none","text-t1","placeholder:text-t3","transition-all","duration-200","disabled:cursor-not-allowed","disabled:text-t5","disabled:placeholder:text-t5"],{variants:{variant:{default:[],filled:[]},size:{l:["text-bm16","placeholder:text-bm16"],m:["text-bm14","placeholder:text-bm14"],s:["text-bm14","placeholder:text-bm14"]}},defaultVariants:{variant:"default",size:"l"}}),p=(0,l.F)(["relative","flex","items-center","w-full","rounded-r2","transition-all","duration-200"],{variants:{variant:{default:["bg-bg2","border","border-transparent"],focused:["bg-bg3","border","border-p1"]},size:{l:["h-12","px-s4"],m:["h-10","px-s4"],s:["h-9","px-s3"]}},defaultVariants:{variant:"default",size:"l"}}),f=(0,l.F)(["block","mb-2","text-t1"],{variants:{size:{l:"text-bm14",m:"text-bm14",s:"text-bm14"}},defaultVariants:{size:"l"}}),x=(0,l.F)(["relative","flex","w-full","rounded-r3","transition-all","duration-200"],{variants:{variant:{default:["bg-bg2","border","border-transparent"],focused:["bg-bg3","border","border-p1"]},size:{m:["min-h-[150px]","p-s4","text-bm14"]}},defaultVariants:{variant:"default",size:"m"}}),g=e=>{let{placeholder:t,className:r,disabled:l,value:i,hasValue:o,isFocused:c,inputRef:u,leftInset:d=0,rightInset:m=0,onFocus:p,onBlur:f,onChange:x,onCompositionStart:g,onCompositionEnd:v,readOnly:h,...b}=e,y=s.useRef(null),w=s.useCallback(e=>{y.current=e,"function"==typeof u?u(e):u&&(u.current=e)},[u]),N=c||o,j=s.useMemo(()=>({marginLeft:d>0?"".concat(d,"px"):void 0,marginRight:m>0?"".concat(m,"px"):void 0}),[d,m]);return(0,n.jsx)("div",{className:"relative min-w-0 flex-1 cursor-text","data-motion-state":N?"raised":"idle",onMouseDown:e=>{var t;l||h||e.target!==y.current&&(e.preventDefault(),null==(t=y.current)||t.focus())},children:(0,n.jsxs)("div",{className:"relative h-full min-w-0",style:j,children:[(0,n.jsx)("input",{ref:w,disabled:l,value:i,readOnly:h,placeholder:" ",className:(0,a.Q)("peer h-full w-full border-0 bg-transparent px-0 pt-[16px] pb-[2px] outline-none","text-bm14 text-t1 placeholder:text-transparent","disabled:text-t5 disabled:cursor-not-allowed",r),onFocus:p,onBlur:f,onChange:x,onCompositionStart:g,onCompositionEnd:v,...b}),t?(0,n.jsx)("label",{"aria-hidden":"true",className:(0,a.Q)("text-bm14 pointer-events-none absolute top-1/2 right-0 left-0 origin-left truncate leading-[20px] will-change-transform rtl:origin-right","font-normal transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",N?"text-t1 -translate-y-[18px] scale-[0.785714]":"text-t4 -translate-y-1/2 scale-100"),children:t}):null]})})},v=s.forwardRef((e,t)=>{let{className:r,variant:l="borderless",size:o="l",label:c,labelClassName:u,error:d,leftSlot:x,rightSlot:v,clearable:h,onClear:b,wrapperClassName:y,enablePlaceholderMotion:w=!1,placeholder:N,disabled:j,value:C,type:S="text",onChange:k,defaultValue:T,onFocus:A,onBlur:E,onCompositionStart:z,onCompositionEnd:R,...L}=e,[M,P]=s.useState(!1),[_,I]=s.useState(!1),D=void 0!==C,[B,U]=s.useState(D?null!=C?C:"":null!=T?T:""),F=s.useRef(null),V=s.useRef(null),Q=s.useRef(null),[O,W]=s.useState(0),[K,q]=s.useState(0),G=s.useCallback(e=>{F.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);s.useEffect(()=>{!_&&D&&U(null!=C?C:"")},[D,C,_]);let H=D?_?B:null!=C?C:"":B,X=""!==H,Y="outlined"===l,$=w&&"hidden"!==S;s.useLayoutEffect(()=>{if(!$){W(0),q(0);return}let e=V.current,t=Q.current,r=()=>{var r,n;let a=null!=(r=null==e?void 0:e.offsetWidth)?r:0,l=null!=(n=null==t?void 0:t.offsetWidth)?n:0;W(a>0?a:0),q(l>0?l:0)};if(r(),"undefined"==typeof ResizeObserver)return;let n=new ResizeObserver(r);return e&&n.observe(e),t&&n.observe(t),()=>{n.disconnect()}},[$,x,v,h,X,j,L.readOnly]);let Z=e=>{let t=!!e.nativeEvent.isComposing;(!D||_||t)&&U(e.target.value),null==k||k(e)},J=()=>{if(j||L.readOnly)return;D||U("");let e=F.current;if(e){var t;let r=null==(t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))?void 0:t.set;null==r||r.call(e,"");let n=new Event("input",{bubbles:!0});e.dispatchEvent(n)}null==b||b()};return(0,n.jsxs)("div",{className:"w-full",children:[c&&(0,n.jsx)("label",{className:(0,a.Q)(f({size:o}
1),u),children:c}),(0,n.jsxs)("div",{className:(0,a.Q)(p({variant:M?"focused":"default",size:o}),!$&&"l"===o&&"!rounded-r3",$&&"!rounded-r2 px-s2 py-s1 h-[44px] items-stretch",Y&&"bg-transparent",Y&&!M&&"border-l1",j&&"bg-bg07 border-l1 cursor-not-allowed",y),children:[$?(0,n.jsx)(g,{...L,inputRef:G,type:S,disabled:j,readOnly:L.readOnly,value:H,hasValue:X,isFocused:M,placeholder:N,className:r,leftInset:O,rightInset:K,onFocus:e=>{P(!0),null==A||A(e)},onBlur:e=>{P(!1),null==E||E(e)},onChange:Z,onCompositionStart:e=>{I(!0),U(e.currentTarget.value),null==z||z(e)},onCompositionEnd:e=>{I(!1),U(e.currentTarget.value),null==R||R(e)}}):(0,n.jsxs)(n.Fragment,{children:[x&&(0,n.jsx)("div",{className:"mr-2 flex items-center rtl:mr-0 rtl:ml-2",children:x}),(0,n.jsx)("input",{ref:G,type:S,disabled:j,value:H,placeholder:N,className:(0,a.Q)(m({size:o}),r),onFocus:e=>{P(!0),null==A||A(e)},onBlur:e=>{P(!1),null==E||E(e)},onChange:Z,onCompositionStart:e=>{I(!0),U(e.currentTarget.value),null==z||z(e)},onCompositionEnd:e=>{I(!1),U(e.currentTarget.value),null==R||R(e)},...L})]}),$&&x&&(0,n.jsx)("div",{ref:V,className:"left-s2 absolute top-1/2 z-[1] flex -translate-y-1/2 items-center",children:x}),$?(v||h&&X&&!j&&!L.readOnly)&&(0,n.jsxs)("div",{ref:Q,className:"right-s2 absolute top-1/2 z-[1] flex -translate-y-1/2 items-center gap-1",children:[h&&X&&!j&&!L.readOnly&&(0,n.jsx)("button",{type:"button",onClick:J,className:"text-t3 hover:text-t1 cursor-pointer leading-0 transition-colors","aria-label":"Clear input",children:(0,n.jsx)(i.v,{className:"h-5 w-5 cursor-pointer"})}),v&&(0,n.jsx)("div",{className:"flex items-center",children:v})]}):(0,n.jsxs)(n.Fragment,{children:[h&&X&&!j&&!L.readOnly&&(0,n.jsx)("button",{type:"button",onClick:J,className:"text-t3 hover:text-t1 ml-2 cursor-pointer leading-0 transition-colors rtl:mr-2 rtl:ml-0","aria-label":"Clear input",children:(0,n.jsx)(i.v,{className:"h-5 w-5 cursor-pointer"})}),v&&(0,n.jsx)("div",{className:"ml-2 flex items-center rtl:mr-2 rtl:ml-0",children:v})]})]}),d&&(0,n.jsx)("p",{className:"text-b14 mt-1 text-red-500",children:d})]})});v.displayName="Input";let h=s.forwardRef((e,t)=>{let{className:r,variant:l="borderless",label:i,error:o,wrapperClassName:u,showCount:d,maxLength:m,showResizeIndicator:p=!0,size:g="m",value:v,defaultValue:h,onChange:b,onFocus:y,onBlur:w,disabled:N,...j}=e,[C,S]=s.useState(!1),k=void 0!==v,[T,A]=s.useState(k?null!=v?v:"":null!=h?h:""),E=s.useRef(null),z=s.useCallback(e=>{E.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);s.useEffect(()=>{k&&A(null!=v?v:"")},[k,v]);let R=k?null!=v?v:"":T,L=R.length,M=null!=d?d:void 0!==m;return(0,n.jsxs)("div",{className:"w-full",children:[i&&(0,n.jsx)("label",{className:f({size:"s"}),children:i}),(0,n.jsxs)("div",{className:(0,a.Q)(x({variant:C?"focused":"default",size:g}),"outlined"===l&&"bg-transparent","outlined"===l&&!C&&"border-l1","gap-s1 flex-col items-start justify-center",N&&"bg-bg07 border-l1 cursor-not-allowed",u),children:[(0,n.jsx)("textarea",{ref:z,value:R,disabled:N,maxLength:m,className:(0,a.Q)("text-t1 placeholder:text-t3 w-full flex-1 resize-none border-0 bg-transparent outline-none","disabled:text-t5 disabled:placeholder:text-t5","text-b14 placeholder:text-b14",N&&"cursor-not-allowed",r),onFocus:e=>{S(!0),null==y||y(e)},onBlur:e=>{S(!1),null==w||w(e)},onChange:e=>{k||A(e.target.value),null==b||b(e)},...j}),M&&(0,n.jsxs)("div",{className:"text-c11 gap-s0 flex w-full items-center justify-end text-right",children:[(0,n.jsx)("span",{className:(0,a.Q)("pointer-events-none select-none",0===L?"text-t4":"text-t1"),children:L}),void 0!==m&&(0,n.jsxs)("span",{className:"text-t4 pointer-events-none select-none",children:["/",m]})]}),p&&(0,n.jsx)("button",{type:"button","aria-label":"Resize textarea",className:"text-t4 right-s1 bottom-s1 absolute inline-flex size-3 cursor-ns-resize items-center justify-center p-0",onPointerDown:e=>{if(!p||N||j.readOnly)return;let t=E.current;if(!t)return;e.preventDefault();let r=e.clientY,n=t.getBoundingClientRect().height,a=Number.parseFloat(window.getComputedStyle(t).minHeight)||0;t.style.height="".concat(n,"px");let l=e=>{let l=Math.max(a,n+(e.clientY-r));t.style.height="".concat(l,"px")},s=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s)};window.addEventListener("pointermove",l),window.addEventListener("pointerup",s),window.addEventListener("pointercancel",s)},children:(0,n.jsx)(c,{className:"size-3"})})]}),o&&(0,n.jsx)("p",{className:"text-b14 mt-1 text-red-500",children:o})]})});h.displayName="TextArea";let b=s.forwardRef((e,t)=>
1{let[r,a]=s.useState(!1);return(0,n.jsx)(v,{...e,ref:t,type:r?"text":"password",rightSlot:(0,n.jsx)("button",{type:"button",onClick:()=>a(!r),className:"text-t3 hover:text-t1 cursor-pointer leading-0 transition-colors","aria-label":r?"Hide password":"Show password",children:r?(0,n.jsx)(u.c,{className:"h-5 w-5"}):(0,n.jsx)(d.b,{className:"h-5 w-5"})})})});b.displayName="PasswordInput";let y=s.forwardRef((e,t)=>{let{length:r=6,onChange:l,value:i="",disabled:o,className:c}=e,u=s.useRef([]),[d,m]=s.useState(i.split("").concat(Array(r).fill("")).slice(0,r)),[p,f]=s.useState(-1);s.useEffect(()=>{m(i.split("").concat(Array(r).fill("")).slice(0,r))},[i,r]);let x=e=>{var t;e.preventDefault();let n=e.clipboardData.getData("text/plain").slice(0,r),a=n.split("").concat(Array(r).fill("")).slice(0,r);m(a),null==l||l(a.join(""));let s=Math.min(n.length,r-1);null==(t=u.current[s])||t.focus()};return(0,n.jsx)("div",{ref:t,className:(0,a.Q)("gap-s2 flex",c),children:Array.from({length:r}).map((e,t)=>{d[t];let s=p===t;return(0,n.jsx)("div",{className:(0,a.Q)("rounded-r2 flex h-11 w-11 items-center justify-center border transition-all md:h-15 md:w-15","bg-bg2 border-l1",s&&"bg-bg3 border-p1",o&&"cursor-not-allowed opacity-30"),children:(0,n.jsx)("input",{ref:e=>{u.current[t]=e},type:"text",inputMode:"numeric",maxLength:1,value:d[t]||"",onChange:e=>((e,t)=>{if(t&&!/^\d$/.test(t))return;let n=[...d];if(n[e]=t,m(n),null==l||l(n.join("")),t&&e<r-1){var a;null==(a=u.current[e+1])||a.focus()}})(t,e.target.value),onKeyDown:e=>((e,t)=>{if("Backspace"===t.key&&!d[e]&&e>0){var r;null==(r=u.current[e-1])||r.focus()}})(t,e),onFocus:()=>f(t),onBlur:()=>f(-1),onPaste:x,disabled:o,className:"text-tm24 text-t1 h-full w-full border-0 bg-transparent text-center font-semibold outline-none"})},t)})})});y.displayName="OTPInput"},46383:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n="floating_signup_banner_last_show_time"},47387:(e,t,r)=>{"use strict";r.d(t,{Nm:()=>s,hv:()=>l});var n=r(69534);let a=e=>{let{namespace:t}=e,r="".concat(t,".preferences");return{set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={...n.xM.getItem(r)||{},...e};n.xM.setItem(r,t)},get(e){let t=n.xM.getItem(r)||{};return e?t[e]:t}}},l=a({namespace:"contract_futures"}),s=a({namespace:"contract_simul"})},53678:(e,t,r)=>{"use strict";r.d(t,{FT:()=>i,HY:()=>c,Ou:()=>d,R9:()=>m,Sv:()=>s,cz:()=>u});var n=r(79237),a=r(90477),l=r(4487);function s(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"empty",className:(0,a.Q)("flex w-40 min-w-0 flex-1 flex-col items-center justify-center text-center",t),...r})}function i(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"empty-header",className:(0,a.Q)("mt-s2 mb-s1 flex max-w-sm flex-col items-center gap-1 text-center",t),...r})}r(38113);let o=(0,l.F)("flex shrink-0 items-center justify-center rounded-lg backdrop-blur-[1.5px]",{variants:{size:{l:"h-30 w-30 rounded-md",m:"h-20 w-20 rounded"}},defaultVariants:{size:"m"}});function c(e){let{className:t,size:r="m",src:l,alt:s="empty",children:i,...c}=e;return i?(0,n.jsx)("div",{"data-slot":"empty-media","data-size":r,className:(0,a.Q)(o({size:r}),t),...c,children:i}):l?(0,n.jsx)("div",{"data-slot":"empty-media","data-size":r,className:(0,a.Q)(o({size:r}),t),...c,children:(0,n.jsx)("img",{src:l,alt:s,className:"h-full w-full object-contain"})}):null}function u(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"empty-title",className:(0,a.Q)("text-t1 text-base leading-[1.4] font-semibold",t),...r})}function d(e){let{className:t,...r}=e;return(0,n.jsx)("p",{"data-slot":"empty-description",className:(0,a.Q)("mb-s4 text-t3 text-bm14",t),...r})}function m(e){let{description:t,className:r}=e;return(0,n.jsxs)(s,{className:r,children:[(0,n.jsx)(c,{size:"m",children:(0,n.jsx)("span",{"aria-hidden":"true",className:(0,a.Q)("block h-[100px] w-[100px]","bg-contain bg-center bg-no-repeat","bg-[url('https://cdn.tapbit.mobi/next-web/common/no-record.png')]")})}),(0,n.jsx)(d,{children:t})]})}},58720:(e,t,r)=>{Promise.resolve().then(r.bind(r,41636)),Promise.resolve().then(r.bind(r,93924)),Promise.resolve().then(r.t.bind(r,76958,23)),Promise.resolve().then(r.bind(r,97120)),Promise.resolve().then(r.bind(r,94180)),Promise.resolve().then(r.bind(r,7608)),Promise.resolve().then(r.bind(r,84361)),Promise.resolve().then(r.bind(r,8918)),Promise.resolve().then(r.bind(r,26485)),Promise.resolve().then(r.bind(r,35256)),Promise.resolve().then(r.bind(r,81315)),Promise.resolve().then(r.bind(r,4735
15)),Promise.resolve().then(r.bind(r,7248))},65568:(e,t,r)=>{"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{y:()=>n})},71591:(e,t,r)=>{"use strict";r.d(t,{v:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M85.333333 512c0 235.648 191.018667 426.666667 426.666667 426.666667s426.666667-191.018667 426.666667-426.666667S747.648 85.333333 512 85.333333 85.333333 276.352 85.333333 512z m549.76-183.253333a42.538667 42.538667 0 0 1 60.16 60.16l-111.786666 111.786666a16 16 0 0 0 0 22.613334l111.786666 111.786666a42.538667 42.538667 0 1 1-60.16 60.16l-111.786666-111.786666a16 16 0 0 0-22.613334 0l-111.786666 111.786666a42.538667 42.538667 0 1 1-60.16-60.16l111.786666-111.786666a16 16 0 0 0 0-22.613334l-111.786666-111.786666a42.538667 42.538667 0 0 1 60.16-60.16l111.786666 111.786666a16 16 0 0 0 22.613334 0l111.786666-111.786666z"})}));s.displayName="ClearIcon"},73799:(e,t,r)=>{"use strict";r.d(t,{l:()=>l});var n=r(79237),a=r(90477);let l=(0,r(38113).forwardRef)((e,t)=>{let{className:r,value:l,children:s,...i}=e,o="string"==typeof l?parseFloat(l):l,c=o>0,u=o<0,d=0===o;return l?(0,n.jsx)("span",{ref:t,className:(0,a.cn)("text-sm font-medium",c&&"text-[var(--color-p2)]",u&&"text-[var(--color-p3)]",d&&"text-[var(--color-t1)]",r),...i,children:s||(c?"+":"")+o.toFixed(2)+"%"}):null});l.displayName="Change"},74396:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FloatingSignupBanner:()=>f,default:()=>x});var n=r(79237),a=r(51924),l=r(70659),s=r(66960),i=r(97624),o=r(53578),c=r(69534),u=r(90477),d=r(51025),m=r(38113),p=r(46383);let f=()=>{let e=(0,d.k)(e=>e.user),t=null==e?void 0:e.userId,[r,f]=(0,m.useState)(!t),{$t:x}=(0,s.B)();return(0,n.jsxs)("div",{className:(0,u.cn)("fixed bottom-[32px] left-1/2 z-[9999] hidden w-max -translate-x-1/2 items-center lg:flex",!r&&"!hidden"),children:[(0,n.jsxs)("div",{className:"bg-bg4 border-l1 flex w-max max-w-[900px] items-center justify-between rounded-[40px] border p-4",style:{boxShadow:"0px 12px 40px 0px #0000000A",backgroundImage:"linear-gradient(90.58deg, rgba(213, 213, 213, 0.2) 5.04%, rgba(255, 187, 0, 0.2) 84.58%, rgba(254, 188, 6, 0.2) 94.38%)"},children:[(0,n.jsx)("img",{src:"https://cdn.tapbit.mobi/home/registry-float-banner.png",alt:"",className:"mr-[18px] ml-2 h-12 w-auto rtl:mr-2 rtl:ml-[18px]"}),(0,n.jsx)("div",{className:"mr-6 text-[18px] font-medium rtl:mr-0 rtl:ml-6",dangerouslySetInnerHTML:{__html:(0,i.p)(x("Up to {0} in rewards for new futures traders. Join now!",{0:'<span style="color: #E6A800; font-weight: 600; font-size: 20px;">5,000 USDT</span>'}))}}),(0,n.jsx)(l.$,{onClick:()=>{(0,o.Bs)("",{User_from:"stick_bottombar_signup"})},className:"h-12 !rounded-3xl text-base font-semibold",children:x("Sign Up Now")})]}),(0,n.jsx)("div",{className:"bg-bg5 text-t3 hover:text-t1 mx-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full",onClick:()=>{f(!1),c.xM.setItem(p.A,Date.now())},children:(0,n.jsx)(a.U,{})})]})},x=f},85906:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M275.114667 143.018667a51.2 51.2 0 0 0-72.405334 72.405333l305.109334 305.109333-305.109334 305.152a51.2 51.2 0 0 0 72.405334 72.405334l341.333333-341.333334a51.2 51.2 0 0 0 0-72.405333l-341.333333-341.333333zM802.133333 119.466667A51.2 51.2 0 0 0 750.933333 170.666667v682.666666a51.2 51.2 0 0 0 102.4 0V170.666667a51.2 51.2 0 0 0-51.2-51.2z"})}));s.displayName="LastIcon"},87042:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M810.666667 499.2a311.466667 311.466667 0 1 0-311.466667 311.466667c83.626667 0 159.530667-33.066667 215.466667-86.698667a51.370667 51.370667 0 0 1 9.258666-9.216A310.314667 310.314667 0 0 0 810.666667 499.2z m102.4 0a411.946667 411.946667 0 0 1-87.296 254.122667l98.730666 98.773333a51.2 51.2 0 0 1-72.405333 72.405333l-98.773333-98.730666A411.946667 411.946667 0 0 1 499.2 913.066667c-228.565333 0-413.866667-185.301333-413.866667-413.866667C85.333333 270.634667 270.634667 85.333333 499.2 85.333333c228.565333 0 413.866667 185.301333 413.866667 413.866667z"})}));s.displayName="SearchIcon"},90052:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,b:()=>o});var n=r(79237),a=r(19490),l=r(69534),s=r(34381),i=r(122);function o(e){let{usdt:t,precision:r=2,prefix:o="",...c}=e,{currencyRatesCurrent:u,currencyRatesList:d}=(0,s.cn)(),m=u||l.Ay.getItem("CURRENCY_RATES_CURRENT")||"USD",p=(d||[]).find(e=>e.name===m)||{};if(void 0===t||!p.rate)return"--";let f=new i.A("string"==typeof t?t:Number(t)),x=new i.A(p.rate);return(0,n.jsxs)("span",{...c,children:[o,"".concat(p.symbol||"").concat((0,a.iT)(f.mul(x).toFixed(r)))]})}let c=o},96620:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});let n={SPOT:{SIMPLE_TICKER_ALL:()=>"spot/simple/ticker.all",COMMON_EVENT:()=>"spot/commonEvent",USER_CHAT:()=>"spot/user.chat",USER_EVENT:()=>"spot/userEvent",USER_TIP:()=>"spot/user.tip",ORDER_BOOK:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"spot/orderBook.".concat(e,".").concat(t)},TRADE_LIST:e=>"spot/tradeList.".concat(e),SIMPLE_KLINE:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"kline";return"spot/simple/".concat(r,".").concat(e,".").concat(t)},SIMPLE_TICKER:e=>"spot/simple/ticker.".concat(e)},USDT:{SIMPLE_TICKER_ALL:e=>e?"usdt/simple/ticker.all@".concat(e):"usdt/simple/ticker.all",COMMON_EVENT:()=>"usdt/commonEvent",USER_ACCOUNT:()=>"usdt/user.account",USER_KLINE:()=>"usdt/user.kline",USER_POSITION:()=>"usdt/user.position",USER_EVENT:()=>"usdt/userEvent",CONFIG_FRONT_CALC:()=>"usdt/config.frontCalc",INDEX_PRICE:e=>"usdt/indexPrice.".concat(e),SIMPLE_KLINE:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"kline";return"usdt/simple/".concat(r,".").concat(e,".").concat(t)},MARK_PRICE:(e,t)=>"usdt/simple/markPrice.".concat(e,".").concat(t),SIMPLE_TICKER:e=>"usdt/simple/ticker.".concat(e),TRADE_LIST:e=>"usdt/tradeList.".concat(e),ORDER_BOOK:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"usdt/orderBook.".concat(e,".").concat(t)}},EXCHANGE_RATE:()=>"exchangeRate"}},97624:(e,t,r)=>{"use strict";r.d(t,{p:()=>m,g:()=>p});var n=r(16851);let a=Symbol("dompurify-hooks-configured"),l=/^https?:\/\//i,s=new Set(["behavior","-moz-binding"]),i=/(?:expression\s*\(|(?:java|vb)script\s*:|url\s*\(|@import)/i,o={USE_PROFILES:{html:!0}},c=new Set(["tapbit.com","tapbit.mobi","vimeo.com","player.vimeo.com","youtube.com","youtube-nocookie.com"]),u={...o,ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","referrerpolicy"],RETURN_DOM:!0};function d(e){e[a]||(e.addHook("uponSanitizeAttribute",(e,t)=>{"a"===e.tagName.toLowerCase()&&"target"===t.attrName&&"_blank"===t.attrValue&&(t.forceKeepAttr=!0)}),e.addHook("afterSanitizeAttributes",e=>{if(!(e&&"object"==typeof e&&"getAttribute"in e&&"setAttribute"in e&&"removeAttribute"in e))return;let t=e.getAttribute("style");if(t){let r=function(e){let t=[];return e.split(";
1").forEach(e=>{let r=e.trim();if(!r)return;let[n,...a]=r.split(":");if(!n||0===a.length)return;let l=n.trim().toLowerCase(),o=a.join(":").trim();!o||s.has(l)||i.test(o)||t.push("".concat(l,": ").concat(o))}),t.join("; ")}(t);r?e.setAttribute("style",r):e.removeAttribute("style")}!function(e){var t;let r=e.getAttribute("href");if(!r){e.removeAttribute("target"),e.removeAttribute("rel");return}if("_blank"!==e.getAttribute("target")||!l.test(r))return;let n=new Set((null!=(t=e.getAttribute("rel"))?t:"").split(/\s+/).filter(Boolean));n.add("noopener"),n.add("noreferrer"),e.setAttribute("rel",Array.from(n).join(" "))}(e)}),e[a]=!0)}let m=function(e){return d(e),t=>t&&e.isSupported?e.sanitize(t,o):""}(n.A),p=function(e){return d(e),t=>{if(!t||!e.isSupported)return"";let r=e.sanitize(t,u);return Array.from(r.getElementsByTagName("a")).forEach(e=>{e.getAttribute("href")||function(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}),Array.from(r.getElementsByTagName("img")).forEac
1h(e=>{if(!e.getAttribute("src"))return void e.remove();e.getAttribute("loading")||e.setAttribute("loading","lazy"),e.getAttribute("decoding")||e.setAttribute("decoding","async")}),Array.from(r.getElementsByTagName("source")).forEach(e=>{e.getAttribute("src")||e.remove()}),Array.from(r.getElementsByTagName("iframe")).forEach(e=>{let t=e.getAttribute("src");if(!t||!function(e){try{let t=new URL(e);return/^https?:$/i.test(t.protocol)&&c.has(t.hostname.replace(/^www\./i,""))}catch(e){return!1}}(t))return void e.remove();e.getAttribute("loading")||e.setAttribute("loading","lazy"),e.getAttribute("referrerpolicy")||e.setAttribute("referrerpolicy","no-referrer")}),r.innerHTML}}(n.A)},99978:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(79237),a=r(38113),l=r(65375);let s=a.forwardRef((e,t)=>(0,n.jsx)(l.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M748.885333 143.018667a51.2 51.2 0 0 1 72.405334 72.405333L516.181333 520.533333l305.109334 305.152a51.2 51.2 0 0 1-72.405334 72.405334l-341.333333-341.333334a51.2 51.2 0 0 1 0-72.405333l341.333333-341.333333zM221.866667 119.466667A51.2 51.2 0 0 1 273.066667 170.666667v682.666666A51.2 51.2 0 0 1 170.666667 853.333333V170.666667a51.2 51.2 0 0 1 51.2-51.2z"})}));s.displayName="FirstIcon"}},e=>{e.O(0,[1869,2346,3429,3932,2181,8835,1690,709,4390,8582,7243,2009,2243,1757,760,7377,5186,7292,7990,6851,6901,9965,218,7320,9921,2758,4652,7358],()=>e(e.s=58720)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.