(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{1501:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliseAd=void 0;let i=a(n(67294)),r=a(n(73054));t.SliseAd=e=>{var t,n,a,s,l,d;let u=i.default.useCallback(()=>{let t=window;(t.adsbyslise=t.adsbyslise||[]).push({slot:e.slotId}),t.adsbyslisesync&&t.adsbyslisesync()},[e.slotId,e.format]);i.default.useEffect(()=>{u()},[u]);let[h,m]=(0,r.default)({src:`${e.__overrideSliseHost||"https://v1.slise.xyz"}/scripts/embed.js`,checkForExisting:!0,async:!0});return i.default.createElement("ins",{className:"adsbyslise",style:e.style,"data-ad-slot":e.slotId,"data-ad-pub":e.pub,"data-ad-format":e.format},i.default.createElement("div",{style:{width:null===(t=e.style)||void 0===t?void 0:t.width,height:null===(n=e.style)||void 0===n?void 0:n.height,maxWidth:null===(a=e.style)||void 0===a?void 0:a.maxWidth,maxHeight:null===(s=e.style)||void 0===s?void 0:s.maxHeight,minWidth:null===(l=e.style)||void 0===l?void 0:l.minWidth,minHeight:null===(d=e.style)||void 0===d?void 0:d.minHeight}}))}},47738:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,i)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1501),t)},48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(48857)}])},64389:function(e,t,n){"use strict";n.d(t,{Z:function(){return getBlockTotalReward}});var a=n(70794),i=n(7263);function getBlockTotalReward(e){var t;let n=(null===(t=e.rewards)||void 0===t?void 0:t.map(e=>{let{reward:t}=e;return(0,a.Z)(t)}).reduce((e,t)=>e.plus(t),i.xE))||i.xE;return n.div(i.sJ)}},8865:function(e,t,n){"use strict";n.d(t,{Z:function(){return useGradualIncrement}});var a=n(67294);function useGradualIncrement(e){let[t,n]=a.useState(e),i=a.useRef(0),r=a.useRef(0),s=a.useRef(0),l=a.useCallback(()=>{0!==i.current&&(i.current--,n(e=>e+1),r.current=0)},[]),d=a.useCallback(e=>{!(e<1)&&(i.current+=e,r.current||(r.current=window.setTimeout(l,0)))},[l]);return a.useEffect(()=>{i.current>0&&!r.current&&(s.current?s.current>300/i.current&&(s.current=300/i.current):s.current=300/i.current,r.current=window.setTimeout(l,s.current))},[l,t]),a.useEffect(()=>()=>{window.clearTimeout(r.current)},[]),[t,d]}},29142:function(e,t,n){"use strict";n.d(t,{Z:function(){return useIsSticky}});var a=n(23493),i=n.n(a),r=n(67294);function useIsSticky(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[a,s]=r.useState(!1),l=r.useCallback(()=>{var n;Number(null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect().y)<t?s(!0):s(!1)},[e,t]);return r.useEffect(()=>{if(!n)return;let e=i()(l,300);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[n]),a}},41963:function(e,t,n){"use strict";n.d(t,{Z:function(){return useNewTxsSocket}});var a=n(11163),i=n(67294),r=n(8865),s=n(14335),l=n(9095);function useNewTxsSocket(){let e=(0,a.useRouter)(),[t,n]=(0,r.Z)(0),[d,u]=i.useState(""),{topic:h,event:m}=("/txs"!==e.pathname||"validated"!==e.query.tab&&void 0!==e.query.tab||e.query.block_number||e.query.page)&&"/"!==e.pathname?"/txs"!==e.pathname||"pending"!==e.query.tab||e.query.block_number||e.query.page?{}:{topic:"transactions:new_pending_transaction",event:"pending_transaction"}:{topic:"transactions:new_transaction",event:"transaction"},x=i.useCallback(e=>{"object"==typeof e&&null!==e&&"transaction"in e&&n(e.transaction),"object"==typeof e&&null!==e&&"pending_transaction"in e&&n(e.pending_transaction)},[n]),p=i.useCallback(()=>{u("Connection is lost. Please reload page.")},[]),f=i.useCallback(()=>{u("An error has occurred while fetching new transactions. Please reload page.")},[]),b=(0,s.Z)({topic:h,onSocketClose:p,onSocketError:f,isDisabled:!h});return((0,l.Z)({channel:b,event:m,handler:x}),h||m)?{num:t,socketAlert:d}:{}}},6937:function(e,t,n){"use strict";n.d(t,{Z:function(){return useRedirectForInvalidAuthToken}});var a=n(64487),i=n(30202),r=n(67294),s=n(98359),l=n(67894),d=n(33187);function useRedirectForInvalidAuthToken(){var e;let t=(0,i.NL)(),n=t.getQueryState([(0,s.Ni)("user_info")]),u=null==n?void 0:null===(e=n.error)||void 0===e?void 0:e.status,h=(0,d.Z)();r.useEffect(()=>{if(401===u){let e=l.U2(l.aL.API_TOKEN);e&&h&&(a.Tb(Error("Invalid API token"),{tags:{source:"invalid_api_token"}}),window.location.assign(h))}},[u,h])}},66793:function(e,t,n){"use strict";n.d(t,{Z:function(){return getNetworkValidatorTitle}});var a=n(60985);function getNetworkValidatorTitle(){return"validation"===a.Z.chain.verificationType?"validator":"miner"}},48857:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return e2},default:function(){return e3}});var a=n(85893),i=n(67294),r=n(83265),s=n(23100),l=n(204),d=n(14418),u=n(33838),h=n(84416),m=n(60985),x=n(12498),p=n(93344),f=n(88911),b=n(36217),g=n(20060),v=n(82572),_=n(96026),j=n(35202),y=n(19819),k=n(34629),w=n(87098),Z=n(5422),L=n(41338),S=n(99483),E=n(84340);let C={bottom:5,left:10,right:10,top:0};var B=i.memo(e=>{let{data:t}=e,n=i.useRef(null),r=(0,k.dQ)("colors","blue.500"),s=i.useMemo(()=>({x:{ticks:4},y:{ticks:3,nice:!0,noLabel:!0}}),[]),{rect:l,ref:d,axes:u,innerWidth:h,innerHeight:m,chartMargin:x}=(0,E.Z)({data:t,margin:C,axesConfig:s});return(0,a.jsx)("svg",{width:"100%",height:"100%",ref:d,cursor:"pointer",children:(0,a.jsxs)("g",{transform:"translate(".concat(x.left||0,",").concat(x.top||0,")"),opacity:l?1:0,children:[(0,a.jsx)(w.Z,{data:t[0].items,xScale:u.x.scale,yScale:u.y.scale}),(0,a.jsx)(Z.Z,{data:t[0].items,xScale:u.x.scale,yScale:u.y.scale,stroke:r,animation:"left",strokeWidth:3}),(0,a.jsx)(L.Z,{ref:n,width:h,height:m,children:(0,a.jsx)(S.Z,{anchorEl:n.current,width:h,height:m,xScale:u.x.scale,yScale:u.y.scale,data:t})})]})})}),T=i.memo(e=>{let{data:t,isError:n,isPending:i}=e,r=i?(0,a.jsx)(j.Z,{mt:"auto"}):n?(0,a.jsx)(y.Z,{}):0===t[0].items.length?(0,a.jsx)("span",{children:"no data"}):(0,a.jsx)(B,{data:t});return(0,a.jsx)(l.k,{h:{base:"150px",lg:"auto"},minH:"150px",alignItems:"flex-start",flexGrow:1,children:r})}),N=n(55036),O=i.memo(e=>{let{id:t,title:n,value:r,valueDiff:d,icon:u,isSelected:h,onClick:m,stats:b}=e,g=(0,N.Z)(),v=(0,x.ff)("white","gray.900"),j=(0,x.ff)("white","black"),y=g?j:v,k=i.useCallback(()=>{m(t)},[t,m]),w=g?null:b.isPlaceholderData?(0,a.jsx)(p.O,{h:3,w:"70px",my:1.5,display:{base:"none",lg:"block"}}):b.data?(0,a.jsx)(f.x,{variant:"secondary",fontWeight:600,children:r(b.data)}):(0,a.jsx)(f.x,{variant:"secondary",fontWeight:400,children:"no data"}),Z=(()=>{if(g||!d)return null;let e=d(b.data);if(null==e)return null;let t=e>=0?"green.500":"red.500";return(0,a.jsxs)(p.O,{isLoaded:!b.isPlaceholderData,ml:3,display:"flex",alignItems:"center",color:t,children:[(0,a.jsx)(_.Z,{name:"up",boxSize:5,mr:1,transform:e<0?"rotate(180deg)":"rotate(0)"}),(0,a.jsxs)(f.x,{color:t,fontWeight:600,children:[e,"%"]})]})})();return(0,a.jsxs)(l.k,{alignItems:"center",columnGap:3,px:4,py:2,as:"li",borderRadius:"md",cursor:"pointer",onClick:k,bgColor:h?y:"inherit",boxShadow:h?"lg":"none",zIndex:h?1:"initial",_hover:{activeBgColor:y,zIndex:1},children:[u,(0,a.jsxs)(s.xu,{children:[(0,a.jsx)(f.x,{fontFamily:"heading",fontWeight:500,children:n}),(0,a.jsxs)(l.k,{alignItems:"center",children:[w,Z]})]})]})});let sortByDateDesc=(e,t)=>e.date.getTime()-t.date.getTime();var z=n(24727);let nonNullTailReducer=(e,t)=>(null===t.value&&0===e.length||e.unshift(t),e),mapNullToZero=e=>({...e,value:Number(e.value)}),D={id:"daily_txs",title:"Daily transactions",value:e=>null===e.transactions_today?"N/A":Number(e.transactions_today).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}),icon:(0,a.jsx)(_.Z,{name:"transactions",boxSize:6,bgColor:"#56ACD1",borderRadius:"base",color:"white"}),hint:"Number of transactions yesterday (0:00 - 23:59 UTC). The chart displays daily transactions for the past 30 days.",api:{resourceName:"stats_charts_txs",dataFn:e=>[{items:e.chart_data.map(e=>({date:new Date(e.date),value:e.tx_count})).sort(sortByDateDesc).reduceRight(nonNullTailReducer,[]).map(mapNullToZero),name:"Tx/day",valueFormatter:e=>e.toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"})}]}},I={name:m.Z.chain.currency.name||"",icon_url:"",symbol:"",address:"",type:"ERC-20"},F={id:"coin_price",title:"".concat(m.Z.chain.currency.symbol," price"),value:e=>null===e.coin_price?"$N/A":"$"+Number(e.coin_price).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6}),valueDiff:e=>(null==e?void 0:e.coin_price)!==null?null==e?void 0:e.coin_price_change_percentage:null,icon:(0,a.jsx)(z.JO,{token:I,boxSize:6,marginRight:0}),hint:"".concat(m.Z.chain.currency.symbol," token daily price in USD."),api:{resourceName:"stats_charts_market",dataFn:e=>[{items:e.chart_data.map(e=>({date:new Date(e.date),value:e.closing_price})).sort(sortByDateDesc).reduceRight(nonNullTailReducer,[]).map(mapNullToZero),name:"".concat(m.Z.chain.currency.symbol," price"),valueFormatter:e=>"$"+e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6})}]}},R={id:"secondary_coin_price",title:"".concat(m.Z.chain.secondaryCoin.symbol," price"),value:e=>e.secondary_coin_price&&null!==e.secondary_coin_price?"$"+Number(e.secondary_coin_price).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6}):"$N/A",valueDiff:()=>null,icon:(0,a.jsx)(z.JO,{token:I,boxSize:6,marginRight:0}),hint:"".concat(m.Z.chain.secondaryCoin.symbol," token daily price in USD."),api:{resourceName:"stats_charts_secondary_coin_price",dataFn:e=>[{items:e.chart_data.map(e=>({date:new Date(e.date),value:e.closing_price})).sort(sortByDateDesc).reduceRight(nonNullTailReducer,[]).map(mapNullToZero),name:"".concat(m.Z.chain.secondaryCoin.symbol," price"),valueFormatter:e=>"$"+e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6})}]}},P={id:"market_cap",title:"Market cap",value:e=>null===e.market_cap?"$N/A":"$"+Number(e.market_cap).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}),icon:(0,a.jsx)(_.Z,{name:"globe",boxSize:6,bgColor:"#6A5DCC",borderRadius:"base",color:"white"}),hint:"The total market value of a cryptocurrency's circulating supply. It is analogous to the free-float capitalization in the stock market. Market Cap = Current Price x Circulating Supply.",api:{resourceName:"stats_charts_market",dataFn:e=>[{items:e.chart_data.map(t=>({date:new Date(t.date),value:void 0!==t.market_cap?t.market_cap:null===t.closing_price?null:Number(t.closing_price)*Number(e.available_supply)})).sort(sortByDateDesc).reduceRight(nonNullTailReducer,[]).map(mapNullToZero),name:"Market cap",valueFormatter:e=>"$"+e.toLocaleString(void 0,{maximumFractionDigits:2})}]}},A={id:"tvl",title:"Total value locked",value:e=>null===e.tvl?"$N/A":"$"+Number(e.tvl).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}),icon:(0,a.jsx)(_.Z,{name:"lock",boxSize:6,bgColor:"#517FDB",borderRadius:"base",color:"white"}),hint:"Total value of digital assets locked or staked in a chain",api:{resourceName:"stats_charts_market",dataFn:e=>[{items:e.chart_data.map(e=>({date:new Date(e.date),value:void 0!==e.tvl?e.tvl:0})).sort(sortByDateDesc).reduceRight(nonNullTailReducer,[]).map(mapNullToZero),name:"TVL",valueFormatter:e=>"$"+e.toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"})}]}},W=[D,F,R,P,A].filter(e=>{let{id:t}=e;return m.Z.UI.homepage.charts.includes(t)}).sort((e,t)=>m.Z.UI.homepage.charts.indexOf(e.id)>m.Z.UI.homepage.charts.indexOf(t.id)?1:m.Z.UI.homepage.charts.indexOf(e.id)<m.Z.UI.homepage.charts.indexOf(t.id)?-1:0);var indicators_ChainIndicators=()=>{var e;let[t,n]=i.useState(null===(e=W[0])||void 0===e?void 0:e.id),r=W.find(e=>{let{id:n}=e;return n===t}),d=function(e){let t=(0,b.Z)((null==e?void 0:e.api.resourceName)||"stats_charts_txs",{queryOptions:{enabled:!!e}});return i.useMemo(()=>({...t,data:t.data&&e?e.api.dataFn(t.data):t.data}),[e,t])}(r),u=(0,b.Z)("stats",{queryOptions:{refetchOnMount:!1,placeholderData:g.OJ}}),h=(0,x.ff)("white","gray.900"),m=(0,x.ff)("white","black"),j=(0,x.ff)("gray.50","black"),y=(0,x.ff)("gray.50","gray.900");if(0===W.length)return null;let k=u.isPlaceholderData?(0,a.jsx)(p.O,{h:"48px",w:"215px",mt:3,mb:4}):u.data?(0,a.jsx)(f.x,{fontWeight:600,fontFamily:"heading",fontSize:"48px",lineHeight:"48px",mt:3,children:null==r?void 0:r.value(u.data)}):(0,a.jsx)(f.x,{mt:3,mb:4,children:"There is no data"}),w=(()=>{if(!u.data||!(null==r?void 0:r.valueDiff))return null;let e=r.valueDiff(u.data);if(null==e)return null;let t=e>=0?"green.500":"red.500";return(0,a.jsxs)(p.O,{isLoaded:!u.isPlaceholderData,display:"flex",alignItems:"center",color:t,mt:2,children:[(0,a.jsx)(_.Z,{name:"up",boxSize:5,mr:1,transform:e<0?"rotate(180deg)":"rotate(0)"}),(0,a.jsxs)(f.x,{color:t,fontWeight:600,children:[e,"%"]})]})})();return(0,a.jsxs)(l.k,{p:{base:0,lg:8},borderRadius:{base:"none",lg:"lg"},boxShadow:{base:"none",lg:"xl"},bgColor:{base:m,lg:h},columnGap:6,rowGap:0,flexDir:{base:"column",lg:"row"},w:"100%",alignItems:"stretch",mt:8,children:[(0,a.jsxs)(l.k,{flexGrow:1,flexDir:"column",order:{base:2,lg:1},p:{base:6,lg:0},children:[(0,a.jsxs)(l.k,{alignItems:"center",children:[(0,a.jsx)(f.x,{fontWeight:500,fontFamily:"heading",fontSize:"lg",children:null==r?void 0:r.title}),(null==r?void 0:r.hint)&&(0,a.jsx)(v.Z,{label:r.hint,ml:1})]}),(0,a.jsxs)(s.xu,{mb:4,children:[k,w]}),(0,a.jsx)(T,{...d})]}),W.length>1&&(0,a.jsx)(l.k,{flexShrink:0,flexDir:"column",as:"ul",p:3,borderRadius:"lg",bgColor:{base:y,lg:j},rowGap:3,order:{base:1,lg:2},children:W.map(e=>(0,a.jsx)(O,{...e,isSelected:t===e.id,onClick:n,stats:u},e.id))})]})},H=n(90634),U=n(30202),G=n(21190),q=n(99640),$=n(14853),X=n(14335),V=n(9095),J=n(71956),K=n(76215),Y=n(31708),Q=n(24262),ee=n(64389),et=n(66793),en=n(46160),ea=n(26287),ei=n(88841),home_LatestBlocksItem=e=>{var t,n;let{block:i,isLoading:r}=e,d=(0,ee.Z)(i);return(0,a.jsxs)(s.xu,{as:Q.E.div,initial:{opacity:0},animate:{opacity:1},exit:{display:"none"},transitionDuration:"normal",transitionTimingFunction:"linear",borderRadius:"md",border:"1px solid",borderColor:"divider",p:6,children:[(0,a.jsxs)(l.k,{alignItems:"center",overflow:"hidden",w:"100%",mb:3,children:[(0,a.jsx)(ei.ZP,{isLoading:r,number:i.height,tailLength:2,fontSize:"xl",lineHeight:7,fontWeight:500,mr:"auto"}),(0,a.jsx)(en.Z,{ts:i.timestamp,isEnabled:!r,isLoading:r,fontSize:"sm",flexShrink:0,ml:2})]}),(0,a.jsxs)(Y.r,{gridGap:2,templateColumns:"auto minmax(0, 1fr)",fontSize:"sm",children:[(0,a.jsx)(p.O,{isLoaded:!r,children:"Txn"}),(0,a.jsx)(p.O,{isLoaded:!r,color:"text_secondary",children:(0,a.jsx)("span",{children:i.tx_count})}),!m.Z.features.rollup.isEnabled&&!(null===(t=m.Z.UI.views.block.hiddenFields)||void 0===t?void 0:t.total_reward)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.O,{isLoaded:!r,children:"Reward"}),(0,a.jsx)(p.O,{isLoaded:!r,color:"text_secondary",children:(0,a.jsx)("span",{children:d.dp(10).toFixed()})})]}),!m.Z.features.rollup.isEnabled&&!(null===(n=m.Z.UI.views.block.hiddenFields)||void 0===n?void 0:n.miner)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.O,{isLoaded:!r,textTransform:"capitalize",children:(0,et.Z)()}),(0,a.jsx)(ea.ZP,{address:i.miner,isLoading:r,noIcon:!0,noCopy:!0,truncation:"constant"})]})]})]})},home_LatestBlocks=()=>{var e,t,n;let r,u;let h=(0,N.Z)();r=m.Z.features.rollup.isEnabled||(null===(e=m.Z.UI.views.block.hiddenFields)||void 0===e?void 0:e.total_reward)?h?4:5:h?2:3;let{data:x,isPlaceholderData:v,isError:_}=(0,b.Z)("homepage_blocks",{queryOptions:{placeholderData:Array(r).fill(J.x)}}),j=(0,U.NL)(),y=(0,b.Z)("stats",{queryOptions:{refetchOnMount:!1,placeholderData:g.OJ}}),k=i.useCallback(e=>{j.setQueryData((0,b.$)("homepage_blocks"),t=>{let n=t?[...t]:[];return n.some(t=>t.height===e.block.height)?n:[e.block,...n].sort((e,t)=>t.height-e.height).slice(0,r)})},[j,r]),w=(0,X.Z)({topic:"blocks:new_block",isDisabled:v||_});if((0,V.Z)({channel:w,event:"new_block",handler:k}),_&&(u=(0,a.jsx)(f.x,{children:"No data. Please reload page."})),x){let e=x.slice(0,r);u=(0,a.jsxs)(a.Fragment,{children:[(null===(t=y.data)||void 0===t?void 0:t.network_utilization_percentage)!==void 0&&(0,a.jsxs)(p.O,{isLoaded:!y.isPlaceholderData,mb:{base:6,lg:3},display:"inline-block",children:[(0,a.jsxs)(f.x,{as:"span",fontSize:"sm",children:["Network utilization:",$.vk]}),(0,a.jsxs)(f.x,{as:"span",fontSize:"sm",color:"blue.400",fontWeight:700,children:[null===(n=y.data)||void 0===n?void 0:n.network_utilization_percentage.toFixed(2),"%"]})]}),(0,a.jsx)(H.g,{spacing:3,mb:4,overflow:"hidden",alignItems:"stretch",children:(0,a.jsx)(G.M,{initial:!1,children:e.map((e,t)=>(0,a.jsx)(home_LatestBlocksItem,{block:e,isLoading:v},e.height+(v?String(t):"")))})}),(0,a.jsx)(l.k,{justifyContent:"center",children:(0,a.jsx)(K.Z,{fontSize:"sm",href:(0,q.B)({pathname:"/blocks"}),children:"View all blocks"})})]})}return(0,a.jsxs)(s.xu,{width:{base:"100%",lg:"280px"},flexShrink:0,children:[(0,a.jsx)(d.X,{as:"h4",size:"sm",mb:4,children:"Latest blocks"}),u]})},er=n(86985),es=n(29530),eo=n(27178),home_LatestZkevmL2BatchItem=e=>{let{batch:t,isLoading:n}=e;return(0,a.jsxs)(s.xu,{as:Q.E.div,initial:{opacity:0},animate:{opacity:1},exit:{display:"none"},transitionDuration:"normal",transitionTimingFunction:"linear",borderRadius:"md",border:"1px solid",borderColor:"divider",p:6,children:[(0,a.jsxs)(l.k,{alignItems:"center",overflow:"hidden",w:"100%",mb:3,children:[(0,a.jsx)(es.Z,{isLoading:n,number:t.number,tailLength:2,fontSize:"xl",lineHeight:7,fontWeight:500,mr:"auto"}),(0,a.jsx)(en.Z,{ts:t.timestamp,isEnabled:!n,isLoading:n,fontSize:"sm",flexShrink:0,ml:2})]}),(0,a.jsxs)(l.k,{alignItems:"center",justifyContent:"space-between",w:"100%",flexWrap:"wrap",children:[(0,a.jsxs)(l.k,{alignItems:"center",children:[(0,a.jsx)(p.O,{isLoaded:!n,mr:2,children:"Txn"}),(0,a.jsx)(K.Z,{href:(0,q.B)({pathname:"/batches/[number]",query:{number:t.number.toString(),tab:"txs"}}),isLoading:n,children:(0,a.jsx)(p.O,{isLoaded:!n,children:t.tx_count})})]}),(0,a.jsx)(eo.Z,{status:t.status,isLoading:n})]})]})},home_LatestZkEvmL2Batches=()=>{let e;let t=(0,N.Z)(),n=t?2:5,r=(0,U.NL)(),{data:u,isPlaceholderData:h,isError:m}=(0,b.Z)("homepage_zkevm_l2_batches",{queryOptions:{placeholderData:{items:Array(n).fill(er.$)}}}),x=i.useCallback(e=>{r.setQueryData((0,b.$)("homepage_zkevm_l2_batches"),t=>{let a=(null==t?void 0:t.items)?[...t.items]:[];return a.some(t=>t.number===e.batch.number)?{items:a}:{items:[e.batch,...a].sort((e,t)=>t.number-e.number).slice(0,n)}})},[r,n]),p=(0,X.Z)({topic:"zkevm_batches:new_zkevm_confirmed_batch",isDisabled:h||m});if((0,V.Z)({channel:p,event:"new_zkevm_confirmed_batch",handler:x}),m&&(e=(0,a.jsx)(f.x,{children:"No data. Please reload page."})),u){let t=u.items.slice(0,n);e=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(H.g,{spacing:3,mb:4,overflow:"hidden",alignItems:"stretch",children:(0,a.jsx)(G.M,{initial:!1,children:t.map((e,t)=>(0,a.jsx)(home_LatestZkevmL2BatchItem,{batch:e,isLoading:h},e.number+(h?String(t):"")))})}),(0,a.jsx)(l.k,{justifyContent:"center",children:(0,a.jsx)(K.Z,{fontSize:"sm",href:(0,q.B)({pathname:"/batches"}),children:"View all batches"})})]})}return(0,a.jsxs)(s.xu,{width:{base:"100%",lg:"280px"},flexShrink:0,children:[(0,a.jsx)(d.X,{as:"h4",size:"sm",mb:4,children:"Latest batches"}),e]})},el=n(70794),ec=n(7263),ed=n(51207),eu=n(34566),eh=n(75350),em=n(55645);let ex="1240px";var ep=(0,eh.m)(e=>{let{icon:t,title:n,value:i,className:r,tooltip:s,url:d,isLoading:u}=e,h={["@media screen and (min-width: ".concat(em.Z.lg,") and (max-width: ").concat(ex,")")]:{flexDirection:"column"}},m={["@media screen and (min-width: ".concat(em.Z.lg,") and (max-width: ").concat(ex,")")]:{alignItems:"center"}},f=(0,x.ff)("blue.50","whiteAlpha.100"),b=(0,x.ff)("blackAlpha.50","whiteAlpha.50");return(0,a.jsxs)(l.k,{backgroundColor:u?b:f,padding:3,borderRadius:"md",flexDirection:"row",sx:h,alignItems:"center",columnGap:3,rowGap:2,className:r,color:(0,x.ff)("black","white"),position:"relative",...d&&!u?{as:"a",href:d}:{},children:[(0,a.jsx)(_.Z,{name:t,boxSize:7,isLoading:u,borderRadius:"base"}),(0,a.jsxs)(l.k,{flexDirection:"column",alignItems:"start",sx:m,children:[(0,a.jsx)(p.O,{isLoaded:!u,color:"text_secondary",fontSize:"xs",lineHeight:"16px",borderRadius:"base",children:(0,a.jsx)("span",{children:n})}),(0,a.jsx)(p.O,{isLoaded:!u,fontWeight:500,fontSize:"md",color:(0,x.ff)("black","white"),borderRadius:"base",children:"string"==typeof i?(0,a.jsx)("span",{children:i}):i})]}),s]})});let ef=m.Z.features.gasTracker.isEnabled,eb=m.Z.UI.homepage.showAvgBlockTime,eg=m.Z.features.rollup;var home_Stats=()=>{let e;let{data:t,isPlaceholderData:n,isError:i,dataUpdatedAt:r}=(0,b.Z)("stats",{queryOptions:{refetchOnMount:!1,placeholderData:g.OJ}}),s=(0,b.Z)("homepage_zkevm_latest_batch",{queryOptions:{placeholderData:12345,enabled:eg.isEnabled&&"zkEvm"===eg.type}}),l=(0,b.Z)("homepage_zksync_latest_batch",{queryOptions:{placeholderData:12345,enabled:eg.isEnabled&&"zkSync"===eg.type}});if(i||s.isError||l.isError)return null;let d=n||eg.isEnabled&&"zkEvm"===eg.type&&s.isPlaceholderData||eg.isEnabled&&"zkSync"===eg.type&&l.isPlaceholderData,u={gridColumn:{base:"span 2",lg:"unset"}},h=5;if(!ef&&h--,!eb&&h--,t){!t.gas_prices&&h--,t.rootstock_locked_btc&&h++,eg.isEnabled&&t.last_output_root_size&&h++;let n=!!(h%2),i=ef&&t.gas_prices?(0,a.jsx)(ed.Z,{data:t,dataUpdatedAt:r,children:(0,a.jsx)(_.Z,{isLoading:d,name:"info",boxSize:5,display:"block",cursor:"pointer",_hover:{color:"link_hovered"},position:"absolute",top:{base:"calc(50% - 12px)",lg:"10px",xl:"calc(50% - 12px)"},right:"10px"})}):null;e=(0,a.jsxs)(a.Fragment,{children:[eg.isEnabled&&"zkEvm"===eg.type&&(0,a.jsx)(ep,{icon:"txn_batches",title:"Latest batch",value:(s.data||0).toLocaleString(),url:(0,q.B)({pathname:"/batches"}),isLoading:d}),eg.isEnabled&&"zkSync"===eg.type&&(0,a.jsx)(ep,{icon:"txn_batches",title:"Latest batch",value:(l.data||0).toLocaleString(),url:(0,q.B)({pathname:"/batches"}),isLoading:d}),!(eg.isEnabled&&("zkEvm"===eg.type||"zkSync"===eg.type))&&(0,a.jsx)(ep,{icon:"block",title:"Total blocks",value:Number(t.total_blocks).toLocaleString(),url:(0,q.B)({pathname:"/blocks"}),isLoading:d}),eb&&(0,a.jsx)(ep,{icon:"clock-light",title:"Average block time",value:"".concat((t.average_block_time/1e3).toFixed(1),"s"),isLoading:d}),(0,a.jsx)(ep,{icon:"transactions",title:"Total transactions",value:Number(t.total_transactions).toLocaleString(),url:(0,q.B)({pathname:"/txs"}),isLoading:d}),eg.isEnabled&&t.last_output_root_size&&(0,a.jsx)(ep,{icon:"txn_batches",title:"Latest L1 state batch",value:t.last_output_root_size,url:(0,q.B)({pathname:"/batches"}),isLoading:d}),(0,a.jsx)(ep,{icon:"wallet",title:"Wallet addresses",value:Number(t.total_addresses).toLocaleString(),_last:n?u:void 0,isLoading:d}),ef&&t.gas_prices&&(0,a.jsx)(ep,{icon:"gas",title:"Gas tracker",value:(0,a.jsx)(eu.Z,{data:t.gas_prices.average}),_last:n?u:void 0,tooltip:i,isLoading:d}),t.rootstock_locked_btc&&(0,a.jsx)(ep,{icon:"coins/bitcoin",title:"BTC Locked in 2WP",value:"".concat((0,el.Z)(t.rootstock_locked_btc).div(ec.sJ).dp(0).toFormat()," RBTC"),_last:n?u:void 0,isLoading:d})]})}return(0,a.jsx)(Y.r,{gridTemplateColumns:{lg:"repeat(".concat(h,", 1fr)"),base:"1fr 1fr"},gridTemplateRows:{lg:"none",base:void 0},gridGap:"10px",marginTop:"24px",children:e})},ev=n(70744),e_=n(8865),ej=n(17050),ey=n(57742),ek=n(4914),ew=n(13339),eZ=n(92040),eL=n(43052);let eS=m.Z.features.rollup;var eE=i.memo(e=>{let{item:t,isLoading:n}=e,i=(0,ek.Z)(t.l1_block_timestamp).fromNow(),r=(0,N.Z)();if(!eS.isEnabled||"optimistic"!==eS.type)return null;let d=(0,a.jsx)(ew.Z,{number:t.l1_block_number,isLoading:n,fontSize:"sm",lineHeight:5,fontWeight:700}),u=(0,a.jsx)(eL.Z,{isLoading:n,hash:t.l1_tx_hash,fontSize:"sm",lineHeight:5,truncation:r?"constant_long":"dynamic"}),h=(0,a.jsx)(eZ.ZP,{isLoading:n,hash:t.l2_tx_hash,fontSize:"sm",lineHeight:5,truncation:r?"constant_long":"dynamic"}),m=r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.k,{justifyContent:"space-between",alignItems:"center",mb:1,children:[d,(0,a.jsx)(p.O,{isLoaded:!n,color:"text_secondary",children:(0,a.jsx)("span",{children:i})})]}),(0,a.jsxs)(Y.r,{gridTemplateColumns:"56px auto",children:[(0,a.jsx)(p.O,{isLoaded:!n,my:"5px",w:"fit-content",children:"L1 txn"}),u,(0,a.jsx)(p.O,{isLoaded:!n,my:"3px",w:"fit-content",children:"L2 txn"}),h]})]}):(0,a.jsxs)(Y.r,{width:"100%",columnGap:4,rowGap:2,templateColumns:"max-content max-content auto",w:"100%",children:[d,(0,a.jsx)(p.O,{isLoaded:!n,w:"fit-content",h:"fit-content",my:"5px",children:"L1 txn"}),u,(0,a.jsx)(p.O,{isLoaded:!n,color:"text_secondary",w:"fit-content",h:"fit-content",my:"2px",children:(0,a.jsx)("span",{children:i})}),(0,a.jsx)(p.O,{isLoaded:!n,w:"fit-content",h:"fit-content",my:"2px",children:"L2 txn"}),h]});return(0,a.jsx)(s.xu,{width:"100%",borderTop:"1px solid",borderColor:"divider",py:4,px:{base:0,lg:4},_last:{borderBottom:"1px solid",borderColor:"divider"},fontSize:"sm",lineHeight:5,children:m})}),home_LatestDeposits=()=>{let e=(0,N.Z)(),t=e?2:6,{data:n,isPlaceholderData:r,isError:d}=(0,b.Z)("homepage_deposits",{queryOptions:{placeholderData:Array(t).fill(ej.XF)}}),[u,h]=(0,e_.Z)(0),[m,x]=i.useState(""),p=i.useCallback(()=>{x("Connection is lost. Please reload page.")},[]),g=i.useCallback(()=>{x("An error has occurred while fetching new transactions. Please reload page.")},[]),v=i.useCallback(e=>{h(e.deposits)},[h]),_=(0,X.Z)({topic:"optimism_deposits:new_deposits",onSocketClose:p,onSocketError:g,isDisabled:!1});if((0,V.Z)({channel:_,event:"deposits",handler:v}),d)return(0,a.jsx)(f.x,{mt:4,children:"No data. Please reload page."});if(n){let e=(0,q.B)({pathname:"/deposits"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ey.ZP,{borderBottomRadius:0,url:e,num:u,alert:m,type:"deposit",isLoading:r}),(0,a.jsx)(s.xu,{mb:{base:3,lg:4},children:n.slice(0,t).map((e,t)=>(0,a.jsx)(eE,{item:e,isLoading:r},e.l2_tx_hash+(r?t:"")))}),(0,a.jsx)(l.k,{justifyContent:"center",children:(0,a.jsx)(K.Z,{fontSize:"sm",href:e,children:"View all deposits"})})]})}return null},eC=n(89464),eB=n(41963),eT=n(64150),eN=n(24804),eO=n(88916),ez=n(46491),eD=n(38390),eI=n(8268),eF=n(38305),eR=n(46580),eP=n(68657),eA=n(4176),eW=n(12786),eM=i.memo(e=>{var t,n,i,r;let{tx:d,isLoading:u}=e,h=d.to?d.to:d.created_contract,x=(0,ez.Z)(d.timestamp||"0",!0),b=(null===(t=m.Z.UI.views.tx.hiddenFields)||void 0===t?void 0:t.value)&&(null===(n=m.Z.UI.views.tx.hiddenFields)||void 0===n?void 0:n.tx_fee)?2:3;return(0,a.jsxs)(Y.r,{gridTemplateColumns:{lg:2===b?"3fr minmax(auto, 180px)":"3fr minmax(auto, 180px) 150px",xl:2===b?"3fr minmax(auto, 250px)":"3fr minmax(auto, 275px) 150px"},gridGap:8,width:"100%",minW:"700px",borderTop:"1px solid",borderColor:"divider",p:4,_last:{borderBottom:"1px solid",borderColor:"divider"},display:{base:"none",lg:"grid"},children:[(0,a.jsxs)(l.k,{overflow:"hidden",w:"100%",children:[(0,a.jsx)(eA.Z,{tx:d,isLoading:u,my:"3px"}),(0,a.jsxs)(s.xu,{ml:3,w:"calc(100% - 40px)",children:[(0,a.jsxs)(eN.U,{flexWrap:"wrap",my:"3px",children:[(0,a.jsx)(eW.Z,{types:d.tx_types,isLoading:u}),(0,a.jsx)(eF.Z,{status:d.status,errorText:"error"===d.status?d.result:void 0,isLoading:u}),(0,a.jsx)(eP.Z,{tx:d,isLoading:u})]}),(0,a.jsxs)(l.k,{alignItems:"center",mt:"7px",mb:"3px",children:[(0,a.jsx)(eZ.ZP,{isLoading:u,hash:d.hash,fontWeight:"700"}),d.timestamp&&(0,a.jsx)(p.O,{isLoaded:!u,color:"text_secondary",fontWeight:"400",fontSize:"sm",flexShrink:0,ml:2,children:(0,a.jsx)("span",{children:x})})]})]})]}),(0,a.jsx)(eI.Z,{from:d.from,to:h,isLoading:u,mode:"compact"}),(0,a.jsxs)(l.k,{flexDir:"column",children:[!(null===(i=m.Z.UI.views.tx.hiddenFields)||void 0===i?void 0:i.value)&&(0,a.jsxs)(p.O,{isLoaded:!u,my:"3px",children:[(0,a.jsxs)(f.x,{as:"span",whiteSpace:"pre",children:[eD.Y.ether," "]}),(0,a.jsx)(f.x,{as:"span",variant:"secondary",children:(0,eO.Z)(d.value).dp(5).toFormat()})]}),!(null===(r=m.Z.UI.views.tx.hiddenFields)||void 0===r?void 0:r.tx_fee)&&(0,a.jsxs)(p.O,{isLoaded:!u,display:"flex",whiteSpace:"pre",my:"3px",children:[(0,a.jsx)(f.x,{as:"span",children:"Fee "}),d.stability_fee?(0,a.jsx)(eR.Z,{data:d.stability_fee,accuracy:5,color:"text_secondary",hideUsd:!0}):(0,a.jsx)(f.x,{as:"span",variant:"secondary",children:d.fee.value?(0,eO.Z)(d.fee.value).dp(5).toFormat():"-"})]})]})]})}),eH=i.memo(e=>{var t,n,i;let{tx:r,isLoading:d}=e,u=r.to?r.to:r.created_contract,h=(0,ez.Z)(r.timestamp||"0",!0);return(0,a.jsxs)(s.xu,{width:"100%",borderTop:"1px solid",borderColor:"divider",py:4,_last:{borderBottom:"1px solid",borderColor:"divider"},display:{base:"block",lg:"none"},children:[(0,a.jsxs)(l.k,{justifyContent:"space-between",children:[(0,a.jsxs)(eN.U,{flexWrap:"wrap",children:[(0,a.jsx)(eW.Z,{types:r.tx_types,isLoading:d}),(0,a.jsx)(eF.Z,{status:r.status,errorText:"error"===r.status?r.result:void 0,isLoading:d}),(0,a.jsx)(eP.Z,{tx:r,isLoading:d})]}),(0,a.jsx)(eA.Z,{tx:r,isMobile:!0,isLoading:d})]}),(0,a.jsxs)(l.k,{mt:2,alignItems:"center",width:"100%",justifyContent:"space-between",mb:6,children:[(0,a.jsx)(eZ.ZP,{isLoading:d,hash:r.hash,fontWeight:"700",truncation:"constant_long"}),r.timestamp&&(0,a.jsx)(p.O,{isLoaded:!d,color:"text_secondary",fontWeight:"400",fontSize:"sm",ml:3,children:(0,a.jsx)("span",{children:h})})]}),(0,a.jsx)(eI.Z,{from:r.from,to:u,isLoading:d,fontSize:"sm",fontWeight:"500",mb:3}),!(null===(t=m.Z.UI.views.tx.hiddenFields)||void 0===t?void 0:t.value)&&(0,a.jsxs)(p.O,{isLoaded:!d,mb:2,fontSize:"sm",w:"fit-content",children:[(0,a.jsxs)(f.x,{as:"span",children:["Value ",eD.Y.ether," "]}),(0,a.jsx)(f.x,{as:"span",variant:"secondary",children:(0,eO.Z)(r.value).dp(5).toFormat()})]}),!(null===(n=m.Z.UI.views.tx.hiddenFields)||void 0===n?void 0:n.tx_fee)&&(0,a.jsxs)(p.O,{isLoaded:!d,fontSize:"sm",w:"fit-content",display:"flex",whiteSpace:"pre",children:[(0,a.jsxs)(f.x,{as:"span",children:["Fee ",(null===(i=m.Z.UI.views.tx.hiddenFields)||void 0===i?void 0:i.fee_currency)?"":"".concat(eD.Y.ether," ")]}),r.stability_fee?(0,a.jsx)(eR.Z,{data:r.stability_fee,accuracy:5,color:"text_secondary",hideUsd:!0}):(0,a.jsx)(f.x,{as:"span",variant:"secondary",children:r.fee.value?(0,eO.Z)(r.fee.value).dp(5).toFormat():"-"})]})]})}),LatestTxs=()=>{let e=(0,N.Z)(),t=e?2:6,{data:n,isPlaceholderData:i,isError:r}=(0,b.Z)("homepage_txs",{queryOptions:{placeholderData:Array(t).fill(eT.TX)}}),{num:d,socketAlert:u}=(0,eB.Z)();if(r)return(0,a.jsx)(f.x,{mt:4,children:"No data. Please reload page."});if(n){let e=(0,q.B)({pathname:"/txs"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ey.ZP,{borderBottomRadius:0,url:e,num:d,alert:u,isLoading:i}),(0,a.jsx)(s.xu,{mb:3,display:{base:"block",lg:"none"},children:n.slice(0,t).map((e,t)=>(0,a.jsx)(eH,{tx:e,isLoading:i},e.hash+(i?t:"")))}),(0,a.jsx)(eC.Gz,{children:(0,a.jsx)(s.xu,{mb:4,display:{base:"none",lg:"block"},children:n.slice(0,t).map((e,t)=>(0,a.jsx)(eM,{tx:e,isLoading:i},e.hash+(i?t:"")))})}),(0,a.jsx)(l.k,{justifyContent:"center",children:(0,a.jsx)(K.Z,{fontSize:"sm",href:e,children:"View all transactions"})})]})}return null},eU=n(6937),home_LatestWatchlistTxs=()=>{(0,eU.Z)();let e=(0,N.Z)(),t=e?2:6,{data:n,isPlaceholderData:i,isError:r}=(0,b.Z)("homepage_txs_watchlist",{queryOptions:{placeholderData:Array(t).fill(eT.TX)}});if(r)return(0,a.jsx)(f.x,{mt:4,children:"No data. Please reload page."});if(!(null==n?void 0:n.length))return(0,a.jsx)(f.x,{mt:4,children:"There are no transactions."});if(n){let e=(0,q.B)({pathname:"/txs",query:{tab:"watchlist"}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.xu,{mb:3,display:{base:"block",lg:"none"},children:n.slice(0,t).map((e,t)=>(0,a.jsx)(eH,{tx:e,isLoading:i},e.hash+(i?t:"")))}),(0,a.jsx)(s.xu,{mb:4,display:{base:"none",lg:"block"},children:n.slice(0,t).map((e,t)=>(0,a.jsx)(eM,{tx:e,isLoading:i},e.hash+(i?t:"")))}),(0,a.jsx)(l.k,{justifyContent:"center",children:(0,a.jsx)(K.Z,{fontSize:"sm",href:e,children:"View all watch list transactions"})})]})}return null},eG=n(86631);let eq=m.Z.features.rollup;var Transactions=()=>{let e=(0,ev.Z)();if(eq.isEnabled&&"optimistic"===eq.type||e){let t=[{id:"txn",title:"Latest txn",component:(0,a.jsx)(LatestTxs,{})},eq.isEnabled&&"optimistic"===eq.type&&{id:"deposits",title:"Deposits (L1→L2 txn)",component:(0,a.jsx)(home_LatestDeposits,{})},e&&{id:"watchlist",title:"Watch list",component:(0,a.jsx)(home_LatestWatchlistTxs,{})}].filter(Boolean);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.X,{as:"h4",size:"sm",mb:4,children:"Transactions"}),(0,a.jsx)(eG.Z,{tabs:t,lazyBehavior:"keepMounted"})]})}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.X,{as:"h4",size:"sm",mb:4,children:"Latest transactions"}),(0,a.jsx)(LatestTxs,{})]})},e$=n(48362),eX=n(46918),eV=n(18331),eJ=n(94088);let eK=m.Z.features.rollup;var pages_Home=()=>(0,a.jsxs)(s.xu,{as:"main",children:[(0,a.jsxs)(s.xu,{w:"100%",background:m.Z.UI.homepage.plate.background,borderRadius:"24px",padding:{base:"24px",lg:"48px"},minW:{base:"unset",lg:"900px"},"data-label":"hero plate",children:[(0,a.jsxs)(l.k,{mb:{base:6,lg:8},justifyContent:"space-between",alignItems:"center",children:[(0,a.jsxs)(d.X,{as:"h1",size:{base:"md",lg:"xl"},lineHeight:{base:"32px",lg:"50px"},fontWeight:600,color:m.Z.UI.homepage.plate.textColor,children:[m.Z.chain.name," explorer"]}),(0,a.jsxs)(s.xu,{display:{base:"none",lg:"flex"},children:[m.Z.features.account.isEnabled&&(0,a.jsx)(eX.Z,{isHomePage:!0}),m.Z.features.blockchainInteraction.isEnabled&&(0,a.jsx)(eJ.Z,{isHomePage:!0})]})]}),(0,a.jsx)(eV.Z,{isHomepage:!0})]}),(0,a.jsx)(s.xu,{w:"100%",mt:4,children:(0,a.jsx)(u.r,{href:"https://phoenix.chaincolosseum.org",isExternal:!0,children:(0,a.jsx)(h.E,{src:"/static/ads_banner.jpg",objectFit:"contain",maxW:"100%",maxH:"100%",objectPosition:"center",alt:"banner ads"})})}),(0,a.jsx)(home_Stats,{}),(0,a.jsx)(indicators_ChainIndicators,{}),(0,a.jsx)(e$.Z,{mt:{base:6,lg:8},mx:"auto",display:"flex",justifyContent:"center"}),(0,a.jsxs)(l.k,{mt:8,direction:{base:"column",lg:"row"},columnGap:12,rowGap:8,children:[eK.isEnabled&&"zkEvm"===eK.type?(0,a.jsx)(home_LatestZkEvmL2Batches,{}):(0,a.jsx)(home_LatestBlocks,{}),(0,a.jsx)(s.xu,{flexGrow:1,children:(0,a.jsx)(Transactions,{})})]})]}),eY=n(10946),eQ=n(90248),e0=n(22971),e1=n(65790),layout_LayoutHome=e=>{let{children:t}=e;return(0,a.jsxs)(e1.W2,{children:[(0,a.jsx)(e1._N,{}),(0,a.jsx)(e0.Z,{hideSearchBar:!0}),(0,a.jsxs)(e1.z7,{children:[(0,a.jsx)(e1.Ke,{}),(0,a.jsxs)(e1.EY,{paddingTop:{base:3,lg:6},children:[(0,a.jsx)(eQ.Z,{}),(0,a.jsx)(eY.Z,{children:t})]})]}),(0,a.jsx)(e1.$_,{})]})};let Page=()=>(0,a.jsx)(r.Z,{pathname:"/",children:(0,a.jsx)(pages_Home,{})});Page.getLayout=function(e){return(0,a.jsx)(layout_LayoutHome,{children:e})};var e2=!0,e3=Page},17050:function(e,t,n){"use strict";n.d(t,{Dd:function(){return s},XF:function(){return r},kj:function(){return l},sb:function(){return d}});var a=n(93027),i=n(64150);let r={l1_block_number:9045233,l1_block_timestamp:"2023-05-22T18:00:36.000000Z",l1_tx_hash:i.hj,l1_tx_origin:a.G,l2_tx_gas_limit:"100000",l2_tx_hash:i.hj},s={challenge_period_end:null,from:a.k,l1_tx_hash:i.hj,l2_timestamp:"2023-06-01T13:44:56.000000Z",l2_tx_hash:i.hj,msg_nonce:2393,msg_nonce_version:1,status:"Ready to prove"},l={l1_timestamp:"2023-06-01T14:46:48.000000Z",l1_tx_hashes:[i.hj],l2_block_number:5218590,tx_count:9},d={l1_block_number:9103684,l1_timestamp:"2023-06-01T15:26:12.000000Z",l1_tx_hash:i.hj,l2_block_number:10102468,l2_output_index:50655,output_root:i.hj}},93027:function(e,t,n){"use strict";n.d(t,{G:function(){return a},k:function(){return i}});let a="0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a",i={hash:a,implementation_name:null,is_contract:!1,is_verified:null,name:null,private_tags:[],public_tags:[],watchlist_names:[],ens_domain_name:null}},71956:function(e,t,n){"use strict";n.d(t,{K:function(){return i},x:function(){return r}});var a=n(93027);let i="0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70",r={base_fee_per_gas:"14",burnt_fees:"92834504000000000",burnt_fees_percentage:42.2,difficulty:"340282366920938463463374607431768211451",extra_data:"TODO",gas_limit:"30000000",gas_target_percentage:55.79,gas_used:"6631036",gas_used_percentage:22.1,hash:i,height:8988736,miner:a.k,nonce:"0x0000000000000000",parent_hash:i,priority_fee:"19241635454943109",rewards:[{reward:"19241635454943109",type:"Validator Reward"}],size:46406,state_root:"TODO",timestamp:"2023-05-12T19:29:12.000000Z",total_difficulty:"10837812015930321201107455268036056402048391639",tx_count:142,tx_fees:"19241635547777613",type:"block",uncles_hashes:[]}},86985:function(e,t,n){"use strict";n.d(t,{$:function(){return i},v:function(){return r}});var a=n(64150);let i={timestamp:"2023-06-01T14:46:48.000000Z",status:"Finalized",verify_tx_hash:a.hj,sequence_tx_hash:a.hj,number:5218590,tx_count:9},r={acc_input_hash:"0xb815fe2832977f1324ad0124a019b938f189f7b470292f40a21284f15774b3b3",global_exit_root:"0x0000000000000000000000000000000000000000000000000000000000000000",number:1,sequence_tx_hash:"0x57b9b95db5f94f125710bdc8fbb3fabaac10125b44b0cb61dbc69daddf06d0cd",state_root:"0xb9a589d6b3ae44d3b250a9993caa5e3721568197f56e4743989ecb2285d80ec4",status:"Finalized",timestamp:"2023-09-15T06:22:48.000000Z",transactions:["0xff99dd67646b8f3d657cc6f19eb33abc346de2dbaccd03e45e7726cc28e3e186"],verify_tx_hash:"0x093276fa65c67d7b12dd96f4fefafba9d9ad2f1c23c6e53f96583971ce75352d"}},46160:function(e,t,n){"use strict";var a=n(85893),i=n(93344),r=n(75350),s=n(67294),l=n(46491);t.Z=s.memo((0,r.m)(e=>{let{ts:t,isEnabled:n,isLoading:r,className:s}=e,d=(0,l.Z)(t,n);return(0,a.jsx)(i.O,{isLoaded:!r,color:"text_secondary",fontWeight:400,className:s,display:"inline-block",children:(0,a.jsx)("span",{children:d})})}))},19819:function(e,t,n){"use strict";var a=n(85893),i=n(31507),r=n(56837),s=n(75350);n(67294),t.Z=(0,s.m)(e=>{let{className:t}=e;return(0,a.jsx)(i.b,{status:"warning",width:"fit-content",className:t,children:(0,a.jsx)(r.X,{children:"Something went wrong. Try refreshing the page or come back later."})})})},82572:function(e,t,n){"use strict";var a=n(85893),i=n(62723),r=n(93344),s=n(47523),l=n(89154),d=n(75350),u=n(67294),h=n(96026);t.Z=u.memo((0,d.m)(e=>{let{label:t,className:n,tooltipProps:d,isLoading:m}=e,{isOpen:x,onOpen:p,onToggle:f,onClose:b}=(0,i.q)(),g=u.useCallback(e=>{e.stopPropagation(),f()},[f]);return m?(0,a.jsx)(r.O,{className:n,boxSize:5,borderRadius:"sm"}):(0,a.jsx)(s.u,{label:t,placement:"top",maxW:"320px",isOpen:x,...d,children:(0,a.jsx)(l.h,{colorScheme:"none","aria-label":"hint",icon:(0,a.jsx)(h.Z,{name:"info",w:"100%",h:"100%"}),boxSize:5,variant:"simple",display:"inline-block",flexShrink:0,className:n,onMouseEnter:p,onMouseLeave:b,onClick:g})})}))},86631:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var a=n(85893),i=n(1004),r=n(80333),s=n(69558),l=n(75350),d=n(23279),u=n.n(d),h=n(67294),m=n(5646),x=n(12498),p=n(56005),f=n(49394),b=n(93344),g=n(23100),v=n(67333),_=n(55036),j=n(29142),y=n(38777),Tabs_TabCounter=e=>{let{count:t}=e,n=(0,x.ff)("blackAlpha.400","whiteAlpha.400");return null==t?null:(0,a.jsx)(l.m.span,{color:t>0?"text_secondary":n,ml:1,...(0,y.Z)(),children:t>50?"".concat(50,"+"):t})},k=n(62723),w=n(89076),Z=n(53948),L=n(96272),S=n(44416),E=n(20623),C=n(14853);let B={id:null,title:"".concat(C.P_).concat(C.P_).concat(C.P_),component:null};var T=h.memo(e=>{let{tabs:t,tabsCut:n,isActive:i,styles:r,onItemClick:s,buttonRef:l,activeTab:d,size:u}=e,{isOpen:m,onClose:x,onOpen:p}=(0,k.q)(),f=h.useCallback(e=>{x();let t=e.currentTarget.getAttribute("data-index");t&&s(n+Number(t))},[x,s,n]);return(0,a.jsxs)(w.J,{isLazy:!0,placement:"bottom-end",isOpen:m,onClose:x,onOpen:p,closeDelay:0,children:[(0,a.jsx)(Z.x,{children:(0,a.jsx)(L.z,{variant:"ghost",isActive:m||i,ref:l,size:u,...r,children:B.title})}),(0,a.jsx)(S.y,{w:"auto",children:(0,a.jsx)(E.b,{display:"flex",flexDir:"column",children:t.slice(n).map((e,t)=>(0,a.jsxs)(L.z,{variant:"ghost",onClick:f,isActive:!!d&&d.id===e.id,justifyContent:"left","data-index":t,sx:{"&:hover span":{color:"inherit"}},children:["function"==typeof e.title?e.title():e.title,(0,a.jsx)(Tabs_TabCounter,{count:e.count})]},e.id))})})]},"more")});let N={position:"absolute",top:"-9999px",left:"-9999px",visibility:"hidden"};var O=h.memo(e=>{let t=(0,v.C)(),n=(0,x.ff)("white","black"),i=(0,_.Z)(),r=h.useMemo(()=>[...e.tabs,B],[e.tabs]),{tabsCut:s,tabsRefs:l,listRef:d,rightSlotRef:u}=function(e,t){let[n,a]=h.useState(t?e.length:0),[i,r]=h.useState([]),s=h.useRef(null),l=h.useRef(null),d=h.useCallback(()=>{var t,n;let a=null===(t=s.current)||void 0===t?void 0:t.getBoundingClientRect().width,r=(null===(n=l.current)||void 0===n?void 0:n.getBoundingClientRect().width)||0,d=i.map(e=>{var t;return null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().width}),u=d[d.length-1];if(!a||!u)return e.length;let{visibleNum:h}=d.slice(0,-1).reduce((e,t,n,i)=>{if(!t||e.visibleNum<n)return e;if(n===i.length-1){if(e.accWidth+t<a-r)return{visibleNum:e.visibleNum+1,accWidth:e.accWidth+t}}else if(e.accWidth+t+u<a-r)return{visibleNum:e.visibleNum+1,accWidth:e.accWidth+t};return e},{visibleNum:0,accWidth:0});return h},[e.length,i]);return h.useEffect(()=>{r(e.map((e,t)=>i[t]||h.createRef())),a(t?e.length:0)},[t]),h.useEffect(()=>{i.length>0&&!t&&a(d())},[d,t,i]),h.useMemo(()=>({tabsCut:n,tabsRefs:i,listRef:s,rightSlotRef:l}),[n,i])}(r,i),m=(0,j.Z)(d,5,e.stickyEnabled);return!function(e){let{activeTabIndex:t,tabsRefs:n,listRef:a,isMobile:i}=e;h.useEffect(()=>{t<n.length&&i&&window.setTimeout(()=>{let e=n[t];if(e.current&&a.current){let t=e.current.getBoundingClientRect();a.current.scrollTo({left:t.left+a.current.scrollLeft-16,behavior:"smooth"})}},300)},[t,i])}({activeTabIndex:e.activeTabIndex,listRef:d,tabsRefs:l,isMobile:i}),(0,a.jsxs)(p.t,{marginBottom:{base:6,lg:8},mx:{base:"-16px",lg:"unset"},px:{base:"16px",lg:"unset"},flexWrap:"nowrap",whiteSpace:"nowrap",ref:d,overflowX:{base:"auto",lg:"initial"},overscrollBehaviorX:"contain",css:{"scroll-snap-type":"x mandatory","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none","scrollbar-width":"none"},bgColor:n,transitionProperty:"top,box-shadow,background-color,color",transitionDuration:"normal",transitionTimingFunction:"ease",...e.stickyEnabled?{position:"sticky",boxShadow:{base:m?"md":"none",lg:"none"},top:{base:"down"===t?"0px":"106px",lg:0},zIndex:{base:"sticky2",lg:"docked"}}:{},..."function"==typeof e.tabListProps?e.tabListProps({isSticky:m,activeTabIndex:e.activeTabIndex}):e.tabListProps,children:[r.map((t,n)=>t.id?(0,a.jsx)(f.O,{ref:l[n],...n<s?{}:N,scrollSnapAlign:"start",flexShrink:0,sx:{"&:hover span":{color:"inherit"}},children:(0,a.jsxs)(b.O,{isLoaded:!e.isLoading,children:["function"==typeof t.title?t.title():t.title,(0,a.jsx)(Tabs_TabCounter,{count:t.count})]})},t.id):e.isLoading?null:(0,a.jsx)(T,{tabs:e.tabs,activeTab:e.tabs[e.activeTabIndex],tabsCut:s,isActive:e.activeTabIndex>=s,styles:s<e.tabs.length?{opacity:0===s?0:1}:N,onItemClick:e.onItemClick,buttonRef:l[n],size:e.themeProps.size||"md"},"menu")),e.rightSlot&&s>0?(0,a.jsxs)(g.xu,{ref:u,ml:"auto",...e.rightSlotProps,children:[" ",e.rightSlot," "]}):null]})}),z=h.memo((0,l.m)(e=>{let{tabs:t,lazyBehavior:n,tabListProps:l,rightSlot:d,rightSlotProps:x,stickyEnabled:p,onTabChange:f,defaultTabIndex:b,isLoading:g,className:v,..._}=e,[j,y]=(0,h.useState)(b||0),[k,w]=h.useState((0,m.Z)()?window.innerWidth:0),Z=(0,h.useRef)(null),L=h.useMemo(()=>[...t,B],[t]),S=h.useCallback(e=>{f?f(e):y(e)},[f]);return((0,h.useEffect)(()=>{void 0!==b&&y(b)},[b]),h.useEffect(()=>{let e=u()(()=>{w(window.innerWidth)},100),t=new ResizeObserver(e);return t.observe(document.body),function(){t.unobserve(document.body)}},[]),1===t.length)?(0,a.jsx)("div",{children:t[0].component}):(0,a.jsxs)(i.m,{className:v,variant:_.variant||"soft-rounded",colorScheme:_.colorScheme||"blue",isLazy:!0,onChange:S,index:j,position:"relative",size:_.size||"md",ref:Z,lazyBehavior:n,children:[(0,a.jsx)(O,{tabs:t,tabListProps:l,rightSlot:d,rightSlotProps:x,stickyEnabled:p,activeTabIndex:j,onItemClick:S,themeProps:_,isLoading:g},k+"_"+L.map(e=>e.id).join(":")),(0,a.jsx)(r.n,{children:L.map(e=>(0,a.jsx)(s.x,{padding:0,children:e.component},e.id))})]})}))},48362:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var a=n(85893),i=n(93344),r=n(75350),s=n(67294),l=n(60985),d=n(21260),u=n(67894),h=n(204),m=n(39332),x=n(4298),p=n.n(x),f=n(55036),b=n(5646);let g=(()=>{let e=l.Z.features.adsBanner;if("adButler"in e)return"\n    var AdButler = AdButler || {}; AdButler.ads = AdButler.ads || [];\n    var abkw = window.abkw || '';\n    const isMobile = window.matchMedia(\"only screen and (max-width: 1000px)\").matches;\n    if (isMobile) {\n        var plc".concat(e.adButler.config.mobile.id," = window.plc").concat(e.adButler.config.mobile.id," || 0;\n        document.getElementById('ad-banner').innerHTML = '<'+'div id=\"placement_").concat(e.adButler.config.mobile.id,"_'+plc").concat(e.adButler.config.mobile.id,"+'\"></'+'div>';\n        AdButler.ads.push({handler: function(opt){ AdButler.register(").concat(182226,", ").concat(e.adButler.config.mobile.id,", [").concat(e.adButler.config.mobile.width,",").concat(e.adButler.config.mobile.height,"], 'placement_").concat(e.adButler.config.mobile.id,"_'+opt.place, opt); }, opt: { place: plc").concat(e.adButler.config.mobile.id,"++, keywords: abkw, domain: 'servedbyadbutler.com', click:'CLICK_MACRO_PLACEHOLDER' }});\n    } else {\n        var plc").concat(e.adButler.config.desktop.id," = window.plc").concat(e.adButler.config.desktop.id," || 0;\n        document.getElementById('ad-banner').innerHTML = '<'+'div id=\"placement_").concat(e.adButler.config.desktop.id,"_'+plc").concat(e.adButler.config.desktop.id,"+'\"></'+'div>';\n        AdButler.ads.push({handler: function(opt){ AdButler.register(").concat(182226,", ").concat(e.adButler.config.desktop.id,", [").concat(e.adButler.config.desktop.width,",").concat(e.adButler.config.desktop.height,"], 'placement_").concat(e.adButler.config.desktop.id,"_'+opt.place, opt); }, opt: { place: plc").concat(e.adButler.config.desktop.id,"++, keywords: abkw, domain: 'servedbyadbutler.com', click:'CLICK_MACRO_PLACEHOLDER' }});\n    }\n  ")})(),v=l.Z.features.adsBanner;var _=(0,r.m)(e=>{let{className:t}=e,n=(0,m.useRouter)(),i=(0,f.Z)();return s.useEffect(()=>{if("adButler"in v&&(0,b.Z)()&&window.AdButler){let e=window.abkw||"";window.AdButler.ads||(window.AdButler.ads=[]);let t=window["plc".concat(v.adButler.config.mobile.id)]||0,n=i?v.adButler.config.mobile:v.adButler.config.desktop,a=document.getElementById("ad-banner");a&&(a.innerHTML='<div id="placement_'+(null==n?void 0:n.id)+"_"+t+'"></div>'),window.AdButler.ads.push({handler:function(e){window.AdButler.register(182226,n.id,[n.width,n.height],"placement_".concat(n.id,"_")+e.place,e)},opt:{place:t++,keywords:e,domain:"servedbyadbutler.com",click:"CLICK_MACRO_PLACEHOLDER"}})}},[n,i]),(0,a.jsxs)(h.k,{className:t,id:"adBanner",h:{base:"100px",lg:"90px"},children:[(0,a.jsx)(p(),{strategy:"lazyOnload",id:"ad-butler-1",children:'if (!window.AdButler){(function(){var s = document.createElement("script"); s.async = true; s.type = "text/javascript";s.src = \'https://servedbyadbutler.com/app.js\';var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(s, n);}());}'}),(0,a.jsx)(p(),{strategy:"lazyOnload",id:"ad-butler-2",children:g}),(0,a.jsx)("div",{id:"ad-banner"})]})}),j=(0,r.m)(e=>{let{className:t}=e,n=(0,b.Z)();return s.useEffect(()=>{n&&(window.coinzilla_display=window.coinzilla_display||[],window.coinzilla_display.push({zone:"26660bf627543e46851",width:"728",height:"90"}))},[n]),(0,a.jsxs)(h.k,{className:t,id:"adBanner",h:{base:"100px",lg:"90px"},children:[(0,a.jsx)(p(),{strategy:"lazyOnload",src:"https://coinzillatag.com/lib/display.js"}),(0,a.jsx)("div",{className:"coinzilla","data-zone":"C-26660bf627543e46851"})]})}),y=n(5152),k=n.n(y),w=n(92321),Z=n(27276);let L=k()(()=>n.e(4409).then(n.bind(n,4409)).then(e=>e.GetitAdPlugin),{loadableGenerated:{webpack:()=>[4409]},ssr:!1}),GetitBannerContent=e=>{let{address:t,className:n}=e,i=!!(0,f.Z)();return(0,a.jsx)(h.k,{className:n,h:"90px",children:(0,a.jsx)(L,{apiKey:"ZmGXVvwYUAW4yXL8RzWQHNKmpSyQmt3TDXsXUxqFqXPdoaiSSFyca3BOyunDcWdyOwTkX3UVVQel28qbjoOoWPxYVpPdNzbUNkAHyFyJX7Lk9TVcPDZKTQmwHlSMzO3a",walletConnected:t||"",isMobile:i,slotId:"0"},i.toString())})},GetitBannerWithWalletAddress=e=>{let{className:t}=e,{address:n}=(0,w.m)();return(0,a.jsx)(GetitBannerContent,{address:n,className:t})};var S=(0,r.m)(e=>{let{className:t}=e,n=s.useCallback(()=>(0,a.jsx)(GetitBannerContent,{className:t}),[t]);return(0,a.jsx)(Z.Z,{fallback:n,children:(0,a.jsx)(GetitBannerWithWalletAddress,{className:t})})}),E=n(3104);let C=(()=>{let e=l.Z.features.adsBanner;if(e.isEnabled&&"hype"===e.provider)return"!(function (h, y, p, e, l, a, b) {\n    ((l = document.createElement(h)).async = !0),\n      (l.src = y),\n      (l.onload = function () {\n        (a = { URL: p, propertySlug: e, environment: 'production' }), HypeLab.initialize(a);\n      }),\n      (b = document.getElementsByTagName(h)[0]).parentNode.insertBefore(l, b);\n  })('script', 'https://api.hypelab.com/v1/scripts/hp-sdk.js?v=0', '".concat("https://api.hypelab.com","', '").concat("127fddd522","');")})(),HypeBannerContent=e=>{let{className:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p(),{id:"hypelab",strategy:"afterInteractive",children:C}),(0,a.jsx)(h.k,{className:t,h:"90px",display:{base:"none",lg:"flex"},children:(0,a.jsx)(E.jL,{placement:"b1559fc3e7"})}),(0,a.jsx)(h.k,{className:t,h:"50px",display:{base:"flex",lg:"none"},children:(0,a.jsx)(E.jL,{placement:"668ed80a9e"})})]})},HypeBannerWithWalletAddress=e=>{let{className:t}=e,{address:n}=(0,w.m)();return s.useEffect(()=>{n&&(0,E.kt)([n])},[n]),(0,a.jsx)(HypeBannerContent,{className:t})};var B=(0,r.m)(e=>{let{className:t}=e,n=s.useCallback(()=>(0,a.jsx)(HypeBannerContent,{className:t}),[t]);return(0,a.jsx)(Z.Z,{fallback:n,children:(0,a.jsx)(HypeBannerWithWalletAddress,{className:t})})}),T=n(47738),N=(0,r.m)(e=>{let{className:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.k,{className:t,h:"90px",display:{base:"none",lg:"flex"},children:(0,a.jsx)(T.SliseAd,{slotId:l.Z.chain.name||"",pub:"pub-10",format:"728x90",style:{width:"728px",height:"90px"}})}),(0,a.jsx)(h.k,{className:t,h:"90px",display:{base:"flex",lg:"none"},children:(0,a.jsx)(T.SliseAd,{slotId:l.Z.chain.name||"",pub:"pub-10",format:"270x90",style:{width:"270px",height:"90px"}})})]})});let O=l.Z.features.adsBanner;var z=(0,r.m)(e=>{let{className:t,isLoading:n}=e,r=(0,d.b)().adBannerProvider,s=u.U2(u.aL.ADBLOCK_DETECTED,(0,d.b)().cookies);if(!O.isEnabled||s||!r)return null;let l=(()=>{switch(r){case"adbutler":return(0,a.jsx)(_,{});case"coinzilla":return(0,a.jsx)(j,{});case"getit":return(0,a.jsx)(S,{});case"hype":return(0,a.jsx)(B,{});case"slise":return(0,a.jsx)(N,{})}})();return(0,a.jsx)(i.O,{className:t,isLoaded:!n,borderRadius:"none",maxW:"adButler"in O&&O.adButler?O.adButler.config.desktop.width:"728px",w:"100%",children:l})})},29530:function(e,t,n){"use strict";var a=n(85893),i=n(75350),r=n(57557),s=n.n(r);n(67294);var l=n(99640),d=n(60985),u=n(88841);let h=d.Z.features.rollup;t.Z=(0,i.m)(e=>{let t=s()(e,["className"]),n=s()(e,["className","onClick"]);return h.isEnabled?(0,a.jsxs)(u.W2,{className:e.className,children:[(0,a.jsx)(u.JO,{...n,name:"txn_batches_slim"}),(0,a.jsx)(u.rU,{...t,href:(0,l.B)({pathname:"/batches/[number]",query:{number:e.number.toString()}}),children:(0,a.jsx)(u.VY,{...n})})]}):null})},13339:function(e,t,n){"use strict";var a=n(85893),i=n(75350),r=n(57557),s=n.n(r);n(67294);var l=n(99640),d=n(60985),u=n(88841);let h=d.Z.features.rollup;t.Z=(0,i.m)(e=>{var t;let n=s()(e,["className"]),i=s()(e,["className","onClick"]);return h.isEnabled?(0,a.jsxs)(u.W2,{className:e.className,children:[(0,a.jsx)(u.JO,{...i}),(0,a.jsx)(u.rU,{...n,isExternal:!0,href:h.L1BaseUrl+(0,l.B)({pathname:"/block/[height_or_hash]",query:{height_or_hash:null!==(t=e.hash)&&void 0!==t?t:String(e.number)}}),children:(0,a.jsx)(u.VY,{...i})})]}):null})},43052:function(e,t,n){"use strict";var a=n(85893),i=n(75350),r=n(57557),s=n.n(r);n(67294);var l=n(99640),d=n(60985),u=n(92040);let h=d.Z.features.rollup;t.Z=(0,i.m)(e=>{let t=s()(e,["className","onClick"]),n=s()(e,["className"]);return h.isEnabled?(0,a.jsxs)(u.W2,{className:e.className,children:[(0,a.jsx)(u.JO,{...t}),(0,a.jsx)(u.rU,{...n,isExternal:!0,href:h.L1BaseUrl+(0,l.B)({pathname:"/tx/[hash]",query:{hash:e.hash}}),children:(0,a.jsx)(u.VY,{...t})}),(0,a.jsx)(u.CK,{...t})]}):null})},38305:function(e,t,n){"use strict";var a=n(85893);n(67294);var i=n(19481);t.Z=e=>{let t,n,{status:r,errorText:s,isLoading:l}=e;if(void 0===r)return null;switch(r){case"ok":t="Success",n="ok";break;case"error":t="Failed",n="error";break;case null:t="Pending",n="pending"}return(0,a.jsx)(i.Z,{type:n,text:t,errorText:s,isLoading:l})}},27178:function(e,t,n){"use strict";var a=n(85893);n(67294);var i=n(19481);t.Z=e=>{let t,{status:n,isLoading:r}=e;switch(n){case"L1 Sequence Confirmed":case"Finalized":t="ok";break;default:t="pending"}return(0,a.jsx)(i.Z,{type:t,text:n,isLoading:r})}},68657:function(e,t,n){"use strict";var a=n(85893),i=n(204),r=n(67294),s=n(95204);t.Z=r.memo(e=>{var t,n;let{tx:r,isLoading:l}=e,d=[...(null===(t=r.from)||void 0===t?void 0:t.watchlist_names)||[],...(null===(n=r.to)||void 0===n?void 0:n.watchlist_names)||[]].filter(Boolean);return 0===d.length?null:(0,a.jsx)(i.k,{columnGap:2,rowGap:2,flexWrap:"wrap",overflow:"hidden",maxW:"100%",children:d.map(e=>(0,a.jsx)(s.Z,{isLoading:l,isTruncated:!0,colorScheme:"gray",variant:"subtle",children:e.display_name},e.label))})})},12786:function(e,t,n){"use strict";var a=n(85893);n(67294);var i=n(95204);let r=["blob_transaction","rootstock_remasc","rootstock_bridge","token_creation","contract_creation","token_transfer","contract_call","coin_transfer"];t.Z=e=>{let t,n,{types:s,isLoading:l}=e,d=s.sort((e,t)=>r.indexOf(e)-r.indexOf(t))[0];switch(d){case"contract_call":t="Contract call",n="blue";break;case"blob_transaction":t="Blob txn",n="yellow";break;case"contract_creation":t="Contract creation",n="blue";break;case"token_transfer":t="Token transfer",n="orange";break;case"token_creation":t="Token creation",n="orange";break;case"coin_transfer":t="Coin transfer",n="orange";break;case"rootstock_remasc":t="REMASC",n="blue";break;case"rootstock_bridge":t="Bridge",n="blue";break;default:t="Transaction",n="purple"}return(0,a.jsx)(i.Z,{colorScheme:n,isLoading:l,children:t})}},73054:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=t.default=void 0;var i=n(64831);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a(i).default}}),Object.defineProperty(t,"scripts",{enumerable:!0,get:function(){return i.scripts}})},64831:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)0>t.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=void 0;var i=n(67294);t.scripts={};var checkExisting=function(e){var n=document.querySelector('script[src="'+e+'"]');if(n)return t.scripts[e]={loading:!1,error:null,scriptEl:n}};t.default=function(e){var n=e.src,s=e.checkForExisting,l=void 0!==s&&s,d=a(e,["src","checkForExisting"]),u=n?t.scripts[n]:void 0;!u&&l&&n&&r&&(u=checkExisting(n));var h=(0,i.useState)(u?u.loading:!!n),m=h[0],x=h[1],p=(0,i.useState)(u?u.error:null),f=p[0],b=p[1],g=(0,i.useState)(!1),v=g[0],_=g[1];return(0,i.useEffect)(function(){if(r&&n&&!v&&!f){(u=t.scripts[n])||!l||(u=checkExisting(n)),u?e=u.scriptEl:((e=document.createElement("script")).src=n,Object.keys(d).forEach(function(t){void 0===e[t]?e.setAttribute(t,d[t]):e[t]=d[t]}),u=t.scripts[n]={loading:!0,error:null,scriptEl:e});var e,handleLoad=function(){u&&(u.loading=!1),x(!1),_(!0)},handleError=function(e){u&&(u.error=e),b(e)};return e.addEventListener("load",handleLoad),e.addEventListener("error",handleError),document.body.appendChild(e),function(){e.removeEventListener("load",handleLoad),e.removeEventListener("error",handleError)}}},[n]),[m,f]};var r="undefined"!=typeof window&&void 0!==window.document},77374:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var a=n(75350),i=n(99155),r=n(25432),s=n(21190),l=n(24262),d=n(67294),u=n(85893),h={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:a,delay:r})=>{var s;return{opacity:0,x:e,y:t,transition:null!=(s=null==n?void 0:n.exit)?s:i.p$.exit(i.Sh.exit,r),transitionEnd:null==a?void 0:a.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var a;return{opacity:1,x:0,y:0,transition:null!=(a=null==e?void 0:e.enter)?a:i.p$.enter(i.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:a,reverse:r,delay:s})=>{var l;let d={x:t,y:e};return{opacity:0,transition:null!=(l=null==n?void 0:n.exit)?l:i.p$.exit(i.Sh.exit,s),...r?{...d,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:{...d,...null==a?void 0:a.exit}}}}}};(0,d.forwardRef)(function(e,t){let{unmountOnExit:n,in:a,reverse:i=!0,className:d,offsetX:m=0,offsetY:x=8,transition:p,transitionEnd:f,delay:b,...g}=e,v=!n||a&&n,_=a||n?"enter":"exit",j={offsetX:m,offsetY:x,reverse:i,transition:p,transitionEnd:f,delay:b};return(0,u.jsx)(s.M,{custom:j,children:v&&(0,u.jsx)(l.E.div,{ref:t,className:(0,r.cx)("chakra-offset-slide",d),custom:j,...h,animate:_,...g})})}).displayName="SlideFade";var m={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:a,delay:r})=>{var s;return{opacity:0,...e?{scale:t,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:{scale:t,...null==a?void 0:a.exit}},transition:null!=(s=null==n?void 0:n.exit)?s:i.p$.exit(i.Sh.exit,r)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var a;return{opacity:1,scale:1,transition:null!=(a=null==t?void 0:t.enter)?a:i.p$.enter(i.Sh.enter,n),transitionEnd:null==e?void 0:e.enter}}}};(0,d.forwardRef)(function(e,t){let{unmountOnExit:n,in:a,reverse:i=!0,initialScale:d=.95,className:h,transition:x,transitionEnd:p,delay:f,...b}=e,g=!n||a&&n,v=a||n?"enter":"exit",_={initialScale:d,reverse:i,transition:x,transitionEnd:p,delay:f};return(0,u.jsx)(s.M,{custom:_,children:g&&(0,u.jsx)(l.E.div,{ref:t,className:(0,r.cx)("chakra-offset-slide",h),...m,animate:v,custom:_,...b})})}).displayName="ScaleFade";var x={slideInBottom:{...h,custom:{offsetY:16,reverse:!0}},slideInRight:{...h,custom:{offsetX:16,reverse:!0}},scale:{...m,custom:{initialScale:.95,reverse:!0}},none:{}},p=(0,a.m)(l.E.section),getMotionProps=e=>x[e||"none"],f=(0,d.forwardRef)((e,t)=>{let{preset:n,motionProps:a=getMotionProps(n),...i}=e;return(0,u.jsx)(p,{ref:t,...a,...i})});f.displayName="ModalTransition";var b=n(65085),g=n(34151),v=(0,n(35059).G)((e,t)=>{let{className:n,children:i,containerProps:s,motionProps:l,...d}=e,{getDialogProps:h,getDialogContainerProps:m}=(0,g.vR)(),x=h(d,t),p=m(s),v=(0,r.cx)("chakra-modal__content",n),_=(0,g.I_)(),j={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,..._.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,..._.dialogContainer},{motionPreset:k}=(0,g.vR)();return(0,u.jsx)(b.M,{children:(0,u.jsx)(a.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,u.jsx)(f,{preset:k,motionProps:l,className:v,...x,__css:j,children:i})})})});v.displayName="ModalContent"},23438:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var a=n(34151),i=n(86989),r=n(25432),s=n(35059),l=n(85893),d=(0,s.G)((e,t)=>{let{onClick:n,className:s,...d}=e,{onClose:u}=(0,a.vR)(),h=(0,r.cx)("chakra-modal__close-btn",s),m=(0,a.I_)();return(0,l.jsx)(i.P,{ref:t,__css:m.closeButton,className:h,onClick:(0,r.v0)(n,e=>{e.stopPropagation(),u()}),...d})});d.displayName="ModalCloseButton"},36557:function(e,t,n){"use strict";n.d(t,{i:function(){return x},p:function(){return m}});var a=n(35059),i=n(91639),r=n(33179),s=n(75350),l=n(25432),d=n(55227),u=n(85893),[h,m]=(0,d.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),x=(0,a.G)((e,t)=>{let n=(0,i.jC)("Table",e),{className:a,layout:d,...m}=(0,r.Lr)(e);return(0,u.jsx)(h,{value:n,children:(0,u.jsx)(s.m.table,{ref:t,__css:{tableLayout:d,...n.table},className:(0,l.cx)("chakra-table",a),...m})})});x.displayName="Table"},577:function(e,t,n){"use strict";n.d(t,{Td:function(){return l}});var a=n(36557),i=n(35059),r=n(75350),s=n(85893),l=(0,i.G)(({isNumeric:e,...t},n)=>{let i=(0,a.p)();return(0,s.jsx)(r.m.td,{...t,ref:n,__css:i.td,"data-is-numeric":e})})},36526:function(e,t,n){"use strict";n.d(t,{Tr:function(){return l}});var a=n(36557),i=n(35059),r=n(75350),s=n(85893),l=(0,i.G)((e,t)=>{let n=(0,a.p)();return(0,s.jsx)(r.m.tr,{...e,ref:t,__css:n.tr})})},3104:function(e,t,n){"use strict";n.d(t,{jL:function(){return u},kt:function(){return M}});var a=n(67294),i=n(85893),r=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))d.call(t,n)&&c(e,n,t[n]);return e},u=(0,a.forwardRef)((e,t)=>{let[n,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{r(!0)},[]),n?(0,i.jsx)("hype-banner",o({ref:t},e)):null});function M(e){var t;let n=null==(t=window.__hype)?void 0:t.identity;n?n.setWalletAddresses(e):window.__hype_wids=e}(0,a.forwardRef)((e,t)=>{let[n,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{r(!0)},[]),n?(0,i.jsx)("hype-native",o({ref:t},e)):null}),(0,a.forwardRef)((e,t)=>{let n=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,()=>n.current);let[r,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{s(!0)},[]),(0,a.useEffect)(()=>(r&&n.current&&(e.onReady&&n.current.addEventListener("ready",e.onReady),e.onError&&n.current.addEventListener("error",e.onError),e.onComplete&&n.current.addEventListener("complete",e.onComplete)),()=>{r&&n.current&&(e.onReady&&n.current.removeEventListener("ready",e.onReady),e.onError&&n.current.removeEventListener("error",e.onError),e.onComplete&&n.current.removeEventListener("complete",e.onComplete))}),[r]),r?(0,i.jsx)("hype-rewarded",o({ref:n},e)):null})}},function(e){e.O(0,[5481,569,3265,8038,3986,9774,2888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]);
//# sourceMappingURL=index-3380fc687109e6e2.js.map