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
121 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2823],{65966:function(Bn,_t,i){i.d(_t,{Z:function(){return g}});var s=i(20439),A=i(50298),_=i(62646),U=i(43403),L=i(92310),he=i.n(L),Y=i(29301),Ee=i(76846),Oe=i(96452),a=i(6089),Ct=i(80402),m=i(34280),We=i(49658),K=i(59301),pn=i(14809),wn=i(77900),qt=i(8654);function rn(r){var l=r.prefixCls,n=r.align,c=r.arrow,p=r.arrowPos,y=c||{},E=y.className,z=y.content,T=p.x,f=T===void 0?0:T,o=p.y,u=o===void 0?0:o,I=K.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var N=n.points[0],W=n.points[1],X=N[0],j=N[1],de=W[0],ie=W[1];X===de||!["t","b"].includes(X)?v.top=u:X==="t"?v.top=0:v.bottom=0,j===ie||!["l","r"].includes(j)?v.left=f:j==="l"?v.left=0:v.right=0}return K.createElement("div",{ref:I,className:he()("".concat(l,"-arrow"),E),style:v},z)}function Rn(r){var l=r.prefixCls,n=r.open,c=r.zIndex,p=r.mask,y=r.motion;return p?K.createElement(wn.default,(0,pn.Z)({},y,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(E){var z=E.className;return K.createElement("div",{style:{zIndex:c},className:he()("".concat(l,"-mask"),z)})}):null}var an=K.memo(function(r){var l=r.children;return l},function(r,l){return l.cache}),B=an,gn=K.forwardRef(function(r,l){var n=r.popup,c=r.className,p=r.prefixCls,y=r.style,E=r.target,z=r.onVisibleChanged,T=r.open,f=r.keepDom,o=r.fresh,u=r.onClick,I=r.mask,v=r.arrow,N=r.arrowPos,W=r.align,X=r.motion,j=r.maskMotion,de=r.forceRender,ie=r.getPopupContainer,Me=r.autoDestroy,we=r.portal,H=r.zIndex,Ie=r.onMouseEnter,ut=r.onMouseLeave,Le=r.onPointerEnter,$e=r.onPointerDownCapture,rt=r.ready,ue=r.offsetX,pe=r.offsetY,Ke=r.offsetR,Ge=r.offsetB,He=r.onAlign,Ae=r.onPrepare,fe=r.stretch,St=r.targetWidth,gt=r.targetHeight,At=typeof n=="function"?n():n,Se=T||f,Yt=(ie==null?void 0:ie.length)>0,bn=K.useState(!ie||!Yt),mn=(0,A.Z)(bn,2),on=mn[0],ln=mn[1];if((0,m.Z)(function(){!on&&Yt&&E&&ln(!0)},[on,Yt,E]),!on)return null;var Mt="auto",Xt={left:"-1000vw",top:"-1000vh",right:Mt,bottom:Mt};if(rt||!T){var pt,Et=W.points,ft=W.dynamicInset||((pt=W._experimental)===null||pt===void 0?void 0:pt.dynamicInset),Ot=ft&&Et[0][1]==="r",Qt=ft&&Et[0][0]==="b";Ot?(Xt.right=Ke,Xt.left=Mt):(Xt.left=ue,Xt.right=Mt),Qt?(Xt.bottom=Ge,Xt.top=Mt):(Xt.top=pe,Xt.bottom=Mt)}var Ve={};return fe&&(fe.includes("height")&&gt?Ve.height=gt:fe.includes("minHeight")&&gt&&(Ve.minHeight=gt),fe.includes("width")&&St?Ve.width=St:fe.includes("minWidth")&&St&&(Ve.minWidth=St)),T||(Ve.pointerEvents="none"),K.createElement(we,{open:de||Se,getContainer:ie&&function(){return ie(E)},autoDestroy:Me},K.createElement(Rn,{prefixCls:p,open:T,zIndex:H,mask:I,motion:j}),K.createElement(Y.Z,{onResize:He,disabled:!T},function(Fe){return K.createElement(wn.default,(0,pn.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:de,leavedClassName:"".concat(p,"-hidden")},X,{onAppearPrepare:Ae,onEnterPrepare:Ae,visible:T,onVisibleChanged:function(sn){var t;X==null||(t=X.onVisibleChanged)===null||t===void 0||t.call(X,sn),z(sn)}}),function(Vt,sn){var t=Vt.className,e=Vt.style,C=he()(p,t,c);return K.createElement("div",{ref:(0,qt.sQ)(Fe,l,sn),className:C,style:(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({"--arrow-x":"".concat(N.x||0,"px"),"--arrow-y":"".concat(N.y||0,"px")},Xt),Ve),e),{},{boxSizing:"border-box",zIndex:H},y),onMouseEnter:Ie,onMouseLeave:ut,onPointerEnter:Le,onClick:u,onPointerDownCapture:$e},v&&K.createElement(rn,{prefixCls:p,arrow:v,arrowPos:N,align:W}),K.createElement(B,{cache:!T&&!o},At))})}))}),Gt=gn,le=K.forwardRef(function(r,l){var n=r.children,c=r.getTriggerDOMNode,p=(0,qt.Yr)(n),y=K.useCallback(function(z){(0,qt.mH)(l,c?c(z):z)},[c]),E=(0,qt.x1)(y,(0,qt.C4)(n));return p?K.cloneElement(n,{ref:E}):n}),en=le,Ht=K.createContext(null),$t=Ht;function zt(r){return r?Array.isArray(r)?r:[r]:[]}function tn(r,l,n,c){return K.useMemo(function(){var p=zt(n!=null?n:l),y=zt(c!=null?c:l),E=new Set(p),z=new Set(y);return r&&(E.has("hover")&&(E.delete("hover"),E.add("click")),z.has("hover")&&(z.delete("hover"),z.add("click"))),[E,z]},[r,l,n,c])}var M=i(29194);function d(){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 O(r,l,n,c){for(var p=n.points,y=Object.keys(r),E=0;E<y.length;E+=1){var z,T=y[E];if(d((z=r[T])===null||z===void 0?void 0:z.points,p,c))return"".concat(l,"-placement-").concat(T)}return""}function b(r,l,n,c){return l||(n?{motionName:"".concat(r,"-").concat(n)}:c?{motionName:c}:null)}function x(r){return r.ownerDocument.defaultView}function ae(r){for(var l=[],n=r==null?void 0:r.parentElement,c=["hidden","scroll","clip","auto"];n;){var p=x(n).getComputedStyle(n),y=p.overflowX,E=p.overflowY,z=p.overflow;[y,E,z].some(function(T){return c.includes(T)})&&l.push(n),n=n.parentElement}return l}function S(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(r)?l:r}function oe(r){return S(parseFloat(r),0)}function Te(r,l){var n=(0,s.Z)({},r);return(l||[]).forEach(function(c){if(!(c instanceof HTMLBodyElement||c instanceof HTMLHtmlElement)){var p=x(c).getComputedStyle(c),y=p.overflow,E=p.overflowClipMargin,z=p.borderTopWidth,T=p.borderBottomWidth,f=p.borderLeftWidth,o=p.borderRightWidth,u=c.getBoundingClientRect(),I=c.offsetHeight,v=c.clientHeight,N=c.offsetWidth,W=c.clientWidth,X=oe(z),j=oe(T),de=oe(f),ie=oe(o),Me=S(Math.round(u.width/N*1e3)/1e3),we=S(Math.round(u.height/I*1e3)/1e3),H=(N-W-de-ie)*Me,Ie=(I-v-X-j)*we,ut=X*we,Le=j*we,$e=de*Me,rt=ie*Me,ue=0,pe=0;if(y==="clip"){var Ke=oe(E);ue=Ke*Me,pe=Ke*we}var Ge=u.x+$e-ue,He=u.y+ut-pe,Ae=Ge+u.width+2*ue-$e-rt-H,fe=He+u.height+2*pe-ut-Le-Ie;n.left=Math.max(n.left,Ge),n.top=Math.max(n.top,He),n.right=Math.min(n.right,Ae),n.bottom=Math.min(n.bottom,fe)}}),n}function se(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(l),c=n.match(/^(.*)\%$/);return c?r*(parseFloat(c[1])/100):parseFloat(n)}function ye(r,l){var n=l||[],c=(0,A.Z)(n,2),p=c[0],y=c[1];return[se(r.width,p),se(r.height,y)]}function Re(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[r[0],r[1]]}function _e(r,l){var n=l[0],c=l[1],p,y;return n==="t"?y=r.y:n==="b"?y=r.y+r.height:y=r.y+r.height/2,c==="l"?p=r.x:c==="r"?p=r.x+r.width:p=r.x+r.width/2,{x:p,y}}function ce(r,l){var n={t:"b",b:"t",l:"r",r:"l"};return r.map(function(c,p){return p===l?n[c]||"c":c}).join("")}function ge(r,l,n,c,p,y,E){var z=K.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:p[c]||{}}),T=(0,A.Z)(z,2),f=T[0],o=T[1],u=K.useRef(0),I=K.useMemo(function(){return l?ae(l):[]},[l]),v=K.useRef({}),N=function(){v.current={}};r||N();var W=(0,a.Z)(function(){if(l&&n&&r){let Zt=function(_n,ve){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V,xe=Se.x+_n,Pe=Se.y+ve,yt=xe+Qt,Wt=Pe+Ot,ee=Math.max(xe,De.left),be=Math.max(Pe,De.top),wt=Math.min(yt,De.right),ot=Math.min(Wt,De.bottom);return Math.max(0,(wt-ee)*(ot-be))},Kn=function(){yn=Se.y+Ne,fn=yn+Ot,Lt=Se.x+ze,Ze=Lt+Qt};var de,ie,Me,we,H=l,Ie=H.ownerDocument,ut=x(H),Le=ut.getComputedStyle(H),$e=Le.position,rt=H.style.left,ue=H.style.top,pe=H.style.right,Ke=H.style.bottom,Ge=H.style.overflow,He=(0,s.Z)((0,s.Z)({},p[c]),y),Ae=Ie.createElement("div");(de=H.parentElement)===null||de===void 0||de.appendChild(Ae),Ae.style.left="".concat(H.offsetLeft,"px"),Ae.style.top="".concat(H.offsetTop,"px"),Ae.style.position=$e,Ae.style.height="".concat(H.offsetHeight,"px"),Ae.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 fe;if(Array.isArray(n))fe={x:n[0],y:n[1],width:0,height:0};else{var St,gt,At=n.getBoundingClientRect();At.x=(St=At.x)!==null&&St!==void 0?St:At.left,At.y=(gt=At.y)!==null&&gt!==void 0?gt:At.top,fe={x:At.x,y:At.y,width:At.width,height:At.height}}var Se=H.getBoundingClientRect(),Yt=ut.getComputedStyle(H),bn=Yt.height,mn=Yt.width;Se.x=(ie=Se.x)!==null&&ie!==void 0?ie:Se.left,Se.y=(Me=Se.y)!==null&&Me!==void 0?Me:Se.top;var on=Ie.documentElement,ln=on.clientWidth,Mt=on.clientHeight,Xt=on.scrollWidth,pt=on.scrollHeight,Et=on.scrollTop,ft=on.scrollLeft,Ot=Se.height,Qt=Se.width,Ve=fe.height,Fe=fe.width,Vt={left:0,top:0,right:ln,bottom:Mt},sn={left:-ft,top:-Et,right:Xt-ft,bottom:pt-Et},t=He.htmlRegion,e="visible",C="visibleFirst";t!=="scroll"&&t!==C&&(t=e);var h=t===C,P=Te(sn,I),D=Te(Vt,I),V=t===e?D:P,F=h?D:V;H.style.left="auto",H.style.top="auto",H.style.right="0",H.style.bottom="0";var Q=H.getBoundingClientRect();H.style.left=rt,H.style.top=ue,H.style.right=pe,H.style.bottom=Ke,H.style.overflow=Ge,(we=H.parentElement)===null||we===void 0||we.removeChild(Ae);var k=S(Math.round(Qt/parseFloat(mn)*1e3)/1e3),te=S(Math.round(Ot/parseFloat(bn)*1e3)/1e3);if(k===0||te===0||(0,Ee.Sh)(n)&&!(0,M.Z)(n))return;var me=He.offset,$=He.targetOffset,Z=ye(Se,me),ne=(0,A.Z)(Z,2),J=ne[0],re=ne[1],je=ye(fe,$),lt=(0,A.Z)(je,2),vt=lt[0],et=lt[1];fe.x-=vt,fe.y-=et;var Tt=He.points||[],Be=(0,A.Z)(Tt,2),It=Be[0],nn=Be[1],tt=Re(nn),Je=Re(It),nt=_e(fe,tt),Pt=_e(Se,Je),st=(0,s.Z)({},He),ze=nt.x-Pt.x+J,Ne=nt.y-Pt.y+re,ct=Zt(ze,Ne),Ft=Zt(ze,Ne,D),dt=_e(fe,["t","l"]),Rt=_e(Se,["t","l"]),at=_e(fe,["b","r"]),Ue=_e(Se,["b","r"]),Bt=He.overflow||{},hn=Bt.adjustX,cn=Bt.adjustY,xt=Bt.shiftX,Cn=Bt.shiftY,Kt=function(ve){return typeof ve=="boolean"?ve:ve>=0},yn,fn,Lt,Ze;Kn();var w=Kt(cn),R=Je[0]===tt[0];if(w&&Je[0]==="t"&&(fn>F.bottom||v.current.bt)){var q=Ne;R?q-=Ot-Ve:q=dt.y-Ue.y-re;var G=Zt(ze,q),Ce=Zt(ze,q,D);G>ct||G===ct&&(!h||Ce>=Ft)?(v.current.bt=!0,Ne=q,re=-re,st.points=[ce(Je,0),ce(tt,0)]):v.current.bt=!1}if(w&&Je[0]==="b"&&(yn<F.top||v.current.tb)){var Xe=Ne;R?Xe+=Ot-Ve:Xe=at.y-Rt.y-re;var mt=Zt(ze,Xe),ht=Zt(ze,Xe,D);mt>ct||mt===ct&&(!h||ht>=Ft)?(v.current.tb=!0,Ne=Xe,re=-re,st.points=[ce(Je,0),ce(tt,0)]):v.current.tb=!1}var un=Kt(hn),Sn=Je[1]===tt[1];if(un&&Je[1]==="l"&&(Ze>F.right||v.current.rl)){var vn=ze;Sn?vn-=Qt-Fe:vn=dt.x-Ue.x-J;var Pn=Zt(vn,Ne),jt=Zt(vn,Ne,D);Pn>ct||Pn===ct&&(!h||jt>=Ft)?(v.current.rl=!0,ze=vn,J=-J,st.points=[ce(Je,1),ce(tt,1)]):v.current.rl=!1}if(un&&Je[1]==="r"&&(Lt<F.left||v.current.lr)){var Ln=ze;Sn?Ln+=Qt-Fe:Ln=at.x-Rt.x-J;var Vn=Zt(Ln,Ne),xn=Zt(Ln,Ne,D);Vn>ct||Vn===ct&&(!h||xn>=Ft)?(v.current.lr=!0,ze=Ln,J=-J,st.points=[ce(Je,1),ce(tt,1)]):v.current.lr=!1}Kn();var kt=xt===!0?0:xt;typeof kt=="number"&&(Lt<D.left&&(ze-=Lt-D.left-J,fe.x+Fe<D.left+kt&&(ze+=fe.x-D.left+Fe-kt)),Ze>D.right&&(ze-=Ze-D.right-J,fe.x>D.right-kt&&(ze+=fe.x-D.right+kt)));var dn=Cn===!0?0:Cn;typeof dn=="number"&&(yn<D.top&&(Ne-=yn-D.top-re,fe.y+Ve<D.top+dn&&(Ne+=fe.y-D.top+Ve-dn)),fn>D.bottom&&(Ne-=fn-D.bottom-re,fe.y>D.bottom-dn&&(Ne+=fe.y-D.bottom+dn)));var Ut=Se.x+ze,Zn=Ut+Qt,Fn=Se.y+Ne,Wn=Fn+Ot,Dn=fe.x,Nn=Dn+Fe,jn=fe.y,Tn=jn+Ve,Qn=Math.max(Ut,Dn),Mn=Math.min(Zn,Nn),nr=(Qn+Mn)/2,qn=nr-Ut,Gn=Math.max(Fn,jn),rr=Math.min(Wn,Tn),er=(Gn+rr)/2,tr=er-Fn;E==null||E(l,st);var In=Q.right-Se.x-(ze+Se.width),$n=Q.bottom-Se.y-(Ne+Se.height);k===1&&(ze=Math.round(ze),In=Math.round(In)),te===1&&(Ne=Math.round(Ne),$n=Math.round($n));var Jn={ready:!0,offsetX:ze/k,offsetY:Ne/te,offsetR:In/k,offsetB:$n/te,arrowX:qn/k,arrowY:tr/te,scaleX:k,scaleY:te,align:st};o(Jn)}}),X=function(){u.current+=1;var ie=u.current;Promise.resolve().then(function(){u.current===ie&&W()})},j=function(){o(function(ie){return(0,s.Z)((0,s.Z)({},ie),{},{ready:!1})})};return(0,m.Z)(j,[c]),(0,m.Z)(function(){r||j()},[r]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,X]}var it=i(95190);function Ye(r,l,n,c,p){(0,m.Z)(function(){if(r&&l&&n){let u=function(){c(),p()};var y=l,E=n,z=ae(y),T=ae(E),f=x(E),o=new Set([f].concat((0,it.Z)(z),(0,it.Z)(T)));return o.forEach(function(I){I.addEventListener("scroll",u,{passive:!0})}),f.addEventListener("resize",u,{passive:!0}),c(),function(){o.forEach(function(I){I.removeEventListener("scroll",u),f.removeEventListener("resize",u)})}}},[r,l,n])}var ke=i(48736);function qe(r,l,n,c,p,y,E,z){var T=K.useRef(r);T.current=r;var f=K.useRef(!1);K.useEffect(function(){if(l&&c&&(!p||y)){var u=function(){f.current=!1},I=function(Me){var we;T.current&&!E(((we=Me.composedPath)===null||we===void 0||(we=we.call(Me))===null||we===void 0?void 0:we[0])||Me.target)&&!f.current&&z(!1)},v=x(c);v.addEventListener("pointerdown",u,!0),v.addEventListener("mousedown",I,!0),v.addEventListener("contextmenu",I,!0);var N=(0,Oe.A)(n);if(N&&(N.addEventListener("mousedown",I,!0),N.addEventListener("contextmenu",I,!0)),0)var W,X,j,de;return function(){v.removeEventListener("pointerdown",u,!0),v.removeEventListener("mousedown",I,!0),v.removeEventListener("contextmenu",I,!0),N&&(N.removeEventListener("mousedown",I,!0),N.removeEventListener("contextmenu",I,!0))}}},[l,n,c,p,y]);function o(){f.current=!0}return o}var Jt=["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 Dt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U.Z,l=K.forwardRef(function(n,c){var p=n.prefixCls,y=p===void 0?"rc-trigger-popup":p,E=n.children,z=n.action,T=z===void 0?"hover":z,f=n.showAction,o=n.hideAction,u=n.popupVisible,I=n.defaultPopupVisible,v=n.onPopupVisibleChange,N=n.afterPopupVisibleChange,W=n.mouseEnterDelay,X=n.mouseLeaveDelay,j=X===void 0?.1:X,de=n.focusDelay,ie=n.blurDelay,Me=n.mask,we=n.maskClosable,H=we===void 0?!0:we,Ie=n.getPopupContainer,ut=n.forceRender,Le=n.autoDestroy,$e=n.destroyPopupOnHide,rt=n.popup,ue=n.popupClassName,pe=n.popupStyle,Ke=n.popupPlacement,Ge=n.builtinPlacements,He=Ge===void 0?{}:Ge,Ae=n.popupAlign,fe=n.zIndex,St=n.stretch,gt=n.getPopupClassNameFromAlign,At=n.fresh,Se=n.alignPoint,Yt=n.onPopupClick,bn=n.onPopupAlign,mn=n.arrow,on=n.popupMotion,ln=n.maskMotion,Mt=n.popupTransitionName,Xt=n.popupAnimation,pt=n.maskTransitionName,Et=n.maskAnimation,ft=n.className,Ot=n.getTriggerDOMNode,Qt=(0,_.Z)(n,Jt),Ve=Le||$e||!1,Fe=K.useState(!1),Vt=(0,A.Z)(Fe,2),sn=Vt[0],t=Vt[1];(0,m.Z)(function(){t((0,We.Z)())},[]);var e=K.useRef({}),C=K.useContext($t),h=K.useMemo(function(){return{registerSubPopup:function(be,wt){e.current[be]=wt,C==null||C.registerSubPopup(be,wt)}}},[C]),P=(0,Ct.Z)(),D=K.useState(null),V=(0,A.Z)(D,2),F=V[0],Q=V[1],k=K.useRef(null),te=(0,a.Z)(function(ee){k.current=ee,(0,Ee.Sh)(ee)&&F!==ee&&Q(ee),C==null||C.registerSubPopup(P,ee)}),me=K.useState(null),$=(0,A.Z)(me,2),Z=$[0],ne=$[1],J=K.useRef(null),re=(0,a.Z)(function(ee){(0,Ee.Sh)(ee)&&Z!==ee&&(ne(ee),J.current=ee)}),je=K.Children.only(E),lt=(je==null?void 0:je.props)||{},vt={},et=(0,a.Z)(function(ee){var be,wt,ot=Z;return(ot==null?void 0:ot.contains(ee))||((be=(0,Oe.A)(ot))===null||be===void 0?void 0:be.host)===ee||ee===ot||(F==null?void 0:F.contains(ee))||((wt=(0,Oe.A)(F))===null||wt===void 0?void 0:wt.host)===ee||ee===F||Object.values(e.current).some(function(Nt){return(Nt==null?void 0:Nt.contains(ee))||ee===Nt})}),Tt=b(y,on,Xt,Mt),Be=b(y,ln,Et,pt),It=K.useState(I||!1),nn=(0,A.Z)(It,2),tt=nn[0],Je=nn[1],nt=u!=null?u:tt,Pt=(0,a.Z)(function(ee){u===void 0&&Je(ee)});(0,m.Z)(function(){Je(u||!1)},[u]);var st=K.useRef(nt);st.current=nt;var ze=K.useRef([]);ze.current=[];var Ne=(0,a.Z)(function(ee){var be;Pt(ee),((be=ze.current[ze.current.length-1])!==null&&be!==void 0?be:nt)!==ee&&(ze.current.push(ee),v==null||v(ee))}),ct=K.useRef(),Ft=function(){clearTimeout(ct.current)},dt=function(be){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ft(),wt===0?Ne(be):ct.current=setTimeout(function(){Ne(be)},wt*1e3)};K.useEffect(function(){return Ft},[]);var Rt=K.useState(!1),at=(0,A.Z)(Rt,2),Ue=at[0],Bt=at[1];(0,m.Z)(function(ee){(!ee||nt)&&Bt(!0)},[nt]);var hn=K.useState(null),cn=(0,A.Z)(hn,2),xt=cn[0],Cn=cn[1],Kt=K.useState(null),yn=(0,A.Z)(Kt,2),fn=yn[0],Lt=yn[1],Ze=function(be){Lt([be.clientX,be.clientY])},w=ge(nt,F,Se&&fn!==null?fn:Z,Ke,He,Ae,bn),R=(0,A.Z)(w,11),q=R[0],G=R[1],Ce=R[2],Xe=R[3],mt=R[4],ht=R[5],un=R[6],Sn=R[7],vn=R[8],Pn=R[9],jt=R[10],Ln=tn(sn,T,f,o),Vn=(0,A.Z)(Ln,2),xn=Vn[0],kt=Vn[1],dn=xn.has("click"),Ut=kt.has("click")||kt.has("contextMenu"),Zn=(0,a.Z)(function(){Ue||jt()}),Fn=function(){st.current&&Se&&Ut&&dt(!1)};Ye(nt,Z,F,Zn,Fn),(0,m.Z)(function(){Zn()},[fn,Ke]),(0,m.Z)(function(){nt&&!(He!=null&&He[Ke])&&Zn()},[JSON.stringify(Ae)]);var Wn=K.useMemo(function(){var ee=O(He,y,Pn,Se);return he()(ee,gt==null?void 0:gt(Pn))},[Pn,gt,He,y,Se]);K.useImperativeHandle(c,function(){return{nativeElement:J.current,popupElement:k.current,forceAlign:Zn}});var Dn=K.useState(0),Nn=(0,A.Z)(Dn,2),jn=Nn[0],Tn=Nn[1],Qn=K.useState(0),Mn=(0,A.Z)(Qn,2),nr=Mn[0],qn=Mn[1],Gn=function(){if(St&&Z){var be=Z.getBoundingClientRect();Tn(be.width),qn(be.height)}},rr=function(){Gn(),Zn()},er=function(be){Bt(!1),jt(),N==null||N(be)},tr=function(){return new Promise(function(be){Gn(),Cn(function(){return be})})};(0,m.Z)(function(){xt&&(jt(),xt(),Cn(null))},[xt]);function In(ee,be,wt,ot){vt[ee]=function(Nt){var Hn;ot==null||ot(Nt),dt(be,wt);for(var ar=arguments.length,sr=new Array(ar>1?ar-1:0),kn=1;kn<ar;kn++)sr[kn-1]=arguments[kn];(Hn=lt[ee])===null||Hn===void 0||Hn.call.apply(Hn,[lt,Nt].concat(sr))}}(dn||Ut)&&(vt.onClick=function(ee){var be;st.current&&Ut?dt(!1):!st.current&&dn&&(Ze(ee),dt(!0));for(var wt=arguments.length,ot=new Array(wt>1?wt-1:0),Nt=1;Nt<wt;Nt++)ot[Nt-1]=arguments[Nt];(be=lt.onClick)===null||be===void 0||be.call.apply(be,[lt,ee].concat(ot))});var $n=qe(nt,Ut,Z,F,Me,H,et,dt),Jn=xn.has("hover"),Zt=kt.has("hover"),Kn,_n;Jn&&(In("onMouseEnter",!0,W,function(ee){Ze(ee)}),In("onPointerEnter",!0,W,function(ee){Ze(ee)}),Kn=function(be){(nt||Ue)&&F!==null&&F!==void 0&&F.contains(be.target)&&dt(!0,W)},Se&&(vt.onMouseMove=function(ee){var be;(be=lt.onMouseMove)===null||be===void 0||be.call(lt,ee)})),Zt&&(In("onMouseLeave",!1,j),In("onPointerLeave",!1,j),_n=function(){dt(!1,j)}),xn.has("focus")&&In("onFocus",!0,de),kt.has("focus")&&In("onBlur",!1,ie),xn.has("contextMenu")&&(vt.onContextMenu=function(ee){var be;st.current&&kt.has("contextMenu")?dt(!1):(Ze(ee),dt(!0)),ee.preventDefault();for(var wt=arguments.length,ot=new Array(wt>1?wt-1:0),Nt=1;Nt<wt;Nt++)ot[Nt-1]=arguments[Nt];(be=lt.onContextMenu)===null||be===void 0||be.call.apply(be,[lt,ee].concat(ot))}),ft&&(vt.className=he()(lt.className,ft));var ve=(0,s.Z)((0,s.Z)({},lt),vt),De={},xe=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];xe.forEach(function(ee){Qt[ee]&&(De[ee]=function(){for(var be,wt=arguments.length,ot=new Array(wt),Nt=0;Nt<wt;Nt++)ot[Nt]=arguments[Nt];(be=ve[ee])===null||be===void 0||be.call.apply(be,[ve].concat(ot)),Qt[ee].apply(Qt,ot)})});var Pe=K.cloneElement(je,(0,s.Z)((0,s.Z)({},ve),De)),yt={x:ht,y:un},Wt=mn?(0,s.Z)({},mn!==!0?mn:{}):null;return K.createElement(K.Fragment,null,K.createElement(Y.Z,{disabled:!nt,ref:re,onResize:rr},K.createElement(en,{getTriggerDOMNode:Ot},Pe)),K.createElement($t.Provider,{value:h},K.createElement(Gt,{portal:r,ref:te,prefixCls:y,popup:rt,className:he()(ue,Wn),style:pe,target:Z,onMouseEnter:Kn,onMouseLeave:_n,onPointerEnter:Kn,zIndex:fe,open:nt,keepDom:Ue,fresh:At,onClick:Yt,onPointerDownCapture:$n,mask:Me,motion:Tt,maskMotion:Be,onVisibleChanged:er,onPrepare:tr,forceRender:ut,autoDestroy:Ve,getPopupContainer:Ie,align:Pn,arrow:Wt,arrowPos:yt,ready:q,offsetX:G,offsetY:Ce,offsetR:Xe,offsetB:mt,onAlign:Zn,stretch:St,targetWidth:jn/Sn,targetHeight:nr/vn})))});return l}var g=Dt(U.Z)},14455:function(Bn,_t,i){i.r(_t),i.d(_t,{default:function(){return T}});var s=i(59301),A=i(25690),_=i(29787),U={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"},L={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"},Y=({children:f,style:o={},title:u,type:I="default",tabBarContent:v,onTabBarClick:N})=>s.createElement("div",{className:`${L.styleWrapContainer} ${L[I]}`,style:o},s.createElement("div",{className:L.header},s.createElement("div",{className:L.title},u),I==="large"&&v,I==="default"&&s.createElement("div",{className:L.tabBarContainer},v.map((W,X)=>s.createElement("div",{key:X,onClick:()=>N?N(W.value):{}},s.createElement("span",null,s.createElement("i",{className:`iconfont ${W.icon}`})),s.createElement("span",null,W.label)))),I==="middle"&&s.createElement("div",{className:L.tabBarText},v)),f),Ee=i(82326),Oe=i(6767),a=i(37568),Ct=i(14809),m={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"},We=m,K=i(7657),pn=function(o,u){return s.createElement(K.Z,(0,Ct.Z)({},o,{ref:u,icon:We}))},wn=s.forwardRef(pn),qt=wn,rn=i(32026),Rn=i(346),an=Object.defineProperty,B=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,Ht=(f,o,u)=>o in f?an(f,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[o]=u,$t=(f,o)=>{for(var u in o||(o={}))le.call(o,u)&&Ht(f,u,o[u]);if(Gt)for(var u of Gt(o))en.call(o,u)&&Ht(f,u,o[u]);return f},zt=(f,o)=>B(f,gn(o));const{Option:tn}=Ee.default,M=s.createRef(),d=({loading:f,headerData:o,user:u,dispatch:I})=>{var v;const[N,W]=(0,s.useState)({status:!1,oldValue:"",newValue:""}),[X,j]=(0,s.useState)(!1),de=(0,s.useRef)(!0);(0,s.useEffect)(()=>{var Le;return(Le=u==null?void 0:u.userInfo)!=null&&Le.school_id&&(Ie(),j(!1),I({type:"engineeringNavigtion/getMajorList"})),()=>{I({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:rn.k[0],value:""}}),I({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:rn.k[1],value:""}})}},[(v=u==null?void 0:u.userInfo)==null?void 0:v.school_id]),(0,s.useEffect)(()=>{o.active[rn.k[0]]&&(I({type:"engineeringNavigtion/getYearList",payload:{id:o.active[rn.k[0]],firstEnter:de.current}}),de.current=!1),I({type:"engineeringNavigtion/setMajorOrYearDataSource",payload:{key:rn.k[1],value:[]}}),I({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:rn.k[1],value:""}})},[o.active[rn.k[0]]]),(0,s.useEffect)(()=>{I({type:"engineeringNavigtion/getTopPage"}),Ie()},[o.active[rn.k[1]]]);const ie=(Le,$e)=>{I({type:"engineeringNavigtion/setMajorOrYearActive",payload:{key:Le,value:$e}})},Me=()=>{W({status:!0,oldValue:o.name,newValue:o.name}),setTimeout(()=>{M&&M.current&&M.current.focus()},100)},we=Le=>{W(zt($t({},N),{newValue:Le}))},H=()=>{let Le=N.newValue.trim(),$e=N.oldValue.trim();if(!Le)return Oe.ZP.warning("\u8BF7\u586B\u5199\u540D\u79F0"),!1;Le!==$e?I({type:"engineeringNavigtion/putTopPageName",payload:{id:o.active[rn.k[1]],name:Le},callback:({status:rt,message:ue})=>{rt===0?(Oe.ZP.success("\u4FDD\u5B58\u6210\u529F"),I({type:"engineeringNavigtion/getTopPage"})):Oe.ZP.error(ue),Ie()}}):Ie()},Ie=()=>{W({status:!1,oldValue:"",newValue:""})},ut=()=>{var Le,$e,rt,ue,pe,Ke,Ge,He,Ae,fe;return s.createElement("div",{className:U.headerTabBarContainer},s.createElement("div",{className:U.userInfo},s.createElement("div",{className:U.img},X&&s.createElement(qt,null),!X&&s.createElement("img",{src:`${(Le=Rn.Z)==null?void 0:Le.IMG_SERVER}/images/${($e=u.userInfo)==null?void 0:$e.image_url}`,onError:()=>j(!0)})),s.createElement("div",{className:U.detail},s.createElement("div",null,(ue=(rt=u.userInfo)==null?void 0:rt.ec_user_info)==null?void 0:ue.user_name),s.createElement("div",null,(Ke=(pe=u.userInfo)==null?void 0:pe.ec_user_info)==null?void 0:Ke.user_type))),((He=(Ge=u.userInfo)==null?void 0:Ge.ec_user_info)==null?void 0:He.user_school)&&s.createElement(s.Fragment,null,s.createElement("div",{className:U.space}),s.createElement("div",{className:U.school},s.createElement("div",null,s.createElement("i",{className:"iconfont icon-daxue"})),s.createElement("div",null,(fe=(Ae=u.userInfo)==null?void 0:Ae.ec_user_info)==null?void 0:fe.user_school))))};return s.createElement(Y,{title:o.title,type:"large",tabBarContent:ut()},s.createElement("div",{className:U.headerContainer},s.createElement("div",{className:U.listItemWrap},Object.entries(o.dataSource).map(([Le,$e])=>s.createElement("div",{key:Le,className:U.listItem},s.createElement("span",null,Le),s.createElement(Ee.default,{style:{width:$e.width},value:o.active[Le]||void 0,bordered:!1,placeholder:$e.placeholder,loading:f.effects[$e.loading],onChange:rt=>ie(Le,rt)},$e.dataList.map(rt=>s.createElement(tn,{key:rt.value,value:rt.value},rt.label)))))),o.name&&s.createElement("div",{className:U.nameContainer},!N.status&&s.createElement(s.Fragment,null,s.createElement("span",null,o.name),s.createElement("span",{onClick:Me},s.createElement("i",{className:"iconfont icon-bianji7"}))),N.status&&s.createElement(s.Fragment,null,s.createElement(a.default,{ref:M,value:N.newValue,style:{width:280,marginRight:15,height:38},onChange:Le=>we(Le.target.value)}),s.createElement("div",{className:U.iconWrap},s.createElement("span",{onClick:H},s.createElement("i",{className:"iconfont icon-baocun1"})),s.createElement("span",{onClick:Ie},s.createElement("i",{className:"iconfont icon-quxiao"})))))))};var O=(0,A.connect)(({user:f,loading:o,engineeringNavigtion:u})=>$t({user:f,loading:o},u))(d),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"},x=i(584),ae=Object.defineProperty,S=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,se=(f,o,u)=>o in f?ae(f,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[o]=u,ye=(f,o)=>{for(var u in o||(o={}))oe.call(o,u)&&se(f,u,o[u]);if(S)for(var u of S(o))Te.call(o,u)&&se(f,u,o[u]);return f};const Re=({appraiseData:f,teamData:o,active:u})=>s.createElement("div",{className:b.cardListContainer},s.createElement("div",{className:b.left},Object.entries(f).map(([I,v],N)=>s.createElement(Y,{key:I,title:v.title,tabBarContent:v.tabBarContent,style:{marginBottom:N===1?0:20,height:350},onTabBarClick:W=>{const X=u.\u8BA4\u8BC1\u5C4A\u522B?`${W}?ec_major_school_id=${u.\u8BA4\u8BC1\u4E13\u4E1A}&ec_year_id=${u.\u8BA4\u8BC1\u5C4A\u522B}`:W;A.history.push(X)}},s.createElement("div",{className:b.leftList},s.createElement("div",{className:b.resultWrap},s.createElement("div",{className:`${b.reusltContainer} ${v.result==="\u8FBE\u6210"?b.success:""}`},s.createElement("div",{className:b.spheric},s.createElement("div",null,v.result),s.createElement("div",null,"\u8BC4\u4EF7\u7ED3\u679C")))),s.createElement("div",{className:b.listItemWrap},v.listData.map((W,X)=>s.createElement("div",{className:b.listItem,key:X},s.createElement("span",{style:{background:W.backgroundColor,color:W.textColor}},s.createElement("i",{className:`iconfont ${W.icon}`})),s.createElement("div",{className:b.content},s.createElement("div",{className:b.label},W.label),s.createElement("div",{className:b.total},s.createElement("span",null,W.value),s.createElement("span",null,W.unit)))))))))),s.createElement("div",{className:b.right},Object.entries(o).map(([I,v],N)=>s.createElement(Y,{type:"middle",key:I,title:v.title,tabBarContent:v.tabBarContent,style:{marginBottom:N===1?0:20,height:350}},s.createElement("div",{className:b.rightList},v.listData.length===0&&s.createElement("div",{className:b.emptyContaioner},s.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE})),v.listData.length>0&&v.listData.map((W,X)=>s.createElement("div",{key:X,className:b.listItem},W)))))));var _e=(0,A.connect)(({user:f,engineeringNavigtion:o})=>ye(ye({user:f},o.headerData),o.cardListData))(Re),ce={totalListContainer:"totalListContainer___GwKjh",listItem:"listItem___Gj5yg",total:"total___DzDtA",icon:"icon___YtvQo"},ge=Object.defineProperty,it=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,qe=(f,o,u)=>o in f?ge(f,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[o]=u,Jt=(f,o)=>{for(var u in o||(o={}))Ye.call(o,u)&&qe(f,u,o[u]);if(it)for(var u of it(o))ke.call(o,u)&&qe(f,u,o[u]);return f};const Dt=({totalListData:f})=>s.createElement("div",{className:ce.totalListContainer},f.map(o=>s.createElement(Y,{key:o.title,title:o.title,tabBarContent:null,type:"small",style:{width:"calc((100% - 40px) / 3)",height:160}},s.createElement("div",{className:ce.listItem},s.createElement("div",{className:ce.total},s.createElement("span",null,o.value),"\u4EBA"),s.createElement("div",{className:ce.icon,style:{backgroundColor:o.backgroundColor}},s.createElement("i",{className:`iconfont ${o.icon}`,style:{color:o.textColor}}))))));var g=(0,A.connect)(({engineeringNavigtion:f})=>Jt({},f))(Dt),r={navigationHomeContainer:"navigationHomeContainer___fTEXn"},l=Object.defineProperty,n=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,y=(f,o,u)=>o in f?l(f,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[o]=u,E=(f,o)=>{for(var u in o||(o={}))c.call(o,u)&&y(f,u,o[u]);if(n)for(var u of n(o))p.call(o,u)&&y(f,u,o[u]);return f};const z=({loading:f})=>s.createElement(_.Z,{spinning:f.effects["engineeringNavigtion/getTopPage"]},s.createElement("div",{className:r.navigationHomeContainer},s.createElement(O,null),s.createElement(_e,null),s.createElement(g,null)));var T=(0,A.connect)(({loading:f,engineeringNavigtion:o})=>E({loading:f},o))(z)},66003:function(Bn,_t,i){i.d(_t,{Z:function(){return Y}});var s=i(62646),A=i(20439),_=i(93664),U=i(59301),L=["show"];function he(Ee,Oe){if(!Oe.max)return!0;var a=Oe.strategy(Ee);return a<=Oe.max}function Y(Ee,Oe){return U.useMemo(function(){var a={};Oe&&(a.show=(0,_.Z)(Oe)==="object"&&Oe.formatter?Oe.formatter:!!Oe),a=(0,A.Z)((0,A.Z)({},a),Ee);var Ct=a,m=Ct.show,We=(0,s.Z)(Ct,L);return(0,A.Z)((0,A.Z)({},We),{},{show:!!m,showFormatter:typeof m=="function"?m:void 0,strategy:We.strategy||function(K){return K.length}})},[Ee,Oe])}},36901:function(Bn,_t,i){i.r(_t),i.d(_t,{BaseInput:function(){return a},default:function(){return an}});var s=i(20439),A=i(14809),_=i(4635),U=i(93664),L=i(92310),he=i.n(L),Y=i(59301),Ee=i(30292),Oe=Y.forwardRef(function(B,gn){var Gt,le,en,Ht=B.inputElement,$t=B.children,zt=B.prefixCls,tn=B.prefix,M=B.suffix,d=B.addonBefore,O=B.addonAfter,b=B.className,x=B.style,ae=B.disabled,S=B.readOnly,oe=B.focused,Te=B.triggerFocus,se=B.allowClear,ye=B.value,Re=B.handleReset,_e=B.hidden,ce=B.classes,ge=B.classNames,it=B.dataAttrs,Ye=B.styles,ke=B.components,qe=B.onClear,Jt=$t!=null?$t:Ht,Dt=(ke==null?void 0:ke.affixWrapper)||"span",g=(ke==null?void 0:ke.groupWrapper)||"span",r=(ke==null?void 0:ke.wrapper)||"span",l=(ke==null?void 0:ke.groupAddon)||"span",n=(0,Y.useRef)(null),c=function(Me){var we;(we=n.current)!==null&&we!==void 0&&we.contains(Me.target)&&(Te==null||Te())},p=(0,Ee.X3)(B),y=(0,Y.cloneElement)(Jt,{value:ye,className:he()((Gt=Jt.props)===null||Gt===void 0?void 0:Gt.className,!p&&(ge==null?void 0:ge.variant))||null}),E=(0,Y.useRef)(null);if(Y.useImperativeHandle(gn,function(){return{nativeElement:E.current||n.current}}),p){var z=null;if(se){var T=!ae&&!S&&ye,f="".concat(zt,"-clear-icon"),o=(0,U.Z)(se)==="object"&&se!==null&&se!==void 0&&se.clearIcon?se.clearIcon:"\u2716";z=Y.createElement("button",{type:"button",tabIndex:-1,onClick:function(Me){Re==null||Re(Me),qe==null||qe()},onMouseDown:function(Me){return Me.preventDefault()},className:he()(f,(0,_.Z)((0,_.Z)({},"".concat(f,"-hidden"),!T),"".concat(f,"-has-suffix"),!!M))},o)}var u="".concat(zt,"-affix-wrapper"),I=he()(u,(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(zt,"-disabled"),ae),"".concat(u,"-disabled"),ae),"".concat(u,"-focused"),oe),"".concat(u,"-readonly"),S),"".concat(u,"-input-with-clear-btn"),M&&se&&ye),ce==null?void 0:ce.affixWrapper,ge==null?void 0:ge.affixWrapper,ge==null?void 0:ge.variant),v=(M||se)&&Y.createElement("span",{className:he()("".concat(zt,"-suffix"),ge==null?void 0:ge.suffix),style:Ye==null?void 0:Ye.suffix},z,M);y=Y.createElement(Dt,(0,A.Z)({className:I,style:Ye==null?void 0:Ye.affixWrapper,onClick:c},it==null?void 0:it.affixWrapper,{ref:n}),tn&&Y.createElement("span",{className:he()("".concat(zt,"-prefix"),ge==null?void 0:ge.prefix),style:Ye==null?void 0:Ye.prefix},tn),y,v)}if((0,Ee.He)(B)){var N="".concat(zt,"-group"),W="".concat(N,"-addon"),X="".concat(N,"-wrapper"),j=he()("".concat(zt,"-wrapper"),N,ce==null?void 0:ce.wrapper,ge==null?void 0:ge.wrapper),de=he()(X,(0,_.Z)({},"".concat(X,"-disabled"),ae),ce==null?void 0:ce.group,ge==null?void 0:ge.groupWrapper);y=Y.createElement(g,{className:de,ref:E},Y.createElement(r,{className:j},d&&Y.createElement(l,{className:W},d),y,O&&Y.createElement(l,{className:W},O)))}return Y.cloneElement(y,{className:he()((le=y.props)===null||le===void 0?void 0:le.className,b)||null,style:(0,s.Z)((0,s.Z)({},(en=y.props)===null||en===void 0?void 0:en.style),x),hidden:_e})}),a=Oe,Ct=i(95190),m=i(50298),We=i(62646),K=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"],rn=(0,Y.forwardRef)(function(B,gn){var Gt=B.autoComplete,le=B.onChange,en=B.onFocus,Ht=B.onBlur,$t=B.onPressEnter,zt=B.onKeyDown,tn=B.onKeyUp,M=B.prefixCls,d=M===void 0?"rc-input":M,O=B.disabled,b=B.htmlSize,x=B.className,ae=B.maxLength,S=B.suffix,oe=B.showCount,Te=B.count,se=B.type,ye=se===void 0?"text":se,Re=B.classes,_e=B.classNames,ce=B.styles,ge=B.onCompositionStart,it=B.onCompositionEnd,Ye=(0,We.Z)(B,qt),ke=(0,Y.useState)(!1),qe=(0,m.Z)(ke,2),Jt=qe[0],Dt=qe[1],g=(0,Y.useRef)(!1),r=(0,Y.useRef)(!1),l=(0,Y.useRef)(null),n=(0,Y.useRef)(null),c=function(pe){l.current&&(0,Ee.nH)(l.current,pe)},p=(0,K.Z)(B.defaultValue,{value:B.value}),y=(0,m.Z)(p,2),E=y[0],z=y[1],T=E==null?"":String(E),f=(0,Y.useState)(null),o=(0,m.Z)(f,2),u=o[0],I=o[1],v=(0,wn.Z)(Te,oe),N=v.max||ae,W=v.strategy(T),X=!!N&&W>N;(0,Y.useImperativeHandle)(gn,function(){var ue;return{focus:c,blur:function(){var Ke;(Ke=l.current)===null||Ke===void 0||Ke.blur()},setSelectionRange:function(Ke,Ge,He){var Ae;(Ae=l.current)===null||Ae===void 0||Ae.setSelectionRange(Ke,Ge,He)},select:function(){var Ke;(Ke=l.current)===null||Ke===void 0||Ke.select()},input:l.current,nativeElement:((ue=n.current)===null||ue===void 0?void 0:ue.nativeElement)||l.current}}),(0,Y.useEffect)(function(){r.current&&(r.current=!1),Dt(function(ue){return ue&&O?!1:ue})},[O]);var j=function(pe,Ke,Ge){var He=Ke;if(!g.current&&v.exceedFormatter&&v.max&&v.strategy(Ke)>v.max){if(He=v.exceedFormatter(Ke,{max:v.max}),Ke!==He){var Ae,fe;I([((Ae=l.current)===null||Ae===void 0?void 0:Ae.selectionStart)||0,((fe=l.current)===null||fe===void 0?void 0:fe.selectionEnd)||0])}}else if(Ge.source==="compositionEnd")return;z(He),l.current&&(0,Ee.rJ)(l.current,pe,le,He)};(0,Y.useEffect)(function(){if(u){var ue;(ue=l.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,(0,Ct.Z)(u))}},[u]);var de=function(pe){j(pe,pe.target.value,{source:"change"})},ie=function(pe){g.current=!1,j(pe,pe.currentTarget.value,{source:"compositionEnd"}),it==null||it(pe)},Me=function(pe){$t&&pe.key==="Enter"&&!r.current&&(r.current=!0,$t(pe)),zt==null||zt(pe)},we=function(pe){pe.key==="Enter"&&(r.current=!1),tn==null||tn(pe)},H=function(pe){Dt(!0),en==null||en(pe)},Ie=function(pe){r.current&&(r.current=!1),Dt(!1),Ht==null||Ht(pe)},ut=function(pe){z(""),c(),l.current&&(0,Ee.rJ)(l.current,pe,le)},Le=X&&"".concat(d,"-out-of-range"),$e=function(){var pe=(0,pn.Z)(B,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Y.createElement("input",(0,A.Z)({autoComplete:Gt},pe,{onChange:de,onFocus:H,onBlur:Ie,onKeyDown:Me,onKeyUp:we,className:he()(d,(0,_.Z)({},"".concat(d,"-disabled"),O),_e==null?void 0:_e.input),style:ce==null?void 0:ce.input,ref:l,size:b,type:ye,onCompositionStart:function(Ge){g.current=!0,ge==null||ge(Ge)},onCompositionEnd:ie}))},rt=function(){var pe=Number(N)>0;if(S||v.show){var Ke=v.showFormatter?v.showFormatter({value:T,count:W,maxLength:N}):"".concat(W).concat(pe?" / ".concat(N):"");return Y.createElement(Y.Fragment,null,v.show&&Y.createElement("span",{className:he()("".concat(d,"-show-count-suffix"),(0,_.Z)({},"".concat(d,"-show-count-has-suffix"),!!S),_e==null?void 0:_e.count),style:(0,s.Z)({},ce==null?void 0:ce.count)},Ke),S)}return null};return Y.createElement(a,(0,A.Z)({},Ye,{prefixCls:d,className:he()(x,Le),handleReset:ut,value:T,focused:Jt,triggerFocus:c,suffix:rt(),disabled:O,classes:Re,classNames:_e,styles:ce}),$e())}),Rn=rn,an=Rn},30292:function(Bn,_t,i){i.d(_t,{He:function(){return s},X3:function(){return A},nH:function(){return L},rJ:function(){return U}});function s(he){return!!(he.addonBefore||he.addonAfter)}function A(he){return!!(he.prefix||he.suffix||he.allowClear)}function _(he,Y,Ee){var Oe=Y.cloneNode(!0),a=Object.create(he,{target:{value:Oe},currentTarget:{value:Oe}});return Oe.value=Ee,typeof Y.selectionStart=="number"&&typeof Y.selectionEnd=="number"&&(Oe.selectionStart=Y.selectionStart,Oe.selectionEnd=Y.selectionEnd),Oe.setSelectionRange=function(){Y.setSelectionRange.apply(Y,arguments)},a}function U(he,Y,Ee,Oe){if(Ee){var a=Y;if(Y.type==="click"){a=_(Y,he,""),Ee(a);return}if(he.type!=="file"&&Oe!==void 0){a=_(Y,he,Oe),Ee(a);return}Ee(a)}}function L(he,Y){if(he){he.focus(Y);var Ee=Y||{},Oe=Ee.cursor;if(Oe){var a=he.value.length;switch(Oe){case"start":he.setSelectionRange(0,0);break;case"end":he.setSelectionRange(a,a);break;default:he.setSelectionRange(0,a)}}}}},11780:function(Bn,_t,i){i.d(_t,{Z:function(){return ae}});var s=i(14809),A=i(20439),_=i(50298),U=i(62646),L=i(59301),he=i(92310),Y=i.n(he),Ee=i(29301),Oe=i(34280),a=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ct=void 0;function m(S,oe){var Te=S.prefixCls,se=S.invalidate,ye=S.item,Re=S.renderItem,_e=S.responsive,ce=S.responsiveDisabled,ge=S.registerSize,it=S.itemKey,Ye=S.className,ke=S.style,qe=S.children,Jt=S.display,Dt=S.order,g=S.component,r=g===void 0?"div":g,l=(0,U.Z)(S,a),n=_e&&!Jt;function c(T){ge(it,T)}L.useEffect(function(){return function(){c(null)}},[]);var p=Re&&ye!==Ct?Re(ye,{index:Dt}):qe,y;se||(y={opacity:n?0:1,height:n?0:Ct,overflowY:n?"hidden":Ct,order:_e?Dt:Ct,pointerEvents:n?"none":Ct,position:n?"absolute":Ct});var E={};n&&(E["aria-hidden"]=!0);var z=L.createElement(r,(0,s.Z)({className:Y()(!se&&Te,Ye),style:(0,A.Z)((0,A.Z)({},y),ke)},E,l,{ref:oe}),p);return _e&&(z=L.createElement(Ee.Z,{onResize:function(f){var o=f.offsetWidth;c(o)},disabled:ce},z)),z}var We=L.forwardRef(m);We.displayName="Item";var K=We,pn=i(6089),wn=i(4676),qt=i(16089);function rn(S){if(typeof MessageChannel=="undefined")(0,qt.Z)(S);else{var oe=new MessageChannel;oe.port1.onmessage=function(){return S()},oe.port2.postMessage(void 0)}}function Rn(){var S=L.useRef(null),oe=function(se){S.current||(S.current=[],rn(function(){(0,wn.unstable_batchedUpdates)(function(){S.current.forEach(function(ye){ye()}),S.current=null})})),S.current.push(se)};return oe}function an(S,oe){var Te=L.useState(oe),se=(0,_.Z)(Te,2),ye=se[0],Re=se[1],_e=(0,pn.Z)(function(ce){S(function(){Re(ce)})});return[ye,_e]}var B=L.createContext(null),gn=["component"],Gt=["className"],le=["className"],en=function(oe,Te){var se=L.useContext(B);if(!se){var ye=oe.component,Re=ye===void 0?"div":ye,_e=(0,U.Z)(oe,gn);return L.createElement(Re,(0,s.Z)({},_e,{ref:Te}))}var ce=se.className,ge=(0,U.Z)(se,Gt),it=oe.className,Ye=(0,U.Z)(oe,le);return L.createElement(B.Provider,{value:null},L.createElement(K,(0,s.Z)({ref:Te,className:Y()(ce,it)},ge,Ye)))},Ht=L.forwardRef(en);Ht.displayName="RawItem";var $t=Ht,zt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],tn="responsive",M="invalidate";function d(S){return"+ ".concat(S.length," ...")}function O(S,oe){var Te=S.prefixCls,se=Te===void 0?"rc-overflow":Te,ye=S.data,Re=ye===void 0?[]:ye,_e=S.renderItem,ce=S.renderRawItem,ge=S.itemKey,it=S.itemWidth,Ye=it===void 0?10:it,ke=S.ssr,qe=S.style,Jt=S.className,Dt=S.maxCount,g=S.renderRest,r=S.renderRawRest,l=S.suffix,n=S.component,c=n===void 0?"div":n,p=S.itemComponent,y=S.onVisibleChange,E=(0,U.Z)(S,zt),z=ke==="full",T=Rn(),f=an(T,null),o=(0,_.Z)(f,2),u=o[0],I=o[1],v=u||0,N=an(T,new Map),W=(0,_.Z)(N,2),X=W[0],j=W[1],de=an(T,0),ie=(0,_.Z)(de,2),Me=ie[0],we=ie[1],H=an(T,0),Ie=(0,_.Z)(H,2),ut=Ie[0],Le=Ie[1],$e=an(T,0),rt=(0,_.Z)($e,2),ue=rt[0],pe=rt[1],Ke=(0,L.useState)(null),Ge=(0,_.Z)(Ke,2),He=Ge[0],Ae=Ge[1],fe=(0,L.useState)(null),St=(0,_.Z)(fe,2),gt=St[0],At=St[1],Se=L.useMemo(function(){return gt===null&&z?Number.MAX_SAFE_INTEGER:gt||0},[gt,u]),Yt=(0,L.useState)(!1),bn=(0,_.Z)(Yt,2),mn=bn[0],on=bn[1],ln="".concat(se,"-item"),Mt=Math.max(Me,ut),Xt=Dt===tn,pt=Re.length&&Xt,Et=Dt===M,ft=pt||typeof Dt=="number"&&Re.length>Dt,Ot=(0,L.useMemo)(function(){var $=Re;return pt?u===null&&z?$=Re:$=Re.slice(0,Math.min(Re.length,v/Ye)):typeof Dt=="number"&&($=Re.slice(0,Dt)),$},[Re,Ye,u,Dt,pt]),Qt=(0,L.useMemo)(function(){return pt?Re.slice(Se+1):Re.slice(Ot.length)},[Re,Ot,pt,Se]),Ve=(0,L.useCallback)(function($,Z){var ne;return typeof ge=="function"?ge($):(ne=ge&&($==null?void 0:$[ge]))!==null&&ne!==void 0?ne:Z},[ge]),Fe=(0,L.useCallback)(_e||function($){return $},[_e]);function Vt($,Z,ne){gt===$&&(Z===void 0||Z===He)||(At($),ne||(on($<Re.length-1),y==null||y($)),Z!==void 0&&Ae(Z))}function sn($,Z){I(Z.clientWidth)}function t($,Z){j(function(ne){var J=new Map(ne);return Z===null?J.delete($):J.set($,Z),J})}function e($,Z){Le(Z),we(ut)}function C($,Z){pe(Z)}function h($){return X.get(Ve(Ot[$],$))}(0,Oe.Z)(function(){if(v&&typeof Mt=="number"&&Ot){var $=ue,Z=Ot.length,ne=Z-1;if(!Z){Vt(0,null);return}for(var J=0;J<Z;J+=1){var re=h(J);if(z&&(re=re||0),re===void 0){Vt(J-1,void 0,!0);break}if($+=re,ne===0&&$<=v||J===ne-1&&$+h(ne)<=v){Vt(ne,null);break}else if($+Mt>v){Vt(J-1,$-re-ue+ut);break}}l&&h(0)+ue>v&&Ae(null)}},[v,X,ut,ue,Ve,Ot]);var P=mn&&!!Qt.length,D={};He!==null&&pt&&(D={position:"absolute",left:He,top:0});var V={prefixCls:ln,responsive:pt,component:p,invalidate:Et},F=ce?function($,Z){var ne=Ve($,Z);return L.createElement(B.Provider,{key:ne,value:(0,A.Z)((0,A.Z)({},V),{},{order:Z,item:$,itemKey:ne,registerSize:t,display:Z<=Se})},ce($,Z))}:function($,Z){var ne=Ve($,Z);return L.createElement(K,(0,s.Z)({},V,{order:Z,key:ne,item:$,renderItem:Fe,itemKey:ne,registerSize:t,display:Z<=Se}))},Q={order:P?Se:Number.MAX_SAFE_INTEGER,className:"".concat(ln,"-rest"),registerSize:e,display:P},k=g||d,te=r?L.createElement(B.Provider,{value:(0,A.Z)((0,A.Z)({},V),Q)},r(Qt)):L.createElement(K,(0,s.Z)({},V,Q),typeof k=="function"?k(Qt):k),me=L.createElement(c,(0,s.Z)({className:Y()(!Et&&se,Jt),style:qe,ref:oe},E),Ot.map(F),ft?te:null,l&&L.createElement(K,(0,s.Z)({},V,{responsive:Xt,responsiveDisabled:!pt,order:Se,className:"".concat(ln,"-suffix"),registerSize:C,display:!0,style:D}),l));return Xt?L.createElement(Ee.Z,{onResize:sn,disabled:!pt},me):me}var b=L.forwardRef(O);b.displayName="Overflow",b.Item=$t,b.RESPONSIVE=tn,b.INVALIDATE=M;var x=b,ae=x},29301:function(Bn,_t,i){i.d(_t,{Z:function(){return M}});var s=i(14809),A=i(59301),_=i(11592),U=i(48736),L=i(20439),he=i(93664),Y=i(76846),Ee=i(8654),Oe=A.createContext(null);function a(d){var O=d.children,b=d.onBatchResize,x=A.useRef(0),ae=A.useRef([]),S=A.useContext(Oe),oe=A.useCallback(function(Te,se,ye){x.current+=1;var Re=x.current;ae.current.push({size:Te,element:se,data:ye}),Promise.resolve().then(function(){Re===x.current&&(b==null||b(ae.current),ae.current=[])}),S==null||S(Te,se,ye)},[b,S]);return A.createElement(Oe.Provider,{value:oe},O)}var Ct=i(76374),m=new Map;function We(d){d.forEach(function(O){var b,x=O.target;(b=m.get(x))===null||b===void 0||b.forEach(function(ae){return ae(x)})})}var K=new Ct.Z(We),pn=null,wn=null;function qt(d,O){m.has(d)||(m.set(d,new Set),K.observe(d)),m.get(d).add(O)}function rn(d,O){m.has(d)&&(m.get(d).delete(O),m.get(d).size||(K.unobserve(d),m.delete(d)))}var Rn=i(99153),an=i(84851),B=i(19257),gn=i(93046),Gt=function(d){(0,B.Z)(b,d);var O=(0,gn.Z)(b);function b(){return(0,Rn.Z)(this,b),O.apply(this,arguments)}return(0,an.Z)(b,[{key:"render",value:function(){return this.props.children}}]),b}(A.Component);function le(d,O){var b=d.children,x=d.disabled,ae=A.useRef(null),S=A.useRef(null),oe=A.useContext(Oe),Te=typeof b=="function",se=Te?b(ae):b,ye=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Re=!Te&&A.isValidElement(se)&&(0,Ee.Yr)(se),_e=Re?(0,Ee.C4)(se):null,ce=(0,Ee.x1)(_e,ae),ge=function(){var qe;return(0,Y.ZP)(ae.current)||(ae.current&&(0,he.Z)(ae.current)==="object"?(0,Y.ZP)((qe=ae.current)===null||qe===void 0?void 0:qe.nativeElement):null)||(0,Y.ZP)(S.current)};A.useImperativeHandle(O,function(){return ge()});var it=A.useRef(d);it.current=d;var Ye=A.useCallback(function(ke){var qe=it.current,Jt=qe.onResize,Dt=qe.data,g=ke.getBoundingClientRect(),r=g.width,l=g.height,n=ke.offsetWidth,c=ke.offsetHeight,p=Math.floor(r),y=Math.floor(l);if(ye.current.width!==p||ye.current.height!==y||ye.current.offsetWidth!==n||ye.current.offsetHeight!==c){var E={width:p,height:y,offsetWidth:n,offsetHeight:c};ye.current=E;var z=n===Math.round(r)?r:n,T=c===Math.round(l)?l:c,f=(0,L.Z)((0,L.Z)({},E),{},{offsetWidth:z,offsetHeight:T});oe==null||oe(f,ke,Dt),Jt&&Promise.resolve().then(function(){Jt(f,ke)})}},[]);return A.useEffect(function(){var ke=ge();return ke&&!x&&qt(ke,Ye),function(){return rn(ke,Ye)}},[ae.current,x]),A.createElement(Gt,{ref:S},Re?A.cloneElement(se,{ref:ce}):se)}var en=A.forwardRef(le),Ht=en,$t="rc-observer-key";function zt(d,O){var b=d.children,x=typeof b=="function"?[b]:(0,_.Z)(b);return x.map(function(ae,S){var oe=(ae==null?void 0:ae.key)||"".concat($t,"-").concat(S);return A.createElement(Ht,(0,s.Z)({},d,{key:oe,ref:S===0?O:void 0}),ae)})}var tn=A.forwardRef(zt);tn.Collection=a;var M=tn},6551:function(Bn,_t,i){i.d(_t,{ZP:function(){return Y}});var s=i(50298),A=i(59301),_=i(47273),U=0,L=(0,_.Z)();function he(){var Ee;return L?(Ee=U,U+=1):Ee="TEST_OR_SSR",Ee}function Y(Ee){var Oe=A.useState(),a=(0,s.Z)(Oe,2),Ct=a[0],m=a[1];return A.useEffect(function(){m("rc_select_".concat(he()))},[]),Ee||Ct}},37463:function(Bn,_t,i){i.d(_t,{Ac:function(){return ie},Xo:function(){return we},Wx:function(){return Ie},ZP:function(){return sn},lk:function(){return an}});var s=i(14809),A=i(95190),_=i(4635),U=i(20439),L=i(50298),he=i(62646),Y=i(93664),Ee=i(18929),Oe=i(48736),a=i(59301),Ct=i(92310),m=i.n(Ct),We=i(34280),K=i(49658),pn=i(8654),wn=function(e){var C=e.className,h=e.customizeIcon,P=e.customizeIconProps,D=e.children,V=e.onMouseDown,F=e.onClick,Q=typeof h=="function"?h(P):h;return a.createElement("span",{className:C,onMouseDown:function(te){te.preventDefault(),V==null||V(te)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:F,"aria-hidden":!0},Q!==void 0?Q:a.createElement("span",{className:m()(C.split(/\s+/).map(function(k){return"".concat(k,"-icon")}))},D))},qt=wn,rn=function(e,C,h,P,D){var V=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,F=arguments.length>6?arguments[6]:void 0,Q=arguments.length>7?arguments[7]:void 0,k=a.useMemo(function(){if((0,Y.Z)(P)==="object")return P.clearIcon;if(D)return D},[P,D]),te=a.useMemo(function(){return!!(!V&&P&&(h.length||F)&&!(Q==="combobox"&&F===""))},[P,V,h.length,F,Q]);return{allowClear:te,clearIcon:a.createElement(qt,{className:"".concat(e,"-clear"),onMouseDown:C,customizeIcon:k},"\xD7")}},Rn=a.createContext(null);function an(){return a.useContext(Rn)}function B(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=a.useState(!1),C=(0,L.Z)(e,2),h=C[0],P=C[1],D=a.useRef(null),V=function(){window.clearTimeout(D.current)};a.useEffect(function(){return V},[]);var F=function(k,te){V(),D.current=window.setTimeout(function(){P(k),te&&te()},t)};return[h,F,V]}function gn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=a.useRef(null),C=a.useRef(null);a.useEffect(function(){return function(){window.clearTimeout(C.current)}},[]);function h(P){(P||e.current===null)&&(e.current=P),window.clearTimeout(C.current),C.current=window.setTimeout(function(){e.current=null},t)}return[function(){return e.current},h]}function Gt(t,e,C,h){var P=a.useRef(null);P.current={open:e,triggerOpen:C,customizedTrigger:h},a.useEffect(function(){function D(V){var F;if(!((F=P.current)!==null&&F!==void 0&&F.customizedTrigger)){var Q=V.target;Q.shadowRoot&&V.composed&&(Q=V.composedPath()[0]||Q),P.current.open&&t().filter(function(k){return k}).every(function(k){return!k.contains(Q)&&k!==Q})&&P.current.triggerOpen(!1)}}return window.addEventListener("mousedown",D),function(){return window.removeEventListener("mousedown",D)}},[])}var le=i(10228);function en(t){return t&&![le.Z.ESC,le.Z.SHIFT,le.Z.BACKSPACE,le.Z.TAB,le.Z.WIN_KEY,le.Z.ALT,le.Z.META,le.Z.WIN_KEY_RIGHT,le.Z.CTRL,le.Z.SEMICOLON,le.Z.EQUALS,le.Z.CAPS_LOCK,le.Z.CONTEXT_MENU,le.Z.F1,le.Z.F2,le.Z.F3,le.Z.F4,le.Z.F5,le.Z.F6,le.Z.F7,le.Z.F8,le.Z.F9,le.Z.F10,le.Z.F11,le.Z.F12].includes(t)}var Ht=i(26112),$t=i(11780);function zt(t,e,C){var h=(0,U.Z)((0,U.Z)({},t),C?e:{});return Object.keys(e).forEach(function(P){var D=e[P];typeof D=="function"&&(h[P]=function(){for(var V,F=arguments.length,Q=new Array(F),k=0;k<F;k++)Q[k]=arguments[k];return D.apply(void 0,Q),(V=t[P])===null||V===void 0?void 0:V.call.apply(V,[t].concat(Q))})}),h}var tn=zt,M=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],d=function(e,C){var h=e.prefixCls,P=e.id,D=e.inputElement,V=e.autoFocus,F=e.autoComplete,Q=e.editable,k=e.activeDescendantId,te=e.value,me=e.open,$=e.attrs,Z=(0,he.Z)(e,M),ne=D||a.createElement("input",null),J=ne,re=J.ref,je=J.props;return(0,Oe.Kp)(!("maxLength"in ne.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ne=a.cloneElement(ne,(0,U.Z)((0,U.Z)((0,U.Z)({type:"search"},tn(Z,je,!0)),{},{id:P,ref:(0,pn.sQ)(C,re),autoComplete:F||"off",autoFocus:V,className:m()("".concat(h,"-selection-search-input"),je==null?void 0:je.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?k:void 0},$),{},{value:Q?te:"",readOnly:!Q,unselectable:Q?null:"on",style:(0,U.Z)((0,U.Z)({},je.style),{},{opacity:Q?null:0})})),ne},O=a.forwardRef(d),b=O;function x(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}var ae=typeof window!="undefined"&&window.document&&window.document.documentElement,S=ae;function oe(t){return t!=null}function Te(t){return!t&&t!==0}function se(t){return["string","number"].includes((0,Y.Z)(t))}function ye(t){var e=void 0;return t&&(se(t.title)?e=t.title.toString():se(t.label)&&(e=t.label.toString())),e}function Re(t,e){S?a.useLayoutEffect(t,e):a.useEffect(t,e)}function _e(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}var ce=function(e){e.preventDefault(),e.stopPropagation()},ge=function(e){var C=e.id,h=e.prefixCls,P=e.values,D=e.open,V=e.searchValue,F=e.autoClearSearchValue,Q=e.inputRef,k=e.placeholder,te=e.disabled,me=e.mode,$=e.showSearch,Z=e.autoFocus,ne=e.autoComplete,J=e.activeDescendantId,re=e.tabIndex,je=e.removeIcon,lt=e.maxTagCount,vt=e.maxTagTextLength,et=e.maxTagPlaceholder,Tt=et===void 0?function(q){return"+ ".concat(q.length," ...")}:et,Be=e.tagRender,It=e.onToggleOpen,nn=e.onRemove,tt=e.onInputChange,Je=e.onInputPaste,nt=e.onInputKeyDown,Pt=e.onInputMouseDown,st=e.onInputCompositionStart,ze=e.onInputCompositionEnd,Ne=e.onInputBlur,ct=a.useRef(null),Ft=(0,a.useState)(0),dt=(0,L.Z)(Ft,2),Rt=dt[0],at=dt[1],Ue=(0,a.useState)(!1),Bt=(0,L.Z)(Ue,2),hn=Bt[0],cn=Bt[1],xt="".concat(h,"-selection"),Cn=D||me==="multiple"&&F===!1||me==="tags"?V:"",Kt=me==="tags"||me==="multiple"&&F===!1||$&&(D||hn);Re(function(){at(ct.current.scrollWidth)},[Cn]);var yn=function(G,Ce,Xe,mt,ht){return a.createElement("span",{title:ye(G),className:m()("".concat(xt,"-item"),(0,_.Z)({},"".concat(xt,"-item-disabled"),Xe))},a.createElement("span",{className:"".concat(xt,"-item-content")},Ce),mt&&a.createElement(qt,{className:"".concat(xt,"-item-remove"),onMouseDown:ce,onClick:ht,customizeIcon:je},"\xD7"))},fn=function(G,Ce,Xe,mt,ht,un){var Sn=function(Pn){ce(Pn),It(!D)};return a.createElement("span",{onMouseDown:Sn},Be({label:Ce,value:G,disabled:Xe,closable:mt,onClose:ht,isMaxTag:!!un}))},Lt=function(G){var Ce=G.disabled,Xe=G.label,mt=G.value,ht=!te&&!Ce,un=Xe;if(typeof vt=="number"&&(typeof Xe=="string"||typeof Xe=="number")){var Sn=String(un);Sn.length>vt&&(un="".concat(Sn.slice(0,vt),"..."))}var vn=function(jt){jt&&jt.stopPropagation(),nn(G)};return typeof Be=="function"?fn(mt,un,Ce,ht,vn):yn(G,un,Ce,ht,vn)},Ze=function(G){if(!P.length)return null;var Ce=typeof Tt=="function"?Tt(G):Tt;return typeof Be=="function"?fn(void 0,Ce,!1,!1,void 0,!0):yn({title:Ce},Ce,!1)},w=a.createElement("div",{className:"".concat(xt,"-search"),style:{width:Rt},onFocus:function(){cn(!0)},onBlur:function(){cn(!1)}},a.createElement(b,{ref:Q,open:D,prefixCls:h,id:C,inputElement:null,disabled:te,autoFocus:Z,autoComplete:ne,editable:Kt,activeDescendantId:J,value:Cn,onKeyDown:nt,onMouseDown:Pt,onChange:tt,onPaste:Je,onCompositionStart:st,onCompositionEnd:ze,onBlur:Ne,tabIndex:re,attrs:(0,Ht.Z)(e,!0)}),a.createElement("span",{ref:ct,className:"".concat(xt,"-search-mirror"),"aria-hidden":!0},Cn,"\xA0")),R=a.createElement($t.Z,{prefixCls:"".concat(xt,"-overflow"),data:P,renderItem:Lt,renderRest:Ze,suffix:w,itemKey:_e,maxCount:lt});return a.createElement("span",{className:"".concat(xt,"-wrap")},R,!P.length&&!Cn&&a.createElement("span",{className:"".concat(xt,"-placeholder")},k))},it=ge,Ye=function(e){var C=e.inputElement,h=e.prefixCls,P=e.id,D=e.inputRef,V=e.disabled,F=e.autoFocus,Q=e.autoComplete,k=e.activeDescendantId,te=e.mode,me=e.open,$=e.values,Z=e.placeholder,ne=e.tabIndex,J=e.showSearch,re=e.searchValue,je=e.activeValue,lt=e.maxLength,vt=e.onInputKeyDown,et=e.onInputMouseDown,Tt=e.onInputChange,Be=e.onInputPaste,It=e.onInputCompositionStart,nn=e.onInputCompositionEnd,tt=e.onInputBlur,Je=e.title,nt=a.useState(!1),Pt=(0,L.Z)(nt,2),st=Pt[0],ze=Pt[1],Ne=te==="combobox",ct=Ne||J,Ft=$[0],dt=re||"";Ne&&je&&!st&&(dt=je),a.useEffect(function(){Ne&&ze(!1)},[Ne,je]);var Rt=te!=="combobox"&&!me&&!J?!1:!!dt,at=Je===void 0?ye(Ft):Je,Ue=a.useMemo(function(){return Ft?null:a.createElement("span",{className:"".concat(h,"-selection-placeholder"),style:Rt?{visibility:"hidden"}:void 0},Z)},[Ft,Rt,Z,h]);return a.createElement("span",{className:"".concat(h,"-selection-wrap")},a.createElement("span",{className:"".concat(h,"-selection-search")},a.createElement(b,{ref:D,prefixCls:h,id:P,open:me,inputElement:C,disabled:V,autoFocus:F,autoComplete:Q,editable:ct,activeDescendantId:k,value:dt,onKeyDown:vt,onMouseDown:et,onChange:function(hn){ze(!0),Tt(hn)},onPaste:Be,onCompositionStart:It,onCompositionEnd:nn,onBlur:tt,tabIndex:ne,attrs:(0,Ht.Z)(e,!0),maxLength:Ne?lt:void 0})),!Ne&&Ft?a.createElement("span",{className:"".concat(h,"-selection-item"),title:at,style:Rt?{visibility:"hidden"}:void 0},Ft.label):null,Ue)},ke=Ye,qe=function(e,C){var h=(0,a.useRef)(null),P=(0,a.useRef)(!1),D=e.prefixCls,V=e.open,F=e.mode,Q=e.showSearch,k=e.tokenWithEnter,te=e.disabled,me=e.prefix,$=e.autoClearSearchValue,Z=e.onSearch,ne=e.onSearchSubmit,J=e.onToggleOpen,re=e.onInputKeyDown,je=e.onInputBlur,lt=e.domRef;a.useImperativeHandle(C,function(){return{focus:function(at){h.current.focus(at)},blur:function(){h.current.blur()}}});var vt=gn(0),et=(0,L.Z)(vt,2),Tt=et[0],Be=et[1],It=function(at){var Ue=at.which,Bt=h.current instanceof HTMLTextAreaElement;!Bt&&V&&(Ue===le.Z.UP||Ue===le.Z.DOWN)&&at.preventDefault(),re&&re(at),Ue===le.Z.ENTER&&F==="tags"&&!P.current&&!V&&(ne==null||ne(at.target.value)),!(Bt&&!V&&~[le.Z.UP,le.Z.DOWN,le.Z.LEFT,le.Z.RIGHT].indexOf(Ue))&&en(Ue)&&J(!0)},nn=function(){Be(!0)},tt=(0,a.useRef)(null),Je=function(at){Z(at,!0,P.current)!==!1&&J(!0)},nt=function(){P.current=!0},Pt=function(at){P.current=!1,F!=="combobox"&&Je(at.target.value)},st=function(at){var Ue=at.target.value;if(k&&tt.current&&/[\r\n]/.test(tt.current)){var Bt=tt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ue=Ue.replace(Bt,tt.current)}tt.current=null,Je(Ue)},ze=function(at){var Ue=at.clipboardData,Bt=Ue==null?void 0:Ue.getData("text");tt.current=Bt||""},Ne=function(at){var Ue=at.target;if(Ue!==h.current){var Bt=document.body.style.msTouchAction!==void 0;Bt?setTimeout(function(){h.current.focus()}):h.current.focus()}},ct=function(at){var Ue=Tt();at.target!==h.current&&!Ue&&!(F==="combobox"&&te)&&at.preventDefault(),(F!=="combobox"&&(!Q||!Ue)||!V)&&(V&&$!==!1&&Z("",!0,!1),J())},Ft={inputRef:h,onInputKeyDown:It,onInputMouseDown:nn,onInputChange:st,onInputPaste:ze,onInputCompositionStart:nt,onInputCompositionEnd:Pt,onInputBlur:je},dt=F==="multiple"||F==="tags"?a.createElement(it,(0,s.Z)({},e,Ft)):a.createElement(ke,(0,s.Z)({},e,Ft));return a.createElement("div",{ref:lt,className:"".concat(D,"-selector"),onClick:Ne,onMouseDown:ct},me&&a.createElement("div",{className:"".concat(D,"-prefix")},me),dt)},Jt=a.forwardRef(qe),Dt=Jt,g=i(65966),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 C=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:C,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:C,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:C,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:C,adjustY:1},htmlRegion:"scroll"}}},n=function(e,C){var h=e.prefixCls,P=e.disabled,D=e.visible,V=e.children,F=e.popupElement,Q=e.animation,k=e.transitionName,te=e.dropdownStyle,me=e.dropdownClassName,$=e.direction,Z=$===void 0?"ltr":$,ne=e.placement,J=e.builtinPlacements,re=e.dropdownMatchSelectWidth,je=e.dropdownRender,lt=e.dropdownAlign,vt=e.getPopupContainer,et=e.empty,Tt=e.getTriggerDOMNode,Be=e.onPopupVisibleChange,It=e.onPopupMouseEnter,nn=(0,he.Z)(e,r),tt="".concat(h,"-dropdown"),Je=F;je&&(Je=je(F));var nt=a.useMemo(function(){return J||l(re)},[J,re]),Pt=Q?"".concat(tt,"-").concat(Q):k,st=typeof re=="number",ze=a.useMemo(function(){return st?null:re===!1?"minWidth":"width"},[re,st]),Ne=te;st&&(Ne=(0,U.Z)((0,U.Z)({},Ne),{},{width:re}));var ct=a.useRef(null);return a.useImperativeHandle(C,function(){return{getPopupElement:function(){var dt;return(dt=ct.current)===null||dt===void 0?void 0:dt.popupElement}}}),a.createElement(g.Z,(0,s.Z)({},nn,{showAction:Be?["click"]:[],hideAction:Be?["click"]:[],popupPlacement:ne||(Z==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:nt,prefixCls:tt,popupTransitionName:Pt,popup:a.createElement("div",{onMouseEnter:It},Je),ref:ct,stretch:ze,popupAlign:lt,popupVisible:D,getPopupContainer:vt,popupClassName:m()(me,(0,_.Z)({},"".concat(tt,"-empty"),et)),popupStyle:Ne,getTriggerDOMNode:Tt,onPopupVisibleChange:Be}),V)},c=a.forwardRef(n),p=c,y=i(21696);function E(t,e){var C=t.key,h;return"value"in t&&(h=t.value),C!=null?C:h!==void 0?h:"rc-index-key-".concat(e)}function z(t){return typeof t!="undefined"&&!Number.isNaN(t)}function T(t,e){var C=t||{},h=C.label,P=C.value,D=C.options,V=C.groupLabel,F=h||(e?"children":"label");return{label:F,value:P||"value",options:D||"options",groupLabel:V||F}}function f(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=e.fieldNames,h=e.childrenAsData,P=[],D=T(C,!1),V=D.label,F=D.value,Q=D.options,k=D.groupLabel;function te(me,$){Array.isArray(me)&&me.forEach(function(Z){if($||!(Q in Z)){var ne=Z[F];P.push({key:E(Z,P.length),groupOption:$,data:Z,label:Z[V],value:ne})}else{var J=Z[k];J===void 0&&h&&(J=Z.label),P.push({key:E(Z,P.length),group:!0,data:Z,label:J}),te(Z[Q],!0)}})}return te(t,!1),P}function o(t){var e=(0,U.Z)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,Oe.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,C,h){if(!C||!C.length)return null;var P=!1,D=function F(Q,k){var te=(0,y.Z)(k),me=te[0],$=te.slice(1);if(!me)return[Q];var Z=Q.split(me);return P=P||Z.length>1,Z.reduce(function(ne,J){return[].concat((0,A.Z)(ne),(0,A.Z)(F(J,$)))},[]).filter(Boolean)},V=D(e,C);return P?typeof h!="undefined"?V.slice(0,h):V:null},I=a.createContext(null),v=I;function N(t){var e=t.visible,C=t.values;if(!e)return null;var h=50;return a.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(C.slice(0,h).map(function(P){var D=P.label,V=P.value;return["number","string"].includes((0,Y.Z)(D))?D:V}).join(", ")),C.length>h?", ...":null)}var W=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],j=function(e){return e==="tags"||e==="multiple"},de=a.forwardRef(function(t,e){var C,h=t.id,P=t.prefixCls,D=t.className,V=t.showSearch,F=t.tagRender,Q=t.direction,k=t.omitDomProps,te=t.displayValues,me=t.onDisplayValuesChange,$=t.emptyOptions,Z=t.notFoundContent,ne=Z===void 0?"Not Found":Z,J=t.onClear,re=t.mode,je=t.disabled,lt=t.loading,vt=t.getInputElement,et=t.getRawInputElement,Tt=t.open,Be=t.defaultOpen,It=t.onDropdownVisibleChange,nn=t.activeValue,tt=t.onActiveValueChange,Je=t.activeDescendantId,nt=t.searchValue,Pt=t.autoClearSearchValue,st=t.onSearch,ze=t.onSearchSplit,Ne=t.tokenSeparators,ct=t.allowClear,Ft=t.prefix,dt=t.suffixIcon,Rt=t.clearIcon,at=t.OptionList,Ue=t.animation,Bt=t.transitionName,hn=t.dropdownStyle,cn=t.dropdownClassName,xt=t.dropdownMatchSelectWidth,Cn=t.dropdownRender,Kt=t.dropdownAlign,yn=t.placement,fn=t.builtinPlacements,Lt=t.getPopupContainer,Ze=t.showAction,w=Ze===void 0?[]:Ze,R=t.onFocus,q=t.onBlur,G=t.onKeyUp,Ce=t.onKeyDown,Xe=t.onMouseDown,mt=(0,he.Z)(t,W),ht=j(re),un=(V!==void 0?V:ht)||re==="combobox",Sn=(0,U.Z)({},mt);X.forEach(function(bt){delete Sn[bt]}),k==null||k.forEach(function(bt){delete Sn[bt]});var vn=a.useState(!1),Pn=(0,L.Z)(vn,2),jt=Pn[0],Ln=Pn[1];a.useEffect(function(){Ln((0,K.Z)())},[]);var Vn=a.useRef(null),xn=a.useRef(null),kt=a.useRef(null),dn=a.useRef(null),Ut=a.useRef(null),Zn=a.useRef(!1),Fn=B(),Wn=(0,L.Z)(Fn,3),Dn=Wn[0],Nn=Wn[1],jn=Wn[2];a.useImperativeHandle(e,function(){var bt,Qe;return{focus:(bt=dn.current)===null||bt===void 0?void 0:bt.focus,blur:(Qe=dn.current)===null||Qe===void 0?void 0:Qe.blur,scrollTo:function(An){var En;return(En=Ut.current)===null||En===void 0?void 0:En.scrollTo(An)},nativeElement:Vn.current||xn.current}});var Tn=a.useMemo(function(){var bt;if(re!=="combobox")return nt;var Qe=(bt=te[0])===null||bt===void 0?void 0:bt.value;return typeof Qe=="string"||typeof Qe=="number"?String(Qe):""},[nt,re,te]),Qn=re==="combobox"&&typeof vt=="function"&&vt()||null,Mn=typeof et=="function"&&et(),nr=(0,pn.x1)(xn,Mn==null||(C=Mn.props)===null||C===void 0?void 0:C.ref),qn=a.useState(!1),Gn=(0,L.Z)(qn,2),rr=Gn[0],er=Gn[1];(0,We.Z)(function(){er(!0)},[]);var tr=(0,Ee.Z)(!1,{defaultValue:Be,value:Tt}),In=(0,L.Z)(tr,2),$n=In[0],Jn=In[1],Zt=rr?$n:!1,Kn=!ne&&$;(je||Kn&&Zt&&re==="combobox")&&(Zt=!1);var _n=Kn?!1:Zt,ve=a.useCallback(function(bt){var Qe=bt!==void 0?bt:!Zt;je||(Jn(Qe),Zt!==Qe&&(It==null||It(Qe)))},[je,Zt,Jn,It]),De=a.useMemo(function(){return(Ne||[]).some(function(bt){return[`
`,`\r
`].includes(bt)})},[Ne]),xe=a.useContext(v)||{},Pe=xe.maxCount,yt=xe.rawValues,Wt=function(Qe,zn,An){if(!(ht&&z(Pe)&&(yt==null?void 0:yt.size)>=Pe)){var En=!0,On=Qe;tt==null||tt(null);var Xn=u(Qe,Ne,z(Pe)?Pe-yt.size:void 0),Un=An?null:Xn;return re!=="combobox"&&Un&&(On="",ze==null||ze(Un),ve(!1),En=!1),st&&Tn!==On&&st(On,{source:zn?"typing":"effect"}),En}},ee=function(Qe){!Qe||!Qe.trim()||st(Qe,{source:"submit"})};a.useEffect(function(){!Zt&&!ht&&re!=="combobox"&&Wt("",!1,!1)},[Zt]),a.useEffect(function(){$n&&je&&Jn(!1),je&&!Zn.current&&Nn(!1)},[je]);var be=gn(),wt=(0,L.Z)(be,2),ot=wt[0],Nt=wt[1],Hn=a.useRef(!1),ar=function(Qe){var zn=ot(),An=Qe.key,En=An==="Enter";if(En&&(re!=="combobox"&&Qe.preventDefault(),Zt||ve(!0)),Nt(!!Tn),An==="Backspace"&&!zn&&ht&&!Tn&&te.length){for(var On=(0,A.Z)(te),Xn=null,Un=On.length-1;Un>=0;Un-=1){var or=On[Un];if(!or.disabled){On.splice(Un,1),Xn=or;break}}Xn&&me(On,{type:"remove",values:[Xn]})}for(var ur=arguments.length,ir=new Array(ur>1?ur-1:0),cr=1;cr<ur;cr++)ir[cr-1]=arguments[cr];if(Zt&&(!En||!Hn.current)){var fr;En&&(Hn.current=!0),(fr=Ut.current)===null||fr===void 0||fr.onKeyDown.apply(fr,[Qe].concat(ir))}Ce==null||Ce.apply(void 0,[Qe].concat(ir))},sr=function(Qe){for(var zn=arguments.length,An=new Array(zn>1?zn-1:0),En=1;En<zn;En++)An[En-1]=arguments[En];if(Zt){var On;(On=Ut.current)===null||On===void 0||On.onKeyUp.apply(On,[Qe].concat(An))}Qe.key==="Enter"&&(Hn.current=!1),G==null||G.apply(void 0,[Qe].concat(An))},kn=function(Qe){var zn=te.filter(function(An){return An!==Qe});me(zn,{type:"remove",values:[Qe]})},Yn=function(){Hn.current=!1},vr=a.useRef(!1),pr=function(){Nn(!0),je||(R&&!vr.current&&R.apply(void 0,arguments),w.includes("focus")&&ve(!0)),vr.current=!0},br=function(){Zn.current=!0,Nn(!1,function(){vr.current=!1,Zn.current=!1,ve(!1)}),!je&&(Tn&&(re==="tags"?st(Tn,{source:"submit"}):re==="multiple"&&st("",{source:"blur"})),q&&q.apply(void 0,arguments))},lr=[];a.useEffect(function(){return function(){lr.forEach(function(bt){return clearTimeout(bt)}),lr.splice(0,lr.length)}},[]);var Cr=function(Qe){var zn,An=Qe.target,En=(zn=kt.current)===null||zn===void 0?void 0:zn.getPopupElement();if(En&&En.contains(An)){var On=setTimeout(function(){var ur=lr.indexOf(On);if(ur!==-1&&lr.splice(ur,1),jn(),!jt&&!En.contains(document.activeElement)){var ir;(ir=dn.current)===null||ir===void 0||ir.focus()}});lr.push(On)}for(var Xn=arguments.length,Un=new Array(Xn>1?Xn-1:0),or=1;or<Xn;or++)Un[or-1]=arguments[or];Xe==null||Xe.apply(void 0,[Qe].concat(Un))},Er=a.useState({}),wr=(0,L.Z)(Er,2),Rr=wr[1];function xr(){Rr({})}var mr;Mn&&(mr=function(Qe){ve(Qe)}),Gt(function(){var bt;return[Vn.current,(bt=kt.current)===null||bt===void 0?void 0:bt.getPopupElement()]},_n,ve,!!Mn);var Zr=a.useMemo(function(){return(0,U.Z)((0,U.Z)({},t),{},{notFoundContent:ne,open:Zt,triggerOpen:_n,id:h,showSearch:un,multiple:ht,toggleOpen:ve})},[t,ne,_n,Zt,h,un,ht,ve]),hr=!!dt||lt,gr;hr&&(gr=a.createElement(qt,{className:m()("".concat(P,"-arrow"),(0,_.Z)({},"".concat(P,"-arrow-loading"),lt)),customizeIcon:dt,customizeIconProps:{loading:lt,searchValue:Tn,open:Zt,focused:Dn,showSearch:un}}));var Mr=function(){var Qe;J==null||J(),(Qe=dn.current)===null||Qe===void 0||Qe.focus(),me([],{type:"clear",values:te}),Wt("",!1,!1)},yr=rn(P,Mr,te,ct,Rt,je,Tn,re),Ir=yr.allowClear,Pr=yr.clearIcon,Nr=a.createElement(at,{ref:Ut}),Dr=m()(P,D,(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(P,"-focused"),Dn),"".concat(P,"-multiple"),ht),"".concat(P,"-single"),!ht),"".concat(P,"-allow-clear"),ct),"".concat(P,"-show-arrow"),hr),"".concat(P,"-disabled"),je),"".concat(P,"-loading"),lt),"".concat(P,"-open"),Zt),"".concat(P,"-customize-input"),Qn),"".concat(P,"-show-search"),un)),Sr=a.createElement(p,{ref:kt,disabled:je,prefixCls:P,visible:_n,popupElement:Nr,animation:Ue,transitionName:Bt,dropdownStyle:hn,dropdownClassName:cn,direction:Q,dropdownMatchSelectWidth:xt,dropdownRender:Cn,dropdownAlign:Kt,placement:yn,builtinPlacements:fn,getPopupContainer:Lt,empty:$,getTriggerDOMNode:function(Qe){return xn.current||Qe},onPopupVisibleChange:mr,onPopupMouseEnter:xr},Mn?a.cloneElement(Mn,{ref:nr}):a.createElement(Dt,(0,s.Z)({},t,{domRef:xn,prefixCls:P,inputElement:Qn,ref:dn,id:h,prefix:Ft,showSearch:un,autoClearSearchValue:Pt,mode:re,activeDescendantId:Je,tagRender:F,values:te,open:Zt,onToggleOpen:ve,activeValue:nn,searchValue:Tn,onSearch:Wt,onSearchSubmit:ee,onRemove:kn,tokenWithEnter:De,onInputBlur:Yn}))),dr;return Mn?dr=Sr:dr=a.createElement("div",(0,s.Z)({className:Dr},Sn,{ref:Vn,onMouseDown:Cr,onKeyDown:ar,onKeyUp:sr,onFocus:pr,onBlur:br}),a.createElement(N,{visible:Dn&&!Zt,values:te}),Sr,gr,Ir&&Pr),a.createElement(Rn.Provider,{value:Zr},dr)}),ie=de,Me=function(){return null};Me.isSelectOptGroup=!0;var we=Me,H=function(){return null};H.isSelectOption=!0;var Ie=H,ut=i(80547),Le=i(2738),$e=i(6790);function rt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ue=["disabled","title","children","style","className"];function pe(t){return typeof t=="string"||typeof t=="number"}var Ke=function(e,C){var h=an(),P=h.prefixCls,D=h.id,V=h.open,F=h.multiple,Q=h.mode,k=h.searchValue,te=h.toggleOpen,me=h.notFoundContent,$=h.onPopupScroll,Z=a.useContext(v),ne=Z.maxCount,J=Z.flattenOptions,re=Z.onActiveValue,je=Z.defaultActiveFirstOption,lt=Z.onSelect,vt=Z.menuItemSelectedIcon,et=Z.rawValues,Tt=Z.fieldNames,Be=Z.virtual,It=Z.direction,nn=Z.listHeight,tt=Z.listItemHeight,Je=Z.optionRender,nt="".concat(P,"-item"),Pt=(0,ut.Z)(function(){return J},[V,J],function(Ze,w){return w[0]&&Ze[1]!==w[1]}),st=a.useRef(null),ze=a.useMemo(function(){return F&&z(ne)&&(et==null?void 0:et.size)>=ne},[F,ne,et==null?void 0:et.size]),Ne=function(w){w.preventDefault()},ct=function(w){var R;(R=st.current)===null||R===void 0||R.scrollTo(typeof w=="number"?{index:w}:w)},Ft=a.useCallback(function(Ze){return Q==="combobox"?!1:et.has(Ze)},[Q,(0,A.Z)(et).toString(),et.size]),dt=function(w){for(var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=Pt.length,G=0;G<q;G+=1){var Ce=(w+G*R+q)%q,Xe=Pt[Ce]||{},mt=Xe.group,ht=Xe.data;if(!mt&&!(ht!=null&&ht.disabled)&&(Ft(ht.value)||!ze))return Ce}return-1},Rt=a.useState(function(){return dt(0)}),at=(0,L.Z)(Rt,2),Ue=at[0],Bt=at[1],hn=function(w){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Bt(w);var q={source:R?"keyboard":"mouse"},G=Pt[w];if(!G){re(null,-1,q);return}re(G.value,w,q)};(0,a.useEffect)(function(){hn(je!==!1?dt(0):-1)},[Pt.length,k]);var cn=a.useCallback(function(Ze){return Q==="combobox"?String(Ze).toLowerCase()===k.toLowerCase():et.has(Ze)},[Q,k,(0,A.Z)(et).toString(),et.size]);(0,a.useEffect)(function(){var Ze=setTimeout(function(){if(!F&&V&&et.size===1){var R=Array.from(et)[0],q=Pt.findIndex(function(G){var Ce=G.data;return k?String(Ce.value).startsWith(k):Ce.value===R});q!==-1&&(hn(q),ct(q))}});if(V){var w;(w=st.current)===null||w===void 0||w.scrollTo(void 0)}return function(){return clearTimeout(Ze)}},[V,k]);var xt=function(w){w!==void 0&&lt(w,{selected:!et.has(w)}),F||te(!1)};if(a.useImperativeHandle(C,function(){return{onKeyDown:function(w){var R=w.which,q=w.ctrlKey;switch(R){case le.Z.N:case le.Z.P:case le.Z.UP:case le.Z.DOWN:{var G=0;if(R===le.Z.UP?G=-1:R===le.Z.DOWN?G=1:rt()&&q&&(R===le.Z.N?G=1:R===le.Z.P&&(G=-1)),G!==0){var Ce=dt(Ue+G,G);ct(Ce),hn(Ce,!0)}break}case le.Z.TAB:case le.Z.ENTER:{var Xe,mt=Pt[Ue];mt&&!(mt!=null&&(Xe=mt.data)!==null&&Xe!==void 0&&Xe.disabled)&&!ze?xt(mt.value):xt(void 0),V&&w.preventDefault();break}case le.Z.ESC:te(!1),V&&w.stopPropagation()}},onKeyUp:function(){},scrollTo:function(w){ct(w)}}}),Pt.length===0)return a.createElement("div",{role:"listbox",id:"".concat(D,"_list"),className:"".concat(nt,"-empty"),onMouseDown:Ne},me);var Cn=Object.keys(Tt).map(function(Ze){return Tt[Ze]}),Kt=function(w){return w.label};function yn(Ze,w){var R=Ze.group;return{role:R?"presentation":"option",id:"".concat(D,"_list_").concat(w)}}var fn=function(w){var R=Pt[w];if(!R)return null;var q=R.data||{},G=q.value,Ce=R.group,Xe=(0,Ht.Z)(q,!0),mt=Kt(R);return R?a.createElement("div",(0,s.Z)({"aria-label":typeof mt=="string"&&!Ce?mt:null},Xe,{key:w},yn(R,w),{"aria-selected":cn(G)}),G):null},Lt={role:"listbox",id:"".concat(D,"_list")};return a.createElement(a.Fragment,null,Be&&a.createElement("div",(0,s.Z)({},Lt,{style:{height:0,width:0,overflow:"hidden"}}),fn(Ue-1),fn(Ue),fn(Ue+1)),a.createElement($e.Z,{itemKey:"key",ref:st,data:Pt,height:nn,itemHeight:tt,fullHeight:!1,onMouseDown:Ne,onScroll:$,virtual:Be,direction:It,innerProps:Be?null:Lt},function(Ze,w){var R=Ze.group,q=Ze.groupOption,G=Ze.data,Ce=Ze.label,Xe=Ze.value,mt=G.key;if(R){var ht,un=(ht=G.title)!==null&&ht!==void 0?ht:pe(Ce)?Ce.toString():void 0;return a.createElement("div",{className:m()(nt,"".concat(nt,"-group"),G.className),title:un},Ce!==void 0?Ce:mt)}var Sn=G.disabled,vn=G.title,Pn=G.children,jt=G.style,Ln=G.className,Vn=(0,he.Z)(G,ue),xn=(0,Le.Z)(Vn,Cn),kt=Ft(Xe),dn=Sn||!kt&&ze,Ut="".concat(nt,"-option"),Zn=m()(nt,Ut,Ln,(0,_.Z)((0,_.Z)((0,_.Z)((0,_.Z)({},"".concat(Ut,"-grouped"),q),"".concat(Ut,"-active"),Ue===w&&!dn),"".concat(Ut,"-disabled"),dn),"".concat(Ut,"-selected"),kt)),Fn=Kt(Ze),Wn=!vt||typeof vt=="function"||kt,Dn=typeof Fn=="number"?Fn:Fn||Xe,Nn=pe(Dn)?Dn.toString():void 0;return vn!==void 0&&(Nn=vn),a.createElement("div",(0,s.Z)({},(0,Ht.Z)(xn),Be?{}:yn(Ze,w),{"aria-selected":cn(Xe),className:Zn,title:Nn,onMouseMove:function(){Ue===w||dn||hn(w)},onClick:function(){dn||xt(Xe)},style:jt}),a.createElement("div",{className:"".concat(Ut,"-content")},typeof Je=="function"?Je(Ze,{index:w}):Dn),a.isValidElement(vt)||kt,Wn&&a.createElement(qt,{className:"".concat(nt,"-option-state"),customizeIcon:vt,customizeIconProps:{value:Xe,disabled:dn,isSelected:kt}},kt?"\u2713":null))}))},Ge=a.forwardRef(Ke),He=Ge,Ae=function(t,e){var C=a.useRef({values:new Map,options:new Map}),h=a.useMemo(function(){var D=C.current,V=D.values,F=D.options,Q=t.map(function(me){if(me.label===void 0){var $;return(0,U.Z)((0,U.Z)({},me),{},{label:($=V.get(me.value))===null||$===void 0?void 0:$.label})}return me}),k=new Map,te=new Map;return Q.forEach(function(me){k.set(me.value,me),te.set(me.value,e.get(me.value)||F.get(me.value))}),C.current.values=k,C.current.options=te,Q},[t,e]),P=a.useCallback(function(D){return e.get(D)||C.current.options.get(D)},[e]);return[h,P]};function fe(t,e){return x(t).join("").toUpperCase().includes(e)}var St=function(t,e,C,h,P){return a.useMemo(function(){if(!C||h===!1)return t;var D=e.options,V=e.label,F=e.value,Q=[],k=typeof h=="function",te=C.toUpperCase(),me=k?h:function(Z,ne){return P?fe(ne[P],te):ne[D]?fe(ne[V!=="children"?V:"label"],te):fe(ne[F],te)},$=k?function(Z){return o(Z)}:function(Z){return Z};return t.forEach(function(Z){if(Z[D]){var ne=me(C,$(Z));if(ne)Q.push(Z);else{var J=Z[D].filter(function(re){return me(C,$(re))});J.length&&Q.push((0,U.Z)((0,U.Z)({},Z),{},(0,_.Z)({},D,J)))}return}me(C,$(Z))&&Q.push(Z)}),Q},[t,h,P,C,e])},gt=i(6551),At=i(11592),Se=["children","value"],Yt=["children"];function bn(t){var e=t,C=e.key,h=e.props,P=h.children,D=h.value,V=(0,he.Z)(h,Se);return(0,U.Z)({key:C,value:D!==void 0?D:C,children:P},V)}function mn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,At.Z)(t).map(function(C,h){if(!a.isValidElement(C)||!C.type)return null;var P=C,D=P.type.isSelectOptGroup,V=P.key,F=P.props,Q=F.children,k=(0,he.Z)(F,Yt);return e||!D?bn(C):(0,U.Z)((0,U.Z)({key:"__RC_SELECT_GRP__".concat(V===null?h:V,"__"),label:V},k),{},{options:mn(Q)})}).filter(function(C){return C})}var on=function(e,C,h,P,D){return a.useMemo(function(){var V=e,F=!e;F&&(V=mn(C));var Q=new Map,k=new Map,te=function(Z,ne,J){J&&typeof J=="string"&&Z.set(ne[J],ne)},me=function $(Z){for(var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=0;J<Z.length;J+=1){var re=Z[J];!re[h.options]||ne?(Q.set(re[h.value],re),te(k,re,h.label),te(k,re,P),te(k,re,D)):$(re[h.options],!0)}};return me(V),{options:V,valueOptions:Q,labelOptions:k}},[e,C,h,P,D])},ln=on;function Mt(t){var e=a.useRef();e.current=t;var C=a.useCallback(function(){return e.current.apply(e,arguments)},[]);return C}function Xt(t){var e=t.mode,C=t.options,h=t.children,P=t.backfill,D=t.allowClear,V=t.placeholder,F=t.getInputElement,Q=t.showSearch,k=t.onSearch,te=t.defaultOpen,me=t.autoFocus,$=t.labelInValue,Z=t.value,ne=t.inputValue,J=t.optionLabelProp,re=isMultiple(e),je=Q!==void 0?Q:re||e==="combobox",lt=C||convertChildrenToData(h);if(warning(e!=="tags"||lt.every(function(Be){return!Be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var vt=lt.some(function(Be){return Be.options?Be.options.some(function(It){return typeof("value"in It?It.value:It.key)=="number"}):typeof("value"in Be?Be.value:Be.key)=="number"});warning(!vt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!J,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!P,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!F,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!F||!D||!V,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),k&&!je&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!te||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Z!=null){var et=toArray(Z);warning(!$||et.every(function(Be){return _typeof(Be)==="object"&&("key"in Be||"value"in Be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!re||Array.isArray(Z),"`value` should be array when `mode` is `multiple` or `tags`")}if(h){var Tt=null;toNodeArray(h).some(function(Be){if(!React.isValidElement(Be)||!Be.type)return!1;var It=Be,nn=It.type;if(nn.isSelectOption)return!1;if(nn.isSelectOptGroup){var tt=toNodeArray(Be.props.children).every(function(Je){return!React.isValidElement(Je)||!Be.type||Je.type.isSelectOption?!0:(Tt=Je.type,!1)});return!tt}return Tt=nn,!0}),Tt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Tt.displayName||Tt.name||Tt,"`.")),warning(ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function pt(t,e){if(t){var C=function h(P){for(var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=0;V<P.length;V++){var F=P[V];if(F[e==null?void 0:e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!D&&Array.isArray(F[e==null?void 0:e.options])&&h(F[e==null?void 0:e.options],!0))break}};C(t)}}var Et=null,ft=["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"],Ot=["inputValue"];function Qt(t){return!t||(0,Y.Z)(t)!=="object"}var Ve=a.forwardRef(function(t,e){var C=t.id,h=t.mode,P=t.prefixCls,D=P===void 0?"rc-select":P,V=t.backfill,F=t.fieldNames,Q=t.inputValue,k=t.searchValue,te=t.onSearch,me=t.autoClearSearchValue,$=me===void 0?!0:me,Z=t.onSelect,ne=t.onDeselect,J=t.dropdownMatchSelectWidth,re=J===void 0?!0:J,je=t.filterOption,lt=t.filterSort,vt=t.optionFilterProp,et=t.optionLabelProp,Tt=t.options,Be=t.optionRender,It=t.children,nn=t.defaultActiveFirstOption,tt=t.menuItemSelectedIcon,Je=t.virtual,nt=t.direction,Pt=t.listHeight,st=Pt===void 0?200:Pt,ze=t.listItemHeight,Ne=ze===void 0?20:ze,ct=t.labelRender,Ft=t.value,dt=t.defaultValue,Rt=t.labelInValue,at=t.onChange,Ue=t.maxCount,Bt=(0,he.Z)(t,ft),hn=(0,gt.ZP)(C),cn=j(h),xt=!!(!Tt&&It),Cn=a.useMemo(function(){return je===void 0&&h==="combobox"?!1:je},[je,h]),Kt=a.useMemo(function(){return T(F,xt)},[JSON.stringify(F),xt]),yn=(0,Ee.Z)("",{value:k!==void 0?k:Q,postState:function(De){return De||""}}),fn=(0,L.Z)(yn,2),Lt=fn[0],Ze=fn[1],w=ln(Tt,It,Kt,vt,et),R=w.valueOptions,q=w.labelOptions,G=w.options,Ce=a.useCallback(function(ve){var De=x(ve);return De.map(function(xe){var Pe,yt,Wt,ee,be;if(Qt(xe))Pe=xe;else{var wt;Wt=xe.key,yt=xe.label,Pe=(wt=xe.value)!==null&&wt!==void 0?wt:Wt}var ot=R.get(Pe);if(ot){var Nt;if(yt===void 0&&(yt=ot==null?void 0:ot[et||Kt.label]),Wt===void 0&&(Wt=(Nt=ot==null?void 0:ot.key)!==null&&Nt!==void 0?Nt:Pe),ee=ot==null?void 0:ot.disabled,be=ot==null?void 0:ot.title,0)var Hn}return{label:yt,value:Pe,key:Wt,disabled:ee,title:be}})},[Kt,et,R]),Xe=(0,Ee.Z)(dt,{value:Ft}),mt=(0,L.Z)(Xe,2),ht=mt[0],un=mt[1],Sn=a.useMemo(function(){var ve,De=cn&&ht===null?[]:ht,xe=Ce(De);return h==="combobox"&&Te((ve=xe[0])===null||ve===void 0?void 0:ve.value)?[]:xe},[ht,Ce,h,cn]),vn=Ae(Sn,R),Pn=(0,L.Z)(vn,2),jt=Pn[0],Ln=Pn[1],Vn=a.useMemo(function(){if(!h&&jt.length===1){var ve=jt[0];if(ve.value===null&&(ve.label===null||ve.label===void 0))return[]}return jt.map(function(De){var xe;return(0,U.Z)((0,U.Z)({},De),{},{label:(xe=typeof ct=="function"?ct(De):De.label)!==null&&xe!==void 0?xe:De.value})})},[h,jt,ct]),xn=a.useMemo(function(){return new Set(jt.map(function(ve){return ve.value}))},[jt]);a.useEffect(function(){if(h==="combobox"){var ve,De=(ve=jt[0])===null||ve===void 0?void 0:ve.value;Ze(oe(De)?String(De):"")}},[jt]);var kt=Mt(function(ve,De){var xe=De!=null?De:ve;return(0,_.Z)((0,_.Z)({},Kt.value,ve),Kt.label,xe)}),dn=a.useMemo(function(){if(h!=="tags")return G;var ve=(0,A.Z)(G),De=function(Pe){return R.has(Pe)};return(0,A.Z)(jt).sort(function(xe,Pe){return xe.value<Pe.value?-1:1}).forEach(function(xe){var Pe=xe.value;De(Pe)||ve.push(kt(Pe,xe.label))}),ve},[kt,G,R,jt,h]),Ut=St(dn,Kt,Lt,Cn,vt),Zn=a.useMemo(function(){return h!=="tags"||!Lt||Ut.some(function(ve){return ve[vt||"value"]===Lt})||Ut.some(function(ve){return ve[Kt.value]===Lt})?Ut:[kt(Lt)].concat((0,A.Z)(Ut))},[kt,vt,h,Ut,Lt,Kt]),Fn=function ve(De){var xe=(0,A.Z)(De).sort(function(Pe,yt){return lt(Pe,yt,{searchValue:Lt})});return xe.map(function(Pe){return Array.isArray(Pe.options)?(0,U.Z)((0,U.Z)({},Pe),{},{options:Pe.options.length>0?ve(Pe.options):Pe.options}):Pe})},Wn=a.useMemo(function(){return lt?Fn(Zn):Zn},[Zn,lt,Lt]),Dn=a.useMemo(function(){return f(Wn,{fieldNames:Kt,childrenAsData:xt})},[Wn,Kt,xt]),Nn=function(De){var xe=Ce(De);if(un(xe),at&&(xe.length!==jt.length||xe.some(function(Wt,ee){var be;return((be=jt[ee])===null||be===void 0?void 0:be.value)!==(Wt==null?void 0:Wt.value)}))){var Pe=Rt?xe:xe.map(function(Wt){return Wt.value}),yt=xe.map(function(Wt){return o(Ln(Wt.value))});at(cn?Pe:Pe[0],cn?yt:yt[0])}},jn=a.useState(null),Tn=(0,L.Z)(jn,2),Qn=Tn[0],Mn=Tn[1],nr=a.useState(0),qn=(0,L.Z)(nr,2),Gn=qn[0],rr=qn[1],er=nn!==void 0?nn:h!=="combobox",tr=a.useCallback(function(ve,De){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pe=xe.source,yt=Pe===void 0?"keyboard":Pe;rr(De),V&&h==="combobox"&&ve!==null&&yt==="keyboard"&&Mn(String(ve))},[V,h]),In=function(De,xe,Pe){var yt=function(){var kn,Yn=Ln(De);return[Rt?{label:Yn==null?void 0:Yn[Kt.label],value:De,key:(kn=Yn==null?void 0:Yn.key)!==null&&kn!==void 0?kn:De}:De,o(Yn)]};if(xe&&Z){var Wt=yt(),ee=(0,L.Z)(Wt,2),be=ee[0],wt=ee[1];Z(be,wt)}else if(!xe&&ne&&Pe!=="clear"){var ot=yt(),Nt=(0,L.Z)(ot,2),Hn=Nt[0],ar=Nt[1];ne(Hn,ar)}},$n=Mt(function(ve,De){var xe,Pe=cn?De.selected:!0;Pe?xe=cn?[].concat((0,A.Z)(jt),[ve]):[ve]:xe=jt.filter(function(yt){return yt.value!==ve}),Nn(xe),In(ve,Pe),h==="combobox"?Mn(""):(!j||$)&&(Ze(""),Mn(""))}),Jn=function(De,xe){Nn(De);var Pe=xe.type,yt=xe.values;(Pe==="remove"||Pe==="clear")&&yt.forEach(function(Wt){In(Wt.value,!1,Pe)})},Zt=function(De,xe){if(Ze(De),Mn(null),xe.source==="submit"){var Pe=(De||"").trim();if(Pe){var yt=Array.from(new Set([].concat((0,A.Z)(xn),[Pe])));Nn(yt),In(Pe,!0),Ze("")}return}xe.source!=="blur"&&(h==="combobox"&&Nn(De),te==null||te(De))},Kn=function(De){var xe=De;h!=="tags"&&(xe=De.map(function(yt){var Wt=q.get(yt);return Wt==null?void 0:Wt.value}).filter(function(yt){return yt!==void 0}));var Pe=Array.from(new Set([].concat((0,A.Z)(xn),(0,A.Z)(xe))));Nn(Pe),Pe.forEach(function(yt){In(yt,!0)})},_n=a.useMemo(function(){var ve=Je!==!1&&re!==!1;return(0,U.Z)((0,U.Z)({},w),{},{flattenOptions:Dn,onActiveValue:tr,defaultActiveFirstOption:er,onSelect:$n,menuItemSelectedIcon:tt,rawValues:xn,fieldNames:Kt,virtual:ve,direction:nt,listHeight:st,listItemHeight:Ne,childrenAsData:xt,maxCount:Ue,optionRender:Be})},[Ue,w,Dn,tr,er,$n,tt,xn,Kt,Je,re,nt,st,Ne,xt,Be]);return a.createElement(v.Provider,{value:_n},a.createElement(ie,(0,s.Z)({},Bt,{id:hn,prefixCls:D,ref:e,omitDomProps:Ot,mode:h,displayValues:Vn,onDisplayValuesChange:Jn,direction:nt,searchValue:Lt,onSearch:Zt,autoClearSearchValue:$,onSearchSplit:Kn,dropdownMatchSelectWidth:re,OptionList:He,emptyOptions:!Dn.length,activeValue:Qn,activeDescendantId:"".concat(hn,"_list_").concat(Gn)})))}),Fe=Ve;Fe.Option=Ie,Fe.OptGroup=we;var Vt=Fe,sn=Vt},22711:function(Bn,_t,i){i.r(_t),i.d(_t,{ResizableTextArea:function(){return tn},default:function(){return b}});var s=i(14809),A=i(4635),_=i(20439),U=i(95190),L=i(50298),he=i(62646),Y=i(92310),Ee=i.n(Y),Oe=i(36901),a=i(66003),Ct=i(30292),m=i(18929),We=i(59301),K=i(93664),pn=i(29301),wn=i(34280),qt=i(16089),rn=`
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"],an={},B;function gn(x){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=x.getAttribute("id")||x.getAttribute("data-reactid")||x.getAttribute("name");if(ae&&an[S])return an[S];var oe=window.getComputedStyle(x),Te=oe.getPropertyValue("box-sizing")||oe.getPropertyValue("-moz-box-sizing")||oe.getPropertyValue("-webkit-box-sizing"),se=parseFloat(oe.getPropertyValue("padding-bottom"))+parseFloat(oe.getPropertyValue("padding-top")),ye=parseFloat(oe.getPropertyValue("border-bottom-width"))+parseFloat(oe.getPropertyValue("border-top-width")),Re=Rn.map(function(ce){return"".concat(ce,":").concat(oe.getPropertyValue(ce))}).join(";"),_e={sizingStyle:Re,paddingSize:se,borderSize:ye,boxSizing:Te};return ae&&S&&(an[S]=_e),_e}function Gt(x){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;B||(B=document.createElement("textarea"),B.setAttribute("tab-index","-1"),B.setAttribute("aria-hidden","true"),B.setAttribute("name","hiddenTextarea"),document.body.appendChild(B)),x.getAttribute("wrap")?B.setAttribute("wrap",x.getAttribute("wrap")):B.removeAttribute("wrap");var Te=gn(x,ae),se=Te.paddingSize,ye=Te.borderSize,Re=Te.boxSizing,_e=Te.sizingStyle;B.setAttribute("style","".concat(_e,";").concat(rn)),B.value=x.value||x.placeholder||"";var ce=void 0,ge=void 0,it,Ye=B.scrollHeight;if(Re==="border-box"?Ye+=ye:Re==="content-box"&&(Ye-=se),S!==null||oe!==null){B.value=" ";var ke=B.scrollHeight-se;S!==null&&(ce=ke*S,Re==="border-box"&&(ce=ce+se+ye),Ye=Math.max(ce,Ye)),oe!==null&&(ge=ke*oe,Re==="border-box"&&(ge=ge+se+ye),it=Ye>ge?"":"hidden",Ye=Math.min(ge,Ye))}var qe={height:Ye,overflowY:it,resize:"none"};return ce&&(qe.minHeight=ce),ge&&(qe.maxHeight=ge),qe}var le=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],en=0,Ht=1,$t=2,zt=We.forwardRef(function(x,ae){var S=x,oe=S.prefixCls,Te=S.defaultValue,se=S.value,ye=S.autoSize,Re=S.onResize,_e=S.className,ce=S.style,ge=S.disabled,it=S.onChange,Ye=S.onInternalAutoSize,ke=(0,he.Z)(S,le),qe=(0,m.Z)(Te,{value:se,postState:function(Ie){return Ie!=null?Ie:""}}),Jt=(0,L.Z)(qe,2),Dt=Jt[0],g=Jt[1],r=function(Ie){g(Ie.target.value),it==null||it(Ie)},l=We.useRef();We.useImperativeHandle(ae,function(){return{textArea:l.current}});var n=We.useMemo(function(){return ye&&(0,K.Z)(ye)==="object"?[ye.minRows,ye.maxRows]:[]},[ye]),c=(0,L.Z)(n,2),p=c[0],y=c[1],E=!!ye,z=function(){try{if(document.activeElement===l.current){var Ie=l.current,ut=Ie.selectionStart,Le=Ie.selectionEnd,$e=Ie.scrollTop;l.current.setSelectionRange(ut,Le),l.current.scrollTop=$e}}catch(rt){}},T=We.useState($t),f=(0,L.Z)(T,2),o=f[0],u=f[1],I=We.useState(),v=(0,L.Z)(I,2),N=v[0],W=v[1],X=function(){u(en)};(0,wn.Z)(function(){E&&X()},[se,p,y,E]),(0,wn.Z)(function(){if(o===en)u(Ht);else if(o===Ht){var H=Gt(l.current,!1,p,y);u($t),W(H)}else z()},[o]);var j=We.useRef(),de=function(){qt.Z.cancel(j.current)},ie=function(Ie){o===$t&&(Re==null||Re(Ie),ye&&(de(),j.current=(0,qt.Z)(function(){X()})))};We.useEffect(function(){return de},[]);var Me=E?N:null,we=(0,_.Z)((0,_.Z)({},ce),Me);return(o===en||o===Ht)&&(we.overflowY="hidden",we.overflowX="hidden"),We.createElement(pn.Z,{onResize:ie,disabled:!(ye||Re)},We.createElement("textarea",(0,s.Z)({},ke,{ref:l,style:we,className:Ee()(oe,_e,(0,A.Z)({},"".concat(oe,"-disabled"),ge)),disabled:ge,value:Dt,onChange:r})))}),tn=zt,M=["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"],d=We.forwardRef(function(x,ae){var S,oe=x.defaultValue,Te=x.value,se=x.onFocus,ye=x.onBlur,Re=x.onChange,_e=x.allowClear,ce=x.maxLength,ge=x.onCompositionStart,it=x.onCompositionEnd,Ye=x.suffix,ke=x.prefixCls,qe=ke===void 0?"rc-textarea":ke,Jt=x.showCount,Dt=x.count,g=x.className,r=x.style,l=x.disabled,n=x.hidden,c=x.classNames,p=x.styles,y=x.onResize,E=x.onClear,z=x.onPressEnter,T=x.readOnly,f=x.autoSize,o=x.onKeyDown,u=(0,he.Z)(x,M),I=(0,m.Z)(oe,{value:Te,defaultValue:oe}),v=(0,L.Z)(I,2),N=v[0],W=v[1],X=N==null?"":String(N),j=We.useState(!1),de=(0,L.Z)(j,2),ie=de[0],Me=de[1],we=We.useRef(!1),H=We.useState(null),Ie=(0,L.Z)(H,2),ut=Ie[0],Le=Ie[1],$e=(0,We.useRef)(null),rt=(0,We.useRef)(null),ue=function(){var Fe;return(Fe=rt.current)===null||Fe===void 0?void 0:Fe.textArea},pe=function(){ue().focus()};(0,We.useImperativeHandle)(ae,function(){var Ve;return{resizableTextArea:rt.current,focus:pe,blur:function(){ue().blur()},nativeElement:((Ve=$e.current)===null||Ve===void 0?void 0:Ve.nativeElement)||ue()}}),(0,We.useEffect)(function(){Me(function(Ve){return!l&&Ve})},[l]);var Ke=We.useState(null),Ge=(0,L.Z)(Ke,2),He=Ge[0],Ae=Ge[1];We.useEffect(function(){if(He){var Ve;(Ve=ue()).setSelectionRange.apply(Ve,(0,U.Z)(He))}},[He]);var fe=(0,a.Z)(Dt,Jt),St=(S=fe.max)!==null&&S!==void 0?S:ce,gt=Number(St)>0,At=fe.strategy(X),Se=!!St&&At>St,Yt=function(Fe,Vt){var sn=Vt;!we.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Vt)>fe.max&&(sn=fe.exceedFormatter(Vt,{max:fe.max}),Vt!==sn&&Ae([ue().selectionStart||0,ue().selectionEnd||0])),W(sn),(0,Ct.rJ)(Fe.currentTarget,Fe,Re,sn)},bn=function(Fe){we.current=!0,ge==null||ge(Fe)},mn=function(Fe){we.current=!1,Yt(Fe,Fe.currentTarget.value),it==null||it(Fe)},on=function(Fe){Yt(Fe,Fe.target.value)},ln=function(Fe){Fe.key==="Enter"&&z&&z(Fe),o==null||o(Fe)},Mt=function(Fe){Me(!0),se==null||se(Fe)},Xt=function(Fe){Me(!1),ye==null||ye(Fe)},pt=function(Fe){W(""),pe(),(0,Ct.rJ)(ue(),Fe,Re)},Et=Ye,ft;fe.show&&(fe.showFormatter?ft=fe.showFormatter({value:X,count:At,maxLength:St}):ft="".concat(At).concat(gt?" / ".concat(St):""),Et=We.createElement(We.Fragment,null,Et,We.createElement("span",{className:Ee()("".concat(qe,"-data-count"),c==null?void 0:c.count),style:p==null?void 0:p.count},ft)));var Ot=function(Fe){var Vt;y==null||y(Fe),(Vt=ue())!==null&&Vt!==void 0&&Vt.style.height&&Le(!0)},Qt=!f&&!Jt&&!_e;return We.createElement(Oe.BaseInput,{ref:$e,value:X,allowClear:_e,handleReset:pt,suffix:Et,prefixCls:qe,classNames:(0,_.Z)((0,_.Z)({},c),{},{affixWrapper:Ee()(c==null?void 0:c.affixWrapper,(0,A.Z)((0,A.Z)({},"".concat(qe,"-show-count"),Jt),"".concat(qe,"-textarea-allow-clear"),_e))}),disabled:l,focused:ie,className:Ee()(g,Se&&"".concat(qe,"-out-of-range")),style:(0,_.Z)((0,_.Z)({},r),ut&&!Qt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ft=="string"?ft:void 0}},hidden:n,readOnly:T,onClear:E},We.createElement(tn,(0,s.Z)({},u,{autoSize:f,maxLength:ce,onKeyDown:ln,onChange:on,onFocus:Mt,onBlur:Xt,onCompositionStart:bn,onCompositionEnd:mn,className:Ee()(c==null?void 0:c.textarea),style:(0,_.Z)((0,_.Z)({},p==null?void 0:p.textarea),{},{resize:r==null?void 0:r.resize}),disabled:l,prefixCls:qe,onResize:Ot,ref:rt,readOnly:T})))}),O=d,b=O},49658:function(Bn,_t){_t.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))}},6790:function(Bn,_t,i){i.d(_t,{Z:function(){return Dt}});var s=i(14809),A=i(93664),_=i(20439),U=i(4635),L=i(50298),he=i(62646),Y=i(92310),Ee=i.n(Y),Oe=i(29301),a=i(70425),Ct=i(34280),m=i(59301),We=i(4676),K=m.forwardRef(function(g,r){var l=g.height,n=g.offsetY,c=g.offsetX,p=g.children,y=g.prefixCls,E=g.onInnerResize,z=g.innerProps,T=g.rtl,f=g.extra,o={},u={display:"flex",flexDirection:"column"};return n!==void 0&&(o={height:l,position:"relative",overflow:"hidden"},u=(0,_.Z)((0,_.Z)({},u),{},(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({transform:"translateY(".concat(n,"px)")},T?"marginRight":"marginLeft",-c),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:o},m.createElement(Oe.Z,{onResize:function(v){var N=v.offsetHeight;N&&E&&E()}},m.createElement("div",(0,s.Z)({style:u,className:Ee()((0,U.Z)({},"".concat(y,"-holder-inner"),y)),ref:r},z),p,f)))});K.displayName="Filler";var pn=K;function wn(g){var r=g.children,l=g.setRef,n=m.useCallback(function(c){l(c)},[]);return m.cloneElement(r,{ref:n})}function qt(g,r,l,n,c,p,y,E){var z=E.getKey;return g.slice(r,l+1).map(function(T,f){var o=r+f,u=y(T,o,{style:{width:n},offsetX:c}),I=z(T);return m.createElement(wn,{key:I,setRef:function(N){return p(T,N)}},u)})}function rn(g,r,l,n){var c=l-g,p=r-l,y=Math.min(c,p)*2;if(n<=y){var E=Math.floor(n/2);return n%2?l+E+1:l-E}return c>p?l-(n-p):l+(n-c)}function Rn(g,r,l){var n=g.length,c=r.length,p,y;if(n===0&&c===0)return null;n<c?(p=g,y=r):(p=r,y=g);var E={__EMPTY_ITEM__:!0};function z(v){return v!==void 0?l(v):E}for(var T=null,f=Math.abs(n-c)!==1,o=0;o<y.length;o+=1){var u=z(p[o]),I=z(y[o]);if(u!==I){T=o,f=f||u!==z(y[o+1]);break}}return T===null?null:{index:T,multiple:f}}function an(g,r,l){var n=m.useState(g),c=(0,L.Z)(n,2),p=c[0],y=c[1],E=m.useState(null),z=(0,L.Z)(E,2),T=z[0],f=z[1];return m.useEffect(function(){var o=Rn(p||[],g||[],r);(o==null?void 0:o.index)!==void 0&&(l==null||l(o.index),f(g[o.index])),y(g)},[g]),[T]}var B=i(16089),gn=(typeof navigator=="undefined"?"undefined":(0,A.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Gt=gn,le=function(g,r,l,n){var c=(0,m.useRef)(!1),p=(0,m.useRef)(null);function y(){clearTimeout(p.current),c.current=!0,p.current=setTimeout(function(){c.current=!1},50)}var E=(0,m.useRef)({top:g,bottom:r,left:l,right:n});return E.current.top=g,E.current.bottom=r,E.current.left=l,E.current.right=n,function(z,T){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=z?T<0&&E.current.left||T>0&&E.current.right:T<0&&E.current.top||T>0&&E.current.bottom;return f&&o?(clearTimeout(p.current),c.current=!1):(!o||c.current)&&y(),!c.current&&o}};function en(g,r,l,n,c,p,y){var E=(0,m.useRef)(0),z=(0,m.useRef)(null),T=(0,m.useRef)(null),f=(0,m.useRef)(!1),o=le(r,l,n,c);function u(j,de){if(B.Z.cancel(z.current),!o(!1,de)){var ie=j;if(!ie._virtualHandled)ie._virtualHandled=!0;else return;E.current+=de,T.current=de,Gt||ie.preventDefault(),z.current=(0,B.Z)(function(){var Me=f.current?10:1;y(E.current*Me,!1),E.current=0})}}function I(j,de){y(de,!0),Gt||j.preventDefault()}var v=(0,m.useRef)(null),N=(0,m.useRef)(null);function W(j){if(g){B.Z.cancel(N.current),N.current=(0,B.Z)(function(){v.current=null},2);var de=j.deltaX,ie=j.deltaY,Me=j.shiftKey,we=de,H=ie;(v.current==="sx"||!v.current&&Me&&ie&&!de)&&(we=ie,H=0,v.current="sx");var Ie=Math.abs(we),ut=Math.abs(H);v.current===null&&(v.current=p&&Ie>ut?"x":"y"),v.current==="y"?u(j,H):I(j,we)}}function X(j){g&&(f.current=j.detail===T.current)}return[W,X]}function Ht(g,r,l,n){var c=m.useMemo(function(){return[new Map,[]]},[g,l.id,n]),p=(0,L.Z)(c,2),y=p[0],E=p[1],z=function(f){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,u=y.get(f),I=y.get(o);if(u===void 0||I===void 0)for(var v=g.length,N=E.length;N<v;N+=1){var W,X=g[N],j=r(X);y.set(j,N);var de=(W=l.get(j))!==null&&W!==void 0?W:n;if(E[N]=(E[N-1]||0)+de,j===f&&(u=N),j===o&&(I=N),u!==void 0&&I!==void 0)break}return{top:E[u-1]||0,bottom:E[I]}};return z}var $t=i(99153),zt=i(84851),tn=function(){function g(){(0,$t.Z)(this,g),(0,U.Z)(this,"maps",void 0),(0,U.Z)(this,"id",0),(0,U.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,zt.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}(),M=tn;function d(g){var r=parseFloat(g);return isNaN(r)?0:r}function O(g,r,l){var n=m.useState(0),c=(0,L.Z)(n,2),p=c[0],y=c[1],E=(0,m.useRef)(new Map),z=(0,m.useRef)(new M),T=(0,m.useRef)(0);function f(){T.current+=1}function o(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;f();var v=function(){var X=!1;E.current.forEach(function(j,de){if(j&&j.offsetParent){var ie=j.offsetHeight,Me=getComputedStyle(j),we=Me.marginTop,H=Me.marginBottom,Ie=d(we),ut=d(H),Le=ie+Ie+ut;z.current.get(de)!==Le&&(z.current.set(de,Le),X=!0)}}),X&&y(function(j){return j+1})};if(I)v();else{T.current+=1;var N=T.current;Promise.resolve().then(function(){N===T.current&&v()})}}function u(I,v){var N=g(I),W=E.current.get(N);v?(E.current.set(N,v),o()):E.current.delete(N),!W!=!v&&(v?r==null||r(I):l==null||l(I))}return(0,m.useEffect)(function(){return f},[]),[u,o,z.current,p]}var b=14/15;function x(g,r,l){var n=(0,m.useRef)(!1),c=(0,m.useRef)(0),p=(0,m.useRef)(0),y=(0,m.useRef)(null),E=(0,m.useRef)(null),z,T=function(I){if(n.current){var v=Math.ceil(I.touches[0].pageX),N=Math.ceil(I.touches[0].pageY),W=c.current-v,X=p.current-N,j=Math.abs(W)>Math.abs(X);j?c.current=v:p.current=N;var de=l(j,j?W:X,!1,I);de&&I.preventDefault(),clearInterval(E.current),de&&(E.current=setInterval(function(){j?W*=b:X*=b;var ie=Math.floor(j?W:X);(!l(j,ie,!0)||Math.abs(ie)<=.1)&&clearInterval(E.current)},16))}},f=function(){n.current=!1,z()},o=function(I){z(),I.touches.length===1&&!n.current&&(n.current=!0,c.current=Math.ceil(I.touches[0].pageX),p.current=Math.ceil(I.touches[0].pageY),y.current=I.target,y.current.addEventListener("touchmove",T,{passive:!1}),y.current.addEventListener("touchend",f,{passive:!0}))};z=function(){y.current&&(y.current.removeEventListener("touchmove",T),y.current.removeEventListener("touchend",f))},(0,Ct.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),z(),clearInterval(E.current)}},[g])}function ae(g){return Math.floor(Math.pow(g,.5))}function S(g,r){var l="touches"in g?g.touches[0]:g;return l[r?"pageX":"pageY"]-window[r?"scrollX":"scrollY"]}function oe(g,r,l){m.useEffect(function(){var n=r.current;if(g&&n){var c=!1,p,y,E=function(){B.Z.cancel(p)},z=function u(){E(),p=(0,B.Z)(function(){l(y),u()})},T=function(I){if(!(I.target.draggable||I.button!==0)){var v=I;v._virtualHandled||(v._virtualHandled=!0,c=!0)}},f=function(){c=!1,E()},o=function(I){if(c){var v=S(I,!1),N=n.getBoundingClientRect(),W=N.top,X=N.bottom;if(v<=W){var j=W-v;y=-ae(j),z()}else if(v>=X){var de=v-X;y=ae(de),z()}else E()}};return n.addEventListener("mousedown",T),n.ownerDocument.addEventListener("mouseup",f),n.ownerDocument.addEventListener("mousemove",o),function(){n.removeEventListener("mousedown",T),n.ownerDocument.removeEventListener("mouseup",f),n.ownerDocument.removeEventListener("mousemove",o),E()}}},[g])}var Te=10;function se(g,r,l,n,c,p,y,E){var z=m.useRef(),T=m.useState(null),f=(0,L.Z)(T,2),o=f[0],u=f[1];return(0,Ct.Z)(function(){if(o&&o.times<Te){if(!g.current){u(function(fe){return(0,_.Z)({},fe)});return}p();var I=o.targetAlign,v=o.originAlign,N=o.index,W=o.offset,X=g.current.clientHeight,j=!1,de=I,ie=null;if(X){for(var Me=I||v,we=0,H=0,Ie=0,ut=Math.min(r.length-1,N),Le=0;Le<=ut;Le+=1){var $e=c(r[Le]);H=we;var rt=l.get($e);Ie=H+(rt===void 0?n:rt),we=Ie}for(var ue=Me==="top"?W:X-W,pe=ut;pe>=0;pe-=1){var Ke=c(r[pe]),Ge=l.get(Ke);if(Ge===void 0){j=!0;break}if(ue-=Ge,ue<=0)break}switch(Me){case"top":ie=H-W;break;case"bottom":ie=Ie-X+W;break;default:{var He=g.current.scrollTop,Ae=He+X;H<He?de="top":Ie>Ae&&(de="bottom")}}ie!==null&&y(ie),ie!==o.lastTop&&(j=!0)}j&&u((0,_.Z)((0,_.Z)({},o),{},{times:o.times+1,targetAlign:de,lastTop:ie}))}},[o,g.current]),function(I){if(I==null){E();return}if(B.Z.cancel(z.current),typeof I=="number")y(I);else if(I&&(0,A.Z)(I)==="object"){var v,N=I.align;"index"in I?v=I.index:v=r.findIndex(function(j){return c(j)===I.key});var W=I.offset,X=W===void 0?0:W;u({times:0,index:v,offset:X,originAlign:N})}}}var ye=m.forwardRef(function(g,r){var l=g.prefixCls,n=g.rtl,c=g.scrollOffset,p=g.scrollRange,y=g.onStartMove,E=g.onStopMove,z=g.onScroll,T=g.horizontal,f=g.spinSize,o=g.containerSize,u=g.style,I=g.thumbStyle,v=g.showScrollBar,N=m.useState(!1),W=(0,L.Z)(N,2),X=W[0],j=W[1],de=m.useState(null),ie=(0,L.Z)(de,2),Me=ie[0],we=ie[1],H=m.useState(null),Ie=(0,L.Z)(H,2),ut=Ie[0],Le=Ie[1],$e=!n,rt=m.useRef(),ue=m.useRef(),pe=m.useState(v),Ke=(0,L.Z)(pe,2),Ge=Ke[0],He=Ke[1],Ae=m.useRef(),fe=function(){v===!0||v===!1||(clearTimeout(Ae.current),He(!0),Ae.current=setTimeout(function(){He(!1)},3e3))},St=p-o||0,gt=o-f||0,At=m.useMemo(function(){if(c===0||St===0)return 0;var pt=c/St;return pt*gt},[c,St,gt]),Se=function(Et){Et.stopPropagation(),Et.preventDefault()},Yt=m.useRef({top:At,dragging:X,pageY:Me,startTop:ut});Yt.current={top:At,dragging:X,pageY:Me,startTop:ut};var bn=function(Et){j(!0),we(S(Et,T)),Le(Yt.current.top),y(),Et.stopPropagation(),Et.preventDefault()};m.useEffect(function(){var pt=function(Qt){Qt.preventDefault()},Et=rt.current,ft=ue.current;return Et.addEventListener("touchstart",pt,{passive:!1}),ft.addEventListener("touchstart",bn,{passive:!1}),function(){Et.removeEventListener("touchstart",pt),ft.removeEventListener("touchstart",bn)}},[]);var mn=m.useRef();mn.current=St;var on=m.useRef();on.current=gt,m.useEffect(function(){if(X){var pt,Et=function(Qt){var Ve=Yt.current,Fe=Ve.dragging,Vt=Ve.pageY,sn=Ve.startTop;B.Z.cancel(pt);var t=rt.current.getBoundingClientRect(),e=o/(T?t.width:t.height);if(Fe){var C=(S(Qt,T)-Vt)*e,h=sn;!$e&&T?h-=C:h+=C;var P=mn.current,D=on.current,V=D?h/D:0,F=Math.ceil(V*P);F=Math.max(F,0),F=Math.min(F,P),pt=(0,B.Z)(function(){z(F,T)})}},ft=function(){j(!1),E()};return window.addEventListener("mousemove",Et,{passive:!0}),window.addEventListener("touchmove",Et,{passive:!0}),window.addEventListener("mouseup",ft,{passive:!0}),window.addEventListener("touchend",ft,{passive:!0}),function(){window.removeEventListener("mousemove",Et),window.removeEventListener("touchmove",Et),window.removeEventListener("mouseup",ft),window.removeEventListener("touchend",ft),B.Z.cancel(pt)}}},[X]),m.useEffect(function(){return fe(),function(){clearTimeout(Ae.current)}},[c]),m.useImperativeHandle(r,function(){return{delayHidden:fe}});var ln="".concat(l,"-scrollbar"),Mt={position:"absolute",visibility:Ge?null:"hidden"},Xt={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return T?(Object.assign(Mt,{height:8,left:0,right:0,bottom:0}),Object.assign(Xt,(0,U.Z)({height:"100%",width:f},$e?"left":"right",At))):(Object.assign(Mt,(0,U.Z)({width:8,top:0,bottom:0},$e?"right":"left",0)),Object.assign(Xt,{width:"100%",height:f,top:At})),m.createElement("div",{ref:rt,className:Ee()(ln,(0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(ln,"-horizontal"),T),"".concat(ln,"-vertical"),!T),"".concat(ln,"-visible"),Ge)),style:(0,_.Z)((0,_.Z)({},Mt),u),onMouseDown:Se,onMouseMove:fe},m.createElement("div",{ref:ue,className:Ee()("".concat(ln,"-thumb"),(0,U.Z)({},"".concat(ln,"-thumb-moving"),X)),style:(0,_.Z)((0,_.Z)({},Xt),I),onMouseDown:bn}))}),Re=ye,_e=20;function ce(){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,_e),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"],it=[],Ye={overflowY:"auto",overflowAnchor:"none"};function ke(g,r){var l=g.prefixCls,n=l===void 0?"rc-virtual-list":l,c=g.className,p=g.height,y=g.itemHeight,E=g.fullHeight,z=E===void 0?!0:E,T=g.style,f=g.data,o=g.children,u=g.itemKey,I=g.virtual,v=g.direction,N=g.scrollWidth,W=g.component,X=W===void 0?"div":W,j=g.onScroll,de=g.onVirtualScroll,ie=g.onVisibleChange,Me=g.innerProps,we=g.extraRender,H=g.styles,Ie=g.showScrollBar,ut=Ie===void 0?"optional":Ie,Le=(0,he.Z)(g,ge),$e=m.useCallback(function(w){return typeof u=="function"?u(w):w==null?void 0:w[u]},[u]),rt=O($e,null,null),ue=(0,L.Z)(rt,4),pe=ue[0],Ke=ue[1],Ge=ue[2],He=ue[3],Ae=!!(I!==!1&&p&&y),fe=m.useMemo(function(){return Object.values(Ge.maps).reduce(function(w,R){return w+R},0)},[Ge.id,Ge.maps]),St=Ae&&f&&(Math.max(y*f.length,fe)>p||!!N),gt=v==="rtl",At=Ee()(n,(0,U.Z)({},"".concat(n,"-rtl"),gt),c),Se=f||it,Yt=(0,m.useRef)(),bn=(0,m.useRef)(),mn=(0,m.useRef)(),on=(0,m.useState)(0),ln=(0,L.Z)(on,2),Mt=ln[0],Xt=ln[1],pt=(0,m.useState)(0),Et=(0,L.Z)(pt,2),ft=Et[0],Ot=Et[1],Qt=(0,m.useState)(!1),Ve=(0,L.Z)(Qt,2),Fe=Ve[0],Vt=Ve[1],sn=function(){Vt(!0)},t=function(){Vt(!1)},e={getKey:$e};function C(w){Xt(function(R){var q;typeof w=="function"?q=w(R):q=w;var G=nn(q);return Yt.current.scrollTop=G,G})}var h=(0,m.useRef)({start:0,end:Se.length}),P=(0,m.useRef)(),D=an(Se,$e),V=(0,L.Z)(D,1),F=V[0];P.current=F;var Q=m.useMemo(function(){if(!Ae)return{scrollHeight:void 0,start:0,end:Se.length-1,offset:void 0};if(!St){var w;return{scrollHeight:((w=bn.current)===null||w===void 0?void 0:w.offsetHeight)||0,start:0,end:Se.length-1,offset:void 0}}for(var R=0,q,G,Ce,Xe=Se.length,mt=0;mt<Xe;mt+=1){var ht=Se[mt],un=$e(ht),Sn=Ge.get(un),vn=R+(Sn===void 0?y:Sn);vn>=Mt&&q===void 0&&(q=mt,G=R),vn>Mt+p&&Ce===void 0&&(Ce=mt),R=vn}return q===void 0&&(q=0,G=0,Ce=Math.ceil(p/y)),Ce===void 0&&(Ce=Se.length-1),Ce=Math.min(Ce+1,Se.length-1),{scrollHeight:R,start:q,end:Ce,offset:G}},[St,Ae,Mt,Se,He,p]),k=Q.scrollHeight,te=Q.start,me=Q.end,$=Q.offset;h.current.start=te,h.current.end=me,m.useLayoutEffect(function(){var w=Ge.getRecord();if(w.size===1){var R=Array.from(w.keys())[0],q=w.get(R),G=Se[te];if(G&&q===void 0){var Ce=$e(G);if(Ce===R){var Xe=Ge.get(R),mt=Xe-y;C(function(ht){return ht+mt})}}}Ge.resetRecord()},[k]);var Z=m.useState({width:0,height:p}),ne=(0,L.Z)(Z,2),J=ne[0],re=ne[1],je=function(R){re({width:R.offsetWidth,height:R.offsetHeight})},lt=(0,m.useRef)(),vt=(0,m.useRef)(),et=m.useMemo(function(){return ce(J.width,N)},[J.width,N]),Tt=m.useMemo(function(){return ce(J.height,k)},[J.height,k]),Be=k-p,It=(0,m.useRef)(Be);It.current=Be;function nn(w){var R=w;return Number.isNaN(It.current)||(R=Math.min(R,It.current)),R=Math.max(R,0),R}var tt=Mt<=0,Je=Mt>=Be,nt=ft<=0,Pt=ft>=N,st=le(tt,Je,nt,Pt),ze=function(){return{x:gt?-ft:ft,y:Mt}},Ne=(0,m.useRef)(ze()),ct=(0,a.zX)(function(w){if(de){var R=(0,_.Z)((0,_.Z)({},ze()),w);(Ne.current.x!==R.x||Ne.current.y!==R.y)&&(de(R),Ne.current=R)}});function Ft(w,R){var q=w;R?((0,We.flushSync)(function(){Ot(q)}),ct()):C(q)}function dt(w){var R=w.currentTarget.scrollTop;R!==Mt&&C(R),j==null||j(w),ct()}var Rt=function(R){var q=R,G=N?N-J.width:0;return q=Math.max(q,0),q=Math.min(q,G),q},at=(0,a.zX)(function(w,R){R?((0,We.flushSync)(function(){Ot(function(q){var G=q+(gt?-w:w);return Rt(G)})}),ct()):C(function(q){var G=q+w;return G})}),Ue=en(Ae,tt,Je,nt,Pt,!!N,at),Bt=(0,L.Z)(Ue,2),hn=Bt[0],cn=Bt[1];x(Ae,Yt,function(w,R,q,G){var Ce=G;return st(w,R,q)?!1:!Ce||!Ce._virtualHandled?(Ce&&(Ce._virtualHandled=!0),hn({preventDefault:function(){},deltaX:w?R:0,deltaY:w?0:R}),!0):!1}),oe(St,Yt,function(w){C(function(R){return R+w})}),(0,Ct.Z)(function(){function w(q){var G=tt&&q.detail<0,Ce=Je&&q.detail>0;Ae&&!G&&!Ce&&q.preventDefault()}var R=Yt.current;return R.addEventListener("wheel",hn,{passive:!1}),R.addEventListener("DOMMouseScroll",cn,{passive:!0}),R.addEventListener("MozMousePixelScroll",w,{passive:!1}),function(){R.removeEventListener("wheel",hn),R.removeEventListener("DOMMouseScroll",cn),R.removeEventListener("MozMousePixelScroll",w)}},[Ae,tt,Je]),(0,Ct.Z)(function(){if(N){var w=Rt(ft);Ot(w),ct({x:w})}},[J.width,N]);var xt=function(){var R,q;(R=lt.current)===null||R===void 0||R.delayHidden(),(q=vt.current)===null||q===void 0||q.delayHidden()},Cn=se(Yt,Se,Ge,y,$e,function(){return Ke(!0)},C,xt);m.useImperativeHandle(r,function(){return{nativeElement:mn.current,getScrollInfo:ze,scrollTo:function(R){function q(G){return G&&(0,A.Z)(G)==="object"&&("left"in G||"top"in G)}q(R)?(R.left!==void 0&&Ot(Rt(R.left)),Cn(R.top)):Cn(R)}}}),(0,Ct.Z)(function(){if(ie){var w=Se.slice(te,me+1);ie(w,Se)}},[te,me,Se]);var Kt=Ht(Se,$e,Ge,y),yn=we==null?void 0:we({start:te,end:me,virtual:St,offsetX:ft,offsetY:$,rtl:gt,getSize:Kt}),fn=qt(Se,te,me,N,ft,pe,o,e),Lt=null;p&&(Lt=(0,_.Z)((0,U.Z)({},z?"height":"maxHeight",p),Ye),Ae&&(Lt.overflowY="hidden",N&&(Lt.overflowX="hidden"),Fe&&(Lt.pointerEvents="none")));var Ze={};return gt&&(Ze.dir="rtl"),m.createElement("div",(0,s.Z)({ref:mn,style:(0,_.Z)((0,_.Z)({},T),{},{position:"relative"}),className:At},Ze,Le),m.createElement(Oe.Z,{onResize:je},m.createElement(X,{className:"".concat(n,"-holder"),style:Lt,ref:Yt,onScroll:dt,onMouseEnter:xt},m.createElement(pn,{prefixCls:n,height:k,offsetX:ft,offsetY:$,scrollWidth:N,onInnerResize:Ke,ref:bn,innerProps:Me,rtl:gt,extra:yn},fn))),St&&k>p&&m.createElement(Re,{ref:lt,prefixCls:n,scrollOffset:Mt,scrollRange:k,rtl:gt,onScroll:Ft,onStartMove:sn,onStopMove:t,spinSize:Tt,containerSize:J.height,style:H==null?void 0:H.verticalScrollBar,thumbStyle:H==null?void 0:H.verticalScrollBarThumb,showScrollBar:ut}),St&&N>J.width&&m.createElement(Re,{ref:vt,prefixCls:n,scrollOffset:ft,scrollRange:N,rtl:gt,onScroll:Ft,onStartMove:sn,onStopMove:t,spinSize:et,containerSize:J.width,horizontal:!0,style:H==null?void 0:H.horizontalScrollBar,thumbStyle:H==null?void 0:H.horizontalScrollBarThumb,showScrollBar:ut}))}var qe=m.forwardRef(ke);qe.displayName="List";var Jt=qe,Dt=Jt},76374:function(Bn,_t,i){var s=function(){if(typeof Map!="undefined")return Map;function M(d,O){var b=-1;return d.some(function(x,ae){return x[0]===O?(b=ae,!0):!1}),b}return function(){function d(){this.__entries__=[]}return Object.defineProperty(d.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),d.prototype.get=function(O){var b=M(this.__entries__,O),x=this.__entries__[b];return x&&x[1]},d.prototype.set=function(O,b){var x=M(this.__entries__,O);~x?this.__entries__[x][1]=b:this.__entries__.push([O,b])},d.prototype.delete=function(O){var b=this.__entries__,x=M(b,O);~x&&b.splice(x,1)},d.prototype.has=function(O){return!!~M(this.__entries__,O)},d.prototype.clear=function(){this.__entries__.splice(0)},d.prototype.forEach=function(O,b){b===void 0&&(b=null);for(var x=0,ae=this.__entries__;x<ae.length;x++){var S=ae[x];O.call(b,S[1],S[0])}},d}()}(),A=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,_=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")()}(),U=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_):function(M){return setTimeout(function(){return M(Date.now())},1e3/60)}}(),L=2;function he(M,d){var O=!1,b=!1,x=0;function ae(){O&&(O=!1,M()),b&&oe()}function S(){U(ae)}function oe(){var Te=Date.now();if(O){if(Te-x<L)return;b=!0}else O=!0,b=!1,setTimeout(S,d);x=Te}return oe}var Y=20,Ee=["top","right","bottom","left","width","height","size","weight"],Oe=typeof MutationObserver!="undefined",a=function(){function M(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=he(this.refresh.bind(this),Y)}return M.prototype.addObserver=function(d){~this.observers_.indexOf(d)||this.observers_.push(d),this.connected_||this.connect_()},M.prototype.removeObserver=function(d){var O=this.observers_,b=O.indexOf(d);~b&&O.splice(b,1),!O.length&&this.connected_&&this.disconnect_()},M.prototype.refresh=function(){var d=this.updateObservers_();d&&this.refresh()},M.prototype.updateObservers_=function(){var d=this.observers_.filter(function(O){return O.gatherActive(),O.hasActive()});return d.forEach(function(O){return O.broadcastActive()}),d.length>0},M.prototype.connect_=function(){!A||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oe?(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)},M.prototype.disconnect_=function(){!A||!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)},M.prototype.onTransitionEnd_=function(d){var O=d.propertyName,b=O===void 0?"":O,x=Ee.some(function(ae){return!!~b.indexOf(ae)});x&&this.refresh()},M.getInstance=function(){return this.instance_||(this.instance_=new M),this.instance_},M.instance_=null,M}(),Ct=function(M,d){for(var O=0,b=Object.keys(d);O<b.length;O++){var x=b[O];Object.defineProperty(M,x,{value:d[x],enumerable:!1,writable:!1,configurable:!0})}return M},m=function(M){var d=M&&M.ownerDocument&&M.ownerDocument.defaultView;return d||_},We=Gt(0,0,0,0);function K(M){return parseFloat(M)||0}function pn(M){for(var d=[],O=1;O<arguments.length;O++)d[O-1]=arguments[O];return d.reduce(function(b,x){var ae=M["border-"+x+"-width"];return b+K(ae)},0)}function wn(M){for(var d=["top","right","bottom","left"],O={},b=0,x=d;b<x.length;b++){var ae=x[b],S=M["padding-"+ae];O[ae]=K(S)}return O}function qt(M){var d=M.getBBox();return Gt(0,0,d.width,d.height)}function rn(M){var d=M.clientWidth,O=M.clientHeight;if(!d&&!O)return We;var b=m(M).getComputedStyle(M),x=wn(b),ae=x.left+x.right,S=x.top+x.bottom,oe=K(b.width),Te=K(b.height);if(b.boxSizing==="border-box"&&(Math.round(oe+ae)!==d&&(oe-=pn(b,"left","right")+ae),Math.round(Te+S)!==O&&(Te-=pn(b,"top","bottom")+S)),!an(M)){var se=Math.round(oe+ae)-d,ye=Math.round(Te+S)-O;Math.abs(se)!==1&&(oe-=se),Math.abs(ye)!==1&&(Te-=ye)}return Gt(x.left,x.top,oe,Te)}var Rn=function(){return typeof SVGGraphicsElement!="undefined"?function(M){return M instanceof m(M).SVGGraphicsElement}:function(M){return M instanceof m(M).SVGElement&&typeof M.getBBox=="function"}}();function an(M){return M===m(M).document.documentElement}function B(M){return A?Rn(M)?qt(M):rn(M):We}function gn(M){var d=M.x,O=M.y,b=M.width,x=M.height,ae=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,S=Object.create(ae.prototype);return Ct(S,{x:d,y:O,width:b,height:x,top:O,right:d+b,bottom:x+O,left:d}),S}function Gt(M,d,O,b){return{x:M,y:d,width:O,height:b}}var le=function(){function M(d){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Gt(0,0,0,0),this.target=d}return M.prototype.isActive=function(){var d=B(this.target);return this.contentRect_=d,d.width!==this.broadcastWidth||d.height!==this.broadcastHeight},M.prototype.broadcastRect=function(){var d=this.contentRect_;return this.broadcastWidth=d.width,this.broadcastHeight=d.height,d},M}(),en=function(){function M(d,O){var b=gn(O);Ct(this,{target:d,contentRect:b})}return M}(),Ht=function(){function M(d,O,b){if(this.activeObservations_=[],this.observations_=new s,typeof d!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=d,this.controller_=O,this.callbackCtx_=b}return M.prototype.observe=function(d){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(d instanceof m(d).Element))throw new TypeError('parameter 1 is not of type "Element".');var O=this.observations_;O.has(d)||(O.set(d,new le(d)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function(d){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(d instanceof m(d).Element))throw new TypeError('parameter 1 is not of type "Element".');var O=this.observations_;O.has(d)&&(O.delete(d),O.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var d=this;this.clearActive(),this.observations_.forEach(function(O){O.isActive()&&d.activeObservations_.push(O)})},M.prototype.broadcastActive=function(){if(this.hasActive()){var d=this.callbackCtx_,O=this.activeObservations_.map(function(b){return new en(b.target,b.broadcastRect())});this.callback_.call(d,O,d),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0},M}(),$t=typeof WeakMap!="undefined"?new WeakMap:new s,zt=function(){function M(d){if(!(this instanceof M))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var O=a.getInstance(),b=new Ht(d,O,this);$t.set(this,b)}return M}();["observe","unobserve","disconnect"].forEach(function(M){zt.prototype[M]=function(){var d;return(d=$t.get(this))[M].apply(d,arguments)}});var tn=function(){return typeof _.ResizeObserver!="undefined"?_.ResizeObserver:zt}();_t.Z=tn}}]);