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.

2339.bdbfbaf3.async.js 57 KiB

9 months ago
11 months ago
9 months ago
11 months ago
9 months ago
1234567891011121314151617181920
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2339],{88258:function(Yn,Ge,i){"use strict";var ie=i(67294),oe=i(53124),U=i(14277),N=function(s){return ie.createElement(oe.C,null,function(Ee){var we=Ee.getPrefixCls,de=we("empty");switch(s){case"Table":case"List":return ie.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ie.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(de,"-small")});default:return ie.createElement(U.Z,null)}})};Ge.Z=N},14277:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return $e}});var ie=i(96156),oe=i(22122),U=i(94184),N=i.n(U),v=i(67294),s=i(53124),Ee=i(42051),we=function(){var Me=v.useContext(s.E_),Ye=Me.getPrefixCls,J=Ye("empty-img-default");return v.createElement("svg",{className:J,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(24 31.67)"},v.createElement("ellipse",{className:"".concat(J,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),v.createElement("path",{className:"".concat(J,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),v.createElement("path",{className:"".concat(J,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),v.createElement("path",{className:"".concat(J,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),v.createElement("path",{className:"".concat(J,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),v.createElement("path",{className:"".concat(J,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),v.createElement("g",{className:"".concat(J,"-g"),transform:"translate(149.65 15.383)"},v.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),v.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},de=we,t=function(){var Me=v.useContext(s.E_),Ye=Me.getPrefixCls,J=Ye("empty-img-simple");return v.createElement("svg",{className:J,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},v.createElement("ellipse",{className:"".concat(J,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),v.createElement("g",{className:"".concat(J,"-g"),fillRule:"nonzero"},v.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),v.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(J,"-path")}))))},Le=t,Re=function(Ke,Me){var Ye={};for(var J in Ke)Object.prototype.hasOwnProperty.call(Ke,J)&&Me.indexOf(J)<0&&(Ye[J]=Ke[J]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,J=Object.getOwnPropertySymbols(Ke);Ve<J.length;Ve++)Me.indexOf(J[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Ke,J[Ve])&&(Ye[J[Ve]]=Ke[J[Ve]]);return Ye},He=v.createElement(de,null),Ln=v.createElement(Le,null),O=function(Me){var Ye=Me.className,J=Me.prefixCls,Ve=Me.image,ze=Ve===void 0?He:Ve,In=Me.description,dn=Me.children,ln=Me.imageStyle,Vn=Re(Me,["className","prefixCls","image","description","children","imageStyle"]),un=v.useContext(s.E_),_n=un.getPrefixCls,An=un.direction;return v.createElement(Ee.Z,{componentName:"Empty"},function(ft){var Fn,Sn=_n("empty",J),bn=typeof In!="undefined"?In:ft.description,nt=typeof bn=="string"?bn:"empty",Rn=null;return typeof ze=="string"?Rn=v.createElement("img",{alt:nt,src:ze}):Rn=ze,v.createElement("div",(0,oe.Z)({className:N()(Sn,(Fn={},(0,ie.Z)(Fn,"".concat(Sn,"-normal"),ze===Ln),(0,ie.Z)(Fn,"".concat(Sn,"-rtl"),An==="rtl"),Fn),Ye)},Vn),v.createElement("div",{className:"".concat(Sn,"-image"),style:ln},Rn),bn&&v.createElement("div",{className:"".concat(Sn,"-description")},bn),dn&&v.createElement("div",{className:"".concat(Sn,"-footer")},dn))})};O.PRESENTED_IMAGE_DEFAULT=He,O.PRESENTED_IMAGE_SIMPLE=Ln;var $e=O},46163:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return we}});var ie=i(79508),oe=i(43061),U=i(54549),N=i(57254),v=i(7085),s=i(76570),Ee=i(67294);function we(de){var t=de.suffixIcon,Le=de.clearIcon,Re=de.menuItemSelectedIcon,He=de.removeIcon,Ln=de.loading,O=de.multiple,$e=de.hasFeedback,Ke=de.prefixCls,Me=de.showArrow,Ye=de.feedbackIcon,J=Le!=null?Le:Ee.createElement(oe.Z,null),Ve=function(un){return Ee.createElement(Ee.Fragment,null,Me!==!1&&un,$e&&Ye)},ze=null;if(t!==void 0)ze=Ve(t);else if(Ln)ze=Ve(Ee.createElement(v.Z,{spin:!0}));else{var In="".concat(Ke,"-suffix");ze=function(un){var _n=un.open,An=un.showSearch;return Ve(_n&&An?Ee.createElement(s.Z,{className:In}):Ee.createElement(N.Z,{className:In}))}}var dn=null;Re!==void 0?dn=Re:O?dn=Ee.createElement(ie.Z,null):dn=null;var ln=null;return He!==void 0?ln=He:ln=Ee.createElement(U.Z,null),{clearIcon:J,suffixIcon:ze,itemIcon:dn,removeIcon:ln}}},97435:function(Yn,Ge){"use strict";function i(ie,oe){for(var U=Object.assign({},ie),N=0;N<oe.length;N+=1){var v=oe[N];delete U[v]}return U}Ge.Z=i},88708:function(Yn,Ge,i){"use strict";i.d(Ge,{ZP:function(){return Ee}});var ie=i(28481),oe=i(67294),U=i(98924),N=0,v=(0,U.Z)();function s(){var we;return v?(we=N,N+=1):we="TEST_OR_SSR",we}function Ee(we){var de=oe.useState(),t=(0,ie.Z)(de,2),Le=t[0],Re=t[1];return oe.useEffect(function(){Re("rc_select_".concat(s()))},[]),we||Le}},74484:function(Yn,Ge,i){"use strict";i.d(Ge,{Ac:function(){return En},Xo:function(){return Xn},Wx:function(){return Je},ZP:function(){return $t},lk:function(){return Me}});var ie=i(22122),oe=i(85061),U=i(96156),N=i(28991),v=i(28481),s=i(81253),Ee=i(90484),we=i(21770),de=i(80334),t=i(67294),Le=i(94184),Re=i.n(Le),He=i(8410),Ln=i(31131),O=i(15105),$e=i(42550),Ke=t.createContext(null);function Me(){return t.useContext(Ke)}function Ye(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=t.useState(!1),r=(0,v.Z)(e,2),a=r[0],c=r[1],l=t.useRef(null),m=function(){window.clearTimeout(l.current)};t.useEffect(function(){return m},[]);var p=function(I,R){m(),l.current=window.setTimeout(function(){c(I),R&&R()},n)};return[a,p,m]}function J(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=t.useRef(null),r=t.useRef(null);t.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function a(c){(c||e.current===null)&&(e.current=c),window.clearTimeout(r.current),r.current=window.setTimeout(function(){e.current=null},n)}return[function(){return e.current},a]}function Ve(n,e,r,a){var c=t.useRef(null);c.current={open:e,triggerOpen:r,customizedTrigger:a},t.useEffect(function(){function l(m){var p;if(!((p=c.current)!==null&&p!==void 0&&p.customizedTrigger)){var S=m.target;S.shadowRoot&&m.composed&&(S=m.composedPath()[0]||S),c.current.open&&n().filter(function(I){return I}).every(function(I){return!I.contains(S)&&I!==S})&&c.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}var ze=i(64217),In=i(26120),dn=function(e){var r=e.className,a=e.customizeIcon,c=e.customizeIconProps,l=e.onMouseDown,m=e.onClick,p=e.children,S;return typeof a=="function"?S=a(c):S=a,t.createElement("span",{className:r,onMouseDown:function(R){R.preventDefault(),l&&l(R)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:m,"aria-hidden":!0},S!==void 0?S:t.createElement("span",{className:Re()(r.split(/\s+/).map(function(I){return"".concat(I,"-icon")}))},p))},ln=dn,Vn=function(e,r){var a,c,l=e.prefixCls,m=e.id,p=e.inputElement,S=e.disabled,I=e.tabIndex,R=e.autoFocus,h=e.autoComplete,y=e.editable,g=e.activeDescendantId,T=e.value,d=e.maxLength,E=e.onKeyDown,D=e.onMouseDown,k=e.onChange,z=e.onPaste,pe=e.onCompositionStart,ne=e.onCompositionEnd,H=e.open,me=e.attrs,Y=p||t.createElement("input",null),q=Y,ce=q.ref,Ce=q.props,De=Ce.onKeyDown,he=Ce.onChange,ye=Ce.onMouseDown,Ie=Ce.onCompositionStart,X=Ce.onCompositionEnd,ee=Ce.style;return(0,de.Kp)(!("maxLength"in Y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Y=t.cloneElement(Y,(0,N.Z)((0,N.Z)((0,N.Z)({type:"search"},Ce),{},{id:m,ref:(0,$e.sQ)(r,ce),disabled:S,tabIndex:I,autoComplete:h||"off",autoFocus:R,className:Re()("".concat(l,"-selection-search-input"),(a=Y)===null||a===void 0||(c=a.props)===null||c===void 0?void 0:c.className),role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-owns":"".concat(m,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(m,"_list"),"aria-activedescendant":g},me),{},{value:y?T:"",maxLength:d,readOnly:!y,unselectable:y?null:"on",style:(0,N.Z)((0,N.Z)({},ee),{},{opacity:y?null:0}),onKeyDown:function(te){E(te),De&&De(te)},onMouseDown:function(te){D(te),ye&&ye(te)},onChange:function(te){k(te),he&&he(te)},onCompositionStart:function(te){pe(te),Ie&&Ie(te)},onCompositionEnd:function(te){ne(te),X&&X(te)},onPaste:z})),Y},un=t.forwardRef(Vn);un.displayName="Input";var _n=un;function An(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var ft=typeof window!="undefined"&&window.document&&window.document.documentElement,Fn=ft;function Sn(n){return n!=null}function bn(n){return["string","number"].includes((0,Ee.Z)(n))}function nt(n){var e=void 0;return n&&(bn(n.title)?e=n.title.toString():bn(n.label)&&(e=n.label.toString())),e}function Rn(n,e){Fn?t.useLayoutEffect(n,e):t.useEffect(n,e)}function Tt(n){var e;return(e=n.key)!==null&&e!==void 0?e:n.value}var Et=function(e){e.preventDefault(),e.stopPropagation()},Nt=function(e){var r=e.id,a=e.prefixCls,c=e.values,l=e.open,m=e.searchValue,p=e.autoClearSearchValue,S=e.inputRef,I=e.placeholder,R=e.disabled,h=e.mode,y=e.showSearch,g=e.autoFocus,T=e.autoComplete,d=e.activeDescendantId,E=e.tabIndex,D=e.removeIcon,k=e.maxTagCount,z=e.maxTagTextLength,pe=e.maxTagPlaceholder,ne=pe===void 0?function(Se){return"+ ".concat(Se.length," ...")}:pe,H=e.tagRender,me=e.onToggleOpen,Y=e.onRemove,q=e.onInputChange,ce=e.onInputPaste,Ce=e.onInputKeyDown,De=e.onInputMouseDown,he=e.onInputCompositionStart,ye=e.onInputCompositionEnd,Ie=t.useRef(null),X=(0,t.useState)(0),ee=(0,v.Z)(X,2),Q=ee[0],te=ee[1],qe=(0,t.useState)(!1),Ue=(0,v.Z)(qe,2),Wn=Ue[0],Ze=Ue[1],G="".concat(a,"-selection"),x=l||h==="multiple"&&p===!1||h==="tags"?m:"",_=h==="tags"||h==="multiple"&&p===!1||y&&(l||Wn);Rn(function(){te(Ie.current.scrollWidth)},[x]);function se(Se,Fe,Te,en,on){return t.createElement("span",{className:Re()("".concat(G,"-item"),(0,U.Z)({},"".concat(G,"-item-disabled"),Te)),title:nt(Se)},t.createElement("span",{className:"".concat(G,"-item-content")},Fe),en&&t.createElement(ln,{className:"".concat(G,"-item-remove"),onMouseDown:Et,onClick:on,customizeIcon:D},"\xD7"))}function ae(Se,Fe,Te,en,on){var cn=function(fe){Et(fe),me(!l)};return t.createElement("span",{onMouseDown:cn},H({label:Fe,value:Se,disabled:Te,closable:en,onClose:on}))}function le(Se){var Fe=Se.disabled,Te=Se.label,en=Se.value,on=!R&&!Fe,cn=Te;if(typeof z=="number"&&(typeof Te=="string"||typeof Te=="number")){var ke=String(cn);ke.length>z&&(cn="".concat(ke.slice(0,z),"..."))}var fe=function(an){an&&an.stopPropagation(),Y(Se)};return typeof H=="function"?ae(en,cn,Fe,on,fe):se(Se,cn,Fe,on,fe)}function Pe(Se){var Fe=typeof ne=="function"?ne(Se):ne;return se({title:Fe},Fe,!1)}var We=t.createElement("div",{className:"".concat(G,"-search"),style:{width:Q},onFocus:function(){Ze(!0)},onBlur:function(){Ze(!1)}},t.createElement(_n,{ref:S,open:l,prefixCls:a,id:r,inputElement:null,disabled:R,autoFocus:g,autoComplete:T,editable:_,activeDescendantId:d,value:x,onKeyDown:Ce,onMouseDown:De,onChange:q,onPaste:ce,onCompositionStart:he,onCompositionEnd:ye,tabIndex:E,attrs:(0,ze.Z)(e,!0)}),t.createElement("span",{ref:Ie,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},x,"\xA0")),mn=t.createElement(In.Z,{prefixCls:"".concat(G,"-overflow"),data:c,renderItem:le,renderRest:Pe,suffix:We,itemKey:Tt,maxCount:k});return t.createElement(t.Fragment,null,mn,!c.length&&!x&&t.createElement("span",{className:"".concat(G,"-placeholder")},I))},Lt=Nt,Vt=function(e){var r=e.inputElement,a=e.prefixCls,c=e.id,l=e.inputRef,m=e.disabled,p=e.autoFocus,S=e.autoComplete,I=e.activeDescendantId,R=e.mode,h=e.open,y=e.values,g=e.placeholder,T=e.tabIndex,d=e.showSearch,E=e.searchValue,D=e.activeValue,k=e.maxLength,z=e.onInputKeyDown,pe=e.onInputMouseDown,ne=e.onInputChange,H=e.onInputPaste,me=e.onInputCompositionStart,Y=e.onInputCompositionEnd,q=t.useState(!1),ce=(0,v.Z)(q,2),Ce=ce[0],De=ce[1],he=R==="combobox",ye=he||d,Ie=y[0],X=E||"";he&&D&&!Ce&&(X=D),t.useEffect(function(){he&&De(!1)},[he,D]);var ee=R!=="combobox"&&!h&&!d?!1:!!X,Q=nt(Ie),te=function(){if(Ie)return null;var Ue=ee?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:Ue},g)};return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(a,"-selection-search")},t.createElement(_n,{ref:l,prefixCls:a,id:c,open:h,inputElement:r,disabled:m,autoFocus:p,autoComplete:S,editable:ye,activeDescendantId:I,value:X,onKeyDown:z,onMouseDown:pe,onChange:function(Ue){De(!0),ne(Ue)},onPaste:H,onCompositionStart:me,onCompositionEnd:Y,tabIndex:T,attrs:(0,ze.Z)(e,!0),maxLength:he?k:void 0})),!he&&Ie?t.createElement("span",{className:"".concat(a,"-selection-item"),title:Q,style:ee?{visibility:"hidden"}:void 0},Ie.label):null,te())},At=Vt;function Ct(n){return![O.Z.ESC,O.Z.SHIFT,O.Z.BACKSPACE,O.Z.TAB,O.Z.WIN_KEY,O.Z.ALT,O.Z.META,O.Z.WIN_KEY_RIGHT,O.Z.CTRL,O.Z.SEMICOLON,O.Z.EQUALS,O.Z.CAPS_LOCK,O.Z.CONTEXT_MENU,O.Z.F1,O.Z.F2,O.Z.F3,O.Z.F4,O.Z.F5,O.Z.F6,O.Z.F7,O.Z.F8,O.Z.F9,O.Z.F10,O.Z.F11,O.Z.F12].includes(n)}var Ft=function(e,r){var a=(0,t.useRef)(null),c=(0,t.useRef)(!1),l=e.prefixCls,m=e.open,p=e.mode,S=e.showSearch,I=e.tokenWithEnter,R=e.autoClearSearchValue,h=e.onSearch,y=e.onSearchSubmit,g=e.onToggleOpen,T=e.onInputKeyDown,d=e.domRef;t.useImperativeHandle(r,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var E=J(0),D=(0,v.Z)(E,2),k=D[0],z=D[1],pe=function(ee){var Q=ee.which;(Q===O.Z.UP||Q===O.Z.DOWN)&&ee.preventDefault(),T&&T(ee),Q===O.Z.ENTER&&p==="tags"&&!c.current&&!m&&(y==null||y(ee.target.value)),Ct(Q)&&g(!0)},ne=function(){z(!0)},H=(0,t.useRef)(null),me=function(ee){h(ee,!0,c.current)!==!1&&g(!0)},Y=function(){c.current=!0},q=function(ee){c.current=!1,p!=="combobox"&&me(ee.target.value)},ce=function(ee){var Q=ee.target.value;if(I&&H.current&&/[\r\n]/.test(H.current)){var te=H.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Q=Q.replace(te,H.current)}H.current=null,me(Q)},Ce=function(ee){var Q=ee.clipboardData,te=Q.getData("text");H.current=te},De=function(ee){var Q=ee.target;if(Q!==a.current){var te=document.body.style.msTouchAction!==void 0;te?setTimeout(function(){a.current.focus()}):a.current.focus()}},he=function(ee){var Q=k();ee.target!==a.current&&!Q&&p!=="combobox"&&ee.preventDefault(),(p!=="combobox"&&(!S||!Q)||!m)&&(m&&R!==!1&&h("",!0,!1),g())},ye={inputRef:a,onInputKeyDown:pe,onInputMouseDown:ne,onInputChange:ce,onInputPaste:Ce,onInputCompositionStart:Y,onInputCompositionEnd:q},Ie=p==="multiple"||p==="tags"?t.createElement(Lt,(0,ie.Z)({},e,ye)):t.createElement(At,(0,ie.Z)({},e,ye));return t.createElement("div",{ref:d,className:"".concat(l,"-selector"),onClick:De,onMouseDown:he},Ie)},yt=t.forwardRef(Ft);yt.displayName="Selector";var f=yt,$=i(2306),M=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],o=function(e){var r=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}}}},A=function(e,r){var a=e.prefixCls,c=e.disabled,l=e.visible,m=e.children,p=e.popupElement,S=e.containerWidth,I=e.animation,R=e.transitionName,h=e.dropdownStyle,y=e.dropdownClassName,g=e.direction,T=g===void 0?"ltr":g,d=e.placement,E=e.dropdownMatchSelectWidth,D=e.dropdownRender,k=e.dropdownAlign,z=e.getPopupContainer,pe=e.empty,ne=e.getTriggerDOMNode,H=e.onPopupVisibleChange,me=e.onPopupMouseEnter,Y=(0,s.Z)(e,M),q="".concat(a,"-dropdown"),ce=p;D&&(ce=D(p));var Ce=t.useMemo(function(){return o(E)},[E]),De=I?"".concat(q,"-").concat(I):R,he=t.useRef(null);t.useImperativeHandle(r,function(){return{getPopupElement:function(){return he.current}}});var ye=(0,N.Z)({minWidth:S},h);return typeof E=="number"?ye.width=E:E&&(ye.width=S),t.createElement($.Z,(0,ie.Z)({},Y,{showAction:H?["click"]:[],hideAction:H?["click"]:[],popupPlacement:d||(T==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ce,prefixCls:q,popupTransitionName:De,popup:t.createElement("div",{ref:he,onMouseEnter:me},ce),popupAlign:k,popupVisible:l,getPopupContainer:z,popupClassName:Re()(y,(0,U.Z)({},"".concat(q,"-empty"),pe)),popupStyle:ye,getTriggerDOMNode:ne,onPopupVisibleChange:H}),m)},C=t.forwardRef(A);C.displayName="SelectTrigger";var L=C,u=i(99809);function b(n,e){var r=n.key,a;return"value"in n&&(a=n.value),r!=null?r:a!==void 0?a:"rc-index-key-".concat(e)}function P(n,e){var r=n||{},a=r.label,c=r.value,l=r.options;return{label:a||(e?"children":"label"),value:c||"value",options:l||"options"}}function W(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.fieldNames,a=e.childrenAsData,c=[],l=P(r,!1),m=l.label,p=l.value,S=l.options;function I(R,h){R.forEach(function(y){var g=y[m];if(h||!(S in y)){var T=y[p];c.push({key:b(y,c.length),groupOption:h,data:y,label:g,value:T})}else{var d=g;d===void 0&&a&&(d=y.label),c.push({key:b(y,c.length),group:!0,data:y,label:d}),I(y[S],!0)}})}return I(n,!1),c}function F(n){var e=(0,N.Z)({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,de.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function re(n,e){if(!e||!e.length)return null;var r=!1;function a(l,m){var p=(0,u.Z)(m),S=p[0],I=p.slice(1);if(!S)return[l];var R=l.split(S);return r=r||R.length>1,R.reduce(function(h,y){return[].concat((0,oe.Z)(h),(0,oe.Z)(a(y,I)))},[]).filter(function(h){return h})}var c=a(n,e);return r?c:null}var ue=["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"],ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ae(n){return n==="tags"||n==="multiple"}var _e=t.forwardRef(function(n,e){var r,a,c=n.id,l=n.prefixCls,m=n.className,p=n.showSearch,S=n.tagRender,I=n.direction,R=n.omitDomProps,h=n.displayValues,y=n.onDisplayValuesChange,g=n.emptyOptions,T=n.notFoundContent,d=T===void 0?"Not Found":T,E=n.onClear,D=n.mode,k=n.disabled,z=n.loading,pe=n.getInputElement,ne=n.getRawInputElement,H=n.open,me=n.defaultOpen,Y=n.onDropdownVisibleChange,q=n.activeValue,ce=n.onActiveValueChange,Ce=n.activeDescendantId,De=n.searchValue,he=n.autoClearSearchValue,ye=n.onSearch,Ie=n.onSearchSplit,X=n.tokenSeparators,ee=n.allowClear,Q=n.showArrow,te=n.inputIcon,qe=n.clearIcon,Ue=n.OptionList,Wn=n.animation,Ze=n.transitionName,G=n.dropdownStyle,x=n.dropdownClassName,_=n.dropdownMatchSelectWidth,se=n.dropdownRender,ae=n.dropdownAlign,le=n.placement,Pe=n.getPopupContainer,We=n.showAction,mn=We===void 0?[]:We,Se=n.onFocus,Fe=n.onBlur,Te=n.onKeyUp,en=n.onKeyDown,on=n.onMouseDown,cn=(0,s.Z)(n,ue),ke=Ae(D),fe=(p!==void 0?p:ke)||D==="combobox",On=(0,N.Z)({},cn);ge.forEach(function(B){delete On[B]}),R==null||R.forEach(function(B){delete On[B]});var an=t.useState(!1),nn=(0,v.Z)(an,2),kn=nn[0],Jn=nn[1];t.useEffect(function(){Jn((0,Ln.Z)())},[]);var Cn=t.useRef(null),hn=t.useRef(null),Pn=t.useRef(null),gn=t.useRef(null),sn=t.useRef(null),zt=Ye(),ut=(0,v.Z)(zt,3),gt=ut[0],Bn=ut[1],jt=ut[2];t.useImperativeHandle(e,function(){var B,V;return{focus:(B=gn.current)===null||B===void 0?void 0:B.focus,blur:(V=gn.current)===null||V===void 0?void 0:V.blur,scrollTo:function(tn){var Oe;return(Oe=sn.current)===null||Oe===void 0?void 0:Oe.scrollTo(tn)}}});var fn=t.useMemo(function(){var B;if(D!=="combobox")return De;var V=(B=h[0])===null||B===void 0?void 0:B.value;return typeof V=="string"||typeof V=="number"?String(V):""},[De,D,h]),xt=D==="combobox"&&typeof pe=="function"&&pe()||null,yn=typeof ne=="function"&&ne(),Zt=(0,$e.x1)(hn,yn==null||(r=yn.props)===null||r===void 0?void 0:r.ref),Ot=(0,we.Z)(void 0,{defaultValue:me,value:H}),qn=(0,v.Z)(Ot,2),pt=qn[0],St=qn[1],Ne=pt,Pt=!d&&g;(k||Pt&&Ne&&D==="combobox")&&(Ne=!1);var $n=Pt?!1:Ne,w=t.useCallback(function(B){var V=B!==void 0?B:!Ne;k||(St(V),Ne!==V&&(Y==null||Y(V)))},[k,Ne,St,Y]),K=t.useMemo(function(){return(X||[]).some(function(B){return[`
  2. `,`\r
  3. `].includes(B)})},[X]),Z=function(V,je,tn){var Oe=!0,rn=V;ce==null||ce(null);var pn=tn?null:re(V,X);return D!=="combobox"&&pn&&(rn="",Ie==null||Ie(pn),w(!1),Oe=!1),ye&&fn!==rn&&ye(rn,{source:je?"typing":"effect"}),Oe},j=function(V){!V||!V.trim()||ye(V,{source:"submit"})};t.useEffect(function(){!Ne&&!ke&&D!=="combobox"&&Z("",!1,!1)},[Ne]),t.useEffect(function(){pt&&k&&St(!1),k&&Bn(!1)},[k]);var ve=J(),be=(0,v.Z)(ve,2),Tn=be[0],wn=be[1],et=function(V){var je=Tn(),tn=V.which;if(tn===O.Z.ENTER&&(D!=="combobox"&&V.preventDefault(),Ne||w(!0)),wn(!!fn),tn===O.Z.BACKSPACE&&!je&&ke&&!fn&&h.length){for(var Oe=(0,oe.Z)(h),rn=null,pn=Oe.length-1;pn>=0;pn-=1){var bt=Oe[pn];if(!bt.disabled){Oe.splice(pn,1),rn=bt;break}}rn&&y(Oe,{type:"remove",values:[rn]})}for(var jn=arguments.length,st=new Array(jn>1?jn-1:0),Gn=1;Gn<jn;Gn++)st[Gn-1]=arguments[Gn];if(Ne&&sn.current){var ao;(ao=sn.current).onKeyDown.apply(ao,[V].concat(st))}en==null||en.apply(void 0,[V].concat(st))},Be=function(V){for(var je=arguments.length,tn=new Array(je>1?je-1:0),Oe=1;Oe<je;Oe++)tn[Oe-1]=arguments[Oe];if(Ne&&sn.current){var rn;(rn=sn.current).onKeyUp.apply(rn,[V].concat(tn))}Te==null||Te.apply(void 0,[V].concat(tn))},zn=function(V){var je=h.filter(function(tn){return tn!==V});y(je,{type:"remove",values:[V]})},ct=t.useRef(!1),Gt=function(){Bn(!0),k||(Se&&!ct.current&&Se.apply(void 0,arguments),mn.includes("focus")&&w(!0)),ct.current=!0},Xt=function(){Bn(!1,function(){ct.current=!1,w(!1)}),!k&&(fn&&(D==="tags"?ye(fn,{source:"submit"}):D==="multiple"&&ye("",{source:"blur"})),Fe&&Fe.apply(void 0,arguments))},Mn=[];t.useEffect(function(){return function(){Mn.forEach(function(B){return clearTimeout(B)}),Mn.splice(0,Mn.length)}},[]);var Nn=function(V){var je,tn=V.target,Oe=(je=Pn.current)===null||je===void 0?void 0:je.getPopupElement();if(Oe&&Oe.contains(tn)){var rn=setTimeout(function(){var st=Mn.indexOf(rn);if(st!==-1&&Mn.splice(st,1),jt(),!kn&&!Oe.contains(document.activeElement)){var Gn;(Gn=gn.current)===null||Gn===void 0||Gn.focus()}});Mn.push(rn)}for(var pn=arguments.length,bt=new Array(pn>1?pn-1:0),jn=1;jn<pn;jn++)bt[jn-1]=arguments[jn];on==null||on.apply(void 0,[V].concat(bt))},ro=t.useState(null),Qt=(0,v.Z)(ro,2),Jt=Qt[0],lo=Qt[1],io=t.useState({}),uo=(0,v.Z)(io,2),co=uo[1];function so(){co({})}(0,He.Z)(function(){if($n){var B,V=Math.ceil((B=Cn.current)===null||B===void 0?void 0:B.offsetWidth);Jt!==V&&!Number.isNaN(V)&&lo(V)}},[$n]);var qt;yn&&(qt=function(V){w(V)}),Ve(function(){var B;return[Cn.current,(B=Pn.current)===null||B===void 0?void 0:B.getPopupElement()]},$n,w,!!yn);var fo=t.useMemo(function(){return(0,N.Z)((0,N.Z)({},n),{},{notFoundContent:d,open:Ne,triggerOpen:$n,id:c,showSearch:fe,multiple:ke,toggleOpen:w})},[n,d,$n,Ne,c,fe,ke,w]),eo=Q!==void 0?Q:z||!ke&&D!=="combobox",no;eo&&(no=t.createElement(ln,{className:Re()("".concat(l,"-arrow"),(0,U.Z)({},"".concat(l,"-arrow-loading"),z)),customizeIcon:te,customizeIconProps:{loading:z,searchValue:fn,open:Ne,focused:gt,showSearch:fe}}));var to,vo=function(){var V;E==null||E(),(V=gn.current)===null||V===void 0||V.focus(),y([],{type:"clear",values:h}),Z("",!1,!1)};!k&&ee&&(h.length||fn)&&!(D==="combobox"&&fn==="")&&(to=t.createElement(ln,{className:"".concat(l,"-clear"),onMouseDown:vo,customizeIcon:qe},"\xD7"));var mo=t.createElement(Ue,{ref:sn}),ho=Re()(l,m,(a={},(0,U.Z)(a,"".concat(l,"-focused"),gt),(0,U.Z)(a,"".concat(l,"-multiple"),ke),(0,U.Z)(a,"".concat(l,"-single"),!ke),(0,U.Z)(a,"".concat(l,"-allow-clear"),ee),(0,U.Z)(a,"".concat(l,"-show-arrow"),eo),(0,U.Z)(a,"".concat(l,"-disabled"),k),(0,U.Z)(a,"".concat(l,"-loading"),z),(0,U.Z)(a,"".concat(l,"-open"),Ne),(0,U.Z)(a,"".concat(l,"-customize-input"),xt),(0,U.Z)(a,"".concat(l,"-show-search"),fe),a)),oo=t.createElement(L,{ref:Pn,disabled:k,prefixCls:l,visible:$n,popupElement:mo,containerWidth:Jt,animation:Wn,transitionName:Ze,dropdownStyle:G,dropdownClassName:x,direction:I,dropdownMatchSelectWidth:_,dropdownRender:se,dropdownAlign:ae,placement:le,getPopupContainer:Pe,empty:g,getTriggerDOMNode:function(){return hn.current},onPopupVisibleChange:qt,onPopupMouseEnter:so},yn?t.cloneElement(yn,{ref:Zt}):t.createElement(f,(0,ie.Z)({},n,{domRef:hn,prefixCls:l,inputElement:xt,ref:gn,id:c,showSearch:fe,autoClearSearchValue:he,mode:D,activeDescendantId:Ce,tagRender:S,values:h,open:Ne,onToggleOpen:w,activeValue:q,searchValue:fn,onSearch:Z,onSearchSubmit:j,onRemove:zn,tokenWithEnter:K}))),Yt;return yn?Yt=oo:Yt=t.createElement("div",(0,ie.Z)({className:ho},On,{ref:Cn,onMouseDown:Nn,onKeyDown:et,onKeyUp:Be,onFocus:Gt,onBlur:Xt}),gt&&!Ne&&t.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(h.map(function(B){var V=B.label,je=B.value;return["number","string"].includes((0,Ee.Z)(V))?V:je}).join(", "))),oo,no,to),t.createElement(Ke.Provider,{value:fo},Yt)}),En=_e,Dn=function(n,e){var r=t.useRef({values:new Map,options:new Map}),a=t.useMemo(function(){var l=r.current,m=l.values,p=l.options,S=n.map(function(h){if(h.label===void 0){var y;return(0,N.Z)((0,N.Z)({},h),{},{label:(y=m.get(h.value))===null||y===void 0?void 0:y.label})}return h}),I=new Map,R=new Map;return S.forEach(function(h){I.set(h.value,h),R.set(h.value,e.get(h.value)||p.get(h.value))}),r.current.values=I,r.current.options=R,S},[n,e]),c=t.useCallback(function(l){return e.get(l)||r.current.options.get(l)},[e]);return[a,c]};function Hn(n,e){return An(n).join("").toUpperCase().includes(e)}var Xe=function(n,e,r,a,c){return t.useMemo(function(){if(!r||a===!1)return n;var l=e.options,m=e.label,p=e.value,S=[],I=typeof a=="function",R=r.toUpperCase(),h=I?a:function(g,T){return c?Hn(T[c],R):T[l]?Hn(T[m!=="children"?m:"label"],R):Hn(T[p],R)},y=I?function(g){return F(g)}:function(g){return g};return n.forEach(function(g){if(g[l]){var T=h(r,y(g));if(T)S.push(g);else{var d=g[l].filter(function(E){return h(r,y(E))});d.length&&S.push((0,N.Z)((0,N.Z)({},g),{},(0,U.Z)({},l,d)))}return}h(r,y(g))&&S.push(g)}),S},[n,a,c,r,e])},tt=i(88708),ot=i(50344),xn=["children","value"],Qe=["children"];function dt(n){var e=n,r=e.key,a=e.props,c=a.children,l=a.value,m=(0,s.Z)(a,xn);return(0,N.Z)({key:r,value:l!==void 0?l:r,children:c},m)}function Zn(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ot.Z)(n).map(function(r,a){if(!t.isValidElement(r)||!r.type)return null;var c=r,l=c.type.isSelectOptGroup,m=c.key,p=c.props,S=p.children,I=(0,s.Z)(p,Qe);return e||!l?dt(r):(0,N.Z)((0,N.Z)({key:"__RC_SELECT_GRP__".concat(m===null?a:m,"__"),label:m},I),{},{options:Zn(S)})}).filter(function(r){return r})}function at(n,e,r,a,c){return t.useMemo(function(){var l=n,m=!n;m&&(l=Zn(e));var p=new Map,S=new Map,I=function(y,g,T){T&&typeof T=="string"&&y.set(g[T],g)};function R(h){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<h.length;g+=1){var T=h[g];!T[r.options]||y?(p.set(T[r.value],T),I(S,T,r.label),I(S,T,a),I(S,T,c)):R(T[r.options],!0)}}return R(l),{options:l,valueOptions:p,labelOptions:S}},[n,e,r,a,c])}function Kn(n){var e=t.useRef();e.current=n;var r=t.useCallback(function(){return e.current.apply(e,arguments)},[]);return r}var vn=function(){return null};vn.isSelectOptGroup=!0;var Xn=vn,xe=function(){return null};xe.isSelectOption=!0;var Je=xe,wt=i(98423),Mt=i(56982),Qn=i(7606);function Ht(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rt=t.createContext(null),vt=rt,Kt=["disabled","title","children","style","className"];function It(n){return typeof n=="string"||typeof n=="number"}var Ut=function(e,r){var a=Me(),c=a.prefixCls,l=a.id,m=a.open,p=a.multiple,S=a.mode,I=a.searchValue,R=a.toggleOpen,h=a.notFoundContent,y=a.onPopupScroll,g=t.useContext(vt),T=g.flattenOptions,d=g.onActiveValue,E=g.defaultActiveFirstOption,D=g.onSelect,k=g.menuItemSelectedIcon,z=g.rawValues,pe=g.fieldNames,ne=g.virtual,H=g.listHeight,me=g.listItemHeight,Y="".concat(c,"-item"),q=(0,Mt.Z)(function(){return T},[m,T],function(G,x){return x[0]&&G[1]!==x[1]}),ce=t.useRef(null),Ce=function(x){x.preventDefault()},De=function(x){ce.current&&ce.current.scrollTo(typeof x=="number"?{index:x}:x)},he=function(x){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,se=q.length,ae=0;ae<se;ae+=1){var le=(x+ae*_+se)%se,Pe=q[le],We=Pe.group,mn=Pe.data;if(!We&&!mn.disabled)return le}return-1},ye=t.useState(function(){return he(0)}),Ie=(0,v.Z)(ye,2),X=Ie[0],ee=Ie[1],Q=function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ee(x);var se={source:_?"keyboard":"mouse"},ae=q[x];if(!ae){d(null,-1,se);return}d(ae.value,x,se)};(0,t.useEffect)(function(){Q(E!==!1?he(0):-1)},[q.length,I]);var te=t.useCallback(function(G){return z.has(G)&&S!=="combobox"},[S,(0,oe.Z)(z).toString(),z.size]);(0,t.useEffect)(function(){var G=setTimeout(function(){if(!p&&m&&z.size===1){var _=Array.from(z)[0],se=q.findIndex(function(ae){var le=ae.data;return le.value===_});se!==-1&&(Q(se),De(se))}});if(m){var x;(x=ce.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(G)}},[m,I]);var qe=function(x){x!==void 0&&D(x,{selected:!z.has(x)}),p||R(!1)};if(t.useImperativeHandle(r,function(){return{onKeyDown:function(x){var _=x.which,se=x.ctrlKey;switch(_){case O.Z.N:case O.Z.P:case O.Z.UP:case O.Z.DOWN:{var ae=0;if(_===O.Z.UP?ae=-1:_===O.Z.DOWN?ae=1:Ht()&&se&&(_===O.Z.N?ae=1:_===O.Z.P&&(ae=-1)),ae!==0){var le=he(X+ae,ae);De(le),Q(le,!0)}break}case O.Z.ENTER:{var Pe=q[X];Pe&&!Pe.data.disabled?qe(Pe.value):qe(void 0),m&&x.preventDefault();break}case O.Z.ESC:R(!1),m&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){De(x)}}}),q.length===0)return t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(Y,"-empty"),onMouseDown:Ce},h);var Ue=Object.keys(pe).map(function(G){return pe[G]}),Wn=function(x){return x.label},Ze=function(x){var _=q[x];if(!_)return null;var se=_.data||{},ae=se.value,le=_.group,Pe=(0,ze.Z)(se,!0),We=Wn(_);return _?t.createElement("div",(0,ie.Z)({"aria-label":typeof We=="string"&&!le?We:null},Pe,{key:x,role:le?"presentation":"option",id:"".concat(l,"_list_").concat(x),"aria-selected":te(ae)}),ae):null};return t.createElement(t.Fragment,null,t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ze(X-1),Ze(X),Ze(X+1)),t.createElement(Qn.Z,{itemKey:"key",ref:ce,data:q,height:H,itemHeight:me,fullHeight:!1,onMouseDown:Ce,onScroll:y,virtual:ne},function(G,x){var _,se=G.group,ae=G.groupOption,le=G.data,Pe=G.label,We=G.value,mn=le.key;if(se){var Se,Fe=(Se=le.title)!==null&&Se!==void 0?Se:It(Pe)?Pe.toString():void 0;return t.createElement("div",{className:Re()(Y,"".concat(Y,"-group")),title:Fe},Pe!==void 0?Pe:mn)}var Te=le.disabled,en=le.title,on=le.children,cn=le.style,ke=le.className,fe=(0,s.Z)(le,Kt),On=(0,wt.Z)(fe,Ue),an=te(We),nn="".concat(Y,"-option"),kn=Re()(Y,nn,ke,(_={},(0,U.Z)(_,"".concat(nn,"-grouped"),ae),(0,U.Z)(_,"".concat(nn,"-active"),X===x&&!Te),(0,U.Z)(_,"".concat(nn,"-disabled"),Te),(0,U.Z)(_,"".concat(nn,"-selected"),an),_)),Jn=Wn(G),Cn=!k||typeof k=="function"||an,hn=typeof Jn=="number"?Jn:Jn||We,Pn=It(hn)?hn.toString():void 0;return en!==void 0&&(Pn=en),t.createElement("div",(0,ie.Z)({},(0,ze.Z)(On),{"aria-selected":an,className:kn,title:Pn,onMouseMove:function(){X===x||Te||Q(x)},onClick:function(){Te||qe(We)},style:cn}),t.createElement("div",{className:"".concat(nn,"-content")},hn),t.isValidElement(k)||an,Cn&&t.createElement(ln,{className:"".concat(Y,"-option-state"),customizeIcon:k,customizeIconProps:{isSelected:an}},an?"\u2713":null))}))},Rt=t.forwardRef(Ut);Rt.displayName="OptionList";var Wt=Rt;function mt(n){var e=n.mode,r=n.options,a=n.children,c=n.backfill,l=n.allowClear,m=n.placeholder,p=n.getInputElement,S=n.showSearch,I=n.onSearch,R=n.defaultOpen,h=n.autoFocus,y=n.labelInValue,g=n.value,T=n.inputValue,d=n.optionLabelProp,E=isMultiple(e),D=S!==void 0?S:E||e==="combobox",k=r||convertChildrenToData(a);if(warning(e!=="tags"||k.every(function(H){return!H.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var z=k.some(function(H){return H.options?H.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in H?H.value:H.key)=="number"});warning(!z,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!d,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!c,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!p,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!p||!l||!m,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!D&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!R||h,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var pe=toArray(g);warning(!y||pe.every(function(H){return _typeof(H)==="object"&&("key"in H||"value"in H)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!E||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(a){var ne=null;toNodeArray(a).some(function(H){if(!React.isValidElement(H)||!H.type)return!1;var me=H,Y=me.type;if(Y.isSelectOption)return!1;if(Y.isSelectOptGroup){var q=toNodeArray(H.props.children).every(function(ce){return!React.isValidElement(ce)||!H.type||ce.type.isSelectOption?!0:(ne=ce.type,!1)});return!q}return ne=Y,!0}),ne&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ne.displayName||ne.name||ne,"`.")),warning(T===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _t(n,e){if(n){var r=function a(c){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<c.length;m++){var p=c[m];if(p[e==null?void 0:e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!l&&Array.isArray(p[e==null?void 0:e.options])&&a(p[e==null?void 0:e.options],!0))break}};r(n)}}var kt=null,Dt=["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"],Bt=["inputValue"];function lt(n){return!n||(0,Ee.Z)(n)!=="object"}var ht=t.forwardRef(function(n,e){var r=n.id,a=n.mode,c=n.prefixCls,l=c===void 0?"rc-select":c,m=n.backfill,p=n.fieldNames,S=n.inputValue,I=n.searchValue,R=n.onSearch,h=n.autoClearSearchValue,y=h===void 0?!0:h,g=n.onSelect,T=n.onDeselect,d=n.dropdownMatchSelectWidth,E=d===void 0?!0:d,D=n.filterOption,k=n.filterSort,z=n.optionFilterProp,pe=n.optionLabelProp,ne=n.options,H=n.children,me=n.defaultActiveFirstOption,Y=n.menuItemSelectedIcon,q=n.virtual,ce=n.listHeight,Ce=ce===void 0?200:ce,De=n.listItemHeight,he=De===void 0?20:De,ye=n.value,Ie=n.defaultValue,X=n.labelInValue,ee=n.onChange,Q=(0,s.Z)(n,Dt),te=(0,tt.ZP)(r),qe=Ae(a),Ue=!!(!ne&&H),Wn=t.useMemo(function(){return D===void 0&&a==="combobox"?!1:D},[D,a]),Ze=t.useMemo(function(){return P(p,Ue)},[JSON.stringify(p),Ue]),G=(0,we.Z)("",{value:I!==void 0?I:S,postState:function(K){return K||""}}),x=(0,v.Z)(G,2),_=x[0],se=x[1],ae=at(ne,H,Ze,z,pe),le=ae.valueOptions,Pe=ae.labelOptions,We=ae.options,mn=t.useCallback(function(w){var K=An(w);return K.map(function(Z){var j,ve,be,Tn,wn;if(lt(Z))j=Z;else{var et;be=Z.key,ve=Z.label,j=(et=Z.value)!==null&&et!==void 0?et:be}var Be=le.get(j);if(Be){var zn;if(ve===void 0&&(ve=Be==null?void 0:Be[pe||Ze.label]),be===void 0&&(be=(zn=Be==null?void 0:Be.key)!==null&&zn!==void 0?zn:j),Tn=Be==null?void 0:Be.disabled,wn=Be==null?void 0:Be.title,!1)var ct}return{label:ve,value:j,key:be,disabled:Tn,title:wn}})},[Ze,pe,le]),Se=(0,we.Z)(Ie,{value:ye}),Fe=(0,v.Z)(Se,2),Te=Fe[0],en=Fe[1],on=t.useMemo(function(){var w,K=mn(Te);return a==="combobox"&&!((w=K[0])!==null&&w!==void 0&&w.value)?[]:K},[Te,mn,a]),cn=Dn(on,le),ke=(0,v.Z)(cn,2),fe=ke[0],On=ke[1],an=t.useMemo(function(){if(!a&&fe.length===1){var w=fe[0];if(w.value===null&&(w.label===null||w.label===void 0))return[]}return fe.map(function(K){var Z;return(0,N.Z)((0,N.Z)({},K),{},{label:(Z=K.label)!==null&&Z!==void 0?Z:K.value})})},[a,fe]),nn=t.useMemo(function(){return new Set(fe.map(function(w){return w.value}))},[fe]);t.useEffect(function(){if(a==="combobox"){var w,K=(w=fe[0])===null||w===void 0?void 0:w.value;se(Sn(K)?String(K):"")}},[fe]);var kn=Kn(function(w,K){var Z,j=K!=null?K:w;return Z={},(0,U.Z)(Z,Ze.value,w),(0,U.Z)(Z,Ze.label,j),Z}),Jn=t.useMemo(function(){if(a!=="tags")return We;var w=(0,oe.Z)(We),K=function(j){return le.has(j)};return(0,oe.Z)(fe).sort(function(Z,j){return Z.value<j.value?-1:1}).forEach(function(Z){var j=Z.value;K(j)||w.push(kn(j,Z.label))}),w},[kn,We,le,fe,a]),Cn=Xe(Jn,Ze,_,Wn,z),hn=t.useMemo(function(){return a!=="tags"||!_||Cn.some(function(w){return w[z||"value"]===_})?Cn:[kn(_)].concat((0,oe.Z)(Cn))},[kn,z,a,Cn,_]),Pn=t.useMemo(function(){return k?(0,oe.Z)(hn).sort(function(w,K){return k(w,K)}):hn},[hn,k]),gn=t.useMemo(function(){return W(Pn,{fieldNames:Ze,childrenAsData:Ue})},[Pn,Ze,Ue]),sn=function(K){var Z=mn(K);if(en(Z),ee&&(Z.length!==fe.length||Z.some(function(be,Tn){var wn;return((wn=fe[Tn])===null||wn===void 0?void 0:wn.value)!==(be==null?void 0:be.value)}))){var j=X?Z:Z.map(function(be){return be.value}),ve=Z.map(function(be){return F(On(be.value))});ee(qe?j:j[0],qe?ve:ve[0])}},zt=t.useState(null),ut=(0,v.Z)(zt,2),gt=ut[0],Bn=ut[1],jt=t.useState(0),fn=(0,v.Z)(jt,2),xt=fn[0],yn=fn[1],Zt=me!==void 0?me:a!=="combobox",Ot=t.useCallback(function(w,K){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=Z.source,ve=j===void 0?"keyboard":j;yn(K),m&&a==="combobox"&&w!==null&&ve==="keyboard"&&Bn(String(w))},[m,a]),qn=function(K,Z,j){var ve=function(){var Mn,Nn=On(K);return[X?{label:Nn==null?void 0:Nn[Ze.label],value:K,key:(Mn=Nn==null?void 0:Nn.key)!==null&&Mn!==void 0?Mn:K}:K,F(Nn)]};if(Z&&g){var be=ve(),Tn=(0,v.Z)(be,2),wn=Tn[0],et=Tn[1];g(wn,et)}else if(!Z&&T&&j!=="clear"){var Be=ve(),zn=(0,v.Z)(Be,2),ct=zn[0],Gt=zn[1];T(ct,Gt)}},pt=Kn(function(w,K){var Z,j=qe?K.selected:!0;j?Z=qe?[].concat((0,oe.Z)(fe),[w]):[w]:Z=fe.filter(function(ve){return ve.value!==w}),sn(Z),qn(w,j),a==="combobox"?Bn(""):(!Ae||y)&&(se(""),Bn(""))}),St=function(K,Z){sn(K);var j=Z.type,ve=Z.values;(j==="remove"||j==="clear")&&ve.forEach(function(be){qn(be.value,!1,j)})},Ne=function(K,Z){if(se(K),Bn(null),Z.source==="submit"){var j=(K||"").trim();if(j){var ve=Array.from(new Set([].concat((0,oe.Z)(nn),[j])));sn(ve),qn(j,!0),se("")}return}Z.source!=="blur"&&(a==="combobox"&&sn(K),R==null||R(K))},Pt=function(K){var Z=K;a!=="tags"&&(Z=K.map(function(ve){var be=Pe.get(ve);return be==null?void 0:be.value}).filter(function(ve){return ve!==void 0}));var j=Array.from(new Set([].concat((0,oe.Z)(nn),(0,oe.Z)(Z))));sn(j),j.forEach(function(ve){qn(ve,!0)})},$n=t.useMemo(function(){var w=q!==!1&&E!==!1;return(0,N.Z)((0,N.Z)({},ae),{},{flattenOptions:gn,onActiveValue:Ot,defaultActiveFirstOption:Zt,onSelect:pt,menuItemSelectedIcon:Y,rawValues:nn,fieldNames:Ze,virtual:w,listHeight:Ce,listItemHeight:he,childrenAsData:Ue})},[ae,gn,Ot,Zt,pt,Y,nn,Ze,q,E,Ce,he,Ue]);return t.createElement(vt.Provider,{value:$n},t.createElement(En,(0,ie.Z)({},Q,{id:te,prefixCls:l,ref:e,omitDomProps:Bt,mode:a,displayValues:an,onDisplayValuesChange:St,searchValue:_,onSearch:Ne,autoClearSearchValue:y,onSearchSplit:Pt,dropdownMatchSelectWidth:E,OptionList:Wt,emptyOptions:!gn.length,activeValue:gt,activeDescendantId:"".concat(te,"_list_").concat(xt)})))}),Un=ht;Un.Option=Je,Un.OptGroup=Xn;var it=Un,$t=it},64217:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return we}});var ie=i(28991),oe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
  4. alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
  5. charSet checked classID className colSpan cols content contentEditable contextMenu
  6. controls coords crossOrigin data dateTime default defer dir disabled download draggable
  7. encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
  8. headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
  9. is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
  10. mediaGroup method min minLength multiple muted name noValidate nonce open
  11. optimum pattern placeholder poster preload radioGroup readOnly rel required
  12. reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
  13. shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
  14. summary tabIndex target title type useMap value width wmode wrap`,U=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
  15. onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
  16. onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
  17. onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
  18. onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
  19. onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
  20. onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,N="".concat(oe," ").concat(U).split(/[\s\n]+/),v="aria-",s="data-";function Ee(de,t){return de.indexOf(t)===0}function we(de){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le;t===!1?Le={aria:!0,data:!0,attr:!0}:t===!0?Le={aria:!0}:Le=(0,ie.Z)({},t);var Re={};return Object.keys(de).forEach(function(He){(Le.aria&&(He==="role"||Ee(He,v))||Le.data&&Ee(He,s)||Le.attr&&N.includes(He))&&(Re[He]=de[He])}),Re}},7606:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return yt}});var ie=i(22122),oe=i(96156),U=i(28991),N=i(28481),v=i(81253),s=i(67294),Ee=i(94184),we=i.n(Ee),de=i(48717),t=s.forwardRef(function(f,$){var M=f.height,o=f.offset,A=f.children,C=f.prefixCls,L=f.onInnerResize,u=f.innerProps,b={},P={display:"flex",flexDirection:"column"};return o!==void 0&&(b={height:M,position:"relative",overflow:"hidden"},P=(0,U.Z)((0,U.Z)({},P),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),s.createElement("div",{style:b},s.createElement(de.Z,{onResize:function(F){var re=F.offsetHeight;re&&L&&L()}},s.createElement("div",(0,ie.Z)({style:P,className:we()((0,oe.Z)({},"".concat(C,"-holder-inner"),C)),ref:$},u),A)))});t.displayName="Filler";var Le=t,Re=i(6610),He=i(5991),Ln=i(10379),O=i(44144),$e=i(75164),Ke=20;function Me(f){return"touches"in f?f.touches[0].pageY:f.pageY}var Ye=function(f){(0,Ln.Z)(M,f);var $=(0,O.Z)(M);function M(){var o;(0,Re.Z)(this,M);for(var A=arguments.length,C=new Array(A),L=0;L<A;L++)C[L]=arguments[L];return o=$.call.apply($,[this].concat(C)),o.moveRaf=null,o.scrollbarRef=s.createRef(),o.thumbRef=s.createRef(),o.visibleTimeout=null,o.state={dragging:!1,pageY:null,startTop:null,visible:!1},o.delayHidden=function(){clearTimeout(o.visibleTimeout),o.setState({visible:!0}),o.visibleTimeout=setTimeout(function(){o.setState({visible:!1})},2e3)},o.onScrollbarTouchStart=function(u){u.preventDefault()},o.onContainerMouseDown=function(u){u.stopPropagation(),u.preventDefault()},o.patchEvents=function(){window.addEventListener("mousemove",o.onMouseMove),window.addEventListener("mouseup",o.onMouseUp),o.thumbRef.current.addEventListener("touchmove",o.onMouseMove),o.thumbRef.current.addEventListener("touchend",o.onMouseUp)},o.removeEvents=function(){var u;window.removeEventListener("mousemove",o.onMouseMove),window.removeEventListener("mouseup",o.onMouseUp),(u=o.scrollbarRef.current)===null||u===void 0||u.removeEventListener("touchstart",o.onScrollbarTouchStart),o.thumbRef.current&&(o.thumbRef.current.removeEventListener("touchstart",o.onMouseDown),o.thumbRef.current.removeEventListener("touchmove",o.onMouseMove),o.thumbRef.current.removeEventListener("touchend",o.onMouseUp)),$e.Z.cancel(o.moveRaf)},o.onMouseDown=function(u){var b=o.props.onStartMove;o.setState({dragging:!0,pageY:Me(u),startTop:o.getTop()}),b(),o.patchEvents(),u.stopPropagation(),u.preventDefault()},o.onMouseMove=function(u){var b=o.state,P=b.dragging,W=b.pageY,F=b.startTop,re=o.props.onScroll;if($e.Z.cancel(o.moveRaf),P){var ue=Me(u)-W,ge=F+ue,Ae=o.getEnableScrollRange(),_e=o.getEnableHeightRange(),En=_e?ge/_e:0,Dn=Math.ceil(En*Ae);o.moveRaf=(0,$e.Z)(function(){re(Dn)})}},o.onMouseUp=function(){var u=o.props.onStopMove;o.setState({dragging:!1}),u(),o.removeEvents()},o.getSpinHeight=function(){var u=o.props,b=u.height,P=u.count,W=b/P*10;return W=Math.max(W,Ke),W=Math.min(W,b/2),Math.floor(W)},o.getEnableScrollRange=function(){var u=o.props,b=u.scrollHeight,P=u.height;return b-P||0},o.getEnableHeightRange=function(){var u=o.props.height,b=o.getSpinHeight();return u-b||0},o.getTop=function(){var u=o.props.scrollTop,b=o.getEnableScrollRange(),P=o.getEnableHeightRange();if(u===0||b===0)return 0;var W=u/b;return W*P},o.showScroll=function(){var u=o.props,b=u.height,P=u.scrollHeight;return P>b},o}return(0,He.Z)(M,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(A){A.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var A=this.state,C=A.dragging,L=A.visible,u=this.props.prefixCls,b=this.getSpinHeight(),P=this.getTop(),W=this.showScroll(),F=W&&L;return s.createElement("div",{ref:this.scrollbarRef,className:we()("".concat(u,"-scrollbar"),(0,oe.Z)({},"".concat(u,"-scrollbar-show"),W)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:F?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},s.createElement("div",{ref:this.thumbRef,className:we()("".concat(u,"-scrollbar-thumb"),(0,oe.Z)({},"".concat(u,"-scrollbar-thumb-moving"),C)),style:{width:"100%",height:b,top:P,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),M}(s.Component);function J(f){var $=f.children,M=f.setRef,o=s.useCallback(function(A){M(A)},[]);return s.cloneElement($,{ref:o})}function Ve(f,$,M,o,A,C){var L=C.getKey;return f.slice($,M+1).map(function(u,b){var P=$+b,W=A(u,P,{}),F=L(u);return s.createElement(J,{key:F,setRef:function(ue){return o(u,ue)}},W)})}var ze=i(34203),In=function(){function f(){(0,Re.Z)(this,f),this.maps=void 0,this.maps=Object.create(null)}return(0,He.Z)(f,[{key:"set",value:function(M,o){this.maps[M]=o}},{key:"get",value:function(M){return this.maps[M]}}]),f}(),dn=In;function ln(f,$,M){var o=s.useState(0),A=(0,N.Z)(o,2),C=A[0],L=A[1],u=(0,s.useRef)(new Map),b=(0,s.useRef)(new dn),P=(0,s.useRef)();function W(){$e.Z.cancel(P.current)}function F(){W(),P.current=(0,$e.Z)(function(){u.current.forEach(function(ue,ge){if(ue&&ue.offsetParent){var Ae=(0,ze.Z)(ue),_e=Ae.offsetHeight;b.current.get(ge)!==_e&&b.current.set(ge,Ae.offsetHeight)}}),L(function(ue){return ue+1})})}function re(ue,ge){var Ae=f(ue),_e=u.current.get(Ae);ge?(u.current.set(Ae,ge),F()):u.current.delete(Ae),!_e!=!ge&&(ge?$==null||$(ue):M==null||M(ue))}return(0,s.useEffect)(function(){return W},[]),[re,F,b.current,C]}var Vn=i(90484);function un(f,$,M,o,A,C,L,u){var b=s.useRef();return function(P){if(P==null){u();return}if($e.Z.cancel(b.current),typeof P=="number")L(P);else if(P&&(0,Vn.Z)(P)==="object"){var W,F=P.align;"index"in P?W=P.index:W=$.findIndex(function(Ae){return A(Ae)===P.key});var re=P.offset,ue=re===void 0?0:re,ge=function Ae(_e,En){if(!(_e<0||!f.current)){var Dn=f.current.clientHeight,Hn=!1,Xe=En;if(Dn){for(var tt=En||F,ot=0,xn=0,Qe=0,dt=Math.min($.length,W),Zn=0;Zn<=dt;Zn+=1){var at=A($[Zn]);xn=ot;var Kn=M.get(at);Qe=xn+(Kn===void 0?o:Kn),ot=Qe,Zn===W&&Kn===void 0&&(Hn=!0)}var vn=null;switch(tt){case"top":vn=xn-ue;break;case"bottom":vn=Qe-Dn+ue;break;default:{var Xn=f.current.scrollTop,xe=Xn+Dn;xn<Xn?Xe="top":Qe>xe&&(Xe="bottom")}}vn!==null&&vn!==f.current.scrollTop&&L(vn)}b.current=(0,$e.Z)(function(){Hn&&C(),Ae(_e-1,Xe)},2)}};ge(3)}}}function _n(f,$,M,o){var A=M-f,C=$-M,L=Math.min(A,C)*2;if(o<=L){var u=Math.floor(o/2);return o%2?M+u+1:M-u}return A>C?M-(o-C):M+(o-A)}function An(f,$,M){var o=f.length,A=$.length,C,L;if(o===0&&A===0)return null;o<A?(C=f,L=$):(C=$,L=f);var u={__EMPTY_ITEM__:!0};function b(ge){return ge!==void 0?M(ge):u}for(var P=null,W=Math.abs(o-A)!==1,F=0;F<L.length;F+=1){var re=b(C[F]),ue=b(L[F]);if(re!==ue){P=F,W=W||re!==b(L[F+1]);break}}return P===null?null:{index:P,multiple:W}}function ft(f,$,M){var o=s.useState(f),A=(0,N.Z)(o,2),C=A[0],L=A[1],u=s.useState(null),b=(0,N.Z)(u,2),P=b[0],W=b[1];return s.useEffect(function(){var F=An(C||[],f||[],$);(F==null?void 0:F.index)!==void 0&&(M==null||M(F.index),W(f[F.index])),L(f)},[f]),[P]}var Fn=(typeof navigator=="undefined"?"undefined":(0,Vn.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Sn=Fn,bn=function(f,$){var M=(0,s.useRef)(!1),o=(0,s.useRef)(null);function A(){clearTimeout(o.current),M.current=!0,o.current=setTimeout(function(){M.current=!1},50)}var C=(0,s.useRef)({top:f,bottom:$});return C.current.top=f,C.current.bottom=$,function(L){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=L<0&&C.current.top||L>0&&C.current.bottom;return u&&b?(clearTimeout(o.current),M.current=!1):(!b||M.current)&&A(),!M.current&&b}};function nt(f,$,M,o){var A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u=(0,s.useRef)(!1),b=bn($,M);function P(F){if(!!f){$e.Z.cancel(C.current);var re=F.deltaY;A.current+=re,L.current=re,!b(re)&&(Sn||F.preventDefault(),C.current=(0,$e.Z)(function(){var ue=u.current?10:1;o(A.current*ue),A.current=0}))}}function W(F){!f||(u.current=F.detail===L.current)}return[P,W]}var Rn=i(8410),Tt=14/15;function Et(f,$,M){var o=(0,s.useRef)(!1),A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u,b=function(re){if(o.current){var ue=Math.ceil(re.touches[0].pageY),ge=A.current-ue;A.current=ue,M(ge)&&re.preventDefault(),clearInterval(L.current),L.current=setInterval(function(){ge*=Tt,(!M(ge,!0)||Math.abs(ge)<=.1)&&clearInterval(L.current)},16)}},P=function(){o.current=!1,u()},W=function(re){u(),re.touches.length===1&&!o.current&&(o.current=!0,A.current=Math.ceil(re.touches[0].pageY),C.current=re.target,C.current.addEventListener("touchmove",b),C.current.addEventListener("touchend",P))};u=function(){C.current&&(C.current.removeEventListener("touchmove",b),C.current.removeEventListener("touchend",P))},(0,Rn.Z)(function(){return f&&$.current.addEventListener("touchstart",W),function(){var F;(F=$.current)===null||F===void 0||F.removeEventListener("touchstart",W),u(),clearInterval(L.current)}},[f])}var Nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],Lt=[],Vt={overflowY:"auto",overflowAnchor:"none"};function At(f,$){var M=f.prefixCls,o=M===void 0?"rc-virtual-list":M,A=f.className,C=f.height,L=f.itemHeight,u=f.fullHeight,b=u===void 0?!0:u,P=f.style,W=f.data,F=f.children,re=f.itemKey,ue=f.virtual,ge=f.component,Ae=ge===void 0?"div":ge,_e=f.onScroll,En=f.onVisibleChange,Dn=f.innerProps,Hn=(0,v.Z)(f,Nt),Xe=!!(ue!==!1&&C&&L),tt=Xe&&W&&L*W.length>C,ot=(0,s.useState)(0),xn=(0,N.Z)(ot,2),Qe=xn[0],dt=xn[1],Zn=(0,s.useState)(!1),at=(0,N.Z)(Zn,2),Kn=at[0],vn=at[1],Xn=we()(o,A),xe=W||Lt,Je=(0,s.useRef)(),wt=(0,s.useRef)(),Mt=(0,s.useRef)(),Qn=s.useCallback(function(d){return typeof re=="function"?re(d):d==null?void 0:d[re]},[re]),Ht={getKey:Qn};function rt(d){dt(function(E){var D;typeof d=="function"?D=d(E):D=d;var k=r(D);return Je.current.scrollTop=k,k})}var vt=(0,s.useRef)({start:0,end:xe.length}),Kt=(0,s.useRef)(),It=ft(xe,Qn),Ut=(0,N.Z)(It,1),Rt=Ut[0];Kt.current=Rt;var Wt=ln(Qn,null,null),mt=(0,N.Z)(Wt,4),_t=mt[0],kt=mt[1],Dt=mt[2],Bt=mt[3],lt=s.useMemo(function(){if(!Xe)return{scrollHeight:void 0,start:0,end:xe.length-1,offset:void 0};if(!tt){var d;return{scrollHeight:((d=wt.current)===null||d===void 0?void 0:d.offsetHeight)||0,start:0,end:xe.length-1,offset:void 0}}for(var E=0,D,k,z,pe=xe.length,ne=0;ne<pe;ne+=1){var H=xe[ne],me=Qn(H),Y=Dt.get(me),q=E+(Y===void 0?L:Y);q>=Qe&&D===void 0&&(D=ne,k=E),q>Qe+C&&z===void 0&&(z=ne),E=q}return D===void 0&&(D=0,k=0,z=Math.ceil(C/L)),z===void 0&&(z=xe.length-1),z=Math.min(z+1,xe.length),{scrollHeight:E,start:D,end:z,offset:k}},[tt,Xe,Qe,xe,Bt,C]),ht=lt.scrollHeight,Un=lt.start,it=lt.end,$t=lt.offset;vt.current.start=Un,vt.current.end=it;var n=ht-C,e=(0,s.useRef)(n);e.current=n;function r(d){var E=d;return Number.isNaN(e.current)||(E=Math.min(E,e.current)),E=Math.max(E,0),E}var a=Qe<=0,c=Qe>=n,l=bn(a,c);function m(d){var E=d;rt(E)}function p(d){var E=d.currentTarget.scrollTop;E!==Qe&&rt(E),_e==null||_e(d)}var S=nt(Xe,a,c,function(d){rt(function(E){var D=E+d;return D})}),I=(0,N.Z)(S,2),R=I[0],h=I[1];Et(Xe,Je,function(d,E){return l(d,E)?!1:(R({preventDefault:function(){},deltaY:d}),!0)}),(0,Rn.Z)(function(){function d(E){Xe&&E.preventDefault()}return Je.current.addEventListener("wheel",R),Je.current.addEventListener("DOMMouseScroll",h),Je.current.addEventListener("MozMousePixelScroll",d),function(){Je.current&&(Je.current.removeEventListener("wheel",R),Je.current.removeEventListener("DOMMouseScroll",h),Je.current.removeEventListener("MozMousePixelScroll",d))}},[Xe]);var y=un(Je,xe,Dt,L,Qn,kt,rt,function(){var d;(d=Mt.current)===null||d===void 0||d.delayHidden()});s.useImperativeHandle($,function(){return{scrollTo:y}}),(0,Rn.Z)(function(){if(En){var d=xe.slice(Un,it+1);En(d,xe)}},[Un,it,xe]);var g=Ve(xe,Un,it,_t,F,Ht),T=null;return C&&(T=(0,U.Z)((0,oe.Z)({},b?"height":"maxHeight",C),Vt),Xe&&(T.overflowY="hidden",Kn&&(T.pointerEvents="none"))),s.createElement("div",(0,ie.Z)({style:(0,U.Z)((0,U.Z)({},P),{},{position:"relative"}),className:Xn},Hn),s.createElement(Ae,{className:"".concat(o,"-holder"),style:T,ref:Je,onScroll:p},s.createElement(Le,{prefixCls:o,height:ht,offset:$t,onInnerResize:kt,ref:wt,innerProps:Dn},g)),Xe&&s.createElement(Ye,{ref:Mt,prefixCls:o,scrollTop:Qe,height:C,scrollHeight:ht,count:xe.length,onScroll:m,onStartMove:function(){vn(!0)},onStopMove:function(){vn(!1)}}))}var Ct=s.forwardRef(At);Ct.displayName="List";var Ft=Ct,yt=Ft}}]);