react 16.0.0-alpha → 16.0.0-alpha.4

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React (with addons) v16.0.0-alpha
2
+ * React (with addons) v16.0.0-alpha.4
3
3
  */
4
4
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
5
5
  /**
@@ -14,7 +14,7 @@
14
14
 
15
15
  'use strict';
16
16
 
17
- var ExecutionEnvironment = _dereq_(41);
17
+ var ExecutionEnvironment = _dereq_(43);
18
18
 
19
19
  /**
20
20
  * Generate a mapping of standard vendor prefixes using the defined style property and event name.
@@ -102,7 +102,7 @@ function getVendorPrefixedEventName(eventName) {
102
102
  }
103
103
 
104
104
  module.exports = getVendorPrefixedEventName;
105
- },{"41":41}],2:[function(_dereq_,module,exports){
105
+ },{"43":43}],2:[function(_dereq_,module,exports){
106
106
  /**
107
107
  * Copyright 2013-present, Facebook, Inc.
108
108
  * All rights reserved.
@@ -175,9 +175,9 @@ module.exports = KeyEscapeUtils;
175
175
 
176
176
  'use strict';
177
177
 
178
- var _prodInvariant = _dereq_(36);
178
+ var _prodInvariant = _dereq_(38);
179
179
 
180
- var invariant = _dereq_(44);
180
+ var invariant = _dereq_(46);
181
181
 
182
182
  /**
183
183
  * Static poolers. Several custom versions for each potential number of
@@ -273,7 +273,7 @@ var PooledClass = {
273
273
  };
274
274
 
275
275
  module.exports = PooledClass;
276
- },{"36":36,"44":44}],4:[function(_dereq_,module,exports){
276
+ },{"38":38,"46":46}],4:[function(_dereq_,module,exports){
277
277
  /**
278
278
  * Copyright 2013-present, Facebook, Inc.
279
279
  * All rights reserved.
@@ -286,39 +286,40 @@ module.exports = PooledClass;
286
286
 
287
287
  'use strict';
288
288
 
289
- var _assign = _dereq_(47);
290
-
291
- var ReactChildren = _dereq_(8);
292
- var ReactComponent = _dereq_(10);
293
- var ReactPureComponent = _dereq_(22);
294
- var ReactClass = _dereq_(9);
289
+ var ReactBaseClasses = _dereq_(6);
290
+ var ReactChildren = _dereq_(9);
291
+ var ReactClass = _dereq_(10);
295
292
  var ReactDOMFactories = _dereq_(14);
296
- var ReactElement = _dereq_(15);
297
- var ReactPropTypes = _dereq_(21);
298
- var ReactVersion = _dereq_(27);
293
+ var ReactElement = _dereq_(16);
294
+ var ReactPropTypes = _dereq_(22);
295
+ var ReactVersion = _dereq_(28);
299
296
 
300
- var onlyChild = _dereq_(35);
301
- var warning = _dereq_(46);
297
+ var onlyChild = _dereq_(37);
298
+ var warning = _dereq_(48);
299
+ var checkPropTypes = _dereq_(32);
302
300
 
303
301
  var createElement = ReactElement.createElement;
304
302
  var createFactory = ReactElement.createFactory;
305
303
  var cloneElement = ReactElement.cloneElement;
306
304
 
307
305
  if ("development" !== 'production') {
308
- var ReactElementValidator = _dereq_(17);
306
+ var ReactElementValidator = _dereq_(18);
309
307
  createElement = ReactElementValidator.createElement;
310
308
  createFactory = ReactElementValidator.createFactory;
311
309
  cloneElement = ReactElementValidator.cloneElement;
312
310
  }
313
311
 
314
- var __spread = _assign;
312
+ var createMixin = function (mixin) {
313
+ return mixin;
314
+ };
315
315
 
316
316
  if ("development" !== 'production') {
317
- var warned = false;
318
- __spread = function () {
319
- "development" !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
320
- warned = true;
321
- return _assign.apply(null, arguments);
317
+ var warnedForCreateMixin = false;
318
+
319
+ createMixin = function (mixin) {
320
+ "development" !== 'production' ? warning(warnedForCreateMixin, 'React.createMixin is deprecated and should not be used. You ' + 'can use this mixin directly instead.') : void 0;
321
+ warnedForCreateMixin = true;
322
+ return mixin;
322
323
  };
323
324
  }
324
325
 
@@ -334,35 +335,32 @@ var React = {
334
335
  only: onlyChild
335
336
  },
336
337
 
337
- Component: ReactComponent,
338
- PureComponent: ReactPureComponent,
338
+ Component: ReactBaseClasses.Component,
339
+ PureComponent: ReactBaseClasses.PureComponent,
339
340
 
340
341
  createElement: createElement,
341
342
  cloneElement: cloneElement,
342
343
  isValidElement: ReactElement.isValidElement,
343
344
 
345
+ checkPropTypes: checkPropTypes,
346
+
344
347
  // Classic
345
348
 
346
349
  PropTypes: ReactPropTypes,
347
350
  createClass: ReactClass.createClass,
348
351
  createFactory: createFactory,
349
- createMixin: function (mixin) {
350
- // Currently a noop. Will be used to validate and trace mixins.
351
- return mixin;
352
- },
352
+ createMixin: createMixin,
353
353
 
354
354
  // This looks DOM specific but these are actually isomorphic helpers
355
355
  // since they are just generating DOM strings.
356
356
  DOM: ReactDOMFactories,
357
357
 
358
- version: ReactVersion,
358
+ version: ReactVersion
359
359
 
360
- // Deprecated hook for JSX spread, don't use this for anything.
361
- __spread: __spread
362
360
  };
363
361
 
364
362
  module.exports = React;
365
- },{"10":10,"14":14,"15":15,"17":17,"21":21,"22":22,"27":27,"35":35,"46":46,"47":47,"8":8,"9":9}],5:[function(_dereq_,module,exports){
363
+ },{"10":10,"14":14,"16":16,"18":18,"22":22,"28":28,"32":32,"37":37,"48":48,"6":6,"9":9}],5:[function(_dereq_,module,exports){
366
364
  /**
367
365
  * Copyright 2013-present, Facebook, Inc.
368
366
  * All rights reserved.
@@ -380,7 +378,7 @@ var ReactDOM;
380
378
  function getReactDOM() {
381
379
  if (!ReactDOM) {
382
380
  // This is safe to use because current module only exists in the addons build:
383
- var ReactWithAddonsUMDEntry = _dereq_(29);
381
+ var ReactWithAddonsUMDEntry = _dereq_(30);
384
382
  // This is injected by the ReactDOM UMD build:
385
383
  ReactDOM = ReactWithAddonsUMDEntry.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
386
384
  }
@@ -398,7 +396,144 @@ if ("development" !== 'production') {
398
396
  return getReactDOM().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactTestUtils;
399
397
  };
400
398
  }
401
- },{"29":29}],6:[function(_dereq_,module,exports){
399
+ },{"30":30}],6:[function(_dereq_,module,exports){
400
+ /**
401
+ * Copyright 2013-present, Facebook, Inc.
402
+ * All rights reserved.
403
+ *
404
+ * This source code is licensed under the BSD-style license found in the
405
+ * LICENSE file in the root directory of this source tree. An additional grant
406
+ * of patent rights can be found in the PATENTS file in the same directory.
407
+ *
408
+ */
409
+
410
+ 'use strict';
411
+
412
+ var _prodInvariant = _dereq_(38),
413
+ _assign = _dereq_(49);
414
+
415
+ var ReactNoopUpdateQueue = _dereq_(21);
416
+
417
+ var canDefineProperty = _dereq_(31);
418
+ var emptyObject = _dereq_(45);
419
+ var invariant = _dereq_(46);
420
+ var warning = _dereq_(48);
421
+
422
+ /**
423
+ * Base class helpers for the updating state of a component.
424
+ */
425
+ function ReactComponent(props, context, updater) {
426
+ this.props = props;
427
+ this.context = context;
428
+ this.refs = emptyObject;
429
+ // We initialize the default updater but the real one gets injected by the
430
+ // renderer.
431
+ this.updater = updater || ReactNoopUpdateQueue;
432
+ }
433
+
434
+ ReactComponent.prototype.isReactComponent = {};
435
+
436
+ /**
437
+ * Sets a subset of the state. Always use this to mutate
438
+ * state. You should treat `this.state` as immutable.
439
+ *
440
+ * There is no guarantee that `this.state` will be immediately updated, so
441
+ * accessing `this.state` after calling this method may return the old value.
442
+ *
443
+ * There is no guarantee that calls to `setState` will run synchronously,
444
+ * as they may eventually be batched together. You can provide an optional
445
+ * callback that will be executed when the call to setState is actually
446
+ * completed.
447
+ *
448
+ * When a function is provided to setState, it will be called at some point in
449
+ * the future (not synchronously). It will be called with the up to date
450
+ * component arguments (state, props, context). These values can be different
451
+ * from this.* because your function may be called after receiveProps but before
452
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
453
+ * assigned to this.
454
+ *
455
+ * @param {object|function} partialState Next partial state or function to
456
+ * produce next partial state to be merged with current state.
457
+ * @param {?function} callback Called after state is updated.
458
+ * @final
459
+ * @protected
460
+ */
461
+ ReactComponent.prototype.setState = function (partialState, callback) {
462
+ !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
463
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
464
+ };
465
+
466
+ /**
467
+ * Forces an update. This should only be invoked when it is known with
468
+ * certainty that we are **not** in a DOM transaction.
469
+ *
470
+ * You may want to call this when you know that some deeper aspect of the
471
+ * component's state has changed but `setState` was not called.
472
+ *
473
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
474
+ * `componentWillUpdate` and `componentDidUpdate`.
475
+ *
476
+ * @param {?function} callback Called after update is complete.
477
+ * @final
478
+ * @protected
479
+ */
480
+ ReactComponent.prototype.forceUpdate = function (callback) {
481
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
482
+ };
483
+
484
+ /**
485
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
486
+ * we would like to deprecate them, we're not going to move them over to this
487
+ * modern base class. Instead, we define a getter that warns if it's accessed.
488
+ */
489
+ if ("development" !== 'production') {
490
+ var deprecatedAPIs = {
491
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
492
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
493
+ };
494
+ var defineDeprecationWarning = function (methodName, info) {
495
+ if (canDefineProperty) {
496
+ Object.defineProperty(ReactComponent.prototype, methodName, {
497
+ get: function () {
498
+ "development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
499
+ return undefined;
500
+ }
501
+ });
502
+ }
503
+ };
504
+ for (var fnName in deprecatedAPIs) {
505
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
506
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
507
+ }
508
+ }
509
+ }
510
+
511
+ /**
512
+ * Base class helpers for the updating state of a component.
513
+ */
514
+ function ReactPureComponent(props, context, updater) {
515
+ // Duplicated from ReactComponent.
516
+ this.props = props;
517
+ this.context = context;
518
+ this.refs = emptyObject;
519
+ // We initialize the default updater but the real one gets injected by the
520
+ // renderer.
521
+ this.updater = updater || ReactNoopUpdateQueue;
522
+ }
523
+
524
+ function ComponentDummy() {}
525
+ ComponentDummy.prototype = ReactComponent.prototype;
526
+ ReactPureComponent.prototype = new ComponentDummy();
527
+ ReactPureComponent.prototype.constructor = ReactPureComponent;
528
+ // Avoid an extra prototype jump for these methods.
529
+ _assign(ReactPureComponent.prototype, ReactComponent.prototype);
530
+ ReactPureComponent.prototype.isPureReactComponent = true;
531
+
532
+ module.exports = {
533
+ Component: ReactComponent,
534
+ PureComponent: ReactPureComponent
535
+ };
536
+ },{"21":21,"31":31,"38":38,"45":45,"46":46,"48":48,"49":49}],7:[function(_dereq_,module,exports){
402
537
  /**
403
538
  * Copyright 2013-present, Facebook, Inc.
404
539
  * All rights reserved.
@@ -411,7 +546,7 @@ if ("development" !== 'production') {
411
546
 
412
547
  'use strict';
413
548
 
414
- var _assign = _dereq_(47);
549
+ var _assign = _dereq_(49);
415
550
 
416
551
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
417
552
 
@@ -421,8 +556,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
421
556
 
422
557
  var React = _dereq_(4);
423
558
 
424
- var ReactTransitionGroup = _dereq_(25);
425
- var ReactCSSTransitionGroupChild = _dereq_(7);
559
+ var ReactTransitionGroup = _dereq_(26);
560
+ var ReactCSSTransitionGroupChild = _dereq_(8);
426
561
 
427
562
  function createTransitionTimeoutPropValidator(transitionType) {
428
563
  var timeoutPropName = 'transition' + transitionType + 'Timeout';
@@ -503,7 +638,7 @@ ReactCSSTransitionGroup.defaultProps = {
503
638
 
504
639
 
505
640
  module.exports = ReactCSSTransitionGroup;
506
- },{"25":25,"4":4,"47":47,"7":7}],7:[function(_dereq_,module,exports){
641
+ },{"26":26,"4":4,"49":49,"8":8}],8:[function(_dereq_,module,exports){
507
642
  /**
508
643
  * Copyright 2013-present, Facebook, Inc.
509
644
  * All rights reserved.
@@ -519,10 +654,10 @@ module.exports = ReactCSSTransitionGroup;
519
654
  var React = _dereq_(4);
520
655
  var ReactAddonsDOMDependencies = _dereq_(5);
521
656
 
522
- var CSSCore = _dereq_(40);
523
- var ReactTransitionEvents = _dereq_(24);
657
+ var CSSCore = _dereq_(42);
658
+ var ReactTransitionEvents = _dereq_(25);
524
659
 
525
- var onlyChild = _dereq_(35);
660
+ var onlyChild = _dereq_(37);
526
661
 
527
662
  var TICK = 17;
528
663
 
@@ -670,7 +805,7 @@ var ReactCSSTransitionGroupChild = React.createClass({
670
805
  });
671
806
 
672
807
  module.exports = ReactCSSTransitionGroupChild;
673
- },{"24":24,"35":35,"4":4,"40":40,"5":5}],8:[function(_dereq_,module,exports){
808
+ },{"25":25,"37":37,"4":4,"42":42,"5":5}],9:[function(_dereq_,module,exports){
674
809
  /**
675
810
  * Copyright 2013-present, Facebook, Inc.
676
811
  * All rights reserved.
@@ -684,10 +819,10 @@ module.exports = ReactCSSTransitionGroupChild;
684
819
  'use strict';
685
820
 
686
821
  var PooledClass = _dereq_(3);
687
- var ReactElement = _dereq_(15);
822
+ var ReactElement = _dereq_(16);
688
823
 
689
- var emptyFunction = _dereq_(42);
690
- var traverseAllChildren = _dereq_(38);
824
+ var emptyFunction = _dereq_(44);
825
+ var traverseAllChildren = _dereq_(40);
691
826
 
692
827
  var twoArgumentPooler = PooledClass.twoArgumentPooler;
693
828
  var fourArgumentPooler = PooledClass.fourArgumentPooler;
@@ -861,7 +996,7 @@ var ReactChildren = {
861
996
  };
862
997
 
863
998
  module.exports = ReactChildren;
864
- },{"15":15,"3":3,"38":38,"42":42}],9:[function(_dereq_,module,exports){
999
+ },{"16":16,"3":3,"40":40,"44":44}],10:[function(_dereq_,module,exports){
865
1000
  /**
866
1001
  * Copyright 2013-present, Facebook, Inc.
867
1002
  * All rights reserved.
@@ -874,17 +1009,18 @@ module.exports = ReactChildren;
874
1009
 
875
1010
  'use strict';
876
1011
 
877
- var _prodInvariant = _dereq_(36),
878
- _assign = _dereq_(47);
1012
+ var _assign = _dereq_(49),
1013
+ _prodInvariant = _dereq_(38);
879
1014
 
880
- var ReactComponent = _dereq_(10);
881
- var ReactElement = _dereq_(15);
882
- var ReactPropTypeLocationNames = _dereq_(20);
883
- var ReactNoopUpdateQueue = _dereq_(19);
1015
+ var ReactBaseClasses = _dereq_(6);
1016
+ var ReactElement = _dereq_(16);
1017
+ var ReactNoopUpdateQueue = _dereq_(21);
884
1018
 
885
- var emptyObject = _dereq_(43);
886
- var invariant = _dereq_(44);
887
- var warning = _dereq_(46);
1019
+ var emptyObject = _dereq_(45);
1020
+ var invariant = _dereq_(46);
1021
+ var warning = _dereq_(48);
1022
+
1023
+ var ReactComponent = ReactBaseClasses.Component;
888
1024
 
889
1025
  var MIXINS_KEY = 'mixins';
890
1026
 
@@ -1013,7 +1149,6 @@ var ReactClassInterface = {
1013
1149
  * }
1014
1150
  *
1015
1151
  * @return {ReactComponent}
1016
- * @nosideeffects
1017
1152
  * @required
1018
1153
  */
1019
1154
  render: 'DEFINE_ONCE',
@@ -1166,7 +1301,7 @@ var RESERVED_SPEC_KEYS = {
1166
1301
  },
1167
1302
  childContextTypes: function (Constructor, childContextTypes) {
1168
1303
  if ("development" !== 'production') {
1169
- validateTypeDef(Constructor, childContextTypes, 'childContext');
1304
+ validateTypeDef(Constructor, childContextTypes, 'child context');
1170
1305
  }
1171
1306
  Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
1172
1307
  },
@@ -1203,7 +1338,7 @@ function validateTypeDef(Constructor, typeDef, location) {
1203
1338
  if (typeDef.hasOwnProperty(propName)) {
1204
1339
  // use a warning instead of an invariant so components
1205
1340
  // don't show up in prod but only in __DEV__
1206
- "development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;
1341
+ "development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', location, propName) : void 0;
1207
1342
  }
1208
1343
  }
1209
1344
  }
@@ -1409,9 +1544,9 @@ function bindAutoBindMethod(component, method) {
1409
1544
  // ignore the value of "this" that the user is trying to use, so
1410
1545
  // let's warn.
1411
1546
  if (newThis !== component && newThis !== null) {
1412
- "development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
1547
+ "development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance.\n\nSee %s', componentName) : void 0;
1413
1548
  } else if (!args.length) {
1414
- "development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;
1549
+ "development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call.\n\nSee %s', componentName) : void 0;
1415
1550
  return boundMethod;
1416
1551
  }
1417
1552
  var reboundMethod = _bind.apply(boundMethod, arguments);
@@ -1565,119 +1700,7 @@ var ReactClass = {
1565
1700
  };
1566
1701
 
1567
1702
  module.exports = ReactClass;
1568
- },{"10":10,"15":15,"19":19,"20":20,"36":36,"43":43,"44":44,"46":46,"47":47}],10:[function(_dereq_,module,exports){
1569
- /**
1570
- * Copyright 2013-present, Facebook, Inc.
1571
- * All rights reserved.
1572
- *
1573
- * This source code is licensed under the BSD-style license found in the
1574
- * LICENSE file in the root directory of this source tree. An additional grant
1575
- * of patent rights can be found in the PATENTS file in the same directory.
1576
- *
1577
- */
1578
-
1579
- 'use strict';
1580
-
1581
- var _prodInvariant = _dereq_(36);
1582
-
1583
- var ReactNoopUpdateQueue = _dereq_(19);
1584
-
1585
- var canDefineProperty = _dereq_(30);
1586
- var emptyObject = _dereq_(43);
1587
- var invariant = _dereq_(44);
1588
- var warning = _dereq_(46);
1589
-
1590
- /**
1591
- * Base class helpers for the updating state of a component.
1592
- */
1593
- function ReactComponent(props, context, updater) {
1594
- this.props = props;
1595
- this.context = context;
1596
- this.refs = emptyObject;
1597
- // We initialize the default updater but the real one gets injected by the
1598
- // renderer.
1599
- this.updater = updater || ReactNoopUpdateQueue;
1600
- }
1601
-
1602
- ReactComponent.prototype.isReactComponent = {};
1603
-
1604
- /**
1605
- * Sets a subset of the state. Always use this to mutate
1606
- * state. You should treat `this.state` as immutable.
1607
- *
1608
- * There is no guarantee that `this.state` will be immediately updated, so
1609
- * accessing `this.state` after calling this method may return the old value.
1610
- *
1611
- * There is no guarantee that calls to `setState` will run synchronously,
1612
- * as they may eventually be batched together. You can provide an optional
1613
- * callback that will be executed when the call to setState is actually
1614
- * completed.
1615
- *
1616
- * When a function is provided to setState, it will be called at some point in
1617
- * the future (not synchronously). It will be called with the up to date
1618
- * component arguments (state, props, context). These values can be different
1619
- * from this.* because your function may be called after receiveProps but before
1620
- * shouldComponentUpdate, and this new state, props, and context will not yet be
1621
- * assigned to this.
1622
- *
1623
- * @param {object|function} partialState Next partial state or function to
1624
- * produce next partial state to be merged with current state.
1625
- * @param {?function} callback Called after state is updated.
1626
- * @final
1627
- * @protected
1628
- */
1629
- ReactComponent.prototype.setState = function (partialState, callback) {
1630
- !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
1631
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
1632
- };
1633
-
1634
- /**
1635
- * Forces an update. This should only be invoked when it is known with
1636
- * certainty that we are **not** in a DOM transaction.
1637
- *
1638
- * You may want to call this when you know that some deeper aspect of the
1639
- * component's state has changed but `setState` was not called.
1640
- *
1641
- * This will not invoke `shouldComponentUpdate`, but it will invoke
1642
- * `componentWillUpdate` and `componentDidUpdate`.
1643
- *
1644
- * @param {?function} callback Called after update is complete.
1645
- * @final
1646
- * @protected
1647
- */
1648
- ReactComponent.prototype.forceUpdate = function (callback) {
1649
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
1650
- };
1651
-
1652
- /**
1653
- * Deprecated APIs. These APIs used to exist on classic React classes but since
1654
- * we would like to deprecate them, we're not going to move them over to this
1655
- * modern base class. Instead, we define a getter that warns if it's accessed.
1656
- */
1657
- if ("development" !== 'production') {
1658
- var deprecatedAPIs = {
1659
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
1660
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
1661
- };
1662
- var defineDeprecationWarning = function (methodName, info) {
1663
- if (canDefineProperty) {
1664
- Object.defineProperty(ReactComponent.prototype, methodName, {
1665
- get: function () {
1666
- "development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
1667
- return undefined;
1668
- }
1669
- });
1670
- }
1671
- };
1672
- for (var fnName in deprecatedAPIs) {
1673
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
1674
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1675
- }
1676
- }
1677
- }
1678
-
1679
- module.exports = ReactComponent;
1680
- },{"19":19,"30":30,"36":36,"43":43,"44":44,"46":46}],11:[function(_dereq_,module,exports){
1703
+ },{"16":16,"21":21,"38":38,"45":45,"46":46,"48":48,"49":49,"6":6}],11:[function(_dereq_,module,exports){
1681
1704
  /**
1682
1705
  * Copyright 2016-present, Facebook, Inc.
1683
1706
  * All rights reserved.
@@ -1691,19 +1714,17 @@ module.exports = ReactComponent;
1691
1714
 
1692
1715
  'use strict';
1693
1716
 
1694
- var _prodInvariant = _dereq_(36);
1717
+ var _prodInvariant = _dereq_(38);
1695
1718
 
1696
1719
  var ReactCurrentOwner = _dereq_(13);
1697
- var ReactTypeOfWork = _dereq_(26);
1698
- var IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent,
1699
- FunctionalComponent = ReactTypeOfWork.FunctionalComponent,
1700
- ClassComponent = ReactTypeOfWork.ClassComponent,
1701
- HostComponent = ReactTypeOfWork.HostComponent;
1702
1720
 
1721
+ var _require = _dereq_(19),
1722
+ getStackAddendumByWorkInProgressFiber = _require.getStackAddendumByWorkInProgressFiber,
1723
+ describeComponentFrame = _require.describeComponentFrame;
1703
1724
 
1704
- var getComponentName = _dereq_(33);
1705
- var invariant = _dereq_(44);
1706
- var warning = _dereq_(46);
1725
+ var invariant = _dereq_(46);
1726
+ var warning = _dereq_(48);
1727
+ var getComponentName = _dereq_(35);
1707
1728
 
1708
1729
  function isNative(fn) {
1709
1730
  // Based on isNative() from Lodash
@@ -1824,10 +1845,6 @@ function purgeDeep(id) {
1824
1845
  }
1825
1846
  }
1826
1847
 
1827
- function describeComponentFrame(name, source, ownerName) {
1828
- return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
1829
- }
1830
-
1831
1848
  function getDisplayName(element) {
1832
1849
  if (element == null) {
1833
1850
  return '#empty';
@@ -1844,31 +1861,13 @@ function describeID(id) {
1844
1861
  var name = ReactComponentTreeHook.getDisplayName(id);
1845
1862
  var element = ReactComponentTreeHook.getElement(id);
1846
1863
  var ownerID = ReactComponentTreeHook.getOwnerID(id);
1847
- var ownerName;
1864
+ var ownerName = void 0;
1865
+
1848
1866
  if (ownerID) {
1849
1867
  ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
1850
1868
  }
1851
1869
  "development" !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
1852
- return describeComponentFrame(name, element && element._source, ownerName);
1853
- }
1854
-
1855
- function describeFiber(fiber) {
1856
- switch (fiber.tag) {
1857
- case IndeterminateComponent:
1858
- case FunctionalComponent:
1859
- case ClassComponent:
1860
- case HostComponent:
1861
- var owner = fiber._debugOwner;
1862
- var source = fiber._debugSource;
1863
- var name = getComponentName(fiber);
1864
- var ownerName = null;
1865
- if (owner) {
1866
- ownerName = getComponentName(owner);
1867
- }
1868
- return describeComponentFrame(name, source, ownerName);
1869
- default:
1870
- return '';
1871
- }
1870
+ return describeComponentFrame(name || '', element && element._source, ownerName || '');
1872
1871
  }
1873
1872
 
1874
1873
  var ReactComponentTreeHook = {
@@ -1976,7 +1975,7 @@ var ReactComponentTreeHook = {
1976
1975
  var workInProgress = currentOwner;
1977
1976
  // Safe because if current owner exists, we are reconciling,
1978
1977
  // and it is guaranteed to be the work-in-progress version.
1979
- info += ReactComponentTreeHook.getStackAddendumByWorkInProgressFiber(workInProgress);
1978
+ info += getStackAddendumByWorkInProgressFiber(workInProgress);
1980
1979
  } else if (typeof currentOwner._debugID === 'number') {
1981
1980
  info += ReactComponentTreeHook.getStackAddendumByID(currentOwner._debugID);
1982
1981
  }
@@ -1991,21 +1990,6 @@ var ReactComponentTreeHook = {
1991
1990
  }
1992
1991
  return info;
1993
1992
  },
1994
-
1995
-
1996
- // This function can only be called with a work-in-progress fiber and
1997
- // only during begin or complete phase. Do not call it under any other
1998
- // circumstances.
1999
- getStackAddendumByWorkInProgressFiber: function (workInProgress) {
2000
- var info = '';
2001
- var node = workInProgress;
2002
- do {
2003
- info += describeFiber(node);
2004
- // Otherwise this return pointer might point to the wrong tree:
2005
- node = node['return'];
2006
- } while (node);
2007
- return info;
2008
- },
2009
1993
  getChildIDs: function (id) {
2010
1994
  var item = getItem(id);
2011
1995
  return item ? item.childIDs : [];
@@ -2059,7 +2043,7 @@ var ReactComponentTreeHook = {
2059
2043
  };
2060
2044
 
2061
2045
  module.exports = ReactComponentTreeHook;
2062
- },{"13":13,"26":26,"33":33,"36":36,"44":44,"46":46}],12:[function(_dereq_,module,exports){
2046
+ },{"13":13,"19":19,"35":35,"38":38,"46":46,"48":48}],12:[function(_dereq_,module,exports){
2063
2047
  /**
2064
2048
  * Copyright 2013-present, Facebook, Inc.
2065
2049
  * All rights reserved.
@@ -2072,7 +2056,7 @@ module.exports = ReactComponentTreeHook;
2072
2056
 
2073
2057
  'use strict';
2074
2058
 
2075
- var shallowCompare = _dereq_(37);
2059
+ var shallowCompare = _dereq_(39);
2076
2060
 
2077
2061
  /**
2078
2062
  * If your React component's render function is "pure", e.g. it will render the
@@ -2107,7 +2091,7 @@ var ReactComponentWithPureRenderMixin = {
2107
2091
  };
2108
2092
 
2109
2093
  module.exports = ReactComponentWithPureRenderMixin;
2110
- },{"37":37}],13:[function(_dereq_,module,exports){
2094
+ },{"39":39}],13:[function(_dereq_,module,exports){
2111
2095
  /**
2112
2096
  * Copyright 2013-present, Facebook, Inc.
2113
2097
  * All rights reserved.
@@ -2151,7 +2135,7 @@ module.exports = ReactCurrentOwner;
2151
2135
 
2152
2136
  'use strict';
2153
2137
 
2154
- var ReactElement = _dereq_(15);
2138
+ var ReactElement = _dereq_(16);
2155
2139
 
2156
2140
  /**
2157
2141
  * Create a factory that creates HTML tag elements.
@@ -2160,7 +2144,7 @@ var ReactElement = _dereq_(15);
2160
2144
  */
2161
2145
  var createDOMFactory = ReactElement.createFactory;
2162
2146
  if ("development" !== 'production') {
2163
- var ReactElementValidator = _dereq_(17);
2147
+ var ReactElementValidator = _dereq_(18);
2164
2148
  createDOMFactory = ReactElementValidator.createFactory;
2165
2149
  }
2166
2150
 
@@ -2308,7 +2292,63 @@ var ReactDOMFactories = {
2308
2292
  };
2309
2293
 
2310
2294
  module.exports = ReactDOMFactories;
2311
- },{"15":15,"17":17}],15:[function(_dereq_,module,exports){
2295
+ },{"16":16,"18":18}],15:[function(_dereq_,module,exports){
2296
+ /**
2297
+ * Copyright 2013-present, Facebook, Inc.
2298
+ * All rights reserved.
2299
+ *
2300
+ * This source code is licensed under the BSD-style license found in the
2301
+ * LICENSE file in the root directory of this source tree. An additional grant
2302
+ * of patent rights can be found in the PATENTS file in the same directory.
2303
+ *
2304
+ *
2305
+ */
2306
+
2307
+ 'use strict';
2308
+
2309
+ var ReactDebugCurrentFrame = {};
2310
+
2311
+ if ("development" !== 'production') {
2312
+ var _require = _dereq_(11),
2313
+ getStackAddendumByID = _require.getStackAddendumByID,
2314
+ getCurrentStackAddendum = _require.getCurrentStackAddendum;
2315
+
2316
+ var _require2 = _dereq_(19),
2317
+ getStackAddendumByWorkInProgressFiber = _require2.getStackAddendumByWorkInProgressFiber;
2318
+
2319
+ // Component that is being worked on
2320
+
2321
+
2322
+ ReactDebugCurrentFrame.current = null;
2323
+
2324
+ // Element that is being cloned or created
2325
+ ReactDebugCurrentFrame.element = null;
2326
+
2327
+ ReactDebugCurrentFrame.getStackAddendum = function () {
2328
+ var stack = null;
2329
+ var current = ReactDebugCurrentFrame.current;
2330
+ var element = ReactDebugCurrentFrame.element;
2331
+ if (current !== null) {
2332
+ if (typeof current === 'number') {
2333
+ // DebugID from Stack.
2334
+ var debugID = current;
2335
+ stack = getStackAddendumByID(debugID);
2336
+ } else if (typeof current.tag === 'number') {
2337
+ // This is a Fiber.
2338
+ // The stack will only be correct if this is a work in progress
2339
+ // version and we're calling it during reconciliation.
2340
+ var workInProgress = current;
2341
+ stack = getStackAddendumByWorkInProgressFiber(workInProgress);
2342
+ }
2343
+ } else if (element !== null) {
2344
+ stack = getCurrentStackAddendum(element);
2345
+ }
2346
+ return stack;
2347
+ };
2348
+ }
2349
+
2350
+ module.exports = ReactDebugCurrentFrame;
2351
+ },{"11":11,"19":19}],16:[function(_dereq_,module,exports){
2312
2352
  /**
2313
2353
  * Copyright 2014-present, Facebook, Inc.
2314
2354
  * All rights reserved.
@@ -2321,15 +2361,15 @@ module.exports = ReactDOMFactories;
2321
2361
 
2322
2362
  'use strict';
2323
2363
 
2324
- var _assign = _dereq_(47);
2364
+ var _assign = _dereq_(49);
2325
2365
 
2326
2366
  var ReactCurrentOwner = _dereq_(13);
2327
2367
 
2328
- var warning = _dereq_(46);
2329
- var canDefineProperty = _dereq_(30);
2368
+ var warning = _dereq_(48);
2369
+ var canDefineProperty = _dereq_(31);
2330
2370
  var hasOwnProperty = Object.prototype.hasOwnProperty;
2331
2371
 
2332
- var REACT_ELEMENT_TYPE = _dereq_(16);
2372
+ var REACT_ELEMENT_TYPE = _dereq_(17);
2333
2373
 
2334
2374
  var RESERVED_PROPS = {
2335
2375
  key: true,
@@ -2649,7 +2689,7 @@ ReactElement.isValidElement = function (object) {
2649
2689
  };
2650
2690
 
2651
2691
  module.exports = ReactElement;
2652
- },{"13":13,"16":16,"30":30,"46":46,"47":47}],16:[function(_dereq_,module,exports){
2692
+ },{"13":13,"17":17,"31":31,"48":48,"49":49}],17:[function(_dereq_,module,exports){
2653
2693
  /**
2654
2694
  * Copyright 2014-present, Facebook, Inc.
2655
2695
  * All rights reserved.
@@ -2669,7 +2709,7 @@ module.exports = ReactElement;
2669
2709
  var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
2670
2710
 
2671
2711
  module.exports = REACT_ELEMENT_TYPE;
2672
- },{}],17:[function(_dereq_,module,exports){
2712
+ },{}],18:[function(_dereq_,module,exports){
2673
2713
  /**
2674
2714
  * Copyright 2014-present, Facebook, Inc.
2675
2715
  * All rights reserved.
@@ -2690,21 +2730,27 @@ module.exports = REACT_ELEMENT_TYPE;
2690
2730
  'use strict';
2691
2731
 
2692
2732
  var ReactCurrentOwner = _dereq_(13);
2693
- var ReactComponentTreeHook = _dereq_(11);
2694
- var ReactElement = _dereq_(15);
2733
+ var ReactElement = _dereq_(16);
2695
2734
 
2696
- var checkReactTypeSpec = _dereq_(31);
2735
+ var checkReactTypeSpec = _dereq_(33);
2697
2736
 
2698
- var canDefineProperty = _dereq_(30);
2699
- var getComponentName = _dereq_(33);
2700
- var getIteratorFn = _dereq_(34);
2701
- var warning = _dereq_(46);
2737
+ var canDefineProperty = _dereq_(31);
2738
+ var getComponentName = _dereq_(35);
2739
+ var getIteratorFn = _dereq_(36);
2740
+
2741
+ if ("development" !== 'production') {
2742
+ var warning = _dereq_(48);
2743
+ var ReactDebugCurrentFrame = _dereq_(15);
2744
+
2745
+ var _require = _dereq_(11),
2746
+ getCurrentStackAddendum = _require.getCurrentStackAddendum;
2747
+ }
2702
2748
 
2703
2749
  function getDeclarationErrorAddendum() {
2704
2750
  if (ReactCurrentOwner.current) {
2705
2751
  var name = getComponentName(ReactCurrentOwner.current);
2706
2752
  if (name) {
2707
- return ' Check the render method of `' + name + '`.';
2753
+ return '\n\nCheck the render method of `' + name + '`.';
2708
2754
  }
2709
2755
  }
2710
2756
  return '';
@@ -2715,7 +2761,7 @@ function getSourceInfoErrorAddendum(elementProps) {
2715
2761
  var source = elementProps.__source;
2716
2762
  var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2717
2763
  var lineNumber = source.lineNumber;
2718
- return ' Check your code at ' + fileName + ':' + lineNumber + '.';
2764
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2719
2765
  }
2720
2766
  return '';
2721
2767
  }
@@ -2733,7 +2779,7 @@ function getCurrentComponentErrorInfo(parentType) {
2733
2779
  if (!info) {
2734
2780
  var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2735
2781
  if (parentName) {
2736
- info = ' Check the top-level render call using <' + parentName + '>.';
2782
+ info = '\n\nCheck the top-level render call using <' + parentName + '>.';
2737
2783
  }
2738
2784
  }
2739
2785
  return info;
@@ -2773,7 +2819,7 @@ function validateExplicitKey(element, parentType) {
2773
2819
  childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';
2774
2820
  }
2775
2821
 
2776
- "development" !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
2822
+ "development" !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getCurrentStackAddendum(element)) : void 0;
2777
2823
  }
2778
2824
 
2779
2825
  /**
@@ -2831,7 +2877,7 @@ function validatePropTypes(element) {
2831
2877
  }
2832
2878
  var name = componentClass.displayName || componentClass.name;
2833
2879
  if (componentClass.propTypes) {
2834
- checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
2880
+ checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name);
2835
2881
  }
2836
2882
  if (typeof componentClass.getDefaultProps === 'function') {
2837
2883
  "development" !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
@@ -2841,27 +2887,25 @@ function validatePropTypes(element) {
2841
2887
  var ReactElementValidator = {
2842
2888
 
2843
2889
  createElement: function (type, props, children) {
2844
- var validType = typeof type === 'string' || typeof type === 'function' || type !== null && typeof type === 'object' && typeof type.tag === 'number';
2890
+ var validType = typeof type === 'string' || typeof type === 'function';
2845
2891
  // We warn in this case but don't throw. We expect the element creation to
2846
2892
  // succeed and there will likely be errors in render.
2847
2893
  if (!validType) {
2848
- if (typeof type !== 'function' && typeof type !== 'string') {
2849
- var info = '';
2850
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2851
- info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
2852
- }
2894
+ var info = '';
2895
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2896
+ info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
2897
+ }
2853
2898
 
2854
- var sourceInfo = getSourceInfoErrorAddendum(props);
2855
- if (sourceInfo) {
2856
- info += sourceInfo;
2857
- } else {
2858
- info += getDeclarationErrorAddendum();
2859
- }
2899
+ var sourceInfo = getSourceInfoErrorAddendum(props);
2900
+ if (sourceInfo) {
2901
+ info += sourceInfo;
2902
+ } else {
2903
+ info += getDeclarationErrorAddendum();
2904
+ }
2860
2905
 
2861
- info += ReactComponentTreeHook.getCurrentStackAddendum();
2906
+ info += getCurrentStackAddendum();
2862
2907
 
2863
- "development" !== 'production' ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;
2864
- }
2908
+ "development" !== 'production' ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;
2865
2909
  }
2866
2910
 
2867
2911
  var element = ReactElement.createElement.apply(this, arguments);
@@ -2872,6 +2916,10 @@ var ReactElementValidator = {
2872
2916
  return element;
2873
2917
  }
2874
2918
 
2919
+ if ("development" !== 'production') {
2920
+ ReactDebugCurrentFrame.element = element;
2921
+ }
2922
+
2875
2923
  // Skip key warning if the type isn't valid since our key validation logic
2876
2924
  // doesn't expect a non-string/function type and can throw confusing errors.
2877
2925
  // We don't want exception behavior to differ between dev and prod.
@@ -2885,6 +2933,10 @@ var ReactElementValidator = {
2885
2933
 
2886
2934
  validatePropTypes(element);
2887
2935
 
2936
+ if ("development" !== 'production') {
2937
+ ReactDebugCurrentFrame.element = null;
2938
+ }
2939
+
2888
2940
  return element;
2889
2941
  },
2890
2942
 
@@ -2913,17 +2965,86 @@ var ReactElementValidator = {
2913
2965
 
2914
2966
  cloneElement: function (element, props, children) {
2915
2967
  var newElement = ReactElement.cloneElement.apply(this, arguments);
2968
+ if ("development" !== 'production') {
2969
+ ReactDebugCurrentFrame.element = newElement;
2970
+ }
2916
2971
  for (var i = 2; i < arguments.length; i++) {
2917
2972
  validateChildKeys(arguments[i], newElement.type);
2918
2973
  }
2919
2974
  validatePropTypes(newElement);
2975
+ if ("development" !== 'production') {
2976
+ ReactDebugCurrentFrame.element = null;
2977
+ }
2920
2978
  return newElement;
2921
2979
  }
2922
2980
 
2923
2981
  };
2924
2982
 
2925
2983
  module.exports = ReactElementValidator;
2926
- },{"11":11,"13":13,"15":15,"30":30,"31":31,"33":33,"34":34,"46":46}],18:[function(_dereq_,module,exports){
2984
+ },{"11":11,"13":13,"15":15,"16":16,"31":31,"33":33,"35":35,"36":36,"48":48}],19:[function(_dereq_,module,exports){
2985
+ /**
2986
+ * Copyright 2016-present, Facebook, Inc.
2987
+ * All rights reserved.
2988
+ *
2989
+ * This source code is licensed under the BSD-style license found in the
2990
+ * LICENSE file in the root directory of this source tree. An additional grant
2991
+ * of patent rights can be found in the PATENTS file in the same directory.
2992
+ *
2993
+ *
2994
+ */
2995
+
2996
+ 'use strict';
2997
+
2998
+ var ReactTypeOfWork = _dereq_(27);
2999
+ var IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent,
3000
+ FunctionalComponent = ReactTypeOfWork.FunctionalComponent,
3001
+ ClassComponent = ReactTypeOfWork.ClassComponent,
3002
+ HostComponent = ReactTypeOfWork.HostComponent;
3003
+
3004
+ var getComponentName = _dereq_(35);
3005
+
3006
+ function describeComponentFrame(name, source, ownerName) {
3007
+ return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
3008
+ }
3009
+
3010
+ function describeFiber(fiber) {
3011
+ switch (fiber.tag) {
3012
+ case IndeterminateComponent:
3013
+ case FunctionalComponent:
3014
+ case ClassComponent:
3015
+ case HostComponent:
3016
+ var owner = fiber._debugOwner;
3017
+ var source = fiber._debugSource;
3018
+ var name = getComponentName(fiber);
3019
+ var ownerName = null;
3020
+ if (owner) {
3021
+ ownerName = getComponentName(owner);
3022
+ }
3023
+ return describeComponentFrame(name, source, ownerName);
3024
+ default:
3025
+ return '';
3026
+ }
3027
+ }
3028
+
3029
+ // This function can only be called with a work-in-progress fiber and
3030
+ // only during begin or complete phase. Do not call it under any other
3031
+ // circumstances.
3032
+ function getStackAddendumByWorkInProgressFiber(workInProgress) {
3033
+ var info = '';
3034
+ var node = workInProgress;
3035
+ do {
3036
+ info += describeFiber(node);
3037
+ // Otherwise this return pointer might point to the wrong tree:
3038
+ node = node['return'];
3039
+ } while (node);
3040
+ return info;
3041
+ }
3042
+
3043
+ module.exports = {
3044
+ getStackAddendumByWorkInProgressFiber: getStackAddendumByWorkInProgressFiber,
3045
+ describeComponentFrame: describeComponentFrame
3046
+ };
3047
+ },{"27":27,"35":35}],20:[function(_dereq_,module,exports){
2927
3048
  /**
2928
3049
  * Copyright 2015-present, Facebook, Inc.
2929
3050
  * All rights reserved.
@@ -2936,14 +3057,14 @@ module.exports = ReactElementValidator;
2936
3057
 
2937
3058
  'use strict';
2938
3059
 
2939
- var _prodInvariant = _dereq_(36);
3060
+ var _prodInvariant = _dereq_(38);
2940
3061
 
2941
- var ReactChildren = _dereq_(8);
2942
- var ReactElement = _dereq_(15);
3062
+ var ReactChildren = _dereq_(9);
3063
+ var ReactElement = _dereq_(16);
2943
3064
 
2944
- var emptyFunction = _dereq_(42);
2945
- var invariant = _dereq_(44);
2946
- var warning = _dereq_(46);
3065
+ var emptyFunction = _dereq_(44);
3066
+ var invariant = _dereq_(46);
3067
+ var warning = _dereq_(48);
2947
3068
 
2948
3069
  /**
2949
3070
  * We used to allow keyed objects to serve as a collection of ReactElements,
@@ -2992,7 +3113,7 @@ var ReactFragment = {
2992
3113
  };
2993
3114
 
2994
3115
  module.exports = ReactFragment;
2995
- },{"15":15,"36":36,"42":42,"44":44,"46":46,"8":8}],19:[function(_dereq_,module,exports){
3116
+ },{"16":16,"38":38,"44":44,"46":46,"48":48,"9":9}],21:[function(_dereq_,module,exports){
2996
3117
  /**
2997
3118
  * Copyright 2015-present, Facebook, Inc.
2998
3119
  * All rights reserved.
@@ -3005,12 +3126,12 @@ module.exports = ReactFragment;
3005
3126
 
3006
3127
  'use strict';
3007
3128
 
3008
- var warning = _dereq_(46);
3129
+ var warning = _dereq_(48);
3009
3130
 
3010
3131
  function warnNoop(publicInstance, callerName) {
3011
3132
  if ("development" !== 'production') {
3012
3133
  var constructor = publicInstance.constructor;
3013
- "development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
3134
+ "development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
3014
3135
  }
3015
3136
  }
3016
3137
 
@@ -3084,32 +3205,7 @@ var ReactNoopUpdateQueue = {
3084
3205
  };
3085
3206
 
3086
3207
  module.exports = ReactNoopUpdateQueue;
3087
- },{"46":46}],20:[function(_dereq_,module,exports){
3088
- /**
3089
- * Copyright 2013-present, Facebook, Inc.
3090
- * All rights reserved.
3091
- *
3092
- * This source code is licensed under the BSD-style license found in the
3093
- * LICENSE file in the root directory of this source tree. An additional grant
3094
- * of patent rights can be found in the PATENTS file in the same directory.
3095
- *
3096
- *
3097
- */
3098
-
3099
- 'use strict';
3100
-
3101
- var ReactPropTypeLocationNames = {};
3102
-
3103
- if ("development" !== 'production') {
3104
- ReactPropTypeLocationNames = {
3105
- prop: 'prop',
3106
- context: 'context',
3107
- childContext: 'child context'
3108
- };
3109
- }
3110
-
3111
- module.exports = ReactPropTypeLocationNames;
3112
- },{}],21:[function(_dereq_,module,exports){
3208
+ },{"48":48}],22:[function(_dereq_,module,exports){
3113
3209
  /**
3114
3210
  * Copyright 2013-present, Facebook, Inc.
3115
3211
  * All rights reserved.
@@ -3122,15 +3218,15 @@ module.exports = ReactPropTypeLocationNames;
3122
3218
 
3123
3219
  'use strict';
3124
3220
 
3125
- var _prodInvariant = _dereq_(36);
3221
+ var _prodInvariant = _dereq_(38);
3126
3222
 
3127
- var ReactElement = _dereq_(15);
3128
- var ReactPropTypeLocationNames = _dereq_(20);
3223
+ var ReactElement = _dereq_(16);
3224
+ var ReactPropTypesSecret = _dereq_(23);
3129
3225
 
3130
- var emptyFunction = _dereq_(42);
3131
- var getIteratorFn = _dereq_(34);
3132
- var invariant = _dereq_(44);
3133
- var warning = _dereq_(46);
3226
+ var emptyFunction = _dereq_(44);
3227
+ var getIteratorFn = _dereq_(36);
3228
+ var invariant = _dereq_(46);
3229
+ var warning = _dereq_(48);
3134
3230
 
3135
3231
  /**
3136
3232
  * Collection of methods that allow declaration and validation of props that are
@@ -3206,7 +3302,7 @@ if ("development" !== 'production') {
3206
3302
  };
3207
3303
  } else {
3208
3304
  var productionTypeChecker = function () {
3209
- invariant(false, 'React.PropTypes type checking code is stripped in production.');
3305
+ !false ? "development" !== 'production' ? invariant(false, 'React.PropTypes type checking code is stripped in production.') : _prodInvariant('144') : void 0;
3210
3306
  };
3211
3307
  productionTypeChecker.isRequired = productionTypeChecker;
3212
3308
  var getProductionTypeChecker = function () {
@@ -3254,7 +3350,7 @@ function is(x, y) {
3254
3350
 
3255
3351
  /**
3256
3352
  * We use an Error-like object for backward compatibility as people may call
3257
- * PropTypes directly and inspect their output. However we don't use real
3353
+ * PropTypes directly and inspect their output. However, we don't use real
3258
3354
  * Errors anymore. We don't inspect their stack anyway, and creating them
3259
3355
  * is prohibitively expensive if they are created too often, such as what
3260
3356
  * happens in oneOfType() for any type before the one that matched.
@@ -3267,16 +3363,27 @@ function PropTypeError(message) {
3267
3363
  PropTypeError.prototype = Error.prototype;
3268
3364
 
3269
3365
  function createChainableTypeChecker(validate) {
3270
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
3366
+ if ("development" !== 'production') {
3367
+ var manualPropTypeCallCache = {};
3368
+ }
3369
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
3271
3370
  componentName = componentName || ANONYMOUS;
3272
3371
  propFullName = propFullName || propName;
3372
+ if ("development" !== 'production') {
3373
+ if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
3374
+ var cacheKey = componentName + ':' + propName;
3375
+ if (!manualPropTypeCallCache[cacheKey]) {
3376
+ "development" !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;
3377
+ manualPropTypeCallCache[cacheKey] = true;
3378
+ }
3379
+ }
3380
+ }
3273
3381
  if (props[propName] == null) {
3274
- var locationName = ReactPropTypeLocationNames[location];
3275
3382
  if (isRequired) {
3276
3383
  if (props[propName] === null) {
3277
- return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
3384
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
3278
3385
  }
3279
- return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
3386
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
3280
3387
  }
3281
3388
  return null;
3282
3389
  } else {
@@ -3291,17 +3398,16 @@ function createChainableTypeChecker(validate) {
3291
3398
  }
3292
3399
 
3293
3400
  function createPrimitiveTypeChecker(expectedType) {
3294
- function validate(props, propName, componentName, location, propFullName) {
3401
+ function validate(props, propName, componentName, location, propFullName, secret) {
3295
3402
  var propValue = props[propName];
3296
3403
  var propType = getPropType(propValue);
3297
3404
  if (propType !== expectedType) {
3298
- var locationName = ReactPropTypeLocationNames[location];
3299
3405
  // `propValue` being instance of, say, date/regexp, pass the 'object'
3300
3406
  // check, but we can offer a more precise error message here rather than
3301
3407
  // 'of type `object`'.
3302
3408
  var preciseType = getPreciseType(propValue);
3303
3409
 
3304
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
3410
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
3305
3411
  }
3306
3412
  return null;
3307
3413
  }
@@ -3309,7 +3415,7 @@ function createPrimitiveTypeChecker(expectedType) {
3309
3415
  }
3310
3416
 
3311
3417
  function createAnyTypeChecker() {
3312
- return createChainableTypeChecker(emptyFunction.thatReturns(null));
3418
+ return createChainableTypeChecker(emptyFunction.thatReturnsNull);
3313
3419
  }
3314
3420
 
3315
3421
  function createArrayOfTypeChecker(typeChecker) {
@@ -3319,12 +3425,11 @@ function createArrayOfTypeChecker(typeChecker) {
3319
3425
  }
3320
3426
  var propValue = props[propName];
3321
3427
  if (!Array.isArray(propValue)) {
3322
- var locationName = ReactPropTypeLocationNames[location];
3323
3428
  var propType = getPropType(propValue);
3324
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
3429
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
3325
3430
  }
3326
3431
  for (var i = 0; i < propValue.length; i++) {
3327
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']');
3432
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
3328
3433
  if (error instanceof Error) {
3329
3434
  return error;
3330
3435
  }
@@ -3338,9 +3443,8 @@ function createElementTypeChecker() {
3338
3443
  function validate(props, propName, componentName, location, propFullName) {
3339
3444
  var propValue = props[propName];
3340
3445
  if (!ReactElement.isValidElement(propValue)) {
3341
- var locationName = ReactPropTypeLocationNames[location];
3342
3446
  var propType = getPropType(propValue);
3343
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
3447
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
3344
3448
  }
3345
3449
  return null;
3346
3450
  }
@@ -3350,10 +3454,9 @@ function createElementTypeChecker() {
3350
3454
  function createInstanceTypeChecker(expectedClass) {
3351
3455
  function validate(props, propName, componentName, location, propFullName) {
3352
3456
  if (!(props[propName] instanceof expectedClass)) {
3353
- var locationName = ReactPropTypeLocationNames[location];
3354
3457
  var expectedClassName = expectedClass.name || ANONYMOUS;
3355
3458
  var actualClassName = getClassName(props[propName]);
3356
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
3459
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
3357
3460
  }
3358
3461
  return null;
3359
3462
  }
@@ -3374,9 +3477,8 @@ function createEnumTypeChecker(expectedValues) {
3374
3477
  }
3375
3478
  }
3376
3479
 
3377
- var locationName = ReactPropTypeLocationNames[location];
3378
3480
  var valuesString = JSON.stringify(expectedValues);
3379
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
3481
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
3380
3482
  }
3381
3483
  return createChainableTypeChecker(validate);
3382
3484
  }
@@ -3389,12 +3491,11 @@ function createObjectOfTypeChecker(typeChecker) {
3389
3491
  var propValue = props[propName];
3390
3492
  var propType = getPropType(propValue);
3391
3493
  if (propType !== 'object') {
3392
- var locationName = ReactPropTypeLocationNames[location];
3393
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
3494
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
3394
3495
  }
3395
3496
  for (var key in propValue) {
3396
3497
  if (propValue.hasOwnProperty(key)) {
3397
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key);
3498
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
3398
3499
  if (error instanceof Error) {
3399
3500
  return error;
3400
3501
  }
@@ -3414,13 +3515,12 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
3414
3515
  function validate(props, propName, componentName, location, propFullName) {
3415
3516
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
3416
3517
  var checker = arrayOfTypeCheckers[i];
3417
- if (checker(props, propName, componentName, location, propFullName) == null) {
3518
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
3418
3519
  return null;
3419
3520
  }
3420
3521
  }
3421
3522
 
3422
- var locationName = ReactPropTypeLocationNames[location];
3423
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
3523
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
3424
3524
  }
3425
3525
  return createChainableTypeChecker(validate);
3426
3526
  }
@@ -3428,8 +3528,7 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
3428
3528
  function createNodeChecker() {
3429
3529
  function validate(props, propName, componentName, location, propFullName) {
3430
3530
  if (!isNode(props[propName])) {
3431
- var locationName = ReactPropTypeLocationNames[location];
3432
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
3531
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
3433
3532
  }
3434
3533
  return null;
3435
3534
  }
@@ -3441,15 +3540,14 @@ function createShapeTypeChecker(shapeTypes) {
3441
3540
  var propValue = props[propName];
3442
3541
  var propType = getPropType(propValue);
3443
3542
  if (propType !== 'object') {
3444
- var locationName = ReactPropTypeLocationNames[location];
3445
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
3543
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
3446
3544
  }
3447
3545
  for (var key in shapeTypes) {
3448
3546
  var checker = shapeTypes[key];
3449
3547
  if (!checker) {
3450
3548
  continue;
3451
3549
  }
3452
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key);
3550
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
3453
3551
  if (error) {
3454
3552
  return error;
3455
3553
  }
@@ -3566,7 +3664,7 @@ function getClassName(propValue) {
3566
3664
  }
3567
3665
 
3568
3666
  module.exports = ReactPropTypes;
3569
- },{"15":15,"20":20,"34":34,"36":36,"42":42,"44":44,"46":46}],22:[function(_dereq_,module,exports){
3667
+ },{"16":16,"23":23,"36":36,"38":38,"44":44,"46":46,"48":48}],23:[function(_dereq_,module,exports){
3570
3668
  /**
3571
3669
  * Copyright 2013-present, Facebook, Inc.
3572
3670
  * All rights reserved.
@@ -3575,40 +3673,15 @@ module.exports = ReactPropTypes;
3575
3673
  * LICENSE file in the root directory of this source tree. An additional grant
3576
3674
  * of patent rights can be found in the PATENTS file in the same directory.
3577
3675
  *
3676
+ *
3578
3677
  */
3579
3678
 
3580
3679
  'use strict';
3581
3680
 
3582
- var _assign = _dereq_(47);
3583
-
3584
- var ReactComponent = _dereq_(10);
3585
- var ReactNoopUpdateQueue = _dereq_(19);
3586
-
3587
- var emptyObject = _dereq_(43);
3681
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
3588
3682
 
3589
- /**
3590
- * Base class helpers for the updating state of a component.
3591
- */
3592
- function ReactPureComponent(props, context, updater) {
3593
- // Duplicated from ReactComponent.
3594
- this.props = props;
3595
- this.context = context;
3596
- this.refs = emptyObject;
3597
- // We initialize the default updater but the real one gets injected by the
3598
- // renderer.
3599
- this.updater = updater || ReactNoopUpdateQueue;
3600
- }
3601
-
3602
- function ComponentDummy() {}
3603
- ComponentDummy.prototype = ReactComponent.prototype;
3604
- ReactPureComponent.prototype = new ComponentDummy();
3605
- ReactPureComponent.prototype.constructor = ReactPureComponent;
3606
- // Avoid an extra prototype jump for these methods.
3607
- _assign(ReactPureComponent.prototype, ReactComponent.prototype);
3608
- ReactPureComponent.prototype.isPureReactComponent = true;
3609
-
3610
- module.exports = ReactPureComponent;
3611
- },{"10":10,"19":19,"43":43,"47":47}],23:[function(_dereq_,module,exports){
3683
+ module.exports = ReactPropTypesSecret;
3684
+ },{}],24:[function(_dereq_,module,exports){
3612
3685
  /**
3613
3686
  * Copyright 2013-present, Facebook, Inc.
3614
3687
  * All rights reserved.
@@ -3621,7 +3694,7 @@ module.exports = ReactPureComponent;
3621
3694
 
3622
3695
  'use strict';
3623
3696
 
3624
- var flattenChildren = _dereq_(32);
3697
+ var flattenChildren = _dereq_(34);
3625
3698
 
3626
3699
  var ReactTransitionChildMapping = {
3627
3700
  /**
@@ -3711,7 +3784,7 @@ var ReactTransitionChildMapping = {
3711
3784
  };
3712
3785
 
3713
3786
  module.exports = ReactTransitionChildMapping;
3714
- },{"32":32}],24:[function(_dereq_,module,exports){
3787
+ },{"34":34}],25:[function(_dereq_,module,exports){
3715
3788
  /**
3716
3789
  * Copyright 2013-present, Facebook, Inc.
3717
3790
  * All rights reserved.
@@ -3724,7 +3797,7 @@ module.exports = ReactTransitionChildMapping;
3724
3797
 
3725
3798
  'use strict';
3726
3799
 
3727
- var ExecutionEnvironment = _dereq_(41);
3800
+ var ExecutionEnvironment = _dereq_(43);
3728
3801
 
3729
3802
  var getVendorPrefixedEventName = _dereq_(1);
3730
3803
 
@@ -3784,7 +3857,7 @@ var ReactTransitionEvents = {
3784
3857
  };
3785
3858
 
3786
3859
  module.exports = ReactTransitionEvents;
3787
- },{"1":1,"41":41}],25:[function(_dereq_,module,exports){
3860
+ },{"1":1,"43":43}],26:[function(_dereq_,module,exports){
3788
3861
  /**
3789
3862
  * Copyright 2013-present, Facebook, Inc.
3790
3863
  * All rights reserved.
@@ -3797,7 +3870,7 @@ module.exports = ReactTransitionEvents;
3797
3870
 
3798
3871
  'use strict';
3799
3872
 
3800
- var _assign = _dereq_(47);
3873
+ var _assign = _dereq_(49);
3801
3874
 
3802
3875
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3803
3876
 
@@ -3806,9 +3879,9 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
3806
3879
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3807
3880
 
3808
3881
  var React = _dereq_(4);
3809
- var ReactTransitionChildMapping = _dereq_(23);
3882
+ var ReactTransitionChildMapping = _dereq_(24);
3810
3883
 
3811
- var emptyFunction = _dereq_(42);
3884
+ var emptyFunction = _dereq_(44);
3812
3885
 
3813
3886
  /**
3814
3887
  * A basis for animations. When children are declaratively added or removed,
@@ -4013,7 +4086,7 @@ ReactTransitionGroup.defaultProps = {
4013
4086
 
4014
4087
 
4015
4088
  module.exports = ReactTransitionGroup;
4016
- },{"23":23,"4":4,"42":42,"47":47}],26:[function(_dereq_,module,exports){
4089
+ },{"24":24,"4":4,"44":44,"49":49}],27:[function(_dereq_,module,exports){
4017
4090
  /**
4018
4091
  * Copyright 2013-present, Facebook, Inc.
4019
4092
  * All rights reserved.
@@ -4040,7 +4113,7 @@ module.exports = {
4040
4113
  YieldComponent: 9,
4041
4114
  Fragment: 10
4042
4115
  };
4043
- },{}],27:[function(_dereq_,module,exports){
4116
+ },{}],28:[function(_dereq_,module,exports){
4044
4117
  /**
4045
4118
  * Copyright 2013-present, Facebook, Inc.
4046
4119
  * All rights reserved.
@@ -4053,8 +4126,8 @@ module.exports = {
4053
4126
 
4054
4127
  'use strict';
4055
4128
 
4056
- module.exports = '16.0.0-alpha';
4057
- },{}],28:[function(_dereq_,module,exports){
4129
+ module.exports = '16.0.0-alpha.4';
4130
+ },{}],29:[function(_dereq_,module,exports){
4058
4131
  /**
4059
4132
  * Copyright 2013-present, Facebook, Inc.
4060
4133
  * All rights reserved.
@@ -4070,12 +4143,12 @@ module.exports = '16.0.0-alpha';
4070
4143
  var React = _dereq_(4);
4071
4144
  var ReactAddonsDOMDependencies = _dereq_(5);
4072
4145
  var ReactComponentWithPureRenderMixin = _dereq_(12);
4073
- var ReactCSSTransitionGroup = _dereq_(6);
4074
- var ReactFragment = _dereq_(18);
4075
- var ReactTransitionGroup = _dereq_(25);
4146
+ var ReactCSSTransitionGroup = _dereq_(7);
4147
+ var ReactFragment = _dereq_(20);
4148
+ var ReactTransitionGroup = _dereq_(26);
4076
4149
 
4077
- var shallowCompare = _dereq_(37);
4078
- var update = _dereq_(39);
4150
+ var shallowCompare = _dereq_(39);
4151
+ var update = _dereq_(41);
4079
4152
 
4080
4153
  React.addons = {
4081
4154
  CSSTransitionGroup: ReactCSSTransitionGroup,
@@ -4105,7 +4178,7 @@ if ("development" !== 'production') {
4105
4178
  }
4106
4179
 
4107
4180
  module.exports = React;
4108
- },{"12":12,"18":18,"25":25,"37":37,"39":39,"4":4,"5":5,"6":6}],29:[function(_dereq_,module,exports){
4181
+ },{"12":12,"20":20,"26":26,"39":39,"4":4,"41":41,"5":5,"7":7}],30:[function(_dereq_,module,exports){
4109
4182
  /**
4110
4183
  * Copyright 2013-present, Facebook, Inc.
4111
4184
  * All rights reserved.
@@ -4118,9 +4191,9 @@ module.exports = React;
4118
4191
 
4119
4192
  'use strict';
4120
4193
 
4121
- var _assign = _dereq_(47);
4194
+ var _assign = _dereq_(49);
4122
4195
 
4123
- var ReactWithAddons = _dereq_(28);
4196
+ var ReactWithAddons = _dereq_(29);
4124
4197
 
4125
4198
  // `version` will be added here by the React module.
4126
4199
  var ReactWithAddonsUMDEntry = _assign({
@@ -4138,7 +4211,7 @@ if ("development" !== 'production') {
4138
4211
  }
4139
4212
 
4140
4213
  module.exports = ReactWithAddonsUMDEntry;
4141
- },{"11":11,"13":13,"28":28,"47":47}],30:[function(_dereq_,module,exports){
4214
+ },{"11":11,"13":13,"29":29,"49":49}],31:[function(_dereq_,module,exports){
4142
4215
  /**
4143
4216
  * Copyright 2013-present, Facebook, Inc.
4144
4217
  * All rights reserved.
@@ -4164,8 +4237,7 @@ if ("development" !== 'production') {
4164
4237
  }
4165
4238
 
4166
4239
  module.exports = canDefineProperty;
4167
- },{}],31:[function(_dereq_,module,exports){
4168
- (function (process){
4240
+ },{}],32:[function(_dereq_,module,exports){
4169
4241
  /**
4170
4242
  * Copyright 2013-present, Facebook, Inc.
4171
4243
  * All rights reserved.
@@ -4178,23 +4250,12 @@ module.exports = canDefineProperty;
4178
4250
 
4179
4251
  'use strict';
4180
4252
 
4181
- var _prodInvariant = _dereq_(36);
4253
+ var _prodInvariant = _dereq_(38);
4182
4254
 
4183
- var ReactPropTypeLocationNames = _dereq_(20);
4255
+ var ReactPropTypesSecret = _dereq_(23);
4184
4256
 
4185
- var invariant = _dereq_(44);
4186
- var warning = _dereq_(46);
4187
-
4188
- var ReactComponentTreeHook;
4189
-
4190
- if (typeof process !== 'undefined' && process.env && "development" === 'test') {
4191
- // Temporary hack.
4192
- // Inline requires don't work well with Jest:
4193
- // https://github.com/facebook/react/issues/7240
4194
- // Remove the inline requires when we don't need them anymore:
4195
- // https://github.com/facebook/react/pull/7178
4196
- ReactComponentTreeHook = _dereq_(11);
4197
- }
4257
+ var invariant = _dereq_(46);
4258
+ var warning = _dereq_(48);
4198
4259
 
4199
4260
  var loggedTypeFailures = {};
4200
4261
 
@@ -4206,65 +4267,65 @@ var loggedTypeFailures = {};
4206
4267
  * @param {object} values Runtime values that need to be type-checked
4207
4268
  * @param {string} location e.g. "prop", "context", "child context"
4208
4269
  * @param {string} componentName Name of the component for error messages.
4209
- * @param {?object} element The React element that is being type-checked
4210
- * @param {?number} workInProgressOrDebugID The React component instance that is being type-checked
4270
+ * @param {?Function} getStack Returns the component stack.
4211
4271
  * @private
4212
4272
  */
4213
- function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
4214
- // It is only safe to pass fiber if it is the work-in-progress version, and
4215
- workInProgressOrDebugID) {
4216
- for (var typeSpecName in typeSpecs) {
4217
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
4218
- var error;
4219
- // Prop type validation may throw. In case they do, we don't want to
4220
- // fail the render phase where it didn't fail before. So we log it.
4221
- // After these have been cleaned up, we'll let them throw.
4222
- try {
4223
- // This is intentionally an invariant that gets caught. It's the same
4224
- // behavior as without this statement except with a better message.
4225
- !(typeof typeSpecs[typeSpecName] === 'function') ? "development" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
4226
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location);
4227
- } catch (ex) {
4228
- error = ex;
4229
- }
4230
- "development" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
4231
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
4232
- // Only monitor this failure once because there tends to be a lot of the
4233
- // same error.
4234
- loggedTypeFailures[error.message] = true;
4273
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
4274
+ if ("development" !== 'production') {
4275
+ for (var typeSpecName in typeSpecs) {
4276
+ if (typeSpecs.hasOwnProperty(typeSpecName)) {
4277
+ var error;
4278
+ // Prop type validation may throw. In case they do, we don't want to
4279
+ // fail the render phase where it didn't fail before. So we log it.
4280
+ // After these have been cleaned up, we'll let them throw.
4281
+ try {
4282
+ // This is intentionally an invariant that gets caught. It's the same
4283
+ // behavior as without this statement except with a better message.
4284
+ !(typeof typeSpecs[typeSpecName] === 'function') ? "development" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', location, typeSpecName) : _prodInvariant('84', componentName || 'React class', location, typeSpecName) : void 0;
4285
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
4286
+ } catch (ex) {
4287
+ error = ex;
4288
+ }
4289
+ "development" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error) : void 0;
4290
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
4291
+ // Only monitor this failure once because there tends to be a lot of the
4292
+ // same error.
4293
+ loggedTypeFailures[error.message] = true;
4235
4294
 
4236
- var componentStackInfo = '';
4295
+ var stack = getStack ? getStack() : '';
4237
4296
 
4238
- if ("development" !== 'production') {
4239
- if (!ReactComponentTreeHook) {
4240
- ReactComponentTreeHook = _dereq_(11);
4241
- }
4242
- if (workInProgressOrDebugID != null) {
4243
- if (typeof workInProgressOrDebugID === 'number') {
4244
- // DebugID from Stack.
4245
- var debugID = workInProgressOrDebugID;
4246
- componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
4247
- } else if (typeof workInProgressOrDebugID.tag === 'number') {
4248
- // This is a Fiber.
4249
- // The stack will only be correct if this is a work in progress
4250
- // version and we're calling it during reconciliation.
4251
- var workInProgress = workInProgressOrDebugID;
4252
- componentStackInfo = ReactComponentTreeHook.getStackAddendumByWorkInProgressFiber(workInProgress);
4253
- }
4254
- } else if (element !== null) {
4255
- componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
4256
- }
4297
+ "development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;
4257
4298
  }
4258
-
4259
- "development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
4260
4299
  }
4261
4300
  }
4262
4301
  }
4263
4302
  }
4264
4303
 
4304
+ module.exports = checkPropTypes;
4305
+ },{"23":23,"38":38,"46":46,"48":48}],33:[function(_dereq_,module,exports){
4306
+ /**
4307
+ * Copyright 2013-present, Facebook, Inc.
4308
+ * All rights reserved.
4309
+ *
4310
+ * This source code is licensed under the BSD-style license found in the
4311
+ * LICENSE file in the root directory of this source tree. An additional grant
4312
+ * of patent rights can be found in the PATENTS file in the same directory.
4313
+ *
4314
+ */
4315
+
4316
+ 'use strict';
4317
+
4318
+ var checkPropTypes = _dereq_(32);
4319
+
4320
+ var _require = _dereq_(15),
4321
+ getStackAddendum = _require.getStackAddendum;
4322
+
4323
+ function checkReactTypeSpec(typeSpecs, values, location, componentName) {
4324
+ checkPropTypes(typeSpecs, values, location, componentName, getStackAddendum);
4325
+ }
4326
+
4265
4327
  module.exports = checkReactTypeSpec;
4266
- }).call(this,undefined)
4267
- },{"11":11,"20":20,"36":36,"44":44,"46":46}],32:[function(_dereq_,module,exports){
4328
+ },{"15":15,"32":32}],34:[function(_dereq_,module,exports){
4268
4329
  (function (process){
4269
4330
  /**
4270
4331
  * Copyright 2013-present, Facebook, Inc.
@@ -4280,8 +4341,8 @@ module.exports = checkReactTypeSpec;
4280
4341
  'use strict';
4281
4342
 
4282
4343
  var KeyEscapeUtils = _dereq_(2);
4283
- var traverseAllChildren = _dereq_(38);
4284
- var warning = _dereq_(46);
4344
+ var traverseAllChildren = _dereq_(40);
4345
+ var warning = _dereq_(48);
4285
4346
 
4286
4347
  var ReactComponentTreeHook;
4287
4348
 
@@ -4342,7 +4403,7 @@ function flattenChildren(children, selfDebugID) {
4342
4403
 
4343
4404
  module.exports = flattenChildren;
4344
4405
  }).call(this,undefined)
4345
- },{"11":11,"2":2,"38":38,"46":46}],33:[function(_dereq_,module,exports){
4406
+ },{"11":11,"2":2,"40":40,"48":48}],35:[function(_dereq_,module,exports){
4346
4407
  /**
4347
4408
  * Copyright 2013-present, Facebook, Inc.
4348
4409
  * All rights reserved.
@@ -4357,30 +4418,28 @@ module.exports = flattenChildren;
4357
4418
  'use strict';
4358
4419
 
4359
4420
  function getComponentName(instanceOrFiber) {
4360
- if ("development" !== 'production') {
4361
- if (typeof instanceOrFiber.getName === 'function') {
4362
- // Stack reconciler
4363
- var instance = instanceOrFiber;
4364
- return instance.getName() || 'Component';
4365
- }
4366
- if (typeof instanceOrFiber.tag === 'number') {
4367
- // Fiber reconciler
4368
- var fiber = instanceOrFiber;
4369
- var type = fiber.type;
4421
+ if (typeof instanceOrFiber.getName === 'function') {
4422
+ // Stack reconciler
4423
+ var instance = instanceOrFiber;
4424
+ return instance.getName();
4425
+ }
4426
+ if (typeof instanceOrFiber.tag === 'number') {
4427
+ // Fiber reconciler
4428
+ var fiber = instanceOrFiber;
4429
+ var type = fiber.type;
4370
4430
 
4371
- if (typeof type === 'string') {
4372
- return type;
4373
- }
4374
- if (typeof type === 'function') {
4375
- return type.displayName || type.name || null;
4376
- }
4431
+ if (typeof type === 'string') {
4432
+ return type;
4433
+ }
4434
+ if (typeof type === 'function') {
4435
+ return type.displayName || type.name;
4377
4436
  }
4378
4437
  }
4379
4438
  return null;
4380
4439
  }
4381
4440
 
4382
4441
  module.exports = getComponentName;
4383
- },{}],34:[function(_dereq_,module,exports){
4442
+ },{}],36:[function(_dereq_,module,exports){
4384
4443
  /**
4385
4444
  * Copyright 2013-present, Facebook, Inc.
4386
4445
  * All rights reserved.
@@ -4421,7 +4480,7 @@ function getIteratorFn(maybeIterable) {
4421
4480
  }
4422
4481
 
4423
4482
  module.exports = getIteratorFn;
4424
- },{}],35:[function(_dereq_,module,exports){
4483
+ },{}],37:[function(_dereq_,module,exports){
4425
4484
  /**
4426
4485
  * Copyright 2013-present, Facebook, Inc.
4427
4486
  * All rights reserved.
@@ -4433,11 +4492,11 @@ module.exports = getIteratorFn;
4433
4492
  */
4434
4493
  'use strict';
4435
4494
 
4436
- var _prodInvariant = _dereq_(36);
4495
+ var _prodInvariant = _dereq_(38);
4437
4496
 
4438
- var ReactElement = _dereq_(15);
4497
+ var ReactElement = _dereq_(16);
4439
4498
 
4440
- var invariant = _dereq_(44);
4499
+ var invariant = _dereq_(46);
4441
4500
 
4442
4501
  /**
4443
4502
  * Returns the first child in a collection of children and verifies that there
@@ -4459,7 +4518,7 @@ function onlyChild(children) {
4459
4518
  }
4460
4519
 
4461
4520
  module.exports = onlyChild;
4462
- },{"15":15,"36":36,"44":44}],36:[function(_dereq_,module,exports){
4521
+ },{"16":16,"38":38,"46":46}],38:[function(_dereq_,module,exports){
4463
4522
  /**
4464
4523
  * Copyright (c) 2013-present, Facebook, Inc.
4465
4524
  * All rights reserved.
@@ -4498,7 +4557,7 @@ function reactProdInvariant(code) {
4498
4557
  }
4499
4558
 
4500
4559
  module.exports = reactProdInvariant;
4501
- },{}],37:[function(_dereq_,module,exports){
4560
+ },{}],39:[function(_dereq_,module,exports){
4502
4561
  /**
4503
4562
  * Copyright 2013-present, Facebook, Inc.
4504
4563
  * All rights reserved.
@@ -4511,7 +4570,7 @@ module.exports = reactProdInvariant;
4511
4570
 
4512
4571
  'use strict';
4513
4572
 
4514
- var shallowEqual = _dereq_(45);
4573
+ var shallowEqual = _dereq_(47);
4515
4574
 
4516
4575
  /**
4517
4576
  * Does a shallow comparison for props and state.
@@ -4523,7 +4582,7 @@ function shallowCompare(instance, nextProps, nextState) {
4523
4582
  }
4524
4583
 
4525
4584
  module.exports = shallowCompare;
4526
- },{"45":45}],38:[function(_dereq_,module,exports){
4585
+ },{"47":47}],40:[function(_dereq_,module,exports){
4527
4586
  /**
4528
4587
  * Copyright 2013-present, Facebook, Inc.
4529
4588
  * All rights reserved.
@@ -4536,15 +4595,15 @@ module.exports = shallowCompare;
4536
4595
 
4537
4596
  'use strict';
4538
4597
 
4539
- var _prodInvariant = _dereq_(36);
4598
+ var _prodInvariant = _dereq_(38);
4540
4599
 
4541
4600
  var ReactCurrentOwner = _dereq_(13);
4542
- var REACT_ELEMENT_TYPE = _dereq_(16);
4601
+ var REACT_ELEMENT_TYPE = _dereq_(17);
4543
4602
 
4544
- var getIteratorFn = _dereq_(34);
4545
- var invariant = _dereq_(44);
4603
+ var getIteratorFn = _dereq_(36);
4604
+ var invariant = _dereq_(46);
4546
4605
  var KeyEscapeUtils = _dereq_(2);
4547
- var warning = _dereq_(46);
4606
+ var warning = _dereq_(48);
4548
4607
 
4549
4608
  var SEPARATOR = '.';
4550
4609
  var SUBSEPARATOR = ':';
@@ -4621,52 +4680,41 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
4621
4680
  } else {
4622
4681
  var iteratorFn = getIteratorFn(children);
4623
4682
  if (iteratorFn) {
4624
- var iterator = iteratorFn.call(children);
4625
- var step;
4626
- if (iteratorFn !== children.entries) {
4627
- var ii = 0;
4628
- while (!(step = iterator.next()).done) {
4629
- child = step.value;
4630
- nextName = nextNamePrefix + getComponentKey(child, ii++);
4631
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
4632
- }
4633
- } else {
4634
- if ("development" !== 'production') {
4683
+ if ("development" !== 'production') {
4684
+ // Warn about using Maps as children
4685
+ if (iteratorFn === children.entries) {
4635
4686
  var mapsAsChildrenAddendum = '';
4636
4687
  if (ReactCurrentOwner.current) {
4637
4688
  var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
4638
4689
  if (mapsAsChildrenOwnerName) {
4639
- mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
4690
+ mapsAsChildrenAddendum = '\n\nCheck the render method of `' + mapsAsChildrenOwnerName + '`.';
4640
4691
  }
4641
4692
  }
4642
- "development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
4693
+ "development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
4643
4694
  didWarnAboutMaps = true;
4644
4695
  }
4645
- // Iterator will provide entry [k,v] tuples rather than values.
4646
- while (!(step = iterator.next()).done) {
4647
- var entry = step.value;
4648
- if (entry) {
4649
- child = entry[1];
4650
- nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
4651
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
4652
- }
4653
- }
4696
+ }
4697
+
4698
+ var iterator = iteratorFn.call(children);
4699
+ var step;
4700
+ var ii = 0;
4701
+ while (!(step = iterator.next()).done) {
4702
+ child = step.value;
4703
+ nextName = nextNamePrefix + getComponentKey(child, ii++);
4704
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
4654
4705
  }
4655
4706
  } else if (type === 'object') {
4656
4707
  var addendum = '';
4657
4708
  if ("development" !== 'production') {
4658
4709
  addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
4659
- if (children._isReactElement) {
4660
- addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
4661
- }
4662
4710
  if (ReactCurrentOwner.current) {
4663
4711
  var name = ReactCurrentOwner.current.getName();
4664
4712
  if (name) {
4665
- addendum += ' Check the render method of `' + name + '`.';
4713
+ addendum += '\n\nCheck the render method of `' + name + '`.';
4666
4714
  }
4667
4715
  }
4668
4716
  }
4669
- var childrenString = String(children);
4717
+ var childrenString = '' + children;
4670
4718
  !false ? "development" !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
4671
4719
  }
4672
4720
  }
@@ -4699,7 +4747,7 @@ function traverseAllChildren(children, callback, traverseContext) {
4699
4747
  }
4700
4748
 
4701
4749
  module.exports = traverseAllChildren;
4702
- },{"13":13,"16":16,"2":2,"34":34,"36":36,"44":44,"46":46}],39:[function(_dereq_,module,exports){
4750
+ },{"13":13,"17":17,"2":2,"36":36,"38":38,"46":46,"48":48}],41:[function(_dereq_,module,exports){
4703
4751
  /**
4704
4752
  * Copyright 2013-present, Facebook, Inc.
4705
4753
  * All rights reserved.
@@ -4714,10 +4762,10 @@ module.exports = traverseAllChildren;
4714
4762
 
4715
4763
  'use strict';
4716
4764
 
4717
- var _prodInvariant = _dereq_(36),
4718
- _assign = _dereq_(47);
4765
+ var _assign = _dereq_(49),
4766
+ _prodInvariant = _dereq_(38);
4719
4767
 
4720
- var invariant = _dereq_(44);
4768
+ var invariant = _dereq_(46);
4721
4769
  var hasOwnProperty = {}.hasOwnProperty;
4722
4770
 
4723
4771
  function shallowCopy(x) {
@@ -4811,7 +4859,7 @@ function update(value, spec) {
4811
4859
  }
4812
4860
 
4813
4861
  module.exports = update;
4814
- },{"36":36,"44":44,"47":47}],40:[function(_dereq_,module,exports){
4862
+ },{"38":38,"46":46,"49":49}],42:[function(_dereq_,module,exports){
4815
4863
  'use strict';
4816
4864
 
4817
4865
  /**
@@ -4825,7 +4873,7 @@ module.exports = update;
4825
4873
  * @typechecks
4826
4874
  */
4827
4875
 
4828
- var invariant = _dereq_(44);
4876
+ var invariant = _dereq_(46);
4829
4877
 
4830
4878
  /**
4831
4879
  * The CSSCore module specifies the API (and implements most of the methods)
@@ -4933,7 +4981,7 @@ var CSSCore = {
4933
4981
  };
4934
4982
 
4935
4983
  module.exports = CSSCore;
4936
- },{"44":44}],41:[function(_dereq_,module,exports){
4984
+ },{"46":46}],43:[function(_dereq_,module,exports){
4937
4985
  /**
4938
4986
  * Copyright (c) 2013-present, Facebook, Inc.
4939
4987
  * All rights reserved.
@@ -4969,7 +5017,7 @@ var ExecutionEnvironment = {
4969
5017
  };
4970
5018
 
4971
5019
  module.exports = ExecutionEnvironment;
4972
- },{}],42:[function(_dereq_,module,exports){
5020
+ },{}],44:[function(_dereq_,module,exports){
4973
5021
  "use strict";
4974
5022
 
4975
5023
  /**
@@ -5008,7 +5056,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
5008
5056
  };
5009
5057
 
5010
5058
  module.exports = emptyFunction;
5011
- },{}],43:[function(_dereq_,module,exports){
5059
+ },{}],45:[function(_dereq_,module,exports){
5012
5060
  /**
5013
5061
  * Copyright (c) 2013-present, Facebook, Inc.
5014
5062
  * All rights reserved.
@@ -5028,7 +5076,7 @@ if ("development" !== 'production') {
5028
5076
  }
5029
5077
 
5030
5078
  module.exports = emptyObject;
5031
- },{}],44:[function(_dereq_,module,exports){
5079
+ },{}],46:[function(_dereq_,module,exports){
5032
5080
  /**
5033
5081
  * Copyright (c) 2013-present, Facebook, Inc.
5034
5082
  * All rights reserved.
@@ -5052,12 +5100,18 @@ module.exports = emptyObject;
5052
5100
  * will remain to ensure logic does not differ in production.
5053
5101
  */
5054
5102
 
5055
- function invariant(condition, format, a, b, c, d, e, f) {
5056
- if ("development" !== 'production') {
5103
+ var validateFormat = function validateFormat(format) {};
5104
+
5105
+ if ("development" !== 'production') {
5106
+ validateFormat = function validateFormat(format) {
5057
5107
  if (format === undefined) {
5058
5108
  throw new Error('invariant requires an error message argument');
5059
5109
  }
5060
- }
5110
+ };
5111
+ }
5112
+
5113
+ function invariant(condition, format, a, b, c, d, e, f) {
5114
+ validateFormat(format);
5061
5115
 
5062
5116
  if (!condition) {
5063
5117
  var error;
@@ -5078,7 +5132,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
5078
5132
  }
5079
5133
 
5080
5134
  module.exports = invariant;
5081
- },{}],45:[function(_dereq_,module,exports){
5135
+ },{}],47:[function(_dereq_,module,exports){
5082
5136
  /**
5083
5137
  * Copyright (c) 2013-present, Facebook, Inc.
5084
5138
  * All rights reserved.
@@ -5130,7 +5184,6 @@ function shallowEqual(objA, objB) {
5130
5184
 
5131
5185
  var keysA = Object.keys(objA);
5132
5186
  var keysB = Object.keys(objB);
5133
- console.log('shallowEqual()', objA, objB)
5134
5187
 
5135
5188
  if (keysA.length !== keysB.length) {
5136
5189
  return false;
@@ -5138,7 +5191,6 @@ console.log('shallowEqual()', objA, objB)
5138
5191
 
5139
5192
  // Test for A's keys different from B.
5140
5193
  for (var i = 0; i < keysA.length; i++) {
5141
- console.log(' is()', objA[keysA[i]], objB[keysA[i]], is(objA[keysA[i]], objB[keysA[i]]))
5142
5194
  if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
5143
5195
  return false;
5144
5196
  }
@@ -5148,7 +5200,7 @@ console.log(' is()', objA[keysA[i]], objB[keysA[i]], is(objA[keysA[i]], objB[ke
5148
5200
  }
5149
5201
 
5150
5202
  module.exports = shallowEqual;
5151
- },{}],46:[function(_dereq_,module,exports){
5203
+ },{}],48:[function(_dereq_,module,exports){
5152
5204
  /**
5153
5205
  * Copyright 2014-2015, Facebook, Inc.
5154
5206
  * All rights reserved.
@@ -5161,7 +5213,7 @@ module.exports = shallowEqual;
5161
5213
 
5162
5214
  'use strict';
5163
5215
 
5164
- var emptyFunction = _dereq_(42);
5216
+ var emptyFunction = _dereq_(44);
5165
5217
 
5166
5218
  /**
5167
5219
  * Similar to invariant but only logs a warning if the condition is not met.
@@ -5215,9 +5267,16 @@ if ("development" !== 'production') {
5215
5267
  }
5216
5268
 
5217
5269
  module.exports = warning;
5218
- },{"42":42}],47:[function(_dereq_,module,exports){
5270
+ },{"44":44}],49:[function(_dereq_,module,exports){
5271
+ /*
5272
+ object-assign
5273
+ (c) Sindre Sorhus
5274
+ @license MIT
5275
+ */
5276
+
5219
5277
  'use strict';
5220
5278
  /* eslint-disable no-unused-vars */
5279
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5221
5280
  var hasOwnProperty = Object.prototype.hasOwnProperty;
5222
5281
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5223
5282
 
@@ -5238,7 +5297,7 @@ function shouldUseNative() {
5238
5297
  // Detect buggy property enumeration order in older V8 versions.
5239
5298
 
5240
5299
  // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5241
- var test1 = new String('abc'); // eslint-disable-line
5300
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5242
5301
  test1[5] = 'de';
5243
5302
  if (Object.getOwnPropertyNames(test1)[0] === '5') {
5244
5303
  return false;
@@ -5267,7 +5326,7 @@ function shouldUseNative() {
5267
5326
  }
5268
5327
 
5269
5328
  return true;
5270
- } catch (e) {
5329
+ } catch (err) {
5271
5330
  // We don't expect any of the above to throw, but better to be safe.
5272
5331
  return false;
5273
5332
  }
@@ -5287,8 +5346,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5287
5346
  }
5288
5347
  }
5289
5348
 
5290
- if (Object.getOwnPropertySymbols) {
5291
- symbols = Object.getOwnPropertySymbols(from);
5349
+ if (getOwnPropertySymbols) {
5350
+ symbols = getOwnPropertySymbols(from);
5292
5351
  for (var i = 0; i < symbols.length; i++) {
5293
5352
  if (propIsEnumerable.call(from, symbols[i])) {
5294
5353
  to[symbols[i]] = from[symbols[i]];
@@ -5300,5 +5359,5 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5300
5359
  return to;
5301
5360
  };
5302
5361
 
5303
- },{}]},{},[29])(29)
5362
+ },{}]},{},[30])(30)
5304
5363
  });