1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2421],{2421:(e,s,t)=>{t.r(s),t.d(s,{PdfRenderer:()=>x});var a=t(62172),r=t(73612);t(14722),t(49988);var l=t(34356),n=t(49004),o=t(39573),c=t(94896),i=t(52013),d=t(99026),m=t(71444);function x(e){let s,t,i,x,f,b,h,p,y,N,g,j,w=(0,r.c)(24),{pdfUrl:v,onLoadError:_}=e,[S,A]=(0,c.useState)(0),[E,k]=(0,c.useState)(1),[P,C]=(0,c.useState)(void 0),L=(0,c.useRef)(null);w[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=L.current;if(!e)return;let s=new ResizeObserver(e=>{for(let s of e)C(s.contentRect.width)});return s.observe(e),()=>s.disconnect()},t=[],w[0]=s,w[1]=t):(s=w[0],t=w[1]),(0,c.useEffect)(s,t),w[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let{numPages:s}=e;A(s)},w[2]=i):i=w[2];let R=i;w[3]===Symbol.for("react.memo_cache_sentinel")?(x=()=>k(u),w[3]=x):x=w[3];let D=x;w[4]!==S?(f=()=>k(e=>Math.min(e+1,S)),w[4]=S,w[5]=f):f=w[5];let M=f;return w[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsxs)("div",{className:"flex flex-col gap-4 p-6",children:[(0,a.jsx)(l.EAD,{className:"h-8 w-3/4"}),(0,a.jsx)(l.EAD,{className:"h-[500px] w-full"})]}),w[6]=b):b=w[6],w[7]!==P?(h=void 0!==P&&{width:P},w[7]=P,w[8]=h):h=w[8],w[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)("div",{className:"p-6",children:(0,a.jsx)(l.EAD,{className:"h-[500px] w-full"})}),w[9]=p):p=w[9],w[10]!==E||w[11]!==h?(y=(0,a.jsx)(d.A,{pageNumber:E,...h,loading:p,renderAnnotationLayer:!0,renderTextLayer:!0}),w[10]=E,w[11]=h,w[12]=y):y=w[12],w[13]!==_||w[14]!==v||w[15]!==y?(N=(0,a.jsx)(m.A,{file:v,onLoadSuccess:R,onLoadError:_,loading:b,children:y}),w[13]=_,w[14]=v,w[15]=y,w[16]=N):N=w[16],w[17]!==M||w[18]!==S||w[19]!==E?(g=S>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 border-t border-color-base bg-white px-4 py-3",children:[(0,a.jsxs)("button",{onClick:D,disabled:E<=1,className:"inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-primary transition-colors hover:bg-base disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Previous page",children:[(0,a.jsx)(n.A,{className:"h-4 w-4"}),"Previous"]}),(0,a.jsxs)("span",{className:"text-sm text-secondary",children:["Page ",E," of ",S]}),(0,a.jsxs)("button",{onClick:M,disabled:E>=S,className:"inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-primary transition-colors hover:bg-base disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Next page",children:["Next",(0,a.jsx)(o.A,{className:"h-4 w-4"})]})]}),w[17]=M,w[18]=S,w[19]=E,w[20]=g):g=w[20],w[21]!==N||w[22]!==g?(j=(0,a.jsxs)("div",{ref:L,children:[N,g]}),w[21]=N,w[22]=g,w[23]=j):j=w[23],j}function u(e){return Math.max(e-1,1)}i.EA.workerSrc=new t.U(t(67993)).toString()}}]);
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.