1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1637],{2001:(e,t,s)=>{"use strict";s.d(t,{a:()=>h});var n=s(95155),a=s(78353),l=s.n(a),r=s(12115),o=s(52596),i=s(42031),c=s(72353),u=s(19756),d=s.n(u);l().setAppElement("body");let _=e=>{let{title:t}=e;return t?(0,r.isValidElement)(t)?t:(0,n.jsx)(c.f_,{as:"h2",className:d().title,children:t}):(0,n.jsx)("span",{className:d().spacer})},h=e=>{let{children:t,title:s,closeLabel:a,className:r,bodyOpenClassName:c,onRequestClose:u,...h}=e;return(0,n.jsxs)(l(),{className:(0,o.A)(d().content,r),portalClassName:d().portal,bodyOpenClassName:(0,o.A)(d().bodyOpen,c),onRequestClose:u,...h,children:[(0,n.jsxs)("div",{className:d().header,children:[(0,n.jsx)(_,{title:s}),(0,n.jsxs)("button",{className:d().close,onClick:u,children:[(0,n.jsx)(i.A,{"aria-hidden":!0})," ",(0,n.jsx)("span",{className:"visually-hidden",children:null!=a?a:"Close"})]})]}),t]})}},8792:(e,t,s)=>{"use strict";let n;s.d(t,{IW:()=>y,s6:()=>d,pV:()=>_,aE:()=>o});var a=s(95155),l=s(12115),r=s(25580);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"term",[s,n]=(0,l.useState)([]),[o,i]=(0,l.useState)(!1),c=(0,l.useCallback)(s=>{let n=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),l=s.match(RegExp(n,"i"));if(l){if(l.index){let n=s.slice(0,l.index),r=s.slice(l.index+e.length);return(0,a.jsxs)(a.Fragment,{children:[n,(0,a.jsx)("span",{className:t,children:l[0]}),r]})}{let n=s.slice(e.length);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:t,children:l[0]}),n]})}}return s},[t,e]);return((0,l.useEffect)(()=>{if(!e){n([]);return}i(!0),(0,r.K)().get("/search/suggestions?query="+encodeURIComponent(e)).then(e=>{n(e.map(e=>({value:e,label:c(e)})))}).finally(()=>i(!1))},[e,c]),e)?{options:s,loading:o}:{options:[],loading:!1}};var i=s(52596),c=s(67027),u=s.n(c);let d=e=>{let{selectedIndex:t}=e,s=(0,i.$)(u().list,e.className);return(0,a.jsx)("ul",{role:"listbox",className:s,children:e.items.map((s,n)=>{let l=(0,i.$)(u().option,e.optionClassName,{[u().active]:n===t});return(0,a.jsx)("li",{className:l,onClick:()=>{var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,s.value)},role:"option","aria-selected":n===t,children:s.label},n+s.value)})})},_=(e,t)=>s=>{if("ArrowUp"===s.key){let s=(null===e?t:e)-1;return s>=0?s:t-1}if("ArrowDown"===s.key){let s=(null===e?-1:e)+1;return s<t?s:0}};var h=s(15800),p=s(62932),m=s(31397);let g=(e,t)=>t instanceof Node&&!e.contains(t),x=(e,t)=>{(0,l.useEffect)(()=>{let s=s=>{let{target:n}=s;e.current&&n&&g(e.current,n)&&t()};return document.addEventListener("click",s,!0),()=>{document.removeEventListener("click",s,!0)}},[t,e])},f=e=>{let[t,s]=(0,l.useState)(""),[a]=(0,l.useState)(e);return(0,l.useEffect)(()=>(n=window.setTimeout(()=>{!function e(t,l){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=a[t];s(o.slice(0,l)),n=window.setTimeout(()=>{let s=r?l-2:l+1;if(!r&&s>o.length){e(t,o.length,!0);return}if(r&&s<0){let s=t+1;s>=a.length&&(s=0),e(s,0,!1);return}e(t,s,r)},r?120:300)}(0,0)},300),()=>{window.clearTimeout(n)}),[a]),t};var S=s(81891),v=s(64327),N=s.n(v);let y=e=>{let[t,s]=(0,l.useState)(e.query||""),[n,r]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),g=(0,l.useRef)(null),[v,y]=(0,l.useTransition)(),{i18n:j,_:b}=(0,h.uB)(),{options:w}=o(n?t:"",N().term),C=_(c,w.length),M=f([j._({id:"r8fIug"}),j._({id:"kfqQxW"}),j._({id:"jAU5pr"})]);x(g,()=>r(!1));let{onSubmit:E}=e,A=null!==c&&w[c]?w[c].value:t,O=(0,i.$)(N().host,e.className);return(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),s(A),r(!1),y(()=>{null==E||E(A)})},ref:g,className:O,children:[(0,a.jsx)("input",{type:"search",name:"q",className:N().field,value:A,onChange:e=>s(e.currentTarget.value.trimStart()),onInput:e=>{e.currentTarget.value&&r(!0),u(null)},onFocus:e=>{e.currentTarget.value&&r(!0)},onKeyUp:e=>{let t=C(e);"number"==typeof t&&u(t)},"aria-label":j._({id:"A1taO8"}),placeholder:M,autoComplete:"off"}),(0,a.jsxs)(p.$,{type:"submit",variant:"filled",color:"primary",className:N().button,children:[v?(0,a.jsx)(m.y,{size:24,"aria-hidden":!0}):(0,a.jsx)(S.A,{"aria-hidden":!0}),(0,a.jsx)("span",{className:"visually-hidden",children:(0,a.jsx)(h.x6,{id:"KujtjC"})})]}),n&&w.length>0&&(0,a.jsx)("div",{className:N().dropdown,children:(0,a.jsx)(d,{items:w,selectedIndex:c,optionClassName:N().suggestion,onSelect:e=>{s(e),r(!1),null==E||E(e),y(()=>{null==E||E(e)})}})})]})}},19756:e=>{e.exports={content:"Modal_content__Ic_8a",close:"Modal_close__GeKjq",header:"Modal_header__ryrZs",title:"Modal_title__0H__6",spacer:"Modal_spacer__q_NKf",portal:"Modal_portal__fcIIY",bodyOpen:"Modal_bodyOpen__V3CSE"}},31397:(e,t,s)=>{"use strict";s.d(t,{y:()=>o});var n=s(95155),a=s(55586),l=s.n(a),r=s(52596);let o=e=>{let{size:t}=e;return(0,n.jsx)("svg",{className:(0,r.$)(l().spinner,e.className),viewBox:"0 0 50 50",style:{fontSize:"number"==typeof t?"".concat(t,"px"):t},children:(0,n.jsx)("circle",{className:l().path,cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})})}},42031:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var n,a=s(12115);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}let r=function(e){return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{fill:"currentColor",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})))}},48577:e=>{e.exports={overlay:"SearchSuggestionsModal_overlay__W0V9V",content:"SearchSuggestionsModal_content__N_y1L",bar:"SearchSuggestionsModal_bar__TPbVW",control:"SearchSuggestionsModal_control__RziU_",icon:"SearchSuggestionsModal_icon__XOeV7",term:"SearchSuggestionsModal_term__1tpqh",suggestion:"SearchSuggestionsModal_suggestion__4xS2R",bodyOpen:"SearchSuggestionsModal_bodyOpen__n9Ktn"}},55586:e=>{e.exports={spinner:"Spinner_spinner__FNgNB",rotate:"Spinner_rotate__tqUxU",path:"Spinner_path__Noyyq",dash:"Spinner_dash__u9bAk"}},56961:e=>{e.exports={h1:"Heading_h1__8zXlH",h2:"Heading_h2__sXeoP",h3:"Heading_h3__HLxUS",h4:"Heading_h4__DE44M"}},64327:e=>{e.exports={host:"SearchBar_host__PP0QQ",field:"SearchBar_field__0w1cg",button:"SearchBar_button__6Aeot",dropdown:"SearchBar_dropdown__MpRi4",suggestion:"SearchBar_suggestion__rTnfX",term:"SearchBar_term__wf1Jh"}},67027:e=>{e.exports={list:"SearchSuggestionsList_list__ZAthX",option:"SearchSuggestionsList_option__gYa7p",active:"SearchSuggestionsList_active__VzWIo"}},71637:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SearchSuggestionsModal:()=>m});var n=s(95155),a=s(12115),l=s(15800),r=s(35695),o=s(2001),i=s(31397),c=s(43766),u=s(77426),d=s(8792),_=s(81891),h=s(48577),p=s.n(h);let m=e=>{let[t,s]=(0,a.useState)(""),{options:h,loading:m}=(0,d.aE)(t,p().term),[g,x]=(0,a.useState)(null),{i18n:f,_:S}=(0,l.uB)(),v=(0,c.G4)(),N=(0,r.useRouter)(),y=t.length>0?[...h,{value:t,label:f._({id:"kfAF3R",values:{searchTerm:t}})}]:h,j=(0,d.pV)(g,y.length),b=v("/find"),w=t=>{var s;let n=new URLSearchParams({q:t}),a="".concat(b,"?").concat(n.toString());(0,u.s)("search",{search_term:t}),N.push(a),null===(s=e.onClose)||void 0===s||s.call(e)},C=null!==g&&y[g]?y[g].value:t;return(0,n.jsxs)(o.a,{isOpen:e.open,title:f._({id:"0M32yf"}),onRequestClose:e.onClose,overlayClassName:p().overlay,className:p().content,bodyOpenClassName:p().bodyOpen,children:[(0,n.jsxs)("form",{className:p().bar,onSubmit:e=>{e.preventDefault(),w(C)},children:[m&&(0,n.jsx)(i.y,{size:24,className:p().icon}),!m&&(0,n.jsx)(_.A,{className:p().icon,"aria-hidden":!0}),(0,n.jsx)("input",{type:"search",name:"search_term",className:p().control,value:C,placeholder:f._({id:"PTwEpy"}),onInput:e=>{s(e.currentTarget.value.trimStart()),x(null)},onKeyUp:e=>{let t=j(e);"number"==typeof t&&x(t)}
1,autoFocus:!0,autoComplete:"off","aria-label":f._({id:"A1taO8"})})]}),(0,n.jsx)(d.s6,{items:y,selectedIndex:g,onSelect:w,optionClassName:p().suggestion})]})}},72353:(e,t,s)=>{"use strict";s.d(t,{_:()=>o,_B:()=>c,fV:()=>i,f_:()=>u});var n=s(95155),a=s(52596),l=s(56961),r=s.n(l);let o=e=>{let{children:t,as:s,className:l,...o}=e,i=(0,a.$)(r().h1,e.className);return(0,n.jsx)(s||"h1",{className:i,...o,children:t})},i=e=>{let{children:t,as:s,className:l,...o}=e,i=(0,a.$)(r().h2,l);return(0,n.jsx)(s||"h2",{className:i,...o,children:t})},c=e=>{let{children:t,as:s,className:l,...o}=e,i=(0,a.$)(r().h3,l);return(0,n.jsx)(s||"h3",{className:i,...o,children:t})},u=e=>{let{children:t,as:s,className:l,...o}=e,i=(0,a.$)(r().h4,l);return(0,n.jsx)(s||"h4",{className:i,...o,children:t})}}}]);
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.