| "use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{88824:(e,t,a)=>{a.d(t,{c:()=>o});var r=a(67294),n=a(52263);const l=["zero","one","two","few","many","other"];function s(e){return l.filter((t=>e.includes(t)))}const c={locale:"en",pluralForms:s(["one","other"]),select:e=>1===e?"one":"other"};function u(){const{i18n:{currentLocale:e}}=(0,n.Z)();return(0,r.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:s(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),c}}),[e])}function o(){const e=u();return{selectMessage:(t,a)=>function(e,t,a){const r=e.split("|");if(1===r.length)return r[0];r.length>a.pluralForms.length&&console.error(`For locale=${a.locale}, a maximum of ${a.pluralForms.length} plural forms are expected (${a.pluralForms.join(",")}), but the message contains ${r.length}: ${e}`);const n=a.select(t),l=a.pluralForms.indexOf(n);return r[Math.min(l,r.length-1)]}(a,t,e)}}},51473:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var r=a(67294),n=a(52263),l=a(63929),s=a(35742),c=a(39960),u=a(95999),o=a(60373),m=a(88824),h=a(80143),i=a(16550),p=a(10412);const d="q";const g=function(){const e=(0,i.k6)(),t=(0,i.TH)(),{siteConfig:{baseUrl:a}}=(0,n.Z)();return{searchValue:p.Z.canUseDOM&&new URLSearchParams(t.search).get(d)||"",updateSearchPath:a=>{const r=new URLSearchParams(t.search);a?r.set(d,a):r.delete(d),e.replace({search:r.toString()})},generateSearchPageLink:e=>`${a}search?q=${encodeURIComponent(e)}`}};var f=a(90022),y=a(98202),E=a(82539),I=a(10726),S=a(91073),R=a(80311);const w={searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr"};var b=a(73926);function P(){const{siteConfig:{baseUrl:e}}=(0,n.Z)(),t=(0,h.gA)();let a=e;const{preferredVersion:l}=(0,o.J)(t?.pluginId);l&&!l.isLast&&(a=l.path+"/");const{selectMessage:c}=(0,m.c)(),{searchValue:i,updateSearchPath:p}=g(),[d,E]=(0,r.useState)(i),[I,S]=(0,r.useState)(),[b,P]=(0,r.useState)(),v=(0,r.useMemo)((()=>d?(0,u.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:d}):(0,u.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[d]);(0,r.useEffect)((()=>{p(d),I&&(d?I(d,(e=>{P(e)})):P(void 0))}),[d,I]);const k=(0,r.useCallback)((e=>{E(e.target.value)}),[]);return(0,r.useEffect)((()=>{i&&i!==d&&E(i)}),[i]),(0,r.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=await(0,f.w)(a);S((()=>(0,y.v)(e,t,100)))}()}),[a]),r.createElement(r.Fragment,null,r.createElement(s.Z,null,r.createElement("meta",{property:"robots",content:"noindex, follow"}),r.createElement("title",null,v)),r.createElement("div",{className:"container margin-vert--lg"},r.createElement("h1",null,v),r.createElement("input",{type:"search",name:"q",className:w.searchQueryInput,"aria-label":"Search",onChange:k,value:d,autoComplete:"off",autoFocus:!0}),!I&&d&&r.createElement("div",null,r.createElement(R.Z,null)),b&&(b.length>0?r.createElement("p",null,c(b.length,(0,u.I)({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:b.length}))):r.createElement("p",null,(0,u.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"}))),r.createElement("section",null,b&&b.map((e=>r.createElement(F,{key:e.document.i,searchResult:e}))))))}function F(e){let{searchResult:{document:t,type:a,page:n,tokens:l,metadata:s}}=e;const u=0===a,o=2===a,m=(u?t.b:n.b).slice(),h=o?t.s:t.t;return u||m.push(n.t),r.createElement("article",{className:w.searchResultItem},r.createElement("h2",null,r.createElement(c.Z,{to:t.u+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,E.C)(h,l):(0,I.o)(h,(0,S.m)(s,"t"),l,100)}})),m.length>0&&r.createElement("p",{className:w.searchResultItemPath},(0,b.e)(m)),o&&r.createElement("p",{className:w.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,S.m)(s,"t"),l,100)}}))}const v=function(){return r.createElement(l.Z,null,r.createElement(P,null))}}}]); |