amis-rpc-design/node_modules/react-redux/dist/react-redux.min.js

19 lines
16 KiB
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRedux={},e.React,e.ReactDOM)}(this,(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=n(t),c=o(t);function s(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}var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=u.default.useState,f=u.default.useEffect,l=u.default.useLayoutEffect,p=u.default.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var y="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,u=n[1];return l((function(){o.value=r,o.getSnapshot=t,d(o)&&u({inst:o})}),[e,r,t]),f((function(){return d(o)&&u({inst:o}),e((function(){d(o)&&u({inst:o})}))}),[e]),p(r),r},m={useSyncExternalStore:void 0!==u.default.useSyncExternalStore?u.default.useSyncExternalStore:y},b=s((function(e){e.exports=m}));var S="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},v=b.useSyncExternalStore,h=u.default.useRef,g=u.default.useEffect,P=u.default.useMemo,w=u.default.useDebugValue,x={useSyncExternalStoreWithSelector:function(e,t,r,n,o){var u=h(null);if(null===u.current){var c={hasValue:!1,value:null};u.current=c}else c=u.current;u=P((function(){function e(e){if(!a){if(a=!0,u=e,e=n(e),void 0!==o&&c.hasValue){var t=c.value;if(o(t,e))return s=t}return s=e}if(t=s,S(u,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(u=e,s=r)}var u,s,a=!1,i=void 0===r?null:r;return[function(){return e(t())},null===i?void 0:function(){return e(i())}]}),[t,r,n,o]);var s=v(e,u[0],u[1]);return g((function(){c.hasValue=!0,c.value=s}),[s]),w(s),s}},O=s((function(e){e.exports=x}));let $=function(e){e()};const C=()=>$,M=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function j(){var e;if(!c.createContext)return{};const t=null!=(e=E[M])?e:E[M]=new Map;let r=t.get(c.createContext);return r||(r=c.createContext(null),t.set(c.createContext,r)),r}const R=j();function T(e=R){return function(){return t.useContext(e)}}const q=T(),k=()=>{throw Error("uSES not initialized!")};let N=k;const D=(e,t)=>e===t;function F(e=R){const r=e===R?q:T(e);return function(e,n={}){const{equalityFn:o=D,stabilityCheck:u}="function"==typeof n?{equalityFn:n}:n,{store:c,subscription:s,getServerState:a,stabilityCheck:i}=r();t.useRef(!0);const f=t.useCallback({[e.name]:t=>e(t)}[e.name],[e,i,u]),l=N(s.addNestedSub,c.getState,a||c.getState,f,o);return t.useDebugValue(l),l}}const _=F();function L(){return(L=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 z(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 V="function"==typeof Symbol&&Symbol.for,W=V?Symbol.for("react.element"):60103,U=V?Symbol.for("react.portal"):60106,H=V?Symbol.for("react.fragment"):60107,A=V?Symbol.for("react.strict_mode"):60108,I=V?Symbol.for("react.profiler"):60114,B=V?Symbol.for("react.provider"):60109,G=V?Symbol.for("react.context"):60110,J=V?Symbol.for("react.async_mode"):60111,K=V?Symbol.for("react.concurrent_mode"):60111,Q=V?Symbol.for("react.forward_ref"):60112,X=V?Symbol.for("react.suspense"):60113,Y=V?Symbol.for("react.suspense_list"):60120,Z=V?Symbol.for("react.memo"):60115,ee=V?Symbol.for("react.lazy"):60116,te=V?Symbol.for("react.block"):60121,re=V?Symbol.for("react.fundamental"):60117,ne=V?Symbol.for("react.responder"):60118,oe=V?Symbol.for("react.scope"):60119;function ue(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case W:switch(e=e.type){case J:case K:case H:case I:case A:case X:return e;default:switch(e=e&&e.$$typeof){case G:case Q:case ee:case Z:case B:return e;default:return t}}case U:return t}}}function ce(e){return ue(e)===K}var se={AsyncMode:J,ConcurrentMode:K,ContextConsumer:G,ContextProvider:B,Element:W,ForwardRef:Q,Fragment:H,Lazy:ee,Memo:Z,Portal:U,Profiler:I,StrictMode:A,Suspense:X,isAsyncMode:function(e){return ce(e)||ue(e)===J},isConcurrentMode:ce,isContextConsumer:function(e){return ue(e)===G},isContextProvider:function(e){return ue(e)===B},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===W},isForwardRef:function(e){return ue(e)===Q},isFragment:function(e){return ue(e)===H},isLazy:function(e){return ue(e)===ee},isMemo:function(e){return ue(e)===Z},isPortal:function(e){return ue(e)===U},isProfiler:function(e){return ue(e)===I},isStrictMode:function(e){return ue(e)===A},isSuspense:function(e){return ue(e)===X},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===H||e===K||e===I||e===A||e===X||e===Y||"object"==typeof e&&null!==e&&(e.$$typeof===ee||e.$$typeof===Z||e.$$typeof===B||e.$$typeof===G||e.$$typeof===Q||e.$$typeof===re||e.$$typeof===ne||e.$$typeof===oe||e.$$typeof===te)},typeOf:ue},ae=s((function(e){e.exports=se})),ie={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},le={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pe={};function de(e){return ae.isMemo(e)?le:pe[e.$$typeof]||ie}pe[ae.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pe[ae.Memo]=le;var ye=Object.defineProperty,me=Object.getOwnPropertyNames,be=Object.getOwnPropertySymbols,Se=Object.getOwnPropertyDescriptor,ve=Object.getPrototypeOf,he=Object.prototype;var ge=function e(t,r,n){if("string"!=typeof r){if(he){var o=ve(r);o&&o!==he&&e(t,o,n)}var u=me(r);be&&(u=u.concat(be(r)));for(var c=de(t),s=de(r),a=0;u.length>a;++a){var i=u[a];if(!(fe[i]||n&&n[i]||s&&s[i]||c&&c[i])){var f=Se(r,i);try{ye(t,i,f)}catch(e){}}}}return t},Pe=Symbol.for("react.element"),we=Symbol.for("react.portal"),xe=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),$e=Symbol.for("react.profiler"),Ce=Symbol.for("react.provider"),Me=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),je=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),qe=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),De=Symbol.for("react.module.reference");
/**
* @license React
* 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.
*/function Fe(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Pe:switch(e=e.type){case xe:case $e:case Oe:case Re:case Te:return e;default:switch(e=e&&e.$$typeof){case Ee:case Me:case je:case ke:case qe:case Ce:return e;default:return t}}case we:return t}}}var _e={ContextConsumer:Me,ContextProvider:Ce,Element:Pe,ForwardRef:je,Fragment:xe,Lazy:ke,Memo:qe,Portal:we,Profiler:$e,StrictMode:Oe,Suspense:Re,SuspenseList:Te,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return Fe(e)===Me},isContextProvider:function(e){return Fe(e)===Ce},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Pe},isForwardRef:function(e){return Fe(e)===je},isFragment:function(e){return Fe(e)===xe},isLazy:function(e){return Fe(e)===ke},isMemo:function(e){return Fe(e)===qe},isPortal:function(e){return Fe(e)===we},isProfiler:function(e){return Fe(e)===$e},isStrictMode:function(e){return Fe(e)===Oe},isSuspense:function(e){return Fe(e)===Re},isSuspenseList:function(e){return Fe(e)===Te},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===xe||e===$e||e===Oe||e===Re||e===Te||e===Ne||"object"==typeof e&&null!==e&&(e.$$typeof===ke||e.$$typeof===qe||e.$$typeof===Ce||e.$$typeof===Me||e.$$typeof===je||e.$$typeof===De||void 0!==e.getModuleId)},typeOf:Fe},Le=s((function(e){e.exports=_e}));const ze=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ve(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:u,areStatePropsEqual:c}){let s,a,i,f,l,p=!1;function d(p,d){const y=!u(d,a),m=!o(p,s,d,a);return s=p,a=d,y&&m?(i=e(s,a),t.dependsOnOwnProps&&(f=t(n,a)),l=r(i,f,a),l):y?(e.dependsOnOwnProps&&(i=e(s,a)),t.dependsOnOwnProps&&(f=t(n,a)),l=r(i,f,a),l):m?function(){const t=e(s,a),n=!c(t,i);return i=t,n&&(l=r(i,f,a)),l}():l}return function(o,u){return p?d(o,u):(s=o,a=u,i=e(s,a),f=t(n,a),l=r(i,f,a),p=!0,l)}}function We(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function Ue(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function He(e,t){return function(t,{}){const r=function(e,t){return r.mapToProps(e,r.dependsOnOwnProps?t:void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Ue(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Ue(o),o=r(t,n)),o},r}}function Ae(e,t){return(r,n)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Ie(e,t,r){return L({},r,e,t)}const Be={notify(){},get:()=>[]};function Ge(e,t){let r,n=Be;function o(){c.onStateChange&&c.onStateChange()}function u(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){const e=C();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let 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)}}}}())}const c={addNestedSub:function(e){return u(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return!!r},trySubscribe:u,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=Be)},getListeners:()=>n};return c}const Je=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?c.useLayoutEffect:c.useEffect;function Ke(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Qe(e,t){if(Ke(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;r.length>n;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Ke(e[r[n]],t[r[n]]))return!1;return!0}const Xe=["reactReduxForwardedRef"];let Ye=k;const Ze=[null,null];function et(e,t,r,n,o,u){e.current=n,r.current=!1,o.current&&(o.current=null,u())}function tt(e,t){return e===t}function rt(