1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78],{78:(e,t,n)=>{n.d(t,{DK:()=>E,bM:()=>x});var r=n(12115),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}"function"==typeof SuppressedError&&SuppressedError;var o=function(e){return"The ".concat(e," component must be a child of Combobox. Please wrap the component inside Combobox to ensure that the required context is available.")};function i(e,t){}var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.forEach(function(e){return e&&e(t)})}},c=(0,r.createContext)({contextAvailable:!0,listboxId:"",selectedItemId:"",isExpanded:!1,currentInputValue:""}),s=function(){return(0,r.useContext)(c)},d=(0,r.forwardRef)(function(e,t){var n=e.value,u=l(e,["value"]),c=s(),f=c.contextAvailable,p=c.listboxId,v=c.isExpanded;return i(f,o(d.name)),r.createElement("input",a({autoComplete:"off"},u,{ref:t,value:n,type:"text",role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":v,"aria-controls":p}))});d.displayName="ComboboxInput";var f=function(e){var t=e.children,n=e.currentInput,o=void 0===n?"":n,i=e.as,u=void 0===i?"mark":i,c=l(e,["children","currentInput","as"]),s=(0,r.useMemo)(function(){if("string"!=typeof t)return t;var e=t.toLowerCase().indexOf(o.toLowerCase()),n=o.length;return -1!==e&&n?r.createElement(r.Fragment,null,t.substring(0,e),"mark"===u?r.createElement("mark",a({},c),t.substring(e,e+n)):r.createElement("span",a({},c),t.substring(e,e+n)),t.substring(e+n,t.length)):t},[o,t]);return r.createElement(r.Fragment,null,s)},p=(0,r.forwardRef)(function(e,t){var n,o=e.children,i=e.id,u=e.className,c=l(e,["children","id","className"]),d=s().selectedItemId,f=(n={isSelected:!!i&&i===d},(0,r.useMemo)(function(){return u&&"string"!=typeof u?u(n):u},[n,u]));return r.createElement("li",a({},c,{ref:t,id:i,className:f,role:"option"}),o)});p.displayName="ListboxOption";var v=(0,r.forwardRef)(function(e,t){var n=e.children,u=l(e,["children"]),c=s(),d=c.contextAvailable,f=c.listboxId,p=c.isExpanded;i(d,o(v.name));var m=(0,r.useRef)(p),b=(0,r.useState)(!1),E=b[0],x=b[1];return(0,r.useEffect)(function(){p?p&&p!==m.current&&x(!0):x(!1),m.current=p},[p]),r.createElement("ul",a({},u,{ref:t,id:f,role:"listbox","aria-live":E?u["aria-live"]||"polite":"off"}),n)});v.displayName="Listbox";var m=function(e){var t=e.currentInputValue,n=e.listboxId,a=e.selectedItemId,l=e.isExpanded,o=e.children,i=(0,r.useId)();return r.createElement(c.Provider,{value:{currentInputValue:t,contextAvailable:!0,listboxId:n||i,selectedItemId:a,isExpanded:void 0===l||l}},o)};m.ComboboxInput=d,m.Listbox=v,m.ListboxOption=p,m.Highlight=f;var b=function(e,t){var n=(0,r.useState)(e||""),a=n[0],l=n[1],o=(0,r.useCallback)(function(e){t?t(e):l(e)},[t]);return(0,r.useEffect)(function(){l(e||"")},[e]),[a,o]},E=function(e,t){return void 0===t&&(t=""),e.filter(function(e){return"string"!=typeof e.value||e.value.toLowerCase().includes(t.toLocaleLowerCase())})},x=(0,r.forwardRef)(function(e,t){var n,o,i,c,s,x,h,y,w,C,k,I,g,O,S,N,L,R,D,P,_,K,A,F,V,T,j,M,q=e.label,H=e.showLabel,U=void 0===H||H,z=e.items,B=e.selectedItem,G=e.value,J=e.setValue,Q=e.onSelect,W=e.placeholder,X=e.isExpanded,Y=void 0!==X&&X,Z=e.setIsExpanded,$=e.filters,ee=e.inputProps,et=e.labelProps,en=e.listboxOptionProps,er=e.listboxProps,ea=e.highlightProps,el=e.isExpandedClassName,eo=e.isCollapsedClassName,ei=void 0===eo?"":eo,eu=e.isExpandedStyle,ec=e.isCollapsedStyle,es=l(e,["label","showLabel","items","selectedItem","value","setValue","onSelect","placeholder","isExpanded","setIsExpanded","filters","inputProps","labelProps","listboxOptionProps","listboxProps","highlightProps","isExpandedClassName","isCollapsedClassName","isExpandedStyle","
1isCollapsedStyle"]),ed=(o=(n=(0,r.useState)(Y))[0],i=n[1],[o,function(e){i(e),c.current=e},c=(0,r.useRef)(Y)]),ef=ed[0],ep=ed[1],ev=ed[2],em=b(G,J),eb=em[0],eE=em[1],ex=(0,r.useId)(),eh=(0,r.useDeferredValue)(eb),ey=(s=void 0===$?[E]:$,x=(0,r.useRef)(z),h=(0,r.useMemo)(function(){return s.reduce(function(e,t){return t(e,eh)},z)},[z,s,eh]),(0,r.useEffect)(function(){x.current=h},[h]),[h,x]),ew=ey[0],eC=ey[1],ek=(0,r.useRef)(null),eI=(0,r.useRef)(null),eg=(w=(y=(0,r.useState)(B))[0],C=y[1],(0,r.useEffect)(function(){C(B)},[B]),[w,C]),eO=eg[0],eS=eg[1],eN=(I=(k={listboxRef:ek,comboboxInputRef:eI,isExpandedRef:ev,setValue:eE,onSelect:Q,itemsRef:eC,setIsExpanded:(0,r.useCallback)(function(e){return Z?Z(e):ep(e)},[Z]),setSelectedItem:eS}).itemsRef,g=k.listboxRef,O=k.comboboxInputRef,S=k.onSelect,N=k.isExpandedRef,L=k.setIsExpanded,R=k.setValue,D=k.setSelectedItem,P=(0,r.useCallback)(function(e){R&&R(e.currentTarget.value),L&&L(!0)},[R,L]),_=(0,r.useCallback)(function(){!N.current&&L&&L(!0)},[L]),K=(0,r.useCallback)(function(){N.current&&L&&L(!1)},[L]),A=(0,r.useCallback)(function(e){"Escape"===e.key&&K()},[]),F=(0,r.useCallback)(function(e){if(O.current&&g.current){var t=e.target;t&&(g.current.contains(t)||t===O.current)||K()}},[K]),V=(0,r.useCallback)(function(){if(O.current&&g.current){var e=document.activeElement;e&&(g.current.contains(e)||e===O.current)||K()}},[K]),T=(0,r.useCallback)(function(e){O.current&&O.current.focus(),R&&R(e.value),L&&L(!1),D&&D(e),S&&S(e)},[R,S,L,D]),j=(0,r.useCallback)(function(e){var t="Space"===e.code&&e.ctrlKey&&e.altKey,n="ArrowDown"===e.key||t;if(g.current&&n)if(t&&e.preventDefault(),N.current){var r=g.current.firstElementChild;r&&"function"==typeof r.focus&&r.focus()}else L&&(L(!0),window.setTimeout(function(){if(g.current){var e=g.current.firstElementChild;e&&"function"==typeof e.focus&&e.focus()}}))},[L]),M=(0,r.useCallback)(function(e){if(!I.current)return;var t=I.current.find(function(t){return t.id===e.currentTarget.id});if(t){if("Enter"===e.key)return T(t);if(g.current&&"Escape"!==e.key&&"Tab"!==e.key&&"Shift"!==e.key){if("ArrowDown"===e.key||"ArrowUp"===e.key||"Alt"===e.key){e.preventDefault();var n=null;if(!(n="ArrowDown"===e.key||"Alt"===e.key?e.currentTarget.nextElementSibling||g.current.firstElementChild:e.currentTarget.previousElementSibling||g.current.lastElementChild))return;var r=n;r&&"function"==typeof r.focus&&r.focus();return}O.current&&(O.current.focus(),O.current.dispatchEvent(new KeyboardEvent("keydown",{key:e.key})))}}},[T]),{closeOnEscape:A,handleClickOutside:F,handleFocusOutside:V,handleChange:P,expandOnFocus:_,handleSelect:T,handleKeyDownOnInput:j,handleKeyDownOnListboxOption:M}),eL=eN.handleClickOutside,eR=eN.handleFocusOutside,eD=eN.closeOnEscape,eP=eN.handleChange,e_=eN.expandOnFocus,eK=eN.handleSelect,eA=eN.handleKeyDownOnInput,eF=eN.handleKeyDownOnListboxOption;return(0,r.useEffect)(function(){ep(Y)},[Y]),(0,r.useEffect)(function(){return window.addEventListener("click",eL),window.addEventListener("keyup",eD),function(){window.removeEventListener("click",eL),window.removeEventListener("keyup",eD)}},[eL]),(0,r.useEffect)(function(){return window.addEventListener("focusin",eR),function(){window.removeEventListener("focusin",eR)}},[eR]),r.createElement("div",a({},es,{ref:t,className:"react-datalist-input__container ".concat(es.className)}),r.createElement(m,{listboxId:null==er?void 0:er.id,selectedItemId:null==eO?void 0:eO.id,isExpanded:ef,currentInputValue:eb},U&&r.createElement("label",a({},et,{className:"react-datalist-input__label ".concat(null==et?void 0:et.className),htmlFor:(null==ee?void 0:ee.id)||ex}),q),r.createElement(d,a({},ee,{ref:eI,id:(null==ee?void 0:ee.id)||ex,placeholder:W,value:eb,onClick:u(e_,null==ee?void 0:ee.onClick),onFocus:u(e_,null==ee?void 0:ee.onFocus),onChange:u(eP,null==ee?void 0:ee.onChange),onKeyDown:u(eA,null==ee?void 0:ee.onKeyDown),"aria-label":U||"string"!=typeof q?void 0:q,className:"react-datalist-input__textbox ".concat(null==ee?void 0:ee.className)})),(ew.length&&ef||ei||ec)&&r.createElement(v,a({},er,{ref:ek,"aria-hidden":ef,className:"react-datalist-input__listbox ".concat(ef?void 0===el?"":el:ei," ").concat((null==er?void 0:er.className)||""),style:a(a({},ef?eu:ec),null==er?void 0:er.style)}
1),ew.map(function(e){return r.createElement(p,a({},en,{"aria-label":e.label||e.value,key:e.id,id:e.id,tabIndex:-1,onClick:u(function(){return eK(e)},null==en?void 0:en.onClick),onKeyDown:u(eF,null==en?void 0:en.onKeyDown),className:"react-datalist-input__listbox-option ".concat(null==en?void 0:en.className)}),r.createElement(f,a({},ea,{currentInput:eb}),e.node||e.value))}))))});x.displayName="DatalistInput"}}]);
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.