react-dom 16.10.2 → 16.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-info.json +5 -5
- package/cjs/react-dom-server.browser.development.js +117 -170
- package/cjs/react-dom-server.browser.production.min.js +29 -29
- package/cjs/react-dom-server.node.development.js +111 -160
- package/cjs/react-dom-server.node.production.min.js +17 -17
- package/cjs/react-dom-test-utils.development.js +46 -84
- package/cjs/react-dom-test-utils.production.min.js +9 -9
- package/cjs/react-dom-unstable-fizz.browser.development.js +1 -1
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +1 -1
- package/cjs/react-dom-unstable-fizz.node.development.js +1 -1
- package/cjs/react-dom-unstable-fizz.node.production.min.js +1 -1
- package/cjs/react-dom-unstable-native-dependencies.development.js +27 -47
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +8 -8
- package/cjs/react-dom.development.js +1614 -1813
- package/cjs/react-dom.production.min.js +269 -272
- package/cjs/react-dom.profiling.min.js +252 -255
- package/package.json +2 -2
- package/umd/react-dom-server.browser.development.js +117 -170
- package/umd/react-dom-server.browser.production.min.js +36 -36
- package/umd/react-dom-test-utils.development.js +46 -84
- package/umd/react-dom-test-utils.production.min.js +9 -9
- package/umd/react-dom-unstable-fizz.browser.development.js +1 -1
- package/umd/react-dom-unstable-fizz.browser.production.min.js +1 -1
- package/umd/react-dom-unstable-native-dependencies.development.js +27 -47
- package/umd/react-dom-unstable-native-dependencies.production.min.js +10 -10
- package/umd/react-dom.development.js +1608 -1807
- package/umd/react-dom.production.min.js +229 -232
- package/umd/react-dom.profiling.min.js +237 -239
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.11.0
|
|
2
2
|
* react-dom-server.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,40 +6,40 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(n,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react")):"function"===typeof define&&define.amd?define(["react"],p):n.ReactDOMServer=p(n.React)})(this,function(n){function p(a){for(var b=
|
|
10
|
-
|
|
11
|
-
typeof a)switch(a.$$typeof){case aa:return"Context.Consumer";case N:return"Context.Provider";case ba:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case ca:return
|
|
9
|
+
'use strict';(function(n,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react")):"function"===typeof define&&define.amd?define(["react"],p):n.ReactDOMServer=p(n.React)})(this,function(n){function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
10
|
+
function ta(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b();a._result=b;b.then(function(c){0===a._status&&(c=c.default,a._status=1,a._result=c)},function(c){0===a._status&&(a._status=2,a._result=c)})}}function I(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case L:return"Fragment";case W:return"Portal";case X:return"Profiler";case Y:return"StrictMode";case M:return"Suspense";case Z:return"SuspenseList"}if("object"===
|
|
11
|
+
typeof a)switch(a.$$typeof){case aa:return"Context.Consumer";case N:return"Context.Provider";case ba:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case ca:return I(a.type);case da:if(a=1===a._status?a._result:null)return I(a)}return null}function E(a,b){for(var c=a._threadCount|0;c<=b;c++)a[c]=a._currentValue2,a._threadCount=c+1}function ua(a,b,c,d){if(d&&(d=a.contextType,"object"===typeof d&&null!==d))return E(d,c),d[c];if(a=a.contextTypes){c=
|
|
12
12
|
{};for(var g in a)c[g]=b[g];b=c}else b=ea;return b}function fa(a){if(ha.call(ia,a))return!0;if(ha.call(ja,a))return!1;if(va.test(a))return ia[a]=!0;ja[a]=!0;return!1}function wa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function xa(a,b,c,d){if(null===b||"undefined"===typeof b||wa(a,b,c,d))return!0;if(d)return!1;
|
|
13
|
-
if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function
|
|
13
|
+
if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function l(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=ya.exec(a);if(b){var c="",d,g=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;
|
|
14
14
|
case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}g!==d&&(c+=a.substring(g,d));g=d+1;c+=b}a=g!==d?c+a.substring(g,d):c}return a}function za(a,b){var c=m.hasOwnProperty(a)?m[a]:null;var d;if(d="style"!==a)d=null!==c?0===c.type:!(2<a.length)||"o"!==a[0]&&"O"!==a[0]||"n"!==a[1]&&"N"!==a[1]?!1:!0;if(d||xa(a,b,c,!1))return"";if(null!==c){a=c.attributeName;d=c.type;if(3===d||4===d&&!0===b)return a+'=""';c.sanitizeURL&&(b=""+b);return a+"="+('"'+
|
|
15
|
-
C(b)+'"')}return fa(a)?a+"="+('"'+C(b)+'"'):""}function Aa(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}function
|
|
16
|
-
b(a):b}function na(a,b,c){
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
null==f.render){a=f;pa(a,
|
|
20
|
-
e[0];else{
|
|
21
|
-
var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,
|
|
22
|
-
60120,ca=
|
|
23
|
-
ha=Object.prototype.hasOwnProperty,ja={},ia={},m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){m[a]=new
|
|
24
|
-
2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){m[a]=new
|
|
25
|
-
new
|
|
26
|
-
a.replace(S,T);m[b]=new
|
|
27
|
-
"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){m[a]=new
|
|
28
|
-
0;g<d.length&&g<b.length;g++)if(!Ha(b[g],d[g])){d=!1;break a}d=!0}}if(d)return c[0]}}a=a();e.memoizedState=[a,b];return a},useReducer:na,useRef:function(a){
|
|
29
|
-
img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ja=x({menuitem:!0},qa),
|
|
30
|
-
lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ka=["Webkit","ms","Moz","O"];Object.keys(
|
|
31
|
-
ra={},V={},Pa=Object.prototype.hasOwnProperty,Qa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},sa=function(){function a(a,b){n.isValidElement(a)?a.type!==L?a=[a]:(a=a.props.children,a=n.isValidElement(a)?[a]:B(a)):a=B(a);a={type:null,domNamespace:"http://www.w3.org/1999/xhtml",children:a,childIndex:0,context:ea,footer:""};var c=q[0];if(0===c){var
|
|
32
|
-
q=z;q[0]=c+1;for(
|
|
33
|
-
|
|
34
|
-
U.current=Ia;try{for(var
|
|
35
|
-
if(!m)throw p(
|
|
36
|
-
""+a;if(""===g)return"";if(this.makeStaticMarkup)return C(g);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+C(g);this.previousWasTextNode=!0;return C(g)}b=Da(a,b,this.threadID);a=b.child;b=b.context;if(null===a||!1===a)return"";if(!n.isValidElement(a)){if(null!=a&&null!=a.$$typeof){g=a.$$typeof;if(g===W)throw p(
|
|
37
|
-
b,g);switch(c){case Y:case Ea:case X:case Z:case L:return a=B(a.props.children),this.stack.push({type:null,domNamespace:g,children:a,childIndex:0,context:b,footer:""}),"";case M:throw p(
|
|
38
|
-
domNamespace:g,children:a,childIndex:0,context:b,footer:""}),"";case N:return c=B(a.props.children),g={type:a,domNamespace:g,children:c,childIndex:0,context:b,footer:""},this.pushProvider(a),this.stack.push(g),"";case aa:c=a.type;d=a.props;var e=this.threadID;
|
|
39
|
-
a.props))],this.stack.push({type:null,domNamespace:g,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw p(
|
|
40
|
-
d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===c){var e=d.value;if(null==e){e=d.defaultValue;var f=d.children;if(null!=f){if(null!=e)throw p(
|
|
41
|
-
if(null!=f){var m=null!=d.value?d.value+"":
|
|
42
|
-
"object"!==typeof e.style)throw p(
|
|
43
|
-
|
|
44
|
-
e="</"+a.type+">");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=[],Na[c]&&"\n"===f.charAt(0)&&(w+="\n"),w+=f):d=B(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});
|
|
45
|
-
|
|
15
|
+
C(b)+'"')}return fa(a)?a+"="+('"'+C(b)+'"'):""}function Aa(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}function A(){if(null===u)throw Error(p(321));return u}function ka(){if(0<J)throw Error(p(312));return{memoizedState:null,queue:null,next:null}}function O(){null===e?null===K?(F=!1,K=e=ka()):(F=!0,e=K):null===e.next?(F=!1,e=e.next=ka()):(F=!0,e=e.next);return e}function la(a,b,c,d){for(;P;)P=!1,J+=1,e=null,c=a(b,d);K=u=null;J=0;e=t=null;return c}function ma(a,b){return"function"===typeof b?
|
|
16
|
+
b(a):b}function na(a,b,c){u=A();e=O();if(F){var d=e.queue;b=d.dispatch;if(null!==t&&(c=t.get(d),void 0!==c)){t.delete(d);d=e.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);e.memoizedState=d;return[d,b]}return[e.memoizedState,b]}a=a===ma?"function"===typeof b?b():b:void 0!==c?c(b):b;e.memoizedState=a;a=e.queue={last:null,dispatch:null};a=a.dispatch=Ba.bind(null,u,a);return[e.memoizedState,a]}function Ba(a,b,c){if(!(25>J))throw Error(p(301));if(a===u)if(P=!0,a={action:c,next:null},null===
|
|
17
|
+
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 Ca(a){if(void 0===a||null===a)return a;var b="";n.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function pa(a,b){if(void 0===a)throw Error(p(152,I(b)||"Component"));}function Da(a,b,c){function d(d,h){var f=
|
|
18
|
+
h.prototype&&h.prototype.isReactComponent,g=ua(h,b,c,f),v=[],z=!1,e={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===v)return null},enqueueReplaceState:function(a,c){z=!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||
|
|
19
|
+
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=z;v=null;z=!1;if(m&&1===e.length)f.state=
|
|
20
|
+
e[0];else{k=m?e[0]:f.state;var q=!0;for(m=m?1:0;m<e.length;m++){var r=e[m];r="function"===typeof r?r.call(f,k,d.props,g):r;null!=r&&(q?(q=!1,k=x({},k,r)):x(k,r))}f.state=k}}else v=null;a=f.render();pa(a,h);if("function"===typeof f.getChildContext&&(d=h.childContextTypes,"object"===typeof d)){var l=f.getChildContext();for(var n in l)if(!(n in d))throw Error(p(108,I(h)||"Unknown",n));}l&&(b=x({},b,l))}for(;n.isValidElement(a);){var g=a,h=g.type;if("function"!==typeof h)break;d(g,h)}return{child:a,context:b}}
|
|
21
|
+
var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,k="function"===typeof Symbol&&Symbol.for,W=k?Symbol.for("react.portal"):60106,L=k?Symbol.for("react.fragment"):60107,Y=k?Symbol.for("react.strict_mode"):60108,X=k?Symbol.for("react.profiler"):60114,N=k?Symbol.for("react.provider"):60109,aa=k?Symbol.for("react.context"):60110,Ea=k?Symbol.for("react.concurrent_mode"):60111,ba=k?Symbol.for("react.forward_ref"):60112,M=k?Symbol.for("react.suspense"):60113,Z=k?Symbol.for("react.suspense_list"):
|
|
22
|
+
60120,ca=k?Symbol.for("react.memo"):60115,da=k?Symbol.for("react.lazy"):60116,Fa=k?Symbol.for("react.fundamental"):60117,Ga=k?Symbol.for("react.scope"):60119;k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;k.hasOwnProperty("ReactCurrentDispatcher")||(k.ReactCurrentDispatcher={current:null});k.hasOwnProperty("ReactCurrentBatchConfig")||(k.ReactCurrentBatchConfig={suspense:null});for(var ea={},q=new Uint16Array(16),D=0;15>D;D++)q[D]=D+1;q[15]=0;var va=/^[: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]*$/,
|
|
23
|
+
ha=Object.prototype.hasOwnProperty,ja={},ia={},m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){m[a]=new l(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 l(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){m[a]=new l(a,
|
|
24
|
+
2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){m[a]=new l(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 l(a,3,!1,a.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(a){m[a]=
|
|
25
|
+
new l(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){m[a]=new l(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){m[a]=new l(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){m[a]=new l(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=
|
|
26
|
+
a.replace(S,T);m[b]=new l(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 l(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 l(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){m[a]=new l(a,1,!1,a.toLowerCase(),null,!1)});m.xlinkHref=new l("xlinkHref",1,!1,"xlink:href",
|
|
27
|
+
"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){m[a]=new l(a,1,!1,a.toLowerCase(),null,!0)});var ya=/["'&<>]/,Ha="function"===typeof Object.is?Object.is:Aa,u=null,K=null,e=null,F=!1,P=!1,t=null,J=0,G=0,Ia={readContext:function(a,b){b=G;E(a,b);return a[b]},useContext:function(a,b){A();b=G;E(a,b);return a[b]},useMemo:function(a,b){u=A();e=O();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=
|
|
28
|
+
0;g<d.length&&g<b.length;g++)if(!Ha(b[g],d[g])){d=!1;break a}d=!0}}if(d)return c[0]}}a=a();e.memoizedState=[a,b];return a},useReducer:na,useRef:function(a){u=A();e=O();var b=e.memoizedState;return null===b?(a={current:a},e.memoizedState=a):b},useState:function(a){return na(ma,a)},useLayoutEffect:function(a,b){},useCallback:function(a,b){return a},useImperativeHandle:Q,useEffect:Q,useDebugValue:Q,useResponder:function(a,b){return{props:b,responder:a}},useDeferredValue:function(a,b){A();return a},useTransition:function(a){A();
|
|
29
|
+
return[function(a){a()},!1]}},qa={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ja=x({menuitem:!0},qa),H={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,
|
|
30
|
+
gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ka=["Webkit","ms","Moz","O"];Object.keys(H).forEach(function(a){Ka.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);H[b]=H[a]})});var La=/([A-Z])/g,Ma=/^ms-/,B=n.Children.toArray,U=k.ReactCurrentDispatcher,
|
|
31
|
+
Na={listing:!0,pre:!0,textarea:!0},Oa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ra={},V={},Pa=Object.prototype.hasOwnProperty,Qa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},sa=function(){function a(a,b){n.isValidElement(a)?a.type!==L?a=[a]:(a=a.props.children,a=n.isValidElement(a)?[a]:B(a)):a=B(a);a={type:null,domNamespace:"http://www.w3.org/1999/xhtml",children:a,childIndex:0,context:ea,footer:""};var c=q[0];if(0===c){var h=q;c=h.length;var d=
|
|
32
|
+
2*c;if(!(65536>=d))throw Error(p(304));var z=new Uint16Array(d);z.set(h);q=z;q[0]=c+1;for(h=c;h<d-1;h++)q[h]=h+1;q[d-1]=0}else q[0]=q[c];this.threadID=c;this.stack=[a];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=b;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var b=a.prototype;b.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;q[a]=q[0];q[0]=a}};b.pushProvider=
|
|
33
|
+
function(a){var b=++this.contextIndex,c=a.type._context,h=this.threadID;E(c,h);var v=c[h];this.contextStack[b]=c;this.contextValueStack[b]=v;c[h]=a.props.value};b.popProvider=function(a){a=this.contextIndex;var b=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=c};b.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};b.read=function(a){if(this.exhausted)return null;
|
|
34
|
+
var b=G;G=this.threadID;var c=U.current;U.current=Ia;try{for(var h=[""],v=!1;h[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var z=this.threadID;q[z]=q[0];q[0]=z;break}var f=this.stack[this.stack.length-1];if(v||f.childIndex>=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===M){this.suspenseDepth--;
|
|
35
|
+
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)throw Error(p(294));throw R;}finally{}h.length<=this.suspenseDepth&&h.push("");h[this.suspenseDepth]+=n}}return h[0]}finally{U.current=c,G=b}};b.render=function(a,b,g){if("string"===
|
|
36
|
+
typeof a||"number"===typeof a){g=""+a;if(""===g)return"";if(this.makeStaticMarkup)return C(g);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+C(g);this.previousWasTextNode=!0;return C(g)}b=Da(a,b,this.threadID);a=b.child;b=b.context;if(null===a||!1===a)return"";if(!n.isValidElement(a)){if(null!=a&&null!=a.$$typeof){g=a.$$typeof;if(g===W)throw Error(p(257));throw Error(p(258,g.toString()));}a=B(a);this.stack.push({type:null,domNamespace:g,children:a,childIndex:0,context:b,footer:""});return""}var c=
|
|
37
|
+
a.type;if("string"===typeof c)return this.renderDOM(a,b,g);switch(c){case Y:case Ea:case X:case Z:case L:return a=B(a.props.children),this.stack.push({type:null,domNamespace:g,children:a,childIndex:0,context:b,footer:""}),"";case M:throw Error(p(294));}if("object"===typeof c&&null!==c)switch(c.$$typeof){case ba:u={};var d=c.render(a.props,a.ref);d=la(c.render,a.props,d,a.ref);d=B(d);this.stack.push({type:null,domNamespace:g,children:d,childIndex:0,context:b,footer:""});return"";case ca:return a=[n.createElement(c.type,
|
|
38
|
+
x({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:g,children:a,childIndex:0,context:b,footer:""}),"";case N:return c=B(a.props.children),g={type:a,domNamespace:g,children:c,childIndex:0,context:b,footer:""},this.pushProvider(a),this.stack.push(g),"";case aa:c=a.type;d=a.props;var e=this.threadID;E(c,e);c=B(d.children(c[e]));this.stack.push({type:a,domNamespace:g,children:c,childIndex:0,context:b,footer:""});return"";case Fa:throw Error(p(338));case da:switch(c=a.type,ta(c),c._status){case 1:return a=
|
|
39
|
+
[n.createElement(c._result,x({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:g,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw Error(p(295));}case Ga:throw Error(p(343));}throw Error(p(130,null==c?c:typeof c,""));};b.renderDOM=function(a,b,g){var c=a.type.toLowerCase();"http://www.w3.org/1999/xhtml"===g&&oa(c);if(!ra.hasOwnProperty(c)){if(!Oa.test(c))throw Error(p(65,c));ra[c]=!0}var d=a.props;if("input"===c)d=x({type:void 0},d,{defaultChecked:void 0,
|
|
40
|
+
defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===c){var e=d.value;if(null==e){e=d.defaultValue;var f=d.children;if(null!=f){if(null!=e)throw Error(p(92));if(Array.isArray(f)){if(!(1>=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;
|
|
41
|
+
var k=Ca(d.children);if(null!=f){var m=null!=d.value?d.value+"":k;e=!1;if(Array.isArray(f))for(var l=0;l<f.length;l++){if(""+f[l]===m){e=!0;break}}else e=""+f===m;d=x({selected:void 0,children:void 0},d,{selected:e,children:k})}}if(e=d){if(Ja[c]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(p(137,c,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(p(60));if(!("object"===typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML))throw Error(p(61));
|
|
42
|
+
}if(null!=e.style&&"object"!==typeof e.style)throw Error(p(62,""));}e=d;f=this.makeStaticMarkup;k=1===this.stack.length;m="<"+a.type;for(w in e)if(Pa.call(e,w)){var n=e[w];if(null!=n){if("style"===w){l=void 0;var q="",u="";for(l in n)if(n.hasOwnProperty(l)){var y=0===l.indexOf("--"),r=n[l];if(null!=r){if(y)var t=l;else if(t=l,V.hasOwnProperty(t))t=V[t];else{var A=t.replace(La,"-$1").toLowerCase().replace(Ma,"-ms-");t=V[t]=A}q+=u+t+":";u=l;y=null==r||"boolean"===typeof r||""===r?"":y||"number"!==typeof r||
|
|
43
|
+
0===r||H.hasOwnProperty(u)&&H[u]?(""+r).trim():r+"px";q+=y;u=";"}}n=q||null}l=null;b:if(y=c,r=e,-1===y.indexOf("-"))y="string"===typeof r.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?Qa.hasOwnProperty(w)||(l=w,l=fa(l)&&null!=n?l+"="+('"'+C(n)+'"'):""):l=za(w,n);l&&(m+=" "+l)}}f||k&&(m+=' data-reactroot=""');var w=m;e="";qa.hasOwnProperty(c)?
|
|
44
|
+
w+="/>":(w+=">",e="</"+a.type+">");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=[],Na[c]&&"\n"===f.charAt(0)&&(w+="\n"),w+=f):d=B(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});
|
|
45
|
+
this.previousWasTextNode=!1;return w};return a}();k={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.11.0"};k=(D={default:k},k)||D;return k.default||k});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.11.0
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -19,16 +19,8 @@ var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
|
19
19
|
var _assign = ReactInternals.assign;
|
|
20
20
|
|
|
21
21
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
22
|
-
// template literal strings. The messages will be
|
|
23
|
-
// build
|
|
24
|
-
|
|
25
|
-
// Do not require this module directly! Use normal `invariant` calls with
|
|
26
|
-
// template literal strings. The messages will be converted to ReactError during
|
|
27
|
-
// build, and in production they will be minified.
|
|
28
|
-
function ReactError(error) {
|
|
29
|
-
error.name = 'Invariant Violation';
|
|
30
|
-
return error;
|
|
31
|
-
}
|
|
22
|
+
// template literal strings. The messages will be replaced with error codes
|
|
23
|
+
// during build.
|
|
32
24
|
|
|
33
25
|
/**
|
|
34
26
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -196,9 +188,8 @@ var Hydrating =
|
|
|
196
188
|
|
|
197
189
|
// Trace which interactions trigger each commit.
|
|
198
190
|
|
|
199
|
-
//
|
|
191
|
+
// SSR experiments
|
|
200
192
|
|
|
201
|
-
// TODO: true? Here it might just be false.
|
|
202
193
|
|
|
203
194
|
// Only used in www builds.
|
|
204
195
|
|
|
@@ -213,9 +204,6 @@ var Hydrating =
|
|
|
213
204
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
214
205
|
|
|
215
206
|
|
|
216
|
-
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
|
|
217
|
-
// This is a flag so we can fix warnings in RN core before turning it on
|
|
218
|
-
|
|
219
207
|
// Experimental React Flare event system and event components support.
|
|
220
208
|
|
|
221
209
|
// Experimental Host Component support.
|
|
@@ -230,10 +218,6 @@ var Hydrating =
|
|
|
230
218
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
231
219
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
232
220
|
|
|
233
|
-
// Changes priority of some events like mousemove to user-blocking priority,
|
|
234
|
-
// but without making them discrete. The flag exists in case it causes
|
|
235
|
-
// starvation problems.
|
|
236
|
-
|
|
237
221
|
// Add a callback property to suspense to notify which promises are currently
|
|
238
222
|
// in the update queue. This allows reporting and tracing of what is causing
|
|
239
223
|
// the user to see a loading state.
|
|
@@ -288,13 +272,11 @@ function getNearestMountedFiber(fiber) {
|
|
|
288
272
|
|
|
289
273
|
|
|
290
274
|
function assertIsMounted(fiber) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
295
|
-
}
|
|
275
|
+
if (!(getNearestMountedFiber(fiber) === fiber)) {
|
|
276
|
+
{
|
|
277
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
296
278
|
}
|
|
297
|
-
}
|
|
279
|
+
}
|
|
298
280
|
}
|
|
299
281
|
|
|
300
282
|
function findCurrentFiberUsingSlowPath(fiber) {
|
|
@@ -304,13 +286,11 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
304
286
|
// If there is no alternate, then we only need to check if it is mounted.
|
|
305
287
|
var nearestMounted = getNearestMountedFiber(fiber);
|
|
306
288
|
|
|
307
|
-
(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
311
|
-
}
|
|
289
|
+
if (!(nearestMounted !== null)) {
|
|
290
|
+
{
|
|
291
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
312
292
|
}
|
|
313
|
-
}
|
|
293
|
+
}
|
|
314
294
|
|
|
315
295
|
if (nearestMounted !== fiber) {
|
|
316
296
|
return null;
|
|
@@ -375,13 +355,11 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
375
355
|
// way this could possibly happen is if this was unmounted, if at all.
|
|
376
356
|
|
|
377
357
|
|
|
378
|
-
|
|
358
|
+
{
|
|
379
359
|
{
|
|
380
|
-
|
|
381
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
382
|
-
}
|
|
360
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
383
361
|
}
|
|
384
|
-
}
|
|
362
|
+
}
|
|
385
363
|
}
|
|
386
364
|
|
|
387
365
|
if (a.return !== b.return) {
|
|
@@ -440,34 +418,28 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
440
418
|
_child = _child.sibling;
|
|
441
419
|
}
|
|
442
420
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
throw ReactError(Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."));
|
|
447
|
-
}
|
|
421
|
+
if (!didFindChild) {
|
|
422
|
+
{
|
|
423
|
+
throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
|
|
448
424
|
}
|
|
449
|
-
}
|
|
425
|
+
}
|
|
450
426
|
}
|
|
451
427
|
}
|
|
452
428
|
|
|
453
|
-
(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
throw ReactError(Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."));
|
|
457
|
-
}
|
|
429
|
+
if (!(a.alternate === b)) {
|
|
430
|
+
{
|
|
431
|
+
throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
|
|
458
432
|
}
|
|
459
|
-
}
|
|
433
|
+
}
|
|
460
434
|
} // If the root is not a host container, we're in a disconnected tree. I.e.
|
|
461
435
|
// unmounted.
|
|
462
436
|
|
|
463
437
|
|
|
464
|
-
(
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
468
|
-
}
|
|
438
|
+
if (!(a.tag === HostRoot)) {
|
|
439
|
+
{
|
|
440
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
469
441
|
}
|
|
470
|
-
}
|
|
442
|
+
}
|
|
471
443
|
|
|
472
444
|
if (a.stateNode.current === a) {
|
|
473
445
|
// We've determined that A is the current branch.
|
|
@@ -740,13 +712,11 @@ function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
|
|
|
740
712
|
function releasePooledEvent(event) {
|
|
741
713
|
var EventConstructor = this;
|
|
742
714
|
|
|
743
|
-
(
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
throw ReactError(Error("Trying to release an event instance into a pool of a different type."));
|
|
747
|
-
}
|
|
715
|
+
if (!(event instanceof EventConstructor)) {
|
|
716
|
+
{
|
|
717
|
+
throw Error("Trying to release an event instance into a pool of a different type.");
|
|
748
718
|
}
|
|
749
|
-
}
|
|
719
|
+
}
|
|
750
720
|
|
|
751
721
|
event.destructor();
|
|
752
722
|
|
|
@@ -1341,13 +1311,11 @@ function validateClassInstance(inst, methodName) {
|
|
|
1341
1311
|
received = stringified;
|
|
1342
1312
|
}
|
|
1343
1313
|
|
|
1344
|
-
|
|
1314
|
+
{
|
|
1345
1315
|
{
|
|
1346
|
-
|
|
1347
|
-
throw ReactError(Error(methodName + "(...): the first argument must be a React class instance. Instead received: " + received + "."));
|
|
1348
|
-
}
|
|
1316
|
+
throw Error(methodName + "(...): the first argument must be a React class instance. Instead received: " + received + ".");
|
|
1349
1317
|
}
|
|
1350
|
-
}
|
|
1318
|
+
}
|
|
1351
1319
|
}
|
|
1352
1320
|
/**
|
|
1353
1321
|
* Utilities for making it easy to test React components.
|
|
@@ -1430,13 +1398,11 @@ var ReactTestUtils = {
|
|
|
1430
1398
|
var classList = className.split(/\s+/);
|
|
1431
1399
|
|
|
1432
1400
|
if (!Array.isArray(classNames)) {
|
|
1433
|
-
(
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
throw ReactError(Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument."));
|
|
1437
|
-
}
|
|
1401
|
+
if (!(classNames !== undefined)) {
|
|
1402
|
+
{
|
|
1403
|
+
throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
|
|
1438
1404
|
}
|
|
1439
|
-
}
|
|
1405
|
+
}
|
|
1440
1406
|
|
|
1441
1407
|
classNames = classNames.split(/\s+/);
|
|
1442
1408
|
}
|
|
@@ -1572,21 +1538,17 @@ var ReactTestUtils = {
|
|
|
1572
1538
|
|
|
1573
1539
|
function makeSimulator(eventType) {
|
|
1574
1540
|
return function (domNode, eventData) {
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
throw ReactError(Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering."));
|
|
1579
|
-
}
|
|
1541
|
+
if (!!React.isValidElement(domNode)) {
|
|
1542
|
+
{
|
|
1543
|
+
throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
|
|
1580
1544
|
}
|
|
1581
|
-
}
|
|
1545
|
+
}
|
|
1582
1546
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
throw ReactError(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."));
|
|
1587
|
-
}
|
|
1547
|
+
if (!!ReactTestUtils.isCompositeComponent(domNode)) {
|
|
1548
|
+
{
|
|
1549
|
+
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
1550
|
}
|
|
1589
|
-
}
|
|
1551
|
+
}
|
|
1590
1552
|
|
|
1591
1553
|
var dispatchConfig = eventNameDispatchConfigs[eventType];
|
|
1592
1554
|
var fakeNativeEvent = new Event();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.11.0
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'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.ReactTestUtils=m(k.React,k.ReactDOM)})(this,function(k,m){function l(a){for(var b=
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
'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.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;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
10
|
+
function F(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function G(a){if(F(a)!==a)throw Error(l(188));}function P(a){var b=a.alternate;if(!b){b=F(a);if(null===b)throw Error(l(188));return b!==a?null:a}for(var c=a,e=b;;){var d=c.return;if(null===d)break;var h=d.alternate;if(null===h){e=d.return;if(null!==e){c=e;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===c)return G(d),a;if(h===
|
|
11
|
+
e)return G(d),b;h=h.sibling}throw Error(l(188));}if(c.return!==e.return)c=d,e=h;else{for(var f=!1,g=d.child;g;){if(g===c){f=!0;c=d;e=h;break}if(g===e){f=!0;e=d;c=h;break}g=g.sibling}if(!f){for(g=h.child;g;){if(g===c){f=!0;c=h;e=d;break}if(g===e){f=!0;e=h;c=d;break}g=g.sibling}if(!f)throw Error(l(189));}}if(c.alternate!==e)throw Error(l(190));}if(3!==c.tag)throw Error(l(188));return c.stateNode.current===c?a:b}function u(){return!0}function v(){return!1}function q(a,b,c,e){this.dispatchConfig=a;this._targetInst=
|
|
12
|
+
b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?u:v;this.isPropagationStopped=v;return this}function Q(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}function R(a){if(!(a instanceof this))throw Error(l(279));a.destructor();10>this.eventPool.length&&
|
|
13
|
+
this.eventPool.push(a)}function H(a){a.eventPool=[];a.getPooled=Q;a.release=R}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 J(a){try{B(),S(function(){B()?J(a):a()})}catch(b){a(b)}}function K(a){}function T(a,b){if(!a)return[];a=P(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||
|
|
14
|
+
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 U(a){return function(b,c){if(k.isValidElement(b))throw Error(l(228));
|
|
15
|
+
if(g.isCompositeComponent(b))throw Error(l(229));var e=L[a],d=new K;d.target=b;d.type=a.toLowerCase();var h=V(b),f=new q(e,h,d,b);f.persist();r(f,c);e.phasedRegistrationNames?W(f):X(f);m.unstable_batchedUpdates(function(){Y(b);Z(f)});aa()}}function ba(a,b){return function(c,e){var d=new K(a);r(d,e);g.isDOMComponent(c)?(c=ca(c),d.target=c,M(b,1,d)):c.tagName&&(d.target=c,M(b,1,d))}}var r=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,f=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
16
16
|
f.hasOwnProperty("ReactCurrentDispatcher")||(f.ReactCurrentDispatcher={current:null});f.hasOwnProperty("ReactCurrentBatchConfig")||(f.ReactCurrentBatchConfig={suspense:null});r(q.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&&
|
|
17
17
|
(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}});q.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||
|
|
18
18
|
Date.now()},defaultPrevented:null,isTrusted:null};q.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;r(e,b.prototype);b.prototype=e;b.prototype.constructor=b;b.Interface=r({},c.Interface,a);b.extend=c.extend;H(b);return b};H(q);var C=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p={animationend:w("Animation","AnimationEnd"),animationiteration:w("Animation",
|
|
@@ -20,7 +20,7 @@ Date.now()},defaultPrevented:null,isTrusted:null};q.extend=function(a){function
|
|
|
20
20
|
7);var t=(module&&module[y])("timers").setImmediate}catch(a){t=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}var S=t;t=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_flushAllWithoutAsserting;y=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var ha=y[11],D=y[12],ia=m.unstable_batchedUpdates,E=f.IsSomeRendererActing,N="function"===typeof t,B=t||function(){for(var a=!1;ha();)a=!0;return a},z=0,O=!1,ca=m.findDOMNode;f=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;
|
|
21
21
|
var V=f[0],L=f[4],W=f[5],X=f[6],Y=f[7],aa=f[8],M=f[9],Z=f[10],g={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 g.isDOMComponent(a)?!1:null!=a&&"function"===
|
|
22
22
|
typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return g.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){n(a,"findAllInRenderedTree");return a?T(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){n(a,"scryRenderedDOMComponentsWithClass");return g.findAllInRenderedTree(a,function(a){if(g.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=
|
|
23
|
-
c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw l(
|
|
23
|
+
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=g.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 g.findAllInRenderedTree(a,
|
|
24
24
|
function(a){return g.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){n(a,"findRenderedDOMComponentWithTag");a=g.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 g.findAllInRenderedTree(a,function(a){return g.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,
|
|
25
25
|
b){n(a,"findRenderedComponentWithType");a=g.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=
|
|
26
26
|
c;D.current=e}!1===O&&(O=!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=ia(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<z||!0===N&&!0===c?(b(),a()):J(function(c){b();c?e(c):a()})},function(a){b();e(a)})}};try{1!==z||!1!==N&&!1!==c||B(),b()}catch(h){throw b(),h;}return{then:function(a){a()}}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.11.0
|
|
2
2
|
* react-dom-unstable-native-dependencies.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -16,16 +16,8 @@
|
|
|
16
16
|
}(this, (function (ReactDOM,React) { 'use strict';
|
|
17
17
|
|
|
18
18
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
19
|
-
// template literal strings. The messages will be
|
|
20
|
-
// build
|
|
21
|
-
|
|
22
|
-
// Do not require this module directly! Use normal `invariant` calls with
|
|
23
|
-
// template literal strings. The messages will be converted to ReactError during
|
|
24
|
-
// build, and in production they will be minified.
|
|
25
|
-
function ReactError(error) {
|
|
26
|
-
error.name = 'Invariant Violation';
|
|
27
|
-
return error;
|
|
28
|
-
}
|
|
19
|
+
// template literal strings. The messages will be replaced with error codes
|
|
20
|
+
// during build.
|
|
29
21
|
|
|
30
22
|
/**
|
|
31
23
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -253,13 +245,11 @@ function executeDirectDispatch(event) {
|
|
|
253
245
|
var dispatchListener = event._dispatchListeners;
|
|
254
246
|
var dispatchInstance = event._dispatchInstances;
|
|
255
247
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
throw ReactError(Error("executeDirectDispatch(...): Invalid `event`."));
|
|
260
|
-
}
|
|
248
|
+
if (!!Array.isArray(dispatchListener)) {
|
|
249
|
+
{
|
|
250
|
+
throw Error("executeDirectDispatch(...): Invalid `event`.");
|
|
261
251
|
}
|
|
262
|
-
}
|
|
252
|
+
}
|
|
263
253
|
|
|
264
254
|
event.currentTarget = dispatchListener ? getNodeFromInstance$1(dispatchInstance) : null;
|
|
265
255
|
var res = dispatchListener ? dispatchListener(event) : null;
|
|
@@ -469,13 +459,11 @@ function traverseTwoPhase(inst, fn, arg) {
|
|
|
469
459
|
*/
|
|
470
460
|
|
|
471
461
|
function accumulateInto(current, next) {
|
|
472
|
-
(
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
throw ReactError(Error("accumulateInto(...): Accumulated items must not be null or undefined."));
|
|
476
|
-
}
|
|
462
|
+
if (!(next != null)) {
|
|
463
|
+
{
|
|
464
|
+
throw Error("accumulateInto(...): Accumulated items must not be null or undefined.");
|
|
477
465
|
}
|
|
478
|
-
}
|
|
466
|
+
}
|
|
479
467
|
|
|
480
468
|
if (current == null) {
|
|
481
469
|
return next;
|
|
@@ -599,13 +587,11 @@ function getListener(inst, registrationName) {
|
|
|
599
587
|
return null;
|
|
600
588
|
}
|
|
601
589
|
|
|
602
|
-
(function
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
throw ReactError(Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."));
|
|
606
|
-
}
|
|
590
|
+
if (!(!listener || typeof listener === 'function')) {
|
|
591
|
+
{
|
|
592
|
+
throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type.");
|
|
607
593
|
}
|
|
608
|
-
}
|
|
594
|
+
}
|
|
609
595
|
|
|
610
596
|
return listener;
|
|
611
597
|
}
|
|
@@ -981,13 +967,11 @@ function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
|
|
|
981
967
|
function releasePooledEvent(event) {
|
|
982
968
|
var EventConstructor = this;
|
|
983
969
|
|
|
984
|
-
(
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
throw ReactError(Error("Trying to release an event instance into a pool of a different type."));
|
|
988
|
-
}
|
|
970
|
+
if (!(event instanceof EventConstructor)) {
|
|
971
|
+
{
|
|
972
|
+
throw Error("Trying to release an event instance into a pool of a different type.");
|
|
989
973
|
}
|
|
990
|
-
}
|
|
974
|
+
}
|
|
991
975
|
|
|
992
976
|
event.destructor();
|
|
993
977
|
|
|
@@ -1099,13 +1083,11 @@ function resetTouchRecord(touchRecord, touch) {
|
|
|
1099
1083
|
function getTouchIdentifier(_ref) {
|
|
1100
1084
|
var identifier = _ref.identifier;
|
|
1101
1085
|
|
|
1102
|
-
(
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
throw ReactError(Error("Touch object is missing identifier."));
|
|
1106
|
-
}
|
|
1086
|
+
if (!(identifier != null)) {
|
|
1087
|
+
{
|
|
1088
|
+
throw Error("Touch object is missing identifier.");
|
|
1107
1089
|
}
|
|
1108
|
-
}
|
|
1090
|
+
}
|
|
1109
1091
|
|
|
1110
1092
|
{
|
|
1111
1093
|
!(identifier <= MAX_TOUCH_BANK) ? warningWithoutStack$1(false, 'Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK) : void 0;
|
|
@@ -1224,13 +1206,11 @@ var ResponderTouchHistoryStore = {
|
|
|
1224
1206
|
*/
|
|
1225
1207
|
|
|
1226
1208
|
function accumulate(current, next) {
|
|
1227
|
-
(
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
throw ReactError(Error("accumulate(...): Accumulated items must not be null or undefined."));
|
|
1231
|
-
}
|
|
1209
|
+
if (!(next != null)) {
|
|
1210
|
+
{
|
|
1211
|
+
throw Error("accumulate(...): Accumulated items must not be null or undefined.");
|
|
1232
1212
|
}
|
|
1233
|
-
}
|
|
1213
|
+
}
|
|
1234
1214
|
|
|
1235
1215
|
if (current == null) {
|
|
1236
1216
|
return next;
|