import{F as n}from"./p-2b31742f.js";import{s as l}from"./p-c78d1e1b.js";async function o(o,i,e){let t=((null==l?void 0:l.services)||[]).filter((n=>!i||"function"!=typeof i||i(n)));return(null==o?void 0:o.length)&&(t=new n(t,{keys:["name","description"]}).search(o,{limit:e}).map((n=>null==n?void 0:n.item))),t}function i(n){return n.replace(/\s{2,}/g," ").trim().toLowerCase()}function e(){return[...new Set(((null==l?void 0:l.services)||[]).map((n=>i(null==n?void 0:n.tab))))].sort(((n,l)=>n>l?1:-1)).filter((n=>null==n?void 0:n.length)).map((n=>({label:n,value:n})))}export{i as c,e as g,o as s}