react-dom 16.6.0-alpha.8af6728 → 16.6.3
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/cjs/react-dom-server.browser.development.js +637 -166
- package/cjs/react-dom-server.browser.production.min.js +37 -35
- package/cjs/react-dom-server.node.development.js +644 -169
- package/cjs/react-dom-server.node.production.min.js +39 -37
- package/cjs/react-dom-test-utils.development.js +18 -58
- package/cjs/react-dom-test-utils.production.min.js +5 -5
- package/cjs/react-dom-unstable-native-dependencies.development.js +11 -50
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/cjs/react-dom.development.js +2401 -1042
- package/cjs/react-dom.production.min.js +208 -202
- package/cjs/react-dom.profiling.min.js +229 -220
- package/package.json +21 -4
- package/umd/react-dom-server.browser.development.js +685 -214
- package/umd/react-dom-server.browser.production.min.js +33 -29
- package/umd/react-dom-test-utils.development.js +18 -58
- package/umd/react-dom-test-utils.production.min.js +18 -18
- package/umd/react-dom-unstable-native-dependencies.development.js +11 -50
- package/umd/react-dom-unstable-native-dependencies.production.min.js +2 -2
- package/umd/react-dom.development.js +2402 -1042
- package/umd/react-dom.production.min.js +193 -189
- package/umd/react-dom.profiling.min.js +198 -194
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-server.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,39 +7,41 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var p=require("object-assign"),q=require("react"),aa=require("stream");function ba(a,b,
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
["
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function T(a){switch(a){case "
|
|
24
|
-
var U=
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
d,
|
|
30
|
-
1===
|
|
31
|
-
context:b}}
|
|
32
|
-
var Z=function(){function a(b,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
!1;
|
|
44
|
-
|
|
45
|
-
!1
|
|
10
|
+
'use strict';var p=require("object-assign"),q=require("react"),aa=require("stream");function ba(a,b,f,c,e,d,h,g){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var B=[f,c,e,d,h,g],A=0;a=Error(b.replace(/%s/g,function(){return B[A++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
|
+
function u(a){for(var b=arguments.length-1,f="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)f+="&args[]="+encodeURIComponent(arguments[c+1]);ba(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",f)}
|
|
12
|
+
var w="function"===typeof Symbol&&Symbol.for,y=w?Symbol.for("react.portal"):60106,z=w?Symbol.for("react.fragment"):60107,C=w?Symbol.for("react.strict_mode"):60108,D=w?Symbol.for("react.profiler"):60114,E=w?Symbol.for("react.provider"):60109,F=w?Symbol.for("react.context"):60110,G=w?Symbol.for("react.concurrent_mode"):60111,H=w?Symbol.for("react.forward_ref"):60112,I=w?Symbol.for("react.suspense"):60113,J=w?Symbol.for("react.memo"):60115,ca=w?Symbol.for("react.lazy"):60116;
|
|
13
|
+
function L(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 G:return"ConcurrentMode";case z:return"Fragment";case y:return"Portal";case D:return"Profiler";case C:return"StrictMode";case I:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");
|
|
14
|
+
case J:return L(a.type);case ca:if(a=1===a._status?a._result:null)return L(a)}return null}var da=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ea={};function M(a,b){for(var f=a._threadCount;f<=b;f++)a[f]=a._currentValue2,a._threadCount=f+1}function fa(a,b,f){var c=a.contextType;if("object"===typeof c&&null!==c)return M(c,f),c[f];if(a=a.contextTypes){f={};for(var e in a)f[e]=b[e];b=f}else b=ea;return b}for(var N=new Uint16Array(16),O=0;15>O;O++)N[O]=O+1;N[15]=0;
|
|
15
|
+
var ha=/^[: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,ja={},ka={};
|
|
16
|
+
function la(a){if(ia.call(ka,a))return!0;if(ia.call(ja,a))return!1;if(ha.test(a))return ka[a]=!0;ja[a]=!0;return!1}function ma(a,b,f,c){if(null!==f&&0===f.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==f)return!f.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
|
|
17
|
+
function na(a,b,f,c){if(null===b||"undefined"===typeof b||ma(a,b,f,c))return!0;if(c)return!1;if(null!==f)switch(f.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 P(a,b,f,c,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=f;this.propertyName=a;this.type=b}var Q={};
|
|
18
|
+
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){Q[a]=new P(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];Q[b]=new P(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){Q[a]=new P(a,2,!1,a.toLowerCase(),null)});
|
|
19
|
+
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){Q[a]=new P(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){Q[a]=new P(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){Q[a]=new P(a,3,!0,a,null)});
|
|
20
|
+
["capture","download"].forEach(function(a){Q[a]=new P(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){Q[a]=new P(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){Q[a]=new P(a,5,!1,a.toLowerCase(),null)});var R=/[\-:]([a-z])/g;function S(a){return a[1].toUpperCase()}
|
|
21
|
+
"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(R,
|
|
22
|
+
S);Q[b]=new P(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(R,S);Q[b]=new P(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(R,S);Q[b]=new P(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});Q.tabIndex=new P("tabIndex",1,!1,"tabindex",null);var oa=/["'&<>]/;
|
|
23
|
+
function T(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=oa.exec(a);if(b){var f="",c,e=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}e!==c&&(f+=a.substring(e,c));e=c+1;f+=b}a=e!==c?f+a.substring(e,c):f}return a}var pa=!1;function qa(a,b,f,c){for(;pa;)pa=!1,f=a(b,c);return f}
|
|
24
|
+
var U=0,ra={readContext:function(a){var b=U;M(a,b);return a[b]}},sa={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ta(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"}}
|
|
25
|
+
var ua={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},va=p({menuitem:!0},ua),V={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,gridColumnEnd:!0,gridColumnSpan:!0,
|
|
26
|
+
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},wa=["Webkit","ms","Moz","O"];Object.keys(V).forEach(function(a){wa.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);V[b]=V[a]})});
|
|
27
|
+
var xa=/([A-Z])/g,ya=/^ms-/,W=q.Children.toArray,X=da.ReactCurrentOwner,za={listing:!0,pre:!0,textarea:!0},Aa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ba={},Y={};function Ca(a){if(void 0===a||null===a)return a;var b="";q.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Da=Object.prototype.hasOwnProperty,Ea={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Fa(a,b){void 0===a&&u("152",L(b)||"Component")}
|
|
28
|
+
function Ga(a,b,f){function c(e,c){var d=fa(c,b,f),g=[],h=!1,l={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===g)return null},enqueueReplaceState:function(a,b){h=!0;g=[b]},enqueueSetState:function(a,b){if(null===g)return null;g.push(b)}},k=void 0;if(c.prototype&&c.prototype.isReactComponent){if(k=new c(e.props,d,l),"function"===typeof c.getDerivedStateFromProps){var r=c.getDerivedStateFromProps.call(null,e.props,k.state);null!=r&&(k.state=p({},k.state,r))}}else if(k=c(e.props,
|
|
29
|
+
d,l),k=qa(c,e.props,k,d),null==k||null==k.render){a=k;Fa(a,c);return}k.props=e.props;k.context=d;k.updater=l;l=k.state;void 0===l&&(k.state=l=null);if("function"===typeof k.UNSAFE_componentWillMount||"function"===typeof k.componentWillMount)if("function"===typeof k.componentWillMount&&"function"!==typeof c.getDerivedStateFromProps&&k.componentWillMount(),"function"===typeof k.UNSAFE_componentWillMount&&"function"!==typeof c.getDerivedStateFromProps&&k.UNSAFE_componentWillMount(),g.length){l=g;var m=
|
|
30
|
+
h;g=null;h=!1;if(m&&1===l.length)k.state=l[0];else{r=m?l[0]:k.state;var t=!0;for(m=m?1:0;m<l.length;m++){var v=l[m];v="function"===typeof v?v.call(k,r,e.props,d):v;null!=v&&(t?(t=!1,r=p({},r,v)):p(r,v))}k.state=r}}else g=null;a=k.render();Fa(a,c);e=void 0;if("function"===typeof k.getChildContext&&(d=c.childContextTypes,"object"===typeof d)){e=k.getChildContext();for(var K in e)K in d?void 0:u("108",L(c)||"Unknown",K)}e&&(b=p({},b,e))}for(;q.isValidElement(a);){var e=a,d=e.type;if("function"!==typeof d)break;
|
|
31
|
+
c(e,d)}return{child:a,context:b}}
|
|
32
|
+
var Z=function(){function a(b,f){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");q.isValidElement(b)?b.type!==z?b=[b]:(b=b.props.children,b=q.isValidElement(b)?[b]:W(b)):b=W(b);b={type:null,domNamespace:sa.html,children:b,childIndex:0,context:ea,footer:""};var c=N[0];if(0===c){var e=N;c=e.length;var d=2*c;65536>=d?void 0:u("304");var h=new Uint16Array(d);h.set(e);N=h;N[0]=c+1;for(e=c;e<d-1;e++)N[e]=e+1;N[d-1]=0}else N[0]=N[c];this.threadID=c;this.stack=[b];this.exhausted=
|
|
33
|
+
!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=f;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;var a=this.threadID;N[a]=N[0];N[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,e=this.threadID;M(c,e);var d=c[e];this.contextStack[b]=c;this.contextValueStack[b]=d;c[e]=a.props.value};a.prototype.popProvider=function(){var a=
|
|
34
|
+
this.contextIndex,f=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;f[this.threadID]=c};a.prototype.read=function(a){if(this.exhausted)return null;var b=U;U=this.threadID;var c=X.currentDispatcher;X.currentDispatcher=ra;try{for(var e=[""],d=!1;e[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;N[h]=N[0];N[0]=h;break}var g=this.stack[this.stack.length-1];if(d||g.childIndex>=g.children.length){var B=
|
|
35
|
+
g.footer;""!==B&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===g.type)this.currentSelectValue=null;else if(null!=g.type&&null!=g.type.type&&g.type.type.$$typeof===E)this.popProvider(g.type);else if(g.type===I){this.suspenseDepth--;var A=e.pop();if(d){d=!1;var n=g.fallbackFrame;n?void 0:u("303");this.stack.push(n);continue}else e[this.suspenseDepth]+=A}e[this.suspenseDepth]+=B}else{var l=g.children[g.childIndex++],k="";try{k+=this.render(l,g.context,g.domNamespace)}catch(r){throw r;
|
|
36
|
+
}finally{}e.length<=this.suspenseDepth&&e.push("");e[this.suspenseDepth]+=k}}return e[0]}finally{X.currentDispatcher=c,U=b}};a.prototype.render=function(a,f,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return T(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+T(c);this.previousWasTextNode=!0;return T(c)}f=Ga(a,f,this.threadID);a=f.child;f=f.context;if(null===a||!1===a)return"";if(!q.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;
|
|
37
|
+
b===y?u("257"):void 0;u("258",b.toString())}a=W(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:f,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,f,c);switch(b){case C:case G:case D:case z:return a=W(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:f,footer:""}),"";case I:u("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case H:var d=b.render(a.props,a.ref);d=qa(b.render,a.props,d,a.ref);
|
|
38
|
+
d=W(d);this.stack.push({type:null,domNamespace:c,children:d,childIndex:0,context:f,footer:""});return"";case J:return a=[q.createElement(b.type,p({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:f,footer:""}),"";case E:return b=W(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:f,footer:""},this.pushProvider(a),this.stack.push(c),"";case F:b=a.type;d=a.props;var h=this.threadID;M(b,h);b=W(d.children(b[h]));this.stack.push({type:a,
|
|
39
|
+
domNamespace:c,children:b,childIndex:0,context:f,footer:""});return"";case ca:u("295")}u("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,f,c){var b=a.type.toLowerCase();c===sa.html&&ta(b);Ba.hasOwnProperty(b)||(Aa.test(b)?void 0:u("65",b),Ba[b]=!0);var d=a.props;if("input"===b)d=p({type:void 0},d,{defaultChecked:void 0,defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===b){var h=d.value;if(null==h){h=
|
|
40
|
+
d.defaultValue;var g=d.children;null!=g&&(null!=h?u("92"):void 0,Array.isArray(g)&&(1>=g.length?void 0:u("93"),g=g[0]),h=""+g);null==h&&(h="")}d=p({},d,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=p({},d,{value:void 0});else if("option"===b){g=this.currentSelectValue;var B=Ca(d.children);if(null!=g){var A=null!=d.value?d.value+"":B;h=!1;if(Array.isArray(g))for(var n=0;n<g.length;n++){if(""+g[n]===A){h=!0;break}}else h=""+g===A;d=
|
|
41
|
+
p({selected:void 0,children:void 0},d,{selected:h,children:B})}}if(h=d)va[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?u("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?u("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?void 0:u("61")),null!=h.style&&"object"!==typeof h.style?u("62",""):void 0;h=d;g=this.makeStaticMarkup;B=1===this.stack.length;A="<"+a.type;for(x in h)if(Da.call(h,x)){var l=h[x];if(null!=l){if("style"===
|
|
42
|
+
x){n=void 0;var k="",r="";for(n in l)if(l.hasOwnProperty(n)){var m=0===n.indexOf("--"),t=l[n];if(null!=t){var v=n;if(Y.hasOwnProperty(v))v=Y[v];else{var K=v.replace(xa,"-$1").toLowerCase().replace(ya,"-ms-");v=Y[v]=K}k+=r+v+":";r=n;m=null==t||"boolean"===typeof t||""===t?"":m||"number"!==typeof t||0===t||V.hasOwnProperty(r)&&V[r]?(""+t).trim():t+"px";k+=m;r=";"}}l=k||null}n=null;b:if(m=b,t=h,-1===m.indexOf("-"))m="string"===typeof t.is;else switch(m){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":m=
|
|
43
|
+
!1;break b;default:m=!0}if(m)Ea.hasOwnProperty(x)||(n=x,n=la(n)&&null!=l?n+"="+('"'+T(l)+'"'):"");else{m=x;n=l;l=Q.hasOwnProperty(m)?Q[m]:null;if(t="style"!==m)t=null!==l?0===l.type:!(2<m.length)||"o"!==m[0]&&"O"!==m[0]||"n"!==m[1]&&"N"!==m[1]?!1:!0;t||na(m,n,l,!1)?n="":null!==l?(m=l.attributeName,l=l.type,n=3===l||4===l&&!0===n?m+'=""':m+"="+('"'+T(n)+'"')):n=la(m)?m+"="+('"'+T(n)+'"'):""}n&&(A+=" "+n)}}g||B&&(A+=' data-reactroot=""');var x=A;h="";ua.hasOwnProperty(b)?x+="/>":(x+=">",h="</"+a.type+
|
|
44
|
+
">");a:{g=d.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=d.children,"string"===typeof g||"number"===typeof g){g=T(g);break a}g=null}null!=g?(d=[],za[b]&&"\n"===g.charAt(0)&&(x+="\n"),x+=g):d=W(d.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?ta(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:d,childIndex:0,context:f,footer:h});this.previousWasTextNode=
|
|
45
|
+
!1;return x};return a}();function Ha(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}
|
|
46
|
+
var Ia=function(a){function b(f,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.partialRenderer=new Z(f,c);return e}Ha(b,a);b.prototype._destroy=function(){this.partialRenderer.destroy()};b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.destroy(c)}};return b}(aa.Readable),
|
|
47
|
+
Ja={renderToString:function(a){a=new Z(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Z(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(a){return new Ia(a,!1)},renderToStaticNodeStream:function(a){return new Ia(a,!0)},version:"16.6.3"},Ka={default:Ja},La=Ka&&Ja||Ka;module.exports=La.default||La;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -90,63 +90,24 @@ var warningWithoutStack = function () {};
|
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
if (typeof console !== 'undefined') {
|
|
93
|
-
var
|
|
93
|
+
var argsWithFormat = args.map(function (item) {
|
|
94
94
|
return '' + item;
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
f = _args$map[5],
|
|
102
|
-
g = _args$map[6],
|
|
103
|
-
h = _args$map[7];
|
|
104
|
-
|
|
105
|
-
var message = 'Warning: ' + format;
|
|
106
|
-
|
|
107
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
108
|
-
// https://github.com/facebook/react/issues/13610
|
|
109
|
-
switch (args.length) {
|
|
110
|
-
case 0:
|
|
111
|
-
console.error(message);
|
|
112
|
-
break;
|
|
113
|
-
case 1:
|
|
114
|
-
console.error(message, a);
|
|
115
|
-
break;
|
|
116
|
-
case 2:
|
|
117
|
-
console.error(message, a, b);
|
|
118
|
-
break;
|
|
119
|
-
case 3:
|
|
120
|
-
console.error(message, a, b, c);
|
|
121
|
-
break;
|
|
122
|
-
case 4:
|
|
123
|
-
console.error(message, a, b, c, d);
|
|
124
|
-
break;
|
|
125
|
-
case 5:
|
|
126
|
-
console.error(message, a, b, c, d, e);
|
|
127
|
-
break;
|
|
128
|
-
case 6:
|
|
129
|
-
console.error(message, a, b, c, d, e, f);
|
|
130
|
-
break;
|
|
131
|
-
case 7:
|
|
132
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
133
|
-
break;
|
|
134
|
-
case 8:
|
|
135
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
136
|
-
break;
|
|
137
|
-
default:
|
|
138
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
139
|
-
}
|
|
95
|
+
});
|
|
96
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
97
|
+
|
|
98
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
99
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
100
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
140
101
|
}
|
|
141
102
|
try {
|
|
142
103
|
// --- Welcome to debugging React ---
|
|
143
104
|
// This error was thrown as a convenience so that you can use this stack
|
|
144
105
|
// to find the callsite that caused this warning to fire.
|
|
145
106
|
var argIndex = 0;
|
|
146
|
-
var
|
|
107
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
147
108
|
return args[argIndex++];
|
|
148
109
|
});
|
|
149
|
-
throw new Error(
|
|
110
|
+
throw new Error(message);
|
|
150
111
|
} catch (x) {}
|
|
151
112
|
};
|
|
152
113
|
}
|
|
@@ -180,14 +141,12 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
|
|
|
180
141
|
// nor polyfill, then a plain number is used for performance.
|
|
181
142
|
|
|
182
143
|
var FunctionComponent = 0;
|
|
183
|
-
var
|
|
184
|
-
var ClassComponent = 2;
|
|
185
|
-
var ClassComponentLazy = 3;
|
|
144
|
+
var ClassComponent = 1;
|
|
186
145
|
// Before we know whether it is function or class
|
|
187
|
-
var HostRoot =
|
|
146
|
+
var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
|
|
188
147
|
// A subtree. Could be an entry point to a different renderer.
|
|
189
|
-
var HostComponent =
|
|
190
|
-
var HostText =
|
|
148
|
+
var HostComponent = 5;
|
|
149
|
+
var HostText = 6;
|
|
191
150
|
|
|
192
151
|
// Don't change these two values. They're used by React Dev Tools.
|
|
193
152
|
var NoEffect = /* */0;
|
|
@@ -204,7 +163,8 @@ var Placement = /* */2;
|
|
|
204
163
|
|
|
205
164
|
|
|
206
165
|
|
|
207
|
-
|
|
166
|
+
|
|
167
|
+
// Passive & Update & Callback & Ref & Snapshot
|
|
208
168
|
|
|
209
169
|
|
|
210
170
|
// Union of all host effects
|
|
@@ -931,7 +891,7 @@ function findAllInRenderedFiberTreeInternal(fiber, test) {
|
|
|
931
891
|
var node = currentParent;
|
|
932
892
|
var ret = [];
|
|
933
893
|
while (true) {
|
|
934
|
-
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag ===
|
|
894
|
+
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent) {
|
|
935
895
|
var publicInst = node.stateNode;
|
|
936
896
|
if (test(publicInst)) {
|
|
937
897
|
ret.push(publicInst);
|
|
@@ -1215,7 +1175,7 @@ function makeSimulator(eventType) {
|
|
|
1215
1175
|
// Normally extractEvent enqueues a state restore, but we'll just always
|
|
1216
1176
|
// do that since we we're by-passing it here.
|
|
1217
1177
|
enqueueStateRestore(domNode);
|
|
1218
|
-
runEventsInBatch(event
|
|
1178
|
+
runEventsInBatch(event);
|
|
1219
1179
|
});
|
|
1220
1180
|
restoreStateIfNeeded();
|
|
1221
1181
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
|
|
10
10
|
'use strict';var g=require("object-assign"),l=require("react"),m=require("react-dom");function n(a,b,c,e,d,k,f,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[c,e,d,k,f,h],M=0;a=Error(b.replace(/%s/g,function(){return L[M++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
11
|
function p(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=0;e<b;e++)c+="&args[]="+encodeURIComponent(arguments[e+1]);n(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}
|
|
12
|
-
function q(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return
|
|
12
|
+
function q(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function r(a){2!==q(a)?p("188"):void 0}
|
|
13
13
|
function t(a){var b=a.alternate;if(!b)return b=q(a),3===b?p("188"):void 0,1===b?null:a;for(var c=a,e=b;;){var d=c.return,k=d?d.alternate:null;if(!d||!k)break;if(d.child===k.child){for(var f=d.child;f;){if(f===c)return r(d),a;if(f===e)return r(d),b;f=f.sibling}p("188")}if(c.return!==e.return)c=d,e=k;else{f=!1;for(var h=d.child;h;){if(h===c){f=!0;c=d;e=k;break}if(h===e){f=!0;e=d;c=k;break}h=h.sibling}if(!f){for(h=k.child;h;){if(h===c){f=!0;c=k;e=d;break}if(h===e){f=!0;e=k;c=d;break}h=h.sibling}f?void 0:
|
|
14
|
-
p("189")}}c.alternate!==e?p("190"):void 0}
|
|
14
|
+
p("189")}}c.alternate!==e?p("190"):void 0}3!==c.tag?p("188"):void 0;return c.stateNode.current===c?a:b}function u(){return!0}function v(){return!1}function w(a,b,c,e){this.dispatchConfig=a;this._targetInst=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}
|
|
15
15
|
g(w.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]=
|
|
16
16
|
null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=v;this._dispatchInstances=this._dispatchListeners=null}});w.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};
|
|
17
17
|
w.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;g(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=g({},e.Interface,a);c.extend=e.extend;x(c);return c};x(w);function y(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 z(a){a instanceof this?void 0:p("279");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}
|
|
18
18
|
function x(a){a.eventPool=[];a.getPooled=y;a.release=z}var A=!("undefined"===typeof window||!window.document||!window.document.createElement);function B(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var C={animationend:B("Animation","AnimationEnd"),animationiteration:B("Animation","AnimationIteration"),animationstart:B("Animation","AnimationStart"),transitionend:B("Transition","TransitionEnd")},D={},E={};
|
|
19
19
|
A&&(E=document.createElement("div").style,"AnimationEvent"in window||(delete C.animationend.animation,delete C.animationiteration.animation,delete C.animationstart.animation),"TransitionEvent"in window||delete C.transitionend.transition);function F(a){if(D[a])return D[a];if(!C[a])return a;var b=C[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in E)return D[a]=b[c];return a}
|
|
20
20
|
var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=m.findDOMNode,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=N[0],P=N[4],Q=N[5],R=N[6],S=N[7],aa=N[8],T=N[9],ba=N[10];function U(){}
|
|
21
|
-
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(
|
|
21
|
+
function ca(a,b){if(!a)return[];a=t(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}}}
|
|
22
22
|
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;p("286",b,a)}}
|
|
23
23
|
var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.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,
|
|
24
24
|
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?ca(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+/);Array.isArray(b)||(void 0===b?p("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==
|
|
25
25
|
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,
|
|
26
26
|
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: "+
|
|
27
27
|
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}};
|
|
28
|
-
function da(a){return function(b,c){l.isValidElement(b)?p("228"):void 0;W.isCompositeComponent(b)?p("229"):void 0;var e=P[a],d=new U;d.target=b;d.type=a.toLowerCase();var k=O(b),f=new w(e,k,d,b);f.persist();g(f,c);e.phasedRegistrationNames?Q(f):R(f);m.unstable_batchedUpdates(function(){S(b);ba(f
|
|
28
|
+
function da(a){return function(b,c){l.isValidElement(b)?p("228"):void 0;W.isCompositeComponent(b)?p("229"):void 0;var e=P[a],d=new U;d.target=b;d.type=a.toLowerCase();var k=O(b),f=new w(e,k,d,b);f.persist();g(f,c);e.phasedRegistrationNames?Q(f):R(f);m.unstable_batchedUpdates(function(){S(b);ba(f)});aa()}}W.Simulate={};var X=void 0;for(X in P)W.Simulate[X]=da(X);
|
|
29
29
|
function ea(a,b){return function(c,e){var d=new U(a);g(d,e);W.isDOMComponent(c)?(c=K(c),d.target=c,T(b,d)):c.tagName&&(d.target=c,T(b,d))}}
|
|
30
30
|
[["abort","abort"],[G,"animationEnd"],[H,"animationIteration"],[I,"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"],
|
|
31
31
|
["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"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-unstable-native-dependencies.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -150,63 +150,24 @@ var warningWithoutStack = function () {};
|
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
if (typeof console !== 'undefined') {
|
|
153
|
-
var
|
|
153
|
+
var argsWithFormat = args.map(function (item) {
|
|
154
154
|
return '' + item;
|
|
155
|
-
})
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
f = _args$map[5],
|
|
162
|
-
g = _args$map[6],
|
|
163
|
-
h = _args$map[7];
|
|
164
|
-
|
|
165
|
-
var message = 'Warning: ' + format;
|
|
166
|
-
|
|
167
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
168
|
-
// https://github.com/facebook/react/issues/13610
|
|
169
|
-
switch (args.length) {
|
|
170
|
-
case 0:
|
|
171
|
-
console.error(message);
|
|
172
|
-
break;
|
|
173
|
-
case 1:
|
|
174
|
-
console.error(message, a);
|
|
175
|
-
break;
|
|
176
|
-
case 2:
|
|
177
|
-
console.error(message, a, b);
|
|
178
|
-
break;
|
|
179
|
-
case 3:
|
|
180
|
-
console.error(message, a, b, c);
|
|
181
|
-
break;
|
|
182
|
-
case 4:
|
|
183
|
-
console.error(message, a, b, c, d);
|
|
184
|
-
break;
|
|
185
|
-
case 5:
|
|
186
|
-
console.error(message, a, b, c, d, e);
|
|
187
|
-
break;
|
|
188
|
-
case 6:
|
|
189
|
-
console.error(message, a, b, c, d, e, f);
|
|
190
|
-
break;
|
|
191
|
-
case 7:
|
|
192
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
193
|
-
break;
|
|
194
|
-
case 8:
|
|
195
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
196
|
-
break;
|
|
197
|
-
default:
|
|
198
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
199
|
-
}
|
|
155
|
+
});
|
|
156
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
157
|
+
|
|
158
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
159
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
160
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
200
161
|
}
|
|
201
162
|
try {
|
|
202
163
|
// --- Welcome to debugging React ---
|
|
203
164
|
// This error was thrown as a convenience so that you can use this stack
|
|
204
165
|
// to find the callsite that caused this warning to fire.
|
|
205
166
|
var argIndex = 0;
|
|
206
|
-
var
|
|
167
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
207
168
|
return args[argIndex++];
|
|
208
169
|
});
|
|
209
|
-
throw new Error(
|
|
170
|
+
throw new Error(message);
|
|
210
171
|
} catch (x) {}
|
|
211
172
|
};
|
|
212
173
|
}
|
|
@@ -323,7 +284,7 @@ function hasDispatches(event) {
|
|
|
323
284
|
// Before we know whether it is function or class
|
|
324
285
|
// Root of a host tree. Could be nested inside another node.
|
|
325
286
|
// A subtree. Could be an entry point to a different renderer.
|
|
326
|
-
var HostComponent =
|
|
287
|
+
var HostComponent = 5;
|
|
327
288
|
|
|
328
289
|
function getParent(inst) {
|
|
329
290
|
do {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react-dom-unstable-native-dependencies.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
'use strict';var k=require("react-dom"),l=require("object-assign");function aa(a,b,c,f,e,d,g,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[c,f,e,d,g,h],ba=0;a=Error(b.replace(/%s/g,function(){return u[ba++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
11
11
|
function m(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)c+="&args[]="+encodeURIComponent(arguments[f+1]);aa(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}var n=null,p=null,q=null;
|
|
12
|
-
function r(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?m("103"):void 0;a.currentTarget=b?q(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&
|
|
12
|
+
function r(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?m("103"):void 0;a.currentTarget=b?q(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function v(a,b,c){for(var f=[];a;)f.push(a),a=t(a);for(a=f.length;0<a--;)b(f[a],"captured",c);for(a=0;a<f.length;a++)b(f[a],"bubbled",c)}
|
|
13
13
|
function w(a,b){null==b?m("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function x(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}
|
|
14
14
|
function y(a,b){var c=a.stateNode;if(!c)return null;var f=n(c);if(!f)return null;c=f[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(f=!f.disabled)||(a=a.type,f=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!f;break a;default:a=!1}if(a)return null;c&&"function"!==typeof c?m("231",b,typeof c):void 0;
|
|
15
15
|
return c}function z(a,b,c){if(b=y(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=w(c._dispatchListeners,b),c._dispatchInstances=w(c._dispatchInstances,a)}function ca(a){a&&a.dispatchConfig.phasedRegistrationNames&&v(a._targetInst,z,a)}function da(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;v(b,z,a)}}
|