fastevent 1.1.2 → 2.0.0
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.
- package/dist/devTools.js +2 -2
- package/dist/devTools.js.map +1 -1
- package/dist/devTools.mjs +2 -2
- package/dist/devTools.mjs.map +1 -1
- package/dist/index.d.mts +286 -57
- package/dist/index.d.ts +286 -57
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +64 -50
- package/readme.md +517 -50
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.github/workflows/publish.yaml +0 -50
- package/.prettierrc.js +0 -20
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -18
- package/CHANGELOG.md +0 -54
- package/LICENSE +0 -21
- package/bench.png +0 -0
- package/dist/devTools.d.mts +0 -543
- package/dist/devTools.d.ts +0 -543
- package/example/README.md +0 -54
- package/example/eslint.config.js +0 -28
- package/example/index.html +0 -13
- package/example/package.json +0 -29
- package/example/pnpm-lock.yaml +0 -2047
- package/example/public/vite.svg +0 -1
- package/example/src/App.css +0 -42
- package/example/src/App.tsx +0 -60
- package/example/src/assets/react.svg +0 -1
- package/example/src/index.css +0 -68
- package/example/src/main.tsx +0 -10
- package/example/src/myEvent.ts +0 -32
- package/example/src/vite-env.d.ts +0 -1
- package/example/tsconfig.app.json +0 -26
- package/example/tsconfig.json +0 -7
- package/example/tsconfig.node.json +0 -24
- package/example/vite.config.ts +0 -7
- package/packages/native/index.ts +0 -1
- package/packages/turbo/.zig-cache/h/271c82d991949fd7788fd5451f0ca834.txt +0 -0
- package/packages/turbo/.zig-cache/h/timestamp +0 -0
- package/packages/turbo/.zig-cache/o/ebd7ddab8ffe003267120d598aecce68/dependencies.zig +0 -2
- package/packages/turbo/.zig-cache/z/c8114b040daa461a9e2eabd0357554a4 +0 -0
- package/packages/turbo/build.zig +0 -60
- package/packages/turbo/examples/basic.zig +0 -107
- package/packages/turbo/src/event.zig +0 -251
- package/packages/turbo/src/index.zig +0 -70
- package/packages/turbo/src/scope.zig +0 -104
- package/packages/turbo/src/types.zig +0 -88
- package/packages/turbo/src/utils.zig +0 -171
- package/readme_cn.md +0 -491
- package/src/__benchmarks__/index.ts +0 -3
- package/src/__benchmarks__/multi-level.ts +0 -40
- package/src/__benchmarks__/sample.ts +0 -40
- package/src/__benchmarks__/wildcard.ts +0 -41
- package/src/__tests__/emit.test.ts +0 -106
- package/src/__tests__/emitAsync.test.ts +0 -64
- package/src/__tests__/isPathMatched.test.ts +0 -205
- package/src/__tests__/many.test.ts +0 -22
- package/src/__tests__/meta.test.ts +0 -28
- package/src/__tests__/off.test.ts +0 -214
- package/src/__tests__/onany.test.ts +0 -212
- package/src/__tests__/once.test.ts +0 -70
- package/src/__tests__/retain.test.ts +0 -66
- package/src/__tests__/scope.test.ts +0 -110
- package/src/__tests__/types.test.ts +0 -145
- package/src/__tests__/waitFor.test.ts +0 -116
- package/src/__tests__/wildcard.test.ts +0 -185
- package/src/devTools.ts +0 -166
- package/src/event.ts +0 -741
- package/src/index.ts +0 -3
- package/src/scope.ts +0 -130
- package/src/types.ts +0 -69
- package/src/utils/WeakObjectMap.ts +0 -64
- package/src/utils/isPathMatched.ts +0 -40
- package/src/utils/removeItem.ts +0 -16
- package/tsconfig.json +0 -104
- package/tsup.config.ts +0 -30
package/dist/devTools.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
exports.FlexEventDevTools=
|
|
1
|
+
'use strict';var $=Object.defineProperty;var n=(t,e)=>$(t,"name",{value:e,configurable:true});function u(t){return `Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}n(u,"formatProdErrorMessage");var A=typeof Symbol=="function"&&Symbol.observable||"@@observable",v=A,m=n(()=>Math.random().toString(36).substring(7).split("").join("."),"randomString"),V={INIT:`@@redux/INIT${m()}`,REPLACE:`@@redux/REPLACE${m()}`,PROBE_UNKNOWN_ACTION:n(()=>`@@redux/PROBE_UNKNOWN_ACTION${m()}`,"PROBE_UNKNOWN_ACTION")},S=V;function k(t){if(typeof t!="object"||t===null)return false;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}n(k,"isPlainObject");function j(t){if(t===void 0)return "undefined";if(t===null)return "null";let e=typeof t;switch(e){case "boolean":case "string":case "number":case "symbol":case "function":return e}if(Array.isArray(t))return "array";if(M(t))return "date";if(C(t))return "error";let r=L(t);switch(r){case "Symbol":case "Promise":case "WeakMap":case "WeakSet":case "Map":case "Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}n(j,"miniKindOf");function L(t){return typeof t.constructor=="function"?t.constructor.name:null}n(L,"ctorName");function C(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}n(C,"isError");function M(t){return t instanceof Date?true:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}n(M,"isDate");function h(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=j(t)),e}n(h,"kindOf");function x(t,e,r){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?u(2):`Expected the root reducer to be a function. Instead, received: '${h(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?u(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?u(1):`Expected the enhancer to be a function. Instead, received: '${h(r)}'`);return r(x)(t,e)}let s=t,o=e,p=new Map,f=p,c=0,a=false;function g(){f===p&&(f=new Map,p.forEach((i,d)=>{f.set(d,i);}));}n(g,"ensureCanMutateNextListeners");function b(){if(a)throw new Error(process.env.NODE_ENV==="production"?u(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}n(b,"getState");function N(i){if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?u(4):`Expected the listener to be a function. Instead, received: '${h(i)}'`);if(a)throw new Error(process.env.NODE_ENV==="production"?u(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let d=true;g();let l=c++;return f.set(l,i),n(function(){if(d){if(a)throw new Error(process.env.NODE_ENV==="production"?u(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");d=false,g(),f.delete(l),p=null;}},"unsubscribe")}n(N,"subscribe");function E(i){if(!k(i))throw new Error(process.env.NODE_ENV==="production"?u(7):`Actions must be plain objects. Instead, the actual type was: '${h(i)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof i.type>"u")throw new Error(process.env.NODE_ENV==="production"?u(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof i.type!="string")throw new Error(process.env.NODE_ENV==="production"?u(17):`Action "type" property must be a string. Instead, the actual type was: '${h(i.type)}'. Value was: '${i.type}' (stringified)`);if(a)throw new Error(process.env.NODE_ENV==="production"?u(9):"Reducers may not dispatch actions.");try{a=!0,o=s(o,i);}finally{a=false;}return (p=f).forEach(l=>{l();}),i}n(E,"dispatch");function T(i){if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?u(10):`Expected the nextReducer to be a function. Instead, received: '${h(i)}`);s=i,E({type:S.REPLACE});}n(T,"replaceReducer");function I(){let i=N;return {subscribe(d){if(typeof d!="object"||d===null)throw new Error(process.env.NODE_ENV==="production"?u(11):`Expected the observer to be an object. Instead, received: '${h(d)}'`);function l(){let O=d;O.next&&O.next(b());}return n(l,"observeState"),l(),{unsubscribe:i(l)}},[v](){return this}}}return n(I,"observable"),E({type:S.INIT}),{dispatch:E,subscribe:N,getState:b,replaceReducer:T,[v]:I}}n(x,"createStore");function D(t,e,r){return x(t,e,r)}n(D,"legacy_createStore");var y=class{static{n(this,"WeakObjectMap");}map;finalizationRegistry;constructor(){this.map=new Map,this.finalizationRegistry=new FinalizationRegistry(e=>{this.map.delete(e);});}set(e,r){let s=new WeakRef(r);this.map.set(e,s),this.finalizationRegistry.register(r,e);}get(e){let r=this.map.get(e);return r?r.deref():void 0}delete(e){return this.map.delete(e)}has(e){let r=this.map.get(e);return r?r.deref()!==void 0:false}};var P={};function _(t){return {messageCount:0,listenerCount:t.listenerCount,retainMessageCount:t.retainedMessages.size}}n(_,"getDefaultFastEventState");var w=class{static{n(this,"FlexEventDevTools");}reduxStore;_installed=false;fastEvents=new y;constructor(){this.install();}add(e){this.fastEvents.set(e.id,e),e.options.onAddListener=(r,s)=>{this.reduxStore.dispatch({type:"__ADD_LISTENER__",event:r.join("/"),listener:s.name||"anonymous",emitter:e.id});},e.options.onRemoveListener=(r,s)=>{this.reduxStore.dispatch({type:"__REMOVE_LISTENER__",event:r.join("/"),listener:s.name||"anonymous",emitter:e.id});},e.options.onClearListeners=()=>{this.reduxStore.dispatch({type:"__CLEAR_LISTENERS__",emitter:e.id});},e.options.onAfterExecuteListener=(r,s,o)=>{let p=s.map(c=>c instanceof Error?`Error(${c.message})`:c),f=o.reduce((c,a)=>(c.push(...a.__listeners),c),[]).map((c,a)=>`${c[0].name||"anonymous"}(${c[2]}) -> ${p[a]}`);console.log(`FastEvent<\x1B[31m${r.type}\x1B[30m> is emit, listeners:`,o),this.reduxStore.dispatch({type:r.type,payload:r.payload,meta:r.meta,emitter:e.id,returns:f});},this.reduxStore.dispatch({type:"__ADD_FASTEVENT__",emitter:e.id});}remove(e){this.fastEvents.has(e.id)&&this.fastEvents.delete(e.id);}reducer(e=P,r){if(r.type.startsWith("@@"))return e;let s=this.fastEvents.get(r.emitter);if(r.type==="__ADD_FASTEVENT__")return {...e,[r.emitter]:_(s)};if(r.type==="__ADD_LISTENER__"){let o=e[r.emitter]||_(s);return o.listenerCount++,{...e,[r.emitter]:{...o}}}else if(r.type==="__REMOVE_LISTENER__"){let o=e[r.emitter];return o?(o.listenerCount++,{...e,[r.emitter]:{...o}}):e}else if(r.type==="__CLEAR_LISTENERS__"){let o=e[r.emitter];return o?(o.listenerCount++,{...e,[r.emitter]:_(s)}):e}else {let o=e[r.emitter];return o?(o.messageCount++,o.listenerCount=s.listenerCount,o.retainMessageCount=s.retainedMessages.size,{...e,[r.emitter]:{...o}}):e}}install(){this._installed||(this.reduxStore=D(this.reducer.bind(this),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()),this._installed=true,console.info("%c FlexEventDevTools installed. Please open <Redux devtools> to view. %c","color:red;",""));}};function K(){globalThis.__FLEXEVENT_DEVTOOLS__||(globalThis.__FLEXEVENT_DEVTOOLS__=new w);}n(K,"install");K();
|
|
2
|
+
exports.FlexEventDevTools=w;exports.install=K;//# sourceMappingURL=devTools.js.map
|
|
3
3
|
//# sourceMappingURL=devTools.js.map
|
package/dist/devTools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/formatProdErrorMessage.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/symbol-observable.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/actionTypes.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/isPlainObject.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/kindOf.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/createStore.ts","../src/utils/WeakObjectMap.ts","../src/devTools.ts"],"names":["formatProdErrorMessage","code","__name","$$observable","symbol_observable_default","randomString","ActionTypes","actionTypes_default","isPlainObject","obj","proto","miniKindOf","val","type","isDate","isError","constructorName","ctorName","kindOf","typeOfVal","createStore","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","listenerIdCounter","isDispatching","ensureCanMutateNextListeners","listener","key","getState","subscribe","isSubscribed","listenerId","dispatch","action","replaceReducer","nextReducer","observable","outerSubscribe","observer","observeState","observerAsObserver","legacy_createStore","WeakObjectMap","constructor","map","finalizationRegistry","Map","FinalizationRegistry","delete","set","value","weakRef","WeakRef","register","get","deref","undefined","has","_WeakObjectMap","initialState","getDefaultFastEventState","instance","messageCount","listenerCount","retainMessageCount","retainedMessages","size","FlexEventDevTools","reduxStore","_installed","fastEvents","install","add","id","options","onAddListener","event","join","fastEventId","onRemoveListener","onClearListeners","onExecuteListener","message","returns","listeners","results","r","Error","sresults","name","reduce","pre","cur","index","console","log","payload","meta","remove","state","startsWith","eventState","bind","window","__REDUX_DEVTOOLS_EXTENSION__","info","_FlexEventDevTools","globalThis","__FLEXEVENT_DEVTOOLS__"],"mappings":"aAOO,IAAA,CAAA,CAAA,MAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,UAAA,CAAA,IAAA,CAAA,YAAA,CAAA,IAAA,CAAA,QAAA,CAAA,IAAA,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,YAAA,CAAA,IAAA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AA,UAAAA,CAAa,KAClByB,OAAQW,CAAAA,IAAAA,CAAK,2EAA4E,YAAc,CAAA,EAAA,GAC3G,CACJ,CAAA,CAnHatC,CAAAA,CAAAA,CAAAA,CAAAA,qBAAAA,IAAAA,CAAAA,CAANuC,EAqHA,SAASnC,GAAAA,CAEPoC,UAAAA,CAAWC,sBAAwBD,GAAAA,UAAAA,CAAWC,uBAAyB,IAAIzC,CAAAA,EACpF,CAHgBI,CAAAA,CAAAA,CAAAA,CAAAA,WAWhBA,CAAAA,EAAAA","file":"devTools.js","sourcesContent":["/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nexport function formatProdErrorMessage(code: number) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` + 'use the non-minified dev environment for full errors. ';\n}","declare global {\n interface SymbolConstructor {\n readonly observable: symbol;\n }\n}\nconst $$observable = /* #__PURE__ */(() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\nexport default $$observable;","/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\n\nconst randomString = () => Math.random().toString(36).substring(7).split('').join('.');\nconst ActionTypes = {\n INIT: `@@redux/INIT${/* #__PURE__ */randomString()}`,\n REPLACE: `@@redux/REPLACE${/* #__PURE__ */randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nexport default ActionTypes;","/**\n * @param obj The object to inspect.\n * @returns True if the argument appears to be a plain object.\n */\nexport default function isPlainObject(obj: any): obj is object {\n if (typeof obj !== 'object' || obj === null) return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}","// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nexport function miniKindOf(val: any): string {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n const type = typeof val;\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n const constructorName = ctorName(val);\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n }\n\n // other\n return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\nfunction ctorName(val: any): string | null {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\nfunction isError(val: any) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\nfunction isDate(val: any) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\nexport function kindOf(val: any) {\n let typeOfVal: string = typeof val;\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n return typeOfVal;\n}","import { formatProdErrorMessage as _formatProdErrorMessage13 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage12 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage11 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage10 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage9 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage8 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage7 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage6 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage5 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage4 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage3 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage2 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage } from \"src/utils/formatProdErrorMessage\";\nimport $$observable from './utils/symbol-observable';\nimport { Store, StoreEnhancer, Dispatch, Observer, ListenerCallback, UnknownIfNonSpecific } from './types/store';\nimport { Action } from './types/actions';\nimport { Reducer } from './types/reducers';\nimport ActionTypes from './utils/actionTypes';\nimport isPlainObject from './utils/isPlainObject';\nimport { kindOf } from './utils/kindOf';\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage2(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = (preloadedState as StoreEnhancer<Ext, StateExt>);\n preloadedState = undefined;\n }\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage3(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);\n }\n return enhancer(createStore)(reducer, (preloadedState as PreloadedState | undefined));\n }\n let currentReducer = reducer;\n let currentState: S | PreloadedState | undefined = (preloadedState as PreloadedState | undefined);\n let currentListeners: Map<number, ListenerCallback> | null = new Map();\n let nextListeners = currentListeners;\n let listenerIdCounter = 0;\n let isDispatching = false;\n\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = new Map();\n currentListeners.forEach((listener, key) => {\n nextListeners.set(key, listener);\n });\n }\n }\n\n /**\n * Reads the state tree managed by the store.\n *\n * @returns The current state tree of your application.\n */\n function getState(): S {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage4(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n return (currentState as S);\n }\n\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param listener A callback to be invoked on every dispatch.\n * @returns A function to remove this change listener.\n */\n function subscribe(listener: () => void) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage5(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage6(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n let isSubscribed = true;\n ensureCanMutateNextListeners();\n const listenerId = listenerIdCounter++;\n nextListeners.set(listenerId, listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage7(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n isSubscribed = false;\n ensureCanMutateNextListeners();\n nextListeners.delete(listenerId);\n currentListeners = null;\n };\n }\n\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n function dispatch(action: A) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage8(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);\n }\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage9(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n if (typeof action.type !== 'string') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage10(17) : `Action \"type\" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage11(9) : 'Reducers may not dispatch actions.');\n }\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n const listeners = currentListeners = nextListeners;\n listeners.forEach(listener => {\n listener();\n });\n return action;\n }\n\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param nextReducer The reducer for the store to use instead.\n */\n function replaceReducer(nextReducer: Reducer<S, A>): void {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage12(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);\n }\n currentReducer = ((nextReducer as unknown) as Reducer<S, A, PreloadedState>);\n\n // This action has a similar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n dispatch(({\n type: ActionTypes.REPLACE\n } as A));\n }\n\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n function observable() {\n const outerSubscribe = subscribe;\n return {\n /**\n * The minimal observable subscription method.\n * @param observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe(observer: unknown) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage13(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);\n }\n function observeState() {\n const observerAsObserver = (observer as Observer<S>);\n if (observerAsObserver.next) {\n observerAsObserver.next(getState());\n }\n }\n observeState();\n const unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe\n };\n },\n [$$observable]() {\n return this;\n }\n };\n }\n\n // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch(({\n type: ActionTypes.INIT\n } as A));\n const store = (({\n dispatch: (dispatch as Dispatch<A>),\n subscribe,\n getState,\n replaceReducer,\n [$$observable]: observable\n } as unknown) as Store<S, A, StateExt> & Ext);\n return store;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n return createStore(reducer, (preloadedState as any), enhancer);\n}","/**\n * 一个基于弱引用(WeakRef)的键值映射集合\n * \n * @template T - 值的类型,必须是对象类型(继承自 `object`)\n * \n * @example\n * const map = new WeakObjectMap<MyObject>();\n * map.set('key1', obj1);\n * const retrieved = map.get('key1'); // 返回 obj1 或 undefined(如果已被垃圾回收)\n */\nexport class WeakObjectMap<T extends object> {\n private map: Map<string, WeakRef<T>>;\n private finalizationRegistry: FinalizationRegistry<string>;\n \n /**\n * 构造一个新的 WeakObjectMap 实例\n */\n constructor() {\n this.map = new Map();\n this.finalizationRegistry = new FinalizationRegistry((key) => {\n this.map.delete(key);\n });\n }\n \n /**\n * 设置键值对\n * @param key - 字符串键名\n * @param value - 要存储的对象值(会被自动包装为弱引用)\n */\n set(key: string, value: T): void {\n const weakRef = new WeakRef(value);\n this.map.set(key, weakRef);\n this.finalizationRegistry.register(value, key);\n }\n \n /**\n * 获取指定键对应的值\n * @param key - 要查找的键名\n * @returns 如果值存在且未被垃圾回收则返回值,否则返回 undefined\n */\n get(key: string): T | undefined {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() : undefined;\n }\n \n /**\n * 删除指定键的映射\n * @param key - 要删除的键名\n * @returns 如果键存在并已删除则返回 true,否则返回 false\n */\n delete(key: string): boolean {\n return this.map.delete(key);\n }\n \n /**\n * 检查是否存在指定键的映射(且值未被垃圾回收)\n * @param key - 要检查的键名\n * @returns 如果键存在且值未被回收则返回 true,否则返回 false\n */\n has(key: string): boolean {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() !== undefined : false;\n }\n}\n","/**\n * \n * 基于开发工具\n * \n * Redux DevTools 是一个实用工具,用于开发和调试 Redux 应用程序。\n * FLEXEVENT是基于Redux DevTools 的简单包装,可以让开发者使用Redux DevTools\n * 来查看FLEXEVENT的状态变化 \n * \n * import { createStore } from \"@FLEXEVENTjs/react\"\n * import { install } from \"@FLEXEVENTjs/devtools\"\n * \n * \n * const store = createStore({})\n * \n * install()\n * \n */\n\n//@ts-ignore\nimport { legacy_createStore as createStore } from \"redux\"\nimport { WeakObjectMap } from \"./utils/WeakObjectMap\"\nimport { FastEvent } from \"./event\"\n\nconst initialState = {\n\n}\n\n\nfunction getDefaultFastEventState(instance: FastEvent) {\n return {\n messageCount: 0,\n listenerCount: instance.listenerCount,\n retainMessageCount: instance.retainedMessages.size,\n }\n}\n\nexport class FlexEventDevTools {\n private reduxStore: any\n private _installed: boolean = false\n fastEvents = new WeakObjectMap()\n constructor() {\n this.install()\n }\n add(instance: FastEvent) {\n this.fastEvents.set(instance.id, instance)\n\n instance.options.onAddListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__ADD_LISTENER__\",\n event: type.join(\"/\"),\n listener,\n fastEventId: instance.id\n })\n }\n instance.options.onRemoveListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__REMOVE_LISTENER__\",\n event: type.join(\"/\"),\n listener,\n fastEventId: instance.id\n })\n }\n instance.options.onClearListeners = () => {\n this.reduxStore.dispatch({\n type: \"__CLEAR_LISTENERS__\",\n fastEventId: instance.id\n })\n }\n instance.options.onExecuteListener = (message, returns, listeners) => {\n const results = returns.map(r => r instanceof Error ? `Error(${r.message})` : r)\n const sresults = listeners.map(listener => (listener as any).name || 'anonymous')\n .reduce((pre, cur, index) => {\n pre[cur] = results[index]\n return pre\n }, {})\n console.log(`FastEvent<\\x1B[31m${message.type}<\\x1B[30m> is emit, listeners:`, listeners)\n this.reduxStore.dispatch({\n type: message.type,\n payload: message.payload,\n meta: message.meta,\n returns: sresults,\n fastEventId: instance.id\n })\n }\n this.reduxStore.dispatch({\n type: \"__ADD_FASTEVENT__\",\n fastEventId: instance.id\n })\n }\n remove(instance: FastEvent) {\n if (this.fastEvents.has(instance.id)) {\n this.fastEvents.delete(instance.id)\n }\n }\n private reducer(state: any = initialState, action: any) {\n if (action.type.startsWith(\"@@\")) return state\n const instance = this.fastEvents.get(action.fastEventId) as FastEvent\n if (action.type === '__ADD_FASTEVENT__') {\n return {\n ...state,\n [action.fastEventId]: getDefaultFastEventState(instance)\n }\n } else if (action.type == '__ADD_LISTENER__') {\n const eventState = state[action.fastEventId] || getDefaultFastEventState(instance)\n eventState.listenerCount++\n return {\n ...state,\n [action.fastEventId]: {\n ...eventState\n }\n }\n } else if (action.type == '__REMOVE_LISTENER__') {\n const eventState = state[action.fastEventId]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.fastEventId]: {\n ...eventState\n }\n }\n } else if (action.type === '__CLEAR_LISTENERS__') {\n const eventState = state[action.fastEventId]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.fastEventId]: getDefaultFastEventState(instance)\n }\n } else {\n const eventState = state[action.fastEventId]\n if (!eventState) return state\n eventState.messageCount++\n eventState.listenerCount = instance.listenerCount\n eventState.retainMessageCount = instance.retainedMessages.size\n return {\n ...state,\n [action.fastEventId]: { ...eventState }\n }\n }\n }\n private install() {\n if (this._installed) return\n this.reduxStore = createStore(\n this.reducer.bind(this),\n // @ts-ignore\n window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()\n );\n this._installed = true\n console.info('%c FlexEventDevTools installed. Please open <Redux devtools> to view. %c', \"color:red;\", '')\n }\n}\n\nexport function install() {\n // @ts-ignore\n if (!globalThis.__FLEXEVENT_DEVTOOLS__) globalThis.__FLEXEVENT_DEVTOOLS__ = new FlexEventDevTools()\n}\n\ndeclare global {\n // @ts-ignore\n var __FLEXEVENT_DEVTOOLS__: FlexEventDevTools\n}\n\n\ninstall()\n\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/redux/src/utils/formatProdErrorMessage.ts","../../../node_modules/redux/src/utils/symbol-observable.ts","../../../node_modules/redux/src/utils/actionTypes.ts","../../../node_modules/redux/src/utils/isPlainObject.ts","../../../node_modules/redux/src/utils/kindOf.ts","../../../node_modules/redux/src/createStore.ts","../src/utils/WeakObjectMap.ts","../src/devTools.ts"],"names":["formatProdErrorMessage","code","__name","$$observable","symbol_observable_default","randomString","ActionTypes","actionTypes_default","isPlainObject","obj","proto","miniKindOf","val","type","isDate","isError","constructorName","ctorName","kindOf","typeOfVal","createStore","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","listenerIdCounter","isDispatching","ensureCanMutateNextListeners","listener","key","getState","subscribe","isSubscribed","listenerId","dispatch","action","replaceReducer","nextReducer","observable","outerSubscribe","observer","observeState","observerAsObserver","legacy_createStore","WeakObjectMap","map","finalizationRegistry","constructor","Map","FinalizationRegistry","delete","set","value","weakRef","WeakRef","register","get","deref","undefined","has","initialState","getDefaultFastEventState","instance","messageCount","listenerCount","retainMessageCount","retainedMessages","size","FlexEventDevTools","reduxStore","_installed","fastEvents","install","add","id","options","onAddListener","event","join","name","emitter","onRemoveListener","onClearListeners","onAfterExecuteListener","message","returns","listeners","results","r","Error","sresults","reduce","cur","push","__listeners","i","console","log","payload","meta","remove","state","startsWith","eventState","bind","window","__REDUX_DEVTOOLS_EXTENSION__","info","globalThis","__FLEXEVENT_DEVTOOLS__"],"mappings":"aAOO,IAAA,CAAA,CAAA,MAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,YAAA,CAAA,IAAA,CAAA,CAAA,CAAA,SAASA,EAAuBC,CAAc,CAAA,CACnD,OAAO,CAAA,sBAAA,EAAyBA,CAAI,CAA4CA,yCAAAA,EAAAA,CAAI,CACtF,+EAAA,CAAA,CAFgBC,EAAAF,CAAA,CAAA,wBAAA,CAAA,CCFhB,IAAMG,CAAAA,CAAqC,OAAO,MAAW,EAAA,UAAA,EAAc,MAAO,CAAA,UAAA,EAAc,eACzFC,CAAQD,CAAAA,CAAAA,CCCTE,CAAeH,CAAAA,CAAAA,CAAA,IAAM,IAAK,CAAA,MAAA,EAAS,CAAA,QAAA,CAAS,EAAE,CAAE,CAAA,SAAA,CAAU,CAAC,CAAE,CAAA,KAAA,CAAM,EAAE,CAAE,CAAA,IAAA,CAAK,G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GALwBuC,CAM5B,CAAA,KAAO,CACH,IAAME,EAAaF,CAAMlE,CAAAA,CAAAA,CAAO6C,OAAO,CAAA,CACvC,OAAKuB,CACLA,EAAAA,CAAAA,CAAWxC,eACXwC,CAAWvC,CAAAA,aAAAA,CAAgBF,EAASE,aACpCuC,CAAAA,CAAAA,CAAWtC,kBAAqBH,CAAAA,CAAAA,CAASI,iBAAiBC,IACnD,CAAA,CACH,GAAGkC,CAAAA,CACH,CAAClE,CAAO6C,CAAAA,OAAO,EAAG,CAAE,GAAGuB,CAAW,CACtC,GAPwBF,CAQ5B,CACJ,CACQ7B,OAAU,EAAA,CACV,IAAKF,CAAAA,UAAAA,GACT,KAAKD,UAAapD,CAAAA,CAAAA,CACd,IAAKC,CAAAA,OAAAA,CAAQsF,KAAK,IAAI,CAAA,CAEtBC,MAAOC,CAAAA,4BAAAA,EAAgCD,OAAOC,4BAA4B,EAAA,EAE9E,IAAKpC,CAAAA,UAAAA,CAAa,KAClB0B,OAAQW,CAAAA,IAAAA,CAAK,0EAA4E,CAAA,YAAA,CAAc,EAAA,CAC3G,EAAA,CACJ,EAEO,SAASnC,GAAAA,CAEPoC,UAAAA,CAAWC,sBAAwBD,GAAAA,UAAAA,CAAWC,uBAAyB,IAAIzC,CAAAA,EACpF,CAHgBI,CAAAA,CAAAA,CAAAA,CAAAA,WAWhBA,CAAAA,EAAAA","file":"devTools.js","sourcesContent":["/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nexport function formatProdErrorMessage(code: number) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` + 'use the non-minified dev environment for full errors. ';\n}","declare global {\n interface SymbolConstructor {\n readonly observable: symbol;\n }\n}\nconst $$observable = /* #__PURE__ */(() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\nexport default $$observable;","/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\n\nconst randomString = () => Math.random().toString(36).substring(7).split('').join('.');\nconst ActionTypes = {\n INIT: `@@redux/INIT${/* #__PURE__ */randomString()}`,\n REPLACE: `@@redux/REPLACE${/* #__PURE__ */randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nexport default ActionTypes;","/**\n * @param obj The object to inspect.\n * @returns True if the argument appears to be a plain object.\n */\nexport default function isPlainObject(obj: any): obj is object {\n if (typeof obj !== 'object' || obj === null) return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}","// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nexport function miniKindOf(val: any): string {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n const type = typeof val;\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n const constructorName = ctorName(val);\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n }\n\n // other\n return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\nfunction ctorName(val: any): string | null {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\nfunction isError(val: any) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\nfunction isDate(val: any) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\nexport function kindOf(val: any) {\n let typeOfVal: string = typeof val;\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n return typeOfVal;\n}","import { formatProdErrorMessage as _formatProdErrorMessage13 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage12 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage11 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage10 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage9 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage8 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage7 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage6 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage5 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage4 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage3 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage2 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage } from \"src/utils/formatProdErrorMessage\";\nimport $$observable from './utils/symbol-observable';\nimport { Store, StoreEnhancer, Dispatch, Observer, ListenerCallback, UnknownIfNonSpecific } from './types/store';\nimport { Action } from './types/actions';\nimport { Reducer } from './types/reducers';\nimport ActionTypes from './utils/actionTypes';\nimport isPlainObject from './utils/isPlainObject';\nimport { kindOf } from './utils/kindOf';\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage2(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = (preloadedState as StoreEnhancer<Ext, StateExt>);\n preloadedState = undefined;\n }\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage3(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);\n }\n return enhancer(createStore)(reducer, (preloadedState as PreloadedState | undefined));\n }\n let currentReducer = reducer;\n let currentState: S | PreloadedState | undefined = (preloadedState as PreloadedState | undefined);\n let currentListeners: Map<number, ListenerCallback> | null = new Map();\n let nextListeners = currentListeners;\n let listenerIdCounter = 0;\n let isDispatching = false;\n\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = new Map();\n currentListeners.forEach((listener, key) => {\n nextListeners.set(key, listener);\n });\n }\n }\n\n /**\n * Reads the state tree managed by the store.\n *\n * @returns The current state tree of your application.\n */\n function getState(): S {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage4(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n return (currentState as S);\n }\n\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param listener A callback to be invoked on every dispatch.\n * @returns A function to remove this change listener.\n */\n function subscribe(listener: () => void) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage5(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage6(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n let isSubscribed = true;\n ensureCanMutateNextListeners();\n const listenerId = listenerIdCounter++;\n nextListeners.set(listenerId, listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage7(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n isSubscribed = false;\n ensureCanMutateNextListeners();\n nextListeners.delete(listenerId);\n currentListeners = null;\n };\n }\n\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n function dispatch(action: A) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage8(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);\n }\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage9(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n if (typeof action.type !== 'string') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage10(17) : `Action \"type\" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage11(9) : 'Reducers may not dispatch actions.');\n }\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n const listeners = currentListeners = nextListeners;\n listeners.forEach(listener => {\n listener();\n });\n return action;\n }\n\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param nextReducer The reducer for the store to use instead.\n */\n function replaceReducer(nextReducer: Reducer<S, A>): void {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage12(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);\n }\n currentReducer = ((nextReducer as unknown) as Reducer<S, A, PreloadedState>);\n\n // This action has a similar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n dispatch(({\n type: ActionTypes.REPLACE\n } as A));\n }\n\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n function observable() {\n const outerSubscribe = subscribe;\n return {\n /**\n * The minimal observable subscription method.\n * @param observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe(observer: unknown) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage13(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);\n }\n function observeState() {\n const observerAsObserver = (observer as Observer<S>);\n if (observerAsObserver.next) {\n observerAsObserver.next(getState());\n }\n }\n observeState();\n const unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe\n };\n },\n [$$observable]() {\n return this;\n }\n };\n }\n\n // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch(({\n type: ActionTypes.INIT\n } as A));\n const store = (({\n dispatch: (dispatch as Dispatch<A>),\n subscribe,\n getState,\n replaceReducer,\n [$$observable]: observable\n } as unknown) as Store<S, A, StateExt> & Ext);\n return store;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n return createStore(reducer, (preloadedState as any), enhancer);\n}","// @ts-nocheck\n/**\n * 一个基于弱引用(WeakRef)的键值映射集合\n * \n * @template T - 值的类型,必须是对象类型(继承自 `object`)\n * \n * @example\n * const map = new WeakObjectMap<MyObject>();\n * map.set('key1', obj1);\n * const retrieved = map.get('key1'); // 返回 obj1 或 undefined(如果已被垃圾回收)\n */\nexport class WeakObjectMap<T extends object> {\n private map: Map<string, WeakRef<T>>;\n private finalizationRegistry: FinalizationRegistry<string>;\n\n /**\n * 构造一个新的 WeakObjectMap 实例\n */\n constructor() {\n this.map = new Map();\n this.finalizationRegistry = new FinalizationRegistry((key) => {\n this.map.delete(key);\n });\n }\n\n /**\n * 设置键值对\n * @param key - 字符串键名\n * @param value - 要存储的对象值(会被自动包装为弱引用)\n */\n set(key: string, value: T): void {\n const weakRef = new WeakRef(value);\n this.map.set(key, weakRef);\n this.finalizationRegistry.register(value, key);\n }\n\n /**\n * 获取指定键对应的值\n * @param key - 要查找的键名\n * @returns 如果值存在且未被垃圾回收则返回值,否则返回 undefined\n */\n get(key: string): T | undefined {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() : undefined;\n }\n\n /**\n * 删除指定键的映射\n * @param key - 要删除的键名\n * @returns 如果键存在并已删除则返回 true,否则返回 false\n */\n delete(key: string): boolean {\n return this.map.delete(key);\n }\n\n /**\n * 检查是否存在指定键的映射(且值未被垃圾回收)\n * @param key - 要检查的键名\n * @returns 如果键存在且值未被回收则返回 true,否则返回 false\n */\n has(key: string): boolean {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() !== undefined : false;\n }\n}\n","/**\n * \n * 基于开发工具\n * \n * Redux DevTools 是一个实用工具,用于开发和调试 Redux 应用程序。\n * FLEXEVENT是基于Redux DevTools 的简单包装,可以让开发者使用Redux DevTools\n * 来查看FLEXEVENT的状态变化 \n * \n * import { createStore } from \"@FLEXEVENTjs/react\"\n * import { install } from \"@FLEXEVENTjs/devtools\"\n * \n * \n * const store = createStore({})\n * \n * install()\n * \n */\n\n//@ts-ignore\nimport { legacy_createStore as createStore } from \"redux\"\nimport { WeakObjectMap } from \"./utils/WeakObjectMap\"\nimport { FastEvent } from \"./event\"\nimport { FastListenerMeta } from \"./types\"\n\nconst initialState = {\n\n}\n\n\nfunction getDefaultFastEventState(instance: FastEvent) {\n return {\n messageCount: 0,\n listenerCount: instance.listenerCount,\n retainMessageCount: instance.retainedMessages.size,\n }\n}\n\nexport class FlexEventDevTools {\n private reduxStore: any\n private _installed: boolean = false\n fastEvents = new WeakObjectMap()\n constructor() {\n this.install()\n }\n add(instance: FastEvent) {\n this.fastEvents.set(instance.id, instance)\n\n instance.options.onAddListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__ADD_LISTENER__\",\n event: type.join(\"/\"),\n listener: listener.name || 'anonymous',\n emitter: instance.id\n })\n }\n instance.options.onRemoveListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__REMOVE_LISTENER__\",\n event: type.join(\"/\"),\n listener: listener.name || 'anonymous',\n emitter: instance.id\n })\n }\n instance.options.onClearListeners = () => {\n this.reduxStore.dispatch({\n type: \"__CLEAR_LISTENERS__\",\n emitter: instance.id\n })\n }\n instance.options.onAfterExecuteListener = (message, returns, listeners) => {\n const results = returns.map(r => r instanceof Error ? `Error(${r.message})` : r)\n const sresults = listeners.reduce<FastListenerMeta[]>((results, cur) => {\n results.push(...cur.__listeners)\n return results\n }, [])\n .map((listener, i) => `${listener[0].name || 'anonymous'}(${listener[2]}) -> ${results[i]}`)\n\n console.log(`FastEvent<\\x1B[31m${message.type}\\x1B[30m> is emit, listeners:`, listeners)\n this.reduxStore.dispatch({\n type: message.type,\n payload: message.payload,\n meta: message.meta,\n emitter: instance.id,\n returns: sresults\n })\n }\n this.reduxStore.dispatch({\n type: \"__ADD_FASTEVENT__\",\n emitter: instance.id\n })\n }\n remove(instance: FastEvent) {\n if (this.fastEvents.has(instance.id)) {\n this.fastEvents.delete(instance.id)\n }\n }\n private reducer(state: any = initialState, action: any) {\n if (action.type.startsWith(\"@@\")) return state\n const instance = this.fastEvents.get(action.emitter) as FastEvent\n if (action.type === '__ADD_FASTEVENT__') {\n return {\n ...state,\n [action.emitter]: getDefaultFastEventState(instance)\n }\n } else if (action.type === '__ADD_LISTENER__') {\n const eventState = state[action.emitter] || getDefaultFastEventState(instance)\n eventState.listenerCount++\n return {\n ...state,\n [action.emitter]: {\n ...eventState\n }\n }\n } else if (action.type === '__REMOVE_LISTENER__') {\n const eventState = state[action.emitter]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.emitter]: {\n ...eventState\n }\n }\n } else if (action.type === '__CLEAR_LISTENERS__') {\n const eventState = state[action.emitter]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.emitter]: getDefaultFastEventState(instance)\n }\n } else {\n const eventState = state[action.emitter]\n if (!eventState) return state\n eventState.messageCount++\n eventState.listenerCount = instance.listenerCount\n eventState.retainMessageCount = instance.retainedMessages.size\n return {\n ...state,\n [action.emitter]: { ...eventState }\n }\n }\n }\n private install() {\n if (this._installed) return\n this.reduxStore = createStore(\n this.reducer.bind(this),\n // @ts-ignore\n window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()\n );\n this._installed = true\n console.info('%c FlexEventDevTools installed. Please open <Redux devtools> to view. %c', \"color:red;\", '')\n }\n}\n\nexport function install() {\n // @ts-ignore\n if (!globalThis.__FLEXEVENT_DEVTOOLS__) globalThis.__FLEXEVENT_DEVTOOLS__ = new FlexEventDevTools()\n}\n\ndeclare global {\n // @ts-ignore\n var __FLEXEVENT_DEVTOOLS__: FlexEventDevTools\n}\n\n\ninstall()\n\n"]}
|
package/dist/devTools.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{
|
|
1
|
+
var $=Object.defineProperty;var n=(t,e)=>$(t,"name",{value:e,configurable:true});function u(t){return `Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}n(u,"formatProdErrorMessage");var A=typeof Symbol=="function"&&Symbol.observable||"@@observable",v=A,m=n(()=>Math.random().toString(36).substring(7).split("").join("."),"randomString"),V={INIT:`@@redux/INIT${m()}`,REPLACE:`@@redux/REPLACE${m()}`,PROBE_UNKNOWN_ACTION:n(()=>`@@redux/PROBE_UNKNOWN_ACTION${m()}`,"PROBE_UNKNOWN_ACTION")},S=V;function k(t){if(typeof t!="object"||t===null)return false;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}n(k,"isPlainObject");function j(t){if(t===void 0)return "undefined";if(t===null)return "null";let e=typeof t;switch(e){case "boolean":case "string":case "number":case "symbol":case "function":return e}if(Array.isArray(t))return "array";if(M(t))return "date";if(C(t))return "error";let r=L(t);switch(r){case "Symbol":case "Promise":case "WeakMap":case "WeakSet":case "Map":case "Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}n(j,"miniKindOf");function L(t){return typeof t.constructor=="function"?t.constructor.name:null}n(L,"ctorName");function C(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}n(C,"isError");function M(t){return t instanceof Date?true:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}n(M,"isDate");function h(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=j(t)),e}n(h,"kindOf");function x(t,e,r){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?u(2):`Expected the root reducer to be a function. Instead, received: '${h(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?u(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?u(1):`Expected the enhancer to be a function. Instead, received: '${h(r)}'`);return r(x)(t,e)}let s=t,o=e,p=new Map,f=p,c=0,a=false;function g(){f===p&&(f=new Map,p.forEach((i,d)=>{f.set(d,i);}));}n(g,"ensureCanMutateNextListeners");function b(){if(a)throw new Error(process.env.NODE_ENV==="production"?u(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}n(b,"getState");function N(i){if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?u(4):`Expected the listener to be a function. Instead, received: '${h(i)}'`);if(a)throw new Error(process.env.NODE_ENV==="production"?u(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let d=true;g();let l=c++;return f.set(l,i),n(function(){if(d){if(a)throw new Error(process.env.NODE_ENV==="production"?u(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");d=false,g(),f.delete(l),p=null;}},"unsubscribe")}n(N,"subscribe");function E(i){if(!k(i))throw new Error(process.env.NODE_ENV==="production"?u(7):`Actions must be plain objects. Instead, the actual type was: '${h(i)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof i.type>"u")throw new Error(process.env.NODE_ENV==="production"?u(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof i.type!="string")throw new Error(process.env.NODE_ENV==="production"?u(17):`Action "type" property must be a string. Instead, the actual type was: '${h(i.type)}'. Value was: '${i.type}' (stringified)`);if(a)throw new Error(process.env.NODE_ENV==="production"?u(9):"Reducers may not dispatch actions.");try{a=!0,o=s(o,i);}finally{a=false;}return (p=f).forEach(l=>{l();}),i}n(E,"dispatch");function T(i){if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?u(10):`Expected the nextReducer to be a function. Instead, received: '${h(i)}`);s=i,E({type:S.REPLACE});}n(T,"replaceReducer");function I(){let i=N;return {subscribe(d){if(typeof d!="object"||d===null)throw new Error(process.env.NODE_ENV==="production"?u(11):`Expected the observer to be an object. Instead, received: '${h(d)}'`);function l(){let O=d;O.next&&O.next(b());}return n(l,"observeState"),l(),{unsubscribe:i(l)}},[v](){return this}}}return n(I,"observable"),E({type:S.INIT}),{dispatch:E,subscribe:N,getState:b,replaceReducer:T,[v]:I}}n(x,"createStore");function D(t,e,r){return x(t,e,r)}n(D,"legacy_createStore");var y=class{static{n(this,"WeakObjectMap");}map;finalizationRegistry;constructor(){this.map=new Map,this.finalizationRegistry=new FinalizationRegistry(e=>{this.map.delete(e);});}set(e,r){let s=new WeakRef(r);this.map.set(e,s),this.finalizationRegistry.register(r,e);}get(e){let r=this.map.get(e);return r?r.deref():void 0}delete(e){return this.map.delete(e)}has(e){let r=this.map.get(e);return r?r.deref()!==void 0:false}};var P={};function _(t){return {messageCount:0,listenerCount:t.listenerCount,retainMessageCount:t.retainedMessages.size}}n(_,"getDefaultFastEventState");var w=class{static{n(this,"FlexEventDevTools");}reduxStore;_installed=false;fastEvents=new y;constructor(){this.install();}add(e){this.fastEvents.set(e.id,e),e.options.onAddListener=(r,s)=>{this.reduxStore.dispatch({type:"__ADD_LISTENER__",event:r.join("/"),listener:s.name||"anonymous",emitter:e.id});},e.options.onRemoveListener=(r,s)=>{this.reduxStore.dispatch({type:"__REMOVE_LISTENER__",event:r.join("/"),listener:s.name||"anonymous",emitter:e.id});},e.options.onClearListeners=()=>{this.reduxStore.dispatch({type:"__CLEAR_LISTENERS__",emitter:e.id});},e.options.onAfterExecuteListener=(r,s,o)=>{let p=s.map(c=>c instanceof Error?`Error(${c.message})`:c),f=o.reduce((c,a)=>(c.push(...a.__listeners),c),[]).map((c,a)=>`${c[0].name||"anonymous"}(${c[2]}) -> ${p[a]}`);console.log(`FastEvent<\x1B[31m${r.type}\x1B[30m> is emit, listeners:`,o),this.reduxStore.dispatch({type:r.type,payload:r.payload,meta:r.meta,emitter:e.id,returns:f});},this.reduxStore.dispatch({type:"__ADD_FASTEVENT__",emitter:e.id});}remove(e){this.fastEvents.has(e.id)&&this.fastEvents.delete(e.id);}reducer(e=P,r){if(r.type.startsWith("@@"))return e;let s=this.fastEvents.get(r.emitter);if(r.type==="__ADD_FASTEVENT__")return {...e,[r.emitter]:_(s)};if(r.type==="__ADD_LISTENER__"){let o=e[r.emitter]||_(s);return o.listenerCount++,{...e,[r.emitter]:{...o}}}else if(r.type==="__REMOVE_LISTENER__"){let o=e[r.emitter];return o?(o.listenerCount++,{...e,[r.emitter]:{...o}}):e}else if(r.type==="__CLEAR_LISTENERS__"){let o=e[r.emitter];return o?(o.listenerCount++,{...e,[r.emitter]:_(s)}):e}else {let o=e[r.emitter];return o?(o.messageCount++,o.listenerCount=s.listenerCount,o.retainMessageCount=s.retainedMessages.size,{...e,[r.emitter]:{...o}}):e}}install(){this._installed||(this.reduxStore=D(this.reducer.bind(this),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()),this._installed=true,console.info("%c FlexEventDevTools installed. Please open <Redux devtools> to view. %c","color:red;",""));}};function K(){globalThis.__FLEXEVENT_DEVTOOLS__||(globalThis.__FLEXEVENT_DEVTOOLS__=new w);}n(K,"install");K();
|
|
2
|
+
export{w as FlexEventDevTools,K as install};//# sourceMappingURL=devTools.mjs.map
|
|
3
3
|
//# sourceMappingURL=devTools.mjs.map
|
package/dist/devTools.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/formatProdErrorMessage.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/symbol-observable.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/actionTypes.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/isPlainObject.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/utils/kindOf.ts","../node_modules/.pnpm/redux@5.0.1/node_modules/redux/src/createStore.ts","../src/utils/WeakObjectMap.ts","../src/devTools.ts"],"names":["formatProdErrorMessage","code","__name","$$observable","symbol_observable_default","randomString","ActionTypes","actionTypes_default","isPlainObject","obj","proto","miniKindOf","val","type","isDate","isError","constructorName","ctorName","kindOf","typeOfVal","createStore","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","listenerIdCounter","isDispatching","ensureCanMutateNextListeners","listener","key","getState","subscribe","isSubscribed","listenerId","dispatch","action","replaceReducer","nextReducer","observable","outerSubscribe","observer","observeState","observerAsObserver","legacy_createStore","WeakObjectMap","constructor","map","finalizationRegistry","Map","FinalizationRegistry","delete","set","value","weakRef","WeakRef","register","get","deref","undefined","has","_WeakObjectMap","initialState","getDefaultFastEventState","instance","messageCount","listenerCount","retainMessageCount","retainedMessages","size","FlexEventDevTools","reduxStore","_installed","fastEvents","install","add","id","options","onAddListener","event","join","fastEventId","onRemoveListener","onClearListeners","onExecuteListener","message","returns","listeners","results","r","Error","sresults","name","reduce","pre","cur","index","console","log","payload","meta","remove","state","startsWith","eventState","bind","window","__REDUX_DEVTOOLS_EXTENSION__","info","_FlexEventDevTools","globalThis","__FLEXEVENT_DEVTOOLS__"],"mappings":"AAOO,IAAA,CAAA,CAAA,MAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,UAAA,CAAA,IAAA,CAAA,YAAA,CAAA,IAAA,CAAA,QAAA,CAAA,IAAA,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,YAAA,CAAA,IAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,OAAA,CAAA,EAAA,QAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,SAASA,EAAuBC,CAAc,CAAA,CACnD,OAAO,CAAA,sBAAA,EAAyBA,CAAI,CAA4CA,yCAAAA,EAAAA,CAAI,CACtF,+EAAA,CAAA,CAFgBC,EAAAF,CAAA,CAAA,wBAAA,CAAA,CCFhB,IAAMG,CAAAA,CAAqC,OAAO,MAAW,EAAA,UAAA,EAAc,MAAO,CAAA,UAAA,EAAc,eACzFC,CAAQD,CAAAA,CAAAA,CCCTE,CAAeH,CAAAA,CAAAA,CAAA,IAAM,IAAK,CAAA,MAAA,EAAS,CAAA,QAAA,CAAS,EAAE,CAAE,CAAA,SAAA,CAAU,CAAC,CAAE,CAAA,KAAA,CAAM,EAAE,CAAE,CAAA,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AAyBC,CAAAA,CACnD,CAAA,EALwBsC,CAM5B,CAAO,KAAA,CACH,IAAME,CAAAA,CAAaF,EAAMlE,CAAO6C,CAAAA,WAAW,CAC3C,CAAA,OAAKuB,GACLA,CAAWvC,CAAAA,YAAAA,EAAAA,CACXuC,CAAWtC,CAAAA,aAAAA,CAAgBF,EAASE,aACpCsC,CAAAA,CAAAA,CAAWrC,mBAAqBH,CAASI,CAAAA,gBAAAA,CAAiBC,KACnD,CACH,GAAGiC,CACH,CAAA,CAAClE,EAAO6C,WAAW,EAAG,CAAE,GAAGuB,CAAW,CAC1C,CAAA,EAPwBF,CAQ5B,CACJ,CACQ5B,OAAU,EAAA,CACV,KAAKF,UACT,GAAA,IAAA,CAAKD,WAAarD,CACd,CAAA,IAAA,CAAKC,OAAQsF,CAAAA,IAAAA,CAAK,IAAI,CAEtBC,CAAAA,MAAAA,CAAOC,4BAAgCD,EAAAA,MAAAA,CAAOC,8BAA4B,CAAA,CAE9E,IAAKnC,CAAAA,UAAAA,CAAa,KAClByB,OAAQW,CAAAA,IAAAA,CAAK,2EAA4E,YAAc,CAAA,EAAA,GAC3G,CACJ,CAAA,CAnHatC,CAAAA,CAAAA,CAAAA,CAAAA,qBAAAA,IAAAA,CAAAA,CAANuC,EAqHA,SAASnC,GAAAA,CAEPoC,UAAAA,CAAWC,sBAAwBD,GAAAA,UAAAA,CAAWC,uBAAyB,IAAIzC,CAAAA,EACpF,CAHgBI,CAAAA,CAAAA,CAAAA,CAAAA,WAWhBA,CAAAA,EAAAA","file":"devTools.mjs","sourcesContent":["/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nexport function formatProdErrorMessage(code: number) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` + 'use the non-minified dev environment for full errors. ';\n}","declare global {\n interface SymbolConstructor {\n readonly observable: symbol;\n }\n}\nconst $$observable = /* #__PURE__ */(() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\nexport default $$observable;","/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\n\nconst randomString = () => Math.random().toString(36).substring(7).split('').join('.');\nconst ActionTypes = {\n INIT: `@@redux/INIT${/* #__PURE__ */randomString()}`,\n REPLACE: `@@redux/REPLACE${/* #__PURE__ */randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nexport default ActionTypes;","/**\n * @param obj The object to inspect.\n * @returns True if the argument appears to be a plain object.\n */\nexport default function isPlainObject(obj: any): obj is object {\n if (typeof obj !== 'object' || obj === null) return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}","// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nexport function miniKindOf(val: any): string {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n const type = typeof val;\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n const constructorName = ctorName(val);\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n }\n\n // other\n return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\nfunction ctorName(val: any): string | null {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\nfunction isError(val: any) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\nfunction isDate(val: any) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\nexport function kindOf(val: any) {\n let typeOfVal: string = typeof val;\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n return typeOfVal;\n}","import { formatProdErrorMessage as _formatProdErrorMessage13 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage12 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage11 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage10 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage9 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage8 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage7 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage6 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage5 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage4 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage3 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage2 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage } from \"src/utils/formatProdErrorMessage\";\nimport $$observable from './utils/symbol-observable';\nimport { Store, StoreEnhancer, Dispatch, Observer, ListenerCallback, UnknownIfNonSpecific } from './types/store';\nimport { Action } from './types/actions';\nimport { Reducer } from './types/reducers';\nimport ActionTypes from './utils/actionTypes';\nimport isPlainObject from './utils/isPlainObject';\nimport { kindOf } from './utils/kindOf';\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage2(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = (preloadedState as StoreEnhancer<Ext, StateExt>);\n preloadedState = undefined;\n }\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage3(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);\n }\n return enhancer(createStore)(reducer, (preloadedState as PreloadedState | undefined));\n }\n let currentReducer = reducer;\n let currentState: S | PreloadedState | undefined = (preloadedState as PreloadedState | undefined);\n let currentListeners: Map<number, ListenerCallback> | null = new Map();\n let nextListeners = currentListeners;\n let listenerIdCounter = 0;\n let isDispatching = false;\n\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = new Map();\n currentListeners.forEach((listener, key) => {\n nextListeners.set(key, listener);\n });\n }\n }\n\n /**\n * Reads the state tree managed by the store.\n *\n * @returns The current state tree of your application.\n */\n function getState(): S {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage4(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n return (currentState as S);\n }\n\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param listener A callback to be invoked on every dispatch.\n * @returns A function to remove this change listener.\n */\n function subscribe(listener: () => void) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage5(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage6(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n let isSubscribed = true;\n ensureCanMutateNextListeners();\n const listenerId = listenerIdCounter++;\n nextListeners.set(listenerId, listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage7(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n isSubscribed = false;\n ensureCanMutateNextListeners();\n nextListeners.delete(listenerId);\n currentListeners = null;\n };\n }\n\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n function dispatch(action: A) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage8(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);\n }\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage9(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n if (typeof action.type !== 'string') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage10(17) : `Action \"type\" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage11(9) : 'Reducers may not dispatch actions.');\n }\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n const listeners = currentListeners = nextListeners;\n listeners.forEach(listener => {\n listener();\n });\n return action;\n }\n\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param nextReducer The reducer for the store to use instead.\n */\n function replaceReducer(nextReducer: Reducer<S, A>): void {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage12(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);\n }\n currentReducer = ((nextReducer as unknown) as Reducer<S, A, PreloadedState>);\n\n // This action has a similar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n dispatch(({\n type: ActionTypes.REPLACE\n } as A));\n }\n\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n function observable() {\n const outerSubscribe = subscribe;\n return {\n /**\n * The minimal observable subscription method.\n * @param observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe(observer: unknown) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage13(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);\n }\n function observeState() {\n const observerAsObserver = (observer as Observer<S>);\n if (observerAsObserver.next) {\n observerAsObserver.next(getState());\n }\n }\n observeState();\n const unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe\n };\n },\n [$$observable]() {\n return this;\n }\n };\n }\n\n // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch(({\n type: ActionTypes.INIT\n } as A));\n const store = (({\n dispatch: (dispatch as Dispatch<A>),\n subscribe,\n getState,\n replaceReducer,\n [$$observable]: observable\n } as unknown) as Store<S, A, StateExt> & Ext);\n return store;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n return createStore(reducer, (preloadedState as any), enhancer);\n}","/**\n * 一个基于弱引用(WeakRef)的键值映射集合\n * \n * @template T - 值的类型,必须是对象类型(继承自 `object`)\n * \n * @example\n * const map = new WeakObjectMap<MyObject>();\n * map.set('key1', obj1);\n * const retrieved = map.get('key1'); // 返回 obj1 或 undefined(如果已被垃圾回收)\n */\nexport class WeakObjectMap<T extends object> {\n private map: Map<string, WeakRef<T>>;\n private finalizationRegistry: FinalizationRegistry<string>;\n \n /**\n * 构造一个新的 WeakObjectMap 实例\n */\n constructor() {\n this.map = new Map();\n this.finalizationRegistry = new FinalizationRegistry((key) => {\n this.map.delete(key);\n });\n }\n \n /**\n * 设置键值对\n * @param key - 字符串键名\n * @param value - 要存储的对象值(会被自动包装为弱引用)\n */\n set(key: string, value: T): void {\n const weakRef = new WeakRef(value);\n this.map.set(key, weakRef);\n this.finalizationRegistry.register(value, key);\n }\n \n /**\n * 获取指定键对应的值\n * @param key - 要查找的键名\n * @returns 如果值存在且未被垃圾回收则返回值,否则返回 undefined\n */\n get(key: string): T | undefined {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() : undefined;\n }\n \n /**\n * 删除指定键的映射\n * @param key - 要删除的键名\n * @returns 如果键存在并已删除则返回 true,否则返回 false\n */\n delete(key: string): boolean {\n return this.map.delete(key);\n }\n \n /**\n * 检查是否存在指定键的映射(且值未被垃圾回收)\n * @param key - 要检查的键名\n * @returns 如果键存在且值未被回收则返回 true,否则返回 false\n */\n has(key: string): boolean {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() !== undefined : false;\n }\n}\n","/**\n * \n * 基于开发工具\n * \n * Redux DevTools 是一个实用工具,用于开发和调试 Redux 应用程序。\n * FLEXEVENT是基于Redux DevTools 的简单包装,可以让开发者使用Redux DevTools\n * 来查看FLEXEVENT的状态变化 \n * \n * import { createStore } from \"@FLEXEVENTjs/react\"\n * import { install } from \"@FLEXEVENTjs/devtools\"\n * \n * \n * const store = createStore({})\n * \n * install()\n * \n */\n\n//@ts-ignore\nimport { legacy_createStore as createStore } from \"redux\"\nimport { WeakObjectMap } from \"./utils/WeakObjectMap\"\nimport { FastEvent } from \"./event\"\n\nconst initialState = {\n\n}\n\n\nfunction getDefaultFastEventState(instance: FastEvent) {\n return {\n messageCount: 0,\n listenerCount: instance.listenerCount,\n retainMessageCount: instance.retainedMessages.size,\n }\n}\n\nexport class FlexEventDevTools {\n private reduxStore: any\n private _installed: boolean = false\n fastEvents = new WeakObjectMap()\n constructor() {\n this.install()\n }\n add(instance: FastEvent) {\n this.fastEvents.set(instance.id, instance)\n\n instance.options.onAddListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__ADD_LISTENER__\",\n event: type.join(\"/\"),\n listener,\n fastEventId: instance.id\n })\n }\n instance.options.onRemoveListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__REMOVE_LISTENER__\",\n event: type.join(\"/\"),\n listener,\n fastEventId: instance.id\n })\n }\n instance.options.onClearListeners = () => {\n this.reduxStore.dispatch({\n type: \"__CLEAR_LISTENERS__\",\n fastEventId: instance.id\n })\n }\n instance.options.onExecuteListener = (message, returns, listeners) => {\n const results = returns.map(r => r instanceof Error ? `Error(${r.message})` : r)\n const sresults = listeners.map(listener => (listener as any).name || 'anonymous')\n .reduce((pre, cur, index) => {\n pre[cur] = results[index]\n return pre\n }, {})\n console.log(`FastEvent<\\x1B[31m${message.type}<\\x1B[30m> is emit, listeners:`, listeners)\n this.reduxStore.dispatch({\n type: message.type,\n payload: message.payload,\n meta: message.meta,\n returns: sresults,\n fastEventId: instance.id\n })\n }\n this.reduxStore.dispatch({\n type: \"__ADD_FASTEVENT__\",\n fastEventId: instance.id\n })\n }\n remove(instance: FastEvent) {\n if (this.fastEvents.has(instance.id)) {\n this.fastEvents.delete(instance.id)\n }\n }\n private reducer(state: any = initialState, action: any) {\n if (action.type.startsWith(\"@@\")) return state\n const instance = this.fastEvents.get(action.fastEventId) as FastEvent\n if (action.type === '__ADD_FASTEVENT__') {\n return {\n ...state,\n [action.fastEventId]: getDefaultFastEventState(instance)\n }\n } else if (action.type == '__ADD_LISTENER__') {\n const eventState = state[action.fastEventId] || getDefaultFastEventState(instance)\n eventState.listenerCount++\n return {\n ...state,\n [action.fastEventId]: {\n ...eventState\n }\n }\n } else if (action.type == '__REMOVE_LISTENER__') {\n const eventState = state[action.fastEventId]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.fastEventId]: {\n ...eventState\n }\n }\n } else if (action.type === '__CLEAR_LISTENERS__') {\n const eventState = state[action.fastEventId]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.fastEventId]: getDefaultFastEventState(instance)\n }\n } else {\n const eventState = state[action.fastEventId]\n if (!eventState) return state\n eventState.messageCount++\n eventState.listenerCount = instance.listenerCount\n eventState.retainMessageCount = instance.retainedMessages.size\n return {\n ...state,\n [action.fastEventId]: { ...eventState }\n }\n }\n }\n private install() {\n if (this._installed) return\n this.reduxStore = createStore(\n this.reducer.bind(this),\n // @ts-ignore\n window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()\n );\n this._installed = true\n console.info('%c FlexEventDevTools installed. Please open <Redux devtools> to view. %c', \"color:red;\", '')\n }\n}\n\nexport function install() {\n // @ts-ignore\n if (!globalThis.__FLEXEVENT_DEVTOOLS__) globalThis.__FLEXEVENT_DEVTOOLS__ = new FlexEventDevTools()\n}\n\ndeclare global {\n // @ts-ignore\n var __FLEXEVENT_DEVTOOLS__: FlexEventDevTools\n}\n\n\ninstall()\n\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/redux/src/utils/formatProdErrorMessage.ts","../../../node_modules/redux/src/utils/symbol-observable.ts","../../../node_modules/redux/src/utils/actionTypes.ts","../../../node_modules/redux/src/utils/isPlainObject.ts","../../../node_modules/redux/src/utils/kindOf.ts","../../../node_modules/redux/src/createStore.ts","../src/utils/WeakObjectMap.ts","../src/devTools.ts"],"names":["formatProdErrorMessage","code","__name","$$observable","symbol_observable_default","randomString","ActionTypes","actionTypes_default","isPlainObject","obj","proto","miniKindOf","val","type","isDate","isError","constructorName","ctorName","kindOf","typeOfVal","createStore","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","listenerIdCounter","isDispatching","ensureCanMutateNextListeners","listener","key","getState","subscribe","isSubscribed","listenerId","dispatch","action","replaceReducer","nextReducer","observable","outerSubscribe","observer","observeState","observerAsObserver","legacy_createStore","WeakObjectMap","map","finalizationRegistry","constructor","Map","FinalizationRegistry","delete","set","value","weakRef","WeakRef","register","get","deref","undefined","has","initialState","getDefaultFastEventState","instance","messageCount","listenerCount","retainMessageCount","retainedMessages","size","FlexEventDevTools","reduxStore","_installed","fastEvents","install","add","id","options","onAddListener","event","join","name","emitter","onRemoveListener","onClearListeners","onAfterExecuteListener","message","returns","listeners","results","r","Error","sresults","reduce","cur","push","__listeners","i","console","log","payload","meta","remove","state","startsWith","eventState","bind","window","__REDUX_DEVTOOLS_EXTENSION__","info","globalThis","__FLEXEVENT_DEVTOOLS__"],"mappings":"AAOO,IAAA,CAAA,CAAA,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,CAAAA,IAAAA,CAAK,0EAA4E,CAAA,YAAA,CAAc,EAAA,CAC3G,EAAA,CACJ,EAEO,SAASnC,GAAAA,CAEPoC,UAAAA,CAAWC,sBAAwBD,GAAAA,UAAAA,CAAWC,uBAAyB,IAAIzC,CAAAA,EACpF,CAHgBI,CAAAA,CAAAA,CAAAA,CAAAA,WAWhBA,CAAAA,EAAAA","file":"devTools.mjs","sourcesContent":["/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nexport function formatProdErrorMessage(code: number) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` + 'use the non-minified dev environment for full errors. ';\n}","declare global {\n interface SymbolConstructor {\n readonly observable: symbol;\n }\n}\nconst $$observable = /* #__PURE__ */(() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\nexport default $$observable;","/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\n\nconst randomString = () => Math.random().toString(36).substring(7).split('').join('.');\nconst ActionTypes = {\n INIT: `@@redux/INIT${/* #__PURE__ */randomString()}`,\n REPLACE: `@@redux/REPLACE${/* #__PURE__ */randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nexport default ActionTypes;","/**\n * @param obj The object to inspect.\n * @returns True if the argument appears to be a plain object.\n */\nexport default function isPlainObject(obj: any): obj is object {\n if (typeof obj !== 'object' || obj === null) return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}","// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nexport function miniKindOf(val: any): string {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n const type = typeof val;\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n const constructorName = ctorName(val);\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n }\n\n // other\n return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\nfunction ctorName(val: any): string | null {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\nfunction isError(val: any) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\nfunction isDate(val: any) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\nexport function kindOf(val: any) {\n let typeOfVal: string = typeof val;\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n return typeOfVal;\n}","import { formatProdErrorMessage as _formatProdErrorMessage13 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage12 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage11 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage10 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage9 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage8 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage7 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage6 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage5 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage4 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage3 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage2 } from \"src/utils/formatProdErrorMessage\";\nimport { formatProdErrorMessage as _formatProdErrorMessage } from \"src/utils/formatProdErrorMessage\";\nimport $$observable from './utils/symbol-observable';\nimport { Store, StoreEnhancer, Dispatch, Observer, ListenerCallback, UnknownIfNonSpecific } from './types/store';\nimport { Action } from './types/actions';\nimport { Reducer } from './types/reducers';\nimport ActionTypes from './utils/actionTypes';\nimport isPlainObject from './utils/isPlainObject';\nimport { kindOf } from './utils/kindOf';\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage2(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = (preloadedState as StoreEnhancer<Ext, StateExt>);\n preloadedState = undefined;\n }\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage3(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);\n }\n return enhancer(createStore)(reducer, (preloadedState as PreloadedState | undefined));\n }\n let currentReducer = reducer;\n let currentState: S | PreloadedState | undefined = (preloadedState as PreloadedState | undefined);\n let currentListeners: Map<number, ListenerCallback> | null = new Map();\n let nextListeners = currentListeners;\n let listenerIdCounter = 0;\n let isDispatching = false;\n\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = new Map();\n currentListeners.forEach((listener, key) => {\n nextListeners.set(key, listener);\n });\n }\n }\n\n /**\n * Reads the state tree managed by the store.\n *\n * @returns The current state tree of your application.\n */\n function getState(): S {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage4(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n return (currentState as S);\n }\n\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param listener A callback to be invoked on every dispatch.\n * @returns A function to remove this change listener.\n */\n function subscribe(listener: () => void) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage5(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage6(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n let isSubscribed = true;\n ensureCanMutateNextListeners();\n const listenerId = listenerIdCounter++;\n nextListeners.set(listenerId, listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage7(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n isSubscribed = false;\n ensureCanMutateNextListeners();\n nextListeners.delete(listenerId);\n currentListeners = null;\n };\n }\n\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n function dispatch(action: A) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage8(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);\n }\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage9(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n if (typeof action.type !== 'string') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage10(17) : `Action \"type\" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage11(9) : 'Reducers may not dispatch actions.');\n }\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n const listeners = currentListeners = nextListeners;\n listeners.forEach(listener => {\n listener();\n });\n return action;\n }\n\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param nextReducer The reducer for the store to use instead.\n */\n function replaceReducer(nextReducer: Reducer<S, A>): void {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage12(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);\n }\n currentReducer = ((nextReducer as unknown) as Reducer<S, A, PreloadedState>);\n\n // This action has a similar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n dispatch(({\n type: ActionTypes.REPLACE\n } as A));\n }\n\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n function observable() {\n const outerSubscribe = subscribe;\n return {\n /**\n * The minimal observable subscription method.\n * @param observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe(observer: unknown) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? _formatProdErrorMessage13(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);\n }\n function observeState() {\n const observerAsObserver = (observer as Observer<S>);\n if (observerAsObserver.next) {\n observerAsObserver.next(getState());\n }\n }\n observeState();\n const unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe\n };\n },\n [$$observable]() {\n return this;\n }\n };\n }\n\n // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch(({\n type: ActionTypes.INIT\n } as A));\n const store = (({\n dispatch: (dispatch as Dispatch<A>),\n subscribe,\n getState,\n replaceReducer,\n [$$observable]: observable\n } as unknown) as Store<S, A, StateExt> & Ext);\n return store;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A, PreloadedState>, preloadedState?: PreloadedState | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext;\nexport function legacy_createStore<S, A extends Action, Ext extends {} = {}, StateExt extends {} = {}, PreloadedState = S>(reducer: Reducer<S, A>, preloadedState?: PreloadedState | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext {\n return createStore(reducer, (preloadedState as any), enhancer);\n}","// @ts-nocheck\n/**\n * 一个基于弱引用(WeakRef)的键值映射集合\n * \n * @template T - 值的类型,必须是对象类型(继承自 `object`)\n * \n * @example\n * const map = new WeakObjectMap<MyObject>();\n * map.set('key1', obj1);\n * const retrieved = map.get('key1'); // 返回 obj1 或 undefined(如果已被垃圾回收)\n */\nexport class WeakObjectMap<T extends object> {\n private map: Map<string, WeakRef<T>>;\n private finalizationRegistry: FinalizationRegistry<string>;\n\n /**\n * 构造一个新的 WeakObjectMap 实例\n */\n constructor() {\n this.map = new Map();\n this.finalizationRegistry = new FinalizationRegistry((key) => {\n this.map.delete(key);\n });\n }\n\n /**\n * 设置键值对\n * @param key - 字符串键名\n * @param value - 要存储的对象值(会被自动包装为弱引用)\n */\n set(key: string, value: T): void {\n const weakRef = new WeakRef(value);\n this.map.set(key, weakRef);\n this.finalizationRegistry.register(value, key);\n }\n\n /**\n * 获取指定键对应的值\n * @param key - 要查找的键名\n * @returns 如果值存在且未被垃圾回收则返回值,否则返回 undefined\n */\n get(key: string): T | undefined {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() : undefined;\n }\n\n /**\n * 删除指定键的映射\n * @param key - 要删除的键名\n * @returns 如果键存在并已删除则返回 true,否则返回 false\n */\n delete(key: string): boolean {\n return this.map.delete(key);\n }\n\n /**\n * 检查是否存在指定键的映射(且值未被垃圾回收)\n * @param key - 要检查的键名\n * @returns 如果键存在且值未被回收则返回 true,否则返回 false\n */\n has(key: string): boolean {\n const weakRef = this.map.get(key);\n return weakRef ? weakRef.deref() !== undefined : false;\n }\n}\n","/**\n * \n * 基于开发工具\n * \n * Redux DevTools 是一个实用工具,用于开发和调试 Redux 应用程序。\n * FLEXEVENT是基于Redux DevTools 的简单包装,可以让开发者使用Redux DevTools\n * 来查看FLEXEVENT的状态变化 \n * \n * import { createStore } from \"@FLEXEVENTjs/react\"\n * import { install } from \"@FLEXEVENTjs/devtools\"\n * \n * \n * const store = createStore({})\n * \n * install()\n * \n */\n\n//@ts-ignore\nimport { legacy_createStore as createStore } from \"redux\"\nimport { WeakObjectMap } from \"./utils/WeakObjectMap\"\nimport { FastEvent } from \"./event\"\nimport { FastListenerMeta } from \"./types\"\n\nconst initialState = {\n\n}\n\n\nfunction getDefaultFastEventState(instance: FastEvent) {\n return {\n messageCount: 0,\n listenerCount: instance.listenerCount,\n retainMessageCount: instance.retainedMessages.size,\n }\n}\n\nexport class FlexEventDevTools {\n private reduxStore: any\n private _installed: boolean = false\n fastEvents = new WeakObjectMap()\n constructor() {\n this.install()\n }\n add(instance: FastEvent) {\n this.fastEvents.set(instance.id, instance)\n\n instance.options.onAddListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__ADD_LISTENER__\",\n event: type.join(\"/\"),\n listener: listener.name || 'anonymous',\n emitter: instance.id\n })\n }\n instance.options.onRemoveListener = (type: string[], listener: any) => {\n this.reduxStore.dispatch({\n type: \"__REMOVE_LISTENER__\",\n event: type.join(\"/\"),\n listener: listener.name || 'anonymous',\n emitter: instance.id\n })\n }\n instance.options.onClearListeners = () => {\n this.reduxStore.dispatch({\n type: \"__CLEAR_LISTENERS__\",\n emitter: instance.id\n })\n }\n instance.options.onAfterExecuteListener = (message, returns, listeners) => {\n const results = returns.map(r => r instanceof Error ? `Error(${r.message})` : r)\n const sresults = listeners.reduce<FastListenerMeta[]>((results, cur) => {\n results.push(...cur.__listeners)\n return results\n }, [])\n .map((listener, i) => `${listener[0].name || 'anonymous'}(${listener[2]}) -> ${results[i]}`)\n\n console.log(`FastEvent<\\x1B[31m${message.type}\\x1B[30m> is emit, listeners:`, listeners)\n this.reduxStore.dispatch({\n type: message.type,\n payload: message.payload,\n meta: message.meta,\n emitter: instance.id,\n returns: sresults\n })\n }\n this.reduxStore.dispatch({\n type: \"__ADD_FASTEVENT__\",\n emitter: instance.id\n })\n }\n remove(instance: FastEvent) {\n if (this.fastEvents.has(instance.id)) {\n this.fastEvents.delete(instance.id)\n }\n }\n private reducer(state: any = initialState, action: any) {\n if (action.type.startsWith(\"@@\")) return state\n const instance = this.fastEvents.get(action.emitter) as FastEvent\n if (action.type === '__ADD_FASTEVENT__') {\n return {\n ...state,\n [action.emitter]: getDefaultFastEventState(instance)\n }\n } else if (action.type === '__ADD_LISTENER__') {\n const eventState = state[action.emitter] || getDefaultFastEventState(instance)\n eventState.listenerCount++\n return {\n ...state,\n [action.emitter]: {\n ...eventState\n }\n }\n } else if (action.type === '__REMOVE_LISTENER__') {\n const eventState = state[action.emitter]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.emitter]: {\n ...eventState\n }\n }\n } else if (action.type === '__CLEAR_LISTENERS__') {\n const eventState = state[action.emitter]\n if (!eventState) return state\n eventState.listenerCount++\n return {\n ...state,\n [action.emitter]: getDefaultFastEventState(instance)\n }\n } else {\n const eventState = state[action.emitter]\n if (!eventState) return state\n eventState.messageCount++\n eventState.listenerCount = instance.listenerCount\n eventState.retainMessageCount = instance.retainedMessages.size\n return {\n ...state,\n [action.emitter]: { ...eventState }\n }\n }\n }\n private install() {\n if (this._installed) return\n this.reduxStore = createStore(\n this.reducer.bind(this),\n // @ts-ignore\n window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()\n );\n this._installed = true\n console.info('%c FlexEventDevTools installed. Please open <Redux devtools> to view. %c', \"color:red;\", '')\n }\n}\n\nexport function install() {\n // @ts-ignore\n if (!globalThis.__FLEXEVENT_DEVTOOLS__) globalThis.__FLEXEVENT_DEVTOOLS__ = new FlexEventDevTools()\n}\n\ndeclare global {\n // @ts-ignore\n var __FLEXEVENT_DEVTOOLS__: FlexEventDevTools\n}\n\n\ninstall()\n\n"]}
|