1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[660],{1660:(t,e,n)=>{n.r(e),n.d(e,{algoliaClient:()=>l});var r=n(4557);function l(t){let{indexName:e,onSearch:n,client:l,locale:i,tag:u}=t;return{deps:[e,l,i,u],async search(t){if(0===t.trim().length)return[];let s=n?await n(t,u,i):await l.searchForHits({requests:[{type:"default",indexName:e,query:t,distinct:5,hitsPerPage:10,filters:u?`tag:${u}`:void 0}]}),a=(0,r.r)(t);return(function(t){let e=[],n=new Set;for(let r of t)n.has(r.url)||(n.add(r.url),e.push({id:r.url,type:"page",breadcrumbs:r.breadcrumbs,url:r.url,content:r.title})),e.push({id:r.objectID,type:r.content===r.section?"heading":"text",url:r.section_id?`${r.url}#${r.section_id}`:r.url,content:r.content});return e})(s.results[0].hits).flatMap(t=>"page"===t.type?{...t,content:a.highlightMarkdown(t.content)}:[])}}}},4557:(t,e,n)=>{n.d(e,{r:()=>s});var r=n(8999),l=n(6735);function i(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let u=(0,r.V)();function s(t){let e="string"==typeof t?function(t){let e=t.trim();if(0===e.length)return null;let n=Array.from(new Set(e.split(/\s+/).filter(Boolean)));if(0===n.length)return null;let r=n.map(i).join("|");return RegExp(`(${r})`,"gi")}(t):t;return{highlight(t){if(!e)return[{type:"text",content:t}];let n=[],r=0;for(let l of t.matchAll(e))r<l.index&&n.push({type:"text",content:t.substring(r,l.index)}),n.push({type:"text",content:l[0],styles:{highlight:!0}}),r=l.index+l[0].length;return r<t.length&&n.push({type:"text",content:t.substring(r)}),n},highlightMarkdown(t){var n,r;if(!e)return t;let i=u.parse(t);return n=i,r=e,(0,l.YR)(n,"text",t=>{let e="",n=t.value,l=0;for(let t of n.matchAll(r))l<t.index&&(e+=n.substring(l,t.index)),e+=`<mark>${t[0]}</mark>`,l=t.index+t[0].length;l<n.length&&(e+=n.substring(l)),t.type="html",t.value=e}),u.stringify(i)}}}}}]);
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.