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