919.066fb075.async.js 50 KB

1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[919],{33603:function(re,V,v){"use strict";v.d(V,{mL:function(){return l},q0:function(){return y}});var O=v(93355),M=function(){return{height:0,opacity:0}},A=function(R){var D=R.scrollHeight;return{height:D,opacity:1}},Z=function(R){return{height:R?R.offsetHeight:0}},g=function(R,D){return(D==null?void 0:D.deadline)===!0||D.propertyName==="height"},H={motionName:"ant-motion-collapse",onAppearStart:M,onEnterStart:M,onAppearActive:A,onEnterActive:A,onLeaveStart:Z,onLeaveActive:M,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},k=(0,O.b)("bottomLeft","bottomRight","topLeft","topRight"),y=function(R){return R!==void 0&&(R==="topLeft"||R==="topRight")?"slide-down":"slide-up"},l=function(R,D,j){return j!==void 0?j:"".concat(R,"-").concat(D)};V.ZP=H},65223:function(re,V,v){"use strict";v.d(V,{q3:function(){return g},qI:function(){return H},RV:function(){return k},Rk:function(){return y},aM:function(){return l},Ux:function(){return N}});var O=v(22122),M=v(51273),A=v(98423),Z=v(67294),g=Z.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),H=Z.createContext(null),k=function(D){var j=(0,A.Z)(D,["prefixCls"]);return Z.createElement(M.RV,(0,O.Z)({},j))},y=Z.createContext({prefixCls:""}),l=Z.createContext({}),N=function(D){var j=D.children,B=D.status,_=D.override,J=(0,Z.useContext)(l),le=(0,Z.useMemo)(function(){var K=(0,O.Z)({},J);return _&&delete K.isFormItemInput,B&&(delete K.status,delete K.hasFeedback,delete K.feedbackIcon),K},[B,_,J]);return Z.createElement(l.Provider,{value:le},j)}},48717:function(re,V,v){"use strict";v.d(V,{Z:function(){return Ie}});var O=v(22122),M=v(67294),A=v(50344),Z=v(80334),g=v(28991),H=v(42550),k=v(34203),y=v(91033),l=new Map;function N(f){f.forEach(function(d){var p,h=d.target;(p=l.get(h))===null||p===void 0||p.forEach(function(b){return b(h)})})}var R=new y.Z(N),D=null,j=null;function B(f,d){l.has(f)||(l.set(f,new Set),R.observe(f)),l.get(f).add(d)}function _(f,d){l.has(f)&&(l.get(f).delete(d),l.get(f).size||(R.unobserve(f),l.delete(f)))}var J=v(6610),le=v(5991),K=v(10379),Me=v(44144),fe=function(f){(0,K.Z)(p,f);var d=(0,Me.Z)(p);function p(){return(0,J.Z)(this,p),d.apply(this,arguments)}return(0,le.Z)(p,[{key:"render",value:function(){return this.props.children}}]),p}(M.Component),he=M.createContext(null);function ye(f){var d=f.children,p=f.onBatchResize,h=M.useRef(0),b=M.useRef([]),x=M.useContext(he),W=M.useCallback(function(X,F,G){h.current+=1;var de=h.current;b.current.push({size:X,element:F,data:G}),Promise.resolve().then(function(){de===h.current&&(p==null||p(b.current),b.current=[])}),x==null||x(X,F,G)},[p,x]);return M.createElement(he.Provider,{value:W},d)}function ie(f,d){var p=f.children,h=f.disabled,b=M.useRef(null),x=M.useRef(null),W=M.useContext(he),X=typeof p=="function",F=X?p(b):p,G=M.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),de=!X&&M.isValidElement(F)&&(0,H.Yr)(F),He=de?F.ref:null,nt=M.useMemo(function(){return(0,H.sQ)(He,b)},[He,b]),je=function(){return(0,k.Z)(b.current)||(0,k.Z)(x.current)};M.useImperativeHandle(d,function(){return je()});var Ue=M.useRef(f);Ue.current=f;var $e=M.useCallback(function(ne){var Ye=Ue.current,be=Ye.onResize,Ke=Ye.data,me=ne.getBoundingClientRect(),ze=me.width,ke=me.height,Te=ne.offsetWidth,Oe=ne.offsetHeight,Ee=Math.floor(ze),Ve=Math.floor(ke);if(G.current.width!==Ee||G.current.height!==Ve||G.current.offsetWidth!==Te||G.current.offsetHeight!==Oe){var Be={width:Ee,height:Ve,offsetWidth:Te,offsetHeight:Oe};G.current=Be;var rt=Te===Math.round(ze)?ze:Te,it=Oe===Math.round(ke)?ke:Oe,Ge=(0,g.Z)((0,g.Z)({},Be),{},{offsetWidth:rt,offsetHeight:it});W==null||W(Ge,ne,Ke),be&&Promise.resolve().then(function(){be(Ge,ne)})}},[]);return M.useEffect(function(){var ne=je();return ne&&!h&&B(ne,$e),function(){return _(ne,$e)}},[b.current,h]),M.createElement(fe,{ref:x},de?M.cloneElement(F,{ref:nt}):F)}var U=M.forwardRef(ie),Pe=U,ce="rc-observer-key";function oe(f,d){var p=f.children,h=typeof p=="function"?[p]:(0,A.Z)(p);return h.map(function(b,x){var W=(b==null?void 0:b.key)||"".concat(ce,"-").concat(x);return M.createElement(Pe,(0,O.Z)({},f,{key:W,ref:x===0?d:void 0}),b)})}var we=M.forwardRef(oe);we.Collection=ye;var Ie=we},2306:function(re,V,v){"use strict";v.d(V,{Z:function(){return An}});var O=v(28991),M=v(22122),A=v(6610),Z=v(5991),g=v(63349),H=v(10379),k=v(44144),y=v(96156),l=v(67294),N=v(73935),R=v(75164),D=v(94999),j=v(34203),B=v(42550),_=v(64019),J=v(98924),le=(0,l.forwardRef)(function(e,r){var n=e.didUpdate,i=e.getContainer,a=e.children,s=(0,l.useRef)(),t=(0,l.useRef)();(0,l.useImperativeHandle)(r,function(){return{}});var u=(0,l.useRef)(!1);return!u.current&&(0,J.Z)()&&(t.current=i(),s.current=t.current.parentNode,u.current=!0),(0,l.useEffect)(function(){n==null||n(e)}),(0,l.useEffect)(function(){return t.current.parentNode===null&&s.current!==null&&s.current.appendChild(t.current),function(){var o,c;(o=t.current)===null||o===void 0||(c=o.parentNode)===null||c===void 0||c.removeChild(t.current)}},[]),t.current?N.createPortal(a,t.current):null}),K=le,Me=v(94184),fe=v.n(Me);function he(e,r,n){return n?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function ye(e,r,n){var i=e[r]||{};return(0,O.Z)((0,O.Z)({},i),n)}function ie(e,r,n,i){for(var a=n.points,s=Object.keys(e),t=0;t<s.length;t+=1){var u=s[t];if(he(e[u].points,a,i))return"".concat(r,"-placement-").concat(u)}return""}var U=v(28481),Pe=v(81253),ce=v(31131),oe=v(63441);function we(e){var r=e.prefixCls,n=e.motion,i=e.animation,a=e.transitionName;return n||(i?{motionName:"".concat(r,"-").concat(i)}:a?{motionName:a}:null)}function Ie(e){var r=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,s=e.maskMotion,t=e.maskAnimation,u=e.maskTransitionName;if(!a)return null;var o={};return(s||u||t)&&(o=(0,O.Z)({motionAppear:!0},we({motion:s,prefixCls:r,transitionName:u,animation:t}))),l.createElement(oe.Z,(0,M.Z)({},o,{visible:n,removeOnLeave:!0}),function(c){var w=c.className;return l.createElement("div",{style:{zIndex:i},className:fe()("".concat(r,"-mask"),w)})})}var f=v(90484);function d(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function p(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?d(Object(n),!0).forEach(function(i){b(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function h(e){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},h(e)}function b(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var x,W={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function X(){if(x!==void 0)return x;x="";var e=document.createElement("p").style,r="Transform";for(var n in W)n+r in e&&(x=n);return x}function F(){return X()?"".concat(X(),"TransitionProperty"):"transitionProperty"}function G(){return X()?"".concat(X(),"Transform"):"transform"}function de(e,r){var n=F();n&&(e.style[n]=r,n!=="transitionProperty"&&(e.style.transitionProperty=r))}function He(e,r){var n=G();n&&(e.style[n]=r,n!=="transform"&&(e.style.transform=r))}function nt(e){return e.style.transitionProperty||e.style[F()]}function je(e){var r=window.getComputedStyle(e,null),n=r.getPropertyValue("transform")||r.getPropertyValue(G());if(n&&n!=="none"){var i=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(i[12]||i[4],0),y:parseFloat(i[13]||i[5],0)}}return{x:0,y:0}}var Ue=/matrix\((.*)\)/,$e=/matrix3d\((.*)\)/;function ne(e,r){var n=window.getComputedStyle(e,null),i=n.getPropertyValue("transform")||n.getPropertyValue(G());if(i&&i!=="none"){var a,s=i.match(Ue);if(s)s=s[1],a=s.split(",").map(function(u){return parseFloat(u,10)}),a[4]=r.x,a[5]=r.y,He(e,"matrix(".concat(a.join(","),")"));else{var t=i.match($e)[1];a=t.split(",").map(function(u){return parseFloat(u,10)}),a[12]=r.x,a[13]=r.y,He(e,"matrix3d(".concat(a.join(","),")"))}}else He(e,"translateX(".concat(r.x,"px) translateY(").concat(r.y,"px) translateZ(0)"))}var Ye=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,be;function Ke(e){var r=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=r}function me(e,r,n){var i=n;if(h(r)==="object"){for(var a in r)r.hasOwnProperty(a)&&me(e,a,r[a]);return}if(typeof i!="undefined"){typeof i=="number"&&(i="".concat(i,"px")),e.style[r]=i;return}return be(e,r)}function ze(e){var r,n,i,a=e.ownerDocument,s=a.body,t=a&&a.documentElement;return r=e.getBoundingClientRect(),n=Math.floor(r.left),i=Math.floor(r.top),n-=t.clientLeft||s.clientLeft||0,i-=t.clientTop||s.clientTop||0,{left:n,top:i}}function ke(e,r){var n=e["page".concat(r?"Y":"X","Offset")],i="scroll".concat(r?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[i],typeof n!="number"&&(n=a.body[i])}return n}function Te(e){return ke(e)}function Oe(e){return ke(e,!0)}function Ee(e){var r=ze(e),n=e.ownerDocument,i=n.defaultView||n.parentWindow;return r.left+=Te(i),r.top+=Oe(i),r}function Ve(e){return e!=null&&e==e.window}function Be(e){return Ve(e)?e.document:e.nodeType===9?e:e.ownerDocument}function rt(e,r,n){var i=n,a="",s=Be(e);return i=i||s.defaultView.getComputedStyle(e,null),i&&(a=i.getPropertyValue(r)||i[r]),a}var it=new RegExp("^(".concat(Ye,")(?!px)[a-z%]+$"),"i"),Ge=/^(top|right|bottom|left)$/,ot="currentStyle",at="runtimeStyle",Re="left",Yt="px";function Kt(e,r){var n=e[ot]&&e[ot][r];if(it.test(n)&&!Ge.test(r)){var i=e.style,a=i[Re],s=e[at][Re];e[at][Re]=e[ot][Re],i[Re]=r==="fontSize"?"1em":n||0,n=i.pixelLeft+Yt,i[Re]=a,e[at][Re]=s}return n===""?"auto":n}typeof window!="undefined"&&(be=window.getComputedStyle?rt:Kt);function Qe(e,r){return e==="left"?r.useCssRight?"right":e:r.useCssBottom?"bottom":e}function wt(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function bt(e,r,n){me(e,"position")==="static"&&(e.style.position="relative");var i=-999,a=-999,s=Qe("left",n),t=Qe("top",n),u=wt(s),o=wt(t);s!=="left"&&(i=999),t!=="top"&&(a=999);var c="",w=Ee(e);("left"in r||"top"in r)&&(c=nt(e)||"",de(e,"none")),"left"in r&&(e.style[u]="",e.style[s]="".concat(i,"px")),"top"in r&&(e.style[o]="",e.style[t]="".concat(a,"px")),Ke(e);var P=Ee(e),C={};for(var m in r)if(r.hasOwnProperty(m)){var E=Qe(m,n),S=m==="left"?i:a,I=w[m]-P[m];E===m?C[E]=S+I:C[E]=S-I}me(e,C),Ke(e),("left"in r||"top"in r)&&de(e,c);var L={};for(var z in r)if(r.hasOwnProperty(z)){var Y=Qe(z,n),ee=r[z]-w[z];z===Y?L[Y]=C[Y]+ee:L[Y]=C[Y]-ee}me(e,L)}function Gt(e,r){var n=Ee(e),i=je(e),a={x:i.x,y:i.y};"left"in r&&(a.x=i.x+r.left-n.left),"top"in r&&(a.y=i.y+r.top-n.top),ne(e,a)}function Qt(e,r,n){if(n.ignoreShake){var i=Ee(e),a=i.left.toFixed(0),s=i.top.toFixed(0),t=r.left.toFixed(0),u=r.top.toFixed(0);if(a===t&&s===u)return}n.useCssRight||n.useCssBottom?bt(e,r,n):n.useCssTransform&&G()in document.body.style?Gt(e,r):bt(e,r,n)}function st(e,r){for(var n=0;n<e.length;n++)r(e[n])}function Et(e){return be(e,"boxSizing")==="border-box"}var Jt=["margin","border","padding"],ut=-1,qt=2,lt=1,en=0;function tn(e,r,n){var i={},a=e.style,s;for(s in r)r.hasOwnProperty(s)&&(i[s]=a[s],a[s]=r[s]);n.call(e);for(s in r)r.hasOwnProperty(s)&&(a[s]=i[s])}function Fe(e,r,n){var i=0,a,s,t;for(s=0;s<r.length;s++)if(a=r[s],a)for(t=0;t<n.length;t++){var u=void 0;a==="border"?u="".concat(a).concat(n[t],"Width"):u=a+n[t],i+=parseFloat(be(e,u))||0}return i}var pe={getParent:function(r){var n=r;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};st(["Width","Height"],function(e){pe["doc".concat(e)]=function(r){var n=r.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],pe["viewport".concat(e)](n))},pe["viewport".concat(e)]=function(r){var n="client".concat(e),i=r.document,a=i.body,s=i.documentElement,t=s[n];return i.compatMode==="CSS1Compat"&&t||a&&a[n]||t}});function Ct(e,r,n){var i=n;if(Ve(e))return r==="width"?pe.viewportWidth(e):pe.viewportHeight(e);if(e.nodeType===9)return r==="width"?pe.docWidth(e):pe.docHeight(e);var a=r==="width"?["Left","Right"]:["Top","Bottom"],s=Math.floor(r==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),t=Et(e),u=0;(s==null||s<=0)&&(s=void 0,u=be(e,r),(u==null||Number(u)<0)&&(u=e.style[r]||0),u=Math.floor(parseFloat(u))||0),i===void 0&&(i=t?lt:ut);var o=s!==void 0||t,c=s||u;return i===ut?o?c-Fe(e,["border","padding"],a):u:o?i===lt?c:c+(i===qt?-Fe(e,["border"],a):Fe(e,["margin"],a)):u+Fe(e,Jt.slice(i),a)}var nn={position:"absolute",visibility:"hidden",display:"block"};function Mt(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i,a=r[0];return a.offsetWidth!==0?i=Ct.apply(void 0,r):tn(a,nn,function(){i=Ct.apply(void 0,r)}),i}st(["width","height"],function(e){var r=e.charAt(0).toUpperCase()+e.slice(1);pe["outer".concat(r)]=function(i,a){return i&&Mt(i,e,a?en:lt)};var n=e==="width"?["Left","Right"]:["Top","Bottom"];pe[e]=function(i,a){var s=a;if(s!==void 0){if(i){var t=Et(i);return t&&(s+=Fe(i,["padding","border"],n)),me(i,e,s)}return}return i&&Mt(i,e,ut)}});function Pt(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}var T={getWindow:function(r){if(r&&r.document&&r.setTimeout)return r;var n=r.ownerDocument||r;return n.defaultView||n.parentWindow},getDocument:Be,offset:function(r,n,i){if(typeof n!="undefined")Qt(r,n,i||{});else return Ee(r)},isWindow:Ve,each:st,css:me,clone:function(r){var n,i={};for(n in r)r.hasOwnProperty(n)&&(i[n]=r[n]);var a=r.overflow;if(a)for(n in r)r.hasOwnProperty(n)&&(i.overflow[n]=r.overflow[n]);return i},mix:Pt,getWindowScrollLeft:function(r){return Te(r)},getWindowScrollTop:function(r){return Oe(r)},merge:function(){for(var r={},n=0;n<arguments.length;n++)T.mix(r,n<0||arguments.length<=n?void 0:arguments[n]);return r},viewportWidth:0,viewportHeight:0};Pt(T,pe);var ft=T.getParent;function ct(e){if(T.isWindow(e)||e.nodeType===9)return null;var r=T.getDocument(e),n=r.body,i,a=T.css(e,"position"),s=a==="fixed"||a==="absolute";if(!s)return e.nodeName.toLowerCase()==="html"?null:ft(e);for(i=ft(e);i&&i!==n&&i.nodeType!==9;i=ft(i))if(a=T.css(i,"position"),a!=="static")return i;return null}var Tt=T.getParent;function rn(e){if(T.isWindow(e)||e.nodeType===9)return!1;var r=T.getDocument(e),n=r.body,i=null;for(i=Tt(e);i&&i!==n&&i!==r;i=Tt(i)){var a=T.css(i,"position");if(a==="fixed")return!0}return!1}function dt(e,r){for(var n={left:0,right:Infinity,top:0,bottom:Infinity},i=ct(e),a=T.getDocument(e),s=a.defaultView||a.parentWindow,t=a.body,u=a.documentElement;i;){if((navigator.userAgent.indexOf("MSIE")===-1||i.clientWidth!==0)&&i!==t&&i!==u&&T.css(i,"overflow")!=="visible"){var o=T.offset(i);o.left+=i.clientLeft,o.top+=i.clientTop,n.top=Math.max(n.top,o.top),n.right=Math.min(n.right,o.left+i.clientWidth),n.bottom=Math.min(n.bottom,o.top+i.clientHeight),n.left=Math.max(n.left,o.left)}else if(i===t||i===u)break;i=ct(i)}var c=null;if(!T.isWindow(e)&&e.nodeType!==9){c=e.style.position;var w=T.css(e,"position");w==="absolute"&&(e.style.position="fixed")}var P=T.getWindowScrollLeft(s),C=T.getWindowScrollTop(s),m=T.viewportWidth(s),E=T.viewportHeight(s),S=u.scrollWidth,I=u.scrollHeight,L=window.getComputedStyle(t);if(L.overflowX==="hidden"&&(S=s.innerWidth),L.overflowY==="hidden"&&(I=s.innerHeight),e.style&&(e.style.position=c),r||rn(e))n.left=Math.max(n.left,P),n.top=Math.max(n.top,C),n.right=Math.min(n.right,P+m),n.bottom=Math.min(n.bottom,C+E);else{var z=Math.max(S,P+m);n.right=Math.min(n.right,z);var Y=Math.max(I,C+E);n.bottom=Math.min(n.bottom,Y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function on(e,r,n,i){var a=T.clone(e),s={width:r.width,height:r.height};return i.adjustX&&a.left<n.left&&(a.left=n.left),i.resizeWidth&&a.left>=n.left&&a.left+s.width>n.right&&(s.width-=a.left+s.width-n.right),i.adjustX&&a.left+s.width>n.right&&(a.left=Math.max(n.right-s.width,n.left)),i.adjustY&&a.top<n.top&&(a.top=n.top),i.resizeHeight&&a.top>=n.top&&a.top+s.height>n.bottom&&(s.height-=a.top+s.height-n.bottom),i.adjustY&&a.top+s.height>n.bottom&&(a.top=Math.max(n.bottom-s.height,n.top)),T.mix(a,s)}function pt(e){var r,n,i;if(!T.isWindow(e)&&e.nodeType!==9)r=T.offset(e),n=T.outerWidth(e),i=T.outerHeight(e);else{var a=T.getWindow(e);r={left:T.getWindowScrollLeft(a),top:T.getWindowScrollTop(a)},n=T.viewportWidth(a),i=T.viewportHeight(a)}return r.width=n,r.height=i,r}function Ot(e,r){var n=r.charAt(0),i=r.charAt(1),a=e.width,s=e.height,t=e.left,u=e.top;return n==="c"?u+=s/2:n==="b"&&(u+=s),i==="c"?t+=a/2:i==="r"&&(t+=a),{left:t,top:u}}function Je(e,r,n,i,a){var s=Ot(r,n[1]),t=Ot(e,n[0]),u=[t.left-s.left,t.top-s.top];return{left:Math.round(e.left-u[0]+i[0]-a[0]),top:Math.round(e.top-u[1]+i[1]-a[1])}}function Rt(e,r,n){return e.left<n.left||e.left+r.width>n.right}function xt(e,r,n){return e.top<n.top||e.top+r.height>n.bottom}function an(e,r,n){return e.left>n.right||e.left+r.width<n.left}function sn(e,r,n){return e.top>n.bottom||e.top+r.height<n.top}function qe(e,r,n){var i=[];return T.each(e,function(a){i.push(a.replace(r,function(s){return n[s]}))}),i}function et(e,r){return e[r]=-e[r],e}function St(e,r){var n;return/%$/.test(e)?n=parseInt(e.substring(0,e.length-1),10)/100*r:n=parseInt(e,10),n||0}function Zt(e,r){e[0]=St(e[0],r.width),e[1]=St(e[1],r.height)}function Dt(e,r,n,i){var a=n.points,s=n.offset||[0,0],t=n.targetOffset||[0,0],u=n.overflow,o=n.source||e;s=[].concat(s),t=[].concat(t),u=u||{};var c={},w=0,P=!!(u&&u.alwaysByViewport),C=dt(o,P),m=pt(o);Zt(s,m),Zt(t,r);var E=Je(m,r,a,s,t),S=T.merge(m,E);if(C&&(u.adjustX||u.adjustY)&&i){if(u.adjustX&&Rt(E,m,C)){var I=qe(a,/[lr]/gi,{l:"r",r:"l"}),L=et(s,0),z=et(t,0),Y=Je(m,r,I,L,z);an(Y,m,C)||(w=1,a=I,s=L,t=z)}if(u.adjustY&&xt(E,m,C)){var ee=qe(a,/[tb]/gi,{t:"b",b:"t"}),ae=et(s,1),se=et(t,1),xe=Je(m,r,ee,ae,se);sn(xe,m,C)||(w=1,a=ee,s=ae,t=se)}w&&(E=Je(m,r,a,s,t),T.mix(S,E));var ue=Rt(E,m,C),ve=xt(E,m,C);if(ue||ve){var ge=a;ue&&(ge=qe(a,/[lr]/gi,{l:"r",r:"l"})),ve&&(ge=qe(a,/[tb]/gi,{t:"b",b:"t"})),a=ge,s=n.offset||[0,0],t=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&ue,c.adjustY=u.adjustY&&ve,(c.adjustX||c.adjustY)&&(S=on(E,m,C,c))}return S.width!==m.width&&T.css(o,"width",T.width(o)+S.width-m.width),S.height!==m.height&&T.css(o,"height",T.height(o)+S.height-m.height),T.offset(o,{left:S.left,top:S.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:a,offset:s,targetOffset:t,overflow:c}}function un(e,r){var n=dt(e,r),i=pt(e);return!n||i.left+i.width<=n.left||i.top+i.height<=n.top||i.left>=n.right||i.top>=n.bottom}function vt(e,r,n){var i=n.target||r,a=pt(i),s=!un(i,n.overflow&&n.overflow.alwaysByViewport);return Dt(e,a,n,s)}vt.__getOffsetParent=ct,vt.__getVisibleRectForElement=dt;function ln(e,r,n){var i,a,s=T.getDocument(e),t=s.defaultView||s.parentWindow,u=T.getWindowScrollLeft(t),o=T.getWindowScrollTop(t),c=T.viewportWidth(t),w=T.viewportHeight(t);"pageX"in r?i=r.pageX:i=u+r.clientX,"pageY"in r?a=r.pageY:a=o+r.clientY;var P={left:i,top:a,width:0,height:0},C=i>=0&&i<=u+c&&a>=0&&a<=o+w,m=[n.points[0],"cc"];return Dt(e,P,p(p({},n),{},{points:m}),C)}var Ln=null,fn=v(91881),cn=v(5110),ht=v(8410),dn=function(e,r){var n=l.useRef(!1),i=l.useRef(null);function a(){window.clearTimeout(i.current)}function s(t){if(a(),!n.current||t===!0){if(e(t)===!1)return;n.current=!0,i.current=window.setTimeout(function(){n.current=!1},r)}else i.current=window.setTimeout(function(){n.current=!1,s()},r)}return[s,function(){n.current=!1,a()}]},pn=v(91033);function vn(e,r){return e===r?!0:!e||!r?!1:"pageX"in r&&"pageY"in r?e.pageX===r.pageX&&e.pageY===r.pageY:"clientX"in r&&"clientY"in r?e.clientX===r.clientX&&e.clientY===r.clientY:!1}function hn(e,r){e!==document.activeElement&&(0,D.Z)(r,e)&&typeof e.focus=="function"&&e.focus()}function At(e,r){var n=null,i=null;function a(t){var u=(0,U.Z)(t,1),o=u[0].target;if(!!document.documentElement.contains(o)){var c=o.getBoundingClientRect(),w=c.width,P=c.height,C=Math.floor(w),m=Math.floor(P);(n!==C||i!==m)&&Promise.resolve().then(function(){r({width:C,height:m})}),n=C,i=m}}var s=new pn.Z(a);return e&&s.observe(e),function(){s.disconnect()}}function Nt(e){return typeof e!="function"?null:e()}function Ht(e){return(0,f.Z)(e)!=="object"||!e?null:e}var mn=function(r,n){var i=r.children,a=r.disabled,s=r.target,t=r.align,u=r.onAlign,o=r.monitorWindowResize,c=r.monitorBufferTime,w=c===void 0?0:c,P=l.useRef({}),C=l.useRef(),m=l.Children.only(i),E=l.useRef({});E.current.disabled=a,E.current.target=s,E.current.align=t,E.current.onAlign=u;var S=dn(function(){var q=E.current,Se=q.disabled,Ze=q.target,De=q.align,Le=q.onAlign,te=C.current;if(!Se&&Ze&&te){var Ae,Q=Nt(Ze),Ne=Ht(Ze);P.current.element=Q,P.current.point=Ne,P.current.align=De;var gt=document,tt=gt.activeElement;return Q&&(0,cn.Z)(Q)?Ae=vt(te,Q,De):Ne&&(Ae=ln(te,Ne,De)),hn(tt,te),Le&&Ae&&Le(te,Ae),!0}return!1},w),I=(0,U.Z)(S,2),L=I[0],z=I[1],Y=l.useState(),ee=(0,U.Z)(Y,2),ae=ee[0],se=ee[1],xe=l.useState(),ue=(0,U.Z)(xe,2),ve=ue[0],ge=ue[1];return(0,ht.Z)(function(){se(Nt(s)),ge(Ht(s))}),l.useEffect(function(){(P.current.element!==ae||!vn(P.current.point,ve)||!(0,fn.Z)(P.current.align,t))&&L()}),l.useEffect(function(){var q=At(C.current,L);return q},[C.current]),l.useEffect(function(){var q=At(ae,L);return q},[ae]),l.useEffect(function(){a?z():L()},[a]),l.useEffect(function(){if(o){var q=(0,_.Z)(window,"resize",L);return q.remove}},[o]),l.useEffect(function(){return function(){z()}},[]),l.useImperativeHandle(n,function(){return{forceAlign:function(){return L(!0)}}}),l.isValidElement(m)&&(m=l.cloneElement(m,{ref:(0,B.sQ)(m.ref,C)})),m},kt=l.forwardRef(mn);kt.displayName="Align";var gn=kt,yn=gn,Vt=v(55507),wn=v(92137),bn=v(30470),Lt=["measure","alignPre","align",null,"motion"],En=function(e,r){var n=(0,bn.Z)(null),i=(0,U.Z)(n,2),a=i[0],s=i[1],t=(0,l.useRef)();function u(w){s(w,!0)}function o(){R.Z.cancel(t.current)}function c(w){o(),t.current=(0,R.Z)(function(){u(function(P){switch(a){case"align":return"motion";case"motion":return"stable";default:}return P}),w==null||w()})}return(0,l.useEffect)(function(){u("measure")},[e]),(0,l.useEffect)(function(){switch(a){case"measure":r();break;default:}a&&(t.current=(0,R.Z)((0,wn.Z)((0,Vt.Z)().mark(function w(){var P,C;return(0,Vt.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:P=Lt.indexOf(a),C=Lt[P+1],C&&P!==-1&&u(C);case 3:case"end":return E.stop()}},w)}))))},[a]),(0,l.useEffect)(function(){return function(){o()}},[]),[a,c]},Cn=function(e){var r=l.useState({width:0,height:0}),n=(0,U.Z)(r,2),i=n[0],a=n[1];function s(u){var o=u.offsetWidth,c=u.offsetHeight,w=u.getBoundingClientRect(),P=w.width,C=w.height;Math.abs(o-P)<1&&Math.abs(c-C)<1&&(o=P,c=C),a({width:o,height:c})}var t=l.useMemo(function(){var u={};if(e){var o=i.width,c=i.height;e.indexOf("height")!==-1&&c?u.height=c:e.indexOf("minHeight")!==-1&&c&&(u.minHeight=c),e.indexOf("width")!==-1&&o?u.width=o:e.indexOf("minWidth")!==-1&&o&&(u.minWidth=o)}return u},[e,i]);return[t,s]},Wt=l.forwardRef(function(e,r){var n=e.visible,i=e.prefixCls,a=e.className,s=e.style,t=e.children,u=e.zIndex,o=e.stretch,c=e.destroyPopupOnHide,w=e.forceRender,P=e.align,C=e.point,m=e.getRootDomNode,E=e.getClassNameFromAlign,S=e.onAlign,I=e.onMouseEnter,L=e.onMouseLeave,z=e.onMouseDown,Y=e.onTouchStart,ee=e.onClick,ae=(0,l.useRef)(),se=(0,l.useRef)(),xe=(0,l.useState)(),ue=(0,U.Z)(xe,2),ve=ue[0],ge=ue[1],q=Cn(o),Se=(0,U.Z)(q,2),Ze=Se[0],De=Se[1];function Le(){o&&De(m())}var te=En(n,Le),Ae=(0,U.Z)(te,2),Q=Ae[0],Ne=Ae[1],gt=(0,l.useState)(0),tt=(0,U.Z)(gt,2),Ft=tt[0],_t=tt[1],yt=(0,l.useRef)();(0,ht.Z)(function(){Q==="alignPre"&&_t(0)},[Q]);function Nn(){return C||m}function Xt(){var $;($=ae.current)===null||$===void 0||$.forceAlign()}function Hn($,Ce){var We=E(Ce);ve!==We&&ge(We),_t(function(Xe){return Xe+1}),Q==="align"&&(S==null||S($,Ce))}(0,ht.Z)(function(){Q==="align"&&(Ft<3?Xt():Ne(function(){var $;($=yt.current)===null||$===void 0||$.call(yt)}))},[Ft]);var _e=(0,O.Z)({},we(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function($){var Ce=_e[$];_e[$]=function(We,Xe){return Ne(),Ce==null?void 0:Ce(We,Xe)}});function jt(){return new Promise(function($){yt.current=$})}l.useEffect(function(){!_e.motionName&&Q==="motion"&&Ne()},[_e.motionName,Q]),l.useImperativeHandle(r,function(){return{forceAlign:Xt,getElement:function(){return se.current}}});var kn=(0,O.Z)((0,O.Z)({},Ze),{},{zIndex:u,opacity:Q==="motion"||Q==="stable"||!n?void 0:0,pointerEvents:!n&&Q!=="stable"?"none":void 0},s),Ut=!0;P!=null&&P.points&&(Q==="align"||Q==="stable")&&(Ut=!1);var $t=t;return l.Children.count(t)>1&&($t=l.createElement("div",{className:"".concat(i,"-content")},t)),l.createElement(oe.Z,(0,M.Z)({visible:n,ref:se,leavedClassName:"".concat(i,"-hidden")},_e,{onAppearPrepare:jt,onEnterPrepare:jt,removeOnLeave:c,forceRender:w}),function($,Ce){var We=$.className,Xe=$.style,Vn=fe()(i,a,ve,We);return l.createElement(yn,{target:Nn(),key:"popup",ref:ae,monitorWindowResize:!0,disabled:Ut,align:P,onAlign:Hn},l.createElement("div",{ref:Ce,className:Vn,onMouseEnter:I,onMouseLeave:L,onMouseDownCapture:z,onTouchStartCapture:Y,onClick:ee,style:(0,O.Z)((0,O.Z)({},Xe),kn)},$t))})});Wt.displayName="PopupInner";var Mn=Wt,It=l.forwardRef(function(e,r){var n=e.prefixCls,i=e.visible,a=e.zIndex,s=e.children,t=e.mobile;t=t===void 0?{}:t;var u=t.popupClassName,o=t.popupStyle,c=t.popupMotion,w=c===void 0?{}:c,P=t.popupRender,C=e.onClick,m=l.useRef();l.useImperativeHandle(r,function(){return{forceAlign:function(){},getElement:function(){return m.current}}});var E=(0,O.Z)({zIndex:a},o),S=s;return l.Children.count(s)>1&&(S=l.createElement("div",{className:"".concat(n,"-content")},s)),P&&(S=P(S)),l.createElement(oe.Z,(0,M.Z)({visible:i,ref:m,removeOnLeave:!0},w),function(I,L){var z=I.className,Y=I.style,ee=fe()(n,u,z);return l.createElement("div",{ref:L,className:ee,onClick:C,style:(0,O.Z)((0,O.Z)({},Y),E)},S)})});It.displayName="MobilePopupInner";var Pn=It,Tn=["visible","mobile"],zt=l.forwardRef(function(e,r){var n=e.visible,i=e.mobile,a=(0,Pe.Z)(e,Tn),s=(0,l.useState)(n),t=(0,U.Z)(s,2),u=t[0],o=t[1],c=(0,l.useState)(!1),w=(0,U.Z)(c,2),P=w[0],C=w[1],m=(0,O.Z)((0,O.Z)({},a),{},{visible:u});(0,l.useEffect)(function(){o(n),n&&i&&C((0,ce.Z)())},[n,i]);var E=P?l.createElement(Pn,(0,M.Z)({},m,{mobile:i,ref:r})):l.createElement(Mn,(0,M.Z)({},m,{ref:r}));return l.createElement("div",null,l.createElement(Ie,m),E)});zt.displayName="Popup";var On=zt,Rn=l.createContext(null),Bt=Rn;function mt(){}function xn(){return""}function Sn(e){return e?e.ownerDocument:window.document}var Zn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Dn(e){var r=function(n){(0,H.Z)(a,n);var i=(0,k.Z)(a);function a(s){var t;(0,A.Z)(this,a),t=i.call(this,s),(0,y.Z)((0,g.Z)(t),"popupRef",l.createRef()),(0,y.Z)((0,g.Z)(t),"triggerRef",l.createRef()),(0,y.Z)((0,g.Z)(t),"portalContainer",void 0),(0,y.Z)((0,g.Z)(t),"attachId",void 0),(0,y.Z)((0,g.Z)(t),"clickOutsideHandler",void 0),(0,y.Z)((0,g.Z)(t),"touchOutsideHandler",void 0),(0,y.Z)((0,g.Z)(t),"contextMenuOutsideHandler1",void 0),(0,y.Z)((0,g.Z)(t),"contextMenuOutsideHandler2",void 0),(0,y.Z)((0,g.Z)(t),"mouseDownTimeout",void 0),(0,y.Z)((0,g.Z)(t),"focusTime",void 0),(0,y.Z)((0,g.Z)(t),"preClickTime",void 0),(0,y.Z)((0,g.Z)(t),"preTouchTime",void 0),(0,y.Z)((0,g.Z)(t),"delayTimer",void 0),(0,y.Z)((0,g.Z)(t),"hasPopupMouseDown",void 0),(0,y.Z)((0,g.Z)(t),"onMouseEnter",function(o){var c=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",o),t.delaySetPopupVisible(!0,c,c?null:o)}),(0,y.Z)((0,g.Z)(t),"onMouseMove",function(o){t.fireEvents("onMouseMove",o),t.setPoint(o)}),(0,y.Z)((0,g.Z)(t),"onMouseLeave",function(o){t.fireEvents("onMouseLeave",o),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)}),(0,y.Z)((0,g.Z)(t),"onPopupMouseEnter",function(){t.clearDelayTimer()}),(0,y.Z)((0,g.Z)(t),"onPopupMouseLeave",function(o){var c;o.relatedTarget&&!o.relatedTarget.setTimeout&&(0,D.Z)((c=t.popupRef.current)===null||c===void 0?void 0:c.getElement(),o.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)}),(0,y.Z)((0,g.Z)(t),"onFocus",function(o){t.fireEvents("onFocus",o),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))}),(0,y.Z)((0,g.Z)(t),"onMouseDown",function(o){t.fireEvents("onMouseDown",o),t.preClickTime=Date.now()}),(0,y.Z)((0,g.Z)(t),"onTouchStart",function(o){t.fireEvents("onTouchStart",o),t.preTouchTime=Date.now()}),(0,y.Z)((0,g.Z)(t),"onBlur",function(o){t.fireEvents("onBlur",o),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)}),(0,y.Z)((0,g.Z)(t),"onContextMenu",function(o){o.preventDefault(),t.fireEvents("onContextMenu",o),t.setPopupVisible(!0,o)}),(0,y.Z)((0,g.Z)(t),"onContextMenuClose",function(){t.isContextMenuToShow()&&t.close()}),(0,y.Z)((0,g.Z)(t),"onClick",function(o){if(t.fireEvents("onClick",o),t.focusTime){var c;if(t.preClickTime&&t.preTouchTime?c=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?c=t.preClickTime:t.preTouchTime&&(c=t.preTouchTime),Math.abs(c-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&o&&o.preventDefault&&o.preventDefault();var w=!t.state.popupVisible;(t.isClickToHide()&&!w||w&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,o)}),(0,y.Z)((0,g.Z)(t),"onPopupMouseDown",function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var o;(o=t.context).onPopupMouseDown.apply(o,arguments)}}),(0,y.Z)((0,g.Z)(t),"onDocumentClick",function(o){if(!(t.props.mask&&!t.props.maskClosable)){var c=o.target,w=t.getRootDomNode(),P=t.getPopupDomNode();(!(0,D.Z)(w,c)||t.isContextMenuOnly())&&!(0,D.Z)(P,c)&&!t.hasPopupMouseDown&&t.close()}}),(0,y.Z)((0,g.Z)(t),"getRootDomNode",function(){var o=t.props.getTriggerDOMNode;if(o)return o(t.triggerRef.current);try{var c=(0,j.Z)(t.triggerRef.current);if(c)return c}catch(w){}return N.findDOMNode((0,g.Z)(t))}),(0,y.Z)((0,g.Z)(t),"getPopupClassNameFromAlign",function(o){var c=[],w=t.props,P=w.popupPlacement,C=w.builtinPlacements,m=w.prefixCls,E=w.alignPoint,S=w.getPopupClassNameFromAlign;return P&&C&&c.push(ie(C,m,o,E)),S&&c.push(S(o)),c.join(" ")}),(0,y.Z)((0,g.Z)(t),"getComponent",function(){var o=t.props,c=o.prefixCls,w=o.destroyPopupOnHide,P=o.popupClassName,C=o.onPopupAlign,m=o.popupMotion,E=o.popupAnimation,S=o.popupTransitionName,I=o.popupStyle,L=o.mask,z=o.maskAnimation,Y=o.maskTransitionName,ee=o.maskMotion,ae=o.zIndex,se=o.popup,xe=o.stretch,ue=o.alignPoint,ve=o.mobile,ge=o.forceRender,q=o.onPopupClick,Se=t.state,Ze=Se.popupVisible,De=Se.point,Le=t.getPopupAlign(),te={};return t.isMouseEnterToShow()&&(te.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(te.onMouseLeave=t.onPopupMouseLeave),te.onMouseDown=t.onPopupMouseDown,te.onTouchStart=t.onPopupMouseDown,l.createElement(On,(0,M.Z)({prefixCls:c,destroyPopupOnHide:w,visible:Ze,point:ue&&De,className:P,align:Le,onAlign:C,animation:E,getClassNameFromAlign:t.getPopupClassNameFromAlign},te,{stretch:xe,getRootDomNode:t.getRootDomNode,style:I,mask:L,zIndex:ae,transitionName:S,maskAnimation:z,maskTransitionName:Y,maskMotion:ee,ref:t.popupRef,motion:m,mobile:ve,forceRender:ge,onClick:q}),typeof se=="function"?se():se)}),(0,y.Z)((0,g.Z)(t),"attachParent",function(o){R.Z.cancel(t.attachId);var c=t.props,w=c.getPopupContainer,P=c.getDocument,C=t.getRootDomNode(),m;w?(C||w.length===0)&&(m=w(C)):m=P(t.getRootDomNode()).body,m?m.appendChild(o):t.attachId=(0,R.Z)(function(){t.attachParent(o)})}),(0,y.Z)((0,g.Z)(t),"getContainer",function(){if(!t.portalContainer){var o=t.props.getDocument,c=o(t.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",t.portalContainer=c}return t.attachParent(t.portalContainer),t.portalContainer}),(0,y.Z)((0,g.Z)(t),"setPoint",function(o){var c=t.props.alignPoint;!c||!o||t.setState({point:{pageX:o.pageX,pageY:o.pageY}})}),(0,y.Z)((0,g.Z)(t),"handlePortalUpdate",function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)}),(0,y.Z)((0,g.Z)(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown});var u;return"popupVisible"in s?u=!!s.popupVisible:u=!!s.defaultPopupVisible,t.state={prevPopupVisible:u,popupVisible:u},Zn.forEach(function(o){t["fire".concat(o)]=function(c){t.fireEvents(o,c)}}),t}return(0,Z.Z)(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,u=this.state;if(u.popupVisible){var o;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(o=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,_.Z)(o,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(o=o||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,_.Z)(o,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,_.Z)(o,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,_.Z)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),R.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,u=t.popupPlacement,o=t.popupAlign,c=t.builtinPlacements;return u&&c?ye(c,u,o):o}},{key:"setPopupVisible",value:function(t,u){var o=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:c}),this.props.onPopupVisibleChange(t)),o&&u&&t&&this.setPoint(u)}},{key:"delaySetPopupVisible",value:function(t,u,o){var c=this,w=u*1e3;if(this.clearDelayTimer(),w){var P=o?{pageX:o.pageX,pageY:o.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(t,P),c.clearDelayTimer()},w)}else this.setPopupVisible(t,o)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var u=this.props.children.props,o=this.props;return u[t]&&o[t]?this["fire".concat(t)]:u[t]||o[t]}},{key:"isClickToShow",value:function(){var t=this.props,u=t.action,o=t.showAction;return u.indexOf("click")!==-1||o.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,u=t.action,o=t.showAction;return u.indexOf("contextMenu")!==-1||o.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,u=t.action,o=t.hideAction;return u.indexOf("click")!==-1||o.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,u=t.action,o=t.showAction;return u.indexOf("hover")!==-1||o.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,u=t.action,o=t.hideAction;return u.indexOf("hover")!==-1||o.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,u=t.action,o=t.showAction;return u.indexOf("focus")!==-1||o.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,u=t.action,o=t.hideAction;return u.indexOf("focus")!==-1||o.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,u){var o=this.props.children.props[t];o&&o(u);var c=this.props[t];c&&c(u)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,u=this.props,o=u.children,c=u.forceRender,w=u.alignPoint,P=u.className,C=u.autoDestroy,m=l.Children.only(o),E={key:"trigger"};this.isContextMenuToShow()?E.onContextMenu=this.onContextMenu:E.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(E.onClick=this.onClick,E.onMouseDown=this.onMouseDown,E.onTouchStart=this.onTouchStart):(E.onClick=this.createTwoChains("onClick"),E.onMouseDown=this.createTwoChains("onMouseDown"),E.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(E.onMouseEnter=this.onMouseEnter,w&&(E.onMouseMove=this.onMouseMove)):E.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?E.onMouseLeave=this.onMouseLeave:E.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(E.onFocus=this.onFocus,E.onBlur=this.onBlur):(E.onFocus=this.createTwoChains("onFocus"),E.onBlur=this.createTwoChains("onBlur"));var S=fe()(m&&m.props&&m.props.className,P);S&&(E.className=S);var I=(0,O.Z)({},E);(0,B.Yr)(m)&&(I.ref=(0,B.sQ)(this.triggerRef,m.ref));var L=l.cloneElement(m,I),z;return(t||this.popupRef.current||c)&&(z=l.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&C&&(z=null),l.createElement(Bt.Provider,{value:this.triggerContextValue},L,z)}}],[{key:"getDerivedStateFromProps",value:function(t,u){var o=t.popupVisible,c={};return o!==void 0&&u.popupVisible!==o&&(c.popupVisible=o,c.prevPopupVisible=u.popupVisible),c}}]),a}(l.Component);return(0,y.Z)(r,"contextType",Bt),(0,y.Z)(r,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:xn,getDocument:Sn,onPopupVisibleChange:mt,afterPopupVisibleChange:mt,onPopupAlign:mt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),r}var An=Dn(K)},64019:function(re,V,v){"use strict";v.d(V,{Z:function(){return M}});var O=v(73935);function M(A,Z,g,H){var k=O.unstable_batchedUpdates?function(l){O.unstable_batchedUpdates(g,l)}:g;return A.addEventListener&&A.addEventListener(Z,k,H),{remove:function(){A.removeEventListener&&A.removeEventListener(Z,k,H)}}}},5110:function(re,V){"use strict";V.Z=function(v){if(!v)return!1;if(v instanceof HTMLElement&&v.offsetParent)return!0;if(v instanceof SVGGraphicsElement&&v.getBBox){var O=v.getBBox(),M=O.width,A=O.height;if(M||A)return!0}if(v instanceof HTMLElement&&v.getBoundingClientRect){var Z=v.getBoundingClientRect(),g=Z.width,H=Z.height;if(g||H)return!0}return!1}},66680:function(re,V,v){"use strict";v.d(V,{Z:function(){return M}});var O=v(67294);function M(A){var Z=O.useRef();Z.current=A;var g=O.useCallback(function(){for(var H,k=arguments.length,y=new Array(k),l=0;l<k;l++)y[l]=arguments[l];return(H=Z.current)===null||H===void 0?void 0:H.call.apply(H,[Z].concat(y))},[]);return g}},8410:function(re,V,v){"use strict";v.d(V,{o:function(){return Z}});var O=v(67294),M=v(98924),A=(0,M.Z)()?O.useLayoutEffect:O.useEffect;V.Z=A;var Z=function(H,k){var y=O.useRef(!0);A(function(){if(!y.current)return H()},k),A(function(){return y.current=!1,function(){y.current=!0}},[])}},21770:function(re,V,v){"use strict";v.d(V,{Z:function(){return H}});var O=v(28481),M=v(66680),A=v(8410),Z=v(30470);function g(k){return k!==void 0}function H(k,y){var l=y||{},N=l.defaultValue,R=l.value,D=l.onChange,j=l.postState,B=(0,Z.Z)(function(){return g(R)?R:g(N)?typeof N=="function"?N():N:typeof k=="function"?k():k}),_=(0,O.Z)(B,2),J=_[0],le=_[1],K=R!==void 0?R:J,Me=j?j(K):K,fe=(0,M.Z)(D),he=(0,Z.Z)([K]),ye=(0,O.Z)(he,2),ie=ye[0],U=ye[1];(0,A.o)(function(){var ce=ie[0];J!==ce&&fe(J,ce)},[ie]),(0,A.o)(function(){g(R)||le(R)},[R]);var Pe=(0,M.Z)(function(ce,oe){le(ce,oe),U([K],oe)});return[Me,Pe]}},91881:function(re,V,v){"use strict";var O=v(90484),M=v(80334);function A(Z,g){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,k=new Set;function y(l,N){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,D=k.has(l);if((0,M.ZP)(!D,"Warning: There may be circular references"),D)return!1;if(l===N)return!0;if(H&&R>1)return!1;k.add(l);var j=R+1;if(Array.isArray(l)){if(!Array.isArray(N)||l.length!==N.length)return!1;for(var B=0;B<l.length;B++)if(!y(l[B],N[B],j))return!1;return!0}if(l&&N&&(0,O.Z)(l)==="object"&&(0,O.Z)(N)==="object"){var _=Object.keys(l);return _.length!==Object.keys(N).length?!1:_.every(function(J){return y(l[J],N[J],j)})}return!1}return y(Z,g)}V.Z=A},31131:function(re,V){"use strict";V.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var v=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(v)||/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(v==null?void 0:v.substr(0,4))}},91033:function(re,V,v){"use strict";var O=function(){if(typeof Map!="undefined")return Map;function f(d,p){var h=-1;return d.some(function(b,x){return b[0]===p?(h=x,!0):!1}),h}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(p){var h=f(this.__entries__,p),b=this.__entries__[h];return b&&b[1]},d.prototype.set=function(p,h){var b=f(this.__entries__,p);~b?this.__entries__[b][1]=h:this.__entries__.push([p,h])},d.prototype.delete=function(p){var h=this.__entries__,b=f(h,p);~b&&h.splice(b,1)},d.prototype.has=function(p){return!!~f(this.__entries__,p)},d.prototype.clear=function(){this.__entries__.splice(0)},d.prototype.forEach=function(p,h){h===void 0&&(h=null);for(var b=0,x=this.__entries__;b<x.length;b++){var W=x[b];p.call(h,W[1],W[0])}},d}()}(),M=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,A=function(){return typeof v.g!="undefined"&&v.g.Math===Math?v.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Z=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(A):function(f){return setTimeout(function(){return f(Date.now())},1e3/60)}}(),g=2;function H(f,d){var p=!1,h=!1,b=0;function x(){p&&(p=!1,f()),h&&X()}function W(){Z(x)}function X(){var F=Date.now();if(p){if(F-b<g)return;h=!0}else p=!0,h=!1,setTimeout(W,d);b=F}return X}var k=20,y=["top","right","bottom","left","width","height","size","weight"],l=typeof MutationObserver!="undefined",N=function(){function f(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=H(this.refresh.bind(this),k)}return f.prototype.addObserver=function(d){~this.observers_.indexOf(d)||this.observers_.push(d),this.connected_||this.connect_()},f.prototype.removeObserver=function(d){var p=this.observers_,h=p.indexOf(d);~h&&p.splice(h,1),!p.length&&this.connected_&&this.disconnect_()},f.prototype.refresh=function(){var d=this.updateObservers_();d&&this.refresh()},f.prototype.updateObservers_=function(){var d=this.observers_.filter(function(p){return p.gatherActive(),p.hasActive()});return d.forEach(function(p){return p.broadcastActive()}),d.length>0},f.prototype.connect_=function(){!M||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},f.prototype.disconnect_=function(){!M||!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)},f.prototype.onTransitionEnd_=function(d){var p=d.propertyName,h=p===void 0?"":p,b=y.some(function(x){return!!~h.indexOf(x)});b&&this.refresh()},f.getInstance=function(){return this.instance_||(this.instance_=new f),this.instance_},f.instance_=null,f}(),R=function(f,d){for(var p=0,h=Object.keys(d);p<h.length;p++){var b=h[p];Object.defineProperty(f,b,{value:d[b],enumerable:!1,writable:!1,configurable:!0})}return f},D=function(f){var d=f&&f.ownerDocument&&f.ownerDocument.defaultView;return d||A},j=ie(0,0,0,0);function B(f){return parseFloat(f)||0}function _(f){for(var d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];return d.reduce(function(h,b){var x=f["border-"+b+"-width"];return h+B(x)},0)}function J(f){for(var d=["top","right","bottom","left"],p={},h=0,b=d;h<b.length;h++){var x=b[h],W=f["padding-"+x];p[x]=B(W)}return p}function le(f){var d=f.getBBox();return ie(0,0,d.width,d.height)}function K(f){var d=f.clientWidth,p=f.clientHeight;if(!d&&!p)return j;var h=D(f).getComputedStyle(f),b=J(h),x=b.left+b.right,W=b.top+b.bottom,X=B(h.width),F=B(h.height);if(h.boxSizing==="border-box"&&(Math.round(X+x)!==d&&(X-=_(h,"left","right")+x),Math.round(F+W)!==p&&(F-=_(h,"top","bottom")+W)),!fe(f)){var G=Math.round(X+x)-d,de=Math.round(F+W)-p;Math.abs(G)!==1&&(X-=G),Math.abs(de)!==1&&(F-=de)}return ie(b.left,b.top,X,F)}var Me=function(){return typeof SVGGraphicsElement!="undefined"?function(f){return f instanceof D(f).SVGGraphicsElement}:function(f){return f instanceof D(f).SVGElement&&typeof f.getBBox=="function"}}();function fe(f){return f===D(f).document.documentElement}function he(f){return M?Me(f)?le(f):K(f):j}function ye(f){var d=f.x,p=f.y,h=f.width,b=f.height,x=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,W=Object.create(x.prototype);return R(W,{x:d,y:p,width:h,height:b,top:p,right:d+h,bottom:b+p,left:d}),W}function ie(f,d,p,h){return{x:f,y:d,width:p,height:h}}var U=function(){function f(d){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ie(0,0,0,0),this.target=d}return f.prototype.isActive=function(){var d=he(this.target);return this.contentRect_=d,d.width!==this.broadcastWidth||d.height!==this.broadcastHeight},f.prototype.broadcastRect=function(){var d=this.contentRect_;return this.broadcastWidth=d.width,this.broadcastHeight=d.height,d},f}(),Pe=function(){function f(d,p){var h=ye(p);R(this,{target:d,contentRect:h})}return f}(),ce=function(){function f(d,p,h){if(this.activeObservations_=[],this.observations_=new O,typeof d!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=d,this.controller_=p,this.callbackCtx_=h}return f.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 D(d).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(d)||(p.set(d,new U(d)),this.controller_.addObserver(this),this.controller_.refresh())}},f.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 D(d).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;!p.has(d)||(p.delete(d),p.size||this.controller_.removeObserver(this))}},f.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},f.prototype.gatherActive=function(){var d=this;this.clearActive(),this.observations_.forEach(function(p){p.isActive()&&d.activeObservations_.push(p)})},f.prototype.broadcastActive=function(){if(!!this.hasActive()){var d=this.callbackCtx_,p=this.activeObservations_.map(function(h){return new Pe(h.target,h.broadcastRect())});this.callback_.call(d,p,d),this.clearActive()}},f.prototype.clearActive=function(){this.activeObservations_.splice(0)},f.prototype.hasActive=function(){return this.activeObservations_.length>0},f}(),oe=typeof WeakMap!="undefined"?new WeakMap:new O,we=function(){function f(d){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var p=N.getInstance(),h=new ce(d,p,this);oe.set(this,h)}return f}();["observe","unobserve","disconnect"].forEach(function(f){we.prototype[f]=function(){var d;return(d=oe.get(this))[f].apply(d,arguments)}});var Ie=function(){return typeof A.ResizeObserver!="undefined"?A.ResizeObserver:we}();V.Z=Ie}}]);