mirror of
https://github.com/owncast/owncast.git
synced 2024-12-28 20:18:37 +03:00
1 line
No EOL
55 KiB
JavaScript
Vendored
1 line
No EOL
55 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6655],{35794:function(e,t,n){var o=n(67294),r=n(93565),a=n(66946);t.Z=function(e){return o.createElement(r.C,null,function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return o.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return o.createElement(a.Z,null)}})}},66946:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(4942),r=n(87462),a=n(93967),i=n.n(a),l=n(67294),u=n(93565),c=n(91130),s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},f=l.createElement(function(){var e=(0,l.useContext(u.E_).getPrefixCls)("empty-img-default");return l.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{className:"".concat(e,"-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"}),l.createElement("path",{className:"".concat(e,"-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)"}),l.createElement("path",{className:"".concat(e,"-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"}),l.createElement("path",{className:"".concat(e,"-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"})),l.createElement("path",{className:"".concat(e,"-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"}),l.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),d=l.createElement(function(){var e=(0,l.useContext(u.E_).getPrefixCls)("empty-img-simple");return l.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},l.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"}),l.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(e,"-path")}))))},null),p=function(e){var t=e.className,n=e.prefixCls,a=e.image,p=void 0===a?f:a,v=e.description,m=e.children,h=e.imageStyle,g=s(e,["className","prefixCls","image","description","children","imageStyle"]),b=l.useContext(u.E_),Z=b.getPrefixCls,E=b.direction;return l.createElement(c.Z,{componentName:"Empty"},function(e){var a=Z("empty",n),u=void 0!==v?v:e.description,c=null;return c="string"==typeof p?l.createElement("img",{alt:"string"==typeof u?u:"empty",src:p}):p,l.createElement("div",(0,r.Z)({className:i()(a,(0,o.Z)((0,o.Z)({},"".concat(a,"-normal"),p===d),"".concat(a,"-rtl"),"rtl"===E),t)},g),l.createElement("div",{className:"".concat(a,"-image"),style:h},c),u&&l.createElement("div",{className:"".concat(a,"-description")},u),m&&l.createElement("div",{className:"".concat(a,"-footer")},m))})};p.PRESENTED_IMAGE_DEFAULT=f,p.PRESENTED_IMAGE_SIMPLE=d;var v=p},16655:function(e,t,n){var o=n(4942),r=n(87462),a=n(93967),i=n.n(a),l=n(7752),u=n(25084),c=n(67294),s=n(93565),f=n(35794),d=n(71939),p=n(60474),v=n(30582),m=n(71775),h=n(9566),g=n(71579),b=n(59661),Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},E="SECRET_COMBOBOX_MODE_DO_NOT_USE",w=c.forwardRef(function(e,t){var n,a=e.prefixCls,w=e.bordered,y=e.className,S=e.getPopupContainer,C=e.dropdownClassName,x=e.popupClassName,M=e.listHeight,I=e.placement,N=e.listItemHeight,R=e.size,P=e.disabled,D=e.notFoundContent,O=e.status,T=e.showArrow,k=Z(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),V=c.useContext(s.E_),L=V.getPopupContainer,A=V.getPrefixCls,_=V.renderEmpty,H=V.direction,F=V.virtual,z=V.dropdownMatchSelectWidth,K=c.useContext(p.Z),W=A("select",a),j=A(),X=(0,b.ri)(W,H),Y=X.compactSize,B=X.compactItemClassnames,U=c.useMemo(function(){var e=k.mode;return"combobox"===e?void 0:e===E?"combobox":e},[k.mode]),G="multiple"===U||"tags"===U,Q=void 0!==T?T:k.loading||!(G||"combobox"===U),q=(0,c.useContext)(v.aM),J=q.status,$=q.hasFeedback,ee=q.isFormItemInput,et=q.feedbackIcon,en=(0,h.F)(J,O);n=void 0!==D?D:"combobox"===U?null:(_||f.Z)("Select");var eo=(0,g.Z)((0,r.Z)((0,r.Z)({},k),{multiple:G,hasFeedback:$,feedbackIcon:et,showArrow:Q,prefixCls:W})),er=eo.suffixIcon,ea=eo.itemIcon,ei=eo.removeIcon,el=eo.clearIcon,eu=(0,u.Z)(k,["suffixIcon","itemIcon"]),ec=i()(x||C,(0,o.Z)({},"".concat(W,"-dropdown-").concat(H),"rtl"===H)),es=Y||R||K,ef=c.useContext(d.Z),ed=i()((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(W,"-lg"),"large"===es),"".concat(W,"-sm"),"small"===es),"".concat(W,"-rtl"),"rtl"===H),"".concat(W,"-borderless"),!(void 0===w||w)),"".concat(W,"-in-form-item"),ee),(0,h.Z)(W,en,$),B,y);return c.createElement(l.ZP,(0,r.Z)({ref:t,virtual:F,dropdownMatchSelectWidth:z},eu,{transitionName:(0,m.mL)(j,(0,m.q0)(I),k.transitionName),listHeight:void 0===M?256:M,listItemHeight:void 0===N?32:N,mode:U,prefixCls:W,placement:void 0!==I?I:"rtl"===H?"bottomRight":"bottomLeft",direction:H,inputIcon:er,menuItemSelectedIcon:ea,removeIcon:ei,clearIcon:el,notFoundContent:n,className:ed,getPopupContainer:S||L,dropdownClassName:ec,showArrow:$||T,disabled:null!=P?P:ef}))});w.SECRET_COMBOBOX_MODE_DO_NOT_USE=E,w.Option=l.Wx,w.OptGroup=l.Xo,t.default=w},71579:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(88101),r=n(2856),a=n(33202),i=n(86274),l=n(7304),u=n(52866),c=n(67294);function s(e){var t=e.suffixIcon,n=e.clearIcon,s=e.menuItemSelectedIcon,f=e.removeIcon,d=e.loading,p=e.multiple,v=e.hasFeedback,m=e.prefixCls,h=e.showArrow,g=e.feedbackIcon,b=null!=n?n:c.createElement(r.Z,null),Z=function(e){return c.createElement(c.Fragment,null,!1!==h&&e,v&&g)},E=null;if(void 0!==t)E=Z(t);else if(d)E=Z(c.createElement(l.Z,{spin:!0}));else{var w="".concat(m,"-suffix");E=function(e){var t=e.open,n=e.showSearch;return t&&n?Z(c.createElement(u.Z,{className:w})):Z(c.createElement(i.Z,{className:w}))}}var y=null;return y=void 0!==s?s:p?c.createElement(o.Z,null):null,{clearIcon:b,suffixIcon:E,itemIcon:y,removeIcon:void 0!==f?f:c.createElement(a.Z,null)}}},88708:function(e,t,n){n.d(t,{ZP:function(){return u}});var o=n(97685),r=n(67294),a=n(90382),i=0,l=(0,a.Z)();function u(e){var t=r.useState(),n=(0,o.Z)(t,2),a=n[0],u=n[1];return r.useEffect(function(){var e;u("rc_select_".concat((l?(e=i,i+=1):e="TEST_OR_SSR",e)))},[]),e||a}},7752:function(e,t,n){n.d(t,{Ac:function(){return Y},Xo:function(){return et},Wx:function(){return eo},ZP:function(){return ev},lk:function(){return E}});var o=n(87462),r=n(74902),a=n(4942),i=n(1413),l=n(97685),u=n(45987),c=n(71002),s=n(54043),f=n(10341),d=n(67294),p=n(93967),v=n.n(p),m=n(14032),h=n(48880),g=n(28778),b=n(91463),Z=d.createContext(null);function E(){return d.useContext(Z)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);return d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var y=n(70132),S=n(39983),C=function(e){var t,n=e.className,o=e.customizeIcon,r=e.customizeIconProps,a=e.onMouseDown,i=e.onClick,l=e.children;return t="function"==typeof o?o(r):o,d.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:d.createElement("span",{className:v()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},l))},x=d.forwardRef(function(e,t){var n,o,r=e.prefixCls,a=e.id,l=e.inputElement,u=e.disabled,c=e.tabIndex,s=e.autoFocus,p=e.autoComplete,m=e.editable,h=e.activeDescendantId,g=e.value,Z=e.maxLength,E=e.onKeyDown,w=e.onMouseDown,y=e.onChange,S=e.onPaste,C=e.onCompositionStart,x=e.onCompositionEnd,M=e.open,I=e.attrs,N=l||d.createElement("input",null),R=N,P=R.ref,D=R.props,O=D.onKeyDown,T=D.onChange,k=D.onMouseDown,V=D.onCompositionStart,L=D.onCompositionEnd,A=D.style;return(0,f.Kp)(!("maxLength"in N.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),N=d.cloneElement(N,(0,i.Z)((0,i.Z)((0,i.Z)({type:"search"},D),{},{id:a,ref:(0,b.sQ)(t,P),disabled:u,tabIndex:c,autoComplete:p||"off",autoFocus:s,className:v()("".concat(r,"-selection-search-input"),null===(n=N)||void 0===n?void 0:null===(o=n.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":h},I),{},{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){E(e),O&&O(e)},onMouseDown:function(e){w(e),k&&k(e)},onChange:function(e){y(e),T&&T(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 I="undefined"!=typeof window&&window.document&&window.document.documentElement;function N(e){return["string","number"].includes((0,c.Z)(e))}function R(e){var t=void 0;return e&&(N(e.title)?t=e.title.toString():N(e.label)&&(t=e.label.toString())),t}function P(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var D=function(e){e.preventDefault(),e.stopPropagation()},O=function(e){var t,n,o=e.id,r=e.prefixCls,i=e.values,u=e.open,c=e.searchValue,s=e.autoClearSearchValue,f=e.inputRef,p=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,Z=e.autoComplete,E=e.activeDescendantId,w=e.tabIndex,M=e.removeIcon,N=e.maxTagCount,O=e.maxTagTextLength,T=e.maxTagPlaceholder,k=void 0===T?function(e){return"+ ".concat(e.length," ...")}:T,V=e.tagRender,L=e.onToggleOpen,A=e.onRemove,_=e.onInputChange,H=e.onInputPaste,F=e.onInputKeyDown,z=e.onInputMouseDown,K=e.onInputCompositionStart,W=e.onInputCompositionEnd,j=d.useRef(null),X=(0,d.useState)(0),Y=(0,l.Z)(X,2),B=Y[0],U=Y[1],G=(0,d.useState)(!1),Q=(0,l.Z)(G,2),q=Q[0],J=Q[1],$="".concat(r,"-selection"),ee=u||"multiple"===h&&!1===s||"tags"===h?c:"",et="tags"===h||"multiple"===h&&!1===s||g&&(u||q);function en(e,t,n,o,r){return d.createElement("span",{className:v()("".concat($,"-item"),(0,a.Z)({},"".concat($,"-item-disabled"),n)),title:R(e)},d.createElement("span",{className:"".concat($,"-item-content")},t),o&&d.createElement(C,{className:"".concat($,"-item-remove"),onMouseDown:D,onClick:r,customizeIcon:M},"\xd7"))}t=function(){U(j.current.scrollWidth)},n=[ee],I?d.useLayoutEffect(t,n):d.useEffect(t,n);var eo=d.createElement("div",{className:"".concat($,"-search"),style:{width:B},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},d.createElement(x,{ref:f,open:u,prefixCls:r,id:o,inputElement:null,disabled:m,autoFocus:b,autoComplete:Z,editable:et,activeDescendantId:E,value:ee,onKeyDown:F,onMouseDown:z,onChange:_,onPaste:H,onCompositionStart:K,onCompositionEnd:W,tabIndex:w,attrs:(0,y.Z)(e,!0)}),d.createElement("span",{ref:j,className:"".concat($,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),er=d.createElement(S.Z,{prefixCls:"".concat($,"-overflow"),data:i,renderItem:function(e){var t,n=e.disabled,o=e.label,r=e.value,a=!m&&!n,i=o;if("number"==typeof O&&("string"==typeof o||"number"==typeof o)){var l=String(i);l.length>O&&(i="".concat(l.slice(0,O),"..."))}var c=function(t){t&&t.stopPropagation(),A(e)};return"function"==typeof V?(t=i,d.createElement("span",{onMouseDown:function(e){D(e),L(!u)}},V({label:t,value:r,disabled:n,closable:a,onClose:c}))):en(e,i,n,a,c)},renderRest:function(e){var t="function"==typeof k?k(e):k;return en({title:t},t,!1)},suffix:eo,itemKey:P,maxCount:N});return d.createElement(d.Fragment,null,er,!i.length&&!ee&&d.createElement("span",{className:"".concat($,"-placeholder")},p))},T=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,i=e.autoFocus,u=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,Z=e.maxLength,E=e.onInputKeyDown,w=e.onInputMouseDown,S=e.onInputChange,C=e.onInputPaste,M=e.onInputCompositionStart,I=e.onInputCompositionEnd,N=d.useState(!1),P=(0,l.Z)(N,2),D=P[0],O=P[1],T="combobox"===s,k=T||h,V=p[0],L=g||"";T&&b&&!D&&(L=b),d.useEffect(function(){T&&O(!1)},[T,b]);var A=("combobox"===s||!!f||!!h)&&!!L,_=R(V);return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(x,{ref:r,prefixCls:n,id:o,open:f,inputElement:t,disabled:a,autoFocus:i,autoComplete:u,editable:k,activeDescendantId:c,value:L,onKeyDown:E,onMouseDown:w,onChange:function(e){O(!0),S(e)},onPaste:C,onCompositionStart:M,onCompositionEnd:I,tabIndex:m,attrs:(0,y.Z)(e,!0),maxLength:T?Z:void 0})),!T&&V?d.createElement("span",{className:"".concat(n,"-selection-item"),title:_,style:A?{visibility:"hidden"}:void 0},V.label):null,V?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},v))},k=d.forwardRef(function(e,t){var n=(0,d.useRef)(null),r=(0,d.useRef)(!1),a=e.prefixCls,i=e.open,u=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,m=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var Z=w(0),E=(0,l.Z)(Z,2),y=E[0],S=E[1],C=(0,d.useRef)(null),x=function(e){!1!==p(e,!0,r.current)&&m(!0)},M={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===g.Z.UP||t===g.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==g.Z.ENTER||"tags"!==u||r.current||i||null==v||v(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(t)||m(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(s&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");C.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==u&&x(e.target.value)}},I="multiple"===u||"tags"===u?d.createElement(O,(0,o.Z)({},e,M)):d.createElement(T,(0,o.Z)({},e,M));return d.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===u||e.preventDefault(),("combobox"===u||c&&t)&&i||(i&&!1!==f&&p("",!0,!1),m())}},I)});k.displayName="Selector";var V=n(79498),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 t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},_=d.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),l=e.children,c=e.popupElement,s=e.containerWidth,f=e.animation,p=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,b=e.placement,Z=e.dropdownMatchSelectWidth,E=e.dropdownRender,w=e.dropdownAlign,y=e.getPopupContainer,S=e.empty,C=e.getTriggerDOMNode,x=e.onPopupVisibleChange,M=e.onPopupMouseEnter,I=(0,u.Z)(e,L),N="".concat(n,"-dropdown"),R=c;E&&(R=E(c));var P=d.useMemo(function(){return A(Z)},[Z]),D=f?"".concat(N,"-").concat(f):p,O=d.useRef(null);d.useImperativeHandle(t,function(){return{getPopupElement:function(){return O.current}}});var T=(0,i.Z)({minWidth:s},m);return"number"==typeof Z?T.width=Z:Z&&(T.width=s),d.createElement(V.Z,(0,o.Z)({},I,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:b||("rtl"===(void 0===g?"ltr":g)?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:N,popupTransitionName:D,popup:d.createElement("div",{ref:O,onMouseEnter:M},R),popupAlign:w,popupVisible:r,getPopupContainer:y,popupClassName:v()(h,(0,a.Z)({},"".concat(N,"-empty"),S)),popupStyle:T,getTriggerDOMNode:C,onPopupVisibleChange:x}),l)});_.displayName="SelectTrigger";var H=n(84506);function F(e,t){var n,o=e.key;return("value"in e&&(n=e.value),null!=o)?o:void 0!==n?n:"rc-index-key-".concat(t)}function z(e,t){var n=e||{};return{label:n.label||(t?"children":"label"),value:n.value||"value",options:n.options||"options"}}function K(e){var t=(0,i.Z)({},e);return"props"in t||Object.defineProperty(t,"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`."),t}}),t}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"],j=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function X(e){return"tags"===e||"multiple"===e}var Y=d.forwardRef(function(e,t){var n,f,p,E,y,S,x,M,I,N=e.id,R=e.prefixCls,P=e.className,D=e.showSearch,O=e.tagRender,T=e.direction,V=e.omitDomProps,L=e.displayValues,A=e.onDisplayValuesChange,F=e.emptyOptions,z=e.notFoundContent,K=void 0===z?"Not Found":z,Y=e.onClear,B=e.mode,U=e.disabled,G=e.loading,Q=e.getInputElement,q=e.getRawInputElement,J=e.open,$=e.defaultOpen,ee=e.onDropdownVisibleChange,et=e.activeValue,en=e.onActiveValueChange,eo=e.activeDescendantId,er=e.searchValue,ea=e.autoClearSearchValue,ei=e.onSearch,el=e.onSearchSplit,eu=e.tokenSeparators,ec=e.allowClear,es=e.showArrow,ef=e.inputIcon,ed=e.clearIcon,ep=e.OptionList,ev=e.animation,em=e.transitionName,eh=e.dropdownStyle,eg=e.dropdownClassName,eb=e.dropdownMatchSelectWidth,eZ=e.dropdownRender,eE=e.dropdownAlign,ew=e.placement,ey=e.getPopupContainer,eS=e.showAction,eC=void 0===eS?[]:eS,ex=e.onFocus,eM=e.onBlur,eI=e.onKeyUp,eN=e.onKeyDown,eR=e.onMouseDown,eP=(0,u.Z)(e,W),eD=X(B),eO=(void 0!==D?D:eD)||"combobox"===B,eT=(0,i.Z)({},eP);j.forEach(function(e){delete eT[e]}),null==V||V.forEach(function(e){delete eT[e]});var ek=d.useState(!1),eV=(0,l.Z)(ek,2),eL=eV[0],eA=eV[1];d.useEffect(function(){eA((0,h.Z)())},[]);var e_=d.useRef(null),eH=d.useRef(null),eF=d.useRef(null),ez=d.useRef(null),eK=d.useRef(null),eW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=d.useState(!1),n=(0,l.Z)(t,2),o=n[0],r=n[1],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};return d.useEffect(function(){return i},[]),[o,function(t,n){i(),a.current=window.setTimeout(function(){r(t),n&&n()},e)},i]}(),ej=(0,l.Z)(eW,3),eX=ej[0],eY=ej[1],eB=ej[2];d.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ez.current)||void 0===e?void 0:e.focus,blur:null===(t=ez.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eK.current)||void 0===t?void 0:t.scrollTo(e)}}});var eU=d.useMemo(function(){if("combobox"!==B)return er;var e,t=null===(e=L[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[er,B,L]),eG="combobox"===B&&"function"==typeof Q&&Q()||null,eQ="function"==typeof q&&q(),eq=(0,b.x1)(eH,null==eQ?void 0:null===(E=eQ.props)||void 0===E?void 0:E.ref),eJ=(0,s.Z)(void 0,{defaultValue:$,value:J}),e$=(0,l.Z)(eJ,2),e0=e$[0],e1=e$[1],e2=e0,e4=!K&&F;(U||e4&&e2&&"combobox"===B)&&(e2=!1);var e3=!e4&&e2,e7=d.useCallback(function(e){var t=void 0!==e?e:!e2;U||(e1(t),e2!==t&&(null==ee||ee(t)))},[U,e2,e1,ee]),e5=d.useMemo(function(){return(eu||[]).some(function(e){return["\n","\r\n"].includes(e)})},[eu]),e6=function(e,t,n){var o=!0,a=e;null==en||en(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var a=(0,H.Z)(o),i=a[0],l=a.slice(1);if(!i)return[t];var u=t.split(i);return n=n||u.length>1,u.reduce(function(t,n){return[].concat((0,r.Z)(t),(0,r.Z)(e(n,l)))},[]).filter(function(e){return e})}(e,t);return n?o:null}(e,eu);return"combobox"!==B&&i&&(a="",null==el||el(i),e7(!1),o=!1),ei&&eU!==a&&ei(a,{source:t?"typing":"effect"}),o};d.useEffect(function(){e2||eD||"combobox"===B||e6("",!1,!1)},[e2]),d.useEffect(function(){e0&&U&&e1(!1),U&&eY(!1)},[U]);var e9=w(),e8=(0,l.Z)(e9,2),te=e8[0],tt=e8[1],tn=d.useRef(!1),to=[];d.useEffect(function(){return function(){to.forEach(function(e){return clearTimeout(e)}),to.splice(0,to.length)}},[]);var tr=d.useState(null),ta=(0,l.Z)(tr,2),ti=ta[0],tl=ta[1],tu=d.useState({}),tc=(0,l.Z)(tu,2)[1];(0,m.Z)(function(){if(e3){var e,t=Math.ceil(null===(e=e_.current)||void 0===e?void 0:e.offsetWidth);ti===t||Number.isNaN(t)||tl(t)}},[e3]),eQ&&(S=function(e){e7(e)}),n=function(){var e;return[e_.current,null===(e=eF.current)||void 0===e?void 0:e.getPopupElement()]},f=!!eQ,(p=d.useRef(null)).current={open:e3,triggerOpen:e7,customizedTrigger:f},d.useEffect(function(){function e(e){if(null===(t=p.current)||void 0===t||!t.customizedTrigger){var t,o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),p.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&p.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var ts=d.useMemo(function(){return(0,i.Z)((0,i.Z)({},e),{},{notFoundContent:K,open:e2,triggerOpen:e3,id:N,showSearch:eO,multiple:eD,toggleOpen:e7})},[e,K,e3,e2,N,eO,eD,e7]),tf=void 0!==es?es:G||!eD&&"combobox"!==B;tf&&(x=d.createElement(C,{className:v()("".concat(R,"-arrow"),(0,a.Z)({},"".concat(R,"-arrow-loading"),G)),customizeIcon:ef,customizeIconProps:{loading:G,searchValue:eU,open:e2,focused:eX,showSearch:eO}})),!U&&ec&&(L.length||eU)&&!("combobox"===B&&""===eU)&&(M=d.createElement(C,{className:"".concat(R,"-clear"),onMouseDown:function(){var e;null==Y||Y(),null===(e=ez.current)||void 0===e||e.focus(),A([],{type:"clear",values:L}),e6("",!1,!1)},customizeIcon:ed},"\xd7"));var td=d.createElement(ep,{ref:eK}),tp=v()(R,P,(y={},(0,a.Z)(y,"".concat(R,"-focused"),eX),(0,a.Z)(y,"".concat(R,"-multiple"),eD),(0,a.Z)(y,"".concat(R,"-single"),!eD),(0,a.Z)(y,"".concat(R,"-allow-clear"),ec),(0,a.Z)(y,"".concat(R,"-show-arrow"),tf),(0,a.Z)(y,"".concat(R,"-disabled"),U),(0,a.Z)(y,"".concat(R,"-loading"),G),(0,a.Z)(y,"".concat(R,"-open"),e2),(0,a.Z)(y,"".concat(R,"-customize-input"),eG),(0,a.Z)(y,"".concat(R,"-show-search"),eO),y)),tv=d.createElement(_,{ref:eF,disabled:U,prefixCls:R,visible:e3,popupElement:td,containerWidth:ti,animation:ev,transitionName:em,dropdownStyle:eh,dropdownClassName:eg,direction:T,dropdownMatchSelectWidth:eb,dropdownRender:eZ,dropdownAlign:eE,placement:ew,getPopupContainer:ey,empty:F,getTriggerDOMNode:function(){return eH.current},onPopupVisibleChange:S,onPopupMouseEnter:function(){tc({})}},eQ?d.cloneElement(eQ,{ref:eq}):d.createElement(k,(0,o.Z)({},e,{domRef:eH,prefixCls:R,inputElement:eG,ref:ez,id:N,showSearch:eO,autoClearSearchValue:ea,mode:B,activeDescendantId:eo,tagRender:O,values:L,open:e2,onToggleOpen:e7,activeValue:et,searchValue:eU,onSearch:e6,onSearchSubmit:function(e){e&&e.trim()&&ei(e,{source:"submit"})},onRemove:function(e){A(L.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:e5})));return I=eQ?tv:d.createElement("div",(0,o.Z)({className:tp},eT,{ref:e_,onMouseDown:function(e){var t,n=e.target,o=null===(t=eF.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=to.indexOf(r);-1!==t&&to.splice(t,1),eB(),eL||o.contains(document.activeElement)||null===(e=ez.current)||void 0===e||e.focus()});to.push(r)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];null==eR||eR.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=te(),o=e.which;if(o!==g.Z.ENTER||("combobox"!==B&&e.preventDefault(),e2||e7(!0)),tt(!!eU),o===g.Z.BACKSPACE&&!n&&eD&&!eU&&L.length){for(var a=(0,r.Z)(L),i=null,l=a.length-1;l>=0;l-=1){var u=a[l];if(!u.disabled){a.splice(l,1),i=u;break}}i&&A(a,{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&&eK.current&&(t=eK.current).onKeyDown.apply(t,[e].concat(s)),null==eN||eN.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var t,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e2&&eK.current&&(t=eK.current).onKeyUp.apply(t,[e].concat(o)),null==eI||eI.apply(void 0,[e].concat(o))},onFocus:function(){eY(!0),!U&&(ex&&!tn.current&&ex.apply(void 0,arguments),eC.includes("focus")&&e7(!0)),tn.current=!0},onBlur:function(){eY(!1,function(){tn.current=!1,e7(!1)}),!U&&(eU&&("tags"===B?ei(eU,{source:"submit"}):"multiple"===B&&ei("",{source:"blur"})),eM&&eM.apply(void 0,arguments))}}),eX&&!e2&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(L.map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,c.Z)(t))?t:n}).join(", "))),tv,x,M),d.createElement(Z.Provider,{value:ts},I)}),B=function(e,t){var n=d.useRef({values:new Map,options:new Map});return[d.useMemo(function(){var o=n.current,r=o.values,a=o.options,l=e.map(function(e){if(void 0===e.label){var t;return(0,i.Z)((0,i.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label})}return e}),u=new Map,c=new Map;return l.forEach(function(e){u.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=u,n.current.options=c,l},[e,t]),d.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function U(e,t){return M(e).join("").toUpperCase().includes(t)}var G=n(88708),Q=n(74533),q=["children","value"],J=["children"];function $(e){var t=d.useRef();return t.current=e,d.useCallback(function(){return t.current.apply(t,arguments)},[])}var ee=function(){return null};ee.isSelectOptGroup=!0;var et=ee,en=function(){return null};en.isSelectOption=!0;var eo=en,er=n(25084),ea=n(33325),ei=n(85344),el=d.createContext(null),eu=["disabled","title","children","style","className"];function ec(e){return"string"==typeof e||"number"==typeof e}var es=d.forwardRef(function(e,t){var n=E(),i=n.prefixCls,c=n.id,s=n.open,f=n.multiple,p=n.mode,m=n.searchValue,h=n.toggleOpen,b=n.notFoundContent,Z=n.onPopupScroll,w=d.useContext(el),S=w.flattenOptions,x=w.onActiveValue,M=w.defaultActiveFirstOption,I=w.onSelect,N=w.menuItemSelectedIcon,R=w.rawValues,P=w.fieldNames,D=w.virtual,O=w.listHeight,T=w.listItemHeight,k="".concat(i,"-item"),V=(0,ea.Z)(function(){return S},[s,S],function(e,t){return t[0]&&e[1]!==t[1]}),L=d.useRef(null),A=function(e){e.preventDefault()},_=function(e){L.current&&L.current.scrollTo("number"==typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=V.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,a=V[r],i=a.group,l=a.data;if(!i&&!l.disabled)return r}return -1},F=d.useState(function(){return H(0)}),z=(0,l.Z)(F,2),K=z[0],W=z[1],j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(e);var n={source:t?"keyboard":"mouse"},o=V[e];if(!o){x(null,-1,n);return}x(o.value,e,n)};(0,d.useEffect)(function(){j(!1!==M?H(0):-1)},[V.length,m]);var X=d.useCallback(function(e){return R.has(e)&&"combobox"!==p},[p,(0,r.Z)(R).toString(),R.size]);(0,d.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&s&&1===R.size){var e=Array.from(R)[0],t=V.findIndex(function(t){return t.data.value===e});-1!==t&&(j(t),_(t))}});return s&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[s,m]);var Y=function(e){void 0!==e&&I(e,{selected:!R.has(e)}),f||h(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case g.Z.N:case g.Z.P:case g.Z.UP:case g.Z.DOWN:var o=0;if(t===g.Z.UP?o=-1:t===g.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===g.Z.N?o=1:t===g.Z.P&&(o=-1)),0!==o){var r=H(K+o,o);_(r),j(r,!0)}break;case g.Z.ENTER:var a=V[K];a&&!a.data.disabled?Y(a.value):Y(void 0),s&&e.preventDefault();break;case g.Z.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){_(e)}}}),0===V.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(k,"-empty"),onMouseDown:A},b);var B=Object.keys(P).map(function(e){return P[e]}),U=function(e){return e.label},G=function(e){var t=V[e];if(!t)return null;var n=t.data||{},r=n.value,a=t.group,i=(0,y.Z)(n,!0),l=U(t);return t?d.createElement("div",(0,o.Z)({"aria-label":"string"!=typeof l||a?null:l},i,{key:e,role:a?"presentation":"option",id:"".concat(c,"_list_").concat(e),"aria-selected":X(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(K-1),G(K),G(K+1)),d.createElement(ei.Z,{itemKey:"key",ref:L,data:V,height:O,itemHeight:T,fullHeight:!1,onMouseDown:A,onScroll:Z,virtual:D},function(e,t){var n=e.group,r=e.groupOption,i=e.data,l=e.label,c=e.value,s=i.key;if(n){var f,p,m=null!==(p=i.title)&&void 0!==p?p:ec(l)?l.toString():void 0;return d.createElement("div",{className:v()(k,"".concat(k,"-group")),title:m},void 0!==l?l:s)}var h=i.disabled,g=i.title,b=(i.children,i.style),Z=i.className,E=(0,u.Z)(i,eu),w=(0,er.Z)(E,B),S=X(c),x="".concat(k,"-option"),M=v()(k,x,Z,(f={},(0,a.Z)(f,"".concat(x,"-grouped"),r),(0,a.Z)(f,"".concat(x,"-active"),K===t&&!h),(0,a.Z)(f,"".concat(x,"-disabled"),h),(0,a.Z)(f,"".concat(x,"-selected"),S),f)),I=U(e),R=!N||"function"==typeof N||S,P="number"==typeof I?I:I||c,D=ec(P)?P.toString():void 0;return void 0!==g&&(D=g),d.createElement("div",(0,o.Z)({},(0,y.Z)(w),{"aria-selected":S,className:M,title:D,onMouseMove:function(){K===t||h||j(t)},onClick:function(){h||Y(c)},style:b}),d.createElement("div",{className:"".concat(x,"-content")},P),d.isValidElement(N)||S,R&&d.createElement(C,{className:"".concat(k,"-option-state"),customizeIcon:N,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"],ep=d.forwardRef(function(e,t){var n,f=e.id,p=e.mode,v=e.prefixCls,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,Z=e.onSearch,E=e.autoClearSearchValue,w=void 0===E||E,y=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,x=void 0===C||C,I=e.filterOption,N=e.filterSort,R=e.optionFilterProp,P=e.optionLabelProp,D=e.options,O=e.children,T=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,V=e.virtual,L=e.listHeight,A=void 0===L?200:L,_=e.listItemHeight,H=void 0===_?20:_,W=e.value,j=e.defaultValue,ee=e.labelInValue,et=e.onChange,en=(0,u.Z)(e,ef),eo=(0,G.ZP)(f),er=X(p),ea=!!(!D&&O),ei=d.useMemo(function(){return(void 0!==I||"combobox"!==p)&&I},[I,p]),eu=d.useMemo(function(){return z(h,ea)},[JSON.stringify(h),ea]),ec=(0,s.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),ep=(0,l.Z)(ec,2),ev=ep[0],em=ep[1],eh=d.useMemo(function(){var e=D;D||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Q.Z)(t).map(function(t,o){if(!d.isValidElement(t)||!t.type)return null;var r,a,l,c,s,f=t.type.isSelectOptGroup,p=t.key,v=t.props,m=v.children,h=(0,u.Z)(v,J);return n||!f?(r=t.key,l=(a=t.props).children,c=a.value,s=(0,u.Z)(a,q),(0,i.Z)({key:r,value:void 0!==c?c:r,children:l},s)):(0,i.Z)((0,i.Z)({key:"__RC_SELECT_GRP__".concat(null===p?o:p,"__"),label:p},h),{},{options:e(m)})}).filter(function(e){return e})}(O));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i<r.length;i+=1){var l=r[i];!l[eu.options]||a?(t.set(l[eu.value],l),o(n,l,eu.label),o(n,l,R),o(n,l,P)):e(l[eu.options],!0)}}(e),{options:e,valueOptions:t,labelOptions:n}},[D,O,eu,R,P]),eg=eh.valueOptions,eb=eh.labelOptions,eZ=eh.options,eE=d.useCallback(function(e){return M(e).map(function(e){e&&"object"===(0,c.Z)(e)?(o=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:o):t=e;var t,n,o,r,a,i,l,u=eg.get(t);return u&&(void 0===n&&(n=null==u?void 0:u[P||eu.label]),void 0===o&&(o=null!==(l=null==u?void 0:u.key)&&void 0!==l?l:t),r=null==u?void 0:u.disabled,a=null==u?void 0:u.title),{label:n,value:t,key:o,disabled:r,title:a}})},[eu,P,eg]),ew=(0,s.Z)(j,{value:W}),ey=(0,l.Z)(ew,2),eS=ey[0],eC=ey[1],ex=B(d.useMemo(function(){var e,t=eE(eS);return"combobox"!==p||null!==(e=t[0])&&void 0!==e&&e.value?t:[]},[eS,eE,p]),eg),eM=(0,l.Z)(ex,2),eI=eM[0],eN=eM[1],eR=d.useMemo(function(){if(!p&&1===eI.length){var e=eI[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eI.map(function(e){var t;return(0,i.Z)((0,i.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})})},[p,eI]),eP=d.useMemo(function(){return new Set(eI.map(function(e){return e.value}))},[eI]);d.useEffect(function(){if("combobox"===p){var e,t=null===(e=eI[0])||void 0===e?void 0:e.value;em(null!=t?String(t):"")}},[eI]);var eD=$(function(e,t){var n,o=null!=t?t:e;return n={},(0,a.Z)(n,eu.value,e),(0,a.Z)(n,eu.label,o),n}),eO=(n=d.useMemo(function(){if("tags"!==p)return eZ;var e=(0,r.Z)(eZ);return(0,r.Z)(eI).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;eg.has(n)||e.push(eD(n,t.label))}),e},[eD,eZ,eg,eI,p]),d.useMemo(function(){if(!ev||!1===ei)return n;var e=eu.options,t=eu.label,o=eu.value,r=[],l="function"==typeof ei,u=ev.toUpperCase(),c=l?ei:function(n,r){return R?U(r[R],u):r[e]?U(r["children"!==t?t:"label"],u):U(r[o],u)},s=l?function(e){return K(e)}:function(e){return e};return n.forEach(function(t){if(t[e]){if(c(ev,s(t)))r.push(t);else{var n=t[e].filter(function(e){return c(ev,s(e))});n.length&&r.push((0,i.Z)((0,i.Z)({},t),{},(0,a.Z)({},e,n)))}return}c(ev,s(t))&&r.push(t)}),r},[n,ei,R,ev,eu])),eT=d.useMemo(function(){return"tags"!==p||!ev||eO.some(function(e){return e[R||"value"]===ev})?eO:[eD(ev)].concat((0,r.Z)(eO))},[eD,R,p,eO,ev]),ek=d.useMemo(function(){return N?(0,r.Z)(eT).sort(function(e,t){return N(e,t)}):eT},[eT,N]),eV=d.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],a=z(n,!1),i=a.label,l=a.value,u=a.options;return!function e(t,n){t.forEach(function(t){var a=t[i];if(!n&&u in t){var c=a;void 0===c&&o&&(c=t.label),r.push({key:F(t,r.length),group:!0,data:t,label:c}),e(t[u],!0)}else{var s=t[l];r.push({key:F(t,r.length),groupOption:n,data:t,label:a,value:s})}})}(e,!1),r}(ek,{fieldNames:eu,childrenAsData:ea})},[ek,eu,ea]),eL=function(e){var t=eE(e);if(eC(t),et&&(t.length!==eI.length||t.some(function(e,t){var n;return(null===(n=eI[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=ee?t:t.map(function(e){return e.value}),o=t.map(function(e){return K(eN(e.value))});et(er?n:n[0],er?o:o[0])}},eA=d.useState(null),e_=(0,l.Z)(eA,2),eH=e_[0],eF=e_[1],ez=d.useState(0),eK=(0,l.Z)(ez,2),eW=eK[0],ej=eK[1],eX=void 0!==T?T:"combobox"!==p,eY=d.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source;ej(t),m&&"combobox"===p&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&eF(String(e))},[m,p]),eB=function(e,t,n){var o=function(){var t,n=eN(e);return[ee?{label:null==n?void 0:n[eu.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,K(n)]};if(t&&y){var r=o(),a=(0,l.Z)(r,2);y(a[0],a[1])}else if(!t&&S&&"clear"!==n){var i=o(),u=(0,l.Z)(i,2);S(u[0],u[1])}},eU=$(function(e,t){var n=!er||t.selected;eL(n?er?[].concat((0,r.Z)(eI),[e]):[e]:eI.filter(function(t){return t.value!==e})),eB(e,n),"combobox"===p?eF(""):(!X||w)&&(em(""),eF(""))}),eG=d.useMemo(function(){var e=!1!==V&&!1!==x;return(0,i.Z)((0,i.Z)({},eh),{},{flattenOptions:eV,onActiveValue:eY,defaultActiveFirstOption:eX,onSelect:eU,menuItemSelectedIcon:k,rawValues:eP,fieldNames:eu,virtual:e,listHeight:A,listItemHeight:H,childrenAsData:ea})},[eh,eV,eY,eX,eU,k,eP,eu,V,x,A,H,ea]);return d.createElement(el.Provider,{value:eG},d.createElement(Y,(0,o.Z)({},en,{id:eo,prefixCls:void 0===v?"rc-select":v,ref:t,omitDomProps:ed,mode:p,displayValues:eR,onDisplayValuesChange:function(e,t){eL(e);var n=t.type,o=t.values;("remove"===n||"clear"===n)&&o.forEach(function(e){eB(e.value,!1,n)})},searchValue:ev,onSearch:function(e,t){if(em(e),eF(null),"submit"===t.source){var n=(e||"").trim();n&&(eL(Array.from(new Set([].concat((0,r.Z)(eP),[n])))),eB(n,!0),em(""));return}"blur"!==t.source&&("combobox"===p&&eL(e),null==Z||Z(e))},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==p&&(t=e.map(function(e){var t=eb.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,r.Z)(eP),(0,r.Z)(t))));eL(n),n.forEach(function(e){eB(e,!0)})},dropdownMatchSelectWidth:x,OptionList:es,emptyOptions:!eV.length,activeValue:eH,activeDescendantId:"".concat(eo,"_list_").concat(eW)})))});ep.Option=eo,ep.OptGroup=et;var ev=ep},85344:function(e,t,n){n.d(t,{Z:function(){return T}});var o=n(87462),r=n(71002),a=n(1413),i=n(4942),l=n(97685),u=n(45987),c=n(93967),s=n.n(c),f=n(48555),d=n(26633),p=n(14032),v=n(67294),m=n(73935),h=v.forwardRef(function(e,t){var n=e.height,r=e.offsetY,l=e.offsetX,u=e.children,c=e.prefixCls,d=e.onInnerResize,p=e.innerProps,m=e.rtl,h=e.extra,g={},b={display:"flex",flexDirection:"column"};return void 0!==r&&(g={height:n,position:"relative",overflow:"hidden"},b=(0,a.Z)((0,a.Z)({},b),{},(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),v.createElement("div",{style:g},v.createElement(f.default,{onResize:function(e){e.offsetHeight&&d&&d()}},v.createElement("div",(0,o.Z)({style:b,className:s()((0,i.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},p),u,h)))});function g(e){var t=e.children,n=e.setRef,o=v.useCallback(function(e){n(e)},[]);return v.cloneElement(t,{ref:o})}h.displayName="Filler";var b=n(84184),Z=("undefined"==typeof navigator?"undefined":(0,r.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),E=function(e,t,n,o){var r=(0,v.useRef)(!1),a=(0,v.useRef)(null),i=(0,v.useRef)({top:e,bottom:t,left:n,right:o});return i.current.top=e,i.current.bottom=t,i.current.left=n,i.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return n&&o?(clearTimeout(a.current),r.current=!1):(!o||r.current)&&(clearTimeout(a.current),r.current=!0,a.current=setTimeout(function(){r.current=!1},50)),!r.current&&o}},w=n(34268),y=n(15671),S=n(43144),C=function(){function e(){(0,y.Z)(this,e),(0,i.Z)(this,"maps",void 0),(0,i.Z)(this,"id",0),this.maps=Object.create(null)}return(0,S.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),x=14/15;function M(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var I=v.forwardRef(function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,u=e.scrollRange,c=e.onStartMove,f=e.onStopMove,d=e.onScroll,p=e.horizontal,m=e.spinSize,h=e.containerSize,g=e.style,Z=e.thumbStyle,E=v.useState(!1),w=(0,l.Z)(E,2),y=w[0],S=w[1],C=v.useState(null),x=(0,l.Z)(C,2),I=x[0],N=x[1],R=v.useState(null),P=(0,l.Z)(R,2),D=P[0],O=P[1],T=!o,k=v.useRef(),V=v.useRef(),L=v.useState(!1),A=(0,l.Z)(L,2),_=A[0],H=A[1],F=v.useRef(),z=function(){clearTimeout(F.current),H(!0),F.current=setTimeout(function(){H(!1)},3e3)},K=u-h||0,W=h-m||0,j=v.useMemo(function(){return 0===r||0===K?0:r/K*W},[r,K,W]),X=v.useRef({top:j,dragging:y,pageY:I,startTop:D});X.current={top:j,dragging:y,pageY:I,startTop:D};var Y=function(e){S(!0),N(M(e,p)),O(X.current.top),c(),e.stopPropagation(),e.preventDefault()};v.useEffect(function(){var e=function(e){e.preventDefault()},t=k.current,n=V.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",Y,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",Y)}},[]);var B=v.useRef();B.current=K;var U=v.useRef();U.current=W,v.useEffect(function(){if(y){var e,t=function(t){var n=X.current,o=n.dragging,r=n.pageY,a=n.startTop;b.Z.cancel(e);var i=k.current.getBoundingClientRect(),l=h/(p?i.width:i.height);if(o){var u=(M(t,p)-r)*l,c=a;!T&&p?c-=u:c+=u;var s=B.current,f=U.current,v=Math.ceil((f?c/f:0)*s);v=Math.min(v=Math.max(v,0),s),e=(0,b.Z)(function(){d(v,p)})}},n=function(){S(!1),f()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),b.Z.cancel(e)}}},[y]),v.useEffect(function(){return z(),function(){clearTimeout(F.current)}},[r]),v.useImperativeHandle(t,function(){return{delayHidden:z}});var G="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:_?null:"hidden"},q={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,q.height="100%",q.width=m,T?q.left=j:q.right=j):(Q.width=8,Q.top=0,Q.bottom=0,T?Q.right=0:Q.left=0,q.width="100%",q.height=m,q.top=j),v.createElement("div",{ref:k,className:s()(G,(0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(G,"-horizontal"),p),"".concat(G,"-vertical"),!p),"".concat(G,"-visible"),_)),style:(0,a.Z)((0,a.Z)({},Q),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},v.createElement("div",{ref:V,className:s()("".concat(G,"-thumb"),(0,i.Z)({},"".concat(G,"-thumb-moving"),y)),style:(0,a.Z)((0,a.Z)({},q),Z),onMouseDown:Y}))});function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),Math.floor(n=Math.max(n,20))}var R=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],P=[],D={overflowY:"auto",overflowAnchor:"none"},O=v.forwardRef(function(e,t){var n,c,y,S,M,O,T,k,V,L,A,_,H,F,z,K,W,j,X,Y,B,U,G,Q,q,J,$,ee,et,en,eo,er,ea,ei,el,eu,ec=e.prefixCls,es=void 0===ec?"rc-virtual-list":ec,ef=e.className,ed=e.height,ep=e.itemHeight,ev=e.fullHeight,em=e.style,eh=e.data,eg=e.children,eb=e.itemKey,eZ=e.virtual,eE=e.direction,ew=e.scrollWidth,ey=e.component,eS=e.onScroll,eC=e.onVirtualScroll,ex=e.onVisibleChange,eM=e.innerProps,eI=e.extraRender,eN=e.styles,eR=(0,u.Z)(e,R),eP=v.useCallback(function(e){return"function"==typeof eb?eb(e):null==e?void 0:e[eb]},[eb]),eD=function(e,t,n){var o=v.useState(0),r=(0,l.Z)(o,2),a=r[0],i=r[1],u=(0,v.useRef)(new Map),c=(0,v.useRef)(new C),s=(0,v.useRef)();function f(){b.Z.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){u.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,w.ZP)(e),o=n.offsetHeight;c.current.get(t)!==o&&c.current.set(t,n.offsetHeight)}}),i(function(e){return e+1})};e?t():s.current=(0,b.Z)(t)}return(0,v.useEffect)(function(){return f},[]),[function(o,r){var a=e(o),i=u.current.get(a);r?(u.current.set(a,r),d()):u.current.delete(a),!i!=!r&&(r?null==t||t(o):null==n||n(o))},d,c.current,a]}(eP,null,null),eO=(0,l.Z)(eD,4),eT=eO[0],ek=eO[1],eV=eO[2],eL=eO[3],eA=!!(!1!==eZ&&ed&&ep),e_=v.useMemo(function(){return Object.values(eV.maps).reduce(function(e,t){return e+t},0)},[eV.id,eV.maps]),eH=eA&&eh&&(Math.max(ep*eh.length,e_)>ed||!!ew),eF="rtl"===eE,ez=s()(es,(0,i.Z)({},"".concat(es,"-rtl"),eF),ef),eK=eh||P,eW=(0,v.useRef)(),ej=(0,v.useRef)(),eX=(0,v.useRef)(),eY=(0,v.useState)(0),eB=(0,l.Z)(eY,2),eU=eB[0],eG=eB[1],eQ=(0,v.useState)(0),eq=(0,l.Z)(eQ,2),eJ=eq[0],e$=eq[1],e0=(0,v.useState)(!1),e1=(0,l.Z)(e0,2),e2=e1[0],e4=e1[1],e3=function(){e4(!0)},e7=function(){e4(!1)};function e5(e){eG(function(t){var n,o=(n="function"==typeof e?e(t):e,Number.isNaN(tm.current)||(n=Math.min(n,tm.current)),n=Math.max(n,0));return eW.current.scrollTop=o,o})}var e6=(0,v.useRef)({start:0,end:eK.length}),e9=(0,v.useRef)(),e8=(n=v.useState(eK),y=(c=(0,l.Z)(n,2))[0],S=c[1],M=v.useState(null),T=(O=(0,l.Z)(M,2))[0],k=O[1],v.useEffect(function(){var e=function(e,t,n){var o,r,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function u(e){return void 0!==e?n(e):l}for(var c=null,s=1!==Math.abs(a-i),f=0;f<r.length;f+=1){var d=u(o[f]);if(d!==u(r[f])){c=f,s=s||d!==u(r[f+1]);break}}return null===c?null:{index:c,multiple:s}}(y||[],eK||[],eP);(null==e?void 0:e.index)!==void 0&&k(eK[e.index]),S(eK)},[eK]),[T]),te=(0,l.Z)(e8,1)[0];e9.current=te;var tt=v.useMemo(function(){if(!eA)return{scrollHeight:void 0,start:0,end:eK.length-1,offset:void 0};if(!eH)return{scrollHeight:(null===(e=ej.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eK.length-1,offset:void 0};for(var e,t,n,o,r=0,a=eK.length,i=0;i<a;i+=1){var l=eP(eK[i]),u=eV.get(l),c=r+(void 0===u?ep:u);c>=eU&&void 0===t&&(t=i,n=r),c>eU+ed&&void 0===o&&(o=i),r=c}return void 0===t&&(t=0,n=0,o=Math.ceil(ed/ep)),void 0===o&&(o=eK.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,eK.length-1),offset:n}},[eH,eA,eU,eK,eL,ed]),tn=tt.scrollHeight,to=tt.start,tr=tt.end,ta=tt.offset;e6.current.start=to,e6.current.end=tr;var ti=v.useState({width:0,height:ed}),tl=(0,l.Z)(ti,2),tu=tl[0],tc=tl[1],ts=(0,v.useRef)(),tf=(0,v.useRef)(),td=v.useMemo(function(){return N(tu.width,ew)},[tu.width,ew]),tp=v.useMemo(function(){return N(tu.height,tn)},[tu.height,tn]),tv=tn-ed,tm=(0,v.useRef)(tv);tm.current=tv;var th=eU<=0,tg=eU>=tv,tb=eJ<=0,tZ=eJ>=ew,tE=E(th,tg,tb,tZ),tw=function(){return{x:eF?-eJ:eJ,y:eU}},ty=(0,v.useRef)(tw()),tS=(0,d.zX)(function(e){if(eC){var t=(0,a.Z)((0,a.Z)({},tw()),e);(ty.current.x!==t.x||ty.current.y!==t.y)&&(eC(t),ty.current=t)}});function tC(e,t){t?((0,m.flushSync)(function(){e$(e)}),tS()):e5(e)}var tx=function(e){var t=e,n=ew?ew-tu.width:0;return Math.min(t=Math.max(t,0),n)},tM=(0,d.zX)(function(e,t){t?((0,m.flushSync)(function(){e$(function(t){return tx(t+(eF?-e:e))})}),tS()):e5(function(t){return t+e})}),tI=(V=!!ew,L=(0,v.useRef)(0),A=(0,v.useRef)(null),_=(0,v.useRef)(null),H=(0,v.useRef)(!1),F=E(th,tg,tb,tZ),z=(0,v.useRef)(null),K=(0,v.useRef)(null),[function(e){if(eA){b.Z.cancel(K.current),K.current=(0,b.Z)(function(){z.current=null},2);var t,n=e.deltaX,o=e.deltaY,r=e.shiftKey,a=n,i=o;("sx"===z.current||!z.current&&r&&o&&!n)&&(a=o,i=0,z.current="sx");var l=Math.abs(a),u=Math.abs(i);(null===z.current&&(z.current=V&&l>u?"x":"y"),"y"===z.current)?(t=i,b.Z.cancel(A.current),L.current+=t,_.current=t,F(!1,t)||(Z||e.preventDefault(),A.current=(0,b.Z)(function(){var e=H.current?10:1;tM(L.current*e),L.current=0}))):(tM(a,!0),Z||e.preventDefault())}},function(e){eA&&(H.current=e.detail===_.current)}]),tN=(0,l.Z)(tI,2),tR=tN[0],tP=tN[1];W=function(e,t,n){return!tE(e,t,n)&&(tR({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)},X=(0,v.useRef)(!1),Y=(0,v.useRef)(0),B=(0,v.useRef)(0),U=(0,v.useRef)(null),G=(0,v.useRef)(null),Q=function(e){if(X.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=Y.current-t,r=B.current-n,a=Math.abs(o)>Math.abs(r);a?Y.current=t:B.current=n,W(a,a?o:r)&&e.preventDefault(),clearInterval(G.current),G.current=setInterval(function(){a?o*=x:r*=x;var e=Math.floor(a?o:r);(!W(a,e,!0)||.1>=Math.abs(e))&&clearInterval(G.current)},16)}},q=function(){X.current=!1,j()},J=function(e){j(),1!==e.touches.length||X.current||(X.current=!0,Y.current=Math.ceil(e.touches[0].pageX),B.current=Math.ceil(e.touches[0].pageY),U.current=e.target,U.current.addEventListener("touchmove",Q,{passive:!1}),U.current.addEventListener("touchend",q,{passive:!0}))},j=function(){U.current&&(U.current.removeEventListener("touchmove",Q),U.current.removeEventListener("touchend",q))},(0,p.Z)(function(){return eA&&eW.current.addEventListener("touchstart",J,{passive:!0}),function(){var e;null===(e=eW.current)||void 0===e||e.removeEventListener("touchstart",J),j(),clearInterval(G.current)}},[eA]),(0,p.Z)(function(){function e(e){eA&&e.preventDefault()}var t=eW.current;return t.addEventListener("wheel",tR,{passive:!1}),t.addEventListener("DOMMouseScroll",tP,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",tR),t.removeEventListener("DOMMouseScroll",tP),t.removeEventListener("MozMousePixelScroll",e)}},[eA]),(0,p.Z)(function(){if(ew){var e=tx(eJ);e$(e),tS({x:e})}},[tu.width,ew]);var tD=function(){var e,t;null===(e=ts.current)||void 0===e||e.delayHidden(),null===(t=tf.current)||void 0===t||t.delayHidden()},tO=($=function(){return ek(!0)},ee=v.useRef(),et=v.useState(null),eo=(en=(0,l.Z)(et,2))[0],er=en[1],(0,p.Z)(function(){if(eo&&eo.times<10){if(!eW.current){er(function(e){return(0,a.Z)({},e)});return}$();var e=eo.targetAlign,t=eo.originAlign,n=eo.index,o=eo.offset,r=eW.current.clientHeight,i=!1,l=e,u=null;if(r){for(var c=e||t,s=0,f=0,d=0,p=Math.min(eK.length-1,n),v=0;v<=p;v+=1){var m=eP(eK[v]);f=s;var h=eV.get(m);s=d=f+(void 0===h?ep:h)}for(var g="top"===c?o:r-o,b=p;b>=0;b-=1){var Z=eP(eK[b]),E=eV.get(Z);if(void 0===E){i=!0;break}if((g-=E)<=0)break}switch(c){case"top":u=f-o;break;case"bottom":u=d-r+o;break;default:var w=eW.current.scrollTop;f<w?l="top":d>w+r&&(l="bottom")}null!==u&&e5(u),u!==eo.lastTop&&(i=!0)}i&&er((0,a.Z)((0,a.Z)({},eo),{},{times:eo.times+1,targetAlign:l,lastTop:u}))}},[eo,eW.current]),function(e){if(null==e){tD();return}if(b.Z.cancel(ee.current),"number"==typeof e)e5(e);else if(e&&"object"===(0,r.Z)(e)){var t,n=e.align;t="index"in e?e.index:eK.findIndex(function(t){return eP(t)===e.key});var o=e.offset;er({times:0,index:t,offset:void 0===o?0:o,originAlign:n})}});v.useImperativeHandle(t,function(){return{nativeElement:eX.current,getScrollInfo:tw,scrollTo:function(e){e&&"object"===(0,r.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&e$(tx(e.left)),tO(e.top)):tO(e)}}}),(0,p.Z)(function(){ex&&ex(eK.slice(to,tr+1),eK)},[to,tr,eK]);var tT=(ea=v.useMemo(function(){return[new Map,[]]},[eK,eV.id,ep]),el=(ei=(0,l.Z)(ea,2))[0],eu=ei[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=el.get(e),o=el.get(t);if(void 0===n||void 0===o)for(var r=eK.length,a=eu.length;a<r;a+=1){var i,l=eP(eK[a]);el.set(l,a);var u=null!==(i=eV.get(l))&&void 0!==i?i:ep;if(eu[a]=(eu[a-1]||0)+u,l===e&&(n=a),l===t&&(o=a),void 0!==n&&void 0!==o)break}return{top:eu[n-1]||0,bottom:eu[o]}}),tk=null==eI?void 0:eI({start:to,end:tr,virtual:eH,offsetX:eJ,offsetY:ta,rtl:eF,getSize:tT}),tV=eK.slice(to,tr+1).map(function(e,t){var n=eg(e,to+t,{style:{width:ew},offsetX:eJ}),o=eP(e);return v.createElement(g,{key:o,setRef:function(t){return eT(e,t)}},n)}),tL=null;ed&&(tL=(0,a.Z)((0,i.Z)({},void 0===ev||ev?"height":"maxHeight",ed),D),eA&&(tL.overflowY="hidden",ew&&(tL.overflowX="hidden"),e2&&(tL.pointerEvents="none")));var tA={};return eF&&(tA.dir="rtl"),v.createElement("div",(0,o.Z)({ref:eX,style:(0,a.Z)((0,a.Z)({},em),{},{position:"relative"}),className:ez},tA,eR),v.createElement(f.default,{onResize:function(e){tc({width:e.offsetWidth,height:e.offsetHeight})}},v.createElement(void 0===ey?"div":ey,{className:"".concat(es,"-holder"),style:tL,ref:eW,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==eU&&e5(t),null==eS||eS(e),tS()},onMouseEnter:tD},v.createElement(h,{prefixCls:es,height:tn,offsetX:eJ,offsetY:ta,scrollWidth:ew,onInnerResize:ek,ref:ej,innerProps:eM,rtl:eF,extra:tk},tV))),eH&&tn>ed&&v.createElement(I,{ref:ts,prefixCls:es,scrollOffset:eU,scrollRange:tn,rtl:eF,onScroll:tC,onStartMove:e3,onStopMove:e7,spinSize:tp,containerSize:tu.height,style:null==eN?void 0:eN.verticalScrollBar,thumbStyle:null==eN?void 0:eN.verticalScrollBarThumb}),eH&&ew>tu.width&&v.createElement(I,{ref:tf,prefixCls:es,scrollOffset:eJ,scrollRange:ew,rtl:eF,onScroll:tC,onStartMove:e3,onStopMove:e7,spinSize:td,containerSize:tu.width,horizontal:!0,style:null==eN?void 0:eN.horizontalScrollBar,thumbStyle:null==eN?void 0:eN.horizontalScrollBarThumb}))});O.displayName="List";var T=O}}]); |