"u"?"undefined":nn(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const jWe=function(e,t,n,r){var i=d.useRef(!1),o=d.useRef(null);function s(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var a=d.useRef({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&a.current.left||c>0&&a.current.right:c<0&&a.current.top||c>0&&a.current.bottom;return u&&f?(clearTimeout(o.current),i.current=!1):(!f||i.current)&&s(),!i.current&&f}};function kLt(e,t,n,r,i,o,s){var a=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=jWe(t,n,r,i);function h(y,b){if(Rr.cancel(l.current),!f(!1,b)){var S=y;if(!S._virtualHandled)S._virtualHandled=!0;else return;a.current+=b,c.current=b,bwe||S.preventDefault(),l.current=Rr(function(){var w=u.current?10:1;s(a.current*w,!1),a.current=0})}}function g(y,b){s(b,!0),bwe||y.preventDefault()}var p=d.useRef(null),m=d.useRef(null);function v(y){if(e){Rr.cancel(m.current),m.current=Rr(function(){p.current=null},2);var b=y.deltaX,S=y.deltaY,w=y.shiftKey,x=b,E=S;(p.current==="sx"||!p.current&&w&&S&&!b)&&(x=S,E=0,p.current="sx");var R=Math.abs(x),O=Math.abs(E);p.current===null&&(p.current=o&&R>O?"x":"y"),p.current==="y"?h(y,E):g(y,x)}}function C(y){e&&(u.current=y.detail===c.current)}return[v,C]}function zLt(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Ce(i,2),s=o[0],a=o[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=s.get(u),g=s.get(f);if(h===void 0||g===void 0)for(var p=e.length,m=a.length;m0&&arguments[0]!==void 0?arguments[0]:!1;u();var p=function(){a.current.forEach(function(C,y){if(C&&C.offsetParent){var b=nC(C),S=b.offsetHeight,w=getComputedStyle(b),x=w.marginTop,E=w.marginBottom,R=Swe(x),O=Swe(E),T=S+R+O;l.current.get(y)!==T&&l.current.set(y,T)}}),s(function(C){return C+1})};if(g)p();else{c.current+=1;var m=c.current;Promise.resolve().then(function(){m===c.current&&p()})}}function h(g,p){var m=e(g);a.current.get(m),p?(a.current.set(m,p),f()):a.current.delete(m)}return d.useEffect(function(){return u},[]),[h,f,l.current,o]}var wwe=14/15;function jLt(e,t,n){var r=d.useRef(!1),i=d.useRef(0),o=d.useRef(0),s=d.useRef(null),a=d.useRef(null),l,c=function(g){if(r.current){var p=Math.ceil(g.touches[0].pageX),m=Math.ceil(g.touches[0].pageY),v=i.current-p,C=o.current-m,y=Math.abs(v)>Math.abs(C);y?i.current=p:o.current=m;var b=n(y,y?v:C,!1,g);b&&g.preventDefault(),clearInterval(a.current),b&&(a.current=setInterval(function(){y?v*=wwe:C*=wwe;var S=Math.floor(y?v:C);(!n(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(a.current)},16))}},u=function(){r.current=!1,l()},f=function(g){l(),g.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),s.current=g.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};l=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},Zn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",f),l(),clearInterval(a.current)}},[e])}function xwe(e){return Math.floor(Math.pow(e,.5))}function ile(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function VLt(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var i=!1,o,s,a=function(){Rr.cancel(o)},l=function h(){a(),o=Rr(function(){n(s),h()})},c=function(g){var p=g;p._virtualHandled||(p._virtualHandled=!0,i=!0)},u=function(){i=!1,a()},f=function(g){if(i){var p=ile(g,!1),m=r.getBoundingClientRect(),v=m.top,C=m.bottom;if(p<=v){var y=v-p;s=-xwe(y),l()}else if(p>=C){var b=p-C;s=xwe(b),l()}else a()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),a()}}},[e])}var GLt=10;function WLt(e,t,n,r,i,o,s,a){var l=d.useRef(),c=d.useState(null),u=Ce(c,2),f=u[0],h=u[1];return Zn(function(){if(f&&f.times=0;D-=1){var k=i(t[D]),L=n.get(k);if(L===void 0){y=!0;break}if(F-=L,F<=0)break}switch(w){case"top":S=E-v;break;case"bottom":S=R-C+v;break;default:{var I=e.current.scrollTop,A=I+C;EA&&(b="bottom")}}S!==null&&s(S),S!==f.lastTop&&(y=!0)}y&&h(se(se({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(g){if(g==null){a();return}if(Rr.cancel(l.current),typeof g=="number")s(g);else if(g&&nn(g)==="object"){var p,m=g.align;"index"in g?p=g.index:p=t.findIndex(function(y){return i(y)===g.key});var v=g.offset,C=v===void 0?0:v;h({times:0,index:p,offset:C,originAlign:m})}}}var Ewe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,s=e.onStartMove,a=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,h=e.style,g=e.thumbStyle,p=d.useState(!1),m=Ce(p,2),v=m[0],C=m[1],y=d.useState(null),b=Ce(y,2),S=b[0],w=b[1],x=d.useState(null),E=Ce(x,2),R=E[0],O=E[1],T=!r,M=d.useRef(),_=d.useRef(),F=d.useState(!1),D=Ce(F,2),k=D[0],L=D[1],I=d.useRef(),A=function(){clearTimeout(I.current),L(!0),I.current=setTimeout(function(){L(!1)},3e3)},N=o-f||0,B=f-u||0,z=d.useMemo(function(){if(i===0||N===0)return 0;var ne=i/N;return ne*B},[i,N,B]),j=function(Z){Z.stopPropagation(),Z.preventDefault()},W=d.useRef({top:z,dragging:v,pageY:S,startTop:R});W.current={top:z,dragging:v,pageY:S,startTop:R};var G=function(Z){C(!0),w(ile(Z,c)),O(W.current.top),s(),Z.stopPropagation(),Z.preventDefault()};d.useEffect(function(){var ne=function(oe){oe.preventDefault()},Z=M.current,ee=_.current;return Z.addEventListener("touchstart",ne,{passive:!1}),ee.addEventListener("touchstart",G,{passive:!1}),function(){Z.removeEventListener("touchstart",ne),ee.removeEventListener("touchstart",G)}},[]);var K=d.useRef();K.current=N;var q=d.useRef();q.current=B,d.useEffect(function(){if(v){var ne,Z=function(oe){var le=W.current,ge=le.dragging,he=le.pageY,ye=le.startTop;Rr.cancel(ne);var ue=M.current.getBoundingClientRect(),ve=f/(c?ue.width:ue.height);if(ge){var de=(ile(oe,c)-he)*ve,xe=ye;!T&&c?xe-=de:xe+=de;var Ee=K.current,De=q.current,Be=De?xe/De:0,Ge=Math.ceil(Be*Ee);Ge=Math.max(Ge,0),Ge=Math.min(Ge,Ee),ne=Rr(function(){l(Ge,c)})}},ee=function(){C(!1),a()};return window.addEventListener("mousemove",Z,{passive:!0}),window.addEventListener("touchmove",Z,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Rr.cancel(ne)}}},[v]),d.useEffect(function(){return A(),function(){clearTimeout(I.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:A}});var X="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:k?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,te.height="100%",te.width=u,T?te.left=z:te.right=z):(Q.width=8,Q.top=0,Q.bottom=0,T?Q.right=0:Q.left=0,te.width="100%",te.height=u,te.top=z),d.createElement("div",{ref:M,className:we(X,ie(ie(ie({},"".concat(X,"-horizontal"),c),"".concat(X,"-vertical"),!c),"".concat(X,"-visible"),k)),style:se(se({},Q),h),onMouseDown:j,onMouseMove:A},d.createElement("div",{ref:_,className:we("".concat(X,"-thumb"),ie({},"".concat(X,"-thumb-moving"),v)),style:se(se({},te),g),onMouseDown:G}))}),ULt=20;function Rwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ULt),Math.floor(n)}var qLt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],KLt=[],YLt={overflowY:"auto",overflowAnchor:"none"};function XLt(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,s=e.itemHeight,a=e.fullHeight,l=a===void 0?!0:a,c=e.style,u=e.data,f=e.children,h=e.itemKey,g=e.virtual,p=e.direction,m=e.scrollWidth,v=e.component,C=v===void 0?"div":v,y=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,x=e.extraRender,E=e.styles,R=on(e,qLt),O=d.useCallback(function(xt){return typeof h=="function"?h(xt):xt==null?void 0:xt[h]},[h]),T=HLt(O),M=Ce(T,4),_=M[0],F=M[1],D=M[2],k=M[3],L=!!(g!==!1&&o&&s),I=d.useMemo(function(){return Object.values(D.maps).reduce(function(xt,Rt){return xt+Rt},0)},[D.id,D.maps]),A=L&&u&&(Math.max(s*u.length,I)>o||!!m),N=p==="rtl",B=we(r,ie({},"".concat(r,"-rtl"),N),i),z=u||KLt,j=d.useRef(),W=d.useRef(),G=d.useRef(),K=d.useState(0),q=Ce(K,2),X=q[0],Q=q[1],te=d.useState(0),ne=Ce(te,2),Z=ne[0],ee=ne[1],J=d.useState(!1),oe=Ce(J,2),le=oe[0],ge=oe[1],he=function(){ge(!0)},ye=function(){ge(!1)},ue={getKey:O};function ve(xt){Q(function(Rt){var Ft;typeof xt=="function"?Ft=xt(Rt):Ft=xt;var hn=tt(Ft);return j.current.scrollTop=hn,hn})}var de=d.useRef({start:0,end:z.length}),xe=d.useRef(),Ee=NLt(z,O),De=Ce(Ee,1),Be=De[0];xe.current=Be;var Ge=d.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!A){var xt;return{scrollHeight:((xt=W.current)===null||xt===void 0?void 0:xt.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var Rt=0,Ft,hn,Mt,mt=z.length,jt=0;jt=X&&Ft===void 0&&(Ft=jt,hn=Rt),cn>X+o&&Mt===void 0&&(Mt=jt),Rt=cn}return Ft===void 0&&(Ft=0,hn=0,Mt=Math.ceil(o/s)),Mt===void 0&&(Mt=z.length-1),Mt=Math.min(Mt+1,z.length-1),{scrollHeight:Rt,start:Ft,end:Mt,offset:hn}},[A,L,X,z,k,o]),Ue=Ge.scrollHeight,We=Ge.start,Ve=Ge.end,Fe=Ge.offset;de.current.start=We,de.current.end=Ve,d.useLayoutEffect(function(){var xt=D.getRecord();if(xt.size===1){var Rt=Array.from(xt)[0],Ft=O(z[We]);if(Ft===Rt){var hn=D.get(Rt),Mt=hn-s;ve(function(mt){return mt+Mt})}}D.resetRecord()},[Ue]);var ke=d.useState({width:0,height:o}),Ye=Ce(ke,2),ze=Ye[0],Re=Ye[1],Le=function(Rt){Re({width:Rt.offsetWidth,height:Rt.offsetHeight})},Me=d.useRef(),be=d.useRef(),je=d.useMemo(function(){return Rwe(ze.width,m)},[ze.width,m]),Xe=d.useMemo(function(){return Rwe(ze.height,Ue)},[ze.height,Ue]),ft=Ue-o,Tt=d.useRef(ft);Tt.current=ft;function tt(xt){var Rt=xt;return Number.isNaN(Tt.current)||(Rt=Math.min(Rt,Tt.current)),Rt=Math.max(Rt,0),Rt}var pt=X<=0,$t=X>=ft,wt=Z<=0,It=Z>=m,Ct=jWe(pt,$t,wt,It),ot=function(){return{x:N?-Z:Z,y:X}},nt=d.useRef(ot()),fe=Hn(function(xt){if(b){var Rt=se(se({},ot()),xt);(nt.current.x!==Rt.x||nt.current.y!==Rt.y)&&(b(Rt),nt.current=Rt)}});function Te(xt,Rt){var Ft=xt;Rt?(fo.flushSync(function(){ee(Ft)}),fe()):ve(Ft)}function $e(xt){var Rt=xt.currentTarget.scrollTop;Rt!==X&&ve(Rt),y==null||y(xt),fe()}var He=function(Rt){var Ft=Rt,hn=m?m-ze.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,hn),Ft},it=Hn(function(xt,Rt){Rt?(fo.flushSync(function(){ee(function(Ft){var hn=Ft+(N?-xt:xt);return He(hn)})}),fe()):ve(function(Ft){var hn=Ft+xt;return hn})}),at=kLt(L,pt,$t,wt,It,!!m,it),gt=Ce(at,2),yt=gt[0],st=gt[1];jLt(L,j,function(xt,Rt,Ft,hn){var Mt=hn;return Ct(xt,Rt,Ft)?!1:!Mt||!Mt._virtualHandled?(Mt&&(Mt._virtualHandled=!0),yt({preventDefault:function(){},deltaX:xt?Rt:0,deltaY:xt?0:Rt}),!0):!1}),VLt(A,j,function(xt){ve(function(Rt){return Rt+xt})}),Zn(function(){function xt(Ft){var hn=pt&&Ft.detail<0,Mt=$t&&Ft.detail>0;L&&!hn&&!Mt&&Ft.preventDefault()}var Rt=j.current;return Rt.addEventListener("wheel",yt,{passive:!1}),Rt.addEventListener("DOMMouseScroll",st,{passive:!0}),Rt.addEventListener("MozMousePixelScroll",xt,{passive:!1}),function(){Rt.removeEventListener("wheel",yt),Rt.removeEventListener("DOMMouseScroll",st),Rt.removeEventListener("MozMousePixelScroll",xt)}},[L,pt,$t]),Zn(function(){if(m){var xt=He(Z);ee(xt),fe({x:xt})}},[ze.width,m]);var Ze=function(){var Rt,Ft;(Rt=Me.current)===null||Rt===void 0||Rt.delayHidden(),(Ft=be.current)===null||Ft===void 0||Ft.delayHidden()},dt=WLt(j,z,D,s,O,function(){return F(!0)},ve,Ze);d.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:ot,scrollTo:function(Rt){function Ft(hn){return hn&&nn(hn)==="object"&&("left"in hn||"top"in hn)}Ft(Rt)?(Rt.left!==void 0&&ee(He(Rt.left)),dt(Rt.top)):dt(Rt)}}}),Zn(function(){if(S){var xt=z.slice(We,Ve+1);S(xt,z)}},[We,Ve,z]);var At=zLt(z,O,D,s),kt=x==null?void 0:x({start:We,end:Ve,virtual:A,offsetX:Z,offsetY:Fe,rtl:N,getSize:At}),pn=LLt(z,We,Ve,m,Z,_,f,ue),ln=null;o&&(ln=se(ie({},l?"height":"maxHeight",o),YLt),L&&(ln.overflowY="hidden",m&&(ln.overflowX="hidden"),le&&(ln.pointerEvents="none")));var Lt={};return N&&(Lt.dir="rtl"),d.createElement("div",V({ref:G,style:se(se({},c),{},{position:"relative"}),className:B},Lt,R),d.createElement(oa,{onResize:Le},d.createElement(C,{className:"".concat(r,"-holder"),style:ln,ref:j,onScroll:$e,onMouseEnter:Ze},d.createElement(HWe,{prefixCls:r,height:Ue,offsetX:Z,offsetY:Fe,scrollWidth:m,onInnerResize:F,ref:W,innerProps:w,rtl:N,extra:kt},pn))),A&&Ue>o&&d.createElement(Ewe,{ref:Me,prefixCls:r,scrollOffset:X,scrollRange:Ue,rtl:N,onScroll:Te,onStartMove:he,onStopMove:ye,spinSize:Xe,containerSize:ze.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),A&&m>ze.width&&d.createElement(Ewe,{ref:be,prefixCls:r,scrollOffset:Z,scrollRange:m,rtl:N,onScroll:Te,onStartMove:he,onStopMove:ye,spinSize:je,containerSize:ze.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var mV=d.forwardRef(XLt);mV.displayName="List";function QLt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ZLt=["disabled","title","children","style","className"];function $we(e){return typeof e=="string"||typeof e=="number"}var JLt=function(t,n){var r=fV(),i=r.prefixCls,o=r.id,s=r.open,a=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,h=r.onPopupScroll,g=d.useContext(mpe),p=g.maxCount,m=g.flattenOptions,v=g.onActiveValue,C=g.defaultActiveFirstOption,y=g.onSelect,b=g.menuItemSelectedIcon,S=g.rawValues,w=g.fieldNames,x=g.virtual,E=g.direction,R=g.listHeight,O=g.listItemHeight,T=g.optionRender,M="".concat(i,"-item"),_=Rm(function(){return m},[s,m],function(Z,ee){return ee[0]&&Z[1]!==ee[1]}),F=d.useRef(null),D=d.useMemo(function(){return a&&tle(p)&&(S==null?void 0:S.size)>=p},[a,p,S==null?void 0:S.size]),k=function(ee){ee.preventDefault()},L=function(ee){var J;(J=F.current)===null||J===void 0||J.scrollTo(typeof ee=="number"?{index:ee}:ee)},I=d.useCallback(function(Z){return l==="combobox"?!1:S.has(Z)},[l,ut(S).toString(),S.size]),A=function(ee){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=_.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;j(ee);var oe={source:J?"keyboard":"mouse"},le=_[ee];if(!le){v(null,-1,oe);return}v(le.value,ee,oe)};d.useEffect(function(){W(C!==!1?A(0):-1)},[_.length,c]);var G=d.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():S.has(Z)},[l,c,ut(S).toString(),S.size]);d.useEffect(function(){var Z=setTimeout(function(){if(!a&&s&&S.size===1){var J=Array.from(S)[0],oe=_.findIndex(function(le){var ge=le.data;return ge.value===J});oe!==-1&&(W(oe),L(oe))}});if(s){var ee;(ee=F.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[s,c]);var K=function(ee){ee!==void 0&&y(ee,{selected:!S.has(ee)}),a||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ee){var J=ee.which,oe=ee.ctrlKey;switch(J){case lt.N:case lt.P:case lt.UP:case lt.DOWN:{var le=0;if(J===lt.UP?le=-1:J===lt.DOWN?le=1:QLt()&&oe&&(J===lt.N?le=1:J===lt.P&&(le=-1)),le!==0){var ge=A(z+le,le);L(ge),W(ge,!0)}break}case lt.TAB:case lt.ENTER:{var he,ye=_[z];ye&&!(ye!=null&&(he=ye.data)!==null&&he!==void 0&&he.disabled)&&!D?K(ye.value):K(void 0),s&&ee.preventDefault();break}case lt.ESC:u(!1),s&&ee.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ee){L(ee)}}}),_.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(M,"-empty"),onMouseDown:k},f);var q=Object.keys(w).map(function(Z){return w[Z]}),X=function(ee){return ee.label};function Q(Z,ee){var J=Z.group;return{role:J?"presentation":"option",id:"".concat(o,"_list_").concat(ee)}}var te=function(ee){var J=_[ee];if(!J)return null;var oe=J.data||{},le=oe.value,ge=J.group,he=$o(oe,!0),ye=X(J);return J?d.createElement("div",V({"aria-label":typeof ye=="string"&&!ge?ye:null},he,{key:ee},Q(J,ee),{"aria-selected":G(le)}),le):null},ne={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,x&&d.createElement("div",V({},ne,{style:{height:0,width:0,overflow:"hidden"}}),te(z-1),te(z),te(z+1)),d.createElement(mV,{itemKey:"key",ref:F,data:_,height:R,itemHeight:O,fullHeight:!1,onMouseDown:k,onScroll:h,virtual:x,direction:E,innerProps:x?null:ne},function(Z,ee){var J=Z.group,oe=Z.groupOption,le=Z.data,ge=Z.label,he=Z.value,ye=le.key;if(J){var ue,ve=(ue=le.title)!==null&&ue!==void 0?ue:$we(ge)?ge.toString():void 0;return d.createElement("div",{className:we(M,"".concat(M,"-group"),le.className),title:ve},ge!==void 0?ge:ye)}var de=le.disabled,xe=le.title;le.children;var Ee=le.style,De=le.className,Be=on(le,ZLt),Ge=$i(Be,q),Ue=I(he),We=de||!Ue&&D,Ve="".concat(M,"-option"),Fe=we(M,Ve,De,ie(ie(ie(ie({},"".concat(Ve,"-grouped"),oe),"".concat(Ve,"-active"),z===ee&&!We),"".concat(Ve,"-disabled"),We),"".concat(Ve,"-selected"),Ue)),ke=X(Z),Ye=!b||typeof b=="function"||Ue,ze=typeof ke=="number"?ke:ke||he,Re=$we(ze)?ze.toString():void 0;return xe!==void 0&&(Re=xe),d.createElement("div",V({},$o(Ge),x?{}:Q(Z,ee),{"aria-selected":G(he),className:Fe,title:Re,onMouseMove:function(){z===ee||We||W(ee)},onClick:function(){We||K(he)},style:Ee}),d.createElement("div",{className:"".concat(Ve,"-content")},typeof T=="function"?T(Z,{index:ee}):ze),d.isValidElement(b)||Ue,Ye&&d.createElement(dV,{className:"".concat(M,"-option-state"),customizeIcon:b,customizeIconProps:{value:he,disabled:We,isSelected:Ue}},Ue?"✓":null))}))},eFt=d.forwardRef(JLt);const tFt=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var o=n.current,s=o.values,a=o.options,l=e.map(function(f){if(f.label===void 0){var h;return se(se({},f),{},{label:(h=s.get(f.value))===null||h===void 0?void 0:h.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||a.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=d.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function Xee(e,t){return kWe(e).join("").toUpperCase().includes(t)}const nFt=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var o=t.options,s=t.label,a=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(g,p){return i?Xee(p[i],u):p[o]?Xee(p[s!=="children"?s:"label"],u):Xee(p[a],u)},h=c?function(g){return nle(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var p=f(n,h(g));if(p)l.push(g);else{var m=g[o].filter(function(v){return f(n,h(v))});m.length&&l.push(se(se({},g),{},ie({},o,m)))}return}f(n,h(g))&&l.push(g)}),l},[e,r,i,n,t])};var Owe=0,rFt=Bs();function iFt(){var e;return rFt?(e=Owe,Owe+=1):e="TEST_OR_SSR",e}function vpe(e){var t=d.useState(),n=Ce(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(iFt()))},[]),e||r}var oFt=["children","value"],sFt=["children"];function aFt(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,s=on(r,oFt);return se({key:n,value:o!==void 0?o:n,children:i},s)}function VWe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rs(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,s=i.key,a=i.props,l=a.children,c=on(a,sFt);return t||!o?aFt(n):se(se({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},c),{},{options:VWe(l)})}).filter(function(n){return n})}var lFt=function(t,n,r,i,o){return d.useMemo(function(){var s=t,a=!t;a&&(s=VWe(n));var l=new Map,c=new Map,u=function(g,p,m){m&&typeof m=="string"&&g.set(p[m],p)},f=function h(g){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m0?$e(at.options):at.options}):at})},ze=d.useMemo(function(){return y?Ye(ke):ke},[ke,y,ne]),Re=d.useMemo(function(){return ILt(ze,{fieldNames:X,childrenAsData:K})},[ze,X,K]),Le=function(He){var it=ge(He);if(ve(it),B&&(it.length!==De.length||it.some(function(yt,st){var Ze;return((Ze=De[st])===null||Ze===void 0?void 0:Ze.value)!==(yt==null?void 0:yt.value)}))){var at=N?it:it.map(function(yt){return yt.value}),gt=it.map(function(yt){return nle(Be(yt.value))});B(G?at:at[0],G?gt:gt[0])}},Me=d.useState(null),be=Ce(Me,2),je=be[0],Xe=be[1],ft=d.useState(0),Tt=Ce(ft,2),tt=Tt[0],pt=Tt[1],$t=R!==void 0?R:r!=="combobox",wt=d.useCallback(function($e,He){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},at=it.source,gt=at===void 0?"keyboard":at;pt(He),s&&r==="combobox"&&$e!==null&>==="keyboard"&&Xe(String($e))},[s,r]),It=function(He,it,at){var gt=function(){var xt,Rt=Be(He);return[N?{label:Rt==null?void 0:Rt[X.label],value:He,key:(xt=Rt==null?void 0:Rt.key)!==null&&xt!==void 0?xt:He}:He,nle(Rt)]};if(it&&g){var yt=gt(),st=Ce(yt,2),Ze=st[0],dt=st[1];g(Ze,dt)}else if(!it&&p&&at!=="clear"){var At=gt(),kt=Ce(At,2),pn=kt[0],ln=kt[1];p(pn,ln)}},Ct=Twe(function($e,He){var it,at=G?He.selected:!0;at?it=G?[].concat(ut(De),[$e]):[$e]:it=De.filter(function(gt){return gt.value!==$e}),Le(it),It($e,at),r==="combobox"?Xe(""):(!rle||h)&&(Z(""),Xe(""))}),ot=function(He,it){Le(He);var at=it.type,gt=it.values;(at==="remove"||at==="clear")&>.forEach(function(yt){It(yt.value,!1,at)})},nt=function(He,it){if(Z(He),Xe(null),it.source==="submit"){var at=(He||"").trim();if(at){var gt=Array.from(new Set([].concat(ut(Ue),[at])));Le(gt),It(at,!0),Z("")}return}it.source!=="blur"&&(r==="combobox"&&Le(He),u==null||u(He))},fe=function(He){var it=He;r!=="tags"&&(it=He.map(function(gt){var yt=oe.get(gt);return yt==null?void 0:yt.value}).filter(function(gt){return gt!==void 0}));var at=Array.from(new Set([].concat(ut(Ue),ut(it))));Le(at),at.forEach(function(gt){It(gt,!0)})},Te=d.useMemo(function(){var $e=T!==!1&&v!==!1;return se(se({},ee),{},{flattenOptions:Re,onActiveValue:wt,defaultActiveFirstOption:$t,onSelect:Ct,menuItemSelectedIcon:O,rawValues:Ue,fieldNames:X,virtual:$e,direction:M,listHeight:F,listItemHeight:k,childrenAsData:K,maxCount:z,optionRender:x})},[z,ee,Re,wt,$t,Ct,O,Ue,X,T,v,M,F,k,K,x]);return d.createElement(mpe.Provider,{value:Te},d.createElement(hV,V({},j,{id:W,prefixCls:o,ref:t,omitDomProps:uFt,mode:r,displayValues:Ge,onDisplayValuesChange:ot,direction:M,searchValue:ne,onSearch:nt,autoClearSearchValue:h,onSearchSplit:fe,dropdownMatchSelectWidth:v,OptionList:eFt,emptyOptions:!Re.length,activeValue:je,activeDescendantId:"".concat(W,"_list_").concat(tt)})))}),vV=fFt;vV.Option=pV;vV.OptGroup=gV;const hFt=Object.freeze(Object.defineProperty({__proto__:null,BaseSelect:hV,OptGroup:gV,Option:pV,default:vV,useBaseProps:fV},Symbol.toStringTag,{value:"Module"}));function Z4(e,t,n){return we({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ky=(e,t)=>t||e,gFt=()=>{const[,e]=za(),[t]=ih("Empty"),r=new kr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pFt=()=>{const[,e]=za(),[t]=ih("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:s,shadowColor:a,contentColor:l}=d.useMemo(()=>({borderColor:new kr(n).onBackground(o).toHexString(),shadowColor:new kr(r).onBackground(o).toHexString(),contentColor:new kr(i).onBackground(o).toHexString()}),[n,r,i,o]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:s},d.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"}),d.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:l}))))},mFt=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},vFt=Yr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=yr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[mFt(i)]});var CFt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,o,s,a,l;const{className:c,rootClassName:u,prefixCls:f,image:h=GWe,description:g,children:p,imageStyle:m,style:v,classNames:C,styles:y}=e,b=CFt(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:S,direction:w,empty:x}=d.useContext(vn),E=S("empty",f),[R,O,T]=vFt(E),[M]=ih("Empty"),_=typeof g<"u"?g:M==null?void 0:M.description,F=typeof _=="string"?_:"empty";let D=null;return typeof h=="string"?D=d.createElement("img",{alt:F,src:h}):D=h,R(d.createElement("div",Object.assign({className:we(O,T,E,x==null?void 0:x.className,{[`${E}-normal`]:h===WWe,[`${E}-rtl`]:w==="rtl"},c,u,(t=x==null?void 0:x.classNames)===null||t===void 0?void 0:t.root,C==null?void 0:C.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=x==null?void 0:x.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.style),y==null?void 0:y.root),v)},b),d.createElement("div",{className:we(`${E}-image`,(r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.image,C==null?void 0:C.image),style:Object.assign(Object.assign(Object.assign({},m),(i=x==null?void 0:x.styles)===null||i===void 0?void 0:i.image),y==null?void 0:y.image)},D),_&&d.createElement("div",{className:we(`${E}-description`,(o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.description,C==null?void 0:C.description),style:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.description),y==null?void 0:y.description)},_),p&&d.createElement("div",{className:we(`${E}-footer`,(a=x==null?void 0:x.classNames)===null||a===void 0?void 0:a.footer,C==null?void 0:C.footer),style:Object.assign(Object.assign({},(l=x==null?void 0:x.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},p)))};Wp.PRESENTED_IMAGE_DEFAULT=GWe;Wp.PRESENTED_IMAGE_SIMPLE=WWe;const Cpe=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(vn),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(Wp,{image:Wp.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Wp,{image:Wp.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(Wp,null)}},rM=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:s}=d.useContext(vn),a=d.useContext(aWe),l=s==null?void 0:s.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=a??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=NOt.includes(c);return[c,u]},yFt=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function UWe(e,t){return e||yFt(t)}const Iwe=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},bFt=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ii(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,[`
- ${i}${a}bottomLeft,
- ${o}${a}bottomLeft
- `]:{animationName:npe},[`
- ${i}${a}topLeft,
- ${o}${a}topLeft,
- ${i}${a}topRight,
- ${o}${a}topRight
- `]:{animationName:ipe},[`${s}${a}bottomLeft`]:{animationName:rpe},[`
- ${s}${a}topLeft,
- ${s}${a}topRight
- `]:{animationName:ope},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Iwe(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Kf),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-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({},Iwe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Y4(e,"slide-up"),Y4(e,"slide-down"),Uz(e,"move-up"),Uz(e,"move-down")]},SFt=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:s,itemHeight:Ne(t),itemLineHeight:Ne(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},wFt=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},xFt=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:a,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:a,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},C3()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},EFt=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,s=wFt(e),a=t?`${n}-${t}`:"",l=SFt(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},xFt(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ne(r)} 0`,lineHeight:Ne(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Ne(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ne(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
- ${n}-prefix + ${n}-selection-wrap
- `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:Ne(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Qee(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
- &${n}-show-arrow ${n}-selector,
- &${n}-allow-clear ${n}-selector
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[EFt(e,t),i]}const RFt=e=>{const{componentCls:t}=e,n=yr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=yr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Qee(e),Qee(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Qee(r,"lg")]};function Zee(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ii(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
- ${n}-selection-item,
- ${n}-selection-placeholder
- `]:{display:"block",padding:0,lineHeight:Ne(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
- &${n}-show-arrow ${n}-selection-item,
- &${n}-show-arrow ${n}-selection-search,
- &${n}-show-arrow ${n}-selection-placeholder
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ne(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:Ne(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ne(r)}`,"&:after":{display:"none"}}}}}}}function $Ft(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Zee(e),Zee(yr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Ne(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
- &${t}-show-arrow ${t}-selection-item,
- &${t}-show-arrow ${t}-selection-placeholder
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Zee(yr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OFt=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:s,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:g,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:C,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,w=a*2,x=r*2,E=Math.min(i-w,i-x),R=Math.min(o-w,o-x),O=Math.min(s-w,s-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:g,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:s,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:R,multipleItemHeightLG:O,multipleSelectorBgDisabled:v,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:a}},qWe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ne(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ne(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Mwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qWe(e,t))}),TFt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qWe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Mwe(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Mwe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),KWe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ne(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Pwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KWe(e,t))}),IFt=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},KWe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Pwe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Pwe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),MFt=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ne(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),PFt=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},TFt(e)),IFt(e)),MFt(e))}),_Ft=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},AFt=e=>{const{componentCls:t}=e;return{[`${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"}}}},DFt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},ii(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},_Ft(e)),AFt(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Kf),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Kf),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},C3()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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 ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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 ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},LFt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},DFt(e),$Ft(e),RFt(e),bFt(e),{[`${t}-rtl`]:{direction:"rtl"}},rV(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},YWe=Yr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=yr(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LFt(r),PFt(r)]},OFt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var FFt={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"},NFt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:FFt}))},CV=d.forwardRef(NFt),kFt={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"},zFt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kFt}))},yV=d.forwardRef(zFt),BFt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},HFt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:BFt}))},iM=d.forwardRef(HFt);function XWe(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:s,hasFeedback:a,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:h}=e;const g=n??d.createElement(nv,null),p=y=>t===null&&!a&&!f?null:d.createElement(d.Fragment,null,c!==!1&&y,a&&u);let m=null;if(t!==void 0)m=p(t);else if(o)m=p(d.createElement(Tm,{spin:!0}));else{const y=`${l}-suffix`;m=b=>{let{open:S,showSearch:w}=b;return p(S&&w?d.createElement(iM,{className:y}):d.createElement(yV,{className:y}))}}let v=null;r!==void 0?v=r:s?v=d.createElement(CV,null):v=null;let C=null;return i!==void 0?C=i:C=d.createElement(Ug,null),{clearIcon:g,suffixIcon:m,itemIcon:v,removeIcon:C}}function QWe(e,t){return t!==void 0?t:e!==null}var jFt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:s,getPopupContainer:a,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:h,size:g,disabled:p,notFoundContent:m,status:v,builtinPlacements:C,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:S,style:w,allowClear:x,variant:E,dropdownStyle:R,transitionName:O,tagRender:T,maxCount:M,prefix:_}=e,F=jFt(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","prefix"]),{getPopupContainer:D,getPrefixCls:k,renderEmpty:L,direction:I,virtual:A,popupMatchSelectWidth:N,popupOverflow:B,select:z}=d.useContext(vn),[,j]=za(),W=h??(j==null?void 0:j.controlHeight),G=k("select",r),K=k(),q=S??I,{compactSize:X,compactItemClassnames:Q}=Dy(G,q),[te,ne]=rM("select",E,i),Z=Oo(G),[ee,J,oe]=YWe(G,Z),le=d.useMemo(()=>{const{mode:je}=e;if(je!=="combobox")return je===ZWe?"combobox":je},[e.mode]),ge=le==="multiple"||le==="tags",he=QWe(e.suffixIcon,e.showArrow),ye=(n=b??y)!==null&&n!==void 0?n:N,{status:ue,hasFeedback:ve,isFormItemInput:de,feedbackIcon:xe}=d.useContext(Na),Ee=ky(ue,v);let De;m!==void 0?De=m:le==="combobox"?De=null:De=(L==null?void 0:L("Select"))||d.createElement(Cpe,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Ge,removeIcon:Ue,clearIcon:We}=XWe(Object.assign(Object.assign({},F),{multiple:ge,hasFeedback:ve,feedbackIcon:xe,showSuffixIcon:he,prefixCls:G,componentName:"Select"})),Ve=x===!0?{clearIcon:We}:x,Fe=$i(F,["suffixIcon","itemIcon"]),ke=we(l||c,{[`${G}-dropdown-${q}`]:q==="rtl"},s,oe,Z,J),Ye=fl(je=>{var Xe;return(Xe=g??X)!==null&&Xe!==void 0?Xe:je}),ze=d.useContext(yc),Re=p??ze,Le=we({[`${G}-lg`]:Ye==="large",[`${G}-sm`]:Ye==="small",[`${G}-rtl`]:q==="rtl",[`${G}-${te}`]:ne,[`${G}-in-form-item`]:de},Z4(G,Ee,ve),Q,z==null?void 0:z.className,o,s,oe,Z,J),Me=d.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[be]=y3("SelectLike",R==null?void 0:R.zIndex);return ee(d.createElement(vV,Object.assign({ref:t,virtual:A,showSearch:z==null?void 0:z.showSearch},Fe,{style:Object.assign(Object.assign({},z==null?void 0:z.style),w),dropdownMatchSelectWidth:ye,transitionName:Cu(K,"slide-up",O),builtinPlacements:UWe(C,B),listHeight:u,listItemHeight:W,mode:le,prefixCls:G,placement:Me,direction:q,prefix:_,suffixIcon:Be,menuItemSelectedIcon:Ge,removeIcon:Ue,allowClear:Ve,notFoundContent:De,className:Le,getPopupContainer:a||D,dropdownClassName:ke,disabled:Re,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:be}),maxCount:ge?M:void 0,tagRender:ge?T:void 0})))},Qf=d.forwardRef(VFt),GFt=ppe(Qf,"dropdownAlign");Qf.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZWe;Qf.Option=pV;Qf.OptGroup=gV;Qf._InternalPanelDoNotUseOrYouWillBeFired=GFt;const d7=["xxl","xl","lg","md","sm","xs"],WFt=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),UFt=e=>{const t=e,n=[].concat(d7).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),s=`screen${o}Min`,a=`screen${o}`;if(!(t[s]<=t[a]))throw new Error(`${s}<=${a} fails : !(${t[s]}<=${t[a]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(s=>s(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const s=t[o],a=this.matchHandlers[s];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const s=t[o],a=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(s);l.addListener(a),this.matchHandlers[s]={mql:l,listener:a},a(l)})},responsiveMap:t}},[e])}function eUe(){const[,e]=d.useReducer(t=>t+1,0);return e}function tUe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=eUe(),r=JWe();return Zn(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const ole=d.createContext({}),qFt=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:s,containerSizeLG:a,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:h,borderRadiusLG:g,borderRadiusSM:p,lineWidth:m,lineType:v}=e,C=(y,b,S)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Ne(m)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(s,c,h)),{"&-lg":Object.assign({},C(a,u,g)),"&-sm":Object.assign({},C(l,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},KFt=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},YFt=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:s,fontSizeHeading3:a,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+s)/2),textFontSizeLG:a,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},nUe=Yr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=yr(e,{avatarBg:n,avatarColor:t});return[qFt(r),KFt(r)]},YFt);var XFt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const[n,r]=d.useState(1),[i,o]=d.useState(!1),[s,a]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=Ws(t,l),{getPrefixCls:f,avatar:h}=d.useContext(vn),g=d.useContext(ole),p=()=>{if(!c.current||!l.current)return;const Q=c.current.offsetWidth,te=l.current.offsetWidth;if(Q!==0&&te!==0){const{gap:ne=4}=e;ne*2{o(!0)},[]),d.useEffect(()=>{a(!0),r(1)},[e.src]),d.useEffect(p,[e.gap]);const m=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&a(!1)},{prefixCls:v,shape:C,size:y,src:b,srcSet:S,icon:w,className:x,rootClassName:E,alt:R,draggable:O,children:T,crossOrigin:M}=e,_=XFt(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),F=fl(Q=>{var te,ne;return(ne=(te=y??(g==null?void 0:g.size))!==null&&te!==void 0?te:Q)!==null&&ne!==void 0?ne:"default"}),D=Object.keys(typeof F=="object"?F||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),k=tUe(D),L=d.useMemo(()=>{if(typeof F!="object")return{};const Q=d7.find(ne=>k[ne]),te=F[Q];return te?{width:te,height:te,fontSize:te&&(w||T)?te/2:18}:{}},[k,F]),I=f("avatar",v),A=Oo(I),[N,B,z]=nUe(I,A),j=we({[`${I}-lg`]:F==="large",[`${I}-sm`]:F==="small"}),W=d.isValidElement(b),G=C||(g==null?void 0:g.shape)||"circle",K=we(I,j,h==null?void 0:h.className,`${I}-${G}`,{[`${I}-image`]:W||b&&s,[`${I}-icon`]:!!w},z,A,x,E,B),q=typeof F=="number"?{width:F,height:F,fontSize:w?F/2:18}:{};let X;if(typeof b=="string"&&s)X=d.createElement("img",{src:b,draggable:O,srcSet:S,onError:m,alt:R,crossOrigin:M});else if(W)X=b;else if(w)X=w;else if(i||n!==1){const Q=`scale(${n})`,te={msTransform:Q,WebkitTransform:Q,transform:Q};X=d.createElement(oa,{onResize:p},d.createElement("span",{className:`${I}-string`,ref:c,style:Object.assign({},te)},T))}else X=d.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:c},T);return delete _.onError,delete _.gap,N(d.createElement("span",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),L),h==null?void 0:h.style),_.style),className:K,ref:u}),X))},rUe=d.forwardRef(QFt),Yz=e=>e?typeof e=="function"?e():e:null;function bV(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,s=e.className,a=e.style;return d.createElement("div",{className:we("".concat(n,"-content"),s),style:a},d.createElement("div",{className:we("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var a5={shiftX:64,adjustY:1},l5={adjustX:1,shiftY:!0},Ud=[0,0],ZFt={left:{points:["cr","cl"],overflow:l5,offset:[-4,0],targetOffset:Ud},right:{points:["cl","cr"],overflow:l5,offset:[4,0],targetOffset:Ud},top:{points:["bc","tc"],overflow:a5,offset:[0,-4],targetOffset:Ud},bottom:{points:["tc","bc"],overflow:a5,offset:[0,4],targetOffset:Ud},topLeft:{points:["bl","tl"],overflow:a5,offset:[0,-4],targetOffset:Ud},leftTop:{points:["tr","tl"],overflow:l5,offset:[-4,0],targetOffset:Ud},topRight:{points:["br","tr"],overflow:a5,offset:[0,-4],targetOffset:Ud},rightTop:{points:["tl","tr"],overflow:l5,offset:[4,0],targetOffset:Ud},bottomRight:{points:["tr","br"],overflow:a5,offset:[0,4],targetOffset:Ud},rightBottom:{points:["bl","br"],overflow:l5,offset:[4,0],targetOffset:Ud},bottomLeft:{points:["tl","bl"],overflow:a5,offset:[0,4],targetOffset:Ud},leftBottom:{points:["br","bl"],overflow:l5,offset:[-4,0],targetOffset:Ud}},JFt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],eNt=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,s=t.mouseEnterDelay,a=s===void 0?0:s,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,g=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,v=t.transitionName,C=t.animation,y=t.motion,b=t.placement,S=b===void 0?"right":b,w=t.align,x=w===void 0?{}:w,E=t.destroyTooltipOnHide,R=E===void 0?!1:E,O=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,F=t.id,D=t.showArrow,k=D===void 0?!0:D,L=t.classNames,I=t.styles,A=on(t,JFt),N=d.useRef(null);d.useImperativeHandle(n,function(){return N.current});var B=se({},A);"visible"in t&&(B.popupVisible=t.visible);var z=function(){return d.createElement(bV,{key:"content",prefixCls:h,id:F,bodyClassName:L==null?void 0:L.body,overlayInnerStyle:se(se({},M),I==null?void 0:I.body)},_)};return d.createElement(Ny,V({popupClassName:we(r,L==null?void 0:L.root),prefixCls:h,popup:z,action:o,builtinPlacements:ZFt,popupPlacement:S,ref:N,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:C,popupMotion:y,defaultPopupVisible:O,autoDestroy:R,mouseLeaveDelay:c,popupStyle:se(se({},u),I==null?void 0:I.root),mouseEnterDelay:a,arrow:k},B),g)};const iUe=d.forwardRef(eNt),tNt=Object.freeze(Object.defineProperty({__proto__:null,Popup:bV,default:iUe},Symbol.toStringTag,{value:"Module"}));function ype(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,s=i,a=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,h=u,g=2*i-a,p=l,m=2*i-o,v=s,C=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,S=`path('M ${o} ${s} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${g} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:C,arrowPath:S,arrowPolygon:b}}const nNt=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:a,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ne(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},oUe=8;function SV(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?oUe:r}}function bD(e,t){return e?t:{}}function bpe(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:a=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},nNt(e,t,i)),{"&:before":{background:t}})]},bD(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ne(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),bD(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ne(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),bD(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:a},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),bD(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:a},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function rNt(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const _we={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},iNt={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},oNt=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function sUe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:s}=e,a=t/2,l={};return Object.keys(_we).forEach(c=>{const u=r&&iNt[c]||_we[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,oNt.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=a+i;break}const h=SV({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-a;break}f.overflow=rNt(c,h,t,n),s&&(f.htmlRegion="visibleFirst")}),l}const sNt=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:g}=e,p=t(s).add(g).add(h).equal(),m=t(s).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:m,minHeight:l,padding:`${Ne(e.calc(u).div(2).equal())} ${Ne(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:s,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,oUe)}},[`${n}-content`]:{position:"relative"}}),nGe(e,(v,C)=>{let{darkColor:y}=C;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},bpe(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},aNt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},SV({contentRadius:e.borderRadius,limitVerticalRadius:!0})),ype(yr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),aUe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Yr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:s}=r,a=yr(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:s});return[sNt(a),Wx(r,"zoom-big-fast")]},aNt,{resetStyle:!1,injectStyle:t})(e)},lNt=NC.map(e=>`${e}-inverse`),cNt=["success","processing","error","default","warning"];function lUe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ut(lNt),ut(NC)).includes(e):NC.includes(e)}function uNt(e){return cNt.includes(e)}function cUe(e,t){const n=lUe(t),r=we({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const dNt=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:a}=d.useContext(vn),l=a("tooltip",t),[c,u,f]=aUe(l),h=cUe(l,o),g=h.arrowStyle,p=Object.assign(Object.assign({},s),h.overlayStyle),m=we(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:m,style:g},d.createElement("div",{className:`${l}-arrow`}),d.createElement(bV,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),i)))};var fNt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i