1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1531,2574,3267,4979,5104,8810,9637],{50074:(e,t,r)=>{Promise.resolve().then(r.bind(r,79290))},79290:(e,t,r)=>{"use strict";r.d(t,{TopLoadingBarIndicator:()=>u});var o=r(19059),n=r(93587),a=()=>{};function i(e,t){return Math.random()*(t-e+1)+e}function s(e,t){return Math.floor(i(e,t))}var c=(0,n.forwardRef)(({progress:e,height:t=2,className:r="",color:o="red",background:c="transparent",onLoaderFinished:l,transitionTime:u=300,loaderSpeed:d=500,waitingTime:f=1e3,shadow:h=!0,containerStyle:p={},style:v={},shadowStyle:b={},containerClassName:m=""},g)=>{let w=(0,n.useRef)(!1),[y,x]=(0,n.useState)(0),E=(0,n.useRef)({active:!1,refreshRate:1e3}),[S,R]=(0,n.useState)({active:!1,value:60}),$={height:"100%",background:o,transition:`all ${d}ms ease`,width:"0%"},k={boxShadow:`0 0 10px ${o}, 0 0 10px ${o}`,width:"5%",opacity:1,position:"absolute",height:"100%",transition:`all ${d}ms ease`,transform:"rotate(2deg) translate(0px, -2px)",left:"-10rem"},[N,Y]=(0,n.useState)($),[T,_]=(0,n.useState)(k);(0,n.useEffect)(()=>(w.current=!0,()=>{w.current=!1}),[]),(0,n.useImperativeHandle)(g,()=>({continuousStart(t,r=1e3){if(S.active)return;if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");let o=t||s(10,20);E.current={active:!0,refreshRate:r},x(o),I(o)},staticStart(t){if(E.current.active)return;if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");let r=t||s(30,60);R({active:!0,value:r}),x(r),I(r)},start(t="continuous",r,o){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");"continuous"===t?E.current={active:!0,refreshRate:o||1e3}:R({active:!0,value:r||20});let n=s(10,20),a=s(30,70),i=r||("continuous"===t?n:a);x(i),I(i)},complete(){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");x(100),I(100)},increase(t){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");x(e=>{let r=e+t;return I(r),r})},decrease(t){if(void 0!==e)return void console.warn("react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!");x(e=>{let r=e-t;return I(r),r})},getProgress:()=>y})),(0,n.useEffect)(()=>{Y({...N,background:o}),_({...T,boxShadow:`0 0 10px ${o}, 0 0 5px ${o}`})},[o]),(0,n.useEffect)(()=>{if(g){if(g&&void 0!==e)return void console.warn('react-top-loading-bar: You can\'t use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.');I(y)}else e&&I(e)},[e]);let I=e=>{e>=100?(Y({...N,width:"100%"}),h&&_({...T,left:e-10+"%"}),setTimeout(()=>{w.current&&(Y({...N,opacity:0,width:"100%",transition:`all ${u}ms ease-out`,color:o}),setTimeout(()=>{w.current&&(E.current.active&&(E.current={...E.current,active:!1},x(0),I(0)),S.active&&(R({...S,active:!1}),x(0),I(0)),l&&l(),x(0),I(0))},u))},f)):(Y(t=>({...t,width:e+"%",opacity:1,transition:e>0?`all ${d}ms ease`:""})),h&&_({...T,left:e-5.5+"%",transition:e>0?`all ${d}ms ease`:""}))};return function(e,t,r){let o=(0,n.useRef)(a);(0,n.useEffect)(()=>{o.current=e}),(0,n.useEffect)(()=>{},[void 0]),(0,n.useEffect)(()=>{if(null===t||!1===t)return;let e=setInterval(()=>o.current(),t);return()=>clearInterval(e)},[t])}(()=>{let e=i(Math.min(10,(100-y)/5),Math.min(20,(100-y)/3));y+e<95&&(x(y+e),I(y+e))},E.current.active?E.current.refreshRate:null),n.createElement("div",{className:m,style:{position:"fixed",top:0,left:0,height:t,background:c,zIndex:0x174876e7ff,width:"100%",...p}},n.createElement("div",{className:r,style:{...N,...v}},h?n.createElement("div",{style:{...T,...b}}):null))});n.createContext(void 0);let l=!1;function u(){let e=(0,n.createRef)();return(0,n.useEffect)(()=>{if(!e.current||l)return;l=!0;let t=e.current;return t.continuousStart(0,300),()=>{t.complete(),l=!1}},[e]),(0,o.jsx)(c,{className:"bg-primary",height:4,waitingTime:0,shadow:!0,color:"",ref:e})}}},e=>{e.O(0,[9827,2215,7358],()=>e(e.s=50074)),_N_E=e.O()}]);
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.