{"size": 69229, "ext": "js", "max_stars_repo_path": "build/static/js/1.787db8.min.js", "max_stars_repo_name": "ivmarcos/react-lazy-router-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/static/js/1.787db8.min.js", "max_issues_repo_name": "ivmarcos/react-lazy-router-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/static/js/1.787db8.min.js", "max_forks_repo_name": "ivmarcos/react-lazy-router-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23076.3333333333, "max_line_length": 32013, "alphanum_fraction": 0.727859712}
webpackJsonp([1],{41:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(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)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(t),c=r(n),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),d(t,[{key:"render",value:function(){var e,t=this.props,n=t.label,r=t.htmlFor,a=t.className,s=t.floating,l=t.active,d=t.error,f=t.disabled,h=t.iconOffset,y=t.customSize,b=i(t,["label","htmlFor","className","floating","active","error","disabled","iconOffset","customSize"]);return n?u.default.createElement("label",p({},b,{htmlFor:r,className:(0,c.default)("md-floating-label",(e={"md-floating-label--active":!d&&l,"md-floating-label--error":!f&&d,"md-floating-label--inactive":!s,"md-floating-label--inactive-sized":!s&&!y},o(e,"md-floating-label--"+y,y),o(e,"md-floating-label--inactive-"+y,y&&!s),o(e,"md-floating-label--floating",s),o(e,"md-floating-label--disabled",f),o(e,"md-floating-label--icon-offset",h),e),a)}),n):null}}]),t}(t.PureComponent);f.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,label:t.PropTypes.string,floating:t.PropTypes.bool,error:t.PropTypes.bool,active:t.PropTypes.bool,disabled:t.PropTypes.bool,iconOffset:t.PropTypes.bool,customSize:t.PropTypes.string,htmlFor:t.PropTypes.string},e.default=f})},42:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2),n(45)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 u(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)}Object.defineProperty(e,"__esModule",{value:!0});var c=o(n),p=o(r),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function n(e){s(this,n);var t=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.getValue=t.getValue.bind(t),t.getField=t.getField.bind(t),t.focus=t.focus.bind(t),t._setField=t._setField.bind(t),t}return u(n,e),f(n,[{key:"getField",value:function(){return"undefined"==typeof this.props.rows?this._field:this._field.getField()}},{key:"getValue",value:function(){return"undefined"==typeof this.props.rows?this._field.value:this._field.getValue()}},{key:"focus",value:function(){this._field.focus()}},{key:"_setField",value:function(e){this._field=e}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.rows,o=e.label,s=e.customSize,l=e.fullWidth,u=e.type,f=e.passwordVisible,h=e.block,y=e.inlineIndicator,b=a(e,["className","rows","label","customSize","fullWidth","type","passwordVisible","block","inlineIndicator"]),m="undefined"!=typeof r,v=m?p.default:"input";return m?(b.label=o,b.block=h):(b.type=f?"text":u,delete b.maxRows,delete b.onHeightChange),(0,t.createElement)(v,d({},b,{rows:r,ref:this._setField,className:(0,c.default)("md-text-field",i({"md-text":!b.disabled,"md-text--disabled":b.disabled,"md-text-field--inline-indicator":y||!m&&"password"===u,"md-text-field--multiline":m,"md-full-width":l,"md-text-field--margin":!h&&!m&&!o,"md-text-field--floating-margin":!h&&!m&&o},"md-text-field--"+s,s),n)}))}}]),n}(t.PureComponent);h.propTypes={id:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),style:t.PropTypes.object,className:t.PropTypes.string,type:t.PropTypes.string,placeholder:t.PropTypes.string,block:t.PropTypes.bool,disabled:t.PropTypes.bool,rows:t.PropTypes.number,maxRows:t.PropTypes.number,label:t.PropTypes.string,fullWidth:t.PropTypes.bool,customSize:t.PropTypes.string,passwordVisible:t.PropTypes.bool,inlineIndicator:t.PropTypes.bool},e.default=h})},43:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=r(t),l=r(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.children,r=e.className;return n?s.default.createElement("span",{"aria-hidden":!t,className:(0,l.default)("md-text-field-message","md-text-field-message--"+(t?"":"in")+"active",r)},n):null}}]),t}(t.PureComponent);c.propTypes={active:t.PropTypes.bool,className:t.PropTypes.string,children:t.PropTypes.node},e.default=c})},44:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2),n(5),n(15)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r,o){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 u(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)}Object.defineProperty(e,"__esModule",{value:!0});var c=i(t),p=i(n),d=i(o),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e){function t(e){s(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={keyboardFocus:!1},n._handleKeyUp=n._handleKeyUp.bind(n),n._handleKeyDown=n._handleKeyDown.bind(n),n._handleOutsideClick=n._handleOutsideClick.bind(n),n}return u(t,e),h(t,[{key:"componentWillUnmount",value:function(){this.state.keyboardFocus&&window.removeEventListener("click",this._handleOutsideClick)}},{key:"_handleOutsideClick",value:function(e){this._button&&!this._button.contains(e.target)&&(window.removeEventListener("click",this._handleOutsideClick),this.setState({keyboardFocus:!1}))}},{key:"_handleKeyUp",value:function(e){this.props.onKeyUp&&this.props.onKeyUp(e),(e.which||e.keyCode)===r.TAB&&(window.addEventListener("click",this._handleOutsideClick),this.setState({keyboardFocus:!0}))}},{key:"_handleKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=e.which||e.keyCode;t!==r.TAB&&t!==r.ENTER&&t!==r.SPACE||(window.removeEventListener("click",this._handleOutsideClick),this.setState({keyboardFocus:!1}))}},{key:"render",value:function(){var e=this.state.keyboardFocus,t=this.props,n=t.active,r=t.passwordVisible,o=t.iconClassName,i=t.iconChildren,s=t.block,l=t.floating,u=a(t,["active","passwordVisible","iconClassName","iconChildren","block","floating"]);return c.default.createElement("button",f({},u,{onKeyDown:this._handleKeyDown,onKeyUp:this._handleKeyUp,type:"button",className:(0,p.default)("md-text-field-inline-indicator md-password-btn md-pointer--hover",{"md-password-btn--focus":e,"md-password-btn--active":n,"md-password-btn--invisible":n&&!r,"md-text-field-inline-indicator--floating":l,"md-text-field-inline-indicator--block":s})}),c.default.createElement(d.default,{iconClassName:o},i))}}]),t}(t.PureComponent);y.propTypes={active:t.PropTypes.bool,passwordVisible:t.PropTypes.bool,iconClassName:t.PropTypes.string,iconChildren:t.PropTypes.node,onKeyUp:t.PropTypes.func,onKeyDown:t.PropTypes.func,block:t.PropTypes.bool,floating:t.PropTypes.bool},e.default=y})},45:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(t),u=r(n),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={height:null},n.focus=n.focus.bind(n),n.getField=n.getField.bind(n),n.getValue=n.getValue.bind(n),n._handleChange=n._handleChange.bind(n),n._handleResize=n._handleResize.bind(n),n._syncHeightWithMask=n._syncHeightWithMask.bind(n),n}return s(t,e),p(t,[{key:"componentDidMount",value:function(){this._rowHeight=this._calcRowHeight(this._field,this.props),this._syncHeightWithMask(),window.addEventListener("resize",this._handleResize)}},{key:"componentWillReceiveProps",value:function(e){this.props.rows!==e.rows&&(this._rowHeight=this._calcRowHeight(this._field,this.props)),this.props.value===e.value&&this.props.maxRows===e.maxRows||this._syncHeightWithMask(e.value)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._handleResize)}},{key:"getField",value:function(){return this._field}},{key:"getValue",value:function(){return this._field.value}},{key:"focus",value:function(){this._field.focus()}},{key:"_setMask",value:function(e){this._mask=e}},{key:"_setField",value:function(e){this._field=e}},{key:"_calcRowHeight",value:function(e,t){return e.offsetHeight/t.rows}},{key:"_handleResize",value:function(){this._rowHeight=this._calcRowHeight(this._field,this.props),this._syncHeightWithMask()}},{key:"_syncHeightWithMask",value:function(e){void 0!==e&&(this._mask.value=e);var t=this._mask.scrollHeight;if(void 0!==t){var n=this.props,r=n.rows,o=n.maxRows;o&&o>0&&(t=Math.min(t,this._rowHeight*o)),t=Math.max(this._rowHeight*r,t),this.props.onHeightChange&&this.props.onHeightChange(t+5),this.setState({height:t})}}},{key:"_handleChange",value:function(e){this._syncHeightWithMask(e.target.value,e),this.props.onChange&&this.props.onChange(e)}},{key:"render",value:function(){var e=this,t=this.state.height,n=this.props,r=n.style,i=n.defaultValue,a=n.value,s=n.className,p=n.label,d=n.block,f=o(n,["style","defaultValue","value","className","label","block"]);return delete f.maxRows,delete f.onChange,delete f.onHeightChange,l.default.createElement("div",{style:{height:t&&t+5},className:(0,u.default)("md-text-field-multiline-container",{"md-text-field--margin":!p&&!d,"md-text-field--floating-margin":p&&!d})},l.default.createElement("textarea",{ref:function(t){e._mask=t},className:(0,u.default)(s,"md-text-field--multiline-mask"),readOnly:!0,rows:f.rows,tabIndex:-1,style:r,defaultValue:i,"aria-hidden":!0,value:a}),l.default.createElement("textarea",c({},f,{ref:function(t){e._field=t},style:Object.assign({},r,{height:t}),className:s,defaultValue:i,value:a,onChange:this._handleChange})))}}]),t}(t.PureComponent);d.propTypes={id:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string,rows:t.PropTypes.number.isRequired,maxRows:t.PropTypes.number,onChange:t.PropTypes.func,defaultValue:t.PropTypes.string,floatingLabel:t.PropTypes.bool,value:t.PropTypes.string,onHeightChange:t.PropTypes.func,block:t.PropTypes.bool,label:t.PropTypes.string},e.default=d})},46:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(1),n(2),n(8),n(20),n(5),n(11),n(19),n(51),n(52),n(41),n(48),n(44),n(42),n(47)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r,o,i,a,s,l,u,c,p,d,f,h,y){"use strict";function b(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}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)}Object.defineProperty(e,"__esModule",{value:!0});var T=b(t),P=b(r),k=b(o),w=b(i),O=b(s),j=b(l),x=b(u),C=b(c),M=b(p),E=b(d),N=b(f),S=b(h),F=b(y),I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),L=function(e){function r(e){v(this,r);var t=g(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e)),n=0;return"undefined"!=typeof e.value?n=e.value.length:"undefined"!=typeof e.defaultValue&&(n=e.defaultValue.length),t.state={active:!1,error:!1,floating:!!e.defaultValue||!!e.value,passwordVisible:e.passwordInitiallyVisible,height:null,currentLength:n},t.focus=t.focus.bind(t),t.getField=t.getField.bind(t),t._blur=t._blur.bind(t),t._setField=t._setField.bind(t),t._setDivider=t._setDivider.bind(t),t._setMessage=t._setMessage.bind(t),t._setContainer=t._setContainer.bind(t),t._setPasswordBtn=t._setPasswordBtn.bind(t),t._setFloatingLabel=t._setFloatingLabel.bind(t),t._handleFocus=t._handleFocus.bind(t),t._handleChange=t._handleChange.bind(t),t._handleKeyDown=t._handleKeyDown.bind(t),t._handleHeightChange=t._handleHeightChange.bind(t),t._handleOutsideClick=t._handleOutsideClick.bind(t),t._updateMultilineHeight=t._updateMultilineHeight.bind(t),t._togglePasswordField=t._togglePasswordField.bind(t),t._handleContainerClick=t._handleContainerClick.bind(t),t}return _(r,e),D(r,[{key:"componentDidMount",value:function(){this._isMultiline(this.props)&&(this._updateMultilineHeight(),window.addEventListener("resize",this._updateMultilineHeight))}},{key:"componentWillReceiveProps",value:function(e){var t=this._isMultiline(e);if(this._isMultiline(this.props)!==t&&(this._updateMultilineHeight(e),window[(t?"add":"remove")+"EventListener"]("resize",this._updateMultilineHeight)),this.props.value!==e.value){var n="undefined"!=typeof e.value?e.value.toString():"",r=this.state.error;e.maxLength?r=n.length>e.maxLength:e.required&&r&&(r=!n),this.setState({error:r,floating:!!n||this.state.floating&&this.state.active,currentLength:n.length})}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.block,o=n.active;if(r!==e.block||o!==e.active||this.state.active!==t.active){var i=window[(o||this.state.active?"add":"remove")+"EventListener"];i("mousedown",this._handleOutsideClick),i("touchstart",this._handleOutsideClick)}this._isMultiline(this.props)&&!this._isMultiline(e)&&this._updateMultilineHeight(this.props)}},{key:"componentWillUnmount",value:function(){var e=this.props.active,t=window.removeEventListener;(e||this.state.active)&&(t("mousedown",this._handleOutsideClick),t("touchstart",this._handleOutsideClick)),this._isMultiline(this.props)&&t("resize",this._updateMultilineHeight)}},{key:"getField",value:function(){return this._field.getField()}},{key:"focus",value:function(){this._field.focus()}},{key:"_isMultiline",value:function(e){return"undefined"!=typeof e.rows}},{key:"_cloneIcon",value:function(e,n,r,o,i,a,s){if(!e)return e;try{var l=t.Children.only(e);return(0,t.cloneElement)(l,{key:"icon-"+s,className:(0,P.default)("md-text-field-icon",{"md-text-field-icon--positioned":!a,"md-text-field-icon--disabled":o,"md-text-field-icon--active":i&&!r&&n,"md-text-field-icon--error":i&&r},l.props.className)})}catch(t){return e}}},{key:"_setField",value:function(e){null!==e&&(this._field=e)}},{key:"_setMessage",value:function(e){null!==e&&(this._message=(0,n.findDOMNode)(e))}},{key:"_setDivider",value:function(e){null!==e&&(this._divider=(0,n.findDOMNode)(e))}},{key:"_setContainer",value:function(e){null!==e&&(this._node=e)}},{key:"_setPasswordBtn",value:function(e){null!==e&&(this._password=(0,n.findDOMNode)(e))}},{key:"_setFloatingLabel",value:function(e){null!==e&&(this._label=(0,n.findDOMNode)(e))}},{key:"_handleContainerClick",value:function(e){this.props.onClick&&this.props.onClick(e),this.props.disabled||this.focus()}},{key:"_updateMultilineHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.block,r=this._isMultiline(e);if(r){var o=window.getComputedStyle((0,n.findDOMNode)(this._field));if(this._additionalHeight=parseInt(o.getPropertyValue("margin-top"),10),!t){var i=parseInt(window.getComputedStyle(this._divider).getPropertyValue("margin-bottom"),10);this._additionalHeight+=4===i?12:16}this._message&&(this._additionalHeight+=this._message.offsetHeight)}}},{key:"_blur",value:function(){var e=this._field.getValue(),t={active:!1,error:this.props.required&&!e};this.props.block||(t.floating=!!e),this.setState(t)}},{key:"_handleOutsideClick",value:function(e){this._node.contains(e.target)||this._blur()}},{key:"_handleFocus",value:function(e){var t=this.props,n=t.onFocus,r=t.block;n&&n(e);var o={active:!0};r||(o.floating=!0),this.setState(o)}},{key:"_handleChange",value:function(e){var t=this.props,n=t.onChange,r=t.maxLength,o=t.required;n&&n(e.target.value,e);var i=e.target.value.length;"undefined"!=typeof r?this.setState({currentLength:i,error:i>r}):o&&this.state.error&&this.setState({error:!i})}},{key:"_handleKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e),(e.which||e.keyCode)===a.TAB&&this._blur()}},{key:"_togglePasswordField",value:function(){this.setState({passwordVisible:!this.state.passwordVisible},this.focus)}},{key:"_handleHeightChange",value:function(e){this._additionalHeight&&this.setState({height:e+this._additionalHeight})}},{key:"render",value:function(){var e=this.state,n=e.currentLength,r=e.passwordVisible,o=e.height,i=this.props,a=i.id,s=i.type,l=i.style,u=i.className,c=i.inputStyle,p=i.inputClassName,d=i.block,f=i.fullWidth,h=i.required,y=i.customSize,b=i.maxLength,v=i.errorText,g=i.helpText,_=i.helpOnFocus,k=i.disabled,w=i.leftIconStateful,O=i.rightIconStateful,j=i.passwordIconChildren,x=i.passwordIconClassName,D=i.lineDirection,L=i.paddedBlock,V=i.onDoubleClick,R=i.onTouchStart,W=i.onTouchMove,H=i.onTouchCancel,K=i.onTouchEnd,q=i.onMouseDown,U=i.onMouseUp,A=i.onMouseOver,z=i.onMouseLeave,B=i.ink,G=i.inlineIndicator,J=i.icon,X=m(i,["id","type","style","className","inputStyle","inputClassName","block","fullWidth","required","customSize","maxLength","errorText","helpText","helpOnFocus","disabled","leftIconStateful","rightIconStateful","passwordIconChildren","passwordIconClassName","lineDirection","paddedBlock","onDoubleClick","onTouchStart","onTouchMove","onTouchCancel","onTouchEnd","onMouseDown","onMouseUp","onMouseOver","onMouseLeave","ink","inlineIndicator","icon"]);delete X.label,delete X.placeholder,delete X.error,delete X.active,delete X.floating,delete X.leftIcon,delete X.rightIcon,delete X.adjustMinWidth,delete X.onClick,delete X.onChange,delete X.onKeyDown,delete X.onFocus,delete X.floatingLabel;var Q=this.props,Y=Q.label,Z=Q.placeholder,$=Q.error,ee=Q.active,te=Q.floating,ne=Q.leftIcon,re=Q.rightIcon;if(ee=ee||this.state.active,$=$||this.state.error,te=te||this.state.floating,h&&(Y&&(Y=(0,C.default)(Y,"*")),Z&&!Y&&(Z=(0,C.default)(Z,"*"))),Y&&!te&&(Z=null),ne=this._cloneIcon(J||ne,ee,$,k,w,d,"left"),"password"!==s||k)if(G){var oe=t.Children.only(G);re=(0,t.cloneElement)(G,{key:"icon-right",className:(0,P.default)("md-text-field-inline-indicator",{"md-text-field-inline-indicator--floating":Y,"md-text-field-inline-indicator--block":d},oe.props.className)})}else re=this._cloneIcon(re,ee,$,k,O,d,"right");else re=T.default.createElement(N.default,{key:"password-btn",ref:this._setPasswordBtn,onClick:this._togglePasswordField,active:ee,passwordVisible:r,iconChildren:j,iconClassName:x,block:d,floating:!!Y});var ie=!!re&&"password"!==s&&!G,ae=T.default.createElement(M.default,{key:"label",ref:this._setFloatingLabel,label:Y,htmlFor:a,active:ee,error:$,floating:te,customSize:y,disabled:k,iconOffset:!!ne}),se=T.default.createElement(E.default,{key:"message",ref:this._setMessage,active:ee,error:$,errorText:v,helpText:g,helpOnFocus:_,block:d,maxLength:b,leftIcon:!!ne,rightIcon:!!re,currentLength:n}),le=T.default.createElement(S.default,I({},X,{key:"field",ref:this._setField,id:a,type:s,label:Y,style:c,className:p,disabled:k,customSize:y,fullWidth:f,passwordVisible:r,placeholder:Z,block:d,onFocus:this._handleFocus,onKeyDown:this._handleKeyDown,onChange:this._handleChange,onHeightChange:this._handleHeightChange,inlineIndicator:!!G})),ue=void 0;d||(ue=T.default.createElement(F.default,{key:"text-divider",ref:this._setDivider,active:ee,error:$,lineDirection:D}));var ce=void 0;ce=ne||ie?T.default.createElement("div",{key:"icon-divider",className:"md-text-field-icon-container"},ne,T.default.createElement("div",{key:"divider-container",className:(0,P.default)("md-text-field-divider-container",{"md-text-field-divider-container--grow":f})},le,ue),re):[ne,le,ue,re],ce=[ae,ce,se];var pe=this._isMultiline(this.props);return T.default.createElement("div",{ref:this._setContainer,style:Object.assign({},l,{height:o}),className:(0,P.default)("md-text-field-container",{"md-inline-block":!f&&!d,"md-full-width":d||f,"md-text-field-container--disabled":k,"md-text-field-container--input":"undefined"==typeof X.rows,"md-text-field-container--input-block":d&&!pe,"md-text-field-container--multiline":pe,"md-text-field-container--multiline-block":pe&&d,"md-text-field-container--padded-block":d&&L},u),onClick:this._handleContainerClick,onDoubleClick:V,onMouseOver:A,onMouseLeave:z,onMouseDown:q,onMouseUp:U,onTouchStart:R,onTouchEnd:K,onTouchCancel:H,onTouchMove:W},B,ce)}}]),r}(t.PureComponent);L.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,inputStyle:t.PropTypes.object,inputClassName:t.PropTypes.string,value:(0,O.default)(t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),"onChange"),defaultValue:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),block:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s=t.PropTypes.bool.apply(t.PropTypes,[e,n,r].concat(i));return!s&&e[n]&&e.label&&(s=new Error("The `"+r+"` is unable to have a `label` and be displayed as `block`. "+("If you would like a `label` for the block `"+r+"`, please use the `placeholder` prop."))),s},paddedBlock:t.PropTypes.bool,disabled:t.PropTypes.bool,label:t.PropTypes.string,placeholder:t.PropTypes.string,id:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s=t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]);return"undefined"!=typeof e.label?(0,w.default)(s).apply(void 0,[e,n,r].concat(i)):s.apply(void 0,[e,n,r].concat(i))},type:t.PropTypes.oneOf(["text","number","email","search","tel","url","password"]).isRequired,onClick:t.PropTypes.func,onDoubleClick:t.PropTypes.func,onTouchStart:t.PropTypes.func,onTouchMove:t.PropTypes.func,onTouchCancel:t.PropTypes.func,onTouchEnd:t.PropTypes.func,onMouseDown:t.PropTypes.func,onMouseUp:t.PropTypes.func,onMouseOver:t.PropTypes.func,onMouseLeave:t.PropTypes.func,onChange:t.PropTypes.func,onFocus:t.PropTypes.func,onKeyDown:t.PropTypes.func,active:t.PropTypes.bool,error:t.PropTypes.bool,floating:t.PropTypes.bool,required:t.PropTypes.bool,lineDirection:t.PropTypes.oneOf(["left","center","right"]).isRequired,leftIcon:t.PropTypes.element,leftIconStateful:t.PropTypes.bool,rightIcon:t.PropTypes.element,rightIconStateful:t.PropTypes.bool,passwordIconChildren:t.PropTypes.node,passwordIconClassName:t.PropTypes.string,passwordInitiallyVisible:t.PropTypes.bool,fullWidth:t.PropTypes.bool,rows:(0,x.default)(2,!1),maxRows:t.PropTypes.number,customSize:t.PropTypes.string,errorText:(0,j.default)(t.PropTypes.string,"block"),helpText:(0,j.default)(t.PropTypes.string,"block"),helpOnFocus:t.PropTypes.bool,maxLength:t.PropTypes.number,ink:t.PropTypes.node,inlineIndicator:t.PropTypes.element,icon:(0,k.default)(t.PropTypes.node,"Use the `leftIcon` or `rightIcon` prop instead"),floatingLabel:(0,k.default)(t.PropTypes.bool,"The `label` prop is now always floating. To create a non-floating text field, only use the `placeholder` prop"),adjustMinWidth:(0,k.default)(t.PropTypes.bool,"Manually add a min width style instead")},L.defaultProps={type:"text",lineDirection:"left",passwordIconChildren:"remove_red_eye",leftIconStateful:!0,rightIconStateful:!0,fullWidth:!0},e.default=L})},47:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2),n(38)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(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)}Object.defineProperty(e,"__esModule",{value:!0});var u=o(t),c=o(n),p=o(r),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),f(t,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.error,r=e.lineDirection,o=e.className,a=i(e,["active","error","lineDirection","className"]);return u.default.createElement(p.default,d({},a,{className:(0,c.default)("md-divider--text-field md-divider--expand-from-"+r,{"md-divider--text-field-expanded":t,"md-divider--text-field-active":!n&&t,"md-divider--text-field-error":n},o)}))}}]),t}(t.PureComponent);h.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,active:t.PropTypes.bool,error:t.PropTypes.bool,lineDirection:t.PropTypes.oneOf(["left","center","right"])},e.default=h})},48:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2),n(43)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(e,"__esModule",{value:!0});var l=o(t),u=o(n),c=o(r),p=function(){
function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={message:e.error&&e.errorText||e.helpText||e.errorText,isMessageVisible:n._isMessageVisible(e)},n}return s(t,e),p(t,[{key:"componentWillReceiveProps",value:function(e){var t=["active","error","helpOnFocus","helpText","errorText"];this._anyChanges(t,this.props,e)&&this.setState({isMessageVisible:this._isMessageVisible(e),message:e.error&&e.errorText||e.helpText||e.errorText})}},{key:"_anyChanges",value:function(e,t,n){var r=!1;return e.some(function(e){return t[e]!==n[e]&&(r=!0),r}),r}},{key:"_isMessageVisible",value:function(e){var t=e.error,n=e.errorText,r=e.helpText,o=e.helpOnFocus,i=e.active;return(t&&n||!!r)&&(!o||i)}},{key:"render",value:function(){var e=this.props,t=e.maxLength,n=e.error,r=e.className,o=e.errorText,i=e.helpText,a=e.currentLength,s=e.leftIcon,p=e.rightIcon,d=e.block,f=e.active,h=this.state,y=h.isMessageVisible,b=h.message;return"undefined"!==a&&(i||o||t)?l.default.createElement("div",{className:(0,u.default)("md-text-field-message-container",{"md-text-field-message-container--error":n,"md-text-field-message-container--count-only":!b||!y,"md-text-field-message-container--left-icon-offset":s,"md-text-field-message-container--right-icon-offset":p,"md-full-width":!d},r)},l.default.createElement(c.default,{key:"message",active:y},b),l.default.createElement(c.default,{key:"counter",className:"md-text-field-message--counter",active:f},t?a+" / "+t:null)):null}}]),t}(t.PureComponent);d.propTypes={className:t.PropTypes.string,error:t.PropTypes.bool,helpText:t.PropTypes.string,errorText:t.PropTypes.string,active:t.PropTypes.bool,helpOnFocus:t.PropTypes.bool,maxLength:t.PropTypes.number,currentLength:t.PropTypes.number,leftIcon:t.PropTypes.bool,rightIcon:t.PropTypes.bool,block:t.PropTypes.bool},e.default=d})},51:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t){"use strict";function n(e,n){return function(r,o,i,a,s){var l=i||"<<anonymous>>",u=s||o,c=t.PropTypes.number;n&&(c=c.isRequired);for(var p=arguments.length,d=Array(p>5?p-5:0),f=5;f<p;f++)d[f-5]=arguments[f];var h=c.apply(void 0,[r,o,i,a,s].concat(d));return!n&&!h&&r[o]<e&&(h=new Error("The "+a+" `"+u+"` must be greater than or equal to the min value "+("`"+e+"` but received `"+r[o]+"` for the `"+l+"` component."))),h}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n})},52:function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e){"use strict";function t(e,t){return e&&e.indexOf(t)===-1?e.trim()+" "+t:e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t})},94:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),u=r(l),c=n(173),p=r(c),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){return u.default.createElement("div",{className:"md-grid"},u.default.createElement("h2",{className:"md-cell md-cell--12 md-text-container"},"Page 3"),u.default.createElement(p.default,{id:"page-3-slider",className:"md-cell md-cell--12"}))}}]),t}(l.Component);t.default=d},166:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(t),u=r(n),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.discrete,i=e.dragging,a=e.thumbLeft,s=e.active,d=e.value,f=e.valuePrecision,h=o(e,["style","className","discrete","dragging","thumbLeft","active","value","valuePrecision"]);if(!r||!s)return null;var y=d.toFixed(f);if(f>0){var b=y.split("."),m=p(b,2),v=m[0],g=m[1];0===parseInt(g,10)&&(y=v)}return l.default.createElement("span",c({},h,{style:Object.assign({},t,{left:a}),className:(0,u.default)("md-slider-discrete-value",n,{"md-slider-discrete-value--dragging":i})}),y)}}]),t}(t.PureComponent);f.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,discrete:t.PropTypes.bool,dragging:t.PropTypes.bool,active:t.PropTypes.bool,value:t.PropTypes.number.isRequired,thumbLeft:t.PropTypes.string.isRequired,valuePrecision:t.PropTypes.number.isRequired},e.default=f})},167:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(1),n(2),n(8),n(20),n(5),n(16),n(82),n(181),n(183),n(11),n(168),n(171),n(46)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r,o,i,a,s,l,u,c,p,d,f,h){"use strict";function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 g(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)}Object.defineProperty(e,"__esModule",{value:!0});var _=y(t),T=y(r),P=y(o),k=y(i),w=y(s),O=y(l),j=y(u),x=y(c),C=y(p),M=y(d),E=y(f),N=y(h),S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),I=function(e){function t(e){m(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=Math.abs(e.max-e.min)/e.step,o="undefined"!=typeof e.value?e.value:e.defaultValue,i=o;i=i===e.min?0:i===e.max?100:e.min>1&&0!==e.defaultValue?Math.max(0,Math.min(100,(e.defaultValue-e.min)/(e.max-e.min)*100)):o/e.max*100;var a=n._calcLeft(i),s=i+"%";"undefined"!=typeof e.value&&(o=void 0);var l=void 0;return!e.label||e.editable||e.leftIcon||e.rightIcon||(l="100%"),n.state={value:o,scale:r,distance:i,thumbLeft:a,trackWidth:l,trackFillWidth:s,active:!1,dragging:!1,maskInked:!1},n._dragAdded=!1,n._focusThumb=n._focusThumb.bind(n),n._updatePosition=n._updatePosition.bind(n),n._handleDragStart=n._handleDragStart.bind(n),n._handleDragMove=n._handleDragMove.bind(n),n._handleDragEnd=n._handleDragEnd.bind(n),n._handleFocus=n._handleFocus.bind(n),n._handleKeyUp=n._handleKeyUp.bind(n),n._handleKeyDown=n._handleKeyDown.bind(n),n._handleIncrement=n._handleIncrement.bind(n),n._handleTextFieldChange=n._handleTextFieldChange.bind(n),n._blurOnOutsideClick=n._blurOnOutsideClick.bind(n),n._calcTrackWidth=n._calcTrackWidth.bind(n),n._animateDiscreteInk=n._animateDiscreteInk.bind(n),n._setTrack=n._setTrack.bind(n),n._setField=n._setField.bind(n),n._setNode=n._setNode.bind(n),n}return g(t,e),F(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.leftIcon,r=t.rightIcon,o=t.label,i=t.min,a=t.max,s=t.step;n===e.leftIcon&&r===e.rightIcon&&o===e.label||this._calcTrackWidth(e),i===e.min&&a===e.max&&s===e.step||this.setState({scale:Math.abs(e.max-e.min)/e.step})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.active,o=n.manualIncrement,i=window[(r?"add":"remove")+"EventListener"];r!==t.active&&(i("click",this._blurOnOutsideClick),r&&this._focusThumb());var a=r&&!o;i=window[(a?"add":"remove")+"EventListener"],this._dragAdded!==a&&(i("mousemove",this._handleDragMove),i("mouseup",this._handleDragEnd),i("touchmove",this._handleDragMove),i("touchend",this._handleDragEnd),this._dragAdded=a)}},{key:"componentWillUnmount",value:function(){if(this._dragAdded){var e=window.removeEventListener;e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp),e("touchmove",this._handleDragMove),e("touchend",this._handleDragEnd),e("click",this._blurOnOutsideClick)}this._inkTimeout&&clearTimeout(this._inkTimeout),this._focusTimeout&&clearTimeout(this._focusTimeout)}},{key:"_calcLeft",value:function(e){return"calc("+e+"% - 6px)"}},{key:"_isTextField",value:function(e){return this._textField&&this._textField.contains(e)}},{key:"_isValidClassList",value:function(e){var t=!1;return["md-slider-label","md-slider-ind","md-icon"].some(function(n){return t=e.contains(n)}),!t}},{key:"_updatePosition",value:function(e,t){var n=(e.changedTouches?e.changedTouches[0]:e).clientX,r=this.state.scale,o=this.props,i=o.onChange,a=o.onDragChange,s=o.min,l=o.max,u=o.step,c=(0,j.default)(n,this._track.offsetWidth,this._track.getBoundingClientRect().left,r,u,s,l,t),p=c.value,d=c.distance;i&&i(p,e),!t&&a&&a(d,p,e);var f={value:p,active:!0,distance:d,manualIncrement:!1,dragging:!t,thumbLeft:this._calcLeft(d),trackFillWidth:d+"%"};"touchend"!==e.type&&"mousedown"!==e.type||(f.maskInked=!1),"undefined"!=typeof this.props.value&&delete f.value,this.setState(f)}},{key:"_handleDragStart",value:function(e){if("mousedown"===e.type&&this.props.onMouseDown?this.props.onMouseDown(e):"touchstart"===e.type&&this.props.onTouchStart&&this.props.onTouchStart(e),!(this.props.disabled||"mousedown"===e.type&&!(0,O.default)(e,"mousedown")||e.target.className.match(/text-field/))){var t=e.target.classList,n=t.contains("md-slider-discrete-value");t.contains("md-slider-thumb")||n?(e.preventDefault(),this.setState({dragging:!0,active:!0,manualIncrement:!1,maskInked:!1})):!this._isTextField(e.target)&&this._isValidClassList(t)&&this._updatePosition(e,!0)}}},{key:"_setNode",value:function(e){this._node=(0,n.findDOMNode)(e)}},{key:"_setTrack",value:function(e){this._track=(0,n.findDOMNode)(e)}},{key:"_setField",value:function(e){this._field=(0,n.findDOMNode)(e),this._calcTrackWidth(this.props)}},{key:"_handleDragMove",value:function(e){!this.props.disabled&&this.state.dragging&&(e.preventDefault(),this._updatePosition(e,!1))}},{key:"_handleDragEnd",value:function(e){!this.state.dragging||this.props.disabled||"mouseup"===e.type&&!(0,O.default)(e)||this._updatePosition(e,!0)}},{key:"_blurOnOutsideClick",value:function(e){this.state.dragging&&!this.state.manualIncrement||this.props.disabled||this._node.contains(e.target)||this.setState({active:!1,maskInked:!1})}},{key:"_handleIncrement",value:function(e,t,n){var r=this.props,o=r.onChange,i=r.min,a=r.max,s=r.discrete,l=Math.max(0,Math.min(100,(e-i)/(a-i)*100)),u=Math.max(i,Math.min(a,e));o&&o(u,t);var c={distance:l,manualIncrement:!0,thumbLeft:this._calcLeft(l),trackFillWidth:l+"%",dragging:Math.abs(this.state.distance-l)<2&&n};"undefined"==typeof this.props.value&&(c.value=u),"keydown"!==t.type||s||(c.maskInked=!0),this.setState(c)}},{key:"_handleTextFieldChange",value:function(e,t){this._handleIncrement(e,t,!1)}},{key:"_handleKeyDown",value:function(e){var t=e.which||e.keyCode,n=this.props,r=n.min,o=n.max,i=n.step,s=n.disabled;if(!s){if(t===a.TAB)return void this.setState({active:!1,maskInked:!1});if(t===a.LEFT||t===a.RIGHT){var l=(0,w.default)(this.props,this.state);l=Math.max(r,Math.min((t===a.LEFT?-i:i)+l,o)),this._handleIncrement(l,e,!0)}}}},{key:"_handleKeyUp",value:function(e){(e.which||e.keyCode)===a.TAB&&(this.props.discrete&&this._animateDiscreteInk(),this.setState({maskInked:!0}))}},{key:"_handleFocus",value:function(){this.setState({active:!0})}},{key:"_calcTrackWidth",value:function(e){var t=e.editable,n=e.leftIcon,r=e.rightIcon,o=e.inputWidth,i=e.label;if(!i)return void this.setState({trackWidth:null});var a=null;if(n||r||t){if(t&&!n){var s=window.getComputedStyle(this._textField),l=parseInt(s.getPropertyValue("padding-left"),10),u=parseInt(s.getPropertyValue("margin-left"),10);a=l+u+o}}else a="100%";a&&this.setState({trackWidth:a})}},{key:"_animateDiscreteInk",value:function(){var e=this,t=this.props.discreteInkTransitionTime;this._inkTimeout&&clearTimeout(this._inkTimeout),this._inkTimeout=setTimeout(function(){e.setState({leaving:!0,maskInked:!1}),e._inkTimeout=setTimeout(function(){e._inkTimeout=null,e.setState({leaving:!1})},t)},t)}},{key:"_focusThumb",value:function(){var e=this;this._focusTimeout&&clearTimeout(this._focusTimeout),this._focusTimeout=setTimeout(function(){e._focusTimeout=null,e._thumb||(e._thumb=e._node.querySelector(".md-slider-thumb")),e._thumb.focus()},100)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.active,r=e.thumbLeft,o=e.trackFillWidth,i=e.maskInked,a=e.trackWidth,s=e.scale,l=e.distance,u=this.props,c=u.id,p=u.min,d=u.max,f=u.disabled,h=u.className,y=u.trackStyle,m=u.trackClassName,v=u.thumbStyle,g=u.thumbClassName,P=u.discreteValueStyle,k=u.discreteValueClassName,O=u.label,j=u.editable,x=u.step,C=u.inputWidth,F=u.leftIcon,I=u.rightIcon,D=u.discrete,L=u.discreteTicks,V=u.tickWidth,R=u.valuePrecision,W=b(u,["id","min","max","disabled","className","trackStyle","trackClassName","thumbStyle","thumbClassName","discreteValueStyle","discreteValueClassName","label","editable","step","inputWidth","leftIcon","rightIcon","discrete","discreteTicks","tickWidth","valuePrecision"]);delete W.value,delete W.onChange,delete W.onDragChange,delete W.discreteInkTransitionTime,delete W.stepPrecision;var H=(0,w.default)(this.props,this.state),K=I;return j&&(K=_.default.createElement(N.default,{id:c+"Editor",ref:this._setField,type:"number",value:H,inputClassName:"md-slider-editor",style:{width:C},onChange:this._handleTextFieldChange,step:x})),_.default.createElement("div",S({},W,{ref:this._setNode,className:(0,T.default)("md-slider-container",h,{"md-pointer--hover":!f}),onMouseDown:this._handleDragStart,onTouchStart:this._handleDragStart}),_.default.createElement(M.default,{htmlFor:c},O),_.default.createElement("input",{id:c,type:"range",className:"md-slider-input",readOnly:!0,min:p,max:d,value:H,disabled:f}),F,_.default.createElement(E.default,{ref:this._setTrack,style:Object.assign({},y,{width:a}),className:(0,T.default)(m,{"md-slider-track--ind-left":F,"md-slider-track--ind-right":I}),thumbStyle:v,thumbClassName:g,discreteValueStyle:P,discreteValueClassName:k,active:n,dragging:t,disabled:f,thumbLeft:r,trackFillWidth:o,on:!f&&l>p,off:0===l,maskInked:i,onThumbKeyUp:this._handleKeyUp,onThumbKeyDown:this._handleKeyDown,onThumbFocus:this._handleFocus,discrete:D,tickWidth:V,discreteTicks:L,valuePrecision:R,step:x,scale:s,value:H}),K)}}]),t}(t.PureComponent);I.propTypes={id:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return"undefined"==typeof e.label?t.PropTypes.string.apply(t.PropTypes,[e,n,r].concat(i)):(0,k.default)(t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string])).apply(void 0,[e,n,r].concat(i))},style:t.PropTypes.object,className:t.PropTypes.string,thumbStyle:t.PropTypes.object,thumbClassName:t.PropTypes.string,trackStyle:t.PropTypes.object,trackClassName:t.PropTypes.string,trackFillStyle:t.PropTypes.object,trackFillClassName:t.PropTypes.string,discreteValueStyle:t.PropTypes.object,discreteValueClassName:t.PropTypes.string,defaultValue:t.PropTypes.number.isRequired,min:function e(n,r,o){for(var i=arguments.length,a=Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];var l,u=(l=t.PropTypes.number).isRequired.apply(l,[n,r,o].concat(a));if(!u){var e=n[r],c=void 0;e>n.value?c="value":e>n.defaultValue&&(c="defaultValue"),c?u=new Error("The '"+r+"' prop must be less than or equal to the '"+c+"' prop for the '"+o+"' but "+("received: 'min: "+e+"' and '"+c+": "+n[c]+"'")):e<0&&n.max>0&&(u=new Error("The '"+o+"' is unable to have a range spanning from negative to positive. The range must either be all negative or all postive."))}return u},max:function e(n,r,o){for(var i=arguments.length,a=Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];var l,u=(l=t.PropTypes.number).isRequired.apply(l,[n,r,o].concat(a));if(!u){var e=n[r],c=void 0;e<n.value?c="value":e<n.defaultValue&&(c="defaultValue"),c&&(u=new Error("The '"+r+"' prop must be greater than or equal to the '"+c+"' prop for the '"+o+"' but "+("received: '"+r+": "+e+"' and '"+c+": "+n[c]+"'")))}return u},disabled:t.PropTypes.bool,value:(0,C.default)(t.PropTypes.number,"onChange"),onChange:t.PropTypes.func,onDragChange:t.PropTypes.func,onMouseDown:t.PropTypes.func,onTouchStart:t.PropTypes.func,leftIcon:t.PropTypes.element,rightIcon:t.PropTypes.element,label:t.PropTypes.node,step:function e(n,r,o){for(var i=arguments.length,a=Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];var l,u=(l=t.PropTypes.number).isRequired.apply(l,[n,r,o].concat(a));if(!u){var e=n[r];if(e<=0)u=new Error("The '"+r+"' for the '"+o+"' must be a number greater than 0. The "+("current value is '"+e+"'."));else{var c="undefined"!=typeof n.value,p=void 0;(0,x.default)(c?n.value:n.defaultValue,e)||(p=c?"value":"defaultValue"),p&&(u=new Error("The '"+p+"' prop on '"+o+"' should be a number divisible by the "+("'"+r+"' prop. The current value is '"+n[p]+"' and the '"+r+"' ")+("is '"+e+"'.")))}}return u},editable:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s;if("undefined"==typeof e[n])return null;var l=(s=t.PropTypes.bool).isRequired.apply(s,[e,n,r].concat(i));return l||"undefined"==typeof e.rightIcon||(l=new Error("The '"+r+"' is unable to be 'editable' and include a 'rightIcon'.")),l},inputWidth:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]).isRequired,discrete:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];if("undefined"==typeof e[n])return null;var s=t.PropTypes.bool.apply(t.PropTypes,[e,n,r].concat(i));return s||"undefined"==typeof e.editable||(s=new Error("The '"+r+"' cannot be 'discrete' and 'editable'. Please choose one.")),s},tickWidth:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]).isRequired,discreteTicks:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];if("undefined"==typeof e[n])return null;var s=t.PropTypes.number.apply(t.PropTypes,[e,n,r].concat(i));if(!s){var l=e.min,u=e.max,c=e.step,p=Math.abs(u-l);p/e[n]%1!==0?s=new Error("The '"+n+"' must be a number divisible by the range set by the 'min' and "+("'max' props. The current range is '"+p+"' by including the min: '"+l+"' and ")+("max: '"+u+"' values. The current value of '"+n+"' is '"+e[n]+"'.")):e[n]%c!==0&&(s=new Error("The 'step' prop must be a number divisible by the '"+n+"'. It is common to have "+("them as the same value. The current 'step' is '"+c+"' and the '"+n+"' is '"+e[n]+"'.")))}return s},discreteInkTransitionTime:t.PropTypes.number.isRequired,valuePrecision:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s,l=(s=t.PropTypes.number).isRequired.apply(s,[e,n,r].concat(i));if(!l){var u=e[n];(u%1!==0||u<0)&&(l=new Error("The '"+n+"' must be a positive whole number or 0 on the '"+r+"'. "+("The current '"+n+"' is '"+u+"'")))}return l},stepPrecision:(0,P.default)(t.PropTypes.number,"Use `step` and `valuePreceision` instead")},I.defaultProps={defaultValue:0,min:0,max:100,step:1,inputWidth:40,tickWidth:6,discreteInkTransitionTime:300,valuePrecision:0},e.default=I})},168:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(t),u=r(n),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),p(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.htmlFor,i=o(e,["children","className","htmlFor"]);return t?l.default.createElement("label",c({},i,{htmlFor:r,className:(0,u.default)("md-slider-label md-text",n)}),t):null}}]),t}(t.PureComponent);d.propTypes={className:t.PropTypes.string,children:t.PropTypes.node,htmlFor:function(e,n,r){for(var o=arguments.length,i=Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s;return"undefined"==typeof e.children?null:(s=t.PropTypes.string).isRequired.apply(s,[e,n,r].concat(i))}},e.default=d})},169:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2),n(71)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(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)}Object.defineProperty(e,"__esModule",{value:!0});var u=o(t),c=o(n),p=o(r),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),f(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.on,o=e.off,a=e.active,s=e.disabled,l=e.dragging,f=e.thumbLeft,h=e.discrete,y=i(e,["style","className","on","off","active","disabled","dragging","thumbLeft","discrete"]);return u.default.createElement(p.default,d({disabled:s},y,{style:Object.assign({},t,{left:f}),className:(0,c.default)("md-slider-thumb",n,{"md-slider-thumb--active":a,"md-slider-thumb--dragging":l,"md-slider-thumb--disabled":s,"md-slider-thumb--on":r,"md-slider-thumb--continuous-off":!h&&o,"md-slider-thumb--discrete":h,"md-slider-thumb--discrete-on":h&&a&&r,"md-slider-thumb--discrete-off":h&&!s&&o,"md-slider-thumb--discrete-active":h&&a,"md-slider-thumb--discrete-active-off":h&&a&&o})}))}}]),t}(t.PureComponent);h.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,thumbLeft:t.PropTypes.string.isRequired,on:t.PropTypes.bool,off:t.PropTypes.bool,active:t.PropTypes.bool,disabled:t.PropTypes.bool,dragging:t.PropTypes.bool,discrete:t.PropTypes.bool},e.default=h})},170:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(t),u=r(n),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),p(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.thumbLeft,i=e.disabled,a=e.dragging,s=e.maskInked,p=e.discrete,d=e.leaving,f=o(e,["style","className","thumbLeft","disabled","dragging","maskInked","discrete","leaving"]);return l.default.createElement("span",c({},f,{style:Object.assign({},t,{left:r}),className:(0,u.default)("md-slider-thumb md-slider-thumb--mask",n,{"md-slider-thumb--dragging":a,"md-slider-thumb--mask-inked":s,"md-slider-thumb--mask-disabled":i,"md-slider-thumb--discrete-mask-inked":s&&p,"md-slider-thumb--discrete-mask-leaving":p&&d})}))}}]),t}(t.PureComponent);d.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,disabled:t.PropTypes.bool,thumbLeft:t.PropTypes.string.isRequired,maskInked:t.PropTypes.bool,dragging:t.PropTypes.bool,discrete:t.PropTypes.bool,leaving:t.PropTypes.bool},e.default=d})},171:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2),n(184),n(172),n(169),n(170),n(166)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n,r,o,i,a,s){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(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)}Object.defineProperty(e,"__esModule",{value:!0});var f=l(t),h=l(n),y=l(r),b=l(o),m=l(i),v=l(a),g=l(s),_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=function(e){return e/2},k=function(e){function t(){return c(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),T(t,[{key:"render",value:function(){var e=this.props,t=e.on,n=e.off,r=e.active,o=e.disabled,i=e.dragging,a=e.className,s=e.thumbLeft,l=e.trackFillWidth,c=e.trackFillStyle,p=e.trackFillClassName,d=e.discreteValueStyle,T=e.discreteValueClassName,k=e.maskInked,w=e.maskLeaving,O=e.thumbStyle,j=e.thumbClassName,x=e.discrete,C=e.onThumbFocus,M=e.onThumbKeyUp,E=e.onThumbKeyDown,N=e.value,S=e.tickWidth,F=e.discreteTicks,I=e.scale,D=e.step,L=e.valuePrecision,V=u(e,["on","off","active","disabled","dragging","className","thumbLeft","trackFillWidth","trackFillStyle","trackFillClassName","discreteValueStyle","discreteValueClassName","maskInked","maskLeaving","thumbStyle","thumbClassName","discrete","onThumbFocus","onThumbKeyUp","onThumbKeyDown","value","tickWidth","discreteTicks","scale","step","valuePrecision"]),R=[];if("undefined"!=typeof F&&!o&&x)for(var W=I/(F/D),H=(0,y.default)(S,P,"px"),K=100/W,q=0;q<=W;q++){var U=q*K+"%",A=S;0===q||q===W?A=(0,y.default)(S,P):U="calc("+U+" - "+H+")",R.push(f.default.createElement("span",{key:"tick-"+q,className:"md-slider-discrete-tick",style:{left:U,width:A}}))}return f.default.createElement("div",_({},V,{
className:(0,h.default)("md-slider-track",a)}),R,f.default.createElement(b.default,{style:c,className:p,disabled:o,dragging:i,trackFillWidth:l}),f.default.createElement(m.default,{style:O,className:j,on:t,off:n,disabled:o,dragging:i,active:r,thumbLeft:s,onFocus:C,onKeyUp:M,onKeyDown:E,discrete:x}),f.default.createElement(g.default,{style:d,className:T,discrete:x,dragging:i,active:r,value:N,thumbLeft:s,valuePrecision:L}),f.default.createElement(v.default,{dragging:i,disabled:o,thumbLeft:s,maskInked:k,discrete:x,leaving:w}))}}]),t}(t.PureComponent);k.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,thumbStyle:t.PropTypes.object,thumbClassName:t.PropTypes.string,trackFillStyle:t.PropTypes.object,trackFillClassName:t.PropTypes.string,discreteValueStyle:t.PropTypes.object,discreteValueClassName:t.PropTypes.string,on:t.PropTypes.bool,off:t.PropTypes.bool,active:t.PropTypes.bool,dragging:t.PropTypes.bool,disabled:t.PropTypes.bool,thumbLeft:t.PropTypes.string.isRequired,trackFillWidth:t.PropTypes.string.isRequired,value:t.PropTypes.number.isRequired,discrete:t.PropTypes.bool,maskInked:t.PropTypes.bool,maskLeaving:t.PropTypes.bool,onThumbKeyUp:t.PropTypes.func.isRequired,onThumbKeyDown:t.PropTypes.func.isRequired,onThumbFocus:t.PropTypes.func.isRequired,scale:t.PropTypes.number,step:t.PropTypes.number,discreteTicks:t.PropTypes.number,tickWidth:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]),valuePrecision:t.PropTypes.number.isRequired},e.default=k})},172:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(2)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(t),u=r(n),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),p(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.trackFillWidth,i=e.dragging,a=e.disabled,s=o(e,["style","className","trackFillWidth","dragging","disabled"]);return a?null:l.default.createElement("hr",c({},s,{style:Object.assign({},t,{width:r}),className:(0,u.default)("md-slider-track-fill",n,{"md-slider-track-fill--dragging":i})}))}}]),t}(t.PureComponent);d.propTypes={style:t.PropTypes.object,className:t.PropTypes.string,dragging:t.PropTypes.bool,disabled:t.PropTypes.bool,trackFillWidth:t.PropTypes.string.isRequired},e.default=d})},173:function(e,t,n){var r,o,i;!function(a,s){o=[t,n(167)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(t);e.default=r.default})},181:function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e){"use strict";function t(e,t,n,r){var o=Math.min(t,Math.max(0,e-n));return r?o:o/t*100}function n(e,n,r,o,i,a,s,l){var u=void 0,c=t(e,n,r,l);if(l){if(u=Math.round(c/(n/o)),i<1){var p=String(i).split(".")[1],d="undefined"!=typeof p&&p.length>0?Math.pow(10,p.length):1,f=u*d%(i*d);0!==f&&f>=i/2?u+=i-f:0!==f&&(u-=f)}c=u/o*100,u+=a}else u=Math.round(c/100*o);return i>1?u*=i:i>0&&i<1&&(u*=i),{distance:Math.max(0,Math.min(100,c)),value:Math.max(a,Math.min(s,u))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n})},183:function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e){"use strict";function t(e,t){var n=String(t).split(".")[1],r="undefined"!=typeof n&&n.length>0?Math.pow(10,n.length):1;return e*r%(t*r)===0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t})},184:function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e){"use strict";function t(e,t,n){var r=t(parseInt(e,10));return"number"==typeof e?n?""+r+n:r:""+r+e.replace(/[0-9]/g,"")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t})}});