PageSourceSearch

https://tickerlens.ai/_next/static/chunks/4375.fdc6aba93a4848c6.js

js tickerlens.ai collected 2026-10-05 15:14:09 UTC 8,042 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4375],{44375:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var r=s(54568),a=s(7620),n=s(82183),l=s(77934),o=s(96163);s(86912),s(68414);var i=s(79531),c=s(2970),d=s(96180),u=s(76430),x=s(74711),h=s(45539),m=s(93385),p=s(74813);(async()=>{try{let e=await s.e(7616).then(s.bind(s,17563)),t="string"==typeof e?e:"string"==typeof e.default?e.default:void 0;t&&(n.EA.workerSrc=t)}catch(e){console.error("Failed to load PDF worker:",e)}})();let g=e=>{let{file:t,referenceArea:s,pageNumber:n,onReferenceClick:g}=e,[f,b]=(0,a.useState)(0),y=[.33,.6,.67,.75,.8,.9,1,1.1,1.25,1.5,1.75,2,3,4,5],[j,v]=(0,a.useState)(1),[N,w]=(0,a.useState)({}),[k,C]=(0,a.useState)(!1),[A,S]=(0,a.useState)(!1),[E,z]=(0,a.useState)("vertical"),[L,P]=(0,a.useState)(1),[M,T]=(0,a.useState)("1"),R=(0,a.useRef)(null),D=(0,a.useRef)({});(0,a.useEffect)(()=>C(!0),[]);let _=(0,a.useCallback)((e,t)=>{if(!k)return;let s=e.getViewport({scale:1});w(e=>({...e,[t]:{width:s.width,height:s.height}})),S(!0)},[k]),B=(0,a.useCallback)(()=>{if(!R.current||0===f)return;let e=R.current,t=1,s=0;for(let r=1;r<=f;r++){let a=D.current[r];if(!a)continue;let n=a.getBoundingClientRect(),l=e.getBoundingClientRect(),o=(Math.min(n.bottom,l.bottom)-Math.max(n.top,l.top))/n.height;o>s&&(s=o,t=r)}T(t.toString()),P(t)},[f]);(0,a.useEffect)(()=>{if(A&&n&&Array.isArray(n)&&n.length>0){let e=n[0];T(e.toString()),I(e),S(!1)}},[A]),(0,a.useEffect)(()=>{let e=R.current;if(e)return e.addEventListener("scroll",B),()=>e.removeEventListener("scroll",B)},[B]);let F=(0,a.useCallback)((e,t)=>{let s=N[t];if(!s)return{display:"none"};let r=e.top/100*s.height*j,a=e.left/100*s.width*j,n=e.width/100*s.width*j,l=e.height/100*s.height*j;return{position:"absolute",top:"".concat(r,"px"),left:"".concat(a,"px"),width:"".concat(n,"px"),height:"".concat(l,"px"),backgroundColor:e.color||"rgba(255, 235, 59, 0.3)",border:"1.5px solid ".concat(e.color||"rgba(255, 193, 7, 0.8)"),borderRadius:"2px",cursor:"pointer",zIndex:1e3,pointerEvents:"auto",transition:"background-color 150ms ease, transform 150ms ease"}},[j,N]),I=e=>{let t=Math.max(1,Math.min(e,f)),s=D.current[t];s&&R.current&&R.current.scrollTo({top:s.offsetTop-20,behavior:"smooth"})};return k?(0,r.jsxs)("div",{className:"flex flex-col h-full bg-neutral-100",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 bg-neutral-800 border-b border-gray-700 gap-4 h-14",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("span",{className:"text-sm text-gray-300 truncate max-w-14 font-medium",children:"string"==typeof t?t.split("/").pop():(null==t?void 0:t.name)||"Untitled"}),(0,r.jsx)("div",{className:"w-px h-6 bg-neutral-700"}),(0,r.jsxs)("div",{className:"flex items-center gap-2 bg-neutral-700 rounded px-3 py-1.5",children:[(0,r.jsx)("input",{type:"text",value:M,onChange:e=>T(e.target.value),onBlur:()=>I(parseInt(M)||1),onKeyDown:e=>"Enter"===e.key&&I(parseInt(M)||1),className:"w-9 bg-transparent border-0 text-center text-sm text-white focus:outline-none font-medium",placeholder:"1"}),(0,r.jsxs)("span",{className:"text-gray-400 text-sm",children:["/ ",f]})]}),(0,r.jsx)("div",{className:"w-px h-6 bg-neutral-700"}),(0,r.jsx)("button",{onClick:()=>{let e=[...y].reverse().find(e=>e<j);e&&v(e)},children:(0,r.jsx)(i.A,{size:18,className:"text-gray-300"})}),(0,r.jsxs)("span",{className:"text-gray-300 text-sm min-w-7 text-center",children:[Math.round(100*j),"%"]}),(0,r.jsx)("button",{onClick:()=>{let e=y.find(e=>e>j);e&&v(e)},children:(0,r.jsx)(c.A,{size:18,className:"text-gray-300"})}),(0,r.jsx)("div",{className:"w-px h-6 bg-neutral-700"}),(0,r.jsx)("button",{onClick:()=>v(1),children:(0,r.jsx)(d.A,{size:18,className:"text-gray-300"})}),(0,r.jsx)("div",{className:"w-px h-6 bg-neutral-700"}),(0,r.jsx)("button",{onClick:()=>z(e=>"vertical"===e?"horizontal":"vertical"),children:"vertical"===E?(0,r.jsx)(p.s8N,{className:"w-5 h-5 text-gray-300"}):(0,r.jsx)(p.EPS,{className:"w-5 h-5 text-gray-300"})}),(0,r.jsx)("button",{onClick:()=>I(L-1),disabled:L<=1,className:"py-2 px-1 hover:bg-neutral-700 rounded transition-colors disabled:opacity-40",title:"Previous page",children:(0,r.jsx)(u.A,{size:18,className:"text-gray-300",strokeWidth:2})}),(0,r.jsx)("button",{onClick:()=>I(L+1),disabled:L>=f,className:"py-2 px-1 hover:bg-neutral-700 rounded transition-colors disabled:opacity-40",title:"Next page",children:(0,r.jsx)(x.A,{size:18,className:"text-gray-300",strokeWidth:2})}),(0,r.jsx)("div",{className:"w-px h-6 bg-neutral-700"}),(0,r.jsx)("button",{onClick:()=>
1{if(!t)return;let e=window.open("","_blank");if(!e)return;let s="string"==typeof t?t:URL.createObjectURL(t);e.document.write('\n      <!DOCTYPE html>\n      <html>\n        <head>\n          <title>Print PDF</title>\n          <style>\n            body { margin: 0; }\n            iframe { border: none; width: 100%; height: 100vh; }\n          </style>\n        </head>\n        <body>\n          <iframe src="'.concat(s,'" onload="window.print()"></iframe>\n        </body>\n      </html>\n    ')),e.document.close()},className:"py-2 px-1 hover:bg-neutral-700 rounded transition-colors",title:"Print",children:(0,r.jsx)(h.A,{size:18,className:"text-gray-300",strokeWidth:2})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,r.jsx)("div",{className:"w-px h-6 bg-neutral-700"}),(0,r.jsx)("button",{onClick:()=>{},children:(0,r.jsx)(m.A,{size:18,className:"text-gray-300"})})]})]}),(0,r.jsx)("div",{ref:R,className:"flex-1 overflow-auto bg-neutral-800 relative",style:{scrollBehavior:"smooth"},children:(0,r.jsx)("div",{className:"flex ".concat("horizontal"===E?"flex-row":"flex-col"," items-center py-8 px-4 gap-8"),children:(0,r.jsx)(l.A,{file:t,onLoadSuccess:e=>{let{numPages:t}=e;b(t)},children:Array.from(Array(f),(e,t)=>{let a=t+1;return(0,r.jsxs)("div",{ref:e=>{D.current[a]=e},className:"relative ".concat("horizontal"===E?"mr-8":"mb-8"," shadow-lg mx-auto"),style:{width:N[a]?"".concat(N[a].width*j,"px"):"auto",height:N[a]?"".concat(N[a].height*j,"px"):"auto"},children:[(0,r.jsx)("div",{className:"relative inline-block",style:{transform:"scale(".concat(j,")"),transformOrigin:"top left",transition:"transform 0.25s ease-in-out",position:"absolute",top:0,left:0},children:(0,r.jsx)(o.A,{pageNumber:a,scale:1,renderTextLayer:!0,renderAnnotationLayer:!0,onLoadSuccess:e=>_(e,a)})}),(0,r.jsx)("div",{className:"absolute inset-0",style:{zIndex:10,pointerEvents:"none"},children:(s[a]||[]).map((e,t)=>(0,r.jsx)("div",{style:F(e,a),onClick:()=>null==g?void 0:g(e),onMouseEnter:t=>{t.currentTarget.style.backgroundColor=e.color||"rgba(255,235,59,0.5)",t.currentTarget.style.transform="scale(1.03)"},onMouseLeave:t=>{t.currentTarget.style.backgroundColor=e.color||"rgba(255,235,59,0.3)",t.currentTarget.style.transform="scale(1)"},title:e.text,className:"group",children:e.text&&(0,r.jsx)("div",{className:"absolute bottom-full left-0 mb-2 bg-neutral-900 text-white text-xs px-2 py-1 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:e.text})},"".concat(a,"-").concat(t)))})]},a)})})})}),(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 bg-neutral-800 border-t border-gray-700 text-xs text-gray-400 h-10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsxs)("span",{children:["Page ",L," of ",f]}),(0,r.jsxs)("span",{children:["Zoom: ",Math.round(100*j),"%"]}),(0,r.jsxs)("span",{children:["Layout: ",E]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("span",{children:"PDF Viewer"}),(0,r.jsx)("span",{children:"Scroll to navigate"})]})]})]}):(0,r.jsxs)("div",{className:"flex flex-col h-full bg-neutral-100",children:[(0,r.jsx)("div",{className:"h-14 bg-neutral-800 animate-pulse"}),(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,r.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-neutral-800"})})]})}}}]);

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.