redux-astroglide 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react-redux')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react-redux'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["redux-astroglide/selectors"] = {}, global.reactRedux));
5
- })(this, (function (exports, reactRedux) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["redux-astroglide/selectors"] = {}));
5
+ })(this, (function (exports) { 'use strict';
6
6
 
7
7
  function _arrayLikeToArray(r, a) {
8
8
  (null == a || a > r.length) && (a = r.length);
@@ -92,1268 +92,374 @@
92
92
  }
93
93
  }
94
94
 
95
- function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return !!n&&!!n[Q]}function t(n){var r;return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t;}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r);}function _(){return "production"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r);}function g(n){O(n),n.p.forEach(S),n.p=null;}function O(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0;}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s,v){if("production"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1;}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1;}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t));})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return "production"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];"production"!==process.env.NODE_ENV&&f(t),en.set(t,n,r);}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t);}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return !0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return !0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return !0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return !0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return !0;return !1}function f(r){r.g&&n(3,JSON.stringify(p(r)));}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)));})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t));}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return !0;E(n),k(n);}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?g(c):O(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n;},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un;an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
96
-
97
- /**
98
- * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
99
- *
100
- * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
101
- * during build.
102
- * @param {number} code
103
- */
104
- function formatProdErrorMessage(code) {
105
- 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. ';
106
- }
95
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
107
96
 
108
- /**
109
- * These are private action types reserved by Redux.
110
- * For any unknown actions, you must return the current state.
111
- * If the current state is undefined, you must return the initial state.
112
- * Do not reference these action types directly in your code.
113
- */
114
- var randomString = function randomString() {
115
- return Math.random().toString(36).substring(7).split('').join('.');
116
- };
117
- ({
118
- INIT: "@@redux/INIT" + randomString(),
119
- REPLACE: "@@redux/REPLACE" + randomString(),
120
- PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
121
- return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
122
- }
123
- });
97
+ var react = {exports: {}};
124
98
 
125
- // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
126
- function miniKindOf(val) {
127
- if (val === void 0) return 'undefined';
128
- if (val === null) return 'null';
129
- var type = typeof val;
130
- switch (type) {
131
- case 'boolean':
132
- case 'string':
133
- case 'number':
134
- case 'symbol':
135
- case 'function':
136
- {
137
- return type;
138
- }
139
- }
140
- if (Array.isArray(val)) return 'array';
141
- if (isDate(val)) return 'date';
142
- if (isError(val)) return 'error';
143
- var constructorName = ctorName(val);
144
- switch (constructorName) {
145
- case 'Symbol':
146
- case 'Promise':
147
- case 'WeakMap':
148
- case 'WeakSet':
149
- case 'Map':
150
- case 'Set':
151
- return constructorName;
152
- } // other
99
+ var react_production_min = {};
153
100
 
154
- return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
155
- }
156
- function ctorName(val) {
157
- return typeof val.constructor === 'function' ? val.constructor.name : null;
158
- }
159
- function isError(val) {
160
- return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
161
- }
162
- function isDate(val) {
163
- if (val instanceof Date) return true;
164
- return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
165
- }
166
- function kindOf(val) {
167
- var typeOfVal = typeof val;
168
- if (process.env.NODE_ENV !== 'production') {
169
- typeOfVal = miniKindOf(val);
170
- }
171
- return typeOfVal;
172
- }
173
- function bindActionCreator(actionCreator, dispatch) {
174
- return function () {
175
- return dispatch(actionCreator.apply(this, arguments));
176
- };
177
- }
178
101
  /**
179
- * Turns an object whose values are action creators, into an object with the
180
- * same keys, but with every function wrapped into a `dispatch` call so they
181
- * may be invoked directly. This is just a convenience method, as you can call
182
- * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
183
- *
184
- * For convenience, you can also pass an action creator as the first argument,
185
- * and get a dispatch wrapped function in return.
186
- *
187
- * @param {Function|Object} actionCreators An object whose values are action
188
- * creator functions. One handy way to obtain it is to use ES6 `import * as`
189
- * syntax. You may also pass a single function.
102
+ * @license React
103
+ * react.production.min.js
190
104
  *
191
- * @param {Function} dispatch The `dispatch` function available on your Redux
192
- * store.
105
+ * Copyright (c) Facebook, Inc. and its affiliates.
193
106
  *
194
- * @returns {Function|Object} The object mimicking the original object, but with
195
- * every action creator wrapped into the `dispatch` call. If you passed a
196
- * function as `actionCreators`, the return value will also be a single
197
- * function.
107
+ * This source code is licensed under the MIT license found in the
108
+ * LICENSE file in the root directory of this source tree.
198
109
  */
