From f8b6ec4c684b3892f0a6e0add1f3bebee6a7f944 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 11 Apr 2019 16:27:38 -0400 Subject: ... --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/index.js b/dist/index.js index cea5a77..c8e6098 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;a0){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.lefto.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;i3&&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-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;o0&&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);t1;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=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=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=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/2n?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"},s.default.createElement("p",null,"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("p",null,"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:"​"}})))});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:"​"}})),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;om){var A=f-m;d-=A,l.vertical+=A}if(cv){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;le.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=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;r1&&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=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;i1;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=[];++c1)for(var n=1;n=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=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=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)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;t0?c[t-1]:null,(a=t0?c[t-1]:null,a=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;ur&&(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.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;ol;)a-=2*Math.PI;for(;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=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='
';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=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;t0||(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;en&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n0&&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;ce.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:re.max&&(e.max=r),0!==r&&(null===e.minNotZero||r0?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(na?{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;s270||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;td.r&&(d.r=g.end,c.r=y),A.startd.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=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=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))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=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;at&&s1?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=0&&e0?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].index0?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=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');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o'),a[o]&&t.push(a[o]),t.push("");return t.push(""),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=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(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');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o'),a[o]&&t.push(a[o]),t.push("");return t.push(""),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=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;i0;--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');for(var n=0;n'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("");return t.push(""),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=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-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-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=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=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;a1&&(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;a1&&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;t0&&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=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;t0&&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&&t0&&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 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 ")},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 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 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=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 outside a "),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 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 or withRouter() outside a ");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 and in the same route; will be ignored"),a()(!(this.props.component&&this.props.children&&!ve(this.props.children)),"You should not use and in the same route; will be ignored"),a()(!(this.props.render&&this.props.children&&!ve(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){a()(!(e.location&&!this.props.location),' 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),' 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=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 outside a "),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 outside a "),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",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 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 outside a ")},t.prototype.componentWillReceiveProps=function(e){a()(!(e.location&&!this.props.location),' 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),' 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=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;a0){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.lefto.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;i3&&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-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;o0&&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);t1;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=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=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=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/2n?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:"​"}})))});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:"​"}})),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;om){var A=f-m;d-=A,l.vertical+=A}if(cv){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;le.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=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;r1&&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=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;i1;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=[];++c1)for(var n=1;n=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=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=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)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;t0?c[t-1]:null,(a=t0?c[t-1]:null,a=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;ur&&(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.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;ol;)a-=2*Math.PI;for(;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=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='
';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=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;t0||(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;en&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n0&&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;ce.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:re.max&&(e.max=r),0!==r&&(null===e.minNotZero||r0?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(na?{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;s270||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;td.r&&(d.r=g.end,c.r=y),A.startd.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=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=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))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=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;at&&s1?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=0&&e0?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].index0?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=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');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o'),a[o]&&t.push(a[o]),t.push("");return t.push(""),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=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(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');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o'),a[o]&&t.push(a[o]),t.push("");return t.push(""),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=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;i0;--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');for(var n=0;n'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("");return t.push(""),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=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-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-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=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=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;a1&&(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;a1&&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;t0&&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=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;t0&&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&&t0&&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 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 ")},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 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 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=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 outside a "),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 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 or withRouter() outside a ");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 and in the same route; will be ignored"),a()(!(this.props.component&&this.props.children&&!ve(this.props.children)),"You should not use and in the same route; will be ignored"),a()(!(this.props.render&&this.props.children&&!ve(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){a()(!(e.location&&!this.props.location),' 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),' 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=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 outside a "),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 outside a "),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",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 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 outside a ")},t.prototype.componentWillReceiveProps=function(e){a()(!(e.location&&!this.props.location),' 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),' 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=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 -- cgit v1.2.3-70-g09d2