1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([["5847"],{8878(e,t,r){r.d(t,{W:()=>o});var s=r(6540),a=r(898);let l=["zero","one","two","few","many","other"];function n(e){return l.filter(t=>e.includes(t))}let c={locale:"en",pluralForms:n(["one","other"]),select:e=>1===e?"one":"other"};function o(){let e=function(){let{i18n:{currentLocale:e}}=(0,a.A)();return(0,s.useMemo)(()=>{try{let t;return t=new Intl.PluralRules(e),{locale:e,pluralForms:n(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}". 2Docusaurus will fallback to the default (English) implementation. 3Error: ${t.message} 4`),c}},[e])}();return{selectMessage:(t,r)=>(function(e,t,r){let s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);let a=r.select(t);return s[Math.min(r.pluralForms.indexOf(a),s.length-1)]})(r,t,e)}}},9936(e,t,r){r.r(t),r.d(t,{default:()=>F});var s=r(4848),a=r(6540),l=r(898),n=r(6259),c=r(3572),o=r(5310),u=r(568),i=r(8878),h=r(4164),d=r(6347),m=r(9863),g=r(3681);let p=function(){let e=(0,m.A)(),t=(0,d.W6)(),r=(0,d.zy)(),{siteConfig:{baseUrl:s}}
4=(0,l.A)(),a=e?new URLSearchParams(r.search):null,n=a?.get("q")||"",c=a?.get("ctx")||"",o=a?.get("version")||"",u=e=>{let t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:n,searchContext:c&&Array.isArray(g.Hg)&&g.Hg.some(e=>"string"==typeof e?e===c:e.path===c)?c:"",searchVersion:o,updateSearchPath:e=>{let r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{let s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{let t=u(e);return`${s}search?${t.toString()}`}}};var f=r(9988),x=r(9137),y=r(177),j=r(429),S=r(1234),A=r(3962),w=r(8127),C=r(9553);function v(){let{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,l.A)(),{selectMessage:r}=(0,i.W)(),{searchValue:n,searchContext:o,searchVersion:d,updateSearchPath:m,updateSearchContext:x}=p(),[y,j]=(0,a.useState)(n),[S,w]=(0,a.useState)(),v=`${e}${d}`,F=(0,a.useMemo)(()=>y?(0,u.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:y}):(0,u.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"}),[y]);(0,a.useEffect)(()=>{m(y),y?(async()=>{w(await (0,f.w)(v,o,y,100))})():w(void 0)},[y,v,o]);let R=(0,a.useCallback)(e=>{j(e.target.value)},[]);(0,a.useEffect)(()=>{n&&n!==y&&j(n)},[n]);let[T,_]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{!async function(){(!Array.isArray(g.Hg)||o||g.dz)&&await (0,f.k)(v,o),_(!0)}()},[o,v]),(0,s.jsxs)(a.Fragment,{children:[(0,s.jsxs)(c.A,{children:[(0,s.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,s.jsx)("title",{children:F})]}),(0,s.jsxs)("div",{className:"container margin-vert--lg",children:[(0,s.jsx)("h1",{children:F}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:(0,h.A)("col",{searchQueryColumn_q7nx:Array.isArray(g.Hg),"col--9":Array.isArray(g.Hg),"col--12":!Array.isArray(g.Hg)}),children:(0,s.jsx)("input",{type:"search",name:"q",className:"searchQueryInput_CFBF","aria-label":"Search",onChange:R,value:y,autoComplete:"off",autoFocus:!0})}),Array.isArray(g.Hg)?(0,s.jsx)("div",{className:(0,h.A)("col","col--3","padding-left--none","searchContextColumn_oWAF"),children:(0,s.jsxs)("select",{name:"search-context",className:"searchContextInput_mXoe",id:"context-selector",value:o,onChange:e=>x(e.target.value),children:[g.dz&&(0,s.jsx)("option",{value:"",children:(0,u.T)({id:"theme.SearchPage.searchContext.everywhere",message:"Everywhere"})}),g.Hg.map(e=>{let{label:r,path:a}=(0,C.p)(e,t);return(0,s.jsx)("option",{value:a,children:r},a)})]})}):null]}),!T&&y&&(0,s.jsx)("div",{children:(0,s.jsx)(A.A,{})}),S&&(S.length>0?(0,s.jsx)("p",{children:r(S.length,(0,u.T)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)'},{count:S.length}))}):(0,s.jsx)("p",{children:(0,u.T)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,s.jsx)("section",{children:S&&S.map(e=>(0,s.jsx)(P,{searchResult:e},e.document.i))})]})]})}function P({searchResult:{document:e,type:t,page:r,tokens:a,metadata:l}}){let n=t===x.i.Title,c=t===x.i.Keywords,u=t===x.i.Description,i=u||c,h=n||i,d=t===x.i.Content,m=(n?e.b:r.b).slice(),p=d||i?e.s:e.t;h||m.push(r.t);let f="";if(g.CU&&a.length>0){let e=new URLSearchParams;for(let t of a)e.append("_highlight",t);f=`?${e.toString()}`}return(0,s.jsxs)("article",{className:"searchResultItem_U687",children:[(0,s.jsx)("h2",{children:(0,s.jsx)(o.A,{to:e.u+f+(e.h||""),dangerouslySetInnerHTML:{__html:d||i?(0,y.Z)(p,a):(0,j.C)(p,(0,S.g)(l,"t"),a,100)}})}),m.length>0&&(0,s.jsx)("p",{className:"searchResultItemPath_uIbk",children:(0,w.$)(m)}),(d||u)&&(0,s.jsx)("p",{className:"searchResultItemSummary_oZHr",dangerouslySetInnerHTML:{__html:(0,j.C)(e.t,(0,S.g)(l,"t"),a,100)}})]})}let F=function(){return(0,s.jsx)(n.A,{children:(0,s.jsx)(v,{})})}}}]);
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.