UNPKG

react-awesome-button-namdaoduy

Version:

Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons

1 lines 155 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["react-awesome-button"]=t():e["react-awesome-button"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=28)}([function(e,t,n){"use strict";e.exports=n(30)},function(e,t,n){e.exports=n(33)()},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(63);Object.defineProperty(t,"Footer",{enumerable:!0,get:function(){return r(o).default}});var a=n(65);Object.defineProperty(t,"Header",{enumerable:!0,get:function(){return r(a).default}});var i=n(67);Object.defineProperty(t,"Section",{enumerable:!0,get:function(){return r(i).default}});var s=n(69);Object.defineProperty(t,"Body",{enumerable:!0,get:function(){return r(s).default}});var u=n(71);Object.defineProperty(t,"Composer",{enumerable:!0,get:function(){return r(u).default}});var l=n(73);Object.defineProperty(t,"Navigation",{enumerable:!0,get:function(){return r(l).default}});var c=n(75);Object.defineProperty(t,"Customiser",{enumerable:!0,get:function(){return r(c).default}});var p=n(82);Object.defineProperty(t,"Example",{enumerable:!0,get:function(){return r(p).default}});var f=n(91);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return r(f).default}});var d=n(92);Object.defineProperty(t,"PageRibbon",{enumerable:!0,get:function(){return r(d).default}});var h=n(94);Object.defineProperty(t,"ColorPicker",{enumerable:!0,get:function(){return r(h).default}});var m=n(96);Object.defineProperty(t,"BorderPicker",{enumerable:!0,get:function(){return r(m).default}});var b=n(98);Object.defineProperty(t,"Popover",{enumerable:!0,get:function(){return r(b).default}});var y=n(100);Object.defineProperty(t,"Theme",{enumerable:!0,get:function(){return r(y).default}});var g=n(101);Object.defineProperty(t,"ThemeTest",{enumerable:!0,get:function(){return r(g).default}});var w=n(116);Object.defineProperty(t,"ThemeList",{enumerable:!0,get:function(){return r(w).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(77);Object.defineProperty(t,"AwesomeButton",{enumerable:!0,get:function(){return r(o).default}});var a=n(78);Object.defineProperty(t,"AwesomeButtonSocial",{enumerable:!0,get:function(){return r(a).default}});var i=n(81);Object.defineProperty(t,"AwesomeButtonProgress",{enumerable:!0,get:function(){return r(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.THEMES=["theme-amber","theme-blue","theme-c137","theme-eric","theme-flat","theme-indigo","theme-one","theme-orange","theme-red","theme-rickiest","theme-three","theme-two"],o=t.MODULES=[];r.forEach(function(e){o[e]=n(102)("./"+e+"/styles.scss")}),t.default={Modules:o,Themes:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=(t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)});t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"e",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return u}),n.d(t,"b",function(){return l});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},o=function(e){return"/"===e.charAt(0)?e.substr(1):e},a=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},i=function(e,t){return a(e,t)?e.substr(t.length):e},s=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},u=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},l=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var r=n(20),o=n(21),a=n(8),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},s=function(e,t,n,o){var s=void 0;"string"==typeof e?(s=Object(a.d)(e),s.state=t):(s=i({},e),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.default)(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s},u=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(o.default)(e.state,t.state)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return[{title:"Installation",command:"npm install --save react-native-awesome-button"},{title:"Multiple Import",jsx:"\nimport {\n AwesomeButton,\n AwesomeButtonProgress,\n AwesomeButtonShare,\n} from 'react-awesome-button';\n"},{title:"Single Import",jsx:"\nimport AwesomeButton from 'react-awesome-button/src/components/AwesomeButton';\n"},{title:"Primary Button",jsx:'<AwesomeButton type="primary">Primary</AwesomeButton>',component:i.default.createElement(l.AwesomeButton,{cssModule:u.default.Modules[e],type:"primary"},"Primary")},{title:"Secondary Progress Button",jsx:'\n<AwesomeButtonProgress\n type="secondary"\n size="medium"\n action={(element, next) => doSomethingThenCall(next)}\n>\n Primary\n</AwesomeButtonProgress>',component:i.default.createElement(l.AwesomeButtonProgress,{type:"secondary",size:"medium",action:function(e,t){setTimeout(function(){t()},1e3)},cssModule:u.default.Modules[e]},"Progress")},{title:"Multiple Sizes",jsx:'\n<AwesomeButton\n size="icon"\n type="primary"\n>\n <i className="fa fa-codepen" />\n</AwesomeButton>\n<AwesomeButton\n size="small"\n type="primary"\n>\n Small\n</AwesomeButton>\n<AwesomeButton\n size="small"\n type="primary"\n>\n Medium\n</AwesomeButton>\n<AwesomeButton\n size="small"\n type="primary"\n>\n Large\n</AwesomeButton>',component:i.default.createElement("div",null,i.default.createElement(l.AwesomeButton,{cssModule:u.default.Modules[e],size:"icon",type:"primary"},i.default.createElement("i",{className:"fa fa-codepen","aria-hidden":!0})),i.default.createElement(l.AwesomeButton,{cssModule:u.default.Modules[e],size:"small",type:"primary"},"Small"),i.default.createElement(l.AwesomeButton,{cssModule:u.default.Modules[e],size:"medium",type:"primary"},"Medium"),i.default.createElement(l.AwesomeButton,{cssModule:u.default.Modules[e],size:"large",type:"primary"},"Large"))},{title:"Styling with - CSS",description:"For styling with CSS you can access all themes on the /dist folder and append it via <link> or import into your .js or .css files.",jsx:"import 'react-awesome-button/dist/themes/theme-blue.css';"},{title:"Styling with - CSS Modules",description:"For styling it through CSS Modules, import the file from the themes folder inside the src. You'll need a .scss loader in place in order to build it.",jsx:"\nimport AwesomeButton from 'react-awesome-button/src/components/AwesomeButton';\nimport styles from 'react-awesome-button/src/styles/themes/theme-blue';\n\n...\n\nfunction Component() {\n return (\n <AwesomeButton\n cssModule={styles}\n type=\"primary\"\n >\n Primary Blue Themed Button\n </AwesomeButton>\n );\n}\n"}]}Object.defineProperty(t,"__esModule",{value:!0}),t.features=t.properties=void 0,t.examples=o;var a=n(0),i=r(a),s=n(6),u=r(s),l=n(5);t.properties=[{name:"General",props:[{name:"button-default-height",type:"range",max:100,min:30,suffix:"px"},{name:"button-default-font-size",type:"range",max:25,min:10,suffix:"px"},{name:"button-default-border-radius",type:"range",max:25,suffix:"px"},{name:"button-horizontal-padding",type:"range",max:50,suffix:"px"},{name:"button-raise-level",type:"range",max:10,suffix:"px"}]},{name:"Animations",props:[{name:"button-hover-pressure",type:"range",max:4,step:.5},{name:"transform-speed",type:"range",max:.6,step:.025,suffix:"s"}]},{name:"Primary",props:[{name:"button-primary-color",type:"color"},{name:"button-primary-color-dark",type:"color"},{name:"button-primary-color-light",type:"color"},{name:"button-primary-color-hover",type:"color"},{name:"button-primary-border",type:"border"}]},{name:"Secondary",props:[{name:"button-secondary-color",type:"color"},{name:"button-secondary-color-dark",type:"color"},{name:"button-secondary-color-light",type:"color"},{name:"button-secondary-color-hover",type:"color"},{name:"button-secondary-border",type:"border"}]},{name:"Anchor",props:[{name:"button-anchor-color",type:"color"},{name:"button-anchor-color-dark",type:"color"},{name:"button-anchor-color-light",type:"color"},{name:"button-anchor-color-hover",type:"color"},{name:"button-anchor-border",type:"border"}]}],t.features=["Look and feel customisable and extendable via SASS variables and lists","Use it with CSSModules or Plain CSS (NO inline-styles)","Render any tag as the component's child (text, icon, img, svg)","Animated progress button","OnClick bubble animation"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(20),i=r(a),s=n(21),u=r(s),l=n(7);t.createLocation=function(e,t,n,r){var a=void 0;"string"==typeof e?(a=(0,l.parsePath)(e),a.state=t):(a=o({},e),void 0===a.pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,i.default)(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,u.default)(e.state,t.state)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=function(){var e=null,t=function(t){return(0,o.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,a):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.default=a},function(e,t,n){"use strict";var r=n(14);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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)}var i=n(2),s=n.n(i),u=n(3),l=n.n(u),c=n(0),p=n.n(c),f=n(1),d=n.n(f),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.state={match:a.computeMatch(a.props.history.location.pathname)},i=n,o(a,i)}return a(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;l()(null==n||1===p.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(44),o=n.n(r),a={},i=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=a[n]||(a[n]={});if(r[e])return r[e];var s=[],u=o()(e,s,t),l={re:u,keys:s};return i<1e4&&(r[e]=l,i++),l},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,a=n.exact,i=void 0!==a&&a,u=n.strict,l=void 0!==u&&u,c=n.sensitive,p=void 0!==c&&c,f=s(o,{end:i,strict:l,sensitive:p}),d=f.re,h=f.keys,m=d.exec(e);if(!m)return null;var b=m[0],y=m.slice(1),g=e===b;return i&&!g?null:{path:o,url:"/"===o&&""===b?"/":b,isExact:g,params:h.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}};t.a=u},function(e,t,n){"use strict";var r=n(2),o=n.n(r),a=function(){var e=null,t=function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,a):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=a},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&";return Object.entries(e).map(function(e){var t=l(e,2);return t[0]+"="+t[1]}).join(t)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(!t)return e.join(" ").trim();for(var n=[],r=e.length;r--;)t[e[r]]&&n.push(t[e[r]]);return n.join(" ").trim()}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];return t?t[e]||e:e}function i(e,t,n){if(!e)return!1;var r=t.charAt(0).toUpperCase()+t.slice(1);return void 0!==e.style["Webkit"+r]?e.addEventListener("webkit"+r+"End",n):void 0!==e.style.OTransition?e.addEventListener("o"+t+"End",n):e.addEventListener(t+"End",n)}function s(e){var t=e.element,n=e.root,r=e.cssModule,a=void 0===r?null:r,i=e.state,s=void 0===i?null:i;if(!t)return!1;if(!s)return t.classList.remove(o([n+"--"+c[0]],a),o([n+"--"+c[1]],a),o([n+"--"+c[2]],a)),!1;for(var u=c.filter(function(e){return e!==s}),l=u.length;l--;)t.classList.remove(o([n+"--"+u[l]],a));return t.classList.add(o([n+"--"+s],a)),!0}function u(e){var t=e.event,n=e.button,r=e.content,o=e.className,a=n.getBoundingClientRect(),s=window.pageYOffset||document.documentElement.scrolltop||0,u=document.createElement("span"),l=a.width<50?3*a.width:2*a.width;u.className=o,u.style.top="-"+(l/2-(t.pageY-a.top-s))+"px",u.style.left="-"+(l/2-(t.pageX-a.left))+"px",u.style.width=l+"px",u.style.height=l+"px",i(u,"animation",function(){window.requestAnimationFrame(function(){r.removeChild(u)})}),window.requestAnimationFrame(function(){r.appendChild(u)})}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}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")}}();t.serialize=r,t.classToModules=o,t.getClassName=a,t.setCssEndEvent=i,t.toggleMoveClasses=s,t.createBubbleEffect=u;var c=["middle","left","right"]},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36);n.d(t,"BrowserRouter",function(){return r.a});var o=n(38);n.d(t,"HashRouter",function(){return o.a});var a=n(23);n.d(t,"Link",function(){return a.a});var i=n(40);n.d(t,"MemoryRouter",function(){return i.a});var s=n(43);n.d(t,"NavLink",function(){return s.a});var u=n(46);n.d(t,"Prompt",function(){return u.a});var l=n(48);n.d(t,"Redirect",function(){return l.a});var c=n(24);n.d(t,"Route",function(){return c.a});var p=n(13);n.d(t,"Router",function(){return p.a});var f=n(54);n.d(t,"StaticRouter",function(){return f.a});var d=n(56);n.d(t,"Switch",function(){return d.a});var h=n(58);n.d(t,"matchPath",function(){return h.a});var m=n(59);n.d(t,"withRouter",function(){return m.a})},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&r(e),s=t&&r(t),u=i||s;if(e&&r(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";var l=void 0;if(a.length){var c=a[a.length-1];l="."===c||".."===c||""===c}else l=!1;for(var p=0,f=a.length;f>=0;f--){var d=a[f];"."===d?o(a,f):".."===d?(o(a,f),p++):p&&(o(a,f),p--)}if(!u)for(;p--;p)a.unshift("..");!u||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return l&&"/"!==h.substr(-1)&&(h+="/"),h}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});var n=void 0===e?"undefined":o(e);if(n!==(void 0===t?"undefined":o(t)))return!1;if("object"===n){var a=e.valueOf(),i=t.valueOf();if(a!==e||i!==t)return r(a,i);var s=Object.keys(e),u=Object.keys(t);return s.length===u.length&&s.every(function(n){return r(e[n],t[n])})}return!1}Object.defineProperty(t,"__esModule",{value:!0});var o="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};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";function r(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 o(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 i(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 s=n(0),u=n.n(s),l=n(1),c=n.n(l),p=n(3),f=n.n(p),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},h=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},m=function(e){function t(){var n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=a(this,e.call.apply(e,[this].concat(u))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!h(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,a=n.to;o?t.replace(a):t.push(a)}},i=n,a(r,i)}return i(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,o=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>");var a=this.context.router.history.createHref("string"==typeof t?{pathname:t}:t);return u.a.createElement("a",d({},o,{onClick:this.handleClick,href:a,ref:n}))},t}(u.a.Component);m.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},m.defaultProps={replace:!1},m.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=m},function(e,t,n){"use strict";var r=n(25);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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)}var i=n(2),s=n.n(i),u=n(3),l=n.n(u),c=n(0),p=n.n(c),f=n(1),d=n.n(f),h=n(15),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e){return 0===p.a.Children.count(e)},y=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.state={match:a.computeMatch(a.props,a.context.router)},i=n,o(a,i)}return a(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,a=e.strict,i=e.exact,s=e.sensitive;if(n)return n;l()(t,"You should not use <Route> or withRouter() outside a <Router>");var u=t.route,c=(r||u.location).pathname;return o?Object(h.a)(c,{path:o,strict:a,exact:i,sensitive:s}):u.match},t.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),s()(!(this.props.component&&this.props.children&&!b(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),s()(!(this.props.render&&this.props.children&&!b(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){s()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),s()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,a=this.context.router,i=a.history,s=a.route,u=a.staticContext,l=this.props.location||s.location,c={match:e,location:l,history:i,staticContext:u};return r?e?p.a.createElement(r,c):null:o?e?o(c):null:n?"function"==typeof n?n(c):b(n)?null:p.a.Children.only(n):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return u}),n.d(t,"f",function(){return l}),n.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},a=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},i=function(e,t){return t(window.confirm(e))},s=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},l=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";function r(e,t){var n=e.split(","),r=t<0?0:255,o=t<0?-1*t:t,a=parseInt(n[0].slice(4),10),i=parseInt(n[1],10),s=parseInt(n[2],10);return"rgb("+(Math.round((r-a)*o)+a)+", "+(Math.round((r-i)*o)+i)+", "+(Math.round((r-s)*o)+s)+")"}function o(e,t){return new Promise(function(n){function r(t){e.removeEventListener(o,r),(t.srcElement||t.target)===e&&n()}if(!e)return void n(!1);var o=null,a=t.charAt(0).toUpperCase()+t.slice(1);void 0!==e.style["Webkit"+a]&&(o="webkit"+a+"End"),void 0!==e.style.OTransition&&(o="o"+t+"End"),void 0!==e.style[t]&&(o=t+"end"),e.addEventListener(o,r)})}function a(e){return!(e>255)&&("0"+Number(e).toString(16)).slice(-2)}function i(e){var t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+)\s*)?\)/,n=t.exec(e);if(!n)return!1;var r=n[1],o=n[2],i=n[3],s=n[4],u=[a(r),a(o),a(i)];return s&&u.push(a(s)),"#"+u.join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.shadeRGBColor=r,t.setCssEndEvent=o,t.rgba2hex=i,t.default={}},function(e,t,n){e.exports=n(29)},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 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 i(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}}(),u=n(0),l=r(u),c=n(1),p=r(c),f=n(19),d=n(62),h=r(d),m=n(4),b=n(117),y=r(b),g=n(118),w=r(g),v=function(e){var t=e.match,n=e.handlePopover,r=e.popoverOpened,o=e.popoverText,a=t.params.theme||"blue-theme";return l.default.createElement(m.Page,{theme:w.default[a],data:y.default,handlePopover:n,popoverOpened:r,popoverText:o})},_=function(e){var t=e.match,n=e.handlePopover,r=t.params.theme||"blue-theme";return l.default.createElement(m.Customiser,{theme:r,handlePopover:n,repository:y.default.repository,module:w.default[r].module,componentClass:w.default[r].example.componentClass,properties:w.default[r].properties})},O=function(e){var t=e.match,n=t.params.theme||"blue-theme";return l.default.createElement(m.Header,{title:y.default.title,framework:y.default.framework,name:y.default.name,repository:y.default.repository,module:w.default[n].module,size:y.default.size,domain:y.default.domain,description:y.default.description,themes:y.default.themes,theme:n})},E=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handlePopover=function(e){n.setState(e)},n.state={popoverOpened:!1,popoverText:""},n}return i(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.server,r=t.location,o=!0===n?f.StaticRouter:f.BrowserRouter;return l.default.createElement(o,{location:r},l.default.createElement("div",null,l.default.createElement(m.PageRibbon,{href:y.default.repository,title:"Github Repository",target:"_blank",className:h.default.ribbon,delay:1250},l.default.createElement("span",null,"Support it on Github"),l.default.createElement("span",{role:"img","aria-label":"hi?"},"🙌🏻")),l.default.createElement(m.Body,null,l.default.createElement(f.Route,{path:y.default.domain+"/:theme?",component:O}),l.default.createElement(f.Route,{path:y.default.domain+"/:theme?",render:function(t){var n=t.match;return l.default.createElement(v,{match:n,popoverOpened:e.state.popoverOpened,popoverText:e.state.popoverText,handlePopover:e.handlePopover})}})),l.default.createElement(m.Composer,null,l.default.createElement(f.Route,{path:y.default.domain+"/:theme?",render:function(t){var n=t.match;return l.default.createElement(_,{match:n,handlePopover:e.handlePopover})}}))))}}]),t}(l.default.Component);E.propTypes={server:p.default.bool,location:p.default.string},E.defaultProps={server:!1,location:""},t.default=E},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}function a(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}function i(){}function s(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}function u(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)R.call(t,r)&&!A.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:O,type:e,key:a,ref:i,props:o,_owner:T.current}}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===O}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function p(e,t,n,r){if(B.length){var o=B.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>B.length&&B.push(e)}function d(e,t,n,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case O:case E:case P:case x:i=!0}}if(i)return n(o,e,""===t?"."+h(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){a=e[s];var u=t+h(a,s);i+=d(a,u,n,o)}else if(null===e||void 0===e?u=null:(u=k&&e[k]||e["@@iterator"],u="function"==typeof u?u:null),"function"==typeof u)for(e=u.call(e),s=0;!(a=e.next()).done;)a=a.value,u=t+h(a,s++),i+=d(a,u,n,o);else"object"===a&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return i}function h(e,t){return"object"==typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function m(e,t){e.func.call(e.context,t,e.count++)}function b(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?y(e,r,n,v.thatReturnsArgument):null!=e&&(l(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(L,"$&/")+"/")+n,e={$$typeof:O,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function y(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(L,"$&/")+"/"),t=p(t,a,r,o),null==e||d(e,"",b,t),f(t)}var g=n(31),w=n(32),v=n(18),_="function"==typeof Symbol&&Symbol.for,O=_?Symbol.for("react.element"):60103,E=_?Symbol.for("react.call"):60104,P=_?Symbol.for("react.return"):60105,x=_?Symbol.for("react.portal"):60106,j=_?Symbol.for("react.fragment"):60107,k="function"==typeof Symbol&&Symbol.iterator,S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=o.prototype;var C=a.prototype=new i;C.constructor=a,g(C,o.prototype),C.isPureReactComponent=!0;var M=s.prototype=new i;M.constructor=s,g(M,o.prototype),M.unstable_isAsyncReactComponent=!0,M.render=function(){return this.props.children};var T={current:null},R=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0},L=/\/+/g,B=[],N={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return y(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=p(null,null,t,n),null==e||d(e,"",m,t),f(t)},count:function(e){return null==e?0:d(e,"",v.thatReturnsNull,null)},toArray:function(e){var t=[];return y(e,t,null,v.thatReturnsArgument),t},only:function(e){return l(e)||r("143"),e}},Component:o,PureComponent:a,unstable_AsyncComponent:s,Fragment:j,createElement:u,cloneElement:function(e,t,n){var r=g({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=T.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)R.call(t,u)&&!A.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:O,type:e.type,key:o,ref:a,props:r,_owner:i}},createFactory:function(e){var t=u.bind(null,e);return t.type=e,t},isValidElement:l,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:T,assign:g}},z=Object.freeze({default:N}),F=z&&N||z;e.exports=F.default?F.default:F},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)a.call(n,c)&&(u[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(u[s[p]]=n[s[p]])}}return u}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(18),o=n(34),a=n(35);e.exports=function(){function e(e,t,n,r,i,s){s!==a&&o(!1,"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")}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=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e,t,n,r,a,i,s,u){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,s,u],p=0;l=new Error(t.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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)}var i=n(2),s=n.n(i),u=n(0),l=n.n(u),c=n(1),p=n.n(c),f=n(37),d=n.n(f),h=n(13),m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.history=d()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return l.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(l.a.Component);m.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="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},a=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},i=n(2),s=r(i),u=n(3),l=r(u),c=n(11),p=n(7),f=n(12),d=r(f),h=n(22),m=function(){try{return window.history.state||{}}catch(e){return{}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),i=e.forceRefresh,u=void 0!==i&&i,f=e.getUserConfirmation,b=void 0===f?h.getConfirmation:f,y=e.keyLength,g=void 0===y?6:y,w=e.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(e.basename)):"",v=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname,i=o.search,u=o.hash,l=a+i+u;return(0,s.default)(!w||(0,p.hasBasename)(l,w),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+l+'" to begin with "'+w+'".'),w&&(l=(0,p.stripBasename)(l,w)),(0,c.createLocation)(l,r,n)},_=function(){return Math.random().toString(36).substr(2,g)},O=(0,d.default)(),E=function(e){a(D,e),D.length=t.length,O.notifyListeners(D.location,D.action)},P=function(e){(0,h.isExtraneousPopstateEvent)(e)||k(v(e.state))},x=function(){k(v(m()))},j=!1,k=function(e){j?(j=!1,E()):O.confirmTransitionTo(e,"POP",b,function(t){t?E({action:"POP",location:e}):S(e)})},S=function(e){var t=D.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(j=!0,L(o))},C=v(m()),M=[C.key],T=function(e){return w+(0,p.createPath)(e)},R=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"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=(0,c.createLocation)(e,r,_(),D.location);O.confirmTransitionTo(a,"PUSH",b,function(e){if(e){var r=T(a),o=a.key,i=a.state;if(n)if(t.pushState({key:o,state:i},null,r),u)window.location.href=r;else{var l=M.indexOf(D.location.key),c=M.slice(0,-1===l?0:l+1);c.push(a.key),M=c,E({action:"PUSH",location:a})}else(0,s.default)(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},A=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"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=(0,c.createLocation)(e,r,_(),D.location);O.confirmTransitionTo(a,"REPLACE",b,function(e){if(e){var r=T(a),o=a.key,i=a.state;if(n)if(t.replaceState({key:o,state:i},null,r),u)window.location.replace(r);else{var l=M.indexOf(D.location.key);-1!==l&&(M[l]=a.key),E({action:"REPLACE",location:a})}else(0,s.default)(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},L=function(e){t.go(e)},B=function(){return L(-1)},N=function(){return L(1)},z=0,F=function(e){z+=e,1===z?((0,h.addEventListener)(window,"popstate",P),r&&(0,h.addEventListener)(window,"hashchange",x)):0===z&&((0,h.removeEventListener)(window,"popstate",P),r&&(0,h.removeEventListener)(window,"hashchange",x))},q=!1,H=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return q||(F(1),q=!0),function(){return q&&(q=!1,F(-1)),t()}},U=function(e){var t=O.appendListener(e);return F(1),function(){F(-1),t()}},D={length:t.length,action:"POP",location:C,createHref:T,push:R,replace:A,go:L,goBack:B,goForward:N,block:H,listen:U};return D};t.default=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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)}var i=n(2),s=n.n(i),u=n(0),l=n.n(u),c=n(1),p=n.n(c),f=n(39),d=n.n(f),h=n(13),m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.history=d()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return l.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(l.a.Component);m.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2),i=r(a),s=n(3),u=r(s),l=n(11),c=n(7),p=n(12),f=r(p),d=n(22),h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},m=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},b=function(e){return window.location.hash=e},y=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,a=void 0===r?d.getConfirmation:r,s=e.hashType,p=void 0===s?"slash":s,g=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",w=h[p],v=w.encodePath,_=w.decodePath,O=function(){var e=_(m());return(0,i.default)(!g||(0,c.hasBasename)(e,g),'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 "'+g+'".'),g&&(e=(0,c.stripBasename)(e,g)),(0,l.createLocation)(e)},E=(0,f.default)(),P=function(e){o($,e),$.length=t.length,E.notifyListeners($.location,$.action)},x=!1,j=null,k=function(){var e=m(),t=v(e);if(e!==t)y(t);else{var n=O(),r=$.location;if(!x&&(0,l.locationsAreEqual)(r,n))return;if(j===(0,c.createPath)(n))return;j=null,S(n)}},S=function(e){x?(x=!1,P()):E.confirmTransitionTo(e,"POP",a,function(t){t?P({action:"POP",location:e}):C(e)})},C=function(e){var t=$.location,n=A.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=A.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(x=!0,z(o))},M=m(),T=v(M);M!==T&&y(T);var R=O(),A=[(0,c.createPath)(R)],L=function(e){return"#"+v(g+(0,c.createPath)(e))},B=function(e,t){(0,i.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,l.createLocation)(e,void 0,void 0,$.location);E.confirmTransitionTo(n,"PUSH",a,function(e){if(e){var t=(0,c.createPath)(n),r=v(g+t);if(m()!==r){j=t,b(r);var o=A.lastIndexOf((0,c.createPath)($.location)),a=A.slice(0,-1===o?0:o+1);a.push(t),A=a,P({action:"PUSH",location:n})}else(0,i