LocalCDN-Firefox-Chrome-Brave/resources/react-redux/7.2.3/react-redux.min.jsm

10 lines
14 KiB
JavaScript
Raw Normal View History

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","redux","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRedux={},e.React,e.Redux,e.ReactDOM)}(this,(function(e,t,r,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(t);function a(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function i(){}function c(){}c.resetWarningCache=i;a((function(e){e.exports=function(){function e(e,t,r,n,o,u){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==u){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:i};return r.PropTypes=r,r}()}));var s=u.default.createContext(null);var f=function(e){e()},p=function(){return f},l={notify:function(){}};var d=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=l,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return!!this.unsubscribe},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=p(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}(),y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function v(){return(v=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;u.length>n;n++)0>t.indexOf(r=u[n])&&(o[r]=e[r]);return o}
/** @license React v16.13.1
* react-is.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.
*/var b="function"==typeof Symbol&&Symbol.for,h=b?Symbol.for("react.element"):60103,S=b?Symbol.for("react.portal"):60106,P=b?Symbol.for("react.fragment"):60107,g=b?Symbol.for("react.strict_mode"):60108,O=b?Symbol.for("react.profiler"):60114,w=b?Symbol.for("react.provider"):60109,C=b?Symbol.for("react.context"):60110,x=b?Symbol.for("react.async_mode"):60111,E=b?Symbol.for("react.concurrent_mode"):60111,T=b?Symbol.for("react.forward_ref"):60112,M=b?Symbol.for("react.suspense"):60113,R=b?Symbol.for("react.suspense_list"):60120,$=b?Symbol.for("react.memo"):60115,j=b?Symbol.for("react.lazy"):60116,N=b?Symbol.for("react.block"):60121,q=b?Symbol.for("react.fundamental"):60117,D=b?Symbol.for("react.responder"):60118,_=b?Symbol.for("react.scope"):60119;function F(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case h:switch(e=e.type){case x:case E:case P:case O:case g:case M:return e;default:switch(e=e&&e.$$typeof){case C:case T:case j:case $:case w:return e;default:return t}}case S:return t}}}function k(e){return F(e)===E}var W={AsyncMode:x,ConcurrentMode:E,ContextConsumer:C,ContextProvider:w,Element:h,ForwardRef:T,Fragment:P,Lazy:j,Memo:$,Portal:S,Profiler:O,StrictMode:g,Suspense:M,isAsyncMode:function(e){return k(e)||F(e)===x},isConcurrentMode:k,isContextConsumer:function(e){return F(e)===C},isContextProvider:function(e){return F(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===h},isForwardRef:function(e){return F(e)===T},isFragment:function(e){return F(e)===P},isLazy:function(e){return F(e)===j},isMemo:function(e){return F(e)===$},isPortal:function(e){return F(e)===S},isProfiler:function(e){return F(e)===O},isStrictMode:function(e){return F(e)===g},isSuspense:function(e){return F(e)===M},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===P||e===E||e===O||e===g||e===M||e===R||"object"==typeof e&&null!==e&&(e.$$typeof===j||e.$$typeof===$||e.$$typeof===w||e.$$typeof===C||e.$$typeof===T||e.$$typeof===q||e.$$typeof===D||e.$$typeof===_||e.$$typeof===N)},typeOf:F},H=a((function(e){e.exports=W})),U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L={};function z(e){return H.isMemo(e)?I:L[e.$$typeof]||U}L[H.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},L[H.Memo]=I;var K=Object.defineProperty,V=Object.getOwnPropertyNames,B=Object.getOwnPropertySymbols,Y=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,J=Object.prototype;var Q=function e(t,r,n){if("string"!=typeof r){if(J){var o=G(r);o&&o!==J&&e(t,o,n)}var u=V(r);B&&(u=u.concat(B(r)));for(var a=z(t),i=z(r),c=0;u.length>c;++c){var s=u[c];if(!(A[s]||n&&n[s]||i&&i[s]||a&&a[s])){var f=Y(r,s);try{K(t,s,f)}catch(e){}}}}return t},X=[],Z=[null,null];function ee(e,t){return[t.payload,e[1]+1]}function te(e,t,r){y((function(){return e.apply(void 0,t)}),r)}function re(e,t,r,n,o,u,a){e.current=n,t.current=o,r.current=!1,u.current&&(u.current=null,a())}function ne(e,t,r,n,o,u,a,i,c,s){if(e){var f=!1,p=null,l=function(){if(!f){var e,r,l=t.getState();try{e=n(l,o.current)}catch(e){r=e,p=e}r||(p=null),e===u.current?a.current||c():(u.current=e,i.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=l,r.trySubscribe(),l();return function(){if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}}var oe=function(){return[null,0]};function ue(e,r){void 0===r&&(r={});var n=r.getDisplayName,o=void 0===n?function(e){return"ConnectAdvanced("+e+")"}:n,a=r.methodName,i=void 0===a?"connectAdvanced":a,c=r.renderCountProp,f=void 0===c?void 0:c,p=r.shouldHandleStateChanges,l=void 0===p||p,y=r.storeKey,b=void 0===y?"store":y,h=r.forwardRef,S=void 0!==h&&h,P=r.context,g=void 0===P?s:P,O=m(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey