1import{d as m,l as o}from"./QbKjMEZN.js";function y(c,l,u,a=!0){if(!c||!l?.length)return"";const p=Array.isArray(c)?c:[c],s=l?.filter(({value:f})=>p.includes(f)&&JSON.stringify(f)!==JSON.stringify(u));return s.length?a?s.map(({label:f})=>f).join(", "):s:""}function O(c,l,u,a,p){function s(i,n,t){const e=y(i[t],n[t],o(u)[t],!1);return e?e.map(r=>({key:t,...r,fields:[{key:t,value:r.value}]})):""}function f(i,n,t){const e=y(i[t],n[t],o(u)[t],!0);return e?{key:t,label:e,fields:[t]}:""}function F(i,n){return Object.entries(i).filter(([t])=>!n.includes(t)).map(([t,e])=>({key:t,func:e}))}function A(i,n,t,e){return i.map(r=>{if(typeof r.func=="function")return r.func(n,t,r.key,e);switch(r.func){case"default-join":return f(n,t,r.key);default:return s(n,t,r.key)}}).flat().filter(Boolean)}function d(i){return Object.fromEntries(i.map(n=>{if(typeof n=="object"){const{key:t,value:e}=n;let r=o(l)[t];return Array.isArray(r)?Array.isArray(e)?r=r.filter(g=>!e.includes(g)):r=r.filter(g=>g!==e):r=o(u)[t],[t,r]}return[n,o(u)[n]]}))}const j=m(()=>{const i=F(o(c),o(a)||[]);return A(i,o(l),o(p),o(u))});return{getDefaultFunctionFormattingJoin:f,options:j,resetFields:d}}export{O as 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.