(this.webpackJsonph5=this.webpackJsonph5||[]).push([[1],{1125:function(e,t,n){"use strict";var o=n(1126);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,u=n.offsetTop||0,c=n.offsetLeft||0,l=n.offsetBottom||0,p=n.offsetRight||0;r=void 0===r||r;var f=o.isWindow(t),d=o.offset(e),v=o.outerHeight(e),y=o.outerWidth(e),b=void 0,h=void 0,m=void 0,g=void 0,O=void 0,w=void 0,S=void 0,j=void 0,C=void 0,P=void 0;f?(S=t,P=o.height(S),C=o.width(S),j={left:o.scrollLeft(S),top:o.scrollTop(S)},O={left:d.left-j.left-c,top:d.top-j.top-u},w={left:d.left+y-(j.left+C)+p,top:d.top+v-(j.top+P)+l},g=j):(b=o.offset(t),h=t.clientHeight,m=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:d.left-(b.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:d.top-(b.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-u},w={left:d.left+y-(b.left+m+(parseFloat(o.css(t,"borderRightWidth"))||0))+p,top:d.top+v-(b.top+h+(parseFloat(o.css(t,"borderBottomWidth"))||0))+l}),O.top<0||0=l&&(p.push(n({type:"childList",target:t,addedNodes:[s],removedNodes:[s],nextSibling:s.nextSibling,previousSibling:s.previousSibling})),a--),f.b&&u.b&&r(p,s,u.b,f.f),f.a&&3===s.nodeType&&s.nodeValue!==u.a&&p.push(n({type:"characterData",target:s,oldValue:u.a})),f.g&&b(s,u)}function b(t,o){for(var i,s,c,l,v,h=t.childNodes,m=o.c,g=h.length,O=m?m.length:0,w=0,S=0,j=0;S=n.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(n.subMenuTitle.offsetWidth,"px"))}},n.saveSubMenuTitle=function(e){n.subMenuTitle=e};var a=t.store,s=t.eventKey,u=a.getState().defaultActiveFirst,c=n.isRootMenu=!1;return u&&(c=u[s]),Q(a,s,c),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,r=t.manualRef;r&&r(this),"horizontal"===n&&o.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.props,r={mode:"horizontal"===n.mode?"vertical":n.mode,visible:this.props.isOpen,level:n.level+1,inlineIndent:n.inlineIndent,focusable:!1,onClick:this.onSubMenuClick,onSelect:this.onSelect,onDeselect:this.onDeselect,onDestroy:this.onDestroy,selectedKeys:n.selectedKeys,eventKey:"".concat(n.eventKey,"-menu-"),openKeys:n.openKeys,motion:n.motion,onOpenChange:this.onOpenChange,subMenuOpenDelay:n.subMenuOpenDelay,parentMenu:this,subMenuCloseDelay:n.subMenuCloseDelay,forceSubMenuRender:n.forceSubMenuRender,triggerSubMenuAction:n.triggerSubMenuAction,builtinPlacements:n.builtinPlacements,defaultActiveFirst:n.store.getState().defaultActiveFirst[N(n.eventKey)],multiple:n.multiple,prefixCls:n.rootPrefixCls,id:this.internalMenuId,manualRef:this.saveMenuInstance,itemIcon:n.itemIcon,expandIcon:n.expandIcon},i=this.haveRendered;if(this.haveRendered=!0,this.haveOpened=this.haveOpened||r.visible||r.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var a=Y({},n.motion,{leavedClassName:"".concat(n.rootPrefixCls,"-hidden"),removeOnLeave:!1,motionAppear:i||!r.visible||"inline"!==r.mode});return o.createElement(U.a,Object.assign({visible:r.visible},a),(function(n){var i=n.className,a=n.style,s=l()("".concat(r.prefixCls,"-sub"),i);return o.createElement(Te,Object.assign({},r,{id:t.internalMenuId,className:s,style:a}),e)}))}},{key:"render",value:function(){var e,t=Y({},this.props),n=t.isOpen,r=this.getPrefixCls(),i="inline"===t.mode,a=l()(r,"".concat(r,"-").concat(t.mode),(Z(e={},t.className,!!t.className),Z(e,this.getOpenClassName(),n),Z(e,this.getActiveClassName(),t.active||n&&!i),Z(e,this.getDisabledClassName(),t.disabled),Z(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(ee+=1,this.internalMenuId="$__$".concat(ee,"$Menu")));var s={},u={},c={};t.disabled||(s={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},u={onClick:this.onTitleClick},c={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var p={};i&&(p.paddingLeft=t.inlineIndent*t.level);var f={};this.props.isOpen&&(f={"aria-owns":this.internalMenuId});var d=null;"horizontal"!==t.mode&&(d=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(d=o.createElement(this.props.expandIcon,Y({},this.props))));var v=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:p,className:"".concat(r,"-title")},c,u,{"aria-expanded":n},f,{"aria-haspopup":"true",title:"string"==typeof t.title?t.title:void 0}),t.title,d||o.createElement("i",{className:"".concat(r,"-arrow")})),y=this.renderChildren(t.children),b=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},h=te[t.mode],m=t.popupOffset?{offset:t.popupOffset}:{},g="inline"===t.mode?"":t.popupClassName,O=t.disabled,w=t.triggerSubMenuAction,S=t.subMenuOpenDelay,j=t.forceSubMenuRender,C=t.subMenuCloseDelay,P=t.builtinPlacements;return R.forEach((function(e){return delete t[e]})),delete t.onClick,o.createElement("li",Object.assign({},t,s,{className:a,role:"menuitem"}),i&&v,i&&y,!i&&o.createElement(z.a,{prefixCls:r,popupClassName:"".concat(r,"-popup ").concat(g),getPopupContainer:b,builtinPlacements:Object.assign({},H,P),popupPlacement:h,popupVisible:n,popupAlign:m,popup:y,action:O?[]:[w],mouseEnterDelay:S,mouseLeaveDelay:C,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:j},v))}}])&&$(t.prototype,n),e}();ne.defaultProps={onMouseEnter:T,onMouseLeave:T,onTitleMouseEnter:T,onTitleMouseLeave:T,onTitleClick:T,manualRef:T,mode:"vertical",title:""};var oe=Object(r.connect)((function(e,t){var n=e.openKeys,o=e.activeKey,r=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{isOpen:-1n+.5&&(o=-1,t.menuItemSizes.forEach((function(e){(r+=e)+t.overflowedIndicatorWidth<=n&&(o+=1)}))),t.setState({lastVisibleIndex:o})}}},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=W.findDOMNode(this);if(!t)return;this.resizeObserver=new F.default((function(t){t.forEach(e.setChildrenWidthAndResize)})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,i,a){var s=i;if("horizontal"!==t.props.mode)return[].concat(ae(r),[s]);var u=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(n