PageSourceSearch

https://lab.flabslis.com/static/js/1128.742a75fd.js

js flabslis.com collected 2026-09-24 11:01:02 UTC 65,724 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkflabs_frontend||=[]).push([[1128],{89541(e,n,t){t.r(n),t.d(n,{Circle:()=>S,Line:()=>f,default:()=>M});var o=t(58168),r=t(89379),a=t(80045),l=t(9950),u=t(48738),i=t.n(u),c={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},s=function(){var e=(0,l.useRef)([]),n=(0,l.useRef)(null);return(0,l.useEffect)(function(){var t=Date.now(),o=!1;e.current.forEach(function(e){if(e){o=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",n.current&&t-n.current<100&&(r.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),e.current},d=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"];const f=function(e){var n=(0,r.A)((0,r.A)({},c),e),t=n.className,u=n.percent,f=n.prefixCls,v=n.strokeColor,p=n.strokeLinecap,m=n.strokeWidth,h=n.style,g=n.trailColor,b=n.trailWidth,A=n.transition,y=(0,a.A)(n,d);delete y.gapPosition;var C=Array.isArray(u)?u:[u],E=Array.isArray(v)?v:[v],w=s(),x=m/2,k=100-m/2,S="M ".concat("round"===p?x:0,",").concat(x,"\n         L ").concat("round"===p?k:100,",").concat(x),M="0 0 100 ".concat(m),N=0;return l.createElement("svg",(0,o.A)({className:i()("".concat(f,"-line"),t),viewBox:M,preserveAspectRatio:"none",style:h},y),l.createElement("path",{className:"".concat(f,"-line-trail"),d:S,strokeLinecap:p,stroke:g,strokeWidth:b||m,fillOpacity:"0"}),C.map(function(e,n){var t=1;switch(p){case"round":t=1-m/100;break;case"square":t=1-m/2/100;break;default:t=1}var o={strokeDasharray:"".concat(e*t,"px, 100px"),strokeDashoffset:"-".concat(N,"px"),transition:A||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},r=E[n]||E[E.length-1];return N+=e,l.createElement("path",{key:n,className:"".concat(f,"-line-path"),d:S,strokeLinecap:p,stroke:r,strokeWidth:m,fillOpacity:"0",ref:function(e){w[n]=e},style:o})}))};var v=t(82284),p=t(5544),m=t(3888),h=0,g=(0,m.A)();const b=function(e){var n=l.useState(),t=(0,p.A)(n,2),o=t[0],r=t[1];return l.useEffect(function(){var e;r("rc_progress_".concat((g?(e=h,h+=1):e="TEST_OR_SSR",e)))},[]),e||o};t.dn(b);var A=function(e){var n=e.bg,t=e.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},t)};function y(e,n){return Object.keys(e).map(function(t){var o=parseFloat(t),r="".concat(Math.floor(o*n),"%");return"".concat(e[t]," ").concat(r)})}const C=l.forwardRef(function(e,n){var t=e.prefixCls,o=e.color,r=e.gradientId,a=e.radius,u=e.style,i=e.ptg,c=e.strokeLinecap,s=e.strokeWidth,d=e.size,f=e.gapDegree,p=o&&"object"===(0,v.A)(o),m=p?"#FFF":void 0,h=d/2,g=l.createElement("circle",{className:"".concat(t,"-circle-path"),r:a,cx:h,cy:h,stroke:m,strokeLinecap:c,strokeWidth:s,opacity:0===i?0:1,style:u,ref:n});if(!p)return g;var b="".concat(r,"-conic"),C=f?"".concat(180+f/2,"deg"):"0deg",E=y(o,(360-f)/360),w=y(o,1),x="conic-gradient(from ".concat(C,", ").concat(E.join(", "),")"),k="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(w.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:b},g),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},l.createElement(A,{bg:k},l.createElement(A,{bg:x}))))});var E=100,w=function(e,n,t,o,r,a,l,u,i,c){var s=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=t/100*360*((360-a)/360),f=0===a?0:{bottom:0,top:180,left:90,right:-90}[l],v=(100-o)/100*n;"round"===i&&100!==o&&(v+=c/2)>=n&&(v=n-.01);return{stroke:"string"==typeof u?u:void 0,strokeDasharray:"".concat(n,"px ").concat(e),strokeDashoffset:v+s,transform:"rotate(".concat(r+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},x=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function k(e){var n=null!=e?e:[];return Array.isArray(n)?n:[n]}const S=function(e){var n,t,u,d=(0,r.A)((0,r.A)({},c),e),f=d.id,p=d.prefixCls,m=d.steps,h=d.strokeWidth,g=d.trailWidth,A=d.gapDegree,y=void 0===A?0:A,S=d.gapPosition,M=d.trailColor,N=d.strokeLinecap,R=d.style,D=d.className,I=d.strokeColor,P=d.percent,O=(0,a.A)(d,x),F=b(f),L="".concat(F,"-gradient"),T=50-h/2,V=2*Math.PI*T,W=y>0?90+y/2:-90,H=V*((360-y)/360),K="object"===(0,v.A)(m)?m:{count:m,space:2},_=K.count,j=K.space,z=k(P),B=k(I),U=B.find(function(e){return e&&"object"===(0,v.A)(e)}),X=U&&"object"===(0,v.A)(U)?"butt":N,G=w(V,H,0,100,W,y,S,M,X,h),Y=s();return l.createElement("svg",(0,o.A)({className:i()("".concat(p,"-circle"),D),viewB
1ox:"0 0 ".concat(E," ").concat(E),style:R,id:f,role:"presentation"},O),!_&&l.createElement("circle",{className:"".concat(p,"-circle-trail"),r:T,cx:50,cy:50,stroke:M,strokeLinecap:X,strokeWidth:g||h,style:G}),_?(n=Math.round(_*(z[0]/100)),t=100/_,u=0,new Array(_).fill(null).map(function(e,o){var r=o<=n-1?B[0]:M,a=r&&"object"===(0,v.A)(r)?"url(#".concat(L,")"):void 0,i=w(V,H,u,t,W,y,S,r,"butt",h,j);return u+=100*(H-i.strokeDashoffset+j)/H,l.createElement("circle",{key:o,className:"".concat(p,"-circle-path"),r:T,cx:50,cy:50,stroke:a,strokeWidth:h,opacity:1,style:i,ref:function(e){Y[o]=e}})})):function(){var e=0;return z.map(function(n,t){var o=B[t]||B[B.length-1],r=w(V,H,e,n,W,y,S,o,X,h);return e+=n,l.createElement(C,{key:t,color:o,ptg:n,radius:T,prefixCls:p,gradientId:L,style:r,strokeLinecap:X,strokeWidth:h,gapDegree:y,ref:function(e){Y[t]=e},size:E})}).reverse()}())},M={Line:f,Circle:S}},91756(e,n,t){t.r(n),t.d(n,{default:()=>g});var o=t(58168),r=t(64467),a=t(5544),l=t(80045),u=t(48738),i=t.n(u),c=t(71207),s=t(91478),d=t(82795),f=t(9950);function v(e,n){var t=e.disabled,o=e.prefixCls,r=e.character,a=e.characterRender,l=e.index,u=e.count,c=e.value,d=e.allowHalf,v=e.focused,p=e.onHover,m=e.onClick,h=l+1,g=new Set([o]);0===c&&0===l&&v?g.add("".concat(o,"-focused")):d&&c+.5>=h&&c<h?(g.add("".concat(o,"-half")),g.add("".concat(o,"-active")),v&&g.add("".concat(o,"-focused"))):(h<=c?g.add("".concat(o,"-full")):g.add("".concat(o,"-zero")),h===c&&v&&g.add("".concat(o,"-focused")));var b="function"==typeof r?r(e):r,A=f.createElement("li",{className:i()(Array.from(g)),ref:n},f.createElement("div",{onClick:t?null:function(e){m(e,l)},onKeyDown:t?null:function(e){e.keyCode===s.A.ENTER&&m(e,l)},onMouseMove:t?null:function(e){p(e,l)},role:"radio","aria-checked":c>l?"true":"false","aria-posinset":l+1,"aria-setsize":u,tabIndex:t?-1:0},f.createElement("div",{className:"".concat(o,"-first")},b),f.createElement("div",{className:"".concat(o,"-second")},b)));return a&&(A=a(A,e)),A}const p=f.forwardRef(v);var m=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function h(e,n){var t,u,v=e.prefixCls,h=void 0===v?"rc-rate":v,g=e.className,b=e.defaultValue,A=e.value,y=e.count,C=void 0===y?5:y,E=e.allowHalf,w=void 0!==E&&E,x=e.allowClear,k=void 0===x||x,S=e.character,M=void 0===S?"★":S,N=e.characterRender,R=e.disabled,D=e.direction,I=void 0===D?"ltr":D,P=e.tabIndex,O=void 0===P?0:P,F=e.autoFocus,L=e.onHoverChange,T=e.onChange,V=e.onFocus,W=e.onBlur,H=e.onKeyDown,K=e.onMouseLeave,_=(0,l.A)(e,m),j=(u=f.useRef({}),[function(e){return u.current[e]},function(e){return function(n){u.current[e]=n}}]),z=(0,a.A)(j,2),B=z[0],U=z[1],X=f.useRef(null),G=function(){var e;R||(null===(e=X.current)||void 0===e||e.focus())};f.useImperativeHandle(n,function(){return{focus:G,blur:function(){var e;R||(null===(e=X.current)||void 0===e||e.blur())}}});var Y=(0,c.A)(b||0,{value:A}),q=(0,a.A)(Y,2),$=q[0],J=q[1],Q=(0,c.A)(null),Z=(0,a.A)(Q,2),ee=Z[0],ne=Z[1],te=function(e,n){var t,o,r,a,l="rtl"===I,u=e+1;if(w){var i=B(e),c=(o=function(e){var n,t,o=e.ownerDocument,r=o.body,a=o&&o.documentElement,l=e.getBoundingClientRect();return n=l.left,t=l.top,{left:n-=a.clientLeft||r.clientLeft||0,top:t-=a.clientTop||r.clientTop||0}}(t=i),r=t.ownerDocument,a=r.defaultView||r.parentWindow,o.left+=function(e){var n=e.pageXOffset,t="scrollLeft";if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[t])&&(n=o.body[t])}return n}(a),o.left),s=i.clientWidth;(l&&n-c>s/2||!l&&n-c<s/2)&&(u-=.5)}return u},oe=function(e){J(e),null==T||T(e)},re=f.useState(!1),ae=(0,a.A)(re,2),le=ae[0],ue=ae[1],ie=f.useState(null),ce=(0,a.A)(ie,2),se=ce[0],de=ce[1],fe=function(e,n){var t=te(n,e.pageX);t!==ee&&(de(t),ne(null)),null==L||L(t)},ve=function(e){R||(de(null),ne(null),null==L||L(void 0)),e&&(null==K||K(e))},pe=function(e,n){var t=te(n,e.pageX),o=!1;k&&(o=t===$),ve(),oe(o?0:t),ne(o?t:null)};f.useEffect(function(){F&&!R&&G()},[]);var me=new Array(C).fill(0).map(function(e,n){return f.createElement(p,{ref:U(n),index:n,count:C,disabled:R,prefixCls:"".concat(h,"-star"),allowHalf:w,value:null===se?$:se,onClick:pe,onHover:fe,key:e||n,character:M,characterRender:N,focused:le})}),he=i()(h,g,(t={},(0,r.A)(t,"".concat(h,"-disabled"),R),(0,r.A)(t,"".concat(h,"-rtl"),"rtl"===I),t));return f.createElement("ul",(0,o.A)({className:he,onMouseLeave:ve,tabIndex:R?-1:O,onF
1ocus:R?null:function(){ue(!0),null==V||V()},onBlur:R?null:function(){ue(!1),null==W||W()},onKeyDown:R?null:function(e){var n=e.keyCode,t="rtl"===I,o=$;n===s.A.RIGHT&&o<C&&!t?(oe(o+=w?.5:1),e.preventDefault()):n===s.A.LEFT&&o>0&&!t||n===s.A.RIGHT&&o>0&&t?(oe(o-=w?.5:1),e.preventDefault()):n===s.A.LEFT&&o<C&&t&&(oe(o+=w?.5:1),e.preventDefault()),null==H||H(e)},ref:X,role:"radiogroup"},(0,d.A)(_,{aria:!0,data:!0,attr:!0})),me)}const g=f.forwardRef(h)},37978(e,n,t){t.r(n),t.d(n,{_rs:()=>p,default:()=>x});var o=t(58168),r=t(9950),a=t(50604),l=(t(99424),t(89379)),u=t(82284),i=t(46962),c=t(41929),s=r.createContext(null);var d=t(30853),f=new Map;var v=new d.A(function(e){e.forEach(function(e){var n,t=e.target;null===(n=f.get(t))||void 0===n||n.forEach(function(e){return e(t)})})}),p=null;var m=t(23029),h=t(92901),g=t(15361),b=t(29426),A=function(e){(0,g.A)(t,e);var n=(0,b.A)(t);function t(){return(0,m.A)(this,t),n.apply(this,arguments)}return(0,h.A)(t,[{key:"render",value:function(){return this.props.children}}]),t}(r.Component);function y(e,n){var t=e.children,o=e.disabled,a=r.useRef(null),d=r.useRef(null),p=r.useContext(s),m="function"==typeof t,h=m?t(a):t,g=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!m&&r.isValidElement(h)&&(0,c.f3)(h),y=b?(0,c.A9)(h):null,C=(0,c.xK)(y,a),E=function(){var e;return(0,i.Ay)(a.current)||(a.current&&"object"===(0,u.A)(a.current)?(0,i.Ay)(null===(e=a.current)||void 0===e?void 0:e.nativeElement):null)||(0,i.Ay)(d.current)};r.useImperativeHandle(n,function(){return E()});var w=r.useRef(e);w.current=e;var x=r.useCallback(function(e){var n=w.current,t=n.onResize,o=n.data,r=e.getBoundingClientRect(),a=r.width,u=r.height,i=e.offsetWidth,c=e.offsetHeight,s=Math.floor(a),d=Math.floor(u);if(g.current.width!==s||g.current.height!==d||g.current.offsetWidth!==i||g.current.offsetHeight!==c){var f={width:s,height:d,offsetWidth:i,offsetHeight:c};g.current=f;var v=i===Math.round(a)?a:i,m=c===Math.round(u)?u:c,h=(0,l.A)((0,l.A)({},f),{},{offsetWidth:v,offsetHeight:m});null==p||p(h,e,o),t&&Promise.resolve().then(function(){t(h,e)})}},[]);return r.useEffect(function(){var e,n,t=E();return t&&!o&&(e=t,n=x,f.has(e)||(f.set(e,new Set),v.observe(e)),f.get(e).add(n)),function(){return function(e,n){f.has(e)&&(f.get(e).delete(n),f.get(e).size||(v.unobserve(e),f.delete(e)))}(t,x)}},[a.current,o]),r.createElement(A,{ref:d},b?r.cloneElement(h,{ref:C}):h)}const C=r.forwardRef(y);function E(e,n){var t=e.children;return("function"==typeof t?[t]:(0,a.A)(t)).map(function(t,a){var l=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(a);return r.createElement(C,(0,o.A)({},e,{key:l,ref:0===a?n:void 0}),t)})}var w=r.forwardRef(E);w.Collection=function(e){var n=e.children,t=e.onBatchResize,o=r.useRef(0),a=r.useRef([]),l=r.useContext(s),u=r.useCallback(function(e,n,r){o.current+=1;var u=o.current;a.current.push({size:e,element:n,data:r}),Promise.resolve().then(function(){u===o.current&&(null==t||t(a.current),a.current=[])}),null==l||l(e,n,r)},[t,l]);return r.createElement(s.Provider,{value:u},n)};const x=w},92171(e,n,t){t.r(n),t.d(n,{default:()=>w});var o=t(58168),r=t(5544),a=t(80045),l=t(64467),u=t(89379),i=t(82284),c=t(9950),s=t(48738),d=t.n(s),f=t(71207),v=t(41929),p=t(15207),m=t(87418),h=t(13511),g=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},b=function(e){return void 0!==e?"".concat(e,"px"):void 0};function A(e){var n=e.prefixCls,t=e.containerRef,o=e.value,a=e.getValueIndex,l=e.motionName,i=e.onMotionStart,s=e.onMotionEnd,f=e.direction,p=c.useRef(null),A=c.useState(o),y=(0,r.A)(A,2),C=y[0],E=y[1],w=function(e){var o,r=a(e),l=null===(o=t.current)||void 0===o?void 0:o.querySelectorAll(".".concat(n,"-item"))[r];return(null==l?void 0:l.offsetParent)&&l},x=c.useState(null),k=(0,r.A)(x,2),S=k[0],M=k[1],N=c.useState(null),R=(0,r.A)(N,2),D=R[0],I=R[1];(0,h.A)(function(){if(C!==o){var e=w(C),n=w(o),t=g(e),r=g(n);E(o),M(t),I(r),e&&n?i():s()}},[o]);var P=c.useMemo(function(){return b("rtl"===f?-(null==S?void 0:S.right):null==S?void 0:S.left)},[f,S]),O=c.useMemo(function(){return b("rtl"===f?-(null==D?void 0:D.right):null==D?void 0:D.left)},[f,D]);return S&&D?c.createElement(m.default,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){M(null),I(null),s()}},function(e,t){var o=e.className,r=e.style,a=(0,u.A)((0,u.A)({},r),{},{"--thumb-start-left":P,"--thumb-start-width":b(null==S?void 0:S.width),"--thumb-active-left":O,"--thumb-active-width":b(null==D?void 0:D.width)}),l={ref:(0,v.K4)(p,t),style:a,className:d()("".concat(n,"-thumb"),o)};return c.createElement("div",l)}):null}var y=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function C(e){return e.map(function(e){if("object"===(0,i.A)(e)&&null!==e){var n=function(e){return void 0!==e.title?e.title:"object"!==(0,i.A)(e.label)?null===(n=e.label)||void 0===n?void 0:n.toString():void 0;var n}(e);return(0,u.A)((0,u.A)({},e),{},{title:n})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}})}var E=function(e){var n=e.prefixCls,t=e.className,o=e.disabled,r=e.checked,a=e.label,u=e.title,i=e.value,s=e.onCh
1ange;return c.createElement("label",{className:d()(t,(0,l.A)({},"".concat(n,"-item-disabled"),o))},c.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:r,onChange:function(e){o||s(e,i)}}),c.createElement("div",{className:"".concat(n,"-item-label"),title:u},a))};const w=c.forwardRef(function(e,n){var t,u,i=e.prefixCls,s=void 0===i?"rc-segmented":i,m=e.direction,h=e.options,g=void 0===h?[]:h,b=e.disabled,w=e.defaultValue,x=e.value,k=e.onChange,S=e.className,M=void 0===S?"":S,N=e.motionName,R=void 0===N?"thumb-motion":N,D=(0,a.A)(e,y),I=c.useRef(null),P=c.useMemo(function(){return(0,v.K4)(I,n)},[I,n]),O=c.useMemo(function(){return C(g)},[g]),F=(0,f.A)(null===(t=O[0])||void 0===t?void 0:t.value,{value:x,defaultValue:w}),L=(0,r.A)(F,2),T=L[0],V=L[1],W=c.useState(!1),H=(0,r.A)(W,2),K=H[0],_=H[1],j=function(e,n){b||(V(n),null==k||k(n))},z=(0,p.A)(D,["children"]);return c.createElement("div",(0,o.A)({},z,{className:d()(s,(u={},(0,l.A)(u,"".concat(s,"-rtl"),"rtl"===m),(0,l.A)(u,"".concat(s,"-disabled"),b),u),M),ref:P}),c.createElement("div",{className:"".concat(s,"-group")},c.createElement(A,{prefixCls:s,value:T,containerRef:I,motionName:"".concat(s,"-").concat(R),direction:m,getValueIndex:function(e){return O.findIndex(function(n){return n.value===e})},onMotionStart:function(){_(!0)},onMotionEnd:function(){_(!1)}}),O.map(function(e){return c.createElement(E,(0,o.A)({},e,{key:e.value,prefixCls:s,className:d()(e.className,"".concat(s,"-item"),(0,l.A)({},"".concat(s,"-item-selected"),e.value===T&&!K)),checked:e.value===T,onChange:j,disabled:!!b||!!e.disabled}))})))})},76253(e,n,t){t.d(n,{Ay:()=>i});var o=t(5544),r=t(9950),a=t(3888),l=0,u=(0,a.A)();function i(e){var n=r.useState(),t=(0,o.A)(n,2),a=t[0],i=t[1];return r.useEffect(function(){var e;i("rc_select_".concat((u?(e=l,l+=1):e="TEST_OR_SSR",e)))},[]),e||a}},46867(e,n,t){t.r(n),t.d(n,{BaseSelect:()=>$,OptGroup:()=>Q,Option:()=>ee,default:()=>Ee,useBaseProps:()=>C});var o=t(58168),r=t(60436),a=t(64467),l=t(89379),u=t(5544),i=t(80045),c=t(82284),s=t(71207),d=t(99424),f=t(9950),v=t(48738),p=t.n(v),m=t(13511),h=t(56584),g=t(91478),b=t(41929);const A=function(e){var n=e.className,t=e.customizeIcon,o=e.customizeIconProps,r=e.children,a=e.onMouseDown,l=e.onClick,u="function"==typeof t?t(o):t;return f.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==u?u:f.createElement("span",{className:p()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},r))};var y=f.createContext(null);function C(){return f.useContext(y)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=f.useRef(null),t=f.useRef(null);return f.useEffect(function(){return function(){window.clearTimeout(t.current)}},[]),[function(){return n.current},function(o){(o||null===n.current)&&(n.current=o),window.clearTimeout(t.current),t.current=window.setTimeout(function(){n.current=null},e)}]}var w=t(82795),x=t(19382),k=function(e,n){var t,o=e.prefixCls,r=e.id,a=e.inputElement,u=e.disabled,i=e.tabIndex,c=e.autoFocus,s=e.autoComplete,v=e.editable,m=e.activeDescendantId,h=e.value,g=e.maxLength,A=e.onKeyDown,y=e.onMouseDown,C=e.onChange,E=e.onPaste,w=e.onCompositionStart,x=e.onCompositionEnd,k=e.open,S=e.attrs,M=a||f.createElement("input",null),N=M,R=N.ref,D=N.props,I=D.onKeyDown,P=D.onChange,O=D.onMouseDown,F=D.onCompositionStart,L=D.onCompositionEnd,T=D.style;return(0,d.$e)(!("maxLength"in M.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),M=f.cloneElement(M,(0,l.A)((0,l.A)((0,l.A)({type:"search"},D),{},{id:r,ref:(0,b.K4)(n,R),disabled:u,tabIndex:i,autoComplete:s||"off",autoFocus:c,className:p()("".concat(o,"-selection-search-input"),null===(t=M)||void 0===t||null===(t=t.props)||void 0===t?void 0:t.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":k?m:void 0},S),{},{value:v?h:"",maxLength:g,readOnly:!v,unselectable:v?null:"on",style:(0,l.A)((0,l.A)({},T),{},{opacity:v?null:0}),onKeyDown:function(e){A(e),I&&I(e)},onMouseDown:function(e){y(e),O&&O(e)},onChange:function(e){C(e),P&&P(e)},onCompositionStart:function(e){w(e),F&&F(e)},onCompositionEnd:function(e){x(e),L&&L(e)},onPaste:E}))};const S=f.forwardRef(k);function M(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var N="undefined"!=typeof window&&window.document&&window.document.documentElement;function R(e){return["string","number"].includes((0,c.A)(e))}function D(e){var n=void 0;return e&&(R(e.title)?n=e.title.toString():R(e.label)&&(n=e.label.toString())),n}function I(e){var n;return null!==(n=e.key)&&void 0!==n?n:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()};const O=function(e){var n,t,o=e.id,r=e.prefixCls,l=e.values,i=e.open,c=e.searchValue,s=e.autoClearSearchValue,d=e.inputRef,v=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,y=e.autoComplete,C=e.activeDescendantId,E=e.tabIndex,k=e.removeIcon,M=e.maxTagCount,R=e.maxTagTextLength,O=e.maxTagPlaceholder,F=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,L=e.tagRender,T=e.onToggleOpen,V=e.onRemove,W=e.onInputChange,H=e.onInputPaste,K=e.onInputKeyDown,_=e.onInputMouseDown,j=e.onInputCompositionStart,z=e.onInputCompositionEnd,B=f.useRef(null),U=(0,f.useState)(0),X=(0,u.A)(U,2),G=X[0],Y=X[1],q=(0,f.useState)(!1),$=(0,u.A)(q,2),J=$[0],Q=$[1],Z="".concat(r,"-selection"),ee=i||"multiple"===h&&!1===s||"tags"===h?c:"",ne="tags"===h||"multiple"===h&&!1===s||g&&(i||J);n=function(){Y(B.current.scrollWidth)},t=[ee],N?f.useLayoutEffect(n,t):f.useEffect(n,t);var te=function(e,n,t,o,r){return f.createElement("span",{title:D(e),className:p()("".concat(Z,"-item"),(0,a.A)({},"".concat(Z,"-item-disabled"),t))},f.createElement("span",{className:"".concat(Z,"-item-content")},n),o&&f.createElement(A,{className:"".concat(Z,"-item-remove"),onMouseDown:P,onClick:r,customizeIcon:k},"×"))},oe=f.createElement("div",{className:"".concat(Z,"-search"),style:{width:G},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},f.createElement(S,{ref:d,open:i,prefixCls:r,id:o,inputElement:null,disabled:m,autoFocus:b,autoComplete:y,editable:ne,activeDescendantId:C,value:ee,onKeyDown:K,onMouseDown:_,onChange:W,onPaste:H,onCompositionStart:j,onCompositionEnd:z,tabIndex:E,attrs:(0,w.A)(e,!0)}),f.createElement("span",{ref:B,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee," ")),re=f.createElement(x.A,{prefixCls:"".concat(Z,"-overflow"),data:l,renderItem:function(e){var n=e.disabled,t=e.label,o=e.value,r=!m&&!n,a=t;if("number"==typeof R&&("string"==typeof t||"number"==typeof t)){var l=String(a);l.length>R&&(a="".concat(l.slice(0,R),"..."))}var u=function(n){n&&n.stopPropagation(),V(e)};return"function"==typeof L?function(e,n,t,o,r){return f.createElement("span",{onMouseDown:function(e){P(e),T(!i)}},L({label:n,value:e,disabled:t,closable:o,onClose:r}))}(o,a,n,r,u):te(e,a,n,r,u)},renderRest:function(e){var n="function"==typeof F?F(e):F;return te({title:n},n,!1)},suffix:oe,itemKey:I,maxCount:M});return f.createElement(f.Fragment,null,re,!l.length&&!ee&&f.createElement("span",{className:"".concat(Z,"-placeholder")},v))};const F=function(e){var n=e.inputElement,t=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,l=e.autoFocus,i=e.autoComplete,c=e.activeDescendantId,s=e.mode,d=e.open,v=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,A=e.maxLength,y=e.onInputKeyDown,C=e.onInputMouseDown,E=e.onInputChange,x=e.onInputPaste,k=e.onInputCompositionStart,M=e.onInputCompositionEnd,N=e.title,R=f.useState(!1),I=(0,u.A)(R,2),P=I[0],O=I[1],F="combobox"===s,L=F||h,T=v[0],V=g||"";F&&b&&!P&&(V=b),f.useEffect(function(){F&&O(!1)},[F,b]);
1var W=!("combobox"!==s&&!d&&!h)&&!!V,H=void 0===N?D(T):N,K=f.useMemo(function(){return T?null:f.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:W?{visibility:"hidden"}:void 0},p)},[T,W,p,t]);return f.createElement(f.Fragment,null,f.createElement("span",{className:"".concat(t,"-selection-search")},f.createElement(S,{ref:r,prefixCls:t,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:i,editable:L,activeDescendantId:c,value:V,onKeyDown:y,onMouseDown:C,onChange:function(e){O(!0),E(e)},onPaste:x,onCompositionStart:k,onCompositionEnd:M,tabIndex:m,attrs:(0,w.A)(e,!0),maxLength:F?A:void 0})),!F&&T?f.createElement("span",{className:"".concat(t,"-selection-item"),title:H,style:W?{visibility:"hidden"}:void 0},T.label):null,K)};var L=function(e,n){var t=(0,f.useRef)(null),r=(0,f.useRef)(!1),a=e.prefixCls,l=e.open,i=e.mode,c=e.showSearch,s=e.tokenWithEnter,d=e.autoClearSearchValue,v=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;f.useImperativeHandle(n,function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}});var A=E(0),y=(0,u.A)(A,2),C=y[0],w=y[1],x=(0,f.useRef)(null),k=function(e){!1!==v(e,!0,r.current)&&m(!0)},S={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==g.A.UP&&t!==g.A.DOWN||e.preventDefault(),h&&h(e),t!==g.A.ENTER||"tags"!==i||r.current||l||null==p||p(e.target.value),n=t,[g.A.ESC,g.A.SHIFT,g.A.BACKSPACE,g.A.TAB,g.A.WIN_KEY,g.A.ALT,g.A.META,g.A.WIN_KEY_RIGHT,g.A.CTRL,g.A.SEMICOLON,g.A.EQUALS,g.A.CAPS_LOCK,g.A.CONTEXT_MENU,g.A.F1,g.A.F2,g.A.F3,g.A.F4,g.A.F5,g.A.F6,g.A.F7,g.A.F8,g.A.F9,g.A.F10,g.A.F11,g.A.F12].includes(n)||m(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var n=e.target.value;if(s&&x.current&&/[\r\n]/.test(x.current)){var t=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,x.current)}x.current=null,k(n)},onInputPaste:function(e){var n=e.clipboardData,t=null==n?void 0:n.getData("text");x.current=t||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==i&&k(e.target.value)}},M="multiple"===i||"tags"===i?f.createElement(O,(0,o.A)({},e,S)):f.createElement(F,(0,o.A)({},e,S));return f.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:function(e){e.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){t.current.focus()}):t.current.focus())},onMouseDown:function(e){var n=C();e.target===t.current||n||"combobox"===i||e.preventDefault(),("combobox"===i||c&&n)&&l||(l&&!1!==d&&v("",!0,!1),m())}},M)};const T=f.forwardRef(L);var V=t(38606),W=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function(e,n){var t=e.prefixCls,r=(e.disabled,e.visible),u=e.children,c=e.popupElement,s=e.animation,d=e.transitionName,v=e.dropdownStyle,m=e.dropdownClassName,h=e.direction,g=void 0===h?"ltr":h,b=e.placement,A=e.builtinPlacements,y=e.dropdownMatchSelectWidth,C=e.dropdownRender,E=e.dropdownAlign,w=e.getPopupContainer,x=e.empty,k=e.getTriggerDOMNode,S=e.onPopupVisibleChange,M=e.onPopupMouseEnter,N=(0,i.A)(e,W),R="".concat(t,"-dropdown"),D=c;C&&(D=C(c));var I=f.useMemo(function(){return A||function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}}(y)},[A,y]),P=s?"".concat(R,"-").concat(s):d,O="number"==typeof y,F=f.useMemo(function(){return O?null:!1===y?"minWidth":"width"},[y,O]),L=v;O&&(L=(0,l.A)((0,l.A)({},L),{},{width:y}));var T=f.useRef(null);return f.useImperativeHandle(n,function(){return{getPopupElement:function(){return T.current}}}),f.createElement(V.A,(0,o.A)({},N,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:R,popupTransitionName:P,popup:f.createElement("div",{ref:T,onMouseEnter:M},D),stretch:F,popupAlign:E,popupVisible:r,getPopupContainer:w,popupClassName:p()(m,(0,a.A)({},"".concat(R,"-empty"),x)),popupStyle:L,getTriggerDOMNode:k,onPopupVisibleChange:S}),u)};const K=f.forwardRef(H);var _=t(87695);function j(e,n){var t,o=e.key;return"value"in e&&(t=e.value),null!=o?o:void 0!==t?t:"rc-index-key-".concat(n)}function z(e,n){var t=e||{},o=t.label||(n?"children":"label");return{label:o,value:t.value||"value",options:t.options||"options",groupLabel:t.groupLabel||o}}function B(e){var n=(0,l.A)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,d.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}const U=f.createContext(null);var X=["id","prefixCls","className","showSearch","tagRender","direction","om
1itDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],G=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Y=function(e){return"tags"===e||"multiple"===e},q=f.forwardRef(function(e,n){var t,d,v=e.id,C=e.prefixCls,w=e.className,x=e.showSearch,k=e.tagRender,S=e.direction,M=e.omitDomProps,N=e.displayValues,R=e.onDisplayValuesChange,D=e.emptyOptions,I=e.notFoundContent,P=void 0===I?"Not Found":I,O=e.onClear,F=e.mode,L=e.disabled,V=e.loading,W=e.getInputElement,H=e.getRawInputElement,j=e.open,z=e.defaultOpen,B=e.onDropdownVisibleChange,q=e.activeValue,$=e.onActiveValueChange,J=e.activeDescendantId,Q=e.searchValue,Z=e.autoClearSearchValue,ee=e.onSearch,ne=e.onSearchSplit,te=e.tokenSeparators,oe=e.allowClear,re=e.suffixIcon,ae=e.clearIcon,le=e.OptionList,ue=e.animation,ie=e.transitionName,ce=e.dropdownStyle,se=e.dropdownClassName,de=e.dropdownMatchSelectWidth,fe=e.dropdownRender,ve=e.dropdownAlign,pe=e.placement,me=e.builtinPlacements,he=e.getPopupContainer,ge=e.showAction,be=void 0===ge?[]:ge,Ae=e.onFocus,ye=e.onBlur,Ce=e.onKeyUp,Ee=e.onKeyDown,we=e.onMouseDown,xe=(0,i.A)(e,X),ke=Y(F),Se=(void 0!==x?x:ke)||"combobox"===F,Me=(0,l.A)({},xe);G.forEach(function(e){delete Me[e]}),null==M||M.forEach(function(e){delete Me[e]});var Ne=f.useState(!1),Re=(0,u.A)(Ne,2),De=Re[0],Ie=Re[1];f.useEffect(function(){Ie((0,h.A)())},[]);var Pe=f.useRef(null),Oe=f.useRef(null),Fe=f.useRef(null),Le=f.useRef(null),Te=f.useRef(null),Ve=f.useRef(!1),We=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=f.useState(!1),t=(0,u.A)(n,2),o=t[0],r=t[1],a=f.useRef(null),l=function(){window.clearTimeout(a.current)};return f.useEffect(function(){return l},[]),[o,function(n,t){l(),a.current=window.setTimeout(function(){r(n),t&&t()},e)},l]}(),He=(0,u.A)(We,3),Ke=He[0],_e=He[1],je=He[2];f.useImperativeHandle(n,function(){var e,n;return{focus:null===(e=Le.current)||void 0===e?void 0:e.focus,blur:null===(n=Le.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=Te.current)||void 0===n?void 0:n.scrollTo(e)}}});var ze=f.useMemo(function(){var e;if("combobox"!==F)return Q;var n=null===(e=N[0])||void 0===e?void 0:e.value;return"string"==typeof n||"number"==typeof n?String(n):""},[Q,F,N]),Be="combobox"===F&&"function"==typeof W&&W()||null,Ue="function"==typeof H&&H(),Xe=(0,b.xK)(Oe,null==Ue||null===(t=Ue.props)||void 0===t?void 0:t.ref),Ge=f.useState(!1),Ye=(0,u.A)(Ge,2),qe=Ye[0],$e=Ye[1];(0,m.A)(function(){$e(!0)},[]);var Je=(0,s.A)(!1,{defaultValue:z,value:j}),Qe=(0,u.A)(Je,2),Ze=Qe[0],en=Qe[1],nn=!!qe&&Ze,tn=!P&&D;(L||tn&&nn&&"combobox"===F)&&(nn=!1);var on=!tn&&nn,rn=f.useCallback(function(e){var n=void 0!==e?e:!nn;L||(en(n),nn!==n&&(null==B||B(n)))},[L,nn,en,B]),an=f.useMemo(function(){return(te||[]).some(function(e){return["\n","\r\n"].includes(e)})},[te]),ln=f.useContext(U)||{},un=ln.maxCount,cn=ln.rawValues,sn=function(e,n,t){if(!((null==cn?void 0:cn.size)>=un)){var o=!0,a=e;null==$||$(null);var l=function(e,n,t){if(!n||!n.length)return null;var o=!1,a=function e(n,t){var a=(0,_.A)(t),l=a[0],u=a.slice(1);if(!l)return[n];var i=n.split(l);return o=o||i.length>1,i.reduce(function(n,t){return[].concat((0,r.A)(n),(0,r.A)(e(t,u)))},[]).filter(Boolean)}(e,n);return o?void 0!==t?a.slice(0,t):a:null}(e,te,un&&un-cn.size),u=t?null:l;return"combobox"!==F&&u&&(a="",null==ne||ne(u),rn(!1),o=!1),ee&&ze!==a&&ee(a,{source:n?"typing":"effect"}),o}};f.useEffect(function(){nn||ke||"combobox"===F||sn("",!1,!1)},[nn]),f.useEffect(function(){Ze&&L&&en(!1),L&&!Ve.current&&_e(!1)},[L]);var dn=E(),fn=(0,u.A)(dn,2),vn=fn[0],pn=fn[1],mn=f.useRef(!1),hn=[];f.useEffect(function(){return function(){hn.forEach(function(e){return clearTimeout(e)}),hn.splice(0,hn.length)}},[]);var gn,bn=f.useState({}),An=(0,u.A)(bn,2)[1];Ue&&(gn=function(e){rn(e)}),function(e,n,t,o){var r=f.useRef(null);r.current={open:n,triggerOpen:t,customizedTrigger:o},f.useEffect(function(){function n(n){var t;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=n.target;
1o.shadowRoot&&n.composed&&(o=n.composedPath()[0]||o),r.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}},[])}(function(){var e;return[Pe.current,null===(e=Fe.current)||void 0===e?void 0:e.getPopupElement()]},on,rn,!!Ue);var yn,Cn=f.useMemo(function(){return(0,l.A)((0,l.A)({},e),{},{notFoundContent:P,open:nn,triggerOpen:on,id:v,showSearch:Se,multiple:ke,toggleOpen:rn})},[e,P,on,nn,v,Se,ke,rn]),En=!!re||V;En&&(yn=f.createElement(A,{className:p()("".concat(C,"-arrow"),(0,a.A)({},"".concat(C,"-arrow-loading"),V)),customizeIcon:re,customizeIconProps:{loading:V,searchValue:ze,open:nn,focused:Ke,showSearch:Se}}));var wn,xn=function(e,n,t,o,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,i=f.useMemo(function(){return"object"===(0,c.A)(o)?o.clearIcon:r||void 0},[o,r]);return{allowClear:f.useMemo(function(){return!(a||!o||!t.length&&!l||"combobox"===u&&""===l)},[o,a,t.length,l,u]),clearIcon:f.createElement(A,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:i},"×")}}(C,function(){var e;null==O||O(),null===(e=Le.current)||void 0===e||e.focus(),R([],{type:"clear",values:N}),sn("",!1,!1)},N,oe,ae,L,ze,F),kn=xn.allowClear,Sn=xn.clearIcon,Mn=f.createElement(le,{ref:Te}),Nn=p()(C,w,(d={}
1,(0,a.A)(d,"".concat(C,"-focused"),Ke),(0,a.A)(d,"".concat(C,"-multiple"),ke),(0,a.A)(d,"".concat(C,"-single"),!ke),(0,a.A)(d,"".concat(C,"-allow-clear"),oe),(0,a.A)(d,"".concat(C,"-show-arrow"),En),(0,a.A)(d,"".concat(C,"-disabled"),L),(0,a.A)(d,"".concat(C,"-loading"),V),(0,a.A)(d,"".concat(C,"-open"),nn),(0,a.A)(d,"".concat(C,"-customize-input"),Be),(0,a.A)(d,"".concat(C,"-show-search"),Se),d)),Rn=f.createElement(K,{ref:Fe,disabled:L,prefixCls:C,visible:on,popupElement:Mn,animation:ue,transitionName:ie,dropdownStyle:ce,dropdownClassName:se,direction:S,dropdownMatchSelectWidth:de,dropdownRender:fe,dropdownAlign:ve,placement:pe,builtinPlacements:me,getPopupContainer:he,empty:D,getTriggerDOMNode:function(){return Oe.current},onPopupVisibleChange:gn,onPopupMouseEnter:function(){An({})}},Ue?f.cloneElement(Ue,{ref:Xe}):f.createElement(T,(0,o.A)({},e,{domRef:Oe,prefixCls:C,inputElement:Be,ref:Le,id:v,showSearch:Se,autoClearSearchValue:Z,mode:F,activeDescendantId:J,tagRender:k,values:N,open:nn,onToggleOpen:rn,activeValue:q,searchValue:ze,onSearch:sn,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var n=N.filter(function(n){return n!==e});R(n,{type:"remove",values:[e]})},tokenWithEnter:an})));return wn=Ue?Rn:f.createElement("div",(0,o.A)({className:Nn},Me,{ref:Pe,onMouseDown:function(e){var n,t=e.target,o=null===(n=Fe.current)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(t)){var r=setTimeout(function(){var e,n=hn.indexOf(r);-1!==n&&hn.splice(n,1),je(),De||o.contains(document.activeElement)||null===(e=Le.current)||void 0===e||e.focus()});hn.push(r)}for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];null==we||we.apply(void 0,[e].concat(l))},onKeyDown:function(e){var n,t=vn(),o=e.which;if(o===g.A.ENTER&&("combobox"!==F&&e.preventDefault(),nn||rn(!0)),pn(!!ze),o===g.A.BACKSPACE&&!t&&ke&&!ze&&N.length){for(var a=(0,r.A)(N),l=null,u=a.length-1;u>=0;u-=1){var i=a[u];if(!i.disabled){a.splice(u,1),l=i;break}}l&&R(a,{type:"remove",values:[l]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),d=1;d<c;d++)s[d-1]=arguments[d];nn&&(null===(n=Te.current)||void 0===n||n.onKeyDown.apply(n,[e].concat(s))),null==Ee||Ee.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];var r;nn&&(null===(r=Te.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(t))),null==Ce||Ce.apply(void 0,[e].concat(t))},onFocus:function(){_e(!0),L||(Ae&&!mn.current&&Ae.apply(void 0,arguments),be.includes("focus")&&rn(!0)),mn.current=!0},onBlur:function(){Ve.current=!0,_e(!1,function(){mn.current=!1,Ve.current=!1,rn(!1)}),L||(ze&&("tags"===F?ee(ze,{source:"submit"}):"multiple"===F&&ee("",{source:"blur"})),ye&&ye.apply(void 0,arguments))}}),Ke&&!nn&&f.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(N.map(function(e){var n=e.label,t=e.value;return["number","string"].includes((0,c.A)(n))?n:t}).join(", "))),Rn,yn,kn&&Sn),f.createElement(y.Provider,{value:Cn},wn)});const $=q;var J=function(){return null};J.isSelectOptGroup=!0;const Q=J;var Z=function(){return null};Z.isSelectOption=!0;const ee=Z;var ne=t(86910),te=t(15207),oe=t(96175);var re=["disabled","title","children","style","className"];function ae(e){return"string"==typeof e||"number"==typeof e}var le=function(e,n){var t=C(),l=t.prefixCls,c=t.id,s=t.open,d=t.multiple,v=t.mode,m=t.searchValue,h=t.toggleOpen,b=t.notFoundContent,y=t.onPopupScroll,E=f.useContext(U),x=E.maxCount,k=E.flattenOptions,S=E.onActiveValue,M=E.defaultActiveFirstOption,N=E.onSelect,R=E.menuItemSelectedIcon,D=E.rawValues,I=E.fieldNames,P=E.virtual,O=E.direction,F=E.listHeight,L=E.listItemHeight,T=E.optionRender,V="".concat(l,"-item"),W=(0,ne.A)(function(){return k},[s,k],function(e,n){return n[0]&&e[1]!==n[1]}),H=f.useRef(null),K=f.useMemo(function(){return d&&void 0!==x&&(null==D?void 0:D.size)>=x},[d,x,null==D?void 0:D.size]),_=function(e){e.preventDefault()},j=function(e){var n;null===(n=H.current)||void 0===n||n.scrollTo("number"==typeof e?{index:e}:e)},z=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=W.length,o=0;o<t;o+=1){var r=(e+o*n+t)%t,a=W[r]||{},l=a.group,u=a.data;if(!(l||null!=u&&u.disabled||K))return r}return-1},B=f.useState(function(){return z(0)}),X=(0,u.A)(B,2),G=X[0],Y=X[1],q=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Y(e);var t={source:n?"keyboard":"mouse"},o=W[e];o?S(o.value,e,t):S(null,-1,t)};(0,f.useEffect)(function(){q(!1!==M?z(0):-1)},[W.length,m]);var $=f.useCallback(function(e){return D.has(e)&&"combobox"!==v},[v,(0,r.A)(D).toString(),D.size]);(0,f.useEffect)(function(){var e,n=setTimeout(function(){if(!d&&s&&1===D.size){var e=Array.from(D)[0],n=W.findIndex(function(n){return n.data.value===e});-1!==n&&(q(n),j(n))}});s&&(null===(e=H.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}},[s,m]);var J=function(e){void 0!==e&&N(e,{selected:!D.has(e)}),d||h(!1)};if(f.useImperativeHandle(n,function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case g.A.N:case g.A.P:case g.A.UP:case g.A.DOWN:var o=0;if(n===g.A.UP?o=-1:n===g.A.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===g.A.N?o=1:n===g.A.P&&(o=-1)),0!==o){var r=z(G+o,o);j(r),q(r,!0)}break;case g.A.ENTER:var a,l=W[G];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||K?J(void 0):J(l.value),s&&e.preventDefault();break;case g.A.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}}),0===W.length)return f.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(V,"-empty"),onMouseDown:_},b);var Q=Object.keys(I).map(function(e){return I[e]}),Z=function(e){return e.label};function ee(e,n){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(n)}}var le=function(e){var n=W[e];if(!n)return null;var t=n.data||{},r=t.value,a=n.group,l=(0,w.A)(t,!0),u=Z(n);return n?f.createElement("div",(0,o.A)({"aria-label":"string"!=typeof u||a?null:u},l,{key:e},ee(n,e),{"aria-selected":$(r)}),r):null},ue={role:"listbox",id:"".concat(c,"_list")};return f.createElement(f.Fragment,null,P&&f.createElement("div",(0,o.A)({},ue,{style:{height:0,width:0,overflow:"hidden"}}),le(G-1),le(G),le(G+1)),f.createElement(oe.A,{itemKey:"key",ref:H,data:W,height:F,itemHeight:L,fullHeight:!1,onMouseDown:_,onScroll:y,virtual:P,direction:O,innerProps:P?null:ue},function(e,n){var t,r=e.group,l=e.groupOption,u=e.data,c=e.label,s=e.value,d=u.key;if(r){var v,m=null!==(v=u.title)&&void 0!==v?v:ae(c)?c.toString():void 0;return f.createElement("div",{className:p()(V,"".concat(V,"-group")),title:m},void 0!==c?c:d)}var h=u.disabled,g=u.title,b=(u.children,u.style),y=u.className,C=(0,i.A)(u,re),E=(0,te.A)(C,Q),x=$(s),k=h||!x&&K,S="".concat(V,"-option"),M=p()(V,S,y,(t={},(0,a.A)(t,"".concat(S,"-grouped"),l),(0,a.A)(t,"".concat(S,"-active"),G===n&&!k),(0,a.A)(t,"".concat(S,"-disabled"),k),(0,a.A)(t,"".concat(S,"-selected"),x),t)),N=Z(e),D=!R||"function"==typeof R||x,I="number"==typeof N?N:N||s,O=ae(I)?I.toString():void 0;return void 0!==g&&(O=g),f.createElement("div",(0,o.A)({},(0,w.A)(E),P?{}:ee(e,n),{"aria-selected":x,className:M,title:O,onMouseMove:function(){G===n||k||q(n)},onClick:function(){k||J(s)},style:b}),f.createElement("div",{className:"".concat(S,"-content")},"function"==typeof T?T(e,{index:n}):I),f.isValidElement(R)||x,D&&f.createElement(A,{className:"".concat(V,"-option-state"),customizeIcon:R,customizeIconProps:{value:s,disabled:k,isSelected:x}},x?"✓":null))}))};const ue=f.forwardRef(le),ie=function(e,n){var t=f.useRef({values:new Map,options:new Map});return[f.useMemo(function(){var o=t.current,r=o.values,a=o.options,u=e.map(function(e){var n;return void 0===e.label?(0,l.A)((0,l.A)({},e),{},{label:null===(n=r.get(e.value))||void 0===n?void 0:n.label}):e}),i=new Map,c=new Map;return u.forEach(function(e){i.set(e.value,e),c.set(e.value,n.get(e.value)||a.get(e.value))}),t.current.values=i,t.current.options=c,u},[e,n]),f.useCallback(function(e){return n.get(e)||t.current.options.get(e)},[n])]};function ce(e,n){return M(e).join("").toUpperCase().includes(n)}t.dn(ie);const se=function(e,n,t,o,r){return f.useMemo(function(){if(!t||!1===o)return e;var u=n.options,i=n.label,c=n.value,s=[],d="function"==typeof o,f=t.toUpperCase(),v=d?o:function(e,n){return r?ce(n[r],f):n[u]?ce(n["children"!==i?i:"label"],f):ce(n[c],f)},p=d?function(e){return B(e)}:function(e){return e};return e.forEach(function(e){if(e[u])if(v(t,p(e)))s.push(e);else{var n=e[u].filter(function(e){return v(t,p(e))});n.length&&s.push((0,l.A)((0,l.A)({},e),{},(0,a.A)({},u,n)))}else v(t,p(e))&&s.push(e)}),s},[e,o,r,t,n])};t.dn(se);var de=t(76253),fe=t(50604),ve=["children","value"],pe=["children"];function me(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,fe.A)(e).map(function(e,t){if(!f.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,a=o.key,u=o.props,c=u.children,s=(0,i.A)(u,pe);return n||!r?function(e){var n=e,t=n.key,o=n.props,r=o.children,a=o.value,u=(0,i.A)(o,ve);return(0,l.A)({key:t,value:void 0!==a?a:t,children:r},u)}(e):(0,l.A)((0,l.A)({key:"__RC_SELECT_GRP__".concat(null===a?t:a,"__"),label:a},s),{},{options:me(c)})}).filter(function(e){return e})}const he=function(e,n,t,o,r){return f.useMemo(function(){var a=e;!e&&(a=me(n));var l=new Map,u=new Map,i=function(e,n,t){t&&"string"==typeof t&&e.set(n[t],n)};return function e(n){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<n.length;c+=1){var s=n[c];!s[t.options]||a?(l.set(s[t.value],s),i(u,s,t.label),i(u,s,o),i(u,s,r)):e(s[t.options],!0)}}(a),{options:a,valueOptions:l,labelOptions:u}},[e,n,t,o,r])};function ge(e){var n=f.useRef();n.current=e;var t=f.useCallback(function(){return n.current.apply(n,arguments)},[]);return t}var be=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],Ae=["inputValue"];var ye=f.forwardRef(function(e,n){var t=e.id,d=e.mode,v=e.prefixCls,p=void 0===v?"rc-select":v,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,A=e.onSearch,y=e.autoClearSearchValue,C=void 0===y||y,E=e.onSelect,w=e.onDeselect,x=e.dropdownMatchSelectWidth,k=void 0===x||x,S=e.filterOption,N=e.filterSort,R=e.optionFilterProp,D=e.optionLabelProp,I=e.options,P=e.optionRender,O=e.children,F=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,T=e.virtual,V=e.direction,W=e.listHeight,H=void 0===W?200:W,K=e.listItemHeight,_=void 0===K?20:K,X=e.value,G=e.defaultValue,q=e.labelInValue,J=e.onChange,Q=e.maxCount,Z=(0,i.A)(e,be),ee=(0,de.Ay)(t),ne=Y(d),te=!(I||!O),oe=f.useMemo(function(){return(void 0!==S||"combobox"!==d)&&S},[S,d]),re=f.useMemo(function(){return z(h,te)},[JSON.stringify(h),te]),ae=(0,s.A)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),le=(0,u.A)(ae,2),ce=le[0],fe=le[1],ve=he(I,O,re,R,D),pe=ve.valueOptions,me=ve.labelOptions,ye=ve.options,Ce=f.useCallback(function(e){return M(e).map(function(e){var n,t,o,r,a,l;(function(e){return!e||"object"!==(0,c.A)(e)})(e)?n=e:(o=e.key,t=e.label,n=null!==(l=e.value)&&void 0!==l?l:o);var u,i=pe.get(n);i&&(void 0===t&&(t=null==i?void 0:i[D||re.label]),void 0===o&&(o=null!==(u=null==i?void 0:i.key)&&void 0!==u?u:n),r=null==i?void 0:i.disabled,a=null==i?void 0:i.title);return{label:t,value:n,key:o,disabled:r,title:a}})},[re,D,pe]),Ee=(0,s.A)(G,{value:X}),we=(0,u.A)(Ee,2),xe=we[0],ke=we[1],Se=f.useMemo(function(){var e,n=Ce(ne&&null===xe?[]:xe);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=n[0])||void 0===e?void 0:e.value)?[]:n},[xe,Ce,d,ne]),Me=ie(Se,pe),Ne=(0,u.A)(Me,2),Re=Ne[0],De=Ne[1],Ie=f.useMemo(function(){if(!d&&1===Re.length){var e=Re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Re.map(function(e){var n;return(0,l.A)((0,l.A)({},e),{},{label:null!==(n=e.label)&&void 0!==n?n:e.value})})},[d,Re]),Pe=f.useMemo(function(){return new Set(Re.map(function(e){return e.value}))},[Re]);f.useEffect(function(){if("combobox"===d){var e,n=null===(e=Re[0])||void 0===e?void 0:e.value;fe(function(e){return null!=e}(n)?String(n):"")}},[Re]);var Oe=ge(function(e,n){var t,o=null!=n?n:e;return t={},(0,a.A)(t,re.value,e),(0,a.A)(t,re.label,o),t}),Fe=f.useMemo(function(){if("tags"!==d)return ye;var e=(0,r.A)(ye);return(0,r.A)(Re).sort(function(e,n){return e.value<n.value?-1:1}
1).forEach(function(n){var t=n.value;(function(e){return pe.has(e)})(t)||e.push(Oe(t,n.label))}),e},[Oe,ye,pe,Re,d]),Le=se(Fe,re,ce,oe,R),Te=f.useMemo(function(){return"tags"!==d||!ce||Le.some(function(e){return e[R||"value"]===ce})||Le.some(function(e){return e[re.value]===ce})?Le:[Oe(ce)].concat((0,r.A)(Le))},[Oe,R,d,Le,ce,re]),Ve=f.useMemo(function(){return N?(0,r.A)(Te).sort(function(e,n){return N(e,n)}):Te},[Te,N]),We=f.useMemo(function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,o=n.childrenAsData,r=[],a=z(t,!1),l=a.label,u=a.value,i=a.options,c=a.groupLabel;return function e(n,t){Array.isArray(n)&&n.forEach(function(n){if(t||!(i in n)){var a=n[u];r.push({key:j(n,r.length),groupOption:t,data:n,label:n[l],value:a})}else{var s=n[c];void 0===s&&o&&(s=n.label),r.push({key:j(n,r.length),group:!0,data:n,label:s}),e(n[i],!0)}})}(e,!1),r}(Ve,{fieldNames:re,childrenAsData:te})},[Ve,re,te]),He=function(e){var n=Ce(e);if(ke(n),J&&(n.length!==Re.length||n.some(function(e,n){var t;return(null===(t=Re[n])||void 0===t?void 0:t.value)!==(null==e?void 0:e.value)}))){var t=q?n:n.map(function(e){return e.value}),o=n.map(function(e){return B(De(e.value))});J(ne?t:t[0],ne?o:o[0])}},Ke=f.useState(null),_e=(0,u.A)(Ke,2),je=_e[0],ze=_e[1],Be=f.useState(0),Ue=(0,u.A)(Be,2),Xe=Ue[0],Ge=Ue[1],Ye=void 0!==F?F:"combobox"!==d,qe=f.useCallback(function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===t?"keyboard":t;Ge(n),m&&"combobox"===d&&null!==e&&"keyboard"===o&&ze(String(e))},[m,d]),$e=function(e,n,t){var o=function(){var n,t=De(e);return[q?{label:null==t?void 0:t[re.label],value:e,key:null!==(n=null==t?void 0:t.key)&&void 0!==n?n:e}:e,B(t)]};if(n&&E){var r=o(),a=(0,u.A)(r,2),l=a[0],i=a[1];E(l,i)}else if(!n&&w&&"clear"!==t){var c=o(),s=(0,u.A)(c,2),d=s[0],f=s[1];w(d,f)}},Je=ge(function(e,n){var t,o=!ne||n.selected;t=o?ne?[].concat((0,r.A)(Re),[e]):[e]:Re.filter(function(n){return n.value!==e}),He(t),$e(e,o),"combobox"===d?ze(""):Y&&!C||(fe(""),ze(""))}),Qe=f.useMemo(function(){var e=!1!==T&&!1!==k;return(0,l.A)((0,l.A)({},ve),{},{flattenOptions:We,onActiveValue:qe,defaultActiveFirstOption:Ye,onSelect:Je,menuItemSelectedIcon:L,rawValues:Pe,fieldNames:re,virtual:e,direction:V,listHeight:H,listItemHeight:_,childrenAsData:te,maxCount:Q,optionRender:P})},[Q,ve,We,qe,Ye,Je,L,Pe,re,T,k,V,H,_,te,P]);return f.createElement(U.Provider,{value:Qe},f.createElement($,(0,o.A)({},Z,{id:ee,prefixCls:p,ref:n,omitDomProps:Ae,mode:d,displayValues:Ie,onDisplayValuesChange:function(e,n){He(e);var t=n.type,o=n.values;"remove"!==t&&"clear"!==t||o.forEach(function(e){$e(e.value,!1,t)})},direction:V,searchValue:ce,onSearch:function(e,n){if(fe(e),ze(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===d&&He(e),null==A||A(e));else{var t=(e||"").trim();if(t){var o=Array.from(new Set([].concat((0,r.A)(Pe),[t])));He(o),$e(t,!0),fe("")}}},autoClearSearchValue:C,onSearchSplit:function(e){var n=e;"tags"!==d&&(n=e.map(function(e){var n=me.get(e);return null==n?void 0:n.value}).filter(function(e){return void 0!==e}));var t=Array.from(new Set([].concat((0,r.A)(Pe),(0,r.A)(n))));He(t),t.forEach(function(e){$e(e,!0)})},dropdownMatchSelectWidth:k,OptionList:ue,emptyOptions:!We.length,activeValue:je,activeDescendantId:"".concat(ee,"_list_").concat(Xe)})))});var Ce=ye;Ce.Option=ee,Ce.OptGroup=Q;const Ee=Ce},8522(e,n,t){t.r(n),t.d(n,{default:()=>O});var o=t(89379),r=t(64467),a=t(60436),l=t(5544),u=t(82284),i=t(48738),c=t.n(i),s=t(71207),d=t(41216),f=t(99424),v=t(9950);const p=v.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var m=t(58168),h=t(80045),g=t(91478);function b(e,n,t){return(e-n)/(t-n)}function A(e,n,t,o){var r=b(n,t,o),a={};switch(e){case"rtl":a.right="".concat(100*r,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*r,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*r,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*r,"%"),a.transform="translateX(-50%)"}return a}function y(e,n){return Array.isArray(e)?e[n]:e}var C=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"];const E=v.forwardRef(function(e,n){var t,a,l=e.prefixCls,u=e.value,i=e.valueIndex,s=e.onStartMove,d=e.style,f=e.render,b=e.dragging,E=e.onOffsetChange,w=e.onCh
1angeComplete,x=(0,h.A)(e,C),k=v.useContext(p),S=k.min,M=k.max,N=k.direction,R=k.disabled,D=k.keyboard,I=k.range,P=k.tabIndex,O=k.ariaLabelForHandle,F=k.ariaLabelledByForHandle,L=k.ariaValueTextFormatterForHandle,T=k.styles,V=k.classNames,W="".concat(l,"-handle"),H=function(e){R||s(e,i)},K=A(N,u,S,M),_=v.createElement("div",(0,m.A)({ref:n,className:c()(W,(t={},(0,r.A)(t,"".concat(W,"-").concat(i+1),I),(0,r.A)(t,"".concat(W,"-dragging"),b),t),V.handle),style:(0,o.A)((0,o.A)((0,o.A)({},K),d),T.handle),onMouseDown:H,onTouchStart:H,onKeyDown:function(e){if(!R&&D){var n=null;switch(e.which||e.keyCode){case g.A.LEFT:n="ltr"===N||"btt"===N?-1:1;break;case g.A.RIGHT:n="ltr"===N||"btt"===N?1:-1;break;case g.A.UP:n="ttb"!==N?1:-1;break;case g.A.DOWN:n="ttb"!==N?-1:1;break;case g.A.HOME:n="min";break;case g.A.END:n="max";break;case g.A.PAGE_UP:n=2;break;case g.A.PAGE_DOWN:n=-2}null!==n&&(e.preventDefault(),E(n,i))}},onKeyUp:function(e){switch(e.which||e.keyCode){case g.A.LEFT:case g.A.RIGHT:case g.A.UP:case g.A.DOWN:case g.A.HOME:case g.A.END:case g.A.PAGE_UP:case g.A.PAGE_DOWN:null==w||w()}},tabIndex:R?null:y(P,i),role:"slider","aria-valuemin":S,"aria-valuemax":M,"aria-valuenow":u,"aria-disabled":R,"aria-label":y(O,i),"aria-labelledby":y(F,i),"aria-valuetext":null===(a=y(L,i))||void 0===a?void 0:a(u),"aria-orientation":"ltr"===N||"rtl"===N?"horizontal":"vertical"},x));return f&&(_=f(_,{index:i,prefixCls:l,value:u,dragging:b})),_});var w=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"];const x=v.forwardRef(function(e,n){var t=e.prefixCls,o=e.style,r=e.onStartMove,a=e.onOffsetChange,l=e.values,u=e.handleRender,i=e.draggingIndex,c=(0,h.A)(e,w),s=v.useRef({});return v.useImperativeHandle(n,function(){return{focus:function(e){var n;null===(n=s.current[e])||void 0===n||n.focus()}}}),v.createElement(v.Fragment,null,l.map(function(e,n){return v.createElement(E,(0,m.A)({ref:function(e){e?s.current[n]=e:delete s.current[n]},dragging:i===n,prefixCls:t,style:y(o,n),key:n,value:e,valueIndex:n,onStartMove:r,onOffsetChange:a,render:u},c))}))});function k(e){var n="touches"in e?e.touches[0]:e;return{pageX:n.pageX,pageY:n.pageY}}function S(e){var n=e.prefixCls,t=e.style,a=e.children,l=e.value,u=e.onClick,i=v.useContext(p),s=i.min,d=i.max,f=i.direction,m=i.includedStart,h=i.includedEnd,g=i.included,b="".concat(n,"-text"),y=A(f,l,s,d);return v.createElement("span",{className:c()(b,(0,r.A)({},"".concat(b,"-active"),g&&m<=l&&l<=h)),style:(0,o.A)((0,o.A)({},y),t),onMouseDown:function(e){e.stopPropagation()},onClick:function(){u(l)}},a)}function M(e){var n=e.prefixCls,t=e.marks,o=e.onClick,r="".concat(n,"-mark");return t.length?v.createElement("div",{className:r},t.map(function(e){var n=e.value,t=e.style,a=e.label;return v.createElement(S,{key:n,prefixCls:r,style:t,value:n,onClick:o},a)})):null}function N(e){var n=e.prefixCls,t=e.value,a=e.style,l=e.activeStyle,u=v.useContext(p),i=u.min,s=u.max,d=u.direction,f=u.included,m=u.includedStart,h=u.includedEnd,g="".concat(n,"-dot"),b=f&&m<=t&&t<=h,y=(0,o.A)((0,o.A)({},A(d,t,i,s)),"function"==typeof a?a(t):a);return b&&(y=(0,o.A)((0,o.A)({},y),"function"==typeof l?l(t):l)),v.createElement("span",{className:c()(g,(0,r.A)({},"".concat(g,"-active"),b)),style:y})}function R(e){var n=e.prefixCls,t=e.marks,o=e.dots,r=e.style,a=e.activeStyle,l=v.useContext(p),u=l.min,i=l.max,c=l.step,s=v.useMemo(function(){var e=new Set;if(t.forEach(function(n){e.add(n.value)}),o&&null!==c)for(var n=u;n<=i;)e.add(n),n+=c;return Array.from(e)},[u,i,c,o,t]);return v.createElement("div",{className:"".concat(n,"-step")},s.map(function(e){return v.createElement(N,{prefixCls:n,key:e,value:e,style:r,activeStyle:a})}))}function D(e){var n,t=e.prefixCls,a=e.style,l=e.start,u=e.end,i=e.index,s=e.onStartMove,d=e.replaceCls,f=v.useContext(p),m=f.direction,h=f.min,g=f.max,A=f.disabled,y=f.range,C=f.classNames,E="".concat(t,"-track"),w=b(l,h,g),x=b(u,h,g),k=function(e){!A&&s&&s(e,-1)},S={};switch(m){case"rtl":S.right="".concat(100*w,"%"),S.width="".concat(100*x-100*w,"%");break;case"btt":S.bottom="".concat(100*w,"%"),S.height="".concat(100*x-100*w,"%");break;case"ttb":S.top="".concat(100*w,"%"),S.height="".concat(100*x-100*w,"%");break;default:S.left="".concat(100*w,"%"),S.width="".concat(100*x-100*w,"%")}var M=d||c()(E,(n={},(0,r.A)(n,"".concat(E,"-").concat(i+1),null!==i&&y),(0,r.A)(n,"".concat(t,"-track-draggable"),s),n),C.track);return v.createElement("div",{className:M,style:(0,o.A)((0,o.A)({},S),a),onMouseDown:k,onTouchStart:k})}function I(e){var n=e.prefixCls,t=e.style,r=e.values,a=e.startPoint,l=e.onStartMove,u=v.useContext(p),i=u.included,s=u.range,d=u.min,f=u.styles,m=u.classNames,h=v.useMemo(function(){if(!s){if(0===r.length)return[];var e=null!=a?a:d,n=r[0];return[{start:Math.min(e,n),end:Math.max(e,n)}]}for(var t=[],o=0;o<r.length-1;o+=1)t.push({start:r[o],end:r[o+1]});return t},[r,s,a,d]),g=null;return(m.tracks||f.tracks)&&(g=v.createElement(D,{index:null,prefixCls:n,start:h[0].start,end:h[h.length-1].end,replaceCls:c()(m.tracks,"".concat(n,"-tracks")),style:f.tracks})),i?v.createElement(v.Fragment,null,g,h.map(function(e,r){var a=e.start,u=e.end;return v.createElement(D,{index:r,prefixCls:n,style:(0,o.A)((0,o.A)({},y(t,r)),f.track),start:a,end:u,key:r,onStartMove:l})})):null}var P=v.forwardRef(function(e,n){var t,i=e.prefixCls,m=void 0===i?"rc-slider":i,h=e.className,g=e.style,b=e.classNames,A=e.styles,y=e.disabled,C=void 0!==y&&y,E=e.keyboard,w=void 0===E||E,S=e.autoFocus,N=e.onFocus,D=e.onBlur,P=e.min,O=void 0===P?0:P,F=e.max,L=void 0===F?100:F,T=e.step,V=void 0===T?1:T,W=e.value,H=e.defaultValue,K=e.range,_=e.count,j=e.onCh
1ange,z=e.onBeforeChange,B=e.onAfterChange,U=e.onChangeComplete,X=e.allowCross,G=void 0===X||X,Y=e.pushable,q=void 0!==Y&&Y,$=e.draggableTrack,J=e.reverse,Q=e.vertical,Z=e.included,ee=void 0===Z||Z,ne=e.startPoint,te=e.trackStyle,oe=e.handleStyle,re=e.railStyle,ae=e.dotStyle,le=e.activeDotStyle,ue=e.marks,ie=e.dots,ce=e.handleRender,se=e.tabIndex,de=void 0===se?0:se,fe=e.ariaLabelForHandle,ve=e.ariaLabelledByForHandle,pe=e.ariaValueTextFormatterForHandle,me=v.useRef(),he=v.useRef(),ge=v.useMemo(function(){return Q?J?"ttb":"btt":J?"rtl":"ltr"},[J,Q]),be=v.useMemo(function(){return isFinite(O)?O:0},[O]),Ae=v.useMemo(function(){return isFinite(L)?L:100},[L]),ye=v.useMemo(function(){return null!==V&&V<=0?1:V},[V]),Ce=v.useMemo(function(){return"boolean"==typeof q?!!q&&ye:q>=0&&q},[q,ye]),Ee=v.useMemo(function(){return Object.keys(ue||{}).map(function(e){var n=ue[e],t={value:Number(e)};return n&&"object"===(0,u.A)(n)&&!v.isValidElement(n)&&("label"in n||"style"in n)?(t.style=n.style,t.label=n.label):t.label=n,t}).filter(function(e){var n=e.label;return n||"number"==typeof n}).sort(function(e,n){return e.value-n.value})},[ue]),we=function(e,n,t,o,r,l){var u=v.useCallback(function(t){var o=isFinite(t)?t:e;return o=Math.min(n,t),Math.max(e,o)},[e,n]),i=v.useCallback(function(o){if(null!==t){var r=e+Math.round((u(o)-e)/t)*t,a=function(e){return(String(e).split(".")[1]||"").length},l=Math.max(a(t),a(n),a(e)),i=Number(r.toFixed(l));return e<=i&&i<=n?i:null}return null},[t,e,n,u]),c=v.useCallback(function(r){var a=u(r),l=o.map(function(e){return e.value});null!==t&&l.push(i(r)),l.push(e,n);var c=l[0],s=n-e;return l.forEach(function(e){var n=Math.abs(a-e);n<=s&&(c=e,s=n)}),c},[e,n,o,t,u,i]),s=function r(l,u,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof u){var d,f=l[c],v=f+u,p=[];o.forEach(function(e){p.push(e.value)}),p.push(e,n),p.push(i(f));var m=u>0?1:-1;"unit"===s?p.push(i(f+m*t)):p.push(i(v)),p=p.filter(function(e){return null!==e}).filter(function(e){return u<0?e<=f:e>=f}),"unit"===s&&(p=p.filter(function(e){return e!==f}));var h="unit"===s?f:v;d=p[0];var g=Math.abs(d-h);if(p.forEach(function(e){var n=Math.abs(e-h);n<g&&(d=e,g=n)}),void 0===d)return u<0?e:n;if("dist"===s)return d;if(Math.abs(u)>1){var b=(0,a.A)(l);return b[c]=d,r(b,u-m,c,s)}return d}return"min"===u?e:"max"===u?n:void 0},d=function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e[t],a=s(e,n,t,o);return{value:a,changed:a!==r}},f=function(e){return null===l&&0===e||"number"==typeof l&&e<l};return[c,function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(c),u=a[t],i=s(a,n,t,o);if(a[t]=i,!1===r){var v=l||0;t>0&&a[t-1]!==u&&(a[t]=Math.max(a[t],a[t-1]+v)),t<a.length-1&&a[t+1]!==u&&(a[t]=Math.min(a[t],a[t+1]-v))}else if("number"==typeof l||null===l){for(var p=t+1;p<a.length;p+=1)for(var m=!0;f(a[p]-a[p-1])&&m;){var h=d(a,1,p);a[p]=h.value,m=h.changed}for(var g=t;g>0;g-=1)for(var b=!0;f(a[g]-a[g-1])&&b;){var A=d(a,-1,g-1);a[g-1]=A.value,b=A.changed}for(var y=a.length-1;y>0;y-=1)for(var C=!0;f(a[y]-a[y-1])&&C;){var E=d(a,-1,y-1);a[y-1]=E.value,C=E.changed}for(var w=0;w<a.length-1;w+=1)for(var x=!0;f(a[w+1]-a[w])&&x;){var k=d(a,1,w+1);a[w+1]=k.value,x=k.changed}}return{value:a[t],values:a}}]}(be,Ae,ye,Ee,G,Ce),xe=(0,l.A)(we,2),ke=xe[0],Se=xe[1],Me=(0,s.A)(H,{value:W}),Ne=(0,l.A)(Me,2),Re=Ne[0],De=Ne[1],Ie=v.useMemo(function(){var e=null==Re?[]:Array.isArray(Re)?Re:[Re],n=(0,l.A)(e,1)[0],t=null===Re?[]:[void 0===n?be:n];if(K){if(t=(0,a.A)(e),_||void 0===Re){var o=_>=0?_+1:2;for(t=t.slice(0,o);t.length<o;){var r;t.push(null!==(r=t[t.length-1])&&void 0!==r?r:be)}}t.sort(function(e,n){return e-n})}return t.forEach(function(e,n){t[n]=ke(e)}),t},[Re,K,be,_,ke]),Pe=v.useRef(Ie);Pe.current=Ie;var Oe=function(e){return K?e:e[0]},Fe=function(e){var n=(0,a.A)(e).sort(function(e,n){return e-n});j&&!(0,d.A)(n,Pe.current,!0)&&j(Oe(n)),De(n)},Le=function(){null==B||B(Oe(Pe.current)),(0,f.Ay)(!B,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==U||U(Oe(Pe.current))},Te=function(e,n,t,o,r,u,i,c,s){var d=v.useState(null),f=(0,l.A)(d,2),p=f[0],m=f[1],h=v.useState(-1),g=(0,l.A)(h,2),b=g[0],A=g[1],y=v.useState(t),C=(0,l.A)(y,2),E=C[0],w=C[1],x=v.useState(t),S=(0,l.A)(x,2),M=S[0],N=S[1],R=v.useRef(null),D=v.useRef(null);v.useEffect(function(){-1===b&&w(t)},[t,b]),v.useEffect(function(){return function(){document.removeEventListener("mousemove",R.current),document.removeEventListener("mouseup",D.current),document.removeEventListener("touchmove",R.current),document.removeEventListener("touchend",D.current)}},[]);var I=function(e,n){E.some(function(n,t){return n!==e[t]}
1)&&(void 0!==n&&m(n),w(e),i(e))},P=function(e,n){if(-1===e){var t=M[0],l=M[M.length-1],i=o-t,c=r-l,d=n*(r-o);d=Math.max(d,i),d=Math.min(d,c);var f=u(t+d);d=f-t;var v=M.map(function(e){return e+d});I(v)}else{var p=(r-o)*n,m=(0,a.A)(E);m[e]=M[e];var h=s(m,p,e,"dist");I(h.values,h.value)}},O=v.useRef(P);O.current=P;var F=v.useMemo(function(){var e=(0,a.A)(t).sort(function(e,n){return e-n}),n=(0,a.A)(E).sort(function(e,n){return e-n});return e.every(function(e,t){return e===n[t]})?E:t},[t,E]);return[b,p,F,function(o,r,a){o.stopPropagation();var l=a||t,u=l[r];A(r),m(u),N(l);var i=k(o),s=i.pageX,d=i.pageY,f=function(t){t.preventDefault();var o,a=k(t),l=a.pageX,u=a.pageY,i=l-s,c=u-d,f=e.current.getBoundingClientRect(),v=f.width,p=f.height;switch(n){case"btt":o=-c/p;break;case"ttb":o=c/p;break;case"rtl":o=-i/v;break;default:o=i/v}O.current(r,o)},v=function e(n){n.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",f),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",f),R.current=null,D.current=null,A(-1),c()};document.addEventListener("mouseup",v),document.addEventListener("mousemove",f),document.addEventListener("touchend",v),document.addEventListener("touchmove",f),R.current=f,D.current=v}]}(he,ge,Ie,be,Ae,ke,Fe,Le,Se),Ve=(0,l.A)(Te,4),We=Ve[0],He=Ve[1],Ke=Ve[2],_e=Ve[3],je=function(e,n){if(!C){var t=0,o=Ae-be;Ie.forEach(function(n,r){var a=Math.abs(e-n);a<=o&&(o=a,t=r)});var r=(0,a.A)(Ie);r[t]=e,K&&!Ie.length&&void 0===_&&r.push(e),null==z||z(Oe(r)),Fe(r),n&&_e(n,t,r)}},ze=v.useState(null),Be=(0,l.A)(ze,2),Ue=Be[0],Xe=Be[1];v.useEffect(function(){if(null!==Ue){var e=Ie.indexOf(Ue);e>=0&&me.current.focus(e)}Xe(null)},[Ue]);var Ge=v.useMemo(function(){return(!$||null!==ye)&&$},[$,ye]),Ye=function(e,n){_e(e,n),null==z||z(Oe(Pe.current))},qe=-1!==We;v.useEffect(function(){if(!qe){var e=Ie.lastIndexOf(He);me.current.focus(e)}},[qe]);var $e=v.useMemo(function(){return(0,a.A)(Ke).sort(function(e,n){return e-n})},[Ke]),Je=v.useMemo(function(){return K?[$e[0],$e[$e.length-1]]:[be,$e[0]]},[$e,K,be]),Qe=(0,l.A)(Je,2),Ze=Qe[0],en=Qe[1];v.useImperativeHandle(n,function(){return{focus:function(){me.current.focus(0)},blur:function(){var e=document.activeElement;he.current.contains(e)&&(null==e||e.blur())}}}),v.useEffect(function(){S&&me.current.focus(0)},[]);var nn=v.useMemo(function(){return{min:be,max:Ae,direction:ge,disabled:C,keyboard:w,step:ye,included:ee,includedStart:Ze,includedEnd:en,range:K,tabIndex:de,ariaLabelForHandle:fe,ariaLabelledByForHandle:ve,ariaValueTextFormatterForHandle:pe,styles:A||{},classNames:b||{}}},[be,Ae,ge,C,w,ye,ee,Ze,en,K,de,fe,ve,pe,A,b]);return v.createElement(p.Provider,{value:nn},v.createElement("div",{ref:he,className:c()(m,h,(t={},(0,r.A)(t,"".concat(m,"-disabled"),C),(0,r.A)(t,"".concat(m,"-vertical"),Q),(0,r.A)(t,"".concat(m,"-horizontal"),!Q),(0,r.A)(t,"".concat(m,"-with-marks"),Ee.length),t)),style:g,onMouseDown:function(e){e.preventDefault();var n,t=he.current.getBoundingClientRect(),o=t.width,r=t.height,a=t.left,l=t.top,u=t.bottom,i=t.right,c=e.clientX,s=e.clientY;switch(ge){case"btt":n=(u-s)/r;break;case"ttb":n=(s-l)/r;break;case"rtl":n=(i-c)/o;break;default:n=(c-a)/o}je(ke(be+n*(Ae-be)),e)}},v.createElement("div",{className:c()("".concat(m,"-rail"),null==b?void 0:b.rail),style:(0,o.A)((0,o.A)({},re),null==A?void 0:A.rail)}),v.createElement(I,{prefixCls:m,style:te,values:$e,startPoint:ne,onStartMove:Ge?Ye:null}),v.createElement(R,{prefixCls:m,marks:Ee,dots:ie,style:ae,activeStyle:le}),v.createElement(x,{ref:me,prefixCls:m,style:oe,values:Ke,draggingIndex:We,onStartMove:Ye,onOffsetChange:function(e,n){if(!C){var t=Se(Ie,e,n);null==z||z(Oe(Ie)),Fe(t.values),Xe(t.value)}},onFocus:N,onBlur:D,handleRender:ce,onChangeComplete:Le}),v.createElement(M,{prefixCls:m,marks:Ee,onClick:je})))});const O=P}}]);

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.