react-dom
Advanced tools
Comparing version 0.0.0-50b50c26f to 0.0.0-5faf377df
{ | ||
"branch": "master", | ||
"buildNumber": "14970", | ||
"checksum": "32f1c37", | ||
"commit": "50b50c26f", | ||
"buildNumber": "54423", | ||
"checksum": "3b849cc", | ||
"commit": "5faf377df", | ||
"environment": "ci", | ||
"reactVersion": "16.8.6-canary-50b50c26f" | ||
"reactVersion": "16.10.2-5faf377df" | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-server.browser.production.min.js | ||
@@ -10,44 +10,46 @@ * | ||
'use strict';var l=require("object-assign"),n=require("react");function r(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d]);return Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")} | ||
var t="function"===typeof Symbol&&Symbol.for,aa=t?Symbol.for("react.portal"):60106,v=t?Symbol.for("react.fragment"):60107,ba=t?Symbol.for("react.strict_mode"):60108,ca=t?Symbol.for("react.profiler"):60114,x=t?Symbol.for("react.provider"):60109,da=t?Symbol.for("react.context"):60110,ea=t?Symbol.for("react.concurrent_mode"):60111,fa=t?Symbol.for("react.forward_ref"):60112,A=t?Symbol.for("react.suspense"):60113,ha=t?Symbol.for("react.memo"):60115,ia=t?Symbol.for("react.lazy"):60116,ja=t?Symbol.for("react.event_component"): | ||
60117,ka=t?Symbol.for("react.event_target"):60118;t&&Symbol.for("react.event_target.touch_hit"); | ||
function B(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 v:return"Fragment";case aa:return"Portal";case ca:return"Profiler";case ba:return"StrictMode";case A:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case da:return"Context.Consumer";case x:return"Context.Provider";case fa:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case ha:return B(a.type); | ||
case ia:if(a=1===a._status?a._result:null)return B(a)}return null}var C=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;C.hasOwnProperty("ReactCurrentDispatcher")||(C.ReactCurrentDispatcher={current:null});C.hasOwnProperty("ReactCurrentBatchConfig")||(C.ReactCurrentBatchConfig={suspense:null});var la={};function D(a,b){for(var d=a._threadCount|0;d<=b;d++)a[d]=a._currentValue2,a._threadCount=d+1} | ||
function ma(a,b,d){var c=a.contextType;if("object"===typeof c&&null!==c)return D(c,d),c[d];if(a=a.contextTypes){d={};for(var f in a)d[f]=b[f];b=d}else b=la;return b}for(var E=new Uint16Array(16),G=0;15>G;G++)E[G]=G+1;E[15]=0; | ||
var na=/^[: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]*$/,oa=Object.prototype.hasOwnProperty,pa={},qa={}; | ||
function ra(a){if(oa.call(qa,a))return!0;if(oa.call(pa,a))return!1;if(na.test(a))return qa[a]=!0;pa[a]=!0;return!1}function sa(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}} | ||
function ta(a,b,d,c){if(null===b||"undefined"===typeof b||sa(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.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 I(a,b,d,c,f,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=e}var J={}; | ||
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style hydrateTouchHitTarget".split(" ").forEach(function(a){J[a]=new I(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];J[b]=new I(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){J[a]=new I(a,2,!1,a.toLowerCase(),null,!1)}); | ||
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){J[a]=new I(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){J[a]=new I(a,3,!1,a.toLowerCase(),null,!1)}); | ||
["checked","multiple","muted","selected"].forEach(function(a){J[a]=new I(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){J[a]=new I(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){J[a]=new I(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null,!1)});var K=/[\-:]([a-z])/g;function L(a){return a[1].toUpperCase()} | ||
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(K, | ||
L);J[b]=new I(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(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null,!1)}); | ||
J.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null,!0)});var ua=/["'&<>]/; | ||
function M(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ua.exec(a);if(b){var d="",c,f=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}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a} | ||
function va(a,b){var d=J.hasOwnProperty(a)?J[a]:null;var c;if(c="style"!==a)c=null!==d?0===d.type:!(2<a.length)||"o"!==a[0]&&"O"!==a[0]||"n"!==a[1]&&"N"!==a[1]?!1:!0;if(c||ta(a,b,d,!1))return"";if(null!==d){a=d.attributeName;c=d.type;if(3===c||4===c&&!0===b)return a+'=""';d.sanitizeURL&&(b=""+b);return a+"="+('"'+M(b)+'"')}return ra(a)?a+"="+('"'+M(b)+'"'):""}var N=null,O=null,P=null,Q=!1,R=!1,T=null,U=0;function V(){if(null===N)throw r(321);return N} | ||
function wa(){if(0<U)throw r(312);return{memoizedState:null,queue:null,next:null}}function W(){null===P?null===O?(Q=!1,O=P=wa()):(Q=!0,P=O):null===P.next?(Q=!1,P=P.next=wa()):(Q=!0,P=P.next);return P}function xa(a,b,d,c){for(;R;)R=!1,U+=1,P=null,d=a(b,c);O=N=null;U=0;P=T=null;return d}function ya(a,b){return"function"===typeof b?b(a):b} | ||
function za(a,b,d){N=V();P=W();if(Q){var c=P.queue;b=c.dispatch;if(null!==T&&(d=T.get(c),void 0!==d)){T.delete(c);c=P.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);P.memoizedState=c;return[c,b]}return[P.memoizedState,b]}a=a===ya?"function"===typeof b?b():b:void 0!==d?d(b):b;P.memoizedState=a;a=P.queue={last:null,dispatch:null};a=a.dispatch=Aa.bind(null,N,a);return[P.memoizedState,a]} | ||
function Aa(a,b,d){if(!(25>U))throw r(301);if(a===N)if(R=!0,a={action:d,next:null},null===T&&(T=new Map),d=T.get(b),void 0===d)T.set(b,a);else{for(b=d;null!==b.next;)b=b.next;b.next=a}}function Ba(){} | ||
var X=0,Ca={readContext:function(a){var b=X;D(a,b);return a[b]},useContext:function(a){V();var b=X;D(a,b);return a[b]},useMemo:function(a,b){N=V();P=W();b=void 0===b?null:b;if(null!==P){var d=P.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f<c.length&&f<b.length;f++){var e=b[f],h=c[f];if((e!==h||0===e&&1/e!==1/h)&&(e===e||h===h)){c=!1;break a}}c=!0}}if(c)return d[0]}}a=a();P.memoizedState=[a,b];return a},useReducer:za,useRef:function(a){N=V();P=W();var b=P.memoizedState; | ||
return null===b?(a={current:a},P.memoizedState=a):b},useState:function(a){return za(ya,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ba,useEffect:Ba,useDebugValue:Ba},Da={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ea(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"}} | ||
var Fa={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},Ga=l({menuitem:!0},Fa),Y={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, | ||
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},Ha=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Ha.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})}); | ||
var Ia=/([A-Z])/g,Ja=/^ms-/,Z=n.Children.toArray,Ka=C.ReactCurrentDispatcher,La={listing:!0,pre:!0,textarea:!0},Ma=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Na={},Oa={};function Pa(a){if(void 0===a||null===a)return a;var b="";n.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Qa=Object.prototype.hasOwnProperty,Ra={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Sa(a,b){if(void 0===a)throw r(152,B(b)||"Component");} | ||
function Ta(a,b,d){function c(c,f){var e=ma(f,b,d),g=[],h=!1,m={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(f.prototype&&f.prototype.isReactComponent){if(k=new f(c.props,e,m),"function"===typeof f.getDerivedStateFromProps){var u=f.getDerivedStateFromProps.call(null,c.props,k.state);null!=u&&(k.state=l({},k.state,u))}}else if(N={},k=f(c.props, | ||
e,m),k=xa(f,c.props,k,e),null==k||null==k.render){a=k;Sa(a,f);return}k.props=c.props;k.context=e;k.updater=m;m=k.state;void 0===m&&(k.state=m=null);if("function"===typeof k.UNSAFE_componentWillMount||"function"===typeof k.componentWillMount)if("function"===typeof k.componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&k.componentWillMount(),"function"===typeof k.UNSAFE_componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&k.UNSAFE_componentWillMount(),g.length){m=g;var q= | ||
h;g=null;h=!1;if(q&&1===m.length)k.state=m[0];else{u=q?m[0]:k.state;var y=!0;for(q=q?1:0;q<m.length;q++){var w=m[q];w="function"===typeof w?w.call(k,u,c.props,e):w;null!=w&&(y?(y=!1,u=l({},u,w)):l(u,w))}k.state=u}}else g=null;a=k.render();Sa(a,f);c=void 0;if("function"===typeof k.getChildContext&&(e=f.childContextTypes,"object"===typeof e)){c=k.getChildContext();for(var S in c)if(!(S in e))throw r(108,B(f)||"Unknown",S);}c&&(b=l({},b,c))}for(;n.isValidElement(a);){var f=a,e=f.type;if("function"!== | ||
typeof e)break;c(f,e)}return{child:a,context:b}} | ||
var Ua=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");n.isValidElement(b)?b.type!==v?b=[b]:(b=b.props.children,b=n.isValidElement(b)?[b]:Z(b)):b=Z(b);b={type:null,domNamespace:Da.html,children:b,childIndex:0,context:la,footer:""};var c=E[0];if(0===c){var f=E;c=f.length;var e=2*c;if(!(65536>=e))throw r(304);var h=new Uint16Array(e);h.set(f);E=h;E[0]=c+1;for(f=c;f<e-1;f++)E[f]=f+1;E[e-1]=0}else E[0]=E[c];this.threadID=c;this.stack=[b];this.exhausted= | ||
!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;E[a]=E[0];E[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,f=this.threadID;D(c,f);var e=c[f];this.contextStack[b]=c;this.contextValueStack[b]=e;c[f]=a.props.value};a.prototype.popProvider= | ||
function(){var a=this.contextIndex,d=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;d[this.threadID]=c};a.prototype.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};a.prototype.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=Ka.current;Ka.current=Ca;try{for(var f=[""],e=!1;f[0].length<a;){if(0===this.stack.length){this.exhausted= | ||
!0;var h=this.threadID;E[h]=E[0];E[0]=h;break}var g=this.stack[this.stack.length-1];if(e||g.childIndex>=g.children.length){var H=g.footer;""!==H&&(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===x)this.popProvider(g.type);else if(g.type===A){this.suspenseDepth--;var F=f.pop();if(e){e=!1;var p=g.fallbackFrame;if(!p)throw r(303);this.stack.push(p);f[this.suspenseDepth]+="\x3c!--$!--\x3e"; | ||
continue}else f[this.suspenseDepth]+=F}f[this.suspenseDepth]+=H}else{var m=g.children[g.childIndex++],k="";try{k+=this.render(m,g.context,g.domNamespace)}catch(u){throw u;}finally{}f.length<=this.suspenseDepth&&f.push("");f[this.suspenseDepth]+=k}}return f[0]}finally{Ka.current=c,X=b}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return M(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+M(c);this.previousWasTextNode= | ||
!0;return M(c)}d=Ta(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!n.isValidElement(a)){if(null!=a&&null!=a.$$typeof){c=a.$$typeof;if(c===aa)throw r(257);throw r(258,c.toString());}a=Z(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}var b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case ba:case ea:case ca:case v:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0, | ||
context:d,footer:""}),"";case A:throw r(294);}if("object"===typeof b&&null!==b)switch(b.$$typeof){case fa:N={};var e=b.render(a.props,a.ref);e=xa(b.render,a.props,e,a.ref);e=Z(e);this.stack.push({type:null,domNamespace:c,children:e,childIndex:0,context:d,footer:""});return"";case ha:return a=[n.createElement(b.type,l({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case x:return b=Z(a.props.children),c={type:a,domNamespace:c,children:b, | ||
childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case da:b=a.type;e=a.props;var h=this.threadID;D(b,h);b=Z(e.children(b[h]));this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""});return"";case ja:case ka:throw r(335);case ia:throw r(295);}throw r(130,null==b?b:typeof b,"");};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();c===Da.html&&Ea(b);if(!Na.hasOwnProperty(b)){if(!Ma.test(b))throw r(65,b);Na[b]=!0}var e=a.props;if("input"=== | ||
b)e=l({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:e.defaultChecked});else if("textarea"===b){var h=e.value;if(null==h){h=e.defaultValue;var g=e.children;if(null!=g){if(null!=h)throw r(92);if(Array.isArray(g)){if(!(1>=g.length))throw r(93);g=g[0]}h=""+g}null==h&&(h="")}e=l({},e,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=e.value?e.value:e.defaultValue,e=l({},e,{value:void 0}); | ||
else if("option"===b){g=this.currentSelectValue;var H=Pa(e.children);if(null!=g){var F=null!=e.value?e.value+"":H;h=!1;if(Array.isArray(g))for(var p=0;p<g.length;p++){if(""+g[p]===F){h=!0;break}}else h=""+g===F;e=l({selected:void 0,children:void 0},e,{selected:h,children:H})}}if(h=e){if(Ga[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML))throw r(137,b,"");if(null!=h.dangerouslySetInnerHTML){if(null!=h.children)throw r(60);if(!("object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML))throw r(61); | ||
}if(null!=h.style&&"object"!==typeof h.style)throw r(62,"");}h=e;g=this.makeStaticMarkup;H=1===this.stack.length;F="<"+a.type;for(z in h)if(Qa.call(h,z)){var m=h[z];if(null!=m){if("style"===z){p=void 0;var k="",u="";for(p in m)if(m.hasOwnProperty(p)){var q=0===p.indexOf("--"),y=m[p];if(null!=y){var w=p;if(Oa.hasOwnProperty(w))w=Oa[w];else{var S=w.replace(Ia,"-$1").toLowerCase().replace(Ja,"-ms-");w=Oa[w]=S}k+=u+w+":";u=p;q=null==y||"boolean"===typeof y||""===y?"":q||"number"!==typeof y||0===y||Y.hasOwnProperty(u)&& | ||
Y[u]?(""+y).trim():y+"px";k+=q;u=";"}}m=k||null}p=null;b:if(q=b,y=h,-1===q.indexOf("-"))q="string"===typeof y.is;else switch(q){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":q=!1;break b;default:q=!0}q?Ra.hasOwnProperty(z)||(p=z,p=ra(p)&&null!=m?p+"="+('"'+M(m)+'"'):""):p=va(z,m);p&&(F+=" "+p)}}g||H&&(F+=' data-reactroot=""');var z=F;h="";Fa.hasOwnProperty(b)?z+="/>":(z+=">", | ||
h="</"+a.type+">");a:{g=e.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,"string"===typeof g||"number"===typeof g){g=M(g);break a}g=null}null!=g?(e=[],La[b]&&"\n"===g.charAt(0)&&(z+="\n"),z+=g):e=Z(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?Ea(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:e,childIndex:0,context:d,footer:h});this.previousWasTextNode= | ||
!1;return z};return a}(),Va={renderToString:function(a){a=new Ua(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Ua(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw r(207);},renderToStaticNodeStream:function(){throw r(208);},version:"16.8.6-canary-50b50c26f"},Wa={default:Va},Xa=Wa&&Va||Wa;module.exports=Xa.default||Xa; | ||
'use strict';var k=require("object-assign"),l=require("react");function q(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."} | ||
var t="function"===typeof Symbol&&Symbol.for,aa=t?Symbol.for("react.portal"):60106,u=t?Symbol.for("react.fragment"):60107,ba=t?Symbol.for("react.strict_mode"):60108,ca=t?Symbol.for("react.profiler"):60114,w=t?Symbol.for("react.provider"):60109,da=t?Symbol.for("react.context"):60110,ea=t?Symbol.for("react.concurrent_mode"):60111,fa=t?Symbol.for("react.forward_ref"):60112,B=t?Symbol.for("react.suspense"):60113,ha=t?Symbol.for("react.suspense_list"):60120,ia=t?Symbol.for("react.memo"):60115,ja=t?Symbol.for("react.lazy"): | ||
60116,ka=t?Symbol.for("react.fundamental"):60117,la=t?Symbol.for("react.scope"):60119,C=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;C.hasOwnProperty("ReactCurrentDispatcher")||(C.ReactCurrentDispatcher={current:null});C.hasOwnProperty("ReactCurrentBatchConfig")||(C.ReactCurrentBatchConfig={suspense:null}); | ||
function ma(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 D(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 u:return"Fragment";case aa:return"Portal";case ca:return"Profiler";case ba:return"StrictMode";case B:return"Suspense";case ha:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case da:return"Context.Consumer";case w:return"Context.Provider";case fa:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef"); | ||
case ia:return D(a.type);case ja:if(a=1===a._status?a._result:null)return D(a)}return null}var na={};function E(a,b){for(var c=a._threadCount|0;c<=b;c++)a[c]=a._currentValue2,a._threadCount=c+1}function oa(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={};for(var f in a)c[f]=b[f];b=c}else b=na;return b}for(var F=new Uint16Array(16),H=0;15>H;H++)F[H]=H+1;F[15]=0; | ||
var pa=/^[: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]*$/,qa=Object.prototype.hasOwnProperty,ra={},sa={}; | ||
function ta(a){if(qa.call(sa,a))return!0;if(qa.call(ra,a))return!1;if(pa.test(a))return sa[a]=!0;ra[a]=!0;return!1}function ua(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 va(a,b,c,d){if(null===b||"undefined"===typeof b||ua(a,b,c,d))return!0;if(d)return!1;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 J(a,b,c,d,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g}var K={}; | ||
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){K[a]=new J(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];K[b]=new J(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){K[a]=new J(a,2,!1,a.toLowerCase(),null,!1)}); | ||
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){K[a]=new J(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){K[a]=new J(a,3,!1,a.toLowerCase(),null,!1)}); | ||
["checked","multiple","muted","selected"].forEach(function(a){K[a]=new J(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){K[a]=new J(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){K[a]=new J(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){K[a]=new J(a,5,!1,a.toLowerCase(),null,!1)});var L=/[\-:]([a-z])/g;function M(a){return a[1].toUpperCase()} | ||
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(L, | ||
M);K[b]=new J(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(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!1)}); | ||
K.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!0)});var wa=/["'&<>]/; | ||
function N(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=wa.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b}a=f!==d?c+a.substring(f,d):c}return a} | ||
function xa(a,b){var c=K.hasOwnProperty(a)?K[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||va(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+"="+('"'+N(b)+'"')}return ta(a)?a+"="+('"'+N(b)+'"'):""}function ya(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b} | ||
var za="function"===typeof Object.is?Object.is:ya,O=null,P=null,Q=null,R=!1,S=!1,U=null,V=0;function W(){if(null===O)throw Error(q(321));return O}function Aa(){if(0<V)throw Error(q(312));return{memoizedState:null,queue:null,next:null}}function Ba(){null===Q?null===P?(R=!1,P=Q=Aa()):(R=!0,Q=P):null===Q.next?(R=!1,Q=Q.next=Aa()):(R=!0,Q=Q.next);return Q}function Ca(a,b,c,d){for(;S;)S=!1,V+=1,Q=null,c=a(b,d);P=O=null;V=0;Q=U=null;return c}function Da(a,b){return"function"===typeof b?b(a):b} | ||
function Ea(a,b,c){O=W();Q=Ba();if(R){var d=Q.queue;b=d.dispatch;if(null!==U&&(c=U.get(d),void 0!==c)){U.delete(d);d=Q.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);Q.memoizedState=d;return[d,b]}return[Q.memoizedState,b]}a=a===Da?"function"===typeof b?b():b:void 0!==c?c(b):b;Q.memoizedState=a;a=Q.queue={last:null,dispatch:null};a=a.dispatch=Fa.bind(null,O,a);return[Q.memoizedState,a]} | ||
function Fa(a,b,c){if(!(25>V))throw Error(q(301));if(a===O)if(S=!0,a={action:c,next:null},null===U&&(U=new Map),c=U.get(b),void 0===c)U.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Ga(){} | ||
var X=0,Ha={readContext:function(a){var b=X;E(a,b);return a[b]},useContext:function(a){W();var b=X;E(a,b);return a[b]},useMemo:function(a,b){O=W();Q=Ba();b=void 0===b?null:b;if(null!==Q){var c=Q.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!za(b[f],d[f])){d=!1;break a}d=!0}}if(d)return c[0]}}a=a();Q.memoizedState=[a,b];return a},useReducer:Ea,useRef:function(a){O=W();Q=Ba();var b=Q.memoizedState;return null===b?(a={current:a},Q.memoizedState= | ||
a):b},useState:function(a){return Ea(Da,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ga,useEffect:Ga,useDebugValue:Ga,useResponder:function(a,b){return{props:b,responder:a}},useDeferredValue:function(a){W();return a},useTransition:function(){W();return[function(a){a()},!1]}},Ia={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}; | ||
function Ja(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"}} | ||
var Ka={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},La=k({menuitem:!0},Ka),Y={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, | ||
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},Ma=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Ma.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})}); | ||
var Na=/([A-Z])/g,Oa=/^ms-/,Z=l.Children.toArray,Pa=C.ReactCurrentDispatcher,Qa={listing:!0,pre:!0,textarea:!0},Ra=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Sa={},Ta={};function Ua(a){if(void 0===a||null===a)return a;var b="";l.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Va=Object.prototype.hasOwnProperty,Wa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Xa(a,b){if(void 0===a)throw Error(q(152,D(b)||"Component"));} | ||
function Ya(a,b,c){function d(d,g){var e=g.prototype&&g.prototype.isReactComponent,f=oa(g,b,c,e),x=[],h=!1,m={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===x)return null},enqueueReplaceState:function(a,c){h=!0;x=[c]},enqueueSetState:function(a,c){if(null===x)return null;x.push(c)}};if(e){if(e=new g(d.props,f,m),"function"===typeof g.getDerivedStateFromProps){var v=g.getDerivedStateFromProps.call(null,d.props,e.state);null!=v&&(e.state=k({},e.state,v))}}else if(O={},e=g(d.props, | ||
f,m),e=Ca(g,d.props,e,f),null==e||null==e.render){a=e;Xa(a,g);return}e.props=d.props;e.context=f;e.updater=m;m=e.state;void 0===m&&(e.state=m=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof g.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof g.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),x.length){m=x;var r= | ||
h;x=null;h=!1;if(r&&1===m.length)e.state=m[0];else{v=r?m[0]:e.state;var y=!0;for(r=r?1:0;r<m.length;r++){var p=m[r];p="function"===typeof p?p.call(e,v,d.props,f):p;null!=p&&(y?(y=!1,v=k({},v,p)):k(v,p))}e.state=v}}else x=null;a=e.render();Xa(a,g);if("function"===typeof e.getChildContext&&(d=g.childContextTypes,"object"===typeof d)){var A=e.getChildContext();for(var T in A)if(!(T in d))throw Error(q(108,D(g)||"Unknown",T));}A&&(b=k({},b,A))}for(;l.isValidElement(a);){var f=a,g=f.type;if("function"!== | ||
typeof g)break;d(f,g)}return{child:a,context:b}} | ||
var Za=function(){function a(a,b){l.isValidElement(a)?a.type!==u?a=[a]:(a=a.props.children,a=l.isValidElement(a)?[a]:Z(a)):a=Z(a);a={type:null,domNamespace:Ia.html,children:a,childIndex:0,context:na,footer:""};var c=F[0];if(0===c){var g=F;c=g.length;var d=2*c;if(!(65536>=d))throw Error(q(304));var h=new Uint16Array(d);h.set(g);F=h;F[0]=c+1;for(g=c;g<d-1;g++)F[g]=g+1;F[d-1]=0}else F[0]=F[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;F[a]=F[0];F[0]=a}};b.pushProvider=function(a){var c=++this.contextIndex,b=a.type._context,g=this.threadID;E(b,g);var x=b[g];this.contextStack[c]=b;this.contextValueStack[c]=x;b[g]=a.props.value};b.popProvider=function(){var a=this.contextIndex,b=this.contextStack[a],f=this.contextValueStack[a]; | ||
this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=f};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;var b=X;X=this.threadID;var c=Pa.current;Pa.current=Ha;try{for(var g=[""],x=!1;g[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;F[h]=F[0];F[0]=h;break}var e=this.stack[this.stack.length-1];if(x||e.childIndex>= | ||
e.children.length){var I=e.footer;""!==I&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===w)this.popProvider(e.type);else if(e.type===B){this.suspenseDepth--;var G=g.pop();if(x){x=!1;var n=e.fallbackFrame;if(!n)throw Error(q(303));this.stack.push(n);g[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else g[this.suspenseDepth]+=G}g[this.suspenseDepth]+=I}else{var m=e.children[e.childIndex++], | ||
v="";try{v+=this.render(m,e.context,e.domNamespace)}catch(r){if(null!=r&&"function"===typeof r.then)throw Error(q(294));throw r;}finally{}g.length<=this.suspenseDepth&&g.push("");g[this.suspenseDepth]+=v}}return g[0]}finally{Pa.current=c,X=b}};b.render=function(a,b,f){if("string"===typeof a||"number"===typeof a){f=""+a;if(""===f)return"";if(this.makeStaticMarkup)return N(f);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+N(f);this.previousWasTextNode=!0;return N(f)}b=Ya(a,b,this.threadID);a=b.child; | ||
b=b.context;if(null===a||!1===a)return"";if(!l.isValidElement(a)){if(null!=a&&null!=a.$$typeof){f=a.$$typeof;if(f===aa)throw Error(q(257));throw Error(q(258,f.toString()));}a=Z(a);this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""});return""}var c=a.type;if("string"===typeof c)return this.renderDOM(a,b,f);switch(c){case ba:case ea:case ca:case ha:case u:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}), | ||
"";case B:throw Error(q(294));}if("object"===typeof c&&null!==c)switch(c.$$typeof){case fa:O={};var d=c.render(a.props,a.ref);d=Ca(c.render,a.props,d,a.ref);d=Z(d);this.stack.push({type:null,domNamespace:f,children:d,childIndex:0,context:b,footer:""});return"";case ia:return a=[l.createElement(c.type,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case w:return c=Z(a.props.children),f={type:a,domNamespace:f,children:c,childIndex:0, | ||
context:b,footer:""},this.pushProvider(a),this.stack.push(f),"";case da:c=a.type;d=a.props;var h=this.threadID;E(c,h);c=Z(d.children(c[h]));this.stack.push({type:a,domNamespace:f,children:c,childIndex:0,context:b,footer:""});return"";case ka:throw Error(q(338));case ja:switch(c=a.type,ma(c),c._status){case 1:return a=[l.createElement(c._result,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw Error(q(295)); | ||
}case la:throw Error(q(343));}throw Error(q(130,null==c?c:typeof c,""));};b.renderDOM=function(a,b,f){var c=a.type.toLowerCase();f===Ia.html&&Ja(c);if(!Sa.hasOwnProperty(c)){if(!Ra.test(c))throw Error(q(65,c));Sa[c]=!0}var d=a.props;if("input"===c)d=k({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"===c){var h=d.value;if(null==h){h=d.defaultValue;var e=d.children;if(null!=e){if(null!= | ||
h)throw Error(q(92));if(Array.isArray(e)){if(!(1>=e.length))throw Error(q(93));e=e[0]}h=""+e}null==h&&(h="")}d=k({},d,{value:void 0,children:""+h})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=k({},d,{value:void 0});else if("option"===c){e=this.currentSelectValue;var I=Ua(d.children);if(null!=e){var G=null!=d.value?d.value+"":I;h=!1;if(Array.isArray(e))for(var n=0;n<e.length;n++){if(""+e[n]===G){h=!0;break}}else h=""+e===G;d=k({selected:void 0,children:void 0}, | ||
d,{selected:h,children:I})}}if(h=d){if(La[c]&&(null!=h.children||null!=h.dangerouslySetInnerHTML))throw Error(q(137,c,""));if(null!=h.dangerouslySetInnerHTML){if(null!=h.children)throw Error(q(60));if(!("object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML))throw Error(q(61));}if(null!=h.style&&"object"!==typeof h.style)throw Error(q(62,""));}h=d;e=this.makeStaticMarkup;I=1===this.stack.length;G="<"+a.type;for(z in h)if(Va.call(h,z)){var m=h[z];if(null!=m){if("style"=== | ||
z){n=void 0;var v="",r="";for(n in m)if(m.hasOwnProperty(n)){var y=0===n.indexOf("--"),p=m[n];if(null!=p){if(y)var A=n;else if(A=n,Ta.hasOwnProperty(A))A=Ta[A];else{var T=A.replace(Na,"-$1").toLowerCase().replace(Oa,"-ms-");A=Ta[A]=T}v+=r+A+":";r=n;y=null==p||"boolean"===typeof p||""===p?"":y||"number"!==typeof p||0===p||Y.hasOwnProperty(r)&&Y[r]?(""+p).trim():p+"px";v+=y;r=";"}}m=v||null}n=null;b:if(y=c,p=h,-1===y.indexOf("-"))y="string"===typeof p.is;else switch(y){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":y= | ||
!1;break b;default:y=!0}y?Wa.hasOwnProperty(z)||(n=z,n=ta(n)&&null!=m?n+"="+('"'+N(m)+'"'):""):n=xa(z,m);n&&(G+=" "+n)}}e||I&&(G+=' data-reactroot=""');var z=G;h="";Ka.hasOwnProperty(c)?z+="/>":(z+=">",h="</"+a.type+">");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=N(e);break a}e=null}null!=e?(d=[],Qa[c]&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children);a=a.type;f=null==f||"http://www.w3.org/1999/xhtml"=== | ||
f?Ja(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:h});this.previousWasTextNode=!1;return z};return a}(),$a={renderToString:function(a){a=new Za(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Za(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw Error(q(207));},renderToStaticNodeStream:function(){throw Error(q(208)); | ||
},version:"16.10.2-5faf377df"},ab={default:$a},bb=ab&&$a||ab;module.exports=bb.default||bb; |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-server.node.production.min.js | ||
@@ -10,46 +10,47 @@ * | ||
'use strict';var l=require("object-assign"),p=require("react"),aa=require("stream");function r(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d]);return Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")} | ||
var t="function"===typeof Symbol&&Symbol.for,ba=t?Symbol.for("react.portal"):60106,v=t?Symbol.for("react.fragment"):60107,ca=t?Symbol.for("react.strict_mode"):60108,da=t?Symbol.for("react.profiler"):60114,x=t?Symbol.for("react.provider"):60109,ea=t?Symbol.for("react.context"):60110,fa=t?Symbol.for("react.concurrent_mode"):60111,ha=t?Symbol.for("react.forward_ref"):60112,A=t?Symbol.for("react.suspense"):60113,ia=t?Symbol.for("react.memo"):60115,ja=t?Symbol.for("react.lazy"):60116,ka=t?Symbol.for("react.event_component"): | ||
60117,la=t?Symbol.for("react.event_target"):60118;t&&Symbol.for("react.event_target.touch_hit"); | ||
function B(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 v:return"Fragment";case ba:return"Portal";case da:return"Profiler";case ca:return"StrictMode";case A:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case ea:return"Context.Consumer";case x:return"Context.Provider";case ha:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case ia:return B(a.type); | ||
case ja:if(a=1===a._status?a._result:null)return B(a)}return null}var C=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;C.hasOwnProperty("ReactCurrentDispatcher")||(C.ReactCurrentDispatcher={current:null});C.hasOwnProperty("ReactCurrentBatchConfig")||(C.ReactCurrentBatchConfig={suspense:null});var ma={};function D(a,b){for(var d=a._threadCount|0;d<=b;d++)a[d]=a._currentValue2,a._threadCount=d+1} | ||
function na(a,b,d){var c=a.contextType;if("object"===typeof c&&null!==c)return D(c,d),c[d];if(a=a.contextTypes){d={};for(var f in a)d[f]=b[f];b=d}else b=ma;return b}for(var E=new Uint16Array(16),G=0;15>G;G++)E[G]=G+1;E[15]=0; | ||
var oa=/^[: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]*$/,pa=Object.prototype.hasOwnProperty,qa={},ra={}; | ||
function sa(a){if(pa.call(ra,a))return!0;if(pa.call(qa,a))return!1;if(oa.test(a))return ra[a]=!0;qa[a]=!0;return!1}function ta(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}} | ||
function ua(a,b,d,c){if(null===b||"undefined"===typeof b||ta(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.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 I(a,b,d,c,f,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=e}var J={}; | ||
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style hydrateTouchHitTarget".split(" ").forEach(function(a){J[a]=new I(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];J[b]=new I(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){J[a]=new I(a,2,!1,a.toLowerCase(),null,!1)}); | ||
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){J[a]=new I(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){J[a]=new I(a,3,!1,a.toLowerCase(),null,!1)}); | ||
["checked","multiple","muted","selected"].forEach(function(a){J[a]=new I(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){J[a]=new I(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){J[a]=new I(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null,!1)});var K=/[\-:]([a-z])/g;function L(a){return a[1].toUpperCase()} | ||
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(K, | ||
L);J[b]=new I(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(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null,!1)}); | ||
J.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null,!0)});var va=/["'&<>]/; | ||
function M(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=va.exec(a);if(b){var d="",c,f=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}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a} | ||
function wa(a,b){var d=J.hasOwnProperty(a)?J[a]:null;var c;if(c="style"!==a)c=null!==d?0===d.type:!(2<a.length)||"o"!==a[0]&&"O"!==a[0]||"n"!==a[1]&&"N"!==a[1]?!1:!0;if(c||ua(a,b,d,!1))return"";if(null!==d){a=d.attributeName;c=d.type;if(3===c||4===c&&!0===b)return a+'=""';d.sanitizeURL&&(b=""+b);return a+"="+('"'+M(b)+'"')}return sa(a)?a+"="+('"'+M(b)+'"'):""}var N=null,O=null,P=null,Q=!1,R=!1,T=null,U=0;function V(){if(null===N)throw r(321);return N} | ||
function xa(){if(0<U)throw r(312);return{memoizedState:null,queue:null,next:null}}function W(){null===P?null===O?(Q=!1,O=P=xa()):(Q=!0,P=O):null===P.next?(Q=!1,P=P.next=xa()):(Q=!0,P=P.next);return P}function ya(a,b,d,c){for(;R;)R=!1,U+=1,P=null,d=a(b,c);O=N=null;U=0;P=T=null;return d}function za(a,b){return"function"===typeof b?b(a):b} | ||
function Aa(a,b,d){N=V();P=W();if(Q){var c=P.queue;b=c.dispatch;if(null!==T&&(d=T.get(c),void 0!==d)){T.delete(c);c=P.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);P.memoizedState=c;return[c,b]}return[P.memoizedState,b]}a=a===za?"function"===typeof b?b():b:void 0!==d?d(b):b;P.memoizedState=a;a=P.queue={last:null,dispatch:null};a=a.dispatch=Ba.bind(null,N,a);return[P.memoizedState,a]} | ||
function Ba(a,b,d){if(!(25>U))throw r(301);if(a===N)if(R=!0,a={action:d,next:null},null===T&&(T=new Map),d=T.get(b),void 0===d)T.set(b,a);else{for(b=d;null!==b.next;)b=b.next;b.next=a}}function Ca(){} | ||
var X=0,Da={readContext:function(a){var b=X;D(a,b);return a[b]},useContext:function(a){V();var b=X;D(a,b);return a[b]},useMemo:function(a,b){N=V();P=W();b=void 0===b?null:b;if(null!==P){var d=P.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f<c.length&&f<b.length;f++){var e=b[f],h=c[f];if((e!==h||0===e&&1/e!==1/h)&&(e===e||h===h)){c=!1;break a}}c=!0}}if(c)return d[0]}}a=a();P.memoizedState=[a,b];return a},useReducer:Aa,useRef:function(a){N=V();P=W();var b=P.memoizedState; | ||
return null===b?(a={current:a},P.memoizedState=a):b},useState:function(a){return Aa(za,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ca,useEffect:Ca,useDebugValue:Ca},Ea={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Fa(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"}} | ||
var Ga={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},Ha=l({menuitem:!0},Ga),Y={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, | ||
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},Ia=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Ia.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})}); | ||
var Ja=/([A-Z])/g,Ka=/^ms-/,Z=p.Children.toArray,La=C.ReactCurrentDispatcher,Ma={listing:!0,pre:!0,textarea:!0},Na=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Oa={},Pa={};function Qa(a){if(void 0===a||null===a)return a;var b="";p.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Ra=Object.prototype.hasOwnProperty,Sa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ta(a,b){if(void 0===a)throw r(152,B(b)||"Component");} | ||
function Ua(a,b,d){function c(c,f){var e=na(f,b,d),g=[],h=!1,m={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(f.prototype&&f.prototype.isReactComponent){if(k=new f(c.props,e,m),"function"===typeof f.getDerivedStateFromProps){var u=f.getDerivedStateFromProps.call(null,c.props,k.state);null!=u&&(k.state=l({},k.state,u))}}else if(N={},k=f(c.props, | ||
e,m),k=ya(f,c.props,k,e),null==k||null==k.render){a=k;Ta(a,f);return}k.props=c.props;k.context=e;k.updater=m;m=k.state;void 0===m&&(k.state=m=null);if("function"===typeof k.UNSAFE_componentWillMount||"function"===typeof k.componentWillMount)if("function"===typeof k.componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&k.componentWillMount(),"function"===typeof k.UNSAFE_componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&k.UNSAFE_componentWillMount(),g.length){m=g;var q= | ||
h;g=null;h=!1;if(q&&1===m.length)k.state=m[0];else{u=q?m[0]:k.state;var y=!0;for(q=q?1:0;q<m.length;q++){var w=m[q];w="function"===typeof w?w.call(k,u,c.props,e):w;null!=w&&(y?(y=!1,u=l({},u,w)):l(u,w))}k.state=u}}else g=null;a=k.render();Ta(a,f);c=void 0;if("function"===typeof k.getChildContext&&(e=f.childContextTypes,"object"===typeof e)){c=k.getChildContext();for(var S in c)if(!(S in e))throw r(108,B(f)||"Unknown",S);}c&&(b=l({},b,c))}for(;p.isValidElement(a);){var f=a,e=f.type;if("function"!== | ||
typeof e)break;c(f,e)}return{child:a,context:b}} | ||
var Va=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");p.isValidElement(b)?b.type!==v?b=[b]:(b=b.props.children,b=p.isValidElement(b)?[b]:Z(b)):b=Z(b);b={type:null,domNamespace:Ea.html,children:b,childIndex:0,context:ma,footer:""};var c=E[0];if(0===c){var f=E;c=f.length;var e=2*c;if(!(65536>=e))throw r(304);var h=new Uint16Array(e);h.set(f);E=h;E[0]=c+1;for(f=c;f<e-1;f++)E[f]=f+1;E[e-1]=0}else E[0]=E[c];this.threadID=c;this.stack=[b];this.exhausted= | ||
!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;E[a]=E[0];E[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,f=this.threadID;D(c,f);var e=c[f];this.contextStack[b]=c;this.contextValueStack[b]=e;c[f]=a.props.value};a.prototype.popProvider= | ||
function(){var a=this.contextIndex,d=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;d[this.threadID]=c};a.prototype.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};a.prototype.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=La.current;La.current=Da;try{for(var f=[""],e=!1;f[0].length<a;){if(0===this.stack.length){this.exhausted= | ||
!0;var h=this.threadID;E[h]=E[0];E[0]=h;break}var g=this.stack[this.stack.length-1];if(e||g.childIndex>=g.children.length){var H=g.footer;""!==H&&(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===x)this.popProvider(g.type);else if(g.type===A){this.suspenseDepth--;var F=f.pop();if(e){e=!1;var n=g.fallbackFrame;if(!n)throw r(303);this.stack.push(n);f[this.suspenseDepth]+="\x3c!--$!--\x3e"; | ||
continue}else f[this.suspenseDepth]+=F}f[this.suspenseDepth]+=H}else{var m=g.children[g.childIndex++],k="";try{k+=this.render(m,g.context,g.domNamespace)}catch(u){throw u;}finally{}f.length<=this.suspenseDepth&&f.push("");f[this.suspenseDepth]+=k}}return f[0]}finally{La.current=c,X=b}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return M(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+M(c);this.previousWasTextNode= | ||
!0;return M(c)}d=Ua(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!p.isValidElement(a)){if(null!=a&&null!=a.$$typeof){c=a.$$typeof;if(c===ba)throw r(257);throw r(258,c.toString());}a=Z(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}var b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case ca:case fa:case da:case v:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0, | ||
context:d,footer:""}),"";case A:throw r(294);}if("object"===typeof b&&null!==b)switch(b.$$typeof){case ha:N={};var e=b.render(a.props,a.ref);e=ya(b.render,a.props,e,a.ref);e=Z(e);this.stack.push({type:null,domNamespace:c,children:e,childIndex:0,context:d,footer:""});return"";case ia:return a=[p.createElement(b.type,l({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case x:return b=Z(a.props.children),c={type:a,domNamespace:c,children:b, | ||
childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case ea:b=a.type;e=a.props;var h=this.threadID;D(b,h);b=Z(e.children(b[h]));this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""});return"";case ka:case la:throw r(335);case ja:throw r(295);}throw r(130,null==b?b:typeof b,"");};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();c===Ea.html&&Fa(b);if(!Oa.hasOwnProperty(b)){if(!Na.test(b))throw r(65,b);Oa[b]=!0}var e=a.props;if("input"=== | ||
b)e=l({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:e.defaultChecked});else if("textarea"===b){var h=e.value;if(null==h){h=e.defaultValue;var g=e.children;if(null!=g){if(null!=h)throw r(92);if(Array.isArray(g)){if(!(1>=g.length))throw r(93);g=g[0]}h=""+g}null==h&&(h="")}e=l({},e,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=e.value?e.value:e.defaultValue,e=l({},e,{value:void 0}); | ||
else if("option"===b){g=this.currentSelectValue;var H=Qa(e.children);if(null!=g){var F=null!=e.value?e.value+"":H;h=!1;if(Array.isArray(g))for(var n=0;n<g.length;n++){if(""+g[n]===F){h=!0;break}}else h=""+g===F;e=l({selected:void 0,children:void 0},e,{selected:h,children:H})}}if(h=e){if(Ha[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML))throw r(137,b,"");if(null!=h.dangerouslySetInnerHTML){if(null!=h.children)throw r(60);if(!("object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML))throw r(61); | ||
}if(null!=h.style&&"object"!==typeof h.style)throw r(62,"");}h=e;g=this.makeStaticMarkup;H=1===this.stack.length;F="<"+a.type;for(z in h)if(Ra.call(h,z)){var m=h[z];if(null!=m){if("style"===z){n=void 0;var k="",u="";for(n in m)if(m.hasOwnProperty(n)){var q=0===n.indexOf("--"),y=m[n];if(null!=y){var w=n;if(Pa.hasOwnProperty(w))w=Pa[w];else{var S=w.replace(Ja,"-$1").toLowerCase().replace(Ka,"-ms-");w=Pa[w]=S}k+=u+w+":";u=n;q=null==y||"boolean"===typeof y||""===y?"":q||"number"!==typeof y||0===y||Y.hasOwnProperty(u)&& | ||
Y[u]?(""+y).trim():y+"px";k+=q;u=";"}}m=k||null}n=null;b:if(q=b,y=h,-1===q.indexOf("-"))q="string"===typeof y.is;else switch(q){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":q=!1;break b;default:q=!0}q?Sa.hasOwnProperty(z)||(n=z,n=sa(n)&&null!=m?n+"="+('"'+M(m)+'"'):""):n=wa(z,m);n&&(F+=" "+n)}}g||H&&(F+=' data-reactroot=""');var z=F;h="";Ga.hasOwnProperty(b)?z+="/>":(z+=">", | ||
h="</"+a.type+">");a:{g=e.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,"string"===typeof g||"number"===typeof g){g=M(g);break a}g=null}null!=g?(e=[],Ma[b]&&"\n"===g.charAt(0)&&(z+="\n"),z+=g):e=Z(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?Fa(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:e,childIndex:0,context:d,footer:h});this.previousWasTextNode= | ||
!1;return z};return a}();function Wa(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)} | ||
var Xa=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.partialRenderer=new Va(d,c);return f}Wa(b,a);b.prototype._destroy=function(a,b){this.partialRenderer.destroy();b(a)};b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.destroy(c)}}; | ||
return b}(aa.Readable),Ya={renderToString:function(a){a=new Va(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Va(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(a){return new Xa(a,!1)},renderToStaticNodeStream:function(a){return new Xa(a,!0)},version:"16.8.6-canary-50b50c26f"},Za={default:Ya},$a=Za&&Ya||Za;module.exports=$a.default||$a; | ||
'use strict';var k=require("object-assign"),m=require("react"),aa=require("stream");function r(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."} | ||
var u="function"===typeof Symbol&&Symbol.for,ba=u?Symbol.for("react.portal"):60106,v=u?Symbol.for("react.fragment"):60107,ca=u?Symbol.for("react.strict_mode"):60108,da=u?Symbol.for("react.profiler"):60114,x=u?Symbol.for("react.provider"):60109,ea=u?Symbol.for("react.context"):60110,fa=u?Symbol.for("react.concurrent_mode"):60111,ha=u?Symbol.for("react.forward_ref"):60112,B=u?Symbol.for("react.suspense"):60113,ia=u?Symbol.for("react.suspense_list"):60120,ja=u?Symbol.for("react.memo"):60115,ka=u?Symbol.for("react.lazy"): | ||
60116,la=u?Symbol.for("react.fundamental"):60117,ma=u?Symbol.for("react.scope"):60119,C=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;C.hasOwnProperty("ReactCurrentDispatcher")||(C.ReactCurrentDispatcher={current:null});C.hasOwnProperty("ReactCurrentBatchConfig")||(C.ReactCurrentBatchConfig={suspense:null}); | ||
function na(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 D(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 v:return"Fragment";case ba:return"Portal";case da:return"Profiler";case ca:return"StrictMode";case B:return"Suspense";case ia:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ea:return"Context.Consumer";case x:return"Context.Provider";case ha:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef"); | ||
case ja:return D(a.type);case ka:if(a=1===a._status?a._result:null)return D(a)}return null}var oa={};function E(a,b){for(var c=a._threadCount|0;c<=b;c++)a[c]=a._currentValue2,a._threadCount=c+1}function pa(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={};for(var f in a)c[f]=b[f];b=c}else b=oa;return b}for(var F=new Uint16Array(16),H=0;15>H;H++)F[H]=H+1;F[15]=0; | ||
var qa=/^[: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]*$/,ra=Object.prototype.hasOwnProperty,sa={},ta={}; | ||
function ua(a){if(ra.call(ta,a))return!0;if(ra.call(sa,a))return!1;if(qa.test(a))return ta[a]=!0;sa[a]=!0;return!1}function va(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 wa(a,b,c,d){if(null===b||"undefined"===typeof b||va(a,b,c,d))return!0;if(d)return!1;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 J(a,b,c,d,f,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=h}var K={}; | ||
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){K[a]=new J(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];K[b]=new J(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){K[a]=new J(a,2,!1,a.toLowerCase(),null,!1)}); | ||
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){K[a]=new J(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){K[a]=new J(a,3,!1,a.toLowerCase(),null,!1)}); | ||
["checked","multiple","muted","selected"].forEach(function(a){K[a]=new J(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){K[a]=new J(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){K[a]=new J(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){K[a]=new J(a,5,!1,a.toLowerCase(),null,!1)});var L=/[\-:]([a-z])/g;function M(a){return a[1].toUpperCase()} | ||
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(L, | ||
M);K[b]=new J(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(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!1)}); | ||
K.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!0)});var xa=/["'&<>]/; | ||
function N(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=xa.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b}a=f!==d?c+a.substring(f,d):c}return a} | ||
function ya(a,b){var c=K.hasOwnProperty(a)?K[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||wa(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+"="+('"'+N(b)+'"')}return ua(a)?a+"="+('"'+N(b)+'"'):""}function za(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b} | ||
var Aa="function"===typeof Object.is?Object.is:za,O=null,P=null,Q=null,R=!1,S=!1,U=null,V=0;function W(){if(null===O)throw Error(r(321));return O}function Ba(){if(0<V)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Ca(){null===Q?null===P?(R=!1,P=Q=Ba()):(R=!0,Q=P):null===Q.next?(R=!1,Q=Q.next=Ba()):(R=!0,Q=Q.next);return Q}function Da(a,b,c,d){for(;S;)S=!1,V+=1,Q=null,c=a(b,d);P=O=null;V=0;Q=U=null;return c}function Ea(a,b){return"function"===typeof b?b(a):b} | ||
function Fa(a,b,c){O=W();Q=Ca();if(R){var d=Q.queue;b=d.dispatch;if(null!==U&&(c=U.get(d),void 0!==c)){U.delete(d);d=Q.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);Q.memoizedState=d;return[d,b]}return[Q.memoizedState,b]}a=a===Ea?"function"===typeof b?b():b:void 0!==c?c(b):b;Q.memoizedState=a;a=Q.queue={last:null,dispatch:null};a=a.dispatch=Ga.bind(null,O,a);return[Q.memoizedState,a]} | ||
function Ga(a,b,c){if(!(25>V))throw Error(r(301));if(a===O)if(S=!0,a={action:c,next:null},null===U&&(U=new Map),c=U.get(b),void 0===c)U.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Ha(){} | ||
var X=0,Ia={readContext:function(a){var b=X;E(a,b);return a[b]},useContext:function(a){W();var b=X;E(a,b);return a[b]},useMemo:function(a,b){O=W();Q=Ca();b=void 0===b?null:b;if(null!==Q){var c=Q.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!Aa(b[f],d[f])){d=!1;break a}d=!0}}if(d)return c[0]}}a=a();Q.memoizedState=[a,b];return a},useReducer:Fa,useRef:function(a){O=W();Q=Ca();var b=Q.memoizedState;return null===b?(a={current:a},Q.memoizedState= | ||
a):b},useState:function(a){return Fa(Ea,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ha,useEffect:Ha,useDebugValue:Ha,useResponder:function(a,b){return{props:b,responder:a}},useDeferredValue:function(a){W();return a},useTransition:function(){W();return[function(a){a()},!1]}},Ja={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}; | ||
function Ka(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"}} | ||
var La={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},Ma=k({menuitem:!0},La),Y={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, | ||
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},Na=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Na.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})}); | ||
var Oa=/([A-Z])/g,Pa=/^ms-/,Z=m.Children.toArray,Qa=C.ReactCurrentDispatcher,Ra={listing:!0,pre:!0,textarea:!0},Sa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ta={},Ua={};function Va(a){if(void 0===a||null===a)return a;var b="";m.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Wa=Object.prototype.hasOwnProperty,Xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ya(a,b){if(void 0===a)throw Error(r(152,D(b)||"Component"));} | ||
function Za(a,b,c){function d(d,h){var e=h.prototype&&h.prototype.isReactComponent,f=pa(h,b,c,e),p=[],g=!1,l={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===p)return null},enqueueReplaceState:function(a,c){g=!0;p=[c]},enqueueSetState:function(a,c){if(null===p)return null;p.push(c)}};if(e){if(e=new h(d.props,f,l),"function"===typeof h.getDerivedStateFromProps){var w=h.getDerivedStateFromProps.call(null,d.props,e.state);null!=w&&(e.state=k({},e.state,w))}}else if(O={},e=h(d.props, | ||
f,l),e=Da(h,d.props,e,f),null==e||null==e.render){a=e;Ya(a,h);return}e.props=d.props;e.context=f;e.updater=l;l=e.state;void 0===l&&(e.state=l=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),p.length){l=p;var t= | ||
g;p=null;g=!1;if(t&&1===l.length)e.state=l[0];else{w=t?l[0]:e.state;var y=!0;for(t=t?1:0;t<l.length;t++){var q=l[t];q="function"===typeof q?q.call(e,w,d.props,f):q;null!=q&&(y?(y=!1,w=k({},w,q)):k(w,q))}e.state=w}}else p=null;a=e.render();Ya(a,h);if("function"===typeof e.getChildContext&&(d=h.childContextTypes,"object"===typeof d)){var A=e.getChildContext();for(var T in A)if(!(T in d))throw Error(r(108,D(h)||"Unknown",T));}A&&(b=k({},b,A))}for(;m.isValidElement(a);){var f=a,h=f.type;if("function"!== | ||
typeof h)break;d(f,h)}return{child:a,context:b}} | ||
var $a=function(){function a(a,b){m.isValidElement(a)?a.type!==v?a=[a]:(a=a.props.children,a=m.isValidElement(a)?[a]:Z(a)):a=Z(a);a={type:null,domNamespace:Ja.html,children:a,childIndex:0,context:oa,footer:""};var c=F[0];if(0===c){var d=F;c=d.length;var p=2*c;if(!(65536>=p))throw Error(r(304));var g=new Uint16Array(p);g.set(d);F=g;F[0]=c+1;for(d=c;d<p-1;d++)F[d]=d+1;F[p-1]=0}else F[0]=F[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;F[a]=F[0];F[0]=a}};b.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,h=this.threadID;E(c,h);var p=c[h];this.contextStack[b]=c;this.contextValueStack[b]=p;c[h]=a.props.value};b.popProvider=function(){var a=this.contextIndex,b=this.contextStack[a],f=this.contextValueStack[a]; | ||
this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=f};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;var b=X;X=this.threadID;var c=Qa.current;Qa.current=Ia;try{for(var h=[""],p=!1;h[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var g=this.threadID;F[g]=F[0];F[0]=g;break}var e=this.stack[this.stack.length-1];if(p||e.childIndex>= | ||
e.children.length){var I=e.footer;""!==I&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===x)this.popProvider(e.type);else if(e.type===B){this.suspenseDepth--;var G=h.pop();if(p){p=!1;var n=e.fallbackFrame;if(!n)throw Error(r(303));this.stack.push(n);h[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else h[this.suspenseDepth]+=G}h[this.suspenseDepth]+=I}else{var l=e.children[e.childIndex++], | ||
w="";try{w+=this.render(l,e.context,e.domNamespace)}catch(t){if(null!=t&&"function"===typeof t.then)throw Error(r(294));throw t;}finally{}h.length<=this.suspenseDepth&&h.push("");h[this.suspenseDepth]+=w}}return h[0]}finally{Qa.current=c,X=b}};b.render=function(a,b,f){if("string"===typeof a||"number"===typeof a){f=""+a;if(""===f)return"";if(this.makeStaticMarkup)return N(f);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+N(f);this.previousWasTextNode=!0;return N(f)}b=Za(a,b,this.threadID);a=b.child; | ||
b=b.context;if(null===a||!1===a)return"";if(!m.isValidElement(a)){if(null!=a&&null!=a.$$typeof){f=a.$$typeof;if(f===ba)throw Error(r(257));throw Error(r(258,f.toString()));}a=Z(a);this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""});return""}var c=a.type;if("string"===typeof c)return this.renderDOM(a,b,f);switch(c){case ca:case fa:case da:case ia:case v:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}), | ||
"";case B:throw Error(r(294));}if("object"===typeof c&&null!==c)switch(c.$$typeof){case ha:O={};var d=c.render(a.props,a.ref);d=Da(c.render,a.props,d,a.ref);d=Z(d);this.stack.push({type:null,domNamespace:f,children:d,childIndex:0,context:b,footer:""});return"";case ja:return a=[m.createElement(c.type,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case x:return c=Z(a.props.children),f={type:a,domNamespace:f,children:c,childIndex:0, | ||
context:b,footer:""},this.pushProvider(a),this.stack.push(f),"";case ea:c=a.type;d=a.props;var g=this.threadID;E(c,g);c=Z(d.children(c[g]));this.stack.push({type:a,domNamespace:f,children:c,childIndex:0,context:b,footer:""});return"";case la:throw Error(r(338));case ka:switch(c=a.type,na(c),c._status){case 1:return a=[m.createElement(c._result,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw Error(r(295)); | ||
}case ma:throw Error(r(343));}throw Error(r(130,null==c?c:typeof c,""));};b.renderDOM=function(a,b,f){var c=a.type.toLowerCase();f===Ja.html&&Ka(c);if(!Ta.hasOwnProperty(c)){if(!Sa.test(c))throw Error(r(65,c));Ta[c]=!0}var d=a.props;if("input"===c)d=k({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"===c){var g=d.value;if(null==g){g=d.defaultValue;var e=d.children;if(null!=e){if(null!= | ||
g)throw Error(r(92));if(Array.isArray(e)){if(!(1>=e.length))throw Error(r(93));e=e[0]}g=""+e}null==g&&(g="")}d=k({},d,{value:void 0,children:""+g})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=k({},d,{value:void 0});else if("option"===c){e=this.currentSelectValue;var I=Va(d.children);if(null!=e){var G=null!=d.value?d.value+"":I;g=!1;if(Array.isArray(e))for(var n=0;n<e.length;n++){if(""+e[n]===G){g=!0;break}}else g=""+e===G;d=k({selected:void 0,children:void 0}, | ||
d,{selected:g,children:I})}}if(g=d){if(Ma[c]&&(null!=g.children||null!=g.dangerouslySetInnerHTML))throw Error(r(137,c,""));if(null!=g.dangerouslySetInnerHTML){if(null!=g.children)throw Error(r(60));if(!("object"===typeof g.dangerouslySetInnerHTML&&"__html"in g.dangerouslySetInnerHTML))throw Error(r(61));}if(null!=g.style&&"object"!==typeof g.style)throw Error(r(62,""));}g=d;e=this.makeStaticMarkup;I=1===this.stack.length;G="<"+a.type;for(z in g)if(Wa.call(g,z)){var l=g[z];if(null!=l){if("style"=== | ||
z){n=void 0;var w="",t="";for(n in l)if(l.hasOwnProperty(n)){var y=0===n.indexOf("--"),q=l[n];if(null!=q){if(y)var A=n;else if(A=n,Ua.hasOwnProperty(A))A=Ua[A];else{var T=A.replace(Oa,"-$1").toLowerCase().replace(Pa,"-ms-");A=Ua[A]=T}w+=t+A+":";t=n;y=null==q||"boolean"===typeof q||""===q?"":y||"number"!==typeof q||0===q||Y.hasOwnProperty(t)&&Y[t]?(""+q).trim():q+"px";w+=y;t=";"}}l=w||null}n=null;b:if(y=c,q=g,-1===y.indexOf("-"))y="string"===typeof q.is;else switch(y){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":y= | ||
!1;break b;default:y=!0}y?Xa.hasOwnProperty(z)||(n=z,n=ua(n)&&null!=l?n+"="+('"'+N(l)+'"'):""):n=ya(z,l);n&&(G+=" "+n)}}e||I&&(G+=' data-reactroot=""');var z=G;g="";La.hasOwnProperty(c)?z+="/>":(z+=">",g="</"+a.type+">");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=N(e);break a}e=null}null!=e?(d=[],Ra[c]&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children);a=a.type;f=null==f||"http://www.w3.org/1999/xhtml"=== | ||
f?Ka(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:g});this.previousWasTextNode=!1;return z};return a}();function ab(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b} | ||
var bb=function(a){function b(b,c){var d=a.call(this,{})||this;d.partialRenderer=new $a(b,c);return d}ab(b,a);var c=b.prototype;c._destroy=function(a,b){this.partialRenderer.destroy();b(a)};c._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(f){this.destroy(f)}};return b}(aa.Readable),cb={renderToString:function(a){a=new $a(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new $a(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(a){return new bb(a, | ||
!1)},renderToStaticNodeStream:function(a){return new bb(a,!0)},version:"16.10.2-5faf377df"},db={default:cb},eb=db&&cb||db;module.exports=eb.default||eb; |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-test-utils.development.js | ||
@@ -23,16 +23,6 @@ * | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
// Do not require this module directly! Use normal `invariant` calls with | ||
// template literal strings. The messages will be replaced with error codes | ||
// during build. | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
function ReactError(message) { | ||
var error = new Error(message); | ||
error.name = 'Invariant Violation'; | ||
return error; | ||
} | ||
/** | ||
@@ -55,3 +45,2 @@ * Use invariant() to assert state which your program assumes to be true. | ||
*/ | ||
var warningWithoutStack = function () {}; | ||
@@ -61,3 +50,3 @@ | ||
warningWithoutStack = function (condition, format) { | ||
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
args[_key - 2] = arguments[_key]; | ||
@@ -69,2 +58,3 @@ } | ||
} | ||
if (args.length > 8) { | ||
@@ -74,5 +64,7 @@ // Check before the condition to catch violations early. | ||
} | ||
if (condition) { | ||
return; | ||
} | ||
if (typeof console !== 'undefined') { | ||
@@ -82,8 +74,8 @@ var argsWithFormat = args.map(function (item) { | ||
}); | ||
argsWithFormat.unshift('Warning: ' + format); | ||
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
// We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
Function.prototype.apply.call(console.error, console, argsWithFormat); | ||
} | ||
try { | ||
@@ -120,3 +112,2 @@ // --- Welcome to debugging React --- | ||
function get(key) { | ||
@@ -126,7 +117,6 @@ return key._reactInternalFiber; | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// Prevent newer renderers from RTE when used with older react package versions. | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions. | ||
// Current owner and dispatcher used to share the same ref, | ||
// but PR #14548 split them out to better support the react-debug-tools package. | ||
if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) { | ||
@@ -137,2 +127,3 @@ ReactSharedInternals.ReactCurrentDispatcher = { | ||
} | ||
if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) { | ||
@@ -152,127 +143,123 @@ ReactSharedInternals.ReactCurrentBatchConfig = { | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// (unstable) APIs that have been removed. Can we remove the symbols? | ||
{ | ||
} | ||
var FunctionComponent = 0; | ||
var ClassComponent = 1; | ||
// Before we know whether it is function or class | ||
var HostRoot = 3; // Root of a host tree. Could be nested inside another node. | ||
// A subtree. Could be an entry point to a different renderer. | ||
var HostComponent = 5; | ||
var HostText = 6; | ||
// Don't change these two values. They're used by React Dev Tools. | ||
var NoEffect = | ||
/* */ | ||
0; | ||
// You can change the rest (and add more). | ||
var Placement = | ||
/* */ | ||
2; | ||
// React event targets | ||
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: | ||
// In some cases, StrictMode should also double-render lifecycles. | ||
// This can be confusing for tests though, | ||
// And it can be bad for performance in production. | ||
// This feature flag can be used to control the behavior: | ||
// To preserve the "Pause on caught exceptions" behavior of the debugger, we | ||
// replay the begin phase of a failed component inside invokeGuardedCallback. | ||
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: | ||
var Hydrating = | ||
/* */ | ||
1024; | ||
// Passive & Update & Callback & Ref & Snapshot | ||
// Union of all host effects | ||
// Gather advanced timing metrics for Profiler subtrees. | ||
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: | ||
// In some cases, StrictMode should also double-render lifecycles. | ||
// This can be confusing for tests though, | ||
// And it can be bad for performance in production. | ||
// This feature flag can be used to control the behavior: | ||
// Trace which interactions trigger each commit. | ||
// To preserve the "Pause on caught exceptions" behavior of the debugger, we | ||
// replay the begin phase of a failed component inside invokeGuardedCallback. | ||
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: | ||
// Only used in www builds. | ||
// TODO: true? Here it might just be false. | ||
// Gather advanced timing metrics for Profiler subtrees. | ||
// Only used in www builds. | ||
// Trace which interactions trigger each commit. | ||
// SSR experiments | ||
// Only used in www builds. | ||
// Only used in www builds. | ||
// Disable javascript: URL strings in href for XSS protection. | ||
// Only used in www builds. | ||
// Disable javascript: URL strings in href for XSS protection. | ||
// Disables yielding during render in Concurrent Mode. Used for debugging only. | ||
// React Fire: prevent the value and checked attributes from syncing | ||
// React Fire: prevent the value and checked attributes from syncing | ||
// with their related DOM properties | ||
// These APIs will no longer be "unstable" in the upcoming 16.7 release, | ||
// These APIs will no longer be "unstable" in the upcoming 16.7 release, | ||
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. | ||
// Experimental React Flare event system and event components support. | ||
// Experimental Host Component support. | ||
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information | ||
// This is a flag so we can fix warnings in RN core before turning it on | ||
// Experimental Scope support. | ||
// New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 | ||
// Experimental React Events support. Only used in www builds for now. | ||
// New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 | ||
// We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) | ||
// We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) | ||
// Till then, we warn about the missing mock, but still fallback to a sync mode compatible version | ||
var warnAboutMissingMockScheduler = false; | ||
// Temporary flag to revert the fix in #15650 | ||
var FunctionComponent = 0; | ||
var ClassComponent = 1; | ||
// Before we know whether it is function or class | ||
var HostRoot = 3; // Root of a host tree. Could be nested inside another node. | ||
// A subtree. Could be an entry point to a different renderer. | ||
var HostComponent = 5; | ||
var HostText = 6; | ||
// For tests, we flush suspense fallbacks in an act scope; | ||
// *except* in some of our own tests, where we test incremental loading states. | ||
// Don't change these two values. They're used by React Dev Tools. | ||
var NoEffect = /* */0; | ||
// Add a callback property to suspense to notify which promises are currently | ||
// in the update queue. This allows reporting and tracing of what is causing | ||
// the user to see a loading state. | ||
// Also allows hydration callbacks to fire when a dehydrated boundary gets | ||
// hydrated or deleted. | ||
// Part of the simplification of React.createElement so we can eventually move | ||
// from React.createElement to React.jsx | ||
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md | ||
// You can change the rest (and add more). | ||
var Placement = /* */2; | ||
// Passive & Update & Callback & Ref & Snapshot | ||
// Union of all host effects | ||
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function getNearestMountedFiber(fiber) { | ||
var node = fiber; | ||
var nearestMounted = fiber; | ||
var MOUNTING = 1; | ||
var MOUNTED = 2; | ||
var UNMOUNTED = 3; | ||
function isFiberMountedImpl(fiber) { | ||
var node = fiber; | ||
if (!fiber.alternate) { | ||
// If there is no alternate, this might be a new tree that isn't inserted | ||
// yet. If it is, then it will have a pending insertion effect on it. | ||
if ((node.effectTag & Placement) !== NoEffect) { | ||
return MOUNTING; | ||
} | ||
while (node.return) { | ||
node = node.return; | ||
if ((node.effectTag & Placement) !== NoEffect) { | ||
return MOUNTING; | ||
var nextNode = node; | ||
do { | ||
node = nextNode; | ||
if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) { | ||
// This is an insertion or in-progress hydration. The nearest possible | ||
// mounted fiber is the parent but we need to continue to figure out | ||
// if that one is still mounted. | ||
nearestMounted = node.return; | ||
} | ||
} | ||
nextNode = node.return; | ||
} while (nextNode); | ||
} else { | ||
@@ -283,10 +270,12 @@ while (node.return) { | ||
} | ||
if (node.tag === HostRoot) { | ||
// TODO: Check if this was a nested HostRoot when used with | ||
// renderContainerIntoSubtree. | ||
return MOUNTED; | ||
} | ||
// If we didn't hit the root, that means that we're in an disconnected tree | ||
return nearestMounted; | ||
} // If we didn't hit the root, that means that we're in an disconnected tree | ||
// that has been unmounted. | ||
return UNMOUNTED; | ||
return null; | ||
} | ||
@@ -299,9 +288,7 @@ | ||
function assertIsMounted(fiber) { | ||
(function () { | ||
if (!(isFiberMountedImpl(fiber) === MOUNTED)) { | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
} | ||
if (!(getNearestMountedFiber(fiber) === fiber)) { | ||
{ | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
})(); | ||
} | ||
} | ||
@@ -311,24 +298,29 @@ | ||
var alternate = fiber.alternate; | ||
if (!alternate) { | ||
// If there is no alternate, then we only need to check if it is mounted. | ||
var state = isFiberMountedImpl(fiber); | ||
(function () { | ||
if (!(state !== UNMOUNTED)) { | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
} | ||
var nearestMounted = getNearestMountedFiber(fiber); | ||
if (!(nearestMounted !== null)) { | ||
{ | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
})(); | ||
if (state === MOUNTING) { | ||
} | ||
if (nearestMounted !== fiber) { | ||
return null; | ||
} | ||
return fiber; | ||
} | ||
// If we have two possible branches, we'll walk backwards up to the root | ||
} // If we have two possible branches, we'll walk backwards up to the root | ||
// to see what path the root points to. On the way we may hit one of the | ||
// special cases and we'll deal with them. | ||
var a = fiber; | ||
var b = alternate; | ||
while (true) { | ||
var parentA = a.return; | ||
if (parentA === null) { | ||
@@ -338,3 +330,5 @@ // We're at the root. | ||
} | ||
var parentB = parentA.alternate; | ||
if (parentB === null) { | ||
@@ -346,15 +340,18 @@ // There is no alternate. This is an unusual case. Currently, it only | ||
var nextParent = parentA.return; | ||
if (nextParent !== null) { | ||
a = b = nextParent; | ||
continue; | ||
} | ||
// If there's no parent, we're at the root. | ||
} // If there's no parent, we're at the root. | ||
break; | ||
} | ||
// If both copies of the parent fiber point to the same child, we can | ||
} // If both copies of the parent fiber point to the same child, we can | ||
// assume that the child is current. This happens when we bailout on low | ||
// priority: the bailed out fiber's child reuses the current child. | ||
if (parentA.child === parentB.child) { | ||
var child = parentA.child; | ||
while (child) { | ||
@@ -366,2 +363,3 @@ if (child === a) { | ||
} | ||
if (child === b) { | ||
@@ -372,13 +370,13 @@ // We've determined that B is the current branch. | ||
} | ||
child = child.sibling; | ||
} | ||
// We should never have an alternate for any mounting node. So the only | ||
} // We should never have an alternate for any mounting node. So the only | ||
// way this could possibly happen is if this was unmounted, if at all. | ||
(function () { | ||
{ | ||
{ | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
} | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
})(); | ||
} | ||
} | ||
@@ -401,2 +399,3 @@ | ||
var _child = parentA.child; | ||
while (_child) { | ||
@@ -409,2 +408,3 @@ if (_child === a) { | ||
} | ||
if (_child === b) { | ||
@@ -416,7 +416,10 @@ didFindChild = true; | ||
} | ||
_child = _child.sibling; | ||
} | ||
if (!didFindChild) { | ||
// Search parent B's child set | ||
_child = parentB.child; | ||
while (_child) { | ||
@@ -429,2 +432,3 @@ if (_child === a) { | ||
} | ||
if (_child === b) { | ||
@@ -436,36 +440,35 @@ didFindChild = true; | ||
} | ||
_child = _child.sibling; | ||
} | ||
(function () { | ||
if (!didFindChild) { | ||
{ | ||
throw ReactError('Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.'); | ||
} | ||
if (!didFindChild) { | ||
{ | ||
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."); | ||
} | ||
})(); | ||
} | ||
} | ||
} | ||
(function () { | ||
if (!(a.alternate === b)) { | ||
{ | ||
throw ReactError('Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.'); | ||
} | ||
} | ||
})(); | ||
} | ||
// If the root is not a host container, we're in a disconnected tree. I.e. | ||
// unmounted. | ||
(function () { | ||
if (!(a.tag === HostRoot)) { | ||
if (!(a.alternate === b)) { | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); | ||
} | ||
} | ||
})(); | ||
} // If the root is not a host container, we're in a disconnected tree. I.e. | ||
// unmounted. | ||
if (!(a.tag === HostRoot)) { | ||
{ | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
} | ||
if (a.stateNode.current === a) { | ||
// We've determined that A is the current branch. | ||
return fiber; | ||
} | ||
// Otherwise B has to be current branch. | ||
} // Otherwise B has to be current branch. | ||
return alternate; | ||
@@ -475,5 +478,3 @@ } | ||
/* eslint valid-typeof: 0 */ | ||
var EVENT_POOL_SIZE = 10; | ||
/** | ||
@@ -483,2 +484,3 @@ * @interface Event | ||
*/ | ||
var EventInterface = { | ||
@@ -508,3 +510,2 @@ type: null, | ||
} | ||
/** | ||
@@ -528,2 +529,4 @@ * Synthetic events are dispatched by event plugins, typically in response to a | ||
*/ | ||
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { | ||
@@ -542,4 +545,4 @@ { | ||
this.nativeEvent = nativeEvent; | ||
var Interface = this.constructor.Interface; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -549,6 +552,9 @@ if (!Interface.hasOwnProperty(propName)) { | ||
} | ||
{ | ||
delete this[propName]; // this has a getter/setter for warnings | ||
} | ||
var normalize = Interface[propName]; | ||
if (normalize) { | ||
@@ -566,2 +572,3 @@ this[propName] = normalize(nativeEvent); | ||
var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; | ||
if (defaultPrevented) { | ||
@@ -572,2 +579,3 @@ this.isDefaultPrevented = functionThatReturnsTrue; | ||
} | ||
this.isPropagationStopped = functionThatReturnsFalse; | ||
@@ -581,2 +589,3 @@ return this; | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -591,7 +600,8 @@ return; | ||
} | ||
this.isDefaultPrevented = functionThatReturnsTrue; | ||
}, | ||
stopPropagation: function () { | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -636,2 +646,3 @@ return; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -642,2 +653,3 @@ { | ||
} | ||
this.dispatchConfig = null; | ||
@@ -650,2 +662,3 @@ this._targetInst = null; | ||
this._dispatchInstances = null; | ||
{ | ||
@@ -662,6 +675,6 @@ Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); | ||
SyntheticEvent.Interface = EventInterface; | ||
/** | ||
* Helper to reduce boilerplate when creating subclasses. | ||
*/ | ||
SyntheticEvent.extend = function (Interface) { | ||
@@ -671,2 +684,3 @@ var Super = this; | ||
var E = function () {}; | ||
E.prototype = Super.prototype; | ||
@@ -678,10 +692,10 @@ var prototype = new E(); | ||
} | ||
_assign(prototype, Class.prototype); | ||
Class.prototype = prototype; | ||
Class.prototype.constructor = Class; | ||
Class.Interface = _assign({}, Super.Interface, Interface); | ||
Class.extend = Super.extend; | ||
addEventPoolingTo(Class); | ||
return Class; | ||
@@ -691,3 +705,2 @@ }; | ||
addEventPoolingTo(SyntheticEvent); | ||
/** | ||
@@ -700,2 +713,3 @@ * Helper to nullify syntheticEvent instance properties when destructing | ||
*/ | ||
function getPooledWarningPropertyDefinition(propName, getVal) { | ||
@@ -730,2 +744,3 @@ var isFunction = typeof getVal === 'function'; | ||
var EventConstructor = this; | ||
if (EventConstructor.eventPool.length) { | ||
@@ -736,2 +751,3 @@ var instance = EventConstructor.eventPool.pop(); | ||
} | ||
return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); | ||
@@ -742,10 +758,11 @@ } | ||
var EventConstructor = this; | ||
(function () { | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw ReactError('Trying to release an event instance into a pool of a different type.'); | ||
} | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw Error("Trying to release an event instance into a pool of a different type."); | ||
} | ||
})(); | ||
} | ||
event.destructor(); | ||
if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { | ||
@@ -775,8 +792,7 @@ EventConstructor.eventPool.push(event); | ||
*/ | ||
var lowPriorityWarningWithoutStack = function () {}; | ||
var lowPriorityWarning = function () {}; | ||
{ | ||
var printWarning = function (format) { | ||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
@@ -789,5 +805,7 @@ } | ||
}); | ||
if (typeof console !== 'undefined') { | ||
console.warn(message); | ||
} | ||
try { | ||
@@ -801,12 +819,13 @@ // --- Welcome to debugging React --- | ||
lowPriorityWarning = function (condition, format) { | ||
lowPriorityWarningWithoutStack = function (condition, format) { | ||
if (format === undefined) { | ||
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
} | ||
if (!condition) { | ||
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { | ||
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { | ||
args[_key2 - 2] = arguments[_key2]; | ||
} | ||
printWarning.apply(undefined, [format].concat(args)); | ||
printWarning.apply(void 0, [format].concat(args)); | ||
} | ||
@@ -816,3 +835,3 @@ }; | ||
var lowPriorityWarning$1 = lowPriorityWarning; | ||
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack; | ||
@@ -822,3 +841,2 @@ /** | ||
*/ | ||
var ELEMENT_NODE = 1; | ||
@@ -829,3 +847,2 @@ | ||
// (It is the only module that is allowed to access these methods.) | ||
function unsafeCastStringToDOMTopLevelType(topLevelType) { | ||
@@ -844,15 +861,15 @@ return topLevelType; | ||
*/ | ||
function makePrefixMap(styleProp, eventName) { | ||
var prefixes = {}; | ||
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); | ||
prefixes['Webkit' + styleProp] = 'webkit' + eventName; | ||
prefixes['Moz' + styleProp] = 'moz' + eventName; | ||
return prefixes; | ||
} | ||
/** | ||
* A list of event names to a configurable list of vendor prefixes. | ||
*/ | ||
var vendorPrefixes = { | ||
@@ -864,23 +881,22 @@ animationend: makePrefixMap('Animation', 'AnimationEnd'), | ||
}; | ||
/** | ||
* Event names that have already been detected and prefixed (if applicable). | ||
*/ | ||
var prefixedEventNames = {}; | ||
/** | ||
* Element to check for prefixes on. | ||
*/ | ||
var style = {}; | ||
/** | ||
* Bootstrap if a DOM exists. | ||
*/ | ||
if (canUseDOM) { | ||
style = document.createElement('div').style; | ||
// On some platforms, in particular some releases of Android 4.x, | ||
style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x, | ||
// the un-prefixed "animation" and "transition" properties are defined on the | ||
// style object but the events that fire will still be prefixed, so we need | ||
// to check if the un-prefixed events are usable, and if not remove them from the map. | ||
if (!('AnimationEvent' in window)) { | ||
@@ -890,5 +906,5 @@ delete vendorPrefixes.animationend.animation; | ||
delete vendorPrefixes.animationstart.animation; | ||
} | ||
} // Same as above | ||
// Same as above | ||
if (!('TransitionEvent' in window)) { | ||
@@ -898,3 +914,2 @@ delete vendorPrefixes.transitionend.transition; | ||
} | ||
/** | ||
@@ -906,2 +921,4 @@ * Attempts to determine the correct vendor prefixed event name. | ||
*/ | ||
function getVendorPrefixedEventName(eventName) { | ||
@@ -932,2 +949,3 @@ if (prefixedEventNames[eventName]) { | ||
*/ | ||
var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort'); | ||
@@ -1014,5 +1032,3 @@ var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend')); | ||
var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting'); | ||
var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); | ||
// List of events that need to be individually attached to media elements. | ||
var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements. | ||
// Note that events in this list will *not* be listened to at the top level | ||
@@ -1024,3 +1040,4 @@ // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`. | ||
var didWarnAboutMessageChannel = false; | ||
var enqueueTask = void 0; | ||
var enqueueTask; | ||
try { | ||
@@ -1030,5 +1047,5 @@ // read require off the module object to get around the bundlers. | ||
var requireString = ('require' + Math.random()).slice(0, 7); | ||
var nodeRequire = module && module[requireString]; | ||
// assuming we're in node, let's try to get node's | ||
var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's | ||
// version of setImmediate, bypassing fake timers if any. | ||
enqueueTask = nodeRequire('timers').setImmediate; | ||
@@ -1046,2 +1063,3 @@ } catch (_err) { | ||
} | ||
var channel = new MessageChannel(); | ||
@@ -1055,4 +1073,4 @@ channel.port1.onmessage = callback; | ||
// Keep in sync with ReactDOMUnstableNativeDependencies.js | ||
// ReactDOM.js, and ReactTestUtils.js: | ||
var _ReactDOM$__SECRET_IN$1 = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events; | ||
@@ -1071,20 +1089,17 @@ var getInstanceFromNode$1 = _ReactDOM$__SECRET_IN$1[0]; | ||
var flushPassiveEffects$1 = _ReactDOM$__SECRET_IN$1[11]; | ||
var IsThisRendererActing$1 = _ReactDOM$__SECRET_IN$1[12]; | ||
var batchedUpdates = ReactDOM.unstable_batchedUpdates; | ||
var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing; // this implementation should be exactly the same in | ||
// ReactTestUtilsAct.js, ReactTestRendererAct.js, createReactNoop.js | ||
var ReactShouldWarnActingUpdates = ReactSharedInternals.ReactShouldWarnActingUpdates; | ||
var isSchedulerMocked = typeof Scheduler.unstable_flushAllWithoutAsserting === 'function'; | ||
// this implementation should be exactly the same in | ||
// ReactTestUtilsAct.js, ReactTestRendererAct.js, createReactNoop.js | ||
var flushWork = Scheduler.unstable_flushAllWithoutAsserting || function () { | ||
var didFlushWork = false; | ||
var hasWarnedAboutMissingMockScheduler = false; | ||
var flushWork = Scheduler.unstable_flushWithoutYielding || function () { | ||
if (warnAboutMissingMockScheduler === true) { | ||
if (hasWarnedAboutMissingMockScheduler === false) { | ||
warningWithoutStack$1(false, 'Starting from React v17, the "scheduler" module will need to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. To fix this, add the following ' + "to the top of your tests, or in your framework's global config file -\n\n" + 'As an example, for jest - \n' + "jest.mock('scheduler', () => require.requireActual('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler'); | ||
hasWarnedAboutMissingMockScheduler = true; | ||
} | ||
while (flushPassiveEffects$1()) { | ||
didFlushWork = true; | ||
} | ||
while (flushPassiveEffects$1()) {} | ||
return didFlushWork; | ||
}; | ||
@@ -1105,23 +1120,23 @@ | ||
} | ||
} | ||
// we track the 'depth' of the act() calls with this counter, | ||
} // we track the 'depth' of the act() calls with this counter, | ||
// so we can tell if any async act() calls try to run in parallel. | ||
var actingUpdatesScopeDepth = 0; | ||
function act(callback) { | ||
var previousActingUpdatesScopeDepth = void 0; | ||
{ | ||
previousActingUpdatesScopeDepth = actingUpdatesScopeDepth; | ||
actingUpdatesScopeDepth++; | ||
ReactShouldWarnActingUpdates.current = true; | ||
} | ||
var previousActingUpdatesScopeDepth = actingUpdatesScopeDepth; | ||
var previousIsSomeRendererActing; | ||
var previousIsThisRendererActing; | ||
actingUpdatesScopeDepth++; | ||
previousIsSomeRendererActing = IsSomeRendererActing.current; | ||
previousIsThisRendererActing = IsThisRendererActing$1.current; | ||
IsSomeRendererActing.current = true; | ||
IsThisRendererActing$1.current = true; | ||
function onDone() { | ||
actingUpdatesScopeDepth--; | ||
IsSomeRendererActing.current = previousIsSomeRendererActing; | ||
IsThisRendererActing$1.current = previousIsThisRendererActing; | ||
{ | ||
actingUpdatesScopeDepth--; | ||
if (actingUpdatesScopeDepth === 0) { | ||
ReactShouldWarnActingUpdates.current = false; | ||
} | ||
if (actingUpdatesScopeDepth > previousActingUpdatesScopeDepth) { | ||
@@ -1134,3 +1149,12 @@ // if it's _less than_ previousActingUpdatesScopeDepth, then we can assume the 'other' one has warned | ||
var result = batchedUpdates(callback); | ||
var result; | ||
try { | ||
result = batchedUpdates(callback); | ||
} catch (error) { | ||
// on sync errors, we still want to 'cleanup' and decrement actingUpdatesScopeDepth | ||
onDone(); | ||
throw error; | ||
} | ||
if (result !== null && typeof result === 'object' && typeof result.then === 'function') { | ||
@@ -1140,2 +1164,3 @@ // setup a boolean that gets set to true only | ||
var called = false; | ||
{ | ||
@@ -1150,7 +1175,7 @@ if (typeof Promise !== 'undefined') { | ||
} | ||
} | ||
// in the async case, the returned thenable runs the callback, flushes | ||
} // in the async case, the returned thenable runs the callback, flushes | ||
// effects and microtasks in a loop until flushPassiveEffects() === false, | ||
// and cleans up | ||
return { | ||
@@ -1160,4 +1185,13 @@ then: function (resolve, reject) { | ||
result.then(function () { | ||
if (actingUpdatesScopeDepth > 1 || isSchedulerMocked === true && previousIsSomeRendererActing === true) { | ||
onDone(); | ||
resolve(); | ||
return; | ||
} // we're about to exit the act() scope, | ||
// now's the time to flush tasks/effects | ||
flushWorkAndMicroTasks(function (err) { | ||
onDone(); | ||
if (err) { | ||
@@ -1178,7 +1212,12 @@ reject(err); | ||
!(result === undefined) ? warningWithoutStack$1(false, 'The callback passed to act(...) function ' + 'must return undefined, or a Promise. You returned %s', result) : void 0; | ||
} | ||
} // flush effects until none remain, and cleanup | ||
// flush effects until none remain, and cleanup | ||
try { | ||
flushWork(); | ||
if (actingUpdatesScopeDepth === 1 && (isSchedulerMocked === false || previousIsSomeRendererActing === false)) { | ||
// we're about to exit the act() scope, | ||
// now's the time to flush effects | ||
flushWork(); | ||
} | ||
onDone(); | ||
@@ -1188,5 +1227,5 @@ } catch (err) { | ||
throw err; | ||
} | ||
} // in the sync case, the returned thenable only warns *if* await-ed | ||
// in the sync case, the returned thenable only warns *if* await-ed | ||
return { | ||
@@ -1197,2 +1236,3 @@ then: function (resolve) { | ||
} | ||
resolve(); | ||
@@ -1204,4 +1244,3 @@ } | ||
var findDOMNode = ReactDOM.findDOMNode; | ||
// Keep in sync with ReactDOMUnstableNativeDependencies.js | ||
var findDOMNode = ReactDOM.findDOMNode; // Keep in sync with ReactDOMUnstableNativeDependencies.js | ||
// ReactDOM.js, and ReactTestUtilsAct.js: | ||
@@ -1222,8 +1261,7 @@ | ||
var flushPassiveEffects = _ReactDOM$__SECRET_IN[11]; | ||
var IsThisRendererActing = _ReactDOM$__SECRET_IN[12]; | ||
function Event(suffix) {} | ||
var hasWarnedAboutDeprecatedMockComponent = false; | ||
/** | ||
@@ -1240,2 +1278,3 @@ * @class ReactTestUtils | ||
*/ | ||
function simulateNativeEventOnNode(topLevelType, node, fakeNativeEvent) { | ||
@@ -1245,3 +1284,2 @@ fakeNativeEvent.target = node; | ||
} | ||
/** | ||
@@ -1254,2 +1292,4 @@ * Simulates a top level event being dispatched from a raw event that occurred | ||
*/ | ||
function simulateNativeEventOnDOMComponent(topLevelType, comp, fakeNativeEvent) { | ||
@@ -1263,11 +1303,16 @@ simulateNativeEventOnNode(topLevelType, findDOMNode(comp), fakeNativeEvent); | ||
} | ||
var currentParent = findCurrentFiberUsingSlowPath(fiber); | ||
if (!currentParent) { | ||
return []; | ||
} | ||
var node = currentParent; | ||
var ret = []; | ||
while (true) { | ||
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent) { | ||
var publicInst = node.stateNode; | ||
if (test(publicInst)) { | ||
@@ -1277,2 +1322,3 @@ ret.push(publicInst); | ||
} | ||
if (node.child) { | ||
@@ -1283,5 +1329,7 @@ node.child.return = node; | ||
} | ||
if (node === currentParent) { | ||
return ret; | ||
} | ||
while (!node.sibling) { | ||
@@ -1291,4 +1339,6 @@ if (!node.return || node.return === currentParent) { | ||
} | ||
node = node.return; | ||
} | ||
node.sibling.return = node.return; | ||
@@ -1304,2 +1354,3 @@ node = node.sibling; | ||
} | ||
if (get(inst)) { | ||
@@ -1309,4 +1360,6 @@ // This is a public instance indeed. | ||
} | ||
var received = void 0; | ||
var received; | ||
var stringified = '' + inst; | ||
if (Array.isArray(inst)) { | ||
@@ -1321,17 +1374,9 @@ received = 'an array'; | ||
} | ||
(function () { | ||
{ | ||
{ | ||
{ | ||
throw ReactError(methodName + '(...): the first argument must be a React class instance. Instead received: ' + received + '.'); | ||
} | ||
throw Error(methodName + "(...): the first argument must be a React class instance. Instead received: " + received + "."); | ||
} | ||
})(); | ||
} | ||
} | ||
// a plain dom element, lazily initialized, used by act() when flushing effects | ||
var actContainerElement = null; | ||
// a warning for when you try to use TestUtils.act in a non-browser environment | ||
var didWarnAboutActInNodejs = false; | ||
/** | ||
@@ -1346,6 +1391,7 @@ * Utilities for making it easy to test React components. | ||
*/ | ||
var ReactTestUtils = { | ||
renderIntoDocument: function (element) { | ||
var div = document.createElement('div'); | ||
// None of our tests actually require attaching the container to the | ||
var div = document.createElement('div'); // None of our tests actually require attaching the container to the | ||
// DOM, and doing so creates a mess that we rely on test isolation to | ||
@@ -1355,21 +1401,17 @@ // clean up, so we're going to stop honoring the name of this method | ||
// document.documentElement.appendChild(div); | ||
return ReactDOM.render(element, div); | ||
}, | ||
isElement: function (element) { | ||
return React.isValidElement(element); | ||
}, | ||
isElementOfType: function (inst, convenienceConstructor) { | ||
return React.isValidElement(inst) && inst.type === convenienceConstructor; | ||
}, | ||
isDOMComponent: function (inst) { | ||
return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); | ||
}, | ||
isDOMComponentElement: function (inst) { | ||
return !!(inst && React.isValidElement(inst) && !!inst.tagName); | ||
}, | ||
isCompositeComponent: function (inst) { | ||
@@ -1381,5 +1423,5 @@ if (ReactTestUtils.isDOMComponent(inst)) { | ||
} | ||
return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; | ||
}, | ||
isCompositeComponentWithType: function (inst, type) { | ||
@@ -1389,2 +1431,3 @@ if (!ReactTestUtils.isCompositeComponent(inst)) { | ||
} | ||
var internalInstance = get(inst); | ||
@@ -1394,8 +1437,9 @@ var constructor = internalInstance.type; | ||
}, | ||
findAllInRenderedTree: function (inst, test) { | ||
validateClassInstance(inst, 'findAllInRenderedTree'); | ||
if (!inst) { | ||
return []; | ||
} | ||
var internalInstance = get(inst); | ||
@@ -1415,2 +1459,3 @@ return findAllInRenderedFiberTreeInternal(internalInstance, test); | ||
var className = inst.className; | ||
if (typeof className !== 'string') { | ||
@@ -1420,14 +1465,15 @@ // SVG, probably. | ||
} | ||
var classList = className.split(/\s+/); | ||
if (!Array.isArray(classNames)) { | ||
(function () { | ||
if (!(classNames !== undefined)) { | ||
{ | ||
throw ReactError('TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.'); | ||
} | ||
if (!(classNames !== undefined)) { | ||
{ | ||
throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument."); | ||
} | ||
})(); | ||
} | ||
classNames = classNames.split(/\s+/); | ||
} | ||
return classNames.every(function (name) { | ||
@@ -1437,2 +1483,3 @@ return classList.indexOf(name) !== -1; | ||
} | ||
return false; | ||
@@ -1451,5 +1498,7 @@ }); | ||
var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className); | ||
if (all.length !== 1) { | ||
throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); | ||
} | ||
return all[0]; | ||
@@ -1479,5 +1528,7 @@ }, | ||
var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); | ||
if (all.length !== 1) { | ||
throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); | ||
} | ||
return all[0]; | ||
@@ -1506,5 +1557,7 @@ }, | ||
var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType); | ||
if (all.length !== 1) { | ||
throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); | ||
} | ||
return all[0]; | ||
@@ -1529,39 +1582,23 @@ }, | ||
hasWarnedAboutDeprecatedMockComponent = true; | ||
lowPriorityWarning$1(false, 'ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); | ||
lowPriorityWarningWithoutStack$1(false, 'ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); | ||
} | ||
mockTagName = mockTagName || module.mockTagName || 'div'; | ||
module.prototype.render.mockImplementation(function () { | ||
return React.createElement(mockTagName, null, this.props.children); | ||
}); | ||
return this; | ||
}, | ||
nativeTouchData: function (x, y) { | ||
return { | ||
touches: [{ pageX: x, pageY: y }] | ||
touches: [{ | ||
pageX: x, | ||
pageY: y | ||
}] | ||
}; | ||
}, | ||
Simulate: null, | ||
SimulateNative: {}, | ||
act: function (callback) { | ||
if (actContainerElement === null) { | ||
{ | ||
// warn if we're trying to use this in something like node (without jsdom) | ||
if (didWarnAboutActInNodejs === false) { | ||
didWarnAboutActInNodejs = true; | ||
!(typeof document !== 'undefined' && document !== null) ? warningWithoutStack$1(false, 'It looks like you called ReactTestUtils.act(...) in a non-browser environment. ' + "If you're using TestRenderer for your tests, you should call " + 'ReactTestRenderer.act(...) instead of ReactTestUtils.act(...).') : void 0; | ||
} | ||
} | ||
// now make the stub element | ||
actContainerElement = document.createElement('div'); | ||
} | ||
return act(callback); | ||
} | ||
act: act | ||
}; | ||
/** | ||
@@ -1575,33 +1612,29 @@ * Exports: | ||
*/ | ||
function makeSimulator(eventType) { | ||
return function (domNode, eventData) { | ||
(function () { | ||
if (!!React.isValidElement(domNode)) { | ||
{ | ||
throw ReactError('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.'); | ||
} | ||
if (!!React.isValidElement(domNode)) { | ||
{ | ||
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."); | ||
} | ||
})(); | ||
(function () { | ||
if (!!ReactTestUtils.isCompositeComponent(domNode)) { | ||
{ | ||
throw ReactError('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.'); | ||
} | ||
} | ||
if (!!ReactTestUtils.isCompositeComponent(domNode)) { | ||
{ | ||
throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead."); | ||
} | ||
})(); | ||
} | ||
var dispatchConfig = eventNameDispatchConfigs[eventType]; | ||
var fakeNativeEvent = new Event(); | ||
fakeNativeEvent.target = domNode; | ||
fakeNativeEvent.type = eventType.toLowerCase(); | ||
fakeNativeEvent.type = eventType.toLowerCase(); // We don't use SyntheticEvent.getPooled in order to not have to worry about | ||
// properly destroying any properties assigned from `eventData` upon release | ||
// We don't use SyntheticEvent.getPooled in order to not have to worry about | ||
// properly destroying any properties assigned from `eventData` upon release | ||
var targetInst = getInstanceFromNode(domNode); | ||
var event = new SyntheticEvent(dispatchConfig, targetInst, fakeNativeEvent, domNode); | ||
var event = new SyntheticEvent(dispatchConfig, targetInst, fakeNativeEvent, domNode); // Since we aren't using pooling, always persist the event. This will make | ||
// sure it's marked and won't warn when setting additional properties. | ||
// Since we aren't using pooling, always persist the event. This will make | ||
// sure it's marked and won't warn when setting additional properties. | ||
event.persist(); | ||
_assign(event, eventData); | ||
@@ -1627,4 +1660,4 @@ | ||
ReactTestUtils.Simulate = {}; | ||
var eventType; | ||
var eventType = void 0; | ||
for (eventType in eventNameDispatchConfigs) { | ||
@@ -1640,3 +1673,2 @@ /** | ||
buildSimulators(); | ||
/** | ||
@@ -1661,3 +1693,5 @@ * Exports: | ||
var fakeNativeEvent = new Event(eventType); | ||
_assign(fakeNativeEvent, nativeEventData); | ||
if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { | ||
@@ -1684,3 +1718,2 @@ simulateNativeEventOnDOMComponent(topLevelType, domComponentOrNode, fakeNativeEvent); | ||
var ReactTestUtils$2 = Object.freeze({ | ||
@@ -1694,2 +1727,4 @@ default: ReactTestUtils | ||
// This is hacky but makes it work with both Rollup and Jest. | ||
var testUtils = ReactTestUtils$3.default || ReactTestUtils$3; | ||
@@ -1696,0 +1731,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-test-utils.production.min.js | ||
@@ -10,26 +10,27 @@ * | ||
'use strict';var f=require("object-assign"),l=require("react"),m=require("react-dom"),n=require("scheduler");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")}var q=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null});q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});function r(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 t(a){var b=a.alternate;if(!b){b=r(a);if(3===b)throw p(188);return 1===b?null:a}for(var c=a,e=b;;){var d=c.return;if(null===d)break;var g=d.alternate;if(null===g){e=d.return;if(null!==e){c=e;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===c){if(2!==r(d))break;return a}if(g===e){if(2!==r(d))break;return b}g=g.sibling}throw p(188);}if(c.return!==e.return)c=d,e=g;else{for(var h=!1,k=d.child;k;){if(k===c){h=!0;c=d;e=g;break}if(k===e){h=!0;e=d;c=g;break}k=k.sibling}if(!h){for(k=g.child;k;){if(k=== | ||
c){h=!0;c=g;e=d;break}if(k===e){h=!0;e=g;c=d;break}k=k.sibling}if(!h)throw p(189);}}if(c.alternate!==e)throw p(190);}if(3!==c.tag)throw p(188);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} | ||
f(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]= | ||
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}; | ||
w.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;f(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=f({},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){if(!(a instanceof this))throw p(279);a.destructor();10>this.eventPool.length&&this.eventPool.push(a)} | ||
function x(a){a.eventPool=[];a.getPooled=y;a.release=z}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof 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={};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}var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=void 0;try{var L=("require"+Math.random()).slice(0,7);K=(module&&module[L])("timers").setImmediate}catch(a){K=function(b){var c=new MessageChannel;c.port1.onmessage=b;c.port2.postMessage(void 0)}} | ||
var M=K,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events[11],aa=m.unstable_batchedUpdates,O=n.unstable_flushWithoutYielding||function(){for(;N(););};function P(a){try{O(),M(function(){O()?P(a):a()})}catch(b){a(b)}}function ba(a){var b=aa(a);if(null!==b&&"object"===typeof b&&"function"===typeof b.then)return{then:function(a,e){b.then(function(){P(function(b){b?e(b):a()})},function(a){e(a)})}};try{O()}catch(c){throw c;}return{then:function(a){a()}}} | ||
var ca=m.findDOMNode,Q=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,da=Q[0],R=Q[4],ea=Q[5],fa=Q[6],ha=Q[7],ia=Q[8],S=Q[9],ja=Q[10];function T(){}function ka(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}}} | ||
function U(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 p(286,b,a);}} | ||
var V=null,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,b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){U(a,"findAllInRenderedTree");return a?ka(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){U(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0=== | ||
b)throw p(11);b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){U(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){U(a,"scryRenderedDOMComponentsWithTag");return W.findAllInRenderedTree(a,function(a){return W.isDOMComponent(a)&&a.tagName.toUpperCase()=== | ||
b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){U(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){U(a,"scryRenderedComponentsWithType");return W.findAllInRenderedTree(a,function(a){return W.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){U(a,"findRenderedComponentWithType"); | ||
a=W.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){null===V&&(V=document.createElement("div"));return ba(a)}}; | ||
function la(a){return function(b,c){if(l.isValidElement(b))throw p(228);if(W.isCompositeComponent(b))throw p(229);var e=R[a],d=new T;d.target=b;d.type=a.toLowerCase();var g=da(b),h=new w(e,g,d,b);h.persist();f(h,c);e.phasedRegistrationNames?ea(h):fa(h);m.unstable_batchedUpdates(function(){ha(b);ja(h)});ia()}}W.Simulate={};var X=void 0;for(X in R)W.Simulate[X]=la(X); | ||
function ma(a,b){return function(c,e){var d=new T(a);f(d,e);W.isDOMComponent(c)?(c=ca(c),d.target=c,S(b,1,d)):c.tagName&&(d.target=c,S(b,1,d))}} | ||
[["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"], | ||
["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"], | ||
["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart", | ||
"touchStart"],[J,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];W.SimulateNative[b]=ma(b,a[0])});var Y={default:W},Z=Y&&W||Y;module.exports=Z.default||Z; | ||
'use strict';var g=require("object-assign"),k=require("react"),m=require("react-dom"),n=require("scheduler");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;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."}var q=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null});q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});function r(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 t(a){if(r(a)!==a)throw Error(p(188));} | ||
function u(a){var b=a.alternate;if(!b){b=r(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,e=b;;){var d=c.return;if(null===d)break;var f=d.alternate;if(null===f){e=d.return;if(null!==e){c=e;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===c)return t(d),a;if(f===e)return t(d),b;f=f.sibling}throw Error(p(188));}if(c.return!==e.return)c=d,e=f;else{for(var h=!1,l=d.child;l;){if(l===c){h=!0;c=d;e=f;break}if(l===e){h=!0;e=d;c=f;break}l=l.sibling}if(!h){for(l=f.child;l;){if(l=== | ||
c){h=!0;c=f;e=d;break}if(l===e){h=!0;e=f;c=d;break}l=l.sibling}if(!h)throw Error(p(189));}}if(c.alternate!==e)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function v(){return!0}function w(){return!1} | ||
function x(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)?v:w;this.isPropagationStopped=w;return this} | ||
g(x.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:w,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]= | ||
null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=w;this._dispatchInstances=this._dispatchListeners=null}});x.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}; | ||
x.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;y(c);return c};y(x);function z(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 A(a){if(!(a instanceof this))throw Error(p(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function y(a){a.eventPool=[];a.getPooled=z;a.release=A}var B=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function C(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c} | ||
var D={animationend:C("Animation","AnimationEnd"),animationiteration:C("Animation","AnimationIteration"),animationstart:C("Animation","AnimationStart"),transitionend:C("Transition","TransitionEnd")},E={},F={};B&&(F=document.createElement("div").style,"AnimationEvent"in window||(delete D.animationend.animation,delete D.animationiteration.animation,delete D.animationstart.animation),"TransitionEvent"in window||delete D.transitionend.transition); | ||
function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),aa=G("animationiteration"),ba=G("animationstart"),ca=G("transitionend"),I;try{var da=("require"+Math.random()).slice(0,7);I=(module&&module[da])("timers").setImmediate}catch(a){I=function(b){var c=new MessageChannel;c.port1.onmessage=b;c.port2.postMessage(void 0)}} | ||
var ea=I,J=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,fa=J[11],K=J[12],ha=m.unstable_batchedUpdates,L=q.IsSomeRendererActing,M="function"===typeof n.unstable_flushAllWithoutAsserting,N=n.unstable_flushAllWithoutAsserting||function(){for(var a=!1;fa();)a=!0;return a};function O(a){try{N(),ea(function(){N()?O(a):a()})}catch(b){a(b)}}var P=0,Q=!1,ia=m.findDOMNode,R=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ja=R[0],S=R[4],ka=R[5],la=R[6],ma=R[7],na=R[8],T=R[9],oa=R[10]; | ||
function U(){}function pa(a,b){if(!a)return[];a=u(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}} | ||
function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(p(286,b,a));}} | ||
var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a, | ||
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?pa(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(p(11));b=b.split(/\s+/)}return b.every(function(a){return-1!== | ||
d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){V(a,"findRenderedDOMComponentWithClass");a=W.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){V(a,"scryRenderedDOMComponentsWithTag");return W.findAllInRenderedTree(a,function(a){return W.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a, | ||
b){V(a,"findRenderedDOMComponentWithTag");a=W.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){V(a,"scryRenderedComponentsWithType");return W.findAllInRenderedTree(a,function(a){return W.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){V(a,"findRenderedComponentWithType");a=W.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+ | ||
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){P--;L.current=c;K.current=e}!1===Q&&(Q=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));P++;var c= | ||
L.current;var e=K.current;L.current=!0;K.current=!0;try{var d=ha(a)}catch(f){throw b(),f;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1<P||!0===M&&!0===c?(b(),a()):O(function(c){b();c?e(c):a()})},function(a){b();e(a)})}};try{1!==P||!1!==M&&!1!==c||N(),b()}catch(f){throw b(),f;}return{then:function(a){a()}}}}; | ||
function qa(a){return function(b,c){if(k.isValidElement(b))throw Error(p(228));if(W.isCompositeComponent(b))throw Error(p(229));var e=S[a],d=new U;d.target=b;d.type=a.toLowerCase();var f=ja(b),h=new x(e,f,d,b);h.persist();g(h,c);e.phasedRegistrationNames?ka(h):la(h);m.unstable_batchedUpdates(function(){ma(b);oa(h)});na()}}W.Simulate={};for(var X in S)W.Simulate[X]=qa(X); | ||
function ra(a,b){return function(c,e){var d=new U(a);g(d,e);W.isDOMComponent(c)?(c=ia(c),d.target=c,T(b,1,d)):c.tagName&&(d.target=c,T(b,1,d))}} | ||
[["abort","abort"],[H,"animationEnd"],[aa,"animationIteration"],[ba,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit", | ||
"dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove", | ||
"mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"], | ||
["touchstart","touchStart"],[ca,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];W.SimulateNative[b]=ra(b,a[0])});var Y={default:W},Z=Y&&W||Y;module.exports=Z.default||Z; |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-fizz.browser.development.js | ||
@@ -21,10 +21,6 @@ * | ||
} | ||
function flushBuffered(destination) { | ||
// WHATWG Streams do not yet have a way to flush the underlying | ||
function flushBuffered(destination) {// WHATWG Streams do not yet have a way to flush the underlying | ||
// transform streams. https://github.com/whatwg/streams/issues/960 | ||
} | ||
function writeChunk(destination, buffer) { | ||
@@ -34,10 +30,6 @@ destination.enqueue(buffer); | ||
function close(destination) { | ||
destination.close(); | ||
} | ||
var textEncoder = new TextEncoder(); | ||
function convertStringToBuffer(content) { | ||
@@ -49,5 +41,7 @@ return textEncoder.encode(content); | ||
var str = '<' + type + '>'; | ||
if (typeof props.children === 'string') { | ||
str += props.children; | ||
} | ||
str += '</' + type + '>'; | ||
@@ -60,3 +54,2 @@ return convertStringToBuffer(str); | ||
var hasSymbol = typeof Symbol === 'function' && Symbol.for; | ||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | ||
@@ -68,18 +61,12 @@ | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// (unstable) APIs that have been removed. Can we remove the symbols? | ||
// React event targets | ||
function createRequest(children, destination) { | ||
return { destination: destination, children: children, completedChunks: [], flowing: false }; | ||
return { | ||
destination: destination, | ||
children: children, | ||
completedChunks: [], | ||
flowing: false | ||
}; | ||
} | ||
@@ -90,11 +77,16 @@ | ||
request.children = null; | ||
if (element && element.$$typeof !== REACT_ELEMENT_TYPE) { | ||
return; | ||
} | ||
var type = element.type; | ||
var props = element.props; | ||
if (typeof type !== 'string') { | ||
return; | ||
} | ||
request.completedChunks.push(formatChunk(type, props)); | ||
if (request.flowing) { | ||
@@ -111,3 +103,2 @@ flushCompletedChunks(request); | ||
request.completedChunks = []; | ||
try { | ||
@@ -121,2 +112,3 @@ for (var i = 0; i < chunks.length; i++) { | ||
} | ||
close(destination); | ||
@@ -131,3 +123,2 @@ } | ||
} | ||
function startFlowing(request, desiredBytes) { | ||
@@ -142,3 +133,3 @@ request.flowing = false; | ||
function renderToReadableStream(children) { | ||
var request = void 0; | ||
var request; | ||
return new ReadableStream({ | ||
@@ -168,2 +159,4 @@ start: function (controller) { | ||
// This is hacky but makes it work with both Rollup and Jest | ||
var unstableFizz_browser = ReactDOMFizzServerBrowser$2.default || ReactDOMFizzServerBrowser$2; | ||
@@ -170,0 +163,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-fizz.browser.production.min.js | ||
@@ -11,2 +11,2 @@ * | ||
'use strict';var e=new TextEncoder;function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return e.encode(a+("</"+b+">"))}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b<a.length;b++)c.enqueue(a[b]);c.close()} | ||
var l={renderToReadableStream:function(b){var c=void 0;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(g(f,d)),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}},m={default:l},n=m&&l||m;module.exports=n.default||n; | ||
var l={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(g(f,d)),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}},m={default:l},n=m&&l||m;module.exports=n.default||n; |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-fizz.node.development.js | ||
@@ -21,3 +21,2 @@ * | ||
} | ||
function flushBuffered(destination) { | ||
@@ -31,20 +30,16 @@ // If we don't have any more data to send right now. | ||
} | ||
function beginWriting(destination) { | ||
destination.cork(); | ||
} | ||
function writeChunk(destination, buffer) { | ||
var nodeBuffer = buffer; // close enough | ||
destination.write(nodeBuffer); | ||
} | ||
function completeWriting(destination) { | ||
destination.uncork(); | ||
} | ||
function close(destination) { | ||
destination.end(); | ||
} | ||
function convertStringToBuffer(content) { | ||
@@ -56,5 +51,7 @@ return Buffer.from(content, 'utf8'); | ||
var str = '<' + type + '>'; | ||
if (typeof props.children === 'string') { | ||
str += props.children; | ||
} | ||
str += '</' + type + '>'; | ||
@@ -67,3 +64,2 @@ return convertStringToBuffer(str); | ||
var hasSymbol = typeof Symbol === 'function' && Symbol.for; | ||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | ||
@@ -75,18 +71,12 @@ | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// (unstable) APIs that have been removed. Can we remove the symbols? | ||
// React event targets | ||
function createRequest(children, destination) { | ||
return { destination: destination, children: children, completedChunks: [], flowing: false }; | ||
return { | ||
destination: destination, | ||
children: children, | ||
completedChunks: [], | ||
flowing: false | ||
}; | ||
} | ||
@@ -97,11 +87,16 @@ | ||
request.children = null; | ||
if (element && element.$$typeof !== REACT_ELEMENT_TYPE) { | ||
return; | ||
} | ||
var type = element.type; | ||
var props = element.props; | ||
if (typeof type !== 'string') { | ||
return; | ||
} | ||
request.completedChunks.push(formatChunk(type, props)); | ||
if (request.flowing) { | ||
@@ -118,4 +113,4 @@ flushCompletedChunks(request); | ||
request.completedChunks = []; | ||
beginWriting(destination); | ||
beginWriting(destination); | ||
try { | ||
@@ -129,2 +124,3 @@ for (var i = 0; i < chunks.length; i++) { | ||
} | ||
close(destination); | ||
@@ -139,3 +135,2 @@ } | ||
} | ||
function startFlowing(request, desiredBytes) { | ||
@@ -173,2 +168,4 @@ request.flowing = false; | ||
// This is hacky but makes it work with both Rollup and Jest | ||
var unstableFizz_node = ReactDOMFizzServerNode$2.default || ReactDOMFizzServerNode$2; | ||
@@ -175,0 +172,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-fizz.node.production.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-native-dependencies.development.js | ||
@@ -21,16 +21,6 @@ * | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
// Do not require this module directly! Use normal `invariant` calls with | ||
// template literal strings. The messages will be replaced with error codes | ||
// during build. | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
function ReactError(message) { | ||
var error = new Error(message); | ||
error.name = 'Invariant Violation'; | ||
return error; | ||
} | ||
/** | ||
@@ -66,3 +56,2 @@ * Use invariant() to assert state which your program assumes to be true. | ||
// try-catch. Neat! | ||
// Check that the browser supports the APIs we need to implement our special | ||
@@ -115,3 +104,2 @@ // DEV version of invokeGuardedCallback | ||
*/ | ||
var warningWithoutStack = function () {}; | ||
@@ -121,3 +109,3 @@ | ||
warningWithoutStack = function (condition, format) { | ||
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
args[_key - 2] = arguments[_key]; | ||
@@ -129,2 +117,3 @@ } | ||
} | ||
if (args.length > 8) { | ||
@@ -134,5 +123,7 @@ // Check before the condition to catch violations early. | ||
} | ||
if (condition) { | ||
return; | ||
} | ||
if (typeof console !== 'undefined') { | ||
@@ -142,8 +133,8 @@ var argsWithFormat = args.map(function (item) { | ||
}); | ||
argsWithFormat.unshift('Warning: ' + format); | ||
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
// We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
Function.prototype.apply.call(console.error, console, argsWithFormat); | ||
} | ||
try { | ||
@@ -167,3 +158,2 @@ // --- Welcome to debugging React --- | ||
var getNodeFromInstance$1 = null; | ||
function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { | ||
@@ -173,2 +163,3 @@ getFiberCurrentPropsFromNode$1 = getFiberCurrentPropsFromNodeImpl; | ||
getNodeFromInstance$1 = getNodeFromInstanceImpl; | ||
{ | ||
@@ -178,4 +169,4 @@ !(getNodeFromInstance$1 && getInstanceFromNode$1) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0; | ||
} | ||
var validateEventDispatches; | ||
var validateEventDispatches = void 0; | ||
{ | ||
@@ -185,13 +176,9 @@ validateEventDispatches = function (event) { | ||
var dispatchInstances = event._dispatchInstances; | ||
var listenersIsArr = Array.isArray(dispatchListeners); | ||
var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; | ||
var instancesIsArr = Array.isArray(dispatchInstances); | ||
var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; | ||
!(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0; | ||
}; | ||
} | ||
/** | ||
@@ -205,2 +192,3 @@ * Dispatch the event to the listener. | ||
/** | ||
@@ -218,8 +206,11 @@ * Standard/simple iteration through an event's collected dispatches. | ||
*/ | ||
function executeDispatchesInOrderStopAtTrueImpl(event) { | ||
var dispatchListeners = event._dispatchListeners; | ||
var dispatchInstances = event._dispatchInstances; | ||
{ | ||
validateEventDispatches(event); | ||
} | ||
if (Array.isArray(dispatchListeners)) { | ||
@@ -229,4 +220,5 @@ for (var i = 0; i < dispatchListeners.length; i++) { | ||
break; | ||
} | ||
// Listeners and Instances are two parallel arrays that are always in sync. | ||
} // Listeners and Instances are two parallel arrays that are always in sync. | ||
if (dispatchListeners[i](event, dispatchInstances[i])) { | ||
@@ -241,8 +233,10 @@ return dispatchInstances[i]; | ||
} | ||
return null; | ||
} | ||
/** | ||
* @see executeDispatchesInOrderStopAtTrueImpl | ||
*/ | ||
function executeDispatchesInOrderStopAtTrue(event) { | ||
@@ -254,3 +248,2 @@ var ret = executeDispatchesInOrderStopAtTrueImpl(event); | ||
} | ||
/** | ||
@@ -265,2 +258,3 @@ * Execution of a "direct" dispatch - there must be at most one dispatch | ||
*/ | ||
function executeDirectDispatch(event) { | ||
@@ -270,11 +264,12 @@ { | ||
} | ||
var dispatchListener = event._dispatchListeners; | ||
var dispatchInstance = event._dispatchInstances; | ||
(function () { | ||
if (!!Array.isArray(dispatchListener)) { | ||
{ | ||
throw ReactError('executeDirectDispatch(...): Invalid `event`.'); | ||
} | ||
if (!!Array.isArray(dispatchListener)) { | ||
{ | ||
throw Error("executeDirectDispatch(...): Invalid `event`."); | ||
} | ||
})(); | ||
} | ||
event.currentTarget = dispatchListener ? getNodeFromInstance$1(dispatchInstance) : null; | ||
@@ -287,3 +282,2 @@ var res = dispatchListener ? dispatchListener(event) : null; | ||
} | ||
/** | ||
@@ -293,2 +287,3 @@ * @param {SyntheticEvent} event | ||
*/ | ||
function hasDispatches(event) { | ||
@@ -299,4 +294,7 @@ return !!event._dispatchListeners; | ||
// Before we know whether it is function or class | ||
// Root of a host tree. Could be nested inside another node. | ||
// A subtree. Could be an entry point to a different renderer. | ||
var HostComponent = 5; | ||
@@ -306,4 +304,3 @@ | ||
do { | ||
inst = inst.return; | ||
// TODO: If this is a HostRoot we might want to bail out. | ||
inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. | ||
// That is depending on if we want nested subtrees (layers) to bubble | ||
@@ -314,8 +311,9 @@ // events to their parent. We could also go through parentNode on the | ||
} while (inst && inst.tag !== HostComponent); | ||
if (inst) { | ||
return inst; | ||
} | ||
return null; | ||
} | ||
/** | ||
@@ -325,26 +323,32 @@ * Return the lowest common ancestor of A and B, or null if they are in | ||
*/ | ||
function getLowestCommonAncestor(instA, instB) { | ||
var depthA = 0; | ||
for (var tempA = instA; tempA; tempA = getParent(tempA)) { | ||
depthA++; | ||
} | ||
var depthB = 0; | ||
for (var tempB = instB; tempB; tempB = getParent(tempB)) { | ||
depthB++; | ||
} | ||
} // If A is deeper, crawl up. | ||
// If A is deeper, crawl up. | ||
while (depthA - depthB > 0) { | ||
instA = getParent(instA); | ||
depthA--; | ||
} | ||
} // If B is deeper, crawl up. | ||
// If B is deeper, crawl up. | ||
while (depthB - depthA > 0) { | ||
instB = getParent(instB); | ||
depthB--; | ||
} | ||
} // Walk in lockstep until we find a match. | ||
// Walk in lockstep until we find a match. | ||
var depth = depthA; | ||
while (depth--) { | ||
@@ -354,11 +358,13 @@ if (instA === instB || instA === instB.alternate) { | ||
} | ||
instA = getParent(instA); | ||
instB = getParent(instB); | ||
} | ||
return null; | ||
} | ||
/** | ||
* Return if A is an ancestor of B. | ||
*/ | ||
function isAncestor(instA, instB) { | ||
@@ -369,19 +375,22 @@ while (instB) { | ||
} | ||
instB = getParent(instB); | ||
} | ||
return false; | ||
} | ||
/** | ||
* Return the parent instance of the passed-in instance. | ||
*/ | ||
function getParentInstance(inst) { | ||
return getParent(inst); | ||
} | ||
/** | ||
* Simulates the traversal of a two-phase, capture/bubble event dispatch. | ||
*/ | ||
function traverseTwoPhase(inst, fn, arg) { | ||
var path = []; | ||
while (inst) { | ||
@@ -391,6 +400,9 @@ path.push(inst); | ||
} | ||
var i = void 0; | ||
var i; | ||
for (i = path.length; i-- > 0;) { | ||
fn(path[i], 'captured', arg); | ||
} | ||
for (i = 0; i < path.length; i++) { | ||
@@ -400,3 +412,2 @@ fn(path[i], 'bubbled', arg); | ||
} | ||
/** | ||
@@ -421,2 +432,3 @@ * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that | ||
/** | ||
@@ -444,3 +456,3 @@ * Mapping from event name to dispatch config | ||
// Trust the developer to only use possibleRegistrationNames in true | ||
// Trust the developer to only use possibleRegistrationNames in true | ||
@@ -483,16 +495,14 @@ /** | ||
function accumulateInto(current, next) { | ||
(function () { | ||
if (!(next != null)) { | ||
{ | ||
throw ReactError('accumulateInto(...): Accumulated items must not be null or undefined.'); | ||
} | ||
if (!(next != null)) { | ||
{ | ||
throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); | ||
} | ||
})(); | ||
} | ||
if (current == null) { | ||
return next; | ||
} | ||
} // Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
// Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
if (Array.isArray(current)) { | ||
@@ -503,2 +513,3 @@ if (Array.isArray(next)) { | ||
} | ||
current.push(next); | ||
@@ -550,2 +561,3 @@ return current; | ||
return !!(props.disabled && isInteractive(type)); | ||
default: | ||
@@ -555,3 +567,2 @@ return false; | ||
} | ||
/** | ||
@@ -585,2 +596,3 @@ * This is a unified interface for event plugins to be installed and configured. | ||
/** | ||
@@ -591,8 +603,9 @@ * @param {object} inst The instance, which is the source of events. | ||
*/ | ||
function getListener(inst, registrationName) { | ||
var listener = void 0; | ||
var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not | ||
// live here; needs to be moved to a better place soon | ||
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not | ||
// live here; needs to be moved to a better place soon | ||
var stateNode = inst.stateNode; | ||
if (!stateNode) { | ||
@@ -602,3 +615,5 @@ // Work in progress (ex: onload events in incremental mode). | ||
} | ||
var props = getFiberCurrentPropsFromNode$1(stateNode); | ||
if (!props) { | ||
@@ -608,13 +623,15 @@ // Work in progress. | ||
} | ||
listener = props[registrationName]; | ||
if (shouldPreventMouseEvent(registrationName, inst.type, props)) { | ||
return null; | ||
} | ||
(function () { | ||
if (!(!listener || typeof listener === 'function')) { | ||
{ | ||
throw ReactError('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'); | ||
} | ||
if (!(!listener || typeof listener === 'function')) { | ||
{ | ||
throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); | ||
} | ||
})(); | ||
} | ||
return listener; | ||
@@ -631,3 +648,2 @@ } | ||
} | ||
/** | ||
@@ -649,2 +665,4 @@ * A small set of propagation patterns, each of which will accept a small amount | ||
*/ | ||
function accumulateDirectionalDispatches(inst, phase, event) { | ||
@@ -654,3 +672,5 @@ { | ||
} | ||
var listener = listenerAtPhase(inst, event, phase); | ||
if (listener) { | ||
@@ -661,3 +681,2 @@ event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); | ||
} | ||
/** | ||
@@ -670,2 +689,4 @@ * Collect dispatches (must be entirely collected before dispatching - see unit | ||
*/ | ||
function accumulateTwoPhaseDispatchesSingle(event) { | ||
@@ -676,6 +697,7 @@ if (event && event.dispatchConfig.phasedRegistrationNames) { | ||
} | ||
/** | ||
* Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID. | ||
*/ | ||
function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { | ||
@@ -688,3 +710,2 @@ if (event && event.dispatchConfig.phasedRegistrationNames) { | ||
} | ||
/** | ||
@@ -695,2 +716,4 @@ * Accumulates without regard to direction, does not look for phased | ||
*/ | ||
function accumulateDispatches(inst, ignoredDirection, event) { | ||
@@ -700,2 +723,3 @@ if (inst && event && event.dispatchConfig.registrationName) { | ||
var listener = getListener(inst, registrationName); | ||
if (listener) { | ||
@@ -707,3 +731,2 @@ event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); | ||
} | ||
/** | ||
@@ -714,2 +737,4 @@ * Accumulates dispatches on an `SyntheticEvent`, but only for the | ||
*/ | ||
function accumulateDirectDispatchesSingle(event) { | ||
@@ -724,3 +749,2 @@ if (event && event.dispatchConfig.registrationName) { | ||
} | ||
function accumulateTwoPhaseDispatchesSkipTarget(events) { | ||
@@ -730,4 +754,2 @@ forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); | ||
function accumulateDirectDispatches(events) { | ||
@@ -738,5 +760,3 @@ forEachAccumulated(events, accumulateDirectDispatchesSingle); | ||
/* eslint valid-typeof: 0 */ | ||
var EVENT_POOL_SIZE = 10; | ||
/** | ||
@@ -746,2 +766,3 @@ * @interface Event | ||
*/ | ||
var EventInterface = { | ||
@@ -771,3 +792,2 @@ type: null, | ||
} | ||
/** | ||
@@ -791,2 +811,4 @@ * Synthetic events are dispatched by event plugins, typically in response to a | ||
*/ | ||
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { | ||
@@ -805,4 +827,4 @@ { | ||
this.nativeEvent = nativeEvent; | ||
var Interface = this.constructor.Interface; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -812,6 +834,9 @@ if (!Interface.hasOwnProperty(propName)) { | ||
} | ||
{ | ||
delete this[propName]; // this has a getter/setter for warnings | ||
} | ||
var normalize = Interface[propName]; | ||
if (normalize) { | ||
@@ -829,2 +854,3 @@ this[propName] = normalize(nativeEvent); | ||
var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; | ||
if (defaultPrevented) { | ||
@@ -835,2 +861,3 @@ this.isDefaultPrevented = functionThatReturnsTrue; | ||
} | ||
this.isPropagationStopped = functionThatReturnsFalse; | ||
@@ -844,2 +871,3 @@ return this; | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -854,7 +882,8 @@ return; | ||
} | ||
this.isDefaultPrevented = functionThatReturnsTrue; | ||
}, | ||
stopPropagation: function () { | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -899,2 +928,3 @@ return; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -905,2 +935,3 @@ { | ||
} | ||
this.dispatchConfig = null; | ||
@@ -913,2 +944,3 @@ this._targetInst = null; | ||
this._dispatchInstances = null; | ||
{ | ||
@@ -925,6 +957,6 @@ Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); | ||
SyntheticEvent.Interface = EventInterface; | ||
/** | ||
* Helper to reduce boilerplate when creating subclasses. | ||
*/ | ||
SyntheticEvent.extend = function (Interface) { | ||
@@ -934,2 +966,3 @@ var Super = this; | ||
var E = function () {}; | ||
E.prototype = Super.prototype; | ||
@@ -941,10 +974,10 @@ var prototype = new E(); | ||
} | ||
_assign(prototype, Class.prototype); | ||
Class.prototype = prototype; | ||
Class.prototype.constructor = Class; | ||
Class.Interface = _assign({}, Super.Interface, Interface); | ||
Class.extend = Super.extend; | ||
addEventPoolingTo(Class); | ||
return Class; | ||
@@ -954,3 +987,2 @@ }; | ||
addEventPoolingTo(SyntheticEvent); | ||
/** | ||
@@ -963,2 +995,3 @@ * Helper to nullify syntheticEvent instance properties when destructing | ||
*/ | ||
function getPooledWarningPropertyDefinition(propName, getVal) { | ||
@@ -993,2 +1026,3 @@ var isFunction = typeof getVal === 'function'; | ||
var EventConstructor = this; | ||
if (EventConstructor.eventPool.length) { | ||
@@ -999,2 +1033,3 @@ var instance = EventConstructor.eventPool.pop(); | ||
} | ||
return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); | ||
@@ -1005,10 +1040,11 @@ } | ||
var EventConstructor = this; | ||
(function () { | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw ReactError('Trying to release an event instance into a pool of a different type.'); | ||
} | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw Error("Trying to release an event instance into a pool of a different type."); | ||
} | ||
})(); | ||
} | ||
event.destructor(); | ||
if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { | ||
@@ -1030,2 +1066,3 @@ EventConstructor.eventPool.push(event); | ||
*/ | ||
var ResponderSyntheticEvent = SyntheticEvent.extend({ | ||
@@ -1039,3 +1076,2 @@ touchHistory: function (nativeEvent) { | ||
// but our build system currently doesn't let us do that from a fork. | ||
var TOP_TOUCH_START = 'touchstart'; | ||
@@ -1050,15 +1086,11 @@ var TOP_TOUCH_MOVE = 'touchmove'; | ||
var TOP_MOUSE_UP = 'mouseup'; | ||
function isStartish(topLevelType) { | ||
return topLevelType === TOP_TOUCH_START || topLevelType === TOP_MOUSE_DOWN; | ||
} | ||
function isMoveish(topLevelType) { | ||
return topLevelType === TOP_TOUCH_MOVE || topLevelType === TOP_MOUSE_MOVE; | ||
} | ||
function isEndish(topLevelType) { | ||
return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL || topLevelType === TOP_MOUSE_UP; | ||
} | ||
var startDependencies = [TOP_TOUCH_START, TOP_MOUSE_DOWN]; | ||
@@ -1074,3 +1106,2 @@ var moveDependencies = [TOP_TOUCH_MOVE, TOP_MOUSE_MOVE]; | ||
var MAX_TOUCH_BANK = 20; | ||
@@ -1094,3 +1125,2 @@ var touchBank = []; | ||
} | ||
/** | ||
@@ -1100,2 +1130,4 @@ * TODO: Instead of making gestures recompute filtered velocity, we could | ||
*/ | ||
function createTouchRecord(touch) { | ||
@@ -1132,12 +1164,12 @@ return { | ||
(function () { | ||
if (!(identifier != null)) { | ||
{ | ||
throw ReactError('Touch object is missing identifier.'); | ||
} | ||
if (!(identifier != null)) { | ||
{ | ||
throw Error("Touch object is missing identifier."); | ||
} | ||
})(); | ||
} | ||
{ | ||
!(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; | ||
} | ||
return identifier; | ||
@@ -1149,2 +1181,3 @@ } | ||
var touchRecord = touchBank[identifier]; | ||
if (touchRecord) { | ||
@@ -1155,2 +1188,3 @@ resetTouchRecord(touchRecord, touch); | ||
} | ||
touchHistory.mostRecentTimeStamp = timestampForTouch(touch); | ||
@@ -1161,2 +1195,3 @@ } | ||
var touchRecord = touchBank[getTouchIdentifier(touch)]; | ||
if (touchRecord) { | ||
@@ -1172,3 +1207,3 @@ touchRecord.touchActive = true; | ||
} else { | ||
console.error('Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
console.warn('Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
} | ||
@@ -1179,2 +1214,3 @@ } | ||
var touchRecord = touchBank[getTouchIdentifier(touch)]; | ||
if (touchRecord) { | ||
@@ -1190,3 +1226,3 @@ touchRecord.touchActive = false; | ||
} else { | ||
console.error('Cannot record touch end without a touch start.\n' + 'Touch End: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
console.warn('Cannot record touch end without a touch start.\n' + 'Touch End: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
} | ||
@@ -1206,5 +1242,7 @@ } | ||
var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); | ||
if (touchBank.length > MAX_TOUCH_BANK) { | ||
printed += ' (original size: ' + touchBank.length + ')'; | ||
} | ||
return printed; | ||
@@ -1220,2 +1258,3 @@ } | ||
touchHistory.numberActiveTouches = nativeEvent.touches.length; | ||
if (touchHistory.numberActiveTouches === 1) { | ||
@@ -1227,5 +1266,7 @@ touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; | ||
touchHistory.numberActiveTouches = nativeEvent.touches.length; | ||
if (touchHistory.numberActiveTouches === 1) { | ||
for (var i = 0; i < touchBank.length; i++) { | ||
var touchTrackToCheck = touchBank[i]; | ||
if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { | ||
@@ -1236,2 +1277,3 @@ touchHistory.indexOfSingleActiveTouch = i; | ||
} | ||
{ | ||
@@ -1244,4 +1286,2 @@ var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; | ||
}, | ||
touchHistory: touchHistory | ||
@@ -1257,17 +1297,16 @@ }; | ||
*/ | ||
function accumulate(current, next) { | ||
(function () { | ||
if (!(next != null)) { | ||
{ | ||
throw ReactError('accumulate(...): Accumulated items must not be null or undefined.'); | ||
} | ||
if (!(next != null)) { | ||
{ | ||
throw Error("accumulate(...): Accumulated items must not be null or undefined."); | ||
} | ||
})(); | ||
} | ||
if (current == null) { | ||
return next; | ||
} | ||
} // Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
// Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
if (Array.isArray(current)) { | ||
@@ -1288,4 +1327,4 @@ return current.concat(next); | ||
*/ | ||
var responderInst = null; | ||
/** | ||
@@ -1295,2 +1334,3 @@ * Count of current touches. A textInput should become responder iff the | ||
*/ | ||
var trackedTouchCount = 0; | ||
@@ -1301,2 +1341,3 @@ | ||
responderInst = nextResponderInst; | ||
if (ResponderEventPlugin.GlobalResponderHandler !== null) { | ||
@@ -1400,3 +1441,2 @@ ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); | ||
}; | ||
/** | ||
@@ -1593,14 +1633,13 @@ * | ||
function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { | ||
var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; | ||
var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; // TODO: stop one short of the current responder. | ||
// TODO: stop one short of the current responder. | ||
var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); | ||
// When capturing/bubbling the "shouldSet" event, we want to skip the target | ||
var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); // When capturing/bubbling the "shouldSet" event, we want to skip the target | ||
// (deepest ID) if it happens to be the current responder. The reasoning: | ||
// It's strange to get an `onMoveShouldSetResponder` when you're *already* | ||
// the responder. | ||
var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; | ||
var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); | ||
shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; | ||
if (skipOverBubbleShouldSetFrom) { | ||
@@ -1611,3 +1650,5 @@ accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); | ||
} | ||
var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); | ||
if (!shouldSetEvent.isPersistent()) { | ||
@@ -1620,8 +1661,9 @@ shouldSetEvent.constructor.release(shouldSetEvent); | ||
} | ||
var extracted = void 0; | ||
var extracted; | ||
var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); | ||
grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; | ||
accumulateDirectDispatches(grantEvent); | ||
var blockHostResponder = executeDirectDispatch(grantEvent) === true; | ||
if (responderInst) { | ||
@@ -1632,2 +1674,3 @@ var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); | ||
var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); | ||
if (!terminationRequestEvent.isPersistent()) { | ||
@@ -1653,5 +1696,5 @@ terminationRequestEvent.constructor.release(terminationRequestEvent); | ||
} | ||
return extracted; | ||
} | ||
/** | ||
@@ -1665,5 +1708,6 @@ * A transfer is a negotiation between a currently set responder and the next | ||
*/ | ||
function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { | ||
return topLevelInst && ( | ||
// responderIgnoreScroll: We are trying to migrate away from specifically | ||
return topLevelInst && ( // responderIgnoreScroll: We are trying to migrate away from specifically | ||
// tracking native scroll events here and responderIgnoreScroll indicates we | ||
@@ -1673,3 +1717,2 @@ // will send topTouchCancel to handle canceling touch events instead | ||
} | ||
/** | ||
@@ -1682,13 +1725,19 @@ * Returns whether or not this touch end event makes it such that there are no | ||
*/ | ||
function noResponderTouches(nativeEvent) { | ||
var touches = nativeEvent.touches; | ||
if (!touches || touches.length === 0) { | ||
return true; | ||
} | ||
for (var i = 0; i < touches.length; i++) { | ||
var activeTouch = touches[i]; | ||
var target = activeTouch.target; | ||
if (target !== null && target !== undefined && target !== 0) { | ||
// Is the original touch location inside of the current responder? | ||
var targetInst = getInstanceFromNode$1(target); | ||
if (isAncestor(responderInst, targetInst)) { | ||
@@ -1699,2 +1748,3 @@ return false; | ||
} | ||
return true; | ||
@@ -1708,3 +1758,2 @@ } | ||
}, | ||
eventTypes: eventTypes, | ||
@@ -1717,3 +1766,3 @@ | ||
*/ | ||
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { | ||
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { | ||
if (isStartish(topLevelType)) { | ||
@@ -1725,3 +1774,3 @@ trackedTouchCount += 1; | ||
} else { | ||
console.error('Ended a touch event which was not counted in `trackedTouchCount`.'); | ||
console.warn('Ended a touch event which was not counted in `trackedTouchCount`.'); | ||
return null; | ||
@@ -1732,5 +1781,3 @@ } | ||
ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); | ||
var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; | ||
// Responder may or may not have transferred on a new touch start/move. | ||
var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; // Responder may or may not have transferred on a new touch start/move. | ||
// Regardless, whoever is the responder after any potential transfer, we | ||
@@ -1745,2 +1792,3 @@ // direct all touch start/move/ends to them in the form of | ||
// (`onResponderRelease/onResponderTerminate`). | ||
var isResponderTouchStart = responderInst && isStartish(topLevelType); | ||
@@ -1761,2 +1809,3 @@ var isResponderTouchMove = responderInst && isMoveish(topLevelType); | ||
var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; | ||
if (finalTouch) { | ||
@@ -1772,5 +1821,3 @@ var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); | ||
}, | ||
GlobalResponderHandler: null, | ||
injection: { | ||
@@ -1788,4 +1835,4 @@ /** | ||
// Inject react-dom's ComponentTree into this module. | ||
// Keep in sync with ReactDOM.js, ReactTestUtils.js, and ReactTestUtilsAct.js: | ||
var _ReactDOM$__SECRET_IN = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events; | ||
@@ -1796,8 +1843,5 @@ var getInstanceFromNode = _ReactDOM$__SECRET_IN[0]; | ||
var injectEventPluginsByName = _ReactDOM$__SECRET_IN[3]; | ||
setComponentTree(getFiberCurrentPropsFromNode, getInstanceFromNode, getNodeFromInstance); | ||
var ReactDOMUnstableNativeDependencies = Object.freeze({ | ||
@@ -1804,0 +1848,0 @@ ResponderEventPlugin: ResponderEventPlugin, |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-native-dependencies.production.min.js | ||
@@ -10,27 +10,27 @@ * | ||
'use strict';var k=require("react-dom"),l=require("object-assign");function m(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 Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")}var n=null,p=null,q=null; | ||
function r(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))throw m(103);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 u(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)} | ||
function v(a,b){if(null==b)throw m(30);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 w(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)} | ||
function x(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;if(c&&"function"!==typeof c)throw m(231,b,typeof c); | ||
return c}function y(a,b,c){if(b=x(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=v(c._dispatchListeners,b),c._dispatchInstances=v(c._dispatchInstances,a)}function aa(a){a&&a.dispatchConfig.phasedRegistrationNames&&u(a._targetInst,y,a)}function ba(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;u(b,y,a)}} | ||
function z(a){if(a&&a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=x(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=v(a._dispatchListeners,c),a._dispatchInstances=v(a._dispatchInstances,b))}}}function B(){return!0}function C(){return!1} | ||
function D(a,b,c,f){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=f:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?B:C;this.isPropagationStopped=C;return this} | ||
l(D.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=B)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=B)},persist:function(){this.isPersistent=B},isPersistent:C,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=C;this._dispatchInstances=this._dispatchListeners=null}});D.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}; | ||
D.extend=function(a){function b(){}function c(){return f.apply(this,arguments)}var f=this;b.prototype=f.prototype;var e=new b;l(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=l({},f.Interface,a);c.extend=f.extend;E(c);return c};E(D);function ca(a,b,c,f){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,f);return e}return new this(a,b,c,f)}function da(a){if(!(a instanceof this))throw m(279);a.destructor();10>this.eventPool.length&&this.eventPool.push(a)} | ||
function E(a){a.eventPool=[];a.getPooled=ca;a.release=da}var F=D.extend({touchHistory:function(){return null}});function G(a){return"touchstart"===a||"mousedown"===a}function H(a){return"touchmove"===a||"mousemove"===a}function I(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}var J=["touchstart","mousedown"],K=["touchmove","mousemove"],L=["touchcancel","touchend","mouseup"],M=[],N={touchBank:M,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}; | ||
function O(a){return a.timeStamp||a.timestamp}function P(a){a=a.identifier;if(null==a)throw m(138);return a} | ||
function ea(a){var b=P(a),c=M[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=O(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=O(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=O(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:O(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:O(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:O(a)},M[b]=c);N.mostRecentTimeStamp=O(a)} | ||
function fa(a){var b=M[P(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=O(a),N.mostRecentTimeStamp=O(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",Q(a),R())} | ||
function ha(a){var b=M[P(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=O(a),N.mostRecentTimeStamp=O(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",Q(a),R())}function Q(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:O(a)})} | ||
function R(){var a=JSON.stringify(M.slice(0,20));20<M.length&&(a+=" (original size: "+M.length+")");return a} | ||
var S={recordTouchTrack:function(a,b){if(H(a))b.changedTouches.forEach(fa);else if(G(a))b.changedTouches.forEach(ea),N.numberActiveTouches=b.touches.length,1===N.numberActiveTouches&&(N.indexOfSingleActiveTouch=b.touches[0].identifier);else if(I(a)&&(b.changedTouches.forEach(ha),N.numberActiveTouches=b.touches.length,1===N.numberActiveTouches))for(a=0;a<M.length;a++)if(b=M[a],null!=b&&b.touchActive){N.indexOfSingleActiveTouch=a;break}},touchHistory:N}; | ||
function T(a,b){if(null==b)throw m(334);return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var U=null,V=0;function W(a,b){var c=U;U=a;if(null!==X.GlobalResponderHandler)X.GlobalResponderHandler.onChange(c,a,b)} | ||
var Y={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:J},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"},dependencies:["scroll"]},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]}, | ||
moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:K},responderStart:{registrationName:"onResponderStart",dependencies:J},responderMove:{registrationName:"onResponderMove",dependencies:K},responderEnd:{registrationName:"onResponderEnd",dependencies:L},responderRelease:{registrationName:"onResponderRelease",dependencies:L},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]}, | ||
responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},X={_getResponder:function(){return U},eventTypes:Y,extractEvents:function(a,b,c,f){if(G(a))V+=1;else if(I(a))if(0<=V)--V;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;S.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll|| | ||
0<V&&"selectionchange"===a||G(a)||H(a))){var e=G(a)?Y.startShouldSetResponder:H(a)?Y.moveShouldSetResponder:"selectionchange"===a?Y.selectionChangeShouldSetResponder:Y.scrollShouldSetResponder;if(U)b:{var d=U;for(var g=0,h=d;h;h=t(h))g++;h=0;for(var A=b;A;A=t(A))h++;for(;0<g-h;)d=t(d),g--;for(;0<h-g;)b=t(b),h--;for(;g--;){if(d===b||d===b.alternate)break b;d=t(d);b=t(b)}d=null}else d=b;b=d===U;d=F.getPooled(e,d,c,f);d.touchHistory=S.touchHistory;b?w(d,ba):w(d,aa);b:{e=d._dispatchListeners;b=d._dispatchInstances; | ||
if(Array.isArray(e))for(g=0;g<e.length&&!d.isPropagationStopped();g++){if(e[g](d,b[g])){e=b[g];break b}}else if(e&&e(d,b)){e=b;break b}e=null}d._dispatchInstances=null;d._dispatchListeners=null;d.isPersistent()||d.constructor.release(d);e&&e!==U?(d=void 0,b=F.getPooled(Y.responderGrant,e,c,f),b.touchHistory=S.touchHistory,w(b,z),g=!0===r(b),U?(h=F.getPooled(Y.responderTerminationRequest,U,c,f),h.touchHistory=S.touchHistory,w(h,z),A=!h._dispatchListeners||r(h),h.isPersistent()||h.constructor.release(h), | ||
A?(h=F.getPooled(Y.responderTerminate,U,c,f),h.touchHistory=S.touchHistory,w(h,z),d=T(d,[b,h]),W(e,g)):(e=F.getPooled(Y.responderReject,e,c,f),e.touchHistory=S.touchHistory,w(e,z),d=T(d,e))):(d=T(d,b),W(e,g)),e=d):e=null}else e=null;d=U&&G(a);b=U&&H(a);g=U&&I(a);if(d=d?Y.responderStart:b?Y.responderMove:g?Y.responderEnd:null)d=F.getPooled(d,U,c,f),d.touchHistory=S.touchHistory,w(d,z),e=T(e,d);d=U&&"touchcancel"===a;if(a=U&&!d&&I(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target, | ||
null!==g&&void 0!==g&&0!==g){h=p(g);b:{for(g=U;h;){if(g===h||g===h.alternate){g=!0;break b}h=t(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?Y.responderTerminate:a?Y.responderRelease:null)c=F.getPooled(a,U,c,f),c.touchHistory=S.touchHistory,w(c,z),e=T(e,c),W(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){X.GlobalResponderHandler=a}}},Z=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ia=Z[3],ja=Z[0],ka=Z[1];n=Z[2];p=ja;q=ka; | ||
module.exports={ResponderEventPlugin:X,ResponderTouchHistoryStore:S,injectEventPluginsByName:ia}; | ||
'use strict';var aa=require("react-dom"),h=require("object-assign");function k(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."}var l=null,n=null,p=null; | ||
function r(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))throw Error(k(103));a.currentTarget=b?p(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 u(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)} | ||
function v(a,b){if(null==b)throw Error(k(30));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 w(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)} | ||
function x(a,b){var c=a.stateNode;if(!c)return null;var f=l(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;if(c&&"function"!==typeof c)throw Error(k(231,b,typeof c)); | ||
return c}function y(a,b,c){if(b=x(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=v(c._dispatchListeners,b),c._dispatchInstances=v(c._dispatchInstances,a)}function ba(a){a&&a.dispatchConfig.phasedRegistrationNames&&u(a._targetInst,y,a)}function ca(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;u(b,y,a)}} | ||
function z(a){if(a&&a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=x(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=v(a._dispatchListeners,c),a._dispatchInstances=v(a._dispatchInstances,b))}}}function A(){return!0}function B(){return!1} | ||
function C(a,b,c,f){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=f:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?A:B;this.isPropagationStopped=B;return this} | ||
h(C.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=A)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=A)},persist:function(){this.isPersistent=A},isPersistent:B,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=B;this._dispatchInstances=this._dispatchListeners=null}});C.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}; | ||
C.extend=function(a){function b(){}function c(){return f.apply(this,arguments)}var f=this;b.prototype=f.prototype;var d=new b;h(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=h({},f.Interface,a);c.extend=f.extend;D(c);return c};D(C);function da(a,b,c,f){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,f);return d}return new this(a,b,c,f)} | ||
function ea(a){if(!(a instanceof this))throw Error(k(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function D(a){a.eventPool=[];a.getPooled=da;a.release=ea}var E=C.extend({touchHistory:function(){return null}});function F(a){return"touchstart"===a||"mousedown"===a}function G(a){return"touchmove"===a||"mousemove"===a}function H(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a} | ||
var I=["touchstart","mousedown"],J=["touchmove","mousemove"],K=["touchcancel","touchend","mouseup"],L=[],N={touchBank:L,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function O(a){return a.timeStamp||a.timestamp}function P(a){a=a.identifier;if(null==a)throw Error(k(138));return a} | ||
function fa(a){var b=P(a),c=L[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=O(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=O(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=O(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:O(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:O(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:O(a)},L[b]=c);N.mostRecentTimeStamp=O(a)} | ||
function ha(a){var b=L[P(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=O(a),N.mostRecentTimeStamp=O(a)):console.warn("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",Q(a),R())} | ||
function ia(a){var b=L[P(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=O(a),N.mostRecentTimeStamp=O(a)):console.warn("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",Q(a),R())}function Q(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:O(a)})} | ||
function R(){var a=JSON.stringify(L.slice(0,20));20<L.length&&(a+=" (original size: "+L.length+")");return a} | ||
var S={recordTouchTrack:function(a,b){if(G(a))b.changedTouches.forEach(ha);else if(F(a))b.changedTouches.forEach(fa),N.numberActiveTouches=b.touches.length,1===N.numberActiveTouches&&(N.indexOfSingleActiveTouch=b.touches[0].identifier);else if(H(a)&&(b.changedTouches.forEach(ia),N.numberActiveTouches=b.touches.length,1===N.numberActiveTouches))for(a=0;a<L.length;a++)if(b=L[a],null!=b&&b.touchActive){N.indexOfSingleActiveTouch=a;break}},touchHistory:N}; | ||
function T(a,b){if(null==b)throw Error(k(334));return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var U=null,V=0;function W(a,b){var c=U;U=a;if(null!==X.GlobalResponderHandler)X.GlobalResponderHandler.onChange(c,a,b)} | ||
var Y={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:I},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"},dependencies:["scroll"]},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]}, | ||
moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:J},responderStart:{registrationName:"onResponderStart",dependencies:I},responderMove:{registrationName:"onResponderMove",dependencies:J},responderEnd:{registrationName:"onResponderEnd",dependencies:K},responderRelease:{registrationName:"onResponderRelease",dependencies:K},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]}, | ||
responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},X={_getResponder:function(){return U},eventTypes:Y,extractEvents:function(a,b,c,f){if(F(a))V+=1;else if(H(a))if(0<=V)--V;else return console.warn("Ended a touch event which was not counted in `trackedTouchCount`."),null;S.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll|| | ||
0<V&&"selectionchange"===a||F(a)||G(a))){var d=F(a)?Y.startShouldSetResponder:G(a)?Y.moveShouldSetResponder:"selectionchange"===a?Y.selectionChangeShouldSetResponder:Y.scrollShouldSetResponder;if(U)b:{var e=U;for(var g=0,q=e;q;q=t(q))g++;q=0;for(var M=b;M;M=t(M))q++;for(;0<g-q;)e=t(e),g--;for(;0<q-g;)b=t(b),q--;for(;g--;){if(e===b||e===b.alternate)break b;e=t(e);b=t(b)}e=null}else e=b;b=e===U;e=E.getPooled(d,e,c,f);e.touchHistory=S.touchHistory;b?w(e,ca):w(e,ba);b:{d=e._dispatchListeners;b=e._dispatchInstances; | ||
if(Array.isArray(d))for(g=0;g<d.length&&!e.isPropagationStopped();g++){if(d[g](e,b[g])){d=b[g];break b}}else if(d&&d(e,b)){d=b;break b}d=null}e._dispatchInstances=null;e._dispatchListeners=null;e.isPersistent()||e.constructor.release(e);if(d&&d!==U)if(e=E.getPooled(Y.responderGrant,d,c,f),e.touchHistory=S.touchHistory,w(e,z),b=!0===r(e),U)if(g=E.getPooled(Y.responderTerminationRequest,U,c,f),g.touchHistory=S.touchHistory,w(g,z),q=!g._dispatchListeners||r(g),g.isPersistent()||g.constructor.release(g), | ||
q){g=E.getPooled(Y.responderTerminate,U,c,f);g.touchHistory=S.touchHistory;w(g,z);var m=T(m,[e,g]);W(d,b)}else d=E.getPooled(Y.responderReject,d,c,f),d.touchHistory=S.touchHistory,w(d,z),m=T(m,d);else m=T(m,e),W(d,b);else m=null}else m=null;d=U&&F(a);e=U&&G(a);b=U&&H(a);if(d=d?Y.responderStart:e?Y.responderMove:b?Y.responderEnd:null)d=E.getPooled(d,U,c,f),d.touchHistory=S.touchHistory,w(d,z),m=T(m,d);d=U&&"touchcancel"===a;if(a=U&&!d&&H(a))a:{if((a=c.touches)&&0!==a.length)for(e=0;e<a.length;e++)if(b= | ||
a[e].target,null!==b&&void 0!==b&&0!==b){g=n(b);b:{for(b=U;g;){if(b===g||b===g.alternate){b=!0;break b}g=t(g)}b=!1}if(b){a=!1;break a}}a=!0}if(a=d?Y.responderTerminate:a?Y.responderRelease:null)c=E.getPooled(a,U,c,f),c.touchHistory=S.touchHistory,w(c,z),m=T(m,c),W(null);return m},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){X.GlobalResponderHandler=a}}},Z=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ja=Z[3],ka=Z[0],la=Z[1];l=Z[2];n=ka;p=la; | ||
module.exports={ResponderEventPlugin:X,ResponderTouchHistoryStore:S,injectEventPluginsByName:ja}; |
{ | ||
"name": "react-dom", | ||
"version": "0.0.0-50b50c26f", | ||
"version": "0.0.0-5faf377df", | ||
"description": "React package for working with the DOM.", | ||
@@ -23,6 +23,6 @@ "main": "index.js", | ||
"prop-types": "^15.6.2", | ||
"scheduler": "0.0.0-50b50c26f" | ||
"scheduler": "0.0.0-5faf377df" | ||
}, | ||
"peerDependencies": { | ||
"react": "0.0.0-50b50c26f" | ||
"react": "0.0.0-5faf377df" | ||
}, | ||
@@ -29,0 +29,0 @@ "files": [ |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-server.browser.production.min.js | ||
@@ -9,37 +9,38 @@ * | ||
*/ | ||
'use strict';(function(t,q){"object"===typeof exports&&"undefined"!==typeof module?module.exports=q(require("react")):"function"===typeof define&&define.amd?define(["react"],q):t.ReactDOMServer=q(t.React)})(this,function(t){function q(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d]);return Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")} | ||
function G(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 K:return"Fragment";case U:return"Portal";case V:return"Profiler";case W:return"StrictMode";case L:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case X:return"Context.Consumer";case M:return"Context.Provider";case Y:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case Z:return G(a.type); | ||
case aa:if(a=1===a._status?a._result:null)return G(a)}return null}function C(a,b){for(var d=a._threadCount|0;d<=b;d++)a[d]=a._currentValue2,a._threadCount=d+1}function ra(a,b,d){var c=a.contextType;if("object"===typeof c&&null!==c)return C(c,d),c[d];if(a=a.contextTypes){d={};for(var f in a)d[f]=b[f];b=d}else b=ba;return b}function ca(a){if(da.call(ea,a))return!0;if(da.call(fa,a))return!1;if(sa.test(a))return ea[a]=!0;fa[a]=!0;return!1}function ta(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0; | ||
case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function ua(a,b,d,c){if(null===b||"undefined"===typeof b||ta(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.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 r(a,b,d,c,f,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName= | ||
a;this.type=b;this.sanitizeURL=e}function A(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=va.exec(a);if(b){var d="",c,f=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}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a}function wa(a,b){var d=p.hasOwnProperty(a)?p[a]:null;var c;if(c="style"!==a)c=null!== | ||
d?0===d.type:!(2<a.length)||"o"!==a[0]&&"O"!==a[0]||"n"!==a[1]&&"N"!==a[1]?!1:!0;if(c||ua(a,b,d,!1))return"";if(null!==d){a=d.attributeName;c=d.type;if(3===c||4===c&&!0===b)return a+'=""';d.sanitizeURL&&(b=""+b);return a+"="+('"'+A(b)+'"')}return ca(a)?a+"="+('"'+A(b)+'"'):""}function H(){if(null===u)throw q(321);return u}function ha(){if(0<I)throw q(312);return{memoizedState:null,queue:null,next:null}}function N(){null===h?null===J?(D=!1,J=h=ha()):(D=!0,h=J):null===h.next?(D=!1,h=h.next=ha()):(D= | ||
!0,h=h.next);return h}function ia(a,b,d,c){for(;O;)O=!1,I+=1,h=null,d=a(b,c);J=u=null;I=0;h=x=null;return d}function ja(a,b){return"function"===typeof b?b(a):b}function ka(a,b,d){u=H();h=N();if(D){var c=h.queue;b=c.dispatch;if(null!==x&&(d=x.get(c),void 0!==d)){x.delete(c);c=h.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);h.memoizedState=c;return[c,b]}return[h.memoizedState,b]}a=a===ja?"function"===typeof b?b():b:void 0!==d?d(b):b;h.memoizedState=a;a=h.queue={last:null,dispatch:null}; | ||
a=a.dispatch=xa.bind(null,u,a);return[h.memoizedState,a]}function xa(a,b,d){if(!(25>I))throw q(301);if(a===u)if(O=!0,a={action:d,next:null},null===x&&(x=new Map),d=x.get(b),void 0===d)x.set(b,a);else{for(b=d;null!==b.next;)b=b.next;b.next=a}}function P(){}function la(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 ya(a){if(void 0===a||null===a)return a;var b="";t.Children.forEach(a, | ||
function(a){null!=a&&(b+=a)});return b}function ma(a,b){if(void 0===a)throw q(152,G(b)||"Component");}function za(a,b,d){function c(c,f){var e=ra(f,b,d),g=[],k=!1,h={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===g)return null},enqueueReplaceState:function(a,b){k=!0;g=[b]},enqueueSetState:function(a,b){if(null===g)return null;g.push(b)}},n=void 0;if(f.prototype&&f.prototype.isReactComponent){if(n=new f(c.props,e,h),"function"===typeof f.getDerivedStateFromProps){var l=f.getDerivedStateFromProps.call(null, | ||
c.props,n.state);null!=l&&(n.state=y({},n.state,l))}}else if(u={},n=f(c.props,e,h),n=ia(f,c.props,n,e),null==n||null==n.render){a=n;ma(a,f);return}n.props=c.props;n.context=e;n.updater=h;h=n.state;void 0===h&&(n.state=h=null);if("function"===typeof n.UNSAFE_componentWillMount||"function"===typeof n.componentWillMount)if("function"===typeof n.componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&n.componentWillMount(),"function"===typeof n.UNSAFE_componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&& | ||
n.UNSAFE_componentWillMount(),g.length){h=g;var v=k;g=null;k=!1;if(v&&1===h.length)n.state=h[0];else{l=v?h[0]:n.state;var p=!0;for(v=v?1:0;v<h.length;v++){var m=h[v];m="function"===typeof m?m.call(n,l,c.props,e):m;null!=m&&(p?(p=!1,l=y({},l,m)):y(l,m))}n.state=l}}else g=null;a=n.render();ma(a,f);c=void 0;if("function"===typeof n.getChildContext&&(e=f.childContextTypes,"object"===typeof e)){c=n.getChildContext();for(var r in c)if(!(r in e))throw q(108,G(f)||"Unknown",r);}c&&(b=y({},b,c))}for(;t.isValidElement(a);){var f= | ||
a,e=f.type;if("function"!==typeof e)break;c(f,e)}return{child:a,context:b}}var y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,l="function"===typeof Symbol&&Symbol.for,U=l?Symbol.for("react.portal"):60106,K=l?Symbol.for("react.fragment"):60107,W=l?Symbol.for("react.strict_mode"):60108,V=l?Symbol.for("react.profiler"):60114,M=l?Symbol.for("react.provider"):60109,X=l?Symbol.for("react.context"):60110,Ba=l?Symbol.for("react.concurrent_mode"):60111,Y=l?Symbol.for("react.forward_ref"):60112, | ||
L=l?Symbol.for("react.suspense"):60113,Z=l?Symbol.for("react.memo"):60115,aa=l?Symbol.for("react.lazy"):60116,Ca=l?Symbol.for("react.event_component"):60117,Da=l?Symbol.for("react.event_target"):60118;l&&Symbol.for("react.event_target.touch_hit");l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;l.hasOwnProperty("ReactCurrentDispatcher")||(l.ReactCurrentDispatcher={current:null});l.hasOwnProperty("ReactCurrentBatchConfig")||(l.ReactCurrentBatchConfig={suspense:null});for(var ba={},m=new Uint16Array(16), | ||
B=0;15>B;B++)m[B]=B+1;m[15]=0;var sa=/^[: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]*$/,da=Object.prototype.hasOwnProperty,fa={},ea={},p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style hydrateTouchHitTarget".split(" ").forEach(function(a){p[a]= | ||
new r(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];p[b]=new r(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){p[a]=new r(a,2,!1,a.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){p[a]=new r(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){p[a]= | ||
new r(a,3,!1,a.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(a){p[a]=new r(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){p[a]=new r(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){p[a]=new r(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){p[a]=new r(a,5,!1,a.toLowerCase(),null,!1)});var Q=/[\-:]([a-z])/g,R=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b= | ||
a.replace(Q,R);p[b]=new r(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(Q,R);p[b]=new r(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Q,R);p[b]=new r(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){p[a]=new r(a,1,!1,a.toLowerCase(),null,!1)});p.xlinkHref=new r("xlinkHref",1,!1,"xlink:href", | ||
"http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){p[a]=new r(a,1,!1,a.toLowerCase(),null,!0)});var va=/["'&<>]/,u=null,J=null,h=null,D=!1,O=!1,x=null,I=0,E=0,Ea={readContext:function(a,b){b=E;C(a,b);return a[b]},useContext:function(a,b){H();b=E;C(a,b);return a[b]},useMemo:function(a,b){u=H();h=N();b=void 0===b?null:b;if(null!==h){var d=h.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f<c.length&&f<b.length;f++){var e= | ||
b[f],k=c[f];if((e!==k||0===e&&1/e!==1/k)&&(e===e||k===k)){c=!1;break a}}c=!0}}if(c)return d[0]}}a=a();h.memoizedState=[a,b];return a},useReducer:ka,useRef:function(a){u=H();h=N();var b=h.memoizedState;return null===b?(a={current:a},h.memoizedState=a):b},useState:function(a){return ka(ja,a)},useLayoutEffect:function(a,b){},useCallback:function(a,b){return a},useImperativeHandle:P,useEffect:P,useDebugValue:P},oa={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},Fa=y({menuitem:!0},oa),F={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,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},Ga=["Webkit","ms","Moz","O"];Object.keys(F).forEach(function(a){Ga.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);F[b]=F[a]})});var Ha=/([A-Z])/g,Ia=/^ms-/,z=t.Children.toArray,S=l.ReactCurrentDispatcher,Ja={listing:!0,pre:!0,textarea:!0},Ka=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,pa={},T={},La=Object.prototype.hasOwnProperty, | ||
Ma={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},qa=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");t.isValidElement(b)?b.type!==K?b=[b]:(b=b.props.children,b=t.isValidElement(b)?[b]:z(b)):b=z(b);b={type:null,domNamespace:"http://www.w3.org/1999/xhtml",children:b,childIndex:0,context:ba,footer:""};var c=m[0];if(0===c){var f=m;c=f.length;var e=2*c;if(!(65536>=e))throw q(304); | ||
var k=new Uint16Array(e);k.set(f);m=k;m[0]=c+1;for(f=c;f<e-1;f++)m[f]=f+1;m[e-1]=0}else m[0]=m[c];this.threadID=c;this.stack=[b];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;m[a]=m[0];m[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex, | ||
c=a.type._context,f=this.threadID;C(c,f);var e=c[f];this.contextStack[b]=c;this.contextValueStack[b]=e;c[f]=a.props.value};a.prototype.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};a.prototype.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};a.prototype.read=function(a){if(this.exhausted)return null; | ||
var b=E;E=this.threadID;var c=S.current;S.current=Ea;try{for(var f=[""],e=!1;f[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var k=this.threadID;m[k]=m[0];m[0]=k;break}var g=this.stack[this.stack.length-1];if(e||g.childIndex>=g.children.length){var h=g.footer;""!==h&&(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===M)this.popProvider(g.type);else if(g.type===L){this.suspenseDepth--; | ||
var l=f.pop();if(e){e=!1;var na=g.fallbackFrame;if(!na)throw q(303);this.stack.push(na);f[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else f[this.suspenseDepth]+=l}f[this.suspenseDepth]+=h}else{var p=g.children[g.childIndex++],n="";try{n+=this.render(p,g.context,g.domNamespace)}catch(Aa){throw Aa;}finally{}f.length<=this.suspenseDepth&&f.push("");f[this.suspenseDepth]+=n}}return f[0]}finally{S.current=c,E=b}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+ | ||
a;if(""===c)return"";if(this.makeStaticMarkup)return A(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+A(c);this.previousWasTextNode=!0;return A(c)}d=za(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!t.isValidElement(a)){if(null!=a&&null!=a.$$typeof){c=a.$$typeof;if(c===U)throw q(257);throw q(258,c.toString());}a=z(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}var b=a.type;if("string"===typeof b)return this.renderDOM(a, | ||
d,c);switch(b){case W:case Ba:case V:case K:return a=z(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case L:throw q(294);}if("object"===typeof b&&null!==b)switch(b.$$typeof){case Y:u={};var e=b.render(a.props,a.ref);e=ia(b.render,a.props,e,a.ref);e=z(e);this.stack.push({type:null,domNamespace:c,children:e,childIndex:0,context:d,footer:""});return"";case Z:return a=[t.createElement(b.type,y({ref:a.ref},a.props))],this.stack.push({type:null, | ||
domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case M:return b=z(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case X:b=a.type;e=a.props;var k=this.threadID;C(b,k);b=z(e.children(b[k]));this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""});return"";case Ca:case Da:throw q(335);case aa:throw q(295);}throw q(130,null==b?b:typeof b,"");};a.prototype.renderDOM=function(a, | ||
d,c){var b=a.type.toLowerCase();"http://www.w3.org/1999/xhtml"===c&&la(b);if(!pa.hasOwnProperty(b)){if(!Ka.test(b))throw q(65,b);pa[b]=!0}var e=a.props;if("input"===b)e=y({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:e.defaultChecked});else if("textarea"===b){var k=e.value;if(null==k){k=e.defaultValue;var g=e.children;if(null!=g){if(null!=k)throw q(92);if(Array.isArray(g)){if(!(1>=g.length))throw q(93);g=g[0]}k= | ||
""+g}null==k&&(k="")}e=y({},e,{value:void 0,children:""+k})}else if("select"===b)this.currentSelectValue=null!=e.value?e.value:e.defaultValue,e=y({},e,{value:void 0});else if("option"===b){g=this.currentSelectValue;var h=ya(e.children);if(null!=g){var l=null!=e.value?e.value+"":h;k=!1;if(Array.isArray(g))for(var m=0;m<g.length;m++){if(""+g[m]===l){k=!0;break}}else k=""+g===l;e=y({selected:void 0,children:void 0},e,{selected:k,children:h})}}if(k=e){if(Fa[b]&&(null!=k.children||null!=k.dangerouslySetInnerHTML))throw q(137, | ||
b,"");if(null!=k.dangerouslySetInnerHTML){if(null!=k.children)throw q(60);if(!("object"===typeof k.dangerouslySetInnerHTML&&"__html"in k.dangerouslySetInnerHTML))throw q(61);}if(null!=k.style&&"object"!==typeof k.style)throw q(62,"");}k=e;g=this.makeStaticMarkup;h=1===this.stack.length;l="<"+a.type;for(w in k)if(La.call(k,w)){var p=k[w];if(null!=p){if("style"===w){m=void 0;var n="",r="";for(m in p)if(p.hasOwnProperty(m)){var v=0===m.indexOf("--"),t=p[m];if(null!=t){var u=m;if(T.hasOwnProperty(u))u= | ||
T[u];else{var x=u.replace(Ha,"-$1").toLowerCase().replace(Ia,"-ms-");u=T[u]=x}n+=r+u+":";r=m;v=null==t||"boolean"===typeof t||""===t?"":v||"number"!==typeof t||0===t||F.hasOwnProperty(r)&&F[r]?(""+t).trim():t+"px";n+=v;r=";"}}p=n||null}m=null;b:if(v=b,t=k,-1===v.indexOf("-"))v="string"===typeof t.is;else switch(v){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":v=!1;break b;default:v= | ||
!0}v?Ma.hasOwnProperty(w)||(m=w,m=ca(m)&&null!=p?m+"="+('"'+A(p)+'"'):""):m=wa(w,p);m&&(l+=" "+m)}}g||h&&(l+=' data-reactroot=""');var w=l;k="";oa.hasOwnProperty(b)?w+="/>":(w+=">",k="</"+a.type+">");a:{g=e.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,"string"===typeof g||"number"===typeof g){g=A(g);break a}g=null}null!=g?(e=[],Ja[b]&&"\n"===g.charAt(0)&&(w+="\n"),w+=g):e=z(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?la(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:e,childIndex:0,context:d,footer:k});this.previousWasTextNode=!1;return w};return a}();l={renderToString:function(a){a=new qa(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new qa(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw q(207);},renderToStaticNodeStream:function(){throw q(208); | ||
},version:"16.8.6-canary-50b50c26f"};l=(B={default:l},l)||B;return l.default||l}); | ||
'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."} | ||
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"=== | ||
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= | ||
{};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; | ||
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; | ||
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+"="+('"'+ | ||
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? | ||
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=== | ||
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= | ||
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|| | ||
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= | ||
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}} | ||
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"): | ||
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]*$/, | ||
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, | ||
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]= | ||
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= | ||
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", | ||
"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= | ||
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(); | ||
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, | ||
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, | ||
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= | ||
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= | ||
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; | ||
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--; | ||
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"=== | ||
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= | ||
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, | ||
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= | ||
[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, | ||
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; | ||
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)); | ||
}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|| | ||
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)? | ||
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}); | ||
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.10.2-5faf377df"};k=(D={default:k},k)||D;return k.default||k}); |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-test-utils.development.js | ||
@@ -19,19 +19,8 @@ * | ||
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var _assign = ReactInternals.assign; | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
// Do not require this module directly! Use normal `invariant` calls with | ||
// template literal strings. The messages will be replaced with error codes | ||
// during build. | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
function ReactError(message) { | ||
var error = new Error(message); | ||
error.name = 'Invariant Violation'; | ||
return error; | ||
} | ||
/** | ||
@@ -54,3 +43,2 @@ * Use invariant() to assert state which your program assumes to be true. | ||
*/ | ||
var warningWithoutStack = function () {}; | ||
@@ -60,3 +48,3 @@ | ||
warningWithoutStack = function (condition, format) { | ||
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
args[_key - 2] = arguments[_key]; | ||
@@ -68,2 +56,3 @@ } | ||
} | ||
if (args.length > 8) { | ||
@@ -73,5 +62,7 @@ // Check before the condition to catch violations early. | ||
} | ||
if (condition) { | ||
return; | ||
} | ||
if (typeof console !== 'undefined') { | ||
@@ -81,8 +72,8 @@ var argsWithFormat = args.map(function (item) { | ||
}); | ||
argsWithFormat.unshift('Warning: ' + format); | ||
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
// We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
Function.prototype.apply.call(console.error, console, argsWithFormat); | ||
} | ||
try { | ||
@@ -119,3 +110,2 @@ // --- Welcome to debugging React --- | ||
function get(key) { | ||
@@ -125,7 +115,6 @@ return key._reactInternalFiber; | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
// Prevent newer renderers from RTE when used with older react package versions. | ||
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions. | ||
// Current owner and dispatcher used to share the same ref, | ||
// but PR #14548 split them out to better support the react-debug-tools package. | ||
if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) { | ||
@@ -136,2 +125,3 @@ ReactSharedInternals.ReactCurrentDispatcher = { | ||
} | ||
if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) { | ||
@@ -151,127 +141,123 @@ ReactSharedInternals.ReactCurrentBatchConfig = { | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// (unstable) APIs that have been removed. Can we remove the symbols? | ||
{ | ||
} | ||
var FunctionComponent = 0; | ||
var ClassComponent = 1; | ||
// Before we know whether it is function or class | ||
var HostRoot = 3; // Root of a host tree. Could be nested inside another node. | ||
// A subtree. Could be an entry point to a different renderer. | ||
var HostComponent = 5; | ||
var HostText = 6; | ||
// Don't change these two values. They're used by React Dev Tools. | ||
var NoEffect = | ||
/* */ | ||
0; | ||
// You can change the rest (and add more). | ||
var Placement = | ||
/* */ | ||
2; | ||
// React event targets | ||
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: | ||
// In some cases, StrictMode should also double-render lifecycles. | ||
// This can be confusing for tests though, | ||
// And it can be bad for performance in production. | ||
// This feature flag can be used to control the behavior: | ||
// To preserve the "Pause on caught exceptions" behavior of the debugger, we | ||
// replay the begin phase of a failed component inside invokeGuardedCallback. | ||
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: | ||
var Hydrating = | ||
/* */ | ||
1024; | ||
// Passive & Update & Callback & Ref & Snapshot | ||
// Union of all host effects | ||
// Gather advanced timing metrics for Profiler subtrees. | ||
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: | ||
// In some cases, StrictMode should also double-render lifecycles. | ||
// This can be confusing for tests though, | ||
// And it can be bad for performance in production. | ||
// This feature flag can be used to control the behavior: | ||
// Trace which interactions trigger each commit. | ||
// To preserve the "Pause on caught exceptions" behavior of the debugger, we | ||
// replay the begin phase of a failed component inside invokeGuardedCallback. | ||
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: | ||
// Only used in www builds. | ||
// TODO: true? Here it might just be false. | ||
// Gather advanced timing metrics for Profiler subtrees. | ||
// Only used in www builds. | ||
// Trace which interactions trigger each commit. | ||
// SSR experiments | ||
// Only used in www builds. | ||
// Only used in www builds. | ||
// Disable javascript: URL strings in href for XSS protection. | ||
// Only used in www builds. | ||
// Disable javascript: URL strings in href for XSS protection. | ||
// Disables yielding during render in Concurrent Mode. Used for debugging only. | ||
// React Fire: prevent the value and checked attributes from syncing | ||
// React Fire: prevent the value and checked attributes from syncing | ||
// with their related DOM properties | ||
// These APIs will no longer be "unstable" in the upcoming 16.7 release, | ||
// These APIs will no longer be "unstable" in the upcoming 16.7 release, | ||
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. | ||
// Experimental React Flare event system and event components support. | ||
// Experimental Host Component support. | ||
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information | ||
// This is a flag so we can fix warnings in RN core before turning it on | ||
// Experimental Scope support. | ||
// New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 | ||
// Experimental React Events support. Only used in www builds for now. | ||
// New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 | ||
// We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) | ||
// We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) | ||
// Till then, we warn about the missing mock, but still fallback to a sync mode compatible version | ||
var warnAboutMissingMockScheduler = false; | ||
// Temporary flag to revert the fix in #15650 | ||
var FunctionComponent = 0; | ||
var ClassComponent = 1; | ||
// Before we know whether it is function or class | ||
var HostRoot = 3; // Root of a host tree. Could be nested inside another node. | ||
// A subtree. Could be an entry point to a different renderer. | ||
var HostComponent = 5; | ||
var HostText = 6; | ||
// For tests, we flush suspense fallbacks in an act scope; | ||
// *except* in some of our own tests, where we test incremental loading states. | ||
// Don't change these two values. They're used by React Dev Tools. | ||
var NoEffect = /* */0; | ||
// Add a callback property to suspense to notify which promises are currently | ||
// in the update queue. This allows reporting and tracing of what is causing | ||
// the user to see a loading state. | ||
// Also allows hydration callbacks to fire when a dehydrated boundary gets | ||
// hydrated or deleted. | ||
// Part of the simplification of React.createElement so we can eventually move | ||
// from React.createElement to React.jsx | ||
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md | ||
// You can change the rest (and add more). | ||
var Placement = /* */2; | ||
// Passive & Update & Callback & Ref & Snapshot | ||
// Union of all host effects | ||
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; | ||
function getNearestMountedFiber(fiber) { | ||
var node = fiber; | ||
var nearestMounted = fiber; | ||
var MOUNTING = 1; | ||
var MOUNTED = 2; | ||
var UNMOUNTED = 3; | ||
function isFiberMountedImpl(fiber) { | ||
var node = fiber; | ||
if (!fiber.alternate) { | ||
// If there is no alternate, this might be a new tree that isn't inserted | ||
// yet. If it is, then it will have a pending insertion effect on it. | ||
if ((node.effectTag & Placement) !== NoEffect) { | ||
return MOUNTING; | ||
} | ||
while (node.return) { | ||
node = node.return; | ||
if ((node.effectTag & Placement) !== NoEffect) { | ||
return MOUNTING; | ||
var nextNode = node; | ||
do { | ||
node = nextNode; | ||
if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) { | ||
// This is an insertion or in-progress hydration. The nearest possible | ||
// mounted fiber is the parent but we need to continue to figure out | ||
// if that one is still mounted. | ||
nearestMounted = node.return; | ||
} | ||
} | ||
nextNode = node.return; | ||
} while (nextNode); | ||
} else { | ||
@@ -282,10 +268,12 @@ while (node.return) { | ||
} | ||
if (node.tag === HostRoot) { | ||
// TODO: Check if this was a nested HostRoot when used with | ||
// renderContainerIntoSubtree. | ||
return MOUNTED; | ||
} | ||
// If we didn't hit the root, that means that we're in an disconnected tree | ||
return nearestMounted; | ||
} // If we didn't hit the root, that means that we're in an disconnected tree | ||
// that has been unmounted. | ||
return UNMOUNTED; | ||
return null; | ||
} | ||
@@ -298,9 +286,7 @@ | ||
function assertIsMounted(fiber) { | ||
(function () { | ||
if (!(isFiberMountedImpl(fiber) === MOUNTED)) { | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
} | ||
if (!(getNearestMountedFiber(fiber) === fiber)) { | ||
{ | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
})(); | ||
} | ||
} | ||
@@ -310,24 +296,29 @@ | ||
var alternate = fiber.alternate; | ||
if (!alternate) { | ||
// If there is no alternate, then we only need to check if it is mounted. | ||
var state = isFiberMountedImpl(fiber); | ||
(function () { | ||
if (!(state !== UNMOUNTED)) { | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
} | ||
var nearestMounted = getNearestMountedFiber(fiber); | ||
if (!(nearestMounted !== null)) { | ||
{ | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
})(); | ||
if (state === MOUNTING) { | ||
} | ||
if (nearestMounted !== fiber) { | ||
return null; | ||
} | ||
return fiber; | ||
} | ||
// If we have two possible branches, we'll walk backwards up to the root | ||
} // If we have two possible branches, we'll walk backwards up to the root | ||
// to see what path the root points to. On the way we may hit one of the | ||
// special cases and we'll deal with them. | ||
var a = fiber; | ||
var b = alternate; | ||
while (true) { | ||
var parentA = a.return; | ||
if (parentA === null) { | ||
@@ -337,3 +328,5 @@ // We're at the root. | ||
} | ||
var parentB = parentA.alternate; | ||
if (parentB === null) { | ||
@@ -345,15 +338,18 @@ // There is no alternate. This is an unusual case. Currently, it only | ||
var nextParent = parentA.return; | ||
if (nextParent !== null) { | ||
a = b = nextParent; | ||
continue; | ||
} | ||
// If there's no parent, we're at the root. | ||
} // If there's no parent, we're at the root. | ||
break; | ||
} | ||
// If both copies of the parent fiber point to the same child, we can | ||
} // If both copies of the parent fiber point to the same child, we can | ||
// assume that the child is current. This happens when we bailout on low | ||
// priority: the bailed out fiber's child reuses the current child. | ||
if (parentA.child === parentB.child) { | ||
var child = parentA.child; | ||
while (child) { | ||
@@ -365,2 +361,3 @@ if (child === a) { | ||
} | ||
if (child === b) { | ||
@@ -371,13 +368,13 @@ // We've determined that B is the current branch. | ||
} | ||
child = child.sibling; | ||
} | ||
// We should never have an alternate for any mounting node. So the only | ||
} // We should never have an alternate for any mounting node. So the only | ||
// way this could possibly happen is if this was unmounted, if at all. | ||
(function () { | ||
{ | ||
{ | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
} | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
})(); | ||
} | ||
} | ||
@@ -400,2 +397,3 @@ | ||
var _child = parentA.child; | ||
while (_child) { | ||
@@ -408,2 +406,3 @@ if (_child === a) { | ||
} | ||
if (_child === b) { | ||
@@ -415,7 +414,10 @@ didFindChild = true; | ||
} | ||
_child = _child.sibling; | ||
} | ||
if (!didFindChild) { | ||
// Search parent B's child set | ||
_child = parentB.child; | ||
while (_child) { | ||
@@ -428,2 +430,3 @@ if (_child === a) { | ||
} | ||
if (_child === b) { | ||
@@ -435,36 +438,35 @@ didFindChild = true; | ||
} | ||
_child = _child.sibling; | ||
} | ||
(function () { | ||
if (!didFindChild) { | ||
{ | ||
throw ReactError('Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.'); | ||
} | ||
if (!didFindChild) { | ||
{ | ||
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."); | ||
} | ||
})(); | ||
} | ||
} | ||
} | ||
(function () { | ||
if (!(a.alternate === b)) { | ||
{ | ||
throw ReactError('Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.'); | ||
} | ||
} | ||
})(); | ||
} | ||
// If the root is not a host container, we're in a disconnected tree. I.e. | ||
// unmounted. | ||
(function () { | ||
if (!(a.tag === HostRoot)) { | ||
if (!(a.alternate === b)) { | ||
{ | ||
throw ReactError('Unable to find node on an unmounted component.'); | ||
throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); | ||
} | ||
} | ||
})(); | ||
} // If the root is not a host container, we're in a disconnected tree. I.e. | ||
// unmounted. | ||
if (!(a.tag === HostRoot)) { | ||
{ | ||
throw Error("Unable to find node on an unmounted component."); | ||
} | ||
} | ||
if (a.stateNode.current === a) { | ||
// We've determined that A is the current branch. | ||
return fiber; | ||
} | ||
// Otherwise B has to be current branch. | ||
} // Otherwise B has to be current branch. | ||
return alternate; | ||
@@ -474,5 +476,3 @@ } | ||
/* eslint valid-typeof: 0 */ | ||
var EVENT_POOL_SIZE = 10; | ||
/** | ||
@@ -482,2 +482,3 @@ * @interface Event | ||
*/ | ||
var EventInterface = { | ||
@@ -507,3 +508,2 @@ type: null, | ||
} | ||
/** | ||
@@ -527,2 +527,4 @@ * Synthetic events are dispatched by event plugins, typically in response to a | ||
*/ | ||
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { | ||
@@ -541,4 +543,4 @@ { | ||
this.nativeEvent = nativeEvent; | ||
var Interface = this.constructor.Interface; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -548,6 +550,9 @@ if (!Interface.hasOwnProperty(propName)) { | ||
} | ||
{ | ||
delete this[propName]; // this has a getter/setter for warnings | ||
} | ||
var normalize = Interface[propName]; | ||
if (normalize) { | ||
@@ -565,2 +570,3 @@ this[propName] = normalize(nativeEvent); | ||
var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; | ||
if (defaultPrevented) { | ||
@@ -571,2 +577,3 @@ this.isDefaultPrevented = functionThatReturnsTrue; | ||
} | ||
this.isPropagationStopped = functionThatReturnsFalse; | ||
@@ -580,2 +587,3 @@ return this; | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -590,7 +598,8 @@ return; | ||
} | ||
this.isDefaultPrevented = functionThatReturnsTrue; | ||
}, | ||
stopPropagation: function () { | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -635,2 +644,3 @@ return; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -641,2 +651,3 @@ { | ||
} | ||
this.dispatchConfig = null; | ||
@@ -649,2 +660,3 @@ this._targetInst = null; | ||
this._dispatchInstances = null; | ||
{ | ||
@@ -661,6 +673,6 @@ Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); | ||
SyntheticEvent.Interface = EventInterface; | ||
/** | ||
* Helper to reduce boilerplate when creating subclasses. | ||
*/ | ||
SyntheticEvent.extend = function (Interface) { | ||
@@ -670,2 +682,3 @@ var Super = this; | ||
var E = function () {}; | ||
E.prototype = Super.prototype; | ||
@@ -677,10 +690,10 @@ var prototype = new E(); | ||
} | ||
_assign(prototype, Class.prototype); | ||
Class.prototype = prototype; | ||
Class.prototype.constructor = Class; | ||
Class.Interface = _assign({}, Super.Interface, Interface); | ||
Class.extend = Super.extend; | ||
addEventPoolingTo(Class); | ||
return Class; | ||
@@ -690,3 +703,2 @@ }; | ||
addEventPoolingTo(SyntheticEvent); | ||
/** | ||
@@ -699,2 +711,3 @@ * Helper to nullify syntheticEvent instance properties when destructing | ||
*/ | ||
function getPooledWarningPropertyDefinition(propName, getVal) { | ||
@@ -729,2 +742,3 @@ var isFunction = typeof getVal === 'function'; | ||
var EventConstructor = this; | ||
if (EventConstructor.eventPool.length) { | ||
@@ -735,2 +749,3 @@ var instance = EventConstructor.eventPool.pop(); | ||
} | ||
return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); | ||
@@ -741,10 +756,11 @@ } | ||
var EventConstructor = this; | ||
(function () { | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw ReactError('Trying to release an event instance into a pool of a different type.'); | ||
} | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw Error("Trying to release an event instance into a pool of a different type."); | ||
} | ||
})(); | ||
} | ||
event.destructor(); | ||
if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { | ||
@@ -774,8 +790,7 @@ EventConstructor.eventPool.push(event); | ||
*/ | ||
var lowPriorityWarningWithoutStack = function () {}; | ||
var lowPriorityWarning = function () {}; | ||
{ | ||
var printWarning = function (format) { | ||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
@@ -788,5 +803,7 @@ } | ||
}); | ||
if (typeof console !== 'undefined') { | ||
console.warn(message); | ||
} | ||
try { | ||
@@ -800,12 +817,13 @@ // --- Welcome to debugging React --- | ||
lowPriorityWarning = function (condition, format) { | ||
lowPriorityWarningWithoutStack = function (condition, format) { | ||
if (format === undefined) { | ||
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
} | ||
if (!condition) { | ||
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { | ||
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { | ||
args[_key2 - 2] = arguments[_key2]; | ||
} | ||
printWarning.apply(undefined, [format].concat(args)); | ||
printWarning.apply(void 0, [format].concat(args)); | ||
} | ||
@@ -815,3 +833,3 @@ }; | ||
var lowPriorityWarning$1 = lowPriorityWarning; | ||
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack; | ||
@@ -821,3 +839,2 @@ /** | ||
*/ | ||
var ELEMENT_NODE = 1; | ||
@@ -828,3 +845,2 @@ | ||
// (It is the only module that is allowed to access these methods.) | ||
function unsafeCastStringToDOMTopLevelType(topLevelType) { | ||
@@ -843,15 +859,15 @@ return topLevelType; | ||
*/ | ||
function makePrefixMap(styleProp, eventName) { | ||
var prefixes = {}; | ||
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); | ||
prefixes['Webkit' + styleProp] = 'webkit' + eventName; | ||
prefixes['Moz' + styleProp] = 'moz' + eventName; | ||
return prefixes; | ||
} | ||
/** | ||
* A list of event names to a configurable list of vendor prefixes. | ||
*/ | ||
var vendorPrefixes = { | ||
@@ -863,23 +879,22 @@ animationend: makePrefixMap('Animation', 'AnimationEnd'), | ||
}; | ||
/** | ||
* Event names that have already been detected and prefixed (if applicable). | ||
*/ | ||
var prefixedEventNames = {}; | ||
/** | ||
* Element to check for prefixes on. | ||
*/ | ||
var style = {}; | ||
/** | ||
* Bootstrap if a DOM exists. | ||
*/ | ||
if (canUseDOM) { | ||
style = document.createElement('div').style; | ||
// On some platforms, in particular some releases of Android 4.x, | ||
style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x, | ||
// the un-prefixed "animation" and "transition" properties are defined on the | ||
// style object but the events that fire will still be prefixed, so we need | ||
// to check if the un-prefixed events are usable, and if not remove them from the map. | ||
if (!('AnimationEvent' in window)) { | ||
@@ -889,5 +904,5 @@ delete vendorPrefixes.animationend.animation; | ||
delete vendorPrefixes.animationstart.animation; | ||
} | ||
} // Same as above | ||
// Same as above | ||
if (!('TransitionEvent' in window)) { | ||
@@ -897,3 +912,2 @@ delete vendorPrefixes.transitionend.transition; | ||
} | ||
/** | ||
@@ -905,2 +919,4 @@ * Attempts to determine the correct vendor prefixed event name. | ||
*/ | ||
function getVendorPrefixedEventName(eventName) { | ||
@@ -931,2 +947,3 @@ if (prefixedEventNames[eventName]) { | ||
*/ | ||
var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort'); | ||
@@ -1013,5 +1030,3 @@ var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend')); | ||
var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting'); | ||
var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); | ||
// List of events that need to be individually attached to media elements. | ||
var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements. | ||
// Note that events in this list will *not* be listened to at the top level | ||
@@ -1023,3 +1038,4 @@ // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`. | ||
var didWarnAboutMessageChannel = false; | ||
var enqueueTask = void 0; | ||
var enqueueTask; | ||
try { | ||
@@ -1029,5 +1045,5 @@ // read require off the module object to get around the bundlers. | ||
var requireString = ('require' + Math.random()).slice(0, 7); | ||
var nodeRequire = module && module[requireString]; | ||
// assuming we're in node, let's try to get node's | ||
var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's | ||
// version of setImmediate, bypassing fake timers if any. | ||
enqueueTask = nodeRequire('timers').setImmediate; | ||
@@ -1045,2 +1061,3 @@ } catch (_err) { | ||
} | ||
var channel = new MessageChannel(); | ||
@@ -1055,3 +1072,2 @@ channel.port1.onmessage = callback; | ||
var ReactInternals$1 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var _ReactInternals$Sched = ReactInternals$1.Scheduler; | ||
@@ -1062,2 +1078,3 @@ var unstable_cancelCallback = _ReactInternals$Sched.unstable_cancelCallback; | ||
var unstable_shouldYield = _ReactInternals$Sched.unstable_shouldYield; | ||
var unstable_requestPaint = _ReactInternals$Sched.unstable_requestPaint; | ||
var unstable_getFirstCallbackNode = _ReactInternals$Sched.unstable_getFirstCallbackNode; | ||
@@ -1075,6 +1092,6 @@ var unstable_runWithPriority = _ReactInternals$Sched.unstable_runWithPriority; | ||
var unstable_forceFrameRate = _ReactInternals$Sched.unstable_forceFrameRate; | ||
var unstable_flushWithoutYielding = _ReactInternals$Sched.unstable_flushWithoutYielding; | ||
var unstable_flushAllWithoutAsserting = _ReactInternals$Sched.unstable_flushAllWithoutAsserting; | ||
// Keep in sync with ReactDOMUnstableNativeDependencies.js | ||
// ReactDOM.js, and ReactTestUtils.js: | ||
var _ReactDOM$__SECRET_IN$1 = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events; | ||
@@ -1093,20 +1110,17 @@ var getInstanceFromNode$1 = _ReactDOM$__SECRET_IN$1[0]; | ||
var flushPassiveEffects$1 = _ReactDOM$__SECRET_IN$1[11]; | ||
var IsThisRendererActing$1 = _ReactDOM$__SECRET_IN$1[12]; | ||
var batchedUpdates = ReactDOM.unstable_batchedUpdates; | ||
var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing; // this implementation should be exactly the same in | ||
// ReactTestUtilsAct.js, ReactTestRendererAct.js, createReactNoop.js | ||
var ReactShouldWarnActingUpdates = ReactSharedInternals.ReactShouldWarnActingUpdates; | ||
var isSchedulerMocked = typeof unstable_flushAllWithoutAsserting === 'function'; | ||
// this implementation should be exactly the same in | ||
// ReactTestUtilsAct.js, ReactTestRendererAct.js, createReactNoop.js | ||
var flushWork = unstable_flushAllWithoutAsserting || function () { | ||
var didFlushWork = false; | ||
var hasWarnedAboutMissingMockScheduler = false; | ||
var flushWork = unstable_flushWithoutYielding || function () { | ||
if (warnAboutMissingMockScheduler === true) { | ||
if (hasWarnedAboutMissingMockScheduler === false) { | ||
warningWithoutStack$1(false, 'Starting from React v17, the "scheduler" module will need to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. To fix this, add the following ' + "to the top of your tests, or in your framework's global config file -\n\n" + 'As an example, for jest - \n' + "jest.mock('scheduler', () => require.requireActual('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler'); | ||
hasWarnedAboutMissingMockScheduler = true; | ||
} | ||
while (flushPassiveEffects$1()) { | ||
didFlushWork = true; | ||
} | ||
while (flushPassiveEffects$1()) {} | ||
return didFlushWork; | ||
}; | ||
@@ -1127,23 +1141,23 @@ | ||
} | ||
} | ||
// we track the 'depth' of the act() calls with this counter, | ||
} // we track the 'depth' of the act() calls with this counter, | ||
// so we can tell if any async act() calls try to run in parallel. | ||
var actingUpdatesScopeDepth = 0; | ||
function act(callback) { | ||
var previousActingUpdatesScopeDepth = void 0; | ||
{ | ||
previousActingUpdatesScopeDepth = actingUpdatesScopeDepth; | ||
actingUpdatesScopeDepth++; | ||
ReactShouldWarnActingUpdates.current = true; | ||
} | ||
var previousActingUpdatesScopeDepth = actingUpdatesScopeDepth; | ||
var previousIsSomeRendererActing; | ||
var previousIsThisRendererActing; | ||
actingUpdatesScopeDepth++; | ||
previousIsSomeRendererActing = IsSomeRendererActing.current; | ||
previousIsThisRendererActing = IsThisRendererActing$1.current; | ||
IsSomeRendererActing.current = true; | ||
IsThisRendererActing$1.current = true; | ||
function onDone() { | ||
actingUpdatesScopeDepth--; | ||
IsSomeRendererActing.current = previousIsSomeRendererActing; | ||
IsThisRendererActing$1.current = previousIsThisRendererActing; | ||
{ | ||
actingUpdatesScopeDepth--; | ||
if (actingUpdatesScopeDepth === 0) { | ||
ReactShouldWarnActingUpdates.current = false; | ||
} | ||
if (actingUpdatesScopeDepth > previousActingUpdatesScopeDepth) { | ||
@@ -1156,3 +1170,12 @@ // if it's _less than_ previousActingUpdatesScopeDepth, then we can assume the 'other' one has warned | ||
var result = batchedUpdates(callback); | ||
var result; | ||
try { | ||
result = batchedUpdates(callback); | ||
} catch (error) { | ||
// on sync errors, we still want to 'cleanup' and decrement actingUpdatesScopeDepth | ||
onDone(); | ||
throw error; | ||
} | ||
if (result !== null && typeof result === 'object' && typeof result.then === 'function') { | ||
@@ -1162,2 +1185,3 @@ // setup a boolean that gets set to true only | ||
var called = false; | ||
{ | ||
@@ -1172,7 +1196,7 @@ if (typeof Promise !== 'undefined') { | ||
} | ||
} | ||
// in the async case, the returned thenable runs the callback, flushes | ||
} // in the async case, the returned thenable runs the callback, flushes | ||
// effects and microtasks in a loop until flushPassiveEffects() === false, | ||
// and cleans up | ||
return { | ||
@@ -1182,4 +1206,13 @@ then: function (resolve, reject) { | ||
result.then(function () { | ||
if (actingUpdatesScopeDepth > 1 || isSchedulerMocked === true && previousIsSomeRendererActing === true) { | ||
onDone(); | ||
resolve(); | ||
return; | ||
} // we're about to exit the act() scope, | ||
// now's the time to flush tasks/effects | ||
flushWorkAndMicroTasks(function (err) { | ||
onDone(); | ||
if (err) { | ||
@@ -1200,7 +1233,12 @@ reject(err); | ||
!(result === undefined) ? warningWithoutStack$1(false, 'The callback passed to act(...) function ' + 'must return undefined, or a Promise. You returned %s', result) : void 0; | ||
} | ||
} // flush effects until none remain, and cleanup | ||
// flush effects until none remain, and cleanup | ||
try { | ||
flushWork(); | ||
if (actingUpdatesScopeDepth === 1 && (isSchedulerMocked === false || previousIsSomeRendererActing === false)) { | ||
// we're about to exit the act() scope, | ||
// now's the time to flush effects | ||
flushWork(); | ||
} | ||
onDone(); | ||
@@ -1210,5 +1248,5 @@ } catch (err) { | ||
throw err; | ||
} | ||
} // in the sync case, the returned thenable only warns *if* await-ed | ||
// in the sync case, the returned thenable only warns *if* await-ed | ||
return { | ||
@@ -1219,2 +1257,3 @@ then: function (resolve) { | ||
} | ||
resolve(); | ||
@@ -1226,4 +1265,3 @@ } | ||
var findDOMNode = ReactDOM.findDOMNode; | ||
// Keep in sync with ReactDOMUnstableNativeDependencies.js | ||
var findDOMNode = ReactDOM.findDOMNode; // Keep in sync with ReactDOMUnstableNativeDependencies.js | ||
// ReactDOM.js, and ReactTestUtilsAct.js: | ||
@@ -1244,8 +1282,7 @@ | ||
var flushPassiveEffects = _ReactDOM$__SECRET_IN[11]; | ||
var IsThisRendererActing = _ReactDOM$__SECRET_IN[12]; | ||
function Event(suffix) {} | ||
var hasWarnedAboutDeprecatedMockComponent = false; | ||
/** | ||
@@ -1262,2 +1299,3 @@ * @class ReactTestUtils | ||
*/ | ||
function simulateNativeEventOnNode(topLevelType, node, fakeNativeEvent) { | ||
@@ -1267,3 +1305,2 @@ fakeNativeEvent.target = node; | ||
} | ||
/** | ||
@@ -1276,2 +1313,4 @@ * Simulates a top level event being dispatched from a raw event that occurred | ||
*/ | ||
function simulateNativeEventOnDOMComponent(topLevelType, comp, fakeNativeEvent) { | ||
@@ -1285,11 +1324,16 @@ simulateNativeEventOnNode(topLevelType, findDOMNode(comp), fakeNativeEvent); | ||
} | ||
var currentParent = findCurrentFiberUsingSlowPath(fiber); | ||
if (!currentParent) { | ||
return []; | ||
} | ||
var node = currentParent; | ||
var ret = []; | ||
while (true) { | ||
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent) { | ||
var publicInst = node.stateNode; | ||
if (test(publicInst)) { | ||
@@ -1299,2 +1343,3 @@ ret.push(publicInst); | ||
} | ||
if (node.child) { | ||
@@ -1305,5 +1350,7 @@ node.child.return = node; | ||
} | ||
if (node === currentParent) { | ||
return ret; | ||
} | ||
while (!node.sibling) { | ||
@@ -1313,4 +1360,6 @@ if (!node.return || node.return === currentParent) { | ||
} | ||
node = node.return; | ||
} | ||
node.sibling.return = node.return; | ||
@@ -1326,2 +1375,3 @@ node = node.sibling; | ||
} | ||
if (get(inst)) { | ||
@@ -1331,4 +1381,6 @@ // This is a public instance indeed. | ||
} | ||
var received = void 0; | ||
var received; | ||
var stringified = '' + inst; | ||
if (Array.isArray(inst)) { | ||
@@ -1343,17 +1395,9 @@ received = 'an array'; | ||
} | ||
(function () { | ||
{ | ||
{ | ||
{ | ||
throw ReactError(methodName + '(...): the first argument must be a React class instance. Instead received: ' + received + '.'); | ||
} | ||
throw Error(methodName + "(...): the first argument must be a React class instance. Instead received: " + received + "."); | ||
} | ||
})(); | ||
} | ||
} | ||
// a plain dom element, lazily initialized, used by act() when flushing effects | ||
var actContainerElement = null; | ||
// a warning for when you try to use TestUtils.act in a non-browser environment | ||
var didWarnAboutActInNodejs = false; | ||
/** | ||
@@ -1368,6 +1412,7 @@ * Utilities for making it easy to test React components. | ||
*/ | ||
var ReactTestUtils = { | ||
renderIntoDocument: function (element) { | ||
var div = document.createElement('div'); | ||
// None of our tests actually require attaching the container to the | ||
var div = document.createElement('div'); // None of our tests actually require attaching the container to the | ||
// DOM, and doing so creates a mess that we rely on test isolation to | ||
@@ -1377,21 +1422,17 @@ // clean up, so we're going to stop honoring the name of this method | ||
// document.documentElement.appendChild(div); | ||
return ReactDOM.render(element, div); | ||
}, | ||
isElement: function (element) { | ||
return React.isValidElement(element); | ||
}, | ||
isElementOfType: function (inst, convenienceConstructor) { | ||
return React.isValidElement(inst) && inst.type === convenienceConstructor; | ||
}, | ||
isDOMComponent: function (inst) { | ||
return !!(inst && inst.nodeType === ELEMENT_NODE && inst.tagName); | ||
}, | ||
isDOMComponentElement: function (inst) { | ||
return !!(inst && React.isValidElement(inst) && !!inst.tagName); | ||
}, | ||
isCompositeComponent: function (inst) { | ||
@@ -1403,5 +1444,5 @@ if (ReactTestUtils.isDOMComponent(inst)) { | ||
} | ||
return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function'; | ||
}, | ||
isCompositeComponentWithType: function (inst, type) { | ||
@@ -1411,2 +1452,3 @@ if (!ReactTestUtils.isCompositeComponent(inst)) { | ||
} | ||
var internalInstance = get(inst); | ||
@@ -1416,8 +1458,9 @@ var constructor = internalInstance.type; | ||
}, | ||
findAllInRenderedTree: function (inst, test) { | ||
validateClassInstance(inst, 'findAllInRenderedTree'); | ||
if (!inst) { | ||
return []; | ||
} | ||
var internalInstance = get(inst); | ||
@@ -1437,2 +1480,3 @@ return findAllInRenderedFiberTreeInternal(internalInstance, test); | ||
var className = inst.className; | ||
if (typeof className !== 'string') { | ||
@@ -1442,14 +1486,15 @@ // SVG, probably. | ||
} | ||
var classList = className.split(/\s+/); | ||
if (!Array.isArray(classNames)) { | ||
(function () { | ||
if (!(classNames !== undefined)) { | ||
{ | ||
throw ReactError('TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.'); | ||
} | ||
if (!(classNames !== undefined)) { | ||
{ | ||
throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument."); | ||
} | ||
})(); | ||
} | ||
classNames = classNames.split(/\s+/); | ||
} | ||
return classNames.every(function (name) { | ||
@@ -1459,2 +1504,3 @@ return classList.indexOf(name) !== -1; | ||
} | ||
return false; | ||
@@ -1473,5 +1519,7 @@ }); | ||
var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className); | ||
if (all.length !== 1) { | ||
throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className); | ||
} | ||
return all[0]; | ||
@@ -1501,5 +1549,7 @@ }, | ||
var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); | ||
if (all.length !== 1) { | ||
throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName); | ||
} | ||
return all[0]; | ||
@@ -1528,5 +1578,7 @@ }, | ||
var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType); | ||
if (all.length !== 1) { | ||
throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType); | ||
} | ||
return all[0]; | ||
@@ -1551,39 +1603,23 @@ }, | ||
hasWarnedAboutDeprecatedMockComponent = true; | ||
lowPriorityWarning$1(false, 'ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); | ||
lowPriorityWarningWithoutStack$1(false, 'ReactTestUtils.mockComponent() is deprecated. ' + 'Use shallow rendering or jest.mock() instead.\n\n' + 'See https://fb.me/test-utils-mock-component for more information.'); | ||
} | ||
mockTagName = mockTagName || module.mockTagName || 'div'; | ||
module.prototype.render.mockImplementation(function () { | ||
return React.createElement(mockTagName, null, this.props.children); | ||
}); | ||
return this; | ||
}, | ||
nativeTouchData: function (x, y) { | ||
return { | ||
touches: [{ pageX: x, pageY: y }] | ||
touches: [{ | ||
pageX: x, | ||
pageY: y | ||
}] | ||
}; | ||
}, | ||
Simulate: null, | ||
SimulateNative: {}, | ||
act: function (callback) { | ||
if (actContainerElement === null) { | ||
{ | ||
// warn if we're trying to use this in something like node (without jsdom) | ||
if (didWarnAboutActInNodejs === false) { | ||
didWarnAboutActInNodejs = true; | ||
!(typeof document !== 'undefined' && document !== null) ? warningWithoutStack$1(false, 'It looks like you called ReactTestUtils.act(...) in a non-browser environment. ' + "If you're using TestRenderer for your tests, you should call " + 'ReactTestRenderer.act(...) instead of ReactTestUtils.act(...).') : void 0; | ||
} | ||
} | ||
// now make the stub element | ||
actContainerElement = document.createElement('div'); | ||
} | ||
return act(callback); | ||
} | ||
act: act | ||
}; | ||
/** | ||
@@ -1597,33 +1633,29 @@ * Exports: | ||
*/ | ||
function makeSimulator(eventType) { | ||
return function (domNode, eventData) { | ||
(function () { | ||
if (!!React.isValidElement(domNode)) { | ||
{ | ||
throw ReactError('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.'); | ||
} | ||
if (!!React.isValidElement(domNode)) { | ||
{ | ||
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."); | ||
} | ||
})(); | ||
(function () { | ||
if (!!ReactTestUtils.isCompositeComponent(domNode)) { | ||
{ | ||
throw ReactError('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.'); | ||
} | ||
} | ||
if (!!ReactTestUtils.isCompositeComponent(domNode)) { | ||
{ | ||
throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead."); | ||
} | ||
})(); | ||
} | ||
var dispatchConfig = eventNameDispatchConfigs[eventType]; | ||
var fakeNativeEvent = new Event(); | ||
fakeNativeEvent.target = domNode; | ||
fakeNativeEvent.type = eventType.toLowerCase(); | ||
fakeNativeEvent.type = eventType.toLowerCase(); // We don't use SyntheticEvent.getPooled in order to not have to worry about | ||
// properly destroying any properties assigned from `eventData` upon release | ||
// We don't use SyntheticEvent.getPooled in order to not have to worry about | ||
// properly destroying any properties assigned from `eventData` upon release | ||
var targetInst = getInstanceFromNode(domNode); | ||
var event = new SyntheticEvent(dispatchConfig, targetInst, fakeNativeEvent, domNode); | ||
var event = new SyntheticEvent(dispatchConfig, targetInst, fakeNativeEvent, domNode); // Since we aren't using pooling, always persist the event. This will make | ||
// sure it's marked and won't warn when setting additional properties. | ||
// Since we aren't using pooling, always persist the event. This will make | ||
// sure it's marked and won't warn when setting additional properties. | ||
event.persist(); | ||
_assign(event, eventData); | ||
@@ -1649,4 +1681,4 @@ | ||
ReactTestUtils.Simulate = {}; | ||
var eventType; | ||
var eventType = void 0; | ||
for (eventType in eventNameDispatchConfigs) { | ||
@@ -1662,3 +1694,2 @@ /** | ||
buildSimulators(); | ||
/** | ||
@@ -1683,3 +1714,5 @@ * Exports: | ||
var fakeNativeEvent = new Event(eventType); | ||
_assign(fakeNativeEvent, nativeEventData); | ||
if (ReactTestUtils.isDOMComponent(domComponentOrNode)) { | ||
@@ -1706,3 +1739,2 @@ simulateNativeEventOnDOMComponent(topLevelType, domComponentOrNode, fakeNativeEvent); | ||
var ReactTestUtils$2 = Object.freeze({ | ||
@@ -1716,2 +1748,4 @@ default: ReactTestUtils | ||
// This is hacky but makes it work with both Rollup and Jest. | ||
var testUtils = ReactTestUtils$3.default || ReactTestUtils$3; | ||
@@ -1718,0 +1752,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-test-utils.production.min.js | ||
@@ -9,22 +9,23 @@ * | ||
*/ | ||
'use strict';(function(g,l){"object"===typeof exports&&"undefined"!==typeof module?module.exports=l(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],l):g.ReactTestUtils=l(g.React,g.ReactDOM)})(this,function(g,l){function m(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 Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")} | ||
function x(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 I(a){var b=a.alternate;if(!b){b=x(a);if(3===b)throw m(188);return 1===b?null:a}for(var c=a,e=b;;){var d=c.return;if(null===d)break;var f=d.alternate;if(null===f){e=d.return;if(null!==e){c=e;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===c){if(2!==x(d))break;return a}if(f===e){if(2!==x(d))break;return b}f= | ||
f.sibling}throw m(188);}if(c.return!==e.return)c=d,e=f;else{for(var h=!1,g=d.child;g;){if(g===c){h=!0;c=d;e=f;break}if(g===e){h=!0;e=d;c=f;break}g=g.sibling}if(!h){for(g=f.child;g;){if(g===c){h=!0;c=f;e=d;break}if(g===e){h=!0;e=f;c=d;break}g=g.sibling}if(!h)throw m(189);}}if(c.alternate!==e)throw m(190);}if(3!==c.tag)throw m(188);return c.stateNode.current===c?a:b}function t(){return!0}function u(){return!1}function q(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)?t:u;this.isPropagationStopped=u;return this}function J(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 K(a){if(!(a instanceof this))throw m(279);a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function B(a){a.eventPool= | ||
[];a.getPooled=J;a.release=K}function v(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function w(a){if(y[a])return y[a];if(!p[a])return a;var b=p[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in C)return y[a]=b[c];return a}function D(a){try{z(),L(function(){z()?D(a):a()})}catch(b){a(b)}}function M(a){var b=N(a);if(null!==b&&"object"===typeof b&&"function"===typeof b.then)return{then:function(a,e){b.then(function(){D(function(b){b?e(b):a()})},function(a){e(a)})}}; | ||
try{z()}catch(c){throw c;}return{then:function(a){a()}}}function E(a){}function O(a,b){if(!a)return[];a=I(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}function n(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName? | ||
"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw m(286,b,a);}}function P(a){return function(b,c){if(g.isValidElement(b))throw m(228);if(f.isCompositeComponent(b))throw m(229);var e=F[a],d=new E;d.target=b;d.type=a.toLowerCase();var h=Q(b),k=new q(e,h,d,b);k.persist();r(k,c);e.phasedRegistrationNames?R(k):S(k);l.unstable_batchedUpdates(function(){T(b);U(k)});V()}}function W(a,b){return function(c,e){var d=new E(a);r(d,e);f.isDOMComponent(c)?(c=X(c),d.target= | ||
c,G(b,1,d)):c.tagName&&(d.target=c,G(b,1,d))}}var r=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,k=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;k.hasOwnProperty("ReactCurrentDispatcher")||(k.ReactCurrentDispatcher={current:null});k.hasOwnProperty("ReactCurrentBatchConfig")||(k.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=t)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=t)},persist:function(){this.isPersistent=t},isPersistent:u,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=u;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||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;B(b);return b};B(q);k=!("undefined"===typeof window|| | ||
"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);var p={animationend:v("Animation","AnimationEnd"),animationiteration:v("Animation","AnimationIteration"),animationstart:v("Animation","AnimationStart"),transitionend:v("Transition","TransitionEnd")},y={},C={};k&&(C=document.createElement("div").style,"AnimationEvent"in window||(delete p.animationend.animation,delete p.animationiteration.animation,delete p.animationstart.animation),"TransitionEvent"in window|| | ||
delete p.transitionend.transition);k=w("animationend");var Y=w("animationiteration"),Z=w("animationstart"),aa=w("transitionend"),A=void 0;try{var h=("require"+Math.random()).slice(0,7);A=(module&&module[h])("timers").setImmediate}catch(a){A=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}var L=A,ba=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events[11],N=l.unstable_batchedUpdates,z=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_flushWithoutYielding|| | ||
function(){for(;ba(););},X=l.findDOMNode;h=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var Q=h[0],F=h[4],R=h[5],S=h[6],T=h[7],V=h[8],G=h[9],U=h[10],H=null,f={renderIntoDocument:function(a){var b=document.createElement("div");return l.render(a,b)},isElement:function(a){return g.isValidElement(a)},isElementOfType:function(a,b){return g.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&g.isValidElement(a)&& | ||
a.tagName)},isCompositeComponent:function(a){return f.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){n(a,"findAllInRenderedTree");return a?O(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){n(a,"scryRenderedDOMComponentsWithClass");return f.findAllInRenderedTree(a,function(a){if(f.isDOMComponent(a)){var c= | ||
a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw m(11);b=b.split(/\s+/)}return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){n(a,"findRenderedDOMComponentWithClass");a=f.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a, | ||
b){n(a,"scryRenderedDOMComponentsWithTag");return f.findAllInRenderedTree(a,function(a){return f.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){n(a,"findRenderedDOMComponentWithTag");a=f.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){n(a,"scryRenderedComponentsWithType");return f.findAllInRenderedTree(a, | ||
function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){n(a,"findRenderedComponentWithType");a=f.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return g.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a, | ||
pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){null===H&&(H=document.createElement("div"));return M(a)}};(function(){f.Simulate={};var a=void 0;for(a in F)f.Simulate[a]=P(a)})();[["abort","abort"],[k,"animationEnd"],[Y,"animationIteration"],[Z,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"], | ||
["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"], | ||
["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled", | ||
"stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart","touchStart"],[aa,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];f.SimulateNative[b]=W(b,a[0])});h=(h={default:f},f)||h;return h.default||h}); | ||
'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."} | ||
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=== | ||
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= | ||
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&& | ||
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|| | ||
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)); | ||
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; | ||
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&& | ||
(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|| | ||
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", | ||
"AnimationIteration"),animationstart:w("Animation","AnimationStart"),transitionend:w("Transition","TransitionEnd")},A={},I={};C&&(I=document.createElement("div").style,"AnimationEvent"in window||(delete p.animationend.animation,delete p.animationiteration.animation,delete p.animationstart.animation),"TransitionEvent"in window||delete p.transitionend.transition);C=x("animationend");var da=x("animationiteration"),ea=x("animationstart"),fa=x("transitionend");try{var y=("require"+Math.random()).slice(0, | ||
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; | ||
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"=== | ||
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= | ||
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, | ||
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, | ||
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= | ||
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()}}}}; | ||
(function(){g.Simulate={};for(var a in L)g.Simulate[a]=U(a)})();[["abort","abort"],[C,"animationEnd"],[da,"animationIteration"],[ea,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"], | ||
["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata", | ||
"loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel", | ||
"touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart","touchStart"],[fa,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];g.SimulateNative[b]=ba(b,a[0])});f=(f={default:g},g)||f;return f.default||f}); |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-fizz.browser.development.js | ||
@@ -21,10 +21,6 @@ * | ||
} | ||
function flushBuffered(destination) { | ||
// WHATWG Streams do not yet have a way to flush the underlying | ||
function flushBuffered(destination) {// WHATWG Streams do not yet have a way to flush the underlying | ||
// transform streams. https://github.com/whatwg/streams/issues/960 | ||
} | ||
function writeChunk(destination, buffer) { | ||
@@ -34,10 +30,6 @@ destination.enqueue(buffer); | ||
function close(destination) { | ||
destination.close(); | ||
} | ||
var textEncoder = new TextEncoder(); | ||
function convertStringToBuffer(content) { | ||
@@ -49,5 +41,7 @@ return textEncoder.encode(content); | ||
var str = '<' + type + '>'; | ||
if (typeof props.children === 'string') { | ||
str += props.children; | ||
} | ||
str += '</' + type + '>'; | ||
@@ -60,3 +54,2 @@ return convertStringToBuffer(str); | ||
var hasSymbol = typeof Symbol === 'function' && Symbol.for; | ||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | ||
@@ -68,18 +61,12 @@ | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
// (unstable) APIs that have been removed. Can we remove the symbols? | ||
// React event targets | ||
function createRequest(children, destination) { | ||
return { destination: destination, children: children, completedChunks: [], flowing: false }; | ||
return { | ||
destination: destination, | ||
children: children, | ||
completedChunks: [], | ||
flowing: false | ||
}; | ||
} | ||
@@ -90,11 +77,16 @@ | ||
request.children = null; | ||
if (element && element.$$typeof !== REACT_ELEMENT_TYPE) { | ||
return; | ||
} | ||
var type = element.type; | ||
var props = element.props; | ||
if (typeof type !== 'string') { | ||
return; | ||
} | ||
request.completedChunks.push(formatChunk(type, props)); | ||
if (request.flowing) { | ||
@@ -111,3 +103,2 @@ flushCompletedChunks(request); | ||
request.completedChunks = []; | ||
try { | ||
@@ -121,2 +112,3 @@ for (var i = 0; i < chunks.length; i++) { | ||
} | ||
close(destination); | ||
@@ -131,3 +123,2 @@ } | ||
} | ||
function startFlowing(request, desiredBytes) { | ||
@@ -142,3 +133,3 @@ request.flowing = false; | ||
function renderToReadableStream(children) { | ||
var request = void 0; | ||
var request; | ||
return new ReadableStream({ | ||
@@ -168,2 +159,4 @@ start: function (controller) { | ||
// This is hacky but makes it work with both Rollup and Jest | ||
var unstableFizz_browser = ReactDOMFizzServerBrowser$2.default || ReactDOMFizzServerBrowser$2; | ||
@@ -170,0 +163,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-fizz.browser.production.min.js | ||
@@ -10,2 +10,2 @@ * | ||
'use strict';(function(g,e){"object"===typeof exports&&"undefined"!==typeof module?module.exports=e():"function"===typeof define&&define.amd?define(e):g.ReactDOMFizzServer=e()})(this,function(){function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return k.encode(a+("</"+b+">"))}function e(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b<a.length;b++)c.enqueue(a[b]);c.close()}var k=new TextEncoder,l="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"): | ||
60103,d={renderToReadableStream:function(b){var c=void 0;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var f=a.children;a.children=null;if(!f||f.$$typeof===l){var d=f.type;f=f.props;"string"===typeof d&&(a.completedChunks.push(g(d,f)),a.flowing&&e(a))}},pull:function(a){a=c;a.flowing=!1;e(a)},cancel:function(a){}})}},h={default:d};d=h&&d||h;return d.default||d}); | ||
60103,d={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var f=a.children;a.children=null;if(!f||f.$$typeof===l){var d=f.type;f=f.props;"string"===typeof d&&(a.completedChunks.push(g(d,f)),a.flowing&&e(a))}},pull:function(a){a=c;a.flowing=!1;e(a)},cancel:function(a){}})}},h={default:d};d=h&&d||h;return d.default||d}); |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-native-dependencies.development.js | ||
@@ -18,16 +18,6 @@ * | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
// Do not require this module directly! Use normal `invariant` calls with | ||
// template literal strings. The messages will be replaced with error codes | ||
// during build. | ||
// Do not require this module directly! Use a normal error constructor with | ||
// template literal strings. The messages will be converted to ReactError during | ||
// build, and in production they will be minified. | ||
function ReactError(message) { | ||
var error = new Error(message); | ||
error.name = 'Invariant Violation'; | ||
return error; | ||
} | ||
/** | ||
@@ -63,3 +53,2 @@ * Use invariant() to assert state which your program assumes to be true. | ||
// try-catch. Neat! | ||
// Check that the browser supports the APIs we need to implement our special | ||
@@ -112,3 +101,2 @@ // DEV version of invokeGuardedCallback | ||
*/ | ||
var warningWithoutStack = function () {}; | ||
@@ -118,3 +106,3 @@ | ||
warningWithoutStack = function (condition, format) { | ||
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
args[_key - 2] = arguments[_key]; | ||
@@ -126,2 +114,3 @@ } | ||
} | ||
if (args.length > 8) { | ||
@@ -131,5 +120,7 @@ // Check before the condition to catch violations early. | ||
} | ||
if (condition) { | ||
return; | ||
} | ||
if (typeof console !== 'undefined') { | ||
@@ -139,8 +130,8 @@ var argsWithFormat = args.map(function (item) { | ||
}); | ||
argsWithFormat.unshift('Warning: ' + format); | ||
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
// We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
Function.prototype.apply.call(console.error, console, argsWithFormat); | ||
} | ||
try { | ||
@@ -164,3 +155,2 @@ // --- Welcome to debugging React --- | ||
var getNodeFromInstance$1 = null; | ||
function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { | ||
@@ -170,2 +160,3 @@ getFiberCurrentPropsFromNode$1 = getFiberCurrentPropsFromNodeImpl; | ||
getNodeFromInstance$1 = getNodeFromInstanceImpl; | ||
{ | ||
@@ -175,4 +166,4 @@ !(getNodeFromInstance$1 && getInstanceFromNode$1) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0; | ||
} | ||
var validateEventDispatches; | ||
var validateEventDispatches = void 0; | ||
{ | ||
@@ -182,13 +173,9 @@ validateEventDispatches = function (event) { | ||
var dispatchInstances = event._dispatchInstances; | ||
var listenersIsArr = Array.isArray(dispatchListeners); | ||
var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; | ||
var instancesIsArr = Array.isArray(dispatchInstances); | ||
var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; | ||
!(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0; | ||
}; | ||
} | ||
/** | ||
@@ -202,2 +189,3 @@ * Dispatch the event to the listener. | ||
/** | ||
@@ -215,8 +203,11 @@ * Standard/simple iteration through an event's collected dispatches. | ||
*/ | ||
function executeDispatchesInOrderStopAtTrueImpl(event) { | ||
var dispatchListeners = event._dispatchListeners; | ||
var dispatchInstances = event._dispatchInstances; | ||
{ | ||
validateEventDispatches(event); | ||
} | ||
if (Array.isArray(dispatchListeners)) { | ||
@@ -226,4 +217,5 @@ for (var i = 0; i < dispatchListeners.length; i++) { | ||
break; | ||
} | ||
// Listeners and Instances are two parallel arrays that are always in sync. | ||
} // Listeners and Instances are two parallel arrays that are always in sync. | ||
if (dispatchListeners[i](event, dispatchInstances[i])) { | ||
@@ -238,8 +230,10 @@ return dispatchInstances[i]; | ||
} | ||
return null; | ||
} | ||
/** | ||
* @see executeDispatchesInOrderStopAtTrueImpl | ||
*/ | ||
function executeDispatchesInOrderStopAtTrue(event) { | ||
@@ -251,3 +245,2 @@ var ret = executeDispatchesInOrderStopAtTrueImpl(event); | ||
} | ||
/** | ||
@@ -262,2 +255,3 @@ * Execution of a "direct" dispatch - there must be at most one dispatch | ||
*/ | ||
function executeDirectDispatch(event) { | ||
@@ -267,11 +261,12 @@ { | ||
} | ||
var dispatchListener = event._dispatchListeners; | ||
var dispatchInstance = event._dispatchInstances; | ||
(function () { | ||
if (!!Array.isArray(dispatchListener)) { | ||
{ | ||
throw ReactError('executeDirectDispatch(...): Invalid `event`.'); | ||
} | ||
if (!!Array.isArray(dispatchListener)) { | ||
{ | ||
throw Error("executeDirectDispatch(...): Invalid `event`."); | ||
} | ||
})(); | ||
} | ||
event.currentTarget = dispatchListener ? getNodeFromInstance$1(dispatchInstance) : null; | ||
@@ -284,3 +279,2 @@ var res = dispatchListener ? dispatchListener(event) : null; | ||
} | ||
/** | ||
@@ -290,2 +284,3 @@ * @param {SyntheticEvent} event | ||
*/ | ||
function hasDispatches(event) { | ||
@@ -296,4 +291,7 @@ return !!event._dispatchListeners; | ||
// Before we know whether it is function or class | ||
// Root of a host tree. Could be nested inside another node. | ||
// A subtree. Could be an entry point to a different renderer. | ||
var HostComponent = 5; | ||
@@ -303,4 +301,3 @@ | ||
do { | ||
inst = inst.return; | ||
// TODO: If this is a HostRoot we might want to bail out. | ||
inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. | ||
// That is depending on if we want nested subtrees (layers) to bubble | ||
@@ -311,8 +308,9 @@ // events to their parent. We could also go through parentNode on the | ||
} while (inst && inst.tag !== HostComponent); | ||
if (inst) { | ||
return inst; | ||
} | ||
return null; | ||
} | ||
/** | ||
@@ -322,26 +320,32 @@ * Return the lowest common ancestor of A and B, or null if they are in | ||
*/ | ||
function getLowestCommonAncestor(instA, instB) { | ||
var depthA = 0; | ||
for (var tempA = instA; tempA; tempA = getParent(tempA)) { | ||
depthA++; | ||
} | ||
var depthB = 0; | ||
for (var tempB = instB; tempB; tempB = getParent(tempB)) { | ||
depthB++; | ||
} | ||
} // If A is deeper, crawl up. | ||
// If A is deeper, crawl up. | ||
while (depthA - depthB > 0) { | ||
instA = getParent(instA); | ||
depthA--; | ||
} | ||
} // If B is deeper, crawl up. | ||
// If B is deeper, crawl up. | ||
while (depthB - depthA > 0) { | ||
instB = getParent(instB); | ||
depthB--; | ||
} | ||
} // Walk in lockstep until we find a match. | ||
// Walk in lockstep until we find a match. | ||
var depth = depthA; | ||
while (depth--) { | ||
@@ -351,11 +355,13 @@ if (instA === instB || instA === instB.alternate) { | ||
} | ||
instA = getParent(instA); | ||
instB = getParent(instB); | ||
} | ||
return null; | ||
} | ||
/** | ||
* Return if A is an ancestor of B. | ||
*/ | ||
function isAncestor(instA, instB) { | ||
@@ -366,19 +372,22 @@ while (instB) { | ||
} | ||
instB = getParent(instB); | ||
} | ||
return false; | ||
} | ||
/** | ||
* Return the parent instance of the passed-in instance. | ||
*/ | ||
function getParentInstance(inst) { | ||
return getParent(inst); | ||
} | ||
/** | ||
* Simulates the traversal of a two-phase, capture/bubble event dispatch. | ||
*/ | ||
function traverseTwoPhase(inst, fn, arg) { | ||
var path = []; | ||
while (inst) { | ||
@@ -388,6 +397,9 @@ path.push(inst); | ||
} | ||
var i = void 0; | ||
var i; | ||
for (i = path.length; i-- > 0;) { | ||
fn(path[i], 'captured', arg); | ||
} | ||
for (i = 0; i < path.length; i++) { | ||
@@ -397,3 +409,2 @@ fn(path[i], 'bubbled', arg); | ||
} | ||
/** | ||
@@ -418,2 +429,3 @@ * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that | ||
/** | ||
@@ -441,3 +453,3 @@ * Mapping from event name to dispatch config | ||
// Trust the developer to only use possibleRegistrationNames in true | ||
// Trust the developer to only use possibleRegistrationNames in true | ||
@@ -480,16 +492,14 @@ /** | ||
function accumulateInto(current, next) { | ||
(function () { | ||
if (!(next != null)) { | ||
{ | ||
throw ReactError('accumulateInto(...): Accumulated items must not be null or undefined.'); | ||
} | ||
if (!(next != null)) { | ||
{ | ||
throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); | ||
} | ||
})(); | ||
} | ||
if (current == null) { | ||
return next; | ||
} | ||
} // Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
// Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
if (Array.isArray(current)) { | ||
@@ -500,2 +510,3 @@ if (Array.isArray(next)) { | ||
} | ||
current.push(next); | ||
@@ -547,2 +558,3 @@ return current; | ||
return !!(props.disabled && isInteractive(type)); | ||
default: | ||
@@ -552,3 +564,2 @@ return false; | ||
} | ||
/** | ||
@@ -582,2 +593,3 @@ * This is a unified interface for event plugins to be installed and configured. | ||
/** | ||
@@ -588,8 +600,9 @@ * @param {object} inst The instance, which is the source of events. | ||
*/ | ||
function getListener(inst, registrationName) { | ||
var listener = void 0; | ||
var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not | ||
// live here; needs to be moved to a better place soon | ||
// TODO: shouldPreventMouseEvent is DOM-specific and definitely should not | ||
// live here; needs to be moved to a better place soon | ||
var stateNode = inst.stateNode; | ||
if (!stateNode) { | ||
@@ -599,3 +612,5 @@ // Work in progress (ex: onload events in incremental mode). | ||
} | ||
var props = getFiberCurrentPropsFromNode$1(stateNode); | ||
if (!props) { | ||
@@ -605,13 +620,15 @@ // Work in progress. | ||
} | ||
listener = props[registrationName]; | ||
if (shouldPreventMouseEvent(registrationName, inst.type, props)) { | ||
return null; | ||
} | ||
(function () { | ||
if (!(!listener || typeof listener === 'function')) { | ||
{ | ||
throw ReactError('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'); | ||
} | ||
if (!(!listener || typeof listener === 'function')) { | ||
{ | ||
throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); | ||
} | ||
})(); | ||
} | ||
return listener; | ||
@@ -628,3 +645,2 @@ } | ||
} | ||
/** | ||
@@ -646,2 +662,4 @@ * A small set of propagation patterns, each of which will accept a small amount | ||
*/ | ||
function accumulateDirectionalDispatches(inst, phase, event) { | ||
@@ -651,3 +669,5 @@ { | ||
} | ||
var listener = listenerAtPhase(inst, event, phase); | ||
if (listener) { | ||
@@ -658,3 +678,2 @@ event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); | ||
} | ||
/** | ||
@@ -667,2 +686,4 @@ * Collect dispatches (must be entirely collected before dispatching - see unit | ||
*/ | ||
function accumulateTwoPhaseDispatchesSingle(event) { | ||
@@ -673,6 +694,7 @@ if (event && event.dispatchConfig.phasedRegistrationNames) { | ||
} | ||
/** | ||
* Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID. | ||
*/ | ||
function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { | ||
@@ -685,3 +707,2 @@ if (event && event.dispatchConfig.phasedRegistrationNames) { | ||
} | ||
/** | ||
@@ -692,2 +713,4 @@ * Accumulates without regard to direction, does not look for phased | ||
*/ | ||
function accumulateDispatches(inst, ignoredDirection, event) { | ||
@@ -697,2 +720,3 @@ if (inst && event && event.dispatchConfig.registrationName) { | ||
var listener = getListener(inst, registrationName); | ||
if (listener) { | ||
@@ -704,3 +728,2 @@ event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); | ||
} | ||
/** | ||
@@ -711,2 +734,4 @@ * Accumulates dispatches on an `SyntheticEvent`, but only for the | ||
*/ | ||
function accumulateDirectDispatchesSingle(event) { | ||
@@ -721,3 +746,2 @@ if (event && event.dispatchConfig.registrationName) { | ||
} | ||
function accumulateTwoPhaseDispatchesSkipTarget(events) { | ||
@@ -727,4 +751,2 @@ forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); | ||
function accumulateDirectDispatches(events) { | ||
@@ -735,9 +757,6 @@ forEachAccumulated(events, accumulateDirectDispatchesSingle); | ||
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var _assign = ReactInternals.assign; | ||
/* eslint valid-typeof: 0 */ | ||
var EVENT_POOL_SIZE = 10; | ||
/** | ||
@@ -747,2 +766,3 @@ * @interface Event | ||
*/ | ||
var EventInterface = { | ||
@@ -772,3 +792,2 @@ type: null, | ||
} | ||
/** | ||
@@ -792,2 +811,4 @@ * Synthetic events are dispatched by event plugins, typically in response to a | ||
*/ | ||
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { | ||
@@ -806,4 +827,4 @@ { | ||
this.nativeEvent = nativeEvent; | ||
var Interface = this.constructor.Interface; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -813,6 +834,9 @@ if (!Interface.hasOwnProperty(propName)) { | ||
} | ||
{ | ||
delete this[propName]; // this has a getter/setter for warnings | ||
} | ||
var normalize = Interface[propName]; | ||
if (normalize) { | ||
@@ -830,2 +854,3 @@ this[propName] = normalize(nativeEvent); | ||
var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; | ||
if (defaultPrevented) { | ||
@@ -836,2 +861,3 @@ this.isDefaultPrevented = functionThatReturnsTrue; | ||
} | ||
this.isPropagationStopped = functionThatReturnsFalse; | ||
@@ -845,2 +871,3 @@ return this; | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -855,7 +882,8 @@ return; | ||
} | ||
this.isDefaultPrevented = functionThatReturnsTrue; | ||
}, | ||
stopPropagation: function () { | ||
var event = this.nativeEvent; | ||
if (!event) { | ||
@@ -900,2 +928,3 @@ return; | ||
var Interface = this.constructor.Interface; | ||
for (var propName in Interface) { | ||
@@ -906,2 +935,3 @@ { | ||
} | ||
this.dispatchConfig = null; | ||
@@ -914,2 +944,3 @@ this._targetInst = null; | ||
this._dispatchInstances = null; | ||
{ | ||
@@ -926,6 +957,6 @@ Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); | ||
SyntheticEvent.Interface = EventInterface; | ||
/** | ||
* Helper to reduce boilerplate when creating subclasses. | ||
*/ | ||
SyntheticEvent.extend = function (Interface) { | ||
@@ -935,2 +966,3 @@ var Super = this; | ||
var E = function () {}; | ||
E.prototype = Super.prototype; | ||
@@ -942,10 +974,10 @@ var prototype = new E(); | ||
} | ||
_assign(prototype, Class.prototype); | ||
Class.prototype = prototype; | ||
Class.prototype.constructor = Class; | ||
Class.Interface = _assign({}, Super.Interface, Interface); | ||
Class.extend = Super.extend; | ||
addEventPoolingTo(Class); | ||
return Class; | ||
@@ -955,3 +987,2 @@ }; | ||
addEventPoolingTo(SyntheticEvent); | ||
/** | ||
@@ -964,2 +995,3 @@ * Helper to nullify syntheticEvent instance properties when destructing | ||
*/ | ||
function getPooledWarningPropertyDefinition(propName, getVal) { | ||
@@ -994,2 +1026,3 @@ var isFunction = typeof getVal === 'function'; | ||
var EventConstructor = this; | ||
if (EventConstructor.eventPool.length) { | ||
@@ -1000,2 +1033,3 @@ var instance = EventConstructor.eventPool.pop(); | ||
} | ||
return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); | ||
@@ -1006,10 +1040,11 @@ } | ||
var EventConstructor = this; | ||
(function () { | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw ReactError('Trying to release an event instance into a pool of a different type.'); | ||
} | ||
if (!(event instanceof EventConstructor)) { | ||
{ | ||
throw Error("Trying to release an event instance into a pool of a different type."); | ||
} | ||
})(); | ||
} | ||
event.destructor(); | ||
if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { | ||
@@ -1031,2 +1066,3 @@ EventConstructor.eventPool.push(event); | ||
*/ | ||
var ResponderSyntheticEvent = SyntheticEvent.extend({ | ||
@@ -1040,3 +1076,2 @@ touchHistory: function (nativeEvent) { | ||
// but our build system currently doesn't let us do that from a fork. | ||
var TOP_TOUCH_START = 'touchstart'; | ||
@@ -1051,15 +1086,11 @@ var TOP_TOUCH_MOVE = 'touchmove'; | ||
var TOP_MOUSE_UP = 'mouseup'; | ||
function isStartish(topLevelType) { | ||
return topLevelType === TOP_TOUCH_START || topLevelType === TOP_MOUSE_DOWN; | ||
} | ||
function isMoveish(topLevelType) { | ||
return topLevelType === TOP_TOUCH_MOVE || topLevelType === TOP_MOUSE_MOVE; | ||
} | ||
function isEndish(topLevelType) { | ||
return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL || topLevelType === TOP_MOUSE_UP; | ||
} | ||
var startDependencies = [TOP_TOUCH_START, TOP_MOUSE_DOWN]; | ||
@@ -1075,3 +1106,2 @@ var moveDependencies = [TOP_TOUCH_MOVE, TOP_MOUSE_MOVE]; | ||
var MAX_TOUCH_BANK = 20; | ||
@@ -1095,3 +1125,2 @@ var touchBank = []; | ||
} | ||
/** | ||
@@ -1101,2 +1130,4 @@ * TODO: Instead of making gestures recompute filtered velocity, we could | ||
*/ | ||
function createTouchRecord(touch) { | ||
@@ -1133,12 +1164,12 @@ return { | ||
(function () { | ||
if (!(identifier != null)) { | ||
{ | ||
throw ReactError('Touch object is missing identifier.'); | ||
} | ||
if (!(identifier != null)) { | ||
{ | ||
throw Error("Touch object is missing identifier."); | ||
} | ||
})(); | ||
} | ||
{ | ||
!(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; | ||
} | ||
return identifier; | ||
@@ -1150,2 +1181,3 @@ } | ||
var touchRecord = touchBank[identifier]; | ||
if (touchRecord) { | ||
@@ -1156,2 +1188,3 @@ resetTouchRecord(touchRecord, touch); | ||
} | ||
touchHistory.mostRecentTimeStamp = timestampForTouch(touch); | ||
@@ -1162,2 +1195,3 @@ } | ||
var touchRecord = touchBank[getTouchIdentifier(touch)]; | ||
if (touchRecord) { | ||
@@ -1173,3 +1207,3 @@ touchRecord.touchActive = true; | ||
} else { | ||
console.error('Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
console.warn('Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
} | ||
@@ -1180,2 +1214,3 @@ } | ||
var touchRecord = touchBank[getTouchIdentifier(touch)]; | ||
if (touchRecord) { | ||
@@ -1191,3 +1226,3 @@ touchRecord.touchActive = false; | ||
} else { | ||
console.error('Cannot record touch end without a touch start.\n' + 'Touch End: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
console.warn('Cannot record touch end without a touch start.\n' + 'Touch End: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank()); | ||
} | ||
@@ -1207,5 +1242,7 @@ } | ||
var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); | ||
if (touchBank.length > MAX_TOUCH_BANK) { | ||
printed += ' (original size: ' + touchBank.length + ')'; | ||
} | ||
return printed; | ||
@@ -1221,2 +1258,3 @@ } | ||
touchHistory.numberActiveTouches = nativeEvent.touches.length; | ||
if (touchHistory.numberActiveTouches === 1) { | ||
@@ -1228,5 +1266,7 @@ touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; | ||
touchHistory.numberActiveTouches = nativeEvent.touches.length; | ||
if (touchHistory.numberActiveTouches === 1) { | ||
for (var i = 0; i < touchBank.length; i++) { | ||
var touchTrackToCheck = touchBank[i]; | ||
if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { | ||
@@ -1237,2 +1277,3 @@ touchHistory.indexOfSingleActiveTouch = i; | ||
} | ||
{ | ||
@@ -1245,4 +1286,2 @@ var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; | ||
}, | ||
touchHistory: touchHistory | ||
@@ -1258,17 +1297,16 @@ }; | ||
*/ | ||
function accumulate(current, next) { | ||
(function () { | ||
if (!(next != null)) { | ||
{ | ||
throw ReactError('accumulate(...): Accumulated items must not be null or undefined.'); | ||
} | ||
if (!(next != null)) { | ||
{ | ||
throw Error("accumulate(...): Accumulated items must not be null or undefined."); | ||
} | ||
})(); | ||
} | ||
if (current == null) { | ||
return next; | ||
} | ||
} // Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
// Both are not empty. Warning: Never call x.concat(y) when you are not | ||
// certain that x is an Array (x could be a string with concat method). | ||
if (Array.isArray(current)) { | ||
@@ -1289,4 +1327,4 @@ return current.concat(next); | ||
*/ | ||
var responderInst = null; | ||
/** | ||
@@ -1296,2 +1334,3 @@ * Count of current touches. A textInput should become responder iff the | ||
*/ | ||
var trackedTouchCount = 0; | ||
@@ -1302,2 +1341,3 @@ | ||
responderInst = nextResponderInst; | ||
if (ResponderEventPlugin.GlobalResponderHandler !== null) { | ||
@@ -1401,3 +1441,2 @@ ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); | ||
}; | ||
/** | ||
@@ -1594,14 +1633,13 @@ * | ||
function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { | ||
var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; | ||
var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder; // TODO: stop one short of the current responder. | ||
// TODO: stop one short of the current responder. | ||
var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); | ||
// When capturing/bubbling the "shouldSet" event, we want to skip the target | ||
var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); // When capturing/bubbling the "shouldSet" event, we want to skip the target | ||
// (deepest ID) if it happens to be the current responder. The reasoning: | ||
// It's strange to get an `onMoveShouldSetResponder` when you're *already* | ||
// the responder. | ||
var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; | ||
var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); | ||
shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; | ||
if (skipOverBubbleShouldSetFrom) { | ||
@@ -1612,3 +1650,5 @@ accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); | ||
} | ||
var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); | ||
if (!shouldSetEvent.isPersistent()) { | ||
@@ -1621,8 +1661,9 @@ shouldSetEvent.constructor.release(shouldSetEvent); | ||
} | ||
var extracted = void 0; | ||
var extracted; | ||
var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); | ||
grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; | ||
accumulateDirectDispatches(grantEvent); | ||
var blockHostResponder = executeDirectDispatch(grantEvent) === true; | ||
if (responderInst) { | ||
@@ -1633,2 +1674,3 @@ var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); | ||
var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); | ||
if (!terminationRequestEvent.isPersistent()) { | ||
@@ -1654,5 +1696,5 @@ terminationRequestEvent.constructor.release(terminationRequestEvent); | ||
} | ||
return extracted; | ||
} | ||
/** | ||
@@ -1666,5 +1708,6 @@ * A transfer is a negotiation between a currently set responder and the next | ||
*/ | ||
function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { | ||
return topLevelInst && ( | ||
// responderIgnoreScroll: We are trying to migrate away from specifically | ||
return topLevelInst && ( // responderIgnoreScroll: We are trying to migrate away from specifically | ||
// tracking native scroll events here and responderIgnoreScroll indicates we | ||
@@ -1674,3 +1717,2 @@ // will send topTouchCancel to handle canceling touch events instead | ||
} | ||
/** | ||
@@ -1683,13 +1725,19 @@ * Returns whether or not this touch end event makes it such that there are no | ||
*/ | ||
function noResponderTouches(nativeEvent) { | ||
var touches = nativeEvent.touches; | ||
if (!touches || touches.length === 0) { | ||
return true; | ||
} | ||
for (var i = 0; i < touches.length; i++) { | ||
var activeTouch = touches[i]; | ||
var target = activeTouch.target; | ||
if (target !== null && target !== undefined && target !== 0) { | ||
// Is the original touch location inside of the current responder? | ||
var targetInst = getInstanceFromNode$1(target); | ||
if (isAncestor(responderInst, targetInst)) { | ||
@@ -1700,2 +1748,3 @@ return false; | ||
} | ||
return true; | ||
@@ -1709,3 +1758,2 @@ } | ||
}, | ||
eventTypes: eventTypes, | ||
@@ -1718,3 +1766,3 @@ | ||
*/ | ||
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { | ||
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { | ||
if (isStartish(topLevelType)) { | ||
@@ -1726,3 +1774,3 @@ trackedTouchCount += 1; | ||
} else { | ||
console.error('Ended a touch event which was not counted in `trackedTouchCount`.'); | ||
console.warn('Ended a touch event which was not counted in `trackedTouchCount`.'); | ||
return null; | ||
@@ -1733,5 +1781,3 @@ } | ||
ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); | ||
var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; | ||
// Responder may or may not have transferred on a new touch start/move. | ||
var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; // Responder may or may not have transferred on a new touch start/move. | ||
// Regardless, whoever is the responder after any potential transfer, we | ||
@@ -1746,2 +1792,3 @@ // direct all touch start/move/ends to them in the form of | ||
// (`onResponderRelease/onResponderTerminate`). | ||
var isResponderTouchStart = responderInst && isStartish(topLevelType); | ||
@@ -1762,2 +1809,3 @@ var isResponderTouchMove = responderInst && isMoveish(topLevelType); | ||
var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null; | ||
if (finalTouch) { | ||
@@ -1773,5 +1821,3 @@ var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); | ||
}, | ||
GlobalResponderHandler: null, | ||
injection: { | ||
@@ -1789,4 +1835,4 @@ /** | ||
// Inject react-dom's ComponentTree into this module. | ||
// Keep in sync with ReactDOM.js, ReactTestUtils.js, and ReactTestUtilsAct.js: | ||
var _ReactDOM$__SECRET_IN = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events; | ||
@@ -1797,8 +1843,5 @@ var getInstanceFromNode = _ReactDOM$__SECRET_IN[0]; | ||
var injectEventPluginsByName = _ReactDOM$__SECRET_IN[3]; | ||
setComponentTree(getFiberCurrentPropsFromNode, getInstanceFromNode, getNodeFromInstance); | ||
var ReactDOMUnstableNativeDependencies = Object.freeze({ | ||
@@ -1805,0 +1848,0 @@ ResponderEventPlugin: ResponderEventPlugin, |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-50b50c26f | ||
/** @license React v0.0.0-5faf377df | ||
* react-dom-unstable-native-dependencies.production.min.js | ||
@@ -9,22 +9,22 @@ * | ||
*/ | ||
'use strict';(function(n,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],p):n.ReactDOMUnstableNativeDependencies=p(n.ReactDOM,n.React)})(this,function(n,p){function x(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 Error("Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ")} | ||
function M(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))throw x(103);a.currentTarget=b?N(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 O(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)}function C(a,b){if(null==b)throw x(30);if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a, | ||
'use strict';(function(l,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],p):l.ReactDOMUnstableNativeDependencies=p(l.ReactDOM,l.React)})(this,function(l,p){function x(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."} | ||
function M(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))throw Error(x(103));a.currentTarget=b?N(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 O(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)}function C(a,b){if(null==b)throw Error(x(30));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 v(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function P(a,b){var c=a.stateNode;if(!c)return null;var f=Q(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;if(c&&"function"!==typeof c)throw x(231,b,typeof c);return c}function R(a,b,c){if(b=P(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=C(c._dispatchListeners,b),c._dispatchInstances=C(c._dispatchInstances,a)}function Y(a){a&&a.dispatchConfig.phasedRegistrationNames&&O(a._targetInst,R,a)}function Z(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;O(b,R,a)}}function y(a){if(a&& | ||
a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=P(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=C(a._dispatchListeners,c),a._dispatchInstances=C(a._dispatchInstances,b))}}}function D(){return!0}function E(){return!1}function z(a,b,c,f){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=f:this[e]=c[e]);this.isDefaultPrevented= | ||
(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?D:E;this.isPropagationStopped=E;return this}function aa(a,b,c,f){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,f);return e}return new this(a,b,c,f)}function ba(a){if(!(a instanceof this))throw x(279);a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function S(a){a.eventPool=[];a.getPooled=aa;a.release=ba}function A(a){return"touchstart"===a||"mousedown"===a}function F(a){return"touchmove"===a|| | ||
"mousemove"===a}function G(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function k(a){return a.timeStamp||a.timestamp}function J(a){a=a.identifier;if(null==a)throw x(138);return a}function ca(a){var b=J(a),c=q[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=k(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=k(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=k(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY, | ||
startTimeStamp:k(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:k(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:k(a)},q[b]=c);r.mostRecentTimeStamp=k(a)}function da(a){var b=q[J(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=k(a),r.mostRecentTimeStamp=k(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n", | ||
"Touch Bank: %s",T(a),U())}function ea(a){var b=q[J(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=k(a),r.mostRecentTimeStamp=k(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",T(a),U())}function T(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:k(a)})}function U(){var a= | ||
JSON.stringify(q.slice(0,20));20<q.length&&(a+=" (original size: "+q.length+")");return a}function B(a,b){if(null==b)throw x(334);return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var Q=null,V=null,N=null,K=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;K(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented= | ||
a||"select"===a||"textarea"===a));a=!f;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(x(231,b,typeof c));return c}function R(a,b,c){if(b=P(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=C(c._dispatchListeners,b),c._dispatchInstances=C(c._dispatchInstances,a)}function Y(a){a&&a.dispatchConfig.phasedRegistrationNames&&O(a._targetInst,R,a)}function Z(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;O(b,R,a)}}function y(a){if(a&& | ||
a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=P(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=C(a._dispatchListeners,c),a._dispatchInstances=C(a._dispatchInstances,b))}}}function D(){return!0}function E(){return!1}function z(a,b,c,f){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=f:this[d]=c[d]);this.isDefaultPrevented= | ||
(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?D:E;this.isPropagationStopped=E;return this}function aa(a,b,c,f){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,f);return d}return new this(a,b,c,f)}function ba(a){if(!(a instanceof this))throw Error(x(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function S(a){a.eventPool=[];a.getPooled=aa;a.release=ba}function A(a){return"touchstart"===a||"mousedown"===a}function F(a){return"touchmove"=== | ||
a||"mousemove"===a}function G(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function h(a){return a.timeStamp||a.timestamp}function J(a){a=a.identifier;if(null==a)throw Error(x(138));return a}function ca(a){var b=J(a),c=q[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=h(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=h(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=h(a)):(c={touchActive:!0,startPageX:a.pageX, | ||
startPageY:a.pageY,startTimeStamp:h(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:h(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:h(a)},q[b]=c);r.mostRecentTimeStamp=h(a)}function da(a){var b=q[J(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=h(a),r.mostRecentTimeStamp=h(a)):console.warn("Cannot record touch move without a touch start.\nTouch Move: %s\n", | ||
"Touch Bank: %s",T(a),U())}function ea(a){var b=q[J(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=h(a),r.mostRecentTimeStamp=h(a)):console.warn("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",T(a),U())}function T(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:h(a)})}function U(){var a= | ||
JSON.stringify(q.slice(0,20));20<q.length&&(a+=" (original size: "+q.length+")");return a}function B(a,b){if(null==b)throw Error(x(334));return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var Q=null,V=null,N=null,K=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;K(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented= | ||
D)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=D)},persist:function(){this.isPersistent=D},isPersistent:E,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=E;this._dispatchInstances=this._dispatchListeners=null}});z.Interface={type:null, | ||
target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};z.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;K(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=K({},c.Interface,a);b.extend=c.extend;S(b);return b};S(z);var w=z.extend({touchHistory:function(a){return null}});p=["touchstart", | ||
"mousedown"];var W=["touchmove","mousemove"],X=["touchcancel","touchend","mouseup"],q=[],r={touchBank:q,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},u={recordTouchTrack:function(a,b){if(F(a))b.changedTouches.forEach(da);else if(A(a))b.changedTouches.forEach(ca),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches&&(r.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(ea),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches))for(a= | ||
0;a<q.length;a++)if(b=q[a],null!=b&&b.touchActive){r.indexOfSingleActiveTouch=a;break}},touchHistory:r},l=null,H=0,L=function(a,b){var c=l;l=a;if(null!==I.GlobalResponderHandler)I.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:p},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}, | ||
0;a<q.length;a++)if(b=q[a],null!=b&&b.touchActive){r.indexOfSingleActiveTouch=a;break}},touchHistory:r},k=null,H=0,L=function(a,b){var c=k;k=a;if(null!==I.GlobalResponderHandler)I.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:p},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}, | ||
dependencies:["scroll"]},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:W},responderStart:{registrationName:"onResponderStart",dependencies:p},responderMove:{registrationName:"onResponderMove",dependencies:W},responderEnd:{registrationName:"onResponderEnd", | ||
dependencies:X},responderRelease:{registrationName:"onResponderRelease",dependencies:X},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]},responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},I={_getResponder:function(){return l},eventTypes:m,extractEvents:function(a,b,c,f){if(A(a))H+=1;else if(G(a))if(0<= | ||
H)--H;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;u.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll||0<H&&"selectionchange"===a||A(a)||F(a))){var e=A(a)?m.startShouldSetResponder:F(a)?m.moveShouldSetResponder:"selectionchange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(l)b:{var d=l;for(var g=0,h=d;h;h=t(h))g++;h=0;for(var k=b;k;k=t(k))h++;for(;0<g-h;)d=t(d),g--;for(;0<h-g;)b=t(b),h--;for(;g--;){if(d=== | ||
b||d===b.alternate)break b;d=t(d);b=t(b)}d=null}else d=b;b=d===l;d=w.getPooled(e,d,c,f);d.touchHistory=u.touchHistory;b?v(d,Z):v(d,Y);b:{e=d._dispatchListeners;b=d._dispatchInstances;if(Array.isArray(e))for(g=0;g<e.length&&!d.isPropagationStopped();g++){if(e[g](d,b[g])){e=b[g];break b}}else if(e&&e(d,b)){e=b;break b}e=null}d._dispatchInstances=null;d._dispatchListeners=null;d.isPersistent()||d.constructor.release(d);e&&e!==l?(d=void 0,b=w.getPooled(m.responderGrant,e,c,f),b.touchHistory=u.touchHistory, | ||
v(b,y),g=!0===M(b),l?(h=w.getPooled(m.responderTerminationRequest,l,c,f),h.touchHistory=u.touchHistory,v(h,y),k=!h._dispatchListeners||M(h),h.isPersistent()||h.constructor.release(h),k?(h=w.getPooled(m.responderTerminate,l,c,f),h.touchHistory=u.touchHistory,v(h,y),d=B(d,[b,h]),L(e,g)):(e=w.getPooled(m.responderReject,e,c,f),e.touchHistory=u.touchHistory,v(e,y),d=B(d,e))):(d=B(d,b),L(e,g)),e=d):e=null}else e=null;d=l&&A(a);b=l&&F(a);g=l&&G(a);if(d=d?m.responderStart:b?m.responderMove:g?m.responderEnd: | ||
null)d=w.getPooled(d,l,c,f),d.touchHistory=u.touchHistory,v(d,y),e=B(e,d);d=l&&"touchcancel"===a;if(a=l&&!d&&G(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g){h=V(g);b:{for(g=l;h;){if(g===h||g===h.alternate){g=!0;break b}h=t(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?m.responderTerminate:a?m.responderRelease:null)c=w.getPooled(a,l,c,f),c.touchHistory=u.touchHistory,v(c,y),e=B(e,c),L(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){I.GlobalResponderHandler= | ||
a}}};n=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;p=n[3];(function(a,b,c){Q=a;V=b;N=c})(n[2],n[0],n[1]);return{ResponderEventPlugin:I,ResponderTouchHistoryStore:u,injectEventPluginsByName:p}}); | ||
dependencies:X},responderRelease:{registrationName:"onResponderRelease",dependencies:X},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]},responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},I={_getResponder:function(){return k},eventTypes:m,extractEvents:function(a,b,c,f,d){if(A(a))H+=1;else if(G(a))if(0<= | ||
H)--H;else return console.warn("Ended a touch event which was not counted in `trackedTouchCount`."),null;u.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll||0<H&&"selectionchange"===a||A(a)||F(a))){d=A(a)?m.startShouldSetResponder:F(a)?m.moveShouldSetResponder:"selectionchange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(k)b:{var e=k;for(var g=0,h=e;h;h=t(h))g++;h=0;for(var l=b;l;l=t(l))h++;for(;0<g-h;)e=t(e),g--;for(;0<h-g;)b=t(b),h--;for(;g--;){if(e=== | ||
b||e===b.alternate)break b;e=t(e);b=t(b)}e=null}else e=b;b=e===k;e=w.getPooled(d,e,c,f);e.touchHistory=u.touchHistory;b?v(e,Z):v(e,Y);b:{d=e._dispatchListeners;b=e._dispatchInstances;if(Array.isArray(d))for(g=0;g<d.length&&!e.isPropagationStopped();g++){if(d[g](e,b[g])){d=b[g];break b}}else if(d&&d(e,b)){d=b;break b}d=null}e._dispatchInstances=null;e._dispatchListeners=null;e.isPersistent()||e.constructor.release(e);if(d&&d!==k)if(e=w.getPooled(m.responderGrant,d,c,f),e.touchHistory=u.touchHistory, | ||
v(e,y),b=!0===M(e),k)if(g=w.getPooled(m.responderTerminationRequest,k,c,f),g.touchHistory=u.touchHistory,v(g,y),h=!g._dispatchListeners||M(g),g.isPersistent()||g.constructor.release(g),h){g=w.getPooled(m.responderTerminate,k,c,f);g.touchHistory=u.touchHistory;v(g,y);var n=B(n,[e,g]);L(d,b)}else d=w.getPooled(m.responderReject,d,c,f),d.touchHistory=u.touchHistory,v(d,y),n=B(n,d);else n=B(n,e),L(d,b);else n=null}else n=null;d=k&&A(a);e=k&&F(a);b=k&&G(a);if(d=d?m.responderStart:e?m.responderMove:b?m.responderEnd: | ||
null)d=w.getPooled(d,k,c,f),d.touchHistory=u.touchHistory,v(d,y),n=B(n,d);d=k&&"touchcancel"===a;if(a=k&&!d&&G(a))a:{if((a=c.touches)&&0!==a.length)for(e=0;e<a.length;e++)if(b=a[e].target,null!==b&&void 0!==b&&0!==b){g=V(b);b:{for(b=k;g;){if(b===g||b===g.alternate){b=!0;break b}g=t(g)}b=!1}if(b){a=!1;break a}}a=!0}if(a=d?m.responderTerminate:a?m.responderRelease:null)c=w.getPooled(a,k,c,f),c.touchHistory=u.touchHistory,v(c,y),n=B(n,c),L(null);return n},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){I.GlobalResponderHandler= | ||
a}}};l=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;p=l[3];(function(a,b,c){Q=a;V=b;N=c})(l[2],l[0],l[1]);return{ResponderEventPlugin:I,ResponderTouchHistoryStore:u,injectEventPluginsByName:p}}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
12
22
3213723
40
65902
+ Addedreact@0.0.0-5faf377df(transitive)
+ Addedscheduler@0.0.0-5faf377df(transitive)
- Removedreact@0.0.0-50b50c26f(transitive)
- Removedscheduler@0.0.0-50b50c26f(transitive)
Updatedscheduler@0.0.0-5faf377df