1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9556],{99601:function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 2===e.length?t(e[0],e[1])||null:e.slice(1).reduce(function(e,r){return t(e,r)},e[0])||null};var n=new WeakMap;function t(e,r){if(e&&r){var t=n.get(e)||new WeakMap;n.set(e,t);var o=t.get(r)||function(n){u(e,n),u(r,n)};return t.set(r,o),o}return e||r}function u(e,r){"function"==typeof e?e(r):e.current=r}},9556:function(e,r,n){n.r(r),n.d(r,{AsyncPaginate:function(){return j},checkIsResponse:function(){return M},reduceGroupedOptions:function(){return _},useAsyncPaginate:function(){return T},useAsyncPaginateBase:function(){return x},useComponents:function(){return k},validateResponse:function(){return C},withAsyncPaginate:function(){return N},wrapMenuList:function(){return g}});var t=n(23157),u=n(67294),o=n(45350),i=n(99601),a=n(85893),s=Symbol("useLazyRef empty value"),c=e=>{let r=(0,u.useRef)(s);return r.current===s&&(r.current=e()),r},l=n(73469),p=function(e){var r=u.useRef(e);return(0,l.Z)(function(){r.current=e}),r};function f(e){return{isOk:()=>!0,isOkAnd:r=>r(e),isErr:()=>!1,isErrAnd:()=>!1,ok:()=>m(e),err:()=>h(),map:r=>f(r(e)),mapOr:(r,n)=>n(e),mapOrElse:(r,n)=>n(e),mapErr:()=>f(e),expect:()=>e,expectErr:e=>{throw Error(e)},unwrap:()=>e,unwrapErr:()=>{throw Error(`${e}`)},unwrapOr:()=>e,unwrapOrElse:()=>e,and:e=>e,andThen:r=>r(e),or:()=>f(e),orElse:()=>f(e)}}function d(e){return{isOk:()=>!1,isOkAnd:()=>!1,isErr:()=>!0,isErrAnd:r=>r(e),ok:()=>h(),err:()=>m(e),map:()=>d(e),mapOr:e=>e,mapOrElse:r=>r(e),mapErr:r=>d(r(e)),expect:e=>{throw Error(e)},expectErr:()=>e,unwrap:()=>{throw Error(`${e}`)},unwrapErr:()=>e,unwrapOr:e=>e,unwrapOrElse:r=>r(e),and:()=>d(e),andThen:()=>d(e),or:e=>e,orElse:r=>r(e)}}function h(){let e={and:()=>h(),andThen:()=>h(),expect:e=>{throw Error(e)},filter:()=>e,isSome:()=>!1,isSomeAnd:()=>!1,isNone:()=>!0,map:()=>h(),mapOr:e=>e,mapOrElse:e=>e(),okOr:e=>d(e),okOrElse:e=>d(e()),or:e=>e,orElse:e=>e(),unwrap:()=>{throw Error("panic! call `unwrap` on a `None` value")},unwrapOr:e=>e,unwrapOrElse:e=>e(),xor:r=>r.isSome()?r:e};return e}function m(e){let r={and:e=>e,andThen:r=>r(e),expect:()=>e,filter:n=>n(e)?r:h(),isSome:()=>!0,isSomeAnd:r=>r(e),isNone:()=>!1,map:r=>m(r(e)),mapOr:(r,n)=>n(e),mapOrElse:(r,n)=>n(e),okOr:()=>f(e),okOrElse:()=>f(e),or:()=>r,orElse:()=>r,unwrap:()=>e,unwrapOr:()=>e,unwrapOrElse:()=>e,xor:e=>e.isNone()?r:h()};return r}var w=setTimeout,E=function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(r=n.useCachedSetTimeout?w:setTimeout,new Promise(function(n){r(n,e)}));function u(e){return t.then(function(){return e})}return u.then=function(){return t.then.apply(t,arguments)},u.catch=Promise.resolve().catch,u};function g(e){return function(r){let{selectProps:n,innerRef:t}=r,{handleScrolledToBottom:o,shouldLoadMore:s}=n,c=(0,u.useRef)(null),l=(0,u.useRef)(null),p=(0,u.useCallback)(()=>{let e=l.current;if(!e)return!1;let{scrollTop:r,scrollHeight:n,clientHeight:t}=e;return s(n,t,r)},[s]),f=(0,u.useCallback)(()=>{p()&&o&&o()},[p,o]),d=(0,u.useMemo)(()=>{let e=()=>{f(),c.current=setTimeout(e,300)};return e},[f]);return(0,u.useEffect)(()=>(d(),()=>{c.current&&clearTimeout(c.current)}),[]),(0,a.jsx)(e,{...r,innerRef:(0,i.default)(t,l)})}}var O=g(o.c.MenuList),k=e=>(0,u.useMemo)(()=>({MenuList:O,...e}),[e]),y=(e,r)=>[...e,...r],v=(e,r,n)=>e-r-10<n,b=e=>({isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,lockedUntil:0,additional:e.additional}),L=({options:e,defaultOptions:r,additional:n,defaultAdditional:t})=>{let u=!0===r?null:Array.isArray(r)?r:e;return u?{"":{isFirstLoad:!1,isLoading:!1,options:u,hasMore:!0,lockedUntil:0,additional:t||n}}:{}},A='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',M=e=>{if(!e)return!1;let{options:r,hasMore:n}=e;return!!Array.isArray(r)&&("boolean"==typeof n||void 0===n)},C=e=>{if(!M(e))throw console.error(A,"Received:",e),Error(A);return!0},R=async(e,r,n,t,u,o,i,a)=>{let s=r.current.inputValue,c=!n.current[s],l=c?b(r.current):n.current[s];if(l.isLoading||!l.hasMore||l.lockedUntil>Date.now())return;if(u(r=>a&&"input-change"===e?{[s]:{...l,isLoading:!0}}:{...r,[s]:{...l,isLoading:!0}}),t>0&&"input-change"===e){await E(t);let e=r.current.inputValue;if(s!==e){u(e=>{if(c){let{[s]:r,...n}=e;return n}return{...e,[s]:{...l,isLoading:!1}}});return}}let{loadOptions:p,reloadOnErrorTimeout:h=0}=r.current,m=await Promise.resolve().then(()=>p(s,l.options,l.additional)).then(e=>f(e),e=>d(e));if(!i.current)return;if(m.isErr()){u(e=>({...e,[s]:{...l,isLoading:!1,lockedUntil:Date.now()+h}}));return}let w=m.unwrap();if(C(w)){let{options:e,hasMore:r}=w,n=Object.hasOwn(w,"additional")?w.additional:l.additional;u(t=>({...t,[s]:{...l,options:o(l.options,e,n),hasMore:!!r,isLoading:!1,isFirstLoad:!1,additional:n}}))}},S=e=>e+1,x=(e,r=[])=>{var n;let{clearCacheOnSearchChange:t=!1,clearCacheOnMenuClose:o=!1,defaultOptions:i,loadOptionsOnMenuOpen:a=!0,debounceTimeout:s=0,inputValue:l,menuIsOpen:f,filterOption:d=null,reduceOptions:h=y,shouldLoadMore:m=v,mapOptionsForMenu:w}=e,E=p(f),g=(n=(0,u.useRef)(!1),(0,u.useEffect)(function(){return n.current=!0,function(){n.current=!1}},[]),n),O=p(h),k=p(a),A=(0,u.useRef)(!0),M=(0,u.useRef)(e);M.current=e;let[C,x]=(0,u.useState)(0),T=c(()=>L(e)),P=p(e=>{R(e,M,T,s,e=>{T.current=e(T.current),g.current&&x(S)},O.current,g,t)}),I=(0,u.useCallback)(()=>{let e=M.current.inputValue,r=T.current[e];r&&P.current("menu-scroll")},[P,T]);(0,u.useEffect)(()=>{A.current?A.current=!1:(T.current={},x(S)),!0===i&&P.current("autoload")},r),(0,u.useEffect)(()=>{E.current&&!T.current[l]&&P.current("input-change")},[P,l,E,T]),(0,u.useEffect)(()=>
1{if(f){!T.current[""]&&k.current&&P.current("menu-toggle");return}o&&(T.current={},x(S))},[P,k,f,T,o]);let N=T.current[l]||b(e),V=(0,u.useMemo)(()=>w?w(N.options):N.options,[N.options,w]);return{handleScrolledToBottom:I,shouldLoadMore:m,filterOption:d,isLoading:N.isLoading||N.lockedUntil>Date.now(),isFirstLoad:N.isFirstLoad,options:V}},T=(e,r=[])=>{let{inputValue:n,menuIsOpen:t,defaultInputValue:o,defaultMenuIsOpen:i,onInputChange:a,onMenuClose:s,onMenuOpen:c}=e,[l,p]=(0,u.useState)(o||""),[f,d]=(0,u.useState)(!!i),h="string"==typeof n?n:l,m="boolean"==typeof t?t:f,w=(0,u.useCallback)((e,r)=>{a&&a(e,r),p(e)},[a]),E=(0,u.useCallback)(()=>{s&&s(),d(!1)},[s]),g=(0,u.useCallback)(()=>{c&&c(),d(!0)},[c]),O=x({...e,inputValue:h,menuIsOpen:m},r);return{...O,inputValue:h,menuIsOpen:m,onInputChange:w,onMenuClose:E,onMenuOpen:g}},P=[],I={};function N(e){return function(r){let{components:n=I,selectRef:t,isLoading:u,cacheUniqs:o=P,menuPlacement:i,menuShouldScrollIntoView:s,...c}=r,l=T(c,o),p=k(n),f="boolean"==typeof u?u:l.isLoading;return(0,a.jsx)(e,{...r,...l,menuPlacement:i,menuShouldScrollIntoView:"auto"===i?!f&&s:s,isLoading:f,components:p,ref:t})}}var V=e=>{if(!e)return!1;let{label:r,options:n}=e;return!!(("string"==typeof r||void 0===r)&&Array.isArray(n))},_=(e,r)=>{let n=e.slice(),t={},u=0,o=e.length;for(let i of r){let r=V(i)?i:{options:[i]},{label:a=""}=r,s=t[a];if("number"!=typeof s){for(;u<o&&"number"!=typeof t[a];++u){let r=e[u];V(r)&&(t[r.label||""]=u)}s=t[a]}"number"!=typeof s?(t[a]=n.length,n.push(r)):n[s]={...n[s],options:[...n[s].options,...r.options]}}return n},j=N(t.default)}}]);
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.