PageSourceSearch

https://getverdict.com/help/assets/js/1a4e3797.87e48e3d.js

js getverdict.com collected 2026-10-02 06:28:28 UTC 5,757 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_verdict_docs=self.webpackChunk_verdict_docs||[]).push([[2138],{46260:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var s=r(22155),a=r(86824),n=r(83575),c=r(52398),l=r(86336),o=r(7147);const u=["zero","one","two","few","many","other"];function i(e){return u.filter((t=>e.includes(t)))}const h={locale:"en",pluralForms:i(["one","other"]),select:e=>1===e?"one":"other"};function d(){const{i18n:{currentLocale:e}}=(0,a.A)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:i(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`),h}}),[e])}function m(){const e=d();return{selectMessage:(t,r)=>function(e,t,r){const 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}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}var p=r(35284),g=r(20856),f=r(75625),x=r(4625);const y=function(){const e=(0,f.A)(),t=(0,g.W6)(),r=(0,g.zy)(),{siteConfig:{baseUrl:s}}
1=(0,a.A)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(x.Hg)&&x.Hg.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var j=r(68071),S=r(22578),v=r(61365),A=r(5045),C=r(99816),w=r(52734),_=r(33643),P=r(65203);const b="searchContextInput_n96d",R="searchQueryInput_H7A5",T="searchResultItem_c0dJ",$="searchResultItemPath_rUcF",F="searchResultItemSummary_Mrzo",H="searchQueryColumn_SZzj",I="searchContextColumn_Czpx";var z=r(19925),N=r(65723);function L(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.A)(),{selectMessage:r}=m(),{searchValue:n,searchContext:l,searchVersion:u,updateSearchPath:i,updateSearchContext:h}=y(),[d,g]=(0,s.useState)(n),[f,v]=(0,s.useState)(),[A,C]=(0,s.useState)(),w=`${e}${u}`,P=(0,s.useMemo)((()=>d?(0,o.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:d}):(0,o.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[d]);(0,s.useEffect)((()=>{i(d),f&&(d?f(d,(e=>{C(e)})):C(void 0))}),[d,f]);const T=(0,s.useCallback)((e=>{g(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==d&&g(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(x.Hg)||l||x.dz?await(0,j.Z)(w,l):{wrappedIndexes:[],zhDictionary:[]};v((()=>(0,S.m)(e,t,100)))}()}),[l,w]),(0,N.jsxs)(s.Fragment,{children:[(0,N.jsxs)(c.A,{children:[(0,N.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,N.jsx)("title",{children:P})]}),(0,N.jsxs)("div",{className:"container margin-vert--lg",children:[(0,N.jsx)("h1",{children:P}),(0,N.jsxs)("div",{className:"row",children:[(0,N.jsx)("div",{className:(0,p.A)("col",{[H]:Array.isArray(x.Hg),"col--9":Array.isArray(x.Hg),"col--12":!Array.isArray(x.Hg)}),children:(0,N.jsx)("input",{type:"search",name:"q",className:R,"aria-label":"Search",onChange:T,value:d,autoComplete:"off",autoFocus:!0})}),Array.isArray(x.Hg)?(0,N.jsx)("div",{className:(0,p.A)("col","col--3","padding-left--none",I),children:(0,N.jsxs)("select",{name:"search-context",className:b,id:"context-selector",value:l,onChange:e=>h(e.target.value),children:[x.dz&&(0,N.jsx)("option",{value:"",children:(0,o.T)({id:"theme.SearchPage.searchContext.everywhere",message:"Everywhere"})}),x.Hg.map((e=>{const{label:r,path:s}=(0,z.p)(e,t);return(0,N.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!f&&d&&(0,N.jsx)("div",{children:(0,N.jsx)(_.A,{})}),A&&(A.length>0?(0,N.jsx)("p",{children:r(A.length,(0,o.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:A.length}))}):(0,N.jsx)("p",{children:(0,o.T)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,N.jsx)("section",{children:A&&A.map((e=>(0,N.jsx)(U,{searchResult:e},e.document.i)))})]})]})}function U({searchResult:{document:e,type:t,page:r,tokens:s,metadata:a}}){const n=t===v.i.Title,c=t===v.i.Keywords,o=t===v.i.Description,u=o||c,i=n||u,h=t===v.i.Content,d=(n?e.b:r.b).slice(),m=h||u?e.s:e.t;i||d.push(r.t);let p="";if(x.CU&&s.length>0){const e=new URLSearchParams;for(const t of s)e.append("_highlight",t);p=`?${e.toString()}`}return(0,N.jsxs)("article",{className:T,children:[(0,N.jsx)("h2",{children:(0,N.jsx)(l.A,{to:e.u+p+(e.h||""),dangerouslySetInnerHTML:{__html:h||u?(0,A.Z)(m,s):(0,C.C)(m,(0,w.g)(a,"t"),s,100)}})}),d.length>0&&(0,N.jsx)("p",{className:$,children:(0,P.$)(d)}),(h||o)&&(0,N.jsx)("p",{className:F,dangerouslySetInnerHTML:{__html:(0,C.C)(e.t,(0,w.g)(a,"t"),s,100)}})]})}const k=function(){return(0,N.jsx)(n.A,{children:(0,N.jsx)(L,{})})}}}]);

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.