Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-router-dom

Package Overview
Dependencies
Maintainers
2
Versions
474
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-dom - npm Package Compare versions

Comparing version 4.0.0-beta.5 to 4.0.0-beta.6

es/withQuery.js

2

es/Link.js

@@ -83,3 +83,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

replace: PropTypes.bool,
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object])
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired
};

@@ -86,0 +86,0 @@ Link.defaultProps = {

@@ -91,3 +91,3 @@ 'use strict';

replace: _react.PropTypes.bool,
to: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object])
to: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object]).isRequired
};

@@ -94,0 +94,0 @@ Link.defaultProps = {

{
"name": "react-router-dom",
"version": "4.0.0-beta.5",
"version": "4.0.0-beta.6",
"description": "DOM bindings for React Router",

@@ -33,6 +33,6 @@ "repository": "ReactTraining/react-router",

"scripts": {
"build": "node ./scripts/build.js",
"build": "node ./tools/build.js",
"watch": "babel ./modules -d . --ignore __tests__ --watch",
"prepublish": "node ./scripts/build.js",
"clean": "git clean -fX .",
"prepublish": "node ./tools/build.js",
"clean": "git clean -e '!node_modules' -fdX .",
"lint": "eslint modules",

@@ -46,3 +46,3 @@ "test": "karma start --single-run"

"history": "^4.5.1",
"react-router": "^4.0.0-beta.5"
"react-router": "^4.0.0-beta.6"
},

@@ -49,0 +49,0 @@ "devDependencies": {

@@ -1,1 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react-router"),require("react")):"function"==typeof define&&define.amd?define(["react-router","react"],e):"object"==typeof exports?exports.ReactRouterDOM=e(require("react-router"),require("react")):t.ReactRouterDOM=e(t.ReactRouter,t.React)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.NavLink=e.MemoryRouter=e.Link=e.HashRouter=e.BrowserRouter=void 0;var o=n(11),i=r(o),a=n(12),u=r(a),c=n(5),f=r(c),s=n(13),l=r(s),d=n(14),p=r(d),h=n(15),v=r(h),y=n(16),m=r(y),b=n(17),w=r(b),g=n(18),O=r(g),P=n(19),_=r(P),x=n(20),R=r(x),E=n(21),S=r(E),j=n(22),M=r(j);e.BrowserRouter=i.default,e.HashRouter=u.default,e.Link=f.default,e.MemoryRouter=l.default,e.NavLink=p.default,e.Prompt=v.default,e.Redirect=m.default,e.Route=w.default,e.Router=O.default,e.StaticRouter=_.default,e.Switch=R.default,e.matchPath=S.default,e.withRouter=M.default},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");o!==-1&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return i!==-1&&(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";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}e.__esModule=!0;var c=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},f=n(2),s=r(f),l=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},d=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=r=a(this,t.call.apply(t,[this].concat(c))),r.handleClick=function(t){if(r.props.onClick&&r.props.onClick(t),!t.defaultPrevented&&0===t.button&&!r.props.target&&!l(t)){t.preventDefault();var e=r.context.router,n=r.props,o=n.replace,i=n.to;o?e.replace(i):e.push(i)}},o=n,a(r,o)}return u(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=o(t,["replace","to"]),r=this.context.router.createHref("string"==typeof e?{pathname:e}:e);return s.default.createElement("a",c({},n,{onClick:this.handleClick,href:r}))},e}(s.default.Component);d.contextTypes={router:f.PropTypes.shape({push:f.PropTypes.func.isRequired,replace:f.PropTypes.func.isRequired,createHref:f.PropTypes.func.isRequired}).isRequired},d.defaultProps={replace:!1},e.default=d},function(t,e){"use strict";e.__esModule=!0;e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(t,e){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},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(25),a=r(i),u=n(26),c=r(u),f=n(3);e.createLocation=function(t,e,n,r){var i=void 0;return"string"==typeof t?(i=(0,f.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)),i.key=n,r&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.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";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(4),i=(r(o),function(){var t=null,e=function(e){return t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(i!==!1)}else o(!0)},r=[],o=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})}},i=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)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:o,notifyListeners:i}});e.default=i},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 f=[n,r,o,i,a,u],s=0;c=new Error(e.replace(/%s/g,function(){return f[s++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),f=n(23),s=r(f),l=n(1),d=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.history=(0,s.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(l.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),f=n(24),s=r(f),l=n(1),d=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.history=(0,s.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(l.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=d},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.MemoryRouter}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(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}e.__esModule=!0;var 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="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},u=n(2),c=r(u),f=n(1),s=n(5),l=r(s),d=function(t){var e=t.to,n=t.exact,r=t.strict,u=t.activeClassName,s=t.className,d=t.activeStyle,p=t.style,h=t.isActive,v=o(t,["to","exact","strict","activeClassName","className","activeStyle","style","isActive"]);return c.default.createElement(f.Route,{path:"object"===("undefined"==typeof e?"undefined":a(e))?e.pathname:e,exact:n,strict:r,children:function(t){var n=t.location,r=t.match,o=!!(h?h(r,n):r);return c.default.createElement(l.default,i({to:e,className:o?[u,s].join(" "):s,style:o?i({},p,d):p},v))}})};e.default=d},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Prompt}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Redirect}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Route}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Router}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.StaticRouter}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Switch}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.matchPath}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.withRouter}})},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},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(4),a=(r(i),n(10)),u=r(a),c=n(8),f=n(3),s=n(9),l=r(s),d=n(7),p=n(6),h="popstate",v="hashchange",y=function(){try{return window.history.state||{}}catch(t){return{}}},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.canUseDOM?void 0:(0,u.default)(!1);var e=window.history,n=(0,p.supportsHistory)(),r=!(0,p.supportsPopStateOnHashChange)(),i=t.basename,a=void 0===i?"":i,s=t.forceRefresh,m=void 0!==s&&s,b=t.getUserConfirmation,w=void 0===b?p.getConfirmation:b,g=t.keyLength,O=void 0===g?6:g,P=function(t){var e=t||{},n=e.key,r=e.state,i=window.location,u=i.pathname,c=i.search,s=i.hash,l=u+c+s;return a&&(l=(0,f.stripPrefix)(l,a)),o({},(0,f.parsePath)(l),{state:r,key:n})},_=function(){return Math.random().toString(36).substr(2,O)},x=(0,l.default)(),R=function(t){o(W,t),W.length=e.length,x.notifyListeners(W.location,W.action)},E=function(t){(0,p.isExtraneousPopstateEvent)(t)||M(P(t.state))},S=function(){M(P(y()))},j=!1,M=function(t){j?(j=!1,R()):!function(){var e="POP";x.confirmTransitionTo(t,e,w,function(n){n?R({action:e,location:t}):L(t)})}()},L=function(t){var e=W.location,n=A.indexOf(e.key);n===-1&&(n=0);var r=A.indexOf(t.key);r===-1&&(r=0);var o=n-r;o&&(j=!0,q(o))},k=P(y()),A=[k.key],T=function(t){return a+(0,f.createPath)(t)},C=function(t,r){var o="PUSH",i=(0,c.createLocation)(t,r,_(),W.location);x.confirmTransitionTo(i,o,w,function(t){if(t){var r=T(i),a=i.key,u=i.state;if(n)if(e.pushState({key:a,state:u},null,r),m)window.location.href=r;else{var c=A.indexOf(W.location.key),f=A.slice(0,c===-1?0:c+1);f.push(i.key),A=f,R({action:o,location:i})}else window.location.href=r}})},H=function(t,r){var o="REPLACE",i=(0,c.createLocation)(t,r,_(),W.location);x.confirmTransitionTo(i,o,w,function(t){if(t){var r=T(i),a=i.key,u=i.state;if(n)if(e.replaceState({key:a,state:u},null,r),m)window.location.replace(r);else{var c=A.indexOf(W.location.key);c!==-1&&(A[c]=i.key),R({action:o,location:i})}else window.location.replace(r)}})},q=function(t){e.go(t)},U=function(){return q(-1)},N=function(){return q(1)},D=0,B=function(t){D+=t,1===D?((0,p.addEventListener)(window,h,E),r&&(0,p.addEventListener)(window,v,S)):0===D&&((0,p.removeEventListener)(window,h,E),r&&(0,p.removeEventListener)(window,v,S))},I=!1,K=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return I||(B(1),I=!0),function(){return I&&(I=!1,B(-1)),e()}},F=function(t){var e=x.appendListener(t);return B(1),function(){return B(-1),e()}},W={length:e.length,action:"POP",location:k,createHref:T,push:C,replace:H,go:q,goBack:U,goForward:N,block:K,listen:F};return W};e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!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(4),a=(r(i),n(10)),u=r(a),c=n(8),f=n(3),s=n(9),l=r(s),d=n(7),p=n(6),h="hashchange",v={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,f.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:f.stripLeadingSlash,decodePath:f.addLeadingSlash},slash:{encodePath:f.addLeadingSlash,decodePath:f.addLeadingSlash}},y=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},m=function(t){return window.location.hash=t},b=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.canUseDOM?void 0:(0,u.default)(!1);var e=window.history,n=((0,p.supportsGoWithoutReloadUsingHash)(),t.basename),r=void 0===n?"":n,i=t.getUserConfirmation,a=void 0===i?p.getConfirmation:i,s=t.hashType,w=void 0===s?"slash":s,g=v[w],O=g.encodePath,P=g.decodePath,_=function(){var t=P(y());return r&&(t=(0,f.stripPrefix)(t,r)),(0,f.parsePath)(t)},x=(0,l.default)(),R=function(t){o(V,t),V.length=e.length,x.notifyListeners(V.location,V.action)},E=!1,S=null,j=function(){var t=y(),e=O(t);if(t!==e)b(e);else{var n=_(),r=V.location;if(!E&&(0,c.locationsAreEqual)(r,n))return;if(S===(0,f.createPath)(n))return;S=null,M(n)}},M=function(t){E?(E=!1,R()):!function(){var e="POP";x.confirmTransitionTo(t,e,a,function(n){n?R({action:e,location:t}):L(t)})}()},L=function(t){var e=V.location,n=C.lastIndexOf((0,f.createPath)(e));n===-1&&(n=0);var r=C.lastIndexOf((0,f.createPath)(t));r===-1&&(r=0);var o=n-r;o&&(E=!0,N(o))},k=y(),A=O(k);k!==A&&b(A);var T=_(),C=[(0,f.createPath)(T)],H=function(t){return"#"+O(r+(0,f.createPath)(t))},q=function(t,e){var n="PUSH",o=(0,c.createLocation)(t,void 0,void 0,V.location);x.confirmTransitionTo(o,n,a,function(t){if(t){var e=(0,f.createPath)(o),i=O(r+e),a=y()!==i;if(a){S=e,m(i);var u=C.lastIndexOf((0,f.createPath)(V.location)),c=C.slice(0,u===-1?0:u+1);c.push(e),C=c,R({action:n,location:o})}else R()}})},U=function(t,e){var n="REPLACE",o=(0,c.createLocation)(t,void 0,void 0,V.location);x.confirmTransitionTo(o,n,a,function(t){if(t){var e=(0,f.createPath)(o),i=O(r+e),a=y()!==i;a&&(S=e,b(i));var u=C.indexOf((0,f.createPath)(V.location));u!==-1&&(C[u]=e),R({action:n,location:o})}})},N=function(t){e.go(t)},D=function(){return N(-1)},B=function(){return N(1)},I=0,K=function(t){I+=t,1===I?(0,p.addEventListener)(window,h,j):0===I&&(0,p.removeEventListener)(window,h,j)},F=!1,W=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return F||(K(1),F=!0),function(){return F&&(F=!1,K(-1)),e()}},G=function(t){var e=x.appendListener(t);return K(1),function(){return K(-1),e()}},V={length:e.length,action:"POP",location:T,createHref:H,push:q,replace:U,go:N,goBack:D,goForward:B,block:W,listen:G};return V};e.default=w},function(t,e){"use strict";var n=function(t){return"/"===t.charAt(0)},r=function(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()},o=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],o=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var f=void 0;if(i.length){var s=i[i.length-1];f="."===s||".."===s||""===s}else f=!1;for(var l=0,d=i.length;d>=0;d--){var p=i[d];"."===p?r(i,d):".."===p?(r(i,d),l++):l&&(r(i,d),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var h=i.join("/");return f&&"/"!==h.substr(-1)&&(h+="/"),h};t.exports=o},function(t,e){"use strict";e.__esModule=!0;var n="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},r=function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return!(!Array.isArray(r)||e.length!==r.length)&&e.every(function(e,n){return t(e,r[n])});var o="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof r?"undefined":n(r);if(o!==i)return!1;if("object"===o){var a=e.valueOf(),u=r.valueOf();if(a!==e||u!==r)return t(a,u);var c=Object.keys(e),f=Object.keys(r);return c.length===f.length&&c.every(function(n){return t(e[n],r[n])})}return!1};e.default=r}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouterDOM=e(require("react")):t.ReactRouterDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.NavLink=e.MemoryRouter=e.Link=e.HashRouter=e.BrowserRouter=void 0;var o=n(16),i=r(o),a=n(17),u=r(a),c=n(8),s=r(c),f=n(18),l=r(f),p=n(19),h=r(p),d=n(20),y=r(d),v=n(21),m=r(v),b=n(22),g=r(b),w=n(23),P=r(w),_=n(24),O=r(_),x=n(25),T=r(x),j=n(26),E=r(j),R=n(27),M=r(R);e.BrowserRouter=i.default,e.HashRouter=u.default,e.Link=s.default,e.MemoryRouter=l.default,e.NavLink=h.default,e.Prompt=y.default,e.Redirect=m.default,e.Route=g.default,e.Router=P.default,e.StaticRouter=O.default,e.Switch=T.default,e.matchPath=E.default,e.withRouter=M.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.MemoryRouter=void 0;var o=n(32),i=r(o),a=n(33),u=r(a),c=n(34),s=r(c),f=n(35),l=r(f),p=n(5),h=r(p),d=n(36),y=r(d),v=n(37),m=r(v),b=n(6),g=r(b),w=n(38),P=r(w);e.MemoryRouter=i.default,e.Prompt=u.default,e.Redirect=s.default,e.Route=l.default,e.Router=h.default,e.StaticRouter=y.default,e.Switch=m.default,e.matchPath=g.default,e.withRouter=P.default},function(e,n){e.exports=t},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");o!==-1&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return i!==-1&&(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";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(14),c=r(u),s=n(2),f=r(s),l=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getChildContext=function(){return{router:this.props.history}},e.prototype.componentWillMount=function(){var t=this.props.children;(0,c.default)(null==t||1===f.default.Children.count(t),"A <Router> may have only one child element")},e.prototype.render=function(){var t=this.props.children;return t?f.default.Children.only(t):null},e}(f.default.Component);l.propTypes={history:s.PropTypes.object.isRequired,children:s.PropTypes.node},l.childContextTypes={router:s.PropTypes.object.isRequired},e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(43),i=r(o),a={},u=1e4,c=0,s=function(t,e){var n=""+e.end+e.strict,r=a[n]||(a[n]={});if(r[t])return r[t];var o=[],s=(0,i.default)(t,o,e),f={re:s,keys:o};return c<u&&(r[t]=f,c++),f},f=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.exact,o=void 0!==r&&r,i=n.strict,a=void 0!==i&&i;if(!e)return{url:t,isExact:!0,params:{}};var u=s(e,{end:o,strict:a}),c=u.re,f=u.keys,l=c.exec(t);if(!l)return null;var p=l[0],h=l.slice(1),d=t===p;return o&&!d?null:{path:e,url:"/"===e&&""===p?"/":p,isExact:d,params:f.reduce(function(t,e,n){return t[e.name]=h[n],t},{})}};e.default=f},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");o!==-1&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return i!==-1&&(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){return t&&t.__esModule?t:{default:t}}function o(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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}e.__esModule=!0;var c=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},s=n(2),f=r(s),l=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},p=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=r=a(this,t.call.apply(t,[this].concat(c))),r.handleClick=function(t){if(r.props.onClick&&r.props.onClick(t),!t.defaultPrevented&&0===t.button&&!r.props.target&&!l(t)){t.preventDefault();var e=r.context.router,n=r.props,o=n.replace,i=n.to;o?e.replace(i):e.push(i)}},o=n,a(r,o)}return u(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=o(t,["replace","to"]),r=this.context.router.createHref("string"==typeof e?{pathname:e}:e);return f.default.createElement("a",c({},n,{onClick:this.handleClick,href:r}))},e}(f.default.Component);p.contextTypes={router:s.PropTypes.shape({push:s.PropTypes.func.isRequired,replace:s.PropTypes.func.isRequired,createHref:s.PropTypes.func.isRequired}).isRequired},p.defaultProps={replace:!1},e.default=p},function(t,e){"use strict";e.__esModule=!0;e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(t,e){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},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(30),a=r(i),u=n(31),c=r(u),s=n(3);e.createLocation=function(t,e,n,r){var i=void 0;return"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)),i.key=n,r&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.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";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(4),i=(r(o),function(){var t=null,e=function(e){return t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(i!==!1)}else o(!0)},r=[],o=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})}},i=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)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:o,notifyListeners:i}});e.default=i},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],f=0;c=new Error(e.replace(/%s/g,function(){return s[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=r},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],f=0;c=new Error(e.replace(/%s/g,function(){return s[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=r},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),s=n(28),f=r(s),l=n(1),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.history=(0,f.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(l.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),s=n(29),f=r(s),l=n(1),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.history=(0,f.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(l.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=p},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.MemoryRouter}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(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}e.__esModule=!0;var 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="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},u=n(2),c=r(u),s=n(1),f=n(8),l=r(f),p=function(t){var e=t.to,n=t.exact,r=t.strict,u=t.activeClassName,f=t.className,p=t.activeStyle,h=t.style,d=t.isActive,y=o(t,["to","exact","strict","activeClassName","className","activeStyle","style","isActive"]);return c.default.createElement(s.Route,{path:"object"===("undefined"==typeof e?"undefined":a(e))?e.pathname:e,exact:n,strict:r,children:function(t){var n=t.location,r=t.match,o=!!(d?d(r,n):r);return c.default.createElement(l.default,i({to:e,className:o?[u,f].join(" "):f,style:o?i({},h,p):h},y))}})};e.default=p},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Prompt}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Redirect}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Route}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Router}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.StaticRouter}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Switch}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.matchPath}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.withRouter}})},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},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(4),a=(r(i),n(13)),u=r(a),c=n(11),s=n(3),f=n(12),l=r(f),p=n(10),h=n(9),d="popstate",y="hashchange",v=function(){try{return window.history.state||{}}catch(t){return{}}},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.canUseDOM?void 0:(0,u.default)(!1);var e=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),i=t.basename,a=void 0===i?"":i,f=t.forceRefresh,m=void 0!==f&&f,b=t.getUserConfirmation,g=void 0===b?h.getConfirmation:b,w=t.keyLength,P=void 0===w?6:w,_=function(t){var e=t||{},n=e.key,r=e.state,i=window.location,u=i.pathname,c=i.search,f=i.hash,l=u+c+f;return a&&(l=(0,s.stripPrefix)(l,a)),o({},(0,s.parsePath)(l),{state:r,key:n})},O=function(){return Math.random().toString(36).substr(2,P)},x=(0,l.default)(),T=function(t){o(F,t),F.length=e.length,x.notifyListeners(F.location,F.action)},j=function(t){(0,h.isExtraneousPopstateEvent)(t)||M(_(t.state))},E=function(){M(_(v()))},R=!1,M=function(t){R?(R=!1,T()):!function(){var e="POP";x.confirmTransitionTo(t,e,g,function(n){n?T({action:e,location:t}):S(t)})}()},S=function(t){var e=F.location,n=A.indexOf(e.key);n===-1&&(n=0);var r=A.indexOf(t.key);r===-1&&(r=0);var o=n-r;o&&(R=!0,U(o))},C=_(v()),A=[C.key],k=function(t){return a+(0,s.createPath)(t)},L=function(t,r){var o="PUSH",i=(0,c.createLocation)(t,r,O(),F.location);x.confirmTransitionTo(i,o,g,function(t){if(t){var r=k(i),a=i.key,u=i.state;if(n)if(e.pushState({key:a,state:u},null,r),m)window.location.href=r;else{var c=A.indexOf(F.location.key),s=A.slice(0,c===-1?0:c+1);s.push(i.key),A=s,T({action:o,location:i})}else window.location.href=r}})},q=function(t,r){var o="REPLACE",i=(0,c.createLocation)(t,r,O(),F.location);x.confirmTransitionTo(i,o,g,function(t){if(t){var r=k(i),a=i.key,u=i.state;if(n)if(e.replaceState({key:a,state:u},null,r),m)window.location.replace(r);else{var c=A.indexOf(F.location.key);c!==-1&&(A[c]=i.key),T({action:o,location:i})}else window.location.replace(r)}})},U=function(t){e.go(t)},H=function(){return U(-1)},W=function(){return U(1)},N=0,I=function(t){N+=t,1===N?((0,h.addEventListener)(window,d,j),r&&(0,h.addEventListener)(window,y,E)):0===N&&((0,h.removeEventListener)(window,d,j),r&&(0,h.removeEventListener)(window,y,E))},$=!1,B=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return $||(I(1),$=!0),function(){return $&&($=!1,I(-1)),e()}},D=function(t){var e=x.appendListener(t);return I(1),function(){return I(-1),e()}},F={length:e.length,action:"POP",location:C,createHref:k,push:L,replace:q,go:U,goBack:H,goForward:W,block:B,listen:D};return F};e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!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(4),a=(r(i),n(13)),u=r(a),c=n(11),s=n(3),f=n(12),l=r(f),p=n(10),h=n(9),d="hashchange",y={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,s.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:s.stripLeadingSlash,decodePath:s.addLeadingSlash},slash:{encodePath:s.addLeadingSlash,decodePath:s.addLeadingSlash}},v=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},m=function(t){return window.location.hash=t},b=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.canUseDOM?void 0:(0,u.default)(!1);var e=window.history,n=((0,h.supportsGoWithoutReloadUsingHash)(),t.basename),r=void 0===n?"":n,i=t.getUserConfirmation,a=void 0===i?h.getConfirmation:i,f=t.hashType,g=void 0===f?"slash":f,w=y[g],P=w.encodePath,_=w.decodePath,O=function(){var t=_(v());return r&&(t=(0,s.stripPrefix)(t,r)),(0,s.parsePath)(t)},x=(0,l.default)(),T=function(t){o(G,t),G.length=e.length,x.notifyListeners(G.location,G.action)},j=!1,E=null,R=function(){var t=v(),e=P(t);if(t!==e)b(e);else{var n=O(),r=G.location;if(!j&&(0,c.locationsAreEqual)(r,n))return;if(E===(0,s.createPath)(n))return;E=null,M(n)}},M=function(t){j?(j=!1,T()):!function(){var e="POP";x.confirmTransitionTo(t,e,a,function(n){n?T({action:e,location:t}):S(t)})}()},S=function(t){var e=G.location,n=L.lastIndexOf((0,s.createPath)(e));n===-1&&(n=0);var r=L.lastIndexOf((0,s.createPath)(t));r===-1&&(r=0);var o=n-r;o&&(j=!0,W(o))},C=v(),A=P(C);C!==A&&b(A);var k=O(),L=[(0,s.createPath)(k)],q=function(t){return"#"+P(r+(0,s.createPath)(t))},U=function(t,e){var n="PUSH",o=(0,c.createLocation)(t,void 0,void 0,G.location);x.confirmTransitionTo(o,n,a,function(t){if(t){var e=(0,s.createPath)(o),i=P(r+e),a=v()!==i;if(a){E=e,m(i);var u=L.lastIndexOf((0,s.createPath)(G.location)),c=L.slice(0,u===-1?0:u+1);c.push(e),L=c,T({action:n,location:o})}else T()}})},H=function(t,e){var n="REPLACE",o=(0,c.createLocation)(t,void 0,void 0,G.location);x.confirmTransitionTo(o,n,a,function(t){if(t){var e=(0,s.createPath)(o),i=P(r+e),a=v()!==i;a&&(E=e,b(i));var u=L.indexOf((0,s.createPath)(G.location));u!==-1&&(L[u]=e),T({action:n,location:o})}})},W=function(t){e.go(t)},N=function(){return W(-1)},I=function(){return W(1)},$=0,B=function(t){$+=t,1===$?(0,h.addEventListener)(window,d,R):0===$&&(0,h.removeEventListener)(window,d,R)},D=!1,F=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return D||(B(1),D=!0),function(){return D&&(D=!1,B(-1)),e()}},K=function(t){var e=x.appendListener(t);return B(1),function(){return B(-1),e()}},G={length:e.length,action:"POP",location:k,createHref:q,push:U,replace:H,go:W,goBack:N,goForward:I,block:F,listen:K};return G};e.default=g},function(t,e){"use strict";var n=function(t){return"/"===t.charAt(0)},r=function(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()},o=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],o=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?r(i,p):".."===h?(r(i,p),l++):l&&(r(i,p),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d};t.exports=o},function(t,e){"use strict";e.__esModule=!0;var n="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},r=function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return!(!Array.isArray(r)||e.length!==r.length)&&e.every(function(e,n){return t(e,r[n])});var o="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof r?"undefined":n(r);if(o!==i)return!1;if("object"===o){var a=e.valueOf(),u=r.valueOf();if(a!==e||u!==r)return t(a,u);var c=Object.keys(e),s=Object.keys(r);return c.length===s.length&&c.every(function(n){return t(e[n],r[n])})}return!1};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),s=n(40),f=r(s),l=n(5),p=r(l),h=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.history=(0,f.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(p.default,{history:this.history,children:this.props.children})},e}(c.default.Component);h.propTypes={initialEntries:u.PropTypes.array,initialIndex:u.PropTypes.number,getUserConfirmation:u.PropTypes.func,keyLength:u.PropTypes.number,children:u.PropTypes.node},e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),s=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){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}(c.default.Component);s.contextTypes={router:u.PropTypes.shape({block:u.PropTypes.func.isRequired}).isRequired},s.propTypes={when:u.PropTypes.bool,message:u.PropTypes.oneOfType([u.PropTypes.func,u.PropTypes.string]).isRequired},s.defaultProps={when:!0},e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),s=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){this.context.router.staticContext&&this.perform()},e.prototype.componentDidMount=function(){this.context.router.staticContext||this.perform()},e.prototype.perform=function(){var t=this.context.router,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(c.default.Component);s.contextTypes={router:u.PropTypes.shape({push:u.PropTypes.func.isRequired,replace:u.PropTypes.func.isRequired,staticContext:u.PropTypes.object}).isRequired},s.propTypes={push:u.PropTypes.bool,to:u.PropTypes.oneOfType([u.PropTypes.string,u.PropTypes.object])},s.defaultProps={push:!1},e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=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},c=n(2),s=r(c),f=n(6),l=r(f),p=function(t,e){var n=e.computedMatch,r=e.path,o=e.exact,i=e.strict;return n||(0,l.default)(t.location.pathname,r,{exact:o,strict:i})},h=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getChildContext=function(){return{router:this.router}},e.prototype.componentWillMount=function(){var t=this,e=this.context.router;this.router=u({},e,{match:p(e,this.props)}),this.unlisten=e.listen(function(){u(t.router,e,{match:p(e,t.props)}),t.forceUpdate()})},e.prototype.componentWillReceiveProps=function(t){u(this.router,{match:p(this.router,t)})},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function t(){var e=this.props,n=e.children,r=e.component,t=e.render,o=u({},this.router);return r?o.match?s.default.createElement(r,o):null:t?o.match?t(o):null:n?"function"==typeof n?n(o):!Array.isArray(n)||n.length?s.default.Children.only(n):null:null},e}(s.default.Component);h.contextTypes={router:c.PropTypes.shape({listen:c.PropTypes.func.isRequired}).isRequired},h.propTypes={computedMatch:c.PropTypes.object,path:c.PropTypes.string,exact:c.PropTypes.bool,strict:c.PropTypes.bool,component:c.PropTypes.func,render:c.PropTypes.func,children:c.PropTypes.oneOfType([c.PropTypes.func,c.PropTypes.node])},h.childContextTypes={router:c.PropTypes.object.isRequired},e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}e.__esModule=!0;var c=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},s=n(14),f=r(s),l=n(2),p=r(l),h=n(7),d=n(5),y=r(d),v=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}},m=function(t,e){return t?c({},e,{pathname:(0,h.addLeadingSlash)(t)+e.pathname}):e},b=function(t,e){if(!t)return e;var n=(0,h.addLeadingSlash)(t);e.pathname;return 0!==e.pathname.indexOf(n)?e:c({},e,{pathname:e.pathname.substr(n.length)})},g=function(t){return"string"==typeof t?(0,h.parsePath)(t):v(t)},w=function(t){return"string"==typeof t?t:(0,h.createPath)(t)},P=function(t){return function(){(0,f.default)(!1,"You cannot %s with <StaticRouter>",t)}},_=function(){},O=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=r=a(this,t.call.apply(t,[this].concat(c))),r.createHref=function(t){return(0,h.addLeadingSlash)(r.props.basename+w(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=m(n,g(t)),o.url=w(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=m(n,g(t)),o.url=w(o.location)},r.handleListen=function(){return _},o=n,a(r,o)}return u(e,t),e.prototype.render=function(){var t=this.props,e=t.basename,n=t.context,r=t.location,i=o(t,["basename","context","location"]),a={staticContext:n,createHref:this.createHref,action:"POP",location:b(e,g(r)),push:this.handlePush,replace:this.handleReplace,go:P("go"),goBack:P("goBack"),goForward:P("goForward"),listen:this.handleListen};return p.default.createElement(y.default,c({},i,{history:a}))},e}(p.default.Component);O.propTypes={
basename:l.PropTypes.string,context:l.PropTypes.object.isRequired,location:l.PropTypes.oneOfType([l.PropTypes.string,l.PropTypes.object])},O.defaultProps={basename:"",location:"/"},e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=n(2),c=r(u),s=n(6),f=r(s),l=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.state={location:null},a=n,i(r,a)}return a(e,t),e.prototype.componentWillMount=function(){var t=this,e=this.context.router;this.setState({location:e.location}),this.unlisten=e.listen(function(){t.setState({location:e.location})})},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){for(var t=this.props.children,e=this.state.location,n=c.default.Children.toArray(t),r=void 0,o=void 0,i=0,a=n.length;null==o&&i<a;++i)r=n[i],o=(0,f.default)(e.pathname,r.props.path,r.props);return o?c.default.cloneElement(r,{computedMatch:o}):null},e}(c.default.Component);l.contextTypes={router:u.PropTypes.shape({listen:u.PropTypes.func.isRequired}).isRequired},l.propTypes={children:u.PropTypes.node},e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}e.__esModule=!0;var u=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},c=n(2),s=r(c),f=function(t){var e,n;return n=e=function(e){function n(){return o(this,n),i(this,e.apply(this,arguments))}return a(n,e),n.prototype.componentWillMount=function(){var t=this;this.unlisten=this.context.router.listen(function(){return t.forceUpdate()})},n.prototype.componentWillUnmount=function(){this.unlisten()},n.prototype.render=function(){return s.default.createElement(t,u({},this.props,this.context.router))},n}(s.default.Component),e.displayName="withRouter("+(t.displayName||t.name)+")",e.contextTypes={router:c.PropTypes.shape({listen:c.PropTypes.func.isRequired}).isRequired},n};e.default=f},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(44),a=r(i),u=n(45),c=r(u),s=n(7);e.createLocation=function(t,e,n,r){var i=void 0;return"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)),i.key=n,r&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.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";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},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(15),a=(r(i),n(7)),u=n(39),c=n(41),s=r(c),f=function(t,e,n){return Math.min(Math.max(t,e),n)},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,i=t.initialIndex,c=void 0===i?0:i,l=t.keyLength,p=void 0===l?6:l,h=(0,s.default)(),d=function(t){o(E,t),E.length=E.entries.length,h.notifyListeners(E.location,E.action)},y=function(){return Math.random().toString(36).substr(2,p)},v=f(c,0,r.length-1),m=r.map(function(t,e){return"string"==typeof t?(0,u.createLocation)(t,void 0,e?y():void 0):(0,u.createLocation)(t,void 0,e?t.key||y():void 0)}),b=a.createPath,g=function(t,n){var r="PUSH",o=(0,u.createLocation)(t,n,y(),E.location);h.confirmTransitionTo(o,r,e,function(t){if(t){var e=E.index,n=e+1,i=E.entries.slice(0);i.length>n?i.splice(n,i.length-n,o):i.push(o),d({action:r,location:o,index:n,entries:i})}})},w=function(t,n){var r="REPLACE",o=(0,u.createLocation)(t,n,y(),E.location);h.confirmTransitionTo(o,r,e,function(t){t&&(E.entries[E.index]=o,d({action:r,location:o}))})},P=function(t){var n=f(E.index+t,0,E.entries.length-1),r="POP",o=E.entries[n];h.confirmTransitionTo(o,r,e,function(t){t?d({action:r,location:o,index:n}):d()})},_=function(){return P(-1)},O=function(){return P(1)},x=function(t){var e=E.index+t;return e>=0&&e<E.entries.length},T=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h.setPrompt(t)},j=function(t){return h.appendListener(t)},E={length:m.length,action:"POP",location:m[v],index:v,entries:m,createHref:b,push:g,replace:w,go:P,goBack:_,goForward:O,canGo:x,block:T,listen:j};return E};e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(15),i=(r(o),function(){var t=null,e=function(e){return t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(i!==!1)}else o(!0)},r=[],o=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})}},i=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)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:o,notifyListeners:i}});e.default=i},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},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 f=n[0],l=n[1],p=n.index;if(a+=t.slice(i,p),i=p+f.length,l)a+=l[1];else{var h=t[i],d=n[2],y=n[3],v=n[4],m=n[5],g=n[6],w=n[7];a&&(r.push(a),a="");var P=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,O="?"===g||"*"===g,x=n[2]||u,T=v||m;r.push({name:y||o++,prefix:d||"",delimiter:x,optional:O,repeat:_,partial:P,asterisk:!!w,pattern:T?s(T):w?".*":"[^"+c(x)+"]+?"})}}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,f=0;f<t.length;f++){var l=t[f];if("string"!=typeof l){var p,h=u[l.name];if(null==h){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(m(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(p=s(h[d]),!e[f].test(p))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(0===d?l.prefix:l.delimiter)+p}}else{if(p=l.asterisk?a(h):s(h),!e[f].test(p))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+p+'"');o+=l.prefix+p}}else o+=l}return o}}function c(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t.sensitive?"":"i"}function p(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 f(t,e)}function h(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(v(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",l(n));return f(i,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=n.end!==!1,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=c(u);else{var s=c(u.prefix),p="(?:"+u.pattern+")";e.push(u),u.repeat&&(p+="(?:"+s+p+")*"),p=u.optional?u.partial?s+"("+p+")?":"(?:"+s+"("+p+"))?":s+"("+p+")",i+=p}}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+"|$)",f(new RegExp("^"+i,l(n)),e)}function v(t,e,n){return m(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?p(t,e):m(t)?h(t,e,n):d(t,e,n)}var m=n(42);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){"use strict";var n=function(t){return"/"===t.charAt(0)},r=function(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()},o=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],o=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?r(i,p):".."===h?(r(i,p),l++):l&&(r(i,p),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d};t.exports=o},function(t,e){"use strict";e.__esModule=!0;var n="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},r=function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return!(!Array.isArray(r)||e.length!==r.length)&&e.every(function(e,n){return t(e,r[n])});var o="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof r?"undefined":n(r);if(o!==i)return!1;if("object"===o){var a=e.valueOf(),u=r.valueOf();if(a!==e||u!==r)return t(a,u);var c=Object.keys(e),s=Object.keys(r);return c.length===s.length&&c.every(function(n){return t(e[n],r[n])})}return!1};e.default=r}])});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc