1var l=["Nvidia","NVIDIA","GeForce","AMD","Radeon"],p=["AMD","Intel"];function i(t,n){let r=t;for(const e of n){const a=new RegExp(`^${e}\\s+`,"i");r=r.replace(a,"")}return r.trim()}function c(t){if(!t)return{gpu:"",cpu:""};const n=t["Graphics (Model)"],r=t["CPU (Model)"],e=`${typeof n=="object"&&n!==null?n.value:n??""}`.trim(),a=`${typeof r=="object"&&r!==null?r.value:r??""}`.trim();return{gpu:i(e,l),cpu:i(a,p)}}function f(t){if(!t)return"";const n=t.match(/(\d{4}-.+)-[^-]+$/);return n?n[1]:t}function s(t){const n=f(t);return n||t||""}function d(t,n,r){const{gpu:e,cpu:a}=c(r);return{name:t,specsSummary:[e,a].filter(Boolean).join(" · "),skuVariant:s(n)}}function m(t,n,r){const{name:e,specsSummary:a,skuVariant:u}=d(t,n,r);return[e,a,u?`#${u}`:""].filter(Boolean).join(" ")}function P(t,n,r){const e=s(n),{gpu:a,cpu:u}=c(r),o=[a,u].filter(Boolean).join(", ");return o?`${t} â ${o}${e?`, #${e}`:""}`:e?`${t}â${e}`:t}export{s as a,d as i,P as n,i as o,c as r,m 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.