Guest User

dashboard.js

a guest
Mar 1st, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // modules are defined as an array
  2. // [ module function, map of requires ]
  3. //
  4. // map of requires is short require name -> numeric require
  5. //
  6. // anything defined in a previous bundle is accessed via the
  7. // orig method which is the require for previous bundles
  8.  
  9. // eslint-disable-next-line no-global-assign
  10. parcelRequire = (function (modules, cache, entry, globalName) {
  11.   // Save the require from previous bundle to this closure if any
  12.   var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
  13.   var nodeRequire = typeof require === 'function' && require;
  14.  
  15.   function newRequire(name, jumped) {
  16.     if (!cache[name]) {
  17.       if (!modules[name]) {
  18.         // if we cannot find the module within our internal map or
  19.         // cache jump to the current global require ie. the last bundle
  20.         // that was added to the page.
  21.         var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
  22.         if (!jumped && currentRequire) {
  23.           return currentRequire(name, true);
  24.         }
  25.  
  26.         // If there are other bundles on this page the require from the
  27.         // previous one is saved to 'previousRequire'. Repeat this as
  28.         // many times as there are bundles until the module is found or
  29.         // we exhaust the require chain.
  30.         if (previousRequire) {
  31.           return previousRequire(name, true);
  32.         }
  33.  
  34.         // Try the node require function if it exists.
  35.         if (nodeRequire && typeof name === 'string') {
  36.           return nodeRequire(name);
  37.         }
  38.  
  39.         var err = new Error('Cannot find module \'' + name + '\'');
  40.         err.code = 'MODULE_NOT_FOUND';
  41.         throw err;
  42.       }
  43.  
  44.       localRequire.resolve = resolve;
  45.       localRequire.cache = {};
  46.  
  47.       var module = cache[name] = new newRequire.Module(name);
  48.  
  49.       modules[name][0].call(module.exports, localRequire, module, module.exports, this);
  50.     }
  51.  
  52.     return cache[name].exports;
  53.  
  54.     function localRequire(x){
  55.       return newRequire(localRequire.resolve(x));
  56.     }
  57.  
  58.     function resolve(x){
  59.       return modules[name][1][x] || x;
  60.     }
  61.   }
  62.  
  63.   function Module(moduleName) {
  64.     this.id = moduleName;
  65.     this.bundle = newRequire;
  66.     this.exports = {};
  67.   }
  68.  
  69.   newRequire.isParcelRequire = true;
  70.   newRequire.Module = Module;
  71.   newRequire.modules = modules;
  72.   newRequire.cache = cache;
  73.   newRequire.parent = previousRequire;
  74.   newRequire.register = function (id, exports) {
  75.     modules[id] = [function (require, module) {
  76.       module.exports = exports;
  77.     }, {}];
  78.   };
  79.  
  80.   for (var i = 0; i < entry.length; i++) {
  81.     newRequire(entry[i]);
  82.   }
  83.  
  84.   if (entry.length) {
  85.     // Expose entry point to Node, AMD or browser globals
  86.     // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
  87.     var mainExports = newRequire(entry[entry.length - 1]);
  88.  
  89.     // CommonJS
  90.     if (typeof exports === "object" && typeof module !== "undefined") {
  91.       module.exports = mainExports;
  92.  
  93.     // RequireJS
  94.     } else if (typeof define === "function" && define.amd) {
  95.      define(function () {
  96.        return mainExports;
  97.      });
  98.  
  99.     // <script>
  100.     } else if (globalName) {
  101.       this[globalName] = mainExports;
  102.     }
  103.   }
  104.  
  105.   // Override the current require with this new one
  106.   return newRequire;
  107. })({"../node_modules/object-assign/index.js":[function(require,module,exports) {
  108. /*
  109. object-assign
  110. (c) Sindre Sorhus
  111. @license MIT
  112. */
  113. 'use strict';
  114. /* eslint-disable no-unused-vars */
  115.  
  116. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  117. var hasOwnProperty = Object.prototype.hasOwnProperty;
  118. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  119.  
  120. function toObject(val) {
  121.   if (val === null || val === undefined) {
  122.     throw new TypeError('Object.assign cannot be called with null or undefined');
  123.   }
  124.  
  125.   return Object(val);
  126. }
  127.  
  128. function shouldUseNative() {
  129.   try {
  130.     if (!Object.assign) {
  131.       return false;
  132.     } // Detect buggy property enumeration order in older V8 versions.
  133.     // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  134.  
  135.  
  136.     var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  137.  
  138.     test1[5] = 'de';
  139.  
  140.     if (Object.getOwnPropertyNames(test1)[0] === '5') {
  141.       return false;
  142.     } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  143.  
  144.  
  145.     var test2 = {};
  146.  
  147.     for (var i = 0; i < 10; i++) {
  148.       test2['_' + String.fromCharCode(i)] = i;
  149.     }
  150.  
  151.     var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  152.       return test2[n];
  153.     });
  154.  
  155.     if (order2.join('') !== '0123456789') {
  156.       return false;
  157.     } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  158.  
  159.  
  160.     var test3 = {};
  161.     'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  162.       test3[letter] = letter;
  163.     });
  164.  
  165.     if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
  166.       return false;
  167.     }
  168.  
  169.     return true;
  170.   } catch (err) {
  171.     // We don't expect any of the above to throw, but better to be safe.
  172.     return false;
  173.   }
  174. }
  175.  
  176. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  177.   var from;
  178.   var to = toObject(target);
  179.   var symbols;
  180.  
  181.   for (var s = 1; s < arguments.length; s++) {
  182.     from = Object(arguments[s]);
  183.  
  184.     for (var key in from) {
  185.       if (hasOwnProperty.call(from, key)) {
  186.         to[key] = from[key];
  187.       }
  188.     }
  189.  
  190.     if (getOwnPropertySymbols) {
  191.       symbols = getOwnPropertySymbols(from);
  192.  
  193.       for (var i = 0; i < symbols.length; i++) {
  194.         if (propIsEnumerable.call(from, symbols[i])) {
  195.           to[symbols[i]] = from[symbols[i]];
  196.         }
  197.       }
  198.     }
  199.   }
  200.  
  201.   return to;
  202. };
  203. },{}],"../node_modules/prop-types/lib/ReactPropTypesSecret.js":[function(require,module,exports) {
  204. /**
  205.  * Copyright (c) 2013-present, Facebook, Inc.
  206.  *
  207.  * This source code is licensed under the MIT license found in the
  208.  * LICENSE file in the root directory of this source tree.
  209.  */
  210.  
  211. 'use strict';
  212.  
  213. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  214.  
  215. module.exports = ReactPropTypesSecret;
  216.  
  217. },{}],"../node_modules/prop-types/checkPropTypes.js":[function(require,module,exports) {
  218. /**
  219.  * Copyright (c) 2013-present, Facebook, Inc.
  220.  *
  221.  * This source code is licensed under the MIT license found in the
  222.  * LICENSE file in the root directory of this source tree.
  223.  */
  224. 'use strict';
  225.  
  226. var printWarning = function () {};
  227.  
  228. if ("development" !== 'production') {
  229.   var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
  230.  
  231.   var loggedTypeFailures = {};
  232.   var has = Function.call.bind(Object.prototype.hasOwnProperty);
  233.  
  234.   printWarning = function (text) {
  235.     var message = 'Warning: ' + text;
  236.  
  237.     if (typeof console !== 'undefined') {
  238.       console.error(message);
  239.     }
  240.  
  241.     try {
  242.       // --- Welcome to debugging React ---
  243.       // This error was thrown as a convenience so that you can use this stack
  244.       // to find the callsite that caused this warning to fire.
  245.       throw new Error(message);
  246.     } catch (x) {}
  247.   };
  248. }
  249. /**
  250.  * Assert that the values match with the type specs.
  251.  * Error messages are memorized and will only be shown once.
  252.  *
  253.  * @param {object} typeSpecs Map of name to a ReactPropType
  254.  * @param {object} values Runtime values that need to be type-checked
  255.  * @param {string} location e.g. "prop", "context", "child context"
  256.  * @param {string} componentName Name of the component for error messages.
  257.  * @param {?Function} getStack Returns the component stack.
  258.  * @private
  259.  */
  260.  
  261.  
  262. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  263.   if ("development" !== 'production') {
  264.     for (var typeSpecName in typeSpecs) {
  265.       if (has(typeSpecs, typeSpecName)) {
  266.         var error; // Prop type validation may throw. In case they do, we don't want to
  267.         // fail the render phase where it didn't fail before. So we log it.
  268.         // After these have been cleaned up, we'll let them throw.
  269.  
  270.         try {
  271.           // This is intentionally an invariant that gets caught. It's the same
  272.           // behavior as without this statement except with a better message.
  273.           if (typeof typeSpecs[typeSpecName] !== 'function') {
  274.             var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.');
  275.             err.name = 'Invariant Violation';
  276.             throw err;
  277.           }
  278.  
  279.           error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  280.         } catch (ex) {
  281.           error = ex;
  282.         }
  283.  
  284.         if (error && !(error instanceof Error)) {
  285.           printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
  286.         }
  287.  
  288.         if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  289.           // Only monitor this failure once because there tends to be a lot of the
  290.           // same error.
  291.           loggedTypeFailures[error.message] = true;
  292.           var stack = getStack ? getStack() : '';
  293.           printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
  294.         }
  295.       }
  296.     }
  297.   }
  298. }
  299. /**
  300.  * Resets warning cache when testing.
  301.  *
  302.  * @private
  303.  */
  304.  
  305.  
  306. checkPropTypes.resetWarningCache = function () {
  307.   if ("development" !== 'production') {
  308.     loggedTypeFailures = {};
  309.   }
  310. };
  311.  
  312. module.exports = checkPropTypes;
  313. },{"./lib/ReactPropTypesSecret":"../node_modules/prop-types/lib/ReactPropTypesSecret.js"}],"../node_modules/react/cjs/react.development.js":[function(require,module,exports) {
  314. /** @license React v16.8.3
  315.  * react.development.js
  316.  *
  317.  * Copyright (c) Facebook, Inc. and its affiliates.
  318.  *
  319.  * This source code is licensed under the MIT license found in the
  320.  * LICENSE file in the root directory of this source tree.
  321.  */
  322. 'use strict';
  323.  
  324. if ("development" !== "production") {
  325.   (function () {
  326.     'use strict';
  327.  
  328.     var _assign = require('object-assign');
  329.  
  330.     var checkPropTypes = require('prop-types/checkPropTypes'); // TODO: this is special because it gets imported during build.
  331.  
  332.  
  333.     var ReactVersion = '16.8.3'; // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  334.     // nor polyfill, then a plain number is used for performance.
  335.  
  336.     var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  337.     var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  338.     var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  339.     var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  340.     var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  341.     var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  342.     var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  343.     var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  344.     var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  345.     var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  346.     var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  347.     var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  348.     var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  349.     var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  350.     var FAUX_ITERATOR_SYMBOL = '@@iterator';
  351.  
  352.     function getIteratorFn(maybeIterable) {
  353.       if (maybeIterable === null || typeof maybeIterable !== 'object') {
  354.         return null;
  355.       }
  356.  
  357.       var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  358.  
  359.       if (typeof maybeIterator === 'function') {
  360.         return maybeIterator;
  361.       }
  362.  
  363.       return null;
  364.     }
  365.     /**
  366.      * Use invariant() to assert state which your program assumes to be true.
  367.      *
  368.      * Provide sprintf-style format (only %s is supported) and arguments
  369.      * to provide information about what broke and what you were
  370.      * expecting.
  371.      *
  372.      * The invariant message will be stripped in production, but the invariant
  373.      * will remain to ensure logic does not differ in production.
  374.      */
  375.  
  376.  
  377.     var validateFormat = function () {};
  378.  
  379.     {
  380.       validateFormat = function (format) {
  381.         if (format === undefined) {
  382.           throw new Error('invariant requires an error message argument');
  383.         }
  384.       };
  385.     }
  386.  
  387.     function invariant(condition, format, a, b, c, d, e, f) {
  388.       validateFormat(format);
  389.  
  390.       if (!condition) {
  391.         var error = void 0;
  392.  
  393.         if (format === undefined) {
  394.           error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  395.         } else {
  396.           var args = [a, b, c, d, e, f];
  397.           var argIndex = 0;
  398.           error = new Error(format.replace(/%s/g, function () {
  399.             return args[argIndex++];
  400.           }));
  401.           error.name = 'Invariant Violation';
  402.         }
  403.  
  404.         error.framesToPop = 1; // we don't care about invariant's own frame
  405.  
  406.         throw error;
  407.       }
  408.     } // Relying on the `invariant()` implementation lets us
  409.     // preserve the format and params in the www builds.
  410.  
  411.     /**
  412.      * Forked from fbjs/warning:
  413.      * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  414.      *
  415.      * Only change is we use console.warn instead of console.error,
  416.      * and do nothing when 'console' is not supported.
  417.      * This really simplifies the code.
  418.      * ---
  419.      * Similar to invariant but only logs a warning if the condition is not met.
  420.      * This can be used to log issues in development environments in critical
  421.      * paths. Removing the logging code for production environments will keep the
  422.      * same logic and follow the same code paths.
  423.      */
  424.  
  425.  
  426.     var lowPriorityWarning = function () {};
  427.  
  428.     {
  429.       var printWarning = function (format) {
  430.         for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  431.           args[_key - 1] = arguments[_key];
  432.         }
  433.  
  434.         var argIndex = 0;
  435.         var message = 'Warning: ' + format.replace(/%s/g, function () {
  436.           return args[argIndex++];
  437.         });
  438.  
  439.         if (typeof console !== 'undefined') {
  440.           console.warn(message);
  441.         }
  442.  
  443.         try {
  444.           // --- Welcome to debugging React ---
  445.           // This error was thrown as a convenience so that you can use this stack
  446.           // to find the callsite that caused this warning to fire.
  447.           throw new Error(message);
  448.         } catch (x) {}
  449.       };
  450.  
  451.       lowPriorityWarning = function (condition, format) {
  452.         if (format === undefined) {
  453.           throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  454.         }
  455.  
  456.         if (!condition) {
  457.           for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  458.             args[_key2 - 2] = arguments[_key2];
  459.           }
  460.  
  461.           printWarning.apply(undefined, [format].concat(args));
  462.         }
  463.       };
  464.     }
  465.     var lowPriorityWarning$1 = lowPriorityWarning;
  466.     /**
  467.      * Similar to invariant but only logs a warning if the condition is not met.
  468.      * This can be used to log issues in development environments in critical
  469.      * paths. Removing the logging code for production environments will keep the
  470.      * same logic and follow the same code paths.
  471.      */
  472.  
  473.     var warningWithoutStack = function () {};
  474.  
  475.     {
  476.       warningWithoutStack = function (condition, format) {
  477.         for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  478.           args[_key - 2] = arguments[_key];
  479.         }
  480.  
  481.         if (format === undefined) {
  482.           throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  483.         }
  484.  
  485.         if (args.length > 8) {
  486.           // Check before the condition to catch violations early.
  487.           throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  488.         }
  489.  
  490.         if (condition) {
  491.           return;
  492.         }
  493.  
  494.         if (typeof console !== 'undefined') {
  495.           var argsWithFormat = args.map(function (item) {
  496.             return '' + item;
  497.           });
  498.           argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  499.           // breaks IE9: https://github.com/facebook/react/issues/13610
  500.  
  501.           Function.prototype.apply.call(console.error, console, argsWithFormat);
  502.         }
  503.  
  504.         try {
  505.           // --- Welcome to debugging React ---
  506.           // This error was thrown as a convenience so that you can use this stack
  507.           // to find the callsite that caused this warning to fire.
  508.           var argIndex = 0;
  509.           var message = 'Warning: ' + format.replace(/%s/g, function () {
  510.             return args[argIndex++];
  511.           });
  512.           throw new Error(message);
  513.         } catch (x) {}
  514.       };
  515.     }
  516.     var warningWithoutStack$1 = warningWithoutStack;
  517.     var didWarnStateUpdateForUnmountedComponent = {};
  518.  
  519.     function warnNoop(publicInstance, callerName) {
  520.       {
  521.         var _constructor = publicInstance.constructor;
  522.         var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  523.         var warningKey = componentName + '.' + callerName;
  524.  
  525.         if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  526.           return;
  527.         }
  528.  
  529.         warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
  530.         didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  531.       }
  532.     }
  533.     /**
  534.      * This is the abstract API for an update queue.
  535.      */
  536.  
  537.  
  538.     var ReactNoopUpdateQueue = {
  539.       /**
  540.        * Checks whether or not this composite component is mounted.
  541.        * @param {ReactClass} publicInstance The instance we want to test.
  542.        * @return {boolean} True if mounted, false otherwise.
  543.        * @protected
  544.        * @final
  545.        */
  546.       isMounted: function (publicInstance) {
  547.         return false;
  548.       },
  549.  
  550.       /**
  551.        * Forces an update. This should only be invoked when it is known with
  552.        * certainty that we are **not** in a DOM transaction.
  553.        *
  554.        * You may want to call this when you know that some deeper aspect of the
  555.        * component's state has changed but `setState` was not called.
  556.        *
  557.        * This will not invoke `shouldComponentUpdate`, but it will invoke
  558.        * `componentWillUpdate` and `componentDidUpdate`.
  559.        *
  560.        * @param {ReactClass} publicInstance The instance that should rerender.
  561.        * @param {?function} callback Called after component is updated.
  562.        * @param {?string} callerName name of the calling function in the public API.
  563.        * @internal
  564.        */
  565.       enqueueForceUpdate: function (publicInstance, callback, callerName) {
  566.         warnNoop(publicInstance, 'forceUpdate');
  567.       },
  568.  
  569.       /**
  570.        * Replaces all of the state. Always use this or `setState` to mutate state.
  571.        * You should treat `this.state` as immutable.
  572.        *
  573.        * There is no guarantee that `this.state` will be immediately updated, so
  574.        * accessing `this.state` after calling this method may return the old value.
  575.        *
  576.        * @param {ReactClass} publicInstance The instance that should rerender.
  577.        * @param {object} completeState Next state.
  578.        * @param {?function} callback Called after component is updated.
  579.        * @param {?string} callerName name of the calling function in the public API.
  580.        * @internal
  581.        */
  582.       enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  583.         warnNoop(publicInstance, 'replaceState');
  584.       },
  585.  
  586.       /**
  587.        * Sets a subset of the state. This only exists because _pendingState is
  588.        * internal. This provides a merging strategy that is not available to deep
  589.        * properties which is confusing. TODO: Expose pendingState or don't use it
  590.        * during the merge.
  591.        *
  592.        * @param {ReactClass} publicInstance The instance that should rerender.
  593.        * @param {object} partialState Next partial state to be merged with state.
  594.        * @param {?function} callback Called after component is updated.
  595.        * @param {?string} Name of the calling function in the public API.
  596.        * @internal
  597.        */
  598.       enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  599.         warnNoop(publicInstance, 'setState');
  600.       }
  601.     };
  602.     var emptyObject = {};
  603.     {
  604.       Object.freeze(emptyObject);
  605.     }
  606.     /**
  607.      * Base class helpers for the updating state of a component.
  608.      */
  609.  
  610.     function Component(props, context, updater) {
  611.       this.props = props;
  612.       this.context = context; // If a component has string refs, we will assign a different object later.
  613.  
  614.       this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
  615.       // renderer.
  616.  
  617.       this.updater = updater || ReactNoopUpdateQueue;
  618.     }
  619.  
  620.     Component.prototype.isReactComponent = {};
  621.     /**
  622.      * Sets a subset of the state. Always use this to mutate
  623.      * state. You should treat `this.state` as immutable.
  624.      *
  625.      * There is no guarantee that `this.state` will be immediately updated, so
  626.      * accessing `this.state` after calling this method may return the old value.
  627.      *
  628.      * There is no guarantee that calls to `setState` will run synchronously,
  629.      * as they may eventually be batched together.  You can provide an optional
  630.      * callback that will be executed when the call to setState is actually
  631.      * completed.
  632.      *
  633.      * When a function is provided to setState, it will be called at some point in
  634.      * the future (not synchronously). It will be called with the up to date
  635.      * component arguments (state, props, context). These values can be different
  636.      * from this.* because your function may be called after receiveProps but before
  637.      * shouldComponentUpdate, and this new state, props, and context will not yet be
  638.      * assigned to this.
  639.      *
  640.      * @param {object|function} partialState Next partial state or function to
  641.      *        produce next partial state to be merged with current state.
  642.      * @param {?function} callback Called after state is updated.
  643.      * @final
  644.      * @protected
  645.      */
  646.  
  647.     Component.prototype.setState = function (partialState, callback) {
  648.       !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
  649.       this.updater.enqueueSetState(this, partialState, callback, 'setState');
  650.     };
  651.     /**
  652.      * Forces an update. This should only be invoked when it is known with
  653.      * certainty that we are **not** in a DOM transaction.
  654.      *
  655.      * You may want to call this when you know that some deeper aspect of the
  656.      * component's state has changed but `setState` was not called.
  657.      *
  658.      * This will not invoke `shouldComponentUpdate`, but it will invoke
  659.      * `componentWillUpdate` and `componentDidUpdate`.
  660.      *
  661.      * @param {?function} callback Called after update is complete.
  662.      * @final
  663.      * @protected
  664.      */
  665.  
  666.  
  667.     Component.prototype.forceUpdate = function (callback) {
  668.       this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  669.     };
  670.     /**
  671.      * Deprecated APIs. These APIs used to exist on classic React classes but since
  672.      * we would like to deprecate them, we're not going to move them over to this
  673.      * modern base class. Instead, we define a getter that warns if it's accessed.
  674.      */
  675.  
  676.  
  677.     {
  678.       var deprecatedAPIs = {
  679.         isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  680.         replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  681.       };
  682.  
  683.       var defineDeprecationWarning = function (methodName, info) {
  684.         Object.defineProperty(Component.prototype, methodName, {
  685.           get: function () {
  686.             lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  687.             return undefined;
  688.           }
  689.         });
  690.       };
  691.  
  692.       for (var fnName in deprecatedAPIs) {
  693.         if (deprecatedAPIs.hasOwnProperty(fnName)) {
  694.           defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  695.         }
  696.       }
  697.     }
  698.  
  699.     function ComponentDummy() {}
  700.  
  701.     ComponentDummy.prototype = Component.prototype;
  702.     /**
  703.      * Convenience component with default shallow equality check for sCU.
  704.      */
  705.  
  706.     function PureComponent(props, context, updater) {
  707.       this.props = props;
  708.       this.context = context; // If a component has string refs, we will assign a different object later.
  709.  
  710.       this.refs = emptyObject;
  711.       this.updater = updater || ReactNoopUpdateQueue;
  712.     }
  713.  
  714.     var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  715.     pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
  716.  
  717.     _assign(pureComponentPrototype, Component.prototype);
  718.  
  719.     pureComponentPrototype.isPureReactComponent = true; // an immutable object with a single mutable value
  720.  
  721.     function createRef() {
  722.       var refObject = {
  723.         current: null
  724.       };
  725.       {
  726.         Object.seal(refObject);
  727.       }
  728.       return refObject;
  729.     }
  730.     /**
  731.      * Keeps track of the current dispatcher.
  732.      */
  733.  
  734.  
  735.     var ReactCurrentDispatcher = {
  736.       /**
  737.        * @internal
  738.        * @type {ReactComponent}
  739.        */
  740.       current: null
  741.     };
  742.     /**
  743.      * Keeps track of the current owner.
  744.      *
  745.      * The current owner is the component who should own any components that are
  746.      * currently being constructed.
  747.      */
  748.  
  749.     var ReactCurrentOwner = {
  750.       /**
  751.        * @internal
  752.        * @type {ReactComponent}
  753.        */
  754.       current: null
  755.     };
  756.     var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  757.  
  758.     var describeComponentFrame = function (name, source, ownerName) {
  759.       var sourceInfo = '';
  760.  
  761.       if (source) {
  762.         var path = source.fileName;
  763.         var fileName = path.replace(BEFORE_SLASH_RE, '');
  764.         {
  765.           // In DEV, include code for a common special case:
  766.           // prefer "folder/index.js" instead of just "index.js".
  767.           if (/^index\./.test(fileName)) {
  768.             var match = path.match(BEFORE_SLASH_RE);
  769.  
  770.             if (match) {
  771.               var pathBeforeSlash = match[1];
  772.  
  773.               if (pathBeforeSlash) {
  774.                 var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  775.                 fileName = folderName + '/' + fileName;
  776.               }
  777.             }
  778.           }
  779.         }
  780.         sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  781.       } else if (ownerName) {
  782.         sourceInfo = ' (created by ' + ownerName + ')';
  783.       }
  784.  
  785.       return '\n    in ' + (name || 'Unknown') + sourceInfo;
  786.     };
  787.  
  788.     var Resolved = 1;
  789.  
  790.     function refineResolvedLazyComponent(lazyComponent) {
  791.       return lazyComponent._status === Resolved ? lazyComponent._result : null;
  792.     }
  793.  
  794.     function getWrappedName(outerType, innerType, wrapperName) {
  795.       var functionName = innerType.displayName || innerType.name || '';
  796.       return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  797.     }
  798.  
  799.     function getComponentName(type) {
  800.       if (type == null) {
  801.         // Host root, text node or just invalid type.
  802.         return null;
  803.       }
  804.  
  805.       {
  806.         if (typeof type.tag === 'number') {
  807.           warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  808.         }
  809.       }
  810.  
  811.       if (typeof type === 'function') {
  812.         return type.displayName || type.name || null;
  813.       }
  814.  
  815.       if (typeof type === 'string') {
  816.         return type;
  817.       }
  818.  
  819.       switch (type) {
  820.         case REACT_CONCURRENT_MODE_TYPE:
  821.           return 'ConcurrentMode';
  822.  
  823.         case REACT_FRAGMENT_TYPE:
  824.           return 'Fragment';
  825.  
  826.         case REACT_PORTAL_TYPE:
  827.           return 'Portal';
  828.  
  829.         case REACT_PROFILER_TYPE:
  830.           return 'Profiler';
  831.  
  832.         case REACT_STRICT_MODE_TYPE:
  833.           return 'StrictMode';
  834.  
  835.         case REACT_SUSPENSE_TYPE:
  836.           return 'Suspense';
  837.       }
  838.  
  839.       if (typeof type === 'object') {
  840.         switch (type.$$typeof) {
  841.           case REACT_CONTEXT_TYPE:
  842.             return 'Context.Consumer';
  843.  
  844.           case REACT_PROVIDER_TYPE:
  845.             return 'Context.Provider';
  846.  
  847.           case REACT_FORWARD_REF_TYPE:
  848.             return getWrappedName(type, type.render, 'ForwardRef');
  849.  
  850.           case REACT_MEMO_TYPE:
  851.             return getComponentName(type.type);
  852.  
  853.           case REACT_LAZY_TYPE:
  854.             {
  855.               var thenable = type;
  856.               var resolvedThenable = refineResolvedLazyComponent(thenable);
  857.  
  858.               if (resolvedThenable) {
  859.                 return getComponentName(resolvedThenable);
  860.               }
  861.             }
  862.         }
  863.       }
  864.  
  865.       return null;
  866.     }
  867.  
  868.     var ReactDebugCurrentFrame = {};
  869.     var currentlyValidatingElement = null;
  870.  
  871.     function setCurrentlyValidatingElement(element) {
  872.       {
  873.         currentlyValidatingElement = element;
  874.       }
  875.     }
  876.  
  877.     {
  878.       // Stack implementation injected by the current renderer.
  879.       ReactDebugCurrentFrame.getCurrentStack = null;
  880.  
  881.       ReactDebugCurrentFrame.getStackAddendum = function () {
  882.         var stack = ''; // Add an extra top frame while an element is being validated
  883.  
  884.         if (currentlyValidatingElement) {
  885.           var name = getComponentName(currentlyValidatingElement.type);
  886.           var owner = currentlyValidatingElement._owner;
  887.           stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  888.         } // Delegate to the injected renderer-specific implementation
  889.  
  890.  
  891.         var impl = ReactDebugCurrentFrame.getCurrentStack;
  892.  
  893.         if (impl) {
  894.           stack += impl() || '';
  895.         }
  896.  
  897.         return stack;
  898.       };
  899.     }
  900.     var ReactSharedInternals = {
  901.       ReactCurrentDispatcher: ReactCurrentDispatcher,
  902.       ReactCurrentOwner: ReactCurrentOwner,
  903.       // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  904.       assign: _assign
  905.     };
  906.     {
  907.       _assign(ReactSharedInternals, {
  908.         // These should not be included in production.
  909.         ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  910.         // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  911.         // TODO: remove in React 17.0.
  912.         ReactComponentTreeHook: {}
  913.       });
  914.     }
  915.     /**
  916.      * Similar to invariant but only logs a warning if the condition is not met.
  917.      * This can be used to log issues in development environments in critical
  918.      * paths. Removing the logging code for production environments will keep the
  919.      * same logic and follow the same code paths.
  920.      */
  921.  
  922.     var warning = warningWithoutStack$1;
  923.     {
  924.       warning = function (condition, format) {
  925.         if (condition) {
  926.           return;
  927.         }
  928.  
  929.         var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  930.         var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args
  931.  
  932.         for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  933.           args[_key - 2] = arguments[_key];
  934.         }
  935.  
  936.         warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  937.       };
  938.     }
  939.     var warning$1 = warning;
  940.     var hasOwnProperty = Object.prototype.hasOwnProperty;
  941.     var RESERVED_PROPS = {
  942.       key: true,
  943.       ref: true,
  944.       __self: true,
  945.       __source: true
  946.     };
  947.     var specialPropKeyWarningShown = void 0;
  948.     var specialPropRefWarningShown = void 0;
  949.  
  950.     function hasValidRef(config) {
  951.       {
  952.         if (hasOwnProperty.call(config, 'ref')) {
  953.           var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  954.  
  955.           if (getter && getter.isReactWarning) {
  956.             return false;
  957.           }
  958.         }
  959.       }
  960.       return config.ref !== undefined;
  961.     }
  962.  
  963.     function hasValidKey(config) {
  964.       {
  965.         if (hasOwnProperty.call(config, 'key')) {
  966.           var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  967.  
  968.           if (getter && getter.isReactWarning) {
  969.             return false;
  970.           }
  971.         }
  972.       }
  973.       return config.key !== undefined;
  974.     }
  975.  
  976.     function defineKeyPropWarningGetter(props, displayName) {
  977.       var warnAboutAccessingKey = function () {
  978.         if (!specialPropKeyWarningShown) {
  979.           specialPropKeyWarningShown = true;
  980.           warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  981.         }
  982.       };
  983.  
  984.       warnAboutAccessingKey.isReactWarning = true;
  985.       Object.defineProperty(props, 'key', {
  986.         get: warnAboutAccessingKey,
  987.         configurable: true
  988.       });
  989.     }
  990.  
  991.     function defineRefPropWarningGetter(props, displayName) {
  992.       var warnAboutAccessingRef = function () {
  993.         if (!specialPropRefWarningShown) {
  994.           specialPropRefWarningShown = true;
  995.           warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  996.         }
  997.       };
  998.  
  999.       warnAboutAccessingRef.isReactWarning = true;
  1000.       Object.defineProperty(props, 'ref', {
  1001.         get: warnAboutAccessingRef,
  1002.         configurable: true
  1003.       });
  1004.     }
  1005.     /**
  1006.      * Factory method to create a new React element. This no longer adheres to
  1007.      * the class pattern, so do not use new to call it. Also, no instanceof check
  1008.      * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  1009.      * if something is a React Element.
  1010.      *
  1011.      * @param {*} type
  1012.      * @param {*} key
  1013.      * @param {string|object} ref
  1014.      * @param {*} self A *temporary* helper to detect places where `this` is
  1015.      * different from the `owner` when React.createElement is called, so that we
  1016.      * can warn. We want to get rid of owner and replace string `ref`s with arrow
  1017.      * functions, and as long as `this` and owner are the same, there will be no
  1018.      * change in behavior.
  1019.      * @param {*} source An annotation object (added by a transpiler or otherwise)
  1020.      * indicating filename, line number, and/or other information.
  1021.      * @param {*} owner
  1022.      * @param {*} props
  1023.      * @internal
  1024.      */
  1025.  
  1026.  
  1027.     var ReactElement = function (type, key, ref, self, source, owner, props) {
  1028.       var element = {
  1029.         // This tag allows us to uniquely identify this as a React Element
  1030.         $$typeof: REACT_ELEMENT_TYPE,
  1031.         // Built-in properties that belong on the element
  1032.         type: type,
  1033.         key: key,
  1034.         ref: ref,
  1035.         props: props,
  1036.         // Record the component responsible for creating this element.
  1037.         _owner: owner
  1038.       };
  1039.       {
  1040.         // The validation flag is currently mutative. We put it on
  1041.         // an external backing store so that we can freeze the whole object.
  1042.         // This can be replaced with a WeakMap once they are implemented in
  1043.         // commonly used development environments.
  1044.         element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
  1045.         // the validation flag non-enumerable (where possible, which should
  1046.         // include every environment we run tests in), so the test framework
  1047.         // ignores it.
  1048.  
  1049.         Object.defineProperty(element._store, 'validated', {
  1050.           configurable: false,
  1051.           enumerable: false,
  1052.           writable: true,
  1053.           value: false
  1054.         }); // self and source are DEV only properties.
  1055.  
  1056.         Object.defineProperty(element, '_self', {
  1057.           configurable: false,
  1058.           enumerable: false,
  1059.           writable: false,
  1060.           value: self
  1061.         }); // Two elements created in two different places should be considered
  1062.         // equal for testing purposes and therefore we hide it from enumeration.
  1063.  
  1064.         Object.defineProperty(element, '_source', {
  1065.           configurable: false,
  1066.           enumerable: false,
  1067.           writable: false,
  1068.           value: source
  1069.         });
  1070.  
  1071.         if (Object.freeze) {
  1072.           Object.freeze(element.props);
  1073.           Object.freeze(element);
  1074.         }
  1075.       }
  1076.       return element;
  1077.     };
  1078.     /**
  1079.      * Create and return a new ReactElement of the given type.
  1080.      * See https://reactjs.org/docs/react-api.html#createelement
  1081.      */
  1082.  
  1083.  
  1084.     function createElement(type, config, children) {
  1085.       var propName = void 0; // Reserved names are extracted
  1086.  
  1087.       var props = {};
  1088.       var key = null;
  1089.       var ref = null;
  1090.       var self = null;
  1091.       var source = null;
  1092.  
  1093.       if (config != null) {
  1094.         if (hasValidRef(config)) {
  1095.           ref = config.ref;
  1096.         }
  1097.  
  1098.         if (hasValidKey(config)) {
  1099.           key = '' + config.key;
  1100.         }
  1101.  
  1102.         self = config.__self === undefined ? null : config.__self;
  1103.         source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
  1104.  
  1105.         for (propName in config) {
  1106.           if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  1107.             props[propName] = config[propName];
  1108.           }
  1109.         }
  1110.       } // Children can be more than one argument, and those are transferred onto
  1111.       // the newly allocated props object.
  1112.  
  1113.  
  1114.       var childrenLength = arguments.length - 2;
  1115.  
  1116.       if (childrenLength === 1) {
  1117.         props.children = children;
  1118.       } else if (childrenLength > 1) {
  1119.         var childArray = Array(childrenLength);
  1120.  
  1121.         for (var i = 0; i < childrenLength; i++) {
  1122.           childArray[i] = arguments[i + 2];
  1123.         }
  1124.  
  1125.         {
  1126.           if (Object.freeze) {
  1127.             Object.freeze(childArray);
  1128.           }
  1129.         }
  1130.         props.children = childArray;
  1131.       } // Resolve default props
  1132.  
  1133.  
  1134.       if (type && type.defaultProps) {
  1135.         var defaultProps = type.defaultProps;
  1136.  
  1137.         for (propName in defaultProps) {
  1138.           if (props[propName] === undefined) {
  1139.             props[propName] = defaultProps[propName];
  1140.           }
  1141.         }
  1142.       }
  1143.  
  1144.       {
  1145.         if (key || ref) {
  1146.           var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  1147.  
  1148.           if (key) {
  1149.             defineKeyPropWarningGetter(props, displayName);
  1150.           }
  1151.  
  1152.           if (ref) {
  1153.             defineRefPropWarningGetter(props, displayName);
  1154.           }
  1155.         }
  1156.       }
  1157.       return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  1158.     }
  1159.     /**
  1160.      * Return a function that produces ReactElements of a given type.
  1161.      * See https://reactjs.org/docs/react-api.html#createfactory
  1162.      */
  1163.  
  1164.  
  1165.     function cloneAndReplaceKey(oldElement, newKey) {
  1166.       var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  1167.       return newElement;
  1168.     }
  1169.     /**
  1170.      * Clone and return a new ReactElement using element as the starting point.
  1171.      * See https://reactjs.org/docs/react-api.html#cloneelement
  1172.      */
  1173.  
  1174.  
  1175.     function cloneElement(element, config, children) {
  1176.       !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
  1177.       var propName = void 0; // Original props are copied
  1178.  
  1179.       var props = _assign({}, element.props); // Reserved names are extracted
  1180.  
  1181.  
  1182.       var key = element.key;
  1183.       var ref = element.ref; // Self is preserved since the owner is preserved.
  1184.  
  1185.       var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
  1186.       // transpiler, and the original source is probably a better indicator of the
  1187.       // true owner.
  1188.  
  1189.       var source = element._source; // Owner will be preserved, unless ref is overridden
  1190.  
  1191.       var owner = element._owner;
  1192.  
  1193.       if (config != null) {
  1194.         if (hasValidRef(config)) {
  1195.           // Silently steal the ref from the parent.
  1196.           ref = config.ref;
  1197.           owner = ReactCurrentOwner.current;
  1198.         }
  1199.  
  1200.         if (hasValidKey(config)) {
  1201.           key = '' + config.key;
  1202.         } // Remaining properties override existing props
  1203.  
  1204.  
  1205.         var defaultProps = void 0;
  1206.  
  1207.         if (element.type && element.type.defaultProps) {
  1208.           defaultProps = element.type.defaultProps;
  1209.         }
  1210.  
  1211.         for (propName in config) {
  1212.           if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  1213.             if (config[propName] === undefined && defaultProps !== undefined) {
  1214.               // Resolve default props
  1215.               props[propName] = defaultProps[propName];
  1216.             } else {
  1217.               props[propName] = config[propName];
  1218.             }
  1219.           }
  1220.         }
  1221.       } // Children can be more than one argument, and those are transferred onto
  1222.       // the newly allocated props object.
  1223.  
  1224.  
  1225.       var childrenLength = arguments.length - 2;
  1226.  
  1227.       if (childrenLength === 1) {
  1228.         props.children = children;
  1229.       } else if (childrenLength > 1) {
  1230.         var childArray = Array(childrenLength);
  1231.  
  1232.         for (var i = 0; i < childrenLength; i++) {
  1233.           childArray[i] = arguments[i + 2];
  1234.         }
  1235.  
  1236.         props.children = childArray;
  1237.       }
  1238.  
  1239.       return ReactElement(element.type, key, ref, self, source, owner, props);
  1240.     }
  1241.     /**
  1242.      * Verifies the object is a ReactElement.
  1243.      * See https://reactjs.org/docs/react-api.html#isvalidelement
  1244.      * @param {?object} object
  1245.      * @return {boolean} True if `object` is a ReactElement.
  1246.      * @final
  1247.      */
  1248.  
  1249.  
  1250.     function isValidElement(object) {
  1251.       return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  1252.     }
  1253.  
  1254.     var SEPARATOR = '.';
  1255.     var SUBSEPARATOR = ':';
  1256.     /**
  1257.      * Escape and wrap key so it is safe to use as a reactid
  1258.      *
  1259.      * @param {string} key to be escaped.
  1260.      * @return {string} the escaped key.
  1261.      */
  1262.  
  1263.     function escape(key) {
  1264.       var escapeRegex = /[=:]/g;
  1265.       var escaperLookup = {
  1266.         '=': '=0',
  1267.         ':': '=2'
  1268.       };
  1269.       var escapedString = ('' + key).replace(escapeRegex, function (match) {
  1270.         return escaperLookup[match];
  1271.       });
  1272.       return '$' + escapedString;
  1273.     }
  1274.     /**
  1275.      * TODO: Test that a single child and an array with one item have the same key
  1276.      * pattern.
  1277.      */
  1278.  
  1279.  
  1280.     var didWarnAboutMaps = false;
  1281.     var userProvidedKeyEscapeRegex = /\/+/g;
  1282.  
  1283.     function escapeUserProvidedKey(text) {
  1284.       return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  1285.     }
  1286.  
  1287.     var POOL_SIZE = 10;
  1288.     var traverseContextPool = [];
  1289.  
  1290.     function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  1291.       if (traverseContextPool.length) {
  1292.         var traverseContext = traverseContextPool.pop();
  1293.         traverseContext.result = mapResult;
  1294.         traverseContext.keyPrefix = keyPrefix;
  1295.         traverseContext.func = mapFunction;
  1296.         traverseContext.context = mapContext;
  1297.         traverseContext.count = 0;
  1298.         return traverseContext;
  1299.       } else {
  1300.         return {
  1301.           result: mapResult,
  1302.           keyPrefix: keyPrefix,
  1303.           func: mapFunction,
  1304.           context: mapContext,
  1305.           count: 0
  1306.         };
  1307.       }
  1308.     }
  1309.  
  1310.     function releaseTraverseContext(traverseContext) {
  1311.       traverseContext.result = null;
  1312.       traverseContext.keyPrefix = null;
  1313.       traverseContext.func = null;
  1314.       traverseContext.context = null;
  1315.       traverseContext.count = 0;
  1316.  
  1317.       if (traverseContextPool.length < POOL_SIZE) {
  1318.         traverseContextPool.push(traverseContext);
  1319.       }
  1320.     }
  1321.     /**
  1322.      * @param {?*} children Children tree container.
  1323.      * @param {!string} nameSoFar Name of the key path so far.
  1324.      * @param {!function} callback Callback to invoke with each child found.
  1325.      * @param {?*} traverseContext Used to pass information throughout the traversal
  1326.      * process.
  1327.      * @return {!number} The number of children in this subtree.
  1328.      */
  1329.  
  1330.  
  1331.     function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  1332.       var type = typeof children;
  1333.  
  1334.       if (type === 'undefined' || type === 'boolean') {
  1335.         // All of the above are perceived as null.
  1336.         children = null;
  1337.       }
  1338.  
  1339.       var invokeCallback = false;
  1340.  
  1341.       if (children === null) {
  1342.         invokeCallback = true;
  1343.       } else {
  1344.         switch (type) {
  1345.           case 'string':
  1346.           case 'number':
  1347.             invokeCallback = true;
  1348.             break;
  1349.  
  1350.           case 'object':
  1351.             switch (children.$$typeof) {
  1352.               case REACT_ELEMENT_TYPE:
  1353.               case REACT_PORTAL_TYPE:
  1354.                 invokeCallback = true;
  1355.             }
  1356.  
  1357.         }
  1358.       }
  1359.  
  1360.       if (invokeCallback) {
  1361.         callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
  1362.         // so that it's consistent if the number of children grows.
  1363.         nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  1364.         return 1;
  1365.       }
  1366.  
  1367.       var child = void 0;
  1368.       var nextName = void 0;
  1369.       var subtreeCount = 0; // Count of children found in the current subtree.
  1370.  
  1371.       var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  1372.  
  1373.       if (Array.isArray(children)) {
  1374.         for (var i = 0; i < children.length; i++) {
  1375.           child = children[i];
  1376.           nextName = nextNamePrefix + getComponentKey(child, i);
  1377.           subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  1378.         }
  1379.       } else {
  1380.         var iteratorFn = getIteratorFn(children);
  1381.  
  1382.         if (typeof iteratorFn === 'function') {
  1383.           {
  1384.             // Warn about using Maps as children
  1385.             if (iteratorFn === children.entries) {
  1386.               !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  1387.               didWarnAboutMaps = true;
  1388.             }
  1389.           }
  1390.           var iterator = iteratorFn.call(children);
  1391.           var step = void 0;
  1392.           var ii = 0;
  1393.  
  1394.           while (!(step = iterator.next()).done) {
  1395.             child = step.value;
  1396.             nextName = nextNamePrefix + getComponentKey(child, ii++);
  1397.             subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  1398.           }
  1399.         } else if (type === 'object') {
  1400.           var addendum = '';
  1401.           {
  1402.             addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  1403.           }
  1404.           var childrenString = '' + children;
  1405.           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);
  1406.         }
  1407.       }
  1408.  
  1409.       return subtreeCount;
  1410.     }
  1411.     /**
  1412.      * Traverses children that are typically specified as `props.children`, but
  1413.      * might also be specified through attributes:
  1414.      *
  1415.      * - `traverseAllChildren(this.props.children, ...)`
  1416.      * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  1417.      *
  1418.      * The `traverseContext` is an optional argument that is passed through the
  1419.      * entire traversal. It can be used to store accumulations or anything else that
  1420.      * the callback might find relevant.
  1421.      *
  1422.      * @param {?*} children Children tree object.
  1423.      * @param {!function} callback To invoke upon traversing each child.
  1424.      * @param {?*} traverseContext Context for traversal.
  1425.      * @return {!number} The number of children in this subtree.
  1426.      */
  1427.  
  1428.  
  1429.     function traverseAllChildren(children, callback, traverseContext) {
  1430.       if (children == null) {
  1431.         return 0;
  1432.       }
  1433.  
  1434.       return traverseAllChildrenImpl(children, '', callback, traverseContext);
  1435.     }
  1436.     /**
  1437.      * Generate a key string that identifies a component within a set.
  1438.      *
  1439.      * @param {*} component A component that could contain a manual key.
  1440.      * @param {number} index Index that is used if a manual key is not provided.
  1441.      * @return {string}
  1442.      */
  1443.  
  1444.  
  1445.     function getComponentKey(component, index) {
  1446.       // Do some typechecking here since we call this blindly. We want to ensure
  1447.       // that we don't block potential future ES APIs.
  1448.       if (typeof component === 'object' && component !== null && component.key != null) {
  1449.         // Explicit key
  1450.         return escape(component.key);
  1451.       } // Implicit key determined by the index in the set
  1452.  
  1453.  
  1454.       return index.toString(36);
  1455.     }
  1456.  
  1457.     function forEachSingleChild(bookKeeping, child, name) {
  1458.       var func = bookKeeping.func,
  1459.           context = bookKeeping.context;
  1460.       func.call(context, child, bookKeeping.count++);
  1461.     }
  1462.     /**
  1463.      * Iterates through children that are typically specified as `props.children`.
  1464.      *
  1465.      * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  1466.      *
  1467.      * The provided forEachFunc(child, index) will be called for each
  1468.      * leaf child.
  1469.      *
  1470.      * @param {?*} children Children tree container.
  1471.      * @param {function(*, int)} forEachFunc
  1472.      * @param {*} forEachContext Context for forEachContext.
  1473.      */
  1474.  
  1475.  
  1476.     function forEachChildren(children, forEachFunc, forEachContext) {
  1477.       if (children == null) {
  1478.         return children;
  1479.       }
  1480.  
  1481.       var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  1482.       traverseAllChildren(children, forEachSingleChild, traverseContext);
  1483.       releaseTraverseContext(traverseContext);
  1484.     }
  1485.  
  1486.     function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  1487.       var result = bookKeeping.result,
  1488.           keyPrefix = bookKeeping.keyPrefix,
  1489.           func = bookKeeping.func,
  1490.           context = bookKeeping.context;
  1491.       var mappedChild = func.call(context, child, bookKeeping.count++);
  1492.  
  1493.       if (Array.isArray(mappedChild)) {
  1494.         mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  1495.           return c;
  1496.         });
  1497.       } else if (mappedChild != null) {
  1498.         if (isValidElement(mappedChild)) {
  1499.           mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
  1500.           // traverseAllChildren used to do for objects as children
  1501.           keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  1502.         }
  1503.  
  1504.         result.push(mappedChild);
  1505.       }
  1506.     }
  1507.  
  1508.     function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  1509.       var escapedPrefix = '';
  1510.  
  1511.       if (prefix != null) {
  1512.         escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  1513.       }
  1514.  
  1515.       var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  1516.       traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  1517.       releaseTraverseContext(traverseContext);
  1518.     }
  1519.     /**
  1520.      * Maps children that are typically specified as `props.children`.
  1521.      *
  1522.      * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  1523.      *
  1524.      * The provided mapFunction(child, key, index) will be called for each
  1525.      * leaf child.
  1526.      *
  1527.      * @param {?*} children Children tree container.
  1528.      * @param {function(*, int)} func The map function.
  1529.      * @param {*} context Context for mapFunction.
  1530.      * @return {object} Object containing the ordered map of results.
  1531.      */
  1532.  
  1533.  
  1534.     function mapChildren(children, func, context) {
  1535.       if (children == null) {
  1536.         return children;
  1537.       }
  1538.  
  1539.       var result = [];
  1540.       mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  1541.       return result;
  1542.     }
  1543.     /**
  1544.      * Count the number of children that are typically specified as
  1545.      * `props.children`.
  1546.      *
  1547.      * See https://reactjs.org/docs/react-api.html#reactchildrencount
  1548.      *
  1549.      * @param {?*} children Children tree container.
  1550.      * @return {number} The number of children.
  1551.      */
  1552.  
  1553.  
  1554.     function countChildren(children) {
  1555.       return traverseAllChildren(children, function () {
  1556.         return null;
  1557.       }, null);
  1558.     }
  1559.     /**
  1560.      * Flatten a children object (typically specified as `props.children`) and
  1561.      * return an array with appropriately re-keyed children.
  1562.      *
  1563.      * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  1564.      */
  1565.  
  1566.  
  1567.     function toArray(children) {
  1568.       var result = [];
  1569.       mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  1570.         return child;
  1571.       });
  1572.       return result;
  1573.     }
  1574.     /**
  1575.      * Returns the first child in a collection of children and verifies that there
  1576.      * is only one child in the collection.
  1577.      *
  1578.      * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  1579.      *
  1580.      * The current implementation of this function assumes that a single child gets
  1581.      * passed without a wrapper, but the purpose of this helper function is to
  1582.      * abstract away the particular structure of children.
  1583.      *
  1584.      * @param {?object} children Child collection structure.
  1585.      * @return {ReactElement} The first and only `ReactElement` contained in the
  1586.      * structure.
  1587.      */
  1588.  
  1589.  
  1590.     function onlyChild(children) {
  1591.       !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
  1592.       return children;
  1593.     }
  1594.  
  1595.     function createContext(defaultValue, calculateChangedBits) {
  1596.       if (calculateChangedBits === undefined) {
  1597.         calculateChangedBits = null;
  1598.       } else {
  1599.         {
  1600.           !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  1601.         }
  1602.       }
  1603.  
  1604.       var context = {
  1605.         $$typeof: REACT_CONTEXT_TYPE,
  1606.         _calculateChangedBits: calculateChangedBits,
  1607.         // As a workaround to support multiple concurrent renderers, we categorize
  1608.         // some renderers as primary and others as secondary. We only expect
  1609.         // there to be two concurrent renderers at most: React Native (primary) and
  1610.         // Fabric (secondary); React DOM (primary) and React ART (secondary).
  1611.         // Secondary renderers store their context values on separate fields.
  1612.         _currentValue: defaultValue,
  1613.         _currentValue2: defaultValue,
  1614.         // Used to track how many concurrent renderers this context currently
  1615.         // supports within in a single renderer. Such as parallel server rendering.
  1616.         _threadCount: 0,
  1617.         // These are circular
  1618.         Provider: null,
  1619.         Consumer: null
  1620.       };
  1621.       context.Provider = {
  1622.         $$typeof: REACT_PROVIDER_TYPE,
  1623.         _context: context
  1624.       };
  1625.       var hasWarnedAboutUsingNestedContextConsumers = false;
  1626.       var hasWarnedAboutUsingConsumerProvider = false;
  1627.       {
  1628.         // A separate object, but proxies back to the original context object for
  1629.         // backwards compatibility. It has a different $$typeof, so we can properly
  1630.         // warn for the incorrect usage of Context as a Consumer.
  1631.         var Consumer = {
  1632.           $$typeof: REACT_CONTEXT_TYPE,
  1633.           _context: context,
  1634.           _calculateChangedBits: context._calculateChangedBits
  1635.         }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  1636.  
  1637.         Object.defineProperties(Consumer, {
  1638.           Provider: {
  1639.             get: function () {
  1640.               if (!hasWarnedAboutUsingConsumerProvider) {
  1641.                 hasWarnedAboutUsingConsumerProvider = true;
  1642.                 warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  1643.               }
  1644.  
  1645.               return context.Provider;
  1646.             },
  1647.             set: function (_Provider) {
  1648.               context.Provider = _Provider;
  1649.             }
  1650.           },
  1651.           _currentValue: {
  1652.             get: function () {
  1653.               return context._currentValue;
  1654.             },
  1655.             set: function (_currentValue) {
  1656.               context._currentValue = _currentValue;
  1657.             }
  1658.           },
  1659.           _currentValue2: {
  1660.             get: function () {
  1661.               return context._currentValue2;
  1662.             },
  1663.             set: function (_currentValue2) {
  1664.               context._currentValue2 = _currentValue2;
  1665.             }
  1666.           },
  1667.           _threadCount: {
  1668.             get: function () {
  1669.               return context._threadCount;
  1670.             },
  1671.             set: function (_threadCount) {
  1672.               context._threadCount = _threadCount;
  1673.             }
  1674.           },
  1675.           Consumer: {
  1676.             get: function () {
  1677.               if (!hasWarnedAboutUsingNestedContextConsumers) {
  1678.                 hasWarnedAboutUsingNestedContextConsumers = true;
  1679.                 warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  1680.               }
  1681.  
  1682.               return context.Consumer;
  1683.             }
  1684.           }
  1685.         }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  1686.  
  1687.         context.Consumer = Consumer;
  1688.       }
  1689.       {
  1690.         context._currentRenderer = null;
  1691.         context._currentRenderer2 = null;
  1692.       }
  1693.       return context;
  1694.     }
  1695.  
  1696.     function lazy(ctor) {
  1697.       var lazyType = {
  1698.         $$typeof: REACT_LAZY_TYPE,
  1699.         _ctor: ctor,
  1700.         // React uses these fields to store the result.
  1701.         _status: -1,
  1702.         _result: null
  1703.       };
  1704.       {
  1705.         // In production, this would just set it on the object.
  1706.         var defaultProps = void 0;
  1707.         var propTypes = void 0;
  1708.         Object.defineProperties(lazyType, {
  1709.           defaultProps: {
  1710.             configurable: true,
  1711.             get: function () {
  1712.               return defaultProps;
  1713.             },
  1714.             set: function (newDefaultProps) {
  1715.               warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  1716.               defaultProps = newDefaultProps; // Match production behavior more closely:
  1717.  
  1718.               Object.defineProperty(lazyType, 'defaultProps', {
  1719.                 enumerable: true
  1720.               });
  1721.             }
  1722.           },
  1723.           propTypes: {
  1724.             configurable: true,
  1725.             get: function () {
  1726.               return propTypes;
  1727.             },
  1728.             set: function (newPropTypes) {
  1729.               warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  1730.               propTypes = newPropTypes; // Match production behavior more closely:
  1731.  
  1732.               Object.defineProperty(lazyType, 'propTypes', {
  1733.                 enumerable: true
  1734.               });
  1735.             }
  1736.           }
  1737.         });
  1738.       }
  1739.       return lazyType;
  1740.     }
  1741.  
  1742.     function forwardRef(render) {
  1743.       {
  1744.         if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  1745.           warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  1746.         } else if (typeof render !== 'function') {
  1747.           warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  1748.         } else {
  1749.           !( // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  1750.           render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
  1751.         }
  1752.  
  1753.         if (render != null) {
  1754.           !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
  1755.         }
  1756.       }
  1757.       return {
  1758.         $$typeof: REACT_FORWARD_REF_TYPE,
  1759.         render: render
  1760.       };
  1761.     }
  1762.  
  1763.     function isValidElementType(type) {
  1764.       return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  1765.       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);
  1766.     }
  1767.  
  1768.     function memo(type, compare) {
  1769.       {
  1770.         if (!isValidElementType(type)) {
  1771.           warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  1772.         }
  1773.       }
  1774.       return {
  1775.         $$typeof: REACT_MEMO_TYPE,
  1776.         type: type,
  1777.         compare: compare === undefined ? null : compare
  1778.       };
  1779.     }
  1780.  
  1781.     function resolveDispatcher() {
  1782.       var dispatcher = ReactCurrentDispatcher.current;
  1783.       !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)') : void 0;
  1784.       return dispatcher;
  1785.     }
  1786.  
  1787.     function useContext(Context, unstable_observedBits) {
  1788.       var dispatcher = resolveDispatcher();
  1789.       {
  1790.         !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0; // TODO: add a more generic warning for invalid values.
  1791.  
  1792.         if (Context._context !== undefined) {
  1793.           var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
  1794.           // and nobody should be using this in existing code.
  1795.  
  1796.           if (realContext.Consumer === Context) {
  1797.             warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
  1798.           } else if (realContext.Provider === Context) {
  1799.             warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  1800.           }
  1801.         }
  1802.       }
  1803.       return dispatcher.useContext(Context, unstable_observedBits);
  1804.     }
  1805.  
  1806.     function useState(initialState) {
  1807.       var dispatcher = resolveDispatcher();
  1808.       return dispatcher.useState(initialState);
  1809.     }
  1810.  
  1811.     function useReducer(reducer, initialArg, init) {
  1812.       var dispatcher = resolveDispatcher();
  1813.       return dispatcher.useReducer(reducer, initialArg, init);
  1814.     }
  1815.  
  1816.     function useRef(initialValue) {
  1817.       var dispatcher = resolveDispatcher();
  1818.       return dispatcher.useRef(initialValue);
  1819.     }
  1820.  
  1821.     function useEffect(create, inputs) {
  1822.       var dispatcher = resolveDispatcher();
  1823.       return dispatcher.useEffect(create, inputs);
  1824.     }
  1825.  
  1826.     function useLayoutEffect(create, inputs) {
  1827.       var dispatcher = resolveDispatcher();
  1828.       return dispatcher.useLayoutEffect(create, inputs);
  1829.     }
  1830.  
  1831.     function useCallback(callback, inputs) {
  1832.       var dispatcher = resolveDispatcher();
  1833.       return dispatcher.useCallback(callback, inputs);
  1834.     }
  1835.  
  1836.     function useMemo(create, inputs) {
  1837.       var dispatcher = resolveDispatcher();
  1838.       return dispatcher.useMemo(create, inputs);
  1839.     }
  1840.  
  1841.     function useImperativeHandle(ref, create, inputs) {
  1842.       var dispatcher = resolveDispatcher();
  1843.       return dispatcher.useImperativeHandle(ref, create, inputs);
  1844.     }
  1845.  
  1846.     function useDebugValue(value, formatterFn) {
  1847.       {
  1848.         var dispatcher = resolveDispatcher();
  1849.         return dispatcher.useDebugValue(value, formatterFn);
  1850.       }
  1851.     }
  1852.     /**
  1853.      * ReactElementValidator provides a wrapper around a element factory
  1854.      * which validates the props passed to the element. This is intended to be
  1855.      * used only in DEV and could be replaced by a static type checker for languages
  1856.      * that support it.
  1857.      */
  1858.  
  1859.  
  1860.     var propTypesMisspellWarningShown = void 0;
  1861.     {
  1862.       propTypesMisspellWarningShown = false;
  1863.     }
  1864.  
  1865.     function getDeclarationErrorAddendum() {
  1866.       if (ReactCurrentOwner.current) {
  1867.         var name = getComponentName(ReactCurrentOwner.current.type);
  1868.  
  1869.         if (name) {
  1870.           return '\n\nCheck the render method of `' + name + '`.';
  1871.         }
  1872.       }
  1873.  
  1874.       return '';
  1875.     }
  1876.  
  1877.     function getSourceInfoErrorAddendum(elementProps) {
  1878.       if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  1879.         var source = elementProps.__source;
  1880.         var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  1881.         var lineNumber = source.lineNumber;
  1882.         return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  1883.       }
  1884.  
  1885.       return '';
  1886.     }
  1887.     /**
  1888.      * Warn if there's no key explicitly set on dynamic arrays of children or
  1889.      * object keys are not valid. This allows us to keep track of children between
  1890.      * updates.
  1891.      */
  1892.  
  1893.  
  1894.     var ownerHasKeyUseWarning = {};
  1895.  
  1896.     function getCurrentComponentErrorInfo(parentType) {
  1897.       var info = getDeclarationErrorAddendum();
  1898.  
  1899.       if (!info) {
  1900.         var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  1901.  
  1902.         if (parentName) {
  1903.           info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  1904.         }
  1905.       }
  1906.  
  1907.       return info;
  1908.     }
  1909.     /**
  1910.      * Warn if the element doesn't have an explicit key assigned to it.
  1911.      * This element is in an array. The array could grow and shrink or be
  1912.      * reordered. All children that haven't already been validated are required to
  1913.      * have a "key" property assigned to it. Error statuses are cached so a warning
  1914.      * will only be shown once.
  1915.      *
  1916.      * @internal
  1917.      * @param {ReactElement} element Element that requires a key.
  1918.      * @param {*} parentType element's parent's type.
  1919.      */
  1920.  
  1921.  
  1922.     function validateExplicitKey(element, parentType) {
  1923.       if (!element._store || element._store.validated || element.key != null) {
  1924.         return;
  1925.       }
  1926.  
  1927.       element._store.validated = true;
  1928.       var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  1929.  
  1930.       if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  1931.         return;
  1932.       }
  1933.  
  1934.       ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
  1935.       // property, it may be the creator of the child that's responsible for
  1936.       // assigning it a key.
  1937.  
  1938.       var childOwner = '';
  1939.  
  1940.       if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  1941.         // Give the component that originally created this child.
  1942.         childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  1943.       }
  1944.  
  1945.       setCurrentlyValidatingElement(element);
  1946.       {
  1947.         warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  1948.       }
  1949.       setCurrentlyValidatingElement(null);
  1950.     }
  1951.     /**
  1952.      * Ensure that every element either is passed in a static location, in an
  1953.      * array with an explicit keys property defined, or in an object literal
  1954.      * with valid key property.
  1955.      *
  1956.      * @internal
  1957.      * @param {ReactNode} node Statically passed child of any type.
  1958.      * @param {*} parentType node's parent's type.
  1959.      */
  1960.  
  1961.  
  1962.     function validateChildKeys(node, parentType) {
  1963.       if (typeof node !== 'object') {
  1964.         return;
  1965.       }
  1966.  
  1967.       if (Array.isArray(node)) {
  1968.         for (var i = 0; i < node.length; i++) {
  1969.           var child = node[i];
  1970.  
  1971.           if (isValidElement(child)) {
  1972.             validateExplicitKey(child, parentType);
  1973.           }
  1974.         }
  1975.       } else if (isValidElement(node)) {
  1976.         // This element was passed in a valid location.
  1977.         if (node._store) {
  1978.           node._store.validated = true;
  1979.         }
  1980.       } else if (node) {
  1981.         var iteratorFn = getIteratorFn(node);
  1982.  
  1983.         if (typeof iteratorFn === 'function') {
  1984.           // Entry iterators used to provide implicit keys,
  1985.           // but now we print a separate warning for them later.
  1986.           if (iteratorFn !== node.entries) {
  1987.             var iterator = iteratorFn.call(node);
  1988.             var step = void 0;
  1989.  
  1990.             while (!(step = iterator.next()).done) {
  1991.               if (isValidElement(step.value)) {
  1992.                 validateExplicitKey(step.value, parentType);
  1993.               }
  1994.             }
  1995.           }
  1996.         }
  1997.       }
  1998.     }
  1999.     /**
  2000.      * Given an element, validate that its props follow the propTypes definition,
  2001.      * provided by the type.
  2002.      *
  2003.      * @param {ReactElement} element
  2004.      */
  2005.  
  2006.  
  2007.     function validatePropTypes(element) {
  2008.       var type = element.type;
  2009.  
  2010.       if (type === null || type === undefined || typeof type === 'string') {
  2011.         return;
  2012.       }
  2013.  
  2014.       var name = getComponentName(type);
  2015.       var propTypes = void 0;
  2016.  
  2017.       if (typeof type === 'function') {
  2018.         propTypes = type.propTypes;
  2019.       } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
  2020.       // Inner props are checked in the reconciler.
  2021.       type.$$typeof === REACT_MEMO_TYPE)) {
  2022.         propTypes = type.propTypes;
  2023.       } else {
  2024.         return;
  2025.       }
  2026.  
  2027.       if (propTypes) {
  2028.         setCurrentlyValidatingElement(element);
  2029.         checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  2030.         setCurrentlyValidatingElement(null);
  2031.       } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  2032.         propTypesMisspellWarningShown = true;
  2033.         warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  2034.       }
  2035.  
  2036.       if (typeof type.getDefaultProps === 'function') {
  2037.         !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  2038.       }
  2039.     }
  2040.     /**
  2041.      * Given a fragment, validate that it can only be provided with fragment props
  2042.      * @param {ReactElement} fragment
  2043.      */
  2044.  
  2045.  
  2046.     function validateFragmentProps(fragment) {
  2047.       setCurrentlyValidatingElement(fragment);
  2048.       var keys = Object.keys(fragment.props);
  2049.  
  2050.       for (var i = 0; i < keys.length; i++) {
  2051.         var key = keys[i];
  2052.  
  2053.         if (key !== 'children' && key !== 'key') {
  2054.           warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  2055.           break;
  2056.         }
  2057.       }
  2058.  
  2059.       if (fragment.ref !== null) {
  2060.         warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  2061.       }
  2062.  
  2063.       setCurrentlyValidatingElement(null);
  2064.     }
  2065.  
  2066.     function createElementWithValidation(type, props, children) {
  2067.       var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
  2068.       // succeed and there will likely be errors in render.
  2069.  
  2070.       if (!validType) {
  2071.         var info = '';
  2072.  
  2073.         if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  2074.           info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
  2075.         }
  2076.  
  2077.         var sourceInfo = getSourceInfoErrorAddendum(props);
  2078.  
  2079.         if (sourceInfo) {
  2080.           info += sourceInfo;
  2081.         } else {
  2082.           info += getDeclarationErrorAddendum();
  2083.         }
  2084.  
  2085.         var typeString = void 0;
  2086.  
  2087.         if (type === null) {
  2088.           typeString = 'null';
  2089.         } else if (Array.isArray(type)) {
  2090.           typeString = 'array';
  2091.         } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  2092.           typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  2093.           info = ' Did you accidentally export a JSX literal instead of a component?';
  2094.         } else {
  2095.           typeString = typeof type;
  2096.         }
  2097.  
  2098.         warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  2099.       }
  2100.  
  2101.       var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
  2102.       // TODO: Drop this when these are no longer allowed as the type argument.
  2103.  
  2104.       if (element == null) {
  2105.         return element;
  2106.       } // Skip key warning if the type isn't valid since our key validation logic
  2107.       // doesn't expect a non-string/function type and can throw confusing errors.
  2108.       // We don't want exception behavior to differ between dev and prod.
  2109.       // (Rendering will throw with a helpful message and as soon as the type is
  2110.       // fixed, the key warnings will appear.)
  2111.  
  2112.  
  2113.       if (validType) {
  2114.         for (var i = 2; i < arguments.length; i++) {
  2115.           validateChildKeys(arguments[i], type);
  2116.         }
  2117.       }
  2118.  
  2119.       if (type === REACT_FRAGMENT_TYPE) {
  2120.         validateFragmentProps(element);
  2121.       } else {
  2122.         validatePropTypes(element);
  2123.       }
  2124.  
  2125.       return element;
  2126.     }
  2127.  
  2128.     function createFactoryWithValidation(type) {
  2129.       var validatedFactory = createElementWithValidation.bind(null, type);
  2130.       validatedFactory.type = type; // Legacy hook: remove it
  2131.  
  2132.       {
  2133.         Object.defineProperty(validatedFactory, 'type', {
  2134.           enumerable: false,
  2135.           get: function () {
  2136.             lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  2137.             Object.defineProperty(this, 'type', {
  2138.               value: type
  2139.             });
  2140.             return type;
  2141.           }
  2142.         });
  2143.       }
  2144.       return validatedFactory;
  2145.     }
  2146.  
  2147.     function cloneElementWithValidation(element, props, children) {
  2148.       var newElement = cloneElement.apply(this, arguments);
  2149.  
  2150.       for (var i = 2; i < arguments.length; i++) {
  2151.         validateChildKeys(arguments[i], newElement.type);
  2152.       }
  2153.  
  2154.       validatePropTypes(newElement);
  2155.       return newElement;
  2156.     } // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  2157.     // In some cases, StrictMode should also double-render lifecycles.
  2158.     // This can be confusing for tests though,
  2159.     // And it can be bad for performance in production.
  2160.     // This feature flag can be used to control the behavior:
  2161.     // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  2162.     // replay the begin phase of a failed component inside invokeGuardedCallback.
  2163.     // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  2164.     // Gather advanced timing metrics for Profiler subtrees.
  2165.     // Trace which interactions trigger each commit.
  2166.     // Only used in www builds.
  2167.     // TODO: true? Here it might just be false.
  2168.     // Only used in www builds.
  2169.     // Only used in www builds.
  2170.     // React Fire: prevent the value and checked attributes from syncing
  2171.     // with their related DOM properties
  2172.     // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  2173.     // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  2174.  
  2175.  
  2176.     var enableStableConcurrentModeAPIs = false;
  2177.     var React = {
  2178.       Children: {
  2179.         map: mapChildren,
  2180.         forEach: forEachChildren,
  2181.         count: countChildren,
  2182.         toArray: toArray,
  2183.         only: onlyChild
  2184.       },
  2185.       createRef: createRef,
  2186.       Component: Component,
  2187.       PureComponent: PureComponent,
  2188.       createContext: createContext,
  2189.       forwardRef: forwardRef,
  2190.       lazy: lazy,
  2191.       memo: memo,
  2192.       useCallback: useCallback,
  2193.       useContext: useContext,
  2194.       useEffect: useEffect,
  2195.       useImperativeHandle: useImperativeHandle,
  2196.       useDebugValue: useDebugValue,
  2197.       useLayoutEffect: useLayoutEffect,
  2198.       useMemo: useMemo,
  2199.       useReducer: useReducer,
  2200.       useRef: useRef,
  2201.       useState: useState,
  2202.       Fragment: REACT_FRAGMENT_TYPE,
  2203.       StrictMode: REACT_STRICT_MODE_TYPE,
  2204.       Suspense: REACT_SUSPENSE_TYPE,
  2205.       createElement: createElementWithValidation,
  2206.       cloneElement: cloneElementWithValidation,
  2207.       createFactory: createFactoryWithValidation,
  2208.       isValidElement: isValidElement,
  2209.       version: ReactVersion,
  2210.       unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
  2211.       unstable_Profiler: REACT_PROFILER_TYPE,
  2212.       __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  2213.     }; // Note: some APIs are added with feature flags.
  2214.     // Make sure that stable builds for open source
  2215.     // don't modify the React object to avoid deopts.
  2216.     // Also let's not expose their names in stable builds.
  2217.  
  2218.     if (enableStableConcurrentModeAPIs) {
  2219.       React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  2220.       React.Profiler = REACT_PROFILER_TYPE;
  2221.       React.unstable_ConcurrentMode = undefined;
  2222.       React.unstable_Profiler = undefined;
  2223.     }
  2224.  
  2225.     var React$2 = Object.freeze({
  2226.       default: React
  2227.     });
  2228.     var React$3 = React$2 && React || React$2; // TODO: decide on the top-level export form.
  2229.     // This is hacky but makes it work with both Rollup and Jest.
  2230.  
  2231.     var react = React$3.default || React$3;
  2232.     module.exports = react;
  2233.   })();
  2234. }
  2235. },{"object-assign":"../node_modules/object-assign/index.js","prop-types/checkPropTypes":"../node_modules/prop-types/checkPropTypes.js"}],"../node_modules/react/index.js":[function(require,module,exports) {
  2236. 'use strict';
  2237.  
  2238. if ("development" === 'production') {
  2239.   module.exports = require('./cjs/react.production.min.js');
  2240. } else {
  2241.   module.exports = require('./cjs/react.development.js');
  2242. }
  2243. },{"./cjs/react.development.js":"../node_modules/react/cjs/react.development.js"}],"../../../../../../../../../usr/local/lib/node_modules/parcel-bundler/src/builtins/bundle-url.js":[function(require,module,exports) {
  2244. var bundleURL = null;
  2245.  
  2246. function getBundleURLCached() {
  2247.   if (!bundleURL) {
  2248.     bundleURL = getBundleURL();
  2249.   }
  2250.  
  2251.   return bundleURL;
  2252. }
  2253.  
  2254. function getBundleURL() {
  2255.   // Attempt to find the URL of the current script and use that as the base URL
  2256.   try {
  2257.     throw new Error();
  2258.   } catch (err) {
  2259.     var matches = ('' + err.stack).match(/(https?|file|ftp):\/\/[^)\n]+/g);
  2260.  
  2261.     if (matches) {
  2262.       return getBaseURL(matches[0]);
  2263.     }
  2264.   }
  2265.  
  2266.   return '/';
  2267. }
  2268.  
  2269. function getBaseURL(url) {
  2270.   return ('' + url).replace(/^((?:https?|file|ftp):\/\/.+)\/[^/]+$/, '$1') + '/';
  2271. }
  2272.  
  2273. exports.getBundleURL = getBundleURLCached;
  2274. exports.getBaseURL = getBaseURL;
  2275. },{}],"../../../../../../../../../usr/local/lib/node_modules/parcel-bundler/src/builtins/css-loader.js":[function(require,module,exports) {
  2276. var bundle = require('./bundle-url');
  2277.  
  2278. function updateLink(link) {
  2279.   var newLink = link.cloneNode();
  2280.  
  2281.   newLink.onload = function () {
  2282.     link.remove();
  2283.   };
  2284.  
  2285.   newLink.href = link.href.split('?')[0] + '?' + Date.now();
  2286.   link.parentNode.insertBefore(newLink, link.nextSibling);
  2287. }
  2288.  
  2289. var cssTimeout = null;
  2290.  
  2291. function reloadCSS() {
  2292.   if (cssTimeout) {
  2293.     return;
  2294.   }
  2295.  
  2296.   cssTimeout = setTimeout(function () {
  2297.     var links = document.querySelectorAll('link[rel="stylesheet"]');
  2298.  
  2299.     for (var i = 0; i < links.length; i++) {
  2300.       if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
  2301.         updateLink(links[i]);
  2302.       }
  2303.     }
  2304.  
  2305.     cssTimeout = null;
  2306.   }, 50);
  2307. }
  2308.  
  2309. module.exports = reloadCSS;
  2310. },{"./bundle-url":"../../../../../../../../../usr/local/lib/node_modules/parcel-bundler/src/builtins/bundle-url.js"}],"App.css":[function(require,module,exports) {
  2311. var reloadCSS = require('_css_loader');
  2312.  
  2313. module.hot.dispose(reloadCSS);
  2314. module.hot.accept(reloadCSS);
  2315. },{"_css_loader":"../../../../../../../../../usr/local/lib/node_modules/parcel-bundler/src/builtins/css-loader.js"}],"App.js":[function(require,module,exports) {
  2316. "use strict";
  2317.  
  2318. Object.defineProperty(exports, "__esModule", {
  2319.   value: true
  2320. });
  2321. exports.default = void 0;
  2322.  
  2323. var _react = _interopRequireWildcard(require("react"));
  2324.  
  2325. require("./App.css");
  2326.  
  2327. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
  2328.  
  2329. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  2330.  
  2331. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  2332.  
  2333. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  2334.  
  2335. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  2336.  
  2337. function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
  2338.  
  2339. function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
  2340.  
  2341. function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
  2342.  
  2343. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
  2344.  
  2345. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  2346.  
  2347. var App =
  2348. /*#__PURE__*/
  2349. function (_Component) {
  2350.   _inherits(App, _Component);
  2351.  
  2352.   function App() {
  2353.     _classCallCheck(this, App);
  2354.  
  2355.     return _possibleConstructorReturn(this, _getPrototypeOf(App).apply(this, arguments));
  2356.   }
  2357.  
  2358.   _createClass(App, [{
  2359.     key: "render",
  2360.     value: function render() {
  2361.       return _react.default.createElement("div", {
  2362.         className: "App"
  2363.       }, _react.default.createElement("header", {
  2364.         className: "App-header"
  2365.       }, _react.default.createElement("img", {
  2366.         src: logo,
  2367.         className: "App-logo",
  2368.         alt: "logo"
  2369.       }), _react.default.createElement("p", null, "Edit ", _react.default.createElement("code", null, "src/App.js"), " and save to reload."), _react.default.createElement("a", {
  2370.         className: "App-link",
  2371.         href: "https://reactjs.org",
  2372.         target: "_blank",
  2373.         rel: "noopener noreferrer"
  2374.       }, "Learn React!")));
  2375.     }
  2376.   }]);
  2377.  
  2378.   return App;
  2379. }(_react.Component);
  2380.  
  2381. var _default = App;
  2382. exports.default = _default;
  2383. },{"react":"../node_modules/react/index.js","./App.css":"App.css"}],"../../../../../../../../../usr/local/lib/node_modules/parcel-bundler/src/builtins/hmr-runtime.js":[function(require,module,exports) {
  2384. var global = arguments[3];
  2385. var OVERLAY_ID = '__parcel__error__overlay__';
  2386. var OldModule = module.bundle.Module;
  2387.  
  2388. function Module(moduleName) {
  2389.   OldModule.call(this, moduleName);
  2390.   this.hot = {
  2391.     data: module.bundle.hotData,
  2392.     _acceptCallbacks: [],
  2393.     _disposeCallbacks: [],
  2394.     accept: function (fn) {
  2395.       this._acceptCallbacks.push(fn || function () {});
  2396.     },
  2397.     dispose: function (fn) {
  2398.       this._disposeCallbacks.push(fn);
  2399.     }
  2400.   };
  2401.   module.bundle.hotData = null;
  2402. }
  2403.  
  2404. module.bundle.Module = Module;
  2405. var parent = module.bundle.parent;
  2406.  
  2407. if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
  2408.   var hostname = "" || location.hostname;
  2409.   var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
  2410.   var ws = new WebSocket(protocol + '://' + hostname + ':' + "49405" + '/');
  2411.  
  2412.   ws.onmessage = function (event) {
  2413.     var data = JSON.parse(event.data);
  2414.  
  2415.     if (data.type === 'update') {
  2416.       console.clear();
  2417.       data.assets.forEach(function (asset) {
  2418.         hmrApply(global.parcelRequire, asset);
  2419.       });
  2420.       data.assets.forEach(function (asset) {
  2421.         if (!asset.isNew) {
  2422.           hmrAccept(global.parcelRequire, asset.id);
  2423.         }
  2424.       });
  2425.     }
  2426.  
  2427.     if (data.type === 'reload') {
  2428.       ws.close();
  2429.  
  2430.       ws.onclose = function () {
  2431.         location.reload();
  2432.       };
  2433.     }
  2434.  
  2435.     if (data.type === 'error-resolved') {
  2436.       console.log('[parcel] ✨ Error resolved');
  2437.       removeErrorOverlay();
  2438.     }
  2439.  
  2440.     if (data.type === 'error') {
  2441.       console.error('[parcel] 🚨  ' + data.error.message + '\n' + data.error.stack);
  2442.       removeErrorOverlay();
  2443.       var overlay = createErrorOverlay(data);
  2444.       document.body.appendChild(overlay);
  2445.     }
  2446.   };
  2447. }
  2448.  
  2449. function removeErrorOverlay() {
  2450.   var overlay = document.getElementById(OVERLAY_ID);
  2451.  
  2452.   if (overlay) {
  2453.     overlay.remove();
  2454.   }
  2455. }
  2456.  
  2457. function createErrorOverlay(data) {
  2458.   var overlay = document.createElement('div');
  2459.   overlay.id = OVERLAY_ID; // html encode message and stack trace
  2460.  
  2461.   var message = document.createElement('div');
  2462.   var stackTrace = document.createElement('pre');
  2463.   message.innerText = data.error.message;
  2464.   stackTrace.innerText = data.error.stack;
  2465.   overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
  2466.   return overlay;
  2467. }
  2468.  
  2469. function getParents(bundle, id) {
  2470.   var modules = bundle.modules;
  2471.  
  2472.   if (!modules) {
  2473.     return [];
  2474.   }
  2475.  
  2476.   var parents = [];
  2477.   var k, d, dep;
  2478.  
  2479.   for (k in modules) {
  2480.     for (d in modules[k][1]) {
  2481.       dep = modules[k][1][d];
  2482.  
  2483.       if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
  2484.         parents.push(k);
  2485.       }
  2486.     }
  2487.   }
  2488.  
  2489.   if (bundle.parent) {
  2490.     parents = parents.concat(getParents(bundle.parent, id));
  2491.   }
  2492.  
  2493.   return parents;
  2494. }
  2495.  
  2496. function hmrApply(bundle, asset) {
  2497.   var modules = bundle.modules;
  2498.  
  2499.   if (!modules) {
  2500.     return;
  2501.   }
  2502.  
  2503.   if (modules[asset.id] || !bundle.parent) {
  2504.     var fn = new Function('require', 'module', 'exports', asset.generated.js);
  2505.     asset.isNew = !modules[asset.id];
  2506.     modules[asset.id] = [fn, asset.deps];
  2507.   } else if (bundle.parent) {
  2508.     hmrApply(bundle.parent, asset);
  2509.   }
  2510. }
  2511.  
  2512. function hmrAccept(bundle, id) {
  2513.   var modules = bundle.modules;
  2514.  
  2515.   if (!modules) {
  2516.     return;
  2517.   }
  2518.  
  2519.   if (!modules[id] && bundle.parent) {
  2520.     return hmrAccept(bundle.parent, id);
  2521.   }
  2522.  
  2523.   var cached = bundle.cache[id];
  2524.   bundle.hotData = {};
  2525.  
  2526.   if (cached) {
  2527.     cached.hot.data = bundle.hotData;
  2528.   }
  2529.  
  2530.   if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
  2531.     cached.hot._disposeCallbacks.forEach(function (cb) {
  2532.       cb(bundle.hotData);
  2533.     });
  2534.   }
  2535.  
  2536.   delete bundle.cache[id];
  2537.   bundle(id);
  2538.   cached = bundle.cache[id];
  2539.  
  2540.   if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
  2541.     cached.hot._acceptCallbacks.forEach(function (cb) {
  2542.       cb();
  2543.     });
  2544.  
  2545.     return true;
  2546.   }
  2547.  
  2548.   return getParents(global.parcelRequire, id).some(function (id) {
  2549.     return hmrAccept(global.parcelRequire, id);
  2550.   });
  2551. }
  2552. },{}]},{},["../../../../../../../../../usr/local/lib/node_modules/parcel-bundler/src/builtins/hmr-runtime.js","App.js"], null)
  2553. //# sourceMappingURL=/dashboard.map
Advertisement
Add Comment
Please, Sign In to add comment