PageSourceSearch

https://dawarich.app/assets/js/1a4e3797.a4ed396d.js

js dawarich.app collected 2026-10-03 22:12:11 UTC 5,821 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdawarich_app=globalThis.webpackChunkdawarich_app||[]).push([[2138],{53465(e,t,r){r.d(t,{W:()=>u});var a=r(96540),s=r(44586);const n=["zero","one","two","few","many","other"];function l(e){return n.filter(t=>e.includes(t))}const c={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,s.default)();return(0,a.useMemo)(()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:l(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 u(){const e=o();return{selectMessage:(t,r)=>function(e,t,r){const a=e.split("|");if(1===a.length)return a[0];a.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 ${a.length}: ${e}`);const s=r.select(t),n=r.pluralForms.indexOf(s);return a[Math.min(n,a.length-1)]}(r,t,e)}}},41283(e,t,r){r.r(t),r.d(t,{default:()=>k});var a=r(96540),s=r(44586),n=r(54644),l=r(5260),c=r(28774),o=r(21312),u=r(53465),i=r(34164),h=r(56347),d=r(92303),m=r(11088);const g=function(){const e=(0,d.default)(),t=(0,h.W6)(),r=(0,h.zy)(),{siteConfig:{baseUrl:a}}
1=(0,s.default)(),n=e?new URLSearchParams(r.search):null,l=n?.get("q")||"",c=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:l,searchContext:c&&Array.isArray(m.Hg)&&m.Hg.some(e=>"string"==typeof e?e===c:e.path===c)?c:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const a=new URLSearchParams(r.search);a.set("ctx",e),t.replace({search:a.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${a}search?${t.toString()}`}}};var p=r(69153),f=r(69913),x=r(86841),y=r(43810),j=r(27674),S=r(2849),w=r(4471);const C="searchContextInput_mXoe",v="searchQueryInput_CFBF",A="searchResultItem_U687",b="searchResultItemPath_uIbk",P="searchResultItemSummary_oZHr",_="searchQueryColumn_q7nx",F="searchContextColumn_oWAF";var R=r(43385),$=r(74848);function H(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,s.default)(),{selectMessage:r}=(0,u.W)(),{searchValue:n,searchContext:c,searchVersion:h,updateSearchPath:d,updateSearchContext:f}=g(),[x,y]=(0,a.useState)(n),[j,w]=(0,a.useState)(),A=`${e}${h}`,b=(0,a.useMemo)(()=>x?(0,o.translate)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:x}):(0,o.translate)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"}),[x]);(0,a.useEffect)(()=>{d(x),x?(async()=>{const e=await(0,p.w)(A,c,x,100);w(e)})():w(void 0)},[x,A,c]);const P=(0,a.useCallback)(e=>{y(e.target.value)},[]);(0,a.useEffect)(()=>{n&&n!==x&&y(n)},[n]);const[H,k]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{!async function(){(!Array.isArray(m.Hg)||c||m.dz)&&await(0,p.k)(A,c),k(!0)}()},[c,A]),(0,$.jsxs)(a.Fragment,{children:[(0,$.jsxs)(l.A,{children:[(0,$.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,$.jsx)("title",{children:b})]}),(0,$.jsxs)("div",{className:"container margin-vert--lg",children:[(0,$.jsx)("h1",{children:b}),(0,$.jsxs)("div",{className:"row",children:[(0,$.jsx)("div",{className:(0,i.A)("col",{[_]:Array.isArray(m.Hg),"col--9":Array.isArray(m.Hg),"col--12":!Array.isArray(m.Hg)}),children:(0,$.jsx)("input",{type:"search",name:"q",className:v,"aria-label":"Search",onChange:P,value:x,autoComplete:"off",autoFocus:!0})}),Array.isArray(m.Hg)?(0,$.jsx)("div",{className:(0,i.A)("col","col--3","padding-left--none",F),children:(0,$.jsxs)("select",{name:"search-context",className:C,id:"context-selector",value:c,onChange:e=>f(e.target.value),children:[m.dz&&(0,$.jsx)("option",{value:"",children:(0,o.translate)({id:"theme.SearchPage.searchContext.everywhere",message:"Everywhere"})}),m.Hg.map(e=>{const{label:r,path:a}=(0,R.p)(e,t);return(0,$.jsx)("option",{value:a,children:r},a)})]})}):null]}),!H&&x&&(0,$.jsx)("div",{children:(0,$.jsx)(S.A,{})}),j&&(j.length>0?(0,$.jsx)("p",{children:r(j.length,(0,o.translate)({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:j.length}))}):(0,$.jsx)("p",{children:(0,o.translate)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,$.jsx)("section",{children:j&&j.map(e=>(0,$.jsx)(T,{searchResult:e},e.document.i))})]})]})}function T({searchResult:{document:e,type:t,page:r,tokens:a,metadata:s}}){const n=t===f.i.Title,l=t===f.i.Keywords,o=t===f.i.Description,u=o||l,i=n||u,h=t===f.i.Content,d=(n?e.b:r.b).slice(),g=h||u?e.s:e.t;i||d.push(r.t);let p="";if(m.CU&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);p=`?${e.toString()}`}return(0,$.jsxs)("article",{className:A,children:[(0,$.jsx)("h2",{children:(0,$.jsx)(c.default,{to:e.u+p+(e.h||""),dangerouslySetInnerHTML:{__html:h||u?(0,x.Z)(g,a):(0,y.C)(g,(0,j.g)(s,"t"),a,100)}})}),d.length>0&&(0,$.jsx)("p",{className:b,children:(0,w.$)(d)}),(h||o)&&(0,$.jsx)("p",{className:P,dangerouslySetInnerHTML:{__html:(0,y.C)(e.t,(0,j.g)(s,"t"),a,100)}})]})}const k=function(){return(0,$.jsx)(n.A,{children:(0,$.jsx)(H,{})})}}}]);

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.