UNPKG

47.7 kBJavaScriptView Raw
1(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.PropTypes = 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(require,module,exports){
2/**
3 * Copyright (c) 2013-present, Facebook, Inc.
4 *
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9'use strict';
10
11var printWarning = function() {};
12
13if ("development" !== 'production') {
14 var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
15 var loggedTypeFailures = {};
16 var has = Function.call.bind(Object.prototype.hasOwnProperty);
17
18 printWarning = function(text) {
19 var message = 'Warning: ' + text;
20 if (typeof console !== 'undefined') {
21 console.error(message);
22 }
23 try {
24 // --- Welcome to debugging React ---
25 // This error was thrown as a convenience so that you can use this stack
26 // to find the callsite that caused this warning to fire.
27 throw new Error(message);
28 } catch (x) {}
29 };
30}
31
32/**
33 * Assert that the values match with the type specs.
34 * Error messages are memorized and will only be shown once.
35 *
36 * @param {object} typeSpecs Map of name to a ReactPropType
37 * @param {object} values Runtime values that need to be type-checked
38 * @param {string} location e.g. "prop", "context", "child context"
39 * @param {string} componentName Name of the component for error messages.
40 * @param {?Function} getStack Returns the component stack.
41 * @private
42 */
43function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
44 if ("development" !== 'production') {
45 for (var typeSpecName in typeSpecs) {
46 if (has(typeSpecs, typeSpecName)) {
47 var error;
48 // Prop type validation may throw. In case they do, we don't want to
49 // fail the render phase where it didn't fail before. So we log it.
50 // After these have been cleaned up, we'll let them throw.
51 try {
52 // This is intentionally an invariant that gets caught. It's the same
53 // behavior as without this statement except with a better message.
54 if (typeof typeSpecs[typeSpecName] !== 'function') {
55 var err = Error(
56 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
57 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
58 );
59 err.name = 'Invariant Violation';
60 throw err;
61 }
62 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
63 } catch (ex) {
64 error = ex;
65 }
66 if (error && !(error instanceof Error)) {
67 printWarning(
68 (componentName || 'React class') + ': type specification of ' +
69 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
70 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
71 'You may have forgotten to pass an argument to the type checker ' +
72 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
73 'shape all require an argument).'
74 );
75 }
76 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
77 // Only monitor this failure once because there tends to be a lot of the
78 // same error.
79 loggedTypeFailures[error.message] = true;
80
81 var stack = getStack ? getStack() : '';
82
83 printWarning(
84 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
85 );
86 }
87 }
88 }
89 }
90}
91
92/**
93 * Resets warning cache when testing.
94 *
95 * @private
96 */
97checkPropTypes.resetWarningCache = function() {
98 if ("development" !== 'production') {
99 loggedTypeFailures = {};
100 }
101}
102
103module.exports = checkPropTypes;
104
105},{"./lib/ReactPropTypesSecret":5}],2:[function(require,module,exports){
106/**
107 * Copyright (c) 2013-present, Facebook, Inc.
108 *
109 * This source code is licensed under the MIT license found in the
110 * LICENSE file in the root directory of this source tree.
111 */
112
113'use strict';
114
115var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
116
117function emptyFunction() {}
118function emptyFunctionWithReset() {}
119emptyFunctionWithReset.resetWarningCache = emptyFunction;
120
121module.exports = function() {
122 function shim(props, propName, componentName, location, propFullName, secret) {
123 if (secret === ReactPropTypesSecret) {
124 // It is still safe when called from React.
125 return;
126 }
127 var err = new Error(
128 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
129 'Use PropTypes.checkPropTypes() to call them. ' +
130 'Read more at http://fb.me/use-check-prop-types'
131 );
132 err.name = 'Invariant Violation';
133 throw err;
134 };
135 shim.isRequired = shim;
136 function getShim() {
137 return shim;
138 };
139 // Important!
140 // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
141 var ReactPropTypes = {
142 array: shim,
143 bool: shim,
144 func: shim,
145 number: shim,
146 object: shim,
147 string: shim,
148 symbol: shim,
149
150 any: shim,
151 arrayOf: getShim,
152 element: shim,
153 elementType: shim,
154 instanceOf: getShim,
155 node: shim,
156 objectOf: getShim,
157 oneOf: getShim,
158 oneOfType: getShim,
159 shape: getShim,
160 exact: getShim,
161
162 checkPropTypes: emptyFunctionWithReset,
163 resetWarningCache: emptyFunction
164 };
165
166 ReactPropTypes.PropTypes = ReactPropTypes;
167
168 return ReactPropTypes;
169};
170
171},{"./lib/ReactPropTypesSecret":5}],3:[function(require,module,exports){
172/**
173 * Copyright (c) 2013-present, Facebook, Inc.
174 *
175 * This source code is licensed under the MIT license found in the
176 * LICENSE file in the root directory of this source tree.
177 */
178
179'use strict';
180
181var ReactIs = require('react-is');
182var assign = require('object-assign');
183
184var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
185var checkPropTypes = require('./checkPropTypes');
186
187var has = Function.call.bind(Object.prototype.hasOwnProperty);
188var printWarning = function() {};
189
190if ("development" !== 'production') {
191 printWarning = function(text) {
192 var message = 'Warning: ' + text;
193 if (typeof console !== 'undefined') {
194 console.error(message);
195 }
196 try {
197 // --- Welcome to debugging React ---
198 // This error was thrown as a convenience so that you can use this stack
199 // to find the callsite that caused this warning to fire.
200 throw new Error(message);
201 } catch (x) {}
202 };
203}
204
205function emptyFunctionThatReturnsNull() {
206 return null;
207}
208
209module.exports = function(isValidElement, throwOnDirectAccess) {
210 /* global Symbol */
211 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
212 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
213
214 /**
215 * Returns the iterator method function contained on the iterable object.
216 *
217 * Be sure to invoke the function with the iterable as context:
218 *
219 * var iteratorFn = getIteratorFn(myIterable);
220 * if (iteratorFn) {
221 * var iterator = iteratorFn.call(myIterable);
222 * ...
223 * }
224 *
225 * @param {?object} maybeIterable
226 * @return {?function}
227 */
228 function getIteratorFn(maybeIterable) {
229 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
230 if (typeof iteratorFn === 'function') {
231 return iteratorFn;
232 }
233 }
234
235 /**
236 * Collection of methods that allow declaration and validation of props that are
237 * supplied to React components. Example usage:
238 *
239 * var Props = require('ReactPropTypes');
240 * var MyArticle = React.createClass({
241 * propTypes: {
242 * // An optional string prop named "description".
243 * description: Props.string,
244 *
245 * // A required enum prop named "category".
246 * category: Props.oneOf(['News','Photos']).isRequired,
247 *
248 * // A prop named "dialog" that requires an instance of Dialog.
249 * dialog: Props.instanceOf(Dialog).isRequired
250 * },
251 * render: function() { ... }
252 * });
253 *
254 * A more formal specification of how these methods are used:
255 *
256 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
257 * decl := ReactPropTypes.{type}(.isRequired)?
258 *
259 * Each and every declaration produces a function with the same signature. This
260 * allows the creation of custom validation functions. For example:
261 *
262 * var MyLink = React.createClass({
263 * propTypes: {
264 * // An optional string or URI prop named "href".
265 * href: function(props, propName, componentName) {
266 * var propValue = props[propName];
267 * if (propValue != null && typeof propValue !== 'string' &&
268 * !(propValue instanceof URI)) {
269 * return new Error(
270 * 'Expected a string or an URI for ' + propName + ' in ' +
271 * componentName
272 * );
273 * }
274 * }
275 * },
276 * render: function() {...}
277 * });
278 *
279 * @internal
280 */
281
282 var ANONYMOUS = '<<anonymous>>';
283
284 // Important!
285 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
286 var ReactPropTypes = {
287 array: createPrimitiveTypeChecker('array'),
288 bool: createPrimitiveTypeChecker('boolean'),
289 func: createPrimitiveTypeChecker('function'),
290 number: createPrimitiveTypeChecker('number'),
291 object: createPrimitiveTypeChecker('object'),
292 string: createPrimitiveTypeChecker('string'),
293 symbol: createPrimitiveTypeChecker('symbol'),
294
295 any: createAnyTypeChecker(),
296 arrayOf: createArrayOfTypeChecker,
297 element: createElementTypeChecker(),
298 elementType: createElementTypeTypeChecker(),
299 instanceOf: createInstanceTypeChecker,
300 node: createNodeChecker(),
301 objectOf: createObjectOfTypeChecker,
302 oneOf: createEnumTypeChecker,
303 oneOfType: createUnionTypeChecker,
304 shape: createShapeTypeChecker,
305 exact: createStrictShapeTypeChecker,
306 };
307
308 /**
309 * inlined Object.is polyfill to avoid requiring consumers ship their own
310 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
311 */
312 /*eslint-disable no-self-compare*/
313 function is(x, y) {
314 // SameValue algorithm
315 if (x === y) {
316 // Steps 1-5, 7-10
317 // Steps 6.b-6.e: +0 != -0
318 return x !== 0 || 1 / x === 1 / y;
319 } else {
320 // Step 6.a: NaN == NaN
321 return x !== x && y !== y;
322 }
323 }
324 /*eslint-enable no-self-compare*/
325
326 /**
327 * We use an Error-like object for backward compatibility as people may call
328 * PropTypes directly and inspect their output. However, we don't use real
329 * Errors anymore. We don't inspect their stack anyway, and creating them
330 * is prohibitively expensive if they are created too often, such as what
331 * happens in oneOfType() for any type before the one that matched.
332 */
333 function PropTypeError(message) {
334 this.message = message;
335 this.stack = '';
336 }
337 // Make `instanceof Error` still work for returned errors.
338 PropTypeError.prototype = Error.prototype;
339
340 function createChainableTypeChecker(validate) {
341 if ("development" !== 'production') {
342 var manualPropTypeCallCache = {};
343 var manualPropTypeWarningCount = 0;
344 }
345 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
346 componentName = componentName || ANONYMOUS;
347 propFullName = propFullName || propName;
348
349 if (secret !== ReactPropTypesSecret) {
350 if (throwOnDirectAccess) {
351 // New behavior only for users of `prop-types` package
352 var err = new Error(
353 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
354 'Use `PropTypes.checkPropTypes()` to call them. ' +
355 'Read more at http://fb.me/use-check-prop-types'
356 );
357 err.name = 'Invariant Violation';
358 throw err;
359 } else if ("development" !== 'production' && typeof console !== 'undefined') {
360 // Old behavior for people using React.PropTypes
361 var cacheKey = componentName + ':' + propName;
362 if (
363 !manualPropTypeCallCache[cacheKey] &&
364 // Avoid spamming the console because they are often not actionable except for lib authors
365 manualPropTypeWarningCount < 3
366 ) {
367 printWarning(
368 'You are manually calling a React.PropTypes validation ' +
369 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
370 'and will throw in the standalone `prop-types` package. ' +
371 'You may be seeing this warning due to a third-party PropTypes ' +
372 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
373 );
374 manualPropTypeCallCache[cacheKey] = true;
375 manualPropTypeWarningCount++;
376 }
377 }
378 }
379 if (props[propName] == null) {
380 if (isRequired) {
381 if (props[propName] === null) {
382 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
383 }
384 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
385 }
386 return null;
387 } else {
388 return validate(props, propName, componentName, location, propFullName);
389 }
390 }
391
392 var chainedCheckType = checkType.bind(null, false);
393 chainedCheckType.isRequired = checkType.bind(null, true);
394
395 return chainedCheckType;
396 }
397
398 function createPrimitiveTypeChecker(expectedType) {
399 function validate(props, propName, componentName, location, propFullName, secret) {
400 var propValue = props[propName];
401 var propType = getPropType(propValue);
402 if (propType !== expectedType) {
403 // `propValue` being instance of, say, date/regexp, pass the 'object'
404 // check, but we can offer a more precise error message here rather than
405 // 'of type `object`'.
406 var preciseType = getPreciseType(propValue);
407
408 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
409 }
410 return null;
411 }
412 return createChainableTypeChecker(validate);
413 }
414
415 function createAnyTypeChecker() {
416 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
417 }
418
419 function createArrayOfTypeChecker(typeChecker) {
420 function validate(props, propName, componentName, location, propFullName) {
421 if (typeof typeChecker !== 'function') {
422 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
423 }
424 var propValue = props[propName];
425 if (!Array.isArray(propValue)) {
426 var propType = getPropType(propValue);
427 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
428 }
429 for (var i = 0; i < propValue.length; i++) {
430 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
431 if (error instanceof Error) {
432 return error;
433 }
434 }
435 return null;
436 }
437 return createChainableTypeChecker(validate);
438 }
439
440 function createElementTypeChecker() {
441 function validate(props, propName, componentName, location, propFullName) {
442 var propValue = props[propName];
443 if (!isValidElement(propValue)) {
444 var propType = getPropType(propValue);
445 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
446 }
447 return null;
448 }
449 return createChainableTypeChecker(validate);
450 }
451
452 function createElementTypeTypeChecker() {
453 function validate(props, propName, componentName, location, propFullName) {
454 var propValue = props[propName];
455 if (!ReactIs.isValidElementType(propValue)) {
456 var propType = getPropType(propValue);
457 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
458 }
459 return null;
460 }
461 return createChainableTypeChecker(validate);
462 }
463
464 function createInstanceTypeChecker(expectedClass) {
465 function validate(props, propName, componentName, location, propFullName) {
466 if (!(props[propName] instanceof expectedClass)) {
467 var expectedClassName = expectedClass.name || ANONYMOUS;
468 var actualClassName = getClassName(props[propName]);
469 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
470 }
471 return null;
472 }
473 return createChainableTypeChecker(validate);
474 }
475
476 function createEnumTypeChecker(expectedValues) {
477 if (!Array.isArray(expectedValues)) {
478 if ("development" !== 'production') {
479 if (arguments.length > 1) {
480 printWarning(
481 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
482 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
483 );
484 } else {
485 printWarning('Invalid argument supplied to oneOf, expected an array.');
486 }
487 }
488 return emptyFunctionThatReturnsNull;
489 }
490
491 function validate(props, propName, componentName, location, propFullName) {
492 var propValue = props[propName];
493 for (var i = 0; i < expectedValues.length; i++) {
494 if (is(propValue, expectedValues[i])) {
495 return null;
496 }
497 }
498
499 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
500 var type = getPreciseType(value);
501 if (type === 'symbol') {
502 return String(value);
503 }
504 return value;
505 });
506 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
507 }
508 return createChainableTypeChecker(validate);
509 }
510
511 function createObjectOfTypeChecker(typeChecker) {
512 function validate(props, propName, componentName, location, propFullName) {
513 if (typeof typeChecker !== 'function') {
514 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
515 }
516 var propValue = props[propName];
517 var propType = getPropType(propValue);
518 if (propType !== 'object') {
519 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
520 }
521 for (var key in propValue) {
522 if (has(propValue, key)) {
523 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
524 if (error instanceof Error) {
525 return error;
526 }
527 }
528 }
529 return null;
530 }
531 return createChainableTypeChecker(validate);
532 }
533
534 function createUnionTypeChecker(arrayOfTypeCheckers) {
535 if (!Array.isArray(arrayOfTypeCheckers)) {
536 "development" !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
537 return emptyFunctionThatReturnsNull;
538 }
539
540 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
541 var checker = arrayOfTypeCheckers[i];
542 if (typeof checker !== 'function') {
543 printWarning(
544 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
545 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
546 );
547 return emptyFunctionThatReturnsNull;
548 }
549 }
550
551 function validate(props, propName, componentName, location, propFullName) {
552 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
553 var checker = arrayOfTypeCheckers[i];
554 if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
555 return null;
556 }
557 }
558
559 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
560 }
561 return createChainableTypeChecker(validate);
562 }
563
564 function createNodeChecker() {
565 function validate(props, propName, componentName, location, propFullName) {
566 if (!isNode(props[propName])) {
567 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
568 }
569 return null;
570 }
571 return createChainableTypeChecker(validate);
572 }
573
574 function createShapeTypeChecker(shapeTypes) {
575 function validate(props, propName, componentName, location, propFullName) {
576 var propValue = props[propName];
577 var propType = getPropType(propValue);
578 if (propType !== 'object') {
579 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
580 }
581 for (var key in shapeTypes) {
582 var checker = shapeTypes[key];
583 if (!checker) {
584 continue;
585 }
586 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
587 if (error) {
588 return error;
589 }
590 }
591 return null;
592 }
593 return createChainableTypeChecker(validate);
594 }
595
596 function createStrictShapeTypeChecker(shapeTypes) {
597 function validate(props, propName, componentName, location, propFullName) {
598 var propValue = props[propName];
599 var propType = getPropType(propValue);
600 if (propType !== 'object') {
601 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
602 }
603 // We need to check all keys in case some are required but missing from
604 // props.
605 var allKeys = assign({}, props[propName], shapeTypes);
606 for (var key in allKeys) {
607 var checker = shapeTypes[key];
608 if (!checker) {
609 return new PropTypeError(
610 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
611 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
612 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
613 );
614 }
615 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
616 if (error) {
617 return error;
618 }
619 }
620 return null;
621 }
622
623 return createChainableTypeChecker(validate);
624 }
625
626 function isNode(propValue) {
627 switch (typeof propValue) {
628 case 'number':
629 case 'string':
630 case 'undefined':
631 return true;
632 case 'boolean':
633 return !propValue;
634 case 'object':
635 if (Array.isArray(propValue)) {
636 return propValue.every(isNode);
637 }
638 if (propValue === null || isValidElement(propValue)) {
639 return true;
640 }
641
642 var iteratorFn = getIteratorFn(propValue);
643 if (iteratorFn) {
644 var iterator = iteratorFn.call(propValue);
645 var step;
646 if (iteratorFn !== propValue.entries) {
647 while (!(step = iterator.next()).done) {
648 if (!isNode(step.value)) {
649 return false;
650 }
651 }
652 } else {
653 // Iterator will provide entry [k,v] tuples rather than values.
654 while (!(step = iterator.next()).done) {
655 var entry = step.value;
656 if (entry) {
657 if (!isNode(entry[1])) {
658 return false;
659 }
660 }
661 }
662 }
663 } else {
664 return false;
665 }
666
667 return true;
668 default:
669 return false;
670 }
671 }
672
673 function isSymbol(propType, propValue) {
674 // Native Symbol.
675 if (propType === 'symbol') {
676 return true;
677 }
678
679 // falsy value can't be a Symbol
680 if (!propValue) {
681 return false;
682 }
683
684 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
685 if (propValue['@@toStringTag'] === 'Symbol') {
686 return true;
687 }
688
689 // Fallback for non-spec compliant Symbols which are polyfilled.
690 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
691 return true;
692 }
693
694 return false;
695 }
696
697 // Equivalent of `typeof` but with special handling for array and regexp.
698 function getPropType(propValue) {
699 var propType = typeof propValue;
700 if (Array.isArray(propValue)) {
701 return 'array';
702 }
703 if (propValue instanceof RegExp) {
704 // Old webkits (at least until Android 4.0) return 'function' rather than
705 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
706 // passes PropTypes.object.
707 return 'object';
708 }
709 if (isSymbol(propType, propValue)) {
710 return 'symbol';
711 }
712 return propType;
713 }
714
715 // This handles more types than `getPropType`. Only used for error messages.
716 // See `createPrimitiveTypeChecker`.
717 function getPreciseType(propValue) {
718 if (typeof propValue === 'undefined' || propValue === null) {
719 return '' + propValue;
720 }
721 var propType = getPropType(propValue);
722 if (propType === 'object') {
723 if (propValue instanceof Date) {
724 return 'date';
725 } else if (propValue instanceof RegExp) {
726 return 'regexp';
727 }
728 }
729 return propType;
730 }
731
732 // Returns a string that is postfixed to a warning about an invalid type.
733 // For example, "undefined" or "of type array"
734 function getPostfixForTypeWarning(value) {
735 var type = getPreciseType(value);
736 switch (type) {
737 case 'array':
738 case 'object':
739 return 'an ' + type;
740 case 'boolean':
741 case 'date':
742 case 'regexp':
743 return 'a ' + type;
744 default:
745 return type;
746 }
747 }
748
749 // Returns class name of the object, if any.
750 function getClassName(propValue) {
751 if (!propValue.constructor || !propValue.constructor.name) {
752 return ANONYMOUS;
753 }
754 return propValue.constructor.name;
755 }
756
757 ReactPropTypes.checkPropTypes = checkPropTypes;
758 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
759 ReactPropTypes.PropTypes = ReactPropTypes;
760
761 return ReactPropTypes;
762};
763
764},{"./checkPropTypes":1,"./lib/ReactPropTypesSecret":5,"object-assign":6,"react-is":10}],4:[function(require,module,exports){
765/**
766 * Copyright (c) 2013-present, Facebook, Inc.
767 *
768 * This source code is licensed under the MIT license found in the
769 * LICENSE file in the root directory of this source tree.
770 */
771
772if ("development" !== 'production') {
773 var ReactIs = require('react-is');
774
775 // By explicitly using `prop-types` you are opting into new development behavior.
776 // http://fb.me/prop-types-in-prod
777 var throwOnDirectAccess = true;
778 module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);
779} else {
780 // By explicitly using `prop-types` you are opting into new production behavior.
781 // http://fb.me/prop-types-in-prod
782 module.exports = require('./factoryWithThrowingShims')();
783}
784
785},{"./factoryWithThrowingShims":2,"./factoryWithTypeCheckers":3,"react-is":10}],5:[function(require,module,exports){
786/**
787 * Copyright (c) 2013-present, Facebook, Inc.
788 *
789 * This source code is licensed under the MIT license found in the
790 * LICENSE file in the root directory of this source tree.
791 */
792
793'use strict';
794
795var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
796
797module.exports = ReactPropTypesSecret;
798
799},{}],6:[function(require,module,exports){
800/*
801object-assign
802(c) Sindre Sorhus
803@license MIT
804*/
805
806'use strict';
807/* eslint-disable no-unused-vars */
808var getOwnPropertySymbols = Object.getOwnPropertySymbols;
809var hasOwnProperty = Object.prototype.hasOwnProperty;
810var propIsEnumerable = Object.prototype.propertyIsEnumerable;
811
812function toObject(val) {
813 if (val === null || val === undefined) {
814 throw new TypeError('Object.assign cannot be called with null or undefined');
815 }
816
817 return Object(val);
818}
819
820function shouldUseNative() {
821 try {
822 if (!Object.assign) {
823 return false;
824 }
825
826 // Detect buggy property enumeration order in older V8 versions.
827
828 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
829 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
830 test1[5] = 'de';
831 if (Object.getOwnPropertyNames(test1)[0] === '5') {
832 return false;
833 }
834
835 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
836 var test2 = {};
837 for (var i = 0; i < 10; i++) {
838 test2['_' + String.fromCharCode(i)] = i;
839 }
840 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
841 return test2[n];
842 });
843 if (order2.join('') !== '0123456789') {
844 return false;
845 }
846
847 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
848 var test3 = {};
849 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
850 test3[letter] = letter;
851 });
852 if (Object.keys(Object.assign({}, test3)).join('') !==
853 'abcdefghijklmnopqrst') {
854 return false;
855 }
856
857 return true;
858 } catch (err) {
859 // We don't expect any of the above to throw, but better to be safe.
860 return false;
861 }
862}
863
864module.exports = shouldUseNative() ? Object.assign : function (target, source) {
865 var from;
866 var to = toObject(target);
867 var symbols;
868
869 for (var s = 1; s < arguments.length; s++) {
870 from = Object(arguments[s]);
871
872 for (var key in from) {
873 if (hasOwnProperty.call(from, key)) {
874 to[key] = from[key];
875 }
876 }
877
878 if (getOwnPropertySymbols) {
879 symbols = getOwnPropertySymbols(from);
880 for (var i = 0; i < symbols.length; i++) {
881 if (propIsEnumerable.call(from, symbols[i])) {
882 to[symbols[i]] = from[symbols[i]];
883 }
884 }
885 }
886 }
887
888 return to;
889};
890
891},{}],7:[function(require,module,exports){
892// shim for using process in browser
893var process = module.exports = {};
894
895// cached from whatever global is present so that test runners that stub it
896// don't break things. But we need to wrap it in a try catch in case it is
897// wrapped in strict mode code which doesn't define any globals. It's inside a
898// function because try/catches deoptimize in certain engines.
899
900var cachedSetTimeout;
901var cachedClearTimeout;
902
903function defaultSetTimout() {
904 throw new Error('setTimeout has not been defined');
905}
906function defaultClearTimeout () {
907 throw new Error('clearTimeout has not been defined');
908}
909(function () {
910 try {
911 if (typeof setTimeout === 'function') {
912 cachedSetTimeout = setTimeout;
913 } else {
914 cachedSetTimeout = defaultSetTimout;
915 }
916 } catch (e) {
917 cachedSetTimeout = defaultSetTimout;
918 }
919 try {
920 if (typeof clearTimeout === 'function') {
921 cachedClearTimeout = clearTimeout;
922 } else {
923 cachedClearTimeout = defaultClearTimeout;
924 }
925 } catch (e) {
926 cachedClearTimeout = defaultClearTimeout;
927 }
928} ())
929function runTimeout(fun) {
930 if (cachedSetTimeout === setTimeout) {
931 //normal enviroments in sane situations
932 return setTimeout(fun, 0);
933 }
934 // if setTimeout wasn't available but was latter defined
935 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
936 cachedSetTimeout = setTimeout;
937 return setTimeout(fun, 0);
938 }
939 try {
940 // when when somebody has screwed with setTimeout but no I.E. maddness
941 return cachedSetTimeout(fun, 0);
942 } catch(e){
943 try {
944 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
945 return cachedSetTimeout.call(null, fun, 0);
946 } catch(e){
947 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
948 return cachedSetTimeout.call(this, fun, 0);
949 }
950 }
951
952
953}
954function runClearTimeout(marker) {
955 if (cachedClearTimeout === clearTimeout) {
956 //normal enviroments in sane situations
957 return clearTimeout(marker);
958 }
959 // if clearTimeout wasn't available but was latter defined
960 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
961 cachedClearTimeout = clearTimeout;
962 return clearTimeout(marker);
963 }
964 try {
965 // when when somebody has screwed with setTimeout but no I.E. maddness
966 return cachedClearTimeout(marker);
967 } catch (e){
968 try {
969 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
970 return cachedClearTimeout.call(null, marker);
971 } catch (e){
972 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
973 // Some versions of I.E. have different rules for clearTimeout vs setTimeout
974 return cachedClearTimeout.call(this, marker);
975 }
976 }
977
978
979
980}
981var queue = [];
982var draining = false;
983var currentQueue;
984var queueIndex = -1;
985
986function cleanUpNextTick() {
987 if (!draining || !currentQueue) {
988 return;
989 }
990 draining = false;
991 if (currentQueue.length) {
992 queue = currentQueue.concat(queue);
993 } else {
994 queueIndex = -1;
995 }
996 if (queue.length) {
997 drainQueue();
998 }
999}
1000
1001function drainQueue() {
1002 if (draining) {
1003 return;
1004 }
1005 var timeout = runTimeout(cleanUpNextTick);
1006 draining = true;
1007
1008 var len = queue.length;
1009 while(len) {
1010 currentQueue = queue;
1011 queue = [];
1012 while (++queueIndex < len) {
1013 if (currentQueue) {
1014 currentQueue[queueIndex].run();
1015 }
1016 }
1017 queueIndex = -1;
1018 len = queue.length;
1019 }
1020 currentQueue = null;
1021 draining = false;
1022 runClearTimeout(timeout);
1023}
1024
1025process.nextTick = function (fun) {
1026 var args = new Array(arguments.length - 1);
1027 if (arguments.length > 1) {
1028 for (var i = 1; i < arguments.length; i++) {
1029 args[i - 1] = arguments[i];
1030 }
1031 }
1032 queue.push(new Item(fun, args));
1033 if (queue.length === 1 && !draining) {
1034 runTimeout(drainQueue);
1035 }
1036};
1037
1038// v8 likes predictible objects
1039function Item(fun, array) {
1040 this.fun = fun;
1041 this.array = array;
1042}
1043Item.prototype.run = function () {
1044 this.fun.apply(null, this.array);
1045};
1046process.title = 'browser';
1047process.browser = true;
1048process.env = {};
1049process.argv = [];
1050process.version = ''; // empty string to avoid regexp issues
1051process.versions = {};
1052
1053function noop() {}
1054
1055process.on = noop;
1056process.addListener = noop;
1057process.once = noop;
1058process.off = noop;
1059process.removeListener = noop;
1060process.removeAllListeners = noop;
1061process.emit = noop;
1062process.prependListener = noop;
1063process.prependOnceListener = noop;
1064
1065process.listeners = function (name) { return [] }
1066
1067process.binding = function (name) {
1068 throw new Error('process.binding is not supported');
1069};
1070
1071process.cwd = function () { return '/' };
1072process.chdir = function (dir) {
1073 throw new Error('process.chdir is not supported');
1074};
1075process.umask = function() { return 0; };
1076
1077},{}],8:[function(require,module,exports){
1078(function (process){
1079/** @license React v16.8.1
1080 * react-is.development.js
1081 *
1082 * Copyright (c) Facebook, Inc. and its affiliates.
1083 *
1084 * This source code is licensed under the MIT license found in the
1085 * LICENSE file in the root directory of this source tree.
1086 */
1087
1088'use strict';
1089
1090
1091
1092if (process.env.NODE_ENV !== "production") {
1093 (function() {
1094'use strict';
1095
1096Object.defineProperty(exports, '__esModule', { value: true });
1097
1098// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1099// nor polyfill, then a plain number is used for performance.
1100var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1101
1102var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1103var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1104var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1105var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1106var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1107var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1108var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
1109var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1110var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1111var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1112var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1113var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1114var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1115
1116function isValidElementType(type) {
1117 return typeof type === 'string' || typeof type === 'function' ||
1118 // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1119 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
1120}
1121
1122/**
1123 * Forked from fbjs/warning:
1124 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
1125 *
1126 * Only change is we use console.warn instead of console.error,
1127 * and do nothing when 'console' is not supported.
1128 * This really simplifies the code.
1129 * ---
1130 * Similar to invariant but only logs a warning if the condition is not met.
1131 * This can be used to log issues in development environments in critical
1132 * paths. Removing the logging code for production environments will keep the
1133 * same logic and follow the same code paths.
1134 */
1135
1136var lowPriorityWarning = function () {};
1137
1138{
1139 var printWarning = function (format) {
1140 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1141 args[_key - 1] = arguments[_key];
1142 }
1143
1144 var argIndex = 0;
1145 var message = 'Warning: ' + format.replace(/%s/g, function () {
1146 return args[argIndex++];
1147 });
1148 if (typeof console !== 'undefined') {
1149 console.warn(message);
1150 }
1151 try {
1152 // --- Welcome to debugging React ---
1153 // This error was thrown as a convenience so that you can use this stack
1154 // to find the callsite that caused this warning to fire.
1155 throw new Error(message);
1156 } catch (x) {}
1157 };
1158
1159 lowPriorityWarning = function (condition, format) {
1160 if (format === undefined) {
1161 throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
1162 }
1163 if (!condition) {
1164 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
1165 args[_key2 - 2] = arguments[_key2];
1166 }
1167
1168 printWarning.apply(undefined, [format].concat(args));
1169 }
1170 };
1171}
1172
1173var lowPriorityWarning$1 = lowPriorityWarning;
1174
1175function typeOf(object) {
1176 if (typeof object === 'object' && object !== null) {
1177 var $$typeof = object.$$typeof;
1178 switch ($$typeof) {
1179 case REACT_ELEMENT_TYPE:
1180 var type = object.type;
1181
1182 switch (type) {
1183 case REACT_ASYNC_MODE_TYPE:
1184 case REACT_CONCURRENT_MODE_TYPE:
1185 case REACT_FRAGMENT_TYPE:
1186 case REACT_PROFILER_TYPE:
1187 case REACT_STRICT_MODE_TYPE:
1188 case REACT_SUSPENSE_TYPE:
1189 return type;
1190 default:
1191 var $$typeofType = type && type.$$typeof;
1192
1193 switch ($$typeofType) {
1194 case REACT_CONTEXT_TYPE:
1195 case REACT_FORWARD_REF_TYPE:
1196 case REACT_PROVIDER_TYPE:
1197 return $$typeofType;
1198 default:
1199 return $$typeof;
1200 }
1201 }
1202 case REACT_LAZY_TYPE:
1203 case REACT_MEMO_TYPE:
1204 case REACT_PORTAL_TYPE:
1205 return $$typeof;
1206 }
1207 }
1208
1209 return undefined;
1210}
1211
1212// AsyncMode is deprecated along with isAsyncMode
1213var AsyncMode = REACT_ASYNC_MODE_TYPE;
1214var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1215var ContextConsumer = REACT_CONTEXT_TYPE;
1216var ContextProvider = REACT_PROVIDER_TYPE;
1217var Element = REACT_ELEMENT_TYPE;
1218var ForwardRef = REACT_FORWARD_REF_TYPE;
1219var Fragment = REACT_FRAGMENT_TYPE;
1220var Lazy = REACT_LAZY_TYPE;
1221var Memo = REACT_MEMO_TYPE;
1222var Portal = REACT_PORTAL_TYPE;
1223var Profiler = REACT_PROFILER_TYPE;
1224var StrictMode = REACT_STRICT_MODE_TYPE;
1225var Suspense = REACT_SUSPENSE_TYPE;
1226
1227var hasWarnedAboutDeprecatedIsAsyncMode = false;
1228
1229// AsyncMode should be deprecated
1230function isAsyncMode(object) {
1231 {
1232 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1233 hasWarnedAboutDeprecatedIsAsyncMode = true;
1234 lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1235 }
1236 }
1237 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1238}
1239function isConcurrentMode(object) {
1240 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1241}
1242function isContextConsumer(object) {
1243 return typeOf(object) === REACT_CONTEXT_TYPE;
1244}
1245function isContextProvider(object) {
1246 return typeOf(object) === REACT_PROVIDER_TYPE;
1247}
1248function isElement(object) {
1249 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1250}
1251function isForwardRef(object) {
1252 return typeOf(object) === REACT_FORWARD_REF_TYPE;
1253}
1254function isFragment(object) {
1255 return typeOf(object) === REACT_FRAGMENT_TYPE;
1256}
1257function isLazy(object) {
1258 return typeOf(object) === REACT_LAZY_TYPE;
1259}
1260function isMemo(object) {
1261 return typeOf(object) === REACT_MEMO_TYPE;
1262}
1263function isPortal(object) {
1264 return typeOf(object) === REACT_PORTAL_TYPE;
1265}
1266function isProfiler(object) {
1267 return typeOf(object) === REACT_PROFILER_TYPE;
1268}
1269function isStrictMode(object) {
1270 return typeOf(object) === REACT_STRICT_MODE_TYPE;
1271}
1272function isSuspense(object) {
1273 return typeOf(object) === REACT_SUSPENSE_TYPE;
1274}
1275
1276exports.typeOf = typeOf;
1277exports.AsyncMode = AsyncMode;
1278exports.ConcurrentMode = ConcurrentMode;
1279exports.ContextConsumer = ContextConsumer;
1280exports.ContextProvider = ContextProvider;
1281exports.Element = Element;
1282exports.ForwardRef = ForwardRef;
1283exports.Fragment = Fragment;
1284exports.Lazy = Lazy;
1285exports.Memo = Memo;
1286exports.Portal = Portal;
1287exports.Profiler = Profiler;
1288exports.StrictMode = StrictMode;
1289exports.Suspense = Suspense;
1290exports.isValidElementType = isValidElementType;
1291exports.isAsyncMode = isAsyncMode;
1292exports.isConcurrentMode = isConcurrentMode;
1293exports.isContextConsumer = isContextConsumer;
1294exports.isContextProvider = isContextProvider;
1295exports.isElement = isElement;
1296exports.isForwardRef = isForwardRef;
1297exports.isFragment = isFragment;
1298exports.isLazy = isLazy;
1299exports.isMemo = isMemo;
1300exports.isPortal = isPortal;
1301exports.isProfiler = isProfiler;
1302exports.isStrictMode = isStrictMode;
1303exports.isSuspense = isSuspense;
1304 })();
1305}
1306
1307}).call(this,require('_process'))
1308},{"_process":7}],9:[function(require,module,exports){
1309/** @license React v16.8.1
1310 * react-is.production.min.js
1311 *
1312 * Copyright (c) Facebook, Inc. and its affiliates.
1313 *
1314 * This source code is licensed under the MIT license found in the
1315 * LICENSE file in the root directory of this source tree.
1316 */
1317
1318'use strict';Object.defineProperty(exports,"__esModule",{value:!0});
1319var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.memo"):
132060115,r=b?Symbol.for("react.lazy"):60116;function t(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;
1321exports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};
1322exports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};
1323exports.isSuspense=function(a){return t(a)===p};
1324
1325},{}],10:[function(require,module,exports){
1326(function (process){
1327'use strict';
1328
1329if (process.env.NODE_ENV === 'production') {
1330 module.exports = require('./cjs/react-is.production.min.js');
1331} else {
1332 module.exports = require('./cjs/react-is.development.js');
1333}
1334
1335}).call(this,require('_process'))
1336},{"./cjs/react-is.development.js":8,"./cjs/react-is.production.min.js":9,"_process":7}]},{},[4])(4)
1337});
\No newline at end of file