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__Question__AddOrEdit__Bat...

3 lines
56 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[485],{65030:function(Rt,Me,l){l.d(Me,{Z:function(){return $}});var p=l(33885),Z=l(42978),Y=l(75931),F=l(43403),we=l(92310),ee=l.n(we),V=l(29301),me=l(76846),te=l(96452),re=l(6089),ne=l(80402),D=l(34280),Ee=l(49658),m=l(59301),xe=l(54476),Le=l(77900),Ze=l(8654);function Be(e){var c=e.prefixCls,r=e.align,h=e.arrow,o=e.arrowPos,P=h||{},w=P.className,N=P.content,H=o.x,I=H===void 0?0:H,ae=o.y,K=ae===void 0?0:ae,X=m.useRef();if(!r||!r.points)return null;var O={position:"absolute"};if(r.autoArrow!==!1){var le=r.points[0],pe=r.points[1],ve=le[0],ge=le[1],ue=pe[0],_=pe[1];ve===ue||!["t","b"].includes(ve)?O.top=K:ve==="t"?O.top=0:O.bottom=0,ge===_||!["l","r"].includes(ge)?O.left=I:ge==="l"?O.left=0:O.right=0}return m.createElement("div",{ref:X,className:ee()("".concat(c,"-arrow"),w),style:O},N)}function fe(e){var c=e.prefixCls,r=e.open,h=e.zIndex,o=e.mask,P=e.motion;return o?m.createElement(Le.default,(0,xe.Z)({},P,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(w){var N=w.className;return m.createElement("div",{style:{zIndex:h},className:ee()("".concat(c,"-mask"),N)})}):null}var A=m.memo(function(e){var c=e.children;return c},function(e,c){return c.cache}),Se=A,Ne=m.forwardRef(function(e,c){var r=e.popup,h=e.className,o=e.prefixCls,P=e.style,w=e.target,N=e.onVisibleChanged,H=e.open,I=e.keepDom,ae=e.fresh,K=e.onClick,X=e.mask,O=e.arrow,le=e.arrowPos,pe=e.align,ve=e.motion,ge=e.maskMotion,ue=e.forceRender,_=e.getPopupContainer,de=e.autoDestroy,oe=e.portal,W=e.zIndex,Ye=e.onMouseEnter,qe=e.onMouseLeave,lt=e.onPointerEnter,yt=e.onPointerDownCapture,Nt=e.ready,ut=e.offsetX,ct=e.offsetY,nt=e.offsetR,ft=e.offsetB,Pe=e.onAlign,Ae=e.onPrepare,J=e.stretch,_e=e.targetWidth,$e=e.targetHeight,Te=typeof r=="function"?r():r,Q=H||I,pt=(_==null?void 0:_.length)>0,Xt=m.useState(!_||!pt),bt=(0,Z.Z)(Xt,2),Ve=bt[0],Yt=bt[1];if((0,D.Z)(function(){!Ve&&pt&&w&&Yt(!0)},[Ve,pt,w]),!Ve)return null;var at="auto",je={left:"-1000vw",top:"-1000vh",right:at,bottom:at};if(Nt||!H){var At,Lt=pe.points,Ct=pe.dynamicInset||((At=pe._experimental)===null||At===void 0?void 0:At.dynamicInset),ot=Ct&&Lt[0][1]==="r",Ue=Ct&&Lt[0][0]==="b";ot?(je.right=nt,je.left=at):(je.left=ut,je.right=at),Ue?(je.bottom=ft,je.top=at):(je.top=ct,je.bottom=at)}var ze={};return J&&(J.includes("height")&&$e?ze.height=$e:J.includes("minHeight")&&$e&&(ze.minHeight=$e),J.includes("width")&&_e?ze.width=_e:J.includes("minWidth")&&_e&&(ze.minWidth=_e)),H||(ze.pointerEvents="none"),m.createElement(oe,{open:ue||Q,getContainer:_&&function(){return _(w)},autoDestroy:de},m.createElement(fe,{prefixCls:o,open:H,zIndex:W,mask:X,motion:ge}),m.createElement(V.Z,{onResize:Pe,disabled:!H},function(vt){return m.createElement(Le.default,(0,xe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ue,leavedClassName:"".concat(o,"-hidden")},ve,{onAppearPrepare:Ae,onEnterPrepare:Ae,visible:H,onVisibleChanged:function(Et){var Ie;ve==null||(Ie=ve.onVisibleChanged)===null||Ie===void 0||Ie.call(ve,Et),N(Et)}}),function(wt,Et){var Ie=wt.className,Tt=wt.style,Ge=ee()(o,Ie,h);return m.createElement("div",{ref:(0,Ze.sQ)(vt,c,Et),className:Ge,style:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({"--arrow-x":"".concat(le.x||0,"px"),"--arrow-y":"".concat(le.y||0,"px")},je),ze),Tt),{},{boxSizing:"border-box",zIndex:W},P),onMouseEnter:Ye,onMouseLeave:qe,onPointerEnter:lt,onClick:K,onPointerDownCapture:yt},O&&m.createElement(Be,{prefixCls:o,arrow:O,arrowPos:le,align:pe}),m.createElement(Se,{cache:!H&&!ae},Te))})}))}),L=Ne,j=m.forwardRef(function(e,c){var r=e.children,h=e.getTriggerDOMNode,o=(0,Ze.Yr)(r),P=m.useCallback(function(N){(0,Ze.mH)(c,h?h(N):N)},[h]),w=(0,Ze.x1)(P,(0,Ze.C4)(r));return o?m.cloneElement(r,{ref:w}):r}),U=j,q=m.createContext(null),be=q;function ke(e){return e?Array.isArray(e)?e:[e]:[]}function Fe(e,c,r,h){return m.useMemo(function(){var o=ke(r!=null?r:c),P=ke(h!=null?h:c),w=new Set(o),N=new Set(P);return e&&(w.has("hover")&&(w.delete("hover"),w.add("click")),N.has("hover")&&(N.delete("hover"),N.add("click"))),[w,N]},[e,c,r,h])}var a=l(29194);function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===c[0]:e[0]===c[0]&&e[1]===c[1]}function n(e,c,r,h){for(var o=r.points,P=Object.keys(e),w=0;w<P.length;w+=1){var N,H=P[w];if(t((N=e[H])===null||N===void 0?void 0:N.points,o,h))return"".concat(c,"-placement-").concat(H)}return""}function i(e,c,r,h){return c||(r?{motionName:"".concat(e,"-").concat(r)}:h?{motionName:h}:null)}function f(e){return e.ownerDocument.defaultView}function u(e){for(var c=[],r=e==null?void 0:e.parentElement,h=["hidden","scroll","clip","auto"];r;){var o=f(r).getComputedStyle(r),P=o.overflowX,w=o.overflowY,N=o.overflow;[P,w,N].some(function(H){return h.includes(H)})&&c.push(r),r=r.parentElement}return c}function v(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?c:e}function b(e){return v(parseFloat(e),0)}function s(e,c){var r=(0,p.Z)({},e);return(c||[]).forEach(function(h){if(!(h instanceof HTMLBodyElement||h instanceof HTMLHtmlElement)){var o=f(h).getComputedStyle(h),P=o.overflow,w=o.overflowClipMargin,N=o.borderTopWidth,H=o.borderBottomWidth,I=o.borderLeftWidth,ae=o.borderRightWidth,K=h.getBoundingClientRect(),X=h.offsetHeight,O=h.clientHeight,le=h.offsetWidth,pe=h.clientWidth,ve=b(N),ge=b(H),ue=b(I),_=b(ae),de=v(Math.round(K.width/le*1e3)/1e3),oe=v(Math.round(K.height/X*1e3)/1e3),W=(le-pe-ue-_)*de,Ye=(X-O-ve-ge)*oe,qe=ve*oe,lt=ge*oe,yt=ue*de,Nt=_*de,ut=0,ct=0;if(P==="clip"){var nt=b(w);ut=nt*de,ct=nt*oe}var ft=K.x+yt-ut,Pe=K.y+qe-ct,Ae=ft+K.width+2*ut-yt-Nt-W,J=Pe+K.height+2*ct-qe-lt-Ye;r.left=Math.max(r.left,ft),r.top=Math.max(r.top,Pe),r.right=Math.min(r.right,Ae),r.bottom=Math.min(r.bottom,J)}}),r}function d(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(c),h=r.match(/^(.*)\%$/);return h?e*(parseFloat(h[1])/100):parseFloat(r)}function g(e,c){var r=c||[],h=(0,Z.Z)(r,2),o=h[0],P=h[1];return[d(e.width,o),d(e.height,P)]}function S(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function y(e,c){var r=c[0],h=c[1],o,P;return r==="t"?P=e.y:r==="b"?P=e.y+e.height:P=e.y+e.height/2,h==="l"?o=e.x:h==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:P}}function R(e,c){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(h,o){return o===c?r[h]||"c":h}).join("")}function E(e,c,r,h,o,P,w){var N=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[h]||{}}),H=(0,Z.Z)(N,2),I=H[0],ae=H[1],K=m.useRef(0),X=m.useMemo(function(){return c?u(c):[]},[c]),O=m.useRef({}),le=function(){O.current={}};e||le();var pe=(0,re.Z)(function(){if(c&&r&&e){let Xe=function(or,gt){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt,ir=Q.x+or,kr=Q.y+gt,Gr=ir+Ue,Kr=kr+ot,Jr=Math.max(ir,Ft.left),C=Math.max(kr,Ft.top),x=Math.min(Gr,Ft.right),ce=Math.min(Kr,Ft.bottom);return Math.max(0,(x-Jr)*(ce-C))},Qt=function(){St=Q.y+he,kt=St+ot,$t=Q.x+se,mt=$t+Ue};var ue,_,de,oe,W=c,Ye=W.ownerDocument,qe=f(W),lt=qe.getComputedStyle(W),yt=lt.position,Nt=W.style.left,ut=W.style.top,ct=W.style.right,nt=W.style.bottom,ft=W.style.overflow,Pe=(0,p.Z)((0,p.Z)({},o[h]),P),Ae=Ye.createElement("div");(ue=W.parentElement)===null||ue===void 0||ue.appendChild(Ae),Ae.style.left="".concat(W.offsetLeft,"px"),Ae.style.top="".concat(W.offsetTop,"px"),Ae.style.position=yt,Ae.style.height="".concat(W.offsetHeight,"px"),Ae.style.width="".concat(W.offsetWidth,"px"),W.style.left="0",W.style.top="0",W.style.right="auto",W.style.bottom="auto",W.style.overflow="hidden";var J;if(Array.isArray(r))J={x:r[0],y:r[1],width:0,height:0};else{var _e,$e,Te=r.getBoundingClientRect();Te.x=(_e=Te.x)!==null&&_e!==void 0?_e:Te.left,Te.y=($e=Te.y)!==null&&$e!==void 0?$e:Te.top,J={x:Te.x,y:Te.y,width:Te.width,height:Te.height}}var Q=W.getBoundingClientRect(),pt=qe.getComputedStyle(W),Xt=pt.height,bt=pt.width;Q.x=(_=Q.x)!==null&&_!==void 0?_:Q.left,Q.y=(de=Q.y)!==null&&de!==void 0?de:Q.top;var Ve=Ye.documentElement,Yt=Ve.clientWidth,at=Ve.clientHeight,je=Ve.scrollWidth,At=Ve.scrollHeight,Lt=Ve.scrollTop,Ct=Ve.scrollLeft,ot=Q.height,Ue=Q.width,ze=J.height,vt=J.width,wt={left:0,top:0,right:Yt,bottom:at},Et={left:-Ct,top:-Lt,right:je-Ct,bottom:At-Lt},Ie=Pe.htmlRegion,Tt="visible",Ge="visibleFirst";Ie!=="scroll"&&Ie!==Ge&&(Ie=Tt);var zt=Ie===Ge,xr=s(Et,X),ie=s(wt,X),qt=Ie===Tt?ie:xr,De=zt?ie:qt;W.style.left="auto",W.style.top="auto",W.style.right="0",W.style.bottom="0";var sr=W.getBoundingClientRect();W.style.left=Nt,W.style.top=ut,W.style.right=ct,W.style.bottom=nt,W.style.overflow=ft,(oe=W.parentElement)===null||oe===void 0||oe.removeChild(Ae);var dt=v(Math.round(Ue/parseFloat(bt)*1e3)/1e3),Zt=v(Math.round(ot/parseFloat(Xt)*1e3)/1e3);if(dt===0||Zt===0||(0,me.Sh)(r)&&!(0,a.Z)(r))return;var Fr=Pe.offset,lr=Pe.targetOffset,it=g(Q,Fr),ur=(0,Z.Z)(it,2),Ke=ur[0],et=ur[1],Gt=g(J,lr),He=(0,Z.Z)(Gt,2),Pt=He[0],Rr=He[1];J.x-=Pt,J.y-=Rr;var Nr=Pe.points||[],cr=(0,Z.Z)(Nr,2),Ar=cr[0],fr=cr[1],ht=S(fr),We=S(Ar),Re=y(J,ht),vr=y(Q,We),Je=(0,p.Z)({},Pe),se=Re.x-vr.x+Ke,he=Re.y-vr.y+et,tt=Xe(se,he),Wt=Xe(se,he,ie),Qe=y(J,["t","l"]),dr=y(Q,["t","l"]),_t=y(J,["b","r"]),Ot=y(Q,["b","r"]),Bt=Pe.overflow||{},Lr=Bt.adjustX,hr=Bt.adjustY,Kt=Bt.shiftX,er=Bt.shiftY,mr=function(gt){return typeof gt=="boolean"?gt:gt>=0},St,kt,$t,mt;Qt();var gr=mr(hr),Oe=We[0]===ht[0];if(gr&&We[0]==="t"&&(kt>De.bottom||O.current.bt)){var jt=he;Oe?jt-=ot-ze:jt=Qe.y-Ot.y-et;var yr=Xe(se,jt),Tr=Xe(se,jt,ie);yr>tt||yr===tt&&(!zt||Tr>=Wt)?(O.current.bt=!0,he=jt,et=-et,Je.points=[R(We,0),R(ht,0)]):O.current.bt=!1}if(gr&&We[0]==="b"&&(St<De.top||O.current.tb)){var It=he;Oe?It+=ot-ze:It=_t.y-dr.y-et;var pr=Xe(se,It),zr=Xe(se,It,ie);pr>tt||pr===tt&&(!zt||zr>=Wt)?(O.current.tb=!0,he=It,et=-et,Je.points=[R(We,0),R(ht,0)]):O.current.tb=!1}var br=mr(Lr),Cr=We[1]===ht[1];if(br&&We[1]==="l"&&(mt>De.right||O.current.rl)){var Ht=se;Cr?Ht-=Ue-vt:Ht=Qe.x-Ot.x-Ke;var Vt=Xe(Ht,he),tr=Xe(Ht,he,ie);Vt>tt||Vt===tt&&(!zt||tr>=Wt)?(O.current.rl=!0,se=Ht,Ke=-Ke,Je.points=[R(We,1),R(ht,1)]):O.current.rl=!1}if(br&&We[1]==="r"&&($t<De.left||O.current.lr)){var Ut=se;Cr?Ut+=Ue-vt:Ut=_t.x-dr.x-Ke;var rr=Xe(Ut,he),Jt=Xe(Ut,he,ie);rr>tt||rr===tt&&(!zt||Jt>=Wt)?(O.current.lr=!0,se=Ut,Ke=-Ke,Je.points=[R(We,1),R(ht,1)]):O.current.lr=!1}Qt();var rt=Kt===!0?0:Kt;typeof rt=="number"&&($t<ie.left&&(se-=$t-ie.left-Ke,J.x+vt<ie.left+rt&&(se+=J.x-ie.left+vt-rt)),mt>ie.right&&(se-=mt-ie.right-Ke,J.x>ie.right-rt&&(se+=J.x-ie.right+rt)));var Dt=er===!0?0:er;typeof Dt=="number"&&(St<ie.top&&(he-=St-ie.top-et,J.y+ze<ie.top+Dt&&(he+=J.y-ie.top+ze-Dt)),kt>ie.bottom&&(he-=kt-ie.bottom-et,J.y>ie.bottom-Dt&&(he+=J.y-ie.bottom+Dt)));var Mt=Q.x+se,xt=Mt+Ue,nr=Q.y+he,Wr=nr+ot,wr=J.x,Er=wr+vt,Zr=J.y,Or=Zr+ze,Br=Math.max(Mt,wr),Pr=Math.min(xt,Er),$r=(Br+Pr)/2,jr=$r-Mt,Sr=Math.max(nr,Zr),Ir=Math.min(Wr,Or),Hr=(Sr+Ir)/2,Vr=Hr-nr;w==null||w(c,Je);var st=sr.right-Q.x-(se+Q.width),ar=sr.bottom-Q.y-(he+Q.height);dt===1&&(se=Math.round(se),st=Math.round(st)),Zt===1&&(he=Math.round(he),ar=Math.round(ar));var Ur={ready:!0,offsetX:se/dt,offsetY:he/Zt,offsetR:st/dt,offsetB:ar/Zt,arrowX:jr/dt,arrowY:Vr/Zt,scaleX:dt,scaleY:Zt,align:Je};ae(Ur)}}),ve=function(){K.current+=1;var _=K.current;Promise.resolve().then(function(){K.current===_&&pe()})},ge=function(){ae(function(_){return(0,p.Z)((0,p.Z)({},_),{},{ready:!1})})};return(0,D.Z)(ge,[h]),(0,D.Z)(function(){e||ge()},[e]),[I.ready,I.offsetX,I.offsetY,I.offsetR,I.offsetB,I.arrowX,I.arrowY,I.scaleX,I.scaleY,I.align,ve]}var k=l(94480);function B(e,c,r,h,o){(0,D.Z)(function(){if(e&&c&&r){let K=function(){h(),o()};var P=c,w=r,N=u(P),H=u(w),I=f(w),ae=new Set([I].concat((0,k.Z)(N),(0,k.Z)(H)));return ae.forEach(function(X){X.addEventListener("scroll",K,{passive:!0})}),I.addEventListener("resize",K,{passive:!0}),h(),function(){ae.forEach(function(X){X.removeEventListener("scroll",K),I.removeEventListener("resize",K)})}}},[e,c,r])}var M=l(48736);function T(e,c,r,h,o,P,w,N){var H=m.useRef(e);H.current=e;var I=m.useRef(!1);m.useEffect(function(){if(c&&h&&(!o||P)){var K=function(){I.current=!1},X=function(de){var oe;H.current&&!w(((oe=de.composedPath)===null||oe===void 0||(oe=oe.call(de))===null||oe===void 0?void 0:oe[0])||de.target)&&!I.current&&N(!1)},O=f(h);O.addEventListener("pointerdown",K,!0),O.addEventListener("mousedown",X,!0),O.addEventListener("contextmenu",X,!0);var le=(0,te.A)(r);if(le&&(le.addEventListener("mousedown",X,!0),le.addEventListener("contextmenu",X,!0)),0)var pe,ve,ge,ue;return function(){O.removeEventListener("pointerdown",K,!0),O.removeEventListener("mousedown",X,!0),O.removeEventListener("contextmenu",X,!0),le&&(le.removeEventListener("mousedown",X,!0),le.removeEventListener("contextmenu",X,!0))}}},[c,r,h,o,P]);function ae(){I.current=!0}return ae}var z=["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 G(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F.Z,c=m.forwardRef(function(r,h){var o=r.prefixCls,P=o===void 0?"rc-trigger-popup":o,w=r.children,N=r.action,H=N===void 0?"hover":N,I=r.showAction,ae=r.hideAction,K=r.popupVisible,X=r.defaultPopupVisible,O=r.onPopupVisibleChange,le=r.afterPopupVisibleChange,pe=r.mouseEnterDelay,ve=r.mouseLeaveDelay,ge=ve===void 0?.1:ve,ue=r.focusDelay,_=r.blurDelay,de=r.mask,oe=r.maskClosable,W=oe===void 0?!0:oe,Ye=r.getPopupContainer,qe=r.forceRender,lt=r.autoDestroy,yt=r.destroyPopupOnHide,Nt=r.popup,ut=r.popupClassName,ct=r.popupStyle,nt=r.popupPlacement,ft=r.builtinPlacements,Pe=ft===void 0?{}:ft,Ae=r.popupAlign,J=r.zIndex,_e=r.stretch,$e=r.getPopupClassNameFromAlign,Te=r.fresh,Q=r.alignPoint,pt=r.onPopupClick,Xt=r.onPopupAlign,bt=r.arrow,Ve=r.popupMotion,Yt=r.maskMotion,at=r.popupTransitionName,je=r.popupAnimation,At=r.maskTransitionName,Lt=r.maskAnimation,Ct=r.className,ot=r.getTriggerDOMNode,Ue=(0,Y.Z)(r,z),ze=lt||yt||!1,vt=m.useState(!1),wt=(0,Z.Z)(vt,2),Et=wt[0],Ie=wt[1];(0,D.Z)(function(){Ie((0,Ee.Z)())},[]);var Tt=m.useRef({}),Ge=m.useContext(be),zt=m.useMemo(function(){return{registerSubPopup:function(x,ce){Tt.current[x]=ce,Ge==null||Ge.registerSubPopup(x,ce)}}},[Ge]),xr=(0,ne.Z)(),ie=m.useState(null),qt=(0,Z.Z)(ie,2),De=qt[0],sr=qt[1],dt=m.useRef(null),Zt=(0,re.Z)(function(C){dt.current=C,(0,me.Sh)(C)&&De!==C&&sr(C),Ge==null||Ge.registerSubPopup(xr,C)}),Fr=m.useState(null),lr=(0,Z.Z)(Fr,2),it=lr[0],ur=lr[1],Ke=m.useRef(null),et=(0,re.Z)(function(C){(0,me.Sh)(C)&&it!==C&&(ur(C),Ke.current=C)}),Gt=m.Children.only(w),He=(Gt==null?void 0:Gt.props)||{},Pt={},Rr=(0,re.Z)(function(C){var x,ce,Ce=it;return(Ce==null?void 0:Ce.contains(C))||((x=(0,te.A)(Ce))===null||x===void 0?void 0:x.host)===C||C===Ce||(De==null?void 0:De.contains(C))||((ce=(0,te.A)(De))===null||ce===void 0?void 0:ce.host)===C||C===De||Object.values(Tt.current).some(function(ye){return(ye==null?void 0:ye.contains(C))||C===ye})}),Nr=i(P,Ve,je,at),cr=i(P,Yt,Lt,At),Ar=m.useState(X||!1),fr=(0,Z.Z)(Ar,2),ht=fr[0],We=fr[1],Re=K!=null?K:ht,vr=(0,re.Z)(function(C){K===void 0&&We(C)});(0,D.Z)(function(){We(K||!1)},[K]);var Je=m.useRef(Re);Je.current=Re;var se=m.useRef([]);se.current=[];var he=(0,re.Z)(function(C){var x;vr(C),((x=se.current[se.current.length-1])!==null&&x!==void 0?x:Re)!==C&&(se.current.push(C),O==null||O(C))}),tt=m.useRef(),Wt=function(){clearTimeout(tt.current)},Qe=function(x){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Wt(),ce===0?he(x):tt.current=setTimeout(function(){he(x)},ce*1e3)};m.useEffect(function(){return Wt},[]);var dr=m.useState(!1),_t=(0,Z.Z)(dr,2),Ot=_t[0],Bt=_t[1];(0,D.Z)(function(C){(!C||Re)&&Bt(!0)},[Re]);var Lr=m.useState(null),hr=(0,Z.Z)(Lr,2),Kt=hr[0],er=hr[1],mr=m.useState(null),St=(0,Z.Z)(mr,2),kt=St[0],$t=St[1],mt=function(x){$t([x.clientX,x.clientY])},gr=E(Re,De,Q&&kt!==null?kt:it,nt,Pe,Ae,Xt),Oe=(0,Z.Z)(gr,11),jt=Oe[0],yr=Oe[1],Tr=Oe[2],It=Oe[3],pr=Oe[4],zr=Oe[5],br=Oe[6],Cr=Oe[7],Ht=Oe[8],Vt=Oe[9],tr=Oe[10],Ut=Fe(Et,H,I,ae),rr=(0,Z.Z)(Ut,2),Jt=rr[0],rt=rr[1],Dt=Jt.has("click"),Mt=rt.has("click")||rt.has("contextMenu"),xt=(0,re.Z)(function(){Ot||tr()}),nr=function(){Je.current&&Q&&Mt&&Qe(!1)};B(Re,it,De,xt,nr),(0,D.Z)(function(){xt()},[kt,nt]),(0,D.Z)(function(){Re&&!(Pe!=null&&Pe[nt])&&xt()},[JSON.stringify(Ae)]);var Wr=m.useMemo(function(){var C=n(Pe,P,Vt,Q);return ee()(C,$e==null?void 0:$e(Vt))},[Vt,$e,Pe,P,Q]);m.useImperativeHandle(h,function(){return{nativeElement:Ke.current,popupElement:dt.current,forceAlign:xt}});var wr=m.useState(0),Er=(0,Z.Z)(wr,2),Zr=Er[0],Or=Er[1],Br=m.useState(0),Pr=(0,Z.Z)(Br,2),$r=Pr[0],jr=Pr[1],Sr=function(){if(_e&&it){var x=it.getBoundingClientRect();Or(x.width),jr(x.height)}},Ir=function(){Sr(),xt()},Hr=function(x){Bt(!1),tr(),le==null||le(x)},Vr=function(){return new Promise(function(x){Sr(),er(function(){return x})})};(0,D.Z)(function(){Kt&&(tr(),Kt(),er(null))},[Kt]);function st(C,x,ce,Ce){Pt[C]=function(ye){var Dr;Ce==null||Ce(ye),Qe(x,ce);for(var Qr=arguments.length,Xr=new Array(Qr>1?Qr-1:0),Mr=1;Mr<Qr;Mr++)Xr[Mr-1]=arguments[Mr];(Dr=He[C])===null||Dr===void 0||Dr.call.apply(Dr,[He,ye].concat(Xr))}}(Dt||Mt)&&(Pt.onClick=function(C){var x;Je.current&&Mt?Qe(!1):!Je.current&&Dt&&(mt(C),Qe(!0));for(var ce=arguments.length,Ce=new Array(ce>1?ce-1:0),ye=1;ye<ce;ye++)Ce[ye-1]=arguments[ye];(x=He.onClick)===null||x===void 0||x.call.apply(x,[He,C].concat(Ce))});var ar=T(Re,Mt,it,De,de,W,Rr,Qe),Ur=Jt.has("hover"),Xe=rt.has("hover"),Qt,or;Ur&&(st("onMouseEnter",!0,pe,function(C){mt(C)}),st("onPointerEnter",!0,pe,function(C){mt(C)}),Qt=function(x){(Re||Ot)&&De!==null&&De!==void 0&&De.contains(x.target)&&Qe(!0,pe)},Q&&(Pt.onMouseMove=function(C){var x;(x=He.onMouseMove)===null||x===void 0||x.call(He,C)})),Xe&&(st("onMouseLeave",!1,ge),st("onPointerLeave",!1,ge),or=function(){Qe(!1,ge)}),Jt.has("focus")&&st("onFocus",!0,ue),rt.has("focus")&&st("onBlur",!1,_),Jt.has("contextMenu")&&(Pt.onContextMenu=function(C){var x;Je.current&&rt.has("contextMenu")?Qe(!1):(mt(C),Qe(!0)),C.preventDefault();for(var ce=arguments.length,Ce=new Array(ce>1?ce-1:0),ye=1;ye<ce;ye++)Ce[ye-1]=arguments[ye];(x=He.onContextMenu)===null||x===void 0||x.call.apply(x,[He,C].concat(Ce))}),Ct&&(Pt.className=ee()(He.className,Ct));var gt=m.useRef(!1);gt.current||(gt.current=qe||Re||Ot);var Ft=(0,p.Z)((0,p.Z)({},He),Pt),ir={},kr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];kr.forEach(function(C){Ue[C]&&(ir[C]=function(){for(var x,ce=arguments.length,Ce=new Array(ce),ye=0;ye<ce;ye++)Ce[ye]=arguments[ye];(x=Ft[C])===null||x===void 0||x.call.apply(x,[Ft].concat(Ce)),Ue[C].apply(Ue,Ce)})});var Gr=m.cloneElement(Gt,(0,p.Z)((0,p.Z)({},Ft),ir)),Kr={x:zr,y:br},Jr=bt?(0,p.Z)({},bt!==!0?bt:{}):null;return m.createElement(m.Fragment,null,m.createElement(V.Z,{disabled:!Re,ref:et,onResize:Ir},m.createElement(U,{getTriggerDOMNode:ot},Gr)),gt.current&&m.createElement(be.Provider,{value:zt},m.createElement(L,{portal:e,ref:Zt,prefixCls:P,popup:Nt,className:ee()(ut,Wr),style:ct,target:it,onMouseEnter:Qt,onMouseLeave:or,onPointerEnter:Qt,zIndex:J,open:Re,keepDom:Ot,fresh:Te,onClick:pt,onPointerDownCapture:ar,mask:de,motion:Nr,maskMotion:cr,onVisibleChanged:Hr,onPrepare:Vr,forceRender:qe,autoDestroy:ze,getPopupContainer:Ye,align:Vt,arrow:Jr,arrowPos:Kr,ready:jt,offsetX:yr,offsetY:Tr,offsetR:It,offsetB:pr,onAlign:xt,stretch:_e,targetWidth:Zr/Cr,targetHeight:$r/Ht})))});return c}var $=G(F.Z)},23598:function(Rt,Me,l){l.r(Me),l.d(Me,{default:function(){return Ne}});var p=l(59301),Z=l(58106),Y=l(6767),F=l(77019),we=l(5269),ee=l(14566),V=l(7939),me=l(29787),te=l(31735),re={flex_box_center:"flex_box_center___Rx_bl",flex_space_between:"flex_space_between___pf3DK",flex_box_vertical_center:"flex_box_vertical_center___C2f9B",flex_box_center_end:"flex_box_center_end___Pmdn_",flex_box_column:"flex_box_column___RduTL",wrap:"wrap___Z5mJ_",head:"head___WiKNg"},ne=l(97013),D=l(26869),Ee=Object.defineProperty,m=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ze=(L,j,U)=>j in L?Ee(L,j,{enumerable:!0,configurable:!0,writable:!0,value:U}):L[j]=U,Be=(L,j)=>{for(var U in j||(j={}))xe.call(j,U)&&Ze(L,U,j[U]);if(m)for(var U of m(j))Le.call(j,U)&&Ze(L,U,j[U]);return L},fe=(L,j)=>{var U={};for(var q in L)xe.call(L,q)&&j.indexOf(q)<0&&(U[q]=L[q]);if(L!=null&&m)for(var q of m(L))j.indexOf(q)<0&&Le.call(L,q)&&(U[q]=L[q]);return U},A=(L,j,U)=>new Promise((q,be)=>{var ke=t=>{try{a(U.next(t))}catch(n){be(n)}},Fe=t=>{try{a(U.throw(t))}catch(n){be(n)}},a=t=>t.done?q(t.value):Promise.resolve(t.value).then(ke,Fe);a((U=U.apply(L,j)).next())});const Se=L=>{var j=L,{globalSetting:U,user:q,dispatch:be}=j,ke=fe(j,["globalSetting","user","dispatch"]),Fe,a,t;const[n,i]=(0,p.useState)([]),[f,u]=(0,p.useState)(),[v,b]=(0,p.useState)(!1),[s,d]=(0,p.useState)(!1),g={onRemove:()=>{i([])},beforeUpload:S=>{if((S==null?void 0:S.size)>1024*1024*50)return Y.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let y=[];return y.push(S),i([...y]),!1},fileList:n,accept:".xls,.xlsx"};return p.createElement("section",{className:re.wrap},p.createElement("div",{className:re.head},p.createElement("span",{onClick:()=>Z.history.push("/problems")},p.createElement("i",{className:"iconfont icon-fanhui2"}),p.createElement("span",{className:"mr20"},"\u8FD4\u56DE")),p.createElement("b",null,"\u6279\u91CF\u5BFC\u5165\u8BD5\u9898")),p.createElement("div",{className:"pr40 pl30 mt30"},p.createElement(F.Z,{gutter:[16,16]},p.createElement(we.Z,{className:"font14",span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),p.createElement(we.Z,null,p.createElement(ee.default,Be({},g),p.createElement(V.ZP,{ghost:!0,type:"primary",style:{width:96,height:40,borderRadius:4}},"\u9009\u62E9\u6587\u4EF6")))),p.createElement(F.Z,{gutter:[16,16]},p.createElement(we.Z,{span:2,className:"font14",style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),p.createElement(we.Z,{span:22},p.createElement("span",null,"1.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",p.createElement("br",null),"2.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",p.createElement("span",{style:{cursor:"pointer",color:"#0152d9"},onClick:()=>{(0,te.FH)("",(0,te.NY)({url:D.Z.API_SERVER+"/api/practices/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"),p.createElement("br",null),"3.\u82E5\u76F4\u63A5\u4E0A\u4F20\u4FEE\u6539\u540E\u7684\u5931\u8D25\u6587\u4EF6\uFF0C\u9700\u8981\u5148\u5C06\u201C\u5931\u8D25\u539F\u56E0\u201D\u5217\u5220\u9664\u3002"))),p.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},p.createElement(V.ZP,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:()=>A(void 0,null,function*(){if((n==null?void 0:n.length)<=0){Y.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}b(!1),d(!0);const S=new FormData;S.append("file",n[0]);const y=yield(0,ne.ZP)("/api/practices/file_import.json",{method:"post",body:S},!0);d(!1),y.status!==-1&&(b(!0),u(y))})},"\u786E\u8BA4\u4E0A\u4F20")),v&&!s&&p.createElement("div",null,p.createElement("p",{style:{paddingLeft:15,fontSize:14}},"\u4E0A\u4F20\u7ED3\u679C"),p.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},p.createElement("span",{style:{flex:"1",lineHeight:"30px"}}," \u672C\u6B21\u4E0A\u4F20 \u65B0\u589E",p.createElement("span",{style:{color:"#FA6400"}},f==null?void 0:f.success),"\u6761\u8BD5\u9898\uFF0C\u4E0A\u4F20\u6210\u529F",p.createElement("span",{style:{color:"#FA6400"}},f==null?void 0:f.success),"\u6761\u6570\u636E",!!((Fe=f==null?void 0:f.fail)!=null&&Fe.length)&&p.createElement("span",null,"\uFF0C\u5931\u8D25",p.createElement("span",{style:{color:"#FA6400"}},(a=f==null?void 0:f.fail)==null?void 0:a.length),"\u6761\u6570\u636E")),!!((t=f==null?void 0:f.fail)!=null&&t.length)&&p.createElement(V.ZP,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:()=>{(0,te.FH)("",(0,te.NY)({url:D.Z.API_SERVER+(f==null?void 0:f.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),p.createElement(me.Z,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:s})))};var Ne=(0,Z.connect)(({user:L,globalSetting:j})=>({user:L,globalSetting:j}))(Se)},25930:function(Rt,Me,l){l.d(Me,{Cd:function(){return ke}});var p=l(54476),Z=l(33885),Y=l(75931),F=l(59301),we=l(92310),ee=l.n(we),V={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},me=function(){var t=(0,F.useRef)([]),n=(0,F.useRef)(null);return(0,F.useEffect)(function(){var i=Date.now(),f=!1;t.current.forEach(function(u){if(u){f=!0;var v=u.style;v.transitionDuration=".3s, .3s, .3s, .06s",n.current&&i-n.current<100&&(v.transitionDuration="0s, 0s")}}),f&&(n.current=Date.now())}),t.current},te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],re=function(t){var n=(0,Z.Z)((0,Z.Z)({},V),t),i=n.className,f=n.percent,u=n.prefixCls,v=n.strokeColor,b=n.strokeLinecap,s=n.strokeWidth,d=n.style,g=n.trailColor,S=n.trailWidth,y=n.transition,R=(0,Y.Z)(n,te);delete R.gapPosition;var E=Array.isArray(f)?f:[f],k=Array.isArray(v)?v:[v],B=me(),M=s/2,T=100-s/2,z="M ".concat(b==="round"?M:0,",").concat(M,`
L `).concat(b==="round"?T:100,",").concat(M),G="0 0 100 ".concat(s),$=0;return F.createElement("svg",(0,p.Z)({className:ee()("".concat(u,"-line"),i),viewBox:G,preserveAspectRatio:"none",style:d},R),F.createElement("path",{className:"".concat(u,"-line-trail"),d:z,strokeLinecap:b,stroke:g,strokeWidth:S||s,fillOpacity:"0"}),E.map(function(e,c){var r=1;switch(b){case"round":r=1-s/100;break;case"square":r=1-s/2/100;break;default:r=1;break}var h={strokeDasharray:"".concat(e*r,"px, 100px"),strokeDashoffset:"-".concat($,"px"),transition:y||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},o=k[c]||k[k.length-1];return $+=e,F.createElement("path",{key:c,className:"".concat(u,"-line-path"),d:z,strokeLinecap:b,stroke:o,strokeWidth:s,fillOpacity:"0",ref:function(w){B[c]=w},style:h})}))},ne=re,D=l(76190),Ee=l(42978),m=l(47273),xe=0,Le=(0,m.Z)();function Ze(){var a;return Le?(a=xe,xe+=1):a="TEST_OR_SSR",a}var Be=function(a){var t=F.useState(),n=(0,Ee.Z)(t,2),i=n[0],f=n[1];return F.useEffect(function(){f("rc_progress_".concat(Ze()))},[]),a||i},fe=function(t){var n=t.bg,i=t.children;return F.createElement("div",{style:{width:"100%",height:"100%",background:n}},i)};function A(a,t){return Object.keys(a).map(function(n){var i=parseFloat(n),f="".concat(Math.floor(i*t),"%");return"".concat(a[n]," ").concat(f)})}var Se=F.forwardRef(function(a,t){var n=a.prefixCls,i=a.color,f=a.gradientId,u=a.radius,v=a.style,b=a.ptg,s=a.strokeLinecap,d=a.strokeWidth,g=a.size,S=a.gapDegree,y=i&&(0,D.Z)(i)==="object",R=y?"#FFF":void 0,E=g/2,k=F.createElement("circle",{className:"".concat(n,"-circle-path"),r:u,cx:E,cy:E,stroke:R,strokeLinecap:s,strokeWidth:d,opacity:b===0?0:1,style:v,ref:t});if(!y)return k;var B="".concat(f,"-conic"),M=S?"".concat(180+S/2,"deg"):"0deg",T=A(i,(360-S)/360),z=A(i,1),G="conic-gradient(from ".concat(M,", ").concat(T.join(", "),")"),$="linear-gradient(to ".concat(S?"bottom":"top",", ").concat(z.join(", "),")");return F.createElement(F.Fragment,null,F.createElement("mask",{id:B},k),F.createElement("foreignObject",{x:0,y:0,width:g,height:g,mask:"url(#".concat(B,")")},F.createElement(fe,{bg:$},F.createElement(fe,{bg:G}))))}),Ne=Se,L=100,j=function(t,n,i,f,u,v,b,s,d,g){var S=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,y=i/100*360*((360-v)/360),R=v===0?0:{bottom:0,top:180,left:90,right:-90}[b],E=(100-f)/100*n;d==="round"&&f!==100&&(E+=g/2,E>=n&&(E=n-.01));var k=L/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:E+S,transform:"rotate(".concat(u+y+R,"deg)"),transformOrigin:"".concat(k,"px ").concat(k,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},U=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function q(a){var t=a!=null?a:[];return Array.isArray(t)?t:[t]}var be=function(t){var n=(0,Z.Z)((0,Z.Z)({},V),t),i=n.id,f=n.prefixCls,u=n.steps,v=n.strokeWidth,b=n.trailWidth,s=n.gapDegree,d=s===void 0?0:s,g=n.gapPosition,S=n.trailColor,y=n.strokeLinecap,R=n.style,E=n.className,k=n.strokeColor,B=n.percent,M=(0,Y.Z)(n,U),T=L/2,z=Be(i),G="".concat(z,"-gradient"),$=T-v/2,e=Math.PI*2*$,c=d>0?90+d/2:-90,r=e*((360-d)/360),h=(0,D.Z)(u)==="object"?u:{count:u,gap:2},o=h.count,P=h.gap,w=q(B),N=q(k),H=N.find(function(pe){return pe&&(0,D.Z)(pe)==="object"}),I=H&&(0,D.Z)(H)==="object",ae=I?"butt":y,K=j(e,r,0,100,c,d,g,S,ae,v),X=me(),O=function(){var ve=0;return w.map(function(ge,ue){var _=N[ue]||N[N.length-1],de=j(e,r,ve,ge,c,d,g,_,ae,v);return ve+=ge,F.createElement(Ne,{key:ue,color:_,ptg:ge,radius:$,prefixCls:f,gradientId:G,style:de,strokeLinecap:ae,strokeWidth:v,gapDegree:d,ref:function(W){X[ue]=W},size:L})}).reverse()},le=function(){var ve=Math.round(o*(w[0]/100)),ge=100/o,ue=0;return new Array(o).fill(null).map(function(_,de){var oe=de<=ve-1?N[0]:S,W=oe&&(0,D.Z)(oe)==="object"?"url(#".concat(G,")"):void 0,Ye=j(e,r,ue,ge,c,d,g,oe,"butt",v,P);return ue+=(r-Ye.strokeDashoffset+P)*100/r,F.createElement("circle",{key:de,className:"".concat(f,"-circle-path"),r:$,cx:T,cy:T,stroke:W,strokeWidth:v,opacity:1,style:Ye,ref:function(lt){X[de]=lt}})})};return F.createElement("svg",(0,p.Z)({className:ee()("".concat(f,"-circle"),E),viewBox:"0 0 ".concat(L," ").concat(L),style:R,id:i,role:"presentation"},M),!o&&F.createElement("circle",{className:"".concat(f,"-circle-trail"),r:$,cx:T,cy:T,stroke:S,strokeLinecap:ae,strokeWidth:b||v,style:K}),o?le():O())},ke=be,Fe={Line:ne,Circle:ke}},29301:function(Rt,Me,l){l.d(Me,{Z:function(){return a}});var p=l(54476),Z=l(59301),Y=l(11592),F=l(48736),we=l(33885),ee=l(76190),V=l(76846),me=l(8654),te=Z.createContext(null);function re(t){var n=t.children,i=t.onBatchResize,f=Z.useRef(0),u=Z.useRef([]),v=Z.useContext(te),b=Z.useCallback(function(s,d,g){f.current+=1;var S=f.current;u.current.push({size:s,element:d,data:g}),Promise.resolve().then(function(){S===f.current&&(i==null||i(u.current),u.current=[])}),v==null||v(s,d,g)},[i,v]);return Z.createElement(te.Provider,{value:b},n)}var ne=l(76374),D=new Map;function Ee(t){t.forEach(function(n){var i,f=n.target;(i=D.get(f))===null||i===void 0||i.forEach(function(u){return u(f)})})}var m=new ne.Z(Ee),xe=null,Le=null;function Ze(t,n){D.has(t)||(D.set(t,new Set),m.observe(t)),D.get(t).add(n)}function Be(t,n){D.has(t)&&(D.get(t).delete(n),D.get(t).size||(m.unobserve(t),D.delete(t)))}var fe=l(67732),A=l(83652),Se=l(42403),Ne=l(158),L=function(t){(0,Se.Z)(i,t);var n=(0,Ne.Z)(i);function i(){return(0,fe.Z)(this,i),n.apply(this,arguments)}return(0,A.Z)(i,[{key:"render",value:function(){return this.props.children}}]),i}(Z.Component);function j(t,n){var i=t.children,f=t.disabled,u=Z.useRef(null),v=Z.useRef(null),b=Z.useContext(te),s=typeof i=="function",d=s?i(u):i,g=Z.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),S=!s&&Z.isValidElement(d)&&(0,me.Yr)(d),y=S?(0,me.C4)(d):null,R=(0,me.x1)(y,u),E=function(){var T;return(0,V.ZP)(u.current)||(u.current&&(0,ee.Z)(u.current)==="object"?(0,V.ZP)((T=u.current)===null||T===void 0?void 0:T.nativeElement):null)||(0,V.ZP)(v.current)};Z.useImperativeHandle(n,function(){return E()});var k=Z.useRef(t);k.current=t;var B=Z.useCallback(function(M){var T=k.current,z=T.onResize,G=T.data,$=M.getBoundingClientRect(),e=$.width,c=$.height,r=M.offsetWidth,h=M.offsetHeight,o=Math.floor(e),P=Math.floor(c);if(g.current.width!==o||g.current.height!==P||g.current.offsetWidth!==r||g.current.offsetHeight!==h){var w={width:o,height:P,offsetWidth:r,offsetHeight:h};g.current=w;var N=r===Math.round(e)?e:r,H=h===Math.round(c)?c:h,I=(0,we.Z)((0,we.Z)({},w),{},{offsetWidth:N,offsetHeight:H});b==null||b(I,M,G),z&&Promise.resolve().then(function(){z(I,M)})}},[]);return Z.useEffect(function(){var M=E();return M&&!f&&Ze(M,B),function(){return Be(M,B)}},[u.current,f]),Z.createElement(L,{ref:v},S?Z.cloneElement(d,{ref:R}):d)}var U=Z.forwardRef(j),q=U,be="rc-observer-key";function ke(t,n){var i=t.children,f=typeof i=="function"?[i]:(0,Y.Z)(i);return f.map(function(u,v){var b=(u==null?void 0:u.key)||"".concat(be,"-").concat(v);return Z.createElement(q,(0,p.Z)({},t,{key:b,ref:v===0?n:void 0}),u)})}var Fe=Z.forwardRef(ke);Fe.Collection=re;var a=Fe},29125:function(Rt,Me,l){l.d(Me,{G:function(){return F},Z:function(){return Be}});var p=l(92310),Z=l.n(p),Y=l(59301);function F(fe){var A=fe.children,Se=fe.prefixCls,Ne=fe.id,L=fe.overlayInnerStyle,j=fe.bodyClassName,U=fe.className,q=fe.style;return Y.createElement("div",{className:Z()("".concat(Se,"-content"),U),style:q},Y.createElement("div",{className:Z()("".concat(Se,"-inner"),j),id:Ne,role:"tooltip",style:L},typeof A=="function"?A():A))}var we=l(54476),ee=l(33885),V=l(75931),me=l(65030),te={shiftX:64,adjustY:1},re={adjustX:1,shiftY:!0},ne=[0,0],D={left:{points:["cr","cl"],overflow:re,offset:[-4,0],targetOffset:ne},right:{points:["cl","cr"],overflow:re,offset:[4,0],targetOffset:ne},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:ne},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:ne},topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:ne},leftTop:{points:["tr","tl"],overflow:re,offset:[-4,0],targetOffset:ne},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:ne},rightTop:{points:["tl","tr"],overflow:re,offset:[4,0],targetOffset:ne},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:ne},rightBottom:{points:["bl","br"],overflow:re,offset:[4,0],targetOffset:ne},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:ne},leftBottom:{points:["br","bl"],overflow:re,offset:[-4,0],targetOffset:ne}},Ee=null,m=l(80402),xe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Le=function(A,Se){var Ne=A.overlayClassName,L=A.trigger,j=L===void 0?["hover"]:L,U=A.mouseEnterDelay,q=U===void 0?0:U,be=A.mouseLeaveDelay,ke=be===void 0?.1:be,Fe=A.overlayStyle,a=A.prefixCls,t=a===void 0?"rc-tooltip":a,n=A.children,i=A.onVisibleChange,f=A.afterVisibleChange,u=A.transitionName,v=A.animation,b=A.motion,s=A.placement,d=s===void 0?"right":s,g=A.align,S=g===void 0?{}:g,y=A.destroyTooltipOnHide,R=y===void 0?!1:y,E=A.defaultVisible,k=A.getTooltipContainer,B=A.overlayInnerStyle,M=A.arrowContent,T=A.overlay,z=A.id,G=A.showArrow,$=G===void 0?!0:G,e=A.classNames,c=A.styles,r=(0,V.Z)(A,xe),h=(0,m.Z)(z),o=(0,Y.useRef)(null);(0,Y.useImperativeHandle)(Se,function(){return o.current});var P=(0,ee.Z)({},r);"visible"in A&&(P.popupVisible=A.visible);var w=function(){return Y.createElement(F,{key:"content",prefixCls:t,id:h,bodyClassName:e==null?void 0:e.body,overlayInnerStyle:(0,ee.Z)((0,ee.Z)({},B),c==null?void 0:c.body)},T)},N=function(){var I=Y.Children.only(n),ae=(I==null?void 0:I.props)||{},K=(0,ee.Z)((0,ee.Z)({},ae),{},{"aria-describedby":T?h:null});return Y.cloneElement(n,K)};return Y.createElement(me.Z,(0,we.Z)({popupClassName:Z()(Ne,e==null?void 0:e.root),prefixCls:t,popup:w,action:j,builtinPlacements:D,popupPlacement:d,ref:o,popupAlign:S,getPopupContainer:k,onPopupVisibleChange:i,afterPopupVisibleChange:f,popupTransitionName:u,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:R,mouseLeaveDelay:ke,popupStyle:(0,ee.Z)((0,ee.Z)({},Fe),c==null?void 0:c.root),mouseEnterDelay:q,arrow:$},P),N())},Ze=(0,Y.forwardRef)(Le),Be=Ze},90472:function(Rt,Me,l){l.d(Me,{Z:function(){return f}});var p=l(54476),Z=l(67732),Y=l(83652),F=l(31226),we=l(42403),ee=l(158),V=l(20068),me=l(59301),te=l(33885),re=l(75931),ne=l(76190),D=l(75044),Ee=l(3202),m=l(94480),xe=l(92310),Le=l.n(xe),Ze=l(26112),Be=l(48736),fe=function(u,v){if(u&&v){var b=Array.isArray(v)?v:v.split(","),s=u.name||"",d=u.type||"",g=d.replace(/\/.*$/,"");return b.some(function(S){var y=S.trim();if(/^\*(\/\*)?$/.test(S))return!0;if(y.charAt(0)==="."){var R=s.toLowerCase(),E=y.toLowerCase(),k=[E];return(E===".jpg"||E===".jpeg")&&(k=[".jpg",".jpeg"]),k.some(function(B){return R.endsWith(B)})}return/\/\*$/.test(y)?g===y.replace(/\/.*$/,""):d===y?!0:/^\w+$/.test(y)?((0,Be.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(y,"'.Skip for check.")),!0):!1})}return!0};function A(u,v){var b="cannot ".concat(u.method," ").concat(u.action," ").concat(v.status,"'"),s=new Error(b);return s.status=v.status,s.method=u.method,s.url=u.action,s}function Se(u){var v=u.responseText||u.response;if(!v)return v;try{return JSON.parse(v)}catch(b){return v}}function Ne(u){var v=new XMLHttpRequest;u.onProgress&&v.upload&&(v.upload.onprogress=function(g){g.total>0&&(g.percent=g.loaded/g.total*100),u.onProgress(g)});var b=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var g=u.data[d];if(Array.isArray(g)){g.forEach(function(S){b.append("".concat(d,"[]"),S)});return}b.append(d,g)}),u.file instanceof Blob?b.append(u.filename,u.file,u.file.name):b.append(u.filename,u.file),v.onerror=function(g){u.onError(g)},v.onload=function(){return v.status<200||v.status>=300?u.onError(A(u,v),Se(v)):u.onSuccess(Se(v),v)},v.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in v&&(v.withCredentials=!0);var s=u.headers||{};return s["X-Requested-With"]!==null&&v.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(s).forEach(function(d){s[d]!==null&&v.setRequestHeader(d,s[d])}),v.send(b),{abort:function(){v.abort()}}}var L=function(){var u=(0,Ee.Z)((0,D.Z)().mark(function v(b,s){var d,g,S,y,R,E,k,B;return(0,D.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:E=function(){return E=(0,Ee.Z)((0,D.Z)().mark(function G($){return(0,D.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",new Promise(function(r){$.file(function(h){s(h)?($.fullPath&&!h.webkitRelativePath&&(Object.defineProperties(h,{webkitRelativePath:{writable:!0}}),h.webkitRelativePath=$.fullPath.replace(/^\//,""),Object.defineProperties(h,{webkitRelativePath:{writable:!1}})),r(h)):r(null)})}));case 1:case"end":return c.stop()}},G)})),E.apply(this,arguments)},R=function(G){return E.apply(this,arguments)},y=function(){return y=(0,Ee.Z)((0,D.Z)().mark(function G($){var e,c,r,h,o;return(0,D.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:e=$.createReader(),c=[];case 2:return w.next=5,new Promise(function(N){e.readEntries(N,function(){return N([])})});case 5:if(r=w.sent,h=r.length,h){w.next=9;break}return w.abrupt("break",12);case 9:for(o=0;o<h;o++)c.push(r[o]);w.next=2;break;case 12:return w.abrupt("return",c);case 13:case"end":return w.stop()}},G)})),y.apply(this,arguments)},S=function(G){return y.apply(this,arguments)},d=[],g=[],b.forEach(function(z){return g.push(z.webkitGetAsEntry())}),k=function(){var z=(0,Ee.Z)((0,D.Z)().mark(function G($,e){var c,r;return(0,D.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if($){o.next=2;break}return o.abrupt("return");case 2:if($.path=e||"",!$.isFile){o.next=10;break}return o.next=6,R($);case 6:c=o.sent,c&&d.push(c),o.next=15;break;case 10:if(!$.isDirectory){o.next=15;break}return o.next=13,S($);case 13:r=o.sent,g.push.apply(g,(0,m.Z)(r));case 15:case"end":return o.stop()}},G)}));return function($,e){return z.apply(this,arguments)}}(),B=0;case 9:if(!(B<g.length)){T.next=15;break}return T.next=12,k(g[B]);case 12:B++,T.next=9;break;case 15:return T.abrupt("return",d);case 16:case"end":return T.stop()}},v)}));return function(b,s){return u.apply(this,arguments)}}(),j=L,U=+new Date,q=0;function be(){return"rc-upload-".concat(U,"-").concat(++q)}var ke=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Fe=function(u){(0,we.Z)(b,u);var v=(0,ee.Z)(b);function b(){var s;(0,Z.Z)(this,b);for(var d=arguments.length,g=new Array(d),S=0;S<d;S++)g[S]=arguments[S];return s=v.call.apply(v,[this].concat(g)),(0,V.Z)((0,F.Z)(s),"state",{uid:be()}),(0,V.Z)((0,F.Z)(s),"reqs",{}),(0,V.Z)((0,F.Z)(s),"fileInput",void 0),(0,V.Z)((0,F.Z)(s),"_isMounted",void 0),(0,V.Z)((0,F.Z)(s),"onChange",function(y){var R=s.props,E=R.accept,k=R.directory,B=y.target.files,M=(0,m.Z)(B).filter(function(T){return!k||fe(T,E)});s.uploadFiles(M),s.reset()}),(0,V.Z)((0,F.Z)(s),"onClick",function(y){var R=s.fileInput;if(R){var E=y.target,k=s.props.onClick;if(E&&E.tagName==="BUTTON"){var B=R.parentNode;B.focus(),E.blur()}R.click(),k&&k(y)}}),(0,V.Z)((0,F.Z)(s),"onKeyDown",function(y){y.key==="Enter"&&s.onClick(y)}),(0,V.Z)((0,F.Z)(s),"onFileDrop",function(){var y=(0,Ee.Z)((0,D.Z)().mark(function R(E){var k,B,M;return(0,D.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(k=s.props.multiple,E.preventDefault(),E.type!=="dragover"){z.next=4;break}return z.abrupt("return");case 4:if(!s.props.directory){z.next=11;break}return z.next=7,j(Array.prototype.slice.call(E.dataTransfer.items),function(G){return fe(G,s.props.accept)});case 7:B=z.sent,s.uploadFiles(B),z.next=14;break;case 11:M=(0,m.Z)(E.dataTransfer.files).filter(function(G){return fe(G,s.props.accept)}),k===!1&&(M=M.slice(0,1)),s.uploadFiles(M);case 14:case"end":return z.stop()}},R)}));return function(R){return y.apply(this,arguments)}}()),(0,V.Z)((0,F.Z)(s),"uploadFiles",function(y){var R=(0,m.Z)(y),E=R.map(function(k){return k.uid=be(),s.processFile(k,R)});Promise.all(E).then(function(k){var B=s.props.onBatchStart;B==null||B(k.map(function(M){var T=M.origin,z=M.parsedFile;return{file:T,parsedFile:z}})),k.filter(function(M){return M.parsedFile!==null}).forEach(function(M){s.post(M)})})}),(0,V.Z)((0,F.Z)(s),"processFile",function(){var y=(0,Ee.Z)((0,D.Z)().mark(function R(E,k){var B,M,T,z,G,$,e,c,r;return(0,D.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(B=s.props.beforeUpload,M=E,!B){o.next=14;break}return o.prev=3,o.next=6,B(E,k);case 6:M=o.sent,o.next=12;break;case 9:o.prev=9,o.t0=o.catch(3),M=!1;case 12:if(M!==!1){o.next=14;break}return o.abrupt("return",{origin:E,parsedFile:null,action:null,data:null});case 14:if(T=s.props.action,typeof T!="function"){o.next=21;break}return o.next=18,T(E);case 18:z=o.sent,o.next=22;break;case 21:z=T;case 22:if(G=s.props.data,typeof G!="function"){o.next=29;break}return o.next=26,G(E);case 26:$=o.sent,o.next=30;break;case 29:$=G;case 30:return e=((0,ne.Z)(M)==="object"||typeof M=="string")&&M?M:E,e instanceof File?c=e:c=new File([e],E.name,{type:E.type}),r=c,r.uid=E.uid,o.abrupt("return",{origin:E,data:$,parsedFile:r,action:z});case 35:case"end":return o.stop()}},R,null,[[3,9]])}));return function(R,E){return y.apply(this,arguments)}}()),(0,V.Z)((0,F.Z)(s),"saveFileInput",function(y){s.fileInput=y}),s}return(0,Y.Z)(b,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(d){var g=this,S=d.data,y=d.origin,R=d.action,E=d.parsedFile;if(this._isMounted){var k=this.props,B=k.onStart,M=k.customRequest,T=k.name,z=k.headers,G=k.withCredentials,$=k.method,e=y.uid,c=M||Ne,r={action:R,filename:T,data:S,file:E,headers:z,withCredentials:G,method:$||"post",onProgress:function(o){var P=g.props.onProgress;P==null||P(o,E)},onSuccess:function(o,P){var w=g.props.onSuccess;w==null||w(o,E,P),delete g.reqs[e]},onError:function(o,P){var w=g.props.onError;w==null||w(o,P,E),delete g.reqs[e]}};B(y),this.reqs[e]=c(r)}}},{key:"reset",value:function(){this.setState({uid:be()})}},{key:"abort",value:function(d){var g=this.reqs;if(d){var S=d.uid?d.uid:d;g[S]&&g[S].abort&&g[S].abort(),delete g[S]}else Object.keys(g).forEach(function(y){g[y]&&g[y].abort&&g[y].abort(),delete g[y]})}},{key:"render",value:function(){var d=this.props,g=d.component,S=d.prefixCls,y=d.className,R=d.classNames,E=R===void 0?{}:R,k=d.disabled,B=d.id,M=d.name,T=d.style,z=d.styles,G=z===void 0?{}:z,$=d.multiple,e=d.accept,c=d.capture,r=d.children,h=d.directory,o=d.openFileDialogOnClick,P=d.onMouseEnter,w=d.onMouseLeave,N=d.hasControlInside,H=(0,re.Z)(d,ke),I=Le()((0,V.Z)((0,V.Z)((0,V.Z)({},S,!0),"".concat(S,"-disabled"),k),y,y)),ae=h?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},K=k?{}:{onClick:o?this.onClick:function(){},onKeyDown:o?this.onKeyDown:function(){},onMouseEnter:P,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:N?void 0:"0"};return me.createElement(g,(0,p.Z)({},K,{className:I,role:N?void 0:"button",style:T}),me.createElement("input",(0,p.Z)({},(0,Ze.Z)(H,{aria:!0,data:!0}),{id:B,name:M,disabled:k,type:"file",ref:this.saveFileInput,onClick:function(O){return O.stopPropagation()},key:this.state.uid,style:(0,te.Z)({display:"none"},G.input),className:E.input,accept:e},ae,{multiple:$,onChange:this.onChange},c!=null?{capture:c}:{})),r)}}]),b}(me.Component),a=Fe;function t(){}var n=function(u){(0,we.Z)(b,u);var v=(0,ee.Z)(b);function b(){var s;(0,Z.Z)(this,b);for(var d=arguments.length,g=new Array(d),S=0;S<d;S++)g[S]=arguments[S];return s=v.call.apply(v,[this].concat(g)),(0,V.Z)((0,F.Z)(s),"uploader",void 0),(0,V.Z)((0,F.Z)(s),"saveUploader",function(y){s.uploader=y}),s}return(0,Y.Z)(b,[{key:"abort",value:function(d){this.uploader.abort(d)}},{key:"render",value:function(){return me.createElement(a,(0,p.Z)({},this.props,{ref:this.saveUploader}))}}]),b}(me.Component);(0,V.Z)(n,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:t,onError:t,onSuccess:t,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var i=n,f=i},49658:function(Rt,Me){Me.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var l=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(l)||/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(l==null?void 0:l.substr(0,4))}},76374:function(Rt,Me,l){var p=function(){if(typeof Map!="undefined")return Map;function a(t,n){var i=-1;return t.some(function(f,u){return f[0]===n?(i=u,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=a(this.__entries__,n),f=this.__entries__[i];return f&&f[1]},t.prototype.set=function(n,i){var f=a(this.__entries__,n);~f?this.__entries__[f][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,f=a(i,n);~f&&i.splice(f,1)},t.prototype.has=function(n){return!!~a(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var f=0,u=this.__entries__;f<u.length;f++){var v=u[f];n.call(i,v[1],v[0])}},t}()}(),Z=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Y=function(){return typeof l.g!="undefined"&&l.g.Math===Math?l.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),F=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Y):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)}}(),we=2;function ee(a,t){var n=!1,i=!1,f=0;function u(){n&&(n=!1,a()),i&&b()}function v(){F(u)}function b(){var s=Date.now();if(n){if(s-f<we)return;i=!0}else n=!0,i=!1,setTimeout(v,t);f=s}return b}var V=20,me=["top","right","bottom","left","width","height","size","weight"],te=typeof MutationObserver!="undefined",re=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ee(this.refresh.bind(this),V)}return a.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},a.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},a.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},a.prototype.connect_=function(){!Z||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),te?(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)},a.prototype.disconnect_=function(){!Z||!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)},a.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,f=me.some(function(u){return!!~i.indexOf(u)});f&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),ne=function(a,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var f=i[n];Object.defineProperty(a,f,{value:t[f],enumerable:!1,writable:!1,configurable:!0})}return a},D=function(a){var t=a&&a.ownerDocument&&a.ownerDocument.defaultView;return t||Y},Ee=L(0,0,0,0);function m(a){return parseFloat(a)||0}function xe(a){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,f){var u=a["border-"+f+"-width"];return i+m(u)},0)}function Le(a){for(var t=["top","right","bottom","left"],n={},i=0,f=t;i<f.length;i++){var u=f[i],v=a["padding-"+u];n[u]=m(v)}return n}function Ze(a){var t=a.getBBox();return L(0,0,t.width,t.height)}function Be(a){var t=a.clientWidth,n=a.clientHeight;if(!t&&!n)return Ee;var i=D(a).getComputedStyle(a),f=Le(i),u=f.left+f.right,v=f.top+f.bottom,b=m(i.width),s=m(i.height);if(i.boxSizing==="border-box"&&(Math.round(b+u)!==t&&(b-=xe(i,"left","right")+u),Math.round(s+v)!==n&&(s-=xe(i,"top","bottom")+v)),!A(a)){var d=Math.round(b+u)-t,g=Math.round(s+v)-n;Math.abs(d)!==1&&(b-=d),Math.abs(g)!==1&&(s-=g)}return L(f.left,f.top,b,s)}var fe=function(){return typeof SVGGraphicsElement!="undefined"?function(a){return a instanceof D(a).SVGGraphicsElement}:function(a){return a instanceof D(a).SVGElement&&typeof a.getBBox=="function"}}();function A(a){return a===D(a).document.documentElement}function Se(a){return Z?fe(a)?Ze(a):Be(a):Ee}function Ne(a){var t=a.x,n=a.y,i=a.width,f=a.height,u=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,v=Object.create(u.prototype);return ne(v,{x:t,y:n,width:i,height:f,top:n,right:t+i,bottom:f+n,left:t}),v}function L(a,t,n,i){return{x:a,y:t,width:n,height:i}}var j=function(){function a(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=L(0,0,0,0),this.target=t}return a.prototype.isActive=function(){var t=Se(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},a}(),U=function(){function a(t,n){var i=Ne(n);ne(this,{target:t,contentRect:i})}return a}(),q=function(){function a(t,n,i){if(this.activeObservations_=[],this.observations_=new p,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return a.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof D(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new j(t)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof D(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new U(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),be=typeof WeakMap!="undefined"?new WeakMap:new p,ke=function(){function a(t){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=re.getInstance(),i=new q(t,n,this);be.set(this,i)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ke.prototype[a]=function(){var t;return(t=be.get(this))[a].apply(t,arguments)}});var Fe=function(){return typeof Y.ResizeObserver!="undefined"?Y.ResizeObserver:ke}();Me.Z=Fe}}]);