text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.ReactMenus=e(require("React")):t.ReactMenus=e(t.React)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)switch(typeof t[e]){case"number":t[e]=t[t[e]];break;case"object":t[e]=function(e){var n=e.slice(1),i=t[e[0]];return function(t,e,r){i.apply(null,[t,e,r].concat(n))}}(t[e])}return t}([function(t,e,n){"use strict";var i=n(6),r=n(7),o=n(4),s=n(13);i.Item=r,i.Item.Cell=o,i.ItemCell=o,i.Separator=s,t.exports=i},function(t){"use strict";function e(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t){for(var n,i,r=e(t),o=1;o<arguments.length;o++){n=arguments[o],i=Object.keys(Object(n));for(var s=0;s<i.length;s++)r[i[s]]=n[i[s]]}return r}},function(e){e.exports=t},function(t,e,n){"use strict";var i=n(5);n(44),n(43);var r=n(46);i.alignRegions=function(t,e,n,i){var o=r(t,e,n,i),s=o.region;return s.equals(t)||t.setRegion(s),o.position},i.prototype.alignTo=function(t,e,n){n=n||{};var o=this,s=i.from(t),a=r(o,s,e,n),u=a.region;return u.equalsSize(o)||this.setSize(u.getSize()),u.equalsPosition(o)||this.setPosition(u.getPosition(),{absolute:!!n.absolute}),a.position},t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(1),o=i.createClass({displayName:"ReactMenuItemCell",getDefaultProps:function(){return{defaultStyle:{padding:5,whiteSpace:"nowrap"}}},render:function(){var t=this.prepareProps(this.props),e=t.children;return t.expander&&(e=t.expander===!0?"›":t.expander),i.createElement("td",i.__spread({},t),e)},prepareProps:function(t){var e={};return r(e,t),e.style=this.prepareStyle(e),e},prepareStyle:function(t){var e={};return r(e,t.defaultStyle,t.style),e}});t.exports=o},function(t,e,n){t.exports=n(47)},function(t,e,n){"use strict";function i(){}var r=n(2),o=n(1),s=n(3),a=n(33),u=n(23),l=n(14),h=n(20),c=n(19),f=n(55),p=n(30),d=n(29),m=n(28),v=n(57),g=n(26),y=(n(7),r.createClass({displayName:"Menu",propTypes:v,getDefaultProps:function(){return{isMenu:!0,constrainTo:!0,enableScroll:!0,interactionStyles:!0,applyDefaultTheme:!0,defaultStyle:{display:"inline-block",boxSizing:"border-box",position:"relative",background:"white",border:"1px solid rgb(46, 153, 235)"},defaultSubMenuStyle:{position:"absolute"},subMenuStyle:null,scrollerProps:{},columns:["label"],items:null,visible:!0,defaultItemStyle:{},itemStyle:{},defaultItemOverStyle:{},itemOverStyle:{},defaultItemDisabledStyle:{},itemDisabledStyle:{},defaultItemExpandedStyle:{},itemExpandedStyle:{},defaultCellStyle:{},cellStyle:{},stopClickPropagation:!0}},getInitialState:function(){return{mouseOver:!1}},componentWillUnmount:function(){this.didMount=!1},componentDidMount:function(){(this.props.onMount||i)(this),this.didMount=!0,!this.props.constrainTo&&!this.props.alignTo||this.props.subMenu||setTimeout(function(){if(this.isMounted()){var t,e=this.props,n=s.from(this.refs.scrollContainer.getDOMNode()),i=this.getDOMNode(),r=s.from(i),o=r.height,a=n.height+o,u=s({left:r.left,right:r.right,top:r.top,bottom:r.top+a}),l=e.constrainTo?c(e.constrainTo):null;if(e.alignTo){var h=s.from(i.parentNode),f=s.from(e.alignTo);u.alignTo(f,e.alignPositions,{offset:e.alignOffset,constrain:l});var p=u.top-h.top,d=u.left-h.left;t={style:{left:d,top:p}}}l&&(t=t||{},u.bottom>l.bottom&&(t.maxHeight=l.bottom-u.top-o)),t&&this.setState(t)}}.bind(this),0)},prepareProps:function(t,e){var n={};return o(n,this.props),n.style=this.prepareStyle(n,e),n.className=this.prepareClassName(n),n.itemStyleProps=f(n,e),n.children=this.prepareChildren(n,e),n.scrollerProps=this.prepareScrollerProps(n),n},prepareScrollerProps:function(t){return o({},t.scrollerProps)},prepareChildren:function(t,e){var n=t.children;return t.items&&t.items.length&&(n=t.items.map(this.prepareItem.bind(this,t,e))),n},prepareItem:m,prepareClassName:function(t){var e=t.className||"";return e+=" z-menu"},prepareStyle:function(t,e){var n=t.subMenu?t.defaultSubMenuStyle:null,i=o({},t.defaultStyle,n,t.style,t.subMenuStyle);if((!t.visible||t.items&&!t.items.length)&&(i.display="none"),t.absolute&&(i.position="absolute"),t.at){var r=Array.isArray(t.at),s={left:r?t.at[0]:void 0===t.at.left?t.at.x||t.at.pageX:t.at.left,top:r?t.at[1]:void 0===t.at.top?t.at.y||t.at.pageY:t.at.top};o(i,s)}return e.style&&o(i,e.style),this.didMount||!t.constrainTo&&!t.alignTo||t.subMenu||(i.visibility="hidden",i.maxHeight=0,i.overflow="hidden"),l(i)},renderSubMenu:p,render:function(){var t=this.state,e=this.prepareProps(this.props,t),n=this.renderSubMenu(e,t),i=this.renderChildren(e,t);return r.createElement("div",r.__spread({},e),n,r.createElement(g,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,scrollerProps:e.scrollerProps,ref:"scrollContainer",enableScroll:e.enableScroll,maxHeight:t.maxHeight||e.maxHeight},r.createElement("table",{ref:"table",style:{borderSpacing:0}},r.createElement("tbody",null,i))))},renderChildren:d,handleMouseEnter:function(){this.setState({mouseInside:!0}),this.onActivate()},handleMouseLeave:function(){this.setState({mouseInside:!1}),this.state.menu||this.state.nextItem||this.onInactivate()},onActivate:function(){this.state.activated||(this.setState({activated:!0}),(this.props.onActivate||i)())},onInactivate:function(){this.state.activated&&(this.setState({activated:!1}),(this.props.onInactivate||i)())},handleSubMenuMouseEnter:function(){this.setState({mouseOverSubMenu:!0})},handleSubMenuMouseLeave:function(){this.setState({mouseOverSubMenu:!1})},isSubMenuActive:function(){return this.state.subMenuActive},onSubMenuActivate:function(){this.setState({subMenuActive:!0})},onSubMenuInactivate:function(){var t=+new Date,e=this.state.nextItem,n=this.state.nextTimestamp||0;this.setState({subMenuActive:!1,timestamp:t},function(){setTimeout(function(){return t!=this.state.timestamp||e&&100>t-n?void this.setItem(this.state.nextItem,this.state.nextOffset):void(this.isSubMenuActive()||this.setItem())}.bind(this),10)})},removeMouseMoveListener:function(){this.onWindowMouseMove&&(window.removeEventListener("mousemove",this.onWindowMouseMove),this.onWindowMouseMove=null)},onMenuItemMouseOut:function(t,e){this.state.menu&&this.setupCheck(e)},onMenuItemMouseOver:function(t,e){if(this.didMount){{var n=t.menu;+new Date}n&&(this.state.menu?this.setNextItem(t,e):this.setItem(t,e))}},setupCheck:function(t){if(this.didMount){var e=5,n=this.getDOMNode(),i=n.querySelector(".z-menu");if(i){var r=s.from(i),o=r.left,u=r.top,l=r.left,h=r.bottom;"left"==this.subMenuPosition&&(o=r.right,l=r.right);var c=t.x+("left"==this.subMenuPosition?e:-e),f=t.y,p=[[o,u],[l,h],[c,f]];this.removeMouseMoveListener(),this.onWindowMouseMove=function(t){var e=[t.pageX,t.pageY];a(e,p)||(this.removeMouseMoveListener(),this.state.mouseOverSubMenu||this.setItem(this.state.nextItem,this.state.nextOffset))}.bind(this),window.addEventListener("mousemove",this.onWindowMouseMove)}}},setNextItem:function(t,e){var n=+new Date;this.setState({timestamp:n,nextItem:t,nextOffset:e,nextTimestamp:+new Date})},setItem:function(t,e){var n=t?t.menu:null;this.removeMouseMoveListener(),this.didMount&&(n||this.state.mouseInside||this.onInactivate(),this.setState({itemProps:t,menu:n,menuOffset:e,timestamp:+new Date,nextItem:null,nextOffset:null,nextTimestamp:null}))},onMenuItemExpanderClick:function(t){t.nativeEvent.expanderClick=!0},onMenuItemClick:function(t,e,n){var r=t.isPropagationStopped();if(this.props.stopClickPropagation&&t.stopPropagation(),u&&e&&t&&t.nativeEvent&&t.nativeEvent.expanderClick){var o={x:t.pageX,y:t.pageY},s=h(t.currentTarget);return void this.onMenuItemMouseOver(e,s,o)}r||(e&&(this.props.onClick||i)(t,e,n),this.onChildClick(t,e))},onChildClick:function(t,e){(this.props.onChildClick||i)(t,e),this.props.parentMenu&&this.props.parentMenu.onChildClick(t,e)}}));y.themes=n(53),t.exports=y},function(t,e,n){"use strict";function i(t){return t?t.charAt(0).toUpperCase()+t.substring(1):""}var r=n(2),o=n(1),s=n(14),a=(n(34),n(20)),u=n(24),l=(n(6),n(4),function(){}),h=r.createClass({displayName:"ReactMenuItem",getInitialState:function(){return{}},getDefaultProps:function(){return{isMenuItem:!0,interactionStyles:!0,defaultStyle:{cursor:"pointer",userSelect:"none",boxSizing:"border-box"},expander:"›"}},render:function(){var t=this.prepareProps(this.props,this.state);return r.createElement("tr",r.__spread({},t))},componentDidMount:function(){this.didMount=!0},prepareProps:function(t,e){var n={};return o(n,t),n.theme=this.prepareTheme(n),n.mouseOver=!!e.mouseOver,n.active=!!e.active,n.disabled=!!n.disabled,n.style=this.prepareStyle(n),n.className=this.prepareClassName(n),n.children=this.prepareChildren(n),n.onClick=this.handleClick.bind(this,n),n.onMouseEnter=this.handleMouseEnter.bind(this,n),n.onMouseLeave=this.handleMouseLeave.bind(this,n),n.onMouseDown=this.handleMouseDown,n.onMouseMove=this.handleMouseMove,n},prepareTheme:function(t){var e=t.themes=t.themes||this.constructor.theme||THEME,n=t.theme;return"string"==typeof n&&(n=e[n]),n||e.default},handleClick:function(t,e){return t.disabled?void e.stopPropagation():void(this.props.onClick||this.props.fn||l)(e,t,t.index)},handleMouseMove:function(){},handleMouseDown:function(){var t=function(){this.setState({active:!1}),window.removeEventListener("mouseup",t)}.bind(this);window.addEventListener("mouseup",t),this.setState({active:!0})},showMenu:function(t,e){e.showMenu(t,offset)},handleMouseEnter:function(t,e){if(!t.disabled){var n={x:e.pageX,y:e.pageY};if(this.setState({mouseOver:!0}),t.onMenuItemMouseOver){var i;t.menu&&(i=a(this.getDOMNode())),t.onMenuItemMouseOver(t,i,n)}}},handleMouseLeave:function(t,e){if(!t.disabled){var n={x:e.pageX,y:e.pageY};this.didMount&&this.setState({active:!1,mouseOver:!1}),t.onMenuItemMouseOut&&t.onMenuItemMouseOut(t,n)}},prepareChildren:u,prepareClassName:function(t){var e=t.className||"";return e+=" menu-row",t.disabled?e+=" disabled "+(t.disabledClassName||""):(t.mouseOver&&(e+=" over "+(t.overClassName||"")),t.active&&(e+=" active "+(t.activeClassName||"")),t.expanded&&(e+=" expanded "+(t.expandedClassName||""))),e},prepareDefaultStyle:function(t){var e=o({},t.defaultStyle);return t.disabled&&o(e,t.defaultDisabledStyle),e},prepareComputedStyleNames:function(t){var e=["style"];if(t.disabled)return e.push("disabledStyle"),e;t.expanded&&e.push("expandedStyle");var n;t.mouseOver&&(n=e.map(function(t){return"over"+i(t)}));var r;return t.active&&(r=e.map(function(t){return"active"+i(t)})),n&&e.push.apply(e,n),r&&e.push.apply(e,r),e},prepareStyle:function(t){var e=o({},this.prepareDefaultStyle(t)),n=this.prepareComputedStyleNames(t),i=t.theme,r=t.themes;return i&&(t.applyDefaultTheme&&i!=r.default&&r.default&&n.forEach(function(t){o(e,r.default[t])}),n.forEach(function(t){o(e,i[t])})),(t.onThemeStyleReady||l)(e,t),n.forEach(function(n){o(e,t[n])}),(t.onStyleReady||l)(e,t),s(e)}});t.exports=h},function(t,e,n){"use strict";function i(t,e){var n,i=s(t);for(n in e)u.call(h,n)?h[n](i,e[n],n):u.call(i,n)||(i[n]=e[n]);return i}function r(t){return function(e,n,i){e[i]=u.call(e,i)?t(e[i],n):n}}function o(t,e){return t?t+(e?" "+e:""):e||""}function s(){for(var t={},e=0;e<arguments.length;e++)for(var n in arguments[e])u.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var a=n(2),u=Object.prototype.hasOwnProperty,l=a.version.split(".").map(parseFloat),h={className:r(o),children:function(){},key:function(){},ref:function(){},style:r(s)};t.exports=function(t,e){function n(){}var r=i(e,t.props);return!u.call(r,"children")&&u.call(t.props,"children")&&(r.children=t.props.children),0===l[0]&&l[1]<11?t.constructor.ConvenienceConstructor(r):0===l[0]&&11===l[1]?t.constructor(r):0===l[0]&&12===l[1]?(n.isReactLegacyFactory=!0,n.type=t.type,a.createElement(n,r)):a.createElement(t.type,r)}},function(t,e){(function(e){"use strict";var n;t.exports=function(){return!n&&e.document&&(n=e.document.createElement("div")),n||(n={style:{}}),n}}).call(e,function(){return this}())},function(t,e,n){"use strict";var i,r,o=n(11),s=["ms","Moz","Webkit","O"],a=n(9);t.exports=function(t){if(void 0!==r)return r;i=i||a();for(var e,n,u=0,l=s.length;l>u;u++)if(n=s[u],e=n+o(t),"undefined"!=typeof i.style[e])return r=n;return r}},function(t){"use strict";t.exports=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}},function(t,e,n){"use strict";var i=n(2),r=n(1),o=n(4);t.exports=function(t,e){var n=r({},t.defaultCellStyle,t.cellStyle);return i.createElement(o,{style:n},t.data[e])}},function(t,e,n){"use strict";var i=n(2),r=n(1),o=i.createClass({displayName:"ReactMenuSeparator",getDefaultProps:function(){return{size:1}},render:function(){var t=this.prepareProps(this.props);return i.createElement("tr",i.__spread({},t),i.createElement("td",{colSpan:10,style:{padding:0}}))},prepareProps:function(t){var e={};return r(e,t),e.style=this.prepareStyle(e),e.className=this.prepareClassName(e),e},prepareClassName:function(t){var e=t.className||"";return e+=" menu-separator"},prepareStyle:function(t){var e={};return r(e,o.defaultStyle,o.style,{height:o.size||t.size},t.style),e}});o.defaultStyle={cursor:"auto",background:"gray"},o.style={},t.exports=o},function(t,e,n){"use strict";function i(t,e){var n={key:t,value:e};return(l.plugins||[]).forEach(function(i){var r=a(function(n){return i(t,e,n)},n);r&&(n=r)}),n}function r(t,e){var n=i(t,e);return a(function(t){return{key:s(t.key,t.value),value:t.value}},n)}var o=n(40),s=n(38),a=n(41),u=n(42),l=function(t){var e,n,i={};for(e in t)if(o(t,e)){if(n=r(e,t[e]),!n)continue;a(function(t){i[t.key]=t.value},n)}return i};t.exports=u(l)},function(t){"use strict";t.exports={alignItems:1,justifyContent:1,flex:1,flexFlow:1,userSelect:1,transform:1,transition:1,transformOrigin:1,transformStyle:1,transitionProperty:1,transitionDuration:1,transitionTimingFunction:1,transitionDelay:1,borderImage:1,borderImageSlice:1,boxShadow:1,backgroundClip:1,backfaceVisibility:1,perspective:1,perspectiveOrigin:1,animation:1,animationDuration:1,animationName:1,animationDelay:1,animationDirection:1,animationIterationCount:1,animationTimingFunction:1,animationPlayState:1,animationFillMode:1,appearance:1}},function(t){"use strict";function e(t,e){function n(i){function r(){var r=arguments.length,o=[].concat(i);return r&&o.push.apply(o,arguments),o.length<e?n(o):t.apply(this,o)}return r}return"number"!=typeof e&&(e=t.length),n([])}var n=Object.prototype.hasOwnProperty;t.exports=e(function(t,e){return n.call(t,e)})},function(t){"use strict";t.exports=function(t){var e=!0;return t.right<t.left&&(e=!1,t.right=t.left),t.bottom<t.top&&(e=!1,t.bottom=t.top),e}},function(t,e,n){"use strict";var i,r=n(50);t.exports=r(function(t,e){for(i=i||n(51);e=e.parentElement;)if(i.call(e,t))return e})},function(t,e,n){"use strict";var i=n(3),r=n(18);t.exports=function(t){var e;if(t===!0&&(e=i.getDocRegion()),!e&&"string"==typeof t){var n=r(t,this.getDOMNode());e=i.from(n)}return e||"function"!=typeof t||(e=i.from(t())),e}},function(t,e,n){"use strict";var i=n(3),r=n(18);t.exports=function(t){var e=i.from(r(".z-menu",t)),n=i.from(t);return{left:n.left-e.left,top:n.top-e.top,width:n.width,height:n.height}}},function(t){"use strict";t.exports=function(t,e){var n,i=e.size||8,r=e.width||i,o=e.height||i,s=e.color||"black",a=e.includePosition;return("up"==t||"down"==t)&&(n={borderLeft:r+"px solid transparent",borderRight:r+"px solid transparent"},a&&(n.marginTop=-Math.round(o/2)+"px",n.position="relative",n.top="50%"),n["up"===t?"borderBottom":"borderTop"]=o+"px solid "+s),("left"==t||"right"==t)&&(n={borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent"},a&&(n.marginLeft=-Math.round(r/2)+"px",n.position="relative",n.left="50%"),n["left"===t?"borderRight":"borderLeft"]=r+"px solid "+s),n}},function(t,e){(function(e){"use strict";var n=e.setImmediate,i=e.clearImmediate;t.exports=function(t,e,r){var o=-1;return function(){var s=r||this,a=arguments;if(0>e)return void t.apply(s,a);var u=e||!n,l=u?clearTimeout:i,h=u?setTimeout:n;-1!==o&&l(o),o=h(function(){t.apply(s,a),s=null},e)}}}).call(e,function(){return this}())},function(t,e){(function(e){t.exports="ontouchstart"in e||e.DocumentTouch&&document instanceof DocumentTouch}).call(e,function(){return this}())},function(t,e,n){"use strict";var i=n(2),r=(n(6),n(4)),o=(n(12),n(8));t.exports=function(t){var e,n=[];if(i.Children.forEach(t.children,function(i){if(i){if(i.props&&i.props.isMenu)return e=o(i,{ref:"subMenu"}),void(e.props.subMenu=!0);"string"!=typeof i&&(i=o(i,{style:t.cellStyle,itemIndex:t.itemIndex,itemCount:t.itemCount})),n.push(i)}}),e){t.menu=e;var s=t.expander||!0,a={};s&&(a.onClick=t.onExpanderClick),n.push(i.createElement(r,i.__spread({expander:s},a)))}return n}},function(t,e,n){"use strict";var i=n(12);t.exports=function(t){return t.columns.map(i.bind(null,t))}},function(t,e,n){"use strict";function i(t){t.preventDefault(),t.stopPropagation()}var r=n(2),o=n(1),s=n(22),a=n(27);t.exports=r.createClass({displayName:"ReactMenuScrollContainer",getInitialState:function(){return{adjustScroll:!0,scrollPos:0}},getDefaultProps:function(){return{scrollStep:5,scrollSpeed:50}},componentWillUnmount:function(){this.props.enableScroll&&window.removeEventListener("resize",this.onResizeListener)},componentDidMount:function(){this.props.enableScroll&&setTimeout(function(){this.isMounted()&&(this.adjustScroll(),window.addEventListener("resize",this.onResizeListener=s(this.onWindowResize,this.props.onWindowResizeBuffer,this)))}.bind(this),0)},componentDidUpdate:function(){this.props.enableScroll&&this.adjustScroll()},onWindowResize:function(){this.adjustScroll(),this.doScroll(0)},render:function(){var t=this.props,e=t.children;if(!t.enableScroll)return e;var n={position:"relative"};this.state.scrollPos&&(n.top=-this.state.scrollPos);var i={position:"relative",overflow:"hidden"};return t.maxHeight&&(i.maxHeight=t.maxHeight),r.createElement("div",{onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,className:"z-menu-scroll-container",style:i},r.createElement("div",{ref:"tableWrap",style:n},e),this.renderScroller(t,-1),this.renderScroller(t,1))},renderScroller:function(t,e){var n=-1==e?this.handleScrollTop:this.handleScrollBottom,i=-1==e?this.handleScrollTopMax:this.handleScrollBottomMax,s=-1==e?this.state.hasTopScroll:this.state.hasBottomScroll,u=o({},t.scrollerProps,{visible:s,side:-1==e?"top":"bottom",onMouseDown:n,onDoubleClick:i});return r.createElement(a,r.__spread({},u))},adjustScroll:function(){if(this.props.enableScroll){if(!this.state.adjustScroll)return void(this.state.adjustScroll=!0);var t=this.getAvailableHeight(),e=this.getCurrentTableHeight(),n={adjustScroll:!1,hasTopScroll:!1,hasBottomScroll:!1};e>t?(n.maxScrollPos=e-t,n.hasTopScroll=0!==this.state.scrollPos,n.hasBottomScroll=this.state.scrollPos!=n.maxScrollPos):(n.maxScrollPos=0,n.scrollPos=0),this.setState(n)}},getAvailableHeight:function(){return this.getAvailableSizeDOM().clientHeight},getAvailableSizeDOM:function(){return this.getDOMNode()},getCurrentTableHeight:function(){return this.getCurrentSizeDOM().clientHeight},getCurrentSizeDOM:function(){return this.refs.tableWrap.getDOMNode()},handleScrollTop:function(t){t.preventDefault(),this.handleScroll(-1)},handleScrollBottom:function(t){t.preventDefault(),this.handleScroll(1)},handleScrollTopMax:function(t){i(t),this.handleScrollMax(-1)},handleScrollBottomMax:function(t){i(t),this.handleScrollMax(1)},handleScrollMax:function(t){var e=-1==t?0:this.state.maxScrollPos;this.setScrollPosition(e)},handleScroll:function(t){var e=function(){this.stopScroll(),window.removeEventListener("mouseup",e)}.bind(this);window.addEventListener("mouseup",e),this.scrollInterval=setInterval(this.doScroll.bind(this,t),this.props.scrollSpeed)},doScroll:function(t){this.setState({scrollDirection:t});var e=this.state.scrollPos+t*this.props.scrollStep;this.setScrollPosition(e)},setScrollPosition:function(t){t>this.state.maxScrollPos&&(t=this.state.maxScrollPos),0>t&&(t=0),this.setState({scrollPos:t,scrolling:!0})},stopScroll:function(){clearInterval(this.scrollInterval),this.setState({scrolling:!1})}})},function(t,e,n){"use strict";function i(){}function r(t,e,n){var i=s({},n),r={color:i.color||t.arrowColor},o=4,u=i.width||t.arrowWidth||t.arrowSize||t.style.height-o,l=i.height||t.arrowHeight||t.arrowSize||t.style.height-o;return r.width=u,r.height=l,s(i,a("top"==t.side?"up":"down",r)),i.display="inline-block",i.position="absolute",i.left="50%",i.marginLeft=-u,i.top="50%",i.marginTop=-l/2,e.active&&(i.marginTop+="top"==t.side?-1:1),i}var o=n(2),s=n(1),a=n(21),u={left:0,right:0,position:"absolute",cursor:"pointer",zIndex:1},l=o.createClass({displayName:"Scroller",display:"ReactMenuScroller",getInitialState:function(){return{}},getDefaultProps:function(){return{height:10,defaultStyle:{background:"white"},defaultOverStyle:{},overStyle:{},defaultTopStyle:{borderBottom:"1px solid gray"},topStyle:{},defaultBottomStyle:{borderTop:"1px solid gray"},bottomStyle:{},arrowColor:"gray",arrowStyle:{},defaultArrowStyle:{},defaultArrowOverStyle:{color:"rgb(74, 74, 74)"},arrowOverStyle:{}}},handleMouseEnter:function(){this.setState({mouseOver:!0})},handleMouseLeave:function(){this.setState({mouseOver:!1})},handleMouseDown:function(t){this.setState({active:!0}),(this.props.onMouseDown||i)(t)},handleMouseUp:function(t){this.setState({active:!1}),(this.props.onMouseUp||i)(t)},render:function(){var t=s({},this.props,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),e=this.state,n=t.side;t.className=this.prepareClassName(t,e),t.style=this.prepareStyle(t,e);var i=this.prepareArrowStyle(t,e);return t.factory?t.factory(t,n):o.createElement("div",o.__spread({},t),o.createElement("div",{style:i}))},prepareStyle:function(t,e){var n,i;e.mouseOver&&(i=t.overStyle,n=t.defaultOverStyle);var r="top"==t.side?t.defaultTopStyle:t.defaultBottomStyle,o="top"==t.side?t.topStyle:t.bottomStyle,a=s({},u,t.defaultStyle,r,n,t.style,o,i);return a.height=a.height||t.height,a[t.side]=0,t.visible||(a.display="none"),a},prepareClassName:function(t){var e=t.className||"";return e+=" z-menu-scroller "+t.side,t.active&&t.visible&&(e+=" active"),e},prepareArrowStyle:function(t,e){var n,i;e.mouseOver&&(n=t.defaultArrowOverStyle,i=t.arrowOverStyle);var o=s({},t.defaultArrowStyle,n,t.arrowStyle,i);return r(t,e,o)},handleClick:function(t){t.stopPropagation}});t.exports=l},function(t,e,n){"use strict";var i=n(2),r=n(1),o=n(25),s=n(7),a=i.createFactory(s),u=n(13);t.exports=function(t,e,s,l){var h=e.itemProps?e.itemProps.index:-1;if("-"===s)return i.createElement(u,{key:l});var c=[t.itemClassName,s.cls,s.className].filter(function(t){return!!t}).join(" "),f=r({className:c,key:l,data:s,columns:t.columns,expanded:l===h,disabled:s.disabled,onClick:s.onClick||s.fn},t.itemStyleProps);if(f.children=o(f),s.items){var p=n(6);f.children.push(i.createElement(p,{items:s.items}))}return(t.itemFactory||a)(f)}},function(t,e,n){"use strict";function i(){}var r=n(2),o=n(4),s=n(8),a=n(1);t.exports=function(t,e){var n=e.itemProps?e.itemProps.index:-1,u=t.children,l=1,h=[];r.Children.map(u,function(t){var e=t.props;if(h.push(t),e&&e.isMenuItem){var n=r.Children.count(e.children);l=Math.max(l,n)}});var c=t.itemStyleProps,f=-1,p=h.map(function(e,u){var p=e.props;p&&p.isMenuItem&&(f++,p.onMenuItemMouseOver=this.onMenuItemMouseOver,p.onMenuItemMouseOut=this.onMenuItemMouseOut);var d=r.Children.map(p.children,function(t){return t}),m=r.Children.count(d);for(l>m&&(d=d?[d]:[]);l>m;)m++,d.push(r.createElement(o,null));var v=p.onClick||i,g=s(e,a({interactionStyles:t.interactionStyles,itemIndex:f,itemCount:h.length,key:u,index:u,expanded:n==u,children:d,expander:t.expander,applyDefaultTheme:t.applyDefaultTheme,theme:t.theme,themes:t.themes||this.constructor.themes,onExpanderClick:this.onMenuItemExpanderClick,onClick:function(t,e,n){v.apply(null,arguments),this.onMenuItemClick(t,e,n)}.bind(this)},{style:c.itemStyle,overStyle:c.itemOverStyle,activeStyle:c.itemActiveStyle,disabledStyle:c.itemDisabledStyle,expandedStyle:c.itemExpandedStyle,cellStyle:c.cellStyle}));return g},this);return p}},function(t,e,n){"use strict";var i=(n(3),n(1)),r=n(8),o=n(56);t.exports=function(t,e){var n=e.menu;if(n&&this.didMount){var s=o.call(this,t,e);return n=r(n,i({ref:"subMenu",subMenu:!0,parentMenu:this,maxHeight:e.subMenuMaxHeight,onActivate:this.onSubMenuActivate,onInactivate:this.onSubMenuInactivate,scrollerProps:t.scrollerProps,constrainTo:t.constrainTo,expander:t.expander,theme:t.theme,themes:t.themes||this.constructor.themes},t.itemStyleProps)),React.createElement("div",{ref:"subMenuWrap",style:s,onMouseEnter:this.handleSubMenuMouseEnter,onMouseLeave:this.handleSubMenuMouseLeave},n)}}},function(t){t.exports=function(){"use strict";var t={};return function(e){if(!t[e]){for(var n=[],i=0;e>i;i++)n.push("a["+i+"]");t[e]=new Function("c","a","return new c("+n.join(",")+")")}return t[e]}}()},function(t,e,n){var i=n(31);t.exports=function(t,e){return i(e.length)(t,e)}},function(t){t.exports=function(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],s=e[2],a=s[0]-r[0],u=s[1]-r[1],l=o[0]-r[0],h=o[1]-r[1],c=n-r[0],f=i-r[1],p=a*a+u*u,d=a*l+u*h,m=a*c+u*f,v=l*l+h*h,g=l*c+h*f,y=p*v-d*d,b=0===y?0:1/y,S=(v*m-d*g)*b,M=(p*g-d*m)*b;return S>=0&&M>=0&&1>S+M}},function(t,e,n){"use strict";t.exports=n(35)?{onMouseDown:"onTouchStart",onMouseUp:"onTouchEnd",onMouseMove:"onTouchMove"}:{onMouseDown:"onMouseDown",onMouseUp:"onMouseUp",onMouseMove:"onMouseMove"}},23,function(t,e,n){"use strict";var i=n(11),r=n(10),o=n(15);t.exports=function(t){if(!o[t])return t;var e=r(t);return e?e+i(t):t}},function(t,e,n){"use strict";var i,r,o=n(10),s=n(36),a=n(9),u={};t.exports=function(t,e){r=r||a(),i=i||r.style;var n=t+": "+e;if(u[n])return u[n];var l,h,c;return t in i||(l=o("appearance"),l&&(h=s(t,e),c="-"+l.toLowerCase()+"-"+e,h in i&&(r.style[h]="",r.style[h]=c,""!==r.style[h]&&(e=c)))),u[n]=e,e}},function(t,e,n){"use strict";var i=n(39),r=n(15);t.exports=function(t,e){return r[t]?i(t,e):t}},function(t,e,n){"use strict";var i,r,o=n(11),s=n(10),a=n(9),u={};t.exports=function(t){r=r||a(),i=i||r.style;var e=t;if(u[e])return u[e];var n,l;return t in i||(n=s("appearance"),n&&(l=n+o(t),l in i&&(t=l))),u[e]=t,t}},function(t){"use strict";t.exports=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},function(t){"use strict";t.exports=function(t,e){return e?Array.isArray(e)?e.map(t).filter(function(t){return!!t}):t(e):void 0}},function(t,e,n){"use strict";var i=n(37);t.exports=function(t){return t.plugins=t.plugins||[function(){var t={flex:1,"inline-flex":1};return function(e,n){return"display"===e&&n in t?{key:e,value:i(e,n)}:void 0}}()],t.plugin=function(e){t.plugins=t.plugins||[],t.plugins.push(e)},t}},function(t,e,n){"use strict";var i=n(5);i.prototype.alignToRegion=function(t,e){return i.align(this,t,e),this},i.prototype.alignToPoint=function(t,e){return i.alignToPoint(this,t,e),this}},function(t,e,n){"use strict";var i=n(5);i.align=function(t,e,n){return e=i.from(e),n=(n||"c-c").split("-"),2!=n.length&&console.warn("Incorrect region alignment! The align parameter need to be in the form 'br-c', that is, a - separated string!",n),i.alignToPoint(t,e.getPoint(n[1]),n[0])},i.alignToPoint=function(t,e,n){t=i.from(t);var r=t.getPoint(n),o=0,s={};return null!=r.x&&null!=e.x&&(o++,s.left=e.x-r.x),null!=r.y&&null!=e.y&&(o++,s.top=e.y-r.y),o&&t.shift(s),t}},function(t,e,n){"use strict";function i(t,e,n,i){e=r.from(e),i=i||{};var o=i.constrain,s=i.sync,a=i.offset||[],u=!1,l=!1,h=t.clone();Array.isArray(n)||(n=n?[n]:[]),Array.isArray(a)||(a=a?[a]:[]),o&&(o=o===!0?r.getDocRegion():o.getRegion()),s&&(s.size?(u=!0,l=!0):(u=s===!0?!0:s.width||!1,l=s===!0?!0:s.height||!1)),u&&h.setWidth(e.getWidth()),l&&h.setHeight(e.getHeight());for(var c,f,p,d,m=0,v=n.length,g=-1,y=-1;v>m;m++){if(f=n[m],c=a[m],h.alignToRegion(e,f),c&&(Array.isArray(c)||(c=a[m]=[c.x||c.left,c.y||c.top]),h.shift({left:c[0],top:c[1]})),!o)return t.set(h),f;if(p=h.getIntersection(o),p&&p.equals(h))return t.set(h),f;p&&(d=p.getArea())>g&&(g=d,y=m)}return~y?(f=n[y],c=a[y],h.alignToRegion(e,f),c&&h.shift({left:c[0],top:c[1]}),p=h.getIntersection(o),h.setRegion(p),h.alignToRegion(e,f),c&&h.shift({left:c[0],top:c[1]}),t.set(h),f):void 0}var r=n(5);t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){t=o.from(t);var s=t.clone(),a=r(s,e,n,i);return{position:a,region:s,widthChanged:s.getWidth()!=t.getWidth(),heightChanged:s.getHeight()!=t.getHeight(),positionChanged:s.equalsPosition(t)}}var r=n(45),o=n(5);t.exports=i},function(t,e,n){"use strict";function i(t,e,n){return t&&n.forEach(function(n){r(t,n)&&(e[n]=t[n])}),e}var r=n(16),o=n(32),s=n(1),a=n(52).EventEmitter,u=n(48),l=n(17),h=Object.prototype.toString,c=function(t){return"[object Object]"===h.apply(t)},f={cy:"YCenter",cx:"XCenter",t:"Top",tc:"TopCenter",tl:"TopLeft",tr:"TopRight",b:"Bottom",bc:"BottomCenter",bl:"BottomLeft",br:"BottomRight",l:"Left",lc:"LeftCenter",r:"Right",rc:"RightCenter",c:"Center"},p=function(t,e,n,r){return this instanceof p?(a.call(this),c(t)?(i(t,this,["top","right","bottom","left"]),null==t.bottom&&null!=t.height&&(this.bottom=this.top+t.height),null==t.right&&null!=t.width&&(this.right=this.left+t.width),t.emitChangeEvents&&(this.emitChangeEvents=t.emitChangeEvents)):(this.top=t,this.right=e,this.bottom=n,this.left=r),this[0]=this.left,this[1]=this.top,void l(this)):o(p,arguments)};u(p,a),s(p.prototype,{emitChangeEvents:!1,getRegion:function(t){return t?this.clone():this},setRegion:function(t){return this.set(t instanceof p?t.get():t),this},validate:function(){return p.validate(this)},_before:function(){return this.emitChangeEvents?i(this,{},["left","top","bottom","right"]):void 0},_after:function(t){this.emitChangeEvents&&((this.top!=t.top||this.left!=t.left)&&this.emitPositionChange(),(this.right!=t.right||this.bottom!=t.bottom)&&this.emitSizeChange())},notifyPositionChange:function(){this.emit("changeposition",this)},emitPositionChange:function(){this.notifyPositionChange()},notifySizeChange:function(){this.emit("changesize",this)},emitSizeChange:function(){this.notifySizeChange()},add:function(t){var e,n=this._before();for(e in t)r(t,e)&&(this[e]+=t[e]);return this[0]=this.left,this[1]=this.top,this._after(n),this},substract:function(t){var e,n=this._before();for(e in t)r(t,e)&&(this[e]-=t[e]);return this[0]=this.left,this[1]=this.top,this._after(n),this},getSize:function(){return{width:this.width,height:this.height}},setPosition:function(t){var e=this.width,n=this.height;return void 0!=t.left&&(t.right=t.left+e),void 0!=t.top&&(t.bottom=t.top+n),this.set(t)},setSize:function(t){return void 0!=t.height&&void 0!=t.width?this.set({right:this.left+t.width,bottom:this.top+t.height}):(void 0!=t.width&&this.setWidth(t.width),void 0!=t.height&&this.setHeight(t.height),this)},setWidth:function(t){return this.set({right:this.left+t})},setHeight:function(t){return this.set({bottom:this.top+t})},set:function(t){var e=this._before();return i(t,this,["left","top","bottom","right"]),null==t.bottom&&null!=t.height&&(this.bottom=this.top+t.height),null==t.right&&null!=t.width&&(this.right=this.left+t.width),this[0]=this.left,this[1]=this.top,this._after(e),this},get:function(t){return t?this[t]:i(this,{},["left","right","top","bottom"])},shift:function(t){var e=this._before();return t.top&&(this.top+=t.top,this.bottom+=t.top),t.left&&(this.left+=t.left,this.right+=t.left),this[0]=this.left,this[1]=this.top,this._after(e),this},unshift:function(t){return t.top&&(t.top*=-1),t.left&&(t.left*=-1),this.shift(t)},equals:function(t){return this.equalsPosition(t)&&this.equalsSize(t)},equalsSize:function(t){var e=t instanceof p,n={width:null==t.width&&e?t.getWidth():t.width,height:null==t.height&&e?t.getHeight():t.height};
  return this.getWidth()==n.width&&this.getHeight()==n.height},equalsPosition:function(t){return this.top==t.top&&this.left==t.left},addLeft:function(t){var e=this._before();return this.left=this[0]=this.left+t,this._after(e),this},addTop:function(t){var e=this._before();return this.top=this[1]=this.top+t,this._after(e),this},addBottom:function(t){var e=this._before();return this.bottom+=t,this._after(e),this},addRight:function(t){var e=this._before();return this.right+=t,this._after(e),this},minTop:function(){return this.expand({top:1})},maxBottom:function(){return this.expand({bottom:1})},minLeft:function(){return this.expand({left:1})},maxRight:function(){return this.expand({right:1})},expand:function(t,e){var n,o=e||p.getDocRegion(),s=[],a=this._before();for(n in t)r(t,n)&&s.push(n);return i(o,this,s),this[0]=this.left,this[1]=this.top,this._after(a),this},clone:function(){return new p({top:this.top,left:this.left,right:this.right,bottom:this.bottom})},containsPoint:function(t,e){return 1==arguments.length&&(e=t.y,t=t.x),this.left<=t&&t<=this.right&&this.top<=e&&e<=this.bottom},containsRegion:function(t){return this.containsPoint(t.left,t.top)&&this.containsPoint(t.right,t.bottom)},diffHeight:function(t){return this.diff(t,{top:!0,bottom:!0})},diffWidth:function(t){return this.diff(t,{left:!0,right:!0})},diff:function(t,e){var n,i={};for(n in e)r(e,n)&&(i[n]=this[n]-t[n]);return i},getPosition:function(){return{left:this.left,top:this.top}},getPoint:function(t,e){f[t]||console.warn("The position ",t," could not be found! Available options are tl, bl, tr, br, l, r, t, b.");var n="getPoint"+f[t],i=this[n]();return e?{left:i.x,top:i.y}:i},getPointYCenter:function(){return{x:null,y:this.top+this.getHeight()/2}},getPointXCenter:function(){return{x:this.left+this.getWidth()/2,y:null}},getPointTop:function(){return{x:null,y:this.top}},getPointTopCenter:function(){return{x:this.left+this.getWidth()/2,y:this.top}},getPointTopLeft:function(){return{x:this.left,y:this.top}},getPointTopRight:function(){return{x:this.right,y:this.top}},getPointBottom:function(){return{x:null,y:this.bottom}},getPointBottomCenter:function(){return{x:this.left+this.getWidth()/2,y:this.bottom}},getPointBottomLeft:function(){return{x:this.left,y:this.bottom}},getPointBottomRight:function(){return{x:this.right,y:this.bottom}},getPointLeft:function(){return{x:this.left,y:null}},getPointLeftCenter:function(){return{x:this.left,y:this.top+this.getHeight()/2}},getPointRight:function(){return{x:this.right,y:null}},getPointRightCenter:function(){return{x:this.right,y:this.top+this.getHeight()/2}},getPointCenter:function(){return{x:this.left+this.getWidth()/2,y:this.top+this.getHeight()/2}},getHeight:function(){return this.bottom-this.top},getWidth:function(){return this.right-this.left},getTop:function(){return this.top},getLeft:function(){return this.left},getBottom:function(){return this.bottom},getRight:function(){return this.right},getArea:function(){return this.getWidth()*this.getHeight()},constrainTo:function(t){var e,n=this.getIntersection(t);if(!n||!n.equals(this)){var i=t.getWidth(),r=t.getHeight();return this.getWidth()>i&&(this.left=t.left,this.setWidth(i)),this.getHeight()>r&&(this.top=t.top,this.setHeight(r)),e={},this.right>t.right&&(e.left=t.right-this.right),this.bottom>t.bottom&&(e.top=t.bottom-this.bottom),this.left<t.left&&(e.left=t.left-this.left),this.top<t.top&&(e.top=t.top-this.top),this.shift(e),!0}return!1},__IS_REGION:!0}),Object.defineProperties(p.prototype,{width:{get:function(){return this.getWidth()},set:function(t){return this.setWidth(t)}},height:{get:function(){return this.getHeight()},set:function(t){return this.setHeight(t)}}}),n(49)(p),t.exports=p},function(t){"use strict";t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}},function(t,e,n){"use strict";var i=n(16),r=n(17);t.exports=function(t){var e=Math.max,n=Math.min,o={init:function(){var e,n,r={getIntersection:!0,getIntersectionArea:!0,getIntersectionHeight:!0,getIntersectionWidth:!0,getUnion:!0},o=t.prototype,s=i(r);for(n in r)s(n)&&(e=r[n],"string"!=typeof e&&(e=n),function(e,n,i){e[n]=function(e){return t[i]||console.warn("cannot find method ",i," on ",t),t[i](this,e)}}(o,e,n))},validate:r,getDocRegion:function(){return t.fromDOM(document.documentElement)},from:function(e){if(e.__IS_REGION)return e;if("undefined"!=typeof document){if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return t.fromDOM(e);if(e.type&&"undefined"!=typeof e.pageX&&"undefined"!=typeof e.pageY)return t.fromEvent(e)}return t(e)},fromEvent:function(e){return t.fromPoint({x:e.pageX,y:e.pageY})},fromDOM:function(e){var n=e.getBoundingClientRect();return new t({top:n.top,left:n.left,bottom:n.bottom,right:n.right})},getIntersection:function(e,n){var i=this.getIntersectionArea(e,n);return i?new t(i):!1},getIntersectionWidth:function(t,i){var r=n(t.right,i.right),o=e(t.left,i.left);return r>o?r-o:0},getIntersectionHeight:function(t,i){var r=e(t.top,i.top),o=n(t.bottom,i.bottom);return o>r?o-r:0},getIntersectionArea:function(t,i){var r=e(t.top,i.top),o=n(t.right,i.right),s=n(t.bottom,i.bottom),a=e(t.left,i.left);return s>r&&o>a?{top:r,right:o,bottom:s,left:a,width:o-a,height:s-r}:!1},getUnion:function(i,r){var o=n(i.top,r.top),s=e(i.right,r.right),a=e(i.bottom,r.bottom),u=n(i.left,r.left);return new t(o,s,a,u)},getRegion:function(e){return t.from(e)},fromPoint:function(e){return new t({top:e.y,bottom:e.y,left:e.x,right:e.x})}};Object.keys(o).forEach(function(e){t[e]=o[e]}),t.init()}},function(t){"use strict";function e(t,e){function n(i){function r(){var r=arguments.length,o=[].concat(i);return r&&o.push.apply(o,arguments),o.length<e?n(o):t.apply(this,o)}return r}return"number"!=typeof e&&(e=t.length),n([])}t.exports=e},function(t){"use strict";var e=Element.prototype,n=e.matches||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;t.exports=n},function(t){function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function r(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,i,s,a,u,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(i=this._events[t],o(i))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:for(s=arguments.length,a=new Array(s-1),u=1;s>u;u++)a[u-1]=arguments[u];i.apply(this,a)}else if(r(i)){for(s=arguments.length,a=new Array(s-1),u=1;s>u;u++)a[u-1]=arguments[u];for(l=i.slice(),s=l.length,u=0;s>u;u++)l[u].apply(this,a)}return!0},e.prototype.addListener=function(t,i){var s;if(!n(i))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(i.listener)?i.listener:i),this._events[t]?r(this._events[t])?this._events[t].push(i):this._events[t]=[this._events[t],i]:this._events[t]=i,r(this._events[t])&&!this._events[t].warned){var s;s=o(this._maxListeners)?e.defaultMaxListeners:this._maxListeners,s&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())}return this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var r=!1;return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,o,s,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],s=i.length,o=-1,i===e||n(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(i)){for(a=s;a-->0;)if(i[a]===e||i[a].listener&&i[a].listener===e){o=a;break}if(0>o)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],n(i))this.removeListener(t,i);else for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.listenerCount=function(t,e){var i;return i=t._events&&t._events[e]?n(t._events[e])?1:t._events[e].length:0}},function(t){"use strict";t.exports={"default":{overStyle:{background:"linear-gradient(to bottom, rgb(125, 191, 242) 0%, rgb(110, 184, 241) 50%, rgb(117, 188, 242) 100%)",color:"white"},activeStyle:{background:" linear-gradient(to bottom, rgb(106,182,240) 0%,rgb(91,175,239) 50%,rgb(96,178,240) 100%)",color:"white"},expandedStyle:{background:"linear-gradient(to bottom, rgb(162,210,246) 0%,rgb(151,204,245) 50%,rgb(154,206,246) 100%)",color:"white"},disabledStyle:{color:"gray",cursor:"default"}}}},function(t,e,n){"use strict";var i=(n(3),n(19));t.exports=function(t,e,n,r){var o=i.call(this,r);if(o){if("function"!=typeof t.alignSubMenu){var s=e.alignTo(n,["tl-tr","bl-br","tr-tl","br-bl"],{constrain:o});return"tl-tr"==s||"tr-tl"==s?1:-1}t.alignSubMenu(e,n,o)}}},function(t,e,n){"use strict";var i=n(1);t.exports=function(t){var e=i({},t.defaultItemStyle,t.itemStyle),n=i({},t.defaultItemOverStyle,t.itemOverStyle),r=i({},t.defaultItemActiveStyle,t.itemActiveStyle),o=i({},t.defaultItemDisabledStyle,t.itemDisabledStyle),s=i({},t.defaultItemExpandedStyle,t.itemExpandedStyle),a=i({},t.defaultCellStyle,t.cellStyle);return{itemStyle:e,itemOverStyle:n,itemActiveStyle:r,itemDisabledStyle:o,itemExpandedStyle:s,cellStyle:a}}},function(t,e,n){"use strict";var i=n(3),r=n(1),o=n(54);t.exports=function(t,e){if(!e.menu||!this.didMount)return void(this.prevMenuIndex=-1);var n=e.menuOffset,s=n.left+n.width,a=n.top,u=e.itemProps.index,l=this.prevMenuIndex==u;this.aligning&&!l&&(this.aligning=!1),this.prevMenuIndex=u;var h={position:"absolute",visibility:"hidden",overflow:"hidden",pointerEvents:"none",left:s,top:a,zIndex:1};return this.aligning||l||setTimeout(function(){if(this.didMount){var e=i.from(this.getDOMNode()),r=i.from({left:e.left,top:e.top+n.top,width:n.width,height:n.height}),u=this.refs.subMenu&&this.refs.subMenu.isMounted();if(u){var l,h=i.from(this.refs.subMenu.refs.scrollContainer.getCurrentSizeDOM()),c=h.height,f=o(t,h,r,t.constrainTo),p=h.height;c>p&&(l=p-t.subMenuConstrainMargin),l&&-1==f&&(h.top=h.bottom-l);var d=h.left-e.left,m=h.top-e.top;Math.abs(d-s)<5&&(d=s),Math.abs(m-a)<5&&(m=a),this.subMenuPosition=0>d?"left":"right",this.alignOffset={left:d,top:m},this.aligning=!0,this.setState({subMenuMaxHeight:l})}}}.bind(this),0),(l||this.aligning&&this.alignOffset)&&(r(h,this.alignOffset),h.visibility="visible",delete h.pointerEvents,delete h.overflow),this.aligning=!1,h}},function(t,e,n){"use strict";var i=n(2);t.exports={items:i.PropTypes.array,columns:i.PropTypes.array,onMount:i.PropTypes.func,defaultRowActiveStyle:i.PropTypes.object,defaultRowOverStyle:i.PropTypes.object,defaultRowStyle:i.PropTypes.object,rowActiveStyle:i.PropTypes.object,rowOverStyle:i.PropTypes.object,rowStyle:i.PropTypes.object,cellStyle:i.PropTypes.object}}]))});