PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | assets/js/common-modules.js +3382 -17 4.2.23.35.7 View file →
@@ -1,4 +1,4 @@
1 1 /******/ (() => { // webpackBootstrap
2 2 /******/ var __webpack_modules__ = ({
3 3
4 4 /***/ "../app/modules/import-export-customization/assets/js/shared/registry/base.js":
@@ -883,9 +883,9 @@
883 883 var _scroll = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/scroll */ "../assets/dev/js/modules/imports/utils/scroll.js"));
884 884 var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ./imports/force-method-implementation */ "../assets/dev/js/modules/imports/force-method-implementation.js"));
885 885 var _templateRegistryHelpers = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers */ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js");
886 886 var _customizationDialogs = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs */ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js");
887 -var baseModules = {
887 +var _default = exports["default"] = window.elementorModules = {
888 888 Module: _module.default,
889 889 ViewModule: _viewModule.default,
890 890 ArgsObject: _argsObject.default,
891 891 ForceMethodImplementation: _forceMethodImplementation.default,
@@ -897,14 +897,8 @@
897 897 createGetInitialState: _templateRegistryHelpers.createGetInitialState,
898 898 customizationDialogsRegistry: _customizationDialogs.customizationDialogsRegistry
899 899 }
900 900 };
901 -if (!window.elementorModules) {
902 - window.elementorModules = baseModules;
903 -} else {
904 - Object.assign(window.elementorModules, baseModules);
905 -}
906 -var _default = exports["default"] = window.elementorModules;
907 901
908 902 /***/ }),
909 903
910 904 /***/ "../core/common/assets/js/views/modal/header.js":
@@ -934,13 +928,8 @@
934 928 return _callSuper(this, _default, arguments);
935 929 }
936 930 (0, _inherits2.default)(_default, _Marionette$LayoutVie);
937 931 return (0, _createClass2.default)(_default, [{
938 - key: "tagName",
939 - value: function tagName() {
940 - return 'header';
941 - }
942 - }, {
943 932 key: "className",
944 933 value: function className() {
945 934 return 'elementor-templates-modal__header';
946 935 }
@@ -1884,9 +1873,9 @@
1884 1873 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1885 1874 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1886 1875 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1887 1876 var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
1888 -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit");
1877 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
1889 1878 var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
1890 1879 var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
1891 1880 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
1892 1881 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -2964,8 +2953,145 @@
2964 2953 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2965 2954
2966 2955 /***/ }),
2967 2956
2957 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
2958 +/*!********************************************************************!*\
2959 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
2960 + \********************************************************************/
2961 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2962 +
2963 +"use strict";
2964 +__webpack_require__.r(__webpack_exports__);
2965 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2966 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
2967 +/* harmony export */ });
2968 +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
2969 +
2970 +function _defineProperty(e, r, t) {
2971 + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
2972 + value: t,
2973 + enumerable: !0,
2974 + configurable: !0,
2975 + writable: !0
2976 + }) : e[r] = t, e;
2977 +}
2978 +
2979 +
2980 +/***/ }),
2981 +
2982 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
2983 +/*!*******************************************************************!*\
2984 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
2985 + \*******************************************************************/
2986 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2987 +
2988 +"use strict";
2989 +__webpack_require__.r(__webpack_exports__);
2990 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2991 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
2992 +/* harmony export */ });
2993 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
2994 +
2995 +function ownKeys(e, r) {
2996 + var t = Object.keys(e);
2997 + if (Object.getOwnPropertySymbols) {
2998 + var o = Object.getOwnPropertySymbols(e);
2999 + r && (o = o.filter(function (r) {
3000 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
3001 + })), t.push.apply(t, o);
3002 + }
3003 + return t;
3004 +}
3005 +function _objectSpread2(e) {
3006 + for (var r = 1; r < arguments.length; r++) {
3007 + var t = null != arguments[r] ? arguments[r] : {};
3008 + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
3009 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
3010 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
3011 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
3012 + });
3013 + }
3014 + return e;
3015 +}
3016 +
3017 +
3018 +/***/ }),
3019 +
3020 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
3021 +/*!*****************************************************************!*\
3022 + !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
3023 + \*****************************************************************/
3024 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3025 +
3026 +"use strict";
3027 +__webpack_require__.r(__webpack_exports__);
3028 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3029 +/* harmony export */ "default": () => (/* binding */ toPrimitive)
3030 +/* harmony export */ });
3031 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
3032 +
3033 +function toPrimitive(t, r) {
3034 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
3035 + var e = t[Symbol.toPrimitive];
3036 + if (void 0 !== e) {
3037 + var i = e.call(t, r || "default");
3038 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
3039 + throw new TypeError("@@toPrimitive must return a primitive value.");
3040 + }
3041 + return ("string" === r ? String : Number)(t);
3042 +}
3043 +
3044 +
3045 +/***/ }),
3046 +
3047 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
3048 +/*!*******************************************************************!*\
3049 + !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
3050 + \*******************************************************************/
3051 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3052 +
3053 +"use strict";
3054 +__webpack_require__.r(__webpack_exports__);
3055 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3056 +/* harmony export */ "default": () => (/* binding */ toPropertyKey)
3057 +/* harmony export */ });
3058 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
3059 +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
3060 +
3061 +
3062 +function toPropertyKey(t) {
3063 + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
3064 + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
3065 +}
3066 +
3067 +
3068 +/***/ }),
3069 +
3070 +/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js":
3071 +/*!************************************************************!*\
3072 + !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***!
3073 + \************************************************************/
3074 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3075 +
3076 +"use strict";
3077 +__webpack_require__.r(__webpack_exports__);
3078 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3079 +/* harmony export */ "default": () => (/* binding */ _typeof)
3080 +/* harmony export */ });
3081 +function _typeof(o) {
3082 + "@babel/helpers - typeof";
3083 +
3084 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3085 + return typeof o;
3086 + } : function (o) {
3087 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3088 + }, _typeof(o);
3089 +}
3090 +
3091 +
3092 +/***/ }),
3093 +
2968 3094 /***/ "../node_modules/@babel/runtime/helpers/get.js":
2969 3095 /*!*****************************************************!*\
2970 3096 !*** ../node_modules/@babel/runtime/helpers/get.js ***!
2971 3097 \*****************************************************/
@@ -3393,17 +3519,3215 @@
3393 3519 module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
3394 3520
3395 3521 /***/ }),
3396 3522
3397 -/***/ "@reduxjs/toolkit":
3523 +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
3524 +/*!******************************************************************!*\
3525 + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
3526 + \******************************************************************/
3527 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3528 +
3529 +"use strict";
3530 +__webpack_require__.r(__webpack_exports__);
3531 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3532 +/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray),
3533 +/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray),
3534 +/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH),
3535 +/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError),
3536 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.__DO_NOT_USE__ActionTypes),
3537 +/* harmony export */ addListener: () => (/* binding */ addListener),
3538 +/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware),
3539 +/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer),
3540 +/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.bindActionCreators),
3541 +/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners),
3542 +/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers),
3543 +/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.compose),
3544 +/* harmony export */ configureStore: () => (/* binding */ configureStore),
3545 +/* harmony export */ createAction: () => (/* binding */ createAction),
3546 +/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware),
3547 +/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk),
3548 +/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector),
3549 +/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter),
3550 +/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware),
3551 +/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware),
3552 +/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__["default"]),
3553 +/* harmony export */ createReducer: () => (/* binding */ createReducer),
3554 +/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector),
3555 +/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware),
3556 +/* harmony export */ createSlice: () => (/* binding */ createSlice),
3557 +/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.createStore),
3558 +/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.current),
3559 +/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue),
3560 +/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.freeze),
3561 +/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware),
3562 +/* harmony export */ getType: () => (/* binding */ getType),
3563 +/* harmony export */ isAction: () => (/* binding */ isAction),
3564 +/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator),
3565 +/* harmony export */ isAllOf: () => (/* binding */ isAllOf),
3566 +/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf),
3567 +/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction),
3568 +/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.isDraft),
3569 +/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA),
3570 +/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled),
3571 +/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault),
3572 +/* harmony export */ isPending: () => (/* binding */ isPending),
3573 +/* harmony export */ isPlain: () => (/* binding */ isPlain),
3574 +/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject),
3575 +/* harmony export */ isRejected: () => (/* binding */ isRejected),
3576 +/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue),
3577 +/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.legacy_createStore),
3578 +/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError),
3579 +/* harmony export */ nanoid: () => (/* binding */ nanoid),
3580 +/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.original),
3581 +/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched),
3582 +/* harmony export */ removeListener: () => (/* binding */ removeListener),
3583 +/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult)
3584 +/* harmony export */ });
3585 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
3586 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
3587 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
3588 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
3589 +var __extends = (undefined && undefined.__extends) || (function () {
3590 + var extendStatics = function (d, b) {
3591 + extendStatics = Object.setPrototypeOf ||
3592 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3593 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3594 + return extendStatics(d, b);
3595 + };
3596 + return function (d, b) {
3597 + if (typeof b !== "function" && b !== null)
3598 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3599 + extendStatics(d, b);
3600 + function __() { this.constructor = d; }
3601 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3602 + };
3603 +})();
3604 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
3605 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3606 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3607 + function verb(n) { return function (v) { return step([n, v]); }; }
3608 + function step(op) {
3609 + if (f) throw new TypeError("Generator is already executing.");
3610 + while (_) try {
3611 + 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;
3612 + if (y = 0, t) op = [op[0] & 2, t.value];
3613 + switch (op[0]) {
3614 + case 0: case 1: t = op; break;
3615 + case 4: _.label++; return { value: op[1], done: false };
3616 + case 5: _.label++; y = op[1]; op = [0]; continue;
3617 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
3618 + default:
3619 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3620 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3621 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3622 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3623 + if (t[2]) _.ops.pop();
3624 + _.trys.pop(); continue;
3625 + }
3626 + op = body.call(thisArg, _);
3627 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3628 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3629 + }
3630 +};
3631 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
3632 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
3633 + to[j] = from[i];
3634 + return to;
3635 +};
3636 +var __defProp = Object.defineProperty;
3637 +var __defProps = Object.defineProperties;
3638 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3639 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3640 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3641 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
3642 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
3643 +var __spreadValues = function (a, b) {
3644 + for (var prop in b || (b = {}))
3645 + if (__hasOwnProp.call(b, prop))
3646 + __defNormalProp(a, prop, b[prop]);
3647 + if (__getOwnPropSymbols)
3648 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
3649 + var prop = _c[_i];
3650 + if (__propIsEnum.call(b, prop))
3651 + __defNormalProp(a, prop, b[prop]);
3652 + }
3653 + return a;
3654 +};
3655 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
3656 +var __async = function (__this, __arguments, generator) {
3657 + return new Promise(function (resolve, reject) {
3658 + var fulfilled = function (value) {
3659 + try {
3660 + step(generator.next(value));
3661 + }
3662 + catch (e) {
3663 + reject(e);
3664 + }
3665 + };
3666 + var rejected = function (value) {
3667 + try {
3668 + step(generator.throw(value));
3669 + }
3670 + catch (e) {
3671 + reject(e);
3672 + }
3673 + };
3674 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
3675 + step((generator = generator.apply(__this, __arguments)).next());
3676 + });
3677 +};
3678 +// src/index.ts
3679 +
3680 +
3681 +
3682 +
3683 +// src/createDraftSafeSelector.ts
3684 +
3685 +
3686 +var createDraftSafeSelector = function () {
3687 + var args = [];
3688 + for (var _i = 0; _i < arguments.length; _i++) {
3689 + args[_i] = arguments[_i];
3690 + }
3691 + var selector = reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector.apply(void 0, args);
3692 + var wrappedSelector = function (value) {
3693 + var rest = [];
3694 + for (var _i = 1; _i < arguments.length; _i++) {
3695 + rest[_i - 1] = arguments[_i];
3696 + }
3697 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__.current)(value) : value], rest));
3698 + };
3699 + return wrappedSelector;
3700 +};
3701 +// src/configureStore.ts
3702 +
3703 +// src/devtoolsExtension.ts
3704 +
3705 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
3706 + if (arguments.length === 0)
3707 + return void 0;
3708 + if (typeof arguments[0] === "object")
3709 + return redux__WEBPACK_IMPORTED_MODULE_1__.compose;
3710 + return redux__WEBPACK_IMPORTED_MODULE_1__.compose.apply(null, arguments);
3711 +};
3712 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
3713 + return function (noop2) {
3714 + return noop2;
3715 + };
3716 +};
3717 +// src/isPlainObject.ts
3718 +function isPlainObject(value) {
3719 + if (typeof value !== "object" || value === null)
3720 + return false;
3721 + var proto = Object.getPrototypeOf(value);
3722 + if (proto === null)
3723 + return true;
3724 + var baseProto = proto;
3725 + while (Object.getPrototypeOf(baseProto) !== null) {
3726 + baseProto = Object.getPrototypeOf(baseProto);
3727 + }
3728 + return proto === baseProto;
3729 +}
3730 +// src/getDefaultMiddleware.ts
3731 +
3732 +// src/tsHelpers.ts
3733 +var hasMatchFunction = function (v) {
3734 + return v && typeof v.match === "function";
3735 +};
3736 +// src/createAction.ts
3737 +function createAction(type, prepareAction) {
3738 + function actionCreator() {
3739 + var args = [];
3740 + for (var _i = 0; _i < arguments.length; _i++) {
3741 + args[_i] = arguments[_i];
3742 + }
3743 + if (prepareAction) {
3744 + var prepared = prepareAction.apply(void 0, args);
3745 + if (!prepared) {
3746 + throw new Error("prepareAction did not return an object");
3747 + }
3748 + return __spreadValues(__spreadValues({
3749 + type: type,
3750 + payload: prepared.payload
3751 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
3752 + }
3753 + return { type: type, payload: args[0] };
3754 + }
3755 + actionCreator.toString = function () { return "" + type; };
3756 + actionCreator.type = type;
3757 + actionCreator.match = function (action) { return action.type === type; };
3758 + return actionCreator;
3759 +}
3760 +function isAction(action) {
3761 + return isPlainObject(action) && "type" in action;
3762 +}
3763 +function isActionCreator(action) {
3764 + return typeof action === "function" && "type" in action && hasMatchFunction(action);
3765 +}
3766 +function isFSA(action) {
3767 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
3768 +}
3769 +function isValidKey(key) {
3770 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
3771 +}
3772 +function getType(actionCreator) {
3773 + return "" + actionCreator;
3774 +}
3775 +// src/actionCreatorInvariantMiddleware.ts
3776 +function getMessage(type) {
3777 + var splitType = type ? ("" + type).split("/") : [];
3778 + var actionName = splitType[splitType.length - 1] || "actionCreator";
3779 + return "Detected an action creator with type \"" + (type || "unknown") + "\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(" + actionName + "())` instead of `dispatch(" + actionName + ")`. This is necessary even if the action has no payload.";
3780 +}
3781 +function createActionCreatorInvariantMiddleware(options) {
3782 + if (options === void 0) { options = {}; }
3783 + if (false) // removed by dead control flow
3784 +{}
3785 + var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
3786 + return function () { return function (next) { return function (action) {
3787 + if (isActionCreator2(action)) {
3788 + console.warn(getMessage(action.type));
3789 + }
3790 + return next(action);
3791 + }; }; };
3792 +}
3793 +// src/utils.ts
3794 +
3795 +function getTimeMeasureUtils(maxDelay, fnName) {
3796 + var elapsed = 0;
3797 + return {
3798 + measureTime: function (fn) {
3799 + var started = Date.now();
3800 + try {
3801 + return fn();
3802 + }
3803 + finally {
3804 + var finished = Date.now();
3805 + elapsed += finished - started;
3806 + }
3807 + },
3808 + warnIfExceeded: function () {
3809 + if (elapsed > maxDelay) {
3810 + console.warn(fnName + " took " + elapsed + "ms, which is more than the warning threshold of " + maxDelay + "ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.");
3811 + }
3812 + }
3813 + };
3814 +}
3815 +var MiddlewareArray = /** @class */ (function (_super) {
3816 + __extends(MiddlewareArray, _super);
3817 + function MiddlewareArray() {
3818 + var args = [];
3819 + for (var _i = 0; _i < arguments.length; _i++) {
3820 + args[_i] = arguments[_i];
3821 + }
3822 + var _this = _super.apply(this, args) || this;
3823 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
3824 + return _this;
3825 + }
3826 + Object.defineProperty(MiddlewareArray, Symbol.species, {
3827 + get: function () {
3828 + return MiddlewareArray;
3829 + },
3830 + enumerable: false,
3831 + configurable: true
3832 + });
3833 + MiddlewareArray.prototype.concat = function () {
3834 + var arr = [];
3835 + for (var _i = 0; _i < arguments.length; _i++) {
3836 + arr[_i] = arguments[_i];
3837 + }
3838 + return _super.prototype.concat.apply(this, arr);
3839 + };
3840 + MiddlewareArray.prototype.prepend = function () {
3841 + var arr = [];
3842 + for (var _i = 0; _i < arguments.length; _i++) {
3843 + arr[_i] = arguments[_i];
3844 + }
3845 + if (arr.length === 1 && Array.isArray(arr[0])) {
3846 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
3847 + }
3848 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
3849 + };
3850 + return MiddlewareArray;
3851 +}(Array));
3852 +var EnhancerArray = /** @class */ (function (_super) {
3853 + __extends(EnhancerArray, _super);
3854 + function EnhancerArray() {
3855 + var args = [];
3856 + for (var _i = 0; _i < arguments.length; _i++) {
3857 + args[_i] = arguments[_i];
3858 + }
3859 + var _this = _super.apply(this, args) || this;
3860 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
3861 + return _this;
3862 + }
3863 + Object.defineProperty(EnhancerArray, Symbol.species, {
3864 + get: function () {
3865 + return EnhancerArray;
3866 + },
3867 + enumerable: false,
3868 + configurable: true
3869 + });
3870 + EnhancerArray.prototype.concat = function () {
3871 + var arr = [];
3872 + for (var _i = 0; _i < arguments.length; _i++) {
3873 + arr[_i] = arguments[_i];
3874 + }
3875 + return _super.prototype.concat.apply(this, arr);
3876 + };
3877 + EnhancerArray.prototype.prepend = function () {
3878 + var arr = [];
3879 + for (var _i = 0; _i < arguments.length; _i++) {
3880 + arr[_i] = arguments[_i];
3881 + }
3882 + if (arr.length === 1 && Array.isArray(arr[0])) {
3883 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
3884 + }
3885 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
3886 + };
3887 + return EnhancerArray;
3888 +}(Array));
3889 +function freezeDraftable(val) {
3890 + return (0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(val, function () {
3891 + }) : val;
3892 +}
3893 +// src/immutableStateInvariantMiddleware.ts
3894 +var isProduction = "development" === "production";
3895 +var prefix = "Invariant failed";
3896 +function invariant(condition, message) {
3897 + if (condition) {
3898 + return;
3899 + }
3900 + if (isProduction) {
3901 + throw new Error(prefix);
3902 + }
3903 + throw new Error(prefix + ": " + (message || ""));
3904 +}
3905 +function stringify(obj, serializer, indent, decycler) {
3906 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
3907 +}
3908 +function getSerialize(serializer, decycler) {
3909 + var stack = [], keys = [];
3910 + if (!decycler)
3911 + decycler = function (_, value) {
3912 + if (stack[0] === value)
3913 + return "[Circular ~]";
3914 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
3915 + };
3916 + return function (key, value) {
3917 + if (stack.length > 0) {
3918 + var thisPos = stack.indexOf(this);
3919 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
3920 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
3921 + if (~stack.indexOf(value))
3922 + value = decycler.call(this, key, value);
3923 + }
3924 + else
3925 + stack.push(value);
3926 + return serializer == null ? value : serializer.call(this, key, value);
3927 + };
3928 +}
3929 +function isImmutableDefault(value) {
3930 + return typeof value !== "object" || value == null || Object.isFrozen(value);
3931 +}
3932 +function trackForMutations(isImmutable, ignorePaths, obj) {
3933 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
3934 + return {
3935 + detectMutations: function () {
3936 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
3937 + }
3938 + };
3939 +}
3940 +function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
3941 + if (ignorePaths === void 0) { ignorePaths = []; }
3942 + if (path === void 0) { path = ""; }
3943 + if (checkedObjects === void 0) { checkedObjects = new Set(); }
3944 + var tracked = { value: obj };
3945 + if (!isImmutable(obj) && !checkedObjects.has(obj)) {
3946 + checkedObjects.add(obj);
3947 + tracked.children = {};
3948 + for (var key in obj) {
3949 + var childPath = path ? path + "." + key : key;
3950 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
3951 + continue;
3952 + }
3953 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
3954 + }
3955 + }
3956 + return tracked;
3957 +}
3958 +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
3959 + if (ignoredPaths === void 0) { ignoredPaths = []; }
3960 + if (sameParentRef === void 0) { sameParentRef = false; }
3961 + if (path === void 0) { path = ""; }
3962 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
3963 + var sameRef = prevObj === obj;
3964 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
3965 + return { wasMutated: true, path: path };
3966 + }
3967 + if (isImmutable(prevObj) || isImmutable(obj)) {
3968 + return { wasMutated: false };
3969 + }
3970 + var keysToDetect = {};
3971 + for (var key in trackedProperty.children) {
3972 + keysToDetect[key] = true;
3973 + }
3974 + for (var key in obj) {
3975 + keysToDetect[key] = true;
3976 + }
3977 + var hasIgnoredPaths = ignoredPaths.length > 0;
3978 + var _loop_1 = function (key) {
3979 + var nestedPath = path ? path + "." + key : key;
3980 + if (hasIgnoredPaths) {
3981 + var hasMatches = ignoredPaths.some(function (ignored) {
3982 + if (ignored instanceof RegExp) {
3983 + return ignored.test(nestedPath);
3984 + }
3985 + return nestedPath === ignored;
3986 + });
3987 + if (hasMatches) {
3988 + return "continue";
3989 + }
3990 + }
3991 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
3992 + if (result.wasMutated) {
3993 + return { value: result };
3994 + }
3995 + };
3996 + for (var key in keysToDetect) {
3997 + var state_1 = _loop_1(key);
3998 + if (typeof state_1 === "object")
3999 + return state_1.value;
4000 + }
4001 + return { wasMutated: false };
4002 +}
4003 +function createImmutableStateInvariantMiddleware(options) {
4004 + if (options === void 0) { options = {}; }
4005 + if (false) // removed by dead control flow
4006 +{}
4007 + var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore;
4008 + ignoredPaths = ignoredPaths || ignore;
4009 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
4010 + return function (_c) {
4011 + var getState = _c.getState;
4012 + var state = getState();
4013 + var tracker = track(state);
4014 + var result;
4015 + return function (next) { return function (action) {
4016 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
4017 + measureUtils.measureTime(function () {
4018 + state = getState();
4019 + result = tracker.detectMutations();
4020 + tracker = track(state);
4021 + invariant(!result.wasMutated, "A state mutation was detected between dispatches, in the path '" + (result.path || "") + "'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)");
4022 + });
4023 + var dispatchedAction = next(action);
4024 + measureUtils.measureTime(function () {
4025 + state = getState();
4026 + result = tracker.detectMutations();
4027 + tracker = track(state);
4028 + result.wasMutated && invariant(!result.wasMutated, "A state mutation was detected inside a dispatch, in the path: " + (result.path || "") + ". Take a look at the reducer(s) handling the action " + stringify(action) + ". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)");
4029 + });
4030 + measureUtils.warnIfExceeded();
4031 + return dispatchedAction;
4032 + }; };
4033 + };
4034 +}
4035 +// src/serializableStateInvariantMiddleware.ts
4036 +function isPlain(val) {
4037 + var type = typeof val;
4038 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
4039 +}
4040 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
4041 + if (path === void 0) { path = ""; }
4042 + if (isSerializable === void 0) { isSerializable = isPlain; }
4043 + if (ignoredPaths === void 0) { ignoredPaths = []; }
4044 + var foundNestedSerializable;
4045 + if (!isSerializable(value)) {
4046 + return {
4047 + keyPath: path || "<root>",
4048 + value: value
4049 + };
4050 + }
4051 + if (typeof value !== "object" || value === null) {
4052 + return false;
4053 + }
4054 + if (cache == null ? void 0 : cache.has(value))
4055 + return false;
4056 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
4057 + var hasIgnoredPaths = ignoredPaths.length > 0;
4058 + var _loop_2 = function (key, nestedValue) {
4059 + var nestedPath = path ? path + "." + key : key;
4060 + if (hasIgnoredPaths) {
4061 + var hasMatches = ignoredPaths.some(function (ignored) {
4062 + if (ignored instanceof RegExp) {
4063 + return ignored.test(nestedPath);
4064 + }
4065 + return nestedPath === ignored;
4066 + });
4067 + if (hasMatches) {
4068 + return "continue";
4069 + }
4070 + }
4071 + if (!isSerializable(nestedValue)) {
4072 + return { value: {
4073 + keyPath: nestedPath,
4074 + value: nestedValue
4075 + } };
4076 + }
4077 + if (typeof nestedValue === "object") {
4078 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
4079 + if (foundNestedSerializable) {
4080 + return { value: foundNestedSerializable };
4081 + }
4082 + }
4083 + };
4084 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
4085 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
4086 + var state_2 = _loop_2(key, nestedValue);
4087 + if (typeof state_2 === "object")
4088 + return state_2.value;
4089 + }
4090 + if (cache && isNestedFrozen(value))
4091 + cache.add(value);
4092 + return false;
4093 +}
4094 +function isNestedFrozen(value) {
4095 + if (!Object.isFrozen(value))
4096 + return false;
4097 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
4098 + var nestedValue = _c[_i];
4099 + if (typeof nestedValue !== "object" || nestedValue === null)
4100 + continue;
4101 + if (!isNestedFrozen(nestedValue))
4102 + return false;
4103 + }
4104 + return true;
4105 +}
4106 +function createSerializableStateInvariantMiddleware(options) {
4107 + if (options === void 0) { options = {}; }
4108 + if (false) // removed by dead control flow
4109 +{}
4110 + var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j, _k = options.disableCache, disableCache = _k === void 0 ? false : _k;
4111 + var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
4112 + return function (storeAPI) { return function (next) { return function (action) {
4113 + var result = next(action);
4114 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
4115 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
4116 + measureUtils.measureTime(function () {
4117 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
4118 + if (foundActionNonSerializableValue) {
4119 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
4120 + console.error("A non-serializable value was detected in an action, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)");
4121 + }
4122 + });
4123 + }
4124 + if (!ignoreState) {
4125 + measureUtils.measureTime(function () {
4126 + var state = storeAPI.getState();
4127 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
4128 + if (foundStateNonSerializableValue) {
4129 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
4130 + console.error("A non-serializable value was detected in the state, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the reducer(s) handling this action type: " + action.type + ".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)");
4131 + }
4132 + });
4133 + measureUtils.warnIfExceeded();
4134 + }
4135 + return result;
4136 + }; }; };
4137 +}
4138 +// src/getDefaultMiddleware.ts
4139 +function isBoolean(x) {
4140 + return typeof x === "boolean";
4141 +}
4142 +function curryGetDefaultMiddleware() {
4143 + return function curriedGetDefaultMiddleware(options) {
4144 + return getDefaultMiddleware(options);
4145 + };
4146 +}
4147 +function getDefaultMiddleware(options) {
4148 + if (options === void 0) { options = {}; }
4149 + var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e, _f = options.actionCreatorCheck, actionCreatorCheck = _f === void 0 ? true : _f;
4150 + var middlewareArray = new MiddlewareArray();
4151 + if (thunk) {
4152 + if (isBoolean(thunk)) {
4153 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
4154 + }
4155 + else {
4156 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
4157 + }
4158 + }
4159 + if (true) {
4160 + if (immutableCheck) {
4161 + var immutableOptions = {};
4162 + if (!isBoolean(immutableCheck)) {
4163 + immutableOptions = immutableCheck;
4164 + }
4165 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
4166 + }
4167 + if (serializableCheck) {
4168 + var serializableOptions = {};
4169 + if (!isBoolean(serializableCheck)) {
4170 + serializableOptions = serializableCheck;
4171 + }
4172 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
4173 + }
4174 + if (actionCreatorCheck) {
4175 + var actionCreatorOptions = {};
4176 + if (!isBoolean(actionCreatorCheck)) {
4177 + actionCreatorOptions = actionCreatorCheck;
4178 + }
4179 + middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
4180 + }
4181 + }
4182 + return middlewareArray;
4183 +}
4184 +// src/configureStore.ts
4185 +var IS_PRODUCTION = "development" === "production";
4186 +function configureStore(options) {
4187 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
4188 + var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h;
4189 + var rootReducer;
4190 + if (typeof reducer === "function") {
4191 + rootReducer = reducer;
4192 + }
4193 + else if (isPlainObject(reducer)) {
4194 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers)(reducer);
4195 + }
4196 + else {
4197 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
4198 + }
4199 + var finalMiddleware = middleware;
4200 + if (typeof finalMiddleware === "function") {
4201 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
4202 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
4203 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
4204 + }
4205 + }
4206 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
4207 + throw new Error("each middleware provided to configureStore must be a function");
4208 + }
4209 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware.apply(void 0, finalMiddleware);
4210 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_1__.compose;
4211 + if (devTools) {
4212 + finalCompose = composeWithDevTools(__spreadValues({
4213 + trace: !IS_PRODUCTION
4214 + }, typeof devTools === "object" && devTools));
4215 + }
4216 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
4217 + var storeEnhancers = defaultEnhancers;
4218 + if (Array.isArray(enhancers)) {
4219 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
4220 + }
4221 + else if (typeof enhancers === "function") {
4222 + storeEnhancers = enhancers(defaultEnhancers);
4223 + }
4224 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
4225 + return (0,redux__WEBPACK_IMPORTED_MODULE_1__.createStore)(rootReducer, preloadedState, composedEnhancer);
4226 +}
4227 +// src/createReducer.ts
4228 +
4229 +// src/mapBuilders.ts
4230 +function executeReducerBuilderCallback(builderCallback) {
4231 + var actionsMap = {};
4232 + var actionMatchers = [];
4233 + var defaultCaseReducer;
4234 + var builder = {
4235 + addCase: function (typeOrActionCreator, reducer) {
4236 + if (true) {
4237 + if (actionMatchers.length > 0) {
4238 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
4239 + }
4240 + if (defaultCaseReducer) {
4241 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
4242 + }
4243 + }
4244 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
4245 + if (!type) {
4246 + throw new Error("`builder.addCase` cannot be called with an empty action type");
4247 + }
4248 + if (type in actionsMap) {
4249 + throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
4250 + }
4251 + actionsMap[type] = reducer;
4252 + return builder;
4253 + },
4254 + addMatcher: function (matcher, reducer) {
4255 + if (true) {
4256 + if (defaultCaseReducer) {
4257 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
4258 + }
4259 + }
4260 + actionMatchers.push({ matcher: matcher, reducer: reducer });
4261 + return builder;
4262 + },
4263 + addDefaultCase: function (reducer) {
4264 + if (true) {
4265 + if (defaultCaseReducer) {
4266 + throw new Error("`builder.addDefaultCase` can only be called once");
4267 + }
4268 + }
4269 + defaultCaseReducer = reducer;
4270 + return builder;
4271 + }
4272 + };
4273 + builderCallback(builder);
4274 + return [actionsMap, actionMatchers, defaultCaseReducer];
4275 +}
4276 +// src/createReducer.ts
4277 +function isStateFunction(x) {
4278 + return typeof x === "function";
4279 +}
4280 +var hasWarnedAboutObjectNotation = false;
4281 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
4282 + if (actionMatchers === void 0) { actionMatchers = []; }
4283 + if (true) {
4284 + if (typeof mapOrBuilderCallback === "object") {
4285 + if (!hasWarnedAboutObjectNotation) {
4286 + hasWarnedAboutObjectNotation = true;
4287 + console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
4288 + }
4289 + }
4290 + }
4291 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
4292 + var getInitialState;
4293 + if (isStateFunction(initialState)) {
4294 + getInitialState = function () { return freezeDraftable(initialState()); };
4295 + }
4296 + else {
4297 + var frozenInitialState_1 = freezeDraftable(initialState);
4298 + getInitialState = function () { return frozenInitialState_1; };
4299 + }
4300 + function reducer(state, action) {
4301 + if (state === void 0) { state = getInitialState(); }
4302 + var caseReducers = __spreadArray([
4303 + actionsMap[action.type]
4304 + ], finalActionMatchers.filter(function (_c) {
4305 + var matcher = _c.matcher;
4306 + return matcher(action);
4307 + }).map(function (_c) {
4308 + var reducer2 = _c.reducer;
4309 + return reducer2;
4310 + }));
4311 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
4312 + caseReducers = [finalDefaultCaseReducer];
4313 + }
4314 + return caseReducers.reduce(function (previousState, caseReducer) {
4315 + if (caseReducer) {
4316 + if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(previousState)) {
4317 + var draft = previousState;
4318 + var result = caseReducer(draft, action);
4319 + if (result === void 0) {
4320 + return previousState;
4321 + }
4322 + return result;
4323 + }
4324 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(previousState)) {
4325 + var result = caseReducer(previousState, action);
4326 + if (result === void 0) {
4327 + if (previousState === null) {
4328 + return previousState;
4329 + }
4330 + throw Error("A case reducer on a non-draftable value must not return undefined");
4331 + }
4332 + return result;
4333 + }
4334 + else {
4335 + return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(previousState, function (draft) {
4336 + return caseReducer(draft, action);
4337 + });
4338 + }
4339 + }
4340 + return previousState;
4341 + }, state);
4342 + }
4343 + reducer.getInitialState = getInitialState;
4344 + return reducer;
4345 +}
4346 +// src/createSlice.ts
4347 +var hasWarnedAboutObjectNotation2 = false;
4348 +function getType2(slice, actionKey) {
4349 + return slice + "/" + actionKey;
4350 +}
4351 +function createSlice(options) {
4352 + var name = options.name;
4353 + if (!name) {
4354 + throw new Error("`name` is a required option for createSlice");
4355 + }
4356 + if (typeof process !== "undefined" && "development" === "development") {
4357 + if (options.initialState === void 0) {
4358 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
4359 + }
4360 + }
4361 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
4362 + var reducers = options.reducers || {};
4363 + var reducerNames = Object.keys(reducers);
4364 + var sliceCaseReducersByName = {};
4365 + var sliceCaseReducersByType = {};
4366 + var actionCreators = {};
4367 + reducerNames.forEach(function (reducerName) {
4368 + var maybeReducerWithPrepare = reducers[reducerName];
4369 + var type = getType2(name, reducerName);
4370 + var caseReducer;
4371 + var prepareCallback;
4372 + if ("reducer" in maybeReducerWithPrepare) {
4373 + caseReducer = maybeReducerWithPrepare.reducer;
4374 + prepareCallback = maybeReducerWithPrepare.prepare;
4375 + }
4376 + else {
4377 + caseReducer = maybeReducerWithPrepare;
4378 + }
4379 + sliceCaseReducersByName[reducerName] = caseReducer;
4380 + sliceCaseReducersByType[type] = caseReducer;
4381 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
4382 + });
4383 + function buildReducer() {
4384 + if (true) {
4385 + if (typeof options.extraReducers === "object") {
4386 + if (!hasWarnedAboutObjectNotation2) {
4387 + hasWarnedAboutObjectNotation2 = true;
4388 + console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
4389 + }
4390 + }
4391 + }
4392 + var _c = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f;
4393 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
4394 + return createReducer(initialState, function (builder) {
4395 + for (var key in finalCaseReducers) {
4396 + builder.addCase(key, finalCaseReducers[key]);
4397 + }
4398 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
4399 + var m = actionMatchers_1[_i];
4400 + builder.addMatcher(m.matcher, m.reducer);
4401 + }
4402 + if (defaultCaseReducer) {
4403 + builder.addDefaultCase(defaultCaseReducer);
4404 + }
4405 + });
4406 + }
4407 + var _reducer;
4408 + return {
4409 + name: name,
4410 + reducer: function (state, action) {
4411 + if (!_reducer)
4412 + _reducer = buildReducer();
4413 + return _reducer(state, action);
4414 + },
4415 + actions: actionCreators,
4416 + caseReducers: sliceCaseReducersByName,
4417 + getInitialState: function () {
4418 + if (!_reducer)
4419 + _reducer = buildReducer();
4420 + return _reducer.getInitialState();
4421 + }
4422 + };
4423 +}
4424 +// src/entities/entity_state.ts
4425 +function getInitialEntityState() {
4426 + return {
4427 + ids: [],
4428 + entities: {}
4429 + };
4430 +}
4431 +function createInitialStateFactory() {
4432 + function getInitialState(additionalState) {
4433 + if (additionalState === void 0) { additionalState = {}; }
4434 + return Object.assign(getInitialEntityState(), additionalState);
4435 + }
4436 + return { getInitialState: getInitialState };
4437 +}
4438 +// src/entities/state_selectors.ts
4439 +function createSelectorsFactory() {
4440 + function getSelectors(selectState) {
4441 + var selectIds = function (state) { return state.ids; };
4442 + var selectEntities = function (state) { return state.entities; };
4443 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
4444 + var selectId = function (_, id) { return id; };
4445 + var selectById = function (entities, id) { return entities[id]; };
4446 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
4447 + if (!selectState) {
4448 + return {
4449 + selectIds: selectIds,
4450 + selectEntities: selectEntities,
4451 + selectAll: selectAll,
4452 + selectTotal: selectTotal,
4453 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
4454 + };
4455 + }
4456 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
4457 + return {
4458 + selectIds: createDraftSafeSelector(selectState, selectIds),
4459 + selectEntities: selectGlobalizedEntities,
4460 + selectAll: createDraftSafeSelector(selectState, selectAll),
4461 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
4462 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
4463 + };
4464 + }
4465 + return { getSelectors: getSelectors };
4466 +}
4467 +// src/entities/state_adapter.ts
4468 +
4469 +function createSingleArgumentStateOperator(mutator) {
4470 + var operator = createStateOperator(function (_, state) { return mutator(state); });
4471 + return function operation(state) {
4472 + return operator(state, void 0);
4473 + };
4474 +}
4475 +function createStateOperator(mutator) {
4476 + return function operation(state, arg) {
4477 + function isPayloadActionArgument(arg2) {
4478 + return isFSA(arg2);
4479 + }
4480 + var runMutator = function (draft) {
4481 + if (isPayloadActionArgument(arg)) {
4482 + mutator(arg.payload, draft);
4483 + }
4484 + else {
4485 + mutator(arg, draft);
4486 + }
4487 + };
4488 + if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(state)) {
4489 + runMutator(state);
4490 + return state;
4491 + }
4492 + else {
4493 + return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(state, runMutator);
4494 + }
4495 + };
4496 +}
4497 +// src/entities/utils.ts
4498 +function selectIdValue(entity, selectId) {
4499 + var key = selectId(entity);
4500 + if ( true && key === void 0) {
4501 + console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString());
4502 + }
4503 + return key;
4504 +}
4505 +function ensureEntitiesArray(entities) {
4506 + if (!Array.isArray(entities)) {
4507 + entities = Object.values(entities);
4508 + }
4509 + return entities;
4510 +}
4511 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
4512 + newEntities = ensureEntitiesArray(newEntities);
4513 + var added = [];
4514 + var updated = [];
4515 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
4516 + var entity = newEntities_1[_i];
4517 + var id = selectIdValue(entity, selectId);
4518 + if (id in state.entities) {
4519 + updated.push({ id: id, changes: entity });
4520 + }
4521 + else {
4522 + added.push(entity);
4523 + }
4524 + }
4525 + return [added, updated];
4526 +}
4527 +// src/entities/unsorted_state_adapter.ts
4528 +function createUnsortedStateAdapter(selectId) {
4529 + function addOneMutably(entity, state) {
4530 + var key = selectIdValue(entity, selectId);
4531 + if (key in state.entities) {
4532 + return;
4533 + }
4534 + state.ids.push(key);
4535 + state.entities[key] = entity;
4536 + }
4537 + function addManyMutably(newEntities, state) {
4538 + newEntities = ensureEntitiesArray(newEntities);
4539 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
4540 + var entity = newEntities_2[_i];
4541 + addOneMutably(entity, state);
4542 + }
4543 + }
4544 + function setOneMutably(entity, state) {
4545 + var key = selectIdValue(entity, selectId);
4546 + if (!(key in state.entities)) {
4547 + state.ids.push(key);
4548 + }
4549 + state.entities[key] = entity;
4550 + }
4551 + function setManyMutably(newEntities, state) {
4552 + newEntities = ensureEntitiesArray(newEntities);
4553 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
4554 + var entity = newEntities_3[_i];
4555 + setOneMutably(entity, state);
4556 + }
4557 + }
4558 + function setAllMutably(newEntities, state) {
4559 + newEntities = ensureEntitiesArray(newEntities);
4560 + state.ids = [];
4561 + state.entities = {};
4562 + addManyMutably(newEntities, state);
4563 + }
4564 + function removeOneMutably(key, state) {
4565 + return removeManyMutably([key], state);
4566 + }
4567 + function removeManyMutably(keys, state) {
4568 + var didMutate = false;
4569 + keys.forEach(function (key) {
4570 + if (key in state.entities) {
4571 + delete state.entities[key];
4572 + didMutate = true;
4573 + }
4574 + });
4575 + if (didMutate) {
4576 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
4577 + }
4578 + }
4579 + function removeAllMutably(state) {
4580 + Object.assign(state, {
4581 + ids: [],
4582 + entities: {}
4583 + });
4584 + }
4585 + function takeNewKey(keys, update, state) {
4586 + var original2 = state.entities[update.id];
4587 + var updated = Object.assign({}, original2, update.changes);
4588 + var newKey = selectIdValue(updated, selectId);
4589 + var hasNewKey = newKey !== update.id;
4590 + if (hasNewKey) {
4591 + keys[update.id] = newKey;
4592 + delete state.entities[update.id];
4593 + }
4594 + state.entities[newKey] = updated;
4595 + return hasNewKey;
4596 + }
4597 + function updateOneMutably(update, state) {
4598 + return updateManyMutably([update], state);
4599 + }
4600 + function updateManyMutably(updates, state) {
4601 + var newKeys = {};
4602 + var updatesPerEntity = {};
4603 + updates.forEach(function (update) {
4604 + if (update.id in state.entities) {
4605 + updatesPerEntity[update.id] = {
4606 + id: update.id,
4607 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
4608 + };
4609 + }
4610 + });
4611 + updates = Object.values(updatesPerEntity);
4612 + var didMutateEntities = updates.length > 0;
4613 + if (didMutateEntities) {
4614 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
4615 + if (didMutateIds) {
4616 + state.ids = Object.keys(state.entities);
4617 + }
4618 + }
4619 + }
4620 + function upsertOneMutably(entity, state) {
4621 + return upsertManyMutably([entity], state);
4622 + }
4623 + function upsertManyMutably(newEntities, state) {
4624 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
4625 + updateManyMutably(updated, state);
4626 + addManyMutably(added, state);
4627 + }
4628 + return {
4629 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
4630 + addOne: createStateOperator(addOneMutably),
4631 + addMany: createStateOperator(addManyMutably),
4632 + setOne: createStateOperator(setOneMutably),
4633 + setMany: createStateOperator(setManyMutably),
4634 + setAll: createStateOperator(setAllMutably),
4635 + updateOne: createStateOperator(updateOneMutably),
4636 + updateMany: createStateOperator(updateManyMutably),
4637 + upsertOne: createStateOperator(upsertOneMutably),
4638 + upsertMany: createStateOperator(upsertManyMutably),
4639 + removeOne: createStateOperator(removeOneMutably),
4640 + removeMany: createStateOperator(removeManyMutably)
4641 + };
4642 +}
4643 +// src/entities/sorted_state_adapter.ts
4644 +function createSortedStateAdapter(selectId, sort) {
4645 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
4646 + function addOneMutably(entity, state) {
4647 + return addManyMutably([entity], state);
4648 + }
4649 + function addManyMutably(newEntities, state) {
4650 + newEntities = ensureEntitiesArray(newEntities);
4651 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
4652 + if (models.length !== 0) {
4653 + merge(models, state);
4654 + }
4655 + }
4656 + function setOneMutably(entity, state) {
4657 + return setManyMutably([entity], state);
4658 + }
4659 + function setManyMutably(newEntities, state) {
4660 + newEntities = ensureEntitiesArray(newEntities);
4661 + if (newEntities.length !== 0) {
4662 + merge(newEntities, state);
4663 + }
4664 + }
4665 + function setAllMutably(newEntities, state) {
4666 + newEntities = ensureEntitiesArray(newEntities);
4667 + state.entities = {};
4668 + state.ids = [];
4669 + addManyMutably(newEntities, state);
4670 + }
4671 + function updateOneMutably(update, state) {
4672 + return updateManyMutably([update], state);
4673 + }
4674 + function updateManyMutably(updates, state) {
4675 + var appliedUpdates = false;
4676 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
4677 + var update = updates_1[_i];
4678 + var entity = state.entities[update.id];
4679 + if (!entity) {
4680 + continue;
4681 + }
4682 + appliedUpdates = true;
4683 + Object.assign(entity, update.changes);
4684 + var newId = selectId(entity);
4685 + if (update.id !== newId) {
4686 + delete state.entities[update.id];
4687 + state.entities[newId] = entity;
4688 + }
4689 + }
4690 + if (appliedUpdates) {
4691 + resortEntities(state);
4692 + }
4693 + }
4694 + function upsertOneMutably(entity, state) {
4695 + return upsertManyMutably([entity], state);
4696 + }
4697 + function upsertManyMutably(newEntities, state) {
4698 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
4699 + updateManyMutably(updated, state);
4700 + addManyMutably(added, state);
4701 + }
4702 + function areArraysEqual(a, b) {
4703 + if (a.length !== b.length) {
4704 + return false;
4705 + }
4706 + for (var i = 0; i < a.length && i < b.length; i++) {
4707 + if (a[i] === b[i]) {
4708 + continue;
4709 + }
4710 + return false;
4711 + }
4712 + return true;
4713 + }
4714 + function merge(models, state) {
4715 + models.forEach(function (model) {
4716 + state.entities[selectId(model)] = model;
4717 + });
4718 + resortEntities(state);
4719 + }
4720 + function resortEntities(state) {
4721 + var allEntities = Object.values(state.entities);
4722 + allEntities.sort(sort);
4723 + var newSortedIds = allEntities.map(selectId);
4724 + var ids = state.ids;
4725 + if (!areArraysEqual(ids, newSortedIds)) {
4726 + state.ids = newSortedIds;
4727 + }
4728 + }
4729 + return {
4730 + removeOne: removeOne,
4731 + removeMany: removeMany,
4732 + removeAll: removeAll,
4733 + addOne: createStateOperator(addOneMutably),
4734 + updateOne: createStateOperator(updateOneMutably),
4735 + upsertOne: createStateOperator(upsertOneMutably),
4736 + setOne: createStateOperator(setOneMutably),
4737 + setMany: createStateOperator(setManyMutably),
4738 + setAll: createStateOperator(setAllMutably),
4739 + addMany: createStateOperator(addManyMutably),
4740 + updateMany: createStateOperator(updateManyMutably),
4741 + upsertMany: createStateOperator(upsertManyMutably)
4742 + };
4743 +}
4744 +// src/entities/create_adapter.ts
4745 +function createEntityAdapter(options) {
4746 + if (options === void 0) { options = {}; }
4747 + var _c = __spreadValues({
4748 + sortComparer: false,
4749 + selectId: function (instance) { return instance.id; }
4750 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
4751 + var stateFactory = createInitialStateFactory();
4752 + var selectorsFactory = createSelectorsFactory();
4753 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
4754 + return __spreadValues(__spreadValues(__spreadValues({
4755 + selectId: selectId,
4756 + sortComparer: sortComparer
4757 + }, stateFactory), selectorsFactory), stateAdapter);
4758 +}
4759 +// src/nanoid.ts
4760 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
4761 +var nanoid = function (size) {
4762 + if (size === void 0) { size = 21; }
4763 + var id = "";
4764 + var i = size;
4765 + while (i--) {
4766 + id += urlAlphabet[Math.random() * 64 | 0];
4767 + }
4768 + return id;
4769 +};
4770 +// src/createAsyncThunk.ts
4771 +var commonProperties = [
4772 + "name",
4773 + "message",
4774 + "stack",
4775 + "code"
4776 +];
4777 +var RejectWithValue = /** @class */ (function () {
4778 + function RejectWithValue(payload, meta) {
4779 + this.payload = payload;
4780 + this.meta = meta;
4781 + }
4782 + return RejectWithValue;
4783 +}());
4784 +var FulfillWithMeta = /** @class */ (function () {
4785 + function FulfillWithMeta(payload, meta) {
4786 + this.payload = payload;
4787 + this.meta = meta;
4788 + }
4789 + return FulfillWithMeta;
4790 +}());
4791 +var miniSerializeError = function (value) {
4792 + if (typeof value === "object" && value !== null) {
4793 + var simpleError = {};
4794 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
4795 + var property = commonProperties_1[_i];
4796 + if (typeof value[property] === "string") {
4797 + simpleError[property] = value[property];
4798 + }
4799 + }
4800 + return simpleError;
4801 + }
4802 + return { message: String(value) };
4803 +};
4804 +var createAsyncThunk = (function () {
4805 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
4806 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
4807 + payload: payload,
4808 + meta: __spreadProps(__spreadValues({}, meta || {}), {
4809 + arg: arg,
4810 + requestId: requestId,
4811 + requestStatus: "fulfilled"
4812 + })
4813 + }); });
4814 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
4815 + payload: void 0,
4816 + meta: __spreadProps(__spreadValues({}, meta || {}), {
4817 + arg: arg,
4818 + requestId: requestId,
4819 + requestStatus: "pending"
4820 + })
4821 + }); });
4822 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
4823 + payload: payload,
4824 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
4825 + meta: __spreadProps(__spreadValues({}, meta || {}), {
4826 + arg: arg,
4827 + requestId: requestId,
4828 + rejectedWithValue: !!payload,
4829 + requestStatus: "rejected",
4830 + aborted: (error == null ? void 0 : error.name) === "AbortError",
4831 + condition: (error == null ? void 0 : error.name) === "ConditionError"
4832 + })
4833 + }); });
4834 + var displayedWarning = false;
4835 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
4836 + function class_1() {
4837 + this.signal = {
4838 + aborted: false,
4839 + addEventListener: function () {
4840 + },
4841 + dispatchEvent: function () {
4842 + return false;
4843 + },
4844 + onabort: function () {
4845 + },
4846 + removeEventListener: function () {
4847 + },
4848 + reason: void 0,
4849 + throwIfAborted: function () {
4850 + }
4851 + };
4852 + }
4853 + class_1.prototype.abort = function () {
4854 + if (true) {
4855 + if (!displayedWarning) {
4856 + displayedWarning = true;
4857 + 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'.");
4858 + }
4859 + }
4860 + };
4861 + return class_1;
4862 + }());
4863 + function actionCreator(arg) {
4864 + return function (dispatch, getState, extra) {
4865 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
4866 + var abortController = new AC();
4867 + var abortReason;
4868 + var started = false;
4869 + function abort(reason) {
4870 + abortReason = reason;
4871 + abortController.abort();
4872 + }
4873 + var promise2 = function () {
4874 + return __async(this, null, function () {
4875 + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
4876 + return __generator(this, function (_c) {
4877 + switch (_c.label) {
4878 + case 0:
4879 + _c.trys.push([0, 4, , 5]);
4880 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
4881 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
4882 + return [4 /*yield*/, conditionResult];
4883 + case 1:
4884 + conditionResult = _c.sent();
4885 + _c.label = 2;
4886 + case 2:
4887 + if (conditionResult === false || abortController.signal.aborted) {
4888 + throw {
4889 + name: "ConditionError",
4890 + message: "Aborted due to condition callback returning false."
4891 + };
4892 + }
4893 + started = true;
4894 + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
4895 + name: "AbortError",
4896 + message: abortReason || "Aborted"
4897 + }); }); });
4898 + dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra })));
4899 + return [4 /*yield*/, Promise.race([
4900 + abortedPromise,
4901 + Promise.resolve(payloadCreator(arg, {
4902 + dispatch: dispatch,
4903 + getState: getState,
4904 + extra: extra,
4905 + requestId: requestId,
4906 + signal: abortController.signal,
4907 + abort: abort,
4908 + rejectWithValue: function (value, meta) {
4909 + return new RejectWithValue(value, meta);
4910 + },
4911 + fulfillWithValue: function (value, meta) {
4912 + return new FulfillWithMeta(value, meta);
4913 + }
4914 + })).then(function (result) {
4915 + if (result instanceof RejectWithValue) {
4916 + throw result;
4917 + }
4918 + if (result instanceof FulfillWithMeta) {
4919 + return fulfilled(result.payload, requestId, arg, result.meta);
4920 + }
4921 + return fulfilled(result, requestId, arg);
4922 + })
4923 + ])];
4924 + case 3:
4925 + finalAction = _c.sent();
4926 + return [3 /*break*/, 5];
4927 + case 4:
4928 + err_1 = _c.sent();
4929 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
4930 + return [3 /*break*/, 5];
4931 + case 5:
4932 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
4933 + if (!skipDispatch) {
4934 + dispatch(finalAction);
4935 + }
4936 + return [2 /*return*/, finalAction];
4937 + }
4938 + });
4939 + });
4940 + }();
4941 + return Object.assign(promise2, {
4942 + abort: abort,
4943 + requestId: requestId,
4944 + arg: arg,
4945 + unwrap: function () {
4946 + return promise2.then(unwrapResult);
4947 + }
4948 + });
4949 + };
4950 + }
4951 + return Object.assign(actionCreator, {
4952 + pending: pending,
4953 + rejected: rejected,
4954 + fulfilled: fulfilled,
4955 + typePrefix: typePrefix
4956 + });
4957 + }
4958 + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
4959 + return createAsyncThunk2;
4960 +})();
4961 +function unwrapResult(action) {
4962 + if (action.meta && action.meta.rejectedWithValue) {
4963 + throw action.payload;
4964 + }
4965 + if (action.error) {
4966 + throw action.error;
4967 + }
4968 + return action.payload;
4969 +}
4970 +function isThenable(value) {
4971 + return value !== null && typeof value === "object" && typeof value.then === "function";
4972 +}
4973 +// src/matchers.ts
4974 +var matches = function (matcher, action) {
4975 + if (hasMatchFunction(matcher)) {
4976 + return matcher.match(action);
4977 + }
4978 + else {
4979 + return matcher(action);
4980 + }
4981 +};
4982 +function isAnyOf() {
4983 + var matchers = [];
4984 + for (var _i = 0; _i < arguments.length; _i++) {
4985 + matchers[_i] = arguments[_i];
4986 + }
4987 + return function (action) {
4988 + return matchers.some(function (matcher) { return matches(matcher, action); });
4989 + };
4990 +}
4991 +function isAllOf() {
4992 + var matchers = [];
4993 + for (var _i = 0; _i < arguments.length; _i++) {
4994 + matchers[_i] = arguments[_i];
4995 + }
4996 + return function (action) {
4997 + return matchers.every(function (matcher) { return matches(matcher, action); });
4998 + };
4999 +}
5000 +function hasExpectedRequestMetadata(action, validStatus) {
5001 + if (!action || !action.meta)
5002 + return false;
5003 + var hasValidRequestId = typeof action.meta.requestId === "string";
5004 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
5005 + return hasValidRequestId && hasValidRequestStatus;
5006 +}
5007 +function isAsyncThunkArray(a) {
5008 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
5009 +}
5010 +function isPending() {
5011 + var asyncThunks = [];
5012 + for (var _i = 0; _i < arguments.length; _i++) {
5013 + asyncThunks[_i] = arguments[_i];
5014 + }
5015 + if (asyncThunks.length === 0) {
5016 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
5017 + }
5018 + if (!isAsyncThunkArray(asyncThunks)) {
5019 + return isPending()(asyncThunks[0]);
5020 + }
5021 + return function (action) {
5022 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
5023 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
5024 + return combinedMatcher(action);
5025 + };
5026 +}
5027 +function isRejected() {
5028 + var asyncThunks = [];
5029 + for (var _i = 0; _i < arguments.length; _i++) {
5030 + asyncThunks[_i] = arguments[_i];
5031 + }
5032 + if (asyncThunks.length === 0) {
5033 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
5034 + }
5035 + if (!isAsyncThunkArray(asyncThunks)) {
5036 + return isRejected()(asyncThunks[0]);
5037 + }
5038 + return function (action) {
5039 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
5040 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
5041 + return combinedMatcher(action);
5042 + };
5043 +}
5044 +function isRejectedWithValue() {
5045 + var asyncThunks = [];
5046 + for (var _i = 0; _i < arguments.length; _i++) {
5047 + asyncThunks[_i] = arguments[_i];
5048 + }
5049 + var hasFlag = function (action) {
5050 + return action && action.meta && action.meta.rejectedWithValue;
5051 + };
5052 + if (asyncThunks.length === 0) {
5053 + return function (action) {
5054 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
5055 + return combinedMatcher(action);
5056 + };
5057 + }
5058 + if (!isAsyncThunkArray(asyncThunks)) {
5059 + return isRejectedWithValue()(asyncThunks[0]);
5060 + }
5061 + return function (action) {
5062 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
5063 + return combinedMatcher(action);
5064 + };
5065 +}
5066 +function isFulfilled() {
5067 + var asyncThunks = [];
5068 + for (var _i = 0; _i < arguments.length; _i++) {
5069 + asyncThunks[_i] = arguments[_i];
5070 + }
5071 + if (asyncThunks.length === 0) {
5072 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
5073 + }
5074 + if (!isAsyncThunkArray(asyncThunks)) {
5075 + return isFulfilled()(asyncThunks[0]);
5076 + }
5077 + return function (action) {
5078 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
5079 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
5080 + return combinedMatcher(action);
5081 + };
5082 +}
5083 +function isAsyncThunkAction() {
5084 + var asyncThunks = [];
5085 + for (var _i = 0; _i < arguments.length; _i++) {
5086 + asyncThunks[_i] = arguments[_i];
5087 + }
5088 + if (asyncThunks.length === 0) {
5089 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
5090 + }
5091 + if (!isAsyncThunkArray(asyncThunks)) {
5092 + return isAsyncThunkAction()(asyncThunks[0]);
5093 + }
5094 + return function (action) {
5095 + var matchers = [];
5096 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
5097 + var asyncThunk = asyncThunks_1[_i];
5098 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
5099 + }
5100 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
5101 + return combinedMatcher(action);
5102 + };
5103 +}
5104 +// src/listenerMiddleware/utils.ts
5105 +var assertFunction = function (func, expected) {
5106 + if (typeof func !== "function") {
5107 + throw new TypeError(expected + " is not a function");
5108 + }
5109 +};
5110 +var noop = function () {
5111 +};
5112 +var catchRejection = function (promise2, onError) {
5113 + if (onError === void 0) { onError = noop; }
5114 + promise2.catch(onError);
5115 + return promise2;
5116 +};
5117 +var addAbortSignalListener = function (abortSignal, callback) {
5118 + abortSignal.addEventListener("abort", callback, { once: true });
5119 + return function () { return abortSignal.removeEventListener("abort", callback); };
5120 +};
5121 +var abortControllerWithReason = function (abortController, reason) {
5122 + var signal = abortController.signal;
5123 + if (signal.aborted) {
5124 + return;
5125 + }
5126 + if (!("reason" in signal)) {
5127 + Object.defineProperty(signal, "reason", {
5128 + enumerable: true,
5129 + value: reason,
5130 + configurable: true,
5131 + writable: true
5132 + });
5133 + }
5134 + ;
5135 + abortController.abort(reason);
5136 +};
5137 +// src/listenerMiddleware/exceptions.ts
5138 +var task = "task";
5139 +var listener = "listener";
5140 +var completed = "completed";
5141 +var cancelled = "cancelled";
5142 +var taskCancelled = "task-" + cancelled;
5143 +var taskCompleted = "task-" + completed;
5144 +var listenerCancelled = listener + "-" + cancelled;
5145 +var listenerCompleted = listener + "-" + completed;
5146 +var TaskAbortError = /** @class */ (function () {
5147 + function TaskAbortError(code) {
5148 + this.code = code;
5149 + this.name = "TaskAbortError";
5150 + this.message = task + " " + cancelled + " (reason: " + code + ")";
5151 + }
5152 + return TaskAbortError;
5153 +}());
5154 +// src/listenerMiddleware/task.ts
5155 +var validateActive = function (signal) {
5156 + if (signal.aborted) {
5157 + throw new TaskAbortError(signal.reason);
5158 + }
5159 +};
5160 +function raceWithSignal(signal, promise2) {
5161 + var cleanup = noop;
5162 + return new Promise(function (resolve, reject) {
5163 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
5164 + if (signal.aborted) {
5165 + notifyRejection();
5166 + return;
5167 + }
5168 + cleanup = addAbortSignalListener(signal, notifyRejection);
5169 + promise2.finally(function () { return cleanup(); }).then(resolve, reject);
5170 + }).finally(function () {
5171 + cleanup = noop;
5172 + });
5173 +}
5174 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
5175 + var value, error_1;
5176 + return __generator(this, function (_c) {
5177 + switch (_c.label) {
5178 + case 0:
5179 + _c.trys.push([0, 3, 4, 5]);
5180 + return [4 /*yield*/, Promise.resolve()];
5181 + case 1:
5182 + _c.sent();
5183 + return [4 /*yield*/, task2()];
5184 + case 2:
5185 + value = _c.sent();
5186 + return [2 /*return*/, {
5187 + status: "ok",
5188 + value: value
5189 + }];
5190 + case 3:
5191 + error_1 = _c.sent();
5192 + return [2 /*return*/, {
5193 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
5194 + error: error_1
5195 + }];
5196 + case 4:
5197 + cleanUp == null ? void 0 : cleanUp();
5198 + return [7 /*endfinally*/];
5199 + case 5: return [2 /*return*/];
5200 + }
5201 + });
5202 +}); };
5203 +var createPause = function (signal) {
5204 + return function (promise2) {
5205 + return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
5206 + validateActive(signal);
5207 + return output;
5208 + }));
5209 + };
5210 +};
5211 +var createDelay = function (signal) {
5212 + var pause = createPause(signal);
5213 + return function (timeoutMs) {
5214 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
5215 + };
5216 +};
5217 +// src/listenerMiddleware/index.ts
5218 +var assign = Object.assign;
5219 +var INTERNAL_NIL_TOKEN = {};
5220 +var alm = "listenerMiddleware";
5221 +var createFork = function (parentAbortSignal, parentBlockingPromises) {
5222 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
5223 + return function (taskExecutor, opts) {
5224 + assertFunction(taskExecutor, "taskExecutor");
5225 + var childAbortController = new AbortController();
5226 + linkControllers(childAbortController);
5227 + var result = runTask(function () { return __async(void 0, null, function () {
5228 + var result2;
5229 + return __generator(this, function (_c) {
5230 + switch (_c.label) {
5231 + case 0:
5232 + validateActive(parentAbortSignal);
5233 + validateActive(childAbortController.signal);
5234 + return [4 /*yield*/, taskExecutor({
5235 + pause: createPause(childAbortController.signal),
5236 + delay: createDelay(childAbortController.signal),
5237 + signal: childAbortController.signal
5238 + })];
5239 + case 1:
5240 + result2 = _c.sent();
5241 + validateActive(childAbortController.signal);
5242 + return [2 /*return*/, result2];
5243 + }
5244 + });
5245 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
5246 + if (opts == null ? void 0 : opts.autoJoin) {
5247 + parentBlockingPromises.push(result);
5248 + }
5249 + return {
5250 + result: createPause(parentAbortSignal)(result),
5251 + cancel: function () {
5252 + abortControllerWithReason(childAbortController, taskCancelled);
5253 + }
5254 + };
5255 + };
5256 +};
5257 +var createTakePattern = function (startListening, signal) {
5258 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
5259 + var unsubscribe, tuplePromise, promises, output;
5260 + return __generator(this, function (_c) {
5261 + switch (_c.label) {
5262 + case 0:
5263 + validateActive(signal);
5264 + unsubscribe = function () {
5265 + };
5266 + tuplePromise = new Promise(function (resolve, reject) {
5267 + var stopListening = startListening({
5268 + predicate: predicate,
5269 + effect: function (action, listenerApi) {
5270 + listenerApi.unsubscribe();
5271 + resolve([
5272 + action,
5273 + listenerApi.getState(),
5274 + listenerApi.getOriginalState()
5275 + ]);
5276 + }
5277 + });
5278 + unsubscribe = function () {
5279 + stopListening();
5280 + reject();
5281 + };
5282 + });
5283 + promises = [
5284 + tuplePromise
5285 + ];
5286 + if (timeout != null) {
5287 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
5288 + }
5289 + _c.label = 1;
5290 + case 1:
5291 + _c.trys.push([1, , 3, 4]);
5292 + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
5293 + case 2:
5294 + output = _c.sent();
5295 + validateActive(signal);
5296 + return [2 /*return*/, output];
5297 + case 3:
5298 + unsubscribe();
5299 + return [7 /*endfinally*/];
5300 + case 4: return [2 /*return*/];
5301 + }
5302 + });
5303 + }); };
5304 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
5305 +};
5306 +var getListenerEntryPropsFrom = function (options) {
5307 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
5308 + if (type) {
5309 + predicate = createAction(type).match;
5310 + }
5311 + else if (actionCreator) {
5312 + type = actionCreator.type;
5313 + predicate = actionCreator.match;
5314 + }
5315 + else if (matcher) {
5316 + predicate = matcher;
5317 + }
5318 + else if (predicate) {
5319 + }
5320 + else {
5321 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
5322 + }
5323 + assertFunction(effect, "options.listener");
5324 + return { predicate: predicate, type: type, effect: effect };
5325 +};
5326 +var createListenerEntry = function (options) {
5327 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
5328 + var id = nanoid();
5329 + var entry = {
5330 + id: id,
5331 + effect: effect,
5332 + type: type,
5333 + predicate: predicate,
5334 + pending: new Set(),
5335 + unsubscribe: function () {
5336 + throw new Error("Unsubscribe not initialized");
5337 + }
5338 + };
5339 + return entry;
5340 +};
5341 +var cancelActiveListeners = function (entry) {
5342 + entry.pending.forEach(function (controller) {
5343 + abortControllerWithReason(controller, listenerCancelled);
5344 + });
5345 +};
5346 +var createClearListenerMiddleware = function (listenerMap) {
5347 + return function () {
5348 + listenerMap.forEach(cancelActiveListeners);
5349 + listenerMap.clear();
5350 + };
5351 +};
5352 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
5353 + try {
5354 + errorHandler(errorToNotify, errorInfo);
5355 + }
5356 + catch (errorHandlerError) {
5357 + setTimeout(function () {
5358 + throw errorHandlerError;
5359 + }, 0);
5360 + }
5361 +};
5362 +var addListener = createAction(alm + "/add");
5363 +var clearAllListeners = createAction(alm + "/removeAll");
5364 +var removeListener = createAction(alm + "/remove");
5365 +var defaultErrorHandler = function () {
5366 + var args = [];
5367 + for (var _i = 0; _i < arguments.length; _i++) {
5368 + args[_i] = arguments[_i];
5369 + }
5370 + console.error.apply(console, __spreadArray([alm + "/error"], args));
5371 +};
5372 +function createListenerMiddleware(middlewareOptions) {
5373 + var _this = this;
5374 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
5375 + var listenerMap = new Map();
5376 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
5377 + assertFunction(onError, "onError");
5378 + var insertEntry = function (entry) {
5379 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
5380 + listenerMap.set(entry.id, entry);
5381 + return function (cancelOptions) {
5382 + entry.unsubscribe();
5383 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
5384 + cancelActiveListeners(entry);
5385 + }
5386 + };
5387 + };
5388 + var findListenerEntry = function (comparator) {
5389 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
5390 + var entry = _c[_i];
5391 + if (comparator(entry)) {
5392 + return entry;
5393 + }
5394 + }
5395 + return void 0;
5396 + };
5397 + var startListening = function (options) {
5398 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
5399 + if (!entry) {
5400 + entry = createListenerEntry(options);
5401 + }
5402 + return insertEntry(entry);
5403 + };
5404 + var stopListening = function (options) {
5405 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
5406 + var entry = findListenerEntry(function (entry2) {
5407 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
5408 + return matchPredicateOrType && entry2.effect === effect;
5409 + });
5410 + if (entry) {
5411 + entry.unsubscribe();
5412 + if (options.cancelActive) {
5413 + cancelActiveListeners(entry);
5414 + }
5415 + }
5416 + return !!entry;
5417 + };
5418 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
5419 + var internalTaskController, take, autoJoinPromises, listenerError_1;
5420 + return __generator(this, function (_c) {
5421 + switch (_c.label) {
5422 + case 0:
5423 + internalTaskController = new AbortController();
5424 + take = createTakePattern(startListening, internalTaskController.signal);
5425 + autoJoinPromises = [];
5426 + _c.label = 1;
5427 + case 1:
5428 + _c.trys.push([1, 3, 4, 6]);
5429 + entry.pending.add(internalTaskController);
5430 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
5431 + getOriginalState: getOriginalState,
5432 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
5433 + take: take,
5434 + delay: createDelay(internalTaskController.signal),
5435 + pause: createPause(internalTaskController.signal),
5436 + extra: extra,
5437 + signal: internalTaskController.signal,
5438 + fork: createFork(internalTaskController.signal, autoJoinPromises),
5439 + unsubscribe: entry.unsubscribe,
5440 + subscribe: function () {
5441 + listenerMap.set(entry.id, entry);
5442 + },
5443 + cancelActiveListeners: function () {
5444 + entry.pending.forEach(function (controller, _, set) {
5445 + if (controller !== internalTaskController) {
5446 + abortControllerWithReason(controller, listenerCancelled);
5447 + set.delete(controller);
5448 + }
5449 + });
5450 + }
5451 + })))];
5452 + case 2:
5453 + _c.sent();
5454 + return [3 /*break*/, 6];
5455 + case 3:
5456 + listenerError_1 = _c.sent();
5457 + if (!(listenerError_1 instanceof TaskAbortError)) {
5458 + safelyNotifyError(onError, listenerError_1, {
5459 + raisedBy: "effect"
5460 + });
5461 + }
5462 + return [3 /*break*/, 6];
5463 + case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
5464 + case 5:
5465 + _c.sent();
5466 + abortControllerWithReason(internalTaskController, listenerCompleted);
5467 + entry.pending.delete(internalTaskController);
5468 + return [7 /*endfinally*/];
5469 + case 6: return [2 /*return*/];
5470 + }
5471 + });
5472 + }); };
5473 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
5474 + var middleware = function (api) { return function (next) { return function (action) {
5475 + if (!isAction(action)) {
5476 + return next(action);
5477 + }
5478 + if (addListener.match(action)) {
5479 + return startListening(action.payload);
5480 + }
5481 + if (clearAllListeners.match(action)) {
5482 + clearListenerMiddleware();
5483 + return;
5484 + }
5485 + if (removeListener.match(action)) {
5486 + return stopListening(action.payload);
5487 + }
5488 + var originalState = api.getState();
5489 + var getOriginalState = function () {
5490 + if (originalState === INTERNAL_NIL_TOKEN) {
5491 + throw new Error(alm + ": getOriginalState can only be called synchronously");
5492 + }
5493 + return originalState;
5494 + };
5495 + var result;
5496 + try {
5497 + result = next(action);
5498 + if (listenerMap.size > 0) {
5499 + var currentState = api.getState();
5500 + var listenerEntries = Array.from(listenerMap.values());
5501 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
5502 + var entry = listenerEntries_1[_i];
5503 + var runListener = false;
5504 + try {
5505 + runListener = entry.predicate(action, currentState, originalState);
5506 + }
5507 + catch (predicateError) {
5508 + runListener = false;
5509 + safelyNotifyError(onError, predicateError, {
5510 + raisedBy: "predicate"
5511 + });
5512 + }
5513 + if (!runListener) {
5514 + continue;
5515 + }
5516 + notifyListener(entry, action, api, getOriginalState);
5517 + }
5518 + }
5519 + }
5520 + finally {
5521 + originalState = INTERNAL_NIL_TOKEN;
5522 + }
5523 + return result;
5524 + }; }; };
5525 + return {
5526 + middleware: middleware,
5527 + startListening: startListening,
5528 + stopListening: stopListening,
5529 + clearListeners: clearListenerMiddleware
5530 + };
5531 +}
5532 +// src/autoBatchEnhancer.ts
5533 +var SHOULD_AUTOBATCH = "RTK_autoBatch";
5534 +var prepareAutoBatched = function () { return function (payload) {
5535 + var _c;
5536 + return ({
5537 + payload: payload,
5538 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
5539 + });
5540 +}; };
5541 +var promise;
5542 +var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {
5543 + throw err;
5544 +}, 0); }); };
5545 +var createQueueWithTimer = function (timeout) {
5546 + return function (notify) {
5547 + setTimeout(notify, timeout);
5548 + };
5549 +};
5550 +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
5551 +var autoBatchEnhancer = function (options) {
5552 + if (options === void 0) { options = { type: "raf" }; }
5553 + return function (next) { return function () {
5554 + var args = [];
5555 + for (var _i = 0; _i < arguments.length; _i++) {
5556 + args[_i] = arguments[_i];
5557 + }
5558 + var store = next.apply(void 0, args);
5559 + var notifying = true;
5560 + var shouldNotifyAtEndOfTick = false;
5561 + var notificationQueued = false;
5562 + var listeners = new Set();
5563 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
5564 + var notifyListeners = function () {
5565 + notificationQueued = false;
5566 + if (shouldNotifyAtEndOfTick) {
5567 + shouldNotifyAtEndOfTick = false;
5568 + listeners.forEach(function (l) { return l(); });
5569 + }
5570 + };
5571 + return Object.assign({}, store, {
5572 + subscribe: function (listener2) {
5573 + var wrappedListener = function () { return notifying && listener2(); };
5574 + var unsubscribe = store.subscribe(wrappedListener);
5575 + listeners.add(listener2);
5576 + return function () {
5577 + unsubscribe();
5578 + listeners.delete(listener2);
5579 + };
5580 + },
5581 + dispatch: function (action) {
5582 + var _a;
5583 + try {
5584 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
5585 + shouldNotifyAtEndOfTick = !notifying;
5586 + if (shouldNotifyAtEndOfTick) {
5587 + if (!notificationQueued) {
5588 + notificationQueued = true;
5589 + queueCallback(notifyListeners);
5590 + }
5591 + }
5592 + return store.dispatch(action);
5593 + }
5594 + finally {
5595 + notifying = true;
5596 + }
5597 + }
5598 + });
5599 + }; };
5600 +};
5601 +// src/index.ts
5602 +(0,immer__WEBPACK_IMPORTED_MODULE_0__.enableES5)();
5603 +
5604 +//# sourceMappingURL=redux-toolkit.esm.js.map
5605 +
5606 +/***/ }),
5607 +
5608 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
3398 5609 /*!************************************************!*\
3399 - !*** external "elementorVendors.reduxToolkit" ***!
5610 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
3400 5611 \************************************************/
3401 -/***/ ((module) => {
5612 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3402 5613
3403 5614 "use strict";
3404 -module.exports = elementorVendors.reduxToolkit;
5615 +__webpack_require__.r(__webpack_exports__);
5616 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5617 +/* harmony export */ Immer: () => (/* binding */ un),
5618 +/* harmony export */ applyPatches: () => (/* binding */ pn),
5619 +/* harmony export */ castDraft: () => (/* binding */ K),
5620 +/* harmony export */ castImmutable: () => (/* binding */ $),
5621 +/* harmony export */ createDraft: () => (/* binding */ ln),
5622 +/* harmony export */ current: () => (/* binding */ R),
5623 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
5624 +/* harmony export */ enableAllPlugins: () => (/* binding */ J),
5625 +/* harmony export */ enableES5: () => (/* binding */ F),
5626 +/* harmony export */ enableMapSet: () => (/* binding */ C),
5627 +/* harmony export */ enablePatches: () => (/* binding */ T),
5628 +/* harmony export */ finishDraft: () => (/* binding */ dn),
5629 +/* harmony export */ freeze: () => (/* binding */ d),
5630 +/* harmony export */ immerable: () => (/* binding */ L),
5631 +/* harmony export */ isDraft: () => (/* binding */ r),
5632 +/* harmony export */ isDraftable: () => (/* binding */ t),
5633 +/* harmony export */ nothing: () => (/* binding */ H),
5634 +/* harmony export */ original: () => (/* binding */ e),
5635 +/* harmony export */ produce: () => (/* binding */ fn),
5636 +/* harmony export */ produceWithPatches: () => (/* binding */ cn),
5637 +/* harmony export */ setAutoFreeze: () => (/* binding */ sn),
5638 +/* harmony export */ setUseProxies: () => (/* binding */ vn)
5639 +/* harmony export */ });
5640 +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(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}// removed by dead control flow
5641 +}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 e(t){return r(t)||n(23,t),t[Q].t}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 false||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( true&&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 true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&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)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=o(f),p=i[s];"string"!=typeof p&&"number"!=typeof p&&(p=""+p),0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},N:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.R,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.R,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.R=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=N(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.g&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,R:void 0,t:n,k:this,C:!1,g:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.R.set(n,!0),t.o.set(n,r),t.R.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.R.set(n,!1):r.R.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.R=new Map,i(n.t,(function(r){n.R.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=N(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,g:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{F:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){F(),C(),T()}function K(n){return n}function $(n){return 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",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",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 true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"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]; true&&(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,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn);
5642 +//# sourceMappingURL=immer.esm.js.map
3405 5643
5644 +
5645 +/***/ }),
5646 +
5647 +/***/ "../node_modules/redux-thunk/es/index.js":
5648 +/*!***********************************************!*\
5649 + !*** ../node_modules/redux-thunk/es/index.js ***!
5650 + \***********************************************/
5651 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5652 +
5653 +"use strict";
5654 +__webpack_require__.r(__webpack_exports__);
5655 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5656 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5657 +/* harmony export */ });
5658 +/** A function that accepts a potential "extra argument" value to be injected later,
5659 + * and returns an instance of the thunk middleware that uses that value
5660 + */
5661 +function createThunkMiddleware(extraArgument) {
5662 + // Standard Redux middleware definition pattern:
5663 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
5664 + var middleware = function middleware(_ref) {
5665 + var dispatch = _ref.dispatch,
5666 + getState = _ref.getState;
5667 + return function (next) {
5668 + return function (action) {
5669 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
5670 + // If this "action" is really a function, call it and return the result.
5671 + if (typeof action === 'function') {
5672 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
5673 + return action(dispatch, getState, extraArgument);
5674 + } // Otherwise, pass the action down the middleware chain as usual
5675 +
5676 +
5677 + return next(action);
5678 + };
5679 + };
5680 + };
5681 +
5682 + return middleware;
5683 +}
5684 +
5685 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
5686 +// with whatever "extra arg" they want to inject into their thunks
5687 +
5688 +thunk.withExtraArgument = createThunkMiddleware;
5689 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
5690 +
5691 +/***/ }),
5692 +
5693 +/***/ "../node_modules/redux/es/redux.js":
5694 +/*!*****************************************!*\
5695 + !*** ../node_modules/redux/es/redux.js ***!
5696 + \*****************************************/
5697 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5698 +
5699 +"use strict";
5700 +__webpack_require__.r(__webpack_exports__);
5701 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5702 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes),
5703 +/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware),
5704 +/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators),
5705 +/* harmony export */ combineReducers: () => (/* binding */ combineReducers),
5706 +/* harmony export */ compose: () => (/* binding */ compose),
5707 +/* harmony export */ createStore: () => (/* binding */ createStore),
5708 +/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore)
5709 +/* harmony export */ });
5710 +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
5711 +
5712 +
5713 +/**
5714 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
5715 + *
5716 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
5717 + * during build.
5718 + * @param {number} code
5719 + */
5720 +function formatProdErrorMessage(code) {
5721 + 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. ';
5722 +}
5723 +
5724 +// Inlined version of the `symbol-observable` polyfill
5725 +var $$observable = (function () {
5726 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
5727 +})();
5728 +
5729 +/**
5730 + * These are private action types reserved by Redux.
5731 + * For any unknown actions, you must return the current state.
5732 + * If the current state is undefined, you must return the initial state.
5733 + * Do not reference these action types directly in your code.
5734 + */
5735 +var randomString = function randomString() {
5736 + return Math.random().toString(36).substring(7).split('').join('.');
5737 +};
5738 +
5739 +var ActionTypes = {
5740 + INIT: "@@redux/INIT" + randomString(),
5741 + REPLACE: "@@redux/REPLACE" + randomString(),
5742 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
5743 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
5744 + }
5745 +};
5746 +
5747 +/**
5748 + * @param {any} obj The object to inspect.
5749 + * @returns {boolean} True if the argument appears to be a plain object.
5750 + */
5751 +function isPlainObject(obj) {
5752 + if (typeof obj !== 'object' || obj === null) return false;
5753 + var proto = obj;
5754 +
5755 + while (Object.getPrototypeOf(proto) !== null) {
5756 + proto = Object.getPrototypeOf(proto);
5757 + }
5758 +
5759 + return Object.getPrototypeOf(obj) === proto;
5760 +}
5761 +
5762 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
5763 +function miniKindOf(val) {
5764 + if (val === void 0) return 'undefined';
5765 + if (val === null) return 'null';
5766 + var type = typeof val;
5767 +
5768 + switch (type) {
5769 + case 'boolean':
5770 + case 'string':
5771 + case 'number':
5772 + case 'symbol':
5773 + case 'function':
5774 + {
5775 + return type;
5776 + }
5777 + }
5778 +
5779 + if (Array.isArray(val)) return 'array';
5780 + if (isDate(val)) return 'date';
5781 + if (isError(val)) return 'error';
5782 + var constructorName = ctorName(val);
5783 +
5784 + switch (constructorName) {
5785 + case 'Symbol':
5786 + case 'Promise':
5787 + case 'WeakMap':
5788 + case 'WeakSet':
5789 + case 'Map':
5790 + case 'Set':
5791 + return constructorName;
5792 + } // other
5793 +
5794 +
5795 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
5796 +}
5797 +
5798 +function ctorName(val) {
5799 + return typeof val.constructor === 'function' ? val.constructor.name : null;
5800 +}
5801 +
5802 +function isError(val) {
5803 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
5804 +}
5805 +
5806 +function isDate(val) {
5807 + if (val instanceof Date) return true;
5808 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
5809 +}
5810 +
5811 +function kindOf(val) {
5812 + var typeOfVal = typeof val;
5813 +
5814 + if (true) {
5815 + typeOfVal = miniKindOf(val);
5816 + }
5817 +
5818 + return typeOfVal;
5819 +}
5820 +
5821 +/**
5822 + * @deprecated
5823 + *
5824 + * **We recommend using the `configureStore` method
5825 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
5826 + *
5827 + * Redux Toolkit is our recommended approach for writing Redux logic today,
5828 + * including store setup, reducers, data fetching, and more.
5829 + *
5830 + * **For more details, please read this Redux docs page:**
5831 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
5832 + *
5833 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
5834 + * simplifies setup and helps avoid common bugs.
5835 + *
5836 + * You should not be using the `redux` core package by itself today, except for learning purposes.
5837 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
5838 + * all users to migrate to using Redux Toolkit for all Redux code.
5839 + *
5840 + * If you want to use `createStore` without this visual deprecation warning, use
5841 + * the `legacy_createStore` import instead:
5842 + *
5843 + * `import { legacy_createStore as createStore} from 'redux'`
5844 + *
5845 + */
5846 +
5847 +function createStore(reducer, preloadedState, enhancer) {
5848 + var _ref2;
5849 +
5850 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
5851 + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
5852 + }
5853 +
5854 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
5855 + enhancer = preloadedState;
5856 + preloadedState = undefined;
5857 + }
5858 +
5859 + if (typeof enhancer !== 'undefined') {
5860 + if (typeof enhancer !== 'function') {
5861 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
5862 + }
5863 +
5864 + return enhancer(createStore)(reducer, preloadedState);
5865 + }
5866 +
5867 + if (typeof reducer !== 'function') {
5868 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
5869 + }
5870 +
5871 + var currentReducer = reducer;
5872 + var currentState = preloadedState;
5873 + var currentListeners = [];
5874 + var nextListeners = currentListeners;
5875 + var isDispatching = false;
5876 + /**
5877 + * This makes a shallow copy of currentListeners so we can use
5878 + * nextListeners as a temporary list while dispatching.
5879 + *
5880 + * This prevents any bugs around consumers calling
5881 + * subscribe/unsubscribe in the middle of a dispatch.
5882 + */
5883 +
5884 + function ensureCanMutateNextListeners() {
5885 + if (nextListeners === currentListeners) {
5886 + nextListeners = currentListeners.slice();
5887 + }
5888 + }
5889 + /**
5890 + * Reads the state tree managed by the store.
5891 + *
5892 + * @returns {any} The current state tree of your application.
5893 + */
5894 +
5895 +
5896 + function getState() {
5897 + if (isDispatching) {
5898 + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
5899 + }
5900 +
5901 + return currentState;
5902 + }
5903 + /**
5904 + * Adds a change listener. It will be called any time an action is dispatched,
5905 + * and some part of the state tree may potentially have changed. You may then
5906 + * call `getState()` to read the current state tree inside the callback.
5907 + *
5908 + * You may call `dispatch()` from a change listener, with the following
5909 + * caveats:
5910 + *
5911 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
5912 + * If you subscribe or unsubscribe while the listeners are being invoked, this
5913 + * will not have any effect on the `dispatch()` that is currently in progress.
5914 + * However, the next `dispatch()` call, whether nested or not, will use a more
5915 + * recent snapshot of the subscription list.
5916 + *
5917 + * 2. The listener should not expect to see all state changes, as the state
5918 + * might have been updated multiple times during a nested `dispatch()` before
5919 + * the listener is called. It is, however, guaranteed that all subscribers
5920 + * registered before the `dispatch()` started will be called with the latest
5921 + * state by the time it exits.
5922 + *
5923 + * @param {Function} listener A callback to be invoked on every dispatch.
5924 + * @returns {Function} A function to remove this change listener.
5925 + */
5926 +
5927 +
5928 + function subscribe(listener) {
5929 + if (typeof listener !== 'function') {
5930 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
5931 + }
5932 +
5933 + if (isDispatching) {
5934 + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
5935 + }
5936 +
5937 + var isSubscribed = true;
5938 + ensureCanMutateNextListeners();
5939 + nextListeners.push(listener);
5940 + return function unsubscribe() {
5941 + if (!isSubscribed) {
5942 + return;
5943 + }
5944 +
5945 + if (isDispatching) {
5946 + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
5947 + }
5948 +
5949 + isSubscribed = false;
5950 + ensureCanMutateNextListeners();
5951 + var index = nextListeners.indexOf(listener);
5952 + nextListeners.splice(index, 1);
5953 + currentListeners = null;
5954 + };
5955 + }
5956 + /**
5957 + * Dispatches an action. It is the only way to trigger a state change.
5958 + *
5959 + * The `reducer` function, used to create the store, will be called with the
5960 + * current state tree and the given `action`. Its return value will
5961 + * be considered the **next** state of the tree, and the change listeners
5962 + * will be notified.
5963 + *
5964 + * The base implementation only supports plain object actions. If you want to
5965 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
5966 + * wrap your store creating function into the corresponding middleware. For
5967 + * example, see the documentation for the `redux-thunk` package. Even the
5968 + * middleware will eventually dispatch plain object actions using this method.
5969 + *
5970 + * @param {Object} action A plain object representing “what changed”. It is
5971 + * a good idea to keep actions serializable so you can record and replay user
5972 + * sessions, or use the time travelling `redux-devtools`. An action must have
5973 + * a `type` property which may not be `undefined`. It is a good idea to use
5974 + * string constants for action types.
5975 + *
5976 + * @returns {Object} For convenience, the same action object you dispatched.
5977 + *
5978 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
5979 + * return something else (for example, a Promise you can await).
5980 + */
5981 +
5982 +
5983 + function dispatch(action) {
5984 + if (!isPlainObject(action)) {
5985 + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
5986 + }
5987 +
5988 + if (typeof action.type === 'undefined') {
5989 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
5990 + }
5991 +
5992 + if (isDispatching) {
5993 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
5994 + }
5995 +
5996 + try {
5997 + isDispatching = true;
5998 + currentState = currentReducer(currentState, action);
5999 + } finally {
6000 + isDispatching = false;
6001 + }
6002 +
6003 + var listeners = currentListeners = nextListeners;
6004 +
6005 + for (var i = 0; i < listeners.length; i++) {
6006 + var listener = listeners[i];
6007 + listener();
6008 + }
6009 +
6010 + return action;
6011 + }
6012 + /**
6013 + * Replaces the reducer currently used by the store to calculate the state.
6014 + *
6015 + * You might need this if your app implements code splitting and you want to
6016 + * load some of the reducers dynamically. You might also need this if you
6017 + * implement a hot reloading mechanism for Redux.
6018 + *
6019 + * @param {Function} nextReducer The reducer for the store to use instead.
6020 + * @returns {void}
6021 + */
6022 +
6023 +
6024 + function replaceReducer(nextReducer) {
6025 + if (typeof nextReducer !== 'function') {
6026 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
6027 + }
6028 +
6029 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
6030 + // Any reducers that existed in both the new and old rootReducer
6031 + // will receive the previous state. This effectively populates
6032 + // the new state tree with any relevant data from the old one.
6033 +
6034 + dispatch({
6035 + type: ActionTypes.REPLACE
6036 + });
6037 + }
6038 + /**
6039 + * Interoperability point for observable/reactive libraries.
6040 + * @returns {observable} A minimal observable of state changes.
6041 + * For more information, see the observable proposal:
6042 + * https://github.com/tc39/proposal-observable
6043 + */
6044 +
6045 +
6046 + function observable() {
6047 + var _ref;
6048 +
6049 + var outerSubscribe = subscribe;
6050 + return _ref = {
6051 + /**
6052 + * The minimal observable subscription method.
6053 + * @param {Object} observer Any object that can be used as an observer.
6054 + * The observer object should have a `next` method.
6055 + * @returns {subscription} An object with an `unsubscribe` method that can
6056 + * be used to unsubscribe the observable from the store, and prevent further
6057 + * emission of values from the observable.
6058 + */
6059 + subscribe: function subscribe(observer) {
6060 + if (typeof observer !== 'object' || observer === null) {
6061 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
6062 + }
6063 +
6064 + function observeState() {
6065 + if (observer.next) {
6066 + observer.next(getState());
6067 + }
6068 + }
6069 +
6070 + observeState();
6071 + var unsubscribe = outerSubscribe(observeState);
6072 + return {
6073 + unsubscribe: unsubscribe
6074 + };
6075 + }
6076 + }, _ref[$$observable] = function () {
6077 + return this;
6078 + }, _ref;
6079 + } // When a store is created, an "INIT" action is dispatched so that every
6080 + // reducer returns their initial state. This effectively populates
6081 + // the initial state tree.
6082 +
6083 +
6084 + dispatch({
6085 + type: ActionTypes.INIT
6086 + });
6087 + return _ref2 = {
6088 + dispatch: dispatch,
6089 + subscribe: subscribe,
6090 + getState: getState,
6091 + replaceReducer: replaceReducer
6092 + }, _ref2[$$observable] = observable, _ref2;
6093 +}
6094 +/**
6095 + * Creates a Redux store that holds the state tree.
6096 + *
6097 + * **We recommend using `configureStore` from the
6098 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
6099 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
6100 + *
6101 + * The only way to change the data in the store is to call `dispatch()` on it.
6102 + *
6103 + * There should only be a single store in your app. To specify how different
6104 + * parts of the state tree respond to actions, you may combine several reducers
6105 + * into a single reducer function by using `combineReducers`.
6106 + *
6107 + * @param {Function} reducer A function that returns the next state tree, given
6108 + * the current state tree and the action to handle.
6109 + *
6110 + * @param {any} [preloadedState] The initial state. You may optionally specify it
6111 + * to hydrate the state from the server in universal apps, or to restore a
6112 + * previously serialized user session.
6113 + * If you use `combineReducers` to produce the root reducer function, this must be
6114 + * an object with the same shape as `combineReducers` keys.
6115 + *
6116 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
6117 + * to enhance the store with third-party capabilities such as middleware,
6118 + * time travel, persistence, etc. The only store enhancer that ships with Redux
6119 + * is `applyMiddleware()`.
6120 + *
6121 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
6122 + * and subscribe to changes.
6123 + */
6124 +
6125 +var legacy_createStore = createStore;
6126 +
6127 +/**
6128 + * Prints a warning in the console if it exists.
6129 + *
6130 + * @param {String} message The warning message.
6131 + * @returns {void}
6132 + */
6133 +function warning(message) {
6134 + /* eslint-disable no-console */
6135 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
6136 + console.error(message);
6137 + }
6138 + /* eslint-enable no-console */
6139 +
6140 +
6141 + try {
6142 + // This error was thrown as a convenience so that if you enable
6143 + // "break on all exceptions" in your console,
6144 + // it would pause the execution at this line.
6145 + throw new Error(message);
6146 + } catch (e) {} // eslint-disable-line no-empty
6147 +
6148 +}
6149 +
6150 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
6151 + var reducerKeys = Object.keys(reducers);
6152 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
6153 +
6154 + if (reducerKeys.length === 0) {
6155 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
6156 + }
6157 +
6158 + if (!isPlainObject(inputState)) {
6159 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
6160 + }
6161 +
6162 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
6163 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
6164 + });
6165 + unexpectedKeys.forEach(function (key) {
6166 + unexpectedKeyCache[key] = true;
6167 + });
6168 + if (action && action.type === ActionTypes.REPLACE) return;
6169 +
6170 + if (unexpectedKeys.length > 0) {
6171 + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
6172 + }
6173 +}
6174 +
6175 +function assertReducerShape(reducers) {
6176 + Object.keys(reducers).forEach(function (key) {
6177 + var reducer = reducers[key];
6178 + var initialState = reducer(undefined, {
6179 + type: ActionTypes.INIT
6180 + });
6181 +
6182 + if (typeof initialState === 'undefined') {
6183 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
6184 + }
6185 +
6186 + if (typeof reducer(undefined, {
6187 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
6188 + }) === 'undefined') {
6189 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
6190 + }
6191 + });
6192 +}
6193 +/**
6194 + * Turns an object whose values are different reducer functions, into a single
6195 + * reducer function. It will call every child reducer, and gather their results
6196 + * into a single state object, whose keys correspond to the keys of the passed
6197 + * reducer functions.
6198 + *
6199 + * @param {Object} reducers An object whose values correspond to different
6200 + * reducer functions that need to be combined into one. One handy way to obtain
6201 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
6202 + * undefined for any action. Instead, they should return their initial state
6203 + * if the state passed to them was undefined, and the current state for any
6204 + * unrecognized action.
6205 + *
6206 + * @returns {Function} A reducer function that invokes every reducer inside the
6207 + * passed object, and builds a state object with the same shape.
6208 + */
6209 +
6210 +
6211 +function combineReducers(reducers) {
6212 + var reducerKeys = Object.keys(reducers);
6213 + var finalReducers = {};
6214 +
6215 + for (var i = 0; i < reducerKeys.length; i++) {
6216 + var key = reducerKeys[i];
6217 +
6218 + if (true) {
6219 + if (typeof reducers[key] === 'undefined') {
6220 + warning("No reducer provided for key \"" + key + "\"");
6221 + }
6222 + }
6223 +
6224 + if (typeof reducers[key] === 'function') {
6225 + finalReducers[key] = reducers[key];
6226 + }
6227 + }
6228 +
6229 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
6230 + // keys multiple times.
6231 +
6232 + var unexpectedKeyCache;
6233 +
6234 + if (true) {
6235 + unexpectedKeyCache = {};
6236 + }
6237 +
6238 + var shapeAssertionError;
6239 +
6240 + try {
6241 + assertReducerShape(finalReducers);
6242 + } catch (e) {
6243 + shapeAssertionError = e;
6244 + }
6245 +
6246 + return function combination(state, action) {
6247 + if (state === void 0) {
6248 + state = {};
6249 + }
6250 +
6251 + if (shapeAssertionError) {
6252 + throw shapeAssertionError;
6253 + }
6254 +
6255 + if (true) {
6256 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
6257 +
6258 + if (warningMessage) {
6259 + warning(warningMessage);
6260 + }
6261 + }
6262 +
6263 + var hasChanged = false;
6264 + var nextState = {};
6265 +
6266 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
6267 + var _key = finalReducerKeys[_i];
6268 + var reducer = finalReducers[_key];
6269 + var previousStateForKey = state[_key];
6270 + var nextStateForKey = reducer(previousStateForKey, action);
6271 +
6272 + if (typeof nextStateForKey === 'undefined') {
6273 + var actionType = action && action.type;
6274 + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
6275 + }
6276 +
6277 + nextState[_key] = nextStateForKey;
6278 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
6279 + }
6280 +
6281 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
6282 + return hasChanged ? nextState : state;
6283 + };
6284 +}
6285 +
6286 +function bindActionCreator(actionCreator, dispatch) {
6287 + return function () {
6288 + return dispatch(actionCreator.apply(this, arguments));
6289 + };
6290 +}
6291 +/**
6292 + * Turns an object whose values are action creators, into an object with the
6293 + * same keys, but with every function wrapped into a `dispatch` call so they
6294 + * may be invoked directly. This is just a convenience method, as you can call
6295 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
6296 + *
6297 + * For convenience, you can also pass an action creator as the first argument,
6298 + * and get a dispatch wrapped function in return.
6299 + *
6300 + * @param {Function|Object} actionCreators An object whose values are action
6301 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
6302 + * syntax. You may also pass a single function.
6303 + *
6304 + * @param {Function} dispatch The `dispatch` function available on your Redux
6305 + * store.
6306 + *
6307 + * @returns {Function|Object} The object mimicking the original object, but with
6308 + * every action creator wrapped into the `dispatch` call. If you passed a
6309 + * function as `actionCreators`, the return value will also be a single
6310 + * function.
6311 + */
6312 +
6313 +
6314 +function bindActionCreators(actionCreators, dispatch) {
6315 + if (typeof actionCreators === 'function') {
6316 + return bindActionCreator(actionCreators, dispatch);
6317 + }
6318 +
6319 + if (typeof actionCreators !== 'object' || actionCreators === null) {
6320 + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
6321 + }
6322 +
6323 + var boundActionCreators = {};
6324 +
6325 + for (var key in actionCreators) {
6326 + var actionCreator = actionCreators[key];
6327 +
6328 + if (typeof actionCreator === 'function') {
6329 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
6330 + }
6331 + }
6332 +
6333 + return boundActionCreators;
6334 +}
6335 +
6336 +/**
6337 + * Composes single-argument functions from right to left. The rightmost
6338 + * function can take multiple arguments as it provides the signature for
6339 + * the resulting composite function.
6340 + *
6341 + * @param {...Function} funcs The functions to compose.
6342 + * @returns {Function} A function obtained by composing the argument functions
6343 + * from right to left. For example, compose(f, g, h) is identical to doing
6344 + * (...args) => f(g(h(...args))).
6345 + */
6346 +function compose() {
6347 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
6348 + funcs[_key] = arguments[_key];
6349 + }
6350 +
6351 + if (funcs.length === 0) {
6352 + return function (arg) {
6353 + return arg;
6354 + };
6355 + }
6356 +
6357 + if (funcs.length === 1) {
6358 + return funcs[0];
6359 + }
6360 +
6361 + return funcs.reduce(function (a, b) {
6362 + return function () {
6363 + return a(b.apply(void 0, arguments));
6364 + };
6365 + });
6366 +}
6367 +
6368 +/**
6369 + * Creates a store enhancer that applies middleware to the dispatch method
6370 + * of the Redux store. This is handy for a variety of tasks, such as expressing
6371 + * asynchronous actions in a concise manner, or logging every action payload.
6372 + *
6373 + * See `redux-thunk` package as an example of the Redux middleware.
6374 + *
6375 + * Because middleware is potentially asynchronous, this should be the first
6376 + * store enhancer in the composition chain.
6377 + *
6378 + * Note that each middleware will be given the `dispatch` and `getState` functions
6379 + * as named arguments.
6380 + *
6381 + * @param {...Function} middlewares The middleware chain to be applied.
6382 + * @returns {Function} A store enhancer applying the middleware.
6383 + */
6384 +
6385 +function applyMiddleware() {
6386 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
6387 + middlewares[_key] = arguments[_key];
6388 + }
6389 +
6390 + return function (createStore) {
6391 + return function () {
6392 + var store = createStore.apply(void 0, arguments);
6393 +
6394 + var _dispatch = function dispatch() {
6395 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
6396 + };
6397 +
6398 + var middlewareAPI = {
6399 + getState: store.getState,
6400 + dispatch: function dispatch() {
6401 + return _dispatch.apply(void 0, arguments);
6402 + }
6403 + };
6404 + var chain = middlewares.map(function (middleware) {
6405 + return middleware(middlewareAPI);
6406 + });
6407 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
6408 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
6409 + dispatch: _dispatch
6410 + });
6411 + };
6412 + };
6413 +}
6414 +
6415 +
6416 +
6417 +
6418 +/***/ }),
6419 +
6420 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
6421 +/*!*****************************************************!*\
6422 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
6423 + \*****************************************************/
6424 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6425 +
6426 +"use strict";
6427 +__webpack_require__.r(__webpack_exports__);
6428 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6429 +/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator),
6430 +/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck),
6431 +/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize)
6432 +/* harmony export */ });
6433 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
6434 +// https://github.com/erikras/lru-memoize
6435 +var NOT_FOUND = 'NOT_FOUND';
6436 +
6437 +function createSingletonCache(equals) {
6438 + var entry;
6439 + return {
6440 + get: function get(key) {
6441 + if (entry && equals(entry.key, key)) {
6442 + return entry.value;
6443 + }
6444 +
6445 + return NOT_FOUND;
6446 + },
6447 + put: function put(key, value) {
6448 + entry = {
6449 + key: key,
6450 + value: value
6451 + };
6452 + },
6453 + getEntries: function getEntries() {
6454 + return entry ? [entry] : [];
6455 + },
6456 + clear: function clear() {
6457 + entry = undefined;
6458 + }
6459 + };
6460 +}
6461 +
6462 +function createLruCache(maxSize, equals) {
6463 + var entries = [];
6464 +
6465 + function get(key) {
6466 + var cacheIndex = entries.findIndex(function (entry) {
6467 + return equals(key, entry.key);
6468 + }); // We found a cached entry
6469 +
6470 + if (cacheIndex > -1) {
6471 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
6472 +
6473 + if (cacheIndex > 0) {
6474 + entries.splice(cacheIndex, 1);
6475 + entries.unshift(entry);
6476 + }
6477 +
6478 + return entry.value;
6479 + } // No entry found in cache, return sentinel
6480 +
6481 +
6482 + return NOT_FOUND;
6483 + }
6484 +
6485 + function put(key, value) {
6486 + if (get(key) === NOT_FOUND) {
6487 + // TODO Is unshift slow?
6488 + entries.unshift({
6489 + key: key,
6490 + value: value
6491 + });
6492 +
6493 + if (entries.length > maxSize) {
6494 + entries.pop();
6495 + }
6496 + }
6497 + }
6498 +
6499 + function getEntries() {
6500 + return entries;
6501 + }
6502 +
6503 + function clear() {
6504 + entries = [];
6505 + }
6506 +
6507 + return {
6508 + get: get,
6509 + put: put,
6510 + getEntries: getEntries,
6511 + clear: clear
6512 + };
6513 +}
6514 +
6515 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
6516 + return a === b;
6517 +};
6518 +function createCacheKeyComparator(equalityCheck) {
6519 + return function areArgumentsShallowlyEqual(prev, next) {
6520 + if (prev === null || next === null || prev.length !== next.length) {
6521 + return false;
6522 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
6523 +
6524 +
6525 + var length = prev.length;
6526 +
6527 + for (var i = 0; i < length; i++) {
6528 + if (!equalityCheck(prev[i], next[i])) {
6529 + return false;
6530 + }
6531 + }
6532 +
6533 + return true;
6534 + };
6535 +}
6536 +// defaultMemoize now supports a configurable cache size with LRU behavior,
6537 +// and optional comparison of the result value with existing values
6538 +function defaultMemoize(func, equalityCheckOrOptions) {
6539 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
6540 + equalityCheck: equalityCheckOrOptions
6541 + };
6542 + var _providedOptions$equa = providedOptions.equalityCheck,
6543 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
6544 + _providedOptions$maxS = providedOptions.maxSize,
6545 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
6546 + resultEqualityCheck = providedOptions.resultEqualityCheck;
6547 + var comparator = createCacheKeyComparator(equalityCheck);
6548 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
6549 +
6550 + function memoized() {
6551 + var value = cache.get(arguments);
6552 +
6553 + if (value === NOT_FOUND) {
6554 + // @ts-ignore
6555 + value = func.apply(null, arguments);
6556 +
6557 + if (resultEqualityCheck) {
6558 + var entries = cache.getEntries();
6559 + var matchingEntry = entries.find(function (entry) {
6560 + return resultEqualityCheck(entry.value, value);
6561 + });
6562 +
6563 + if (matchingEntry) {
6564 + value = matchingEntry.value;
6565 + }
6566 + }
6567 +
6568 + cache.put(arguments, value);
6569 + }
6570 +
6571 + return value;
6572 + }
6573 +
6574 + memoized.clearCache = function () {
6575 + return cache.clear();
6576 + };
6577 +
6578 + return memoized;
6579 +}
6580 +
6581 +/***/ }),
6582 +
6583 +/***/ "../node_modules/reselect/es/index.js":
6584 +/*!********************************************!*\
6585 + !*** ../node_modules/reselect/es/index.js ***!
6586 + \********************************************/
6587 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6588 +
6589 +"use strict";
6590 +__webpack_require__.r(__webpack_exports__);
6591 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6592 +/* harmony export */ createSelector: () => (/* binding */ createSelector),
6593 +/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator),
6594 +/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector),
6595 +/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
6596 +/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
6597 +/* harmony export */ });
6598 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
6599 +
6600 +
6601 +
6602 +function getDependencies(funcs) {
6603 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
6604 +
6605 + if (!dependencies.every(function (dep) {
6606 + return typeof dep === 'function';
6607 + })) {
6608 + var dependencyTypes = dependencies.map(function (dep) {
6609 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
6610 + }).join(', ');
6611 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
6612 + }
6613 +
6614 + return dependencies;
6615 +}
6616 +
6617 +function createSelectorCreator(memoize) {
6618 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
6619 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
6620 + }
6621 +
6622 + var createSelector = function createSelector() {
6623 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
6624 + funcs[_key2] = arguments[_key2];
6625 + }
6626 +
6627 + var _recomputations = 0;
6628 +
6629 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
6630 + // So, start by declaring the default value here.
6631 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
6632 +
6633 +
6634 + var directlyPassedOptions = {
6635 + memoizeOptions: undefined
6636 + }; // Normally, the result func or "output selector" is the last arg
6637 +
6638 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
6639 +
6640 + if (typeof resultFunc === 'object') {
6641 + directlyPassedOptions = resultFunc; // and pop the real result func off
6642 +
6643 + resultFunc = funcs.pop();
6644 + }
6645 +
6646 + if (typeof resultFunc !== 'function') {
6647 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
6648 + } // Determine which set of options we're using. Prefer options passed directly,
6649 + // but fall back to options given to createSelectorCreator.
6650 +
6651 +
6652 + var _directlyPassedOption = directlyPassedOptions,
6653 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
6654 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
6655 + // is an array. In most libs I've looked at, it's an equality function or options object.
6656 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
6657 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
6658 + // we wrap it in an array so we can apply it.
6659 +
6660 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
6661 + var dependencies = getDependencies(funcs);
6662 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
6663 + _recomputations++; // apply arguments instead of spreading for performance.
6664 +
6665 + return resultFunc.apply(null, arguments);
6666 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
6667 +
6668 + var selector = memoize(function dependenciesChecker() {
6669 + var params = [];
6670 + var length = dependencies.length;
6671 +
6672 + for (var i = 0; i < length; i++) {
6673 + // apply arguments instead of spreading and mutate a local list of params for performance.
6674 + // @ts-ignore
6675 + params.push(dependencies[i].apply(null, arguments));
6676 + } // apply arguments instead of spreading for performance.
6677 +
6678 +
6679 + _lastResult = memoizedResultFunc.apply(null, params);
6680 + return _lastResult;
6681 + });
6682 + Object.assign(selector, {
6683 + resultFunc: resultFunc,
6684 + memoizedResultFunc: memoizedResultFunc,
6685 + dependencies: dependencies,
6686 + lastResult: function lastResult() {
6687 + return _lastResult;
6688 + },
6689 + recomputations: function recomputations() {
6690 + return _recomputations;
6691 + },
6692 + resetRecomputations: function resetRecomputations() {
6693 + return _recomputations = 0;
6694 + }
6695 + });
6696 + return selector;
6697 + }; // @ts-ignore
6698 +
6699 +
6700 + return createSelector;
6701 +}
6702 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
6703 +// Manual definition of state and output arguments
6704 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
6705 + if (selectorCreator === void 0) {
6706 + selectorCreator = createSelector;
6707 + }
6708 +
6709 + if (typeof selectors !== 'object') {
6710 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
6711 + }
6712 +
6713 + var objectKeys = Object.keys(selectors);
6714 + var resultSelector = selectorCreator( // @ts-ignore
6715 + objectKeys.map(function (key) {
6716 + return selectors[key];
6717 + }), function () {
6718 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
6719 + values[_key3] = arguments[_key3];
6720 + }
6721 +
6722 + return values.reduce(function (composition, value, index) {
6723 + composition[objectKeys[index]] = value;
6724 + return composition;
6725 + }, {});
6726 + });
6727 + return resultSelector;
6728 +};
6729 +
3406 6730 /***/ })
3407 6731
3408 6732 /******/ });
3409 6733 /************************************************************************/
@@ -3429,8 +6753,49 @@
3429 6753 /******/
3430 6754 /******/ // Return the exports of the module
3431 6755 /******/ return module.exports;
3432 6756 /******/ }
6757 +/******/
6758 +/************************************************************************/
6759 +/******/ /* webpack/runtime/define property getters */
6760 +/******/ (() => {
6761 +/******/ // define getter functions for harmony exports
6762 +/******/ __webpack_require__.d = (exports, definition) => {
6763 +/******/ for(var key in definition) {
6764 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
6765 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
6766 +/******/ }
6767 +/******/ }
6768 +/******/ };
6769 +/******/ })();
6770 +/******/
6771 +/******/ /* webpack/runtime/global */
6772 +/******/ (() => {
6773 +/******/ __webpack_require__.g = (function() {
6774 +/******/ if (typeof globalThis === 'object') return globalThis;
6775 +/******/ try {
6776 +/******/ return this || new Function('return this')();
6777 +/******/ } catch (e) {
6778 +/******/ if (typeof window === 'object') return window;
6779 +/******/ }
6780 +/******/ })();
6781 +/******/ })();
6782 +/******/
6783 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
6784 +/******/ (() => {
6785 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
6786 +/******/ })();
6787 +/******/
6788 +/******/ /* webpack/runtime/make namespace object */
6789 +/******/ (() => {
6790 +/******/ // define __esModule on exports
6791 +/******/ __webpack_require__.r = (exports) => {
6792 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6793 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6794 +/******/ }
6795 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
6796 +/******/ };
6797 +/******/ })();
3433 6798 /******/
3434 6799 /************************************************************************/
3435 6800 var __webpack_exports__ = {};
3436 6801 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.