function o(n,r,d){const i=new Map([["redocly_category",{name:"Category",field:"redocly_category",type:"multi-select",values:[]}],["httpMethod",{name:"HTTP Method",field:"httpMethod",type:"tags",values:[]}],["httpPath",{name:"HTTP Path",field:"httpPath",type:"multi-select",values:[]}],["apiTitle",{name:"API Title",field:"apiTitle",type:"multi-select",values:[]}],["apiVersion",{name:"API Version",field:"apiVersion",type:"select",values:[]}]]);n.forEach((e,t)=>{i.set(e.field,{...e,values:[],index:++t})});const s=new Map([...i.entries()].sort((e,t)=>e[1].index&&t[1].index?e[1].index-t[1].index:e[1].index&&!t[1].index?1:!e[1].index&&t[1].index?-1:0)),a=r();a.size&&s.forEach((e,t)=>{const l=a.get(t);l&&(e.values=l.values)}),d(s)}export{o as resolveSearchFacets};
