0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.188.218.103


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/10.e17fbb9c.chunk.js

"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[10],{63390:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(58168),r=n(65043);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=n(22172),c=function(e,t){return r.createElement(a.A,(0,o.A)({},e,{ref:t,icon:i}))};const l=r.forwardRef(c)},28369:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(58168),r=n(65043);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=n(22172),c=function(e,t){return r.createElement(a.A,(0,o.A)({},e,{ref:t,icon:i}))};const l=r.forwardRef(c)},29854:(e,t,n)=>{n.d(t,{A:()=>l,U:()=>c});var o=n(65043),r=n(28678),i=n(97670),a=n(35296);function c(e){return t=>o.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}const l=(e,t,n,i)=>c((c=>{const{prefixCls:l,style:u}=c,s=o.useRef(null),[d,f]=o.useState(0),[p,m]=o.useState(0),[v,g]=(0,r.A)(!1,{value:c.open}),{getPrefixCls:h}=o.useContext(a.QO),b=h(t||"select",l);o.useEffect((()=>{if(g(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;f(t.offsetHeight+8),m(t.offsetWidth)})),t=setInterval((()=>{var o;const r=n?".".concat(n(b)):".".concat(b,"-dropdown"),i=null===(o=s.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let A=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},u),{margin:0}),open:v,visible:v,getPopupContainer:()=>s.current});i&&(A=i(A));const y={paddingBottom:d,position:"relative",minWidth:p};return o.createElement("div",{ref:s,style:y},o.createElement(e,Object.assign({},A)))}))},64980:(e,t,n)=>{n.d(t,{YK:()=>s,jH:()=>c});var o=n(65043),r=n(691),i=n(6951);const a=100,c=1e3,l={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a},u={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function s(e,t){const[,n]=(0,r.Ay)(),a=o.useContext(i.A),s=e in l;if(void 0!==t)return[t,t];let d=null!==a&&void 0!==a?a:0;return s?(d+=(a?0:n.zIndexPopupBase)+l[e],d=Math.min(d,n.zIndexPopupBase+c)):d+=u[e],[void 0===a?t:d,d]}},6951:(e,t,n)=>{n.d(t,{A:()=>o});const o=n(65043).createContext(void 0)},54633:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(65043),r=n(35296),i=n(99472);const a=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.QO),a=n("empty");switch(t){case"Table":case"List":return o.createElement(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE,className:"".concat(a,"-small")});default:return o.createElement(i.A,null)}}},99472:(e,t,n)=>{n.d(t,{A:()=>y});var o=n(65043),r=n(98139),i=n.n(r),a=n(35296),c=n(10370),l=n(50097),u=n(691);const s=()=>{const[,e]=(0,u.Ay)(),t=new l.q(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{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",fill:"#AEB8C2"}),o.createElement("path",{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",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{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",fill:"#F5F5F7"}),o.createElement("path",{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",fill:"#DCE0E6"})),o.createElement("path",{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",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const d=()=>{const[,e]=(0,u.Ay)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:c,contentColor:s}=(0,o.useMemo)((()=>({borderColor:new l.q(t).onBackground(i).toHexShortString(),shadowColor:new l.q(n).onBackground(i).toHexShortString(),contentColor:new l.q(r).onBackground(i).toHexShortString()})),[t,n,r,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.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"}),o.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",fill:s}))))};var f=n(66712),p=n(78365);const m=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorText},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}},v=(0,f.OF)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=(0,p.h1)(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[m(r)]}));var g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const h=o.createElement(s,null),b=o.createElement(d,null),A=e=>{var{className:t,rootClassName:n,prefixCls:r,image:l=h,description:u,children:s,imageStyle:d,style:f}=e,p=g(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:A,empty:y}=o.useContext(a.QO),w=m("empty",r),[S,E,C]=v(w),[x]=(0,c.A)("Empty"),I="undefined"!==typeof u?u:null===x||void 0===x?void 0:x.description,M="string"===typeof I?I:"empty";let O=null;return O="string"===typeof l?o.createElement("img",{alt:M,src:l}):l,S(o.createElement("div",Object.assign({className:i()(E,C,w,null===y||void 0===y?void 0:y.className,{["".concat(w,"-normal")]:l===b,["".concat(w,"-rtl")]:"rtl"===A},t,n),style:Object.assign(Object.assign({},null===y||void 0===y?void 0:y.style),f)},p),o.createElement("div",{className:"".concat(w,"-image"),style:d},O),I&&o.createElement("div",{className:"".concat(w,"-description")},I),s&&o.createElement("div",{className:"".concat(w,"-footer")},s)))};A.PRESENTED_IMAGE_DEFAULT=h,A.PRESENTED_IMAGE_SIMPLE=b;const y=A},10370:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(65043),r=n(45012),i=n(94440);const a=(e,t)=>{const n=o.useContext(r.A);return[o.useMemo((()=>{var o;const r=t||i.A[e],a=null!==(o=null===n||void 0===n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"===typeof r?r():r),a||{})}),[e,t,n]),o.useMemo((()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?i.A.locale:e}),[n])]}},95010:(e,t,n)=>{n.d(t,{A:()=>Ct});var o=n(65043),r=n(98139),i=n.n(r),a=n(58168),c=n(60436),l=n(64467),u=n(89379),s=n(5544),d=n(53986),f=n(82284),p=n(28678),m=n(97907),v=n(52664),g=n(16765),h=n(25001),b=n(13758);const A=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,a=e.children,c=e.onMouseDown,l=e.onClick,u="function"===typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null===c||void 0===c||c(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==u?u:o.createElement("span",{className:i()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))};var y=o.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.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 S=n(48060),E=n(69944),C=function(e,t){var n,r=e.prefixCls,a=e.id,c=e.inputElement,l=e.disabled,s=e.tabIndex,d=e.autoFocus,f=e.autoComplete,p=e.editable,v=e.activeDescendantId,g=e.value,h=e.maxLength,A=e.onKeyDown,y=e.onMouseDown,w=e.onChange,S=e.onPaste,E=e.onCompositionStart,C=e.onCompositionEnd,x=e.open,I=e.attrs,M=c||o.createElement("input",null),O=M,R=O.ref,z=O.props,H=z.onKeyDown,D=z.onChange,N=z.onMouseDown,P=z.onCompositionStart,T=z.onCompositionEnd,k=z.style;return(0,m.$e)(!("maxLength"in M.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),M=o.cloneElement(M,(0,u.A)((0,u.A)((0,u.A)({type:"search"},z),{},{id:a,ref:(0,b.K4)(t,R),disabled:l,tabIndex:s,autoComplete:f||"off",autoFocus:d,className:i()("".concat(r,"-selection-search-input"),null===(n=M)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":x?v:void 0},I),{},{value:p?g:"",maxLength:h,readOnly:!p,unselectable:p?null:"on",style:(0,u.A)((0,u.A)({},k),{},{opacity:p?null:0}),onKeyDown:function(e){A(e),H&&H(e)},onMouseDown:function(e){y(e),N&&N(e)},onChange:function(e){w(e),D&&D(e)},onCompositionStart:function(e){E(e),P&&P(e)},onCompositionEnd:function(e){C(e),T&&T(e)},onPaste:S}))};const x=o.forwardRef(C);function I(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var M="undefined"!==typeof window&&window.document&&window.document.documentElement;function O(e){return["string","number"].includes((0,f.A)(e))}function R(e){var t=void 0;return e&&(O(e.title)?t=e.title.toString():O(e.label)&&(t=e.label.toString())),t}function z(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var H=function(e){e.preventDefault(),e.stopPropagation()};const D=function(e){var t,n,r=e.id,a=e.prefixCls,c=e.values,u=e.open,d=e.searchValue,f=e.autoClearSearchValue,p=e.inputRef,m=e.placeholder,v=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,y=e.autoComplete,w=e.activeDescendantId,C=e.tabIndex,I=e.removeIcon,O=e.maxTagCount,D=e.maxTagTextLength,N=e.maxTagPlaceholder,P=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,T=e.tagRender,k=e.onToggleOpen,L=e.onRemove,j=e.onInputChange,B=e.onInputPaste,F=e.onInputKeyDown,W=e.onInputMouseDown,V=e.onInputCompositionStart,_=e.onInputCompositionEnd,K=o.useRef(null),X=(0,o.useState)(0),q=(0,s.A)(X,2),G=q[0],Y=q[1],U=(0,o.useState)(!1),Q=(0,s.A)(U,2),$=Q[0],J=Q[1],Z="".concat(a,"-selection"),ee=u||"multiple"===g&&!1===f||"tags"===g?d:"",te="tags"===g||"multiple"===g&&!1===f||h&&(u||$);t=function(){Y(K.current.scrollWidth)},n=[ee],M?o.useLayoutEffect(t,n):o.useEffect(t,n);var ne=function(e,t,n,r,a){return o.createElement("span",{title:R(e),className:i()("".concat(Z,"-item"),(0,l.A)({},"".concat(Z,"-item-disabled"),n))},o.createElement("span",{className:"".concat(Z,"-item-content")},t),r&&o.createElement(A,{className:"".concat(Z,"-item-remove"),onMouseDown:H,onClick:a,customizeIcon:I},"\xd7"))},oe=function(e,t,n,r,i,a){return o.createElement("span",{onMouseDown:function(e){H(e),k(!u)}},T({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!a}))},re=o.createElement("div",{className:"".concat(Z,"-search"),style:{width:G},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},o.createElement(x,{ref:p,open:u,prefixCls:a,id:r,inputElement:null,disabled:v,autoFocus:b,autoComplete:y,editable:te,activeDescendantId:w,value:ee,onKeyDown:F,onMouseDown:W,onChange:j,onPaste:B,onCompositionStart:V,onCompositionEnd:_,tabIndex:C,attrs:(0,S.A)(e,!0)}),o.createElement("span",{ref:K,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),ie=o.createElement(E.A,{prefixCls:"".concat(Z,"-overflow"),data:c,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!v&&!t,i=n;if("number"===typeof D&&("string"===typeof n||"number"===typeof n)){var a=String(i);a.length>D&&(i="".concat(a.slice(0,D),"..."))}var c=function(t){t&&t.stopPropagation(),L(e)};return"function"===typeof T?oe(o,i,t,r,c):ne(e,i,t,r,c)},renderRest:function(e){var t="function"===typeof P?P(e):P;return"function"===typeof T?oe(void 0,t,!1,!1,void 0,!0):ne({title:t},t,!1)},suffix:re,itemKey:z,maxCount:O});return o.createElement(o.Fragment,null,ie,!c.length&&!ee&&o.createElement("span",{className:"".concat(Z,"-placeholder")},m))};const N=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,c=e.autoFocus,l=e.autoComplete,u=e.activeDescendantId,d=e.mode,f=e.open,p=e.values,m=e.placeholder,v=e.tabIndex,g=e.showSearch,h=e.searchValue,b=e.activeValue,A=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,E=e.onInputChange,C=e.onInputPaste,I=e.onInputCompositionStart,M=e.onInputCompositionEnd,O=e.title,z=o.useState(!1),H=(0,s.A)(z,2),D=H[0],N=H[1],P="combobox"===d,T=P||g,k=p[0],L=h||"";P&&b&&!D&&(L=b),o.useEffect((function(){P&&N(!1)}),[P,b]);var j=!("combobox"!==d&&!f&&!g)&&!!L,B=void 0===O?R(k):O,F=o.useMemo((function(){return k?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},m)}),[k,j,m,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(x,{ref:i,prefixCls:n,id:r,open:f,inputElement:t,disabled:a,autoFocus:c,autoComplete:l,editable:T,activeDescendantId:u,value:L,onKeyDown:y,onMouseDown:w,onChange:function(e){N(!0),E(e)},onPaste:C,onCompositionStart:I,onCompositionEnd:M,tabIndex:v,attrs:(0,S.A)(e,!0),maxLength:P?A:void 0})),!P&&k?o.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:j?{visibility:"hidden"}:void 0},k.label):null,F)};var P=function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=e.prefixCls,c=e.open,l=e.mode,u=e.showSearch,d=e.tokenWithEnter,f=e.disabled,p=e.autoClearSearchValue,m=e.onSearch,v=e.onSearchSubmit,g=e.onToggleOpen,b=e.onInputKeyDown,A=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var y=w(0),S=(0,s.A)(y,2),E=S[0],C=S[1],x=(0,o.useRef)(null),I=function(e){!1!==m(e,!0,r.current)&&g(!0)},M={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==h.A.UP&&n!==h.A.DOWN||e.preventDefault(),b&&b(e),n!==h.A.ENTER||"tags"!==l||r.current||c||null===v||void 0===v||v(e.target.value),t=n,[h.A.ESC,h.A.SHIFT,h.A.BACKSPACE,h.A.TAB,h.A.WIN_KEY,h.A.ALT,h.A.META,h.A.WIN_KEY_RIGHT,h.A.CTRL,h.A.SEMICOLON,h.A.EQUALS,h.A.CAPS_LOCK,h.A.CONTEXT_MENU,h.A.F1,h.A.F2,h.A.F3,h.A.F4,h.A.F5,h.A.F6,h.A.F7,h.A.F8,h.A.F9,h.A.F10,h.A.F11,h.A.F12].includes(t)||g(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(d&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,I(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");x.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&I(e.target.value)}},O="multiple"===l||"tags"===l?o.createElement(D,(0,a.A)({},e,M)):o.createElement(N,(0,a.A)({},e,M));return o.createElement("div",{ref:A,className:"".concat(i,"-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=E();e.target===n.current||t||"combobox"===l&&f||e.preventDefault(),("combobox"===l||u&&t)&&c||(c&&!1!==p&&m("",!0,!1),g())}},O)};const T=o.forwardRef(P);var k=n(54017),L=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),c=e.children,s=e.popupElement,f=e.animation,p=e.transitionName,m=e.dropdownStyle,v=e.dropdownClassName,g=e.direction,h=void 0===g?"ltr":g,b=e.placement,A=e.builtinPlacements,y=e.dropdownMatchSelectWidth,w=e.dropdownRender,S=e.dropdownAlign,E=e.getPopupContainer,C=e.empty,x=e.getTriggerDOMNode,I=e.onPopupVisibleChange,M=e.onPopupMouseEnter,O=(0,d.A)(e,L),R="".concat(n,"-dropdown"),z=s;w&&(z=w(s));var H=o.useMemo((function(){return A||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(y)}),[A,y]),D=f?"".concat(R,"-").concat(f):p,N="number"===typeof y,P=o.useMemo((function(){return N?null:!1===y?"minWidth":"width"}),[y,N]),T=m;N&&(T=(0,u.A)((0,u.A)({},T),{},{width:y}));var j=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=j.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(k.A,(0,a.A)({},O,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:H,prefixCls:R,popupTransitionName:D,popup:o.createElement("div",{onMouseEnter:M},z),ref:j,stretch:P,popupAlign:S,popupVisible:r,getPopupContainer:E,popupClassName:i()(v,(0,l.A)({},"".concat(R,"-empty"),C)),popupStyle:T,getTriggerDOMNode:x,onPopupVisibleChange:I}),c)};const B=o.forwardRef(j);var F=n(87695);function W(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!==o&&void 0!==o?o:void 0!==n?n:"rc-index-key-".concat(t)}function V(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function _(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function K(e){var t=(0,u.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const X=o.createContext(null);function q(e){var t=e.visible,n=e.values;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,f.A)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var G=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],U=function(e){return"tags"===e||"multiple"===e},Q=o.forwardRef((function(e,t){var n,r=e.id,m=e.prefixCls,S=e.className,E=e.showSearch,C=e.tagRender,x=e.direction,I=e.omitDomProps,M=e.displayValues,O=e.onDisplayValuesChange,R=e.emptyOptions,z=e.notFoundContent,H=void 0===z?"Not Found":z,D=e.onClear,N=e.mode,P=e.disabled,k=e.loading,L=e.getInputElement,j=e.getRawInputElement,W=e.open,_=e.defaultOpen,K=e.onDropdownVisibleChange,Q=e.activeValue,$=e.onActiveValueChange,J=e.activeDescendantId,Z=e.searchValue,ee=e.autoClearSearchValue,te=e.onSearch,ne=e.onSearchSplit,oe=e.tokenSeparators,re=e.allowClear,ie=e.suffixIcon,ae=e.clearIcon,ce=e.OptionList,le=e.animation,ue=e.transitionName,se=e.dropdownStyle,de=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,pe=e.dropdownRender,me=e.dropdownAlign,ve=e.placement,ge=e.builtinPlacements,he=e.getPopupContainer,be=e.showAction,Ae=void 0===be?[]:be,ye=e.onFocus,we=e.onBlur,Se=e.onKeyUp,Ee=e.onKeyDown,Ce=e.onMouseDown,xe=(0,d.A)(e,G),Ie=U(N),Me=(void 0!==E?E:Ie)||"combobox"===N,Oe=(0,u.A)({},xe);Y.forEach((function(e){delete Oe[e]})),null===I||void 0===I||I.forEach((function(e){delete Oe[e]}));var Re=o.useState(!1),ze=(0,s.A)(Re,2),He=ze[0],De=ze[1];o.useEffect((function(){De((0,g.A)())}),[]);var Ne=o.useRef(null),Pe=o.useRef(null),Te=o.useRef(null),ke=o.useRef(null),Le=o.useRef(null),je=o.useRef(!1),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,s.A)(t,2),r=n[0],i=n[1],a=o.useRef(null),c=function(){window.clearTimeout(a.current)};return o.useEffect((function(){return c}),[]),[r,function(t,n){c(),a.current=window.setTimeout((function(){i(t),n&&n()}),e)},c]}(),Fe=(0,s.A)(Be,3),We=Fe[0],Ve=Fe[1],_e=Fe[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=ke.current)||void 0===e?void 0:e.focus,blur:null===(t=ke.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Le.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ne.current||Pe.current}}));var Ke=o.useMemo((function(){var e;if("combobox"!==N)return Z;var t=null===(e=M[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[Z,N,M]),Xe="combobox"===N&&"function"===typeof L&&L()||null,qe="function"===typeof j&&j(),Ge=(0,b.xK)(Pe,null===qe||void 0===qe||null===(n=qe.props)||void 0===n?void 0:n.ref),Ye=o.useState(!1),Ue=(0,s.A)(Ye,2),Qe=Ue[0],$e=Ue[1];(0,v.A)((function(){$e(!0)}),[]);var Je=(0,p.A)(!1,{defaultValue:_,value:W}),Ze=(0,s.A)(Je,2),et=Ze[0],tt=Ze[1],nt=!!Qe&&et,ot=!H&&R;(P||ot&&nt&&"combobox"===N)&&(nt=!1);var rt=!ot&&nt,it=o.useCallback((function(e){var t=void 0!==e?e:!nt;P||(tt(t),nt!==t&&(null===K||void 0===K||K(t)))}),[P,nt,tt,K]),at=o.useMemo((function(){return(oe||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[oe]),ct=o.useContext(X)||{},lt=ct.maxCount,ut=ct.rawValues,st=function(e,t,n){if(!(Ie&&V(lt)&&(null===ut||void 0===ut?void 0:ut.size)>=lt)){var o=!0,r=e;null===$||void 0===$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=(0,F.A)(n),i=r[0],a=r.slice(1);if(!i)return[t];var l=t.split(i);return o=o||l.length>1,l.reduce((function(t,n){return[].concat((0,c.A)(t),(0,c.A)(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?"undefined"!==typeof n?r.slice(0,n):r:null}(e,oe,V(lt)?lt-ut.size:void 0),a=n?null:i;return"combobox"!==N&&a&&(r="",null===ne||void 0===ne||ne(a),it(!1),o=!1),te&&Ke!==r&&te(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){nt||Ie||"combobox"===N||st("",!1,!1)}),[nt]),o.useEffect((function(){et&&P&&tt(!1),P&&!je.current&&Ve(!1)}),[P]);var dt=w(),ft=(0,s.A)(dt,2),pt=ft[0],mt=ft[1],vt=o.useRef(!1),gt=[];o.useEffect((function(){return function(){gt.forEach((function(e){return clearTimeout(e)})),gt.splice(0,gt.length)}}),[]);var ht,bt=o.useState({}),At=(0,s.A)(bt,2)[1];qe&&(ht=function(e){it(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=Te.current)||void 0===e?void 0:e.getPopupElement()]}),rt,it,!!qe);var yt,wt=o.useMemo((function(){return(0,u.A)((0,u.A)({},e),{},{notFoundContent:H,open:nt,triggerOpen:rt,id:r,showSearch:Me,multiple:Ie,toggleOpen:it})}),[e,H,rt,nt,r,Me,Ie,it]),St=!!ie||k;St&&(yt=o.createElement(A,{className:i()("".concat(m,"-arrow"),(0,l.A)({},"".concat(m,"-arrow-loading"),k)),customizeIcon:ie,customizeIconProps:{loading:k,searchValue:Ke,open:nt,focused:We,showSearch:Me}}));var Et,Ct=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=o.useMemo((function(){return"object"===(0,f.A)(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:o.useMemo((function(){return!(a||!r||!n.length&&!c||"combobox"===l&&""===c)}),[r,a,n.length,c,l]),clearIcon:o.createElement(A,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"\xd7")}}(m,(function(){var e;null===D||void 0===D||D(),null===(e=ke.current)||void 0===e||e.focus(),O([],{type:"clear",values:M}),st("",!1,!1)}),M,re,ae,P,Ke,N),xt=Ct.allowClear,It=Ct.clearIcon,Mt=o.createElement(ce,{ref:Le}),Ot=i()(m,S,(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(m,"-focused"),We),"".concat(m,"-multiple"),Ie),"".concat(m,"-single"),!Ie),"".concat(m,"-allow-clear"),re),"".concat(m,"-show-arrow"),St),"".concat(m,"-disabled"),P),"".concat(m,"-loading"),k),"".concat(m,"-open"),nt),"".concat(m,"-customize-input"),Xe),"".concat(m,"-show-search"),Me)),Rt=o.createElement(B,{ref:Te,disabled:P,prefixCls:m,visible:rt,popupElement:Mt,animation:le,transitionName:ue,dropdownStyle:se,dropdownClassName:de,direction:x,dropdownMatchSelectWidth:fe,dropdownRender:pe,dropdownAlign:me,placement:ve,builtinPlacements:ge,getPopupContainer:he,empty:R,getTriggerDOMNode:function(e){return Pe.current||e},onPopupVisibleChange:ht,onPopupMouseEnter:function(){At({})}},qe?o.cloneElement(qe,{ref:Ge}):o.createElement(T,(0,a.A)({},e,{domRef:Pe,prefixCls:m,inputElement:Xe,ref:ke,id:r,showSearch:Me,autoClearSearchValue:ee,mode:N,activeDescendantId:J,tagRender:C,values:M,open:nt,onToggleOpen:it,activeValue:Q,searchValue:Ke,onSearch:st,onSearchSubmit:function(e){e&&e.trim()&&te(e,{source:"submit"})},onRemove:function(e){var t=M.filter((function(t){return t!==e}));O(t,{type:"remove",values:[e]})},tokenWithEnter:at})));return Et=qe?Rt:o.createElement("div",(0,a.A)({className:Ot},Oe,{ref:Ne,onMouseDown:function(e){var t,n=e.target,o=null===(t=Te.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=gt.indexOf(r);-1!==t&&gt.splice(t,1),_e(),He||o.contains(document.activeElement)||null===(e=ke.current)||void 0===e||e.focus()}));gt.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];null===Ce||void 0===Ce||Ce.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=pt(),o=e.which;if(o===h.A.ENTER&&("combobox"!==N&&e.preventDefault(),nt||it(!0)),mt(!!Ke),o===h.A.BACKSPACE&&!n&&Ie&&!Ke&&M.length){for(var r=(0,c.A)(M),i=null,a=r.length-1;a>=0;a-=1){var l=r[a];if(!l.disabled){r.splice(a,1),i=l;break}}i&&O(r,{type:"remove",values:[i]})}for(var u=arguments.length,s=new Array(u>1?u-1:0),d=1;d<u;d++)s[d-1]=arguments[d];nt&&(null===(t=Le.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(s))),null===Ee||void 0===Ee||Ee.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;nt&&(null===(r=Le.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),null===Se||void 0===Se||Se.apply(void 0,[e].concat(n))},onFocus:function(){Ve(!0),P||(ye&&!vt.current&&ye.apply(void 0,arguments),Ae.includes("focus")&&it(!0)),vt.current=!0},onBlur:function(){je.current=!0,Ve(!1,(function(){vt.current=!1,je.current=!1,it(!1)})),P||(Ke&&("tags"===N?te(Ke,{source:"submit"}):"multiple"===N&&te("",{source:"blur"})),we&&we.apply(void 0,arguments))}}),o.createElement(q,{visible:We&&!nt,values:M}),Rt,yt,xt&&It),o.createElement(y.Provider,{value:wt},Et)}));const $=Q;var J=function(){return null};J.isSelectOptGroup=!0;const Z=J;var ee=function(){return null};ee.isSelectOption=!0;const te=ee;var ne=n(13709),oe=n(18574),re=n(98424);var ie=["disabled","title","children","style","className"];function ae(e){return"string"===typeof e||"number"===typeof e}var ce=function(e,t){var n=o.useContext(y),r=n.prefixCls,u=n.id,f=n.open,p=n.multiple,m=n.mode,v=n.searchValue,g=n.toggleOpen,b=n.notFoundContent,w=n.onPopupScroll,E=o.useContext(X),C=E.maxCount,x=E.flattenOptions,I=E.onActiveValue,M=E.defaultActiveFirstOption,O=E.onSelect,R=E.menuItemSelectedIcon,z=E.rawValues,H=E.fieldNames,D=E.virtual,N=E.direction,P=E.listHeight,T=E.listItemHeight,k=E.optionRender,L="".concat(r,"-item"),j=(0,ne.A)((function(){return x}),[f,x],(function(e,t){return t[0]&&e[1]!==t[1]})),B=o.useRef(null),F=o.useMemo((function(){return p&&V(C)&&(null===z||void 0===z?void 0:z.size)>=C}),[p,C,null===z||void 0===z?void 0:z.size]),W=function(e){e.preventDefault()},_=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},K=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=j[r]||{},a=i.group,c=i.data;if(!a&&(null===c||void 0===c||!c.disabled)&&!F)return r}return-1},q=o.useState((function(){return K(0)})),G=(0,s.A)(q,2),Y=G[0],U=G[1],Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];U(e);var n={source:t?"keyboard":"mouse"},o=j[e];o?I(o.value,e,n):I(null,-1,n)};(0,o.useEffect)((function(){Q(!1!==M?K(0):-1)}),[j.length,v]);var $=o.useCallback((function(e){return z.has(e)&&"combobox"!==m}),[m,(0,c.A)(z).toString(),z.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&f&&1===z.size){var e=Array.from(z)[0],t=j.findIndex((function(t){return t.data.value===e}));-1!==t&&(Q(t),_(t))}}));f&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,v]);var J=function(e){void 0!==e&&O(e,{selected:!z.has(e)}),p||g(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case h.A.N:case h.A.P:case h.A.UP:case h.A.DOWN:var o=0;if(t===h.A.UP?o=-1:t===h.A.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===h.A.N?o=1:t===h.A.P&&(o=-1)),0!==o){var r=K(Y+o,o);_(r),Q(r,!0)}break;case h.A.ENTER:var i,a=j[Y];!a||null!==a&&void 0!==a&&null!==(i=a.data)&&void 0!==i&&i.disabled||F?J(void 0):J(a.value),f&&e.preventDefault();break;case h.A.ESC:g(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){_(e)}}})),0===j.length)return o.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(L,"-empty"),onMouseDown:W},b);var Z=Object.keys(H).map((function(e){return H[e]})),ee=function(e){return e.label};function te(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var ce=function(e){var t=j[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,c=(0,S.A)(n,!0),l=ee(t);return t?o.createElement("div",(0,a.A)({"aria-label":"string"!==typeof l||i?null:l},c,{key:e},te(t,e),{"aria-selected":$(r)}),r):null},le={role:"listbox",id:"".concat(u,"_list")};return o.createElement(o.Fragment,null,D&&o.createElement("div",(0,a.A)({},le,{style:{height:0,width:0,overflow:"hidden"}}),ce(Y-1),ce(Y),ce(Y+1)),o.createElement(re.A,{itemKey:"key",ref:B,data:j,height:P,itemHeight:T,fullHeight:!1,onMouseDown:W,onScroll:w,virtual:D,direction:N,innerProps:D?null:le},(function(e,t){var n=e.group,r=e.groupOption,c=e.data,u=e.label,s=e.value,f=c.key;if(n){var p,m=null!==(p=c.title)&&void 0!==p?p:ae(u)?u.toString():void 0;return o.createElement("div",{className:i()(L,"".concat(L,"-group"),c.className),title:m},void 0!==u?u:f)}var v=c.disabled,g=c.title,h=(c.children,c.style),b=c.className,y=(0,d.A)(c,ie),w=(0,oe.A)(y,Z),E=$(s),C=v||!E&&F,x="".concat(L,"-option"),I=i()(L,x,b,(0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(x,"-grouped"),r),"".concat(x,"-active"),Y===t&&!C),"".concat(x,"-disabled"),C),"".concat(x,"-selected"),E)),M=ee(e),O=!R||"function"===typeof R||E,z="number"===typeof M?M:M||s,H=ae(z)?z.toString():void 0;return void 0!==g&&(H=g),o.createElement("div",(0,a.A)({},(0,S.A)(w),D?{}:te(e,t),{"aria-selected":E,className:I,title:H,onMouseMove:function(){Y===t||C||Q(t)},onClick:function(){C||J(s)},style:h}),o.createElement("div",{className:"".concat(x,"-content")},"function"===typeof k?k(e,{index:t}):z),o.isValidElement(R)||E,O&&o.createElement(A,{className:"".concat(L,"-option-state"),customizeIcon:R,customizeIconProps:{value:s,disabled:C,isSelected:E}},E?"\u2713":null))})))};const le=o.forwardRef(ce);function ue(e,t){return I(e).join("").toUpperCase().includes(t)}var se=n(52931),de=0,fe=(0,se.A)();function pe(e){var t=o.useState(),n=(0,s.A)(t,2),r=n[0],i=n[1];return o.useEffect((function(){i("rc_select_".concat(function(){var e;return fe?(e=de,de+=1):e="TEST_OR_SSR",e}()))}),[]),e||r}var me=n(62149),ve=["children","value"],ge=["children"];function he(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,me.A)(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,c=r.props,l=c.children,s=(0,d.A)(c,ge);return t||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value,a=(0,d.A)(o,ve);return(0,u.A)({key:n,value:void 0!==i?i:n,children:r},a)}(e):(0,u.A)((0,u.A)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:he(l)})})).filter((function(e){return e}))}const be=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=he(t));var a=new Map,c=new Map,l=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=0;u<t.length;u+=1){var s=t[u];!s[n.options]||o?(a.set(s[n.value],s),l(c,s,n.label),l(c,s,r),l(c,s,i)):e(s[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:c}}),[e,t,n,r,i])};function Ae(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var ye=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],we=["inputValue"];var Se=o.forwardRef((function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,m=void 0===i?"rc-select":i,v=e.backfill,g=e.fieldNames,h=e.inputValue,b=e.searchValue,A=e.onSearch,y=e.autoClearSearchValue,w=void 0===y||y,S=e.onSelect,E=e.onDeselect,C=e.dropdownMatchSelectWidth,x=void 0===C||C,M=e.filterOption,O=e.filterSort,R=e.optionFilterProp,z=e.optionLabelProp,H=e.options,D=e.optionRender,N=e.children,P=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,k=e.virtual,L=e.direction,j=e.listHeight,B=void 0===j?200:j,F=e.listItemHeight,V=void 0===F?20:F,q=e.labelRender,G=e.value,Y=e.defaultValue,Q=e.labelInValue,J=e.onChange,Z=e.maxCount,ee=(0,d.A)(e,ye),te=pe(n),ne=U(r),oe=!(H||!N),re=o.useMemo((function(){return(void 0!==M||"combobox"!==r)&&M}),[M,r]),ie=o.useMemo((function(){return _(g,oe)}),[JSON.stringify(g),oe]),ae=(0,p.A)("",{value:void 0!==b?b:h,postState:function(e){return e||""}}),ce=(0,s.A)(ae,2),se=ce[0],de=ce[1],fe=be(H,N,ie,R,z),me=fe.valueOptions,ve=fe.labelOptions,ge=fe.options,he=o.useCallback((function(e){return I(e).map((function(e){var t,n,o,r,i,a;(function(e){return!e||"object"!==(0,f.A)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o);var c,l=me.get(t);l&&(void 0===n&&(n=null===l||void 0===l?void 0:l[z||ie.label]),void 0===o&&(o=null!==(c=null===l||void 0===l?void 0:l.key)&&void 0!==c?c:t),r=null===l||void 0===l?void 0:l.disabled,i=null===l||void 0===l?void 0:l.title);return{label:n,value:t,key:o,disabled:r,title:i}}))}),[ie,z,me]),Se=(0,p.A)(Y,{value:G}),Ee=(0,s.A)(Se,2),Ce=Ee[0],xe=Ee[1],Ie=o.useMemo((function(){var e,t=he(ne&&null===Ce?[]:Ce);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Ce,he,r,ne]),Me=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?(0,u.A)((0,u.A)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),c=new Map,l=new Map;return a.forEach((function(e){c.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=c,n.current.options=l,a}),[e,t]),o.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Ie,me),Oe=(0,s.A)(Me,2),Re=Oe[0],ze=Oe[1],He=o.useMemo((function(){if(!r&&1===Re.length){var e=Re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Re.map((function(e){var t;return(0,u.A)((0,u.A)({},e),{},{label:null!==(t="function"===typeof q?q(e):e.label)&&void 0!==t?t:e.value})}))}),[r,Re,q]),De=o.useMemo((function(){return new Set(Re.map((function(e){return e.value})))}),[Re]);o.useEffect((function(){if("combobox"===r){var e,t=null===(e=Re[0])||void 0===e?void 0:e.value;de(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[Re]);var Ne=Ae((function(e,t){var n=null!==t&&void 0!==t?t:e;return(0,l.A)((0,l.A)({},ie.value,e),ie.label,n)})),Pe=function(e,t,n,r,i){return o.useMemo((function(){if(!n||!1===r)return e;var o=t.options,a=t.label,c=t.value,s=[],d="function"===typeof r,f=n.toUpperCase(),p=d?r:function(e,t){return i?ue(t[i],f):t[o]?ue(t["children"!==a?a:"label"],f):ue(t[c],f)},m=d?function(e){return K(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(p(n,m(e)))s.push(e);else{var t=e[o].filter((function(e){return p(n,m(e))}));t.length&&s.push((0,u.A)((0,u.A)({},e),{},(0,l.A)({},o,t)))}else p(n,m(e))&&s.push(e)})),s}),[e,r,i,n,t])}(o.useMemo((function(){if("tags"!==r)return ge;var e=(0,c.A)(ge);return(0,c.A)(Re).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return me.has(e)})(n)||e.push(Ne(n,t.label))})),e}),[Ne,ge,me,Re,r]),ie,se,re,R),Te=o.useMemo((function(){return"tags"!==r||!se||Pe.some((function(e){return e[R||"value"]===se}))||Pe.some((function(e){return e[ie.value]===se}))?Pe:[Ne(se)].concat((0,c.A)(Pe))}),[Ne,R,r,Pe,se,ie]),ke=o.useMemo((function(){return O?(0,c.A)(Te).sort((function(e,t){return O(e,t)})):Te}),[Te,O]),Le=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=_(n,!1),a=i.label,c=i.value,l=i.options,u=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[c];r.push({key:W(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var s=t[u];void 0===s&&o&&(s=t.label),r.push({key:W(t,r.length),group:!0,data:t,label:s}),e(t[l],!0)}}))}(e,!1),r}(ke,{fieldNames:ie,childrenAsData:oe})}),[ke,ie,oe]),je=function(e){var t=he(e);if(xe(t),J&&(t.length!==Re.length||t.some((function(e,t){var n;return(null===(n=Re[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=Q?t:t.map((function(e){return e.value})),o=t.map((function(e){return K(ze(e.value))}));J(ne?n:n[0],ne?o:o[0])}},Be=o.useState(null),Fe=(0,s.A)(Be,2),We=Fe[0],Ve=Fe[1],_e=o.useState(0),Ke=(0,s.A)(_e,2),Xe=Ke[0],qe=Ke[1],Ge=void 0!==P?P:"combobox"!==r,Ye=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;qe(t),v&&"combobox"===r&&null!==e&&"keyboard"===o&&Ve(String(e))}),[v,r]),Ue=function(e,t,n){var o=function(){var t,n=ze(e);return[Q?{label:null===n||void 0===n?void 0:n[ie.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,K(n)]};if(t&&S){var r=o(),i=(0,s.A)(r,2),a=i[0],c=i[1];S(a,c)}else if(!t&&E&&"clear"!==n){var l=o(),u=(0,s.A)(l,2),d=u[0],f=u[1];E(d,f)}},Qe=Ae((function(e,t){var n,o=!ne||t.selected;n=o?ne?[].concat((0,c.A)(Re),[e]):[e]:Re.filter((function(t){return t.value!==e})),je(n),Ue(e,o),"combobox"===r?Ve(""):U&&!w||(de(""),Ve(""))})),$e=o.useMemo((function(){var e=!1!==k&&!1!==x;return(0,u.A)((0,u.A)({},fe),{},{flattenOptions:Le,onActiveValue:Ye,defaultActiveFirstOption:Ge,onSelect:Qe,menuItemSelectedIcon:T,rawValues:De,fieldNames:ie,virtual:e,direction:L,listHeight:B,listItemHeight:V,childrenAsData:oe,maxCount:Z,optionRender:D})}),[Z,fe,Le,Ye,Ge,Qe,T,De,ie,k,x,L,B,V,oe,D]);return o.createElement(X.Provider,{value:$e},o.createElement($,(0,a.A)({},ee,{id:te,prefixCls:m,ref:t,omitDomProps:we,mode:r,displayValues:He,onDisplayValuesChange:function(e,t){je(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Ue(e.value,!1,n)}))},direction:L,searchValue:se,onSearch:function(e,t){if(de(e),Ve(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&je(e),null===A||void 0===A||A(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,c.A)(De),[n])));je(o),Ue(n,!0),de("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=ve.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,c.A)(De),(0,c.A)(t))));je(n),n.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:x,OptionList:le,emptyOptions:!Le.length,activeValue:We,activeDescendantId:"".concat(te,"_list_").concat(Xe)})))}));var Ee=Se;Ee.Option=te,Ee.OptGroup=Z;const Ce=Ee;var xe=n(64980),Ie=n(83290),Me=n(29854),Oe=n(77689),Re=n(35296),ze=n(54633),He=n(78440),De=n(78887),Ne=n(89122),Pe=n(11250),Te=n(82805),ke=n(45132),Le=n(691);const je=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};var Be=n(94414),Fe=n(92919),We=n(66712),Ve=n(78365),_e=n(24760),Ke=n(29795);const Xe=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},qe=e=>{const{antCls:t,componentCls:n}=e,o="".concat(n,"-item"),r="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),i="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),a="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),c="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,Be.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n          ".concat(r).concat(c,"bottomLeft,\n          ").concat(i).concat(c,"bottomLeft\n        ")]:{animationName:_e.ox},["\n          ".concat(r).concat(c,"topLeft,\n          ").concat(i).concat(c,"topLeft,\n          ").concat(r).concat(c,"topRight,\n          ").concat(i).concat(c,"topRight\n        ")]:{animationName:_e.nP},["".concat(a).concat(c,"bottomLeft")]:{animationName:_e.vR},["\n          ".concat(a).concat(c,"topLeft,\n          ").concat(a).concat(c,"topRight\n        ")]:{animationName:_e.YU},"&-hidden":{display:"none"},["".concat(o)]:Object.assign(Object.assign({},Xe(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Be.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(o,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(o,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(o,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(o,"-option-selected:not(").concat(o,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(o,"-option-selected:not(").concat(o,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(o,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Xe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,_e._j)(e,"slide-up"),(0,_e._j)(e,"slide-down"),(0,Ke.Mh)(e,"move-up"),(0,Ke.Mh)(e,"move-down")]};var Ge=n(36647);const Ye=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:c,colorIcon:l,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:s}=e,d="".concat(t,"-selection-overflow");return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},["".concat(t,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:s,borderRadius:o,cursor:"default",transition:"font-size ".concat(r,", line-height ").concat(r,", height ").concat(r),marginInlineEnd:e.calc(s).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),["".concat(t,"-disabled&")]:{color:a,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Be.Nk)()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(n)]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},Ue=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r="".concat(n,"-selection-overflow"),i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),c=t?"".concat(n,"-").concat(t):"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:(0,Ge.zA)(t),itemLineHeight:(0,Ge.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{["".concat(n,"-multiple").concat(c)]:Object.assign(Object.assign({},Ye(e)),{["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat((0,Ge.zA)(o)," 0"),lineHeight:(0,Ge.zA)(i),visibility:"hidden",content:'"\\a0"'}},["".concat(n,"-selection-item")]:{height:l.itemHeight,lineHeight:(0,Ge.zA)(l.itemLineHeight)},["".concat(r,"-item + ").concat(r,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(r,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:(0,Ge.zA)(i),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}})}};function Qe(e,t){const{componentCls:n}=e,o=t?"".concat(n,"-").concat(t):"",r={["".concat(n,"-multiple").concat(o)]:{fontSize:e.fontSize,["".concat(n,"-selector")]:{["".concat(n,"-show-search&")]:{cursor:"text"}},["\n        &".concat(n,"-show-arrow ").concat(n,"-selector,\n        &").concat(n,"-allow-clear ").concat(n,"-selector\n      ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Ue(e,t),r]}const $e=e=>{const{componentCls:t}=e,n=(0,Ve.h1)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,Ve.h1)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Qe(e),Qe(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},Qe(o,"lg")]};function Je(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(a)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,Be.dF)(e,!0)),{display:"flex",borderRadius:r,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n          ".concat(n,"-selection-item,\n          ").concat(n,"-selection-placeholder\n        ")]:{padding:0,lineHeight:(0,Ge.zA)(i),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n        &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n        &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n      ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat((0,Ge.zA)(o)),["".concat(n,"-selection-search-input")]:{height:i},"&:after":{lineHeight:(0,Ge.zA)(i)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat((0,Ge.zA)(o)),"&:after":{display:"none"}}}}}}}function Ze(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Je(e),Je((0,Ve.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat((0,Ge.zA)(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n            &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n            &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n          ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Je((0,Ve.h1)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const et=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat((0,Ge.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat((0,Ge.zA)(r)," ").concat(t.activeShadowColor),outline:0}}}},tt=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},et(e,t))}),nt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},et(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),tt(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),tt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,Ge.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),ot=(e,t)=>{const{componentCls:n,antCls:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat((0,Ge.zA)(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},rt=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},ot(e,t))}),it=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ot(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),rt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat((0,Ge.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),at=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,Ge.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}}),ct=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},nt(e)),it(e)),at(e))}),lt=e=>{const{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ut=e=>{const{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},st=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},(0,Be.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},lt(e)),ut(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Be.L9),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},Be.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,Be.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[r]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},dt=e=>{const{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},st(e),Ze(e),$e(e),qe(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},(0,Fe.G)(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]},ft=(0,We.OF)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=(0,Ve.h1)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dt(o),ct(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:c,controlPaddingHorizontal:l,zIndexPopupBase:u,colorText:s,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:h}=e,b=2*c,A=2*o,y=Math.min(r-b,r-A),w=Math.min(i-b,i-A),S=Math.min(a-b,a-A);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(c/2),zIndexPopup:u+50,optionSelectedColor:s,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:"".concat((r-t*n)/2,"px ").concat(l,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:y,multipleItemHeightSM:w,multipleItemHeightLG:S,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var pt=n(63390),mt=n(78528),vt=n(53727),gt=n(28369),ht=n(40164),bt=n(62058);var At=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const yt="SECRET_COMBOBOX_MODE_DO_NOT_USE",wt=(e,t)=>{var n;const{prefixCls:r,bordered:a,className:c,rootClassName:l,getPopupContainer:u,popupClassName:s,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:v,disabled:g,notFoundContent:h,status:b,builtinPlacements:A,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:S,style:E,allowClear:C,variant:x,dropdownStyle:I,transitionName:M,tagRender:O,maxCount:R}=e,z=At(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:H,getPrefixCls:D,renderEmpty:N,direction:P,virtual:T,popupMatchSelectWidth:k,popupOverflow:L,select:j}=o.useContext(Re.QO),[,B]=(0,Le.Ay)(),F=null!==m&&void 0!==m?m:null===B||void 0===B?void 0:B.controlHeight,W=D("select",r),V=D(),_=null!==S&&void 0!==S?S:P,{compactSize:K,compactItemClassnames:X}=(0,ke.RQ)(W,_),[q,G]=(0,Te.A)(x,a),Y=(0,De.A)(W),[U,Q,$]=ft(W,Y),J=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===yt?"combobox":t}),[e.mode]),Z="multiple"===J||"tags"===J,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(n=null!==w&&void 0!==w?w:y)&&void 0!==n?n:k,{status:ne,hasFeedback:re,isFormItemInput:ie,feedbackIcon:ae}=o.useContext(Pe.$W),ce=(0,Oe.v)(ne,b);let le;le=void 0!==h?h:"combobox"===J?null:(null===N||void 0===N?void 0:N("Select"))||o.createElement(ze.A,{componentName:"Select"});const{suffixIcon:ue,itemIcon:se,removeIcon:de,clearIcon:fe}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:c,hasFeedback:l,prefixCls:u,showSuffixIcon:s,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!==n&&void 0!==n?n:o.createElement(mt.A,null),v=e=>null!==t||l||f?o.createElement(o.Fragment,null,!1!==s&&e,l&&d):null;let g=null;if(void 0!==t)g=v(t);else if(a)g=v(o.createElement(ht.A,{spin:!0}));else{const e="".concat(u,"-suffix");g=t=>{let{open:n,showSearch:r}=t;return v(n&&r?o.createElement(bt.A,{className:e}):o.createElement(gt.A,{className:e}))}}let h=null;h=void 0!==r?r:c?o.createElement(pt.A,null):null;let b=null;return b=void 0!==i?i:o.createElement(vt.A,null),{clearIcon:m,suffixIcon:g,itemIcon:h,removeIcon:b}}(Object.assign(Object.assign({},z),{multiple:Z,hasFeedback:re,feedbackIcon:ae,showSuffixIcon:ee,prefixCls:W,componentName:"Select"})),pe=!0===C?{clearIcon:fe}:C,me=(0,oe.A)(z,["suffixIcon","itemIcon"]),ve=i()(s||d,{["".concat(W,"-dropdown-").concat(_)]:"rtl"===_},l,$,Y,Q),ge=(0,Ne.A)((e=>{var t;return null!==(t=null!==v&&void 0!==v?v:K)&&void 0!==t?t:e})),he=o.useContext(He.A),be=null!==g&&void 0!==g?g:he,Ae=i()({["".concat(W,"-lg")]:"large"===ge,["".concat(W,"-sm")]:"small"===ge,["".concat(W,"-rtl")]:"rtl"===_,["".concat(W,"-").concat(q)]:G,["".concat(W,"-in-form-item")]:ie},(0,Oe.L)(W,ce,re),X,null===j||void 0===j?void 0:j.className,c,l,$,Y,Q),ye=o.useMemo((()=>void 0!==p?p:"rtl"===_?"bottomRight":"bottomLeft"),[p,_]);const[we]=(0,xe.YK)("SelectLike",null===I||void 0===I?void 0:I.zIndex);return U(o.createElement(Ce,Object.assign({ref:t,virtual:T,showSearch:null===j||void 0===j?void 0:j.showSearch},me,{style:Object.assign(Object.assign({},null===j||void 0===j?void 0:j.style),E),dropdownMatchSelectWidth:te,transitionName:(0,Ie.b)(V,"slide-up",M),builtinPlacements:je(A,L),listHeight:f,listItemHeight:F,mode:J,prefixCls:W,placement:ye,direction:_,suffixIcon:ue,menuItemSelectedIcon:se,removeIcon:de,allowClear:pe,notFoundContent:le,className:Ae,getPopupContainer:u||H,dropdownClassName:ve,disabled:be,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:we}),maxCount:Z?R:void 0,tagRender:Z?O:void 0})))};const St=o.forwardRef(wt),Et=(0,Me.A)(St);St.SECRET_COMBOBOX_MODE_DO_NOT_USE=yt,St.Option=te,St.OptGroup=Z,St._InternalPanelDoNotUseOrYouWillBeFired=Et;const Ct=St},29795:(e,t,n)=>{n.d(t,{Mh:()=>f});var o=n(36647),r=n(40955);const i=new o.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new o.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),c=new o.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new o.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u=new o.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new o.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new o.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new o.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:c,outKeyframes:l},"move-right":{inKeyframes:u,outKeyframes:s}},f=(e,t)=>{const{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:i,outKeyframes:a}=d[t];return[(0,r.b)(o,i,a,e.motionDurationMid),{["\n        ".concat(o,"-enter,\n        ").concat(o,"-appear\n      ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},98424:(e,t,n)=>{n.d(t,{A:()=>B});var o=n(58168),r=n(82284),i=n(89379),a=n(64467),c=n(5544),l=n(53986),u=n(98139),s=n.n(u),d=n(89635),f=n(87483),p=n(52664),m=n(65043),v=n(97950),g=m.forwardRef((function(e,t){var n=e.height,r=e.offsetY,c=e.offsetX,l=e.children,u=e.prefixCls,f=e.onInnerResize,p=e.innerProps,v=e.rtl,g=e.extra,h={},b={display:"flex",flexDirection:"column"};return void 0!==r&&(h={height:n,position:"relative",overflow:"hidden"},b=(0,i.A)((0,i.A)({},b),{},(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)({transform:"translateY(".concat(r,"px)")},v?"marginRight":"marginLeft",-c),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:h},m.createElement(d.A,{onResize:function(e){e.offsetHeight&&f&&f()}},m.createElement("div",(0,o.A)({style:b,className:s()((0,a.A)({},"".concat(u,"-holder-inner"),u)),ref:t},p),l,g)))}));g.displayName="Filler";const h=g;function b(e){var t=e.children,n=e.setRef,o=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:o})}function A(e,t,n){var o=m.useState(e),r=(0,c.A)(o,2),i=r[0],a=r[1],l=m.useState(null),u=(0,c.A)(l,2),s=u[0],d=u[1];return m.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var c={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):c}for(var u=null,s=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var f=l(o[d]);if(f!==l(r[d])){u=d,s=s||f!==l(r[d+1]);break}}return null===u?null:{index:u,multiple:s}}(i||[],e||[],t);void 0!==(null===o||void 0===o?void 0:o.index)&&(null===n||void 0===n||n(o.index),d(e[o.index])),a(e)}),[e]),[s]}var y=n(45818);const w="object"===("undefined"===typeof navigator?"undefined":(0,r.A)(navigator))&&/Firefox/i.test(navigator.userAgent),S=function(e,t,n,o){var r=(0,m.useRef)(!1),i=(0,m.useRef)(null);var a=(0,m.useRef)({top:e,bottom:t,left:n,right:o});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout((function(){r.current=!1}),50)),!r.current&&o}};function E(e,t,n,o,r,i,a){var c=(0,m.useRef)(0),l=(0,m.useRef)(null),u=(0,m.useRef)(null),s=(0,m.useRef)(!1),d=S(t,n,o,r);var f=(0,m.useRef)(null),p=(0,m.useRef)(null);return[function(t){if(e){y.A.cancel(p.current),p.current=(0,y.A)((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,m=n,v=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(m=o,v=0,f.current="sx");var g=Math.abs(m),h=Math.abs(v);null===f.current&&(f.current=i&&g>h?"x":"y"),"y"===f.current?function(e,t){y.A.cancel(l.current),c.current+=t,u.current=t,d(!1,t)||(w||e.preventDefault(),l.current=(0,y.A)((function(){var e=s.current?10:1;a(c.current*e),c.current=0})))}(t,v):function(e,t){a(t,!0),w||e.preventDefault()}(t,m)}},function(t){e&&(s.current=t.detail===u.current)}]}var C=n(25593),x=n(23029),I=n(92901);const M=function(){function e(){(0,x.A)(this,e),(0,a.A)(this,"maps",void 0),(0,a.A)(this,"id",0),this.maps=Object.create(null)}return(0,I.A)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var O=14/15;var R=10;function z(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}const H=m.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,l=e.scrollRange,u=e.onStartMove,d=e.onStopMove,f=e.onScroll,p=e.horizontal,v=e.spinSize,g=e.containerSize,h=e.style,b=e.thumbStyle,A=m.useState(!1),w=(0,c.A)(A,2),S=w[0],E=w[1],C=m.useState(null),x=(0,c.A)(C,2),I=x[0],M=x[1],O=m.useState(null),R=(0,c.A)(O,2),H=R[0],D=R[1],N=!o,P=m.useRef(),T=m.useRef(),k=m.useState(!1),L=(0,c.A)(k,2),j=L[0],B=L[1],F=m.useRef(),W=function(){clearTimeout(F.current),B(!0),F.current=setTimeout((function(){B(!1)}),3e3)},V=l-g||0,_=g-v||0,K=m.useMemo((function(){return 0===r||0===V?0:r/V*_}),[r,V,_]),X=m.useRef({top:K,dragging:S,pageY:I,startTop:H});X.current={top:K,dragging:S,pageY:I,startTop:H};var q=function(e){E(!0),M(z(e,p)),D(X.current.top),u(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=P.current,n=T.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",q),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",q)}}),[]);var G=m.useRef();G.current=V;var Y=m.useRef();Y.current=_,m.useEffect((function(){if(S){var e,t=function(t){var n=X.current,o=n.dragging,r=n.pageY,i=n.startTop;y.A.cancel(e);var a=g/P.current.getBoundingClientRect().height;if(o){var c=(z(t,p)-r)*a,l=i;!N&&p?l-=c:l+=c;var u=G.current,s=Y.current,d=s?l/s:0,m=Math.ceil(d*u);m=Math.max(m,0),m=Math.min(m,u),e=(0,y.A)((function(){f(m,p)}))}},n=function(){E(!1),d()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),y.A.cancel(e)}}}),[S]),m.useEffect((function(){W()}),[r]),m.useImperativeHandle(t,(function(){return{delayHidden:W}}));var U="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:j?null:"hidden"},$={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,$.height="100%",$.width=v,N?$.left=K:$.right=K):(Q.width=8,Q.top=0,Q.bottom=0,N?Q.right=0:Q.left=0,$.width="100%",$.height=v,$.top=K),m.createElement("div",{ref:P,className:s()(U,(0,a.A)((0,a.A)((0,a.A)({},"".concat(U,"-horizontal"),p),"".concat(U,"-vertical"),!p),"".concat(U,"-visible"),j)),style:(0,i.A)((0,i.A)({},Q),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:W},m.createElement("div",{ref:T,className:s()("".concat(U,"-thumb"),(0,a.A)({},"".concat(U,"-thumb-moving"),S)),style:(0,i.A)((0,i.A)({},$),b),onMouseDown:q}))}));var D=20;function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,D),Math.floor(t)}var P=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],T=[],k={overflowY:"auto",overflowAnchor:"none"};function L(e,t){var n=e.prefixCls,u=void 0===n?"rc-virtual-list":n,g=e.className,w=e.height,x=e.itemHeight,I=e.fullHeight,z=void 0===I||I,D=e.style,L=e.data,j=e.children,B=e.itemKey,F=e.virtual,W=e.direction,V=e.scrollWidth,_=e.component,K=void 0===_?"div":_,X=e.onScroll,q=e.onVirtualScroll,G=e.onVisibleChange,Y=e.innerProps,U=e.extraRender,Q=e.styles,$=(0,l.A)(e,P),J=m.useCallback((function(e){return"function"===typeof B?B(e):null===e||void 0===e?void 0:e[B]}),[B]),Z=function(e,t,n){var o=m.useState(0),r=(0,c.A)(o,2),i=r[0],a=r[1],l=(0,m.useRef)(new Map),u=(0,m.useRef)(new M),s=(0,m.useRef)();function d(){y.A.cancel(s.current)}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,C.Ay)(e),o=n.offsetHeight;u.current.get(t)!==o&&u.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=(0,y.A)(t)}return(0,m.useEffect)((function(){return d}),[]),[function(o,r){var i=e(o),a=l.current.get(i);r?(l.current.set(i,r),f()):l.current.delete(i),!a!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},f,u.current,i]}(J,null,null),ee=(0,c.A)(Z,4),te=ee[0],ne=ee[1],oe=ee[2],re=ee[3],ie=!(!1===F||!w||!x),ae=m.useMemo((function(){return Object.values(oe.maps).reduce((function(e,t){return e+t}),0)}),[oe.id,oe.maps]),ce=ie&&L&&(Math.max(x*L.length,ae)>w||!!V),le="rtl"===W,ue=s()(u,(0,a.A)({},"".concat(u,"-rtl"),le),g),se=L||T,de=(0,m.useRef)(),fe=(0,m.useRef)(),pe=(0,m.useRef)(),me=(0,m.useState)(0),ve=(0,c.A)(me,2),ge=ve[0],he=ve[1],be=(0,m.useState)(0),Ae=(0,c.A)(be,2),ye=Ae[0],we=Ae[1],Se=(0,m.useState)(!1),Ee=(0,c.A)(Se,2),Ce=Ee[0],xe=Ee[1],Ie=function(){xe(!0)},Me=function(){xe(!1)},Oe={getKey:J};function Re(e){he((function(t){var n=function(e){var t=e;Number.isNaN(Ye.current)||(t=Math.min(t,Ye.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return de.current.scrollTop=n,n}))}var ze=(0,m.useRef)({start:0,end:se.length}),He=(0,m.useRef)(),De=A(se,J),Ne=(0,c.A)(De,1)[0];He.current=Ne;var Pe=m.useMemo((function(){if(!ie)return{scrollHeight:void 0,start:0,end:se.length-1,offset:void 0};var e;if(!ce)return{scrollHeight:(null===(e=fe.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:se.length-1,offset:void 0};for(var t,n,o,r=0,i=se.length,a=0;a<i;a+=1){var c=se[a],l=J(c),u=oe.get(l),s=r+(void 0===u?x:u);s>=ge&&void 0===t&&(t=a,n=r),s>ge+w&&void 0===o&&(o=a),r=s}return void 0===t&&(t=0,n=0,o=Math.ceil(w/x)),void 0===o&&(o=se.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,se.length-1),offset:n}}),[ce,ie,ge,se,re,w]),Te=Pe.scrollHeight,ke=Pe.start,Le=Pe.end,je=Pe.offset;ze.current.start=ke,ze.current.end=Le;var Be=m.useState({width:0,height:w}),Fe=(0,c.A)(Be,2),We=Fe[0],Ve=Fe[1],_e=(0,m.useRef)(),Ke=(0,m.useRef)(),Xe=m.useMemo((function(){return N(We.width,V)}),[We.width,V]),qe=m.useMemo((function(){return N(We.height,Te)}),[We.height,Te]),Ge=Te-w,Ye=(0,m.useRef)(Ge);Ye.current=Ge;var Ue=ge<=0,Qe=ge>=Ge,$e=ye<=0,Je=ye>=V,Ze=S(Ue,Qe,$e,Je),et=function(){return{x:le?-ye:ye,y:ge}},tt=(0,m.useRef)(et()),nt=(0,f._q)((function(e){if(q){var t=(0,i.A)((0,i.A)({},et()),e);tt.current.x===t.x&&tt.current.y===t.y||(q(t),tt.current=t)}}));function ot(e,t){var n=e;t?((0,v.flushSync)((function(){we(n)})),nt()):Re(n)}var rt=function(e){var t=e,n=V?V-We.width:0;return t=Math.max(t,0),t=Math.min(t,n)},it=(0,f._q)((function(e,t){t?((0,v.flushSync)((function(){we((function(t){return rt(t+(le?-e:e))}))})),nt()):Re((function(t){return t+e}))})),at=E(ie,Ue,Qe,$e,Je,!!V,it),ct=(0,c.A)(at,2),lt=ct[0],ut=ct[1];!function(e,t,n){var o,r=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),c=(0,m.useRef)(null),l=(0,m.useRef)(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),c=i.current-t,u=a.current-o,s=Math.abs(c)>Math.abs(u);s?i.current=t:a.current=o,n(s,s?c:u)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){s?c*=O:u*=O;var e=Math.floor(s?c:u);(!n(s,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16)}},s=function(){r.current=!1,o()},d=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u),c.current.addEventListener("touchend",s))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",s))},(0,p.A)((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(l.current)}}),[e])}(ie,de,(function(e,t,n){return!Ze(e,t,n)&&(lt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),(0,p.A)((function(){function e(e){ie&&e.preventDefault()}var t=de.current;return t.addEventListener("wheel",lt),t.addEventListener("DOMMouseScroll",ut),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",lt),t.removeEventListener("DOMMouseScroll",ut),t.removeEventListener("MozMousePixelScroll",e)}}),[ie]),(0,p.A)((function(){if(V){var e=rt(ye);we(e),nt({x:e})}}),[We.width,V]);var st=function(){var e,t;null===(e=_e.current)||void 0===e||e.delayHidden(),null===(t=Ke.current)||void 0===t||t.delayHidden()},dt=function(e,t,n,o,a,l,u,s){var d=m.useRef(),f=m.useState(null),v=(0,c.A)(f,2),g=v[0],h=v[1];return(0,p.A)((function(){if(g&&g.times<R){if(!e.current)return void h((function(e){return(0,i.A)({},e)}));l();var r=g.targetAlign,c=g.originAlign,s=g.index,d=g.offset,f=e.current.clientHeight,p=!1,m=r,v=null;if(f){for(var b=r||c,A=0,y=0,w=0,S=Math.min(t.length-1,s),E=0;E<=S;E+=1){var C=a(t[E]);y=A;var x=n.get(C);A=w=y+(void 0===x?o:x)}for(var I="top"===b?d:f-d,M=S;M>=0;M-=1){var O=a(t[M]),z=n.get(O);if(void 0===z){p=!0;break}if((I-=z)<=0)break}switch(b){case"top":v=y-d;break;case"bottom":v=w-f+d;break;default:var H=e.current.scrollTop;y<H?m="top":w>H+f&&(m="bottom")}null!==v&&u(v),v!==g.lastTop&&(p=!0)}p&&h((0,i.A)((0,i.A)({},g),{},{times:g.times+1,targetAlign:m,lastTop:v}))}}),[g,e.current]),function(e){if(null!==e&&void 0!==e){if(y.A.cancel(d.current),"number"===typeof e)u(e);else if(e&&"object"===(0,r.A)(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var i=e.offset;h({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else s()}}(de,se,oe,x,J,(function(){return ne(!0)}),Re,st);m.useImperativeHandle(t,(function(){return{nativeElement:pe.current,getScrollInfo:et,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&we(rt(e.left)),dt(e.top)):dt(e)}}})),(0,p.A)((function(){if(G){var e=se.slice(ke,Le+1);G(e,se)}}),[ke,Le,se]);var ft=function(e,t,n,o){var r=m.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),i=(0,c.A)(r,2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,c=a.get(r),u=a.get(i);if(void 0===c||void 0===u)for(var s=e.length,d=l.length;d<s;d+=1){var f,p=e[d],m=t(p);a.set(m,d);var v=null!==(f=n.get(m))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+v,m===r&&(c=d),m===i&&(u=d),void 0!==c&&void 0!==u)break}return{top:l[c-1]||0,bottom:l[u]}}}(se,J,oe,x),pt=null===U||void 0===U?void 0:U({start:ke,end:Le,virtual:ce,offsetX:ye,offsetY:je,rtl:le,getSize:ft}),mt=function(e,t,n,o,r,i,a,c){var l=c.getKey;return e.slice(t,n+1).map((function(e,n){var c=a(e,t+n,{style:{width:o},offsetX:r}),u=l(e);return m.createElement(b,{key:u,setRef:function(t){return i(e,t)}},c)}))}(se,ke,Le,V,ye,te,j,Oe),vt=null;w&&(vt=(0,i.A)((0,a.A)({},z?"height":"maxHeight",w),k),ie&&(vt.overflowY="hidden",V&&(vt.overflowX="hidden"),Ce&&(vt.pointerEvents="none")));var gt={};return le&&(gt.dir="rtl"),m.createElement("div",(0,o.A)({ref:pe,style:(0,i.A)((0,i.A)({},D),{},{position:"relative"}),className:ue},gt,$),m.createElement(d.A,{onResize:function(e){Ve({width:e.offsetWidth,height:e.offsetHeight})}},m.createElement(K,{className:"".concat(u,"-holder"),style:vt,ref:de,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ge&&Re(t),null===X||void 0===X||X(e),nt()},onMouseEnter:st},m.createElement(h,{prefixCls:u,height:Te,offsetX:ye,offsetY:je,scrollWidth:V,onInnerResize:ne,ref:fe,innerProps:Y,rtl:le,extra:pt},mt))),ce&&Te>w&&m.createElement(H,{ref:_e,prefixCls:u,scrollOffset:ge,scrollRange:Te,rtl:le,onScroll:ot,onStartMove:Ie,onStopMove:Me,spinSize:qe,containerSize:We.height,style:null===Q||void 0===Q?void 0:Q.verticalScrollBar,thumbStyle:null===Q||void 0===Q?void 0:Q.verticalScrollBarThumb}),ce&&V>We.width&&m.createElement(H,{ref:Ke,prefixCls:u,scrollOffset:ye,scrollRange:V,rtl:le,onScroll:ot,onStartMove:Ie,onStopMove:Me,spinSize:Xe,containerSize:We.width,horizontal:!0,style:null===Q||void 0===Q?void 0:Q.horizontalScrollBar,thumbStyle:null===Q||void 0===Q?void 0:Q.horizontalScrollBarThumb}))}var j=m.forwardRef(L);j.displayName="List";const B=j}}]);
//# sourceMappingURL=10.e17fbb9c.chunk.js.map