PageSourceSearch

https://caioexplica.ai/_next/static/chunks/app/terminal/page-ee513…?dpl=dpl_3QFXgqFWgMEcbAisfQmvr1KiPUEJ

js caioexplica.ai collected 2026-10-05 15:29:11 UTC 35,142 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{31996:function(e,s,t){Promise.resolve().then(t.bind(t,27780))},27780:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return h}});var a=t(57437),l=t(2265),r=t(27648);function n(){let[e,s]=(0,l.useState)(null),[t,r]=(0,l.useState)(!0);(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/market"),t=await e.json();t.global&&s(t.global)}catch(e){console.error("Error fetching market stats:",e)}finally{r(!1)}};e();let t=setInterval(e,6e4);return()=>clearInterval(t)},[]);let n=e=>e>=1e12?"$".concat((e/1e12).toFixed(2),"T"):e>=1e9?"$".concat((e/1e9).toFixed(2),"B"):e>=1e6?"$".concat((e/1e6).toFixed(2),"M"):"$".concat(e.toFixed(2));return t?(0,a.jsx)("div",{className:"bg-card/30 border-b border-border/50 py-4 px-6",children:(0,a.jsx)("div",{className:"flex gap-8 animate-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("div",{className:"h-3 w-24 bg-border/50 rounded"}),(0,a.jsx)("div",{className:"h-4 w-32 bg-border/50 rounded"})]},e))})}):e?(0,a.jsx)("div",{className:"bg-card/30 border-b border-border/50 py-4 px-6",children:(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"Total Market Cap"}),(0,a.jsx)("p",{className:"text-lg font-bold font-mono text-white",children:n(e.totalMarketCap)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"24h Volume"}),(0,a.jsx)("p",{className:"text-lg font-bold font-mono text-white",children:n(e.totalVolume)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"BTC Dominance"}),(0,a.jsxs)("p",{className:"text-lg font-bold font-mono text-accent-gold",children:[e.btcDominance.toFixed(2),"%"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-500 mb-1",children:"ETH Dominance"}),(0,a.jsxs)("p",{className:"text-lg font-bold font-mono text-accent-blue",children:[e.ethDominance.toFixed(2),"%"]})]})]})}):null}var i=t(580),c=t(1701);function d(e){let s=null!=e?e:0;return s>=1e9?"$".concat((s/1e9).toFixed(2),"B"):s>=1e6?"$".concat((s/1e6).toFixed(2),"M"):s>=1e3?"$".concat((s/1e3).toFixed(2),"K"):s>=1?"$".concat(s.toFixed(2)):"$".concat(s.toFixed(6))}function o(e){let s=null!=e?e:0;return s>=1e9?"".concat((s/1e9).toFixed(2),"B"):s>=1e6?"".concat((s/1e6).toFixed(2),"M"):s>=1e3?"".concat((s/1e3).toFixed(2),"K"):s.toFixed(2)}function x(e){let s=new Date,t=new Date(e),a=Math.floor((s.getTime()-t.getTime())/6e4);if(a<60)return"".concat(a,"m atr\xe1s");let l=Math.floor(a/60);return l<24?"".concat(l,"h atr\xe1s"):"".concat(Math.floor(l/24),"d atr\xe1s")}function m(e){let s=new Date,t=new Date(e).getTime()-s.getTime();if(t<=0)return"Agora";let a=Math.floor(t/6e4);if(a<60)return"".concat(a,"m");let l=Math.floor(a/60);return l<24?"".concat(l,"h"):"".concat(Math.floor(l/24),"d")}function h(){var e,s,t;let[h,u]=(0,l.useState)([]),[p,j]=(0,l.useState)(!0),[f,g]=(0,l.useState)(null),[v,b]=(0,l.useState)(!0),[N,y]=(0,l.useState)(null),[w,D]=(0,l.useState)(!0),[k,S]=(0,l.useState)([]),[F,_]=(0,l.useState)([]),[C,E]=(0,l.useState)([]),[I,M]=(0,l.useState)(!0),[V,T]=(0,l.useState)([]),[B,P]=(0,l.useState)([]),[$,O]=(0,l.useState)(!0),[R,A]=(0,l.useState)([]),[H,L]=(0,l.useState)(!0),[q,G]=(0,l.useState)([]),[z,U]=(0,l.useState)(0),[W,Z]=(0,l.useState)(!0),[K,X]=(0,l.useState)([]),[Y,J]=(0,l.useState)([]),[Q,ee]=(0,l.useState)(!0),[es,et]=(0,l.useState)([]),[ea,el]=(0,l.useState)(!0),[er,en]=(0,l.useState)(null),[ei,ec]=(0,l.useState)(!0),[ed,eo]=(0,l.useState)([]),[ex,em]=(0,l.useState)(0),[eh,eu]=(0,l.useState)(!0),[ep,ej]=(0,l.useState)({btc:0,eth:0,others:0}),[ef,eg]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/market"),s=await e.json();s.tokens&&u(s.tokens.slice(0,4))}catch(e){console.error("Error fetching tokens:",e)}finally{j(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/fear-greed"),s=await e.json();void 0!==s.value&&g(s)}catch(e){console.error("Error fetching fear & greed:",e)}finally{b(!1)}};e();let s=setInterval(e,3e5);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/macro"),s=await e.json();if(s.events&&s.events.length>0){let e=new Date,t=s.events.filter(s=>new Date(s.date)>e);t.length>0&&y(t[0])}}catch(e){console.error("Error fetching next macro event:",e)}finally{D(!1)}};e();let s=setInterval(e,3e5);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/trending"),s=await e.json();s.trending&&S(s.trending.slice(0,5)),s.topGainers&&_(s.topGainers.slice(0,5)),s.topLosers&&E(s.topLosers.slice(0,5))}catch(e){console.error("Error fetching trending:",e)}finally{M(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/defi"),s=await e.json();s.protocols&&T(s.protocols.slice(0,5)),s.topGainers24h&&P(s.topGainers24h.slice(0,5))}catch(e){console.error("Error fetching DeFi:",e)}finally{O(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/funding"),s=await e.json(),t=[];s.topPositiveFunding&&t.push(...s.topPositiveFunding.slice(0,3)),s.topNegativeFunding&&t.push(...s.topNegativeFunding.slice(0,3)),t.length>0&&A(t)}catch(e){console.error("Error fetching funding:",e)}finally{L(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/stablecoins"),s=await e.json();s.stablecoins&&(G(s.stablecoins.slice(0,5)),U(s.totalMarketCap||s.stablecoins.reduce((e,s)=>e+(s.marketCap||s.market_cap||0),0)))}catch(e){console.error("Error fetching stablecoins:",e)}finally{Z(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/news"),s=await e.json();s.crypto&&X(s.crypto.slice(0,5)),s.ai&&J(s.ai.slice(0,5))}catch(e){console.error("Error fetching news:",e)}finally{ee(!1)}};e();let s=setInterval(e,3e5);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/macro"),s=await e.json();if(s.events){let e=new Date,t=s.events.filter(s=>!s.completed&&new Date(s.date)>=e);et(t.slice(0,5))}}catch(e){console.error("Error fetching macro calendar:",e)}finally{el(!1)}};e();let s=setInterval(e,3e5);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let[e,s]=await Promise.all([fetch("/api/terminal/hyperliquid"),fetch("/api/terminal/hyperliquid/perps")]),t=await e.json(),a=await s.json(),l=(t.tokens||[]).filter(e=>e.name&&!e.name.startsWith("@")&&e.volume24h>1e3).sort((e,s)=>Math.abs(s.change24h||0)-Math.abs(e.change24h||0)).slice(0,3).map(e=>
1({symbol:e.name,price:e.price,change24h:e.change24h||0}));en({totalVolumeSpot:t.totalVolume||0,totalVolumePerps:a.totalVolume||0,topMovers:l})}catch(e){console.error("Error fetching Hyperliquid:",e)}finally{ec(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/terminal/airdrops"),s=await e.json(),t=s.data||s,a=t.active||t.airdrops||[],l=t.total||a.length;if(a.length>0){em(l);let e=[...a].sort((e,s)=>{let t={high:0,medium:1,low:2};return(t[e.urgency]||2)-(t[s.urgency]||2)});eo(e.slice(0,3))}else em(l)}catch(e){console.error("Error fetching airdrops:",e)}finally{eu(!1)}};e();let s=setInterval(e,3e5);return()=>clearInterval(s)},[]),(0,l.useEffect)(()=>{let e=async()=>{try{var e,s,t,a;let l=await fetch("/api/terminal/market"),r=await l.json(),n=(null===(e=r.global)||void 0===e?void 0:e.btcDominance)||(null===(s=r.dominance)||void 0===s?void 0:s.btc)||0,i=(null===(t=r.global)||void 0===t?void 0:t.ethDominance)||(null===(a=r.dominance)||void 0===a?void 0:a.eth)||0;n>0&&ej({btc:n,eth:i,others:100-n-i})}catch(e){console.error("Error fetching dominance:",e)}finally{eg(!1)}};e();let s=setInterval(e,6e4);return()=>clearInterval(s)},[]),(0,a.jsxs)("div",{className:"p-4 md:p-6 space-y-4",children:[(0,a.jsx)("div",{className:"animate-fade-in",children:(0,a.jsx)(n,{})}),(0,a.jsx)("div",{className:"animate-fade-in-up delay-100",children:p?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"card-nasa p-3 animate-pulse",children:[(0,a.jsx)("div",{className:"h-6 bg-border/50 rounded mb-2"}),(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded mb-2"}),(0,a.jsx)("div",{className:"h-12 bg-border/50 rounded"})]},e))}):(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:h.map(e=>{var s,t,l;return(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-1",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-gray-400",children:e.symbol.toUpperCase()}),(0,a.jsx)("p",{className:"text-lg font-bold font-mono",children:d(e.price)})]}),(0,a.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded ".concat(e.price_change_24h>=0?"text-green-400 bg-green-400/10":"text-red-400 bg-red-400/10"),children:[(null!==(s=e.price_change_24h)&&void 0!==s?s:0)>=0?"+":"",(null!==(t=e.price_change_24h)&&void 0!==t?t:0).toFixed(2),"%"]})]}),(0,a.jsx)("div",{className:"h-12 mt-2",children:(0,a.jsx)(i.Z,{data:e.sparkline.slice(-20),color:(null!==(l=e.price_change_24h)&&void 0!==l?l:0)>=0?"#22c55e":"#ef4444"})})]},e.id)})})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsx)("h3",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Fear & Greed Index"}),v?(0,a.jsx)("div",{className:"h-24 bg-border/50 rounded animate-pulse"}):f?(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"relative w-20 h-20",children:[(0,a.jsxs)("svg",{viewBox:"0 0 100 100",className:"transform -rotate-90",children:[(0,a.jsx)("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:"#1f2937",strokeWidth:"8"}),(0,a.jsx)("circle",{cx:"50",cy:"50",r:"45",fill:"none",strokeWidth:"8",strokeDasharray:"".concat(f.value/100*283," 283"),className:f.value<25?"stroke-red-500":f.value<45?"stroke-orange-500":f.value<55?"stroke-yellow-500":f.value<75?"stroke-lime-500":"stroke-green-500"})]}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-xl font-bold",children:f.value})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold",children:f.value_classification}),(0,a.jsx)(r.default,{href:"/terminal/mercado",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]})]}):(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Indispon\xedvel"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsx)("h3",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Pr\xf3ximo Evento Macro"}),w?(0,a.jsx)("div",{className:"h-24 bg-border/50 rounded animate-pulse"}):N?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold line-clamp-2 mb-1",children:N.name||N.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-400 mb-2",children:[(0,a.jsx)("span",{children:new Date(N.date).toLocaleDateString("pt-BR")}),(0,a.jsx)("span",{className:"px-2 py-0.5 rounded bg-accent-gold/20 text-accent-gold font-semibold",children:m(N.date)})]}),(0,a.jsx)(r.default,{href:"/terminal/macro",className:"text-xs text-accent-blue hover:underline",children:"Ver calend\xe1rio →"})]}):(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Nenhum evento pr\xf3ximo"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsx)("h3",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Resumo do Mercado"}),(0,a.jsx)("div",{className:"mt-3",children:(0,a.jsx)(c.Z,{audioSrc:"/audio/dashboard-live.mp3",label:"Ouvir Resumo"})})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-purple",children:"\uD83D\uDD25 Trending"}),(0,a.jsx)(r.default,{href:"/terminal/trending",className:"text-xs text-accent-blue hover:underline",children:"Ver todos →"})]}),I?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"},e))}):(0,a.jsx)("div",{className:"space-y-2",children:k.map(e=>(0,a.jsx)("div",{className:"flex items-center justify-between text-xs",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"text-gray-500 font-mono w-4",children:["#",e.market_cap_rank]}),(0,a.jsx)("span",{className:"font-semibold",children:e.symbol.toUpperCase()}),(0,a.jsx)("span",{className:"text-gray-400 truncate max-w-[100px]",children:e.name})]})},e.id))})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-green-400",children:"\uD83D\uDCC8 Top Gainers"}),(0,a.jsx)(r.default,{href:"/terminal/trending",className:"text-xs text-accent-blue hover:underline",children:"Ver todos →"})]}),I?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"},e))}):(0,a.jsx)("div",{className:"space-y-2",children:F.map(e=>{var s,t;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsxs)("div",{className:"flex-1 truncate",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.symbol.toUpperCase()}),(0,a.jsx)("span",{className:"text-gray-400 ml-2",children:d(e.price||e.current_price)})]}),(0,a.jsxs)("span",{className:"text-green-400 font-semibold",children:["+",(null!==(t=null!==(s=e.change24h)&&void 0!==s?s:e.price_change_percentage_24h)&&void 0!==t?t:0).toFixed(2),"%"]})]},e.id)})})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-red-400",children:"\uD83D\uDCC9 Top Losers"}),(0,a.jsx)(r.default,{href:"/terminal/trending",className:"text-xs text-accent-blue hover:underline",children:"Ver todos →"})]}),I?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"},e))}):(0,a.jsx)("div",{className:"space-y-2",children:C.map(e=>{var s,t;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsxs)("div",{className:"flex-1 truncate",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.symbol.toUpperCase()}),(0,a.jsx)("span",{className:"text-gray-400 ml-2",children:d(e.price||e.current_price)})]}),(0,a.jsxs)("span",{className:"text-red-400 font-semibold",children:[(null!==(t=null!==(s=e.change24h)&&void 0!==s?s:e.price_change_percentage_24h)&&void 0!==t?t:0).toFixed(2),"%"]})]},e.id)})})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-cyan",children:"\uD83C\uDFE6 DeFi TVL"}),(0,a.jsx)(r.default,{href:"/terminal/defi",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),$?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"},e))}):V.length>0?(0,a.jsx)("div",{className:"space-y-2",children:V.map((e,s)=>{var t,l,r;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsxs)("div",{className:"flex-1 truncate",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.name}),(0,a.jsx)("span",{className:"text-gray-500 ml-1 text-[10px]",children:e.chain})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsxs)("p",{className:"font-mono",children:["$",o(e.tvl)]}),(0,a.jsxs)("p",{className:(null!==(t=e.change_1d)&&void 0!==t?t:0)>=0?"text-green-400":"text-red-400",children:[(null!==(l=e.change_1d)&&void 0!==l?l:0)>=0?"+":"",(null!==(r=e.change_1d)&&void 0!==r?r:0).toFixed(2),"%"]})]})]},s)})}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Indispon\xedvel"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-green-400",children:"\uD83D\uDE80 DeFi Growth 24h"}),(0,a.jsx)(r.default,{href:"/terminal/defi",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),$?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"},e))}):B.length>0?(0,a.jsx)("div",{className:"space-y-2",children:B.map((e,s)=>{var t;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsxs)("div",{className:"flex-1 truncate",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.name}),(0,a.jsx)("span",{className:"text-gray-500 ml-1 text-[10px]",children:e.category||e.chain})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsxs)("p",{className:"font-mono",children:["$",o(e.tvl)]}),(0,a.jsxs)("p",{className:"text-green-400 font-semibold",children:["+",(null!==(t=e.change_1d)&&void 0!==t?t:0).toFixed(2),"%"]})]})]},s)})}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Sem crescimento expressivo"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-gold",children:"\uD83D\uDCB0 Funding Rates"}),(0,a.jsx)(r.default,{href:"/terminal/funding",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),H?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5,6].map(e=>(0,a.jsx)("div",{className:"h-6 bg-border/50 rounded animate-pulse"},e))}):R.length>0?(0,a.jsxs)("div",{className:"space-y-1.5",children:[R.map((e,s)=>{var t,l,r,n;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.asset||e.symbol}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsxs)("p",{className:"font-mono ".concat((null!==(t=e.fundingRate)&&void 0!==t?t:0)<0?"text-green-400":"text-red-400"),children:[((null!==(l=e.fundingRate)&&void 0!==l?l:0)*100).toFixed(4),"%"]}),(0,a.jsxs)("p",{className:"text-[10px] text-gray-500",children:[(null!==(r=e.annualized)&&void 0!==r?r:0)>=0?"+":"",(null!==(n=e.annualized)&&void 0!==n?n:0).toFixed(2),"% APR"]})]})]},s)}),(0,a.jsx)(r.default,{href:"https://app.hyperliquid.xyz/join/0XCVYH",target:"_blank",className:"block text-center mt-2 py-1 px-2 rounded bg-accent-blue/10 text-accent-blue text-xs font-semibold hover:bg-accent-blue/20 transition",children:"Operar na Hy
1perliquid →"})]}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Indispon\xedvel"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-blue",children:"\uD83D\uDCB5 Stablecoins"}),(0,a.jsx)(r.default,{href:"/terminal/stablecoins",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),W?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"h-6 bg-border/50 rounded animate-pulse"}),[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-6 bg-border/50 rounded animate-pulse"},e))]}):q.length>0?(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsxs)("p",{className:"text-xs text-gray-400 mb-2",children:["Total Supply: ",(0,a.jsxs)("span",{className:"font-semibold text-white",children:["$",o(z)]})]}),q.map((e,s)=>{var t,l,r,n;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.symbol}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsx)("p",{className:"font-mono",children:o(e.marketCap||e.market_cap)}),(0,a.jsxs)("p",{className:"text-[10px] ".concat(Math.abs(e.pegDeviation||e.price_deviation||0)>.5?"text-red-400":"text-gray-500"),children:[(null!==(l=null!==(t=e.pegDeviation)&&void 0!==t?t:e.price_deviation)&&void 0!==l?l:0)>=0?"+":"",(null!==(n=null!==(r=e.pegDeviation)&&void 0!==r?r:e.price_deviation)&&void 0!==n?n:0).toFixed(2),"% peg"]})]})]},s)})]}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Indispon\xedvel"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-gold",children:"\uD83D\uDCF0 Crypto News"}),(0,a.jsx)(r.default,{href:"/terminal/news",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),Q?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-10 bg-border/50 rounded animate-pulse"},e))}):K.length>0?(0,a.jsx)("div",{className:"space-y-2",children:K.map((e,s)=>(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block hover:bg-border/20 p-2 rounded transition",children:[(0,a.jsx)("p",{className:"text-xs font-semibold line-clamp-2 mb-1",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[10px] text-gray-500",children:[(0,a.jsx)("span",{children:e.source}),(0,a.jsx)("span",{children:"•"}),(0,a.jsx)("span",{children:x(e.published_at||(e.publishedAt?new Date(e.publishedAt).toISOString():""))})]})]},s))}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Nenhuma not\xedcia dispon\xedvel"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-purple",children:"\uD83E\uDD16 AI News"}),(0,a.jsx)(r.default,{href:"/terminal/news",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),Q?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-10 bg-border/50 rounded animate-pulse"},e))}):Y.length>0?(0,a.jsx)("div",{className:"space-y-2",children:Y.map((e,s)=>(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block hover:bg-border/20 p-2 rounded transition",children:[(0,a.jsx)("p",{className:"text-xs font-semibold line-clamp-2 mb-1",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[10px] text-gray-500",children:[(0,a.jsx)("span",{children:e.source}),(0,a.jsx)("span",{children:"•"}),(0,a.jsx)("span",{children:x(e.published_at||(e.publishedAt?new Date(e.publishedAt).toISOString():""))})]})]},s))}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Nenhuma not\xedcia dispon\xedvel"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-gold",children:"\uD83D\uDCC5 Macro Calendar"}),(0,a.jsx)(r.default,{href:"/terminal/macro",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),ea?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-10 bg-border/50 rounded animate-pulse"},e))}):es.length>0?(0,a.jsx)("div",{className:"space-y-2",children:es.map((e,s)=>(0,a.jsx)("div",{className:"text-xs",children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"font-semibold line-clamp-1",children:e.name||e.title}),(0,a.jsx)("p",{className:"text-gray-400 text-[10px]",children:e.country})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsx)("p",{className:"text-gray-400",children:new Date(e.date).toLocaleDateString("pt-BR",{day:"2-digit",month:"short"})}),(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded ".concat("high"===e.impact?"bg-red-500/20 text-red-400":"medium"===e.impact?"bg-yellow-500/20 text-yellow-400":"bg-gray-500/20 text-gray-400"),children:m(e.date)})]})]})},s))}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Nenhum evento pr\xf3ximo"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-purple",children:"⚡ Hyperliquid"}),(0,a.jsx)("a",{href:"https://app.hyperliquid.xyz/join/0XCVYH",target:"_blank",className:"text-xs text-accent-blue hover:underline",children:"Operar →"})]}),ei?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"}),[1,2,3].map(e=>(0,a.jsx)("div",{className:"h-6 bg-border/50 rounded animate-pulse"},e))]}):er?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-3",children:[(0,a.jsxs)("div",{className:"bg-border/20 p-2 rounded",children:[(0,a.jsx)("p",{className:"text-[10px] text-gray-400",children:"Spot 24h"}),(0,a.jsxs)("p",{className:"text-xs font-semibold font-mono",children:["$",o(er.totalVolumeSpot)]})]}),(0,a.jsxs)("div",{className:"bg-border/20 p-2 rounded",children:[(0,a.jsx)("p",{className:"text-[10px] text-gray-400",children:"Perps 24h"}),(0,a.jsxs)("p",{className:"text-xs font-semibold font-mono",children:["$",o(er.totalVolumePerps)]})]})]}),(0,a.jsx)("p",{className:"text-xs font-semibold text-gray-400 mb-1",children:"Top Movers (HIP-3)"}),er.topMovers.map((e,s)=>{var t,l,r;return(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsx)("span",{className:"font-semibold",children:e.symbol}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsx)("span",{className:"font-mono text-gray-300",children:d(e.price)}),(0,a.jsxs)("span",{className:"ml-2 ".concat((null!==(t=e.change24h)&&void 0!==t?t:0)>=0?"text-green-400":"text-red-400"),children:[(null!==(l=e.change24h)&&void 0!==l?l:0)>=0?"+":"",(null!==(r=e.change24h)&&void 0!==r?r:0).toFixed(2),"%"]})]})]},s)})]}):(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Indispon\xedvel"})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-accent-cyan",children:"\uD83C\uDF81 Airdrops"}),(0,a.jsx)(r.default,{href:"/terminal/airdrops",className:"text-xs text-accent-blue hover:underline",children:"Ver mais →"})]}),eh?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"h-6 bg-border/50 rounded animate-pulse"}),[1,2,3].map(e=>(0,a.jsx)("div",{className:"h-10 bg-border/50 rounded animate-pulse"},e))]}):(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("p",{className:"text-xs text-gray-400 mb-2",children:[(0,a.jsx)("span",{className:"font-semibold text-white",children:ex})," airdrops ativos"]}),ed.map((e,s)=>(0,a.jsxs)("div",{className:"text-xs bg-border/10 p-2 rounded",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"font-semibold",children:e.name}),(0,a.jsx)("p",{className:"text-gray-400 text-[10px]",children:e.chain})]}),(0,a.jsx)("div",{className:"text-right",children:(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded ".concat("high"===e.urgency?"bg-red-500/20 text-red-400":"medium"===e.urgency?"bg-yellow-500/20 text-yellow-400":"bg-green-500/20 text-green-400"),children:e.status})})]}),e.deadline&&(0,a.jsxs)("p",{className:"text-[10px] text-gray-500 mt-1",children:["Prazo: ",m(e.deadline)]})]},s))]})]})]}),(0,a.jsxs)("div",{className:"card-nasa p-3",children:[(0,a.jsx)("h3",{className:"text-xs font-semibold text-gray-400 mb-3",children:"Market Dominance"}),ef?(0,a.jsx)("div",{className:"h-8 bg-border/50 rounded animate-pulse"}):(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-gray-400 w-16",children:"BTC"}),(0,a.jsx)("div",{className:"flex-1 h-6 rounded-full overflow-hidden bg-border/50",children:(0,a.jsx)("div",{className:"h-full bg-gradient-to-r from-accent-gold to-yellow-600 flex items-center justify-end pr-2",style:{width:"".concat(ep.btc,"%")},children:(0,a.jsxs)("span",{className:"text-xs font-semibold text-white",children:[(null!==(e=ep.btc)&&void 0!==e?e:0).toFixed(1),"%"]})})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-gray-400 w-16",children:"ETH"}),(0,a.jsx)("div",{className:"flex-1 h-6 rounded-full overflow-hidden bg-border/50",children:(0,a.jsx)("div",{className:"h-full bg-gradient-to-r from-accent-blue to-blue-600 flex items-center justify-end pr-2",style:{width:"".concat(ep.eth,"%")},children:(0,a.jsxs)("span",{className:"text-xs font-semibold text-white",children:[(null!==(s=ep.eth)&&void 0!==s?s:0).toFixed(1),"%"]})})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-gray-400 w-16",children:"Others"}),(0,a.jsx)("div",{className:"flex-1 h-6 rounded-full overflow-hidden bg-border/50",children:(0,a.jsx)("div",{className:"h-full bg-gradient-to-r from-accent-cyan to-teal-600 flex items-center justify-end pr-2",style:{width:"".concat(ep.others,"%")}
1,children:(0,a.jsxs)("span",{className:"text-xs font-semibold text-white",children:[(null!==(t=ep.others)&&void 0!==t?t:0).toFixed(1),"%"]})})})]})]})]})]})}},580:function(e,s,t){"use strict";t.d(s,{Z:function(){return l}});var a=t(57437);function l(e){let{data:s,width:t=120,height:l=40,color:r="#10b981",className:n=""}=e;if(!s||0===s.length)return(0,a.jsx)("svg",{width:t,height:l,className:n,children:(0,a.jsx)("line",{x1:"0",y1:l/2,x2:t,y2:l/2,stroke:"#2a2a3a",strokeWidth:"1"})});let i=Math.min(...s),c=Math.max(...s)-i||1,d=s.map((e,a)=>{let r=a/(s.length-1)*t,n=l-(e-i)/c*l;return"".concat(r,",").concat(n)}).join(" ");return(0,a.jsx)("svg",{width:t,height:l,className:n,viewBox:"0 0 ".concat(t," ").concat(l),children:(0,a.jsx)("polyline",{fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",points:d})})}},1701:function(e,s,t){"use strict";t.d(s,{Z:function(){return r}});var a=t(57437),l=t(2265);function r(e){let{audioSrc:s="/audio/market-summary.mp3",label:t="Ouvir Resumo"}=e,[r,n]=(0,l.useState)(!1),[i,c]=(0,l.useState)(!1),[d,o]=(0,l.useState)(0),[x,m]=(0,l.useState)(0),h=(0,l.useRef)(null);(0,l.useEffect)(()=>()=>{h.current&&(h.current.pause(),h.current=null)},[]);let u=()=>{if(i&&h.current){h.current.play(),c(!1),n(!0);return}let e=new Audio(s);h.current=e,e.onplay=()=>{n(!0),c(!1)},e.ontimeupdate=()=>{e.duration&&(o(e.currentTime/e.duration*100),m(e.currentTime))},e.onended=()=>{n(!1),c(!1),o(0),m(0),h.current=null},e.onerror=()=>{n(!1),c(!1),o(0),h.current=null},e.play().catch(()=>n(!1))};return(0,a.jsxs)("div",{className:"space-y-3",children:[!r&&!i&&(0,a.jsxs)("button",{onClick:u,className:"px-5 py-2.5 rounded-lg bg-accent-blue/10 border border-accent-blue/20 text-accent-blue font-semibold hover:bg-accent-blue/20 transition-all duration-300 flex items-center gap-2 text-sm",children:[(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("polygon",{points:"5 3 19 12 5 21 5 3",fill:"currentColor",stroke:"none"})}),t]}),(r||i)&&(0,a.jsxs)("div",{className:"animate-fade-in",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,a.jsx)("div",{className:"flex-1 h-1.5 rounded-full bg-border/50 overflow-hidden",children:(0,a.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-accent-blue to-accent-cyan transition-all duration-300",style:{width:"".concat(d,"%")}})}),(0,a.jsx)("span",{className:"text-xs font-mono text-gray-500 w-10 text-right",children:"".concat(Math.floor(x/60),":").concat(Math.floor(x%60).toString().padStart(2,"0"))})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[r?(0,a.jsxs)("button",{onClick:()=>{h.current&&!h.current.paused&&(h.current.pause(),c(!0),n(!1))},className:"px-3 py-1.5 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-400 text-sm font-semibold hover:bg-amber-500/20 transition-all flex items-center gap-1.5",children:[(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,a.jsx)("rect",{x:"6",y:"4",width:"4",height:"16"}),(0,a.jsx)("rect",{x:"14",y:"4",width:"4",height:"16"})]}),"Pausar"]}):(0,a.jsxs)("button",{onClick:u,className:"px-3 py-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-sm font-semibold hover:bg-emerald-500/20 transition-all flex items-center gap-1.5",children:[(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M8 5v14l11-7z"})}),"Continuar"]}),(0,a.jsxs)("button",{onClick:()=>{h.current&&(h.current.pause(),h.current.currentTime=0),n(!1),c(!1),o(0),m(0),h.current=null},className:"px-3 py-1.5 rounded-lg bg-red-500/10 border border-red-500/20 text-red-400 text-sm font-semibold hover:bg-red-500/20 transition-all flex items-center gap-1.5",children:[(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("rect",{x:"6",y:"6",width:"12",height:"12"})}),"Parar"]}),(0,a.jsx)("div",{className:"flex items-center gap-1.5 ml-2",children:r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),(0,a.jsx)("span",{className:"text-xs text-gray-500 font-mono",children:"REPRODUZINDO"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-amber-500"}),(0,a.jsx)("span",{className:"text-xs text-gray-500 font-mono",children:"PAUSADO"})]})})]})]})]})}},27648:function(e,s,t){"use strict";t.d(s,{default:function(){return l.a}});var a=t(72972),l=t.n(a)}}
1,function(e){e.O(0,[972,971,117,744],function(){return e(e.s=31996)}),_N_E=e.O()}]);

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