Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
45 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7752],{88708:function(e,n,t){t.d(n,{ZP:function(){return l}});var o=t(97685),r=t(67294),u=t(98924),i=0,a=(0,u.Z)();function l(e){var n=r.useState(),t=(0,o.Z)(n,2),u=t[0],l=t[1];return r.useEffect(function(){var e;l("rc_select_".concat((a?(e=i,i+=1):e="TEST_OR_SSR",e)))},[]),e||u}},7752:function(e,n,t){t.r(n),t.d(n,{BaseSelect:function(){return U},OptGroup:function(){return en},Option:function(){return eo},default:function(){return ep},useBaseProps:function(){return w}});var o=t(87462),r=t(74902),u=t(4942),i=t(1413),a=t(97685),l=t(45987),c=t(71002),s=t(21770),f=t(80334),d=t(67294),v=t(94184),p=t.n(v),m=t(8410),h=t(31131),g=t(15105),b=t(42550),Z=d.createContext(null);function w(){return d.useContext(Z)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=d.useRef(null),t=d.useRef(null);return d.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 E=t(64217),S=t(39983),C=function(e){var n,t=e.className,o=e.customizeIcon,r=e.customizeIconProps,u=e.onMouseDown,i=e.onClick,a=e.children;return n="function"==typeof o?o(r):o,d.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),u&&u(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==n?n:d.createElement("span",{className:p()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},a))},x=d.forwardRef(function(e,n){var t,o,r=e.prefixCls,u=e.id,a=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,v=e.autoComplete,m=e.editable,h=e.activeDescendantId,g=e.value,Z=e.maxLength,w=e.onKeyDown,y=e.onMouseDown,E=e.onChange,S=e.onPaste,C=e.onCompositionStart,x=e.onCompositionEnd,M=e.open,R=e.attrs,I=a||d.createElement("input",null),N=I,D=N.ref,P=N.props,T=P.onKeyDown,O=P.onChange,k=P.onMouseDown,V=P.onCompositionStart,L=P.onCompositionEnd,A=P.style;return(0,f.Kp)(!("maxLength"in I.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),I=d.cloneElement(I,(0,i.Z)((0,i.Z)((0,i.Z)({type:"search"},P),{},{id:u,ref:(0,b.sQ)(n,D),disabled:l,tabIndex:c,autoComplete:v||"off",autoFocus:s,className:p()("".concat(r,"-selection-search-input"),null===(t=I)||void 0===t?void 0:null===(o=t.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-owns":"".concat(u,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(u,"_list"),"aria-activedescendant":h},R),{},{value:m?g:"",maxLength:Z,readOnly:!m,unselectable:m?null:"on",style:(0,i.Z)((0,i.Z)({},A),{},{opacity:m?null:0}),onKeyDown:function(e){w(e),T&&T(e)},onMouseDown:function(e){y(e),k&&k(e)},onChange:function(e){E(e),O&&O(e)},onCompositionStart:function(e){C(e),V&&V(e)},onCompositionEnd:function(e){x(e),L&&L(e)},onPaste:S}))});function M(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}x.displayName="Input";var R="undefined"!=typeof window&&window.document&&window.document.documentElement;function I(e){return["string","number"].includes((0,c.Z)(e))}function N(e){var n=void 0;return e&&(I(e.title)?n=e.title.toString():I(e.label)&&(n=e.label.toString())),n}function D(e){var n;return null!==(n=e.key)&&void 0!==n?n:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()},T=function(e){var n,t,o=e.id,r=e.prefixCls,i=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,f=e.inputRef,v=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,Z=e.autoComplete,w=e.activeDescendantId,y=e.tabIndex,M=e.removeIcon,I=e.maxTagCount,T=e.maxTagTextLength,O=e.maxTagPlaceholder,k=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,V=e.tagRender,L=e.onToggleOpen,A=e.onRemove,F=e.onInputChange,H=e.onInputPaste,_=e.onInputKeyDown,K=e.onInputMouseDown,z=e.onInputCompositionStart,W=e.onInputCompositionEnd,Y=d.useRef(null),j=(0,d.useState)(0),U=(0,a.Z)(j,2),X=U[0],B=U[1],G=(0,d.useState)(!1),Q=(0,a.Z)(G,2),J=Q[0],$=Q[1],q="".concat(r,"-selection"),ee=l||"multiple"===h&&!1===s||"tags"===h?c:"",en="tags"===h||"multiple"===h&&!1===s||g&&(l||J);function et(e,n,t,o,r){return d.createElement("span",{className:p()("".concat(q,"-item"),(0,u.Z)({},"".concat(q,"-item-disabled"),t)),title:N(e)},d.createElement("span",{className:"".concat(q,"-item-content")},n),o&&d.createElement(C,{className:"".concat(q,"-item-remove"),onMouseDown:P,onClick:r,customizeIcon:M},"\xd7"))}n=function(){B(Y.current.scrollWidth)},t=[ee],R?d.useLayoutEffect(n,t):d.useEffect(n,t);var eo=d.createElement("div",{className:"".concat(q,"-search"),style:{width:X},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},d.createElement(x,{ref:f,open:l,prefixCls:r,id:o,inputElement:null,disabled:m,autoFocus:b,autoComplete:Z,editable:en,activeDescendantId:w,value:ee,onKeyDown:_,onMouseDown:K,onChange:F,onPaste:H,onCompositionStart:z,onCompositionEnd:W,tabIndex:y,attrs:(0,E.Z)(e,!0)}),d.createElement("span",{ref:Y,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),er=d.createElement(S.Z,{prefixCls:"".concat(q,"-overflow"),data:i,renderItem:function(e){var n,t=e.disabled,o=e.label,r=e.value,u=!m&&!t,i=o;if("number"==typeof T&&("string"==typeof o||"number"==typeof o)){var a=String(i);a.length>T&&(i="".concat(a.slice(0,T),"..."))}var c=function(n){n&&n.stopPropagation(),A(e)};return"function"==typeof V?(n=i,d.createElement("span",{onMouseDown:function(e){P(e),L(!l)}},V({label:n,value:r,disabled:t,closable:u,onClose:c}))):et(e,i,t,u,c)},renderRest:function(e){var n="function"==typeof k?k(e):k;return et({title:n},n,!1)},suffix:eo,itemKey:D,maxCount:I});return d.createElement(d.Fragment,null,er,!i.length&&!ee&&d.createElement("span",{className:"".concat(q,"-placeholder")},v))},O=function(e){var n=e.inputElement,t=e.prefixCls,o=e.id,r=e.inputRef,u=e.disabled,i=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,v=e.placeholder,p=e.tabIndex,m=e.showSearch,h=e.searchValue,g=e.activeValue,b=e.maxLength,Z=e.onInputKeyDown,w=e.onInputMouseDown,y=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,M=e.onInputCompositionEnd,R=d.useState(!1),I=(0,a.Z)(R,2),D=I[0],P=I[1],T="combobox"===s,O=T||m,k=e.values[0],V=h||"";T&&g&&!D&&(V=g),d.useEffect(function(){T&&P(!1)},[T,g]);var L=("combobox"===s||!!f||!!m)&&!!V,A=N(k);return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(t,"-selection-search")},d.createElement(x,{ref:r,prefixCls:t,id:o,open:f,inputElement:n,disabled:u,autoFocus:i,autoComplete:l,editable:O,activeDescendantId:c,value:V,onKeyDown:Z,onMouseDown:w,onChange:function(e){P(!0),y(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:M,tabIndex:p,attrs:(0,E.Z)(e,!0),maxLength:T?b:void 0})),!T&&k?d.createElement("span",{className:"".concat(t,"-selection-item"),title:A,style:L?{visibility:"hidden"}:void 0},k.label):null,k?null:d.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},v))},k=d.forwardRef(function(e,n){var t=(0,d.useRef)(null),r=(0,d.useRef)(!1),u=e.prefixCls,i=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.autoClearSearchValue,v=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;d.useImperativeHandle(n,function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}});var Z=y(0),w=(0,a.Z)(Z,2),E=w[0],S=w[1],C=(0,d.useRef)(null),x=function(e){!1!==v(e,!0,r.current)&&m(!0)},M={inputRef:t,onInputKeyDown:function(e){var n=e.which;(n===g.Z.UP||n===g.Z.DOWN)&&e.preventDefault(),h&&h(e),n!==g.Z.ENTER||"tags"!==l||r.current||i||null==p||p(e.target.value),[g.Z.ESC,g.Z.SHIFT,g.Z.BACKSPACE,g.Z.TAB,g.Z.WIN_KEY,g.Z.ALT,g.Z.META,g.Z.WIN_KEY_RIGHT,g.Z.CTRL,g.Z.SEMICOLON,g.Z.EQUALS,g.Z.CAPS_LOCK,g.Z.CONTEXT_MENU,g.Z.F1,g.Z.F2,g.Z.F3,g.Z.F4,g.Z.F5,g.Z.F6,g.Z.F7,g.Z.F8,g.Z.F9,g.Z.F10,g.Z.F11,g.Z.F12].includes(n)||m(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var n=e.target.value;if(s&&C.current&&/[\r\n]/.test(C.current)){var t=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,C.current)}C.current=null,x(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");C.current=n},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&x(e.target.value)}},R="multiple"===l||"tags"===l?d.createElement(T,(0,o.Z)({},e,M)):d.createElement(O,(0,o.Z)({},e,M));return d.createElement("div",{ref:b,className:"".concat(u,"-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=E();e.target===t.current||n||"combobox"===l||e.preventDefault(),("combobox"===l||c&&n)&&i||(i&&!1!==f&&v("",!0,!1),m())}},R)});k.displayName="Selector";var V=t(81263),L=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],A=function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}},F=d.forwardRef(function(e,n){var t=e.prefixCls,r=(e.disabled,e.visible),a=e.children,c=e.popupElement,s=e.containerWidth,f=e.animation,v=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,b=e.placement,Z=e.dropdownMatchSelectWidth,w=e.dropdownRender,y=e.dropdownAlign,E=e.getPopupContainer,S=e.empty,C=e.getTriggerDOMNode,x=e.onPopupVisibleChange,M=e.onPopupMouseEnter,R=(0,l.Z)(e,L),I="".concat(t,"-dropdown"),N=c;w&&(N=w(c));var D=d.useMemo(function(){return A(Z)},[Z]),P=f?"".concat(I,"-").concat(f):v,T=d.useRef(null);d.useImperativeHandle(n,function(){return{getPopupElement:function(){return T.current}}});var O=(0,i.Z)({minWidth:s},m);return"number"==typeof Z?O.width=Z:Z&&(O.width=s),d.createElement(V.Z,(0,o.Z)({},R,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:b||("rtl"===(void 0===g?"ltr":g)?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:I,popupTransitionName:P,popup:d.createElement("div",{ref:T,onMouseEnter:M},N),popupAlign:y,popupVisible:r,getPopupContainer:E,popupClassName:p()(h,(0,u.Z)({},"".concat(I,"-empty"),S)),popupStyle:O,getTriggerDOMNode:C,onPopupVisibleChange:x}),a)});F.displayName="SelectTrigger";var H=t(84506);function _(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 K(e,n){var t=e||{};return{label:t.label||(n?"children":"label"),value:t.value||"value",options:t.options||"options"}}function z(e){var n=(0,i.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var W=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function j(e){return"tags"===e||"multiple"===e}var U=d.forwardRef(function(e,n){var t,f,v,w,E,S,x,M,R,I=e.id,N=e.prefixCls,D=e.className,P=e.showSearch,T=e.tagRender,O=e.direction,V=e.omitDomProps,L=e.displayValues,A=e.onDisplayValuesChange,_=e.emptyOptions,K=e.notFoundContent,z=void 0===K?"Not Found":K,U=e.onClear,X=e.mode,B=e.disabled,G=e.loading,Q=e.getInputElement,J=e.getRawInputElement,$=e.open,q=e.defaultOpen,ee=e.onDropdownVisibleChange,en=e.activeValue,et=e.onActiveValueChange,eo=e.activeDescendantId,er=e.searchValue,eu=e.autoClearSearchValue,ei=e.onSearch,ea=e.onSearchSplit,el=e.tokenSeparators,ec=e.allowClear,es=e.showArrow,ef=e.inputIcon,ed=e.clearIcon,ev=e.OptionList,ep=e.animation,em=e.transitionName,eh=e.dropdownStyle,eg=e.dropdownClassName,eb=e.dropdownMatchSelectWidth,eZ=e.dropdownRender,ew=e.dropdownAlign,ey=e.placement,eE=e.getPopupContainer,eS=e.showAction,eC=void 0===eS?[]:eS,ex=e.onFocus,eM=e.onBlur,eR=e.onKeyUp,eI=e.onKeyDown,eN=e.onMouseDown,eD=(0,l.Z)(e,W),eP=j(X),eT=(void 0!==P?P:eP)||"combobox"===X,eO=(0,i.Z)({},eD);Y.forEach(function(e){delete eO[e]}),null==V||V.forEach(function(e){delete eO[e]});var ek=d.useState(!1),eV=(0,a.Z)(ek,2),eL=eV[0],eA=eV[1];d.useEffect(function(){eA((0,h.Z)())},[]);var eF=d.useRef(null),eH=d.useRef(null),e_=d.useRef(null),eK=d.useRef(null),ez=d.useRef(null),eW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=d.useState(!1),t=(0,a.Z)(n,2),o=t[0],r=t[1],u=d.useRef(null),i=function(){window.clearTimeout(u.current)};return d.useEffect(function(){return i},[]),[o,function(n,t){i(),u.current=window.setTimeout(function(){r(n),t&&t()},e)},i]}(),eY=(0,a.Z)(eW,3),ej=eY[0],eU=eY[1],eX=eY[2];d.useImperativeHandle(n,function(){var e,n;return{focus:null===(e=eK.current)||void 0===e?void 0:e.focus,blur:null===(n=eK.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=ez.current)||void 0===n?void 0:n.scrollTo(e)}}});var eB=d.useMemo(function(){if("combobox"!==X)return er;var e,n=null===(e=L[0])||void 0===e?void 0:e.value;return"string"==typeof n||"number"==typeof n?String(n):""},[er,X,L]),eG="combobox"===X&&"function"==typeof Q&&Q()||null,eQ="function"==typeof J&&J(),eJ=(0,b.x1)(eH,null==eQ?void 0:null===(w=eQ.props)||void 0===w?void 0:w.ref),e$=(0,s.Z)(void 0,{defaultValue:q,value:$}),eq=(0,a.Z)(e$,2),e0=eq[0],e1=eq[1],e2=e0,e4=!z&&_;(B||e4&&e2&&"combobox"===X)&&(e2=!1);var e8=!e4&&e2,e7=d.useCallback(function(e){var n=void 0!==e?e:!e2;B||(e1(n),e2!==n&&(null==ee||ee(n)))},[B,e2,e1,ee]),e5=d.useMemo(function(){return(el||[]).some(function(e){return["\n","\r\n"].includes(e)})},[el]),e3=function(e,n,t){var o=!0,u=e;null==et||et(null);var i=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,o=function e(n,o){var u=(0,H.Z)(o),i=u[0],a=u.slice(1);if(!i)return[n];var l=n.split(i);return t=t||l.length>1,l.reduce(function(n,t){return[].concat((0,r.Z)(n),(0,r.Z)(e(t,a)))},[]).filter(function(e){return e})}(e,n);return t?o:null}(e,el);return"combobox"!==X&&i&&(u="",null==ea||ea(i),e7(!1),o=!1),ei&&eB!==u&&ei(u,{source:n?"typing":"effect"}),o};d.useEffect(function(){e2||eP||"combobox"===X||e3("",!1,!1)},[e2]),d.useEffect(function(){e0&&B&&e1(!1),B&&eU(!1)},[B]);var e9=y(),e6=(0,a.Z)(e9,2),ne=e6[0],nn=e6[1],nt=d.useRef(!1),no=[];d.useEffect(function(){return function(){no.forEach(function(e){return clearTimeout(e)}),no.splice(0,no.length)}},[]);var nr=d.useState(null),nu=(0,a.Z)(nr,2),ni=nu[0],na=nu[1],nl=d.useState({}),nc=(0,a.Z)(nl,2)[1];(0,m.Z)(function(){if(e8){var e,n=Math.ceil(null===(e=eF.current)||void 0===e?void 0:e.offsetWidth);ni===n||Number.isNaN(n)||na(n)}},[e8]),eQ&&(S=function(e){e7(e)}),t=function(){var e;return[eF.current,null===(e=e_.current)||void 0===e?void 0:e.getPopupElement()]},f=!!eQ,(v=d.useRef(null)).current={open:e8,triggerOpen:e7,customizedTrigger:f},d.useEffect(function(){function e(e){if(null===(n=v.current)||void 0===n||!n.customizedTrigger){var n,o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),v.current.open&&t().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&v.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var ns=d.useMemo(function(){return(0,i.Z)((0,i.Z)({},e),{},{notFoundContent:z,open:e2,triggerOpen:e8,id:I,showSearch:eT,multiple:eP,toggleOpen:e7})},[e,z,e8,e2,I,eT,eP,e7]),nf=void 0!==es?es:G||!eP&&"combobox"!==X;nf&&(x=d.createElement(C,{className:p()("".concat(N,"-arrow"),(0,u.Z)({},"".concat(N,"-arrow-loading"),G)),customizeIcon:ef,customizeIconProps:{loading:G,searchValue:eB,open:e2,focused:ej,showSearch:eT}})),!B&&ec&&(L.length||eB)&&!("combobox"===X&&""===eB)&&(M=d.createElement(C,{className:"".concat(N,"-clear"),onMouseDown:function(){var e;null==U||U(),null===(e=eK.current)||void 0===e||e.focus(),A([],{type:"clear",values:L}),e3("",!1,!1)},customizeIcon:ed},"\xd7"));var nd=d.createElement(ev,{ref:ez}),nv=p()(N,D,(E={},(0,u.Z)(E,"".concat(N,"-focused"),ej),(0,u.Z)(E,"".concat(N,"-multiple"),eP),(0,u.Z)(E,"".concat(N,"-single"),!eP),(0,u.Z)(E,"".concat(N,"-allow-clear"),ec),(0,u.Z)(E,"".concat(N,"-show-arrow"),nf),(0,u.Z)(E,"".concat(N,"-disabled"),B),(0,u.Z)(E,"".concat(N,"-loading"),G),(0,u.Z)(E,"".concat(N,"-open"),e2),(0,u.Z)(E,"".concat(N,"-customize-input"),eG),(0,u.Z)(E,"".concat(N,"-show-search"),eT),E)),np=d.createElement(F,{ref:e_,disabled:B,prefixCls:N,visible:e8,popupElement:nd,containerWidth:ni,animation:ep,transitionName:em,dropdownStyle:eh,dropdownClassName:eg,direction:O,dropdownMatchSelectWidth:eb,dropdownRender:eZ,dropdownAlign:ew,placement:ey,getPopupContainer:eE,empty:_,getTriggerDOMNode:function(){return eH.current},onPopupVisibleChange:S,onPopupMouseEnter:function(){nc({})}},eQ?d.cloneElement(eQ,{ref:eJ}):d.createElement(k,(0,o.Z)({},e,{domRef:eH,prefixCls:N,inputElement:eG,ref:eK,id:I,showSearch:eT,autoClearSearchValue:eu,mode:X,activeDescendantId:eo,tagRender:T,values:L,open:e2,onToggleOpen:e7,activeValue:en,searchValue:eB,onSearch:e3,onSearchSubmit:function(e){e&&e.trim()&&ei(e,{source:"submit"})},onRemove:function(e){A(L.filter(function(n){return n!==e}),{type:"remove",values:[e]})},tokenWithEnter:e5})));return R=eQ?np:d.createElement("div",(0,o.Z)({className:nv},eO,{ref:eF,onMouseDown:function(e){var n,t=e.target,o=null===(n=e_.current)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(t)){var r=setTimeout(function(){var e,n=no.indexOf(r);-1!==n&&no.splice(n,1),eX(),eL||o.contains(document.activeElement)||null===(e=eK.current)||void 0===e||e.focus()});no.push(r)}for(var u=arguments.length,i=Array(u>1?u-1:0),a=1;a<u;a++)i[a-1]=arguments[a];null==eN||eN.apply(void 0,[e].concat(i))},onKeyDown:function(e){var n,t=ne(),o=e.which;if(o!==g.Z.ENTER||("combobox"!==X&&e.preventDefault(),e2||e7(!0)),nn(!!eB),o===g.Z.BACKSPACE&&!t&&eP&&!eB&&L.length){for(var u=(0,r.Z)(L),i=null,a=u.length-1;a>=0;a-=1){var l=u[a];if(!l.disabled){u.splice(a,1),i=l;break}}i&&A(u,{type:"remove",values:[i]})}for(var c=arguments.length,s=Array(c>1?c-1:0),f=1;f<c;f++)s[f-1]=arguments[f];e2&&ez.current&&(n=ez.current).onKeyDown.apply(n,[e].concat(s)),null==eI||eI.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var n,t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];e2&&ez.current&&(n=ez.current).onKeyUp.apply(n,[e].concat(o)),null==eR||eR.apply(void 0,[e].concat(o))},onFocus:function(){eU(!0),!B&&(ex&&!nt.current&&ex.apply(void 0,arguments),eC.includes("focus")&&e7(!0)),nt.current=!0},onBlur:function(){eU(!1,function(){nt.current=!1,e7(!1)}),!B&&(eB&&("tags"===X?ei(eB,{source:"submit"}):"multiple"===X&&ei("",{source:"blur"})),eM&&eM.apply(void 0,arguments))}}),ej&&!e2&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(L.map(function(e){var n=e.label,t=e.value;return["number","string"].includes((0,c.Z)(n))?n:t}).join(", "))),np,x,M),d.createElement(Z.Provider,{value:ns},R)}),X=function(e,n){var t=d.useRef({values:new Map,options:new Map});return[d.useMemo(function(){var o=t.current,r=o.values,u=o.options,a=e.map(function(e){if(void 0===e.label){var n;return(0,i.Z)((0,i.Z)({},e),{},{label:null===(n=r.get(e.value))||void 0===n?void 0:n.label})}return e}),l=new Map,c=new Map;return a.forEach(function(e){l.set(e.value,e),c.set(e.value,n.get(e.value)||u.get(e.value))}),t.current.values=l,t.current.options=c,a},[e,n]),d.useCallback(function(e){return n.get(e)||t.current.options.get(e)},[n])]};function B(e,n){return M(e).join("").toUpperCase().includes(n)}var G=t(88708),Q=t(50344),J=["children","value"],$=["children"];function q(e){var n=d.useRef();return n.current=e,d.useCallback(function(){return n.current.apply(n,arguments)},[])}var ee=function(){return null};ee.isSelectOptGroup=!0;var en=ee,et=function(){return null};et.isSelectOption=!0;var eo=et,er=t(98423),eu=t(56982),ei=t(51764),ea=d.createContext(null),el=["disabled","title","children","style","className"];function ec(e){return"string"==typeof e||"number"==typeof e}var es=d.forwardRef(function(e,n){var t=w(),i=t.prefixCls,c=t.id,s=t.open,f=t.multiple,v=t.mode,m=t.searchValue,h=t.toggleOpen,b=t.notFoundContent,Z=t.onPopupScroll,y=d.useContext(ea),S=y.flattenOptions,x=y.onActiveValue,M=y.defaultActiveFirstOption,R=y.onSelect,I=y.menuItemSelectedIcon,N=y.rawValues,D=y.fieldNames,P=y.virtual,T=y.listHeight,O=y.listItemHeight,k="".concat(i,"-item"),V=(0,eu.Z)(function(){return S},[s,S],function(e,n){return n[0]&&e[1]!==n[1]}),L=d.useRef(null),A=function(e){e.preventDefault()},F=function(e){L.current&&L.current.scrollTo("number"==typeof e?{index:e}:e)},H=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=V.length,o=0;o<t;o+=1){var r=(e+o*n+t)%t,u=V[r],i=u.group,a=u.data;if(!i&&!a.disabled)return r}return -1},_=d.useState(function(){return H(0)}),K=(0,a.Z)(_,2),z=K[0],W=K[1],Y=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(e);var t={source:n?"keyboard":"mouse"},o=V[e];if(!o){x(null,-1,t);return}x(o.value,e,t)};(0,d.useEffect)(function(){Y(!1!==M?H(0):-1)},[V.length,m]);var j=d.useCallback(function(e){return N.has(e)&&"combobox"!==v},[v,(0,r.Z)(N).toString(),N.size]);(0,d.useEffect)(function(){var e,n=setTimeout(function(){if(!f&&s&&1===N.size){var e=Array.from(N)[0],n=V.findIndex(function(n){return n.data.value===e});-1!==n&&(Y(n),F(n))}});return s&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(n)}},[s,m]);var U=function(e){void 0!==e&&R(e,{selected:!N.has(e)}),f||h(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case g.Z.N:case g.Z.P:case g.Z.UP:case g.Z.DOWN:var o=0;if(n===g.Z.UP?o=-1:n===g.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===g.Z.N?o=1:n===g.Z.P&&(o=-1)),0!==o){var r=H(z+o,o);F(r),Y(r,!0)}break;case g.Z.ENTER:var u=V[z];u&&!u.data.disabled?U(u.value):U(void 0),s&&e.preventDefault();break;case g.Z.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}}),0===V.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(k,"-empty"),onMouseDown:A},b);var X=Object.keys(D).map(function(e){return D[e]}),B=function(e){return e.label},G=function(e){var n=V[e];if(!n)return null;var t=n.data||{},r=t.value,u=n.group,i=(0,E.Z)(t,!0),a=B(n);return n?d.createElement("div",(0,o.Z)({"aria-label":"string"!=typeof a||u?null:a},i,{key:e,role:u?"presentation":"option",id:"".concat(c,"_list_").concat(e),"aria-selected":j(r)}),r):null};return d.createElement(d.Fragment,null,d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},G(z-1),G(z),G(z+1)),d.createElement(ei.Z,{itemKey:"key",ref:L,data:V,height:T,itemHeight:O,fullHeight:!1,onMouseDown:A,onScroll:Z,virtual:P},function(e,n){var t=e.group,r=e.groupOption,i=e.data,a=e.label,c=e.value,s=i.key;if(t){var f,v,m=null!==(v=i.title)&&void 0!==v?v:ec(a)?a.toString():void 0;return d.createElement("div",{className:p()(k,"".concat(k,"-group")),title:m},void 0!==a?a:s)}var h=i.disabled,g=i.title,b=(i.children,i.style),Z=i.className,w=(0,l.Z)(i,el),y=(0,er.Z)(w,X),S=j(c),x="".concat(k,"-option"),M=p()(k,x,Z,(f={},(0,u.Z)(f,"".concat(x,"-grouped"),r),(0,u.Z)(f,"".concat(x,"-active"),z===n&&!h),(0,u.Z)(f,"".concat(x,"-disabled"),h),(0,u.Z)(f,"".concat(x,"-selected"),S),f)),R=B(e),N=!I||"function"==typeof I||S,D="number"==typeof R?R:R||c,P=ec(D)?D.toString():void 0;return void 0!==g&&(P=g),d.createElement("div",(0,o.Z)({},(0,E.Z)(y),{"aria-selected":S,className:M,title:P,onMouseMove:function(){z===n||h||Y(n)},onClick:function(){h||U(c)},style:b}),d.createElement("div",{className:"".concat(x,"-content")},D),d.isValidElement(I)||S,N&&d.createElement(C,{className:"".concat(k,"-option-state"),customizeIcon:I,customizeIconProps:{isSelected:S}},S?"✓":null))}))});es.displayName="OptionList";var ef=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ed=["inputValue"],ev=d.forwardRef(function(e,n){var t,f=e.id,v=e.mode,p=e.prefixCls,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,Z=e.onSearch,w=e.autoClearSearchValue,y=void 0===w||w,E=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,x=void 0===C||C,R=e.filterOption,I=e.filterSort,N=e.optionFilterProp,D=e.optionLabelProp,P=e.options,T=e.children,O=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,V=e.virtual,L=e.listHeight,A=void 0===L?200:L,F=e.listItemHeight,H=void 0===F?20:F,W=e.value,Y=e.defaultValue,ee=e.labelInValue,en=e.onChange,et=(0,l.Z)(e,ef),eo=(0,G.ZP)(f),er=j(v),eu=!!(!P&&T),ei=d.useMemo(function(){return(void 0!==R||"combobox"!==v)&&R},[R,v]),el=d.useMemo(function(){return K(h,eu)},[JSON.stringify(h),eu]),ec=(0,s.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),ev=(0,a.Z)(ec,2),ep=ev[0],em=ev[1],eh=d.useMemo(function(){var e=P;P||(e=function e(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Q.Z)(n).map(function(n,o){if(!d.isValidElement(n)||!n.type)return null;var r,u,a,c,s,f=n.type.isSelectOptGroup,v=n.key,p=n.props,m=p.children,h=(0,l.Z)(p,$);return t||!f?(r=n.key,a=(u=n.props).children,c=u.value,s=(0,l.Z)(u,J),(0,i.Z)({key:r,value:void 0!==c?c:r,children:a},s)):(0,i.Z)((0,i.Z)({key:"__RC_SELECT_GRP__".concat(null===v?o:v,"__"),label:v},h),{},{options:e(m)})}).filter(function(e){return e})}(T));var n=new Map,t=new Map,o=function(e,n,t){t&&"string"==typeof t&&e.set(n[t],n)};return function e(r){for(var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i<r.length;i+=1){var a=r[i];!a[el.options]||u?(n.set(a[el.value],a),o(t,a,el.label),o(t,a,N),o(t,a,D)):e(a[el.options],!0)}}(e),{options:e,valueOptions:n,labelOptions:t}},[P,T,el,N,D]),eg=eh.valueOptions,eb=eh.labelOptions,eZ=eh.options,ew=d.useCallback(function(e){return M(e).map(function(e){e&&"object"===(0,c.Z)(e)?(o=e.key,t=e.label,n=null!==(i=e.value)&&void 0!==i?i:o):n=e;var n,t,o,r,u,i,a,l=eg.get(n);return l&&(void 0===t&&(t=null==l?void 0:l[D||el.label]),void 0===o&&(o=null!==(a=null==l?void 0:l.key)&&void 0!==a?a:n),r=null==l?void 0:l.disabled,u=null==l?void 0:l.title),{label:t,value:n,key:o,disabled:r,title:u}})},[el,D,eg]),ey=(0,s.Z)(Y,{value:W}),eE=(0,a.Z)(ey,2),eS=eE[0],eC=eE[1],ex=X(d.useMemo(function(){var e,n=ew(eS);return"combobox"!==v||null!==(e=n[0])&&void 0!==e&&e.value?n:[]},[eS,ew,v]),eg),eM=(0,a.Z)(ex,2),eR=eM[0],eI=eM[1],eN=d.useMemo(function(){if(!v&&1===eR.length){var e=eR[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eR.map(function(e){var n;return(0,i.Z)((0,i.Z)({},e),{},{label:null!==(n=e.label)&&void 0!==n?n:e.value})})},[v,eR]),eD=d.useMemo(function(){return new Set(eR.map(function(e){return e.value}))},[eR]);d.useEffect(function(){if("combobox"===v){var e,n=null===(e=eR[0])||void 0===e?void 0:e.value;em(null!=n?String(n):"")}},[eR]);var eP=q(function(e,n){var t,o=null!=n?n:e;return t={},(0,u.Z)(t,el.value,e),(0,u.Z)(t,el.label,o),t}),eT=(t=d.useMemo(function(){if("tags"!==v)return eZ;var e=(0,r.Z)(eZ);return(0,r.Z)(eR).sort(function(e,n){return e.value<n.value?-1:1}).forEach(function(n){var t=n.value;eg.has(t)||e.push(eP(t,n.label))}),e},[eP,eZ,eg,eR,v]),d.useMemo(function(){if(!ep||!1===ei)return t;var e=el.options,n=el.label,o=el.value,r=[],a="function"==typeof ei,l=ep.toUpperCase(),c=a?ei:function(t,r){return N?B(r[N],l):r[e]?B(r["children"!==n?n:"label"],l):B(r[o],l)},s=a?function(e){return z(e)}:function(e){return e};return t.forEach(function(n){if(n[e]){if(c(ep,s(n)))r.push(n);else{var t=n[e].filter(function(e){return c(ep,s(e))});t.length&&r.push((0,i.Z)((0,i.Z)({},n),{},(0,u.Z)({},e,t)))}return}c(ep,s(n))&&r.push(n)}),r},[t,ei,N,ep,el])),eO=d.useMemo(function(){return"tags"!==v||!ep||eT.some(function(e){return e[N||"value"]===ep})?eT:[eP(ep)].concat((0,r.Z)(eT))},[eP,N,v,eT,ep]),ek=d.useMemo(function(){return I?(0,r.Z)(eO).sort(function(e,n){return I(e,n)}):eO},[eO,I]),eV=d.useMemo(function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,o=n.childrenAsData,r=[],u=K(t,!1),i=u.label,a=u.value,l=u.options;return!function e(n,t){n.forEach(function(n){var u=n[i];if(!t&&l in n){var c=u;void 0===c&&o&&(c=n.label),r.push({key:_(n,r.length),group:!0,data:n,label:c}),e(n[l],!0)}else{var s=n[a];r.push({key:_(n,r.length),groupOption:t,data:n,label:u,value:s})}})}(e,!1),r}(ek,{fieldNames:el,childrenAsData:eu})},[ek,el,eu]),eL=function(e){var n=ew(e);if(eC(n),en&&(n.length!==eR.length||n.some(function(e,n){var t;return(null===(t=eR[n])||void 0===t?void 0:t.value)!==(null==e?void 0:e.value)}))){var t=ee?n:n.map(function(e){return e.value}),o=n.map(function(e){return z(eI(e.value))});en(er?t:t[0],er?o:o[0])}},eA=d.useState(null),eF=(0,a.Z)(eA,2),eH=eF[0],e_=eF[1],eK=d.useState(0),ez=(0,a.Z)(eK,2),eW=ez[0],eY=ez[1],ej=void 0!==O?O:"combobox"!==v,eU=d.useCallback(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.source;eY(n),m&&"combobox"===v&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&e_(String(e))},[m,v]),eX=function(e,n,t){var o=function(){var n,t=eI(e);return[ee?{label:null==t?void 0:t[el.label],value:e,key:null!==(n=null==t?void 0:t.key)&&void 0!==n?n:e}:e,z(t)]};if(n&&E){var r=o(),u=(0,a.Z)(r,2);E(u[0],u[1])}else if(!n&&S&&"clear"!==t){var i=o(),l=(0,a.Z)(i,2);S(l[0],l[1])}},eB=q(function(e,n){var t=!er||n.selected;eL(t?er?[].concat((0,r.Z)(eR),[e]):[e]:eR.filter(function(n){return n.value!==e})),eX(e,t),"combobox"===v?e_(""):(!j||y)&&(em(""),e_(""))}),eG=d.useMemo(function(){var e=!1!==V&&!1!==x;return(0,i.Z)((0,i.Z)({},eh),{},{flattenOptions:eV,onActiveValue:eU,defaultActiveFirstOption:ej,onSelect:eB,menuItemSelectedIcon:k,rawValues:eD,fieldNames:el,virtual:e,listHeight:A,listItemHeight:H,childrenAsData:eu})},[eh,eV,eU,ej,eB,k,eD,el,V,x,A,H,eu]);return d.createElement(ea.Provider,{value:eG},d.createElement(U,(0,o.Z)({},et,{id:eo,prefixCls:void 0===p?"rc-select":p,ref:n,omitDomProps:ed,mode:v,displayValues:eN,onDisplayValuesChange:function(e,n){eL(e);var t=n.type,o=n.values;("remove"===t||"clear"===t)&&o.forEach(function(e){eX(e.value,!1,t)})},searchValue:ep,onSearch:function(e,n){if(em(e),e_(null),"submit"===n.source){var t=(e||"").trim();t&&(eL(Array.from(new Set([].concat((0,r.Z)(eD),[t])))),eX(t,!0),em(""));return}"blur"!==n.source&&("combobox"===v&&eL(e),null==Z||Z(e))},autoClearSearchValue:y,onSearchSplit:function(e){var n=e;"tags"!==v&&(n=e.map(function(e){var n=eb.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.Z)(eD),(0,r.Z)(n))));eL(t),t.forEach(function(e){eX(e,!0)})},dropdownMatchSelectWidth:x,OptionList:es,emptyOptions:!eV.length,activeValue:eH,activeDescendantId:"".concat(eo,"_list_").concat(eW)})))});ev.Option=eo,ev.OptGroup=en;var ep=ev},51764:function(e,n,t){t.d(n,{Z:function(){return O}});var o=t(87462),r=t(1413),u=t(71002),i=t(97685),a=t(4942),l=t(45987),c=t(67294),s=t(73935),f=t(94184),d=t.n(f),v=t(48555),p=c.forwardRef(function(e,n){var t,u=e.height,i=e.offsetY,l=e.offsetX,s=e.children,f=e.prefixCls,p=e.onInnerResize,m=e.innerProps,h=e.rtl,g=e.extra,b={},Z={display:"flex",flexDirection:"column"};return void 0!==i&&(b={height:u,position:"relative",overflow:"hidden"},Z=(0,r.Z)((0,r.Z)({},Z),{},(t={transform:"translateY(".concat(i,"px)")},(0,a.Z)(t,h?"marginRight":"marginLeft",-l),(0,a.Z)(t,"position","absolute"),(0,a.Z)(t,"left",0),(0,a.Z)(t,"right",0),(0,a.Z)(t,"top",0),t))),c.createElement("div",{style:b},c.createElement(v.default,{onResize:function(e){e.offsetHeight&&p&&p()}},c.createElement("div",(0,o.Z)({style:Z,className:d()((0,a.Z)({},"".concat(f,"-holder-inner"),f)),ref:n},m),s,g)))});p.displayName="Filler";var m=t(75164);function h(e,n){return("touches"in e?e.touches[0]:e)[n?"pageX":"pageY"]}var g=c.forwardRef(function(e,n){var t,o=e.prefixCls,r=e.rtl,u=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,f=e.onStopMove,v=e.onScroll,p=e.horizontal,g=e.spinSize,b=e.containerSize,Z=c.useState(!1),w=(0,i.Z)(Z,2),y=w[0],E=w[1],S=c.useState(null),C=(0,i.Z)(S,2),x=C[0],M=C[1],R=c.useState(null),I=(0,i.Z)(R,2),N=I[0],D=I[1],P=!r,T=c.useRef(),O=c.useRef(),k=c.useState(!1),V=(0,i.Z)(k,2),L=V[0],A=V[1],F=c.useRef(),H=function(){clearTimeout(F.current),A(!0),F.current=setTimeout(function(){A(!1)},3e3)},_=l-b||0,K=b-g||0,z=_>0,W=c.useMemo(function(){return 0===u||0===_?0:u/_*K},[u,_,K]),Y=c.useRef({top:W,dragging:y,pageY:x,startTop:N});Y.current={top:W,dragging:y,pageY:x,startTop:N};var j=function(e){E(!0),M(h(e,p)),D(Y.current.top),s(),e.stopPropagation(),e.preventDefault()};c.useEffect(function(){var e=function(e){e.preventDefault()},n=T.current,t=O.current;return n.addEventListener("touchstart",e),t.addEventListener("touchstart",j),function(){n.removeEventListener("touchstart",e),t.removeEventListener("touchstart",j)}},[]);var U=c.useRef();U.current=_;var X=c.useRef();X.current=K,c.useEffect(function(){if(y){var e,n=function(n){var t=Y.current,o=t.dragging,r=t.pageY,u=t.startTop;if(m.Z.cancel(e),o){var i=h(n,p)-r,a=u;!P&&p?a-=i:a+=i;var l=U.current,c=X.current,s=Math.ceil((c?a/c:0)*l);s=Math.min(s=Math.max(s,0),l),e=(0,m.Z)(function(){v(s,p)})}},t=function(){E(!1),f()};return window.addEventListener("mousemove",n),window.addEventListener("touchmove",n),window.addEventListener("mouseup",t),window.addEventListener("touchend",t),function(){window.removeEventListener("mousemove",n),window.removeEventListener("touchmove",n),window.removeEventListener("mouseup",t),window.removeEventListener("touchend",t),m.Z.cancel(e)}}},[y]),c.useEffect(function(){H()},[u]),c.useImperativeHandle(n,function(){return{delayHidden:H}});var B="".concat(o,"-scrollbar"),G={position:"absolute",visibility:L&&z?null:"hidden"},Q={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(G.height=8,G.left=0,G.right=0,G.bottom=0,Q.height="100%",Q.width=g,P?Q.left=W:Q.right=W):(G.width=8,G.top=0,G.bottom=0,P?G.right=0:G.left=0,Q.width="100%",Q.height=g,Q.top=W),c.createElement("div",{ref:T,className:d()(B,(t={},(0,a.Z)(t,"".concat(B,"-horizontal"),p),(0,a.Z)(t,"".concat(B,"-vertical"),!p),(0,a.Z)(t,"".concat(B,"-visible"),L),t)),style:G,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},c.createElement("div",{ref:O,className:d()("".concat(B,"-thumb"),(0,a.Z)({},"".concat(B,"-thumb-moving"),y)),style:Q,onMouseDown:j}))});function b(e){var n=e.children,t=e.setRef,o=c.useCallback(function(e){t(e)},[]);return c.cloneElement(n,{ref:o})}var Z=t(34203),w=t(15671),y=t(43144),E=function(){function e(){(0,w.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,y.Z)(e,[{key:"set",value:function(e,n){this.maps[e]=n,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),S=("undefined"==typeof navigator?"undefined":(0,u.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),C=function(e,n){var t=(0,c.useRef)(!1),o=(0,c.useRef)(null),r=(0,c.useRef)({top:e,bottom:n});return r.current.top=e,r.current.bottom=n,function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=e<0&&r.current.top||e>0&&r.current.bottom;return n&&u?(clearTimeout(o.current),t.current=!1):(!u||t.current)&&(clearTimeout(o.current),t.current=!0,o.current=setTimeout(function(){t.current=!1},50)),!t.current&&u}},x=t(8410),M=14/15;function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=e/n*100;return isNaN(t)&&(t=0),Math.floor(t=Math.min(t=Math.max(t,20),e/2))}var I=t(66680);t(21770),t(42550),t(8880),t(80334);var N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],D=[],P={overflowY:"auto",overflowAnchor:"none"},T=c.forwardRef(function(e,n){var t,f,h,w,y,T,O,k,V,L,A,F,H,_,K,z,W,Y,j,U,X,B,G,Q,J,$,q,ee,en,et,eo,er=e.prefixCls,eu=void 0===er?"rc-virtual-list":er,ei=e.className,ea=e.height,el=e.itemHeight,ec=e.fullHeight,es=e.style,ef=e.data,ed=e.children,ev=e.itemKey,ep=e.virtual,em=e.direction,eh=e.scrollWidth,eg=e.component,eb=void 0===eg?"div":eg,eZ=e.onScroll,ew=e.onVirtualScroll,ey=e.onVisibleChange,eE=e.innerProps,eS=e.extraRender,eC=(0,l.Z)(e,N),ex=!!(!1!==ep&&ea&&el),eM=ex&&ef&&(el*ef.length>ea||!!eh),eR="rtl"===em,eI=d()(eu,(0,a.Z)({},"".concat(eu,"-rtl"),eR),ei),eN=ef||D,eD=(0,c.useRef)(),eP=(0,c.useRef)(),eT=(0,c.useState)(0),eO=(0,i.Z)(eT,2),ek=eO[0],eV=eO[1],eL=(0,c.useState)(0),eA=(0,i.Z)(eL,2),eF=eA[0],eH=eA[1],e_=(0,c.useState)(!1),eK=(0,i.Z)(e_,2),ez=eK[0],eW=eK[1],eY=function(){eW(!0)},ej=function(){eW(!1)},eU=c.useCallback(function(e){return"function"==typeof ev?ev(e):null==e?void 0:e[ev]},[ev]);function eX(e){eV(function(n){var t,o=(t="function"==typeof e?e(n):e,Number.isNaN(nl.current)||(t=Math.min(t,nl.current)),t=Math.max(t,0));return eD.current.scrollTop=o,o})}var eB=(0,c.useRef)({start:0,end:eN.length}),eG=(0,c.useRef)(),eQ=(f=c.useState(eN),w=(h=(0,i.Z)(f,2))[0],y=h[1],T=c.useState(null),k=(O=(0,i.Z)(T,2))[0],V=O[1],c.useEffect(function(){var e=function(e,n,t){var o,r,u=e.length,i=n.length;if(0===u&&0===i)return null;u<i?(o=e,r=n):(o=n,r=e);var a={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?t(e):a}for(var c=null,s=1!==Math.abs(u-i),f=0;f<r.length;f+=1){var d=l(o[f]);if(d!==l(r[f])){c=f,s=s||d!==l(r[f+1]);break}}return null===c?null:{index:c,multiple:s}}(w||[],eN||[],eU);(null==e?void 0:e.index)!==void 0&&(null==t||t(e.index),V(eN[e.index])),y(eN)},[eN]),[k]),eJ=(0,i.Z)(eQ,1)[0];eG.current=eJ;var e$=function(e,n,t){var o=c.useState(0),r=(0,i.Z)(o,2),u=r[0],a=r[1],l=(0,c.useRef)(new Map),s=(0,c.useRef)(new E),f=(0,c.useRef)();function d(){m.Z.cancel(f.current)}function v(){d(),f.current=(0,m.Z)(function(){l.current.forEach(function(e,n){if(e&&e.offsetParent){var t=(0,Z.Z)(e),o=t.offsetHeight;s.current.get(n)!==o&&s.current.set(n,t.offsetHeight)}}),a(function(e){return e+1})})}return(0,c.useEffect)(function(){return d},[]),[function(o,r){var u=e(o),i=l.current.get(u);r?(l.current.set(u,r),v()):l.current.delete(u),!i!=!r&&(r?null==n||n(o):null==t||t(o))},v,s.current,u]}(eU,null,null),eq=(0,i.Z)(e$,4),e0=eq[0],e1=eq[1],e2=eq[2],e4=eq[3],e8=c.useMemo(function(){if(!ex)return{scrollHeight:void 0,start:0,end:eN.length-1,offset:void 0};if(!eM)return{scrollHeight:(null===(e=eP.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eN.length-1,offset:void 0};for(var e,n,t,o,r=0,u=eN.length,i=0;i<u;i+=1){var a=eU(eN[i]),l=e2.get(a),c=r+(void 0===l?el:l);c>=ek&&void 0===n&&(n=i,t=r),c>ek+ea&&void 0===o&&(o=i),r=c}return void 0===n&&(n=0,t=0,o=Math.ceil(ea/el)),void 0===o&&(o=eN.length-1),{scrollHeight:r,start:n,end:o=Math.min(o+1,eN.length-1),offset:t}},[eM,ex,ek,eN,e4,ea]),e7=e8.scrollHeight,e5=e8.start,e3=e8.end,e9=e8.offset;eB.current.start=e5,eB.current.end=e3;var e6=c.useState({width:0,height:ea}),ne=(0,i.Z)(e6,2),nn=ne[0],nt=ne[1],no=(0,c.useRef)(),nr=(0,c.useRef)(),nu=c.useMemo(function(){return R(nn.width,eh)},[nn.width,eh]),ni=c.useMemo(function(){return R(nn.height,e7)},[nn.height,e7]),na=e7-ea,nl=(0,c.useRef)(na);nl.current=na;var nc=ek<=0,ns=ek>=na,nf=C(nc,ns),nd=function(){return{x:eR?-eF:eF,y:ek}},nv=(0,c.useRef)(nd()),np=(0,I.Z)(function(){if(ew){var e=nd();(nv.current.x!==e.x||nv.current.y!==e.y)&&(ew(e),nv.current=e)}});function nm(e,n){n?((0,s.flushSync)(function(){eH(e)}),np()):eX(e)}var nh=function(e){var n=e,t=eh-nn.width;return Math.min(n=Math.max(n,0),t)},ng=(0,I.Z)(function(e,n){n?((0,s.flushSync)(function(){eH(function(n){return nh(n+(eR?-e:e))})}),np()):eX(function(n){return n+e})}),nb=(L=!!eh,A=(0,c.useRef)(0),F=(0,c.useRef)(null),H=(0,c.useRef)(null),_=(0,c.useRef)(!1),K=C(nc,ns),z=(0,c.useRef)(null),W=(0,c.useRef)(null),[function(e){if(ex){m.Z.cancel(W.current),W.current=(0,m.Z)(function(){z.current=null},2);var n,t=e.deltaX,o=e.deltaY,r=e.shiftKey,u=t,i=o;("sx"===z.current||!z.current&&r&&o&&!t)&&(u=o,i=0,z.current="sx");var a=Math.abs(u),l=Math.abs(i);(null===z.current&&(z.current=L&&a>l?"x":"y"),"y"===z.current)?(n=i,m.Z.cancel(F.current),A.current+=n,H.current=n,K(n)||(S||e.preventDefault(),F.current=(0,m.Z)(function(){var e=_.current?10:1;ng(A.current*e),A.current=0}))):(ng(u,!0),S||e.preventDefault())}},function(e){ex&&(_.current=e.detail===H.current)}]),nZ=(0,i.Z)(nb,2),nw=nZ[0],ny=nZ[1];Y=function(e,n){return!nf(e,n)&&(nw({preventDefault:function(){},deltaY:e}),!0)},U=(0,c.useRef)(!1),X=(0,c.useRef)(0),B=(0,c.useRef)(null),G=(0,c.useRef)(null),Q=function(e){if(U.current){var n=Math.ceil(e.touches[0].pageY),t=X.current-n;X.current=n,Y(t)&&e.preventDefault(),clearInterval(G.current),G.current=setInterval(function(){(!Y(t*=M,!0)||.1>=Math.abs(t))&&clearInterval(G.current)},16)}},J=function(){U.current=!1,j()},$=function(e){j(),1!==e.touches.length||U.current||(U.current=!0,X.current=Math.ceil(e.touches[0].pageY),B.current=e.target,B.current.addEventListener("touchmove",Q),B.current.addEventListener("touchend",J))},j=function(){B.current&&(B.current.removeEventListener("touchmove",Q),B.current.removeEventListener("touchend",J))},(0,x.Z)(function(){return ex&&eD.current.addEventListener("touchstart",$),function(){var e;null===(e=eD.current)||void 0===e||e.removeEventListener("touchstart",$),j(),clearInterval(G.current)}},[ex]),(0,x.Z)(function(){function e(e){ex&&e.preventDefault()}var n=eD.current;return n.addEventListener("wheel",nw),n.addEventListener("DOMMouseScroll",ny),n.addEventListener("MozMousePixelScroll",e),function(){n.removeEventListener("wheel",nw),n.removeEventListener("DOMMouseScroll",ny),n.removeEventListener("MozMousePixelScroll",e)}},[ex]),(0,x.Z)(function(){eh&&eH(function(e){return nh(e)})},[nn.width,eh]);var nE=function(){var e,n;null===(e=no.current)||void 0===e||e.delayHidden(),null===(n=nr.current)||void 0===n||n.delayHidden()},nS=(q=c.useRef(),function(e){if(null==e){nE();return}if(m.Z.cancel(q.current),"number"==typeof e)eX(e);else if(e&&"object"===(0,u.Z)(e)){var n,t=e.align;n="index"in e?e.index:eN.findIndex(function(n){return eU(n)===e.key});var o=e.offset,r=void 0===o?0:o;!function e(o,u){if(!(o<0)&&eD.current){var i=eD.current.clientHeight,a=!1,l=u;if(i){for(var c=0,s=0,f=0,d=Math.min(eN.length,n),v=0;v<=d;v+=1){var p=eU(eN[v]);s=c;var h=e2.get(p);c=f=s+(void 0===h?el:h),v===n&&void 0===h&&(a=!0)}var g=null;switch(u||t){case"top":g=s-r;break;case"bottom":g=f-i+r;break;default:var b=eD.current.scrollTop;s<b?l="top":f>b+i&&(l="bottom")}null!==g&&g!==eD.current.scrollTop&&eX(g)}q.current=(0,m.Z)(function(){a&&e1(),e(o-1,l)},2)}}(3)}});c.useImperativeHandle(n,function(){return{getScrollInfo:nd,scrollTo:function(e){e&&"object"===(0,u.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(nh(e.left)),nS(e.top)):nS(e)}}}),(0,x.Z)(function(){ey&&ey(eN.slice(e5,e3+1),eN)},[e5,e3,eN]);var nC=(ee=c.useMemo(function(){return[new Map,[]]},[eN,e2.id,el]),et=(en=(0,i.Z)(ee,2))[0],eo=en[1],function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,t=et.get(e),o=et.get(n);if(void 0===t||void 0===o)for(var r=eN.length,u=eo.length;u<r;u+=1){var i,a=eU(eN[u]);et.set(a,u);var l=null!==(i=e2.get(a))&&void 0!==i?i:el;if(eo[u]=(eo[u-1]||0)+l,a===e&&(t=u),a===n&&(o=u),void 0!==t&&void 0!==o)break}return{top:eo[t-1]||0,bottom:eo[o]}}),nx=null==eS?void 0:eS({start:e5,end:e3,virtual:eM,offsetX:eF,offsetY:e9,rtl:eR,getSize:nC}),nM=eN.slice(e5,e3+1).map(function(e,n){var t=ed(e,e5+n,{style:{width:eh}}),o=eU(e);return c.createElement(b,{key:o,setRef:function(n){return e0(e,n)}},t)}),nR=null;ea&&(nR=(0,r.Z)((0,a.Z)({},void 0===ec||ec?"height":"maxHeight",ea),P),ex&&(nR.overflowY="hidden",eh&&(nR.overflowX="hidden"),ez&&(nR.pointerEvents="none")));var nI={};return eR&&(nI.dir="rtl"),c.createElement("div",(0,o.Z)({style:(0,r.Z)((0,r.Z)({},es),{},{position:"relative"}),className:eI},nI,eC),c.createElement(v.default,{onResize:function(e){nt(e)}},c.createElement(eb,{className:"".concat(eu,"-holder"),style:nR,ref:eD,onScroll:function(e){var n=e.currentTarget.scrollTop;n!==ek&&eX(n),null==eZ||eZ(e),np()},onMouseEnter:nE},c.createElement(p,{prefixCls:eu,height:e7,offsetX:eF,offsetY:e9,scrollWidth:eh,onInnerResize:e1,ref:eP,innerProps:eE,rtl:eR,extra:nx},nM))),eM&&e7>ea&&c.createElement(g,{ref:no,prefixCls:eu,scrollOffset:ek,scrollRange:e7,rtl:eR,onScroll:nm,onStartMove:eY,onStopMove:ej,spinSize:ni,containerSize:nn.height}),eM&&eh&&c.createElement(g,{ref:nr,prefixCls:eu,scrollOffset:eF,scrollRange:eh,rtl:eR,onScroll:nm,onStartMove:eY,onStopMove:ej,spinSize:nu,containerSize:nn.width,horizontal:!0}))});T.displayName="List";var O=T}}]);