PageSourceSearch

https://ultrasound.money/_next/static/chunks/337.ad8a6a04b78da910.js

js ultrasound.money collected 2026-10-02 05:17:44 UTC 11,682 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[337],{71337:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return N}});var o=r(85893),a=r(23855),n=r(42227),l=r(28789),i=r(69119),s=r(83946),c=r(19013),d=r(13882);function u(e,t){(0,d.Z)(2,arguments);var r=(0,c.Z)(e),o=(0,c.Z)(t);return r.getTime()>o.getTime()}var p=r(99982),h=r(78840),m=r.n(h),g=r(75708),v=r.n(g),_=r(75111),f=r.n(_),y=r(73061),k=r.n(y),w=r(82492),b=r.n(w),E=r(67294),L=r(97355),j=r(12597),x=r(146),T=r(53461),S=r(90155),C=r(546),I=r.n(C),M=r(71637),Z=r(69857),D=r(8804),B=r.n(D);f()(m());let O=null,R=e=>{let{projectedBaseGasPrice:t,projectedStaking:r,projectedMergeDate:h,showBreakdown:g,onPeakProjectedToggle:_}=e,f=(0,E.useContext)(x.Z),y=(0,E.useRef)(null),w=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(null===y.current)return;let e=y.current.querySelector(".highcharts-container");null!==w.current&&null!==e&&e.clientWidth>y.current.clientWidth&&w.current.chart.reflow()},[f]);let[C,D]=(0,E.useState)(!1),R=(0,E.useCallback)(()=>{null!==O&&clearTimeout(O),O=setTimeout(()=>{D(!1)},200)},[]),N=(0,E.useCallback)(()=>{null!==O&&clearTimeout(O),D(!0)},[]),[P,A]=(0,E.useState)(window.innerWidth<1440),[G,H]=(0,E.useState)(window.innerWidth<640);!function(e){let t=E.useRef(e);t.current=e,E.useEffect(()=>{function e(){t.current({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[])}(e=>{let t=e.width,r=t<1440;r!==P&&A(r);let o=t<640;o!==G&&H(o)});let Y=(0,E.useMemo)(()=>({projectedBaseGasPrice:t,projectedStaking:r,projectedMergeDate:h,showBreakdown:C||g,useCompactChart:G,useCompactMarkers:P}),[t,r,h,C,g,G,P]),W=function(e,t){let[r,o]=E.useState(e);return E.useEffect(()=>{let r=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}(Y,100),z=(0,E.useMemo)(()=>[[a.Z("2015-07-31T00:00:00Z"),f.marker_genesis,"5 ETH/".concat(f.marker_block)],[a.Z("2017-10-16T00:00:00Z"),"byzantium","3 ETH/".concat(f.marker_block)],[a.Z("2019-02-27T00:00:00Z"),"constantinople","2 ETH/".concat(f.marker_block)],[a.Z("2020-12-01T00:00:00Z"),f.marker_phase_0,f.marker_pos],[Z.P,"london","burn"],[W.projectedMergeDate,f.marker_merge,f.marker_pow_removal]],[W,f]),F=(0,L.k)(),[V,q,Q]=(0,E.useMemo)(()=>{let e,t;if(void 0===F)return[[],[],{}];let{inBeaconValidatorsByDay:r,inContractsByDay:o,supplyByDay:a}=F,h={};r.forEach(e=>{let{t,v:r}=e;h[t]=r});let m={};o.forEach(e=>{let{t,v:r}=e;m[t]=r});let g={},v=[],y=[],w=[],b=[],E=a.length,L=null,x=null;a.forEach((r,o)=>{let{t:i,v:s}=r,c=n.Z(i);if(s>(L||0))L=s,x=null;else if(s<L&&!x){let d=a[o-1];if(void 0===d)throw Error("cannot calculate peak supply without supply points");x=[d.t,d.v]}if(o%7!=0&&o<E-1)return;let u=l.Z(c),p=h[i]||t;void 0!==p&&(t=p,b.push([u,p]));let _=void 0===p?s:s-p,f=m[i]||e;void 0!==f&&(e=f,y.push([u,f]),w.push([u,(null!=_?_:s)-f])),v.push([u,s]),g[u]=s});let C=k()(v),I=k()(b),M=k()(w),D=k()(y),B=n.Z(k()(a).t),O=[D],R=[M],N=[I],P=[C],A=W.projectedMergeDate,G=C[1],H=I[1];if(void 0===H)throw Error("cannot calculate projected staking value without staking value");let Y=(0,S.YG)(W.projectedStaking);for(let z=0;z<730;z++){let V=i.Z(function(e,t){(0,d.Z)(2,arguments);var r=(0,c.Z)(e),o=(0,s.Z)(t);return isNaN(o)?new Date(NaN):(o&&r.setDate(r.getDate()+o),r)}(B,z+1));H<W.projectedStaking?H=Math.min(W.projectedStaking,H+(0,S.Em)(H)):H>W.projectedStaking&&(H=Math.max(W.projectedStaking,H-(0,S.Em)(H)));let q=(0,S.YG)(H);(function(e,t){(0,d.Z)(2,arguments);var r=(0,c.Z)(e),o=(0,c.Z)(t);return r.getTime()<o.getTime()})(V,A)&&(q+=13500);let Q=0;if(u(V,Z.P)&&(Q=(0,S.bw)(W.projectedBaseGasPrice)),void 0===G)throw Error("cannot calculate supply split without supply value");G=Math.max(G+q-Q,0);let J=Math.max(G-H,0);if(void 0===D)throw Error("cannot calculate the in contract value without the last contract point");let K=Math.min(D[1],J),U=J-K;U<.5*K&&(K=Math.floor(2*J/3),U=J-K);let X=Math.max(G,H),$=Q>Y;if(X>(L||0)?(L=X,x=null):X<L&&!x&&$&&(x=[p.Z(V),X]),z%7!=0)continue;let ee=l.Z(V);O.push([ee,K]),R.push([ee,U]),N.push([ee,H]),P.push([ee,X]),g[ee]=X}let et={fillOpacity:.25,dashStyle:"Dash",showInLegend:!1,marker:{symbol:"circle"}},er=[],eo={opacity:0,showInLegend:!1},ea={opacity:1,showInLegend:!0};er=[{id:"supply",type:"area",name:f.historical_supply,color:T.DM.SERIES[0],data:v,enableMouseTracking:!1,...W.showBreakdown?eo:ea},{id:"supply_projected",type:"area",name:"".concat(f.eth_supply," (").concat(f.projected,")"),data:P,color:T.DM.SERIES[0],enableMouseTracking:!1,...et,showInLegend:!0,...W.showBreakdown?eo:ea},{id:"addresses",type:"area",name:f.supply_chart_series_address,color:T.DM.SERIES[1],data:w,marker:{symbol:"circle"},stack:"historical",...W.showBreakdown?ea:eo},{id:"staking",type:"area",name:f.supply_chart_series_staking,color:T.DM.SERIES[5],data:b,marker:{symbol:"circle"},stack:"historical",...W.showBreakdown?ea:eo},{id:"contracts",type:"area",name:f.supply_chart_series_contracts,color:T.DM.SERIES[2],data:y,marker:{symbol:"circle"},stack:"historical",...W.showBreakdown?ea:eo},{id:"addresses_projected",type:"area",name:"".concat(f.supply_chart_series_address," (").concat(f.projected,")"),data:R,color:T.DM.SERIES[1],stack:"projected",...W.showBreakdown?ea:eo,...et},{id:"staking_projected",type:"area",name:"".concat(f.supply_chart_series_staking," (").concat(f.projected,")"),data:N,color:T.DM.SERIES[5],stack:"projected",...W.showBreakdown?ea:eo,...et},{id:"contracts_projected",type:"area",name:"".concat(f.supply_chart_series_contracts," (").concat(f.projected,")"),data:O,color:T.DM.SERIES[2],stack:"projected",...W.showBreakdown?ea:eo,...et}];let en=[];if(x){let el=n.Z(x[0]),ei=u(el,new Date),es={point:{xAxis:0,yAxis:0,x:l.Z(n.Z(x[0])),y:L},text:'<div class="ann-root">\n          <div class="ann-title">'.concat(f.peak_supply,"</div>\n          ").concat(ei?'<div class="ann-proj">(Projected)</div>':"",'\n          <div class="ann-value">').concat((0,j.F9)(x[1]/1e6),"M ETH</div>\n          </div>"),padding:10,borderRadius:10,useHTML:!0};en.push(es),_(!0)}else _(!1);return[er,en,g]},[W,_,f,F]),J=(0,E.useMemo)(()=>{let e=Boolean(w.current);
1m().setOptions({lang:{thousandsSep:f.chart_thousands_sep,decimalPoint:f.chart_decimal_point}});let t={annotations:[{draggable:"",labelOptions:{backgroundColor:T.DM.TOOLTIP_BG,borderWidth:0,verticalAlign:"top",y:7},labels:q}],chart:{animation:e,height:W.useCompactChart?300:380,zooming:{type:"x",resetButton:{position:{x:0,y:10},theme:{fill:M.Z.slateus600,style:{opacity:.8,fontSize:"12",fontFamily:"Inter",fontWeight:"300",color:M.Z.white,textTransform:"lowercase",border:"1px solid ".concat(M.Z.slateus400)},r:4,states:{hover:{fill:"#343C56"}}}}}},plotOptions:{area:{animation:e,events:{mouseOver:N,mouseOut:R}}},legend:{enabled:!1},series:V,xAxis:{type:"datetime",minPadding:0,maxPadding:0,tickInterval:315576e5,labels:{style:{color:M.Z.slateus400,fontFamily:"Roboto Mono",fontSize:"12px",fontWeight:"300"}},plotLines:z.map((e,t)=>{let[r,o,a]=e;return{value:l.Z(r),color:T.DM.PLOT_LINE,width:1,label:{rotation:0,text:W.useCompactMarkers?String.fromCharCode(65+t):"".concat(o,"<br><b>").concat(a,"</b>"),style:{color:"#b5bddb",whiteSpace:"normal",fontSize:"11px"},y:18,x:6},zIndex:3}})},yAxis:{min:0,max:16e7,tickInterval:2e7,labels:{style:{color:M.Z.slateus400,fontFamily:"Roboto Mono",fontSize:"12px",fontWeight:"300"}},title:{text:void 0}},tooltip:{shared:!0,backgroundColor:"transparent",padding:0,valueDecimals:0,xDateFormat:"%Y-%m-%d",useHTML:!0,formatter:function(){var e;let t=(this.points||[]).slice(0);t.length>4&&(t=t.filter(e=>{var t;return!(null===(t=e.series.userOptions.id)||void 0===t?void 0:t.includes("projected"))}));let r=B()(t);if(void 0===r)return"";let o=null===(e=r.series.userOptions.id)||void 0===e?void 0:e.includes("projected"),a=new Date(this.x||0),n='<div class="tt-header"><div class="tt-header-date text-slateus-200">'.concat((0,S.p6)(a),"</div>").concat(o?'<div class="tt-header-projected">('.concat(f.projected,")</div>"):"","</div>"),l=t.map(e=>'<tr>\n              <td>\n                <div class="tt-series">\n                  <div class="tt-series-color" style="background-color:'.concat(e.series.userOptions.color,'"></div>\n                  <div class="tt-series-name">').concat(e.series.name.split(" (")[0],'</div>\n                </div>\n              </td>\n              <td class="text-white">').concat((0,j.F9)((e.y||0)/1e6),"M ETH</td>\n              </tr>")),i=Q[this.x||0];if(void 0===i)return"";l.push('<tr class="tt-total-row">\n              <td><div class="tt-series-name">'.concat(f.total_supply,'</div></td>\n              <td class="text-white">').concat((0,j.F9)(i/1e6),"M ETH</td>\n            </tr>"));let s="<table><tbody>".concat(l.join(""),"</tbody></table>");return'\n            <div class="relative z-10 w-60 rounded-lg border-2 font-roboto bg-slateus-700 border-slateus-400">\n                <div class="tt-root">'.concat(n).concat(s,"</div>\n            </div>\n         ")}}};return b()({},T.vC,t)},[q,N,R,z,V,f,Q,W]),K=V.filter(e=>e.showInLegend);return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{ref:y,className:I().supplyChart,children:[(0,o.jsx)(v(),{options:J,highcharts:m(),ref:w}),(0,o.jsx)("div",{className:I().legend,children:K.map(e=>(0,o.jsxs)("div",{className:I().legendItem,children:[(0,o.jsx)("div",{className:I().legendItemColor,style:{backgroundColor:String(e.color),opacity:e.fillOpacity}}),(0,o.jsx)("div",{className:I().legendItemName,style:{color:T.DM.LABEL},children:"supply_projected"===e.id?f.projected_supply:e.name})]},e.id))}),(0,o.jsx)("div",{className:I().markerLegend,children:z.map((e,t)=>{let[,r,a]=e;return(0,o.jsxs)("div",{className:I().markerLegendItem,children:[(0,o.jsx)("div",{className:I().markerLegendCount,children:String.fromCharCode(65+t)}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:I().markerLegendTitle,children:r}),(0,o.jsx)("div",{className:I().markerLegendSubtitle,children:a})]})]},r)})})]})})};var N=(0,E.memo)(R)},69857:function(e,t,r){"use strict";r.d(t,{P:function(){return o}});let o=new Date("2021-08-05T00:00:00Z")},53461:function(e,t,r){"use strict";r.d(t,{DM:function(){return o},vC:function(){return n}});let o={GRID:"#262e48",PLOT_LINE:"#6675a3",LABEL:"#8490b5",LABEL_HOVER:"#6c7696",TOOLTIP_BG:"#1b2135",ANNOTATION_BG:"#293350",SERIES:["#36a2eb","#ff6384","#8142ff","#ff9f40","#ffcd56","#4bc0c0"]},a={itemStyle:{color:o.LABEL},itemHoverStyle:{color:o.LABEL_HOVER}},n={accessibility:{enabled:!1},chart:{backgroundColor:"rgba(0, 0, 0, 0)",style:{fontFamily:"Roboto Mono, monospace"}},colors:o.SERIES,credits:{enabled:!1},legend:a,plotOptions:{area:{marker:{radius:2},lineWidth:2,states:{hover:{lineWidth:2}},fillOpacity:.4,stacking:"normal"}},title:{text:void 0},tooltip:{backgroundColor:o.TOOLTIP_BG,borderColor:"none",shadow:!1,style:{color:o.LABEL}},xAxis:{labels:{style:{color:o.LABEL}},title:{style:{color:o.LABEL}},gridLineColor:o.GRID,lineColor:o.GRID,tickColor:o.GRID},yAxis:{labels:{style:{color:o.LABEL}},title:{style:{color:o.LABEL}},gridLineColor:o.GRID}}},546:function(e){e.exports={supplyChart:"TwoYearProjectionChart_supplyChart__R_3km",legend:"TwoYearProjectionChart_legend__qQyQa",legendItem:"TwoYearProjectionChart_legendItem__vAyEb",legendItemColor:"TwoYearProjectionChart_legendItemColor__15EOa",legendItemName:"TwoYearProjectionChart_legendItemName__Evpfg",markerLegend:"TwoYearProjectionChart_markerLegend__S80Jw",markerLegendItem:"TwoYearProjectionChart_markerLegendItem__cVnVd",markerLegendCount:"TwoYearProjectionChart_markerLegendCount__0Q9wv",markerLegendTitle:"TwoYearProjectionChart_markerLegendTitle___qEt_"}}}]);
2//# sourceMappingURL=337.ad8a6a04b78da910.js.map

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.