aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/index.js2
-rw-r--r--src/About.tsx12
-rw-r--r--src/Snow.tsx2
3 files changed, 5 insertions, 11 deletions
diff --git a/dist/index.js b/dist/index.js
index c8e6098..5831158 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -67,5 +67,5 @@ Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,a=3,o=-1,i=-1,s
* @website https://github.com/jsstyles/css-vendor
* @license MIT
*/
-t.prefix=r.default,t.supportedProperty=a.default,t.supportedValue=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!s)return e;if(null!=l[e])return l[e];(0,o.default)(e)in s.style?l[e]=e:a.default.js+(0,o.default)("-"+e)in s.style?l[e]=a.default.css+e:l[e]=!1;return l[e]};var r=i(n(51)),a=i(n(70)),o=i(n(364));function i(e){return e&&e.__esModule?e:{default:e}}var s=void 0,l={};if(r.default){s=document.createElement("p");var u=window.getComputedStyle(document.documentElement,"");for(var d in u)isNaN(d)||(l[u[d]]=u[d])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,a)};var r=/[-\s]+(.)?/g;function a(e,t){return t?t.toUpperCase():""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!s)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=i[n])return i[n];try{s.style[e]=t}catch(e){return i[n]=!1,!1}""!==s.style[e]?i[n]=t:("-ms-flex"===(t=a.default.css+t)&&(t="-ms-flexbox"),s.style[e]=t,""!==s.style[e]&&(i[n]=t));i[n]||(i[n]=!1);return s.style[e]="",i[n]};var r=o(n(51)),a=o(n(70));function o(e){return e&&e.__esModule?e:{default:e}}var i={},s=void 0;r.default&&(s=document.createElement("p"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,n){if("style"!==n.type)return t;var r={},a=Object.keys(t).sort(e);for(var o in a)r[a[o]]=t[a[o]];return r}}}},function(e,t,n){"use strict";var r=n(112),a=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MuiThemeProviderOld=void 0;var o=a(n(4)),i=a(n(10)),s=a(n(12)),l=a(n(13)),u=a(n(14)),d=a(n(15)),c=a(n(16)),f=a(n(1)),h=a(n(0)),p=(a(n(6)),a(n(371))),m=n(7),y=r(n(71)),v=function(e){function t(e,n){var r;return(0,s.default)(this,t),(r=(0,u.default)(this,(0,d.default)(t).call(this))).broadcast=(0,p.default)(),r.outerTheme=y.default.initial(n),r.broadcast.setState(r.mergeOuterLocalTheme(e.theme)),r}return(0,c.default)(t,e),(0,l.default)(t,[{key:"getChildContext",value:function(){var e,t=this.props,n=t.disableStylesGeneration,r=t.sheetsCache,a=t.sheetsManager,o=this.context.muiThemeProviderOptions||{};return void 0!==n&&(o.disableStylesGeneration=n),void 0!==r&&(o.sheetsCache=r),void 0!==a&&(o.sheetsManager=a),e={},(0,i.default)(e,y.CHANNEL,this.broadcast),(0,i.default)(e,"muiThemeProviderOptions",o),e}},{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=y.default.subscribe(this.context,function(t){e.outerTheme=t,e.broadcast.setState(e.mergeOuterLocalTheme(e.props.theme))})}},{key:"componentDidUpdate",value:function(e){this.props.theme!==e.theme&&this.broadcast.setState(this.mergeOuterLocalTheme(this.props.theme))}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&y.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"mergeOuterLocalTheme",value:function(e){return"function"==typeof e?e(this.outerTheme):this.outerTheme?(0,o.default)({},this.outerTheme,e):e}},{key:"render",value:function(){return this.props.children}}]),t}(f.default.Component);t.MuiThemeProviderOld=v,v.childContextTypes=(0,o.default)({},y.default.contextTypes,{muiThemeProviderOptions:h.default.object}),v.contextTypes=(0,o.default)({},y.default.contextTypes,{muiThemeProviderOptions:h.default.object}),m.ponyfillGlobal.__MUI_STYLES__||(m.ponyfillGlobal.__MUI_STYLES__={}),m.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider||(m.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider=v);var g=m.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider;t.default=g},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(370);function a(){}e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),t.default=function(e){var t={},n=1,r=e;return{getState:function(){return r},setState:function(e){r=e;for(var n=Object.keys(t),a=0,o=n.length;a<o;a++)t[n[a]]&&t[n[a]](e)},subscribe:function(e){if("function"!=typeof e)throw new Error("listener must be a function.");var r=n;return t[r]=e,n+=1,r},unsubscribe:function(e){t[e]=void 0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={jss:"64a55d578f856d258dc345b094a2a2b3",sheetsRegistry:"d4bd0baacbc52bbd48bbb9eb24344ecd",sheetOptions:"6fc570d6bd61383819d0f9e7407c452d"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={set:function(e,t,n,r){var a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=(r(n(31)),r(n(6)),r(n(47)));function i(e,t){return t}var s=function(e){var t="function"==typeof e;return{create:function(n,r){var s=t?e(n):e;if(!r||!n.overrides||!n.overrides[r])return s;var l=n.overrides[r],u=(0,a.default)({},s);return Object.keys(l).forEach(function(e){u[e]=(0,o.default)(u[e],l[e],{arrayMerge:i})}),u},options:{},themingEnabled:t}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.theme,n=e.name,r=e.props;if(!t.props||!n||!t.props[n])return r;var a,o=t.props[n];for(a in o)void 0===r[a]&&(r[a]=o[a]);return r};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(378))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=(r(n(0)),n(30)),c=(n(7),function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component));c.defaultProps={children:null};var f=(0,d.withStyles)(function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},body:{margin:0,backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}}}}},{name:"MuiCssBaseline"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(380))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d=n(21),c=r(n(114)),f=function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}};function h(e){var t,n=e.children,r=e.classes,u=e.className,f=e.color,h=e.position,p=(0,i.default)(e,["children","classes","className","color","position"]),m=(0,l.default)(r.root,r["position".concat((0,d.capitalize)(h))],(t={},(0,o.default)(t,r["color".concat((0,d.capitalize)(f))],"inherit"!==f),(0,o.default)(t,"mui-fixed","fixed"===h),t),u);return s.default.createElement(c.default,(0,a.default)({square:!0,component:"header",elevation:4,className:m},p),n)}t.styles=f,h.defaultProps={color:"primary",position:"fixed"};var p=(0,u.default)(f,{name:"MuiAppBar"})(h);t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(5)),i=r(n(4)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(r(n(6)),n(7),r(n(8))),d=function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),(0,i.default)({root:{backgroundColor:e.palette.background.paper},rounded:{borderRadius:e.shape.borderRadius}},t)};function c(e){var t=e.classes,n=e.className,r=e.component,u=e.square,d=e.elevation,c=(0,o.default)(e,["classes","className","component","square","elevation"]),f=(0,l.default)(t.root,t["elevation".concat(d)],(0,a.default)({},t.rounded,!u),n);return s.default.createElement(r,(0,i.default)({className:f},c))}t.styles=d,c.defaultProps={component:"div",elevation:2,square:!1};var f=(0,u.default)(d,{name:"MuiPaper"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(383))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d=function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:e.mixins.gutters(),regular:e.mixins.toolbar,dense:{minHeight:48}}};function c(e){var t=e.children,n=e.classes,r=e.className,u=e.disableGutters,d=e.variant,c=(0,i.default)(e,["children","classes","className","disableGutters","variant"]),f=(0,l.default)(n.root,n[d],(0,o.default)({},n.gutters,!u),r);return s.default.createElement("div",(0,a.default)({className:f},c),t)}t.styles=d,c.defaultProps={disableGutters:!1,variant:"regular"};var f=(0,u.default)(d,{name:"MuiToolbar"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(21),c=function(e){return{root:{display:"block",margin:0},display4:e.typography.display4,display3:e.typography.display3,display2:e.typography.display2,display1:e.typography.display1,headline:e.typography.headline,title:e.typography.title,subheading:e.typography.subheading,body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},inline:{display:"inline"}}};t.styles=c;var f={display4:"h1",display3:"h2",display2:"h3",display1:"h4",headline:"h5",title:"h6",subheading:"subtitle1"};var h={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",display4:"h1",display3:"h1",display2:"h1",display1:"h1",headline:"h1",title:"h2",subheading:"h3"};function p(e){var t,n=e.align,r=e.classes,u=e.className,c=e.color,p=e.component,m=e.gutterBottom,y=e.headlineMapping,v=e.inline,g=(e.internalDeprecatedVariant,e.noWrap),A=e.paragraph,b=e.theme,M=e.variant,k=(0,i.default)(e,["align","classes","className","color","component","gutterBottom","headlineMapping","inline","internalDeprecatedVariant","noWrap","paragraph","theme","variant"]),x=function(e,t){var n=e.typography,r=t;return r||(r=n.useNextVariants?"body2":"body1"),n.useNextVariants&&(r=f[r]||r),r}(b,M),w=(0,l.default)(r.root,(t={},(0,o.default)(t,r[x],"inherit"!==x),(0,o.default)(t,r["color".concat((0,d.capitalize)(c))],"default"!==c),(0,o.default)(t,r.noWrap,g),(0,o.default)(t,r.gutterBottom,m),(0,o.default)(t,r.paragraph,A),(0,o.default)(t,r["align".concat((0,d.capitalize)(n))],"inherit"!==n),(0,o.default)(t,r.inline,v),t),u),T=p||(A?"p":y[x]||h[x])||"span";return s.default.createElement(T,(0,a.default)({className:w},k))}p.defaultProps={align:"inherit",color:"default",gutterBottom:!1,headlineMapping:h,inline:!1,noWrap:!1,paragraph:!1};var m=(0,u.default)(c,{name:"MuiTypography",withTheme:!0})(p);t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(386))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(10)),f=r(n(1)),h=(r(n(0)),r(n(6)),r(n(9))),p=r(n(54)),m=r(n(55)),y=n(387),v=(n(7),r(n(388))),g=r(n(389)),A=r(n(8)),b=r(n(390)),M=r(n(391)),k=(r(n(120)),function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch"},flexContainer:{display:"flex"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll"},scrollButtons:{},scrollButtonsAuto:(0,c.default)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}});t.styles=k;var x=function(e){function t(){var e;return(0,i.default)(this,t),(e=(0,l.default)(this,(0,u.default)(t).call(this))).state={indicatorStyle:{},scrollerStyle:{marginBottom:0},showLeftScroll:!1,showRightScroll:!1,mounted:!1},e.getConditionalElements=function(){var t=e.props,n=t.classes,r=t.scrollable,a=t.ScrollButtonComponent,o=t.scrollButtons,i=t.theme,s={},l="scrollable"===t.variant||r;s.scrollbarSizeListener=l?f.default.createElement(g.default,{onChange:e.handleScrollbarSizeChange}):null;var u=l&&("auto"===o||"on"===o);return s.scrollButtonLeft=u?f.default.createElement(a,{direction:i&&"rtl"===i.direction?"right":"left",onClick:e.handleLeftScrollClick,visible:e.state.showLeftScroll,className:(0,h.default)(n.scrollButtons,(0,c.default)({},n.scrollButtonsAuto,"auto"===o))}):null,s.scrollButtonRight=u?f.default.createElement(a,{direction:i&&"rtl"===i.direction?"left":"right",onClick:e.handleRightScrollClick,visible:e.state.showRightScroll,className:(0,h.default)(n.scrollButtons,(0,c.default)({},n.scrollButtonsAuto,"auto"===o))}):null,s},e.getTabsMeta=function(t,n){var r,a;if(e.tabsRef){var o=e.tabsRef.getBoundingClientRect();r={clientWidth:e.tabsRef.clientWidth,scrollLeft:e.tabsRef.scrollLeft,scrollLeftNormalized:(0,y.getNormalizedScrollLeft)(e.tabsRef,n),scrollWidth:e.tabsRef.scrollWidth,left:o.left,right:o.right}}if(e.tabsRef&&!1!==t){var i=e.tabsRef.children[0].children;if(i.length>0){var s=i[e.valueToIndex.get(t)];a=s?s.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:a}},e.handleLeftScrollClick=function(){e.moveTabsScroll(-e.tabsRef.clientWidth)},e.handleRightScrollClick=function(){e.moveTabsScroll(e.tabsRef.clientWidth)},e.handleScrollbarSizeChange=function(t){e.setState({scrollerStyle:{marginBottom:-t}})},e.moveTabsScroll=function(t){var n=e.props.theme,r="rtl"===n.direction?-1:1,a=e.tabsRef.scrollLeft+t*r,o="rtl"===n.direction&&"reverse"===(0,y.detectScrollType)()?-1:1;e.scroll(o*a)},e.scrollSelectedIntoView=function(){var t=e.props,n=t.theme,r=t.value,a=e.getTabsMeta(r,n.direction),o=a.tabsMeta,i=a.tabMeta;if(i&&o)if(i.left<o.left){var s=o.scrollLeft+(i.left-o.left);e.scroll(s)}else if(i.right>o.right){var l=o.scrollLeft+(i.right-o.right);e.scroll(l)}},e.scroll=function(t){(0,v.default)("scrollLeft",e.tabsRef,t)},e.updateScrollButtonState=function(){var t=e.props,n=t.scrollable,r=t.scrollButtons,a=t.theme;if(("scrollable"===t.variant||n)&&"off"!==r){var o=e.tabsRef,i=o.scrollWidth,s=o.clientWidth,l=(0,y.getNormalizedScrollLeft)(e.tabsRef,a.direction),u="rtl"===a.direction?i>s+l:l>0,d="rtl"===a.direction?l>0:i>s+l;u===e.state.showLeftScroll&&d===e.state.showRightScroll||e.setState({showLeftScroll:u,showRightScroll:d})}},"undefined"!=typeof window&&(e.handleResize=(0,m.default)(function(){e.updateIndicatorState(e.props),e.updateScrollButtonState()},166),e.handleTabsScroll=(0,m.default)(function(){e.updateScrollButtonState()},166)),e}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.updateIndicatorState(this.props),this.updateScrollButtonState(),this.props.action&&this.props.action({updateIndicator:this.handleResize})}},{key:"componentDidUpdate",value:function(e,t){this.updateIndicatorState(this.props),this.updateScrollButtonState(),this.state.indicatorStyle!==t.indicatorStyle&&this.scrollSelectedIntoView()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear(),this.handleTabsScroll.clear()}},{key:"updateIndicatorState",value:function(e){var t=e.theme,n=e.value,r=this.getTabsMeta(n,t.direction),a=r.tabsMeta,o=r.tabMeta,i=0;if(o&&a){var s="rtl"===t.direction?a.scrollLeftNormalized+a.clientWidth-a.scrollWidth:a.scrollLeft;i=Math.round(o.left-a.left+s)}var l={left:i,width:o?Math.round(o.width):0};l.left===this.state.indicatorStyle.left&&l.width===this.state.indicatorStyle.width||isNaN(l.left)||isNaN(l.width)||this.setState({indicatorStyle:l})}},{key:"render",value:function(){var e,t=this,n=this.props,r=(n.action,n.centered),i=n.children,s=n.classes,l=n.className,u=n.component,d=n.fullWidth,m=void 0!==d&&d,y=n.indicatorColor,v=n.onChange,g=n.scrollable,A=void 0!==g&&g,M=(n.ScrollButtonComponent,n.scrollButtons,n.TabIndicatorProps),k=void 0===M?{}:M,x=n.textColor,w=(n.theme,n.value),T=n.variant,L=(0,o.default)(n,["action","centered","children","classes","className","component","fullWidth","indicatorColor","onChange","scrollable","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","theme","value","variant"]),S="scrollable"===T||A,D=(0,h.default)(s.root,l),Y=(0,h.default)(s.flexContainer,(0,c.default)({},s.centered,r&&!S)),j=(0,h.default)(s.scroller,(e={},(0,c.default)(e,s.fixed,!S),(0,c.default)(e,s.scrollable,S),e)),E=f.default.createElement(b.default,(0,a.default)({className:s.indicator,color:y},k,{style:(0,a.default)({},this.state.indicatorStyle,k.style)}));this.valueToIndex=new Map;var P=0,O=f.default.Children.map(i,function(e){if(!f.default.isValidElement(e))return null;var n=void 0===e.props.value?P:e.props.value;t.valueToIndex.set(n,P);var r=n===w;return P+=1,f.default.cloneElement(e,{fullWidth:"fullWidth"===T||m,indicator:r&&!t.state.mounted&&E,selected:r,onChange:v,textColor:x,value:n})}),C=this.getConditionalElements();return f.default.createElement(u,(0,a.default)({className:D},L),f.default.createElement(p.default,{target:"window",onResize:this.handleResize}),C.scrollbarSizeListener,f.default.createElement("div",{className:s.flexContainer},C.scrollButtonLeft,f.default.createElement("div",{className:j,style:this.state.scrollerStyle,ref:function(e){t.tabsRef=e},role:"tablist",onScroll:this.handleTabsScroll},f.default.createElement("div",{className:Y},O),this.state.mounted&&E),C.scrollButtonRight))}}]),t}(f.default.Component);x.defaultProps={centered:!1,component:"div",indicatorColor:"secondary",ScrollButtonComponent:M.default,scrollButtons:"auto",textColor:"inherit",variant:"standard"};var w=(0,A.default)(k,{name:"MuiTabs",withTheme:!0})(x);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(){if(r)return r;if(!a||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}t._setScrollType=function(e){r=e},t.detectScrollType=o,t.getNormalizedScrollLeft=function(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=o();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n},t.setNormalizedScrollLeft=function(e,t,n){if("rtl"===n){var r=o();if("indeterminate"!==r)switch(r){case"negative":e.scrollLeft=e.clientWidth-e.scrollWidth+t;break;case"reverse":e.scrollLeft=e.scrollWidth-e.clientWidth-t;break;default:e.scrollLeft=t}}else e.scrollLeft=t}},function(e,t,n){"use strict";function r(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=a.ease,s=void 0===i?r:i,l=a.duration,u=void 0===l?300:l,d=null,c=t[e],f=!1,h=function(){f=!0};return c===n?(o(new Error("Element already at target position")),h):(requestAnimationFrame(function r(a){if(f)o(new Error("Animation cancelled"));else{null===d&&(d=a);var i=Math.min(1,(a-d)/u);t[e]=s(i)*(n-c)+c,i>=1?requestAnimationFrame(function(){o(null)}):requestAnimationFrame(r)}}),h)};t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=(r(n(0)),r(n(54))),c=r(n(55)),f={width:90,height:90,position:"absolute",top:-9e3,overflow:"scroll",msOverflowStyle:"scrollbar"},h=function(e){function t(){var e;return(0,a.default)(this,t),(e=(0,i.default)(this,(0,s.default)(t).call(this))).handleRef=function(t){e.nodeRef=t},e.setMeasurements=function(){var t=e.nodeRef;t&&(e.scrollbarHeight=t.offsetHeight-t.clientHeight)},"undefined"!=typeof window&&(e.handleResize=(0,c.default)(function(){var t=e.scrollbarHeight;e.setMeasurements(),t!==e.scrollbarHeight&&e.props.onChange(e.scrollbarHeight)},166)),e}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.setMeasurements(),this.props.onChange(this.scrollbarHeight)}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement(d.default,{target:"window",onResize:this.handleResize}),u.default.createElement("div",{style:f,ref:this.handleRef}))}}]),t}(u.default.Component);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=r(n(8)),u=n(21),d=function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main}}};t.styles=d;var c=(0,l.default)(d,{name:"MuiPrivateTabIndicator"})(function(e){var t=e.classes,n=e.className,r=e.color,l=(0,o.default)(e,["classes","className","color"]);return i.default.createElement("span",(0,a.default)({className:(0,s.default)(t.root,t["color".concat((0,u.capitalize)(r))],n)},l))});t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=r(n(392)),u=r(n(400)),d=r(n(8)),c=r(n(40)),f={root:{color:"inherit",width:56,flexShrink:0}};t.styles=f;var h=i.default.createElement(l.default,null),p=i.default.createElement(u.default,null);function m(e){var t=e.classes,n=e.className,r=e.direction,l=e.onClick,u=e.visible,d=(0,o.default)(e,["classes","className","direction","onClick","visible"]),f=(0,s.default)(t.root,n);return u?i.default.createElement(c.default,(0,a.default)({className:f,onClick:l,tabIndex:-1},d),"left"===r?h:p):i.default.createElement("div",{className:f})}m.defaultProps={visible:!0};var y=(0,d.default)(f,{name:"MuiPrivateTabScrollButton"})(m);t.default=y},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),o=r(n(74)),i=r(n(75)),s=a.default.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),l=function(e){return a.default.createElement(i.default,e,s)};(l=(0,o.default)(l)).muiName="SvgIcon";var u=l;t.default=u},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(394)),o=n(1),i=(r(n(115)),r(n(116)),function(e){return function(t){var n=(0,o.createFactory)(t);return function(t){function r(){return t.apply(this,arguments)||this}(0,a.default)(r,t);var o=r.prototype;return o.shouldComponentUpdate=function(t){return e(this.props,t)},o.render=function(){return n(this.props)},r}(o.Component)}});t.default=i},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){return function(n){return n[e]=t,n}};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0};t.default=r},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(398)).default;t.default=a},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(a(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!a(e[n[i]],t[n[i]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(21),c=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:24,transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:20},fontSizeLarge:{fontSize:35}}};function f(e){var t,n=e.children,r=e.classes,u=e.className,c=e.color,f=e.component,h=e.fontSize,p=e.nativeColor,m=e.titleAccess,y=e.viewBox,v=(0,i.default)(e,["children","classes","className","color","component","fontSize","nativeColor","titleAccess","viewBox"]);return s.default.createElement(f,(0,a.default)({className:(0,l.default)(r.root,(t={},(0,o.default)(t,r["color".concat((0,d.capitalize)(c))],"inherit"!==c),(0,o.default)(t,r["fontSize".concat((0,d.capitalize)(h))],"default"!==h),t),u),focusable:"false",viewBox:y,color:p,"aria-hidden":m?"false":"true",role:m?"img":"presentation"},v),n,m?s.default.createElement("title",null,m):null)}t.styles=c,f.defaultProps={color:"inherit",component:"svg",fontSize:"default",viewBox:"0 0 24 24"},f.muiName="SvgIcon";var h=(0,u.default)(c,{name:"MuiSvgIcon"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),o=r(n(74)),i=r(n(75)),s=a.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),l=function(e){return a.default.createElement(i.default,e,s)};(l=(0,o.default)(l)).muiName="SvgIcon";var u=l;t.default=u},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(52)),h=r(n(1)),p=(r(n(0)),r(n(20))),m=r(n(9)),y=(n(7),r(n(76))),v=r(n(8)),g=r(n(402)),A=n(404),b=r(n(405)),M=r(n(411)),k={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}};t.styles=k;var x=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={},n.keyDown=!1,n.focusVisibleCheckTime=50,n.focusVisibleMaxCheckTimes=5,n.handleMouseDown=(0,M.default)((0,f.default)((0,f.default)(n)),"MouseDown","start",function(){clearTimeout(n.focusVisibleTimeout),n.state.focusVisible&&n.setState({focusVisible:!1})}),n.handleMouseUp=(0,M.default)((0,f.default)((0,f.default)(n)),"MouseUp","stop"),n.handleMouseLeave=(0,M.default)((0,f.default)((0,f.default)(n)),"MouseLeave","stop",function(e){n.state.focusVisible&&e.preventDefault()}),n.handleTouchStart=(0,M.default)((0,f.default)((0,f.default)(n)),"TouchStart","start"),n.handleTouchEnd=(0,M.default)((0,f.default)((0,f.default)(n)),"TouchEnd","stop"),n.handleTouchMove=(0,M.default)((0,f.default)((0,f.default)(n)),"TouchMove","stop"),n.handleContextMenu=(0,M.default)((0,f.default)((0,f.default)(n)),"ContextMenu","stop"),n.handleBlur=(0,M.default)((0,f.default)((0,f.default)(n)),"Blur","stop",function(){clearTimeout(n.focusVisibleTimeout),n.state.focusVisible&&n.setState({focusVisible:!1})}),n.onRippleRef=function(e){n.ripple=e},n.onFocusVisibleHandler=function(e){n.keyDown=!1,n.setState({focusVisible:!0}),n.props.onFocusVisible&&n.props.onFocusVisible(e)},n.handleKeyDown=function(e){var t=n.props,r=t.component,a=t.focusRipple,o=t.onKeyDown,i=t.onClick;a&&!n.keyDown&&n.state.focusVisible&&n.ripple&&" "===e.key&&(n.keyDown=!0,e.persist(),n.ripple.stop(e,function(){n.ripple.start(e)})),o&&o(e),e.target!==e.currentTarget||!r||"button"===r||" "!==e.key&&"Enter"!==e.key||"A"===n.button.tagName&&n.button.href||(e.preventDefault(),i&&i(e))},n.handleKeyUp=function(e){n.props.focusRipple&&" "===e.key&&n.ripple&&n.state.focusVisible&&(n.keyDown=!1,e.persist(),n.ripple.stop(e,function(){n.ripple.pulsate(e)})),n.props.onKeyUp&&n.props.onKeyUp(e)},n.handleFocus=function(e){n.props.disabled||(n.button||(n.button=e.currentTarget),e.persist(),(0,A.detectFocusVisible)((0,f.default)((0,f.default)(n)),n.button,function(){n.onFocusVisibleHandler(e)}),n.props.onFocus&&n.props.onFocus(e))},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.button=p.default.findDOMNode(this),(0,A.listenForFocusKeys)((0,y.default)(this.button)),this.props.action&&this.props.action({focusVisible:function(){e.setState({focusVisible:!0}),e.button.focus()}})}},{key:"componentDidUpdate",value:function(e,t){this.props.focusRipple&&!this.props.disableRipple&&!t.focusVisible&&this.state.focusVisible&&this.ripple.pulsate()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusVisibleTimeout)}},{key:"render",value:function(){var e,t=this.props,n=(t.action,t.buttonRef),r=t.centerRipple,s=t.children,l=t.classes,u=t.className,d=t.component,c=t.disabled,f=t.disableRipple,p=(t.disableTouchRipple,t.focusRipple,t.focusVisibleClassName),y=(t.onBlur,t.onFocus,t.onFocusVisible,t.onKeyDown,t.onKeyUp,t.onMouseDown,t.onMouseLeave,t.onMouseUp,t.onTouchEnd,t.onTouchMove,t.onTouchStart,t.tabIndex),v=t.TouchRippleProps,A=t.type,M=(0,i.default)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","type"]),k=(0,m.default)(l.root,(e={},(0,o.default)(e,l.disabled,c),(0,o.default)(e,l.focusVisible,this.state.focusVisible),(0,o.default)(e,p,this.state.focusVisible),e),u),x=d;"button"===x&&M.href&&(x="a");var w={};return"button"===x?(w.type=A||"button",w.disabled=c):w.role="button",h.default.createElement(x,(0,a.default)({className:k,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onMouseLeave:this.handleMouseLeave,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onContextMenu:this.handleContextMenu,ref:n,tabIndex:c?"-1":y},w,M),s,f||c?null:h.default.createElement(g.default,null,h.default.createElement(b.default,(0,a.default)({innerRef:this.onRippleRef,center:r},v))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0===t.focusVisible?{focusVisible:!1,lastDisabled:e.disabled}:!t.prevState&&e.disabled&&t.focusVisible?{focusVisible:!1,lastDisabled:e.disabled}:{lastDisabled:e.disabled}}}]),t}(h.default.Component);x.defaultProps={centerRipple:!1,component:"button",disableRipple:!1,disableTouchRipple:!1,focusRipple:!1,tabIndex:"0",type:"button"};var w=(0,v.default)(k,{name:"MuiButtonBase"})(x);t.default=w},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(403))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=(r(n(0)),n(7),function(e){function t(){var e,n;(0,a.default)(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return(n=(0,i.default)(this,(e=(0,s.default)(t)).call.apply(e,[this].concat(o)))).mounted=!1,n.state={mounted:!1},n}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0,this.props.defer?requestAnimationFrame(function(){requestAnimationFrame(function(){e.mounted&&e.setState({mounted:!0})})}):this.setState({mounted:!0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.fallback;return this.state.mounted?t:n}}]),t}(u.default.Component));d.defaultProps={defer:!1,fallback:null};var c=d;t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.detectFocusVisible=function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;t.focusVisibleTimeout=setTimeout(function(){var s=(0,a.default)(n),l=function(e){var t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}(s);o.focusKeyPressed&&(l===n||n.contains(l))?r():i<t.focusVisibleMaxCheckTimes&&e(t,n,r,i+1)},t.focusVisibleCheckTime)},t.listenForFocusKeys=function(e){e.addEventListener("keyup",s)};r(n(6));var a=r(n(25)),o={focusKeyPressed:!1,keyUpEventTimeout:-1};var i=[9,13,27,32,37,38,39,40];var s=function(e){(function(e){return i.indexOf(e.keyCode)>-1})(e)&&(o.focusKeyPressed=!0,clearTimeout(o.keyUpEventTimeout),o.keyUpEventTimeout=setTimeout(function(){o.focusKeyPressed=!1},500))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=t.DELAY_RIPPLE=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(117)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(52)),h=r(n(1)),p=(r(n(0)),r(n(20))),m=r(n(77)),y=r(n(9)),v=r(n(8)),g=r(n(410)),A=550,b=80;t.DELAY_RIPPLE=b;var M=function(e){return{root:{display:"block",position:"absolute",overflow:"hidden",borderRadius:"inherit",width:"100%",height:"100%",left:0,top:0,pointerEvents:"none",zIndex:0},ripple:{width:50,height:50,left:0,top:0,opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"mui-ripple-enter ".concat(A,"ms ").concat(e.transitions.easing.easeInOut),animationName:"$mui-ripple-enter"},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"mui-ripple-exit ".concat(A,"ms ").concat(e.transitions.easing.easeInOut),animationName:"$mui-ripple-exit"},childPulsate:{position:"absolute",left:0,top:0,animation:"mui-ripple-pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite"),animationName:"$mui-ripple-pulsate"},"@keyframes mui-ripple-enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes mui-ripple-exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes mui-ripple-pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}};t.styles=M;var k=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={nextKey:0,ripples:[]},n.pulsate=function(){n.start({},{pulsate:!0})},n.start=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=t.pulsate,o=void 0!==a&&a,i=t.center,s=void 0===i?n.props.center||t.pulsate:i,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&n.ignoringMouseDown)n.ignoringMouseDown=!1;else{"touchstart"===e.type&&(n.ignoringMouseDown=!0);var d,c,h,m=u?null:p.default.findDOMNode((0,f.default)((0,f.default)(n))),y=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)d=Math.round(y.width/2),c=Math.round(y.height/2);else{var v=e.clientX?e.clientX:e.touches[0].clientX,g=e.clientY?e.clientY:e.touches[0].clientY;d=Math.round(v-y.left),c=Math.round(g-y.top)}if(s)(h=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(h+=1);else{var A=2*Math.max(Math.abs((m?m.clientWidth:0)-d),d)+2,M=2*Math.max(Math.abs((m?m.clientHeight:0)-c),c)+2;h=Math.sqrt(Math.pow(A,2)+Math.pow(M,2))}e.touches?(n.startTimerCommit=function(){n.startCommit({pulsate:o,rippleX:d,rippleY:c,rippleSize:h,cb:r})},n.startTimer=setTimeout(function(){n.startTimerCommit&&(n.startTimerCommit(),n.startTimerCommit=null)},b)):n.startCommit({pulsate:o,rippleX:d,rippleY:c,rippleSize:h,cb:r})}},n.startCommit=function(e){var t=e.pulsate,r=e.rippleX,a=e.rippleY,o=e.rippleSize,s=e.cb;n.setState(function(e){return{nextKey:e.nextKey+1,ripples:[].concat((0,i.default)(e.ripples),[h.default.createElement(g.default,{key:e.nextKey,classes:n.props.classes,timeout:{exit:A,enter:A},pulsate:t,rippleX:r,rippleY:a,rippleSize:o})])}},s)},n.stop=function(e,t){clearTimeout(n.startTimer);var r=n.state.ripples;if("touchend"===e.type&&n.startTimerCommit)return e.persist(),n.startTimerCommit(),n.startTimerCommit=null,void(n.startTimer=setTimeout(function(){n.stop(e,t)}));n.startTimerCommit=null,r&&r.length&&n.setState({ripples:r.slice(1)},t)},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.startTimer)}},{key:"render",value:function(){var e=this.props,t=(e.center,e.classes),n=e.className,r=(0,o.default)(e,["center","classes","className"]);return h.default.createElement(m.default,(0,a.default)({component:"span",enter:!0,exit:!0,className:(0,y.default)(t.root,n)},r),this.state.ripples)}}]),t}(h.default.PureComponent);k.defaultProps={center:!1};var x=(0,v.default)(M,{flip:!1,name:"MuiTouchRipple"})(k);t.default=x},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return a(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=a(e.children),l=o(t,s);return Object.keys(l).forEach(function(a){var o=l[a];if((0,r.isValidElement)(o)){var u=a in t,d=a in s,c=t[a],f=(0,r.isValidElement)(c)&&!c.props.in;!d||u&&!f?d||!u||f?d&&u&&(0,r.isValidElement)(c)&&(l[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:c.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):l[a]=(0,r.cloneElement)(o,{in:!1}):l[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}}),l};var r=n(1);function a(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),o=[];for(var i in e)i in t?o.length&&(a[i]=o,o=[]):o.push(i);var s={};for(var l in t){if(a[l])for(r=0;r<a[l].length;r++){var u=a[l][r];s[a[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(1)),h=(r(n(0)),r(n(9))),p=r(n(41)),m=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={visible:!1,leaving:!1},n.handleEnter=function(){n.setState({visible:!0})},n.handleExit=function(){n.setState({leaving:!0})},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.classes,s=n.className,l=n.pulsate,u=n.rippleX,d=n.rippleY,c=n.rippleSize,m=(0,i.default)(n,["classes","className","pulsate","rippleX","rippleY","rippleSize"]),y=this.state,v=y.visible,g=y.leaving,A=(0,h.default)(r.ripple,(e={},(0,o.default)(e,r.rippleVisible,v),(0,o.default)(e,r.ripplePulsate,l),e),s),b={width:c,height:c,top:-c/2+d,left:-c/2+u},M=(0,h.default)(r.child,(t={},(0,o.default)(t,r.childLeaving,g),(0,o.default)(t,r.childPulsate,l),t));return f.default.createElement(p.default,(0,a.default)({onEnter:this.handleEnter,onExit:this.handleExit},m),f.default.createElement("span",{className:A,style:b},f.default.createElement("span",{className:M})))}}]),t}(f.default.Component);m.defaultProps={pulsate:!1};var y=m;t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t,n,r){return function(a){r&&r.call(e,a);var o=!1;return a.defaultPrevented&&(o=!0),e.props.disableTouchRipple&&"Blur"!==t&&(o=!0),!o&&e.ripple&&e.ripple[n](a),"function"==typeof e.props["on".concat(t)]&&e.props["on".concat(t)](a),!0}};"undefined"==typeof window&&(r=function(){return function(){}});var a=r;t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(413))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(5)),o=r(n(12)),i=r(n(13)),s=r(n(14)),l=r(n(15)),u=r(n(16)),d=r(n(10)),c=r(n(4)),f=r(n(1)),h=(r(n(0)),r(n(9))),p=r(n(8)),m=r(n(40)),y=n(21),v=(r(n(414)),function(e){return{root:(0,c.default)({},e.typography.button,(0,d.default)({maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",padding:0,minHeight:48,flexShrink:0,overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.breakpoints.up("md"),{fontSize:e.typography.pxToRem(13),minWidth:160})),labelIcon:{minHeight:72,paddingTop:9},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.4}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,maxWidth:"none"},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},labelContainer:(0,d.default)({width:"100%",boxSizing:"border-box",padding:"6px 12px"},e.breakpoints.up("md"),{padding:"6px 24px"}),label:{},labelWrapped:{}}});t.styles=v;var g=function(e){function t(){var e,n;(0,o.default)(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=(0,s.default)(this,(e=(0,l.default)(t)).call.apply(e,[this].concat(a)))).state={labelWrapped:!1},n.handleChange=function(e){var t=n.props,r=t.onChange,a=t.value,o=t.onClick;r&&r(e,a),o&&o(e)},n.checkTextWrap=function(){if(n.labelRef){var e=n.labelRef.getClientRects().length>1;n.state.labelWrapped!==e&&n.setState({labelWrapped:e})}},n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.checkTextWrap()}},{key:"componentDidUpdate",value:function(e,t){this.state.labelWrapped===t.labelWrapped&&this.checkTextWrap()}},{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.classes,i=r.className,s=r.disabled,l=r.fullWidth,u=r.icon,p=r.indicator,v=r.label,g=(r.onChange,r.selected),A=r.textColor,b=(r.value,(0,a.default)(r,["classes","className","disabled","fullWidth","icon","indicator","label","onChange","selected","textColor","value"]));return void 0!==v&&(t=f.default.createElement("span",{className:o.labelContainer},f.default.createElement("span",{className:(0,h.default)(o.label,(0,d.default)({},o.labelWrapped,this.state.labelWrapped)),ref:function(e){n.labelRef=e}},v))),f.default.createElement(m.default,(0,c.default)({focusRipple:!0,className:(0,h.default)(o.root,o["textColor".concat((0,y.capitalize)(A))],(e={},(0,d.default)(e,o.disabled,s),(0,d.default)(e,o.selected,g),(0,d.default)(e,o.labelIcon,u&&t),(0,d.default)(e,o.fullWidth,l),e),i),role:"tab","aria-selected":g,disabled:s},b,{onClick:this.handleChange}),f.default.createElement("span",{className:o.wrapper},u,t),p)}}]),t}(f.default.Component);g.defaultProps={disabled:!1,textColor:"inherit"};var A=(0,p.default)(v,{name:"MuiTab"})(g);t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t,n,r,a){return null};t.default=r},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=s(n(417)),a=s(n(421)),o=s(n(77)),i=s(n(41));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:o.default,ReplaceTransition:a.default,CSSTransition:r.default}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(0));var r=s(n(418)),a=s(n(420)),o=s(n(1)),i=s(n(41));n(119);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})},c=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),u(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("enter").doneClassName;t.removeClasses(e,n?"appear":"enter"),u(e,r),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),u(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),u(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"!=typeof n?n[e]:n+"-"+e;return{className:r,activeClassName:"string"!=typeof n?n[e+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[e+"Done"]:r+"-done"}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,a=n.activeClassName,o=n.doneClassName;r&&d(e,r),a&&d(e,a),o&&d(e,o)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,u(e,t))},a.render=function(){var e=l({},this.props);return delete e.classNames,o.default.createElement(i.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);c.propTypes={};var f=c;t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var a=r(n(419));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;i(n(0));var r=i(n(1)),a=n(20),o=i(n(77));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.handleLifecycle=function(e,t,n){var o,i=this.props.children,s=r.default.Children.toArray(i)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["children","in"]),i=r.default.Children.toArray(t),s=i[0],l=i[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,r.default.createElement(o.default,a,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(30),o=r(n(121)),i=r(n(423));t.defaultChartColor=i.default[300],t.theme=a.createMuiTheme({palette:{primary:{light:o.default[300],main:o.default[500],dark:o.default[700],contrastText:"#fff"}},typography:{useNextVariants:!0}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"};t.default=r},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(1)),l=o(n(425)),u=n(30),d=o(n(428)),c=o(n(478)),f=o(n(480)),h=o(n(482)),p=o(n(484)),m=o(n(486)),y=o(n(488)),v=o(n(491)),g=o(n(53)),A=o(n(133)),b=n(494),M=o(n(282)),k=i(n(638));function x(e){return Math.floor(Math.random()*Math.floor(e))}function w(e,t){for(var n,r,a=e.slice(0),o=e.length,i=o-t;o-- >i;)n=a[r=Math.floor((o+1)*Math.random())],a[r]=a[o],a[o]=n;return a.slice(i)}var T=[15,10,5,1],L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={colorMatrix:t.genMatrix(20),n:"20",k:"10",alpha:"8",nodesPerTick:"20",maxInactiveTicks:"200",loaded:!0,ticking:!1,simulationSpeed:100,dialogOpen:!1,dialogMsg:{title:"",message:""},nError:!1,kError:!1,alphaError:!1,nodesPerTickError:!1,maxInactiveTicksError:!1,dcnts:[T.map(function(){return[]}),T.map(function(){return[]})],ticks:[],N:400},n.config={iter:0,n:20,k:10,alpha:8,nodesPerTick:10,maxInactiveTicks:200,inactiveTicks:0},n}return a(t,e),t.genMatrix=function(e){for(var t=[],n=0;n<e;n++){for(var r=[],a=0;a<e;a++)r.push({d:[0,0],col:x(2)});t.push(r)}return t},t.prototype.getNodeState=function(e,t){var n=Math.floor(t/e),r=t%e;return this.state.colorMatrix[n][r]},t.prototype.setNodeState=function(e,t,n){var r=Math.floor(t/e),a=t%e,o=this.state.colorMatrix.slice();o[r][a]=n,this.setState({colorMatrix:o})},t.prototype.tick=function(e,t){for(var n=this,r=e*e,a=!1,o=[],i=0;i<r;i++)o.push(i);if(w(o,t).forEach(function(t){for(var o=x(r),i=[],s=0;s<r;s++)s!=o&&i.push(s);var l=w(i,n.config.k),u=[0,0];l.forEach(function(t){var r=n.getNodeState(e,t);u[r.col]++});for(var d=n.getNodeState(e,o),c=0;c<2;c++)u[c]>=n.config.alpha&&(d.d[c]++,d.d[c]>d.d[d.col]&&(d.col!=c&&(a=!0),d.col=c,n.setNodeState(e,o,d)))}),this.config.iter%10==0){for(var s=[],l=function(t){s.push(T.map(function(r,a){for(var o=0,i=0;i<e;i++)for(var s=0;s<e;s++){n.state.colorMatrix[i][s].d[t]>=r&&o++}return 0==t&&(o=-o),n.state.dcnts[t][a].concat([o]).splice(-50)}))},u=0;u<2;u++)l(u);this.setState({dcnts:s,ticks:this.state.ticks.concat([this.config.iter]).splice(-50)})}return a},t.prototype.pauseTick=function(){this.setState({ticking:!1})},t.prototype.startTick=function(){var e=Number(this.state.n),n=e*e,r=Number(this.state.k),a=Number(this.state.alpha),o=Number(this.state.nodesPerTick),i=Number(this.state.maxInactiveTicks);!Number.isInteger(e)||e<2||e>40?this.setState({nError:!0}):!Number.isInteger(r)||r<1||r>=n?this.setState({kError:!0}):Number.isInteger(a)&&r/2<a&&a<=r?!Number.isInteger(o)||o<1||o>n?this.setState({nodesPerTickError:!0}):!Number.isInteger(i)||i<1||i>1e6?this.setState({maxInactiveTicksError:!0}):(this.state.loaded||(this.config.iter=0,this.config.n=e,this.setState({loaded:!0,colorMatrix:t.genMatrix(this.config.n),dcnts:[T.map(function(){return[]}),T.map(function(){return[]})],ticks:[],N:e*e})),this.config.alpha=a,this.config.k=r,this.config.nodesPerTick=o,this.config.inactiveTicks=0,this.config.maxInactiveTicks=i,this.autoTick()):this.setState({alphaError:!0})},t.prototype.autoTick=function(){var e=this;this.setState({ticking:!0}),setTimeout(function(){var t=e.tick(e.config.n,e.config.nodesPerTick);if(e.config.iter++,t)e.config.inactiveTicks=0;else if(++e.config.inactiveTicks>e.config.maxInactiveTicks)return void e.pauseTick();e.state.ticking&&e.autoTick()},1e3/this.state.simulationSpeed)},t.prototype.reset=function(){this.setState({ticking:!1,loaded:!1})},t.prototype.flipNode=function(e,t){var n=this.state.colorMatrix[e][t],r=this.config.n;n.col=1-n.col,this.setNodeState(r,e*r+t,n)},t.prototype.render=function(){var e=this,t=this.props.classes;return s.default.createElement(l.default,{container:!0,spacing:16,style:{minWidth:600}},s.default.createElement(l.default,{item:!0,lg:6,xs:12,className:t.grid},s.default.createElement(k.default,{data:this.state.colorMatrix,onClickNode:function(t,n){return e.flipNode(t,n)},onHoverNode:function(t,n){return e.flipNode(t,n)}}),s.default.createElement("div",{style:{position:"relative",height:"40vh"}},s.default.createElement(b.Line,{data:function(){return{datasets:e.state.dcnts.map(function(e,t){return e.map(function(e,n){var r=k.getNodeColor(T[n],t);return{data:e,label:(0==t?"A":"B")+"(d-"+T[n]+")",borderColor:r,backgroundColor:M.default(r).fade(.5).rgb().string(),borderWidth:2}})}).flat(),labels:e.state.ticks}},options:{scales:{yAxes:[{ticks:{min:-this.state.N,max:this.state.N}}]},maintainAspectRatio:!1}}))),s.default.createElement(l.default,{item:!0,lg:4,xs:12},s.default.createElement(g.default,{variant:"body1",paragraph:!0},"This demo shows the Snowball protocol used as the core of a peer-to-peer payment system, Avalanche, introduced in ",s.default.createElement(A.default,{href:"https://avalanchelabs.org/QmT1ry38PAmnhparPUmsUNHDEGHQusBLD6T5XJh4mUUn3v.pdf",target:"_blank",rel:"noopener"},"this paper")," . It visualizes the process of a binary, single-decree, probabilistic Snowball consensus that harnesses metastability to guarantee safety. Little squares represent different nodes, wherein the color of each square represents its current proposal. Darkness of the color shows the node's conviction in that proposal. Expectedly, all nodes will collapse to the same color in the end."),s.default.createElement(g.default,{variant:"body1",paragraph:!0},"Try to click or move the mouse when clicked to flip the color of squares. Are you able to prevent them from going to a single color?"),s.default.createElement(c.default,null,s.default.createElement(f.default,null,s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"n ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:2},value:this.state.n,disabled:this.state.loaded,style:{width:40},error:this.state.nError,onChange:function(t){return e.setState({n:t.target.value,nError:!1})}}),s.default.createElement("sup",null,"2"),this.state.nError&&s.default.createElement("span",{className:t.errorHint},"n must be in 2..40"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"k ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:4},value:this.state.k,disabled:this.state.ticking,style:{width:40},error:this.state.kError,onChange:function(t){return e.setState({k:t.target.value,kError:!1})}}),this.state.kError&&s.default.createElement("span",{className:t.errorHint},"k must be in 1..(n-1)"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"alpha ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:4},value:this.state.alpha,disabled:this.state.ticking,style:{width:40},error:this.state.alphaError,onChange:function(t){return e.setState({alpha:t.target.value,alphaError:!1})}}),this.state.alphaError&&s.default.createElement("span",{className:t.errorHint},"alpha must be in (k/2, k]"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"nodesPerTick ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:4},value:this.state.nodesPerTick,disabled:this.state.ticking,style:{width:40},error:this.state.nodesPerTickError,onChange:function(t){return e.setState({nodesPerTick:t.target.value,nodesPerTickError:!1})}}),this.state.nodesPerTickError&&s.default.createElement("span",{className:t.errorHint},"nodesPerTick must be in 1..n"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"maxInactiveTicks ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue},value:this.state.maxInactiveTicks,disabled:this.state.ticking,style:{width:50},error:this.state.maxInactiveTicksError,onChange:function(t){return e.setState({maxInactiveTicks:t.target.value,maxInactiveTicksError:!1})}}),this.state.maxInactiveTicksError&&s.default.createElement("span",{className:t.errorHint},"maxInactiveTicks must be in 1..1000000"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"simulationSpeed"),s.default.createElement(p.default,null,s.default.createElement(y.default,{classes:{container:t.slider},value:this.state.simulationSpeed,min:1,max:1e3,onChange:function(t,n){return e.setState({simulationSpeed:n})}}))))),s.default.createElement("div",{className:t.buttonSpacer}),s.default.createElement("div",{className:t.bottomButtons},s.default.createElement(l.default,{container:!0,item:!0,spacing:16},s.default.createElement(l.default,{item:!0,md:4,xs:12},s.default.createElement(v.default,null,s.default.createElement(m.default,{variant:"contained",color:"primary",onClick:function(t){return e.startTick()},disabled:this.state.ticking},"Run"))),s.default.createElement(l.default,{item:!0,md:4,xs:12},s.default.createElement(v.default,null,s.default.createElement(m.default,{variant:"contained",color:"primary",onClick:function(t){return e.pauseTick()},disabled:!this.state.ticking},"Stop"))),s.default.createElement(l.default,{item:!0,md:4,xs:12},s.default.createElement(v.default,null,s.default.createElement(m.default,{variant:"contained",color:"primary",onClick:function(t){return e.reset()}},"Reset")))))))},t}(s.default.Component);t.default=u.withStyles(function(e){return{inputLabel:{fontSize:16,paddingRight:0,textAlign:"right",width:"30%"},inputValue:{textAlign:"left"},buttonSpacer:{marginBottom:4*e.spacing.unit},bottomButtons:{marginTop:10,textAlign:"center"},slider:{padding:"22px 0px"},errorHint:{fontSize:16,paddingLeft:16,lineHeight:"32px",color:e.palette.secondary.main},grid:{textAlign:"center"}}})(L)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(426))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(5)),i=r(n(4)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(97),c=(r(n(427)),[0,8,16,24,32,40]),f=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var h=function(e){return(0,i.default)({container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return c.forEach(function(e,r){0!==r&&(n["spacing-".concat(t,"-").concat(e)]={margin:-e/2,width:"calc(100% + ".concat(e,"px)"),"& > $item":{padding:e/2}})}),n}(0,"xs"),d.keys.reduce(function(t,n){return function(e,t,n){var r={};f.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var a="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:a,flexGrow:0,maxWidth:a}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?(0,i.default)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))};function p(e){var t,n=e.alignContent,r=e.alignItems,u=e.classes,d=e.className,c=e.component,f=e.container,h=e.direction,m=e.item,y=e.justify,v=e.lg,g=e.md,A=e.sm,b=e.spacing,M=e.wrap,k=e.xl,x=e.xs,w=e.zeroMinWidth,T=(0,o.default)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),L=(0,l.default)((t={},(0,a.default)(t,u.container,f),(0,a.default)(t,u.item,m),(0,a.default)(t,u.zeroMinWidth,w),(0,a.default)(t,u["spacing-xs-".concat(String(b))],f&&0!==b),(0,a.default)(t,u["direction-xs-".concat(String(h))],h!==p.defaultProps.direction),(0,a.default)(t,u["wrap-xs-".concat(String(M))],M!==p.defaultProps.wrap),(0,a.default)(t,u["align-items-xs-".concat(String(r))],r!==p.defaultProps.alignItems),(0,a.default)(t,u["align-content-xs-".concat(String(n))],n!==p.defaultProps.alignContent),(0,a.default)(t,u["justify-xs-".concat(String(y))],y!==p.defaultProps.justify),(0,a.default)(t,u["grid-xs-".concat(String(x))],!1!==x),(0,a.default)(t,u["grid-sm-".concat(String(A))],!1!==A),(0,a.default)(t,u["grid-md-".concat(String(g))],!1!==g),(0,a.default)(t,u["grid-lg-".concat(String(v))],!1!==v),(0,a.default)(t,u["grid-xl-".concat(String(k))],!1!==k),t),d);return s.default.createElement(c,(0,i.default)({className:L},T))}t.styles=h,p.defaultProps={alignContent:"stretch",alignItems:"stretch",component:"div",container:!1,direction:"row",item:!1,justify:"flex-start",lg:!1,md:!1,sm:!1,spacing:0,wrap:"wrap",xl:!1,xs:!1,zeroMinWidth:!1};var m=(0,u.default)(h,{name:"MuiGrid"})(p);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return function(){return null}};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(429))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=r(n(20)),h=(r(n(6)),r(n(0)),r(n(78))),p=r(n(433)),m=r(n(435)),y=r(n(438)),v=r(n(442)),g=r(n(444)),A=r(n(446)),b={standard:h.default,filled:p.default,outlined:m.default},M=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this,e))).labelRef=c.default.createRef(),n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){"outlined"===this.props.variant&&(this.labelNode=f.default.findDOMNode(this.labelRef.current),this.forceUpdate())}},{key:"render",value:function(){var e=this.props,t=e.autoComplete,n=e.autoFocus,r=e.children,i=e.className,s=e.defaultValue,l=e.error,u=e.FormHelperTextProps,d=e.fullWidth,f=e.helperText,h=e.id,p=e.InputLabelProps,m=e.inputProps,M=e.InputProps,k=e.inputRef,x=e.label,w=e.multiline,T=e.name,L=e.onBlur,S=e.onChange,D=e.onFocus,Y=e.placeholder,j=e.required,E=e.rows,P=e.rowsMax,O=e.select,C=e.SelectProps,H=e.type,R=e.value,N=e.variant,F=(0,o.default)(e,["autoComplete","autoFocus","children","className","defaultValue","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),W={};"outlined"===N&&(p&&void 0!==p.shrink&&(W.notched=p.shrink),W.labelWidth=this.labelNode&&this.labelNode.offsetWidth||0);var z=f&&h?"".concat(h,"-helper-text"):void 0,I=b[N],V=c.default.createElement(I,(0,a.default)({"aria-describedby":z,autoComplete:t,autoFocus:n,defaultValue:s,fullWidth:d,multiline:w,name:T,rows:E,rowsMax:P,type:H,value:R,id:h,inputRef:k,onBlur:L,onChange:S,onFocus:D,placeholder:Y,inputProps:m},W,M));return c.default.createElement(v.default,(0,a.default)({className:i,error:l,fullWidth:d,required:j,variant:N},F),x&&c.default.createElement(y.default,(0,a.default)({htmlFor:h,ref:this.labelRef},p),x),O?c.default.createElement(A.default,(0,a.default)({"aria-describedby":z,value:R,input:V},C),r):V,f&&c.default.createElement(g.default,(0,a.default)({id:z},u),f))}}]),t}(c.default.Component);M.defaultProps={required:!1,select:!1,variant:"standard"};var k=M;t.default=k},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(4)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(79))),d=r(n(8)),c=function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):not($focused):not($error):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputType:{},inputTypeSearch:{}}};function f(e){var t=e.disableUnderline,n=e.classes,r=(0,i.default)(e,["disableUnderline","classes"]);return s.default.createElement(u.default,(0,o.default)({classes:(0,o.default)({},n,{root:(0,l.default)(n.root,(0,a.default)({},n.underline,!t)),underline:null})},r))}t.styles=c,u.default.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"},f.muiName="Input";var h=(0,d.default)(c,{name:"MuiInput"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(14)),u=r(n(15)),d=r(n(13)),c=r(n(16)),f=r(n(1)),h=(r(n(0)),r(n(6)),r(n(9))),p=(n(7),r(n(34))),m=r(n(80)),y=r(n(35)),v=r(n(8)),g=n(36),A=r(n(432)),b=n(81),M=function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:0},a={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px")},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1}},inputMarginDense:{paddingTop:3},inputMultiline:{resize:"none",padding:0},inputType:{height:"1.1875em"},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{}}};t.styles=M;var k=function(e){function t(e){var n;return(0,s.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this,e))).state={focused:!1},n.handleFocus=function(e){var t=n.props.muiFormControl;(0,p.default)({props:n.props,muiFormControl:t,states:["disabled"]}).disabled?e.stopPropagation():(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus(e),t&&t.onFocus&&t.onFocus(e))},n.handleBlur=function(e){n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur(e);var t=n.props.muiFormControl;t&&t.onBlur&&t.onBlur(e)},n.handleChange=function(){var e;(n.isControlled||n.checkDirty(n.inputRef),n.props.onChange)&&(e=n.props).onChange.apply(e,arguments)},n.handleRefInput=function(e){var t;n.inputRef=e,n.props.inputRef?t=n.props.inputRef:n.props.inputProps&&n.props.inputProps.ref&&(t=n.props.inputProps.ref),(0,g.setRef)(t,e)},n.handleClick=function(e){n.inputRef&&e.currentTarget===e.target&&n.inputRef.focus(),n.props.onClick&&n.props.onClick(e)},n.isControlled=null!=e.value,n.isControlled&&n.checkDirty(e),n}return(0,c.default)(t,e),(0,d.default)(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.focused?{focused:!1}:null}}]),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.isControlled||this.checkDirty(this.inputRef)}},{key:"componentDidUpdate",value:function(e){if(!e.disabled&&this.props.disabled){var t=this.props.muiFormControl;t&&t.onBlur&&t.onBlur()}this.isControlled&&this.checkDirty(this.props)}},{key:"checkDirty",value:function(e){var t=this.props.muiFormControl;if((0,b.isFilled)(e))return t&&t.onFilled&&t.onFilled(),void(this.props.onFilled&&this.props.onFilled());t&&t.onEmpty&&t.onEmpty(),this.props.onEmpty&&this.props.onEmpty()}},{key:"render",value:function(){var e,t,n=this.props,r=n.autoComplete,s=n.autoFocus,l=n.classes,u=n.className,d=n.defaultValue,c=(n.disabled,n.endAdornment),y=(n.error,n.fullWidth),v=n.id,g=n.inputComponent,b=n.inputProps,M=(b=void 0===b?{}:b).className,k=(0,i.default)(b,["className"]),x=(n.inputRef,n.margin,n.muiFormControl),w=n.multiline,T=n.name,L=(n.onBlur,n.onChange,n.onClick,n.onEmpty,n.onFilled,n.onFocus,n.onKeyDown),S=n.onKeyUp,D=n.placeholder,Y=n.readOnly,j=n.renderPrefix,E=n.rows,P=n.rowsMax,O=n.startAdornment,C=n.type,H=n.value,R=(0,i.default)(n,["autoComplete","autoFocus","classes","className","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","muiFormControl","multiline","name","onBlur","onChange","onClick","onEmpty","onFilled","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderPrefix","rows","rowsMax","startAdornment","type","value"]),N=R["aria-describedby"];delete R["aria-describedby"];var F=(0,p.default)({props:this.props,muiFormControl:x,states:["disabled","error","margin","required","filled"]}),W=x?x.focused:this.state.focused,z=(0,h.default)(l.root,(e={},(0,o.default)(e,l.disabled,F.disabled),(0,o.default)(e,l.error,F.error),(0,o.default)(e,l.fullWidth,y),(0,o.default)(e,l.focused,W),(0,o.default)(e,l.formControl,x),(0,o.default)(e,l.marginDense,"dense"===F.margin),(0,o.default)(e,l.multiline,w),(0,o.default)(e,l.adornedStart,O),(0,o.default)(e,l.adornedEnd,c),e),u),I=(0,h.default)(l.input,(t={},(0,o.default)(t,l.disabled,F.disabled),(0,o.default)(t,l.inputType,"text"!==C),(0,o.default)(t,l.inputTypeSearch,"search"===C),(0,o.default)(t,l.inputMultiline,w),(0,o.default)(t,l.inputMarginDense,"dense"===F.margin),(0,o.default)(t,l.inputAdornedStart,O),(0,o.default)(t,l.inputAdornedEnd,c),t),M),V=g,B=(0,a.default)({},k,{ref:this.handleRefInput});return"string"!=typeof V?B=(0,a.default)({inputRef:this.handleRefInput,type:C},B,{ref:null}):w?E&&!P?V="textarea":(B=(0,a.default)({rowsMax:P,textareaRef:this.handleRefInput},B,{ref:null}),V=A.default):B=(0,a.default)({type:C},B),f.default.createElement("div",(0,a.default)({className:z,onClick:this.handleClick},R),j?j((0,a.default)({},F,{startAdornment:O,focused:W})):null,O,f.default.createElement(m.default.Provider,{value:null},f.default.createElement(V,(0,a.default)({"aria-invalid":F.error,"aria-describedby":N,autoComplete:r,autoFocus:s,className:I,defaultValue:d,disabled:F.disabled,id:v,name:T,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:L,onKeyUp:S,placeholder:D,readOnly:Y,required:F.required,rows:E,value:H},B))),c)}}]),t}(f.default.Component);k.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"};var x=(0,v.default)(M,{name:"MuiInputBase"})((0,y.default)(k));t.default=x},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(9))),h=r(n(55)),p=r(n(54)),m=r(n(8)),y=n(36),v=19,g={root:{position:"relative",width:"100%"},textarea:{width:"100%",height:"100%",resize:"none",font:"inherit",padding:0,cursor:"inherit",boxSizing:"border-box",lineHeight:"inherit",border:"none",outline:"none",background:"transparent"},shadow:{overflow:"hidden",visibility:"hidden",position:"absolute",height:"auto",whiteSpace:"pre-wrap"}};t.styles=g;var A=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this))).handleRefInput=function(e){n.inputRef=e,(0,y.setRef)(n.props.textareaRef,e)},n.handleRefSinglelineShadow=function(e){n.singlelineShadowRef=e},n.handleRefShadow=function(e){n.shadowRef=e},n.handleChange=function(e){n.value=e.target.value,n.isControlled||(n.shadowRef.value=n.value,n.syncHeightWithShadow()),n.props.onChange&&n.props.onChange(e)},n.isControlled=null!=e.value,n.value=e.value||e.defaultValue||"",n.state={height:Number(e.rows)*v},"undefined"!=typeof window&&(n.handleResize=(0,h.default)(function(){n.syncHeightWithShadow()},166)),n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.syncHeightWithShadow()}},{key:"componentDidUpdate",value:function(){this.syncHeightWithShadow()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"syncHeightWithShadow",value:function(){var e=this.props;if(this.shadowRef){this.isControlled&&(this.shadowRef.value=null==e.value?"":String(e.value));var t=this.singlelineShadowRef.scrollHeight;t=0===t?v:t;var n=this.shadowRef.scrollHeight;void 0!==n&&(Number(e.rowsMax)>=Number(e.rows)&&(n=Math.min(Number(e.rowsMax)*t,n)),n=Math.max(n,t),Math.abs(this.state.height-n)>1&&this.setState({height:n}))}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.defaultValue,i=(e.onChange,e.rows),s=(e.rowsMax,e.style),l=(e.textareaRef,e.value),u=(0,o.default)(e,["classes","className","defaultValue","onChange","rows","rowsMax","style","textareaRef","value"]);return c.default.createElement("div",{className:t.root},c.default.createElement(p.default,{target:"window",onResize:this.handleResize}),c.default.createElement("textarea",{"aria-hidden":"true",className:(0,f.default)(t.textarea,t.shadow),readOnly:!0,ref:this.handleRefSinglelineShadow,rows:"1",tabIndex:-1,value:""}),c.default.createElement("textarea",{"aria-hidden":"true",className:(0,f.default)(t.textarea,t.shadow),defaultValue:r,readOnly:!0,ref:this.handleRefShadow,rows:i,tabIndex:-1,value:l}),c.default.createElement("textarea",(0,a.default)({rows:i,className:(0,f.default)(t.textarea,n),defaultValue:r,value:l,onChange:this.handleChange,ref:this.handleRefInput,style:(0,a.default)({height:this.state.height},s)},u)))}}]),t}(c.default.Component);A.defaultProps={rows:1};var b=(0,m.default)(g,{name:"MuiPrivateTextarea"})(A);t.default=b},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(434))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(4)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(79))),d=r(n(8)),c=function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):not($focused):not($error):before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottom:"1px dotted ".concat(n)}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},multiline:{padding:"27px 12px 10px",boxSizing:"border-box"},input:{padding:"27px 12px 10px"},inputMarginDense:{paddingTop:24,paddingBottom:6},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}};function f(e){var t=e.disableUnderline,n=e.classes,r=(0,i.default)(e,["disableUnderline","classes"]);return s.default.createElement(u.default,(0,o.default)({classes:(0,o.default)({},n,{root:(0,l.default)(n.root,(0,a.default)({},n.underline,!t)),underline:null})},r))}t.styles=c,u.default.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"},f.muiName="Input";var h=(0,d.default)(c,{name:"MuiFilledInput"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(436))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=(n(7),r(n(79))),u=r(n(437)),d=r(n(8)),c=function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative","& $notchedOutline":{borderColor:t},"&:hover:not($disabled):not($focused):not($error) $notchedOutline":{borderColor:e.palette.text.primary,"@media (hover: none)":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},multiline:{padding:"18.5px 14px",boxSizing:"border-box"},notchedOutline:{},input:{padding:"18.5px 14px"},inputMarginDense:{paddingTop:15,paddingBottom:15},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}};function f(e){var t=e.classes,n=e.labelWidth,r=e.notched,d=(0,o.default)(e,["classes","labelWidth","notched"]);return i.default.createElement(l.default,(0,a.default)({renderPrefix:function(e){return i.default.createElement(u.default,{className:t.notchedOutline,labelWidth:n,notched:void 0!==r?r:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,a.default)({},t,{root:(0,s.default)(t.root,t.underline),notchedOutline:null})},d))}t.styles=c,l.default.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"},f.muiName="Input";var h=(0,d.default)(c,{name:"MuiOutlinedInput"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(4)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=n(30),d=n(21),c=function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:e.shape.borderRadius,borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}};t.styles=c;var f=(0,u.withStyles)(c,{name:"MuiPrivateNotchedOutline",withTheme:!0})(function(e){e.children;var t=e.classes,n=e.className,r=e.labelWidth,u=e.notched,c=e.style,f=e.theme,h=(0,i.default)(e,["children","classes","className","labelWidth","notched","style","theme"]),p="rtl"===f.direction?"right":"left",m=r>0?.75*r+8:0;return s.default.createElement("fieldset",(0,o.default)({"aria-hidden":!0,style:(0,o.default)((0,a.default)({},"padding".concat((0,d.capitalize)(p)),8+(u?0:m/2)),c),className:(0,l.default)(t.root,n)},h),s.default.createElement("legend",{className:t.legend,style:{width:u?m:.01}},s.default.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))});t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(439))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(34)),d=r(n(35)),c=r(n(8)),f=r(n(440)),h=function(e){return{root:{transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 17px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}};function p(e){var t,n=e.children,r=e.classes,d=e.className,c=e.disableAnimation,h=e.FormLabelClasses,p=(e.margin,e.muiFormControl),m=e.shrink,y=(e.variant,(0,i.default)(e,["children","classes","className","disableAnimation","FormLabelClasses","margin","muiFormControl","shrink","variant"])),v=m;void 0===v&&p&&(v=p.filled||p.focused||p.adornedStart);var g=(0,u.default)({props:e,muiFormControl:p,states:["margin","variant"]}),A=(0,l.default)(r.root,(t={},(0,o.default)(t,r.formControl,p),(0,o.default)(t,r.animated,!c),(0,o.default)(t,r.shrink,v),(0,o.default)(t,r.marginDense,"dense"===g.margin),(0,o.default)(t,r.filled,"filled"===g.variant),(0,o.default)(t,r.outlined,"outlined"===g.variant),t),d);return s.default.createElement(f.default,(0,a.default)({"data-shrink":v,className:A,classes:(0,a.default)({focused:r.focused,disabled:r.disabled,error:r.error,required:r.required},h)},y),n)}t.styles=h,p.defaultProps={disableAnimation:!1};var m=(0,c.default)(h,{name:"MuiInputLabel"})((0,d.default)(p));t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(441))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(34))),d=r(n(35)),c=r(n(8)),f=function(e){return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.secondary,fontSize:e.typography.pxToRem(16),lineHeight:1,padding:0,"&$focused":{color:e.palette.primary["light"===e.palette.type?"dark":"light"]},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}};function h(e){var t,n=e.children,r=e.classes,d=e.className,c=e.component,f=(e.disabled,e.error,e.filled,e.focused,e.muiFormControl),h=(e.required,(0,i.default)(e,["children","classes","className","component","disabled","error","filled","focused","muiFormControl","required"])),p=(0,u.default)({props:e,muiFormControl:f,states:["required","focused","disabled","error","filled"]});return s.default.createElement(c,(0,a.default)({className:(0,l.default)(r.root,(t={},(0,o.default)(t,r.disabled,p.disabled),(0,o.default)(t,r.error,p.error),(0,o.default)(t,r.filled,p.filled),(0,o.default)(t,r.focused,p.focused),(0,o.default)(t,r.required,p.required),t),d)},h),n,p.required&&s.default.createElement("span",{className:(0,l.default)(r.asterisk,(0,o.default)({},r.error,p.error))}," *"))}t.styles=f,h.defaultProps={component:"label"};var p=(0,c.default)(f,{name:"MuiFormLabel"})((0,d.default)(h));t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(443))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(14)),u=r(n(15)),d=r(n(13)),c=r(n(16)),f=r(n(1)),h=(r(n(0)),r(n(9))),p=(n(7),n(81)),m=r(n(8)),y=n(21),v=n(36),g=r(n(80)),A={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}};t.styles=A;var b=function(e){function t(e){var n;(0,s.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this))).handleFocus=function(){n.setState(function(e){return e.focused?null:{focused:!0}})},n.handleBlur=function(){n.setState(function(e){return e.focused?{focused:!1}:null})},n.handleDirty=function(){n.state.filled||n.setState({filled:!0})},n.handleClean=function(){n.state.filled&&n.setState({filled:!1})},n.state={adornedStart:!1,filled:!1,focused:!1};var r=e.children;return r&&f.default.Children.forEach(r,function(e){if((0,v.isMuiElement)(e,["Input","Select"])){(0,p.isFilled)(e.props,!0)&&(n.state.filled=!0);var t=(0,v.isMuiElement)(e,["Select"])?e.props.input:e;t&&(0,p.isAdornedStart)(t.props)&&(n.state.adornedStart=!0)}}),n}return(0,c.default)(t,e),(0,d.default)(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.focused?{focused:!1}:null}}]),(0,d.default)(t,[{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.className,s=t.component,l=t.disabled,u=t.error,d=t.fullWidth,c=t.margin,p=t.required,m=t.variant,v=(0,i.default)(t,["classes","className","component","disabled","error","fullWidth","margin","required","variant"]),A=this.state,b={adornedStart:A.adornedStart,disabled:l,error:u,filled:A.filled,focused:A.focused,margin:c,onBlur:this.handleBlur,onEmpty:this.handleClean,onFilled:this.handleDirty,onFocus:this.handleFocus,required:p,variant:m};return f.default.createElement(g.default.Provider,{value:b},f.default.createElement(s,(0,a.default)({className:(0,h.default)(n.root,(e={},(0,o.default)(e,n["margin".concat((0,y.capitalize)(c))],"none"!==c),(0,o.default)(e,n.fullWidth,d),e),r)},v)))}}]),t}(f.default.Component);b.defaultProps={component:"div",disabled:!1,error:!1,fullWidth:!1,margin:"none",required:!1,variant:"standard"};var M=(0,m.default)(A,{name:"MuiFormControl"})(b);t.default=M},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(445))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(34))),d=r(n(35)),c=r(n(8)),f=function(e){return{root:{color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}},error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 12px 0"},focused:{},filled:{},required:{}}};function h(e){var t,n=e.classes,r=e.className,d=e.component,c=(e.disabled,e.error,e.filled,e.focused,e.margin,e.muiFormControl),f=(e.required,e.variant,(0,i.default)(e,["classes","className","component","disabled","error","filled","focused","margin","muiFormControl","required","variant"])),h=(0,u.default)({props:e,muiFormControl:c,states:["variant","margin","disabled","error","filled","focused","required"]});return s.default.createElement(d,(0,a.default)({className:(0,l.default)(n.root,(t={},(0,o.default)(t,n.contained,"filled"===h.variant||"outlined"===h.variant),(0,o.default)(t,n.marginDense,"dense"===h.margin),(0,o.default)(t,n.disabled,h.disabled),(0,o.default)(t,n.error,h.error),(0,o.default)(t,n.filled,h.filled),(0,o.default)(t,n.focused,h.focused),(0,o.default)(t,n.required,h.required),t),r)},f))}t.styles=f,h.defaultProps={component:"p"};var p=(0,c.default)(f,{name:"MuiFormHelperText"})((0,d.default)(h));t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(447))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),n(7),r(n(448))),l=r(n(34)),u=r(n(35)),d=r(n(8)),c=r(n(113)),f=r(n(130)),h=r(n(78)),p=n(477),m=r(n(131)),y=p.styles;function v(e){var t=e.autoWidth,n=e.children,r=e.classes,u=e.displayEmpty,d=e.IconComponent,f=e.input,h=e.inputProps,p=e.MenuProps,y=e.muiFormControl,g=e.multiple,A=e.native,b=e.onClose,M=e.onOpen,k=e.open,x=e.renderValue,w=e.SelectDisplayProps,T=(e.variant,(0,o.default)(e,["autoWidth","children","classes","displayEmpty","IconComponent","input","inputProps","MenuProps","muiFormControl","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"])),L=A?m.default:s.default,S=(0,l.default)({props:e,muiFormControl:y,states:["variant"]});return i.default.cloneElement(f,(0,a.default)({inputComponent:L,inputProps:(0,a.default)({children:n,IconComponent:d,variant:S.variant,type:void 0,multiple:g},A?{}:{autoWidth:t,displayEmpty:u,MenuProps:p,onClose:b,onOpen:M,open:k,renderValue:x,SelectDisplayProps:w},h,{classes:h?(0,c.default)({baseClasses:r,newClasses:h.classes,Component:v}):r},f?f.props.inputProps:{})},T))}t.styles=y,v.defaultProps={autoWidth:!1,displayEmpty:!1,IconComponent:f.default,input:i.default.createElement(h.default,null),multiple:!1,native:!1},v.muiName="Select";var g=(0,d.default)(y,{name:"MuiSelect"})((0,u.default)(v));t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(117)),l=r(n(12)),u=r(n(13)),d=r(n(14)),c=r(n(15)),f=r(n(16)),h=r(n(31)),p=r(n(1)),m=(r(n(0)),r(n(9))),y=(r(n(6)),n(7),r(n(449))),v=n(81),g=n(36);function A(e,t){return"object"===(0,h.default)(t)&&null!==t?e===t:String(e)===String(t)}var b=function(e){function t(e){var n;return(0,l.default)(this,t),(n=(0,d.default)(this,(0,c.default)(t).call(this))).ignoreNextBlur=!1,n.update=function(e){var t=e.event,r=e.open;n.isOpenControlled?r?n.props.onOpen(t):n.props.onClose(t):n.setState({menuMinWidth:n.props.autoWidth?null:n.displayRef.clientWidth,open:r})},n.handleClick=function(e){n.ignoreNextBlur=!0,n.update({open:!0,event:e})},n.handleClose=function(e){n.update({open:!1,event:e})},n.handleItemClick=function(e){return function(t){n.props.multiple||n.update({open:!1,event:t});var r=n.props,a=r.onChange,o=r.name;if(a){var i;if(n.props.multiple){var l=(i=Array.isArray(n.props.value)?(0,s.default)(n.props.value):[]).indexOf(e.props.value);-1===l?i.push(e.props.value):i.splice(l,1)}else i=e.props.value;t.persist(),t.target={value:i,name:o},a(t,e)}}},n.handleBlur=function(e){if(!0===n.ignoreNextBlur)return e.stopPropagation(),void(n.ignoreNextBlur=!1);if(n.props.onBlur){var t=n.props,r=t.value,a=t.name;e.persist(),e.target={value:r,name:a},n.props.onBlur(e)}},n.handleKeyDown=function(e){n.props.readOnly||-1!==[" ","ArrowUp","ArrowDown"].indexOf(e.key)&&(e.preventDefault(),n.ignoreNextBlur=!0,n.update({open:!0,event:e}))},n.handleDisplayRef=function(e){n.displayRef=e},n.handleInputRef=function(e){var t=n.props.inputRef;if(t){var r={node:e,value:n.props.value,focus:function(){n.displayRef.focus()}};(0,g.setRef)(t,r)}},n.isOpenControlled=void 0!==e.open,n.state={menuMinWidth:null,open:!1},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.isOpenControlled&&this.props.open&&(this.displayRef.focus(),this.forceUpdate()),this.props.autoFocus&&this.displayRef.focus()}},{key:"render",value:function(){var e,t,n=this,r=this.props,s=r.autoWidth,l=r.children,u=r.classes,d=r.className,c=r.disabled,f=r.displayEmpty,h=r.IconComponent,g=(r.inputRef,r.MenuProps),b=void 0===g?{}:g,M=r.multiple,k=r.name,x=(r.onBlur,r.onChange,r.onClose,r.onFocus),w=(r.onOpen,r.open),T=r.readOnly,L=r.renderValue,S=(r.required,r.SelectDisplayProps),D=r.tabIndex,Y=r.type,j=void 0===Y?"hidden":Y,E=r.value,P=r.variant,O=(0,i.default)(r,["autoWidth","children","classes","className","disabled","displayEmpty","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),C=this.isOpenControlled&&this.displayRef?w:this.state.open;delete O["aria-invalid"];var H="",R=[],N=!1;((0,v.isFilled)(this.props)||f)&&(L?t=L(E):N=!0);var F=p.default.Children.map(l,function(e){if(!p.default.isValidElement(e))return null;var t;if(M){if(!Array.isArray(E))throw new Error("Material-UI: the `value` property must be an array when using the `Select` component with `multiple`.");(t=E.some(function(t){return A(t,e.props.value)}))&&N&&R.push(e.props.children)}else(t=A(E,e.props.value))&&N&&(H=e.props.children);return p.default.cloneElement(e,{onClick:n.handleItemClick(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})});N&&(t=M?R.join(", "):H);var W,z=this.state.menuMinWidth;return!s&&this.isOpenControlled&&this.displayRef&&(z=this.displayRef.clientWidth),W=void 0!==D?D:c?null:0,p.default.createElement("div",{className:u.root},p.default.createElement("div",(0,a.default)({className:(0,m.default)(u.select,u.selectMenu,(e={},(0,o.default)(e,u.disabled,c),(0,o.default)(e,u.filled,"filled"===P),(0,o.default)(e,u.outlined,"outlined"===P),e),d),ref:this.handleDisplayRef,"aria-pressed":C?"true":"false",tabIndex:W,role:"button","aria-owns":C?"menu-".concat(k||""):void 0,"aria-haspopup":"true",onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,onClick:c||T?null:this.handleClick,onFocus:x,id:k?"select-".concat(k):void 0},S),t||p.default.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})),p.default.createElement("input",(0,a.default)({value:Array.isArray(E)?E.join(","):E,name:k,ref:this.handleInputRef,type:j},O)),p.default.createElement(h,{className:u.icon}),p.default.createElement(y.default,(0,a.default)({id:"menu-".concat(k||""),anchorEl:this.displayRef,open:C,onClose:this.handleClose},b,{MenuListProps:(0,a.default)({role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:(0,a.default)({},b.PaperProps,{style:(0,a.default)({minWidth:z},null!=b.PaperProps?b.PaperProps.style:null)})}),F))}}]),t}(p.default.Component);t.default=b},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(20))),h=r(n(122)),p=r(n(8)),m=r(n(450)),y=r(n(474)),v={vertical:"top",horizontal:"right"},g={vertical:"top",horizontal:"left"},A={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}};t.styles=A;var b=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).getContentAnchorEl=function(){return n.menuListRef.selectedItemRef?f.default.findDOMNode(n.menuListRef.selectedItemRef):f.default.findDOMNode(n.menuListRef).firstChild},n.focus=function(){if(n.menuListRef&&n.menuListRef.selectedItemRef)f.default.findDOMNode(n.menuListRef.selectedItemRef).focus();else{var e=f.default.findDOMNode(n.menuListRef);e&&e.firstChild&&e.firstChild.focus()}},n.handleMenuListRef=function(e){n.menuListRef=e},n.handleEntering=function(e){var t=n.props,r=t.disableAutoFocusItem,a=t.theme,o=f.default.findDOMNode(n.menuListRef);if(!0!==r&&n.focus(),o&&e.clientHeight<o.clientHeight&&!o.style.width){var i="".concat((0,h.default)(),"px");o.style["rtl"===a.direction?"paddingLeft":"paddingRight"]=i,o.style.width="calc(100% + ".concat(i,")")}n.props.onEntering&&n.props.onEntering(e)},n.handleListKeyDown=function(e){"Tab"===e.key&&(e.preventDefault(),n.props.onClose&&n.props.onClose(e,"tabKeyDown"))},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.props.open&&!0!==this.props.disableAutoFocusItem&&this.focus()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=(e.disableAutoFocusItem,e.MenuListProps),i=(e.onEntering,e.PaperProps),s=void 0===i?{}:i,l=e.PopoverClasses,u=e.theme,d=(0,o.default)(e,["children","classes","disableAutoFocusItem","MenuListProps","onEntering","PaperProps","PopoverClasses","theme"]);return c.default.createElement(m.default,(0,a.default)({getContentAnchorEl:this.getContentAnchorEl,classes:l,onEntering:this.handleEntering,anchorOrigin:"rtl"===u.direction?v:g,transformOrigin:"rtl"===u.direction?v:g,PaperProps:(0,a.default)({},s,{classes:(0,a.default)({},s.classes,{root:n.paper})})},d),c.default.createElement(y.default,(0,a.default)({onKeyDown:this.handleListKeyDown},r,{ref:this.handleMenuListRef}),t))}}]),t}(c.default.Component);b.defaultProps={disableAutoFocusItem:!1,transitionDuration:"auto"};var M=(0,p.default)(A,{name:"MuiMenu",withTheme:!0})(b);t.default=M},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(451))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(20))),h=(r(n(6)),r(n(55))),p=r(n(54)),m=(n(7),r(n(25))),y=r(n(76)),v=n(21),g=r(n(8)),A=r(n(452)),b=r(n(472)),M=r(n(114));function k(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function x(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function w(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function T(e){return"function"==typeof e?e():e}var L={paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:"none"}};t.styles=L;var S=function(e){function t(){var e;return(0,i.default)(this,t),(e=(0,l.default)(this,(0,u.default)(t).call(this))).handleGetOffsetTop=k,e.handleGetOffsetLeft=x,e.componentWillUnmount=function(){e.handleResize.clear()},e.setPositioningStyles=function(t){var n=e.getPositioningStyle(t);null!==n.top&&(t.style.top=n.top),null!==n.left&&(t.style.left=n.left),t.style.transformOrigin=n.transformOrigin},e.getPositioningStyle=function(t){var n=e.props,r=n.anchorEl,a=n.anchorReference,o=n.marginThreshold,i=e.getContentAnchorOffset(t),s={width:t.offsetWidth,height:t.offsetHeight},l=e.getTransformOrigin(s,i);if("none"===a)return{top:null,left:null,transformOrigin:w(l)};var u=e.getAnchorOffset(i),d=u.top-l.vertical,c=u.left-l.horizontal,f=d+s.height,h=c+s.width,p=(0,y.default)(T(r)),m=p.innerHeight-o,v=p.innerWidth-o;if(d<o){var g=d-o;d-=g,l.vertical+=g}else if(f>m){var A=f-m;d-=A,l.vertical+=A}if(c<o){var b=c-o;c-=b,l.horizontal+=b}else if(h>v){var M=h-v;c-=M,l.horizontal+=M}return{top:"".concat(d,"px"),left:"".concat(c,"px"),transformOrigin:w(l)}},e.handleEntering=function(t){e.props.onEntering&&e.props.onEntering(t),e.setPositioningStyles(t)},"undefined"!=typeof window&&(e.handleResize=(0,h.default)(function(){e.props.open&&e.setPositioningStyles(e.paperRef)},166)),e}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.props.action&&this.props.action({updatePosition:this.handleResize})}},{key:"getAnchorOffset",value:function(e){var t=this.props,n=t.anchorEl,r=t.anchorOrigin,a=t.anchorReference,o=t.anchorPosition;if("anchorPosition"===a)return o;var i=(T(n)||(0,m.default)(this.paperRef).body).getBoundingClientRect(),s=0===e?r.vertical:"center";return{top:i.top+this.handleGetOffsetTop(i,s),left:i.left+this.handleGetOffsetLeft(i,r.horizontal)}}},{key:"getContentAnchorOffset",value:function(e){var t=this.props,n=t.getContentAnchorEl,r=t.anchorReference,a=0;if(n&&"anchorEl"===r){var o=n(e);if(o&&e.contains(o)){var i=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentNode).scrollTop;return r}(e,o);a=o.offsetTop+o.clientHeight/2-i||0}}return a}},{key:"getTransformOrigin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props.transformOrigin;return{vertical:this.handleGetOffsetTop(e,n.vertical)+t,horizontal:this.handleGetOffsetLeft(e,n.horizontal)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.action,t.anchorEl),r=(t.anchorOrigin,t.anchorPosition,t.anchorReference,t.children),i=t.classes,s=t.container,l=t.elevation,u=(t.getContentAnchorEl,t.marginThreshold,t.ModalClasses),d=t.onEnter,h=t.onEntered,y=(t.onEntering,t.onExit),g=t.onExited,b=t.onExiting,k=t.open,x=t.PaperProps,w=t.role,L=(t.transformOrigin,t.TransitionComponent),S=t.transitionDuration,D=t.TransitionProps,Y=void 0===D?{}:D,j=(0,o.default)(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","container","elevation","getContentAnchorEl","marginThreshold","ModalClasses","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","role","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),E=S;"auto"!==S||L.muiSupportAuto||(E=void 0);var P=s||(n?(0,m.default)(T(n)).body:void 0);return c.default.createElement(A.default,(0,a.default)({classes:u,container:P,open:k,BackdropProps:{invisible:!0}},j),c.default.createElement(L,(0,a.default)({appear:!0,in:k,onEnter:d,onEntered:h,onExit:y,onExited:g,onExiting:b,role:w,timeout:E},Y,{onEntering:(0,v.createChainedFunction)(this.handleEntering,Y.onEntering)}),c.default.createElement(M.default,(0,a.default)({className:i.paper,elevation:l,ref:function(t){e.paperRef=f.default.findDOMNode(t)}},x),c.default.createElement(p.default,{target:"window",onResize:this.handleResize}),r)))}}]),t}(c.default.Component);S.defaultProps={anchorReference:"anchorEl",anchorOrigin:{vertical:"top",horizontal:"left"},elevation:8,marginThreshold:16,transformOrigin:{vertical:"top",horizontal:"left"},TransitionComponent:b.default,transitionDuration:"auto"};var D=(0,g.default)(L,{name:"MuiPopover"})(S);t.default=D},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ModalManager",{enumerable:!0,get:function(){return o.default}});var a=r(n(453)),o=r(n(124))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(52)),h=r(n(1)),p=r(n(20)),m=(r(n(0)),r(n(9))),y=(r(n(6)),n(7),r(n(25))),v=r(n(454)),g=r(n(456)),A=n(21),b=r(n(8)),M=r(n(124)),k=r(n(468)),x=n(126);function w(e){return!!e.children&&e.children.props.hasOwnProperty("in")}var T=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}};t.styles=T;var L=function(e){function t(e){var n;return(0,s.default)(this,t),(n=(0,u.default)(this,(0,d.default)(t).call(this))).mounted=!1,n.handleOpen=function(){var e=(0,y.default)(n.mountNode),t=function(e,t){return e="function"==typeof e?e():e,p.default.findDOMNode(e)||t}(n.props.container,e.body);n.props.manager.add((0,f.default)((0,f.default)(n)),t),e.addEventListener("focus",n.enforceFocus,!0),n.dialogRef&&n.handleOpened()},n.handleRendered=function(){n.props.onRendered&&n.props.onRendered(),n.props.open?n.handleOpened():(0,x.ariaHidden)(n.modalRef,!0)},n.handleOpened=function(){n.autoFocus(),n.props.manager.mount((0,f.default)((0,f.default)(n))),n.modalRef.scrollTop=0},n.handleClose=function(e){w(n.props)&&n.props.closeAfterTransition&&"unmount"!==e||n.props.manager.remove((0,f.default)((0,f.default)(n))),(0,y.default)(n.mountNode).removeEventListener("focus",n.enforceFocus,!0),n.restoreLastFocus()},n.handleExited=function(){n.props.closeAfterTransition&&n.props.manager.remove((0,f.default)((0,f.default)(n))),n.setState({exited:!0})},n.handleBackdropClick=function(e){e.target===e.currentTarget&&(n.props.onBackdropClick&&n.props.onBackdropClick(e),!n.props.disableBackdropClick&&n.props.onClose&&n.props.onClose(e,"backdropClick"))},n.handleKeyDown=function(e){"Escape"===e.key&&n.isTopModal()&&!e.defaultPrevented&&(e.stopPropagation(),n.props.onEscapeKeyDown&&n.props.onEscapeKeyDown(e),!n.props.disableEscapeKeyDown&&n.props.onClose&&n.props.onClose(e,"escapeKeyDown"))},n.enforceFocus=function(){if(n.isTopModal()&&!n.props.disableEnforceFocus&&n.mounted&&n.dialogRef){var e=(0,y.default)(n.mountNode).activeElement;n.dialogRef.contains(e)||n.dialogRef.focus()}},n.handlePortalRef=function(e){n.mountNode=e?e.getMountNode():e},n.handleModalRef=function(e){n.modalRef=e},n.onRootRef=function(e){n.dialogRef=e},n.state={exited:!e.open},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.props.open&&this.handleOpen()}},{key:"componentDidUpdate",value:function(e){e.open&&!this.props.open?this.handleClose():!e.open&&this.props.open&&(this.lastFocus=(0,y.default)(this.mountNode).activeElement,this.handleOpen())}},{key:"componentWillUnmount",value:function(){this.mounted=!1,(this.props.open||w(this.props)&&!this.state.exited)&&this.handleClose("unmount")}},{key:"autoFocus",value:function(){if(!this.props.disableAutoFocus&&this.dialogRef){var e=(0,y.default)(this.mountNode).activeElement;this.dialogRef.contains(e)||(this.dialogRef.hasAttribute("tabIndex")||this.dialogRef.setAttribute("tabIndex",-1),this.lastFocus=e,this.dialogRef.focus())}}},{key:"restoreLastFocus",value:function(){!this.props.disableRestoreFocus&&this.lastFocus&&(this.lastFocus.focus&&this.lastFocus.focus(),this.lastFocus=null)}},{key:"isTopModal",value:function(){return this.props.manager.isTopModal(this)}},{key:"render",value:function(){var e=this.props,t=e.BackdropComponent,n=e.BackdropProps,r=e.children,s=e.classes,l=e.className,u=(e.closeAfterTransition,e.container),d=(e.disableAutoFocus,e.disableBackdropClick,e.disableEnforceFocus,e.disableEscapeKeyDown,e.disablePortal),c=(e.disableRestoreFocus,e.hideBackdrop),f=e.keepMounted,p=(e.manager,e.onBackdropClick,e.onClose,e.onEscapeKeyDown,e.onRendered,e.open),y=(0,i.default)(e,["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),b=this.state.exited,M=w(this.props);if(!f&&!p&&(!M||b))return null;var k={};return M&&(k.onExited=(0,A.createChainedFunction)(this.handleExited,r.props.onExited)),void 0===r.props.role&&(k.role=r.props.role||"document"),void 0===r.props.tabIndex&&(k.tabIndex=r.props.tabIndex||"-1"),h.default.createElement(g.default,{ref:this.handlePortalRef,container:u,disablePortal:d,onRendered:this.handleRendered},h.default.createElement("div",(0,a.default)({ref:this.handleModalRef,onKeyDown:this.handleKeyDown,role:"presentation",className:(0,m.default)(s.root,l,(0,o.default)({},s.hidden,b))},y),c?null:h.default.createElement(t,(0,a.default)({open:p,onClick:this.handleBackdropClick},n)),h.default.createElement(v.default,{rootRef:this.onRootRef},h.default.cloneElement(r,k))))}}],[{key:"getDerivedStateFromProps",value:function(e){return e.open?{exited:!1}:w(e)?null:{exited:!0}}}]),t}(h.default.Component);L.defaultProps={BackdropComponent:k.default,closeAfterTransition:!1,disableAutoFocus:!1,disableBackdropClick:!1,disableEnforceFocus:!1,disableEscapeKeyDown:!1,disablePortal:!1,disableRestoreFocus:!1,hideBackdrop:!1,keepMounted:!1,manager:new M.default};var S=(0,b.default)(T,{flip:!1,name:"MuiModal"})(L);t.default=S},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(455))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=r(n(20)),c=(r(n(0)),n(7),n(36));var f=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.ref=d.default.findDOMNode(this),(0,c.setRef)(this.props.rootRef,this.ref)}},{key:"componentDidUpdate",value:function(e){var t=d.default.findDOMNode(this);e.rootRef===this.props.rootRef&&this.ref===t||(e.rootRef!==this.props.rootRef&&(0,c.setRef)(e.rootRef,null),this.ref=t,(0,c.setRef)(this.props.rootRef,this.ref))}},{key:"componentWillUnmount",value:function(){this.ref=null,(0,c.setRef)(this.props.rootRef,null)}},{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(457))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=r(n(20)),c=(r(n(0)),r(n(25)));n(7);var f=function(e){function t(){var e,n;(0,a.default)(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return(n=(0,i.default)(this,(e=(0,s.default)(t)).call.apply(e,[this].concat(o)))).getMountNode=function(){return n.mountNode},n}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.setMountNode(this.props.container),this.props.disablePortal||this.forceUpdate(this.props.onRendered)}},{key:"componentDidUpdate",value:function(e){var t=this;e.container===this.props.container&&e.disablePortal===this.props.disablePortal||(this.setMountNode(this.props.container),this.props.disablePortal||this.forceUpdate(function(){t.props.onRendered&&(clearTimeout(t.renderedTimer),t.renderedTimer=setTimeout(t.props.onRendered))}))}},{key:"componentWillUnmount",value:function(){this.mountNode=null,clearTimeout(this.renderedTimer)}},{key:"setMountNode",value:function(e){var t;this.props.disablePortal?this.mountNode=d.default.findDOMNode(this).parentElement:this.mountNode=function(e,t){return e="function"==typeof e?e():e,d.default.findDOMNode(e)||t}(e,(t=this,(0,c.default)(d.default.findDOMNode(t))).body)}},{key:"render",value:function(){var e=this.props,t=e.children;return e.disablePortal?t:this.mountNode?d.default.createPortal(t,this.mountNode):null}}]),t}(u.default.Component);f.defaultProps={disablePortal:!1};var h=f;t.default=h},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e,t,n){var r="",d="",c=t;if("string"==typeof t){if(void 0===n)return e.style[(0,a.default)(t)]||(0,i.default)(e).getPropertyValue((0,o.default)(t));(c={})[t]=n}Object.keys(c).forEach(function(t){var n=c[t];n||0===n?(0,u.default)(t)?d+=t+"("+n+") ":r+=(0,o.default)(t)+": "+n+";":(0,s.default)(e,(0,o.default)(t))}),d&&(r+=l.transform+": "+d+";");e.style.cssText+=";"+r};var a=r(n(125)),o=r(n(460)),i=r(n(462)),s=r(n(463)),l=n(464),u=r(n(465));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e){return(0,a.default)(e).replace(o,"-ms-")};var a=r(n(461)),o=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,a.default)(t))&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),i.test(r)&&!o.test(t)){var s=n.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=s,u&&(l.left=u)}return r}}};var a=r(n(125)),o=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var a,o,i,s,l,u,d,c,f,h,p,m=r(n(123)),y="transform";if(t.transform=y,t.animationEnd=i,t.transitionEnd=o,t.transitionDelay=d,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=p,t.animationTiming=h,t.animationDuration=f,t.animationName=c,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},a=Object.keys(r),o="",i=0;i<a.length;i++){var s=a[i];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();a=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=i=v.animationEnd,t.transform=y=a+"-"+y,t.transitionProperty=s=a+"-transition-property",t.transitionDuration=l=a+"-transition-duration",t.transitionDelay=d=a+"-transition-delay",t.transitionTiming=u=a+"-transition-timing-function",t.animationName=c=a+"-animation-name",t.animationDuration=f=a+"-animation-duration",t.animationTiming=h=a+"-animation-delay",t.animationDelay=p=a+"-animation-timing-function"}var g={transform:y,end:o,property:s,timing:u,delay:d,duration:l};t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.isBody=s,t.default=function(e){var t=(0,o.default)(e),n=(0,i.default)(t);if(!(0,a.default)(t)&&!s(e))return e.scrollHeight>e.clientHeight;var r=n.getComputedStyle(t.body),l=parseInt(r.getPropertyValue("margin-left"),10),u=parseInt(r.getPropertyValue("margin-right"),10);return l+t.body.clientWidth+u<n.innerWidth};var a=r(n(467)),o=r(n(25)),i=r(n(76));function s(e){return e&&"body"===e.tagName.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(469))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d=r(n(470)),c={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}};function f(e){var t=e.classes,n=e.className,r=e.invisible,u=e.open,c=e.transitionDuration,f=(0,i.default)(e,["classes","className","invisible","open","transitionDuration"]);return s.default.createElement(d.default,(0,a.default)({in:u,timeout:c},f),s.default.createElement("div",{className:(0,l.default)(t.root,(0,o.default)({},t.invisible,r),n),"aria-hidden":"true"}))}t.styles=c,f.defaultProps={invisible:!1};var h=(0,u.default)(c,{name:"MuiBackdrop"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(471))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(41))),h=n(104),p=r(n(73)),m=n(127),y={entering:{opacity:1},entered:{opacity:1}},v=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).handleEnter=function(e){var t=n.props.theme;(0,m.reflow)(e);var r=(0,m.getTransitionProps)(n.props,{mode:"enter"});e.style.webkitTransition=t.transitions.create("opacity",r),e.style.transition=t.transitions.create("opacity",r),n.props.onEnter&&n.props.onEnter(e)},n.handleExit=function(e){var t=n.props.theme,r=(0,m.getTransitionProps)(n.props,{mode:"exit"});e.style.webkitTransition=t.transitions.create("opacity",r),e.style.transition=t.transitions.create("opacity",r),n.props.onExit&&n.props.onExit(e)},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),r=(e.theme,(0,o.default)(e,["children","onEnter","onExit","style","theme"])),i=(0,a.default)({},n,c.default.isValidElement(t)?t.props.style:{});return c.default.createElement(f.default,(0,a.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit},r),function(e,n){return c.default.cloneElement(t,(0,a.default)({style:(0,a.default)({opacity:0},y[e],i)},n))})}}]),t}(c.default.Component);v.defaultProps={timeout:{enter:h.duration.enteringScreen,exit:h.duration.leavingScreen}};var g=(0,p.default)()(v);t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(473))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(41))),h=r(n(73)),p=n(127);function m(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var y={entering:{opacity:1,transform:m(1)},entered:{opacity:1,transform:"".concat(m(1)," translateZ(0)")}},v=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).handleEnter=function(e){var t=n.props,r=t.theme,a=t.timeout;(0,p.reflow)(e);var o=(0,p.getTransitionProps)(n.props,{mode:"enter"}),i=o.duration,s=o.delay,l=0;"auto"===a?(l=r.transitions.getAutoHeightDuration(e.clientHeight),n.autoTimeout=l):l=i,e.style.transition=[r.transitions.create("opacity",{duration:l,delay:s}),r.transitions.create("transform",{duration:.666*l,delay:s})].join(","),n.props.onEnter&&n.props.onEnter(e)},n.handleExit=function(e){var t=n.props,r=t.theme,a=t.timeout,o=0,i=(0,p.getTransitionProps)(n.props,{mode:"exit"}),s=i.duration,l=i.delay;"auto"===a?(o=r.transitions.getAutoHeightDuration(e.clientHeight),n.autoTimeout=o):o=s,e.style.transition=[r.transitions.create("opacity",{duration:o,delay:l}),r.transitions.create("transform",{duration:.666*o,delay:l||.333*o})].join(","),e.style.opacity="0",e.style.transform=m(.75),n.props.onExit&&n.props.onExit(e)},n.addEndListener=function(e,t){"auto"===n.props.timeout&&(n.timer=setTimeout(t,n.autoTimeout||0))},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),r=(e.theme,e.timeout),i=(0,o.default)(e,["children","onEnter","onExit","style","theme","timeout"]),s=(0,a.default)({},n,c.default.isValidElement(t)?t.props.style:{});return c.default.createElement(f.default,(0,a.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit,addEndListener:this.addEndListener,timeout:"auto"===r?null:r},i),function(e,n){return c.default.cloneElement(t,(0,a.default)({style:(0,a.default)({opacity:0,transform:m(.75)},y[e],s)},n))})}}]),t}(c.default.Component);v.defaultProps={timeout:"auto"},v.muiSupportAuto=!0;var g=(0,h.default)()(v);t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(475))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(20))),h=(r(n(6)),r(n(25))),p=r(n(128)),m=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).state={currentTabIndex:null},n.handleBlur=function(e){n.blurTimer=setTimeout(function(){if(n.listRef){var e=n.listRef,t=(0,h.default)(e).activeElement;e.contains(t)||n.resetTabIndex()}},30),n.props.onBlur&&n.props.onBlur(e)},n.handleKeyDown=function(e){var t=n.listRef,r=e.key,a=(0,h.default)(t).activeElement;"ArrowUp"!==r&&"ArrowDown"!==r||a&&(!a||t.contains(a))?"ArrowDown"===r?(e.preventDefault(),a.nextElementSibling?a.nextElementSibling.focus():n.props.disableListWrap||t.firstChild.focus()):"ArrowUp"===r?(e.preventDefault(),a.previousElementSibling?a.previousElementSibling.focus():n.props.disableListWrap||t.lastChild.focus()):"Home"===r?(e.preventDefault(),t.firstChild.focus()):"End"===r&&(e.preventDefault(),t.lastChild.focus()):n.selectedItemRef?n.selectedItemRef.focus():t.firstChild.focus(),n.props.onKeyDown&&n.props.onKeyDown(e)},n.handleItemFocus=function(e){var t=n.listRef;if(t)for(var r=0;r<t.children.length;r+=1)if(t.children[r]===e.currentTarget){n.setTabIndex(r);break}},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.resetTabIndex()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.blurTimer)}},{key:"setTabIndex",value:function(e){this.setState({currentTabIndex:e})}},{key:"focus",value:function(){var e=this.state.currentTabIndex,t=this.listRef;t&&t.children&&t.firstChild&&(e&&e>=0?t.children[e].focus():t.firstChild.focus())}},{key:"resetTabIndex",value:function(){for(var e=this.listRef,t=(0,h.default)(e).activeElement,n=[],r=0;r<e.children.length;r+=1)n.push(e.children[r]);var a=n.indexOf(t);return-1!==a?this.setTabIndex(a):this.selectedItemRef?this.setTabIndex(n.indexOf(this.selectedItemRef)):this.setTabIndex(0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=(t.onBlur,t.onKeyDown,t.disableListWrap,(0,o.default)(t,["children","className","onBlur","onKeyDown","disableListWrap"]));return c.default.createElement(p.default,(0,a.default)({role:"menu",ref:function(t){e.listRef=f.default.findDOMNode(t)},className:r,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},i),c.default.Children.map(n,function(t,n){return c.default.isValidElement(t)?c.default.cloneElement(t,{tabIndex:n===e.state.currentTabIndex?0:-1,ref:t.props.selected?function(t){e.selectedItemRef=f.default.findDOMNode(t)}:void 0,onFocus:e.handleItemFocus}):null}))}}]),t}(c.default.Component);m.defaultProps={disableListWrap:!1};var y=m;t.default=y},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=r(n(129)),c={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{paddingTop:4,paddingBottom:4},subheader:{paddingTop:0}};function f(e){var t,n=e.children,r=e.classes,u=e.className,c=e.component,f=e.dense,h=e.disablePadding,p=e.subheader,m=(0,i.default)(e,["children","classes","className","component","dense","disablePadding","subheader"]);return s.default.createElement(c,(0,a.default)({className:(0,l.default)(r.root,(t={},(0,o.default)(t,r.dense,f&&!h),(0,o.default)(t,r.padding,!h),(0,o.default)(t,r.subheader,p),t),u)},m),s.default.createElement(d.default.Provider,{value:{dense:f}},p,n))}t.styles=c,f.defaultProps={component:"ul",dense:!1,disablePadding:!1};var h=(0,u.default)(c,{name:"MuiList"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),n(7),r(n(131))),l=r(n(8)),u=r(n(34)),d=r(n(35)),c=r(n(130)),f=r(n(78)),h=function(e){return{root:{position:"relative",width:"100%"},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",paddingRight:32,borderRadius:0,height:"1.1875em",width:"calc(100% - 32px)",minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{width:"calc(100% - 44px)"},outlined:{width:"calc(100% - 46px)",borderRadius:e.shape.borderRadius},selectMenu:{width:"auto",height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",minHeight:"1.1875em"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,"pointer-events":"none"}}};function p(e){var t=e.children,n=e.classes,r=e.IconComponent,l=e.input,d=e.inputProps,c=e.muiFormControl,f=(e.variant,(0,o.default)(e,["children","classes","IconComponent","input","inputProps","muiFormControl","variant"])),h=(0,u.default)({props:e,muiFormControl:c,states:["variant"]});return i.default.cloneElement(l,(0,a.default)({inputComponent:s.default,inputProps:(0,a.default)({children:t,classes:n,IconComponent:r,variant:h.variant,type:void 0},d,l?l.props.inputProps:{})},f))}t.styles=h,p.defaultProps={IconComponent:c.default,input:i.default.createElement(f.default,null)},p.muiName="Select";var m=(0,l.default)(h,{name:"MuiNativeSelect"})((0,d.default)(p));t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(479))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(9))),h=(n(7),r(n(8))),p=r(n(132)),m=function(e){return{root:{display:"table",fontFamily:e.typography.fontFamily,width:"100%",borderCollapse:"collapse",borderSpacing:0}}};t.styles=m;var y=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).memoizedContextValue={},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"useMemo",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n+=1){var r=t[n];if(e[r]!==this.memoizedContextValue[r]){this.memoizedContextValue=e;break}}return this.memoizedContextValue}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.component,i=e.padding,s=(0,o.default)(e,["classes","className","component","padding"]);return c.default.createElement(p.default.Provider,{value:this.useMemo({padding:i})},c.default.createElement(r,(0,a.default)({className:(0,f.default)(t.root,n)},s)))}}]),t}(c.default.Component);y.defaultProps={component:"table",padding:"default"};var v=(0,h.default)(m,{name:"MuiTable"})(y);t.default=v},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(481))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=(n(7),r(n(8))),u=r(n(82)),d={root:{display:"table-row-group"}};t.styles=d;var c={variant:"body"};function f(e){var t=e.classes,n=e.className,r=e.component,l=(0,o.default)(e,["classes","className","component"]);return i.default.createElement(u.default.Provider,{value:c},i.default.createElement(r,(0,a.default)({className:(0,s.default)(t.root,n)},l)))}f.defaultProps={component:"tbody"};var h=(0,l.default)(d,{name:"MuiTableBody"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(483))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=r(n(82)),c=function(e){return{root:{color:"inherit",display:"table-row",height:48,verticalAlign:"middle",outline:"none","&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{height:56},footer:{height:56}}};function f(e){var t=e.classes,n=e.className,r=e.component,u=e.hover,c=e.selected,f=(0,i.default)(e,["classes","className","component","hover","selected"]);return s.default.createElement(d.default.Consumer,null,function(e){var i,d=(0,l.default)(t.root,(i={},(0,o.default)(i,t.head,e&&"head"===e.variant),(0,o.default)(i,t.footer,e&&"footer"===e.variant),(0,o.default)(i,t.hover,u),(0,o.default)(i,t.selected,c),i),n);return s.default.createElement(r,(0,a.default)({className:d},f))})}t.styles=c,f.defaultProps={component:"tr",hover:!1,selected:!1};var h=(0,u.default)(c,{name:"MuiTableRow"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(485))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(21),c=(r(n(120)),n(48)),f=r(n(132)),h=r(n(82)),p=function(e){return{root:{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,c.lighten)((0,c.fade)(e.palette.divider,1),.88):(0,c.darken)((0,c.fade)(e.palette.divider,1),.68)),textAlign:"left",padding:"4px 56px 4px 24px","&:last-child":{paddingRight:24}},head:{color:e.palette.text.secondary,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightRegular},footer:{borderBottom:0,color:e.palette.text.secondary,fontSize:e.typography.pxToRem(12)},numeric:{textAlign:"right",flexDirection:"row-reverse"},paddingDense:{paddingRight:24},paddingCheckbox:{padding:"0 12px","&:last-child":{paddingRight:12}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"}}};function m(e){var t=e.align,n=e.children,r=e.classes,u=e.className,c=e.component,p=e.sortDirection,m=e.numeric,y=void 0!==m&&m,v=e.padding,g=e.scope,A=e.variant,b=(0,i.default)(e,["align","children","classes","className","component","sortDirection","numeric","padding","scope","variant"]);return s.default.createElement(f.default.Consumer,null,function(e){return s.default.createElement(h.default.Consumer,null,function(i){var f,h;h=c||(i&&"head"===i.variant?"th":"td");var m=g;!m&&i&&"head"===i.variant&&(m="col");var M=v||(e&&e.padding?e.padding:"default"),k=(0,l.default)(r.root,(f={},(0,o.default)(f,r.head,A?"head"===A:i&&"head"===i.variant),(0,o.default)(f,r.body,A?"body"===A:i&&"body"===i.variant),(0,o.default)(f,r.footer,A?"footer"===A:i&&"footer"===i.variant),(0,o.default)(f,r["align".concat((0,d.capitalize)(t))],"inherit"!==t),(0,o.default)(f,r.numeric,y),(0,o.default)(f,r["padding".concat((0,d.capitalize)(M))],"default"!==M),f),u),x=null;return p&&(x="asc"===p?"ascending":"descending"),s.default.createElement(h,(0,a.default)({className:k,"aria-sort":x,scope:m},b),n)})})}t.styles=p,m.defaultProps={align:"inherit"};var y=(0,u.default)(p,{name:"MuiTableCell"})(m);t.default=y},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(487))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(5)),i=r(n(4)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(48),c=r(n(40)),f=n(21),h=function(e){return{root:(0,i.default)({lineHeight:1.75},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,d.fade)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},flat:{},flatPrimary:{},flatSecondary:{},outlined:{padding:"5px 16px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,d.fade)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,d.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,d.fade)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,d.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},raised:{},raisedPrimary:{},raisedSecondary:{},fab:{borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]}},extendedFab:{borderRadius:24,padding:"0 16px",width:"auto",minWidth:48,height:48},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},mini:{width:40,height:40},sizeSmall:{padding:"4px 8px",minWidth:64,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:"8px 24px",fontSize:e.typography.pxToRem(15)},fullWidth:{width:"100%"}}};function p(e){var t,n=e.children,r=e.classes,u=e.className,d=e.color,h=e.disabled,p=e.disableFocusRipple,m=e.focusVisibleClassName,y=e.fullWidth,v=e.mini,g=e.size,A=e.variant,b=(0,o.default)(e,["children","classes","className","color","disabled","disableFocusRipple","focusVisibleClassName","fullWidth","mini","size","variant"]),M="fab"===A||"extendedFab"===A,k="contained"===A||"raised"===A,x="text"===A||"flat"===A,w=(0,l.default)(r.root,(t={},(0,a.default)(t,r.fab,M),(0,a.default)(t,r.mini,M&&v),(0,a.default)(t,r.extendedFab,"extendedFab"===A),(0,a.default)(t,r.text,x),(0,a.default)(t,r.textPrimary,x&&"primary"===d),(0,a.default)(t,r.textSecondary,x&&"secondary"===d),(0,a.default)(t,r.flat,x),(0,a.default)(t,r.flatPrimary,x&&"primary"===d),(0,a.default)(t,r.flatSecondary,x&&"secondary"===d),(0,a.default)(t,r.contained,k||M),(0,a.default)(t,r.containedPrimary,(k||M)&&"primary"===d),(0,a.default)(t,r.containedSecondary,(k||M)&&"secondary"===d),(0,a.default)(t,r.raised,k||M),(0,a.default)(t,r.raisedPrimary,(k||M)&&"primary"===d),(0,a.default)(t,r.raisedSecondary,(k||M)&&"secondary"===d),(0,a.default)(t,r.outlined,"outlined"===A),(0,a.default)(t,r.outlinedPrimary,"outlined"===A&&"primary"===d),(0,a.default)(t,r.outlinedSecondary,"outlined"===A&&"secondary"===d),(0,a.default)(t,r["size".concat((0,f.capitalize)(g))],"medium"!==g),(0,a.default)(t,r.disabled,h),(0,a.default)(t,r.fullWidth,y),(0,a.default)(t,r.colorInherit,"inherit"===d),t),u);return s.default.createElement(c.default,(0,i.default)({className:w,disabled:h,focusRipple:!p,focusVisibleClassName:(0,l.default)(r.focusVisible,m)},b),s.default.createElement("span",{className:r.label},n))}t.styles=h,p.defaultProps={color:"default",component:"button",disabled:!1,disableFocusRipple:!1,fullWidth:!1,mini:!1,size:"medium",type:"button",variant:"text"};var m=(0,u.default)(h,{name:"MuiButton"})(p);t.default=m},function(e,t,n){"use strict";var r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"defaultValueReducer",{enumerable:!0,get:function(){return a.defaultValueReducer}});var a=r(n(489))},function(e,t,n){"use strict";(function(e){var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultValueReducer=x,t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(10)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(1)),h=r(n(20)),p=(r(n(0)),r(n(9))),m=r(n(8)),y=r(n(40)),v=n(48),g=(n(7),r(n(490))),A=function(e){var t={duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeOut},n=e.transitions.create(["width","height","transform"],t),r=e.transitions.create(["transform","box-shadow"],t),a={primary:e.palette.primary.main,disabled:e.palette.grey[400],thumbOutline:(0,v.fade)(e.palette.primary.main,.16)};return{root:{position:"relative",width:"100%",cursor:"pointer",WebkitTapHighlightColor:"transparent","&$disabled":{cursor:"no-drop"},"&$vertical":{height:"100%"}},container:{position:"relative","&$vertical":{height:"100%"}},track:{position:"absolute",transform:"translate(0, -50%)",top:"50%",width:"100%",height:2,backgroundColor:a.primary,transition:n,"&$activated":{transition:"none"},"&$disabled":{backgroundColor:a.disabled,boxShadow:"none"},"&$vertical":{transform:"translate(-50%, 0)",left:"50%",top:"initial",bottom:0,width:2,height:"100%"}},trackBefore:{zIndex:1,left:0,transformOrigin:"left bottom"},trackAfter:{right:0,opacity:.24,transformOrigin:"right top","&$vertical":{top:0}},thumbWrapper:{position:"relative",zIndex:2,transition:r,"&$activated":{transition:"none"},"&$vertical":{bottom:0,height:"100%"}},thumb:{flip:!1,position:"absolute",left:0,transform:"translate(-50%, -50%)",width:12,height:12,borderRadius:"50%",backgroundColor:a.primary,transition:r,"&$focused, &:hover":{boxShadow:"0px 0px 0px ".concat(9,"px ").concat(a.thumbOutline)},"&$activated":{boxShadow:"0px 0px 0px ".concat(18,"px ").concat(a.thumbOutline)},"&$disabled":{cursor:"no-drop",width:9,height:9,backgroundColor:a.disabled},"&$jumped":{boxShadow:"0px 0px 0px ".concat(18,"px ").concat(a.thumbOutline)}},thumbIconWrapper:{backgroundColor:"transparent"},thumbIcon:{height:"inherit",width:"inherit"},disabled:{},jumped:{},focused:{},activated:{},vertical:{}}};function b(e,t,n){return(n-t)*e/100+t}function M(t,n,r,a,o){var i=t.getBoundingClientRect(),s=i.width,l=i.height,u=function(t){var n=e,r=n.pageYOffset,a=n.pageXOffset,o=t.getBoundingClientRect(),i=o.left;return{bottom:o.bottom+r,left:i+a}}(t),d=u.bottom,c=u.left,f=function(e,t){if(e.changedTouches){for(var n=0,r=0;r<e.changedTouches.length;r+=1)if(e.changedTouches[r].identifier===t){n=r;break}if(e.changedTouches[n])return{x:e.changedTouches[n].pageX,y:e.changedTouches[n].pageY}}return{x:e.pageX,y:e.pageY}}(n,o),h=f.x,p=f.y,m=r?d-p:h-c,y=(r?l:s)/100;return a&&!r?100-(0,g.default)(m/y):(0,g.default)(m/y)}function k(e){e.preventDefault()}function x(e,t){var n=t.disabled,r=t.step;return n?null:r?function(e,t){return Math.round(e/t)*t}(e,r):Number(e.toFixed(3))}t.styles=A;var w=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={currentState:"initial"},n.jumpAnimationTimeoutId=-1,n.touchId=void 0,n.handleKeyDown=function(e){var t,r=n.props,a=r.min,o=r.max,i=r.value,s=Math.abs((o-a)/100),l=n.props.step||s;switch(e.key){case"Home":t=a;break;case"End":t=o;break;case"PageUp":t=i+10*s;break;case"PageDown":t=i-10*s;break;case"ArrowRight":case"ArrowUp":t=i+l;break;case"ArrowLeft":case"ArrowDown":t=i-l;break;default:return}e.preventDefault(),t=(0,g.default)(t,a,o),n.emitChange(e,t)},n.handleFocus=function(){n.setState({currentState:"focused"})},n.handleBlur=function(){n.setState({currentState:"normal"})},n.handleClick=function(e){var t=n.props,r=t.min,a=t.max,o=t.vertical,i=b(M(n.containerRef,e,o,n.isReverted(),n.touchId),r,a);n.emitChange(e,i,function(){n.playJumpAnimation()})},n.handleMouseEnter=function(e){0===e.buttons&&n.handleDragEnd(e)},n.handleMouseLeave=function(e){n.handleMouseMove(e)},n.handleTouchStart=function(e){e.preventDefault();var t=e.changedTouches.item(0);null!=t&&(n.touchId=t.identifier),n.setState({currentState:"activated"}),document.body.addEventListener("touchend",n.handleTouchEnd),"function"==typeof n.props.onDragStart&&n.props.onDragStart(e)},n.handleMouseDown=function(e){e.preventDefault(),n.setState({currentState:"activated"}),document.body.addEventListener("mouseenter",n.handleMouseEnter),document.body.addEventListener("mouseleave",n.handleMouseLeave),document.body.addEventListener("mousemove",n.handleMouseMove),document.body.addEventListener("mouseup",n.handleMouseUp),"function"==typeof n.props.onDragStart&&n.props.onDragStart(e)},n.handleTouchEnd=function(e){void 0===n.touchId&&n.handleMouseUp(e);for(var t=0;t<e.changedTouches.length;t+=1){if(e.changedTouches.item(t).identifier===n.touchId){n.handleMouseUp(e);break}}},n.handleMouseUp=function(e){n.handleDragEnd(e)},n.handleTouchMove=function(e){void 0===n.touchId&&n.handleMouseMove(e);for(var t=0;t<e.changedTouches.length;t+=1){if(e.changedTouches.item(t).identifier===n.touchId){n.handleMouseMove(e);break}}},n.handleMouseMove=function(e){var t=n.props,r=t.min,a=t.max,o=t.vertical,i=b(M(n.containerRef,e,o,n.isReverted(),n.touchId),r,a);n.emitChange(e,i)},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.containerRef&&this.containerRef.addEventListener("touchstart",k,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.containerRef&&this.containerRef.removeEventListener("touchstart",k,{passive:!1}),document.body.removeEventListener("mouseenter",this.handleMouseEnter),document.body.removeEventListener("mouseleave",this.handleMouseLeave),document.body.removeEventListener("mousemove",this.handleMouseMove),document.body.removeEventListener("mouseup",this.handleMouseUp),clearTimeout(this.jumpAnimationTimeoutId)}},{key:"handleDragEnd",value:function(e){this.setState({currentState:"normal"}),document.body.removeEventListener("mouseenter",this.handleMouseEnter),document.body.removeEventListener("mouseleave",this.handleMouseLeave),document.body.removeEventListener("mousemove",this.handleMouseMove),document.body.removeEventListener("mouseup",this.handleMouseUp),document.body.removeEventListener("touchend",this.handleTouchEnd),"function"==typeof this.props.onDragEnd&&this.props.onDragEnd(e)}},{key:"emitChange",value:function(e,t,n){var r=this.props,a=r.onChange,o=r.value,i=(0,r.valueReducer)(t,this.props,e);null!==i&&i!==o&&"function"==typeof a&&(a(e,i),"function"==typeof n&&n())}},{key:"calculateTrackPartStyles",value:function(e){var t=this.props,n=t.theme,r=t.vertical;switch(this.state.currentState){case"disabled":return(0,i.default)({},r?"height":"width","calc(".concat(e,"% - 6px)"));default:return{transform:"".concat(r?"translateX(".concat("rtl"===n.direction?"":"-","50%) scaleY"):"translateY(-50%) scaleX","(").concat(e/100,")")}}}},{key:"playJumpAnimation",value:function(){var e=this;this.setState({currentState:"jumped"},function(){clearTimeout(e.jumpAnimationTimeoutId),e.jumpAnimationTimeoutId=setTimeout(function(){e.setState({currentState:"normal"})},e.props.theme.transitions.duration.complex)})}},{key:"isReverted",value:function(){return"rtl"===this.props.theme.direction}},{key:"render",value:function(){var e,t,n=this,r=this.state.currentState,s=this.props,l=s.className,u=s.classes,d=s.component,c=s.thumb,m=s.disabled,v=s.max,A=s.min,b=(s.onChange,s.onDragEnd,s.onDragStart,s.step,s.theme),M=s.value,k=(s.valueReducer,s.vertical),x=(0,o.default)(s,["className","classes","component","thumb","disabled","max","min","onChange","onDragEnd","onDragStart","step","theme","value","valueReducer","vertical"]),w=(0,g.default)(100*(M-A)/(v-A)),T=(e={},(0,i.default)(e,u.disabled,m),(0,i.default)(e,u.jumped,!m&&"jumped"===r),(0,i.default)(e,u.focused,!m&&"focused"===r),(0,i.default)(e,u.activated,!m&&"activated"===r),(0,i.default)(e,u.vertical,k),(0,i.default)(e,u.rtl,"rtl"===b.direction),e),L=(0,p.default)(u.root,(t={},(0,i.default)(t,u.vertical,k),(0,i.default)(t,u.disabled,m),t),l),S=(0,p.default)(u.container,(0,i.default)({},u.vertical,k)),D=(0,p.default)(u.track,u.trackBefore,T),Y=(0,p.default)(u.track,u.trackAfter,T),j=k?"translateY":"translateX",E=k||"rtl"===b.direction,P=this.calculateTrackPartStyles(w),O=this.calculateTrackPartStyles(100-w),C={transform:"".concat(j,"(").concat(E?100-w:w,"%)")},H=c?f.default.cloneElement(c,(0,a.default)({},c.props,{className:(0,p.default)(c.props.className,u.thumbIcon)})):null,R=(0,p.default)(u.thumbWrapper,T),N=(0,p.default)(u.thumb,(0,i.default)({},u.thumbIconWrapper,c),T);return f.default.createElement(d,(0,a.default)({role:"slider",className:L,"aria-disabled":m,"aria-valuenow":M,"aria-valuemin":A,"aria-valuemax":v,"aria-orientation":k?"vertical":"horizontal",onClick:this.handleClick,onMouseDown:this.handleMouseDown,onTouchStartCapture:this.handleTouchStart,onTouchMove:this.handleTouchMove,ref:function(e){n.containerRef=h.default.findDOMNode(e)}},x),f.default.createElement("div",{className:S},f.default.createElement("div",{className:D,style:P}),f.default.createElement("div",{className:R,style:C},f.default.createElement(y.default,{className:N,disabled:m,disableRipple:!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onTouchStartCapture:this.handleTouchStart,onTouchMove:this.handleTouchMove,onFocusVisible:this.handleFocus},H)),f.default.createElement("div",{className:Y,style:O})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled?{currentState:"disabled"}:e.disabled||"disabled"!==t.currentState?null:{currentState:"normal"}}}]),t}(f.default.Component);w.defaultProps={min:0,max:100,component:"div",valueReducer:x};var T=(0,m.default)(A,{name:"MuiSlider",withTheme:!0})(w);t.default=T}).call(this,n(29))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.min(Math.max(e,t),n)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(492))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}};function c(e){var t=e.classes,n=e.className,r=e.children,u=e.row,d=(0,i.default)(e,["classes","className","children","row"]);return s.default.createElement("div",(0,a.default)({className:(0,l.default)(t.root,(0,o.default)({},t.row,u),n)},d),r)}t.styles=d,c.defaultProps={row:!1};var f=(0,u.default)(d,{name:"MuiFormGroup"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),n(7),r(n(9))),u=n(21),d=r(n(8)),c=r(n(53)),f={root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"}}};function h(e){var t=e.block,n=e.children,r=e.classes,d=e.className,f=e.component,h=e.TypographyClasses,p=e.underline,m=(0,i.default)(e,["block","children","classes","className","component","TypographyClasses","underline"]);return s.default.createElement(c.default,(0,a.default)({className:(0,l.default)(r.root,(0,o.default)({},r.button,"button"===f),r["underline".concat((0,u.capitalize)(p))],d),classes:h,component:f,inline:!t},m),n)}t.styles=f,h.defaultProps={block:!1,color:"primary",component:"a",underline:"hover",variant:"inherit"};var p=(0,d.default)(f,{name:"MuiLink"})(h);t.default=p},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Doughnut",function(){return b}),n.d(t,"Pie",function(){return M}),n.d(t,"Line",function(){return k}),n.d(t,"Bar",function(){return x}),n.d(t,"HorizontalBar",function(){return w}),n.d(t,"Radar",function(){return T}),n.d(t,"Polar",function(){return L}),n.d(t,"Bubble",function(){return S}),n.d(t,"Scatter",function(){return D}),n.d(t,"defaults",function(){return Y});var r=n(1),a=n.n(r),o=n(0),i=n.n(o),s=n(37),l=n.n(s);n.d(t,"Chart",function(){return l.a});var u=n(38),d=n.n(u),c=(n(598),n(286)),f=n.n(c),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=void 0!==e&&e.env&&"production",A=function(e){function t(){var n,r;m(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=y(this,e.call.apply(e,[this].concat(o))),r.handleOnClick=function(e){var t=r.chartInstance,n=r.props,a=n.getDatasetAtEvent,o=n.getElementAtEvent,i=n.getElementsAtEvent,s=n.onElementsClick;a&&a(t.getDatasetAtEvent(e),e),o&&o(t.getElementAtEvent(e),e),i&&i(t.getElementsAtEvent(e),e),s&&s(t.getElementsAtEvent(e),e)},r.ref=function(e){r.element=e},y(r,n)}return v(t,e),t.prototype.componentWillMount=function(){this.chartInstance=void 0},t.prototype.componentDidMount=function(){this.renderChart()},t.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,a=t.plugins,o=t.legend,i=t.height,s=t.width;if(!0===e.redraw)return!0;if(i!==e.height||s!==e.width)return!0;if(n!==e.type)return!0;if(!d()(o,e.legend))return!0;if(!d()(r,e.options))return!0;var l=this.transformDataProp(e);return!d()(this.shadowDataProp,l)||!d()(a,e.plugins)},t.prototype.componentWillUnmount=function(){this.chartInstance.destroy()},t.prototype.transformDataProp=function(e){var t=e.data;return"function"==typeof t?t(this.element):t},t.prototype.memoizeDataProps=function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=h({},e,{datasets:e.datasets&&e.datasets.map(function(e){return h({},e)})}),e}},t.prototype.checkDatasets=function(e){var n="production"!==g&&"prod"!==g,r=this.props.datasetKeyProvider!==t.getLabelAsKey,a=e.length>1;if(n&&a&&!r){var o=!1;e.forEach(function(e){e.label||(o=!0)}),o&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},t.prototype.updateChart=function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=l.a.helpers.configMerge(this.chartInstance.options,t));var r=this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[],a=n.datasets||[];this.checkDatasets(r);var o=f()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=a.map(function(t){var n=o[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type){n.data.splice(t.data.length),t.data.forEach(function(e,r){n.data[r]=t.data[r]});t.data;var r=p(t,["data"]);return h({},n,r)}return t});n.datasets;var i=p(n,["datasets"]);this.chartInstance.config.data=h({},this.chartInstance.config.data,i),this.chartInstance.update()}},t.prototype.renderChart=function(){var e=this.props,n=e.options,r=e.legend,a=e.type,o=(e.redraw,e.plugins),i=this.element,s=this.memoizeDataProps();void 0===r||d()(t.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new l.a(i,{type:a,data:s,options:n,plugins:o})},t.prototype.render=function(){var e=this.props,t=e.height,n=e.width,r=(e.onElementsClick,e.id);return a.a.createElement("canvas",{ref:this.ref,height:t,width:n,id:r,onClick:this.handleOnClick})},t}(a.a.Component);A.getLabelAsKey=function(e){return e.label},A.propTypes={data:i.a.oneOfType([i.a.object,i.a.func]).isRequired,getDatasetAtEvent:i.a.func,getElementAtEvent:i.a.func,getElementsAtEvent:i.a.func,height:i.a.number,legend:i.a.object,onElementsClick:i.a.func,options:i.a.object,plugins:i.a.arrayOf(i.a.object),redraw:i.a.bool,type:function(e,t,n){if(!l.a.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:i.a.number,datasetKeyProvider:i.a.func},A.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:A.getLabelAsKey},t.default=A;var b=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))},t}(a.a.Component),M=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))},t}(a.a.Component),k=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))},t}(a.a.Component),x=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))},t}(a.a.Component),w=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))},t}(a.a.Component),T=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))},t}(a.a.Component),L=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))},t}(a.a.Component),S=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))},t}(a.a.Component),D=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))},t}(a.a.Component),Y=l.a.defaults}.call(this,n(495))},function(e,t){var n,r,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,u=[],d=!1,c=-1;function f(){d&&l&&(d=!1,l.length?u=l.concat(u):c=-1,u.length&&h())}function h(){if(!d){var e=s(f);d=!0;for(var t=u.length;t;){for(l=u,u=[];++c<t;)l&&l[c].run();c=-1,t=u.length}l=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||d||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){"use strict";n(17)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){"use strict";var r=n(56),a={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-a.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*a.easeInBounce(2*e):.5*a.easeOutBounce(2*e-1)+.5}};e.exports={effects:a},r.easingEffects=a},function(e,t,n){"use strict";var r=n(56);t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,o){if(o){var i=Math.min(o,a/2-1e-7,r/2-1e-7);e.moveTo(t+i,n),e.lineTo(t+r-i,n),e.arcTo(t+r,n,t+r,n+i,i),e.lineTo(t+r,n+a-i),e.arcTo(t+r,n+a,t+r-i,n+a,i),e.lineTo(t+i,n+a),e.arcTo(t,n+a,t,n+a-i,i),e.lineTo(t,n+i),e.arcTo(t,n,t+i,n,i),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,o){var i,s,l,u,d,c;if(o=o||0,!t||"object"!=typeof t||"[object HTMLImageElement]"!==(i=t.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(r,a),e.rotate(o*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case"triangle":d=(s=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(-s/2,d/3),e.lineTo(s/2,d/3),e.lineTo(0,-2*d/3),e.closePath();break;case"rect":c=1/Math.SQRT2*n,e.rect(-c,-c,2*c,2*c);break;case"rectRounded":var f=n/Math.SQRT2,h=-f,p=-f,m=Math.SQRT2*n;this.roundedRect(e,h,p,m,m,.425*n);break;case"rectRot":c=1/Math.SQRT2*n,e.moveTo(-c,0),e.lineTo(0,c),e.lineTo(c,0),e.lineTo(0,-c),e.closePath();break;case"cross":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case"crossRot":l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case"star":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case"line":e.moveTo(-n,0),e.lineTo(n,0);break;case"dash":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}}else e.drawImage(t,r-t.width/2,a-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){if(n.steppedLine)return"after"===n.steppedLine&&!r||"after"!==n.steppedLine&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y);n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}};r.clear=t.clear,r.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){"use strict";var r=n(56);e.exports={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,a,o;return r.isObject(e)?(t=+e.top||0,n=+e.right||0,a=+e.bottom||0,o=+e.left||0):t=n=a=o=+e||0,{top:t,right:n,bottom:a,left:o,height:t+a,width:o+n}},resolve:function(e,t,n){var a,o,i;for(a=0,o=e.length;a<o;++a)if(void 0!==(i=e[a])&&(void 0!==t&&"function"==typeof i&&(i=i(t)),void 0!==n&&r.isArray(i)&&(i=i[n]),void 0!==i))return i}}},function(e,t,n){"use strict";var r=n(134),a=n(17),o=n(11),i=n(26);e.exports=function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,a){var i=document.defaultView,s=o._getParentNode(n),l=i.getComputedStyle(n)[r],u=i.getComputedStyle(s)[r],d=t(l),c=t(u),f=Number.POSITIVE_INFINITY;return d||c?Math.min(d?e(l,n,a):f,c?e(u,s,a):f):"none"}o.configMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){var a=t[e]||{},s=n[e];"scales"===e?t[e]=o.scaleMerge(a,s):"scale"===e?t[e]=o.merge(a,[i.getScaleDefaults(s.type),s]):o._merger(e,t,n,r)}})},o.scaleMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,s,l,u=n[e].length;for(t[e]||(t[e]=[]),a=0;a<u;++a)l=n[e][a],s=o.valueOrDefault(l.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||l.type&&l.type!==t[e][a].type?o.merge(t[e][a],[i.getScaleDefaults(s),l]):o.merge(t[e][a],l)}else o._merger(e,t,n,r)}})},o.where=function(e,t){if(o.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return o.each(e,function(e){t(e)&&n.push(e)}),n},o.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},o.findNextWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},o.findPreviousWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},o.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},o.almostEquals=function(e,t,n){return Math.abs(e-t)<n},o.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},o.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},o.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},o.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},o.toRadians=function(e){return e*(Math.PI/180)},o.toDegrees=function(e){return e*(180/Math.PI)},o.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},o.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o.aliasPixel=function(e){return e%2==0?0:.5},o.splineCurve=function(e,t,n,r){var a=e.skip?t:e,o=t,i=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),u=s/(s+l),d=l/(s+l),c=r*(u=isNaN(u)?0:u),f=r*(d=isNaN(d)?0:d);return{previous:{x:o.x-c*(i.x-a.x),y:o.y-c*(i.y-a.y)},next:{x:o.x+f*(i.x-a.x),y:o.y+f*(i.y-a.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(e){var t,n,r,a,i,s,l,u,d,c=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),f=c.length;for(t=0;t<f;++t)if(!(r=c[t]).model.skip){if(n=t>0?c[t-1]:null,(a=t<f-1?c[t+1]:null)&&!a.model.skip){var h=a.model.x-r.model.x;r.deltaK=0!==h?(a.model.y-r.model.y)/h:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<f-1;++t)r=c[t],a=c[t+1],r.model.skip||a.model.skip||(o.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(i=r.mK/r.deltaK,s=a.mK/r.deltaK,(u=Math.pow(i,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(u),r.mK=i*l*r.deltaK,a.mK=s*l*r.deltaK)));for(t=0;t<f;++t)(r=c[t]).model.skip||(n=t>0?c[t-1]:null,a=t<f-1?c[t+1]:null,n&&!n.model.skip&&(d=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-d,r.model.controlPointPreviousY=r.model.y-d*r.mK),a&&!a.model.skip&&(d=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+d,r.model.controlPointNextY=r.model.y+d*r.mK))},o.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},o.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},o.niceNum=function(e,t){var n=Math.floor(o.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},o.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,i=e.target||e.srcElement,s=i.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,r=l[0].clientY):(n=a.clientX,r=a.clientY);var u=parseFloat(o.getStyle(i,"padding-left")),d=parseFloat(o.getStyle(i,"padding-top")),c=parseFloat(o.getStyle(i,"padding-right")),f=parseFloat(o.getStyle(i,"padding-bottom")),h=s.right-s.left-u-c,p=s.bottom-s.top-d-f;return{x:n=Math.round((n-s.left-u)/h*i.width/t.currentDevicePixelRatio),y:r=Math.round((r-s.top-d)/p*i.height/t.currentDevicePixelRatio)}},o.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},o.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},o._calculatePadding=function(e,t,n){return(t=o.getStyle(e,t)).indexOf("%")>-1?n/parseInt(t,10):parseInt(t,10)},o._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},o.getMaximumWidth=function(e){var t=o._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-o._calculatePadding(t,"padding-left",n)-o._calculatePadding(t,"padding-right",n),a=o.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},o.getMaximumHeight=function(e){var t=o._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-o._calculatePadding(t,"padding-top",n)-o._calculatePadding(t,"padding-bottom",n),a=o.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},o.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},o.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,o=e.width;r.height=a*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=o+"px")}},o.fontString=function(e,t,n){return t+" "+e+"px "+n},o.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var s=0;o.each(n,function(t){null!=t&&!0!==o.isArray(t)?s=o.measureText(e,a,i,s,t):o.isArray(t)&&o.each(t,function(t){null==t||o.isArray(t)||(s=o.measureText(e,a,i,s,t))})});var l=i.length/2;if(l>n.length){for(var u=0;u<l;u++)delete a[i[u]];i.splice(0,l)}return s},o.measureText=function(e,t,n,r,a){var o=t[a];return o||(o=t[a]=e.measureText(a).width,n.push(a)),o>r&&(r=o),r},o.numberOfLabelLines=function(e){var t=1;return o.each(e,function(e){o.isArray(e)&&e.length>t&&(t=e.length)}),t},o.color=r?function(e){return e instanceof CanvasGradient&&(e=a.global.defaultColor),r(e)}:function(e){return console.error("Color.js not found!"),e},o.getHoverColor=function(e){return e instanceof CanvasPattern?e:o.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){var r=n(502),a=function(){return new u};for(var o in r){a[o+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(o);var i=/(\w+)2(\w+)/.exec(o),s=i[1],l=i[2];(a[s]=a[s]||{})[l]=a[o]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var a=0;a<n.length;a++)n[a]=Math.round(n[a]);return n}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},u.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},u.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=a[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){u.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},function(e,t){function n(e){var t,n,r=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(r,a,o),s=Math.max(r,a,o),l=s-i;return s==i?t=0:r==s?t=(a-o)/l:a==s?t=2+(o-r)/l:o==s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s==i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]}function a(e){var t,n,r=e[0],a=e[1],o=e[2],i=Math.min(r,a,o),s=Math.max(r,a,o),l=s-i;return n=0==s?0:l/s*1e3/10,s==i?t=0:r==s?t=(a-o)/l:a==s?t=2+(o-r)/l:o==s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],r=e[1],a=e[2];return[n(e)[0],100*(1/255*Math.min(t,Math.min(r,a))),100*(a=1-1/255*Math.max(t,Math.max(r,a)))]}function i(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]}function s(e){return w[JSON.stringify(e)]}function l(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function u(e){var t=l(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(e){var t,n,r,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(r=i+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[u]=255*o;return a}function c(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));r*=255;switch(a){case 0:return[r,l,i];case 1:return[s,r,i];case 2:return[i,r,l];case 3:return[i,s,r];case 4:return[l,i,r];case 5:return[r,i,s]}}function f(e){var t,n,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),a=6*i-(t=Math.floor(6*i)),0!=(1&t)&&(a=1-a),o=s+a*((n=1-l)-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function h(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]}function p(e){var t,n,r,a=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*o+.0415*i,r=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function y(e){var t,n,r,a,o=e[0],i=e[1],s=e[2];return o<=8?a=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(i/500+a-16/116)/7.787:95.047*Math.pow(i/500+a,3),n,r=r/108.883<=.008859?r=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function v(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]}function A(e){return p(y(e))}function M(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function k(e){return x[e]}e.exports={rgb2hsl:n,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:i,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:function(e){return v(u(e))},hsl2rgb:d,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return o(d(e))},hsl2cmyk:function(e){return i(d(e))},hsl2keyword:function(e){return s(d(e))},hsv2rgb:c,hsv2hsl:function(e){var t,n,r=e[0],a=e[1]/100,o=e[2]/100;return t=a*o,[r,100*(t=(t/=(n=(2-a)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(c(e))},hsv2cmyk:function(e){return i(c(e))},hsv2keyword:function(e){return s(c(e))},hwb2rgb:f,hwb2hsl:function(e){return n(f(e))},hwb2hsv:function(e){return a(f(e))},hwb2cmyk:function(e){return i(f(e))},hwb2keyword:function(e){return s(f(e))},cmyk2rgb:h,cmyk2hsl:function(e){return n(h(e))},cmyk2hsv:function(e){return a(h(e))},cmyk2hwb:function(e){return o(h(e))},cmyk2keyword:function(e){return s(h(e))},keyword2rgb:k,keyword2hsl:function(e){return n(k(e))},keyword2hsv:function(e){return a(k(e))},keyword2hwb:function(e){return o(k(e))},keyword2cmyk:function(e){return i(k(e))},keyword2lab:function(e){return u(k(e))},keyword2xyz:function(e){return l(k(e))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(e){return v(m(e))},lab2xyz:y,lab2rgb:A,lab2lch:v,lch2lab:M,lch2xyz:function(e){return y(M(e))},lch2rgb:function(e){return A(M(e))}};var x={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},w={};for(var T in x)w[JSON.stringify(x[T])]=T},function(e,t,n){var r=n(83);function a(e){if(e){var t=[0,0,0],n=1,a=e.match(/^#([a-fA-F0-9]{3})$/i);if(a){a=a[1];for(var o=0;o<t.length;o++)t[o]=parseInt(a[o]+a[o],16)}else if(a=e.match(/^#([a-fA-F0-9]{6})$/i)){a=a[1];for(o=0;o<t.length;o++)t[o]=parseInt(a.slice(2*o,2*o+2),16)}else if(a=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(a[o+1]);n=parseFloat(a[4])}else if(a=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(a[o+1]));n=parseFloat(a[4])}else if(a=e.match(/(\w+)/)){if("transparent"==a[1])return[0,0,0,0];if(!(t=r[a[1]]))return}for(o=0;o<t.length;o++)t[o]=d(t[o],0,255);return n=n||0==n?d(n,0,1):1,t[3]=n,t}}function o(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(n)?1:n,0,1)]}}}function i(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function u(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function d(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:a,getHsla:o,getRgb:function(e){var t=a(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:i,getAlpha:function(e){var t=a(e);if(t)return t[3];if(t=o(e))return t[3];if(t=i(e))return t[3]},hexString:function(e){return"#"+c(e[0])+c(e[1])+c(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return l(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+a+"%)"},percentaString:l,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return u(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:u,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return f[e.slice(0,3)]}};var f={};for(var h in r)f[r[h]]=h},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11);r._set("global",{elements:{arc:{backgroundColor:r.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=o.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,i=r.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;a<s;)a+=2*Math.PI;var u=a>=s&&a<=l,d=i>=n.innerRadius&&i<=n.outerRadius;return u&&d}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,r=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,r),e.arc(t.x,t.y,t.innerRadius,r,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=r.global;r._set("global",{elements:{line:{tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var e,t,n,r,a=this._view,s=this._chart.ctx,l=a.spanGaps,u=this._children.slice(),d=i.elements.line,c=-1;for(this._loop&&u.length&&u.push(u[0]),s.save(),s.lineCap=a.borderCapStyle||d.borderCapStyle,s.setLineDash&&s.setLineDash(a.borderDash||d.borderDash),s.lineDashOffset=a.borderDashOffset||d.borderDashOffset,s.lineJoin=a.borderJoinStyle||d.borderJoinStyle,s.lineWidth=a.borderWidth||d.borderWidth,s.strokeStyle=a.borderColor||i.defaultColor,s.beginPath(),c=-1,e=0;e<u.length;++e)t=u[e],n=o.previousItem(u,e),r=t._view,0===e?r.skip||(s.moveTo(r.x,r.y),c=e):(n=-1===c?n:u[c],r.skip||(c!==e-1&&!l||-1===c?s.moveTo(r.x,r.y):o.canvas.lineTo(s,n._view,t._view),c=e));s.stroke(),s.restore()}})},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=r.global.defaultColor;function s(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}r._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:i,borderColor:i,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=a.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._model,a=this._chart.ctx,s=t.pointStyle,l=t.rotation,u=t.radius,d=t.x,c=t.y;t.skip||(void 0===e||n.x>=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(a.strokeStyle=t.borderColor||i,a.lineWidth=o.valueOrDefault(t.borderWidth,r.global.elements.point.borderWidth),a.fillStyle=t.backgroundColor||i,o.canvas.drawPoint(a,s,u,d,c,l))}})},function(e,t,n){"use strict";var r=n(17),a=n(22);function o(e){return void 0!==e._view.width}function i(e){var t,n,r,a,i=e._view;if(o(e)){var s=i.width/2;t=i.x-s,n=i.x+s,r=Math.min(i.y,i.base),a=Math.max(i.y,i.base)}else{var l=i.height/2;t=Math.min(i.x,i.base),n=Math.max(i.x,i.base),r=i.y-l,a=i.y+l}return{left:t,top:r,right:n,bottom:a}}r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=a.extend({draw:function(){var e,t,n,r,a,o,i,s=this._chart.ctx,l=this._view,u=l.borderWidth;if(l.horizontal?(e=l.base,t=l.x,n=l.y-l.height/2,r=l.y+l.height/2,a=t>e?1:-1,o=1,i=l.borderSkipped||"left"):(e=l.x-l.width/2,t=l.x+l.width/2,n=l.y,a=1,o=(r=l.base)>n?1:-1,i=l.borderSkipped||"bottom"),u){var d=Math.min(Math.abs(e-t),Math.abs(n-r)),c=(u=u>d?d:u)/2,f=e+("left"!==i?c*a:0),h=t+("right"!==i?-c*a:0),p=n+("top"!==i?c*o:0),m=r+("bottom"!==i?-c*o:0);f!==h&&(n=p,r=m),p!==m&&(e=f,t=h)}s.beginPath(),s.fillStyle=l.backgroundColor,s.strokeStyle=l.borderColor,s.lineWidth=u;var y=[[e,r],[e,n],[t,n],[t,r]],v=["bottom","left","top","right"].indexOf(i,0);function g(e){return y[(v+e)%4]}-1===v&&(v=0);var A=g(0);s.moveTo(A[0],A[1]);for(var b=1;b<4;b++)A=g(b),s.lineTo(A[0],A[1]);s.fill(),u&&s.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var r=i(this);n=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}return n},inLabelRange:function(e,t){if(!this._view)return!1;var n=i(this);return o(this)?e>=n.left&&e<=n.right:t>=n.top&&t<=n.bottom},inXRange:function(e){var t=i(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=i(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return o(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},function(e,t,n){"use strict";var r=n(11),a="$chartjs",o="chartjs-",i=o+"render-monitor",s=o+"render-animation",l=["animationstart","webkitAnimationStart"],u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function d(e,t){var n=r.getStyle(e,t),a=n&&n.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}var c=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function f(e,t,n){e.addEventListener(t,n,c)}function h(e,t,n){e.removeEventListener(t,n,c)}function p(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function m(e,t,n){var u,d,c,h,m=e[a]||(e[a]={}),y=m.resizer=function(e){var t=document.createElement("div"),n=o+"size-monitor",r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=r,t.className=n,t.innerHTML='<div class="'+n+'-expand" style="'+r+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var a=t.childNodes[0],i=t.childNodes[1];t._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var s=function(){t._reset(),e()};return f(a,"scroll",s.bind(a,"expand")),f(i,"scroll",s.bind(i,"shrink")),t}((u=function(){if(m.resizer)return t(p("resize",n))},c=!1,h=[],function(){h=Array.prototype.slice.call(arguments),d=d||this,c||(c=!0,r.requestAnimFrame.call(window,function(){c=!1,u.apply(d,h)}))}));!function(e,t){var n=e[a]||(e[a]={}),o=n.renderProxy=function(e){e.animationName===s&&t()};r.each(l,function(t){f(e,t,o)}),n.reflow=!!e.offsetParent,e.classList.add(i)}(e,function(){if(m.resizer){var t=e.parentNode;t&&t!==y.parentNode&&t.insertBefore(y,t.firstChild),y._reset()}})}function y(e){var t=e[a]||{},n=t.resizer;delete t.resizer,function(e){var t=e[a]||{},n=t.renderProxy;n&&(r.each(l,function(t){h(e,t,n)}),delete t.renderProxy),e.classList.remove(i)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,n,r="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+s+"{"+r+"}@keyframes "+s+"{"+r+"}."+i+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(e=this)._style||document.createElement("style"),e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[a]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var i=d(e,"width");void 0!==i&&(e.width=i)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=d(e,"height");void 0!==i&&(e.height=s)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[a]){var n=t[a].initial;["height","width"].forEach(function(e){var a=n[e];r.isNullOrUndef(a)?t.removeAttribute(e):t.setAttribute(e,a)}),r.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[a]}},addEventListener:function(e,t,n){var o=e.canvas;if("resize"!==t){var i=n[a]||(n[a]={});f(o,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=u[e.type]||e.type,a=r.getRelativePosition(e,t);return p(n,t,a.x,a.y,e)}(t,e))})}else m(o,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var o=((n[a]||{}).proxies||{})[e.id+"_"+t];o&&h(r,t,o)}else y(r)}},r.addEvent=f,r.removeEvent=h},function(e,t,n){"use strict";var r=n(135),a=n(136),o=n(17),i=n(11),s=n(137),l=n(42),u=n(138),d=n(139),c=n(26),f=n(140);e.exports=function(e){function t(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},i.extend(e.prototype,{construct:function(t,n){var r=this;n=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=i.configMerge(o.global,o[e.type],e.options||{}),e}(n);var a=u.acquireContext(t,n),s=a&&a.canvas,l=s&&s.height,d=s&&s.width;r.id=i.uid(),r.ctx=a,r.canvas=s,r.config=n,r.width=d,r.height=l,r.aspectRatio=l?d/l:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),a&&s?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return d.notify(e,"beforeInit"),i.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),d.notify(e,"afterInit"),e},clear:function(){return i.canvas.clear(this),this},stop:function(){return a.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(i.getMaximumWidth(r))),s=Math.max(0,Math.floor(a?o/a:i.getMaximumHeight(r)));if((t.width!==o||t.height!==s)&&(r.width=t.width=o,r.height=t.height=s,r.style.width=o+"px",r.style.height=s+"px",i.retinaScale(t,n.devicePixelRatio),!e)){var l={width:o,height:s};d.notify(t,"resize",[l]),t.options.onResize&&t.options.onResize(t,l),t.stop(),t.update({duration:t.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;i.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),i.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,n=e.options,r=e.scales||{},a=[],o=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});n.scales&&(a=a.concat((n.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),n.scale&&a.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),i.each(a,function(n){var a=n.options,s=a.id,l=i.valueOrDefault(a.type,n.dtype);t(a.position)!==t(n.dposition)&&(a.position=n.dposition),o[s]=!0;var u=null;if(s in r&&r[s].type===l)(u=r[s]).options=a,u.ctx=e.ctx,u.chart=e;else{var d=c.getScaleConstructor(l);if(!d)return;u=new d({id:s,type:l,options:a,ctx:e.ctx,chart:e}),r[u.id]=u}u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}),i.each(o,function(e,t){e||delete r[t]}),e.scales=r,c.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,n=[],r=[];return i.each(t.data.datasets,function(a,o){var i=t.getDatasetMeta(o),s=a.type||t.config.type;if(i.type&&i.type!==s&&(t.destroyDatasetMeta(o),i=t.getDatasetMeta(o)),i.type=s,n.push(i.type),i.controller)i.controller.updateIndex(o),i.controller.linkScales();else{var l=e.controllers[i.type];if(void 0===l)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new l(t,o),r.push(i.controller)}},t),r},resetElements:function(){var e=this;i.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var n,r,a=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),r=(n=a).options,i.each(n.scales,function(e){l.removeBox(n,e)}),r=i.configMerge(e.defaults.global,e.defaults[n.config.type],r),n.options=n.config.options=r,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=r.tooltips,n.tooltip.initialize(),d._invalidate(a),!1!==d.notify(a,"beforeUpdate")){a.tooltip._data=a.data;var o=a.buildOrUpdateControllers();i.each(a.data.datasets,function(e,t){a.getDatasetMeta(t).controller.buildOrUpdateElements()},a),a.updateLayout(),a.options.animation&&a.options.animation.duration&&i.each(o,function(e){e.reset()}),a.updateDatasets(),a.tooltip.initialize(),a.lastActive=[],d.notify(a,"afterUpdate"),a._bufferedRender?a._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:a.render(t)}},updateLayout:function(){!1!==d.notify(this,"beforeLayout")&&(l.update(this,this.width,this.height),d.notify(this,"afterScaleUpdate"),d.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==d.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);d.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==d.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),d.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=e.duration,o=e.lazy;if(!1!==d.notify(t,"beforeRender")){var s=t.options.animation,l=function(e){d.notify(t,"afterRender"),i.callback(s&&s.onComplete,[e],t)};if(s&&(void 0!==n&&0!==n||void 0===n&&0!==s.duration)){var u=new r({numSteps:(n||s.duration)/16.66,easing:e.easing||s.easing,render:function(e,t){var n=i.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:s.onProgress,onAnimationComplete:l});a.addAnimation(t,u,n,o)}else t.draw(),l(new r({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),i.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==d.notify(t,"beforeDraw",[e])&&(i.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),d.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==d.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);d.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==d.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),d.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==d.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),d.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=s.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var t,n,r=this,a=r.canvas;for(r.stop(),t=0,n=r.data.datasets.length;t<n;++t)r.destroyDatasetMeta(t);a&&(r.unbindEvents(),i.canvas.clear(r),u.releaseContext(r.ctx),r.canvas=null,r.ctx=null),d.notify(r,"destroy"),delete e.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new f({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};i.each(e.options.events,function(r){u.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},u.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,i.each(t,function(t,n){u.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,a,o,i=n?"setHoverStyle":"removeHoverStyle";for(a=0,o=e.length;a<o;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[i](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==d.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),d.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},a=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,a.mode,a),i.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),t=!i.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),e.Controller=e}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function n(e,n){var r=e._chartjs;if(r){var a=r.listeners,o=a.indexOf(n);-1!==o&&a.splice(o,1),a.length>0||(t.forEach(function(t){delete e[t]}),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},r.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],a=n.data;for(e=0,t=r.length;e<t;++e)a[e]=a[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,a,o=this,i=o.getDataset(),s=i.data||(i.data=[]);o._data!==s&&(o._data&&n(o._data,o),a=o,(e=s)._chartjs?e._chartjs.listeners.push(a):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[a]}}),t.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),a=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),o=a.apply(this,t);return r.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),o}})})),o._data=s),o.resyncElements()},update:r.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){r.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,a=e.custom||{},o=r.valueAtIndexOrDefault,i=r.getHoverColor,s=e._model;e.$previousStyle={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth},s.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:o(t.hoverBackgroundColor,n,i(s.backgroundColor)),s.borderColor=a.hoverBorderColor?a.hoverBorderColor:o(t.hoverBorderColor,n,i(s.borderColor)),s.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:o(t.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=r.inherits}},function(e,t,n){"use strict";var r=n(11),a=n(43);e.exports=function(e){var t=r.noop;e.LinearScaleBase=a.extend({getRightValue:function(e){return"string"==typeof e?+e:a.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=r.sign(e.min),a=r.sign(e.max);n<0&&a<0?e.max=0:n>0&&a>0&&(e.min=0)}var o=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),o!==i&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),a={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:r.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=function(e,t){var n,a,o,i=[];if(e.stepSize&&e.stepSize>0)o=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);o=r.niceNum(s/(e.maxTicks-1),!0),void 0!==(a=e.precision)&&(n=Math.pow(10,a),o=Math.ceil(o*n)/n)}var l=Math.floor(t.min/o)*o,u=Math.ceil(t.max/o)*o;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,o/1e3)&&(l=e.min,u=e.max);var d=(u-l)/o;d=r.almostEquals(d,Math.round(d),o/1e3)?Math.round(d):Math.ceil(d),a=1,o<1&&(a=Math.pow(10,1-Math.floor(r.log10(o))),l=Math.round(l*a)/a,u=Math.round(u*a)/a),i.push(void 0!==e.min?e.min:l);for(var c=1;c<d;++c)i.push(Math.round((l+c*o)*a)/a);return i.push(void 0!==e.max?e.max:u),i}(a,e);e.handleDirectionalChanges(),e.max=r.max(o),e.min=r.min(o),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),a.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){"use strict";var r=n(43),a=n(26);e.exports=function(){var e=r.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart.data,a=n.isHorizontal();return r.yLabels&&!a?n.getRightValue(r.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,a=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(a?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var i=r.getLabels().indexOf(e);t=-1!==i?i:t}if(r.isHorizontal()){var s=r.width/o,l=s*(t-r.minIndex);return a&&(l+=s/2),r.left+Math.round(l)}var u=r.height/o,d=u*(t-r.minIndex);return a&&(d+=u/2),r.top+Math.round(d)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),a=t.isHorizontal(),o=(a?t.width:t.height)/r;return e-=a?t.left:t.top,n&&(e-=o/2),(e<=0?0:Math.round(e/o))+t.minIndex},getBasePixel:function(){return this.bottom}});a.registerScaleType("category",e,{position:"bottom"})}},function(e,t,n){"use strict";var r=n(17),a=n(11),o=n(26),i=n(44);e.exports=function(e){var t={position:"left",ticks:{callback:i.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,o=e.isHorizontal();function i(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var s=t.stacked;if(void 0===s&&a.each(r,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&i(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};a.each(r,function(r,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var d=l[u].positiveValues,c=l[u].negativeValues;n.isDatasetVisible(o)&&i(s)&&a.each(r.data,function(n,r){var a=+e.getRightValue(n);isNaN(a)||s.data[r].hidden||(d[r]=d[r]||0,c[r]=c[r]||0,t.relativePoints?d[r]=100:a<0?c[r]+=a:d[r]+=a)})}),a.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),r=a.min(n),o=a.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?o:Math.max(e.max,o)})}else a.each(r,function(t,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&i(o)&&a.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=a.valueOrDefault(t.fontSize,r.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),a=t.end-n;return t.isHorizontal()?t.left+t.width/a*(r-n):t.bottom-t.height/a*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,a=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*a},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});o.registerScaleType("linear",n,t)}},function(e,t,n){"use strict";var r=n(11),a=n(43),o=n(26),i=n(44);e.exports=function(e){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},n=a.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,a=n.data.datasets,o=e.isHorizontal();function i(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var s=t.stacked;if(void 0===s&&r.each(a,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&i(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};r.each(a,function(a,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");n.isDatasetVisible(o)&&i(s)&&(void 0===l[u]&&(l[u]=[]),r.each(a.data,function(t,n){var r=l[u],a=+e.getRightValue(t);isNaN(a)||s.data[n].hidden||a<0||(r[n]=r[n]||0,r[n]+=a)}))}),r.each(l,function(t){if(t.length>0){var n=r.min(t),a=r.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}})}else r.each(a,function(t,a){var o=n.getDatasetMeta(a);n.isDatasetVisible(a)&&i(o)&&r.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=r.valueOrDefault;e.min=n(t.min,e.min),e.max=n(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(r.log10(e.min))-1),e.max=Math.pow(10,Math.floor(r.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(r.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(r.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),a={min:t.min,max:t.max},o=e.ticks=function(e,t){var n,a,o=[],i=r.valueOrDefault,s=i(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),l=Math.floor(r.log10(t.max)),u=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(r.log10(t.minNotZero)),a=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(s),s=a*Math.pow(10,n)):(n=Math.floor(r.log10(s)),a=Math.floor(s/Math.pow(10,n)));var d=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(s),10==++a&&(a=1,d=++n>=0?1:d),s=Math.round(a*Math.pow(10,n)*d)/d}while(n<l||n===l&&a<u);var c=i(e.max,s);return o.push(c),o}(a,e);e.max=r.max(o),e.min=r.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),a.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,a,o,i,s,l=this,u=l.options.ticks.reverse,d=r.log10,c=l._getFirstTickValue(l.minNotZero),f=0;return t=+l.getRightValue(t),u?(o=l.end,i=l.start,s=-1):(o=l.start,i=l.end,s=1),l.isHorizontal()?(n=l.width,a=u?l.right:l.left):(n=l.height,s*=-1,a=u?l.top:l.bottom),t!==o&&(0===o&&(n-=f=r.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),o=c),0!==t&&(f+=n/(d(i)-d(o))*(d(t)-d(o))),a+=s*f),a},getValueForPixel:function(t){var n,a,o,i,s=this,l=s.options.ticks.reverse,u=r.log10,d=s._getFirstTickValue(s.minNotZero);if(l?(a=s.end,o=s.start):(a=s.start,o=s.end),s.isHorizontal()?(n=s.width,i=l?s.right-t:t-s.left):(n=s.height,i=l?t-s.top:s.bottom-t),i!==a){if(0===a){var c=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);i-=c,n-=c,a=d}i*=u(o)-u(a),i/=n,i=Math.pow(10,u(a)+i)}return i}});o.registerScaleType("logarithmic",n,t)}},function(e,t,n){"use strict";var r=n(17),a=n(11),o=n(26),i=n(44);e.exports=function(e){var t=r.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:i.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function s(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function l(e){var n=e.options.pointLabels,r=a.valueOrDefault(n.fontSize,t.defaultFontSize),o=a.valueOrDefault(n.fontStyle,t.defaultFontStyle),i=a.valueOrDefault(n.fontFamily,t.defaultFontFamily);return{size:r,style:o,family:i,font:a.fontString(r,o,i)}}function u(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function d(e){return 0===e||180===e?"center":e<180?"left":"right"}function c(e,t,n,r){if(a.isArray(t))for(var o=n.y,i=1.5*r,s=0;s<t.length;++s)e.fillText(t[s],n.x,o),o+=i;else e.fillText(t,n.x,n.y)}function f(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function h(e){return a.isNumber(e)?e:0}var p=e.LinearScaleBase.extend({setDimensions:function(){var e=this,n=e.options,r=n.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var o=a.min([e.height,e.width]),i=a.valueOrDefault(r.fontSize,t.defaultFontSize);e.drawingArea=n.display?o/2-(i/2+r.backdropPaddingY):o/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;a.each(t.data.datasets,function(o,i){if(t.isDatasetVisible(i)){var s=t.getDatasetMeta(i);a.each(o.data,function(t,a){var o=+e.getRightValue(t);isNaN(o)||s.data[a].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,n=a.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,t;this.options.pointLabels.display?function(e){var t,n,r,o=l(e),i=Math.min(e.height/2,e.width/2),d={r:e.width,l:0,t:e.height,b:0},c={};e.ctx.font=o.font,e._pointLabelSizes=[];var f,h,p,m=s(e);for(t=0;t<m;t++){r=e.getPointPosition(t,i),f=e.ctx,h=o.size,p=e.pointLabels[t]||"",n=a.isArray(p)?{w:a.longestText(f,f.font,p),h:p.length*h+1.5*(p.length-1)*h}:{w:f.measureText(p).width,h:h},e._pointLabelSizes[t]=n;var y=e.getIndexAngle(t),v=a.toDegrees(y)%360,g=u(v,r.x,n.w,0,180),A=u(v,r.y,n.h,90,270);g.start<d.l&&(d.l=g.start,c.l=y),g.end>d.r&&(d.r=g.end,c.r=y),A.start<d.t&&(d.t=A.start,c.t=y),A.end>d.b&&(d.b=A.end,c.b=y)}e.setReductions(i,d,c)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,n){var r=t.l/Math.sin(n.l),a=Math.max(t.r-this.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),i=-Math.max(t.b-this.height,0)/Math.cos(n.b);r=h(r),a=h(a),o=h(o),i=h(i),this.drawingArea=Math.min(Math.round(e-(r+a)/2),Math.round(e-(o+i)/2)),this.setCenterPoint(r,a,o,i)},setCenterPoint:function(e,t,n,r){var a=this,o=a.width-t-a.drawingArea,i=e+a.drawingArea,s=n+a.drawingArea,l=a.height-r-a.drawingArea;a.xCenter=Math.round((i+o)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(e){return e*(2*Math.PI/s(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+this.xCenter,y:Math.round(Math.sin(n)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,n=e.options,r=n.gridLines,o=n.ticks,i=a.valueOrDefault;if(n.display){var u=e.ctx,h=this.getIndexAngle(0),p=i(o.fontSize,t.defaultFontSize),m=i(o.fontStyle,t.defaultFontStyle),y=i(o.fontFamily,t.defaultFontFamily),v=a.fontString(p,m,y);a.each(e.ticks,function(n,l){if(l>0||o.reverse){var d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]);if(r.display&&0!==l&&function(e,t,n,r){var o=e.ctx;if(o.strokeStyle=a.valueAtIndexOrDefault(t.color,r-1),o.lineWidth=a.valueAtIndexOrDefault(t.lineWidth,r-1),e.options.gridLines.circular)o.beginPath(),o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{var i=s(e);if(0===i)return;o.beginPath();var l=e.getPointPosition(0,n);o.moveTo(l.x,l.y);for(var u=1;u<i;u++)l=e.getPointPosition(u,n),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}(e,r,d,l),o.display){var c=i(o.fontColor,t.defaultFontColor);if(u.font=v,u.save(),u.translate(e.xCenter,e.yCenter),u.rotate(h),o.showLabelBackdrop){var f=u.measureText(n).width;u.fillStyle=o.backdropColor,u.fillRect(-f/2-o.backdropPaddingX,-d-p/2-o.backdropPaddingY,f+2*o.backdropPaddingX,p+2*o.backdropPaddingY)}u.textAlign="center",u.textBaseline="middle",u.fillStyle=c,u.fillText(n,0,-d),u.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(e){var n=e.ctx,r=e.options,o=r.angleLines,i=r.pointLabels;n.lineWidth=o.lineWidth,n.strokeStyle=o.color;var u=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),h=l(e);n.textBaseline="top";for(var p=s(e)-1;p>=0;p--){if(o.display){var m=e.getPointPosition(p,u);n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(m.x,m.y),n.stroke(),n.closePath()}if(i.display){var y=e.getPointPosition(p,u+5),v=a.valueAtIndexOrDefault(i.fontColor,p,t.defaultFontColor);n.font=h.font,n.fillStyle=v;var g=e.getIndexAngle(p),A=a.toDegrees(g);n.textAlign=d(A),f(A,e._pointLabelSizes[p],y),c(n,e.pointLabels[p]||"",y,h.size)}}}(e)}}});o.registerScaleType("radialLinear",p,n)}},function(e,t,n){"use strict";var r=n(3);r="function"==typeof r?r:window.moment;var a=n(17),o=n(11),i=n(43),s=n(26),l=Number.MIN_SAFE_INTEGER||-9007199254740991,u=Number.MAX_SAFE_INTEGER||9007199254740991,d={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},c=Object.keys(d);function f(e,t){return e-t}function h(e){var t,n,r,a={},o=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,o.push(r));return o}function p(e,t,n,r){var a=function(e,t,n){for(var r,a,o,i=0,s=e.length-1;i>=0&&i<=s;){if(a=e[(r=i+s>>1)-1]||null,o=e[r],!a)return{lo:null,hi:o};if(o[t]<n)i=r+1;else{if(!(a[t]>n))return{lo:a,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=a.lo?a.hi?a.lo:e[e.length-2]:e[0],i=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=i[t]-o[t],l=s?(n-o[t])/s:0,u=(i[r]-o[r])*l;return o[r]+u}function m(e,t){var n=t.parser,a=t.parser||t.format;return"function"==typeof n?n(e):"string"==typeof e&&"string"==typeof a?r(e,a):(e instanceof r||(e=r(e)),e.isValid()?e:"function"==typeof a?a(e):e)}function y(e,t){if(o.isNullOrUndef(e))return null;var n=t.options.time,r=m(t.getRightValue(e),n);return r.isValid()?(n.round&&r.startOf(n.round),r.valueOf()):null}function v(e){for(var t=c.indexOf(e)+1,n=c.length;t<n;++t)if(d[c[t]].common)return c[t]}function g(e,t,n,a){var i,s=a.time,l=s.unit||function(e,t,n,r){var a,o,i,s=c.length;for(a=c.indexOf(e);a<s-1;++a)if(i=(o=d[c[a]]).steps?o.steps[o.steps.length-1]:u,o.common&&Math.ceil((n-t)/(i*o.size))<=r)return c[a];return c[s-1]}(s.minUnit,e,t,n),f=v(l),h=o.valueOrDefault(s.stepSize,s.unitStepSize),p="week"===l&&s.isoWeekday,m=a.ticks.major.enabled,y=d[l],g=r(e),A=r(t),b=[];for(h||(h=function(e,t,n,r){var a,o,i,s=t-e,l=d[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/(r*u));for(a=0,o=c.length;a<o&&(i=c[a],!(Math.ceil(s/(u*i))<=r));++a);return i}(e,t,l,n)),p&&(g=g.isoWeekday(p),A=A.isoWeekday(p)),g=g.startOf(p?"day":l),(A=A.startOf(p?"day":l))<t&&A.add(1,l),i=r(g),m&&f&&!p&&!s.round&&(i.startOf(f),i.add(~~((g-i)/(y.size*h))*h,l));i<A;i.add(h,l))b.push(+i);return b.push(+i),b}e.exports=function(){var e=i.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),i.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),i.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),i.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,a,i,s,d=this,c=d.chart,p=d.options.time,m=p.unit||"day",v=u,g=l,A=[],b=[],M=[];for(e=0,n=c.data.labels.length;e<n;++e)M.push(y(c.data.labels[e],d));for(e=0,n=(c.data.datasets||[]).length;e<n;++e)if(c.isDatasetVisible(e))if(i=c.data.datasets[e].data,o.isObject(i[0]))for(b[e]=[],t=0,a=i.length;t<a;++t)s=y(i[t],d),A.push(s),b[e][t]=s;else A.push.apply(A,M),b[e]=M.slice(0);else b[e]=[];M.length&&(M=h(M).sort(f),v=Math.min(v,M[0]),g=Math.max(g,M[M.length-1])),A.length&&(A=h(A).sort(f),v=Math.min(v,A[0]),g=Math.max(g,A[A.length-1])),v=y(p.min,d)||v,g=y(p.max,d)||g,v=v===u?+r().startOf(m):v,g=g===l?+r().endOf(m)+1:g,d.min=Math.min(v,g),d.max=Math.max(v+1,g),d._horizontal=d.isHorizontal(),d._table=[],d._timestamps={data:A,datasets:b,labels:M}},buildTicks:function(){var e,t,n,a=this,o=a.min,i=a.max,s=a.options,l=s.time,u=[],f=[];switch(s.ticks.source){case"data":u=a._timestamps.data;break;case"labels":u=a._timestamps.labels;break;case"auto":default:u=g(o,i,a.getLabelCapacity(o),s)}for("ticks"===s.bounds&&u.length&&(o=u[0],i=u[u.length-1]),o=y(l.min,a)||o,i=y(l.max,a)||i,e=0,t=u.length;e<t;++e)(n=u[e])>=o&&n<=i&&f.push(n);return a.min=o,a.max=i,a._unit=l.unit||function(e,t,n,a){var o,i,s=r.duration(r(a).diff(r(n)));for(o=c.length-1;o>=c.indexOf(t);o--)if(i=c[o],d[i].common&&s.as(i)>=e.length)return i;return c[t?c.indexOf(t):0]}(f,l.minUnit,a.min,a.max),a._majorUnit=v(a._unit),a._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,o,i,s,l,u=[],d=[t];for(a=0,o=e.length;a<o;++a)(s=e[a])>t&&s<n&&d.push(s);for(d.push(n),a=0,o=d.length;a<o;++a)l=d[a+1],i=d[a-1],s=d[a],void 0!==i&&void 0!==l&&Math.round((l+i)/2)===s||u.push({time:s,pos:a/(o-1)});return u}(a._timestamps.data,o,i,s.distribution),a._offsets=function(e,t,n,r,a){var o,i,s=0,l=0;return a.offset&&t.length&&(a.time.min||(o=t.length>1?t[1]:r,i=t[0],s=(p(e,"time",o,"pos")-p(e,"time",i,"pos"))/2),a.time.max||(o=t[t.length-1],i=t.length>1?t[t.length-2]:n,l=(p(e,"time",o,"pos")-p(e,"time",i,"pos"))/2)),{left:s,right:l}}(a._table,f,o,i,s),a._labelFormat=function(e,t){var n,r,a,o=e.length;for(n=0;n<o;n++){if(0!==(r=m(e[n],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===r.second()&&0===r.minute()&&0===r.hour()||(a=!0)}return a?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(a._timestamps.data,l),function(e,t){var n,a,o,i,s=[];for(n=0,a=e.length;n<a;++n)o=e[n],i=!!t&&o===+r(o).startOf(t),s.push({value:o,major:i});return s}(f,a._majorUnit)},getLabelForIndex:function(e,t){var n=this.chart.data,r=this.options.time,a=n.labels&&e<n.labels.length?n.labels[e]:"",i=n.datasets[t].data[e];return o.isObject(i)&&(a=this.getRightValue(i)),r.tooltipFormat?m(a,r).format(r.tooltipFormat):"string"==typeof a?a:m(a,r).format(this._labelFormat)},tickFormatFunction:function(e,t,n,r){var a=this.options,i=e.valueOf(),s=a.time.displayFormats,l=s[this._unit],u=this._majorUnit,d=s[u],c=e.clone().startOf(u).valueOf(),f=a.ticks.major,h=f.enabled&&u&&d&&i===c,p=e.format(r||(h?d:l)),m=h?f:a.ticks.minor,y=o.valueOrDefault(m.callback,m.userCallback);return y?y(p,t,n):p},convertTicksToLabels:function(e){var t,n,a=[];for(t=0,n=e.length;t<n;++t)a.push(this.tickFormatFunction(r(e[t].value),t,e));return a},getPixelForOffset:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,a=p(t._table,"time",e,"pos");return r+n*(t._offsets.left+a)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=y(e,this)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,a=t._horizontal?t.left:t.top,o=(n?(e-a)/n:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,i=p(t._table,"pos",o,"time");return r(i)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=o.toRadians(t.maxRotation),i=Math.cos(r),s=Math.sin(r);return n*i+o.valueOrDefault(t.fontSize,a.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,a=t.tickFormatFunction(r(e),0,[],n),o=t.getLabelWidth(a),i=t.isHorizontal()?t.width:t.height,s=Math.floor(i/o);return s>0?s:1}});s.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},function(e,t,n){var r={"./af":141,"./af.js":141,"./ar":142,"./ar-dz":143,"./ar-dz.js":143,"./ar-kw":144,"./ar-kw.js":144,"./ar-ly":145,"./ar-ly.js":145,"./ar-ma":146,"./ar-ma.js":146,"./ar-sa":147,"./ar-sa.js":147,"./ar-tn":148,"./ar-tn.js":148,"./ar.js":142,"./az":149,"./az.js":149,"./be":150,"./be.js":150,"./bg":151,"./bg.js":151,"./bm":152,"./bm.js":152,"./bn":153,"./bn.js":153,"./bo":154,"./bo.js":154,"./br":155,"./br.js":155,"./bs":156,"./bs.js":156,"./ca":157,"./ca.js":157,"./cs":158,"./cs.js":158,"./cv":159,"./cv.js":159,"./cy":160,"./cy.js":160,"./da":161,"./da.js":161,"./de":162,"./de-at":163,"./de-at.js":163,"./de-ch":164,"./de-ch.js":164,"./de.js":162,"./dv":165,"./dv.js":165,"./el":166,"./el.js":166,"./en-SG":167,"./en-SG.js":167,"./en-au":168,"./en-au.js":168,"./en-ca":169,"./en-ca.js":169,"./en-gb":170,"./en-gb.js":170,"./en-ie":171,"./en-ie.js":171,"./en-il":172,"./en-il.js":172,"./en-nz":173,"./en-nz.js":173,"./eo":174,"./eo.js":174,"./es":175,"./es-do":176,"./es-do.js":176,"./es-us":177,"./es-us.js":177,"./es.js":175,"./et":178,"./et.js":178,"./eu":179,"./eu.js":179,"./fa":180,"./fa.js":180,"./fi":181,"./fi.js":181,"./fo":182,"./fo.js":182,"./fr":183,"./fr-ca":184,"./fr-ca.js":184,"./fr-ch":185,"./fr-ch.js":185,"./fr.js":183,"./fy":186,"./fy.js":186,"./ga":187,"./ga.js":187,"./gd":188,"./gd.js":188,"./gl":189,"./gl.js":189,"./gom-latn":190,"./gom-latn.js":190,"./gu":191,"./gu.js":191,"./he":192,"./he.js":192,"./hi":193,"./hi.js":193,"./hr":194,"./hr.js":194,"./hu":195,"./hu.js":195,"./hy-am":196,"./hy-am.js":196,"./id":197,"./id.js":197,"./is":198,"./is.js":198,"./it":199,"./it-ch":200,"./it-ch.js":200,"./it.js":199,"./ja":201,"./ja.js":201,"./jv":202,"./jv.js":202,"./ka":203,"./ka.js":203,"./kk":204,"./kk.js":204,"./km":205,"./km.js":205,"./kn":206,"./kn.js":206,"./ko":207,"./ko.js":207,"./ku":208,"./ku.js":208,"./ky":209,"./ky.js":209,"./lb":210,"./lb.js":210,"./lo":211,"./lo.js":211,"./lt":212,"./lt.js":212,"./lv":213,"./lv.js":213,"./me":214,"./me.js":214,"./mi":215,"./mi.js":215,"./mk":216,"./mk.js":216,"./ml":217,"./ml.js":217,"./mn":218,"./mn.js":218,"./mr":219,"./mr.js":219,"./ms":220,"./ms-my":221,"./ms-my.js":221,"./ms.js":220,"./mt":222,"./mt.js":222,"./my":223,"./my.js":223,"./nb":224,"./nb.js":224,"./ne":225,"./ne.js":225,"./nl":226,"./nl-be":227,"./nl-be.js":227,"./nl.js":226,"./nn":228,"./nn.js":228,"./pa-in":229,"./pa-in.js":229,"./pl":230,"./pl.js":230,"./pt":231,"./pt-br":232,"./pt-br.js":232,"./pt.js":231,"./ro":233,"./ro.js":233,"./ru":234,"./ru.js":234,"./sd":235,"./sd.js":235,"./se":236,"./se.js":236,"./si":237,"./si.js":237,"./sk":238,"./sk.js":238,"./sl":239,"./sl.js":239,"./sq":240,"./sq.js":240,"./sr":241,"./sr-cyrl":242,"./sr-cyrl.js":242,"./sr.js":241,"./ss":243,"./ss.js":243,"./sv":244,"./sv.js":244,"./sw":245,"./sw.js":245,"./ta":246,"./ta.js":246,"./te":247,"./te.js":247,"./tet":248,"./tet.js":248,"./tg":249,"./tg.js":249,"./th":250,"./th.js":250,"./tl-ph":251,"./tl-ph.js":251,"./tlh":252,"./tlh.js":252,"./tr":253,"./tr.js":253,"./tzl":254,"./tzl.js":254,"./tzm":255,"./tzm-latn":256,"./tzm-latn.js":256,"./tzm.js":255,"./ug-cn":257,"./ug-cn.js":257,"./uk":258,"./uk.js":258,"./ur":259,"./ur.js":259,"./uz":260,"./uz-latn":261,"./uz-latn.js":261,"./uz.js":260,"./vi":262,"./vi.js":262,"./x-pseudo":263,"./x-pseudo.js":263,"./yo":264,"./yo.js":264,"./zh-cn":265,"./zh-cn.js":265,"./zh-hk":266,"./zh-hk.js":266,"./zh-tw":267,"./zh-tw.js":267};function a(e){var t=o(e);return n(t)}function o(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=518},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.chart,i=r.getMeta(),s=r.getDataset(),l=e.custom||{},u=a.options.elements.rectangle;e._xScale=r.getScaleForId(i.xAxisID),e._yScale=r.getScaleForId(i.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={datasetLabel:s.label,label:a.data.labels[t],borderSkipped:l.borderSkipped?l.borderSkipped:u.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:o.valueAtIndexOrDefault(s.backgroundColor,t,u.backgroundColor),borderColor:l.borderColor?l.borderColor:o.valueAtIndexOrDefault(s.borderColor,t,u.borderColor),borderWidth:l.borderWidth?l.borderWidth:o.valueAtIndexOrDefault(s.borderWidth,t,u.borderWidth)},r.updateElementGeometry(e,t,n),e.pivot()},updateElementGeometry:function(e,t,n){var r=this,a=e._model,o=r.getValueScale(),i=o.getBasePixel(),s=o.isHorizontal(),l=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t),d=r.calculateBarIndexPixels(r.index,t,l);a.horizontal=s,a.base=n?i:u.base,a.x=s?n?i:u.head:d.center,a.y=s?d.center:n?i:u.head,a.height=s?d.size:void 0,a.width=s?void 0:d.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,n,r=this.chart,a=this.getIndexScale().options.stacked,o=void 0===e?r.data.datasets.length:e+1,i=[];for(t=0;t<o;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===a||!0===a&&-1===i.indexOf(n.stack)||void 0===a&&(void 0===n.stack||-1===i.indexOf(n.stack)))&&i.push(n.stack);return i},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this.getIndexScale(),r=this.getStackCount(),a=this.index,i=n.isHorizontal(),s=i?n.left:n.top,l=s+(i?n.width:n.height),u=[];for(e=0,t=this.getMeta().data.length;e<t;++e)u.push(n.getPixelForValue(null,e,a));return{min:o.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,a,o,i=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(a=1,o=t.length;a<o;++a)i=Math.min(i,t[a]-t[a-1]);for(a=0,o=s.length;a<o;++a)r=e.getPixelForTick(a),i=a>0?Math.min(i,r-n):i,n=r;return i}(n,u):-1,pixels:u,start:s,end:l,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,a,o,i,s,l=this.chart,u=this.getMeta(),d=this.getValueScale(),c=l.data.datasets,f=d.getRightValue(c[e].data[t]),h=d.options.stacked,p=u.stack,m=0;if(h||void 0===h&&void 0!==p)for(n=0;n<e;++n)(r=l.getDatasetMeta(n)).bar&&r.stack===p&&r.controller.getValueScaleId()===d.id&&l.isDatasetVisible(n)&&(a=d.getRightValue(c[n].data[t]),(f<0&&a<0||f>=0&&a>0)&&(m+=a));return o=d.getPixelForValue(m),{size:s=((i=d.getPixelForValue(m+f))-o)/2,base:o,head:i,center:i+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,a="flex"===r.barThickness?function(e,t,n){var r,a=t.pixels,o=a[e],i=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,l=n.categoryPercentage;return null===i&&(i=o-(null===s?t.end-o:s-o)),null===s&&(s=o+o-i),r=o-(o-i)/2*l,{chunk:(s-i)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,a,i=n.barThickness,s=t.stackCount,l=t.pixels[e];return o.isNullOrUndef(i)?(r=t.min*n.categoryPercentage,a=n.barPercentage):(r=i*s,a=1),{chunk:r/s,ratio:a,start:l-r/2}}(t,n,r),i=this.getStackIndex(e,this.getMeta().stack),s=a.start+a.chunk*i+a.chunk/2,l=Math.min(o.valueOrDefault(r.maxBarThickness,1/0),a.chunk*a.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this.chart,t=this.getValueScale(),n=this.getMeta().data,r=this.getDataset(),a=n.length,i=0;for(o.canvas.clipArea(e.ctx,e.chartArea);i<a;++i)isNaN(t.getRightValue(r.data[i]))||n[i].draw();o.canvas.unclipArea(e.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:a.Point,update:function(e){var t=this,n=t.getMeta().data;o.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=e.custom||{},i=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),l=r._resolveElementOptions(e,t),u=r.getDataset().data[t],d=r.index,c=n?i.getPixelForDecimal(.5):i.getPixelForValue("object"==typeof u?u:NaN,t,d),f=n?s.getBasePixel():s.getPixelForValue(u,t,d);e._xScale=i,e._yScale=s,e._options=l,e._datasetIndex=d,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(c)||isNaN(f),x:c,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=o.valueOrDefault(n.hoverBackgroundColor,o.getHoverColor(n.backgroundColor)),t.borderColor=o.valueOrDefault(n.hoverBorderColor,o.getHoverColor(n.borderColor)),t.borderWidth=o.valueOrDefault(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,a,i=this.chart,s=i.data.datasets[this.index],l=e.custom||{},u=i.options.elements.point,d=o.options.resolve,c=s.data[t],f={},h={chart:i,dataIndex:t,dataset:s,datasetIndex:this.index},p=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=p.length;n<r;++n)f[a=p[n]]=d([l[a],s[a],u[a]],h,t);return f.radius=d([l.radius,c?c.r:void 0,s.radius,u.radius],h,t),f}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),i=t.datasets[0],s=a.data[r],l=s&&s.custom||{},u=o.valueAtIndexOrDefault,d=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(i.backgroundColor,r,d.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(i.borderColor,r,d.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(i.borderWidth,r,d.borderWidth),hidden:isNaN(i.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o]&&(a.data[o].hidden=!a.data[o].hidden);i.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return o.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}}),r._set("pie",o.clone(r.doughnut)),r._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:o.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t=this,n=t.chart,r=n.chartArea,a=n.options,i=a.elements.arc,s=r.right-r.left-i.borderWidth,l=r.bottom-r.top-i.borderWidth,u=Math.min(s,l),d={x:0,y:0},c=t.getMeta(),f=a.cutoutPercentage,h=a.circumference;if(h<2*Math.PI){var p=a.rotation%(2*Math.PI),m=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+h,y={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},g=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,A=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,b=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,M=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,k=f/100,x={x:b?-1:Math.min(y.x*(y.x<0?1:k),v.x*(v.x<0?1:k)),y:M?-1:Math.min(y.y*(y.y<0?1:k),v.y*(v.y<0?1:k))},w={x:g?1:Math.max(y.x*(y.x>0?1:k),v.x*(v.x>0?1:k)),y:A?1:Math.max(y.y*(y.y>0?1:k),v.y*(v.y>0?1:k))},T={width:.5*(w.x-x.x),height:.5*(w.y-x.y)};u=Math.min(s/T.width,l/T.height),d={x:-.5*(w.x+x.x),y:-.5*(w.y+x.y)}}n.borderWidth=t.getMaxBorderWidth(c.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(f?n.outerRadius/100*f:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=d.x*n.outerRadius,n.offsetY=d.y*n.outerRadius,c.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),o.each(c.data,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,a=r.chart,i=a.chartArea,s=a.options,l=s.animation,u=(i.left+i.right)/2,d=(i.top+i.bottom)/2,c=s.rotation,f=s.rotation,h=r.getDataset(),p=n&&l.animateRotate?0:e.hidden?0:r.calculateCircumference(h.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:r.innerRadius,y=n&&l.animateScale?0:r.outerRadius,v=o.valueAtIndexOrDefault;o.extend(e,{_datasetIndex:r.index,_index:t,_model:{x:u+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:f,circumference:p,outerRadius:y,innerRadius:m,label:v(h.label,t,a.data.labels[t])}});var g=e._model,A=e.custom||{},b=o.valueAtIndexOrDefault,M=this.chart.options.elements.arc;g.backgroundColor=A.backgroundColor?A.backgroundColor:b(h.backgroundColor,t,M.backgroundColor),g.borderColor=A.borderColor?A.borderColor:b(h.borderColor,t,M.borderColor),g.borderWidth=A.borderWidth?A.borderWidth:b(h.borderWidth,t,M.borderWidth),n&&l.animateRotate||(g.startAngle=0===t?s.rotation:r.getMeta().data[t-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return o.each(n.data,function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,r=0,a=this.index,o=e.length,i=0;i<o;i++)t=e[i]._model?e[i]._model.borderWidth:0,r=(n=e[i]._chart?e[i]._chart.config.data.datasets[a].hoverBorderWidth:0)>(r=t>r?t:r)?n:r;return r}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return o.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(e){var n,r,a,i=this,s=i.getMeta(),l=s.dataset,u=s.data||[],d=i.chart.options,c=d.elements.line,f=i.getScaleForId(s.yAxisID),h=i.getDataset(),p=t(h,d);for(p&&(a=l.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),l._scale=f,l._datasetIndex=i.index,l._children=u,l._model={spanGaps:h.spanGaps?h.spanGaps:d.spanGaps,tension:a.tension?a.tension:o.valueOrDefault(h.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:h.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:h.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:h.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:o.valueOrDefault(h.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:o.valueOrDefault(h.cubicInterpolationMode,c.cubicInterpolationMode)},l.pivot()),n=0,r=u.length;n<r;++n)i.updateElement(u[n],n,e);for(p&&0!==l._model.tension&&i.updateBezierControlPoints(),n=0,r=u.length;n<r;++n)u[n].pivot()},getPointBackgroundColor:function(e,t){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),a=e.custom||{};return a.backgroundColor?n=a.backgroundColor:r.pointBackgroundColor?n=o.valueAtIndexOrDefault(r.pointBackgroundColor,t,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(e,t){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),a=e.custom||{};return a.borderColor?n=a.borderColor:r.pointBorderColor?n=o.valueAtIndexOrDefault(r.pointBorderColor,t,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(e,t){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),a=e.custom||{};return isNaN(a.borderWidth)?!isNaN(r.pointBorderWidth)||o.isArray(r.pointBorderWidth)?n=o.valueAtIndexOrDefault(r.pointBorderWidth,t,n):isNaN(r.borderWidth)||(n=r.borderWidth):n=a.borderWidth,n},getPointRotation:function(e,t){var n=this.chart.options.elements.point.rotation,r=this.getDataset(),a=e.custom||{};return isNaN(a.rotation)?isNaN(r.pointRotation)&&!o.isArray(r.pointRotation)||(n=o.valueAtIndexOrDefault(r.pointRotation,t,n)):n=a.rotation,n},updateElement:function(e,t,n){var r,a,i=this,s=i.getMeta(),l=e.custom||{},u=i.getDataset(),d=i.index,c=u.data[t],f=i.getScaleForId(s.yAxisID),h=i.getScaleForId(s.xAxisID),p=i.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),r=h.getPixelForValue("object"==typeof c?c:NaN,t,d),a=n?f.getBasePixel():i.calculatePointY(c,t,d),e._xScale=h,e._yScale=f,e._datasetIndex=d,e._index=t,e._model={x:r,y:a,skip:l.skip||isNaN(r)||isNaN(a),radius:l.radius||o.valueAtIndexOrDefault(u.pointRadius,t,p.radius),pointStyle:l.pointStyle||o.valueAtIndexOrDefault(u.pointStyle,t,p.pointStyle),rotation:i.getPointRotation(e,t),backgroundColor:i.getPointBackgroundColor(e,t),borderColor:i.getPointBorderColor(e,t),borderWidth:i.getPointBorderWidth(e,t),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||o.valueAtIndexOrDefault(u.pointHitRadius,t,p.hitRadius)}},calculatePointY:function(e,t,n){var r,a,o,i=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,d=0;if(l.options.stacked){for(r=0;r<n;r++)if(a=i.data.datasets[r],"line"===(o=i.getDatasetMeta(r)).type&&o.yAxisID===l.id&&i.isDatasetVisible(r)){var c=Number(l.getRightValue(a.data[t]));c<0?d+=c||0:u+=c||0}var f=Number(l.getRightValue(e));return f<0?l.getPixelForValue(d+f):l.getPixelForValue(u+f)}return l.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this.getMeta(),i=this.chart.chartArea,s=a.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(a.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)o.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,r=o.splineCurve(o.previousItem(s,e)._model,n,o.nextItem(s,e)._model,a.dataset._model.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)(n=s[e]._model).controlPointPreviousX=l(n.controlPointPreviousX,i.left,i.right),n.controlPointPreviousY=l(n.controlPointPreviousY,i.top,i.bottom),n.controlPointNextX=l(n.controlPointNextX,i.left,i.right),n.controlPointNextY=l(n.controlPointNextY,i.top,i.bottom)},draw:function(){var e,n=this.chart,r=this.getMeta(),a=r.data||[],i=n.chartArea,s=a.length,l=0;for(t(this.getDataset(),n.options)&&(e=(r.dataset._model.borderWidth||0)/2,o.canvas.clipArea(n.ctx,{left:i.left,right:i.right,top:i.top-e,bottom:i.bottom+e}),r.dataset.draw(),o.canvas.unclipArea(n.ctx));l<s;++l)a[l].draw(i)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth,radius:a.radius},a.backgroundColor=r.hoverBackgroundColor||o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,o.getHoverColor(a.backgroundColor)),a.borderColor=r.hoverBorderColor||o.valueAtIndexOrDefault(t.pointHoverBorderColor,n,o.getHoverColor(a.borderColor)),a.borderWidth=r.hoverBorderWidth||o.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,a.borderWidth),a.radius=r.hoverRadius||o.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius)}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),i=t.datasets[0],s=a.data[r].custom||{},l=o.valueAtIndexOrDefault,u=e.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(i.backgroundColor,r,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(i.borderColor,r,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(i.borderWidth,r,u.borderWidth),hidden:isNaN(i.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:o.noop,update:function(e){var t,n,r,a=this,i=a.getDataset(),s=a.getMeta(),l=a.chart.options.startAngle||0,u=a._starts=[],d=a._angles=[];for(a._updateRadius(),s.count=a.countVisibleElements(),t=0,n=i.data.length;t<n;t++)u[t]=l,r=a._computeAngle(t),d[t]=r,l+=r;o.each(s.data,function(t,n){a.updateElement(t,n,e)})},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=r.elements.arc,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max((o-a.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,i=r.getDataset(),s=a.options,l=s.animation,u=a.scale,d=a.data.labels,c=u.xCenter,f=u.yCenter,h=s.startAngle,p=e.hidden?0:u.getDistanceFromCenterForValue(i.data[t]),m=r._starts[t],y=m+(e.hidden?0:r._angles[t]),v=l.animateScale?0:u.getDistanceFromCenterForValue(i.data[t]);o.extend(e,{_datasetIndex:r.index,_index:t,_scale:u,_model:{x:c,y:f,innerRadius:0,outerRadius:n?v:p,startAngle:n&&l.animateRotate?h:m,endAngle:n&&l.animateRotate?h:y,label:o.valueAtIndexOrDefault(d,t,d[t])}});var g=this.chart.options.elements.arc,A=e.custom||{},b=o.valueAtIndexOrDefault,M=e._model;M.backgroundColor=A.backgroundColor?A.backgroundColor:b(i.backgroundColor,t,g.backgroundColor),M.borderColor=A.borderColor?A.borderColor:b(i.borderColor,t,g.borderColor),M.borderWidth=A.borderWidth?A.borderWidth:b(i.borderWidth,t,g.borderWidth),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return o.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var i={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return o.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/n],i,e)}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:o.noop,update:function(e){var t=this,n=t.getMeta(),r=n.dataset,a=n.data,i=r.custom||{},s=t.getDataset(),l=t.chart.options.elements.line,u=t.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),o.extend(n.dataset,{_datasetIndex:t.index,_scale:u,_children:a,_loop:!0,_model:{tension:i.tension?i.tension:o.valueOrDefault(s.lineTension,l.tension),backgroundColor:i.backgroundColor?i.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:s.borderWidth||l.borderWidth,borderColor:i.borderColor?i.borderColor:s.borderColor||l.borderColor,fill:i.fill?i.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:i.borderDash?i.borderDash:s.borderDash||l.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),o.each(a,function(n,r){t.updateElement(n,r,e)},t),t.updateBezierControlPoints()},updateElement:function(e,t,n){var r=this,a=e.custom||{},i=r.getDataset(),s=r.chart.scale,l=r.chart.options.elements.point,u=s.getPointPositionForValue(t,i.data[t]);void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),void 0!==i.hitRadius&&void 0===i.pointHitRadius&&(i.pointHitRadius=i.hitRadius),o.extend(e,{_datasetIndex:r.index,_index:t,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:o.valueOrDefault(i.lineTension,r.chart.options.elements.line.tension),radius:a.radius?a.radius:o.valueAtIndexOrDefault(i.pointRadius,t,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:o.valueAtIndexOrDefault(i.pointBackgroundColor,t,l.backgroundColor),borderColor:a.borderColor?a.borderColor:o.valueAtIndexOrDefault(i.pointBorderColor,t,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:o.valueAtIndexOrDefault(i.pointBorderWidth,t,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:o.valueAtIndexOrDefault(i.pointStyle,t,l.pointStyle),rotation:a.rotation?a.rotation:o.valueAtIndexOrDefault(i.pointRotation,t,l.rotation),hitRadius:a.hitRadius?a.hitRadius:o.valueAtIndexOrDefault(i.pointHitRadius,t,l.hitRadius)}}),e._model.skip=a.skip?a.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();o.each(t.data,function(n,r){var a=n._model,i=o.splineCurve(o.previousItem(t.data,r,!0)._model,a,o.nextItem(t.data,r,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(i.previous.x,e.right),e.left),a.controlPointPreviousY=Math.max(Math.min(i.previous.y,e.bottom),e.top),a.controlPointNextX=Math.max(Math.min(i.next.x,e.right),e.left),a.controlPointNextY=Math.max(Math.min(i.next.y,e.bottom),e.top),n.pivot()})},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},r=e._index,a=e._model;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth,radius:a.radius},a.radius=n.hoverRadius?n.hoverRadius:o.valueAtIndexOrDefault(t.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,r,o.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:o.valueAtIndexOrDefault(t.pointHoverBorderColor,r,o.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o.valueAtIndexOrDefault(t.pointHoverBorderWidth,r,a.borderWidth)}})}},function(e,t,n){"use strict";n(17)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},function(e,t,n){"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Radar=function(t,n){return n.type="radar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},function(e,t,n){"use strict";e.exports={},e.exports.filler=n(534),e.exports.legend=n(535),e.exports.title=n(536)},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("global",{plugins:{filler:{propagate:!0}}});var i={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=a.length||0;return o?function(e,t){return t<o&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function s(e,t,n){var r,a=e._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function l(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if("number"==typeof o&&isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function u(e,t,n){var r,a=e[t].fill,o=[t];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;o.push(a),a=r.fill}return!1}function d(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),i[n](e))}function c(e){return e&&!e.skip}function f(e,t,n,r,a){var i;if(r&&a){for(e.moveTo(t[0].x,t[0].y),i=1;i<r;++i)o.canvas.lineTo(e,t[i-1],t[i]);for(e.lineTo(n[a-1].x,n[a-1].y),i=a-1;i>0;--i)o.canvas.lineTo(e,n[i],n[i-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,o,i,c=(e.data.datasets||[]).length,f=t.propagate,h=[];for(r=0;r<c;++r)i=null,(o=(n=e.getDatasetMeta(r)).dataset)&&o._model&&o instanceof a.Line&&(i={visible:e.isDatasetVisible(r),fill:s(o,r,c),chart:e,el:o}),n.$filler=i,h.push(i);for(r=0;r<c;++r)(i=h[r])&&(i.fill=u(h,r,f),i.boundary=l(i),i.mapper=d(i))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var a=e.ctx,i=n.el,s=i._view,l=i._children||[],u=n.mapper,d=s.backgroundColor||r.global.defaultColor;u&&d&&l.length&&(o.canvas.clipArea(a,e.chartArea),function(e,t,n,r,a,o){var i,s,l,u,d,h,p,m=t.length,y=r.spanGaps,v=[],g=[],A=0,b=0;for(e.beginPath(),i=0,s=m+!!o;i<s;++i)d=n(u=t[l=i%m]._view,l,r),h=c(u),p=c(d),h&&p?(A=v.push(u),b=g.push(d)):A&&b&&(y?(h&&v.push(u),p&&g.push(d)):(f(e,v,g,A,b),A=b=0,v=[],g=[]));f(e,v,g,A,b),e.closePath(),e.fillStyle=a,e.fill()}(a,l,u,s,d,i._loop),o.canvas.unclipArea(a))}}}},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=n(42),s=o.noop;function l(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}r._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return o.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:o.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var u=a.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var e=this,t=e.options.labels||{},n=o.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=e.options,n=t.labels,a=t.display,i=e.ctx,s=r.global,u=o.valueOrDefault,d=u(n.fontSize,s.defaultFontSize),c=u(n.fontStyle,s.defaultFontStyle),f=u(n.fontFamily,s.defaultFontFamily),h=o.fontString(d,c,f),p=e.legendHitBoxes=[],m=e.minSize,y=e.isHorizontal();if(y?(m.width=e.maxWidth,m.height=a?10:0):(m.width=a?10:0,m.height=e.maxHeight),a)if(i.font=h,y){var v=e.lineWidths=[0],g=e.legendItems.length?d+n.padding:0;i.textAlign="left",i.textBaseline="top",o.each(e.legendItems,function(t,r){var a=l(n,d)+d/2+i.measureText(t.text).width;v[v.length-1]+a+n.padding>=e.width&&(g+=d+n.padding,v[v.length]=e.left),p[r]={left:0,top:0,width:a,height:d},v[v.length-1]+=a+n.padding}),m.height+=g}else{var A=n.padding,b=e.columnWidths=[],M=n.padding,k=0,x=0,w=d+A;o.each(e.legendItems,function(e,t){var r=l(n,d)+d/2+i.measureText(e.text).width;x+w>m.height&&(M+=k+n.padding,b.push(k),k=0,x=0),k=Math.max(k,r),x+=w,p[t]={left:0,top:0,width:r,height:d}}),M+=k,b.push(k),m.width+=M}e.width=m.width,e.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,a=r.global,i=a.elements.line,s=e.width,u=e.lineWidths;if(t.display){var d,c=e.ctx,f=o.valueOrDefault,h=f(n.fontColor,a.defaultFontColor),p=f(n.fontSize,a.defaultFontSize),m=f(n.fontStyle,a.defaultFontStyle),y=f(n.fontFamily,a.defaultFontFamily),v=o.fontString(p,m,y);c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=h,c.fillStyle=h,c.font=v;var g=l(n,p),A=e.legendHitBoxes,b=e.isHorizontal();d=b?{x:e.left+(s-u[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var M=p+n.padding;o.each(e.legendItems,function(r,l){var h=c.measureText(r.text).width,m=g+p/2+h,y=d.x,v=d.y;b?y+m>=s&&(v=d.y+=M,d.line++,y=d.x=e.left+(s-u[d.line])/2):v+M>e.bottom&&(y=d.x=y+e.columnWidths[d.line]+n.padding,v=d.y=e.top+n.padding,d.line++),function(e,n,r){if(!(isNaN(g)||g<=0)){c.save(),c.fillStyle=f(r.fillStyle,a.defaultColor),c.lineCap=f(r.lineCap,i.borderCapStyle),c.lineDashOffset=f(r.lineDashOffset,i.borderDashOffset),c.lineJoin=f(r.lineJoin,i.borderJoinStyle),c.lineWidth=f(r.lineWidth,i.borderWidth),c.strokeStyle=f(r.strokeStyle,a.defaultColor);var s=0===f(r.lineWidth,i.borderWidth);if(c.setLineDash&&c.setLineDash(f(r.lineDash,i.borderDash)),t.labels&&t.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,d=e+u,h=n+u;o.canvas.drawPoint(c,r.pointStyle,l,d,h)}else s||c.strokeRect(e,n,g,p),c.fillRect(e,n,g,p);c.restore()}}(y,v,r),A[l].left=y,A[l].top=v,function(e,t,n,r){var a=p/2,o=g+a+e,i=t+a;c.fillText(n.text,o,i),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(o,i),c.lineTo(o+r,i),c.stroke())}(y,v,r,h),b?d.x+=m+n.padding:d.y+=M})}},handleEvent:function(e){var t=this,n=t.options,r="mouseup"===e.type?"click":e.type,a=!1;if("mousemove"===r){if(!n.onHover)return}else{if("click"!==r)return;if(!n.onClick)return}var o=e.x,i=e.y;if(o>=t.left&&o<=t.right&&i>=t.top&&i<=t.bottom)for(var s=t.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&i>=u.top&&i<=u.top+u.height){if("click"===r){n.onClick.call(t,e.native,t.legendItems[l]),a=!0;break}if("mousemove"===r){n.onHover.call(t,e.native,t.legendItems[l]),a=!0;break}}}return a}});function d(e,t){var n=new u({ctx:e.ctx,options:t,chart:e});i.configure(e,n,t),i.addBox(e,n),e.legend=n}e.exports={id:"legend",_element:u,beforeInit:function(e){var t=e.options.legend;t&&d(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(o.mergeIf(t,r.global.legend),n?(i.configure(e,n,t),n.options=t):d(e,t)):n&&(i.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=n(42),s=o.noop;r._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var l=a.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=o.valueOrDefault,n=e.options,a=n.display,i=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,l=o.isArray(n.text)?n.text.length:1,u=o.options.toLineHeight(n.lineHeight,i),d=a?l*u+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=d):(s.width=d,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:s,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=o.valueOrDefault,a=e.options,i=r.global;if(a.display){var s,l,u,d=n(a.fontSize,i.defaultFontSize),c=n(a.fontStyle,i.defaultFontStyle),f=n(a.fontFamily,i.defaultFontFamily),h=o.fontString(d,c,f),p=o.options.toLineHeight(a.lineHeight,d),m=p/2+a.padding,y=0,v=e.top,g=e.left,A=e.bottom,b=e.right;t.fillStyle=n(a.fontColor,i.defaultFontColor),t.font=h,e.isHorizontal()?(l=g+(b-g)/2,u=v+m,s=b-g):(l="left"===a.position?g+m:b-m,u=v+(A-v)/2,s=A-v,y=Math.PI*("left"===a.position?-.5:.5)),t.save(),t.translate(l,u),t.rotate(y),t.textAlign="center",t.textBaseline="middle";var M=a.text;if(o.isArray(M))for(var k=0,x=0;x<M.length;++x)t.fillText(M[x],0,k,s),k+=p;else t.fillText(M,0,0,s);t.restore()}}});function u(e,t){var n=new l({ctx:e.ctx,options:t,chart:e});i.configure(e,n,t),i.addBox(e,n),e.titleBlock=n}e.exports={id:"title",_element:l,beforeInit:function(e){var t=e.options.title;t&&u(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(o.mergeIf(t,r.global.title),n?(i.configure(e,n,t),n.options=t):u(e,t)):n&&(i.removeBox(e,n),delete e.titleBlock)}}},function(e,t,n){var r=n(268),a=n(273),o=n(571),i=n(575),s=n(593),l=n(24),u=n(275),d=n(277),c=1,f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,g){var A=l(e),b=l(t),M=A?h:s(e),k=b?h:s(t),x=(M=M==f?p:M)==p,w=(k=k==f?p:k)==p,T=M==k;if(T&&u(e)){if(!u(t))return!1;A=!0,x=!1}if(T&&!x)return g||(g=new r),A||d(e)?a(e,t,n,y,v,g):o(e,t,M,n,y,v,g);if(!(n&c)){var L=x&&m.call(e,"__wrapped__"),S=w&&m.call(t,"__wrapped__");if(L||S){var D=L?e.value():e,Y=S?t.value():t;return g||(g=new r),v(D,Y,n,y,g)}}return!!T&&(g||(g=new r),i(e,t,n,y,v,g))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(58),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(58);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(58);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(58);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(57);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(57),a=n(86),o=n(87),i=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!a||s.length<i-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(270),a=n(551),o=n(60),i=n(272),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,f=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?f:s).test(i(e))}},function(e,t,n){var r=n(59),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,a=n(552),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(23)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(555),a=n(57),o=n(86);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},function(e,t,n){var r=n(556),a=n(557),o=n(558),i=n(559),s=n(560);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(61);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(61),a="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(61),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(61),a="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?a:t,this}},function(e,t,n){var r=n(62);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(62);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(62);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(62);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(87),a=n(567),o=n(568);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(59),a=n(572),o=n(269),i=n(273),s=n(573),l=n(574),u=1,d=2,c="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",y="[object RegExp]",v="[object Set]",g="[object String]",A="[object Symbol]",b="[object ArrayBuffer]",M="[object DataView]",k=r?r.prototype:void 0,x=k?k.valueOf:void 0;e.exports=function(e,t,n,r,k,w,T){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!w(new a(e),new a(t)));case c:case f:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case g:return e==t+"";case p:var L=s;case v:var S=r&u;if(L||(L=l),e.size!=t.size&&!S)return!1;var D=T.get(e);if(D)return D==t;r|=d,T.set(e,t);var Y=i(L(e),L(t),r,k,w,T);return T.delete(e),Y;case A:if(x)return x.call(e)==x.call(t)}return!1}},function(e,t,n){var r=n(23).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(576),a=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,l){var u=n&a,d=r(e),c=d.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var h=d[f];if(!(u?h in t:o.call(t,h)))return!1}var p=l.get(e);if(p&&l.get(t))return p==t;var m=!0;l.set(e,t),l.set(t,e);for(var y=u;++f<c;){var v=e[h=d[f]],g=t[h];if(i)var A=u?i(g,v,h,t,e,l):i(v,g,h,e,t,l);if(!(void 0===A?v===g||s(v,g,n,i,l):A)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var b=e.constructor,M=t.constructor;b!=M&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M)&&(m=!1)}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(577),a=n(579),o=n(63);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(578),a=n(24);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(580),a=n(581),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return o.call(e,t)}))}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(583),a=n(274),o=n(24),i=n(275),s=n(276),l=n(277),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&a(e),c=!n&&!d&&i(e),f=!n&&!d&&!c&&l(e),h=n||d||c||f,p=h?r(e.length,String):[],m=p.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||c&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||p.push(y);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(45),a=n(46),o="[object Arguments]";e.exports=function(e){return a(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(45),a=n(88),o=n(46),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(271),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(84)(e))},function(e,t,n){var r=n(590),a=n(591),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(592)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(594),a=n(86),o=n(595),i=n(596),s=n(597),l=n(45),u=n(272),d=u(r),c=u(a),f=u(o),h=u(i),p=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=m(new a)||o&&"[object Promise]"!=m(o.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return"[object DataView]";case c:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(28)(n(23),"DataView");e.exports=r},function(e,t,n){var r=n(28)(n(23),"Promise");e.exports=r},function(e,t,n){var r=n(28)(n(23),"Set");e.exports=r},function(e,t,n){var r=n(28)(n(23),"WeakMap");e.exports=r},function(e,t,n){var r=n(599)(n(618));e.exports=r},function(e,t,n){var r=n(90),a=n(89),o=n(63);e.exports=function(e){return function(t,n,i){var s=Object(t);if(!a(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,i);return u>-1?s[l?t[u]:u]:void 0}}},function(e,t,n){var r=n(601),a=n(602),o=n(279);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(268),a=n(85),o=1,i=2;e.exports=function(e,t,n,s){var l=n.length,u=l,d=!s;if(null==e)return!u;for(e=Object(e);l--;){var c=n[l];if(d&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++l<u;){var f=(c=n[l])[0],h=e[f],p=c[1];if(d&&c[2]){if(void 0===h&&!(f in e))return!1}else{var m=new r;if(s)var y=s(h,p,f,e,t,m);if(!(void 0===y?a(p,h,o|i,s,m):y))return!1}}return!0}},function(e,t,n){var r=n(278),a=n(63);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},function(e,t,n){var r=n(85),a=n(604),o=n(611),i=n(91),s=n(278),l=n(279),u=n(65),d=1,c=2;e.exports=function(e,t){return i(e)&&s(t)?l(u(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,d|c)}}},function(e,t,n){var r=n(280);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},function(e,t,n){var r=n(606),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)}),t});e.exports=i},function(e,t,n){var r=n(607),a=500;e.exports=function(e){var t=r(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(87),a="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(609);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(59),a=n(610),o=n(24),i=n(64),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(612),a=n(613);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(281),a=n(274),o=n(24),i=n(276),s=n(88),l=n(65);e.exports=function(e,t,n){for(var u=-1,d=(t=r(t,e)).length,c=!1;++u<d;){var f=l(t[u]);if(!(c=null!=e&&n(e,f)))break;e=e[f]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&s(d)&&i(f,d)&&(o(e)||a(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(616),a=n(617),o=n(91),i=n(65);e.exports=function(e){return o(e)?r(i(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(280);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(619),a=n(90),o=n(620),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=i(s+l,0)),r(e,a(t,3),l)}},function(e,t){e.exports=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(621);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(622),a=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===a||e===-a?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(60),a=n(64),o=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=l.test(e);return n||u.test(e)?d(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(624);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(28),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(626),a=n(627),o=n(90),i=n(24);e.exports=function(e,t){return function(n,s){var l=i(n)?r:a,u=t?t():{};return l(n,e,o(s,2),u)}}},function(e,t){e.exports=function(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}},function(e,t,n){var r=n(628);e.exports=function(e,t,n,a){return r(e,function(e,r,o){t(a,e,n(e),o)}),a}},function(e,t,n){var r=n(629),a=n(632)(r);e.exports=a},function(e,t,n){var r=n(630),a=n(63);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(631)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(89);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},function(e,t,n){var r=n(83),a=n(634),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var s=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var i=2*n;o[n]=parseInt(t.slice(i,i+2),16)}a&&(o[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=r[t[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(635),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var s=e[n];r(s)?t=a.call(t,o.call(s)):t.push(s)}return t};i.wrap=function(e){return function(){return e(i(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(283),a=n(637),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=a(e);Object.keys(t).forEach(function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},function(e,t,n){var r=n(283);function a(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),i=o.length,s=0;s<i;s++){var l=o[s],u=t[l];-1===u.distance&&(u.distance=t[a].distance+1,u.parent=a,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function i(e,t){for(var n=[t[e].parent,e],a=r[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),a=o(r[t[i].parent][i],a),i=t[i].parent;return a.conversion=n,a}e.exports=function(e){for(var t=a(e),n={},r=Object.keys(t),o=r.length,s=0;s<o;s++){var l=r[s];null!==t[l].parent&&(n[l]=i(l,t))}return n}},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(1));n(93);var s=o(n(121)),l=o(n(639)),u=o(n(282));function d(e,t){var n=[s.default[300],l.default[300]],r=u.default(n[t]).hsl().array();return r[2]=80,u.default.hsl(r).darken(Math.min(e/15,.5)).hex()}n(640),t.getNodeColor=d;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mouseDown=!1,t.mousePos={x:-1,y:-1},t}return a(t,e),t.getColor=function(e){return d(e.d[e.col],e.col)},t.prototype.render=function(){var e=this,n=this.props,r=n.data,a=n.onClickNode,o=n.onHoverNode,s=r.length<=20?{mr:"matrixRow",mc:"matrixCell",l:24}:{mr:"smallMatrixRow",mc:"smallMatrixCell",l:15},l=s.mr,u=s.mc,d=s.l;return i.default.createElement("div",{className:"matrix "+l+" "+u,onMouseDown:function(t){t.preventDefault(),e.mouseDown=!0,a(e.mousePos.y,e.mousePos.x)},onMouseUp:function(t){t.preventDefault(),e.mouseDown=!1},onMouseOver:function(t){var n=t.currentTarget.getBoundingClientRect(),r=Math.floor((t.clientX-n.left)/d),a=Math.floor((t.clientY-n.top)/d);console.log(a,r,e.mouseDown);var i=e.mousePos;e.mousePos={x:r,y:a},e.mouseDown&&(i.x===r&&i.y===a||o(a,r))}},r.map(function(e,n){return i.default.createElement("div",{key:n},e.map(function(e,n){return i.default.createElement("div",{key:n,style:{backgroundColor:t.getColor(e)}})}))}))},t}(i.default.Component);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};t.default=r},function(e,t,n){var r=n(641);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(95)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(94)(!1)).push([e.i,"div.matrix {\n display: inline-block;\n}\n\n.matrix div {\n -webkit-transition: background-color 0.3s ease-out;\n -moz-transition: background-color 0.3s ease-out;\n -o-transition: background-color 0.3s ease-out;\n transition: background-color 0.3s ease-out;\n user-select: none;\n}\n\n.matrixCell div div {\n height: 20px;\n width: 20px;\n margin: 2px;\n display: inline-block;\n cursor: pointer;\n}\n\n.smallMatrixCell div div {\n height: 15px;\n width: 15px;\n margin: 1px;\n display: inline-block;\n cursor: pointer;\n}\n\n.matrixRow div {\n height: 24px;\n text-align: center;\n}\n\n.smallMatrixRow div {\n height: 17px;\n text-align: center;\n}\n",""])},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1)),o=n(30),i=r(n(53)),s=r(n(133)),l=r(n(128)),u=r(n(643));t.default=o.withStyles(function(e){return{infoField:{fontWeight:e.typography.fontWeightMedium,paddingRight:14},body:{margin:"0 auto",width:800},pre:{fontFamily:"Monospace"}}})(function(e){var t=e.classes;return a.default.createElement("div",{className:t.body},a.default.createElement("article",null,a.default.createElement(i.default,{variant:"body1",paragraph:!0},"The MIT License (MIT)"),a.default.createElement(i.default,{variant:"body1",paragraph:!0},'Copyright 2019 Maofan "Ted" Yin'),a.default.createElement(i.default,{variant:"body1",paragraph:!0},'Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:'),a.default.createElement(i.default,{variant:"body1",paragraph:!0},"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."),a.default.createElement(i.default,{variant:"body1"},'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.')),a.default.createElement(i.default,{variant:"body1"},a.default.createElement(l.default,{disablePadding:!0},a.default.createElement(u.default,null,a.default.createElement("span",{className:t.infoField},"Email:"),"73d at tedyin dot com"),a.default.createElement(u.default,null,a.default.createElement("span",{className:t.infoField},"GitHub:"),a.default.createElement(s.default,{href:"https://github.com/Determinant/snow-bft-demo",target:"_blank",rel:"noopener"},"Determinant/snow-bft-demo")),a.default.createElement(u.default,null,a.default.createElement("span",{className:t.infoField},"Buy me a cup of coffee:"),a.default.createElement(l.default,{className:t.pre,disablePadding:!0},a.default.createElement(u.default,null,"Ether: 0xFEeed0f0BA87824819aabfa789f41FA2dd9ad81e"),a.default.createElement(u.default,null,"Bitcoin: 1CbVBB6Gv7WP4u39wsN416SJrjmvQDjggw"))))))})},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(644))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=r(n(40)),c=n(36),f=r(n(645)),h=function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:11,paddingBottom:11,"&$selected, &$selected:hover, &$selected:focus":{backgroundColor:e.palette.action.selected}},container:{position:"relative"},focusVisible:{},default:{},dense:{paddingTop:8,paddingBottom:8},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{opacity:.5},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&:focus":{backgroundColor:e.palette.action.hover}},secondaryAction:{paddingRight:32},selected:{}}};function p(e){var t=e.alignItems,n=e.button,r=e.children,u=e.classes,h=e.className,p=e.component,m=e.ContainerComponent,y=e.ContainerProps,v=(y=void 0===y?{}:y).className,g=(0,i.default)(y,["className"]),A=e.dense,b=e.disabled,M=e.disableGutters,k=e.divider,x=e.focusVisibleClassName,w=e.selected,T=(0,i.default)(e,["alignItems","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]);return s.default.createElement(f.default,{dense:A,alignItems:t},function(e){var i,f=e.dense,y=s.default.Children.toArray(r),A=y.some(function(e){return(0,c.isMuiElement)(e,["ListItemAvatar"])}),L=y.length&&(0,c.isMuiElement)(y[y.length-1],["ListItemSecondaryAction"]),S=(0,l.default)(u.root,u.default,(i={},(0,o.default)(i,u.dense,f||A),(0,o.default)(i,u.gutters,!M),(0,o.default)(i,u.divider,k),(0,o.default)(i,u.disabled,b),(0,o.default)(i,u.button,n),(0,o.default)(i,u.alignItemsFlexStart,"flex-start"===t),(0,o.default)(i,u.secondaryAction,L),(0,o.default)(i,u.selected,w),i),h),D=(0,a.default)({className:S,disabled:b},T),Y=p||"li";return n&&(D.component=p||"div",D.focusVisibleClassName=(0,l.default)(u.focusVisible,x),Y=d.default),L?(Y=D.component||p?Y:"div","li"===m&&("li"===Y?Y="div":"li"===D.component&&(D.component="div")),s.default.createElement(m,(0,a.default)({className:(0,l.default)(u.container,v)},g),s.default.createElement(Y,D,y),y.pop())):s.default.createElement(Y,D,y)})}t.styles=h,p.defaultProps={alignItems:"center",button:!1,ContainerComponent:"li",dense:!1,disabled:!1,disableGutters:!1,divider:!1,selected:!1};var m=(0,u.default)(h,{name:"MuiListItem"})(p);t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),o=(r(n(0)),r(n(129)));var i=function(e){var t=e.alignItems,n=e.children,r=e.dense;return a.default.createElement(o.default.Consumer,null,function(e){var i={dense:r||e.dense||!1,alignItems:t};return a.default.createElement(o.default.Provider,{value:i},n(i))})};t.default=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1));t.default=function(e){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 97.079997 37.00",version:"1.1",style:e.style},a.default.createElement("path",{d:"M 20.52,0 0,36.02 H 14.85 L 28.03,13.19 Z M 13.7,34.02 H 3.45 l 17.08,-29.98 5.21,9.14 z m 8.79,2 H 41.04 L 31.82,19.85 Z m 3.46,-2 5.86,-10.16 5.79,10.16 z M 76.57,0 56.05,36.02 H 70.9 L 84.08,13.19 Z M 69.74,34.02 H 59.49 L 76.57,4.04 81.78,13.18 Z M 87.87,19.84 78.53,36.01 h 18.55 z m -0.01,4.02 5.79,10.16 H 82 Z M 42.92,0 H 28.07 L 48.59,36.02 56.1,22.84 Z M 31.51,2 h 10.25 l 12.03,20.84 -5.21,9.14 z M 69.11,0 H 50.56 L 59.9,16.17 Z M 54.02,2 h 11.65 l -5.79,10.16 z",id:"path4",style:{fill:"#f5f1ee"}}))}},function(e,t,n){"use strict";n.r(t);var r=n(6),a=n.n(r),o=n(1),i=n.n(o),s=n(0),l=n.n(s),u=n(19),d=n.n(u),c=n(18),f=n.n(c);function h(e){return"/"===e.charAt(0)}function p(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],a=e&&h(e),o=t&&h(t),i=a||o;if(e&&h(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var l=r[r.length-1];s="."===l||".."===l||""===l}else s=!1;for(var u=0,d=r.length;d>=0;d--){var c=r[d];"."===c?p(r,d):".."===c?(p(r,d),u++):u&&(p(r,d),u--)}if(!i)for(;u--;u)r.unshift("..");!i||""===r[0]||r[0]&&h(r[0])||r.unshift("");var f=r.join("/");return s&&"/"!==f.substr(-1)&&(f+="/"),f},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var v=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":y(t);if(r!==(void 0===n?"undefined":y(n)))return!1;if("object"===r){var a=t.valueOf(),o=n.valueOf();if(a!==t||o!==n)return e(a,o);var i=Object.keys(t),s=Object.keys(n);return i.length===s.length&&i.every(function(r){return e(t[r],n[r])})}return!1},g=function(e){return"/"===e.charAt(0)?e:"/"+e},A=function(e){return"/"===e.charAt(0)?e.substr(1):e},b=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},M=function(e,t){return b(e,t)?e.substr(t.length):e},k=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},x=function(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a},w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e,t,n,r){var a=void 0;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(a=w({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=m(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a},L=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&v(e.state,t.state)},S=function(){var e=null,t=[];return{setPrompt:function(t){return d()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):(d()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}},D=!("undefined"==typeof window||!window.document||!window.document.createElement),Y=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},j=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},E=function(e,t){return t(window.confirm(e))},P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(){try{return window.history.state||{}}catch(e){return{}}},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f()(D,"Browser history needs a DOM");var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e.forceRefresh,i=void 0!==o&&o,s=e.getUserConfirmation,l=void 0===s?E:s,u=e.keyLength,c=void 0===u?6:u,h=e.basename?k(g(e.basename)):"",p=function(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return d()(!h||b(o,h),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+h+'".'),h&&(o=M(o,h)),T(o,r,n)},m=function(){return Math.random().toString(36).substr(2,c)},y=S(),v=function(e){O(U,e),U.length=n.length,y.notifyListeners(U.location,U.action)},A=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||H(p(e.state))},w=function(){H(p(C()))},L=!1,H=function(e){L?(L=!1,v()):y.confirmTransitionTo(e,"POP",l,function(t){t?v({action:"POP",location:e}):R(e)})},R=function(e){var t=U.location,n=F.indexOf(t.key);-1===n&&(n=0);var r=F.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(L=!0,z(a))},N=p(C()),F=[N.key],W=function(e){return h+x(e)},z=function(e){n.go(e)},I=0,V=function(e){1===(I+=e)?(Y(window,"popstate",A),a&&Y(window,"hashchange",w)):0===I&&(j(window,"popstate",A),a&&j(window,"hashchange",w))},B=!1,U={length:n.length,action:"POP",location:N,createHref:W,push:function(e,t){d()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=T(e,t,m(),U.location);y.confirmTransitionTo(a,"PUSH",l,function(e){if(e){var t=W(a),o=a.key,s=a.state;if(r)if(n.pushState({key:o,state:s},null,t),i)window.location.href=t;else{var l=F.indexOf(U.location.key),u=F.slice(0,-1===l?0:l+1);u.push(a.key),F=u,v({action:"PUSH",location:a})}else d()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}})},replace:function(e,t){d()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=T(e,t,m(),U.location);y.confirmTransitionTo(a,"REPLACE",l,function(e){if(e){var t=W(a),o=a.key,s=a.state;if(r)if(n.replaceState({key:o,state:s},null,t),i)window.location.replace(t);else{var l=F.indexOf(U.location.key);-1!==l&&(F[l]=a.key),v({action:"REPLACE",location:a})}else d()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}})},go:z,goBack:function(){return z(-1)},goForward:function(){return z(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=y.setPrompt(e);return B||(V(1),B=!0),function(){return B&&(B=!1,V(-1)),t()}},listen:function(e){var t=y.appendListener(e);return V(1),function(){V(-1),t()}}};return U},R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+A(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:A,decodePath:g},slash:{encodePath:g,decodePath:g}},F=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},W=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f()(D,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,a=void 0===r?E:r,o=e.hashType,i=void 0===o?"slash":o,s=e.basename?k(g(e.basename)):"",l=N[i],u=l.encodePath,c=l.decodePath,h=function(){var e=c(F());return d()(!s||b(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=M(e,s)),T(e)},p=S(),m=function(e){R(q,e),q.length=t.length,p.notifyListeners(q.location,q.action)},y=!1,v=null,A=function(){var e=F(),t=u(e);if(e!==t)W(t);else{var n=h(),r=q.location;if(!y&&L(r,n))return;if(v===x(n))return;v=null,w(n)}},w=function(e){y?(y=!1,m()):p.confirmTransitionTo(e,"POP",a,function(t){t?m({action:"POP",location:e}):P(e)})},P=function(e){var t=q.location,n=z.lastIndexOf(x(t));-1===n&&(n=0);var r=z.lastIndexOf(x(e));-1===r&&(r=0);var a=n-r;a&&(y=!0,I(a))},O=F(),C=u(O);O!==C&&W(C);var H=h(),z=[x(H)],I=function(e){d()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,B=function(e){1===(V+=e)?Y(window,"hashchange",A):0===V&&j(window,"hashchange",A)},U=!1,q={length:t.length,action:"POP",location:H,createHref:function(e){return"#"+u(s+x(e))},push:function(e,t){d()(void 0===t,"Hash history cannot push state; it is ignored");var n=T(e,void 0,void 0,q.location);p.confirmTransitionTo(n,"PUSH",a,function(e){if(e){var t=x(n),r=u(s+t);if(F()!==r){v=t,function(e){window.location.hash=e}(r);var a=z.lastIndexOf(x(q.location)),o=z.slice(0,-1===a?0:a+1);o.push(t),z=o,m({action:"PUSH",location:n})}else d()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){d()(void 0===t,"Hash history cannot replace state; it is ignored");var n=T(e,void 0,void 0,q.location);p.confirmTransitionTo(n,"REPLACE",a,function(e){if(e){var t=x(n),r=u(s+t);F()!==r&&(v=t,W(r));var a=z.indexOf(x(q.location));-1!==a&&(z[a]=t),m({action:"REPLACE",location:n})}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p.setPrompt(e);return U||(B(1),U=!0),function(){return U&&(U=!1,B(-1)),t()}},listen:function(e){var t=p.appendListener(e);return B(1),function(){B(-1),t()}}};return q},I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B=function(e,t,n){return Math.min(Math.max(e,t),n)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,a=e.initialIndex,o=void 0===a?0:a,i=e.keyLength,s=void 0===i?6:i,l=S(),u=function(e){V(y,e),y.length=y.entries.length,l.notifyListeners(y.location,y.action)},c=function(){return Math.random().toString(36).substr(2,s)},f=B(o,0,r.length-1),h=r.map(function(e){return T(e,void 0,"string"==typeof e?c():e.key||c())}),p=x,m=function(e){var n=B(y.index+e,0,y.entries.length-1),r=y.entries[n];l.confirmTransitionTo(r,"POP",t,function(e){e?u({action:"POP",location:r,index:n}):u()})},y={length:h.length,action:"POP",location:h[f],index:f,entries:h,createHref:p,push:function(e,n){d()(!("object"===(void 0===e?"undefined":I(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=T(e,n,c(),y.location);l.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){d()(!("object"===(void 0===e?"undefined":I(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=T(e,n,c(),y.location);l.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return y},q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function G(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var K=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=G(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props.history.location.pathname)},G(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:q({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;f()(null==n||1===i.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){a()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?i.a.Children.only(e):null},t}(i.a.Component);K.propTypes={history:l.a.object.isRequired,children:l.a.node},K.contextTypes={router:l.a.object},K.childContextTypes={router:l.a.object.isRequired};var Z=K,Q=Z;function J(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var X=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=J(this,e.call.apply(e,[this].concat(o))),r.history=H(r.props),J(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){a()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(Q,{history:this.history,children:this.props.children})},t}(i.a.Component);X.propTypes={basename:l.a.string,forceRefresh:l.a.bool,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node};var _=X;function $(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ee=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=$(this,e.call.apply(e,[this].concat(o))),r.history=z(r.props),$(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){a()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(Q,{history:this.history,children:this.props.children})},t}(i.a.Component);ee.propTypes={basename:l.a.string,getUserConfirmation:l.a.func,hashType:l.a.oneOf(["hashbang","noslash","slash"]),children:l.a.node};var te=ee,ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function re(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ae=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},oe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=re(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!ae(e)){e.preventDefault();var t=r.context.router.history,n=r.props,a=n.replace,o=n.to;a?t.replace(o):t.push(o)}},re(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>"),f()(void 0!==t,'You must specify the "to" property');var a=this.context.router.history,o="string"==typeof t?T(t,null,null,a.location):t,s=a.createHref(o);return i.a.createElement("a",ne({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(i.a.Component);oe.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},oe.defaultProps={replace:!1},oe.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired};var ie=oe;function se(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var le=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=se(this,e.call.apply(e,[this].concat(o))),r.history=U(r.props),se(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){a()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(Z,{history:this.history,children:this.props.children})},t}(i.a.Component);le.propTypes={initialEntries:l.a.array,initialIndex:l.a.number,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node};var ue=le,de=n(66),ce=n.n(de),fe={},he=0,pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,a=r.path,o=r.exact,i=void 0!==o&&o,s=r.strict,l=void 0!==s&&s,u=r.sensitive;if(null==a)return n;var d=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=fe[n]||(fe[n]={});if(r[e])return r[e];var a=[],o={re:ce()(e,a,t),keys:a};return he<1e4&&(r[e]=o,he++),o}(a,{end:i,strict:l,sensitive:void 0!==u&&u}),c=d.re,f=d.keys,h=c.exec(e);if(!h)return null;var p=h[0],m=h.slice(1),y=e===p;return i&&!y?null:{path:a,url:"/"===a&&""===p?"/":p,isExact:y,params:f.reduce(function(e,t,n){return e[t.name]=m[n],e},{})}},me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ye(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ve=function(e){return 0===i.a.Children.count(e)},ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=ye(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props,r.context.router)},ye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:me({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,a=e.path,o=e.strict,i=e.exact,s=e.sensitive;if(n)return n;f()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,u=(r||l.location).pathname;return pe(u,{path:a,strict:o,exact:i,sensitive:s},l.match)},t.prototype.componentWillMount=function(){a()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),a()(!(this.props.component&&this.props.children&&!ve(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),a()(!(this.props.render&&this.props.children&&!ve(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){a()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,a=t.render,o=this.context.router,s=o.history,l=o.route,u=o.staticContext,d={match:e,location:this.props.location||l.location,history:s,staticContext:u};return r?e?i.a.createElement(r,d):null:a?e?a(d):null:"function"==typeof n?n(d):n&&!ve(n)?i.a.Children.only(n):null},t}(i.a.Component);ge.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},ge.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},ge.childContextTypes={router:l.a.object.isRequired};var Ae=ge,be=Ae,Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var xe=function(e){var t=e.to,n=e.exact,r=e.strict,a=e.location,o=e.activeClassName,s=e.className,l=e.activeStyle,u=e.style,d=e.isActive,c=e["aria-current"],f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),h="object"===(void 0===t?"undefined":ke(t))?t.pathname:t,p=h&&h.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1");return i.a.createElement(be,{path:p,exact:n,strict:r,location:a,children:function(e){var n=e.location,r=e.match,a=!!(d?d(r,n):r);return i.a.createElement(ie,Me({to:t,className:a?[s,o].filter(function(e){return e}).join(" "):s,style:a?Me({},u,l):u,"aria-current":a&&c||null},f))}})};xe.propTypes={to:ie.propTypes.to,exact:l.a.bool,strict:l.a.bool,location:l.a.object,activeClassName:l.a.string,className:l.a.string,activeStyle:l.a.object,style:l.a.object,isActive:l.a.func,"aria-current":l.a.oneOf(["page","step","location","date","time","true"])},xe.defaultProps={activeClassName:"active","aria-current":"page"};var we=xe;var Te=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.a.Component);Te.propTypes={when:l.a.bool,message:l.a.oneOfType([l.a.func,l.a.string]).isRequired},Te.defaultProps={when:!0},Te.contextTypes={router:l.a.shape({history:l.a.shape({block:l.a.func.isRequired}).isRequired}).isRequired};var Le=Te,Se={},De=0,Ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=Se[t]||(Se[t]={});if(n[e])return n[e];var r=ce.a.compile(e);return De<1e4&&(n[e]=r,De++),r}(e)(t,{pretty:!0})},je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=T(e.to),n=T(this.props.to);L(t,n)?a()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Ye(n,t.params):je({},n,{pathname:Ye(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(i.a.Component);Ee.propTypes={computedMatch:l.a.object,push:l.a.bool,from:l.a.string,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired},Ee.defaultProps={push:!1},Ee.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired}).isRequired,staticContext:l.a.object}).isRequired};var Pe=Ee,Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ce(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var He=function(e){return"/"===e.charAt(0)?e:"/"+e},Re=function(e,t){return e?Oe({},t,{pathname:He(e)+t.pathname}):t},Ne=function(e,t){if(!e)return t;var n=He(e);return 0!==t.pathname.indexOf(n)?t:Oe({},t,{pathname:t.pathname.substr(n.length)})},Fe=function(e){return"string"==typeof e?e:x(e)},We=function(e){return function(){f()(!1,"You cannot %s with <StaticRouter>",e)}},ze=function(){},Ie=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=Ce(this,e.call.apply(e,[this].concat(o))),r.createHref=function(e){return He(r.props.basename+Fe(e))},r.handlePush=function(e){var t=r.props,n=t.basename,a=t.context;a.action="PUSH",a.location=Re(n,T(e)),a.url=Fe(a.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,a=t.context;a.action="REPLACE",a.location=Re(n,T(e)),a.url=Fe(a.location)},r.handleListen=function(){return ze},r.handleBlock=function(){return ze},Ce(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){a()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:Ne(t,T(n)),push:this.handlePush,replace:this.handleReplace,go:We("go"),goBack:We("goBack"),goForward:We("goForward"),listen:this.handleListen,block:this.handleBlock};return i.a.createElement(Z,Oe({},r,{history:a}))},t}(i.a.Component);Ie.propTypes={basename:l.a.string,context:l.a.object.isRequired,location:l.a.oneOfType([l.a.string,l.a.object])},Ie.defaultProps={basename:"",location:"/"},Ie.childContextTypes={router:l.a.object.isRequired};var Ve=Ie;var Be=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){a()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,a=void 0;return i.a.Children.forEach(t,function(t){if(null==r&&i.a.isValidElement(t)){var o=t.props,s=o.path,l=o.exact,u=o.strict,d=o.sensitive,c=o.from,f=s||c;a=t,r=pe(n.pathname,{path:f,exact:l,strict:u,sensitive:d},e.match)}}),r?i.a.cloneElement(a,{location:n,computedMatch:r}):null},t}(i.a.Component);Be.contextTypes={router:l.a.shape({route:l.a.object.isRequired}).isRequired},Be.propTypes={children:l.a.node,location:l.a.object};var Ue=Be,qe=Ye,Ge=pe,Ke=n(285),Ze=n.n(Ke),Qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Je=function(e){var t=function(t){var n=t.wrappedComponentRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return i.a.createElement(Ae,{children:function(t){return i.a.createElement(e,Qe({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:l.a.func},Ze()(t,e)};n.d(t,"BrowserRouter",function(){return _}),n.d(t,"HashRouter",function(){return te}),n.d(t,"Link",function(){return ie}),n.d(t,"MemoryRouter",function(){return ue}),n.d(t,"NavLink",function(){return we}),n.d(t,"Prompt",function(){return Le}),n.d(t,"Redirect",function(){return Pe}),n.d(t,"Route",function(){return be}),n.d(t,"Router",function(){return Q}),n.d(t,"StaticRouter",function(){return Ve}),n.d(t,"Switch",function(){return Ue}),n.d(t,"generatePath",function(){return qe}),n.d(t,"matchPath",function(){return Ge}),n.d(t,"withRouter",function(){return Je})}]);
+t.prefix=r.default,t.supportedProperty=a.default,t.supportedValue=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!s)return e;if(null!=l[e])return l[e];(0,o.default)(e)in s.style?l[e]=e:a.default.js+(0,o.default)("-"+e)in s.style?l[e]=a.default.css+e:l[e]=!1;return l[e]};var r=i(n(51)),a=i(n(70)),o=i(n(364));function i(e){return e&&e.__esModule?e:{default:e}}var s=void 0,l={};if(r.default){s=document.createElement("p");var u=window.getComputedStyle(document.documentElement,"");for(var d in u)isNaN(d)||(l[u[d]]=u[d])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,a)};var r=/[-\s]+(.)?/g;function a(e,t){return t?t.toUpperCase():""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!s)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=i[n])return i[n];try{s.style[e]=t}catch(e){return i[n]=!1,!1}""!==s.style[e]?i[n]=t:("-ms-flex"===(t=a.default.css+t)&&(t="-ms-flexbox"),s.style[e]=t,""!==s.style[e]&&(i[n]=t));i[n]||(i[n]=!1);return s.style[e]="",i[n]};var r=o(n(51)),a=o(n(70));function o(e){return e&&e.__esModule?e:{default:e}}var i={},s=void 0;r.default&&(s=document.createElement("p"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,n){if("style"!==n.type)return t;var r={},a=Object.keys(t).sort(e);for(var o in a)r[a[o]]=t[a[o]];return r}}}},function(e,t,n){"use strict";var r=n(112),a=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MuiThemeProviderOld=void 0;var o=a(n(4)),i=a(n(10)),s=a(n(12)),l=a(n(13)),u=a(n(14)),d=a(n(15)),c=a(n(16)),f=a(n(1)),h=a(n(0)),p=(a(n(6)),a(n(371))),m=n(7),y=r(n(71)),v=function(e){function t(e,n){var r;return(0,s.default)(this,t),(r=(0,u.default)(this,(0,d.default)(t).call(this))).broadcast=(0,p.default)(),r.outerTheme=y.default.initial(n),r.broadcast.setState(r.mergeOuterLocalTheme(e.theme)),r}return(0,c.default)(t,e),(0,l.default)(t,[{key:"getChildContext",value:function(){var e,t=this.props,n=t.disableStylesGeneration,r=t.sheetsCache,a=t.sheetsManager,o=this.context.muiThemeProviderOptions||{};return void 0!==n&&(o.disableStylesGeneration=n),void 0!==r&&(o.sheetsCache=r),void 0!==a&&(o.sheetsManager=a),e={},(0,i.default)(e,y.CHANNEL,this.broadcast),(0,i.default)(e,"muiThemeProviderOptions",o),e}},{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=y.default.subscribe(this.context,function(t){e.outerTheme=t,e.broadcast.setState(e.mergeOuterLocalTheme(e.props.theme))})}},{key:"componentDidUpdate",value:function(e){this.props.theme!==e.theme&&this.broadcast.setState(this.mergeOuterLocalTheme(this.props.theme))}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&y.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"mergeOuterLocalTheme",value:function(e){return"function"==typeof e?e(this.outerTheme):this.outerTheme?(0,o.default)({},this.outerTheme,e):e}},{key:"render",value:function(){return this.props.children}}]),t}(f.default.Component);t.MuiThemeProviderOld=v,v.childContextTypes=(0,o.default)({},y.default.contextTypes,{muiThemeProviderOptions:h.default.object}),v.contextTypes=(0,o.default)({},y.default.contextTypes,{muiThemeProviderOptions:h.default.object}),m.ponyfillGlobal.__MUI_STYLES__||(m.ponyfillGlobal.__MUI_STYLES__={}),m.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider||(m.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider=v);var g=m.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider;t.default=g},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(370);function a(){}e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),t.default=function(e){var t={},n=1,r=e;return{getState:function(){return r},setState:function(e){r=e;for(var n=Object.keys(t),a=0,o=n.length;a<o;a++)t[n[a]]&&t[n[a]](e)},subscribe:function(e){if("function"!=typeof e)throw new Error("listener must be a function.");var r=n;return t[r]=e,n+=1,r},unsubscribe:function(e){t[e]=void 0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={jss:"64a55d578f856d258dc345b094a2a2b3",sheetsRegistry:"d4bd0baacbc52bbd48bbb9eb24344ecd",sheetOptions:"6fc570d6bd61383819d0f9e7407c452d"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={set:function(e,t,n,r){var a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=(r(n(31)),r(n(6)),r(n(47)));function i(e,t){return t}var s=function(e){var t="function"==typeof e;return{create:function(n,r){var s=t?e(n):e;if(!r||!n.overrides||!n.overrides[r])return s;var l=n.overrides[r],u=(0,a.default)({},s);return Object.keys(l).forEach(function(e){u[e]=(0,o.default)(u[e],l[e],{arrayMerge:i})}),u},options:{},themingEnabled:t}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.theme,n=e.name,r=e.props;if(!t.props||!n||!t.props[n])return r;var a,o=t.props[n];for(a in o)void 0===r[a]&&(r[a]=o[a]);return r};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(378))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=(r(n(0)),n(30)),c=(n(7),function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component));c.defaultProps={children:null};var f=(0,d.withStyles)(function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},body:{margin:0,backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}}}}},{name:"MuiCssBaseline"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(380))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d=n(21),c=r(n(114)),f=function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}};function h(e){var t,n=e.children,r=e.classes,u=e.className,f=e.color,h=e.position,p=(0,i.default)(e,["children","classes","className","color","position"]),m=(0,l.default)(r.root,r["position".concat((0,d.capitalize)(h))],(t={},(0,o.default)(t,r["color".concat((0,d.capitalize)(f))],"inherit"!==f),(0,o.default)(t,"mui-fixed","fixed"===h),t),u);return s.default.createElement(c.default,(0,a.default)({square:!0,component:"header",elevation:4,className:m},p),n)}t.styles=f,h.defaultProps={color:"primary",position:"fixed"};var p=(0,u.default)(f,{name:"MuiAppBar"})(h);t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(5)),i=r(n(4)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(r(n(6)),n(7),r(n(8))),d=function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),(0,i.default)({root:{backgroundColor:e.palette.background.paper},rounded:{borderRadius:e.shape.borderRadius}},t)};function c(e){var t=e.classes,n=e.className,r=e.component,u=e.square,d=e.elevation,c=(0,o.default)(e,["classes","className","component","square","elevation"]),f=(0,l.default)(t.root,t["elevation".concat(d)],(0,a.default)({},t.rounded,!u),n);return s.default.createElement(r,(0,i.default)({className:f},c))}t.styles=d,c.defaultProps={component:"div",elevation:2,square:!1};var f=(0,u.default)(d,{name:"MuiPaper"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(383))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d=function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:e.mixins.gutters(),regular:e.mixins.toolbar,dense:{minHeight:48}}};function c(e){var t=e.children,n=e.classes,r=e.className,u=e.disableGutters,d=e.variant,c=(0,i.default)(e,["children","classes","className","disableGutters","variant"]),f=(0,l.default)(n.root,n[d],(0,o.default)({},n.gutters,!u),r);return s.default.createElement("div",(0,a.default)({className:f},c),t)}t.styles=d,c.defaultProps={disableGutters:!1,variant:"regular"};var f=(0,u.default)(d,{name:"MuiToolbar"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(21),c=function(e){return{root:{display:"block",margin:0},display4:e.typography.display4,display3:e.typography.display3,display2:e.typography.display2,display1:e.typography.display1,headline:e.typography.headline,title:e.typography.title,subheading:e.typography.subheading,body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},inline:{display:"inline"}}};t.styles=c;var f={display4:"h1",display3:"h2",display2:"h3",display1:"h4",headline:"h5",title:"h6",subheading:"subtitle1"};var h={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",display4:"h1",display3:"h1",display2:"h1",display1:"h1",headline:"h1",title:"h2",subheading:"h3"};function p(e){var t,n=e.align,r=e.classes,u=e.className,c=e.color,p=e.component,m=e.gutterBottom,y=e.headlineMapping,v=e.inline,g=(e.internalDeprecatedVariant,e.noWrap),A=e.paragraph,b=e.theme,M=e.variant,k=(0,i.default)(e,["align","classes","className","color","component","gutterBottom","headlineMapping","inline","internalDeprecatedVariant","noWrap","paragraph","theme","variant"]),x=function(e,t){var n=e.typography,r=t;return r||(r=n.useNextVariants?"body2":"body1"),n.useNextVariants&&(r=f[r]||r),r}(b,M),w=(0,l.default)(r.root,(t={},(0,o.default)(t,r[x],"inherit"!==x),(0,o.default)(t,r["color".concat((0,d.capitalize)(c))],"default"!==c),(0,o.default)(t,r.noWrap,g),(0,o.default)(t,r.gutterBottom,m),(0,o.default)(t,r.paragraph,A),(0,o.default)(t,r["align".concat((0,d.capitalize)(n))],"inherit"!==n),(0,o.default)(t,r.inline,v),t),u),T=p||(A?"p":y[x]||h[x])||"span";return s.default.createElement(T,(0,a.default)({className:w},k))}p.defaultProps={align:"inherit",color:"default",gutterBottom:!1,headlineMapping:h,inline:!1,noWrap:!1,paragraph:!1};var m=(0,u.default)(c,{name:"MuiTypography",withTheme:!0})(p);t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(386))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(10)),f=r(n(1)),h=(r(n(0)),r(n(6)),r(n(9))),p=r(n(54)),m=r(n(55)),y=n(387),v=(n(7),r(n(388))),g=r(n(389)),A=r(n(8)),b=r(n(390)),M=r(n(391)),k=(r(n(120)),function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch"},flexContainer:{display:"flex"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll"},scrollButtons:{},scrollButtonsAuto:(0,c.default)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}});t.styles=k;var x=function(e){function t(){var e;return(0,i.default)(this,t),(e=(0,l.default)(this,(0,u.default)(t).call(this))).state={indicatorStyle:{},scrollerStyle:{marginBottom:0},showLeftScroll:!1,showRightScroll:!1,mounted:!1},e.getConditionalElements=function(){var t=e.props,n=t.classes,r=t.scrollable,a=t.ScrollButtonComponent,o=t.scrollButtons,i=t.theme,s={},l="scrollable"===t.variant||r;s.scrollbarSizeListener=l?f.default.createElement(g.default,{onChange:e.handleScrollbarSizeChange}):null;var u=l&&("auto"===o||"on"===o);return s.scrollButtonLeft=u?f.default.createElement(a,{direction:i&&"rtl"===i.direction?"right":"left",onClick:e.handleLeftScrollClick,visible:e.state.showLeftScroll,className:(0,h.default)(n.scrollButtons,(0,c.default)({},n.scrollButtonsAuto,"auto"===o))}):null,s.scrollButtonRight=u?f.default.createElement(a,{direction:i&&"rtl"===i.direction?"left":"right",onClick:e.handleRightScrollClick,visible:e.state.showRightScroll,className:(0,h.default)(n.scrollButtons,(0,c.default)({},n.scrollButtonsAuto,"auto"===o))}):null,s},e.getTabsMeta=function(t,n){var r,a;if(e.tabsRef){var o=e.tabsRef.getBoundingClientRect();r={clientWidth:e.tabsRef.clientWidth,scrollLeft:e.tabsRef.scrollLeft,scrollLeftNormalized:(0,y.getNormalizedScrollLeft)(e.tabsRef,n),scrollWidth:e.tabsRef.scrollWidth,left:o.left,right:o.right}}if(e.tabsRef&&!1!==t){var i=e.tabsRef.children[0].children;if(i.length>0){var s=i[e.valueToIndex.get(t)];a=s?s.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:a}},e.handleLeftScrollClick=function(){e.moveTabsScroll(-e.tabsRef.clientWidth)},e.handleRightScrollClick=function(){e.moveTabsScroll(e.tabsRef.clientWidth)},e.handleScrollbarSizeChange=function(t){e.setState({scrollerStyle:{marginBottom:-t}})},e.moveTabsScroll=function(t){var n=e.props.theme,r="rtl"===n.direction?-1:1,a=e.tabsRef.scrollLeft+t*r,o="rtl"===n.direction&&"reverse"===(0,y.detectScrollType)()?-1:1;e.scroll(o*a)},e.scrollSelectedIntoView=function(){var t=e.props,n=t.theme,r=t.value,a=e.getTabsMeta(r,n.direction),o=a.tabsMeta,i=a.tabMeta;if(i&&o)if(i.left<o.left){var s=o.scrollLeft+(i.left-o.left);e.scroll(s)}else if(i.right>o.right){var l=o.scrollLeft+(i.right-o.right);e.scroll(l)}},e.scroll=function(t){(0,v.default)("scrollLeft",e.tabsRef,t)},e.updateScrollButtonState=function(){var t=e.props,n=t.scrollable,r=t.scrollButtons,a=t.theme;if(("scrollable"===t.variant||n)&&"off"!==r){var o=e.tabsRef,i=o.scrollWidth,s=o.clientWidth,l=(0,y.getNormalizedScrollLeft)(e.tabsRef,a.direction),u="rtl"===a.direction?i>s+l:l>0,d="rtl"===a.direction?l>0:i>s+l;u===e.state.showLeftScroll&&d===e.state.showRightScroll||e.setState({showLeftScroll:u,showRightScroll:d})}},"undefined"!=typeof window&&(e.handleResize=(0,m.default)(function(){e.updateIndicatorState(e.props),e.updateScrollButtonState()},166),e.handleTabsScroll=(0,m.default)(function(){e.updateScrollButtonState()},166)),e}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.updateIndicatorState(this.props),this.updateScrollButtonState(),this.props.action&&this.props.action({updateIndicator:this.handleResize})}},{key:"componentDidUpdate",value:function(e,t){this.updateIndicatorState(this.props),this.updateScrollButtonState(),this.state.indicatorStyle!==t.indicatorStyle&&this.scrollSelectedIntoView()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear(),this.handleTabsScroll.clear()}},{key:"updateIndicatorState",value:function(e){var t=e.theme,n=e.value,r=this.getTabsMeta(n,t.direction),a=r.tabsMeta,o=r.tabMeta,i=0;if(o&&a){var s="rtl"===t.direction?a.scrollLeftNormalized+a.clientWidth-a.scrollWidth:a.scrollLeft;i=Math.round(o.left-a.left+s)}var l={left:i,width:o?Math.round(o.width):0};l.left===this.state.indicatorStyle.left&&l.width===this.state.indicatorStyle.width||isNaN(l.left)||isNaN(l.width)||this.setState({indicatorStyle:l})}},{key:"render",value:function(){var e,t=this,n=this.props,r=(n.action,n.centered),i=n.children,s=n.classes,l=n.className,u=n.component,d=n.fullWidth,m=void 0!==d&&d,y=n.indicatorColor,v=n.onChange,g=n.scrollable,A=void 0!==g&&g,M=(n.ScrollButtonComponent,n.scrollButtons,n.TabIndicatorProps),k=void 0===M?{}:M,x=n.textColor,w=(n.theme,n.value),T=n.variant,L=(0,o.default)(n,["action","centered","children","classes","className","component","fullWidth","indicatorColor","onChange","scrollable","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","theme","value","variant"]),S="scrollable"===T||A,D=(0,h.default)(s.root,l),Y=(0,h.default)(s.flexContainer,(0,c.default)({},s.centered,r&&!S)),j=(0,h.default)(s.scroller,(e={},(0,c.default)(e,s.fixed,!S),(0,c.default)(e,s.scrollable,S),e)),E=f.default.createElement(b.default,(0,a.default)({className:s.indicator,color:y},k,{style:(0,a.default)({},this.state.indicatorStyle,k.style)}));this.valueToIndex=new Map;var P=0,O=f.default.Children.map(i,function(e){if(!f.default.isValidElement(e))return null;var n=void 0===e.props.value?P:e.props.value;t.valueToIndex.set(n,P);var r=n===w;return P+=1,f.default.cloneElement(e,{fullWidth:"fullWidth"===T||m,indicator:r&&!t.state.mounted&&E,selected:r,onChange:v,textColor:x,value:n})}),C=this.getConditionalElements();return f.default.createElement(u,(0,a.default)({className:D},L),f.default.createElement(p.default,{target:"window",onResize:this.handleResize}),C.scrollbarSizeListener,f.default.createElement("div",{className:s.flexContainer},C.scrollButtonLeft,f.default.createElement("div",{className:j,style:this.state.scrollerStyle,ref:function(e){t.tabsRef=e},role:"tablist",onScroll:this.handleTabsScroll},f.default.createElement("div",{className:Y},O),this.state.mounted&&E),C.scrollButtonRight))}}]),t}(f.default.Component);x.defaultProps={centered:!1,component:"div",indicatorColor:"secondary",ScrollButtonComponent:M.default,scrollButtons:"auto",textColor:"inherit",variant:"standard"};var w=(0,A.default)(k,{name:"MuiTabs",withTheme:!0})(x);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(){if(r)return r;if(!a||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}t._setScrollType=function(e){r=e},t.detectScrollType=o,t.getNormalizedScrollLeft=function(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=o();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n},t.setNormalizedScrollLeft=function(e,t,n){if("rtl"===n){var r=o();if("indeterminate"!==r)switch(r){case"negative":e.scrollLeft=e.clientWidth-e.scrollWidth+t;break;case"reverse":e.scrollLeft=e.scrollWidth-e.clientWidth-t;break;default:e.scrollLeft=t}}else e.scrollLeft=t}},function(e,t,n){"use strict";function r(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=a.ease,s=void 0===i?r:i,l=a.duration,u=void 0===l?300:l,d=null,c=t[e],f=!1,h=function(){f=!0};return c===n?(o(new Error("Element already at target position")),h):(requestAnimationFrame(function r(a){if(f)o(new Error("Animation cancelled"));else{null===d&&(d=a);var i=Math.min(1,(a-d)/u);t[e]=s(i)*(n-c)+c,i>=1?requestAnimationFrame(function(){o(null)}):requestAnimationFrame(r)}}),h)};t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=(r(n(0)),r(n(54))),c=r(n(55)),f={width:90,height:90,position:"absolute",top:-9e3,overflow:"scroll",msOverflowStyle:"scrollbar"},h=function(e){function t(){var e;return(0,a.default)(this,t),(e=(0,i.default)(this,(0,s.default)(t).call(this))).handleRef=function(t){e.nodeRef=t},e.setMeasurements=function(){var t=e.nodeRef;t&&(e.scrollbarHeight=t.offsetHeight-t.clientHeight)},"undefined"!=typeof window&&(e.handleResize=(0,c.default)(function(){var t=e.scrollbarHeight;e.setMeasurements(),t!==e.scrollbarHeight&&e.props.onChange(e.scrollbarHeight)},166)),e}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.setMeasurements(),this.props.onChange(this.scrollbarHeight)}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement(d.default,{target:"window",onResize:this.handleResize}),u.default.createElement("div",{style:f,ref:this.handleRef}))}}]),t}(u.default.Component);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=r(n(8)),u=n(21),d=function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main}}};t.styles=d;var c=(0,l.default)(d,{name:"MuiPrivateTabIndicator"})(function(e){var t=e.classes,n=e.className,r=e.color,l=(0,o.default)(e,["classes","className","color"]);return i.default.createElement("span",(0,a.default)({className:(0,s.default)(t.root,t["color".concat((0,u.capitalize)(r))],n)},l))});t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=r(n(392)),u=r(n(400)),d=r(n(8)),c=r(n(40)),f={root:{color:"inherit",width:56,flexShrink:0}};t.styles=f;var h=i.default.createElement(l.default,null),p=i.default.createElement(u.default,null);function m(e){var t=e.classes,n=e.className,r=e.direction,l=e.onClick,u=e.visible,d=(0,o.default)(e,["classes","className","direction","onClick","visible"]),f=(0,s.default)(t.root,n);return u?i.default.createElement(c.default,(0,a.default)({className:f,onClick:l,tabIndex:-1},d),"left"===r?h:p):i.default.createElement("div",{className:f})}m.defaultProps={visible:!0};var y=(0,d.default)(f,{name:"MuiPrivateTabScrollButton"})(m);t.default=y},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),o=r(n(74)),i=r(n(75)),s=a.default.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),l=function(e){return a.default.createElement(i.default,e,s)};(l=(0,o.default)(l)).muiName="SvgIcon";var u=l;t.default=u},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(394)),o=n(1),i=(r(n(115)),r(n(116)),function(e){return function(t){var n=(0,o.createFactory)(t);return function(t){function r(){return t.apply(this,arguments)||this}(0,a.default)(r,t);var o=r.prototype;return o.shouldComponentUpdate=function(t){return e(this.props,t)},o.render=function(){return n(this.props)},r}(o.Component)}});t.default=i},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){return function(n){return n[e]=t,n}};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0};t.default=r},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(398)).default;t.default=a},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(a(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!a(e[n[i]],t[n[i]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(21),c=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:24,transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:20},fontSizeLarge:{fontSize:35}}};function f(e){var t,n=e.children,r=e.classes,u=e.className,c=e.color,f=e.component,h=e.fontSize,p=e.nativeColor,m=e.titleAccess,y=e.viewBox,v=(0,i.default)(e,["children","classes","className","color","component","fontSize","nativeColor","titleAccess","viewBox"]);return s.default.createElement(f,(0,a.default)({className:(0,l.default)(r.root,(t={},(0,o.default)(t,r["color".concat((0,d.capitalize)(c))],"inherit"!==c),(0,o.default)(t,r["fontSize".concat((0,d.capitalize)(h))],"default"!==h),t),u),focusable:"false",viewBox:y,color:p,"aria-hidden":m?"false":"true",role:m?"img":"presentation"},v),n,m?s.default.createElement("title",null,m):null)}t.styles=c,f.defaultProps={color:"inherit",component:"svg",fontSize:"default",viewBox:"0 0 24 24"},f.muiName="SvgIcon";var h=(0,u.default)(c,{name:"MuiSvgIcon"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),o=r(n(74)),i=r(n(75)),s=a.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),l=function(e){return a.default.createElement(i.default,e,s)};(l=(0,o.default)(l)).muiName="SvgIcon";var u=l;t.default=u},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(52)),h=r(n(1)),p=(r(n(0)),r(n(20))),m=r(n(9)),y=(n(7),r(n(76))),v=r(n(8)),g=r(n(402)),A=n(404),b=r(n(405)),M=r(n(411)),k={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}};t.styles=k;var x=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={},n.keyDown=!1,n.focusVisibleCheckTime=50,n.focusVisibleMaxCheckTimes=5,n.handleMouseDown=(0,M.default)((0,f.default)((0,f.default)(n)),"MouseDown","start",function(){clearTimeout(n.focusVisibleTimeout),n.state.focusVisible&&n.setState({focusVisible:!1})}),n.handleMouseUp=(0,M.default)((0,f.default)((0,f.default)(n)),"MouseUp","stop"),n.handleMouseLeave=(0,M.default)((0,f.default)((0,f.default)(n)),"MouseLeave","stop",function(e){n.state.focusVisible&&e.preventDefault()}),n.handleTouchStart=(0,M.default)((0,f.default)((0,f.default)(n)),"TouchStart","start"),n.handleTouchEnd=(0,M.default)((0,f.default)((0,f.default)(n)),"TouchEnd","stop"),n.handleTouchMove=(0,M.default)((0,f.default)((0,f.default)(n)),"TouchMove","stop"),n.handleContextMenu=(0,M.default)((0,f.default)((0,f.default)(n)),"ContextMenu","stop"),n.handleBlur=(0,M.default)((0,f.default)((0,f.default)(n)),"Blur","stop",function(){clearTimeout(n.focusVisibleTimeout),n.state.focusVisible&&n.setState({focusVisible:!1})}),n.onRippleRef=function(e){n.ripple=e},n.onFocusVisibleHandler=function(e){n.keyDown=!1,n.setState({focusVisible:!0}),n.props.onFocusVisible&&n.props.onFocusVisible(e)},n.handleKeyDown=function(e){var t=n.props,r=t.component,a=t.focusRipple,o=t.onKeyDown,i=t.onClick;a&&!n.keyDown&&n.state.focusVisible&&n.ripple&&" "===e.key&&(n.keyDown=!0,e.persist(),n.ripple.stop(e,function(){n.ripple.start(e)})),o&&o(e),e.target!==e.currentTarget||!r||"button"===r||" "!==e.key&&"Enter"!==e.key||"A"===n.button.tagName&&n.button.href||(e.preventDefault(),i&&i(e))},n.handleKeyUp=function(e){n.props.focusRipple&&" "===e.key&&n.ripple&&n.state.focusVisible&&(n.keyDown=!1,e.persist(),n.ripple.stop(e,function(){n.ripple.pulsate(e)})),n.props.onKeyUp&&n.props.onKeyUp(e)},n.handleFocus=function(e){n.props.disabled||(n.button||(n.button=e.currentTarget),e.persist(),(0,A.detectFocusVisible)((0,f.default)((0,f.default)(n)),n.button,function(){n.onFocusVisibleHandler(e)}),n.props.onFocus&&n.props.onFocus(e))},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.button=p.default.findDOMNode(this),(0,A.listenForFocusKeys)((0,y.default)(this.button)),this.props.action&&this.props.action({focusVisible:function(){e.setState({focusVisible:!0}),e.button.focus()}})}},{key:"componentDidUpdate",value:function(e,t){this.props.focusRipple&&!this.props.disableRipple&&!t.focusVisible&&this.state.focusVisible&&this.ripple.pulsate()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusVisibleTimeout)}},{key:"render",value:function(){var e,t=this.props,n=(t.action,t.buttonRef),r=t.centerRipple,s=t.children,l=t.classes,u=t.className,d=t.component,c=t.disabled,f=t.disableRipple,p=(t.disableTouchRipple,t.focusRipple,t.focusVisibleClassName),y=(t.onBlur,t.onFocus,t.onFocusVisible,t.onKeyDown,t.onKeyUp,t.onMouseDown,t.onMouseLeave,t.onMouseUp,t.onTouchEnd,t.onTouchMove,t.onTouchStart,t.tabIndex),v=t.TouchRippleProps,A=t.type,M=(0,i.default)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","type"]),k=(0,m.default)(l.root,(e={},(0,o.default)(e,l.disabled,c),(0,o.default)(e,l.focusVisible,this.state.focusVisible),(0,o.default)(e,p,this.state.focusVisible),e),u),x=d;"button"===x&&M.href&&(x="a");var w={};return"button"===x?(w.type=A||"button",w.disabled=c):w.role="button",h.default.createElement(x,(0,a.default)({className:k,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onMouseLeave:this.handleMouseLeave,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onContextMenu:this.handleContextMenu,ref:n,tabIndex:c?"-1":y},w,M),s,f||c?null:h.default.createElement(g.default,null,h.default.createElement(b.default,(0,a.default)({innerRef:this.onRippleRef,center:r},v))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0===t.focusVisible?{focusVisible:!1,lastDisabled:e.disabled}:!t.prevState&&e.disabled&&t.focusVisible?{focusVisible:!1,lastDisabled:e.disabled}:{lastDisabled:e.disabled}}}]),t}(h.default.Component);x.defaultProps={centerRipple:!1,component:"button",disableRipple:!1,disableTouchRipple:!1,focusRipple:!1,tabIndex:"0",type:"button"};var w=(0,v.default)(k,{name:"MuiButtonBase"})(x);t.default=w},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(403))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=(r(n(0)),n(7),function(e){function t(){var e,n;(0,a.default)(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return(n=(0,i.default)(this,(e=(0,s.default)(t)).call.apply(e,[this].concat(o)))).mounted=!1,n.state={mounted:!1},n}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0,this.props.defer?requestAnimationFrame(function(){requestAnimationFrame(function(){e.mounted&&e.setState({mounted:!0})})}):this.setState({mounted:!0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.fallback;return this.state.mounted?t:n}}]),t}(u.default.Component));d.defaultProps={defer:!1,fallback:null};var c=d;t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.detectFocusVisible=function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;t.focusVisibleTimeout=setTimeout(function(){var s=(0,a.default)(n),l=function(e){var t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}(s);o.focusKeyPressed&&(l===n||n.contains(l))?r():i<t.focusVisibleMaxCheckTimes&&e(t,n,r,i+1)},t.focusVisibleCheckTime)},t.listenForFocusKeys=function(e){e.addEventListener("keyup",s)};r(n(6));var a=r(n(25)),o={focusKeyPressed:!1,keyUpEventTimeout:-1};var i=[9,13,27,32,37,38,39,40];var s=function(e){(function(e){return i.indexOf(e.keyCode)>-1})(e)&&(o.focusKeyPressed=!0,clearTimeout(o.keyUpEventTimeout),o.keyUpEventTimeout=setTimeout(function(){o.focusKeyPressed=!1},500))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=t.DELAY_RIPPLE=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(117)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(52)),h=r(n(1)),p=(r(n(0)),r(n(20))),m=r(n(77)),y=r(n(9)),v=r(n(8)),g=r(n(410)),A=550,b=80;t.DELAY_RIPPLE=b;var M=function(e){return{root:{display:"block",position:"absolute",overflow:"hidden",borderRadius:"inherit",width:"100%",height:"100%",left:0,top:0,pointerEvents:"none",zIndex:0},ripple:{width:50,height:50,left:0,top:0,opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"mui-ripple-enter ".concat(A,"ms ").concat(e.transitions.easing.easeInOut),animationName:"$mui-ripple-enter"},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"mui-ripple-exit ".concat(A,"ms ").concat(e.transitions.easing.easeInOut),animationName:"$mui-ripple-exit"},childPulsate:{position:"absolute",left:0,top:0,animation:"mui-ripple-pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite"),animationName:"$mui-ripple-pulsate"},"@keyframes mui-ripple-enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes mui-ripple-exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes mui-ripple-pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}};t.styles=M;var k=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={nextKey:0,ripples:[]},n.pulsate=function(){n.start({},{pulsate:!0})},n.start=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=t.pulsate,o=void 0!==a&&a,i=t.center,s=void 0===i?n.props.center||t.pulsate:i,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&n.ignoringMouseDown)n.ignoringMouseDown=!1;else{"touchstart"===e.type&&(n.ignoringMouseDown=!0);var d,c,h,m=u?null:p.default.findDOMNode((0,f.default)((0,f.default)(n))),y=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)d=Math.round(y.width/2),c=Math.round(y.height/2);else{var v=e.clientX?e.clientX:e.touches[0].clientX,g=e.clientY?e.clientY:e.touches[0].clientY;d=Math.round(v-y.left),c=Math.round(g-y.top)}if(s)(h=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(h+=1);else{var A=2*Math.max(Math.abs((m?m.clientWidth:0)-d),d)+2,M=2*Math.max(Math.abs((m?m.clientHeight:0)-c),c)+2;h=Math.sqrt(Math.pow(A,2)+Math.pow(M,2))}e.touches?(n.startTimerCommit=function(){n.startCommit({pulsate:o,rippleX:d,rippleY:c,rippleSize:h,cb:r})},n.startTimer=setTimeout(function(){n.startTimerCommit&&(n.startTimerCommit(),n.startTimerCommit=null)},b)):n.startCommit({pulsate:o,rippleX:d,rippleY:c,rippleSize:h,cb:r})}},n.startCommit=function(e){var t=e.pulsate,r=e.rippleX,a=e.rippleY,o=e.rippleSize,s=e.cb;n.setState(function(e){return{nextKey:e.nextKey+1,ripples:[].concat((0,i.default)(e.ripples),[h.default.createElement(g.default,{key:e.nextKey,classes:n.props.classes,timeout:{exit:A,enter:A},pulsate:t,rippleX:r,rippleY:a,rippleSize:o})])}},s)},n.stop=function(e,t){clearTimeout(n.startTimer);var r=n.state.ripples;if("touchend"===e.type&&n.startTimerCommit)return e.persist(),n.startTimerCommit(),n.startTimerCommit=null,void(n.startTimer=setTimeout(function(){n.stop(e,t)}));n.startTimerCommit=null,r&&r.length&&n.setState({ripples:r.slice(1)},t)},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.startTimer)}},{key:"render",value:function(){var e=this.props,t=(e.center,e.classes),n=e.className,r=(0,o.default)(e,["center","classes","className"]);return h.default.createElement(m.default,(0,a.default)({component:"span",enter:!0,exit:!0,className:(0,y.default)(t.root,n)},r),this.state.ripples)}}]),t}(h.default.PureComponent);k.defaultProps={center:!1};var x=(0,v.default)(M,{flip:!1,name:"MuiTouchRipple"})(k);t.default=x},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return a(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=a(e.children),l=o(t,s);return Object.keys(l).forEach(function(a){var o=l[a];if((0,r.isValidElement)(o)){var u=a in t,d=a in s,c=t[a],f=(0,r.isValidElement)(c)&&!c.props.in;!d||u&&!f?d||!u||f?d&&u&&(0,r.isValidElement)(c)&&(l[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:c.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):l[a]=(0,r.cloneElement)(o,{in:!1}):l[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}}),l};var r=n(1);function a(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),o=[];for(var i in e)i in t?o.length&&(a[i]=o,o=[]):o.push(i);var s={};for(var l in t){if(a[l])for(r=0;r<a[l].length;r++){var u=a[l][r];s[a[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(1)),h=(r(n(0)),r(n(9))),p=r(n(41)),m=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={visible:!1,leaving:!1},n.handleEnter=function(){n.setState({visible:!0})},n.handleExit=function(){n.setState({leaving:!0})},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.classes,s=n.className,l=n.pulsate,u=n.rippleX,d=n.rippleY,c=n.rippleSize,m=(0,i.default)(n,["classes","className","pulsate","rippleX","rippleY","rippleSize"]),y=this.state,v=y.visible,g=y.leaving,A=(0,h.default)(r.ripple,(e={},(0,o.default)(e,r.rippleVisible,v),(0,o.default)(e,r.ripplePulsate,l),e),s),b={width:c,height:c,top:-c/2+d,left:-c/2+u},M=(0,h.default)(r.child,(t={},(0,o.default)(t,r.childLeaving,g),(0,o.default)(t,r.childPulsate,l),t));return f.default.createElement(p.default,(0,a.default)({onEnter:this.handleEnter,onExit:this.handleExit},m),f.default.createElement("span",{className:A,style:b},f.default.createElement("span",{className:M})))}}]),t}(f.default.Component);m.defaultProps={pulsate:!1};var y=m;t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t,n,r){return function(a){r&&r.call(e,a);var o=!1;return a.defaultPrevented&&(o=!0),e.props.disableTouchRipple&&"Blur"!==t&&(o=!0),!o&&e.ripple&&e.ripple[n](a),"function"==typeof e.props["on".concat(t)]&&e.props["on".concat(t)](a),!0}};"undefined"==typeof window&&(r=function(){return function(){}});var a=r;t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(413))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(5)),o=r(n(12)),i=r(n(13)),s=r(n(14)),l=r(n(15)),u=r(n(16)),d=r(n(10)),c=r(n(4)),f=r(n(1)),h=(r(n(0)),r(n(9))),p=r(n(8)),m=r(n(40)),y=n(21),v=(r(n(414)),function(e){return{root:(0,c.default)({},e.typography.button,(0,d.default)({maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",padding:0,minHeight:48,flexShrink:0,overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.breakpoints.up("md"),{fontSize:e.typography.pxToRem(13),minWidth:160})),labelIcon:{minHeight:72,paddingTop:9},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.4}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,maxWidth:"none"},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},labelContainer:(0,d.default)({width:"100%",boxSizing:"border-box",padding:"6px 12px"},e.breakpoints.up("md"),{padding:"6px 24px"}),label:{},labelWrapped:{}}});t.styles=v;var g=function(e){function t(){var e,n;(0,o.default)(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(n=(0,s.default)(this,(e=(0,l.default)(t)).call.apply(e,[this].concat(a)))).state={labelWrapped:!1},n.handleChange=function(e){var t=n.props,r=t.onChange,a=t.value,o=t.onClick;r&&r(e,a),o&&o(e)},n.checkTextWrap=function(){if(n.labelRef){var e=n.labelRef.getClientRects().length>1;n.state.labelWrapped!==e&&n.setState({labelWrapped:e})}},n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.checkTextWrap()}},{key:"componentDidUpdate",value:function(e,t){this.state.labelWrapped===t.labelWrapped&&this.checkTextWrap()}},{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.classes,i=r.className,s=r.disabled,l=r.fullWidth,u=r.icon,p=r.indicator,v=r.label,g=(r.onChange,r.selected),A=r.textColor,b=(r.value,(0,a.default)(r,["classes","className","disabled","fullWidth","icon","indicator","label","onChange","selected","textColor","value"]));return void 0!==v&&(t=f.default.createElement("span",{className:o.labelContainer},f.default.createElement("span",{className:(0,h.default)(o.label,(0,d.default)({},o.labelWrapped,this.state.labelWrapped)),ref:function(e){n.labelRef=e}},v))),f.default.createElement(m.default,(0,c.default)({focusRipple:!0,className:(0,h.default)(o.root,o["textColor".concat((0,y.capitalize)(A))],(e={},(0,d.default)(e,o.disabled,s),(0,d.default)(e,o.selected,g),(0,d.default)(e,o.labelIcon,u&&t),(0,d.default)(e,o.fullWidth,l),e),i),role:"tab","aria-selected":g,disabled:s},b,{onClick:this.handleChange}),f.default.createElement("span",{className:o.wrapper},u,t),p)}}]),t}(f.default.Component);g.defaultProps={disabled:!1,textColor:"inherit"};var A=(0,p.default)(v,{name:"MuiTab"})(g);t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t,n,r,a){return null};t.default=r},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=s(n(417)),a=s(n(421)),o=s(n(77)),i=s(n(41));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:o.default,ReplaceTransition:a.default,CSSTransition:r.default}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(0));var r=s(n(418)),a=s(n(420)),o=s(n(1)),i=s(n(41));n(119);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})},c=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),u(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("enter").doneClassName;t.removeClasses(e,n?"appear":"enter"),u(e,r),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),u(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),u(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"!=typeof n?n[e]:n+"-"+e;return{className:r,activeClassName:"string"!=typeof n?n[e+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[e+"Done"]:r+"-done"}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,a=n.activeClassName,o=n.doneClassName;r&&d(e,r),a&&d(e,a),o&&d(e,o)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,u(e,t))},a.render=function(){var e=l({},this.props);return delete e.classNames,o.default.createElement(i.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);c.propTypes={};var f=c;t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var a=r(n(419));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;i(n(0));var r=i(n(1)),a=n(20),o=i(n(77));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.handleLifecycle=function(e,t,n){var o,i=this.props.children,s=r.default.Children.toArray(i)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["children","in"]),i=r.default.Children.toArray(t),s=i[0],l=i[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,r.default.createElement(o.default,a,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(30),o=r(n(121)),i=r(n(423));t.defaultChartColor=i.default[300],t.theme=a.createMuiTheme({palette:{primary:{light:o.default[300],main:o.default[500],dark:o.default[700],contrastText:"#fff"}},typography:{useNextVariants:!0}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"};t.default=r},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(1)),l=o(n(425)),u=n(30),d=o(n(428)),c=o(n(478)),f=o(n(480)),h=o(n(482)),p=o(n(484)),m=o(n(486)),y=o(n(488)),v=o(n(491)),g=o(n(53)),A=o(n(133)),b=n(494),M=o(n(282)),k=i(n(638));function x(e){return Math.floor(Math.random()*Math.floor(e))}function w(e,t){for(var n,r,a=e.slice(0),o=e.length,i=o-t;o-- >i;)n=a[r=Math.floor((o+1)*Math.random())],a[r]=a[o],a[o]=n;return a.slice(i)}var T=[15,10,5,1],L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={colorMatrix:t.genMatrix(20),n:"20",k:"10",alpha:"8",nodesPerTick:"20",maxInactiveTicks:"200",loaded:!0,ticking:!1,simulationSpeed:100,dialogOpen:!1,dialogMsg:{title:"",message:""},nError:!1,kError:!1,alphaError:!1,nodesPerTickError:!1,maxInactiveTicksError:!1,dcnts:[T.map(function(){return[]}),T.map(function(){return[]})],ticks:[],N:400},n.config={iter:0,n:20,k:10,alpha:8,nodesPerTick:10,maxInactiveTicks:200,inactiveTicks:0},n}return a(t,e),t.genMatrix=function(e){for(var t=[],n=0;n<e;n++){for(var r=[],a=0;a<e;a++)r.push({d:[0,0],col:x(2)});t.push(r)}return t},t.prototype.getNodeState=function(e,t){var n=Math.floor(t/e),r=t%e;return this.state.colorMatrix[n][r]},t.prototype.setNodeState=function(e,t,n){var r=Math.floor(t/e),a=t%e,o=this.state.colorMatrix.slice();o[r][a]=n,this.setState({colorMatrix:o})},t.prototype.tick=function(e,t){for(var n=this,r=e*e,a=!1,o=[],i=0;i<r;i++)o.push(i);if(w(o,t).forEach(function(t){for(var o=x(r),i=[],s=0;s<r;s++)s!=o&&i.push(s);var l=w(i,n.config.k),u=[0,0];l.forEach(function(t){var r=n.getNodeState(e,t);u[r.col]++});for(var d=n.getNodeState(e,o),c=0;c<2;c++)u[c]>=n.config.alpha&&(d.d[c]++,d.d[c]>d.d[d.col]&&(d.col!=c&&(a=!0),d.col=c,n.setNodeState(e,o,d)))}),this.config.iter%10==0){for(var s=[],l=function(t){s.push(T.map(function(r,a){for(var o=0,i=0;i<e;i++)for(var s=0;s<e;s++){n.state.colorMatrix[i][s].d[t]>=r&&o++}return 0==t&&(o=-o),n.state.dcnts[t][a].concat([o]).splice(-50)}))},u=0;u<2;u++)l(u);this.setState({dcnts:s,ticks:this.state.ticks.concat([this.config.iter]).splice(-50)})}return a},t.prototype.pauseTick=function(){this.setState({ticking:!1})},t.prototype.startTick=function(){var e=Number(this.state.n),n=e*e,r=Number(this.state.k),a=Number(this.state.alpha),o=Number(this.state.nodesPerTick),i=Number(this.state.maxInactiveTicks);!Number.isInteger(e)||e<2||e>40?this.setState({nError:!0}):!Number.isInteger(r)||r<1||r>=n?this.setState({kError:!0}):Number.isInteger(a)&&r/2<a&&a<=r?!Number.isInteger(o)||o<1||o>n?this.setState({nodesPerTickError:!0}):!Number.isInteger(i)||i<1||i>1e6?this.setState({maxInactiveTicksError:!0}):(this.state.loaded||(this.config.iter=0,this.config.n=e,this.setState({loaded:!0,colorMatrix:t.genMatrix(this.config.n),dcnts:[T.map(function(){return[]}),T.map(function(){return[]})],ticks:[],N:e*e})),this.config.alpha=a,this.config.k=r,this.config.nodesPerTick=o,this.config.inactiveTicks=0,this.config.maxInactiveTicks=i,this.autoTick()):this.setState({alphaError:!0})},t.prototype.autoTick=function(){var e=this;this.setState({ticking:!0}),setTimeout(function(){var t=e.tick(e.config.n,e.config.nodesPerTick);if(e.config.iter++,t)e.config.inactiveTicks=0;else if(++e.config.inactiveTicks>e.config.maxInactiveTicks)return void e.pauseTick();e.state.ticking&&e.autoTick()},1e3/this.state.simulationSpeed)},t.prototype.reset=function(){this.setState({ticking:!1,loaded:!1})},t.prototype.flipNode=function(e,t){var n=this.state.colorMatrix[e][t],r=this.config.n;n.col=1-n.col,this.setNodeState(r,e*r+t,n)},t.prototype.render=function(){var e=this,t=this.props.classes;return s.default.createElement(l.default,{container:!0,spacing:16,style:{minWidth:600}},s.default.createElement(l.default,{item:!0,lg:6,xs:12,className:t.grid},s.default.createElement(k.default,{data:this.state.colorMatrix,onClickNode:function(t,n){return e.flipNode(t,n)},onHoverNode:function(t,n){return e.flipNode(t,n)}}),s.default.createElement("div",{style:{position:"relative",height:"40vh"}},s.default.createElement(b.Line,{data:function(){return{datasets:e.state.dcnts.map(function(e,t){return e.map(function(e,n){var r=k.getNodeColor(T[n],t);return{data:e,label:(0==t?"A":"B")+"(d-"+T[n]+")",borderColor:r,backgroundColor:M.default(r).fade(.5).rgb().string(),borderWidth:2}})}).flat(),labels:e.state.ticks}},options:{scales:{yAxes:[{ticks:{min:-this.state.N,max:this.state.N}}]},maintainAspectRatio:!1}}))),s.default.createElement(l.default,{item:!0,lg:4,xs:12},s.default.createElement(g.default,{variant:"body1",paragraph:!0},"This demo shows the Snowball protocol used as the core of a peer-to-peer payment system, Avalanche, introduced in ",s.default.createElement(A.default,{href:"https://avalabs.org/QmT1ry38PAmnhparPUmsUNHDEGHQusBLD6T5XJh4mUUn3v.pdf",target:"_blank",rel:"noopener"},"this paper")," . It visualizes the process of a binary, single-decree, probabilistic Snowball consensus that harnesses metastability to guarantee safety. Little squares represent different nodes, wherein the color of each square represents its current proposal. Darkness of the color shows the node's conviction in that proposal. Expectedly, all nodes will collapse to the same color in the end."),s.default.createElement(g.default,{variant:"body1",paragraph:!0},"Try to click or move the mouse when clicked to flip the color of squares. Are you able to prevent them from going to a single color?"),s.default.createElement(c.default,null,s.default.createElement(f.default,null,s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"n ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:2},value:this.state.n,disabled:this.state.loaded,style:{width:40},error:this.state.nError,onChange:function(t){return e.setState({n:t.target.value,nError:!1})}}),s.default.createElement("sup",null,"2"),this.state.nError&&s.default.createElement("span",{className:t.errorHint},"n must be in 2..40"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"k ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:4},value:this.state.k,disabled:this.state.ticking,style:{width:40},error:this.state.kError,onChange:function(t){return e.setState({k:t.target.value,kError:!1})}}),this.state.kError&&s.default.createElement("span",{className:t.errorHint},"k must be in 1..(n-1)"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"alpha ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:4},value:this.state.alpha,disabled:this.state.ticking,style:{width:40},error:this.state.alphaError,onChange:function(t){return e.setState({alpha:t.target.value,alphaError:!1})}}),this.state.alphaError&&s.default.createElement("span",{className:t.errorHint},"alpha must be in (k/2, k]"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"nodesPerTick ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue,maxLength:4},value:this.state.nodesPerTick,disabled:this.state.ticking,style:{width:40},error:this.state.nodesPerTickError,onChange:function(t){return e.setState({nodesPerTick:t.target.value,nodesPerTickError:!1})}}),this.state.nodesPerTickError&&s.default.createElement("span",{className:t.errorHint},"nodesPerTick must be in 1..n"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"maxInactiveTicks ="),s.default.createElement(p.default,null,s.default.createElement(d.default,{inputProps:{className:t.inputValue},value:this.state.maxInactiveTicks,disabled:this.state.ticking,style:{width:50},error:this.state.maxInactiveTicksError,onChange:function(t){return e.setState({maxInactiveTicks:t.target.value,maxInactiveTicksError:!1})}}),this.state.maxInactiveTicksError&&s.default.createElement("span",{className:t.errorHint},"maxInactiveTicks must be in 1..1000000"))),s.default.createElement(h.default,null,s.default.createElement(p.default,{className:t.inputLabel},"simulationSpeed"),s.default.createElement(p.default,null,s.default.createElement(y.default,{classes:{container:t.slider},value:this.state.simulationSpeed,min:1,max:1e3,onChange:function(t,n){return e.setState({simulationSpeed:n})}}))))),s.default.createElement("div",{className:t.buttonSpacer}),s.default.createElement("div",{className:t.bottomButtons},s.default.createElement(l.default,{container:!0,item:!0,spacing:16},s.default.createElement(l.default,{item:!0,md:4,xs:12},s.default.createElement(v.default,null,s.default.createElement(m.default,{variant:"contained",color:"primary",onClick:function(t){return e.startTick()},disabled:this.state.ticking},"Run"))),s.default.createElement(l.default,{item:!0,md:4,xs:12},s.default.createElement(v.default,null,s.default.createElement(m.default,{variant:"contained",color:"primary",onClick:function(t){return e.pauseTick()},disabled:!this.state.ticking},"Stop"))),s.default.createElement(l.default,{item:!0,md:4,xs:12},s.default.createElement(v.default,null,s.default.createElement(m.default,{variant:"contained",color:"primary",onClick:function(t){return e.reset()}},"Reset")))))))},t}(s.default.Component);t.default=u.withStyles(function(e){return{inputLabel:{fontSize:16,paddingRight:0,textAlign:"right",width:"30%"},inputValue:{textAlign:"left"},buttonSpacer:{marginBottom:4*e.spacing.unit},bottomButtons:{marginTop:10,textAlign:"center"},slider:{padding:"22px 0px"},errorHint:{fontSize:16,paddingLeft:16,lineHeight:"32px",color:e.palette.secondary.main},grid:{textAlign:"center"}}})(L)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(426))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(5)),i=r(n(4)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(97),c=(r(n(427)),[0,8,16,24,32,40]),f=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var h=function(e){return(0,i.default)({container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return c.forEach(function(e,r){0!==r&&(n["spacing-".concat(t,"-").concat(e)]={margin:-e/2,width:"calc(100% + ".concat(e,"px)"),"& > $item":{padding:e/2}})}),n}(0,"xs"),d.keys.reduce(function(t,n){return function(e,t,n){var r={};f.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var a="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:a,flexGrow:0,maxWidth:a}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?(0,i.default)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))};function p(e){var t,n=e.alignContent,r=e.alignItems,u=e.classes,d=e.className,c=e.component,f=e.container,h=e.direction,m=e.item,y=e.justify,v=e.lg,g=e.md,A=e.sm,b=e.spacing,M=e.wrap,k=e.xl,x=e.xs,w=e.zeroMinWidth,T=(0,o.default)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),L=(0,l.default)((t={},(0,a.default)(t,u.container,f),(0,a.default)(t,u.item,m),(0,a.default)(t,u.zeroMinWidth,w),(0,a.default)(t,u["spacing-xs-".concat(String(b))],f&&0!==b),(0,a.default)(t,u["direction-xs-".concat(String(h))],h!==p.defaultProps.direction),(0,a.default)(t,u["wrap-xs-".concat(String(M))],M!==p.defaultProps.wrap),(0,a.default)(t,u["align-items-xs-".concat(String(r))],r!==p.defaultProps.alignItems),(0,a.default)(t,u["align-content-xs-".concat(String(n))],n!==p.defaultProps.alignContent),(0,a.default)(t,u["justify-xs-".concat(String(y))],y!==p.defaultProps.justify),(0,a.default)(t,u["grid-xs-".concat(String(x))],!1!==x),(0,a.default)(t,u["grid-sm-".concat(String(A))],!1!==A),(0,a.default)(t,u["grid-md-".concat(String(g))],!1!==g),(0,a.default)(t,u["grid-lg-".concat(String(v))],!1!==v),(0,a.default)(t,u["grid-xl-".concat(String(k))],!1!==k),t),d);return s.default.createElement(c,(0,i.default)({className:L},T))}t.styles=h,p.defaultProps={alignContent:"stretch",alignItems:"stretch",component:"div",container:!1,direction:"row",item:!1,justify:"flex-start",lg:!1,md:!1,sm:!1,spacing:0,wrap:"wrap",xl:!1,xs:!1,zeroMinWidth:!1};var m=(0,u.default)(h,{name:"MuiGrid"})(p);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return function(){return null}};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(429))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=r(n(20)),h=(r(n(6)),r(n(0)),r(n(78))),p=r(n(433)),m=r(n(435)),y=r(n(438)),v=r(n(442)),g=r(n(444)),A=r(n(446)),b={standard:h.default,filled:p.default,outlined:m.default},M=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this,e))).labelRef=c.default.createRef(),n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){"outlined"===this.props.variant&&(this.labelNode=f.default.findDOMNode(this.labelRef.current),this.forceUpdate())}},{key:"render",value:function(){var e=this.props,t=e.autoComplete,n=e.autoFocus,r=e.children,i=e.className,s=e.defaultValue,l=e.error,u=e.FormHelperTextProps,d=e.fullWidth,f=e.helperText,h=e.id,p=e.InputLabelProps,m=e.inputProps,M=e.InputProps,k=e.inputRef,x=e.label,w=e.multiline,T=e.name,L=e.onBlur,S=e.onChange,D=e.onFocus,Y=e.placeholder,j=e.required,E=e.rows,P=e.rowsMax,O=e.select,C=e.SelectProps,H=e.type,R=e.value,N=e.variant,F=(0,o.default)(e,["autoComplete","autoFocus","children","className","defaultValue","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),W={};"outlined"===N&&(p&&void 0!==p.shrink&&(W.notched=p.shrink),W.labelWidth=this.labelNode&&this.labelNode.offsetWidth||0);var z=f&&h?"".concat(h,"-helper-text"):void 0,I=b[N],V=c.default.createElement(I,(0,a.default)({"aria-describedby":z,autoComplete:t,autoFocus:n,defaultValue:s,fullWidth:d,multiline:w,name:T,rows:E,rowsMax:P,type:H,value:R,id:h,inputRef:k,onBlur:L,onChange:S,onFocus:D,placeholder:Y,inputProps:m},W,M));return c.default.createElement(v.default,(0,a.default)({className:i,error:l,fullWidth:d,required:j,variant:N},F),x&&c.default.createElement(y.default,(0,a.default)({htmlFor:h,ref:this.labelRef},p),x),O?c.default.createElement(A.default,(0,a.default)({"aria-describedby":z,value:R,input:V},C),r):V,f&&c.default.createElement(g.default,(0,a.default)({id:z},u),f))}}]),t}(c.default.Component);M.defaultProps={required:!1,select:!1,variant:"standard"};var k=M;t.default=k},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(4)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(79))),d=r(n(8)),c=function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):not($focused):not($error):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputType:{},inputTypeSearch:{}}};function f(e){var t=e.disableUnderline,n=e.classes,r=(0,i.default)(e,["disableUnderline","classes"]);return s.default.createElement(u.default,(0,o.default)({classes:(0,o.default)({},n,{root:(0,l.default)(n.root,(0,a.default)({},n.underline,!t)),underline:null})},r))}t.styles=c,u.default.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"},f.muiName="Input";var h=(0,d.default)(c,{name:"MuiInput"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(14)),u=r(n(15)),d=r(n(13)),c=r(n(16)),f=r(n(1)),h=(r(n(0)),r(n(6)),r(n(9))),p=(n(7),r(n(34))),m=r(n(80)),y=r(n(35)),v=r(n(8)),g=n(36),A=r(n(432)),b=n(81),M=function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:0},a={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px")},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1}},inputMarginDense:{paddingTop:3},inputMultiline:{resize:"none",padding:0},inputType:{height:"1.1875em"},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{}}};t.styles=M;var k=function(e){function t(e){var n;return(0,s.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this,e))).state={focused:!1},n.handleFocus=function(e){var t=n.props.muiFormControl;(0,p.default)({props:n.props,muiFormControl:t,states:["disabled"]}).disabled?e.stopPropagation():(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus(e),t&&t.onFocus&&t.onFocus(e))},n.handleBlur=function(e){n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur(e);var t=n.props.muiFormControl;t&&t.onBlur&&t.onBlur(e)},n.handleChange=function(){var e;(n.isControlled||n.checkDirty(n.inputRef),n.props.onChange)&&(e=n.props).onChange.apply(e,arguments)},n.handleRefInput=function(e){var t;n.inputRef=e,n.props.inputRef?t=n.props.inputRef:n.props.inputProps&&n.props.inputProps.ref&&(t=n.props.inputProps.ref),(0,g.setRef)(t,e)},n.handleClick=function(e){n.inputRef&&e.currentTarget===e.target&&n.inputRef.focus(),n.props.onClick&&n.props.onClick(e)},n.isControlled=null!=e.value,n.isControlled&&n.checkDirty(e),n}return(0,c.default)(t,e),(0,d.default)(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.focused?{focused:!1}:null}}]),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.isControlled||this.checkDirty(this.inputRef)}},{key:"componentDidUpdate",value:function(e){if(!e.disabled&&this.props.disabled){var t=this.props.muiFormControl;t&&t.onBlur&&t.onBlur()}this.isControlled&&this.checkDirty(this.props)}},{key:"checkDirty",value:function(e){var t=this.props.muiFormControl;if((0,b.isFilled)(e))return t&&t.onFilled&&t.onFilled(),void(this.props.onFilled&&this.props.onFilled());t&&t.onEmpty&&t.onEmpty(),this.props.onEmpty&&this.props.onEmpty()}},{key:"render",value:function(){var e,t,n=this.props,r=n.autoComplete,s=n.autoFocus,l=n.classes,u=n.className,d=n.defaultValue,c=(n.disabled,n.endAdornment),y=(n.error,n.fullWidth),v=n.id,g=n.inputComponent,b=n.inputProps,M=(b=void 0===b?{}:b).className,k=(0,i.default)(b,["className"]),x=(n.inputRef,n.margin,n.muiFormControl),w=n.multiline,T=n.name,L=(n.onBlur,n.onChange,n.onClick,n.onEmpty,n.onFilled,n.onFocus,n.onKeyDown),S=n.onKeyUp,D=n.placeholder,Y=n.readOnly,j=n.renderPrefix,E=n.rows,P=n.rowsMax,O=n.startAdornment,C=n.type,H=n.value,R=(0,i.default)(n,["autoComplete","autoFocus","classes","className","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","muiFormControl","multiline","name","onBlur","onChange","onClick","onEmpty","onFilled","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderPrefix","rows","rowsMax","startAdornment","type","value"]),N=R["aria-describedby"];delete R["aria-describedby"];var F=(0,p.default)({props:this.props,muiFormControl:x,states:["disabled","error","margin","required","filled"]}),W=x?x.focused:this.state.focused,z=(0,h.default)(l.root,(e={},(0,o.default)(e,l.disabled,F.disabled),(0,o.default)(e,l.error,F.error),(0,o.default)(e,l.fullWidth,y),(0,o.default)(e,l.focused,W),(0,o.default)(e,l.formControl,x),(0,o.default)(e,l.marginDense,"dense"===F.margin),(0,o.default)(e,l.multiline,w),(0,o.default)(e,l.adornedStart,O),(0,o.default)(e,l.adornedEnd,c),e),u),I=(0,h.default)(l.input,(t={},(0,o.default)(t,l.disabled,F.disabled),(0,o.default)(t,l.inputType,"text"!==C),(0,o.default)(t,l.inputTypeSearch,"search"===C),(0,o.default)(t,l.inputMultiline,w),(0,o.default)(t,l.inputMarginDense,"dense"===F.margin),(0,o.default)(t,l.inputAdornedStart,O),(0,o.default)(t,l.inputAdornedEnd,c),t),M),V=g,B=(0,a.default)({},k,{ref:this.handleRefInput});return"string"!=typeof V?B=(0,a.default)({inputRef:this.handleRefInput,type:C},B,{ref:null}):w?E&&!P?V="textarea":(B=(0,a.default)({rowsMax:P,textareaRef:this.handleRefInput},B,{ref:null}),V=A.default):B=(0,a.default)({type:C},B),f.default.createElement("div",(0,a.default)({className:z,onClick:this.handleClick},R),j?j((0,a.default)({},F,{startAdornment:O,focused:W})):null,O,f.default.createElement(m.default.Provider,{value:null},f.default.createElement(V,(0,a.default)({"aria-invalid":F.error,"aria-describedby":N,autoComplete:r,autoFocus:s,className:I,defaultValue:d,disabled:F.disabled,id:v,name:T,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:L,onKeyUp:S,placeholder:D,readOnly:Y,required:F.required,rows:E,value:H},B))),c)}}]),t}(f.default.Component);k.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"};var x=(0,v.default)(M,{name:"MuiInputBase"})((0,y.default)(k));t.default=x},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(9))),h=r(n(55)),p=r(n(54)),m=r(n(8)),y=n(36),v=19,g={root:{position:"relative",width:"100%"},textarea:{width:"100%",height:"100%",resize:"none",font:"inherit",padding:0,cursor:"inherit",boxSizing:"border-box",lineHeight:"inherit",border:"none",outline:"none",background:"transparent"},shadow:{overflow:"hidden",visibility:"hidden",position:"absolute",height:"auto",whiteSpace:"pre-wrap"}};t.styles=g;var A=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this))).handleRefInput=function(e){n.inputRef=e,(0,y.setRef)(n.props.textareaRef,e)},n.handleRefSinglelineShadow=function(e){n.singlelineShadowRef=e},n.handleRefShadow=function(e){n.shadowRef=e},n.handleChange=function(e){n.value=e.target.value,n.isControlled||(n.shadowRef.value=n.value,n.syncHeightWithShadow()),n.props.onChange&&n.props.onChange(e)},n.isControlled=null!=e.value,n.value=e.value||e.defaultValue||"",n.state={height:Number(e.rows)*v},"undefined"!=typeof window&&(n.handleResize=(0,h.default)(function(){n.syncHeightWithShadow()},166)),n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.syncHeightWithShadow()}},{key:"componentDidUpdate",value:function(){this.syncHeightWithShadow()}},{key:"componentWillUnmount",value:function(){this.handleResize.clear()}},{key:"syncHeightWithShadow",value:function(){var e=this.props;if(this.shadowRef){this.isControlled&&(this.shadowRef.value=null==e.value?"":String(e.value));var t=this.singlelineShadowRef.scrollHeight;t=0===t?v:t;var n=this.shadowRef.scrollHeight;void 0!==n&&(Number(e.rowsMax)>=Number(e.rows)&&(n=Math.min(Number(e.rowsMax)*t,n)),n=Math.max(n,t),Math.abs(this.state.height-n)>1&&this.setState({height:n}))}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.defaultValue,i=(e.onChange,e.rows),s=(e.rowsMax,e.style),l=(e.textareaRef,e.value),u=(0,o.default)(e,["classes","className","defaultValue","onChange","rows","rowsMax","style","textareaRef","value"]);return c.default.createElement("div",{className:t.root},c.default.createElement(p.default,{target:"window",onResize:this.handleResize}),c.default.createElement("textarea",{"aria-hidden":"true",className:(0,f.default)(t.textarea,t.shadow),readOnly:!0,ref:this.handleRefSinglelineShadow,rows:"1",tabIndex:-1,value:""}),c.default.createElement("textarea",{"aria-hidden":"true",className:(0,f.default)(t.textarea,t.shadow),defaultValue:r,readOnly:!0,ref:this.handleRefShadow,rows:i,tabIndex:-1,value:l}),c.default.createElement("textarea",(0,a.default)({rows:i,className:(0,f.default)(t.textarea,n),defaultValue:r,value:l,onChange:this.handleChange,ref:this.handleRefInput,style:(0,a.default)({height:this.state.height},s)},u)))}}]),t}(c.default.Component);A.defaultProps={rows:1};var b=(0,m.default)(g,{name:"MuiPrivateTextarea"})(A);t.default=b},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(434))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(4)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(79))),d=r(n(8)),c=function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):not($focused):not($error):before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottom:"1px dotted ".concat(n)}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},multiline:{padding:"27px 12px 10px",boxSizing:"border-box"},input:{padding:"27px 12px 10px"},inputMarginDense:{paddingTop:24,paddingBottom:6},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}};function f(e){var t=e.disableUnderline,n=e.classes,r=(0,i.default)(e,["disableUnderline","classes"]);return s.default.createElement(u.default,(0,o.default)({classes:(0,o.default)({},n,{root:(0,l.default)(n.root,(0,a.default)({},n.underline,!t)),underline:null})},r))}t.styles=c,u.default.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"},f.muiName="Input";var h=(0,d.default)(c,{name:"MuiFilledInput"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(436))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=(n(7),r(n(79))),u=r(n(437)),d=r(n(8)),c=function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative","& $notchedOutline":{borderColor:t},"&:hover:not($disabled):not($focused):not($error) $notchedOutline":{borderColor:e.palette.text.primary,"@media (hover: none)":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},multiline:{padding:"18.5px 14px",boxSizing:"border-box"},notchedOutline:{},input:{padding:"18.5px 14px"},inputMarginDense:{paddingTop:15,paddingBottom:15},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}};function f(e){var t=e.classes,n=e.labelWidth,r=e.notched,d=(0,o.default)(e,["classes","labelWidth","notched"]);return i.default.createElement(l.default,(0,a.default)({renderPrefix:function(e){return i.default.createElement(u.default,{className:t.notchedOutline,labelWidth:n,notched:void 0!==r?r:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,a.default)({},t,{root:(0,s.default)(t.root,t.underline),notchedOutline:null})},d))}t.styles=c,l.default.defaultProps={fullWidth:!1,inputComponent:"input",multiline:!1,type:"text"},f.muiName="Input";var h=(0,d.default)(c,{name:"MuiOutlinedInput"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(4)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=n(30),d=n(21),c=function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:e.shape.borderRadius,borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}};t.styles=c;var f=(0,u.withStyles)(c,{name:"MuiPrivateNotchedOutline",withTheme:!0})(function(e){e.children;var t=e.classes,n=e.className,r=e.labelWidth,u=e.notched,c=e.style,f=e.theme,h=(0,i.default)(e,["children","classes","className","labelWidth","notched","style","theme"]),p="rtl"===f.direction?"right":"left",m=r>0?.75*r+8:0;return s.default.createElement("fieldset",(0,o.default)({"aria-hidden":!0,style:(0,o.default)((0,a.default)({},"padding".concat((0,d.capitalize)(p)),8+(u?0:m/2)),c),className:(0,l.default)(t.root,n)},h),s.default.createElement("legend",{className:t.legend,style:{width:u?m:.01}},s.default.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))});t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(439))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(34)),d=r(n(35)),c=r(n(8)),f=r(n(440)),h=function(e){return{root:{transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 17px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}};function p(e){var t,n=e.children,r=e.classes,d=e.className,c=e.disableAnimation,h=e.FormLabelClasses,p=(e.margin,e.muiFormControl),m=e.shrink,y=(e.variant,(0,i.default)(e,["children","classes","className","disableAnimation","FormLabelClasses","margin","muiFormControl","shrink","variant"])),v=m;void 0===v&&p&&(v=p.filled||p.focused||p.adornedStart);var g=(0,u.default)({props:e,muiFormControl:p,states:["margin","variant"]}),A=(0,l.default)(r.root,(t={},(0,o.default)(t,r.formControl,p),(0,o.default)(t,r.animated,!c),(0,o.default)(t,r.shrink,v),(0,o.default)(t,r.marginDense,"dense"===g.margin),(0,o.default)(t,r.filled,"filled"===g.variant),(0,o.default)(t,r.outlined,"outlined"===g.variant),t),d);return s.default.createElement(f.default,(0,a.default)({"data-shrink":v,className:A,classes:(0,a.default)({focused:r.focused,disabled:r.disabled,error:r.error,required:r.required},h)},y),n)}t.styles=h,p.defaultProps={disableAnimation:!1};var m=(0,c.default)(h,{name:"MuiInputLabel"})((0,d.default)(p));t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(441))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(34))),d=r(n(35)),c=r(n(8)),f=function(e){return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.secondary,fontSize:e.typography.pxToRem(16),lineHeight:1,padding:0,"&$focused":{color:e.palette.primary["light"===e.palette.type?"dark":"light"]},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}};function h(e){var t,n=e.children,r=e.classes,d=e.className,c=e.component,f=(e.disabled,e.error,e.filled,e.focused,e.muiFormControl),h=(e.required,(0,i.default)(e,["children","classes","className","component","disabled","error","filled","focused","muiFormControl","required"])),p=(0,u.default)({props:e,muiFormControl:f,states:["required","focused","disabled","error","filled"]});return s.default.createElement(c,(0,a.default)({className:(0,l.default)(r.root,(t={},(0,o.default)(t,r.disabled,p.disabled),(0,o.default)(t,r.error,p.error),(0,o.default)(t,r.filled,p.filled),(0,o.default)(t,r.focused,p.focused),(0,o.default)(t,r.required,p.required),t),d)},h),n,p.required&&s.default.createElement("span",{className:(0,l.default)(r.asterisk,(0,o.default)({},r.error,p.error))}," *"))}t.styles=f,h.defaultProps={component:"label"};var p=(0,c.default)(f,{name:"MuiFormLabel"})((0,d.default)(h));t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(443))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(14)),u=r(n(15)),d=r(n(13)),c=r(n(16)),f=r(n(1)),h=(r(n(0)),r(n(9))),p=(n(7),n(81)),m=r(n(8)),y=n(21),v=n(36),g=r(n(80)),A={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}};t.styles=A;var b=function(e){function t(e){var n;(0,s.default)(this,t),(n=(0,l.default)(this,(0,u.default)(t).call(this))).handleFocus=function(){n.setState(function(e){return e.focused?null:{focused:!0}})},n.handleBlur=function(){n.setState(function(e){return e.focused?{focused:!1}:null})},n.handleDirty=function(){n.state.filled||n.setState({filled:!0})},n.handleClean=function(){n.state.filled&&n.setState({filled:!1})},n.state={adornedStart:!1,filled:!1,focused:!1};var r=e.children;return r&&f.default.Children.forEach(r,function(e){if((0,v.isMuiElement)(e,["Input","Select"])){(0,p.isFilled)(e.props,!0)&&(n.state.filled=!0);var t=(0,v.isMuiElement)(e,["Select"])?e.props.input:e;t&&(0,p.isAdornedStart)(t.props)&&(n.state.adornedStart=!0)}}),n}return(0,c.default)(t,e),(0,d.default)(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.focused?{focused:!1}:null}}]),(0,d.default)(t,[{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.className,s=t.component,l=t.disabled,u=t.error,d=t.fullWidth,c=t.margin,p=t.required,m=t.variant,v=(0,i.default)(t,["classes","className","component","disabled","error","fullWidth","margin","required","variant"]),A=this.state,b={adornedStart:A.adornedStart,disabled:l,error:u,filled:A.filled,focused:A.focused,margin:c,onBlur:this.handleBlur,onEmpty:this.handleClean,onFilled:this.handleDirty,onFocus:this.handleFocus,required:p,variant:m};return f.default.createElement(g.default.Provider,{value:b},f.default.createElement(s,(0,a.default)({className:(0,h.default)(n.root,(e={},(0,o.default)(e,n["margin".concat((0,y.capitalize)(c))],"none"!==c),(0,o.default)(e,n.fullWidth,d),e),r)},v)))}}]),t}(f.default.Component);b.defaultProps={component:"div",disabled:!1,error:!1,fullWidth:!1,margin:"none",required:!1,variant:"standard"};var M=(0,m.default)(A,{name:"MuiFormControl"})(b);t.default=M},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(445))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(34))),d=r(n(35)),c=r(n(8)),f=function(e){return{root:{color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}},error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 12px 0"},focused:{},filled:{},required:{}}};function h(e){var t,n=e.classes,r=e.className,d=e.component,c=(e.disabled,e.error,e.filled,e.focused,e.margin,e.muiFormControl),f=(e.required,e.variant,(0,i.default)(e,["classes","className","component","disabled","error","filled","focused","margin","muiFormControl","required","variant"])),h=(0,u.default)({props:e,muiFormControl:c,states:["variant","margin","disabled","error","filled","focused","required"]});return s.default.createElement(d,(0,a.default)({className:(0,l.default)(n.root,(t={},(0,o.default)(t,n.contained,"filled"===h.variant||"outlined"===h.variant),(0,o.default)(t,n.marginDense,"dense"===h.margin),(0,o.default)(t,n.disabled,h.disabled),(0,o.default)(t,n.error,h.error),(0,o.default)(t,n.filled,h.filled),(0,o.default)(t,n.focused,h.focused),(0,o.default)(t,n.required,h.required),t),r)},f))}t.styles=f,h.defaultProps={component:"p"};var p=(0,c.default)(f,{name:"MuiFormHelperText"})((0,d.default)(h));t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(447))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),n(7),r(n(448))),l=r(n(34)),u=r(n(35)),d=r(n(8)),c=r(n(113)),f=r(n(130)),h=r(n(78)),p=n(477),m=r(n(131)),y=p.styles;function v(e){var t=e.autoWidth,n=e.children,r=e.classes,u=e.displayEmpty,d=e.IconComponent,f=e.input,h=e.inputProps,p=e.MenuProps,y=e.muiFormControl,g=e.multiple,A=e.native,b=e.onClose,M=e.onOpen,k=e.open,x=e.renderValue,w=e.SelectDisplayProps,T=(e.variant,(0,o.default)(e,["autoWidth","children","classes","displayEmpty","IconComponent","input","inputProps","MenuProps","muiFormControl","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"])),L=A?m.default:s.default,S=(0,l.default)({props:e,muiFormControl:y,states:["variant"]});return i.default.cloneElement(f,(0,a.default)({inputComponent:L,inputProps:(0,a.default)({children:n,IconComponent:d,variant:S.variant,type:void 0,multiple:g},A?{}:{autoWidth:t,displayEmpty:u,MenuProps:p,onClose:b,onOpen:M,open:k,renderValue:x,SelectDisplayProps:w},h,{classes:h?(0,c.default)({baseClasses:r,newClasses:h.classes,Component:v}):r},f?f.props.inputProps:{})},T))}t.styles=y,v.defaultProps={autoWidth:!1,displayEmpty:!1,IconComponent:f.default,input:i.default.createElement(h.default,null),multiple:!1,native:!1},v.muiName="Select";var g=(0,d.default)(y,{name:"MuiSelect"})((0,u.default)(v));t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(117)),l=r(n(12)),u=r(n(13)),d=r(n(14)),c=r(n(15)),f=r(n(16)),h=r(n(31)),p=r(n(1)),m=(r(n(0)),r(n(9))),y=(r(n(6)),n(7),r(n(449))),v=n(81),g=n(36);function A(e,t){return"object"===(0,h.default)(t)&&null!==t?e===t:String(e)===String(t)}var b=function(e){function t(e){var n;return(0,l.default)(this,t),(n=(0,d.default)(this,(0,c.default)(t).call(this))).ignoreNextBlur=!1,n.update=function(e){var t=e.event,r=e.open;n.isOpenControlled?r?n.props.onOpen(t):n.props.onClose(t):n.setState({menuMinWidth:n.props.autoWidth?null:n.displayRef.clientWidth,open:r})},n.handleClick=function(e){n.ignoreNextBlur=!0,n.update({open:!0,event:e})},n.handleClose=function(e){n.update({open:!1,event:e})},n.handleItemClick=function(e){return function(t){n.props.multiple||n.update({open:!1,event:t});var r=n.props,a=r.onChange,o=r.name;if(a){var i;if(n.props.multiple){var l=(i=Array.isArray(n.props.value)?(0,s.default)(n.props.value):[]).indexOf(e.props.value);-1===l?i.push(e.props.value):i.splice(l,1)}else i=e.props.value;t.persist(),t.target={value:i,name:o},a(t,e)}}},n.handleBlur=function(e){if(!0===n.ignoreNextBlur)return e.stopPropagation(),void(n.ignoreNextBlur=!1);if(n.props.onBlur){var t=n.props,r=t.value,a=t.name;e.persist(),e.target={value:r,name:a},n.props.onBlur(e)}},n.handleKeyDown=function(e){n.props.readOnly||-1!==[" ","ArrowUp","ArrowDown"].indexOf(e.key)&&(e.preventDefault(),n.ignoreNextBlur=!0,n.update({open:!0,event:e}))},n.handleDisplayRef=function(e){n.displayRef=e},n.handleInputRef=function(e){var t=n.props.inputRef;if(t){var r={node:e,value:n.props.value,focus:function(){n.displayRef.focus()}};(0,g.setRef)(t,r)}},n.isOpenControlled=void 0!==e.open,n.state={menuMinWidth:null,open:!1},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.isOpenControlled&&this.props.open&&(this.displayRef.focus(),this.forceUpdate()),this.props.autoFocus&&this.displayRef.focus()}},{key:"render",value:function(){var e,t,n=this,r=this.props,s=r.autoWidth,l=r.children,u=r.classes,d=r.className,c=r.disabled,f=r.displayEmpty,h=r.IconComponent,g=(r.inputRef,r.MenuProps),b=void 0===g?{}:g,M=r.multiple,k=r.name,x=(r.onBlur,r.onChange,r.onClose,r.onFocus),w=(r.onOpen,r.open),T=r.readOnly,L=r.renderValue,S=(r.required,r.SelectDisplayProps),D=r.tabIndex,Y=r.type,j=void 0===Y?"hidden":Y,E=r.value,P=r.variant,O=(0,i.default)(r,["autoWidth","children","classes","className","disabled","displayEmpty","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),C=this.isOpenControlled&&this.displayRef?w:this.state.open;delete O["aria-invalid"];var H="",R=[],N=!1;((0,v.isFilled)(this.props)||f)&&(L?t=L(E):N=!0);var F=p.default.Children.map(l,function(e){if(!p.default.isValidElement(e))return null;var t;if(M){if(!Array.isArray(E))throw new Error("Material-UI: the `value` property must be an array when using the `Select` component with `multiple`.");(t=E.some(function(t){return A(t,e.props.value)}))&&N&&R.push(e.props.children)}else(t=A(E,e.props.value))&&N&&(H=e.props.children);return p.default.cloneElement(e,{onClick:n.handleItemClick(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})});N&&(t=M?R.join(", "):H);var W,z=this.state.menuMinWidth;return!s&&this.isOpenControlled&&this.displayRef&&(z=this.displayRef.clientWidth),W=void 0!==D?D:c?null:0,p.default.createElement("div",{className:u.root},p.default.createElement("div",(0,a.default)({className:(0,m.default)(u.select,u.selectMenu,(e={},(0,o.default)(e,u.disabled,c),(0,o.default)(e,u.filled,"filled"===P),(0,o.default)(e,u.outlined,"outlined"===P),e),d),ref:this.handleDisplayRef,"aria-pressed":C?"true":"false",tabIndex:W,role:"button","aria-owns":C?"menu-".concat(k||""):void 0,"aria-haspopup":"true",onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,onClick:c||T?null:this.handleClick,onFocus:x,id:k?"select-".concat(k):void 0},S),t||p.default.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})),p.default.createElement("input",(0,a.default)({value:Array.isArray(E)?E.join(","):E,name:k,ref:this.handleInputRef,type:j},O)),p.default.createElement(h,{className:u.icon}),p.default.createElement(y.default,(0,a.default)({id:"menu-".concat(k||""),anchorEl:this.displayRef,open:C,onClose:this.handleClose},b,{MenuListProps:(0,a.default)({role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:(0,a.default)({},b.PaperProps,{style:(0,a.default)({minWidth:z},null!=b.PaperProps?b.PaperProps.style:null)})}),F))}}]),t}(p.default.Component);t.default=b},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(20))),h=r(n(122)),p=r(n(8)),m=r(n(450)),y=r(n(474)),v={vertical:"top",horizontal:"right"},g={vertical:"top",horizontal:"left"},A={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}};t.styles=A;var b=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).getContentAnchorEl=function(){return n.menuListRef.selectedItemRef?f.default.findDOMNode(n.menuListRef.selectedItemRef):f.default.findDOMNode(n.menuListRef).firstChild},n.focus=function(){if(n.menuListRef&&n.menuListRef.selectedItemRef)f.default.findDOMNode(n.menuListRef.selectedItemRef).focus();else{var e=f.default.findDOMNode(n.menuListRef);e&&e.firstChild&&e.firstChild.focus()}},n.handleMenuListRef=function(e){n.menuListRef=e},n.handleEntering=function(e){var t=n.props,r=t.disableAutoFocusItem,a=t.theme,o=f.default.findDOMNode(n.menuListRef);if(!0!==r&&n.focus(),o&&e.clientHeight<o.clientHeight&&!o.style.width){var i="".concat((0,h.default)(),"px");o.style["rtl"===a.direction?"paddingLeft":"paddingRight"]=i,o.style.width="calc(100% + ".concat(i,")")}n.props.onEntering&&n.props.onEntering(e)},n.handleListKeyDown=function(e){"Tab"===e.key&&(e.preventDefault(),n.props.onClose&&n.props.onClose(e,"tabKeyDown"))},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.props.open&&!0!==this.props.disableAutoFocusItem&&this.focus()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=(e.disableAutoFocusItem,e.MenuListProps),i=(e.onEntering,e.PaperProps),s=void 0===i?{}:i,l=e.PopoverClasses,u=e.theme,d=(0,o.default)(e,["children","classes","disableAutoFocusItem","MenuListProps","onEntering","PaperProps","PopoverClasses","theme"]);return c.default.createElement(m.default,(0,a.default)({getContentAnchorEl:this.getContentAnchorEl,classes:l,onEntering:this.handleEntering,anchorOrigin:"rtl"===u.direction?v:g,transformOrigin:"rtl"===u.direction?v:g,PaperProps:(0,a.default)({},s,{classes:(0,a.default)({},s.classes,{root:n.paper})})},d),c.default.createElement(y.default,(0,a.default)({onKeyDown:this.handleListKeyDown},r,{ref:this.handleMenuListRef}),t))}}]),t}(c.default.Component);b.defaultProps={disableAutoFocusItem:!1,transitionDuration:"auto"};var M=(0,p.default)(A,{name:"MuiMenu",withTheme:!0})(b);t.default=M},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(451))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(20))),h=(r(n(6)),r(n(55))),p=r(n(54)),m=(n(7),r(n(25))),y=r(n(76)),v=n(21),g=r(n(8)),A=r(n(452)),b=r(n(472)),M=r(n(114));function k(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function x(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function w(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function T(e){return"function"==typeof e?e():e}var L={paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:"none"}};t.styles=L;var S=function(e){function t(){var e;return(0,i.default)(this,t),(e=(0,l.default)(this,(0,u.default)(t).call(this))).handleGetOffsetTop=k,e.handleGetOffsetLeft=x,e.componentWillUnmount=function(){e.handleResize.clear()},e.setPositioningStyles=function(t){var n=e.getPositioningStyle(t);null!==n.top&&(t.style.top=n.top),null!==n.left&&(t.style.left=n.left),t.style.transformOrigin=n.transformOrigin},e.getPositioningStyle=function(t){var n=e.props,r=n.anchorEl,a=n.anchorReference,o=n.marginThreshold,i=e.getContentAnchorOffset(t),s={width:t.offsetWidth,height:t.offsetHeight},l=e.getTransformOrigin(s,i);if("none"===a)return{top:null,left:null,transformOrigin:w(l)};var u=e.getAnchorOffset(i),d=u.top-l.vertical,c=u.left-l.horizontal,f=d+s.height,h=c+s.width,p=(0,y.default)(T(r)),m=p.innerHeight-o,v=p.innerWidth-o;if(d<o){var g=d-o;d-=g,l.vertical+=g}else if(f>m){var A=f-m;d-=A,l.vertical+=A}if(c<o){var b=c-o;c-=b,l.horizontal+=b}else if(h>v){var M=h-v;c-=M,l.horizontal+=M}return{top:"".concat(d,"px"),left:"".concat(c,"px"),transformOrigin:w(l)}},e.handleEntering=function(t){e.props.onEntering&&e.props.onEntering(t),e.setPositioningStyles(t)},"undefined"!=typeof window&&(e.handleResize=(0,h.default)(function(){e.props.open&&e.setPositioningStyles(e.paperRef)},166)),e}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.props.action&&this.props.action({updatePosition:this.handleResize})}},{key:"getAnchorOffset",value:function(e){var t=this.props,n=t.anchorEl,r=t.anchorOrigin,a=t.anchorReference,o=t.anchorPosition;if("anchorPosition"===a)return o;var i=(T(n)||(0,m.default)(this.paperRef).body).getBoundingClientRect(),s=0===e?r.vertical:"center";return{top:i.top+this.handleGetOffsetTop(i,s),left:i.left+this.handleGetOffsetLeft(i,r.horizontal)}}},{key:"getContentAnchorOffset",value:function(e){var t=this.props,n=t.getContentAnchorEl,r=t.anchorReference,a=0;if(n&&"anchorEl"===r){var o=n(e);if(o&&e.contains(o)){var i=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentNode).scrollTop;return r}(e,o);a=o.offsetTop+o.clientHeight/2-i||0}}return a}},{key:"getTransformOrigin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props.transformOrigin;return{vertical:this.handleGetOffsetTop(e,n.vertical)+t,horizontal:this.handleGetOffsetLeft(e,n.horizontal)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.action,t.anchorEl),r=(t.anchorOrigin,t.anchorPosition,t.anchorReference,t.children),i=t.classes,s=t.container,l=t.elevation,u=(t.getContentAnchorEl,t.marginThreshold,t.ModalClasses),d=t.onEnter,h=t.onEntered,y=(t.onEntering,t.onExit),g=t.onExited,b=t.onExiting,k=t.open,x=t.PaperProps,w=t.role,L=(t.transformOrigin,t.TransitionComponent),S=t.transitionDuration,D=t.TransitionProps,Y=void 0===D?{}:D,j=(0,o.default)(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","container","elevation","getContentAnchorEl","marginThreshold","ModalClasses","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","role","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),E=S;"auto"!==S||L.muiSupportAuto||(E=void 0);var P=s||(n?(0,m.default)(T(n)).body:void 0);return c.default.createElement(A.default,(0,a.default)({classes:u,container:P,open:k,BackdropProps:{invisible:!0}},j),c.default.createElement(L,(0,a.default)({appear:!0,in:k,onEnter:d,onEntered:h,onExit:y,onExited:g,onExiting:b,role:w,timeout:E},Y,{onEntering:(0,v.createChainedFunction)(this.handleEntering,Y.onEntering)}),c.default.createElement(M.default,(0,a.default)({className:i.paper,elevation:l,ref:function(t){e.paperRef=f.default.findDOMNode(t)}},x),c.default.createElement(p.default,{target:"window",onResize:this.handleResize}),r)))}}]),t}(c.default.Component);S.defaultProps={anchorReference:"anchorEl",anchorOrigin:{vertical:"top",horizontal:"left"},elevation:8,marginThreshold:16,transformOrigin:{vertical:"top",horizontal:"left"},TransitionComponent:b.default,transitionDuration:"auto"};var D=(0,g.default)(L,{name:"MuiPopover"})(S);t.default=D},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ModalManager",{enumerable:!0,get:function(){return o.default}});var a=r(n(453)),o=r(n(124))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(52)),h=r(n(1)),p=r(n(20)),m=(r(n(0)),r(n(9))),y=(r(n(6)),n(7),r(n(25))),v=r(n(454)),g=r(n(456)),A=n(21),b=r(n(8)),M=r(n(124)),k=r(n(468)),x=n(126);function w(e){return!!e.children&&e.children.props.hasOwnProperty("in")}var T=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}};t.styles=T;var L=function(e){function t(e){var n;return(0,s.default)(this,t),(n=(0,u.default)(this,(0,d.default)(t).call(this))).mounted=!1,n.handleOpen=function(){var e=(0,y.default)(n.mountNode),t=function(e,t){return e="function"==typeof e?e():e,p.default.findDOMNode(e)||t}(n.props.container,e.body);n.props.manager.add((0,f.default)((0,f.default)(n)),t),e.addEventListener("focus",n.enforceFocus,!0),n.dialogRef&&n.handleOpened()},n.handleRendered=function(){n.props.onRendered&&n.props.onRendered(),n.props.open?n.handleOpened():(0,x.ariaHidden)(n.modalRef,!0)},n.handleOpened=function(){n.autoFocus(),n.props.manager.mount((0,f.default)((0,f.default)(n))),n.modalRef.scrollTop=0},n.handleClose=function(e){w(n.props)&&n.props.closeAfterTransition&&"unmount"!==e||n.props.manager.remove((0,f.default)((0,f.default)(n))),(0,y.default)(n.mountNode).removeEventListener("focus",n.enforceFocus,!0),n.restoreLastFocus()},n.handleExited=function(){n.props.closeAfterTransition&&n.props.manager.remove((0,f.default)((0,f.default)(n))),n.setState({exited:!0})},n.handleBackdropClick=function(e){e.target===e.currentTarget&&(n.props.onBackdropClick&&n.props.onBackdropClick(e),!n.props.disableBackdropClick&&n.props.onClose&&n.props.onClose(e,"backdropClick"))},n.handleKeyDown=function(e){"Escape"===e.key&&n.isTopModal()&&!e.defaultPrevented&&(e.stopPropagation(),n.props.onEscapeKeyDown&&n.props.onEscapeKeyDown(e),!n.props.disableEscapeKeyDown&&n.props.onClose&&n.props.onClose(e,"escapeKeyDown"))},n.enforceFocus=function(){if(n.isTopModal()&&!n.props.disableEnforceFocus&&n.mounted&&n.dialogRef){var e=(0,y.default)(n.mountNode).activeElement;n.dialogRef.contains(e)||n.dialogRef.focus()}},n.handlePortalRef=function(e){n.mountNode=e?e.getMountNode():e},n.handleModalRef=function(e){n.modalRef=e},n.onRootRef=function(e){n.dialogRef=e},n.state={exited:!e.open},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.props.open&&this.handleOpen()}},{key:"componentDidUpdate",value:function(e){e.open&&!this.props.open?this.handleClose():!e.open&&this.props.open&&(this.lastFocus=(0,y.default)(this.mountNode).activeElement,this.handleOpen())}},{key:"componentWillUnmount",value:function(){this.mounted=!1,(this.props.open||w(this.props)&&!this.state.exited)&&this.handleClose("unmount")}},{key:"autoFocus",value:function(){if(!this.props.disableAutoFocus&&this.dialogRef){var e=(0,y.default)(this.mountNode).activeElement;this.dialogRef.contains(e)||(this.dialogRef.hasAttribute("tabIndex")||this.dialogRef.setAttribute("tabIndex",-1),this.lastFocus=e,this.dialogRef.focus())}}},{key:"restoreLastFocus",value:function(){!this.props.disableRestoreFocus&&this.lastFocus&&(this.lastFocus.focus&&this.lastFocus.focus(),this.lastFocus=null)}},{key:"isTopModal",value:function(){return this.props.manager.isTopModal(this)}},{key:"render",value:function(){var e=this.props,t=e.BackdropComponent,n=e.BackdropProps,r=e.children,s=e.classes,l=e.className,u=(e.closeAfterTransition,e.container),d=(e.disableAutoFocus,e.disableBackdropClick,e.disableEnforceFocus,e.disableEscapeKeyDown,e.disablePortal),c=(e.disableRestoreFocus,e.hideBackdrop),f=e.keepMounted,p=(e.manager,e.onBackdropClick,e.onClose,e.onEscapeKeyDown,e.onRendered,e.open),y=(0,i.default)(e,["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),b=this.state.exited,M=w(this.props);if(!f&&!p&&(!M||b))return null;var k={};return M&&(k.onExited=(0,A.createChainedFunction)(this.handleExited,r.props.onExited)),void 0===r.props.role&&(k.role=r.props.role||"document"),void 0===r.props.tabIndex&&(k.tabIndex=r.props.tabIndex||"-1"),h.default.createElement(g.default,{ref:this.handlePortalRef,container:u,disablePortal:d,onRendered:this.handleRendered},h.default.createElement("div",(0,a.default)({ref:this.handleModalRef,onKeyDown:this.handleKeyDown,role:"presentation",className:(0,m.default)(s.root,l,(0,o.default)({},s.hidden,b))},y),c?null:h.default.createElement(t,(0,a.default)({open:p,onClick:this.handleBackdropClick},n)),h.default.createElement(v.default,{rootRef:this.onRootRef},h.default.cloneElement(r,k))))}}],[{key:"getDerivedStateFromProps",value:function(e){return e.open?{exited:!1}:w(e)?null:{exited:!0}}}]),t}(h.default.Component);L.defaultProps={BackdropComponent:k.default,closeAfterTransition:!1,disableAutoFocus:!1,disableBackdropClick:!1,disableEnforceFocus:!1,disableEscapeKeyDown:!1,disablePortal:!1,disableRestoreFocus:!1,hideBackdrop:!1,keepMounted:!1,manager:new M.default};var S=(0,b.default)(T,{flip:!1,name:"MuiModal"})(L);t.default=S},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(455))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=r(n(20)),c=(r(n(0)),n(7),n(36));var f=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.ref=d.default.findDOMNode(this),(0,c.setRef)(this.props.rootRef,this.ref)}},{key:"componentDidUpdate",value:function(e){var t=d.default.findDOMNode(this);e.rootRef===this.props.rootRef&&this.ref===t||(e.rootRef!==this.props.rootRef&&(0,c.setRef)(e.rootRef,null),this.ref=t,(0,c.setRef)(this.props.rootRef,this.ref))}},{key:"componentWillUnmount",value:function(){this.ref=null,(0,c.setRef)(this.props.rootRef,null)}},{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(457))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(12)),o=r(n(13)),i=r(n(14)),s=r(n(15)),l=r(n(16)),u=r(n(1)),d=r(n(20)),c=(r(n(0)),r(n(25)));n(7);var f=function(e){function t(){var e,n;(0,a.default)(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return(n=(0,i.default)(this,(e=(0,s.default)(t)).call.apply(e,[this].concat(o)))).getMountNode=function(){return n.mountNode},n}return(0,l.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.setMountNode(this.props.container),this.props.disablePortal||this.forceUpdate(this.props.onRendered)}},{key:"componentDidUpdate",value:function(e){var t=this;e.container===this.props.container&&e.disablePortal===this.props.disablePortal||(this.setMountNode(this.props.container),this.props.disablePortal||this.forceUpdate(function(){t.props.onRendered&&(clearTimeout(t.renderedTimer),t.renderedTimer=setTimeout(t.props.onRendered))}))}},{key:"componentWillUnmount",value:function(){this.mountNode=null,clearTimeout(this.renderedTimer)}},{key:"setMountNode",value:function(e){var t;this.props.disablePortal?this.mountNode=d.default.findDOMNode(this).parentElement:this.mountNode=function(e,t){return e="function"==typeof e?e():e,d.default.findDOMNode(e)||t}(e,(t=this,(0,c.default)(d.default.findDOMNode(t))).body)}},{key:"render",value:function(){var e=this.props,t=e.children;return e.disablePortal?t:this.mountNode?d.default.createPortal(t,this.mountNode):null}}]),t}(u.default.Component);f.defaultProps={disablePortal:!1};var h=f;t.default=h},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e,t,n){var r="",d="",c=t;if("string"==typeof t){if(void 0===n)return e.style[(0,a.default)(t)]||(0,i.default)(e).getPropertyValue((0,o.default)(t));(c={})[t]=n}Object.keys(c).forEach(function(t){var n=c[t];n||0===n?(0,u.default)(t)?d+=t+"("+n+") ":r+=(0,o.default)(t)+": "+n+";":(0,s.default)(e,(0,o.default)(t))}),d&&(r+=l.transform+": "+d+";");e.style.cssText+=";"+r};var a=r(n(125)),o=r(n(460)),i=r(n(462)),s=r(n(463)),l=n(464),u=r(n(465));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e){return(0,a.default)(e).replace(o,"-ms-")};var a=r(n(461)),o=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,a.default)(t))&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),i.test(r)&&!o.test(t)){var s=n.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=s,u&&(l.left=u)}return r}}};var a=r(n(125)),o=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var a,o,i,s,l,u,d,c,f,h,p,m=r(n(123)),y="transform";if(t.transform=y,t.animationEnd=i,t.transitionEnd=o,t.transitionDelay=d,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=p,t.animationTiming=h,t.animationDuration=f,t.animationName=c,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},a=Object.keys(r),o="",i=0;i<a.length;i++){var s=a[i];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();a=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=i=v.animationEnd,t.transform=y=a+"-"+y,t.transitionProperty=s=a+"-transition-property",t.transitionDuration=l=a+"-transition-duration",t.transitionDelay=d=a+"-transition-delay",t.transitionTiming=u=a+"-transition-timing-function",t.animationName=c=a+"-animation-name",t.animationDuration=f=a+"-animation-duration",t.animationTiming=h=a+"-animation-delay",t.animationDelay=p=a+"-animation-timing-function"}var g={transform:y,end:o,property:s,timing:u,delay:d,duration:l};t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.isBody=s,t.default=function(e){var t=(0,o.default)(e),n=(0,i.default)(t);if(!(0,a.default)(t)&&!s(e))return e.scrollHeight>e.clientHeight;var r=n.getComputedStyle(t.body),l=parseInt(r.getPropertyValue("margin-left"),10),u=parseInt(r.getPropertyValue("margin-right"),10);return l+t.body.clientWidth+u<n.innerWidth};var a=r(n(467)),o=r(n(25)),i=r(n(76));function s(e){return e&&"body"===e.tagName.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(469))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d=r(n(470)),c={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}};function f(e){var t=e.classes,n=e.className,r=e.invisible,u=e.open,c=e.transitionDuration,f=(0,i.default)(e,["classes","className","invisible","open","transitionDuration"]);return s.default.createElement(d.default,(0,a.default)({in:u,timeout:c},f),s.default.createElement("div",{className:(0,l.default)(t.root,(0,o.default)({},t.invisible,r),n),"aria-hidden":"true"}))}t.styles=c,f.defaultProps={invisible:!1};var h=(0,u.default)(c,{name:"MuiBackdrop"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(471))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(41))),h=n(104),p=r(n(73)),m=n(127),y={entering:{opacity:1},entered:{opacity:1}},v=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).handleEnter=function(e){var t=n.props.theme;(0,m.reflow)(e);var r=(0,m.getTransitionProps)(n.props,{mode:"enter"});e.style.webkitTransition=t.transitions.create("opacity",r),e.style.transition=t.transitions.create("opacity",r),n.props.onEnter&&n.props.onEnter(e)},n.handleExit=function(e){var t=n.props.theme,r=(0,m.getTransitionProps)(n.props,{mode:"exit"});e.style.webkitTransition=t.transitions.create("opacity",r),e.style.transition=t.transitions.create("opacity",r),n.props.onExit&&n.props.onExit(e)},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),r=(e.theme,(0,o.default)(e,["children","onEnter","onExit","style","theme"])),i=(0,a.default)({},n,c.default.isValidElement(t)?t.props.style:{});return c.default.createElement(f.default,(0,a.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit},r),function(e,n){return c.default.cloneElement(t,(0,a.default)({style:(0,a.default)({opacity:0},y[e],i)},n))})}}]),t}(c.default.Component);v.defaultProps={timeout:{enter:h.duration.enteringScreen,exit:h.duration.leavingScreen}};var g=(0,p.default)()(v);t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(473))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(41))),h=r(n(73)),p=n(127);function m(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var y={entering:{opacity:1,transform:m(1)},entered:{opacity:1,transform:"".concat(m(1)," translateZ(0)")}},v=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).handleEnter=function(e){var t=n.props,r=t.theme,a=t.timeout;(0,p.reflow)(e);var o=(0,p.getTransitionProps)(n.props,{mode:"enter"}),i=o.duration,s=o.delay,l=0;"auto"===a?(l=r.transitions.getAutoHeightDuration(e.clientHeight),n.autoTimeout=l):l=i,e.style.transition=[r.transitions.create("opacity",{duration:l,delay:s}),r.transitions.create("transform",{duration:.666*l,delay:s})].join(","),n.props.onEnter&&n.props.onEnter(e)},n.handleExit=function(e){var t=n.props,r=t.theme,a=t.timeout,o=0,i=(0,p.getTransitionProps)(n.props,{mode:"exit"}),s=i.duration,l=i.delay;"auto"===a?(o=r.transitions.getAutoHeightDuration(e.clientHeight),n.autoTimeout=o):o=s,e.style.transition=[r.transitions.create("opacity",{duration:o,delay:l}),r.transitions.create("transform",{duration:.666*o,delay:l||.333*o})].join(","),e.style.opacity="0",e.style.transform=m(.75),n.props.onExit&&n.props.onExit(e)},n.addEndListener=function(e,t){"auto"===n.props.timeout&&(n.timer=setTimeout(t,n.autoTimeout||0))},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.onEnter,e.onExit,e.style),r=(e.theme,e.timeout),i=(0,o.default)(e,["children","onEnter","onExit","style","theme","timeout"]),s=(0,a.default)({},n,c.default.isValidElement(t)?t.props.style:{});return c.default.createElement(f.default,(0,a.default)({appear:!0,onEnter:this.handleEnter,onExit:this.handleExit,addEndListener:this.addEndListener,timeout:"auto"===r?null:r},i),function(e,n){return c.default.cloneElement(t,(0,a.default)({style:(0,a.default)({opacity:0,transform:m(.75)},y[e],s)},n))})}}]),t}(c.default.Component);v.defaultProps={timeout:"auto"},v.muiSupportAuto=!0;var g=(0,h.default)()(v);t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(475))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(20))),h=(r(n(6)),r(n(25))),p=r(n(128)),m=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).state={currentTabIndex:null},n.handleBlur=function(e){n.blurTimer=setTimeout(function(){if(n.listRef){var e=n.listRef,t=(0,h.default)(e).activeElement;e.contains(t)||n.resetTabIndex()}},30),n.props.onBlur&&n.props.onBlur(e)},n.handleKeyDown=function(e){var t=n.listRef,r=e.key,a=(0,h.default)(t).activeElement;"ArrowUp"!==r&&"ArrowDown"!==r||a&&(!a||t.contains(a))?"ArrowDown"===r?(e.preventDefault(),a.nextElementSibling?a.nextElementSibling.focus():n.props.disableListWrap||t.firstChild.focus()):"ArrowUp"===r?(e.preventDefault(),a.previousElementSibling?a.previousElementSibling.focus():n.props.disableListWrap||t.lastChild.focus()):"Home"===r?(e.preventDefault(),t.firstChild.focus()):"End"===r&&(e.preventDefault(),t.lastChild.focus()):n.selectedItemRef?n.selectedItemRef.focus():t.firstChild.focus(),n.props.onKeyDown&&n.props.onKeyDown(e)},n.handleItemFocus=function(e){var t=n.listRef;if(t)for(var r=0;r<t.children.length;r+=1)if(t.children[r]===e.currentTarget){n.setTabIndex(r);break}},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){this.resetTabIndex()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.blurTimer)}},{key:"setTabIndex",value:function(e){this.setState({currentTabIndex:e})}},{key:"focus",value:function(){var e=this.state.currentTabIndex,t=this.listRef;t&&t.children&&t.firstChild&&(e&&e>=0?t.children[e].focus():t.firstChild.focus())}},{key:"resetTabIndex",value:function(){for(var e=this.listRef,t=(0,h.default)(e).activeElement,n=[],r=0;r<e.children.length;r+=1)n.push(e.children[r]);var a=n.indexOf(t);return-1!==a?this.setTabIndex(a):this.selectedItemRef?this.setTabIndex(n.indexOf(this.selectedItemRef)):this.setTabIndex(0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=(t.onBlur,t.onKeyDown,t.disableListWrap,(0,o.default)(t,["children","className","onBlur","onKeyDown","disableListWrap"]));return c.default.createElement(p.default,(0,a.default)({role:"menu",ref:function(t){e.listRef=f.default.findDOMNode(t)},className:r,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},i),c.default.Children.map(n,function(t,n){return c.default.isValidElement(t)?c.default.cloneElement(t,{tabIndex:n===e.state.currentTabIndex?0:-1,ref:t.props.selected?function(t){e.selectedItemRef=f.default.findDOMNode(t)}:void 0,onFocus:e.handleItemFocus}):null}))}}]),t}(c.default.Component);m.defaultProps={disableListWrap:!1};var y=m;t.default=y},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=r(n(129)),c={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{paddingTop:4,paddingBottom:4},subheader:{paddingTop:0}};function f(e){var t,n=e.children,r=e.classes,u=e.className,c=e.component,f=e.dense,h=e.disablePadding,p=e.subheader,m=(0,i.default)(e,["children","classes","className","component","dense","disablePadding","subheader"]);return s.default.createElement(c,(0,a.default)({className:(0,l.default)(r.root,(t={},(0,o.default)(t,r.dense,f&&!h),(0,o.default)(t,r.padding,!h),(0,o.default)(t,r.subheader,p),t),u)},m),s.default.createElement(d.default.Provider,{value:{dense:f}},p,n))}t.styles=c,f.defaultProps={component:"ul",dense:!1,disablePadding:!1};var h=(0,u.default)(c,{name:"MuiList"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),n(7),r(n(131))),l=r(n(8)),u=r(n(34)),d=r(n(35)),c=r(n(130)),f=r(n(78)),h=function(e){return{root:{position:"relative",width:"100%"},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",paddingRight:32,borderRadius:0,height:"1.1875em",width:"calc(100% - 32px)",minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{width:"calc(100% - 44px)"},outlined:{width:"calc(100% - 46px)",borderRadius:e.shape.borderRadius},selectMenu:{width:"auto",height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",minHeight:"1.1875em"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,"pointer-events":"none"}}};function p(e){var t=e.children,n=e.classes,r=e.IconComponent,l=e.input,d=e.inputProps,c=e.muiFormControl,f=(e.variant,(0,o.default)(e,["children","classes","IconComponent","input","inputProps","muiFormControl","variant"])),h=(0,u.default)({props:e,muiFormControl:c,states:["variant"]});return i.default.cloneElement(l,(0,a.default)({inputComponent:s.default,inputProps:(0,a.default)({children:t,classes:n,IconComponent:r,variant:h.variant,type:void 0},d,l?l.props.inputProps:{})},f))}t.styles=h,p.defaultProps={IconComponent:c.default,input:i.default.createElement(f.default,null)},p.muiName="Select";var m=(0,l.default)(h,{name:"MuiNativeSelect"})((0,d.default)(p));t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(479))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(12)),s=r(n(13)),l=r(n(14)),u=r(n(15)),d=r(n(16)),c=r(n(1)),f=(r(n(0)),r(n(9))),h=(n(7),r(n(8))),p=r(n(132)),m=function(e){return{root:{display:"table",fontFamily:e.typography.fontFamily,width:"100%",borderCollapse:"collapse",borderSpacing:0}}};t.styles=m;var y=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,l.default)(this,(e=(0,u.default)(t)).call.apply(e,[this].concat(a)))).memoizedContextValue={},n}return(0,d.default)(t,e),(0,s.default)(t,[{key:"useMemo",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n+=1){var r=t[n];if(e[r]!==this.memoizedContextValue[r]){this.memoizedContextValue=e;break}}return this.memoizedContextValue}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.className,r=e.component,i=e.padding,s=(0,o.default)(e,["classes","className","component","padding"]);return c.default.createElement(p.default.Provider,{value:this.useMemo({padding:i})},c.default.createElement(r,(0,a.default)({className:(0,f.default)(t.root,n)},s)))}}]),t}(c.default.Component);y.defaultProps={component:"table",padding:"default"};var v=(0,h.default)(m,{name:"MuiTable"})(y);t.default=v},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(481))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(1)),s=(r(n(0)),r(n(9))),l=(n(7),r(n(8))),u=r(n(82)),d={root:{display:"table-row-group"}};t.styles=d;var c={variant:"body"};function f(e){var t=e.classes,n=e.className,r=e.component,l=(0,o.default)(e,["classes","className","component"]);return i.default.createElement(u.default.Provider,{value:c},i.default.createElement(r,(0,a.default)({className:(0,s.default)(t.root,n)},l)))}f.defaultProps={component:"tbody"};var h=(0,l.default)(d,{name:"MuiTableBody"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(483))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=r(n(82)),c=function(e){return{root:{color:"inherit",display:"table-row",height:48,verticalAlign:"middle",outline:"none","&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{height:56},footer:{height:56}}};function f(e){var t=e.classes,n=e.className,r=e.component,u=e.hover,c=e.selected,f=(0,i.default)(e,["classes","className","component","hover","selected"]);return s.default.createElement(d.default.Consumer,null,function(e){var i,d=(0,l.default)(t.root,(i={},(0,o.default)(i,t.head,e&&"head"===e.variant),(0,o.default)(i,t.footer,e&&"footer"===e.variant),(0,o.default)(i,t.hover,u),(0,o.default)(i,t.selected,c),i),n);return s.default.createElement(r,(0,a.default)({className:d},f))})}t.styles=c,f.defaultProps={component:"tr",hover:!1,selected:!1};var h=(0,u.default)(c,{name:"MuiTableRow"})(f);t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(485))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(21),c=(r(n(120)),n(48)),f=r(n(132)),h=r(n(82)),p=function(e){return{root:{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,c.lighten)((0,c.fade)(e.palette.divider,1),.88):(0,c.darken)((0,c.fade)(e.palette.divider,1),.68)),textAlign:"left",padding:"4px 56px 4px 24px","&:last-child":{paddingRight:24}},head:{color:e.palette.text.secondary,fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightRegular},footer:{borderBottom:0,color:e.palette.text.secondary,fontSize:e.typography.pxToRem(12)},numeric:{textAlign:"right",flexDirection:"row-reverse"},paddingDense:{paddingRight:24},paddingCheckbox:{padding:"0 12px","&:last-child":{paddingRight:12}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"}}};function m(e){var t=e.align,n=e.children,r=e.classes,u=e.className,c=e.component,p=e.sortDirection,m=e.numeric,y=void 0!==m&&m,v=e.padding,g=e.scope,A=e.variant,b=(0,i.default)(e,["align","children","classes","className","component","sortDirection","numeric","padding","scope","variant"]);return s.default.createElement(f.default.Consumer,null,function(e){return s.default.createElement(h.default.Consumer,null,function(i){var f,h;h=c||(i&&"head"===i.variant?"th":"td");var m=g;!m&&i&&"head"===i.variant&&(m="col");var M=v||(e&&e.padding?e.padding:"default"),k=(0,l.default)(r.root,(f={},(0,o.default)(f,r.head,A?"head"===A:i&&"head"===i.variant),(0,o.default)(f,r.body,A?"body"===A:i&&"body"===i.variant),(0,o.default)(f,r.footer,A?"footer"===A:i&&"footer"===i.variant),(0,o.default)(f,r["align".concat((0,d.capitalize)(t))],"inherit"!==t),(0,o.default)(f,r.numeric,y),(0,o.default)(f,r["padding".concat((0,d.capitalize)(M))],"default"!==M),f),u),x=null;return p&&(x="asc"===p?"ascending":"descending"),s.default.createElement(h,(0,a.default)({className:k,"aria-sort":x,scope:m},b),n)})})}t.styles=p,m.defaultProps={align:"inherit"};var y=(0,u.default)(p,{name:"MuiTableCell"})(m);t.default=y},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(487))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(10)),o=r(n(5)),i=r(n(4)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=n(48),c=r(n(40)),f=n(21),h=function(e){return{root:(0,i.default)({lineHeight:1.75},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,d.fade)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},flat:{},flatPrimary:{},flatSecondary:{},outlined:{padding:"5px 16px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,d.fade)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,d.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,d.fade)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,d.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},raised:{},raisedPrimary:{},raisedSecondary:{},fab:{borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]}},extendedFab:{borderRadius:24,padding:"0 16px",width:"auto",minWidth:48,height:48},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},mini:{width:40,height:40},sizeSmall:{padding:"4px 8px",minWidth:64,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:"8px 24px",fontSize:e.typography.pxToRem(15)},fullWidth:{width:"100%"}}};function p(e){var t,n=e.children,r=e.classes,u=e.className,d=e.color,h=e.disabled,p=e.disableFocusRipple,m=e.focusVisibleClassName,y=e.fullWidth,v=e.mini,g=e.size,A=e.variant,b=(0,o.default)(e,["children","classes","className","color","disabled","disableFocusRipple","focusVisibleClassName","fullWidth","mini","size","variant"]),M="fab"===A||"extendedFab"===A,k="contained"===A||"raised"===A,x="text"===A||"flat"===A,w=(0,l.default)(r.root,(t={},(0,a.default)(t,r.fab,M),(0,a.default)(t,r.mini,M&&v),(0,a.default)(t,r.extendedFab,"extendedFab"===A),(0,a.default)(t,r.text,x),(0,a.default)(t,r.textPrimary,x&&"primary"===d),(0,a.default)(t,r.textSecondary,x&&"secondary"===d),(0,a.default)(t,r.flat,x),(0,a.default)(t,r.flatPrimary,x&&"primary"===d),(0,a.default)(t,r.flatSecondary,x&&"secondary"===d),(0,a.default)(t,r.contained,k||M),(0,a.default)(t,r.containedPrimary,(k||M)&&"primary"===d),(0,a.default)(t,r.containedSecondary,(k||M)&&"secondary"===d),(0,a.default)(t,r.raised,k||M),(0,a.default)(t,r.raisedPrimary,(k||M)&&"primary"===d),(0,a.default)(t,r.raisedSecondary,(k||M)&&"secondary"===d),(0,a.default)(t,r.outlined,"outlined"===A),(0,a.default)(t,r.outlinedPrimary,"outlined"===A&&"primary"===d),(0,a.default)(t,r.outlinedSecondary,"outlined"===A&&"secondary"===d),(0,a.default)(t,r["size".concat((0,f.capitalize)(g))],"medium"!==g),(0,a.default)(t,r.disabled,h),(0,a.default)(t,r.fullWidth,y),(0,a.default)(t,r.colorInherit,"inherit"===d),t),u);return s.default.createElement(c.default,(0,i.default)({className:w,disabled:h,focusRipple:!p,focusVisibleClassName:(0,l.default)(r.focusVisible,m)},b),s.default.createElement("span",{className:r.label},n))}t.styles=h,p.defaultProps={color:"default",component:"button",disabled:!1,disableFocusRipple:!1,fullWidth:!1,mini:!1,size:"medium",type:"button",variant:"text"};var m=(0,u.default)(h,{name:"MuiButton"})(p);t.default=m},function(e,t,n){"use strict";var r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"defaultValueReducer",{enumerable:!0,get:function(){return a.defaultValueReducer}});var a=r(n(489))},function(e,t,n){"use strict";(function(e){var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultValueReducer=x,t.default=t.styles=void 0;var a=r(n(4)),o=r(n(5)),i=r(n(10)),s=r(n(12)),l=r(n(13)),u=r(n(14)),d=r(n(15)),c=r(n(16)),f=r(n(1)),h=r(n(20)),p=(r(n(0)),r(n(9))),m=r(n(8)),y=r(n(40)),v=n(48),g=(n(7),r(n(490))),A=function(e){var t={duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeOut},n=e.transitions.create(["width","height","transform"],t),r=e.transitions.create(["transform","box-shadow"],t),a={primary:e.palette.primary.main,disabled:e.palette.grey[400],thumbOutline:(0,v.fade)(e.palette.primary.main,.16)};return{root:{position:"relative",width:"100%",cursor:"pointer",WebkitTapHighlightColor:"transparent","&$disabled":{cursor:"no-drop"},"&$vertical":{height:"100%"}},container:{position:"relative","&$vertical":{height:"100%"}},track:{position:"absolute",transform:"translate(0, -50%)",top:"50%",width:"100%",height:2,backgroundColor:a.primary,transition:n,"&$activated":{transition:"none"},"&$disabled":{backgroundColor:a.disabled,boxShadow:"none"},"&$vertical":{transform:"translate(-50%, 0)",left:"50%",top:"initial",bottom:0,width:2,height:"100%"}},trackBefore:{zIndex:1,left:0,transformOrigin:"left bottom"},trackAfter:{right:0,opacity:.24,transformOrigin:"right top","&$vertical":{top:0}},thumbWrapper:{position:"relative",zIndex:2,transition:r,"&$activated":{transition:"none"},"&$vertical":{bottom:0,height:"100%"}},thumb:{flip:!1,position:"absolute",left:0,transform:"translate(-50%, -50%)",width:12,height:12,borderRadius:"50%",backgroundColor:a.primary,transition:r,"&$focused, &:hover":{boxShadow:"0px 0px 0px ".concat(9,"px ").concat(a.thumbOutline)},"&$activated":{boxShadow:"0px 0px 0px ".concat(18,"px ").concat(a.thumbOutline)},"&$disabled":{cursor:"no-drop",width:9,height:9,backgroundColor:a.disabled},"&$jumped":{boxShadow:"0px 0px 0px ".concat(18,"px ").concat(a.thumbOutline)}},thumbIconWrapper:{backgroundColor:"transparent"},thumbIcon:{height:"inherit",width:"inherit"},disabled:{},jumped:{},focused:{},activated:{},vertical:{}}};function b(e,t,n){return(n-t)*e/100+t}function M(t,n,r,a,o){var i=t.getBoundingClientRect(),s=i.width,l=i.height,u=function(t){var n=e,r=n.pageYOffset,a=n.pageXOffset,o=t.getBoundingClientRect(),i=o.left;return{bottom:o.bottom+r,left:i+a}}(t),d=u.bottom,c=u.left,f=function(e,t){if(e.changedTouches){for(var n=0,r=0;r<e.changedTouches.length;r+=1)if(e.changedTouches[r].identifier===t){n=r;break}if(e.changedTouches[n])return{x:e.changedTouches[n].pageX,y:e.changedTouches[n].pageY}}return{x:e.pageX,y:e.pageY}}(n,o),h=f.x,p=f.y,m=r?d-p:h-c,y=(r?l:s)/100;return a&&!r?100-(0,g.default)(m/y):(0,g.default)(m/y)}function k(e){e.preventDefault()}function x(e,t){var n=t.disabled,r=t.step;return n?null:r?function(e,t){return Math.round(e/t)*t}(e,r):Number(e.toFixed(3))}t.styles=A;var w=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=(0,u.default)(this,(e=(0,d.default)(t)).call.apply(e,[this].concat(a)))).state={currentState:"initial"},n.jumpAnimationTimeoutId=-1,n.touchId=void 0,n.handleKeyDown=function(e){var t,r=n.props,a=r.min,o=r.max,i=r.value,s=Math.abs((o-a)/100),l=n.props.step||s;switch(e.key){case"Home":t=a;break;case"End":t=o;break;case"PageUp":t=i+10*s;break;case"PageDown":t=i-10*s;break;case"ArrowRight":case"ArrowUp":t=i+l;break;case"ArrowLeft":case"ArrowDown":t=i-l;break;default:return}e.preventDefault(),t=(0,g.default)(t,a,o),n.emitChange(e,t)},n.handleFocus=function(){n.setState({currentState:"focused"})},n.handleBlur=function(){n.setState({currentState:"normal"})},n.handleClick=function(e){var t=n.props,r=t.min,a=t.max,o=t.vertical,i=b(M(n.containerRef,e,o,n.isReverted(),n.touchId),r,a);n.emitChange(e,i,function(){n.playJumpAnimation()})},n.handleMouseEnter=function(e){0===e.buttons&&n.handleDragEnd(e)},n.handleMouseLeave=function(e){n.handleMouseMove(e)},n.handleTouchStart=function(e){e.preventDefault();var t=e.changedTouches.item(0);null!=t&&(n.touchId=t.identifier),n.setState({currentState:"activated"}),document.body.addEventListener("touchend",n.handleTouchEnd),"function"==typeof n.props.onDragStart&&n.props.onDragStart(e)},n.handleMouseDown=function(e){e.preventDefault(),n.setState({currentState:"activated"}),document.body.addEventListener("mouseenter",n.handleMouseEnter),document.body.addEventListener("mouseleave",n.handleMouseLeave),document.body.addEventListener("mousemove",n.handleMouseMove),document.body.addEventListener("mouseup",n.handleMouseUp),"function"==typeof n.props.onDragStart&&n.props.onDragStart(e)},n.handleTouchEnd=function(e){void 0===n.touchId&&n.handleMouseUp(e);for(var t=0;t<e.changedTouches.length;t+=1){if(e.changedTouches.item(t).identifier===n.touchId){n.handleMouseUp(e);break}}},n.handleMouseUp=function(e){n.handleDragEnd(e)},n.handleTouchMove=function(e){void 0===n.touchId&&n.handleMouseMove(e);for(var t=0;t<e.changedTouches.length;t+=1){if(e.changedTouches.item(t).identifier===n.touchId){n.handleMouseMove(e);break}}},n.handleMouseMove=function(e){var t=n.props,r=t.min,a=t.max,o=t.vertical,i=b(M(n.containerRef,e,o,n.isReverted(),n.touchId),r,a);n.emitChange(e,i)},n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.containerRef&&this.containerRef.addEventListener("touchstart",k,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.containerRef&&this.containerRef.removeEventListener("touchstart",k,{passive:!1}),document.body.removeEventListener("mouseenter",this.handleMouseEnter),document.body.removeEventListener("mouseleave",this.handleMouseLeave),document.body.removeEventListener("mousemove",this.handleMouseMove),document.body.removeEventListener("mouseup",this.handleMouseUp),clearTimeout(this.jumpAnimationTimeoutId)}},{key:"handleDragEnd",value:function(e){this.setState({currentState:"normal"}),document.body.removeEventListener("mouseenter",this.handleMouseEnter),document.body.removeEventListener("mouseleave",this.handleMouseLeave),document.body.removeEventListener("mousemove",this.handleMouseMove),document.body.removeEventListener("mouseup",this.handleMouseUp),document.body.removeEventListener("touchend",this.handleTouchEnd),"function"==typeof this.props.onDragEnd&&this.props.onDragEnd(e)}},{key:"emitChange",value:function(e,t,n){var r=this.props,a=r.onChange,o=r.value,i=(0,r.valueReducer)(t,this.props,e);null!==i&&i!==o&&"function"==typeof a&&(a(e,i),"function"==typeof n&&n())}},{key:"calculateTrackPartStyles",value:function(e){var t=this.props,n=t.theme,r=t.vertical;switch(this.state.currentState){case"disabled":return(0,i.default)({},r?"height":"width","calc(".concat(e,"% - 6px)"));default:return{transform:"".concat(r?"translateX(".concat("rtl"===n.direction?"":"-","50%) scaleY"):"translateY(-50%) scaleX","(").concat(e/100,")")}}}},{key:"playJumpAnimation",value:function(){var e=this;this.setState({currentState:"jumped"},function(){clearTimeout(e.jumpAnimationTimeoutId),e.jumpAnimationTimeoutId=setTimeout(function(){e.setState({currentState:"normal"})},e.props.theme.transitions.duration.complex)})}},{key:"isReverted",value:function(){return"rtl"===this.props.theme.direction}},{key:"render",value:function(){var e,t,n=this,r=this.state.currentState,s=this.props,l=s.className,u=s.classes,d=s.component,c=s.thumb,m=s.disabled,v=s.max,A=s.min,b=(s.onChange,s.onDragEnd,s.onDragStart,s.step,s.theme),M=s.value,k=(s.valueReducer,s.vertical),x=(0,o.default)(s,["className","classes","component","thumb","disabled","max","min","onChange","onDragEnd","onDragStart","step","theme","value","valueReducer","vertical"]),w=(0,g.default)(100*(M-A)/(v-A)),T=(e={},(0,i.default)(e,u.disabled,m),(0,i.default)(e,u.jumped,!m&&"jumped"===r),(0,i.default)(e,u.focused,!m&&"focused"===r),(0,i.default)(e,u.activated,!m&&"activated"===r),(0,i.default)(e,u.vertical,k),(0,i.default)(e,u.rtl,"rtl"===b.direction),e),L=(0,p.default)(u.root,(t={},(0,i.default)(t,u.vertical,k),(0,i.default)(t,u.disabled,m),t),l),S=(0,p.default)(u.container,(0,i.default)({},u.vertical,k)),D=(0,p.default)(u.track,u.trackBefore,T),Y=(0,p.default)(u.track,u.trackAfter,T),j=k?"translateY":"translateX",E=k||"rtl"===b.direction,P=this.calculateTrackPartStyles(w),O=this.calculateTrackPartStyles(100-w),C={transform:"".concat(j,"(").concat(E?100-w:w,"%)")},H=c?f.default.cloneElement(c,(0,a.default)({},c.props,{className:(0,p.default)(c.props.className,u.thumbIcon)})):null,R=(0,p.default)(u.thumbWrapper,T),N=(0,p.default)(u.thumb,(0,i.default)({},u.thumbIconWrapper,c),T);return f.default.createElement(d,(0,a.default)({role:"slider",className:L,"aria-disabled":m,"aria-valuenow":M,"aria-valuemin":A,"aria-valuemax":v,"aria-orientation":k?"vertical":"horizontal",onClick:this.handleClick,onMouseDown:this.handleMouseDown,onTouchStartCapture:this.handleTouchStart,onTouchMove:this.handleTouchMove,ref:function(e){n.containerRef=h.default.findDOMNode(e)}},x),f.default.createElement("div",{className:S},f.default.createElement("div",{className:D,style:P}),f.default.createElement("div",{className:R,style:C},f.default.createElement(y.default,{className:N,disabled:m,disableRipple:!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onTouchStartCapture:this.handleTouchStart,onTouchMove:this.handleTouchMove,onFocusVisible:this.handleFocus},H)),f.default.createElement("div",{className:Y,style:O})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled?{currentState:"disabled"}:e.disabled||"disabled"!==t.currentState?null:{currentState:"normal"}}}]),t}(f.default.Component);w.defaultProps={min:0,max:100,component:"div",valueReducer:x};var T=(0,m.default)(A,{name:"MuiSlider",withTheme:!0})(w);t.default=T}).call(this,n(29))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.min(Math.max(e,t),n)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(492))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=r(n(8)),d={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}};function c(e){var t=e.classes,n=e.className,r=e.children,u=e.row,d=(0,i.default)(e,["classes","className","children","row"]);return s.default.createElement("div",(0,a.default)({className:(0,l.default)(t.root,(0,o.default)({},t.row,u),n)},d),r)}t.styles=d,c.defaultProps={row:!1};var f=(0,u.default)(d,{name:"MuiFormGroup"})(c);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),n(7),r(n(9))),u=n(21),d=r(n(8)),c=r(n(53)),f={root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"}}};function h(e){var t=e.block,n=e.children,r=e.classes,d=e.className,f=e.component,h=e.TypographyClasses,p=e.underline,m=(0,i.default)(e,["block","children","classes","className","component","TypographyClasses","underline"]);return s.default.createElement(c.default,(0,a.default)({className:(0,l.default)(r.root,(0,o.default)({},r.button,"button"===f),r["underline".concat((0,u.capitalize)(p))],d),classes:h,component:f,inline:!t},m),n)}t.styles=f,h.defaultProps={block:!1,color:"primary",component:"a",underline:"hover",variant:"inherit"};var p=(0,d.default)(f,{name:"MuiLink"})(h);t.default=p},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Doughnut",function(){return b}),n.d(t,"Pie",function(){return M}),n.d(t,"Line",function(){return k}),n.d(t,"Bar",function(){return x}),n.d(t,"HorizontalBar",function(){return w}),n.d(t,"Radar",function(){return T}),n.d(t,"Polar",function(){return L}),n.d(t,"Bubble",function(){return S}),n.d(t,"Scatter",function(){return D}),n.d(t,"defaults",function(){return Y});var r=n(1),a=n.n(r),o=n(0),i=n.n(o),s=n(37),l=n.n(s);n.d(t,"Chart",function(){return l.a});var u=n(38),d=n.n(u),c=(n(598),n(286)),f=n.n(c),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=void 0!==e&&e.env&&"production",A=function(e){function t(){var n,r;m(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=y(this,e.call.apply(e,[this].concat(o))),r.handleOnClick=function(e){var t=r.chartInstance,n=r.props,a=n.getDatasetAtEvent,o=n.getElementAtEvent,i=n.getElementsAtEvent,s=n.onElementsClick;a&&a(t.getDatasetAtEvent(e),e),o&&o(t.getElementAtEvent(e),e),i&&i(t.getElementsAtEvent(e),e),s&&s(t.getElementsAtEvent(e),e)},r.ref=function(e){r.element=e},y(r,n)}return v(t,e),t.prototype.componentWillMount=function(){this.chartInstance=void 0},t.prototype.componentDidMount=function(){this.renderChart()},t.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,a=t.plugins,o=t.legend,i=t.height,s=t.width;if(!0===e.redraw)return!0;if(i!==e.height||s!==e.width)return!0;if(n!==e.type)return!0;if(!d()(o,e.legend))return!0;if(!d()(r,e.options))return!0;var l=this.transformDataProp(e);return!d()(this.shadowDataProp,l)||!d()(a,e.plugins)},t.prototype.componentWillUnmount=function(){this.chartInstance.destroy()},t.prototype.transformDataProp=function(e){var t=e.data;return"function"==typeof t?t(this.element):t},t.prototype.memoizeDataProps=function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=h({},e,{datasets:e.datasets&&e.datasets.map(function(e){return h({},e)})}),e}},t.prototype.checkDatasets=function(e){var n="production"!==g&&"prod"!==g,r=this.props.datasetKeyProvider!==t.getLabelAsKey,a=e.length>1;if(n&&a&&!r){var o=!1;e.forEach(function(e){e.label||(o=!0)}),o&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},t.prototype.updateChart=function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=l.a.helpers.configMerge(this.chartInstance.options,t));var r=this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[],a=n.datasets||[];this.checkDatasets(r);var o=f()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=a.map(function(t){var n=o[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type){n.data.splice(t.data.length),t.data.forEach(function(e,r){n.data[r]=t.data[r]});t.data;var r=p(t,["data"]);return h({},n,r)}return t});n.datasets;var i=p(n,["datasets"]);this.chartInstance.config.data=h({},this.chartInstance.config.data,i),this.chartInstance.update()}},t.prototype.renderChart=function(){var e=this.props,n=e.options,r=e.legend,a=e.type,o=(e.redraw,e.plugins),i=this.element,s=this.memoizeDataProps();void 0===r||d()(t.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new l.a(i,{type:a,data:s,options:n,plugins:o})},t.prototype.render=function(){var e=this.props,t=e.height,n=e.width,r=(e.onElementsClick,e.id);return a.a.createElement("canvas",{ref:this.ref,height:t,width:n,id:r,onClick:this.handleOnClick})},t}(a.a.Component);A.getLabelAsKey=function(e){return e.label},A.propTypes={data:i.a.oneOfType([i.a.object,i.a.func]).isRequired,getDatasetAtEvent:i.a.func,getElementAtEvent:i.a.func,getElementsAtEvent:i.a.func,height:i.a.number,legend:i.a.object,onElementsClick:i.a.func,options:i.a.object,plugins:i.a.arrayOf(i.a.object),redraw:i.a.bool,type:function(e,t,n){if(!l.a.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:i.a.number,datasetKeyProvider:i.a.func},A.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:A.getLabelAsKey},t.default=A;var b=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))},t}(a.a.Component),M=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))},t}(a.a.Component),k=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))},t}(a.a.Component),x=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))},t}(a.a.Component),w=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))},t}(a.a.Component),T=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))},t}(a.a.Component),L=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))},t}(a.a.Component),S=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))},t}(a.a.Component),D=function(e){function t(){return m(this,t),y(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(A,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))},t}(a.a.Component),Y=l.a.defaults}.call(this,n(495))},function(e,t){var n,r,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,u=[],d=!1,c=-1;function f(){d&&l&&(d=!1,l.length?u=l.concat(u):c=-1,u.length&&h())}function h(){if(!d){var e=s(f);d=!0;for(var t=u.length;t;){for(l=u,u=[];++c<t;)l&&l[c].run();c=-1,t=u.length}l=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||d||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){"use strict";n(17)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){"use strict";var r=n(56),a={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-a.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*a.easeInBounce(2*e):.5*a.easeOutBounce(2*e-1)+.5}};e.exports={effects:a},r.easingEffects=a},function(e,t,n){"use strict";var r=n(56);t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,o){if(o){var i=Math.min(o,a/2-1e-7,r/2-1e-7);e.moveTo(t+i,n),e.lineTo(t+r-i,n),e.arcTo(t+r,n,t+r,n+i,i),e.lineTo(t+r,n+a-i),e.arcTo(t+r,n+a,t+r-i,n+a,i),e.lineTo(t+i,n+a),e.arcTo(t,n+a,t,n+a-i,i),e.lineTo(t,n+i),e.arcTo(t,n,t+i,n,i),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,o){var i,s,l,u,d,c;if(o=o||0,!t||"object"!=typeof t||"[object HTMLImageElement]"!==(i=t.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(r,a),e.rotate(o*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case"triangle":d=(s=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(-s/2,d/3),e.lineTo(s/2,d/3),e.lineTo(0,-2*d/3),e.closePath();break;case"rect":c=1/Math.SQRT2*n,e.rect(-c,-c,2*c,2*c);break;case"rectRounded":var f=n/Math.SQRT2,h=-f,p=-f,m=Math.SQRT2*n;this.roundedRect(e,h,p,m,m,.425*n);break;case"rectRot":c=1/Math.SQRT2*n,e.moveTo(-c,0),e.lineTo(0,c),e.lineTo(c,0),e.lineTo(0,-c),e.closePath();break;case"cross":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case"crossRot":l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case"star":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case"line":e.moveTo(-n,0),e.lineTo(n,0);break;case"dash":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}}else e.drawImage(t,r-t.width/2,a-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){if(n.steppedLine)return"after"===n.steppedLine&&!r||"after"!==n.steppedLine&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y);n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}};r.clear=t.clear,r.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){"use strict";var r=n(56);e.exports={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,a,o;return r.isObject(e)?(t=+e.top||0,n=+e.right||0,a=+e.bottom||0,o=+e.left||0):t=n=a=o=+e||0,{top:t,right:n,bottom:a,left:o,height:t+a,width:o+n}},resolve:function(e,t,n){var a,o,i;for(a=0,o=e.length;a<o;++a)if(void 0!==(i=e[a])&&(void 0!==t&&"function"==typeof i&&(i=i(t)),void 0!==n&&r.isArray(i)&&(i=i[n]),void 0!==i))return i}}},function(e,t,n){"use strict";var r=n(134),a=n(17),o=n(11),i=n(26);e.exports=function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,a){var i=document.defaultView,s=o._getParentNode(n),l=i.getComputedStyle(n)[r],u=i.getComputedStyle(s)[r],d=t(l),c=t(u),f=Number.POSITIVE_INFINITY;return d||c?Math.min(d?e(l,n,a):f,c?e(u,s,a):f):"none"}o.configMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){var a=t[e]||{},s=n[e];"scales"===e?t[e]=o.scaleMerge(a,s):"scale"===e?t[e]=o.merge(a,[i.getScaleDefaults(s.type),s]):o._merger(e,t,n,r)}})},o.scaleMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,s,l,u=n[e].length;for(t[e]||(t[e]=[]),a=0;a<u;++a)l=n[e][a],s=o.valueOrDefault(l.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||l.type&&l.type!==t[e][a].type?o.merge(t[e][a],[i.getScaleDefaults(s),l]):o.merge(t[e][a],l)}else o._merger(e,t,n,r)}})},o.where=function(e,t){if(o.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return o.each(e,function(e){t(e)&&n.push(e)}),n},o.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},o.findNextWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},o.findPreviousWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},o.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},o.almostEquals=function(e,t,n){return Math.abs(e-t)<n},o.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},o.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},o.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},o.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},o.toRadians=function(e){return e*(Math.PI/180)},o.toDegrees=function(e){return e*(180/Math.PI)},o.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},o.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o.aliasPixel=function(e){return e%2==0?0:.5},o.splineCurve=function(e,t,n,r){var a=e.skip?t:e,o=t,i=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),u=s/(s+l),d=l/(s+l),c=r*(u=isNaN(u)?0:u),f=r*(d=isNaN(d)?0:d);return{previous:{x:o.x-c*(i.x-a.x),y:o.y-c*(i.y-a.y)},next:{x:o.x+f*(i.x-a.x),y:o.y+f*(i.y-a.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(e){var t,n,r,a,i,s,l,u,d,c=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),f=c.length;for(t=0;t<f;++t)if(!(r=c[t]).model.skip){if(n=t>0?c[t-1]:null,(a=t<f-1?c[t+1]:null)&&!a.model.skip){var h=a.model.x-r.model.x;r.deltaK=0!==h?(a.model.y-r.model.y)/h:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<f-1;++t)r=c[t],a=c[t+1],r.model.skip||a.model.skip||(o.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(i=r.mK/r.deltaK,s=a.mK/r.deltaK,(u=Math.pow(i,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(u),r.mK=i*l*r.deltaK,a.mK=s*l*r.deltaK)));for(t=0;t<f;++t)(r=c[t]).model.skip||(n=t>0?c[t-1]:null,a=t<f-1?c[t+1]:null,n&&!n.model.skip&&(d=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-d,r.model.controlPointPreviousY=r.model.y-d*r.mK),a&&!a.model.skip&&(d=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+d,r.model.controlPointNextY=r.model.y+d*r.mK))},o.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},o.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},o.niceNum=function(e,t){var n=Math.floor(o.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},o.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,i=e.target||e.srcElement,s=i.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,r=l[0].clientY):(n=a.clientX,r=a.clientY);var u=parseFloat(o.getStyle(i,"padding-left")),d=parseFloat(o.getStyle(i,"padding-top")),c=parseFloat(o.getStyle(i,"padding-right")),f=parseFloat(o.getStyle(i,"padding-bottom")),h=s.right-s.left-u-c,p=s.bottom-s.top-d-f;return{x:n=Math.round((n-s.left-u)/h*i.width/t.currentDevicePixelRatio),y:r=Math.round((r-s.top-d)/p*i.height/t.currentDevicePixelRatio)}},o.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},o.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},o._calculatePadding=function(e,t,n){return(t=o.getStyle(e,t)).indexOf("%")>-1?n/parseInt(t,10):parseInt(t,10)},o._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},o.getMaximumWidth=function(e){var t=o._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-o._calculatePadding(t,"padding-left",n)-o._calculatePadding(t,"padding-right",n),a=o.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},o.getMaximumHeight=function(e){var t=o._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-o._calculatePadding(t,"padding-top",n)-o._calculatePadding(t,"padding-bottom",n),a=o.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},o.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},o.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,o=e.width;r.height=a*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=o+"px")}},o.fontString=function(e,t,n){return t+" "+e+"px "+n},o.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var s=0;o.each(n,function(t){null!=t&&!0!==o.isArray(t)?s=o.measureText(e,a,i,s,t):o.isArray(t)&&o.each(t,function(t){null==t||o.isArray(t)||(s=o.measureText(e,a,i,s,t))})});var l=i.length/2;if(l>n.length){for(var u=0;u<l;u++)delete a[i[u]];i.splice(0,l)}return s},o.measureText=function(e,t,n,r,a){var o=t[a];return o||(o=t[a]=e.measureText(a).width,n.push(a)),o>r&&(r=o),r},o.numberOfLabelLines=function(e){var t=1;return o.each(e,function(e){o.isArray(e)&&e.length>t&&(t=e.length)}),t},o.color=r?function(e){return e instanceof CanvasGradient&&(e=a.global.defaultColor),r(e)}:function(e){return console.error("Color.js not found!"),e},o.getHoverColor=function(e){return e instanceof CanvasPattern?e:o.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){var r=n(502),a=function(){return new u};for(var o in r){a[o+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(o);var i=/(\w+)2(\w+)/.exec(o),s=i[1],l=i[2];(a[s]=a[s]||{})[l]=a[o]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var a=0;a<n.length;a++)n[a]=Math.round(n[a]);return n}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},u.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},u.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=a[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){u.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},function(e,t){function n(e){var t,n,r=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(r,a,o),s=Math.max(r,a,o),l=s-i;return s==i?t=0:r==s?t=(a-o)/l:a==s?t=2+(o-r)/l:o==s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s==i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]}function a(e){var t,n,r=e[0],a=e[1],o=e[2],i=Math.min(r,a,o),s=Math.max(r,a,o),l=s-i;return n=0==s?0:l/s*1e3/10,s==i?t=0:r==s?t=(a-o)/l:a==s?t=2+(o-r)/l:o==s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],r=e[1],a=e[2];return[n(e)[0],100*(1/255*Math.min(t,Math.min(r,a))),100*(a=1-1/255*Math.max(t,Math.max(r,a)))]}function i(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]}function s(e){return w[JSON.stringify(e)]}function l(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function u(e){var t=l(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(e){var t,n,r,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(r=i+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[u]=255*o;return a}function c(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));r*=255;switch(a){case 0:return[r,l,i];case 1:return[s,r,i];case 2:return[i,r,l];case 3:return[i,s,r];case 4:return[l,i,r];case 5:return[r,i,s]}}function f(e){var t,n,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),a=6*i-(t=Math.floor(6*i)),0!=(1&t)&&(a=1-a),o=s+a*((n=1-l)-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function h(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]}function p(e){var t,n,r,a=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*o+.0415*i,r=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function y(e){var t,n,r,a,o=e[0],i=e[1],s=e[2];return o<=8?a=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(i/500+a-16/116)/7.787:95.047*Math.pow(i/500+a,3),n,r=r/108.883<=.008859?r=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function v(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]}function A(e){return p(y(e))}function M(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function k(e){return x[e]}e.exports={rgb2hsl:n,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:i,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:function(e){return v(u(e))},hsl2rgb:d,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return o(d(e))},hsl2cmyk:function(e){return i(d(e))},hsl2keyword:function(e){return s(d(e))},hsv2rgb:c,hsv2hsl:function(e){var t,n,r=e[0],a=e[1]/100,o=e[2]/100;return t=a*o,[r,100*(t=(t/=(n=(2-a)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(c(e))},hsv2cmyk:function(e){return i(c(e))},hsv2keyword:function(e){return s(c(e))},hwb2rgb:f,hwb2hsl:function(e){return n(f(e))},hwb2hsv:function(e){return a(f(e))},hwb2cmyk:function(e){return i(f(e))},hwb2keyword:function(e){return s(f(e))},cmyk2rgb:h,cmyk2hsl:function(e){return n(h(e))},cmyk2hsv:function(e){return a(h(e))},cmyk2hwb:function(e){return o(h(e))},cmyk2keyword:function(e){return s(h(e))},keyword2rgb:k,keyword2hsl:function(e){return n(k(e))},keyword2hsv:function(e){return a(k(e))},keyword2hwb:function(e){return o(k(e))},keyword2cmyk:function(e){return i(k(e))},keyword2lab:function(e){return u(k(e))},keyword2xyz:function(e){return l(k(e))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(e){return v(m(e))},lab2xyz:y,lab2rgb:A,lab2lch:v,lch2lab:M,lch2xyz:function(e){return y(M(e))},lch2rgb:function(e){return A(M(e))}};var x={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},w={};for(var T in x)w[JSON.stringify(x[T])]=T},function(e,t,n){var r=n(83);function a(e){if(e){var t=[0,0,0],n=1,a=e.match(/^#([a-fA-F0-9]{3})$/i);if(a){a=a[1];for(var o=0;o<t.length;o++)t[o]=parseInt(a[o]+a[o],16)}else if(a=e.match(/^#([a-fA-F0-9]{6})$/i)){a=a[1];for(o=0;o<t.length;o++)t[o]=parseInt(a.slice(2*o,2*o+2),16)}else if(a=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(a[o+1]);n=parseFloat(a[4])}else if(a=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(a[o+1]));n=parseFloat(a[4])}else if(a=e.match(/(\w+)/)){if("transparent"==a[1])return[0,0,0,0];if(!(t=r[a[1]]))return}for(o=0;o<t.length;o++)t[o]=d(t[o],0,255);return n=n||0==n?d(n,0,1):1,t[3]=n,t}}function o(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(n)?1:n,0,1)]}}}function i(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function u(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function d(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:a,getHsla:o,getRgb:function(e){var t=a(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:i,getAlpha:function(e){var t=a(e);if(t)return t[3];if(t=o(e))return t[3];if(t=i(e))return t[3]},hexString:function(e){return"#"+c(e[0])+c(e[1])+c(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return l(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+a+"%)"},percentaString:l,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return u(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:u,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return f[e.slice(0,3)]}};var f={};for(var h in r)f[r[h]]=h},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11);r._set("global",{elements:{arc:{backgroundColor:r.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=o.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,i=r.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;a<s;)a+=2*Math.PI;var u=a>=s&&a<=l,d=i>=n.innerRadius&&i<=n.outerRadius;return u&&d}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,r=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,r),e.arc(t.x,t.y,t.innerRadius,r,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=r.global;r._set("global",{elements:{line:{tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var e,t,n,r,a=this._view,s=this._chart.ctx,l=a.spanGaps,u=this._children.slice(),d=i.elements.line,c=-1;for(this._loop&&u.length&&u.push(u[0]),s.save(),s.lineCap=a.borderCapStyle||d.borderCapStyle,s.setLineDash&&s.setLineDash(a.borderDash||d.borderDash),s.lineDashOffset=a.borderDashOffset||d.borderDashOffset,s.lineJoin=a.borderJoinStyle||d.borderJoinStyle,s.lineWidth=a.borderWidth||d.borderWidth,s.strokeStyle=a.borderColor||i.defaultColor,s.beginPath(),c=-1,e=0;e<u.length;++e)t=u[e],n=o.previousItem(u,e),r=t._view,0===e?r.skip||(s.moveTo(r.x,r.y),c=e):(n=-1===c?n:u[c],r.skip||(c!==e-1&&!l||-1===c?s.moveTo(r.x,r.y):o.canvas.lineTo(s,n._view,t._view),c=e));s.stroke(),s.restore()}})},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=r.global.defaultColor;function s(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}r._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:i,borderColor:i,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=a.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._model,a=this._chart.ctx,s=t.pointStyle,l=t.rotation,u=t.radius,d=t.x,c=t.y;t.skip||(void 0===e||n.x>=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(a.strokeStyle=t.borderColor||i,a.lineWidth=o.valueOrDefault(t.borderWidth,r.global.elements.point.borderWidth),a.fillStyle=t.backgroundColor||i,o.canvas.drawPoint(a,s,u,d,c,l))}})},function(e,t,n){"use strict";var r=n(17),a=n(22);function o(e){return void 0!==e._view.width}function i(e){var t,n,r,a,i=e._view;if(o(e)){var s=i.width/2;t=i.x-s,n=i.x+s,r=Math.min(i.y,i.base),a=Math.max(i.y,i.base)}else{var l=i.height/2;t=Math.min(i.x,i.base),n=Math.max(i.x,i.base),r=i.y-l,a=i.y+l}return{left:t,top:r,right:n,bottom:a}}r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=a.extend({draw:function(){var e,t,n,r,a,o,i,s=this._chart.ctx,l=this._view,u=l.borderWidth;if(l.horizontal?(e=l.base,t=l.x,n=l.y-l.height/2,r=l.y+l.height/2,a=t>e?1:-1,o=1,i=l.borderSkipped||"left"):(e=l.x-l.width/2,t=l.x+l.width/2,n=l.y,a=1,o=(r=l.base)>n?1:-1,i=l.borderSkipped||"bottom"),u){var d=Math.min(Math.abs(e-t),Math.abs(n-r)),c=(u=u>d?d:u)/2,f=e+("left"!==i?c*a:0),h=t+("right"!==i?-c*a:0),p=n+("top"!==i?c*o:0),m=r+("bottom"!==i?-c*o:0);f!==h&&(n=p,r=m),p!==m&&(e=f,t=h)}s.beginPath(),s.fillStyle=l.backgroundColor,s.strokeStyle=l.borderColor,s.lineWidth=u;var y=[[e,r],[e,n],[t,n],[t,r]],v=["bottom","left","top","right"].indexOf(i,0);function g(e){return y[(v+e)%4]}-1===v&&(v=0);var A=g(0);s.moveTo(A[0],A[1]);for(var b=1;b<4;b++)A=g(b),s.lineTo(A[0],A[1]);s.fill(),u&&s.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var r=i(this);n=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}return n},inLabelRange:function(e,t){if(!this._view)return!1;var n=i(this);return o(this)?e>=n.left&&e<=n.right:t>=n.top&&t<=n.bottom},inXRange:function(e){var t=i(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=i(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return o(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},function(e,t,n){"use strict";var r=n(11),a="$chartjs",o="chartjs-",i=o+"render-monitor",s=o+"render-animation",l=["animationstart","webkitAnimationStart"],u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function d(e,t){var n=r.getStyle(e,t),a=n&&n.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}var c=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function f(e,t,n){e.addEventListener(t,n,c)}function h(e,t,n){e.removeEventListener(t,n,c)}function p(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function m(e,t,n){var u,d,c,h,m=e[a]||(e[a]={}),y=m.resizer=function(e){var t=document.createElement("div"),n=o+"size-monitor",r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=r,t.className=n,t.innerHTML='<div class="'+n+'-expand" style="'+r+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var a=t.childNodes[0],i=t.childNodes[1];t._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var s=function(){t._reset(),e()};return f(a,"scroll",s.bind(a,"expand")),f(i,"scroll",s.bind(i,"shrink")),t}((u=function(){if(m.resizer)return t(p("resize",n))},c=!1,h=[],function(){h=Array.prototype.slice.call(arguments),d=d||this,c||(c=!0,r.requestAnimFrame.call(window,function(){c=!1,u.apply(d,h)}))}));!function(e,t){var n=e[a]||(e[a]={}),o=n.renderProxy=function(e){e.animationName===s&&t()};r.each(l,function(t){f(e,t,o)}),n.reflow=!!e.offsetParent,e.classList.add(i)}(e,function(){if(m.resizer){var t=e.parentNode;t&&t!==y.parentNode&&t.insertBefore(y,t.firstChild),y._reset()}})}function y(e){var t=e[a]||{},n=t.resizer;delete t.resizer,function(e){var t=e[a]||{},n=t.renderProxy;n&&(r.each(l,function(t){h(e,t,n)}),delete t.renderProxy),e.classList.remove(i)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,n,r="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+s+"{"+r+"}@keyframes "+s+"{"+r+"}."+i+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(e=this)._style||document.createElement("style"),e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[a]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var i=d(e,"width");void 0!==i&&(e.width=i)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=d(e,"height");void 0!==i&&(e.height=s)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[a]){var n=t[a].initial;["height","width"].forEach(function(e){var a=n[e];r.isNullOrUndef(a)?t.removeAttribute(e):t.setAttribute(e,a)}),r.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[a]}},addEventListener:function(e,t,n){var o=e.canvas;if("resize"!==t){var i=n[a]||(n[a]={});f(o,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=u[e.type]||e.type,a=r.getRelativePosition(e,t);return p(n,t,a.x,a.y,e)}(t,e))})}else m(o,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var o=((n[a]||{}).proxies||{})[e.id+"_"+t];o&&h(r,t,o)}else y(r)}},r.addEvent=f,r.removeEvent=h},function(e,t,n){"use strict";var r=n(135),a=n(136),o=n(17),i=n(11),s=n(137),l=n(42),u=n(138),d=n(139),c=n(26),f=n(140);e.exports=function(e){function t(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},i.extend(e.prototype,{construct:function(t,n){var r=this;n=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=i.configMerge(o.global,o[e.type],e.options||{}),e}(n);var a=u.acquireContext(t,n),s=a&&a.canvas,l=s&&s.height,d=s&&s.width;r.id=i.uid(),r.ctx=a,r.canvas=s,r.config=n,r.width=d,r.height=l,r.aspectRatio=l?d/l:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),a&&s?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return d.notify(e,"beforeInit"),i.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),d.notify(e,"afterInit"),e},clear:function(){return i.canvas.clear(this),this},stop:function(){return a.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(i.getMaximumWidth(r))),s=Math.max(0,Math.floor(a?o/a:i.getMaximumHeight(r)));if((t.width!==o||t.height!==s)&&(r.width=t.width=o,r.height=t.height=s,r.style.width=o+"px",r.style.height=s+"px",i.retinaScale(t,n.devicePixelRatio),!e)){var l={width:o,height:s};d.notify(t,"resize",[l]),t.options.onResize&&t.options.onResize(t,l),t.stop(),t.update({duration:t.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;i.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),i.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,n=e.options,r=e.scales||{},a=[],o=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});n.scales&&(a=a.concat((n.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),n.scale&&a.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),i.each(a,function(n){var a=n.options,s=a.id,l=i.valueOrDefault(a.type,n.dtype);t(a.position)!==t(n.dposition)&&(a.position=n.dposition),o[s]=!0;var u=null;if(s in r&&r[s].type===l)(u=r[s]).options=a,u.ctx=e.ctx,u.chart=e;else{var d=c.getScaleConstructor(l);if(!d)return;u=new d({id:s,type:l,options:a,ctx:e.ctx,chart:e}),r[u.id]=u}u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}),i.each(o,function(e,t){e||delete r[t]}),e.scales=r,c.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,n=[],r=[];return i.each(t.data.datasets,function(a,o){var i=t.getDatasetMeta(o),s=a.type||t.config.type;if(i.type&&i.type!==s&&(t.destroyDatasetMeta(o),i=t.getDatasetMeta(o)),i.type=s,n.push(i.type),i.controller)i.controller.updateIndex(o),i.controller.linkScales();else{var l=e.controllers[i.type];if(void 0===l)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new l(t,o),r.push(i.controller)}},t),r},resetElements:function(){var e=this;i.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var n,r,a=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),r=(n=a).options,i.each(n.scales,function(e){l.removeBox(n,e)}),r=i.configMerge(e.defaults.global,e.defaults[n.config.type],r),n.options=n.config.options=r,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=r.tooltips,n.tooltip.initialize(),d._invalidate(a),!1!==d.notify(a,"beforeUpdate")){a.tooltip._data=a.data;var o=a.buildOrUpdateControllers();i.each(a.data.datasets,function(e,t){a.getDatasetMeta(t).controller.buildOrUpdateElements()},a),a.updateLayout(),a.options.animation&&a.options.animation.duration&&i.each(o,function(e){e.reset()}),a.updateDatasets(),a.tooltip.initialize(),a.lastActive=[],d.notify(a,"afterUpdate"),a._bufferedRender?a._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:a.render(t)}},updateLayout:function(){!1!==d.notify(this,"beforeLayout")&&(l.update(this,this.width,this.height),d.notify(this,"afterScaleUpdate"),d.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==d.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);d.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==d.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),d.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=e.duration,o=e.lazy;if(!1!==d.notify(t,"beforeRender")){var s=t.options.animation,l=function(e){d.notify(t,"afterRender"),i.callback(s&&s.onComplete,[e],t)};if(s&&(void 0!==n&&0!==n||void 0===n&&0!==s.duration)){var u=new r({numSteps:(n||s.duration)/16.66,easing:e.easing||s.easing,render:function(e,t){var n=i.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:s.onProgress,onAnimationComplete:l});a.addAnimation(t,u,n,o)}else t.draw(),l(new r({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),i.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==d.notify(t,"beforeDraw",[e])&&(i.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),d.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==d.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);d.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==d.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),d.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==d.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),d.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=s.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var t,n,r=this,a=r.canvas;for(r.stop(),t=0,n=r.data.datasets.length;t<n;++t)r.destroyDatasetMeta(t);a&&(r.unbindEvents(),i.canvas.clear(r),u.releaseContext(r.ctx),r.canvas=null,r.ctx=null),d.notify(r,"destroy"),delete e.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new f({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};i.each(e.options.events,function(r){u.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},u.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,i.each(t,function(t,n){u.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,a,o,i=n?"setHoverStyle":"removeHoverStyle";for(a=0,o=e.length;a<o;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[i](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==d.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),d.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},a=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,a.mode,a),i.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),t=!i.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),e.Controller=e}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function n(e,n){var r=e._chartjs;if(r){var a=r.listeners,o=a.indexOf(n);-1!==o&&a.splice(o,1),a.length>0||(t.forEach(function(t){delete e[t]}),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},r.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],a=n.data;for(e=0,t=r.length;e<t;++e)a[e]=a[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,a,o=this,i=o.getDataset(),s=i.data||(i.data=[]);o._data!==s&&(o._data&&n(o._data,o),a=o,(e=s)._chartjs?e._chartjs.listeners.push(a):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[a]}}),t.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),a=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),o=a.apply(this,t);return r.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),o}})})),o._data=s),o.resyncElements()},update:r.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){r.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,a=e.custom||{},o=r.valueAtIndexOrDefault,i=r.getHoverColor,s=e._model;e.$previousStyle={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth},s.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:o(t.hoverBackgroundColor,n,i(s.backgroundColor)),s.borderColor=a.hoverBorderColor?a.hoverBorderColor:o(t.hoverBorderColor,n,i(s.borderColor)),s.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:o(t.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=r.inherits}},function(e,t,n){"use strict";var r=n(11),a=n(43);e.exports=function(e){var t=r.noop;e.LinearScaleBase=a.extend({getRightValue:function(e){return"string"==typeof e?+e:a.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=r.sign(e.min),a=r.sign(e.max);n<0&&a<0?e.max=0:n>0&&a>0&&(e.min=0)}var o=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),o!==i&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),a={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:r.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=function(e,t){var n,a,o,i=[];if(e.stepSize&&e.stepSize>0)o=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);o=r.niceNum(s/(e.maxTicks-1),!0),void 0!==(a=e.precision)&&(n=Math.pow(10,a),o=Math.ceil(o*n)/n)}var l=Math.floor(t.min/o)*o,u=Math.ceil(t.max/o)*o;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,o/1e3)&&(l=e.min,u=e.max);var d=(u-l)/o;d=r.almostEquals(d,Math.round(d),o/1e3)?Math.round(d):Math.ceil(d),a=1,o<1&&(a=Math.pow(10,1-Math.floor(r.log10(o))),l=Math.round(l*a)/a,u=Math.round(u*a)/a),i.push(void 0!==e.min?e.min:l);for(var c=1;c<d;++c)i.push(Math.round((l+c*o)*a)/a);return i.push(void 0!==e.max?e.max:u),i}(a,e);e.handleDirectionalChanges(),e.max=r.max(o),e.min=r.min(o),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),a.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){"use strict";var r=n(43),a=n(26);e.exports=function(){var e=r.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart.data,a=n.isHorizontal();return r.yLabels&&!a?n.getRightValue(r.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,a=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(a?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var i=r.getLabels().indexOf(e);t=-1!==i?i:t}if(r.isHorizontal()){var s=r.width/o,l=s*(t-r.minIndex);return a&&(l+=s/2),r.left+Math.round(l)}var u=r.height/o,d=u*(t-r.minIndex);return a&&(d+=u/2),r.top+Math.round(d)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),a=t.isHorizontal(),o=(a?t.width:t.height)/r;return e-=a?t.left:t.top,n&&(e-=o/2),(e<=0?0:Math.round(e/o))+t.minIndex},getBasePixel:function(){return this.bottom}});a.registerScaleType("category",e,{position:"bottom"})}},function(e,t,n){"use strict";var r=n(17),a=n(11),o=n(26),i=n(44);e.exports=function(e){var t={position:"left",ticks:{callback:i.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,o=e.isHorizontal();function i(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var s=t.stacked;if(void 0===s&&a.each(r,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&i(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};a.each(r,function(r,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var d=l[u].positiveValues,c=l[u].negativeValues;n.isDatasetVisible(o)&&i(s)&&a.each(r.data,function(n,r){var a=+e.getRightValue(n);isNaN(a)||s.data[r].hidden||(d[r]=d[r]||0,c[r]=c[r]||0,t.relativePoints?d[r]=100:a<0?c[r]+=a:d[r]+=a)})}),a.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),r=a.min(n),o=a.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?o:Math.max(e.max,o)})}else a.each(r,function(t,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&i(o)&&a.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=a.valueOrDefault(t.fontSize,r.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),a=t.end-n;return t.isHorizontal()?t.left+t.width/a*(r-n):t.bottom-t.height/a*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,a=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*a},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});o.registerScaleType("linear",n,t)}},function(e,t,n){"use strict";var r=n(11),a=n(43),o=n(26),i=n(44);e.exports=function(e){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},n=a.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,a=n.data.datasets,o=e.isHorizontal();function i(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var s=t.stacked;if(void 0===s&&r.each(a,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&i(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};r.each(a,function(a,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");n.isDatasetVisible(o)&&i(s)&&(void 0===l[u]&&(l[u]=[]),r.each(a.data,function(t,n){var r=l[u],a=+e.getRightValue(t);isNaN(a)||s.data[n].hidden||a<0||(r[n]=r[n]||0,r[n]+=a)}))}),r.each(l,function(t){if(t.length>0){var n=r.min(t),a=r.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}})}else r.each(a,function(t,a){var o=n.getDatasetMeta(a);n.isDatasetVisible(a)&&i(o)&&r.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=r.valueOrDefault;e.min=n(t.min,e.min),e.max=n(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(r.log10(e.min))-1),e.max=Math.pow(10,Math.floor(r.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(r.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(r.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),a={min:t.min,max:t.max},o=e.ticks=function(e,t){var n,a,o=[],i=r.valueOrDefault,s=i(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),l=Math.floor(r.log10(t.max)),u=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(r.log10(t.minNotZero)),a=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(s),s=a*Math.pow(10,n)):(n=Math.floor(r.log10(s)),a=Math.floor(s/Math.pow(10,n)));var d=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(s),10==++a&&(a=1,d=++n>=0?1:d),s=Math.round(a*Math.pow(10,n)*d)/d}while(n<l||n===l&&a<u);var c=i(e.max,s);return o.push(c),o}(a,e);e.max=r.max(o),e.min=r.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),a.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,a,o,i,s,l=this,u=l.options.ticks.reverse,d=r.log10,c=l._getFirstTickValue(l.minNotZero),f=0;return t=+l.getRightValue(t),u?(o=l.end,i=l.start,s=-1):(o=l.start,i=l.end,s=1),l.isHorizontal()?(n=l.width,a=u?l.right:l.left):(n=l.height,s*=-1,a=u?l.top:l.bottom),t!==o&&(0===o&&(n-=f=r.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),o=c),0!==t&&(f+=n/(d(i)-d(o))*(d(t)-d(o))),a+=s*f),a},getValueForPixel:function(t){var n,a,o,i,s=this,l=s.options.ticks.reverse,u=r.log10,d=s._getFirstTickValue(s.minNotZero);if(l?(a=s.end,o=s.start):(a=s.start,o=s.end),s.isHorizontal()?(n=s.width,i=l?s.right-t:t-s.left):(n=s.height,i=l?t-s.top:s.bottom-t),i!==a){if(0===a){var c=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);i-=c,n-=c,a=d}i*=u(o)-u(a),i/=n,i=Math.pow(10,u(a)+i)}return i}});o.registerScaleType("logarithmic",n,t)}},function(e,t,n){"use strict";var r=n(17),a=n(11),o=n(26),i=n(44);e.exports=function(e){var t=r.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:i.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function s(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function l(e){var n=e.options.pointLabels,r=a.valueOrDefault(n.fontSize,t.defaultFontSize),o=a.valueOrDefault(n.fontStyle,t.defaultFontStyle),i=a.valueOrDefault(n.fontFamily,t.defaultFontFamily);return{size:r,style:o,family:i,font:a.fontString(r,o,i)}}function u(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function d(e){return 0===e||180===e?"center":e<180?"left":"right"}function c(e,t,n,r){if(a.isArray(t))for(var o=n.y,i=1.5*r,s=0;s<t.length;++s)e.fillText(t[s],n.x,o),o+=i;else e.fillText(t,n.x,n.y)}function f(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function h(e){return a.isNumber(e)?e:0}var p=e.LinearScaleBase.extend({setDimensions:function(){var e=this,n=e.options,r=n.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var o=a.min([e.height,e.width]),i=a.valueOrDefault(r.fontSize,t.defaultFontSize);e.drawingArea=n.display?o/2-(i/2+r.backdropPaddingY):o/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;a.each(t.data.datasets,function(o,i){if(t.isDatasetVisible(i)){var s=t.getDatasetMeta(i);a.each(o.data,function(t,a){var o=+e.getRightValue(t);isNaN(o)||s.data[a].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,n=a.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,t;this.options.pointLabels.display?function(e){var t,n,r,o=l(e),i=Math.min(e.height/2,e.width/2),d={r:e.width,l:0,t:e.height,b:0},c={};e.ctx.font=o.font,e._pointLabelSizes=[];var f,h,p,m=s(e);for(t=0;t<m;t++){r=e.getPointPosition(t,i),f=e.ctx,h=o.size,p=e.pointLabels[t]||"",n=a.isArray(p)?{w:a.longestText(f,f.font,p),h:p.length*h+1.5*(p.length-1)*h}:{w:f.measureText(p).width,h:h},e._pointLabelSizes[t]=n;var y=e.getIndexAngle(t),v=a.toDegrees(y)%360,g=u(v,r.x,n.w,0,180),A=u(v,r.y,n.h,90,270);g.start<d.l&&(d.l=g.start,c.l=y),g.end>d.r&&(d.r=g.end,c.r=y),A.start<d.t&&(d.t=A.start,c.t=y),A.end>d.b&&(d.b=A.end,c.b=y)}e.setReductions(i,d,c)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,n){var r=t.l/Math.sin(n.l),a=Math.max(t.r-this.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),i=-Math.max(t.b-this.height,0)/Math.cos(n.b);r=h(r),a=h(a),o=h(o),i=h(i),this.drawingArea=Math.min(Math.round(e-(r+a)/2),Math.round(e-(o+i)/2)),this.setCenterPoint(r,a,o,i)},setCenterPoint:function(e,t,n,r){var a=this,o=a.width-t-a.drawingArea,i=e+a.drawingArea,s=n+a.drawingArea,l=a.height-r-a.drawingArea;a.xCenter=Math.round((i+o)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(e){return e*(2*Math.PI/s(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+this.xCenter,y:Math.round(Math.sin(n)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,n=e.options,r=n.gridLines,o=n.ticks,i=a.valueOrDefault;if(n.display){var u=e.ctx,h=this.getIndexAngle(0),p=i(o.fontSize,t.defaultFontSize),m=i(o.fontStyle,t.defaultFontStyle),y=i(o.fontFamily,t.defaultFontFamily),v=a.fontString(p,m,y);a.each(e.ticks,function(n,l){if(l>0||o.reverse){var d=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]);if(r.display&&0!==l&&function(e,t,n,r){var o=e.ctx;if(o.strokeStyle=a.valueAtIndexOrDefault(t.color,r-1),o.lineWidth=a.valueAtIndexOrDefault(t.lineWidth,r-1),e.options.gridLines.circular)o.beginPath(),o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{var i=s(e);if(0===i)return;o.beginPath();var l=e.getPointPosition(0,n);o.moveTo(l.x,l.y);for(var u=1;u<i;u++)l=e.getPointPosition(u,n),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}(e,r,d,l),o.display){var c=i(o.fontColor,t.defaultFontColor);if(u.font=v,u.save(),u.translate(e.xCenter,e.yCenter),u.rotate(h),o.showLabelBackdrop){var f=u.measureText(n).width;u.fillStyle=o.backdropColor,u.fillRect(-f/2-o.backdropPaddingX,-d-p/2-o.backdropPaddingY,f+2*o.backdropPaddingX,p+2*o.backdropPaddingY)}u.textAlign="center",u.textBaseline="middle",u.fillStyle=c,u.fillText(n,0,-d),u.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(e){var n=e.ctx,r=e.options,o=r.angleLines,i=r.pointLabels;n.lineWidth=o.lineWidth,n.strokeStyle=o.color;var u=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),h=l(e);n.textBaseline="top";for(var p=s(e)-1;p>=0;p--){if(o.display){var m=e.getPointPosition(p,u);n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(m.x,m.y),n.stroke(),n.closePath()}if(i.display){var y=e.getPointPosition(p,u+5),v=a.valueAtIndexOrDefault(i.fontColor,p,t.defaultFontColor);n.font=h.font,n.fillStyle=v;var g=e.getIndexAngle(p),A=a.toDegrees(g);n.textAlign=d(A),f(A,e._pointLabelSizes[p],y),c(n,e.pointLabels[p]||"",y,h.size)}}}(e)}}});o.registerScaleType("radialLinear",p,n)}},function(e,t,n){"use strict";var r=n(3);r="function"==typeof r?r:window.moment;var a=n(17),o=n(11),i=n(43),s=n(26),l=Number.MIN_SAFE_INTEGER||-9007199254740991,u=Number.MAX_SAFE_INTEGER||9007199254740991,d={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},c=Object.keys(d);function f(e,t){return e-t}function h(e){var t,n,r,a={},o=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,o.push(r));return o}function p(e,t,n,r){var a=function(e,t,n){for(var r,a,o,i=0,s=e.length-1;i>=0&&i<=s;){if(a=e[(r=i+s>>1)-1]||null,o=e[r],!a)return{lo:null,hi:o};if(o[t]<n)i=r+1;else{if(!(a[t]>n))return{lo:a,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=a.lo?a.hi?a.lo:e[e.length-2]:e[0],i=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=i[t]-o[t],l=s?(n-o[t])/s:0,u=(i[r]-o[r])*l;return o[r]+u}function m(e,t){var n=t.parser,a=t.parser||t.format;return"function"==typeof n?n(e):"string"==typeof e&&"string"==typeof a?r(e,a):(e instanceof r||(e=r(e)),e.isValid()?e:"function"==typeof a?a(e):e)}function y(e,t){if(o.isNullOrUndef(e))return null;var n=t.options.time,r=m(t.getRightValue(e),n);return r.isValid()?(n.round&&r.startOf(n.round),r.valueOf()):null}function v(e){for(var t=c.indexOf(e)+1,n=c.length;t<n;++t)if(d[c[t]].common)return c[t]}function g(e,t,n,a){var i,s=a.time,l=s.unit||function(e,t,n,r){var a,o,i,s=c.length;for(a=c.indexOf(e);a<s-1;++a)if(i=(o=d[c[a]]).steps?o.steps[o.steps.length-1]:u,o.common&&Math.ceil((n-t)/(i*o.size))<=r)return c[a];return c[s-1]}(s.minUnit,e,t,n),f=v(l),h=o.valueOrDefault(s.stepSize,s.unitStepSize),p="week"===l&&s.isoWeekday,m=a.ticks.major.enabled,y=d[l],g=r(e),A=r(t),b=[];for(h||(h=function(e,t,n,r){var a,o,i,s=t-e,l=d[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/(r*u));for(a=0,o=c.length;a<o&&(i=c[a],!(Math.ceil(s/(u*i))<=r));++a);return i}(e,t,l,n)),p&&(g=g.isoWeekday(p),A=A.isoWeekday(p)),g=g.startOf(p?"day":l),(A=A.startOf(p?"day":l))<t&&A.add(1,l),i=r(g),m&&f&&!p&&!s.round&&(i.startOf(f),i.add(~~((g-i)/(y.size*h))*h,l));i<A;i.add(h,l))b.push(+i);return b.push(+i),b}e.exports=function(){var e=i.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),i.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),i.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),i.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,a,i,s,d=this,c=d.chart,p=d.options.time,m=p.unit||"day",v=u,g=l,A=[],b=[],M=[];for(e=0,n=c.data.labels.length;e<n;++e)M.push(y(c.data.labels[e],d));for(e=0,n=(c.data.datasets||[]).length;e<n;++e)if(c.isDatasetVisible(e))if(i=c.data.datasets[e].data,o.isObject(i[0]))for(b[e]=[],t=0,a=i.length;t<a;++t)s=y(i[t],d),A.push(s),b[e][t]=s;else A.push.apply(A,M),b[e]=M.slice(0);else b[e]=[];M.length&&(M=h(M).sort(f),v=Math.min(v,M[0]),g=Math.max(g,M[M.length-1])),A.length&&(A=h(A).sort(f),v=Math.min(v,A[0]),g=Math.max(g,A[A.length-1])),v=y(p.min,d)||v,g=y(p.max,d)||g,v=v===u?+r().startOf(m):v,g=g===l?+r().endOf(m)+1:g,d.min=Math.min(v,g),d.max=Math.max(v+1,g),d._horizontal=d.isHorizontal(),d._table=[],d._timestamps={data:A,datasets:b,labels:M}},buildTicks:function(){var e,t,n,a=this,o=a.min,i=a.max,s=a.options,l=s.time,u=[],f=[];switch(s.ticks.source){case"data":u=a._timestamps.data;break;case"labels":u=a._timestamps.labels;break;case"auto":default:u=g(o,i,a.getLabelCapacity(o),s)}for("ticks"===s.bounds&&u.length&&(o=u[0],i=u[u.length-1]),o=y(l.min,a)||o,i=y(l.max,a)||i,e=0,t=u.length;e<t;++e)(n=u[e])>=o&&n<=i&&f.push(n);return a.min=o,a.max=i,a._unit=l.unit||function(e,t,n,a){var o,i,s=r.duration(r(a).diff(r(n)));for(o=c.length-1;o>=c.indexOf(t);o--)if(i=c[o],d[i].common&&s.as(i)>=e.length)return i;return c[t?c.indexOf(t):0]}(f,l.minUnit,a.min,a.max),a._majorUnit=v(a._unit),a._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,o,i,s,l,u=[],d=[t];for(a=0,o=e.length;a<o;++a)(s=e[a])>t&&s<n&&d.push(s);for(d.push(n),a=0,o=d.length;a<o;++a)l=d[a+1],i=d[a-1],s=d[a],void 0!==i&&void 0!==l&&Math.round((l+i)/2)===s||u.push({time:s,pos:a/(o-1)});return u}(a._timestamps.data,o,i,s.distribution),a._offsets=function(e,t,n,r,a){var o,i,s=0,l=0;return a.offset&&t.length&&(a.time.min||(o=t.length>1?t[1]:r,i=t[0],s=(p(e,"time",o,"pos")-p(e,"time",i,"pos"))/2),a.time.max||(o=t[t.length-1],i=t.length>1?t[t.length-2]:n,l=(p(e,"time",o,"pos")-p(e,"time",i,"pos"))/2)),{left:s,right:l}}(a._table,f,o,i,s),a._labelFormat=function(e,t){var n,r,a,o=e.length;for(n=0;n<o;n++){if(0!==(r=m(e[n],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===r.second()&&0===r.minute()&&0===r.hour()||(a=!0)}return a?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(a._timestamps.data,l),function(e,t){var n,a,o,i,s=[];for(n=0,a=e.length;n<a;++n)o=e[n],i=!!t&&o===+r(o).startOf(t),s.push({value:o,major:i});return s}(f,a._majorUnit)},getLabelForIndex:function(e,t){var n=this.chart.data,r=this.options.time,a=n.labels&&e<n.labels.length?n.labels[e]:"",i=n.datasets[t].data[e];return o.isObject(i)&&(a=this.getRightValue(i)),r.tooltipFormat?m(a,r).format(r.tooltipFormat):"string"==typeof a?a:m(a,r).format(this._labelFormat)},tickFormatFunction:function(e,t,n,r){var a=this.options,i=e.valueOf(),s=a.time.displayFormats,l=s[this._unit],u=this._majorUnit,d=s[u],c=e.clone().startOf(u).valueOf(),f=a.ticks.major,h=f.enabled&&u&&d&&i===c,p=e.format(r||(h?d:l)),m=h?f:a.ticks.minor,y=o.valueOrDefault(m.callback,m.userCallback);return y?y(p,t,n):p},convertTicksToLabels:function(e){var t,n,a=[];for(t=0,n=e.length;t<n;++t)a.push(this.tickFormatFunction(r(e[t].value),t,e));return a},getPixelForOffset:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,a=p(t._table,"time",e,"pos");return r+n*(t._offsets.left+a)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=y(e,this)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,a=t._horizontal?t.left:t.top,o=(n?(e-a)/n:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,i=p(t._table,"pos",o,"time");return r(i)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=o.toRadians(t.maxRotation),i=Math.cos(r),s=Math.sin(r);return n*i+o.valueOrDefault(t.fontSize,a.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,a=t.tickFormatFunction(r(e),0,[],n),o=t.getLabelWidth(a),i=t.isHorizontal()?t.width:t.height,s=Math.floor(i/o);return s>0?s:1}});s.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},function(e,t,n){var r={"./af":141,"./af.js":141,"./ar":142,"./ar-dz":143,"./ar-dz.js":143,"./ar-kw":144,"./ar-kw.js":144,"./ar-ly":145,"./ar-ly.js":145,"./ar-ma":146,"./ar-ma.js":146,"./ar-sa":147,"./ar-sa.js":147,"./ar-tn":148,"./ar-tn.js":148,"./ar.js":142,"./az":149,"./az.js":149,"./be":150,"./be.js":150,"./bg":151,"./bg.js":151,"./bm":152,"./bm.js":152,"./bn":153,"./bn.js":153,"./bo":154,"./bo.js":154,"./br":155,"./br.js":155,"./bs":156,"./bs.js":156,"./ca":157,"./ca.js":157,"./cs":158,"./cs.js":158,"./cv":159,"./cv.js":159,"./cy":160,"./cy.js":160,"./da":161,"./da.js":161,"./de":162,"./de-at":163,"./de-at.js":163,"./de-ch":164,"./de-ch.js":164,"./de.js":162,"./dv":165,"./dv.js":165,"./el":166,"./el.js":166,"./en-SG":167,"./en-SG.js":167,"./en-au":168,"./en-au.js":168,"./en-ca":169,"./en-ca.js":169,"./en-gb":170,"./en-gb.js":170,"./en-ie":171,"./en-ie.js":171,"./en-il":172,"./en-il.js":172,"./en-nz":173,"./en-nz.js":173,"./eo":174,"./eo.js":174,"./es":175,"./es-do":176,"./es-do.js":176,"./es-us":177,"./es-us.js":177,"./es.js":175,"./et":178,"./et.js":178,"./eu":179,"./eu.js":179,"./fa":180,"./fa.js":180,"./fi":181,"./fi.js":181,"./fo":182,"./fo.js":182,"./fr":183,"./fr-ca":184,"./fr-ca.js":184,"./fr-ch":185,"./fr-ch.js":185,"./fr.js":183,"./fy":186,"./fy.js":186,"./ga":187,"./ga.js":187,"./gd":188,"./gd.js":188,"./gl":189,"./gl.js":189,"./gom-latn":190,"./gom-latn.js":190,"./gu":191,"./gu.js":191,"./he":192,"./he.js":192,"./hi":193,"./hi.js":193,"./hr":194,"./hr.js":194,"./hu":195,"./hu.js":195,"./hy-am":196,"./hy-am.js":196,"./id":197,"./id.js":197,"./is":198,"./is.js":198,"./it":199,"./it-ch":200,"./it-ch.js":200,"./it.js":199,"./ja":201,"./ja.js":201,"./jv":202,"./jv.js":202,"./ka":203,"./ka.js":203,"./kk":204,"./kk.js":204,"./km":205,"./km.js":205,"./kn":206,"./kn.js":206,"./ko":207,"./ko.js":207,"./ku":208,"./ku.js":208,"./ky":209,"./ky.js":209,"./lb":210,"./lb.js":210,"./lo":211,"./lo.js":211,"./lt":212,"./lt.js":212,"./lv":213,"./lv.js":213,"./me":214,"./me.js":214,"./mi":215,"./mi.js":215,"./mk":216,"./mk.js":216,"./ml":217,"./ml.js":217,"./mn":218,"./mn.js":218,"./mr":219,"./mr.js":219,"./ms":220,"./ms-my":221,"./ms-my.js":221,"./ms.js":220,"./mt":222,"./mt.js":222,"./my":223,"./my.js":223,"./nb":224,"./nb.js":224,"./ne":225,"./ne.js":225,"./nl":226,"./nl-be":227,"./nl-be.js":227,"./nl.js":226,"./nn":228,"./nn.js":228,"./pa-in":229,"./pa-in.js":229,"./pl":230,"./pl.js":230,"./pt":231,"./pt-br":232,"./pt-br.js":232,"./pt.js":231,"./ro":233,"./ro.js":233,"./ru":234,"./ru.js":234,"./sd":235,"./sd.js":235,"./se":236,"./se.js":236,"./si":237,"./si.js":237,"./sk":238,"./sk.js":238,"./sl":239,"./sl.js":239,"./sq":240,"./sq.js":240,"./sr":241,"./sr-cyrl":242,"./sr-cyrl.js":242,"./sr.js":241,"./ss":243,"./ss.js":243,"./sv":244,"./sv.js":244,"./sw":245,"./sw.js":245,"./ta":246,"./ta.js":246,"./te":247,"./te.js":247,"./tet":248,"./tet.js":248,"./tg":249,"./tg.js":249,"./th":250,"./th.js":250,"./tl-ph":251,"./tl-ph.js":251,"./tlh":252,"./tlh.js":252,"./tr":253,"./tr.js":253,"./tzl":254,"./tzl.js":254,"./tzm":255,"./tzm-latn":256,"./tzm-latn.js":256,"./tzm.js":255,"./ug-cn":257,"./ug-cn.js":257,"./uk":258,"./uk.js":258,"./ur":259,"./ur.js":259,"./uz":260,"./uz-latn":261,"./uz-latn.js":261,"./uz.js":260,"./vi":262,"./vi.js":262,"./x-pseudo":263,"./x-pseudo.js":263,"./yo":264,"./yo.js":264,"./zh-cn":265,"./zh-cn.js":265,"./zh-hk":266,"./zh-hk.js":266,"./zh-tw":267,"./zh-tw.js":267};function a(e){var t=o(e);return n(t)}function o(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=518},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.chart,i=r.getMeta(),s=r.getDataset(),l=e.custom||{},u=a.options.elements.rectangle;e._xScale=r.getScaleForId(i.xAxisID),e._yScale=r.getScaleForId(i.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={datasetLabel:s.label,label:a.data.labels[t],borderSkipped:l.borderSkipped?l.borderSkipped:u.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:o.valueAtIndexOrDefault(s.backgroundColor,t,u.backgroundColor),borderColor:l.borderColor?l.borderColor:o.valueAtIndexOrDefault(s.borderColor,t,u.borderColor),borderWidth:l.borderWidth?l.borderWidth:o.valueAtIndexOrDefault(s.borderWidth,t,u.borderWidth)},r.updateElementGeometry(e,t,n),e.pivot()},updateElementGeometry:function(e,t,n){var r=this,a=e._model,o=r.getValueScale(),i=o.getBasePixel(),s=o.isHorizontal(),l=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t),d=r.calculateBarIndexPixels(r.index,t,l);a.horizontal=s,a.base=n?i:u.base,a.x=s?n?i:u.head:d.center,a.y=s?d.center:n?i:u.head,a.height=s?d.size:void 0,a.width=s?void 0:d.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,n,r=this.chart,a=this.getIndexScale().options.stacked,o=void 0===e?r.data.datasets.length:e+1,i=[];for(t=0;t<o;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===a||!0===a&&-1===i.indexOf(n.stack)||void 0===a&&(void 0===n.stack||-1===i.indexOf(n.stack)))&&i.push(n.stack);return i},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this.getIndexScale(),r=this.getStackCount(),a=this.index,i=n.isHorizontal(),s=i?n.left:n.top,l=s+(i?n.width:n.height),u=[];for(e=0,t=this.getMeta().data.length;e<t;++e)u.push(n.getPixelForValue(null,e,a));return{min:o.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,a,o,i=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(a=1,o=t.length;a<o;++a)i=Math.min(i,t[a]-t[a-1]);for(a=0,o=s.length;a<o;++a)r=e.getPixelForTick(a),i=a>0?Math.min(i,r-n):i,n=r;return i}(n,u):-1,pixels:u,start:s,end:l,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,a,o,i,s,l=this.chart,u=this.getMeta(),d=this.getValueScale(),c=l.data.datasets,f=d.getRightValue(c[e].data[t]),h=d.options.stacked,p=u.stack,m=0;if(h||void 0===h&&void 0!==p)for(n=0;n<e;++n)(r=l.getDatasetMeta(n)).bar&&r.stack===p&&r.controller.getValueScaleId()===d.id&&l.isDatasetVisible(n)&&(a=d.getRightValue(c[n].data[t]),(f<0&&a<0||f>=0&&a>0)&&(m+=a));return o=d.getPixelForValue(m),{size:s=((i=d.getPixelForValue(m+f))-o)/2,base:o,head:i,center:i+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,a="flex"===r.barThickness?function(e,t,n){var r,a=t.pixels,o=a[e],i=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,l=n.categoryPercentage;return null===i&&(i=o-(null===s?t.end-o:s-o)),null===s&&(s=o+o-i),r=o-(o-i)/2*l,{chunk:(s-i)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,a,i=n.barThickness,s=t.stackCount,l=t.pixels[e];return o.isNullOrUndef(i)?(r=t.min*n.categoryPercentage,a=n.barPercentage):(r=i*s,a=1),{chunk:r/s,ratio:a,start:l-r/2}}(t,n,r),i=this.getStackIndex(e,this.getMeta().stack),s=a.start+a.chunk*i+a.chunk/2,l=Math.min(o.valueOrDefault(r.maxBarThickness,1/0),a.chunk*a.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this.chart,t=this.getValueScale(),n=this.getMeta().data,r=this.getDataset(),a=n.length,i=0;for(o.canvas.clipArea(e.ctx,e.chartArea);i<a;++i)isNaN(t.getRightValue(r.data[i]))||n[i].draw();o.canvas.unclipArea(e.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:a.Point,update:function(e){var t=this,n=t.getMeta().data;o.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=e.custom||{},i=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),l=r._resolveElementOptions(e,t),u=r.getDataset().data[t],d=r.index,c=n?i.getPixelForDecimal(.5):i.getPixelForValue("object"==typeof u?u:NaN,t,d),f=n?s.getBasePixel():s.getPixelForValue(u,t,d);e._xScale=i,e._yScale=s,e._options=l,e._datasetIndex=d,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(c)||isNaN(f),x:c,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=o.valueOrDefault(n.hoverBackgroundColor,o.getHoverColor(n.backgroundColor)),t.borderColor=o.valueOrDefault(n.hoverBorderColor,o.getHoverColor(n.borderColor)),t.borderWidth=o.valueOrDefault(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,a,i=this.chart,s=i.data.datasets[this.index],l=e.custom||{},u=i.options.elements.point,d=o.options.resolve,c=s.data[t],f={},h={chart:i,dataIndex:t,dataset:s,datasetIndex:this.index},p=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=p.length;n<r;++n)f[a=p[n]]=d([l[a],s[a],u[a]],h,t);return f.radius=d([l.radius,c?c.r:void 0,s.radius,u.radius],h,t),f}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),i=t.datasets[0],s=a.data[r],l=s&&s.custom||{},u=o.valueAtIndexOrDefault,d=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(i.backgroundColor,r,d.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(i.borderColor,r,d.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(i.borderWidth,r,d.borderWidth),hidden:isNaN(i.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o]&&(a.data[o].hidden=!a.data[o].hidden);i.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return o.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}}),r._set("pie",o.clone(r.doughnut)),r._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:o.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t=this,n=t.chart,r=n.chartArea,a=n.options,i=a.elements.arc,s=r.right-r.left-i.borderWidth,l=r.bottom-r.top-i.borderWidth,u=Math.min(s,l),d={x:0,y:0},c=t.getMeta(),f=a.cutoutPercentage,h=a.circumference;if(h<2*Math.PI){var p=a.rotation%(2*Math.PI),m=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+h,y={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},g=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,A=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,b=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,M=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,k=f/100,x={x:b?-1:Math.min(y.x*(y.x<0?1:k),v.x*(v.x<0?1:k)),y:M?-1:Math.min(y.y*(y.y<0?1:k),v.y*(v.y<0?1:k))},w={x:g?1:Math.max(y.x*(y.x>0?1:k),v.x*(v.x>0?1:k)),y:A?1:Math.max(y.y*(y.y>0?1:k),v.y*(v.y>0?1:k))},T={width:.5*(w.x-x.x),height:.5*(w.y-x.y)};u=Math.min(s/T.width,l/T.height),d={x:-.5*(w.x+x.x),y:-.5*(w.y+x.y)}}n.borderWidth=t.getMaxBorderWidth(c.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(f?n.outerRadius/100*f:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=d.x*n.outerRadius,n.offsetY=d.y*n.outerRadius,c.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),o.each(c.data,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,a=r.chart,i=a.chartArea,s=a.options,l=s.animation,u=(i.left+i.right)/2,d=(i.top+i.bottom)/2,c=s.rotation,f=s.rotation,h=r.getDataset(),p=n&&l.animateRotate?0:e.hidden?0:r.calculateCircumference(h.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:r.innerRadius,y=n&&l.animateScale?0:r.outerRadius,v=o.valueAtIndexOrDefault;o.extend(e,{_datasetIndex:r.index,_index:t,_model:{x:u+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:f,circumference:p,outerRadius:y,innerRadius:m,label:v(h.label,t,a.data.labels[t])}});var g=e._model,A=e.custom||{},b=o.valueAtIndexOrDefault,M=this.chart.options.elements.arc;g.backgroundColor=A.backgroundColor?A.backgroundColor:b(h.backgroundColor,t,M.backgroundColor),g.borderColor=A.borderColor?A.borderColor:b(h.borderColor,t,M.borderColor),g.borderWidth=A.borderWidth?A.borderWidth:b(h.borderWidth,t,M.borderWidth),n&&l.animateRotate||(g.startAngle=0===t?s.rotation:r.getMeta().data[t-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return o.each(n.data,function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,r=0,a=this.index,o=e.length,i=0;i<o;i++)t=e[i]._model?e[i]._model.borderWidth:0,r=(n=e[i]._chart?e[i]._chart.config.data.datasets[a].hoverBorderWidth:0)>(r=t>r?t:r)?n:r;return r}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return o.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(e){var n,r,a,i=this,s=i.getMeta(),l=s.dataset,u=s.data||[],d=i.chart.options,c=d.elements.line,f=i.getScaleForId(s.yAxisID),h=i.getDataset(),p=t(h,d);for(p&&(a=l.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),l._scale=f,l._datasetIndex=i.index,l._children=u,l._model={spanGaps:h.spanGaps?h.spanGaps:d.spanGaps,tension:a.tension?a.tension:o.valueOrDefault(h.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:h.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:h.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:h.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:o.valueOrDefault(h.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:o.valueOrDefault(h.cubicInterpolationMode,c.cubicInterpolationMode)},l.pivot()),n=0,r=u.length;n<r;++n)i.updateElement(u[n],n,e);for(p&&0!==l._model.tension&&i.updateBezierControlPoints(),n=0,r=u.length;n<r;++n)u[n].pivot()},getPointBackgroundColor:function(e,t){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),a=e.custom||{};return a.backgroundColor?n=a.backgroundColor:r.pointBackgroundColor?n=o.valueAtIndexOrDefault(r.pointBackgroundColor,t,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(e,t){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),a=e.custom||{};return a.borderColor?n=a.borderColor:r.pointBorderColor?n=o.valueAtIndexOrDefault(r.pointBorderColor,t,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(e,t){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),a=e.custom||{};return isNaN(a.borderWidth)?!isNaN(r.pointBorderWidth)||o.isArray(r.pointBorderWidth)?n=o.valueAtIndexOrDefault(r.pointBorderWidth,t,n):isNaN(r.borderWidth)||(n=r.borderWidth):n=a.borderWidth,n},getPointRotation:function(e,t){var n=this.chart.options.elements.point.rotation,r=this.getDataset(),a=e.custom||{};return isNaN(a.rotation)?isNaN(r.pointRotation)&&!o.isArray(r.pointRotation)||(n=o.valueAtIndexOrDefault(r.pointRotation,t,n)):n=a.rotation,n},updateElement:function(e,t,n){var r,a,i=this,s=i.getMeta(),l=e.custom||{},u=i.getDataset(),d=i.index,c=u.data[t],f=i.getScaleForId(s.yAxisID),h=i.getScaleForId(s.xAxisID),p=i.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),r=h.getPixelForValue("object"==typeof c?c:NaN,t,d),a=n?f.getBasePixel():i.calculatePointY(c,t,d),e._xScale=h,e._yScale=f,e._datasetIndex=d,e._index=t,e._model={x:r,y:a,skip:l.skip||isNaN(r)||isNaN(a),radius:l.radius||o.valueAtIndexOrDefault(u.pointRadius,t,p.radius),pointStyle:l.pointStyle||o.valueAtIndexOrDefault(u.pointStyle,t,p.pointStyle),rotation:i.getPointRotation(e,t),backgroundColor:i.getPointBackgroundColor(e,t),borderColor:i.getPointBorderColor(e,t),borderWidth:i.getPointBorderWidth(e,t),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||o.valueAtIndexOrDefault(u.pointHitRadius,t,p.hitRadius)}},calculatePointY:function(e,t,n){var r,a,o,i=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,d=0;if(l.options.stacked){for(r=0;r<n;r++)if(a=i.data.datasets[r],"line"===(o=i.getDatasetMeta(r)).type&&o.yAxisID===l.id&&i.isDatasetVisible(r)){var c=Number(l.getRightValue(a.data[t]));c<0?d+=c||0:u+=c||0}var f=Number(l.getRightValue(e));return f<0?l.getPixelForValue(d+f):l.getPixelForValue(u+f)}return l.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this.getMeta(),i=this.chart.chartArea,s=a.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(a.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)o.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,r=o.splineCurve(o.previousItem(s,e)._model,n,o.nextItem(s,e)._model,a.dataset._model.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)(n=s[e]._model).controlPointPreviousX=l(n.controlPointPreviousX,i.left,i.right),n.controlPointPreviousY=l(n.controlPointPreviousY,i.top,i.bottom),n.controlPointNextX=l(n.controlPointNextX,i.left,i.right),n.controlPointNextY=l(n.controlPointNextY,i.top,i.bottom)},draw:function(){var e,n=this.chart,r=this.getMeta(),a=r.data||[],i=n.chartArea,s=a.length,l=0;for(t(this.getDataset(),n.options)&&(e=(r.dataset._model.borderWidth||0)/2,o.canvas.clipArea(n.ctx,{left:i.left,right:i.right,top:i.top-e,bottom:i.bottom+e}),r.dataset.draw(),o.canvas.unclipArea(n.ctx));l<s;++l)a[l].draw(i)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth,radius:a.radius},a.backgroundColor=r.hoverBackgroundColor||o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,o.getHoverColor(a.backgroundColor)),a.borderColor=r.hoverBorderColor||o.valueAtIndexOrDefault(t.pointHoverBorderColor,n,o.getHoverColor(a.borderColor)),a.borderWidth=r.hoverBorderWidth||o.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,a.borderWidth),a.radius=r.hoverRadius||o.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius)}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),i=t.datasets[0],s=a.data[r].custom||{},l=o.valueAtIndexOrDefault,u=e.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(i.backgroundColor,r,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(i.borderColor,r,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(i.borderWidth,r,u.borderWidth),hidden:isNaN(i.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:o.noop,update:function(e){var t,n,r,a=this,i=a.getDataset(),s=a.getMeta(),l=a.chart.options.startAngle||0,u=a._starts=[],d=a._angles=[];for(a._updateRadius(),s.count=a.countVisibleElements(),t=0,n=i.data.length;t<n;t++)u[t]=l,r=a._computeAngle(t),d[t]=r,l+=r;o.each(s.data,function(t,n){a.updateElement(t,n,e)})},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=r.elements.arc,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max((o-a.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,i=r.getDataset(),s=a.options,l=s.animation,u=a.scale,d=a.data.labels,c=u.xCenter,f=u.yCenter,h=s.startAngle,p=e.hidden?0:u.getDistanceFromCenterForValue(i.data[t]),m=r._starts[t],y=m+(e.hidden?0:r._angles[t]),v=l.animateScale?0:u.getDistanceFromCenterForValue(i.data[t]);o.extend(e,{_datasetIndex:r.index,_index:t,_scale:u,_model:{x:c,y:f,innerRadius:0,outerRadius:n?v:p,startAngle:n&&l.animateRotate?h:m,endAngle:n&&l.animateRotate?h:y,label:o.valueAtIndexOrDefault(d,t,d[t])}});var g=this.chart.options.elements.arc,A=e.custom||{},b=o.valueAtIndexOrDefault,M=e._model;M.backgroundColor=A.backgroundColor?A.backgroundColor:b(i.backgroundColor,t,g.backgroundColor),M.borderColor=A.borderColor?A.borderColor:b(i.borderColor,t,g.borderColor),M.borderWidth=A.borderWidth?A.borderWidth:b(i.borderWidth,t,g.borderWidth),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return o.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var i={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return o.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/n],i,e)}})}},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:o.noop,update:function(e){var t=this,n=t.getMeta(),r=n.dataset,a=n.data,i=r.custom||{},s=t.getDataset(),l=t.chart.options.elements.line,u=t.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),o.extend(n.dataset,{_datasetIndex:t.index,_scale:u,_children:a,_loop:!0,_model:{tension:i.tension?i.tension:o.valueOrDefault(s.lineTension,l.tension),backgroundColor:i.backgroundColor?i.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:s.borderWidth||l.borderWidth,borderColor:i.borderColor?i.borderColor:s.borderColor||l.borderColor,fill:i.fill?i.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:i.borderDash?i.borderDash:s.borderDash||l.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),o.each(a,function(n,r){t.updateElement(n,r,e)},t),t.updateBezierControlPoints()},updateElement:function(e,t,n){var r=this,a=e.custom||{},i=r.getDataset(),s=r.chart.scale,l=r.chart.options.elements.point,u=s.getPointPositionForValue(t,i.data[t]);void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),void 0!==i.hitRadius&&void 0===i.pointHitRadius&&(i.pointHitRadius=i.hitRadius),o.extend(e,{_datasetIndex:r.index,_index:t,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:o.valueOrDefault(i.lineTension,r.chart.options.elements.line.tension),radius:a.radius?a.radius:o.valueAtIndexOrDefault(i.pointRadius,t,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:o.valueAtIndexOrDefault(i.pointBackgroundColor,t,l.backgroundColor),borderColor:a.borderColor?a.borderColor:o.valueAtIndexOrDefault(i.pointBorderColor,t,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:o.valueAtIndexOrDefault(i.pointBorderWidth,t,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:o.valueAtIndexOrDefault(i.pointStyle,t,l.pointStyle),rotation:a.rotation?a.rotation:o.valueAtIndexOrDefault(i.pointRotation,t,l.rotation),hitRadius:a.hitRadius?a.hitRadius:o.valueAtIndexOrDefault(i.pointHitRadius,t,l.hitRadius)}}),e._model.skip=a.skip?a.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();o.each(t.data,function(n,r){var a=n._model,i=o.splineCurve(o.previousItem(t.data,r,!0)._model,a,o.nextItem(t.data,r,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(i.previous.x,e.right),e.left),a.controlPointPreviousY=Math.max(Math.min(i.previous.y,e.bottom),e.top),a.controlPointNextX=Math.max(Math.min(i.next.x,e.right),e.left),a.controlPointNextY=Math.max(Math.min(i.next.y,e.bottom),e.top),n.pivot()})},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},r=e._index,a=e._model;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth,radius:a.radius},a.radius=n.hoverRadius?n.hoverRadius:o.valueAtIndexOrDefault(t.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,r,o.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:o.valueAtIndexOrDefault(t.pointHoverBorderColor,r,o.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o.valueAtIndexOrDefault(t.pointHoverBorderWidth,r,a.borderWidth)}})}},function(e,t,n){"use strict";n(17)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},function(e,t,n){"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Radar=function(t,n){return n.type="radar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},function(e,t,n){"use strict";e.exports={},e.exports.filler=n(534),e.exports.legend=n(535),e.exports.title=n(536)},function(e,t,n){"use strict";var r=n(17),a=n(27),o=n(11);r._set("global",{plugins:{filler:{propagate:!0}}});var i={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=a.length||0;return o?function(e,t){return t<o&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function s(e,t,n){var r,a=e._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function l(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if("number"==typeof o&&isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function u(e,t,n){var r,a=e[t].fill,o=[t];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;o.push(a),a=r.fill}return!1}function d(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),i[n](e))}function c(e){return e&&!e.skip}function f(e,t,n,r,a){var i;if(r&&a){for(e.moveTo(t[0].x,t[0].y),i=1;i<r;++i)o.canvas.lineTo(e,t[i-1],t[i]);for(e.lineTo(n[a-1].x,n[a-1].y),i=a-1;i>0;--i)o.canvas.lineTo(e,n[i],n[i-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,o,i,c=(e.data.datasets||[]).length,f=t.propagate,h=[];for(r=0;r<c;++r)i=null,(o=(n=e.getDatasetMeta(r)).dataset)&&o._model&&o instanceof a.Line&&(i={visible:e.isDatasetVisible(r),fill:s(o,r,c),chart:e,el:o}),n.$filler=i,h.push(i);for(r=0;r<c;++r)(i=h[r])&&(i.fill=u(h,r,f),i.boundary=l(i),i.mapper=d(i))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var a=e.ctx,i=n.el,s=i._view,l=i._children||[],u=n.mapper,d=s.backgroundColor||r.global.defaultColor;u&&d&&l.length&&(o.canvas.clipArea(a,e.chartArea),function(e,t,n,r,a,o){var i,s,l,u,d,h,p,m=t.length,y=r.spanGaps,v=[],g=[],A=0,b=0;for(e.beginPath(),i=0,s=m+!!o;i<s;++i)d=n(u=t[l=i%m]._view,l,r),h=c(u),p=c(d),h&&p?(A=v.push(u),b=g.push(d)):A&&b&&(y?(h&&v.push(u),p&&g.push(d)):(f(e,v,g,A,b),A=b=0,v=[],g=[]));f(e,v,g,A,b),e.closePath(),e.fillStyle=a,e.fill()}(a,l,u,s,d,i._loop),o.canvas.unclipArea(a))}}}},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=n(42),s=o.noop;function l(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}r._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return o.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:o.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var u=a.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var e=this,t=e.options.labels||{},n=o.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=e.options,n=t.labels,a=t.display,i=e.ctx,s=r.global,u=o.valueOrDefault,d=u(n.fontSize,s.defaultFontSize),c=u(n.fontStyle,s.defaultFontStyle),f=u(n.fontFamily,s.defaultFontFamily),h=o.fontString(d,c,f),p=e.legendHitBoxes=[],m=e.minSize,y=e.isHorizontal();if(y?(m.width=e.maxWidth,m.height=a?10:0):(m.width=a?10:0,m.height=e.maxHeight),a)if(i.font=h,y){var v=e.lineWidths=[0],g=e.legendItems.length?d+n.padding:0;i.textAlign="left",i.textBaseline="top",o.each(e.legendItems,function(t,r){var a=l(n,d)+d/2+i.measureText(t.text).width;v[v.length-1]+a+n.padding>=e.width&&(g+=d+n.padding,v[v.length]=e.left),p[r]={left:0,top:0,width:a,height:d},v[v.length-1]+=a+n.padding}),m.height+=g}else{var A=n.padding,b=e.columnWidths=[],M=n.padding,k=0,x=0,w=d+A;o.each(e.legendItems,function(e,t){var r=l(n,d)+d/2+i.measureText(e.text).width;x+w>m.height&&(M+=k+n.padding,b.push(k),k=0,x=0),k=Math.max(k,r),x+=w,p[t]={left:0,top:0,width:r,height:d}}),M+=k,b.push(k),m.width+=M}e.width=m.width,e.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,a=r.global,i=a.elements.line,s=e.width,u=e.lineWidths;if(t.display){var d,c=e.ctx,f=o.valueOrDefault,h=f(n.fontColor,a.defaultFontColor),p=f(n.fontSize,a.defaultFontSize),m=f(n.fontStyle,a.defaultFontStyle),y=f(n.fontFamily,a.defaultFontFamily),v=o.fontString(p,m,y);c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=h,c.fillStyle=h,c.font=v;var g=l(n,p),A=e.legendHitBoxes,b=e.isHorizontal();d=b?{x:e.left+(s-u[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var M=p+n.padding;o.each(e.legendItems,function(r,l){var h=c.measureText(r.text).width,m=g+p/2+h,y=d.x,v=d.y;b?y+m>=s&&(v=d.y+=M,d.line++,y=d.x=e.left+(s-u[d.line])/2):v+M>e.bottom&&(y=d.x=y+e.columnWidths[d.line]+n.padding,v=d.y=e.top+n.padding,d.line++),function(e,n,r){if(!(isNaN(g)||g<=0)){c.save(),c.fillStyle=f(r.fillStyle,a.defaultColor),c.lineCap=f(r.lineCap,i.borderCapStyle),c.lineDashOffset=f(r.lineDashOffset,i.borderDashOffset),c.lineJoin=f(r.lineJoin,i.borderJoinStyle),c.lineWidth=f(r.lineWidth,i.borderWidth),c.strokeStyle=f(r.strokeStyle,a.defaultColor);var s=0===f(r.lineWidth,i.borderWidth);if(c.setLineDash&&c.setLineDash(f(r.lineDash,i.borderDash)),t.labels&&t.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,d=e+u,h=n+u;o.canvas.drawPoint(c,r.pointStyle,l,d,h)}else s||c.strokeRect(e,n,g,p),c.fillRect(e,n,g,p);c.restore()}}(y,v,r),A[l].left=y,A[l].top=v,function(e,t,n,r){var a=p/2,o=g+a+e,i=t+a;c.fillText(n.text,o,i),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(o,i),c.lineTo(o+r,i),c.stroke())}(y,v,r,h),b?d.x+=m+n.padding:d.y+=M})}},handleEvent:function(e){var t=this,n=t.options,r="mouseup"===e.type?"click":e.type,a=!1;if("mousemove"===r){if(!n.onHover)return}else{if("click"!==r)return;if(!n.onClick)return}var o=e.x,i=e.y;if(o>=t.left&&o<=t.right&&i>=t.top&&i<=t.bottom)for(var s=t.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&i>=u.top&&i<=u.top+u.height){if("click"===r){n.onClick.call(t,e.native,t.legendItems[l]),a=!0;break}if("mousemove"===r){n.onHover.call(t,e.native,t.legendItems[l]),a=!0;break}}}return a}});function d(e,t){var n=new u({ctx:e.ctx,options:t,chart:e});i.configure(e,n,t),i.addBox(e,n),e.legend=n}e.exports={id:"legend",_element:u,beforeInit:function(e){var t=e.options.legend;t&&d(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(o.mergeIf(t,r.global.legend),n?(i.configure(e,n,t),n.options=t):d(e,t)):n&&(i.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){"use strict";var r=n(17),a=n(22),o=n(11),i=n(42),s=o.noop;r._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var l=a.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=o.valueOrDefault,n=e.options,a=n.display,i=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,l=o.isArray(n.text)?n.text.length:1,u=o.options.toLineHeight(n.lineHeight,i),d=a?l*u+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=d):(s.width=d,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:s,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=o.valueOrDefault,a=e.options,i=r.global;if(a.display){var s,l,u,d=n(a.fontSize,i.defaultFontSize),c=n(a.fontStyle,i.defaultFontStyle),f=n(a.fontFamily,i.defaultFontFamily),h=o.fontString(d,c,f),p=o.options.toLineHeight(a.lineHeight,d),m=p/2+a.padding,y=0,v=e.top,g=e.left,A=e.bottom,b=e.right;t.fillStyle=n(a.fontColor,i.defaultFontColor),t.font=h,e.isHorizontal()?(l=g+(b-g)/2,u=v+m,s=b-g):(l="left"===a.position?g+m:b-m,u=v+(A-v)/2,s=A-v,y=Math.PI*("left"===a.position?-.5:.5)),t.save(),t.translate(l,u),t.rotate(y),t.textAlign="center",t.textBaseline="middle";var M=a.text;if(o.isArray(M))for(var k=0,x=0;x<M.length;++x)t.fillText(M[x],0,k,s),k+=p;else t.fillText(M,0,0,s);t.restore()}}});function u(e,t){var n=new l({ctx:e.ctx,options:t,chart:e});i.configure(e,n,t),i.addBox(e,n),e.titleBlock=n}e.exports={id:"title",_element:l,beforeInit:function(e){var t=e.options.title;t&&u(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(o.mergeIf(t,r.global.title),n?(i.configure(e,n,t),n.options=t):u(e,t)):n&&(i.removeBox(e,n),delete e.titleBlock)}}},function(e,t,n){var r=n(268),a=n(273),o=n(571),i=n(575),s=n(593),l=n(24),u=n(275),d=n(277),c=1,f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,g){var A=l(e),b=l(t),M=A?h:s(e),k=b?h:s(t),x=(M=M==f?p:M)==p,w=(k=k==f?p:k)==p,T=M==k;if(T&&u(e)){if(!u(t))return!1;A=!0,x=!1}if(T&&!x)return g||(g=new r),A||d(e)?a(e,t,n,y,v,g):o(e,t,M,n,y,v,g);if(!(n&c)){var L=x&&m.call(e,"__wrapped__"),S=w&&m.call(t,"__wrapped__");if(L||S){var D=L?e.value():e,Y=S?t.value():t;return g||(g=new r),v(D,Y,n,y,g)}}return!!T&&(g||(g=new r),i(e,t,n,y,v,g))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(58),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(58);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(58);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(58);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(57);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(57),a=n(86),o=n(87),i=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!a||s.length<i-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(270),a=n(551),o=n(60),i=n(272),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,f=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||a(e))&&(r(e)?f:s).test(i(e))}},function(e,t,n){var r=n(59),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,a=n(552),o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(23)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(555),a=n(57),o=n(86);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}},function(e,t,n){var r=n(556),a=n(557),o=n(558),i=n(559),s=n(560);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(61);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(61),a="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(61),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(61),a="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?a:t,this}},function(e,t,n){var r=n(62);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(62);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(62);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(62);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(87),a=n(567),o=n(568);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(59),a=n(572),o=n(269),i=n(273),s=n(573),l=n(574),u=1,d=2,c="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",y="[object RegExp]",v="[object Set]",g="[object String]",A="[object Symbol]",b="[object ArrayBuffer]",M="[object DataView]",k=r?r.prototype:void 0,x=k?k.valueOf:void 0;e.exports=function(e,t,n,r,k,w,T){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!w(new a(e),new a(t)));case c:case f:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case g:return e==t+"";case p:var L=s;case v:var S=r&u;if(L||(L=l),e.size!=t.size&&!S)return!1;var D=T.get(e);if(D)return D==t;r|=d,T.set(e,t);var Y=i(L(e),L(t),r,k,w,T);return T.delete(e),Y;case A:if(x)return x.call(e)==x.call(t)}return!1}},function(e,t,n){var r=n(23).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(576),a=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,l){var u=n&a,d=r(e),c=d.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var h=d[f];if(!(u?h in t:o.call(t,h)))return!1}var p=l.get(e);if(p&&l.get(t))return p==t;var m=!0;l.set(e,t),l.set(t,e);for(var y=u;++f<c;){var v=e[h=d[f]],g=t[h];if(i)var A=u?i(g,v,h,t,e,l):i(v,g,h,e,t,l);if(!(void 0===A?v===g||s(v,g,n,i,l):A)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var b=e.constructor,M=t.constructor;b!=M&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M)&&(m=!1)}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(577),a=n(579),o=n(63);e.exports=function(e){return r(e,o,a)}},function(e,t,n){var r=n(578),a=n(24);e.exports=function(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(580),a=n(581),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return o.call(e,t)}))}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(583),a=n(274),o=n(24),i=n(275),s=n(276),l=n(277),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&a(e),c=!n&&!d&&i(e),f=!n&&!d&&!c&&l(e),h=n||d||c||f,p=h?r(e.length,String):[],m=p.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||c&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||p.push(y);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(45),a=n(46),o="[object Arguments]";e.exports=function(e){return a(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(45),a=n(88),o=n(46),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(271),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(84)(e))},function(e,t,n){var r=n(590),a=n(591),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(592)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(594),a=n(86),o=n(595),i=n(596),s=n(597),l=n(45),u=n(272),d=u(r),c=u(a),f=u(o),h=u(i),p=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=m(new a)||o&&"[object Promise]"!=m(o.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return"[object DataView]";case c:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(28)(n(23),"DataView");e.exports=r},function(e,t,n){var r=n(28)(n(23),"Promise");e.exports=r},function(e,t,n){var r=n(28)(n(23),"Set");e.exports=r},function(e,t,n){var r=n(28)(n(23),"WeakMap");e.exports=r},function(e,t,n){var r=n(599)(n(618));e.exports=r},function(e,t,n){var r=n(90),a=n(89),o=n(63);e.exports=function(e){return function(t,n,i){var s=Object(t);if(!a(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,i);return u>-1?s[l?t[u]:u]:void 0}}},function(e,t,n){var r=n(601),a=n(602),o=n(279);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(268),a=n(85),o=1,i=2;e.exports=function(e,t,n,s){var l=n.length,u=l,d=!s;if(null==e)return!u;for(e=Object(e);l--;){var c=n[l];if(d&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++l<u;){var f=(c=n[l])[0],h=e[f],p=c[1];if(d&&c[2]){if(void 0===h&&!(f in e))return!1}else{var m=new r;if(s)var y=s(h,p,f,e,t,m);if(!(void 0===y?a(p,h,o|i,s,m):y))return!1}}return!0}},function(e,t,n){var r=n(278),a=n(63);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}},function(e,t,n){var r=n(85),a=n(604),o=n(611),i=n(91),s=n(278),l=n(279),u=n(65),d=1,c=2;e.exports=function(e,t){return i(e)&&s(t)?l(u(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,d|c)}}},function(e,t,n){var r=n(280);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},function(e,t,n){var r=n(606),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)}),t});e.exports=i},function(e,t,n){var r=n(607),a=500;e.exports=function(e){var t=r(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(87),a="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(609);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(59),a=n(610),o=n(24),i=n(64),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(612),a=n(613);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(281),a=n(274),o=n(24),i=n(276),s=n(88),l=n(65);e.exports=function(e,t,n){for(var u=-1,d=(t=r(t,e)).length,c=!1;++u<d;){var f=l(t[u]);if(!(c=null!=e&&n(e,f)))break;e=e[f]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&s(d)&&i(f,d)&&(o(e)||a(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(616),a=n(617),o=n(91),i=n(65);e.exports=function(e){return o(e)?r(i(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(280);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(619),a=n(90),o=n(620),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=i(s+l,0)),r(e,a(t,3),l)}},function(e,t){e.exports=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(621);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(622),a=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===a||e===-a?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(60),a=n(64),o=NaN,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=l.test(e);return n||u.test(e)?d(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(624);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(28),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(626),a=n(627),o=n(90),i=n(24);e.exports=function(e,t){return function(n,s){var l=i(n)?r:a,u=t?t():{};return l(n,e,o(s,2),u)}}},function(e,t){e.exports=function(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a<o;){var i=e[a];t(r,i,n(i),e)}return r}},function(e,t,n){var r=n(628);e.exports=function(e,t,n,a){return r(e,function(e,r,o){t(a,e,n(e),o)}),a}},function(e,t,n){var r=n(629),a=n(632)(r);e.exports=a},function(e,t,n){var r=n(630),a=n(63);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(631)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(89);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==a(s[i],i,s););return n}}},function(e,t,n){var r=n(83),a=n(634),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var s=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var i=2*n;o[n]=parseInt(t.slice(i,i+2),16)}a&&(o[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=r[t[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(635),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var s=e[n];r(s)?t=a.call(t,o.call(s)):t.push(s)}return t};i.wrap=function(e){return function(){return e(i(arguments))}}},function(e,t){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(283),a=n(637),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=a(e);Object.keys(t).forEach(function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},function(e,t,n){var r=n(283);function a(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),i=o.length,s=0;s<i;s++){var l=o[s],u=t[l];-1===u.distance&&(u.distance=t[a].distance+1,u.parent=a,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function i(e,t){for(var n=[t[e].parent,e],a=r[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),a=o(r[t[i].parent][i],a),i=t[i].parent;return a.conversion=n,a}e.exports=function(e){for(var t=a(e),n={},r=Object.keys(t),o=r.length,s=0;s<o;s++){var l=r[s];null!==t[l].parent&&(n[l]=i(l,t))}return n}},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(1));n(93);var s=o(n(121)),l=o(n(639)),u=o(n(282));function d(e,t){var n=[s.default[300],l.default[300]],r=u.default(n[t]).hsl().array();return r[2]=80,u.default.hsl(r).darken(Math.min(e/15,.5)).hex()}n(640),t.getNodeColor=d;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mouseDown=!1,t.mousePos={x:-1,y:-1},t}return a(t,e),t.getColor=function(e){return d(e.d[e.col],e.col)},t.prototype.render=function(){var e=this,n=this.props,r=n.data,a=n.onClickNode,o=n.onHoverNode,s=r.length<=20?{mr:"matrixRow",mc:"matrixCell",l:24}:{mr:"smallMatrixRow",mc:"smallMatrixCell",l:15},l=s.mr,u=s.mc,d=s.l;return i.default.createElement("div",{className:"matrix "+l+" "+u,onMouseDown:function(t){t.preventDefault(),e.mouseDown=!0,a(e.mousePos.y,e.mousePos.x)},onMouseUp:function(t){t.preventDefault(),e.mouseDown=!1},onMouseOver:function(t){var n=t.currentTarget.getBoundingClientRect(),r=Math.floor((t.clientX-n.left)/d),a=Math.floor((t.clientY-n.top)/d);console.log(a,r,e.mouseDown);var i=e.mousePos;e.mousePos={x:r,y:a},e.mouseDown&&(i.x===r&&i.y===a||o(a,r))}},r.map(function(e,n){return i.default.createElement("div",{key:n},e.map(function(e,n){return i.default.createElement("div",{key:n,style:{backgroundColor:t.getColor(e)}})}))}))},t}(i.default.Component);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};t.default=r},function(e,t,n){var r=n(641);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(95)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(94)(!1)).push([e.i,"div.matrix {\n display: inline-block;\n}\n\n.matrix div {\n -webkit-transition: background-color 0.3s ease-out;\n -moz-transition: background-color 0.3s ease-out;\n -o-transition: background-color 0.3s ease-out;\n transition: background-color 0.3s ease-out;\n user-select: none;\n}\n\n.matrixCell div div {\n height: 20px;\n width: 20px;\n margin: 2px;\n display: inline-block;\n cursor: pointer;\n}\n\n.smallMatrixCell div div {\n height: 15px;\n width: 15px;\n margin: 1px;\n display: inline-block;\n cursor: pointer;\n}\n\n.matrixRow div {\n height: 24px;\n text-align: center;\n}\n\n.smallMatrixRow div {\n height: 17px;\n text-align: center;\n}\n",""])},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1)),o=n(30),i=r(n(53)),s=r(n(133)),l=r(n(128)),u=r(n(643));t.default=o.withStyles(function(e){return{infoField:{fontWeight:e.typography.fontWeightMedium,paddingRight:14},body:{margin:"0 auto",width:800},pre:{fontFamily:"Monospace"}}})(function(e){var t=e.classes;return a.default.createElement("div",{className:t.body},a.default.createElement("article",null,a.default.createElement(i.default,{variant:"body1",paragraph:!0},"The MIT License (MIT)"),a.default.createElement(i.default,{variant:"body1",paragraph:!0},"Copyright 2019 Ava Labs, Inc.",a.default.createElement("br",null),"Author: Ted Yin"),a.default.createElement(i.default,{variant:"body1",paragraph:!0},'Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:'),a.default.createElement(i.default,{variant:"body1",paragraph:!0},"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."),a.default.createElement(i.default,{variant:"body1"},'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.')),a.default.createElement(i.default,{variant:"body1"},a.default.createElement(l.default,{disablePadding:!0},a.default.createElement(u.default,null,a.default.createElement("span",{className:t.infoField},"Email:"),"ted at avalabs dot org or 73d at tedyin dot com"),a.default.createElement(u.default,null,a.default.createElement("span",{className:t.infoField},"GitHub:"),a.default.createElement(s.default,{href:"https://github.com/Determinant/snow-bft-demo",target:"_blank",rel:"noopener"},"Determinant/snow-bft-demo")))))})},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(644))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(4)),o=r(n(10)),i=r(n(5)),s=r(n(1)),l=(r(n(0)),r(n(9))),u=(n(7),r(n(8))),d=r(n(40)),c=n(36),f=r(n(645)),h=function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:11,paddingBottom:11,"&$selected, &$selected:hover, &$selected:focus":{backgroundColor:e.palette.action.selected}},container:{position:"relative"},focusVisible:{},default:{},dense:{paddingTop:8,paddingBottom:8},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{opacity:.5},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&:focus":{backgroundColor:e.palette.action.hover}},secondaryAction:{paddingRight:32},selected:{}}};function p(e){var t=e.alignItems,n=e.button,r=e.children,u=e.classes,h=e.className,p=e.component,m=e.ContainerComponent,y=e.ContainerProps,v=(y=void 0===y?{}:y).className,g=(0,i.default)(y,["className"]),A=e.dense,b=e.disabled,M=e.disableGutters,k=e.divider,x=e.focusVisibleClassName,w=e.selected,T=(0,i.default)(e,["alignItems","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]);return s.default.createElement(f.default,{dense:A,alignItems:t},function(e){var i,f=e.dense,y=s.default.Children.toArray(r),A=y.some(function(e){return(0,c.isMuiElement)(e,["ListItemAvatar"])}),L=y.length&&(0,c.isMuiElement)(y[y.length-1],["ListItemSecondaryAction"]),S=(0,l.default)(u.root,u.default,(i={},(0,o.default)(i,u.dense,f||A),(0,o.default)(i,u.gutters,!M),(0,o.default)(i,u.divider,k),(0,o.default)(i,u.disabled,b),(0,o.default)(i,u.button,n),(0,o.default)(i,u.alignItemsFlexStart,"flex-start"===t),(0,o.default)(i,u.secondaryAction,L),(0,o.default)(i,u.selected,w),i),h),D=(0,a.default)({className:S,disabled:b},T),Y=p||"li";return n&&(D.component=p||"div",D.focusVisibleClassName=(0,l.default)(u.focusVisible,x),Y=d.default),L?(Y=D.component||p?Y:"div","li"===m&&("li"===Y?Y="div":"li"===D.component&&(D.component="div")),s.default.createElement(m,(0,a.default)({className:(0,l.default)(u.container,v)},g),s.default.createElement(Y,D,y),y.pop())):s.default.createElement(Y,D,y)})}t.styles=h,p.defaultProps={alignItems:"center",button:!1,ContainerComponent:"li",dense:!1,disabled:!1,disableGutters:!1,divider:!1,selected:!1};var m=(0,u.default)(h,{name:"MuiListItem"})(p);t.default=m},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),o=(r(n(0)),r(n(129)));var i=function(e){var t=e.alignItems,n=e.children,r=e.dense;return a.default.createElement(o.default.Consumer,null,function(e){var i={dense:r||e.dense||!1,alignItems:t};return a.default.createElement(o.default.Provider,{value:i},n(i))})};t.default=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1));t.default=function(e){return a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 97.079997 37.00",version:"1.1",style:e.style},a.default.createElement("path",{d:"M 20.52,0 0,36.02 H 14.85 L 28.03,13.19 Z M 13.7,34.02 H 3.45 l 17.08,-29.98 5.21,9.14 z m 8.79,2 H 41.04 L 31.82,19.85 Z m 3.46,-2 5.86,-10.16 5.79,10.16 z M 76.57,0 56.05,36.02 H 70.9 L 84.08,13.19 Z M 69.74,34.02 H 59.49 L 76.57,4.04 81.78,13.18 Z M 87.87,19.84 78.53,36.01 h 18.55 z m -0.01,4.02 5.79,10.16 H 82 Z M 42.92,0 H 28.07 L 48.59,36.02 56.1,22.84 Z M 31.51,2 h 10.25 l 12.03,20.84 -5.21,9.14 z M 69.11,0 H 50.56 L 59.9,16.17 Z M 54.02,2 h 11.65 l -5.79,10.16 z",id:"path4",style:{fill:"#f5f1ee"}}))}},function(e,t,n){"use strict";n.r(t);var r=n(6),a=n.n(r),o=n(1),i=n.n(o),s=n(0),l=n.n(s),u=n(19),d=n.n(u),c=n(18),f=n.n(c);function h(e){return"/"===e.charAt(0)}function p(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],a=e&&h(e),o=t&&h(t),i=a||o;if(e&&h(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var l=r[r.length-1];s="."===l||".."===l||""===l}else s=!1;for(var u=0,d=r.length;d>=0;d--){var c=r[d];"."===c?p(r,d):".."===c?(p(r,d),u++):u&&(p(r,d),u--)}if(!i)for(;u--;u)r.unshift("..");!i||""===r[0]||r[0]&&h(r[0])||r.unshift("");var f=r.join("/");return s&&"/"!==f.substr(-1)&&(f+="/"),f},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var v=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":y(t);if(r!==(void 0===n?"undefined":y(n)))return!1;if("object"===r){var a=t.valueOf(),o=n.valueOf();if(a!==t||o!==n)return e(a,o);var i=Object.keys(t),s=Object.keys(n);return i.length===s.length&&i.every(function(r){return e(t[r],n[r])})}return!1},g=function(e){return"/"===e.charAt(0)?e:"/"+e},A=function(e){return"/"===e.charAt(0)?e.substr(1):e},b=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},M=function(e,t){return b(e,t)?e.substr(t.length):e},k=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},x=function(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a},w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e,t,n,r){var a=void 0;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(a=w({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=m(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a},L=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&v(e.state,t.state)},S=function(){var e=null,t=[];return{setPrompt:function(t){return d()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):(d()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}},D=!("undefined"==typeof window||!window.document||!window.document.createElement),Y=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},j=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},E=function(e,t){return t(window.confirm(e))},P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(){try{return window.history.state||{}}catch(e){return{}}},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f()(D,"Browser history needs a DOM");var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e.forceRefresh,i=void 0!==o&&o,s=e.getUserConfirmation,l=void 0===s?E:s,u=e.keyLength,c=void 0===u?6:u,h=e.basename?k(g(e.basename)):"",p=function(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return d()(!h||b(o,h),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+h+'".'),h&&(o=M(o,h)),T(o,r,n)},m=function(){return Math.random().toString(36).substr(2,c)},y=S(),v=function(e){O(U,e),U.length=n.length,y.notifyListeners(U.location,U.action)},A=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||H(p(e.state))},w=function(){H(p(C()))},L=!1,H=function(e){L?(L=!1,v()):y.confirmTransitionTo(e,"POP",l,function(t){t?v({action:"POP",location:e}):R(e)})},R=function(e){var t=U.location,n=F.indexOf(t.key);-1===n&&(n=0);var r=F.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(L=!0,z(a))},N=p(C()),F=[N.key],W=function(e){return h+x(e)},z=function(e){n.go(e)},I=0,V=function(e){1===(I+=e)?(Y(window,"popstate",A),a&&Y(window,"hashchange",w)):0===I&&(j(window,"popstate",A),a&&j(window,"hashchange",w))},B=!1,U={length:n.length,action:"POP",location:N,createHref:W,push:function(e,t){d()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=T(e,t,m(),U.location);y.confirmTransitionTo(a,"PUSH",l,function(e){if(e){var t=W(a),o=a.key,s=a.state;if(r)if(n.pushState({key:o,state:s},null,t),i)window.location.href=t;else{var l=F.indexOf(U.location.key),u=F.slice(0,-1===l?0:l+1);u.push(a.key),F=u,v({action:"PUSH",location:a})}else d()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}})},replace:function(e,t){d()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=T(e,t,m(),U.location);y.confirmTransitionTo(a,"REPLACE",l,function(e){if(e){var t=W(a),o=a.key,s=a.state;if(r)if(n.replaceState({key:o,state:s},null,t),i)window.location.replace(t);else{var l=F.indexOf(U.location.key);-1!==l&&(F[l]=a.key),v({action:"REPLACE",location:a})}else d()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}})},go:z,goBack:function(){return z(-1)},goForward:function(){return z(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=y.setPrompt(e);return B||(V(1),B=!0),function(){return B&&(B=!1,V(-1)),t()}},listen:function(e){var t=y.appendListener(e);return V(1),function(){V(-1),t()}}};return U},R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+A(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:A,decodePath:g},slash:{encodePath:g,decodePath:g}},F=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},W=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f()(D,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,a=void 0===r?E:r,o=e.hashType,i=void 0===o?"slash":o,s=e.basename?k(g(e.basename)):"",l=N[i],u=l.encodePath,c=l.decodePath,h=function(){var e=c(F());return d()(!s||b(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=M(e,s)),T(e)},p=S(),m=function(e){R(q,e),q.length=t.length,p.notifyListeners(q.location,q.action)},y=!1,v=null,A=function(){var e=F(),t=u(e);if(e!==t)W(t);else{var n=h(),r=q.location;if(!y&&L(r,n))return;if(v===x(n))return;v=null,w(n)}},w=function(e){y?(y=!1,m()):p.confirmTransitionTo(e,"POP",a,function(t){t?m({action:"POP",location:e}):P(e)})},P=function(e){var t=q.location,n=z.lastIndexOf(x(t));-1===n&&(n=0);var r=z.lastIndexOf(x(e));-1===r&&(r=0);var a=n-r;a&&(y=!0,I(a))},O=F(),C=u(O);O!==C&&W(C);var H=h(),z=[x(H)],I=function(e){d()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,B=function(e){1===(V+=e)?Y(window,"hashchange",A):0===V&&j(window,"hashchange",A)},U=!1,q={length:t.length,action:"POP",location:H,createHref:function(e){return"#"+u(s+x(e))},push:function(e,t){d()(void 0===t,"Hash history cannot push state; it is ignored");var n=T(e,void 0,void 0,q.location);p.confirmTransitionTo(n,"PUSH",a,function(e){if(e){var t=x(n),r=u(s+t);if(F()!==r){v=t,function(e){window.location.hash=e}(r);var a=z.lastIndexOf(x(q.location)),o=z.slice(0,-1===a?0:a+1);o.push(t),z=o,m({action:"PUSH",location:n})}else d()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){d()(void 0===t,"Hash history cannot replace state; it is ignored");var n=T(e,void 0,void 0,q.location);p.confirmTransitionTo(n,"REPLACE",a,function(e){if(e){var t=x(n),r=u(s+t);F()!==r&&(v=t,W(r));var a=z.indexOf(x(q.location));-1!==a&&(z[a]=t),m({action:"REPLACE",location:n})}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p.setPrompt(e);return U||(B(1),U=!0),function(){return U&&(U=!1,B(-1)),t()}},listen:function(e){var t=p.appendListener(e);return B(1),function(){B(-1),t()}}};return q},I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B=function(e,t,n){return Math.min(Math.max(e,t),n)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,a=e.initialIndex,o=void 0===a?0:a,i=e.keyLength,s=void 0===i?6:i,l=S(),u=function(e){V(y,e),y.length=y.entries.length,l.notifyListeners(y.location,y.action)},c=function(){return Math.random().toString(36).substr(2,s)},f=B(o,0,r.length-1),h=r.map(function(e){return T(e,void 0,"string"==typeof e?c():e.key||c())}),p=x,m=function(e){var n=B(y.index+e,0,y.entries.length-1),r=y.entries[n];l.confirmTransitionTo(r,"POP",t,function(e){e?u({action:"POP",location:r,index:n}):u()})},y={length:h.length,action:"POP",location:h[f],index:f,entries:h,createHref:p,push:function(e,n){d()(!("object"===(void 0===e?"undefined":I(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=T(e,n,c(),y.location);l.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){d()(!("object"===(void 0===e?"undefined":I(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=T(e,n,c(),y.location);l.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=y.index+e;return t>=0&&t<y.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return y},q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function G(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var K=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=G(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props.history.location.pathname)},G(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:q({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;f()(null==n||1===i.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){a()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?i.a.Children.only(e):null},t}(i.a.Component);K.propTypes={history:l.a.object.isRequired,children:l.a.node},K.contextTypes={router:l.a.object},K.childContextTypes={router:l.a.object.isRequired};var Z=K,Q=Z;function J(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var X=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=J(this,e.call.apply(e,[this].concat(o))),r.history=H(r.props),J(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){a()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(Q,{history:this.history,children:this.props.children})},t}(i.a.Component);X.propTypes={basename:l.a.string,forceRefresh:l.a.bool,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node};var _=X;function $(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ee=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=$(this,e.call.apply(e,[this].concat(o))),r.history=z(r.props),$(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){a()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(Q,{history:this.history,children:this.props.children})},t}(i.a.Component);ee.propTypes={basename:l.a.string,getUserConfirmation:l.a.func,hashType:l.a.oneOf(["hashbang","noslash","slash"]),children:l.a.node};var te=ee,ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function re(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ae=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},oe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=re(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!ae(e)){e.preventDefault();var t=r.context.router.history,n=r.props,a=n.replace,o=n.to;a?t.replace(o):t.push(o)}},re(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>"),f()(void 0!==t,'You must specify the "to" property');var a=this.context.router.history,o="string"==typeof t?T(t,null,null,a.location):t,s=a.createHref(o);return i.a.createElement("a",ne({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(i.a.Component);oe.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},oe.defaultProps={replace:!1},oe.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired};var ie=oe;function se(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var le=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=se(this,e.call.apply(e,[this].concat(o))),r.history=U(r.props),se(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){a()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.a.createElement(Z,{history:this.history,children:this.props.children})},t}(i.a.Component);le.propTypes={initialEntries:l.a.array,initialIndex:l.a.number,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node};var ue=le,de=n(66),ce=n.n(de),fe={},he=0,pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,a=r.path,o=r.exact,i=void 0!==o&&o,s=r.strict,l=void 0!==s&&s,u=r.sensitive;if(null==a)return n;var d=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=fe[n]||(fe[n]={});if(r[e])return r[e];var a=[],o={re:ce()(e,a,t),keys:a};return he<1e4&&(r[e]=o,he++),o}(a,{end:i,strict:l,sensitive:void 0!==u&&u}),c=d.re,f=d.keys,h=c.exec(e);if(!h)return null;var p=h[0],m=h.slice(1),y=e===p;return i&&!y?null:{path:a,url:"/"===a&&""===p?"/":p,isExact:y,params:f.reduce(function(e,t,n){return e[t.name]=m[n],e},{})}},me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ye(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ve=function(e){return 0===i.a.Children.count(e)},ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=ye(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props,r.context.router)},ye(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:me({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,a=e.path,o=e.strict,i=e.exact,s=e.sensitive;if(n)return n;f()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,u=(r||l.location).pathname;return pe(u,{path:a,strict:o,exact:i,sensitive:s},l.match)},t.prototype.componentWillMount=function(){a()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),a()(!(this.props.component&&this.props.children&&!ve(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),a()(!(this.props.render&&this.props.children&&!ve(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){a()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,a=t.render,o=this.context.router,s=o.history,l=o.route,u=o.staticContext,d={match:e,location:this.props.location||l.location,history:s,staticContext:u};return r?e?i.a.createElement(r,d):null:a?e?a(d):null:"function"==typeof n?n(d):n&&!ve(n)?i.a.Children.only(n):null},t}(i.a.Component);ge.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},ge.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},ge.childContextTypes={router:l.a.object.isRequired};var Ae=ge,be=Ae,Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var xe=function(e){var t=e.to,n=e.exact,r=e.strict,a=e.location,o=e.activeClassName,s=e.className,l=e.activeStyle,u=e.style,d=e.isActive,c=e["aria-current"],f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),h="object"===(void 0===t?"undefined":ke(t))?t.pathname:t,p=h&&h.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1");return i.a.createElement(be,{path:p,exact:n,strict:r,location:a,children:function(e){var n=e.location,r=e.match,a=!!(d?d(r,n):r);return i.a.createElement(ie,Me({to:t,className:a?[s,o].filter(function(e){return e}).join(" "):s,style:a?Me({},u,l):u,"aria-current":a&&c||null},f))}})};xe.propTypes={to:ie.propTypes.to,exact:l.a.bool,strict:l.a.bool,location:l.a.object,activeClassName:l.a.string,className:l.a.string,activeStyle:l.a.object,style:l.a.object,isActive:l.a.func,"aria-current":l.a.oneOf(["page","step","location","date","time","true"])},xe.defaultProps={activeClassName:"active","aria-current":"page"};var we=xe;var Te=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.a.Component);Te.propTypes={when:l.a.bool,message:l.a.oneOfType([l.a.func,l.a.string]).isRequired},Te.defaultProps={when:!0},Te.contextTypes={router:l.a.shape({history:l.a.shape({block:l.a.func.isRequired}).isRequired}).isRequired};var Le=Te,Se={},De=0,Ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=Se[t]||(Se[t]={});if(n[e])return n[e];var r=ce.a.compile(e);return De<1e4&&(n[e]=r,De++),r}(e)(t,{pretty:!0})},je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=T(e.to),n=T(this.props.to);L(t,n)?a()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Ye(n,t.params):je({},n,{pathname:Ye(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(i.a.Component);Ee.propTypes={computedMatch:l.a.object,push:l.a.bool,from:l.a.string,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired},Ee.defaultProps={push:!1},Ee.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired}).isRequired,staticContext:l.a.object}).isRequired};var Pe=Ee,Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ce(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var He=function(e){return"/"===e.charAt(0)?e:"/"+e},Re=function(e,t){return e?Oe({},t,{pathname:He(e)+t.pathname}):t},Ne=function(e,t){if(!e)return t;var n=He(e);return 0!==t.pathname.indexOf(n)?t:Oe({},t,{pathname:t.pathname.substr(n.length)})},Fe=function(e){return"string"==typeof e?e:x(e)},We=function(e){return function(){f()(!1,"You cannot %s with <StaticRouter>",e)}},ze=function(){},Ie=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=Ce(this,e.call.apply(e,[this].concat(o))),r.createHref=function(e){return He(r.props.basename+Fe(e))},r.handlePush=function(e){var t=r.props,n=t.basename,a=t.context;a.action="PUSH",a.location=Re(n,T(e)),a.url=Fe(a.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,a=t.context;a.action="REPLACE",a.location=Re(n,T(e)),a.url=Fe(a.location)},r.handleListen=function(){return ze},r.handleBlock=function(){return ze},Ce(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){a()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:Ne(t,T(n)),push:this.handlePush,replace:this.handleReplace,go:We("go"),goBack:We("goBack"),goForward:We("goForward"),listen:this.handleListen,block:this.handleBlock};return i.a.createElement(Z,Oe({},r,{history:a}))},t}(i.a.Component);Ie.propTypes={basename:l.a.string,context:l.a.object.isRequired,location:l.a.oneOfType([l.a.string,l.a.object])},Ie.defaultProps={basename:"",location:"/"},Ie.childContextTypes={router:l.a.object.isRequired};var Ve=Ie;var Be=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){a()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,a=void 0;return i.a.Children.forEach(t,function(t){if(null==r&&i.a.isValidElement(t)){var o=t.props,s=o.path,l=o.exact,u=o.strict,d=o.sensitive,c=o.from,f=s||c;a=t,r=pe(n.pathname,{path:f,exact:l,strict:u,sensitive:d},e.match)}}),r?i.a.cloneElement(a,{location:n,computedMatch:r}):null},t}(i.a.Component);Be.contextTypes={router:l.a.shape({route:l.a.object.isRequired}).isRequired},Be.propTypes={children:l.a.node,location:l.a.object};var Ue=Be,qe=Ye,Ge=pe,Ke=n(285),Ze=n.n(Ke),Qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Je=function(e){var t=function(t){var n=t.wrappedComponentRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return i.a.createElement(Ae,{children:function(t){return i.a.createElement(e,Qe({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:l.a.func},Ze()(t,e)};n.d(t,"BrowserRouter",function(){return _}),n.d(t,"HashRouter",function(){return te}),n.d(t,"Link",function(){return ie}),n.d(t,"MemoryRouter",function(){return ue}),n.d(t,"NavLink",function(){return we}),n.d(t,"Prompt",function(){return Le}),n.d(t,"Redirect",function(){return Pe}),n.d(t,"Route",function(){return be}),n.d(t,"Router",function(){return Q}),n.d(t,"StaticRouter",function(){return Ve}),n.d(t,"Switch",function(){return Ue}),n.d(t,"generatePath",function(){return qe}),n.d(t,"matchPath",function(){return Ge}),n.d(t,"withRouter",function(){return Je})}]);
//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/src/About.tsx b/src/About.tsx
index 83eb8c1..ec78d66 100644
--- a/src/About.tsx
+++ b/src/About.tsx
@@ -37,7 +37,8 @@ function About(props: AboutProps) {
</Typography>
<Typography variant="body1" paragraph>
- Copyright 2019 Maofan "Ted" Yin
+ Copyright 2019 Ava Labs, Inc.<br/>
+ Author: Ted Yin
</Typography>
<Typography variant="body1" paragraph>
@@ -68,7 +69,7 @@ function About(props: AboutProps) {
<List disablePadding>
<ListItem>
<span className={classes.infoField}>Email:</span>
- 73d at tedyin dot com
+ ted at avalabs dot org or 73d at tedyin dot com
</ListItem>
<ListItem>
<span className={classes.infoField}>GitHub:</span>
@@ -76,13 +77,6 @@ function About(props: AboutProps) {
Determinant/snow-bft-demo
</Link>
</ListItem>
- <ListItem>
- <span className={classes.infoField}>Buy me a cup of coffee:</span>
- <List className={classes.pre} disablePadding>
- <ListItem>Ether: 0xFEeed0f0BA87824819aabfa789f41FA2dd9ad81e</ListItem>
- <ListItem>Bitcoin: 1CbVBB6Gv7WP4u39wsN416SJrjmvQDjggw</ListItem>
- </List>
- </ListItem>
</List>
</Typography>
</div>);
diff --git a/src/Snow.tsx b/src/Snow.tsx
index b053a51..5546d24 100644
--- a/src/Snow.tsx
+++ b/src/Snow.tsx
@@ -325,7 +325,7 @@ class Snow extends React.Component<SnowProps> {
<Grid item lg={4} xs={12}>
<Typography variant="body1" paragraph>
This demo shows the Snowball protocol used as the core of a peer-to-peer payment system, Avalanche, introduced in&nbsp;
- <Link href="https://avalanchelabs.org/QmT1ry38PAmnhparPUmsUNHDEGHQusBLD6T5XJh4mUUn3v.pdf" target="_blank" rel="noopener">
+ <Link href="https://avalabs.org/QmT1ry38PAmnhparPUmsUNHDEGHQusBLD6T5XJh4mUUn3v.pdf" target="_blank" rel="noopener">
this paper
</Link>
&nbsp;. It visualizes the process of a binary,