react-test-renderer 16.9.0-rc.0 → 16.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /** @license React v16.9.0-rc.0
1
+ /** @license React v16.10.2
2
2
  * react-test-renderer-shallow.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -6,26 +6,26 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- 'use strict';(function(m,l){"object"===typeof exports&&"undefined"!==typeof module?module.exports=l(require("react")):"function"===typeof define&&define.amd?define(["react"],l):m.ReactShallowRenderer=l(m.React)})(this,function(m){function l(a){for(var b=a.message,e="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)e+="&args[]="+encodeURIComponent(arguments[c]);a.message="Minified React error #"+b+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ";
9
+ 'use strict';(function(m,h){"object"===typeof exports&&"undefined"!==typeof module?module.exports=h(require("react")):"function"===typeof define&&define.amd?define(["react"],h):m.ReactShallowRenderer=h(m.React)})(this,function(m){function h(a){for(var b=a.message,c="https://reactjs.org/docs/error-decoder.html?invariant="+b,d=1;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d]);a.message="Minified React error #"+b+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ";
10
10
  return a}function p(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case K:switch(a=a.type,a){case L:case M:case z:case A:case B:case C:return a;default:switch(a=a&&a.$$typeof,a){case D:case q:case E:return a;default:return b}}case F:case n:case G:return b}}}function u(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 z:return"Fragment";case G:return"Portal";case A:return"Profiler";case B:return"StrictMode";
11
- case C:return"Suspense";case N:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case D:return"Context.Consumer";case E:return"Context.Provider";case q:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case n:return u(a.type);case F:if(a=1===a._status?a._result:null)return u(a)}return null}function v(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}function w(a,b){if(v(a,b))return!0;if("object"!==typeof a||null===a||"object"!==
12
- typeof b||null===b)return!1;var e=Object.keys(a),c=Object.keys(b);if(e.length!==c.length)return!1;for(c=0;c<e.length;c++)if(!O.call(b,e[c])||!v(a[e[c]],b[e[c]]))return!1;return!0}function H(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function I(){return{memoizedState:null,queue:null,next:null}}function J(a,b){return"function"===typeof b?b(a):b}var x=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,d="function"===typeof Symbol&&Symbol.for,K=d?Symbol.for("react.element"):
13
- 60103,G=d?Symbol.for("react.portal"):60106,z=d?Symbol.for("react.fragment"):60107,B=d?Symbol.for("react.strict_mode"):60108,A=d?Symbol.for("react.profiler"):60114,E=d?Symbol.for("react.provider"):60109,D=d?Symbol.for("react.context"):60110,L=d?Symbol.for("react.async_mode"):60111,M=d?Symbol.for("react.concurrent_mode"):60111,q=d?Symbol.for("react.forward_ref"):60112,C=d?Symbol.for("react.suspense"):60113,N=d?Symbol.for("react.suspense_list"):60120,n=d?Symbol.for("react.memo"):60115,F=d?Symbol.for("react.lazy"):
14
- 60116,P=q,O=Object.prototype.hasOwnProperty;d=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;d.hasOwnProperty("ReactCurrentDispatcher")||(d.ReactCurrentDispatcher={current:null});d.hasOwnProperty("ReactCurrentBatchConfig")||(d.ReactCurrentBatchConfig={suspense:null});var y=d.ReactCurrentDispatcher,r={},Q=function(){function a(b){H(this,a);this._renderer=b;this._callbacks=[]}a.prototype._enqueueCallback=function(b,a){"function"===typeof b&&a&&this._callbacks.push({callback:b,publicInstance:a})};
15
- a.prototype._invokeCallbacks=function(){var b=this._callbacks;this._callbacks=[];b.forEach(function(b){b.callback.call(b.publicInstance)})};a.prototype.isMounted=function(b){return!!this._renderer._element};a.prototype.enqueueForceUpdate=function(b,a,c){this._enqueueCallback(a,b);this._renderer._forcedUpdate=!0;this._renderer.render(this._renderer._element,this._renderer._context)};a.prototype.enqueueReplaceState=function(b,a,c,f){this._enqueueCallback(c,b);this._renderer._newState=a;this._renderer.render(this._renderer._element,
16
- this._renderer._context)};a.prototype.enqueueSetState=function(b,a,c,f){this._enqueueCallback(c,b);c=this._renderer._newState||b.state;"function"===typeof a&&(a=a.call(b,c,b.props));null!==a&&void 0!==a&&(this._renderer._newState=x({},c,a),this._renderer.render(this._renderer._element,this._renderer._context))};return a}(),t=function(){function a(){H(this,a);this._reset()}a.prototype._reset=function(){this._rendered=this._newState=this._instance=this._element=this._context=null;this._forcedUpdate=
17
- this._rendering=!1;this._updater=new Q(this);this._dispatcher=this._createDispatcher();this._firstWorkInProgressHook=this._workInProgressHook=null;this._didScheduleRenderPhaseUpdate=this._isReRender=!1;this._renderPhaseUpdates=null;this._numberOfReRenders=0};a.prototype._validateCurrentlyRenderingComponent=function(){if(!this._rendering||this._instance)throw l(Error(321));};a.prototype._createDispatcher=function(){var b=this,a=function(a,c,e){b._validateCurrentlyRenderingComponent();b._createWorkInProgressHook();
18
- var f=b._workInProgressHook;if(b._isReRender){e=f.queue;c=e.dispatch;if(0<b._numberOfReRenders){if(null!==b._renderPhaseUpdates){var d=b._renderPhaseUpdates.get(e);if(void 0!==d){b._renderPhaseUpdates.delete(e);e=f.memoizedState;do e=a(e,d.action),d=d.next;while(null!==d);f.memoizedState=e;return[e,c]}}return[f.memoizedState,c]}d=f.memoizedState;var g=e.first;if(null!==g){do d=a(d,g.action),g=g.next;while(null!==g);e.first=null;f.memoizedState=d}return[d,c]}a=a===J?"function"===typeof c?c():c:void 0!==
19
- e?e(c):c;f.memoizedState=a;a=f.queue={first:null,dispatch:null};a=a.dispatch=b._dispatchAction.bind(b,a);return[f.memoizedState,a]},c=function(){b._validateCurrentlyRenderingComponent()};return{readContext:function(b,a){return b._currentValue},useCallback:function(b){return b},useContext:function(a){b._validateCurrentlyRenderingComponent();return a._currentValue},useDebugValue:c,useEffect:c,useImperativeHandle:c,useLayoutEffect:c,useMemo:function(a,c){b._validateCurrentlyRenderingComponent();b._createWorkInProgressHook();
20
- c=void 0!==c?c:null;if(null!==b._workInProgressHook&&null!==b._workInProgressHook.memoizedState){var e=b._workInProgressHook.memoizedState,d=e[1];if(null!==c){a:if(null===d)d=!1;else{for(var f=0;f<d.length&&f<c.length;f++)if(!v(c[f],d[f])){d=!1;break a}d=!0}if(d)return e[0]}}a=a();b._workInProgressHook.memoizedState=[a,c];return a},useReducer:a,useRef:function(a){b._validateCurrentlyRenderingComponent();b._createWorkInProgressHook();var c=b._workInProgressHook.memoizedState;return null===c?(a={current:a},
21
- b._workInProgressHook.memoizedState=a):c},useState:function(b){return a(J,b)},useResponder:function(b,a){return{props:a,responder:b}}}};a.prototype._dispatchAction=function(b,a){if(!(25>this._numberOfReRenders))throw l(Error(301));if(this._rendering){this._didScheduleRenderPhaseUpdate=!0;a={action:a,next:null};var c=this._renderPhaseUpdates;null===c&&(this._renderPhaseUpdates=c=new Map);var e=c.get(b);if(void 0===e)c.set(b,a);else{for(b=e;null!==b.next;)b=b.next;b.next=a}}else{a={action:a,next:null};
22
- c=b.first;if(null===c)b.first=a;else{for(;null!==c.next;)c=c.next;c.next=a}this.render(this._element,this._context)}};a.prototype._createWorkInProgressHook=function(){null===this._workInProgressHook?null===this._firstWorkInProgressHook?(this._isReRender=!1,this._firstWorkInProgressHook=this._workInProgressHook=I()):(this._isReRender=!0,this._workInProgressHook=this._firstWorkInProgressHook):null===this._workInProgressHook.next?(this._isReRender=!1,this._workInProgressHook=this._workInProgressHook.next=
23
- I()):(this._isReRender=!0,this._workInProgressHook=this._workInProgressHook.next);return this._workInProgressHook};a.prototype._finishHooks=function(b,a){this._didScheduleRenderPhaseUpdate?(this._didScheduleRenderPhaseUpdate=!1,this._numberOfReRenders+=1,this._workInProgressHook=null,this._rendering=!1,this.render(b,a)):(this._renderPhaseUpdates=this._workInProgressHook=null,this._numberOfReRenders=0)};a.prototype.getMountedInstance=function(){return this._instance};a.prototype.getRenderOutput=function(){return this._rendered};
24
- a.prototype.render=function(b){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r;if(!m.isValidElement(b))throw l(Error(12),"function"===typeof b?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":"");if("string"===typeof b.type)throw l(Error(13),b.type);if(p(b)!==q&&"function"!==typeof b.type&&p(b.type)!==n)throw l(Error(249),Array.isArray(b.type)?"array":null===b.type?"null":typeof b.type);if(!this._rendering){null!=this._element&&
25
- this._element.type!==b.type&&this._reset();var c=p(b.type)===n?b.type.type:b.type,d=this._element;this._rendering=!0;this._element=b;var g;if((g=c.contextTypes)&&a){var k={},h;for(h in g)k[h]=a[h];g=k}else g=r;this._context=g;p(b.type)===n&&c.propTypes&&u(c);if(this._instance)this._updateClassComponent(c,b,this._context);else if(c.prototype&&c.prototype.isReactComponent)this._instance=new c(b.props,this._context,this._updater),"function"===typeof c.getDerivedStateFromProps&&(a=c.getDerivedStateFromProps.call(null,
26
- b.props,this._instance.state),null!=a&&(this._instance.state=x({},this._instance.state,a))),this._mountClassComponent(c,b,this._context);else if(g=!0,p(b.type)===n&&null!==d&&(b.type.compare||w)(d.props,b.props)&&(g=!1),g){d=y.current;y.current=this._dispatcher;try{if(c.$$typeof===P){if("function"!==typeof c.render)throw l(Error(322),typeof c.render);this._rendered=c.render.call(void 0,b.props,b.ref)}else this._rendered=c(b.props,this._context)}finally{y.current=d}this._finishHooks(b,a)}this._rendering=
27
- !1;this._updater._invokeCallbacks();return this.getRenderOutput()}};a.prototype.unmount=function(){this._instance&&"function"===typeof this._instance.componentWillUnmount&&this._instance.componentWillUnmount();this._reset()};a.prototype._mountClassComponent=function(a,d,c){this._instance.context=c;this._instance.props=d.props;this._instance.state=this._instance.state||null;this._instance.updater=this._updater;if("function"===typeof this._instance.UNSAFE_componentWillMount||"function"===typeof this._instance.componentWillMount)d=
28
- this._newState,"function"!==typeof a.getDerivedStateFromProps&&"function"!==typeof this._instance.getSnapshotBeforeUpdate&&("function"===typeof this._instance.componentWillMount&&this._instance.componentWillMount(),"function"===typeof this._instance.UNSAFE_componentWillMount&&this._instance.UNSAFE_componentWillMount()),d!==this._newState&&(this._instance.state=this._newState||r);this._rendered=this._instance.render()};a.prototype._updateClassComponent=function(a,d,c){d=d.props;var b=this._instance.state||
29
- r,e=this._instance.props;e!==d&&"function"!==typeof a.getDerivedStateFromProps&&"function"!==typeof this._instance.getSnapshotBeforeUpdate&&("function"===typeof this._instance.componentWillReceiveProps&&this._instance.componentWillReceiveProps(d,c),"function"===typeof this._instance.UNSAFE_componentWillReceiveProps&&this._instance.UNSAFE_componentWillReceiveProps(d,c));var k=this._newState||b;if("function"===typeof a.getDerivedStateFromProps){var h=a.getDerivedStateFromProps.call(null,d,k);null!=
30
- h&&(k=x({},k,h))}h=!0;this._forcedUpdate?(h=!0,this._forcedUpdate=!1):"function"===typeof this._instance.shouldComponentUpdate?h=!!this._instance.shouldComponentUpdate(d,k,c):a.prototype&&a.prototype.isPureReactComponent&&(h=!w(e,d)||!w(b,k));h&&"function"!==typeof a.getDerivedStateFromProps&&"function"!==typeof this._instance.getSnapshotBeforeUpdate&&("function"===typeof this._instance.componentWillUpdate&&this._instance.componentWillUpdate(d,k,c),"function"===typeof this._instance.UNSAFE_componentWillUpdate&&
31
- this._instance.UNSAFE_componentWillUpdate(d,k,c));this._instance.context=c;this._instance.props=d;this._instance.state=k;this._newState=null;h&&(this._rendered=this._instance.render())};return a}();t.createRenderer=function(){return new t};d=(d={default:t},t)||d;return d.default||d});
11
+ case C:return"Suspense";case N:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case D:return"Context.Consumer";case E:return"Context.Provider";case q:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case n:return u(a.type);case F:if(a=1===a._status?a._result:null)return u(a)}return null}function O(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}function v(a,b){if(w(a,b))return!0;if("object"!==typeof a||null===a||"object"!==
12
+ typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!P.call(b,c[d])||!w(a[c[d]],b[c[d]]))return!1;return!0}function H(){return{memoizedState:null,queue:null,next:null}}function I(a,b){return"function"===typeof b?b(a):b}var x=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,e="function"===typeof Symbol&&Symbol.for,K=e?Symbol.for("react.element"):60103,G=e?Symbol.for("react.portal"):60106,z=e?Symbol.for("react.fragment"):
13
+ 60107,B=e?Symbol.for("react.strict_mode"):60108,A=e?Symbol.for("react.profiler"):60114,E=e?Symbol.for("react.provider"):60109,D=e?Symbol.for("react.context"):60110,L=e?Symbol.for("react.async_mode"):60111,M=e?Symbol.for("react.concurrent_mode"):60111,q=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,N=e?Symbol.for("react.suspense_list"):60120,n=e?Symbol.for("react.memo"):60115,F=e?Symbol.for("react.lazy"):60116,Q=q;e=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
14
+ e.hasOwnProperty("ReactCurrentDispatcher")||(e.ReactCurrentDispatcher={current:null});e.hasOwnProperty("ReactCurrentBatchConfig")||(e.ReactCurrentBatchConfig={suspense:null});var w="function"===typeof Object.is?Object.is:O,P=Object.prototype.hasOwnProperty,y=e.ReactCurrentDispatcher,r={},R=function(){function a(c){this._renderer=c;this._callbacks=[]}var b=a.prototype;b._enqueueCallback=function(c,d){"function"===typeof c&&d&&this._callbacks.push({callback:c,publicInstance:d})};b._invokeCallbacks=
15
+ function(){var c=this._callbacks;this._callbacks=[];c.forEach(function(c){c.callback.call(c.publicInstance)})};b.isMounted=function(c){return!!this._renderer._element};b.enqueueForceUpdate=function(c,d,a){this._enqueueCallback(d,c);this._renderer._forcedUpdate=!0;this._renderer.render(this._renderer._element,this._renderer._context)};b.enqueueReplaceState=function(c,d,a,b){this._enqueueCallback(a,c);this._renderer._newState=d;this._renderer.render(this._renderer._element,this._renderer._context)};
16
+ b.enqueueSetState=function(c,d,a,b){this._enqueueCallback(a,c);a=this._renderer._newState||c.state;"function"===typeof d&&(d=d.call(c,a,c.props));null!==d&&void 0!==d&&(this._renderer._newState=x({},a,{},d),this._renderer.render(this._renderer._element,this._renderer._context))};return a}(),t=function(){function a(){this._reset()}var b=a.prototype;b._reset=function(){this._rendered=this._newState=this._instance=this._element=this._context=null;this._forcedUpdate=this._rendering=!1;this._updater=new R(this);
17
+ this._dispatcher=this._createDispatcher();this._firstWorkInProgressHook=this._workInProgressHook=null;this._didScheduleRenderPhaseUpdate=this._isReRender=!1;this._renderPhaseUpdates=null;this._numberOfReRenders=0};b._validateCurrentlyRenderingComponent=function(){if(!this._rendering||this._instance)throw h(Error(321));};b._createDispatcher=function(){var c=this,d=function(a,d,b){c._validateCurrentlyRenderingComponent();c._createWorkInProgressHook();var f=c._workInProgressHook;if(c._isReRender){b=
18
+ f.queue;d=b.dispatch;if(0<c._numberOfReRenders){if(null!==c._renderPhaseUpdates){var k=c._renderPhaseUpdates.get(b);if(void 0!==k){c._renderPhaseUpdates.delete(b);b=f.memoizedState;do b=a(b,k.action),k=k.next;while(null!==k);f.memoizedState=b;return[b,d]}}return[f.memoizedState,d]}k=f.memoizedState;var e=b.first;if(null!==e){do k=a(k,e.action),e=e.next;while(null!==e);b.first=null;f.memoizedState=k}return[k,d]}a=a===I?"function"===typeof d?d():d:void 0!==b?b(d):d;f.memoizedState=a;a=f.queue={first:null,
19
+ dispatch:null};a=a.dispatch=c._dispatchAction.bind(c,a);return[f.memoizedState,a]},a=function(){c._validateCurrentlyRenderingComponent()};return{readContext:function(c,a){return c._currentValue},useCallback:function(c){return c},useContext:function(a){c._validateCurrentlyRenderingComponent();return a._currentValue},useDebugValue:a,useEffect:a,useImperativeHandle:a,useLayoutEffect:a,useMemo:function(a,d){c._validateCurrentlyRenderingComponent();c._createWorkInProgressHook();d=void 0!==d?d:null;if(null!==
20
+ c._workInProgressHook&&null!==c._workInProgressHook.memoizedState){var b=c._workInProgressHook.memoizedState,f=b[1];if(null!==d){a:if(null===f)f=!1;else{for(var e=0;e<f.length&&e<d.length;e++)if(!w(d[e],f[e])){f=!1;break a}f=!0}if(f)return b[0]}}a=a();c._workInProgressHook.memoizedState=[a,d];return a},useReducer:d,useRef:function(a){c._validateCurrentlyRenderingComponent();c._createWorkInProgressHook();var d=c._workInProgressHook.memoizedState;return null===d?(a={current:a},c._workInProgressHook.memoizedState=
21
+ a):d},useState:function(c){return d(I,c)},useResponder:function(c,a){return{props:a,responder:c}}}};b._dispatchAction=function(c,a){if(!(25>this._numberOfReRenders))throw h(Error(301));if(this._rendering){this._didScheduleRenderPhaseUpdate=!0;a={action:a,next:null};var d=this._renderPhaseUpdates;null===d&&(this._renderPhaseUpdates=d=new Map);var b=d.get(c);if(void 0===b)d.set(c,a);else{for(c=b;null!==c.next;)c=c.next;c.next=a}}else{a={action:a,next:null};d=c.first;if(null===d)c.first=a;else{for(;null!==
22
+ d.next;)d=d.next;d.next=a}this.render(this._element,this._context)}};b._createWorkInProgressHook=function(){null===this._workInProgressHook?null===this._firstWorkInProgressHook?(this._isReRender=!1,this._firstWorkInProgressHook=this._workInProgressHook=H()):(this._isReRender=!0,this._workInProgressHook=this._firstWorkInProgressHook):null===this._workInProgressHook.next?(this._isReRender=!1,this._workInProgressHook=this._workInProgressHook.next=H()):(this._isReRender=!0,this._workInProgressHook=this._workInProgressHook.next);
23
+ return this._workInProgressHook};b._finishHooks=function(c,a){this._didScheduleRenderPhaseUpdate?(this._didScheduleRenderPhaseUpdate=!1,this._numberOfReRenders+=1,this._workInProgressHook=null,this._rendering=!1,this.render(c,a)):(this._renderPhaseUpdates=this._workInProgressHook=null,this._numberOfReRenders=0)};b.getMountedInstance=function(){return this._instance};b.getRenderOutput=function(){return this._rendered};b.render=function(c){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
24
+ r;if(!m.isValidElement(c))throw h(Error(12),"function"===typeof c?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":"");if("string"===typeof c.type)throw h(Error(13),c.type);if(p(c)!==q&&"function"!==typeof c.type&&p(c.type)!==n)throw h(Error(249),Array.isArray(c.type)?"array":null===c.type?"null":typeof c.type);if(!this._rendering){null!=this._element&&this._element.type!==c.type&&this._reset();var b=p(c.type)===n?c.type.type:c.type,e=this._element;
25
+ this._rendering=!0;this._element=c;var l;if((l=b.contextTypes)&&a){var J={},g;for(g in l)J[g]=a[g];l=J}else l=r;this._context=l;p(c.type)===n&&b.propTypes&&u(b);if(this._instance)this._updateClassComponent(b,c,this._context);else if(b.prototype&&b.prototype.isReactComponent)this._instance=new b(c.props,this._context,this._updater),"function"===typeof b.getDerivedStateFromProps&&(a=b.getDerivedStateFromProps.call(null,c.props,this._instance.state),null!=a&&(this._instance.state=x({},this._instance.state,
26
+ a))),this._mountClassComponent(b,c,this._context);else if(l=!0,p(c.type)===n&&null!==e&&(c.type.compare||v)(e.props,c.props)&&(l=!1),l){e=y.current;y.current=this._dispatcher;try{if(b.$$typeof===Q){if("function"!==typeof b.render)throw h(Error(322),typeof b.render);this._rendered=b.render.call(void 0,c.props,c.ref)}else this._rendered=b(c.props,this._context)}finally{y.current=e}this._finishHooks(c,a)}this._rendering=!1;this._updater._invokeCallbacks();return this.getRenderOutput()}};b.unmount=function(){this._instance&&
27
+ "function"===typeof this._instance.componentWillUnmount&&this._instance.componentWillUnmount();this._reset()};b._mountClassComponent=function(a,b,e){this._instance.context=e;this._instance.props=b.props;this._instance.state=this._instance.state||null;this._instance.updater=this._updater;if("function"===typeof this._instance.UNSAFE_componentWillMount||"function"===typeof this._instance.componentWillMount)b=this._newState,"function"!==typeof a.getDerivedStateFromProps&&"function"!==typeof this._instance.getSnapshotBeforeUpdate&&
28
+ ("function"===typeof this._instance.componentWillMount&&this._instance.componentWillMount(),"function"===typeof this._instance.UNSAFE_componentWillMount&&this._instance.UNSAFE_componentWillMount()),b!==this._newState&&(this._instance.state=this._newState||r);this._rendered=this._instance.render()};b._updateClassComponent=function(a,b,e){b=b.props;var c=this._instance.state||r,d=this._instance.props;d!==b&&"function"!==typeof a.getDerivedStateFromProps&&"function"!==typeof this._instance.getSnapshotBeforeUpdate&&
29
+ ("function"===typeof this._instance.componentWillReceiveProps&&this._instance.componentWillReceiveProps(b,e),"function"===typeof this._instance.UNSAFE_componentWillReceiveProps&&this._instance.UNSAFE_componentWillReceiveProps(b,e));var f=this._newState||c;if("function"===typeof a.getDerivedStateFromProps){var g=a.getDerivedStateFromProps.call(null,b,f);null!=g&&(f=x({},f,g))}g=!0;this._forcedUpdate?(g=!0,this._forcedUpdate=!1):"function"===typeof this._instance.shouldComponentUpdate?g=!!this._instance.shouldComponentUpdate(b,
30
+ f,e):a.prototype&&a.prototype.isPureReactComponent&&(g=!v(d,b)||!v(c,f));g&&"function"!==typeof a.getDerivedStateFromProps&&"function"!==typeof this._instance.getSnapshotBeforeUpdate&&("function"===typeof this._instance.componentWillUpdate&&this._instance.componentWillUpdate(b,f,e),"function"===typeof this._instance.UNSAFE_componentWillUpdate&&this._instance.UNSAFE_componentWillUpdate(b,f,e));this._instance.context=e;this._instance.props=b;this._instance.state=f;this._newState=null;g&&(this._rendered=
31
+ this._instance.render())};return a}();t.createRenderer=function(){return new t};e=(e={default:t},t)||e;return e.default||e});