1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{Bn as t,Fn as n,Ln as r,_n as i,yn as a}from"./ui-vendor-DjPL_jpu.js";import{f as o}from"./StarGA-D-GwcMTD.js";import{a as s}from"./typography-BN1TCsKD.js";import"./theme-CGmrP4C_.js";import{t as c}from"./SmartLink-iv5Ph-Ce.js";import{t as l}from"./scroll-Cogdr4vM.js";var u=e(t(),1),d=r(),f=e=>e.split(`/ `).toString().split(`/`).pop(),p=n(),m=({children:e,className:t,onClick:n,link:r,focusEffectTag:a})=>{let c=(0,u.useRef)(null),[l,d]=(0,u.useState)(s.colorBaseBlue900),{classes:f,cx:m}=v({_focusEffectTag:a,_hoverUnderlineColor:l})(),h=(e,t)=>{n&&n(e),t.endsWith(`.pdf`)&&o(t)};return(0,u.useEffect)(()=>{if(c.current&&a){let e=c.current.querySelector(a);if(e){let t=getComputedStyle(e).color;d(t)}}},[a]),(0,p.jsx)(i,{ref:c,onClick:e=>h(e,r),className:m(t,{[f.link]:!!a}),sx:{[`& ${a}::after`]:{backgroundColor:l}},children:e})},h=e=>{let t=(0,d.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({link:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=()=>l(n),t[3]=n,t[4]=i);let a;t[5]!==r||t[6]!==i?(a={onClick:i,...r},t[5]=r,t[6]=i,t[7]=a):a=t[7];let o;return t[8]!==n||t[9]!==a?(o=(0,p.jsx)(m,{tabIndex:0,link:n,...a}),t[8]=n,t[9]=a,t[10]=o):o=t[10],o},g=e=>{let t=(0,d.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({link:r,title:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]!==n||t[6]!==r||t[7]!==i?(o=(0,p.jsx)(m,{link:r,...i,children:n}),t[5]=n,t[6]=r,t[7]=i,t[8]=o):o=t[8];let s;return t[9]!==r||t[10]!==o||t[11]!==a?(s=(0,p.jsx)(c,{href:r,title:a,children:o}),t[9]=r,t[10]=o,t[11]=a,t[12]=s):s=t[12],s},_=e=>{let t=(0,d.c)(25),n,r,i,a;if(t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({link:r,title:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a),r&&r.toLowerCase().endsWith(`.pdf`)){let e;t[5]!==n||t[6]!==r||t[7]!==i?(e=(0,p.jsx)(m,{link:r,...i,children:n}),t[5]=n,t[6]=r,t[7]=i,t[8]=e):e=t[8];let o;return t[9]!==r||t[10]!==e||t[11]!==a?(o=(0,p.jsx)(`a`,{href:r,title:a,target:`_blank`,rel:`noopener noreferrer`,children:e}),t[9]=r,t[10]=e,t[11]=a,t[12]=o):o=t[12],o}if(r&&r.startsWith(`/`)){let e,a;if(t[13]===r?(e=t[14],a=t[15]):(e=f(r),a=e&&new RegExp(/^\d+$/).test(e),t[13]=r,t[14]=e,t[15]=a),e&&a){let r;return t[16]!==e||t[17]!==n||t[18]!==i?(r=(0,p.jsx)(h,{link:e,...i,children:n}),t[16]=e,t[17]=n,t[18]=i,t[19]=r):r=t[19],r}}if(!r)return null;let o;return t[20]!==n||t[21]!==r||t[22]!==i||t[23]!==a?(o=(0,p.jsx)(g,{link:r,title:a,...i,children:n}),t[20]=n,t[21]=r,t[22]=i,t[23]=a,t[24]=o):o=t[24],o},v=({_focusEffectTag:e})=>a()(()=>({link:{[`& ${e}:focus-visible`]:{outline:`3px dashed ${s.colorBaseGray900}`,outlineOffset:2,boxShadow:`none`}}}));export{f as n,_ as t};
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.