1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1578],{57706:function(e,t,r){r.d(t,{o:function(){return function e(t,r=!1){for(let n of Object.keys(t))void 0===t[n]&&delete t[n],r&&"object"==typeof t[n]&&null!==t[n]?e(t[n],r):r&&Array.isArray(t[n])&&t[n].forEach(t=>e(t,r));return t}}})},41578:function(e,t,r){r.d(t,{searchDocs:function(){return o}});var n=r(57706);async function o(e,t,r){let o=[],{index:i="default",client:u,params:c={}}=r;if("crawler"===i){let r=await u.search({...c,term:e,where:{category:t?{eq:t.slice(0,1).toUpperCase()+t.slice(1)}:void 0,...c.where},limit:10});if(!r)return o;if("crawler"===i){for(let e of r.hits){let t=e.document;o.push({id:e.id,type:"page",content:t.title,url:t.path},{id:"page"+e.id,type:"text",content:t.content,url:t.path})}return o}}let l={...c,term:e,where:(0,n.o)({tag:t,...c.where}),groupBy:{properties:["page_id"],maxResult:7,...c.groupBy}},a=await u.search(l);if(!a||!a.groups)return o;for(let e of a.groups){let t=!1;for(let r of e.result){let e=r.document;t||(o.push({id:e.page_id,type:"page",content:e.title,url:e.url}),t=!0),o.push({id:e.id,content:e.content,type:e.content===e.section?"heading":"text",url:e.section_id?`${e.url}#${e.section_id}`:e.url})}}return o}r(91177)}}]);
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.