mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-09 00:18:42 +01:00
19 lines
15 KiB
JavaScript
19 lines
15 KiB
JavaScript
!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,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);function u(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var c="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.default.useState,a=o.default.useEffect,i=o.default.useLayoutEffect,f=o.default.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!c(e,n)}catch(e){return!0}}var p="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return i((function(){o.value=n,o.getSnapshot=t,l(o)&&u({inst:o})}),[e,n,t]),a((function(){return l(o)&&u({inst:o}),e((function(){l(o)&&u({inst:o})}))}),[e]),f(n),n},d={useSyncExternalStore:void 0!==o.default.useSyncExternalStore?o.default.useSyncExternalStore:p},y=u((function(e){e.exports=d}));var m="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},b=y.useSyncExternalStore,S=o.default.useRef,v=o.default.useEffect,h=o.default.useMemo,g=o.default.useDebugValue,P={useSyncExternalStoreWithSelector:function(e,t,n,r,o){var u=S(null);if(null===u.current){var c={hasValue:!1,value:null};u.current=c}else c=u.current;u=h((function(){function e(e){if(!a){if(a=!0,u=e,e=r(e),void 0!==o&&c.hasValue){var t=c.value;if(o(t,e))return s=t}return s=e}if(t=s,m(u,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(u=e,s=n)}var u,s,a=!1,i=void 0===n?null:n;return[function(){return e(t())},null===i?void 0:function(){return e(i())}]}),[t,n,r,o]);var s=b(e,u[0],u[1]);return v((function(){c.hasValue=!0,c.value=s}),[s]),g(s),s}},w=u((function(e){e.exports=P}));let x=function(e){e()};const $=()=>x,O=Symbol.for("react-redux-context-"+t.version),C=globalThis;const E=new Proxy({},new Proxy({},{get(e,n){const r=function(){let e=C[O];return e||(e=t.createContext(null),C[O]=e),e}();return(e,...t)=>Reflect[n](r,...t)}}));function M(e=E){return function(){return t.useContext(e)}}const j=M(),R=()=>{throw Error("uSES not initialized!")};let T=R;const q=(e,t)=>e===t;function N(e=E){const n=e===E?j:M(e);return function(e,r={}){const{equalityFn:o=q,stabilityCheck:u}="function"==typeof r?{equalityFn:r}:r,{store:c,subscription:s,getServerState:a,stabilityCheck:i}=n();t.useRef(!0);const f=t.useCallback({[e.name]:t=>e(t)}[e.name],[e,i,u]),l=T(s.addNestedSub,c.getState,a||c.getState,f,o);return t.useDebugValue(l),l}}const k=N();function F(){return(F=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function D(e,t){if(null==e)return{};var n,r,o={},u=Object.keys(e);for(r=0;u.length>r;r++)0>t.indexOf(n=u[r])&&(o[n]=e[n]);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 _="function"==typeof Symbol&&Symbol.for,L=_?Symbol.for("react.element"):60103,V=_?Symbol.for("react.portal"):60106,z=_?Symbol.for("react.fragment"):60107,W=_?Symbol.for("react.strict_mode"):60108,U=_?Symbol.for("react.profiler"):60114,H=_?Symbol.for("react.provider"):60109,A=_?Symbol.for("react.context"):60110,I=_?Symbol.for("react.async_mode"):60111,B=_?Symbol.for("react.concurrent_mode"):60111,G=_?Symbol.for("react.forward_ref"):60112,J=_?Symbol.for("react.suspense"):60113,K=_?Symbol.for("react.suspense_list"):60120,Q=_?Symbol.for("react.memo"):60115,X=_?Symbol.for("react.lazy"):60116,Y=_?Symbol.for("react.block"):60121,Z=_?Symbol.for("react.fundamental"):60117,ee=_?Symbol.for("react.responder"):60118,te=_?Symbol.for("react.scope"):60119;function ne(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case L:switch(e=e.type){case I:case B:case z:case U:case W:case J:return e;default:switch(e=e&&e.$$typeof){case A:case G:case X:case Q:case H:return e;default:return t}}case V:return t}}}function re(e){return ne(e)===B}var oe={AsyncMode:I,ConcurrentMode:B,ContextConsumer:A,ContextProvider:H,Element:L,ForwardRef:G,Fragment:z,Lazy:X,Memo:Q,Portal:V,Profiler:U,StrictMode:W,Suspense:J,isAsyncMode:function(e){return re(e)||ne(e)===I},isConcurrentMode:re,isContextConsumer:function(e){return ne(e)===A},isContextProvider:function(e){return ne(e)===H},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===L},isForwardRef:function(e){return ne(e)===G},isFragment:function(e){return ne(e)===z},isLazy:function(e){return ne(e)===X},isMemo:function(e){return ne(e)===Q},isPortal:function(e){return ne(e)===V},isProfiler:function(e){return ne(e)===U},isStrictMode:function(e){return ne(e)===W},isSuspense:function(e){return ne(e)===J},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===z||e===B||e===U||e===W||e===J||e===K||"object"==typeof e&&null!==e&&(e.$$typeof===X||e.$$typeof===Q||e.$$typeof===H||e.$$typeof===A||e.$$typeof===G||e.$$typeof===Z||e.$$typeof===ee||e.$$typeof===te||e.$$typeof===Y)},typeOf:ne},ue=u((function(e){e.exports=oe})),ce={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},se={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={};function fe(e){return ue.isMemo(e)?ae:ie[e.$$typeof]||ce}ie[ue.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ie[ue.Memo]=ae;var le=Object.defineProperty,pe=Object.getOwnPropertyNames,de=Object.getOwnPropertySymbols,ye=Object.getOwnPropertyDescriptor,me=Object.getPrototypeOf,be=Object.prototype;var Se=function e(t,n,r){if("string"!=typeof n){if(be){var o=me(n);o&&o!==be&&e(t,o,r)}var u=pe(n);de&&(u=u.concat(de(n)));for(var c=fe(t),s=fe(n),a=0;u.length>a;++a){var i=u[a];if(!(se[i]||r&&r[i]||s&&s[i]||c&&c[i])){var f=ye(n,i);try{le(t,i,f)}catch(e){}}}}return t},ve=Symbol.for("react.element"),he=Symbol.for("react.portal"),ge=Symbol.for("react.fragment"),Pe=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),$e=Symbol.for("react.context"),Oe=Symbol.for("react.server_context"),Ce=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),Te=Symbol.for("react.offscreen"),qe=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 Ne(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ve:switch(e=e.type){case ge:case we:case Pe:case Ee:case Me:return e;default:switch(e=e&&e.$$typeof){case Oe:case $e:case Ce:case Re:case je:case xe:return e;default:return t}}case he:return t}}}var ke={ContextConsumer:$e,ContextProvider:xe,Element:ve,ForwardRef:Ce,Fragment:ge,Lazy:Re,Memo:je,Portal:he,Profiler:we,StrictMode:Pe,Suspense:Ee,SuspenseList:Me,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return Ne(e)===$e},isContextProvider:function(e){return Ne(e)===xe},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ve},isForwardRef:function(e){return Ne(e)===Ce},isFragment:function(e){return Ne(e)===ge},isLazy:function(e){return Ne(e)===Re},isMemo:function(e){return Ne(e)===je},isPortal:function(e){return Ne(e)===he},isProfiler:function(e){return Ne(e)===we},isStrictMode:function(e){return Ne(e)===Pe},isSuspense:function(e){return Ne(e)===Ee},isSuspenseList:function(e){return Ne(e)===Me},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===ge||e===we||e===Pe||e===Ee||e===Me||e===Te||"object"==typeof e&&null!==e&&(e.$$typeof===Re||e.$$typeof===je||e.$$typeof===xe||e.$$typeof===$e||e.$$typeof===Ce||e.$$typeof===qe||void 0!==e.getModuleId)},typeOf:Ne},Fe=u((function(e){e.exports=ke}));const De=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _e(e,t,n,r,{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(r,a)),l=n(i,f,a),l):y?(e.dependsOnOwnProps&&(i=e(s,a)),t.dependsOnOwnProps&&(f=t(r,a)),l=n(i,f,a),l):m?function(){const t=e(s,a),r=!c(t,i);return i=t,r&&(l=n(i,f,a)),l}():l}return function(o,u){return p?d(o,u):(s=o,a=u,i=e(s,a),f=t(r,a),l=n(i,f,a),p=!0,l)}}function Le(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Ve(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function ze(e,t){return function(t,{}){const n=function(e,t){return n.mapToProps(e,n.dependsOnOwnProps?t:void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=Ve(e);let o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=Ve(o),o=n(t,r)),o},n}}function We(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Ue(e,t,n){return F({},n,e,t)}const He={notify(){},get:()=>[]};function Ae(e,t){let n,r=He;function o(){c.onStateChange&&c.onStateChange()}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=$();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const c={addNestedSub:function(e){return u(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return!!n},trySubscribe:u,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=He)},getListeners:()=>r};return c}const Ie=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?t.useLayoutEffect:t.useEffect;function Be(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ge(e,t){if(Be(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;n.length>r;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Be(e[n[r]],t[n[r]]))return!1;return!0}const Je=["reactReduxForwardedRef"];let Ke=R;const Qe=[null,null];function Xe(e,t,n,r,o,u){e.current=r,n.current=!1,o.current&&(o.current=null,u())}function Ye(e,t){return e===t}function Ze(e=E){const t=e===E?j:M(e);return function(){const{store:e}=t();return e}}const et=Ze();function tt(e=E){const t=e===E?et:Ze(e);return function(){return t().dispatch}}const nt=tt();T=w.useSyncExternalStoreWithSelector,(e=>{Ke=e})(y.useSyncExternalStore),x=n.unstable_batchedUpdates,Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return n.unstable_batchedUpdates}}),e.Provider=function({store:e,context:n,children:r,serverState:u,stabilityCheck:c="once",noopCheck:s="once"}){const a=t.useMemo((()=>{const t=Ae(e);return{store:e,subscription:t,getServerState:u?()=>u:void 0,stabilityCheck:c,noopCheck:s}}),[e,u,c,s]),i=t.useMemo((()=>e.getState()),[e]);return Ie((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),i!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,i]),o.default.createElement((n||E).Provider,{value:a},r)},e.ReactReduxContext=E,e.connect=function(e,n,r,{areStatesEqual:u=Ye,areOwnPropsEqual:c=Ge,areStatePropsEqual:s=Ge,areMergedPropsEqual:a=Ge,forwardRef:i=!1,context:f=E}={}){const l=f,p=function(e){return e?"function"==typeof e?ze(e):We(e,"mapStateToProps"):Le((()=>({})))}(e),d=function(e){return e&&"object"==typeof e?Le((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?ze(e):We(e,"mapDispatchToProps"):Le((e=>({dispatch:e})))}(n),y=function(e){return e?"function"==typeof e?function(e){return function(t,{areMergedPropsEqual:n}){let r,o=!1;return function(t,u,c){const s=e(t,u,c);return o?n(s,r)||(r=s):(o=!0,r=s),r}}}(e):We(e,"mergeProps"):()=>Ue}(r),m=!!e;return e=>{const n=e.displayName||e.name||"Component",r=`Connect(${n})`,f={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:n,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:d,initMergeProps:y,areStatesEqual:u,areStatePropsEqual:s,areOwnPropsEqual:c,areMergedPropsEqual:a};function b(n){const[r,u,c]=t.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=D(n,Je);return[n.context,e,t]}),[n]),s=t.useMemo((()=>r&&r.Consumer&&Fe.isContextConsumer(o.default.createElement(r.Consumer,null))?r:l),[r,l]),a=t.useContext(s),i=!!n.store&&!!n.store.getState&&!!n.store.dispatch,p=i?n.store:a.store,d=!!a&&!!a.store?a.getServerState:p.getState,y=t.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,u=D(t,De);return _e(n(e,u),r(e,u),o(e,u),e,u)}(p.dispatch,f)),[p]),[b,S]=t.useMemo((()=>{if(!m)return Qe;const e=Ae(p,i?void 0:a.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,i,a]),v=t.useMemo((()=>i?a:F({},a,{subscription:b})),[i,a,b]),h=t.useRef(),g=t.useRef(c),P=t.useRef(),w=t.useRef(!1);t.useRef(!1);const x=t.useRef(!1),$=t.useRef();Ie((()=>(x.current=!0,()=>{x.current=!1})),[]);const O=t.useMemo((()=>()=>P.current&&c===g.current?P.current:y(p.getState(),c)),[p,c]),C=t.useMemo((()=>e=>b?function(e,t,n,r,o,u,c,s,a,i,f){if(!e)return()=>{};let l=!1,p=null;const d=()=>{if(l||!s.current)return;const e=t.getState();let n,d;try{n=r(e,o.current)}catch(e){d=e,p=e}d||(p=null),n===u.current?c.current||i():(u.current=n,a.current=n,c.current=!0,f())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,b,y,g,h,w,x,P,S,e):()=>{}),[b]);var E,M,j;let R;E=Xe,M=[g,h,w,c,P,S],Ie((()=>E(...M)),j);try{R=Ke(C,O,d?()=>y(d(),c):O)}catch(e){throw $.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${$.current.stack}\n\n`),e}Ie((()=>{$.current=void 0,P.current=void 0,h.current=R}));const T=t.useMemo((()=>o.default.createElement(e,F({},R,{ref:u}))),[u,e,R]);return t.useMemo((()=>m?o.default.createElement(s.Provider,{value:v},T):T),[s,T,v])}const S=o.default.memo(b);if(S.WrappedComponent=e,S.displayName=b.displayName=r,i){const t=o.default.forwardRef((function(e,t){return o.default.createElement(S,F({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,Se(t,e)}return Se(S,e)}},e.createDispatchHook=tt,e.createSelectorHook=N,e.createStoreHook=Ze,e.shallowEqual=Ge,e.useDispatch=nt,e.useSelector=k,e.useStore=et,Object.defineProperty(e,"__esModule",{value:!0})}));
|