react-router 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/withRouter.js CHANGED
@@ -2,7 +2,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2
2
 
3
3
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
4
4
 
5
- import React, { PropTypes } from 'react';
5
+ import React from 'react';
6
+ import PropTypes from 'prop-types';
6
7
  import hoistStatics from 'hoist-non-react-statics';
7
8
  import Route from './Route';
8
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Declarative routing for React",
5
5
  "repository": "ReactTraining/react-router",
6
6
  "license": "MIT",
@@ -63,35 +63,35 @@ return /******/ (function(modules) { // webpackBootstrap
63
63
 
64
64
  var _MemoryRouter3 = _interopRequireDefault(_MemoryRouter2);
65
65
 
66
- var _Prompt2 = __webpack_require__(12);
66
+ var _Prompt2 = __webpack_require__(16);
67
67
 
68
68
  var _Prompt3 = _interopRequireDefault(_Prompt2);
69
69
 
70
- var _Redirect2 = __webpack_require__(13);
70
+ var _Redirect2 = __webpack_require__(17);
71
71
 
72
72
  var _Redirect3 = _interopRequireDefault(_Redirect2);
73
73
 
74
- var _Route2 = __webpack_require__(14);
74
+ var _Route2 = __webpack_require__(18);
75
75
 
76
76
  var _Route3 = _interopRequireDefault(_Route2);
77
77
 
78
- var _Router2 = __webpack_require__(10);
78
+ var _Router2 = __webpack_require__(14);
79
79
 
80
80
  var _Router3 = _interopRequireDefault(_Router2);
81
81
 
82
- var _StaticRouter2 = __webpack_require__(18);
82
+ var _StaticRouter2 = __webpack_require__(22);
83
83
 
84
84
  var _StaticRouter3 = _interopRequireDefault(_StaticRouter2);
85
85
 
86
- var _Switch2 = __webpack_require__(19);
86
+ var _Switch2 = __webpack_require__(23);
87
87
 
88
88
  var _Switch3 = _interopRequireDefault(_Switch2);
89
89
 
90
- var _matchPath2 = __webpack_require__(15);
90
+ var _matchPath2 = __webpack_require__(19);
91
91
 
92
92
  var _matchPath3 = _interopRequireDefault(_matchPath2);
93
93
 
94
- var _withRouter2 = __webpack_require__(20);
94
+ var _withRouter2 = __webpack_require__(24);
95
95
 
96
96
  var _withRouter3 = _interopRequireDefault(_withRouter2);
97
97
 
@@ -119,15 +119,15 @@ return /******/ (function(modules) { // webpackBootstrap
119
119
 
120
120
  var _react2 = _interopRequireDefault(_react);
121
121
 
122
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
122
+ var _propTypes = __webpack_require__(3);
123
123
 
124
124
  var _propTypes2 = _interopRequireDefault(_propTypes);
125
125
 
126
- var _createMemoryHistory = __webpack_require__(3);
126
+ var _createMemoryHistory = __webpack_require__(7);
127
127
 
128
128
  var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory);
129
129
 
130
- var _Router = __webpack_require__(10);
130
+ var _Router = __webpack_require__(14);
131
131
 
132
132
  var _Router2 = _interopRequireDefault(_Router);
133
133
 
@@ -174,6 +174,205 @@ return /******/ (function(modules) { // webpackBootstrap
174
174
 
175
175
  /***/ },
176
176
  /* 3 */
177
+ /***/ function(module, exports, __webpack_require__) {
178
+
179
+ /**
180
+ * Copyright 2013-present, Facebook, Inc.
181
+ * All rights reserved.
182
+ *
183
+ * This source code is licensed under the BSD-style license found in the
184
+ * LICENSE file in the root directory of this source tree. An additional grant
185
+ * of patent rights can be found in the PATENTS file in the same directory.
186
+ */
187
+
188
+ if (false) {
189
+ var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
190
+ Symbol.for &&
191
+ Symbol.for('react.element')) ||
192
+ 0xeac7;
193
+
194
+ var isValidElement = function(object) {
195
+ return typeof object === 'object' &&
196
+ object !== null &&
197
+ object.$$typeof === REACT_ELEMENT_TYPE;
198
+ };
199
+
200
+ // By explicitly using `prop-types` you are opting into new development behavior.
201
+ // http://fb.me/prop-types-in-prod
202
+ var throwOnDirectAccess = true;
203
+ module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);
204
+ } else {
205
+ // By explicitly using `prop-types` you are opting into new production behavior.
206
+ // http://fb.me/prop-types-in-prod
207
+ module.exports = __webpack_require__(4)();
208
+ }
209
+
210
+
211
+ /***/ },
212
+ /* 4 */
213
+ /***/ function(module, exports, __webpack_require__) {
214
+
215
+ /**
216
+ * Copyright 2013-present, Facebook, Inc.
217
+ * All rights reserved.
218
+ *
219
+ * This source code is licensed under the BSD-style license found in the
220
+ * LICENSE file in the root directory of this source tree. An additional grant
221
+ * of patent rights can be found in the PATENTS file in the same directory.
222
+ */
223
+
224
+ 'use strict';
225
+
226
+ var emptyFunction = __webpack_require__(5);
227
+ var invariant = __webpack_require__(6);
228
+
229
+ module.exports = function() {
230
+ // Important!
231
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
232
+ function shim() {
233
+ invariant(
234
+ false,
235
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
236
+ 'Use PropTypes.checkPropTypes() to call them. ' +
237
+ 'Read more at http://fb.me/use-check-prop-types'
238
+ );
239
+ };
240
+ shim.isRequired = shim;
241
+ function getShim() {
242
+ return shim;
243
+ };
244
+ var ReactPropTypes = {
245
+ array: shim,
246
+ bool: shim,
247
+ func: shim,
248
+ number: shim,
249
+ object: shim,
250
+ string: shim,
251
+ symbol: shim,
252
+
253
+ any: shim,
254
+ arrayOf: getShim,
255
+ element: shim,
256
+ instanceOf: getShim,
257
+ node: shim,
258
+ objectOf: getShim,
259
+ oneOf: getShim,
260
+ oneOfType: getShim,
261
+ shape: getShim
262
+ };
263
+
264
+ ReactPropTypes.checkPropTypes = emptyFunction;
265
+ ReactPropTypes.PropTypes = ReactPropTypes;
266
+
267
+ return ReactPropTypes;
268
+ };
269
+
270
+
271
+ /***/ },
272
+ /* 5 */
273
+ /***/ function(module, exports) {
274
+
275
+ "use strict";
276
+
277
+ /**
278
+ * Copyright (c) 2013-present, Facebook, Inc.
279
+ * All rights reserved.
280
+ *
281
+ * This source code is licensed under the BSD-style license found in the
282
+ * LICENSE file in the root directory of this source tree. An additional grant
283
+ * of patent rights can be found in the PATENTS file in the same directory.
284
+ *
285
+ *
286
+ */
287
+
288
+ function makeEmptyFunction(arg) {
289
+ return function () {
290
+ return arg;
291
+ };
292
+ }
293
+
294
+ /**
295
+ * This function accepts and discards inputs; it has no side effects. This is
296
+ * primarily useful idiomatically for overridable function endpoints which
297
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
298
+ */
299
+ var emptyFunction = function emptyFunction() {};
300
+
301
+ emptyFunction.thatReturns = makeEmptyFunction;
302
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
303
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
304
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null);
305
+ emptyFunction.thatReturnsThis = function () {
306
+ return this;
307
+ };
308
+ emptyFunction.thatReturnsArgument = function (arg) {
309
+ return arg;
310
+ };
311
+
312
+ module.exports = emptyFunction;
313
+
314
+ /***/ },
315
+ /* 6 */
316
+ /***/ function(module, exports, __webpack_require__) {
317
+
318
+ /**
319
+ * Copyright (c) 2013-present, Facebook, Inc.
320
+ * All rights reserved.
321
+ *
322
+ * This source code is licensed under the BSD-style license found in the
323
+ * LICENSE file in the root directory of this source tree. An additional grant
324
+ * of patent rights can be found in the PATENTS file in the same directory.
325
+ *
326
+ */
327
+
328
+ 'use strict';
329
+
330
+ /**
331
+ * Use invariant() to assert state which your program assumes to be true.
332
+ *
333
+ * Provide sprintf-style format (only %s is supported) and arguments
334
+ * to provide information about what broke and what you were
335
+ * expecting.
336
+ *
337
+ * The invariant message will be stripped in production, but the invariant
338
+ * will remain to ensure logic does not differ in production.
339
+ */
340
+
341
+ var validateFormat = function validateFormat(format) {};
342
+
343
+ if (false) {
344
+ validateFormat = function validateFormat(format) {
345
+ if (format === undefined) {
346
+ throw new Error('invariant requires an error message argument');
347
+ }
348
+ };
349
+ }
350
+
351
+ function invariant(condition, format, a, b, c, d, e, f) {
352
+ validateFormat(format);
353
+
354
+ if (!condition) {
355
+ var error;
356
+ if (format === undefined) {
357
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
358
+ } else {
359
+ var args = [a, b, c, d, e, f];
360
+ var argIndex = 0;
361
+ error = new Error(format.replace(/%s/g, function () {
362
+ return args[argIndex++];
363
+ }));
364
+ error.name = 'Invariant Violation';
365
+ }
366
+
367
+ error.framesToPop = 1; // we don't care about invariant's own frame
368
+ throw error;
369
+ }
370
+ }
371
+
372
+ module.exports = invariant;
373
+
374
+ /***/ },
375
+ /* 7 */
177
376
  /***/ function(module, exports, __webpack_require__) {
178
377
 
179
378
  'use strict';
@@ -184,15 +383,15 @@ return /******/ (function(modules) { // webpackBootstrap
184
383
 
185
384
  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; };
186
385
 
187
- var _warning = __webpack_require__(4);
386
+ var _warning = __webpack_require__(8);
188
387
 
189
388
  var _warning2 = _interopRequireDefault(_warning);
190
389
 
191
- var _PathUtils = __webpack_require__(5);
390
+ var _PathUtils = __webpack_require__(9);
192
391
 
193
- var _LocationUtils = __webpack_require__(6);
392
+ var _LocationUtils = __webpack_require__(10);
194
393
 
195
- var _createTransitionManager = __webpack_require__(9);
394
+ var _createTransitionManager = __webpack_require__(13);
196
395
 
197
396
  var _createTransitionManager2 = _interopRequireDefault(_createTransitionManager);
198
397
 
@@ -348,7 +547,7 @@ return /******/ (function(modules) { // webpackBootstrap
348
547
  exports.default = createMemoryHistory;
349
548
 
350
549
  /***/ },
351
- /* 4 */
550
+ /* 8 */
352
551
  /***/ function(module, exports, __webpack_require__) {
353
552
 
354
553
  /**
@@ -414,7 +613,7 @@ return /******/ (function(modules) { // webpackBootstrap
414
613
 
415
614
 
416
615
  /***/ },
417
- /* 5 */
616
+ /* 9 */
418
617
  /***/ function(module, exports) {
419
618
 
420
619
  'use strict';
@@ -478,7 +677,7 @@ return /******/ (function(modules) { // webpackBootstrap
478
677
  };
479
678
 
480
679
  /***/ },
481
- /* 6 */
680
+ /* 10 */
482
681
  /***/ function(module, exports, __webpack_require__) {
483
682
 
484
683
  'use strict';
@@ -488,15 +687,15 @@ return /******/ (function(modules) { // webpackBootstrap
488
687
 
489
688
  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; };
490
689
 
491
- var _resolvePathname = __webpack_require__(7);
690
+ var _resolvePathname = __webpack_require__(11);
492
691
 
493
692
  var _resolvePathname2 = _interopRequireDefault(_resolvePathname);
494
693
 
495
- var _valueEqual = __webpack_require__(8);
694
+ var _valueEqual = __webpack_require__(12);
496
695
 
497
696
  var _valueEqual2 = _interopRequireDefault(_valueEqual);
498
697
 
499
- var _PathUtils = __webpack_require__(5);
698
+ var _PathUtils = __webpack_require__(9);
500
699
 
501
700
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
502
701
 
@@ -546,7 +745,7 @@ return /******/ (function(modules) { // webpackBootstrap
546
745
  };
547
746
 
548
747
  /***/ },
549
- /* 7 */
748
+ /* 11 */
550
749
  /***/ function(module, exports) {
551
750
 
552
751
  'use strict';
@@ -621,7 +820,7 @@ return /******/ (function(modules) { // webpackBootstrap
621
820
  module.exports = resolvePathname;
622
821
 
623
822
  /***/ },
624
- /* 8 */
823
+ /* 12 */
625
824
  /***/ function(module, exports) {
626
825
 
627
826
  'use strict';
@@ -670,14 +869,14 @@ return /******/ (function(modules) { // webpackBootstrap
670
869
  exports.default = valueEqual;
671
870
 
672
871
  /***/ },
673
- /* 9 */
872
+ /* 13 */
674
873
  /***/ function(module, exports, __webpack_require__) {
675
874
 
676
875
  'use strict';
677
876
 
678
877
  exports.__esModule = true;
679
878
 
680
- var _warning = __webpack_require__(4);
879
+ var _warning = __webpack_require__(8);
681
880
 
682
881
  var _warning2 = _interopRequireDefault(_warning);
683
882
 
@@ -760,7 +959,7 @@ return /******/ (function(modules) { // webpackBootstrap
760
959
  exports.default = createTransitionManager;
761
960
 
762
961
  /***/ },
763
- /* 10 */
962
+ /* 14 */
764
963
  /***/ function(module, exports, __webpack_require__) {
765
964
 
766
965
  'use strict';
@@ -769,11 +968,11 @@ return /******/ (function(modules) { // webpackBootstrap
769
968
 
770
969
  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; };
771
970
 
772
- var _warning = __webpack_require__(4);
971
+ var _warning = __webpack_require__(8);
773
972
 
774
973
  var _warning2 = _interopRequireDefault(_warning);
775
974
 
776
- var _invariant = __webpack_require__(11);
975
+ var _invariant = __webpack_require__(15);
777
976
 
778
977
  var _invariant2 = _interopRequireDefault(_invariant);
779
978
 
@@ -781,7 +980,7 @@ return /******/ (function(modules) { // webpackBootstrap
781
980
 
782
981
  var _react2 = _interopRequireDefault(_react);
783
982
 
784
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
983
+ var _propTypes = __webpack_require__(3);
785
984
 
786
985
  var _propTypes2 = _interopRequireDefault(_propTypes);
787
986
 
@@ -880,7 +1079,7 @@ return /******/ (function(modules) { // webpackBootstrap
880
1079
  exports.default = Router;
881
1080
 
882
1081
  /***/ },
883
- /* 11 */
1082
+ /* 15 */
884
1083
  /***/ function(module, exports, __webpack_require__) {
885
1084
 
886
1085
  /**
@@ -937,7 +1136,7 @@ return /******/ (function(modules) { // webpackBootstrap
937
1136
 
938
1137
 
939
1138
  /***/ },
940
- /* 12 */
1139
+ /* 16 */
941
1140
  /***/ function(module, exports, __webpack_require__) {
942
1141
 
943
1142
  'use strict';
@@ -948,7 +1147,7 @@ return /******/ (function(modules) { // webpackBootstrap
948
1147
 
949
1148
  var _react2 = _interopRequireDefault(_react);
950
1149
 
951
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
1150
+ var _propTypes = __webpack_require__(3);
952
1151
 
953
1152
  var _propTypes2 = _interopRequireDefault(_propTypes);
954
1153
 
@@ -1022,7 +1221,7 @@ return /******/ (function(modules) { // webpackBootstrap
1022
1221
  exports.default = Prompt;
1023
1222
 
1024
1223
  /***/ },
1025
- /* 13 */
1224
+ /* 17 */
1026
1225
  /***/ function(module, exports, __webpack_require__) {
1027
1226
 
1028
1227
  'use strict';
@@ -1033,7 +1232,7 @@ return /******/ (function(modules) { // webpackBootstrap
1033
1232
 
1034
1233
  var _react2 = _interopRequireDefault(_react);
1035
1234
 
1036
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
1235
+ var _propTypes = __webpack_require__(3);
1037
1236
 
1038
1237
  var _propTypes2 = _interopRequireDefault(_propTypes);
1039
1238
 
@@ -1106,7 +1305,7 @@ return /******/ (function(modules) { // webpackBootstrap
1106
1305
  exports.default = Redirect;
1107
1306
 
1108
1307
  /***/ },
1109
- /* 14 */
1308
+ /* 18 */
1110
1309
  /***/ function(module, exports, __webpack_require__) {
1111
1310
 
1112
1311
  'use strict';
@@ -1115,7 +1314,7 @@ return /******/ (function(modules) { // webpackBootstrap
1115
1314
 
1116
1315
  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; };
1117
1316
 
1118
- var _warning = __webpack_require__(4);
1317
+ var _warning = __webpack_require__(8);
1119
1318
 
1120
1319
  var _warning2 = _interopRequireDefault(_warning);
1121
1320
 
@@ -1123,11 +1322,11 @@ return /******/ (function(modules) { // webpackBootstrap
1123
1322
 
1124
1323
  var _react2 = _interopRequireDefault(_react);
1125
1324
 
1126
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
1325
+ var _propTypes = __webpack_require__(3);
1127
1326
 
1128
1327
  var _propTypes2 = _interopRequireDefault(_propTypes);
1129
1328
 
1130
- var _matchPath = __webpack_require__(15);
1329
+ var _matchPath = __webpack_require__(19);
1131
1330
 
1132
1331
  var _matchPath2 = _interopRequireDefault(_matchPath);
1133
1332
 
@@ -1246,14 +1445,14 @@ return /******/ (function(modules) { // webpackBootstrap
1246
1445
  exports.default = Route;
1247
1446
 
1248
1447
  /***/ },
1249
- /* 15 */
1448
+ /* 19 */
1250
1449
  /***/ function(module, exports, __webpack_require__) {
1251
1450
 
1252
1451
  'use strict';
1253
1452
 
1254
1453
  exports.__esModule = true;
1255
1454
 
1256
- var _pathToRegexp = __webpack_require__(16);
1455
+ var _pathToRegexp = __webpack_require__(20);
1257
1456
 
1258
1457
  var _pathToRegexp2 = _interopRequireDefault(_pathToRegexp);
1259
1458
 
@@ -1326,10 +1525,10 @@ return /******/ (function(modules) { // webpackBootstrap
1326
1525
  exports.default = matchPath;
1327
1526
 
1328
1527
  /***/ },
1329
- /* 16 */
1528
+ /* 20 */
1330
1529
  /***/ function(module, exports, __webpack_require__) {
1331
1530
 
1332
- var isarray = __webpack_require__(17)
1531
+ var isarray = __webpack_require__(21)
1333
1532
 
1334
1533
  /**
1335
1534
  * Expose `pathToRegexp`.
@@ -1758,7 +1957,7 @@ return /******/ (function(modules) { // webpackBootstrap
1758
1957
 
1759
1958
 
1760
1959
  /***/ },
1761
- /* 17 */
1960
+ /* 21 */
1762
1961
  /***/ function(module, exports) {
1763
1962
 
1764
1963
  module.exports = Array.isArray || function (arr) {
@@ -1767,7 +1966,7 @@ return /******/ (function(modules) { // webpackBootstrap
1767
1966
 
1768
1967
 
1769
1968
  /***/ },
1770
- /* 18 */
1969
+ /* 22 */
1771
1970
  /***/ function(module, exports, __webpack_require__) {
1772
1971
 
1773
1972
  'use strict';
@@ -1776,7 +1975,7 @@ return /******/ (function(modules) { // webpackBootstrap
1776
1975
 
1777
1976
  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; };
1778
1977
 
1779
- var _invariant = __webpack_require__(11);
1978
+ var _invariant = __webpack_require__(15);
1780
1979
 
1781
1980
  var _invariant2 = _interopRequireDefault(_invariant);
1782
1981
 
@@ -1784,13 +1983,13 @@ return /******/ (function(modules) { // webpackBootstrap
1784
1983
 
1785
1984
  var _react2 = _interopRequireDefault(_react);
1786
1985
 
1787
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
1986
+ var _propTypes = __webpack_require__(3);
1788
1987
 
1789
1988
  var _propTypes2 = _interopRequireDefault(_propTypes);
1790
1989
 
1791
- var _PathUtils = __webpack_require__(5);
1990
+ var _PathUtils = __webpack_require__(9);
1792
1991
 
1793
- var _Router = __webpack_require__(10);
1992
+ var _Router = __webpack_require__(14);
1794
1993
 
1795
1994
  var _Router2 = _interopRequireDefault(_Router);
1796
1995
 
@@ -1944,7 +2143,7 @@ return /******/ (function(modules) { // webpackBootstrap
1944
2143
  exports.default = StaticRouter;
1945
2144
 
1946
2145
  /***/ },
1947
- /* 19 */
2146
+ /* 23 */
1948
2147
  /***/ function(module, exports, __webpack_require__) {
1949
2148
 
1950
2149
  'use strict';
@@ -1955,15 +2154,15 @@ return /******/ (function(modules) { // webpackBootstrap
1955
2154
 
1956
2155
  var _react2 = _interopRequireDefault(_react);
1957
2156
 
1958
- var _propTypes = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"prop-types\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
2157
+ var _propTypes = __webpack_require__(3);
1959
2158
 
1960
2159
  var _propTypes2 = _interopRequireDefault(_propTypes);
1961
2160
 
1962
- var _warning = __webpack_require__(4);
2161
+ var _warning = __webpack_require__(8);
1963
2162
 
1964
2163
  var _warning2 = _interopRequireDefault(_warning);
1965
2164
 
1966
- var _matchPath = __webpack_require__(15);
2165
+ var _matchPath = __webpack_require__(19);
1967
2166
 
1968
2167
  var _matchPath2 = _interopRequireDefault(_matchPath);
1969
2168
 
@@ -2032,7 +2231,7 @@ return /******/ (function(modules) { // webpackBootstrap
2032
2231
  exports.default = Switch;
2033
2232
 
2034
2233
  /***/ },
2035
- /* 20 */
2234
+ /* 24 */
2036
2235
  /***/ function(module, exports, __webpack_require__) {
2037
2236
 
2038
2237
  'use strict';
@@ -2045,11 +2244,15 @@ return /******/ (function(modules) { // webpackBootstrap
2045
2244
 
2046
2245
  var _react2 = _interopRequireDefault(_react);
2047
2246
 
2048
- var _hoistNonReactStatics = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"hoist-non-react-statics\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
2247
+ var _propTypes = __webpack_require__(3);
2248
+
2249
+ var _propTypes2 = _interopRequireDefault(_propTypes);
2250
+
2251
+ var _hoistNonReactStatics = __webpack_require__(25);
2049
2252
 
2050
2253
  var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
2051
2254
 
2052
- var _Route = __webpack_require__(14);
2255
+ var _Route = __webpack_require__(18);
2053
2256
 
2054
2257
  var _Route2 = _interopRequireDefault(_Route);
2055
2258
 
@@ -2079,6 +2282,62 @@ return /******/ (function(modules) { // webpackBootstrap
2079
2282
 
2080
2283
  exports.default = withRouter;
2081
2284
 
2285
+ /***/ },
2286
+ /* 25 */
2287
+ /***/ function(module, exports) {
2288
+
2289
+ /**
2290
+ * Copyright 2015, Yahoo! Inc.
2291
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2292
+ */
2293
+ 'use strict';
2294
+
2295
+ var REACT_STATICS = {
2296
+ childContextTypes: true,
2297
+ contextTypes: true,
2298
+ defaultProps: true,
2299
+ displayName: true,
2300
+ getDefaultProps: true,
2301
+ mixins: true,
2302
+ propTypes: true,
2303
+ type: true
2304
+ };
2305
+
2306
+ var KNOWN_STATICS = {
2307
+ name: true,
2308
+ length: true,
2309
+ prototype: true,
2310
+ caller: true,
2311
+ arguments: true,
2312
+ arity: true
2313
+ };
2314
+
2315
+ var isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function';
2316
+
2317
+ module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
2318
+ if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
2319
+ var keys = Object.getOwnPropertyNames(sourceComponent);
2320
+
2321
+ /* istanbul ignore else */
2322
+ if (isGetOwnPropertySymbolsAvailable) {
2323
+ keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent));
2324
+ }
2325
+
2326
+ for (var i = 0; i < keys.length; ++i) {
2327
+ if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) {
2328
+ try {
2329
+ targetComponent[keys[i]] = sourceComponent[keys[i]];
2330
+ } catch (error) {
2331
+
2332
+ }
2333
+ }
2334
+ }
2335
+ }
2336
+
2337
+ return targetComponent;
2338
+ };
2339
+
2340
+
2082
2341
  /***/ }
2083
2342
  /******/ ])
2084
2343
  });
@@ -1 +1 @@
1
- !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.ReactRouter=e(require("react")):t.ReactRouter=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.MemoryRouter=void 0;var o=n(8),i=r(o),a=n(9),u=r(a),c=n(10),s=r(c),f=n(6),l=r(f),p=n(3),h=r(p),d=n(11),y=r(d),m=n(12),v=r(m),b=n(4),g=r(b),w=n(13),x=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=v.default,e.matchPath=g.default,e.withRouter=x.default},function(e,n){e.exports=t},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=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),n(7)),f=r(s),l=n(1),p=r(l),h=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),d=r(h),y=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={match:r.computeMatch(r.props.history.location.pathname)},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},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;null!=n&&1!==p.default.Children.count(n)?(0,f.default)(!1):void 0,this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?p.default.Children.only(t):null},e}(p.default.Component);y.contextTypes={router:d.default.object},y.childContextTypes={router:d.default.object.isRequired},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(17),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){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,u=n.strict,c=void 0!==u&&u,f=s(o,{end:a,strict:c}),l=f.re,p=f.keys,h=l.exec(t);if(!h)return null;var d=h[0],y=h.slice(1),m=t===d;return a&&!m?null:{path:o,url:"/"===o&&""===d?"/":d,isExact:m,params:p.reduce(function(t,e,n){return t[e.name]=y[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.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("#");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)),e=decodeURI(e),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=encodeURI(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){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),n(1)),f=r(s),l=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),p=r(l),h=n(4),d=r(h),y=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={match:r.computeMatch(r.props,r.context.router)},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},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=e.route;if(n)return n;var c=(r||u.location).pathname;return o?(0,d.default)(c,{path:o,strict:i,exact:a}):u.match},e.prototype.componentWillMount=function(){var t=this.props;t.component,t.render,t.children},e.prototype.componentWillReceiveProps=function(t,e){this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function t(){var e=this.state.match,n=this.props,r=n.children,o=n.component,t=n.render,i=this.context.router,a=i.history,u=i.route,c=i.staticContext,s=this.props.location||u.location,l={match:e,location:s,history:a,staticContext:c};return o?e?f.default.createElement(o,l):null:t?e?t(l):null:r?"function"==typeof r?r(l):!Array.isArray(r)||r.length?f.default.Children.only(r):null:null},e}(f.default.Component);y.contextTypes={router:p.default.shape({history:p.default.object.isRequired,route:p.default.object.isRequired,staticContext:p.default.object})},y.childContextTypes={router:p.default.object.isRequired},e.default=y},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";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(1),c=r(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),f=(r(s),n(15)),l=r(f),p=n(3),h=r(p),d=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,l.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(h.default,{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(1),c=r(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),f=r(s),l=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.history.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);l.defaultProps={when:!0},l.contextTypes={router:f.default.shape({history:f.default.shape({block:f.default.func.isRequired}).isRequired}).isRequired},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=n(1),c=r(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),f=r(s),l=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||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}(c.default.Component);l.defaultProps={push:!1},l.contextTypes={router:f.default.shape({history:f.default.shape({push:f.default.func.isRequired,replace:f.default.func.isRequired}).isRequired,staticContext:f.default.object}).isRequired},e.default=l},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(7),f=r(s),l=n(1),p=r(l),h=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),d=r(h),y=n(5),m=n(3),v=r(m),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?c({},e,{pathname:(0,y.addLeadingSlash)(t)+e.pathname}):e},w=function(t,e){if(!t)return e;var n=(0,y.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:c({},e,{pathname:e.pathname.substr(n.length)})},x=function(t){return"string"==typeof t?(0,y.parsePath)(t):b(t)},_=function(t){return"string"==typeof t?t:(0,y.createPath)(t)},O=function(t){return function(){(0,f.default)(!1)}},E=function(){},j=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,y.addLeadingSlash)(r.props.basename+_(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=g(n,x(t)),o.url=_(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=g(n,x(t)),o.url=_(o.location)},r.handleListen=function(){return E},r.handleBlock=function(){return E},o=n,a(r,o)}return u(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=o(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:w(e,x(n)),push:this.handlePush,replace:this.handleReplace,go:O("go"),goBack:O("goBack"),goForward:O("goForward"),listen:this.handleListen,block:this.handleBlock};return p.default.createElement(v.default,c({},r,{history:i}))},e}(p.default.Component);j.defaultProps={basename:"",location:"/"},j.childContextTypes={router:d.default.object.isRequired},e.default=j},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(1),c=r(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),f=r(s),l=n(2),p=(r(l),n(4)),h=r(p),d=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillReceiveProps=function(t){},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 c.default.Children.forEach(e,function(e){if(c.default.isValidElement(e)){var i=e.props,a=i.path,u=i.exact,s=i.strict,f=i.from,l=a||f;null==r&&(o=e,r=l?(0,h.default)(n.pathname,{path:l,exact:u,strict:s}):t.match)}}),r?c.default.cloneElement(o,{location:n,computedMatch:r}):null},e}(c.default.Component);d.contextTypes={router:f.default.shape({route:f.default.object.isRequired}).isRequired},e.default=d},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=n(1),u=r(a),c=n(!function(){var t=new Error('Cannot find module "hoist-non-react-statics"');throw t.code="MODULE_NOT_FOUND",t}()),s=r(c),f=n(6),l=r(f),p=function(t){var e=function(e){var n=e.wrappedComponentRef,r=o(e,["wrappedComponentRef"]);return u.default.createElement(l.default,{render:function(e){return u.default.createElement(t,i({},r,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,(0,s.default)(e,t)};e.default=p},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(19),a=r(i),u=n(20),c=r(u),s=n(5);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},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(2),u=r(a),c=n(5),s=n(14),f=n(16),l=r(f),p=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,f=void 0===a?0:a,h=t.keyLength,d=void 0===h?6:h,y=(0,l.default)(),m=function(t){i(C,t),C.length=C.entries.length,y.notifyListeners(C.location,C.action)},v=function(){return Math.random().toString(36).substr(2,d)},b=p(f,0,r.length-1),g=r.map(function(t){return"string"==typeof t?(0,s.createLocation)(t,void 0,v()):(0,s.createLocation)(t,void 0,t.key||v())}),w=c.createPath,x=function(t,n){(0,u.default)(!("object"===("undefined"==typeof 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="PUSH",i=(0,s.createLocation)(t,n,v(),C.location);y.confirmTransitionTo(i,r,e,function(t){if(t){var e=C.index,n=e+1,o=C.entries.slice(0);o.length>n?o.splice(n,o.length-n,i):o.push(i),m({action:r,location:i,index:n,entries:o})}})},_=function(t,n){(0,u.default)(!("object"===("undefined"==typeof 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="REPLACE",i=(0,s.createLocation)(t,n,v(),C.location);y.confirmTransitionTo(i,r,e,function(t){t&&(C.entries[C.index]=i,m({action:r,location:i}))})},O=function(t){var n=p(C.index+t,0,C.entries.length-1),r="POP",o=C.entries[n];y.confirmTransitionTo(o,r,e,function(t){t?m({action:r,location:o,index:n}):m()})},E=function(){return O(-1)},j=function(){return O(1)},R=function(t){var e=C.index+t;return e>=0&&e<C.entries.length},M=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(t)},P=function(t){return y.appendListener(t)},C={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:w,push:x,replace:_,go:O,goBack:E,goForward:j,canGo:R,block:M,listen:P};return C};e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(2),i=r(o),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(a!==!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})}},a=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:a}};e.default=a},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],m=n[4],v=n[5],g=n[6],w=n[7];a&&(r.push(a),a="");var x=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,O="?"===g||"*"===g,E=n[2]||u,j=m||v;r.push({name:y||o++,prefix:d||"",delimiter:E,optional:O,repeat:_,partial:x,asterisk:!!w,pattern:j?s(j):w?".*":"[^"+c(E)+"]+?"})}}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(v(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(m(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){v(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 m(t,e,n){return v(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?p(t,e):v(t)?h(t,e,n):d(t,e,n)}var v=n(18);t.exports=m,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){"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}])});
1
+ !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.ReactRouter=e(require("react")):t.ReactRouter=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.MemoryRouter=void 0;var o=n(9),i=r(o),a=n(10),u=r(a),c=n(11),s=r(c),f=n(7),l=r(f),p=n(4),h=r(p),d=n(12),y=r(d),m=n(13),v=r(m),b=n(5),g=r(b),x=n(14),w=r(x);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=v.default,e.matchPath=g.default,e.withRouter=w.default},function(t,e,n){t.exports=n(23)()},function(e,n){e.exports=t},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=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(3),s=(r(c),n(8)),f=r(s),l=n(2),p=r(l),h=n(1),d=r(h),y=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={match:r.computeMatch(r.props.history.location.pathname)},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},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;null!=n&&1!==p.default.Children.count(n)?(0,f.default)(!1):void 0,this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?p.default.Children.only(t):null},e}(p.default.Component);y.contextTypes={router:d.default.object},y.childContextTypes={router:d.default.object.isRequired},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(21),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){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,u=n.strict,c=void 0!==u&&u,f=s(o,{end:a,strict:c}),l=f.re,p=f.keys,h=l.exec(t);if(!h)return null;var d=h[0],y=h.slice(1),m=t===d;return a&&!m?null:{path:o,url:"/"===o&&""===d?"/":d,isExact:m,params:p.reduce(function(t,e,n){return t[e.name]=y[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.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("#");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)),e=decodeURI(e),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=encodeURI(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){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(3),s=(r(c),n(2)),f=r(s),l=n(1),p=r(l),h=n(5),d=r(h),y=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={match:r.computeMatch(r.props,r.context.router)},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},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=e.route;if(n)return n;var c=(r||u.location).pathname;return o?(0,d.default)(c,{path:o,strict:i,exact:a}):u.match},e.prototype.componentWillMount=function(){var t=this.props;t.component,t.render,t.children},e.prototype.componentWillReceiveProps=function(t,e){this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function t(){var e=this.state.match,n=this.props,r=n.children,o=n.component,t=n.render,i=this.context.router,a=i.history,u=i.route,c=i.staticContext,s=this.props.location||u.location,l={match:e,location:s,history:a,staticContext:c};return o?e?f.default.createElement(o,l):null:t?e?t(l):null:r?"function"==typeof r?r(l):!Array.isArray(r)||r.length?f.default.Children.only(r):null:null},e}(f.default.Component);y.contextTypes={router:p.default.shape({history:p.default.object.isRequired,route:p.default.object.isRequired,staticContext:p.default.object})},y.childContextTypes={router:p.default.object.isRequired},e.default=y},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";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(1),f=(r(s),n(18)),l=r(f),p=n(4),h=r(p),d=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,l.default)(r.props),a=n,i(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(h.default,{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),s=n(1),f=r(s),l=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.history.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);l.defaultProps={when:!0},l.contextTypes={router:f.default.shape({history:f.default.shape({block:f.default.func.isRequired}).isRequired}).isRequired},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=n(2),c=r(u),s=n(1),f=r(s),l=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||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}(c.default.Component);l.defaultProps={push:!1},l.contextTypes={router:f.default.shape({history:f.default.shape({push:f.default.func.isRequired,replace:f.default.func.isRequired}).isRequired,staticContext:f.default.object}).isRequired},e.default=l},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(8),f=r(s),l=n(2),p=r(l),h=n(1),d=r(h),y=n(6),m=n(4),v=r(m),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?c({},e,{pathname:(0,y.addLeadingSlash)(t)+e.pathname}):e},x=function(t,e){if(!t)return e;var n=(0,y.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:c({},e,{pathname:e.pathname.substr(n.length)})},w=function(t){return"string"==typeof t?(0,y.parsePath)(t):b(t)},O=function(t){return"string"==typeof t?t:(0,y.createPath)(t)},_=function(t){return function(){(0,f.default)(!1)}},j=function(){},R=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,y.addLeadingSlash)(r.props.basename+O(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=O(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=O(o.location)},r.handleListen=function(){return j},r.handleBlock=function(){return j},o=n,a(r,o)}return u(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=o(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:x(e,w(n)),push:this.handlePush,replace:this.handleReplace,go:_("go"),goBack:_("goBack"),goForward:_("goForward"),listen:this.handleListen,block:this.handleBlock};return p.default.createElement(v.default,c({},r,{history:i}))},e}(p.default.Component);R.defaultProps={basename:"",location:"/"},R.childContextTypes={router:d.default.object.isRequired},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(1),f=r(s),l=n(3),p=(r(l),n(5)),h=r(p),d=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillReceiveProps=function(t){},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 c.default.Children.forEach(e,function(e){if(c.default.isValidElement(e)){var i=e.props,a=i.path,u=i.exact,s=i.strict,f=i.from,l=a||f;null==r&&(o=e,r=l?(0,h.default)(n.pathname,{path:l,exact:u,strict:s}):t.match)}}),r?c.default.cloneElement(o,{location:n,computedMatch:r}):null},e}(c.default.Component);d.contextTypes={router:f.default.shape({route:f.default.object.isRequired}).isRequired},e.default=d},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=n(2),u=r(a),c=n(1),s=(r(c),n(20)),f=r(s),l=n(7),p=r(l),h=function(t){var e=function(e){var n=e.wrappedComponentRef,r=o(e,["wrappedComponentRef"]);return u.default.createElement(p.default,{render:function(e){return u.default.createElement(t,i({},r,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,(0,f.default)(e,t)};e.default=h},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},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 f=[n,r,i,a,u,c],l=0;s=new Error(e.replace(/%s/g,function(){return f[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=r},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(24),a=r(i),u=n(25),c=r(u),s=n(6);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},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(3),u=r(a),c=n(6),s=n(17),f=n(19),l=r(f),p=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,f=void 0===a?0:a,h=t.keyLength,d=void 0===h?6:h,y=(0,l.default)(),m=function(t){i(M,t),M.length=M.entries.length,y.notifyListeners(M.location,M.action)},v=function(){return Math.random().toString(36).substr(2,d)},b=p(f,0,r.length-1),g=r.map(function(t){return"string"==typeof t?(0,s.createLocation)(t,void 0,v()):(0,s.createLocation)(t,void 0,t.key||v())}),x=c.createPath,w=function(t,n){(0,u.default)(!("object"===("undefined"==typeof 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="PUSH",i=(0,s.createLocation)(t,n,v(),M.location);y.confirmTransitionTo(i,r,e,function(t){if(t){var e=M.index,n=e+1,o=M.entries.slice(0);o.length>n?o.splice(n,o.length-n,i):o.push(i),m({action:r,location:i,index:n,entries:o})}})},O=function(t,n){(0,u.default)(!("object"===("undefined"==typeof 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="REPLACE",i=(0,s.createLocation)(t,n,v(),M.location);y.confirmTransitionTo(i,r,e,function(t){t&&(M.entries[M.index]=i,m({action:r,location:i}))})},_=function(t){var n=p(M.index+t,0,M.entries.length-1),r="POP",o=M.entries[n];y.confirmTransitionTo(o,r,e,function(t){t?m({action:r,location:o,index:n}):m()})},j=function(){return _(-1)},R=function(){return _(1)},P=function(t){var e=M.index+t;return e>=0&&e<M.entries.length},E=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(t)},T=function(t){return y.appendListener(t)},M={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:x,push:w,replace:O,go:_,goBack:j,goForward:R,canGo:P,block:E,listen:T};return M};e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(3),i=r(o),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(a!==!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})}},a=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:a}};e.default=a},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;t.exports=function(t,e,i){if("string"!=typeof e){var a=Object.getOwnPropertyNames(e);o&&(a=a.concat(Object.getOwnPropertySymbols(e)));for(var u=0;u<a.length;++u)if(!(n[a[u]]||r[a[u]]||i&&i[a[u]]))try{t[a[u]]=e[a[u]]}catch(t){}}return 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],m=n[4],v=n[5],g=n[6],x=n[7];a&&(r.push(a),a="");var w=null!=d&&null!=h&&h!==d,O="+"===g||"*"===g,_="?"===g||"*"===g,j=n[2]||u,R=m||v;r.push({name:y||o++,prefix:d||"",delimiter:j,optional:_,repeat:O,partial:w,asterisk:!!x,pattern:R?s(R):x?".*":"[^"+c(j)+"]+?"})}}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(v(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(m(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){v(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 m(t,e,n){return v(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?p(t,e):v(t)?h(t,e,n):d(t,e,n)}var v=n(22);t.exports=m,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";var r=n(15),o=n(16);t.exports=function(){function t(){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};return n.checkPropTypes=r,n.PropTypes=n,n}},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}])});
package/withRouter.js CHANGED
@@ -8,6 +8,10 @@ var _react = require('react');
8
8
 
9
9
  var _react2 = _interopRequireDefault(_react);
10
10
 
11
+ var _propTypes = require('prop-types');
12
+
13
+ var _propTypes2 = _interopRequireDefault(_propTypes);
14
+
11
15
  var _hoistNonReactStatics = require('hoist-non-react-statics');
12
16
 
13
17
  var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
@@ -36,7 +40,7 @@ var withRouter = function withRouter(Component) {
36
40
  C.displayName = 'withRouter(' + (Component.displayName || Component.name) + ')';
37
41
  C.WrappedComponent = Component;
38
42
  C.propTypes = {
39
- wrappedComponentRef: _react.PropTypes.func
43
+ wrappedComponentRef: _propTypes2.default.func
40
44
  };
41
45
 
42
46
  return (0, _hoistNonReactStatics2.default)(C, Component);