From fb86179870227b6cc489fa325208aaba1acf5c02 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Wed, 26 Feb 2020 17:59:19 -0800 Subject: [PATCH] DOM named exports --- build/bundle-sizes.json | 188 +-- .../react-dom-server.browser.development.js | 31 +- ...react-dom-server.browser.production.min.js | 76 +- .../dist/react-dom-test-utils.development.js | 420 ++++--- .../react-dom-test-utils.production.min.js | 44 +- ...t-dom-unstable-fizz.browser.development.js | 20 +- ...om-unstable-fizz.browser.production.min.js | 4 +- ...nstable-native-dependencies.development.js | 21 +- ...able-native-dependencies.production.min.js | 40 +- ...-dom-webpack-server.browser.development.js | 4 +- ...react-test-renderer-shallow.development.js | 10 +- ...ct-test-renderer-shallow.production.min.js | 30 +- build/dist/react-test-renderer.development.js | 231 ++-- .../react-test-renderer.production.min.js | 286 ++--- build/facebook-www/ReactDOMServer-dev.js | 30 +- build/facebook-www/ReactDOMServer-prod.js | 1104 ++++++++--------- .../facebook-www/ReactShallowRenderer-dev.js | 20 +- build/facebook-www/ReactTestRenderer-dev.js | 251 ++-- build/facebook-www/ReactTestUtils-dev.js | 490 ++++---- .../react-dom-server.browser.development.js | 32 +- ...react-dom-server.browser.production.min.js | 4 +- .../cjs/react-dom-server.node.development.js | 20 +- .../react-dom-server.node.production.min.js | 4 +- .../cjs/react-dom-test-utils.development.js | 425 ++++--- .../react-dom-test-utils.production.min.js | 46 +- ...t-dom-unstable-fizz.browser.development.js | 23 +- ...om-unstable-fizz.browser.production.min.js | 4 +- ...eact-dom-unstable-fizz.node.development.js | 12 +- ...t-dom-unstable-fizz.node.production.min.js | 3 +- ...nstable-native-dependencies.development.js | 19 +- ...able-native-dependencies.production.min.js | 38 +- .../react-dom-server.browser.development.js | 31 +- ...react-dom-server.browser.production.min.js | 76 +- .../umd/react-dom-test-utils.development.js | 420 ++++--- .../react-dom-test-utils.production.min.js | 44 +- ...t-dom-unstable-fizz.browser.development.js | 20 +- ...om-unstable-fizz.browser.production.min.js | 4 +- ...nstable-native-dependencies.development.js | 21 +- ...able-native-dependencies.production.min.js | 40 +- ...-dom-webpack-server.browser.development.js | 4 +- ...ght-dom-webpack-server.node.development.js | 4 +- ...-dom-webpack-server.browser.development.js | 4 +- ...react-test-renderer-shallow.development.js | 21 +- ...ct-test-renderer-shallow.production.min.js | 2 +- .../cjs/react-test-renderer.development.js | 234 ++-- .../cjs/react-test-renderer.production.min.js | 37 +- ...react-test-renderer-shallow.development.js | 10 +- ...ct-test-renderer-shallow.production.min.js | 30 +- .../umd/react-test-renderer.development.js | 231 ++-- .../umd/react-test-renderer.production.min.js | 286 ++--- 50 files changed, 2617 insertions(+), 2832 deletions(-) diff --git a/build/bundle-sizes.json b/build/bundle-sizes.json index 9a17628..e0ac78b 100644 --- a/build/bundle-sizes.json +++ b/build/bundle-sizes.json @@ -123,36 +123,36 @@ "filename": "react-dom-test-utils.development.js", "bundleType": "UMD_DEV", "packageName": "react-dom", - "size": 54960, - "gzip": 14327 + "size": 55050, + "gzip": 14326 }, { "filename": "react-dom-test-utils.production.min.js", "bundleType": "UMD_PROD", "packageName": "react-dom", - "size": 11518, - "gzip": 4264 + "size": 11200, + "gzip": 4246 }, { "filename": "react-dom-test-utils.development.js", "bundleType": "NODE_DEV", "packageName": "react-dom", - "size": 50942, - "gzip": 13954 + "size": 50731, + "gzip": 13823 }, { "filename": "react-dom-test-utils.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-dom", - "size": 11278, - "gzip": 4195 + "size": 11048, + "gzip": 4177 }, { "filename": "ReactTestUtils-dev.js", "bundleType": "FB_WWW_DEV", "packageName": "react-dom", - "size": 52861, - "gzip": 14173 + "size": 52545, + "gzip": 14031 }, { "filename": "react-dom-testing.development.js", @@ -221,134 +221,134 @@ "filename": "react-dom-unstable-native-dependencies.development.js", "bundleType": "UMD_DEV", "packageName": "react-dom", - "size": 60478, - "gzip": 15088 + "size": 60307, + "gzip": 15036 }, { "filename": "react-dom-unstable-native-dependencies.production.min.js", "bundleType": "UMD_PROD", "packageName": "react-dom", - "size": 10524, - "gzip": 3568 + "size": 10497, + "gzip": 3558 }, { "filename": "react-dom-unstable-native-dependencies.development.js", "bundleType": "NODE_DEV", "packageName": "react-dom", - "size": 57514, - "gzip": 14920 + "size": 57194, + "gzip": 14792 }, { "filename": "react-dom-unstable-native-dependencies.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-dom", - "size": 10254, - "gzip": 3465 + "size": 10219, + "gzip": 3437 }, { "filename": "react-dom-server.browser.development.js", "bundleType": "UMD_DEV", "packageName": "react-dom", - "size": 141429, - "gzip": 36016 + "size": 141155, + "gzip": 35911 }, { "filename": "react-dom-server.browser.production.min.js", "bundleType": "UMD_PROD", "packageName": "react-dom", - "size": 20943, - "gzip": 7677 + "size": 20893, + "gzip": 7645 }, { "filename": "react-dom-server.browser.development.js", "bundleType": "NODE_DEV", "packageName": "react-dom", - "size": 130739, - "gzip": 34710 + "size": 130176, + "gzip": 34501 }, { "filename": "react-dom-server.browser.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-dom", - "size": 20855, - "gzip": 7639 + "size": 20808, + "gzip": 7594 }, { "filename": "ReactDOMServer-dev.js", "bundleType": "FB_WWW_DEV", "packageName": "react-dom", - "size": 137936, - "gzip": 35176 + "size": 137374, + "gzip": 34945 }, { "filename": "ReactDOMServer-prod.js", "bundleType": "FB_WWW_PROD", "packageName": "react-dom", - "size": 49443, - "gzip": 11278 + "size": 47774, + "gzip": 11088 }, { "filename": "react-dom-server.node.development.js", "bundleType": "NODE_DEV", "packageName": "react-dom", - "size": 131614, - "gzip": 34851 + "size": 131423, + "gzip": 34766 }, { "filename": "react-dom-server.node.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-dom", - "size": 21274, - "gzip": 7791 + "size": 21227, + "gzip": 7750 }, { "filename": "react-dom-unstable-fizz.browser.development.js", "bundleType": "UMD_DEV", "packageName": "react-dom", - "size": 3675, - "gzip": 1379 + "size": 3415, + "gzip": 1280 }, { "filename": "react-dom-unstable-fizz.browser.production.min.js", "bundleType": "UMD_PROD", "packageName": "react-dom", - "size": 1259, - "gzip": 712 + "size": 1196, + "gzip": 679 }, { "filename": "react-dom-unstable-fizz.browser.development.js", "bundleType": "NODE_DEV", "packageName": "react-dom", - "size": 3568, - "gzip": 1422 + "size": 3001, + "gzip": 1188 }, { "filename": "react-dom-unstable-fizz.browser.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-dom", - "size": 1083, - "gzip": 640 + "size": 1007, + "gzip": 593 }, { "filename": "react-dom-unstable-fizz.node.development.js", "bundleType": "NODE_DEV", "packageName": "react-dom", - "size": 4017, - "gzip": 1471 + "size": 3762, + "gzip": 1354 }, { "filename": "react-dom-unstable-fizz.node.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-dom", - "size": 1244, - "gzip": 696 + "size": 1167, + "gzip": 645 }, { "filename": "react-flight-dom-webpack-server.browser.development.js", "bundleType": "UMD_DEV", "packageName": "react-flight-dom-webpack", - "size": 9604, - "gzip": 2950 + "size": 9588, + "gzip": 2954 }, { "filename": "react-flight-dom-webpack-server.browser.production.min.js", @@ -361,7 +361,7 @@ "filename": "react-flight-dom-webpack-server.browser.development.js", "bundleType": "NODE_DEV", "packageName": "react-flight-dom-webpack", - "size": 9084, + "size": 9068, "gzip": 2966 }, { @@ -375,7 +375,7 @@ "filename": "react-flight-dom-webpack-server.node.development.js", "bundleType": "NODE_DEV", "packageName": "react-flight-dom-webpack", - "size": 9728, + "size": 9712, "gzip": 3130 }, { @@ -459,155 +459,155 @@ "filename": "ReactNativeRenderer-dev.js", "bundleType": "RN_FB_DEV", "packageName": "react-native-renderer", - "size": 648625, - "gzip": 140076 + "size": 648847, + "gzip": 140187 }, { "filename": "ReactNativeRenderer-prod.js", "bundleType": "RN_FB_PROD", "packageName": "react-native-renderer", - "size": 267249, - "gzip": 46352 + "size": 267796, + "gzip": 46433 }, { "filename": "ReactNativeRenderer-profiling.js", "bundleType": "RN_FB_PROFILING", "packageName": "react-native-renderer", - "size": 278668, - "gzip": 48533 + "size": 279223, + "gzip": 48613 }, { "filename": "ReactNativeRenderer-dev.js", "bundleType": "RN_OSS_DEV", "packageName": "react-native-renderer", - "size": 645578, - "gzip": 139679 + "size": 646076, + "gzip": 139884 }, { "filename": "ReactNativeRenderer-prod.js", "bundleType": "RN_OSS_PROD", "packageName": "react-native-renderer", - "size": 266850, - "gzip": 46288 + "size": 267397, + "gzip": 46369 }, { "filename": "ReactNativeRenderer-profiling.js", "bundleType": "RN_OSS_PROFILING", "packageName": "react-native-renderer", - "size": 278274, - "gzip": 48468 + "size": 278829, + "gzip": 48549 }, { "filename": "ReactFabric-dev.js", "bundleType": "RN_FB_DEV", "packageName": "react-native-renderer", - "size": 630112, - "gzip": 135683 + "size": 630578, + "gzip": 135926 }, { "filename": "ReactFabric-prod.js", "bundleType": "RN_FB_PROD", "packageName": "react-native-renderer", - "size": 258919, - "gzip": 44848 + "size": 259657, + "gzip": 44991 }, { "filename": "ReactFabric-profiling.js", "bundleType": "RN_FB_PROFILING", "packageName": "react-native-renderer", - "size": 270338, - "gzip": 47022 + "size": 271088, + "gzip": 47167 }, { "filename": "ReactFabric-dev.js", "bundleType": "RN_OSS_DEV", "packageName": "react-native-renderer", - "size": 627161, - "gzip": 135295 + "size": 627869, + "gzip": 135626 }, { "filename": "ReactFabric-prod.js", "bundleType": "RN_OSS_PROD", "packageName": "react-native-renderer", - "size": 258561, - "gzip": 44761 + "size": 259299, + "gzip": 44906 }, { "filename": "ReactFabric-profiling.js", "bundleType": "RN_OSS_PROFILING", "packageName": "react-native-renderer", - "size": 269985, - "gzip": 46949 + "size": 270735, + "gzip": 47094 }, { "filename": "react-test-renderer.development.js", "bundleType": "UMD_DEV", "packageName": "react-test-renderer", - "size": 567869, - "gzip": 118157 + "size": 567401, + "gzip": 118070 }, { "filename": "react-test-renderer.production.min.js", "bundleType": "UMD_PROD", "packageName": "react-test-renderer", - "size": 72864, - "gzip": 22151 + "size": 72795, + "gzip": 22102 }, { "filename": "react-test-renderer.development.js", "bundleType": "NODE_DEV", "packageName": "react-test-renderer", - "size": 537731, - "gzip": 115855 + "size": 536993, + "gzip": 115677 }, { "filename": "react-test-renderer.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-test-renderer", - "size": 72669, - "gzip": 21803 + "size": 72605, + "gzip": 21765 }, { "filename": "ReactTestRenderer-dev.js", "bundleType": "FB_WWW_DEV", "packageName": "react-test-renderer", - "size": 565288, - "gzip": 119082 + "size": 564533, + "gzip": 118870 }, { "filename": "react-test-renderer-shallow.development.js", "bundleType": "UMD_DEV", "packageName": "react-test-renderer", - "size": 40198, - "gzip": 10075 + "size": 40090, + "gzip": 10023 }, { "filename": "react-test-renderer-shallow.production.min.js", "bundleType": "UMD_PROD", "packageName": "react-test-renderer", - "size": 11957, - "gzip": 3688 + "size": 11895, + "gzip": 3655 }, { "filename": "react-test-renderer-shallow.development.js", "bundleType": "NODE_DEV", "packageName": "react-test-renderer", - "size": 33154, - "gzip": 8676 + "size": 32775, + "gzip": 8545 }, { "filename": "react-test-renderer-shallow.production.min.js", "bundleType": "NODE_PROD", "packageName": "react-test-renderer", - "size": 12087, - "gzip": 3794 + "size": 12020, + "gzip": 3752 }, { "filename": "ReactShallowRenderer-dev.js", "bundleType": "FB_WWW_DEV", "packageName": "react-test-renderer", - "size": 35456, - "gzip": 8728 + "size": 35077, + "gzip": 8604 }, { "filename": "react-noop-renderer.development.js", diff --git a/build/dist/react-dom-server.browser.development.js b/build/dist/react-dom-server.browser.development.js index fb34666..676aa56 100644 --- a/build/dist/react-dom-server.browser.development.js +++ b/build/dist/react-dom-server.browser.development.js @@ -10,10 +10,10 @@ 'use strict'; (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) : - typeof define === 'function' && define.amd ? define(['react'], factory) : - (global = global || self, global.ReactDOMServer = factory(global.React)); -}(this, (function (React) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : + typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : + (global = global || self, factory(global.ReactDOMServer = {}, global.React)); +}(this, (function (exports, React) { 'use strict'; // Do not require this module directly! Use normal `invariant` calls with // template literal strings. The messages will be replaced with error codes @@ -4173,23 +4173,12 @@ throw Error( "ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead." ); } } - } // Note: when changing this, also consider https://github.com/facebook/react/issues/11526 - - - var ReactDOMServer = { - renderToString: renderToString, - renderToStaticMarkup: renderToStaticMarkup, - renderToNodeStream: renderToNodeStream, - renderToStaticNodeStream: renderToStaticNodeStream, - version: ReactVersion - }; - - // TODO: decide on the top-level export form. - // This is hacky but makes it work with both Rollup and Jest - - - var server_browser = ReactDOMServer.default || ReactDOMServer; + } - return server_browser; + exports.renderToNodeStream = renderToNodeStream; + exports.renderToStaticMarkup = renderToStaticMarkup; + exports.renderToStaticNodeStream = renderToStaticNodeStream; + exports.renderToString = renderToString; + exports.version = ReactVersion; }))); diff --git a/build/dist/react-dom-server.browser.production.min.js b/build/dist/react-dom-server.browser.production.min.js index 02b91cd..e3a5f3a 100644 --- a/build/dist/react-dom-server.browser.production.min.js +++ b/build/dist/react-dom-server.browser.production.min.js @@ -6,41 +6,41 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -'use strict';(function(l,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react")):"function"===typeof define&&define.amd?define(["react"],p):(l=l||self,l.ReactDOMServer=p(l.React))})(this,function(l){function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function n(a,b,c,d,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=g;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=h}function C(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=za.exec(a);if(b){var c="",d,g=0;for(d=b.index;dJ))throw Error(p(301));if(a===u)if(P=!0,a={action:c,next:null}, -null===t&&(t=new Map),c=t.get(b),void 0===c)t.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Q(){}function oa(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Da(a){if(void 0===a||null===a)return a;var b="";l.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function pa(a,b){if(void 0===a)throw Error(p(152,D(b)||"Component"));}function Ea(a,b,c){function d(d, -h){var f=h.prototype&&h.prototype.isReactComponent,g=va(h,b,c,f),v=[],A=!1,e={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===v)return null},enqueueReplaceState:function(a,c){A=!0;v=[c]},enqueueSetState:function(a,c){if(null===v)return null;v.push(c)}};if(f){if(f=new h(d.props,g,e),"function"===typeof h.getDerivedStateFromProps){var k=h.getDerivedStateFromProps.call(null,d.props,f.state);null!=k&&(f.state=x({},f.state,k))}}else if(u={},f=h(d.props,g,e),f=la(h,d.props,f,g), -null==f||null==f.render){a=f;pa(a,h);return}f.props=d.props;f.context=g;f.updater=e;e=f.state;void 0===e&&(f.state=e=null);if("function"===typeof f.UNSAFE_componentWillMount||"function"===typeof f.componentWillMount)if("function"===typeof f.componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.componentWillMount(),"function"===typeof f.UNSAFE_componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.UNSAFE_componentWillMount(),v.length){e=v;var m=A;v=null;A=!1;if(m&&1=== -e.length)f.state=e[0];else{k=m?e[0]:f.state;var q=!0;for(m=m?1:0;mL;L++)q[L]=L+1;q[15]=0;var wa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, -ha=Object.prototype.hasOwnProperty,ja={},ia={},m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){m[a]=new n(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];m[b]=new n(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){m[a]=new n(a, -2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){m[a]=new n(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){m[a]=new n(a,3,!1,a.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(a){m[a]= -new n(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){m[a]=new n(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){m[a]=new n(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){m[a]=new n(a,5,!1,a.toLowerCase(),null,!1)});var S=/[\-:]([a-z])/g,T=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= -a.replace(S,T);m[b]=new n(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(S,T);m[b]=new n(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(S,T);m[b]=new n(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){m[a]=new n(a,1,!1,a.toLowerCase(),null,!1)});m.xlinkHref=new n("xlinkHref",1,!1,"xlink:href", -"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){m[a]=new n(a,1,!1,a.toLowerCase(),null,!0)});var za=/["'&<>]/,Ia="function"===typeof Object.is?Object.is:Ba,u=null,K=null,k=null,F=!1,P=!1,t=null,J=0,G=0,Ja={readContext:function(a,b){b=G;E(a,b);return a[b]},useContext:function(a,b){B();b=G;E(a,b);return a[b]},useMemo:function(a,b){u=B();k=O();b=void 0===b?null:b;if(null!==k){var c=k.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var g= -0;g=d))throw Error(p(304));var A=new Uint16Array(d);A.set(h);q=A;q[0]=c+1;for(h=c;h=f.children.length){var e=f.footer;""!==e&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===f.type)this.currentSelectValue=null;else if(null!=f.type&&null!=f.type.type&&f.type.type.$$typeof===N)this.popProvider(f.type);else if(f.type===I){this.suspenseDepth--; -var k=h.pop();if(v){v=!1;var m=f.fallbackFrame;if(!m)throw Error(p(303));this.stack.push(m);h[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else h[this.suspenseDepth]+=k}h[this.suspenseDepth]+=e}else{var l=f.children[f.childIndex++],n="";try{n+=this.render(l,f.context,f.domNamespace)}catch(R){if(null!=R&&"function"===typeof R.then){if(!(0=f.length))throw Error(p(93));f=f[0]}e=""+f}null==e&&(e="")}d=x({},d,{value:void 0,children:""+e})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=x({},d,{value:void 0});else if("option"===c){f=this.currentSelectValue;var k=Da(d.children); -if(null!=f){var m=null!=d.value?d.value+"":k;e=!1;if(Array.isArray(f))for(var l=0;l":(w+=">",e="");a:{f=d.dangerouslySetInnerHTML;if(null!=f){if(null!=f.__html){f=f.__html;break a}}else if(f=d.children,"string"===typeof f||"number"===typeof f){f=C(f);break a}f=null}null!=f?(d=[],Oa.hasOwnProperty(c)&&"\n"===f.charAt(0)&&(w+="\n"),w+=f):d=z(d.children);a=a.type;g=null==g||"http://www.w3.org/1999/xhtml"===g?oa(a):"http://www.w3.org/2000/svg"===g&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":g;this.stack.push({domNamespace:g,type:c,children:d,childIndex:0,context:b,footer:e});this.previousWasTextNode= -!1;return w};return a}();e=(e={__proto__:null,"default":{renderToString:function(a){a=new sa(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new sa(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw Error(p(207));},renderToStaticNodeStream:function(){throw Error(p(208));},version:"16.12.0"}},e["default"])||e;return e.default||e}); +'use strict';(function(u,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],n):(u=u||self,n(u.ReactDOMServer={},u.React))})(this,function(u,n){function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function k(a,b,c,d,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=g;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=h}function C(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=Aa.exec(a);if(b){var c="",d,g=0;for(d=b.index;dK))throw Error(p(301));if(a===r)if(Q=!0,a={action:c,next:null}, +null===A&&(A=new Map),c=A.get(b),void 0===c)A.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function R(){}function pa(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ea(a){if(void 0===a||null===a)return a;var b="";n.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function qa(a,b){if(void 0===a)throw Error(p(152,E(b)||"Component"));}function Fa(a,b,c){function d(d, +h){var f=h.prototype&&h.prototype.isReactComponent,g=wa(h,b,c,f),v=[],B=!1,e={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===v)return null},enqueueReplaceState:function(a,c){B=!0;v=[c]},enqueueSetState:function(a,c){if(null===v)return null;v.push(c)}};if(f){if(f=new h(d.props,g,e),"function"===typeof h.getDerivedStateFromProps){var l=h.getDerivedStateFromProps.call(null,d.props,f.state);null!=l&&(f.state=x({},f.state,l))}}else if(r={},f=h(d.props,g,e),f=ma(h,d.props,f,g), +null==f||null==f.render){a=f;qa(a,h);return}f.props=d.props;f.context=g;f.updater=e;e=f.state;void 0===e&&(f.state=e=null);if("function"===typeof f.UNSAFE_componentWillMount||"function"===typeof f.componentWillMount)if("function"===typeof f.componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.componentWillMount(),"function"===typeof f.UNSAFE_componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.UNSAFE_componentWillMount(),v.length){e=v;var m=B;v=null;B=!1;if(m&&1=== +e.length)f.state=e[0];else{l=m?e[0]:f.state;var q=!0;for(m=m?1:0;mM;M++)q[M]=M+1;q[15]=0;var xa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, +ia=Object.prototype.hasOwnProperty,ka={},ja={},m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){m[a]=new k(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];m[b]=new k(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){m[a]=new k(a, +2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){m[a]=new k(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){m[a]=new k(a,3,!1,a.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(a){m[a]= +new k(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){m[a]=new k(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){m[a]=new k(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){m[a]=new k(a,5,!1,a.toLowerCase(),null,!1)});var T=/[\-:]([a-z])/g,U=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= +a.replace(T,U);m[b]=new k(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(T,U);m[b]=new k(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(T,U);m[b]=new k(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){m[a]=new k(a,1,!1,a.toLowerCase(),null,!1)});m.xlinkHref=new k("xlinkHref",1,!1,"xlink:href", +"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){m[a]=new k(a,1,!1,a.toLowerCase(),null,!0)});var Aa=/["'&<>]/,Ja="function"===typeof Object.is?Object.is:Ca,r=null,L=null,e=null,G=!1,Q=!1,A=null,K=0,H=0,Ka={readContext:function(a,b){b=H;F(a,b);return a[b]},useContext:function(a,b){D();b=H;F(a,b);return a[b]},useMemo:function(a,b){r=D();e=P();b=void 0===b?null:b;if(null!==e){var c=e.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var g= +0;g=d))throw Error(p(304));var B=new Uint16Array(d);B.set(h);q=B;q[0]=c+1;for(h=c;h=f.children.length){var e=f.footer;""!==e&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===f.type)this.currentSelectValue=null;else if(null!=f.type&&null!=f.type.type&&f.type.type.$$typeof===O)this.popProvider(f.type);else if(f.type===J){this.suspenseDepth--; +var l=h.pop();if(v){v=!1;var m=f.fallbackFrame;if(!m)throw Error(p(303));this.stack.push(m);h[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else h[this.suspenseDepth]+=l}h[this.suspenseDepth]+=e}else{var k=f.children[f.childIndex++],n="";try{n+=this.render(k,f.context,f.domNamespace)}catch(S){if(null!=S&&"function"===typeof S.then){if(!(0=f.length))throw Error(p(93));f=f[0]}e=""+f}null==e&&(e="")}d=x({},d,{value:void 0,children:""+e})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=x({},d,{value:void 0});else if("option"===c){f=this.currentSelectValue;var l=Ea(d.children); +if(null!=f){var m=null!=d.value?d.value+"":l;e=!1;if(Array.isArray(f))for(var k=0;k":(w+=">",e="");a:{f=d.dangerouslySetInnerHTML;if(null!=f){if(null!=f.__html){f=f.__html;break a}}else if(f=d.children,"string"===typeof f||"number"===typeof f){f=C(f);break a}f=null}null!=f?(d=[],Pa.hasOwnProperty(c)&&"\n"===f.charAt(0)&&(w+="\n"),w+=f):d=z(d.children);a=a.type;g=null==g||"http://www.w3.org/1999/xhtml"===g?pa(a):"http://www.w3.org/2000/svg"===g&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":g;this.stack.push({domNamespace:g,type:c,children:d,childIndex:0,context:b,footer:e});this.previousWasTextNode= +!1;return w};return a}();u.renderToNodeStream=function(){throw Error(p(207));};u.renderToStaticMarkup=function(a){a=new ta(a,!0);try{return a.read(Infinity)}finally{a.destroy()}};u.renderToStaticNodeStream=function(){throw Error(p(208));};u.renderToString=function(a){a=new ta(a,!1);try{return a.read(Infinity)}finally{a.destroy()}};u.version="16.12.0"}); diff --git a/build/dist/react-dom-test-utils.development.js b/build/dist/react-dom-test-utils.development.js index 0944727..ae43fd8 100644 --- a/build/dist/react-dom-test-utils.development.js +++ b/build/dist/react-dom-test-utils.development.js @@ -10,10 +10,10 @@ 'use strict'; (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('react-dom')) : - typeof define === 'function' && define.amd ? define(['react', 'react-dom'], factory) : - (global = global || self, global.ReactTestUtils = factory(global.React, global.ReactDOM)); -}(this, (function (React, ReactDOM) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) : + typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) : + (global = global || self, factory(global.ReactTestUtils = {}, global.React, global.ReactDOM)); +}(this, (function (exports, React, ReactDOM) { 'use strict'; var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var _assign = ReactInternals.assign; @@ -1177,214 +1177,227 @@ */ - var ReactTestUtils = { - renderIntoDocument: function (element) { - var div = document.createElement('div'); // None of our tests actually require attaching the container to the - // DOM, and doing so creates a mess that we rely on test isolation to - // clean up, so we're going to stop honoring the name of this method - // (and probably rename it eventually) if no problems arise. - // document.documentElement.appendChild(div); + function renderIntoDocument(element) { + var div = document.createElement('div'); // None of our tests actually require attaching the container to the + // DOM, and doing so creates a mess that we rely on test isolation to + // clean up, so we're going to stop honoring the name of this method + // (and probably rename it eventually) if no problems arise. + // document.documentElement.appendChild(div); - return ReactDOM.render(element, div); - }, - isElement: function (element) { - return React.isValidElement(element); - }, - isElementOfType: function (inst, convenienceConstructor) { - return React.isValidElement(inst) && inst.type === convenienceConstructor; - }, - isDOMComponent: function (inst) { - return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); - }, - isDOMComponentElement: function (inst) { - return !!(inst && React.isValidElement(inst) && !!inst.tagName); - }, - isCompositeComponent: function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - // Accessing inst.setState warns; just return false as that'll be what - // this returns when we have DOM nodes as refs directly - return false; - } + return ReactDOM.render(element, div); + } - return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; - }, - isCompositeComponentWithType: function (inst, type) { - if (!ReactTestUtils.isCompositeComponent(inst)) { - return false; - } + function isElement(element) { + return React.isValidElement(element); + } - var internalInstance = get(inst); - var constructor = internalInstance.type; - return constructor === type; - }, - findAllInRenderedTree: function (inst, test) { - validateClassInstance(inst, 'findAllInRenderedTree'); + function isElementOfType(inst, convenienceConstructor) { + return React.isValidElement(inst) && inst.type === convenienceConstructor; + } - if (!inst) { - return []; - } + function isDOMComponent(inst) { + return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); + } - var internalInstance = get(inst); - return findAllInRenderedFiberTreeInternal(internalInstance, test); - }, + function isDOMComponentElement(inst) { + return !!(inst && React.isValidElement(inst) && !!inst.tagName); + } - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the class name matching `className`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithClass: function (root, classNames) { - validateClassInstance(root, 'scryRenderedDOMComponentsWithClass'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - var className = inst.className; - - if (typeof className !== 'string') { - // SVG, probably. - className = inst.getAttribute('class') || ''; - } + function isCompositeComponent(inst) { + if (isDOMComponent(inst)) { + // Accessing inst.setState warns; just return false as that'll be what + // this returns when we have DOM nodes as refs directly + return false; + } - var classList = className.split(/\s+/); + return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; + } - if (!Array.isArray(classNames)) { - if (!(classNames !== undefined)) { - { - throw Error( "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." ); - } - } + function isCompositeComponentWithType(inst, type) { + if (!isCompositeComponent(inst)) { + return false; + } - classNames = classNames.split(/\s+/); - } + var internalInstance = get(inst); + var constructor = internalInstance.type; + return constructor === type; + } - return classNames.every(function (name) { - return classList.indexOf(name) !== -1; - }); + function findAllInRenderedTree(inst, test) { + validateClassInstance(inst, 'findAllInRenderedTree'); + + if (!inst) { + return []; + } + + var internalInstance = get(inst); + return findAllInRenderedFiberTreeInternal(internalInstance, test); + } + /** + * Finds all instance of components in the rendered tree that are DOM + * components with the class name matching `className`. + * @return {array} an array of all the matches. + */ + + + function scryRenderedDOMComponentsWithClass(root, classNames) { + validateClassInstance(root, 'scryRenderedDOMComponentsWithClass'); + return findAllInRenderedTree(root, function (inst) { + if (isDOMComponent(inst)) { + var className = inst.className; + + if (typeof className !== 'string') { + // SVG, probably. + className = inst.getAttribute('class') || ''; } - return false; - }); - }, + var classList = className.split(/\s+/); - /** - * Like scryRenderedDOMComponentsWithClass but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithClass: function (root, className) { - validateClassInstance(root, 'findRenderedDOMComponentWithClass'); - var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className); + if (!Array.isArray(classNames)) { + if (!(classNames !== undefined)) { + { + throw Error( "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." ); + } + } - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); + classNames = classNames.split(/\s+/); + } + + return classNames.every(function (name) { + return classList.indexOf(name) !== -1; + }); } - return all[0]; - }, + return false; + }); + } + /** + * Like scryRenderedDOMComponentsWithClass but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the tag name matching `tagName`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithTag: function (root, tagName) { - validateClassInstance(root, 'scryRenderedDOMComponentsWithTag'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); - }); - }, - /** - * Like scryRenderedDOMComponentsWithTag but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithTag: function (root, tagName) { - validateClassInstance(root, 'findRenderedDOMComponentWithTag'); - var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); + function findRenderedDOMComponentWithClass(root, className) { + validateClassInstance(root, 'findRenderedDOMComponentWithClass'); + var all = scryRenderedDOMComponentsWithClass(root, className); - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); - } + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); + } - return all[0]; - }, + return all[0]; + } + /** + * Finds all instance of components in the rendered tree that are DOM + * components with the tag name matching `tagName`. + * @return {array} an array of all the matches. + */ - /** - * Finds all instances of components with type equal to `componentType`. - * @return {array} an array of all the matches. - */ - scryRenderedComponentsWithType: function (root, componentType) { - validateClassInstance(root, 'scryRenderedComponentsWithType'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isCompositeComponentWithType(inst, componentType); - }); - }, - /** - * Same as `scryRenderedComponentsWithType` but expects there to be one result - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactComponent} The one match. - */ - findRenderedComponentWithType: function (root, componentType) { - validateClassInstance(root, 'findRenderedComponentWithType'); - var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType); + function scryRenderedDOMComponentsWithTag(root, tagName) { + validateClassInstance(root, 'scryRenderedDOMComponentsWithTag'); + return findAllInRenderedTree(root, function (inst) { + return isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); + }); + } + /** + * Like scryRenderedDOMComponentsWithTag but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); - } - return all[0]; - }, + function findRenderedDOMComponentWithTag(root, tagName) { + validateClassInstance(root, 'findRenderedDOMComponentWithTag'); + var all = scryRenderedDOMComponentsWithTag(root, tagName); - /** - * Pass a mocked component module to this method to augment it with - * useful methods that allow it to be used as a dummy React component. - * Instead of rendering as usual, the component will become a simple - *
containing any provided children. - * - * @param {object} module the mock function object exported from a - * module that defines the component to be mocked - * @param {?string} mockTagName optional dummy root tag name to return - * from render method (overrides - * module.mockTagName if provided) - * @return {object} the ReactTestUtils object (for chaining) - */ - mockComponent: function (module, mockTagName) { - { - if (!hasWarnedAboutDeprecatedMockComponent) { - hasWarnedAboutDeprecatedMockComponent = true; + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); + } - warn('ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); - } + return all[0]; + } + /** + * Finds all instances of components with type equal to `componentType`. + * @return {array} an array of all the matches. + */ + + + function scryRenderedComponentsWithType(root, componentType) { + validateClassInstance(root, 'scryRenderedComponentsWithType'); + return findAllInRenderedTree(root, function (inst) { + return isCompositeComponentWithType(inst, componentType); + }); + } + /** + * Same as `scryRenderedComponentsWithType` but expects there to be one result + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactComponent} The one match. + */ + + + function findRenderedComponentWithType(root, componentType) { + validateClassInstance(root, 'findRenderedComponentWithType'); + var all = scryRenderedComponentsWithType(root, componentType); + + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); + } + + return all[0]; + } + /** + * Pass a mocked component module to this method to augment it with + * useful methods that allow it to be used as a dummy React component. + * Instead of rendering as usual, the component will become a simple + *
containing any provided children. + * + * @param {object} module the mock function object exported from a + * module that defines the component to be mocked + * @param {?string} mockTagName optional dummy root tag name to return + * from render method (overrides + * module.mockTagName if provided) + * @return {object} the ReactTestUtils object (for chaining) + */ + + + function mockComponent(module, mockTagName) { + { + if (!hasWarnedAboutDeprecatedMockComponent) { + hasWarnedAboutDeprecatedMockComponent = true; + + warn('ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); } + } - mockTagName = mockTagName || module.mockTagName || 'div'; - module.prototype.render.mockImplementation(function () { - return React.createElement(mockTagName, null, this.props.children); - }); - return this; - }, - nativeTouchData: function (x, y) { - return { - touches: [{ - pageX: x, - pageY: y - }] - }; - }, - Simulate: null, - SimulateNative: {}, - act: act - }; + mockTagName = mockTagName || module.mockTagName || 'div'; + module.prototype.render.mockImplementation(function () { + return React.createElement(mockTagName, null, this.props.children); + }); + return this; + } + + function nativeTouchData(x, y) { + return { + touches: [{ + pageX: x, + pageY: y + }] + }; + } + + var Simulate = {}; + var SimulateNative = {}; /** * Exports: * - * - `ReactTestUtils.Simulate.click(Element)` - * - `ReactTestUtils.Simulate.mouseMove(Element)` - * - `ReactTestUtils.Simulate.change(Element)` + * - `Simulate.click(Element)` + * - `Simulate.mouseMove(Element)` + * - `Simulate.change(Element)` * - ... (All keys from event plugin `eventTypes` objects) */ @@ -1396,7 +1409,7 @@ } } - if (!!ReactTestUtils.isCompositeComponent(domNode)) { + if (!!isCompositeComponent(domNode)) { { throw Error( "TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead." ); } @@ -1433,7 +1446,6 @@ } function buildSimulators() { - ReactTestUtils.Simulate = {}; var eventType; for (eventType in eventNameDispatchConfigs$1) { @@ -1441,7 +1453,7 @@ * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?object} eventData Fake event data to use in SyntheticEvent. */ - ReactTestUtils.Simulate[eventType] = makeSimulator(eventType); + Simulate[eventType] = makeSimulator(eventType); } } @@ -1449,16 +1461,16 @@ /** * Exports: * - * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)` + * - `SimulateNative.click(Element/ReactDOMComponent)` + * - `SimulateNative.mouseMove(Element/ReactDOMComponent)` + * - `SimulateNative.mouseIn/ReactDOMComponent)` + * - `SimulateNative.mouseOut(Element/ReactDOMComponent)` * - ... (All keys from `BrowserEventConstants.topLevelTypes`) * * Note: Top level event types are a subset of the entire set of handler types * (which include a broader set of "synthetic" events). For example, onDragDone * is a synthetic event. Except when testing an event plugin or React's event - * handling code specifically, you probably want to use ReactTestUtils.Simulate + * handling code specifically, you probably want to use Simulate * to dispatch synthetic events. */ @@ -1468,7 +1480,7 @@ _assign(fakeNativeEvent, nativeEventData); - if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { + if (isDOMComponent(domComponentOrNode)) { simulateNativeEventOnDOMComponent(topLevelType, domComponentOrNode, fakeNativeEvent); } else if (domComponentOrNode.tagName) { // Will allow on actual dom nodes. @@ -1485,15 +1497,27 @@ * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent. */ - ReactTestUtils.SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); + SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); }); - // TODO: decide on the top-level export form. - // This is hacky but makes it work with both Rollup and Jest. - - - var testUtils = ReactTestUtils.default || ReactTestUtils; - - return testUtils; + exports.Simulate = Simulate; + exports.SimulateNative = SimulateNative; + exports.act = act; + exports.findAllInRenderedTree = findAllInRenderedTree; + exports.findRenderedComponentWithType = findRenderedComponentWithType; + exports.findRenderedDOMComponentWithClass = findRenderedDOMComponentWithClass; + exports.findRenderedDOMComponentWithTag = findRenderedDOMComponentWithTag; + exports.isCompositeComponent = isCompositeComponent; + exports.isCompositeComponentWithType = isCompositeComponentWithType; + exports.isDOMComponent = isDOMComponent; + exports.isDOMComponentElement = isDOMComponentElement; + exports.isElement = isElement; + exports.isElementOfType = isElementOfType; + exports.mockComponent = mockComponent; + exports.nativeTouchData = nativeTouchData; + exports.renderIntoDocument = renderIntoDocument; + exports.scryRenderedComponentsWithType = scryRenderedComponentsWithType; + exports.scryRenderedDOMComponentsWithClass = scryRenderedDOMComponentsWithClass; + exports.scryRenderedDOMComponentsWithTag = scryRenderedDOMComponentsWithTag; }))); diff --git a/build/dist/react-dom-test-utils.production.min.js b/build/dist/react-dom-test-utils.production.min.js index 330dc67..7616c15 100644 --- a/build/dist/react-dom-test-utils.production.min.js +++ b/build/dist/react-dom-test-utils.production.min.js @@ -6,25 +6,25 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -'use strict';(function(k,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],m):(k=k||self,k.ReactTestUtils=m(k.React,k.ReactDOM))})(this,function(k,m){function l(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cthis.eventPool.length&& -this.eventPool.push(a)}function H(a){a.eventPool=[];a.getPooled=S;a.release=T}function w(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function x(a){if(A[a])return A[a];if(!p[a])return a;var b=p[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in I)return A[a]=b[c];return a}function U(a){if(null===y)try{var b=("require"+Math.random()).slice(0,7);y=(module&&module[b])("timers").setImmediate}catch(c){y=function(a){var b=new MessageChannel;b.port1.onmessage= -a;b.port2.postMessage(void 0)}}return y(a)}function J(a){try{B(),U(function(){B()?J(a):a()})}catch(b){a(b)}}function K(a){}function V(a,b){if(!a)return[];a=R(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}function n(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a= -Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(l(286,b,a));}}function W(a){return function(b,c){if(k.isValidElement(b))throw Error(l(228));if(f.isCompositeComponent(b))throw Error(l(229));var e=L[a],d=new K;d.target=b;d.type=a.toLowerCase();var g=X(b),q=new r(e,g,d,b);q.persist();t(q,c);e.phasedRegistrationNames?Y(q):Z(q);m.unstable_batchedUpdates(function(){aa(b);ba(q)});ca()}}function da(a, -b){return function(c,e){var d=new K(a);t(d,e);f.isDOMComponent(c)?(c=ea(c),d.target=c,M(b,1,document,d)):c.tagName&&(d.target=c,M(b,1,document,d))}}var t=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,g=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;g.hasOwnProperty("ReactCurrentDispatcher")||(g.ReactCurrentDispatcher={current:null});g.hasOwnProperty("ReactCurrentBatchConfig")||(g.ReactCurrentBatchConfig={suspense:null});t(r.prototype,{preventDefault:function(){this.defaultPrevented= -!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=u)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=u)},persist:function(){this.isPersistent=u},isPersistent:v,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig= -null;this.isPropagationStopped=this.isDefaultPrevented=v;this._dispatchInstances=this._dispatchListeners=null}});r.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;t(e,b.prototype);b.prototype=e;b.prototype.constructor= -b;b.Interface=t({},c.Interface,a);b.extend=c.extend;H(b);return b};H(r);var C=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p={animationend:w("Animation","AnimationEnd"),animationiteration:w("Animation","AnimationIteration"),animationstart:w("Animation","AnimationStart"),transitionend:w("Transition","TransitionEnd")},A={},I={};C&&(I=document.createElement("div").style,"AnimationEvent"in window||(delete p.animationend.animation, -delete p.animationiteration.animation,delete p.animationstart.animation),"TransitionEvent"in window||delete p.transitionend.transition);C=x("animationend");var fa=x("animationiteration"),ha=x("animationstart"),ia=x("transitionend"),y=null,N=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_flushAllWithoutAsserting,O=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ja=O[11],D=O[12],ka=m.unstable_batchedUpdates,E=g.IsSomeRendererActing,P="function"===typeof N,B=N||function(){for(var a= -!1;ja();)a=!0;return a},z=0,Q=!1,ea=m.findDOMNode;g=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var X=g[0],L=g[4],Y=g[5],Z=g[6],aa=g[7],ca=g[8],M=g[9],ba=g[10],f={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&& -k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return f.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){n(a,"findAllInRenderedTree");return a?V(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){n(a,"scryRenderedDOMComponentsWithClass");return f.findAllInRenderedTree(a, -function(a){if(f.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(l(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){n(a,"findRenderedDOMComponentWithClass");a=f.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]}, -scryRenderedDOMComponentsWithTag:function(a,b){n(a,"scryRenderedDOMComponentsWithTag");return f.findAllInRenderedTree(a,function(a){return f.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){n(a,"findRenderedDOMComponentWithTag");a=f.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){n(a,"scryRenderedComponentsWithType"); -return f.findAllInRenderedTree(a,function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){n(a,"findRenderedComponentWithType");a=f.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a, -b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){z--;E.current=c;D.current=e}!1===Q&&(Q=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));z++;var c=E.current;var e=D.current;E.current=!0;D.current=!0;try{var d=ka(a)}catch(h){throw b(),h;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1this.eventPool.length&& +this.eventPool.push(a)}function K(a){a.eventPool=[];a.getPooled=ba;a.release=ca}function x(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function y(a){if(C[a])return C[a];if(!q[a])return a;var b=q[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in L)return C[a]=b[c];return a}function da(a){if(null===z)try{var b=("require"+Math.random()).slice(0,7);z=(module&&module[b])("timers").setImmediate}catch(c){z=function(a){var b=new MessageChannel;b.port1.onmessage= +a;b.port2.postMessage(void 0)}}return z(a)}function M(a){try{D(),da(function(){D()?M(a):a()})}catch(b){a(b)}}function N(a){}function ea(a,b){if(!a)return[];a=aa(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}function n(a,b){if(a&&!a._reactInternalFiber){var c=""+ +a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(l(286,b,a));}}function t(a){return!(!a||1!==a.nodeType||!a.tagName)}function E(a){return t(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}function O(a,b){return E(a)?a._reactInternalFiber.type===b:!1}function A(a,b){n(a,"findAllInRenderedTree");return a?ea(a._reactInternalFiber,b):[]}function P(a,b){n(a,"scryRenderedDOMComponentsWithClass"); +return A(a,function(a){if(t(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(l(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})}function Q(a,b){n(a,"scryRenderedDOMComponentsWithTag");return A(a,function(a){return t(a)&&a.tagName.toUpperCase()===b.toUpperCase()})}function R(a,b){n(a,"scryRenderedComponentsWithType");return A(a,function(a){return O(a,b)})}function fa(a){return function(b, +c){if(k.isValidElement(b))throw Error(l(228));if(E(b))throw Error(l(229));var e=S[a],d=new N;d.target=b;d.type=a.toLowerCase();var f=ha(b),g=new r(e,f,d,b);g.persist();u(g,c);e.phasedRegistrationNames?ia(g):ja(g);p.unstable_batchedUpdates(function(){ka(b);la(g)});ma()}}function na(a,b){return function(c,e){var d=new N(a);u(d,e);t(c)?(c=oa(c),d.target=c,T(b,1,document,d)):c.tagName&&(d.target=c,T(b,1,document,d))}}var u=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,g=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; +g.hasOwnProperty("ReactCurrentDispatcher")||(g.ReactCurrentDispatcher={current:null});g.hasOwnProperty("ReactCurrentBatchConfig")||(g.ReactCurrentBatchConfig={suspense:null});u(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&& +(a.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:w,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=w;this._dispatchInstances=this._dispatchListeners=null}});r.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp|| +Date.now()},defaultPrevented:null,isTrusted:null};r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;u(e,b.prototype);b.prototype=e;b.prototype.constructor=b;b.Interface=u({},c.Interface,a);b.extend=c.extend;K(b);return b};K(r);var F=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),q={animationend:x("Animation","AnimationEnd"),animationiteration:x("Animation", +"AnimationIteration"),animationstart:x("Animation","AnimationStart"),transitionend:x("Transition","TransitionEnd")},C={},L={};F&&(L=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);F=y("animationend");var pa=y("animationiteration"),qa=y("animationstart"),ra=y("transitionend"),z=null,U=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_flushAllWithoutAsserting, +V=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,sa=V[11],G=V[12],ta=p.unstable_batchedUpdates,H=g.IsSomeRendererActing,W="function"===typeof U,D=U||function(){for(var a=!1;sa();)a=!0;return a},B=0,X=!1,oa=p.findDOMNode;g=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var ha=g[0],S=g[4],ia=g[5],ja=g[6],ka=g[7],ma=g[8],T=g[9],la=g[10],Y={},Z={};(function(){for(var a in S)Y[a]=fa(a)})();[["abort","abort"],[F,"animationEnd"],[pa,"animationIteration"],[qa,"animationStart"],["blur", +"blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag", +"drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste", +"paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart","touchStart"],[ra,"transitionEnd"],["volumechange","volumeChange"],["waiting", +"waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];Z[b]=na(b,a[0])});f.Simulate=Y;f.SimulateNative=Z;f.act=function(a){function b(){B--;H.current=c;G.current=e}!1===X&&(X=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));B++;var c=H.current;var e=G.current;H.current=!0;G.current=!0;try{var d=ta(a)}catch(h){throw b(),h;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1";"string"===typeof d.children&&(a+=d.children);return a+("")}function e(c){var d=c.destination,a=c.completedChunks;c.completedChunks=[];for(c=0;c";"string"===typeof d.children&&(a+=d.children);return a+("")}function g(b){var d=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;bthis.eventPool.length&&this.eventPool.push(a)}function S(a){a.eventPool=[];a.getPooled=Y;a.release=Z}function A(a){return"touchstart"===a||"mousedown"===a}function F(a){return"touchmove"===a||"mousemove"===a}function G(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function l(a){return a.timeStamp||a.timestamp}function J(a){a=a.identifier;if(null==a)throw Error(x(138));return a}function aa(a){var b=J(a),c=v[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp= -l(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=l(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=l(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:l(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:l(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:l(a)},v[b]=c);q.mostRecentTimeStamp=l(a)}function ba(a){var b=v[J(a)];b&&(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY, -b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),q.mostRecentTimeStamp=l(a))}function ca(a){var b=v[J(a)];b&&(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),q.mostRecentTimeStamp=l(a))}function B(a,b){if(null==b)throw Error(x(334));return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b): -[a,b]}var Q=null,T=null,N=null,K=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;K(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=D)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=D)},persist:function(){this.isPersistent= -D},isPersistent:E,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=E;this._dispatchInstances=this._dispatchListeners=null}});z.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};z.extend=function(a){function b(){return c.apply(this, -arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;K(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=K({},c.Interface,a);b.extend=c.extend;S(b);return b};S(z);var w=z.extend({touchHistory:function(a){return null}});p=["touchstart","mousedown"];var U=["touchmove","mousemove"],V=["touchcancel","touchend","mouseup"],v=[],q={touchBank:v,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(F(a))b.changedTouches.forEach(ba); -else if(A(a))b.changedTouches.forEach(aa),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches&&(q.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(ca),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches))for(a=0;athis.eventPool.length&&this.eventPool.push(a)}function T(a){a.eventPool=[];a.getPooled=Z;a.release=aa}function B(a){return"touchstart"===a||"mousedown"===a}function G(a){return"touchmove"===a||"mousemove"===a}function H(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function h(a){return a.timeStamp||a.timestamp}function K(a){a=a.identifier;if(null==a)throw Error(y(138));return a}function ba(a){var b=K(a),c=v[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp= +h(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=h(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=h(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:h(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:h(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:h(a)},v[b]=c);p.mostRecentTimeStamp=h(a)}function ca(a){var b=v[K(a)];b&&(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY, +b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=h(a),p.mostRecentTimeStamp=h(a))}function da(a){var b=v[K(a)];b&&(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=h(a),p.mostRecentTimeStamp=h(a))}function C(a,b){if(null==b)throw Error(y(334));return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b): +[a,b]}var R=null,U=null,O=null,L=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;L(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent= +E},isPersistent:F,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=F;this._dispatchInstances=this._dispatchListeners=null}});A.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};A.extend=function(a){function b(){return c.apply(this, +arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;L(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=L({},c.Interface,a);b.extend=c.extend;T(b);return b};T(A);var w=A.extend({touchHistory:function(a){return null}});x=["touchstart","mousedown"];var V=["touchmove","mousemove"],W=["touchcancel","touchend","mouseup"],v=[],p={touchBank:v,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(G(a))b.changedTouches.forEach(ca); +else if(B(a))b.changedTouches.forEach(ba),p.numberActiveTouches=b.touches.length,1===p.numberActiveTouches&&(p.indexOfSingleActiveTouch=b.touches[0].identifier);else if(H(a)&&(b.changedTouches.forEach(da),p.numberActiveTouches=b.touches.length,1===p.numberActiveTouches))for(a=0;athis._numberOfReRenders))throw Error(l(301));if(this._rendering){this._didScheduleRenderPhaseUpdate=!0;a={action:a,next:null};var d=this._renderPhaseUpdates; +b._workInProgressHook.memoizedState=a):d},useState:function(b){return a(I,b)},useResponder:function(b,a){return{props:a,responder:b}},useTransition:function(a){b._validateCurrentlyRenderingComponent();return[function(b){b()},!1]},useDeferredValue:function(a,d){b._validateCurrentlyRenderingComponent();return a}}};c._dispatchAction=function(b,a){if(!(25>this._numberOfReRenders))throw Error(k(301));if(this._rendering){this._didScheduleRenderPhaseUpdate=!0;a={action:a,next:null};var d=this._renderPhaseUpdates; null===d&&(this._renderPhaseUpdates=d=new Map);var c=d.get(b);if(void 0===c)d.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}else{a={action:a,next:null};d=b.first;if(null===d)b.first=a;else{for(;null!==d.next;)d=d.next;d.next=a}this.render(this._element,this._context)}};c._createWorkInProgressHook=function(){null===this._workInProgressHook?null===this._firstWorkInProgressHook?(this._isReRender=!1,this._firstWorkInProgressHook=this._workInProgressHook=H()):(this._isReRender=!0,this._workInProgressHook= this._firstWorkInProgressHook):null===this._workInProgressHook.next?(this._isReRender=!1,this._workInProgressHook=this._workInProgressHook.next=H()):(this._isReRender=!0,this._workInProgressHook=this._workInProgressHook.next);return this._workInProgressHook};c._finishHooks=function(b,a){this._didScheduleRenderPhaseUpdate?(this._didScheduleRenderPhaseUpdate=!1,this._numberOfReRenders+=1,this._workInProgressHook=null,this._rendering=!1,this.render(b,a)):(this._renderPhaseUpdates=this._workInProgressHook= -null,this._numberOfReRenders=0)};c.getMountedInstance=function(){return this._instance};c.getRenderOutput=function(){return this._rendered};c.render=function(b){var a=1Aa||(a.current=Zb[Aa],Zb[Aa]=null,Aa--)}function w(a,b,c){Aa++;Zb[Aa]=a.current;a.current=b}function Ba(a,b){var c=a.type.contextTypes;if(!c)return ea;var d=a.stateNode; -if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function C(a){a=a.childContextTypes;return null!==a&&void 0!==a}function id(a,b,c){if(y.current!==ea)throw Error(k(168));w(y,b);w(z,c)}function jd(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c; -d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(k(108,W(b)||"Unknown",e));return X({},c,{},d)}function eb(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ea;oa=y.current;w(y,a);w(z,z.current);return!0}function kd(a,b,c){var d=a.stateNode;if(!d)throw Error(k(169));c?(a=jd(a,b,oa),d.__reactInternalMemoizedMergedChildContext=a,r(z),r(y),w(y,a)):r(z);w(z,c)}function fb(){switch(Ke()){case gb:return 99;case ld:return 98;case md:return 97;case nd:return 96;case od:return 95; -default:throw Error(k(332));}}function pd(a){switch(a){case 99:return gb;case 98:return ld;case 97:return md;case 96:return nd;case 95:return od;default:throw Error(k(332));}}function pa(a,b){a=pd(a);return Le(a,b)}function qd(a,b,c){a=pd(a);return $b(a,b,c)}function rd(a){null===Y?(Y=[a],hb=$b(gb,sd)):Y.push(a);return td}function Ca(){if(null!==hb){var a=hb;hb=null;ud(a)}sd()}function sd(){if(!ac&&null!==Y){ac=!0;var a=0;try{var b=Y;pa(99,function(){for(;a=b&&(T=!0),a.firstContext=null)} -function L(a,b){if(jb!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)jb=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===Da){if(null===kb)throw Error(k(308));Da=b;kb.dependencies={expirationTime:0,firstContext:b,responders:null}}else Da=Da.next=b}return a._currentValue2}function dc(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ec(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue, -shared:a.shared,effects:a.effects})}function fa(a,b){a={expirationTime:a,suspenseConfig:b,tag:wd,payload:null,callback:null,next:null};return a.next=a}function ha(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}function xd(a,b){var c=a.alternate;null!==c&&ec(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}function Na(a,b,c,d){var e=a.updateQueue;ia=!1;var f=e.baseQueue,g=e.shared.pending; -if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var n=e.baseState,k=0,l=null,Z=null,q=null;if(null!==h){var m=h;do{g=m.expirationTime;if(gk&&(k=g)}else{null!==q&&(q=q.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig, -tag:m.tag,payload:m.payload,callback:m.callback,next:null});yd(g,m.suspenseConfig);a:{var t=a,u=m;g=b;r=c;switch(u.tag){case 1:t=u.payload;if("function"===typeof t){n=t.call(r,n,g);break a}n=t;break a;case 3:t.effectTag=t.effectTag&-4097|64;case wd:t=u.payload;g="function"===typeof t?t.call(r,n,g):t;if(null===g||void 0===g)break a;n=X({},n,g);break a;case mb:ia=!0}}null!==m.callback&&(a.effectTag|=32,g=e.effects,null===g?e.effects=[m]:g.push(m))}m=m.next;if(null===m||m===h)if(g=e.shared.pending,null=== -g)break;else m=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===q?l=n:q.next=Z;e.baseState=l;e.baseQueue=q;nb(k);a.expirationTime=k;a.memoizedState=n}}function zd(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;bu?(m=p,p=null):m=p.sibling;var R=r(e,p,h[u],n);if(null===R){null===p&&(p=m);break}a&&p&&null===R.alternate&&b(e,p);g=f(R,g,u);null===l?k=R:l.sibling=R;l=R;p=m}if(u===h.length)return c(e,p),k;if(null===p){for(;uu?(R=m,m=null):R=m.sibling;var Z=r(e,m,v.value, -n);if(null===Z){null===m&&(m=R);break}a&&m&&null===Z.alternate&&b(e,m);g=f(Z,g,u);null===l?p=Z:l.sibling=Z;l=Z;m=R}if(v.done)return c(e,m),p;if(null===m){for(;!v.done;u++,v=h.next())v=q(e,v.value,n),null!==v&&(g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);return p}for(m=d(e,m);!v.done;u++,v=h.next())v=t(m,e,u,v.value,n),null!==v&&(a&&null!==v.alternate&&m.delete(null===v.key?u:v.key),g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);a&&m.forEach(function(a){return b(e,a)});return p}return function(a,d,f,h){var n= -"object"===typeof f&&null!==f&&f.type===na&&null===f.key;n&&(f=f.props.children);var p="object"===typeof f&&null!==f;if(p)switch(f.$$typeof){case sb:a:{p=f.key;for(n=d;null!==n;){if(n.key===p){switch(n.tag){case 7:if(f.type===na){c(a,n.sibling);d=e(n,f.props.children);d.return=a;a=d;break a}break;default:if(n.elementType===f.type){c(a,n.sibling);d=e(n,f.props);d.ref=Pa(a,n,f);d.return=a;a=d;break a}}c(a,n);break}else b(a,n);n=n.sibling}f.type===na?(d=ja(f.props.children,a.mode,h,f.key),d.return=a, -a=d):(h=rb(f.type,f.key,f.props,null,a.mode,h),h.ref=Pa(a,d,f),h.return=a,a=h)}return g(a);case Ma:a:{for(n=f.key;null!==d;){if(d.key===n)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=hc(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return= -a,a=d):(c(a,d),d=gc(f,a.mode,h),d.return=a,a=d),g(a);if(tb(f))return w(a,d,f,h);if(La(f))return x(a,d,f,h);p&&qb(a,f);if("undefined"===typeof f&&!n)switch(a.tag){case 1:case 0:throw a=a.type,Error(k(152,a.displayName||a.name||"Component"));}return c(a,d)}}function sa(a){if(a===Qa)throw Error(k(174));return a}function ic(a,b){w(Ra,b);w(Sa,a);w(U,Qa);a=Fd;r(U);w(U,a)}function Fa(a){r(U);r(Sa);r(Ra)}function Gd(a){sa(Ra.current);var b=sa(U.current),c=Fd;b!==c&&(w(Sa,a),w(U,c))}function jc(a){Sa.current=== -a&&(r(U),r(Sa))}function ub(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(null===c.dehydrated||Pe()||Qe()))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function kc(a,b){return{responder:a,props:b}}function D(){throw Error(k(321)); -}function lc(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(k(301));f+=1;E=F=null;b.updateQueue=null;vb.current=Te;a=c(d,e)}while(b.expirationTime===ka)}vb.current=wb;b=null!==F&&null!==F.next;ka=0;E=F=x=null;xb=!1;if(b)throw Error(k(300)); -return a}function Ga(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===E?x.memoizedState=E=a:E=E.next=a;return E}function Ha(){if(null===F){var a=x.alternate;a=null!==a?a.memoizedState:null}else a=F.next;var b=null===E?x.memoizedState:E.next;if(null!==b)E=b,F=a;else{if(null===a)throw Error(k(310));F=a;a={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue,queue:F.queue,next:null};null===E?x.memoizedState=E=a:E=E.next=a}return E}function ta(a, -b){return"function"===typeof b?b(a):b}function yb(a,b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=F,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,n=e;do{var p=n.expirationTime;if(px.expirationTime&&(x.expirationTime=p,nb(p))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:n.suspenseConfig,action:n.action,eagerReducer:n.eagerReducer,eagerState:n.eagerState,next:null}),yd(p,n.suspenseConfig),d=n.eagerReducer===a?n.eagerState:a(d,n.action);n=n.next}while(null!==n&&n!==e);null===h?f=d:h.next=g;qa(d,b.memoizedState)||(T=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}function zb(a, -b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);qa(f,b.memoizedState)||(T=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function nc(a){var b=Ga();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a};a=a.dispatch= -Hd.bind(null,x,a);return[b.memoizedState,a]}function oc(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=x.updateQueue;null===b?(b={lastEffect:null},x.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function Id(a){return Ha().memoizedState}function pc(a,b,c,d){var e=Ga();x.effectTag|=a;e.memoizedState=oc(1|b,c,void 0,void 0===d?null:d)}function qc(a,b,c,d){var e=Ha();d=void 0===d?null:d;var f=void 0; -if(null!==F){var g=F.memoizedState;f=g.destroy;if(null!==d&&lc(d,g.deps)){oc(b,c,f,d);return}}x.effectTag|=a;e.memoizedState=oc(1|b,c,f,d)}function Jd(a,b){return pc(516,4,a,b)}function Ab(a,b){return qc(516,4,a,b)}function Kd(a,b){return qc(4,2,a,b)}function Ld(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Md(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return qc(4,2,Ld.bind(null,b,a),c)} -function rc(a,b){}function Nd(a,b){Ga().memoizedState=[a,void 0===b?null:b];return a}function Bb(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];c.memoizedState=[a,b];return a}function Od(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function sc(a,b,c){var d=fb();pa(98>d?98:d,function(){a(!0)});pa(97d.tailExpiration&&1a?c:a;return 2>=a&&b!==a?0:a}function O(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=rd(Gc.bind(null,a));else{var b=Ib(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=la();1073741823===b?d=99:1===b||2=== -b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==td&&ud(c)}a.callbackExpirationTime=b;a.callbackPriority=d;b=1073741823===b?rd(Gc.bind(null,a)):qd(d,me.bind(null,a),{timeout:10*(1073741821-b)-N()});a.callbackNode=b}}}function me(a,b){Gb=0;if(b){b=la();var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b;O(a);return null}c=Ib(a);if(0!==c){b=a.callbackNode;if((m&(V|ba))!==G)throw Error(k(327)); -Wa();a===K&&c===J||xa(a,c);if(null!==q){var d=m;m|=V;var e=ne();do try{hf();break}catch(h){oe(a,h)}while(1);bc();m=d;Jb.current=e;if(A===Kb)throw b=Lb,xa(a,c),va(a,c),O(a),b;if(null===q)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=A,K=null,d){case ua:case Kb:throw Error(k(345));case pe:c=2c)a.lastExpiredTime=c;break;case Db:va(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Hc(e));if(1073741823===ca&&(e=Ec+qe-N(),10=c){a.lastPingedTime=c;xa(a,c);break}}f=Ib(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Ic(ya.bind(null,a),e);break}ya(a);break;case Eb:va(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Hc(e));if(Mb&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;xa(a,c);break}e=Ib(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}1073741823!==Xa?d=10*(1073741821-Xa)-N():1073741823===ca?d=0:(d=10*(1073741821-ca)- -5E3,e=N(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*jf(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=N()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+Yb(g))}A!==Jc&&(A=pe);h=yc(h,g);k=f;do{switch(k.tag){case 3:n=h;k.effectTag|=4096;k.expirationTime= -b;var G=je(k,n,b);xd(k,G);break a;case 1:n=h;var H=k.type,D=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof H.getDerivedStateFromError||null!==D&&"function"===typeof D.componentDidCatch&&(null===ma||!ma.has(D)))){k.effectTag|=4096;k.expirationTime=b;var I=ke(k,n,b);xd(k,I);break a}}k=k.return}while(null!==k)}q=se(q)}catch(Oe){b=Oe;continue}break}while(1)}function ne(a){a=Jb.current;Jb.current=wb;return null===a?wb:a}function yd(a,b){a -Va&&(Va=a)}function kf(){for(;null!==q;)q=te(q)}function hf(){for(;null!==q&&!of();)q=te(q)}function te(a){var b=pf(a.alternate,a,J);a.memoizedProps=a.pendingProps;null===b&&(b=se(a));ue.current=null;return b}function se(a){q=a;do{var b=q.alternate;a=q.return;if(0===(q.effectTag&2048)){b=Ve(b,q,J);if(1===J||1!==q.childExpirationTime){for(var c=0,d=q.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}q.childExpirationTime=c}if(null!==b)return b;null!== -a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=q.firstEffect),null!==q.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=q.firstEffect),a.lastEffect=q.lastEffect),1a?b:a}function ya(a){var b=fb();pa(99,qf.bind(null,a,b));return null}function qf(a,b){do Wa();while(null!==Ya);if((m&(V|ba))!==G)throw Error(k(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(k(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Hc(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime= -a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===K&&(q=K=null,J=0);1=b&&a<=b}function va(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}function $d(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel= -0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function zf(a){if(null===Pb)try{var b=("require"+Math.random()).slice(0,7);Pb=(module&&module[b])("timers").setImmediate}catch(c){Pb=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return Pb(a)}function Mc(a,b,c,d){var e=b.current,f=la(),g=Ta.suspense;f=Ia(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(cb(c)!==c||1!==c.tag)throw Error(k(170));var h=c;do{switch(h.tag){case 3:h= -h.stateNode.context;break b;case 1:if(C(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(k(171));}if(1===c.tag){var l=c.type;if(C(l)){c=jd(c,l,h);break a}}c=h}else c=ea;null===b.context?b.context=c:b.pendingContext=c;b=fa(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);ha(e,b);Ua(e,f);return f}function xe(a){try{Nc(),zf(function(){Nc()?xe(a):a()})}catch(b){a(b)}}function Qb(a){if(a.isHidden)return null;switch(a.tag){case "TEXT":return a.text; -case "INSTANCE":var b=a.props;var c=["children"];if(null==b)b={};else{var d={},e=Object.keys(b),f;for(f=0;fBe?Tc:function(){return Tc()-Be},qa="function"===typeof Object.is?Object.is:Me,Ne=Object.prototype.hasOwnProperty,lb={current:null},kb=null,Da=null,jb=null,wd=0,mb=2,ia=!1,Ta=P.ReactCurrentBatchConfig, -Dd=(new S.Component).refs,pb={isMounted:function(a){return(a=a._reactInternalFiber)?cb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber; -var c=la(),d=Ta.suspense;c=Ia(c,a,d);d=fa(c,d);d.tag=mb;void 0!==b&&null!==b&&(d.callback=b);ha(a,d);Ua(a,c)}},tb=Array.isArray,Ja=Ed(!0),Pd=Ed(!1),Qa={},U={current:Qa},Sa={current:Qa},Ra={current:Qa},t={current:0},vb=P.ReactCurrentDispatcher,M=P.ReactCurrentBatchConfig,ka=0,x=null,F=null,E=null,xb=!1,wb={readContext:L,useCallback:D,useContext:D,useEffect:D,useImperativeHandle:D,useLayoutEffect:D,useMemo:D,useReducer:D,useRef:D,useState:D,useDebugValue:D,useResponder:D,useDeferredValue:D,useTransition:D}, -Re={readContext:L,useCallback:Nd,useContext:L,useEffect:Jd,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return pc(4,2,Ld.bind(null,b,a),c)},useLayoutEffect:function(a,b){return pc(4,2,a,b)},useMemo:function(a,b){var c=Ga();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Ga();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Hd.bind(null, -x,a);return[d.memoizedState,a]},useRef:function(a){var b=Ga();a={current:a};return b.memoizedState=a},useState:nc,useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=nc(a),d=c[0],e=c[1];Jd(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=nc(!1),c=b[0];b=b[1];return[Nd(sc.bind(null,b,a),[b,a]),c]}},Se={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd, -useMemo:Od,useReducer:yb,useRef:Id,useState:function(a){return yb(ta)},useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=yb(ta),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=yb(ta),c=b[0];b=b[1];return[Bb(sc.bind(null,b,a),[b,a]),c]}},Te={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd,useMemo:Od,useReducer:zb,useRef:Id,useState:function(a){return zb(ta)}, -useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=zb(ta),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=zb(ta),c=b[0];b=b[1];return[Bb(sc.bind(null,b,a),[b,a]),c]}},Ue=P.ReactCurrentOwner,T=!1,wc={dehydrated:null,retryTime:0};var Xe=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag||6===c.tag){d=a;var e=c.stateNode,f=d.children.indexOf(e);-1!==f&&d.children.splice(f, -1);d.children.push(e)}else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};var Zd=function(a){};var We=function(a,b,c,d,e){a.memoizedProps!==d&&(sa(U.current),b.updateQueue=Bf)&&(b.effectTag|=4)};var Ye=function(a,b,c,d){c!==d&&(b.effectTag|=4)};var ff="function"===typeof WeakSet?WeakSet:Set,mf="function"===typeof WeakMap?WeakMap:Map,jf=Math.ceil,Jb=P.ReactCurrentDispatcher, -ue=P.ReactCurrentOwner,G=0,ve=8,V=16,ba=32,ua=0,Kb=1,pe=2,Db=3,Eb=4,Jc=5,m=G,K=null,q=null,J=0,A=ua,Lb=null,ca=1073741823,Xa=1073741823,Nb=null,Va=0,Mb=!1,Ec=0,qe=500,l=null,Fb=!1,Fc=null,ma=null,Ob=!1,Ya=null,Za=90,Tb=null,$a=0,Kc=null,Gb=0,Ua=function(a,b){if(50<$a)throw $a=0,Kc=null,Error(k(185));a=Hb(a,b);if(null!==a){var c=fb();1073741823===b?(m&ve)!==G&&(m&(V|ba))===G?Gc(a):(O(a),m===G&&Ca()):O(a);(m&4)===G||98!==c&&99!==c||(null===Tb?Tb=new Map([[a,b]]):(c=Tb.get(a),(void 0===c||c>b)&&Tb.set(a, -b)))}};var pf=function(a,b,c){var d=b.expirationTime;if(null!==a)if(a.memoizedProps!==b.pendingProps||z.current)T=!0;else{if(d=c)return Wd(a,b,c);w(t,t.current&1);b=aa(a,b,c);return null!== -b?b.sibling:null}w(t,t.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Yd(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);w(t,t.current);if(!d)return null}return aa(a,b,c)}T=!1}else T=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ba(b,y.current);Ea(b,c);e=mc(null,b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&& -void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(C(d)){var f=!0;eb(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;dc(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&ob(b,d,g,a);e.updater=pb;b.stateNode=e;e._reactInternalFiber=b;fc(b,d,a,c);b=vc(null,b,d,!0,f,c)}else b.tag=0,I(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Ge(e);if(1!==e._status)throw e._result; -e=e._result;b.type=e;f=b.tag=vf(e);a=Q(e,a);switch(f){case 0:b=uc(null,b,e,a,c);break a;case 1:b=Ud(null,b,e,a,c);break a;case 11:b=Qd(null,b,e,a,c);break a;case 14:b=Rd(null,b,e,Q(e.type,a),d,c);break a}throw Error(k(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Q(d,e),uc(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Q(d,e),Ud(a,b,d,e,c);case 3:Vd(b);d=b.updateQueue;if(null===a||null===d)throw Error(k(282));d=b.pendingProps;e=b.memoizedState; -e=null!==e?e.element:null;ec(a,b);Na(b,d,null,c);d=b.memoizedState.element;d===e?b=aa(a,b,c):(I(a,b,d,c),b=b.child);return b;case 5:return Gd(b),d=b.pendingProps.children,Td(a,b),I(a,b,d,c),b=b.child,b;case 6:return null;case 13:return Wd(a,b,c);case 4:return ic(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ja(b,null,d,c):I(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Q(d,e),Qd(a,b,d,e,c);case 7:return I(a,b,b.pendingProps,c),b.child;case 8:return I(a, -b,b.pendingProps.children,c),b.child;case 12:return I(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;w(lb,h._currentValue2);h._currentValue2=f;if(null!==g)if(h=g.value,f=qa(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!z.current){b=aa(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var l=h.dependencies;if(null!== -l){g=h.child;for(var m=l.firstContext;null!==m;){if(m.context===d&&0!==(m.observedBits&f)){1===h.tag&&(m=fa(c,null),m.tag=mb,ha(h,m));h.expirationTimeOc(a).length)break;return Qc(a)}a=a.return}return null}},{key:"children",get:function(){return Oc(this._currentFiber())}}]);return a}(),Df={_Scheduler:za,create:function(a,b){var c=Cf,d=!1;"object"===typeof b&&null!==b&&("function"===typeof b.createNodeMock&&(c=b.createNodeMock),!0===b.unstable_isConcurrent&&(d=!0));var e={children:[],createNodeMock:c,tag:"CONTAINER"},f=yf(e,d?2:0,!1);if(null==f)throw Error(k(215)); -Mc(a,f,null,null);a={_Scheduler:za,root:void 0,toJSON:function(){if(null==f||null==f.current||null==e||0===e.children.length)return null;if(1===e.children.length)return Qb(e.children[0]);if(2===e.children.length&&!0===e.children[0].isHidden&&!1===e.children[1].isHidden)return Qb(e.children[1]);var a=null;if(e.children&&e.children.length)for(var b=0;bAa||(a.current=Zb[Aa],Zb[Aa]=null,Aa--)}function w(a,b,c){Aa++;Zb[Aa]=a.current;a.current=b} +function Ba(a,b){var c=a.type.contextTypes;if(!c)return ea;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function C(a){a=a.childContextTypes;return null!==a&&void 0!==a}function id(a,b,c){if(y.current!==ea)throw Error(k(168));w(y,b);w(z,c)}function jd(a,b,c){var d=a.stateNode; +a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(k(108,W(b)||"Unknown",e));return X({},c,{},d)}function eb(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ea;pa=y.current;w(y,a);w(z,z.current);return!0}function kd(a,b,c){var d=a.stateNode;if(!d)throw Error(k(169));c?(a=jd(a,b,pa),d.__reactInternalMemoizedMergedChildContext=a,r(z),r(y),w(y,a)):r(z);w(z,c)}function fb(){switch(Je()){case gb:return 99; +case ld:return 98;case md:return 97;case nd:return 96;case od:return 95;default:throw Error(k(332));}}function pd(a){switch(a){case 99:return gb;case 98:return ld;case 97:return md;case 96:return nd;case 95:return od;default:throw Error(k(332));}}function qa(a,b){a=pd(a);return Ke(a,b)}function qd(a,b,c){a=pd(a);return $b(a,b,c)}function rd(a){null===Y?(Y=[a],hb=$b(gb,sd)):Y.push(a);return td}function Ca(){if(null!==hb){var a=hb;hb=null;ud(a)}sd()}function sd(){if(!ac&&null!==Y){ac=!0;var a=0;try{var b= +Y;qa(99,function(){for(;a=b&&(T=!0),a.firstContext=null)}function L(a,b){if(jb!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)jb=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===Da){if(null===kb)throw Error(k(308));Da=b;kb.dependencies={expirationTime:0,firstContext:b,responders:null}}else Da=Da.next=b}return a._currentValue2}function dc(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ec(a,b){a=a.updateQueue; +b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function fa(a,b){a={expirationTime:a,suspenseConfig:b,tag:wd,payload:null,callback:null,next:null};return a.next=a}function ha(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}function xd(a,b){var c=a.alternate;null!==c&&ec(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next= +b)}function Na(a,b,c,d){var e=a.updateQueue;ia=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var n=e.baseState,k=0,l=null,Z=null,q=null;if(null!==h){var m=h;do{g=m.expirationTime;if(gk&&(k=g)}else{null!==q&&(q=q.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null});yd(g,m.suspenseConfig);a:{var t=a,u=m;g=b;r=c;switch(u.tag){case 1:t=u.payload;if("function"===typeof t){n=t.call(r,n,g);break a}n=t;break a;case 3:t.effectTag=t.effectTag&-4097|64;case wd:t=u.payload;g="function"===typeof t?t.call(r,n,g):t;if(null===g||void 0===g)break a;n=X({},n,g);break a;case mb:ia=!0}}null!==m.callback&& +(a.effectTag|=32,g=e.effects,null===g?e.effects=[m]:g.push(m))}m=m.next;if(null===m||m===h)if(g=e.shared.pending,null===g)break;else m=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===q?l=n:q.next=Z;e.baseState=l;e.baseQueue=q;nb(k);a.expirationTime=k;a.memoizedState=n}}function zd(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;bu?(m=p,p=null):m=p.sibling;var S=r(e,p,h[u],n);if(null===S){null===p&&(p=m);break}a&&p&&null===S.alternate&&b(e,p);g=f(S,g,u); +null===l?k=S:l.sibling=S;l=S;p=m}if(u===h.length)return c(e,p),k;if(null===p){for(;uu?(S=m,m=null):S=m.sibling;var Z=r(e,m,v.value,n);if(null===Z){null===m&&(m=S);break}a&&m&&null===Z.alternate&&b(e,m);g=f(Z,g,u);null===l?p=Z:l.sibling=Z;l=Z;m=S}if(v.done)return c(e,m),p;if(null===m){for(;!v.done;u++,v=h.next())v=q(e,v.value,n),null!==v&&(g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);return p}for(m=d(e,m);!v.done;u++,v=h.next())v=t(m,e,u,v.value,n),null!==v&&(a&&null!==v.alternate&&m.delete(null===v.key?u:v.key), +g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);a&&m.forEach(function(a){return b(e,a)});return p}return function(a,d,f,h){var n="object"===typeof f&&null!==f&&f.type===oa&&null===f.key;n&&(f=f.props.children);var p="object"===typeof f&&null!==f;if(p)switch(f.$$typeof){case sb:a:{p=f.key;for(n=d;null!==n;){if(n.key===p){switch(n.tag){case 7:if(f.type===oa){c(a,n.sibling);d=e(n,f.props.children);d.return=a;a=d;break a}break;default:if(n.elementType===f.type){c(a,n.sibling);d=e(n,f.props);d.ref=Pa(a,n,f); +d.return=a;a=d;break a}}c(a,n);break}else b(a,n);n=n.sibling}f.type===oa?(d=ja(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=rb(f.type,f.key,f.props,null,a.mode,h),h.ref=Pa(a,d,f),h.return=a,a=h)}return g(a);case Ma:a:{for(n=f.key;null!==d;){if(d.key===n)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=hc(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"=== +typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=gc(f,a.mode,h),d.return=a,a=d),g(a);if(tb(f))return w(a,d,f,h);if(La(f))return x(a,d,f,h);p&&qb(a,f);if("undefined"===typeof f&&!n)switch(a.tag){case 1:case 0:throw a=a.type,Error(k(152,a.displayName||a.name||"Component"));}return c(a,d)}}function ta(a){if(a===Qa)throw Error(k(174));return a}function ic(a,b){w(Ra,b);w(Sa,a);w(U,Qa);a=Fd;r(U);w(U,a)}function Fa(a){r(U);r(Sa);r(Ra)}function Gd(a){ta(Ra.current); +var b=ta(U.current),c=Fd;b!==c&&(w(Sa,a),w(U,c))}function jc(a){Sa.current===a&&(r(U),r(Sa))}function ub(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(null===c.dehydrated||Oe()||Pe()))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null} +function kc(a,b){return{responder:a,props:b}}function D(){throw Error(k(321));}function lc(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(k(301));f+=1;E=F=null;b.updateQueue=null;vb.current=Se;a=c(d,e)}while(b.expirationTime=== +ka)}vb.current=wb;b=null!==F&&null!==F.next;ka=0;E=F=x=null;xb=!1;if(b)throw Error(k(300));return a}function Ga(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===E?x.memoizedState=E=a:E=E.next=a;return E}function Ha(){if(null===F){var a=x.alternate;a=null!==a?a.memoizedState:null}else a=F.next;var b=null===E?x.memoizedState:E.next;if(null!==b)E=b,F=a;else{if(null===a)throw Error(k(310));F=a;a={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue, +queue:F.queue,next:null};null===E?x.memoizedState=E=a:E=E.next=a}return E}function ua(a,b){return"function"===typeof b?b(a):b}function yb(a,b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=F,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,n=e;do{var p=n.expirationTime;if(px.expirationTime&&(x.expirationTime=p,nb(p))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:n.suspenseConfig,action:n.action,eagerReducer:n.eagerReducer,eagerState:n.eagerState,next:null}),yd(p,n.suspenseConfig),d=n.eagerReducer===a?n.eagerState:a(d,n.action);n=n.next}while(null!==n&&n!==e);null===h?f=d:h.next=g;ra(d,b.memoizedState)||(T=!0);b.memoizedState=d;b.baseState= +f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}function zb(a,b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);ra(f,b.memoizedState)||(T=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function nc(a){var b=Ga();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a; +a=b.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a};a=a.dispatch=Hd.bind(null,x,a);return[b.memoizedState,a]}function oc(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=x.updateQueue;null===b?(b={lastEffect:null},x.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function Id(a){return Ha().memoizedState}function pc(a,b,c,d){var e=Ga();x.effectTag|=a;e.memoizedState=oc(1| +b,c,void 0,void 0===d?null:d)}function qc(a,b,c,d){var e=Ha();d=void 0===d?null:d;var f=void 0;if(null!==F){var g=F.memoizedState;f=g.destroy;if(null!==d&&lc(d,g.deps)){oc(b,c,f,d);return}}x.effectTag|=a;e.memoizedState=oc(1|b,c,f,d)}function Jd(a,b){return pc(516,4,a,b)}function Ab(a,b){return qc(516,4,a,b)}function Kd(a,b){return qc(4,2,a,b)}function Ld(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}} +function Md(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return qc(4,2,Ld.bind(null,b,a),c)}function rc(a,b){}function Nd(a,b){Ga().memoizedState=[a,void 0===b?null:b];return a}function Bb(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];c.memoizedState=[a,b];return a}function Od(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function sc(a,b,c){var d= +fb();qa(98>d?98:d,function(){a(!0)});qa(97d.tailExpiration&&1a?c:a;return 2>=a&&b!==a?0:a}function O(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=rd(Gc.bind(null,a));else{var b=Ib(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime= +0,a.callbackPriority=90);else{var d=la();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==td&&ud(c)}a.callbackExpirationTime=b;a.callbackPriority=d;b=1073741823===b?rd(Gc.bind(null,a)):qd(d,me.bind(null,a),{timeout:10*(1073741821-b)-N()});a.callbackNode=b}}}function me(a,b){Gb=0;if(b){b=la();var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b; +O(a);return null}c=Ib(a);if(0!==c){b=a.callbackNode;if((m&(V|ba))!==G)throw Error(k(327));Wa();a===K&&c===J||ya(a,c);if(null!==q){var d=m;m|=V;var e=ne();do try{gf();break}catch(h){oe(a,h)}while(1);bc();m=d;Jb.current=e;if(A===Kb)throw b=Lb,ya(a,c),wa(a,c),O(a),b;if(null===q)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=A,K=null,d){case va:case Kb:throw Error(k(345));case pe:c=2c)a.lastExpiredTime=c;break;case Db:wa(a,c);d=a.lastSuspendedTime; +c===d&&(a.nextKnownPendingLevel=Hc(e));if(1073741823===ca&&(e=Ec+qe-N(),10=c){a.lastPingedTime=c;ya(a,c);break}}f=Ib(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Ic(za.bind(null,a),e);break}za(a);break;case Eb:wa(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Hc(e));if(Mb&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;ya(a,c);break}e=Ib(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime= +d;break}1073741823!==Xa?d=10*(1073741821-Xa)-N():1073741823===ca?d=0:(d=10*(1073741821-ca)-5E3,e=N(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*hf(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=N()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+ +Yb(g))}A!==Jc&&(A=pe);h=yc(h,g);k=f;do{switch(k.tag){case 3:n=h;k.effectTag|=4096;k.expirationTime=b;var G=je(k,n,b);xd(k,G);break a;case 1:n=h;var H=k.type,D=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof H.getDerivedStateFromError||null!==D&&"function"===typeof D.componentDidCatch&&(null===ma||!ma.has(D)))){k.effectTag|=4096;k.expirationTime=b;var I=ke(k,n,b);xd(k,I);break a}}k=k.return}while(null!==k)}q=se(q)}catch(Ne){b=Ne;continue}break}while(1)}function ne(a){a=Jb.current;Jb.current= +wb;return null===a?wb:a}function yd(a,b){aVa&&(Va=a)}function jf(){for(;null!==q;)q=te(q)}function gf(){for(;null!==q&&!nf();)q=te(q)}function te(a){var b=of(a.alternate,a,J);a.memoizedProps=a.pendingProps;null===b&&(b=se(a));ue.current=null;return b}function se(a){q=a;do{var b=q.alternate;a=q.return;if(0===(q.effectTag&2048)){b=Ue(b,q,J);if(1===J||1!==q.childExpirationTime){for(var c=0,d=q.child;null!==d;){var e=d.expirationTime, +f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}q.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=q.firstEffect),null!==q.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=q.firstEffect),a.lastEffect=q.lastEffect),1a?b:a}function za(a){var b=fb();qa(99,pf.bind(null,a,b));return null}function pf(a,b){do Wa();while(null!==Ya);if((m&(V|ba))!==G)throw Error(k(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(k(177));a.callbackNode=null;a.callbackExpirationTime= +0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Hc(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===K&&(q=K=null,J=0);1=b&&a<=b}function wa(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&& +(a.lastExpiredTime=0)}function $d(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function yf(a){if(null===Pb)try{var b=("require"+Math.random()).slice(0,7);Pb=(module&&module[b])("timers").setImmediate}catch(c){Pb=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return Pb(a)} +function Mc(a,b,c,d){var e=b.current,f=la(),g=Ta.suspense;f=Ia(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(cb(c)!==c||1!==c.tag)throw Error(k(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(C(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(k(171));}if(1===c.tag){var l=c.type;if(C(l)){c=jd(c,l,h);break a}}c=h}else c=ea;null===b.context?b.context=c:b.pendingContext=c;b=fa(f,g);b.payload={element:a};d=void 0=== +d?null:d;null!==d&&(b.callback=d);ha(e,b);Ua(e,f);return f}function xe(a){try{Nc(),yf(function(){Nc()?xe(a):a()})}catch(b){a(b)}}function Qb(a){if(a.isHidden)return null;switch(a.tag){case "TEXT":return a.text;case "INSTANCE":var b=a.props;var c=["children"];if(null==b)b={};else{var d={},e=Object.keys(b),f;for(f=0;fBe?Tc:function(){return Tc()-Be},ra="function"===typeof Object.is?Object.is:Le,Me=Object.prototype.hasOwnProperty,lb={current:null},kb=null,Da=null,jb=null,wd=0,mb=2,ia=!1,Ta=P.ReactCurrentBatchConfig,Dd=(new na.Component).refs,pb={isMounted:function(a){return(a=a._reactInternalFiber)?cb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueReplaceState:function(a, +b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=la(),d=Ta.suspense;c=Ia(c,a,d);d=fa(c,d);d.tag=mb;void 0!==b&&null!==b&&(d.callback=b);ha(a,d);Ua(a,c)}},tb=Array.isArray,Ja=Ed(!0),Pd=Ed(!1),Qa={},U={current:Qa},Sa={current:Qa},Ra={current:Qa},t={current:0},vb=P.ReactCurrentDispatcher,M=P.ReactCurrentBatchConfig,ka=0,x=null,F=null,E=null, +xb=!1,wb={readContext:L,useCallback:D,useContext:D,useEffect:D,useImperativeHandle:D,useLayoutEffect:D,useMemo:D,useReducer:D,useRef:D,useState:D,useDebugValue:D,useResponder:D,useDeferredValue:D,useTransition:D},Qe={readContext:L,useCallback:Nd,useContext:L,useEffect:Jd,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return pc(4,2,Ld.bind(null,b,a),c)},useLayoutEffect:function(a,b){return pc(4,2,a,b)},useMemo:function(a,b){var c=Ga();b=void 0===b?null:b;a=a();c.memoizedState= +[a,b];return a},useReducer:function(a,b,c){var d=Ga();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Hd.bind(null,x,a);return[d.memoizedState,a]},useRef:function(a){var b=Ga();a={current:a};return b.memoizedState=a},useState:nc,useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=nc(a),d=c[0],e=c[1];Jd(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense= +c}},[a,b]);return d},useTransition:function(a){var b=nc(!1),c=b[0];b=b[1];return[Nd(sc.bind(null,b,a),[b,a]),c]}},Re={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd,useMemo:Od,useReducer:yb,useRef:Id,useState:function(a){return yb(ua)},useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=yb(ua),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b= +yb(ua),c=b[0];b=b[1];return[Bb(sc.bind(null,b,a),[b,a]),c]}},Se={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd,useMemo:Od,useReducer:zb,useRef:Id,useState:function(a){return zb(ua)},useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=zb(ua),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=zb(ua),c=b[0];b=b[1];return[Bb(sc.bind(null, +b,a),[b,a]),c]}},Te=P.ReactCurrentOwner,T=!1,wc={dehydrated:null,retryTime:0};var We=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag||6===c.tag){d=a;var e=c.stateNode,f=d.children.indexOf(e);-1!==f&&d.children.splice(f,1);d.children.push(e)}else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};var Zd=function(a){};var Ve=function(a,b,c,d,e){a.memoizedProps!== +d&&(ta(U.current),b.updateQueue=Af)&&(b.effectTag|=4)};var Xe=function(a,b,c,d){c!==d&&(b.effectTag|=4)};var ef="function"===typeof WeakSet?WeakSet:Set,lf="function"===typeof WeakMap?WeakMap:Map,hf=Math.ceil,Jb=P.ReactCurrentDispatcher,ue=P.ReactCurrentOwner,G=0,ve=8,V=16,ba=32,va=0,Kb=1,pe=2,Db=3,Eb=4,Jc=5,m=G,K=null,q=null,J=0,A=va,Lb=null,ca=1073741823,Xa=1073741823,Nb=null,Va=0,Mb=!1,Ec=0,qe=500,l=null,Fb=!1,Fc=null,ma=null,Ob=!1,Ya=null,Za=90,Tb=null,$a=0,Kc=null,Gb=0,Ua=function(a,b){if(50< +$a)throw $a=0,Kc=null,Error(k(185));a=Hb(a,b);if(null!==a){var c=fb();1073741823===b?(m&ve)!==G&&(m&(V|ba))===G?Gc(a):(O(a),m===G&&Ca()):O(a);(m&4)===G||98!==c&&99!==c||(null===Tb?Tb=new Map([[a,b]]):(c=Tb.get(a),(void 0===c||c>b)&&Tb.set(a,b)))}};var of=function(a,b,c){var d=b.expirationTime;if(null!==a)if(a.memoizedProps!==b.pendingProps||z.current)T=!0;else{if(d=c)return Wd(a,b,c);w(t,t.current&1);b=aa(a,b,c);return null!==b?b.sibling:null}w(t,t.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Yd(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);w(t,t.current);if(!d)return null}return aa(a,b,c)}T=!1}else T= +!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ba(b,y.current);Ea(b,c);e=mc(null,b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(C(d)){var f=!0;eb(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;dc(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&ob(b,d,g,a);e.updater= +pb;b.stateNode=e;e._reactInternalFiber=b;fc(b,d,a,c);b=vc(null,b,d,!0,f,c)}else b.tag=0,I(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Fe(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=uf(e);a=R(e,a);switch(f){case 0:b=uc(null,b,e,a,c);break a;case 1:b=Ud(null,b,e,a,c);break a;case 11:b=Qd(null,b,e,a,c);break a;case 14:b=Rd(null,b,e,R(e.type,a),d,c);break a}throw Error(k(306,e,""));}return b; +case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:R(d,e),uc(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:R(d,e),Ud(a,b,d,e,c);case 3:Vd(b);d=b.updateQueue;if(null===a||null===d)throw Error(k(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;ec(a,b);Na(b,d,null,c);d=b.memoizedState.element;d===e?b=aa(a,b,c):(I(a,b,d,c),b=b.child);return b;case 5:return Gd(b),d=b.pendingProps.children,Td(a,b),I(a,b,d,c),b=b.child,b;case 6:return null;case 13:return Wd(a, +b,c);case 4:return ic(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ja(b,null,d,c):I(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:R(d,e),Qd(a,b,d,e,c);case 7:return I(a,b,b.pendingProps,c),b.child;case 8:return I(a,b,b.pendingProps.children,c),b.child;case 12:return I(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;w(lb,h._currentValue2);h._currentValue2=f;if(null!== +g)if(h=g.value,f=ra(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!z.current){b=aa(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var l=h.dependencies;if(null!==l){g=h.child;for(var m=l.firstContext;null!==m;){if(m.context===d&&0!==(m.observedBits&f)){1===h.tag&&(m=fa(c,null),m.tag=mb,ha(h,m));h.expirationTimeOc(a).length)break;return Qc(a)}a=a.return}return null}},{key:"children",get:function(){return Oc(this._currentFiber())}}]);return a}(),Sc= +new WeakMap;(function(a){var b=a.findFiberByHostInstance;return tf(X({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Ge(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:function(){throw Error("TestRenderer does not support findFiberByHostInstance()"); +},bundleType:0,version:"16.12.0",rendererPackageName:"react-test-renderer"});Q._Scheduler=Vc;Q.act=function(a){function b(){Ub--;Uc.current=c}!1===De&&(De=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));Ub++;var c=Uc.current;Uc.current=!0;try{var d=re(a)}catch(e){throw b(),e;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,f){d.then(function(){1= newSize)) throw Error(formatProdErrorMessage(304)); - var newArray = new Uint16Array(newSize); - newArray.set(oldArray); - nextAvailableThreadIDs = newArray; - nextAvailableThreadIDs[0] = JSCompiler_inline_result + 1; - for ( - oldArray = JSCompiler_inline_result; - oldArray < newSize - 1; - oldArray++ - ) - nextAvailableThreadIDs[oldArray] = oldArray + 1; - nextAvailableThreadIDs[newSize - 1] = 0; - } else - nextAvailableThreadIDs[0] = - nextAvailableThreadIDs[JSCompiler_inline_result]; - this.threadID = JSCompiler_inline_result; - this.stack = [children]; - this.exhausted = !1; - this.currentSelectValue = null; - this.previousWasTextNode = !1; - this.makeStaticMarkup = makeStaticMarkup; - this.suspenseDepth = 0; - this.contextIndex = -1; - this.contextStack = []; - this.contextValueStack = []; - } - var _proto = ReactDOMServerRenderer.prototype; - _proto.destroy = function() { - if (!this.exhausted) { - this.exhausted = !0; - this.clearProviders(); - var id = this.threadID; - nextAvailableThreadIDs[id] = nextAvailableThreadIDs[0]; - nextAvailableThreadIDs[0] = id; - } - }; - _proto.pushProvider = function(provider) { - var index = ++this.contextIndex, - context = provider.type._context, - threadID = this.threadID; - validateContextBounds(context, threadID); - var previousValue = context[threadID]; - this.contextStack[index] = context; - this.contextValueStack[index] = previousValue; - context[threadID] = provider.props.value; - }; - _proto.popProvider = function() { - var index = this.contextIndex, - context = this.contextStack[index], - previousValue = this.contextValueStack[index]; - this.contextStack[index] = null; - this.contextValueStack[index] = null; - this.contextIndex--; - context[this.threadID] = previousValue; + function ReactDOMServerRenderer(children, makeStaticMarkup) { + React.isValidElement(children) + ? children.type !== REACT_FRAGMENT_TYPE + ? (children = [children]) + : ((children = children.props.children), + (children = React.isValidElement(children) + ? [children] + : toArray(children))) + : (children = toArray(children)); + children = { + type: null, + domNamespace: Namespaces.html, + children: children, + childIndex: 0, + context: emptyObject, + footer: "" }; - _proto.clearProviders = function() { - for (var index = this.contextIndex; 0 <= index; index--) - this.contextStack[index][this.threadID] = this.contextValueStack[index]; - }; - _proto.read = function(bytes) { - if (this.exhausted) return null; - var prevThreadID = currentThreadID; - currentThreadID = this.threadID; - var prevDispatcher = ReactCurrentDispatcher.current; - ReactCurrentDispatcher.current = Dispatcher; - try { - for (var out = [""], suspended = !1; out[0].length < bytes; ) { - if (0 === this.stack.length) { - this.exhausted = !0; - var id = this.threadID; - nextAvailableThreadIDs[id] = nextAvailableThreadIDs[0]; - nextAvailableThreadIDs[0] = id; - break; + var JSCompiler_inline_result = nextAvailableThreadIDs[0]; + if (0 === JSCompiler_inline_result) { + var oldArray = nextAvailableThreadIDs; + JSCompiler_inline_result = oldArray.length; + var newSize = 2 * JSCompiler_inline_result; + if (!(65536 >= newSize)) throw Error(formatProdErrorMessage(304)); + var newArray = new Uint16Array(newSize); + newArray.set(oldArray); + nextAvailableThreadIDs = newArray; + nextAvailableThreadIDs[0] = JSCompiler_inline_result + 1; + for ( + oldArray = JSCompiler_inline_result; + oldArray < newSize - 1; + oldArray++ + ) + nextAvailableThreadIDs[oldArray] = oldArray + 1; + nextAvailableThreadIDs[newSize - 1] = 0; + } else + nextAvailableThreadIDs[0] = + nextAvailableThreadIDs[JSCompiler_inline_result]; + this.threadID = JSCompiler_inline_result; + this.stack = [children]; + this.exhausted = !1; + this.currentSelectValue = null; + this.previousWasTextNode = !1; + this.makeStaticMarkup = makeStaticMarkup; + this.suspenseDepth = 0; + this.contextIndex = -1; + this.contextStack = []; + this.contextValueStack = []; + } + var _proto = ReactDOMServerRenderer.prototype; + _proto.destroy = function() { + if (!this.exhausted) { + this.exhausted = !0; + this.clearProviders(); + var id = this.threadID; + nextAvailableThreadIDs[id] = nextAvailableThreadIDs[0]; + nextAvailableThreadIDs[0] = id; + } + }; + _proto.pushProvider = function(provider) { + var index = ++this.contextIndex, + context = provider.type._context, + threadID = this.threadID; + validateContextBounds(context, threadID); + var previousValue = context[threadID]; + this.contextStack[index] = context; + this.contextValueStack[index] = previousValue; + context[threadID] = provider.props.value; + }; + _proto.popProvider = function() { + var index = this.contextIndex, + context = this.contextStack[index], + previousValue = this.contextValueStack[index]; + this.contextStack[index] = null; + this.contextValueStack[index] = null; + this.contextIndex--; + context[this.threadID] = previousValue; + }; + _proto.clearProviders = function() { + for (var index = this.contextIndex; 0 <= index; index--) + this.contextStack[index][this.threadID] = this.contextValueStack[index]; + }; + _proto.read = function(bytes) { + if (this.exhausted) return null; + var prevThreadID = currentThreadID; + currentThreadID = this.threadID; + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = Dispatcher; + try { + for (var out = [""], suspended = !1; out[0].length < bytes; ) { + if (0 === this.stack.length) { + this.exhausted = !0; + var id = this.threadID; + nextAvailableThreadIDs[id] = nextAvailableThreadIDs[0]; + nextAvailableThreadIDs[0] = id; + break; + } + var frame = this.stack[this.stack.length - 1]; + if (suspended || frame.childIndex >= frame.children.length) { + var footer = frame.footer; + "" !== footer && (this.previousWasTextNode = !1); + this.stack.pop(); + if ("select" === frame.type) this.currentSelectValue = null; + else if ( + null != frame.type && + null != frame.type.type && + frame.type.type.$$typeof === REACT_PROVIDER_TYPE + ) + this.popProvider(frame.type); + else if (frame.type === REACT_SUSPENSE_TYPE) { + this.suspenseDepth--; + var buffered = out.pop(); + if (suspended) { + suspended = !1; + var fallbackFrame = frame.fallbackFrame; + if (!fallbackFrame) throw Error(formatProdErrorMessage(303)); + this.stack.push(fallbackFrame); + out[this.suspenseDepth] += "\x3c!--$!--\x3e"; + continue; + } else out[this.suspenseDepth] += buffered; } - var frame = this.stack[this.stack.length - 1]; - if (suspended || frame.childIndex >= frame.children.length) { - var footer = frame.footer; - "" !== footer && (this.previousWasTextNode = !1); - this.stack.pop(); - if ("select" === frame.type) this.currentSelectValue = null; - else if ( - null != frame.type && - null != frame.type.type && - frame.type.type.$$typeof === REACT_PROVIDER_TYPE - ) - this.popProvider(frame.type); - else if (frame.type === REACT_SUSPENSE_TYPE) { - this.suspenseDepth--; - var buffered = out.pop(); - if (suspended) { - suspended = !1; - var fallbackFrame = frame.fallbackFrame; - if (!fallbackFrame) throw Error(formatProdErrorMessage(303)); - this.stack.push(fallbackFrame); - out[this.suspenseDepth] += "\x3c!--$!--\x3e"; - continue; - } else out[this.suspenseDepth] += buffered; - } - out[this.suspenseDepth] += footer; - } else { - var child = frame.children[frame.childIndex++], - outBuffer = ""; - try { - outBuffer += this.render( - child, - frame.context, - frame.domNamespace - ); - } catch (err) { - if (null != err && "function" === typeof err.then) { - if (!(0 < this.suspenseDepth)) - throw Error(formatProdErrorMessage(342)); - suspended = !0; - } else throw err; - } finally { - } - out.length <= this.suspenseDepth && out.push(""); - out[this.suspenseDepth] += outBuffer; + out[this.suspenseDepth] += footer; + } else { + var child = frame.children[frame.childIndex++], + outBuffer = ""; + try { + outBuffer += this.render(child, frame.context, frame.domNamespace); + } catch (err) { + if (null != err && "function" === typeof err.then) { + if (!(0 < this.suspenseDepth)) + throw Error(formatProdErrorMessage(342)); + suspended = !0; + } else throw err; + } finally { } + out.length <= this.suspenseDepth && out.push(""); + out[this.suspenseDepth] += outBuffer; } - return out[0]; - } finally { - (ReactCurrentDispatcher.current = prevDispatcher), - (currentThreadID = prevThreadID); } - }; - _proto.render = function(child, context, parentNamespace) { - if ("string" === typeof child || "number" === typeof child) { - parentNamespace = "" + child; - if ("" === parentNamespace) return ""; - if (this.makeStaticMarkup) return escapeTextForBrowser(parentNamespace); - if (this.previousWasTextNode) - return "\x3c!-- --\x3e" + escapeTextForBrowser(parentNamespace); - this.previousWasTextNode = !0; - return escapeTextForBrowser(parentNamespace); + return out[0]; + } finally { + (ReactCurrentDispatcher.current = prevDispatcher), + (currentThreadID = prevThreadID); + } + }; + _proto.render = function(child, context, parentNamespace) { + if ("string" === typeof child || "number" === typeof child) { + parentNamespace = "" + child; + if ("" === parentNamespace) return ""; + if (this.makeStaticMarkup) return escapeTextForBrowser(parentNamespace); + if (this.previousWasTextNode) + return "\x3c!-- --\x3e" + escapeTextForBrowser(parentNamespace); + this.previousWasTextNode = !0; + return escapeTextForBrowser(parentNamespace); + } + context = resolve(child, context, this.threadID); + child = context.child; + context = context.context; + if (null === child || !1 === child) return ""; + if (!React.isValidElement(child)) { + if (null != child && null != child.$$typeof) { + parentNamespace = child.$$typeof; + if (parentNamespace === REACT_PORTAL_TYPE) + throw Error(formatProdErrorMessage(257)); + throw Error(formatProdErrorMessage(258, parentNamespace.toString())); } - context = resolve(child, context, this.threadID); - child = context.child; - context = context.context; - if (null === child || !1 === child) return ""; - if (!React.isValidElement(child)) { - if (null != child && null != child.$$typeof) { - parentNamespace = child.$$typeof; - if (parentNamespace === REACT_PORTAL_TYPE) - throw Error(formatProdErrorMessage(257)); - throw Error(formatProdErrorMessage(258, parentNamespace.toString())); - } - child = toArray(child); + child = toArray(child); + this.stack.push({ + type: null, + domNamespace: parentNamespace, + children: child, + childIndex: 0, + context: context, + footer: "" + }); + return ""; + } + var elementType = child.type; + if ("string" === typeof elementType) + return this.renderDOM(child, context, parentNamespace); + switch (elementType) { + case REACT_STRICT_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_PROFILER_TYPE: + case REACT_SUSPENSE_LIST_TYPE: + case REACT_FRAGMENT_TYPE: + return ( + (child = toArray(child.props.children)), + this.stack.push({ + type: null, + domNamespace: parentNamespace, + children: child, + childIndex: 0, + context: context, + footer: "" + }), + "" + ); + case REACT_SUSPENSE_TYPE: + elementType = child.props.fallback; + if (void 0 === elementType) + return ( + (child = toArray(child.props.children)), + this.stack.push({ + type: null, + domNamespace: parentNamespace, + children: child, + childIndex: 0, + context: context, + footer: "" + }), + "" + ); + elementType = toArray(elementType); + child = toArray(child.props.children); this.stack.push({ - type: null, + fallbackFrame: { + type: null, + domNamespace: parentNamespace, + children: elementType, + childIndex: 0, + context: context, + footer: "\x3c!--/$--\x3e" + }, + type: REACT_SUSPENSE_TYPE, domNamespace: parentNamespace, children: child, childIndex: 0, context: context, - footer: "" + footer: "\x3c!--/$--\x3e" }); - return ""; - } - var elementType = child.type; - if ("string" === typeof elementType) - return this.renderDOM(child, context, parentNamespace); - switch (elementType) { - case REACT_STRICT_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_PROFILER_TYPE: - case REACT_SUSPENSE_LIST_TYPE: - case REACT_FRAGMENT_TYPE: + this.suspenseDepth++; + return "\x3c!--$--\x3e"; + } + if ("object" === typeof elementType && null !== elementType) + switch (elementType.$$typeof) { + case REACT_FORWARD_REF_TYPE: + currentlyRenderingComponent = {}; + var _nextChildren4 = elementType.render(child.props, child.ref); + _nextChildren4 = finishHooks( + elementType.render, + child.props, + _nextChildren4, + child.ref + ); + _nextChildren4 = toArray(_nextChildren4); + this.stack.push({ + type: null, + domNamespace: parentNamespace, + children: _nextChildren4, + childIndex: 0, + context: context, + footer: "" + }); + return ""; + case REACT_MEMO_TYPE: return ( - (child = toArray(child.props.children)), + (child = [ + React.createElement( + elementType.type, + Object.assign({ ref: child.ref }, child.props) + ) + ]), this.stack.push({ type: null, domNamespace: parentNamespace, @@ -1017,421 +1088,330 @@ var ReactDOMServerRenderer = (function() { }), "" ); - case REACT_SUSPENSE_TYPE: - elementType = child.props.fallback; - if (void 0 === elementType) - return ( - (child = toArray(child.props.children)), - this.stack.push({ - type: null, - domNamespace: parentNamespace, - children: child, - childIndex: 0, - context: context, - footer: "" - }), - "" - ); - elementType = toArray(elementType); - child = toArray(child.props.children); - this.stack.push({ - fallbackFrame: { - type: null, + case REACT_PROVIDER_TYPE: + return ( + (elementType = toArray(child.props.children)), + (parentNamespace = { + type: child, domNamespace: parentNamespace, children: elementType, childIndex: 0, context: context, - footer: "\x3c!--/$--\x3e" - }, - type: REACT_SUSPENSE_TYPE, + footer: "" + }), + this.pushProvider(child), + this.stack.push(parentNamespace), + "" + ); + case REACT_CONTEXT_TYPE: + elementType = child.type; + _nextChildren4 = child.props; + var threadID = this.threadID; + validateContextBounds(elementType, threadID); + elementType = toArray(_nextChildren4.children(elementType[threadID])); + this.stack.push({ + type: child, domNamespace: parentNamespace, - children: child, + children: elementType, childIndex: 0, context: context, - footer: "\x3c!--/$--\x3e" + footer: "" }); - this.suspenseDepth++; - return "\x3c!--$--\x3e"; - } - if ("object" === typeof elementType && null !== elementType) - switch (elementType.$$typeof) { - case REACT_FORWARD_REF_TYPE: - currentlyRenderingComponent = {}; - var _nextChildren4 = elementType.render(child.props, child.ref); - _nextChildren4 = finishHooks( - elementType.render, - child.props, - _nextChildren4, - child.ref - ); - _nextChildren4 = toArray(_nextChildren4); + return ""; + case REACT_FUNDAMENTAL_TYPE: + throw Error(formatProdErrorMessage(338)); + case REACT_LAZY_TYPE: + switch ( + ((elementType = child.type), + initializeLazyComponentType(elementType), + elementType._status) + ) { + case 1: + return ( + (child = [ + React.createElement( + elementType._result, + Object.assign({ ref: child.ref }, child.props) + ) + ]), + this.stack.push({ + type: null, + domNamespace: parentNamespace, + children: child, + childIndex: 0, + context: context, + footer: "" + }), + "" + ); + case 2: + throw elementType._result; + default: + throw Error(formatProdErrorMessage(295)); + } + case REACT_SCOPE_TYPE: + return ( + (child = toArray(child.props.children)), this.stack.push({ type: null, domNamespace: parentNamespace, - children: _nextChildren4, - childIndex: 0, - context: context, - footer: "" - }); - return ""; - case REACT_MEMO_TYPE: - return ( - (child = [ - React.createElement( - elementType.type, - Object.assign({ ref: child.ref }, child.props) - ) - ]), - this.stack.push({ - type: null, - domNamespace: parentNamespace, - children: child, - childIndex: 0, - context: context, - footer: "" - }), - "" - ); - case REACT_PROVIDER_TYPE: - return ( - (elementType = toArray(child.props.children)), - (parentNamespace = { - type: child, - domNamespace: parentNamespace, - children: elementType, - childIndex: 0, - context: context, - footer: "" - }), - this.pushProvider(child), - this.stack.push(parentNamespace), - "" - ); - case REACT_CONTEXT_TYPE: - elementType = child.type; - _nextChildren4 = child.props; - var threadID = this.threadID; - validateContextBounds(elementType, threadID); - elementType = toArray( - _nextChildren4.children(elementType[threadID]) - ); - this.stack.push({ - type: child, - domNamespace: parentNamespace, - children: elementType, + children: child, childIndex: 0, context: context, footer: "" - }); - return ""; - case REACT_FUNDAMENTAL_TYPE: - throw Error(formatProdErrorMessage(338)); - case REACT_LAZY_TYPE: - switch ( - ((elementType = child.type), - initializeLazyComponentType(elementType), - elementType._status) - ) { - case 1: - return ( - (child = [ - React.createElement( - elementType._result, - Object.assign({ ref: child.ref }, child.props) - ) - ]), - this.stack.push({ - type: null, - domNamespace: parentNamespace, - children: child, - childIndex: 0, - context: context, - footer: "" - }), - "" - ); - case 2: - throw elementType._result; - default: - throw Error(formatProdErrorMessage(295)); - } - case REACT_SCOPE_TYPE: - return ( - (child = toArray(child.props.children)), - this.stack.push({ - type: null, - domNamespace: parentNamespace, - children: child, - childIndex: 0, - context: context, - footer: "" - }), - "" - ); + }), + "" + ); + } + throw Error( + formatProdErrorMessage( + 130, + null == elementType ? elementType : typeof elementType, + "" + ) + ); + }; + _proto.renderDOM = function(element, context, parentNamespace) { + var tag = element.type.toLowerCase(); + parentNamespace === Namespaces.html && getIntrinsicNamespace(tag); + if (!validatedTagCache.hasOwnProperty(tag)) { + if (!VALID_TAG_REGEX.test(tag)) + throw Error(formatProdErrorMessage(65, tag)); + validatedTagCache[tag] = !0; + } + var props = element.props; + if ("input" === tag) + props = Object.assign({ type: void 0 }, props, { + defaultChecked: void 0, + defaultValue: void 0, + value: null != props.value ? props.value : props.defaultValue, + checked: null != props.checked ? props.checked : props.defaultChecked + }); + else if ("textarea" === tag) { + var initialValue = props.value; + if (null == initialValue) { + initialValue = props.defaultValue; + var textareaChildren = props.children; + if (null != textareaChildren) { + if (null != initialValue) throw Error(formatProdErrorMessage(92)); + if (Array.isArray(textareaChildren)) { + if (!(1 >= textareaChildren.length)) + throw Error(formatProdErrorMessage(93)); + textareaChildren = textareaChildren[0]; + } + initialValue = "" + textareaChildren; } - throw Error( - formatProdErrorMessage( - 130, - null == elementType ? elementType : typeof elementType, - "" - ) - ); - }; - _proto.renderDOM = function(element, context, parentNamespace) { - var tag = element.type.toLowerCase(); - parentNamespace === Namespaces.html && getIntrinsicNamespace(tag); - if (!validatedTagCache.hasOwnProperty(tag)) { - if (!VALID_TAG_REGEX.test(tag)) - throw Error(formatProdErrorMessage(65, tag)); - validatedTagCache[tag] = !0; + null == initialValue && (initialValue = ""); } - var props = element.props; - if ("input" === tag) - props = Object.assign({ type: void 0 }, props, { - defaultChecked: void 0, - defaultValue: void 0, - value: null != props.value ? props.value : props.defaultValue, - checked: null != props.checked ? props.checked : props.defaultChecked - }); - else if ("textarea" === tag) { - var initialValue = props.value; - if (null == initialValue) { - initialValue = props.defaultValue; - var textareaChildren = props.children; - if (null != textareaChildren) { - if (null != initialValue) throw Error(formatProdErrorMessage(92)); - if (Array.isArray(textareaChildren)) { - if (!(1 >= textareaChildren.length)) - throw Error(formatProdErrorMessage(93)); - textareaChildren = textareaChildren[0]; + props = Object.assign({}, props, { + value: void 0, + children: "" + initialValue + }); + } else if ("select" === tag) + (this.currentSelectValue = + null != props.value ? props.value : props.defaultValue), + (props = Object.assign({}, props, { value: void 0 })); + else if ("option" === tag) { + textareaChildren = this.currentSelectValue; + var optionChildren = flattenOptionChildren(props.children); + if (null != textareaChildren) { + var value = null != props.value ? props.value + "" : optionChildren; + initialValue = !1; + if (Array.isArray(textareaChildren)) + for (var j = 0; j < textareaChildren.length; j++) { + if ("" + textareaChildren[j] === value) { + initialValue = !0; + break; } - initialValue = "" + textareaChildren; } - null == initialValue && (initialValue = ""); - } - props = Object.assign({}, props, { - value: void 0, - children: "" + initialValue + else initialValue = "" + textareaChildren === value; + props = Object.assign({ selected: void 0, children: void 0 }, props, { + selected: initialValue, + children: optionChildren }); - } else if ("select" === tag) - (this.currentSelectValue = - null != props.value ? props.value : props.defaultValue), - (props = Object.assign({}, props, { value: void 0 })); - else if ("option" === tag) { - textareaChildren = this.currentSelectValue; - var optionChildren = flattenOptionChildren(props.children); - if (null != textareaChildren) { - var value = null != props.value ? props.value + "" : optionChildren; - initialValue = !1; - if (Array.isArray(textareaChildren)) - for (var j = 0; j < textareaChildren.length; j++) { - if ("" + textareaChildren[j] === value) { - initialValue = !0; - break; - } - } - else initialValue = "" + textareaChildren === value; - props = Object.assign({ selected: void 0, children: void 0 }, props, { - selected: initialValue, - children: optionChildren - }); - } } - if ((initialValue = props)) { + } + if ((initialValue = props)) { + if ( + voidElementTags[tag] && + (null != initialValue.children || + null != initialValue.dangerouslySetInnerHTML) + ) + throw Error(formatProdErrorMessage(137, tag, "")); + if (null != initialValue.dangerouslySetInnerHTML) { + if (null != initialValue.children) + throw Error(formatProdErrorMessage(60)); if ( - voidElementTags[tag] && - (null != initialValue.children || - null != initialValue.dangerouslySetInnerHTML) - ) - throw Error(formatProdErrorMessage(137, tag, "")); - if (null != initialValue.dangerouslySetInnerHTML) { - if (null != initialValue.children) - throw Error(formatProdErrorMessage(60)); - if ( - !( - "object" === typeof initialValue.dangerouslySetInnerHTML && - "__html" in initialValue.dangerouslySetInnerHTML - ) + !( + "object" === typeof initialValue.dangerouslySetInnerHTML && + "__html" in initialValue.dangerouslySetInnerHTML ) - throw Error(formatProdErrorMessage(61)); - } - if ( - null != initialValue.style && - "object" !== typeof initialValue.style ) - throw Error(formatProdErrorMessage(62, "")); + throw Error(formatProdErrorMessage(61)); } - initialValue = props; - textareaChildren = this.makeStaticMarkup; - optionChildren = 1 === this.stack.length; - value = "<" + element.type; - for (out in initialValue) - if ( - hasOwnProperty$1.call(initialValue, out) && - "DEPRECATED_flareListeners" !== out - ) { - var propValue = initialValue[out]; - if (null != propValue) { - if ("style" === out) { - j = void 0; - var serialized = "", - delimiter = ""; - for (j in propValue) - if (propValue.hasOwnProperty(j)) { - var isCustomProperty = 0 === j.indexOf("--"), - styleValue = propValue[j]; - if (null != styleValue) { - if (isCustomProperty) var JSCompiler_temp = j; - else if ( - ((JSCompiler_temp = j), - styleNameCache.hasOwnProperty(JSCompiler_temp)) + if (null != initialValue.style && "object" !== typeof initialValue.style) + throw Error(formatProdErrorMessage(62, "")); + } + initialValue = props; + textareaChildren = this.makeStaticMarkup; + optionChildren = 1 === this.stack.length; + value = "<" + element.type; + for (out in initialValue) + if ( + hasOwnProperty$1.call(initialValue, out) && + "DEPRECATED_flareListeners" !== out + ) { + var propValue = initialValue[out]; + if (null != propValue) { + if ("style" === out) { + j = void 0; + var serialized = "", + delimiter = ""; + for (j in propValue) + if (propValue.hasOwnProperty(j)) { + var isCustomProperty = 0 === j.indexOf("--"), + styleValue = propValue[j]; + if (null != styleValue) { + if (isCustomProperty) var JSCompiler_temp = j; + else if ( + ((JSCompiler_temp = j), + styleNameCache.hasOwnProperty(JSCompiler_temp)) + ) + JSCompiler_temp = styleNameCache[JSCompiler_temp]; + else { + var result = JSCompiler_temp.replace( + uppercasePattern, + "-$1" ) - JSCompiler_temp = styleNameCache[JSCompiler_temp]; - else { - var result = JSCompiler_temp.replace( - uppercasePattern, - "-$1" - ) - .toLowerCase() - .replace(msPattern, "-ms-"); - JSCompiler_temp = styleNameCache[ - JSCompiler_temp - ] = result; - } - serialized += delimiter + JSCompiler_temp + ":"; - delimiter = j; - isCustomProperty = - null == styleValue || - "boolean" === typeof styleValue || - "" === styleValue - ? "" - : isCustomProperty || - "number" !== typeof styleValue || - 0 === styleValue || - (isUnitlessNumber.hasOwnProperty(delimiter) && - isUnitlessNumber[delimiter]) - ? ("" + styleValue).trim() - : styleValue + "px"; - serialized += isCustomProperty; - delimiter = ";"; + .toLowerCase() + .replace(msPattern, "-ms-"); + JSCompiler_temp = styleNameCache[JSCompiler_temp] = result; } + serialized += delimiter + JSCompiler_temp + ":"; + delimiter = j; + isCustomProperty = + null == styleValue || + "boolean" === typeof styleValue || + "" === styleValue + ? "" + : isCustomProperty || + "number" !== typeof styleValue || + 0 === styleValue || + (isUnitlessNumber.hasOwnProperty(delimiter) && + isUnitlessNumber[delimiter]) + ? ("" + styleValue).trim() + : styleValue + "px"; + serialized += isCustomProperty; + delimiter = ";"; } - propValue = serialized || null; - } - j = null; - b: if ( - ((isCustomProperty = tag), - (styleValue = initialValue), - -1 === isCustomProperty.indexOf("-")) - ) - isCustomProperty = "string" === typeof styleValue.is; - else - switch (isCustomProperty) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - isCustomProperty = !1; - break b; - default: - isCustomProperty = !0; } - isCustomProperty - ? RESERVED_PROPS.hasOwnProperty(out) || - ((j = out), - (j = - isAttributeNameSafe(j) && null != propValue - ? j + '="' + (escapeTextForBrowser(propValue) + '"') - : "")) - : (j = createMarkupForProperty(out, propValue)); - j && (value += " " + j); + propValue = serialized || null; } + j = null; + b: if ( + ((isCustomProperty = tag), + (styleValue = initialValue), + -1 === isCustomProperty.indexOf("-")) + ) + isCustomProperty = "string" === typeof styleValue.is; + else + switch (isCustomProperty) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + isCustomProperty = !1; + break b; + default: + isCustomProperty = !0; + } + isCustomProperty + ? RESERVED_PROPS.hasOwnProperty(out) || + ((j = out), + (j = + isAttributeNameSafe(j) && null != propValue + ? j + '="' + (escapeTextForBrowser(propValue) + '"') + : "")) + : (j = createMarkupForProperty(out, propValue)); + j && (value += " " + j); } - textareaChildren || (optionChildren && (value += ' data-reactroot=""')); - var out = value; - initialValue = ""; - omittedCloseTags.hasOwnProperty(tag) - ? (out += "/>") - : ((out += ">"), (initialValue = "")); - a: { - textareaChildren = props.dangerouslySetInnerHTML; - if (null != textareaChildren) { - if (null != textareaChildren.__html) { - textareaChildren = textareaChildren.__html; - break a; - } - } else if ( - ((textareaChildren = props.children), - "string" === typeof textareaChildren || - "number" === typeof textareaChildren) - ) { - textareaChildren = escapeTextForBrowser(textareaChildren); + } + textareaChildren || (optionChildren && (value += ' data-reactroot=""')); + var out = value; + initialValue = ""; + omittedCloseTags.hasOwnProperty(tag) + ? (out += "/>") + : ((out += ">"), (initialValue = "")); + a: { + textareaChildren = props.dangerouslySetInnerHTML; + if (null != textareaChildren) { + if (null != textareaChildren.__html) { + textareaChildren = textareaChildren.__html; break a; } - textareaChildren = null; + } else if ( + ((textareaChildren = props.children), + "string" === typeof textareaChildren || + "number" === typeof textareaChildren) + ) { + textareaChildren = escapeTextForBrowser(textareaChildren); + break a; } - null != textareaChildren - ? ((props = []), - newlineEatingTags.hasOwnProperty(tag) && - "\n" === textareaChildren.charAt(0) && - (out += "\n"), - (out += textareaChildren)) - : (props = toArray(props.children)); - element = element.type; - parentNamespace = - null == parentNamespace || - "http://www.w3.org/1999/xhtml" === parentNamespace - ? getIntrinsicNamespace(element) - : "http://www.w3.org/2000/svg" === parentNamespace && - "foreignObject" === element - ? "http://www.w3.org/1999/xhtml" - : parentNamespace; - this.stack.push({ - domNamespace: parentNamespace, - type: tag, - children: props, - childIndex: 0, - context: context, - footer: initialValue - }); - this.previousWasTextNode = !1; - return out; - }; - return ReactDOMServerRenderer; - })(), - ReactDOMServerBrowser$1 = { - __proto__: null, - default: { - renderToString: function(element) { - element = new ReactDOMServerRenderer(element, !1); - try { - return element.read(Infinity); - } finally { - element.destroy(); - } - }, - renderToStaticMarkup: function(element) { - element = new ReactDOMServerRenderer(element, !0); - try { - return element.read(Infinity); - } finally { - element.destroy(); - } - }, - renderToNodeStream: function() { - throw Error(formatProdErrorMessage(207)); - }, - renderToStaticNodeStream: function() { - throw Error(formatProdErrorMessage(208)); - }, - version: "16.12.0" + textareaChildren = null; } - }, - ReactDOMServer = - (ReactDOMServerBrowser$1 && ReactDOMServerBrowser$1["default"]) || - ReactDOMServerBrowser$1; -module.exports = ReactDOMServer.default || ReactDOMServer; + null != textareaChildren + ? ((props = []), + newlineEatingTags.hasOwnProperty(tag) && + "\n" === textareaChildren.charAt(0) && + (out += "\n"), + (out += textareaChildren)) + : (props = toArray(props.children)); + element = element.type; + parentNamespace = + null == parentNamespace || + "http://www.w3.org/1999/xhtml" === parentNamespace + ? getIntrinsicNamespace(element) + : "http://www.w3.org/2000/svg" === parentNamespace && + "foreignObject" === element + ? "http://www.w3.org/1999/xhtml" + : parentNamespace; + this.stack.push({ + domNamespace: parentNamespace, + type: tag, + children: props, + childIndex: 0, + context: context, + footer: initialValue + }); + this.previousWasTextNode = !1; + return out; + }; + return ReactDOMServerRenderer; +})(); +exports.renderToNodeStream = function() { + throw Error(formatProdErrorMessage(207)); +}; +exports.renderToStaticMarkup = function(element) { + element = new ReactDOMServerRenderer(element, !0); + try { + return element.read(Infinity); + } finally { + element.destroy(); + } +}; +exports.renderToStaticNodeStream = function() { + throw Error(formatProdErrorMessage(208)); +}; +exports.renderToString = function(element) { + element = new ReactDOMServerRenderer(element, !1); + try { + return element.read(Infinity); + } finally { + element.destroy(); + } +}; +exports.version = "16.12.0"; diff --git a/build/facebook-www/ReactShallowRenderer-dev.js b/build/facebook-www/ReactShallowRenderer-dev.js index 1eb1e85..fd430f5 100644 --- a/build/facebook-www/ReactShallowRenderer-dev.js +++ b/build/facebook-www/ReactShallowRenderer-dev.js @@ -1187,25 +1187,9 @@ function getMaskedContext(contextTypes, unmaskedContext) { } return context; -} - -var ReactShallowRenderer$1 = /*#__PURE__*/ Object.freeze({ - __proto__: null, - default: ReactShallowRenderer -}); - -function getCjsExportFromNamespace(n) { - return (n && n["default"]) || n; -} - -var ReactShallowRenderer$2 = getCjsExportFromNamespace(ReactShallowRenderer$1); - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest. - -var shallow = ReactShallowRenderer$2.default || ReactShallowRenderer$2; +} // This should probably be a default export and a named export. -module.exports = shallow; +module.exports = ReactShallowRenderer; })(); } diff --git a/build/facebook-www/ReactTestRenderer-dev.js b/build/facebook-www/ReactTestRenderer-dev.js index 297c319..a70f3e8 100644 --- a/build/facebook-www/ReactTestRenderer-dev.js +++ b/build/facebook-www/ReactTestRenderer-dev.js @@ -18429,150 +18429,144 @@ function propsMatch(props, filter) { return true; } -var ReactTestRendererFiber = { - _Scheduler: Scheduler, - create: function(element, options) { - var createNodeMock = defaultTestOptions.createNodeMock; - var isConcurrent = false; +function create(element, options) { + var createNodeMock = defaultTestOptions.createNodeMock; + var isConcurrent = false; - if (typeof options === "object" && options !== null) { - if (typeof options.createNodeMock === "function") { - createNodeMock = options.createNodeMock; - } + if (typeof options === "object" && options !== null) { + if (typeof options.createNodeMock === "function") { + createNodeMock = options.createNodeMock; + } - if (options.unstable_isConcurrent === true) { - isConcurrent = true; - } + if (options.unstable_isConcurrent === true) { + isConcurrent = true; } + } - var container = { - children: [], - createNodeMock: createNodeMock, - tag: "CONTAINER" - }; - var root = createContainer( - container, - isConcurrent ? ConcurrentRoot : LegacyRoot, - false, - null - ); + var container = { + children: [], + createNodeMock: createNodeMock, + tag: "CONTAINER" + }; + var root = createContainer( + container, + isConcurrent ? ConcurrentRoot : LegacyRoot, + false, + null + ); - if (!(root != null)) { - { - throw Error("something went wrong"); - } + if (!(root != null)) { + { + throw Error("something went wrong"); } + } - updateContainer(element, root, null, null); - var entry = { - _Scheduler: Scheduler, - root: undefined, - // makes flow happy - // we define a 'getter' for 'root' below using 'Object.defineProperty' - toJSON: function() { - if (root == null || root.current == null || container == null) { - return null; - } + updateContainer(element, root, null, null); + var entry = { + _Scheduler: Scheduler, + root: undefined, + // makes flow happy + // we define a 'getter' for 'root' below using 'Object.defineProperty' + toJSON: function() { + if (root == null || root.current == null || container == null) { + return null; + } - if (container.children.length === 0) { - return null; - } + if (container.children.length === 0) { + return null; + } - if (container.children.length === 1) { - return toJSON(container.children[0]); - } + if (container.children.length === 1) { + return toJSON(container.children[0]); + } - if ( - container.children.length === 2 && - container.children[0].isHidden === true && - container.children[1].isHidden === false - ) { - // Omit timed out children from output entirely, including the fact that we - // temporarily wrap fallback and timed out children in an array. - return toJSON(container.children[1]); - } + if ( + container.children.length === 2 && + container.children[0].isHidden === true && + container.children[1].isHidden === false + ) { + // Omit timed out children from output entirely, including the fact that we + // temporarily wrap fallback and timed out children in an array. + return toJSON(container.children[1]); + } - var renderedChildren = null; + var renderedChildren = null; - if (container.children && container.children.length) { - for (var i = 0; i < container.children.length; i++) { - var renderedChild = toJSON(container.children[i]); + if (container.children && container.children.length) { + for (var i = 0; i < container.children.length; i++) { + var renderedChild = toJSON(container.children[i]); - if (renderedChild !== null) { - if (renderedChildren === null) { - renderedChildren = [renderedChild]; - } else { - renderedChildren.push(renderedChild); - } + if (renderedChild !== null) { + if (renderedChildren === null) { + renderedChildren = [renderedChild]; + } else { + renderedChildren.push(renderedChild); } } } + } - return renderedChildren; - }, - toTree: function() { - if (root == null || root.current == null) { - return null; - } + return renderedChildren; + }, + toTree: function() { + if (root == null || root.current == null) { + return null; + } - return toTree(root.current); - }, - update: function(newElement) { - if (root == null || root.current == null) { - return; - } + return toTree(root.current); + }, + update: function(newElement) { + if (root == null || root.current == null) { + return; + } - updateContainer(newElement, root, null, null); - }, - unmount: function() { - if (root == null || root.current == null) { - return; - } + updateContainer(newElement, root, null, null); + }, + unmount: function() { + if (root == null || root.current == null) { + return; + } - updateContainer(null, root, null, null); - container = null; - root = null; - }, - getInstance: function() { - if (root == null || root.current == null) { - return null; - } + updateContainer(null, root, null, null); + container = null; + root = null; + }, + getInstance: function() { + if (root == null || root.current == null) { + return null; + } - return getPublicRootInstance(root); - }, - unstable_flushSync: function(fn) { - return flushSync(fn); + return getPublicRootInstance(root); + }, + unstable_flushSync: function(fn) { + return flushSync(fn); + } + }; + Object.defineProperty(entry, "root", { + configurable: true, + enumerable: true, + get: function() { + if (root === null) { + throw new Error("Can't access .root on unmounted test renderer"); } - }; - Object.defineProperty(entry, "root", { - configurable: true, - enumerable: true, - get: function() { - if (root === null) { - throw new Error("Can't access .root on unmounted test renderer"); - } - var children = getChildren(root.current); + var children = getChildren(root.current); - if (children.length === 0) { - throw new Error("Can't access .root on unmounted test renderer"); - } else if (children.length === 1) { - // Normally, we skip the root and just give you the child. - return children[0]; - } else { - // However, we give you the root if there's more than one root child. - // We could make this the behavior for all cases but it would be a breaking change. - return wrapFiber(root.current); - } + if (children.length === 0) { + throw new Error("Can't access .root on unmounted test renderer"); + } else if (children.length === 1) { + // Normally, we skip the root and just give you the child. + return children[0]; + } else { + // However, we give you the root if there's more than one root child. + // We could make this the behavior for all cases but it would be a breaking change. + return wrapFiber(root.current); } - }); - return entry; - }, + } + }); + return entry; +} - /* eslint-disable-next-line camelcase */ - unstable_batchedUpdates: batchedUpdates, - act: act -}; var fiberToWrapper = new WeakMap(); function wrapFiber(fiber) { @@ -18599,23 +18593,10 @@ injectIntoDevTools({ rendererPackageName: "react-test-renderer" }); -var ReactTestRenderer = /*#__PURE__*/ Object.freeze({ - __proto__: null, - default: ReactTestRendererFiber -}); - -function getCjsExportFromNamespace(n) { - return (n && n["default"]) || n; -} - -var ReactTestRenderer$1 = getCjsExportFromNamespace(ReactTestRenderer); - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest. - -var reactTestRenderer = ReactTestRenderer$1.default || ReactTestRenderer$1; - -module.exports = reactTestRenderer; +exports._Scheduler = Scheduler; +exports.act = act; +exports.create = create; +exports.unstable_batchedUpdates = batchedUpdates; })(); } diff --git a/build/facebook-www/ReactTestUtils-dev.js b/build/facebook-www/ReactTestUtils-dev.js index 7dca33d..fad2499 100644 --- a/build/facebook-www/ReactTestUtils-dev.js +++ b/build/facebook-www/ReactTestUtils-dev.js @@ -1285,253 +1285,253 @@ function validateClassInstance(inst, methodName) { * @lends ReactTestUtils */ -var ReactTestUtils = { - renderIntoDocument: function(element) { - var div = document.createElement("div"); // None of our tests actually require attaching the container to the - // DOM, and doing so creates a mess that we rely on test isolation to - // clean up, so we're going to stop honoring the name of this method - // (and probably rename it eventually) if no problems arise. - // document.documentElement.appendChild(div); - - return ReactDOM.render(element, div); - }, - isElement: function(element) { - return React.isValidElement(element); - }, - isElementOfType: function(inst, convenienceConstructor) { - return React.isValidElement(inst) && inst.type === convenienceConstructor; - }, - isDOMComponent: function(inst) { - return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); - }, - isDOMComponentElement: function(inst) { - return !!(inst && React.isValidElement(inst) && !!inst.tagName); - }, - isCompositeComponent: function(inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - // Accessing inst.setState warns; just return false as that'll be what - // this returns when we have DOM nodes as refs directly - return false; - } +function renderIntoDocument(element) { + var div = document.createElement("div"); // None of our tests actually require attaching the container to the + // DOM, and doing so creates a mess that we rely on test isolation to + // clean up, so we're going to stop honoring the name of this method + // (and probably rename it eventually) if no problems arise. + // document.documentElement.appendChild(div); + + return ReactDOM.render(element, div); +} - return ( - inst != null && - typeof inst.render === "function" && - typeof inst.setState === "function" - ); - }, - isCompositeComponentWithType: function(inst, type) { - if (!ReactTestUtils.isCompositeComponent(inst)) { - return false; - } +function isElement(element) { + return React.isValidElement(element); +} - var internalInstance = get(inst); - var constructor = internalInstance.type; - return constructor === type; - }, - findAllInRenderedTree: function(inst, test) { - validateClassInstance(inst, "findAllInRenderedTree"); +function isElementOfType(inst, convenienceConstructor) { + return React.isValidElement(inst) && inst.type === convenienceConstructor; +} - if (!inst) { - return []; - } +function isDOMComponent(inst) { + return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); +} - var internalInstance = get(inst); - return findAllInRenderedFiberTreeInternal(internalInstance, test); - }, +function isDOMComponentElement(inst) { + return !!(inst && React.isValidElement(inst) && !!inst.tagName); +} - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the class name matching `className`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithClass: function(root, classNames) { - validateClassInstance(root, "scryRenderedDOMComponentsWithClass"); - return ReactTestUtils.findAllInRenderedTree(root, function(inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - var className = inst.className; - - if (typeof className !== "string") { - // SVG, probably. - className = inst.getAttribute("class") || ""; - } +function isCompositeComponent(inst) { + if (isDOMComponent(inst)) { + // Accessing inst.setState warns; just return false as that'll be what + // this returns when we have DOM nodes as refs directly + return false; + } - var classList = className.split(/\s+/); + return ( + inst != null && + typeof inst.render === "function" && + typeof inst.setState === "function" + ); +} - if (!Array.isArray(classNames)) { - if (!(classNames !== undefined)) { - { - throw Error( - "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." - ); - } - } +function isCompositeComponentWithType(inst, type) { + if (!isCompositeComponent(inst)) { + return false; + } - classNames = classNames.split(/\s+/); - } + var internalInstance = get(inst); + var constructor = internalInstance.type; + return constructor === type; +} + +function findAllInRenderedTree(inst, test) { + validateClassInstance(inst, "findAllInRenderedTree"); + + if (!inst) { + return []; + } - return classNames.every(function(name) { - return classList.indexOf(name) !== -1; - }); + var internalInstance = get(inst); + return findAllInRenderedFiberTreeInternal(internalInstance, test); +} +/** + * Finds all instance of components in the rendered tree that are DOM + * components with the class name matching `className`. + * @return {array} an array of all the matches. + */ + +function scryRenderedDOMComponentsWithClass(root, classNames) { + validateClassInstance(root, "scryRenderedDOMComponentsWithClass"); + return findAllInRenderedTree(root, function(inst) { + if (isDOMComponent(inst)) { + var className = inst.className; + + if (typeof className !== "string") { + // SVG, probably. + className = inst.getAttribute("class") || ""; } - return false; - }); - }, + var classList = className.split(/\s+/); - /** - * Like scryRenderedDOMComponentsWithClass but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithClass: function(root, className) { - validateClassInstance(root, "findRenderedDOMComponentWithClass"); - var all = ReactTestUtils.scryRenderedDOMComponentsWithClass( - root, - className - ); + if (!Array.isArray(classNames)) { + if (!(classNames !== undefined)) { + { + throw Error( + "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." + ); + } + } - if (all.length !== 1) { - throw new Error( - "Did not find exactly one match (found: " + - all.length + - ") " + - "for class:" + - className - ); + classNames = classNames.split(/\s+/); + } + + return classNames.every(function(name) { + return classList.indexOf(name) !== -1; + }); } - return all[0]; - }, + return false; + }); +} +/** + * Like scryRenderedDOMComponentsWithClass but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the tag name matching `tagName`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithTag: function(root, tagName) { - validateClassInstance(root, "scryRenderedDOMComponentsWithTag"); - return ReactTestUtils.findAllInRenderedTree(root, function(inst) { - return ( - ReactTestUtils.isDOMComponent(inst) && - inst.tagName.toUpperCase() === tagName.toUpperCase() - ); - }); - }, +function findRenderedDOMComponentWithClass(root, className) { + validateClassInstance(root, "findRenderedDOMComponentWithClass"); + var all = scryRenderedDOMComponentsWithClass(root, className); + + if (all.length !== 1) { + throw new Error( + "Did not find exactly one match (found: " + + all.length + + ") " + + "for class:" + + className + ); + } - /** - * Like scryRenderedDOMComponentsWithTag but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithTag: function(root, tagName) { - validateClassInstance(root, "findRenderedDOMComponentWithTag"); - var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); - - if (all.length !== 1) { - throw new Error( - "Did not find exactly one match (found: " + - all.length + - ") " + - "for tag:" + - tagName - ); - } + return all[0]; +} +/** + * Finds all instance of components in the rendered tree that are DOM + * components with the tag name matching `tagName`. + * @return {array} an array of all the matches. + */ - return all[0]; - }, +function scryRenderedDOMComponentsWithTag(root, tagName) { + validateClassInstance(root, "scryRenderedDOMComponentsWithTag"); + return findAllInRenderedTree(root, function(inst) { + return ( + isDOMComponent(inst) && + inst.tagName.toUpperCase() === tagName.toUpperCase() + ); + }); +} +/** + * Like scryRenderedDOMComponentsWithTag but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - /** - * Finds all instances of components with type equal to `componentType`. - * @return {array} an array of all the matches. - */ - scryRenderedComponentsWithType: function(root, componentType) { - validateClassInstance(root, "scryRenderedComponentsWithType"); - return ReactTestUtils.findAllInRenderedTree(root, function(inst) { - return ReactTestUtils.isCompositeComponentWithType(inst, componentType); - }); - }, +function findRenderedDOMComponentWithTag(root, tagName) { + validateClassInstance(root, "findRenderedDOMComponentWithTag"); + var all = scryRenderedDOMComponentsWithTag(root, tagName); + + if (all.length !== 1) { + throw new Error( + "Did not find exactly one match (found: " + + all.length + + ") " + + "for tag:" + + tagName + ); + } - /** - * Same as `scryRenderedComponentsWithType` but expects there to be one result - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactComponent} The one match. - */ - findRenderedComponentWithType: function(root, componentType) { - validateClassInstance(root, "findRenderedComponentWithType"); - var all = ReactTestUtils.scryRenderedComponentsWithType( - root, - componentType + return all[0]; +} +/** + * Finds all instances of components with type equal to `componentType`. + * @return {array} an array of all the matches. + */ + +function scryRenderedComponentsWithType(root, componentType) { + validateClassInstance(root, "scryRenderedComponentsWithType"); + return findAllInRenderedTree(root, function(inst) { + return isCompositeComponentWithType(inst, componentType); + }); +} +/** + * Same as `scryRenderedComponentsWithType` but expects there to be one result + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactComponent} The one match. + */ + +function findRenderedComponentWithType(root, componentType) { + validateClassInstance(root, "findRenderedComponentWithType"); + var all = scryRenderedComponentsWithType(root, componentType); + + if (all.length !== 1) { + throw new Error( + "Did not find exactly one match (found: " + + all.length + + ") " + + "for componentType:" + + componentType ); + } + + return all[0]; +} +/** + * Pass a mocked component module to this method to augment it with + * useful methods that allow it to be used as a dummy React component. + * Instead of rendering as usual, the component will become a simple + *
containing any provided children. + * + * @param {object} module the mock function object exported from a + * module that defines the component to be mocked + * @param {?string} mockTagName optional dummy root tag name to return + * from render method (overrides + * module.mockTagName if provided) + * @return {object} the ReactTestUtils object (for chaining) + */ - if (all.length !== 1) { - throw new Error( - "Did not find exactly one match (found: " + - all.length + - ") " + - "for componentType:" + - componentType +function mockComponent(module, mockTagName) { + { + if (!hasWarnedAboutDeprecatedMockComponent) { + hasWarnedAboutDeprecatedMockComponent = true; + + warn( + "ReactTestUtils.mockComponent() is deprecated. " + + "Use shallow rendering or jest.mock() instead.\n\n" + + "See https://fb.me/test-utils-mock-component for more information." ); } + } - return all[0]; - }, - - /** - * Pass a mocked component module to this method to augment it with - * useful methods that allow it to be used as a dummy React component. - * Instead of rendering as usual, the component will become a simple - *
containing any provided children. - * - * @param {object} module the mock function object exported from a - * module that defines the component to be mocked - * @param {?string} mockTagName optional dummy root tag name to return - * from render method (overrides - * module.mockTagName if provided) - * @return {object} the ReactTestUtils object (for chaining) - */ - mockComponent: function(module, mockTagName) { - { - if (!hasWarnedAboutDeprecatedMockComponent) { - hasWarnedAboutDeprecatedMockComponent = true; + mockTagName = mockTagName || module.mockTagName || "div"; + module.prototype.render.mockImplementation(function() { + return React.createElement(mockTagName, null, this.props.children); + }); + return this; +} - warn( - "ReactTestUtils.mockComponent() is deprecated. " + - "Use shallow rendering or jest.mock() instead.\n\n" + - "See https://fb.me/test-utils-mock-component for more information." - ); +function nativeTouchData(x, y) { + return { + touches: [ + { + pageX: x, + pageY: y } - } + ] + }; +} - mockTagName = mockTagName || module.mockTagName || "div"; - module.prototype.render.mockImplementation(function() { - return React.createElement(mockTagName, null, this.props.children); - }); - return this; - }, - nativeTouchData: function(x, y) { - return { - touches: [ - { - pageX: x, - pageY: y - } - ] - }; - }, - Simulate: null, - SimulateNative: {}, - act: act -}; +var Simulate = {}; +var SimulateNative = {}; /** * Exports: * - * - `ReactTestUtils.Simulate.click(Element)` - * - `ReactTestUtils.Simulate.mouseMove(Element)` - * - `ReactTestUtils.Simulate.change(Element)` + * - `Simulate.click(Element)` + * - `Simulate.mouseMove(Element)` + * - `Simulate.change(Element)` * - ... (All keys from event plugin `eventTypes` objects) */ @@ -1545,7 +1545,7 @@ function makeSimulator(eventType) { } } - if (!!ReactTestUtils.isCompositeComponent(domNode)) { + if (!!isCompositeComponent(domNode)) { { throw Error( "TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead." @@ -1588,7 +1588,6 @@ function makeSimulator(eventType) { } function buildSimulators() { - ReactTestUtils.Simulate = {}; var eventType; for (eventType in eventNameDispatchConfigs$1) { @@ -1596,7 +1595,7 @@ function buildSimulators() { * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?object} eventData Fake event data to use in SyntheticEvent. */ - ReactTestUtils.Simulate[eventType] = makeSimulator(eventType); + Simulate[eventType] = makeSimulator(eventType); } } @@ -1604,16 +1603,16 @@ buildSimulators(); /** * Exports: * - * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)` + * - `SimulateNative.click(Element/ReactDOMComponent)` + * - `SimulateNative.mouseMove(Element/ReactDOMComponent)` + * - `SimulateNative.mouseIn/ReactDOMComponent)` + * - `SimulateNative.mouseOut(Element/ReactDOMComponent)` * - ... (All keys from `BrowserEventConstants.topLevelTypes`) * * Note: Top level event types are a subset of the entire set of handler types * (which include a broader set of "synthetic" events). For example, onDragDone * is a synthetic event. Except when testing an event plugin or React's event - * handling code specifically, you probably want to use ReactTestUtils.Simulate + * handling code specifically, you probably want to use Simulate * to dispatch synthetic events. */ @@ -1622,7 +1621,7 @@ function makeNativeSimulator(eventType, topLevelType) { var fakeNativeEvent = new Event(eventType); Object.assign(fakeNativeEvent, nativeEventData); - if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { + if (isDOMComponent(domComponentOrNode)) { simulateNativeEventOnDOMComponent( topLevelType, domComponentOrNode, @@ -1717,29 +1716,28 @@ function makeNativeSimulator(eventType, topLevelType) { * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent. */ - ReactTestUtils.SimulateNative[eventType] = makeNativeSimulator( - eventType, - topLevelType - ); -}); - -var ReactTestUtils$1 = /*#__PURE__*/ Object.freeze({ - __proto__: null, - default: ReactTestUtils + SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); }); -function getCjsExportFromNamespace(n) { - return (n && n["default"]) || n; -} - -var ReactTestUtils$2 = getCjsExportFromNamespace(ReactTestUtils$1); - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest. - -var testUtils = ReactTestUtils$2.default || ReactTestUtils$2; - -module.exports = testUtils; +exports.Simulate = Simulate; +exports.SimulateNative = SimulateNative; +exports.act = act; +exports.findAllInRenderedTree = findAllInRenderedTree; +exports.findRenderedComponentWithType = findRenderedComponentWithType; +exports.findRenderedDOMComponentWithClass = findRenderedDOMComponentWithClass; +exports.findRenderedDOMComponentWithTag = findRenderedDOMComponentWithTag; +exports.isCompositeComponent = isCompositeComponent; +exports.isCompositeComponentWithType = isCompositeComponentWithType; +exports.isDOMComponent = isDOMComponent; +exports.isDOMComponentElement = isDOMComponentElement; +exports.isElement = isElement; +exports.isElementOfType = isElementOfType; +exports.mockComponent = mockComponent; +exports.nativeTouchData = nativeTouchData; +exports.renderIntoDocument = renderIntoDocument; +exports.scryRenderedComponentsWithType = scryRenderedComponentsWithType; +exports.scryRenderedDOMComponentsWithClass = scryRenderedDOMComponentsWithClass; +exports.scryRenderedDOMComponentsWithTag = scryRenderedDOMComponentsWithTag; })(); } diff --git a/build/node_modules/react-dom/cjs/react-dom-server.browser.development.js b/build/node_modules/react-dom/cjs/react-dom-server.browser.development.js index 072f93b..81988a6 100644 --- a/build/node_modules/react-dom/cjs/react-dom-server.browser.development.js +++ b/build/node_modules/react-dom/cjs/react-dom-server.browser.development.js @@ -4069,34 +4069,12 @@ function renderToStaticNodeStream() { throw Error( "ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead." ); } } -} // Note: when changing this, also consider https://github.com/facebook/react/issues/11526 - - -var ReactDOMServerBrowser = { - renderToString: renderToString, - renderToStaticMarkup: renderToStaticMarkup, - renderToNodeStream: renderToNodeStream, - renderToStaticNodeStream: renderToStaticNodeStream, - version: ReactVersion -}; - -var ReactDOMServerBrowser$1 = /*#__PURE__*/Object.freeze({ - __proto__: null, - 'default': ReactDOMServerBrowser -}); - -function getCjsExportFromNamespace (n) { - return n && n['default'] || n; } -var ReactDOMServer = getCjsExportFromNamespace(ReactDOMServerBrowser$1); - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest - - -var server_browser = ReactDOMServer.default || ReactDOMServer; - -module.exports = server_browser; +exports.renderToNodeStream = renderToNodeStream; +exports.renderToStaticMarkup = renderToStaticMarkup; +exports.renderToStaticNodeStream = renderToStaticNodeStream; +exports.renderToString = renderToString; +exports.version = ReactVersion; })(); } diff --git a/build/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js b/build/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js index b25c0d9..a839863 100644 --- a/build/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +++ b/build/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js @@ -51,5 +51,5 @@ e.length))throw Error(q(93));e=e[0]}h=""+e}null==h&&(h="")}d=k({},d,{value:void h.children||null!=h.dangerouslySetInnerHTML))throw Error(q(137,c,""));if(null!=h.dangerouslySetInnerHTML){if(null!=h.children)throw Error(q(60));if(!("object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML))throw Error(q(61));}if(null!=h.style&&"object"!==typeof h.style)throw Error(q(62,""));}h=d;e=this.makeStaticMarkup;I=1===this.stack.length;G="<"+a.type;for(z in h)if(Wa.call(h,z)){var m=h[z];if(null!=m){if("style"===z){n=void 0;var x="",r="";for(n in m)if(m.hasOwnProperty(n)){var y= 0===n.indexOf("--"),p=m[n];if(null!=p){if(y)var A=n;else if(A=n,Ua.hasOwnProperty(A))A=Ua[A];else{var U=A.replace(Oa,"-$1").toLowerCase().replace(Pa,"-ms-");A=Ua[A]=U}x+=r+A+":";r=n;y=null==p||"boolean"===typeof p||""===p?"":y||"number"!==typeof p||0===p||Y.hasOwnProperty(r)&&Y[r]?(""+p).trim():p+"px";x+=y;r=";"}}m=x||null}n=null;b:if(y=c,p=h,-1===y.indexOf("-"))y="string"===typeof p.is;else switch(y){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":y= !1;break b;default:y=!0}y?Xa.hasOwnProperty(z)||(n=z,n=ua(n)&&null!=m?n+'="'+(N(m)+'"'):""):n=ya(z,m);n&&(G+=" "+n)}}e||I&&(G+=' data-reactroot=""');var z=G;h="";La.hasOwnProperty(c)?z+="/>":(z+=">",h="");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=N(e);break a}e=null}null!=e?(d=[],Ra.hasOwnProperty(c)&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children);a=a.type;f=null==f||"http://www.w3.org/1999/xhtml"=== -f?Ka(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:h});this.previousWasTextNode=!1;return z};return a}(),ab={__proto__:null,"default":{renderToString:function(a){a=new $a(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new $a(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw Error(q(207));}, -renderToStaticNodeStream:function(){throw Error(q(208));},version:"16.12.0"}},bb=ab&&ab["default"]||ab;module.exports=bb.default||bb; +f?Ka(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:h});this.previousWasTextNode=!1;return z};return a}();exports.renderToNodeStream=function(){throw Error(q(207));};exports.renderToStaticMarkup=function(a){a=new $a(a,!0);try{return a.read(Infinity)}finally{a.destroy()}};exports.renderToStaticNodeStream=function(){throw Error(q(208));}; +exports.renderToString=function(a){a=new $a(a,!1);try{return a.read(Infinity)}finally{a.destroy()}};exports.version="16.12.0"; diff --git a/build/node_modules/react-dom/cjs/react-dom-server.node.development.js b/build/node_modules/react-dom/cjs/react-dom-server.node.development.js index 9a66500..20284a6 100644 --- a/build/node_modules/react-dom/cjs/react-dom-server.node.development.js +++ b/build/node_modules/react-dom/cjs/react-dom-server.node.development.js @@ -4114,20 +4114,10 @@ function renderToStaticNodeStream(element) { return new ReactMarkupReadableStream(element, true); } -var ReactDOMServer = { - renderToString: renderToString, - renderToStaticMarkup: renderToStaticMarkup, - renderToNodeStream: renderToNodeStream, - renderToStaticNodeStream: renderToStaticNodeStream, - version: ReactVersion -}; - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest - - -var server_node = ReactDOMServer.default || ReactDOMServer; - -module.exports = server_node; +exports.renderToNodeStream = renderToNodeStream; +exports.renderToStaticMarkup = renderToStaticMarkup; +exports.renderToStaticNodeStream = renderToStaticNodeStream; +exports.renderToString = renderToString; +exports.version = ReactVersion; })(); } diff --git a/build/node_modules/react-dom/cjs/react-dom-server.node.production.min.js b/build/node_modules/react-dom/cjs/react-dom-server.node.production.min.js index 6a8666a..63d6e39 100644 --- a/build/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +++ b/build/node_modules/react-dom/cjs/react-dom-server.node.production.min.js @@ -52,5 +52,5 @@ g.children||null!=g.dangerouslySetInnerHTML))throw Error(r(137,c,""));if(null!=g 0===m.indexOf("--"),q=l[m];if(null!=q){if(y)var A=m;else if(A=m,Va.hasOwnProperty(A))A=Va[A];else{var U=A.replace(Pa,"-$1").toLowerCase().replace(Qa,"-ms-");A=Va[A]=U}x+=t+A+":";t=m;y=null==q||"boolean"===typeof q||""===q?"":y||"number"!==typeof q||0===q||Y.hasOwnProperty(t)&&Y[t]?(""+q).trim():q+"px";x+=y;t=";"}}l=x||null}m=null;b:if(y=c,q=g,-1===y.indexOf("-"))y="string"===typeof q.is;else switch(y){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":y= !1;break b;default:y=!0}y?Ya.hasOwnProperty(z)||(m=z,m=va(m)&&null!=l?m+'="'+(N(l)+'"'):""):m=za(z,l);m&&(G+=" "+m)}}e||I&&(G+=' data-reactroot=""');var z=G;g="";Ma.hasOwnProperty(c)?z+="/>":(z+=">",g="");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=N(e);break a}e=null}null!=e?(d=[],Sa.hasOwnProperty(c)&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children);a=a.type;f=null==f||"http://www.w3.org/1999/xhtml"=== f?La(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:g});this.previousWasTextNode=!1;return z};return a}();function bb(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b} -var cb=function(a){function b(b,c){var d=a.call(this,{})||this;d.partialRenderer=new ab(b,c);return d}bb(b,a);var c=b.prototype;c._destroy=function(a,b){this.partialRenderer.destroy();b(a)};c._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(f){this.destroy(f)}};return b}(aa.Readable),db={__proto__:null,"default":{renderToString:function(a){a=new ab(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new ab(a,!0);try{return a.read(Infinity)}finally{a.destroy()}}, -renderToNodeStream:function(a){return new cb(a,!1)},renderToStaticNodeStream:function(a){return new cb(a,!0)},version:"16.12.0"}},eb=db&&db["default"]||db;module.exports=eb.default||eb; +var cb=function(a){function b(b,c){var d=a.call(this,{})||this;d.partialRenderer=new ab(b,c);return d}bb(b,a);var c=b.prototype;c._destroy=function(a,b){this.partialRenderer.destroy();b(a)};c._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(f){this.destroy(f)}};return b}(aa.Readable);exports.renderToNodeStream=function(a){return new cb(a,!1)};exports.renderToStaticMarkup=function(a){a=new ab(a,!0);try{return a.read(Infinity)}finally{a.destroy()}}; +exports.renderToStaticNodeStream=function(a){return new cb(a,!0)};exports.renderToString=function(a){a=new ab(a,!1);try{return a.read(Infinity)}finally{a.destroy()}};exports.version="16.12.0"; diff --git a/build/node_modules/react-dom/cjs/react-dom-test-utils.development.js b/build/node_modules/react-dom/cjs/react-dom-test-utils.development.js index 82dae93..f8e6c94 100644 --- a/build/node_modules/react-dom/cjs/react-dom-test-utils.development.js +++ b/build/node_modules/react-dom/cjs/react-dom-test-utils.development.js @@ -1158,214 +1158,227 @@ function validateClassInstance(inst, methodName) { */ -var ReactTestUtils = { - renderIntoDocument: function (element) { - var div = document.createElement('div'); // None of our tests actually require attaching the container to the - // DOM, and doing so creates a mess that we rely on test isolation to - // clean up, so we're going to stop honoring the name of this method - // (and probably rename it eventually) if no problems arise. - // document.documentElement.appendChild(div); - - return ReactDOM.render(element, div); - }, - isElement: function (element) { - return React.isValidElement(element); - }, - isElementOfType: function (inst, convenienceConstructor) { - return React.isValidElement(inst) && inst.type === convenienceConstructor; - }, - isDOMComponent: function (inst) { - return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); - }, - isDOMComponentElement: function (inst) { - return !!(inst && React.isValidElement(inst) && !!inst.tagName); - }, - isCompositeComponent: function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - // Accessing inst.setState warns; just return false as that'll be what - // this returns when we have DOM nodes as refs directly - return false; - } +function renderIntoDocument(element) { + var div = document.createElement('div'); // None of our tests actually require attaching the container to the + // DOM, and doing so creates a mess that we rely on test isolation to + // clean up, so we're going to stop honoring the name of this method + // (and probably rename it eventually) if no problems arise. + // document.documentElement.appendChild(div); + + return ReactDOM.render(element, div); +} - return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; - }, - isCompositeComponentWithType: function (inst, type) { - if (!ReactTestUtils.isCompositeComponent(inst)) { - return false; - } +function isElement(element) { + return React.isValidElement(element); +} - var internalInstance = get(inst); - var constructor = internalInstance.type; - return constructor === type; - }, - findAllInRenderedTree: function (inst, test) { - validateClassInstance(inst, 'findAllInRenderedTree'); +function isElementOfType(inst, convenienceConstructor) { + return React.isValidElement(inst) && inst.type === convenienceConstructor; +} - if (!inst) { - return []; - } +function isDOMComponent(inst) { + return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); +} - var internalInstance = get(inst); - return findAllInRenderedFiberTreeInternal(internalInstance, test); - }, +function isDOMComponentElement(inst) { + return !!(inst && React.isValidElement(inst) && !!inst.tagName); +} - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the class name matching `className`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithClass: function (root, classNames) { - validateClassInstance(root, 'scryRenderedDOMComponentsWithClass'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - var className = inst.className; - - if (typeof className !== 'string') { - // SVG, probably. - className = inst.getAttribute('class') || ''; - } +function isCompositeComponent(inst) { + if (isDOMComponent(inst)) { + // Accessing inst.setState warns; just return false as that'll be what + // this returns when we have DOM nodes as refs directly + return false; + } - var classList = className.split(/\s+/); + return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; +} - if (!Array.isArray(classNames)) { - if (!(classNames !== undefined)) { - { - throw Error( "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." ); - } - } +function isCompositeComponentWithType(inst, type) { + if (!isCompositeComponent(inst)) { + return false; + } - classNames = classNames.split(/\s+/); - } + var internalInstance = get(inst); + var constructor = internalInstance.type; + return constructor === type; +} - return classNames.every(function (name) { - return classList.indexOf(name) !== -1; - }); +function findAllInRenderedTree(inst, test) { + validateClassInstance(inst, 'findAllInRenderedTree'); + + if (!inst) { + return []; + } + + var internalInstance = get(inst); + return findAllInRenderedFiberTreeInternal(internalInstance, test); +} +/** + * Finds all instance of components in the rendered tree that are DOM + * components with the class name matching `className`. + * @return {array} an array of all the matches. + */ + + +function scryRenderedDOMComponentsWithClass(root, classNames) { + validateClassInstance(root, 'scryRenderedDOMComponentsWithClass'); + return findAllInRenderedTree(root, function (inst) { + if (isDOMComponent(inst)) { + var className = inst.className; + + if (typeof className !== 'string') { + // SVG, probably. + className = inst.getAttribute('class') || ''; } - return false; - }); - }, + var classList = className.split(/\s+/); - /** - * Like scryRenderedDOMComponentsWithClass but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithClass: function (root, className) { - validateClassInstance(root, 'findRenderedDOMComponentWithClass'); - var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className); + if (!Array.isArray(classNames)) { + if (!(classNames !== undefined)) { + { + throw Error( "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." ); + } + } + + classNames = classNames.split(/\s+/); + } - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); + return classNames.every(function (name) { + return classList.indexOf(name) !== -1; + }); } - return all[0]; - }, + return false; + }); +} +/** + * Like scryRenderedDOMComponentsWithClass but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the tag name matching `tagName`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithTag: function (root, tagName) { - validateClassInstance(root, 'scryRenderedDOMComponentsWithTag'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); - }); - }, - /** - * Like scryRenderedDOMComponentsWithTag but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithTag: function (root, tagName) { - validateClassInstance(root, 'findRenderedDOMComponentWithTag'); - var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); +function findRenderedDOMComponentWithClass(root, className) { + validateClassInstance(root, 'findRenderedDOMComponentWithClass'); + var all = scryRenderedDOMComponentsWithClass(root, className); - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); - } + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); + } - return all[0]; - }, + return all[0]; +} +/** + * Finds all instance of components in the rendered tree that are DOM + * components with the tag name matching `tagName`. + * @return {array} an array of all the matches. + */ - /** - * Finds all instances of components with type equal to `componentType`. - * @return {array} an array of all the matches. - */ - scryRenderedComponentsWithType: function (root, componentType) { - validateClassInstance(root, 'scryRenderedComponentsWithType'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isCompositeComponentWithType(inst, componentType); - }); - }, - /** - * Same as `scryRenderedComponentsWithType` but expects there to be one result - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactComponent} The one match. - */ - findRenderedComponentWithType: function (root, componentType) { - validateClassInstance(root, 'findRenderedComponentWithType'); - var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType); +function scryRenderedDOMComponentsWithTag(root, tagName) { + validateClassInstance(root, 'scryRenderedDOMComponentsWithTag'); + return findAllInRenderedTree(root, function (inst) { + return isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); + }); +} +/** + * Like scryRenderedDOMComponentsWithTag but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); - } - return all[0]; - }, +function findRenderedDOMComponentWithTag(root, tagName) { + validateClassInstance(root, 'findRenderedDOMComponentWithTag'); + var all = scryRenderedDOMComponentsWithTag(root, tagName); - /** - * Pass a mocked component module to this method to augment it with - * useful methods that allow it to be used as a dummy React component. - * Instead of rendering as usual, the component will become a simple - *
containing any provided children. - * - * @param {object} module the mock function object exported from a - * module that defines the component to be mocked - * @param {?string} mockTagName optional dummy root tag name to return - * from render method (overrides - * module.mockTagName if provided) - * @return {object} the ReactTestUtils object (for chaining) - */ - mockComponent: function (module, mockTagName) { - { - if (!hasWarnedAboutDeprecatedMockComponent) { - hasWarnedAboutDeprecatedMockComponent = true; + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); + } - warn('ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); - } + return all[0]; +} +/** + * Finds all instances of components with type equal to `componentType`. + * @return {array} an array of all the matches. + */ + + +function scryRenderedComponentsWithType(root, componentType) { + validateClassInstance(root, 'scryRenderedComponentsWithType'); + return findAllInRenderedTree(root, function (inst) { + return isCompositeComponentWithType(inst, componentType); + }); +} +/** + * Same as `scryRenderedComponentsWithType` but expects there to be one result + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactComponent} The one match. + */ + + +function findRenderedComponentWithType(root, componentType) { + validateClassInstance(root, 'findRenderedComponentWithType'); + var all = scryRenderedComponentsWithType(root, componentType); + + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); + } + + return all[0]; +} +/** + * Pass a mocked component module to this method to augment it with + * useful methods that allow it to be used as a dummy React component. + * Instead of rendering as usual, the component will become a simple + *
containing any provided children. + * + * @param {object} module the mock function object exported from a + * module that defines the component to be mocked + * @param {?string} mockTagName optional dummy root tag name to return + * from render method (overrides + * module.mockTagName if provided) + * @return {object} the ReactTestUtils object (for chaining) + */ + + +function mockComponent(module, mockTagName) { + { + if (!hasWarnedAboutDeprecatedMockComponent) { + hasWarnedAboutDeprecatedMockComponent = true; + + warn('ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); } + } - mockTagName = mockTagName || module.mockTagName || 'div'; - module.prototype.render.mockImplementation(function () { - return React.createElement(mockTagName, null, this.props.children); - }); - return this; - }, - nativeTouchData: function (x, y) { - return { - touches: [{ - pageX: x, - pageY: y - }] - }; - }, - Simulate: null, - SimulateNative: {}, - act: act -}; + mockTagName = mockTagName || module.mockTagName || 'div'; + module.prototype.render.mockImplementation(function () { + return React.createElement(mockTagName, null, this.props.children); + }); + return this; +} + +function nativeTouchData(x, y) { + return { + touches: [{ + pageX: x, + pageY: y + }] + }; +} + +var Simulate = {}; +var SimulateNative = {}; /** * Exports: * - * - `ReactTestUtils.Simulate.click(Element)` - * - `ReactTestUtils.Simulate.mouseMove(Element)` - * - `ReactTestUtils.Simulate.change(Element)` + * - `Simulate.click(Element)` + * - `Simulate.mouseMove(Element)` + * - `Simulate.change(Element)` * - ... (All keys from event plugin `eventTypes` objects) */ @@ -1377,7 +1390,7 @@ function makeSimulator(eventType) { } } - if (!!ReactTestUtils.isCompositeComponent(domNode)) { + if (!!isCompositeComponent(domNode)) { { throw Error( "TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead." ); } @@ -1414,7 +1427,6 @@ function makeSimulator(eventType) { } function buildSimulators() { - ReactTestUtils.Simulate = {}; var eventType; for (eventType in eventNameDispatchConfigs$1) { @@ -1422,7 +1434,7 @@ function buildSimulators() { * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?object} eventData Fake event data to use in SyntheticEvent. */ - ReactTestUtils.Simulate[eventType] = makeSimulator(eventType); + Simulate[eventType] = makeSimulator(eventType); } } @@ -1430,16 +1442,16 @@ buildSimulators(); /** * Exports: * - * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)` + * - `SimulateNative.click(Element/ReactDOMComponent)` + * - `SimulateNative.mouseMove(Element/ReactDOMComponent)` + * - `SimulateNative.mouseIn/ReactDOMComponent)` + * - `SimulateNative.mouseOut(Element/ReactDOMComponent)` * - ... (All keys from `BrowserEventConstants.topLevelTypes`) * * Note: Top level event types are a subset of the entire set of handler types * (which include a broader set of "synthetic" events). For example, onDragDone * is a synthetic event. Except when testing an event plugin or React's event - * handling code specifically, you probably want to use ReactTestUtils.Simulate + * handling code specifically, you probably want to use Simulate * to dispatch synthetic events. */ @@ -1449,7 +1461,7 @@ function makeNativeSimulator(eventType, topLevelType) { _assign(fakeNativeEvent, nativeEventData); - if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { + if (isDOMComponent(domComponentOrNode)) { simulateNativeEventOnDOMComponent(topLevelType, domComponentOrNode, fakeNativeEvent); } else if (domComponentOrNode.tagName) { // Will allow on actual dom nodes. @@ -1466,26 +1478,27 @@ function makeNativeSimulator(eventType, topLevelType) { * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent. */ - ReactTestUtils.SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); + SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); }); -var ReactTestUtils$1 = /*#__PURE__*/Object.freeze({ - __proto__: null, - 'default': ReactTestUtils -}); - -function getCjsExportFromNamespace (n) { - return n && n['default'] || n; -} - -var ReactTestUtils$2 = getCjsExportFromNamespace(ReactTestUtils$1); - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest. - - -var testUtils = ReactTestUtils$2.default || ReactTestUtils$2; - -module.exports = testUtils; +exports.Simulate = Simulate; +exports.SimulateNative = SimulateNative; +exports.act = act; +exports.findAllInRenderedTree = findAllInRenderedTree; +exports.findRenderedComponentWithType = findRenderedComponentWithType; +exports.findRenderedDOMComponentWithClass = findRenderedDOMComponentWithClass; +exports.findRenderedDOMComponentWithTag = findRenderedDOMComponentWithTag; +exports.isCompositeComponent = isCompositeComponent; +exports.isCompositeComponentWithType = isCompositeComponentWithType; +exports.isDOMComponent = isDOMComponent; +exports.isDOMComponentElement = isDOMComponentElement; +exports.isElement = isElement; +exports.isElementOfType = isElementOfType; +exports.mockComponent = mockComponent; +exports.nativeTouchData = nativeTouchData; +exports.renderIntoDocument = renderIntoDocument; +exports.scryRenderedComponentsWithType = scryRenderedComponentsWithType; +exports.scryRenderedDOMComponentsWithClass = scryRenderedDOMComponentsWithClass; +exports.scryRenderedDOMComponentsWithTag = scryRenderedDOMComponentsWithTag; })(); } diff --git a/build/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js b/build/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js index 3d12478..f405223 100644 --- a/build/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +++ b/build/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js @@ -7,29 +7,29 @@ * LICENSE file in the root directory of this source tree. */ -'use strict';var g=require("object-assign"),k=require("react"),m=require("react-dom"),n=require("scheduler");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cthis.eventPool.length&&this.eventPool.push(a)}function y(a){a.eventPool=[];a.getPooled=z;a.release=A}var B=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function C(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c} -var D={animationend:C("Animation","AnimationEnd"),animationiteration:C("Animation","AnimationIteration"),animationstart:C("Animation","AnimationStart"),transitionend:C("Transition","TransitionEnd")},E={},F={};B&&(F=document.createElement("div").style,"AnimationEvent"in window||(delete D.animationend.animation,delete D.animationiteration.animation,delete D.animationstart.animation),"TransitionEvent"in window||delete D.transitionend.transition); -function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),aa=G("animationiteration"),ba=G("animationstart"),ca=G("transitionend"),I=null;function da(a){if(null===I)try{var b=("require"+Math.random()).slice(0,7);I=(module&&module[b])("timers").setImmediate}catch(c){I=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return I(a)} -var J=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ea=J[11],K=J[12],fa=m.unstable_batchedUpdates,L=q.IsSomeRendererActing,M="function"===typeof n.unstable_flushAllWithoutAsserting,N=n.unstable_flushAllWithoutAsserting||function(){for(var a=!1;ea();)a=!0;return a};function O(a){try{N(),da(function(){N()?O(a):a()})}catch(b){a(b)}}var P=0,Q=!1,ha=m.findDOMNode,R=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ia=R[0],S=R[4],ja=R[5],ka=R[6],la=R[7],ma=R[8],T=R[9],na=R[10]; -function U(){}function oa(a,b){if(!a)return[];a=u(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}} -function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(p(286,b,a));}} -var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a, -b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?oa(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(p(11));b=b.split(/\s+/)}return b.every(function(a){return-1!== -d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){V(a,"findRenderedDOMComponentWithClass");a=W.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){V(a,"scryRenderedDOMComponentsWithTag");return W.findAllInRenderedTree(a,function(a){return W.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a, -b){V(a,"findRenderedDOMComponentWithTag");a=W.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){V(a,"scryRenderedComponentsWithType");return W.findAllInRenderedTree(a,function(a){return W.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){V(a,"findRenderedComponentWithType");a=W.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+ -a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){P--;L.current=c;K.current=e}!1===Q&&(Q=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));P++;var c= -L.current;var e=K.current;L.current=!0;K.current=!0;try{var d=fa(a)}catch(f){throw b(),f;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1this.eventPool.length&&this.eventPool.push(a)}function x(a){a.eventPool=[];a.getPooled=ba;a.release=ca}var da=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function y(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c} +var z={animationend:y("Animation","AnimationEnd"),animationiteration:y("Animation","AnimationIteration"),animationstart:y("Animation","AnimationStart"),transitionend:y("Transition","TransitionEnd")},A={},B={};da&&(B=document.createElement("div").style,"AnimationEvent"in window||(delete z.animationend.animation,delete z.animationiteration.animation,delete z.animationstart.animation),"TransitionEvent"in window||delete z.transitionend.transition); +function C(a){if(A[a])return A[a];if(!z[a])return a;var b=z[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in B)return A[a]=b[c];return a}var ea=C("animationend"),fa=C("animationiteration"),ha=C("animationstart"),ia=C("transitionend"),D=null;function ja(a){if(null===D)try{var b=("require"+Math.random()).slice(0,7);D=(module&&module[b])("timers").setImmediate}catch(c){D=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return D(a)} +var E=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ka=E[11],F=E[12],la=m.unstable_batchedUpdates,G=q.IsSomeRendererActing,H="function"===typeof n.unstable_flushAllWithoutAsserting,I=n.unstable_flushAllWithoutAsserting||function(){for(var a=!1;ka();)a=!0;return a};function J(a){try{I(),ja(function(){I()?J(a):a()})}catch(b){a(b)}}var K=0,L=!1,ma=m.findDOMNode,M=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,na=M[0],N=M[4],oa=M[5],pa=M[6],qa=M[7],ra=M[8],O=M[9],sa=M[10]; +function P(){}function ta(a,b){if(!a)return[];a=aa(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}} +function Q(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(p(286,b,a));}}function R(a){return!(!a||1!==a.nodeType||!a.tagName)}function S(a){return R(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}function T(a,b){return S(a)?a._reactInternalFiber.type===b:!1} +function U(a,b){Q(a,"findAllInRenderedTree");return a?ta(a._reactInternalFiber,b):[]}function V(a,b){Q(a,"scryRenderedDOMComponentsWithClass");return U(a,function(a){if(R(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(p(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})} +function W(a,b){Q(a,"scryRenderedDOMComponentsWithTag");return U(a,function(a){return R(a)&&a.tagName.toUpperCase()===b.toUpperCase()})}function X(a,b){Q(a,"scryRenderedComponentsWithType");return U(a,function(a){return T(a,b)})}var Y={},Z={}; +function ua(a){return function(b,c){if(l.isValidElement(b))throw Error(p(228));if(S(b))throw Error(p(229));var e=N[a],d=new P;d.target=b;d.type=a.toLowerCase();var f=na(b),g=new w(e,f,d,b);g.persist();h(g,c);e.phasedRegistrationNames?oa(g):pa(g);m.unstable_batchedUpdates(function(){qa(b);sa(g)});ra()}}for(var va in N)Y[va]=ua(va);function wa(a,b){return function(c,e){var d=new P(a);h(d,e);R(c)?(c=ma(c),d.target=c,O(b,1,document,d)):c.tagName&&(d.target=c,O(b,1,document,d))}} +[["abort","abort"],[ea,"animationEnd"],[fa,"animationIteration"],[ha,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit", "dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove", "mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"], -["touchstart","touchStart"],[ca,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];W.SimulateNative[b]=qa(b,a[0])});var Y={__proto__:null,"default":W},Z=Y&&Y["default"]||Y;module.exports=Z.default||Z; +["touchstart","touchStart"],[ia,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];Z[b]=wa(b,a[0])});exports.Simulate=Y;exports.SimulateNative=Z; +exports.act=function(a){function b(){K--;G.current=c;F.current=e}!1===L&&(L=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));K++;var c=G.current;var e=F.current;G.current=!0;F.current=!0;try{var d=la(a)}catch(f){throw b(),f;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1";"string"===typeof c.children&&(a+=c.children);return a+("")}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b";"string"===typeof c.children&&(a+=c.children);return a+("")}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b";"string"===typeof b.children&&(c+=b.children);return c+("")}var e="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(a){var b=a.destination,c=a.completedChunks;a.completedChunks=[];"function"===typeof b.cork&&b.cork();try{for(a=0;athis.eventPool.length&&this.eventPool.push(a)}function E(a){a.eventPool=[];a.getPooled=ca;a.release=da}var F=D.extend({touchHistory:function(){return null}});function G(a){return"touchstart"===a||"mousedown"===a}function H(a){return"touchmove"===a||"mousemove"===a}function I(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a} -var J=["touchstart","mousedown"],K=["touchmove","mousemove"],L=["touchcancel","touchend","mouseup"],N=[],O={touchBank:N,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function P(a){return a.timeStamp||a.timestamp}function Q(a){a=a.identifier;if(null==a)throw Error(m(138));return a} -function ea(a){var b=Q(a),c=N[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=P(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=P(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=P(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:P(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:P(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:P(a)},N[b]=c);O.mostRecentTimeStamp=P(a)} -function fa(a){var b=N[Q(a)];b&&(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=P(a),O.mostRecentTimeStamp=P(a))}function ha(a){var b=N[Q(a)];b&&(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=P(a),O.mostRecentTimeStamp=P(a))} -var R={recordTouchTrack:function(a,b){if(H(a))b.changedTouches.forEach(fa);else if(G(a))b.changedTouches.forEach(ea),O.numberActiveTouches=b.touches.length,1===O.numberActiveTouches&&(O.indexOfSingleActiveTouch=b.touches[0].identifier);else if(I(a)&&(b.changedTouches.forEach(ha),O.numberActiveTouches=b.touches.length,1===O.numberActiveTouches))for(a=0;athis.eventPool.length&&this.eventPool.push(a)}function F(a){a.eventPool=[];a.getPooled=ba;a.release=ca}var G=E.extend({touchHistory:function(){return null}});function H(a){return"touchstart"===a||"mousedown"===a}function I(a){return"touchmove"===a||"mousemove"===a}function J(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a} +var K=["touchstart","mousedown"],L=["touchmove","mousemove"],N=["touchcancel","touchend","mouseup"],O=[],P={touchBank:O,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function Q(a){return a.timeStamp||a.timestamp}function R(a){a=a.identifier;if(null==a)throw Error(m(138));return a} +function da(a){var b=R(a),c=O[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=Q(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=Q(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=Q(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:Q(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:Q(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:Q(a)},O[b]=c);P.mostRecentTimeStamp=Q(a)} +function ea(a){var b=O[R(a)];b&&(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=Q(a),P.mostRecentTimeStamp=Q(a))}function fa(a){var b=O[R(a)];b&&(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=Q(a),P.mostRecentTimeStamp=Q(a))} +var S={recordTouchTrack:function(a,b){if(I(a))b.changedTouches.forEach(ea);else if(H(a))b.changedTouches.forEach(da),P.numberActiveTouches=b.touches.length,1===P.numberActiveTouches&&(P.indexOfSingleActiveTouch=b.touches[0].identifier);else if(J(a)&&(b.changedTouches.forEach(fa),P.numberActiveTouches=b.touches.length,1===P.numberActiveTouches))for(a=0;ab}return!1}function n(a,b,c,d,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=g;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=h}function C(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=za.exec(a);if(b){var c="",d,g=0;for(d=b.index;dJ))throw Error(p(301));if(a===u)if(P=!0,a={action:c,next:null}, -null===t&&(t=new Map),c=t.get(b),void 0===c)t.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Q(){}function oa(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Da(a){if(void 0===a||null===a)return a;var b="";l.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function pa(a,b){if(void 0===a)throw Error(p(152,D(b)||"Component"));}function Ea(a,b,c){function d(d, -h){var f=h.prototype&&h.prototype.isReactComponent,g=va(h,b,c,f),v=[],A=!1,e={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===v)return null},enqueueReplaceState:function(a,c){A=!0;v=[c]},enqueueSetState:function(a,c){if(null===v)return null;v.push(c)}};if(f){if(f=new h(d.props,g,e),"function"===typeof h.getDerivedStateFromProps){var k=h.getDerivedStateFromProps.call(null,d.props,f.state);null!=k&&(f.state=x({},f.state,k))}}else if(u={},f=h(d.props,g,e),f=la(h,d.props,f,g), -null==f||null==f.render){a=f;pa(a,h);return}f.props=d.props;f.context=g;f.updater=e;e=f.state;void 0===e&&(f.state=e=null);if("function"===typeof f.UNSAFE_componentWillMount||"function"===typeof f.componentWillMount)if("function"===typeof f.componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.componentWillMount(),"function"===typeof f.UNSAFE_componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.UNSAFE_componentWillMount(),v.length){e=v;var m=A;v=null;A=!1;if(m&&1=== -e.length)f.state=e[0];else{k=m?e[0]:f.state;var q=!0;for(m=m?1:0;mL;L++)q[L]=L+1;q[15]=0;var wa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, -ha=Object.prototype.hasOwnProperty,ja={},ia={},m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){m[a]=new n(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];m[b]=new n(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){m[a]=new n(a, -2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){m[a]=new n(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){m[a]=new n(a,3,!1,a.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(a){m[a]= -new n(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){m[a]=new n(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){m[a]=new n(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){m[a]=new n(a,5,!1,a.toLowerCase(),null,!1)});var S=/[\-:]([a-z])/g,T=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= -a.replace(S,T);m[b]=new n(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(S,T);m[b]=new n(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(S,T);m[b]=new n(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){m[a]=new n(a,1,!1,a.toLowerCase(),null,!1)});m.xlinkHref=new n("xlinkHref",1,!1,"xlink:href", -"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){m[a]=new n(a,1,!1,a.toLowerCase(),null,!0)});var za=/["'&<>]/,Ia="function"===typeof Object.is?Object.is:Ba,u=null,K=null,k=null,F=!1,P=!1,t=null,J=0,G=0,Ja={readContext:function(a,b){b=G;E(a,b);return a[b]},useContext:function(a,b){B();b=G;E(a,b);return a[b]},useMemo:function(a,b){u=B();k=O();b=void 0===b?null:b;if(null!==k){var c=k.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var g= -0;g=d))throw Error(p(304));var A=new Uint16Array(d);A.set(h);q=A;q[0]=c+1;for(h=c;h=f.children.length){var e=f.footer;""!==e&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===f.type)this.currentSelectValue=null;else if(null!=f.type&&null!=f.type.type&&f.type.type.$$typeof===N)this.popProvider(f.type);else if(f.type===I){this.suspenseDepth--; -var k=h.pop();if(v){v=!1;var m=f.fallbackFrame;if(!m)throw Error(p(303));this.stack.push(m);h[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else h[this.suspenseDepth]+=k}h[this.suspenseDepth]+=e}else{var l=f.children[f.childIndex++],n="";try{n+=this.render(l,f.context,f.domNamespace)}catch(R){if(null!=R&&"function"===typeof R.then){if(!(0=f.length))throw Error(p(93));f=f[0]}e=""+f}null==e&&(e="")}d=x({},d,{value:void 0,children:""+e})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=x({},d,{value:void 0});else if("option"===c){f=this.currentSelectValue;var k=Da(d.children); -if(null!=f){var m=null!=d.value?d.value+"":k;e=!1;if(Array.isArray(f))for(var l=0;l":(w+=">",e="");a:{f=d.dangerouslySetInnerHTML;if(null!=f){if(null!=f.__html){f=f.__html;break a}}else if(f=d.children,"string"===typeof f||"number"===typeof f){f=C(f);break a}f=null}null!=f?(d=[],Oa.hasOwnProperty(c)&&"\n"===f.charAt(0)&&(w+="\n"),w+=f):d=z(d.children);a=a.type;g=null==g||"http://www.w3.org/1999/xhtml"===g?oa(a):"http://www.w3.org/2000/svg"===g&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":g;this.stack.push({domNamespace:g,type:c,children:d,childIndex:0,context:b,footer:e});this.previousWasTextNode= -!1;return w};return a}();e=(e={__proto__:null,"default":{renderToString:function(a){a=new sa(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new sa(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw Error(p(207));},renderToStaticNodeStream:function(){throw Error(p(208));},version:"16.12.0"}},e["default"])||e;return e.default||e}); +'use strict';(function(u,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],n):(u=u||self,n(u.ReactDOMServer={},u.React))})(this,function(u,n){function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function k(a,b,c,d,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=g;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=h}function C(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=Aa.exec(a);if(b){var c="",d,g=0;for(d=b.index;dK))throw Error(p(301));if(a===r)if(Q=!0,a={action:c,next:null}, +null===A&&(A=new Map),c=A.get(b),void 0===c)A.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function R(){}function pa(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ea(a){if(void 0===a||null===a)return a;var b="";n.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function qa(a,b){if(void 0===a)throw Error(p(152,E(b)||"Component"));}function Fa(a,b,c){function d(d, +h){var f=h.prototype&&h.prototype.isReactComponent,g=wa(h,b,c,f),v=[],B=!1,e={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===v)return null},enqueueReplaceState:function(a,c){B=!0;v=[c]},enqueueSetState:function(a,c){if(null===v)return null;v.push(c)}};if(f){if(f=new h(d.props,g,e),"function"===typeof h.getDerivedStateFromProps){var l=h.getDerivedStateFromProps.call(null,d.props,f.state);null!=l&&(f.state=x({},f.state,l))}}else if(r={},f=h(d.props,g,e),f=ma(h,d.props,f,g), +null==f||null==f.render){a=f;qa(a,h);return}f.props=d.props;f.context=g;f.updater=e;e=f.state;void 0===e&&(f.state=e=null);if("function"===typeof f.UNSAFE_componentWillMount||"function"===typeof f.componentWillMount)if("function"===typeof f.componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.componentWillMount(),"function"===typeof f.UNSAFE_componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&f.UNSAFE_componentWillMount(),v.length){e=v;var m=B;v=null;B=!1;if(m&&1=== +e.length)f.state=e[0];else{l=m?e[0]:f.state;var q=!0;for(m=m?1:0;mM;M++)q[M]=M+1;q[15]=0;var xa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, +ia=Object.prototype.hasOwnProperty,ka={},ja={},m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){m[a]=new k(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];m[b]=new k(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){m[a]=new k(a, +2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){m[a]=new k(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){m[a]=new k(a,3,!1,a.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(a){m[a]= +new k(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){m[a]=new k(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){m[a]=new k(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){m[a]=new k(a,5,!1,a.toLowerCase(),null,!1)});var T=/[\-:]([a-z])/g,U=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= +a.replace(T,U);m[b]=new k(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(T,U);m[b]=new k(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(T,U);m[b]=new k(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){m[a]=new k(a,1,!1,a.toLowerCase(),null,!1)});m.xlinkHref=new k("xlinkHref",1,!1,"xlink:href", +"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){m[a]=new k(a,1,!1,a.toLowerCase(),null,!0)});var Aa=/["'&<>]/,Ja="function"===typeof Object.is?Object.is:Ca,r=null,L=null,e=null,G=!1,Q=!1,A=null,K=0,H=0,Ka={readContext:function(a,b){b=H;F(a,b);return a[b]},useContext:function(a,b){D();b=H;F(a,b);return a[b]},useMemo:function(a,b){r=D();e=P();b=void 0===b?null:b;if(null!==e){var c=e.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var g= +0;g=d))throw Error(p(304));var B=new Uint16Array(d);B.set(h);q=B;q[0]=c+1;for(h=c;h=f.children.length){var e=f.footer;""!==e&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===f.type)this.currentSelectValue=null;else if(null!=f.type&&null!=f.type.type&&f.type.type.$$typeof===O)this.popProvider(f.type);else if(f.type===J){this.suspenseDepth--; +var l=h.pop();if(v){v=!1;var m=f.fallbackFrame;if(!m)throw Error(p(303));this.stack.push(m);h[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else h[this.suspenseDepth]+=l}h[this.suspenseDepth]+=e}else{var k=f.children[f.childIndex++],n="";try{n+=this.render(k,f.context,f.domNamespace)}catch(S){if(null!=S&&"function"===typeof S.then){if(!(0=f.length))throw Error(p(93));f=f[0]}e=""+f}null==e&&(e="")}d=x({},d,{value:void 0,children:""+e})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=x({},d,{value:void 0});else if("option"===c){f=this.currentSelectValue;var l=Ea(d.children); +if(null!=f){var m=null!=d.value?d.value+"":l;e=!1;if(Array.isArray(f))for(var k=0;k":(w+=">",e="");a:{f=d.dangerouslySetInnerHTML;if(null!=f){if(null!=f.__html){f=f.__html;break a}}else if(f=d.children,"string"===typeof f||"number"===typeof f){f=C(f);break a}f=null}null!=f?(d=[],Pa.hasOwnProperty(c)&&"\n"===f.charAt(0)&&(w+="\n"),w+=f):d=z(d.children);a=a.type;g=null==g||"http://www.w3.org/1999/xhtml"===g?pa(a):"http://www.w3.org/2000/svg"===g&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":g;this.stack.push({domNamespace:g,type:c,children:d,childIndex:0,context:b,footer:e});this.previousWasTextNode= +!1;return w};return a}();u.renderToNodeStream=function(){throw Error(p(207));};u.renderToStaticMarkup=function(a){a=new ta(a,!0);try{return a.read(Infinity)}finally{a.destroy()}};u.renderToStaticNodeStream=function(){throw Error(p(208));};u.renderToString=function(a){a=new ta(a,!1);try{return a.read(Infinity)}finally{a.destroy()}};u.version="16.12.0"}); diff --git a/build/node_modules/react-dom/umd/react-dom-test-utils.development.js b/build/node_modules/react-dom/umd/react-dom-test-utils.development.js index 0944727..ae43fd8 100644 --- a/build/node_modules/react-dom/umd/react-dom-test-utils.development.js +++ b/build/node_modules/react-dom/umd/react-dom-test-utils.development.js @@ -10,10 +10,10 @@ 'use strict'; (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('react-dom')) : - typeof define === 'function' && define.amd ? define(['react', 'react-dom'], factory) : - (global = global || self, global.ReactTestUtils = factory(global.React, global.ReactDOM)); -}(this, (function (React, ReactDOM) { 'use strict'; + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) : + typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) : + (global = global || self, factory(global.ReactTestUtils = {}, global.React, global.ReactDOM)); +}(this, (function (exports, React, ReactDOM) { 'use strict'; var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var _assign = ReactInternals.assign; @@ -1177,214 +1177,227 @@ */ - var ReactTestUtils = { - renderIntoDocument: function (element) { - var div = document.createElement('div'); // None of our tests actually require attaching the container to the - // DOM, and doing so creates a mess that we rely on test isolation to - // clean up, so we're going to stop honoring the name of this method - // (and probably rename it eventually) if no problems arise. - // document.documentElement.appendChild(div); + function renderIntoDocument(element) { + var div = document.createElement('div'); // None of our tests actually require attaching the container to the + // DOM, and doing so creates a mess that we rely on test isolation to + // clean up, so we're going to stop honoring the name of this method + // (and probably rename it eventually) if no problems arise. + // document.documentElement.appendChild(div); - return ReactDOM.render(element, div); - }, - isElement: function (element) { - return React.isValidElement(element); - }, - isElementOfType: function (inst, convenienceConstructor) { - return React.isValidElement(inst) && inst.type === convenienceConstructor; - }, - isDOMComponent: function (inst) { - return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); - }, - isDOMComponentElement: function (inst) { - return !!(inst && React.isValidElement(inst) && !!inst.tagName); - }, - isCompositeComponent: function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - // Accessing inst.setState warns; just return false as that'll be what - // this returns when we have DOM nodes as refs directly - return false; - } + return ReactDOM.render(element, div); + } - return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; - }, - isCompositeComponentWithType: function (inst, type) { - if (!ReactTestUtils.isCompositeComponent(inst)) { - return false; - } + function isElement(element) { + return React.isValidElement(element); + } - var internalInstance = get(inst); - var constructor = internalInstance.type; - return constructor === type; - }, - findAllInRenderedTree: function (inst, test) { - validateClassInstance(inst, 'findAllInRenderedTree'); + function isElementOfType(inst, convenienceConstructor) { + return React.isValidElement(inst) && inst.type === convenienceConstructor; + } - if (!inst) { - return []; - } + function isDOMComponent(inst) { + return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); + } - var internalInstance = get(inst); - return findAllInRenderedFiberTreeInternal(internalInstance, test); - }, + function isDOMComponentElement(inst) { + return !!(inst && React.isValidElement(inst) && !!inst.tagName); + } - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the class name matching `className`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithClass: function (root, classNames) { - validateClassInstance(root, 'scryRenderedDOMComponentsWithClass'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - if (ReactTestUtils.isDOMComponent(inst)) { - var className = inst.className; - - if (typeof className !== 'string') { - // SVG, probably. - className = inst.getAttribute('class') || ''; - } + function isCompositeComponent(inst) { + if (isDOMComponent(inst)) { + // Accessing inst.setState warns; just return false as that'll be what + // this returns when we have DOM nodes as refs directly + return false; + } - var classList = className.split(/\s+/); + return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; + } - if (!Array.isArray(classNames)) { - if (!(classNames !== undefined)) { - { - throw Error( "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." ); - } - } + function isCompositeComponentWithType(inst, type) { + if (!isCompositeComponent(inst)) { + return false; + } - classNames = classNames.split(/\s+/); - } + var internalInstance = get(inst); + var constructor = internalInstance.type; + return constructor === type; + } - return classNames.every(function (name) { - return classList.indexOf(name) !== -1; - }); + function findAllInRenderedTree(inst, test) { + validateClassInstance(inst, 'findAllInRenderedTree'); + + if (!inst) { + return []; + } + + var internalInstance = get(inst); + return findAllInRenderedFiberTreeInternal(internalInstance, test); + } + /** + * Finds all instance of components in the rendered tree that are DOM + * components with the class name matching `className`. + * @return {array} an array of all the matches. + */ + + + function scryRenderedDOMComponentsWithClass(root, classNames) { + validateClassInstance(root, 'scryRenderedDOMComponentsWithClass'); + return findAllInRenderedTree(root, function (inst) { + if (isDOMComponent(inst)) { + var className = inst.className; + + if (typeof className !== 'string') { + // SVG, probably. + className = inst.getAttribute('class') || ''; } - return false; - }); - }, + var classList = className.split(/\s+/); - /** - * Like scryRenderedDOMComponentsWithClass but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithClass: function (root, className) { - validateClassInstance(root, 'findRenderedDOMComponentWithClass'); - var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className); + if (!Array.isArray(classNames)) { + if (!(classNames !== undefined)) { + { + throw Error( "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument." ); + } + } - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); + classNames = classNames.split(/\s+/); + } + + return classNames.every(function (name) { + return classList.indexOf(name) !== -1; + }); } - return all[0]; - }, + return false; + }); + } + /** + * Like scryRenderedDOMComponentsWithClass but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - /** - * Finds all instance of components in the rendered tree that are DOM - * components with the tag name matching `tagName`. - * @return {array} an array of all the matches. - */ - scryRenderedDOMComponentsWithTag: function (root, tagName) { - validateClassInstance(root, 'scryRenderedDOMComponentsWithTag'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); - }); - }, - /** - * Like scryRenderedDOMComponentsWithTag but expects there to be one result, - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactDOMComponent} The one match. - */ - findRenderedDOMComponentWithTag: function (root, tagName) { - validateClassInstance(root, 'findRenderedDOMComponentWithTag'); - var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); + function findRenderedDOMComponentWithClass(root, className) { + validateClassInstance(root, 'findRenderedDOMComponentWithClass'); + var all = scryRenderedDOMComponentsWithClass(root, className); - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); - } + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); + } - return all[0]; - }, + return all[0]; + } + /** + * Finds all instance of components in the rendered tree that are DOM + * components with the tag name matching `tagName`. + * @return {array} an array of all the matches. + */ - /** - * Finds all instances of components with type equal to `componentType`. - * @return {array} an array of all the matches. - */ - scryRenderedComponentsWithType: function (root, componentType) { - validateClassInstance(root, 'scryRenderedComponentsWithType'); - return ReactTestUtils.findAllInRenderedTree(root, function (inst) { - return ReactTestUtils.isCompositeComponentWithType(inst, componentType); - }); - }, - /** - * Same as `scryRenderedComponentsWithType` but expects there to be one result - * and returns that one result, or throws exception if there is any other - * number of matches besides one. - * @return {!ReactComponent} The one match. - */ - findRenderedComponentWithType: function (root, componentType) { - validateClassInstance(root, 'findRenderedComponentWithType'); - var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType); + function scryRenderedDOMComponentsWithTag(root, tagName) { + validateClassInstance(root, 'scryRenderedDOMComponentsWithTag'); + return findAllInRenderedTree(root, function (inst) { + return isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase(); + }); + } + /** + * Like scryRenderedDOMComponentsWithTag but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactDOMComponent} The one match. + */ - if (all.length !== 1) { - throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); - } - return all[0]; - }, + function findRenderedDOMComponentWithTag(root, tagName) { + validateClassInstance(root, 'findRenderedDOMComponentWithTag'); + var all = scryRenderedDOMComponentsWithTag(root, tagName); - /** - * Pass a mocked component module to this method to augment it with - * useful methods that allow it to be used as a dummy React component. - * Instead of rendering as usual, the component will become a simple - *
containing any provided children. - * - * @param {object} module the mock function object exported from a - * module that defines the component to be mocked - * @param {?string} mockTagName optional dummy root tag name to return - * from render method (overrides - * module.mockTagName if provided) - * @return {object} the ReactTestUtils object (for chaining) - */ - mockComponent: function (module, mockTagName) { - { - if (!hasWarnedAboutDeprecatedMockComponent) { - hasWarnedAboutDeprecatedMockComponent = true; + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); + } - warn('ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); - } + return all[0]; + } + /** + * Finds all instances of components with type equal to `componentType`. + * @return {array} an array of all the matches. + */ + + + function scryRenderedComponentsWithType(root, componentType) { + validateClassInstance(root, 'scryRenderedComponentsWithType'); + return findAllInRenderedTree(root, function (inst) { + return isCompositeComponentWithType(inst, componentType); + }); + } + /** + * Same as `scryRenderedComponentsWithType` but expects there to be one result + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + * @return {!ReactComponent} The one match. + */ + + + function findRenderedComponentWithType(root, componentType) { + validateClassInstance(root, 'findRenderedComponentWithType'); + var all = scryRenderedComponentsWithType(root, componentType); + + if (all.length !== 1) { + throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); + } + + return all[0]; + } + /** + * Pass a mocked component module to this method to augment it with + * useful methods that allow it to be used as a dummy React component. + * Instead of rendering as usual, the component will become a simple + *
containing any provided children. + * + * @param {object} module the mock function object exported from a + * module that defines the component to be mocked + * @param {?string} mockTagName optional dummy root tag name to return + * from render method (overrides + * module.mockTagName if provided) + * @return {object} the ReactTestUtils object (for chaining) + */ + + + function mockComponent(module, mockTagName) { + { + if (!hasWarnedAboutDeprecatedMockComponent) { + hasWarnedAboutDeprecatedMockComponent = true; + + warn('ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); } + } - mockTagName = mockTagName || module.mockTagName || 'div'; - module.prototype.render.mockImplementation(function () { - return React.createElement(mockTagName, null, this.props.children); - }); - return this; - }, - nativeTouchData: function (x, y) { - return { - touches: [{ - pageX: x, - pageY: y - }] - }; - }, - Simulate: null, - SimulateNative: {}, - act: act - }; + mockTagName = mockTagName || module.mockTagName || 'div'; + module.prototype.render.mockImplementation(function () { + return React.createElement(mockTagName, null, this.props.children); + }); + return this; + } + + function nativeTouchData(x, y) { + return { + touches: [{ + pageX: x, + pageY: y + }] + }; + } + + var Simulate = {}; + var SimulateNative = {}; /** * Exports: * - * - `ReactTestUtils.Simulate.click(Element)` - * - `ReactTestUtils.Simulate.mouseMove(Element)` - * - `ReactTestUtils.Simulate.change(Element)` + * - `Simulate.click(Element)` + * - `Simulate.mouseMove(Element)` + * - `Simulate.change(Element)` * - ... (All keys from event plugin `eventTypes` objects) */ @@ -1396,7 +1409,7 @@ } } - if (!!ReactTestUtils.isCompositeComponent(domNode)) { + if (!!isCompositeComponent(domNode)) { { throw Error( "TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead." ); } @@ -1433,7 +1446,6 @@ } function buildSimulators() { - ReactTestUtils.Simulate = {}; var eventType; for (eventType in eventNameDispatchConfigs$1) { @@ -1441,7 +1453,7 @@ * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?object} eventData Fake event data to use in SyntheticEvent. */ - ReactTestUtils.Simulate[eventType] = makeSimulator(eventType); + Simulate[eventType] = makeSimulator(eventType); } } @@ -1449,16 +1461,16 @@ /** * Exports: * - * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)` - * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)` + * - `SimulateNative.click(Element/ReactDOMComponent)` + * - `SimulateNative.mouseMove(Element/ReactDOMComponent)` + * - `SimulateNative.mouseIn/ReactDOMComponent)` + * - `SimulateNative.mouseOut(Element/ReactDOMComponent)` * - ... (All keys from `BrowserEventConstants.topLevelTypes`) * * Note: Top level event types are a subset of the entire set of handler types * (which include a broader set of "synthetic" events). For example, onDragDone * is a synthetic event. Except when testing an event plugin or React's event - * handling code specifically, you probably want to use ReactTestUtils.Simulate + * handling code specifically, you probably want to use Simulate * to dispatch synthetic events. */ @@ -1468,7 +1480,7 @@ _assign(fakeNativeEvent, nativeEventData); - if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { + if (isDOMComponent(domComponentOrNode)) { simulateNativeEventOnDOMComponent(topLevelType, domComponentOrNode, fakeNativeEvent); } else if (domComponentOrNode.tagName) { // Will allow on actual dom nodes. @@ -1485,15 +1497,27 @@ * @param {!Element|ReactDOMComponent} domComponentOrNode * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent. */ - ReactTestUtils.SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); + SimulateNative[eventType] = makeNativeSimulator(eventType, topLevelType); }); - // TODO: decide on the top-level export form. - // This is hacky but makes it work with both Rollup and Jest. - - - var testUtils = ReactTestUtils.default || ReactTestUtils; - - return testUtils; + exports.Simulate = Simulate; + exports.SimulateNative = SimulateNative; + exports.act = act; + exports.findAllInRenderedTree = findAllInRenderedTree; + exports.findRenderedComponentWithType = findRenderedComponentWithType; + exports.findRenderedDOMComponentWithClass = findRenderedDOMComponentWithClass; + exports.findRenderedDOMComponentWithTag = findRenderedDOMComponentWithTag; + exports.isCompositeComponent = isCompositeComponent; + exports.isCompositeComponentWithType = isCompositeComponentWithType; + exports.isDOMComponent = isDOMComponent; + exports.isDOMComponentElement = isDOMComponentElement; + exports.isElement = isElement; + exports.isElementOfType = isElementOfType; + exports.mockComponent = mockComponent; + exports.nativeTouchData = nativeTouchData; + exports.renderIntoDocument = renderIntoDocument; + exports.scryRenderedComponentsWithType = scryRenderedComponentsWithType; + exports.scryRenderedDOMComponentsWithClass = scryRenderedDOMComponentsWithClass; + exports.scryRenderedDOMComponentsWithTag = scryRenderedDOMComponentsWithTag; }))); diff --git a/build/node_modules/react-dom/umd/react-dom-test-utils.production.min.js b/build/node_modules/react-dom/umd/react-dom-test-utils.production.min.js index 330dc67..7616c15 100644 --- a/build/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +++ b/build/node_modules/react-dom/umd/react-dom-test-utils.production.min.js @@ -6,25 +6,25 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -'use strict';(function(k,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],m):(k=k||self,k.ReactTestUtils=m(k.React,k.ReactDOM))})(this,function(k,m){function l(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cthis.eventPool.length&& -this.eventPool.push(a)}function H(a){a.eventPool=[];a.getPooled=S;a.release=T}function w(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function x(a){if(A[a])return A[a];if(!p[a])return a;var b=p[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in I)return A[a]=b[c];return a}function U(a){if(null===y)try{var b=("require"+Math.random()).slice(0,7);y=(module&&module[b])("timers").setImmediate}catch(c){y=function(a){var b=new MessageChannel;b.port1.onmessage= -a;b.port2.postMessage(void 0)}}return y(a)}function J(a){try{B(),U(function(){B()?J(a):a()})}catch(b){a(b)}}function K(a){}function V(a,b){if(!a)return[];a=R(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}function n(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a= -Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(l(286,b,a));}}function W(a){return function(b,c){if(k.isValidElement(b))throw Error(l(228));if(f.isCompositeComponent(b))throw Error(l(229));var e=L[a],d=new K;d.target=b;d.type=a.toLowerCase();var g=X(b),q=new r(e,g,d,b);q.persist();t(q,c);e.phasedRegistrationNames?Y(q):Z(q);m.unstable_batchedUpdates(function(){aa(b);ba(q)});ca()}}function da(a, -b){return function(c,e){var d=new K(a);t(d,e);f.isDOMComponent(c)?(c=ea(c),d.target=c,M(b,1,document,d)):c.tagName&&(d.target=c,M(b,1,document,d))}}var t=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,g=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;g.hasOwnProperty("ReactCurrentDispatcher")||(g.ReactCurrentDispatcher={current:null});g.hasOwnProperty("ReactCurrentBatchConfig")||(g.ReactCurrentBatchConfig={suspense:null});t(r.prototype,{preventDefault:function(){this.defaultPrevented= -!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=u)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=u)},persist:function(){this.isPersistent=u},isPersistent:v,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig= -null;this.isPropagationStopped=this.isDefaultPrevented=v;this._dispatchInstances=this._dispatchListeners=null}});r.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;t(e,b.prototype);b.prototype=e;b.prototype.constructor= -b;b.Interface=t({},c.Interface,a);b.extend=c.extend;H(b);return b};H(r);var C=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p={animationend:w("Animation","AnimationEnd"),animationiteration:w("Animation","AnimationIteration"),animationstart:w("Animation","AnimationStart"),transitionend:w("Transition","TransitionEnd")},A={},I={};C&&(I=document.createElement("div").style,"AnimationEvent"in window||(delete p.animationend.animation, -delete p.animationiteration.animation,delete p.animationstart.animation),"TransitionEvent"in window||delete p.transitionend.transition);C=x("animationend");var fa=x("animationiteration"),ha=x("animationstart"),ia=x("transitionend"),y=null,N=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_flushAllWithoutAsserting,O=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ja=O[11],D=O[12],ka=m.unstable_batchedUpdates,E=g.IsSomeRendererActing,P="function"===typeof N,B=N||function(){for(var a= -!1;ja();)a=!0;return a},z=0,Q=!1,ea=m.findDOMNode;g=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var X=g[0],L=g[4],Y=g[5],Z=g[6],aa=g[7],ca=g[8],M=g[9],ba=g[10],f={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&& -k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return f.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){n(a,"findAllInRenderedTree");return a?V(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){n(a,"scryRenderedDOMComponentsWithClass");return f.findAllInRenderedTree(a, -function(a){if(f.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(l(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){n(a,"findRenderedDOMComponentWithClass");a=f.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]}, -scryRenderedDOMComponentsWithTag:function(a,b){n(a,"scryRenderedDOMComponentsWithTag");return f.findAllInRenderedTree(a,function(a){return f.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){n(a,"findRenderedDOMComponentWithTag");a=f.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){n(a,"scryRenderedComponentsWithType"); -return f.findAllInRenderedTree(a,function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){n(a,"findRenderedComponentWithType");a=f.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a, -b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){z--;E.current=c;D.current=e}!1===Q&&(Q=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));z++;var c=E.current;var e=D.current;E.current=!0;D.current=!0;try{var d=ka(a)}catch(h){throw b(),h;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1this.eventPool.length&& +this.eventPool.push(a)}function K(a){a.eventPool=[];a.getPooled=ba;a.release=ca}function x(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function y(a){if(C[a])return C[a];if(!q[a])return a;var b=q[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in L)return C[a]=b[c];return a}function da(a){if(null===z)try{var b=("require"+Math.random()).slice(0,7);z=(module&&module[b])("timers").setImmediate}catch(c){z=function(a){var b=new MessageChannel;b.port1.onmessage= +a;b.port2.postMessage(void 0)}}return z(a)}function M(a){try{D(),da(function(){D()?M(a):a()})}catch(b){a(b)}}function N(a){}function ea(a,b){if(!a)return[];a=aa(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}function n(a,b){if(a&&!a._reactInternalFiber){var c=""+ +a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(l(286,b,a));}}function t(a){return!(!a||1!==a.nodeType||!a.tagName)}function E(a){return t(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}function O(a,b){return E(a)?a._reactInternalFiber.type===b:!1}function A(a,b){n(a,"findAllInRenderedTree");return a?ea(a._reactInternalFiber,b):[]}function P(a,b){n(a,"scryRenderedDOMComponentsWithClass"); +return A(a,function(a){if(t(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(l(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})}function Q(a,b){n(a,"scryRenderedDOMComponentsWithTag");return A(a,function(a){return t(a)&&a.tagName.toUpperCase()===b.toUpperCase()})}function R(a,b){n(a,"scryRenderedComponentsWithType");return A(a,function(a){return O(a,b)})}function fa(a){return function(b, +c){if(k.isValidElement(b))throw Error(l(228));if(E(b))throw Error(l(229));var e=S[a],d=new N;d.target=b;d.type=a.toLowerCase();var f=ha(b),g=new r(e,f,d,b);g.persist();u(g,c);e.phasedRegistrationNames?ia(g):ja(g);p.unstable_batchedUpdates(function(){ka(b);la(g)});ma()}}function na(a,b){return function(c,e){var d=new N(a);u(d,e);t(c)?(c=oa(c),d.target=c,T(b,1,document,d)):c.tagName&&(d.target=c,T(b,1,document,d))}}var u=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,g=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; +g.hasOwnProperty("ReactCurrentDispatcher")||(g.ReactCurrentDispatcher={current:null});g.hasOwnProperty("ReactCurrentBatchConfig")||(g.ReactCurrentBatchConfig={suspense:null});u(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&& +(a.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:w,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=w;this._dispatchInstances=this._dispatchListeners=null}});r.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp|| +Date.now()},defaultPrevented:null,isTrusted:null};r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;u(e,b.prototype);b.prototype=e;b.prototype.constructor=b;b.Interface=u({},c.Interface,a);b.extend=c.extend;K(b);return b};K(r);var F=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),q={animationend:x("Animation","AnimationEnd"),animationiteration:x("Animation", +"AnimationIteration"),animationstart:x("Animation","AnimationStart"),transitionend:x("Transition","TransitionEnd")},C={},L={};F&&(L=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);F=y("animationend");var pa=y("animationiteration"),qa=y("animationstart"),ra=y("transitionend"),z=null,U=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_flushAllWithoutAsserting, +V=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,sa=V[11],G=V[12],ta=p.unstable_batchedUpdates,H=g.IsSomeRendererActing,W="function"===typeof U,D=U||function(){for(var a=!1;sa();)a=!0;return a},B=0,X=!1,oa=p.findDOMNode;g=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var ha=g[0],S=g[4],ia=g[5],ja=g[6],ka=g[7],ma=g[8],T=g[9],la=g[10],Y={},Z={};(function(){for(var a in S)Y[a]=fa(a)})();[["abort","abort"],[F,"animationEnd"],[pa,"animationIteration"],[qa,"animationStart"],["blur", +"blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag", +"drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste", +"paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart","touchStart"],[ra,"transitionEnd"],["volumechange","volumeChange"],["waiting", +"waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];Z[b]=na(b,a[0])});f.Simulate=Y;f.SimulateNative=Z;f.act=function(a){function b(){B--;H.current=c;G.current=e}!1===X&&(X=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));B++;var c=H.current;var e=G.current;H.current=!0;G.current=!0;try{var d=ta(a)}catch(h){throw b(),h;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1";"string"===typeof d.children&&(a+=d.children);return a+("")}function e(c){var d=c.destination,a=c.completedChunks;c.completedChunks=[];for(c=0;c";"string"===typeof d.children&&(a+=d.children);return a+("")}function g(b){var d=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;bthis.eventPool.length&&this.eventPool.push(a)}function S(a){a.eventPool=[];a.getPooled=Y;a.release=Z}function A(a){return"touchstart"===a||"mousedown"===a}function F(a){return"touchmove"===a||"mousemove"===a}function G(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function l(a){return a.timeStamp||a.timestamp}function J(a){a=a.identifier;if(null==a)throw Error(x(138));return a}function aa(a){var b=J(a),c=v[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp= -l(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=l(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=l(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:l(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:l(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:l(a)},v[b]=c);q.mostRecentTimeStamp=l(a)}function ba(a){var b=v[J(a)];b&&(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY, -b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),q.mostRecentTimeStamp=l(a))}function ca(a){var b=v[J(a)];b&&(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),q.mostRecentTimeStamp=l(a))}function B(a,b){if(null==b)throw Error(x(334));return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b): -[a,b]}var Q=null,T=null,N=null,K=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;K(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=D)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=D)},persist:function(){this.isPersistent= -D},isPersistent:E,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=E;this._dispatchInstances=this._dispatchListeners=null}});z.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};z.extend=function(a){function b(){return c.apply(this, -arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;K(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=K({},c.Interface,a);b.extend=c.extend;S(b);return b};S(z);var w=z.extend({touchHistory:function(a){return null}});p=["touchstart","mousedown"];var U=["touchmove","mousemove"],V=["touchcancel","touchend","mouseup"],v=[],q={touchBank:v,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(F(a))b.changedTouches.forEach(ba); -else if(A(a))b.changedTouches.forEach(aa),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches&&(q.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(ca),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches))for(a=0;athis.eventPool.length&&this.eventPool.push(a)}function T(a){a.eventPool=[];a.getPooled=Z;a.release=aa}function B(a){return"touchstart"===a||"mousedown"===a}function G(a){return"touchmove"===a||"mousemove"===a}function H(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function h(a){return a.timeStamp||a.timestamp}function K(a){a=a.identifier;if(null==a)throw Error(y(138));return a}function ba(a){var b=K(a),c=v[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp= +h(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=h(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=h(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:h(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:h(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:h(a)},v[b]=c);p.mostRecentTimeStamp=h(a)}function ca(a){var b=v[K(a)];b&&(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY, +b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=h(a),p.mostRecentTimeStamp=h(a))}function da(a){var b=v[K(a)];b&&(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=h(a),p.mostRecentTimeStamp=h(a))}function C(a,b){if(null==b)throw Error(y(334));return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b): +[a,b]}var R=null,U=null,O=null,L=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;L(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=E)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=E)},persist:function(){this.isPersistent= +E},isPersistent:F,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=F;this._dispatchInstances=this._dispatchListeners=null}});A.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};A.extend=function(a){function b(){return c.apply(this, +arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;L(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=L({},c.Interface,a);b.extend=c.extend;T(b);return b};T(A);var w=A.extend({touchHistory:function(a){return null}});x=["touchstart","mousedown"];var V=["touchmove","mousemove"],W=["touchcancel","touchend","mouseup"],v=[],p={touchBank:v,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(G(a))b.changedTouches.forEach(ca); +else if(B(a))b.changedTouches.forEach(ba),p.numberActiveTouches=b.touches.length,1===p.numberActiveTouches&&(p.indexOfSingleActiveTouch=b.touches[0].identifier);else if(H(a)&&(b.changedTouches.forEach(da),p.numberActiveTouches=b.touches.length,1===p.numberActiveTouches))for(a=0;a component higher in the tree to provide a loading indicator or placeholder to display."+La(g))}S!==ne&&(S=me);h=Dd(h,g);q=f;do{switch(q.tag){case 3:k= -h;q.effectTag|=4096;q.expirationTime=b;var af=ae(q,k,b);Lb(q,af);break a;case 1:k=h;var bf=q.type,oc=q.stateNode;if(0===(q.effectTag&64)&&("function"===typeof bf.getDerivedStateFromError||null!==oc&&"function"===typeof oc.componentDidCatch&&(null===ee||!ee.has(oc)))){q.effectTag|=4096;q.expirationTime=b;var cf=de(q,k,b);Lb(q,cf);break a}}q=q.return}while(null!==q)}X=Qe(X)}catch(df){b=df;continue}break}while(1)}function Ie(){var a=ge.current;ge.current=Fc;return null===a?Fc:a} +null===r?(r=e.pingCache=new $d,h=new Set,r.set(k,h)):(h=r.get(k),void 0===h&&(h=new Set,r.set(k,h)));if(!h.has(g)){h.add(g);var Ld=Pe.bind(null,e,k,g);k.then(Ld,Ld)}q.effectTag|=4096;q.expirationTime=b;break a}q=q.return}while(null!==q);h=Error((xa(g.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display."+La(g))}S!==ne&&(S=me);h=Dd(h,g);q=f;do{switch(q.tag){case 3:k= +h;q.effectTag|=4096;q.expirationTime=b;var Ze=ae(q,k,b);Lb(q,Ze);break a;case 1:k=h;var $e=q.type,oc=q.stateNode;if(0===(q.effectTag&64)&&("function"===typeof $e.getDerivedStateFromError||null!==oc&&"function"===typeof oc.componentDidCatch&&(null===ee||!ee.has(oc)))){q.effectTag|=4096;q.expirationTime=b;var af=de(q,k,b);Lb(q,af);break a}}q=q.return}while(null!==q)}X=Qe(X)}catch(bf){b=bf;continue}break}while(1)}function Ie(){var a=ge.current;ge.current=Fc;return null===a?Fc:a} function Nb(a,b){azd&&(zd=a)}function Ne(){for(;null!==X;)X=Re(X)}function Je(){for(;null!==X&&!hb();)X=Re(X)}function Re(a){var b=Se(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Qe(a));he.current=null;return b} function Qe(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=vd(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Me(a){var b=nb();pb(99,Te.bind(null,a,b));return null} @@ -138,7 +138,7 @@ d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpi null)}}switch(k&1038){case 2:Td(Y);Y.effectTag&=-3;break;case 6:Td(Y);Y.effectTag&=-3;Wd(Y.alternate,Y);break;case 1024:Y.effectTag&=-1025;break;case 1028:Y.effectTag&=-1025;Wd(Y.alternate,Y);break;case 4:Wd(Y.alternate,Y);break;case 8:var q=Y;Qd(g,q,h);Rd(q)}Y=Y.nextEffect}}catch(z){if(null===Y)throw Error(n(330));Hd(Y,z);Y=Y.nextEffect}while(null!==Y);a.current=c;Y=e;do try{for(k=a;null!==Y;){var v=Y.effectTag;v&36&&Nd(k,Y.alternate,Y);if(v&128){l=void 0;var x=Y.ref;if(null!==x){var P=Y.stateNode; switch(Y.tag){case 5:l=Fa(P);break;default:l=P}"function"===typeof x?x(l):x.current=l}}Y=Y.nextEffect}}catch(z){if(null===Y)throw Error(n(330));Hd(Y,z);Y=Y.nextEffect}while(null!==Y);Y=null;ib();W=f}else a.current=c;if(ue)ue=!1,ve=a,we=b;else for(Y=e;null!==Y;)b=Y.nextEffect,Y.nextEffect=null,Y=b;b=a.firstPendingTime;0===b&&(ee=null);1073741823===b?a===ze?ye++:(ye=0,ze=a):ye=0;"function"===typeof Ve&&Ve(c.stateNode,d);Z(a);if(be)throw be=!1,a=ce,ce=null,a;if((W&ie)!==V)return null;tb();return null} function Ue(){for(;null!==Y;){var a=Y.effectTag;0!==(a&256)&&Jd(Y.alternate,Y);0===(a&512)||ue||(ue=!0,qb(97,function(){Ge();return null}));Y=Y.nextEffect}}function Ge(){if(90!==we){var a=97=c)return md(a,b,c);C(K,K.current&1);b=cd(a,b,c);return null!==b?b.sibling: @@ -149,16 +149,16 @@ e=null!==e?e.element:null;Ib(a,b);Mb(b,d,null,c);d=b.memoizedState.element;d===e b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;C(yb,h._currentValue2);h._currentValue2=f;if(null!==g)if(h=g.value,f=vb(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!E.current){b=cd(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!== k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=Jb(c,null),l.tag=2,Kb(h,l));h.expirationTime=b&&a<=b}function Ad(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)} +function ff(a,b,c){a=new ef(a,b,c);b=new df(3,null,null,2===b?7:1===b?3:0);a.current=b;b.stateNode=a;Hb(b);return a}function Ee(a,b){var c=a.firstSuspendedTime;a=a.lastSuspendedTime;return 0!==c&&c>=b&&a<=b}function Ad(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)} function Bd(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}var gf=null; function hf(a){if(null===gf)try{var b=("require"+Math.random()).slice(0,7);gf=(module&&module[b])("timers").setImmediate}catch(c){gf=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return gf(a)} function jf(a,b,c,d){var e=b.current,f=Tb(),g=Qb.suspense;f=Ub(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(ya(c)!==c||1!==c.tag)throw Error(n(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(F(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(n(171));}if(1===c.tag){var k=c.type;if(F(k)){c=Ta(c,k,h);break a}}c=h}else c=Oa;null===b.context?b.context=c:b.pendingContext=c;b=Jb(f,g);b.payload={element:a};d=void 0=== @@ -171,11 +171,12 @@ function xf(a){var b=[],c=a;if(null===c.child)return b;c.child.return=c;c=c.chil var Bf=function(){function a(a){if(!wf.has(a.tag))throw Error(n(225,a.tag));this._fiber=a}var b=a.prototype;b._currentFiber=function(){var a=Aa(this._fiber);if(null===a)throw Error(n(224));return a};b.find=function(a){return zf(this.findAll(a,{deep:!1}),"matching custom predicate: "+a.toString())};b.findByType=function(a){return zf(this.findAllByType(a,{deep:!1}),'with node type: "'+(a.displayName||a.name)+'"')};b.findByProps=function(a){return zf(this.findAllByProps(a,{deep:!1}),"with props: "+JSON.stringify(a))}; b.findAll=function(a){return Af(this,a,1xf(a).length)break;return yf(a)}a=a.return}return null}},{key:"children",get:function(){return xf(this._currentFiber())}}]);return a}(); -function Af(a,b,c){var d=c?c.deep:!0,e=[];if(b(a)&&(e.push(a),!d))return e;a.children.forEach(function(a){"string"!==typeof a&&e.push.apply(e,Af(a,b,c))});return e}function zf(a,b){if(1===a.length)return a[0];throw Error((0===a.length?"No instances found ":"Expected 1 but found "+a.length+" instances ")+b);} -var Cf={_Scheduler:ba,create:function(a,b){var c=qf.createNodeMock,d=!1;"object"===typeof b&&null!==b&&("function"===typeof b.createNodeMock&&(c=b.createNodeMock),!0===b.unstable_isConcurrent&&(d=!0));var e={children:[],createNodeMock:c,tag:"CONTAINER"},f=ff(e,d?2:0,!1);if(null==f)throw Error(n(215));jf(a,f,null,null);a={_Scheduler:ba,root:void 0,toJSON:function(){if(null==f||null==f.current||null==e||0===e.children.length)return null;if(1===e.children.length)return rf(e.children[0]);if(2===e.children.length&& +function Af(a,b,c){var d=c?c.deep:!0,e=[];if(b(a)&&(e.push(a),!d))return e;a.children.forEach(function(a){"string"!==typeof a&&e.push.apply(e,Af(a,b,c))});return e}function zf(a,b){if(1===a.length)return a[0];throw Error((0===a.length?"No instances found ":"Expected 1 but found "+a.length+" instances ")+b);}var Cf=new WeakMap;function yf(a){var b=Cf.get(a);void 0===b&&null!==a.alternate&&(b=Cf.get(a.alternate));void 0===b&&(b=new Bf(a),Cf.set(a,b));return b} +(function(a){var b=a.findFiberByHostInstance;return cf(aa({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:t.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Ba(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:function(){throw Error("TestRenderer does not support findFiberByHostInstance()"); +},bundleType:0,version:"16.12.0",rendererPackageName:"react-test-renderer"});exports._Scheduler=ba; +exports.act=function(a){function b(){of--;kf.current=c}!1===pf&&(pf=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));of++;var c=kf.current;kf.current=!0;try{var d=Oe(a)}catch(e){throw b(),e;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,f){d.then(function(){1this._numberOfReRenders))throw Error(l(301));if(this._rendering){this._didScheduleRenderPhaseUpdate=!0;a={action:a,next:null};var d=this._renderPhaseUpdates; +b._workInProgressHook.memoizedState=a):d},useState:function(b){return a(I,b)},useResponder:function(b,a){return{props:a,responder:b}},useTransition:function(a){b._validateCurrentlyRenderingComponent();return[function(b){b()},!1]},useDeferredValue:function(a,d){b._validateCurrentlyRenderingComponent();return a}}};c._dispatchAction=function(b,a){if(!(25>this._numberOfReRenders))throw Error(k(301));if(this._rendering){this._didScheduleRenderPhaseUpdate=!0;a={action:a,next:null};var d=this._renderPhaseUpdates; null===d&&(this._renderPhaseUpdates=d=new Map);var c=d.get(b);if(void 0===c)d.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}else{a={action:a,next:null};d=b.first;if(null===d)b.first=a;else{for(;null!==d.next;)d=d.next;d.next=a}this.render(this._element,this._context)}};c._createWorkInProgressHook=function(){null===this._workInProgressHook?null===this._firstWorkInProgressHook?(this._isReRender=!1,this._firstWorkInProgressHook=this._workInProgressHook=H()):(this._isReRender=!0,this._workInProgressHook= this._firstWorkInProgressHook):null===this._workInProgressHook.next?(this._isReRender=!1,this._workInProgressHook=this._workInProgressHook.next=H()):(this._isReRender=!0,this._workInProgressHook=this._workInProgressHook.next);return this._workInProgressHook};c._finishHooks=function(b,a){this._didScheduleRenderPhaseUpdate?(this._didScheduleRenderPhaseUpdate=!1,this._numberOfReRenders+=1,this._workInProgressHook=null,this._rendering=!1,this.render(b,a)):(this._renderPhaseUpdates=this._workInProgressHook= -null,this._numberOfReRenders=0)};c.getMountedInstance=function(){return this._instance};c.getRenderOutput=function(){return this._rendered};c.render=function(b){var a=1Aa||(a.current=Zb[Aa],Zb[Aa]=null,Aa--)}function w(a,b,c){Aa++;Zb[Aa]=a.current;a.current=b}function Ba(a,b){var c=a.type.contextTypes;if(!c)return ea;var d=a.stateNode; -if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function C(a){a=a.childContextTypes;return null!==a&&void 0!==a}function id(a,b,c){if(y.current!==ea)throw Error(k(168));w(y,b);w(z,c)}function jd(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c; -d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(k(108,W(b)||"Unknown",e));return X({},c,{},d)}function eb(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ea;oa=y.current;w(y,a);w(z,z.current);return!0}function kd(a,b,c){var d=a.stateNode;if(!d)throw Error(k(169));c?(a=jd(a,b,oa),d.__reactInternalMemoizedMergedChildContext=a,r(z),r(y),w(y,a)):r(z);w(z,c)}function fb(){switch(Ke()){case gb:return 99;case ld:return 98;case md:return 97;case nd:return 96;case od:return 95; -default:throw Error(k(332));}}function pd(a){switch(a){case 99:return gb;case 98:return ld;case 97:return md;case 96:return nd;case 95:return od;default:throw Error(k(332));}}function pa(a,b){a=pd(a);return Le(a,b)}function qd(a,b,c){a=pd(a);return $b(a,b,c)}function rd(a){null===Y?(Y=[a],hb=$b(gb,sd)):Y.push(a);return td}function Ca(){if(null!==hb){var a=hb;hb=null;ud(a)}sd()}function sd(){if(!ac&&null!==Y){ac=!0;var a=0;try{var b=Y;pa(99,function(){for(;a=b&&(T=!0),a.firstContext=null)} -function L(a,b){if(jb!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)jb=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===Da){if(null===kb)throw Error(k(308));Da=b;kb.dependencies={expirationTime:0,firstContext:b,responders:null}}else Da=Da.next=b}return a._currentValue2}function dc(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ec(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue, -shared:a.shared,effects:a.effects})}function fa(a,b){a={expirationTime:a,suspenseConfig:b,tag:wd,payload:null,callback:null,next:null};return a.next=a}function ha(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}function xd(a,b){var c=a.alternate;null!==c&&ec(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}function Na(a,b,c,d){var e=a.updateQueue;ia=!1;var f=e.baseQueue,g=e.shared.pending; -if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var n=e.baseState,k=0,l=null,Z=null,q=null;if(null!==h){var m=h;do{g=m.expirationTime;if(gk&&(k=g)}else{null!==q&&(q=q.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig, -tag:m.tag,payload:m.payload,callback:m.callback,next:null});yd(g,m.suspenseConfig);a:{var t=a,u=m;g=b;r=c;switch(u.tag){case 1:t=u.payload;if("function"===typeof t){n=t.call(r,n,g);break a}n=t;break a;case 3:t.effectTag=t.effectTag&-4097|64;case wd:t=u.payload;g="function"===typeof t?t.call(r,n,g):t;if(null===g||void 0===g)break a;n=X({},n,g);break a;case mb:ia=!0}}null!==m.callback&&(a.effectTag|=32,g=e.effects,null===g?e.effects=[m]:g.push(m))}m=m.next;if(null===m||m===h)if(g=e.shared.pending,null=== -g)break;else m=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===q?l=n:q.next=Z;e.baseState=l;e.baseQueue=q;nb(k);a.expirationTime=k;a.memoizedState=n}}function zd(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;bu?(m=p,p=null):m=p.sibling;var R=r(e,p,h[u],n);if(null===R){null===p&&(p=m);break}a&&p&&null===R.alternate&&b(e,p);g=f(R,g,u);null===l?k=R:l.sibling=R;l=R;p=m}if(u===h.length)return c(e,p),k;if(null===p){for(;uu?(R=m,m=null):R=m.sibling;var Z=r(e,m,v.value, -n);if(null===Z){null===m&&(m=R);break}a&&m&&null===Z.alternate&&b(e,m);g=f(Z,g,u);null===l?p=Z:l.sibling=Z;l=Z;m=R}if(v.done)return c(e,m),p;if(null===m){for(;!v.done;u++,v=h.next())v=q(e,v.value,n),null!==v&&(g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);return p}for(m=d(e,m);!v.done;u++,v=h.next())v=t(m,e,u,v.value,n),null!==v&&(a&&null!==v.alternate&&m.delete(null===v.key?u:v.key),g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);a&&m.forEach(function(a){return b(e,a)});return p}return function(a,d,f,h){var n= -"object"===typeof f&&null!==f&&f.type===na&&null===f.key;n&&(f=f.props.children);var p="object"===typeof f&&null!==f;if(p)switch(f.$$typeof){case sb:a:{p=f.key;for(n=d;null!==n;){if(n.key===p){switch(n.tag){case 7:if(f.type===na){c(a,n.sibling);d=e(n,f.props.children);d.return=a;a=d;break a}break;default:if(n.elementType===f.type){c(a,n.sibling);d=e(n,f.props);d.ref=Pa(a,n,f);d.return=a;a=d;break a}}c(a,n);break}else b(a,n);n=n.sibling}f.type===na?(d=ja(f.props.children,a.mode,h,f.key),d.return=a, -a=d):(h=rb(f.type,f.key,f.props,null,a.mode,h),h.ref=Pa(a,d,f),h.return=a,a=h)}return g(a);case Ma:a:{for(n=f.key;null!==d;){if(d.key===n)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=hc(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return= -a,a=d):(c(a,d),d=gc(f,a.mode,h),d.return=a,a=d),g(a);if(tb(f))return w(a,d,f,h);if(La(f))return x(a,d,f,h);p&&qb(a,f);if("undefined"===typeof f&&!n)switch(a.tag){case 1:case 0:throw a=a.type,Error(k(152,a.displayName||a.name||"Component"));}return c(a,d)}}function sa(a){if(a===Qa)throw Error(k(174));return a}function ic(a,b){w(Ra,b);w(Sa,a);w(U,Qa);a=Fd;r(U);w(U,a)}function Fa(a){r(U);r(Sa);r(Ra)}function Gd(a){sa(Ra.current);var b=sa(U.current),c=Fd;b!==c&&(w(Sa,a),w(U,c))}function jc(a){Sa.current=== -a&&(r(U),r(Sa))}function ub(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(null===c.dehydrated||Pe()||Qe()))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function kc(a,b){return{responder:a,props:b}}function D(){throw Error(k(321)); -}function lc(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(k(301));f+=1;E=F=null;b.updateQueue=null;vb.current=Te;a=c(d,e)}while(b.expirationTime===ka)}vb.current=wb;b=null!==F&&null!==F.next;ka=0;E=F=x=null;xb=!1;if(b)throw Error(k(300)); -return a}function Ga(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===E?x.memoizedState=E=a:E=E.next=a;return E}function Ha(){if(null===F){var a=x.alternate;a=null!==a?a.memoizedState:null}else a=F.next;var b=null===E?x.memoizedState:E.next;if(null!==b)E=b,F=a;else{if(null===a)throw Error(k(310));F=a;a={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue,queue:F.queue,next:null};null===E?x.memoizedState=E=a:E=E.next=a}return E}function ta(a, -b){return"function"===typeof b?b(a):b}function yb(a,b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=F,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,n=e;do{var p=n.expirationTime;if(px.expirationTime&&(x.expirationTime=p,nb(p))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:n.suspenseConfig,action:n.action,eagerReducer:n.eagerReducer,eagerState:n.eagerState,next:null}),yd(p,n.suspenseConfig),d=n.eagerReducer===a?n.eagerState:a(d,n.action);n=n.next}while(null!==n&&n!==e);null===h?f=d:h.next=g;qa(d,b.memoizedState)||(T=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}function zb(a, -b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);qa(f,b.memoizedState)||(T=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function nc(a){var b=Ga();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a};a=a.dispatch= -Hd.bind(null,x,a);return[b.memoizedState,a]}function oc(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=x.updateQueue;null===b?(b={lastEffect:null},x.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function Id(a){return Ha().memoizedState}function pc(a,b,c,d){var e=Ga();x.effectTag|=a;e.memoizedState=oc(1|b,c,void 0,void 0===d?null:d)}function qc(a,b,c,d){var e=Ha();d=void 0===d?null:d;var f=void 0; -if(null!==F){var g=F.memoizedState;f=g.destroy;if(null!==d&&lc(d,g.deps)){oc(b,c,f,d);return}}x.effectTag|=a;e.memoizedState=oc(1|b,c,f,d)}function Jd(a,b){return pc(516,4,a,b)}function Ab(a,b){return qc(516,4,a,b)}function Kd(a,b){return qc(4,2,a,b)}function Ld(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Md(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return qc(4,2,Ld.bind(null,b,a),c)} -function rc(a,b){}function Nd(a,b){Ga().memoizedState=[a,void 0===b?null:b];return a}function Bb(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];c.memoizedState=[a,b];return a}function Od(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function sc(a,b,c){var d=fb();pa(98>d?98:d,function(){a(!0)});pa(97d.tailExpiration&&1a?c:a;return 2>=a&&b!==a?0:a}function O(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=rd(Gc.bind(null,a));else{var b=Ib(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=la();1073741823===b?d=99:1===b||2=== -b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==td&&ud(c)}a.callbackExpirationTime=b;a.callbackPriority=d;b=1073741823===b?rd(Gc.bind(null,a)):qd(d,me.bind(null,a),{timeout:10*(1073741821-b)-N()});a.callbackNode=b}}}function me(a,b){Gb=0;if(b){b=la();var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b;O(a);return null}c=Ib(a);if(0!==c){b=a.callbackNode;if((m&(V|ba))!==G)throw Error(k(327)); -Wa();a===K&&c===J||xa(a,c);if(null!==q){var d=m;m|=V;var e=ne();do try{hf();break}catch(h){oe(a,h)}while(1);bc();m=d;Jb.current=e;if(A===Kb)throw b=Lb,xa(a,c),va(a,c),O(a),b;if(null===q)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=A,K=null,d){case ua:case Kb:throw Error(k(345));case pe:c=2c)a.lastExpiredTime=c;break;case Db:va(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Hc(e));if(1073741823===ca&&(e=Ec+qe-N(),10=c){a.lastPingedTime=c;xa(a,c);break}}f=Ib(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Ic(ya.bind(null,a),e);break}ya(a);break;case Eb:va(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Hc(e));if(Mb&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;xa(a,c);break}e=Ib(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}1073741823!==Xa?d=10*(1073741821-Xa)-N():1073741823===ca?d=0:(d=10*(1073741821-ca)- -5E3,e=N(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*jf(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=N()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+Yb(g))}A!==Jc&&(A=pe);h=yc(h,g);k=f;do{switch(k.tag){case 3:n=h;k.effectTag|=4096;k.expirationTime= -b;var G=je(k,n,b);xd(k,G);break a;case 1:n=h;var H=k.type,D=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof H.getDerivedStateFromError||null!==D&&"function"===typeof D.componentDidCatch&&(null===ma||!ma.has(D)))){k.effectTag|=4096;k.expirationTime=b;var I=ke(k,n,b);xd(k,I);break a}}k=k.return}while(null!==k)}q=se(q)}catch(Oe){b=Oe;continue}break}while(1)}function ne(a){a=Jb.current;Jb.current=wb;return null===a?wb:a}function yd(a,b){a -Va&&(Va=a)}function kf(){for(;null!==q;)q=te(q)}function hf(){for(;null!==q&&!of();)q=te(q)}function te(a){var b=pf(a.alternate,a,J);a.memoizedProps=a.pendingProps;null===b&&(b=se(a));ue.current=null;return b}function se(a){q=a;do{var b=q.alternate;a=q.return;if(0===(q.effectTag&2048)){b=Ve(b,q,J);if(1===J||1!==q.childExpirationTime){for(var c=0,d=q.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}q.childExpirationTime=c}if(null!==b)return b;null!== -a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=q.firstEffect),null!==q.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=q.firstEffect),a.lastEffect=q.lastEffect),1a?b:a}function ya(a){var b=fb();pa(99,qf.bind(null,a,b));return null}function qf(a,b){do Wa();while(null!==Ya);if((m&(V|ba))!==G)throw Error(k(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(k(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Hc(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime= -a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===K&&(q=K=null,J=0);1=b&&a<=b}function va(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}function $d(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel= -0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function zf(a){if(null===Pb)try{var b=("require"+Math.random()).slice(0,7);Pb=(module&&module[b])("timers").setImmediate}catch(c){Pb=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return Pb(a)}function Mc(a,b,c,d){var e=b.current,f=la(),g=Ta.suspense;f=Ia(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(cb(c)!==c||1!==c.tag)throw Error(k(170));var h=c;do{switch(h.tag){case 3:h= -h.stateNode.context;break b;case 1:if(C(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(k(171));}if(1===c.tag){var l=c.type;if(C(l)){c=jd(c,l,h);break a}}c=h}else c=ea;null===b.context?b.context=c:b.pendingContext=c;b=fa(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);ha(e,b);Ua(e,f);return f}function xe(a){try{Nc(),zf(function(){Nc()?xe(a):a()})}catch(b){a(b)}}function Qb(a){if(a.isHidden)return null;switch(a.tag){case "TEXT":return a.text; -case "INSTANCE":var b=a.props;var c=["children"];if(null==b)b={};else{var d={},e=Object.keys(b),f;for(f=0;fBe?Tc:function(){return Tc()-Be},qa="function"===typeof Object.is?Object.is:Me,Ne=Object.prototype.hasOwnProperty,lb={current:null},kb=null,Da=null,jb=null,wd=0,mb=2,ia=!1,Ta=P.ReactCurrentBatchConfig, -Dd=(new S.Component).refs,pb={isMounted:function(a){return(a=a._reactInternalFiber)?cb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber; -var c=la(),d=Ta.suspense;c=Ia(c,a,d);d=fa(c,d);d.tag=mb;void 0!==b&&null!==b&&(d.callback=b);ha(a,d);Ua(a,c)}},tb=Array.isArray,Ja=Ed(!0),Pd=Ed(!1),Qa={},U={current:Qa},Sa={current:Qa},Ra={current:Qa},t={current:0},vb=P.ReactCurrentDispatcher,M=P.ReactCurrentBatchConfig,ka=0,x=null,F=null,E=null,xb=!1,wb={readContext:L,useCallback:D,useContext:D,useEffect:D,useImperativeHandle:D,useLayoutEffect:D,useMemo:D,useReducer:D,useRef:D,useState:D,useDebugValue:D,useResponder:D,useDeferredValue:D,useTransition:D}, -Re={readContext:L,useCallback:Nd,useContext:L,useEffect:Jd,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return pc(4,2,Ld.bind(null,b,a),c)},useLayoutEffect:function(a,b){return pc(4,2,a,b)},useMemo:function(a,b){var c=Ga();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Ga();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Hd.bind(null, -x,a);return[d.memoizedState,a]},useRef:function(a){var b=Ga();a={current:a};return b.memoizedState=a},useState:nc,useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=nc(a),d=c[0],e=c[1];Jd(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=nc(!1),c=b[0];b=b[1];return[Nd(sc.bind(null,b,a),[b,a]),c]}},Se={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd, -useMemo:Od,useReducer:yb,useRef:Id,useState:function(a){return yb(ta)},useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=yb(ta),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=yb(ta),c=b[0];b=b[1];return[Bb(sc.bind(null,b,a),[b,a]),c]}},Te={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd,useMemo:Od,useReducer:zb,useRef:Id,useState:function(a){return zb(ta)}, -useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=zb(ta),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=zb(ta),c=b[0];b=b[1];return[Bb(sc.bind(null,b,a),[b,a]),c]}},Ue=P.ReactCurrentOwner,T=!1,wc={dehydrated:null,retryTime:0};var Xe=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag||6===c.tag){d=a;var e=c.stateNode,f=d.children.indexOf(e);-1!==f&&d.children.splice(f, -1);d.children.push(e)}else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};var Zd=function(a){};var We=function(a,b,c,d,e){a.memoizedProps!==d&&(sa(U.current),b.updateQueue=Bf)&&(b.effectTag|=4)};var Ye=function(a,b,c,d){c!==d&&(b.effectTag|=4)};var ff="function"===typeof WeakSet?WeakSet:Set,mf="function"===typeof WeakMap?WeakMap:Map,jf=Math.ceil,Jb=P.ReactCurrentDispatcher, -ue=P.ReactCurrentOwner,G=0,ve=8,V=16,ba=32,ua=0,Kb=1,pe=2,Db=3,Eb=4,Jc=5,m=G,K=null,q=null,J=0,A=ua,Lb=null,ca=1073741823,Xa=1073741823,Nb=null,Va=0,Mb=!1,Ec=0,qe=500,l=null,Fb=!1,Fc=null,ma=null,Ob=!1,Ya=null,Za=90,Tb=null,$a=0,Kc=null,Gb=0,Ua=function(a,b){if(50<$a)throw $a=0,Kc=null,Error(k(185));a=Hb(a,b);if(null!==a){var c=fb();1073741823===b?(m&ve)!==G&&(m&(V|ba))===G?Gc(a):(O(a),m===G&&Ca()):O(a);(m&4)===G||98!==c&&99!==c||(null===Tb?Tb=new Map([[a,b]]):(c=Tb.get(a),(void 0===c||c>b)&&Tb.set(a, -b)))}};var pf=function(a,b,c){var d=b.expirationTime;if(null!==a)if(a.memoizedProps!==b.pendingProps||z.current)T=!0;else{if(d=c)return Wd(a,b,c);w(t,t.current&1);b=aa(a,b,c);return null!== -b?b.sibling:null}w(t,t.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Yd(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);w(t,t.current);if(!d)return null}return aa(a,b,c)}T=!1}else T=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ba(b,y.current);Ea(b,c);e=mc(null,b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&& -void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(C(d)){var f=!0;eb(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;dc(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&ob(b,d,g,a);e.updater=pb;b.stateNode=e;e._reactInternalFiber=b;fc(b,d,a,c);b=vc(null,b,d,!0,f,c)}else b.tag=0,I(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Ge(e);if(1!==e._status)throw e._result; -e=e._result;b.type=e;f=b.tag=vf(e);a=Q(e,a);switch(f){case 0:b=uc(null,b,e,a,c);break a;case 1:b=Ud(null,b,e,a,c);break a;case 11:b=Qd(null,b,e,a,c);break a;case 14:b=Rd(null,b,e,Q(e.type,a),d,c);break a}throw Error(k(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Q(d,e),uc(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Q(d,e),Ud(a,b,d,e,c);case 3:Vd(b);d=b.updateQueue;if(null===a||null===d)throw Error(k(282));d=b.pendingProps;e=b.memoizedState; -e=null!==e?e.element:null;ec(a,b);Na(b,d,null,c);d=b.memoizedState.element;d===e?b=aa(a,b,c):(I(a,b,d,c),b=b.child);return b;case 5:return Gd(b),d=b.pendingProps.children,Td(a,b),I(a,b,d,c),b=b.child,b;case 6:return null;case 13:return Wd(a,b,c);case 4:return ic(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ja(b,null,d,c):I(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Q(d,e),Qd(a,b,d,e,c);case 7:return I(a,b,b.pendingProps,c),b.child;case 8:return I(a, -b,b.pendingProps.children,c),b.child;case 12:return I(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;w(lb,h._currentValue2);h._currentValue2=f;if(null!==g)if(h=g.value,f=qa(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!z.current){b=aa(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var l=h.dependencies;if(null!== -l){g=h.child;for(var m=l.firstContext;null!==m;){if(m.context===d&&0!==(m.observedBits&f)){1===h.tag&&(m=fa(c,null),m.tag=mb,ha(h,m));h.expirationTimeOc(a).length)break;return Qc(a)}a=a.return}return null}},{key:"children",get:function(){return Oc(this._currentFiber())}}]);return a}(),Df={_Scheduler:za,create:function(a,b){var c=Cf,d=!1;"object"===typeof b&&null!==b&&("function"===typeof b.createNodeMock&&(c=b.createNodeMock),!0===b.unstable_isConcurrent&&(d=!0));var e={children:[],createNodeMock:c,tag:"CONTAINER"},f=yf(e,d?2:0,!1);if(null==f)throw Error(k(215)); -Mc(a,f,null,null);a={_Scheduler:za,root:void 0,toJSON:function(){if(null==f||null==f.current||null==e||0===e.children.length)return null;if(1===e.children.length)return Qb(e.children[0]);if(2===e.children.length&&!0===e.children[0].isHidden&&!1===e.children[1].isHidden)return Qb(e.children[1]);var a=null;if(e.children&&e.children.length)for(var b=0;bAa||(a.current=Zb[Aa],Zb[Aa]=null,Aa--)}function w(a,b,c){Aa++;Zb[Aa]=a.current;a.current=b} +function Ba(a,b){var c=a.type.contextTypes;if(!c)return ea;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function C(a){a=a.childContextTypes;return null!==a&&void 0!==a}function id(a,b,c){if(y.current!==ea)throw Error(k(168));w(y,b);w(z,c)}function jd(a,b,c){var d=a.stateNode; +a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(k(108,W(b)||"Unknown",e));return X({},c,{},d)}function eb(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ea;pa=y.current;w(y,a);w(z,z.current);return!0}function kd(a,b,c){var d=a.stateNode;if(!d)throw Error(k(169));c?(a=jd(a,b,pa),d.__reactInternalMemoizedMergedChildContext=a,r(z),r(y),w(y,a)):r(z);w(z,c)}function fb(){switch(Je()){case gb:return 99; +case ld:return 98;case md:return 97;case nd:return 96;case od:return 95;default:throw Error(k(332));}}function pd(a){switch(a){case 99:return gb;case 98:return ld;case 97:return md;case 96:return nd;case 95:return od;default:throw Error(k(332));}}function qa(a,b){a=pd(a);return Ke(a,b)}function qd(a,b,c){a=pd(a);return $b(a,b,c)}function rd(a){null===Y?(Y=[a],hb=$b(gb,sd)):Y.push(a);return td}function Ca(){if(null!==hb){var a=hb;hb=null;ud(a)}sd()}function sd(){if(!ac&&null!==Y){ac=!0;var a=0;try{var b= +Y;qa(99,function(){for(;a=b&&(T=!0),a.firstContext=null)}function L(a,b){if(jb!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)jb=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===Da){if(null===kb)throw Error(k(308));Da=b;kb.dependencies={expirationTime:0,firstContext:b,responders:null}}else Da=Da.next=b}return a._currentValue2}function dc(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ec(a,b){a=a.updateQueue; +b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function fa(a,b){a={expirationTime:a,suspenseConfig:b,tag:wd,payload:null,callback:null,next:null};return a.next=a}function ha(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}function xd(a,b){var c=a.alternate;null!==c&&ec(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next= +b)}function Na(a,b,c,d){var e=a.updateQueue;ia=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var n=e.baseState,k=0,l=null,Z=null,q=null;if(null!==h){var m=h;do{g=m.expirationTime;if(gk&&(k=g)}else{null!==q&&(q=q.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null});yd(g,m.suspenseConfig);a:{var t=a,u=m;g=b;r=c;switch(u.tag){case 1:t=u.payload;if("function"===typeof t){n=t.call(r,n,g);break a}n=t;break a;case 3:t.effectTag=t.effectTag&-4097|64;case wd:t=u.payload;g="function"===typeof t?t.call(r,n,g):t;if(null===g||void 0===g)break a;n=X({},n,g);break a;case mb:ia=!0}}null!==m.callback&& +(a.effectTag|=32,g=e.effects,null===g?e.effects=[m]:g.push(m))}m=m.next;if(null===m||m===h)if(g=e.shared.pending,null===g)break;else m=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===q?l=n:q.next=Z;e.baseState=l;e.baseQueue=q;nb(k);a.expirationTime=k;a.memoizedState=n}}function zd(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;bu?(m=p,p=null):m=p.sibling;var S=r(e,p,h[u],n);if(null===S){null===p&&(p=m);break}a&&p&&null===S.alternate&&b(e,p);g=f(S,g,u); +null===l?k=S:l.sibling=S;l=S;p=m}if(u===h.length)return c(e,p),k;if(null===p){for(;uu?(S=m,m=null):S=m.sibling;var Z=r(e,m,v.value,n);if(null===Z){null===m&&(m=S);break}a&&m&&null===Z.alternate&&b(e,m);g=f(Z,g,u);null===l?p=Z:l.sibling=Z;l=Z;m=S}if(v.done)return c(e,m),p;if(null===m){for(;!v.done;u++,v=h.next())v=q(e,v.value,n),null!==v&&(g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);return p}for(m=d(e,m);!v.done;u++,v=h.next())v=t(m,e,u,v.value,n),null!==v&&(a&&null!==v.alternate&&m.delete(null===v.key?u:v.key), +g=f(v,g,u),null===l?p=v:l.sibling=v,l=v);a&&m.forEach(function(a){return b(e,a)});return p}return function(a,d,f,h){var n="object"===typeof f&&null!==f&&f.type===oa&&null===f.key;n&&(f=f.props.children);var p="object"===typeof f&&null!==f;if(p)switch(f.$$typeof){case sb:a:{p=f.key;for(n=d;null!==n;){if(n.key===p){switch(n.tag){case 7:if(f.type===oa){c(a,n.sibling);d=e(n,f.props.children);d.return=a;a=d;break a}break;default:if(n.elementType===f.type){c(a,n.sibling);d=e(n,f.props);d.ref=Pa(a,n,f); +d.return=a;a=d;break a}}c(a,n);break}else b(a,n);n=n.sibling}f.type===oa?(d=ja(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=rb(f.type,f.key,f.props,null,a.mode,h),h.ref=Pa(a,d,f),h.return=a,a=h)}return g(a);case Ma:a:{for(n=f.key;null!==d;){if(d.key===n)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=hc(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"=== +typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=gc(f,a.mode,h),d.return=a,a=d),g(a);if(tb(f))return w(a,d,f,h);if(La(f))return x(a,d,f,h);p&&qb(a,f);if("undefined"===typeof f&&!n)switch(a.tag){case 1:case 0:throw a=a.type,Error(k(152,a.displayName||a.name||"Component"));}return c(a,d)}}function ta(a){if(a===Qa)throw Error(k(174));return a}function ic(a,b){w(Ra,b);w(Sa,a);w(U,Qa);a=Fd;r(U);w(U,a)}function Fa(a){r(U);r(Sa);r(Ra)}function Gd(a){ta(Ra.current); +var b=ta(U.current),c=Fd;b!==c&&(w(Sa,a),w(U,c))}function jc(a){Sa.current===a&&(r(U),r(Sa))}function ub(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(null===c.dehydrated||Oe()||Pe()))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null} +function kc(a,b){return{responder:a,props:b}}function D(){throw Error(k(321));}function lc(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(k(301));f+=1;E=F=null;b.updateQueue=null;vb.current=Se;a=c(d,e)}while(b.expirationTime=== +ka)}vb.current=wb;b=null!==F&&null!==F.next;ka=0;E=F=x=null;xb=!1;if(b)throw Error(k(300));return a}function Ga(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===E?x.memoizedState=E=a:E=E.next=a;return E}function Ha(){if(null===F){var a=x.alternate;a=null!==a?a.memoizedState:null}else a=F.next;var b=null===E?x.memoizedState:E.next;if(null!==b)E=b,F=a;else{if(null===a)throw Error(k(310));F=a;a={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue, +queue:F.queue,next:null};null===E?x.memoizedState=E=a:E=E.next=a}return E}function ua(a,b){return"function"===typeof b?b(a):b}function yb(a,b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=F,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,n=e;do{var p=n.expirationTime;if(px.expirationTime&&(x.expirationTime=p,nb(p))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:n.suspenseConfig,action:n.action,eagerReducer:n.eagerReducer,eagerState:n.eagerState,next:null}),yd(p,n.suspenseConfig),d=n.eagerReducer===a?n.eagerState:a(d,n.action);n=n.next}while(null!==n&&n!==e);null===h?f=d:h.next=g;ra(d,b.memoizedState)||(T=!0);b.memoizedState=d;b.baseState= +f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}function zb(a,b,c){b=Ha();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);ra(f,b.memoizedState)||(T=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function nc(a){var b=Ga();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a; +a=b.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a};a=a.dispatch=Hd.bind(null,x,a);return[b.memoizedState,a]}function oc(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=x.updateQueue;null===b?(b={lastEffect:null},x.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function Id(a){return Ha().memoizedState}function pc(a,b,c,d){var e=Ga();x.effectTag|=a;e.memoizedState=oc(1| +b,c,void 0,void 0===d?null:d)}function qc(a,b,c,d){var e=Ha();d=void 0===d?null:d;var f=void 0;if(null!==F){var g=F.memoizedState;f=g.destroy;if(null!==d&&lc(d,g.deps)){oc(b,c,f,d);return}}x.effectTag|=a;e.memoizedState=oc(1|b,c,f,d)}function Jd(a,b){return pc(516,4,a,b)}function Ab(a,b){return qc(516,4,a,b)}function Kd(a,b){return qc(4,2,a,b)}function Ld(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}} +function Md(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return qc(4,2,Ld.bind(null,b,a),c)}function rc(a,b){}function Nd(a,b){Ga().memoizedState=[a,void 0===b?null:b];return a}function Bb(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];c.memoizedState=[a,b];return a}function Od(a,b){var c=Ha();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&lc(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function sc(a,b,c){var d= +fb();qa(98>d?98:d,function(){a(!0)});qa(97d.tailExpiration&&1a?c:a;return 2>=a&&b!==a?0:a}function O(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=rd(Gc.bind(null,a));else{var b=Ib(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime= +0,a.callbackPriority=90);else{var d=la();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==td&&ud(c)}a.callbackExpirationTime=b;a.callbackPriority=d;b=1073741823===b?rd(Gc.bind(null,a)):qd(d,me.bind(null,a),{timeout:10*(1073741821-b)-N()});a.callbackNode=b}}}function me(a,b){Gb=0;if(b){b=la();var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b; +O(a);return null}c=Ib(a);if(0!==c){b=a.callbackNode;if((m&(V|ba))!==G)throw Error(k(327));Wa();a===K&&c===J||ya(a,c);if(null!==q){var d=m;m|=V;var e=ne();do try{gf();break}catch(h){oe(a,h)}while(1);bc();m=d;Jb.current=e;if(A===Kb)throw b=Lb,ya(a,c),wa(a,c),O(a),b;if(null===q)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=A,K=null,d){case va:case Kb:throw Error(k(345));case pe:c=2c)a.lastExpiredTime=c;break;case Db:wa(a,c);d=a.lastSuspendedTime; +c===d&&(a.nextKnownPendingLevel=Hc(e));if(1073741823===ca&&(e=Ec+qe-N(),10=c){a.lastPingedTime=c;ya(a,c);break}}f=Ib(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Ic(za.bind(null,a),e);break}za(a);break;case Eb:wa(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Hc(e));if(Mb&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;ya(a,c);break}e=Ib(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime= +d;break}1073741823!==Xa?d=10*(1073741821-Xa)-N():1073741823===ca?d=0:(d=10*(1073741821-ca)-5E3,e=N(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*hf(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=N()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+ +Yb(g))}A!==Jc&&(A=pe);h=yc(h,g);k=f;do{switch(k.tag){case 3:n=h;k.effectTag|=4096;k.expirationTime=b;var G=je(k,n,b);xd(k,G);break a;case 1:n=h;var H=k.type,D=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof H.getDerivedStateFromError||null!==D&&"function"===typeof D.componentDidCatch&&(null===ma||!ma.has(D)))){k.effectTag|=4096;k.expirationTime=b;var I=ke(k,n,b);xd(k,I);break a}}k=k.return}while(null!==k)}q=se(q)}catch(Ne){b=Ne;continue}break}while(1)}function ne(a){a=Jb.current;Jb.current= +wb;return null===a?wb:a}function yd(a,b){aVa&&(Va=a)}function jf(){for(;null!==q;)q=te(q)}function gf(){for(;null!==q&&!nf();)q=te(q)}function te(a){var b=of(a.alternate,a,J);a.memoizedProps=a.pendingProps;null===b&&(b=se(a));ue.current=null;return b}function se(a){q=a;do{var b=q.alternate;a=q.return;if(0===(q.effectTag&2048)){b=Ue(b,q,J);if(1===J||1!==q.childExpirationTime){for(var c=0,d=q.child;null!==d;){var e=d.expirationTime, +f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}q.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=q.firstEffect),null!==q.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=q.firstEffect),a.lastEffect=q.lastEffect),1a?b:a}function za(a){var b=fb();qa(99,pf.bind(null,a,b));return null}function pf(a,b){do Wa();while(null!==Ya);if((m&(V|ba))!==G)throw Error(k(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(k(177));a.callbackNode=null;a.callbackExpirationTime= +0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Hc(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===K&&(q=K=null,J=0);1=b&&a<=b}function wa(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&& +(a.lastExpiredTime=0)}function $d(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function yf(a){if(null===Pb)try{var b=("require"+Math.random()).slice(0,7);Pb=(module&&module[b])("timers").setImmediate}catch(c){Pb=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return Pb(a)} +function Mc(a,b,c,d){var e=b.current,f=la(),g=Ta.suspense;f=Ia(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(cb(c)!==c||1!==c.tag)throw Error(k(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(C(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(k(171));}if(1===c.tag){var l=c.type;if(C(l)){c=jd(c,l,h);break a}}c=h}else c=ea;null===b.context?b.context=c:b.pendingContext=c;b=fa(f,g);b.payload={element:a};d=void 0=== +d?null:d;null!==d&&(b.callback=d);ha(e,b);Ua(e,f);return f}function xe(a){try{Nc(),yf(function(){Nc()?xe(a):a()})}catch(b){a(b)}}function Qb(a){if(a.isHidden)return null;switch(a.tag){case "TEXT":return a.text;case "INSTANCE":var b=a.props;var c=["children"];if(null==b)b={};else{var d={},e=Object.keys(b),f;for(f=0;fBe?Tc:function(){return Tc()-Be},ra="function"===typeof Object.is?Object.is:Le,Me=Object.prototype.hasOwnProperty,lb={current:null},kb=null,Da=null,jb=null,wd=0,mb=2,ia=!1,Ta=P.ReactCurrentBatchConfig,Dd=(new na.Component).refs,pb={isMounted:function(a){return(a=a._reactInternalFiber)?cb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueReplaceState:function(a, +b,c){a=a._reactInternalFiber;var d=la(),e=Ta.suspense;d=Ia(d,a,e);e=fa(d,e);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);ha(a,e);Ua(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=la(),d=Ta.suspense;c=Ia(c,a,d);d=fa(c,d);d.tag=mb;void 0!==b&&null!==b&&(d.callback=b);ha(a,d);Ua(a,c)}},tb=Array.isArray,Ja=Ed(!0),Pd=Ed(!1),Qa={},U={current:Qa},Sa={current:Qa},Ra={current:Qa},t={current:0},vb=P.ReactCurrentDispatcher,M=P.ReactCurrentBatchConfig,ka=0,x=null,F=null,E=null, +xb=!1,wb={readContext:L,useCallback:D,useContext:D,useEffect:D,useImperativeHandle:D,useLayoutEffect:D,useMemo:D,useReducer:D,useRef:D,useState:D,useDebugValue:D,useResponder:D,useDeferredValue:D,useTransition:D},Qe={readContext:L,useCallback:Nd,useContext:L,useEffect:Jd,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return pc(4,2,Ld.bind(null,b,a),c)},useLayoutEffect:function(a,b){return pc(4,2,a,b)},useMemo:function(a,b){var c=Ga();b=void 0===b?null:b;a=a();c.memoizedState= +[a,b];return a},useReducer:function(a,b,c){var d=Ga();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Hd.bind(null,x,a);return[d.memoizedState,a]},useRef:function(a){var b=Ga();a={current:a};return b.memoizedState=a},useState:nc,useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=nc(a),d=c[0],e=c[1];Jd(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense= +c}},[a,b]);return d},useTransition:function(a){var b=nc(!1),c=b[0];b=b[1];return[Nd(sc.bind(null,b,a),[b,a]),c]}},Re={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd,useMemo:Od,useReducer:yb,useRef:Id,useState:function(a){return yb(ua)},useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=yb(ua),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b= +yb(ua),c=b[0];b=b[1];return[Bb(sc.bind(null,b,a),[b,a]),c]}},Se={readContext:L,useCallback:Bb,useContext:L,useEffect:Ab,useImperativeHandle:Md,useLayoutEffect:Kd,useMemo:Od,useReducer:zb,useRef:Id,useState:function(a){return zb(ua)},useDebugValue:rc,useResponder:kc,useDeferredValue:function(a,b){var c=zb(ua),d=c[0],e=c[1];Ab(function(){var c=M.suspense;M.suspense=void 0===b?null:b;try{e(a)}finally{M.suspense=c}},[a,b]);return d},useTransition:function(a){var b=zb(ua),c=b[0];b=b[1];return[Bb(sc.bind(null, +b,a),[b,a]),c]}},Te=P.ReactCurrentOwner,T=!1,wc={dehydrated:null,retryTime:0};var We=function(a,b,c,d){for(c=b.child;null!==c;){if(5===c.tag||6===c.tag){d=a;var e=c.stateNode,f=d.children.indexOf(e);-1!==f&&d.children.splice(f,1);d.children.push(e)}else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};var Zd=function(a){};var Ve=function(a,b,c,d,e){a.memoizedProps!== +d&&(ta(U.current),b.updateQueue=Af)&&(b.effectTag|=4)};var Xe=function(a,b,c,d){c!==d&&(b.effectTag|=4)};var ef="function"===typeof WeakSet?WeakSet:Set,lf="function"===typeof WeakMap?WeakMap:Map,hf=Math.ceil,Jb=P.ReactCurrentDispatcher,ue=P.ReactCurrentOwner,G=0,ve=8,V=16,ba=32,va=0,Kb=1,pe=2,Db=3,Eb=4,Jc=5,m=G,K=null,q=null,J=0,A=va,Lb=null,ca=1073741823,Xa=1073741823,Nb=null,Va=0,Mb=!1,Ec=0,qe=500,l=null,Fb=!1,Fc=null,ma=null,Ob=!1,Ya=null,Za=90,Tb=null,$a=0,Kc=null,Gb=0,Ua=function(a,b){if(50< +$a)throw $a=0,Kc=null,Error(k(185));a=Hb(a,b);if(null!==a){var c=fb();1073741823===b?(m&ve)!==G&&(m&(V|ba))===G?Gc(a):(O(a),m===G&&Ca()):O(a);(m&4)===G||98!==c&&99!==c||(null===Tb?Tb=new Map([[a,b]]):(c=Tb.get(a),(void 0===c||c>b)&&Tb.set(a,b)))}};var of=function(a,b,c){var d=b.expirationTime;if(null!==a)if(a.memoizedProps!==b.pendingProps||z.current)T=!0;else{if(d=c)return Wd(a,b,c);w(t,t.current&1);b=aa(a,b,c);return null!==b?b.sibling:null}w(t,t.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Yd(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);w(t,t.current);if(!d)return null}return aa(a,b,c)}T=!1}else T= +!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ba(b,y.current);Ea(b,c);e=mc(null,b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(C(d)){var f=!0;eb(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;dc(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&ob(b,d,g,a);e.updater= +pb;b.stateNode=e;e._reactInternalFiber=b;fc(b,d,a,c);b=vc(null,b,d,!0,f,c)}else b.tag=0,I(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Fe(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=uf(e);a=R(e,a);switch(f){case 0:b=uc(null,b,e,a,c);break a;case 1:b=Ud(null,b,e,a,c);break a;case 11:b=Qd(null,b,e,a,c);break a;case 14:b=Rd(null,b,e,R(e.type,a),d,c);break a}throw Error(k(306,e,""));}return b; +case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:R(d,e),uc(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:R(d,e),Ud(a,b,d,e,c);case 3:Vd(b);d=b.updateQueue;if(null===a||null===d)throw Error(k(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;ec(a,b);Na(b,d,null,c);d=b.memoizedState.element;d===e?b=aa(a,b,c):(I(a,b,d,c),b=b.child);return b;case 5:return Gd(b),d=b.pendingProps.children,Td(a,b),I(a,b,d,c),b=b.child,b;case 6:return null;case 13:return Wd(a, +b,c);case 4:return ic(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ja(b,null,d,c):I(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:R(d,e),Qd(a,b,d,e,c);case 7:return I(a,b,b.pendingProps,c),b.child;case 8:return I(a,b,b.pendingProps.children,c),b.child;case 12:return I(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;w(lb,h._currentValue2);h._currentValue2=f;if(null!== +g)if(h=g.value,f=ra(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!z.current){b=aa(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var l=h.dependencies;if(null!==l){g=h.child;for(var m=l.firstContext;null!==m;){if(m.context===d&&0!==(m.observedBits&f)){1===h.tag&&(m=fa(c,null),m.tag=mb,ha(h,m));h.expirationTimeOc(a).length)break;return Qc(a)}a=a.return}return null}},{key:"children",get:function(){return Oc(this._currentFiber())}}]);return a}(),Sc= +new WeakMap;(function(a){var b=a.findFiberByHostInstance;return tf(X({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Ge(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:function(){throw Error("TestRenderer does not support findFiberByHostInstance()"); +},bundleType:0,version:"16.12.0",rendererPackageName:"react-test-renderer"});Q._Scheduler=Vc;Q.act=function(a){function b(){Ub--;Uc.current=c}!1===De&&(De=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));Ub++;var c=Uc.current;Uc.current=!0;try{var d=re(a)}catch(e){throw b(),e;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,f){d.then(function(){1