PluginProbe
Elementor Website Builder – more than just a page builder / 3.17.2
Elementor Website Builder – more than just a page builder v3.17.2
4.3.2 4.3.1 4.3.0 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 All 455 releases
← All changes | assets/js/packages/store/store.js +6212 -111 4.3.1 → 3.17.2 View file →
@@ -1,116 +1,6217 @@
1 -(function(_reduxjs_toolkit, react_redux) {
1 +/******/ (function() { // webpackBootstrap
2 +/******/ "use strict";
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __defProp = Object.defineProperty;
5 - var __name = (target, value) => __defProp(target, "name", {
6 - value,
7 - configurable: true
8 - });
9 - var __exportAll = (all, no_symbols) => {
10 - let target = {};
11 - for (var name in all) {
12 - __defProp(target, name, {
13 - get: all[name],
14 - enumerable: true
15 - });
16 - }
17 - if (!no_symbols) {
18 - __defProp(target, Symbol.toStringTag, { value: "Module" });
19 - }
20 - return target;
21 - };
5 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js":
6 +/*!*****************************************************************************************!*\
7 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js ***!
8 + \*****************************************************************************************/
9 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
22 10
23 -//#endregion
11 +__webpack_require__.r(__webpack_exports__);
12 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
13 +/* harmony export */ ReactReduxContext: function() { return /* binding */ ReactReduxContext; }
14 +/* harmony export */ });
15 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
16 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
24 17
25 -//#region packages/packages/libs/store/src/index.ts
26 - var src_exports = /* @__PURE__ */ __exportAll({
27 - __StoreProvider: () => react_redux.Provider,
28 - __addMiddleware: () => addMiddleware,
29 - __createAction: () => _reduxjs_toolkit.createAction,
30 - __createAsyncThunk: () => _reduxjs_toolkit.createAsyncThunk,
31 - __createSelector: () => _reduxjs_toolkit.createSelector,
32 - __createSlice: () => _reduxjs_toolkit.createSlice,
33 - __createStore: () => createStore,
34 - __deleteStore: () => deleteStore,
35 - __dispatch: () => dispatch,
36 - __getState: () => getState,
37 - __getStore: () => getStore,
38 - __registerSlice: () => registerSlice,
39 - __subscribe: () => subscribe,
40 - __subscribeWithSelector: () => subscribeWithSelector,
41 - __useDispatch: () => react_redux.useDispatch,
42 - __useSelector: () => react_redux.useSelector
43 - });
44 - var instance = null;
45 - var slices = {};
46 - var pendingActions = [];
47 - var middlewares = /* @__PURE__ */ new Set();
48 - var getReducers = () => {
49 - return (0, _reduxjs_toolkit.combineReducers)(Object.entries(slices).reduce((reducersData, [name, slice]) => {
50 - reducersData[name] = slice.reducer;
51 - return reducersData;
52 - }, {}));
53 - };
54 - function registerSlice(slice) {
55 - if (slices[slice.name]) throw new Error(`Slice with name "${slice.name}" already exists.`);
56 - slices[slice.name] = slice;
57 - }
58 - var addMiddleware = (middleware) => {
59 - middlewares.add(middleware);
60 - };
61 - var dispatch = (action) => {
62 - if (!instance) {
63 - pendingActions.push(action);
64 - return;
65 - }
66 - return instance.dispatch(action);
67 - };
68 - var getState = () => {
69 - if (!instance) throw new Error("The store instance does not exist.");
70 - return instance.getState();
71 - };
72 - var subscribe = (listener) => {
73 - if (!instance) throw new Error("The store instance does not exist.");
74 - return instance.subscribe(listener);
75 - };
76 - var subscribeWithSelector = (selector, listener) => {
77 - let prevState = selector(getState());
78 - return subscribe(() => {
79 - const nextState = selector(getState());
80 - if (prevState === nextState) return;
81 - prevState = nextState;
82 - listener(nextState);
83 - });
84 - };
85 - var createStore = () => {
86 - if (instance) throw new Error("The store instance already exists.");
87 - instance = (0, _reduxjs_toolkit.configureStore)({
88 - reducer: getReducers(),
89 - middleware: (getDefaultMiddleware) => {
90 - return [...getDefaultMiddleware(), ...Array.from(middlewares)];
91 - }
92 - });
93 - if (pendingActions.length) {
94 - pendingActions.forEach((action) => dispatch(action));
95 - pendingActions.length = 0;
96 - }
97 - return instance;
98 - };
99 - var getStore = () => {
100 - return instance;
101 - };
102 - var deleteStore = () => {
103 - instance = null;
104 - slices = {};
105 - pendingActions.length = 0;
106 - middlewares.clear();
107 - };
18 +const ContextKey = Symbol.for(`react-redux-context`);
19 +const gT = typeof globalThis !== "undefined" ? globalThis :
20 +/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
21 +{};
108 22
109 -//#endregion
110 -//#region \0elementor-package-library-entry
111 - (window.elementorV2 = window.elementorV2 || {}).store = src_exports;
23 +function getContext() {
24 + var _gT$ContextKey;
112 25
113 -//#endregion
114 -})(elementorVendors.reduxToolkit, elementorVendors.reactRedux);
115 -window.elementorV2.store?.init?.();
116 -//# sourceMappingURL=store.js.map
26 + if (!react__WEBPACK_IMPORTED_MODULE_0__.createContext) return {};
27 + const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
28 + let realContext = contextMap.get(react__WEBPACK_IMPORTED_MODULE_0__.createContext);
29 +
30 + if (!realContext) {
31 + realContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
32 +
33 + if (true) {
34 + realContext.displayName = 'ReactRedux';
35 + }
36 +
37 + contextMap.set(react__WEBPACK_IMPORTED_MODULE_0__.createContext, realContext);
38 + }
39 +
40 + return realContext;
41 +}
42 +
43 +const ReactReduxContext = /*#__PURE__*/getContext();
44 +/* harmony default export */ __webpack_exports__["default"] = (ReactReduxContext);
45 +
46 +/***/ }),
47 +
48 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Provider.js":
49 +/*!******************************************************************************************!*\
50 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/components/Provider.js ***!
51 + \******************************************************************************************/
52 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
53 +
54 +__webpack_require__.r(__webpack_exports__);
55 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
56 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
57 +/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
58 +/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/Subscription.js");
59 +/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
60 +
61 +
62 +
63 +
64 +
65 +function Provider({
66 + store,
67 + context,
68 + children,
69 + serverState,
70 + stabilityCheck = 'once',
71 + noopCheck = 'once'
72 +}) {
73 + const contextValue = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => {
74 + const subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_2__.createSubscription)(store);
75 + return {
76 + store,
77 + subscription,
78 + getServerState: serverState ? () => serverState : undefined,
79 + stabilityCheck,
80 + noopCheck
81 + };
82 + }, [store, serverState, stabilityCheck, noopCheck]);
83 + const previousState = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => store.getState(), [store]);
84 + (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(() => {
85 + const {
86 + subscription
87 + } = contextValue;
88 + subscription.onStateChange = subscription.notifyNestedSubs;
89 + subscription.trySubscribe();
90 +
91 + if (previousState !== store.getState()) {
92 + subscription.notifyNestedSubs();
93 + }
94 +
95 + return () => {
96 + subscription.tryUnsubscribe();
97 + subscription.onStateChange = undefined;
98 + };
99 + }, [contextValue, previousState]);
100 + const Context = context || _Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype
101 +
102 + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Context.Provider, {
103 + value: contextValue
104 + }, children);
105 +}
106 +
107 +/* harmony default export */ __webpack_exports__["default"] = (Provider);
108 +
109 +/***/ }),
110 +
111 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/components/connect.js":
112 +/*!*****************************************************************************************!*\
113 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/components/connect.js ***!
114 + \*****************************************************************************************/
115 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
116 +
117 +__webpack_require__.r(__webpack_exports__);
118 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
119 +/* harmony export */ initializeConnect: function() { return /* binding */ initializeConnect; }
120 +/* harmony export */ });
121 +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
122 +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
123 +/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
124 +/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
125 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
126 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
127 +/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
128 +/* harmony import */ var _connect_selectorFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../connect/selectorFactory */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/selectorFactory.js");
129 +/* harmony import */ var _connect_mapDispatchToProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../connect/mapDispatchToProps */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/mapDispatchToProps.js");
130 +/* harmony import */ var _connect_mapStateToProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../connect/mapStateToProps */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/mapStateToProps.js");
131 +/* harmony import */ var _connect_mergeProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../connect/mergeProps */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/mergeProps.js");
132 +/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/Subscription */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/Subscription.js");
133 +/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
134 +/* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/shallowEqual */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/shallowEqual.js");
135 +/* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/warning */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/warning.js");
136 +/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
137 +/* harmony import */ var _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/useSyncExternalStore */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/useSyncExternalStore.js");
138 +
139 +
140 +const _excluded = ["reactReduxForwardedRef"];
141 +
142 +/* eslint-disable valid-jsdoc, @typescript-eslint/no-unused-vars */
143 +
144 +
145 +
146 +
147 +
148 +
149 +
150 +
151 +
152 +
153 +
154 +
155 +
156 +let useSyncExternalStore = _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_14__.notInitialized;
157 +const initializeConnect = fn => {
158 + useSyncExternalStore = fn;
159 +}; // Define some constant arrays just to avoid re-creating these
160 +
161 +const EMPTY_ARRAY = [null, 0];
162 +const NO_SUBSCRIPTION_ARRAY = [null, null]; // Attempts to stringify whatever not-really-a-component value we were given
163 +// for logging in an error message
164 +
165 +const stringifyComponent = Comp => {
166 + try {
167 + return JSON.stringify(Comp);
168 + } catch (err) {
169 + return String(Comp);
170 + }
171 +};
172 +
173 +// This is "just" a `useLayoutEffect`, but with two modifications:
174 +// - we need to fall back to `useEffect` in SSR to avoid annoying warnings
175 +// - we extract this to a separate function to avoid closing over values
176 +// and causing memory leaks
177 +function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
178 + (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => effectFunc(...effectArgs), dependencies);
179 +} // Effect callback, extracted: assign the latest props values to refs for later usage
180 +
181 +
182 +function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, // actualChildProps: unknown,
183 +childPropsFromStoreUpdate, notifyNestedSubs) {
184 + // We want to capture the wrapper props and child props we used for later comparisons
185 + lastWrapperProps.current = wrapperProps;
186 + renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
187 +
188 + if (childPropsFromStoreUpdate.current) {
189 + childPropsFromStoreUpdate.current = null;
190 + notifyNestedSubs();
191 + }
192 +} // Effect callback, extracted: subscribe to the Redux store or nearest connected ancestor,
193 +// check for updates after dispatched actions, and trigger re-renders.
194 +
195 +
196 +function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, // forceComponentUpdateDispatch: React.Dispatch<any>,
197 +additionalSubscribeListener) {
198 + // If we're not subscribed to the store, nothing to do here
199 + if (!shouldHandleStateChanges) return () => {}; // Capture values for checking if and when this component unmounts
200 +
201 + let didUnsubscribe = false;
202 + let lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
203 +
204 + const checkForUpdates = () => {
205 + if (didUnsubscribe || !isMounted.current) {
206 + // Don't run stale listeners.
207 + // Redux doesn't guarantee unsubscriptions happen until next dispatch.
208 + return;
209 + } // TODO We're currently calling getState ourselves here, rather than letting `uSES` do it
210 +
211 +
212 + const latestStoreState = store.getState();
213 + let newChildProps, error;
214 +
215 + try {
216 + // Actually run the selector with the most recent store state and wrapper props
217 + // to determine what the child props should be
218 + newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
219 + } catch (e) {
220 + error = e;
221 + lastThrownError = e;
222 + }
223 +
224 + if (!error) {
225 + lastThrownError = null;
226 + } // If the child props haven't changed, nothing to do here - cascade the subscription update
227 +
228 +
229 + if (newChildProps === lastChildProps.current) {
230 + if (!renderIsScheduled.current) {
231 + notifyNestedSubs();
232 + }
233 + } else {
234 + // Save references to the new child props. Note that we track the "child props from store update"
235 + // as a ref instead of a useState/useReducer because we need a way to determine if that value has
236 + // been processed. If this went into useState/useReducer, we couldn't clear out the value without
237 + // forcing another re-render, which we don't want.
238 + lastChildProps.current = newChildProps;
239 + childPropsFromStoreUpdate.current = newChildProps;
240 + renderIsScheduled.current = true; // TODO This is hacky and not how `uSES` is meant to be used
241 + // Trigger the React `useSyncExternalStore` subscriber
242 +
243 + additionalSubscribeListener();
244 + }
245 + }; // Actually subscribe to the nearest connected ancestor (or store)
246 +
247 +
248 + subscription.onStateChange = checkForUpdates;
249 + subscription.trySubscribe(); // Pull data from the store after first render in case the store has
250 + // changed since we began.
251 +
252 + checkForUpdates();
253 +
254 + const unsubscribeWrapper = () => {
255 + didUnsubscribe = true;
256 + subscription.tryUnsubscribe();
257 + subscription.onStateChange = null;
258 +
259 + if (lastThrownError) {
260 + // It's possible that we caught an error due to a bad mapState function, but the
261 + // parent re-rendered without this component and we're about to unmount.
262 + // This shouldn't happen as long as we do top-down subscriptions correctly, but
263 + // if we ever do those wrong, this throw will surface the error in our tests.
264 + // In that case, throw the error from here so it doesn't get lost.
265 + throw lastThrownError;
266 + }
267 + };
268 +
269 + return unsubscribeWrapper;
270 +} // Reducer initial state creation for our update reducer
271 +
272 +
273 +const initStateUpdates = () => EMPTY_ARRAY;
274 +
275 +function strictEqual(a, b) {
276 + return a === b;
277 +}
278 +/**
279 + * Infers the type of props that a connector will inject into a component.
280 + */
281 +
282 +
283 +let hasWarnedAboutDeprecatedPureOption = false;
284 +/**
285 + * Connects a React component to a Redux store.
286 + *
287 + * - Without arguments, just wraps the component, without changing the behavior / props
288 + *
289 + * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
290 + * is to override ownProps (as stated in the docs), so what remains is everything that's
291 + * not a state or dispatch prop
292 + *
293 + * - When 3rd param is passed, we don't know if ownProps propagate and whether they
294 + * should be valid component props, because it depends on mergeProps implementation.
295 + * As such, it is the user's responsibility to extend ownProps interface from state or
296 + * dispatch props or both when applicable
297 + *
298 + * @param mapStateToProps A function that extracts values from state
299 + * @param mapDispatchToProps Setup for dispatching actions
300 + * @param mergeProps Optional callback to merge state and dispatch props together
301 + * @param options Options for configuring the connection
302 + *
303 + */
304 +
305 +function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
306 + // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
307 + // @ts-ignore
308 + pure,
309 + areStatesEqual = strictEqual,
310 + areOwnPropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
311 + areStatePropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
312 + areMergedPropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
313 + // use React's forwardRef to expose a ref of the wrapped component
314 + forwardRef = false,
315 + // the context consumer to use
316 + context = _Context__WEBPACK_IMPORTED_MODULE_13__.ReactReduxContext
317 +} = {}) {
318 + if (true) {
319 + if (pure !== undefined && !hasWarnedAboutDeprecatedPureOption) {
320 + hasWarnedAboutDeprecatedPureOption = true;
321 + (0,_utils_warning__WEBPACK_IMPORTED_MODULE_12__["default"])('The `pure` option has been removed. `connect` is now always a "pure/memoized" component');
322 + }
323 + }
324 +
325 + const Context = context;
326 + const initMapStateToProps = (0,_connect_mapStateToProps__WEBPACK_IMPORTED_MODULE_7__.mapStateToPropsFactory)(mapStateToProps);
327 + const initMapDispatchToProps = (0,_connect_mapDispatchToProps__WEBPACK_IMPORTED_MODULE_6__.mapDispatchToPropsFactory)(mapDispatchToProps);
328 + const initMergeProps = (0,_connect_mergeProps__WEBPACK_IMPORTED_MODULE_8__.mergePropsFactory)(mergeProps);
329 + const shouldHandleStateChanges = Boolean(mapStateToProps);
330 +
331 + const wrapWithConnect = WrappedComponent => {
332 + if ( true && !(0,react_is__WEBPACK_IMPORTED_MODULE_4__.isValidElementType)(WrappedComponent)) {
333 + throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(WrappedComponent)}`);
334 + }
335 +
336 + const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
337 + const displayName = `Connect(${wrappedComponentName})`;
338 + const selectorFactoryOptions = {
339 + shouldHandleStateChanges,
340 + displayName,
341 + wrappedComponentName,
342 + WrappedComponent,
343 + // @ts-ignore
344 + initMapStateToProps,
345 + // @ts-ignore
346 + initMapDispatchToProps,
347 + initMergeProps,
348 + areStatesEqual,
349 + areStatePropsEqual,
350 + areOwnPropsEqual,
351 + areMergedPropsEqual
352 + };
353 +
354 + function ConnectFunction(props) {
355 + const [propsContext, reactReduxForwardedRef, wrapperProps] = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
356 + // Distinguish between actual "data" props that were passed to the wrapper component,
357 + // and values needed to control behavior (forwarded refs, alternate context instances).
358 + // To maintain the wrapperProps object reference, memoize this destructuring.
359 + const {
360 + reactReduxForwardedRef
361 + } = props,
362 + wrapperProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(props, _excluded);
363 +
364 + return [props.context, reactReduxForwardedRef, wrapperProps];
365 + }, [props]);
366 + const ContextToUse = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
367 + // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
368 + // Memoize the check that determines which context instance we should use.
369 + return propsContext && propsContext.Consumer && // @ts-ignore
370 + (0,react_is__WEBPACK_IMPORTED_MODULE_4__.isContextConsumer)( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(propsContext.Consumer, null)) ? propsContext : Context;
371 + }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
372 +
373 + const contextValue = react__WEBPACK_IMPORTED_MODULE_3__.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
374 + // We'll check to see if it _looks_ like a Redux store first.
375 + // This allows us to pass through a `store` prop that is just a plain value.
376 +
377 + const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
378 + const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
379 +
380 + if ( true && !didStoreComeFromProps && !didStoreComeFromContext) {
381 + throw new Error(`Could not find "store" in the context of ` + `"${displayName}". Either wrap the root component in a <Provider>, ` + `or pass a custom React context provider to <Provider> and the corresponding ` + `React context consumer to ${displayName} in connect options.`);
382 + } // Based on the previous check, one of these must be true
383 +
384 +
385 + const store = didStoreComeFromProps ? props.store : contextValue.store;
386 + const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
387 + const childPropsSelector = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
388 + // The child props selector needs the store reference as an input.
389 + // Re-create this selector whenever the store changes.
390 + return (0,_connect_selectorFactory__WEBPACK_IMPORTED_MODULE_5__["default"])(store.dispatch, selectorFactoryOptions);
391 + }, [store]);
392 + const [subscription, notifyNestedSubs] = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
393 + if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
394 + // connected to the store via props shouldn't use subscription from context, or vice versa.
395 +
396 + const subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_9__.createSubscription)(store, didStoreComeFromProps ? undefined : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
397 + // the middle of the notification loop, where `subscription` will then be null. This can
398 + // probably be avoided if Subscription's listeners logic is changed to not call listeners
399 + // that have been unsubscribed in the middle of the notification loop.
400 +
401 + const notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
402 + return [subscription, notifyNestedSubs];
403 + }, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
404 + // and memoize that value to avoid unnecessary context updates.
405 +
406 + const overriddenContextValue = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
407 + if (didStoreComeFromProps) {
408 + // This component is directly subscribed to a store from props.
409 + // We don't want descendants reading from this store - pass down whatever
410 + // the existing context value is from the nearest connected ancestor.
411 + return contextValue;
412 + } // Otherwise, put this component's subscription instance into context, so that
413 + // connected descendants won't update until after this component is done
414 +
415 +
416 + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, contextValue, {
417 + subscription
418 + });
419 + }, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
420 +
421 + const lastChildProps = react__WEBPACK_IMPORTED_MODULE_3__.useRef();
422 + const lastWrapperProps = react__WEBPACK_IMPORTED_MODULE_3__.useRef(wrapperProps);
423 + const childPropsFromStoreUpdate = react__WEBPACK_IMPORTED_MODULE_3__.useRef();
424 + const renderIsScheduled = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
425 + const isProcessingDispatch = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
426 + const isMounted = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
427 + const latestSubscriptionCallbackError = react__WEBPACK_IMPORTED_MODULE_3__.useRef();
428 + (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => {
429 + isMounted.current = true;
430 + return () => {
431 + isMounted.current = false;
432 + };
433 + }, []);
434 + const actualChildPropsSelector = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
435 + const selector = () => {
436 + // Tricky logic here:
437 + // - This render may have been triggered by a Redux store update that produced new child props
438 + // - However, we may have gotten new wrapper props after that
439 + // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
440 + // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
441 + // So, we'll use the child props from store update only if the wrapper props are the same as last time.
442 + if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
443 + return childPropsFromStoreUpdate.current;
444 + } // TODO We're reading the store directly in render() here. Bad idea?
445 + // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
446 + // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
447 + // to determine what the child props should be.
448 +
449 +
450 + return childPropsSelector(store.getState(), wrapperProps);
451 + };
452 +
453 + return selector;
454 + }, [store, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
455 + // about useLayoutEffect in SSR, so we try to detect environment and fall back to
456 + // just useEffect instead to avoid the warning, since neither will run anyway.
457 +
458 + const subscribeForReact = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
459 + const subscribe = reactListener => {
460 + if (!subscription) {
461 + return () => {};
462 + }
463 +
464 + return subscribeUpdates(shouldHandleStateChanges, store, subscription, // @ts-ignore
465 + childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);
466 + };
467 +
468 + return subscribe;
469 + }, [subscription]);
470 + useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs]);
471 + let actualChildProps;
472 +
473 + try {
474 + actualChildProps = useSyncExternalStore( // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
475 + subscribeForReact, // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
476 + // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
477 + actualChildPropsSelector, getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);
478 + } catch (err) {
479 + if (latestSubscriptionCallbackError.current) {
480 + ;
481 + err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;
482 + }
483 +
484 + throw err;
485 + }
486 +
487 + (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => {
488 + latestSubscriptionCallbackError.current = undefined;
489 + childPropsFromStoreUpdate.current = undefined;
490 + lastChildProps.current = actualChildProps;
491 + }); // Now that all that's done, we can finally try to actually render the child component.
492 + // We memoize the elements for the rendered child component as an optimization.
493 +
494 + const renderedWrappedComponent = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
495 + return (
496 + /*#__PURE__*/
497 + // @ts-ignore
498 + react__WEBPACK_IMPORTED_MODULE_3__.createElement(WrappedComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, actualChildProps, {
499 + ref: reactReduxForwardedRef
500 + }))
501 + );
502 + }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
503 + // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
504 +
505 + const renderedChild = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
506 + if (shouldHandleStateChanges) {
507 + // If this component is subscribed to store updates, we need to pass its own
508 + // subscription instance down to our descendants. That means rendering the same
509 + // Context instance, and putting a different value into the context.
510 + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(ContextToUse.Provider, {
511 + value: overriddenContextValue
512 + }, renderedWrappedComponent);
513 + }
514 +
515 + return renderedWrappedComponent;
516 + }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
517 + return renderedChild;
518 + }
519 +
520 + const _Connect = react__WEBPACK_IMPORTED_MODULE_3__.memo(ConnectFunction);
521 +
522 + // Add a hacky cast to get the right output type
523 + const Connect = _Connect;
524 + Connect.WrappedComponent = WrappedComponent;
525 + Connect.displayName = ConnectFunction.displayName = displayName;
526 +
527 + if (forwardRef) {
528 + const _forwarded = react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function forwardConnectRef(props, ref) {
529 + // @ts-ignore
530 + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Connect, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
531 + reactReduxForwardedRef: ref
532 + }));
533 + });
534 +
535 + const forwarded = _forwarded;
536 + forwarded.displayName = displayName;
537 + forwarded.WrappedComponent = WrappedComponent;
538 + return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(forwarded, WrappedComponent);
539 + }
540 +
541 + return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(Connect, WrappedComponent);
542 + };
543 +
544 + return wrapWithConnect;
545 +}
546 +
547 +/* harmony default export */ __webpack_exports__["default"] = (connect);
548 +
549 +/***/ }),
550 +
551 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/invalidArgFactory.js":
552 +/*!************************************************************************************************!*\
553 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/invalidArgFactory.js ***!
554 + \************************************************************************************************/
555 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
556 +
557 +__webpack_require__.r(__webpack_exports__);
558 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
559 +/* harmony export */ createInvalidArgFactory: function() { return /* binding */ createInvalidArgFactory; }
560 +/* harmony export */ });
561 +function createInvalidArgFactory(arg, name) {
562 + return (dispatch, options) => {
563 + throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
564 + };
565 +}
566 +
567 +/***/ }),
568 +
569 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/mapDispatchToProps.js":
570 +/*!*************************************************************************************************!*\
571 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/mapDispatchToProps.js ***!
572 + \*************************************************************************************************/
573 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
574 +
575 +__webpack_require__.r(__webpack_exports__);
576 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
577 +/* harmony export */ mapDispatchToPropsFactory: function() { return /* binding */ mapDispatchToPropsFactory; }
578 +/* harmony export */ });
579 +/* harmony import */ var _utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/bindActionCreators */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/bindActionCreators.js");
580 +/* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrapMapToProps */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/wrapMapToProps.js");
581 +/* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./invalidArgFactory */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/invalidArgFactory.js");
582 +
583 +
584 +
585 +function mapDispatchToPropsFactory(mapDispatchToProps) {
586 + return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(dispatch => // @ts-ignore
587 + (0,_utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__["default"])(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(dispatch => ({
588 + dispatch
589 + })) : typeof mapDispatchToProps === 'function' ? // @ts-ignore
590 + (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__.createInvalidArgFactory)(mapDispatchToProps, 'mapDispatchToProps');
591 +}
592 +
593 +/***/ }),
594 +
595 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/mapStateToProps.js":
596 +/*!**********************************************************************************************!*\
597 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/mapStateToProps.js ***!
598 + \**********************************************************************************************/
599 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
600 +
601 +__webpack_require__.r(__webpack_exports__);
602 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
603 +/* harmony export */ mapStateToPropsFactory: function() { return /* binding */ mapStateToPropsFactory; }
604 +/* harmony export */ });
605 +/* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./wrapMapToProps */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/wrapMapToProps.js");
606 +/* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./invalidArgFactory */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/invalidArgFactory.js");
607 +
608 +
609 +function mapStateToPropsFactory(mapStateToProps) {
610 + return !mapStateToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsConstant)(() => ({})) : typeof mapStateToProps === 'function' ? // @ts-ignore
611 + (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_1__.createInvalidArgFactory)(mapStateToProps, 'mapStateToProps');
612 +}
613 +
614 +/***/ }),
615 +
616 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/mergeProps.js":
617 +/*!*****************************************************************************************!*\
618 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/mergeProps.js ***!
619 + \*****************************************************************************************/
620 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
621 +
622 +__webpack_require__.r(__webpack_exports__);
623 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
624 +/* harmony export */ defaultMergeProps: function() { return /* binding */ defaultMergeProps; },
625 +/* harmony export */ mergePropsFactory: function() { return /* binding */ mergePropsFactory; },
626 +/* harmony export */ wrapMergePropsFunc: function() { return /* binding */ wrapMergePropsFunc; }
627 +/* harmony export */ });
628 +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
629 +/* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/verifyPlainObject.js");
630 +/* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./invalidArgFactory */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/invalidArgFactory.js");
631 +
632 +
633 +
634 +function defaultMergeProps(stateProps, dispatchProps, ownProps) {
635 + // @ts-ignore
636 + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, ownProps, stateProps, dispatchProps);
637 +}
638 +function wrapMergePropsFunc(mergeProps) {
639 + return function initMergePropsProxy(dispatch, {
640 + displayName,
641 + areMergedPropsEqual
642 + }) {
643 + let hasRunOnce = false;
644 + let mergedProps;
645 + return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
646 + const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
647 +
648 + if (hasRunOnce) {
649 + if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
650 + } else {
651 + hasRunOnce = true;
652 + mergedProps = nextMergedProps;
653 + if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__["default"])(mergedProps, displayName, 'mergeProps');
654 + }
655 +
656 + return mergedProps;
657 + };
658 + };
659 +}
660 +function mergePropsFactory(mergeProps) {
661 + return !mergeProps ? () => defaultMergeProps : typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__.createInvalidArgFactory)(mergeProps, 'mergeProps');
662 +}
663 +
664 +/***/ }),
665 +
666 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/selectorFactory.js":
667 +/*!**********************************************************************************************!*\
668 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/selectorFactory.js ***!
669 + \**********************************************************************************************/
670 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
671 +
672 +__webpack_require__.r(__webpack_exports__);
673 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
674 +/* harmony export */ "default": function() { return /* binding */ finalPropsSelectorFactory; },
675 +/* harmony export */ pureFinalPropsSelectorFactory: function() { return /* binding */ pureFinalPropsSelectorFactory; }
676 +/* harmony export */ });
677 +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
678 +/* harmony import */ var _verifySubselectors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./verifySubselectors */ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/verifySubselectors.js");
679 +
680 +const _excluded = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
681 +
682 +function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {
683 + areStatesEqual,
684 + areOwnPropsEqual,
685 + areStatePropsEqual
686 +}) {
687 + let hasRunAtLeastOnce = false;
688 + let state;
689 + let ownProps;
690 + let stateProps;
691 + let dispatchProps;
692 + let mergedProps;
693 +
694 + function handleFirstCall(firstState, firstOwnProps) {
695 + state = firstState;
696 + ownProps = firstOwnProps;
697 + stateProps = mapStateToProps(state, ownProps);
698 + dispatchProps = mapDispatchToProps(dispatch, ownProps);
699 + mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
700 + hasRunAtLeastOnce = true;
701 + return mergedProps;
702 + }
703 +
704 + function handleNewPropsAndNewState() {
705 + stateProps = mapStateToProps(state, ownProps);
706 + if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
707 + mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
708 + return mergedProps;
709 + }
710 +
711 + function handleNewProps() {
712 + if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
713 + if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
714 + mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
715 + return mergedProps;
716 + }
717 +
718 + function handleNewState() {
719 + const nextStateProps = mapStateToProps(state, ownProps);
720 + const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
721 + stateProps = nextStateProps;
722 + if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
723 + return mergedProps;
724 + }
725 +
726 + function handleSubsequentCalls(nextState, nextOwnProps) {
727 + const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
728 + const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);
729 + state = nextState;
730 + ownProps = nextOwnProps;
731 + if (propsChanged && stateChanged) return handleNewPropsAndNewState();
732 + if (propsChanged) return handleNewProps();
733 + if (stateChanged) return handleNewState();
734 + return mergedProps;
735 + }
736 +
737 + return function pureFinalPropsSelector(nextState, nextOwnProps) {
738 + return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
739 + };
740 +}
741 +// TODO: Add more comments
742 +// The selector returned by selectorFactory will memoize its results,
743 +// allowing connect's shouldComponentUpdate to return false if final
744 +// props have not changed.
745 +function finalPropsSelectorFactory(dispatch, _ref) {
746 + let {
747 + initMapStateToProps,
748 + initMapDispatchToProps,
749 + initMergeProps
750 + } = _ref,
751 + options = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, _excluded);
752 +
753 + const mapStateToProps = initMapStateToProps(dispatch, options);
754 + const mapDispatchToProps = initMapDispatchToProps(dispatch, options);
755 + const mergeProps = initMergeProps(dispatch, options);
756 +
757 + if (true) {
758 + (0,_verifySubselectors__WEBPACK_IMPORTED_MODULE_1__["default"])(mapStateToProps, mapDispatchToProps, mergeProps);
759 + }
760 +
761 + return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
762 +}
763 +
764 +/***/ }),
765 +
766 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/verifySubselectors.js":
767 +/*!*************************************************************************************************!*\
768 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/verifySubselectors.js ***!
769 + \*************************************************************************************************/
770 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
771 +
772 +__webpack_require__.r(__webpack_exports__);
773 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
774 +/* harmony export */ "default": function() { return /* binding */ verifySubselectors; }
775 +/* harmony export */ });
776 +/* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/warning */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/warning.js");
777 +
778 +
779 +function verify(selector, methodName) {
780 + if (!selector) {
781 + throw new Error(`Unexpected value for ${methodName} in connect.`);
782 + } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
783 + if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
784 + (0,_utils_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
785 + }
786 + }
787 +}
788 +
789 +function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {
790 + verify(mapStateToProps, 'mapStateToProps');
791 + verify(mapDispatchToProps, 'mapDispatchToProps');
792 + verify(mergeProps, 'mergeProps');
793 +}
794 +
795 +/***/ }),
796 +
797 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/connect/wrapMapToProps.js":
798 +/*!*********************************************************************************************!*\
799 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/connect/wrapMapToProps.js ***!
800 + \*********************************************************************************************/
801 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
802 +
803 +__webpack_require__.r(__webpack_exports__);
804 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
805 +/* harmony export */ getDependsOnOwnProps: function() { return /* binding */ getDependsOnOwnProps; },
806 +/* harmony export */ wrapMapToPropsConstant: function() { return /* binding */ wrapMapToPropsConstant; },
807 +/* harmony export */ wrapMapToPropsFunc: function() { return /* binding */ wrapMapToPropsFunc; }
808 +/* harmony export */ });
809 +/* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/verifyPlainObject.js");
810 +
811 +function wrapMapToPropsConstant( // * Note:
812 +// It seems that the dispatch argument
813 +// could be a dispatch function in some cases (ex: whenMapDispatchToPropsIsMissing)
814 +// and a state object in some others (ex: whenMapStateToPropsIsMissing)
815 +// eslint-disable-next-line no-unused-vars
816 +getConstant) {
817 + return function initConstantSelector(dispatch) {
818 + const constant = getConstant(dispatch);
819 +
820 + function constantSelector() {
821 + return constant;
822 + }
823 +
824 + constantSelector.dependsOnOwnProps = false;
825 + return constantSelector;
826 + };
827 +} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
828 +// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
829 +// whether mapToProps needs to be invoked when props have changed.
830 +//
831 +// A length of one signals that mapToProps does not depend on props from the parent component.
832 +// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
833 +// therefore not reporting its length accurately..
834 +// TODO Can this get pulled out so that we can subscribe directly to the store if we don't need ownProps?
835 +
836 +function getDependsOnOwnProps(mapToProps) {
837 + return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
838 +} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
839 +// this function wraps mapToProps in a proxy function which does several things:
840 +//
841 +// * Detects whether the mapToProps function being called depends on props, which
842 +// is used by selectorFactory to decide if it should reinvoke on props changes.
843 +//
844 +// * On first call, handles mapToProps if returns another function, and treats that
845 +// new function as the true mapToProps for subsequent calls.
846 +//
847 +// * On first call, verifies the first result is a plain object, in order to warn
848 +// the developer that their mapToProps function is not returning a valid result.
849 +//
850 +
851 +function wrapMapToPropsFunc(mapToProps, methodName) {
852 + return function initProxySelector(dispatch, {
853 + displayName
854 + }) {
855 + const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
856 + return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, undefined);
857 + }; // allow detectFactoryAndVerify to get ownProps
858 +
859 +
860 + proxy.dependsOnOwnProps = true;
861 +
862 + proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
863 + proxy.mapToProps = mapToProps;
864 + proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
865 + let props = proxy(stateOrDispatch, ownProps);
866 +
867 + if (typeof props === 'function') {
868 + proxy.mapToProps = props;
869 + proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
870 + props = proxy(stateOrDispatch, ownProps);
871 + }
872 +
873 + if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__["default"])(props, displayName, methodName);
874 + return props;
875 + };
876 +
877 + return proxy;
878 + };
879 +}
880 +
881 +/***/ }),
882 +
883 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/exports.js":
884 +/*!******************************************************************************!*\
885 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/exports.js ***!
886 + \******************************************************************************/
887 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
888 +
889 +__webpack_require__.r(__webpack_exports__);
890 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
891 +/* harmony export */ Provider: function() { return /* reexport safe */ _components_Provider__WEBPACK_IMPORTED_MODULE_0__["default"]; },
892 +/* harmony export */ ReactReduxContext: function() { return /* reexport safe */ _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext; },
893 +/* harmony export */ connect: function() { return /* reexport safe */ _components_connect__WEBPACK_IMPORTED_MODULE_1__["default"]; },
894 +/* harmony export */ createDispatchHook: function() { return /* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__.createDispatchHook; },
895 +/* harmony export */ createSelectorHook: function() { return /* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.createSelectorHook; },
896 +/* harmony export */ createStoreHook: function() { return /* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__.createStoreHook; },
897 +/* harmony export */ shallowEqual: function() { return /* reexport safe */ _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_6__["default"]; },
898 +/* harmony export */ useDispatch: function() { return /* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__.useDispatch; },
899 +/* harmony export */ useSelector: function() { return /* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.useSelector; },
900 +/* harmony export */ useStore: function() { return /* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__.useStore; }
901 +/* harmony export */ });
902 +/* harmony import */ var _components_Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Provider */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Provider.js");
903 +/* harmony import */ var _components_connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/connect */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/connect.js");
904 +/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
905 +/* harmony import */ var _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hooks/useDispatch */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useDispatch.js");
906 +/* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useSelector */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useSelector.js");
907 +/* harmony import */ var _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useStore */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useStore.js");
908 +/* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/shallowEqual */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/shallowEqual.js");
909 +/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./types */ "./node_modules/@elementor/store/node_modules/react-redux/es/types.js");
910 +
911 +
912 +
913 +
914 +
915 +
916 +
917 +
918 +
919 +
920 +/***/ }),
921 +
922 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useDispatch.js":
923 +/*!****************************************************************************************!*\
924 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useDispatch.js ***!
925 + \****************************************************************************************/
926 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
927 +
928 +__webpack_require__.r(__webpack_exports__);
929 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
930 +/* harmony export */ createDispatchHook: function() { return /* binding */ createDispatchHook; },
931 +/* harmony export */ useDispatch: function() { return /* binding */ useDispatch; }
932 +/* harmony export */ });
933 +/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
934 +/* harmony import */ var _useStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useStore */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useStore.js");
935 +
936 +
937 +/**
938 + * Hook factory, which creates a `useDispatch` hook bound to a given context.
939 + *
940 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
941 + * @returns {Function} A `useDispatch` hook bound to the specified context.
942 + */
943 +
944 +function createDispatchHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext) {
945 + const useStore = // @ts-ignore
946 + context === _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext ? _useStore__WEBPACK_IMPORTED_MODULE_1__.useStore : (0,_useStore__WEBPACK_IMPORTED_MODULE_1__.createStoreHook)(context);
947 + return function useDispatch() {
948 + const store = useStore(); // @ts-ignore
949 +
950 + return store.dispatch;
951 + };
952 +}
953 +/**
954 + * A hook to access the redux `dispatch` function.
955 + *
956 + * @returns {any|function} redux store's `dispatch` function
957 + *
958 + * @example
959 + *
960 + * import React, { useCallback } from 'react'
961 + * import { useDispatch } from 'react-redux'
962 + *
963 + * export const CounterComponent = ({ value }) => {
964 + * const dispatch = useDispatch()
965 + * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
966 + * return (
967 + * <div>
968 + * <span>{value}</span>
969 + * <button onClick={increaseCounter}>Increase counter</button>
970 + * </div>
971 + * )
972 + * }
973 + */
974 +
975 +const useDispatch = /*#__PURE__*/createDispatchHook();
976 +
977 +/***/ }),
978 +
979 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useReduxContext.js":
980 +/*!********************************************************************************************!*\
981 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useReduxContext.js ***!
982 + \********************************************************************************************/
983 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
984 +
985 +__webpack_require__.r(__webpack_exports__);
986 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
987 +/* harmony export */ createReduxContextHook: function() { return /* binding */ createReduxContextHook; },
988 +/* harmony export */ useReduxContext: function() { return /* binding */ useReduxContext; }
989 +/* harmony export */ });
990 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
991 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
992 +/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
993 +
994 +
995 +
996 +/**
997 + * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
998 + * hook that you should usually not need to call directly.
999 + *
1000 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1001 + * @returns {Function} A `useReduxContext` hook bound to the specified context.
1002 + */
1003 +function createReduxContextHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext) {
1004 + return function useReduxContext() {
1005 + const contextValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(context);
1006 +
1007 + if ( true && !contextValue) {
1008 + throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');
1009 + }
1010 +
1011 + return contextValue;
1012 + };
1013 +}
1014 +/**
1015 + * A hook to access the value of the `ReactReduxContext`. This is a low-level
1016 + * hook that you should usually not need to call directly.
1017 + *
1018 + * @returns {any} the value of the `ReactReduxContext`
1019 + *
1020 + * @example
1021 + *
1022 + * import React from 'react'
1023 + * import { useReduxContext } from 'react-redux'
1024 + *
1025 + * export const CounterComponent = () => {
1026 + * const { store } = useReduxContext()
1027 + * return <div>{store.getState()}</div>
1028 + * }
1029 + */
1030 +
1031 +const useReduxContext = /*#__PURE__*/createReduxContextHook();
1032 +
1033 +/***/ }),
1034 +
1035 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useSelector.js":
1036 +/*!****************************************************************************************!*\
1037 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useSelector.js ***!
1038 + \****************************************************************************************/
1039 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1040 +
1041 +__webpack_require__.r(__webpack_exports__);
1042 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1043 +/* harmony export */ createSelectorHook: function() { return /* binding */ createSelectorHook; },
1044 +/* harmony export */ initializeUseSelector: function() { return /* binding */ initializeUseSelector; },
1045 +/* harmony export */ useSelector: function() { return /* binding */ useSelector; }
1046 +/* harmony export */ });
1047 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1048 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1049 +/* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useReduxContext */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useReduxContext.js");
1050 +/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
1051 +/* harmony import */ var _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useSyncExternalStore */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/useSyncExternalStore.js");
1052 +
1053 +
1054 +
1055 +
1056 +let useSyncExternalStoreWithSelector = _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_3__.notInitialized;
1057 +const initializeUseSelector = fn => {
1058 + useSyncExternalStoreWithSelector = fn;
1059 +};
1060 +
1061 +const refEquality = (a, b) => a === b;
1062 +/**
1063 + * Hook factory, which creates a `useSelector` hook bound to a given context.
1064 + *
1065 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1066 + * @returns {Function} A `useSelector` hook bound to the specified context.
1067 + */
1068 +
1069 +
1070 +function createSelectorHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext) {
1071 + const useReduxContext = context === _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_1__.useReduxContext : (0,_useReduxContext__WEBPACK_IMPORTED_MODULE_1__.createReduxContextHook)(context);
1072 + return function useSelector(selector, equalityFnOrOptions = {}) {
1073 + const {
1074 + equalityFn = refEquality,
1075 + stabilityCheck = undefined,
1076 + noopCheck = undefined
1077 + } = typeof equalityFnOrOptions === 'function' ? {
1078 + equalityFn: equalityFnOrOptions
1079 + } : equalityFnOrOptions;
1080 +
1081 + if (true) {
1082 + if (!selector) {
1083 + throw new Error(`You must pass a selector to useSelector`);
1084 + }
1085 +
1086 + if (typeof selector !== 'function') {
1087 + throw new Error(`You must pass a function as a selector to useSelector`);
1088 + }
1089 +
1090 + if (typeof equalityFn !== 'function') {
1091 + throw new Error(`You must pass a function as an equality function to useSelector`);
1092 + }
1093 + }
1094 +
1095 + const {
1096 + store,
1097 + subscription,
1098 + getServerState,
1099 + stabilityCheck: globalStabilityCheck,
1100 + noopCheck: globalNoopCheck
1101 + } = useReduxContext();
1102 + const firstRun = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);
1103 + const wrappedSelector = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)({
1104 + [selector.name](state) {
1105 + const selected = selector(state);
1106 +
1107 + if (true) {
1108 + const finalStabilityCheck = typeof stabilityCheck === 'undefined' ? globalStabilityCheck : stabilityCheck;
1109 +
1110 + if (finalStabilityCheck === 'always' || finalStabilityCheck === 'once' && firstRun.current) {
1111 + const toCompare = selector(state);
1112 +
1113 + if (!equalityFn(selected, toCompare)) {
1114 + console.warn('Selector ' + (selector.name || 'unknown') + ' returned a different result when called with the same parameters. This can lead to unnecessary rerenders.' + '\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization', {
1115 + state,
1116 + selected,
1117 + selected2: toCompare
1118 + });
1119 + }
1120 + }
1121 +
1122 + const finalNoopCheck = typeof noopCheck === 'undefined' ? globalNoopCheck : noopCheck;
1123 +
1124 + if (finalNoopCheck === 'always' || finalNoopCheck === 'once' && firstRun.current) {
1125 + // @ts-ignore
1126 + if (selected === state) {
1127 + console.warn('Selector ' + (selector.name || 'unknown') + ' returned the root state when called. This can lead to unnecessary rerenders.' + '\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.');
1128 + }
1129 + }
1130 +
1131 + if (firstRun.current) firstRun.current = false;
1132 + }
1133 +
1134 + return selected;
1135 + }
1136 +
1137 + }[selector.name], [selector, globalStabilityCheck, stabilityCheck]);
1138 + const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);
1139 + (0,react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue)(selectedState);
1140 + return selectedState;
1141 + };
1142 +}
1143 +/**
1144 + * A hook to access the redux store's state. This hook takes a selector function
1145 + * as an argument. The selector is called with the store state.
1146 + *
1147 + * This hook takes an optional equality comparison function as the second parameter
1148 + * that allows you to customize the way the selected state is compared to determine
1149 + * whether the component needs to be re-rendered.
1150 + *
1151 + * @param {Function} selector the selector function
1152 + * @param {Function=} equalityFn the function that will be used to determine equality
1153 + *
1154 + * @returns {any} the selected state
1155 + *
1156 + * @example
1157 + *
1158 + * import React from 'react'
1159 + * import { useSelector } from 'react-redux'
1160 + *
1161 + * export const CounterComponent = () => {
1162 + * const counter = useSelector(state => state.counter)
1163 + * return <div>{counter}</div>
1164 + * }
1165 + */
1166 +
1167 +const useSelector = /*#__PURE__*/createSelectorHook();
1168 +
1169 +/***/ }),
1170 +
1171 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useStore.js":
1172 +/*!*************************************************************************************!*\
1173 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useStore.js ***!
1174 + \*************************************************************************************/
1175 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1176 +
1177 +__webpack_require__.r(__webpack_exports__);
1178 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1179 +/* harmony export */ createStoreHook: function() { return /* binding */ createStoreHook; },
1180 +/* harmony export */ useStore: function() { return /* binding */ useStore; }
1181 +/* harmony export */ });
1182 +/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Context */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/Context.js");
1183 +/* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useReduxContext */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useReduxContext.js");
1184 +
1185 +
1186 +/**
1187 + * Hook factory, which creates a `useStore` hook bound to a given context.
1188 + *
1189 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1190 + * @returns {Function} A `useStore` hook bound to the specified context.
1191 + */
1192 +
1193 +function createStoreHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext) {
1194 + const useReduxContext = // @ts-ignore
1195 + context === _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_1__.useReduxContext : // @ts-ignore
1196 + (0,_useReduxContext__WEBPACK_IMPORTED_MODULE_1__.createReduxContextHook)(context);
1197 + return function useStore() {
1198 + const {
1199 + store
1200 + } = useReduxContext(); // @ts-ignore
1201 +
1202 + return store;
1203 + };
1204 +}
1205 +/**
1206 + * A hook to access the redux store.
1207 + *
1208 + * @returns {any} the redux store
1209 + *
1210 + * @example
1211 + *
1212 + * import React from 'react'
1213 + * import { useStore } from 'react-redux'
1214 + *
1215 + * export const ExampleComponent = () => {
1216 + * const store = useStore()
1217 + * return <div>{store.getState()}</div>
1218 + * }
1219 + */
1220 +
1221 +const useStore = /*#__PURE__*/createStoreHook();
1222 +
1223 +/***/ }),
1224 +
1225 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/index.js":
1226 +/*!****************************************************************************!*\
1227 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/index.js ***!
1228 + \****************************************************************************/
1229 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1230 +
1231 +__webpack_require__.r(__webpack_exports__);
1232 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1233 +/* harmony export */ Provider: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.Provider; },
1234 +/* harmony export */ ReactReduxContext: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.ReactReduxContext; },
1235 +/* harmony export */ batch: function() { return /* reexport safe */ _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates; },
1236 +/* harmony export */ connect: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.connect; },
1237 +/* harmony export */ createDispatchHook: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createDispatchHook; },
1238 +/* harmony export */ createSelectorHook: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createSelectorHook; },
1239 +/* harmony export */ createStoreHook: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createStoreHook; },
1240 +/* harmony export */ shallowEqual: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.shallowEqual; },
1241 +/* harmony export */ useDispatch: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useDispatch; },
1242 +/* harmony export */ useSelector: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useSelector; },
1243 +/* harmony export */ useStore: function() { return /* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useStore; }
1244 +/* harmony export */ });
1245 +/* harmony import */ var use_sync_external_store_shim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! use-sync-external-store/shim */ "./node_modules/use-sync-external-store/shim/index.js");
1246 +/* harmony import */ var use_sync_external_store_shim_with_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! use-sync-external-store/shim/with-selector */ "./node_modules/use-sync-external-store/shim/with-selector.js");
1247 +/* harmony import */ var _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/reactBatchedUpdates */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/reactBatchedUpdates.js");
1248 +/* harmony import */ var _utils_batch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/batch */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/batch.js");
1249 +/* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useSelector */ "./node_modules/@elementor/store/node_modules/react-redux/es/hooks/useSelector.js");
1250 +/* harmony import */ var _components_connect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/connect */ "./node_modules/@elementor/store/node_modules/react-redux/es/components/connect.js");
1251 +/* harmony import */ var _exports__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./exports */ "./node_modules/@elementor/store/node_modules/react-redux/es/exports.js");
1252 +// The primary entry point assumes we're working with standard ReactDOM/RN, but
1253 +// older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).
1254 +// Because of that, the useSyncExternalStore compat shim is needed.
1255 +
1256 +
1257 +
1258 +
1259 +
1260 +
1261 +(0,_hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.initializeUseSelector)(use_sync_external_store_shim_with_selector__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStoreWithSelector);
1262 +(0,_components_connect__WEBPACK_IMPORTED_MODULE_5__.initializeConnect)(use_sync_external_store_shim__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore); // Enable batched updates in our subscriptions for use
1263 +// with standard React renderers (ReactDOM, React Native)
1264 +
1265 +(0,_utils_batch__WEBPACK_IMPORTED_MODULE_3__.setBatch)(_utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates);
1266 +
1267 +
1268 +
1269 +/***/ }),
1270 +
1271 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/types.js":
1272 +/*!****************************************************************************!*\
1273 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/types.js ***!
1274 + \****************************************************************************/
1275 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1276 +
1277 +__webpack_require__.r(__webpack_exports__);
1278 +
1279 +
1280 +/***/ }),
1281 +
1282 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/Subscription.js":
1283 +/*!*****************************************************************************************!*\
1284 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/Subscription.js ***!
1285 + \*****************************************************************************************/
1286 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1287 +
1288 +__webpack_require__.r(__webpack_exports__);
1289 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1290 +/* harmony export */ createSubscription: function() { return /* binding */ createSubscription; }
1291 +/* harmony export */ });
1292 +/* harmony import */ var _batch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./batch */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/batch.js");
1293 + // encapsulates the subscription logic for connecting a component to the redux store, as
1294 +// well as nesting subscriptions of descendant components, so that we can ensure the
1295 +// ancestor components re-render before descendants
1296 +
1297 +function createListenerCollection() {
1298 + const batch = (0,_batch__WEBPACK_IMPORTED_MODULE_0__.getBatch)();
1299 + let first = null;
1300 + let last = null;
1301 + return {
1302 + clear() {
1303 + first = null;
1304 + last = null;
1305 + },
1306 +
1307 + notify() {
1308 + batch(() => {
1309 + let listener = first;
1310 +
1311 + while (listener) {
1312 + listener.callback();
1313 + listener = listener.next;
1314 + }
1315 + });
1316 + },
1317 +
1318 + get() {
1319 + let listeners = [];
1320 + let listener = first;
1321 +
1322 + while (listener) {
1323 + listeners.push(listener);
1324 + listener = listener.next;
1325 + }
1326 +
1327 + return listeners;
1328 + },
1329 +
1330 + subscribe(callback) {
1331 + let isSubscribed = true;
1332 + let listener = last = {
1333 + callback,
1334 + next: null,
1335 + prev: last
1336 + };
1337 +
1338 + if (listener.prev) {
1339 + listener.prev.next = listener;
1340 + } else {
1341 + first = listener;
1342 + }
1343 +
1344 + return function unsubscribe() {
1345 + if (!isSubscribed || first === null) return;
1346 + isSubscribed = false;
1347 +
1348 + if (listener.next) {
1349 + listener.next.prev = listener.prev;
1350 + } else {
1351 + last = listener.prev;
1352 + }
1353 +
1354 + if (listener.prev) {
1355 + listener.prev.next = listener.next;
1356 + } else {
1357 + first = listener.next;
1358 + }
1359 + };
1360 + }
1361 +
1362 + };
1363 +}
1364 +
1365 +const nullListeners = {
1366 + notify() {},
1367 +
1368 + get: () => []
1369 +};
1370 +function createSubscription(store, parentSub) {
1371 + let unsubscribe;
1372 + let listeners = nullListeners;
1373 +
1374 + function addNestedSub(listener) {
1375 + trySubscribe();
1376 + return listeners.subscribe(listener);
1377 + }
1378 +
1379 + function notifyNestedSubs() {
1380 + listeners.notify();
1381 + }
1382 +
1383 + function handleChangeWrapper() {
1384 + if (subscription.onStateChange) {
1385 + subscription.onStateChange();
1386 + }
1387 + }
1388 +
1389 + function isSubscribed() {
1390 + return Boolean(unsubscribe);
1391 + }
1392 +
1393 + function trySubscribe() {
1394 + if (!unsubscribe) {
1395 + unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
1396 + listeners = createListenerCollection();
1397 + }
1398 + }
1399 +
1400 + function tryUnsubscribe() {
1401 + if (unsubscribe) {
1402 + unsubscribe();
1403 + unsubscribe = undefined;
1404 + listeners.clear();
1405 + listeners = nullListeners;
1406 + }
1407 + }
1408 +
1409 + const subscription = {
1410 + addNestedSub,
1411 + notifyNestedSubs,
1412 + handleChangeWrapper,
1413 + isSubscribed,
1414 + trySubscribe,
1415 + tryUnsubscribe,
1416 + getListeners: () => listeners
1417 + };
1418 + return subscription;
1419 +}
1420 +
1421 +/***/ }),
1422 +
1423 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/batch.js":
1424 +/*!**********************************************************************************!*\
1425 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/batch.js ***!
1426 + \**********************************************************************************/
1427 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1428 +
1429 +__webpack_require__.r(__webpack_exports__);
1430 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1431 +/* harmony export */ getBatch: function() { return /* binding */ getBatch; },
1432 +/* harmony export */ setBatch: function() { return /* binding */ setBatch; }
1433 +/* harmony export */ });
1434 +// Default to a dummy "batch" implementation that just runs the callback
1435 +function defaultNoopBatch(callback) {
1436 + callback();
1437 +}
1438 +
1439 +let batch = defaultNoopBatch; // Allow injecting another batching function later
1440 +
1441 +const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip dealing with ESM bindings
1442 +
1443 +const getBatch = () => batch;
1444 +
1445 +/***/ }),
1446 +
1447 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/bindActionCreators.js":
1448 +/*!***********************************************************************************************!*\
1449 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/bindActionCreators.js ***!
1450 + \***********************************************************************************************/
1451 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1452 +
1453 +__webpack_require__.r(__webpack_exports__);
1454 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1455 +/* harmony export */ "default": function() { return /* binding */ bindActionCreators; }
1456 +/* harmony export */ });
1457 +function bindActionCreators(actionCreators, dispatch) {
1458 + const boundActionCreators = {};
1459 +
1460 + for (const key in actionCreators) {
1461 + const actionCreator = actionCreators[key];
1462 +
1463 + if (typeof actionCreator === 'function') {
1464 + boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));
1465 + }
1466 + }
1467 +
1468 + return boundActionCreators;
1469 +}
1470 +
1471 +/***/ }),
1472 +
1473 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/isPlainObject.js":
1474 +/*!******************************************************************************************!*\
1475 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/isPlainObject.js ***!
1476 + \******************************************************************************************/
1477 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1478 +
1479 +__webpack_require__.r(__webpack_exports__);
1480 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1481 +/* harmony export */ "default": function() { return /* binding */ isPlainObject; }
1482 +/* harmony export */ });
1483 +/**
1484 + * @param {any} obj The object to inspect.
1485 + * @returns {boolean} True if the argument appears to be a plain object.
1486 + */
1487 +function isPlainObject(obj) {
1488 + if (typeof obj !== 'object' || obj === null) return false;
1489 + let proto = Object.getPrototypeOf(obj);
1490 + if (proto === null) return true;
1491 + let baseProto = proto;
1492 +
1493 + while (Object.getPrototypeOf(baseProto) !== null) {
1494 + baseProto = Object.getPrototypeOf(baseProto);
1495 + }
1496 +
1497 + return proto === baseProto;
1498 +}
1499 +
1500 +/***/ }),
1501 +
1502 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/reactBatchedUpdates.js":
1503 +/*!************************************************************************************************!*\
1504 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/reactBatchedUpdates.js ***!
1505 + \************************************************************************************************/
1506 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1507 +
1508 +__webpack_require__.r(__webpack_exports__);
1509 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1510 +/* harmony export */ unstable_batchedUpdates: function() { return /* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates; }
1511 +/* harmony export */ });
1512 +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
1513 +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
1514 +
1515 +
1516 +/***/ }),
1517 +
1518 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/shallowEqual.js":
1519 +/*!*****************************************************************************************!*\
1520 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/shallowEqual.js ***!
1521 + \*****************************************************************************************/
1522 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1523 +
1524 +__webpack_require__.r(__webpack_exports__);
1525 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1526 +/* harmony export */ "default": function() { return /* binding */ shallowEqual; }
1527 +/* harmony export */ });
1528 +function is(x, y) {
1529 + if (x === y) {
1530 + return x !== 0 || y !== 0 || 1 / x === 1 / y;
1531 + } else {
1532 + return x !== x && y !== y;
1533 + }
1534 +}
1535 +
1536 +function shallowEqual(objA, objB) {
1537 + if (is(objA, objB)) return true;
1538 +
1539 + if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
1540 + return false;
1541 + }
1542 +
1543 + const keysA = Object.keys(objA);
1544 + const keysB = Object.keys(objB);
1545 + if (keysA.length !== keysB.length) return false;
1546 +
1547 + for (let i = 0; i < keysA.length; i++) {
1548 + if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
1549 + return false;
1550 + }
1551 + }
1552 +
1553 + return true;
1554 +}
1555 +
1556 +/***/ }),
1557 +
1558 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js":
1559 +/*!******************************************************************************************************!*\
1560 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js ***!
1561 + \******************************************************************************************************/
1562 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1563 +
1564 +__webpack_require__.r(__webpack_exports__);
1565 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1566 +/* harmony export */ canUseDOM: function() { return /* binding */ canUseDOM; },
1567 +/* harmony export */ useIsomorphicLayoutEffect: function() { return /* binding */ useIsomorphicLayoutEffect; }
1568 +/* harmony export */ });
1569 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1570 +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1571 + // React currently throws a warning when using useLayoutEffect on the server.
1572 +// To get around it, we can conditionally useEffect on the server (no-op) and
1573 +// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
1574 +// subscription callback always has the selector from the latest render commit
1575 +// available, otherwise a store update may happen between render and the effect,
1576 +// which may cause missed updates; we also must ensure the store subscription
1577 +// is created synchronously, otherwise a store update may occur before the
1578 +// subscription is created and an inconsistent state may be observed
1579 +// Matches logic in React's `shared/ExecutionEnvironment` file
1580 +
1581 +const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
1582 +const useIsomorphicLayoutEffect = canUseDOM ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
1583 +
1584 +/***/ }),
1585 +
1586 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/useSyncExternalStore.js":
1587 +/*!*************************************************************************************************!*\
1588 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/useSyncExternalStore.js ***!
1589 + \*************************************************************************************************/
1590 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1591 +
1592 +__webpack_require__.r(__webpack_exports__);
1593 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1594 +/* harmony export */ notInitialized: function() { return /* binding */ notInitialized; }
1595 +/* harmony export */ });
1596 +const notInitialized = () => {
1597 + throw new Error('uSES not initialized!');
1598 +};
1599 +
1600 +/***/ }),
1601 +
1602 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/verifyPlainObject.js":
1603 +/*!**********************************************************************************************!*\
1604 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/verifyPlainObject.js ***!
1605 + \**********************************************************************************************/
1606 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1607 +
1608 +__webpack_require__.r(__webpack_exports__);
1609 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1610 +/* harmony export */ "default": function() { return /* binding */ verifyPlainObject; }
1611 +/* harmony export */ });
1612 +/* harmony import */ var _isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isPlainObject */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/isPlainObject.js");
1613 +/* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./warning */ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/warning.js");
1614 +
1615 +
1616 +function verifyPlainObject(value, displayName, methodName) {
1617 + if (!(0,_isPlainObject__WEBPACK_IMPORTED_MODULE_0__["default"])(value)) {
1618 + (0,_warning__WEBPACK_IMPORTED_MODULE_1__["default"])(`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`);
1619 + }
1620 +}
1621 +
1622 +/***/ }),
1623 +
1624 +/***/ "./node_modules/@elementor/store/node_modules/react-redux/es/utils/warning.js":
1625 +/*!************************************************************************************!*\
1626 + !*** ./node_modules/@elementor/store/node_modules/react-redux/es/utils/warning.js ***!
1627 + \************************************************************************************/
1628 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1629 +
1630 +__webpack_require__.r(__webpack_exports__);
1631 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1632 +/* harmony export */ "default": function() { return /* binding */ warning; }
1633 +/* harmony export */ });
1634 +/**
1635 + * Prints a warning in the console if it exists.
1636 + *
1637 + * @param {String} message The warning message.
1638 + * @returns {void}
1639 + */
1640 +function warning(message) {
1641 + /* eslint-disable no-console */
1642 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
1643 + console.error(message);
1644 + }
1645 + /* eslint-enable no-console */
1646 +
1647 +
1648 + try {
1649 + // This error was thrown as a convenience so that if you enable
1650 + // "break on all exceptions" in your console,
1651 + // it would pause the execution at this line.
1652 + throw new Error(message);
1653 + /* eslint-disable no-empty */
1654 + } catch (e) {}
1655 + /* eslint-enable no-empty */
1656 +
1657 +}
1658 +
1659 +/***/ }),
1660 +
1661 +/***/ "./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
1662 +/*!*****************************************************************!*\
1663 + !*** ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
1664 + \*****************************************************************/
1665 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1666 +
1667 +__webpack_require__.r(__webpack_exports__);
1668 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
1669 +/* harmony export */ EnhancerArray: function() { return /* binding */ EnhancerArray; },
1670 +/* harmony export */ MiddlewareArray: function() { return /* binding */ MiddlewareArray; },
1671 +/* harmony export */ SHOULD_AUTOBATCH: function() { return /* binding */ SHOULD_AUTOBATCH; },
1672 +/* harmony export */ TaskAbortError: function() { return /* binding */ TaskAbortError; },
1673 +/* harmony export */ __DO_NOT_USE__ActionTypes: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes; },
1674 +/* harmony export */ addListener: function() { return /* binding */ addListener; },
1675 +/* harmony export */ applyMiddleware: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware; },
1676 +/* harmony export */ autoBatchEnhancer: function() { return /* binding */ autoBatchEnhancer; },
1677 +/* harmony export */ bindActionCreators: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators; },
1678 +/* harmony export */ clearAllListeners: function() { return /* binding */ clearAllListeners; },
1679 +/* harmony export */ combineReducers: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers; },
1680 +/* harmony export */ compose: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose; },
1681 +/* harmony export */ configureStore: function() { return /* binding */ configureStore; },
1682 +/* harmony export */ createAction: function() { return /* binding */ createAction; },
1683 +/* harmony export */ createAsyncThunk: function() { return /* binding */ createAsyncThunk; },
1684 +/* harmony export */ createDraftSafeSelector: function() { return /* binding */ createDraftSafeSelector; },
1685 +/* harmony export */ createEntityAdapter: function() { return /* binding */ createEntityAdapter; },
1686 +/* harmony export */ createImmutableStateInvariantMiddleware: function() { return /* binding */ createImmutableStateInvariantMiddleware; },
1687 +/* harmony export */ createListenerMiddleware: function() { return /* binding */ createListenerMiddleware; },
1688 +/* harmony export */ createNextState: function() { return /* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]; },
1689 +/* harmony export */ createReducer: function() { return /* binding */ createReducer; },
1690 +/* harmony export */ createSelector: function() { return /* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector; },
1691 +/* harmony export */ createSerializableStateInvariantMiddleware: function() { return /* binding */ createSerializableStateInvariantMiddleware; },
1692 +/* harmony export */ createSlice: function() { return /* binding */ createSlice; },
1693 +/* harmony export */ createStore: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore; },
1694 +/* harmony export */ current: function() { return /* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current; },
1695 +/* harmony export */ findNonSerializableValue: function() { return /* binding */ findNonSerializableValue; },
1696 +/* harmony export */ freeze: function() { return /* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze; },
1697 +/* harmony export */ getDefaultMiddleware: function() { return /* binding */ getDefaultMiddleware; },
1698 +/* harmony export */ getType: function() { return /* binding */ getType; },
1699 +/* harmony export */ isAction: function() { return /* binding */ isAction; },
1700 +/* harmony export */ isAllOf: function() { return /* binding */ isAllOf; },
1701 +/* harmony export */ isAnyOf: function() { return /* binding */ isAnyOf; },
1702 +/* harmony export */ isAsyncThunkAction: function() { return /* binding */ isAsyncThunkAction; },
1703 +/* harmony export */ isDraft: function() { return /* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft; },
1704 +/* harmony export */ isFluxStandardAction: function() { return /* binding */ isFSA; },
1705 +/* harmony export */ isFulfilled: function() { return /* binding */ isFulfilled; },
1706 +/* harmony export */ isImmutableDefault: function() { return /* binding */ isImmutableDefault; },
1707 +/* harmony export */ isPending: function() { return /* binding */ isPending; },
1708 +/* harmony export */ isPlain: function() { return /* binding */ isPlain; },
1709 +/* harmony export */ isPlainObject: function() { return /* binding */ isPlainObject; },
1710 +/* harmony export */ isRejected: function() { return /* binding */ isRejected; },
1711 +/* harmony export */ isRejectedWithValue: function() { return /* binding */ isRejectedWithValue; },
1712 +/* harmony export */ legacy_createStore: function() { return /* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore; },
1713 +/* harmony export */ miniSerializeError: function() { return /* binding */ miniSerializeError; },
1714 +/* harmony export */ nanoid: function() { return /* binding */ nanoid; },
1715 +/* harmony export */ original: function() { return /* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original; },
1716 +/* harmony export */ prepareAutoBatched: function() { return /* binding */ prepareAutoBatched; },
1717 +/* harmony export */ removeListener: function() { return /* binding */ removeListener; },
1718 +/* harmony export */ unwrapResult: function() { return /* binding */ unwrapResult; }
1719 +/* harmony export */ });
1720 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "./node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.esm.mjs");
1721 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js");
1722 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "./node_modules/reselect/es/index.js");
1723 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "./node_modules/redux-thunk/es/index.js");
1724 +var __extends = (undefined && undefined.__extends) || (function () {
1725 + var extendStatics = function (d, b) {
1726 + extendStatics = Object.setPrototypeOf ||
1727 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1728 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1729 + return extendStatics(d, b);
1730 + };
1731 + return function (d, b) {
1732 + if (typeof b !== "function" && b !== null)
1733 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1734 + extendStatics(d, b);
1735 + function __() { this.constructor = d; }
1736 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1737 + };
1738 +})();
1739 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
1740 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1741 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1742 + function verb(n) { return function (v) { return step([n, v]); }; }
1743 + function step(op) {
1744 + if (f) throw new TypeError("Generator is already executing.");
1745 + while (_) try {
1746 + 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;
1747 + if (y = 0, t) op = [op[0] & 2, t.value];
1748 + switch (op[0]) {
1749 + case 0: case 1: t = op; break;
1750 + case 4: _.label++; return { value: op[1], done: false };
1751 + case 5: _.label++; y = op[1]; op = [0]; continue;
1752 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
1753 + default:
1754 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1755 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1756 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1757 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1758 + if (t[2]) _.ops.pop();
1759 + _.trys.pop(); continue;
1760 + }
1761 + op = body.call(thisArg, _);
1762 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1763 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1764 + }
1765 +};
1766 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
1767 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
1768 + to[j] = from[i];
1769 + return to;
1770 +};
1771 +var __defProp = Object.defineProperty;
1772 +var __defProps = Object.defineProperties;
1773 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1774 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1775 +var __hasOwnProp = Object.prototype.hasOwnProperty;
1776 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
1777 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
1778 +var __spreadValues = function (a, b) {
1779 + for (var prop in b || (b = {}))
1780 + if (__hasOwnProp.call(b, prop))
1781 + __defNormalProp(a, prop, b[prop]);
1782 + if (__getOwnPropSymbols)
1783 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
1784 + var prop = _c[_i];
1785 + if (__propIsEnum.call(b, prop))
1786 + __defNormalProp(a, prop, b[prop]);
1787 + }
1788 + return a;
1789 +};
1790 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
1791 +var __async = function (__this, __arguments, generator) {
1792 + return new Promise(function (resolve, reject) {
1793 + var fulfilled = function (value) {
1794 + try {
1795 + step(generator.next(value));
1796 + }
1797 + catch (e) {
1798 + reject(e);
1799 + }
1800 + };
1801 + var rejected = function (value) {
1802 + try {
1803 + step(generator.throw(value));
1804 + }
1805 + catch (e) {
1806 + reject(e);
1807 + }
1808 + };
1809 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
1810 + step((generator = generator.apply(__this, __arguments)).next());
1811 + });
1812 +};
1813 +// src/index.ts
1814 +
1815 +
1816 +
1817 +
1818 +// src/createDraftSafeSelector.ts
1819 +
1820 +
1821 +var createDraftSafeSelector = function () {
1822 + var args = [];
1823 + for (var _i = 0; _i < arguments.length; _i++) {
1824 + args[_i] = arguments[_i];
1825 + }
1826 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
1827 + var wrappedSelector = function (value) {
1828 + var rest = [];
1829 + for (var _i = 1; _i < arguments.length; _i++) {
1830 + rest[_i - 1] = arguments[_i];
1831 + }
1832 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
1833 + };
1834 + return wrappedSelector;
1835 +};
1836 +// src/configureStore.ts
1837 +
1838 +// src/devtoolsExtension.ts
1839 +
1840 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
1841 + if (arguments.length === 0)
1842 + return void 0;
1843 + if (typeof arguments[0] === "object")
1844 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
1845 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
1846 +};
1847 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
1848 + return function (noop2) {
1849 + return noop2;
1850 + };
1851 +};
1852 +// src/isPlainObject.ts
1853 +function isPlainObject(value) {
1854 + if (typeof value !== "object" || value === null)
1855 + return false;
1856 + var proto = Object.getPrototypeOf(value);
1857 + if (proto === null)
1858 + return true;
1859 + var baseProto = proto;
1860 + while (Object.getPrototypeOf(baseProto) !== null) {
1861 + baseProto = Object.getPrototypeOf(baseProto);
1862 + }
1863 + return proto === baseProto;
1864 +}
1865 +// src/getDefaultMiddleware.ts
1866 +
1867 +// src/utils.ts
1868 +
1869 +function getTimeMeasureUtils(maxDelay, fnName) {
1870 + var elapsed = 0;
1871 + return {
1872 + measureTime: function (fn) {
1873 + var started = Date.now();
1874 + try {
1875 + return fn();
1876 + }
1877 + finally {
1878 + var finished = Date.now();
1879 + elapsed += finished - started;
1880 + }
1881 + },
1882 + warnIfExceeded: function () {
1883 + if (elapsed > maxDelay) {
1884 + 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.");
1885 + }
1886 + }
1887 + };
1888 +}
1889 +var MiddlewareArray = /** @class */ (function (_super) {
1890 + __extends(MiddlewareArray, _super);
1891 + function MiddlewareArray() {
1892 + var args = [];
1893 + for (var _i = 0; _i < arguments.length; _i++) {
1894 + args[_i] = arguments[_i];
1895 + }
1896 + var _this = _super.apply(this, args) || this;
1897 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
1898 + return _this;
1899 + }
1900 + Object.defineProperty(MiddlewareArray, Symbol.species, {
1901 + get: function () {
1902 + return MiddlewareArray;
1903 + },
1904 + enumerable: false,
1905 + configurable: true
1906 + });
1907 + MiddlewareArray.prototype.concat = function () {
1908 + var arr = [];
1909 + for (var _i = 0; _i < arguments.length; _i++) {
1910 + arr[_i] = arguments[_i];
1911 + }
1912 + return _super.prototype.concat.apply(this, arr);
1913 + };
1914 + MiddlewareArray.prototype.prepend = function () {
1915 + var arr = [];
1916 + for (var _i = 0; _i < arguments.length; _i++) {
1917 + arr[_i] = arguments[_i];
1918 + }
1919 + if (arr.length === 1 && Array.isArray(arr[0])) {
1920 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
1921 + }
1922 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
1923 + };
1924 + return MiddlewareArray;
1925 +}(Array));
1926 +var EnhancerArray = /** @class */ (function (_super) {
1927 + __extends(EnhancerArray, _super);
1928 + function EnhancerArray() {
1929 + var args = [];
1930 + for (var _i = 0; _i < arguments.length; _i++) {
1931 + args[_i] = arguments[_i];
1932 + }
1933 + var _this = _super.apply(this, args) || this;
1934 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
1935 + return _this;
1936 + }
1937 + Object.defineProperty(EnhancerArray, Symbol.species, {
1938 + get: function () {
1939 + return EnhancerArray;
1940 + },
1941 + enumerable: false,
1942 + configurable: true
1943 + });
1944 + EnhancerArray.prototype.concat = function () {
1945 + var arr = [];
1946 + for (var _i = 0; _i < arguments.length; _i++) {
1947 + arr[_i] = arguments[_i];
1948 + }
1949 + return _super.prototype.concat.apply(this, arr);
1950 + };
1951 + EnhancerArray.prototype.prepend = function () {
1952 + var arr = [];
1953 + for (var _i = 0; _i < arguments.length; _i++) {
1954 + arr[_i] = arguments[_i];
1955 + }
1956 + if (arr.length === 1 && Array.isArray(arr[0])) {
1957 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
1958 + }
1959 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
1960 + };
1961 + return EnhancerArray;
1962 +}(Array));
1963 +function freezeDraftable(val) {
1964 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
1965 + }) : val;
1966 +}
1967 +// src/immutableStateInvariantMiddleware.ts
1968 +var isProduction = "development" === "production";
1969 +var prefix = "Invariant failed";
1970 +function invariant(condition, message) {
1971 + if (condition) {
1972 + return;
1973 + }
1974 + if (isProduction) {
1975 + throw new Error(prefix);
1976 + }
1977 + throw new Error(prefix + ": " + (message || ""));
1978 +}
1979 +function stringify(obj, serializer, indent, decycler) {
1980 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
1981 +}
1982 +function getSerialize(serializer, decycler) {
1983 + var stack = [], keys = [];
1984 + if (!decycler)
1985 + decycler = function (_, value) {
1986 + if (stack[0] === value)
1987 + return "[Circular ~]";
1988 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
1989 + };
1990 + return function (key, value) {
1991 + if (stack.length > 0) {
1992 + var thisPos = stack.indexOf(this);
1993 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
1994 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
1995 + if (~stack.indexOf(value))
1996 + value = decycler.call(this, key, value);
1997 + }
1998 + else
1999 + stack.push(value);
2000 + return serializer == null ? value : serializer.call(this, key, value);
2001 + };
2002 +}
2003 +function isImmutableDefault(value) {
2004 + return typeof value !== "object" || value == null || Object.isFrozen(value);
2005 +}
2006 +function trackForMutations(isImmutable, ignorePaths, obj) {
2007 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
2008 + return {
2009 + detectMutations: function () {
2010 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
2011 + }
2012 + };
2013 +}
2014 +function trackProperties(isImmutable, ignorePaths, obj, path) {
2015 + if (ignorePaths === void 0) { ignorePaths = []; }
2016 + if (path === void 0) { path = ""; }
2017 + var tracked = { value: obj };
2018 + if (!isImmutable(obj)) {
2019 + tracked.children = {};
2020 + for (var key in obj) {
2021 + var childPath = path ? path + "." + key : key;
2022 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
2023 + continue;
2024 + }
2025 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
2026 + }
2027 + }
2028 + return tracked;
2029 +}
2030 +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
2031 + if (ignoredPaths === void 0) { ignoredPaths = []; }
2032 + if (sameParentRef === void 0) { sameParentRef = false; }
2033 + if (path === void 0) { path = ""; }
2034 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
2035 + var sameRef = prevObj === obj;
2036 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
2037 + return { wasMutated: true, path: path };
2038 + }
2039 + if (isImmutable(prevObj) || isImmutable(obj)) {
2040 + return { wasMutated: false };
2041 + }
2042 + var keysToDetect = {};
2043 + for (var key in trackedProperty.children) {
2044 + keysToDetect[key] = true;
2045 + }
2046 + for (var key in obj) {
2047 + keysToDetect[key] = true;
2048 + }
2049 + var hasIgnoredPaths = ignoredPaths.length > 0;
2050 + var _loop_1 = function (key) {
2051 + var nestedPath = path ? path + "." + key : key;
2052 + if (hasIgnoredPaths) {
2053 + var hasMatches = ignoredPaths.some(function (ignored) {
2054 + if (ignored instanceof RegExp) {
2055 + return ignored.test(nestedPath);
2056 + }
2057 + return nestedPath === ignored;
2058 + });
2059 + if (hasMatches) {
2060 + return "continue";
2061 + }
2062 + }
2063 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
2064 + if (result.wasMutated) {
2065 + return { value: result };
2066 + }
2067 + };
2068 + for (var key in keysToDetect) {
2069 + var state_1 = _loop_1(key);
2070 + if (typeof state_1 === "object")
2071 + return state_1.value;
2072 + }
2073 + return { wasMutated: false };
2074 +}
2075 +function createImmutableStateInvariantMiddleware(options) {
2076 + if (options === void 0) { options = {}; }
2077 + if (false) {}
2078 + 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;
2079 + ignoredPaths = ignoredPaths || ignore;
2080 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
2081 + return function (_c) {
2082 + var getState = _c.getState;
2083 + var state = getState();
2084 + var tracker = track(state);
2085 + var result;
2086 + return function (next) { return function (action) {
2087 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
2088 + measureUtils.measureTime(function () {
2089 + state = getState();
2090 + result = tracker.detectMutations();
2091 + tracker = track(state);
2092 + 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)");
2093 + });
2094 + var dispatchedAction = next(action);
2095 + measureUtils.measureTime(function () {
2096 + state = getState();
2097 + result = tracker.detectMutations();
2098 + tracker = track(state);
2099 + 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)");
2100 + });
2101 + measureUtils.warnIfExceeded();
2102 + return dispatchedAction;
2103 + }; };
2104 + };
2105 +}
2106 +// src/serializableStateInvariantMiddleware.ts
2107 +function isPlain(val) {
2108 + var type = typeof val;
2109 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
2110 +}
2111 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
2112 + if (path === void 0) { path = ""; }
2113 + if (isSerializable === void 0) { isSerializable = isPlain; }
2114 + if (ignoredPaths === void 0) { ignoredPaths = []; }
2115 + var foundNestedSerializable;
2116 + if (!isSerializable(value)) {
2117 + return {
2118 + keyPath: path || "<root>",
2119 + value: value
2120 + };
2121 + }
2122 + if (typeof value !== "object" || value === null) {
2123 + return false;
2124 + }
2125 + if (cache == null ? void 0 : cache.has(value))
2126 + return false;
2127 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
2128 + var hasIgnoredPaths = ignoredPaths.length > 0;
2129 + var _loop_2 = function (key, nestedValue) {
2130 + var nestedPath = path ? path + "." + key : key;
2131 + if (hasIgnoredPaths) {
2132 + var hasMatches = ignoredPaths.some(function (ignored) {
2133 + if (ignored instanceof RegExp) {
2134 + return ignored.test(nestedPath);
2135 + }
2136 + return nestedPath === ignored;
2137 + });
2138 + if (hasMatches) {
2139 + return "continue";
2140 + }
2141 + }
2142 + if (!isSerializable(nestedValue)) {
2143 + return { value: {
2144 + keyPath: nestedPath,
2145 + value: nestedValue
2146 + } };
2147 + }
2148 + if (typeof nestedValue === "object") {
2149 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
2150 + if (foundNestedSerializable) {
2151 + return { value: foundNestedSerializable };
2152 + }
2153 + }
2154 + };
2155 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
2156 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
2157 + var state_2 = _loop_2(key, nestedValue);
2158 + if (typeof state_2 === "object")
2159 + return state_2.value;
2160 + }
2161 + if (cache && isNestedFrozen(value))
2162 + cache.add(value);
2163 + return false;
2164 +}
2165 +function isNestedFrozen(value) {
2166 + if (!Object.isFrozen(value))
2167 + return false;
2168 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
2169 + var nestedValue = _c[_i];
2170 + if (typeof nestedValue !== "object" || nestedValue === null)
2171 + continue;
2172 + if (!isNestedFrozen(nestedValue))
2173 + return false;
2174 + }
2175 + return true;
2176 +}
2177 +function createSerializableStateInvariantMiddleware(options) {
2178 + if (options === void 0) { options = {}; }
2179 + if (false) {}
2180 + 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;
2181 + var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
2182 + return function (storeAPI) { return function (next) { return function (action) {
2183 + var result = next(action);
2184 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
2185 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
2186 + measureUtils.measureTime(function () {
2187 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
2188 + if (foundActionNonSerializableValue) {
2189 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
2190 + 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)");
2191 + }
2192 + });
2193 + }
2194 + if (!ignoreState) {
2195 + measureUtils.measureTime(function () {
2196 + var state = storeAPI.getState();
2197 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
2198 + if (foundStateNonSerializableValue) {
2199 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
2200 + 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)");
2201 + }
2202 + });
2203 + measureUtils.warnIfExceeded();
2204 + }
2205 + return result;
2206 + }; }; };
2207 +}
2208 +// src/getDefaultMiddleware.ts
2209 +function isBoolean(x) {
2210 + return typeof x === "boolean";
2211 +}
2212 +function curryGetDefaultMiddleware() {
2213 + return function curriedGetDefaultMiddleware(options) {
2214 + return getDefaultMiddleware(options);
2215 + };
2216 +}
2217 +function getDefaultMiddleware(options) {
2218 + if (options === void 0) { options = {}; }
2219 + 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;
2220 + var middlewareArray = new MiddlewareArray();
2221 + if (thunk) {
2222 + if (isBoolean(thunk)) {
2223 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
2224 + }
2225 + else {
2226 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
2227 + }
2228 + }
2229 + if (true) {
2230 + if (immutableCheck) {
2231 + var immutableOptions = {};
2232 + if (!isBoolean(immutableCheck)) {
2233 + immutableOptions = immutableCheck;
2234 + }
2235 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
2236 + }
2237 + if (serializableCheck) {
2238 + var serializableOptions = {};
2239 + if (!isBoolean(serializableCheck)) {
2240 + serializableOptions = serializableCheck;
2241 + }
2242 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
2243 + }
2244 + }
2245 + return middlewareArray;
2246 +}
2247 +// src/configureStore.ts
2248 +var IS_PRODUCTION = "development" === "production";
2249 +function configureStore(options) {
2250 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
2251 + 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;
2252 + var rootReducer;
2253 + if (typeof reducer === "function") {
2254 + rootReducer = reducer;
2255 + }
2256 + else if (isPlainObject(reducer)) {
2257 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
2258 + }
2259 + else {
2260 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
2261 + }
2262 + var finalMiddleware = middleware;
2263 + if (typeof finalMiddleware === "function") {
2264 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
2265 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
2266 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
2267 + }
2268 + }
2269 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
2270 + throw new Error("each middleware provided to configureStore must be a function");
2271 + }
2272 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
2273 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
2274 + if (devTools) {
2275 + finalCompose = composeWithDevTools(__spreadValues({
2276 + trace: !IS_PRODUCTION
2277 + }, typeof devTools === "object" && devTools));
2278 + }
2279 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
2280 + var storeEnhancers = defaultEnhancers;
2281 + if (Array.isArray(enhancers)) {
2282 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
2283 + }
2284 + else if (typeof enhancers === "function") {
2285 + storeEnhancers = enhancers(defaultEnhancers);
2286 + }
2287 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
2288 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
2289 +}
2290 +// src/createAction.ts
2291 +function createAction(type, prepareAction) {
2292 + function actionCreator() {
2293 + var args = [];
2294 + for (var _i = 0; _i < arguments.length; _i++) {
2295 + args[_i] = arguments[_i];
2296 + }
2297 + if (prepareAction) {
2298 + var prepared = prepareAction.apply(void 0, args);
2299 + if (!prepared) {
2300 + throw new Error("prepareAction did not return an object");
2301 + }
2302 + return __spreadValues(__spreadValues({
2303 + type: type,
2304 + payload: prepared.payload
2305 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
2306 + }
2307 + return { type: type, payload: args[0] };
2308 + }
2309 + actionCreator.toString = function () { return "" + type; };
2310 + actionCreator.type = type;
2311 + actionCreator.match = function (action) { return action.type === type; };
2312 + return actionCreator;
2313 +}
2314 +function isAction(action) {
2315 + return isPlainObject(action) && "type" in action;
2316 +}
2317 +function isFSA(action) {
2318 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
2319 +}
2320 +function isValidKey(key) {
2321 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
2322 +}
2323 +function getType(actionCreator) {
2324 + return "" + actionCreator;
2325 +}
2326 +// src/createReducer.ts
2327 +
2328 +// src/mapBuilders.ts
2329 +function executeReducerBuilderCallback(builderCallback) {
2330 + var actionsMap = {};
2331 + var actionMatchers = [];
2332 + var defaultCaseReducer;
2333 + var builder = {
2334 + addCase: function (typeOrActionCreator, reducer) {
2335 + if (true) {
2336 + if (actionMatchers.length > 0) {
2337 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
2338 + }
2339 + if (defaultCaseReducer) {
2340 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
2341 + }
2342 + }
2343 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
2344 + if (type in actionsMap) {
2345 + throw new Error("addCase cannot be called with two reducers for the same action type");
2346 + }
2347 + actionsMap[type] = reducer;
2348 + return builder;
2349 + },
2350 + addMatcher: function (matcher, reducer) {
2351 + if (true) {
2352 + if (defaultCaseReducer) {
2353 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
2354 + }
2355 + }
2356 + actionMatchers.push({ matcher: matcher, reducer: reducer });
2357 + return builder;
2358 + },
2359 + addDefaultCase: function (reducer) {
2360 + if (true) {
2361 + if (defaultCaseReducer) {
2362 + throw new Error("`builder.addDefaultCase` can only be called once");
2363 + }
2364 + }
2365 + defaultCaseReducer = reducer;
2366 + return builder;
2367 + }
2368 + };
2369 + builderCallback(builder);
2370 + return [actionsMap, actionMatchers, defaultCaseReducer];
2371 +}
2372 +// src/createReducer.ts
2373 +function isStateFunction(x) {
2374 + return typeof x === "function";
2375 +}
2376 +var hasWarnedAboutObjectNotation = false;
2377 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
2378 + if (actionMatchers === void 0) { actionMatchers = []; }
2379 + if (true) {
2380 + if (typeof mapOrBuilderCallback === "object") {
2381 + if (!hasWarnedAboutObjectNotation) {
2382 + hasWarnedAboutObjectNotation = true;
2383 + 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");
2384 + }
2385 + }
2386 + }
2387 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
2388 + var getInitialState;
2389 + if (isStateFunction(initialState)) {
2390 + getInitialState = function () { return freezeDraftable(initialState()); };
2391 + }
2392 + else {
2393 + var frozenInitialState_1 = freezeDraftable(initialState);
2394 + getInitialState = function () { return frozenInitialState_1; };
2395 + }
2396 + function reducer(state, action) {
2397 + if (state === void 0) { state = getInitialState(); }
2398 + var caseReducers = __spreadArray([
2399 + actionsMap[action.type]
2400 + ], finalActionMatchers.filter(function (_c) {
2401 + var matcher = _c.matcher;
2402 + return matcher(action);
2403 + }).map(function (_c) {
2404 + var reducer2 = _c.reducer;
2405 + return reducer2;
2406 + }));
2407 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
2408 + caseReducers = [finalDefaultCaseReducer];
2409 + }
2410 + return caseReducers.reduce(function (previousState, caseReducer) {
2411 + if (caseReducer) {
2412 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
2413 + var draft = previousState;
2414 + var result = caseReducer(draft, action);
2415 + if (result === void 0) {
2416 + return previousState;
2417 + }
2418 + return result;
2419 + }
2420 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
2421 + var result = caseReducer(previousState, action);
2422 + if (result === void 0) {
2423 + if (previousState === null) {
2424 + return previousState;
2425 + }
2426 + throw Error("A case reducer on a non-draftable value must not return undefined");
2427 + }
2428 + return result;
2429 + }
2430 + else {
2431 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
2432 + return caseReducer(draft, action);
2433 + });
2434 + }
2435 + }
2436 + return previousState;
2437 + }, state);
2438 + }
2439 + reducer.getInitialState = getInitialState;
2440 + return reducer;
2441 +}
2442 +// src/createSlice.ts
2443 +var hasWarnedAboutObjectNotation2 = false;
2444 +function getType2(slice, actionKey) {
2445 + return slice + "/" + actionKey;
2446 +}
2447 +function createSlice(options) {
2448 + var name = options.name;
2449 + if (!name) {
2450 + throw new Error("`name` is a required option for createSlice");
2451 + }
2452 + if (typeof process !== "undefined" && "development" === "development") {
2453 + if (options.initialState === void 0) {
2454 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
2455 + }
2456 + }
2457 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
2458 + var reducers = options.reducers || {};
2459 + var reducerNames = Object.keys(reducers);
2460 + var sliceCaseReducersByName = {};
2461 + var sliceCaseReducersByType = {};
2462 + var actionCreators = {};
2463 + reducerNames.forEach(function (reducerName) {
2464 + var maybeReducerWithPrepare = reducers[reducerName];
2465 + var type = getType2(name, reducerName);
2466 + var caseReducer;
2467 + var prepareCallback;
2468 + if ("reducer" in maybeReducerWithPrepare) {
2469 + caseReducer = maybeReducerWithPrepare.reducer;
2470 + prepareCallback = maybeReducerWithPrepare.prepare;
2471 + }
2472 + else {
2473 + caseReducer = maybeReducerWithPrepare;
2474 + }
2475 + sliceCaseReducersByName[reducerName] = caseReducer;
2476 + sliceCaseReducersByType[type] = caseReducer;
2477 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
2478 + });
2479 + function buildReducer() {
2480 + if (true) {
2481 + if (typeof options.extraReducers === "object") {
2482 + if (!hasWarnedAboutObjectNotation2) {
2483 + hasWarnedAboutObjectNotation2 = true;
2484 + 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");
2485 + }
2486 + }
2487 + }
2488 + 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;
2489 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
2490 + return createReducer(initialState, function (builder) {
2491 + for (var key in finalCaseReducers) {
2492 + builder.addCase(key, finalCaseReducers[key]);
2493 + }
2494 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
2495 + var m = actionMatchers_1[_i];
2496 + builder.addMatcher(m.matcher, m.reducer);
2497 + }
2498 + if (defaultCaseReducer) {
2499 + builder.addDefaultCase(defaultCaseReducer);
2500 + }
2501 + });
2502 + }
2503 + var _reducer;
2504 + return {
2505 + name: name,
2506 + reducer: function (state, action) {
2507 + if (!_reducer)
2508 + _reducer = buildReducer();
2509 + return _reducer(state, action);
2510 + },
2511 + actions: actionCreators,
2512 + caseReducers: sliceCaseReducersByName,
2513 + getInitialState: function () {
2514 + if (!_reducer)
2515 + _reducer = buildReducer();
2516 + return _reducer.getInitialState();
2517 + }
2518 + };
2519 +}
2520 +// src/entities/entity_state.ts
2521 +function getInitialEntityState() {
2522 + return {
2523 + ids: [],
2524 + entities: {}
2525 + };
2526 +}
2527 +function createInitialStateFactory() {
2528 + function getInitialState(additionalState) {
2529 + if (additionalState === void 0) { additionalState = {}; }
2530 + return Object.assign(getInitialEntityState(), additionalState);
2531 + }
2532 + return { getInitialState: getInitialState };
2533 +}
2534 +// src/entities/state_selectors.ts
2535 +function createSelectorsFactory() {
2536 + function getSelectors(selectState) {
2537 + var selectIds = function (state) { return state.ids; };
2538 + var selectEntities = function (state) { return state.entities; };
2539 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
2540 + var selectId = function (_, id) { return id; };
2541 + var selectById = function (entities, id) { return entities[id]; };
2542 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
2543 + if (!selectState) {
2544 + return {
2545 + selectIds: selectIds,
2546 + selectEntities: selectEntities,
2547 + selectAll: selectAll,
2548 + selectTotal: selectTotal,
2549 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
2550 + };
2551 + }
2552 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
2553 + return {
2554 + selectIds: createDraftSafeSelector(selectState, selectIds),
2555 + selectEntities: selectGlobalizedEntities,
2556 + selectAll: createDraftSafeSelector(selectState, selectAll),
2557 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
2558 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
2559 + };
2560 + }
2561 + return { getSelectors: getSelectors };
2562 +}
2563 +// src/entities/state_adapter.ts
2564 +
2565 +function createSingleArgumentStateOperator(mutator) {
2566 + var operator = createStateOperator(function (_, state) { return mutator(state); });
2567 + return function operation(state) {
2568 + return operator(state, void 0);
2569 + };
2570 +}
2571 +function createStateOperator(mutator) {
2572 + return function operation(state, arg) {
2573 + function isPayloadActionArgument(arg2) {
2574 + return isFSA(arg2);
2575 + }
2576 + var runMutator = function (draft) {
2577 + if (isPayloadActionArgument(arg)) {
2578 + mutator(arg.payload, draft);
2579 + }
2580 + else {
2581 + mutator(arg, draft);
2582 + }
2583 + };
2584 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
2585 + runMutator(state);
2586 + return state;
2587 + }
2588 + else {
2589 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
2590 + }
2591 + };
2592 +}
2593 +// src/entities/utils.ts
2594 +function selectIdValue(entity, selectId) {
2595 + var key = selectId(entity);
2596 + if ( true && key === void 0) {
2597 + 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());
2598 + }
2599 + return key;
2600 +}
2601 +function ensureEntitiesArray(entities) {
2602 + if (!Array.isArray(entities)) {
2603 + entities = Object.values(entities);
2604 + }
2605 + return entities;
2606 +}
2607 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
2608 + newEntities = ensureEntitiesArray(newEntities);
2609 + var added = [];
2610 + var updated = [];
2611 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
2612 + var entity = newEntities_1[_i];
2613 + var id = selectIdValue(entity, selectId);
2614 + if (id in state.entities) {
2615 + updated.push({ id: id, changes: entity });
2616 + }
2617 + else {
2618 + added.push(entity);
2619 + }
2620 + }
2621 + return [added, updated];
2622 +}
2623 +// src/entities/unsorted_state_adapter.ts
2624 +function createUnsortedStateAdapter(selectId) {
2625 + function addOneMutably(entity, state) {
2626 + var key = selectIdValue(entity, selectId);
2627 + if (key in state.entities) {
2628 + return;
2629 + }
2630 + state.ids.push(key);
2631 + state.entities[key] = entity;
2632 + }
2633 + function addManyMutably(newEntities, state) {
2634 + newEntities = ensureEntitiesArray(newEntities);
2635 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
2636 + var entity = newEntities_2[_i];
2637 + addOneMutably(entity, state);
2638 + }
2639 + }
2640 + function setOneMutably(entity, state) {
2641 + var key = selectIdValue(entity, selectId);
2642 + if (!(key in state.entities)) {
2643 + state.ids.push(key);
2644 + }
2645 + state.entities[key] = entity;
2646 + }
2647 + function setManyMutably(newEntities, state) {
2648 + newEntities = ensureEntitiesArray(newEntities);
2649 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
2650 + var entity = newEntities_3[_i];
2651 + setOneMutably(entity, state);
2652 + }
2653 + }
2654 + function setAllMutably(newEntities, state) {
2655 + newEntities = ensureEntitiesArray(newEntities);
2656 + state.ids = [];
2657 + state.entities = {};
2658 + addManyMutably(newEntities, state);
2659 + }
2660 + function removeOneMutably(key, state) {
2661 + return removeManyMutably([key], state);
2662 + }
2663 + function removeManyMutably(keys, state) {
2664 + var didMutate = false;
2665 + keys.forEach(function (key) {
2666 + if (key in state.entities) {
2667 + delete state.entities[key];
2668 + didMutate = true;
2669 + }
2670 + });
2671 + if (didMutate) {
2672 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
2673 + }
2674 + }
2675 + function removeAllMutably(state) {
2676 + Object.assign(state, {
2677 + ids: [],
2678 + entities: {}
2679 + });
2680 + }
2681 + function takeNewKey(keys, update, state) {
2682 + var original2 = state.entities[update.id];
2683 + var updated = Object.assign({}, original2, update.changes);
2684 + var newKey = selectIdValue(updated, selectId);
2685 + var hasNewKey = newKey !== update.id;
2686 + if (hasNewKey) {
2687 + keys[update.id] = newKey;
2688 + delete state.entities[update.id];
2689 + }
2690 + state.entities[newKey] = updated;
2691 + return hasNewKey;
2692 + }
2693 + function updateOneMutably(update, state) {
2694 + return updateManyMutably([update], state);
2695 + }
2696 + function updateManyMutably(updates, state) {
2697 + var newKeys = {};
2698 + var updatesPerEntity = {};
2699 + updates.forEach(function (update) {
2700 + if (update.id in state.entities) {
2701 + updatesPerEntity[update.id] = {
2702 + id: update.id,
2703 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
2704 + };
2705 + }
2706 + });
2707 + updates = Object.values(updatesPerEntity);
2708 + var didMutateEntities = updates.length > 0;
2709 + if (didMutateEntities) {
2710 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
2711 + if (didMutateIds) {
2712 + state.ids = Object.keys(state.entities);
2713 + }
2714 + }
2715 + }
2716 + function upsertOneMutably(entity, state) {
2717 + return upsertManyMutably([entity], state);
2718 + }
2719 + function upsertManyMutably(newEntities, state) {
2720 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
2721 + updateManyMutably(updated, state);
2722 + addManyMutably(added, state);
2723 + }
2724 + return {
2725 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
2726 + addOne: createStateOperator(addOneMutably),
2727 + addMany: createStateOperator(addManyMutably),
2728 + setOne: createStateOperator(setOneMutably),
2729 + setMany: createStateOperator(setManyMutably),
2730 + setAll: createStateOperator(setAllMutably),
2731 + updateOne: createStateOperator(updateOneMutably),
2732 + updateMany: createStateOperator(updateManyMutably),
2733 + upsertOne: createStateOperator(upsertOneMutably),
2734 + upsertMany: createStateOperator(upsertManyMutably),
2735 + removeOne: createStateOperator(removeOneMutably),
2736 + removeMany: createStateOperator(removeManyMutably)
2737 + };
2738 +}
2739 +// src/entities/sorted_state_adapter.ts
2740 +function createSortedStateAdapter(selectId, sort) {
2741 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
2742 + function addOneMutably(entity, state) {
2743 + return addManyMutably([entity], state);
2744 + }
2745 + function addManyMutably(newEntities, state) {
2746 + newEntities = ensureEntitiesArray(newEntities);
2747 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
2748 + if (models.length !== 0) {
2749 + merge(models, state);
2750 + }
2751 + }
2752 + function setOneMutably(entity, state) {
2753 + return setManyMutably([entity], state);
2754 + }
2755 + function setManyMutably(newEntities, state) {
2756 + newEntities = ensureEntitiesArray(newEntities);
2757 + if (newEntities.length !== 0) {
2758 + merge(newEntities, state);
2759 + }
2760 + }
2761 + function setAllMutably(newEntities, state) {
2762 + newEntities = ensureEntitiesArray(newEntities);
2763 + state.entities = {};
2764 + state.ids = [];
2765 + addManyMutably(newEntities, state);
2766 + }
2767 + function updateOneMutably(update, state) {
2768 + return updateManyMutably([update], state);
2769 + }
2770 + function updateManyMutably(updates, state) {
2771 + var appliedUpdates = false;
2772 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
2773 + var update = updates_1[_i];
2774 + var entity = state.entities[update.id];
2775 + if (!entity) {
2776 + continue;
2777 + }
2778 + appliedUpdates = true;
2779 + Object.assign(entity, update.changes);
2780 + var newId = selectId(entity);
2781 + if (update.id !== newId) {
2782 + delete state.entities[update.id];
2783 + state.entities[newId] = entity;
2784 + }
2785 + }
2786 + if (appliedUpdates) {
2787 + resortEntities(state);
2788 + }
2789 + }
2790 + function upsertOneMutably(entity, state) {
2791 + return upsertManyMutably([entity], state);
2792 + }
2793 + function upsertManyMutably(newEntities, state) {
2794 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
2795 + updateManyMutably(updated, state);
2796 + addManyMutably(added, state);
2797 + }
2798 + function areArraysEqual(a, b) {
2799 + if (a.length !== b.length) {
2800 + return false;
2801 + }
2802 + for (var i = 0; i < a.length && i < b.length; i++) {
2803 + if (a[i] === b[i]) {
2804 + continue;
2805 + }
2806 + return false;
2807 + }
2808 + return true;
2809 + }
2810 + function merge(models, state) {
2811 + models.forEach(function (model) {
2812 + state.entities[selectId(model)] = model;
2813 + });
2814 + resortEntities(state);
2815 + }
2816 + function resortEntities(state) {
2817 + var allEntities = Object.values(state.entities);
2818 + allEntities.sort(sort);
2819 + var newSortedIds = allEntities.map(selectId);
2820 + var ids = state.ids;
2821 + if (!areArraysEqual(ids, newSortedIds)) {
2822 + state.ids = newSortedIds;
2823 + }
2824 + }
2825 + return {
2826 + removeOne: removeOne,
2827 + removeMany: removeMany,
2828 + removeAll: removeAll,
2829 + addOne: createStateOperator(addOneMutably),
2830 + updateOne: createStateOperator(updateOneMutably),
2831 + upsertOne: createStateOperator(upsertOneMutably),
2832 + setOne: createStateOperator(setOneMutably),
2833 + setMany: createStateOperator(setManyMutably),
2834 + setAll: createStateOperator(setAllMutably),
2835 + addMany: createStateOperator(addManyMutably),
2836 + updateMany: createStateOperator(updateManyMutably),
2837 + upsertMany: createStateOperator(upsertManyMutably)
2838 + };
2839 +}
2840 +// src/entities/create_adapter.ts
2841 +function createEntityAdapter(options) {
2842 + if (options === void 0) { options = {}; }
2843 + var _c = __spreadValues({
2844 + sortComparer: false,
2845 + selectId: function (instance) { return instance.id; }
2846 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
2847 + var stateFactory = createInitialStateFactory();
2848 + var selectorsFactory = createSelectorsFactory();
2849 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
2850 + return __spreadValues(__spreadValues(__spreadValues({
2851 + selectId: selectId,
2852 + sortComparer: sortComparer
2853 + }, stateFactory), selectorsFactory), stateAdapter);
2854 +}
2855 +// src/nanoid.ts
2856 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
2857 +var nanoid = function (size) {
2858 + if (size === void 0) { size = 21; }
2859 + var id = "";
2860 + var i = size;
2861 + while (i--) {
2862 + id += urlAlphabet[Math.random() * 64 | 0];
2863 + }
2864 + return id;
2865 +};
2866 +// src/createAsyncThunk.ts
2867 +var commonProperties = [
2868 + "name",
2869 + "message",
2870 + "stack",
2871 + "code"
2872 +];
2873 +var RejectWithValue = /** @class */ (function () {
2874 + function RejectWithValue(payload, meta) {
2875 + this.payload = payload;
2876 + this.meta = meta;
2877 + }
2878 + return RejectWithValue;
2879 +}());
2880 +var FulfillWithMeta = /** @class */ (function () {
2881 + function FulfillWithMeta(payload, meta) {
2882 + this.payload = payload;
2883 + this.meta = meta;
2884 + }
2885 + return FulfillWithMeta;
2886 +}());
2887 +var miniSerializeError = function (value) {
2888 + if (typeof value === "object" && value !== null) {
2889 + var simpleError = {};
2890 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
2891 + var property = commonProperties_1[_i];
2892 + if (typeof value[property] === "string") {
2893 + simpleError[property] = value[property];
2894 + }
2895 + }
2896 + return simpleError;
2897 + }
2898 + return { message: String(value) };
2899 +};
2900 +var createAsyncThunk = (function () {
2901 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
2902 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
2903 + payload: payload,
2904 + meta: __spreadProps(__spreadValues({}, meta || {}), {
2905 + arg: arg,
2906 + requestId: requestId,
2907 + requestStatus: "fulfilled"
2908 + })
2909 + }); });
2910 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
2911 + payload: void 0,
2912 + meta: __spreadProps(__spreadValues({}, meta || {}), {
2913 + arg: arg,
2914 + requestId: requestId,
2915 + requestStatus: "pending"
2916 + })
2917 + }); });
2918 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
2919 + payload: payload,
2920 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
2921 + meta: __spreadProps(__spreadValues({}, meta || {}), {
2922 + arg: arg,
2923 + requestId: requestId,
2924 + rejectedWithValue: !!payload,
2925 + requestStatus: "rejected",
2926 + aborted: (error == null ? void 0 : error.name) === "AbortError",
2927 + condition: (error == null ? void 0 : error.name) === "ConditionError"
2928 + })
2929 + }); });
2930 + var displayedWarning = false;
2931 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
2932 + function class_1() {
2933 + this.signal = {
2934 + aborted: false,
2935 + addEventListener: function () {
2936 + },
2937 + dispatchEvent: function () {
2938 + return false;
2939 + },
2940 + onabort: function () {
2941 + },
2942 + removeEventListener: function () {
2943 + },
2944 + reason: void 0,
2945 + throwIfAborted: function () {
2946 + }
2947 + };
2948 + }
2949 + class_1.prototype.abort = function () {
2950 + if (true) {
2951 + if (!displayedWarning) {
2952 + displayedWarning = true;
2953 + 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'.");
2954 + }
2955 + }
2956 + };
2957 + return class_1;
2958 + }());
2959 + function actionCreator(arg) {
2960 + return function (dispatch, getState, extra) {
2961 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
2962 + var abortController = new AC();
2963 + var abortReason;
2964 + var started = false;
2965 + function abort(reason) {
2966 + abortReason = reason;
2967 + abortController.abort();
2968 + }
2969 + var promise2 = function () {
2970 + return __async(this, null, function () {
2971 + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
2972 + return __generator(this, function (_c) {
2973 + switch (_c.label) {
2974 + case 0:
2975 + _c.trys.push([0, 4, , 5]);
2976 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
2977 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
2978 + return [4 /*yield*/, conditionResult];
2979 + case 1:
2980 + conditionResult = _c.sent();
2981 + _c.label = 2;
2982 + case 2:
2983 + if (conditionResult === false || abortController.signal.aborted) {
2984 + throw {
2985 + name: "ConditionError",
2986 + message: "Aborted due to condition callback returning false."
2987 + };
2988 + }
2989 + started = true;
2990 + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
2991 + name: "AbortError",
2992 + message: abortReason || "Aborted"
2993 + }); }); });
2994 + 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 })));
2995 + return [4 /*yield*/, Promise.race([
2996 + abortedPromise,
2997 + Promise.resolve(payloadCreator(arg, {
2998 + dispatch: dispatch,
2999 + getState: getState,
3000 + extra: extra,
3001 + requestId: requestId,
3002 + signal: abortController.signal,
3003 + abort: abort,
3004 + rejectWithValue: function (value, meta) {
3005 + return new RejectWithValue(value, meta);
3006 + },
3007 + fulfillWithValue: function (value, meta) {
3008 + return new FulfillWithMeta(value, meta);
3009 + }
3010 + })).then(function (result) {
3011 + if (result instanceof RejectWithValue) {
3012 + throw result;
3013 + }
3014 + if (result instanceof FulfillWithMeta) {
3015 + return fulfilled(result.payload, requestId, arg, result.meta);
3016 + }
3017 + return fulfilled(result, requestId, arg);
3018 + })
3019 + ])];
3020 + case 3:
3021 + finalAction = _c.sent();
3022 + return [3 /*break*/, 5];
3023 + case 4:
3024 + err_1 = _c.sent();
3025 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
3026 + return [3 /*break*/, 5];
3027 + case 5:
3028 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
3029 + if (!skipDispatch) {
3030 + dispatch(finalAction);
3031 + }
3032 + return [2 /*return*/, finalAction];
3033 + }
3034 + });
3035 + });
3036 + }();
3037 + return Object.assign(promise2, {
3038 + abort: abort,
3039 + requestId: requestId,
3040 + arg: arg,
3041 + unwrap: function () {
3042 + return promise2.then(unwrapResult);
3043 + }
3044 + });
3045 + };
3046 + }
3047 + return Object.assign(actionCreator, {
3048 + pending: pending,
3049 + rejected: rejected,
3050 + fulfilled: fulfilled,
3051 + typePrefix: typePrefix
3052 + });
3053 + }
3054 + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
3055 + return createAsyncThunk2;
3056 +})();
3057 +function unwrapResult(action) {
3058 + if (action.meta && action.meta.rejectedWithValue) {
3059 + throw action.payload;
3060 + }
3061 + if (action.error) {
3062 + throw action.error;
3063 + }
3064 + return action.payload;
3065 +}
3066 +function isThenable(value) {
3067 + return value !== null && typeof value === "object" && typeof value.then === "function";
3068 +}
3069 +// src/tsHelpers.ts
3070 +var hasMatchFunction = function (v) {
3071 + return v && typeof v.match === "function";
3072 +};
3073 +// src/matchers.ts
3074 +var matches = function (matcher, action) {
3075 + if (hasMatchFunction(matcher)) {
3076 + return matcher.match(action);
3077 + }
3078 + else {
3079 + return matcher(action);
3080 + }
3081 +};
3082 +function isAnyOf() {
3083 + var matchers = [];
3084 + for (var _i = 0; _i < arguments.length; _i++) {
3085 + matchers[_i] = arguments[_i];
3086 + }
3087 + return function (action) {
3088 + return matchers.some(function (matcher) { return matches(matcher, action); });
3089 + };
3090 +}
3091 +function isAllOf() {
3092 + var matchers = [];
3093 + for (var _i = 0; _i < arguments.length; _i++) {
3094 + matchers[_i] = arguments[_i];
3095 + }
3096 + return function (action) {
3097 + return matchers.every(function (matcher) { return matches(matcher, action); });
3098 + };
3099 +}
3100 +function hasExpectedRequestMetadata(action, validStatus) {
3101 + if (!action || !action.meta)
3102 + return false;
3103 + var hasValidRequestId = typeof action.meta.requestId === "string";
3104 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
3105 + return hasValidRequestId && hasValidRequestStatus;
3106 +}
3107 +function isAsyncThunkArray(a) {
3108 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
3109 +}
3110 +function isPending() {
3111 + var asyncThunks = [];
3112 + for (var _i = 0; _i < arguments.length; _i++) {
3113 + asyncThunks[_i] = arguments[_i];
3114 + }
3115 + if (asyncThunks.length === 0) {
3116 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
3117 + }
3118 + if (!isAsyncThunkArray(asyncThunks)) {
3119 + return isPending()(asyncThunks[0]);
3120 + }
3121 + return function (action) {
3122 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
3123 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
3124 + return combinedMatcher(action);
3125 + };
3126 +}
3127 +function isRejected() {
3128 + var asyncThunks = [];
3129 + for (var _i = 0; _i < arguments.length; _i++) {
3130 + asyncThunks[_i] = arguments[_i];
3131 + }
3132 + if (asyncThunks.length === 0) {
3133 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
3134 + }
3135 + if (!isAsyncThunkArray(asyncThunks)) {
3136 + return isRejected()(asyncThunks[0]);
3137 + }
3138 + return function (action) {
3139 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
3140 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
3141 + return combinedMatcher(action);
3142 + };
3143 +}
3144 +function isRejectedWithValue() {
3145 + var asyncThunks = [];
3146 + for (var _i = 0; _i < arguments.length; _i++) {
3147 + asyncThunks[_i] = arguments[_i];
3148 + }
3149 + var hasFlag = function (action) {
3150 + return action && action.meta && action.meta.rejectedWithValue;
3151 + };
3152 + if (asyncThunks.length === 0) {
3153 + return function (action) {
3154 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
3155 + return combinedMatcher(action);
3156 + };
3157 + }
3158 + if (!isAsyncThunkArray(asyncThunks)) {
3159 + return isRejectedWithValue()(asyncThunks[0]);
3160 + }
3161 + return function (action) {
3162 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
3163 + return combinedMatcher(action);
3164 + };
3165 +}
3166 +function isFulfilled() {
3167 + var asyncThunks = [];
3168 + for (var _i = 0; _i < arguments.length; _i++) {
3169 + asyncThunks[_i] = arguments[_i];
3170 + }
3171 + if (asyncThunks.length === 0) {
3172 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
3173 + }
3174 + if (!isAsyncThunkArray(asyncThunks)) {
3175 + return isFulfilled()(asyncThunks[0]);
3176 + }
3177 + return function (action) {
3178 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
3179 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
3180 + return combinedMatcher(action);
3181 + };
3182 +}
3183 +function isAsyncThunkAction() {
3184 + var asyncThunks = [];
3185 + for (var _i = 0; _i < arguments.length; _i++) {
3186 + asyncThunks[_i] = arguments[_i];
3187 + }
3188 + if (asyncThunks.length === 0) {
3189 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
3190 + }
3191 + if (!isAsyncThunkArray(asyncThunks)) {
3192 + return isAsyncThunkAction()(asyncThunks[0]);
3193 + }
3194 + return function (action) {
3195 + var matchers = [];
3196 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
3197 + var asyncThunk = asyncThunks_1[_i];
3198 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
3199 + }
3200 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
3201 + return combinedMatcher(action);
3202 + };
3203 +}
3204 +// src/listenerMiddleware/utils.ts
3205 +var assertFunction = function (func, expected) {
3206 + if (typeof func !== "function") {
3207 + throw new TypeError(expected + " is not a function");
3208 + }
3209 +};
3210 +var noop = function () {
3211 +};
3212 +var catchRejection = function (promise2, onError) {
3213 + if (onError === void 0) { onError = noop; }
3214 + promise2.catch(onError);
3215 + return promise2;
3216 +};
3217 +var addAbortSignalListener = function (abortSignal, callback) {
3218 + abortSignal.addEventListener("abort", callback, { once: true });
3219 + return function () { return abortSignal.removeEventListener("abort", callback); };
3220 +};
3221 +var abortControllerWithReason = function (abortController, reason) {
3222 + var signal = abortController.signal;
3223 + if (signal.aborted) {
3224 + return;
3225 + }
3226 + if (!("reason" in signal)) {
3227 + Object.defineProperty(signal, "reason", {
3228 + enumerable: true,
3229 + value: reason,
3230 + configurable: true,
3231 + writable: true
3232 + });
3233 + }
3234 + ;
3235 + abortController.abort(reason);
3236 +};
3237 +// src/listenerMiddleware/exceptions.ts
3238 +var task = "task";
3239 +var listener = "listener";
3240 +var completed = "completed";
3241 +var cancelled = "cancelled";
3242 +var taskCancelled = "task-" + cancelled;
3243 +var taskCompleted = "task-" + completed;
3244 +var listenerCancelled = listener + "-" + cancelled;
3245 +var listenerCompleted = listener + "-" + completed;
3246 +var TaskAbortError = /** @class */ (function () {
3247 + function TaskAbortError(code) {
3248 + this.code = code;
3249 + this.name = "TaskAbortError";
3250 + this.message = task + " " + cancelled + " (reason: " + code + ")";
3251 + }
3252 + return TaskAbortError;
3253 +}());
3254 +// src/listenerMiddleware/task.ts
3255 +var validateActive = function (signal) {
3256 + if (signal.aborted) {
3257 + throw new TaskAbortError(signal.reason);
3258 + }
3259 +};
3260 +function raceWithSignal(signal, promise2) {
3261 + var cleanup = noop;
3262 + return new Promise(function (resolve, reject) {
3263 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
3264 + if (signal.aborted) {
3265 + notifyRejection();
3266 + return;
3267 + }
3268 + cleanup = addAbortSignalListener(signal, notifyRejection);
3269 + promise2.finally(function () { return cleanup(); }).then(resolve, reject);
3270 + }).finally(function () {
3271 + cleanup = noop;
3272 + });
3273 +}
3274 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
3275 + var value, error_1;
3276 + return __generator(this, function (_c) {
3277 + switch (_c.label) {
3278 + case 0:
3279 + _c.trys.push([0, 3, 4, 5]);
3280 + return [4 /*yield*/, Promise.resolve()];
3281 + case 1:
3282 + _c.sent();
3283 + return [4 /*yield*/, task2()];
3284 + case 2:
3285 + value = _c.sent();
3286 + return [2 /*return*/, {
3287 + status: "ok",
3288 + value: value
3289 + }];
3290 + case 3:
3291 + error_1 = _c.sent();
3292 + return [2 /*return*/, {
3293 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
3294 + error: error_1
3295 + }];
3296 + case 4:
3297 + cleanUp == null ? void 0 : cleanUp();
3298 + return [7 /*endfinally*/];
3299 + case 5: return [2 /*return*/];
3300 + }
3301 + });
3302 +}); };
3303 +var createPause = function (signal) {
3304 + return function (promise2) {
3305 + return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
3306 + validateActive(signal);
3307 + return output;
3308 + }));
3309 + };
3310 +};
3311 +var createDelay = function (signal) {
3312 + var pause = createPause(signal);
3313 + return function (timeoutMs) {
3314 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
3315 + };
3316 +};
3317 +// src/listenerMiddleware/index.ts
3318 +var assign = Object.assign;
3319 +var INTERNAL_NIL_TOKEN = {};
3320 +var alm = "listenerMiddleware";
3321 +var createFork = function (parentAbortSignal) {
3322 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
3323 + return function (taskExecutor) {
3324 + assertFunction(taskExecutor, "taskExecutor");
3325 + var childAbortController = new AbortController();
3326 + linkControllers(childAbortController);
3327 + var result = runTask(function () { return __async(void 0, null, function () {
3328 + var result2;
3329 + return __generator(this, function (_c) {
3330 + switch (_c.label) {
3331 + case 0:
3332 + validateActive(parentAbortSignal);
3333 + validateActive(childAbortController.signal);
3334 + return [4 /*yield*/, taskExecutor({
3335 + pause: createPause(childAbortController.signal),
3336 + delay: createDelay(childAbortController.signal),
3337 + signal: childAbortController.signal
3338 + })];
3339 + case 1:
3340 + result2 = _c.sent();
3341 + validateActive(childAbortController.signal);
3342 + return [2 /*return*/, result2];
3343 + }
3344 + });
3345 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
3346 + return {
3347 + result: createPause(parentAbortSignal)(result),
3348 + cancel: function () {
3349 + abortControllerWithReason(childAbortController, taskCancelled);
3350 + }
3351 + };
3352 + };
3353 +};
3354 +var createTakePattern = function (startListening, signal) {
3355 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
3356 + var unsubscribe, tuplePromise, promises, output;
3357 + return __generator(this, function (_c) {
3358 + switch (_c.label) {
3359 + case 0:
3360 + validateActive(signal);
3361 + unsubscribe = function () {
3362 + };
3363 + tuplePromise = new Promise(function (resolve, reject) {
3364 + var stopListening = startListening({
3365 + predicate: predicate,
3366 + effect: function (action, listenerApi) {
3367 + listenerApi.unsubscribe();
3368 + resolve([
3369 + action,
3370 + listenerApi.getState(),
3371 + listenerApi.getOriginalState()
3372 + ]);
3373 + }
3374 + });
3375 + unsubscribe = function () {
3376 + stopListening();
3377 + reject();
3378 + };
3379 + });
3380 + promises = [
3381 + tuplePromise
3382 + ];
3383 + if (timeout != null) {
3384 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
3385 + }
3386 + _c.label = 1;
3387 + case 1:
3388 + _c.trys.push([1, , 3, 4]);
3389 + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
3390 + case 2:
3391 + output = _c.sent();
3392 + validateActive(signal);
3393 + return [2 /*return*/, output];
3394 + case 3:
3395 + unsubscribe();
3396 + return [7 /*endfinally*/];
3397 + case 4: return [2 /*return*/];
3398 + }
3399 + });
3400 + }); };
3401 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
3402 +};
3403 +var getListenerEntryPropsFrom = function (options) {
3404 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
3405 + if (type) {
3406 + predicate = createAction(type).match;
3407 + }
3408 + else if (actionCreator) {
3409 + type = actionCreator.type;
3410 + predicate = actionCreator.match;
3411 + }
3412 + else if (matcher) {
3413 + predicate = matcher;
3414 + }
3415 + else if (predicate) {
3416 + }
3417 + else {
3418 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
3419 + }
3420 + assertFunction(effect, "options.listener");
3421 + return { predicate: predicate, type: type, effect: effect };
3422 +};
3423 +var createListenerEntry = function (options) {
3424 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
3425 + var id = nanoid();
3426 + var entry = {
3427 + id: id,
3428 + effect: effect,
3429 + type: type,
3430 + predicate: predicate,
3431 + pending: new Set(),
3432 + unsubscribe: function () {
3433 + throw new Error("Unsubscribe not initialized");
3434 + }
3435 + };
3436 + return entry;
3437 +};
3438 +var cancelActiveListeners = function (entry) {
3439 + entry.pending.forEach(function (controller) {
3440 + abortControllerWithReason(controller, listenerCancelled);
3441 + });
3442 +};
3443 +var createClearListenerMiddleware = function (listenerMap) {
3444 + return function () {
3445 + listenerMap.forEach(cancelActiveListeners);
3446 + listenerMap.clear();
3447 + };
3448 +};
3449 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
3450 + try {
3451 + errorHandler(errorToNotify, errorInfo);
3452 + }
3453 + catch (errorHandlerError) {
3454 + setTimeout(function () {
3455 + throw errorHandlerError;
3456 + }, 0);
3457 + }
3458 +};
3459 +var addListener = createAction(alm + "/add");
3460 +var clearAllListeners = createAction(alm + "/removeAll");
3461 +var removeListener = createAction(alm + "/remove");
3462 +var defaultErrorHandler = function () {
3463 + var args = [];
3464 + for (var _i = 0; _i < arguments.length; _i++) {
3465 + args[_i] = arguments[_i];
3466 + }
3467 + console.error.apply(console, __spreadArray([alm + "/error"], args));
3468 +};
3469 +function createListenerMiddleware(middlewareOptions) {
3470 + var _this = this;
3471 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
3472 + var listenerMap = new Map();
3473 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
3474 + assertFunction(onError, "onError");
3475 + var insertEntry = function (entry) {
3476 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
3477 + listenerMap.set(entry.id, entry);
3478 + return function (cancelOptions) {
3479 + entry.unsubscribe();
3480 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
3481 + cancelActiveListeners(entry);
3482 + }
3483 + };
3484 + };
3485 + var findListenerEntry = function (comparator) {
3486 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
3487 + var entry = _c[_i];
3488 + if (comparator(entry)) {
3489 + return entry;
3490 + }
3491 + }
3492 + return void 0;
3493 + };
3494 + var startListening = function (options) {
3495 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
3496 + if (!entry) {
3497 + entry = createListenerEntry(options);
3498 + }
3499 + return insertEntry(entry);
3500 + };
3501 + var stopListening = function (options) {
3502 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
3503 + var entry = findListenerEntry(function (entry2) {
3504 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
3505 + return matchPredicateOrType && entry2.effect === effect;
3506 + });
3507 + if (entry) {
3508 + entry.unsubscribe();
3509 + if (options.cancelActive) {
3510 + cancelActiveListeners(entry);
3511 + }
3512 + }
3513 + return !!entry;
3514 + };
3515 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
3516 + var internalTaskController, take, listenerError_1;
3517 + return __generator(this, function (_c) {
3518 + switch (_c.label) {
3519 + case 0:
3520 + internalTaskController = new AbortController();
3521 + take = createTakePattern(startListening, internalTaskController.signal);
3522 + _c.label = 1;
3523 + case 1:
3524 + _c.trys.push([1, 3, 4, 5]);
3525 + entry.pending.add(internalTaskController);
3526 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
3527 + getOriginalState: getOriginalState,
3528 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
3529 + take: take,
3530 + delay: createDelay(internalTaskController.signal),
3531 + pause: createPause(internalTaskController.signal),
3532 + extra: extra,
3533 + signal: internalTaskController.signal,
3534 + fork: createFork(internalTaskController.signal),
3535 + unsubscribe: entry.unsubscribe,
3536 + subscribe: function () {
3537 + listenerMap.set(entry.id, entry);
3538 + },
3539 + cancelActiveListeners: function () {
3540 + entry.pending.forEach(function (controller, _, set) {
3541 + if (controller !== internalTaskController) {
3542 + abortControllerWithReason(controller, listenerCancelled);
3543 + set.delete(controller);
3544 + }
3545 + });
3546 + }
3547 + })))];
3548 + case 2:
3549 + _c.sent();
3550 + return [3 /*break*/, 5];
3551 + case 3:
3552 + listenerError_1 = _c.sent();
3553 + if (!(listenerError_1 instanceof TaskAbortError)) {
3554 + safelyNotifyError(onError, listenerError_1, {
3555 + raisedBy: "effect"
3556 + });
3557 + }
3558 + return [3 /*break*/, 5];
3559 + case 4:
3560 + abortControllerWithReason(internalTaskController, listenerCompleted);
3561 + entry.pending.delete(internalTaskController);
3562 + return [7 /*endfinally*/];
3563 + case 5: return [2 /*return*/];
3564 + }
3565 + });
3566 + }); };
3567 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
3568 + var middleware = function (api) { return function (next) { return function (action) {
3569 + if (!isAction(action)) {
3570 + return next(action);
3571 + }
3572 + if (addListener.match(action)) {
3573 + return startListening(action.payload);
3574 + }
3575 + if (clearAllListeners.match(action)) {
3576 + clearListenerMiddleware();
3577 + return;
3578 + }
3579 + if (removeListener.match(action)) {
3580 + return stopListening(action.payload);
3581 + }
3582 + var originalState = api.getState();
3583 + var getOriginalState = function () {
3584 + if (originalState === INTERNAL_NIL_TOKEN) {
3585 + throw new Error(alm + ": getOriginalState can only be called synchronously");
3586 + }
3587 + return originalState;
3588 + };
3589 + var result;
3590 + try {
3591 + result = next(action);
3592 + if (listenerMap.size > 0) {
3593 + var currentState = api.getState();
3594 + var listenerEntries = Array.from(listenerMap.values());
3595 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
3596 + var entry = listenerEntries_1[_i];
3597 + var runListener = false;
3598 + try {
3599 + runListener = entry.predicate(action, currentState, originalState);
3600 + }
3601 + catch (predicateError) {
3602 + runListener = false;
3603 + safelyNotifyError(onError, predicateError, {
3604 + raisedBy: "predicate"
3605 + });
3606 + }
3607 + if (!runListener) {
3608 + continue;
3609 + }
3610 + notifyListener(entry, action, api, getOriginalState);
3611 + }
3612 + }
3613 + }
3614 + finally {
3615 + originalState = INTERNAL_NIL_TOKEN;
3616 + }
3617 + return result;
3618 + }; }; };
3619 + return {
3620 + middleware: middleware,
3621 + startListening: startListening,
3622 + stopListening: stopListening,
3623 + clearListeners: clearListenerMiddleware
3624 + };
3625 +}
3626 +// src/autoBatchEnhancer.ts
3627 +var SHOULD_AUTOBATCH = "RTK_autoBatch";
3628 +var prepareAutoBatched = function () { return function (payload) {
3629 + var _c;
3630 + return ({
3631 + payload: payload,
3632 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
3633 + });
3634 +}; };
3635 +var promise;
3636 +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 () {
3637 + throw err;
3638 +}, 0); }); };
3639 +var createQueueWithTimer = function (timeout) {
3640 + return function (notify) {
3641 + setTimeout(notify, timeout);
3642 + };
3643 +};
3644 +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
3645 +var autoBatchEnhancer = function (options) {
3646 + if (options === void 0) { options = { type: "raf" }; }
3647 + return function (next) { return function () {
3648 + var args = [];
3649 + for (var _i = 0; _i < arguments.length; _i++) {
3650 + args[_i] = arguments[_i];
3651 + }
3652 + var store = next.apply(void 0, args);
3653 + var notifying = true;
3654 + var shouldNotifyAtEndOfTick = false;
3655 + var notificationQueued = false;
3656 + var listeners = new Set();
3657 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
3658 + var notifyListeners = function () {
3659 + notificationQueued = false;
3660 + if (shouldNotifyAtEndOfTick) {
3661 + shouldNotifyAtEndOfTick = false;
3662 + listeners.forEach(function (l) { return l(); });
3663 + }
3664 + };
3665 + return Object.assign({}, store, {
3666 + subscribe: function (listener2) {
3667 + var wrappedListener = function () { return notifying && listener2(); };
3668 + var unsubscribe = store.subscribe(wrappedListener);
3669 + listeners.add(listener2);
3670 + return function () {
3671 + unsubscribe();
3672 + listeners.delete(listener2);
3673 + };
3674 + },
3675 + dispatch: function (action) {
3676 + var _a;
3677 + try {
3678 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
3679 + shouldNotifyAtEndOfTick = !notifying;
3680 + if (shouldNotifyAtEndOfTick) {
3681 + if (!notificationQueued) {
3682 + notificationQueued = true;
3683 + queueCallback(notifyListeners);
3684 + }
3685 + }
3686 + return store.dispatch(action);
3687 + }
3688 + finally {
3689 + notifying = true;
3690 + }
3691 + }
3692 + });
3693 + }; };
3694 +};
3695 +// src/index.ts
3696 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
3697 +
3698 +//# sourceMappingURL=redux-toolkit.esm.js.map
3699 +
3700 +/***/ }),
3701 +
3702 +/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
3703 +/*!**********************************************************************************!*\
3704 + !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
3705 + \**********************************************************************************/
3706 +/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3707 +
3708 +
3709 +
3710 +var reactIs = __webpack_require__(/*! react-is */ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js");
3711 +
3712 +/**
3713 + * Copyright 2015, Yahoo! Inc.
3714 + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
3715 + */
3716 +var REACT_STATICS = {
3717 + childContextTypes: true,
3718 + contextType: true,
3719 + contextTypes: true,
3720 + defaultProps: true,
3721 + displayName: true,
3722 + getDefaultProps: true,
3723 + getDerivedStateFromError: true,
3724 + getDerivedStateFromProps: true,
3725 + mixins: true,
3726 + propTypes: true,
3727 + type: true
3728 +};
3729 +var KNOWN_STATICS = {
3730 + name: true,
3731 + length: true,
3732 + prototype: true,
3733 + caller: true,
3734 + callee: true,
3735 + arguments: true,
3736 + arity: true
3737 +};
3738 +var FORWARD_REF_STATICS = {
3739 + '$$typeof': true,
3740 + render: true,
3741 + defaultProps: true,
3742 + displayName: true,
3743 + propTypes: true
3744 +};
3745 +var MEMO_STATICS = {
3746 + '$$typeof': true,
3747 + compare: true,
3748 + defaultProps: true,
3749 + displayName: true,
3750 + propTypes: true,
3751 + type: true
3752 +};
3753 +var TYPE_STATICS = {};
3754 +TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
3755 +TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
3756 +
3757 +function getStatics(component) {
3758 + // React v16.11 and below
3759 + if (reactIs.isMemo(component)) {
3760 + return MEMO_STATICS;
3761 + } // React v16.12 and above
3762 +
3763 +
3764 + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
3765 +}
3766 +
3767 +var defineProperty = Object.defineProperty;
3768 +var getOwnPropertyNames = Object.getOwnPropertyNames;
3769 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
3770 +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3771 +var getPrototypeOf = Object.getPrototypeOf;
3772 +var objectPrototype = Object.prototype;
3773 +function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
3774 + if (typeof sourceComponent !== 'string') {
3775 + // don't hoist over string (html) components
3776 + if (objectPrototype) {
3777 + var inheritedComponent = getPrototypeOf(sourceComponent);
3778 +
3779 + if (inheritedComponent && inheritedComponent !== objectPrototype) {
3780 + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
3781 + }
3782 + }
3783 +
3784 + var keys = getOwnPropertyNames(sourceComponent);
3785 +
3786 + if (getOwnPropertySymbols) {
3787 + keys = keys.concat(getOwnPropertySymbols(sourceComponent));
3788 + }
3789 +
3790 + var targetStatics = getStatics(targetComponent);
3791 + var sourceStatics = getStatics(sourceComponent);
3792 +
3793 + for (var i = 0; i < keys.length; ++i) {
3794 + var key = keys[i];
3795 +
3796 + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
3797 + var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
3798 +
3799 + try {
3800 + // Avoid failures from read-only properties
3801 + defineProperty(targetComponent, key, descriptor);
3802 + } catch (e) {}
3803 + }
3804 + }
3805 + }
3806 +
3807 + return targetComponent;
3808 +}
3809 +
3810 +module.exports = hoistNonReactStatics;
3811 +
3812 +
3813 +/***/ }),
3814 +
3815 +/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js":
3816 +/*!************************************************************************************************!*\
3817 + !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js ***!
3818 + \************************************************************************************************/
3819 +/***/ (function(__unused_webpack_module, exports) {
3820 +
3821 +/** @license React v16.13.1
3822 + * react-is.development.js
3823 + *
3824 + * Copyright (c) Facebook, Inc. and its affiliates.
3825 + *
3826 + * This source code is licensed under the MIT license found in the
3827 + * LICENSE file in the root directory of this source tree.
3828 + */
3829 +
3830 +
3831 +
3832 +
3833 +
3834 +if (true) {
3835 + (function() {
3836 +'use strict';
3837 +
3838 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
3839 +// nor polyfill, then a plain number is used for performance.
3840 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
3841 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
3842 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
3843 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
3844 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
3845 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
3846 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
3847 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
3848 +// (unstable) APIs that have been removed. Can we remove the symbols?
3849 +
3850 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
3851 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
3852 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
3853 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
3854 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
3855 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
3856 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
3857 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
3858 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
3859 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
3860 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
3861 +
3862 +function isValidElementType(type) {
3863 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3864 + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
3865 +}
3866 +
3867 +function typeOf(object) {
3868 + if (typeof object === 'object' && object !== null) {
3869 + var $$typeof = object.$$typeof;
3870 +
3871 + switch ($$typeof) {
3872 + case REACT_ELEMENT_TYPE:
3873 + var type = object.type;
3874 +
3875 + switch (type) {
3876 + case REACT_ASYNC_MODE_TYPE:
3877 + case REACT_CONCURRENT_MODE_TYPE:
3878 + case REACT_FRAGMENT_TYPE:
3879 + case REACT_PROFILER_TYPE:
3880 + case REACT_STRICT_MODE_TYPE:
3881 + case REACT_SUSPENSE_TYPE:
3882 + return type;
3883 +
3884 + default:
3885 + var $$typeofType = type && type.$$typeof;
3886 +
3887 + switch ($$typeofType) {
3888 + case REACT_CONTEXT_TYPE:
3889 + case REACT_FORWARD_REF_TYPE:
3890 + case REACT_LAZY_TYPE:
3891 + case REACT_MEMO_TYPE:
3892 + case REACT_PROVIDER_TYPE:
3893 + return $$typeofType;
3894 +
3895 + default:
3896 + return $$typeof;
3897 + }
3898 +
3899 + }
3900 +
3901 + case REACT_PORTAL_TYPE:
3902 + return $$typeof;
3903 + }
3904 + }
3905 +
3906 + return undefined;
3907 +} // AsyncMode is deprecated along with isAsyncMode
3908 +
3909 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
3910 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
3911 +var ContextConsumer = REACT_CONTEXT_TYPE;
3912 +var ContextProvider = REACT_PROVIDER_TYPE;
3913 +var Element = REACT_ELEMENT_TYPE;
3914 +var ForwardRef = REACT_FORWARD_REF_TYPE;
3915 +var Fragment = REACT_FRAGMENT_TYPE;
3916 +var Lazy = REACT_LAZY_TYPE;
3917 +var Memo = REACT_MEMO_TYPE;
3918 +var Portal = REACT_PORTAL_TYPE;
3919 +var Profiler = REACT_PROFILER_TYPE;
3920 +var StrictMode = REACT_STRICT_MODE_TYPE;
3921 +var Suspense = REACT_SUSPENSE_TYPE;
3922 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
3923 +
3924 +function isAsyncMode(object) {
3925 + {
3926 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
3927 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
3928 +
3929 + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
3930 + }
3931 + }
3932 +
3933 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
3934 +}
3935 +function isConcurrentMode(object) {
3936 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
3937 +}
3938 +function isContextConsumer(object) {
3939 + return typeOf(object) === REACT_CONTEXT_TYPE;
3940 +}
3941 +function isContextProvider(object) {
3942 + return typeOf(object) === REACT_PROVIDER_TYPE;
3943 +}
3944 +function isElement(object) {
3945 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3946 +}
3947 +function isForwardRef(object) {
3948 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
3949 +}
3950 +function isFragment(object) {
3951 + return typeOf(object) === REACT_FRAGMENT_TYPE;
3952 +}
3953 +function isLazy(object) {
3954 + return typeOf(object) === REACT_LAZY_TYPE;
3955 +}
3956 +function isMemo(object) {
3957 + return typeOf(object) === REACT_MEMO_TYPE;
3958 +}
3959 +function isPortal(object) {
3960 + return typeOf(object) === REACT_PORTAL_TYPE;
3961 +}
3962 +function isProfiler(object) {
3963 + return typeOf(object) === REACT_PROFILER_TYPE;
3964 +}
3965 +function isStrictMode(object) {
3966 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
3967 +}
3968 +function isSuspense(object) {
3969 + return typeOf(object) === REACT_SUSPENSE_TYPE;
3970 +}
3971 +
3972 +exports.AsyncMode = AsyncMode;
3973 +exports.ConcurrentMode = ConcurrentMode;
3974 +exports.ContextConsumer = ContextConsumer;
3975 +exports.ContextProvider = ContextProvider;
3976 +exports.Element = Element;
3977 +exports.ForwardRef = ForwardRef;
3978 +exports.Fragment = Fragment;
3979 +exports.Lazy = Lazy;
3980 +exports.Memo = Memo;
3981 +exports.Portal = Portal;
3982 +exports.Profiler = Profiler;
3983 +exports.StrictMode = StrictMode;
3984 +exports.Suspense = Suspense;
3985 +exports.isAsyncMode = isAsyncMode;
3986 +exports.isConcurrentMode = isConcurrentMode;
3987 +exports.isContextConsumer = isContextConsumer;
3988 +exports.isContextProvider = isContextProvider;
3989 +exports.isElement = isElement;
3990 +exports.isForwardRef = isForwardRef;
3991 +exports.isFragment = isFragment;
3992 +exports.isLazy = isLazy;
3993 +exports.isMemo = isMemo;
3994 +exports.isPortal = isPortal;
3995 +exports.isProfiler = isProfiler;
3996 +exports.isStrictMode = isStrictMode;
3997 +exports.isSuspense = isSuspense;
3998 +exports.isValidElementType = isValidElementType;
3999 +exports.typeOf = typeOf;
4000 + })();
4001 +}
4002 +
4003 +
4004 +/***/ }),
4005 +
4006 +/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js":
4007 +/*!*****************************************************************************!*\
4008 + !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/index.js ***!
4009 + \*****************************************************************************/
4010 +/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4011 +
4012 +
4013 +
4014 +if (false) {} else {
4015 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js");
4016 +}
4017 +
4018 +
4019 +/***/ }),
4020 +
4021 +/***/ "./node_modules/react-is/cjs/react-is.development.js":
4022 +/*!***********************************************************!*\
4023 + !*** ./node_modules/react-is/cjs/react-is.development.js ***!
4024 + \***********************************************************/
4025 +/***/ (function(__unused_webpack_module, exports) {
4026 +
4027 +/**
4028 + * @license React
4029 + * react-is.development.js
4030 + *
4031 + * Copyright (c) Facebook, Inc. and its affiliates.
4032 + *
4033 + * This source code is licensed under the MIT license found in the
4034 + * LICENSE file in the root directory of this source tree.
4035 + */
4036 +
4037 +
4038 +
4039 +if (true) {
4040 + (function() {
4041 +'use strict';
4042 +
4043 +// ATTENTION
4044 +// When adding new symbols to this file,
4045 +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
4046 +// The Symbol used to tag the ReactElement-like types.
4047 +var REACT_ELEMENT_TYPE = Symbol.for('react.element');
4048 +var REACT_PORTAL_TYPE = Symbol.for('react.portal');
4049 +var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
4050 +var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
4051 +var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
4052 +var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
4053 +var REACT_CONTEXT_TYPE = Symbol.for('react.context');
4054 +var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
4055 +var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
4056 +var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
4057 +var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
4058 +var REACT_MEMO_TYPE = Symbol.for('react.memo');
4059 +var REACT_LAZY_TYPE = Symbol.for('react.lazy');
4060 +var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
4061 +
4062 +// -----------------------------------------------------------------------------
4063 +
4064 +var enableScopeAPI = false; // Experimental Create Event Handle API.
4065 +var enableCacheElement = false;
4066 +var enableTransitionTracing = false; // No known bugs, but needs performance testing
4067 +
4068 +var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
4069 +// stuff. Intended to enable React core members to more easily debug scheduling
4070 +// issues in DEV builds.
4071 +
4072 +var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
4073 +
4074 +var REACT_MODULE_REFERENCE;
4075 +
4076 +{
4077 + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
4078 +}
4079 +
4080 +function isValidElementType(type) {
4081 + if (typeof type === 'string' || typeof type === 'function') {
4082 + return true;
4083 + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
4084 +
4085 +
4086 + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
4087 + return true;
4088 + }
4089 +
4090 + if (typeof type === 'object' && type !== null) {
4091 + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
4092 + // types supported by any Flight configuration anywhere since
4093 + // we don't know which Flight build this will end up being used
4094 + // with.
4095 + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
4096 + return true;
4097 + }
4098 + }
4099 +
4100 + return false;
4101 +}
4102 +
4103 +function typeOf(object) {
4104 + if (typeof object === 'object' && object !== null) {
4105 + var $$typeof = object.$$typeof;
4106 +
4107 + switch ($$typeof) {
4108 + case REACT_ELEMENT_TYPE:
4109 + var type = object.type;
4110 +
4111 + switch (type) {
4112 + case REACT_FRAGMENT_TYPE:
4113 + case REACT_PROFILER_TYPE:
4114 + case REACT_STRICT_MODE_TYPE:
4115 + case REACT_SUSPENSE_TYPE:
4116 + case REACT_SUSPENSE_LIST_TYPE:
4117 + return type;
4118 +
4119 + default:
4120 + var $$typeofType = type && type.$$typeof;
4121 +
4122 + switch ($$typeofType) {
4123 + case REACT_SERVER_CONTEXT_TYPE:
4124 + case REACT_CONTEXT_TYPE:
4125 + case REACT_FORWARD_REF_TYPE:
4126 + case REACT_LAZY_TYPE:
4127 + case REACT_MEMO_TYPE:
4128 + case REACT_PROVIDER_TYPE:
4129 + return $$typeofType;
4130 +
4131 + default:
4132 + return $$typeof;
4133 + }
4134 +
4135 + }
4136 +
4137 + case REACT_PORTAL_TYPE:
4138 + return $$typeof;
4139 + }
4140 + }
4141 +
4142 + return undefined;
4143 +}
4144 +var ContextConsumer = REACT_CONTEXT_TYPE;
4145 +var ContextProvider = REACT_PROVIDER_TYPE;
4146 +var Element = REACT_ELEMENT_TYPE;
4147 +var ForwardRef = REACT_FORWARD_REF_TYPE;
4148 +var Fragment = REACT_FRAGMENT_TYPE;
4149 +var Lazy = REACT_LAZY_TYPE;
4150 +var Memo = REACT_MEMO_TYPE;
4151 +var Portal = REACT_PORTAL_TYPE;
4152 +var Profiler = REACT_PROFILER_TYPE;
4153 +var StrictMode = REACT_STRICT_MODE_TYPE;
4154 +var Suspense = REACT_SUSPENSE_TYPE;
4155 +var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
4156 +var hasWarnedAboutDeprecatedIsAsyncMode = false;
4157 +var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
4158 +
4159 +function isAsyncMode(object) {
4160 + {
4161 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
4162 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
4163 +
4164 + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
4165 + }
4166 + }
4167 +
4168 + return false;
4169 +}
4170 +function isConcurrentMode(object) {
4171 + {
4172 + if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
4173 + hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
4174 +
4175 + console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
4176 + }
4177 + }
4178 +
4179 + return false;
4180 +}
4181 +function isContextConsumer(object) {
4182 + return typeOf(object) === REACT_CONTEXT_TYPE;
4183 +}
4184 +function isContextProvider(object) {
4185 + return typeOf(object) === REACT_PROVIDER_TYPE;
4186 +}
4187 +function isElement(object) {
4188 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4189 +}
4190 +function isForwardRef(object) {
4191 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
4192 +}
4193 +function isFragment(object) {
4194 + return typeOf(object) === REACT_FRAGMENT_TYPE;
4195 +}
4196 +function isLazy(object) {
4197 + return typeOf(object) === REACT_LAZY_TYPE;
4198 +}
4199 +function isMemo(object) {
4200 + return typeOf(object) === REACT_MEMO_TYPE;
4201 +}
4202 +function isPortal(object) {
4203 + return typeOf(object) === REACT_PORTAL_TYPE;
4204 +}
4205 +function isProfiler(object) {
4206 + return typeOf(object) === REACT_PROFILER_TYPE;
4207 +}
4208 +function isStrictMode(object) {
4209 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
4210 +}
4211 +function isSuspense(object) {
4212 + return typeOf(object) === REACT_SUSPENSE_TYPE;
4213 +}
4214 +function isSuspenseList(object) {
4215 + return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
4216 +}
4217 +
4218 +exports.ContextConsumer = ContextConsumer;
4219 +exports.ContextProvider = ContextProvider;
4220 +exports.Element = Element;
4221 +exports.ForwardRef = ForwardRef;
4222 +exports.Fragment = Fragment;
4223 +exports.Lazy = Lazy;
4224 +exports.Memo = Memo;
4225 +exports.Portal = Portal;
4226 +exports.Profiler = Profiler;
4227 +exports.StrictMode = StrictMode;
4228 +exports.Suspense = Suspense;
4229 +exports.SuspenseList = SuspenseList;
4230 +exports.isAsyncMode = isAsyncMode;
4231 +exports.isConcurrentMode = isConcurrentMode;
4232 +exports.isContextConsumer = isContextConsumer;
4233 +exports.isContextProvider = isContextProvider;
4234 +exports.isElement = isElement;
4235 +exports.isForwardRef = isForwardRef;
4236 +exports.isFragment = isFragment;
4237 +exports.isLazy = isLazy;
4238 +exports.isMemo = isMemo;
4239 +exports.isPortal = isPortal;
4240 +exports.isProfiler = isProfiler;
4241 +exports.isStrictMode = isStrictMode;
4242 +exports.isSuspense = isSuspense;
4243 +exports.isSuspenseList = isSuspenseList;
4244 +exports.isValidElementType = isValidElementType;
4245 +exports.typeOf = typeOf;
4246 + })();
4247 +}
4248 +
4249 +
4250 +/***/ }),
4251 +
4252 +/***/ "./node_modules/react-is/index.js":
4253 +/*!****************************************!*\
4254 + !*** ./node_modules/react-is/index.js ***!
4255 + \****************************************/
4256 +/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4257 +
4258 +
4259 +
4260 +if (false) {} else {
4261 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
4262 +}
4263 +
4264 +
4265 +/***/ }),
4266 +
4267 +/***/ "./node_modules/redux-thunk/es/index.js":
4268 +/*!**********************************************!*\
4269 + !*** ./node_modules/redux-thunk/es/index.js ***!
4270 + \**********************************************/
4271 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4272 +
4273 +__webpack_require__.r(__webpack_exports__);
4274 +/** A function that accepts a potential "extra argument" value to be injected later,
4275 + * and returns an instance of the thunk middleware that uses that value
4276 + */
4277 +function createThunkMiddleware(extraArgument) {
4278 + // Standard Redux middleware definition pattern:
4279 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4280 + var middleware = function middleware(_ref) {
4281 + var dispatch = _ref.dispatch,
4282 + getState = _ref.getState;
4283 + return function (next) {
4284 + return function (action) {
4285 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4286 + // If this "action" is really a function, call it and return the result.
4287 + if (typeof action === 'function') {
4288 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4289 + return action(dispatch, getState, extraArgument);
4290 + } // Otherwise, pass the action down the middleware chain as usual
4291 +
4292 +
4293 + return next(action);
4294 + };
4295 + };
4296 + };
4297 +
4298 + return middleware;
4299 +}
4300 +
4301 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4302 +// with whatever "extra arg" they want to inject into their thunks
4303 +
4304 +thunk.withExtraArgument = createThunkMiddleware;
4305 +/* harmony default export */ __webpack_exports__["default"] = (thunk);
4306 +
4307 +/***/ }),
4308 +
4309 +/***/ "./node_modules/redux/es/redux.js":
4310 +/*!****************************************!*\
4311 + !*** ./node_modules/redux/es/redux.js ***!
4312 + \****************************************/
4313 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4314 +
4315 +__webpack_require__.r(__webpack_exports__);
4316 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4317 +/* harmony export */ __DO_NOT_USE__ActionTypes: function() { return /* binding */ ActionTypes; },
4318 +/* harmony export */ applyMiddleware: function() { return /* binding */ applyMiddleware; },
4319 +/* harmony export */ bindActionCreators: function() { return /* binding */ bindActionCreators; },
4320 +/* harmony export */ combineReducers: function() { return /* binding */ combineReducers; },
4321 +/* harmony export */ compose: function() { return /* binding */ compose; },
4322 +/* harmony export */ createStore: function() { return /* binding */ createStore; },
4323 +/* harmony export */ legacy_createStore: function() { return /* binding */ legacy_createStore; }
4324 +/* harmony export */ });
4325 +/* 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");
4326 +
4327 +
4328 +/**
4329 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
4330 + *
4331 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
4332 + * during build.
4333 + * @param {number} code
4334 + */
4335 +function formatProdErrorMessage(code) {
4336 + 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. ';
4337 +}
4338 +
4339 +// Inlined version of the `symbol-observable` polyfill
4340 +var $$observable = (function () {
4341 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
4342 +})();
4343 +
4344 +/**
4345 + * These are private action types reserved by Redux.
4346 + * For any unknown actions, you must return the current state.
4347 + * If the current state is undefined, you must return the initial state.
4348 + * Do not reference these action types directly in your code.
4349 + */
4350 +var randomString = function randomString() {
4351 + return Math.random().toString(36).substring(7).split('').join('.');
4352 +};
4353 +
4354 +var ActionTypes = {
4355 + INIT: "@@redux/INIT" + randomString(),
4356 + REPLACE: "@@redux/REPLACE" + randomString(),
4357 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
4358 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
4359 + }
4360 +};
4361 +
4362 +/**
4363 + * @param {any} obj The object to inspect.
4364 + * @returns {boolean} True if the argument appears to be a plain object.
4365 + */
4366 +function isPlainObject(obj) {
4367 + if (typeof obj !== 'object' || obj === null) return false;
4368 + var proto = obj;
4369 +
4370 + while (Object.getPrototypeOf(proto) !== null) {
4371 + proto = Object.getPrototypeOf(proto);
4372 + }
4373 +
4374 + return Object.getPrototypeOf(obj) === proto;
4375 +}
4376 +
4377 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
4378 +function miniKindOf(val) {
4379 + if (val === void 0) return 'undefined';
4380 + if (val === null) return 'null';
4381 + var type = typeof val;
4382 +
4383 + switch (type) {
4384 + case 'boolean':
4385 + case 'string':
4386 + case 'number':
4387 + case 'symbol':
4388 + case 'function':
4389 + {
4390 + return type;
4391 + }
4392 + }
4393 +
4394 + if (Array.isArray(val)) return 'array';
4395 + if (isDate(val)) return 'date';
4396 + if (isError(val)) return 'error';
4397 + var constructorName = ctorName(val);
4398 +
4399 + switch (constructorName) {
4400 + case 'Symbol':
4401 + case 'Promise':
4402 + case 'WeakMap':
4403 + case 'WeakSet':
4404 + case 'Map':
4405 + case 'Set':
4406 + return constructorName;
4407 + } // other
4408 +
4409 +
4410 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
4411 +}
4412 +
4413 +function ctorName(val) {
4414 + return typeof val.constructor === 'function' ? val.constructor.name : null;
4415 +}
4416 +
4417 +function isError(val) {
4418 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
4419 +}
4420 +
4421 +function isDate(val) {
4422 + if (val instanceof Date) return true;
4423 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
4424 +}
4425 +
4426 +function kindOf(val) {
4427 + var typeOfVal = typeof val;
4428 +
4429 + if (true) {
4430 + typeOfVal = miniKindOf(val);
4431 + }
4432 +
4433 + return typeOfVal;
4434 +}
4435 +
4436 +/**
4437 + * @deprecated
4438 + *
4439 + * **We recommend using the `configureStore` method
4440 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
4441 + *
4442 + * Redux Toolkit is our recommended approach for writing Redux logic today,
4443 + * including store setup, reducers, data fetching, and more.
4444 + *
4445 + * **For more details, please read this Redux docs page:**
4446 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4447 + *
4448 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
4449 + * simplifies setup and helps avoid common bugs.
4450 + *
4451 + * You should not be using the `redux` core package by itself today, except for learning purposes.
4452 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
4453 + * all users to migrate to using Redux Toolkit for all Redux code.
4454 + *
4455 + * If you want to use `createStore` without this visual deprecation warning, use
4456 + * the `legacy_createStore` import instead:
4457 + *
4458 + * `import { legacy_createStore as createStore} from 'redux'`
4459 + *
4460 + */
4461 +
4462 +function createStore(reducer, preloadedState, enhancer) {
4463 + var _ref2;
4464 +
4465 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
4466 + 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.');
4467 + }
4468 +
4469 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
4470 + enhancer = preloadedState;
4471 + preloadedState = undefined;
4472 + }
4473 +
4474 + if (typeof enhancer !== 'undefined') {
4475 + if (typeof enhancer !== 'function') {
4476 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
4477 + }
4478 +
4479 + return enhancer(createStore)(reducer, preloadedState);
4480 + }
4481 +
4482 + if (typeof reducer !== 'function') {
4483 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
4484 + }
4485 +
4486 + var currentReducer = reducer;
4487 + var currentState = preloadedState;
4488 + var currentListeners = [];
4489 + var nextListeners = currentListeners;
4490 + var isDispatching = false;
4491 + /**
4492 + * This makes a shallow copy of currentListeners so we can use
4493 + * nextListeners as a temporary list while dispatching.
4494 + *
4495 + * This prevents any bugs around consumers calling
4496 + * subscribe/unsubscribe in the middle of a dispatch.
4497 + */
4498 +
4499 + function ensureCanMutateNextListeners() {
4500 + if (nextListeners === currentListeners) {
4501 + nextListeners = currentListeners.slice();
4502 + }
4503 + }
4504 + /**
4505 + * Reads the state tree managed by the store.
4506 + *
4507 + * @returns {any} The current state tree of your application.
4508 + */
4509 +
4510 +
4511 + function getState() {
4512 + if (isDispatching) {
4513 + 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.');
4514 + }
4515 +
4516 + return currentState;
4517 + }
4518 + /**
4519 + * Adds a change listener. It will be called any time an action is dispatched,
4520 + * and some part of the state tree may potentially have changed. You may then
4521 + * call `getState()` to read the current state tree inside the callback.
4522 + *
4523 + * You may call `dispatch()` from a change listener, with the following
4524 + * caveats:
4525 + *
4526 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
4527 + * If you subscribe or unsubscribe while the listeners are being invoked, this
4528 + * will not have any effect on the `dispatch()` that is currently in progress.
4529 + * However, the next `dispatch()` call, whether nested or not, will use a more
4530 + * recent snapshot of the subscription list.
4531 + *
4532 + * 2. The listener should not expect to see all state changes, as the state
4533 + * might have been updated multiple times during a nested `dispatch()` before
4534 + * the listener is called. It is, however, guaranteed that all subscribers
4535 + * registered before the `dispatch()` started will be called with the latest
4536 + * state by the time it exits.
4537 + *
4538 + * @param {Function} listener A callback to be invoked on every dispatch.
4539 + * @returns {Function} A function to remove this change listener.
4540 + */
4541 +
4542 +
4543 + function subscribe(listener) {
4544 + if (typeof listener !== 'function') {
4545 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
4546 + }
4547 +
4548 + if (isDispatching) {
4549 + 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.');
4550 + }
4551 +
4552 + var isSubscribed = true;
4553 + ensureCanMutateNextListeners();
4554 + nextListeners.push(listener);
4555 + return function unsubscribe() {
4556 + if (!isSubscribed) {
4557 + return;
4558 + }
4559 +
4560 + if (isDispatching) {
4561 + 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.');
4562 + }
4563 +
4564 + isSubscribed = false;
4565 + ensureCanMutateNextListeners();
4566 + var index = nextListeners.indexOf(listener);
4567 + nextListeners.splice(index, 1);
4568 + currentListeners = null;
4569 + };
4570 + }
4571 + /**
4572 + * Dispatches an action. It is the only way to trigger a state change.
4573 + *
4574 + * The `reducer` function, used to create the store, will be called with the
4575 + * current state tree and the given `action`. Its return value will
4576 + * be considered the **next** state of the tree, and the change listeners
4577 + * will be notified.
4578 + *
4579 + * The base implementation only supports plain object actions. If you want to
4580 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
4581 + * wrap your store creating function into the corresponding middleware. For
4582 + * example, see the documentation for the `redux-thunk` package. Even the
4583 + * middleware will eventually dispatch plain object actions using this method.
4584 + *
4585 + * @param {Object} action A plain object representing “what changed”. It is
4586 + * a good idea to keep actions serializable so you can record and replay user
4587 + * sessions, or use the time travelling `redux-devtools`. An action must have
4588 + * a `type` property which may not be `undefined`. It is a good idea to use
4589 + * string constants for action types.
4590 + *
4591 + * @returns {Object} For convenience, the same action object you dispatched.
4592 + *
4593 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
4594 + * return something else (for example, a Promise you can await).
4595 + */
4596 +
4597 +
4598 + function dispatch(action) {
4599 + if (!isPlainObject(action)) {
4600 + 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.");
4601 + }
4602 +
4603 + if (typeof action.type === 'undefined') {
4604 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
4605 + }
4606 +
4607 + if (isDispatching) {
4608 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
4609 + }
4610 +
4611 + try {
4612 + isDispatching = true;
4613 + currentState = currentReducer(currentState, action);
4614 + } finally {
4615 + isDispatching = false;
4616 + }
4617 +
4618 + var listeners = currentListeners = nextListeners;
4619 +
4620 + for (var i = 0; i < listeners.length; i++) {
4621 + var listener = listeners[i];
4622 + listener();
4623 + }
4624 +
4625 + return action;
4626 + }
4627 + /**
4628 + * Replaces the reducer currently used by the store to calculate the state.
4629 + *
4630 + * You might need this if your app implements code splitting and you want to
4631 + * load some of the reducers dynamically. You might also need this if you
4632 + * implement a hot reloading mechanism for Redux.
4633 + *
4634 + * @param {Function} nextReducer The reducer for the store to use instead.
4635 + * @returns {void}
4636 + */
4637 +
4638 +
4639 + function replaceReducer(nextReducer) {
4640 + if (typeof nextReducer !== 'function') {
4641 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
4642 + }
4643 +
4644 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
4645 + // Any reducers that existed in both the new and old rootReducer
4646 + // will receive the previous state. This effectively populates
4647 + // the new state tree with any relevant data from the old one.
4648 +
4649 + dispatch({
4650 + type: ActionTypes.REPLACE
4651 + });
4652 + }
4653 + /**
4654 + * Interoperability point for observable/reactive libraries.
4655 + * @returns {observable} A minimal observable of state changes.
4656 + * For more information, see the observable proposal:
4657 + * https://github.com/tc39/proposal-observable
4658 + */
4659 +
4660 +
4661 + function observable() {
4662 + var _ref;
4663 +
4664 + var outerSubscribe = subscribe;
4665 + return _ref = {
4666 + /**
4667 + * The minimal observable subscription method.
4668 + * @param {Object} observer Any object that can be used as an observer.
4669 + * The observer object should have a `next` method.
4670 + * @returns {subscription} An object with an `unsubscribe` method that can
4671 + * be used to unsubscribe the observable from the store, and prevent further
4672 + * emission of values from the observable.
4673 + */
4674 + subscribe: function subscribe(observer) {
4675 + if (typeof observer !== 'object' || observer === null) {
4676 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
4677 + }
4678 +
4679 + function observeState() {
4680 + if (observer.next) {
4681 + observer.next(getState());
4682 + }
4683 + }
4684 +
4685 + observeState();
4686 + var unsubscribe = outerSubscribe(observeState);
4687 + return {
4688 + unsubscribe: unsubscribe
4689 + };
4690 + }
4691 + }, _ref[$$observable] = function () {
4692 + return this;
4693 + }, _ref;
4694 + } // When a store is created, an "INIT" action is dispatched so that every
4695 + // reducer returns their initial state. This effectively populates
4696 + // the initial state tree.
4697 +
4698 +
4699 + dispatch({
4700 + type: ActionTypes.INIT
4701 + });
4702 + return _ref2 = {
4703 + dispatch: dispatch,
4704 + subscribe: subscribe,
4705 + getState: getState,
4706 + replaceReducer: replaceReducer
4707 + }, _ref2[$$observable] = observable, _ref2;
4708 +}
4709 +/**
4710 + * Creates a Redux store that holds the state tree.
4711 + *
4712 + * **We recommend using `configureStore` from the
4713 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
4714 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4715 + *
4716 + * The only way to change the data in the store is to call `dispatch()` on it.
4717 + *
4718 + * There should only be a single store in your app. To specify how different
4719 + * parts of the state tree respond to actions, you may combine several reducers
4720 + * into a single reducer function by using `combineReducers`.
4721 + *
4722 + * @param {Function} reducer A function that returns the next state tree, given
4723 + * the current state tree and the action to handle.
4724 + *
4725 + * @param {any} [preloadedState] The initial state. You may optionally specify it
4726 + * to hydrate the state from the server in universal apps, or to restore a
4727 + * previously serialized user session.
4728 + * If you use `combineReducers` to produce the root reducer function, this must be
4729 + * an object with the same shape as `combineReducers` keys.
4730 + *
4731 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
4732 + * to enhance the store with third-party capabilities such as middleware,
4733 + * time travel, persistence, etc. The only store enhancer that ships with Redux
4734 + * is `applyMiddleware()`.
4735 + *
4736 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
4737 + * and subscribe to changes.
4738 + */
4739 +
4740 +var legacy_createStore = createStore;
4741 +
4742 +/**
4743 + * Prints a warning in the console if it exists.
4744 + *
4745 + * @param {String} message The warning message.
4746 + * @returns {void}
4747 + */
4748 +function warning(message) {
4749 + /* eslint-disable no-console */
4750 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
4751 + console.error(message);
4752 + }
4753 + /* eslint-enable no-console */
4754 +
4755 +
4756 + try {
4757 + // This error was thrown as a convenience so that if you enable
4758 + // "break on all exceptions" in your console,
4759 + // it would pause the execution at this line.
4760 + throw new Error(message);
4761 + } catch (e) {} // eslint-disable-line no-empty
4762 +
4763 +}
4764 +
4765 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
4766 + var reducerKeys = Object.keys(reducers);
4767 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
4768 +
4769 + if (reducerKeys.length === 0) {
4770 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
4771 + }
4772 +
4773 + if (!isPlainObject(inputState)) {
4774 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
4775 + }
4776 +
4777 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
4778 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
4779 + });
4780 + unexpectedKeys.forEach(function (key) {
4781 + unexpectedKeyCache[key] = true;
4782 + });
4783 + if (action && action.type === ActionTypes.REPLACE) return;
4784 +
4785 + if (unexpectedKeys.length > 0) {
4786 + 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.");
4787 + }
4788 +}
4789 +
4790 +function assertReducerShape(reducers) {
4791 + Object.keys(reducers).forEach(function (key) {
4792 + var reducer = reducers[key];
4793 + var initialState = reducer(undefined, {
4794 + type: ActionTypes.INIT
4795 + });
4796 +
4797 + if (typeof initialState === 'undefined') {
4798 + 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.");
4799 + }
4800 +
4801 + if (typeof reducer(undefined, {
4802 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
4803 + }) === 'undefined') {
4804 + 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.");
4805 + }
4806 + });
4807 +}
4808 +/**
4809 + * Turns an object whose values are different reducer functions, into a single
4810 + * reducer function. It will call every child reducer, and gather their results
4811 + * into a single state object, whose keys correspond to the keys of the passed
4812 + * reducer functions.
4813 + *
4814 + * @param {Object} reducers An object whose values correspond to different
4815 + * reducer functions that need to be combined into one. One handy way to obtain
4816 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
4817 + * undefined for any action. Instead, they should return their initial state
4818 + * if the state passed to them was undefined, and the current state for any
4819 + * unrecognized action.
4820 + *
4821 + * @returns {Function} A reducer function that invokes every reducer inside the
4822 + * passed object, and builds a state object with the same shape.
4823 + */
4824 +
4825 +
4826 +function combineReducers(reducers) {
4827 + var reducerKeys = Object.keys(reducers);
4828 + var finalReducers = {};
4829 +
4830 + for (var i = 0; i < reducerKeys.length; i++) {
4831 + var key = reducerKeys[i];
4832 +
4833 + if (true) {
4834 + if (typeof reducers[key] === 'undefined') {
4835 + warning("No reducer provided for key \"" + key + "\"");
4836 + }
4837 + }
4838 +
4839 + if (typeof reducers[key] === 'function') {
4840 + finalReducers[key] = reducers[key];
4841 + }
4842 + }
4843 +
4844 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
4845 + // keys multiple times.
4846 +
4847 + var unexpectedKeyCache;
4848 +
4849 + if (true) {
4850 + unexpectedKeyCache = {};
4851 + }
4852 +
4853 + var shapeAssertionError;
4854 +
4855 + try {
4856 + assertReducerShape(finalReducers);
4857 + } catch (e) {
4858 + shapeAssertionError = e;
4859 + }
4860 +
4861 + return function combination(state, action) {
4862 + if (state === void 0) {
4863 + state = {};
4864 + }
4865 +
4866 + if (shapeAssertionError) {
4867 + throw shapeAssertionError;
4868 + }
4869 +
4870 + if (true) {
4871 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
4872 +
4873 + if (warningMessage) {
4874 + warning(warningMessage);
4875 + }
4876 + }
4877 +
4878 + var hasChanged = false;
4879 + var nextState = {};
4880 +
4881 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
4882 + var _key = finalReducerKeys[_i];
4883 + var reducer = finalReducers[_key];
4884 + var previousStateForKey = state[_key];
4885 + var nextStateForKey = reducer(previousStateForKey, action);
4886 +
4887 + if (typeof nextStateForKey === 'undefined') {
4888 + var actionType = action && action.type;
4889 + 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.");
4890 + }
4891 +
4892 + nextState[_key] = nextStateForKey;
4893 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
4894 + }
4895 +
4896 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
4897 + return hasChanged ? nextState : state;
4898 + };
4899 +}
4900 +
4901 +function bindActionCreator(actionCreator, dispatch) {
4902 + return function () {
4903 + return dispatch(actionCreator.apply(this, arguments));
4904 + };
4905 +}
4906 +/**
4907 + * Turns an object whose values are action creators, into an object with the
4908 + * same keys, but with every function wrapped into a `dispatch` call so they
4909 + * may be invoked directly. This is just a convenience method, as you can call
4910 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
4911 + *
4912 + * For convenience, you can also pass an action creator as the first argument,
4913 + * and get a dispatch wrapped function in return.
4914 + *
4915 + * @param {Function|Object} actionCreators An object whose values are action
4916 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
4917 + * syntax. You may also pass a single function.
4918 + *
4919 + * @param {Function} dispatch The `dispatch` function available on your Redux
4920 + * store.
4921 + *
4922 + * @returns {Function|Object} The object mimicking the original object, but with
4923 + * every action creator wrapped into the `dispatch` call. If you passed a
4924 + * function as `actionCreators`, the return value will also be a single
4925 + * function.
4926 + */
4927 +
4928 +
4929 +function bindActionCreators(actionCreators, dispatch) {
4930 + if (typeof actionCreators === 'function') {
4931 + return bindActionCreator(actionCreators, dispatch);
4932 + }
4933 +
4934 + if (typeof actionCreators !== 'object' || actionCreators === null) {
4935 + 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\"?");
4936 + }
4937 +
4938 + var boundActionCreators = {};
4939 +
4940 + for (var key in actionCreators) {
4941 + var actionCreator = actionCreators[key];
4942 +
4943 + if (typeof actionCreator === 'function') {
4944 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
4945 + }
4946 + }
4947 +
4948 + return boundActionCreators;
4949 +}
4950 +
4951 +/**
4952 + * Composes single-argument functions from right to left. The rightmost
4953 + * function can take multiple arguments as it provides the signature for
4954 + * the resulting composite function.
4955 + *
4956 + * @param {...Function} funcs The functions to compose.
4957 + * @returns {Function} A function obtained by composing the argument functions
4958 + * from right to left. For example, compose(f, g, h) is identical to doing
4959 + * (...args) => f(g(h(...args))).
4960 + */
4961 +function compose() {
4962 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
4963 + funcs[_key] = arguments[_key];
4964 + }
4965 +
4966 + if (funcs.length === 0) {
4967 + return function (arg) {
4968 + return arg;
4969 + };
4970 + }
4971 +
4972 + if (funcs.length === 1) {
4973 + return funcs[0];
4974 + }
4975 +
4976 + return funcs.reduce(function (a, b) {
4977 + return function () {
4978 + return a(b.apply(void 0, arguments));
4979 + };
4980 + });
4981 +}
4982 +
4983 +/**
4984 + * Creates a store enhancer that applies middleware to the dispatch method
4985 + * of the Redux store. This is handy for a variety of tasks, such as expressing
4986 + * asynchronous actions in a concise manner, or logging every action payload.
4987 + *
4988 + * See `redux-thunk` package as an example of the Redux middleware.
4989 + *
4990 + * Because middleware is potentially asynchronous, this should be the first
4991 + * store enhancer in the composition chain.
4992 + *
4993 + * Note that each middleware will be given the `dispatch` and `getState` functions
4994 + * as named arguments.
4995 + *
4996 + * @param {...Function} middlewares The middleware chain to be applied.
4997 + * @returns {Function} A store enhancer applying the middleware.
4998 + */
4999 +
5000 +function applyMiddleware() {
5001 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
5002 + middlewares[_key] = arguments[_key];
5003 + }
5004 +
5005 + return function (createStore) {
5006 + return function () {
5007 + var store = createStore.apply(void 0, arguments);
5008 +
5009 + var _dispatch = function dispatch() {
5010 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
5011 + };
5012 +
5013 + var middlewareAPI = {
5014 + getState: store.getState,
5015 + dispatch: function dispatch() {
5016 + return _dispatch.apply(void 0, arguments);
5017 + }
5018 + };
5019 + var chain = middlewares.map(function (middleware) {
5020 + return middleware(middlewareAPI);
5021 + });
5022 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
5023 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
5024 + dispatch: _dispatch
5025 + });
5026 + };
5027 + };
5028 +}
5029 +
5030 +
5031 +
5032 +
5033 +/***/ }),
5034 +
5035 +/***/ "./node_modules/reselect/es/defaultMemoize.js":
5036 +/*!****************************************************!*\
5037 + !*** ./node_modules/reselect/es/defaultMemoize.js ***!
5038 + \****************************************************/
5039 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5040 +
5041 +__webpack_require__.r(__webpack_exports__);
5042 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5043 +/* harmony export */ createCacheKeyComparator: function() { return /* binding */ createCacheKeyComparator; },
5044 +/* harmony export */ defaultEqualityCheck: function() { return /* binding */ defaultEqualityCheck; },
5045 +/* harmony export */ defaultMemoize: function() { return /* binding */ defaultMemoize; }
5046 +/* harmony export */ });
5047 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
5048 +// https://github.com/erikras/lru-memoize
5049 +var NOT_FOUND = 'NOT_FOUND';
5050 +
5051 +function createSingletonCache(equals) {
5052 + var entry;
5053 + return {
5054 + get: function get(key) {
5055 + if (entry && equals(entry.key, key)) {
5056 + return entry.value;
5057 + }
5058 +
5059 + return NOT_FOUND;
5060 + },
5061 + put: function put(key, value) {
5062 + entry = {
5063 + key: key,
5064 + value: value
5065 + };
5066 + },
5067 + getEntries: function getEntries() {
5068 + return entry ? [entry] : [];
5069 + },
5070 + clear: function clear() {
5071 + entry = undefined;
5072 + }
5073 + };
5074 +}
5075 +
5076 +function createLruCache(maxSize, equals) {
5077 + var entries = [];
5078 +
5079 + function get(key) {
5080 + var cacheIndex = entries.findIndex(function (entry) {
5081 + return equals(key, entry.key);
5082 + }); // We found a cached entry
5083 +
5084 + if (cacheIndex > -1) {
5085 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
5086 +
5087 + if (cacheIndex > 0) {
5088 + entries.splice(cacheIndex, 1);
5089 + entries.unshift(entry);
5090 + }
5091 +
5092 + return entry.value;
5093 + } // No entry found in cache, return sentinel
5094 +
5095 +
5096 + return NOT_FOUND;
5097 + }
5098 +
5099 + function put(key, value) {
5100 + if (get(key) === NOT_FOUND) {
5101 + // TODO Is unshift slow?
5102 + entries.unshift({
5103 + key: key,
5104 + value: value
5105 + });
5106 +
5107 + if (entries.length > maxSize) {
5108 + entries.pop();
5109 + }
5110 + }
5111 + }
5112 +
5113 + function getEntries() {
5114 + return entries;
5115 + }
5116 +
5117 + function clear() {
5118 + entries = [];
5119 + }
5120 +
5121 + return {
5122 + get: get,
5123 + put: put,
5124 + getEntries: getEntries,
5125 + clear: clear
5126 + };
5127 +}
5128 +
5129 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
5130 + return a === b;
5131 +};
5132 +function createCacheKeyComparator(equalityCheck) {
5133 + return function areArgumentsShallowlyEqual(prev, next) {
5134 + if (prev === null || next === null || prev.length !== next.length) {
5135 + return false;
5136 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
5137 +
5138 +
5139 + var length = prev.length;
5140 +
5141 + for (var i = 0; i < length; i++) {
5142 + if (!equalityCheck(prev[i], next[i])) {
5143 + return false;
5144 + }
5145 + }
5146 +
5147 + return true;
5148 + };
5149 +}
5150 +// defaultMemoize now supports a configurable cache size with LRU behavior,
5151 +// and optional comparison of the result value with existing values
5152 +function defaultMemoize(func, equalityCheckOrOptions) {
5153 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
5154 + equalityCheck: equalityCheckOrOptions
5155 + };
5156 + var _providedOptions$equa = providedOptions.equalityCheck,
5157 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
5158 + _providedOptions$maxS = providedOptions.maxSize,
5159 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
5160 + resultEqualityCheck = providedOptions.resultEqualityCheck;
5161 + var comparator = createCacheKeyComparator(equalityCheck);
5162 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
5163 +
5164 + function memoized() {
5165 + var value = cache.get(arguments);
5166 +
5167 + if (value === NOT_FOUND) {
5168 + // @ts-ignore
5169 + value = func.apply(null, arguments);
5170 +
5171 + if (resultEqualityCheck) {
5172 + var entries = cache.getEntries();
5173 + var matchingEntry = entries.find(function (entry) {
5174 + return resultEqualityCheck(entry.value, value);
5175 + });
5176 +
5177 + if (matchingEntry) {
5178 + value = matchingEntry.value;
5179 + }
5180 + }
5181 +
5182 + cache.put(arguments, value);
5183 + }
5184 +
5185 + return value;
5186 + }
5187 +
5188 + memoized.clearCache = function () {
5189 + return cache.clear();
5190 + };
5191 +
5192 + return memoized;
5193 +}
5194 +
5195 +/***/ }),
5196 +
5197 +/***/ "./node_modules/reselect/es/index.js":
5198 +/*!*******************************************!*\
5199 + !*** ./node_modules/reselect/es/index.js ***!
5200 + \*******************************************/
5201 +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5202 +
5203 +__webpack_require__.r(__webpack_exports__);
5204 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5205 +/* harmony export */ createSelector: function() { return /* binding */ createSelector; },
5206 +/* harmony export */ createSelectorCreator: function() { return /* binding */ createSelectorCreator; },
5207 +/* harmony export */ createStructuredSelector: function() { return /* binding */ createStructuredSelector; },
5208 +/* harmony export */ defaultEqualityCheck: function() { return /* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck; },
5209 +/* harmony export */ defaultMemoize: function() { return /* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize; }
5210 +/* harmony export */ });
5211 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "./node_modules/reselect/es/defaultMemoize.js");
5212 +
5213 +
5214 +
5215 +function getDependencies(funcs) {
5216 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
5217 +
5218 + if (!dependencies.every(function (dep) {
5219 + return typeof dep === 'function';
5220 + })) {
5221 + var dependencyTypes = dependencies.map(function (dep) {
5222 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
5223 + }).join(', ');
5224 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
5225 + }
5226 +
5227 + return dependencies;
5228 +}
5229 +
5230 +function createSelectorCreator(memoize) {
5231 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5232 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
5233 + }
5234 +
5235 + var createSelector = function createSelector() {
5236 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5237 + funcs[_key2] = arguments[_key2];
5238 + }
5239 +
5240 + var _recomputations = 0;
5241 +
5242 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5243 + // So, start by declaring the default value here.
5244 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5245 +
5246 +
5247 + var directlyPassedOptions = {
5248 + memoizeOptions: undefined
5249 + }; // Normally, the result func or "output selector" is the last arg
5250 +
5251 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5252 +
5253 + if (typeof resultFunc === 'object') {
5254 + directlyPassedOptions = resultFunc; // and pop the real result func off
5255 +
5256 + resultFunc = funcs.pop();
5257 + }
5258 +
5259 + if (typeof resultFunc !== 'function') {
5260 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5261 + } // Determine which set of options we're using. Prefer options passed directly,
5262 + // but fall back to options given to createSelectorCreator.
5263 +
5264 +
5265 + var _directlyPassedOption = directlyPassedOptions,
5266 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5267 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5268 + // is an array. In most libs I've looked at, it's an equality function or options object.
5269 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5270 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5271 + // we wrap it in an array so we can apply it.
5272 +
5273 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5274 + var dependencies = getDependencies(funcs);
5275 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5276 + _recomputations++; // apply arguments instead of spreading for performance.
5277 +
5278 + return resultFunc.apply(null, arguments);
5279 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5280 +
5281 + var selector = memoize(function dependenciesChecker() {
5282 + var params = [];
5283 + var length = dependencies.length;
5284 +
5285 + for (var i = 0; i < length; i++) {
5286 + // apply arguments instead of spreading and mutate a local list of params for performance.
5287 + // @ts-ignore
5288 + params.push(dependencies[i].apply(null, arguments));
5289 + } // apply arguments instead of spreading for performance.
5290 +
5291 +
5292 + _lastResult = memoizedResultFunc.apply(null, params);
5293 + return _lastResult;
5294 + });
5295 + Object.assign(selector, {
5296 + resultFunc: resultFunc,
5297 + memoizedResultFunc: memoizedResultFunc,
5298 + dependencies: dependencies,
5299 + lastResult: function lastResult() {
5300 + return _lastResult;
5301 + },
5302 + recomputations: function recomputations() {
5303 + return _recomputations;
5304 + },
5305 + resetRecomputations: function resetRecomputations() {
5306 + return _recomputations = 0;
5307 + }
5308 + });
5309 + return selector;
5310 + }; // @ts-ignore
5311 +
5312 +
5313 + return createSelector;
5314 +}
5315 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
5316 +// Manual definition of state and output arguments
5317 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
5318 + if (selectorCreator === void 0) {
5319 + selectorCreator = createSelector;
5320 + }
5321 +
5322 + if (typeof selectors !== 'object') {
5323 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
5324 + }
5325 +
5326 + var objectKeys = Object.keys(selectors);
5327 + var resultSelector = selectorCreator( // @ts-ignore
5328 + objectKeys.map(function (key) {
5329 + return selectors[key];
5330 + }), function () {
5331 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5332 + values[_key3] = arguments[_key3];
5333 + }
5334 +
5335 + return values.reduce(function (composition, value, index) {
5336 + composition[objectKeys[index]] = value;
5337 + return composition;
5338 + }, {});
5339 + });
5340 + return resultSelector;
5341 +};
5342 +
5343 +/***/ }),
5344 +
5345 +/***/ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js":
5346 +/*!**********************************************************************************************!*\
5347 + !*** ./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js ***!
5348 + \**********************************************************************************************/
5349 +/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5350 +
5351 +/**
5352 + * @license React
5353 + * use-sync-external-store-shim.development.js
5354 + *
5355 + * Copyright (c) Facebook, Inc. and its affiliates.
5356 + *
5357 + * This source code is licensed under the MIT license found in the
5358 + * LICENSE file in the root directory of this source tree.
5359 + */
5360 +
5361 +
5362 +
5363 +if (true) {
5364 + (function() {
5365 +
5366 + 'use strict';
5367 +
5368 +/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5369 +if (
5370 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
5371 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
5372 + 'function'
5373 +) {
5374 + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
5375 +}
5376 + var React = __webpack_require__(/*! react */ "react");
5377 +
5378 +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
5379 +
5380 +function error(format) {
5381 + {
5382 + {
5383 + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
5384 + args[_key2 - 1] = arguments[_key2];
5385 + }
5386 +
5387 + printWarning('error', format, args);
5388 + }
5389 + }
5390 +}
5391 +
5392 +function printWarning(level, format, args) {
5393 + // When changing this logic, you might want to also
5394 + // update consoleWithStackDev.www.js as well.
5395 + {
5396 + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
5397 + var stack = ReactDebugCurrentFrame.getStackAddendum();
5398 +
5399 + if (stack !== '') {
5400 + format += '%s';
5401 + args = args.concat([stack]);
5402 + } // eslint-disable-next-line react-internal/safe-string-coercion
5403 +
5404 +
5405 + var argsWithFormat = args.map(function (item) {
5406 + return String(item);
5407 + }); // Careful: RN currently depends on this prefix
5408 +
5409 + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
5410 + // breaks IE9: https://github.com/facebook/react/issues/13610
5411 + // eslint-disable-next-line react-internal/no-production-logging
5412 +
5413 + Function.prototype.apply.call(console[level], console, argsWithFormat);
5414 + }
5415 +}
5416 +
5417 +/**
5418 + * inlined Object.is polyfill to avoid requiring consumers ship their own
5419 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5420 + */
5421 +function is(x, y) {
5422 + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
5423 + ;
5424 +}
5425 +
5426 +var objectIs = typeof Object.is === 'function' ? Object.is : is;
5427 +
5428 +// dispatch for CommonJS interop named imports.
5429 +
5430 +var useState = React.useState,
5431 + useEffect = React.useEffect,
5432 + useLayoutEffect = React.useLayoutEffect,
5433 + useDebugValue = React.useDebugValue;
5434 +var didWarnOld18Alpha = false;
5435 +var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
5436 +// because of a very particular set of implementation details and assumptions
5437 +// -- change any one of them and it will break. The most important assumption
5438 +// is that updates are always synchronous, because concurrent rendering is
5439 +// only available in versions of React that also have a built-in
5440 +// useSyncExternalStore API. And we only use this shim when the built-in API
5441 +// does not exist.
5442 +//
5443 +// Do not assume that the clever hacks used by this hook also work in general.
5444 +// The point of this shim is to replace the need for hacks by other libraries.
5445 +
5446 +function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
5447 +// React do not expose a way to check if we're hydrating. So users of the shim
5448 +// will need to track that themselves and return the correct value
5449 +// from `getSnapshot`.
5450 +getServerSnapshot) {
5451 + {
5452 + if (!didWarnOld18Alpha) {
5453 + if (React.startTransition !== undefined) {
5454 + didWarnOld18Alpha = true;
5455 +
5456 + error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
5457 + }
5458 + }
5459 + } // Read the current snapshot from the store on every render. Again, this
5460 + // breaks the rules of React, and only works here because of specific
5461 + // implementation details, most importantly that updates are
5462 + // always synchronous.
5463 +
5464 +
5465 + var value = getSnapshot();
5466 +
5467 + {
5468 + if (!didWarnUncachedGetSnapshot) {
5469 + var cachedValue = getSnapshot();
5470 +
5471 + if (!objectIs(value, cachedValue)) {
5472 + error('The result of getSnapshot should be cached to avoid an infinite loop');
5473 +
5474 + didWarnUncachedGetSnapshot = true;
5475 + }
5476 + }
5477 + } // Because updates are synchronous, we don't queue them. Instead we force a
5478 + // re-render whenever the subscribed state changes by updating an some
5479 + // arbitrary useState hook. Then, during render, we call getSnapshot to read
5480 + // the current value.
5481 + //
5482 + // Because we don't actually use the state returned by the useState hook, we
5483 + // can save a bit of memory by storing other stuff in that slot.
5484 + //
5485 + // To implement the early bailout, we need to track some things on a mutable
5486 + // object. Usually, we would put that in a useRef hook, but we can stash it in
5487 + // our useState hook instead.
5488 + //
5489 + // To force a re-render, we call forceUpdate({inst}). That works because the
5490 + // new object always fails an equality check.
5491 +
5492 +
5493 + var _useState = useState({
5494 + inst: {
5495 + value: value,
5496 + getSnapshot: getSnapshot
5497 + }
5498 + }),
5499 + inst = _useState[0].inst,
5500 + forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
5501 + // in the layout phase so we can access it during the tearing check that
5502 + // happens on subscribe.
5503 +
5504 +
5505 + useLayoutEffect(function () {
5506 + inst.value = value;
5507 + inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
5508 + // commit phase if there was an interleaved mutation. In concurrent mode
5509 + // this can happen all the time, but even in synchronous mode, an earlier
5510 + // effect may have mutated the store.
5511 +
5512 + if (checkIfSnapshotChanged(inst)) {
5513 + // Force a re-render.
5514 + forceUpdate({
5515 + inst: inst
5516 + });
5517 + }
5518 + }, [subscribe, value, getSnapshot]);
5519 + useEffect(function () {
5520 + // Check for changes right before subscribing. Subsequent changes will be
5521 + // detected in the subscription handler.
5522 + if (checkIfSnapshotChanged(inst)) {
5523 + // Force a re-render.
5524 + forceUpdate({
5525 + inst: inst
5526 + });
5527 + }
5528 +
5529 + var handleStoreChange = function () {
5530 + // TODO: Because there is no cross-renderer API for batching updates, it's
5531 + // up to the consumer of this library to wrap their subscription event
5532 + // with unstable_batchedUpdates. Should we try to detect when this isn't
5533 + // the case and print a warning in development?
5534 + // The store changed. Check if the snapshot changed since the last time we
5535 + // read from the store.
5536 + if (checkIfSnapshotChanged(inst)) {
5537 + // Force a re-render.
5538 + forceUpdate({
5539 + inst: inst
5540 + });
5541 + }
5542 + }; // Subscribe to the store and return a clean-up function.
5543 +
5544 +
5545 + return subscribe(handleStoreChange);
5546 + }, [subscribe]);
5547 + useDebugValue(value);
5548 + return value;
5549 +}
5550 +
5551 +function checkIfSnapshotChanged(inst) {
5552 + var latestGetSnapshot = inst.getSnapshot;
5553 + var prevValue = inst.value;
5554 +
5555 + try {
5556 + var nextValue = latestGetSnapshot();
5557 + return !objectIs(prevValue, nextValue);
5558 + } catch (error) {
5559 + return true;
5560 + }
5561 +}
5562 +
5563 +function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
5564 + // Note: The shim does not use getServerSnapshot, because pre-18 versions of
5565 + // React do not expose a way to check if we're hydrating. So users of the shim
5566 + // will need to track that themselves and return the correct value
5567 + // from `getSnapshot`.
5568 + return getSnapshot();
5569 +}
5570 +
5571 +var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
5572 +
5573 +var isServerEnvironment = !canUseDOM;
5574 +
5575 +var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
5576 +var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
5577 +
5578 +exports.useSyncExternalStore = useSyncExternalStore$2;
5579 + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5580 +if (
5581 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
5582 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
5583 + 'function'
5584 +) {
5585 + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
5586 +}
5587 +
5588 + })();
5589 +}
5590 +
5591 +
5592 +/***/ }),
5593 +
5594 +/***/ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js":
5595 +/*!************************************************************************************************************!*\
5596 + !*** ./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js ***!
5597 + \************************************************************************************************************/
5598 +/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5599 +
5600 +/**
5601 + * @license React
5602 + * use-sync-external-store-shim/with-selector.development.js
5603 + *
5604 + * Copyright (c) Facebook, Inc. and its affiliates.
5605 + *
5606 + * This source code is licensed under the MIT license found in the
5607 + * LICENSE file in the root directory of this source tree.
5608 + */
5609 +
5610 +
5611 +
5612 +if (true) {
5613 + (function() {
5614 +
5615 + 'use strict';
5616 +
5617 +/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5618 +if (
5619 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
5620 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
5621 + 'function'
5622 +) {
5623 + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
5624 +}
5625 + var React = __webpack_require__(/*! react */ "react");
5626 +var shim = __webpack_require__(/*! use-sync-external-store/shim */ "./node_modules/use-sync-external-store/shim/index.js");
5627 +
5628 +/**
5629 + * inlined Object.is polyfill to avoid requiring consumers ship their own
5630 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5631 + */
5632 +function is(x, y) {
5633 + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
5634 + ;
5635 +}
5636 +
5637 +var objectIs = typeof Object.is === 'function' ? Object.is : is;
5638 +
5639 +var useSyncExternalStore = shim.useSyncExternalStore;
5640 +
5641 +// for CommonJS interop.
5642 +
5643 +var useRef = React.useRef,
5644 + useEffect = React.useEffect,
5645 + useMemo = React.useMemo,
5646 + useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.
5647 +
5648 +function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
5649 + // Use this to track the rendered snapshot.
5650 + var instRef = useRef(null);
5651 + var inst;
5652 +
5653 + if (instRef.current === null) {
5654 + inst = {
5655 + hasValue: false,
5656 + value: null
5657 + };
5658 + instRef.current = inst;
5659 + } else {
5660 + inst = instRef.current;
5661 + }
5662 +
5663 + var _useMemo = useMemo(function () {
5664 + // Track the memoized state using closure variables that are local to this
5665 + // memoized instance of a getSnapshot function. Intentionally not using a
5666 + // useRef hook, because that state would be shared across all concurrent
5667 + // copies of the hook/component.
5668 + var hasMemo = false;
5669 + var memoizedSnapshot;
5670 + var memoizedSelection;
5671 +
5672 + var memoizedSelector = function (nextSnapshot) {
5673 + if (!hasMemo) {
5674 + // The first time the hook is called, there is no memoized result.
5675 + hasMemo = true;
5676 + memoizedSnapshot = nextSnapshot;
5677 +
5678 + var _nextSelection = selector(nextSnapshot);
5679 +
5680 + if (isEqual !== undefined) {
5681 + // Even if the selector has changed, the currently rendered selection
5682 + // may be equal to the new selection. We should attempt to reuse the
5683 + // current value if possible, to preserve downstream memoizations.
5684 + if (inst.hasValue) {
5685 + var currentSelection = inst.value;
5686 +
5687 + if (isEqual(currentSelection, _nextSelection)) {
5688 + memoizedSelection = currentSelection;
5689 + return currentSelection;
5690 + }
5691 + }
5692 + }
5693 +
5694 + memoizedSelection = _nextSelection;
5695 + return _nextSelection;
5696 + } // We may be able to reuse the previous invocation's result.
5697 +
5698 +
5699 + // We may be able to reuse the previous invocation's result.
5700 + var prevSnapshot = memoizedSnapshot;
5701 + var prevSelection = memoizedSelection;
5702 +
5703 + if (objectIs(prevSnapshot, nextSnapshot)) {
5704 + // The snapshot is the same as last time. Reuse the previous selection.
5705 + return prevSelection;
5706 + } // The snapshot has changed, so we need to compute a new selection.
5707 +
5708 +
5709 + // The snapshot has changed, so we need to compute a new selection.
5710 + var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data
5711 + // has changed. If it hasn't, return the previous selection. That signals
5712 + // to React that the selections are conceptually equal, and we can bail
5713 + // out of rendering.
5714 +
5715 + // If a custom isEqual function is provided, use that to check if the data
5716 + // has changed. If it hasn't, return the previous selection. That signals
5717 + // to React that the selections are conceptually equal, and we can bail
5718 + // out of rendering.
5719 + if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {
5720 + return prevSelection;
5721 + }
5722 +
5723 + memoizedSnapshot = nextSnapshot;
5724 + memoizedSelection = nextSelection;
5725 + return nextSelection;
5726 + }; // Assigning this to a constant so that Flow knows it can't change.
5727 +
5728 +
5729 + // Assigning this to a constant so that Flow knows it can't change.
5730 + var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;
5731 +
5732 + var getSnapshotWithSelector = function () {
5733 + return memoizedSelector(getSnapshot());
5734 + };
5735 +
5736 + var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {
5737 + return memoizedSelector(maybeGetServerSnapshot());
5738 + };
5739 + return [getSnapshotWithSelector, getServerSnapshotWithSelector];
5740 + }, [getSnapshot, getServerSnapshot, selector, isEqual]),
5741 + getSelection = _useMemo[0],
5742 + getServerSelection = _useMemo[1];
5743 +
5744 + var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
5745 + useEffect(function () {
5746 + inst.hasValue = true;
5747 + inst.value = value;
5748 + }, [value]);
5749 + useDebugValue(value);
5750 + return value;
5751 +}
5752 +
5753 +exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
5754 + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5755 +if (
5756 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
5757 + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
5758 + 'function'
5759 +) {
5760 + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
5761 +}
5762 +
5763 + })();
5764 +}
5765 +
5766 +
5767 +/***/ }),
5768 +
5769 +/***/ "./node_modules/use-sync-external-store/shim/index.js":
5770 +/*!************************************************************!*\
5771 + !*** ./node_modules/use-sync-external-store/shim/index.js ***!
5772 + \************************************************************/
5773 +/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5774 +
5775 +
5776 +
5777 +if (false) {} else {
5778 + module.exports = __webpack_require__(/*! ../cjs/use-sync-external-store-shim.development.js */ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js");
5779 +}
5780 +
5781 +
5782 +/***/ }),
5783 +
5784 +/***/ "./node_modules/use-sync-external-store/shim/with-selector.js":
5785 +/*!********************************************************************!*\
5786 + !*** ./node_modules/use-sync-external-store/shim/with-selector.js ***!
5787 + \********************************************************************/
5788 +/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5789 +
5790 +
5791 +
5792 +if (false) {} else {
5793 + module.exports = __webpack_require__(/*! ../cjs/use-sync-external-store-shim/with-selector.development.js */ "./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js");
5794 +}
5795 +
5796 +
5797 +/***/ }),
5798 +
5799 +/***/ "react":
5800 +/*!**************************!*\
5801 + !*** external ["React"] ***!
5802 + \**************************/
5803 +/***/ (function(module) {
5804 +
5805 +module.exports = window["React"];
5806 +
5807 +/***/ }),
5808 +
5809 +/***/ "react-dom":
5810 +/*!*****************************!*\
5811 + !*** external ["ReactDOM"] ***!
5812 + \*****************************/
5813 +/***/ (function(module) {
5814 +
5815 +module.exports = window["ReactDOM"];
5816 +
5817 +/***/ }),
5818 +
5819 +/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
5820 +/*!*******************************************************************!*\
5821 + !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
5822 + \*******************************************************************/
5823 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5824 +
5825 +__webpack_require__.r(__webpack_exports__);
5826 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5827 +/* harmony export */ "default": function() { return /* binding */ _defineProperty; }
5828 +/* harmony export */ });
5829 +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
5830 +
5831 +function _defineProperty(obj, key, value) {
5832 + key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
5833 + if (key in obj) {
5834 + Object.defineProperty(obj, key, {
5835 + value: value,
5836 + enumerable: true,
5837 + configurable: true,
5838 + writable: true
5839 + });
5840 + } else {
5841 + obj[key] = value;
5842 + }
5843 + return obj;
5844 +}
5845 +
5846 +/***/ }),
5847 +
5848 +/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
5849 +/*!************************************************************!*\
5850 + !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
5851 + \************************************************************/
5852 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5853 +
5854 +__webpack_require__.r(__webpack_exports__);
5855 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5856 +/* harmony export */ "default": function() { return /* binding */ _extends; }
5857 +/* harmony export */ });
5858 +function _extends() {
5859 + _extends = Object.assign ? Object.assign.bind() : function (target) {
5860 + for (var i = 1; i < arguments.length; i++) {
5861 + var source = arguments[i];
5862 + for (var key in source) {
5863 + if (Object.prototype.hasOwnProperty.call(source, key)) {
5864 + target[key] = source[key];
5865 + }
5866 + }
5867 + }
5868 + return target;
5869 + };
5870 + return _extends.apply(this, arguments);
5871 +}
5872 +
5873 +/***/ }),
5874 +
5875 +/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
5876 +/*!******************************************************************!*\
5877 + !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
5878 + \******************************************************************/
5879 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5880 +
5881 +__webpack_require__.r(__webpack_exports__);
5882 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5883 +/* harmony export */ "default": function() { return /* binding */ _objectSpread2; }
5884 +/* harmony export */ });
5885 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
5886 +
5887 +function ownKeys(object, enumerableOnly) {
5888 + var keys = Object.keys(object);
5889 + if (Object.getOwnPropertySymbols) {
5890 + var symbols = Object.getOwnPropertySymbols(object);
5891 + enumerableOnly && (symbols = symbols.filter(function (sym) {
5892 + return Object.getOwnPropertyDescriptor(object, sym).enumerable;
5893 + })), keys.push.apply(keys, symbols);
5894 + }
5895 + return keys;
5896 +}
5897 +function _objectSpread2(target) {
5898 + for (var i = 1; i < arguments.length; i++) {
5899 + var source = null != arguments[i] ? arguments[i] : {};
5900 + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
5901 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]);
5902 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
5903 + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5904 + });
5905 + }
5906 + return target;
5907 +}
5908 +
5909 +/***/ }),
5910 +
5911 +/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
5912 +/*!*********************************************************************************!*\
5913 + !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
5914 + \*********************************************************************************/
5915 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5916 +
5917 +__webpack_require__.r(__webpack_exports__);
5918 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5919 +/* harmony export */ "default": function() { return /* binding */ _objectWithoutPropertiesLoose; }
5920 +/* harmony export */ });
5921 +function _objectWithoutPropertiesLoose(source, excluded) {
5922 + if (source == null) return {};
5923 + var target = {};
5924 + var sourceKeys = Object.keys(source);
5925 + var key, i;
5926 + for (i = 0; i < sourceKeys.length; i++) {
5927 + key = sourceKeys[i];
5928 + if (excluded.indexOf(key) >= 0) continue;
5929 + target[key] = source[key];
5930 + }
5931 + return target;
5932 +}
5933 +
5934 +/***/ }),
5935 +
5936 +/***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
5937 +/*!****************************************************************!*\
5938 + !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
5939 + \****************************************************************/
5940 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5941 +
5942 +__webpack_require__.r(__webpack_exports__);
5943 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5944 +/* harmony export */ "default": function() { return /* binding */ _toPrimitive; }
5945 +/* harmony export */ });
5946 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
5947 +
5948 +function _toPrimitive(input, hint) {
5949 + if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input;
5950 + var prim = input[Symbol.toPrimitive];
5951 + if (prim !== undefined) {
5952 + var res = prim.call(input, hint || "default");
5953 + if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(res) !== "object") return res;
5954 + throw new TypeError("@@toPrimitive must return a primitive value.");
5955 + }
5956 + return (hint === "string" ? String : Number)(input);
5957 +}
5958 +
5959 +/***/ }),
5960 +
5961 +/***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
5962 +/*!******************************************************************!*\
5963 + !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
5964 + \******************************************************************/
5965 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5966 +
5967 +__webpack_require__.r(__webpack_exports__);
5968 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5969 +/* harmony export */ "default": function() { return /* binding */ _toPropertyKey; }
5970 +/* harmony export */ });
5971 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
5972 +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
5973 +
5974 +
5975 +function _toPropertyKey(arg) {
5976 + var key = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arg, "string");
5977 + return (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key) === "symbol" ? key : String(key);
5978 +}
5979 +
5980 +/***/ }),
5981 +
5982 +/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
5983 +/*!***********************************************************!*\
5984 + !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
5985 + \***********************************************************/
5986 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
5987 +
5988 +__webpack_require__.r(__webpack_exports__);
5989 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5990 +/* harmony export */ "default": function() { return /* binding */ _typeof; }
5991 +/* harmony export */ });
5992 +function _typeof(obj) {
5993 + "@babel/helpers - typeof";
5994 +
5995 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
5996 + return typeof obj;
5997 + } : function (obj) {
5998 + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
5999 + }, _typeof(obj);
6000 +}
6001 +
6002 +/***/ }),
6003 +
6004 +/***/ "./node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.esm.mjs":
6005 +/*!*****************************************************************************!*\
6006 + !*** ./node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.esm.mjs ***!
6007 + \*****************************************************************************/
6008 +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
6009 +
6010 +__webpack_require__.r(__webpack_exports__);
6011 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6012 +/* harmony export */ Immer: function() { return /* binding */ un; },
6013 +/* harmony export */ applyPatches: function() { return /* binding */ pn; },
6014 +/* harmony export */ castDraft: function() { return /* binding */ K; },
6015 +/* harmony export */ castImmutable: function() { return /* binding */ $; },
6016 +/* harmony export */ createDraft: function() { return /* binding */ ln; },
6017 +/* harmony export */ current: function() { return /* binding */ R; },
6018 +/* harmony export */ enableAllPlugins: function() { return /* binding */ J; },
6019 +/* harmony export */ enableES5: function() { return /* binding */ F; },
6020 +/* harmony export */ enableMapSet: function() { return /* binding */ C; },
6021 +/* harmony export */ enablePatches: function() { return /* binding */ T; },
6022 +/* harmony export */ finishDraft: function() { return /* binding */ dn; },
6023 +/* harmony export */ freeze: function() { return /* binding */ d; },
6024 +/* harmony export */ immerable: function() { return /* binding */ L; },
6025 +/* harmony export */ isDraft: function() { return /* binding */ r; },
6026 +/* harmony export */ isDraftable: function() { return /* binding */ t; },
6027 +/* harmony export */ nothing: function() { return /* binding */ H; },
6028 +/* harmony export */ original: function() { return /* binding */ e; },
6029 +/* harmony export */ produce: function() { return /* binding */ fn; },
6030 +/* harmony export */ produceWithPatches: function() { return /* binding */ cn; },
6031 +/* harmony export */ setAutoFreeze: function() { return /* binding */ sn; },
6032 +/* harmony export */ setUseProxies: function() { return /* binding */ vn; }
6033 +/* harmony export */ });
6034 +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)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function 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 */ __webpack_exports__["default"] = (fn);
6035 +//# sourceMappingURL=immer.esm.js.map
6036 +
6037 +
6038 +/***/ })
6039 +
6040 +/******/ });
6041 +/************************************************************************/
6042 +/******/ // The module cache
6043 +/******/ var __webpack_module_cache__ = {};
6044 +/******/
6045 +/******/ // The require function
6046 +/******/ function __webpack_require__(moduleId) {
6047 +/******/ // Check if module is in cache
6048 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
6049 +/******/ if (cachedModule !== undefined) {
6050 +/******/ return cachedModule.exports;
6051 +/******/ }
6052 +/******/ // Create a new module (and put it into the cache)
6053 +/******/ var module = __webpack_module_cache__[moduleId] = {
6054 +/******/ // no module.id needed
6055 +/******/ // no module.loaded needed
6056 +/******/ exports: {}
6057 +/******/ };
6058 +/******/
6059 +/******/ // Execute the module function
6060 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6061 +/******/
6062 +/******/ // Return the exports of the module
6063 +/******/ return module.exports;
6064 +/******/ }
6065 +/******/
6066 +/************************************************************************/
6067 +/******/ /* webpack/runtime/compat get default export */
6068 +/******/ !function() {
6069 +/******/ // getDefaultExport function for compatibility with non-harmony modules
6070 +/******/ __webpack_require__.n = function(module) {
6071 +/******/ var getter = module && module.__esModule ?
6072 +/******/ function() { return module['default']; } :
6073 +/******/ function() { return module; };
6074 +/******/ __webpack_require__.d(getter, { a: getter });
6075 +/******/ return getter;
6076 +/******/ };
6077 +/******/ }();
6078 +/******/
6079 +/******/ /* webpack/runtime/define property getters */
6080 +/******/ !function() {
6081 +/******/ // define getter functions for harmony exports
6082 +/******/ __webpack_require__.d = function(exports, definition) {
6083 +/******/ for(var key in definition) {
6084 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
6085 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
6086 +/******/ }
6087 +/******/ }
6088 +/******/ };
6089 +/******/ }();
6090 +/******/
6091 +/******/ /* webpack/runtime/global */
6092 +/******/ !function() {
6093 +/******/ __webpack_require__.g = (function() {
6094 +/******/ if (typeof globalThis === 'object') return globalThis;
6095 +/******/ try {
6096 +/******/ return this || new Function('return this')();
6097 +/******/ } catch (e) {
6098 +/******/ if (typeof window === 'object') return window;
6099 +/******/ }
6100 +/******/ })();
6101 +/******/ }();
6102 +/******/
6103 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
6104 +/******/ !function() {
6105 +/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
6106 +/******/ }();
6107 +/******/
6108 +/******/ /* webpack/runtime/make namespace object */
6109 +/******/ !function() {
6110 +/******/ // define __esModule on exports
6111 +/******/ __webpack_require__.r = function(exports) {
6112 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6113 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6114 +/******/ }
6115 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
6116 +/******/ };
6117 +/******/ }();
6118 +/******/
6119 +/************************************************************************/
6120 +var __webpack_exports__ = {};
6121 +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
6122 +!function() {
6123 +/*!******************************************************!*\
6124 + !*** ./node_modules/@elementor/store/dist/index.mjs ***!
6125 + \******************************************************/
6126 +__webpack_require__.r(__webpack_exports__);
6127 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6128 +/* harmony export */ __StoreProvider: function() { return /* reexport safe */ react_redux__WEBPACK_IMPORTED_MODULE_0__.Provider; },
6129 +/* harmony export */ __addMiddleware: function() { return /* binding */ addMiddleware; },
6130 +/* harmony export */ __createSelector: function() { return /* reexport safe */ _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_3__.createSelector; },
6131 +/* harmony export */ __createSlice: function() { return /* reexport safe */ _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.createSlice; },
6132 +/* harmony export */ __createStore: function() { return /* binding */ createStore; },
6133 +/* harmony export */ __deleteStore: function() { return /* binding */ deleteStore; },
6134 +/* harmony export */ __dispatch: function() { return /* binding */ dispatch; },
6135 +/* harmony export */ __getState: function() { return /* binding */ getState; },
6136 +/* harmony export */ __getStore: function() { return /* binding */ getStore; },
6137 +/* harmony export */ __registerSlice: function() { return /* binding */ registerSlice; },
6138 +/* harmony export */ __subscribe: function() { return /* binding */ subscribe; },
6139 +/* harmony export */ __useDispatch: function() { return /* reexport safe */ react_redux__WEBPACK_IMPORTED_MODULE_0__.useDispatch; },
6140 +/* harmony export */ __useSelector: function() { return /* reexport safe */ react_redux__WEBPACK_IMPORTED_MODULE_0__.useSelector; }
6141 +/* harmony export */ });
6142 +/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @reduxjs/toolkit */ "./node_modules/redux/es/redux.js");
6143 +/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @reduxjs/toolkit */ "./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
6144 +/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @reduxjs/toolkit */ "./node_modules/reselect/es/index.js");
6145 +/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-redux */ "./node_modules/@elementor/store/node_modules/react-redux/es/index.js");
6146 +// src/index.ts
6147 +
6148 +
6149 +
6150 +var instance = null;
6151 +var slices = {};
6152 +var pendingActions = [];
6153 +var middlewares = /* @__PURE__ */ new Set();
6154 +var getReducers = () => {
6155 + const reducers = Object.entries(slices).reduce((reducersData, [name, slice]) => {
6156 + reducersData[name] = slice.reducer;
6157 + return reducersData;
6158 + }, {});
6159 + return (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__.combineReducers)(reducers);
6160 +};
6161 +function registerSlice(slice) {
6162 + if (slices[slice.name]) {
6163 + throw new Error(`Slice with name "${slice.name}" already exists.`);
6164 + }
6165 + slices[slice.name] = slice;
6166 +}
6167 +var addMiddleware = (middleware) => {
6168 + middlewares.add(middleware);
6169 +};
6170 +var dispatch = (action) => {
6171 + if (!instance) {
6172 + pendingActions.push(action);
6173 + return;
6174 + }
6175 + return instance.dispatch(action);
6176 +};
6177 +var getState = () => {
6178 + if (!instance) {
6179 + throw new Error("The store instance does not exist.");
6180 + }
6181 + return instance.getState();
6182 +};
6183 +var subscribe = (listener) => {
6184 + if (!instance) {
6185 + throw new Error("The store instance does not exist.");
6186 + }
6187 + return instance.subscribe(listener);
6188 +};
6189 +var createStore = () => {
6190 + if (instance) {
6191 + throw new Error("The store instance already exists.");
6192 + }
6193 + instance = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.configureStore)({
6194 + reducer: getReducers(),
6195 + middleware: Array.from(middlewares)
6196 + });
6197 + if (pendingActions.length) {
6198 + pendingActions.forEach((action) => dispatch(action));
6199 + pendingActions.length = 0;
6200 + }
6201 + return instance;
6202 +};
6203 +var getStore = () => {
6204 + return instance;
6205 +};
6206 +var deleteStore = () => {
6207 + instance = null;
6208 + slices = {};
6209 + pendingActions.length = 0;
6210 + middlewares.clear();
6211 +};
6212 +
6213 +//# sourceMappingURL=index.mjs.map
6214 +}();
6215 +(window.elementorV2 = window.elementorV2 || {}).store = __webpack_exports__;
6216 +/******/ })()
6217 +;