1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5698],{64599:function(e,t,n){let r=n(2265).createContext(null);t.Z=r},19162:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(2265),s=n(44397),o=n(64599),i=n(73982),a=n(17669),l=n(55805),u=n(57437);let p=["children","usePopper"],c=()=>{};function d(e={}){let t=(0,r.useContext)(o.Z),[n,u]=(0,s.Z)(),p=(0,r.useRef)(!1),{flip:d,offset:h,rootCloseEvent:f,fixed:m=!1,placement:v,popperConfig:g={},enableEventListeners:b=!0,usePopper:y=!!t}=e,w=(null==t?void 0:t.show)==null?!!e.show:t.show;w&&!p.current&&(p.current=!0);let{placement:x,setMenu:M,menuElement:k,toggleElement:C}=t||{},P=(0,i.Z)(C,k,(0,l.ZP)({placement:v||x||"bottom-start",enabled:y,enableEvents:null==b?w:b,offset:h,flip:d,fixed:m,arrowElement:n,popperConfig:g})),D=Object.assign({ref:M||c,"aria-labelledby":null==C?void 0:C.id},P.attributes.popper,{style:P.styles.popper}),E={show:w,placement:x,hasShown:p.current,toggle:null==t?void 0:t.toggle,popper:y?P:null,arrowProps:y?Object.assign({ref:u},P.attributes.arrow,{style:P.styles.arrow}):{}};return(0,a.Z)(k,e=>{null==t||t.toggle(!1,e)},{clickTrigger:f,disabled:!w}),[D,E]}function h(e){let{children:t,usePopper:n=!0}=e,[r,s]=d(Object.assign({},function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,p),{usePopper:n}));return(0,u.jsx)(u.Fragment,{children:t(r,s)})}h.displayName="DropdownMenu",t.Z=h},30119:function(e,t,n){n.d(t,{Jr:function(){return u},bt:function(){return a}});var r=n(2265),s=n(49968),o=n(64599),i=n(57437);let a=e=>{var t;return(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())==="menu"},l=()=>{};function u(){let e=(0,s.gP)(),{show:t=!1,toggle:n=l,setToggle:i,menuElement:u}=(0,r.useContext)(o.Z)||{},p={id:e,ref:i||l,onClick:(0,r.useCallback)(e=>{n(!t,e)},[t,n]),"aria-expanded":!!t};return u&&a(u)&&(p["aria-haspopup"]=!0),[p,{show:t,toggle:n}]}function p({children:e}){let[t,n]=u();return(0,i.jsx)(i.Fragment,{children:e(t,n)})}p.displayName="DropdownToggle",t.ZP=p},30166:function(e,t,n){n.d(t,{default:function(){return s.a}});var r=n(55775),s=n.n(r)},55775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(60917);n(57437),n(2265);let s=r._(n(15602));function o(e,t){var n;let r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,s.default)({...o,modules:null==(n=o.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15602:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(57437),s=n(2265),o=n(81523),i=n(70049);function a(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,s.lazy)(()=>t.loader().then(a)),u=t.loading;function p(e){let a=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(i.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(s.Suspense,{fallback:a,children:l})}return p.displayName="LoadableComponent",p}},5090:function(e,t,n){n.d(t,{Z:function(){return F}});var r=n(36760),s=n.n(r),o=n(2265),i=n(98791),a=n(58506),l=n(80938),u=n(89610),p=n(73757),c=n(70208),d=n(99763),h=n(64599),f=n(19162),m=n(30119),v=n(60488),g=n(87950),b=n(69784),y=n(12662),w=n(57437);let x=["eventKey","disabled","onClick","active","as"];function M({key:e,href:t,active:n,disabled:r,onClick:s}){let i=(0,o.useContext)(v.Z),{activeKey:a}=(0,o.useContext)(g.Z)||{},l=(0,v.h)(e,t),u=null==n&&null!=e?(0,v.h)(a)===l:n;return[{onClick:(0,d.Z)(e=>{r||(null==s||s(e),i&&!e.isPropagationStopped()&&i(l,e))}),"aria-disabled":r||void 0,"aria-selected":u,[(0,y.PB)("dropdown-item")]:""},{isActive:u}]}let k=o.forwardRef((e,t)=>
1{let{eventKey:n,disabled:r,onClick:s,active:o,as:i=b.ZP}=e,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,x),[l]=M({key:n,href:a.href,disabled:r,onClick:s,active:o});return(0,w.jsx)(i,Object.assign({},a,{ref:t},l))});k.displayName="DropdownItem";var C=n(53232);function P(){let e=(0,p.Z)(),t=(0,o.useRef)(null),n=(0,o.useCallback)(n=>{t.current=n,e()},[e]);return[t,n]}function D({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:s=`* [${(0,y.PB)("dropdown-item")}]`,focusFirstItemOnShow:p,placement:f="bottom-start",children:g}){let b=(0,C.Z)(),[x,M]=(0,l.$c)(t,e,r),[k,D]=P(),E=k.current,[T,S]=P(),Z=T.current,O=(0,u.Z)(x),N=(0,o.useRef)(null),j=(0,o.useRef)(!1),z=(0,o.useContext)(v.Z),K=(0,o.useCallback)((e,t,n=null==t?void 0:t.type)=>{M(e,{originalEvent:t,source:n})},[M]),R=(0,d.Z)((e,t)=>{null==n||n(e,t),K(!1,t,"select"),t.isPropagationStopped()||null==z||z(e,t)}),B=(0,o.useMemo)(()=>({toggle:K,placement:f,show:x,menuElement:E,toggleElement:Z,setMenu:D,setToggle:S}),[K,f,x,E,Z,D,S]);E&&O&&!x&&(j.current=E.contains(E.ownerDocument.activeElement));let A=(0,d.Z)(()=>{Z&&Z.focus&&Z.focus()}),L=(0,d.Z)(()=>{let e=N.current,t=p;if(null==t&&(t=!!(k.current&&(0,m.bt)(k.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;let n=(0,i.Z)(k.current,s)[0];n&&n.focus&&n.focus()});(0,o.useEffect)(()=>{x?L():j.current&&(j.current=!1,A())},[x,j,A,L]),(0,o.useEffect)(()=>{N.current=null});let F=(e,t)=>{if(!k.current)return null;let n=(0,i.Z)(k.current,s),r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return(0,c.Z)((0,o.useCallback)(()=>b.document,[b]),"keydown",e=>{var t,n;let{key:r}=e,s=e.target,o=null==(t=k.current)?void 0:t.contains(s),i=null==(n=T.current)?void 0:n.contains(s);if(/input|textarea/i.test(s.tagName)&&(" "===r||"Escape"!==r&&o||"Escape"===r&&"search"===s.type)||!o&&!i||"Tab"===r&&(!k.current||!x))return;N.current=e.type;let l={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{let t=F(s,-1);t&&t.focus&&t.focus(),e.preventDefault();return}case"ArrowDown":if(e.preventDefault(),x){let e=F(s,1);e&&e.focus&&e.focus()}else M(!0,l);return;case"Tab":(0,a.ZP)(s.ownerDocument,"keyup",e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=k.current)&&t.contains(e.target)||M(!1,l)},{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),M(!1,l)}}),(0,w.jsx)(v.Z.Provider,{value:R,children:(0,w.jsx)(h.Z.Provider,{value:B,children:g})})}D.displayName="Dropdown",D.Menu=f.Z,D.Toggle=m.ZP,D.Item=k;var E=n(21668),T=n(98671),S=n(45619),Z=n(85001);let O=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="hr",role:i="separator",...a}=e;return r=(0,Z.vE)(r,"dropdown-divider"),(0,w.jsx)(o,{ref:t,className:s()(n,r),role:i,...a})});O.displayName="DropdownDivider";let N=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",role:i="heading",...a}=e;return r=(0,Z.vE)(r,"dropdown-header"),(0,w.jsx)(o,{ref:t,className:s()(n,r),role:i,...a})});N.displayName="DropdownHeader";var j=n(89611);let z=o.forwardRef((e,t)=>{let{bsPrefix:n,className:r,eventKey:o,disabled:i=!1,onClick:a,active:l,as:u=j.Z,...p}=e,c=(0,Z.vE)(n,"dropdown-item"),[d,h]=M({key:o,href:p.href,disabled:i,onClick:a,active:l});return(0,w.jsx)(u,{...p,...d,ref:t,className:s()(r,c,h.isActive&&"active",i&&"disabled")})});z.displayName="DropdownItem";let K=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="span",...i}=e;return r=(0,Z.vE)(r,"dropdown-item-text"),(0,w.jsx)(o,{ref:t,className:s()(n,r),...i})});K.displayName="DropdownItemText";var R=n(70795),B=n(86170),A=n(86289);let L=o.forwardRef((e,t)=>{let{bsPrefix:n,drop:r="down",show:i,className:a,align:l="start",onSelect:u,onToggle:p,focusFirstItemOnShow:c,as:d="div",navbar:h,autoClose:f=!0,...m}=(0,E.Ch)(e,{show:"onToggle"}),v=(0,o.useContext)(A.Z),g=(0,Z.vE)(n,"dropdown"),b=(0,Z.SC)(),y=e=>!1===f?"click"===e:"inside"===f?"rootClose"!==e:"outside"!==f||"select"!==e,x=(0,T.Z)((e,t)=>{var n;(null==(n=t.originalEvent)||null==(n=n.target)||!n.classList.contains("dropdown-toggle")||"mousedown"!==t.source)&&(t.originalEvent.currentTarget===document&&("keydown"!==t.source||"Escape"===t.originalEvent.key)&&(t.source="rootClose"),y(t.source)&&(null==p||p(e,t)))}),M=(0,R.J)("end"===l,r,b),k=(0,o.useMemo)(()=>({align:l,drop:r,isRTL:b}),[l,r,b]);return(0,w.jsx)(S.Z.Provider,{value:k,children:(0,w.jsx)(D,{placement:M,show:i,onSelect:u,onToggle:x,focusFirstItemOnShow:c,itemSelector:".".concat(g,"-item:not(.disabled):not(:disabled)"),children:v?m.children:(0,w.jsx)(d,{...m,ref:t,className:s()(a,i&&"show",{down:g,"down-centered":"".concat(g,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"}[r])})})})});L.displayName="Dropdown";var F=Object.assign(L,{Toggle:B.Z,Menu:R.Z,Item:z,ItemText:K,Divider:O,Header:N})},96926:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(2265),s=n(40718),o=n.n(s),i=n(5090),a=n(86170),l=n(70795);let u=o().oneOf(["start","end"]),p=o().oneOfType([u,o().shape({sm:u}),o().shape({md:u}),o().shape({lg:u}),o().shape({xl:u}),o().shape({xxl:u}),o().object]);var c=n(57437);let d={id:o().string,href:o().string,onClick:o().func,title:o().node.isRequired,disabled:o().bool,align:p,menuRole:o().string,renderMenuOnMount:o().bool,rootCloseEvent:o().string,menuVariant:o().oneOf(["dark"]),flip:o().bool,bsPrefix:o().string,variant:o().string,
1size:o().string},h=r.forwardRef((e,t)=>{let{title:n,children:r,bsPrefix:s,rootCloseEvent:o,variant:u,size:p,menuRole:d,renderMenuOnMount:h,disabled:f,href:m,id:v,menuVariant:g,flip:b,...y}=e;return(0,c.jsxs)(i.Z,{ref:t,...y,children:[(0,c.jsx)(a.Z,{id:v,href:m,size:p,variant:u,disabled:f,childBsPrefix:s,children:n}),(0,c.jsx)(l.Z,{role:d,renderOnMount:h,rootCloseEvent:o,variant:g,flip:b,children:r})]})});h.displayName="DropdownButton",h.propTypes=d;var f=h},45619:function(e,t,n){let r=n(2265).createContext({});r.displayName="DropdownContext",t.Z=r},70795:function(e,t,n){n.d(t,{J:function(){return m}});var r=n(36760),s=n.n(r),o=n(2265),i=n(19162),a=n(50626),l=n(14591);n(58768);var u=n(45619),p=n(86289),c=n(47585),d=n(85001),h=n(74383),f=n(57437);function m(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}let v=o.forwardRef((e,t)=>{let{bsPrefix:n,className:r,align:v,rootCloseEvent:g,flip:b=!0,show:y,renderOnMount:w,as:x="div",popperConfig:M,variant:k,...C}=e,P=!1,D=(0,o.useContext)(c.Z),E=(0,d.vE)(n,"dropdown-menu"),{align:T,drop:S,isRTL:Z}=(0,o.useContext)(u.Z);v=v||T;let O=(0,o.useContext)(p.Z),N=[];if(v){if("object"==typeof v){let e=Object.keys(v);if(e.length){let t=e[0],n=v[t];P="start"===n,N.push("".concat(E,"-").concat(t,"-").concat(n))}}else"end"===v&&(P=!0)}let j=m(P,S,Z),[z,{hasShown:K,popper:R,show:B,toggle:A}]=(0,i.d)({flip:b,rootCloseEvent:g,show:y,usePopper:!D&&0===N.length,offset:[0,2],popperConfig:M,placement:j});if(z.ref=(0,l.Z)((0,h.Z)(t,"DropdownMenu"),z.ref),(0,a.Z)(()=>{B&&(null==R||R.update())},[B]),!K&&!w&&!O)return null;"string"!=typeof x&&(z.show=B,z.close=()=>null==A?void 0:A(!1),z.align=v);let L=C.style;return null!=R&&R.placement&&(L={...C.style,...z.style},C["x-placement"]=R.placement),(0,f.jsx)(x,{...C,...z,style:L,...(N.length||D)&&{"data-bs-popper":"static"},className:s()(r,E,B&&"show",P&&"".concat(E,"-end"),k&&"".concat(E,"-").concat(k),...N)})});v.displayName="DropdownMenu",t.Z=v},86170:function(e,t,n){var r=n(14591),s=n(64599),o=n(30119),i=n(36760),a=n.n(i),l=n(2265),u=n(24076),p=n(85001),c=n(74383),d=n(57437);let h=l.forwardRef((e,t)=>{let{bsPrefix:n,split:i,className:h,childBsPrefix:f,as:m=u.Z,...v}=e,g=(0,p.vE)(n,"dropdown-toggle"),b=(0,l.useContext)(s.Z);void 0!==f&&(v.bsPrefix=f);let[y]=(0,o.Jr)();return y.ref=(0,r.Z)(y.ref,(0,c.Z)(t,"DropdownToggle")),(0,d.jsx)(m,{className:a()(h,g,i&&"".concat(g,"-split"),(null==b?void 0:b.show)&&"show"),...y,...v})});h.displayName="DropdownToggle",t.Z=h},74383:function(e,t,n){function r(e,t){return e}n.d(t,{Z:function(){return r}}),n(52200),n(2265),n(14591)},71215:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(33707),s=n(2265);function o(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function i(e){return null==e?[]:Array.isArray(e)?e.slice():[e]}function a(e){return null!==e&&1===e.length?e[0]:e.slice()}function l(e){Object.keys(e).forEach(t=>{"undefined"!=typeof document&&document.addEventListener(t,e[t],!1)})}function u(e,t){let n;return p(((n=e)<=t.min&&(n=t.min),n>=t.max&&(n=t.max),n),t)}function p(e,t){let n=(e-t.min)%t.step,r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let c=function(e){function t(t){var n;(n=e.call(this,t)||this).onKeyUp=()=>{n.onEnd()},n.onMouseUp=()=>{n.onEnd(n.getMouseEventMap())},n.onTouchEnd=e=>{e.preventDefault(),n.onEnd(n.getTouchEventMap())},n.onBlur=()=>{n.setState({index:-1},n.onEnd(n.getKeyDownEventMap()))},n.onMouseMove=e=>{n.setState({pending:!0});let t=n.getMousePosition(e),r=n.getDiffPosition(t[0]),s=n.getValueFromPosition(r);n.move(s)},n.onTouchMove=e=>{if(e.touches.length>1)return;n.setState({pending:!0});let t=n.getTouchPosition(e);if(void 0===n.isScrolling){let e=t[0]-n.startPosition[0],r=t[1]-n.startPosition[1];n.isScrolling=Math.abs(r)>Math.abs(e)}if(n.isScrolling)return void n.setState({index:-1});let r=n.getDiffPosition(t[0]),s=n.getValueFromPosition(r);n.move(s)},n.onKeyDown=e=>{if(!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey))switch(n.setState({pen
1ding:!0}),e.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":e.preventDefault(),n.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":e.preventDefault(),n.moveUpByStep();break;case"Home":e.preventDefault(),n.move(n.props.min);break;case"End":e.preventDefault(),n.move(n.props.max);break;case"PageDown":e.preventDefault(),n.moveDownByStep(n.props.pageFn(n.props.step));break;case"PageUp":e.preventDefault(),n.moveUpByStep(n.props.pageFn(n.props.step))}},n.onSliderMouseDown=e=>{if(!n.props.disabled&&2!==e.button){if(n.setState({pending:!0}),!n.props.snapDragDisabled){let t=n.getMousePosition(e);n.forceValueFromPosition(t[0],e=>{n.start(e,t[0]),l(n.getMouseEventMap())})}o(e)}},n.onSliderClick=e=>{if(!n.props.disabled&&n.props.onSliderClick&&!n.hasMoved){let t=n.getMousePosition(e),r=u(n.calcValue(n.calcOffsetFromPosition(t[0])),n.props);n.props.onSliderClick(r)}},n.createOnKeyDown=e=>t=>{n.props.disabled||(n.start(e),l(n.getKeyDownEventMap()),o(t))},n.createOnMouseDown=e=>t=>{if(n.props.disabled||2===t.button)return;n.setState({pending:!0});let r=n.getMousePosition(t);n.start(e,r[0]),l(n.getMouseEventMap()),o(t)},n.createOnTouchStart=e=>t=>{if(n.props.disabled||t.touches.length>1)return;n.setState({pending:!0});let r=n.getTouchPosition(t);n.startPosition=r,n.isScrolling=void 0,n.start(e,r[0]),l(n.getTouchEventMap()),t.stopPropagation&&t.stopPropagation()},n.handleResize=()=>{let e=window.setTimeout(()=>{n.pendingResizeTimeouts.shift(),n.resize()},0);n.pendingResizeTimeouts.push(e)},n.renderThumb=(e,t)=>{let r=n.props.thumbClassName+" "+n.props.thumbClassName+"-"+t+" "+(n.state.index===t?n.props.thumbActiveClassName:""),s={ref:e=>{n["thumb"+t]=e},key:n.props.thumbClassName+"-"+t,className:r,style:e,onMouseDown:n.createOnMouseDown(t),onTouchStart:n.createOnTouchStart(t),onFocus:n.createOnKeyDown(t),tabIndex:0,role:"slider","aria-orientation":n.props.orientation,"aria-valuenow":n.state.value[t],"aria-valuemin":n.props.min,"aria-valuemax":n.props.max,"aria-label":Array.isArray(n.props.ariaLabel)?n.props.ariaLabel[t]:n.props.ariaLabel,"aria-labelledby":Array.isArray(n.props.ariaLabelledby)?n.props.ariaLabelledby[t]:n.props.ariaLabelledby,"aria-disabled":n.props.disabled},o={index:t,value:a(n.state.value),valueNow:n.state.value[t]};return n.props.ariaValuetext&&(s["aria-valuetext"]="string"==typeof n.props.ariaValuetext?n.props.ariaValuetext:n.props.ariaValuetext(o)),n.props.renderThumb(s,o)},n.renderTrack=(e,t,r)=>{let s={key:n.props.trackClassName+"-"+e,className:n.props.trackClassName+" "+n.props.trackClassName+"-"+e,style:n.buildTrackStyle(t,n.state.upperBound-r)},o={index:e,value:a(n.state.value)};return n.props.renderTrack(s,o)};let r=i(t.value);r.length||(r=i(t.defaultValue)),n.pendingResizeTimeouts=[];let p=[];for(let e=0;e<r.length;e+=1)r[e]=u(r[e],t),p.push(e);return n.resizeObserver=null,n.resizeElementRef=s.createRef(),n.state={index:-1,upperBound:0,sliderLength:0,value:r,zIndices:p},n}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){"undefined"!=typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(e,t){let n=i(e.value);return n.length?t.pending?null:{value:n.map(t=>u(t,e))}:null},n.componentDidUpdate=function(){0===this.state.upperBound&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(e){e&&function(e){Object.keys(e).forEach(t=>{"undefined"!=typeof document&&document.removeEventListener(t,e[t],!1)})}(e),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return a(this.state.value)},n.getClosestIndex=function(e){let t=Number.MAX_VALUE,n=-1,{value:r}=this.state,s=r.length;for(let o=0;o<s;o+=1){let s=Math.abs(e-this.calcOffset(r[o]));s<t&&(t=s,n=o)}return n},n.getMousePosition=function(e){return[e["page"+this.axisKey()],e["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(e){let t=e.touches[0];return[t["page"+this.axisKey()],t["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(e){let t=e/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return u(this.state.startValue+t,this.props)},n.getDiffPosition=function(e){let t=e-this.state.startPosition;return this.props.invert&&(t*=-1),t},n.resize=function(){let{slider:e,thumb0:t}=this;if(!e||!t)return;let n=this.sizeKey(),r=e.getBoundingClientRect(),s=e[n],o=r[this.posMaxKey()],i=r[this.posMinKey()],a=t.getBoundingClientRect()[n.replace("client","").toLowerCase()],l=s-a,u=Math.abs(o-i);this.state.upperBound===l&&this.state.sliderLength===u&&this.state.thumbSize===a||this.setState({upperBound:l,sliderLength:u,thumbSize:a})},n.calcOffset=function(e){let t=this.props.max-this.props.min;return 0===t?0:(e-this.props.min)/t*this.state.upperBound},n.calcValue=function(e){return e/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(e){let{slider:t}=this,n=t.getBoundingClientRect(),r=n[this.posMaxKey()],s=n[this.posMinKey()],o=e-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?r:s));return this.props.invert&&(o=this.state.sliderLength-o),o-=this.state.thumbSize/2},n.forceValueFromPosition=function(e,t){let n=this.calcOffsetFromPosition(e),r=this.getClosestIndex(n),s=u(this.calcValue(n),this.props),o=this.state.value.slice();o[r]=s;for(let e=0;e<o.length-1;e+=1)if(o[e+1]-o[e]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:o},()=>{t(r),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do clearTimeout(this.pendingResizeTimeouts.shift());while(this.pendingResizeTimeouts.length)},n.start=function(e,t){let n=this["thumb"+e];n&&n.focus();let{zIndices:r}=this.state;r.splice(r.indexOf(e),1),r.push(e),this.setState(n=>({startValue:n.value[e],startPosition:void 0!==t?t:n.startPosition,index:e,zIndices:r}))},n.moveUpByStep=function(e){void 0===e&&(e=this.props.step);let t=this.state.value[this.state.index],n=u(this.props.invert&&"horizontal"===this.props.orientation?t-e:t+e,this.props);
1this.move(Math.min(n,this.props.max))},n.moveDownByStep=function(e){void 0===e&&(e=this.props.step);let t=this.state.value[this.state.index],n=u(this.props.invert&&"horizontal"===this.props.orientation?t+e:t-e,this.props);this.move(Math.max(n,this.props.min))},n.move=function(e){let t=this.state.value.slice(),{index:n}=this.state,{length:r}=t,s=t[n];if(e===s)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:o,max:i,min:a,minDistance:l}=this.props;if(!o){if(n>0){let r=t[n-1];e<r+l&&(e=r+l)}if(n<r-1){let r=t[n+1];e>r-l&&(e=r-l)}}t[n]=e,o&&r>1&&(e>s?(this.pushSucceeding(t,l,n),function(e,t,n,r){for(let s=0;s<e;s+=1){let o=r-s*n;t[e-1-s]>o&&(t[e-1-s]=o)}}(r,t,l,i)):e<s&&(this.pushPreceding(t,l,n),function(e,t,n,r){for(let s=0;s<e;s+=1){let e=r+s*n;t[s]<e&&(t[s]=e)}}(r,t,l,a))),this.setState({value:t},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(e,t,n){let r,s;for(s=e[r=n]+t;null!==e[r+1]&&s>e[r+1];r+=1,s=e[r]+t)e[r+1]=p(s,this.props)},n.pushPreceding=function(e,t,n){for(let r=n,s=e[r]-t;null!==e[r-1]&&s<e[r-1];r-=1,s=e[r]-t)e[r-1]=p(s,this.props)},n.axisKey=function(){return"vertical"===this.props.orientation?"Y":"X"},n.orthogonalAxisKey=function(){return"vertical"===this.props.orientation?"X":"Y"},n.posMinKey=function(){return"vertical"===this.props.orientation?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return"vertical"===this.props.orientation?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return"vertical"===this.props.orientation?"clientHeight":"clientWidth"},n.fireChangeEvent=function(e){this.props[e]&&this.props[e](a(this.state.value),this.state.index)},n.buildThumbStyle=function(e,t){let n={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(t)+1};return n[this.posMinKey()]=e+"px",n},n.buildTrackStyle=function(e,t){let n={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return n[this.posMinKey()]=e,n[this.posMaxKey()]=t,n},n.buildMarkStyle=function(e){var t;return(t={position:"absolute"})[this.posMinKey()]=e,t},n.renderThumbs=function(e){let{length:t}=e,n=[];for(let r=0;r<t;r+=1)n[r]=this.buildThumbStyle(e[r],r);let r=[];for(let e=0;e<t;e+=1)r[e]=this.renderThumb(n[e],e);return r},n.renderTracks=function(e){let t=[],n=e.length-1;t.push(this.renderTrack(0,0,e[0]));for(let r=0;r<n;r+=1)t.push(this.renderTrack(r+1,e[r],e[r+1]));return t.push(this.renderTrack(n+1,e[n],this.state.upperBound)),t},n.renderMarks=function(){let{marks:e}=this.props,t=this.props.max-this.props.min+1;return"boolean"==typeof e?e=Array.from({length:t}).map((e,t)=>t):"number"==typeof e&&(e=Array.from({length:t}).map((e,t)=>t).filter(t=>t%e==0)),e.map(parseFloat).sort((e,t)=>e-t).map(e=>{let t=this.calcOffset(e),n={key:e,className:this.props.markClassName,style:this.buildMarkStyle(t)};return this.props.renderMark(n)})},n.render=function(){let e=[],{value:t}=this.state,n=t.length;for(let r=0;r<n;r+=1)e[r]=this.calcOffset(t[r],r);let r=this.props.withTracks?this.renderTracks(e):null,o=this.renderThumbs(e),i=this.props.marks?this.renderMarks():null;return s.createElement("div",{ref:e=>{this.slider=e,this.resizeElementRef.current=e},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},r,o,i)},t}(s.Component);c.displayName="ReactSlider",c.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>s.createElement("div",e),renderTrack:e=>s.createElement("div",e),renderMark:e=>s.createElement("span",e)};var d=c}}]);
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.