UNPKG

hydux-react-router

Version:
15 lines 45.4 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReactRouter=e():(t.hydux=t.hydux||{},t.hydux.ReactRouter=e())}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=16)}([function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";t.exports=n(17)},function(t,e,n){t.exports=n(22)()},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,u){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],p=0;c=new Error(e.replace(/%s/g,function(){return s[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"f",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return s});var r=function(t){return"/"===t.charAt(0)?t:"/"+t},o=function(t){return"/"===t.charAt(0)?t.substr(1):t},i=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},a=function(t,e){return i(t,e)?t.substr(e.length):t},u=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},c=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},s=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var r=n(11),o=n(12),i=n(4),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(t,e,n,o){var u=void 0;"string"==typeof t?(u=Object(i.d)(t),u.state=e):(u=a({},t),void 0===u.pathname&&(u.pathname=""),u.search?"?"!==u.search.charAt(0)&&(u.search="?"+u.search):u.search="",u.hash?"#"!==u.hash.charAt(0)&&(u.hash="#"+u.hash):u.hash="",void 0!==e&&void 0===u.state&&(u.state=e));try{u.pathname=decodeURI(u.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+u.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(u.key=n),o?u.pathname?"/"!==u.pathname.charAt(0)&&(u.pathname=Object(r.default)(u.pathname,o.pathname)):u.pathname=o.pathname:u.pathname||(u.pathname="/"),u},c=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(o.default)(t.state,e.state)}},function(t,e,n){"use strict";e.__esModule=!0;var r=(e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.hasBasename=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)});e.stripBasename=function(t,e){return r(t,e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),u=n.n(a),c=n(3),s=n.n(c),p=n(1),f=n.n(p),l=n(2),h=n.n(l),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.state={match:i.computeMatch(i.props.history.location.pathname)},a=n,o(i,a)}return i(e,t),e.prototype.getChildContext=function(){return{router:d({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,r=e.history;s()(null==n||1===f.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){u()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?f.a.Children.only(t):null},e}(f.a.Component);y.propTypes={history:h.a.object.isRequired,children:h.a.node},y.contextTypes={router:h.a.object},y.childContextTypes={router:h.a.object.isRequired},e.a=y},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=function(){var t=null,e=function(e){return o()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,i){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.a=i},function(t,e,n){"use strict";var r=n(34),o=n.n(r),i={},a=0,u=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=i[n]||(i[n]={});if(r[t])return r[t];var u=[],c=o()(t,u,e),s={re:c,keys:u};return a<1e4&&(r[t]=s,a++),s},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,c=n.strict,s=void 0!==c&&c,p=n.sensitive,f=void 0!==p&&p,l=u(o,{end:a,strict:s,sensitive:f}),h=l.re,d=l.keys,y=h.exec(t);if(!y)return null;var v=y[0],m=y.slice(1),b=t===v;return a&&!b?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:b,params:d.reduce(function(t,e,n){return t[e.name]=m[n],t},{})}};e.a=c},function(t,e,n){"use strict";function r(t){return function(){return t}}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(t){return t},t.exports=o},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&r(t),u=e&&r(e),c=a||u;if(t&&r(t)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var p=i[i.length-1];s="."===p||".."===p||""===p}else s=!1;for(var f=0,l=i.length;l>=0;l--){var h=i[l];"."===h?o(i,l):".."===h?(o(i,l),f++):f&&(o(i,l),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":o(t);if(n!==(void 0===e?"undefined":o(e)))return!1;if("object"===n){var i=t.valueOf(),a=e.valueOf();if(i!==t||a!==e)return r(i,a);var u=Object.keys(t),c=Object.keys(e);return u.length===c.length&&u.every(function(n){return r(t[n],e[n])})}return!1}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=r},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"f",function(){return s}),n.d(e,"d",function(){return p});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},i=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},u=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},c=function(){return-1===window.navigator.userAgent.indexOf("Trident")},s=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},p=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),u=n.n(a),c=n(3),s=n.n(c),p=n(1),f=n.n(p),l=n(2),h=n.n(l),d=n(9),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(t){return 0===f.a.Children.count(t)},m=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.state={match:i.computeMatch(i.props,i.context.router)},a=n,o(i,a)}return i(e,t),e.prototype.getChildContext=function(){return{router:y({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,r=t.location,o=t.path,i=t.strict,a=t.exact,u=t.sensitive;if(n)return n;s()(e,"You should not use <Route> or withRouter() outside a <Router>");var c=e.route,p=(r||c.location).pathname;return o?Object(d.a)(p,{path:o,strict:i,exact:a,sensitive:u}):c.match},e.prototype.componentWillMount=function(){u()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),u()(!(this.props.component&&this.props.children&&!v(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),u()(!(this.props.render&&this.props.children&&!v(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){u()(!(t.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.'),u()(!(!t.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(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,r=e.component,o=e.render,i=this.context.router,a=i.history,u=i.route,c=i.staticContext,s=this.props.location||u.location,p={match:t,location:s,history:a,staticContext:c};return r?t?f.a.createElement(r,p):null:o?t?o(p):null:n?"function"==typeof n?n(p):v(n)?null:f.a.Children.only(n):null},e}(f.a.Component);m.propTypes={computedMatch:h.a.object,path:h.a.string,exact:h.a.bool,strict:h.a.bool,sensitive:h.a.bool,component:h.a.func,render:h.a.func,children:h.a.oneOfType([h.a.func,h.a.node]),location:h.a.object},m.contextTypes={router:h.a.shape({history:h.a.object.isRequired,route:h.a.object.isRequired,staticContext:h.a.object})},m.childContextTypes={router:h.a.object.isRequired},e.a=m},function(t,e,n){"use strict";function r(t,e){for(var n=Object.keys(e),r=n.length;r--;){var o=n[r];t[o]=e[o]}return t}function o(t,e){return r(r(s(t)?{}:new t.constructor,t),e)}function i(t,e,n){var r=s(n)?{}:new n.constructor;return 0===t.length?e:(r[t[0]]=1<t.length?i(t.slice(1),e,n[t[0]]):e,o(n,r))}function a(t,e){for(var n=t.length,r=0;r<n;r++)e=e[t[r]];return e}function u(t){return"function"==typeof t}Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){return void 0!==t&&null!==t},s=function(t){return!c(t.constructor)||t.constructor===Object};e.set=r,e.merge=o,e.setDeep=i,e.get=a,e.isFn=u,e.noop=function(t){return t}},function(t,e,n){"use strict";function r(t,e){var n=e.router;return a.createElement(u.Switch,i({location:n.route.location},t),t.children)}function o(t){return function(e){return function(n){return e(i({},n,{init:function(){var e=n.init();return e instanceof Array||(e=[e,c.Cmd.none]),[i({},e[0],{location:t.location}),e[1]]},actions:i({},n.actions,(r={history:{go:function(e){return t.go(e)},goBack:function(){return t.goBack()},goForward:function(){return t.goForward()},push:function(e,n){return t.push(e,n)},replace:function(e,n){return t.replace(e,n)}}},r[p]=function(t){return function(e){return i({},e,{location:t})}},r)),view:function(e,r){var o=n.view(e,r);return a.createElement(u.Router,{history:t},o)},subscribe:function(e){var r=n.subscribe?n.subscribe(e):c.Cmd.none;return c.Cmd.batch(r,c.Cmd.ofSub(function(e){t.listen(e[p])}))}}));var r}}}var i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),u=n(20);e.Switch=u.Switch;var c=n(40),s=n(2),p="@@hydux-react-router/CHANGE_LOCATION";e.ConnectedSwitch=r,r.contextTypes={router:s.object.isRequired},e.default=o},function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw e=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),e.name="Invariant Violation",e.framesToPop=1,e}function o(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||S}function i(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||S}function a(){}function u(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||S}function c(t,e,n){var r,o={},i=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(i=""+e.key),e)A.call(e,r)&&!M.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:x,type:t,key:i,ref:a,props:o,_owner:k.current}}function s(t){return"object"==typeof t&&null!==t&&t.$$typeof===x}function p(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function f(t,e,n,r){if(q.length){var o=q.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function l(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>q.length&&q.push(t)}function h(t,e,n,o){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case x:case j:case R:case P:a=!0}}if(a)return n(o,t,""===e?"."+d(t,0):e),1;if(a=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;u<t.length;u++){i=t[u];var c=e+d(i,u);a+=h(i,c,n,o)}else if(null===t||void 0===t?c=null:(c=_&&t[_]||t["@@iterator"],c="function"==typeof c?c:null),"function"==typeof c)for(t=c.call(t),u=0;!(i=t.next()).done;)i=i.value,c=e+d(i,u++),a+=h(i,c,n,o);else"object"===i&&(n=""+t,r("31","[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return a}function d(t,e){return"object"==typeof t&&null!==t&&null!=t.key?p(t.key):e.toString(36)}function y(t,e){t.func.call(t.context,e,t.count++)}function v(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?m(t,r,n,O.thatReturnsArgument):null!=t&&(s(t)&&(e=o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(L,"$&/")+"/")+n,t={$$typeof:x,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),r.push(t))}function m(t,e,n,r,o){var i="";null!=n&&(i=(""+n).replace(L,"$&/")+"/"),e=f(e,i,r,o),null==t||h(t,"",v,e),l(e)}/** @license React v16.2.0 * react.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var b=n(18),g=n(19),O=n(10),w="function"==typeof Symbol&&Symbol.for,x=w?Symbol.for("react.element"):60103,j=w?Symbol.for("react.call"):60104,R=w?Symbol.for("react.return"):60105,P=w?Symbol.for("react.portal"):60106,E=w?Symbol.for("react.fragment"):60107,_="function"==typeof Symbol&&Symbol.iterator,S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&r("85"),this.updater.enqueueSetState(this,t,e,"setState")},o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},a.prototype=o.prototype;var T=i.prototype=new a;T.constructor=i,b(T,o.prototype),T.isPureReactComponent=!0;var C=u.prototype=new a;C.constructor=u,b(C,o.prototype),C.unstable_isAsyncReactComponent=!0,C.render=function(){return this.props.children};var k={current:null},A=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0},L=/\/+/g,q=[],U={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return m(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;e=f(null,null,e,n),null==t||h(t,"",y,e),l(e)},count:function(t){return null==t?0:h(t,"",O.thatReturnsNull,null)},toArray:function(t){var e=[];return m(t,e,null,O.thatReturnsArgument),e},only:function(t){return s(t)||r("143"),t}},Component:o,PureComponent:i,unstable_AsyncComponent:u,Fragment:E,createElement:c,cloneElement:function(t,e,n){var r=b({},t.props),o=t.key,i=t.ref,a=t._owner;if(null!=e){if(void 0!==e.ref&&(i=e.ref,a=k.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(c in e)A.call(e,c)&&!M.hasOwnProperty(c)&&(r[c]=void 0===e[c]&&void 0!==u?u[c]:e[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var s=0;s<c;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:x,type:t.type,key:o,ref:i,props:r,_owner:a}},createFactory:function(t){var e=c.bind(null,t);return e.type=t,e},isValidElement:s,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:k,assign:b}},F=Object.freeze({default:U}),I=F&&U||F;t.exports=I.default?I.default:I},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* object-assign (c) Sindre Sorhus @license MIT */ var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,c=r(t),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var p in n)i.call(n,p)&&(c[p]=n[p]);if(o){u=o(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21);n.d(e,"MemoryRouter",function(){return r.a});var o=n(28);n.d(e,"Prompt",function(){return o.a});var i=n(29);n.d(e,"Redirect",function(){return i.a});var a=n(14);n.d(e,"Route",function(){return a.a});var u=n(7);n.d(e,"Router",function(){return u.a});var c=n(36);n.d(e,"StaticRouter",function(){return c.a});var s=n(37);n.d(e,"Switch",function(){return s.a});var p=n(9);n.d(e,"matchPath",function(){return p.a});var f=n(38);n.d(e,"withRouter",function(){return f.a})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),u=n.n(a),c=n(1),s=n.n(c),p=n(2),f=n.n(p),l=n(25),h=n.n(l),d=n(7),y=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.history=h()(i.props),a=n,o(i,a)}return i(e,t),e.prototype.componentWillMount=function(){u()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return s.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(s.a.Component);y.propTypes={initialEntries:f.a.array,initialIndex:f.a.number,getUserConfirmation:f.a.func,keyLength:f.a.number,children:f.a.node},e.a=y},function(t,e,n){"use strict";var r=n(10),o=n(23),i=n(24);t.exports=function(){function t(t,e,n,r,a,u){u!==i&&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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,c){if(o(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,r,i,a,u,c],f=0;s=new Error(e.replace(/%s/g,function(){return p[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(0),u=r(a),c=n(6),s=n(26),p=n(27),f=r(p),l=function(t,e,n){return Math.min(Math.max(t,e),n)},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,a=t.initialIndex,p=void 0===a?0:a,h=t.keyLength,d=void 0===h?6:h,y=(0,f.default)(),v=function(t){i(T,t),T.length=T.entries.length,y.notifyListeners(T.location,T.action)},m=function(){return Math.random().toString(36).substr(2,d)},b=l(p,0,r.length-1),g=r.map(function(t){return"string"==typeof t?(0,s.createLocation)(t,void 0,m()):(0,s.createLocation)(t,void 0,t.key||m())}),O=c.createPath,w=function(t,n){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,s.createLocation)(t,n,m(),T.location);y.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=T.index,n=e+1,o=T.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),v({action:"PUSH",location:r,index:n,entries:o})}})},x=function(t,n){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,s.createLocation)(t,n,m(),T.location);y.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(T.entries[T.index]=r,v({action:"REPLACE",location:r}))})},j=function(t){var n=l(T.index+t,0,T.entries.length-1),r=T.entries[n];y.confirmTransitionTo(r,"POP",e,function(t){t?v({action:"POP",location:r,index:n}):v()})},R=function(){return j(-1)},P=function(){return j(1)},E=function(t){var e=T.index+t;return e>=0&&e<T.entries.length},_=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(t)},S=function(t){return y.appendListener(t)},T={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:O,push:w,replace:x,go:j,goBack:R,goForward:P,canGo:E,block:_,listen:S};return T};e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(11),a=r(i),u=n(12),c=r(u),s=n(6);e.createLocation=function(t,e,n,r){var i=void 0;"string"==typeof t?(i=(0,s.parsePath)(t),i.state=e):(i=o({},t),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,c.default)(t.state,e.state)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=function(){var t=null,e=function(e){return(0,o.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,i){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,i):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.default=i},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(1),u=n.n(a),c=n(2),s=n.n(c),p=n(3),f=n.n(p),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(u.a.Component);l.propTypes={when:s.a.bool,message:s.a.oneOfType([s.a.func,s.a.string]).isRequired},l.defaultProps={when:!0},l.contextTypes={router:s.a.shape({history:s.a.shape({block:s.a.func.isRequired}).isRequired}).isRequired},e.a=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(1),u=n.n(a),c=n(2),s=n.n(c),p=n(0),f=n.n(p),l=n(3),h=n.n(l),d=n(30),y=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(d.a)(t.to),n=Object(d.a)(this.props.to);if(Object(d.b)(e,n))return void f()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"');this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(u.a.Component);y.propTypes={push:s.a.bool,from:s.a.string,to:s.a.oneOfType([s.a.string,s.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:s.a.shape({history:s.a.shape({push:s.a.func.isRequired,replace:s.a.func.isRequired}).isRequired,staticContext:s.a.object}).isRequired},e.a=y},function(t,e,n){"use strict";var r=(n(31),n(32),n(33),n(5));n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(4)},function(t,e,n){"use strict";var r=n(0),o=(n.n(r),n(3));n.n(o),n(5),n(4),n(8),n(13),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(5),n(4));n(8),n(13),Object.assign,i.f,i.a,i.a,i.a},function(t,e,n){"use strict";var r=n(0);n.n(r),n(4),n(5),n(8),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){function r(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=b.exec(t));){var p=n[0],f=n[1],l=n.index;if(a+=t.slice(i,l),i=l+p.length,f)a+=f[1];else{var h=t[i],d=n[2],y=n[3],v=n[4],m=n[5],g=n[6],O=n[7];a&&(r.push(a),a="");var w=null!=d&&null!=h&&h!==d,x="+"===g||"*"===g,j="?"===g||"*"===g,R=n[2]||u,P=v||m;r.push({name:y||o++,prefix:d||"",delimiter:R,optional:j,repeat:x,partial:w,asterisk:!!O,pattern:P?s(P):O?".*":"[^"+c(R)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function o(t,e){return u(r(t,e))}function i(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function a(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function u(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",u=n||{},c=r||{},s=c.pretty?i:encodeURIComponent,p=0;p<t.length;p++){var f=t[p];if("string"!=typeof f){var l,h=u[f.name];if(null==h){if(f.optional){f.partial&&(o+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(m(h)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(l=s(h[d]),!e[p].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");o+=(0===d?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?a(h):s(h),!e[p].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');o+=f.prefix+l}}else o+=f}return o}}function c(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function p(t,e){return t.keys=e,t}function f(t){return t.sensitive?"":"i"}function l(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(t,e)}function h(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(v(t[o],e,n).source);return p(new RegExp("(?:"+r.join("|")+")",f(n)),e)}function d(t,e,n){return y(r(t,n),e,n)}function y(t,e,n){m(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=c(u);else{var s=c(u.prefix),l="(?:"+u.pattern+")";e.push(u),u.repeat&&(l+="(?:"+s+l+")*"),l=u.optional?u.partial?s+"("+l+")?":"(?:"+s+"("+l+"))?":s+"("+l+")",i+=l}}var h=c(n.delimiter||"/"),d=i.slice(-h.length)===h;return r||(i=(d?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=o?"$":r&&d?"":"(?="+h+"|$)",p(new RegExp("^"+i,f(n)),e)}function v(t,e,n){return m(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?l(t,e):m(t)?h(t,e,n):d(t,e,n)}var m=n(35);t.exports=v,t.exports.parse=r,t.exports.compile=o,t.exports.tokensToFunction=u,t.exports.tokensToRegExp=y;var b=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),c=n.n(u),s=n(3),p=n.n(s),f=n(1),l=n.n(f),h=n(2),d=n.n(h),y=n(6),v=(n.n(y),n(7)),m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b=function(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,i=t.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===o?"":o,hash:"#"===a?"":a}},g=function(t,e){return t?m({},e,{pathname:Object(y.addLeadingSlash)(t)+e.pathname}):e},O=function(t,e){if(!t)return e;var n=Object(y.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:m({},e,{pathname:e.pathname.substr(n.length)})},w=function(t){return"string"==typeof t?Object(y.parsePath)(t):b(t)},x=function(t){return"string"==typeof t?t:Object(y.createPath)(t)},j=function(t){return function(){p()(!1,"You cannot %s with <StaticRouter>",t)}},R=function(){},P=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.createHref=function(t){return Object(y.addLeadingSlash)(r.props.basename+x(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=g(n,w(t)),o.url=x(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=g(n,w(t)),o.url=x(o.location)},r.handleListen=function(){return R},r.handleBlock=function(){return R},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){c()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=r(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:O(e,w(n)),push:this.handlePush,replace:this.handleReplace,go:j("go"),goBack:j("goBack"),goForward:j("goForward"),listen:this.handleListen,block:this.handleBlock};return l.a.createElement(v.a,m({},o,{history:i}))},e}(l.a.Component);P.propTypes={basename:d.a.string,context:d.a.object.isRequired,location:d.a.oneOfType([d.a.string,d.a.object])},P.defaultProps={basename:"",location:"/"},P.childContextTypes={router:d.a.object.isRequired},e.a=P},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(1),u=n.n(a),c=n(2),s=n.n(c),p=n(0),f=n.n(p),l=n(3),h=n.n(l),d=n(9),y=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){f()(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),f()(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,r=void 0,o=void 0;return u.a.Children.forEach(e,function(e){if(u.a.isValidElement(e)){var i=e.props,a=i.path,c=i.exact,s=i.strict,p=i.sensitive,f=i.from,l=a||f;null==r&&(o=e,r=l?Object(d.a)(n.pathname,{path:l,exact:c,strict:s,sensitive:p}):t.match)}}),r?u.a.cloneElement(o,{location:n,computedMatch:r}):null},e}(u.a.Component);y.contextTypes={router:s.a.shape({route:s.a.object.isRequired}).isRequired},y.propTypes={children:s.a.node,location:s.a.object},e.a=y},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var o=n(1),i=n.n(o),a=n(2),u=n.n(a),c=n(39),s=n.n(c),p=n(14),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(t){var e=function(e){var n=e.wrappedComponentRef,o=r(e,["wrappedComponentRef"]);return i.a.createElement(p.a,{render:function(e){return i.a.createElement(t,f({},o,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:u.a.func},s()(e,t)};e.a=l},function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,p=s&&s(Object);t.exports=function t(e,n,f){if("string"!=typeof n){if(p){var l=s(n);l&&l!==p&&t(e,l,f)}var h=a(n);u&&(h=h.concat(u(n)));for(var d=0;d<h.length;++d){var y=h[d];if(!(r[y]||o[y]||f&&f[y])){var v=c(n,y);try{i(e,y,v)}catch(t){}}}return e}return e}},function(t,e,n){"use strict";function r(t,e,n,r){var o=t(e);return u.isFn(o)&&(o=o(n,r))&&u.isFn(o)&&(o=o(r)),void 0===o||o.then&&u.isFn(o.then)?[n,a.default.none]:o instanceof Array?o:[o,a.default.none]}function o(t){function e(e){void 0===e&&(e=l),e!==l&&(l=e);var n;u.isFn(n=t.view(l,o))&&(n=n(o));try{return s(n)}catch(t){console.error(t),p(t)}}function n(o,i,c,s){for(var f in c)u.isFn(c[f])?function(n,c){i[n]=function(f){o=u.get(s,l);var h=o,d=l,y=a.default.none;try{v=r(c,f,o,i),h=v[0],y=v[1]}catch(t){console.error(t),p(t)}t.onUpdate&&(d=u.setDeep(s,u.merge(o,h),l),t.onUpdate({prevAppState:l,nextAppState:d,msgData:f,action:s.concat(n).join(".")})),h!==o&&(l=d!==l?d:u.setDeep(s,u.merge(o,h),l),e(l)),y.forEach(function(t){return t(i)});var v}}(f,c[f]):n(o[f]||(o[f]={}),i[f]={},c[f],s.concat(f))}var o={},c=t.subscribe||function(t){return a.default.none},s=t.onRender||console.log,p=t.onError||u.noop,f=r(t.init,void 0,void 0,o),l=f[0],h=f[1];return n(l,o,t.actions,[]),h.forEach(function(t){return t(o)}),e(l),c(l).forEach(function(t){return t(o)}),i({},t,{actions:o,getState:function(){return l},render:e})}var i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(41);e.Cmd=a.default;var u=n(15);e.noop=u.noop,e.runAction=r,e.default=o},function(t,e,n){"use strict";function r(t,e,n,r){return t?(i.isFn(e)&&(r=n,n=e,e=void 0),[function(o){try{var i=t(e);i&&n&&n(i)}catch(t){r&&r(t)}}]):[]}function o(t,e,n,r){return t?(i.isFn(e)&&(r=n,n=e,e=void 0),[function(o){t(e).then(n).catch(r)}]):[]}Object.defineProperty(e,"__esModule",{value:!0});var i=n(15);e.default={none:[],ofPromise:o,ofFn:r,ofSub:function(t){return[t]},batch:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Array.prototype.concat;return n.apply([],n.apply([],t))},map:function(t,e){return e.map(function(e){return function(n){return e(t(n))}})}}}])}); //# sourceMappingURL=hydux.ReactRouter.js.map