/** @license React v16.12.0 * react-dom-test-utils.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict';(function(k,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],m):k.ReactTestUtils=m(k.React,k.ReactDOM)})(this,function(k,m){function l(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cthis.eventPool.length&& this.eventPool.push(a)}function H(a){a.eventPool=[];a.getPooled=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