199
-
200
- function bindActionCreators(actionCreators, dispatch) {
201
- if (typeof actionCreators === 'function') {
202
- return bindActionCreator(actionCreators, dispatch);
110
+ var hasRequiredReact_production_min;
111
+ function requireReact_production_min() {
112
+ if (hasRequiredReact_production_min) return react_production_min;
113
+ hasRequiredReact_production_min = 1;
114
+ var l = Symbol.for("react.element"),
115
+ n = Symbol.for("react.portal"),
116
+ p = Symbol.for("react.fragment"),
117
+ q = Symbol.for("react.strict_mode"),
118
+ r = Symbol.for("react.profiler"),
119
+ t = Symbol.for("react.provider"),
120
+ u = Symbol.for("react.context"),
121
+ v = Symbol.for("react.forward_ref"),
122
+ w = Symbol.for("react.suspense"),
123
+ x = Symbol.for("react.memo"),
124
+ y = Symbol.for("react.lazy"),
125
+ z = Symbol.iterator;
126
+ function A(a) {
127
+ if (null === a || "object" !== typeof a) return null;
128
+ a = z && a[z] || a["@@iterator"];
129
+ return "function" === typeof a ? a : null;
203
130
  }
204
- if (typeof actionCreators !== 'object' || actionCreators === null) {
205
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(16) : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
131
+ var B = {
132
+ isMounted: function () {
133
+ return !1;
134
+ },
135
+ enqueueForceUpdate: function () {},
136
+ enqueueReplaceState: function () {},
137
+ enqueueSetState: function () {}
138
+ },
139
+ C = Object.assign,
140
+ D = {};
141
+ function E(a, b, e) {
142
+ this.props = a;
143
+ this.context = b;
144
+ this.refs = D;
145
+ this.updater = e || B;
206
146
  }
207
- var boundActionCreators = {};
208
- for (var key in actionCreators) {
209
- var actionCreator = actionCreators[key];
210
- if (typeof actionCreator === 'function') {
211
- boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
212
- }
147
+ E.prototype.isReactComponent = {};
148
+ E.prototype.setState = function (a, b) {
149
+ if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
150
+ this.updater.enqueueSetState(this, a, b, "setState");
151
+ };
152
+ E.prototype.forceUpdate = function (a) {
153
+ this.updater.enqueueForceUpdate(this, a, "forceUpdate");
154
+ };
155
+ function F() {}
156
+ F.prototype = E.prototype;
157
+ function G(a, b, e) {
158
+ this.props = a;
159
+ this.context = b;
160
+ this.refs = D;
161
+ this.updater = e || B;
213
162
  }
214
- return boundActionCreators;
215
- }
216
-
217
- // Cache implementation based on Erik Rasmussen's `lru-memoize`:
218
- // https://github.com/erikras/lru-memoize
219
- var NOT_FOUND = 'NOT_FOUND';
220
- function createSingletonCache(equals) {
221
- var entry;
222
- return {
223
- get: function get(key) {
224
- if (entry && equals(entry.key, key)) {
225
- return entry.value;
226
- }
227
- return NOT_FOUND;
228
- },
229
- put: function put(key, value) {
230
- entry = {
231
- key: key,
232
- value: value
233
- };
234
- },
235
- getEntries: function getEntries() {
236
- return entry ? [entry] : [];
163
+ var H = G.prototype = new F();
164
+ H.constructor = G;
165
+ C(H, E.prototype);
166
+ H.isPureReactComponent = !0;
167
+ var I = Array.isArray,
168
+ J = Object.prototype.hasOwnProperty,
169
+ K = {
170
+ current: null
237
171
  },
238
- clear: function clear() {
239
- entry = undefined;
172
+ L = {
173
+ key: !0,
174
+ ref: !0,
175
+ __self: !0,
176
+ __source: !0
177
+ };
178
+ function M(a, b, e) {
179
+ var d,
180
+ c = {},
181
+ k = null,
182
+ h = null;
183
+ if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
184
+ var g = arguments.length - 2;
185
+ if (1 === g) c.children = e;else if (1 < g) {
186
+ for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
187
+ c.children = f;
240
188
  }
241
- };
242
- }
243
- function createLruCache(maxSize, equals) {
244
- var entries = [];
245
- function get(key) {
246
- var cacheIndex = entries.findIndex(function (entry) {
247
- return equals(key, entry.key);
248
- }); // We found a cached entry
249
-
250
- if (cacheIndex > -1) {
251
- var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
252
-
253
- if (cacheIndex > 0) {
254
- entries.splice(cacheIndex, 1);
255
- entries.unshift(entry);
256
- }
257
- return entry.value;
258
- } // No entry found in cache, return sentinel
259
-
260
- return NOT_FOUND;
189
+ if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
190
+ return {
191
+ $$typeof: l,
192
+ type: a,
193
+ key: k,
194
+ ref: h,
195
+ props: c,
196
+ _owner: K.current
197
+ };
261
198
  }
262
- function put(key, value) {
263
- if (get(key) === NOT_FOUND) {
264
- // TODO Is unshift slow?
265
- entries.unshift({
266
- key: key,
267
- value: value
268
- });
269
- if (entries.length > maxSize) {
270
- entries.pop();
271
- }
272
- }
199
+ function N(a, b) {
200
+ return {
201
+ $$typeof: l,
202
+ type: a.type,
203
+ key: b,
204
+ ref: a.ref,
205
+ props: a.props,
206
+ _owner: a._owner
207
+ };
273
208
  }
274
- function getEntries() {
275
- return entries;
209
+ function O(a) {
210
+ return "object" === typeof a && null !== a && a.$$typeof === l;
276
211
  }
277
- function clear() {
278
- entries = [];
212
+ function escape(a) {
213
+ var b = {
214
+ "=": "=0",
215
+ ":": "=2"
216
+ };
217
+ return "$" + a.replace(/[=:]/g, function (a) {
218
+ return b[a];
219
+ });
279
220
  }
280
- return {
281
- get: get,
282
- put: put,
283
- getEntries: getEntries,
284
- clear: clear
285
- };
286
- }
287
- var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
288
- return a === b;
289
- };
290
- function createCacheKeyComparator(equalityCheck) {
291
- return function areArgumentsShallowlyEqual(prev, next) {
292
- if (prev === null || next === null || prev.length !== next.length) {
293
- return false;
294
- } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
295
-
296
- var length = prev.length;
297
- for (var i = 0; i < length; i++) {
298
- if (!equalityCheck(prev[i], next[i])) {
299
- return false;
300
- }
301
- }
302
- return true;
303
- };
304
- }
305
- // defaultMemoize now supports a configurable cache size with LRU behavior,
306
- // and optional comparison of the result value with existing values
307
- function defaultMemoize(func, equalityCheckOrOptions) {
308
- var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
309
- equalityCheck: equalityCheckOrOptions
310
- };
311
- var _providedOptions$equa = providedOptions.equalityCheck,
312
- equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
313
- _providedOptions$maxS = providedOptions.maxSize,
314
- maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
315
- resultEqualityCheck = providedOptions.resultEqualityCheck;
316
- var comparator = createCacheKeyComparator(equalityCheck);
317
- var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
318
-
319
- function memoized() {
320
- var value = cache.get(arguments);
321
- if (value === NOT_FOUND) {
322
- // @ts-ignore
323
- value = func.apply(null, arguments);
324
- if (resultEqualityCheck) {
325
- var entries = cache.getEntries();
326
- var matchingEntry = entries.find(function (entry) {
327
- return resultEqualityCheck(entry.value, value);
328
- });
329
- if (matchingEntry) {
330
- value = matchingEntry.value;
221
+ var P = /\/+/g;
222
+ function Q(a, b) {
223
+ return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
224
+ }
225
+ function R(a, b, e, d, c) {
226
+ var k = typeof a;
227
+ if ("undefined" === k || "boolean" === k) a = null;
228
+ var h = !1;
229
+ if (null === a) h = !0;else switch (k) {
230
+ case "string":
231
+ case "number":
232
+ h = !0;
233
+ break;
234
+ case "object":
235
+ switch (a.$$typeof) {
236
+ case l:
237
+ case n:
238
+ h = !0;
331
239
  }
332
- }
333
- cache.put(arguments, value);
334
240
  }
335
- return value;
241
+ if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function (a) {
242
+ return a;
243
+ })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
244
+ h = 0;
245
+ d = "" === d ? "." : d + ":";
246
+ if (I(a)) for (var g = 0; g < a.length; g++) {
247
+ k = a[g];
248
+ var f = d + Q(k, g);
249
+ h += R(k, b, e, f, c);
250
+ } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
251
+ return h;
336
252
  }
337
- memoized.clearCache = function () {
338
- return cache.clear();
339
- };
340
- return memoized;
341
- }
342
-
343
- function getDependencies(funcs) {
344
- var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
345
- if (!dependencies.every(function (dep) {
346
- return typeof dep === 'function';
347
- })) {
348
- var dependencyTypes = dependencies.map(function (dep) {
349
- return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
350
- }).join(', ');
351
- throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
253
+ function S(a, b, e) {
254
+ if (null == a) return a;
255
+ var d = [],
256
+ c = 0;
257
+ R(a, d, "", "", function (a) {
258
+ return b.call(e, a, c++);
259
+ });
260
+ return d;
352
261
  }
353
- return dependencies;
354
- }
355
- function createSelectorCreator(memoize) {
356
- for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
357
- memoizeOptionsFromArgs[_key - 1] = arguments[_key];
262
+ function T(a) {
263
+ if (-1 === a._status) {
264
+ var b = a._result;
265
+ b = b();
266
+ b.then(function (b) {
267
+ if (0 === a._status || -1 === a._status) a._status = 1, a._result = b;
268
+ }, function (b) {
269
+ if (0 === a._status || -1 === a._status) a._status = 2, a._result = b;
270
+ });
271
+ -1 === a._status && (a._status = 0, a._result = b);
272
+ }
273
+ if (1 === a._status) return a._result.default;
274
+ throw a._result;
358
275
  }
359
- var createSelector = function createSelector() {
360
- for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
361
- funcs[_key2] = arguments[_key2];
276
+ var U = {
277
+ current: null
278
+ },
279
+ V = {
280
+ transition: null
281
+ },
282
+ W = {
283
+ ReactCurrentDispatcher: U,
284
+ ReactCurrentBatchConfig: V,
285
+ ReactCurrentOwner: K
286
+ };
287
+ function X() {
288
+ throw Error("act(...) is not supported in production builds of React.");
289
+ }
290
+ react_production_min.Children = {
291
+ map: S,
292
+ forEach: function (a, b, e) {
293
+ S(a, function () {
294
+ b.apply(this, arguments);
295
+ }, e);
296
+ },
297
+ count: function (a) {
298
+ var b = 0;
299
+ S(a, function () {
300
+ b++;
301
+ });
302
+ return b;
303
+ },
304
+ toArray: function (a) {
305
+ return S(a, function (a) {
306
+ return a;
307
+ }) || [];
308
+ },
309
+ only: function (a) {
310
+ if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
311
+ return a;
362
312
  }
363
- var _recomputations = 0;
364
- var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
365
- // So, start by declaring the default value here.
366
- // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
367
-
368
- var directlyPassedOptions = {
369
- memoizeOptions: undefined
370
- }; // Normally, the result func or "output selector" is the last arg
371
-
372
- var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
373
-
374
- if (typeof resultFunc === 'object') {
375
- directlyPassedOptions = resultFunc; // and pop the real result func off
376
-
377
- resultFunc = funcs.pop();
313
+ };
314
+ react_production_min.Component = E;
315
+ react_production_min.Fragment = p;
316
+ react_production_min.Profiler = r;
317
+ react_production_min.PureComponent = G;
318
+ react_production_min.StrictMode = q;
319
+ react_production_min.Suspense = w;
320
+ react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
321
+ react_production_min.act = X;
322
+ react_production_min.cloneElement = function (a, b, e) {
323
+ if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
324
+ var d = C({}, a.props),
325
+ c = a.key,
326
+ k = a.ref,
327
+ h = a._owner;
328
+ if (null != b) {
329
+ void 0 !== b.ref && (k = b.ref, h = K.current);
330
+ void 0 !== b.key && (c = "" + b.key);
331
+ if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
332
+ for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
378
333
  }
379
- if (typeof resultFunc !== 'function') {
380
- throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
381
- } // Determine which set of options we're using. Prefer options passed directly,
382
- // but fall back to options given to createSelectorCreator.
383
-
384
- var _directlyPassedOption = directlyPassedOptions,
385
- _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
386
- memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
387
- // is an array. In most libs I've looked at, it's an equality function or options object.
388
- // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
389
- // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
390
- // we wrap it in an array so we can apply it.
391
-
392
- var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
393
- var dependencies = getDependencies(funcs);
394
- var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
395
- _recomputations++; // apply arguments instead of spreading for performance.
396
-
397
- return resultFunc.apply(null, arguments);
398
- }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
399
-
400
- var selector = memoize(function dependenciesChecker() {
401
- var params = [];
402
- var length = dependencies.length;
403
- for (var i = 0; i < length; i++) {
404
- // apply arguments instead of spreading and mutate a local list of params for performance.
405
- // @ts-ignore
406
- params.push(dependencies[i].apply(null, arguments));
407
- } // apply arguments instead of spreading for performance.
408
-
409
- _lastResult = memoizedResultFunc.apply(null, params);
410
- return _lastResult;
411
- });
412
- Object.assign(selector, {
413
- resultFunc: resultFunc,
414
- memoizedResultFunc: memoizedResultFunc,
415
- dependencies: dependencies,
416
- lastResult: function lastResult() {
417
- return _lastResult;
418
- },
419
- recomputations: function recomputations() {
420
- return _recomputations;
421
- },
422
- resetRecomputations: function resetRecomputations() {
423
- return _recomputations = 0;
424
- }
425
- });
426
- return selector;
427
- }; // @ts-ignore
428
-
429
- return createSelector;
430
- }
431
- var createSelector = /* #__PURE__ */createSelectorCreator(defaultMemoize);
432
-
433
- /** A function that accepts a potential "extra argument" value to be injected later,
434
- * and returns an instance of the thunk middleware that uses that value
435
- */
436
- function createThunkMiddleware(extraArgument) {
437
- // Standard Redux middleware definition pattern:
438
- // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
439
- var middleware = function middleware(_ref) {
440
- var dispatch = _ref.dispatch,
441
- getState = _ref.getState;
442
- return function (next) {
443
- return function (action) {
444
- // The thunk middleware looks for any functions that were passed to `store.dispatch`.
445
- // If this "action" is really a function, call it and return the result.
446
- if (typeof action === 'function') {
447
- // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
448
- return action(dispatch, getState, extraArgument);
449
- } // Otherwise, pass the action down the middleware chain as usual
450
-
451
- return next(action);
452
- };
334
+ var f = arguments.length - 2;
335
+ if (1 === f) d.children = e;else if (1 < f) {
336
+ g = Array(f);
337
+ for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
338
+ d.children = g;
339
+ }
340
+ return {
341
+ $$typeof: l,
342
+ type: a.type,
343
+ key: c,
344
+ ref: k,
345
+ props: d,
346
+ _owner: h
453
347
  };
454
348
  };
455
- return middleware;
456
- }
457
- var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
458
- // with whatever "extra arg" they want to inject into their thunks
459
-
460
- thunk.withExtraArgument = createThunkMiddleware;
461
-
462
- var __extends = undefined && undefined.__extends || function () {
463
- var extendStatics = function (d, b) {
464
- extendStatics = Object.setPrototypeOf || {
465
- __proto__: []
466
- } instanceof Array && function (d, b) {
467
- d.__proto__ = b;
468
- } || function (d, b) {
469
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
349
+ react_production_min.createContext = function (a) {
350
+ a = {
351
+ $$typeof: u,
352
+ _currentValue: a,
353
+ _currentValue2: a,
354
+ _threadCount: 0,
355
+ Provider: null,
356
+ Consumer: null,
357
+ _defaultValue: null,
358
+ _globalName: null
470
359
  };
471
- return extendStatics(d, b);
360
+ a.Provider = {
361
+ $$typeof: t,
362
+ _context: a
363
+ };
364
+ return a.Consumer = a;
472
365
  };
473
- return function (d, b) {
474
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
475
- extendStatics(d, b);
476
- function __() {
477
- this.constructor = d;
478
- }
479
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
366
+ react_production_min.createElement = M;
367
+ react_production_min.createFactory = function (a) {
368
+ var b = M.bind(null, a);
369
+ b.type = a;
370
+ return b;
480
371
  };
481
- }();
482
- var __generator = undefined && undefined.__generator || function (thisArg, body) {
483
- var _ = {
484
- label: 0,
485
- sent: function () {
486
- if (t[0] & 1) throw t[1];
487
- return t[1];
488
- },
489
- trys: [],
490
- ops: []
491
- },
492
- f,
493
- y,
494
- t,
495
- g;
496
- return g = {
497
- next: verb(0),
498
- "throw": verb(1),
499
- "return": verb(2)
500
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
501
- return this;
502
- }), g;
503
- function verb(n) {
504
- return function (v) {
505
- return step([n, v]);
506
- };
507
- }
508
- function step(op) {
509
- if (f) throw new TypeError("Generator is already executing.");
510
- while (_) try {
511
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
512
- if (y = 0, t) op = [op[0] & 2, t.value];
513
- switch (op[0]) {
514
- case 0:
515
- case 1:
516
- t = op;
517
- break;
518
- case 4:
519
- _.label++;
520
- return {
521
- value: op[1],
522
- done: false
523
- };
524
- case 5:
525
- _.label++;
526
- y = op[1];
527
- op = [0];
528
- continue;
529
- case 7:
530
- op = _.ops.pop();
531
- _.trys.pop();
532
- continue;
533
- default:
534
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
535
- _ = 0;
536
- continue;
537
- }
538
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
539
- _.label = op[1];
540
- break;
541
- }
542
- if (op[0] === 6 && _.label < t[1]) {
543
- _.label = t[1];
544
- t = op;
545
- break;
546
- }
547
- if (t && _.label < t[2]) {
548
- _.label = t[2];
549
- _.ops.push(op);
550
- break;
551
- }
552
- if (t[2]) _.ops.pop();
553
- _.trys.pop();
554
- continue;
555
- }
556
- op = body.call(thisArg, _);
557
- } catch (e) {
558
- op = [6, e];
559
- y = 0;
560
- } finally {
561
- f = t = 0;
562
- }
563
- if (op[0] & 5) throw op[1];
372
+ react_production_min.createRef = function () {
564
373
  return {
565
- value: op[0] ? op[1] : void 0,
566
- done: true
374
+ current: null
567
375
  };
568
- }
569
- };
570
- var __spreadArray = undefined && undefined.__spreadArray || function (to, from) {
571
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
572
- return to;
573
- };
574
- var __defProp = Object.defineProperty;
575
- var __defProps = Object.defineProperties;
576
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
577
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
578
- var __hasOwnProp = Object.prototype.hasOwnProperty;
579
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
580
- var __defNormalProp = function (obj, key, value) {
581
- return key in obj ? __defProp(obj, key, {
582
- enumerable: true,
583
- configurable: true,
584
- writable: true,
585
- value: value
586
- }) : obj[key] = value;
587
- };
588
- var __spreadValues = function (a, b) {
589
- for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
590
- if (__getOwnPropSymbols) for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
591
- var prop = _c[_i];
592
- if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
593
- }
594
- return a;
595
- };
596
- var __spreadProps = function (a, b) {
597
- return __defProps(a, __getOwnPropDescs(b));
598
- };
599
- var __async = function (__this, __arguments, generator) {
600
- return new Promise(function (resolve, reject) {
601
- var fulfilled = function (value) {
602
- try {
603
- step(generator.next(value));
604
- } catch (e) {
605
- reject(e);
606
- }
376
+ };
377
+ react_production_min.forwardRef = function (a) {
378
+ return {
379
+ $$typeof: v,
380
+ render: a
607
381
  };
608
- var rejected = function (value) {
609
- try {
610
- step(generator.throw(value));
611
- } catch (e) {
612
- reject(e);
613
- }
382
+ };
383
+ react_production_min.isValidElement = O;
384
+ react_production_min.lazy = function (a) {
385
+ return {
386
+ $$typeof: y,
387
+ _payload: {
388
+ _status: -1,
389
+ _result: a
390
+ },
391
+ _init: T
614
392
  };
615
- var step = function (x) {
616
- return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
393
+ };
394
+ react_production_min.memo = function (a, b) {
395
+ return {
396
+ $$typeof: x,
397
+ type: a,
398
+ compare: void 0 === b ? null : b
617
399
  };
618
- step((generator = generator.apply(__this, __arguments)).next());
619
- });
620
- };
621
- var createDraftSafeSelector = function () {
622
- var args = [];
623
- for (var _i = 0; _i < arguments.length; _i++) {
624
- args[_i] = arguments[_i];
625
- }
626
- var selector = createSelector.apply(void 0, args);
627
- var wrappedSelector = function (value) {
628
- var rest = [];
629
- for (var _i = 1; _i < arguments.length; _i++) {
630
- rest[_i - 1] = arguments[_i];
631
- }
632
- return selector.apply(void 0, __spreadArray([r(value) ? R(value) : value], rest));
633
400
  };
634
- return wrappedSelector;
635
- };
636
- // src/createAction.ts
637
- function createAction(type, prepareAction) {
638
- function actionCreator() {
639
- var args = [];
640
- for (var _i = 0; _i < arguments.length; _i++) {
641
- args[_i] = arguments[_i];
642
- }
643
- if (prepareAction) {
644
- var prepared = prepareAction.apply(void 0, args);
645
- if (!prepared) {
646
- throw new Error("prepareAction did not return an object");
647
- }
648
- return __spreadValues(__spreadValues({
649
- type: type,
650
- payload: prepared.payload
651
- }, "meta" in prepared && {
652
- meta: prepared.meta
653
- }), "error" in prepared && {
654
- error: prepared.error
655
- });
401
+ react_production_min.startTransition = function (a) {
402
+ var b = V.transition;
403
+ V.transition = {};
404
+ try {
405
+ a();
406
+ } finally {
407
+ V.transition = b;
656
408
  }
657
- return {
658
- type: type,
659
- payload: args[0]
660
- };
661
- }
662
- actionCreator.toString = function () {
663
- return "" + type;
664
409
  };
665
- actionCreator.type = type;
666
- actionCreator.match = function (action) {
667
- return action.type === type;
410
+ react_production_min.unstable_act = X;
411
+ react_production_min.useCallback = function (a, b) {
412
+ return U.current.useCallback(a, b);
668
413
  };
669
- return actionCreator;
670
- }
671
- /** @class */(function (_super) {
672
- __extends(MiddlewareArray, _super);
673
- function MiddlewareArray() {
674
- var args = [];
675
- for (var _i = 0; _i < arguments.length; _i++) {
676
- args[_i] = arguments[_i];
677
- }
678
- var _this = _super.apply(this, args) || this;
679
- Object.setPrototypeOf(_this, MiddlewareArray.prototype);
680
- return _this;
681
- }
682
- Object.defineProperty(MiddlewareArray, Symbol.species, {
683
- get: function () {
684
- return MiddlewareArray;
685
- },
686
- enumerable: false,
687
- configurable: true
688
- });
689
- MiddlewareArray.prototype.concat = function () {
690
- var arr = [];
691
- for (var _i = 0; _i < arguments.length; _i++) {
692
- arr[_i] = arguments[_i];
693
- }
694
- return _super.prototype.concat.apply(this, arr);
414
+ react_production_min.useContext = function (a) {
415
+ return U.current.useContext(a);
695
416
  };
696
- MiddlewareArray.prototype.prepend = function () {
697
- var arr = [];
698
- for (var _i = 0; _i < arguments.length; _i++) {
699
- arr[_i] = arguments[_i];
700
- }
701
- if (arr.length === 1 && Array.isArray(arr[0])) {
702
- return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
703
- }
704
- return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
417
+ react_production_min.useDebugValue = function () {};
418
+ react_production_min.useDeferredValue = function (a) {
419
+ return U.current.useDeferredValue(a);
705
420
  };
706
- return MiddlewareArray;
707
- })(Array);
708
- /** @class */(function (_super) {
709
- __extends(EnhancerArray, _super);
710
- function EnhancerArray() {
711
- var args = [];
712
- for (var _i = 0; _i < arguments.length; _i++) {
713
- args[_i] = arguments[_i];
714
- }
715
- var _this = _super.apply(this, args) || this;
716
- Object.setPrototypeOf(_this, EnhancerArray.prototype);
717
- return _this;
718
- }
719
- Object.defineProperty(EnhancerArray, Symbol.species, {
720
- get: function () {
721
- return EnhancerArray;
722
- },
723
- enumerable: false,
724
- configurable: true
725
- });
726
- EnhancerArray.prototype.concat = function () {
727
- var arr = [];
728
- for (var _i = 0; _i < arguments.length; _i++) {
729
- arr[_i] = arguments[_i];
730
- }
731
- return _super.prototype.concat.apply(this, arr);
421
+ react_production_min.useEffect = function (a, b) {
422
+ return U.current.useEffect(a, b);
732
423
  };
733
- EnhancerArray.prototype.prepend = function () {
734
- var arr = [];
735
- for (var _i = 0; _i < arguments.length; _i++) {
736
- arr[_i] = arguments[_i];
737
- }
738
- if (arr.length === 1 && Array.isArray(arr[0])) {
739
- return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
740
- }
741
- return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
424
+ react_production_min.useId = function () {
425
+ return U.current.useId();
742
426
  };
743
- return EnhancerArray;
744
- })(Array);
745
- // src/immutableStateInvariantMiddleware.ts
746
- process.env.NODE_ENV === "production";
747
- // src/configureStore.ts
748
- process.env.NODE_ENV === "production";
749
- // src/nanoid.ts
750
- var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
751
- var nanoid = function (size) {
752
- if (size === void 0) {
753
- size = 21;
754
- }
755
- var id = "";
756
- var i = size;
757
- while (i--) {
758
- id += urlAlphabet[Math.random() * 64 | 0];
759
- }
760
- return id;
761
- };
762
- // src/createAsyncThunk.ts
763
- var commonProperties = ["name", "message", "stack", "code"];
764
- var RejectWithValue = /** @class */function () {
765
- function RejectWithValue(payload, meta) {
766
- this.payload = payload;
767
- this.meta = meta;
768
- }
769
- return RejectWithValue;
770
- }();
771
- var FulfillWithMeta = /** @class */function () {
772
- function FulfillWithMeta(payload, meta) {
773
- this.payload = payload;
774
- this.meta = meta;
775
- }
776
- return FulfillWithMeta;
777
- }();
778
- var miniSerializeError = function (value) {
779
- if (typeof value === "object" && value !== null) {
780
- var simpleError = {};
781
- for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
782
- var property = commonProperties_1[_i];
783
- if (typeof value[property] === "string") {
784
- simpleError[property] = value[property];
785
- }
786
- }
787
- return simpleError;
788
- }
789
- return {
790
- message: String(value)
427
+ react_production_min.useImperativeHandle = function (a, b, e) {
428
+ return U.current.useImperativeHandle(a, b, e);
791
429
  };
792
- };
793
- (function () {
794
- function createAsyncThunk2(typePrefix, payloadCreator, options) {
795
- var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) {
796
- return {
797
- payload: payload,
798
- meta: __spreadProps(__spreadValues({}, meta || {}), {
799
- arg: arg,
800
- requestId: requestId,
801
- requestStatus: "fulfilled"
802
- })
803
- };
804
- });
805
- var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) {
806
- return {
807
- payload: void 0,
808
- meta: __spreadProps(__spreadValues({}, meta || {}), {
809
- arg: arg,
810
- requestId: requestId,
811
- requestStatus: "pending"
812
- })
813
- };
814
- });
815
- var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) {
816
- return {
817
- payload: payload,
818
- error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
819
- meta: __spreadProps(__spreadValues({}, meta || {}), {
820
- arg: arg,
821
- requestId: requestId,
822
- rejectedWithValue: !!payload,
823
- requestStatus: "rejected",
824
- aborted: (error == null ? void 0 : error.name) === "AbortError",
825
- condition: (error == null ? void 0 : error.name) === "ConditionError"
826
- })
827
- };
828
- });
829
- var displayedWarning = false;
830
- var AC = typeof AbortController !== "undefined" ? AbortController : (/** @class */function () {
831
- function class_1() {
832
- this.signal = {
833
- aborted: false,
834
- addEventListener: function () {},
835
- dispatchEvent: function () {
836
- return false;
837
- },
838
- onabort: function () {},
839
- removeEventListener: function () {},
840
- reason: void 0,
841
- throwIfAborted: function () {}
842
- };
843
- }
844
- class_1.prototype.abort = function () {
845
- if (process.env.NODE_ENV !== "production") {
846
- if (!displayedWarning) {
847
- displayedWarning = true;
848
- console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.");
849
- }
850
- }
851
- };
852
- return class_1;
853
- }());
854
- function actionCreator(arg) {
855
- return function (dispatch, getState, extra) {
856
- var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
857
- var abortController = new AC();
858
- var abortReason;
859
- function abort(reason) {
860
- abortReason = reason;
861
- abortController.abort();
862
- }
863
- var promise2 = function () {
864
- return __async(this, null, function () {
865
- var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
866
- return __generator(this, function (_c) {
867
- switch (_c.label) {
868
- case 0:
869
- _c.trys.push([0, 4,, 5]);
870
- conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, {
871
- getState: getState,
872
- extra: extra
873
- });
874
- if (!isThenable(conditionResult)) return [3 /*break*/, 2];
875
- return [4 /*yield*/, conditionResult];
876
- case 1:
877
- conditionResult = _c.sent();
878
- _c.label = 2;
879
- case 2:
880
- if (conditionResult === false || abortController.signal.aborted) {
881
- throw {
882
- name: "ConditionError",
883
- message: "Aborted due to condition callback returning false."
884
- };
885
- }
886
- abortedPromise = new Promise(function (_, reject) {
887
- return abortController.signal.addEventListener("abort", function () {
888
- return reject({
889
- name: "AbortError",
890
- message: abortReason || "Aborted"
891
- });
892
- });
893
- });
894
- dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, {
895
- requestId: requestId,
896
- arg: arg
897
- }, {
898
- getState: getState,
899
- extra: extra
900
- })));
901
- return [4 /*yield*/, Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {
902
- dispatch: dispatch,
903
- getState: getState,
904
- extra: extra,
905
- requestId: requestId,
906
- signal: abortController.signal,
907
- abort: abort,
908
- rejectWithValue: function (value, meta) {
909
- return new RejectWithValue(value, meta);
910
- },
911
- fulfillWithValue: function (value, meta) {
912
- return new FulfillWithMeta(value, meta);
913
- }
914
- })).then(function (result) {
915
- if (result instanceof RejectWithValue) {
916
- throw result;
917
- }
918
- if (result instanceof FulfillWithMeta) {
919
- return fulfilled(result.payload, requestId, arg, result.meta);
920
- }
921
- return fulfilled(result, requestId, arg);
922
- })])];
923
- case 3:
924
- finalAction = _c.sent();
925
- return [3 /*break*/, 5];
926
- case 4:
927
- err_1 = _c.sent();
928
- finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
929
- return [3 /*break*/, 5];
930
- case 5:
931
- skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
932
- if (!skipDispatch) {
933
- dispatch(finalAction);
934
- }
935
- return [2 /*return*/, finalAction];
936
- }
937
- });
938
- });
939
- }();
940
- return Object.assign(promise2, {
941
- abort: abort,
942
- requestId: requestId,
943
- arg: arg,
944
- unwrap: function () {
945
- return promise2.then(unwrapResult);
946
- }
947
- });
948
- };
949
- }
950
- return Object.assign(actionCreator, {
951
- pending: pending,
952
- rejected: rejected,
953
- fulfilled: fulfilled,
954
- typePrefix: typePrefix
955
- });
956
- }
957
- createAsyncThunk2.withTypes = function () {
958
- return createAsyncThunk2;
430
+ react_production_min.useInsertionEffect = function (a, b) {
431
+ return U.current.useInsertionEffect(a, b);
959
432
  };
960
- return createAsyncThunk2;
961
- })();
962
- function unwrapResult(action) {
963
- if (action.meta && action.meta.rejectedWithValue) {
964
- throw action.payload;
965
- }
966
- if (action.error) {
967
- throw action.error;
968
- }
969
- return action.payload;
970
- }
971
- function isThenable(value) {
972
- return value !== null && typeof value === "object" && typeof value.then === "function";
433
+ react_production_min.useLayoutEffect = function (a, b) {
434
+ return U.current.useLayoutEffect(a, b);
435
+ };
436
+ react_production_min.useMemo = function (a, b) {
437
+ return U.current.useMemo(a, b);
438
+ };
439
+ react_production_min.useReducer = function (a, b, e) {
440
+ return U.current.useReducer(a, b, e);
441
+ };
442
+ react_production_min.useRef = function (a) {
443
+ return U.current.useRef(a);
444
+ };
445
+ react_production_min.useState = function (a) {
446
+ return U.current.useState(a);
447
+ };
448
+ react_production_min.useSyncExternalStore = function (a, b, e) {
449
+ return U.current.useSyncExternalStore(a, b, e);
450
+ };
451
+ react_production_min.useTransition = function () {
452
+ return U.current.useTransition();
453
+ };
454
+ react_production_min.version = "18.3.1";
455
+ return react_production_min;
973
456
  }
974
- var alm = "listenerMiddleware";
975
- createAction(alm + "/add");
976
- createAction(alm + "/removeAll");
977
- createAction(alm + "/remove");
978
- var promise;
979
- typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : globalThis) : function (cb) {
980
- return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) {
981
- return setTimeout(function () {
982
- throw err;
983
- }, 0);
984
- });
985
- };
986
- // src/index.ts
987
- F();
988
-
989
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
990
-
991
- var react = {exports: {}};
992
457
 
993
- var react_production_min = {};
458
+ var react_development = {exports: {}};
994
459
 
995
460
  /**
996
461
  * @license React
997
- * react.production.min.js
998
- *
999
- * Copyright (c) Facebook, Inc. and its affiliates.
1000
- *
1001
- * This source code is licensed under the MIT license found in the
1002
- * LICENSE file in the root directory of this source tree.
1003
- */
1004
- var hasRequiredReact_production_min;
1005
- function requireReact_production_min() {
1006
- if (hasRequiredReact_production_min) return react_production_min;
1007
- hasRequiredReact_production_min = 1;
1008
- var l = Symbol.for("react.element"),
1009
- n = Symbol.for("react.portal"),
1010
- p = Symbol.for("react.fragment"),
1011
- q = Symbol.for("react.strict_mode"),
1012
- r = Symbol.for("react.profiler"),
1013
- t = Symbol.for("react.provider"),
1014
- u = Symbol.for("react.context"),
1015
- v = Symbol.for("react.forward_ref"),
1016
- w = Symbol.for("react.suspense"),
1017
- x = Symbol.for("react.memo"),
1018
- y = Symbol.for("react.lazy"),
1019
- z = Symbol.iterator;
1020
- function A(a) {
1021
- if (null === a || "object" !== typeof a) return null;
1022
- a = z && a[z] || a["@@iterator"];
1023
- return "function" === typeof a ? a : null;
1024
- }
1025
- var B = {
1026
- isMounted: function () {
1027
- return !1;
1028
- },
1029
- enqueueForceUpdate: function () {},
1030
- enqueueReplaceState: function () {},
1031
- enqueueSetState: function () {}
1032
- },
1033
- C = Object.assign,
1034
- D = {};
1035
- function E(a, b, e) {
1036
- this.props = a;
1037
- this.context = b;
1038
- this.refs = D;
1039
- this.updater = e || B;
1040
- }
1041
- E.prototype.isReactComponent = {};
1042
- E.prototype.setState = function (a, b) {
1043
- if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
1044
- this.updater.enqueueSetState(this, a, b, "setState");
1045
- };
1046
- E.prototype.forceUpdate = function (a) {
1047
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
1048
- };
1049
- function F() {}
1050
- F.prototype = E.prototype;
1051
- function G(a, b, e) {
1052
- this.props = a;
1053
- this.context = b;
1054
- this.refs = D;
1055
- this.updater = e || B;
1056
- }
1057
- var H = G.prototype = new F();
1058
- H.constructor = G;
1059
- C(H, E.prototype);
1060
- H.isPureReactComponent = !0;
1061
- var I = Array.isArray,
1062
- J = Object.prototype.hasOwnProperty,
1063
- K = {
1064
- current: null
1065
- },
1066
- L = {
1067
- key: !0,
1068
- ref: !0,
1069
- __self: !0,
1070
- __source: !0
1071
- };
1072
- function M(a, b, e) {
1073
- var d,
1074
- c = {},
1075
- k = null,
1076
- h = null;
1077
- if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
1078
- var g = arguments.length - 2;
1079
- if (1 === g) c.children = e;else if (1 < g) {
1080
- for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
1081
- c.children = f;
1082
- }
1083
- if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
1084
- return {
1085
- $$typeof: l,
1086
- type: a,
1087
- key: k,
1088
- ref: h,
1089
- props: c,
1090
- _owner: K.current
1091
- };
1092
- }
1093
- function N(a, b) {
1094
- return {
1095
- $$typeof: l,
1096
- type: a.type,
1097
- key: b,
1098
- ref: a.ref,
1099
- props: a.props,
1100
- _owner: a._owner
1101
- };
1102
- }
1103
- function O(a) {
1104
- return "object" === typeof a && null !== a && a.$$typeof === l;
1105
- }
1106
- function escape(a) {
1107
- var b = {
1108
- "=": "=0",
1109
- ":": "=2"
1110
- };
1111
- return "$" + a.replace(/[=:]/g, function (a) {
1112
- return b[a];
1113
- });
1114
- }
1115
- var P = /\/+/g;
1116
- function Q(a, b) {
1117
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
1118
- }
1119
- function R(a, b, e, d, c) {
1120
- var k = typeof a;
1121
- if ("undefined" === k || "boolean" === k) a = null;
1122
- var h = !1;
1123
- if (null === a) h = !0;else switch (k) {
1124
- case "string":
1125
- case "number":
1126
- h = !0;
1127
- break;
1128
- case "object":
1129
- switch (a.$$typeof) {
1130
- case l:
1131
- case n:
1132
- h = !0;
1133
- }
1134
- }
1135
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function (a) {
1136
- return a;
1137
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
1138
- h = 0;
1139
- d = "" === d ? "." : d + ":";
1140
- if (I(a)) for (var g = 0; g < a.length; g++) {
1141
- k = a[g];
1142
- var f = d + Q(k, g);
1143
- h += R(k, b, e, f, c);
1144
- } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
1145
- return h;
1146
- }
1147
- function S(a, b, e) {
1148
- if (null == a) return a;
1149
- var d = [],
1150
- c = 0;
1151
- R(a, d, "", "", function (a) {
1152
- return b.call(e, a, c++);
1153
- });
1154
- return d;
1155
- }
1156
- function T(a) {
1157
- if (-1 === a._status) {
1158
- var b = a._result;
1159
- b = b();
1160
- b.then(function (b) {
1161
- if (0 === a._status || -1 === a._status) a._status = 1, a._result = b;
1162
- }, function (b) {
1163
- if (0 === a._status || -1 === a._status) a._status = 2, a._result = b;
1164
- });
1165
- -1 === a._status && (a._status = 0, a._result = b);
1166
- }
1167
- if (1 === a._status) return a._result.default;
1168
- throw a._result;
1169
- }
1170
- var U = {
1171
- current: null
1172
- },
1173
- V = {
1174
- transition: null
1175
- },
1176
- W = {
1177
- ReactCurrentDispatcher: U,
1178
- ReactCurrentBatchConfig: V,
1179
- ReactCurrentOwner: K
1180
- };
1181
- function X() {
1182
- throw Error("act(...) is not supported in production builds of React.");
1183
- }
1184
- react_production_min.Children = {
1185
- map: S,
1186
- forEach: function (a, b, e) {
1187
- S(a, function () {
1188
- b.apply(this, arguments);
1189
- }, e);
1190
- },
1191
- count: function (a) {
1192
- var b = 0;
1193
- S(a, function () {
1194
- b++;
1195
- });
1196
- return b;
1197
- },
1198
- toArray: function (a) {
1199
- return S(a, function (a) {
1200
- return a;
1201
- }) || [];
1202
- },
1203
- only: function (a) {
1204
- if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
1205
- return a;
1206
- }
1207
- };
1208
- react_production_min.Component = E;
1209
- react_production_min.Fragment = p;
1210
- react_production_min.Profiler = r;
1211
- react_production_min.PureComponent = G;
1212
- react_production_min.StrictMode = q;
1213
- react_production_min.Suspense = w;
1214
- react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
1215
- react_production_min.act = X;
1216
- react_production_min.cloneElement = function (a, b, e) {
1217
- if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
1218
- var d = C({}, a.props),
1219
- c = a.key,
1220
- k = a.ref,
1221
- h = a._owner;
1222
- if (null != b) {
1223
- void 0 !== b.ref && (k = b.ref, h = K.current);
1224
- void 0 !== b.key && (c = "" + b.key);
1225
- if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
1226
- for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
1227
- }
1228
- var f = arguments.length - 2;
1229
- if (1 === f) d.children = e;else if (1 < f) {
1230
- g = Array(f);
1231
- for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
1232
- d.children = g;
1233
- }
1234
- return {
1235
- $$typeof: l,
1236
- type: a.type,
1237
- key: c,
1238
- ref: k,
1239
- props: d,
1240
- _owner: h
1241
- };
1242
- };
1243
- react_production_min.createContext = function (a) {
1244
- a = {
1245
- $$typeof: u,
1246
- _currentValue: a,
1247
- _currentValue2: a,
1248
- _threadCount: 0,
1249
- Provider: null,
1250
- Consumer: null,
1251
- _defaultValue: null,
1252
- _globalName: null
1253
- };
1254
- a.Provider = {
1255
- $$typeof: t,
1256
- _context: a
1257
- };
1258
- return a.Consumer = a;
1259
- };
1260
- react_production_min.createElement = M;
1261
- react_production_min.createFactory = function (a) {
1262
- var b = M.bind(null, a);
1263
- b.type = a;
1264
- return b;
1265
- };
1266
- react_production_min.createRef = function () {
1267
- return {
1268
- current: null
1269
- };
1270
- };
1271
- react_production_min.forwardRef = function (a) {
1272
- return {
1273
- $$typeof: v,
1274
- render: a
1275
- };
1276
- };
1277
- react_production_min.isValidElement = O;
1278
- react_production_min.lazy = function (a) {
1279
- return {
1280
- $$typeof: y,
1281
- _payload: {
1282
- _status: -1,
1283
- _result: a
1284
- },
1285
- _init: T
1286
- };
1287
- };
1288
- react_production_min.memo = function (a, b) {
1289
- return {
1290
- $$typeof: x,
1291
- type: a,
1292
- compare: void 0 === b ? null : b
1293
- };
1294
- };
1295
- react_production_min.startTransition = function (a) {
1296
- var b = V.transition;
1297
- V.transition = {};
1298
- try {
1299
- a();
1300
- } finally {
1301
- V.transition = b;
1302
- }
1303
- };
1304
- react_production_min.unstable_act = X;
1305
- react_production_min.useCallback = function (a, b) {
1306
- return U.current.useCallback(a, b);
1307
- };
1308
- react_production_min.useContext = function (a) {
1309
- return U.current.useContext(a);
1310
- };
1311
- react_production_min.useDebugValue = function () {};
1312
- react_production_min.useDeferredValue = function (a) {
1313
- return U.current.useDeferredValue(a);
1314
- };
1315
- react_production_min.useEffect = function (a, b) {
1316
- return U.current.useEffect(a, b);
1317
- };
1318
- react_production_min.useId = function () {
1319
- return U.current.useId();
1320
- };
1321
- react_production_min.useImperativeHandle = function (a, b, e) {
1322
- return U.current.useImperativeHandle(a, b, e);
1323
- };
1324
- react_production_min.useInsertionEffect = function (a, b) {
1325
- return U.current.useInsertionEffect(a, b);
1326
- };
1327
- react_production_min.useLayoutEffect = function (a, b) {
1328
- return U.current.useLayoutEffect(a, b);
1329
- };
1330
- react_production_min.useMemo = function (a, b) {
1331
- return U.current.useMemo(a, b);
1332
- };
1333
- react_production_min.useReducer = function (a, b, e) {
1334
- return U.current.useReducer(a, b, e);
1335
- };
1336
- react_production_min.useRef = function (a) {
1337
- return U.current.useRef(a);
1338
- };
1339
- react_production_min.useState = function (a) {
1340
- return U.current.useState(a);
1341
- };
1342
- react_production_min.useSyncExternalStore = function (a, b, e) {
1343
- return U.current.useSyncExternalStore(a, b, e);
1344
- };
1345
- react_production_min.useTransition = function () {
1346
- return U.current.useTransition();
1347
- };
1348
- react_production_min.version = "18.3.1";
1349
- return react_production_min;
1350
- }
1351
-
1352
- var react_development = {exports: {}};
1353
-
1354
- /**
1355
- * @license React
1356
- * react.development.js
462
+ * react.development.js
1357
463
  *
1358
464
  * Copyright (c) Facebook, Inc. and its affiliates.
1359
465
  *
@@ -3763,11 +2869,1255 @@
3763
2869
  }
3764
2870
  })(react);
3765
2871
 
2872
+ var withSelector = {exports: {}};
2873
+
2874
+ var useSyncExternalStoreWithSelector_production = {};
2875
+
2876
+ /**
2877
+ * @license React
2878
+ * use-sync-external-store-with-selector.production.js
2879
+ *
2880
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2881
+ *
2882
+ * This source code is licensed under the MIT license found in the
2883
+ * LICENSE file in the root directory of this source tree.
2884
+ */
2885
+ var hasRequiredUseSyncExternalStoreWithSelector_production;
2886
+ function requireUseSyncExternalStoreWithSelector_production() {
2887
+ if (hasRequiredUseSyncExternalStoreWithSelector_production) return useSyncExternalStoreWithSelector_production;
2888
+ hasRequiredUseSyncExternalStoreWithSelector_production = 1;
2889
+ var React = react.exports;
2890
+ function is(x, y) {
2891
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
2892
+ }
2893
+ var objectIs = "function" === typeof Object.is ? Object.is : is,
2894
+ useSyncExternalStore = React.useSyncExternalStore,
2895
+ useRef = React.useRef,
2896
+ useEffect = React.useEffect,
2897
+ useMemo = React.useMemo,
2898
+ useDebugValue = React.useDebugValue;
2899
+ useSyncExternalStoreWithSelector_production.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
2900
+ var instRef = useRef(null);
2901
+ if (null === instRef.current) {
2902
+ var inst = {
2903
+ hasValue: !1,
2904
+ value: null
2905
+ };
2906
+ instRef.current = inst;
2907
+ } else inst = instRef.current;
2908
+ instRef = useMemo(function () {
2909
+ function memoizedSelector(nextSnapshot) {
2910
+ if (!hasMemo) {
2911
+ hasMemo = !0;
2912
+ memoizedSnapshot = nextSnapshot;
2913
+ nextSnapshot = selector(nextSnapshot);
2914
+ if (void 0 !== isEqual && inst.hasValue) {
2915
+ var currentSelection = inst.value;
2916
+ if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
2917
+ }
2918
+ return memoizedSelection = nextSnapshot;
2919
+ }
2920
+ currentSelection = memoizedSelection;
2921
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
2922
+ var nextSelection = selector(nextSnapshot);
2923
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
2924
+ memoizedSnapshot = nextSnapshot;
2925
+ return memoizedSelection = nextSelection;
2926
+ }
2927
+ var hasMemo = !1,
2928
+ memoizedSnapshot,
2929
+ memoizedSelection,
2930
+ maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
2931
+ return [function () {
2932
+ return memoizedSelector(getSnapshot());
2933
+ }, null === maybeGetServerSnapshot ? void 0 : function () {
2934
+ return memoizedSelector(maybeGetServerSnapshot());
2935
+ }];
2936
+ }, [getSnapshot, getServerSnapshot, selector, isEqual]);
2937
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
2938
+ useEffect(function () {
2939
+ inst.hasValue = !0;
2940
+ inst.value = value;
2941
+ }, [value]);
2942
+ useDebugValue(value);
2943
+ return value;
2944
+ };
2945
+ return useSyncExternalStoreWithSelector_production;
2946
+ }
2947
+
2948
+ var useSyncExternalStoreWithSelector_development = {};
2949
+
2950
+ /**
2951
+ * @license React
2952
+ * use-sync-external-store-with-selector.development.js
2953
+ *
2954
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2955
+ *
2956
+ * This source code is licensed under the MIT license found in the
2957
+ * LICENSE file in the root directory of this source tree.
2958
+ */
2959
+ var hasRequiredUseSyncExternalStoreWithSelector_development;
2960
+ function requireUseSyncExternalStoreWithSelector_development() {
2961
+ if (hasRequiredUseSyncExternalStoreWithSelector_development) return useSyncExternalStoreWithSelector_development;
2962
+ hasRequiredUseSyncExternalStoreWithSelector_development = 1;
2963
+ "production" !== process.env.NODE_ENV && function () {
2964
+ function is(x, y) {
2965
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
2966
+ }
2967
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2968
+ var React = react.exports,
2969
+ objectIs = "function" === typeof Object.is ? Object.is : is,
2970
+ useSyncExternalStore = React.useSyncExternalStore,
2971
+ useRef = React.useRef,
2972
+ useEffect = React.useEffect,
2973
+ useMemo = React.useMemo,
2974
+ useDebugValue = React.useDebugValue;
2975
+ useSyncExternalStoreWithSelector_development.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
2976
+ var instRef = useRef(null);
2977
+ if (null === instRef.current) {
2978
+ var inst = {
2979
+ hasValue: !1,
2980
+ value: null
2981
+ };
2982
+ instRef.current = inst;
2983
+ } else inst = instRef.current;
2984
+ instRef = useMemo(function () {
2985
+ function memoizedSelector(nextSnapshot) {
2986
+ if (!hasMemo) {
2987
+ hasMemo = !0;
2988
+ memoizedSnapshot = nextSnapshot;
2989
+ nextSnapshot = selector(nextSnapshot);
2990
+ if (void 0 !== isEqual && inst.hasValue) {
2991
+ var currentSelection = inst.value;
2992
+ if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
2993
+ }
2994
+ return memoizedSelection = nextSnapshot;
2995
+ }
2996
+ currentSelection = memoizedSelection;
2997
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
2998
+ var nextSelection = selector(nextSnapshot);
2999
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
3000
+ memoizedSnapshot = nextSnapshot;
3001
+ return memoizedSelection = nextSelection;
3002
+ }
3003
+ var hasMemo = !1,
3004
+ memoizedSnapshot,
3005
+ memoizedSelection,
3006
+ maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
3007
+ return [function () {
3008
+ return memoizedSelector(getSnapshot());
3009
+ }, null === maybeGetServerSnapshot ? void 0 : function () {
3010
+ return memoizedSelector(maybeGetServerSnapshot());
3011
+ }];
3012
+ }, [getSnapshot, getServerSnapshot, selector, isEqual]);
3013
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
3014
+ useEffect(function () {
3015
+ inst.hasValue = !0;
3016
+ inst.value = value;
3017
+ }, [value]);
3018
+ useDebugValue(value);
3019
+ return value;
3020
+ };
3021
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3022
+ }();
3023
+ return useSyncExternalStoreWithSelector_development;
3024
+ }
3025
+
3026
+ (function (module) {
3027
+
3028
+ if (process.env.NODE_ENV === 'production') {
3029
+ module.exports = requireUseSyncExternalStoreWithSelector_production();
3030
+ } else {
3031
+ module.exports = requireUseSyncExternalStoreWithSelector_development();
3032
+ }
3033
+ })(withSelector);
3034
+
3035
+ // src/utils/react.ts
3036
+
3037
+ // src/utils/shallowEqual.ts
3038
+ function is(x, y) {
3039
+ if (x === y) {
3040
+ return x !== 0 || y !== 0 || 1 / x === 1 / y;
3041
+ } else {
3042
+ return x !== x && y !== y;
3043
+ }
3044
+ }
3045
+ function shallowEqual(objA, objB) {
3046
+ if (is(objA, objB)) return true;
3047
+ if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
3048
+ return false;
3049
+ }
3050
+ const keysA = Object.keys(objA);
3051
+ const keysB = Object.keys(objB);
3052
+ if (keysA.length !== keysB.length) return false;
3053
+ for (let i = 0; i < keysA.length; i++) {
3054
+ if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
3055
+ return false;
3056
+ }
3057
+ }
3058
+ return true;
3059
+ }
3060
+
3061
+ // src/components/Context.ts
3062
+ var ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`);
3063
+ var gT = typeof globalThis !== "undefined" ? globalThis : (
3064
+ /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
3065
+ {}
3066
+ );
3067
+ function getContext() {
3068
+ if (!react.exports.createContext) return {};
3069
+ const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map();
3070
+ let realContext = contextMap.get(react.exports.createContext);
3071
+ if (!realContext) {
3072
+ realContext = react.exports.createContext(
3073
+ null
3074
+ );
3075
+ if (process.env.NODE_ENV !== "production") {
3076
+ realContext.displayName = "ReactRedux";
3077
+ }
3078
+ contextMap.set(react.exports.createContext, realContext);
3079
+ }
3080
+ return realContext;
3081
+ }
3082
+ var ReactReduxContext = /* @__PURE__ */ getContext();
3083
+
3084
+ // src/hooks/useReduxContext.ts
3085
+ function createReduxContextHook(context = ReactReduxContext) {
3086
+ return function useReduxContext2() {
3087
+ const contextValue = react.exports.useContext(context);
3088
+ if (process.env.NODE_ENV !== "production" && !contextValue) {
3089
+ throw new Error(
3090
+ "could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
3091
+ );
3092
+ }
3093
+ return contextValue;
3094
+ };
3095
+ }
3096
+ var useReduxContext = /* @__PURE__ */ createReduxContextHook();
3097
+
3098
+ // src/hooks/useStore.ts
3099
+ function createStoreHook(context = ReactReduxContext) {
3100
+ const useReduxContext2 = context === ReactReduxContext ? useReduxContext : (
3101
+ // @ts-ignore
3102
+ createReduxContextHook(context)
3103
+ );
3104
+ const useStore2 = () => {
3105
+ const { store } = useReduxContext2();
3106
+ return store;
3107
+ };
3108
+ Object.assign(useStore2, {
3109
+ withTypes: () => useStore2
3110
+ });
3111
+ return useStore2;
3112
+ }
3113
+ var useStore = /* @__PURE__ */ createStoreHook();
3114
+
3115
+ // src/hooks/useDispatch.ts
3116
+ function createDispatchHook(context = ReactReduxContext) {
3117
+ const useStore2 = context === ReactReduxContext ? useStore : createStoreHook(context);
3118
+ const useDispatch2 = () => {
3119
+ const store = useStore2();
3120
+ return store.dispatch;
3121
+ };
3122
+ Object.assign(useDispatch2, {
3123
+ withTypes: () => useDispatch2
3124
+ });
3125
+ return useDispatch2;
3126
+ }
3127
+ var useDispatch = /* @__PURE__ */ createDispatchHook();
3128
+ var refEquality = (a, b) => a === b;
3129
+ function createSelectorHook$1(context = ReactReduxContext) {
3130
+ const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
3131
+ const useSelector2 = (selector, equalityFnOrOptions = {}) => {
3132
+ const { equalityFn = refEquality } = typeof equalityFnOrOptions === "function" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;
3133
+ if (process.env.NODE_ENV !== "production") {
3134
+ if (!selector) {
3135
+ throw new Error(`You must pass a selector to useSelector`);
3136
+ }
3137
+ if (typeof selector !== "function") {
3138
+ throw new Error(`You must pass a function as a selector to useSelector`);
3139
+ }
3140
+ if (typeof equalityFn !== "function") {
3141
+ throw new Error(
3142
+ `You must pass a function as an equality function to useSelector`
3143
+ );
3144
+ }
3145
+ }
3146
+ const reduxContext = useReduxContext2();
3147
+ const { store, subscription, getServerState } = reduxContext;
3148
+ const firstRun = react.exports.useRef(true);
3149
+ const wrappedSelector = react.exports.useCallback(
3150
+ {
3151
+ [selector.name](state) {
3152
+ const selected = selector(state);
3153
+ if (process.env.NODE_ENV !== "production") {
3154
+ const { devModeChecks = {} } = typeof equalityFnOrOptions === "function" ? {} : equalityFnOrOptions;
3155
+ const { identityFunctionCheck, stabilityCheck } = reduxContext;
3156
+ const {
3157
+ identityFunctionCheck: finalIdentityFunctionCheck,
3158
+ stabilityCheck: finalStabilityCheck
3159
+ } = {
3160
+ stabilityCheck,
3161
+ identityFunctionCheck,
3162
+ ...devModeChecks
3163
+ };
3164
+ if (finalStabilityCheck === "always" || finalStabilityCheck === "once" && firstRun.current) {
3165
+ const toCompare = selector(state);
3166
+ if (!equalityFn(selected, toCompare)) {
3167
+ let stack = void 0;
3168
+ try {
3169
+ throw new Error();
3170
+ } catch (e) {
3171
+ ({ stack } = e);
3172
+ }
3173
+ console.warn(
3174
+ "Selector " + (selector.name || "unknown") + " returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization",
3175
+ {
3176
+ state,
3177
+ selected,
3178
+ selected2: toCompare,
3179
+ stack
3180
+ }
3181
+ );
3182
+ }
3183
+ }
3184
+ if (finalIdentityFunctionCheck === "always" || finalIdentityFunctionCheck === "once" && firstRun.current) {
3185
+ if (selected === state) {
3186
+ let stack = void 0;
3187
+ try {
3188
+ throw new Error();
3189
+ } catch (e) {
3190
+ ({ stack } = e);
3191
+ }
3192
+ console.warn(
3193
+ "Selector " + (selector.name || "unknown") + " returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.",
3194
+ { stack }
3195
+ );
3196
+ }
3197
+ }
3198
+ if (firstRun.current) firstRun.current = false;
3199
+ }
3200
+ return selected;
3201
+ }
3202
+ }[selector.name],
3203
+ [selector]
3204
+ );
3205
+ const selectedState = withSelector.exports.useSyncExternalStoreWithSelector(
3206
+ subscription.addNestedSub,
3207
+ store.getState,
3208
+ getServerState || store.getState,
3209
+ wrappedSelector,
3210
+ equalityFn
3211
+ );
3212
+ react.exports.useDebugValue(selectedState);
3213
+ return selectedState;
3214
+ };
3215
+ Object.assign(useSelector2, {
3216
+ withTypes: () => useSelector2
3217
+ });
3218
+ return useSelector2;
3219
+ }
3220
+ var useSelector = /* @__PURE__ */ createSelectorHook$1();
3221
+
3222
+ function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return !!n&&!!n[Q]}function t(n){var r;return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t;}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r);}function _(){return "production"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r);}function g(n){O(n),n.p.forEach(S),n.p=null;}function O(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0;}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s,v){if("production"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1;}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1;}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t));})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return "production"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];"production"!==process.env.NODE_ENV&&f(t),en.set(t,n,r);}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t);}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return !0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return !0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return !0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return !0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return !0;return !1}function f(r){r.g&&n(3,JSON.stringify(p(r)));}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable);}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)));})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t));}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l]);}}}}(n.p[0]),e(n.p));},K:function(n){return 4===n.i?o(n):a(n)}});}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return !0;E(n),k(n);}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?g(c):O(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n;},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un;an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
3223
+
3224
+ /**
3225
+ * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
3226
+ *
3227
+ * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
3228
+ * during build.
3229
+ * @param {number} code
3230
+ */
3231
+ function formatProdErrorMessage(code) {
3232
+ 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. ';
3233
+ }
3234
+
3235
+ /**
3236
+ * These are private action types reserved by Redux.
3237
+ * For any unknown actions, you must return the current state.
3238
+ * If the current state is undefined, you must return the initial state.
3239
+ * Do not reference these action types directly in your code.
3240
+ */
3241
+ var randomString = function randomString() {
3242
+ return Math.random().toString(36).substring(7).split('').join('.');
3243
+ };
3244
+ ({
3245
+ INIT: "@@redux/INIT" + randomString(),
3246
+ REPLACE: "@@redux/REPLACE" + randomString(),
3247
+ PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
3248
+ return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
3249
+ }
3250
+ });
3251
+
3252
+ // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
3253
+ function miniKindOf(val) {
3254
+ if (val === void 0) return 'undefined';
3255
+ if (val === null) return 'null';
3256
+ var type = typeof val;
3257
+ switch (type) {
3258
+ case 'boolean':
3259
+ case 'string':
3260
+ case 'number':
3261
+ case 'symbol':
3262
+ case 'function':
3263
+ {
3264
+ return type;
3265
+ }
3266
+ }
3267
+ if (Array.isArray(val)) return 'array';
3268
+ if (isDate(val)) return 'date';
3269
+ if (isError(val)) return 'error';
3270
+ var constructorName = ctorName(val);
3271
+ switch (constructorName) {
3272
+ case 'Symbol':
3273
+ case 'Promise':
3274
+ case 'WeakMap':
3275
+ case 'WeakSet':
3276
+ case 'Map':
3277
+ case 'Set':
3278
+ return constructorName;
3279
+ } // other
3280
+
3281
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
3282
+ }
3283
+ function ctorName(val) {
3284
+ return typeof val.constructor === 'function' ? val.constructor.name : null;
3285
+ }
3286
+ function isError(val) {
3287
+ return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
3288
+ }
3289
+ function isDate(val) {
3290
+ if (val instanceof Date) return true;
3291
+ return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
3292
+ }
3293
+ function kindOf(val) {
3294
+ var typeOfVal = typeof val;
3295
+ if (process.env.NODE_ENV !== 'production') {
3296
+ typeOfVal = miniKindOf(val);
3297
+ }
3298
+ return typeOfVal;
3299
+ }
3300
+ function bindActionCreator(actionCreator, dispatch) {
3301
+ return function () {
3302
+ return dispatch(actionCreator.apply(this, arguments));
3303
+ };
3304
+ }
3305
+ /**
3306
+ * Turns an object whose values are action creators, into an object with the
3307
+ * same keys, but with every function wrapped into a `dispatch` call so they
3308
+ * may be invoked directly. This is just a convenience method, as you can call
3309
+ * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
3310
+ *
3311
+ * For convenience, you can also pass an action creator as the first argument,
3312
+ * and get a dispatch wrapped function in return.
3313
+ *
3314
+ * @param {Function|Object} actionCreators An object whose values are action
3315
+ * creator functions. One handy way to obtain it is to use ES6 `import * as`
3316
+ * syntax. You may also pass a single function.
3317
+ *
3318
+ * @param {Function} dispatch The `dispatch` function available on your Redux
3319
+ * store.
3320
+ *
3321
+ * @returns {Function|Object} The object mimicking the original object, but with
3322
+ * every action creator wrapped into the `dispatch` call. If you passed a
3323
+ * function as `actionCreators`, the return value will also be a single
3324
+ * function.
3325
+ */
3326
+
3327
+ function bindActionCreators(actionCreators, dispatch) {
3328
+ if (typeof actionCreators === 'function') {
3329
+ return bindActionCreator(actionCreators, dispatch);
3330
+ }
3331
+ if (typeof actionCreators !== 'object' || actionCreators === null) {
3332
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(16) : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
3333
+ }
3334
+ var boundActionCreators = {};
3335
+ for (var key in actionCreators) {
3336
+ var actionCreator = actionCreators[key];
3337
+ if (typeof actionCreator === 'function') {
3338
+ boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
3339
+ }
3340
+ }
3341
+ return boundActionCreators;
3342
+ }
3343
+
3344
+ // Cache implementation based on Erik Rasmussen's `lru-memoize`:
3345
+ // https://github.com/erikras/lru-memoize
3346
+ var NOT_FOUND = 'NOT_FOUND';
3347
+ function createSingletonCache(equals) {
3348
+ var entry;
3349
+ return {
3350
+ get: function get(key) {
3351
+ if (entry && equals(entry.key, key)) {
3352
+ return entry.value;
3353
+ }
3354
+ return NOT_FOUND;
3355
+ },
3356
+ put: function put(key, value) {
3357
+ entry = {
3358
+ key: key,
3359
+ value: value
3360
+ };
3361
+ },
3362
+ getEntries: function getEntries() {
3363
+ return entry ? [entry] : [];
3364
+ },
3365
+ clear: function clear() {
3366
+ entry = undefined;
3367
+ }
3368
+ };
3369
+ }
3370
+ function createLruCache(maxSize, equals) {
3371
+ var entries = [];
3372
+ function get(key) {
3373
+ var cacheIndex = entries.findIndex(function (entry) {
3374
+ return equals(key, entry.key);
3375
+ }); // We found a cached entry
3376
+
3377
+ if (cacheIndex > -1) {
3378
+ var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
3379
+
3380
+ if (cacheIndex > 0) {
3381
+ entries.splice(cacheIndex, 1);
3382
+ entries.unshift(entry);
3383
+ }
3384
+ return entry.value;
3385
+ } // No entry found in cache, return sentinel
3386
+
3387
+ return NOT_FOUND;
3388
+ }
3389
+ function put(key, value) {
3390
+ if (get(key) === NOT_FOUND) {
3391
+ // TODO Is unshift slow?
3392
+ entries.unshift({
3393
+ key: key,
3394
+ value: value
3395
+ });
3396
+ if (entries.length > maxSize) {
3397
+ entries.pop();
3398
+ }
3399
+ }
3400
+ }
3401
+ function getEntries() {
3402
+ return entries;
3403
+ }
3404
+ function clear() {
3405
+ entries = [];
3406
+ }
3407
+ return {
3408
+ get: get,
3409
+ put: put,
3410
+ getEntries: getEntries,
3411
+ clear: clear
3412
+ };
3413
+ }
3414
+ var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
3415
+ return a === b;
3416
+ };
3417
+ function createCacheKeyComparator(equalityCheck) {
3418
+ return function areArgumentsShallowlyEqual(prev, next) {
3419
+ if (prev === null || next === null || prev.length !== next.length) {
3420
+ return false;
3421
+ } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
3422
+
3423
+ var length = prev.length;
3424
+ for (var i = 0; i < length; i++) {
3425
+ if (!equalityCheck(prev[i], next[i])) {
3426
+ return false;
3427
+ }
3428
+ }
3429
+ return true;
3430
+ };
3431
+ }
3432
+ // defaultMemoize now supports a configurable cache size with LRU behavior,
3433
+ // and optional comparison of the result value with existing values
3434
+ function defaultMemoize(func, equalityCheckOrOptions) {
3435
+ var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
3436
+ equalityCheck: equalityCheckOrOptions
3437
+ };
3438
+ var _providedOptions$equa = providedOptions.equalityCheck,
3439
+ equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
3440
+ _providedOptions$maxS = providedOptions.maxSize,
3441
+ maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
3442
+ resultEqualityCheck = providedOptions.resultEqualityCheck;
3443
+ var comparator = createCacheKeyComparator(equalityCheck);
3444
+ var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
3445
+
3446
+ function memoized() {
3447
+ var value = cache.get(arguments);
3448
+ if (value === NOT_FOUND) {
3449
+ // @ts-ignore
3450
+ value = func.apply(null, arguments);
3451
+ if (resultEqualityCheck) {
3452
+ var entries = cache.getEntries();
3453
+ var matchingEntry = entries.find(function (entry) {
3454
+ return resultEqualityCheck(entry.value, value);
3455
+ });
3456
+ if (matchingEntry) {
3457
+ value = matchingEntry.value;
3458
+ }
3459
+ }
3460
+ cache.put(arguments, value);
3461
+ }
3462
+ return value;
3463
+ }
3464
+ memoized.clearCache = function () {
3465
+ return cache.clear();
3466
+ };
3467
+ return memoized;
3468
+ }
3469
+
3470
+ function getDependencies(funcs) {
3471
+ var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
3472
+ if (!dependencies.every(function (dep) {
3473
+ return typeof dep === 'function';
3474
+ })) {
3475
+ var dependencyTypes = dependencies.map(function (dep) {
3476
+ return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
3477
+ }).join(', ');
3478
+ throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
3479
+ }
3480
+ return dependencies;
3481
+ }
3482
+ function createSelectorCreator(memoize) {
3483
+ for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
3484
+ memoizeOptionsFromArgs[_key - 1] = arguments[_key];
3485
+ }
3486
+ var createSelector = function createSelector() {
3487
+ for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
3488
+ funcs[_key2] = arguments[_key2];
3489
+ }
3490
+ var _recomputations = 0;
3491
+ var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
3492
+ // So, start by declaring the default value here.
3493
+ // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
3494
+
3495
+ var directlyPassedOptions = {
3496
+ memoizeOptions: undefined
3497
+ }; // Normally, the result func or "output selector" is the last arg
3498
+
3499
+ var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
3500
+
3501
+ if (typeof resultFunc === 'object') {
3502
+ directlyPassedOptions = resultFunc; // and pop the real result func off
3503
+
3504
+ resultFunc = funcs.pop();
3505
+ }
3506
+ if (typeof resultFunc !== 'function') {
3507
+ throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
3508
+ } // Determine which set of options we're using. Prefer options passed directly,
3509
+ // but fall back to options given to createSelectorCreator.
3510
+
3511
+ var _directlyPassedOption = directlyPassedOptions,
3512
+ _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
3513
+ memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
3514
+ // is an array. In most libs I've looked at, it's an equality function or options object.
3515
+ // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
3516
+ // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
3517
+ // we wrap it in an array so we can apply it.
3518
+
3519
+ var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
3520
+ var dependencies = getDependencies(funcs);
3521
+ var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
3522
+ _recomputations++; // apply arguments instead of spreading for performance.
3523
+
3524
+ return resultFunc.apply(null, arguments);
3525
+ }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
3526
+
3527
+ var selector = memoize(function dependenciesChecker() {
3528
+ var params = [];
3529
+ var length = dependencies.length;
3530
+ for (var i = 0; i < length; i++) {
3531
+ // apply arguments instead of spreading and mutate a local list of params for performance.
3532
+ // @ts-ignore
3533
+ params.push(dependencies[i].apply(null, arguments));
3534
+ } // apply arguments instead of spreading for performance.
3535
+
3536
+ _lastResult = memoizedResultFunc.apply(null, params);
3537
+ return _lastResult;
3538
+ });
3539
+ Object.assign(selector, {
3540
+ resultFunc: resultFunc,
3541
+ memoizedResultFunc: memoizedResultFunc,
3542
+ dependencies: dependencies,
3543
+ lastResult: function lastResult() {
3544
+ return _lastResult;
3545
+ },
3546
+ recomputations: function recomputations() {
3547
+ return _recomputations;
3548
+ },
3549
+ resetRecomputations: function resetRecomputations() {
3550
+ return _recomputations = 0;
3551
+ }
3552
+ });
3553
+ return selector;
3554
+ }; // @ts-ignore
3555
+
3556
+ return createSelector;
3557
+ }
3558
+ var createSelector = /* #__PURE__ */createSelectorCreator(defaultMemoize);
3559
+
3560
+ /** A function that accepts a potential "extra argument" value to be injected later,
3561
+ * and returns an instance of the thunk middleware that uses that value
3562
+ */
3563
+ function createThunkMiddleware(extraArgument) {
3564
+ // Standard Redux middleware definition pattern:
3565
+ // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
3566
+ var middleware = function middleware(_ref) {
3567
+ var dispatch = _ref.dispatch,
3568
+ getState = _ref.getState;
3569
+ return function (next) {
3570
+ return function (action) {
3571
+ // The thunk middleware looks for any functions that were passed to `store.dispatch`.
3572
+ // If this "action" is really a function, call it and return the result.
3573
+ if (typeof action === 'function') {
3574
+ // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
3575
+ return action(dispatch, getState, extraArgument);
3576
+ } // Otherwise, pass the action down the middleware chain as usual
3577
+
3578
+ return next(action);
3579
+ };
3580
+ };
3581
+ };
3582
+ return middleware;
3583
+ }
3584
+ var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
3585
+ // with whatever "extra arg" they want to inject into their thunks
3586
+
3587
+ thunk.withExtraArgument = createThunkMiddleware;
3588
+
3589
+ var __extends = undefined && undefined.__extends || function () {
3590
+ var extendStatics = function (d, b) {
3591
+ extendStatics = Object.setPrototypeOf || {
3592
+ __proto__: []
3593
+ } instanceof Array && function (d, b) {
3594
+ d.__proto__ = b;
3595
+ } || function (d, b) {
3596
+ for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
3597
+ };
3598
+ return extendStatics(d, b);
3599
+ };
3600
+ return function (d, b) {
3601
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3602
+ extendStatics(d, b);
3603
+ function __() {
3604
+ this.constructor = d;
3605
+ }
3606
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3607
+ };
3608
+ }();
3609
+ var __generator = undefined && undefined.__generator || function (thisArg, body) {
3610
+ var _ = {
3611
+ label: 0,
3612
+ sent: function () {
3613
+ if (t[0] & 1) throw t[1];
3614
+ return t[1];
3615
+ },
3616
+ trys: [],
3617
+ ops: []
3618
+ },
3619
+ f,
3620
+ y,
3621
+ t,
3622
+ g;
3623
+ return g = {
3624
+ next: verb(0),
3625
+ "throw": verb(1),
3626
+ "return": verb(2)
3627
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
3628
+ return this;
3629
+ }), g;
3630
+ function verb(n) {
3631
+ return function (v) {
3632
+ return step([n, v]);
3633
+ };
3634
+ }
3635
+ function step(op) {
3636
+ if (f) throw new TypeError("Generator is already executing.");
3637
+ while (_) try {
3638
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
3639
+ if (y = 0, t) op = [op[0] & 2, t.value];
3640
+ switch (op[0]) {
3641
+ case 0:
3642
+ case 1:
3643
+ t = op;
3644
+ break;
3645
+ case 4:
3646
+ _.label++;
3647
+ return {
3648
+ value: op[1],
3649
+ done: false
3650
+ };
3651
+ case 5:
3652
+ _.label++;
3653
+ y = op[1];
3654
+ op = [0];
3655
+ continue;
3656
+ case 7:
3657
+ op = _.ops.pop();
3658
+ _.trys.pop();
3659
+ continue;
3660
+ default:
3661
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
3662
+ _ = 0;
3663
+ continue;
3664
+ }
3665
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
3666
+ _.label = op[1];
3667
+ break;
3668
+ }
3669
+ if (op[0] === 6 && _.label < t[1]) {
3670
+ _.label = t[1];
3671
+ t = op;
3672
+ break;
3673
+ }
3674
+ if (t && _.label < t[2]) {
3675
+ _.label = t[2];
3676
+ _.ops.push(op);
3677
+ break;
3678
+ }
3679
+ if (t[2]) _.ops.pop();
3680
+ _.trys.pop();
3681
+ continue;
3682
+ }
3683
+ op = body.call(thisArg, _);
3684
+ } catch (e) {
3685
+ op = [6, e];
3686
+ y = 0;
3687
+ } finally {
3688
+ f = t = 0;
3689
+ }
3690
+ if (op[0] & 5) throw op[1];
3691
+ return {
3692
+ value: op[0] ? op[1] : void 0,
3693
+ done: true
3694
+ };
3695
+ }
3696
+ };
3697
+ var __spreadArray = undefined && undefined.__spreadArray || function (to, from) {
3698
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
3699
+ return to;
3700
+ };
3701
+ var __defProp = Object.defineProperty;
3702
+ var __defProps = Object.defineProperties;
3703
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3704
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3705
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3706
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
3707
+ var __defNormalProp = function (obj, key, value) {
3708
+ return key in obj ? __defProp(obj, key, {
3709
+ enumerable: true,
3710
+ configurable: true,
3711
+ writable: true,
3712
+ value: value
3713
+ }) : obj[key] = value;
3714
+ };
3715
+ var __spreadValues = function (a, b) {
3716
+ for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
3717
+ if (__getOwnPropSymbols) for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
3718
+ var prop = _c[_i];
3719
+ if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
3720
+ }
3721
+ return a;
3722
+ };
3723
+ var __spreadProps = function (a, b) {
3724
+ return __defProps(a, __getOwnPropDescs(b));
3725
+ };
3726
+ var __async = function (__this, __arguments, generator) {
3727
+ return new Promise(function (resolve, reject) {
3728
+ var fulfilled = function (value) {
3729
+ try {
3730
+ step(generator.next(value));
3731
+ } catch (e) {
3732
+ reject(e);
3733
+ }
3734
+ };
3735
+ var rejected = function (value) {
3736
+ try {
3737
+ step(generator.throw(value));
3738
+ } catch (e) {
3739
+ reject(e);
3740
+ }
3741
+ };
3742
+ var step = function (x) {
3743
+ return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
3744
+ };
3745
+ step((generator = generator.apply(__this, __arguments)).next());
3746
+ });
3747
+ };
3748
+ var createDraftSafeSelector = function () {
3749
+ var args = [];
3750
+ for (var _i = 0; _i < arguments.length; _i++) {
3751
+ args[_i] = arguments[_i];
3752
+ }
3753
+ var selector = createSelector.apply(void 0, args);
3754
+ var wrappedSelector = function (value) {
3755
+ var rest = [];
3756
+ for (var _i = 1; _i < arguments.length; _i++) {
3757
+ rest[_i - 1] = arguments[_i];
3758
+ }
3759
+ return selector.apply(void 0, __spreadArray([r(value) ? R(value) : value], rest));
3760
+ };
3761
+ return wrappedSelector;
3762
+ };
3763
+ // src/createAction.ts
3764
+ function createAction(type, prepareAction) {
3765
+ function actionCreator() {
3766
+ var args = [];
3767
+ for (var _i = 0; _i < arguments.length; _i++) {
3768
+ args[_i] = arguments[_i];
3769
+ }
3770
+ if (prepareAction) {
3771
+ var prepared = prepareAction.apply(void 0, args);
3772
+ if (!prepared) {
3773
+ throw new Error("prepareAction did not return an object");
3774
+ }
3775
+ return __spreadValues(__spreadValues({
3776
+ type: type,
3777
+ payload: prepared.payload
3778
+ }, "meta" in prepared && {
3779
+ meta: prepared.meta
3780
+ }), "error" in prepared && {
3781
+ error: prepared.error
3782
+ });
3783
+ }
3784
+ return {
3785
+ type: type,
3786
+ payload: args[0]
3787
+ };
3788
+ }
3789
+ actionCreator.toString = function () {
3790
+ return "" + type;
3791
+ };
3792
+ actionCreator.type = type;
3793
+ actionCreator.match = function (action) {
3794
+ return action.type === type;
3795
+ };
3796
+ return actionCreator;
3797
+ }
3798
+ /** @class */(function (_super) {
3799
+ __extends(MiddlewareArray, _super);
3800
+ function MiddlewareArray() {
3801
+ var args = [];
3802
+ for (var _i = 0; _i < arguments.length; _i++) {
3803
+ args[_i] = arguments[_i];
3804
+ }
3805
+ var _this = _super.apply(this, args) || this;
3806
+ Object.setPrototypeOf(_this, MiddlewareArray.prototype);
3807
+ return _this;
3808
+ }
3809
+ Object.defineProperty(MiddlewareArray, Symbol.species, {
3810
+ get: function () {
3811
+ return MiddlewareArray;
3812
+ },
3813
+ enumerable: false,
3814
+ configurable: true
3815
+ });
3816
+ MiddlewareArray.prototype.concat = function () {
3817
+ var arr = [];
3818
+ for (var _i = 0; _i < arguments.length; _i++) {
3819
+ arr[_i] = arguments[_i];
3820
+ }
3821
+ return _super.prototype.concat.apply(this, arr);
3822
+ };
3823
+ MiddlewareArray.prototype.prepend = function () {
3824
+ var arr = [];
3825
+ for (var _i = 0; _i < arguments.length; _i++) {
3826
+ arr[_i] = arguments[_i];
3827
+ }
3828
+ if (arr.length === 1 && Array.isArray(arr[0])) {
3829
+ return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
3830
+ }
3831
+ return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
3832
+ };
3833
+ return MiddlewareArray;
3834
+ })(Array);
3835
+ /** @class */(function (_super) {
3836
+ __extends(EnhancerArray, _super);
3837
+ function EnhancerArray() {
3838
+ var args = [];
3839
+ for (var _i = 0; _i < arguments.length; _i++) {
3840
+ args[_i] = arguments[_i];
3841
+ }
3842
+ var _this = _super.apply(this, args) || this;
3843
+ Object.setPrototypeOf(_this, EnhancerArray.prototype);
3844
+ return _this;
3845
+ }
3846
+ Object.defineProperty(EnhancerArray, Symbol.species, {
3847
+ get: function () {
3848
+ return EnhancerArray;
3849
+ },
3850
+ enumerable: false,
3851
+ configurable: true
3852
+ });
3853
+ EnhancerArray.prototype.concat = function () {
3854
+ var arr = [];
3855
+ for (var _i = 0; _i < arguments.length; _i++) {
3856
+ arr[_i] = arguments[_i];
3857
+ }
3858
+ return _super.prototype.concat.apply(this, arr);
3859
+ };
3860
+ EnhancerArray.prototype.prepend = function () {
3861
+ var arr = [];
3862
+ for (var _i = 0; _i < arguments.length; _i++) {
3863
+ arr[_i] = arguments[_i];
3864
+ }
3865
+ if (arr.length === 1 && Array.isArray(arr[0])) {
3866
+ return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
3867
+ }
3868
+ return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
3869
+ };
3870
+ return EnhancerArray;
3871
+ })(Array);
3872
+ // src/immutableStateInvariantMiddleware.ts
3873
+ process.env.NODE_ENV === "production";
3874
+ // src/configureStore.ts
3875
+ process.env.NODE_ENV === "production";
3876
+ // src/nanoid.ts
3877
+ var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
3878
+ var nanoid = function (size) {
3879
+ if (size === void 0) {
3880
+ size = 21;
3881
+ }
3882
+ var id = "";
3883
+ var i = size;
3884
+ while (i--) {
3885
+ id += urlAlphabet[Math.random() * 64 | 0];
3886
+ }
3887
+ return id;
3888
+ };
3889
+ // src/createAsyncThunk.ts
3890
+ var commonProperties = ["name", "message", "stack", "code"];
3891
+ var RejectWithValue = /** @class */function () {
3892
+ function RejectWithValue(payload, meta) {
3893
+ this.payload = payload;
3894
+ this.meta = meta;
3895
+ }
3896
+ return RejectWithValue;
3897
+ }();
3898
+ var FulfillWithMeta = /** @class */function () {
3899
+ function FulfillWithMeta(payload, meta) {
3900
+ this.payload = payload;
3901
+ this.meta = meta;
3902
+ }
3903
+ return FulfillWithMeta;
3904
+ }();
3905
+ var miniSerializeError = function (value) {
3906
+ if (typeof value === "object" && value !== null) {
3907
+ var simpleError = {};
3908
+ for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
3909
+ var property = commonProperties_1[_i];
3910
+ if (typeof value[property] === "string") {
3911
+ simpleError[property] = value[property];
3912
+ }
3913
+ }
3914
+ return simpleError;
3915
+ }
3916
+ return {
3917
+ message: String(value)
3918
+ };
3919
+ };
3920
+ (function () {
3921
+ function createAsyncThunk2(typePrefix, payloadCreator, options) {
3922
+ var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) {
3923
+ return {
3924
+ payload: payload,
3925
+ meta: __spreadProps(__spreadValues({}, meta || {}), {
3926
+ arg: arg,
3927
+ requestId: requestId,
3928
+ requestStatus: "fulfilled"
3929
+ })
3930
+ };
3931
+ });
3932
+ var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) {
3933
+ return {
3934
+ payload: void 0,
3935
+ meta: __spreadProps(__spreadValues({}, meta || {}), {
3936
+ arg: arg,
3937
+ requestId: requestId,
3938
+ requestStatus: "pending"
3939
+ })
3940
+ };
3941
+ });
3942
+ var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) {
3943
+ return {
3944
+ payload: payload,
3945
+ error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
3946
+ meta: __spreadProps(__spreadValues({}, meta || {}), {
3947
+ arg: arg,
3948
+ requestId: requestId,
3949
+ rejectedWithValue: !!payload,
3950
+ requestStatus: "rejected",
3951
+ aborted: (error == null ? void 0 : error.name) === "AbortError",
3952
+ condition: (error == null ? void 0 : error.name) === "ConditionError"
3953
+ })
3954
+ };
3955
+ });
3956
+ var displayedWarning = false;
3957
+ var AC = typeof AbortController !== "undefined" ? AbortController : (/** @class */function () {
3958
+ function class_1() {
3959
+ this.signal = {
3960
+ aborted: false,
3961
+ addEventListener: function () {},
3962
+ dispatchEvent: function () {
3963
+ return false;
3964
+ },
3965
+ onabort: function () {},
3966
+ removeEventListener: function () {},
3967
+ reason: void 0,
3968
+ throwIfAborted: function () {}
3969
+ };
3970
+ }
3971
+ class_1.prototype.abort = function () {
3972
+ if (process.env.NODE_ENV !== "production") {
3973
+ if (!displayedWarning) {
3974
+ displayedWarning = true;
3975
+ console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.");
3976
+ }
3977
+ }
3978
+ };
3979
+ return class_1;
3980
+ }());
3981
+ function actionCreator(arg) {
3982
+ return function (dispatch, getState, extra) {
3983
+ var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
3984
+ var abortController = new AC();
3985
+ var abortReason;
3986
+ function abort(reason) {
3987
+ abortReason = reason;
3988
+ abortController.abort();
3989
+ }
3990
+ var promise2 = function () {
3991
+ return __async(this, null, function () {
3992
+ var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
3993
+ return __generator(this, function (_c) {
3994
+ switch (_c.label) {
3995
+ case 0:
3996
+ _c.trys.push([0, 4,, 5]);
3997
+ conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, {
3998
+ getState: getState,
3999
+ extra: extra
4000
+ });
4001
+ if (!isThenable(conditionResult)) return [3 /*break*/, 2];
4002
+ return [4 /*yield*/, conditionResult];
4003
+ case 1:
4004
+ conditionResult = _c.sent();
4005
+ _c.label = 2;
4006
+ case 2:
4007
+ if (conditionResult === false || abortController.signal.aborted) {
4008
+ throw {
4009
+ name: "ConditionError",
4010
+ message: "Aborted due to condition callback returning false."
4011
+ };
4012
+ }
4013
+ abortedPromise = new Promise(function (_, reject) {
4014
+ return abortController.signal.addEventListener("abort", function () {
4015
+ return reject({
4016
+ name: "AbortError",
4017
+ message: abortReason || "Aborted"
4018
+ });
4019
+ });
4020
+ });
4021
+ dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, {
4022
+ requestId: requestId,
4023
+ arg: arg
4024
+ }, {
4025
+ getState: getState,
4026
+ extra: extra
4027
+ })));
4028
+ return [4 /*yield*/, Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {
4029
+ dispatch: dispatch,
4030
+ getState: getState,
4031
+ extra: extra,
4032
+ requestId: requestId,
4033
+ signal: abortController.signal,
4034
+ abort: abort,
4035
+ rejectWithValue: function (value, meta) {
4036
+ return new RejectWithValue(value, meta);
4037
+ },
4038
+ fulfillWithValue: function (value, meta) {
4039
+ return new FulfillWithMeta(value, meta);
4040
+ }
4041
+ })).then(function (result) {
4042
+ if (result instanceof RejectWithValue) {
4043
+ throw result;
4044
+ }
4045
+ if (result instanceof FulfillWithMeta) {
4046
+ return fulfilled(result.payload, requestId, arg, result.meta);
4047
+ }
4048
+ return fulfilled(result, requestId, arg);
4049
+ })])];
4050
+ case 3:
4051
+ finalAction = _c.sent();
4052
+ return [3 /*break*/, 5];
4053
+ case 4:
4054
+ err_1 = _c.sent();
4055
+ finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
4056
+ return [3 /*break*/, 5];
4057
+ case 5:
4058
+ skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
4059
+ if (!skipDispatch) {
4060
+ dispatch(finalAction);
4061
+ }
4062
+ return [2 /*return*/, finalAction];
4063
+ }
4064
+ });
4065
+ });
4066
+ }();
4067
+ return Object.assign(promise2, {
4068
+ abort: abort,
4069
+ requestId: requestId,
4070
+ arg: arg,
4071
+ unwrap: function () {
4072
+ return promise2.then(unwrapResult);
4073
+ }
4074
+ });
4075
+ };
4076
+ }
4077
+ return Object.assign(actionCreator, {
4078
+ pending: pending,
4079
+ rejected: rejected,
4080
+ fulfilled: fulfilled,
4081
+ typePrefix: typePrefix
4082
+ });
4083
+ }
4084
+ createAsyncThunk2.withTypes = function () {
4085
+ return createAsyncThunk2;
4086
+ };
4087
+ return createAsyncThunk2;
4088
+ })();
4089
+ function unwrapResult(action) {
4090
+ if (action.meta && action.meta.rejectedWithValue) {
4091
+ throw action.payload;
4092
+ }
4093
+ if (action.error) {
4094
+ throw action.error;
4095
+ }
4096
+ return action.payload;
4097
+ }
4098
+ function isThenable(value) {
4099
+ return value !== null && typeof value === "object" && typeof value.then === "function";
4100
+ }
4101
+ var alm = "listenerMiddleware";
4102
+ createAction(alm + "/add");
4103
+ createAction(alm + "/removeAll");
4104
+ createAction(alm + "/remove");
4105
+ var promise;
4106
+ typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : globalThis) : function (cb) {
4107
+ return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) {
4108
+ return setTimeout(function () {
4109
+ throw err;
4110
+ }, 0);
4111
+ });
4112
+ };
4113
+ // src/index.ts
4114
+ F();
4115
+
3766
4116
  var useAction = function useAction(action, deps) {
3767
4117
  return useActions([action], deps)[0];
3768
4118
  };
3769
4119
  var useActions = function useActions(actions, deps) {
3770
- var dispatch = reactRedux.useDispatch();
4120
+ var dispatch = useDispatch();
3771
4121
  return react.exports.useMemo(function () {
3772
4122
  if (Array.isArray(actions)) {
3773
4123
  return actions.map(function (a) {
@@ -5194,7 +5544,7 @@
5194
5544
  var _excluded = ["data"];
5195
5545
  var makeSelectorHook = function makeSelectorHook(selector) {
5196
5546
  return function () {
5197
- return reactRedux.useSelector(selector, reactRedux.shallowEqual);
5547
+ return useSelector(selector, shallowEqual);
5198
5548
  };
5199
5549
  };
5200
5550
  var makeSelectorFactoryHook = function makeSelectorFactoryHook(selectorFactory) {
@@ -5202,13 +5552,13 @@
5202
5552
  return (
5203
5553
  // a selector factory is used when the selector requires args
5204
5554
  // this factory produces a function that accepts those arguments
5205
- reactRedux.useSelector(selectorFactory(args), reactRedux.shallowEqual)
5555
+ useSelector(selectorFactory(args), shallowEqual)
5206
5556
  );
5207
5557
  };
5208
5558
  };
5209
5559
  var createSelectorUpdateHook = function createSelectorUpdateHook(selector, action) {
5210
5560
  return function () {
5211
- return [reactRedux.useSelector(selector), useAction(action, undefined)];
5561
+ return [useSelector(selector), useAction(action, undefined)];
5212
5562
  };
5213
5563
  };
5214
5564
  var createSelectorHook = function createSelectorHook() {
@@ -5290,7 +5640,7 @@
5290
5640
  var setterCb = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (value) {
5291
5641
  return value;
5292
5642
  };
5293
- return [reactRedux.useSelector(selector), useAction(function (value) {
5643
+ return [useSelector(selector), useAction(function (value) {
5294
5644
  return updateAction(setterCb(value));
5295
5645
  }, undefined)];
5296
5646
  };