You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Engineering__Navigation_...

15 lines
122 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2823],{65030:function(_n,Vt,i){i.d(Vt,{Z:function(){return g}});var s=i(33885),L=i(42978),B=i(75931),k=i(43403),T=i(92310),he=i.n(T),J=i(29301),Ee=i(76846),Ve=i(96452),a=i(6089),pt=i(80402),d=i(34280),Ke=i(49658),W=i(59301),pn=i(54476),wn=i(77900),qt=i(8654);function ln(r){var l=r.prefixCls,n=r.align,f=r.arrow,S=r.arrowPos,p=f||{},C=p.className,V=p.content,O=S.x,c=O===void 0?0:O,o=S.y,u=o===void 0?0:o,w=W.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var R=n.points[0],_=n.points[1],Y=R[0],K=R[1],ve=_[0],ie=_[1];Y===ve||!["t","b"].includes(Y)?h.top=u:Y==="t"?h.top=0:h.bottom=0,K===ie||!["l","r"].includes(K)?h.left=c:K==="l"?h.left=0:h.right=0}return W.createElement("div",{ref:w,className:he()("".concat(l,"-arrow"),C),style:h},V)}function Rn(r){var l=r.prefixCls,n=r.open,f=r.zIndex,S=r.mask,p=r.motion;return S?W.createElement(wn.default,(0,pn.Z)({},p,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(C){var V=C.className;return W.createElement("div",{style:{zIndex:f},className:he()("".concat(l,"-mask"),V)})}):null}var en=W.memo(function(r){var l=r.children;return l},function(r,l){return l.cache}),A=en,gn=W.forwardRef(function(r,l){var n=r.popup,f=r.className,S=r.prefixCls,p=r.style,C=r.target,V=r.onVisibleChanged,O=r.open,c=r.keepDom,o=r.fresh,u=r.onClick,w=r.mask,h=r.arrow,R=r.arrowPos,_=r.align,Y=r.motion,K=r.maskMotion,ve=r.forceRender,ie=r.getPopupContainer,Ie=r.autoDestroy,we=r.portal,H=r.zIndex,Le=r.onMouseEnter,dt=r.onMouseLeave,ze=r.onPointerEnter,ke=r.onPointerDownCapture,ct=r.ready,de=r.offsetX,Se=r.offsetY,Ue=r.offsetR,et=r.offsetB,Ge=r.onAlign,We=r.onPrepare,ce=r.stretch,bt=r.targetWidth,Ct=r.targetHeight,Zt=typeof n=="function"?n():n,Re=O||c,Jt=(ie==null?void 0:ie.length)>0,bn=W.useState(!ie||!Jt),un=(0,L.Z)(bn,2),sn=un[0],Yt=un[1];if((0,d.Z)(function(){!sn&&Jt&&C&&Yt(!0)},[sn,Jt,C]),!sn)return null;var Nt="auto",rn={left:"-1000vw",top:"-1000vh",right:Nt,bottom:Nt};if(ct||!O){var Xt,Et=_.points,lt=_.dynamicInset||((Xt=_._experimental)===null||Xt===void 0?void 0:Xt.dynamicInset),an=lt&&Et[0][1]==="r",Ht=lt&&Et[0][0]==="b";an?(rn.right=Ue,rn.left=Nt):(rn.left=de,rn.right=Nt),Ht?(rn.bottom=et,rn.top=Nt):(rn.top=Se,rn.bottom=Nt)}var Pe={};return ce&&(ce.includes("height")&&Ct?Pe.height=Ct:ce.includes("minHeight")&&Ct&&(Pe.minHeight=Ct),ce.includes("width")&&bt?Pe.width=bt:ce.includes("minWidth")&&bt&&(Pe.minWidth=bt)),O||(Pe.pointerEvents="none"),W.createElement(we,{open:ve||Re,getContainer:ie&&function(){return ie(C)},autoDestroy:Ie},W.createElement(Rn,{prefixCls:S,open:O,zIndex:H,mask:w,motion:K}),W.createElement(J.Z,{onResize:Ge,disabled:!O},function(_e){return W.createElement(wn.default,(0,pn.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ve,leavedClassName:"".concat(S,"-hidden")},Y,{onAppearPrepare:We,onEnterPrepare:We,visible:O,onVisibleChanged:function(Bt){var t;Y==null||(t=Y.onVisibleChanged)===null||t===void 0||t.call(Y,Bt),V(Bt)}}),function(Qt,Bt){var t=Qt.className,e=Qt.style,E=he()(S,t,f);return W.createElement("div",{ref:(0,qt.sQ)(_e,l,Bt),className:E,style:(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({"--arrow-x":"".concat(R.x||0,"px"),"--arrow-y":"".concat(R.y||0,"px")},rn),Pe),e),{},{boxSizing:"border-box",zIndex:H},p),onMouseEnter:Le,onMouseLeave:dt,onPointerEnter:ze,onClick:u,onPointerDownCapture:ke},h&&W.createElement(ln,{prefixCls:S,arrow:h,arrowPos:R,align:_}),W.createElement(A,{cache:!O&&!o},Zt))})}))}),Ut=gn,oe=W.forwardRef(function(r,l){var n=r.children,f=r.getTriggerDOMNode,S=(0,qt.Yr)(n),p=W.useCallback(function(V){(0,qt.mH)(l,f?f(V):V)},[f]),C=(0,qt.x1)(p,(0,qt.C4)(n));return S?W.cloneElement(n,{ref:C}):n}),tn=oe,Ft=W.createContext(null),_t=Ft;function Tt(r){return r?Array.isArray(r)?r:[r]:[]}function nn(r,l,n,f){return W.useMemo(function(){var S=Tt(n!=null?n:l),p=Tt(f!=null?f:l),C=new Set(S),V=new Set(p);return r&&(C.has("hover")&&(C.delete("hover"),C.add("click")),V.has("hover")&&(V.delete("hover"),V.add("click"))),[C,V]},[r,l,n,f])}var I=i(29194);function v(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?r[0]===l[0]:r[0]===l[0]&&r[1]===l[1]}function D(r,l,n,f){for(var S=n.points,p=Object.keys(r),C=0;C<p.length;C+=1){var V,O=p[C];if(v((V=r[O])===null||V===void 0?void 0:V.points,S,f))return"".concat(l,"-placement-").concat(O)}return""}function b(r,l,n,f){return l||(n?{motionName:"".concat(r,"-").concat(n)}:f?{motionName:f}:null)}function M(r){return r.ownerDocument.defaultView}function ne(r){for(var l=[],n=r==null?void 0:r.parentElement,f=["hidden","scroll","clip","auto"];n;){var S=M(n).getComputedStyle(n),p=S.overflowX,C=S.overflowY,V=S.overflow;[p,C,V].some(function(O){return f.includes(O)})&&l.push(n),n=n.parentElement}return l}function y(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(r)?l:r}function re(r){return y(parseFloat(r),0)}function Fe(r,l){var n=(0,s.Z)({},r);return(l||[]).forEach(function(f){if(!(f instanceof HTMLBodyElement||f instanceof HTMLHtmlElement)){var S=M(f).getComputedStyle(f),p=S.overflow,C=S.overflowClipMargin,V=S.borderTopWidth,O=S.borderBottomWidth,c=S.borderLeftWidth,o=S.borderRightWidth,u=f.getBoundingClientRect(),w=f.offsetHeight,h=f.clientHeight,R=f.offsetWidth,_=f.clientWidth,Y=re(V),K=re(O),ve=re(c),ie=re(o),Ie=y(Math.round(u.width/R*1e3)/1e3),we=y(Math.round(u.height/w*1e3)/1e3),H=(R-_-ve-ie)*Ie,Le=(w-h-Y-K)*we,dt=Y*we,ze=K*we,ke=ve*Ie,ct=ie*Ie,de=0,Se=0;if(p==="clip"){var Ue=re(C);de=Ue*Ie,Se=Ue*we}var et=u.x+ke-de,Ge=u.y+dt-Se,We=et+u.width+2*de-ke-ct-H,ce=Ge+u.height+2*Se-dt-ze-Le;n.left=Math.max(n.left,et),n.top=Math.max(n.top,Ge),n.right=Math.min(n.right,We),n.bottom=Math.min(n.bottom,ce)}}),n}function ue(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(l),f=n.match(/^(.*)\%$/);return f?r*(parseFloat(f[1])/100):parseFloat(n)}function ye(r,l){var n=l||[],f=(0,L.Z)(n,2),S=f[0],p=f[1];return[ue(r.width,S),ue(r.height,p)]}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[r[0],r[1]]}function je(r,l){var n=l[0],f=l[1],S,p;return n==="t"?p=r.y:n==="b"?p=r.y+r.height:p=r.y+r.height/2,f==="l"?S=r.x:f==="r"?S=r.x+r.width:S=r.x+r.width/2,{x:S,y:p}}function se(r,l){var n={t:"b",b:"t",l:"r",r:"l"};return r.map(function(f,S){return S===l?n[f]||"c":f}).join("")}function ge(r,l,n,f,S,p,C){var V=W.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:S[f]||{}}),O=(0,L.Z)(V,2),c=O[0],o=O[1],u=W.useRef(0),w=W.useMemo(function(){return l?ne(l):[]},[l]),h=W.useRef({}),R=function(){h.current={}};r||R();var _=(0,a.Z)(function(){if(l&&n&&r){let xt=function($n,fe){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F,xe=Re.x+$n,Te=Re.y+fe,yt=xe+Ht,At=Te+an,Wn=Math.max(xe,Oe.left),Q=Math.max(Te,Oe.top),Ce=Math.min(yt,Oe.right),Qe=Math.min(At,Oe.bottom);return Math.max(0,(Ce-Wn)*(Qe-Q))},jn=function(){yn=Re.y+Ae,vn=yn+an,Dt=Re.x+He,De=Dt+Ht};var ve,ie,Ie,we,H=l,Le=H.ownerDocument,dt=M(H),ze=dt.getComputedStyle(H),ke=ze.position,ct=H.style.left,de=H.style.top,Se=H.style.right,Ue=H.style.bottom,et=H.style.overflow,Ge=(0,s.Z)((0,s.Z)({},S[f]),p),We=Le.createElement("div");(ve=H.parentElement)===null||ve===void 0||ve.appendChild(We),We.style.left="".concat(H.offsetLeft,"px"),We.style.top="".concat(H.offsetTop,"px"),We.style.position=ke,We.style.height="".concat(H.offsetHeight,"px"),We.style.width="".concat(H.offsetWidth,"px"),H.style.left="0",H.style.top="0",H.style.right="auto",H.style.bottom="auto",H.style.overflow="hidden";var ce;if(Array.isArray(n))ce={x:n[0],y:n[1],width:0,height:0};else{var bt,Ct,Zt=n.getBoundingClientRect();Zt.x=(bt=Zt.x)!==null&&bt!==void 0?bt:Zt.left,Zt.y=(Ct=Zt.y)!==null&&Ct!==void 0?Ct:Zt.top,ce={x:Zt.x,y:Zt.y,width:Zt.width,height:Zt.height}}var Re=H.getBoundingClientRect(),Jt=dt.getComputedStyle(H),bn=Jt.height,un=Jt.width;Re.x=(ie=Re.x)!==null&&ie!==void 0?ie:Re.left,Re.y=(Ie=Re.y)!==null&&Ie!==void 0?Ie:Re.top;var sn=Le.documentElement,Yt=sn.clientWidth,Nt=sn.clientHeight,rn=sn.scrollWidth,Xt=sn.scrollHeight,Et=sn.scrollTop,lt=sn.scrollLeft,an=Re.height,Ht=Re.width,Pe=ce.height,_e=ce.width,Qt={left:0,top:0,right:Yt,bottom:Nt},Bt={left:-lt,top:-Et,right:rn-lt,bottom:Xt-Et},t=Ge.htmlRegion,e="visible",E="visibleFirst";t!=="scroll"&&t!==E&&(t=e);var m=t===E,P=Fe(Bt,w),N=Fe(Qt,w),F=t===e?N:P,z=m?N:F;H.style.left="auto",H.style.top="auto",H.style.right="0",H.style.bottom="0";var q=H.getBoundingClientRect();H.style.left=ct,H.style.top=de,H.style.right=Se,H.style.bottom=Ue,H.style.overflow=et,(we=H.parentElement)===null||we===void 0||we.removeChild(We);var j=y(Math.round(Ht/parseFloat(un)*1e3)/1e3),ee=y(Math.round(an/parseFloat(bn)*1e3)/1e3);if(j===0||ee===0||(0,Ee.Sh)(n)&&!(0,I.Z)(n))return;var me=Ge.offset,Be=Ge.targetOffset,$=ye(Re,me),Me=(0,L.Z)($,2),te=Me[0],le=Me[1],$e=ye(ce,Be),G=(0,L.Z)($e,2),ae=G[0],pe=G[1];ce.x-=ae,ce.y-=pe;var tt=Ge.points||[],Ne=(0,L.Z)(tt,2),Mt=Ne[0],on=Ne[1],it=Ze(on),Xe=Ze(Mt),nt=je(ce,it),It=je(Re,Xe),ft=(0,s.Z)({},Ge),He=nt.x-It.x+te,Ae=nt.y-It.y+le,vt=xt(He,Ae),Lt=xt(He,Ae,N),mt=je(ce,["t","l"]),wt=je(Re,["t","l"]),ut=je(ce,["b","r"]),Je=je(Re,["b","r"]),zt=Ge.overflow||{},hn=zt.adjustX,fn=zt.adjustY,Rt=zt.shiftX,Cn=zt.shiftY,$t=function(fe){return typeof fe=="boolean"?fe:fe>=0},yn,vn,Dt,De;jn();var x=$t(fn),Z=Xe[0]===it[0];if(x&&Xe[0]==="t"&&(vn>z.bottom||h.current.bt)){var X=Ae;Z?X-=an-Pe:X=mt.y-Je.y-le;var U=xt(He,X),be=xt(He,X,N);U>vt||U===vt&&(!m||be>=Lt)?(h.current.bt=!0,Ae=X,le=-le,ft.points=[se(Xe,0),se(it,0)]):h.current.bt=!1}if(x&&Xe[0]==="b"&&(yn<z.top||h.current.tb)){var rt=Ae;Z?rt+=an-Pe:rt=ut.y-wt.y-le;var ht=xt(He,rt),gt=xt(He,rt,N);ht>vt||ht===vt&&(!m||gt>=Lt)?(h.current.tb=!0,Ae=rt,le=-le,ft.points=[se(Xe,0),se(it,0)]):h.current.tb=!1}var cn=$t(hn),Sn=Xe[1]===it[1];if(cn&&Xe[1]==="l"&&(De>z.right||h.current.rl)){var dn=He;Sn?dn-=Ht-_e:dn=mt.x-Je.x-te;var Pn=xt(dn,Ae),Kt=xt(dn,Ae,N);Pn>vt||Pn===vt&&(!m||Kt>=Lt)?(h.current.rl=!0,He=dn,te=-te,ft.points=[se(Xe,1),se(it,1)]):h.current.rl=!1}if(cn&&Xe[1]==="r"&&(Dt<z.left||h.current.lr)){var Ln=He;Sn?Ln+=Ht-_e:Ln=ut.x-wt.x-te;var Fn=xt(Ln,Ae),xn=xt(Ln,Ae,N);Fn>vt||Fn===vt&&(!m||xn>=Lt)?(h.current.lr=!0,He=Ln,te=-te,ft.points=[se(Xe,1),se(it,1)]):h.current.lr=!1}jn();var jt=Rt===!0?0:Rt;typeof jt=="number"&&(Dt<N.left&&(He-=Dt-N.left-te,ce.x+_e<N.left+jt&&(He+=ce.x-N.left+_e-jt)),De>N.right&&(He-=De-N.right-te,ce.x>N.right-jt&&(He+=ce.x-N.right+jt)));var mn=Cn===!0?0:Cn;typeof mn=="number"&&(yn<N.top&&(Ae-=yn-N.top-le,ce.y+Pe<N.top+mn&&(Ae+=ce.y-N.top+Pe-mn)),vn>N.bottom&&(Ae-=vn-N.bottom-le,ce.y>N.bottom-mn&&(Ae+=ce.y-N.bottom+mn)));var kt=Re.x+He,Zn=kt+Ht,Bn=Re.y+Ae,Hn=Bn+an,Dn=ce.x,Nn=Dn+_e,kn=ce.y,Tn=kn+Pe,Xn=Math.max(kt,Dn),Mn=Math.min(Zn,Nn),rr=(Xn+Mn)/2,Qn=rr-kt,Gn=Math.max(Bn,kn),ar=Math.min(Hn,Tn),qn=(Gn+ar)/2,er=qn-Bn;C==null||C(l,ft);var In=q.right-Re.x-(He+Re.width),Kn=q.bottom-Re.y-(Ae+Re.height);j===1&&(He=Math.round(He),In=Math.round(In)),ee===1&&(Ae=Math.round(Ae),Kn=Math.round(Kn));var Jn={ready:!0,offsetX:He/j,offsetY:Ae/ee,offsetR:In/j,offsetB:Kn/ee,arrowX:Qn/j,arrowY:er/ee,scaleX:j,scaleY:ee,align:ft};o(Jn)}}),Y=function(){u.current+=1;var ie=u.current;Promise.resolve().then(function(){u.current===ie&&_()})},K=function(){o(function(ie){return(0,s.Z)((0,s.Z)({},ie),{},{ready:!1})})};return(0,d.Z)(K,[f]),(0,d.Z)(function(){r||K()},[r]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,Y]}var st=i(94480);function qe(r,l,n,f,S){(0,d.Z)(function(){if(r&&l&&n){let u=function(){f(),S()};var p=l,C=n,V=ne(p),O=ne(C),c=M(C),o=new Set([c].concat((0,st.Z)(V),(0,st.Z)(O)));return o.forEach(function(w){w.addEventListener("scroll",u,{passive:!0})}),c.addEventListener("resize",u,{passive:!0}),f(),function(){o.forEach(function(w){w.removeEventListener("scroll",u),c.removeEventListener("resize",u)})}}},[r,l,n])}var Ye=i(48736);function ot(r,l,n,f,S,p,C,V){var O=W.useRef(r);O.current=r;var c=W.useRef(!1);W.useEffect(function(){if(l&&f&&(!S||p)){var u=function(){c.current=!1},w=function(Ie){var we;O.current&&!C(((we=Ie.composedPath)===null||we===void 0||(we=we.call(Ie))===null||we===void 0?void 0:we[0])||Ie.target)&&!c.current&&V(!1)},h=M(f);h.addEventListener("pointerdown",u,!0),h.addEventListener("mousedown",w,!0),h.addEventListener("contextmenu",w,!0);var R=(0,Ve.A)(n);if(R&&(R.addEventListener("mousedown",w,!0),R.addEventListener("contextmenu",w,!0)),0)var _,Y,K,ve;return function(){h.removeEventListener("pointerdown",u,!0),h.removeEventListener("mousedown",w,!0),h.removeEventListener("contextmenu",w,!0),R&&(R.removeEventListener("mousedown",w,!0),R.removeEventListener("contextmenu",w,!0))}}},[l,n,f,S,p]);function o(){c.current=!0}return o}var Gt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Pt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k.Z,l=W.forwardRef(function(n,f){var S=n.prefixCls,p=S===void 0?"rc-trigger-popup":S,C=n.children,V=n.action,O=V===void 0?"hover":V,c=n.showAction,o=n.hideAction,u=n.popupVisible,w=n.defaultPopupVisible,h=n.onPopupVisibleChange,R=n.afterPopupVisibleChange,_=n.mouseEnterDelay,Y=n.mouseLeaveDelay,K=Y===void 0?.1:Y,ve=n.focusDelay,ie=n.blurDelay,Ie=n.mask,we=n.maskClosable,H=we===void 0?!0:we,Le=n.getPopupContainer,dt=n.forceRender,ze=n.autoDestroy,ke=n.destroyPopupOnHide,ct=n.popup,de=n.popupClassName,Se=n.popupStyle,Ue=n.popupPlacement,et=n.builtinPlacements,Ge=et===void 0?{}:et,We=n.popupAlign,ce=n.zIndex,bt=n.stretch,Ct=n.getPopupClassNameFromAlign,Zt=n.fresh,Re=n.alignPoint,Jt=n.onPopupClick,bn=n.onPopupAlign,un=n.arrow,sn=n.popupMotion,Yt=n.maskMotion,Nt=n.popupTransitionName,rn=n.popupAnimation,Xt=n.maskTransitionName,Et=n.maskAnimation,lt=n.className,an=n.getTriggerDOMNode,Ht=(0,B.Z)(n,Gt),Pe=ze||ke||!1,_e=W.useState(!1),Qt=(0,L.Z)(_e,2),Bt=Qt[0],t=Qt[1];(0,d.Z)(function(){t((0,Ke.Z)())},[]);var e=W.useRef({}),E=W.useContext(_t),m=W.useMemo(function(){return{registerSubPopup:function(Ce,Qe){e.current[Ce]=Qe,E==null||E.registerSubPopup(Ce,Qe)}}},[E]),P=(0,pt.Z)(),N=W.useState(null),F=(0,L.Z)(N,2),z=F[0],q=F[1],j=W.useRef(null),ee=(0,a.Z)(function(Q){j.current=Q,(0,Ee.Sh)(Q)&&z!==Q&&q(Q),E==null||E.registerSubPopup(P,Q)}),me=W.useState(null),Be=(0,L.Z)(me,2),$=Be[0],Me=Be[1],te=W.useRef(null),le=(0,a.Z)(function(Q){(0,Ee.Sh)(Q)&&$!==Q&&(Me(Q),te.current=Q)}),$e=W.Children.only(C),G=($e==null?void 0:$e.props)||{},ae={},pe=(0,a.Z)(function(Q){var Ce,Qe,Wt=$;return(Wt==null?void 0:Wt.contains(Q))||((Ce=(0,Ve.A)(Wt))===null||Ce===void 0?void 0:Ce.host)===Q||Q===Wt||(z==null?void 0:z.contains(Q))||((Qe=(0,Ve.A)(z))===null||Qe===void 0?void 0:Qe.host)===Q||Q===z||Object.values(e.current).some(function(Ot){return(Ot==null?void 0:Ot.contains(Q))||Q===Ot})}),tt=b(p,sn,rn,Nt),Ne=b(p,Yt,Et,Xt),Mt=W.useState(w||!1),on=(0,L.Z)(Mt,2),it=on[0],Xe=on[1],nt=u!=null?u:it,It=(0,a.Z)(function(Q){u===void 0&&Xe(Q)});(0,d.Z)(function(){Xe(u||!1)},[u]);var ft=W.useRef(nt);ft.current=nt;var He=W.useRef([]);He.current=[];var Ae=(0,a.Z)(function(Q){var Ce;It(Q),((Ce=He.current[He.current.length-1])!==null&&Ce!==void 0?Ce:nt)!==Q&&(He.current.push(Q),h==null||h(Q))}),vt=W.useRef(),Lt=function(){clearTimeout(vt.current)},mt=function(Ce){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Lt(),Qe===0?Ae(Ce):vt.current=setTimeout(function(){Ae(Ce)},Qe*1e3)};W.useEffect(function(){return Lt},[]);var wt=W.useState(!1),ut=(0,L.Z)(wt,2),Je=ut[0],zt=ut[1];(0,d.Z)(function(Q){(!Q||nt)&&zt(!0)},[nt]);var hn=W.useState(null),fn=(0,L.Z)(hn,2),Rt=fn[0],Cn=fn[1],$t=W.useState(null),yn=(0,L.Z)($t,2),vn=yn[0],Dt=yn[1],De=function(Ce){Dt([Ce.clientX,Ce.clientY])},x=ge(nt,z,Re&&vn!==null?vn:$,Ue,Ge,We,bn),Z=(0,L.Z)(x,11),X=Z[0],U=Z[1],be=Z[2],rt=Z[3],ht=Z[4],gt=Z[5],cn=Z[6],Sn=Z[7],dn=Z[8],Pn=Z[9],Kt=Z[10],Ln=nn(Bt,O,c,o),Fn=(0,L.Z)(Ln,2),xn=Fn[0],jt=Fn[1],mn=xn.has("click"),kt=jt.has("click")||jt.has("contextMenu"),Zn=(0,a.Z)(function(){Je||Kt()}),Bn=function(){ft.current&&Re&&kt&&mt(!1)};qe(nt,$,z,Zn,Bn),(0,d.Z)(function(){Zn()},[vn,Ue]),(0,d.Z)(function(){nt&&!(Ge!=null&&Ge[Ue])&&Zn()},[JSON.stringify(We)]);var Hn=W.useMemo(function(){var Q=D(Ge,p,Pn,Re);return he()(Q,Ct==null?void 0:Ct(Pn))},[Pn,Ct,Ge,p,Re]);W.useImperativeHandle(f,function(){return{nativeElement:te.current,popupElement:j.current,forceAlign:Zn}});var Dn=W.useState(0),Nn=(0,L.Z)(Dn,2),kn=Nn[0],Tn=Nn[1],Xn=W.useState(0),Mn=(0,L.Z)(Xn,2),rr=Mn[0],Qn=Mn[1],Gn=function(){if(bt&&$){var Ce=$.getBoundingClientRect();Tn(Ce.width),Qn(Ce.height)}},ar=function(){Gn(),Zn()},qn=function(Ce){zt(!1),Kt(),R==null||R(Ce)},er=function(){return new Promise(function(Ce){Gn(),Cn(function(){return Ce})})};(0,d.Z)(function(){Rt&&(Kt(),Rt(),Cn(null))},[Rt]);function In(Q,Ce,Qe,Wt){ae[Q]=function(Ot){var tr;Wt==null||Wt(Ot),mt(Ce,Qe);for(var lr=arguments.length,nr=new Array(lr>1?lr-1:0),zn=1;zn<lr;zn++)nr[zn-1]=arguments[zn];(tr=G[Q])===null||tr===void 0||tr.call.apply(tr,[G,Ot].concat(nr))}}(mn||kt)&&(ae.onClick=function(Q){var Ce;ft.current&&kt?mt(!1):!ft.current&&mn&&(De(Q),mt(!0));for(var Qe=arguments.length,Wt=new Array(Qe>1?Qe-1:0),Ot=1;Ot<Qe;Ot++)Wt[Ot-1]=arguments[Ot];(Ce=G.onClick)===null||Ce===void 0||Ce.call.apply(Ce,[G,Q].concat(Wt))});var Kn=ot(nt,kt,$,z,Ie,H,pe,mt),Jn=xn.has("hover"),xt=jt.has("hover"),jn,$n;Jn&&(In("onMouseEnter",!0,_,function(Q){De(Q)}),In("onPointerEnter",!0,_,function(Q){De(Q)}),jn=function(Ce){(nt||Je)&&z!==null&&z!==void 0&&z.contains(Ce.target)&&mt(!0,_)},Re&&(ae.onMouseMove=function(Q){var Ce;(Ce=G.onMouseMove)===null||Ce===void 0||Ce.call(G,Q)})),xt&&(In("onMouseLeave",!1,K),In("onPointerLeave",!1,K),$n=function(){mt(!1,K)}),xn.has("focus")&&In("onFocus",!0,ve),jt.has("focus")&&In("onBlur",!1,ie),xn.has("contextMenu")&&(ae.onContextMenu=function(Q){var Ce;ft.current&&jt.has("contextMenu")?mt(!1):(De(Q),mt(!0)),Q.preventDefault();for(var Qe=arguments.length,Wt=new Array(Qe>1?Qe-1:0),Ot=1;Ot<Qe;Ot++)Wt[Ot-1]=arguments[Ot];(Ce=G.onContextMenu)===null||Ce===void 0||Ce.call.apply(Ce,[G,Q].concat(Wt))}),lt&&(ae.className=he()(G.className,lt));var fe=W.useRef(!1);fe.current||(fe.current=dt||nt||Je);var Oe=(0,s.Z)((0,s.Z)({},G),ae),xe={},Te=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Te.forEach(function(Q){Ht[Q]&&(xe[Q]=function(){for(var Ce,Qe=arguments.length,Wt=new Array(Qe),Ot=0;Ot<Qe;Ot++)Wt[Ot]=arguments[Ot];(Ce=Oe[Q])===null||Ce===void 0||Ce.call.apply(Ce,[Oe].concat(Wt)),Ht[Q].apply(Ht,Wt)})});var yt=W.cloneElement($e,(0,s.Z)((0,s.Z)({},Oe),xe)),At={x:gt,y:cn},Wn=un?(0,s.Z)({},un!==!0?un:{}):null;return W.createElement(W.Fragment,null,W.createElement(J.Z,{disabled:!nt,ref:le,onResize:ar},W.createElement(tn,{getTriggerDOMNode:an},yt)),fe.current&&W.createElement(_t.Provider,{value:m},W.createElement(Ut,{portal:r,ref:ee,prefixCls:p,popup:ct,className:he()(de,Hn),style:Se,target:$,onMouseEnter:jn,onMouseLeave:$n,onPointerEnter:jn,zIndex:ce,open:nt,keepDom:Je,fresh:Zt,onClick:Jt,onPointerDownCapture:Kn,mask:Ie,motion:tt,maskMotion:Ne,onVisibleChanged:qn,onPrepare:er,forceRender:dt,autoDestroy:Pe,getPopupContainer:Le,align:Pn,arrow:Wn,arrowPos:At,ready:X,offsetX:U,offsetY:be,offsetR:rt,offsetB:ht,onAlign:Zn,stretch:bt,targetWidth:kn/Sn,targetHeight:rr/dn})))});return l}var g=Pt(k.Z)},39352:function(_n,Vt,i){i.r(Vt),i.d(Vt,{default:function(){return O}});var s=i(59301),L=i(65582),B=i(29787),k={headerTabBarContainer:"headerTabBarContainer___Nq0Dm",userInfo:"userInfo___R_AXo",img:"img___XUouS",detail:"detail___k89kc",space:"space___zTuz_",school:"school___bCCy2",headerContainer:"headerContainer___zNlzC",listItemWrap:"listItemWrap___SpIzT",listItem:"listItem___cFJUj",nameContainer:"nameContainer___fQG64",iconWrap:"iconWrap___wK4NI"},T={styleWrapContainer:"styleWrapContainer___fTNBN",default:"default___lObcd",header:"header___oOyPW",tabBarContainer:"tabBarContainer___EWE_7",large:"large___Ael5K",middle:"middle___PPMC_",title:"title___XNXFq",tabBarText:"tabBarText___aN99K",small:"small___Oo9S7"},J=({children:c,style:o={},title:u,type:w="default",tabBarContent:h,onTabBarClick:R})=>s.createElement("div",{className:`${T.styleWrapContainer} ${T[w]}`,style:o},s.createElement("div",{className:T.header},s.createElement("div",{className:T.title},u),w==="large"&&h,w==="default"&&s.createElement("div",{className:T.tabBarContainer},h.map((_,Y)=>s.createElement("div",{key:Y,onClick:()=>R?R(_.value):{}},s.createElement("span",null,s.createElement("i",{className:`iconfont ${_.icon}`})),s.createElement("span",null,_.label)))),w==="middle"&&s.createElement("div",{className:T.tabBarText},h)),c),Ee=i(82326),Ve=i(6767),a=i(37568),pt=i(54476),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Ke=d,W=i(7657),pn=function(o,u){return s.createElement(W.Z,(0,pt.Z)({},o,{ref:u,icon:Ke}))},wn=s.forwardRef(pn),qt=wn,ln=i(86967),Rn=i(74128),en=Object.defineProperty,A=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Ft=(c,o,u)=>o in c?en(c,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):c[o]=u,_t=(c,o)=>{for(var u in o||(o={}))oe.call(o,u)&&Ft(c,u,o[u]);if(Ut)for(var u of Ut(o))tn.call(o,u)&&Ft(c,u,o[u]);return c},Tt=(c,o)=>A(c,gn(o));const{Option:nn}=Ee.default,I=s.createRef(),v=({loading:c,headerData:o,user:u,dispatch:w})=>{var h;const[R,_]=(0,s.useState)({status:!1,oldValue:"",newValue:""}),[Y,K]=(0,s.useState)(!1),ve=(0,s.useRef)(!0);(0,s.useEffect)(()=>{var ze;return(ze=u==null?void 0:u.userInfo)!=null&&ze.school_id&&(Le(),K(!1),w({type:"engineeringNavigtion/getMajorList"})),()=>{w({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:ln.k[0],value:""}}),w({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:ln.k[1],value:""}})}},[(h=u==null?void 0:u.userInfo)==null?void 0:h.school_id]),(0,s.useEffect)(()=>{o.active[ln.k[0]]&&(w({type:"engineeringNavigtion/getYearList",payload:{id:o.active[ln.k[0]],firstEnter:ve.current}}),ve.current=!1),w({type:"engineeringNavigtion/setMajorOrYearDataSource",payload:{key:ln.k[1],value:[]}}),w({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:ln.k[1],value:""}})},[o.active[ln.k[0]]]),(0,s.useEffect)(()=>{w({type:"engineeringNavigtion/getTopPage"}),Le()},[o.active[ln.k[1]]]);const ie=(ze,ke)=>{w({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:ze,value:ke}})},Ie=()=>{_({status:!0,oldValue:o.name,newValue:o.name}),setTimeout(()=>{I&&I.current&&I.current.focus()},100)},we=ze=>{_(Tt(_t({},R),{newValue:ze}))},H=()=>{let ze=R.newValue.trim(),ke=R.oldValue.trim();if(!ze)return Ve.ZP.warning("\u8BF7\u586B\u5199\u540D\u79F0"),!1;ze!==ke?w({type:"engineeringNavigtion/putTopPageName",payload:{id:o.active[ln.k[1]],name:ze},callback:({status:ct,message:de})=>{ct===0?(Ve.ZP.success("\u4FDD\u5B58\u6210\u529F"),w({type:"engineeringNavigtion/getTopPage"})):Ve.ZP.error(de),Le()}}):Le()},Le=()=>{_({status:!1,oldValue:"",newValue:""})},dt=()=>{var ze,ke,ct,de,Se,Ue,et,Ge,We,ce;return s.createElement("div",{className:k.headerTabBarContainer},s.createElement("div",{className:k.userInfo},s.createElement("div",{className:k.img},Y&&s.createElement(qt,null),!Y&&s.createElement("img",{src:`${(ze=Rn.Z)==null?void 0:ze.IMG_SERVER}/images/${(ke=u.userInfo)==null?void 0:ke.image_url}`,onError:()=>K(!0)})),s.createElement("div",{className:k.detail},s.createElement("div",null,(de=(ct=u.userInfo)==null?void 0:ct.ec_user_info)==null?void 0:de.user_name),s.createElement("div",null,(Ue=(Se=u.userInfo)==null?void 0:Se.ec_user_info)==null?void 0:Ue.user_type))),((Ge=(et=u.userInfo)==null?void 0:et.ec_user_info)==null?void 0:Ge.user_school)&&s.createElement(s.Fragment,null,s.createElement("div",{className:k.space}),s.createElement("div",{className:k.school},s.createElement("div",null,s.createElement("i",{className:"iconfont icon-daxue"})),s.createElement("div",null,(ce=(We=u.userInfo)==null?void 0:We.ec_user_info)==null?void 0:ce.user_school))))};return s.createElement(J,{title:o.title,type:"large",tabBarContent:dt()},s.createElement("div",{className:k.headerContainer},s.createElement("div",{className:k.listItemWrap},Object.entries(o.dataSource).map(([ze,ke])=>s.createElement("div",{key:ze,className:k.listItem},s.createElement("span",null,ze),s.createElement(Ee.default,{style:{width:ke.width},value:o.active[ze]||void 0,bordered:!1,placeholder:ke.placeholder,loading:c.effects[ke.loading],onChange:ct=>ie(ze,ct)},ke.dataList.map(ct=>s.createElement(nn,{key:ct.value,value:ct.value},ct.label)))))),o.name&&s.createElement("div",{className:k.nameContainer},!R.status&&s.createElement(s.Fragment,null,s.createElement("span",null,o.name),s.createElement("span",{onClick:Ie},s.createElement("i",{className:"iconfont icon-bianji7"}))),R.status&&s.createElement(s.Fragment,null,s.createElement(a.default,{ref:I,value:R.newValue,style:{width:280,marginRight:15,height:38},onChange:ze=>we(ze.target.value)}),s.createElement("div",{className:k.iconWrap},s.createElement("span",{onClick:H},s.createElement("i",{className:"iconfont icon-baocun1"})),s.createElement("span",{onClick:Le},s.createElement("i",{className:"iconfont icon-quxiao"})))))))};var D=(0,L.connect)(({user:c,loading:o,engineeringNavigtion:u})=>_t({user:c,loading:o},u))(v),b={cardListContainer:"cardListContainer___cOvhW",left:"left___aHG_T",leftList:"leftList____UVAt",resultWrap:"resultWrap___EMouZ",reusltContainer:"reusltContainer___rkPOf",success:"success___B8bZK",spheric:"spheric___si9yt",listItemWrap:"listItemWrap___AZiiY",listItem:"listItem___x5794",content:"content___nMJwb",label:"label___IKiST",total:"total___NvRmD",right:"right___iac1g",rightList:"rightList___RJ6cd",emptyContaioner:"emptyContaioner___famIv"},M=i(584),ne=Object.defineProperty,y=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ue=(c,o,u)=>o in c?ne(c,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):c[o]=u,ye=(c,o)=>{for(var u in o||(o={}))re.call(o,u)&&ue(c,u,o[u]);if(y)for(var u of y(o))Fe.call(o,u)&&ue(c,u,o[u]);return c};const Ze=({appraiseData:c,teamData:o,active:u})=>s.createElement("div",{className:b.cardListContainer},s.createElement("div",{className:b.left},Object.entries(c).map(([w,h],R)=>s.createElement(J,{key:w,title:h.title,tabBarContent:h.tabBarContent,style:{marginBottom:R===1?0:20,height:350},onTabBarClick:_=>{const Y=u.\u8BA4\u8BC1\u5C4A\u522B?`${_}?ec_major_school_id=${u.\u8BA4\u8BC1\u4E13\u4E1A}&ec_year_id=${u.\u8BA4\u8BC1\u5C4A\u522B}`:_;L.history.push(Y)}},s.createElement("div",{className:b.leftList},s.createElement("div",{className:b.resultWrap},s.createElement("div",{className:`${b.reusltContainer} ${h.result==="\u8FBE\u6210"?b.success:""}`},s.createElement("div",{className:b.spheric},s.createElement("div",null,h.result),s.createElement("div",null,"\u8BC4\u4EF7\u7ED3\u679C")))),s.createElement("div",{className:b.listItemWrap},h.listData.map((_,Y)=>s.createElement("div",{className:b.listItem,key:Y},s.createElement("span",{style:{background:_.backgroundColor,color:_.textColor}},s.createElement("i",{className:`iconfont ${_.icon}`})),s.createElement("div",{className:b.content},s.createElement("div",{className:b.label},_.label),s.createElement("div",{className:b.total},s.createElement("span",null,_.value),s.createElement("span",null,_.unit)))))))))),s.createElement("div",{className:b.right},Object.entries(o).map(([w,h],R)=>s.createElement(J,{type:"middle",key:w,title:h.title,tabBarContent:h.tabBarContent,style:{marginBottom:R===1?0:20,height:350}},s.createElement("div",{className:b.rightList},h.listData.length===0&&s.createElement("div",{className:b.emptyContaioner},s.createElement(M.Z,{image:M.Z.PRESENTED_IMAGE_SIMPLE})),h.listData.length>0&&h.listData.map((_,Y)=>s.createElement("div",{key:Y,className:b.listItem},_)))))));var je=(0,L.connect)(({user:c,engineeringNavigtion:o})=>ye(ye({user:c},o.headerData),o.cardListData))(Ze),se={totalListContainer:"totalListContainer___GwKjh",listItem:"listItem___Gj5yg",total:"total___DzDtA",icon:"icon___YtvQo"},ge=Object.defineProperty,st=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ot=(c,o,u)=>o in c?ge(c,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):c[o]=u,Gt=(c,o)=>{for(var u in o||(o={}))qe.call(o,u)&&ot(c,u,o[u]);if(st)for(var u of st(o))Ye.call(o,u)&&ot(c,u,o[u]);return c};const Pt=({totalListData:c})=>s.createElement("div",{className:se.totalListContainer},c.map(o=>s.createElement(J,{key:o.title,title:o.title,tabBarContent:null,type:"small",style:{width:"calc((100% - 40px) / 3)",height:160}},s.createElement("div",{className:se.listItem},s.createElement("div",{className:se.total},s.createElement("span",null,o.value),"\u4EBA"),s.createElement("div",{className:se.icon,style:{backgroundColor:o.backgroundColor}},s.createElement("i",{className:`iconfont ${o.icon}`,style:{color:o.textColor}}))))));var g=(0,L.connect)(({engineeringNavigtion:c})=>Gt({},c))(Pt),r={navigationHomeContainer:"navigationHomeContainer___fTEXn"},l=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,p=(c,o,u)=>o in c?l(c,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):c[o]=u,C=(c,o)=>{for(var u in o||(o={}))f.call(o,u)&&p(c,u,o[u]);if(n)for(var u of n(o))S.call(o,u)&&p(c,u,o[u]);return c};const V=({loading:c})=>s.createElement(B.Z,{spinning:c.effects["engineeringNavigtion/getTopPage"]},s.createElement("div",{className:r.navigationHomeContainer},s.createElement(D,null),s.createElement(je,null),s.createElement(g,null)));var O=(0,L.connect)(({loading:c,engineeringNavigtion:o})=>C({loading:c},o))(V)},66003:function(_n,Vt,i){i.d(Vt,{Z:function(){return J}});var s=i(75931),L=i(33885),B=i(76190),k=i(59301),T=["show"];function he(Ee,Ve){if(!Ve.max)return!0;var a=Ve.strategy(Ee);return a<=Ve.max}function J(Ee,Ve){return k.useMemo(function(){var a={};Ve&&(a.show=(0,B.Z)(Ve)==="object"&&Ve.formatter?Ve.formatter:!!Ve),a=(0,L.Z)((0,L.Z)({},a),Ee);var pt=a,d=pt.show,Ke=(0,s.Z)(pt,T);return(0,L.Z)((0,L.Z)({},Ke),{},{show:!!d,showFormatter:typeof d=="function"?d:void 0,strategy:Ke.strategy||function(W){return W.length}})},[Ee,Ve])}},36901:function(_n,Vt,i){i.r(Vt),i.d(Vt,{BaseInput:function(){return a},default:function(){return en}});var s=i(33885),L=i(54476),B=i(20068),k=i(76190),T=i(92310),he=i.n(T),J=i(59301),Ee=i(30292),Ve=J.forwardRef(function(A,gn){var Ut,oe,tn,Ft=A.inputElement,_t=A.children,Tt=A.prefixCls,nn=A.prefix,I=A.suffix,v=A.addonBefore,D=A.addonAfter,b=A.className,M=A.style,ne=A.disabled,y=A.readOnly,re=A.focused,Fe=A.triggerFocus,ue=A.allowClear,ye=A.value,Ze=A.handleReset,je=A.hidden,se=A.classes,ge=A.classNames,st=A.dataAttrs,qe=A.styles,Ye=A.components,ot=A.onClear,Gt=_t!=null?_t:Ft,Pt=(Ye==null?void 0:Ye.affixWrapper)||"span",g=(Ye==null?void 0:Ye.groupWrapper)||"span",r=(Ye==null?void 0:Ye.wrapper)||"span",l=(Ye==null?void 0:Ye.groupAddon)||"span",n=(0,J.useRef)(null),f=function(Ie){var we;(we=n.current)!==null&&we!==void 0&&we.contains(Ie.target)&&(Fe==null||Fe())},S=(0,Ee.X3)(A),p=(0,J.cloneElement)(Gt,{value:ye,className:he()((Ut=Gt.props)===null||Ut===void 0?void 0:Ut.className,!S&&(ge==null?void 0:ge.variant))||null}),C=(0,J.useRef)(null);if(J.useImperativeHandle(gn,function(){return{nativeElement:C.current||n.current}}),S){var V=null;if(ue){var O=!ne&&!y&&ye,c="".concat(Tt,"-clear-icon"),o=(0,k.Z)(ue)==="object"&&ue!==null&&ue!==void 0&&ue.clearIcon?ue.clearIcon:"\u2716";V=J.createElement("button",{type:"button",tabIndex:-1,onClick:function(Ie){Ze==null||Ze(Ie),ot==null||ot()},onMouseDown:function(Ie){return Ie.preventDefault()},className:he()(c,(0,B.Z)((0,B.Z)({},"".concat(c,"-hidden"),!O),"".concat(c,"-has-suffix"),!!I))},o)}var u="".concat(Tt,"-affix-wrapper"),w=he()(u,(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(Tt,"-disabled"),ne),"".concat(u,"-disabled"),ne),"".concat(u,"-focused"),re),"".concat(u,"-readonly"),y),"".concat(u,"-input-with-clear-btn"),I&&ue&&ye),se==null?void 0:se.affixWrapper,ge==null?void 0:ge.affixWrapper,ge==null?void 0:ge.variant),h=(I||ue)&&J.createElement("span",{className:he()("".concat(Tt,"-suffix"),ge==null?void 0:ge.suffix),style:qe==null?void 0:qe.suffix},V,I);p=J.createElement(Pt,(0,L.Z)({className:w,style:qe==null?void 0:qe.affixWrapper,onClick:f},st==null?void 0:st.affixWrapper,{ref:n}),nn&&J.createElement("span",{className:he()("".concat(Tt,"-prefix"),ge==null?void 0:ge.prefix),style:qe==null?void 0:qe.prefix},nn),p,h)}if((0,Ee.He)(A)){var R="".concat(Tt,"-group"),_="".concat(R,"-addon"),Y="".concat(R,"-wrapper"),K=he()("".concat(Tt,"-wrapper"),R,se==null?void 0:se.wrapper,ge==null?void 0:ge.wrapper),ve=he()(Y,(0,B.Z)({},"".concat(Y,"-disabled"),ne),se==null?void 0:se.group,ge==null?void 0:ge.groupWrapper);p=J.createElement(g,{className:ve,ref:C},J.createElement(r,{className:K},v&&J.createElement(l,{className:_},v),p,D&&J.createElement(l,{className:_},D)))}return J.cloneElement(p,{className:he()((oe=p.props)===null||oe===void 0?void 0:oe.className,b)||null,style:(0,s.Z)((0,s.Z)({},(tn=p.props)===null||tn===void 0?void 0:tn.style),M),hidden:je})}),a=Ve,pt=i(94480),d=i(42978),Ke=i(75931),W=i(18929),pn=i(2738),wn=i(66003),qt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ln=(0,J.forwardRef)(function(A,gn){var Ut=A.autoComplete,oe=A.onChange,tn=A.onFocus,Ft=A.onBlur,_t=A.onPressEnter,Tt=A.onKeyDown,nn=A.onKeyUp,I=A.prefixCls,v=I===void 0?"rc-input":I,D=A.disabled,b=A.htmlSize,M=A.className,ne=A.maxLength,y=A.suffix,re=A.showCount,Fe=A.count,ue=A.type,ye=ue===void 0?"text":ue,Ze=A.classes,je=A.classNames,se=A.styles,ge=A.onCompositionStart,st=A.onCompositionEnd,qe=(0,Ke.Z)(A,qt),Ye=(0,J.useState)(!1),ot=(0,d.Z)(Ye,2),Gt=ot[0],Pt=ot[1],g=(0,J.useRef)(!1),r=(0,J.useRef)(!1),l=(0,J.useRef)(null),n=(0,J.useRef)(null),f=function(Se){l.current&&(0,Ee.nH)(l.current,Se)},S=(0,W.Z)(A.defaultValue,{value:A.value}),p=(0,d.Z)(S,2),C=p[0],V=p[1],O=C==null?"":String(C),c=(0,J.useState)(null),o=(0,d.Z)(c,2),u=o[0],w=o[1],h=(0,wn.Z)(Fe,re),R=h.max||ne,_=h.strategy(O),Y=!!R&&_>R;(0,J.useImperativeHandle)(gn,function(){var de;return{focus:f,blur:function(){var Ue;(Ue=l.current)===null||Ue===void 0||Ue.blur()},setSelectionRange:function(Ue,et,Ge){var We;(We=l.current)===null||We===void 0||We.setSelectionRange(Ue,et,Ge)},select:function(){var Ue;(Ue=l.current)===null||Ue===void 0||Ue.select()},input:l.current,nativeElement:((de=n.current)===null||de===void 0?void 0:de.nativeElement)||l.current}}),(0,J.useEffect)(function(){r.current&&(r.current=!1),Pt(function(de){return de&&D?!1:de})},[D]);var K=function(Se,Ue,et){var Ge=Ue;if(!g.current&&h.exceedFormatter&&h.max&&h.strategy(Ue)>h.max){if(Ge=h.exceedFormatter(Ue,{max:h.max}),Ue!==Ge){var We,ce;w([((We=l.current)===null||We===void 0?void 0:We.selectionStart)||0,((ce=l.current)===null||ce===void 0?void 0:ce.selectionEnd)||0])}}else if(et.source==="compositionEnd")return;V(Ge),l.current&&(0,Ee.rJ)(l.current,Se,oe,Ge)};(0,J.useEffect)(function(){if(u){var de;(de=l.current)===null||de===void 0||de.setSelectionRange.apply(de,(0,pt.Z)(u))}},[u]);var ve=function(Se){K(Se,Se.target.value,{source:"change"})},ie=function(Se){g.current=!1,K(Se,Se.currentTarget.value,{source:"compositionEnd"}),st==null||st(Se)},Ie=function(Se){_t&&Se.key==="Enter"&&!r.current&&(r.current=!0,_t(Se)),Tt==null||Tt(Se)},we=function(Se){Se.key==="Enter"&&(r.current=!1),nn==null||nn(Se)},H=function(Se){Pt(!0),tn==null||tn(Se)},Le=function(Se){r.current&&(r.current=!1),Pt(!1),Ft==null||Ft(Se)},dt=function(Se){V(""),f(),l.current&&(0,Ee.rJ)(l.current,Se,oe)},ze=Y&&"".concat(v,"-out-of-range"),ke=function(){var Se=(0,pn.Z)(A,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return J.createElement("input",(0,L.Z)({autoComplete:Ut},Se,{onChange:ve,onFocus:H,onBlur:Le,onKeyDown:Ie,onKeyUp:we,className:he()(v,(0,B.Z)({},"".concat(v,"-disabled"),D),je==null?void 0:je.input),style:se==null?void 0:se.input,ref:l,size:b,type:ye,onCompositionStart:function(et){g.current=!0,ge==null||ge(et)},onCompositionEnd:ie}))},ct=function(){var Se=Number(R)>0;if(y||h.show){var Ue=h.showFormatter?h.showFormatter({value:O,count:_,maxLength:R}):"".concat(_).concat(Se?" / ".concat(R):"");return J.createElement(J.Fragment,null,h.show&&J.createElement("span",{className:he()("".concat(v,"-show-count-suffix"),(0,B.Z)({},"".concat(v,"-show-count-has-suffix"),!!y),je==null?void 0:je.count),style:(0,s.Z)({},se==null?void 0:se.count)},Ue),y)}return null};return J.createElement(a,(0,L.Z)({},qe,{prefixCls:v,className:he()(M,ze),handleReset:dt,value:O,focused:Gt,triggerFocus:f,suffix:ct(),disabled:D,classes:Ze,classNames:je,styles:se}),ke())}),Rn=ln,en=Rn},30292:function(_n,Vt,i){i.d(Vt,{He:function(){return s},X3:function(){return L},nH:function(){return T},rJ:function(){return k}});function s(he){return!!(he.addonBefore||he.addonAfter)}function L(he){return!!(he.prefix||he.suffix||he.allowClear)}function B(he,J,Ee){var Ve=J.cloneNode(!0),a=Object.create(he,{target:{value:Ve},currentTarget:{value:Ve}});return Ve.value=Ee,typeof J.selectionStart=="number"&&typeof J.selectionEnd=="number"&&(Ve.selectionStart=J.selectionStart,Ve.selectionEnd=J.selectionEnd),Ve.setSelectionRange=function(){J.setSelectionRange.apply(J,arguments)},a}function k(he,J,Ee,Ve){if(Ee){var a=J;if(J.type==="click"){a=B(J,he,""),Ee(a);return}if(he.type!=="file"&&Ve!==void 0){a=B(J,he,Ve),Ee(a);return}Ee(a)}}function T(he,J){if(he){he.focus(J);var Ee=J||{},Ve=Ee.cursor;if(Ve){var a=he.value.length;switch(Ve){case"start":he.setSelectionRange(0,0);break;case"end":he.setSelectionRange(a,a);break;default:he.setSelectionRange(0,a)}}}}},83836:function(_n,Vt,i){i.d(Vt,{Z:function(){return ne}});var s=i(54476),L=i(33885),B=i(42978),k=i(75931),T=i(59301),he=i(92310),J=i.n(he),Ee=i(29301),Ve=i(34280),a=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pt=void 0;function d(y,re){var Fe=y.prefixCls,ue=y.invalidate,ye=y.item,Ze=y.renderItem,je=y.responsive,se=y.responsiveDisabled,ge=y.registerSize,st=y.itemKey,qe=y.className,Ye=y.style,ot=y.children,Gt=y.display,Pt=y.order,g=y.component,r=g===void 0?"div":g,l=(0,k.Z)(y,a),n=je&&!Gt;function f(O){ge(st,O)}T.useEffect(function(){return function(){f(null)}},[]);var S=Ze&&ye!==pt?Ze(ye,{index:Pt}):ot,p;ue||(p={opacity:n?0:1,height:n?0:pt,overflowY:n?"hidden":pt,order:je?Pt:pt,pointerEvents:n?"none":pt,position:n?"absolute":pt});var C={};n&&(C["aria-hidden"]=!0);var V=T.createElement(r,(0,s.Z)({className:J()(!ue&&Fe,qe),style:(0,L.Z)((0,L.Z)({},p),Ye)},C,l,{ref:re}),S);return je&&(V=T.createElement(Ee.Z,{onResize:function(c){var o=c.offsetWidth;f(o)},disabled:se},V)),V}var Ke=T.forwardRef(d);Ke.displayName="Item";var W=Ke,pn=i(6089),wn=i(4676),qt=i(16089);function ln(y){if(typeof MessageChannel=="undefined")(0,qt.Z)(y);else{var re=new MessageChannel;re.port1.onmessage=function(){return y()},re.port2.postMessage(void 0)}}function Rn(){var y=T.useRef(null),re=function(ue){y.current||(y.current=[],ln(function(){(0,wn.unstable_batchedUpdates)(function(){y.current.forEach(function(ye){ye()}),y.current=null})})),y.current.push(ue)};return re}function en(y,re){var Fe=T.useState(re),ue=(0,B.Z)(Fe,2),ye=ue[0],Ze=ue[1],je=(0,pn.Z)(function(se){y(function(){Ze(se)})});return[ye,je]}var A=T.createContext(null),gn=["component"],Ut=["className"],oe=["className"],tn=function(re,Fe){var ue=T.useContext(A);if(!ue){var ye=re.component,Ze=ye===void 0?"div":ye,je=(0,k.Z)(re,gn);return T.createElement(Ze,(0,s.Z)({},je,{ref:Fe}))}var se=ue.className,ge=(0,k.Z)(ue,Ut),st=re.className,qe=(0,k.Z)(re,oe);return T.createElement(A.Provider,{value:null},T.createElement(W,(0,s.Z)({ref:Fe,className:J()(se,st)},ge,qe)))},Ft=T.forwardRef(tn);Ft.displayName="RawItem";var _t=Ft,Tt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],nn="responsive",I="invalidate";function v(y){return"+ ".concat(y.length," ...")}function D(y,re){var Fe=y.prefixCls,ue=Fe===void 0?"rc-overflow":Fe,ye=y.data,Ze=ye===void 0?[]:ye,je=y.renderItem,se=y.renderRawItem,ge=y.itemKey,st=y.itemWidth,qe=st===void 0?10:st,Ye=y.ssr,ot=y.style,Gt=y.className,Pt=y.maxCount,g=y.renderRest,r=y.renderRawRest,l=y.prefix,n=y.suffix,f=y.component,S=f===void 0?"div":f,p=y.itemComponent,C=y.onVisibleChange,V=(0,k.Z)(y,Tt),O=Ye==="full",c=Rn(),o=en(c,null),u=(0,B.Z)(o,2),w=u[0],h=u[1],R=w||0,_=en(c,new Map),Y=(0,B.Z)(_,2),K=Y[0],ve=Y[1],ie=en(c,0),Ie=(0,B.Z)(ie,2),we=Ie[0],H=Ie[1],Le=en(c,0),dt=(0,B.Z)(Le,2),ze=dt[0],ke=dt[1],ct=en(c,0),de=(0,B.Z)(ct,2),Se=de[0],Ue=de[1],et=en(c,0),Ge=(0,B.Z)(et,2),We=Ge[0],ce=Ge[1],bt=(0,T.useState)(null),Ct=(0,B.Z)(bt,2),Zt=Ct[0],Re=Ct[1],Jt=(0,T.useState)(null),bn=(0,B.Z)(Jt,2),un=bn[0],sn=bn[1],Yt=T.useMemo(function(){return un===null&&O?Number.MAX_SAFE_INTEGER:un||0},[un,w]),Nt=(0,T.useState)(!1),rn=(0,B.Z)(Nt,2),Xt=rn[0],Et=rn[1],lt="".concat(ue,"-item"),an=Math.max(we,ze),Ht=Pt===nn,Pe=Ze.length&&Ht,_e=Pt===I,Qt=Pe||typeof Pt=="number"&&Ze.length>Pt,Bt=(0,T.useMemo)(function(){var G=Ze;return Pe?w===null&&O?G=Ze:G=Ze.slice(0,Math.min(Ze.length,R/qe)):typeof Pt=="number"&&(G=Ze.slice(0,Pt)),G},[Ze,qe,w,Pt,Pe]),t=(0,T.useMemo)(function(){return Pe?Ze.slice(Yt+1):Ze.slice(Bt.length)},[Ze,Bt,Pe,Yt]),e=(0,T.useCallback)(function(G,ae){var pe;return typeof ge=="function"?ge(G):(pe=ge&&(G==null?void 0:G[ge]))!==null&&pe!==void 0?pe:ae},[ge]),E=(0,T.useCallback)(je||function(G){return G},[je]);function m(G,ae,pe){un===G&&(ae===void 0||ae===Zt)||(sn(G),pe||(Et(G<Ze.length-1),C==null||C(G)),ae!==void 0&&Re(ae))}function P(G,ae){h(ae.clientWidth)}function N(G,ae){ve(function(pe){var tt=new Map(pe);return ae===null?tt.delete(G):tt.set(G,ae),tt})}function F(G,ae){ke(ae),H(ze)}function z(G,ae){Ue(ae)}function q(G,ae){ce(ae)}function j(G){return K.get(e(Bt[G],G))}(0,Ve.Z)(function(){if(R&&typeof an=="number"&&Bt){var G=Se+We,ae=Bt.length,pe=ae-1;if(!ae){m(0,null);return}for(var tt=0;tt<ae;tt+=1){var Ne=j(tt);if(O&&(Ne=Ne||0),Ne===void 0){m(tt-1,void 0,!0);break}if(G+=Ne,pe===0&&G<=R||tt===pe-1&&G+j(pe)<=R){m(pe,null);break}else if(G+an>R){m(tt-1,G-Ne-We+ze);break}}n&&j(0)+We>R&&Re(null)}},[R,K,ze,Se,We,e,Bt]);var ee=Xt&&!!t.length,me={};Zt!==null&&Pe&&(me={position:"absolute",left:Zt,top:0});var Be={prefixCls:lt,responsive:Pe,component:p,invalidate:_e},$=se?function(G,ae){var pe=e(G,ae);return T.createElement(A.Provider,{key:pe,value:(0,L.Z)((0,L.Z)({},Be),{},{order:ae,item:G,itemKey:pe,registerSize:N,display:ae<=Yt})},se(G,ae))}:function(G,ae){var pe=e(G,ae);return T.createElement(W,(0,s.Z)({},Be,{order:ae,key:pe,item:G,renderItem:E,itemKey:pe,registerSize:N,display:ae<=Yt}))},Me={order:ee?Yt:Number.MAX_SAFE_INTEGER,className:"".concat(lt,"-rest"),registerSize:F,display:ee},te=g||v,le=r?T.createElement(A.Provider,{value:(0,L.Z)((0,L.Z)({},Be),Me)},r(t)):T.createElement(W,(0,s.Z)({},Be,Me),typeof te=="function"?te(t):te),$e=T.createElement(S,(0,s.Z)({className:J()(!_e&&ue,Gt),style:ot,ref:re},V),l&&T.createElement(W,(0,s.Z)({},Be,{responsive:Ht,responsiveDisabled:!Pe,order:-1,className:"".concat(lt,"-prefix"),registerSize:z,display:!0}),l),Bt.map($),Qt?le:null,n&&T.createElement(W,(0,s.Z)({},Be,{responsive:Ht,responsiveDisabled:!Pe,order:Yt,className:"".concat(lt,"-suffix"),registerSize:q,display:!0,style:me}),n));return Ht?T.createElement(Ee.Z,{onResize:P,disabled:!Pe},$e):$e}var b=T.forwardRef(D);b.displayName="Overflow",b.Item=_t,b.RESPONSIVE=nn,b.INVALIDATE=I;var M=b,ne=M},29301:function(_n,Vt,i){i.d(Vt,{Z:function(){return I}});var s=i(54476),L=i(59301),B=i(11592),k=i(48736),T=i(33885),he=i(76190),J=i(76846),Ee=i(8654),Ve=L.createContext(null);function a(v){var D=v.children,b=v.onBatchResize,M=L.useRef(0),ne=L.useRef([]),y=L.useContext(Ve),re=L.useCallback(function(Fe,ue,ye){M.current+=1;var Ze=M.current;ne.current.push({size:Fe,element:ue,data:ye}),Promise.resolve().then(function(){Ze===M.current&&(b==null||b(ne.current),ne.current=[])}),y==null||y(Fe,ue,ye)},[b,y]);return L.createElement(Ve.Provider,{value:re},D)}var pt=i(76374),d=new Map;function Ke(v){v.forEach(function(D){var b,M=D.target;(b=d.get(M))===null||b===void 0||b.forEach(function(ne){return ne(M)})})}var W=new pt.Z(Ke),pn=null,wn=null;function qt(v,D){d.has(v)||(d.set(v,new Set),W.observe(v)),d.get(v).add(D)}function ln(v,D){d.has(v)&&(d.get(v).delete(D),d.get(v).size||(W.unobserve(v),d.delete(v)))}var Rn=i(67732),en=i(83652),A=i(42403),gn=i(158),Ut=function(v){(0,A.Z)(b,v);var D=(0,gn.Z)(b);function b(){return(0,Rn.Z)(this,b),D.apply(this,arguments)}return(0,en.Z)(b,[{key:"render",value:function(){return this.props.children}}]),b}(L.Component);function oe(v,D){var b=v.children,M=v.disabled,ne=L.useRef(null),y=L.useRef(null),re=L.useContext(Ve),Fe=typeof b=="function",ue=Fe?b(ne):b,ye=L.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ze=!Fe&&L.isValidElement(ue)&&(0,Ee.Yr)(ue),je=Ze?(0,Ee.C4)(ue):null,se=(0,Ee.x1)(je,ne),ge=function(){var ot;return(0,J.ZP)(ne.current)||(ne.current&&(0,he.Z)(ne.current)==="object"?(0,J.ZP)((ot=ne.current)===null||ot===void 0?void 0:ot.nativeElement):null)||(0,J.ZP)(y.current)};L.useImperativeHandle(D,function(){return ge()});var st=L.useRef(v);st.current=v;var qe=L.useCallback(function(Ye){var ot=st.current,Gt=ot.onResize,Pt=ot.data,g=Ye.getBoundingClientRect(),r=g.width,l=g.height,n=Ye.offsetWidth,f=Ye.offsetHeight,S=Math.floor(r),p=Math.floor(l);if(ye.current.width!==S||ye.current.height!==p||ye.current.offsetWidth!==n||ye.current.offsetHeight!==f){var C={width:S,height:p,offsetWidth:n,offsetHeight:f};ye.current=C;var V=n===Math.round(r)?r:n,O=f===Math.round(l)?l:f,c=(0,T.Z)((0,T.Z)({},C),{},{offsetWidth:V,offsetHeight:O});re==null||re(c,Ye,Pt),Gt&&Promise.resolve().then(function(){Gt(c,Ye)})}},[]);return L.useEffect(function(){var Ye=ge();return Ye&&!M&&qt(Ye,qe),function(){return ln(Ye,qe)}},[ne.current,M]),L.createElement(Ut,{ref:y},Ze?L.cloneElement(ue,{ref:se}):ue)}var tn=L.forwardRef(oe),Ft=tn,_t="rc-observer-key";function Tt(v,D){var b=v.children,M=typeof b=="function"?[b]:(0,B.Z)(b);return M.map(function(ne,y){var re=(ne==null?void 0:ne.key)||"".concat(_t,"-").concat(y);return L.createElement(Ft,(0,s.Z)({},v,{key:re,ref:y===0?D:void 0}),ne)})}var nn=L.forwardRef(Tt);nn.Collection=a;var I=nn},6551:function(_n,Vt,i){i.d(Vt,{ZP:function(){return J}});var s=i(42978),L=i(59301),B=i(47273),k=0,T=(0,B.Z)();function he(){var Ee;return T?(Ee=k,k+=1):Ee="TEST_OR_SSR",Ee}function J(Ee){var Ve=L.useState(),a=(0,s.Z)(Ve,2),pt=a[0],d=a[1];return L.useEffect(function(){d("rc_select_".concat(he()))},[]),Ee||pt}},37463:function(_n,Vt,i){i.d(Vt,{Ac:function(){return ie},Xo:function(){return we},Wx:function(){return Le},ZP:function(){return Bt},lk:function(){return en}});var s=i(54476),L=i(94480),B=i(20068),k=i(33885),T=i(42978),he=i(75931),J=i(76190),Ee=i(18929),Ve=i(48736),a=i(59301),pt=i(92310),d=i.n(pt),Ke=i(34280),W=i(49658),pn=i(8654),wn=function(e){var E=e.className,m=e.customizeIcon,P=e.customizeIconProps,N=e.children,F=e.onMouseDown,z=e.onClick,q=typeof m=="function"?m(P):m;return a.createElement("span",{className:E,onMouseDown:function(ee){ee.preventDefault(),F==null||F(ee)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:z,"aria-hidden":!0},q!==void 0?q:a.createElement("span",{className:d()(E.split(/\s+/).map(function(j){return"".concat(j,"-icon")}))},N))},qt=wn,ln=function(e,E,m,P,N){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,z=arguments.length>6?arguments[6]:void 0,q=arguments.length>7?arguments[7]:void 0,j=a.useMemo(function(){if((0,J.Z)(P)==="object")return P.clearIcon;if(N)return N},[P,N]),ee=a.useMemo(function(){return!!(!F&&P&&(m.length||z)&&!(q==="combobox"&&z===""))},[P,F,m.length,z,q]);return{allowClear:ee,clearIcon:a.createElement(qt,{className:"".concat(e,"-clear"),onMouseDown:E,customizeIcon:j},"\xD7")}},Rn=a.createContext(null);function en(){return a.useContext(Rn)}function A(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=a.useState(!1),E=(0,T.Z)(e,2),m=E[0],P=E[1],N=a.useRef(null),F=function(){window.clearTimeout(N.current)};a.useEffect(function(){return F},[]);var z=function(j,ee){F(),N.current=window.setTimeout(function(){P(j),ee&&ee()},t)};return[m,z,F]}function gn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=a.useRef(null),E=a.useRef(null);a.useEffect(function(){return function(){window.clearTimeout(E.current)}},[]);function m(P){(P||e.current===null)&&(e.current=P),window.clearTimeout(E.current),E.current=window.setTimeout(function(){e.current=null},t)}return[function(){return e.current},m]}function Ut(t,e,E,m){var P=a.useRef(null);P.current={open:e,triggerOpen:E,customizedTrigger:m},a.useEffect(function(){function N(F){var z;if(!((z=P.current)!==null&&z!==void 0&&z.customizedTrigger)){var q=F.target;q.shadowRoot&&F.composed&&(q=F.composedPath()[0]||q),P.current.open&&t().filter(function(j){return j}).every(function(j){return!j.contains(q)&&j!==q})&&P.current.triggerOpen(!1)}}return window.addEventListener("mousedown",N),function(){return window.removeEventListener("mousedown",N)}},[])}var oe=i(10228);function tn(t){return t&&![oe.Z.ESC,oe.Z.SHIFT,oe.Z.BACKSPACE,oe.Z.TAB,oe.Z.WIN_KEY,oe.Z.ALT,oe.Z.META,oe.Z.WIN_KEY_RIGHT,oe.Z.CTRL,oe.Z.SEMICOLON,oe.Z.EQUALS,oe.Z.CAPS_LOCK,oe.Z.CONTEXT_MENU,oe.Z.F1,oe.Z.F2,oe.Z.F3,oe.Z.F4,oe.Z.F5,oe.Z.F6,oe.Z.F7,oe.Z.F8,oe.Z.F9,oe.Z.F10,oe.Z.F11,oe.Z.F12].includes(t)}var Ft=i(26112),_t=i(83836);function Tt(t,e,E){var m=(0,k.Z)((0,k.Z)({},t),E?e:{});return Object.keys(e).forEach(function(P){var N=e[P];typeof N=="function"&&(m[P]=function(){for(var F,z=arguments.length,q=new Array(z),j=0;j<z;j++)q[j]=arguments[j];return N.apply(void 0,q),(F=t[P])===null||F===void 0?void 0:F.call.apply(F,[t].concat(q))})}),m}var nn=Tt,I=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],v=function(e,E){var m=e.prefixCls,P=e.id,N=e.inputElement,F=e.autoFocus,z=e.autoComplete,q=e.editable,j=e.activeDescendantId,ee=e.value,me=e.open,Be=e.attrs,$=(0,he.Z)(e,I),Me=N||a.createElement("input",null),te=Me,le=te.ref,$e=te.props;return(0,Ve.Kp)(!("maxLength"in Me.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Me=a.cloneElement(Me,(0,k.Z)((0,k.Z)((0,k.Z)({type:"search"},nn($,$e,!0)),{},{id:P,ref:(0,pn.sQ)(E,le),autoComplete:z||"off",autoFocus:F,className:d()("".concat(m,"-selection-search-input"),$e==null?void 0:$e.className),role:"combobox","aria-expanded":me||!1,"aria-haspopup":"listbox","aria-owns":"".concat(P,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(P,"_list"),"aria-activedescendant":me?j:void 0},Be),{},{value:q?ee:"",readOnly:!q,unselectable:q?null:"on",style:(0,k.Z)((0,k.Z)({},$e.style),{},{opacity:q?null:0})})),Me},D=a.forwardRef(v),b=D;function M(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}var ne=typeof window!="undefined"&&window.document&&window.document.documentElement,y=ne;function re(t){return t!=null}function Fe(t){return!t&&t!==0}function ue(t){return["string","number"].includes((0,J.Z)(t))}function ye(t){var e=void 0;return t&&(ue(t.title)?e=t.title.toString():ue(t.label)&&(e=t.label.toString())),e}function Ze(t,e){y?a.useLayoutEffect(t,e):a.useEffect(t,e)}function je(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}var se=function(e){e.preventDefault(),e.stopPropagation()},ge=function(e){var E=e.id,m=e.prefixCls,P=e.values,N=e.open,F=e.searchValue,z=e.autoClearSearchValue,q=e.inputRef,j=e.placeholder,ee=e.disabled,me=e.mode,Be=e.showSearch,$=e.autoFocus,Me=e.autoComplete,te=e.activeDescendantId,le=e.tabIndex,$e=e.removeIcon,G=e.maxTagCount,ae=e.maxTagTextLength,pe=e.maxTagPlaceholder,tt=pe===void 0?function(X){return"+ ".concat(X.length," ...")}:pe,Ne=e.tagRender,Mt=e.onToggleOpen,on=e.onRemove,it=e.onInputChange,Xe=e.onInputPaste,nt=e.onInputKeyDown,It=e.onInputMouseDown,ft=e.onInputCompositionStart,He=e.onInputCompositionEnd,Ae=e.onInputBlur,vt=a.useRef(null),Lt=(0,a.useState)(0),mt=(0,T.Z)(Lt,2),wt=mt[0],ut=mt[1],Je=(0,a.useState)(!1),zt=(0,T.Z)(Je,2),hn=zt[0],fn=zt[1],Rt="".concat(m,"-selection"),Cn=N||me==="multiple"&&z===!1||me==="tags"?F:"",$t=me==="tags"||me==="multiple"&&z===!1||Be&&(N||hn);Ze(function(){ut(vt.current.scrollWidth)},[Cn]);var yn=function(U,be,rt,ht,gt){return a.createElement("span",{title:ye(U),className:d()("".concat(Rt,"-item"),(0,B.Z)({},"".concat(Rt,"-item-disabled"),rt))},a.createElement("span",{className:"".concat(Rt,"-item-content")},be),ht&&a.createElement(qt,{className:"".concat(Rt,"-item-remove"),onMouseDown:se,onClick:gt,customizeIcon:$e},"\xD7"))},vn=function(U,be,rt,ht,gt,cn){var Sn=function(Pn){se(Pn),Mt(!N)};return a.createElement("span",{onMouseDown:Sn},Ne({label:be,value:U,disabled:rt,closable:ht,onClose:gt,isMaxTag:!!cn}))},Dt=function(U){var be=U.disabled,rt=U.label,ht=U.value,gt=!ee&&!be,cn=rt;if(typeof ae=="number"&&(typeof rt=="string"||typeof rt=="number")){var Sn=String(cn);Sn.length>ae&&(cn="".concat(Sn.slice(0,ae),"..."))}var dn=function(Kt){Kt&&Kt.stopPropagation(),on(U)};return typeof Ne=="function"?vn(ht,cn,be,gt,dn):yn(U,cn,be,gt,dn)},De=function(U){if(!P.length)return null;var be=typeof tt=="function"?tt(U):tt;return typeof Ne=="function"?vn(void 0,be,!1,!1,void 0,!0):yn({title:be},be,!1)},x=a.createElement("div",{className:"".concat(Rt,"-search"),style:{width:wt},onFocus:function(){fn(!0)},onBlur:function(){fn(!1)}},a.createElement(b,{ref:q,open:N,prefixCls:m,id:E,inputElement:null,disabled:ee,autoFocus:$,autoComplete:Me,editable:$t,activeDescendantId:te,value:Cn,onKeyDown:nt,onMouseDown:It,onChange:it,onPaste:Xe,onCompositionStart:ft,onCompositionEnd:He,onBlur:Ae,tabIndex:le,attrs:(0,Ft.Z)(e,!0)}),a.createElement("span",{ref:vt,className:"".concat(Rt,"-search-mirror"),"aria-hidden":!0},Cn,"\xA0")),Z=a.createElement(_t.Z,{prefixCls:"".concat(Rt,"-overflow"),data:P,renderItem:Dt,renderRest:De,suffix:x,itemKey:je,maxCount:G});return a.createElement("span",{className:"".concat(Rt,"-wrap")},Z,!P.length&&!Cn&&a.createElement("span",{className:"".concat(Rt,"-placeholder")},j))},st=ge,qe=function(e){var E=e.inputElement,m=e.prefixCls,P=e.id,N=e.inputRef,F=e.disabled,z=e.autoFocus,q=e.autoComplete,j=e.activeDescendantId,ee=e.mode,me=e.open,Be=e.values,$=e.placeholder,Me=e.tabIndex,te=e.showSearch,le=e.searchValue,$e=e.activeValue,G=e.maxLength,ae=e.onInputKeyDown,pe=e.onInputMouseDown,tt=e.onInputChange,Ne=e.onInputPaste,Mt=e.onInputCompositionStart,on=e.onInputCompositionEnd,it=e.onInputBlur,Xe=e.title,nt=a.useState(!1),It=(0,T.Z)(nt,2),ft=It[0],He=It[1],Ae=ee==="combobox",vt=Ae||te,Lt=Be[0],mt=le||"";Ae&&$e&&!ft&&(mt=$e),a.useEffect(function(){Ae&&He(!1)},[Ae,$e]);var wt=ee!=="combobox"&&!me&&!te?!1:!!mt,ut=Xe===void 0?ye(Lt):Xe,Je=a.useMemo(function(){return Lt?null:a.createElement("span",{className:"".concat(m,"-selection-placeholder"),style:wt?{visibility:"hidden"}:void 0},$)},[Lt,wt,$,m]);return a.createElement("span",{className:"".concat(m,"-selection-wrap")},a.createElement("span",{className:"".concat(m,"-selection-search")},a.createElement(b,{ref:N,prefixCls:m,id:P,open:me,inputElement:E,disabled:F,autoFocus:z,autoComplete:q,editable:vt,activeDescendantId:j,value:mt,onKeyDown:ae,onMouseDown:pe,onChange:function(hn){He(!0),tt(hn)},onPaste:Ne,onCompositionStart:Mt,onCompositionEnd:on,onBlur:it,tabIndex:Me,attrs:(0,Ft.Z)(e,!0),maxLength:Ae?G:void 0})),!Ae&&Lt?a.createElement("span",{className:"".concat(m,"-selection-item"),title:ut,style:wt?{visibility:"hidden"}:void 0},Lt.label):null,Je)},Ye=qe,ot=function(e,E){var m=(0,a.useRef)(null),P=(0,a.useRef)(!1),N=e.prefixCls,F=e.open,z=e.mode,q=e.showSearch,j=e.tokenWithEnter,ee=e.disabled,me=e.prefix,Be=e.autoClearSearchValue,$=e.onSearch,Me=e.onSearchSubmit,te=e.onToggleOpen,le=e.onInputKeyDown,$e=e.onInputBlur,G=e.domRef;a.useImperativeHandle(E,function(){return{focus:function(ut){m.current.focus(ut)},blur:function(){m.current.blur()}}});var ae=gn(0),pe=(0,T.Z)(ae,2),tt=pe[0],Ne=pe[1],Mt=function(ut){var Je=ut.which,zt=m.current instanceof HTMLTextAreaElement;!zt&&F&&(Je===oe.Z.UP||Je===oe.Z.DOWN)&&ut.preventDefault(),le&&le(ut),Je===oe.Z.ENTER&&z==="tags"&&!P.current&&!F&&(Me==null||Me(ut.target.value)),!(zt&&!F&&~[oe.Z.UP,oe.Z.DOWN,oe.Z.LEFT,oe.Z.RIGHT].indexOf(Je))&&tn(Je)&&te(!0)},on=function(){Ne(!0)},it=(0,a.useRef)(null),Xe=function(ut){$(ut,!0,P.current)!==!1&&te(!0)},nt=function(){P.current=!0},It=function(ut){P.current=!1,z!=="combobox"&&Xe(ut.target.value)},ft=function(ut){var Je=ut.target.value;if(j&&it.current&&/[\r\n]/.test(it.current)){var zt=it.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Je=Je.replace(zt,it.current)}it.current=null,Xe(Je)},He=function(ut){var Je=ut.clipboardData,zt=Je==null?void 0:Je.getData("text");it.current=zt||""},Ae=function(ut){var Je=ut.target;if(Je!==m.current){var zt=document.body.style.msTouchAction!==void 0;zt?setTimeout(function(){m.current.focus()}):m.current.focus()}},vt=function(ut){var Je=tt();ut.target!==m.current&&!Je&&!(z==="combobox"&&ee)&&ut.preventDefault(),(z!=="combobox"&&(!q||!Je)||!F)&&(F&&Be!==!1&&$("",!0,!1),te())},Lt={inputRef:m,onInputKeyDown:Mt,onInputMouseDown:on,onInputChange:ft,onInputPaste:He,onInputCompositionStart:nt,onInputCompositionEnd:It,onInputBlur:$e},mt=z==="multiple"||z==="tags"?a.createElement(st,(0,s.Z)({},e,Lt)):a.createElement(Ye,(0,s.Z)({},e,Lt));return a.createElement("div",{ref:G,className:"".concat(N,"-selector"),onClick:Ae,onMouseDown:vt},me&&a.createElement("div",{className:"".concat(N,"-prefix")},me),mt)},Gt=a.forwardRef(ot),Pt=Gt,g=i(65030),r=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],l=function(e){var E=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:E,adjustY:1},htmlRegion:"scroll"}}},n=function(e,E){var m=e.prefixCls,P=e.disabled,N=e.visible,F=e.children,z=e.popupElement,q=e.animation,j=e.transitionName,ee=e.dropdownStyle,me=e.dropdownClassName,Be=e.direction,$=Be===void 0?"ltr":Be,Me=e.placement,te=e.builtinPlacements,le=e.dropdownMatchSelectWidth,$e=e.dropdownRender,G=e.dropdownAlign,ae=e.getPopupContainer,pe=e.empty,tt=e.getTriggerDOMNode,Ne=e.onPopupVisibleChange,Mt=e.onPopupMouseEnter,on=(0,he.Z)(e,r),it="".concat(m,"-dropdown"),Xe=z;$e&&(Xe=$e(z));var nt=a.useMemo(function(){return te||l(le)},[te,le]),It=q?"".concat(it,"-").concat(q):j,ft=typeof le=="number",He=a.useMemo(function(){return ft?null:le===!1?"minWidth":"width"},[le,ft]),Ae=ee;ft&&(Ae=(0,k.Z)((0,k.Z)({},Ae),{},{width:le}));var vt=a.useRef(null);return a.useImperativeHandle(E,function(){return{getPopupElement:function(){var mt;return(mt=vt.current)===null||mt===void 0?void 0:mt.popupElement}}}),a.createElement(g.Z,(0,s.Z)({},on,{showAction:Ne?["click"]:[],hideAction:Ne?["click"]:[],popupPlacement:Me||($==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:nt,prefixCls:it,popupTransitionName:It,popup:a.createElement("div",{onMouseEnter:Mt},Xe),ref:vt,stretch:He,popupAlign:G,popupVisible:N,getPopupContainer:ae,popupClassName:d()(me,(0,B.Z)({},"".concat(it,"-empty"),pe)),popupStyle:Ae,getTriggerDOMNode:tt,onPopupVisibleChange:Ne}),F)},f=a.forwardRef(n),S=f,p=i(66712);function C(t,e){var E=t.key,m;return"value"in t&&(m=t.value),E!=null?E:m!==void 0?m:"rc-index-key-".concat(e)}function V(t){return typeof t!="undefined"&&!Number.isNaN(t)}function O(t,e){var E=t||{},m=E.label,P=E.value,N=E.options,F=E.groupLabel,z=m||(e?"children":"label");return{label:z,value:P||"value",options:N||"options",groupLabel:F||z}}function c(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=e.fieldNames,m=e.childrenAsData,P=[],N=O(E,!1),F=N.label,z=N.value,q=N.options,j=N.groupLabel;function ee(me,Be){Array.isArray(me)&&me.forEach(function($){if(Be||!(q in $)){var Me=$[z];P.push({key:C($,P.length),groupOption:Be,data:$,label:$[F],value:Me})}else{var te=$[j];te===void 0&&m&&(te=$.label),P.push({key:C($,P.length),group:!0,data:$,label:te}),ee($[q],!0)}})}return ee(t,!1),P}function o(t){var e=(0,k.Z)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,Ve.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}var u=function(e,E,m){if(!E||!E.length)return null;var P=!1,N=function z(q,j){var ee=(0,p.Z)(j),me=ee[0],Be=ee.slice(1);if(!me)return[q];var $=q.split(me);return P=P||$.length>1,$.reduce(function(Me,te){return[].concat((0,L.Z)(Me),(0,L.Z)(z(te,Be)))},[]).filter(Boolean)},F=N(e,E);return P?typeof m!="undefined"?F.slice(0,m):F:null},w=a.createContext(null),h=w;function R(t){var e=t.visible,E=t.values;if(!e)return null;var m=50;return a.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(E.slice(0,m).map(function(P){var N=P.label,F=P.value;return["number","string"].includes((0,J.Z)(N))?N:F}).join(", ")),E.length>m?", ...":null)}var _=["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","prefix","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"],K=function(e){return e==="tags"||e==="multiple"},ve=a.forwardRef(function(t,e){var E,m=t.id,P=t.prefixCls,N=t.className,F=t.showSearch,z=t.tagRender,q=t.direction,j=t.omitDomProps,ee=t.displayValues,me=t.onDisplayValuesChange,Be=t.emptyOptions,$=t.notFoundContent,Me=$===void 0?"Not Found":$,te=t.onClear,le=t.mode,$e=t.disabled,G=t.loading,ae=t.getInputElement,pe=t.getRawInputElement,tt=t.open,Ne=t.defaultOpen,Mt=t.onDropdownVisibleChange,on=t.activeValue,it=t.onActiveValueChange,Xe=t.activeDescendantId,nt=t.searchValue,It=t.autoClearSearchValue,ft=t.onSearch,He=t.onSearchSplit,Ae=t.tokenSeparators,vt=t.allowClear,Lt=t.prefix,mt=t.suffixIcon,wt=t.clearIcon,ut=t.OptionList,Je=t.animation,zt=t.transitionName,hn=t.dropdownStyle,fn=t.dropdownClassName,Rt=t.dropdownMatchSelectWidth,Cn=t.dropdownRender,$t=t.dropdownAlign,yn=t.placement,vn=t.builtinPlacements,Dt=t.getPopupContainer,De=t.showAction,x=De===void 0?[]:De,Z=t.onFocus,X=t.onBlur,U=t.onKeyUp,be=t.onKeyDown,rt=t.onMouseDown,ht=(0,he.Z)(t,_),gt=K(le),cn=(F!==void 0?F:gt)||le==="combobox",Sn=(0,k.Z)({},ht);Y.forEach(function(St){delete Sn[St]}),j==null||j.forEach(function(St){delete Sn[St]});var dn=a.useState(!1),Pn=(0,T.Z)(dn,2),Kt=Pn[0],Ln=Pn[1];a.useEffect(function(){Ln((0,W.Z)())},[]);var Fn=a.useRef(null),xn=a.useRef(null),jt=a.useRef(null),mn=a.useRef(null),kt=a.useRef(null),Zn=a.useRef(!1),Bn=A(),Hn=(0,T.Z)(Bn,3),Dn=Hn[0],Nn=Hn[1],kn=Hn[2];a.useImperativeHandle(e,function(){var St,at;return{focus:(St=mn.current)===null||St===void 0?void 0:St.focus,blur:(at=mn.current)===null||at===void 0?void 0:at.blur,scrollTo:function(Vn){var En;return(En=kt.current)===null||En===void 0?void 0:En.scrollTo(Vn)},nativeElement:Fn.current||xn.current}});var Tn=a.useMemo(function(){var St;if(le!=="combobox")return nt;var at=(St=ee[0])===null||St===void 0?void 0:St.value;return typeof at=="string"||typeof at=="number"?String(at):""},[nt,le,ee]),Xn=le==="combobox"&&typeof ae=="function"&&ae()||null,Mn=typeof pe=="function"&&pe(),rr=(0,pn.x1)(xn,Mn==null||(E=Mn.props)===null||E===void 0?void 0:E.ref),Qn=a.useState(!1),Gn=(0,T.Z)(Qn,2),ar=Gn[0],qn=Gn[1];(0,Ke.Z)(function(){qn(!0)},[]);var er=(0,Ee.Z)(!1,{defaultValue:Ne,value:tt}),In=(0,T.Z)(er,2),Kn=In[0],Jn=In[1],xt=ar?Kn:!1,jn=!Me&&Be;($e||jn&&xt&&le==="combobox")&&(xt=!1);var $n=jn?!1:xt,fe=a.useCallback(function(St){var at=St!==void 0?St:!xt;$e||(Jn(at),xt!==at&&(Mt==null||Mt(at)))},[$e,xt,Jn,Mt]),Oe=a.useMemo(function(){return(Ae||[]).some(function(St){return[`
`,`\r
`].includes(St)})},[Ae]),xe=a.useContext(h)||{},Te=xe.maxCount,yt=xe.rawValues,At=function(at,An,Vn){if(!(gt&&V(Te)&&(yt==null?void 0:yt.size)>=Te)){var En=!0,On=at;it==null||it(null);var Yn=u(at,Ae,V(Te)?Te-yt.size:void 0),Un=Vn?null:Yn;return le!=="combobox"&&Un&&(On="",He==null||He(Un),fe(!1),En=!1),ft&&Tn!==On&&ft(On,{source:An?"typing":"effect"}),En}},Wn=function(at){!at||!at.trim()||ft(at,{source:"submit"})};a.useEffect(function(){!xt&&!gt&&le!=="combobox"&&At("",!1,!1)},[xt]),a.useEffect(function(){Kn&&$e&&Jn(!1),$e&&!Zn.current&&Nn(!1)},[$e]);var Q=gn(),Ce=(0,T.Z)(Q,2),Qe=Ce[0],Wt=Ce[1],Ot=a.useRef(!1),tr=function(at){var An=Qe(),Vn=at.key,En=Vn==="Enter";if(En&&(le!=="combobox"&&at.preventDefault(),xt||fe(!0)),Wt(!!Tn),Vn==="Backspace"&&!An&&gt&&!Tn&&ee.length){for(var On=(0,L.Z)(ee),Yn=null,Un=On.length-1;Un>=0;Un-=1){var or=On[Un];if(!or.disabled){On.splice(Un,1),Yn=or;break}}Yn&&me(On,{type:"remove",values:[Yn]})}for(var sr=arguments.length,ir=new Array(sr>1?sr-1:0),cr=1;cr<sr;cr++)ir[cr-1]=arguments[cr];if(xt&&(!En||!Ot.current)){var fr;En&&(Ot.current=!0),(fr=kt.current)===null||fr===void 0||fr.onKeyDown.apply(fr,[at].concat(ir))}be==null||be.apply(void 0,[at].concat(ir))},lr=function(at){for(var An=arguments.length,Vn=new Array(An>1?An-1:0),En=1;En<An;En++)Vn[En-1]=arguments[En];if(xt){var On;(On=kt.current)===null||On===void 0||On.onKeyUp.apply(On,[at].concat(Vn))}at.key==="Enter"&&(Ot.current=!1),U==null||U.apply(void 0,[at].concat(Vn))},nr=function(at){var An=ee.filter(function(Vn){return Vn!==at});me(An,{type:"remove",values:[at]})},zn=function(){Ot.current=!1},vr=a.useRef(!1),pr=function(){Nn(!0),$e||(Z&&!vr.current&&Z.apply(void 0,arguments),x.includes("focus")&&fe(!0)),vr.current=!0},br=function(){Zn.current=!0,Nn(!1,function(){vr.current=!1,Zn.current=!1,fe(!1)}),!$e&&(Tn&&(le==="tags"?ft(Tn,{source:"submit"}):le==="multiple"&&ft("",{source:"blur"})),X&&X.apply(void 0,arguments))},ur=[];a.useEffect(function(){return function(){ur.forEach(function(St){return clearTimeout(St)}),ur.splice(0,ur.length)}},[]);var Cr=function(at){var An,Vn=at.target,En=(An=jt.current)===null||An===void 0?void 0:An.getPopupElement();if(En&&En.contains(Vn)){var On=setTimeout(function(){var sr=ur.indexOf(On);if(sr!==-1&&ur.splice(sr,1),kn(),!Kt&&!En.contains(document.activeElement)){var ir;(ir=mn.current)===null||ir===void 0||ir.focus()}});ur.push(On)}for(var Yn=arguments.length,Un=new Array(Yn>1?Yn-1:0),or=1;or<Yn;or++)Un[or-1]=arguments[or];rt==null||rt.apply(void 0,[at].concat(Un))},Er=a.useState({}),wr=(0,T.Z)(Er,2),Rr=wr[1];function xr(){Rr({})}var mr;Mn&&(mr=function(at){fe(at)}),Ut(function(){var St;return[Fn.current,(St=jt.current)===null||St===void 0?void 0:St.getPopupElement()]},$n,fe,!!Mn);var Zr=a.useMemo(function(){return(0,k.Z)((0,k.Z)({},t),{},{notFoundContent:Me,open:xt,triggerOpen:$n,id:m,showSearch:cn,multiple:gt,toggleOpen:fe})},[t,Me,$n,xt,m,cn,gt,fe]),hr=!!mt||G,gr;hr&&(gr=a.createElement(qt,{className:d()("".concat(P,"-arrow"),(0,B.Z)({},"".concat(P,"-arrow-loading"),G)),customizeIcon:mt,customizeIconProps:{loading:G,searchValue:Tn,open:xt,focused:Dn,showSearch:cn}}));var Mr=function(){var at;te==null||te(),(at=mn.current)===null||at===void 0||at.focus(),me([],{type:"clear",values:ee}),At("",!1,!1)},yr=ln(P,Mr,ee,vt,wt,$e,Tn,le),Ir=yr.allowClear,Pr=yr.clearIcon,Nr=a.createElement(ut,{ref:kt}),Dr=d()(P,N,(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(P,"-focused"),Dn),"".concat(P,"-multiple"),gt),"".concat(P,"-single"),!gt),"".concat(P,"-allow-clear"),vt),"".concat(P,"-show-arrow"),hr),"".concat(P,"-disabled"),$e),"".concat(P,"-loading"),G),"".concat(P,"-open"),xt),"".concat(P,"-customize-input"),Xn),"".concat(P,"-show-search"),cn)),Sr=a.createElement(S,{ref:jt,disabled:$e,prefixCls:P,visible:$n,popupElement:Nr,animation:Je,transitionName:zt,dropdownStyle:hn,dropdownClassName:fn,direction:q,dropdownMatchSelectWidth:Rt,dropdownRender:Cn,dropdownAlign:$t,placement:yn,builtinPlacements:vn,getPopupContainer:Dt,empty:Be,getTriggerDOMNode:function(at){return xn.current||at},onPopupVisibleChange:mr,onPopupMouseEnter:xr},Mn?a.cloneElement(Mn,{ref:rr}):a.createElement(Pt,(0,s.Z)({},t,{domRef:xn,prefixCls:P,inputElement:Xn,ref:mn,id:m,prefix:Lt,showSearch:cn,autoClearSearchValue:It,mode:le,activeDescendantId:Xe,tagRender:z,values:ee,open:xt,onToggleOpen:fe,activeValue:on,searchValue:Tn,onSearch:At,onSearchSubmit:Wn,onRemove:nr,tokenWithEnter:Oe,onInputBlur:zn}))),dr;return Mn?dr=Sr:dr=a.createElement("div",(0,s.Z)({className:Dr},Sn,{ref:Fn,onMouseDown:Cr,onKeyDown:tr,onKeyUp:lr,onFocus:pr,onBlur:br}),a.createElement(R,{visible:Dn&&!xt,values:ee}),Sr,gr,Ir&&Pr),a.createElement(Rn.Provider,{value:Zr},dr)}),ie=ve,Ie=function(){return null};Ie.isSelectOptGroup=!0;var we=Ie,H=function(){return null};H.isSelectOption=!0;var Le=H,dt=i(80547),ze=i(2738),ke=i(48911);function ct(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var de=["disabled","title","children","style","className"];function Se(t){return typeof t=="string"||typeof t=="number"}var Ue=function(e,E){var m=en(),P=m.prefixCls,N=m.id,F=m.open,z=m.multiple,q=m.mode,j=m.searchValue,ee=m.toggleOpen,me=m.notFoundContent,Be=m.onPopupScroll,$=a.useContext(h),Me=$.maxCount,te=$.flattenOptions,le=$.onActiveValue,$e=$.defaultActiveFirstOption,G=$.onSelect,ae=$.menuItemSelectedIcon,pe=$.rawValues,tt=$.fieldNames,Ne=$.virtual,Mt=$.direction,on=$.listHeight,it=$.listItemHeight,Xe=$.optionRender,nt="".concat(P,"-item"),It=(0,dt.Z)(function(){return te},[F,te],function(De,x){return x[0]&&De[1]!==x[1]}),ft=a.useRef(null),He=a.useMemo(function(){return z&&V(Me)&&(pe==null?void 0:pe.size)>=Me},[z,Me,pe==null?void 0:pe.size]),Ae=function(x){x.preventDefault()},vt=function(x){var Z;(Z=ft.current)===null||Z===void 0||Z.scrollTo(typeof x=="number"?{index:x}:x)},Lt=a.useCallback(function(De){return q==="combobox"?!1:pe.has(De)},[q,(0,L.Z)(pe).toString(),pe.size]),mt=function(x){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=It.length,U=0;U<X;U+=1){var be=(x+U*Z+X)%X,rt=It[be]||{},ht=rt.group,gt=rt.data;if(!ht&&!(gt!=null&&gt.disabled)&&(Lt(gt.value)||!He))return be}return-1},wt=a.useState(function(){return mt(0)}),ut=(0,T.Z)(wt,2),Je=ut[0],zt=ut[1],hn=function(x){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zt(x);var X={source:Z?"keyboard":"mouse"},U=It[x];if(!U){le(null,-1,X);return}le(U.value,x,X)};(0,a.useEffect)(function(){hn($e!==!1?mt(0):-1)},[It.length,j]);var fn=a.useCallback(function(De){return q==="combobox"?String(De).toLowerCase()===j.toLowerCase():pe.has(De)},[q,j,(0,L.Z)(pe).toString(),pe.size]);(0,a.useEffect)(function(){var De=setTimeout(function(){if(!z&&F&&pe.size===1){var Z=Array.from(pe)[0],X=It.findIndex(function(U){var be=U.data;return j?String(be.value).startsWith(j):be.value===Z});X!==-1&&(hn(X),vt(X))}});if(F){var x;(x=ft.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(De)}},[F,j]);var Rt=function(x){x!==void 0&&G(x,{selected:!pe.has(x)}),z||ee(!1)};if(a.useImperativeHandle(E,function(){return{onKeyDown:function(x){var Z=x.which,X=x.ctrlKey;switch(Z){case oe.Z.N:case oe.Z.P:case oe.Z.UP:case oe.Z.DOWN:{var U=0;if(Z===oe.Z.UP?U=-1:Z===oe.Z.DOWN?U=1:ct()&&X&&(Z===oe.Z.N?U=1:Z===oe.Z.P&&(U=-1)),U!==0){var be=mt(Je+U,U);vt(be),hn(be,!0)}break}case oe.Z.TAB:case oe.Z.ENTER:{var rt,ht=It[Je];ht&&!(ht!=null&&(rt=ht.data)!==null&&rt!==void 0&&rt.disabled)&&!He?Rt(ht.value):Rt(void 0),F&&x.preventDefault();break}case oe.Z.ESC:ee(!1),F&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){vt(x)}}}),It.length===0)return a.createElement("div",{role:"listbox",id:"".concat(N,"_list"),className:"".concat(nt,"-empty"),onMouseDown:Ae},me);var Cn=Object.keys(tt).map(function(De){return tt[De]}),$t=function(x){return x.label};function yn(De,x){var Z=De.group;return{role:Z?"presentation":"option",id:"".concat(N,"_list_").concat(x)}}var vn=function(x){var Z=It[x];if(!Z)return null;var X=Z.data||{},U=X.value,be=Z.group,rt=(0,Ft.Z)(X,!0),ht=$t(Z);return Z?a.createElement("div",(0,s.Z)({"aria-label":typeof ht=="string"&&!be?ht:null},rt,{key:x},yn(Z,x),{"aria-selected":fn(U)}),U):null},Dt={role:"listbox",id:"".concat(N,"_list")};return a.createElement(a.Fragment,null,Ne&&a.createElement("div",(0,s.Z)({},Dt,{style:{height:0,width:0,overflow:"hidden"}}),vn(Je-1),vn(Je),vn(Je+1)),a.createElement(ke.Z,{itemKey:"key",ref:ft,data:It,height:on,itemHeight:it,fullHeight:!1,onMouseDown:Ae,onScroll:Be,virtual:Ne,direction:Mt,innerProps:Ne?null:Dt},function(De,x){var Z=De.group,X=De.groupOption,U=De.data,be=De.label,rt=De.value,ht=U.key;if(Z){var gt,cn=(gt=U.title)!==null&&gt!==void 0?gt:Se(be)?be.toString():void 0;return a.createElement("div",{className:d()(nt,"".concat(nt,"-group"),U.className),title:cn},be!==void 0?be:ht)}var Sn=U.disabled,dn=U.title,Pn=U.children,Kt=U.style,Ln=U.className,Fn=(0,he.Z)(U,de),xn=(0,ze.Z)(Fn,Cn),jt=Lt(rt),mn=Sn||!jt&&He,kt="".concat(nt,"-option"),Zn=d()(nt,kt,Ln,(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(kt,"-grouped"),X),"".concat(kt,"-active"),Je===x&&!mn),"".concat(kt,"-disabled"),mn),"".concat(kt,"-selected"),jt)),Bn=$t(De),Hn=!ae||typeof ae=="function"||jt,Dn=typeof Bn=="number"?Bn:Bn||rt,Nn=Se(Dn)?Dn.toString():void 0;return dn!==void 0&&(Nn=dn),a.createElement("div",(0,s.Z)({},(0,Ft.Z)(xn),Ne?{}:yn(De,x),{"aria-selected":fn(rt),className:Zn,title:Nn,onMouseMove:function(){Je===x||mn||hn(x)},onClick:function(){mn||Rt(rt)},style:Kt}),a.createElement("div",{className:"".concat(kt,"-content")},typeof Xe=="function"?Xe(De,{index:x}):Dn),a.isValidElement(ae)||jt,Hn&&a.createElement(qt,{className:"".concat(nt,"-option-state"),customizeIcon:ae,customizeIconProps:{value:rt,disabled:mn,isSelected:jt}},jt?"\u2713":null))}))},et=a.forwardRef(Ue),Ge=et,We=function(t,e){var E=a.useRef({values:new Map,options:new Map}),m=a.useMemo(function(){var N=E.current,F=N.values,z=N.options,q=t.map(function(me){if(me.label===void 0){var Be;return(0,k.Z)((0,k.Z)({},me),{},{label:(Be=F.get(me.value))===null||Be===void 0?void 0:Be.label})}return me}),j=new Map,ee=new Map;return q.forEach(function(me){j.set(me.value,me),ee.set(me.value,e.get(me.value)||z.get(me.value))}),E.current.values=j,E.current.options=ee,q},[t,e]),P=a.useCallback(function(N){return e.get(N)||E.current.options.get(N)},[e]);return[m,P]};function ce(t,e){return M(t).join("").toUpperCase().includes(e)}var bt=function(t,e,E,m,P){return a.useMemo(function(){if(!E||m===!1)return t;var N=e.options,F=e.label,z=e.value,q=[],j=typeof m=="function",ee=E.toUpperCase(),me=j?m:function($,Me){return P?ce(Me[P],ee):Me[N]?ce(Me[F!=="children"?F:"label"],ee):ce(Me[z],ee)},Be=j?function($){return o($)}:function($){return $};return t.forEach(function($){if($[N]){var Me=me(E,Be($));if(Me)q.push($);else{var te=$[N].filter(function(le){return me(E,Be(le))});te.length&&q.push((0,k.Z)((0,k.Z)({},$),{},(0,B.Z)({},N,te)))}return}me(E,Be($))&&q.push($)}),q},[t,m,P,E,e])},Ct=i(6551),Zt=i(11592),Re=["children","value"],Jt=["children"];function bn(t){var e=t,E=e.key,m=e.props,P=m.children,N=m.value,F=(0,he.Z)(m,Re);return(0,k.Z)({key:E,value:N!==void 0?N:E,children:P},F)}function un(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Zt.Z)(t).map(function(E,m){if(!a.isValidElement(E)||!E.type)return null;var P=E,N=P.type.isSelectOptGroup,F=P.key,z=P.props,q=z.children,j=(0,he.Z)(z,Jt);return e||!N?bn(E):(0,k.Z)((0,k.Z)({key:"__RC_SELECT_GRP__".concat(F===null?m:F,"__"),label:F},j),{},{options:un(q)})}).filter(function(E){return E})}var sn=function(e,E,m,P,N){return a.useMemo(function(){var F=e,z=!e;z&&(F=un(E));var q=new Map,j=new Map,ee=function($,Me,te){te&&typeof te=="string"&&$.set(Me[te],Me)},me=function Be($){for(var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=0;te<$.length;te+=1){var le=$[te];!le[m.options]||Me?(q.set(le[m.value],le),ee(j,le,m.label),ee(j,le,P),ee(j,le,N)):Be(le[m.options],!0)}};return me(F),{options:F,valueOptions:q,labelOptions:j}},[e,E,m,P,N])},Yt=sn;function Nt(t){var e=a.useRef();e.current=t;var E=a.useCallback(function(){return e.current.apply(e,arguments)},[]);return E}function rn(t){var e=t.mode,E=t.options,m=t.children,P=t.backfill,N=t.allowClear,F=t.placeholder,z=t.getInputElement,q=t.showSearch,j=t.onSearch,ee=t.defaultOpen,me=t.autoFocus,Be=t.labelInValue,$=t.value,Me=t.inputValue,te=t.optionLabelProp,le=isMultiple(e),$e=q!==void 0?q:le||e==="combobox",G=E||convertChildrenToData(m);if(warning(e!=="tags"||G.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var ae=G.some(function(Ne){return Ne.options?Ne.options.some(function(Mt){return typeof("value"in Mt?Mt.value:Mt.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});warning(!ae,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!P,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!z||!N||!F,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),j&&!$e&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ee||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$!=null){var pe=toArray($);warning(!Be||pe.every(function(Ne){return _typeof(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!le||Array.isArray($),"`value` should be array when `mode` is `multiple` or `tags`")}if(m){var tt=null;toNodeArray(m).some(function(Ne){if(!React.isValidElement(Ne)||!Ne.type)return!1;var Mt=Ne,on=Mt.type;if(on.isSelectOption)return!1;if(on.isSelectOptGroup){var it=toNodeArray(Ne.props.children).every(function(Xe){return!React.isValidElement(Xe)||!Ne.type||Xe.type.isSelectOption?!0:(tt=Xe.type,!1)});return!it}return tt=on,!0}),tt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(tt.displayName||tt.name||tt,"`.")),warning(Me===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Xt(t,e){if(t){var E=function m(P){for(var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F=0;F<P.length;F++){var z=P[F];if(z[e==null?void 0:e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!N&&Array.isArray(z[e==null?void 0:e.options])&&m(z[e==null?void 0:e.options],!0))break}};E(t)}}var Et=null,lt=["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"],an=["inputValue"];function Ht(t){return!t||(0,J.Z)(t)!=="object"}var Pe=a.forwardRef(function(t,e){var E=t.id,m=t.mode,P=t.prefixCls,N=P===void 0?"rc-select":P,F=t.backfill,z=t.fieldNames,q=t.inputValue,j=t.searchValue,ee=t.onSearch,me=t.autoClearSearchValue,Be=me===void 0?!0:me,$=t.onSelect,Me=t.onDeselect,te=t.dropdownMatchSelectWidth,le=te===void 0?!0:te,$e=t.filterOption,G=t.filterSort,ae=t.optionFilterProp,pe=t.optionLabelProp,tt=t.options,Ne=t.optionRender,Mt=t.children,on=t.defaultActiveFirstOption,it=t.menuItemSelectedIcon,Xe=t.virtual,nt=t.direction,It=t.listHeight,ft=It===void 0?200:It,He=t.listItemHeight,Ae=He===void 0?20:He,vt=t.labelRender,Lt=t.value,mt=t.defaultValue,wt=t.labelInValue,ut=t.onChange,Je=t.maxCount,zt=(0,he.Z)(t,lt),hn=(0,Ct.ZP)(E),fn=K(m),Rt=!!(!tt&&Mt),Cn=a.useMemo(function(){return $e===void 0&&m==="combobox"?!1:$e},[$e,m]),$t=a.useMemo(function(){return O(z,Rt)},[JSON.stringify(z),Rt]),yn=(0,Ee.Z)("",{value:j!==void 0?j:q,postState:function(Oe){return Oe||""}}),vn=(0,T.Z)(yn,2),Dt=vn[0],De=vn[1],x=Yt(tt,Mt,$t,ae,pe),Z=x.valueOptions,X=x.labelOptions,U=x.options,be=a.useCallback(function(fe){var Oe=M(fe);return Oe.map(function(xe){var Te,yt,At,Wn,Q;if(Ht(xe))Te=xe;else{var Ce;At=xe.key,yt=xe.label,Te=(Ce=xe.value)!==null&&Ce!==void 0?Ce:At}var Qe=Z.get(Te);if(Qe){var Wt;if(yt===void 0&&(yt=Qe==null?void 0:Qe[pe||$t.label]),At===void 0&&(At=(Wt=Qe==null?void 0:Qe.key)!==null&&Wt!==void 0?Wt:Te),Wn=Qe==null?void 0:Qe.disabled,Q=Qe==null?void 0:Qe.title,0)var Ot}return{label:yt,value:Te,key:At,disabled:Wn,title:Q}})},[$t,pe,Z]),rt=(0,Ee.Z)(mt,{value:Lt}),ht=(0,T.Z)(rt,2),gt=ht[0],cn=ht[1],Sn=a.useMemo(function(){var fe,Oe=fn&&gt===null?[]:gt,xe=be(Oe);return m==="combobox"&&Fe((fe=xe[0])===null||fe===void 0?void 0:fe.value)?[]:xe},[gt,be,m,fn]),dn=We(Sn,Z),Pn=(0,T.Z)(dn,2),Kt=Pn[0],Ln=Pn[1],Fn=a.useMemo(function(){if(!m&&Kt.length===1){var fe=Kt[0];if(fe.value===null&&(fe.label===null||fe.label===void 0))return[]}return Kt.map(function(Oe){var xe;return(0,k.Z)((0,k.Z)({},Oe),{},{label:(xe=typeof vt=="function"?vt(Oe):Oe.label)!==null&&xe!==void 0?xe:Oe.value})})},[m,Kt,vt]),xn=a.useMemo(function(){return new Set(Kt.map(function(fe){return fe.value}))},[Kt]);a.useEffect(function(){if(m==="combobox"){var fe,Oe=(fe=Kt[0])===null||fe===void 0?void 0:fe.value;De(re(Oe)?String(Oe):"")}},[Kt]);var jt=Nt(function(fe,Oe){var xe=Oe!=null?Oe:fe;return(0,B.Z)((0,B.Z)({},$t.value,fe),$t.label,xe)}),mn=a.useMemo(function(){if(m!=="tags")return U;var fe=(0,L.Z)(U),Oe=function(Te){return Z.has(Te)};return(0,L.Z)(Kt).sort(function(xe,Te){return xe.value<Te.value?-1:1}).forEach(function(xe){var Te=xe.value;Oe(Te)||fe.push(jt(Te,xe.label))}),fe},[jt,U,Z,Kt,m]),kt=bt(mn,$t,Dt,Cn,ae),Zn=a.useMemo(function(){return m!=="tags"||!Dt||kt.some(function(fe){return fe[ae||"value"]===Dt})||kt.some(function(fe){return fe[$t.value]===Dt})?kt:[jt(Dt)].concat((0,L.Z)(kt))},[jt,ae,m,kt,Dt,$t]),Bn=function fe(Oe){var xe=(0,L.Z)(Oe).sort(function(Te,yt){return G(Te,yt,{searchValue:Dt})});return xe.map(function(Te){return Array.isArray(Te.options)?(0,k.Z)((0,k.Z)({},Te),{},{options:Te.options.length>0?fe(Te.options):Te.options}):Te})},Hn=a.useMemo(function(){return G?Bn(Zn):Zn},[Zn,G,Dt]),Dn=a.useMemo(function(){return c(Hn,{fieldNames:$t,childrenAsData:Rt})},[Hn,$t,Rt]),Nn=function(Oe){var xe=be(Oe);if(cn(xe),ut&&(xe.length!==Kt.length||xe.some(function(At,Wn){var Q;return((Q=Kt[Wn])===null||Q===void 0?void 0:Q.value)!==(At==null?void 0:At.value)}))){var Te=wt?xe:xe.map(function(At){return At.value}),yt=xe.map(function(At){return o(Ln(At.value))});ut(fn?Te:Te[0],fn?yt:yt[0])}},kn=a.useState(null),Tn=(0,T.Z)(kn,2),Xn=Tn[0],Mn=Tn[1],rr=a.useState(0),Qn=(0,T.Z)(rr,2),Gn=Qn[0],ar=Qn[1],qn=on!==void 0?on:m!=="combobox",er=a.useCallback(function(fe,Oe){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Te=xe.source,yt=Te===void 0?"keyboard":Te;ar(Oe),F&&m==="combobox"&&fe!==null&&yt==="keyboard"&&Mn(String(fe))},[F,m]),In=function(Oe,xe,Te){var yt=function(){var nr,zn=Ln(Oe);return[wt?{label:zn==null?void 0:zn[$t.label],value:Oe,key:(nr=zn==null?void 0:zn.key)!==null&&nr!==void 0?nr:Oe}:Oe,o(zn)]};if(xe&&$){var At=yt(),Wn=(0,T.Z)(At,2),Q=Wn[0],Ce=Wn[1];$(Q,Ce)}else if(!xe&&Me&&Te!=="clear"){var Qe=yt(),Wt=(0,T.Z)(Qe,2),Ot=Wt[0],tr=Wt[1];Me(Ot,tr)}},Kn=Nt(function(fe,Oe){var xe,Te=fn?Oe.selected:!0;Te?xe=fn?[].concat((0,L.Z)(Kt),[fe]):[fe]:xe=Kt.filter(function(yt){return yt.value!==fe}),Nn(xe),In(fe,Te),m==="combobox"?Mn(""):(!K||Be)&&(De(""),Mn(""))}),Jn=function(Oe,xe){Nn(Oe);var Te=xe.type,yt=xe.values;(Te==="remove"||Te==="clear")&&yt.forEach(function(At){In(At.value,!1,Te)})},xt=function(Oe,xe){if(De(Oe),Mn(null),xe.source==="submit"){var Te=(Oe||"").trim();if(Te){var yt=Array.from(new Set([].concat((0,L.Z)(xn),[Te])));Nn(yt),In(Te,!0),De("")}return}xe.source!=="blur"&&(m==="combobox"&&Nn(Oe),ee==null||ee(Oe))},jn=function(Oe){var xe=Oe;m!=="tags"&&(xe=Oe.map(function(yt){var At=X.get(yt);return At==null?void 0:At.value}).filter(function(yt){return yt!==void 0}));var Te=Array.from(new Set([].concat((0,L.Z)(xn),(0,L.Z)(xe))));Nn(Te),Te.forEach(function(yt){In(yt,!0)})},$n=a.useMemo(function(){var fe=Xe!==!1&&le!==!1;return(0,k.Z)((0,k.Z)({},x),{},{flattenOptions:Dn,onActiveValue:er,defaultActiveFirstOption:qn,onSelect:Kn,menuItemSelectedIcon:it,rawValues:xn,fieldNames:$t,virtual:fe,direction:nt,listHeight:ft,listItemHeight:Ae,childrenAsData:Rt,maxCount:Je,optionRender:Ne})},[Je,x,Dn,er,qn,Kn,it,xn,$t,Xe,le,nt,ft,Ae,Rt,Ne]);return a.createElement(h.Provider,{value:$n},a.createElement(ie,(0,s.Z)({},zt,{id:hn,prefixCls:N,ref:e,omitDomProps:an,mode:m,displayValues:Fn,onDisplayValuesChange:Jn,direction:nt,searchValue:Dt,onSearch:xt,autoClearSearchValue:Be,onSearchSplit:jn,dropdownMatchSelectWidth:le,OptionList:Ge,emptyOptions:!Dn.length,activeValue:Xn,activeDescendantId:"".concat(hn,"_list_").concat(Gn)})))}),_e=Pe;_e.Option=Le,_e.OptGroup=we;var Qt=_e,Bt=Qt},22711:function(_n,Vt,i){i.r(Vt),i.d(Vt,{ResizableTextArea:function(){return nn},default:function(){return b}});var s=i(54476),L=i(20068),B=i(33885),k=i(94480),T=i(42978),he=i(75931),J=i(92310),Ee=i.n(J),Ve=i(36901),a=i(66003),pt=i(30292),d=i(18929),Ke=i(59301),W=i(76190),pn=i(29301),wn=i(34280),qt=i(16089),ln=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Rn=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],en={},A;function gn(M){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=M.getAttribute("id")||M.getAttribute("data-reactid")||M.getAttribute("name");if(ne&&en[y])return en[y];var re=window.getComputedStyle(M),Fe=re.getPropertyValue("box-sizing")||re.getPropertyValue("-moz-box-sizing")||re.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(re.getPropertyValue("padding-bottom"))+parseFloat(re.getPropertyValue("padding-top")),ye=parseFloat(re.getPropertyValue("border-bottom-width"))+parseFloat(re.getPropertyValue("border-top-width")),Ze=Rn.map(function(se){return"".concat(se,":").concat(re.getPropertyValue(se))}).join(";"),je={sizingStyle:Ze,paddingSize:ue,borderSize:ye,boxSizing:Fe};return ne&&y&&(en[y]=je),je}function Ut(M){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;A||(A=document.createElement("textarea"),A.setAttribute("tab-index","-1"),A.setAttribute("aria-hidden","true"),A.setAttribute("name","hiddenTextarea"),document.body.appendChild(A)),M.getAttribute("wrap")?A.setAttribute("wrap",M.getAttribute("wrap")):A.removeAttribute("wrap");var Fe=gn(M,ne),ue=Fe.paddingSize,ye=Fe.borderSize,Ze=Fe.boxSizing,je=Fe.sizingStyle;A.setAttribute("style","".concat(je,";").concat(ln)),A.value=M.value||M.placeholder||"";var se=void 0,ge=void 0,st,qe=A.scrollHeight;if(Ze==="border-box"?qe+=ye:Ze==="content-box"&&(qe-=ue),y!==null||re!==null){A.value=" ";var Ye=A.scrollHeight-ue;y!==null&&(se=Ye*y,Ze==="border-box"&&(se=se+ue+ye),qe=Math.max(se,qe)),re!==null&&(ge=Ye*re,Ze==="border-box"&&(ge=ge+ue+ye),st=qe>ge?"":"hidden",qe=Math.min(ge,qe))}var ot={height:qe,overflowY:st,resize:"none"};return se&&(ot.minHeight=se),ge&&(ot.maxHeight=ge),ot}var oe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],tn=0,Ft=1,_t=2,Tt=Ke.forwardRef(function(M,ne){var y=M,re=y.prefixCls,Fe=y.defaultValue,ue=y.value,ye=y.autoSize,Ze=y.onResize,je=y.className,se=y.style,ge=y.disabled,st=y.onChange,qe=y.onInternalAutoSize,Ye=(0,he.Z)(y,oe),ot=(0,d.Z)(Fe,{value:ue,postState:function(Le){return Le!=null?Le:""}}),Gt=(0,T.Z)(ot,2),Pt=Gt[0],g=Gt[1],r=function(Le){g(Le.target.value),st==null||st(Le)},l=Ke.useRef();Ke.useImperativeHandle(ne,function(){return{textArea:l.current}});var n=Ke.useMemo(function(){return ye&&(0,W.Z)(ye)==="object"?[ye.minRows,ye.maxRows]:[]},[ye]),f=(0,T.Z)(n,2),S=f[0],p=f[1],C=!!ye,V=function(){try{if(document.activeElement===l.current){var Le=l.current,dt=Le.selectionStart,ze=Le.selectionEnd,ke=Le.scrollTop;l.current.setSelectionRange(dt,ze),l.current.scrollTop=ke}}catch(ct){}},O=Ke.useState(_t),c=(0,T.Z)(O,2),o=c[0],u=c[1],w=Ke.useState(),h=(0,T.Z)(w,2),R=h[0],_=h[1],Y=function(){u(tn)};(0,wn.Z)(function(){C&&Y()},[ue,S,p,C]),(0,wn.Z)(function(){if(o===tn)u(Ft);else if(o===Ft){var H=Ut(l.current,!1,S,p);u(_t),_(H)}else V()},[o]);var K=Ke.useRef(),ve=function(){qt.Z.cancel(K.current)},ie=function(Le){o===_t&&(Ze==null||Ze(Le),ye&&(ve(),K.current=(0,qt.Z)(function(){Y()})))};Ke.useEffect(function(){return ve},[]);var Ie=C?R:null,we=(0,B.Z)((0,B.Z)({},se),Ie);return(o===tn||o===Ft)&&(we.overflowY="hidden",we.overflowX="hidden"),Ke.createElement(pn.Z,{onResize:ie,disabled:!(ye||Ze)},Ke.createElement("textarea",(0,s.Z)({},Ye,{ref:l,style:we,className:Ee()(re,je,(0,L.Z)({},"".concat(re,"-disabled"),ge)),disabled:ge,value:Pt,onChange:r})))}),nn=Tt,I=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],v=Ke.forwardRef(function(M,ne){var y,re=M.defaultValue,Fe=M.value,ue=M.onFocus,ye=M.onBlur,Ze=M.onChange,je=M.allowClear,se=M.maxLength,ge=M.onCompositionStart,st=M.onCompositionEnd,qe=M.suffix,Ye=M.prefixCls,ot=Ye===void 0?"rc-textarea":Ye,Gt=M.showCount,Pt=M.count,g=M.className,r=M.style,l=M.disabled,n=M.hidden,f=M.classNames,S=M.styles,p=M.onResize,C=M.onClear,V=M.onPressEnter,O=M.readOnly,c=M.autoSize,o=M.onKeyDown,u=(0,he.Z)(M,I),w=(0,d.Z)(re,{value:Fe,defaultValue:re}),h=(0,T.Z)(w,2),R=h[0],_=h[1],Y=R==null?"":String(R),K=Ke.useState(!1),ve=(0,T.Z)(K,2),ie=ve[0],Ie=ve[1],we=Ke.useRef(!1),H=Ke.useState(null),Le=(0,T.Z)(H,2),dt=Le[0],ze=Le[1],ke=(0,Ke.useRef)(null),ct=(0,Ke.useRef)(null),de=function(){var _e;return(_e=ct.current)===null||_e===void 0?void 0:_e.textArea},Se=function(){de().focus()};(0,Ke.useImperativeHandle)(ne,function(){var Pe;return{resizableTextArea:ct.current,focus:Se,blur:function(){de().blur()},nativeElement:((Pe=ke.current)===null||Pe===void 0?void 0:Pe.nativeElement)||de()}}),(0,Ke.useEffect)(function(){Ie(function(Pe){return!l&&Pe})},[l]);var Ue=Ke.useState(null),et=(0,T.Z)(Ue,2),Ge=et[0],We=et[1];Ke.useEffect(function(){if(Ge){var Pe;(Pe=de()).setSelectionRange.apply(Pe,(0,k.Z)(Ge))}},[Ge]);var ce=(0,a.Z)(Pt,Gt),bt=(y=ce.max)!==null&&y!==void 0?y:se,Ct=Number(bt)>0,Zt=ce.strategy(Y),Re=!!bt&&Zt>bt,Jt=function(_e,Qt){var Bt=Qt;!we.current&&ce.exceedFormatter&&ce.max&&ce.strategy(Qt)>ce.max&&(Bt=ce.exceedFormatter(Qt,{max:ce.max}),Qt!==Bt&&We([de().selectionStart||0,de().selectionEnd||0])),_(Bt),(0,pt.rJ)(_e.currentTarget,_e,Ze,Bt)},bn=function(_e){we.current=!0,ge==null||ge(_e)},un=function(_e){we.current=!1,Jt(_e,_e.currentTarget.value),st==null||st(_e)},sn=function(_e){Jt(_e,_e.target.value)},Yt=function(_e){_e.key==="Enter"&&V&&V(_e),o==null||o(_e)},Nt=function(_e){Ie(!0),ue==null||ue(_e)},rn=function(_e){Ie(!1),ye==null||ye(_e)},Xt=function(_e){_(""),Se(),(0,pt.rJ)(de(),_e,Ze)},Et=qe,lt;ce.show&&(ce.showFormatter?lt=ce.showFormatter({value:Y,count:Zt,maxLength:bt}):lt="".concat(Zt).concat(Ct?" / ".concat(bt):""),Et=Ke.createElement(Ke.Fragment,null,Et,Ke.createElement("span",{className:Ee()("".concat(ot,"-data-count"),f==null?void 0:f.count),style:S==null?void 0:S.count},lt)));var an=function(_e){var Qt;p==null||p(_e),(Qt=de())!==null&&Qt!==void 0&&Qt.style.height&&ze(!0)},Ht=!c&&!Gt&&!je;return Ke.createElement(Ve.BaseInput,{ref:ke,value:Y,allowClear:je,handleReset:Xt,suffix:Et,prefixCls:ot,classNames:(0,B.Z)((0,B.Z)({},f),{},{affixWrapper:Ee()(f==null?void 0:f.affixWrapper,(0,L.Z)((0,L.Z)({},"".concat(ot,"-show-count"),Gt),"".concat(ot,"-textarea-allow-clear"),je))}),disabled:l,focused:ie,className:Ee()(g,Re&&"".concat(ot,"-out-of-range")),style:(0,B.Z)((0,B.Z)({},r),dt&&!Ht?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof lt=="string"?lt:void 0}},hidden:n,readOnly:O,onClear:C},Ke.createElement(nn,(0,s.Z)({},u,{autoSize:c,maxLength:se,onKeyDown:Yt,onChange:sn,onFocus:Nt,onBlur:rn,onCompositionStart:bn,onCompositionEnd:un,className:Ee()(f==null?void 0:f.textarea),style:(0,B.Z)((0,B.Z)({},S==null?void 0:S.textarea),{},{resize:r==null?void 0:r.resize}),disabled:l,prefixCls:ot,onResize:an,ref:ct,readOnly:O})))}),D=v,b=D},49658:function(_n,Vt){Vt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var i=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(i==null?void 0:i.substr(0,4))}},48911:function(_n,Vt,i){i.d(Vt,{Z:function(){return Pt}});var s=i(54476),L=i(76190),B=i(33885),k=i(20068),T=i(42978),he=i(75931),J=i(92310),Ee=i.n(J),Ve=i(29301),a=i(70425),pt=i(34280),d=i(59301),Ke=i(4676),W=d.forwardRef(function(g,r){var l=g.height,n=g.offsetY,f=g.offsetX,S=g.children,p=g.prefixCls,C=g.onInnerResize,V=g.innerProps,O=g.rtl,c=g.extra,o={},u={display:"flex",flexDirection:"column"};return n!==void 0&&(o={height:l,position:"relative",overflow:"hidden"},u=(0,B.Z)((0,B.Z)({},u),{},(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({transform:"translateY(".concat(n,"px)")},O?"marginRight":"marginLeft",-f),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:o},d.createElement(Ve.Z,{onResize:function(h){var R=h.offsetHeight;R&&C&&C()}},d.createElement("div",(0,s.Z)({style:u,className:Ee()((0,k.Z)({},"".concat(p,"-holder-inner"),p)),ref:r},V),S,c)))});W.displayName="Filler";var pn=W;function wn(g){var r=g.children,l=g.setRef,n=d.useCallback(function(f){l(f)},[]);return d.cloneElement(r,{ref:n})}function qt(g,r,l,n,f,S,p,C){var V=C.getKey;return g.slice(r,l+1).map(function(O,c){var o=r+c,u=p(O,o,{style:{width:n},offsetX:f}),w=V(O);return d.createElement(wn,{key:w,setRef:function(R){return S(O,R)}},u)})}function ln(g,r,l,n){var f=l-g,S=r-l,p=Math.min(f,S)*2;if(n<=p){var C=Math.floor(n/2);return n%2?l+C+1:l-C}return f>S?l-(n-S):l+(n-f)}function Rn(g,r,l){var n=g.length,f=r.length,S,p;if(n===0&&f===0)return null;n<f?(S=g,p=r):(S=r,p=g);var C={__EMPTY_ITEM__:!0};function V(h){return h!==void 0?l(h):C}for(var O=null,c=Math.abs(n-f)!==1,o=0;o<p.length;o+=1){var u=V(S[o]),w=V(p[o]);if(u!==w){O=o,c=c||u!==V(p[o+1]);break}}return O===null?null:{index:O,multiple:c}}function en(g,r,l){var n=d.useState(g),f=(0,T.Z)(n,2),S=f[0],p=f[1],C=d.useState(null),V=(0,T.Z)(C,2),O=V[0],c=V[1];return d.useEffect(function(){var o=Rn(S||[],g||[],r);(o==null?void 0:o.index)!==void 0&&(l==null||l(o.index),c(g[o.index])),p(g)},[g]),[O]}var A=i(16089),gn=(typeof navigator=="undefined"?"undefined":(0,L.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ut=gn,oe=function(g,r,l,n){var f=(0,d.useRef)(!1),S=(0,d.useRef)(null);function p(){clearTimeout(S.current),f.current=!0,S.current=setTimeout(function(){f.current=!1},50)}var C=(0,d.useRef)({top:g,bottom:r,left:l,right:n});return C.current.top=g,C.current.bottom=r,C.current.left=l,C.current.right=n,function(V,O){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=V?O<0&&C.current.left||O>0&&C.current.right:O<0&&C.current.top||O>0&&C.current.bottom;return c&&o?(clearTimeout(S.current),f.current=!1):(!o||f.current)&&p(),!f.current&&o}};function tn(g,r,l,n,f,S,p){var C=(0,d.useRef)(0),V=(0,d.useRef)(null),O=(0,d.useRef)(null),c=(0,d.useRef)(!1),o=oe(r,l,n,f);function u(K,ve){if(A.Z.cancel(V.current),!o(!1,ve)){var ie=K;if(!ie._virtualHandled)ie._virtualHandled=!0;else return;C.current+=ve,O.current=ve,Ut||ie.preventDefault(),V.current=(0,A.Z)(function(){var Ie=c.current?10:1;p(C.current*Ie,!1),C.current=0})}}function w(K,ve){p(ve,!0),Ut||K.preventDefault()}var h=(0,d.useRef)(null),R=(0,d.useRef)(null);function _(K){if(g){A.Z.cancel(R.current),R.current=(0,A.Z)(function(){h.current=null},2);var ve=K.deltaX,ie=K.deltaY,Ie=K.shiftKey,we=ve,H=ie;(h.current==="sx"||!h.current&&Ie&&ie&&!ve)&&(we=ie,H=0,h.current="sx");var Le=Math.abs(we),dt=Math.abs(H);h.current===null&&(h.current=S&&Le>dt?"x":"y"),h.current==="y"?u(K,H):w(K,we)}}function Y(K){g&&(c.current=K.detail===O.current)}return[_,Y]}function Ft(g,r,l,n){var f=d.useMemo(function(){return[new Map,[]]},[g,l.id,n]),S=(0,T.Z)(f,2),p=S[0],C=S[1],V=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,u=p.get(c),w=p.get(o);if(u===void 0||w===void 0)for(var h=g.length,R=C.length;R<h;R+=1){var _,Y=g[R],K=r(Y);p.set(K,R);var ve=(_=l.get(K))!==null&&_!==void 0?_:n;if(C[R]=(C[R-1]||0)+ve,K===c&&(u=R),K===o&&(w=R),u!==void 0&&w!==void 0)break}return{top:C[u-1]||0,bottom:C[w]}};return V}var _t=i(67732),Tt=i(83652),nn=function(){function g(){(0,_t.Z)(this,g),(0,k.Z)(this,"maps",void 0),(0,k.Z)(this,"id",0),(0,k.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Tt.Z)(g,[{key:"set",value:function(l,n){this.diffRecords.set(l,this.maps[l]),this.maps[l]=n,this.id+=1}},{key:"get",value:function(l){return this.maps[l]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),g}(),I=nn;function v(g){var r=parseFloat(g);return isNaN(r)?0:r}function D(g,r,l){var n=d.useState(0),f=(0,T.Z)(n,2),S=f[0],p=f[1],C=(0,d.useRef)(new Map),V=(0,d.useRef)(new I),O=(0,d.useRef)(0);function c(){O.current+=1}function o(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;c();var h=function(){var Y=!1;C.current.forEach(function(K,ve){if(K&&K.offsetParent){var ie=K.offsetHeight,Ie=getComputedStyle(K),we=Ie.marginTop,H=Ie.marginBottom,Le=v(we),dt=v(H),ze=ie+Le+dt;V.current.get(ve)!==ze&&(V.current.set(ve,ze),Y=!0)}}),Y&&p(function(K){return K+1})};if(w)h();else{O.current+=1;var R=O.current;Promise.resolve().then(function(){R===O.current&&h()})}}function u(w,h){var R=g(w),_=C.current.get(R);h?(C.current.set(R,h),o()):C.current.delete(R),!_!=!h&&(h?r==null||r(w):l==null||l(w))}return(0,d.useEffect)(function(){return c},[]),[u,o,V.current,S]}var b=14/15;function M(g,r,l){var n=(0,d.useRef)(!1),f=(0,d.useRef)(0),S=(0,d.useRef)(0),p=(0,d.useRef)(null),C=(0,d.useRef)(null),V,O=function(w){if(n.current){var h=Math.ceil(w.touches[0].pageX),R=Math.ceil(w.touches[0].pageY),_=f.current-h,Y=S.current-R,K=Math.abs(_)>Math.abs(Y);K?f.current=h:S.current=R;var ve=l(K,K?_:Y,!1,w);ve&&w.preventDefault(),clearInterval(C.current),ve&&(C.current=setInterval(function(){K?_*=b:Y*=b;var ie=Math.floor(K?_:Y);(!l(K,ie,!0)||Math.abs(ie)<=.1)&&clearInterval(C.current)},16))}},c=function(){n.current=!1,V()},o=function(w){V(),w.touches.length===1&&!n.current&&(n.current=!0,f.current=Math.ceil(w.touches[0].pageX),S.current=Math.ceil(w.touches[0].pageY),p.current=w.target,p.current.addEventListener("touchmove",O,{passive:!1}),p.current.addEventListener("touchend",c,{passive:!0}))};V=function(){p.current&&(p.current.removeEventListener("touchmove",O),p.current.removeEventListener("touchend",c))},(0,pt.Z)(function(){return g&&r.current.addEventListener("touchstart",o,{passive:!0}),function(){var u;(u=r.current)===null||u===void 0||u.removeEventListener("touchstart",o),V(),clearInterval(C.current)}},[g])}function ne(g){return Math.floor(Math.pow(g,.5))}function y(g,r){var l="touches"in g?g.touches[0]:g;return l[r?"pageX":"pageY"]-window[r?"scrollX":"scrollY"]}function re(g,r,l){d.useEffect(function(){var n=r.current;if(g&&n){var f=!1,S,p,C=function(){A.Z.cancel(S)},V=function u(){C(),S=(0,A.Z)(function(){l(p),u()})},O=function(){f=!1,C()},c=function(w){if(!(w.target.draggable||w.button!==0)){var h=w;h._virtualHandled||(h._virtualHandled=!0,f=!0)}},o=function(w){if(f){var h=y(w,!1),R=n.getBoundingClientRect(),_=R.top,Y=R.bottom;if(h<=_){var K=_-h;p=-ne(K),V()}else if(h>=Y){var ve=h-Y;p=ne(ve),V()}else C()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",O),n.ownerDocument.addEventListener("mousemove",o),n.ownerDocument.addEventListener("dragend",O),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",O),n.ownerDocument.removeEventListener("mousemove",o),n.ownerDocument.removeEventListener("dragend",O),C()}}},[g])}var Fe=10;function ue(g,r,l,n,f,S,p,C){var V=d.useRef(),O=d.useState(null),c=(0,T.Z)(O,2),o=c[0],u=c[1];return(0,pt.Z)(function(){if(o&&o.times<Fe){if(!g.current){u(function(ce){return(0,B.Z)({},ce)});return}S();var w=o.targetAlign,h=o.originAlign,R=o.index,_=o.offset,Y=g.current.clientHeight,K=!1,ve=w,ie=null;if(Y){for(var Ie=w||h,we=0,H=0,Le=0,dt=Math.min(r.length-1,R),ze=0;ze<=dt;ze+=1){var ke=f(r[ze]);H=we;var ct=l.get(ke);Le=H+(ct===void 0?n:ct),we=Le}for(var de=Ie==="top"?_:Y-_,Se=dt;Se>=0;Se-=1){var Ue=f(r[Se]),et=l.get(Ue);if(et===void 0){K=!0;break}if(de-=et,de<=0)break}switch(Ie){case"top":ie=H-_;break;case"bottom":ie=Le-Y+_;break;default:{var Ge=g.current.scrollTop,We=Ge+Y;H<Ge?ve="top":Le>We&&(ve="bottom")}}ie!==null&&p(ie),ie!==o.lastTop&&(K=!0)}K&&u((0,B.Z)((0,B.Z)({},o),{},{times:o.times+1,targetAlign:ve,lastTop:ie}))}},[o,g.current]),function(w){if(w==null){C();return}if(A.Z.cancel(V.current),typeof w=="number")p(w);else if(w&&(0,L.Z)(w)==="object"){var h,R=w.align;"index"in w?h=w.index:h=r.findIndex(function(K){return f(K)===w.key});var _=w.offset,Y=_===void 0?0:_;u({times:0,index:h,offset:Y,originAlign:R})}}}var ye=d.forwardRef(function(g,r){var l=g.prefixCls,n=g.rtl,f=g.scrollOffset,S=g.scrollRange,p=g.onStartMove,C=g.onStopMove,V=g.onScroll,O=g.horizontal,c=g.spinSize,o=g.containerSize,u=g.style,w=g.thumbStyle,h=g.showScrollBar,R=d.useState(!1),_=(0,T.Z)(R,2),Y=_[0],K=_[1],ve=d.useState(null),ie=(0,T.Z)(ve,2),Ie=ie[0],we=ie[1],H=d.useState(null),Le=(0,T.Z)(H,2),dt=Le[0],ze=Le[1],ke=!n,ct=d.useRef(),de=d.useRef(),Se=d.useState(h),Ue=(0,T.Z)(Se,2),et=Ue[0],Ge=Ue[1],We=d.useRef(),ce=function(){h===!0||h===!1||(clearTimeout(We.current),Ge(!0),We.current=setTimeout(function(){Ge(!1)},3e3))},bt=S-o||0,Ct=o-c||0,Zt=d.useMemo(function(){if(f===0||bt===0)return 0;var Xt=f/bt;return Xt*Ct},[f,bt,Ct]),Re=function(Et){Et.stopPropagation(),Et.preventDefault()},Jt=d.useRef({top:Zt,dragging:Y,pageY:Ie,startTop:dt});Jt.current={top:Zt,dragging:Y,pageY:Ie,startTop:dt};var bn=function(Et){K(!0),we(y(Et,O)),ze(Jt.current.top),p(),Et.stopPropagation(),Et.preventDefault()};d.useEffect(function(){var Xt=function(Ht){Ht.preventDefault()},Et=ct.current,lt=de.current;return Et.addEventListener("touchstart",Xt,{passive:!1}),lt.addEventListener("touchstart",bn,{passive:!1}),function(){Et.removeEventListener("touchstart",Xt),lt.removeEventListener("touchstart",bn)}},[]);var un=d.useRef();un.current=bt;var sn=d.useRef();sn.current=Ct,d.useEffect(function(){if(Y){var Xt,Et=function(Ht){var Pe=Jt.current,_e=Pe.dragging,Qt=Pe.pageY,Bt=Pe.startTop;A.Z.cancel(Xt);var t=ct.current.getBoundingClientRect(),e=o/(O?t.width:t.height);if(_e){var E=(y(Ht,O)-Qt)*e,m=Bt;!ke&&O?m-=E:m+=E;var P=un.current,N=sn.current,F=N?m/N:0,z=Math.ceil(F*P);z=Math.max(z,0),z=Math.min(z,P),Xt=(0,A.Z)(function(){V(z,O)})}},lt=function(){K(!1),C()};return window.addEventListener("mousemove",Et,{passive:!0}),window.addEventListener("touchmove",Et,{passive:!0}),window.addEventListener("mouseup",lt,{passive:!0}),window.addEventListener("touchend",lt,{passive:!0}),function(){window.removeEventListener("mousemove",Et),window.removeEventListener("touchmove",Et),window.removeEventListener("mouseup",lt),window.removeEventListener("touchend",lt),A.Z.cancel(Xt)}}},[Y]),d.useEffect(function(){return ce(),function(){clearTimeout(We.current)}},[f]),d.useImperativeHandle(r,function(){return{delayHidden:ce}});var Yt="".concat(l,"-scrollbar"),Nt={position:"absolute",visibility:et?null:"hidden"},rn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return O?(Object.assign(Nt,{height:8,left:0,right:0,bottom:0}),Object.assign(rn,(0,k.Z)({height:"100%",width:c},ke?"left":"right",Zt))):(Object.assign(Nt,(0,k.Z)({width:8,top:0,bottom:0},ke?"right":"left",0)),Object.assign(rn,{width:"100%",height:c,top:Zt})),d.createElement("div",{ref:ct,className:Ee()(Yt,(0,k.Z)((0,k.Z)((0,k.Z)({},"".concat(Yt,"-horizontal"),O),"".concat(Yt,"-vertical"),!O),"".concat(Yt,"-visible"),et)),style:(0,B.Z)((0,B.Z)({},Nt),u),onMouseDown:Re,onMouseMove:ce},d.createElement("div",{ref:de,className:Ee()("".concat(Yt,"-thumb"),(0,k.Z)({},"".concat(Yt,"-thumb-moving"),Y)),style:(0,B.Z)((0,B.Z)({},rn),w),onMouseDown:bn}))}),Ze=ye,je=20;function se(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=g/r*g;return isNaN(l)&&(l=0),l=Math.max(l,je),Math.floor(l)}var ge=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],st=[],qe={overflowY:"auto",overflowAnchor:"none"};function Ye(g,r){var l=g.prefixCls,n=l===void 0?"rc-virtual-list":l,f=g.className,S=g.height,p=g.itemHeight,C=g.fullHeight,V=C===void 0?!0:C,O=g.style,c=g.data,o=g.children,u=g.itemKey,w=g.virtual,h=g.direction,R=g.scrollWidth,_=g.component,Y=_===void 0?"div":_,K=g.onScroll,ve=g.onVirtualScroll,ie=g.onVisibleChange,Ie=g.innerProps,we=g.extraRender,H=g.styles,Le=g.showScrollBar,dt=Le===void 0?"optional":Le,ze=(0,he.Z)(g,ge),ke=d.useCallback(function(x){return typeof u=="function"?u(x):x==null?void 0:x[u]},[u]),ct=D(ke,null,null),de=(0,T.Z)(ct,4),Se=de[0],Ue=de[1],et=de[2],Ge=de[3],We=!!(w!==!1&&S&&p),ce=d.useMemo(function(){return Object.values(et.maps).reduce(function(x,Z){return x+Z},0)},[et.id,et.maps]),bt=We&&c&&(Math.max(p*c.length,ce)>S||!!R),Ct=h==="rtl",Zt=Ee()(n,(0,k.Z)({},"".concat(n,"-rtl"),Ct),f),Re=c||st,Jt=(0,d.useRef)(),bn=(0,d.useRef)(),un=(0,d.useRef)(),sn=(0,d.useState)(0),Yt=(0,T.Z)(sn,2),Nt=Yt[0],rn=Yt[1],Xt=(0,d.useState)(0),Et=(0,T.Z)(Xt,2),lt=Et[0],an=Et[1],Ht=(0,d.useState)(!1),Pe=(0,T.Z)(Ht,2),_e=Pe[0],Qt=Pe[1],Bt=function(){Qt(!0)},t=function(){Qt(!1)},e={getKey:ke};function E(x){rn(function(Z){var X;typeof x=="function"?X=x(Z):X=x;var U=on(X);return Jt.current.scrollTop=U,U})}var m=(0,d.useRef)({start:0,end:Re.length}),P=(0,d.useRef)(),N=en(Re,ke),F=(0,T.Z)(N,1),z=F[0];P.current=z;var q=d.useMemo(function(){if(!We)return{scrollHeight:void 0,start:0,end:Re.length-1,offset:void 0};if(!bt){var x;return{scrollHeight:((x=bn.current)===null||x===void 0?void 0:x.offsetHeight)||0,start:0,end:Re.length-1,offset:void 0}}for(var Z=0,X,U,be,rt=Re.length,ht=0;ht<rt;ht+=1){var gt=Re[ht],cn=ke(gt),Sn=et.get(cn),dn=Z+(Sn===void 0?p:Sn);dn>=Nt&&X===void 0&&(X=ht,U=Z),dn>Nt+S&&be===void 0&&(be=ht),Z=dn}return X===void 0&&(X=0,U=0,be=Math.ceil(S/p)),be===void 0&&(be=Re.length-1),be=Math.min(be+1,Re.length-1),{scrollHeight:Z,start:X,end:be,offset:U}},[bt,We,Nt,Re,Ge,S]),j=q.scrollHeight,ee=q.start,me=q.end,Be=q.offset;m.current.start=ee,m.current.end=me,d.useLayoutEffect(function(){var x=et.getRecord();if(x.size===1){var Z=Array.from(x.keys())[0],X=x.get(Z),U=Re[ee];if(U&&X===void 0){var be=ke(U);if(be===Z){var rt=et.get(Z),ht=rt-p;E(function(gt){return gt+ht})}}}et.resetRecord()},[j]);var $=d.useState({width:0,height:S}),Me=(0,T.Z)($,2),te=Me[0],le=Me[1],$e=function(Z){le({width:Z.offsetWidth,height:Z.offsetHeight})},G=(0,d.useRef)(),ae=(0,d.useRef)(),pe=d.useMemo(function(){return se(te.width,R)},[te.width,R]),tt=d.useMemo(function(){return se(te.height,j)},[te.height,j]),Ne=j-S,Mt=(0,d.useRef)(Ne);Mt.current=Ne;function on(x){var Z=x;return Number.isNaN(Mt.current)||(Z=Math.min(Z,Mt.current)),Z=Math.max(Z,0),Z}var it=Nt<=0,Xe=Nt>=Ne,nt=lt<=0,It=lt>=R,ft=oe(it,Xe,nt,It),He=function(){return{x:Ct?-lt:lt,y:Nt}},Ae=(0,d.useRef)(He()),vt=(0,a.zX)(function(x){if(ve){var Z=(0,B.Z)((0,B.Z)({},He()),x);(Ae.current.x!==Z.x||Ae.current.y!==Z.y)&&(ve(Z),Ae.current=Z)}});function Lt(x,Z){var X=x;Z?((0,Ke.flushSync)(function(){an(X)}),vt()):E(X)}function mt(x){var Z=x.currentTarget.scrollTop;Z!==Nt&&E(Z),K==null||K(x),vt()}var wt=function(Z){var X=Z,U=R?R-te.width:0;return X=Math.max(X,0),X=Math.min(X,U),X},ut=(0,a.zX)(function(x,Z){Z?((0,Ke.flushSync)(function(){an(function(X){var U=X+(Ct?-x:x);return wt(U)})}),vt()):E(function(X){var U=X+x;return U})}),Je=tn(We,it,Xe,nt,It,!!R,ut),zt=(0,T.Z)(Je,2),hn=zt[0],fn=zt[1];M(We,Jt,function(x,Z,X,U){var be=U;return ft(x,Z,X)?!1:!be||!be._virtualHandled?(be&&(be._virtualHandled=!0),hn({preventDefault:function(){},deltaX:x?Z:0,deltaY:x?0:Z}),!0):!1}),re(bt,Jt,function(x){E(function(Z){return Z+x})}),(0,pt.Z)(function(){function x(X){var U=it&&X.detail<0,be=Xe&&X.detail>0;We&&!U&&!be&&X.preventDefault()}var Z=Jt.current;return Z.addEventListener("wheel",hn,{passive:!1}),Z.addEventListener("DOMMouseScroll",fn,{passive:!0}),Z.addEventListener("MozMousePixelScroll",x,{passive:!1}),function(){Z.removeEventListener("wheel",hn),Z.removeEventListener("DOMMouseScroll",fn),Z.removeEventListener("MozMousePixelScroll",x)}},[We,it,Xe]),(0,pt.Z)(function(){if(R){var x=wt(lt);an(x),vt({x})}},[te.width,R]);var Rt=function(){var Z,X;(Z=G.current)===null||Z===void 0||Z.delayHidden(),(X=ae.current)===null||X===void 0||X.delayHidden()},Cn=ue(Jt,Re,et,p,ke,function(){return Ue(!0)},E,Rt);d.useImperativeHandle(r,function(){return{nativeElement:un.current,getScrollInfo:He,scrollTo:function(Z){function X(U){return U&&(0,L.Z)(U)==="object"&&("left"in U||"top"in U)}X(Z)?(Z.left!==void 0&&an(wt(Z.left)),Cn(Z.top)):Cn(Z)}}}),(0,pt.Z)(function(){if(ie){var x=Re.slice(ee,me+1);ie(x,Re)}},[ee,me,Re]);var $t=Ft(Re,ke,et,p),yn=we==null?void 0:we({start:ee,end:me,virtual:bt,offsetX:lt,offsetY:Be,rtl:Ct,getSize:$t}),vn=qt(Re,ee,me,R,lt,Se,o,e),Dt=null;S&&(Dt=(0,B.Z)((0,k.Z)({},V?"height":"maxHeight",S),qe),We&&(Dt.overflowY="hidden",R&&(Dt.overflowX="hidden"),_e&&(Dt.pointerEvents="none")));var De={};return Ct&&(De.dir="rtl"),d.createElement("div",(0,s.Z)({ref:un,style:(0,B.Z)((0,B.Z)({},O),{},{position:"relative"}),className:Zt},De,ze),d.createElement(Ve.Z,{onResize:$e},d.createElement(Y,{className:"".concat(n,"-holder"),style:Dt,ref:Jt,onScroll:mt,onMouseEnter:Rt},d.createElement(pn,{prefixCls:n,height:j,offsetX:lt,offsetY:Be,scrollWidth:R,onInnerResize:Ue,ref:bn,innerProps:Ie,rtl:Ct,extra:yn},vn))),bt&&j>S&&d.createElement(Ze,{ref:G,prefixCls:n,scrollOffset:Nt,scrollRange:j,rtl:Ct,onScroll:Lt,onStartMove:Bt,onStopMove:t,spinSize:tt,containerSize:te.height,style:H==null?void 0:H.verticalScrollBar,thumbStyle:H==null?void 0:H.verticalScrollBarThumb,showScrollBar:dt}),bt&&R>te.width&&d.createElement(Ze,{ref:ae,prefixCls:n,scrollOffset:lt,scrollRange:R,rtl:Ct,onScroll:Lt,onStartMove:Bt,onStopMove:t,spinSize:pe,containerSize:te.width,horizontal:!0,style:H==null?void 0:H.horizontalScrollBar,thumbStyle:H==null?void 0:H.horizontalScrollBarThumb,showScrollBar:dt}))}var ot=d.forwardRef(Ye);ot.displayName="List";var Gt=ot,Pt=Gt},76374:function(_n,Vt,i){var s=function(){if(typeof Map!="undefined")return Map;function I(v,D){var b=-1;return v.some(function(M,ne){return M[0]===D?(b=ne,!0):!1}),b}return function(){function v(){this.__entries__=[]}return Object.defineProperty(v.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),v.prototype.get=function(D){var b=I(this.__entries__,D),M=this.__entries__[b];return M&&M[1]},v.prototype.set=function(D,b){var M=I(this.__entries__,D);~M?this.__entries__[M][1]=b:this.__entries__.push([D,b])},v.prototype.delete=function(D){var b=this.__entries__,M=I(b,D);~M&&b.splice(M,1)},v.prototype.has=function(D){return!!~I(this.__entries__,D)},v.prototype.clear=function(){this.__entries__.splice(0)},v.prototype.forEach=function(D,b){b===void 0&&(b=null);for(var M=0,ne=this.__entries__;M<ne.length;M++){var y=ne[M];D.call(b,y[1],y[0])}},v}()}(),L=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,B=function(){return typeof i.g!="undefined"&&i.g.Math===Math?i.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),k=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(B):function(I){return setTimeout(function(){return I(Date.now())},1e3/60)}}(),T=2;function he(I,v){var D=!1,b=!1,M=0;function ne(){D&&(D=!1,I()),b&&re()}function y(){k(ne)}function re(){var Fe=Date.now();if(D){if(Fe-M<T)return;b=!0}else D=!0,b=!1,setTimeout(y,v);M=Fe}return re}var J=20,Ee=["top","right","bottom","left","width","height","size","weight"],Ve=typeof MutationObserver!="undefined",a=function(){function I(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=he(this.refresh.bind(this),J)}return I.prototype.addObserver=function(v){~this.observers_.indexOf(v)||this.observers_.push(v),this.connected_||this.connect_()},I.prototype.removeObserver=function(v){var D=this.observers_,b=D.indexOf(v);~b&&D.splice(b,1),!D.length&&this.connected_&&this.disconnect_()},I.prototype.refresh=function(){var v=this.updateObservers_();v&&this.refresh()},I.prototype.updateObservers_=function(){var v=this.observers_.filter(function(D){return D.gatherActive(),D.hasActive()});return v.forEach(function(D){return D.broadcastActive()}),v.length>0},I.prototype.connect_=function(){!L||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ve?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},I.prototype.disconnect_=function(){!L||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},I.prototype.onTransitionEnd_=function(v){var D=v.propertyName,b=D===void 0?"":D,M=Ee.some(function(ne){return!!~b.indexOf(ne)});M&&this.refresh()},I.getInstance=function(){return this.instance_||(this.instance_=new I),this.instance_},I.instance_=null,I}(),pt=function(I,v){for(var D=0,b=Object.keys(v);D<b.length;D++){var M=b[D];Object.defineProperty(I,M,{value:v[M],enumerable:!1,writable:!1,configurable:!0})}return I},d=function(I){var v=I&&I.ownerDocument&&I.ownerDocument.defaultView;return v||B},Ke=Ut(0,0,0,0);function W(I){return parseFloat(I)||0}function pn(I){for(var v=[],D=1;D<arguments.length;D++)v[D-1]=arguments[D];return v.reduce(function(b,M){var ne=I["border-"+M+"-width"];return b+W(ne)},0)}function wn(I){for(var v=["top","right","bottom","left"],D={},b=0,M=v;b<M.length;b++){var ne=M[b],y=I["padding-"+ne];D[ne]=W(y)}return D}function qt(I){var v=I.getBBox();return Ut(0,0,v.width,v.height)}function ln(I){var v=I.clientWidth,D=I.clientHeight;if(!v&&!D)return Ke;var b=d(I).getComputedStyle(I),M=wn(b),ne=M.left+M.right,y=M.top+M.bottom,re=W(b.width),Fe=W(b.height);if(b.boxSizing==="border-box"&&(Math.round(re+ne)!==v&&(re-=pn(b,"left","right")+ne),Math.round(Fe+y)!==D&&(Fe-=pn(b,"top","bottom")+y)),!en(I)){var ue=Math.round(re+ne)-v,ye=Math.round(Fe+y)-D;Math.abs(ue)!==1&&(re-=ue),Math.abs(ye)!==1&&(Fe-=ye)}return Ut(M.left,M.top,re,Fe)}var Rn=function(){return typeof SVGGraphicsElement!="undefined"?function(I){return I instanceof d(I).SVGGraphicsElement}:function(I){return I instanceof d(I).SVGElement&&typeof I.getBBox=="function"}}();function en(I){return I===d(I).document.documentElement}function A(I){return L?Rn(I)?qt(I):ln(I):Ke}function gn(I){var v=I.x,D=I.y,b=I.width,M=I.height,ne=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(ne.prototype);return pt(y,{x:v,y:D,width:b,height:M,top:D,right:v+b,bottom:M+D,left:v}),y}function Ut(I,v,D,b){return{x:I,y:v,width:D,height:b}}var oe=function(){function I(v){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ut(0,0,0,0),this.target=v}return I.prototype.isActive=function(){var v=A(this.target);return this.contentRect_=v,v.width!==this.broadcastWidth||v.height!==this.broadcastHeight},I.prototype.broadcastRect=function(){var v=this.contentRect_;return this.broadcastWidth=v.width,this.broadcastHeight=v.height,v},I}(),tn=function(){function I(v,D){var b=gn(D);pt(this,{target:v,contentRect:b})}return I}(),Ft=function(){function I(v,D,b){if(this.activeObservations_=[],this.observations_=new s,typeof v!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=v,this.controller_=D,this.callbackCtx_=b}return I.prototype.observe=function(v){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(v instanceof d(v).Element))throw new TypeError('parameter 1 is not of type "Element".');var D=this.observations_;D.has(v)||(D.set(v,new oe(v)),this.controller_.addObserver(this),this.controller_.refresh())}},I.prototype.unobserve=function(v){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(v instanceof d(v).Element))throw new TypeError('parameter 1 is not of type "Element".');var D=this.observations_;D.has(v)&&(D.delete(v),D.size||this.controller_.removeObserver(this))}},I.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},I.prototype.gatherActive=function(){var v=this;this.clearActive(),this.observations_.forEach(function(D){D.isActive()&&v.activeObservations_.push(D)})},I.prototype.broadcastActive=function(){if(this.hasActive()){var v=this.callbackCtx_,D=this.activeObservations_.map(function(b){return new tn(b.target,b.broadcastRect())});this.callback_.call(v,D,v),this.clearActive()}},I.prototype.clearActive=function(){this.activeObservations_.splice(0)},I.prototype.hasActive=function(){return this.activeObservations_.length>0},I}(),_t=typeof WeakMap!="undefined"?new WeakMap:new s,Tt=function(){function I(v){if(!(this instanceof I))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var D=a.getInstance(),b=new Ft(v,D,this);_t.set(this,b)}return I}();["observe","unobserve","disconnect"].forEach(function(I){Tt.prototype[I]=function(){var v;return(v=_t.get(this))[I].apply(v,arguments)}});var nn=function(){return typeof B.ResizeObserver!="undefined"?B.ResizeObserver:Tt}();Vt.Z=nn}}]);