1import{g as e}from"./DBq4UlV4.js";import{o as t}from"./3FtsECbs.js";import{t as n}from"./DxswRBYr.js";var r=()=>t(`blog-categories`,()=>n(`blogCategories`).order(`id`,`ASC`).select(`path`,`title`).all()),i=t=>{let{data:n}=r();return e(()=>t?.length?n.value?.filter(e=>t.includes(e.path.substring(6))):n.value??[])},a=()=>t(`communities`,()=>n(`communities`).all().then(e=>e.filter(e=>!e.hidden))),o=new Intl.Collator(`cs`),s=e=>{let t=e.flatMap(e=>{let t=typeof e.priority==`number`?e.priority:typeof e.priority==`string`&&e.priority.trim()?Number(e.priority):NaN;return Number.isFinite(t)?[{...e,priority:t}]:[]}).sort((e,t)=>e.priority-t.priority||o.compare(e.title,t.title)||e.path.localeCompare(t.path)),n=e.reduce((e,t)=>{let n=e.get(t.region)??[];return n.push(t),e.set(t.region,n),e},new Map);return{prioritized:t,regions:Array.from(n,([e,t])=>({region:e,communities:t.slice().sort((e,t)=>o.compare(e.title,t.title)||e.path.localeCompare(t.path))})).sort((e,t)=>o.compare(e.region,t.region))}},c=async()=>{let{data:t,error:n}=await a();return{data:t,error:n,projection:e(()=>s(t.value??[]))}};export{a as i,c as n,r,i 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.