1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[932],{62932:function(t,n,l){"use strict";l.r(n),l.d(n,{FpsIndicator:function(){return m}});var a=l(52322),i=l(2784),o=l(12524),r=l.n(o),c=l(71929),f=l.n(c),d=l(92514),p=l.n(d),s=l(91714);let View=t=>{let{className:n,position:l="bottom-left"}=t,o=(0,s.v)();return(0,i.useEffect)(()=>{let t=new(f());return(t.showPanel(0),o.panel.current&&""===o.panel.current.innerHTML)?(o.panel.current.append(t.dom),requestAnimationFrame(function animate(){t.begin(),t.end(),requestAnimationFrame(animate)}),()=>{t.dom.remove(),t.end()}):void 0},[o]),(0,a.jsx)("div",{className:r()("FpsIndicator",p().root,p()[l],n),ref:o.root,children:(0,a.jsx)("div",{className:p().panel,ref:o.panel})})};View.displayName="FpsIndicator_View";let m=(0,i.memo)(t=>(0,a.jsx)(View,{...t}));m.displayName="FpsIndicator_Controller"},92514:function(t){t.exports={root:"FpsIndicator_root__RXU2K",panel:"FpsIndicator_panel__zIQNZ","bottom-left":"FpsIndicator_bottom-left__IYfKv","bottom-right":"FpsIndicator_bottom-right__AjyZ3","top-left":"FpsIndicator_top-left__UGAnP","top-right":"FpsIndicator_top-right__BNaB6",center:"FpsIndicator_center__8AsV2"}},71929:function(t){var n;t.exports=((n=function(){function e(t){return l.appendChild(t.dom),t}function u(n){for(var a=0;a<l.children.length;a++)l.children[a].style.display=a===n?"block":"none";t=n}var t=0,l=document.createElement("div");l.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",l.addEventListener("click",function(n){n.preventDefault(),u(++t%l.children.length)},!1);var a=(performance||Date).now(),i=a,o=0,r=e(new n.Panel("FPS","#0ff","#002")),c=e(new n.Panel("MS","#0f0","#020"));
1if(self.performance&&self.performance.memory)var f=e(new n.Panel("MB","#f08","#201"));return u(0),{REVISION:16,dom:l,addPanel:e,showPanel:u,begin:function(){a=(performance||Date).now()},end:function(){o++;var t=(performance||Date).now();if(c.update(t-a,200),t>i+1e3&&(r.update(1e3*o/(t-i),100),i=t,o=0,f)){var n=performance.memory;f.update(n.usedJSHeapSize/1048576,n.jsHeapSizeLimit/1048576)}return t},update:function(){a=this.end()},domElement:l,setMode:u}}).Panel=function(t,n,l){var a=1/0,i=0,o=Math.round,r=o(window.devicePixelRatio||1),c=80*r,f=48*r,d=3*r,p=2*r,s=3*r,m=15*r,h=74*r,_=30*r,v=document.createElement("canvas");v.width=c,v.height=f,v.style.cssText="width:80px;height:48px";var w=v.getContext("2d");return w.font="bold "+9*r+"px Helvetica,Arial,sans-serif",w.textBaseline="top",w.fillStyle=l,w.fillRect(0,0,c,f),w.fillStyle=n,w.fillText(t,d,p),w.fillRect(s,m,h,_),w.fillStyle=l,w.globalAlpha=.9,w.fillRect(s,m,h,_),{dom:v,update:function(f,x){a=Math.min(a,f),i=Math.max(i,f),w.fillStyle=l,w.globalAlpha=1,w.fillRect(0,0,c,m),w.fillStyle=n,w.fillText(o(f)+" "+t+" ("+o(a)+"-"+o(i)+")",d,p),w.drawImage(v,s+r,m,h-r,_,s,m,h-r,_),w.fillRect(s+h-r,m,r,_),w.fillStyle=l,w.globalAlpha=.9,w.fillRect(s+h-r,m,r,o((1-f/x)*_))}}},n)}}]);
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.