1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3569],{3569:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var n=r(37876),l=r(14232),s=r(14969);let c=e=>{let{targetRef:t,showPercent:r=!0}=e,c=(null==t?void 0:t.current)||t,[u,i]=(0,l.useState)(0),a=(0,l.useRef)(u),d=(0,l.useRef)(null);(0,l.useEffect)(()=>{a.current=u},[u]);let o=(0,l.useCallback)(()=>{d.current=null;let e=c||s.isBrowser&&document.getElementById("article-wrapper");if(e){let t=e.clientHeight,r=window.pageYOffset,n=t-window.innerHeight;if(!n||n<=0)return;let l=parseFloat((r/n*100).toFixed(0));l>100&&(l=100),l<0&&(l=0),l!==a.current&&(a.current=l,i(l))}},[c]),f=(0,l.useCallback)(()=>{d.current||(d.current=requestAnimationFrame(o))},[o]);return(0,l.useEffect)(()=>(document.addEventListener("scroll",f,{passive:!0}),()=>{document.removeEventListener("scroll",f),d.current&&(cancelAnimationFrame(d.current),d.current=null)}),[f]),(0,n.jsx)("div",{className:"h-4 w-full shadow-2xl bg-gray-400 ",children:(0,n.jsx)("div",{className:"h-4 bg-indigo-400 duration-200",style:{width:"".concat(u,"%")},children:r&&(0,n.jsxs)("div",{className:"text-right text-white text-xs",children:[u,"%"]})})})}}}]);
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.