1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5874],{8913:(e,r,t)=>{"use strict";t.d(r,{YQ:()=>n});var s=t(27529);function n(e,r,t){var n=this,a=(0,s.useRef)(null),i=(0,s.useRef)(0),c=(0,s.useRef)(null),l=(0,s.useRef)([]),u=(0,s.useRef)(),o=(0,s.useRef)(),d=(0,s.useRef)(e),m=(0,s.useRef)(!0);d.current=e;var f="u">typeof window,h=!r&&0!==r&&f;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var x=!!(t=t||{}).leading,p=!("trailing"in t)||!!t.trailing,w="maxWait"in t,v="debounceOnServer"in t&&!!t.debounceOnServer,y=w?Math.max(+t.maxWait||0,r):null;return(0,s.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]),(0,s.useMemo)(function(){var e=function(e){var r=l.current,t=u.current;return l.current=u.current=null,i.current=e,o.current=d.current.apply(t,r)},t=function(e,r){h&&cancelAnimationFrame(c.current),c.current=h?requestAnimationFrame(e):setTimeout(e,r)},s=function(e){if(!m.current)return!1;var t=e-a.current;return!a.current||t>=r||t<0||w&&e-i.current>=y},g=function(r){return c.current=null,p&&l.current?e(r):(l.current=u.current=null,o.current)},b=function e(){var n=Date.now();if(s(n))return g(n);if(m.current){var c=r-(n-a.current);t(e,w?Math.min(c,y-(n-i.current)):c)}},j=function(){if(f||v){var d=Date.now(),h=s(d);if(l.current=[].slice.call(arguments),u.current=n,a.current=d,h){if(!c.current&&m.current)return i.current=a.current,t(b,r),x?e(a.current):o.current;if(w)return t(b,r),e(a.current)}return c.current||t(b,r),o.current}};return j.cancel=function(){c.current&&(h?cancelAnimationFrame(c.current):clearTimeout(c.current)),i.current=0,l.current=a.current=u.current=c.current=null},j.isPending=function(){return!!c.current},j.flush=function(){return c.current?g(Date.now()):o.current},j},[x,w,r,y,p,h,f,v])}},26053:(e,r,t)=>{"use strict";t.d(r,{o:()=>u});var s=t(31901),n=t(21024),a=t.n(n),i=t(97108),c=t(95289),l=t(92801);let u=({item:e=null,metricGroup:r=null,timeframeKey:t="",hasExpansion:n=!1})=>{let u=(0,i.p)(e?.metrics?.find(e=>e?.metricKey===r?.key)?.createdAt),o=`${r?.label??""}${r?.withTimeframe?` ${t}`:""}`,d=r?.withTimeframe?r?.tooltipTextObj(t):r?.tooltipTextObj,m=d?.isRaver;return(0,s.jsx)(c.NA,{text:m?(0,s.jsx)(l.i,{}):d?.text??"",textClassName:a()("break-words whitespace-normal text-left",{"!w-[280px]":m}),updatedTimeStatus:m?void 0:u,withExpansion:!m&&n,children:(0,s.jsx)("div",{className:"flex flex-row items-center justify-end w-full gap-1 whitespace-nowrap z-[2]",children:(0,s.jsx)("p",{className:a()("text-xs font-bold text-contrast-3 whitespace-nowrap leading-[1.25] flex items-center gap-1",{"whitespace-normal text-left":String(o).length>20}),children:m?(0,s.jsxs)(s.Fragment,{children:["Effectiveness",(0,s.jsx)("span",{className:"icon icon-candy !bg-contrast-2"})]}):o})})})}},26405:(e,r,t)=>{"use strict";t.d(r,{Y:()=>d,m:()=>m});var s=t(31901),n=t(27529),a=t(60768),i=t(85160),c=t(13319),l=t(28825),u=t(43839);let o=(0,n.createContext)({}),d=({getDefaultSortBy:e=()=>{},getDefaultColumns:r=()=>{},defaultTimeframe:t=i.o5,categories:d=[],sortByChoices:m=[],item:f=null,children:h})=>{let[x,p]=(0,n.useState)(null),w=(0,u.useMediaPredicate)(c.q.TABLET),v=(0,u.useMediaPredicate)(c.q.DESKTOP_LG),y=(0,u.useMediaPredicate)(c.q.DESKTOP_XL),g=(0,u.useMediaPredicate)("(max-width: 1119px)"),b=(0,l.useSearchParams)(),j=b.get("timeframe"),N="true"===b.get("validatorsSelected"),k=b.get("order"),E=b.get("category"),P=(0,a.Q)(),A=(0,l.usePathname)(),$=f?.slug==="polkadot"&&E===i.lx?.PROOF_OF_STAKE;return((e=!1)=>{(0,n.useEffect)(()=>(e?(document.documentElement.style.overflowY="hidden",document.body.style.overflowY="hidden"):(document.documentElement.style.overflowY="visible",document.body.style.overflowY="visible"),()=>{document.documentElement.style.overflowY="visible",document.body.style.overflowY="visible"}),[e])})(g&&null!==x),(0,s.jsx)(o.Provider,{value:{resetParams:s=>{let n=e(s),a=A.startsWith("/asset/"),c=A.startsWith("/assets/"),l=A.startsWith("/providers/");if(!n){let e=A;c?e=`/assets/${s}`:l&&(e=`/providers/${s}`),P.push(e);return}let u=new URLSearchParams(b),o=n?j??t.key:null,d=n?k??i.DJ.key:null,m=r(s,N)??[],f={isXl:m,isLg:m,isTablet:m.slice(0,3)},h=y&&f.isXl||v&&f.isLg||w&&f.isTablet||m.slice(0,2);u.set("columns",h),u.set("sort",n.key),u.set("timeframe",o),u.set("order",d),u.set("byChange",!1),a&&u.set("category",s),$&&(u.set("verifiedFirst","false"),u.set("validatorsSelected","true")),(l||a&&!$)&&u.set("verifiedFirst","true");let x=A;c?x=`/assets/${s}`:l&&(x=`/providers/${s}`),P.replace(`${x}?${u.toString()}`)},categories:d,sortByChoices:m,openFilter:x,setOpenFilter:p},children:h})},m=()=>(0,n.useContext)(o)},28206:(e,r,t)=>{"use strict";t.d(r,{$:()=>a});var s=t(31901);let n=({className:e=""})=>(0,s.jsx)("div",{className:`animate-pulse rounded bg-sr-surface-3 ${e}`}),a=({rows:e=10,metrics:r=6})=>(0,s.jsxs)("div",{className:"font-sr-sans",children:[(0,s.jsxs)("div",{className:"mb-5 flex flex-wrap items-center gap-3",children:[(0,s.jsx)(n,{className:"h-10 w-full max-w-[280px] !rounded-sr-md"}),(0,s.jsx)(n,{className:"h-10 w-[160px] !rounded-sr-md"}),(0,s.jsx)(n,{className:"h-10 w-[110px] !rounded-sr-md"}),(0,s.jsx)(n,{className:"h-10 w-[150px] !rounded-sr-md"})]}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-sr-sm border border-sr-border bg-sr-surface shadow-sr",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-sr-border bg-sr-surface-2 px-4 py-[14px]",children:[(0,s.jsx)(n,{className:"h-[10px] w-20"}),(0,s.jsx)("div",{className:"flex gap-5",children:Array.from({length:r}).map((e,r)=>(0,s.jsx)(n,{className:"h-[10px] w-16"},r))})]}),Array.from({length:e}).map((e,t)=>(0,s.jsxs)("div",{className:"flex min-h-16 items-center gap-3 border-b border-sr-border-2 px-4 py-3 last:border-b-0",children:[(0,s.jsx)(n,{className:"h-3 w-3 shrink-0"}),(0,s.jsx)(n,{className:"h-6 w-6 shrink-0 !rounded-full"}),(0,s.jsx)(n,{className:"h-3 w-28"}),(0,s.jsx)("div",{className:"flex-1"}),Array.from({length:r}).map((e,r)=>(0,s.jsx)(n,{className:"h-3 w-16 shrink-0"},r))]},t))]})]})},43839:(e,r,t)=>{var s=t(27529);function n(e){return"function"!=typeof matchMedia?null:matchMedia(e)}function a(e){return e?{media:e.media,matches:e.matches}:null}function i(e){var r=s.useState(!1),t=r[1];s.useEffect(function(){t(!0)},[t]);var i=s.useState(function(){return a(n(e))}),c=i[1],l=s.useCallback(function(e){return c(a(e))},[c]);return(s.useEffect(function(){var r=n(e);return l(r),r&&r.addEventListener("change",l),function(){r&&r.removeEventListener("change",l)}},[l,e]),r[0])?i[0]:null}e.exports={useMedia:i,useMediaPredicate:function(e){var r=i(e);return r&&r.matches||!1}}},47587:(e,r,t)=>{"use strict";t.d(r,{k:()=>h});var s=t(31901),n=t(4956),a=t(85160),i=t(54733),c=t(43839),l=t(21024),u=t.n(l),o=t(87301),d=t(94798),m=t
1(26053),f=t(13319);let h=({className:e="",metricGroup:r=null,item:t=null,timeframeKey:l=a.o5.key,highlighted:h=!1,isLoading:x=!1,large:p=!1,minimal:w=!1,hasExpansion:v=!1,isSortable:y=!1,isShowLabel:g=!0,fullWidth:b=!1,hugContent:j=!1})=>{let N=(0,c.useMediaPredicate)(f.q.TABLET),k=t?.outputAssets?.[0]?.slug==="looped-hype"||t?.slug==="looped-hype",E=(0,n.KG)(t,k&&r?.key==="reward_rate"?"reward_rate_90d":r?.key,r?.key===a.i1?l:r?.timeframeKey),P=r?.withPercentage&&!(0,i.$n)(E)?r?.postfix==="%"?(0,n.WH)(t?.metrics,r?.key,l||a.o5.key):(0,n.$W)(t?.metrics,r?.key,l||a.o5.key):void 0,A=(0,i.aj)(E,{precision:r?.key==="price"&&r?.timeframeKey?Math.max(2,(0,n.Hz)(r?.key,E)):(0,n.Hz)(r?.key,E),forcePrecision:!1,allowEmpty:!1,withAbbreviation:r?.key!=="price",showApproximation:!0,prefix:r?.prefix??"",postfix:r?.postfix??"",showPlus:!!r?.showPlus}),$=p?32:24,S=(0,d.QS)(E,r?.key==="reward_rate"||r?.key==="gross_reward_rate"||r?.withColor&&!r?.withPercentage,r?.key),T=(0,d.tD)(P,r?.withColor),R=r?.width?parseInt(r.width,10):0,M=N||b?r?.width:r?.width?`${R-50}px`:void 0,_=w?"100px":M??a.KK,K=P<0,L=(0,i.aj)(Math.abs(P),{precision:2,forcePrecision:!1,allowEmpty:!1,withAbbreviation:!0,showApproximation:!0,postfix:"%",spaceAfterNumber:!1,showPlus:!1});return(0,s.jsxs)("div",{className:u()("flex flex-col gap-y-1",{"metric-group-highlighted":h,"metric-group-large":p,"!w-4":w},e),style:{minWidth:j?void 0:_},children:[g?(0,s.jsx)(m.o,{item:t,metricGroup:r,hasExpansion:v&&!(0,i.$n)(E),timeframeKey:l,isSortableInArchive:y}):null,(0,s.jsx)("div",{className:"flex flex-row items-center justify-end w-full gap-1 whitespace-nowrap z-[2]",children:x?(0,s.jsx)(o.EA,{width:p?`calc(${_} - 16px)`:_,height:`${$}px`,variant:o.fm,borderRadius:"8px"}):(0,s.jsxs)("div",{className:u()("flex gap-x-2 whitespace-nowrap",N&&!b?"flex-row items-center":"flex-col items-end"),children:[(0,s.jsx)("p",{className:u()(S,p?"text-xl":"text-sm"),children:A}),(0,i.$n)(P)?r?.withPercentage&&N?(0,s.jsx)("div",{className:"min-w-[50px]"}):null:(0,s.jsx)("div",{className:"flex justify-end min-w-[50px]",children:(0,s.jsx)("p",{className:u()("text-xs whitespace-nowrap",T),children:`${K?"â¼":"â²"} ${L}`})})]})})]})}},92801:(e,r,t)=>{"use strict";t.d(r,{i:()=>a});var s=t(31901),n=t(50500);let a=()=>(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("span",{children:["The ",(0,s.jsx)("b",{className:"font-bold",children:"Rated Effectiveness Rating (RAVER)"})," is a composite metric of Node Operator performance produced by Rated, with community input."]}),(0,s.jsx)(n.N,{href:"https://docs.rated.network/methodologies/ethereum/rated-effectiveness-rating",className:"text-primary dark:text-lighter-primary mt-2",blank:!0,external:!0,children:"Learn more about the methodology"})]})},97108:(e,r,t)=>{"use strict";t.d(r,{p:()=>a});var s=t(94798),n=t(27529);let a=(e="")=>{let[r,t]=(0,n.useState)(e?(0,s.g8)(e,!0):null);return(0,n.useEffect)(()=>{t(e?(0,s.g8)(e,!0):null)},[e]),(0,n.useEffect)(()=>{let r=setInterval(()=>{t(e?(0,s.g8)(e,!0):null)},6e4);return()=>{clearInterval(r)}},[e]),r}}}]);
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.