1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3953],{2250:(e,t,a)=>{a.d(t,{B:()=>r,N:()=>n});var l=a(76273);function r(e){if(null==e||""===e)return!1;let t=Number(e);return Number.isFinite(t)&&0!==t}function n(e,t,a){let n=(0,l.gF)(e,t);return r(a)?(0,l.gF)(n,null!=a?a:0):n}},8992:(e,t,a)=>{a.r(t),a.d(t,{default:()=>lP});var l,r,n,s,i,c,o,d,h,m,u,x,p,f,g,v,w,b,k,j,y,E,N,_,A,O,C,M,P,S,z,L,R,D,B,H,F,V,I,T,W,G,U,q,$,J,X,Y,K,Q,Z,ee,et,ea,el,er,en,es,ei,ec,eo,ed,eh,em,eu,ex,ep,ef,eg,ev,ew,eb,ek,ej,ey,eE,eN,e_,eA,eO,eC,eM,eP,eS,ez,eL,eR,eD,eB,eH,eF,eV,eI=a(80069),eT=a(95702),eW=a(20801),eG=a(36126),eU=a(34852),eq=a(44485),e$=a.n(eq),eJ=a(66926);function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let eY=function(e){return eW.createElement("svg",eX({xmlns:"http://www.w3.org/2000/svg",width:120,height:22,fill:"none"},e),l||(l=eW.createElement("path",{fill:"#EDBE18",d:"M5.469 13.44a.89.89 0 0 1 0 1.259l-2.937 2.936a1.483 1.483 0 1 1-2.098-2.097L3.371 12.6a.89.89 0 0 1 1.259 0z"})),r||(r=eW.createElement("path",{fill:"#EDBE18",d:"M11.815 13.076a1.483 1.483 0 0 1-.053 2.042l-5.874 5.874a1.483 1.483 0 0 1-2.097-2.098l4.405-4.405a.593.593 0 0 0 0-.84L.434 5.89A1.483 1.483 0 1 1 2.532 3.79l9.23 9.23zM17.635 18.894a1.483 1.483 0 0 1-2.097 2.098L12.6 18.055a.89.89 0 0 1 0-1.259l.839-.839a.89.89 0 0 1 1.259 0zM8.825 3.371a.89.89 0 0 1 0 1.259l-.839.839a.89.89 0 0 1-1.259 0L3.791 2.532A1.483 1.483 0 1 1 5.888.434zM17.635.434c.58.58.58 1.519 0 2.098L13.23 6.937a.593.593 0 0 0 0 .84l7.762 7.76a1.483 1.483 0 1 1-2.098 2.098l-9.23-9.23a1.483 1.483 0 0 1 0-2.097L15.538.434c.579-.579 1.518-.579 2.097 0"})),n||(n=eW.createElement("path",{fill:"#EDBE18",d:"M20.992 3.79c.579.58.579 1.52 0 2.098l-2.937 2.937a.89.89 0 0 1-1.259 0l-.839-.839a.89.89 0 0 1 0-1.259l2.937-2.936c.58-.58 1.518-.58 2.098 0"})),s||(s=eW.createElement("path",{fill:"#EDBE18",fillRule:"evenodd",d:"M115.649 6.84a4.35 4.35 0 0 1 4.348 4.348v.496a2.98 2.98 0 0 1-2.981 2.982h-6.087c0 1.166.945 2.111 2.112 2.111h5.217c.411 0 .745.334.745.746v1.118a.745.745 0 0 1-.745.745h-5.59a4.35 4.35 0 0 1-4.348-4.348v-3.85a4.35 4.35 0 0 1 4.348-4.348zm-2.764 2.608c-1.08 0-1.956.876-1.956 1.957 0 .36.292.652.652.652h5.155c.36 0 .652-.292.652-.652 0-1.08-.876-1.957-1.956-1.957z",clipRule:"evenodd"})),i||(i=eW.createElement("path",{fill:"#EDBE18",d:"M102.859 2.616c0-.411.334-.745.746-.745h1.118c.411 0 .745.334.745.745v16.025a.745.745 0 0 1-.745.745h-1.118a.746.746 0 0 1-.746-.745z"})),c||(c=eW.createElement("path",{fill:"#EDBE18",fillRule:"evenodd",d:"M90.684 1.871c.411 0 .745.334.745.745v4.586a4.3 4.3 0 0 1 1.74-.362h2.484A4.347 4.347 0 0 1 100 11.188v3.85a4.347 4.347 0 0 1-4.347 4.348h-4.845a1.99 1.99 0 0 1-1.988-1.988V2.616c0-.411.334-.745.746-.745zm1.49 7.577a.745.745 0 0 0-.745.746v5.838c0 .412.334.745.745.745h3.23c1.098 0 1.988-.89 1.988-1.987v-3.354c0-1.098-.89-1.988-1.988-1.988zM81.613 6.84a4.35 4.35 0 0 1 4.348 4.348v6.21c0 1.098-.89 1.988-1.987 1.988h-5.249a3.944 3.944 0 0 1 0-7.888h3.292c.469 0 .918.082 1.335.232v-.046a2.236 2.236 0 0 0-2.236-2.236H76.52a.745.745 0 0 1-.745-.745V7.585c0-.411.334-.745.745-.745zm-2.888 7.267a1.335 1.335 0 1 0 0 2.67h3.882a.745.745 0 0 0 .745-.745v-1.18a.745.745 0 0 0-.745-.745z",clipRule:"evenodd"})),o||(o=eW.createElement("path",{fill:"#EDBE18",d:"M67.208 2.492c.412 0 .745.334.745.745V6.84h3.727c.411 0 .745.334.745.745v1.118a.745.745 0 0 1-.745.745h-3.727v5.093a2.236 2.236 0 0 0 2.236 2.236h1.49c.412 0 .746.334.746.746v1.118a.745.745 0 0 1-.745.745h-1.988a4.35 4.35 0 0 1-4.347-4.348v-5.59H63.73a.745.745 0 0 1-.746-.745V7.585c0-.411.334-.745.746-.745h1.615V3.238c0-.412.333-.746.745-.746zM59.777 1.871c.411 0 .745.334.745.745v1.491a.745.745 0 0 1-.745.745h-8.199c-1.098 0-1.987.89-1.987 1.988v.31c0 1.098.89 1.988 1.987 1.988h5.217a4.35 4.35 0 0 1 4.348 4.348v1.552a4.35 4.35 0 0 1-4.348 4.348h-8.82a.745.745 0 0 1-.745-.745v-1.49c0-.413.334-.746.746-.746h8.198c1.098 0 1.988-.89 1.988-1.988v-.31c0-1.098-.89-1.988-1.988-1.988h-5.217a4.35 4.35 0 0 1-4.348-4.347V6.219a4.35 4.35 0 0 1 4.348-4.348zM31.233 1.871c.23 0 .446.106.588.287l4.714 6.034 4.714-6.034a.75.75 0 0 1 .588-.287h1.891c.621 0 .97.715.587 1.204l-5.889 7.538 5.914 7.569a.745.745 0 0 1-.587 1.204H41.86a.75.75 0 0 1-.587-.287l-4.74-6.065-4.738 6.065a.75.75 0 0 1-.587.287h-1.892a.745.745 0 0 1-.587-1.204l5.913-7.57-5.889-7.537a.745.745 0 0 1 .588-1.204z"})))};function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let eQ=function(e){return eW.createElement("svg",eK({xmlns:"http://www.w3.org/2000/svg",width:105,height:19,fill:"none"}
1,e),d||(d=eW.createElement("path",{fill:"#EDBE18",d:"M4.785 11.76a.78.78 0 0 1 0 1.1l-2.57 2.57A1.298 1.298 0 0 1 .38 13.595l2.57-2.57a.78.78 0 0 1 1.101 0z"})),h||(h=eW.createElement("path",{fill:"#EDBE18",d:"M10.338 11.44c.46.51.445 1.297-.046 1.788l-5.14 5.139a1.298 1.298 0 0 1-1.835-1.836l3.854-3.854a.52.52 0 0 0 0-.734l-6.79-6.79a1.298 1.298 0 1 1 1.835-1.836l8.076 8.075zM15.431 16.531a1.298 1.298 0 0 1-1.835 1.836l-2.57-2.57a.78.78 0 0 1 0-1.101l.734-.734a.78.78 0 0 1 1.101 0zM7.722 2.95a.78.78 0 0 1 0 1.1l-.734.735a.78.78 0 0 1-1.101 0l-2.57-2.57A1.298 1.298 0 1 1 5.152.38zM15.431.38a1.3 1.3 0 0 1 0 1.835L11.577 6.07a.52.52 0 0 0 0 .734l6.79 6.79a1.298 1.298 0 1 1-1.835 1.836L8.456 7.355a1.3 1.3 0 0 1 0-1.836L13.596.38a1.3 1.3 0 0 1 1.835 0"})),m||(m=eW.createElement("path",{fill:"#EDBE18",d:"M18.368 3.317a1.3 1.3 0 0 1 0 1.835l-2.57 2.57a.78.78 0 0 1-1.101 0l-.734-.735a.78.78 0 0 1 0-1.1l2.57-2.57a1.3 1.3 0 0 1 1.835 0"})),u||(u=eW.createElement("path",{fill:"#EDBE18",fillRule:"evenodd",d:"M101.194 5.988a3.804 3.804 0 0 1 3.804 3.804v.435a2.61 2.61 0 0 1-2.608 2.609h-5.326c0 1.02.827 1.847 1.848 1.847h4.565c.36 0 .652.292.652.652v.979c0 .36-.292.652-.652.652h-4.892a3.804 3.804 0 0 1-3.804-3.804v-3.37c0-2.1 1.703-3.804 3.804-3.804zm-2.418 2.283c-.946 0-1.712.766-1.712 1.712 0 .315.255.57.57.57h4.511a.57.57 0 0 0 .571-.57c0-.946-.767-1.712-1.712-1.712z",clipRule:"evenodd"})),x||(x=eW.createElement("path",{fill:"#EDBE18",d:"M90 2.289c0-.36.292-.652.652-.652h.978c.36 0 .653.292.653.652v14.02c0 .36-.292.653-.653.653h-.978a.65.65 0 0 1-.652-.653z"})),p||(p=eW.createElement("path",{fill:"#EDBE18",fillRule:"evenodd",d:"M79.357 1.637c.36 0 .652.292.652.652V6.3c.466-.204.98-.317 1.522-.317h2.174a3.804 3.804 0 0 1 3.804 3.804v3.37c0 2.1-1.703 3.804-3.804 3.804h-4.24a1.74 1.74 0 0 1-1.738-1.74V2.29c0-.36.291-.652.652-.652zm1.305 6.63a.65.65 0 0 0-.653.652v5.108c0 .36.292.652.653.652h2.825c.961 0 1.74-.778 1.74-1.739v-2.934c0-.96-.779-1.74-1.74-1.74zM71.408 5.988a3.804 3.804 0 0 1 3.804 3.804v5.435c0 .96-.779 1.739-1.739 1.739h-4.592a3.45 3.45 0 1 1 0-6.902h2.88c.41 0 .804.072 1.169.203v-.04c0-1.08-.876-1.956-1.957-1.956h-4.022a.65.65 0 0 1-.652-.652V6.64c0-.36.292-.652.652-.652zm-2.527 6.359a1.168 1.168 0 1 0 0 2.336h3.396c.36 0 .653-.292.653-.652V13a.65.65 0 0 0-.653-.652z",clipRule:"evenodd"})),f||(f=eW.createElement("path",{fill:"#EDBE18",d:"M58.805 2.176c.36 0 .652.292.652.652V5.98h3.261c.36 0 .652.292.652.652v.978c0 .36-.292.652-.652.652h-3.26v4.456c0 1.08.875 1.957 1.956 1.957h1.304c.36 0 .652.292.652.652v.978c0 .36-.292.652-.652.652h-1.74a3.804 3.804 0 0 1-3.803-3.804v-4.89h-1.413a.65.65 0 0 1-.653-.653v-.978c0-.36.292-.652.652-.652h1.414V2.828c0-.36.292-.652.652-.652zM52.31 1.637c.36 0 .653.292.653.652v1.304c0 .36-.292.652-.652.652h-7.174c-.96 0-1.74.779-1.74 1.74v.27c0 .961.78 1.74 1.74 1.74h4.565a3.804 3.804 0 0 1 3.804 3.804v1.359c0 2.1-1.703 3.804-3.804 3.804h-7.717a.65.65 0 0 1-.652-.653v-1.304c0-.36.291-.652.652-.652h7.173c.961 0 1.74-.778 1.74-1.739v-.272a1.74 1.74 0 0 0-1.74-1.739h-4.565A3.804 3.804 0 0 1 40.79 6.8V5.441c0-2.101 1.703-3.804 3.804-3.804zM27.33 1.637c.2 0 .39.092.514.25l4.125 5.28 4.125-5.28a.65.65 0 0 1 .514-.25h1.655c.544 0 .849.625.514 1.053l-5.153 6.595 5.175 6.623a.652.652 0 0 1-.514 1.054H36.63c-.2 0-.39-.093-.514-.251l-4.147-5.307-4.147 5.307a.65.65 0 0 1-.514.25h-1.655a.652.652 0 0 1-.514-1.053l5.175-6.623-5.153-6.595a.652.652 0 0 1 .514-1.053z"})))};var eZ=a(98503),e0=a(83548),e1=a(85784),e2=a(57454),e5=a(34812),e3=a.n(e5);let e4=JSON.parse('{"nm":"Main Scene","ddd":0,"h":40,"w":400,"meta":{"g":"@lottiefiles/creator 1.61.0"},"layers":[{"ty":0,"nm":"Pre-comp 1","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[200,200,0]},"s":{"a":0,"k":[136.3281005703213,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[202.032,28.01400000000001]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"masksProperties":[{"nm":"Mask 2","inv":false,"mode":"a","x":{"a":0,"k":0},"o":{"a":0,"k":100},"pt":{"a":0,"k":{"c":true,"i":[[4.821,0],[0,0],[0,-4.821],[-4.821,0],[0,0],[0,2.771]],"o":[[0,0],[-4.821,0],[0,4.821],[0,0],[4.821,0],[0,-2.417]],"v":[[337.122,186.522],[59.625,186.49],[52.02,192.229],[59.708,197.449],[337.205,197.481],[343.914,191.917]]}}}],"w":400,"h":400,"refId":"comp_0_8e8a2d7e-f32e-4c60-9185-29d9dff68564","ind":1}],"v":"5.7.0","fr":29.9700012207031,"op":61.0000024845809,"ip":0,"assets":[{"nm":"Scene","id":"comp_0_8e8a2d7e-f32e-4c60-9185-29d9dff68564","layers":[{"ty":0,"nm":"Pre-comp 2","sr":1,"st":-1.00000004073083,"op":899.000036617021,"ip":-1.00000004073083,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[200,200,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.372,"y":0.995},"s":[-63.707,132,0],"t":-1,"ti":[-95.4166641235352,0,0],"to":[95.4166641235352,0,0]},{"s":[508.793,132,0],"t":30.0000026475043}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}
1,"w":400,"h":400,"refId":"comp_1_ea753514-2633-4259-ba76-e1133e377787","ind":1},{"ty":0,"nm":"Pre-comp 2","sr":1,"st":47.0000019143492,"op":947.000038572101,"ip":47.0000019143492,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[200,200,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.663,"y":0.994},"s":[-120.707,132,0],"t":47,"ti":[-100.166664123535,0,0],"to":[100.166664123535,0,0]},{"s":[480.293,132,0],"t":70.0000048877}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"w":400,"h":400,"refId":"comp_1_ea753514-2633-4259-ba76-e1133e377787","ind":2},{"ty":4,"nm":"Master","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[146.5,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[198,192,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.858],[2.859,0],[0,0],[0,2.858]],"o":[[0,0],[2.859,0],[0,2.858],[0,0],[-2.858,0],[0,-2.858]],"v":[[-140.825,-5.175],[140.825,-5.175],[146,0.001],[140.825,5.175],[-140.825,5.175],[-146,0.001]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.85,0.85,0.85]},"r":1,"o":{"a":0,"k":60}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[146.25,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]},{"nm":"Scene_1","id":"comp_1_ea753514-2633-4259-ba76-e1133e377787","layers":[{"ty":4,"nm":"Layer 5/progressbar-final Outlines","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[76.5,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[296,260,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.859],[2.859,0],[0,0],[0,2.857]],"o":[[0,0],[2.859,0],[0,2.857],[0,0],[-2.858,0],[0,-2.859]],"v":[[-70.825,-5.175],[70.825,-5.175],[76,0],[70.825,5.175],[-70.825,5.175],[-76,0]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.929,0.745,0.094]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[76.25,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Layer 4/progressbar-final Outlines","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[22.5,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[86,260,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.859],[2.858,0],[0,0],[0,2.857]],"o":[[0,0],[2.858,0],[0,2.857],[0,0],[-2.858,0],[0,-2.859]],"v":[[-16.825,-5.175],[16.825,-5.175],[22,0],[16.825,5.175],[-16.825,5.175],[-22,0]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.929,0.745,0.094]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[22.25,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Layer 3/progressbar-final Outlines","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[40,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[164,260,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.859],[2.858,0],[0,0],[0,2.857]],"o":[[0,0],[2.858,0],[0,2.857],[0,0],[-2.858,0],[0,-2.859]],"v":[[-34.325,-5.175],[34.325,-5.175],[39.5,0],[34.325,5.175],[-34.325,5.175],[-39.5,0]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.929,0.745,0.094]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[39.75,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]}]}'),e7=e=>{let{isSwitching:t}=e,{theme:a}=(0,eU.D)();return t?(0,eI.jsx)("div",{className:"fixed inset-0 z-[9999] ".concat("dark"===a?"bg-main-background":"bg-white"," flex items-center justify-center"),children:(0,eI.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,eI.jsx)(eY,{className:"w-[120px] h-[22px] fill-current "}),(0,eI.jsx)("div",{className:"w-60 block",children:(0,eI.jsx)(e3(),{animationData:e4,loop:!0,autoplay:!0})})]})}):null};var e8=a(50989),e6=a(44671),e9=a(49500),te=a(79477);function tt(){return(tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let ta=function(e){return eW.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,f
1ill:"none"},e),g||(g=eW.createElement("path",{fill:"#F0B90B",d:"M5.473 4.063 10.736 1l5.262 3.063-1.935 1.132-3.328-1.932-3.327 1.932zm10.525 3.864-1.935-1.132-3.328 1.932-3.327-1.932-1.935 1.132v2.263L8.8 12.122v3.863l1.935 1.132 1.934-1.132v-3.863l3.328-1.932zm0 6.127V11.79l-1.935 1.132v2.263zm1.374.8-3.328 1.931v2.264l5.263-3.064V9.86l-1.935 1.131zm-1.935-8.859 1.935 1.132V9.39l1.935-1.131V5.995l-1.935-1.132zm-6.636 11.61v2.263L10.736 21l1.934-1.132v-2.263l-1.934 1.132zm-3.328-3.551 1.935 1.131v-2.263L5.473 11.79zM8.8 5.995l1.935 1.132 1.934-1.132-1.934-1.132zM4.099 7.127l1.935-1.132-1.935-1.132-1.935 1.132V8.26L4.1 9.39zm0 3.863L2.164 9.86v6.126l5.263 3.064v-2.264l-3.328-1.931z"})))},tl=a.p+"static/media/ic_dark_theme.48a0dd69.svg";function tr(){return(tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tn=function(e){return eW.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none"},e),v||(v=eW.createElement("path",{fill:"currentColor",d:"M21.999 28.001a2 2 0 0 1-3.999 0zM20 10a2 2 0 0 1 2 2v.342c2.33.823 4 3.046 4 5.658v6l2 2v1H12v-1l2-2v-6a6 6 0 0 1 4-5.658V12a2 2 0 0 1 2-2"})))};function ts(){return(ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let ti=function(e){return eW.createElement("svg",ts({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),w||(w=eW.createElement("path",{fill:"currentColor",d:"M13.773 11a.2.2 0 0 1 .199.209c-.234 4.864-1.866 8.65-3.862 8.784q-.077.003-.154.004c-2.026-.055-3.69-3.872-3.927-8.788a.2.2 0 0 1 .2-.209zM3.826 11c.108 0 .196.085.201.193.11 2.497.563 4.807 1.288 6.62q.173.431.375.841c.085.172-.09.362-.262.275a10 10 0 0 1-5.426-7.71A.197.197 0 0 1 .198 11zM19.657 11c.118 0 .21.102.196.22a10 10 0 0 1-5.228 7.604c-.17.09-.35-.097-.265-.27q.176-.364.326-.74c.726-1.814 1.178-4.124 1.287-6.621a.2.2 0 0 1 .2-.193zM5.432 1.064c.171-.086.346.103.26.275q-.204.414-.377.848C4.59 4 4.137 6.31 4.027 8.807a.2.2 0 0 1-.2.193H.197a.197.197 0 0 1-.197-.22 10 10 0 0 1 5.43-7.716M10 0c2.046 0 3.733 3.839 3.972 8.791a.2.2 0 0 1-.199.209H6.228a.2.2 0 0 1-.199-.209C6.27 3.838 7.955 0 10.001 0M14.357 1.44c-.084-.173.095-.361.266-.27a10 10 0 0 1 5.23 7.61.197.197 0 0 1-.196.22h-3.483a.2.2 0 0 1-.2-.193c-.11-2.497-.562-4.807-1.288-6.62a12 12 0 0 0-.329-.747"})))};function tc(){return(tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let to=function(e){return eW.createElement("svg",tc({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),b||(b=eW.createElement("path",{fill:"#6E54FF",d:"M0 11c0 6.075 4.925 11 11 11s11-4.925 11-11S17.075 0 11 0 0 4.925 0 11"})),k||(k=eW.createElement("path",{fill:"#fff",d:"M10.881 4C8.894 4 4 8.89 4 10.875s4.894 6.875 6.881 6.875 6.881-4.89 6.881-6.875S12.869 4 10.883 4M9.81 14.806c-.838-.228-3.091-4.165-2.863-5.002.229-.838 4.17-3.088 5.008-2.86s3.09 4.165 2.862 5.002c-.228.838-4.17 3.089-5.007 2.86"})))};function td(){return(td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let th=function(e){return eW.createElement("svg",td({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),j||(j=eW.createElement("path",{fill:"currentColor",d:"M13.999 20.001a2 2 0 0 1-3.999 0zM12 2a2 2 0 0 1 2 2v.342c2.33.824 4 3.046 4 5.658v6l2 2v1H4v-1l2-2v-6a6 6 0 0 1 4-5.658V4a2 2 0 0 1 2-2"})))};function tm(){return(tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tu=function(e){return eW.createElement("svg",tm({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),y||(y=eW.createElement("path",{fill:"currentColor",d:"M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4M12 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4M20 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4M4 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4M12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4M20 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4M4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4M20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4"})))};function tx(){return(tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tp=function(e){return eW.createElement("svg",tx({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,f
1ill:"none"},e),eW.createElement("g",{clipPath:"url(#ic_sol_22_svg__a)"},eW.createElement("mask",{id:"ic_sol_22_svg__b",width:18,height:16,x:2,y:3,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},E||(E=eW.createElement("path",{fill:"#fff",d:"M20 3H2v15.968h18z"}))),N||(N=eW.createElement("g",{mask:"url(#ic_sol_22_svg__b)"},eW.createElement("path",{fill:"url(#ic_sol_22_svg__c)",d:"m19.907 15.59-2.971 3.16a.7.7 0 0 1-.505.218H2.345a.35.35 0 0 1-.316-.206.34.34 0 0 1 .064-.37l2.973-3.16a.7.7 0 0 1 .504-.218h14.085a.35.35 0 0 1 .316.206.34.34 0 0 1-.064.37m-2.971-6.365a.7.7 0 0 0-.505-.218H2.345a.35.35 0 0 0-.316.206.34.34 0 0 0 .064.37l2.973 3.16a.7.7 0 0 0 .504.218h14.085a.35.35 0 0 0 .316-.206.34.34 0 0 0-.064-.37zM2.345 6.954h14.086a.7.7 0 0 0 .505-.217l2.971-3.161A.341.341 0 0 0 19.655 3H5.57a.7.7 0 0 0-.504.217L2.094 6.378a.341.341 0 0 0 .251.576"})))),_||(_=eW.createElement("defs",null,eW.createElement("linearGradient",{id:"ic_sol_22_svg__c",x1:3.519,x2:18.157,y1:19.349,y2:2.713,gradientUnits:"userSpaceOnUse"},eW.createElement("stop",{offset:.08,stopColor:"#9945FF"}),eW.createElement("stop",{offset:.3,stopColor:"#8752F3"}),eW.createElement("stop",{offset:.5,stopColor:"#5497D5"}),eW.createElement("stop",{offset:.6,stopColor:"#43B4CA"}),eW.createElement("stop",{offset:.72,stopColor:"#28E0B9"}),eW.createElement("stop",{offset:.97,stopColor:"#19FB9B"})),eW.createElement("clipPath",{id:"ic_sol_22_svg__a"},eW.createElement("path",{fill:"#fff",d:"M2 3h18v16H2z"})))))};function tf(){return(tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tg=function(e){return eW.createElement("svg",tf({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none"},e),A||(A=eW.createElement("path",{fill:"#298DFF",d:"M0 11c0 6.075 4.925 11 11 11s11-4.925 11-11S17.075 0 11 0 0 4.925 0 11"})),O||(O=eW.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M14.434 9.782c.596.75.956 1.702.956 2.735a4.4 4.4 0 0 1-.983 2.77l-.054.064-.015-.084a5 5 0 0 0-.042-.214c-.306-1.35-1.308-2.51-2.96-3.45-1.114-.631-1.752-1.392-1.92-2.257-.108-.558-.027-1.12.126-1.603a3.7 3.7 0 0 1 .581-1.124l.643-.784a.282.282 0 0 1 .436 0zm1.013-.784-4.299-5.255a.206.206 0 0 0-.317 0L6.528 8.998l-.016.02a5.72 5.72 0 0 0-1.262 3.587c0 3.163 2.57 5.73 5.737 5.73a5.735 5.735 0 0 0 5.738-5.73 5.7 5.7 0 0 0-1.266-3.588zm-7.89.769.382-.47.011.087q.012.104.035.207c.248 1.304 1.14 2.394 2.624 3.236 1.293.734 2.042 1.58 2.26 2.509.092.386.107.769.07 1.101l-.005.02-.019.007a4.4 4.4 0 0 1-1.931.444 4.395 4.395 0 0 1-4.4-4.391c0-1.04.364-2 .972-2.75",clipRule:"evenodd"})))};function tv(){return(tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tw=function(e){return eW.createElement("svg",tv({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none"},e),C||(C=eW.createElement("path",{fill:"currentColor",d:"M20.04 10a9.5 9.5 0 0 1 9.5 9.5q-.002.11-.007.217c.291.347.467.794.467 1.283v3a2 2 0 0 1-2 2 4 4 0 0 1-4 4h-2a1 1 0 1 1 0-2h2a2 2 0 0 0 2-2v-.175A3 3 0 0 1 24 23v-1a3 3 0 0 1 3-3h.52a7.499 7.499 0 0 0-14.962 0H13a3 3 0 0 1 3 3v1a3 3 0 0 1-3 3h-1a2 2 0 0 1-2-2v-3c0-.529.207-1.009.542-1.366q-.002-.068-.003-.134a9.5 9.5 0 0 1 9.5-9.5"})))},tb=a.p+"static/media/ic_theme.d354bbb5.svg";var tk=a(37127);let tj=e=>{let{close:t}=e,{i18n:a}=(0,eJ.Bd)();return(0,eI.jsx)("div",{className:"w-[132px] bg-panel-background rounded-xl p-2",children:[{label:"English",value:"en-US"},{label:"ç®ä½ä¸æ",value:"zh-CN"},{label:"ç¹é«ä¸æ",value:"zh-TW"},{label:"Portugu\xeas",value:"pt-BR"}].map(e=>(0,eI.jsx)("div",{className:"h-9 flex items-center justify-start px-3 py-1 hover:bg-token-list-item-hover-color hover:rounded-md cursor-pointer",onClick:()=>(e=>{a.changeLanguage(e),(0,e2.Jv)(e),(0,eZ.Fi)({user_language:e}),(0,eZ.$s)(eZ.jD,{lang:e}),t()})(e.value),children:(0,eI.jsx)("span",{className:"text-[14px] font-normal ".concat(e.value===(0,e2.Hg)()?"text-main-color":"text-text-dark"),children:e.label})},e.value))})};
1var ty=a(33291);function tE(){return(tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tN=function(e){return eW.createElement("svg",tE({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),M||(M=eW.createElement("path",{fill:"currentColor",d:"M21 11H6.414l5.293-5.293-1.414-1.414L2.586 12l7.707 7.707 1.414-1.414L6.414 13H21z"})))};var t_=a(72103),tA=a(70140);function tO(){return(tO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tC=function(e){return eW.createElement("svg",tO({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),P||(P=eW.createElement("path",{stroke:"#6C757D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,d:"m10.5 3.5-7 7M4.664 3.5h5.833v5.833"})))};var tM=a(34202),tP=a(83046),tS=a(76055),tz=a(84243),tL=a(34733);let tR=e=>{let{type:t,close:a}=e,{t:l}=(0,eJ.Bd)(),r=(0,eT.useRouter)(),n=(0,eT.useSearchParams)().get("ref"),[s,i]=(0,eW.useState)(!0),[c,o]=(0,eW.useState)([]),{showPartnerInviteConfirmDialog:d,showPartnerInviteResultDialog:h}=(0,tS.s)(),m=(0,eJ.TO)().language,[u,x]=(0,eW.useState)(!0),p=(0,eW.useRef)(null),f=(0,eW.useRef)(0),g=(0,tz.lu)(e=>e.unReadNum),v=()=>{(0,tA.PI)({pageNum:f.current+1,pageSize:10,readStatus:1===t?"READ":"UNREAD"}).then(e=>{if(e&&(o(t=>[...t,...e.list]),f.current=e.pageNum,x((e.pageNum-1)*e.pageSize+e.list.length<e.total),0===t)){let t=e.list.length;0===g?t>0&&(0,tz.sT)():0===t&&(0,tz.IY)()}}).finally(()=>{i(!1)})},w=(0,eW.useMemo)(()=>c.map(e=>({...e,parsedContent:(0,tL.l6)(e,m)})),[c,m]),b=e=>{switch(e.messageType){case"SUPER_AGENT_INVITE":d(e,()=>{f.current=0,v(),(0,tz.sT)()});break;case"SUPER_AGENT_INVITE_AGREE":case"SUPER_AGENT_INVITE_REJECT":h(e)}k(e)},k=e=>{"READ"!==e.readStatus&&(0,tA.t0)({inboxId:e.id}).then(t=>{t&&(o(t=>t.map(t=>t.id===e.id?{...t,readStatus:"READ"}:t)),(0,tz.SK)())})},j=(0,eW.useCallback)(e=>{p.current&&p.current.disconnect(),e&&(p.current=new IntersectionObserver(e=>{e[0].isIntersecting&&v()},{threshold:.1}),p.current.observe(e))},[]);(0,eW.useEffect)(()=>{v()},[]);let y=()=>{f.current=0,v()};return(0,eW.useEffect)(()=>(0===t&&window.addEventListener("RECEIVE_NEW_NOTICE",y),()=>{window.removeEventListener("RECEIVE_NEW_NOTICE",y)}),[t]),(0,eI.jsx)(eI.Fragment,{children:s?(0,eI.jsx)("div",{className:"text-text-dark h-[200px] flex items-center justify-center",children:(0,eI.jsx)(tP.A,{className:"w-12 h-12"})}):0===w.length?(0,eI.jsx)("div",{className:"text-text-dark w-full h-[200px] mt-[6%] flex items-center justify-center",children:(0,eI.jsx)(tM.A,{text:l("home.no_notice_record")})}):(0,eI.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[w.map((e,t)=>{let s=e.parsedContent;return s?(0,eI.jsx)("div",{className:"bg-segment-background rounded-[10px] px-4 py-5 flex flex-col",children:((e,t)=>{switch(e.messageType){case"SUPER_AGENT_INVITE":return((e,t)=>(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsxs)("div",{className:"flex",children:[(0,eI.jsx)("span",{className:"text-base text-text-dark font-semibold",children:t.title}),"DELETE"!==e.deleteStatus&&"UNREAD"===e.readStatus&&(0,eI.jsx)("div",{className:"w-2 h-2 bg-[#E43C5A] rounded-full ml-0.5"})]}),(0,eI.jsx)("span",{className:"mt-3 text-text-light text-sm font-medium",children:l("home.notice_invite_confirm_des")}),(0,eI.jsx)("span",{className:"text-text-light text-sm font-medium",children:l("home.notice_invite_confirm_account",{account:(0,tL.mb)(t.invitedBy)})}),(0,eI.jsxs)("div",{className:"flex items-center justify-between mt-3",children:[(0,eI.jsx)("span",{className:"text-text-light text-sm font-medium",children:(0,tL._b)(e.sendTime)}),(0,eI.jsx)("span",{className:"text-main-color font-medium cursor-pointer",onClick:()=>b(e),children:l("home.see_detail")})]})]}))(e,t);case"SUPER_AGENT_INVITE_AGREE":case"SUPER_AGENT_INVITE_REJECT":return((e,t)=>(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsxs)("div",{className:"flex",children:[(0,eI.jsx)("span",{className:"text-base text-text-dark font-semibold",children:t.title}
1),"DELETE"!==e.deleteStatus&&"UNREAD"===e.readStatus&&(0,eI.jsx)("div",{className:"w-2 h-2 bg-[#E43C5A] rounded-full ml-0.5"})]}),(0,eI.jsx)("span",{className:"mt-3 text-text-light text-sm font-medium",children:l("home.notice_invite_result_content")}),(0,eI.jsx)("span",{className:"text-text-light text-sm font-medium",children:l("home.notice_invite_result_account",{account:(0,tL.mb)(t.subAffiliateAccount)})}),(0,eI.jsxs)("div",{className:"flex items-center justify-between mt-3",children:[(0,eI.jsx)("span",{className:"text-text-light text-sm font-medium",children:(0,tL._b)(e.sendTime)}),(0,eI.jsx)("span",{className:"text-sm text-main-color font-medium cursor-pointer",onClick:()=>b(e),children:l("home.see_detail")})]})]}))(e,t);case"NORMAL_SHOW":return((e,t)=>(0,eI.jsxs)("div",{className:"flex flex-col cursor-pointer",onClick:()=>((e,t)=>{if(k(e),t)switch(t.linkType){case"APP_PAGE":r.push(n?"".concat(t.link,"?ref=").concat(n):t.link),a();break;case"EXTERNAL":window.open(t.link),a()}})(e,t),children:[(0,eI.jsxs)("div",{className:"flex",children:[(0,eI.jsx)("span",{className:"text-base text-text-dark font-semibold",children:t.title}),"DELETE"!==e.deleteStatus&&"UNREAD"===e.readStatus&&(0,eI.jsx)("div",{className:"w-2 h-2 bg-[#E43C5A] rounded-full ml-0.5"})]}),(0,eI.jsx)("span",{className:"mt-3 text-text-light text-sm font-medium whitespace-pre-wrap leading-5",children:t.description}),(0,eI.jsxs)("div",{className:"flex items-center mt-3 gap-2",children:[(0,eI.jsx)("span",{className:"text-text-light text-sm font-medium",children:(0,tL._b)(t.time)}),"NONE"!==t.linkType&&(0,eI.jsx)(tC,{})]})]}))(e,t)}})(e,s)},t):null}),u&&(0,eI.jsx)("div",{ref:j,className:"h-10 w-full pb-6 text-center text-sm text-text-light",children:l("trade.load_more_loading")}),!u&&(0,eI.jsx)("div",{className:"h-10 w-full flex items-center justify-center mb-3 text-sm text-text-light",children:l("trade.load_more_end")})]})})},tD=e=>{let{close:t}=e,{t:a}=(0,eJ.Bd)(),[l,r]=(0,eW.useState)(0),n=[a("home.unread_msg"),a("home.read_msg")],s=()=>{t()};return(0,eW.useEffect)(()=>{(0,eZ.$s)(eZ.OP)},[]),(0,eI.jsxs)("div",{className:"w-svw h-[calc(100svh-60px)] bg-panel-background px-4 pb-4 md:w-105 md:h-155 flex flex-col flex-1 md:rounded-[16px]",children:[(0,eI.jsxs)("div",{className:"relative flex flex-row w-full h-11 items-center",children:[(0,eI.jsx)(tN,{className:"hidden w-6 h-6 cursor-pointer text-text-light fill-current z-1",onClick:s}),(0,eI.jsx)("span",{className:"absolute left-8 md:left-0 right-8 text-text-dark font-semibold text-[18px] md:text-base flex-1 text-center md:text-start",children:a("home.notice")}),(0,eI.jsx)("div",{className:"flex md:hidden ml-auto cursor-pointer",onClick:()=>s(),children:(0,eI.jsx)(ty.A,{className:"w-6 h-6"})})]}),(0,eI.jsxs)("div",{className:"flex-1 overflow-y-auto ",children:[(0,eI.jsx)("div",{className:"sticky top-0 bg-panel-background z-50 pb-0.5",children:(0,eI.jsx)(t_.A,{value:l,tabs:n,onChange:e=>{r(e.index)},className:"text-sm",showPadding:!1})}),0===l&&(0,eI.jsx)(tR,{type:l,close:s}),1===l&&(0,eI.jsx)(tR,{type:l,close:s})]})]})};function tB(){return(tB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tH=function(e){return eW.createElement("svg",tB({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},e),S||(S=eW.createElement("path",{fill:"#6C757D",d:"M3 2a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2V4a2 2 0 0 0-2-2z"})),z||(z=eW.createElement("path",{fill:"#6C757D",d:"M2 3a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"})))};var tF=a(96197);function tV(){return(tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tI=function(e){return eW.createElement("svg",tV({xmlns:"http://www.w3.org/2000/svg",width:13,height:14,fill:"none"},e),L||(L=eW.createElement("path",{fill:"currentColor",d:"m12.73 7.592-2.71 2.423c-.162.108-.324.216-.54.216a.83.83 0 0 1-.813-.808c0-.215.108-.43.27-.592l1.138-1.023h-4.93A.83.83 0 0 1 4.334 7c0-.43.38-.808.813-.808h4.929L8.938 5.17a.86.86 0 0 1-.271-.592c0-.43.379-.808.812-.808.217 0 .38.054.542.216l2.708 2.423c.163.161.271.377.271.592s-.108.43-.27.592M0 7V.808C0 .323.38 0 .813 0h4.062a.83.83 0 0 1 .813.808.83.83 0 0 1-.813.807h-3.25v10.77h3.25a.83.83 0 0 1 .813.807.83.83 0 0 1-.813.808H.813A.83.83 0 0 1 0 13.192z"})))};var tT=a(93857);let tW=e=>{let{close:t}=e,a=(0,e2.kH)(e=>e.userInfo),l=(0,e2.kH)(e=>e.totalBalance),{disconnect:r}=(0,e6.uP)(),{t:n}=(0,eJ.Bd)(),s=(0,eT.usePathname)(),{showActiveCodeDialog:i,showDepositDialog:c,showWithdrawalDialog:o}=(0,tS.s)();return(0,eI.jsxs)("div",{className:"w-[360px] max-w-[calc(100vw-32px)] bg-panel-background rounded-xl p-6",children:[(0,eI.jsxs)("div",{className:"flex h-[21px] items-start justify-between",children:[(0,eI.jsx)("span",{className:"text-text-light text-sm font-normal leading-[18px]",children:n("home.account")}
1),(0,eI.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,eI.jsx)("span",{className:"text-text-dark text-base font-semibold leading-[21px] truncate",children:(null==a?void 0:a.accountAddress)?(0,tL.bo)(a.accountAddress):(null==a?void 0:a.email)?a.email:""}),(0,eI.jsx)("button",{type:"button",className:"ml-2 text-text-light hover:text-text-dark transition-colors shrink-0 cursor-pointer",onClick:()=>{(0,tL.Dk)((null==a?void 0:a.accountAddress)||(null==a?void 0:a.email)||"")},"aria-label":"Copy address",children:(0,eI.jsx)(tH,{className:"w-3 h-3 fill-current"})})]})]}),(0,eI.jsx)("div",{className:"h-px w-full bg-panel-border-color mt-4"}),(0,eI.jsxs)("div",{className:"flex flex-col mt-4",children:[(0,eI.jsx)("span",{className:"text-text-light text-sm font-normal leading-[18px]",children:n("assets.estimated_total_value")}),(0,eI.jsx)("span",{className:"mt-1 text-text-dark text-[28px] leading-9 font-semibold",children:"".concat((0,tL.tu)(l)," USD")})]}),!(0,e2.Iv)()&&(0,eI.jsxs)("div",{className:"grid grid-cols-2 gap-2 mt-4",children:[(0,eI.jsxs)("button",{type:"button",className:"h-9 rounded-[8px] main-button flex items-center justify-center gap-2 text-sm font-medium",onClick:()=>{(null==a?void 0:a.isActive)?c(!a.accountAddress):i(),null==t||t()},children:[(0,eI.jsx)(tF.A,{className:"w-3.5 h-3.5 fill-current"}),(0,eI.jsx)("span",{children:n("home.deposit")})]}),(0,eI.jsxs)("button",{type:"button",className:"h-9 rounded-[8px] bg-segment-background text-text-dark flex items-center justify-center gap-2 text-sm font-medium",onClick:()=>{(null==a?void 0:a.isActive)?o():i(),null==t||t()},children:[(0,eI.jsx)(tT.A,{className:"w-3.5 h-3.5 fill-current"}),(0,eI.jsx)("span",{children:n("home.withdrawal")})]})]}),(0,eI.jsx)("div",{className:"h-px w-full bg-panel-border-color mt-4"}),(0,eI.jsxs)("button",{type:"button",className:"mt-4 flex h-[18px] w-full items-center text-text-dark cursor-pointer",onClick:()=>{(0,eZ.$s)(eZ.P_),(0,e2.wm)(s),(0,tA.xu)().then(()=>{(0,e2.AX)(),r().catch(e=>{console.error("AppKit disconnect failed:",e),console.error("AppKit disconnect original error:",e&&"object"==typeof e&&"originalError"in e?e.originalError:void 0)}),(0,e2.ri)(),null==t||t()})},children:[(0,eI.jsx)(tI,{className:"w-[13px] h-3.5 fill-current"}),(0,eI.jsx)("span",{className:"ml-1.5 text-sm font-medium leading-[18px]",children:n("home.disconnect")}),(0,eI.jsx)(te.A,{className:"ml-auto w-3.5 h-3.5 -rotate-90 text-text-light fill-current"})]})]})};var tG=a(39580),tU=a(81430),tq=a(83248),t$=a(42351),tJ=a(18184);function tX(){return(tX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tY=function(e){return eW.createElement("svg",tX({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},e),R||(R=eW.createElement("path",{stroke:"#212529",strokeLinecap:"round",strokeOpacity:.4,strokeWidth:2,d:"M11 11 1 1m10 0L1 11"})))};function tK(){return(tK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let tQ=function(e){return eW.createElement("svg",tK({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),D||(D=eW.createElement("rect",{width:20,height:20,fill:"#fff",rx:4})),B||(B=eW.createElement("path",{stroke:"#212529",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 10h10m0 0-3.889-3.5M15 10l-3.889 3.5"})))};function tZ(){return(tZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let t0=function(e){return eW.createElement("svg",tZ({xmlns:"http://www.w3.org/2000/svg",width:12,height:19,fill:"none"},e),H||(H=eW.createElement("path",{fill:"#212529",d:"M5.96 0q.001.097.001.196C6.015 3.14 7.275 8.397 12 9.342c-4.839.7-6.039 6.387-6.04 9.241-.026-2.848-1.105-8.286-5.96-9.24C4.778 8.21 5.957 2.896 5.961.195z"})))};var t1=a(74649);function t2(){return(t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let t5=function(e){return eW.createElement("svg",t2({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none"},e),eW.createElement("mask",{id:"ic_profile_logined_svg__a",width:40,height:40,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},F||(F=eW.createElement("path",{fill:"#212529",d:"M20 40c-8.333 0-12.5 0-15.42-2.122a11.1 11.1 0 0 1-2.458-2.458C0 32.5 0 28.333 0 20S0 7.5 2.122 4.58A11.1 11.1 0 0 1 4.58 2.122C7.5 0 11.667 0 20 0s12.5 0 15.42 2.122a11.1 11.1 0 0 1 2.458 2.458C40 7.5 40 11.667 40 20s0 12.5-2.122 15.42a11.1 11.1 0 0 1-2.458 2.458C32.5 40 28.333 40 20 40"}))),V||(V=eW.createElement("g",{mask:"url(#ic_profile_logined_svg__a)"},eW.createElement("path",{fill:"#212529",d:"M20 40c-8.333 0-12.5 0-15.42-2.122a11.1 11.1 0 0 1-2.458-2.458C0 32.5 0 28.333 0 20S0 7.5 2.122 4.58A11.1 11.1 0 0 1 4.58 2.122C7.5 0 11.667 0 20 0s12.5 0 15.42 2.122a11.1 11.1 0 0 1 2.458 2.458C40 7.5 40 11.667 40 20s0 12.5-2.122 15.42a11.1 11.1 0 0 1-2.458 2.458C32.5 40 28.333 40 20 40"}),eW.createElement("path",{fill:"#EDBE18",d:"M6 34.15c2.602-5.016 7.908-8.453 14.03-8.453 6.075 0 11.346 3.384 13.97 8.338m-8.723-17.632c0 2.983-2.461 5.402-5.496 5.402s-5.497-2.419-5.497-5.402S16.745 11 19.781 11s5.496 2.419 5.496 5.403"}),eW.createElement("path",{fill:"#EDBE18",d:"M6 34.15c2.602-5.016 7.908-8.453 14.03-8.453 6.075 0 11.346 3.384 13.97 8.338V38H6z"}),eW.createElement("path",{fill:"#fff",d:"M6 34.153c2.602-5.018 7.908-8.454 14.03-8.454 6.075 0 11.346 3.383 13.97 8.337"}),eW.createElement("path",{fill:"#fff",d:"M6 34.153c2.602-5.018 7.908-8.454 14.03-8.454 6.075 0 11.346 3.383 13.97 8.337v3.966H6z"}),eW.createElement("path",{stroke:"#212529",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M20 1.5c4.2 0 7.23.002 9.578.257 2.32.251 3.798.735 4.96 1.579a9.6 9.6 0 0 1 2.126 2.126c.844 1.162 1.328 2.64 1.58 4.96.254 2.349.256 5.378.256 9.578s-.002 7.23-.257 9.578c-.251 2.32-.735 3.798-1.579 4.96a9.6 9.6 0 0 1-2.126 2.126c-1.162.844-2.64 1.328-4.96 1.58-2.349.254-5.378.256-9.578.256s-7.23-.002-9.578-.257c-2.32-.251-3.798-.735-4.96-1.579a9.6 9.6 0 0 1-2.126-2.126c-.844-1.162-1.328-2.64-1.58-4.96C1.503 27.23 1.5 24.2 1.5 20s.002-7.23.257-9.578c.251-2.32.735-3.798 1.579-4.96a9.6 9.6 0 0 1 2.126-2.126c1.162-.844 2.64-1.328 4.96-1.58C12.77 1.503 15.8 1.5 20 1.5"}),eW.createElement("path",{fill:"url(#ic_profile_logined_svg__b)",fillOpacity:.8,d:"M.33 5.934A25 25 0 0 0 0 9.998c0 13.807 11.
1193 25 25 25 8.591 0 16.169-4.334 20.669-10.934C43.727 35.937 33.423 44.999 21 44.999c-13.807 0-25-11.193-25-25A24.9 24.9 0 0 1 .33 5.934"}),eW.createElement("path",{fill:"url(#ic_profile_logined_svg__c)",fillOpacity:.8,d:"M40.203 13.758c-2.22 11.533-12.365 20.246-24.547 20.246-8.514 0-16.031-4.257-20.546-10.758a25 25 0 0 0-.454 4.755c0 13.807 11.193 25 25 25s25-11.193 25-25a24.9 24.9 0 0 0-4.453-14.243"}))),I||(I=eW.createElement("defs",null,eW.createElement("linearGradient",{id:"ic_profile_logined_svg__b",x1:45.669,x2:-4,y1:25.466,y2:25.466,gradientUnits:"userSpaceOnUse"},eW.createElement("stop",{stopColor:"#EDBE18",stopOpacity:0}),eW.createElement("stop",{offset:1,stopColor:"#EDBE18"})),eW.createElement("linearGradient",{id:"ic_profile_logined_svg__c",x1:-5.344,x2:44.656,y1:33.379,y2:33.379,gradientUnits:"userSpaceOnUse"},eW.createElement("stop",{stopColor:"#EDBE18",stopOpacity:.4}),eW.createElement("stop",{offset:1,stopColor:"#EDBE18",stopOpacity:.4})))))};function t3(){return(t3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let t4=function(e){return eW.createElement("svg",t3({xmlns:"http://www.w3.org/2000/svg",width:44,height:44,fill:"none"},e),T||(T=eW.createElement("rect",{width:44,height:44,fill:"#212529",rx:22})),W||(W=eW.createElement("path",{fill:"#fff",d:"m19.052 24.9 6.67 4.896c.762.417 1.31.201 1.5-.703l2.716-12.712c.278-1.108-.425-1.61-1.153-1.282L12.84 21.208c-1.088.434-1.
1081 1.037-.198 1.306l4.092 1.269 9.472-5.938c.447-.27.858-.125.52.173z"})))};function t7(){return(t7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let t8=function(e){return eW.createElement("svg",t7({xmlns:"http://www.w3.org/2000/svg",width:44,height:44,fill:"none"},e),G||(G=eW.createElement("rect",{width:44,height:44,fill:"#212529",rx:22})),U||(U=eW.createElement("path",{fill:"#fff",d:"M27.176 14h2.76l-6.03 6.778L31 30h-5.555l-4.35-5.593L16.117 30h-2.762l6.45-7.25L13 14h5.695l3.933 5.113zm-.969 14.375h1.53L17.864 15.54h-1.64z"})))};function t6(){return(t6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let t9=function(e){return eW.createElement("svg",t6({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),q||(q=eW.createElement("path",{fill:"currentColor",d:"M16 6c4.714 0 7.07 0 8.535 1.465C26 8.929 26 11.286 26 16s0 7.07-1.465 8.535C23.071 26 20.714 26 16 26s-7.07 0-8.535-1.465C6 23.071 6 20.714 6 16s0-7.07 1.465-8.535C8.929 6 11.286 6 16 6m-2.5 16a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm-2.021-10L9 19h1.46l.463-1.476h2.397L13.783 19h1.466l-2.492-7zm4.2 0v7h1.375v-2.495h1.222q.784 0 1.343-.27.564-.27.861-.764.298-.495.298-1.173 0-.669-.297-1.188a2.06 2.06 0 0 0-.862-.812Q19.061 12 18.276 12zm5.95 0v7H23v-7zm-8.662 4.395h-1.69l.843-2.7zm5.31-3.265q.393 0 .641.163a.96.96 0 0 1 .362.433q.115.27.114.582 0 .307-.114.552a.85.85 0 0 1-.362.385q-.248.135-.642.135h-1.222v-2.25z"})))};function ae(){return(ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let at=function(e){return eW.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),$||($=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 6c5.523 0 10 4.477 10 10s-4.477 10-10 10S6 21.523 6 16 10.477 6 16 6m.476 5.464a.5.5 0 0 0-.952 0l-.758 2.337a.5.5 0 0 1-.476.345h-2.458a.5.5 0 0 0-.293.905l1.987 1.444a.5.5 0 0 1 .182.559l-.759 2.337a.5.5 0 0 0 .769.558l1.988-1.444a.5.5 0 0 1 .588 0l1.988 1.444a.5.5 0 0 0 .769-.558l-.759-2.337a.5.5 0 0 1 .182-.559l1.987-1.444a.5.5 0 0 0-.293-.905H17.71a.5.5 0 0 1-.476-.345z",clipRule:"evenodd"})))};function aa(){return(aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let al=function(e){return eW.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),J||(J=eW.createElement("path",{fill:"currentColor",d:"M16.04 6a9.5 9.5 0 0 1 9.5 9.5q-.002.108-.007.217c.291.347.467.794.467 1.283v3a2 2 0 0 1-2 2 4 4 0 0 1-4 4h-2a1 1 0 1 1 0-2h2a2 2 0 0 0 2-2v-.175A3 3 0 0 1 20 19v-1a3 3 0 0 1 3-3h.52a7.499 7.499 0 0 0-14.962 0H9a3 3 0 0 1 3 3v1a3 3 0 0 1-3 3H8a2 2 0 0 1-2-2v-3c0-.529.207-1.009.542-1.366q-.001-.068-.003-.134a9.5 9.5 0 0 1 9.5-9.5"})))};function ar(){return(ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let an=function(e){return eW.createElement("svg",ar({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),X||(X=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M26 14.75a3 3 0 1 0 0 6v4H6v-4a3 3 0 1 0 0-6v-4h20zm-6-1a1 1 0 0 0-1 1v6a1 1 0 1 0 2 0v-6a1 1 0 0 0-1-1",clipRule:"evenodd"})),Y||(Y=eW.createElement("path",{fill:"currentColor",d:"m23 7.25-9 3h11z"})))};var as=a(90647);let ai=[{label:"Dark",value:"dark"},{label:"Light",value:"light"}],ac=e=>{let{close:t}=e,{t:a}=(0,eJ.Bd)(),{theme:l,setTheme:r}=(0,eU.D)();return(0,eI.jsxs)("div",{className:"bg-main-background w-screen h-[calc(100svh-60px)]",children:[(0,eI.jsxs)("div",{className:"h-11 flex flex-row items-center px-4 mb-4 gap-3",children:[(0,eI.jsx)(tN,{className:"w-6 h-6 cursor-pointer text-text-light fill-current",onClick:()=>{t()}}),(0,eI.jsx)("div",{className:"text-text-dark",children:a("assets.appearance_settings")})]}),ai.map(e=>(0,eI.jsxs)("div",{className:"flex flex-row justify-between rounded-lg ".concat(e.value===l?"bg-withdraw-button-color":"bg-theme-unselect-bg"," items-center px-3 py-2.5 mx-4 mb-2.5"),onClick:()=>void((0,eZ.$s)(eZ.ah),r("dark"===l?"light":"dark"),t()),children:[(0,eI.jsx)("div",{className:"text-text-dark ",children:"dark"===e.value?a("assets.dark"):a("assets.light")}),(0,eI.jsx)(as.A,{className:"w-6 h-6 text-text-light fill-current ".concat(e.value===l?"flex":"hidden")})]},e.value))]})},ao=[{label:"English",value:"en-US"},{label:"ç®ä½ä¸æ",value:"zh-CN"},{label:"ç¹é«ä¸æ",value:"zh-TW"},{label:"Portugu\xeas",value:"pt-BR"}],ad=e=>{let{close:t}=e,{t:a}=(0,eJ.Bd)(),{i18n:l}=(0,eJ.Bd)(),r=()=>{t()};return(0,eI.jsxs)("div",{className:"bg-main-background w-screen h-[calc(100svh-60px)]",children:[(0,eI.jsxs)("div",{className:"h-11 flex flex-row items-center px-4 mb-4 gap-3",children:[(0,eI.jsx)(tN,{className:"w-6 h-6 cursor-pointer text-text-light fill-current",onClick:r}),(0,eI.jsx)("div",{className:"text-text-dark",onClick:r,children:a("assets.language_settings")})]}),ao.map(e=>(0,eI.jsxs)("div",{className:"flex flex-row justify-between rounded-lg ".concat(e.value===(0,e2.Hg)()?"bg-withdraw-button-color":"bg-theme-unselect-bg"," items-center px-3 py-2.5 mx-4 mb-2.5"),onClick:()=>(e=>{l.changeLanguage(e),(0,e2.Jv)(e),(0,eZ.Fi)({user_language:e}),(0,eZ.$s)(eZ.jD,{lang:e}),t()})(e.value),children:[(0,eI.jsx)("div",{className:"text-text-dark ",children:e.label}),(0,eI.jsx)(as.A,{className:"w-6 h-6 text-text-light fill-current ".concat(e.value===(0,e2.Hg)()?"flex":"hidden")})]},e.value))]})},ah=e=>{var t;let{close:a}=e,{t:l}=(0,eJ.Bd)(),r=(0,e2.kH)(e=>e.userInfo),[n,s]=(0,eW.useState)(!1),i=null!=(t=null==r?void 0:r.accountType)?t:1,c=[{label:l("trade.real"),value:1},{label:l("trade.demo"),value:0}],o=async e=>{(0,eZ.$s)(eZ.vb),i===e||n||(s(!0),await (0,e2.OS)(e)?window.location.reload():(s(!1),a()))};return(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsxs)("div",{className:"bg-main-background w-screen h-[calc(100svh-60px)]",children:[(0,eI.jsxs)("div",{className:"h-11 flex flex-row items-center px-4 mb-4 gap-3",children:[(0,eI.jsx)(tN,{className:"w-6 h-6 cursor-pointer text-text-light fill-current",onClick:()=>{a()}}),(0,eI.jsx)("div",{className:"text-text-dark",children:l("trade.trading_mode")})]}),c.map(e=>(0,eI.jsxs)("div",{className:"flex flex-row justify-between rounded-lg ".concat(e.value===i?"bg-withdraw-button-color":"bg-theme-unselect-bg"," items-center px-3 py-2.5 mx-4 mb-2.5 ").concat(n?"opacity-50":""),onClick:()=>o(e.value),children:[(0,eI.jsx)("div",{className:"text-text-dark ",children:e.label}),(0,eI.jsx)(as.A,{className:"w-6 h-6 text-text-light fill-current ".concat(e.value===i?"flex":"hidden")})]},e.value))]}),(0,eI.jsx)(e7,{isSwitching:n})]})};var am=a(85202);function au(){return(au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let ax=function(e){return eW.createElement("svg",au({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),K||(K=eW.createElement("path",{fill:"currentColor",d:"M5 4a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2V6a2 2 0 0 0-2-2z"})),Q||(Q=eW.createElement("path",{fill:"currentColor",d:"M4 5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h
15a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z"})))};function ap(){return(ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let af=function(e){return eW.createElement("svg",ap({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},e),Z||(Z=eW.createElement("path",{d:"m14.73 9.092-2.71 2.423c-.162.108-.324.216-.54.216a.83.83 0 0 1-.813-.808c0-.215.108-.43.27-.592l1.138-1.023h-4.93a.83.83 0 0 1-.812-.808c0-.43.38-.808.813-.808h4.929L10.938 6.67a.86.86 0 0 1-.271-.592c0-.43.379-.808.812-.808.217 0 .38.054.542.216l2.708 2.423c.163.161.271.377.271.592s-.108.43-.27.592M2 8.5V2.308c0-.485.38-.808.813-.808h4.062a.83.83 0 0 1 .813.808.83.83 0 0 1-.813.807h-3.25v10.77h3.25a.83.83 0 0 1 .813.807.83.83 0 0 1-.813.808H2.813A.83.83 0 0 1 2 14.692z"})))};var ag=a(53208);let av=e=>{let{close:t}=e,a=(0,e2.kH)(e=>e.userInfo),l=(0,ag.U)(e=>e.appKit),{disconnect:r}=(0,am.v)(),{t:n}=(0,eJ.Bd)();return(0,eI.jsxs)("div",{className:"w-full bg-panel-background border border-panel-border-color rounded-[8px]",children:[(0,eI.jsxs)("div",{className:"flex w-full items-center px-2 mt-[11px] cursor-pointer",onClick:()=>{(0,tL.Dk)((null==a?void 0:a.accountAddress)||(null==a?void 0:a.email)||""),t()},children:[(0,eI.jsx)(ax,{className:"w-4 h-4 ml-2 text-text-dark cursor-pointer"}),(0,eI.jsx)("span",{className:"ml-2.5 mr-2 text-text-dark text-sm",children:n("home.copy_address")})]}),(0,eI.jsx)("div",{className:"border-t border-border-color mt-[11px]"}),(0,eI.jsxs)("div",{className:"flex w-full items-center px-2 py-[11px] cursor-pointer",onClick:()=>{console.log("Signing out..."),(0,eZ.$s)(eZ.P_),(0,tA.xu)().then(()=>{(0,e2.AX)(),null==l||l.disconnect(),r(),(0,e2.ri)(),t()})},children:[(0,eI.jsx)(af,{className:"w-4 h-4 ml-2 text-text-dark fill-current"}),(0,eI.jsx)("span",{className:"ml-2.5 mr-2 text-text-dark text-sm",children:n("home.disconnect")})]})]})},aw=new Map([{label:"English",value:"en-US"},{label:"ç®ä½ä¸æ",value:"zh-CN"},{label:"ç¹é«ä¸æ",value:"zh-TW"},{label:"Portugu\xeas",value:"pt-BR"}].map(e=>[e.value,e.label])),ab=e=>{let{close:t}=e,{t:a}=(0,eJ.Bd)(),l=(0,eT.useRouter)(),r=(0,eT.usePathname)(),{showSelectWalletDialog:n}=(0,tS.s)(),s=(0,e2.kH)(e=>e.userInfo),i=(null==s?void 0:s.accountType)===0,{theme:c}=(0,eU.D)(),[o,d]=(0,eW.useState)(!0),h=(0,e1.OJ)(e=>e.userConfig),m=null==h?void 0:h.showOpenApiEntry,u=(0,eT.useSearchParams)().get("ref"),x=()=>{window.open(t$.Us,"_blank")},p=()=>{t()},f=()=>{l.push(u?"/points?ref=".concat(u):"/points"),p()};return(0,eI.jsxs)("div",{className:"flex flex-col bg-main-background w-screen h-[calc(100svh-60px)] border border-border-color",children:[(0,eI.jsxs)("div",{className:"h-11 flex flex-row items-center px-4 gap-3 relative",children:[(0,eI.jsx)("span",{className:"w-full text-center text-[18px] text-text-dark font-bold",children:a("partner.setting")}),(0,eI.jsx)(ty.A,{className:"absolute right-4 w-6 h-6 cursor-pointer text-text-light fill-current",onClick:p})]}),s&&2!==s.accountType?(0,eI.jsxs)("div",{className:"h-15 mt-4 mx-4 px-3 flex flex-row items-center",children:[(0,eI.jsx)("div",{children:(0,eI.jsx)(t5,{className:"w-10 h-10"})}),(0,eI.jsx)(tk.A,{className:"w-full flex flex-row items-center",position:"right",showArrow:!1,trigger:(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsx)("div",{className:"text-text-dark ml-3",children:(null==s?void 0:s.accountAddress)?(0,tL.bo)(s.accountAddress):(null==s?void 0:s.email)?s.email:""}),(0,eI.jsx)(te.A,{className:"w-4 h-4 ml-auto text-text-light fill-current rotate-270"})]}),children:e=>(0,eI.jsx)(av,{close:e})})]}):(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsxs)("div",{className:"h-15 mt-4 mx-4 px-3 flex flex-row items-center",children:[(0,eI.jsx)("div",{children:(0,eI.jsx)(t5,{className:"w-10 h-10"})}),(0,eI.jsx)("div",{className:"text-text-dark ml-3",children:a("home.welcome")})]}),(0,eI.jsx)("div",{className:"h-9.5 w-full px-4 mt-3",onClick:()=>{n(),t()},children:(0,eI.jsx)("div",{className:"main-button rounded-[10px] h-10 w-full flex items-center justify-center font-semibold text-sm",children:a("home.connect_wallet")})})]}),(0,eI.jsxs)("div",{className:"py-2.5 mt-4 mx-4 px-3 flex items-start text-xs border border-panel-border-color roun
1ded-lg overflow-visible",children:[!i&&(0,eI.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center justify-start gap-1 overflow-visible",onClick:()=>{if(!(0,e2.W5)())return void n();i||(l.push("/vouchers"),p())},children:[(0,eI.jsx)(an,{className:"w-8 h-8 text-phone-setting-image"}),(0,eI.jsx)("div",{className:"flex w-max flex-row justify-center",children:(0,eI.jsx)("div",{className:"whitespace-nowrap text-center text-text-light",children:a("vouchers.title")})})]}),(0,eI.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center justify-start gap-1 overflow-visible",onClick:x,children:[(0,eI.jsx)(al,{className:"w-8 h-8 text-phone-setting-image"}),(0,eI.jsx)("div",{className:"w-max whitespace-pre text-center text-text-light",children:a("assets.contact")})]}),!i&&(0,eI.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center justify-start gap-1 overflow-visible demo-mode-tip",onClick:f,children:[(0,eI.jsx)(at,{className:"w-8 h-8 text-phone-setting-image"}),(0,eI.jsx)("div",{className:"flex w-max flex-row justify-center",children:(0,eI.jsx)("div",{className:"whitespace-nowrap text-center text-text-light",children:a("points.points")})})]}),s&&!i&&m&&(0,eI.jsx)(e$(),{className:"min-w-0 flex-1 overflow-visible",href:{pathname:"/api"},children:(0,eI.jsxs)("div",{className:"flex flex-col items-center justify-start gap-1 overflow-visible demo-mode-tip",onClick:f,children:[(0,eI.jsx)(t9,{className:"w-8 h-8 text-phone-setting-image"}),(0,eI.jsx)("div",{className:"flex w-max flex-row justify-center",children:(0,eI.jsx)("div",{className:"whitespace-nowrap text-center text-text-light",children:a("api.title")})})]})})]}),o&&(0,eI.jsxs)("div",{className:"flex items-center h-[42px] px-3 mx-4 mt-5 py-[11px] rounded-[10px] cursor-pointer",style:{background:"linear-gradient(90deg, #EDBE18 0%, #FFE68E 69.23%)"},onClick:()=>{(0,eZ.$s)(eZ.Y4),x()},children:[(0,eI.jsx)(t0,{}),(0,eI.jsx)("span",{className:"text-[14px] font-medium text-[#212529] ml-1",children:a("home.tg_banner_text")}),(0,eI.jsx)(tQ,{className:"ml-auto"}),(0,eI.jsx)("div",{className:"w-[20px] h-[20px] ml-2 flex items-center justify-center bg-white rounded-[4px]",onClick:e=>{e.stopPropagation(),d(!1)},children:(0,eI.jsx)(tY,{})})]}),(0,eI.jsx)("div",{className:"mt-5 w-full h-[1px] px-4",children:(0,eI.jsx)("div",{className:"w-full h-[1px] bg-panel-border-color"})}),(0,eI.jsx)(tJ.A,{trigger:(0,eI.jsxs)("div",{className:"mt-5 w-full flex flex-row rounded-lg justify-between bg-theme-unselect-bg items-center px-3 py-2.5 mx-4 mb-2.5",children:[(0,eI.jsx)("div",{className:"text-text-light",children:a("assets.language")}),(0,eI.jsx)("div",{className:"text-text-dark ml-auto",children:(()=>{let e=(0,e2.Hg)();return aw.get(e)||"English"})()}),(0,eI.jsx)(te.A,{className:"w-4 h-4 ml-2 text-text-light fill-current rotate-270"})]}),children:e=>(0,eI.jsx)(ad,{close:e})}),"/"!==r&&(0,eI.jsx)(tJ.A,{trigger:(0,eI.jsxs)("div",{className:"w-full flex flex-row rounded-lg justify-between bg-theme-unselect-bg items-center px-3 py-2.5 mx-4 mb-2.5",children:[(0,eI.jsx)("div",{className:"text-text-light",children:a("assets.appearance")}),(0,eI.jsx)("div",{className:"text-text-dark ml-auto",children:a("dark"===c?"assets.dark":"assets.light")}),(0,eI.jsx)(te.A,{className:"w-4 h-4 ml-2 text-text-light fill-current rotate-270"})]}),children:e=>(0,eI.jsx)(ac,{close:e})}),(0,e2.W5)()&&(0,eI.jsx)(tJ.A,{trigger:(0,eI.jsxs)("div",{className:"w-full flex flex-row rounded-lg justify-between bg-theme-unselect-bg items-center px-3 py-2.5 mx-4 mb-2.5",children:[(0,eI.jsx)("div",{className:"text-text-light",children:a("trade.trading_mode")}),(0,eI.jsx)("div",{className:"text-text-dark ml-auto",children:a((null==s?void 0:s.accountType)===0?"trade.demo":"trade.real")}),(0,eI.jsx)(te.A,{className:"w-4 h-4 ml-2 text-text-light fill-current rotate-270"})]}),children:e=>(0,eI.jsx)(ah,{close:e})}),(0,eI.jsx)("div",{className:"w-full relative inline-block",children:(0,eI.jsxs)("div",{className:"flex flex-row rounded-lg justify-between bg-theme-unselect-bg items-center px-3 py-2.5 mx-4 mb-2.5",children:[(0,eI.jsx)("div",{className:"text-text-light",children:a("trade.feedback_text")}),(0,eI.jsxs)("div",{className:"ml-auto flex items-center cursor-pointer",onClick:()=>(0,tL.Dk)(t$.Tm),children:[(0,eI.jsx)("div",{className:"text-text-dark ",children:t$.Tm}),(0,eI.jsx)(t1.A,{className:"ml-2 text-text-light fill-current"})]})]})}),(0,eI.jsxs)("div",{className:"mt-auto mb-9 flex w-full justify-center gap-6 items-center text-[14px] text-text-light font-medium mr-4",children:[(0,eI.jsx)(t4,{className:"h-11 w-11 cursor-pointer",onClick:x}),(0,eI.jsx)(t8,{className:"h-11 w-11 cursor-pointer",onClick:()=>{window.open("en-US"===(0,eJ.TO)().language?t$.IH:t$.yE,"_blank")}})]})]})};var ak=a(16031),aj=a(71338),ay=a(24683);function aE(){return(aE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}var aN=a(4555);let a_=[{label:"Solana",icon:ay.A,network:e8.tWt},{label:"Sui",icon:function(e){return eW.createElement("svg",aE({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none"},e),ee||(ee=eW.createElement("path",{fill:"#298DFF",d:"M0 9a9 9 0 1 0 18 0A9 9 0 0 0 0 9"})),et||(et=eW.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M11.81 8.002c.489.614.783 1.393.783 2.238s-.3 1.646-.804 2.266l-.044.053-.012-.069q-.015-.085-.035-.175c-.25-1.105-1.07-2.053-2.422-2.823-.91-.516-1.433-1.139-1.571-1.846-.088-.457-.022-.917.103-1.312.128-.394.316-.722.476-.92l.526-.641a.23.23 0 0 1 .356 0zm.83-.641-3.517-4.3a.17.17 0 0 0-.26 0l-3.52 4.3-.013.016a4.68 4.68 0 0 0-1.033 2.935A4.693 4.693 0 0 0 8.99 15c2.591 0 4.694-2.1 4.694-4.688 0-1.11-.388-2.131-1.036-2.935zm-6.456.629.313-.385.01.072q.009.085.027.
1169c.204 1.067.933 1.96 2.147 2.647 1.058.601 1.671 1.293 1.85 2.053.075.317.087.63.056.902l-.003.015-.016.007a3.6 3.6 0 0 1-1.58.363 3.596 3.596 0 0 1-3.599-3.593c0-.851.297-1.637.795-2.25",clipRule:"evenodd"})))},network:tq.cF},{label:"Monad",icon:aj.A,network:e8.aUf},{label:"BNB Chain",icon:ak.A,network:e8.NBY}],aA=e=>{let{close:t}=e,{caipNetwork:a,switchNetwork:l}=(0,e6.HV)(),r=(0,eT.usePathname)(),n=(0,eW.useRef)(null==a?void 0:a.id);(0,eW.useEffect)(()=>{n.current=null==a?void 0:a.id},[a]);let s=async e=>{if(n.current===e.id)return void t();await l(e),await (0,aN.Su)(r),(0,eZ.$s)(eZ.$m,{network:e.name}),t()};return(0,eI.jsx)("div",{className:"w-[184px] p-2 flex flex-col bg-panel-background rounded-xl",children:a_.map(e=>{let t=e.icon,l=(null==a?void 0:a.id)===e.network.id;return(0,eI.jsxs)("div",{className:"h-9 w-full px-2 py-1 flex items-center rounded-md cursor-pointer hover:bg-token-list-item-hover-color",onClick:()=>s(e.network),children:[(0,eI.jsx)(t,{className:"w-[18px] h-[18px] shrink-0"}),(0,eI.jsx)("span",{className:"ml-2 text-sm leading-[18px] font-medium text-text-dark",children:e.label}),l&&(0,eI.jsx)("svg",{className:"ml-auto w-2.5 h-2.5 text-text-dark",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:(0,eI.jsx)("path",{d:"M8.333 2.5L3.75 7.083L1.667 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]},e.label)})})},aO={DEMO:0,REAL:1},aC="__last_supported_network_id__",aM=[e8.tWt,e8.aUf,e8.NBY,tq.cF],aP=e=>aM.find(t=>String(t.id)===String(e)),aS=()=>aP(window.localStorage.getItem(aC))||e8.tWt,az=async(e,t)=>{let a,l=(e=>{if("number"==typeof e.id)return"0x".concat(e.id.toString(16))})(e);if(l){for(let s of[t,window.ethereum].filter((e,t,a)=>!!e&&a.indexOf(e)===t))try{let e=await s.request({method:"eth_chainId"});if(String(e).toLowerCase()===l.toLowerCase())return;await s.request({method:"wallet_switchEthereumChain",params:[{chainId:l}]});return}catch(t){if(4902!==("object"==typeof t&&t&&"code"in t?t.code:void 0)){a=t;continue}try{var r,n;await s.request({method:"wallet_addEthereumChain",params:[{chainId:l,chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:e.rpcUrls.default.http,...(null==(n=e.blockExplorers)||null==(r=n.default)?void 0:r.url)?{blockExplorerUrls:[e.blockExplorers.default.url]}:{}}]});return}catch(e){a=e}}if(a)throw a}},aL=()=>{let{t:e,i18n:t}=(0,eJ.Bd)(),a=(0,e0.l)(e=>e.isMobile),l=(0,eT.usePathname)(),r="/"===l||"/careers"===l||l.startsWith("/careers/"),{theme:n,setTheme:s}=(0,eU.D)(),{disconnect:i}=(0,e6.uP)(),{caipNetwork:c,switchNetwork:o}=(0,e6.HV)(),{walletProvider:d}=(0,e6.AX)("eip155"),{showSelectWalletDialog:h,showDepositDialog:m,showActiveCodeDialog:u,showWalletChainDialog:x}=(0,tS.s)(),p=(0,e2.kH)(e=>e.userInfo),f=(0,e2.kH)(e=>e.isLogined),g=(0,e2.kH)(e=>e.kickOut),v=(0,tz.lu)(e=>e.unReadNum),[w,b]=(0,eW.useState)(!1),[k,j]=(0,eW.useState)(!1),y=(0,eW.useCallback)(()=>{(0,e2.AX)(),i(),(0,e2.ri)()},[i]);(0,eW.useEffect)(()=>{g&&(y(),(0,e2.p7)(!1))},[g,y]);let E=e=>{(0,e2.TK)(e)},N=()=>{let e=p?p.accountType===aO.DEMO?"demo":"real":"";(0,eZ.w1)({account_type:e})};(0,eW.useEffect)(()=>{f?(N(),(0,eZ.do)((null==p?void 0:p.uid)||null),(0,eZ.Fi)({user_wallet_address:(null==p?void 0:p.accountAddress)||(null==p?void 0:p.email),user_language:t.language,device_id:(0,e2.IP)()}),tG.z.subscribeTopic("auth","userInfo",null==p?void 0:p.token,E),(0,e2.M8)(),(0,tU.bI)(),(0,tU.cR)(),(0,tU.vX)(),(0,tz.sT)(),(0,tU.JZ)(),(0,e1.fG)(),(0,tU.TO)(),(0,tz.L6)(),(0,e2.y1)(),(0,tU.Rd)(),(0,tU.kT)(),(0,tz.f6)(),(0,e2.ky)()):((0,eZ.do)(null),(0,eZ.Fi)({user_wallet_address:"",user_language:t.language,device_id:(0,e2.IP)()}),tG.z.unsubscribeTopic("auth","userInfo",null==p?void 0:p.token,E),(0,e2.vg)(),(0,tU.bI)(),(0,tU.r3)(),(0,tU.ef)(),(0,tU.cm)(),(0,tz.MO)(),(0,tU.PY)(),(0,e1.nm)(),(0,e2.oG)(),(0,e2.l0)(),(0,tU.yR)(),(0,tU.f4)(),(0,tz.OD)(),(0,e2.Bd)())},[null==p?void 0:p.token]),(0,eW.useEffect)(()=>{N()},[p]),(0,eW.useEffect)(()=>{(0,eZ.w1)({platform:a?"mobile":"desktop"})},[a]),(0,eW.useEffect)(()=>{if(!c)return;let e=aP(c.id);if(e)return void window.localStorage.setItem(aC,String(e.id));let t=aS();([e8.aUf.id,e8.NBY.id].map(String).includes(String(t.id))?az(t,d):Promise.resolve()).then(()=>o(t)).catch(e=>{console.error("Failed to restore supported network:",e)})},[c,d,o]),(0,eW.useEffect)(()=>{let e=()=>{if(!f||!["monad","bsc"].includes((null==p?void 0:p.chain)||""))return;let e=aS();[e8.aUf.id,e8.NBY.id].map(String).includes(String(e.id))&&az(e,d).catch(e=>{console.error("Failed to restore EVM wallet network:",e)})};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}},[d,f,null==p?void 0:p.chain]);let _=(0,eW.useCallback)(()=>{p&&(p.accountAddress||p.email)?((0,eZ.$s)(eZ.Wl),p.isActive?m(!p.accountAddress):u()):((0,eZ.$s)(eZ.QC),h())},[p,m,u,h]),A=(0,eW.useCallback)(async()=>{(0,eZ.$s)(eZ.vb),(null==p?void 0:p.accountType)===aO.REAL||w||(b(!0),await (0,e2.OS)(aO.REAL)?window.location.reload():b(!1))},[null==p?void 0:p.accountType,w]),O=(0,eW.useCallback)(()=>a&&(null==p?void 0:p.accountType)===aO.DEMO?e("home.real_trading_btn"):p?e("home.deposit"):e("home.connect_wallet"),[a,p,e]),C=(0,eW.useCallback)(()=>
1{w||(a&&(null==p?void 0:p.accountType)===aO.DEMO?A():_())},[w,a,null==p?void 0:p.accountType,A,_]),M=aP(null==c?void 0:c.id)||aS(),P={[e8.tWt.id]:tp,[e8.aUf.id]:to,[e8.NBY.id]:ta,[tq.cF.id]:tg}[M.id]||tp,S=(0,eI.jsx)("div",{className:"flex items-center cursor-pointer h-[34px] md:h-[38px]",children:(0,eI.jsx)(P,{className:"w-[22px] h-[22px]"})}),z=()=>a?(0,eI.jsxs)("button",{type:"button",className:"border border-border-color px-2 md:px-3 rounded-[8px] h-[34px] flex items-center",onClick:()=>{j(!0),x(()=>j(!1))},children:[S,(0,eI.jsx)(e9.P.div,{animate:{rotate:k?-180:0},transition:{duration:.3},className:"ml-1.5 w-4 h-4",children:(0,eI.jsx)(te.A,{className:"w-4 h-4 text-text-light fill-current"})})]}):(0,eI.jsx)(tk.A,{className:"border border-border-color md:border-panel-border-color px-3 rounded-[8px] h-[34px] md:h-[40px]",panelClassName:"!rounded-xl !border !border-panel-outer-border-color !shadow-md",position:"right",trigger:S,children:e=>(0,eI.jsx)(aA,{close:e})});return(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsxs)("div",{className:"flex items-center gap-2 h-full ",children:[!p&&z(),(a||!p||p.accountType!==aO.DEMO)&&(0,eI.jsx)("span",{className:"h-[34px] font-medium md:h-[40px] text-primary2 text-[14px] md:text-[16px] whitespace-nowrap main-button rounded-[8px] px-4 leading-[34px] md:leading-[40px] ".concat(w?"opacity-50 cursor-not-allowed":"cursor-pointer"),onClick:C,children:O()}),p&&z(),!a&&(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsx)("div",{children:p&&2!==p.accountType&&(0,eI.jsx)(tk.A,{className:"border border-border-color md:border-panel-border-color px-3 rounded-[8px] h-[40px]",panelClassName:"!rounded-xl !border !border-panel-outer-border-color !shadow-md",position:"right",trigger:(0,eI.jsx)("div",{className:"flex items-center gap-2 cursor-pointer h-[40px]",children:(0,eI.jsxs)("span",{className:"text-sm leading-[40px] text-text-dark font-medium",children:[p.accountAddress&&(0,tL.UQ)(p.accountAddress),p.email&&(0,tL.qQ)(p.email)]})}),children:e=>(0,eI.jsx)(tW,{close:e})})}),(0,eI.jsxs)("div",{className:"flex flex-row",children:[f&&(0,eI.jsx)(tk.A,{showArrow:!1,position:"right",panelClassName:"!rounded-[16px] !border !border-panel-outer-border-color !shadow-md",trigger:(0,eI.jsxs)("div",{className:"cursor-pointer relative",children:[(0,eI.jsx)(tn,{className:"fill-current text-text-dark"}),v>0&&(0,eI.jsx)("div",{className:"w-2 h-2 bg-[#E43C5A] rounded-full absolute right-1 top-1"})]}),children:()=>(0,eI.jsx)(tD,{close:()=>{}})}),(0,eI.jsx)("div",{className:" flex items-center justify-center text-text-dark cursor-pointer",onClick:()=>{window.open(t$.Us,"_blank")},children:(0,eI.jsx)(tw,{className:"fill-current text-text-dark"})}),(0,eI.jsx)(tk.A,{showArrow:!1,panelClassName:"!rounded-xl !border !border-panel-outer-border-color !shadow-md",position:"right",trigger:(0,eI.jsx)("div",{className:"w-[40px] h-[40px] flex items-center justify-center text-text-dark cursor-pointer",children:(0,eI.jsx)(ti,{className:"fill-current text-text-dark"})}),children:e=>(0,eI.jsx)(tj,{close:e})}),!r&&(0,eI.jsx)("img",{src:"dark"===n?tb:tl,className:" text-text-dark cursor-pointer",onClick:()=>{let e="dark"===n?"light":"dark";s(e),(0,eZ.$s)(eZ.ah,{theme:e})},alt:""})]})]}),a&&(0,eI.jsxs)(eI.Fragment,{children:[f&&(0,eI.jsx)(eI.Fragment,{children:(0,eI.jsx)(tJ.A,{trigger:(0,eI.jsxs)("div",{className:"cursor-pointer relative",children:[(0,eI.jsx)(th,{className:"fill-current text-text-dark"}),v>0&&(0,eI.jsx)("div",{className:"w-2 h-2 bg-[#E43C5A] rounded-full absolute right-1 top-1"})]}),children:e=>(0,eI.jsx)(tD,{close:e})})}),(0,eI.jsx)(tJ.A,{trigger:(0,eI.jsx)("div",{className:"cursor-pointer relative",children:(0,eI.jsx)(tu,{className:"fill-current text-text-dark"})}),children:e=>(0,eI.jsx)(ab,{close:e})})]})]}),(0,eI.jsx)(e7,{isSwitching:w})]})},aR=()=>{let[e,t]=(0,eW.useState)(!1),{t:a}=(0,eJ.Bd)(),{theme:l}=(0,eU.D)(),r=(0,e0.l)(e=>e.isMobile),n=(0,eT.usePathname)(),s=(0,eT.useRouter)(),i=(0,eT.useSearchParams)().get("ref"),c=(0,e2.kH)(e=>e.userInfo),o=(0,e2.kH)(e=>e.isLogined),d=(0,e1.OJ)(e=>e.userConfig),h=null==d?void 0:d.showOpenApiEntry,m=(null==c?void 0:c.accountType)===0,u=(0,eW.useCallback)(async e=>{(0,eZ.$s)(eZ.vb),(null==c?void 0:c.accountType)!==e&&(t(!0),await (0,e2.OS)(e)?window.location.reload():t(!1))},[null==c?void 0:c.accountType]),x=[{name:a("home.trade"),path:"/trade"},{name:a("trade.portfolio"),path:"/portfolio"},...m?[]:[{name:a("referrals.referrals"),path:"/referrals"}],...(null==c?void 0:c.agent)?[{name:a("partner.partner"),path:"/affiliates"}]:[],...m?[]:[{name:a("vouchers.title"),path:"/vouchers"},{name:a("points.points"),path:"/points"}],...o&&h?[{name:a("api.title"),path:"/api"}]:[]],p=()=>"/"===n||n.startsWith("/careers"),f=[{match:e=>e.startsWith("/referrals"),shouldRedirect:()=>m},{match:e=>e.startsWith("/vouchers"),shouldRedirect:()=>m},{match:e=>e.startsWith("/points"),shouldRedirect:()=>m},{match:e=>e.startsWith("/affiliates"),shouldRedirect:()=>!(null==c?void 0:c.agent)},{match:e=>e.startsWith("/api"),shouldRedirect:()=>!c||void 0!==d&&!d.showOpenApiEntry}];return(0,eW.useEffect)(()=>
1{f.some(e=>e.match(n)&&e.shouldRedirect())&&s.replace("/trade")},[n,m,null==c?void 0:c.agent,d,s,f]),(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsx)("div",{"data-theme":p()?"dark":void 0,className:"sticky top-0 z-10 flex flex-row shrink-0 justify-between items-center w-full bg-main-background border-b border-panel-border-color h-15 ".concat(p()?"home-header-dark md:h-20":"md:h-18"),children:(0,eI.jsxs)("div",{className:"flex flex-row justify-between items-center w-full h-full",children:[(0,eI.jsxs)("div",{className:"px-4 md:px-4.5 flex flex-row items-center h-full",children:[(0,eI.jsxs)(e$(),{href:{pathname:"/",query:i?{ref:i}:void 0},children:[!r&&(0,eI.jsx)(eY,{className:"w-[120px] h-[22px] fill-current "}),r&&(0,eI.jsx)(eQ,{className:"w-[105px] h-auto fill-current"})]}),(0,eI.jsx)("div",{className:"hidden md:flex ml-6 h-full",children:x.map(e=>(0,eI.jsx)("div",{className:" text-sm flex flex-row items-center cursor-pointer h-full ".concat(n.includes(e.path)?"text-main-color font-semibold":"font-medium text-text-dark hover:text-header-text-select"),children:(0,eI.jsx)(e$(),{href:{pathname:e.path,query:i?{ref:i}:void 0},className:"text-[18px] h-full flex flex-row items-center px-2 md:px-4.5",children:e.name})},e.name))}),o&&!r&&(0,eI.jsxs)("div",{className:"flex flex-row items-center px-[3px] py-[2px] h-[28px] rounded-lg ".concat(p()||"dark"===l?"bg-panel-background":"bg-[#F4F5F7]"),children:[(0,eI.jsx)("button",{onClick:()=>u(1),className:"flex-1 h-full rounded-md text-xs font-medium px-2 ".concat(m?"text-text-dark":"main-button"),children:a("trade.real")}),(0,eI.jsx)("button",{onClick:()=>u(0),className:"flex-1 h-full rounded-md text-xs font-medium px-2 ".concat(m?"main-button":"text-text-dark"),children:a("trade.demo")})]})]}),(0,eI.jsx)("div",{className:"items-center h-10 mr-3 flex",children:(0,eI.jsx)(aL,{})})]})}),(0,eI.jsx)(e7,{isSwitching:e})]})};var aD=a(79531);function aB(){return(aB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aH=function(e){return eW.createElement("svg",aB({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),ea||(ea=eW.createElement("circle",{cx:11,cy:7,r:4,stroke:"currentColor",strokeWidth:1.5})),el||(el=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18 16.988c-.667-1.47-3-1.314-3 .566S18 21 18 21s3-1.567 3-3.446-2.333-2.036-3-.566"})),er||(er=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M12 21c-4.97 0-9-.326-9-2.5 0-2.5 5-5 9.5-4.4"})))};function aF(){return(aF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aV=function(e){return eW.createElement("svg",aF({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),en||(en=eW.createElement("circle",{cx:11,cy:7,r:4,stroke:"currentColor",strokeWidth:1.5})),es||(es=eW.createElement("path",{fill:"#EDBE18",d:"M18 16.988c-.667-1.47-3-1.314-3 .566S18 21 18 21s3-1.567 3-3.446-2.333-2.036-3-.566"})),ei||(ei=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18 16.988c-.667-1.47-3-1.314-3 .566S18 21 18 21s3-1.567 3-3.446-2.333-2.036-3-.566"})),ec||(ec=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M12 21.002c-4.97 0-9-.326-9-2.5 0-2.5 5-5 9.5-4.4"})))};function aI(){return(aI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aT=function(e){return eW.createElement("svg",aI({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),eo||(eo=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.263 3.26A2.25 2.25 0 0 1 9.5 1.25h5a2.25 2.25 0 0 1 2.237 2.01c.764.016 1.423.055 1.987.159.758.14 1.403.404 1.928.93.602.601.86 1.36.982 2.26.116.866.116 1.969.116 3.336v6.11c0 1.367 0 2.47-.116 3.337-.122.9-.38 1.658-.982 2.26s-1.36.86-2.26.982c-.867.116-1.97.116-3.337.116h-6.11c-1.367 0-2.47 0-3.337-.116-.9-.122-1.658-.38-2.26-.982s-.86-1.36-.981-2.26c-.117-.867-.117-1.97-.117-3.337v-6.11c0-1.367 0-2.47.117-3.337.12-.9.38-1.658.981-2.26.525-.525 1.17-.79 1.928-.929.564-.104 1.224-.143 1.987-.159m.002 1.5c-.718.016-1.272.052-1.718.134-.566.104-.895.272-1.138.515-.277.277-.457.665-.556 1.4-.101.754-.103 1.756-.103 3.191v6c0 1.435.002 2.436.103 3.192.099.734.28 1.122.556 1.399.277.277.665.457 1.4.556.754.101 1.756.103 3.191.103h6c1.435 0 2.436-.002 3.192-.103.734-.099 1.122-.28 1.399-.556.277-.277.457-.665.556-1.4.101-.755.103-1.756.103-3.191v-6c0-1.435-.002-2.437-.103-3.192-.099-.734-.28-1.122-.556-1.399-.244-.243-.572-.41-1.138-.515-.446-.082-1-.118-1.718-.133A2.25 2.25 0 0 1 14.5 6.75h-5a2.25 2.25 0 0 1-2.235-1.99M9.5 2.75a.75.75 0 0 0-.75.75v1c0 .414.336.75.75.75h5a.75.75 0 0 0 .75-.75v-1a.75.75 0 0 0-.75-.75zM6.25 10.5A.75.75 0 0 1 7 9.75h.5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75m3.5 0a.75.75 0 0 1 .75-.75H17a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75M6.25 14a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75m3.5 0a.75.75 0 0 1 .75-.75H17a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75m-3.5 3.5a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75m3.5 0a.75.75 0 0 1 .75-.75H17a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})))};function aW(){return(aW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aG=function(e){return eW.createElement("svg",aW({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),ed||(ed=eW.createElement("rect",{width:8,height:4,x:8,y:2,fill:"#EDBE18",rx:1})),eh||(eh=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.263 3.26A2.25 2.25 0 0 1 9.5 1.25h5a2.25 2.25 0 0 1 2.237 2.01c.764.016 1.423.055 1.987.159.758.14 1.403.404 1.928.93.602.601.86 1.36.982 2.26.116.866.116 1.969.116 3.336v6.11c0 1.367 0 2.47-.116 3.337-.122.9-.38 1.658-.982 2.26s-1.36.86-2.26.982c-.867.116-1.97.116-3.337.116h-6.11c-1.367 0-2.47 0-3.337-.116-.9-.122-1.658-.38-2.26-.982s-.86-1.36-.981-2.26c-.117-.867-.117-1.97-.117-3.337v-6.11c0-1.367 0-2.47.117-3.337.12-.9.38-1.658.981-2.26.525-.525 1.17-.79 1.928-.929.564-.104 1.224-.143 1.987-.159m.002 1.5c-.718.016-1.272.052-1.718.134-.566.104-.895.272-1.138.515-.277.277-.457.665-.556 1.4-.101.754-.103 1.756-.103 3.191v6c0 1.435.002 2.436.103 3.192.099.734.28 1.122.556 1.399.277.277.665.457 1.4.556.754.101 1.756.103 3.191.103h6c1.435 0 2.436-.002 3.192-.103.734-.099 1.122-.28 1.399-.556.277-.277.457-.665.556-1.4.101-.755.103-1.756.103-3.191v-6c0-1.435-.002-2.437-.103-3.192-.099-.734-.28-1.122-.556-1.399-.244-.243-.572-.41-1.138-.515-.446-.082-1-.118-1.718-.133A2.25 2.25 0 0 1 14.5 6.75h-5a2.25 2.25 0 0 1-2.235-1.99M9.5 2.75a.75.75 0 0 0-.75.75v1c0 .414.336.75.75.75h5a.75.75 0 0 0 .75-.75v-1a.75.75 0 0 0-.75-.75zM6.25 10.5A.75.75 0 0 1 7 9.75h.5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75m3.5 0a.75.75 0 0 1 .75-.75H17a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75M6.25 14a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75m3.5 0a.75.75 0 0 1 .75-.75H17a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75m-3.5 3.5a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75m3.5 0a.75.75 0 0 1 .75-.75H17a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})))};function aU(){return(aU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aq=function(e){return eW.createElement("svg",aU({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),em||(em=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.924 11.75H18.23c-1.424
10-2.481 1.059-2.481 2.25s1.057 2.25 2.48 2.25h2.718c.206-.013.295-.152.302-.236v-4.028c-.007-.084-.096-.223-.302-.235zm-.074-1.5q.1-.001.19.004c.87.053 1.641.71 1.706 1.628.004.06.004.125.004.185v3.866c0 .06 0 .125-.004.185-.065.918-.836 1.575-1.707 1.629q-.089.004-.19.003h-2.618c-2.145 0-3.981-1.628-3.981-3.75s1.836-3.75 3.98-3.75h2.62",clipRule:"evenodd"})),eu||(eu=eW.createElement("path",{fill:"currentColor",d:"M19 14a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})),ex||(ex=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.85 10.25q.1-.001.19.004c.225.013.443.067.645.156-.107-1.606-.402-2.844-1.326-3.769-.749-.748-1.698-1.08-2.87-1.238l-.042-.005-.032-.023-3.736-2.477a3.99 3.99 0 0 0-4.358 0L5.586 5.375l-.033.023-.042.005c-1.172.158-2.121.49-2.87 1.238-.748.749-1.08 1.698-1.238 2.87-.153 1.14-.153 2.595-.153 4.433v.112c0 1.838 0 3.294.153 4.433.158 1.172.49 2.121 1.238 2.87.749.748 1.698 1.08 2.87 1.238 1.14.153 2.595.153 4.433.153h3.112c1.838 0 3.294 0 4.433-.153 1.172-.158 2.121-.49 2.87-1.238.924-.925 1.219-2.163 1.326-3.77-.202.09-.42.144-.646.158q-.089.004-.19.003h-.681c-.114 1.342-.371 2.05-.87 2.548-.423.423-1.003.677-2.009.812-1.027.138-2.382.14-4.289.14h-3c-1.907 0-3.261-.002-4.29-.14-1.005-.135-1.585-.389-2.008-.812s-.677-1.003-.812-2.009c-.138-1.027-.14-2.382-.14-4.289s.002-3.261.14-4.29c.135-1.005.389-1.585.812-2.008s1.003-.677 2.009-.812c1.028-.138 2.382-.14 4.289-.14h3c1.907 0 3.262.002 4.29.14 1.005.135 1.585.389 2.008.812.499.498.756 1.207.87 2.548h.682m-10.906-5h3.112q.775 0 1.46.003L12.85 4.148c-.8-.53-1.9-.53-2.7 0L8.483 5.253q.686-.004 1.46-.003",clipRule:"evenodd"})),ep||(ep=eW.createElement("path",{fill:"currentColor",d:"M6 9.25a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z"})),ef||(ef=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 14a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"})))};function a$(){return(a$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aJ=function(e){return eW.createElement("svg",a$({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),eg||(eg=eW.createElement("path",{fill:"#EDBE18",d:"M15 13a2 2 0 0 1 2-2h5v6h-5a2 2 0 0 1-2-2z"})),ev||(ev=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.924 11.75H18.23c-1.424 0-2.481 1.059-2.481 2.25s1.057 2.25 2.48 2.25h2.718c.206-.013.295-.152.302-.236v-4.028c-.007-.084-.096-.223-.302-.235zm-.074-1.5q.1-.001.19.004c.87.053 1.641.71 1.706 1.628.004.06.004.125.004.185v3.866c0 .06 0 .125-.004.185-.065.918-.836 1.575-1.707 1.629q-.089.004-.19.003h-2.618c-2.145 0-3.981-1.628-3.981-3.75s1.836-3.75 3.98-3.75h2.62",clipRule:"evenodd"})),ew||(ew=eW.createElement("path",{fill:"currentColor",d:"M19 14a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})),eb||(eb=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.85 10.25q.1-.001.19.004c.225.013.443.067.645.156-.107-1.606-.402-2.844-1.326-3.769-.749-.748-1.698-1.08-2.87-1.238l-.042-.005-.032-.023-3.736-2.477a3.99 3.99 0 0 0-4.358 0L5.586 5.375l-.033.023-.042.005c-1.172.158-2.121.49-2.87 1.238-.748.749-1.08 1.698-1.238 2.87-.153 1.14-.153 2.595-.153 4.433v.112c0 1.838 0 3.294.153 4.433.158 1.172.49 2.121 1.238 2.87.749.748 1.698 1.08 2.87 1.238 1.14.153 2.595.153 4.433.153h3.112c1.838 0 3.294 0 4.433-.153 1.172-.158 2.121-.49 2.87-1.238.924-.925 1.219-2.163 1.326-3.77-.202.09-.42.144-.646.158q-.089.004-.19.003h-.681c-.114 1.342-.371 2.05-.87 2.548-.423.423-1.003.677-2.009.812-1.027.138-2.382.14-4.289.14h-3c-1.907 0-3.261-.002-4.29-.14-1.005-.135-1.585-.389-2.008-.812s-.677-1.003-.812-2.009c-.138-1.027-.14-2.382-.14-4.289s.002-3.261.14-4.29c.135-1.005.389-1.585.812-2.008s1.003-.677 2.009-.812c1.028-.138 2.382-.14 4.289-.14h3c1.907 0 3.262.002 4.29.14 1.005.135 1.585.389 2.008.812.499.498.756 1.207.87 2.548h.682m-10.906-5h3.112q.775 0 1.46.003L12.85 4.148c-.8-.53-1.9-.53-2.7 0L8.483 5.253q.686-.004 1.46-.003",clipRule:"evenodd"})),ek||(ek=eW.createElement("path",{fill:"currentColor",d:"M6 9.25a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z"})),ej||(ej=eW.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 14a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"})))};function aX(){return(aX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aY=function(e){return eW.createElement("svg",aX({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),ey||(ey=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125"})))};function aK(){return(aK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let aQ=function(e){return eW.createElement("svg",aK({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),eE||(eE=eW.createElement("path",{fill:"#EDBE18",d:"M2.5 8h20v3h-20z"})),eN||(eN=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125"})))};function aZ(){return(aZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let a0=function(e){return eW.createElement("svg",aZ({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),e_||(e_=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m18 2 3 3-3 3M6 22l-3-3 3-3"})),eA||(eA=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 5H10a7 7 0 0 0-7 7M3 19h11a7 7 0 0 0 7-7"})),eO||(eO=eW.createElement("path",{fill:"currentColor",d:"M8 14a3 3 0 0 1 3-3h5a3 3 0 0 1-3 3z"})))};function a1(){return(a1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let a2=function(e){return eW.createElement("svg",a1({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),eC||(eC=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 2 3 3-3 3M6 22l-3-3 3-3"})),eM||(eM=eW.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 5H10a7 7 0 0 0-7 7M3 19h11a7 7 0 0 0 7-7"})),eP||(eP=eW.createElement("path",{fill:"#EDBE18",d:"M8 14a3 3 0 0 1 3-3h5a3 3 0 0 1-3 3z"})))},a5=()=>{let{t:e}=(0,eJ.Bd)(),t=(0,eT.usePathname)(),a=(0,e2.kH)(e=>e.userInfo),l=(0,tU.WG)(e=>e.positionNum),r=(null==a?void 0:a.accountType)===0,n=(0,eT.useSearchParams)().get("ref"),s=[{name:e("home.trade"),path:"/trade",img:(0,eI.jsx)(a0,{}
1),choosedImg:(0,eI.jsx)(a2,{}),type:1},{name:e("trade.orders"),path:"/orders",img:(0,eI.jsx)(aT,{}),choosedImg:(0,eI.jsx)(aG,{}),type:1},...r?[]:[{name:e("referrals.referrals"),path:"/referrals",img:(0,eI.jsx)(aY,{}),choosedImg:(0,eI.jsx)(aQ,{}),type:1}],{name:e("trade.portfolio"),path:"/portfolio",img:(0,eI.jsx)(aq,{}),choosedImg:(0,eI.jsx)(aJ,{}),type:1},...(null==a?void 0:a.agent)?[{name:e("partner.partner"),path:"/affiliates",img:(0,eI.jsx)(aH,{}),choosedImg:(0,eI.jsx)(aV,{}),type:1}]:[]];return(0,eI.jsx)("div",{className:"w-full md:w-[76px] h-[62px] md:h-full overflow-y-scroll flex-shrink-0",children:(0,eI.jsx)("div",{className:"w-full h-full flex flex-row border-t border-border-color md:flex-col gap-1 bg-main-background",children:s.map(e=>(0,eI.jsx)("div",{className:"w-full h-full md:h-auto relative text-[11px] font-semibold md:font-normal md:text-xs flex flex-col justify-center items-center text-center cursor-pointer md:border-r-[2px] ".concat(t.includes(e.path)?"text-text-dark md:bg-left-nav-hover-bg border-main-color ":"text-text-light border-transparent md:hover:bg-left-nav-hover-bg md:hover:text-header-text-select "),children:(e=>t.includes(e.path)?(0,eI.jsx)(e$(),{href:{pathname:e.path,query:n?{ref:n}:void 0},className:"w-full h-full flex flex-col justify-center items-center",children:(0,eI.jsxs)("div",{className:"flex flex-col items-center mb-2 gap-0.5 md:gap-1.5 leading-[14px]",children:[(0,eI.jsxs)("div",{className:"relative w-6 h-6 text-text-dark",children:[e.choosedImg,e.path.includes("orders")&&(0,eI.jsx)("span",{className:"".concat(l>0?"visible":"invisible"," absolute top-0 left-full translate-x-1 text-xs px-1.5 font-medium rounded-full main-button"),children:l})]}),(0,eI.jsx)("span",{children:e.name})]})}):(0,eI.jsx)(e$(),{href:{pathname:e.path,query:n?{ref:n}:void 0},className:"w-full h-full flex flex-col justify-center items-center",children:(0,eI.jsxs)("div",{className:"flex flex-col items-center mb-2 gap-0.5 md:gap-1.5 leading-[14px]",children:[(0,eI.jsxs)("div",{className:"relative w-6 h-6 text-text-light",children:[e.img,e.path.includes("orders")&&(0,eI.jsx)("span",{className:"".concat(l>0?"visible":"invisible"," absolute top-0 left-full translate-x-1 text-xs px-1.5 font-medium rounded-full main-button"),children:l})]}),(0,eI.jsx)("span",{children:e.name})]})}))(e)},e.name))})})};function a3(){return(a3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let a4=function(e){return eW.createElement("svg",a3({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),eS||(eS=eW.createElement("path",{fill:"#6C757D",d:"m8.052 12.9 6.67 4.896c.762.417 1.31.201 1.5-.703l2.716-12.712c.278-1.108-.425-1.61-1.153-1.282L1.84 9.208c-1.088.434-1.
1081 1.037-.198 1.306l4.091 1.269 9.473-5.938c.447-.27.858-.125.52.173z"})))};function a7(){return(a7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let a8=function(e){return eW.createElement("svg",a7({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),ez||(ez=eW.createElement("path",{fill:"#6C757D",d:"M15.176 2h2.76l-6.03 6.778L19 18h-5.555l-4.35-5.594L4.117 18H1.355l6.45-7.25L1 2h5.695l3.933 5.113zm-.969 14.375h1.53L5.864 3.54h-1.64z"})))},a6=()=>{let{t:e}=(0,eJ.Bd)(),t=(0,eT.usePathname)(),[a,l]=(0,eW.useState)("connecting");return(0,eW.useEffect)(()=>{let e=tG.z.onStatusChange(e=>{l(e)});return()=>{e()}},[]),(0,eI.jsxs)("div",{className:"sticky bottom-0 z-10 flex-row shrink-0 justify-between items-center w-full bg-main-background border-t border-border-color md:border-panel-border-color ".concat("/"===t||t.startsWith("/careers")?"hidden":"hidden md:flex md:h-10"),children:[(0,eI.jsx)("div",{className:"w-full bg-main-background flex py-1.5",children:(0,eI.jsxs)("div",{className:"flex items-center ml-3 px-1.5 py-[2px] rounded-[10px] gap-1",style:{backgroundColor:"connecting"===a?"rgba(255,117,0,0.2)":"connected"===a?"rgba(47,227,172,0.2)":"rgba(245,54,97,0.2)",color:"connecting"===a?"#FF7500":"connected"===a?"#2ebd85":"#E43C5A"},children:[(0,eI.jsx)("div",{className:"w-1.5 h-1.5 rounded-full ".concat("connecting"===a?"bg-[#FF7500]":"connected"===a?"bg-[#2ebd85]":"bg-[#E43C5A]")}),(0,eI.jsx)("span",{className:"text-[11px] font-semibold",children:e("connecting"===a?"trade.socket_connecting":"connected"===a?"trade.socket_connected":"trade.socket_disconnected")})]})}),(0,eI.jsxs)("div",{className:"flex shrink-0 items-center text-text-light",children:[(0,eI.jsxs)("div",{className:"flex text-sm",children:[(0,eI.jsx)("span",{children:e("trade.feedback")}),(0,eI.jsx)("div",{className:"ml-1",children:t$.Tm})]}),(0,eI.jsx)("div",{className:"flex flex-row ml-4 w-0.5 h-4 mr-4 bg-text-light"}),(0,eI.jsxs)("div",{className:"flex flex-row mr-5 gap-3",children:[(0,eI.jsx)("div",{className:"flex flex-row items-center cursor-pointer",onClick:()=>{window.open(t$.Us)},children:(0,eI.jsx)(a4,{className:"w-5 h-5 cursor-pointer text-text-light fill-current"})}),(0,eI.jsx)("div",{className:"flex flex-row items-center cursor-pointer",onClick:()=>{window.open("en-US"===(0,eJ.TO)().language?t$.IH:t$.yE)},children:(0,eI.jsx)(a8,{className:"w-5 h-5 cursor-pointer text-text-light fill-current"})})]})]})]})};var a9=a(92621);let le=JSON.parse('{"nm":"Main Scene","ddd":0,"h":40,"w":400,"meta":{"g":"@lottiefiles/creator 1.61.0"},"layers":[{"ty":0,"nm":"Pre-comp 1","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[200,200,0]},"s":{"a":0,"k":[136.3281005703213,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[202.032,28.01400000000001]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"masksProperties":[{"nm":"Mask 2","inv":false,"mode":"a","x":{"a":0,"k":0},"o":{"a":0,"k":100},"pt":{"a":0,"k":{"c":true,"i":[[4.821,0],[0,0],[0,-4.821],[-4.821,0],[0,0],[0,2.771]],"o":[[0,0],[-4.821,0],[0,4.821],[0,0],[4.821,0],[0,-2.417]],"v":[[337.122,186.522],[59.625,186.49],[52.02,192.229],[59.708,197.449],[337.205,197.481],[343.914,191.917]]}}}],"w":400,"h":400,"refId":"comp_0_8e8a2d7e-f32e-4c60-9185-29d9dff68564","ind":1}],"v":"5.7.0","fr":29.9700012207031,"op":61.0000024845809,"ip":0,"assets":[{"nm":"Scene","id":"comp_0_8e8a2d7e-f32e-4c60-9185-29d9dff68564","layers":[{"ty":0,"nm":"Pre-comp 2","sr":1,"st":-1.00000004073083,"op":899.000036617021,"ip":-1.00000004073083,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[200,200,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.372,"y":0.995},"s":[-63.707,132,0],"t":-1,"ti":[-95.4166641235352,0,0],"to":[95.4166641235352,0,0]},{"s":[508.793,132,0],"t":65.0000026475043}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}
1,"w":400,"h":400,"refId":"comp_1_ea753514-2633-4259-ba76-e1133e377787","ind":1},{"ty":0,"nm":"Pre-comp 2","sr":1,"st":47.0000019143492,"op":947.000038572101,"ip":47.0000019143492,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[200,200,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.663,"y":0.994},"s":[-120.707,132,0],"t":47,"ti":[-100.166664123535,0,0],"to":[100.166664123535,0,0]},{"s":[480.293,132,0],"t":120.0000048877}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"w":400,"h":400,"refId":"comp_1_ea753514-2633-4259-ba76-e1133e377787","ind":2},{"ty":4,"nm":"Master","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[146.5,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[198,192,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.858],[2.859,0],[0,0],[0,2.858]],"o":[[0,0],[2.859,0],[0,2.858],[0,0],[-2.858,0],[0,-2.858]],"v":[[-140.825,-5.175],[140.825,-5.175],[146,0.001],[140.825,5.175],[-140.825,5.175],[-146,0.001]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.1647,0.1647,0.1647]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[146.25,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]},{"nm":"Scene_1","id":"comp_1_ea753514-2633-4259-ba76-e1133e377787","layers":[{"ty":4,"nm":"Layer 5/progressbar-final Outlines","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[76.5,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[296,260,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.859],[2.859,0],[0,0],[0,2.857]],"o":[[0,0],[2.859,0],[0,2.857],[0,0],[-2.858,0],[0,-2.859]],"v":[[-70.825,-5.175],[70.825,-5.175],[76,0],[70.825,5.175],[-70.825,5.175],[-76,0]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9294,0.7451,0.0941]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[76.25,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Layer 4/progressbar-final Outlines","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[22.5,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[86,260,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.859],[2.858,0],[0,0],[0,2.857]],"o":[[0,0],[2.858,0],[0,2.857],[0,0],[-2.858,0],[0,-2.859]],"v":[[-16.825,-5.175],[16.825,-5.175],[22,0],[16.825,5.175],[-16.825,5.175],[-22,0]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9294,0.7451,0.0941]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[22.25,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Layer 3/progressbar-final Outlines","sr":1,"st":0,"op":900.000036657751,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[40,5.5,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[164,260,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.858,0],[0,0],[0,-2.859],[2.858,0],[0,0],[0,2.857]],"o":[[0,0],[2.858,0],[0,2.857],[0,0],[-2.858,0],[0,-2.859]],"v":[[-34.325,-5.175],[34.325,-5.175],[39.5,0],[34.325,5.175],[-34.325,5.175],[-39.5,0]]}}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9294,0.7451,0.0941]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[39.75,5.425],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]}]}');var lt=a(30061);let la=a.p+"static/media/ic_deposit_remind_failed.c3c16243.svg",ll=a.p+"static/media/ic_deposit_remind_success.347ea1d2.svg",lr=()=>{let{t:e}=(0,eJ.Bd)(),t=(0,e2.kH)(e=>e.depositRemindStatus),a=(0,e2.kH)(e=>e.depositWithdrawInfo),[l,r]=(0,eW.useState)(0),n=(0,eW.useRef)(null),s=(0,eW.useRef)(Date.now()),i=(0,eW.useRef)(80+10*Math.random());(0,eW.useEffect)(()=>(s.current=Date.now(),n.current=setInterval(()=>{r(e=>{if(e>=98)return clearInterval(n.current),98;let t=Date.now()-s.current,a=e,l=i.current;return t<5e4?a=1+t/5e4*(l-1)+(2*Math.random()-1):t<12e4?a=l+Math.min((t-5e4)/7e4,1)*(98-l)+(Math.random()-.5)*.5:(a=98,clearInterval(n.current)),(a=Math.floor(a))>98&&(a=98),a<e&&(a=e),a})},300),()=>{clearInterval(n.current)}),[]),(0,eW.useEffect)(()=>{},[!1]);let c=()=>{(0,e2.oG)()};return(0,eI.jsx)(a9.N,{children:(0,eI.jsx)(e9.P.div,{initial:{opacity:0,x:100}
1,animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.4,ease:"easeInOut"},className:"absolute bottom-13 right-3 rounded-xl border border-border-color w-[310px] shadow-xl shadow-[#21252926] z-100",children:(0,eI.jsxs)("div",{className:"rounded-xl bg-deposit-remind-bg px-6 py-4 text-center",children:[(0,eI.jsxs)("div",{className:"flex items-center",children:[(0,eI.jsx)("span",{className:"text-text-dark text-[18px] font-medium",children:(()=>{switch(t){case"processing":return"".concat(e("trade.deposit_in_progress")," ").concat(l,"%");case"success":return e("trade.deposit_success");case"failed":return e("trade.deposit_failed");default:return""}})()}),(0,eI.jsx)("div",{className:"p-2 cursor-pointer ml-auto",onClick:()=>c(),children:(0,eI.jsx)(lt.A,{className:"w-2 h-2 text-text-dark fill-current"})})]}),(0,eI.jsx)("div",{className:"w-60 mt-3 ".concat("processing"===t?"block":"hidden"),children:(0,eI.jsx)(e3(),{animationData:le,loop:!0,autoplay:!0})}),(0,eI.jsxs)("div",{className:"text-text-light text-sm mt-3 flex items-center",children:["processing"!==t&&(0,eI.jsx)("img",{src:"success"===t?ll:la,alt:"",className:"w-4 h-4 mr-2"}),(()=>{switch(t){case"processing":return e("trade.deposit_waiting_confirm");case"success":return e("trade.deposit_success_toast",{amount:(0,tL.tu)(null==a?void 0:a.amount,9),token:null==a?void 0:a.asset});case"failed":return e("trade.deposit_failed_desc");default:return""}})()]}),(0,eI.jsx)("div",{className:"flex items-center justify-center h-[34px] rounded-lg mt-4 cursor-pointer bg-main-color ".concat("processing"!==t?"block":"hidden"),onClick:c,children:(0,eI.jsx)("span",{className:"text-white text-sm font-medium",children:e("trade.ok")})})]})},"deposit-remind")})};function ln(){return(ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let ls=function(e){return eW.createElement("svg",ln({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),eL||(eL=eW.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m15.5 1 2.7 2.7-2.7 2.7M4.7 19 2 16.3l2.7-2.7"})),eR||(eR=eW.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M18.2 3.7H8.3A6.3 6.3 0 0 0 2 10M2 16.3h9.9a6.3 6.3 0 0 0 6.3-6.3"})))},li="remind_floating_position";function lc(e){let{handleShowRemindAction:t}=e,a=(0,eW.useRef)(null),l=(0,eW.useRef)({x:0,y:0}),r=(0,eW.useRef)({x:0,y:0}),n=(0,eW.useRef)(!1),[s,i]=(0,eW.useState)(!1),[c,o]=(0,eW.useState)(null),d=()=>{let e=getComputedStyle(document.documentElement);return{top:Number.parseFloat(e.getPropertyValue("--sat"))||0,bottom:Number.parseFloat(e.getPropertyValue("--sab"))||0}};return((0,eW.useEffect)(()=>{let e=document.createElement("style");e.innerHTML="\n :root {\n --sat: env(safe-area-inset-top);\n --sab: env(safe-area-inset-bottom);\n }\n ",document.head.appendChild(e);let t=localStorage.getItem(li);if(t)o(JSON.parse(t));else{let{bottom:e}=d();o({x:window.innerWidth-40-8,y:window.innerHeight-200-e})}},[]),c)?(0,eI.jsx)("div",{ref:a,onPointerDown:e=>{if(!a.current)return;n.current=!1,i(!0),l.current={x:e.clientX,y:e.clientY};let t=a.current.getBoundingClientRect();r.current={x:e.clientX-t.left,y:e.clientY-t.top},a.current.setPointerCapture(e.pointerId)},onPointerMove:e=>{if(!a.current||null===c)return;let t=Math.abs(e.clientX-l.current.x),s=Math.abs(e.clientY-l.current.y);(t>3||s>3)&&(n.current=!0);let{top:i,bottom:h}=d();o({x:lo(e.clientX-r.current.x,8,window.innerWidth-40-8),y:lo(e.clientY-r.current.y,i+8,window.innerHeight-40-8-h)})},onPointerUp:()=>{if(!c)return;let e={x:c.x+20<window.innerWidth/2?8:window.innerWidth-40-8,y:c.y};i(!1),o(e),localStorage.setItem(li,JSON.stringify(e))},onClick:()=>{n.current||t()},className:"fixed z-50 touch-none",style:{left:c.x,top:c.y,transition:s?"none":"left 0.25s ease-out, top 0.25s ease-out"},children:(0,eI.jsxs)("div",{className:"flex items-center justify-center w-10 h-10 bg-tpsl-floating-background/90 rounded-[10px] relative",children:[(0,eI.jsx)(ls,{}),(0,eI.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-main-color absolute top-1 right-1.5"})]})}):null}function lo(e,t,a){return Math.min(Math.max(e,t),a)}let ld=()=>{let{t:e}=(0,eJ.Bd)(),t=(0,e0.l)(e=>e.isMobile),[a,l]=(0,eW.useState)(!0);return(0,eW.useEffect)(()=>{let e=setTimeout(()=>{l(!1)},5e3);return()=>clearTimeout(e)},[]),(0,eI.jsx)(a9.N,{children:!t&&a&&(0,eI.jsxs)(e9.P.div,{initial:{opacity:0,y:50}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:50},transition:{duration:.4,ease:"easeInOut"},className:"fixed bottom-12 right-4 z-[1000] flex items-center w-[296px] h-[40px] pl-3 pr-2 py-[11px] rounded-[10px] cursor-pointer shadow-lg",style:{background:"linear-gradient(90deg, #EDBE18 0%, #FFE68E 69.23%)"},onClick:()=>{(0,eZ.$s)(eZ.Y4),window.open(t$.Us,"_blank")},children:[(0,eI.jsx)(t0,{}),(0,eI.jsx)("span",{className:"text-[13px] font-medium text-[#212529] ml-1 leading-5",children:e("home.tg_banner_text")}),(0,eI.jsx)(tQ,{className:"ml-auto"}),(0,eI.jsx)("div",{className:"w-[20px] h-[20px] ml-1 flex items-center justify-center rounded-[4px]",onClick:e=>{e.stopPropagation(),l(!1)},children:(0,eI.jsx)(tY,{})})]},"tg-banner")})};var lh=a(85087),lm=a(99065),lu=a(22505),lx=a(41886),lp=a(76273),lf=a(2250);let lg=e=>{let{duration:t=120,onComplete:a}=e,[l,r]=(0,eW.useState)(100),n=(0,eW.useRef)(null),s=(0,eW.useRef)(null);return(0,eW.useEffect)(()=>{let e=l=>{n.current||(n.current=l);let i=Math.max(100-(l-n.current)/1e3/t*100,0);r(i),i>0?s.current=requestAnimationFrame(e):a()};return s.current=requestAnimationFrame(e),()=>{s.current&&cancelAnimationFrame(s.current)}},[t,a]),(0,eI.jsx)("div",{className:"w-full h-full rounded-full bg-border-color overflow-hidden",children:(0,eI.jsx)("div",{className:"h-full rounded-full bg-main-color",style:{width:"".concat(l,"%")}})})},lv=e=>{let{data:t,index:a}=e,{t:l}=(0,eJ.Bd)(),[r,n]=(0,eW.useState)(!1),[s,i]=(0,eW.useState)(0),c=(0,e0.l)(e=>e.isMobile),o=tU.WG.getState().tokenMap[t.symbol].pricePrecision||2,d=e=>{i(e),(0,tU.k3)(t.orderId)};return(0,eI.jsx)(e9.P.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100,zIndex:1===s?101:10},transition:{duration:.4,ease:"easeInOut"},style:{zIndex:100-a,boxShadow:0===a?c?"0 -12px 20px -8px rgba(33, 37, 41, 0.14)":"0 5px 20px rgba(33, 37, 41, 0.15)":"none"},className:"absolute bottom-0 md:bottom-10 right-0 rounded-t-xl md:rounded-xl border border-partner-data-background w-full md:w-[348px] ",children:(0,eI.jsxs)("div",{className:"rounded-xl bg-deposit-remind-bg px-6 pt-6 pb-10 md:px-4 md:pt-4 md:pb-4",children:[(0,eI.jsxs)("div",{className:"flex flex-row items-center w-full relative",children:[(0,eI.jsx)("span",{className:"text-base text-text-dark font-semibold",children:"take_profit_market"===t.orderTypeDetail?l("trade.trigger_tp_sl_dialog_profit_title"):l("trade.trigger_tp_sl_dialog_loss_title")}),(0,eI.jsx)("div",{className:"p-2 cursor-pointer w-6 h-6 absolute right-0 top-0",onClick:()=>d(1),children:(0,eI.jsx)(lt.A,{className:"ml-auto w-2 h-2 text-text-dark fill-current"})})]}),(0,eI.jsx)("div",{className:"text-text-light text-xs mt-1 leading-4",children:l("trade.trigger_tp_sl_dialog_des")}),(0,eI.jsxs)("div",{className:"w-full flex flex-col bg-dialog-tpsl-input-background rounded-xl mt-3 px-3 py-2",children:[(0,eI.jsxs)("div",{className:"flex items-center",children:[(0,eI.jsx)("span",{className:"text-sm text-text-dark font-bold",children:t.symbol}),(0,eI.jsx)("span",{className:"rounded-[4px] text-xs px-1.5 py-0.5 ml-1.5 font-medium ".concat("long"===t.side?"text-[#2ebd85] bg-[#2EBD8533]":"text-[#E43C5A] bg-[#E43C5A33]"),children:"".concat("long"===t.side?l("trade.long"):l("trade.short"))}),(0,eI.jsx)("span",{className:"bg-panel-border-color text-text-dark rounded-[4px] text-xs px-1.5 py-0.5 ml-1.5 font-medium",children:"".concat(t.leverage,"x")})]}),(0,eI.jsx)("span",{className:"text-xs text-text-light font-medium mt-1",children:(0,tL.Ey)(t.timestamp)}),(0,eI.jsxs)("div",{className:"w-full flex justify-between text-xs mt-3",children:[(0,eI.jsx)("span",{className:"text-text-light",children:l("trade.collateral")}),(0,eI.jsx)("span",{className:"text-text-dark font-medium",children:"".concat((0,tL.tu)(t.margin)," USD")})]}),(0,eI.jsxs)("div",{className:"w-full flex justify-between text-xs mt-1",children:[(0,eI.jsx)("span",{className:"text-text-light",children:l("trade.trigger_tp_sl_dialog_close_price")}),(0,eI.jsx)("span",{className:"text-text-dark font-medium",children:"".concat((0,tL.tu)(t.price,o))})]}),(0,eI.jsxs)("div",{className:"w-full flex justify-between text-xs mt-1",children:[(0,eI.jsx)("span",{className:"text-text-light",children:"take_profit_market"===t.orderTypeDetail?l("trade.trigger_tp_sl_dialog_profit_trigger"):l("trade.trigger_tp_sl_dialog_loss_trigger")}),(0,eI.jsx)("span",{className:"text-text-dark font-medium",children:"".concat((0,tL.Ix)("take_profit_market"===t.orderTypeDetail?(0,lp.ez)(t.takeProfitRate,100):(0,lp.ez)(t.stopLossRate,100)),"%")}
1)]}),(0,eI.jsxs)("div",{className:"w-full flex justify-between text-xs mt-1",children:[(0,eI.jsx)("span",{className:"text-text-light",children:l("trade.fee")}),(()=>{var e;let a="tpsl-remind-fee-tip",r=(0,lf.B)(t.lpFee);return(0,eI.jsxs)("div",{className:"flex flex-col",children:[(0,eI.jsx)(lm.m,{target:".".concat(a),position:"top",pt:{root:{className:"w-[200px]"}},children:(0,eI.jsxs)("div",{className:"font-medium text-[12px]",children:[(0,eI.jsx)("div",{children:l("trade.fee_details")}),(0,eI.jsxs)("div",{className:"grid grid-cols-2 mt-1",children:[(0,eI.jsx)("div",{className:"pb-1",children:l("trade.trading_fee")}),(0,eI.jsx)("div",{className:"pb-1 ml-auto font-semibold",children:"".concat((0,tL.wm)((0,tL.Ix)(t.fee,2,"truncate"))," USD")}),(0,eI.jsx)("div",{className:"pb-1",children:l("trade.holding_fee")}),(0,eI.jsx)("div",{className:"pb-1 ml-auto font-semibold",children:"".concat((0,tL.wm)((0,tL.Ix)(t.fundingFee,2,"truncate"))," USD")}),r&&(0,eI.jsxs)(eI.Fragment,{children:[(0,eI.jsx)("div",{className:"pb-1",children:l("trade.lp_fee")}),(0,eI.jsx)("div",{className:"pb-1 ml-auto font-semibold",children:"".concat((0,tL.wm)((0,tL.Ix)(null!=(e=t.lpFee)?e:0,2,"truncate"))," USD")})]})]})]})}),(0,eI.jsx)("span",{className:"".concat(a," text-text-dark font-medium underline decoration-dotted decoration-0.5 underline-offset-2"),children:"".concat((0,tL.wm)((0,tL.Ix)((0,lf.N)(t.fee,t.fundingFee,t.lpFee),2,"truncate"))," USD")})]})})()]}),(0,eI.jsxs)("div",{className:"w-full flex justify-between text-xs mt-1",children:[(0,eI.jsx)("span",{className:"text-text-light",children:l("trade.position_pnl")}),(0,eI.jsx)("span",{className:"font-medium ".concat(Number(t.positionPnl)>0?"text-[#2ebd85]":"text-[#E43C5A]"),children:(0,tL.RK)(t.positionPnl,2,"truncate")})]}),(0,eI.jsxs)("div",{className:"w-full flex justify-between text-xs mt-1",children:[(0,eI.jsx)("span",{className:"text-text-light",children:l("trade.closed_pnl")}),(0,eI.jsx)("span",{className:"font-medium ".concat(Number(t.realizedPnl)>0?"text-[#2ebd85]":"text-[#E43C5A]"),children:(0,tL.RK)(t.realizedPnl,2,"up")})]})]}),(0,eI.jsxs)("div",{className:"w-full mt-3 flex items-center gap-2",children:[(0,eI.jsx)("span",{className:"flex-1 bg-withdraw-button-color h-9.5 leading-9.5 rounded-[10px] text-center text-text-dark text-sm font-semibold cursor-pointer",onClick:()=>d(1),children:l("trade.cancel")}),(0,eI.jsxs)("div",{className:"w-full flex-1 relative h-9.5",children:[(0,eI.jsx)(lh.$,{className:"w-full !bg-text-dark !border-none !text-affiliate-search-text !text-sm h-9.5 !font-semibold !rounded-[10px] !px-0",rounded:!0,label:l("trade.trigger_tp_sl_dialog_confirm"),disabled:r,onClick:()=>{let e,a=t.margin,r={symbol:t.symbol,side:t.side,type:t.type,quantity:a,leverage:t.leverage,quantityType:"margin",takeProfitRate:t.takeProfitRate,stopLossRate:t.stopLossRate,price:e,useExperienceFund:t.useExperienceFund,marginMode:t.marginMode,clientOrderId:Date.now()};n(!0),(0,tA.wH)(r).then(()=>{(0,lx.P0)("success",l("trade.place_order_success"),3e3),tG.z.isConnected()||(0,tU.K)()}).catch(e=>{7010===e.code?(0,lx.P0)("error",e.message,3e3):8096===e.code&&(0,tU.JZ)()}).finally(()=>{n(!1)})}}),r?(0,eI.jsx)("img",{className:"w-5 h-5 circle-progress absolute right-2 top-[50%] -translate-y-1/2",src:lu,alt:""}):null]})]}),(0,eI.jsx)("div",{className:"w-full mt-3 h-1.5",children:(0,eI.jsx)(lg,{duration:60,onComplete:()=>d(0)})})]})})};var lw=a(66693);function lb(){return(lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let lk=function(e){return eW.createElement("svg",lb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),eD||(eD=eW.createElement("path",{fill:"#1A91F3",fillRule:"evenodd",d:"M7.789 0c2.148 0 3.892 1.652 3.892 3.693-.001 1.508-.957 2.805-2.324 3.378 2.887.383 6.505 1.916 6.64 5.233.16 3.966-5.928 3.692-8.214 3.692S0 16.1 0 12.303c0-3.206 3.395-4.78 6.276-5.208-1.398-.56-2.38-1.872-2.38-3.402C3.896 1.653 5.638 0 7.789 0m-.006 8.204c-2.655.052-6.525 1.601-6.487 4.102.002 2.683 4.876 2.46 6.546 2.46s7.008-.254 6.859-2.46c-.027-2.166-3.713-3.72-6.048-4.04.101.103.947.983.948 1.4.013 1-1.032 2.473-1.598 2.473S6.42 10.522 6.405 9.667c-.006-.452.943-1.394.96-1.412h1.192a6 6 0 0 0-.774-.051m.006-6.972c-1.432 0-2.595 1.102-2.595 2.46 0 1.359 1.163 2.461 2.595 2.461 1.431 0 2.594-1.102 2.594-2.46 0-1.359-1.163-2.461-2.594-2.461",clipRule:"evenodd"})))};function lj(){return(lj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let ly=function(e){return eW.createElement("svg",lj({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none"},e),eB||(eB=eW.createElement("path",{fill:"#1A91F3",fillRule:"evenodd",stroke:"#1A91F3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.4,d:"M10.843.2a3.095 3.095 0 0 1 2.187 5.282h2.72c.25 0 .453.203.453.453v3.019c0 .25-.203.453-.453.453h-1.058v4.83a1.96 1.96 0 0 1-1.963 1.962H3.672a1.96 1.96 0 0 1-1.962-1.962v-4.83H.656a.453.453 0 0 1-.453-.453V5.935c0-.25.203-.453.453-.453h2.719A3.094 3.094 0 1 1 8.203 1.68 3.09 3.09 0 0 1 10.842.2M2.616 14.23
16c0 .584.473 1.056 1.056 1.057H7.75V9.407H2.616zm6.039 1.057h4.074c.584 0 1.057-.473 1.057-1.057v-4.83H8.655zM1.109 8.5h6.64V6.388H1.11zm7.546 0h6.643V6.388H8.654zm2.188-7.396c-1.2 0-2.173.965-2.188 2.16l.001.028-.001.028v2.161h2.188a2.19 2.19 0 0 0 0-4.377m-5.281 0a2.189 2.189 0 0 0 0 4.377h2.187V3.237a2.19 2.19 0 0 0-2.187-2.132",clipRule:"evenodd"})))};function lE(){return(lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let lN=function(e){return eW.createElement("svg",lE({xmlns:"http://www.w3.org/2000/svg",width:18,height:15,fill:"none"},e),eH||(eH=eW.createElement("path",{fill:"#fff",d:"m7.052 9.9 6.67 4.896c.762.417 1.31.201 1.5-.703l2.716-12.712c.278-1.108-.425-1.61-1.153-1.282L.84 6.208C-.248 6.642-.24 7.245.642 7.514l4.091 1.269 9.473-5.938c.447-.27.857-.125.52.173z"})))};function l_(){return(l_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let lA=function(e){return eW.createElement("svg",l_({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),eF||(eF=eW.createElement("path",{fill:"#1A91F3",d:"M11.563 3.978a.15.15 0 0 1 .213 0l.694.686a.15.15 0 0 1 0 .21L8.2 9.1a.153.153 0 0 1-.213 0L6.362 7.49 4.442 9.39a.153.153 0 0 1-.213 0l-.694-.687a.15.15 0 0 1 0-.21l2.722-2.691a.153.153 0 0 1 .213 0l1.625 1.607z"})),eV||(eV=eW.createElement("path",{fill:"#1A91F3",fillRule:"evenodd",d:"M8.528 0a.15.15 0 0 1 .151.15v1.193h6.717a.6.6 0 0 1 .604.596v9.697a.6.6 0 0 1-.604.597H8.68v.602l3.102 2.01a.15.15 0 0 1 .044.205l-.572.88v.003a.153.153 0 0 1-.21.043L8 14.003l-3.043 1.973a.153.153 0 0 1-.21-.043v-.002l-.572-.88a.147.147 0 0 1 .044-.206l3.11-2.015v-.597H.604A.6.6 0 0 1 0 11.636V1.94a.6.6 0 0 1 .604-.596H7.32V.149A.15.15 0 0 1 7.47 0zm-7.17 2.685v8.205h13.284V2.685z",clipRule:"evenodd"})))},lO={src:"/_next/static/media/ic_vip_group_invite.4ccd1e38.webp",height:114,width:168,blurDataURL:"data:image/webp;base64,UklGRp4AAABXRUJQVlA4WAoAAAAQAAAABwAABAAAQUxQSCkAAAAAAAQa5O
1k4AwBT3qT////rdPGWR///fojz49aS2bit/9EilNX2kF2oEwBWUDggTgAAAPABAJ0BKggABQACQDglsAJ0ugACt3Md4AD+rTYnn2jh+i69jw8/PkylxrGZwNi/X5v5dIKv+CqdEw35JhRHLu078m7K/evP7pFpRz9wAA==",blurWidth:8,blurHeight:5},lC=e=>{let{onClose:t,onAction:a}=e,{t:l}=(0,eJ.Bd)(),r=(0,e0.l)(e=>e.isMobile);(0,eW.useEffect)(()=>{(0,eZ.$s)(eZ.Tk)},[]);let n=[{title:l("vip_group_invite.benefit_1_title"),desc:l("vip_group_invite.benefit_1_desc"),icon:(0,eI.jsx)(lA,{className:"w-4 h-4 text-main-color"})},{title:l("vip_group_invite.benefit_2_title"),desc:l("vip_group_invite.benefit_2_desc"),icon:(0,eI.jsx)(lk,{className:"w-4 h-4 text-main-color"})},{title:l("vip_group_invite.benefit_3_title"),desc:l("vip_group_invite.benefit_3_desc"),icon:(0,eI.jsx)(ly,{className:"w-4 h-4 text-main-color"})}];return(0,eI.jsx)(e9.P.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100,zIndex:101},transition:{duration:.4,ease:"easeInOut"},style:{zIndex:100,boxShadow:r?"0 -12px 20px -8px rgba(33, 37, 41, 0.14)":"0 5px 20px rgba(33, 37, 41, 0.15)"},className:"absolute bottom-0 md:bottom-10 right-0 rounded-t-xl md:rounded-xl w-full md:w-[348px]",children:(0,eI.jsxs)("div",{className:"rounded-xl bg-deposit-remind-bg",children:[(0,eI.jsx)(lw.default,{src:lO,alt:"",width:84,height:57,className:"pointer-events-none absolute left-4 top-[-100px] h-[188px] w-[84px] object-contain"}),(0,eI.jsx)("div",{className:"m-4 cursor-pointer absolute right-0 top-0 z-10",onClick:()=>{(0,eZ.$s)(eZ.co),t()},children:(0,eI.jsx)(lt.A,{className:"w-6 h-6 text-[#8D8E92] fill-current"})}),(0,eI.jsxs)("div",{className:"px-4 pb-4 pt-7",children:[(0,eI.jsxs)("div",{className:"flex flex-col gap-3 mb-5",children:[(0,eI.jsx)("div",{className:"text-xl md:text-lg font-semibold text-text-dark",children:l("vip_group_invite.title")}),(0,eI.jsx)("div",{className:"text-base md:text-sm text-text-light",children:(0,eI.jsx)(eJ.x6,{i18nKey:"vip_group_invite.description",components:{1:(0,eI.jsx)("span",{className:"text-main-color"})}})})]}),(0,eI.jsx)("div",{className:"border border-partner-data-background rounded-xl p-4 mb-6 flex flex-col gap-4 bg-token-list-item-hover-color",children:n.map((e,t)=>(0,eI.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,eI.jsx)("div",{className:"w-10 h-10 rounded-lg bg-[rgba(26,145,243,0.1)] flex items-center justify-center flex-shrink-0",children:e.icon}),(0,eI.jsxs)("div",{className:"flex flex-col gap-1.5 flex-1",children:[(0,eI.jsx)("div",{className:"text-base md:text-sm font-semibold text-text-dark",children:e.title}),(0,eI.jsx)("div",{className:"text-sm md:text-xs text-text-light leading-[1.2]",children:e.desc})]})]},t))}),(0,eI.jsxs)("div",{className:"w-full h-11 rounded-[10px] bg-main-color text-white text-base md:text-sm font-medium flex items-center justify-center gap-2 cursor-pointer hover:opacity-90 transition-opacity",onClick:()=>{(0,eZ.$s)(eZ.bk),a()},children:[(0,eI.jsx)(lN,{className:"w-[18px] h-[15px]"}),(0,eI.jsx)("span",{children:l("vip_group_invite.join_button")})]})]})]})})},lM=()=>{let e=(0,e2.kH)(e=>e.depositRemindStatus),t=(0,tU.WG)(e=>e.triggerTPSLList),a=(0,e0.l)(e=>e.isMobile),l=(0,e2.kH)(e=>e.isLogined),r=(0,e2.kH)(e=>e.firstClosePositionStatus),n=(0,e2.kH)(e=>e.trialFundData),s=(0,eW.useRef)(!1),[i,c]=(0,eW.useState)(!1),[o,d]=(0,eW.useState)(!1),{showTrialFundActivatedDialog:h}=(0,tS.s)();(0,eW.useEffect)(()=>{0!==t.length&&l||c(!1)},[t,l]),(0,eW.useEffect)(()=>{n&&!s.current&&(s.current=!0,h(n,()=>{e2.kH.setState({trialFundData:void 0}),s.current=!1}))},[n,h]),(0,eW.useEffect)(()=>{if("triggered"===r&&l){let e=setTimeout(()=>{c(!1),d(!0)},1e3);return()=>clearTimeout(e)}},[r,l]);let m=a&&t.length>0&&"triggered"!==r&&!o&&l,u="triggered"!==r&&!o;return(0,eI.jsxs)("div",{children:["pending"!==e&&(0,eI.jsx)(lr,{}),(0,eI.jsx)(ld,{}),u&&(!a||i)?(0,eI.jsx)(a9.N,{children:t.map((e,t)=>(0,eI.jsx)(lv,{data:e,index:t},e.orderId))}):(0,eI.jsx)(eI.Fragment,{children:m&&(0,eI.jsx)(lc,{handleShowRemindAction:()=>c(!0)})}),o&&(0,eI.jsx)(a9.N,{children:(0,eI.jsx)(lC,{onClose:()=>{d(!1),e2.kH.setState({firstClosePositionStatus:"pending"})},onAction:()=>{window.open("https://t.me/XStableRWA/9540","_blank"),d(!1),e2.kH.setState({firstClosePositionStatus:"pending"})}})})]})};function lP(e){let{children:t}=e,a=(0,eT.usePathname)(),l=a.startsWith("/careers");(0,e2.kH)(e=>e.language);let r=(0,eG.Ub)({maxWidth:767});return(0,eW.useEffect)(()=>{let e=()=>{(0,e0.J)(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,eI.jsx)(aD.Ay,{children:(0,eI.jsxs)("main",{className:"flex",children:[(0,eI.jsxs)("div",{className:"w-full relative flex flex-col h-svh overflow-y-hidden",children:[(0,eI.jsx)(aR,{}),(0,eI.jsx)("div",{"data-theme":l?"dark":void 0,className:"w-full flex-1 md:h-full md:overflow-y-auto ".concat(l?"h-[calc(100svh-60px)] overflow-y-auto bg-[#070808]":"h-[calc(100svh-60px-62px)] bg-main-background"),children:t}),r&&"/"!==a&&!l&&(0,eI.jsx)(a5,{}),(0,eI.jsx)(a6,{})]}),(0,eI.jsx)(lM,{})]})})}},37127:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(80069),r=a(49500),n=a(81983),s=a(20801),i=a(79477);function c(e){let{trigger:t,children:a,position:c="left",showArrow:o=!0,className:d,panelClassName:h}
1=e,[m,u]=(0,s.useState)(!1),x=(0,s.useRef)(null),p=(0,s.useRef)(null);return(0,l.jsxs)("div",{ref:p,className:"relative inline-block ".concat(d),children:[(0,l.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:e=>{var t,a;m?(null==(t=x.current)||t.hide(),u(!1)):(null==(a=x.current)||a.show(e,p.current),u(!0))},children:[t,o&&(0,l.jsx)(r.P.div,{animate:{rotate:m?-180:0},transition:{duration:.3},className:"ml-1.5 w-4 h-4",children:(0,l.jsx)(i.A,{className:"w-4 h-4 text-text-light fill-current"})})]}),(0,l.jsx)(n.j,{ref:x,className:"!bg-transparent !mt-1 ".concat(h),style:{visibility:"hidden"},dismissable:!0,onHide:()=>u(!1),onShow:()=>{var e;let t=p.current,a=null==(e=x.current)?void 0:e.getElement();if(t&&a){if("right"!==c){a.style.visibility="visible";return}a.style.visibility="hidden",requestAnimationFrame(()=>{let e=t.getBoundingClientRect(),l=e.left+e.width-a.offsetWidth;a.style.left="".concat(l,"px"),a.style.visibility="visible"})}},children:a(()=>{var e;null==(e=x.current)||e.hide(),u(!1)})})]})}},93857:(e,t,a)=>{a.d(t,{A:()=>s});var l,r=a(20801);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let s=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),l||(l=r.createElement("path",{fill:"currentColor",d:"M12.247 12.249a.583.583 0 1 1 0 1.166h-10.5a.583.583 0 0 1 0-1.166zM7.01.583h.03a1 1 0 0 1 .084.013L7.14.6a.6.6 0 0 1 .27.153l4.083 4.083a.583.583 0 1 1-.825.825L7.581 2.574v7.341a.583.583 0 0 1-1.167 0V2.574L3.327 5.66a.583.583 0 1 1-.825-.825L6.585.753A.6.6 0 0 1 6.706.66l.026-.014a.6.6 0 0 1 .115-.044l.03-.007.018-.004a1 1 0 0 1 .09-.008l.012-.001z"})))}},96197:(e,t,a)=>{a.d(t,{A:()=>s});var l,r=a(20801);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let s=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),l||(l=r.createElement("path",{fill:"currentColor",d:"M12.247 12.249a.583.583 0 1 1 0 1.166h-10.5a.583.583 0 0 1 0-1.166zM6.997.582c.323 0 .584.261.584.583v7.342l3.087-3.087a.583.583 0 1 1 .825.824L7.41 10.328a.6.6 0 0 1-.242.145l-.036.01q-.01 0-.02.004l-.018.003a.6.6 0 0 1-.193 0l-.019-.003-.02-.005q-.018-.004-.035-.009a.6.6 0 0 1-.242-.145L2.502 6.244a.583.583 0 1 1 .825-.824l3.087 3.087V1.165c0-.322.261-.583.583-.583"})))}}}]);
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.