forked from Romeo-Rosete/EXCHANGE-SECURITY
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2025.4ad7f8489d9d68a.js.download
1 lines (1 loc) · 101 KB
/
2025.4ad7f8489d9d68a.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2025,19956],{73264:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(75190),c=t(52322),s=t(2784),l=t(82740),u=t(58358),d=t(16898),f=t(31504),p=t(98748);function h(){var n=(0,a.Z)(["\n position: relative;\n display: inline-block;\n flex-shrink: 0;\n display: block;\n ","\n\n .avatar-item-bg {\n width: 100%;\n height: 100%;\n border-radius: 100%;\n background: var(--color-light-neutral-1);\n transition: border 200ms ease-out;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n .avatar-item-img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .avatar-item-bg--actived {\n border: 4px solid #3861fb;\n }\n"]);return h=function(){return n},n}var x=l.ZP.a.withConfig({componentId:"sc-bf34d345-0"})(h(),(0,u.variant)({prop:"size",variants:{sm:{width:"18px",height:"18px",marginInlineEnd:"8px"},xsm:{width:"24px",height:"24px",marginInlineEnd:"8px"},md:{width:"28px",height:"28px",marginInlineEnd:"10px"},mobile:{width:"32px",height:"32px",marginInlineEnd:"8px"},announcement:{width:"36px",height:"36px",marginInlineEnd:"8px"},gravity:{width:"40px",height:"40px",marginInlineEnd:"7px"},lg:{width:"56px",height:"56px",marginInlineEnd:"16px"},xl:{width:"62px",height:"62px",marginInlineEnd:"16px"},xxl:{width:"110px",height:"110px",marginInlineEnd:"16px"}}})),m=(0,f.pZ)("/static/cloud/img/avatars/default.png"),g=(0,f.pZ)("/static/cloud/img/avatars/profile-default.svg"),v=function(n,e,t,r){return e||!r&&!n?t?g:m:r||(0,f.bZ)("/static/img/portraits/".concat(n,".png"))},y=s.forwardRef((function(n,e){var t=n.id,a=n.isDefault,l=void 0!==a&&a,u=n.isProfileDefault,f=void 0!==u&&u,h=n.withLink,g=n.avatarUrl,y=(n.nextImageConfig,n.avatarFrameUrl),C=n.size,b=void 0===C?"md":C,Z=(0,o.Z)(n,["id","isDefault","isProfileDefault","withLink","avatarUrl","nextImageConfig","avatarFrameUrl","size"]),w=(0,s.useState)(g||t?function(){return v(t,l,f,g)}:m),T=w[0],k=w[1];(0,s.useEffect)((function(){k((function(){return v(t,l,f,g)}))}),[t,l,g]);var j=(0,c.jsxs)(x,(0,i.Z)((0,r.Z)({size:b},Z),{ref:e,children:[(0,c.jsx)("div",{className:"avatar-item-bg",children:(0,c.jsx)("img",{className:"avatar-item-img",loading:"lazy",decoding:"async",fetchpriority:"low",src:T,onError:function(){return k(m)}})}),y&&(0,c.jsx)(p.Z,{url:y})]}));return h&&h.guid&&h.handle?(0,c.jsx)(d.Z,{href:"/profile/".concat(h.handle,"/"),passHref:!0,children:j}):j}));e.Z=y},98748:function(n,e,t){t.d(e,{Z:function(){return s}});var r=t(52322),i=t(2784),o=t(75190);function a(){var n=(0,o.Z)(["\n position: absolute;\n left: 50%;\n top: 50%;\n z-index: 1;\n width: 130%;\n height: 130%;\n transform: translate3d(-50%, -50%, 0);\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n"]);return a=function(){return n},n}var c=t(82740).ZP.div.withConfig({componentId:"sc-b3fb80e1-0"})(a()),s=function(n){var e=n.url,t=(0,i.useState)(!1),o=t[0],a=t[1];return o?null:(0,r.jsx)(c,{className:"avatar-frame__container",children:(0,r.jsx)("img",{src:e,alt:"avatar frame",onError:function(){return a(!0)}})})}},19956:function(n,e,t){var r;t.d(e,{F:function(){return r}}),function(n){n[n.CDP_DESKTOP_LEFT_PANEL=1]="CDP_DESKTOP_LEFT_PANEL",n[n.CDP_WEB_LEFT_PANEL=2]="CDP_WEB_LEFT_PANEL",n[n.CDP_LIVE_CHAT=3]="CDP_LIVE_CHAT",n[n.CDP_LIVE_CHAT_6TH=4]="CDP_LIVE_CHAT_6TH",n[n.SEARCH=5]="SEARCH",n[n.HOMEPAGE_BOTTOM=6]="HOMEPAGE_BOTTOM",n[n.NEWSLETTER_BOTTOM=7]="NEWSLETTER_BOTTOM",n[n.ABOUT_BOTTOM=8]="ABOUT_BOTTOM",n[n.CATEGORY_BOTTOM=9]="CATEGORY_BOTTOM",n[n.PDP_LEFT_PANEL=10]="PDP_LEFT_PANEL",n[n.WATCHLIST_BOTTOM=11]="WATCHLIST_BOTTOM",n[n.DIAMOND_LEFT_PANEL=12]="DIAMOND_LEFT_PANEL",n[n.DIAMOND_POP_UP=13]="DIAMOND_POP_UP",n[n.VIEW_PAGE_BOTTOM=14]="VIEW_PAGE_BOTTOM",n[n.PORTFOLIO_LEFT_PANEL=15]="PORTFOLIO_LEFT_PANEL",n[n.COMMUNITY_RECOMMENDED_FEED_DESKTOP=16]="COMMUNITY_RECOMMENDED_FEED_DESKTOP",n[n.COMMUNITY_POST_DETAIL_TRENDING_SECTION_DESKTOP=17]="COMMUNITY_POST_DETAIL_TRENDING_SECTION_DESKTOP",n[n.COMMUNITY_POST_DETAIL_FEED_AFTER_FIRST_COMMENT_DESKTOP=18]="COMMUNITY_POST_DETAIL_FEED_AFTER_FIRST_COMMENT_DESKTOP",n[n.CDP_POST_DETAIL_MODAL_AFTER_FIRST_COMMENT_DESKTOP=19]="CDP_POST_DETAIL_MODAL_AFTER_FIRST_COMMENT_DESKTOP"}(r||(r={}))},17237:function(n,e,t){var r=t(62230),i=t(52322),o=t(38789),a=t(72779),c=t.n(a),s=t(8112),l=t(66053),u=t(54382);e.Z=function(n){var e=n.authType,t=n.className,a=n.style,d=void 0===a?{}:a,f=(0,s.$G)().t;return 1===Number(e)?(0,i.jsx)(l.Z,{className:c()("icon-certified",t),sx:(0,r.Z)({color:o.colorBlue},d)}):2===Number(e)?(0,i.jsx)(u.default,{content:f("Aggregated by CoinMarketCap",{ns:"gravity-post"}),appendTo:function(){return document.body},interactiveBorder:0,theme:"info",placement:"top",children:(0,i.jsx)(l.Z,{className:c()("icon-certified",t),sx:(0,r.Z)({color:o.colorBlue},d)})}):null}},17365:function(n,e,t){t.d(e,{Z:function(){return p}});var r=t(52322),i=t(2784),o=t(86931),a=t(75190),c=t(82740),s=t(38789);function l(){var n=(0,a.Z)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: 4px;\n > img {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n }\n"]);return l=function(){return n},n}function u(){var n=(0,a.Z)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ","px;\n height: ","px;\n border-radius: 4px;\n background-color: ",";\n svg {\n color: ",";\n font-size: ",";\n }\n"]);return u=function(){return n},n}var d=c.ZP.span.withConfig({componentId:"sc-a5e3c1e6-0"})(l(),(function(n){return n.size}),(function(n){return n.size}),s.colorGray300),f=c.ZP.span.withConfig({componentId:"sc-a5e3c1e6-1"})(u(),(function(n){return n.size}),(function(n){return n.size}),s.colorGray300,s.colorGray500,"".concat((function(n){return.8*n.size}),"px")),p=function(n){var e=n.src,t=n.style,a=n.name,c=n.size,s=void 0===c?20:c,l=(0,i.useState)(!1),u=l[0],p=l[1];return e?u?(0,r.jsx)(f,{className:"topic-logo-box",style:t,size:s,children:(0,r.jsx)(o.Z,{})}):(0,r.jsx)(d,{className:"topic-logo-box",size:s,children:(0,r.jsx)("img",{className:"topic-logo",src:e,onError:function(){p(!0)},alt:a||"topic",style:t,loading:"lazy",decoding:"async",fetchpriority:"low"})}):null}},64550:function(n,e,t){t.d(e,{T:function(){return u}});var r=t(52322),i=t(2784),o=t(37881),a=t(11493),c=t(29101),s=t(31504),l=t(64835);function u(n){var e=n.name,t=n.rank,u=n.symbol,d=n.logo,f=n.quoteLogo,p=n.focused,h=n.href,x=n.t,m=n.rowType,g=n.quoteToken,v=n.liquidity,y=n.onItemClick,C=(0,i.useContext)(c.Zy).isDay;return(0,r.jsx)(a.Z,{forceRefresh:!0,href:h,onClick:y,children:(0,r.jsxs)(l.W2,{className:p?"focused":"",children:[(0,r.jsx)(l.S1,{children:(0,r.jsxs)(l.X2,{children:[(0,r.jsx)(l._v,{src:d,name:e}),"dexer"===m?(0,r.jsx)(l._v,{src:f,name:e,onError:function(n){n.target.src=C?(0,s.ZP)("/cloud/img/dex/default-icon-day-v3.svg"):(0,s.ZP)("/cloud/img/dex/default-icon-dark-v3.svg"),n.target.onError=null}}):"",(0,r.jsx)(o.ZP,{fontWeight:"semibold",style:{whiteSpace:"nowrap"},className:"coin-name",children:e}),"dexer"===m?(0,r.jsx)(o.ZP,{color:"neutral6",fontWeight:"400",style:{whiteSpace:"nowrap"},children:"/"+g}):"","dexer"===m?(0,r.jsx)("span",{className:"coin-item-symbol liquidity-wrap",children:(0,r.jsx)(o.ZP,{color:"neutral6",className:v.length>=10?"liquidity":"",fontSize:"12px",dangerouslySetInnerHTML:{__html:x("Liquidity")+": "+v}})}):"",(0,r.jsx)(o.ZP,{color:"neutral6",className:"coin-item-symbol",children:u})]})}),(0,r.jsxs)(l.X2,{focused:p,className:"tip-info",children:[(0,r.jsxs)("div",{className:"select-control",children:[(0,r.jsxs)(o.ZP,{fontSize:"12px",color:"neutral5",mr:"4px",children:[x("Select")," "]}),(0,r.jsx)(l.Py,{children:"\u21b5"})]}),(0,r.jsx)("div",{className:"rank-area",children:t?(0,r.jsxs)(o.ZP,{fontSize:"12px",color:"neutral5",fontWeight:"500",children:["#",t]}):null})]})]})})}},367:function(n,e,t){t.d(e,{U:function(){return o},w:function(){return i}});var r=t(65310),i=function(n){return[{key:r.y.POST,label:n("Posts",{ns:"gravity"})},{key:r.y.COIN,label:n("Coin discussions",{ns:"gravity"})},{key:r.y.TOPIC,label:n("Topics",{ns:"gravity"})},{key:r.y.ACCOUNT,label:n("People",{ns:"gravity"})}]},o=30},81936:function(n,e,t){t.d(e,{My:function(){return P},k7:function(){return j},X_:function(){return S},UX:function(){return N}});var r=t(62230),i=t(81541),o=t(2784),a=t(84402),c=t(7964),s=t(1284),l=t(7279),u=t(5632),d=t(29101),f=t(66016),p=t(82066),h=t(12998),x=t(15798),m=t.n(x),g=t(54293),v=function(n){return(0,g.zh)({baseURL:"".concat(m().env.endpoints.javaApi),url:"/gravity/v4/gravity/global-search",method:"POST",data:n}).then((function(n){var e,t=n.data;return(0,l.Z)(null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.suggestions)?{tokens:[],accounts:[],topics:[],postCount:"0"}:t.data.suggestions.reduce((function(n,e){switch(e.type){case"token":n.tokens=e.tokens||[];break;case"account":n.accounts=e.accounts||[];break;case"topic":n.topics=e.topicsV4||[];break;case"text":n.postCount=e.postCount}return n}),{tokens:[],accounts:[],topics:[],postCount:"0"})})).catch((function(){return{tokens:[],accounts:[],topics:[],postCount:"0"}}))},y=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.useQuery)(h.Z.globalSearch(n.keyword),(function(){return v(n)}),(0,r.Z)({},e))},C=t(91077),b=t(49329),Z=t(367),w=t(65310),T=t(31942),k=function(n,e){if(!(0,a.Z)(n)&&!(0,c.Z)(n))return e===w.y.COIN?{type:b.X.COMMUNITY,subType:w.y.COIN,coin:n,key:(0,C.Ki)()}:e===w.y.TOPIC?{type:b.X.COMMUNITY,subType:w.y.TOPIC,topic:(0,s.Z)(n)?n:n.name,nftTopic:(0,s.Z)(n)?null:n,key:(0,C.Ki)()}:e===w.y.ACCOUNT?{type:b.X.COMMUNITY,subType:w.y.ACCOUNT,account:n,key:(0,C.Ki)()}:e===w.y.POST?{type:b.X.COMMUNITY,subType:w.y.POST,postCount:n,key:(0,C.Ki)()}:void 0},j=function(n){if((0,l.Z)(n))return[k("0",w.y.POST)];var e=n.tokens,t=void 0===e?[]:e,r=n.accounts,o=void 0===r?[]:r,a=n.topics,c=void 0===a?[]:a,s=n.postCount,u=void 0===s?0:s,d=t.slice(0,t.length),f=c.slice(0,c.length),p=o.slice(0,o.length),h=[d,f,p],x=[w.y.COIN,w.y.TOPIC,w.y.ACCOUNT],m=[k(u,w.y.POST),k(d.shift(),w.y.COIN),k(f.shift(),w.y.TOPIC),k(p.shift(),w.y.ACCOUNT)].filter((function(n){return!(0,l.Z)(n)}));return x.forEach((function(n,e){if(m.length<4){var t,r,o=null===(t=h[e])||void 0===t?void 0:t.slice(0,4-m.length);if(o.length>0)(r=m).push.apply(r,(0,i.Z)(o.map((function(e){return k(e,n)})).filter(Boolean)))}})),m.sort((function(n,e){return x.indexOf(n.subType)-x.indexOf(e.subType)})),m},P=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if((0,l.Z)(n))return[k("0",w.y.POST)];var t=n.tokens,r=void 0===t?[]:t,o=n.accounts,a=void 0===o?[]:o,c=n.topics,s=void 0===c?[]:c,u=n.postCount,d=[];if(d.push(k(u,w.y.POST)),!(0,l.Z)(r)){var f,p=r.slice(0,e).map((function(n){return k(n,w.y.COIN)}));(f=d).push.apply(f,(0,i.Z)(p))}if(!(0,l.Z)(s)){var h,x=s.slice(0,e).map((function(n){return k(n,w.y.TOPIC)}));(h=d).push.apply(h,(0,i.Z)(x))}if(!(0,l.Z)(a)){var m,g=a.slice(0,e).map((function(n){return k(n,w.y.ACCOUNT)}));(m=d).push.apply(m,(0,i.Z)(g))}return d},N=function(n,e){var t=n.replace(/\s\s+/g," ").trim(),i=(0,f.N)(t,300).slice(0,Z.U);return y({keyword:i,scene:"community",limit:5},(0,r.Z)({enabled:Boolean(i)},e))},S=function(){var n=(0,d.qL)().language,e=(0,u.useRouter)();return(0,o.useCallback)((function(t){(0,T.JZ)(t,e,n)}),[])}},65310:function(n,e,t){var r;t.d(e,{y:function(){return r}}),function(n){n[n.POST=1]="POST",n[n.COIN=2]="COIN",n[n.ACCOUNT=3]="ACCOUNT",n[n.TOPIC=4]="TOPIC"}(r||(r={}))},31942:function(n,e,t){t.d(e,{JZ:function(){return c},NK:function(){return s},wX:function(){return a}});var r=t(3154),i=t(367),o=t(65310),a=function(n,e){var t,r,a,c,s,l,u,d,f,p,h,x,m=e.slice(0,i.U);if(n.subType===o.y.POST&&(t="/search/latest/?q=".concat(encodeURIComponent(m)),r="\u2018".concat(m,"\u2019")),n.subType===o.y.COIN){var g,v,y,C,b=null!==(C=null===(g=n.coin)||void 0===g?void 0:g.slug)&&void 0!==C?C:null===(v=n.coin)||void 0===v?void 0:v.symbol;t="/search/top/".concat(encodeURIComponent(null===b||void 0===b?void 0:b.toLocaleLowerCase()),"/"),r="$"+(null===(y=n.coin)||void 0===y?void 0:y.symbol)}n.subType===o.y.TOPIC&&(t="/topics/".concat(encodeURIComponent(n.topic),"/top/"),r="#"+n.topic,(null===n||void 0===n||null===(l=n.nftTopic)||void 0===l?void 0:l.logo)&&(s=null===(u=n.nftTopic)||void 0===u?void 0:u.logo));n.subType===o.y.ACCOUNT&&(t="/profile/".concat(null===(d=n.account)||void 0===d?void 0:d.handle,"/"),r=null===(f=n.account)||void 0===f?void 0:f.nickname,a="@"+(null===(p=n.account)||void 0===p?void 0:p.handle),c=null===(h=n.account)||void 0===h||null===(x=h.avatar)||void 0===x?void 0:x.url);return{href:t,name:r,symbol:a,avatar:c,logo:s,communityType:n.subType}},c=function(n,e,t){if(e.basePath.includes("community"))e.push(n);else{var i=(0,r.lC)(n,t);location.href=i}},s=function(n){return n.subType===o.y.POST?"post:post":n.subType===o.y.COIN?"cashtag:$".concat(null===(e=n.coin)||void 0===e?void 0:e.symbol):n.subType===o.y.TOPIC?"topic:#".concat(n.topic):n.subType===o.y.ACCOUNT?"account:@".concat(null===(t=n.account)||void 0===t?void 0:t.handle):"";var e,t}},57260:function(n,e,t){t.d(e,{N:function(){return c}});var r=t(75190),i=t(52322);t(2784);function o(){var n=(0,r.Z)(["\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n\n .card {\n max-width: 350px;\n width: 100%;\n /* background: #fff; */\n /* background: ","; */\n padding: 10px;\n border-radius: 10px;\n /* border: 1px solid #d9d9d9; */\n }\n .card .header {\n display: flex;\n align-items: center;\n }\n .header .img {\n height: 75px;\n width: 75px;\n background: #d9d9d9;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n }\n .header .details {\n margin-left: 20px;\n }\n .details span {\n display: block;\n background: #d9d9d9;\n border-radius: 10px;\n overflow: hidden;\n position: relative;\n }\n .details .name {\n height: 15px;\n width: 100px;\n }\n .details .about {\n height: 13px;\n width: 150px;\n margin-top: 10px;\n }\n .card .description {\n /* margin: 25px 0; */\n .line-wrapper {\n height: 33px;\n line-height: 33px;\n display: flex;\n width: 100%;\n /* background-color: red; */\n justify-items: center;\n align-items: center;\n @media (max-height: 650px) {\n &:nth-child(2),\n &:nth-child(3) {\n display: none;\n }\n }\n @media (max-height: 700px) {\n &:nth-child(3) {\n display: none;\n }\n }\n }\n .img {\n /* float:left; */\n display: inline-block;\n height: 20px;\n width: 20px;\n margin-right: 8px;\n background: #d9d9d9;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n }\n }\n .description .line {\n /* float:right; */\n background: #d9d9d9;\n border-radius: 10px;\n height: 13px;\n margin: 10px 0 10px 2px;\n overflow: hidden;\n position: relative;\n }\n .description .line-1 {\n width: calc(100% - 15%);\n }\n .description .line-2 {\n width: calc(100% - 40%);\n }\n .description .line-3 {\n width: calc(100% - 60%);\n }\n .card .btns {\n display: flex;\n }\n .card .btns .btn {\n height: 45px;\n width: 100%;\n background: #d9d9d9;\n border-radius: 25px;\n position: relative;\n overflow: hidden;\n }\n .btns .btn-1 {\n margin-right: 8px;\n }\n .btns .btn-2 {\n margin-left: 8px;\n }\n .header .img::before,\n .description .img::before,\n .details span::before,\n .description .line::before,\n .btns .btn::before {\n position: absolute;\n content: '';\n height: 100%;\n width: 100%;\n /* background-image: linear-gradient(\n to right,\n #d9d9d9 0%,\n rgba(0, 0, 0, 0.05) 20%,\n #d9d9d9 40%,\n #d9d9d9 100%\n ); */\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 450px 400px;\n animation: shimmer 1s linear infinite;\n }\n .header .img::before {\n background-size: 650px 600px;\n }\n .details span::before {\n animation-delay: 0.2s;\n }\n .btns .btn-2::before {\n animation-delay: 0.22s;\n }\n @keyframes shimmer {\n 0% {\n background-position: -450px 0;\n }\n 100% {\n background-position: 450px 0;\n }\n }\n"]);return o=function(){return n},n}var a=t(82740).ZP.div.withConfig({componentId:"sc-5754a44-0"})(o(),(function(n){return n.theme.colors.neutral5}),(function(n){return n.theme.isDay?"linear-gradient(to right,#d9d9d9 0%,rgba(0, 0, 0, 0.05) 20%,#d9d9d9 40%,#d9d9d9 100%)":"linear-gradient(to right,#d9d9d9 0%,rgba(0, 0, 0, 0.05) 20%,#d9d9d9 40%,gray 80%,#d9d9d9 100%)"}));function c(){return(0,i.jsx)(a,{children:(0,i.jsx)("div",{className:"card",children:(0,i.jsxs)("div",{className:"description",children:[(0,i.jsxs)("div",{className:"line-wrapper",children:[(0,i.jsx)("span",{className:"img"}),(0,i.jsx)("span",{className:"img"}),(0,i.jsx)("div",{className:"line line-1"})]}),(0,i.jsxs)("div",{className:"line-wrapper",children:[(0,i.jsx)("span",{className:"img"}),(0,i.jsx)("span",{className:"img"}),(0,i.jsx)("div",{className:"line line-2"})]}),(0,i.jsxs)("div",{className:"line-wrapper",children:[(0,i.jsx)("span",{className:"img"}),(0,i.jsx)("span",{className:"img"}),(0,i.jsx)("div",{className:"line line-3"})]})]})})})}},60515:function(n,e,t){t.d(e,{s:function(){return S},e:function(){return I}});var r=t(62230),i=t(85244),o=t(52322),a=t(2784),c=t(38789),s=t(41744),l=t(11493),u=t(29101),d=t(68434),f=t(83434),p=t(75190),h=t(82740),x=t(96664),m=t(87681);function g(){var n=(0,p.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 9px ",";\n cursor: pointer;\n border-radius: ",";\n font-weight: ",";\n color: ",";\n background-color: ",";\n\n "," {\n padding: 12px 10px;\n background-color: transparent;\n }\n\n p {\n flex: 0 0 auto;\n }\n\n .coin-item-symbol {\n margin: 0;\n margin-inline-start: ",";\n font-size: ",";\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n .liquidity-wrap {\n display: inline-block;\n overflow: hidden;\n p {\n display: inline-block;\n white-space: nowrap;\n }\n }\n .liquidity {\n display: inline-block;\n white-space: nowrap;\n width: 124px;\n }\n"]);return g=function(){return n},n}function v(){var n=(0,p.Z)(["\n .select-control {\n display: flex;\n flex-direction: row;\n align-items: center;\n font-size: 12px;\n }\n .rank-area {\n display: none;\n }\n "]);return v=function(){return n},n}function y(){var n=(0,p.Z)(["\n display: flex;\n align-items: flex-end;\n font-weight: 500;\n\n .select-control {\n display: none;\n flex: 0 0 auto;\n }\n .rank-area {\n display: block;\n margin-inline-start: ",";\n padding: 0 ",";\n background: ",";\n font-size: 12px;\n border-radius: 4px;\n white-space: nowrap;\n }\n &.tip-info {\n flex: 0 0 auto;\n margin-inline-end: ",";\n }\n &.price-info {\n gap: ",";\n }\n\n ","\n\n @media (max-width: ","px) {\n .select-control {\n display: none !important;\n }\n .rank-area {\n display: block !important;\n }\n }\n"]);return y=function(){return n},n}function C(){var n=(0,p.Z)(["\n display: inline-block;\n height: 20px;\n line-height: 20px;\n padding: 0 4px;\n background-color: ",";\n font-size: 9px;\n margin-left: 4px;\n border-radius: 4px;\n color: ",";\n"]);return C=function(){return n},n}function b(){var n=(0,p.Z)(["\n height: 20px;\n width: 20px;\n border-radius: 10px;\n margin-inline-end: 8px;\n flex: 0 0 auto;\n\n @media (max-width: ","px) {\n height: 24px;\n width: 24px;\n border-radius: 12px;\n }\n"]);return b=function(){return n},n}function Z(){var n=(0,p.Z)(["\n flex: 1;\n overflow: hidden;\n padding-inline-end: ",";\n .coin-name {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: ",";\n }\n"]);return Z=function(){return n},n}var w=h.ZP.div.withConfig({componentId:"sc-11740ac6-0"})(g(),c.space100,c.borderRadius100,c.fontWeight500,c.colorTextPrimary,(function(n){return n.focused?n.isDay?c.colorGray100:c.colorGray200:"transparent"}),x[c.mqXl].down,c.space100,c.fontSize75,(function(n){return n.isDay?c.colorGray100:c.colorGray200})),T=h.ZP.div.withConfig({componentId:"sc-11740ac6-1"})(y(),c.space150,c.space50,c.colorGray200,c.space200,c.space100,(function(n){return n.focused&&(0,h.iv)(v())}),m.AV.SMALL),k=(0,h.ZP)(d.Z).withConfig({componentId:"sc-11740ac6-2"})(C(),c.colorTextCaption,c.colorSurface1),j=h.ZP.img.attrs((function(n){return{src:n.src}})).withConfig({componentId:"sc-11740ac6-3"})(b(),m.AV.SMALL),P=h.ZP.div.withConfig({componentId:"sc-11740ac6-4"})(Z(),c.space100,c.fontWeight600),N={width:"120px",height:"16px",borderRadius:"4px"};var S=function(n){var e=n.name,t=n.rank,p=n.symbol,h=n.logo,x=n.price,m=n.priceChange24h,g=n.focused,v=n.href,y=n.t,C=n.onItemClick,b=n.isLoading,Z=void 0!==b&&b,S=(0,a.useContext)(u.Zy).isDay;return(0,o.jsx)(l.Z,{forceRefresh:!0,href:v,onClick:C,children:(0,o.jsxs)(w,{focused:g,isDay:S,className:g?"focused":"",children:[(0,o.jsx)(P,{children:(0,o.jsxs)(T,{children:[(0,o.jsx)(j,{src:h,alt:e}),(0,o.jsx)(f.Z,{textType:"body-md",className:"coin-name",children:e}),(0,o.jsx)(f.Z,{textType:"body-sm",color:"textSecondary",fontWeight:"500",className:"coin-item-symbol",children:p}),(0,o.jsx)("div",{className:"rank-area",children:t?(0,o.jsxs)(f.Z,{textType:"body-xs",color:"textSecondary",fontWeight:"500",children:["#",t]}):null})]})}),(0,o.jsx)(T,{focused:g,className:"tip-info",children:(0,o.jsxs)("div",{className:"select-control",children:[(0,o.jsxs)(f.Z,{color:"textSecondary",children:[y("Select")," "]}),(0,o.jsx)(k,{children:"\u21b5"})]})}),Z?(0,o.jsx)(d.Z,{sx:(0,i.Z)((0,r.Z)({},N),{backgroundColor:S?c.colorGray200:c.colorGray300})}):"undefined"===typeof x||"-"===x?(0,o.jsx)(f.Z,{textType:"body-sm",color:"textSecondary",children:y("search_price_not_tracked_web",{defaultValue:"Price not tracked"})}):(0,o.jsxs)(T,{focused:g,className:"price-info",children:[(0,o.jsx)(f.Z,{textType:"body-md",color:"textPrimary",fontWeight:500,children:x}),"undefined"===typeof m?"-":(0,o.jsx)(s.Z,{change:m,style:{fontSize:"12px",fontWeight:500}})]})]})})},E=t(31504);var I=function(n){var e=n.name,t=n.rank,r=n.symbol,i=n.logo,c=n.quoteLogo,s=n.focused,d=n.href,p=n.t,h=n.quoteToken,x=n.liquidity,m=n.onItemClick,g=(0,a.useContext)(u.Zy).isDay;return(0,o.jsx)(l.Z,{forceRefresh:!0,href:d,onClick:m,children:(0,o.jsxs)(w,{focused:s,isDay:g,className:s?"focused":"",children:[(0,o.jsx)(P,{children:(0,o.jsxs)(T,{children:[(0,o.jsx)(j,{src:i,alt:e}),(0,o.jsx)(j,{src:c,alt:e,onError:function(n){n.target.src=g?(0,E.ZP)("/cloud/img/dex/default-icon-day-v3.svg"):(0,E.ZP)("/cloud/img/dex/default-icon-dark-v3.svg"),n.target.onError=null}}),(0,o.jsx)(f.Z,{textType:"body-sm",className:"coin-name",children:e}),(0,o.jsx)(f.Z,{color:"neutral6",fontWeight:"400",style:{whiteSpace:"nowrap"},children:"/"+h}),(0,o.jsx)(f.Z,{color:"neutral6",className:"coin-item-symbol",children:r}),(0,o.jsx)("div",{className:"rank-area",children:t?(0,o.jsxs)(f.Z,{fontSize:"12px",color:"neutral5",fontWeight:"500",children:["#",t]}):null})]})}),(0,o.jsx)(T,{focused:s,className:"tip-info",children:(0,o.jsxs)("div",{className:"select-control",children:[(0,o.jsxs)(f.Z,{fontSize:"12px",color:"neutral5",mr:"4px",children:[p("Select")," "]}),(0,o.jsx)(k,{children:"\u21b5"})]})}),(0,o.jsx)("span",{className:"coin-item-symbol liquidity-wrap",children:(0,o.jsx)(f.Z,{textType:"body-sm",color:"textSecondary",dangerouslySetInnerHTML:{__html:p("Liquidity")+": "+x}})})]})})}},8590:function(n,e,t){t.d(e,{Z:function(){return Jn}});var r=t(62230),i=t(85244),o=t(52322),a=t(2784),c=t(38789),s=t(7279),l=t(81730),u=t(6761),d=t(17922),f=t(5632),p=t(15798),h=t.n(p),x=t(29101),m=t(46924),g=t(20194),v=t(25084),y=t(3070),C=t(31504),b=t(49329),Z=t(37881),w=t(11493),T=t(64835);function k(n){var e=n.name,t=n.focused,r=n.href,i=n.rank,a=n.t,c=n.onItemClick;return(0,o.jsx)(w.Z,{forceRefresh:!0,href:r,onClick:c,children:(0,o.jsxs)(T.W2,{focused:t,className:t?"focused":"",children:[(0,o.jsx)(T.X2,{children:(0,o.jsx)(Z.ZP,{fontWeight:"semibold",children:e})}),(0,o.jsxs)(T.X2,{focused:t,children:[(0,o.jsxs)("div",{className:"select-control",children:[(0,o.jsxs)(Z.ZP,{fontSize:"12px",color:"neutral5",mr:"4px",children:[a("Select")," "]}),(0,o.jsx)(T.Py,{children:"\u21b5"})]}),(0,o.jsx)("div",{className:"rank-area",children:i?(0,o.jsxs)(Z.ZP,{fontSize:"12px",color:"neutral5",fontWeight:"500",children:["#",i]}):null})]})]})})}var j=t(64550),P=t(57260),N=t(75190),S=t(82740),E=t(68434),I=t(87681);function L(){var n=(0,N.Z)(["\n display: flex;\n flex-direction: column;\n position: relative;\n\n @media (max-width: ","px) {\n overflow: auto;\n /* height: calc(100% - 57px); */\n\n box-sizing: border-box;\n position: relative;\n\n div {\n box-sizing: border-box;\n position: relative;\n }\n\n .react-tabs__tab-panel--selected {\n height: calc(100% - 72px);\n }\n\n .search-sponsor {\n flex-grow: 0;\n border: 1px solid var(--border-color);\n width: 100%;\n margin-bottom: 0px;\n background: var(--color-tippy-arrow);\n padding: 15px;\n border-radius: 0;\n height: auto;\n }\n }\n"]);return L=function(){return n},n}function A(){var n=(0,N.Z)(["\n height: auto;\n padding: 0 ",";\n @media (max-width: ","px) {\n padding: 0 ",";\n background-color: ",";\n box-shadow: 0px 1px 2px rgba(128, 138, 157, 0.08), 0px 4px 12px rgba(128, 138, 157, 0.12);\n }\n"]);return A=function(){return n},n}function _(){var n=(0,N.Z)(["\n font-size: ",";\n color: ",";\n font-weight: ",";\n height: ",";\n line-height: ",";\n padding: 0 ",";\n"]);return _=function(){return n},n}function O(){var n=(0,N.Z)(["\n color: ",";\n font-weight: ",";\n font-size: ",";\n height: ",";\n line-height: ",";\n padding: 0 ",";\n cursor: pointer;\n"]);return O=function(){return n},n}function M(){var n=(0,N.Z)(["\n max-height: 410px;\n overflow-y: auto;\n overflow-x: hidden;\n overscroll-behavior: contain;\n padding: 0 "," ",";\n flex: 1;\n display: flex;\n flex-direction: column;\n row-gap: ",";\n &.new-style {\n max-height: 510px;\n }\n @media (max-width: ","px) {\n max-height: 100%;\n margin-top: ",";\n &.new-style {\n max-height: 100%;\n }\n }\n\n @media (min-width: ","px) {\n &::-webkit-scrollbar {\n width: 1em;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border: 3px solid ",";\n border-radius: 0.5em;\n }\n }\n"]);return M=function(){return n},n}function R(){var n=(0,N.Z)([""]);return R=function(){return n},n}var D=(0,S.ZP)(E.Z).withConfig({componentId:"sc-230facf7-0"})(L(),I.AV.MEDIUM),X=S.ZP.div.withConfig({componentId:"sc-230facf7-1"})(A(),c.space200,I.AV.MEDIUM,c.space200,c.colorBackground2),z=(0,S.ZP)(E.Z).withConfig({componentId:"sc-230facf7-2"})(_(),c.fontSize50,c.colorGray500,c.fontWeight500,c.space400,c.space400,c.space100),F=(0,S.ZP)(E.Z).withConfig({componentId:"sc-230facf7-3"})(O(),c.colorTextHyperlink,c.fontWeight600,c.fontSize75,c.space400,c.space400,c.space100),U=(0,S.ZP)(E.Z).withConfig({componentId:"sc-230facf7-4"})(M(),c.space100,c.space100,c.space100,I.AV.MEDIUM,c.space200,I.AV.SMALL,(function(n){return n.theme.colors.neutral2}),(function(n){return n.theme.colors.neutral3}),(function(n){return n.theme.colors.neutral2})),G=(0,S.ZP)(E.Z).withConfig({componentId:"sc-230facf7-5"})(R()),W=t(83434),V=t(72779),H=t.n(V),q=t(1246),B=t.n(q),Y=t(73264),K=t(17237),$=t(17365),Q=t(82226),J=t(39344),nn=t(98789),en=t(65247),tn=t(6329),rn=t(57075);function on(){var n=(0,N.Z)(["\n display: flex;\n flex-direction: column;\n"]);return on=function(){return n},n}function an(){var n=(0,N.Z)(["\n display: flex;\n flex-direction: column;\n row-gap: ",";\n"]);return an=function(){return n},n}function cn(){var n=(0,N.Z)([""]);return cn=function(){return n},n}function sn(){var n=(0,N.Z)(["\n position: relative;\n padding: ",";\n display: flex;\n align-items: center;\n overflow: hidden;\n font-weight: ",";\n cursor: pointer;\n &.focused {\n background-color: ",";\n }\n &:hover {\n background-color: ",";\n }\n .avatar {\n width: 20px;\n height: 20px;\n }\n .topic-logo-box {\n margin-right: ",";\n }\n .icon-certified {\n font-size: ",";\n margin-inline-end: 4px;\n }\n .title {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: ",";\n margin-inline-end: 4px;\n &.flex1 {\n flex: 1;\n }\n }\n .sub-title {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ",";\n color: ",";\n font-weight: ",";\n margin-right: 4px;\n &.flex1 {\n flex: 1;\n }\n &.item-num {\n }\n }\n .right-info,\n .rank-area {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin-left: auto;\n font-size: ",";\n color: ",";\n }\n"]);return sn=function(){return n},n}function ln(){var n=(0,N.Z)(["\n display: flex;\n align-items: center;\n margin-left: auto;\n font-size: ",";\n color: ",";\n min-width: 48px;\n .base-text {\n font-size: ",";\n color: ",";\n }\n"]);return ln=function(){return n},n}var un=(0,S.ZP)(E.Z).withConfig({componentId:"sc-b75151fe-0"})(on()),dn=(0,S.ZP)(E.Z).withConfig({componentId:"sc-b75151fe-1"})(an(),c.space100),fn=(0,S.ZP)(E.Z).withConfig({componentId:"sc-b75151fe-2"})(cn()),pn=(0,S.ZP)(E.Z).withConfig({componentId:"sc-b75151fe-3"})(sn(),c.space100,c.fontWeight500,c.colorGray100,c.colorGray100,c.space100,c.fontSize200,c.fontWeight600,c.fontSize75,c.colorTextSecondary,c.fontWeight500,c.fontSize75,c.colorTextSecondary),hn=(0,S.ZP)(E.Z).withConfig({componentId:"sc-b75151fe-4"})(ln(),c.fontSize75,c.colorTextSecondary,c.fontSize75,c.colorTextSecondary),xn=t(65310),mn=function(n){var e=n.rank,t=n.type,r=n.postCount,i=n.focused,a=n.text,c=(0,g.Z)().t;return i?(0,o.jsxs)(hn,{children:[(0,o.jsxs)(W.Z,{children:[c("Select")," "]}),(0,o.jsx)(T.Py,{children:"\u21b5"})]}):e?(0,o.jsx)(E.Z,{className:"rank-area",children:e?(0,o.jsxs)(W.Z,{children:["#",e]}):null}):t===xn.y.POST&&Number(r)>0?(0,o.jsx)(W.Z,{className:"right-info",children:c("{{postCount}} posts",{postCount:(0,nn.Z)(Number(r||0)),ns:"gravity"})}):(0,o.jsx)(W.Z,{className:"right-info",children:a})},gn=function(n){var e=n.content,t=void 0===e?{}:e,r=n.onItemClick,i=n.focused;if((0,s.Z)(t))return null;var a=t.name,l=t.symbol;return(0,o.jsxs)(pn,{onClick:r,className:H()("account",{focused:i}),children:[(0,o.jsx)(en.Z,{sx:{fontSize:c.fontSize400,color:c.colorGray500,marginRight:c.space100}}),(0,o.jsx)(W.Z,{className:"title",children:l.includes("$")?l:"$".concat(l)}),(0,o.jsx)(W.Z,{className:"sub-title",children:a}),(0,o.jsx)(mn,{focused:i})]})},vn=function(n){var e=n.account,t=n.onItemClick,r=n.focused,i=e.nickname,a=e.handle,c=e.avatar,s=e.avatarId,l=e.authType;return(0,o.jsxs)(pn,{className:H()("account",{focused:r}),onClick:t,children:[(0,o.jsx)(Y.Z,{id:s,avatarUrl:null===c||void 0===c?void 0:c.url,size:"xsm",className:"avatar"}),(0,o.jsx)(W.Z,{className:"title",children:i}),(0,o.jsx)(K.Z,{authType:l}),(0,o.jsxs)(W.Z,{className:"sub-title",children:["@",a]}),(0,o.jsx)(mn,{focused:r})]})};var yn=function(n){var e,t=n.nftTopic,r=n.topic,i=n.onItemClick,a=n.focused,l=(0,g.Z)().t;return(0,s.Z)(t)?(0,o.jsxs)(pn,{onClick:i,className:H()({focused:a}),children:[(0,o.jsx)(tn.Z,{sx:{fontSize:c.fontSize400,color:c.colorGray500,marginRight:c.space100}}),(0,o.jsxs)(W.Z,{className:"title flex1",children:["#",r]}),(0,o.jsx)(mn,{focused:a})]}):(0,o.jsxs)(pn,{onClick:i,className:H()({focused:a}),children:[t.logo?(0,o.jsx)($.Z,{src:t.logo,name:t.name,type:t.logoType}):(0,o.jsx)(tn.Z,{sx:{fontSize:c.fontSize400,color:c.colorGray500,marginRight:c.space100}}),(0,o.jsxs)(W.Z,{className:"title",children:["#",r]}),t.totalItems>0&&(0,o.jsxs)(W.Z,{className:"sub-title item-num",children:[(e=t.totalItems,e<1e4?e:B()(e).format("0.0a").toUpperCase().replace(/\.0/g,""))," ",l("items")]}),(0,o.jsx)(mn,{focused:a,text:t.floorPrice?(0,o.jsx)(J.ZP,{price:t.floorPrice,maxLen:9,prefix:l("Floor: "),suffix:" ".concat(t.floorPriceToken),fixedPosition:!0}):null})]})},Cn=function(n){var e=n.postCount,t=n.fullWord,r=n.onItemClick,i=n.focused,a=n.type,s=(0,g.Z)().t;return(0,o.jsxs)(pn,{onClick:r,className:H()({focused:i}),children:[(0,o.jsx)(rn.Z,{sx:{fontSize:c.fontSize400,color:c.colorGray500,marginRight:c.space100}}),(0,o.jsx)(W.Z,{textType:"heading-sm",className:"title flex1",children:s("Posts related to \u2018{{fullWord}}\u2019",{fullWord:t,ns:"gravity"})}),(0,o.jsx)(mn,{focused:i,type:a,postCount:e})]})},bn=(0,Q.$)((function(n){var e=n.item,t=n.displayResult,r=n.searchText,i=n.index,c=n.onItemClick,s=(0,a.useMemo)((function(){return i===t.findIndex((function(n){return n.key===e.key}))}),[i,t]),l=function(n){c(e,n)};return e.subType===xn.y.POST?(0,o.jsx)(Cn,{postCount:e.postCount,fullWord:r,focused:s,type:e.subType,onItemClick:l},e.key):e.subType===xn.y.COIN?(0,o.jsx)(gn,{content:null===e||void 0===e?void 0:e.coin,focused:s,onItemClick:l},e.key):e.subType===xn.y.TOPIC?(0,o.jsx)(yn,{topic:e.topic,nftTopic:e.nftTopic,focused:s,onItemClick:l},e.key):e.subType===xn.y.ACCOUNT?(0,o.jsx)(vn,{account:e.account,focused:s,onItemClick:l},e.key):null})),Zn=t(367),wn=function(n){var e=n.displayResult,t=n.searchText,r=n.index,i=n.onItemClick,c=(0,g.Z)().t,l=(0,Zn.w)(c),u=(0,a.useMemo)((function(){var n=e.filter((function(n){return n.subType===xn.y.POST})),t=e.filter((function(n){return n.subType===xn.y.ACCOUNT}));return[n,e.filter((function(n){return n.subType===xn.y.COIN})),e.filter((function(n){return n.subType===xn.y.TOPIC})),t]}),[e]);return(0,o.jsx)(dn,{children:l.map((function(n,a){var c=u[a];return(0,s.Z)(c)?null:(0,o.jsxs)(fn,{children:[n.label&&(0,o.jsx)(z,{children:n.label}),c.map((function(n){return(0,o.jsx)(bn,{item:n,displayResult:e,searchText:t,index:r,onItemClick:i},n.key)}))]},n.key)}))})},Tn=t(81936),kn=function(n){var e=n.rawData,t=n.displayResult,r=n.searchText,i=n.isLoading,c=n.index,l=n.onSelect,u=n.selectedTab,d=n.onItemClick,f=(0,g.Z)().t,p=(0,a.useMemo)((function(){if((0,s.Z)(e))return[];var n=(0,Tn.My)(e,1e3);return[n.length,n]}),[e])[0],h=(0,a.useMemo)((function(){return t.filter((function(n){return n.type===b.X.COMMUNITY}))}),[t]);if(![b.X.COMMUNITY,b.X.ALL].includes(u))return null;if(i)return(0,o.jsx)(P.N,{});if((0,s.Z)(h))return null;if(u===b.X.COMMUNITY)return(0,o.jsx)(wn,{displayResult:t,searchText:r,index:c,onItemClick:d});var x=p>0&&p!==h.length,m=p+Number((null===e||void 0===e?void 0:e.postCount)||0);return(0,o.jsxs)(un,{children:[(0,o.jsx)(z,{children:f("Community")}),h.map((function(n){return(0,o.jsx)(bn,{item:n,displayResult:t,searchText:r,index:c,onItemClick:d},n.key)})),x&&(0,o.jsx)(F,{onClick:function(){return l(b.X.COMMUNITY)},children:f("See all results")+" "+"(".concat(m,")")})]})},jn=t(16460);function Pn(){var n=(0,N.Z)(["\n display: flex;\n flex-direction: column;\n padding: 70px ",";\n align-items: center;\n p {\n width: 100%;\n overflow: auto;\n text-align: center;\n word-break: break-all;\n }\n"]);return Pn=function(){return n},n}function Nn(){var n=(0,N.Z)(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 64px;\n width: 64px;\n border-radius: 32px;\n color: ",";\n background-color: ",";\n"]);return Nn=function(){return n},n}var Sn=(0,S.ZP)(E.Z).withConfig({componentId:"sc-918ae7f8-0"})(Pn(),c.space200),En=S.ZP.div.withConfig({componentId:"sc-918ae7f8-1"})(Nn(),(function(n){return n.theme.colors.neutral5}),(function(n){return n.theme.colors.neutral2}));var In=function(n){var e=n.t,t=n.searchText;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(Sn,{children:[(0,o.jsx)(En,{children:(0,o.jsx)(jn.Z,{})}),(0,o.jsx)(Z.ZP,{fontSize:"16px",m:"8px 0",fontWeight:"500",style:{textAlign:"center"},children:e("No results for ")+"'"+t+"'"}),(0,o.jsx)(Z.ZP,{color:"text2",children:e("We couldn't find anything matching your search.")}),(0,o.jsx)(Z.ZP,{color:"text2",children:e("Try again with a different term.")})]})})},Ln=t(60515),An=t(71540);function _n(){var n=(0,N.Z)(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: ",";\n"]);return _n=function(){return n},n}var On=S.ZP.div.withConfig({componentId:"sc-d860a672-0"})(_n(),(function(n){return n.widthLimit+"px"})),Mn=(0,Q.$)((function(n){var e=n.children,t=n.widthLimit,r=n.disabledTippy,i=n.str,c=n.as,s=n.topTooltip,l=(0,a.useRef)(null),u=(0,a.useState)(!1),d=u[0],f=u[1],p=c||"span";(0,a.useEffect)((function(){l.current&&l.current.offsetWidth>t&&f(!0)}),[e]);var h=[];return s?h.push("top"):h.push("bottom"),d?r?(0,o.jsx)(p,{ref:l,style:{cursor:"pointer"},children:(0,o.jsx)(On,{widthLimit:t,children:e})}):(0,o.jsx)(An.Z,{allowedPlacements:h,content:(0,o.jsx)("div",{style:{fontWeight:500},children:i||e}),children:(0,o.jsx)(p,{ref:l,style:{cursor:"pointer",whiteSpace:"nowrap",maxWidth:"".concat(t,"px")},children:(0,o.jsx)(On,{widthLimit:t,children:e})})}):(0,o.jsx)(p,{ref:l,style:{whiteSpace:"nowrap"},children:e})})),Rn=(0,C.pZ)("/static/cloud/img/icon/default-dark.svg"),Dn=(0,C.pZ)("/static/cloud/img/icon/default.svg");function Xn(n){return n<1e4?n:B()(n).format("0.0a").toUpperCase().replace(/\.0/g,"")}var zn=(0,Q.$)((function(n){var e=n.name,t=n.logo,r=n.totalItems,i=n.floorPrice,c=n.floorPriceToken,s=n.href,l=n.focused,u=n.t,d=n.onItemClick,f=(0,a.useContext)(x.Zy).isDay;return(0,o.jsx)(w.Z,{forceRefresh:!0,href:s,onClick:d,children:(0,o.jsxs)(T.W2,{className:l?"focused":"",children:[(0,o.jsx)(T.Au,{children:(0,o.jsxs)(T.X2,{children:[(0,o.jsx)(T.CF,{src:t||(f?Dn:Rn),name:e,style:{scale:t?"1":"1.8"}}),(0,y.ZP)()?(0,o.jsx)(Z.ZP,{fontWeight:"semibold",style:{whiteSpace:"nowrap"},className:"coin-name",children:e}):(0,o.jsx)(Mn,{str:e,widthLimit:240,children:(0,o.jsx)(Z.ZP,{fontWeight:"semibold",style:{whiteSpace:"nowrap"},className:"coin-name",children:e})}),(0,o.jsxs)(Z.ZP,{color:"neutral6",className:"items-number",children:[Xn(r)," ",u("items")]})]})}),(0,o.jsxs)(T.X2,{focused:l,className:"tip-info",children:[(0,o.jsxs)("div",{className:"select-control",children:[(0,o.jsxs)(Z.ZP,{fontSize:"12px",color:"neutral5",mr:"4px",children:[u("Select")," "]}),(0,o.jsx)(T.Py,{children:"\u21b5"})]}),(0,o.jsx)("div",{className:"rank-area nft-rank-area",children:i?(0,o.jsx)(Z.ZP,{fontSize:"12px",color:"neutral5",fontWeight:"500",children:(0,o.jsx)(J.ZP,{price:i,maxLen:9,suffix:" ".concat(c),fixedPosition:!0})}):null})]})]})})})),Fn=t(69530),Un=t(8112),Gn=t(83475),Wn=t(96664);function Vn(){var n=(0,N.Z)(["\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n padding: 0 "," ",";\n "," {\n padding: "," "," 0;\n }\n button.selected {\n color: ",";\n background-color: ",";\n &:hover {\n color: "," !important;\n }\n }\n button {\n font-weight: ",";\n &:active {\n outline: none;\n }\n &:focus {\n outline: none;\n }\n }\n"]);return Vn=function(){return n},n}var Hn=(0,S.ZP)(E.Z).withConfig({componentId:"sc-ff1d3779-0"})(Vn(),c.space100,c.space200,c.space100,Wn[c.mqMd].down,c.space200,c.space200,c.colorBlue,c.colorOfficialBg,c.colorBlue,c.fontWeight500),qn=function(n){var e=n.tab,t=void 0===e?b.X.ALL:e,r=n.onTabClick,i=function(n){return[{key:b.X.ALL,label:n("All")},{key:b.X.CRYPTOS,label:n("Cryptoassets")},{key:b.X.DEXERPAIR,label:n("Dex Pairs")},{key:b.X.NFTS,label:n("NFTs")},{key:b.X.EXCHANGES,label:n("Exchanges")},{key:b.X.COMMUNITY,label:n("Community")},{key:b.X.CATEGORIES,label:n("Categories")}]}((0,Un.$G)().t);return(0,o.jsx)(Hn,{children:i.map((function(n){return(0,o.jsx)(Gn.ZP,{content:n.label,shapeType:"rounded",variant:"tertiary",buttonSize:"sm",className:H()({selected:t===n.key}),onClick:function(){return function(n){null===r||void 0===r||r(n)}(n.key)}},n.key)}))})},Bn=t(7688),Yn=t(81541),Kn=t(31942),$n=function(n){var e=n.resultType,t=n.cryptos,o=n.categories,c=n.exchanges,s=n.dexpairs,l=n.nfts,u=n.community,d=n.isCommunity,f=(0,a.useMemo)((function(){var n=t.map((function(n){return(0,i.Z)((0,r.Z)({},n),{type:b.X.CRYPTOS})})),a=s.map((function(n){return(0,i.Z)((0,r.Z)({},n),{type:b.X.DEXERPAIR})})),f=o.map((function(n){return(0,i.Z)((0,r.Z)({},n),{type:b.X.CATEGORIES})})),p=l.map((function(n){return(0,i.Z)((0,r.Z)({},n),{type:b.X.NFTS})})),h=c.map((function(n){return(0,i.Z)((0,r.Z)({},n),{type:b.X.EXCHANGES})})),x=(0,Tn.k7)(u);if(e===b.X.ALL){var m=t.length+o.length+c.length+s.length+l.length+x.length;return n.length===m?n:f.length===m?f:h.length===m?h:p.length===m?p:a.length===m?a:x.length===m?x:d?(0,Yn.Z)(x.slice(0,4)).concat((0,Yn.Z)(n.slice(0,4)),(0,Yn.Z)(a.splice(0,100)),(0,Yn.Z)(p.slice(0,3)),(0,Yn.Z)(h.slice(0,3)),(0,Yn.Z)(f.slice(0,3))):(0,Yn.Z)(n.slice(0,4)).concat((0,Yn.Z)(a.splice(0,100)),(0,Yn.Z)(p.slice(0,3)),(0,Yn.Z)(h.slice(0,3)),(0,Yn.Z)(x.slice(0,4)),(0,Yn.Z)(f.slice(0,3)))}return e===b.X.CRYPTOS?n.slice(0,100):e===b.X.CATEGORIES?f.slice(0,100):e===b.X.EXCHANGES?h.slice(0,100):e===b.X.DEXERPAIR?a.slice(0,100):e===b.X.NFTS?p.slice(0,100):e===b.X.COMMUNITY?(0,Tn.My)(u):[]}),[e,t,o,c,s,l,u,d]),p=(0,a.useMemo)((function(){return f.map((function(n){switch(n.type){case b.X.CRYPTOS:case b.X.CATEGORIES:case b.X.EXCHANGES:return"".concat(n.id,":").concat(n.slug,":").concat(n.name);case b.X.DEXERPAIR:return"".concat(n.pairContractAddress,":").concat(n.baseTokenSymbol,":").concat(n.quoteTokenSymbol);case b.X.COMMUNITY:return(0,Kn.NK)(n);case b.X.NFTS:return"".concat(n.contractAddress,":").concat(n.platformAlias,":").concat(n.name)}})).filter(Boolean).join(",")}),[f]);return{displayResult:f,searchSuggestionTrackingDataLabel:p}},Qn=t(89697);var Jn=function(n){var e=n.cryptos,p=n.dexpairs,Z=void 0===p?[]:p,w=n.dexpairLen,T=void 0===w?0:w,N=n.onAdClick,S=n.ad,E=n.categories,I=n.exchanges,L=n.nfts,A=n.nftsLen,_=n.onClose,O=n.text,M=n.setAlldexerFlag,R=n.isload,W=n.community,V=n.isLoadingPrice,H=n.setShowSearchInstruction,q=function(n,e){var t=function(n){var e,t,o,a,c,s,l=n.text,u=n.onClose,d=n.target,f={};switch(d.type){case b.X.CRYPTOS:e="/currencies/".concat(d.slug,"/"),a="coins",t=(0,C.pt)("/static/img/".concat(a,"/64x64/").concat(d.id,".png"));break;case b.X.CATEGORIES:e="/view/".concat(d.slug),a="categories";break;case b.X.EXCHANGES:e="dydx"===d.slug?"/exchanges/".concat(d.slug,"/?type=perpetual"):"/exchanges/".concat(d.slug,"/"),a="exchanges",t=(0,C.pt)("/static/img/".concat(a,"/64x64/").concat(d.id,".png"));break;case b.X.DEXERPAIR:var p;e="".concat(h().env.endpoints.dexerDomain,"/").concat(null===d||void 0===d||null===(p=d.platformName)||void 0===p?void 0:p.toLocaleLowerCase(),"/").concat(null===d||void 0===d?void 0:d.pairContractAddress,"/"),a="dexerpair",o="dexer",t=(0,C.pt)("/static/img/coins/64x64/".concat(null===d||void 0===d?void 0:d.platFormCryptoId,".png")),f.id=null===d||void 0===d?void 0:d.pairContractAddress,f.key=null===d||void 0===d?void 0:d.pairContractAddress,f.name=null===d||void 0===d?void 0:d.baseTokenSymbol,f.quoteToken=null===d||void 0===d?void 0:d.quoteTokenSymbol;break;case b.X.NFTS:var x;e="/nft/collections/".concat(null===d||void 0===d||null===(x=d.platformAlias)||void 0===x?void 0:x.toLocaleLowerCase(),"/").concat(null===d||void 0===d?void 0:d.contractAddress,"/").concat(null===d||void 0===d?void 0:d.name,"/"),a="nfts",o="nft",t=null===d||void 0===d?void 0:d.logo,f.id=null===d||void 0===d?void 0:d.contractAddress,f.slug=null===d||void 0===d?void 0:d.platformAlias;break;case b.X.COMMUNITY:e=(c=(0,Kn.wX)(d,l)).href,a="community",o="community",s={selected_item:(0,Kn.NK)(d)}}return(0,i.Z)((0,r.Z)({logo:t},d,f,c),{href:e,onClose:u,rowType:o,type:a,additionalTrackingData:s})}({target:n,onClose:_,text:O});an((0,i.Z)((0,r.Z)({e:e},t),{additionalTrackingData:(0,r.Z)({user_search_input:O,suggestion_data:gn,language:cn,tab:Q,category:n.type},t.additionalTrackingData)}))},B=function(n){var e,t=mn.length;if(n.keyCode===h().key.UP&&(e=0===en?t-1:en-1),n.keyCode!==h().key.TAB&&n.keyCode!==h().key.DOWN||(e=en===t-1?0:en+1),n.keyCode!==h().key.TAB&&n.keyCode!==h().key.DOWN&&n.keyCode!==h().key.UP||(n.preventDefault(),tn(e)),n.keyCode===h().key.ESC&&_(),n.keyCode===h().key.ENTER){if(!hn||R||!mn.length)return;q(mn[en],n)}},Y=function(n){on.current&&!(0,y.vP)()&&on.current.focus(),tn(0),J(n),n===b.X.DEXERPAIR&&M(!0),n===b.X.ALL&&M(!1)},K=(0,g.Z)().t,$=(0,a.useState)(b.X.ALL),Q=$[0],J=$[1],nn=(0,a.useState)(0),en=nn[0],tn=nn[1],rn=(0,a.useRef)(null),on=(0,a.useRef)(null),an=(0,Bn.n)(),cn=(0,a.useContext)(x.Zy).language,sn=(0,f.useRouter)().basePath.includes("community"),ln=W.data,un=W.isLoading||W.isFetching,dn=(0,s.Z)(W.data),fn=un||!dn,pn=(0,m.bd)().deviceInfo.isMobile,hn=Boolean(e.length||E.length||I.length||Z.length||L.length||R||fn),xn=$n({resultType:Q,cryptos:e,dexpairs:Z,categories:E,exchanges:I,nfts:L,community:ln,isCommunity:sn}),mn=xn.displayResult,gn=xn.searchSuggestionTrackingDataLabel;(0,a.useEffect)((function(){!R&&O&&v.ZP.sendEvent({category:"Quick Search",action:"Search Suggestions",json_data:{user_search_input:O,suggestion_data:gn,language:cn,tab:Q}})}),[gn]),(0,a.useEffect)((function(){H&&H(!1)}),[]),(0,a.useEffect)((function(){H&&(null===mn||void 0===mn?void 0:mn.length)&&H(!0)}),[mn]),(0,a.useEffect)((function(){rn.current&&rn.current.querySelector(".focused")&&t.e(93057).then(t.bind(t,93057)).then((function(n){var e;(0,n.default)(null===(e=rn.current)||void 0===e?void 0:e.querySelector(".focused"),{behavior:"instant",scrollMode:"if-needed"})}))}),[en]),(0,a.useEffect)((function(){rn.current&&Q!==b.X.ALL&&(rn.current.scrollTop=0)}),[Q]),(0,a.useEffect)((function(){return document.addEventListener("keydown",B),function(){return document.removeEventListener("keydown",B)}}),[en,Q,O,mn]),(0,a.useEffect)((function(){tn(0)}),[O]),(0,a.useEffect)((function(){on.current=document.activeElement}),[]);var vn=(0,a.useMemo)((function(){return S?(0,o.jsx)(d.Z,{style:{marginTop:"4px"},logo:S.logoUrl,name:S.advertiser,text:S.title,onClick:function(){return N(S)},className:"search-sponsor"}):null}),[S]),yn=function(n){n.preventDefault(),Y(b.X.ALL),M(!1)},Cn=(0,a.useCallback)((function(){var n=mn.filter((function(n){return n.type===b.X.CRYPTOS})),t=n.reduce((function(n,e){return Array.isArray(e.address)&&(e.address=e.address.join(",")),n.push(e),n}),[]);return t.length?(0,o.jsxs)(G,{children:[(0,o.jsx)(z,{children:K("Cryptoassets")}),t.map((function(n){return pn?(0,o.jsx)(j.T,{t:K,logo:(0,C.pt)("/static/img/coins/64x64/".concat(n.id,".png")),name:n.name,rank:n.rank,symbol:n.symbol,href:"/currencies/".concat(n.slug,"/"),focused:en===mn.findIndex((function(e){return e.id===n.id})),onItemClick:function(e){return q(n,e)}},n.id):(0,o.jsx)(Ln.s,{t:K,logo:(0,C.pt)("/static/img/coins/64x64/".concat(n.id,".png")),name:n.name,rank:n.rank,symbol:n.symbol,price:n.price,priceChange24h:n.priceChange24h,href:"/currencies/".concat(n.slug,"/"),focused:en===mn.findIndex((function(e){return e.id===n.id})),onItemClick:function(e){return q(n,e)},isLoading:V},n.id)})),e.length>n.length&&Q===b.X.ALL&&(0,o.jsx)(F,{onClick:function(){return Y(b.X.CRYPTOS)},children:K("See all results")+" "+"(".concat(e.length,")")})]}):null}),[mn,en,e,Q,V,pn]),bn=(0,a.useCallback)((function(){if(![b.X.DEXERPAIR,b.X.ALL].includes(Q))return null;var n=mn.filter((function(n){return n.type===b.X.DEXERPAIR}));return(0,o.jsxs)(G,{children:[n&&n.length>0?(0,o.jsxs)(z,{children:[K("Dex Pairs"),(0,o.jsx)("span",{style:{marginLeft:"8px",color:"#A6B0C3",fontWeight:500},children:"(Anyone can list assets on DEXes. DYOR.)"})]}):"",n.map((function(n){var e=function(n,e,t){var r;return{rowType:"dexer",t:e,id:n.pairContractAddress,key:n.pairContractAddress,logo:(0,C.pt)("/static/img/coins/64x64/".concat(n.platFormCryptoId,".png")),quoteLogo:(0,C.pt)("/static/img/exchanges/64x64/".concat(n.exchangeId,".png")),name:n.baseTokenSymbol,quoteToken:n.quoteTokenSymbol,liquidity:n.liquidity&&parseFloat(n.liquidity)>=1e3?(0,Qn.hW)(n.liquidity):(0,Qn.CP)(n.liquidity),href:"".concat(h().env.endpoints.dexerDomain,"/").concat("en"===t?"":"".concat(t,"/")).concat(null===n||void 0===n||null===(r=n.platformName)||void 0===r?void 0:r.toLocaleLowerCase(),"/").concat(n.pairContractAddress,"/")}}(n,K,cn);return(0,o.jsx)(Ln.e,(0,i.Z)((0,r.Z)({},e),{focused:en===mn.findIndex((function(e){return e.pairContractAddress===n.pairContractAddress})),onItemClick:function(e){return q(n,e)}}),e.key)})),T>3&&Q===b.X.ALL&&(0,o.jsx)(F,{onClick:function(){Y(b.X.DEXERPAIR),M(!0)},children:K("See all results")+" "+"(".concat(T,")")}),R?(0,o.jsx)(P.N,{}):""]})}),[mn,en,Q]),Zn=(0,a.useCallback)((function(){if(![b.X.NFTS,b.X.ALL].includes(Q))return null;var n=mn.filter((function(n){return n.type===b.X.NFTS}));return(0,o.jsxs)(G,{children:[n&&n.length>0?(0,o.jsx)(z,{children:K("NFTs")}):"",n.map((function(n){var e=function(n,e,t){var r;return{rowType:"nft",t:e,id:null===n||void 0===n?void 0:n.contractAddress,key:null===n||void 0===n?void 0:n.contractAddress,logo:null===n||void 0===n?void 0:n.logo,name:n.name,floorPrice:n.floorPrice,floorPriceToken:n.floorPriceToken,totalItems:n.totalItems,href:"/nft/collections/".concat(null===n||void 0===n||null===(r=n.platformAlias)||void 0===r?void 0:r.toLocaleLowerCase(),"/").concat(n.contractAddress,"/").concat(n.name,"/")}}(n,K);return(0,o.jsx)(zn,(0,i.Z)((0,r.Z)({},e),{focused:en===mn.findIndex((function(e){return e.contractAddress===n.contractAddress})),onItemClick:function(e){return q(n,e)}}),e.key)})),A>3&&Q===b.X.ALL&&(0,o.jsx)(F,{onClick:function(){Y(b.X.NFTS)},children:K("See all results")+" "+"(".concat(A,")")}),R?(0,o.jsx)(P.N,{}):""]})}),[mn,en,Q]);(0,a.useEffect)((function(){performance.mark("SearchOpen")}),[]);var wn=(0,a.useCallback)((function(){var n=mn.filter((function(n){return n.type===b.X.CATEGORIES}));return n.length?(0,o.jsxs)(G,{children:[(0,o.jsx)(z,{children:K("Categories")}),n.map((function(n){return(0,o.jsx)(k,{rank:n.rank,t:K,name:n.name,href:"/view/".concat(n.slug),focused:en===mn.findIndex((function(e){return e.id===n.id})),onItemClick:function(e){return q(n,e)}},n.id)})),E.length>n.length&&Q===b.X.ALL&&(0,o.jsx)(F,{onClick:function(){Y(b.X.CATEGORIES),M(!1)},children:K("See all results")+" "+"(".concat(E.length,")")})]}):null}),[mn,en,E,Q]),Tn=(0,a.useCallback)((function(){var n=mn.filter((function(n){return n.type===b.X.EXCHANGES})),e=function(n){return"dydx"==(null===n||void 0===n?void 0:n.slug)?"/exchanges/".concat(n.slug,"/?type=perpetual"):"/exchanges/".concat(null===n||void 0===n?void 0:n.slug,"/")};return n.length?(0,o.jsxs)(G,{children:[(0,o.jsx)(z,{children:K("Exchanges")}),n.map((function(n,t){return(0,o.jsx)(j.T,{t:K,logo:(0,C.pt)("/static/img/exchanges/64x64/".concat(n.id,".png")),name:n.name,rank:n.rank,href:e(n),focused:en===mn.findIndex((function(e){return e.id===n.id})),onItemClick:function(e){return q(n,e)}},n.id)})),I.length>n.length&&Q===b.X.ALL&&(0,o.jsx)(F,{onClick:function(){Y(b.X.EXCHANGES),M(!1)},children:K("See all results")+" "+"(".concat(I.length,")")})]}):null}),[mn,en,I,Q]),jn=!!(null===mn||void 0===mn?void 0:mn.length);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(D,{children:[(0,o.jsx)(qn,{tab:Q,onTabClick:Y}),Q!==b.X.ALL?(0,o.jsx)(X,{children:(0,o.jsx)(l.ZP,{variant:"plain",icon:u.Z,style:{padding:"0 5px 0 0"},onClick:yn,children:K("Back")})}):null,jn||R?(0,o.jsxs)(o.Fragment,{children:[sn?(0,o.jsxs)(U,{ref:rn,className:"new-style",children:[(0,o.jsx)(kn,{selectedTab:Q,rawData:ln,displayResult:mn,searchText:O,isLoading:un,index:en,onSelect:Y,onItemClick:q}),Cn(),bn(),Zn(),Tn(),wn()]},Q):(0,o.jsxs)(U,{ref:rn,className:"new-style",children:[Cn(),bn(),Zn(),Tn(),(0,o.jsx)(kn,{selectedTab:Q,rawData:ln,displayResult:mn,searchText:O,isLoading:un,index:en,onSelect:Y,onItemClick:q}),wn()]},Q),vn]}):null,Q===b.X.COMMUNITY||Q===b.X.ALL?null:Q===b.X.DEXERPAIR||Q===b.X.NFTS?jn||R?null:(0,o.jsx)(In,{t:K,searchText:O}):jn?null:(0,o.jsx)(In,{t:K,searchText:O})]}),(0,o.jsx)(Fn.Z,{showInstruction:jn,sxs:{adContainerSX:{paddingLeft:c.space100,paddingRight:c.space100}}})]})}},69530:function(n,e,t){var r=t(62230),i=t(52322),o=t(38789),a=t(68434),c=t(47083),s=t(80147),l=t(31978),u=t(20194);e.Z=function(n){var e=n.showInstruction,t=n.sxs,d=void 0===t?{}:t,f=(0,s.Z)("SEARCH BOX"),p=f.validAdBanners,h=f.countryCode;(0,u.Z)().t;return(0,i.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column",gap:o.space100},children:(0,i.jsx)(a.Z,{sx:(0,r.Z)({},d.adContainerSX||{}),style:{width:"100%",marginBottom:e?void 0:o.space100,maxWidth:431,margin:"auto"},children:p.map((function(n){return(0,i.jsx)(c.Z,{bannerInfo:n,countryCode:h,adCampaignPosition:l._g.SEARCH_BOX_BANNER,customWrapperStyle:{marginBottom:o.space300,marginTop:o.space300}},n.id)}))})})}},17721:function(n,e,t){t.d(e,{Z:function(){return I}});var r=t(52322),i=t(2784),o=t(81730),a=t(89169),c=t(37881),s=t(5632),l=t(35986),u=t(57075),d=t(75190),f=t(82740),p=t(96664),h=t(38789),x=t(87681);function m(){var n=(0,d.Z)(["\n width: '600px';\n min-height: 140px;\n max-height: 873px;\n border-radius: 8px;\n background-color: ",";\n\n @media (max-width: ","px) {\n width: 100%;\n height: 100%;\n overflow-y: clip;\n border-radius: 0;\n max-height: 100vh;\n padding: 0;\n display: flex;\n flex-direction: column;\n }\n"]);return m=function(){return n},n}function g(){var n=(0,d.Z)(["\n padding: ",";\n display: flex;\n flex-direction: row;\n align-items: center;\n color: ",";\n\n "," {\n background-color: ",";\n box-shadow: ",";\n }\n"]);return g=function(){return n},n}function v(){var n=(0,d.Z)(["\n display: flex;\n flex: 1;\n padding: 0 ",";\n"]);return v=function(){return n},n}function y(){var n=(0,d.Z)(["\n border: none;\n outline: none;\n width: 100%;\n box-shadow: none;\n color: ",";\n background: transparent;\n &::placeholder {\n color: ",";\n }\n\n @media (max-width: ","px) {\n font-size: ",";\n font-weight: ",";\n }\n"]);return y=function(){return n},n}function C(){var n=(0,d.Z)(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n color: ",";\n border-radius: ",";\n"]);return C=function(){return n},n}function b(){var n=(0,d.Z)(["\n display: none;\n @media (max-width: ","px) {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n button {\n margin-inline-start: ",";\n }\n }\n"]);return b=function(){return n},n}function Z(){var n=(0,d.Z)(["\n display: flex;\n @media (max-width: ","px) {\n display: none;\n }\n"]);return Z=function(){return n},n}var w=h,T=f.ZP.div.withConfig({componentId:"sc-c85aff1f-0"})(m(),w.colorSurface1,x.AV.MEDIUM),k=f.ZP.div.withConfig({componentId:"sc-c85aff1f-1"})(g(),w.space200,w.colorTextSecondary,p[w.mqXl].down,w.colorSurface1,(function(n){return n.shadow?"0px 1px 2px rgba(128, 138, 157, 0.08), 0px 4px 12px rgba(128, 138, 157, 0.12);":"none"})),j=f.ZP.div.withConfig({componentId:"sc-c85aff1f-2"})(v(),h.space150),P=f.ZP.input.withConfig({componentId:"sc-c85aff1f-3"})(y(),w.colorTextPrimary,w.colorGray400,x.AV.SMALL,w.fontSize200,w.fontWeight500),N=f.ZP.div.withConfig({componentId:"sc-c85aff1f-4"})(C(),w.colorGray300,w.colorBackground2,w.borderRadius100),S=f.ZP.div.withConfig({componentId:"sc-c85aff1f-5"})(b(),x.AV.SMALL,w.space100),E=f.ZP.div.withConfig({componentId:"sc-c85aff1f-6"})(Z(),x.AV.SMALL);var I=function(n){var e=n.children,t=n.onChange,d=n.onClose,f=n.hasResult,p=n.t,h=n.searchable,x=void 0!==h&&h,m=function(n){y(n.target.value),t(n.target.value)},g=(0,i.useState)(""),v=g[0],y=g[1],C=(0,s.useRouter)().basePath.includes("community"),b=i.useRef(null);return(0,r.jsxs)(T,{onTouchStart:function(){b.current.blur()},children:[(0,r.jsxs)(k,{shadow:!v||!f,onTouchStart:function(n){n.stopPropagation()},children:[(0,r.jsx)(u.Z,{fontSize:"size200",color:"gray500"}),(0,r.jsx)(j,{children:x?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(E,{style:{width:"100%"},children:(0,r.jsx)(P,{maxLength:"200",autoFocus:!0,onChange:function(n){m(n)},spellCheck:"false",className:"desktop-input",type:"text",value:v,placeholder:p(C?"Search post, topic, or account in Community":"Search coin, pair, NFT, contract address, exchange, or post")})}),(0,r.jsx)(S,{style:{flexGrow:1},children:(0,r.jsx)(P,{autoFocus:!0,onChange:m,spellCheck:"false",type:"text",value:v,placeholder:p("What are you looking for?"),ref:b})})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)(c.ZP,{color:"neutral5",as:"span",fontSize:0,mr:1,children:p("Loading Data")}),(0,r.jsx)(a.Z,{size:"12px"})]})}),(0,r.jsxs)(S,{children:[(0,r.jsx)(N,{onClick:function(){y(""),t(""),b.current.focus()},children:(0,r.jsx)(l.Z,{fontSize:"size100",color:"inherit"})}),(0,r.jsx)(o.ZP,{onClick:d,size:"sm",children:p("Cancel")})]}),(0,r.jsx)(E,{children:(0,r.jsx)(l.Z,{sx:{cursor:"pointer"},fontSize:20,color:"gray500",onClick:d})})]}),e]})}},70882:function(n,e,t){t.d(e,{w:function(){return m}});var r=t(75190),i=t(52322),o=t(2784),a=t(82740),c=t(96664),s=t(38789),l=t(29101);function u(){var n=(0,r.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n padding: "," ",";\n background-color: ",";\n width: 100%;\n /* transform: translate(0px, 3px); */\n border-radius: 0 0 8px 8px;\n\n "," {\n display: none;\n }\n"]);return u=function(){return n},n}function d(){var n=(0,r.Z)(["\n padding: 2px ",";\n background-color: ",";\n font-size: ",";\n margin-inline-end: 4px;\n border-radius: 4px;\n color: #ffffff;\n font-weight: 600;\n"]);return d=function(){return n},n}function f(){var n=(0,r.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n color: ",";\n font-size: 11px;\n font-weight: 500;\n"]);return f=function(){return n},n}var p=a.ZP.div.withConfig({componentId:"sc-e5db07eb-0"})(u(),s.space300,s.space100,s.space200,(function(n){return n.isDay?s.colorGray100:s.colorGray200}),c[s.mqLg].down),h=a.ZP.div.withConfig({componentId:"sc-e5db07eb-1"})(d(),s.space100,s.colorGray400,s.fontSize50),x=a.ZP.div.withConfig({componentId:"sc-e5db07eb-2"})(f(),s.colorGray600),m=function(n){var e=n.t,t=(0,o.useContext)(l.Zy).isDay;return(0,i.jsxs)(p,{isDay:t,children:[(0,i.jsxs)(x,{children:[(0,i.jsx)(h,{children:"ESC"}),e("To Cancel")]}),(0,i.jsxs)(x,{children:[(0,i.jsx)(h,{children:"\u21b5"}),e("To Enter")]}),(0,i.jsxs)(x,{children:[(0,i.jsx)(h,{children:"TAB"}),(0,i.jsx)(h,{children:"\u2191"}),(0,i.jsx)(h,{children:"\u2193"}),e("To Navigate")]})]})}},64999:function(n,e,t){t.d(e,{Z:function(){return on}});var r=t(62230),i=t(85244),o=t(52322),a=t(2784),c=t(38789),s=t(69591),l=function(n){return(0,o.jsx)(s.Z,(0,i.Z)((0,r.Z)({},n),{children:(0,o.jsx)("path",{d:"M17.0881 9.42254C16.4368 8.90717 15.8155 8.35512 15.3012 7.71336C12.3755 4.06357 13.8912 1 13.8912 1C8.46026 3.18334 7.22337 6.64895 7.16462 9.22981L7.1675 9.2572C7.1675 9.2572 7.21498 10.7365 7.90791 12.3625C8.12481 12.8713 7.88299 13.4666 7.33195 13.6199C6.87638 13.7465 6.40822 13.5317 6.21571 13.1314C5.90413 12.4831 5.49262 11.4521 5.6109 10.7249C4.75064 11.817 4.1815 13.1452 4.03542 14.6184C3.65092 18.4924 6.43759 22.0879 10.4208 22.8488C14.9906 23.7217 19.3121 20.7182 19.9269 16.3623C20.3117 13.6367 19.1498 11.0538 17.0881 9.42254ZM14.3578 17.7393C14.3289 17.776 13.5893 18.6597 12.3501 18.7517C12.2829 18.7547 12.2124 18.7577 12.1452 18.7577C11.2902 18.7577 10.4226 18.3682 9.56103 17.5951L9.37219 17.4262L9.61243 17.3372C9.62843 17.3312 11.2742 16.7236 11.6778 15.4077C11.8155 14.9629 11.7707 14.4566 11.553 13.9842C11.2905 13.4075 10.7845 11.9564 11.7453 10.9041L11.9309 10.7015L12.0206 10.9561C12.0238 10.9714 12.6034 12.5911 13.9741 13.4379C14.3871 13.6957 14.6977 14.0086 14.8931 14.3644C15.2959 15.1132 15.533 16.3065 14.3578 17.7393Z"})}))},u=t(73264),d=t(17365),f=t(65310),p=t(57075),h=t(65247),x=t(6329),m=t(83434),g=t(75190),v=t(82740),y=t(68434);function C(){var n=(0,g.Z)(["\n height: 20px;\n width: 20px;\n border-radius: 10px;\n"]);return C=function(){return n},n}function b(){var n=(0,g.Z)(["\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n padding: "," ",";\n justify-content: center;\n width: 96px;\n border-radius: ",";\n background-color: ",";\n cursor: pointer;\n .base-text {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n display: inline-block;\n text-align: center;\n width: 100%;\n max-width: 64px;\n }\n .community-icon {\n font-size: ",";\n color: ",";\n }\n .avatar {\n width: 20px;\n height: 20px;\n margin: 0;\n }\n"]);return b=function(){return n},n}function Z(){var n=(0,g.Z)(["\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: ",";\n margin: 4px 0 0 0;\n font-weight: ",";\n color: ",";\n max-width: 64px;\n overflow: hidden;\n"]);return Z=function(){return n},n}var w=c,T=v.ZP.img.attrs((function(n){return{src:n.src,alt:n.name,name:n.name}})).withConfig({componentId:"sc-d0123bbd-0"})(C()),k=(0,v.ZP)(y.Z).withConfig({componentId:"sc-d0123bbd-1"})(b(),w.space100,w.space200,w.borderRadius100,w.colorGray100,c.fontSize400,c.colorGray500),j=(0,v.ZP)(m.Z).withConfig({componentId:"sc-d0123bbd-2"})(Z(),w.fontSize75,w.fontWeight500,w.colorTextPrimary),P=function(n){var e=n.avatar,t=n.name,r=n.symbol,i=n.communityType,a=n.logo;return(0,o.jsxs)(k,{"data-sensors-click":!0,children:[i===f.y.POST?(0,o.jsx)(p.Z,{className:"community-icon"}):i===f.y.COIN?(0,o.jsx)(h.Z,{className:"community-icon"}):i===f.y.TOPIC?a?(0,o.jsx)(d.Z,{src:a,name:t}):(0,o.jsx)(x.Z,{className:"community-icon"}):i===f.y.ACCOUNT&&n?(0,o.jsx)(u.Z,{avatarUrl:e,size:"xsm",className:"avatar"}):void 0,(0,o.jsx)(j,{children:t}),(0,o.jsx)(m.Z,{color:"gray500",fontSize:"size50",fontWeight:"400",children:r})]})};var N=function(n){var e=n.name,t=n.symbol,r=n.logo;return(0,o.jsxs)(k,{"data-sensors-click":!0,children:[r&&(0,o.jsx)(T,{name:e,src:r}),(0,o.jsx)(j,{children:e}),(0,o.jsx)(m.Z,{color:"gray500",fontSize:"size50",fontWeight:"400",children:t})]})},S=t(17922),E=t(11493),I=t(15798),L=t.n(I),A=t(46924),_=t(25084),O=t(43961),M=t(31504),R=t(64550),D=t(81936),X=t(57260),z=t(60515),F=t(69530),U=t(7688),G=t(96664);function W(){var n=(0,g.Z)(["\n display: flex;\n flex-direction: column;\n padding: ",";\n padding-top: 0;\n color: ",";\n\n .search-sponsor {\n margin-bottom: 4px;\n background: ",";\n }\n\n "," {\n .search-sponsor {\n margin-top: 10px;\n margin-bottom: 0;\n }\n }\n"]);return W=function(){return n},n}function V(){var n=(0,g.Z)(["\n "," {\n width: 100%;\n position: fixed;\n bottom: 0px;\n margin-bottom: 0px;\n }\n"]);return V=function(){return n},n}function H(){var n=(0,g.Z)(["\n margin-bottom: 11px;\n padding: 0 5px;\n background: ",";\n"]);return H=function(){return n},n}function q(){var n=(0,g.Z)(["\n display: flex;\n align-items: center;\n padding: 0 ",";\n margin-bottom: ",";\n line-height: 100%;\n\n "," {\n margin-top: ",";\n }\n"]);return q=function(){return n},n}function B(){var n=(0,g.Z)(["\n display: flex;\n flex-direction: row;\n align-items: stretch;\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n margin: "," 0 "," 0;\n padding: 0 ",";\n "," {\n max-width: unset;\n }\n\n > a > div {\n height: 100%;\n }\n\n > a > div > p:last-child {\n height: ",";\n }\n\n a + a {\n margin-inline-start: ",";\n }\n\n .cmc-link + .cmc-link {\n margin-inline-start: ",";\n }\n "," {\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border: 3px solid ",";\n border-radius: 10px;\n }\n }\n"]);return B=function(){return n},n}function Y(){var n=(0,g.Z)(["\n /* padding-bottom: ","; */\n"]);return Y=function(){return n},n}var K=c,$=v.ZP.div.withConfig({componentId:"sc-30b8af2-0"})(W(),K.space100,K.colorGray500,K.colorBackground2,G[c.mqXl].down),Q=v.ZP.div.withConfig({componentId:"sc-30b8af2-1"})(V(),G[c.mqXl].down),J=v.ZP.div.withConfig({componentId:"sc-30b8af2-2"})(H(),(function(n){return n.theme.isDay?"#fff":"rgb(23, 25, 36)"})),nn=(0,v.ZP)(y.Z).withConfig({componentId:"sc-30b8af2-3"})(q(),K.space100,K.space100,G[c.mqXl].down,K.space200),en=(0,v.ZP)(y.Z).withConfig({componentId:"sc-30b8af2-4"})(B(),K.space100,K.space100,K.space100,G[c.mqXl].down,K.space200,K.space100,K.space100,G[c.mqLg].up,K.colorGray200,K.colorGray300,K.colorGray200),tn=(0,v.ZP)(y.Z).withConfig({componentId:"sc-30b8af2-5"})(Y(),K.space100),rn=function(n,e,t){return(0,i.Z)((0,r.Z)({e:t},n),{logo:(0,M.pt)("/static/img/coins/64x64/".concat(n.id,".png")),onClose:e,href:"/currencies/".concat(n.slug,"/")})};var on=function(n){var e=n.data,t=n.t,s=n.ad,u=n.onAdClick,d=n.onClose,f=n.visible,p=n.isLoading,h=n.setShowSearchInstruction,x=function(n){f&&(Object.values(L().key).indexOf(n.keyCode)>=0&&n.preventDefault(),n.keyCode===L().key.UP&&C(0===y?5:y-1),n.keyCode!==L().key.TAB&&n.keyCode!==L().key.DOWN||C(5===y?0:y+1),n.keyCode===L().key.ESC&&d(),n.keyCode===L().key.ENTER&&e&&Z(rn(e[y],d,n)))},g=function(n,e){Z(rn(n,d,e))},v=(0,a.useState)(0),y=v[0],C=v[1],b=(0,O.fp)("RECENT_SEARCH")||[],Z=(0,U.n)(),w=(0,D.X_)(),T=(0,A.bd)().deviceInfo.isMobile;(0,a.useEffect)((function(){return document.addEventListener("keydown",x),function(){return document.removeEventListener("keydown",x)}}),[y,e]),(0,a.useEffect)((function(){s&&_.ZP.sendEvent({category:"Sponsored search",action:"Native Ad View",label:"".concat(null===s||void 0===s?void 0:s.advertiser," | ").concat(null===s||void 0===s?void 0:s.flightId," | ").concat(null===s||void 0===s?void 0:s.title)})}),[s]),(0,a.useEffect)((function(){h&&h(!1)}),[]),(0,a.useEffect)((function(){h&&e.length>0&&h(!0)}),[e]);var k=(0,a.useMemo)((function(){return s?(0,o.jsx)(J,{children:(0,o.jsx)(S.Z,{logo:s.logoUrl,name:s.advertiser,text:s.title,onClick:function(){return u(s)},className:"search-sponsor"})}):null}),[s]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)($,{children:[(0,o.jsxs)(nn,{children:[(0,o.jsx)(m.Z,{fontSize:"size50",color:"gray500",children:t("Trending")}),"\xa0",(0,o.jsx)(l,{color:"#FF775F",size:"16px"})]}),p&&(0,o.jsx)(X.N,{}),e.length>0&&e.slice(0,6).map((function(n,e){var r;return T?(0,o.jsx)(R.T,{t:t,focused:e===y,id:n.id,slug:n.slug,name:n.name,logo:(0,M.pt)("/static/img/coins/64x64/".concat(n.id,".png")),symbol:n.symbol,rank:n.rank,href:"/currencies/".concat(n.slug,"/"),onClose:d,onItemClick:function(e){return g(n,e)}},n.id):(0,o.jsx)(z.s,{t:t,focused:e===y,id:n.id,slug:n.slug,name:n.name,logo:(0,M.pt)("/static/img/coins/64x64/".concat(n.id,".png")),symbol:n.symbol,rank:n.rank,price:n.price,priceChange24h:null===(r=n.priceChange)||void 0===r?void 0:r.priceChange24h,href:"/currencies/".concat(n.slug,"/"),onClose:d,onItemClick:function(e){return g(n,e)}},n.id)}))]}),(0,o.jsxs)(tn,{children:[b.length>0&&(0,o.jsx)(m.Z,{fontSize:"size50",color:"gray500",mt:"space200",ml:"space200",children:t("Recent searches")}),b.length>0&&(0,o.jsx)(en,{onClick:d,children:b.map((function(n){var e=JSON.parse(n);return e.communityType?(0,o.jsx)("a",{onClick:function(){w(e.href)},children:(0,o.jsx)(P,(0,i.Z)((0,r.Z)({},e),{name:e.name,symbol:e.symbol||"",communityType:e.communityType,avatar:e.avatar}))},e.name):(0,o.jsx)(E.Z,{forceRefresh:!0,href:e.href,children:(0,o.jsx)(N,{logo:e.logo,name:e.name,symbol:e.symbol||" "})},e.name)}))})]}),(0,o.jsx)(Q,{children:k}),(0,o.jsx)(F.Z,{showInstruction:e.length>0,sxs:{adContainerSX:{paddingLeft:c.space100,paddingRight:c.space100}}})]})}},7688:function(n,e,t){t.d(e,{n:function(){return g}});var r=t(22710),i=t(62230),o=t(5163),a=t(2784),c=t(4e4),s=t(15798),l=t.n(s),u=t(29101),d=t(25084),f=t(43961),p=t(54293),h=t(40335),x=t(81936),m=function(){var n=(0,r.Z)((function(n){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,p.Pk)({baseURL:"".concat(l().env.endpoints.javaApi,"/data-api/v3/search/selection"),method:l().http.method.POST,suppressWarning:!0,data:n})];case 1:return[2,e.sent().data]}}))}));return function(e){return n.apply(this,arguments)}}(),g=function(){var n=(0,a.useContext)(u.Zy).language,e=(0,x.X_)();return function(t){var r=t.e,o=t.id,a=t.slug,s=t.symbol,l=t.name,u=t.logo,p=t.href,x=t.onClose,g=t.rowType,v=t.avatar,y=t.communityType,C=t.quoteToken,b=t.additionalTrackingData,Z=void 0===b?{}:b;try{r&&r.preventDefault&&r.preventDefault();var w="dexer"===g?"".concat(o,":").concat(l,":").concat(C):"".concat(o,":").concat(a,":").concat(l);if(d.ZP.sendEvent({category:"Quick Search",action:"Result Selected",json_data:(0,i.Z)({selected_item:w},Z)}),s&&m({dataType:"2",id:o}),function(n){var e=n.symbol,t=n.logo,r=n.href,i=n.name,o=n.communityType,a=n.avatar,s=(0,f.fp)("RECENT_SEARCH")||[],l=JSON.stringify({symbol:e,logo:t,href:r,name:i,communityType:o,avatar:a});s.unshift(l),(s=(0,c.Z)(s)).length>6&&s.pop(),(0,f.qQ)("RECENT_SEARCH",s,(new Date).getTime()+31536e6)}({symbol:s,logo:u,href:p,name:l,communityType:y,avatar:v}),null===x||void 0===x||x(),"dexer"===g){var T=(0,h.OC)(p,{lang:n}),k=T.isValid,j=T.body;if(!k)return;return void(location.href=j)}if("community"===g)return void e(p);location.href=("en"===n?"":"/".concat(n))+p}catch(P){console.error(P)}}}},64835:function(n,e,t){t.d(e,{Au:function(){return Z},CF:function(){return b},Py:function(){return v},S1:function(){return C},W2:function(){return m},X2:function(){return g},_v:function(){return y}});var r=t(75190),i=t(82740),o=t(38789),a=t(68434),c=t(87681);function s(){var n=(0,r.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px;\n cursor: pointer;\n border-radius: 8px;\n min-height: 36px;\n\n @media (max-width: ","px) {\n padding: 12px 10px;\n background-color: transparent;\n }\n\n p {\n flex: 0 0 auto;\n }\n\n .coin-item-symbol {\n margin: 0;\n margin-inline-start: 6px;\n font-size: ",";\n }\n .items-number {\n margin: 0;\n margin-inline-start: 6px;\n font-size: ",";\n line-height: 21px;\n }\n .nft-rank-area {\n p {\n line-height: 21px;\n }\n }\n\n &:hover,\n &.focused {\n background-color: ",";\n }\n @keyframes move {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-50%);\n }\n }\n .liquidity-wrap {\n display: inline-block;\n /* width: 124px; */\n overflow: hidden;\n p {\n display: inline-block;\n white-space: nowrap;\n }\n }\n .liquidity {\n display: inline-block;\n white-space: nowrap;\n /* overflow:hidden; */\n width: 124px;\n /* &:hover {\n animation: move 5s linear infinite;\n -webkit-animation: move 5s linear infinite;\n } */\n /* animation: move 5s linear 0 infinite; */\n }\n"]);return s=function(){return n},n}function l(){var n=(0,r.Z)(["\n .select-control {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .rank-area {\n display: none;\n }\n "]);return l=function(){return n},n}function u(){var n=(0,r.Z)(["\n display: flex;\n align-items: center;\n font-weight: 500;\n\n .select-control {\n display: none;\n flex: 0 0 auto;\n }\n .rank-area {\n display: block;\n }\n &.tip-info {\n flex: 0 0 auto;\n }\n\n ","\n\n @media (max-width: ","px) {\n .select-control {\n display: none !important;\n }\n .rank-area {\n display: block !important;\n }\n }\n"]);return u=function(){return n},n}function d(){var n=(0,r.Z)(["\n display: inline-block;\n height: 20px;\n line-height: 20px;\n padding: 0 4px;\n background-color: ",";\n font-size: 9px;\n margin-left: 4px;\n border-radius: 4px;\n color: ",";\n font-weight: ",";\n"]);return d=function(){return n},n}function f(){var n=(0,r.Z)(["\n height: 20px;\n width: 20px;\n border-radius: 10px;\n margin-inline-end: 8px;\n flex: 0 0 auto;\n\n @media (max-width: ","px) {\n height: 24px;\n width: 24px;\n border-radius: 12px;\n }\n"]);return f=function(){return n},n}function p(){var n=(0,r.Z)(["\n flex: 1;\n overflow: hidden;\n padding-inline-end: ",";\n .coin-name {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"]);return p=function(){return n},n}function h(){var n=(0,r.Z)(["\n height: 20px;\n width: 20px;\n border-radius: 10px;\n margin-inline-end: 8px;\n flex: 0 0 auto;\n\n @media (max-width: ","px) {\n height: 24px;\n width: 24px;\n border-radius: 12px;\n }\n"]);return h=function(){return n},n}function x(){var n=(0,r.Z)(["\n flex: 1;\n overflow: hidden;\n padding-inline-end: ",";\n .coin-name {\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"]);return x=function(){return n},n}var m=i.ZP.div.withConfig({componentId:"sc-cca68cc8-0"})(s(),c.AV.MEDIUM,o.fontSize75,o.fontSize75,o.colorGray200),g=i.ZP.div.withConfig({componentId:"sc-cca68cc8-1"})(u(),(function(n){return n.focused&&(0,i.iv)(l())}),c.AV.SMALL),v=(0,i.ZP)(a.Z).withConfig({componentId:"sc-cca68cc8-2"})(d(),o.colorTextCaption,o.colorSurface1,o.fontWeight600),y=i.ZP.img.attrs((function(n){return{src:n.src,alt:n.name}})).withConfig({componentId:"sc-cca68cc8-3"})(f(),c.AV.SMALL),C=i.ZP.div.withConfig({componentId:"sc-cca68cc8-4"})(p(),o.space100),b=i.ZP.img.attrs((function(n){return{src:n.src,alt:n.name,style:n.style}})).withConfig({componentId:"sc-cca68cc8-5"})(h(),c.AV.SMALL),Z=i.ZP.div.withConfig({componentId:"sc-cca68cc8-6"})(x(),o.space300)},49329:function(n,e,t){var r;t.d(e,{X:function(){return r}}),function(n){n.ALL="all",n.CRYPTOS="cryptoassets",n.DEXERPAIR="dex_pairs",n.NFTS="NFTs",n.EXCHANGES="exchanges",n.COMMUNITY="community",n.CATEGORIES="categories"}(r||(r={}))},77808:function(n,e,t){t.d(e,{F_:function(){return z},Gp:function(){return I},It:function(){return D},NP:function(){return A},QM:function(){return S},VE:function(){return P},iQ:function(){return X}});var r=t(22710),i=t(62230),o=t(85244),a=t(22386),c=t(5163),s=t(2784),l=t(82066),u=t(15798),d=t.n(u),f=t(29101),p=t(66016),h=t(25614),x=t(6894),m=t(14129),g=t(64626),v=t(13427),y=t(54293),C=t(67665),b=function(){return Promise.all([Z(),w()]).then((function(n){var e,t,r=(0,a.Z)(n,2),i=r[0],o=r[1];return{cryptoCurrencyMap:(null===(e=(0,m._)(i.data))||void 0===e?void 0:e.list)||[],exchangeMap:(null===(t=(0,m.U)(o.data))||void 0===t?void 0:t.list)||[]}}))},Z=function(){var n=(0,r.Z)((function(){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.s3,method:"get",url:"/generated/core/crypto/cryptos.json",timeout:12e4})];case 1:return[2,n.sent()]}}))}));return function(){return n.apply(this,arguments)}}(),w=function(){var n=(0,r.Z)((function(){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.s3,method:"get",url:"/generated/core/exchange/exchanges.json",timeout:12e4})];case 1:return[2,n.sent()]}}))}));return function(){return n.apply(this,arguments)}}();function T(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.fileds,t=n.values,r=void 0===t?{}:t,i=(e.total,e.platformId,e.platformName,e.baseTokenSymbol,e.quoteTokenSymbol,e.liquidity,e.pairContractAddress,e.platFormCryptoId,e.exchangeId,{});for(var o in r){var a=r[o];if(Array.isArray(a)&&a.length>0&&a[0]>0){for(var c=[],s=1,l=a.length;s<l;s++){for(var u=a[s],d={},f=1,p=e.length;f<p;f++)d[e[f]]=u[f-1];c.push(d)}i[o]={total:a[0],pairs:c}}}return i}var k=function(){var n=(0,r.Z)((function(){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.staticS3,method:"get",url:"/dexer/mian_site_search/cache/top_v2.json?vhour="+(new Date).getHours()})];case 1:return[2,n.sent()]}}))}));return function(){return n.apply(this,arguments)}}(),j=function(){var n=(0,r.Z)((function(){var n,e,t,r;return(0,c.__generator)(this,(function(i){switch(i.label){case 0:return n=Date.now(),[4,(0,v.yv)(v.Cx.MAP_DEXPAIR_EXCHANGE,!0)];case 1:return(e=i.sent())&&e.data?[3,3]:[4,k()];case 2:return t=i.sent(),r=T(null===t||void 0===t?void 0:t.data),(0,v.k0)(v.Cx.MAP_DEXPAIR_EXCHANGE,r,(new Date).getTime()+36e5),(0,C.I)({t:"search_perf_load_dex_pairs",loadDexPairs:Date.now()-n}),[2,r];case 3:return e.data?(e.expired&&k().then((function(n){var e=T(null===n||void 0===n?void 0:n.data);(0,v.k0)(v.Cx.MAP_DEXPAIR_EXCHANGE,e,(new Date).getTime()+36e5)})),(0,C.I)({t:"search_perf_load_dex_pairs",loadDexPairs:Date.now()-n}),[2,e.data]):[2]}}))}));return function(){return n.apply(this,arguments)}}(),P=function(){var n=(0,r.Z)((function(){var n,e=arguments;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},[4,(0,y.Pk)({baseURL:d().env.endpoints.dexer,method:d().http.method.GET,url:"/dexer/v3/dexer/search/main-site",params:n})];case 1:return[2,t.sent()]}}))}));return function(){return n.apply(this,arguments)}}(),N=function(n){(0,y.Pk)({baseURL:d().env.endpoints.dexer,method:"post",url:"/dexer/v3/dexer/search/record?keyword="+encodeURIComponent(n)})},S=function(n,e){var t=e.alldexerFlag,r=void 0!==t&&t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,p.N)(n,200),c=(0,l.useQuery)(["coin-address"],j,{enabled:!1}),s=(0,l.useQuery)(["dex-pair",a,r],(function(){var n=a;if(!r&&c.data){var e=c.data[n.toLocaleLowerCase()]||{},t=e.pairs,i=void 0===t?[]:t,o=e.total;if(i&&0!==i.length)return N(n),{data:{data:{pairs:i,total:o}}}}return N(n),P({keyword:n,all:r})}),(0,i.Z)({staleTime:1/0,enabled:!!n},o));return{data:s.data,isLoading:s.isLoading||n!==a,refetch:function(){return c.data?void 0:c.refetch()}}},E=function(){var n=(0,r.Z)((function(){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.javaApi,method:d().http.method.GET,url:"/data-api/v3/topsearch/rank"})];case 1:return[2,n.sent().data]}}))}));return function(){return n.apply(this,arguments)}}(),I=function(n){return(0,l.useQuery)(["trending-search"],E,(0,i.Z)({select:function(n){return n.data.cryptoTopSearchRanks},staleTime:1/0},n))},L=function(){var n=(0,r.Z)((function(n){var e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.javaApi,method:d().http.method.GET,url:"/nft/v3/nft/collection/search",params:{keyword:n,limit:100}})];case 1:return e=t.sent().data,[2,null===e||void 0===e?void 0:e.data]}}))}));return function(e){return n.apply(this,arguments)}}(),A=function(n,e){var t=(0,p.N)(n,300).replace(/\s\s+/g," ").trim();return(0,l.useQuery)(["nft-search",[t]],(function(){return L(t)}),(0,i.Z)({enabled:!!n,staleTime:1/0},e))},_=function(){var n=(0,r.Z)((function(){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.s3,method:"get",url:"/generated/core/sector/lite-list.json"})];case 1:return[2,n.sent()]}}))}));return function(){return n.apply(this,arguments)}}(),O=function(n){return(0,l.useQuery)("categories-map",_,(0,i.Z)({staleTime:1/0,select:function(n){return n.data}},n))},M=function(n){return"".concat(n.id,":").concat(n.slug,":").concat(n.name)},R=function(){var n=(0,r.Z)((function(n){return(0,c.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,y.Pk)({baseURL:d().env.endpoints.javaApi,method:d().http.method.GET,url:"/data-api/v3/cryptocurrency/listing",params:n})];case 1:return[2,e.sent()]}}))}));return function(e){return n.apply(this,arguments)}}(),D=function(n){var e=(0,p.N)(n,300),t=(0,s.useContext)(f.Zy),r=t.mapData,a=t.currency,c=r.data,u=(0,s.useMemo)((function(){return null===c||void 0===c?void 0:c.filter((function(n){return["active","untracked"].includes(n.status)}))}),[c]),d=e.replace(/\s\s+/g," ").trim(),m=(0,s.useMemo)((function(){if(0===d.length)return[];var n=["name","slug","symbol"];return d&&d.length>8&&n.push("address"),(0,x.r_)(u,d,n).slice(0,100).map((function(n){return(0,o.Z)((0,i.Z)({},n),{key:M(n)})}))}),[u,d]),v=m.map((function(n){return n.id})).join(","),y=(0,l.useQuery)(["search-crypto",d,a.id],(function(){if(""!==v)return R({ids:v,convertIds:"2781,".concat(a.id)})}),{}),C=y.data,b=y.isLoading,Z=m.map((function(n){var e,t,r,c,s,l,u,d,f=(null===C||void 0===C||null===(e=C.data)||void 0===e||null===(t=e.data)||void 0===t||null===(r=t.cryptoCurrencyList)||void 0===r?void 0:r.find((function(e){return e.id===n.id})))||{},p=1,x=null===(s=null===(c=f.quotes)||void 0===c?void 0:c.find((function(n){return Number(n.name)===Number(a.id)})))||void 0===s?void 0:s.price;if(x)d=x;else{var m,v,y,b=null===(v=null===(m=f.quotes)||void 0===m?void 0:m.find((function(n){return"2781"===n.name})))||void 0===v?void 0:v.price;p=null===(y=g.C.get(a.id))||void 0===y?void 0:y.p,d=b}return(0,o.Z)((0,i.Z)({},n),{price:(0,h.oB)(d,p,a.id,{usePriceAbbreviation:!0}),priceChange24h:n.id===a.id?0:null===(l=f.quotes)||void 0===l||null===(u=l[0])||void 0===u?void 0:u.percentChange24h})}));return{cryptoResultMemo:Z,isLoading:b}},X=function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=n.replace(/\s\s+/g," ").trim(),r=O({enabled:e}),a=r.data||[];return(0,s.useMemo)((function(){return 0===t.length?[]:(0,x.r_)(a,t,["name"]).slice(0,100).map((function(n){return(0,o.Z)((0,i.Z)({},n),{key:M(n)})}))}),[a,t])},z=function(n){var e=(0,s.useContext)(f.Zy).exchangeMap,t=void 0===e?[]:e,r=(0,s.useMemo)((function(){return t.filter((function(n){return["active","untracked"].includes(n.status)}))}),[t]),a=n.replace(/\s\s+/g," ").trim();return(0,s.useMemo)((function(){if(0===a.length)return[];var n=(0,x.r_)(r,a,["name","slug"]).slice(0,100).map((function(n){return(0,o.Z)((0,i.Z)({},n),{key:M(n)})}));if("bin"===a.slice(0,3).toLowerCase()){var e=n.find((function(n){return"binance"===n.slug})),t=n.find((function(n){return"binance-us"===n.slug}));e&&t&&(n=[e,t].concat(n.filter((function(n){return"binance-us"!==n.slug&&"binance"!==n.slug}))))}return n}),[r,a])};e.ZP=function(){var n=(0,s.useContext)(f.Zy),e=n.mapData,t=n.setMapData,i=n.exchangeMap,o=n.setExchangeMap,a=function(){var n=(0,r.Z)((function(n){var e,t,r;return(0,c.__generator)(this,(function(i){switch(i.label){case 0:return e=Date.now(),[4,(0,v.yv)(v.Cx.MAP_CRYPTOS_EXCHANGE,!0)];case 1:return(t=i.sent())&&t.data?[3,3]:[4,b()];case 2:return r=i.sent(),(0,v.k0)(v.Cx.MAP_CRYPTOS_EXCHANGE,r,(new Date).getTime()+3e5),(0,C.I)({t:"search_perf_load_map",loadMap:Date.now()-e}),[2,r];case 3:return t.data?(t.expired&&b().then((function(e){(0,v.k0)(v.Cx.MAP_CRYPTOS_EXCHANGE,e,(new Date).getTime()+3e5),n&&n(e)})),(0,C.I)({t:"search_perf_load_map",loadMap:Date.now()-e}),[2,t.data]):[2]}}))}));return function(e){return n.apply(this,arguments)}}(),l=function(n){var e=n||{cryptoCurrencyMap:[],exchangeMap:[]},r=e.cryptoCurrencyMap,i=e.exchangeMap,a={},c={},s=r;s.forEach((function(n){a[n.slug]=n.id,c[n.id]=n})),t({data:s,mapData:c,slugMap:a}),o(i)},u=function(){var n=(0,r.Z)((function(){var n,t;return(0,c.__generator)(this,(function(r){switch(r.label){case 0:return(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.length)&&(null===i||void 0===i?void 0:i.length)?[2]:[4,a(l)];case 1:return t=r.sent(),l(t),[2]}}))}));return function(){return n.apply(this,arguments)}}();return u}},39344:function(n,e,t){t.d(e,{ZP:function(){return s}});var r=t(52322),i=(t(2784),t(71540)),o=t(89697);function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99;if(!n)return"-";if(isNaN(n))return"-";if(n+="",e&&n.split(".")[0].length>e)return c(n,2);if(n.match(/\./g)){var t=e-n.split(".")[0].length,r=2;t<=1?(r=0,n=n.split(".")[0]):2===t&&(r=1);var i=new RegExp("^\\d+(?:\\.\\d{0,"+r+"})?"),o=n.match(i);n=o&&o.length>0&&o[0]||""}return n.replace(/(?=(\B)(\w{3})+(?!\w))/g,",")||""}function c(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!n)return"-";if(isNaN(n))return"-";var t,r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"B"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],i=/\.0+$|(\.[0-9]*[1-9])0+$/;for(t=r.length-1;t>0&&!(n>=r[t].value);t--);if("E"===r[t].symbol){var o=parseFloat(n)+"";if(o.match(/e/)){var a=o.split("e");return parseFloat(a).toFixed(2)+"E"+a[1]}return(n/r[t].value).toFixed(e).replace(i,"$1")+r[t].symbol+"+18"}return(n/r[t].value).toFixed(e).replace(i,"$1")+r[t].symbol}var s=function(n){var e=n.price,t=n.prefix,s=void 0===t?"":t,l=n.suffix,u=void 0===l?"":l,d=n.limit,f=n.maxLen,p=n.fixedPosition,h=n.integerUsingRawValue,x="number"===typeof e,m=!!x&&e<0,g=x?Math.abs(e):e,v=function(n,e,t){if(!n)return{number:"-"};if(isNaN(n))return{number:"-"};"number"===typeof n&&(n=(0,o.JS)(n));var r=parseFloat(n);if(r>=1)return e&&n.split(".")[0].length>e?{number:c(n,2)}:{number:a(n,t||13)};if(0===r)return{number:"0"};if(r<1&&r>1e-5){var i=(n+"").split(".")[1],s=(null===i||void 0===i?void 0:i.split(""))||[],l=[],u=0;for(var d in s){if("0"!==s[d])break;u++,l.push("0")}return{number:"0."+l.join("")+i.substr(u,4)}}var f,p=null===(f=n+"")||void 0===f?void 0:f.split(".")[1],h=(null===p||void 0===p?void 0:p.split(""))||[],x=0;for(var m in h){if("0"!==h[m])break;x++}return{number:(null===p||void 0===p?void 0:p.substr(x,4))||"",subNumber:x}}(g,d,f),y=v.number,C=v.subNumber;if("-"==y)return(0,r.jsx)("span",{children:"--"});var b=function(n){return m?"-".concat(s).concat(n).concat(u):"".concat(s).concat(n).concat(u)};return y.match(/(K|M|B|T|P|E)/g)&&!C?h?(0,r.jsx)("span",{style:{cursor:"pointer"},children:b(Number(Number(g).toFixed(2)).toLocaleString())}):(0,r.jsx)(i.Z,{positionStrategy:p?"fixed":"absolute",allowedPlacements:["bottom"],content:(0,r.jsx)("div",{style:{fontSize:"12px"},children:e}),children:(0,r.jsx)("span",{style:{cursor:"pointer"},children:b(y)})}):C?(0,r.jsx)(i.Z,{positionStrategy:p?"fixed":"absolute",allowedPlacements:["bottom"],content:(0,r.jsxs)("div",{children:[m&&"-","0.","0".repeat(C),y.slice(0,4)]}),children:(0,r.jsxs)("span",{style:{cursor:"pointer"},children:[(0,r.jsxs)("span",{children:[m&&"-","".concat(s,"0.0")]}),(0,r.jsx)("sub",{className:"sink",children:C}),(0,r.jsx)("span",{children:y}),u&&(0,r.jsx)("span",{children:u})||""]})}):(0,r.jsx)("span",{children:b(y)})}},16898:function(n,e,t){var r=t(62230),i=t(98240),o=t(52322),a=t(39097),c=t.n(a),s=t(3154),l=t(34406).env.GRAVITY_APP?c():function(n){var e=n.href,t=(n.passHref,(0,i.Z)(n,["href","passHref"])),a=(0,s.OF)(e).href;return(0,o.jsx)("a",(0,r.Z)({href:a},t))};e.Z=l},66016:function(n,e,t){t.d(e,{N:function(){return i}});var r=t(2784),i=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,t=(0,r.useState)(n),i=t[0],o=t[1];return(0,r.useEffect)((function(){var t=setTimeout((function(){o(n)}),e);return function(){return clearTimeout(t)}}),[n]),i}},53551:function(n,e,t){var r=t(81541),i=t(2784);e.Z=function(n){var e=(0,i.useRef)(!1);return(0,i.useCallback)((function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];e.current||(n.apply(void 0,(0,r.Z)(i)),e.current=!0)}),[n])}},89697:function(n,e,t){function r(n,e){if(!n)return"-";if(isNaN(n))return"-";var t,r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"B"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],i=/\.0+$|(\.[0-9]*[1-9])0+$/;for(t=r.length-1;t>0&&!(n>=r[t].value);t--);if("E"===r[t].symbol){var o=parseFloat(n)+"";if(o.match(/e/)){var a=o.split("e");return parseFloat(a).toFixed(2)+"E"+a[1]}return(n/r[t].value).toFixed(e).replace(i,"$1")+r[t].symbol+"+18"}return(n/r[t].value).toFixed(e).replace(i,"$1")+r[t].symbol}function i(n){var e="";n<0&&(e="-");var t=Math.abs(n)+"";if(t.indexOf("-")>0){for(var r=parseInt(t.split("e-")[1]),i=[],o=0;o<r-1;o++)i.push("0");return e+"0."+i.join("")+t.split("e-")[0].replace(".","")}if(t.indexOf("+")>0){for(var a=t.split("e+"),c=[],s=parseInt(a[1]),l=a[0].replace(".",""),u=s-l.length,d=0;d<u;d++)c.push("0");return e+l+c.join("")}return t}function o(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:999;if(!n)return"-";if(isNaN(n))return"-";if("number"===typeof n&&(n=i(n)),n+="",e&&n.split(".")[0].length>e)return r(n,2);if(n.match(/\./g)){var t=e-n.split(".")[0].length,o=2;t<=1?(o=0,n=n.split(".")[0]):2===t&&(o=1);var a=new RegExp("^\\d+(?:\\.\\d{0,"+o+"})?"),c=n.match(a);n=c&&c.length>0&&c[0]||""}return n.replace(/(?=(\B)(\w{3})+(?!\w))/g,",")||""}function a(n){if(!n)return"-";if(isNaN(n))return"-";"number"===typeof n&&(n=i(n));var e=parseFloat(n);if(e>=1)return o(n,13);if(0===e)return"0";if(e<1&&e>1e-5){var t=n.split(".")[1],r=(null===t||void 0===t?void 0:t.split(""))||[],a=[],c=0;for(var s in r){if("0"!==r[s])break;c++,a.push("0")}return"0."+a.join("")+t.substr(c,4)}var l=n.split(".")[1],u=(null===l||void 0===l?void 0:l.split(""))||[],d=[],f=0;for(var p in u){if("0"!==u[p])break;f++}return d[0]="0.0",d[1]="<sub class='sink'>"+f+"</sub>",d[2]=(null===l||void 0===l?void 0:l.substr(f,4))||"",d.join("")}function c(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,r=new RegExp("(\\S{"+e+"})(\\S*)(\\S{"+t+"})");return n.replace(r,"$1...$3")}function s(n){var e=Math.abs(n);return e>=1e9?(n/1e9).toFixed(1)+"G":e>=1e6?(n/1e6).toFixed(1)+"M":e>=1e3?(n/1e3).toFixed(1)+"K":n.toString()}t.d(e,{CP:function(){return a},JS:function(){return i},JZ:function(){return o},hW:function(){return r},uS:function(){return c},uf:function(){return s}})},99366:function(n,e,t){t.d(e,{D:function(){return r}});var r=function(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(e),e=setTimeout((function(){return n.apply(a,i)}),t)}}},12998:function(n,e,t){var r=t(81541),i={comment:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["post","comment",n,"latest",{display:e}]},currencyLatestFeed:function(n,e,t){return["post","currency",n,"latest",e,{postType:t}]},currencyTrendingFeed:function(n,e,t){return["post","currency",n,"trending",e,t]},timeline:function(n,e){return["post","timeline",n,e]},postSecondaryComments:function(n){return["post","secondaryComment",n]},postRepost:function(n){return["post","repost",n]},gravitySearch:function(n,e,t){return["search"].concat((0,r.Z)(n),[e,t])},searchAccount:function(n,e,t){return["search","account",e,{selfGuid:t,searchType:n}]},coinPriceChart:function(n,e){return["coin","chart",n,e]},coinStatsLite:function(n){return["coin","stats","light",n]},trendingSearch:function(){return["trendingSearch"]},postDetail:function(n){return["post",n]},userPosts:function(n,e,t){return["profile","post",n,e,{isYourSelf:t}]},userArticles:function(n){return["articles",n]},recommendedAccounts:function(){return["recommended","account"]},topPostArticle:function(n){return["post","article","topPostArticle",n]},quotes:function(n){return["quotes",n]},postOwner:function(n){return["owner",n]},queryIsProjectMainAccount:function(n){return["queryIsProjectMainAccount",n]},businessSwitch:function(){return["community","businessSwitch"]},giphy:function(n){return["giphy",n]},queryAvatarFrameEvents:function(){return["queryAvatarFrameEvents"]},followings:function(){return["followings"]},watchlist:function(){return["watchlist"]},followList:function(n){return["account","follow",n]},followStatus:function(n){return["account","follow",{target:n}]},pinnedPost:function(){return["post","pinned"]},fuzzyTopic:function(n){return["search","fuzzy","topic",n]},globalSearch:function(n){return["community","search","global",n]},NFTSearch:function(n){return["community","search","NFT",n]}};e.Z=i},40335:function(n,e,t){t.d(e,{OC:function(){return a},aI:function(){return o}});var r=t(68183),i=t(15798),o=function(n,e){var t=e||{},i=t.external,o=t.lang,a=void 0===o?"en":o;if(n.match(/^https?:\/\//)){var c=new URL(n).host;(0,r.Z)(c)&&!i?location.href=n:window.open(n,"_blank")}else{var s="en"!==a?"/".concat(a).concat(n):"".concat(n);e.external?window.open(s,"_blank"):location.href=s}},a=function(n,e){var t={isValid:!1,isInternal:!1,body:null};if(!n)return t;var r=n,o="",a="",c="";if(n.startsWith("/"))t.isValid=!0,t.isInternal=!0,o=n;else{var s,l,u,d=/^((https?|ftp):)?\/\/(([^\s\/\.$?#]*\.)*([^\s\/\.$?#:]+)(:\d*?)?)(\/[^\s]*)*\/?$/gi.exec(n);if(!d)return t;o=null!==(s=d[7])&&void 0!==s?s:"",a=null!==(l=d[3])&&void 0!==l?l:"",c=null!==(u=d[6])&&void 0!==u?u:"",t.isValid=!0;var f=[];d[4]&&f.push(d[4]),d[5]&&f.push(d[5]);var p=f.join("");("coinmarketcap.com"===p||i.isLocalDev&&"localhost"===p)&&(t.isInternal=!0)}var h=(e||{}).lang,x=void 0===h?"en":h;t.isInternal&&o&&("en"!=x&&(o.replace(/^(\/(dexscan|community))\//gi,"/").startsWith("/".concat(x,"/"))||(o=o.replace(/^(\/(dexscan|community))?\//gi,"$1/".concat(x,"/")))));return r=a||c?"//".concat(a).concat(o):o,t.body=r,t}},86931:function(n,e,t){var r=t(62230),i=t(85244),o=t(52322),a=(t(2784),t(92324));e.Z=function(n){return(0,o.jsx)(a.Z,(0,i.Z)((0,r.Z)({fill:"none"},n),{children:(0,o.jsx)("path",{d:"M19.3907 13.9512C19.0367 14.1717 18.6198 14.199 18.3029 14.0229C17.9004 13.799 17.6791 13.2746 17.6791 12.5454V10.3634C17.6791 9.30976 17.2562 8.56 16.5492 8.35756C15.351 8.01366 14.4499 9.45805 14.1112 10.0005L11.998 13.3761V9.25024C11.9743 8.30098 11.6613 7.73317 11.0672 7.56195C10.6741 7.44878 10.0859 7.49415 9.51449 8.35561L4.78012 15.8454C4.1463 14.6599 3.81589 13.3399 3.81759 12C3.81759 7.48829 7.48745 3.81805 11.998 3.81805C16.5086 3.81805 20.178 7.48829 20.178 12C20.178 12.0078 20.1799 12.0146 20.1804 12.022C20.1804 12.0298 20.179 12.0366 20.1794 12.0444C20.222 12.918 19.9349 13.6127 19.3907 13.9512ZM21.9956 12.0005V11.9776L21.9951 11.9551C21.9698 6.46049 17.4954 2 11.9975 2C6.48532 2 2 6.48585 2 12C2 17.5137 6.48532 22 11.998 22C14.5276 22 16.9418 21.0527 18.7951 19.3332C19.1635 18.9917 19.1852 18.4166 18.8436 18.0488C18.6812 17.8723 18.4535 17.7677 18.2118 17.7585C17.9702 17.7493 17.735 17.8364 17.5593 18C16.0571 19.4015 14.0668 20.1823 11.998 20.182C9.58282 20.182 7.40972 19.1288 5.91098 17.4585L10.1804 10.7044V13.818C10.1804 15.3137 10.7691 15.7971 11.2628 15.9385C11.7569 16.08 12.512 15.9834 13.3047 14.7151L15.653 10.9644C15.7283 10.8434 15.7976 10.739 15.861 10.6488V12.5454C15.861 13.9434 16.4294 15.0615 17.4201 15.6122C18.3133 16.1088 19.4363 16.0639 20.3513 15.4951C21.4603 14.8049 22.0579 13.5332 21.9956 12.0005Z",fill:"currentColor"})}))}},65247:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(52322),c=t(2784),s=t(92324),l=function(n){var e=n.sx,t=void 0===e?{}:e,c=(0,o.Z)(n,["sx"]);return(0,a.jsxs)(s.Z,(0,i.Z)((0,r.Z)({sx:t},c),{iconName:"coin",children:[(0,a.jsx)("path",{d:"M12.71 7.29C12.32 6.9 11.69 6.9 11.3 7.29L7.30001 11.29C6.91001 11.68 6.91001 12.31 7.30001 12.7L11.3 16.7C11.5 16.9 11.75 16.99 12.01 16.99C12.27 16.99 12.52 16.89 12.72 16.7L16.72 12.7C17.11 12.31 17.11 11.68 16.72 11.29L12.72 7.29H12.71ZM12 14.58L9.41001 11.99L12 9.4L14.59 11.99L12 14.58Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"})]}))};e.Z=c.memo(l)},6329:function(n,e,t){var r=t(62230),i=t(85244),o=t(52322),a=(t(2784),t(92324));e.Z=function(n){return(0,o.jsx)(a.Z,(0,i.Z)((0,r.Z)({fill:"none"},n),{children:(0,o.jsx)("path",{d:"M21.99 16.005V12C21.99 10.35 20.64 9 18.99 9H15.99V6C15.99 4.35 14.64 3 12.99 3H4.99501C3.34501 3 1.99501 4.35 1.99501 6V10.005C1.99501 10.98 2.475 11.835 3.195 12.39L2.28002 13.305C1.89002 13.695 1.89002 14.325 2.28002 14.715C2.47502 14.91 2.73002 15.015 2.98502 15.015C3.24002 15.015 3.49502 14.91 3.69002 14.715L5.4 13.005H7.98V16.005C7.98 17.655 9.33 19.005 10.98 19.005H18.57L20.28 20.715C20.475 20.91 20.73 21.015 20.985 21.015C21.24 21.015 21.495 20.91 21.69 20.715C22.08 20.325 22.08 19.695 21.69 19.305L20.775 18.39C21.495 17.835 21.975 16.98 21.975 16.005H21.99ZM8.17501 11.01H4.99501C4.44001 11.01 3.98999 10.56 3.98999 10.005V6C3.98999 5.445 4.44001 4.995 4.99501 4.995H12.99C13.545 4.995 13.995 5.445 13.995 6V9H10.995C9.69001 9 8.58001 9.84 8.17501 10.995V11.01ZM9.98999 16.005V12C9.98999 11.445 10.44 10.995 10.995 10.995H18.99C19.545 10.995 19.995 11.445 19.995 12V16.005C19.995 16.56 19.545 17.01 18.99 17.01H10.995C10.44 17.01 9.98999 16.56 9.98999 16.005Z",fill:"currentColor"})}))}},57075:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(52322),c=t(2784),s=t(92324),l=function(n){var e=n.sx,t=void 0===e?{}:e,c=(0,o.Z)(n,["sx"]);return(0,a.jsx)(s.Z,(0,i.Z)((0,r.Z)({sx:t},c),{iconName:"search",children:(0,a.jsx)("path",{fill:"currentColor",d:"M20.41 19L17.31 15.9C18.36 14.54 19 12.85 19 11C19 6.59 15.41 3 11 3C6.59 3 3 6.59 3 11C3 15.41 6.59 19 11 19C12.85 19 14.54 18.37 15.9 17.31L19 20.41C19.2 20.61 19.45 20.7 19.71 20.7C19.97 20.7 20.22 20.6 20.42 20.41C20.81 20.02 20.81 19.39 20.42 19H20.41ZM5 11C5 7.69 7.69 5 11 5C14.31 5 17 7.69 17 11C17 14.31 14.31 17 11 17C7.69 17 5 14.31 5 11Z"})}))};e.Z=c.memo(l)},66053:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(52322),c=t(2784),s=t(92324),l=function(n){var e=n.sx,t=void 0===e?{}:e,c=(0,o.Z)(n,["sx"]);return(0,a.jsxs)(s.Z,(0,i.Z)((0,r.Z)({sx:t},c),{iconName:"verified",children:[(0,a.jsx)("path",{d:"M12 2L15.3676 3.86986L19.0711 4.92893L20.1301 8.63239L22 12L20.1301 15.3676L19.0711 19.0711L15.3676 20.1301L12 22L8.63239 20.1301L4.92893 19.0711L3.86986 15.3676L2 12L3.86986 8.63239L4.92893 4.92893L8.63239 3.86986L12 2Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6549 8.24434C17.0723 8.60605 17.1174 9.23761 16.7557 9.65496L11.5557 15.655C11.3657 15.8741 11.09 16 10.8 16C10.51 16 10.2343 15.8741 10.0443 15.655L7.24431 12.4242C6.8826 12.0068 6.92771 11.3753 7.34507 11.0136C7.76242 10.6519 8.39398 10.697 8.75569 11.1143L10.8 13.4732L15.2443 8.3451C15.606 7.92774 16.2376 7.88263 16.6549 8.24434Z",fill:"white"})]}))};e.Z=c.memo(l)},76409:function(n,e,t){t.d(e,{Z:function(){return s}});var r=t(52322),i=t(2784),o=t(41131),a=i.createContext(o.Z.STACKING_CONTEXT),c=function(n){var e=n.children,t=n.value,c=void 0===t?o.Z.STACKING_CONTEXT:t,s=(0,i.useContext)(a),l=Math.max(c,s),u=l+1;return(0,r.jsx)(a.Provider,{value:u,children:e(l)})};c.displayName="Stack";var s=i.memo(c)},41131:function(n,e){e.Z={STACKING_CONTEXT:5,APP_BANNER:1001,BOTTOM_NAVBAR:1001,OVERLAY:1002,POPOVER:1e3}},11399:function(n,e,t){var r=t(62230),i=t(85244),o=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,o.jsx)(a.Z,(0,i.Z)((0,r.Z)({},n),{children:(0,o.jsx)("path",{d:"M18.0566 8H5.94336C5.10459 8 4.68455 9.02183 5.27763 9.61943L11.3343 15.7222C11.7019 16.0926 12.2981 16.0926 12.6657 15.7222L18.7223 9.61943C19.3155 9.02183 18.8954 8 18.0566 8Z"})}))}},38485:function(n,e,t){var r=t(62230),i=t(85244),o=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,o.jsx)(a.Z,(0,i.Z)((0,r.Z)({},n),{children:(0,o.jsx)("path",{d:"M18.0566 16H5.94336C5.10459 16 4.68455 14.9782 5.27763 14.3806L11.3343 8.27783C11.7019 7.90739 12.2981 7.90739 12.6657 8.27783L18.7223 14.3806C19.3155 14.9782 18.8954 16 18.0566 16Z"})}))}},6761:function(n,e,t){var r=t(62230),i=t(85244),o=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,o.jsx)(a.Z,(0,i.Z)((0,r.Z)({fill:"none"},n),{children:(0,o.jsx)("path",{d:"M15 6L9 12L15 18",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}))}},17922:function(n,e,t){var r=t(62230),i=t(85244),o=t(98240),a=t(75190),c=t(52322),s=(t(2784),t(82740)),l=t(78320),u=t(37881);function d(){var n=(0,a.Z)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n cursor: pointer;\n padding: 10px 8px;\n border-radius: 8px;\n\n &:hover {\n background-color: ",";\n }\n"]);return d=function(){return n},n}function f(){var n=(0,a.Z)(["\n align-items: center;\n "]);return f=function(){return n},n}function p(){var n=(0,a.Z)(["\n display: flex;\n flex-direction: row;\n color: ",";\n font-weight: 500;\n align-self: flex-start;\n ","\n .s-text {\n color: ",";\n font-weight: 600;\n }\n"]);return p=function(){return n},n}function h(){var n=(0,a.Z)(["\n height: 20px;\n width: 20px;\n border-radius: 10px;\n"]);return h=function(){return n},n}function x(){var n=(0,a.Z)(["\n display: flex;\n flex-direction: column;\n"]);return x=function(){return n},n}var m=s.ZP.div.withConfig({componentId:"sc-8e47f33-0"})(d(),(function(n){return n.theme.isDay?n.theme.colors.neutral1:n.theme.colors.neutral2})),g=(0,s.ZP)(l.Z).withConfig({componentId:"sc-8e47f33-1"})(p(),(function(n){return n.theme.colors.neutral4}),(function(n){return n.center&&(0,s.iv)(f())}),(function(n){return n.theme.colors.neutral4})),v=s.ZP.img.attrs((function(n){return{src:n.logo,alt:"search-s-icon"}})).withConfig({componentId:"sc-8e47f33-2"})(h()),y=s.ZP.div.withConfig({componentId:"sc-8e47f33-3"})(x()),C=function(){return(0,c.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M13.9126 9.56098C13.6294 9.73737 13.2958 9.75922 13.0423 9.61834C12.7203 9.43922 12.5433 9.01971 12.5433 8.43629V6.69073C12.5433 5.8478 12.205 5.248 11.6394 5.08605C10.6808 4.81093 9.9599 5.96644 9.68897 6.40039L7.99842 9.10088V5.8002C7.97941 5.04078 7.72908 4.58654 7.25376 4.44956C6.93925 4.35902 6.46869 4.39532 6.01159 5.08449L2.22409 11.0763C1.71704 10.1279 1.45271 9.0719 1.45408 8C1.45408 4.39063 4.38996 1.45444 7.99842 1.45444C11.6069 1.45444 14.5424 4.39063 14.5424 8C14.5424 8.00624 14.544 8.01171 14.5444 8.01756C14.5444 8.0238 14.5432 8.02927 14.5436 8.03551C14.5776 8.73444 14.3479 9.29054 13.9126 9.56137V9.56098ZM15.9965 8.00039V8V7.98205L15.9961 7.9641C15.9759 3.56839 12.3963 0 7.99803 0C3.58826 0 0 3.58868 0 8C0 12.4109 3.58826 16 7.99842 16C10.0221 16 11.9535 15.2421 13.4361 13.8665C13.7308 13.5934 13.7482 13.1333 13.4749 12.839C13.3449 12.6978 13.1628 12.6141 12.9695 12.6068C12.7762 12.5995 12.588 12.6691 12.4474 12.8C11.2457 13.9212 9.65346 14.5459 7.99842 14.5456C6.06625 14.5456 4.32778 13.703 3.12878 12.3668L6.54434 6.96351V9.45444C6.54434 10.6509 7.01531 11.0377 7.41022 11.1508C7.80552 11.264 8.40957 11.1867 9.04373 10.1721L10.9224 7.17151C10.9826 7.07473 11.0381 6.99122 11.0888 6.91902V8.43629C11.0888 9.55473 11.5435 10.4492 12.3361 10.8898C13.0507 11.287 13.949 11.2511 14.681 10.7961C15.5683 10.2439 16.0464 9.22654 15.9965 8.00039Z",fill:"currentColor"})})};e.Z=function(n){var e=n.logo,t=n.name,a=n.text,s=n.onClick,l=(0,o.Z)(n,["logo","name","text","onClick"]);return(0,c.jsxs)(m,(0,i.Z)((0,r.Z)({onClick:s,"data-sensors-click":!0},l),{dir:"ltr",children:[(0,c.jsxs)(g,{style:{flex:"1"},children:[(0,c.jsx)(v,{logo:e}),(0,c.jsxs)(y,{children:[(0,c.jsx)(u.ZP,{fontSize:1,ml:"8px",lineHeight:"20px",dir:"ltr",children:t}),(0,c.jsx)(u.ZP,{fontSize:0,ml:"8px",color:"text2",dir:"ltr",children:a})]})]}),(0,c.jsxs)(g,{center:!0,mt:"2px",children:[(0,c.jsx)(C,{}),(0,c.jsx)(u.ZP,{fontSize:"11px",ml:"4px",className:"s-text",dir:"ltr",children:"Sponsored"})]})]}))}},7964:function(n,e){e.Z=function(n){return null===n}}}]);