PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
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/vendors-redux.js +4773 -6043 4.2.0-dev2 → 4.3.1 View file →
@@ -1,6103 +1,4833 @@
1 -/******/ (() => { // webpackBootstrap
2 -/******/ var __webpack_modules__ = ({
1 +(function(react, react_dom) {
3 2
4 -/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
5 -/*!********************************************************************!*\
6 - !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
7 - \********************************************************************/
8 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3 +//#region \0rolldown/runtime.js
4 + var __create = Object.create;
5 + var __defProp$1 = Object.defineProperty;
6 + var __name = (target, value) => __defProp$1(target, "name", {
7 + value,
8 + configurable: true
9 + });
10 + var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 + var __getOwnPropNames = Object.getOwnPropertyNames;
12 + var __getProtoOf = Object.getPrototypeOf;
13 + var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
14 + var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 + var __exportAll = (all, no_symbols) => {
16 + let target = {};
17 + for (var name in all) {
18 + __defProp$1(target, name, {
19 + get: all[name],
20 + enumerable: true
21 + });
22 + }
23 + if (!no_symbols) {
24 + __defProp$1(target, Symbol.toStringTag, { value: "Module" });
25 + }
26 + return target;
27 + };
28 + var __copyProps = (to, from, except, desc) => {
29 + if (from && typeof from === "object" || typeof from === "function") {
30 + for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
31 + key = keys[i];
32 + if (!__hasOwnProp$1.call(to, key) && key !== except) {
33 + __defProp$1(to, key, {
34 + get: ((k) => from[k]).bind(null, key),
35 + enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
36 + });
37 + }
38 + }
39 + }
40 + return to;
41 + };
42 + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", {
43 + value: mod,
44 + enumerable: true
45 + }) : target, mod));
9 46
10 -"use strict";
11 -__webpack_require__.r(__webpack_exports__);
12 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
13 -/* harmony export */ "default": () => (/* binding */ _defineProperty)
14 -/* harmony export */ });
15 -/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
47 +//#endregion
48 +react = __toESM(react);
16 49
17 -function _defineProperty(e, r, t) {
18 - return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
19 - value: t,
20 - enumerable: !0,
21 - configurable: !0,
22 - writable: !0
23 - }) : e[r] = t, e;
24 -}
50 +//#region node_modules/immer/dist/immer.esm.mjs
51 + function n(n) {
52 + for (var r = arguments.length, t = Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++) t[e - 1] = arguments[e];
53 + var i = Y[n];
54 + var o = i ? "function" == typeof i ? i.apply(null, t) : i : "unknown error nr: " + n;
55 + throw Error("[Immer] " + o);
56 + }
57 + function r(n) {
58 + return !!n && !!n[Q];
59 + }
60 + function t(n) {
61 + var r;
62 + return !!n && (function(n) {
63 + if (!n || "object" != typeof n) return !1;
64 + var r = Object.getPrototypeOf(n);
65 + if (null === r) return !0;
66 + var t = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
67 + return t === Object || "function" == typeof t && Function.toString.call(t) === Z;
68 + }(n) || Array.isArray(n) || !!n[L] || !!(null === (r = n.constructor) || void 0 === r ? void 0 : r[L]) || s(n) || v(n));
69 + }
70 + function e(t) {
71 + return r(t) || n(23, t), t[Q].t;
72 + }
73 + function i(n, r, t) {
74 + void 0 === t && (t = !1), 0 === o(n) ? (t ? Object.keys : nn)(n).forEach((function(e) {
75 + t && "symbol" == typeof e || r(e, n[e], n);
76 + })) : n.forEach((function(t, e) {
77 + return r(e, t, n);
78 + }));
79 + }
80 + function o(n) {
81 + var r = n[Q];
82 + return r ? r.i > 3 ? r.i - 4 : r.i : Array.isArray(n) ? 1 : s(n) ? 2 : v(n) ? 3 : 0;
83 + }
84 + function u(n, r) {
85 + return 2 === o(n) ? n.has(r) : Object.prototype.hasOwnProperty.call(n, r);
86 + }
87 + function a(n, r) {
88 + return 2 === o(n) ? n.get(r) : n[r];
89 + }
90 + function f(n, r, t) {
91 + var e = o(n);
92 + 2 === e ? n.set(r, t) : 3 === e ? n.add(t) : n[r] = t;
93 + }
94 + function c(n, r) {
95 + return n === r ? 0 !== n || 1 / n == 1 / r : n != n && r != r;
96 + }
97 + function s(n) {
98 + return X && n instanceof Map;
99 + }
100 + function v(n) {
101 + return q && n instanceof Set;
102 + }
103 + function p(n) {
104 + return n.o || n.t;
105 + }
106 + function l(n) {
107 + if (Array.isArray(n)) return Array.prototype.slice.call(n);
108 + var r = rn(n);
109 + delete r[Q];
110 + for (var t = nn(r), e = 0; e < t.length; e++) {
111 + var i = t[e];
112 + var o = r[i];
113 + !1 === o.writable && (o.writable = !0, o.configurable = !0), (o.get || o.set) && (r[i] = {
114 + configurable: !0,
115 + writable: !0,
116 + enumerable: o.enumerable,
117 + value: n[i]
118 + });
119 + }
120 + return Object.create(Object.getPrototypeOf(n), r);
121 + }
122 + function d(n, e) {
123 + 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) {
124 + return d(r, !0);
125 + }), !0)), n;
126 + }
127 + function h() {
128 + n(2);
129 + }
130 + function y(n) {
131 + return null == n || "object" != typeof n || Object.isFrozen(n);
132 + }
133 + function b(r) {
134 + var t = tn[r];
135 + return t || n(18, r), t;
136 + }
137 + function m(n, r) {
138 + tn[n] || (tn[n] = r);
139 + }
140 + function _() {
141 + return U || n(0), U;
142 + }
143 + function j(n, r) {
144 + r && (b("Patches"), n.u = [], n.s = [], n.v = r);
145 + }
146 + function g(n) {
147 + O(n), n.p.forEach(S), n.p = null;
148 + }
149 + function O(n) {
150 + n === U && (U = n.l);
151 + }
152 + function w(n) {
153 + return U = {
154 + p: [],
155 + l: U,
156 + h: n,
157 + m: !0,
158 + _: 0
159 + };
160 + }
161 + function S(n) {
162 + var r = n[Q];
163 + 0 === r.i || 1 === r.i ? r.j() : r.g = !0;
164 + }
165 + function P(r, e) {
166 + e._ = e.p.length;
167 + var i = e.p[0];
168 + var o = void 0 !== r && r !== i;
169 + 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;
170 + }
171 + function M(n, r, t) {
172 + if (y(r)) return r;
173 + var e = r[Q];
174 + if (!e) return i(r, (function(i, o) {
175 + return A(n, e, r, i, o, t);
176 + }), !0), r;
177 + if (e.A !== n) return r;
178 + if (!e.P) return x(n, e.t, !0), e.t;
179 + if (!e.I) {
180 + e.I = !0, e.A._--;
181 + var o = 4 === e.i || 5 === e.i ? e.o = l(e.k) : e.o;
182 + var u = o;
183 + var a = !1;
184 + 3 === e.i && (u = new Set(o), o.clear(), a = !0), i(u, (function(r, i) {
185 + return A(n, e, o, r, i, t, a);
186 + })), x(n, o, !1), t && n.u && b("Patches").N(e, t, n.u, n.s);
187 + }
188 + return e.o;
189 + }
190 + function A(e, i, o, a, c, s, v) {
191 + if (c === o && n(5), r(c)) {
192 + var p = M(e, c, s && i && 3 !== i.i && !u(i.R, a) ? s.concat(a) : void 0);
193 + if (f(o, a, p), !r(p)) return;
194 + e.m = !1;
195 + } else v && o.add(c);
196 + if (t(c) && !y(c)) {
197 + if (!e.h.D && e._ < 1) return;
198 + M(e, c), i && i.A.l || x(e, c);
199 + }
200 + }
201 + function x(n, r, t) {
202 + void 0 === t && (t = !1), !n.l && n.h.D && n.m && d(r, t);
203 + }
204 + function z(n, r) {
205 + var t = n[Q];
206 + return (t ? p(t) : n)[r];
207 + }
208 + function I(n, r) {
209 + if (r in n) for (var t = Object.getPrototypeOf(n); t;) {
210 + var e = Object.getOwnPropertyDescriptor(t, r);
211 + if (e) return e;
212 + t = Object.getPrototypeOf(t);
213 + }
214 + }
215 + function k(n) {
216 + n.P || (n.P = !0, n.l && k(n.l));
217 + }
218 + function E(n) {
219 + n.o || (n.o = l(n.t));
220 + }
221 + function N(n, r, t) {
222 + var e = s(r) ? b("MapSet").F(r, t) : v(r) ? b("MapSet").T(r, t) : n.O ? function(n, r) {
223 + var t = Array.isArray(n);
224 + var e = {
225 + i: t ? 1 : 0,
226 + A: r ? r.A : _(),
227 + P: !1,
228 + I: !1,
229 + R: {},
230 + l: r,
231 + t: n,
232 + k: null,
233 + o: null,
234 + j: null,
235 + C: !1
236 + };
237 + var i = e;
238 + var o = en;
239 + t && (i = [e], o = on);
240 + var u = Proxy.revocable(i, o);
241 + var a = u.revoke;
242 + var f = u.proxy;
243 + return e.k = f, e.j = a, f;
244 + }(r, t) : b("ES5").J(r, t);
245 + return (t ? t.A : _()).p.push(e), e;
246 + }
247 + function R(e) {
248 + return r(e) || n(22, e), function n(r) {
249 + if (!t(r)) return r;
250 + var e;
251 + var u = r[Q];
252 + var c = o(r);
253 + if (u) {
254 + if (!u.P && (u.i < 4 || !b("ES5").K(u))) return u.t;
255 + u.I = !0, e = D(r, c), u.I = !1;
256 + } else e = D(r, c);
257 + return i(e, (function(r, t) {
258 + u && a(u.t, r) === t || f(e, r, n(t));
259 + })), 3 === c ? new Set(e) : e;
260 + }(e);
261 + }
262 + function D(n, r) {
263 + switch (r) {
264 + case 2: return new Map(n);
265 + case 3: return Array.from(n);
266 + }
267 + return l(n);
268 + }
269 + function F() {
270 + function t(n, r) {
271 + var t = s[n];
272 + return t ? t.enumerable = r : s[n] = t = {
273 + configurable: !0,
274 + enumerable: r,
275 + get: function() {
276 + var r = this[Q];
277 + return f(r), en.get(r, n);
278 + },
279 + set: function(r) {
280 + var t = this[Q];
281 + f(t), en.set(t, n, r);
282 + }
283 + }, t;
284 + }
285 + function e(n) {
286 + for (var r = n.length - 1; r >= 0; r--) {
287 + var t = n[r][Q];
288 + if (!t.P) switch (t.i) {
289 + case 5:
290 + a(t) && k(t);
291 + break;
292 + case 4: o(t) && k(t);
293 + }
294 + }
295 + }
296 + function o(n) {
297 + for (var r = n.t, t = n.k, e = nn(t), i = e.length - 1; i >= 0; i--) {
298 + var o = e[i];
299 + if (o !== Q) {
300 + var a = r[o];
301 + if (void 0 === a && !u(r, o)) return !0;
302 + var f = t[o];
303 + var s = f && f[Q];
304 + if (s ? s.t !== a : !c(f, a)) return !0;
305 + }
306 + }
307 + var v = !!r[Q];
308 + return e.length !== nn(r).length + (v ? 0 : 1);
309 + }
310 + function a(n) {
311 + var r = n.k;
312 + if (r.length !== n.t.length) return !0;
313 + var t = Object.getOwnPropertyDescriptor(r, r.length - 1);
314 + if (t && !t.get) return !0;
315 + for (var e = 0; e < r.length; e++) if (!r.hasOwnProperty(e)) return !0;
316 + return !1;
317 + }
318 + function f(r) {
319 + r.g && n(3, JSON.stringify(p(r)));
320 + }
321 + var s = {};
322 + m("ES5", {
323 + J: function(n, r) {
324 + var e = Array.isArray(n);
325 + var i = function(n, r) {
326 + if (n) {
327 + for (var e = Array(r.length), i = 0; i < r.length; i++) Object.defineProperty(e, "" + i, t(i, !0));
328 + return e;
329 + }
330 + var o = rn(r);
331 + delete o[Q];
332 + for (var u = nn(o), a = 0; a < u.length; a++) {
333 + var f = u[a];
334 + o[f] = t(f, n || !!o[f].enumerable);
335 + }
336 + return Object.create(Object.getPrototypeOf(r), o);
337 + }(e, n);
338 + var o = {
339 + i: e ? 5 : 4,
340 + A: r ? r.A : _(),
341 + P: !1,
342 + I: !1,
343 + R: {},
344 + l: r,
345 + t: n,
346 + k: i,
347 + o: null,
348 + g: !1,
349 + C: !1
350 + };
351 + return Object.defineProperty(i, Q, {
352 + value: o,
353 + writable: !0
354 + }), i;
355 + },
356 + S: function(n, t, o) {
357 + o ? r(t) && t[Q].A === n && e(n.p) : (n.u && function n(r) {
358 + if (r && "object" == typeof r) {
359 + var t = r[Q];
360 + if (t) {
361 + var e = t.t;
362 + var o = t.k;
363 + var f = t.R;
364 + var c = t.i;
365 + if (4 === c) i(o, (function(r) {
366 + r !== Q && (void 0 !== e[r] || u(e, r) ? f[r] || n(o[r]) : (f[r] = !0, k(t)));
367 + })), i(e, (function(n) {
368 + void 0 !== o[n] || u(o, n) || (f[n] = !1, k(t));
369 + }));
370 + else if (5 === c) {
371 + if (a(t) && (k(t), f.length = !0), o.length < e.length) for (var s = o.length; s < e.length; s++) f[s] = !1;
372 + else for (var v = e.length; v < o.length; v++) f[v] = !0;
373 + 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]);
374 + }
375 + }
376 + }
377 + }(n.p[0]), e(n.p));
378 + },
379 + K: function(n) {
380 + return 4 === n.i ? o(n) : a(n);
381 + }
382 + });
383 + }
384 + var G;
385 + var U;
386 + var W = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x");
387 + var X = "undefined" != typeof Map;
388 + var q = "undefined" != typeof Set;
389 + var B = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect;
390 + var H = W ? Symbol.for("immer-nothing") : ((G = {})["immer-nothing"] = !0, G);
391 + var L = W ? Symbol.for("immer-draftable") : "__$immer_draftable";
392 + var Q = W ? Symbol.for("immer-state") : "__$immer_state";
393 + var Y = {
394 + 0: "Illegal state",
395 + 1: "Immer drafts cannot have computed properties",
396 + 2: "This object has been frozen and should not be mutated",
397 + 3: function(n) {
398 + return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + n;
399 + },
400 + 4: "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
401 + 5: "Immer forbids circular references",
402 + 6: "The first or second argument to `produce` must be a function",
403 + 7: "The third argument to `produce` must be a function or undefined",
404 + 8: "First argument to `createDraft` must be a plain object, an array, or an immerable object",
405 + 9: "First argument to `finishDraft` must be a draft returned by `createDraft`",
406 + 10: "The given draft is already finalized",
407 + 11: "Object.defineProperty() cannot be used on an Immer draft",
408 + 12: "Object.setPrototypeOf() cannot be used on an Immer draft",
409 + 13: "Immer only supports deleting array indices",
410 + 14: "Immer only supports setting array indices and the 'length' property",
411 + 15: function(n) {
412 + return "Cannot apply patch, path doesn't resolve: " + n;
413 + },
414 + 16: "Sets cannot have \"replace\" patches.",
415 + 17: function(n) {
416 + return "Unsupported patch operation: " + n;
417 + },
418 + 18: function(n) {
419 + return "The plugin for '" + n + "' has not been loaded into Immer. To enable the plugin, import and call `enable" + n + "()` when initializing your application.";
420 + },
421 + 20: "Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",
422 + 21: function(n) {
423 + 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 + "'";
424 + },
425 + 22: function(n) {
426 + return "'current' expects a draft, got: " + n;
427 + },
428 + 23: function(n) {
429 + return "'original' expects a draft, got: " + n;
430 + },
431 + 24: "Patching reserved attributes like __proto__, prototype and constructor is not allowed"
432 + };
433 + var Z = "" + Object.prototype.constructor;
434 + var nn = "undefined" != typeof Reflect && Reflect.ownKeys ? Reflect.ownKeys : void 0 !== Object.getOwnPropertySymbols ? function(n) {
435 + return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n));
436 + } : Object.getOwnPropertyNames;
437 + var rn = Object.getOwnPropertyDescriptors || function(n) {
438 + var r = {};
439 + return nn(n).forEach((function(t) {
440 + r[t] = Object.getOwnPropertyDescriptor(n, t);
441 + })), r;
442 + };
443 + var tn = {};
444 + var en = {
445 + get: function(n, r) {
446 + if (r === Q) return n;
447 + var e = p(n);
448 + if (!u(e, r)) return function(n, r, t) {
449 + var e;
450 + var i = I(r, t);
451 + return i ? "value" in i ? i.value : null === (e = i.get) || void 0 === e ? void 0 : e.call(n.k) : void 0;
452 + }(n, e, r);
453 + var i = e[r];
454 + return n.I || !t(i) ? i : i === z(n.t, r) ? (E(n), n.o[r] = N(n.A.h, i, n)) : i;
455 + },
456 + has: function(n, r) {
457 + return r in p(n);
458 + },
459 + ownKeys: function(n) {
460 + return Reflect.ownKeys(p(n));
461 + },
462 + set: function(n, r, t) {
463 + var e = I(p(n), r);
464 + if (null == e ? void 0 : e.set) return e.set.call(n.k, t), !0;
465 + if (!n.P) {
466 + var i = z(p(n), r);
467 + var o = null == i ? void 0 : i[Q];
468 + if (o && o.t === t) return n.o[r] = t, n.R[r] = !1, !0;
469 + if (c(t, i) && (void 0 !== t || u(n.t, r))) return !0;
470 + E(n), k(n);
471 + }
472 + 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;
473 + },
474 + deleteProperty: function(n, r) {
475 + 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;
476 + },
477 + getOwnPropertyDescriptor: function(n, r) {
478 + var t = p(n);
479 + var e = Reflect.getOwnPropertyDescriptor(t, r);
480 + return e ? {
481 + writable: !0,
482 + configurable: 1 !== n.i || "length" !== r,
483 + enumerable: e.enumerable,
484 + value: t[r]
485 + } : e;
486 + },
487 + defineProperty: function() {
488 + n(11);
489 + },
490 + getPrototypeOf: function(n) {
491 + return Object.getPrototypeOf(n.t);
492 + },
493 + setPrototypeOf: function() {
494 + n(12);
495 + }
496 + };
497 + var on = {};
498 + i(en, (function(n, r) {
499 + on[n] = function() {
500 + return arguments[0] = arguments[0][0], r.apply(this, arguments);
501 + };
502 + })), on.deleteProperty = function(r, t) {
503 + return isNaN(parseInt(t)) && n(13), on.set.call(this, r, t, void 0);
504 + }, on.set = function(r, t, e) {
505 + return "length" !== t && isNaN(parseInt(t)) && n(14), en.set.call(this, r[0], t, e, r[0]);
506 + };
507 + var un = function() {
508 + function e(r) {
509 + var e = this;
510 + this.O = B, this.D = !0, this.produce = function(r, i, o) {
511 + if ("function" == typeof r && "function" != typeof i) {
512 + var u = i;
513 + i = r;
514 + var a = e;
515 + return function(n) {
516 + var r = this;
517 + void 0 === n && (n = u);
518 + for (var t = arguments.length, e = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) e[o - 1] = arguments[o];
519 + return a.produce(n, (function(n) {
520 + var t;
521 + return (t = i).call.apply(t, [r, n].concat(e));
522 + }));
523 + };
524 + }
525 + var f;
526 + if ("function" != typeof i && n(6), void 0 !== o && "function" != typeof o && n(7), t(r)) {
527 + var c = w(e);
528 + var s = N(e, r, void 0);
529 + var v = !0;
530 + try {
531 + f = i(s), v = !1;
532 + } finally {
533 + v ? g(c) : O(c);
534 + }
535 + return "undefined" != typeof Promise && f instanceof Promise ? f.then((function(n) {
536 + return j(c, o), P(n, c);
537 + }), (function(n) {
538 + throw g(c), n;
539 + })) : (j(c, o), P(f, c));
540 + }
541 + if (!r || "object" != typeof r) {
542 + if (void 0 === (f = i(r)) && (f = r), f === H && (f = void 0), e.D && d(f, !0), o) {
543 + var p = [];
544 + var l = [];
545 + b("Patches").M(r, f, p, l), o(p, l);
546 + }
547 + return f;
548 + }
549 + n(21, r);
550 + }, this.produceWithPatches = function(n, r) {
551 + if ("function" == typeof n) return function(r) {
552 + for (var t = arguments.length, i = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) i[o - 1] = arguments[o];
553 + return e.produceWithPatches(r, (function(r) {
554 + return n.apply(void 0, [r].concat(i));
555 + }));
556 + };
557 + var t;
558 + var i;
559 + var o = e.produce(n, r, (function(n, r) {
560 + t = n, i = r;
561 + }));
562 + return "undefined" != typeof Promise && o instanceof Promise ? o.then((function(n) {
563 + return [
564 + n,
565 + t,
566 + i
567 + ];
568 + })) : [
569 + o,
570 + t,
571 + i
572 + ];
573 + }, "boolean" == typeof (null == r ? void 0 : r.useProxies) && this.setUseProxies(r.useProxies), "boolean" == typeof (null == r ? void 0 : r.autoFreeze) && this.setAutoFreeze(r.autoFreeze);
574 + }
575 + var i = e.prototype;
576 + return i.createDraft = function(e) {
577 + t(e) || n(8), r(e) && (e = R(e));
578 + var i = w(this);
579 + var o = N(this, e, void 0);
580 + return o[Q].C = !0, O(i), o;
581 + }, i.finishDraft = function(r, t) {
582 + var e = r && r[Q];
583 + e && e.C || n(9), e.I && n(10);
584 + var i = e.A;
585 + return j(i, t), P(void 0, i);
586 + }, i.setAutoFreeze = function(n) {
587 + this.D = n;
588 + }, i.setUseProxies = function(r) {
589 + r && !B && n(20), this.O = r;
590 + }, i.applyPatches = function(n, t) {
591 + var e;
592 + for (e = t.length - 1; e >= 0; e--) {
593 + var i = t[e];
594 + if (0 === i.path.length && "replace" === i.op) {
595 + n = i.value;
596 + break;
597 + }
598 + }
599 + e > -1 && (t = t.slice(e + 1));
600 + var o = b("Patches").$;
601 + return r(n) ? o(n, t) : this.produce(n, (function(n) {
602 + return o(n, t);
603 + }));
604 + }, e;
605 + }();
606 + var an = new un();
607 + var fn = an.produce;
608 + var cn = an.produceWithPatches.bind(an);
609 + var sn = an.setAutoFreeze.bind(an);
610 + var vn = an.setUseProxies.bind(an);
611 + var pn = an.applyPatches.bind(an);
612 + var ln = an.createDraft.bind(an);
613 + var dn = an.finishDraft.bind(an);
25 614
615 +//#endregion
616 +//#region node_modules/@babel/runtime/helpers/esm/typeof.js
617 + function _typeof(o) {
618 + "@babel/helpers - typeof";
619 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
620 + return typeof o;
621 + } : function(o) {
622 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
623 + }, _typeof(o);
624 + }
26 625
27 -/***/ }),
626 +//#endregion
627 +//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
628 + function toPrimitive(t, r) {
629 + if ("object" != _typeof(t) || !t) return t;
630 + var e = t[Symbol.toPrimitive];
631 + if (void 0 !== e) {
632 + var i = e.call(t, r || "default");
633 + if ("object" != _typeof(i)) return i;
634 + throw new TypeError("@@toPrimitive must return a primitive value.");
635 + }
636 + return ("string" === r ? String : Number)(t);
637 + }
28 638
29 -/***/ "../node_modules/@babel/runtime/helpers/esm/extends.js":
30 -/*!*************************************************************!*\
31 - !*** ../node_modules/@babel/runtime/helpers/esm/extends.js ***!
32 - \*************************************************************/
33 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
639 +//#endregion
640 +//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
641 + function toPropertyKey(t) {
642 + var i = toPrimitive(t, "string");
643 + return "symbol" == _typeof(i) ? i : i + "";
644 + }
34 645
35 -"use strict";
36 -__webpack_require__.r(__webpack_exports__);
37 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
38 -/* harmony export */ "default": () => (/* binding */ _extends)
39 -/* harmony export */ });
40 -function _extends() {
41 - return _extends = Object.assign ? Object.assign.bind() : function (n) {
42 - for (var e = 1; e < arguments.length; e++) {
43 - var t = arguments[e];
44 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45 - }
46 - return n;
47 - }, _extends.apply(null, arguments);
48 -}
646 +//#endregion
647 +//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
648 + function _defineProperty(e, r, t) {
649 + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
650 + value: t,
651 + enumerable: !0,
652 + configurable: !0,
653 + writable: !0
654 + }) : e[r] = t, e;
655 + }
49 656
657 +//#endregion
658 +//#region node_modules/@babel/runtime/helpers/esm/objectSpread2.js
659 + function ownKeys(e, r) {
660 + var t = Object.keys(e);
661 + if (Object.getOwnPropertySymbols) {
662 + var o = Object.getOwnPropertySymbols(e);
663 + r && (o = o.filter(function(r) {
664 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
665 + })), t.push.apply(t, o);
666 + }
667 + return t;
668 + }
669 + function _objectSpread2(e) {
670 + for (var r = 1; r < arguments.length; r++) {
671 + var t = null != arguments[r] ? arguments[r] : {};
672 + r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
673 + _defineProperty(e, r, t[r]);
674 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
675 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
676 + });
677 + }
678 + return e;
679 + }
50 680
51 -/***/ }),
681 +//#endregion
682 +//#region node_modules/redux/es/redux.js
683 + var $$observable = (function() {
684 + return typeof Symbol === "function" && Symbol.observable || "@@observable";
685 + })();
686 + /**
687 + * These are private action types reserved by Redux.
688 + * For any unknown actions, you must return the current state.
689 + * If the current state is undefined, you must return the initial state.
690 + * Do not reference these action types directly in your code.
691 + */
692 + var randomString = function randomString() {
693 + return Math.random().toString(36).substring(7).split("").join(".");
694 + };
695 + var ActionTypes = {
696 + INIT: "@@redux/INIT" + randomString(),
697 + REPLACE: "@@redux/REPLACE" + randomString(),
698 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
699 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
700 + }
701 + };
702 + /**
703 + * @param {any} obj The object to inspect.
704 + * @returns {boolean} True if the argument appears to be a plain object.
705 + */
706 + function isPlainObject$2(obj) {
707 + if (typeof obj !== "object" || obj === null) return false;
708 + var proto = obj;
709 + while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
710 + return Object.getPrototypeOf(obj) === proto;
711 + }
712 + __name(isPlainObject$2, "isPlainObject");
713 + function miniKindOf(val) {
714 + if (val === void 0) return "undefined";
715 + if (val === null) return "null";
716 + var type = typeof val;
717 + switch (type) {
718 + case "boolean":
719 + case "string":
720 + case "number":
721 + case "symbol":
722 + case "function": return type;
723 + }
724 + if (Array.isArray(val)) return "array";
725 + if (isDate(val)) return "date";
726 + if (isError(val)) return "error";
727 + var constructorName = ctorName(val);
728 + switch (constructorName) {
729 + case "Symbol":
730 + case "Promise":
731 + case "WeakMap":
732 + case "WeakSet":
733 + case "Map":
734 + case "Set": return constructorName;
735 + }
736 + return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
737 + }
738 + function ctorName(val) {
739 + return typeof val.constructor === "function" ? val.constructor.name : null;
740 + }
741 + function isError(val) {
742 + return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
743 + }
744 + function isDate(val) {
745 + if (val instanceof Date) return true;
746 + return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
747 + }
748 + function kindOf(val) {
749 + var typeOfVal = typeof val;
750 + typeOfVal = miniKindOf(val);
751 + return typeOfVal;
752 + }
753 + /**
754 + * @deprecated
755 + *
756 + * **We recommend using the `configureStore` method
757 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
758 + *
759 + * Redux Toolkit is our recommended approach for writing Redux logic today,
760 + * including store setup, reducers, data fetching, and more.
761 + *
762 + * **For more details, please read this Redux docs page:**
763 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
764 + *
765 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
766 + * simplifies setup and helps avoid common bugs.
767 + *
768 + * You should not be using the `redux` core package by itself today, except for learning purposes.
769 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
770 + * all users to migrate to using Redux Toolkit for all Redux code.
771 + *
772 + * If you want to use `createStore` without this visual deprecation warning, use
773 + * the `legacy_createStore` import instead:
774 + *
775 + * `import { legacy_createStore as createStore} from 'redux'`
776 + *
777 + */
778 + function createStore(reducer, preloadedState, enhancer) {
779 + var _ref2;
780 + if (typeof preloadedState === "function" && typeof enhancer === "function" || typeof enhancer === "function" && typeof arguments[3] === "function") throw new Error("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.");
781 + if (typeof preloadedState === "function" && typeof enhancer === "undefined") {
782 + enhancer = preloadedState;
783 + preloadedState = void 0;
784 + }
785 + if (typeof enhancer !== "undefined") {
786 + if (typeof enhancer !== "function") throw new Error("Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
787 + return enhancer(createStore)(reducer, preloadedState);
788 + }
789 + if (typeof reducer !== "function") throw new Error("Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
790 + var currentReducer = reducer;
791 + var currentState = preloadedState;
792 + var currentListeners = [];
793 + var nextListeners = currentListeners;
794 + var isDispatching = false;
795 + /**
796 + * This makes a shallow copy of currentListeners so we can use
797 + * nextListeners as a temporary list while dispatching.
798 + *
799 + * This prevents any bugs around consumers calling
800 + * subscribe/unsubscribe in the middle of a dispatch.
801 + */
802 + function ensureCanMutateNextListeners() {
803 + if (nextListeners === currentListeners) nextListeners = currentListeners.slice();
804 + }
805 + /**
806 + * Reads the state tree managed by the store.
807 + *
808 + * @returns {any} The current state tree of your application.
809 + */
810 + function getState() {
811 + if (isDispatching) throw new Error("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.");
812 + return currentState;
813 + }
814 + /**
815 + * Adds a change listener. It will be called any time an action is dispatched,
816 + * and some part of the state tree may potentially have changed. You may then
817 + * call `getState()` to read the current state tree inside the callback.
818 + *
819 + * You may call `dispatch()` from a change listener, with the following
820 + * caveats:
821 + *
822 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
823 + * If you subscribe or unsubscribe while the listeners are being invoked, this
824 + * will not have any effect on the `dispatch()` that is currently in progress.
825 + * However, the next `dispatch()` call, whether nested or not, will use a more
826 + * recent snapshot of the subscription list.
827 + *
828 + * 2. The listener should not expect to see all state changes, as the state
829 + * might have been updated multiple times during a nested `dispatch()` before
830 + * the listener is called. It is, however, guaranteed that all subscribers
831 + * registered before the `dispatch()` started will be called with the latest
832 + * state by the time it exits.
833 + *
834 + * @param {Function} listener A callback to be invoked on every dispatch.
835 + * @returns {Function} A function to remove this change listener.
836 + */
837 + function subscribe(listener) {
838 + if (typeof listener !== "function") throw new Error("Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
839 + if (isDispatching) throw new Error("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.");
840 + var isSubscribed = true;
841 + ensureCanMutateNextListeners();
842 + nextListeners.push(listener);
843 + return function unsubscribe() {
844 + if (!isSubscribed) return;
845 + if (isDispatching) throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
846 + isSubscribed = false;
847 + ensureCanMutateNextListeners();
848 + var index = nextListeners.indexOf(listener);
849 + nextListeners.splice(index, 1);
850 + currentListeners = null;
851 + };
852 + }
853 + /**
854 + * Dispatches an action. It is the only way to trigger a state change.
855 + *
856 + * The `reducer` function, used to create the store, will be called with the
857 + * current state tree and the given `action`. Its return value will
858 + * be considered the **next** state of the tree, and the change listeners
859 + * will be notified.
860 + *
861 + * The base implementation only supports plain object actions. If you want to
862 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
863 + * wrap your store creating function into the corresponding middleware. For
864 + * example, see the documentation for the `redux-thunk` package. Even the
865 + * middleware will eventually dispatch plain object actions using this method.
866 + *
867 + * @param {Object} action A plain object representing “what changed”. It is
868 + * a good idea to keep actions serializable so you can record and replay user
869 + * sessions, or use the time travelling `redux-devtools`. An action must have
870 + * a `type` property which may not be `undefined`. It is a good idea to use
871 + * string constants for action types.
872 + *
873 + * @returns {Object} For convenience, the same action object you dispatched.
874 + *
875 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
876 + * return something else (for example, a Promise you can await).
877 + */
878 + function dispatch(action) {
879 + if (!isPlainObject$2(action)) throw new Error("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.");
880 + if (typeof action.type === "undefined") throw new Error("Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.");
881 + if (isDispatching) throw new Error("Reducers may not dispatch actions.");
882 + try {
883 + isDispatching = true;
884 + currentState = currentReducer(currentState, action);
885 + } finally {
886 + isDispatching = false;
887 + }
888 + var listeners = currentListeners = nextListeners;
889 + for (var i = 0; i < listeners.length; i++) {
890 + var listener = listeners[i];
891 + listener();
892 + }
893 + return action;
894 + }
895 + /**
896 + * Replaces the reducer currently used by the store to calculate the state.
897 + *
898 + * You might need this if your app implements code splitting and you want to
899 + * load some of the reducers dynamically. You might also need this if you
900 + * implement a hot reloading mechanism for Redux.
901 + *
902 + * @param {Function} nextReducer The reducer for the store to use instead.
903 + * @returns {void}
904 + */
905 + function replaceReducer(nextReducer) {
906 + if (typeof nextReducer !== "function") throw new Error("Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
907 + currentReducer = nextReducer;
908 + dispatch({ type: ActionTypes.REPLACE });
909 + }
910 + /**
911 + * Interoperability point for observable/reactive libraries.
912 + * @returns {observable} A minimal observable of state changes.
913 + * For more information, see the observable proposal:
914 + * https://github.com/tc39/proposal-observable
915 + */
916 + function observable() {
917 + var _ref;
918 + var outerSubscribe = subscribe;
919 + return _ref = {
920 + /**
921 + * The minimal observable subscription method.
922 + * @param {Object} observer Any object that can be used as an observer.
923 + * The observer object should have a `next` method.
924 + * @returns {subscription} An object with an `unsubscribe` method that can
925 + * be used to unsubscribe the observable from the store, and prevent further
926 + * emission of values from the observable.
927 + */
928 +subscribe: function subscribe(observer) {
929 + if (typeof observer !== "object" || observer === null) throw new Error("Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
930 + function observeState() {
931 + if (observer.next) observer.next(getState());
932 + }
933 + observeState();
934 + return { unsubscribe: outerSubscribe(observeState) };
935 + } }, _ref[$$observable] = function() {
936 + return this;
937 + }, _ref;
938 + }
939 + dispatch({ type: ActionTypes.INIT });
940 + return _ref2 = {
941 + dispatch,
942 + subscribe,
943 + getState,
944 + replaceReducer
945 + }, _ref2[$$observable] = observable, _ref2;
946 + }
947 + /**
948 + * Creates a Redux store that holds the state tree.
949 + *
950 + * **We recommend using `configureStore` from the
951 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
952 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
953 + *
954 + * The only way to change the data in the store is to call `dispatch()` on it.
955 + *
956 + * There should only be a single store in your app. To specify how different
957 + * parts of the state tree respond to actions, you may combine several reducers
958 + * into a single reducer function by using `combineReducers`.
959 + *
960 + * @param {Function} reducer A function that returns the next state tree, given
961 + * the current state tree and the action to handle.
962 + *
963 + * @param {any} [preloadedState] The initial state. You may optionally specify it
964 + * to hydrate the state from the server in universal apps, or to restore a
965 + * previously serialized user session.
966 + * If you use `combineReducers` to produce the root reducer function, this must be
967 + * an object with the same shape as `combineReducers` keys.
968 + *
969 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
970 + * to enhance the store with third-party capabilities such as middleware,
971 + * time travel, persistence, etc. The only store enhancer that ships with Redux
972 + * is `applyMiddleware()`.
973 + *
974 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
975 + * and subscribe to changes.
976 + */
977 + var legacy_createStore = createStore;
978 + /**
979 + * Prints a warning in the console if it exists.
980 + *
981 + * @param {String} message The warning message.
982 + * @returns {void}
983 + */
984 + function warning$1(message) {
985 + if (typeof console !== "undefined" && typeof console.error === "function") console.error(message);
986 + try {
987 + throw new Error(message);
988 + } catch (e) {}
989 + }
990 + __name(warning$1, "warning");
991 + function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
992 + var reducerKeys = Object.keys(reducers);
993 + var argumentName = action && action.type === ActionTypes.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
994 + if (reducerKeys.length === 0) return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
995 + if (!isPlainObject$2(inputState)) return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join("\", \"") + "\"");
996 + var unexpectedKeys = Object.keys(inputState).filter(function(key) {
997 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
998 + });
999 + unexpectedKeys.forEach(function(key) {
1000 + unexpectedKeyCache[key] = true;
1001 + });
1002 + if (action && action.type === ActionTypes.REPLACE) return;
1003 + if (unexpectedKeys.length > 0) 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.");
1004 + }
1005 + function assertReducerShape(reducers) {
1006 + Object.keys(reducers).forEach(function(key) {
1007 + var reducer = reducers[key];
1008 + if (typeof reducer(void 0, { type: ActionTypes.INIT }) === "undefined") throw new Error("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.");
1009 + if (typeof reducer(void 0, { type: ActionTypes.PROBE_UNKNOWN_ACTION() }) === "undefined") throw new Error("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.");
1010 + });
1011 + }
1012 + /**
1013 + * Turns an object whose values are different reducer functions, into a single
1014 + * reducer function. It will call every child reducer, and gather their results
1015 + * into a single state object, whose keys correspond to the keys of the passed
1016 + * reducer functions.
1017 + *
1018 + * @param {Object} reducers An object whose values correspond to different
1019 + * reducer functions that need to be combined into one. One handy way to obtain
1020 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
1021 + * undefined for any action. Instead, they should return their initial state
1022 + * if the state passed to them was undefined, and the current state for any
1023 + * unrecognized action.
1024 + *
1025 + * @returns {Function} A reducer function that invokes every reducer inside the
1026 + * passed object, and builds a state object with the same shape.
1027 + */
1028 + function combineReducers(reducers) {
1029 + var reducerKeys = Object.keys(reducers);
1030 + var finalReducers = {};
1031 + for (var i = 0; i < reducerKeys.length; i++) {
1032 + var key = reducerKeys[i];
1033 + if (typeof reducers[key] === "undefined") warning$1("No reducer provided for key \"" + key + "\"");
1034 + if (typeof reducers[key] === "function") finalReducers[key] = reducers[key];
1035 + }
1036 + var finalReducerKeys = Object.keys(finalReducers);
1037 + var unexpectedKeyCache = {};
1038 + var shapeAssertionError;
1039 + try {
1040 + assertReducerShape(finalReducers);
1041 + } catch (e) {
1042 + shapeAssertionError = e;
1043 + }
1044 + return function combination(state, action) {
1045 + if (state === void 0) state = {};
1046 + if (shapeAssertionError) throw shapeAssertionError;
1047 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
1048 + if (warningMessage) warning$1(warningMessage);
1049 + var hasChanged = false;
1050 + var nextState = {};
1051 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
1052 + var _key = finalReducerKeys[_i];
1053 + var reducer = finalReducers[_key];
1054 + var previousStateForKey = state[_key];
1055 + var nextStateForKey = reducer(previousStateForKey, action);
1056 + if (typeof nextStateForKey === "undefined") {
1057 + var actionType = action && action.type;
1058 + throw new Error("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.");
1059 + }
1060 + nextState[_key] = nextStateForKey;
1061 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
1062 + }
1063 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
1064 + return hasChanged ? nextState : state;
1065 + };
1066 + }
1067 + function bindActionCreator(actionCreator, dispatch) {
1068 + return function() {
1069 + return dispatch(actionCreator.apply(this, arguments));
1070 + };
1071 + }
1072 + /**
1073 + * Turns an object whose values are action creators, into an object with the
1074 + * same keys, but with every function wrapped into a `dispatch` call so they
1075 + * may be invoked directly. This is just a convenience method, as you can call
1076 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
1077 + *
1078 + * For convenience, you can also pass an action creator as the first argument,
1079 + * and get a dispatch wrapped function in return.
1080 + *
1081 + * @param {Function|Object} actionCreators An object whose values are action
1082 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
1083 + * syntax. You may also pass a single function.
1084 + *
1085 + * @param {Function} dispatch The `dispatch` function available on your Redux
1086 + * store.
1087 + *
1088 + * @returns {Function|Object} The object mimicking the original object, but with
1089 + * every action creator wrapped into the `dispatch` call. If you passed a
1090 + * function as `actionCreators`, the return value will also be a single
1091 + * function.
1092 + */
1093 + function bindActionCreators$1(actionCreators, dispatch) {
1094 + if (typeof actionCreators === "function") return bindActionCreator(actionCreators, dispatch);
1095 + if (typeof actionCreators !== "object" || actionCreators === null) throw new Error("bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
1096 + var boundActionCreators = {};
1097 + for (var key in actionCreators) {
1098 + var actionCreator = actionCreators[key];
1099 + if (typeof actionCreator === "function") boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
1100 + }
1101 + return boundActionCreators;
1102 + }
1103 + __name(bindActionCreators$1, "bindActionCreators");
1104 + /**
1105 + * Composes single-argument functions from right to left. The rightmost
1106 + * function can take multiple arguments as it provides the signature for
1107 + * the resulting composite function.
1108 + *
1109 + * @param {...Function} funcs The functions to compose.
1110 + * @returns {Function} A function obtained by composing the argument functions
1111 + * from right to left. For example, compose(f, g, h) is identical to doing
1112 + * (...args) => f(g(h(...args))).
1113 + */
1114 + function compose() {
1115 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) funcs[_key] = arguments[_key];
1116 + if (funcs.length === 0) return function(arg) {
1117 + return arg;
1118 + };
1119 + if (funcs.length === 1) return funcs[0];
1120 + return funcs.reduce(function(a, b) {
1121 + return function() {
1122 + return a(b.apply(void 0, arguments));
1123 + };
1124 + });
1125 + }
1126 + /**
1127 + * Creates a store enhancer that applies middleware to the dispatch method
1128 + * of the Redux store. This is handy for a variety of tasks, such as expressing
1129 + * asynchronous actions in a concise manner, or logging every action payload.
1130 + *
1131 + * See `redux-thunk` package as an example of the Redux middleware.
1132 + *
1133 + * Because middleware is potentially asynchronous, this should be the first
1134 + * store enhancer in the composition chain.
1135 + *
1136 + * Note that each middleware will be given the `dispatch` and `getState` functions
1137 + * as named arguments.
1138 + *
1139 + * @param {...Function} middlewares The middleware chain to be applied.
1140 + * @returns {Function} A store enhancer applying the middleware.
1141 + */
1142 + function applyMiddleware() {
1143 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) middlewares[_key] = arguments[_key];
1144 + return function(createStore) {
1145 + return function() {
1146 + var store = createStore.apply(void 0, arguments);
1147 + var _dispatch = function dispatch() {
1148 + throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
1149 + };
1150 + var middlewareAPI = {
1151 + getState: store.getState,
1152 + dispatch: function dispatch() {
1153 + return _dispatch.apply(void 0, arguments);
1154 + }
1155 + };
1156 + var chain = middlewares.map(function(middleware) {
1157 + return middleware(middlewareAPI);
1158 + });
1159 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
1160 + return _objectSpread2(_objectSpread2({}, store), {}, { dispatch: _dispatch });
1161 + };
1162 + };
1163 + }
52 1164
53 -/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
54 -/*!*******************************************************************!*\
55 - !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
56 - \*******************************************************************/
57 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1165 +//#endregion
1166 +//#region node_modules/reselect/es/defaultMemoize.js
1167 + var NOT_FOUND = "NOT_FOUND";
1168 + function createSingletonCache(equals) {
1169 + var entry;
1170 + return {
1171 + get: function get(key) {
1172 + if (entry && equals(entry.key, key)) return entry.value;
1173 + return NOT_FOUND;
1174 + },
1175 + put: function put(key, value) {
1176 + entry = {
1177 + key,
1178 + value
1179 + };
1180 + },
1181 + getEntries: function getEntries() {
1182 + return entry ? [entry] : [];
1183 + },
1184 + clear: function clear() {
1185 + entry = void 0;
1186 + }
1187 + };
1188 + }
1189 + function createLruCache(maxSize, equals) {
1190 + var entries = [];
1191 + function get(key) {
1192 + var cacheIndex = entries.findIndex(function(entry) {
1193 + return equals(key, entry.key);
1194 + });
1195 + if (cacheIndex > -1) {
1196 + var entry = entries[cacheIndex];
1197 + if (cacheIndex > 0) {
1198 + entries.splice(cacheIndex, 1);
1199 + entries.unshift(entry);
1200 + }
1201 + return entry.value;
1202 + }
1203 + return NOT_FOUND;
1204 + }
1205 + function put(key, value) {
1206 + if (get(key) === NOT_FOUND) {
1207 + entries.unshift({
1208 + key,
1209 + value
1210 + });
1211 + if (entries.length > maxSize) entries.pop();
1212 + }
1213 + }
1214 + function getEntries() {
1215 + return entries;
1216 + }
1217 + function clear() {
1218 + entries = [];
1219 + }
1220 + return {
1221 + get,
1222 + put,
1223 + getEntries,
1224 + clear
1225 + };
1226 + }
1227 + var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
1228 + return a === b;
1229 + };
1230 + function createCacheKeyComparator(equalityCheck) {
1231 + return function areArgumentsShallowlyEqual(prev, next) {
1232 + if (prev === null || next === null || prev.length !== next.length) return false;
1233 + var length = prev.length;
1234 + for (var i = 0; i < length; i++) if (!equalityCheck(prev[i], next[i])) return false;
1235 + return true;
1236 + };
1237 + }
1238 + function defaultMemoize(func, equalityCheckOrOptions) {
1239 + var providedOptions = typeof equalityCheckOrOptions === "object" ? equalityCheckOrOptions : { equalityCheck: equalityCheckOrOptions };
1240 + var _providedOptions$equa = providedOptions.equalityCheck;
1241 + var equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa;
1242 + var _providedOptions$maxS = providedOptions.maxSize;
1243 + var maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS;
1244 + var resultEqualityCheck = providedOptions.resultEqualityCheck;
1245 + var comparator = createCacheKeyComparator(equalityCheck);
1246 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator);
1247 + function memoized() {
1248 + var value = cache.get(arguments);
1249 + if (value === NOT_FOUND) {
1250 + value = func.apply(null, arguments);
1251 + if (resultEqualityCheck) {
1252 + var matchingEntry = cache.getEntries().find(function(entry) {
1253 + return resultEqualityCheck(entry.value, value);
1254 + });
1255 + if (matchingEntry) value = matchingEntry.value;
1256 + }
1257 + cache.put(arguments, value);
1258 + }
1259 + return value;
1260 + }
1261 + memoized.clearCache = function() {
1262 + return cache.clear();
1263 + };
1264 + return memoized;
1265 + }
58 1266
59 -"use strict";
60 -__webpack_require__.r(__webpack_exports__);
61 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
62 -/* harmony export */ "default": () => (/* binding */ _objectSpread2)
63 -/* harmony export */ });
64 -/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
1267 +//#endregion
1268 +//#region node_modules/reselect/es/index.js
1269 + function getDependencies(funcs) {
1270 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
1271 + if (!dependencies.every(function(dep) {
1272 + return typeof dep === "function";
1273 + })) {
1274 + var dependencyTypes = dependencies.map(function(dep) {
1275 + return typeof dep === "function" ? "function " + (dep.name || "unnamed") + "()" : typeof dep;
1276 + }).join(", ");
1277 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
1278 + }
1279 + return dependencies;
1280 + }
1281 + function createSelectorCreator(memoize) {
1282 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) memoizeOptionsFromArgs[_key - 1] = arguments[_key];
1283 + return function createSelector() {
1284 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) funcs[_key2] = arguments[_key2];
1285 + var _recomputations = 0;
1286 + var _lastResult;
1287 + var directlyPassedOptions = { memoizeOptions: void 0 };
1288 + var resultFunc = funcs.pop();
1289 + if (typeof resultFunc === "object") {
1290 + directlyPassedOptions = resultFunc;
1291 + resultFunc = funcs.pop();
1292 + }
1293 + if (typeof resultFunc !== "function") throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
1294 + var _directlyPassedOption2 = directlyPassedOptions.memoizeOptions;
1295 + var memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2;
1296 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
1297 + var dependencies = getDependencies(funcs);
1298 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
1299 + _recomputations++;
1300 + return resultFunc.apply(null, arguments);
1301 + }].concat(finalMemoizeOptions));
1302 + var selector = memoize(function dependenciesChecker() {
1303 + var params = [];
1304 + var length = dependencies.length;
1305 + for (var i = 0; i < length; i++) params.push(dependencies[i].apply(null, arguments));
1306 + _lastResult = memoizedResultFunc.apply(null, params);
1307 + return _lastResult;
1308 + });
1309 + Object.assign(selector, {
1310 + resultFunc,
1311 + memoizedResultFunc,
1312 + dependencies,
1313 + lastResult: function lastResult() {
1314 + return _lastResult;
1315 + },
1316 + recomputations: function recomputations() {
1317 + return _recomputations;
1318 + },
1319 + resetRecomputations: function resetRecomputations() {
1320 + return _recomputations = 0;
1321 + }
1322 + });
1323 + return selector;
1324 + };
1325 + }
1326 + var createSelector = /* #__PURE__ */ createSelectorCreator(defaultMemoize);
65 1327
66 -function ownKeys(e, r) {
67 - var t = Object.keys(e);
68 - if (Object.getOwnPropertySymbols) {
69 - var o = Object.getOwnPropertySymbols(e);
70 - r && (o = o.filter(function (r) {
71 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
72 - })), t.push.apply(t, o);
73 - }
74 - return t;
75 -}
76 -function _objectSpread2(e) {
77 - for (var r = 1; r < arguments.length; r++) {
78 - var t = null != arguments[r] ? arguments[r] : {};
79 - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
80 - (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
81 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
82 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
83 - });
84 - }
85 - return e;
86 -}
1328 +//#endregion
1329 +//#region node_modules/redux-thunk/es/index.js
1330 +/** A function that accepts a potential "extra argument" value to be injected later,
1331 + * and returns an instance of the thunk middleware that uses that value
1332 + */
1333 + function createThunkMiddleware(extraArgument) {
1334 + return function middleware(_ref) {
1335 + var dispatch = _ref.dispatch;
1336 + var getState = _ref.getState;
1337 + return function(next) {
1338 + return function(action) {
1339 + if (typeof action === "function") return action(dispatch, getState, extraArgument);
1340 + return next(action);
1341 + };
1342 + };
1343 + };
1344 + }
1345 + var thunk = createThunkMiddleware();
1346 + thunk.withExtraArgument = createThunkMiddleware;
87 1347
1348 +//#endregion
1349 +//#region node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js
1350 + var redux_toolkit_esm_exports = /* @__PURE__ */ __exportAll({
1351 + EnhancerArray: () => EnhancerArray,
1352 + MiddlewareArray: () => MiddlewareArray,
1353 + SHOULD_AUTOBATCH: () => SHOULD_AUTOBATCH,
1354 + TaskAbortError: () => TaskAbortError,
1355 + __DO_NOT_USE__ActionTypes: () => ActionTypes,
1356 + addListener: () => addListener,
1357 + applyMiddleware: () => applyMiddleware,
1358 + autoBatchEnhancer: () => autoBatchEnhancer,
1359 + bindActionCreators: () => bindActionCreators$1,
1360 + clearAllListeners: () => clearAllListeners,
1361 + combineReducers: () => combineReducers,
1362 + compose: () => compose,
1363 + configureStore: () => configureStore,
1364 + createAction: () => createAction,
1365 + createActionCreatorInvariantMiddleware: () => createActionCreatorInvariantMiddleware,
1366 + createAsyncThunk: () => createAsyncThunk,
1367 + createDraftSafeSelector: () => createDraftSafeSelector,
1368 + createEntityAdapter: () => createEntityAdapter,
1369 + createImmutableStateInvariantMiddleware: () => createImmutableStateInvariantMiddleware,
1370 + createListenerMiddleware: () => createListenerMiddleware,
1371 + createNextState: () => fn,
1372 + createReducer: () => createReducer,
1373 + createSelector: () => createSelector,
1374 + createSerializableStateInvariantMiddleware: () => createSerializableStateInvariantMiddleware,
1375 + createSlice: () => createSlice,
1376 + createStore: () => createStore,
1377 + current: () => R,
1378 + findNonSerializableValue: () => findNonSerializableValue,
1379 + freeze: () => d,
1380 + getDefaultMiddleware: () => getDefaultMiddleware,
1381 + getType: () => getType,
1382 + isAction: () => isAction,
1383 + isActionCreator: () => isActionCreator,
1384 + isAllOf: () => isAllOf,
1385 + isAnyOf: () => isAnyOf,
1386 + isAsyncThunkAction: () => isAsyncThunkAction,
1387 + isDraft: () => r,
1388 + isFluxStandardAction: () => isFSA,
1389 + isFulfilled: () => isFulfilled,
1390 + isImmutableDefault: () => isImmutableDefault,
1391 + isPending: () => isPending,
1392 + isPlain: () => isPlain,
1393 + isPlainObject: () => isPlainObject$1,
1394 + isRejected: () => isRejected,
1395 + isRejectedWithValue: () => isRejectedWithValue,
1396 + legacy_createStore: () => legacy_createStore,
1397 + miniSerializeError: () => miniSerializeError,
1398 + nanoid: () => nanoid,
1399 + original: () => e,
1400 + prepareAutoBatched: () => prepareAutoBatched,
1401 + removeListener: () => removeListener,
1402 + unwrapResult: () => unwrapResult
1403 + });
1404 + var __extends = void 0 && (void 0).__extends || (function() {
1405 + var extendStatics = function(d, b) {
1406 + extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
1407 + d.__proto__ = b;
1408 + } || function(d, b) {
1409 + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
1410 + };
1411 + return extendStatics(d, b);
1412 + };
1413 + return function(d, b) {
1414 + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1415 + extendStatics(d, b);
1416 + function __() {
1417 + this.constructor = d;
1418 + }
1419 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1420 + };
1421 + })();
1422 + var __generator = void 0 && (void 0).__generator || function(thisArg, body) {
1423 + var _ = {
1424 + label: 0,
1425 + sent: function() {
1426 + if (t[0] & 1) throw t[1];
1427 + return t[1];
1428 + },
1429 + trys: [],
1430 + ops: []
1431 + };
1432 + var f;
1433 + var y;
1434 + var t;
1435 + var g;
1436 + return g = {
1437 + next: verb(0),
1438 + "throw": verb(1),
1439 + "return": verb(2)
1440 + }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
1441 + return this;
1442 + }), g;
1443 + function verb(n) {
1444 + return function(v) {
1445 + return step([n, v]);
1446 + };
1447 + }
1448 + function step(op) {
1449 + if (f) throw new TypeError("Generator is already executing.");
1450 + while (_) try {
1451 + 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;
1452 + if (y = 0, t) op = [op[0] & 2, t.value];
1453 + switch (op[0]) {
1454 + case 0:
1455 + case 1:
1456 + t = op;
1457 + break;
1458 + case 4:
1459 + _.label++;
1460 + return {
1461 + value: op[1],
1462 + done: false
1463 + };
1464 + case 5:
1465 + _.label++;
1466 + y = op[1];
1467 + op = [0];
1468 + continue;
1469 + case 7:
1470 + op = _.ops.pop();
1471 + _.trys.pop();
1472 + continue;
1473 + default:
1474 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
1475 + _ = 0;
1476 + continue;
1477 + }
1478 + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
1479 + _.label = op[1];
1480 + break;
1481 + }
1482 + if (op[0] === 6 && _.label < t[1]) {
1483 + _.label = t[1];
1484 + t = op;
1485 + break;
1486 + }
1487 + if (t && _.label < t[2]) {
1488 + _.label = t[2];
1489 + _.ops.push(op);
1490 + break;
1491 + }
1492 + if (t[2]) _.ops.pop();
1493 + _.trys.pop();
1494 + continue;
1495 + }
1496 + op = body.call(thisArg, _);
1497 + } catch (e) {
1498 + op = [6, e];
1499 + y = 0;
1500 + } finally {
1501 + f = t = 0;
1502 + }
1503 + if (op[0] & 5) throw op[1];
1504 + return {
1505 + value: op[0] ? op[1] : void 0,
1506 + done: true
1507 + };
1508 + }
1509 + };
1510 + var __spreadArray = void 0 && (void 0).__spreadArray || function(to, from) {
1511 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
1512 + return to;
1513 + };
1514 + var __defProp = Object.defineProperty;
1515 + var __defProps = Object.defineProperties;
1516 + var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1517 + var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1518 + var __hasOwnProp = Object.prototype.hasOwnProperty;
1519 + var __propIsEnum = Object.prototype.propertyIsEnumerable;
1520 + var __defNormalProp = function(obj, key, value) {
1521 + return key in obj ? __defProp(obj, key, {
1522 + enumerable: true,
1523 + configurable: true,
1524 + writable: true,
1525 + value
1526 + }) : obj[key] = value;
1527 + };
1528 + var __spreadValues = function(a, b) {
1529 + for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
1530 + if (__getOwnPropSymbols) for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
1531 + var prop = _c[_i];
1532 + if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
1533 + }
1534 + return a;
1535 + };
1536 + var __spreadProps = function(a, b) {
1537 + return __defProps(a, __getOwnPropDescs(b));
1538 + };
1539 + var __async = function(__this, __arguments, generator) {
1540 + return new Promise(function(resolve, reject) {
1541 + var fulfilled = function(value) {
1542 + try {
1543 + step(generator.next(value));
1544 + } catch (e) {
1545 + reject(e);
1546 + }
1547 + };
1548 + var rejected = function(value) {
1549 + try {
1550 + step(generator.throw(value));
1551 + } catch (e) {
1552 + reject(e);
1553 + }
1554 + };
1555 + var step = function(x) {
1556 + return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
1557 + };
1558 + step((generator = generator.apply(__this, __arguments)).next());
1559 + });
1560 + };
1561 + var createDraftSafeSelector = function() {
1562 + var args = [];
1563 + for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
1564 + var selector = createSelector.apply(void 0, args);
1565 + var wrappedSelector = function(value) {
1566 + var rest = [];
1567 + for (var _i = 1; _i < arguments.length; _i++) rest[_i - 1] = arguments[_i];
1568 + return selector.apply(void 0, __spreadArray([r(value) ? R(value) : value], rest));
1569 + };
1570 + return wrappedSelector;
1571 + };
1572 + var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
1573 + if (arguments.length === 0) return void 0;
1574 + if (typeof arguments[0] === "object") return compose;
1575 + return compose.apply(null, arguments);
1576 + };
1577 + typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
1578 + function isPlainObject$1(value) {
1579 + if (typeof value !== "object" || value === null) return false;
1580 + var proto = Object.getPrototypeOf(value);
1581 + if (proto === null) return true;
1582 + var baseProto = proto;
1583 + while (Object.getPrototypeOf(baseProto) !== null) baseProto = Object.getPrototypeOf(baseProto);
1584 + return proto === baseProto;
1585 + }
1586 + __name(isPlainObject$1, "isPlainObject");
1587 + var hasMatchFunction = function(v) {
1588 + return v && typeof v.match === "function";
1589 + };
1590 + function createAction(type, prepareAction) {
1591 + function actionCreator() {
1592 + var args = [];
1593 + for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
1594 + if (prepareAction) {
1595 + var prepared = prepareAction.apply(void 0, args);
1596 + if (!prepared) throw new Error("prepareAction did not return an object");
1597 + return __spreadValues(__spreadValues({
1598 + type,
1599 + payload: prepared.payload
1600 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
1601 + }
1602 + return {
1603 + type,
1604 + payload: args[0]
1605 + };
1606 + }
1607 + actionCreator.toString = function() {
1608 + return "" + type;
1609 + };
1610 + actionCreator.type = type;
1611 + actionCreator.match = function(action) {
1612 + return action.type === type;
1613 + };
1614 + return actionCreator;
1615 + }
1616 + function isAction(action) {
1617 + return isPlainObject$1(action) && "type" in action;
1618 + }
1619 + function isActionCreator(action) {
1620 + return typeof action === "function" && "type" in action && hasMatchFunction(action);
1621 + }
1622 + function isFSA(action) {
1623 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
1624 + }
1625 + function isValidKey(key) {
1626 + return [
1627 + "type",
1628 + "payload",
1629 + "error",
1630 + "meta"
1631 + ].indexOf(key) > -1;
1632 + }
1633 + function getType(actionCreator) {
1634 + return "" + actionCreator;
1635 + }
1636 + function getMessage(type) {
1637 + var splitType = type ? ("" + type).split("/") : [];
1638 + var actionName = splitType[splitType.length - 1] || "actionCreator";
1639 + return "Detected an action creator with type \"" + (type || "unknown") + "\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(" + actionName + "())` instead of `dispatch(" + actionName + ")`. This is necessary even if the action has no payload.";
1640 + }
1641 + function createActionCreatorInvariantMiddleware(options) {
1642 + if (options === void 0) options = {};
1643 + var _c = options.isActionCreator;
1644 + var isActionCreator2 = _c === void 0 ? isActionCreator : _c;
1645 + return function() {
1646 + return function(next) {
1647 + return function(action) {
1648 + if (isActionCreator2(action)) console.warn(getMessage(action.type));
1649 + return next(action);
1650 + };
1651 + };
1652 + };
1653 + }
1654 + function getTimeMeasureUtils(maxDelay, fnName) {
1655 + var elapsed = 0;
1656 + return {
1657 + measureTime: function(fn) {
1658 + var started = Date.now();
1659 + try {
1660 + return fn();
1661 + } finally {
1662 + elapsed += Date.now() - started;
1663 + }
1664 + },
1665 + warnIfExceeded: function() {
1666 + if (elapsed > maxDelay) 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.");
1667 + }
1668 + };
1669 + }
1670 + var MiddlewareArray = function(_super) {
1671 + __extends(MiddlewareArray, _super);
1672 + function MiddlewareArray() {
1673 + var args = [];
1674 + for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
1675 + var _this = _super.apply(this, args) || this;
1676 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
1677 + return _this;
1678 + }
1679 + Object.defineProperty(MiddlewareArray, Symbol.species, {
1680 + get: function() {
1681 + return MiddlewareArray;
1682 + },
1683 + enumerable: false,
1684 + configurable: true
1685 + });
1686 + MiddlewareArray.prototype.concat = function() {
1687 + var arr = [];
1688 + for (var _i = 0; _i < arguments.length; _i++) arr[_i] = arguments[_i];
1689 + return _super.prototype.concat.apply(this, arr);
1690 + };
1691 + MiddlewareArray.prototype.prepend = function() {
1692 + var arr = [];
1693 + for (var _i = 0; _i < arguments.length; _i++) arr[_i] = arguments[_i];
1694 + if (arr.length === 1 && Array.isArray(arr[0])) return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
1695 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
1696 + };
1697 + return MiddlewareArray;
1698 + }(Array);
1699 + var EnhancerArray = function(_super) {
1700 + __extends(EnhancerArray, _super);
1701 + function EnhancerArray() {
1702 + var args = [];
1703 + for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
1704 + var _this = _super.apply(this, args) || this;
1705 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
1706 + return _this;
1707 + }
1708 + Object.defineProperty(EnhancerArray, Symbol.species, {
1709 + get: function() {
1710 + return EnhancerArray;
1711 + },
1712 + enumerable: false,
1713 + configurable: true
1714 + });
1715 + EnhancerArray.prototype.concat = function() {
1716 + var arr = [];
1717 + for (var _i = 0; _i < arguments.length; _i++) arr[_i] = arguments[_i];
1718 + return _super.prototype.concat.apply(this, arr);
1719 + };
1720 + EnhancerArray.prototype.prepend = function() {
1721 + var arr = [];
1722 + for (var _i = 0; _i < arguments.length; _i++) arr[_i] = arguments[_i];
1723 + if (arr.length === 1 && Array.isArray(arr[0])) return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
1724 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
1725 + };
1726 + return EnhancerArray;
1727 + }(Array);
1728 + function freezeDraftable(val) {
1729 + return t(val) ? fn(val, function() {}) : val;
1730 + }
1731 + var isProduction = false;
1732 + var prefix = "Invariant failed";
1733 + function invariant(condition, message) {
1734 + if (condition) return;
1735 + if (isProduction) throw new Error(prefix);
1736 + throw new Error(prefix + ": " + (message || ""));
1737 + }
1738 + function stringify(obj, serializer, indent, decycler) {
1739 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
1740 + }
1741 + function getSerialize(serializer, decycler) {
1742 + var stack = [];
1743 + var keys = [];
1744 + if (!decycler) decycler = function(_, value) {
1745 + if (stack[0] === value) return "[Circular ~]";
1746 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
1747 + };
1748 + return function(key, value) {
1749 + if (stack.length > 0) {
1750 + var thisPos = stack.indexOf(this);
1751 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
1752 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
1753 + if (~stack.indexOf(value)) value = decycler.call(this, key, value);
1754 + } else stack.push(value);
1755 + return serializer == null ? value : serializer.call(this, key, value);
1756 + };
1757 + }
1758 + function isImmutableDefault(value) {
1759 + return typeof value !== "object" || value == null || Object.isFrozen(value);
1760 + }
1761 + function trackForMutations(isImmutable, ignorePaths, obj) {
1762 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
1763 + return { detectMutations: function() {
1764 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
1765 + } };
1766 + }
1767 + function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
1768 + if (ignorePaths === void 0) ignorePaths = [];
1769 + if (path === void 0) path = "";
1770 + if (checkedObjects === void 0) checkedObjects = /* @__PURE__ */ new Set();
1771 + var tracked = { value: obj };
1772 + if (!isImmutable(obj) && !checkedObjects.has(obj)) {
1773 + checkedObjects.add(obj);
1774 + tracked.children = {};
1775 + for (var key in obj) {
1776 + var childPath = path ? path + "." + key : key;
1777 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) continue;
1778 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
1779 + }
1780 + }
1781 + return tracked;
1782 + }
1783 + function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
1784 + if (ignoredPaths === void 0) ignoredPaths = [];
1785 + if (sameParentRef === void 0) sameParentRef = false;
1786 + if (path === void 0) path = "";
1787 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
1788 + var sameRef = prevObj === obj;
1789 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) return {
1790 + wasMutated: true,
1791 + path
1792 + };
1793 + if (isImmutable(prevObj) || isImmutable(obj)) return { wasMutated: false };
1794 + var keysToDetect = {};
1795 + for (var key in trackedProperty.children) keysToDetect[key] = true;
1796 + for (var key in obj) keysToDetect[key] = true;
1797 + var hasIgnoredPaths = ignoredPaths.length > 0;
1798 + var _loop_1 = function(key) {
1799 + var nestedPath = path ? path + "." + key : key;
1800 + if (hasIgnoredPaths) {
1801 + if (ignoredPaths.some(function(ignored) {
1802 + if (ignored instanceof RegExp) return ignored.test(nestedPath);
1803 + return nestedPath === ignored;
1804 + })) return "continue";
1805 + }
1806 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
1807 + if (result.wasMutated) return { value: result };
1808 + };
1809 + for (var key in keysToDetect) {
1810 + var state_1 = _loop_1(key);
1811 + if (typeof state_1 === "object") return state_1.value;
1812 + }
1813 + return { wasMutated: false };
1814 + }
1815 + function createImmutableStateInvariantMiddleware(options) {
1816 + if (options === void 0) options = {};
1817 + var _c = options.isImmutable;
1818 + var isImmutable = _c === void 0 ? isImmutableDefault : _c;
1819 + var ignoredPaths = options.ignoredPaths;
1820 + var _d = options.warnAfter;
1821 + var warnAfter = _d === void 0 ? 32 : _d;
1822 + var ignore = options.ignore;
1823 + ignoredPaths = ignoredPaths || ignore;
1824 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
1825 + return function(_c) {
1826 + var getState = _c.getState;
1827 + var state = getState();
1828 + var tracker = track(state);
1829 + var result;
1830 + return function(next) {
1831 + return function(action) {
1832 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
1833 + measureUtils.measureTime(function() {
1834 + state = getState();
1835 + result = tracker.detectMutations();
1836 + tracker = track(state);
1837 + 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)");
1838 + });
1839 + var dispatchedAction = next(action);
1840 + measureUtils.measureTime(function() {
1841 + state = getState();
1842 + result = tracker.detectMutations();
1843 + tracker = track(state);
1844 + 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)");
1845 + });
1846 + measureUtils.warnIfExceeded();
1847 + return dispatchedAction;
1848 + };
1849 + };
1850 + };
1851 + }
1852 + function isPlain(val) {
1853 + var type = typeof val;
1854 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject$1(val);
1855 + }
1856 + function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
1857 + if (path === void 0) path = "";
1858 + if (isSerializable === void 0) isSerializable = isPlain;
1859 + if (ignoredPaths === void 0) ignoredPaths = [];
1860 + var foundNestedSerializable;
1861 + if (!isSerializable(value)) return {
1862 + keyPath: path || "<root>",
1863 + value
1864 + };
1865 + if (typeof value !== "object" || value === null) return false;
1866 + if (cache == null ? void 0 : cache.has(value)) return false;
1867 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
1868 + var hasIgnoredPaths = ignoredPaths.length > 0;
1869 + var _loop_2 = function(key, nestedValue) {
1870 + var nestedPath = path ? path + "." + key : key;
1871 + if (hasIgnoredPaths) {
1872 + if (ignoredPaths.some(function(ignored) {
1873 + if (ignored instanceof RegExp) return ignored.test(nestedPath);
1874 + return nestedPath === ignored;
1875 + })) return "continue";
1876 + }
1877 + if (!isSerializable(nestedValue)) return { value: {
1878 + keyPath: nestedPath,
1879 + value: nestedValue
1880 + } };
1881 + if (typeof nestedValue === "object") {
1882 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
1883 + if (foundNestedSerializable) return { value: foundNestedSerializable };
1884 + }
1885 + };
1886 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
1887 + var _c = entries_1[_i];
1888 + var key = _c[0];
1889 + var nestedValue = _c[1];
1890 + var state_2 = _loop_2(key, nestedValue);
1891 + if (typeof state_2 === "object") return state_2.value;
1892 + }
1893 + if (cache && isNestedFrozen(value)) cache.add(value);
1894 + return false;
1895 + }
1896 + function isNestedFrozen(value) {
1897 + if (!Object.isFrozen(value)) return false;
1898 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
1899 + var nestedValue = _c[_i];
1900 + if (typeof nestedValue !== "object" || nestedValue === null) continue;
1901 + if (!isNestedFrozen(nestedValue)) return false;
1902 + }
1903 + return true;
1904 + }
1905 + function createSerializableStateInvariantMiddleware(options) {
1906 + if (options === void 0) options = {};
1907 + var _c = options.isSerializable;
1908 + var isSerializable = _c === void 0 ? isPlain : _c;
1909 + var getEntries = options.getEntries;
1910 + var _d = options.ignoredActions;
1911 + var ignoredActions = _d === void 0 ? [] : _d;
1912 + var _e = options.ignoredActionPaths;
1913 + var ignoredActionPaths = _e === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _e;
1914 + var _f = options.ignoredPaths;
1915 + var ignoredPaths = _f === void 0 ? [] : _f;
1916 + var _g = options.warnAfter;
1917 + var warnAfter = _g === void 0 ? 32 : _g;
1918 + var _h = options.ignoreState;
1919 + var ignoreState = _h === void 0 ? false : _h;
1920 + var _j = options.ignoreActions;
1921 + var ignoreActions = _j === void 0 ? false : _j;
1922 + var _k = options.disableCache;
1923 + var cache = !(_k === void 0 ? false : _k) && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
1924 + return function(storeAPI) {
1925 + return function(next) {
1926 + return function(action) {
1927 + var result = next(action);
1928 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
1929 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) measureUtils.measureTime(function() {
1930 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
1931 + if (foundActionNonSerializableValue) {
1932 + var keyPath = foundActionNonSerializableValue.keyPath;
1933 + var value = foundActionNonSerializableValue.value;
1934 + 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)");
1935 + }
1936 + });
1937 + if (!ignoreState) {
1938 + measureUtils.measureTime(function() {
1939 + var foundStateNonSerializableValue = findNonSerializableValue(storeAPI.getState(), "", isSerializable, getEntries, ignoredPaths, cache);
1940 + if (foundStateNonSerializableValue) {
1941 + var keyPath = foundStateNonSerializableValue.keyPath;
1942 + var value = foundStateNonSerializableValue.value;
1943 + 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)");
1944 + }
1945 + });
1946 + measureUtils.warnIfExceeded();
1947 + }
1948 + return result;
1949 + };
1950 + };
1951 + };
1952 + }
1953 + function isBoolean(x) {
1954 + return typeof x === "boolean";
1955 + }
1956 + function curryGetDefaultMiddleware() {
1957 + return function curriedGetDefaultMiddleware(options) {
1958 + return getDefaultMiddleware(options);
1959 + };
1960 + }
1961 + function getDefaultMiddleware(options) {
1962 + if (options === void 0) options = {};
1963 + var _c = options.thunk;
1964 + var thunk$1 = _c === void 0 ? true : _c;
1965 + var _d = options.immutableCheck;
1966 + var immutableCheck = _d === void 0 ? true : _d;
1967 + var _e = options.serializableCheck;
1968 + var serializableCheck = _e === void 0 ? true : _e;
1969 + var _f = options.actionCreatorCheck;
1970 + var actionCreatorCheck = _f === void 0 ? true : _f;
1971 + var middlewareArray = new MiddlewareArray();
1972 + if (thunk$1) if (isBoolean(thunk$1)) middlewareArray.push(thunk);
1973 + else middlewareArray.push(thunk.withExtraArgument(thunk$1.extraArgument));
1974 + if (immutableCheck) {
1975 + var immutableOptions = {};
1976 + if (!isBoolean(immutableCheck)) immutableOptions = immutableCheck;
1977 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
1978 + }
1979 + if (serializableCheck) {
1980 + var serializableOptions = {};
1981 + if (!isBoolean(serializableCheck)) serializableOptions = serializableCheck;
1982 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
1983 + }
1984 + if (actionCreatorCheck) {
1985 + var actionCreatorOptions = {};
1986 + if (!isBoolean(actionCreatorCheck)) actionCreatorOptions = actionCreatorCheck;
1987 + middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
1988 + }
1989 + return middlewareArray;
1990 + }
1991 + var IS_PRODUCTION = false;
1992 + function configureStore(options) {
1993 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
1994 + var _c = options || {};
1995 + var _d = _c.reducer;
1996 + var reducer = _d === void 0 ? void 0 : _d;
1997 + var _e = _c.middleware;
1998 + var middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e;
1999 + var _f = _c.devTools;
2000 + var devTools = _f === void 0 ? true : _f;
2001 + var _g = _c.preloadedState;
2002 + var preloadedState = _g === void 0 ? void 0 : _g;
2003 + var _h = _c.enhancers;
2004 + var enhancers = _h === void 0 ? void 0 : _h;
2005 + var rootReducer;
2006 + if (typeof reducer === "function") rootReducer = reducer;
2007 + else if (isPlainObject$1(reducer)) rootReducer = combineReducers(reducer);
2008 + else throw new Error("\"reducer\" is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
2009 + var finalMiddleware = middleware;
2010 + if (typeof finalMiddleware === "function") {
2011 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
2012 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) throw new Error("when using a middleware builder function, an array of middleware must be returned");
2013 + }
2014 + if (!IS_PRODUCTION && finalMiddleware.some(function(item) {
2015 + return typeof item !== "function";
2016 + })) throw new Error("each middleware provided to configureStore must be a function");
2017 + var middlewareEnhancer = applyMiddleware.apply(void 0, finalMiddleware);
2018 + var finalCompose = compose;
2019 + if (devTools) finalCompose = composeWithDevTools(__spreadValues({ trace: !IS_PRODUCTION }, typeof devTools === "object" && devTools));
2020 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
2021 + var storeEnhancers = defaultEnhancers;
2022 + if (Array.isArray(enhancers)) storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
2023 + else if (typeof enhancers === "function") storeEnhancers = enhancers(defaultEnhancers);
2024 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
2025 + return createStore(rootReducer, preloadedState, composedEnhancer);
2026 + }
2027 + function executeReducerBuilderCallback(builderCallback) {
2028 + var actionsMap = {};
2029 + var actionMatchers = [];
2030 + var defaultCaseReducer;
2031 + var builder = {
2032 + addCase: function(typeOrActionCreator, reducer) {
2033 + if (actionMatchers.length > 0) throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
2034 + if (defaultCaseReducer) throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
2035 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
2036 + if (!type) throw new Error("`builder.addCase` cannot be called with an empty action type");
2037 + if (type in actionsMap) throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
2038 + actionsMap[type] = reducer;
2039 + return builder;
2040 + },
2041 + addMatcher: function(matcher, reducer) {
2042 + if (defaultCaseReducer) throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
2043 + actionMatchers.push({
2044 + matcher,
2045 + reducer
2046 + });
2047 + return builder;
2048 + },
2049 + addDefaultCase: function(reducer) {
2050 + if (defaultCaseReducer) throw new Error("`builder.addDefaultCase` can only be called once");
2051 + defaultCaseReducer = reducer;
2052 + return builder;
2053 + }
2054 + };
2055 + builderCallback(builder);
2056 + return [
2057 + actionsMap,
2058 + actionMatchers,
2059 + defaultCaseReducer
2060 + ];
2061 + }
2062 + function isStateFunction(x) {
2063 + return typeof x === "function";
2064 + }
2065 + var hasWarnedAboutObjectNotation = false;
2066 + function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
2067 + if (actionMatchers === void 0) actionMatchers = [];
2068 + if (typeof mapOrBuilderCallback === "object") {
2069 + if (!hasWarnedAboutObjectNotation) {
2070 + hasWarnedAboutObjectNotation = true;
2071 + 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");
2072 + }
2073 + }
2074 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [
2075 + mapOrBuilderCallback,
2076 + actionMatchers,
2077 + defaultCaseReducer
2078 + ];
2079 + var actionsMap = _c[0];
2080 + var finalActionMatchers = _c[1];
2081 + var finalDefaultCaseReducer = _c[2];
2082 + var getInitialState;
2083 + if (isStateFunction(initialState)) getInitialState = function() {
2084 + return freezeDraftable(initialState());
2085 + };
2086 + else {
2087 + var frozenInitialState_1 = freezeDraftable(initialState);
2088 + getInitialState = function() {
2089 + return frozenInitialState_1;
2090 + };
2091 + }
2092 + function reducer(state, action) {
2093 + if (state === void 0) state = getInitialState();
2094 + var caseReducers = __spreadArray([actionsMap[action.type]], finalActionMatchers.filter(function(_c) {
2095 + var matcher = _c.matcher;
2096 + return matcher(action);
2097 + }).map(function(_c) {
2098 + return _c.reducer;
2099 + }));
2100 + if (caseReducers.filter(function(cr) {
2101 + return !!cr;
2102 + }).length === 0) caseReducers = [finalDefaultCaseReducer];
2103 + return caseReducers.reduce(function(previousState, caseReducer) {
2104 + if (caseReducer) if (r(previousState)) {
2105 + var result = caseReducer(previousState, action);
2106 + if (result === void 0) return previousState;
2107 + return result;
2108 + } else if (!t(previousState)) {
2109 + var result = caseReducer(previousState, action);
2110 + if (result === void 0) {
2111 + if (previousState === null) return previousState;
2112 + throw Error("A case reducer on a non-draftable value must not return undefined");
2113 + }
2114 + return result;
2115 + } else return fn(previousState, function(draft) {
2116 + return caseReducer(draft, action);
2117 + });
2118 + return previousState;
2119 + }, state);
2120 + }
2121 + reducer.getInitialState = getInitialState;
2122 + return reducer;
2123 + }
2124 + var hasWarnedAboutObjectNotation2 = false;
2125 + function getType2(slice, actionKey) {
2126 + return slice + "/" + actionKey;
2127 + }
2128 + function createSlice(options) {
2129 + var name = options.name;
2130 + if (!name) throw new Error("`name` is a required option for createSlice");
2131 + if (typeof process !== "undefined" && true) {
2132 + if (options.initialState === void 0) console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
2133 + }
2134 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
2135 + var reducers = options.reducers || {};
2136 + var reducerNames = Object.keys(reducers);
2137 + var sliceCaseReducersByName = {};
2138 + var sliceCaseReducersByType = {};
2139 + var actionCreators = {};
2140 + reducerNames.forEach(function(reducerName) {
2141 + var maybeReducerWithPrepare = reducers[reducerName];
2142 + var type = getType2(name, reducerName);
2143 + var caseReducer;
2144 + var prepareCallback;
2145 + if ("reducer" in maybeReducerWithPrepare) {
2146 + caseReducer = maybeReducerWithPrepare.reducer;
2147 + prepareCallback = maybeReducerWithPrepare.prepare;
2148 + } else caseReducer = maybeReducerWithPrepare;
2149 + sliceCaseReducersByName[reducerName] = caseReducer;
2150 + sliceCaseReducersByType[type] = caseReducer;
2151 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
2152 + });
2153 + function buildReducer() {
2154 + if (typeof options.extraReducers === "object") {
2155 + if (!hasWarnedAboutObjectNotation2) {
2156 + hasWarnedAboutObjectNotation2 = true;
2157 + 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");
2158 + }
2159 + }
2160 + var _c = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];
2161 + var _d = _c[0];
2162 + var extraReducers = _d === void 0 ? {} : _d;
2163 + var _e = _c[1];
2164 + var actionMatchers = _e === void 0 ? [] : _e;
2165 + var _f = _c[2];
2166 + var defaultCaseReducer = _f === void 0 ? void 0 : _f;
2167 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
2168 + return createReducer(initialState, function(builder) {
2169 + for (var key in finalCaseReducers) builder.addCase(key, finalCaseReducers[key]);
2170 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
2171 + var m = actionMatchers_1[_i];
2172 + builder.addMatcher(m.matcher, m.reducer);
2173 + }
2174 + if (defaultCaseReducer) builder.addDefaultCase(defaultCaseReducer);
2175 + });
2176 + }
2177 + var _reducer;
2178 + return {
2179 + name,
2180 + reducer: function(state, action) {
2181 + if (!_reducer) _reducer = buildReducer();
2182 + return _reducer(state, action);
2183 + },
2184 + actions: actionCreators,
2185 + caseReducers: sliceCaseReducersByName,
2186 + getInitialState: function() {
2187 + if (!_reducer) _reducer = buildReducer();
2188 + return _reducer.getInitialState();
2189 + }
2190 + };
2191 + }
2192 + function getInitialEntityState() {
2193 + return {
2194 + ids: [],
2195 + entities: {}
2196 + };
2197 + }
2198 + function createInitialStateFactory() {
2199 + function getInitialState(additionalState) {
2200 + if (additionalState === void 0) additionalState = {};
2201 + return Object.assign(getInitialEntityState(), additionalState);
2202 + }
2203 + return { getInitialState };
2204 + }
2205 + function createSelectorsFactory() {
2206 + function getSelectors(selectState) {
2207 + var selectIds = function(state) {
2208 + return state.ids;
2209 + };
2210 + var selectEntities = function(state) {
2211 + return state.entities;
2212 + };
2213 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function(ids, entities) {
2214 + return ids.map(function(id) {
2215 + return entities[id];
2216 + });
2217 + });
2218 + var selectId = function(_, id) {
2219 + return id;
2220 + };
2221 + var selectById = function(entities, id) {
2222 + return entities[id];
2223 + };
2224 + var selectTotal = createDraftSafeSelector(selectIds, function(ids) {
2225 + return ids.length;
2226 + });
2227 + if (!selectState) return {
2228 + selectIds,
2229 + selectEntities,
2230 + selectAll,
2231 + selectTotal,
2232 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
2233 + };
2234 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
2235 + return {
2236 + selectIds: createDraftSafeSelector(selectState, selectIds),
2237 + selectEntities: selectGlobalizedEntities,
2238 + selectAll: createDraftSafeSelector(selectState, selectAll),
2239 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
2240 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
2241 + };
2242 + }
2243 + return { getSelectors };
2244 + }
2245 + function createSingleArgumentStateOperator(mutator) {
2246 + var operator = createStateOperator(function(_, state) {
2247 + return mutator(state);
2248 + });
2249 + return function operation(state) {
2250 + return operator(state, void 0);
2251 + };
2252 + }
2253 + function createStateOperator(mutator) {
2254 + return function operation(state, arg) {
2255 + function isPayloadActionArgument(arg2) {
2256 + return isFSA(arg2);
2257 + }
2258 + var runMutator = function(draft) {
2259 + if (isPayloadActionArgument(arg)) mutator(arg.payload, draft);
2260 + else mutator(arg, draft);
2261 + };
2262 + if (r(state)) {
2263 + runMutator(state);
2264 + return state;
2265 + } else return fn(state, runMutator);
2266 + };
2267 + }
2268 + function selectIdValue(entity, selectId) {
2269 + var key = selectId(entity);
2270 + if (key === void 0) 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());
2271 + return key;
2272 + }
2273 + function ensureEntitiesArray(entities) {
2274 + if (!Array.isArray(entities)) entities = Object.values(entities);
2275 + return entities;
2276 + }
2277 + function splitAddedUpdatedEntities(newEntities, selectId, state) {
2278 + newEntities = ensureEntitiesArray(newEntities);
2279 + var added = [];
2280 + var updated = [];
2281 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
2282 + var entity = newEntities_1[_i];
2283 + var id = selectIdValue(entity, selectId);
2284 + if (id in state.entities) updated.push({
2285 + id,
2286 + changes: entity
2287 + });
2288 + else added.push(entity);
2289 + }
2290 + return [added, updated];
2291 + }
2292 + function createUnsortedStateAdapter(selectId) {
2293 + function addOneMutably(entity, state) {
2294 + var key = selectIdValue(entity, selectId);
2295 + if (key in state.entities) return;
2296 + state.ids.push(key);
2297 + state.entities[key] = entity;
2298 + }
2299 + function addManyMutably(newEntities, state) {
2300 + newEntities = ensureEntitiesArray(newEntities);
2301 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
2302 + var entity = newEntities_2[_i];
2303 + addOneMutably(entity, state);
2304 + }
2305 + }
2306 + function setOneMutably(entity, state) {
2307 + var key = selectIdValue(entity, selectId);
2308 + if (!(key in state.entities)) state.ids.push(key);
2309 + state.entities[key] = entity;
2310 + }
2311 + function setManyMutably(newEntities, state) {
2312 + newEntities = ensureEntitiesArray(newEntities);
2313 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
2314 + var entity = newEntities_3[_i];
2315 + setOneMutably(entity, state);
2316 + }
2317 + }
2318 + function setAllMutably(newEntities, state) {
2319 + newEntities = ensureEntitiesArray(newEntities);
2320 + state.ids = [];
2321 + state.entities = {};
2322 + addManyMutably(newEntities, state);
2323 + }
2324 + function removeOneMutably(key, state) {
2325 + return removeManyMutably([key], state);
2326 + }
2327 + function removeManyMutably(keys, state) {
2328 + var didMutate = false;
2329 + keys.forEach(function(key) {
2330 + if (key in state.entities) {
2331 + delete state.entities[key];
2332 + didMutate = true;
2333 + }
2334 + });
2335 + if (didMutate) state.ids = state.ids.filter(function(id) {
2336 + return id in state.entities;
2337 + });
2338 + }
2339 + function removeAllMutably(state) {
2340 + Object.assign(state, {
2341 + ids: [],
2342 + entities: {}
2343 + });
2344 + }
2345 + function takeNewKey(keys, update, state) {
2346 + var original2 = state.entities[update.id];
2347 + var updated = Object.assign({}, original2, update.changes);
2348 + var newKey = selectIdValue(updated, selectId);
2349 + var hasNewKey = newKey !== update.id;
2350 + if (hasNewKey) {
2351 + keys[update.id] = newKey;
2352 + delete state.entities[update.id];
2353 + }
2354 + state.entities[newKey] = updated;
2355 + return hasNewKey;
2356 + }
2357 + function updateOneMutably(update, state) {
2358 + return updateManyMutably([update], state);
2359 + }
2360 + function updateManyMutably(updates, state) {
2361 + var newKeys = {};
2362 + var updatesPerEntity = {};
2363 + updates.forEach(function(update) {
2364 + if (update.id in state.entities) updatesPerEntity[update.id] = {
2365 + id: update.id,
2366 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
2367 + };
2368 + });
2369 + updates = Object.values(updatesPerEntity);
2370 + if (updates.length > 0) {
2371 + if (updates.filter(function(update) {
2372 + return takeNewKey(newKeys, update, state);
2373 + }).length > 0) state.ids = Object.keys(state.entities);
2374 + }
2375 + }
2376 + function upsertOneMutably(entity, state) {
2377 + return upsertManyMutably([entity], state);
2378 + }
2379 + function upsertManyMutably(newEntities, state) {
2380 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state);
2381 + var added = _c[0];
2382 + var updated = _c[1];
2383 + updateManyMutably(updated, state);
2384 + addManyMutably(added, state);
2385 + }
2386 + return {
2387 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
2388 + addOne: createStateOperator(addOneMutably),
2389 + addMany: createStateOperator(addManyMutably),
2390 + setOne: createStateOperator(setOneMutably),
2391 + setMany: createStateOperator(setManyMutably),
2392 + setAll: createStateOperator(setAllMutably),
2393 + updateOne: createStateOperator(updateOneMutably),
2394 + updateMany: createStateOperator(updateManyMutably),
2395 + upsertOne: createStateOperator(upsertOneMutably),
2396 + upsertMany: createStateOperator(upsertManyMutably),
2397 + removeOne: createStateOperator(removeOneMutably),
2398 + removeMany: createStateOperator(removeManyMutably)
2399 + };
2400 + }
2401 + function createSortedStateAdapter(selectId, sort) {
2402 + var _c = createUnsortedStateAdapter(selectId);
2403 + var removeOne = _c.removeOne;
2404 + var removeMany = _c.removeMany;
2405 + var removeAll = _c.removeAll;
2406 + function addOneMutably(entity, state) {
2407 + return addManyMutably([entity], state);
2408 + }
2409 + function addManyMutably(newEntities, state) {
2410 + newEntities = ensureEntitiesArray(newEntities);
2411 + var models = newEntities.filter(function(model) {
2412 + return !(selectIdValue(model, selectId) in state.entities);
2413 + });
2414 + if (models.length !== 0) merge(models, state);
2415 + }
2416 + function setOneMutably(entity, state) {
2417 + return setManyMutably([entity], state);
2418 + }
2419 + function setManyMutably(newEntities, state) {
2420 + newEntities = ensureEntitiesArray(newEntities);
2421 + if (newEntities.length !== 0) merge(newEntities, state);
2422 + }
2423 + function setAllMutably(newEntities, state) {
2424 + newEntities = ensureEntitiesArray(newEntities);
2425 + state.entities = {};
2426 + state.ids = [];
2427 + addManyMutably(newEntities, state);
2428 + }
2429 + function updateOneMutably(update, state) {
2430 + return updateManyMutably([update], state);
2431 + }
2432 + function updateManyMutably(updates, state) {
2433 + var appliedUpdates = false;
2434 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
2435 + var update = updates_1[_i];
2436 + var entity = state.entities[update.id];
2437 + if (!entity) continue;
2438 + appliedUpdates = true;
2439 + Object.assign(entity, update.changes);
2440 + var newId = selectId(entity);
2441 + if (update.id !== newId) {
2442 + delete state.entities[update.id];
2443 + state.entities[newId] = entity;
2444 + }
2445 + }
2446 + if (appliedUpdates) resortEntities(state);
2447 + }
2448 + function upsertOneMutably(entity, state) {
2449 + return upsertManyMutably([entity], state);
2450 + }
2451 + function upsertManyMutably(newEntities, state) {
2452 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state);
2453 + var added = _c[0];
2454 + var updated = _c[1];
2455 + updateManyMutably(updated, state);
2456 + addManyMutably(added, state);
2457 + }
2458 + function areArraysEqual(a, b) {
2459 + if (a.length !== b.length) return false;
2460 + for (var i = 0; i < a.length && i < b.length; i++) {
2461 + if (a[i] === b[i]) continue;
2462 + return false;
2463 + }
2464 + return true;
2465 + }
2466 + function merge(models, state) {
2467 + models.forEach(function(model) {
2468 + state.entities[selectId(model)] = model;
2469 + });
2470 + resortEntities(state);
2471 + }
2472 + function resortEntities(state) {
2473 + var allEntities = Object.values(state.entities);
2474 + allEntities.sort(sort);
2475 + var newSortedIds = allEntities.map(selectId);
2476 + var ids = state.ids;
2477 + if (!areArraysEqual(ids, newSortedIds)) state.ids = newSortedIds;
2478 + }
2479 + return {
2480 + removeOne,
2481 + removeMany,
2482 + removeAll,
2483 + addOne: createStateOperator(addOneMutably),
2484 + updateOne: createStateOperator(updateOneMutably),
2485 + upsertOne: createStateOperator(upsertOneMutably),
2486 + setOne: createStateOperator(setOneMutably),
2487 + setMany: createStateOperator(setManyMutably),
2488 + setAll: createStateOperator(setAllMutably),
2489 + addMany: createStateOperator(addManyMutably),
2490 + updateMany: createStateOperator(updateManyMutably),
2491 + upsertMany: createStateOperator(upsertManyMutably)
2492 + };
2493 + }
2494 + function createEntityAdapter(options) {
2495 + if (options === void 0) options = {};
2496 + var _c = __spreadValues({
2497 + sortComparer: false,
2498 + selectId: function(instance) {
2499 + return instance.id;
2500 + }
2501 + }, options);
2502 + var selectId = _c.selectId;
2503 + var sortComparer = _c.sortComparer;
2504 + var stateFactory = createInitialStateFactory();
2505 + var selectorsFactory = createSelectorsFactory();
2506 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
2507 + return __spreadValues(__spreadValues(__spreadValues({
2508 + selectId,
2509 + sortComparer
2510 + }, stateFactory), selectorsFactory), stateAdapter);
2511 + }
2512 + var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
2513 + var nanoid = function(size) {
2514 + if (size === void 0) size = 21;
2515 + var id = "";
2516 + var i = size;
2517 + while (i--) id += urlAlphabet[Math.random() * 64 | 0];
2518 + return id;
2519 + };
2520 + var commonProperties = [
2521 + "name",
2522 + "message",
2523 + "stack",
2524 + "code"
2525 + ];
2526 + var RejectWithValue = function() {
2527 + function RejectWithValue(payload, meta) {
2528 + this.payload = payload;
2529 + this.meta = meta;
2530 + }
2531 + return RejectWithValue;
2532 + }();
2533 + var FulfillWithMeta = function() {
2534 + function FulfillWithMeta(payload, meta) {
2535 + this.payload = payload;
2536 + this.meta = meta;
2537 + }
2538 + return FulfillWithMeta;
2539 + }();
2540 + var miniSerializeError = function(value) {
2541 + if (typeof value === "object" && value !== null) {
2542 + var simpleError = {};
2543 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
2544 + var property = commonProperties_1[_i];
2545 + if (typeof value[property] === "string") simpleError[property] = value[property];
2546 + }
2547 + return simpleError;
2548 + }
2549 + return { message: String(value) };
2550 + };
2551 + var createAsyncThunk = (function() {
2552 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
2553 + var fulfilled = createAction(typePrefix + "/fulfilled", function(payload, requestId, arg, meta) {
2554 + return {
2555 + payload,
2556 + meta: __spreadProps(__spreadValues({}, meta || {}), {
2557 + arg,
2558 + requestId,
2559 + requestStatus: "fulfilled"
2560 + })
2561 + };
2562 + });
2563 + var pending = createAction(typePrefix + "/pending", function(requestId, arg, meta) {
2564 + return {
2565 + payload: void 0,
2566 + meta: __spreadProps(__spreadValues({}, meta || {}), {
2567 + arg,
2568 + requestId,
2569 + requestStatus: "pending"
2570 + })
2571 + };
2572 + });
2573 + var rejected = createAction(typePrefix + "/rejected", function(error, requestId, arg, payload, meta) {
2574 + return {
2575 + payload,
2576 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
2577 + meta: __spreadProps(__spreadValues({}, meta || {}), {
2578 + arg,
2579 + requestId,
2580 + rejectedWithValue: !!payload,
2581 + requestStatus: "rejected",
2582 + aborted: (error == null ? void 0 : error.name) === "AbortError",
2583 + condition: (error == null ? void 0 : error.name) === "ConditionError"
2584 + })
2585 + };
2586 + });
2587 + var displayedWarning = false;
2588 + var AC = typeof AbortController !== "undefined" ? AbortController : function() {
2589 + function class_1() {
2590 + this.signal = {
2591 + aborted: false,
2592 + addEventListener: function() {},
2593 + dispatchEvent: function() {
2594 + return false;
2595 + },
2596 + onabort: function() {},
2597 + removeEventListener: function() {},
2598 + reason: void 0,
2599 + throwIfAborted: function() {}
2600 + };
2601 + }
2602 + class_1.prototype.abort = function() {
2603 + if (!displayedWarning) {
2604 + displayedWarning = true;
2605 + 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'.");
2606 + }
2607 + };
2608 + return class_1;
2609 + }();
2610 + function actionCreator(arg) {
2611 + return function(dispatch, getState, extra) {
2612 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
2613 + var abortController = new AC();
2614 + var abortReason;
2615 + function abort(reason) {
2616 + abortReason = reason;
2617 + abortController.abort();
2618 + }
2619 + var promise2 = function() {
2620 + return __async(this, null, function() {
2621 + var _a;
2622 + var _b;
2623 + var finalAction;
2624 + var conditionResult;
2625 + var abortedPromise;
2626 + var err_1;
2627 + var skipDispatch;
2628 + return __generator(this, function(_c) {
2629 + switch (_c.label) {
2630 + case 0:
2631 + _c.trys.push([
2632 + 0,
2633 + 4,
2634 + ,
2635 + 5
2636 + ]);
2637 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, {
2638 + getState,
2639 + extra
2640 + });
2641 + if (!isThenable(conditionResult)) return [3, 2];
2642 + return [4, conditionResult];
2643 + case 1:
2644 + conditionResult = _c.sent();
2645 + _c.label = 2;
2646 + case 2:
2647 + if (conditionResult === false || abortController.signal.aborted) throw {
2648 + name: "ConditionError",
2649 + message: "Aborted due to condition callback returning false."
2650 + };
2651 + abortedPromise = new Promise(function(_, reject) {
2652 + return abortController.signal.addEventListener("abort", function() {
2653 + return reject({
2654 + name: "AbortError",
2655 + message: abortReason || "Aborted"
2656 + });
2657 + });
2658 + });
2659 + dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, {
2660 + requestId,
2661 + arg
2662 + }, {
2663 + getState,
2664 + extra
2665 + })));
2666 + return [4, Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {
2667 + dispatch,
2668 + getState,
2669 + extra,
2670 + requestId,
2671 + signal: abortController.signal,
2672 + abort,
2673 + rejectWithValue: function(value, meta) {
2674 + return new RejectWithValue(value, meta);
2675 + },
2676 + fulfillWithValue: function(value, meta) {
2677 + return new FulfillWithMeta(value, meta);
2678 + }
2679 + })).then(function(result) {
2680 + if (result instanceof RejectWithValue) throw result;
2681 + if (result instanceof FulfillWithMeta) return fulfilled(result.payload, requestId, arg, result.meta);
2682 + return fulfilled(result, requestId, arg);
2683 + })])];
2684 + case 3:
2685 + finalAction = _c.sent();
2686 + return [3, 5];
2687 + case 4:
2688 + err_1 = _c.sent();
2689 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
2690 + return [3, 5];
2691 + case 5:
2692 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
2693 + if (!skipDispatch) dispatch(finalAction);
2694 + return [2, finalAction];
2695 + }
2696 + });
2697 + });
2698 + }();
2699 + return Object.assign(promise2, {
2700 + abort,
2701 + requestId,
2702 + arg,
2703 + unwrap: function() {
2704 + return promise2.then(unwrapResult);
2705 + }
2706 + });
2707 + };
2708 + }
2709 + return Object.assign(actionCreator, {
2710 + pending,
2711 + rejected,
2712 + fulfilled,
2713 + typePrefix
2714 + });
2715 + }
2716 + createAsyncThunk2.withTypes = function() {
2717 + return createAsyncThunk2;
2718 + };
2719 + return createAsyncThunk2;
2720 + })();
2721 + function unwrapResult(action) {
2722 + if (action.meta && action.meta.rejectedWithValue) throw action.payload;
2723 + if (action.error) throw action.error;
2724 + return action.payload;
2725 + }
2726 + function isThenable(value) {
2727 + return value !== null && typeof value === "object" && typeof value.then === "function";
2728 + }
2729 + var matches = function(matcher, action) {
2730 + if (hasMatchFunction(matcher)) return matcher.match(action);
2731 + else return matcher(action);
2732 + };
2733 + function isAnyOf() {
2734 + var matchers = [];
2735 + for (var _i = 0; _i < arguments.length; _i++) matchers[_i] = arguments[_i];
2736 + return function(action) {
2737 + return matchers.some(function(matcher) {
2738 + return matches(matcher, action);
2739 + });
2740 + };
2741 + }
2742 + function isAllOf() {
2743 + var matchers = [];
2744 + for (var _i = 0; _i < arguments.length; _i++) matchers[_i] = arguments[_i];
2745 + return function(action) {
2746 + return matchers.every(function(matcher) {
2747 + return matches(matcher, action);
2748 + });
2749 + };
2750 + }
2751 + function hasExpectedRequestMetadata(action, validStatus) {
2752 + if (!action || !action.meta) return false;
2753 + var hasValidRequestId = typeof action.meta.requestId === "string";
2754 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
2755 + return hasValidRequestId && hasValidRequestStatus;
2756 + }
2757 + function isAsyncThunkArray(a) {
2758 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
2759 + }
2760 + function isPending() {
2761 + var asyncThunks = [];
2762 + for (var _i = 0; _i < arguments.length; _i++) asyncThunks[_i] = arguments[_i];
2763 + if (asyncThunks.length === 0) return function(action) {
2764 + return hasExpectedRequestMetadata(action, ["pending"]);
2765 + };
2766 + if (!isAsyncThunkArray(asyncThunks)) return isPending()(asyncThunks[0]);
2767 + return function(action) {
2768 + var matchers = asyncThunks.map(function(asyncThunk) {
2769 + return asyncThunk.pending;
2770 + });
2771 + return isAnyOf.apply(void 0, matchers)(action);
2772 + };
2773 + }
2774 + function isRejected() {
2775 + var asyncThunks = [];
2776 + for (var _i = 0; _i < arguments.length; _i++) asyncThunks[_i] = arguments[_i];
2777 + if (asyncThunks.length === 0) return function(action) {
2778 + return hasExpectedRequestMetadata(action, ["rejected"]);
2779 + };
2780 + if (!isAsyncThunkArray(asyncThunks)) return isRejected()(asyncThunks[0]);
2781 + return function(action) {
2782 + var matchers = asyncThunks.map(function(asyncThunk) {
2783 + return asyncThunk.rejected;
2784 + });
2785 + return isAnyOf.apply(void 0, matchers)(action);
2786 + };
2787 + }
2788 + function isRejectedWithValue() {
2789 + var asyncThunks = [];
2790 + for (var _i = 0; _i < arguments.length; _i++) asyncThunks[_i] = arguments[_i];
2791 + var hasFlag = function(action) {
2792 + return action && action.meta && action.meta.rejectedWithValue;
2793 + };
2794 + if (asyncThunks.length === 0) return function(action) {
2795 + return isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag)(action);
2796 + };
2797 + if (!isAsyncThunkArray(asyncThunks)) return isRejectedWithValue()(asyncThunks[0]);
2798 + return function(action) {
2799 + return isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag)(action);
2800 + };
2801 + }
2802 + function isFulfilled() {
2803 + var asyncThunks = [];
2804 + for (var _i = 0; _i < arguments.length; _i++) asyncThunks[_i] = arguments[_i];
2805 + if (asyncThunks.length === 0) return function(action) {
2806 + return hasExpectedRequestMetadata(action, ["fulfilled"]);
2807 + };
2808 + if (!isAsyncThunkArray(asyncThunks)) return isFulfilled()(asyncThunks[0]);
2809 + return function(action) {
2810 + var matchers = asyncThunks.map(function(asyncThunk) {
2811 + return asyncThunk.fulfilled;
2812 + });
2813 + return isAnyOf.apply(void 0, matchers)(action);
2814 + };
2815 + }
2816 + function isAsyncThunkAction() {
2817 + var asyncThunks = [];
2818 + for (var _i = 0; _i < arguments.length; _i++) asyncThunks[_i] = arguments[_i];
2819 + if (asyncThunks.length === 0) return function(action) {
2820 + return hasExpectedRequestMetadata(action, [
2821 + "pending",
2822 + "fulfilled",
2823 + "rejected"
2824 + ]);
2825 + };
2826 + if (!isAsyncThunkArray(asyncThunks)) return isAsyncThunkAction()(asyncThunks[0]);
2827 + return function(action) {
2828 + var matchers = [];
2829 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
2830 + var asyncThunk = asyncThunks_1[_i];
2831 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
2832 + }
2833 + return isAnyOf.apply(void 0, matchers)(action);
2834 + };
2835 + }
2836 + var assertFunction = function(func, expected) {
2837 + if (typeof func !== "function") throw new TypeError(expected + " is not a function");
2838 + };
2839 + var noop = function() {};
2840 + var catchRejection = function(promise2, onError) {
2841 + if (onError === void 0) onError = noop;
2842 + promise2.catch(onError);
2843 + return promise2;
2844 + };
2845 + var addAbortSignalListener = function(abortSignal, callback) {
2846 + abortSignal.addEventListener("abort", callback, { once: true });
2847 + return function() {
2848 + return abortSignal.removeEventListener("abort", callback);
2849 + };
2850 + };
2851 + var abortControllerWithReason = function(abortController, reason) {
2852 + var signal = abortController.signal;
2853 + if (signal.aborted) return;
2854 + if (!("reason" in signal)) Object.defineProperty(signal, "reason", {
2855 + enumerable: true,
2856 + value: reason,
2857 + configurable: true,
2858 + writable: true
2859 + });
2860 + abortController.abort(reason);
2861 + };
2862 + var task = "task";
2863 + var listener = "listener";
2864 + var completed = "completed";
2865 + var cancelled = "cancelled";
2866 + var taskCancelled = "task-" + cancelled;
2867 + var taskCompleted = "task-" + completed;
2868 + var listenerCancelled = listener + "-" + cancelled;
2869 + var listenerCompleted = listener + "-" + completed;
2870 + var TaskAbortError = function() {
2871 + function TaskAbortError(code) {
2872 + this.code = code;
2873 + this.name = "TaskAbortError";
2874 + this.message = task + " " + cancelled + " (reason: " + code + ")";
2875 + }
2876 + return TaskAbortError;
2877 + }();
2878 + var validateActive = function(signal) {
2879 + if (signal.aborted) throw new TaskAbortError(signal.reason);
2880 + };
2881 + function raceWithSignal(signal, promise2) {
2882 + var cleanup = noop;
2883 + return new Promise(function(resolve, reject) {
2884 + var notifyRejection = function() {
2885 + return reject(new TaskAbortError(signal.reason));
2886 + };
2887 + if (signal.aborted) {
2888 + notifyRejection();
2889 + return;
2890 + }
2891 + cleanup = addAbortSignalListener(signal, notifyRejection);
2892 + promise2.finally(function() {
2893 + return cleanup();
2894 + }).then(resolve, reject);
2895 + }).finally(function() {
2896 + cleanup = noop;
2897 + });
2898 + }
2899 + var runTask = function(task2, cleanUp) {
2900 + return __async(void 0, null, function() {
2901 + var value;
2902 + var error_1;
2903 + return __generator(this, function(_c) {
2904 + switch (_c.label) {
2905 + case 0:
2906 + _c.trys.push([
2907 + 0,
2908 + 3,
2909 + 4,
2910 + 5
2911 + ]);
2912 + return [4, Promise.resolve()];
2913 + case 1:
2914 + _c.sent();
2915 + return [4, task2()];
2916 + case 2:
2917 + value = _c.sent();
2918 + return [2, {
2919 + status: "ok",
2920 + value
2921 + }];
2922 + case 3:
2923 + error_1 = _c.sent();
2924 + return [2, {
2925 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
2926 + error: error_1
2927 + }];
2928 + case 4:
2929 + cleanUp == null || cleanUp();
2930 + return [7];
2931 + case 5: return [2];
2932 + }
2933 + });
2934 + });
2935 + };
2936 + var createPause = function(signal) {
2937 + return function(promise2) {
2938 + return catchRejection(raceWithSignal(signal, promise2).then(function(output) {
2939 + validateActive(signal);
2940 + return output;
2941 + }));
2942 + };
2943 + };
2944 + var createDelay = function(signal) {
2945 + var pause = createPause(signal);
2946 + return function(timeoutMs) {
2947 + return pause(new Promise(function(resolve) {
2948 + return setTimeout(resolve, timeoutMs);
2949 + }));
2950 + };
2951 + };
2952 + var assign = Object.assign;
2953 + var INTERNAL_NIL_TOKEN = {};
2954 + var alm = "listenerMiddleware";
2955 + var createFork = function(parentAbortSignal, parentBlockingPromises) {
2956 + var linkControllers = function(controller) {
2957 + return addAbortSignalListener(parentAbortSignal, function() {
2958 + return abortControllerWithReason(controller, parentAbortSignal.reason);
2959 + });
2960 + };
2961 + return function(taskExecutor, opts) {
2962 + assertFunction(taskExecutor, "taskExecutor");
2963 + var childAbortController = new AbortController();
2964 + linkControllers(childAbortController);
2965 + var result = runTask(function() {
2966 + return __async(void 0, null, function() {
2967 + var result2;
2968 + return __generator(this, function(_c) {
2969 + switch (_c.label) {
2970 + case 0:
2971 + validateActive(parentAbortSignal);
2972 + validateActive(childAbortController.signal);
2973 + return [4, taskExecutor({
2974 + pause: createPause(childAbortController.signal),
2975 + delay: createDelay(childAbortController.signal),
2976 + signal: childAbortController.signal
2977 + })];
2978 + case 1:
2979 + result2 = _c.sent();
2980 + validateActive(childAbortController.signal);
2981 + return [2, result2];
2982 + }
2983 + });
2984 + });
2985 + }, function() {
2986 + return abortControllerWithReason(childAbortController, taskCompleted);
2987 + });
2988 + if (opts == null ? void 0 : opts.autoJoin) parentBlockingPromises.push(result);
2989 + return {
2990 + result: createPause(parentAbortSignal)(result),
2991 + cancel: function() {
2992 + abortControllerWithReason(childAbortController, taskCancelled);
2993 + }
2994 + };
2995 + };
2996 + };
2997 + var createTakePattern = function(startListening, signal) {
2998 + var take = function(predicate, timeout) {
2999 + return __async(void 0, null, function() {
3000 + var unsubscribe;
3001 + var tuplePromise;
3002 + var promises;
3003 + var output;
3004 + return __generator(this, function(_c) {
3005 + switch (_c.label) {
3006 + case 0:
3007 + validateActive(signal);
3008 + unsubscribe = function() {};
3009 + tuplePromise = new Promise(function(resolve, reject) {
3010 + var stopListening = startListening({
3011 + predicate,
3012 + effect: function(action, listenerApi) {
3013 + listenerApi.unsubscribe();
3014 + resolve([
3015 + action,
3016 + listenerApi.getState(),
3017 + listenerApi.getOriginalState()
3018 + ]);
3019 + }
3020 + });
3021 + unsubscribe = function() {
3022 + stopListening();
3023 + reject();
3024 + };
3025 + });
3026 + promises = [tuplePromise];
3027 + if (timeout != null) promises.push(new Promise(function(resolve) {
3028 + return setTimeout(resolve, timeout, null);
3029 + }));
3030 + _c.label = 1;
3031 + case 1:
3032 + _c.trys.push([
3033 + 1,
3034 + ,
3035 + 3,
3036 + 4
3037 + ]);
3038 + return [4, raceWithSignal(signal, Promise.race(promises))];
3039 + case 2:
3040 + output = _c.sent();
3041 + validateActive(signal);
3042 + return [2, output];
3043 + case 3:
3044 + unsubscribe();
3045 + return [7];
3046 + case 4: return [2];
3047 + }
3048 + });
3049 + });
3050 + };
3051 + return function(predicate, timeout) {
3052 + return catchRejection(take(predicate, timeout));
3053 + };
3054 + };
3055 + var getListenerEntryPropsFrom = function(options) {
3056 + var type = options.type;
3057 + var actionCreator = options.actionCreator;
3058 + var matcher = options.matcher;
3059 + var predicate = options.predicate;
3060 + var effect = options.effect;
3061 + if (type) predicate = createAction(type).match;
3062 + else if (actionCreator) {
3063 + type = actionCreator.type;
3064 + predicate = actionCreator.match;
3065 + } else if (matcher) predicate = matcher;
3066 + else if (predicate) {} else throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
3067 + assertFunction(effect, "options.listener");
3068 + return {
3069 + predicate,
3070 + type,
3071 + effect
3072 + };
3073 + };
3074 + var createListenerEntry = function(options) {
3075 + var _c = getListenerEntryPropsFrom(options);
3076 + var type = _c.type;
3077 + var predicate = _c.predicate;
3078 + var effect = _c.effect;
3079 + return {
3080 + id: nanoid(),
3081 + effect,
3082 + type,
3083 + predicate,
3084 + pending: /* @__PURE__ */ new Set(),
3085 + unsubscribe: function() {
3086 + throw new Error("Unsubscribe not initialized");
3087 + }
3088 + };
3089 + };
3090 + var cancelActiveListeners = function(entry) {
3091 + entry.pending.forEach(function(controller) {
3092 + abortControllerWithReason(controller, listenerCancelled);
3093 + });
3094 + };
3095 + var createClearListenerMiddleware = function(listenerMap) {
3096 + return function() {
3097 + listenerMap.forEach(cancelActiveListeners);
3098 + listenerMap.clear();
3099 + };
3100 + };
3101 + var safelyNotifyError = function(errorHandler, errorToNotify, errorInfo) {
3102 + try {
3103 + errorHandler(errorToNotify, errorInfo);
3104 + } catch (errorHandlerError) {
3105 + setTimeout(function() {
3106 + throw errorHandlerError;
3107 + }, 0);
3108 + }
3109 + };
3110 + var addListener = createAction(alm + "/add");
3111 + var clearAllListeners = createAction(alm + "/removeAll");
3112 + var removeListener = createAction(alm + "/remove");
3113 + var defaultErrorHandler = function() {
3114 + var args = [];
3115 + for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
3116 + console.error.apply(console, __spreadArray([alm + "/error"], args));
3117 + };
3118 + function createListenerMiddleware(middlewareOptions) {
3119 + var _this = this;
3120 + if (middlewareOptions === void 0) middlewareOptions = {};
3121 + var listenerMap = /* @__PURE__ */ new Map();
3122 + var extra = middlewareOptions.extra;
3123 + var _c = middlewareOptions.onError;
3124 + var onError = _c === void 0 ? defaultErrorHandler : _c;
3125 + assertFunction(onError, "onError");
3126 + var insertEntry = function(entry) {
3127 + entry.unsubscribe = function() {
3128 + return listenerMap.delete(entry.id);
3129 + };
3130 + listenerMap.set(entry.id, entry);
3131 + return function(cancelOptions) {
3132 + entry.unsubscribe();
3133 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) cancelActiveListeners(entry);
3134 + };
3135 + };
3136 + var findListenerEntry = function(comparator) {
3137 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
3138 + var entry = _c[_i];
3139 + if (comparator(entry)) return entry;
3140 + }
3141 + };
3142 + var startListening = function(options) {
3143 + var entry = findListenerEntry(function(existingEntry) {
3144 + return existingEntry.effect === options.effect;
3145 + });
3146 + if (!entry) entry = createListenerEntry(options);
3147 + return insertEntry(entry);
3148 + };
3149 + var stopListening = function(options) {
3150 + var _c = getListenerEntryPropsFrom(options);
3151 + var type = _c.type;
3152 + var effect = _c.effect;
3153 + var predicate = _c.predicate;
3154 + var entry = findListenerEntry(function(entry2) {
3155 + return (typeof type === "string" ? entry2.type === type : entry2.predicate === predicate) && entry2.effect === effect;
3156 + });
3157 + if (entry) {
3158 + entry.unsubscribe();
3159 + if (options.cancelActive) cancelActiveListeners(entry);
3160 + }
3161 + return !!entry;
3162 + };
3163 + var notifyListener = function(entry, action, api, getOriginalState) {
3164 + return __async(_this, null, function() {
3165 + var internalTaskController;
3166 + var take;
3167 + var autoJoinPromises;
3168 + var listenerError_1;
3169 + return __generator(this, function(_c) {
3170 + switch (_c.label) {
3171 + case 0:
3172 + internalTaskController = new AbortController();
3173 + take = createTakePattern(startListening, internalTaskController.signal);
3174 + autoJoinPromises = [];
3175 + _c.label = 1;
3176 + case 1:
3177 + _c.trys.push([
3178 + 1,
3179 + 3,
3180 + 4,
3181 + 6
3182 + ]);
3183 + entry.pending.add(internalTaskController);
3184 + return [4, Promise.resolve(entry.effect(action, assign({}, api, {
3185 + getOriginalState,
3186 + condition: function(predicate, timeout) {
3187 + return take(predicate, timeout).then(Boolean);
3188 + },
3189 + take,
3190 + delay: createDelay(internalTaskController.signal),
3191 + pause: createPause(internalTaskController.signal),
3192 + extra,
3193 + signal: internalTaskController.signal,
3194 + fork: createFork(internalTaskController.signal, autoJoinPromises),
3195 + unsubscribe: entry.unsubscribe,
3196 + subscribe: function() {
3197 + listenerMap.set(entry.id, entry);
3198 + },
3199 + cancelActiveListeners: function() {
3200 + entry.pending.forEach(function(controller, _, set) {
3201 + if (controller !== internalTaskController) {
3202 + abortControllerWithReason(controller, listenerCancelled);
3203 + set.delete(controller);
3204 + }
3205 + });
3206 + }
3207 + })))];
3208 + case 2:
3209 + _c.sent();
3210 + return [3, 6];
3211 + case 3:
3212 + listenerError_1 = _c.sent();
3213 + if (!(listenerError_1 instanceof TaskAbortError)) safelyNotifyError(onError, listenerError_1, { raisedBy: "effect" });
3214 + return [3, 6];
3215 + case 4: return [4, Promise.allSettled(autoJoinPromises)];
3216 + case 5:
3217 + _c.sent();
3218 + abortControllerWithReason(internalTaskController, listenerCompleted);
3219 + entry.pending.delete(internalTaskController);
3220 + return [7];
3221 + case 6: return [2];
3222 + }
3223 + });
3224 + });
3225 + };
3226 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
3227 + var middleware = function(api) {
3228 + return function(next) {
3229 + return function(action) {
3230 + if (!isAction(action)) return next(action);
3231 + if (addListener.match(action)) return startListening(action.payload);
3232 + if (clearAllListeners.match(action)) {
3233 + clearListenerMiddleware();
3234 + return;
3235 + }
3236 + if (removeListener.match(action)) return stopListening(action.payload);
3237 + var originalState = api.getState();
3238 + var getOriginalState = function() {
3239 + if (originalState === INTERNAL_NIL_TOKEN) throw new Error(alm + ": getOriginalState can only be called synchronously");
3240 + return originalState;
3241 + };
3242 + var result;
3243 + try {
3244 + result = next(action);
3245 + if (listenerMap.size > 0) {
3246 + var currentState = api.getState();
3247 + var listenerEntries = Array.from(listenerMap.values());
3248 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
3249 + var entry = listenerEntries_1[_i];
3250 + var runListener = false;
3251 + try {
3252 + runListener = entry.predicate(action, currentState, originalState);
3253 + } catch (predicateError) {
3254 + runListener = false;
3255 + safelyNotifyError(onError, predicateError, { raisedBy: "predicate" });
3256 + }
3257 + if (!runListener) continue;
3258 + notifyListener(entry, action, api, getOriginalState);
3259 + }
3260 + }
3261 + } finally {
3262 + originalState = INTERNAL_NIL_TOKEN;
3263 + }
3264 + return result;
3265 + };
3266 + };
3267 + };
3268 + return {
3269 + middleware,
3270 + startListening,
3271 + stopListening,
3272 + clearListeners: clearListenerMiddleware
3273 + };
3274 + }
3275 + var SHOULD_AUTOBATCH = "RTK_autoBatch";
3276 + var prepareAutoBatched = function() {
3277 + return function(payload) {
3278 + var _c;
3279 + return {
3280 + payload,
3281 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
3282 + };
3283 + };
3284 + };
3285 + var promise;
3286 + var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : globalThis) : function(cb) {
3287 + return (promise || (promise = Promise.resolve())).then(cb).catch(function(err) {
3288 + return setTimeout(function() {
3289 + throw err;
3290 + }, 0);
3291 + });
3292 + };
3293 + var createQueueWithTimer = function(timeout) {
3294 + return function(notify) {
3295 + setTimeout(notify, timeout);
3296 + };
3297 + };
3298 + var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
3299 + var autoBatchEnhancer = function(options) {
3300 + if (options === void 0) options = { type: "raf" };
3301 + return function(next) {
3302 + return function() {
3303 + var args = [];
3304 + for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
3305 + var store = next.apply(void 0, args);
3306 + var notifying = true;
3307 + var shouldNotifyAtEndOfTick = false;
3308 + var notificationQueued = false;
3309 + var listeners = /* @__PURE__ */ new Set();
3310 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
3311 + var notifyListeners = function() {
3312 + notificationQueued = false;
3313 + if (shouldNotifyAtEndOfTick) {
3314 + shouldNotifyAtEndOfTick = false;
3315 + listeners.forEach(function(l) {
3316 + return l();
3317 + });
3318 + }
3319 + };
3320 + return Object.assign({}, store, {
3321 + subscribe: function(listener2) {
3322 + var wrappedListener = function() {
3323 + return notifying && listener2();
3324 + };
3325 + var unsubscribe = store.subscribe(wrappedListener);
3326 + listeners.add(listener2);
3327 + return function() {
3328 + unsubscribe();
3329 + listeners.delete(listener2);
3330 + };
3331 + },
3332 + dispatch: function(action) {
3333 + var _a;
3334 + try {
3335 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
3336 + shouldNotifyAtEndOfTick = !notifying;
3337 + if (shouldNotifyAtEndOfTick) {
3338 + if (!notificationQueued) {
3339 + notificationQueued = true;
3340 + queueCallback(notifyListeners);
3341 + }
3342 + }
3343 + return store.dispatch(action);
3344 + } finally {
3345 + notifying = true;
3346 + }
3347 + }
3348 + });
3349 + };
3350 + };
3351 + };
3352 + F();
88 3353
89 -/***/ }),
90 -
91 -/***/ "../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
92 -/*!**********************************************************************************!*\
93 - !*** ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
94 - \**********************************************************************************/
95 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
96 -
97 -"use strict";
98 -__webpack_require__.r(__webpack_exports__);
99 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
100 -/* harmony export */ "default": () => (/* binding */ _objectWithoutPropertiesLoose)
101 -/* harmony export */ });
102 -function _objectWithoutPropertiesLoose(r, e) {
103 - if (null == r) return {};
104 - var t = {};
105 - for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
106 - if (-1 !== e.indexOf(n)) continue;
107 - t[n] = r[n];
108 - }
109 - return t;
110 -}
111 -
112 -
113 -/***/ }),
114 -
115 -/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
116 -/*!*****************************************************************!*\
117 - !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
118 - \*****************************************************************/
119 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
120 -
121 -"use strict";
122 -__webpack_require__.r(__webpack_exports__);
123 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
124 -/* harmony export */ "default": () => (/* binding */ toPrimitive)
125 -/* harmony export */ });
126 -/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
127 -
128 -function toPrimitive(t, r) {
129 - if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
130 - var e = t[Symbol.toPrimitive];
131 - if (void 0 !== e) {
132 - var i = e.call(t, r || "default");
133 - if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
134 - throw new TypeError("@@toPrimitive must return a primitive value.");
135 - }
136 - return ("string" === r ? String : Number)(t);
137 -}
138 -
139 -
140 -/***/ }),
141 -
142 -/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
143 -/*!*******************************************************************!*\
144 - !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
145 - \*******************************************************************/
146 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
147 -
148 -"use strict";
149 -__webpack_require__.r(__webpack_exports__);
150 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
151 -/* harmony export */ "default": () => (/* binding */ toPropertyKey)
152 -/* harmony export */ });
153 -/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
154 -/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
155 -
156 -
157 -function toPropertyKey(t) {
158 - var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
159 - return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
160 -}
161 -
162 -
163 -/***/ }),
164 -
165 -/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js":
166 -/*!************************************************************!*\
167 - !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***!
168 - \************************************************************/
169 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
170 -
171 -"use strict";
172 -__webpack_require__.r(__webpack_exports__);
173 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
174 -/* harmony export */ "default": () => (/* binding */ _typeof)
175 -/* harmony export */ });
176 -function _typeof(o) {
177 - "@babel/helpers - typeof";
178 -
179 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
180 - return typeof o;
181 - } : function (o) {
182 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
183 - }, _typeof(o);
184 -}
185 -
186 -
187 -/***/ }),
188 -
189 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
190 -/*!********************************************************!*\
191 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
192 - \********************************************************/
193 -/***/ ((module) => {
194 -
195 -function _typeof(o) {
196 - "@babel/helpers - typeof";
197 -
198 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
199 - return typeof o;
200 - } : function (o) {
201 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
202 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
203 -}
204 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
205 -
206 -/***/ }),
207 -
208 -/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
209 -/*!******************************************************************!*\
210 - !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
211 - \******************************************************************/
212 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
213 -
214 -"use strict";
215 -__webpack_require__.r(__webpack_exports__);
216 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
217 -/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray),
218 -/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray),
219 -/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH),
220 -/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError),
221 -/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.__DO_NOT_USE__ActionTypes),
222 -/* harmony export */ addListener: () => (/* binding */ addListener),
223 -/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware),
224 -/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer),
225 -/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.bindActionCreators),
226 -/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners),
227 -/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers),
228 -/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.compose),
229 -/* harmony export */ configureStore: () => (/* binding */ configureStore),
230 -/* harmony export */ createAction: () => (/* binding */ createAction),
231 -/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware),
232 -/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk),
233 -/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector),
234 -/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter),
235 -/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware),
236 -/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware),
237 -/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__["default"]),
238 -/* harmony export */ createReducer: () => (/* binding */ createReducer),
239 -/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector),
240 -/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware),
241 -/* harmony export */ createSlice: () => (/* binding */ createSlice),
242 -/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.createStore),
243 -/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.current),
244 -/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue),
245 -/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.freeze),
246 -/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware),
247 -/* harmony export */ getType: () => (/* binding */ getType),
248 -/* harmony export */ isAction: () => (/* binding */ isAction),
249 -/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator),
250 -/* harmony export */ isAllOf: () => (/* binding */ isAllOf),
251 -/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf),
252 -/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction),
253 -/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.isDraft),
254 -/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA),
255 -/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled),
256 -/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault),
257 -/* harmony export */ isPending: () => (/* binding */ isPending),
258 -/* harmony export */ isPlain: () => (/* binding */ isPlain),
259 -/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject),
260 -/* harmony export */ isRejected: () => (/* binding */ isRejected),
261 -/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue),
262 -/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.legacy_createStore),
263 -/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError),
264 -/* harmony export */ nanoid: () => (/* binding */ nanoid),
265 -/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.original),
266 -/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched),
267 -/* harmony export */ removeListener: () => (/* binding */ removeListener),
268 -/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult)
269 -/* harmony export */ });
270 -/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
271 -/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
272 -/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
273 -/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
274 -var __extends = (undefined && undefined.__extends) || (function () {
275 - var extendStatics = function (d, b) {
276 - extendStatics = Object.setPrototypeOf ||
277 - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
278 - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
279 - return extendStatics(d, b);
280 - };
281 - return function (d, b) {
282 - if (typeof b !== "function" && b !== null)
283 - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
284 - extendStatics(d, b);
285 - function __() { this.constructor = d; }
286 - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
287 - };
288 -})();
289 -var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
290 - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
291 - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
292 - function verb(n) { return function (v) { return step([n, v]); }; }
293 - function step(op) {
294 - if (f) throw new TypeError("Generator is already executing.");
295 - while (_) try {
296 - 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;
297 - if (y = 0, t) op = [op[0] & 2, t.value];
298 - switch (op[0]) {
299 - case 0: case 1: t = op; break;
300 - case 4: _.label++; return { value: op[1], done: false };
301 - case 5: _.label++; y = op[1]; op = [0]; continue;
302 - case 7: op = _.ops.pop(); _.trys.pop(); continue;
303 - default:
304 - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
305 - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
306 - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
307 - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
308 - if (t[2]) _.ops.pop();
309 - _.trys.pop(); continue;
310 - }
311 - op = body.call(thisArg, _);
312 - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
313 - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
314 - }
315 -};
316 -var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
317 - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
318 - to[j] = from[i];
319 - return to;
320 -};
321 -var __defProp = Object.defineProperty;
322 -var __defProps = Object.defineProperties;
323 -var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
324 -var __getOwnPropSymbols = Object.getOwnPropertySymbols;
325 -var __hasOwnProp = Object.prototype.hasOwnProperty;
326 -var __propIsEnum = Object.prototype.propertyIsEnumerable;
327 -var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
328 -var __spreadValues = function (a, b) {
329 - for (var prop in b || (b = {}))
330 - if (__hasOwnProp.call(b, prop))
331 - __defNormalProp(a, prop, b[prop]);
332 - if (__getOwnPropSymbols)
333 - for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
334 - var prop = _c[_i];
335 - if (__propIsEnum.call(b, prop))
336 - __defNormalProp(a, prop, b[prop]);
337 - }
338 - return a;
339 -};
340 -var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
341 -var __async = function (__this, __arguments, generator) {
342 - return new Promise(function (resolve, reject) {
343 - var fulfilled = function (value) {
344 - try {
345 - step(generator.next(value));
346 - }
347 - catch (e) {
348 - reject(e);
349 - }
350 - };
351 - var rejected = function (value) {
352 - try {
353 - step(generator.throw(value));
354 - }
355 - catch (e) {
356 - reject(e);
357 - }
358 - };
359 - var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
360 - step((generator = generator.apply(__this, __arguments)).next());
361 - });
362 -};
363 -// src/index.ts
364 -
365 -
366 -
367 -
368 -// src/createDraftSafeSelector.ts
369 -
370 -
371 -var createDraftSafeSelector = function () {
372 - var args = [];
373 - for (var _i = 0; _i < arguments.length; _i++) {
374 - args[_i] = arguments[_i];
375 - }
376 - var selector = reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector.apply(void 0, args);
377 - var wrappedSelector = function (value) {
378 - var rest = [];
379 - for (var _i = 1; _i < arguments.length; _i++) {
380 - rest[_i - 1] = arguments[_i];
381 - }
382 - return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__.current)(value) : value], rest));
383 - };
384 - return wrappedSelector;
385 -};
386 -// src/configureStore.ts
387 -
388 -// src/devtoolsExtension.ts
389 -
390 -var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
391 - if (arguments.length === 0)
392 - return void 0;
393 - if (typeof arguments[0] === "object")
394 - return redux__WEBPACK_IMPORTED_MODULE_1__.compose;
395 - return redux__WEBPACK_IMPORTED_MODULE_1__.compose.apply(null, arguments);
396 -};
397 -var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
398 - return function (noop2) {
399 - return noop2;
400 - };
401 -};
402 -// src/isPlainObject.ts
403 -function isPlainObject(value) {
404 - if (typeof value !== "object" || value === null)
405 - return false;
406 - var proto = Object.getPrototypeOf(value);
407 - if (proto === null)
408 - return true;
409 - var baseProto = proto;
410 - while (Object.getPrototypeOf(baseProto) !== null) {
411 - baseProto = Object.getPrototypeOf(baseProto);
412 - }
413 - return proto === baseProto;
414 -}
415 -// src/getDefaultMiddleware.ts
416 -
417 -// src/tsHelpers.ts
418 -var hasMatchFunction = function (v) {
419 - return v && typeof v.match === "function";
420 -};
421 -// src/createAction.ts
422 -function createAction(type, prepareAction) {
423 - function actionCreator() {
424 - var args = [];
425 - for (var _i = 0; _i < arguments.length; _i++) {
426 - args[_i] = arguments[_i];
427 - }
428 - if (prepareAction) {
429 - var prepared = prepareAction.apply(void 0, args);
430 - if (!prepared) {
431 - throw new Error("prepareAction did not return an object");
432 - }
433 - return __spreadValues(__spreadValues({
434 - type: type,
435 - payload: prepared.payload
436 - }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
437 - }
438 - return { type: type, payload: args[0] };
439 - }
440 - actionCreator.toString = function () { return "" + type; };
441 - actionCreator.type = type;
442 - actionCreator.match = function (action) { return action.type === type; };
443 - return actionCreator;
444 -}
445 -function isAction(action) {
446 - return isPlainObject(action) && "type" in action;
447 -}
448 -function isActionCreator(action) {
449 - return typeof action === "function" && "type" in action && hasMatchFunction(action);
450 -}
451 -function isFSA(action) {
452 - return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
453 -}
454 -function isValidKey(key) {
455 - return ["type", "payload", "error", "meta"].indexOf(key) > -1;
456 -}
457 -function getType(actionCreator) {
458 - return "" + actionCreator;
459 -}
460 -// src/actionCreatorInvariantMiddleware.ts
461 -function getMessage(type) {
462 - var splitType = type ? ("" + type).split("/") : [];
463 - var actionName = splitType[splitType.length - 1] || "actionCreator";
464 - return "Detected an action creator with type \"" + (type || "unknown") + "\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(" + actionName + "())` instead of `dispatch(" + actionName + ")`. This is necessary even if the action has no payload.";
465 -}
466 -function createActionCreatorInvariantMiddleware(options) {
467 - if (options === void 0) { options = {}; }
468 - if (false) // removed by dead control flow
469 -{}
470 - var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
471 - return function () { return function (next) { return function (action) {
472 - if (isActionCreator2(action)) {
473 - console.warn(getMessage(action.type));
474 - }
475 - return next(action);
476 - }; }; };
477 -}
478 -// src/utils.ts
479 -
480 -function getTimeMeasureUtils(maxDelay, fnName) {
481 - var elapsed = 0;
482 - return {
483 - measureTime: function (fn) {
484 - var started = Date.now();
485 - try {
486 - return fn();
487 - }
488 - finally {
489 - var finished = Date.now();
490 - elapsed += finished - started;
491 - }
492 - },
493 - warnIfExceeded: function () {
494 - if (elapsed > maxDelay) {
495 - 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.");
496 - }
497 - }
498 - };
499 -}
500 -var MiddlewareArray = /** @class */ (function (_super) {
501 - __extends(MiddlewareArray, _super);
502 - function MiddlewareArray() {
503 - var args = [];
504 - for (var _i = 0; _i < arguments.length; _i++) {
505 - args[_i] = arguments[_i];
506 - }
507 - var _this = _super.apply(this, args) || this;
508 - Object.setPrototypeOf(_this, MiddlewareArray.prototype);
509 - return _this;
510 - }
511 - Object.defineProperty(MiddlewareArray, Symbol.species, {
512 - get: function () {
513 - return MiddlewareArray;
514 - },
515 - enumerable: false,
516 - configurable: true
517 - });
518 - MiddlewareArray.prototype.concat = function () {
519 - var arr = [];
520 - for (var _i = 0; _i < arguments.length; _i++) {
521 - arr[_i] = arguments[_i];
522 - }
523 - return _super.prototype.concat.apply(this, arr);
524 - };
525 - MiddlewareArray.prototype.prepend = function () {
526 - var arr = [];
527 - for (var _i = 0; _i < arguments.length; _i++) {
528 - arr[_i] = arguments[_i];
529 - }
530 - if (arr.length === 1 && Array.isArray(arr[0])) {
531 - return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
532 - }
533 - return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
534 - };
535 - return MiddlewareArray;
536 -}(Array));
537 -var EnhancerArray = /** @class */ (function (_super) {
538 - __extends(EnhancerArray, _super);
539 - function EnhancerArray() {
540 - var args = [];
541 - for (var _i = 0; _i < arguments.length; _i++) {
542 - args[_i] = arguments[_i];
543 - }
544 - var _this = _super.apply(this, args) || this;
545 - Object.setPrototypeOf(_this, EnhancerArray.prototype);
546 - return _this;
547 - }
548 - Object.defineProperty(EnhancerArray, Symbol.species, {
549 - get: function () {
550 - return EnhancerArray;
551 - },
552 - enumerable: false,
553 - configurable: true
554 - });
555 - EnhancerArray.prototype.concat = function () {
556 - var arr = [];
557 - for (var _i = 0; _i < arguments.length; _i++) {
558 - arr[_i] = arguments[_i];
559 - }
560 - return _super.prototype.concat.apply(this, arr);
561 - };
562 - EnhancerArray.prototype.prepend = function () {
563 - var arr = [];
564 - for (var _i = 0; _i < arguments.length; _i++) {
565 - arr[_i] = arguments[_i];
566 - }
567 - if (arr.length === 1 && Array.isArray(arr[0])) {
568 - return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
569 - }
570 - return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
571 - };
572 - return EnhancerArray;
573 -}(Array));
574 -function freezeDraftable(val) {
575 - return (0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(val, function () {
576 - }) : val;
577 -}
578 -// src/immutableStateInvariantMiddleware.ts
579 -var isProduction = "development" === "production";
580 -var prefix = "Invariant failed";
581 -function invariant(condition, message) {
582 - if (condition) {
583 - return;
584 - }
585 - if (isProduction) {
586 - throw new Error(prefix);
587 - }
588 - throw new Error(prefix + ": " + (message || ""));
589 -}
590 -function stringify(obj, serializer, indent, decycler) {
591 - return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
592 -}
593 -function getSerialize(serializer, decycler) {
594 - var stack = [], keys = [];
595 - if (!decycler)
596 - decycler = function (_, value) {
597 - if (stack[0] === value)
598 - return "[Circular ~]";
599 - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
600 - };
601 - return function (key, value) {
602 - if (stack.length > 0) {
603 - var thisPos = stack.indexOf(this);
604 - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
605 - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
606 - if (~stack.indexOf(value))
607 - value = decycler.call(this, key, value);
608 - }
609 - else
610 - stack.push(value);
611 - return serializer == null ? value : serializer.call(this, key, value);
612 - };
613 -}
614 -function isImmutableDefault(value) {
615 - return typeof value !== "object" || value == null || Object.isFrozen(value);
616 -}
617 -function trackForMutations(isImmutable, ignorePaths, obj) {
618 - var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
619 - return {
620 - detectMutations: function () {
621 - return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
622 - }
623 - };
624 -}
625 -function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
626 - if (ignorePaths === void 0) { ignorePaths = []; }
627 - if (path === void 0) { path = ""; }
628 - if (checkedObjects === void 0) { checkedObjects = new Set(); }
629 - var tracked = { value: obj };
630 - if (!isImmutable(obj) && !checkedObjects.has(obj)) {
631 - checkedObjects.add(obj);
632 - tracked.children = {};
633 - for (var key in obj) {
634 - var childPath = path ? path + "." + key : key;
635 - if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
636 - continue;
637 - }
638 - tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
639 - }
640 - }
641 - return tracked;
642 -}
643 -function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
644 - if (ignoredPaths === void 0) { ignoredPaths = []; }
645 - if (sameParentRef === void 0) { sameParentRef = false; }
646 - if (path === void 0) { path = ""; }
647 - var prevObj = trackedProperty ? trackedProperty.value : void 0;
648 - var sameRef = prevObj === obj;
649 - if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
650 - return { wasMutated: true, path: path };
651 - }
652 - if (isImmutable(prevObj) || isImmutable(obj)) {
653 - return { wasMutated: false };
654 - }
655 - var keysToDetect = {};
656 - for (var key in trackedProperty.children) {
657 - keysToDetect[key] = true;
658 - }
659 - for (var key in obj) {
660 - keysToDetect[key] = true;
661 - }
662 - var hasIgnoredPaths = ignoredPaths.length > 0;
663 - var _loop_1 = function (key) {
664 - var nestedPath = path ? path + "." + key : key;
665 - if (hasIgnoredPaths) {
666 - var hasMatches = ignoredPaths.some(function (ignored) {
667 - if (ignored instanceof RegExp) {
668 - return ignored.test(nestedPath);
669 - }
670 - return nestedPath === ignored;
671 - });
672 - if (hasMatches) {
673 - return "continue";
674 - }
675 - }
676 - var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
677 - if (result.wasMutated) {
678 - return { value: result };
679 - }
680 - };
681 - for (var key in keysToDetect) {
682 - var state_1 = _loop_1(key);
683 - if (typeof state_1 === "object")
684 - return state_1.value;
685 - }
686 - return { wasMutated: false };
687 -}
688 -function createImmutableStateInvariantMiddleware(options) {
689 - if (options === void 0) { options = {}; }
690 - if (false) // removed by dead control flow
691 -{}
692 - 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;
693 - ignoredPaths = ignoredPaths || ignore;
694 - var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
695 - return function (_c) {
696 - var getState = _c.getState;
697 - var state = getState();
698 - var tracker = track(state);
699 - var result;
700 - return function (next) { return function (action) {
701 - var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
702 - measureUtils.measureTime(function () {
703 - state = getState();
704 - result = tracker.detectMutations();
705 - tracker = track(state);
706 - 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)");
707 - });
708 - var dispatchedAction = next(action);
709 - measureUtils.measureTime(function () {
710 - state = getState();
711 - result = tracker.detectMutations();
712 - tracker = track(state);
713 - 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)");
714 - });
715 - measureUtils.warnIfExceeded();
716 - return dispatchedAction;
717 - }; };
718 - };
719 -}
720 -// src/serializableStateInvariantMiddleware.ts
721 -function isPlain(val) {
722 - var type = typeof val;
723 - return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
724 -}
725 -function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
726 - if (path === void 0) { path = ""; }
727 - if (isSerializable === void 0) { isSerializable = isPlain; }
728 - if (ignoredPaths === void 0) { ignoredPaths = []; }
729 - var foundNestedSerializable;
730 - if (!isSerializable(value)) {
731 - return {
732 - keyPath: path || "<root>",
733 - value: value
734 - };
735 - }
736 - if (typeof value !== "object" || value === null) {
737 - return false;
738 - }
739 - if (cache == null ? void 0 : cache.has(value))
740 - return false;
741 - var entries = getEntries != null ? getEntries(value) : Object.entries(value);
742 - var hasIgnoredPaths = ignoredPaths.length > 0;
743 - var _loop_2 = function (key, nestedValue) {
744 - var nestedPath = path ? path + "." + key : key;
745 - if (hasIgnoredPaths) {
746 - var hasMatches = ignoredPaths.some(function (ignored) {
747 - if (ignored instanceof RegExp) {
748 - return ignored.test(nestedPath);
749 - }
750 - return nestedPath === ignored;
751 - });
752 - if (hasMatches) {
753 - return "continue";
754 - }
755 - }
756 - if (!isSerializable(nestedValue)) {
757 - return { value: {
758 - keyPath: nestedPath,
759 - value: nestedValue
760 - } };
761 - }
762 - if (typeof nestedValue === "object") {
763 - foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
764 - if (foundNestedSerializable) {
765 - return { value: foundNestedSerializable };
766 - }
767 - }
768 - };
769 - for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
770 - var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
771 - var state_2 = _loop_2(key, nestedValue);
772 - if (typeof state_2 === "object")
773 - return state_2.value;
774 - }
775 - if (cache && isNestedFrozen(value))
776 - cache.add(value);
777 - return false;
778 -}
779 -function isNestedFrozen(value) {
780 - if (!Object.isFrozen(value))
781 - return false;
782 - for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
783 - var nestedValue = _c[_i];
784 - if (typeof nestedValue !== "object" || nestedValue === null)
785 - continue;
786 - if (!isNestedFrozen(nestedValue))
787 - return false;
788 - }
789 - return true;
790 -}
791 -function createSerializableStateInvariantMiddleware(options) {
792 - if (options === void 0) { options = {}; }
793 - if (false) // removed by dead control flow
794 -{}
795 - 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;
796 - var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
797 - return function (storeAPI) { return function (next) { return function (action) {
798 - var result = next(action);
799 - var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
800 - if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
801 - measureUtils.measureTime(function () {
802 - var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
803 - if (foundActionNonSerializableValue) {
804 - var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
805 - 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)");
806 - }
807 - });
808 - }
809 - if (!ignoreState) {
810 - measureUtils.measureTime(function () {
811 - var state = storeAPI.getState();
812 - var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
813 - if (foundStateNonSerializableValue) {
814 - var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
815 - 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)");
816 - }
817 - });
818 - measureUtils.warnIfExceeded();
819 - }
820 - return result;
821 - }; }; };
822 -}
823 -// src/getDefaultMiddleware.ts
824 -function isBoolean(x) {
825 - return typeof x === "boolean";
826 -}
827 -function curryGetDefaultMiddleware() {
828 - return function curriedGetDefaultMiddleware(options) {
829 - return getDefaultMiddleware(options);
830 - };
831 -}
832 -function getDefaultMiddleware(options) {
833 - if (options === void 0) { options = {}; }
834 - var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e, _f = options.actionCreatorCheck, actionCreatorCheck = _f === void 0 ? true : _f;
835 - var middlewareArray = new MiddlewareArray();
836 - if (thunk) {
837 - if (isBoolean(thunk)) {
838 - middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
839 - }
840 - else {
841 - middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
842 - }
843 - }
844 - if (true) {
845 - if (immutableCheck) {
846 - var immutableOptions = {};
847 - if (!isBoolean(immutableCheck)) {
848 - immutableOptions = immutableCheck;
849 - }
850 - middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
851 - }
852 - if (serializableCheck) {
853 - var serializableOptions = {};
854 - if (!isBoolean(serializableCheck)) {
855 - serializableOptions = serializableCheck;
856 - }
857 - middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
858 - }
859 - if (actionCreatorCheck) {
860 - var actionCreatorOptions = {};
861 - if (!isBoolean(actionCreatorCheck)) {
862 - actionCreatorOptions = actionCreatorCheck;
863 - }
864 - middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
865 - }
866 - }
867 - return middlewareArray;
868 -}
869 -// src/configureStore.ts
870 -var IS_PRODUCTION = "development" === "production";
871 -function configureStore(options) {
872 - var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
873 - 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;
874 - var rootReducer;
875 - if (typeof reducer === "function") {
876 - rootReducer = reducer;
877 - }
878 - else if (isPlainObject(reducer)) {
879 - rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers)(reducer);
880 - }
881 - else {
882 - throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
883 - }
884 - var finalMiddleware = middleware;
885 - if (typeof finalMiddleware === "function") {
886 - finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
887 - if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
888 - throw new Error("when using a middleware builder function, an array of middleware must be returned");
889 - }
890 - }
891 - if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
892 - throw new Error("each middleware provided to configureStore must be a function");
893 - }
894 - var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware.apply(void 0, finalMiddleware);
895 - var finalCompose = redux__WEBPACK_IMPORTED_MODULE_1__.compose;
896 - if (devTools) {
897 - finalCompose = composeWithDevTools(__spreadValues({
898 - trace: !IS_PRODUCTION
899 - }, typeof devTools === "object" && devTools));
900 - }
901 - var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
902 - var storeEnhancers = defaultEnhancers;
903 - if (Array.isArray(enhancers)) {
904 - storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
905 - }
906 - else if (typeof enhancers === "function") {
907 - storeEnhancers = enhancers(defaultEnhancers);
908 - }
909 - var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
910 - return (0,redux__WEBPACK_IMPORTED_MODULE_1__.createStore)(rootReducer, preloadedState, composedEnhancer);
911 -}
912 -// src/createReducer.ts
913 -
914 -// src/mapBuilders.ts
915 -function executeReducerBuilderCallback(builderCallback) {
916 - var actionsMap = {};
917 - var actionMatchers = [];
918 - var defaultCaseReducer;
919 - var builder = {
920 - addCase: function (typeOrActionCreator, reducer) {
921 - if (true) {
922 - if (actionMatchers.length > 0) {
923 - throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
924 - }
925 - if (defaultCaseReducer) {
926 - throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
927 - }
928 - }
929 - var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
930 - if (!type) {
931 - throw new Error("`builder.addCase` cannot be called with an empty action type");
932 - }
933 - if (type in actionsMap) {
934 - throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
935 - }
936 - actionsMap[type] = reducer;
937 - return builder;
938 - },
939 - addMatcher: function (matcher, reducer) {
940 - if (true) {
941 - if (defaultCaseReducer) {
942 - throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
943 - }
944 - }
945 - actionMatchers.push({ matcher: matcher, reducer: reducer });
946 - return builder;
947 - },
948 - addDefaultCase: function (reducer) {
949 - if (true) {
950 - if (defaultCaseReducer) {
951 - throw new Error("`builder.addDefaultCase` can only be called once");
952 - }
953 - }
954 - defaultCaseReducer = reducer;
955 - return builder;
956 - }
957 - };
958 - builderCallback(builder);
959 - return [actionsMap, actionMatchers, defaultCaseReducer];
960 -}
961 -// src/createReducer.ts
962 -function isStateFunction(x) {
963 - return typeof x === "function";
964 -}
965 -var hasWarnedAboutObjectNotation = false;
966 -function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
967 - if (actionMatchers === void 0) { actionMatchers = []; }
968 - if (true) {
969 - if (typeof mapOrBuilderCallback === "object") {
970 - if (!hasWarnedAboutObjectNotation) {
971 - hasWarnedAboutObjectNotation = true;
972 - 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");
973 - }
974 - }
975 - }
976 - var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
977 - var getInitialState;
978 - if (isStateFunction(initialState)) {
979 - getInitialState = function () { return freezeDraftable(initialState()); };
980 - }
981 - else {
982 - var frozenInitialState_1 = freezeDraftable(initialState);
983 - getInitialState = function () { return frozenInitialState_1; };
984 - }
985 - function reducer(state, action) {
986 - if (state === void 0) { state = getInitialState(); }
987 - var caseReducers = __spreadArray([
988 - actionsMap[action.type]
989 - ], finalActionMatchers.filter(function (_c) {
990 - var matcher = _c.matcher;
991 - return matcher(action);
992 - }).map(function (_c) {
993 - var reducer2 = _c.reducer;
994 - return reducer2;
995 - }));
996 - if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
997 - caseReducers = [finalDefaultCaseReducer];
998 - }
999 - return caseReducers.reduce(function (previousState, caseReducer) {
1000 - if (caseReducer) {
1001 - if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(previousState)) {
1002 - var draft = previousState;
1003 - var result = caseReducer(draft, action);
1004 - if (result === void 0) {
1005 - return previousState;
1006 - }
1007 - return result;
1008 - }
1009 - else if (!(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(previousState)) {
1010 - var result = caseReducer(previousState, action);
1011 - if (result === void 0) {
1012 - if (previousState === null) {
1013 - return previousState;
1014 - }
1015 - throw Error("A case reducer on a non-draftable value must not return undefined");
1016 - }
1017 - return result;
1018 - }
1019 - else {
1020 - return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(previousState, function (draft) {
1021 - return caseReducer(draft, action);
1022 - });
1023 - }
1024 - }
1025 - return previousState;
1026 - }, state);
1027 - }
1028 - reducer.getInitialState = getInitialState;
1029 - return reducer;
1030 -}
1031 -// src/createSlice.ts
1032 -var hasWarnedAboutObjectNotation2 = false;
1033 -function getType2(slice, actionKey) {
1034 - return slice + "/" + actionKey;
1035 -}
1036 -function createSlice(options) {
1037 - var name = options.name;
1038 - if (!name) {
1039 - throw new Error("`name` is a required option for createSlice");
1040 - }
1041 - if (typeof process !== "undefined" && "development" === "development") {
1042 - if (options.initialState === void 0) {
1043 - console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
1044 - }
1045 - }
1046 - var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
1047 - var reducers = options.reducers || {};
1048 - var reducerNames = Object.keys(reducers);
1049 - var sliceCaseReducersByName = {};
1050 - var sliceCaseReducersByType = {};
1051 - var actionCreators = {};
1052 - reducerNames.forEach(function (reducerName) {
1053 - var maybeReducerWithPrepare = reducers[reducerName];
1054 - var type = getType2(name, reducerName);
1055 - var caseReducer;
1056 - var prepareCallback;
1057 - if ("reducer" in maybeReducerWithPrepare) {
1058 - caseReducer = maybeReducerWithPrepare.reducer;
1059 - prepareCallback = maybeReducerWithPrepare.prepare;
1060 - }
1061 - else {
1062 - caseReducer = maybeReducerWithPrepare;
1063 - }
1064 - sliceCaseReducersByName[reducerName] = caseReducer;
1065 - sliceCaseReducersByType[type] = caseReducer;
1066 - actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
1067 - });
1068 - function buildReducer() {
1069 - if (true) {
1070 - if (typeof options.extraReducers === "object") {
1071 - if (!hasWarnedAboutObjectNotation2) {
1072 - hasWarnedAboutObjectNotation2 = true;
1073 - 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");
1074 - }
1075 - }
1076 - }
1077 - 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;
1078 - var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
1079 - return createReducer(initialState, function (builder) {
1080 - for (var key in finalCaseReducers) {
1081 - builder.addCase(key, finalCaseReducers[key]);
1082 - }
1083 - for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
1084 - var m = actionMatchers_1[_i];
1085 - builder.addMatcher(m.matcher, m.reducer);
1086 - }
1087 - if (defaultCaseReducer) {
1088 - builder.addDefaultCase(defaultCaseReducer);
1089 - }
1090 - });
1091 - }
1092 - var _reducer;
1093 - return {
1094 - name: name,
1095 - reducer: function (state, action) {
1096 - if (!_reducer)
1097 - _reducer = buildReducer();
1098 - return _reducer(state, action);
1099 - },
1100 - actions: actionCreators,
1101 - caseReducers: sliceCaseReducersByName,
1102 - getInitialState: function () {
1103 - if (!_reducer)
1104 - _reducer = buildReducer();
1105 - return _reducer.getInitialState();
1106 - }
1107 - };
1108 -}
1109 -// src/entities/entity_state.ts
1110 -function getInitialEntityState() {
1111 - return {
1112 - ids: [],
1113 - entities: {}
1114 - };
1115 -}
1116 -function createInitialStateFactory() {
1117 - function getInitialState(additionalState) {
1118 - if (additionalState === void 0) { additionalState = {}; }
1119 - return Object.assign(getInitialEntityState(), additionalState);
1120 - }
1121 - return { getInitialState: getInitialState };
1122 -}
1123 -// src/entities/state_selectors.ts
1124 -function createSelectorsFactory() {
1125 - function getSelectors(selectState) {
1126 - var selectIds = function (state) { return state.ids; };
1127 - var selectEntities = function (state) { return state.entities; };
1128 - var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
1129 - var selectId = function (_, id) { return id; };
1130 - var selectById = function (entities, id) { return entities[id]; };
1131 - var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
1132 - if (!selectState) {
1133 - return {
1134 - selectIds: selectIds,
1135 - selectEntities: selectEntities,
1136 - selectAll: selectAll,
1137 - selectTotal: selectTotal,
1138 - selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
1139 - };
1140 - }
1141 - var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
1142 - return {
1143 - selectIds: createDraftSafeSelector(selectState, selectIds),
1144 - selectEntities: selectGlobalizedEntities,
1145 - selectAll: createDraftSafeSelector(selectState, selectAll),
1146 - selectTotal: createDraftSafeSelector(selectState, selectTotal),
1147 - selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
1148 - };
1149 - }
1150 - return { getSelectors: getSelectors };
1151 -}
1152 -// src/entities/state_adapter.ts
1153 -
1154 -function createSingleArgumentStateOperator(mutator) {
1155 - var operator = createStateOperator(function (_, state) { return mutator(state); });
1156 - return function operation(state) {
1157 - return operator(state, void 0);
1158 - };
1159 -}
1160 -function createStateOperator(mutator) {
1161 - return function operation(state, arg) {
1162 - function isPayloadActionArgument(arg2) {
1163 - return isFSA(arg2);
1164 - }
1165 - var runMutator = function (draft) {
1166 - if (isPayloadActionArgument(arg)) {
1167 - mutator(arg.payload, draft);
1168 - }
1169 - else {
1170 - mutator(arg, draft);
1171 - }
1172 - };
1173 - if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(state)) {
1174 - runMutator(state);
1175 - return state;
1176 - }
1177 - else {
1178 - return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(state, runMutator);
1179 - }
1180 - };
1181 -}
1182 -// src/entities/utils.ts
1183 -function selectIdValue(entity, selectId) {
1184 - var key = selectId(entity);
1185 - if ( true && key === void 0) {
1186 - 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());
1187 - }
1188 - return key;
1189 -}
1190 -function ensureEntitiesArray(entities) {
1191 - if (!Array.isArray(entities)) {
1192 - entities = Object.values(entities);
1193 - }
1194 - return entities;
1195 -}
1196 -function splitAddedUpdatedEntities(newEntities, selectId, state) {
1197 - newEntities = ensureEntitiesArray(newEntities);
1198 - var added = [];
1199 - var updated = [];
1200 - for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
1201 - var entity = newEntities_1[_i];
1202 - var id = selectIdValue(entity, selectId);
1203 - if (id in state.entities) {
1204 - updated.push({ id: id, changes: entity });
1205 - }
1206 - else {
1207 - added.push(entity);
1208 - }
1209 - }
1210 - return [added, updated];
1211 -}
1212 -// src/entities/unsorted_state_adapter.ts
1213 -function createUnsortedStateAdapter(selectId) {
1214 - function addOneMutably(entity, state) {
1215 - var key = selectIdValue(entity, selectId);
1216 - if (key in state.entities) {
1217 - return;
1218 - }
1219 - state.ids.push(key);
1220 - state.entities[key] = entity;
1221 - }
1222 - function addManyMutably(newEntities, state) {
1223 - newEntities = ensureEntitiesArray(newEntities);
1224 - for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
1225 - var entity = newEntities_2[_i];
1226 - addOneMutably(entity, state);
1227 - }
1228 - }
1229 - function setOneMutably(entity, state) {
1230 - var key = selectIdValue(entity, selectId);
1231 - if (!(key in state.entities)) {
1232 - state.ids.push(key);
1233 - }
1234 - state.entities[key] = entity;
1235 - }
1236 - function setManyMutably(newEntities, state) {
1237 - newEntities = ensureEntitiesArray(newEntities);
1238 - for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
1239 - var entity = newEntities_3[_i];
1240 - setOneMutably(entity, state);
1241 - }
1242 - }
1243 - function setAllMutably(newEntities, state) {
1244 - newEntities = ensureEntitiesArray(newEntities);
1245 - state.ids = [];
1246 - state.entities = {};
1247 - addManyMutably(newEntities, state);
1248 - }
1249 - function removeOneMutably(key, state) {
1250 - return removeManyMutably([key], state);
1251 - }
1252 - function removeManyMutably(keys, state) {
1253 - var didMutate = false;
1254 - keys.forEach(function (key) {
1255 - if (key in state.entities) {
1256 - delete state.entities[key];
1257 - didMutate = true;
1258 - }
1259 - });
1260 - if (didMutate) {
1261 - state.ids = state.ids.filter(function (id) { return id in state.entities; });
1262 - }
1263 - }
1264 - function removeAllMutably(state) {
1265 - Object.assign(state, {
1266 - ids: [],
1267 - entities: {}
1268 - });
1269 - }
1270 - function takeNewKey(keys, update, state) {
1271 - var original2 = state.entities[update.id];
1272 - var updated = Object.assign({}, original2, update.changes);
1273 - var newKey = selectIdValue(updated, selectId);
1274 - var hasNewKey = newKey !== update.id;
1275 - if (hasNewKey) {
1276 - keys[update.id] = newKey;
1277 - delete state.entities[update.id];
1278 - }
1279 - state.entities[newKey] = updated;
1280 - return hasNewKey;
1281 - }
1282 - function updateOneMutably(update, state) {
1283 - return updateManyMutably([update], state);
1284 - }
1285 - function updateManyMutably(updates, state) {
1286 - var newKeys = {};
1287 - var updatesPerEntity = {};
1288 - updates.forEach(function (update) {
1289 - if (update.id in state.entities) {
1290 - updatesPerEntity[update.id] = {
1291 - id: update.id,
1292 - changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
1293 - };
1294 - }
1295 - });
1296 - updates = Object.values(updatesPerEntity);
1297 - var didMutateEntities = updates.length > 0;
1298 - if (didMutateEntities) {
1299 - var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
1300 - if (didMutateIds) {
1301 - state.ids = Object.keys(state.entities);
1302 - }
1303 - }
1304 - }
1305 - function upsertOneMutably(entity, state) {
1306 - return upsertManyMutably([entity], state);
1307 - }
1308 - function upsertManyMutably(newEntities, state) {
1309 - var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
1310 - updateManyMutably(updated, state);
1311 - addManyMutably(added, state);
1312 - }
1313 - return {
1314 - removeAll: createSingleArgumentStateOperator(removeAllMutably),
1315 - addOne: createStateOperator(addOneMutably),
1316 - addMany: createStateOperator(addManyMutably),
1317 - setOne: createStateOperator(setOneMutably),
1318 - setMany: createStateOperator(setManyMutably),
1319 - setAll: createStateOperator(setAllMutably),
1320 - updateOne: createStateOperator(updateOneMutably),
1321 - updateMany: createStateOperator(updateManyMutably),
1322 - upsertOne: createStateOperator(upsertOneMutably),
1323 - upsertMany: createStateOperator(upsertManyMutably),
1324 - removeOne: createStateOperator(removeOneMutably),
1325 - removeMany: createStateOperator(removeManyMutably)
1326 - };
1327 -}
1328 -// src/entities/sorted_state_adapter.ts
1329 -function createSortedStateAdapter(selectId, sort) {
1330 - var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
1331 - function addOneMutably(entity, state) {
1332 - return addManyMutably([entity], state);
1333 - }
1334 - function addManyMutably(newEntities, state) {
1335 - newEntities = ensureEntitiesArray(newEntities);
1336 - var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
1337 - if (models.length !== 0) {
1338 - merge(models, state);
1339 - }
1340 - }
1341 - function setOneMutably(entity, state) {
1342 - return setManyMutably([entity], state);
1343 - }
1344 - function setManyMutably(newEntities, state) {
1345 - newEntities = ensureEntitiesArray(newEntities);
1346 - if (newEntities.length !== 0) {
1347 - merge(newEntities, state);
1348 - }
1349 - }
1350 - function setAllMutably(newEntities, state) {
1351 - newEntities = ensureEntitiesArray(newEntities);
1352 - state.entities = {};
1353 - state.ids = [];
1354 - addManyMutably(newEntities, state);
1355 - }
1356 - function updateOneMutably(update, state) {
1357 - return updateManyMutably([update], state);
1358 - }
1359 - function updateManyMutably(updates, state) {
1360 - var appliedUpdates = false;
1361 - for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
1362 - var update = updates_1[_i];
1363 - var entity = state.entities[update.id];
1364 - if (!entity) {
1365 - continue;
1366 - }
1367 - appliedUpdates = true;
1368 - Object.assign(entity, update.changes);
1369 - var newId = selectId(entity);
1370 - if (update.id !== newId) {
1371 - delete state.entities[update.id];
1372 - state.entities[newId] = entity;
1373 - }
1374 - }
1375 - if (appliedUpdates) {
1376 - resortEntities(state);
1377 - }
1378 - }
1379 - function upsertOneMutably(entity, state) {
1380 - return upsertManyMutably([entity], state);
1381 - }
1382 - function upsertManyMutably(newEntities, state) {
1383 - var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
1384 - updateManyMutably(updated, state);
1385 - addManyMutably(added, state);
1386 - }
1387 - function areArraysEqual(a, b) {
1388 - if (a.length !== b.length) {
1389 - return false;
1390 - }
1391 - for (var i = 0; i < a.length && i < b.length; i++) {
1392 - if (a[i] === b[i]) {
1393 - continue;
1394 - }
1395 - return false;
1396 - }
1397 - return true;
1398 - }
1399 - function merge(models, state) {
1400 - models.forEach(function (model) {
1401 - state.entities[selectId(model)] = model;
1402 - });
1403 - resortEntities(state);
1404 - }
1405 - function resortEntities(state) {
1406 - var allEntities = Object.values(state.entities);
1407 - allEntities.sort(sort);
1408 - var newSortedIds = allEntities.map(selectId);
1409 - var ids = state.ids;
1410 - if (!areArraysEqual(ids, newSortedIds)) {
1411 - state.ids = newSortedIds;
1412 - }
1413 - }
1414 - return {
1415 - removeOne: removeOne,
1416 - removeMany: removeMany,
1417 - removeAll: removeAll,
1418 - addOne: createStateOperator(addOneMutably),
1419 - updateOne: createStateOperator(updateOneMutably),
1420 - upsertOne: createStateOperator(upsertOneMutably),
1421 - setOne: createStateOperator(setOneMutably),
1422 - setMany: createStateOperator(setManyMutably),
1423 - setAll: createStateOperator(setAllMutably),
1424 - addMany: createStateOperator(addManyMutably),
1425 - updateMany: createStateOperator(updateManyMutably),
1426 - upsertMany: createStateOperator(upsertManyMutably)
1427 - };
1428 -}
1429 -// src/entities/create_adapter.ts
1430 -function createEntityAdapter(options) {
1431 - if (options === void 0) { options = {}; }
1432 - var _c = __spreadValues({
1433 - sortComparer: false,
1434 - selectId: function (instance) { return instance.id; }
1435 - }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
1436 - var stateFactory = createInitialStateFactory();
1437 - var selectorsFactory = createSelectorsFactory();
1438 - var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
1439 - return __spreadValues(__spreadValues(__spreadValues({
1440 - selectId: selectId,
1441 - sortComparer: sortComparer
1442 - }, stateFactory), selectorsFactory), stateAdapter);
1443 -}
1444 -// src/nanoid.ts
1445 -var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
1446 -var nanoid = function (size) {
1447 - if (size === void 0) { size = 21; }
1448 - var id = "";
1449 - var i = size;
1450 - while (i--) {
1451 - id += urlAlphabet[Math.random() * 64 | 0];
1452 - }
1453 - return id;
1454 -};
1455 -// src/createAsyncThunk.ts
1456 -var commonProperties = [
1457 - "name",
1458 - "message",
1459 - "stack",
1460 - "code"
1461 -];
1462 -var RejectWithValue = /** @class */ (function () {
1463 - function RejectWithValue(payload, meta) {
1464 - this.payload = payload;
1465 - this.meta = meta;
1466 - }
1467 - return RejectWithValue;
1468 -}());
1469 -var FulfillWithMeta = /** @class */ (function () {
1470 - function FulfillWithMeta(payload, meta) {
1471 - this.payload = payload;
1472 - this.meta = meta;
1473 - }
1474 - return FulfillWithMeta;
1475 -}());
1476 -var miniSerializeError = function (value) {
1477 - if (typeof value === "object" && value !== null) {
1478 - var simpleError = {};
1479 - for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
1480 - var property = commonProperties_1[_i];
1481 - if (typeof value[property] === "string") {
1482 - simpleError[property] = value[property];
1483 - }
1484 - }
1485 - return simpleError;
1486 - }
1487 - return { message: String(value) };
1488 -};
1489 -var createAsyncThunk = (function () {
1490 - function createAsyncThunk2(typePrefix, payloadCreator, options) {
1491 - var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
1492 - payload: payload,
1493 - meta: __spreadProps(__spreadValues({}, meta || {}), {
1494 - arg: arg,
1495 - requestId: requestId,
1496 - requestStatus: "fulfilled"
1497 - })
1498 - }); });
1499 - var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
1500 - payload: void 0,
1501 - meta: __spreadProps(__spreadValues({}, meta || {}), {
1502 - arg: arg,
1503 - requestId: requestId,
1504 - requestStatus: "pending"
1505 - })
1506 - }); });
1507 - var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
1508 - payload: payload,
1509 - error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
1510 - meta: __spreadProps(__spreadValues({}, meta || {}), {
1511 - arg: arg,
1512 - requestId: requestId,
1513 - rejectedWithValue: !!payload,
1514 - requestStatus: "rejected",
1515 - aborted: (error == null ? void 0 : error.name) === "AbortError",
1516 - condition: (error == null ? void 0 : error.name) === "ConditionError"
1517 - })
1518 - }); });
1519 - var displayedWarning = false;
1520 - var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
1521 - function class_1() {
1522 - this.signal = {
1523 - aborted: false,
1524 - addEventListener: function () {
1525 - },
1526 - dispatchEvent: function () {
1527 - return false;
1528 - },
1529 - onabort: function () {
1530 - },
1531 - removeEventListener: function () {
1532 - },
1533 - reason: void 0,
1534 - throwIfAborted: function () {
1535 - }
1536 - };
1537 - }
1538 - class_1.prototype.abort = function () {
1539 - if (true) {
1540 - if (!displayedWarning) {
1541 - displayedWarning = true;
1542 - 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'.");
1543 - }
1544 - }
1545 - };
1546 - return class_1;
1547 - }());
1548 - function actionCreator(arg) {
1549 - return function (dispatch, getState, extra) {
1550 - var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
1551 - var abortController = new AC();
1552 - var abortReason;
1553 - var started = false;
1554 - function abort(reason) {
1555 - abortReason = reason;
1556 - abortController.abort();
1557 - }
1558 - var promise2 = function () {
1559 - return __async(this, null, function () {
1560 - var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
1561 - return __generator(this, function (_c) {
1562 - switch (_c.label) {
1563 - case 0:
1564 - _c.trys.push([0, 4, , 5]);
1565 - conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
1566 - if (!isThenable(conditionResult)) return [3 /*break*/, 2];
1567 - return [4 /*yield*/, conditionResult];
1568 - case 1:
1569 - conditionResult = _c.sent();
1570 - _c.label = 2;
1571 - case 2:
1572 - if (conditionResult === false || abortController.signal.aborted) {
1573 - throw {
1574 - name: "ConditionError",
1575 - message: "Aborted due to condition callback returning false."
1576 - };
1577 - }
1578 - started = true;
1579 - abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
1580 - name: "AbortError",
1581 - message: abortReason || "Aborted"
1582 - }); }); });
1583 - 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 })));
1584 - return [4 /*yield*/, Promise.race([
1585 - abortedPromise,
1586 - Promise.resolve(payloadCreator(arg, {
1587 - dispatch: dispatch,
1588 - getState: getState,
1589 - extra: extra,
1590 - requestId: requestId,
1591 - signal: abortController.signal,
1592 - abort: abort,
1593 - rejectWithValue: function (value, meta) {
1594 - return new RejectWithValue(value, meta);
1595 - },
1596 - fulfillWithValue: function (value, meta) {
1597 - return new FulfillWithMeta(value, meta);
1598 - }
1599 - })).then(function (result) {
1600 - if (result instanceof RejectWithValue) {
1601 - throw result;
1602 - }
1603 - if (result instanceof FulfillWithMeta) {
1604 - return fulfilled(result.payload, requestId, arg, result.meta);
1605 - }
1606 - return fulfilled(result, requestId, arg);
1607 - })
1608 - ])];
1609 - case 3:
1610 - finalAction = _c.sent();
1611 - return [3 /*break*/, 5];
1612 - case 4:
1613 - err_1 = _c.sent();
1614 - finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
1615 - return [3 /*break*/, 5];
1616 - case 5:
1617 - skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
1618 - if (!skipDispatch) {
1619 - dispatch(finalAction);
1620 - }
1621 - return [2 /*return*/, finalAction];
1622 - }
1623 - });
1624 - });
1625 - }();
1626 - return Object.assign(promise2, {
1627 - abort: abort,
1628 - requestId: requestId,
1629 - arg: arg,
1630 - unwrap: function () {
1631 - return promise2.then(unwrapResult);
1632 - }
1633 - });
1634 - };
1635 - }
1636 - return Object.assign(actionCreator, {
1637 - pending: pending,
1638 - rejected: rejected,
1639 - fulfilled: fulfilled,
1640 - typePrefix: typePrefix
1641 - });
1642 - }
1643 - createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
1644 - return createAsyncThunk2;
1645 -})();
1646 -function unwrapResult(action) {
1647 - if (action.meta && action.meta.rejectedWithValue) {
1648 - throw action.payload;
1649 - }
1650 - if (action.error) {
1651 - throw action.error;
1652 - }
1653 - return action.payload;
1654 -}
1655 -function isThenable(value) {
1656 - return value !== null && typeof value === "object" && typeof value.then === "function";
1657 -}
1658 -// src/matchers.ts
1659 -var matches = function (matcher, action) {
1660 - if (hasMatchFunction(matcher)) {
1661 - return matcher.match(action);
1662 - }
1663 - else {
1664 - return matcher(action);
1665 - }
1666 -};
1667 -function isAnyOf() {
1668 - var matchers = [];
1669 - for (var _i = 0; _i < arguments.length; _i++) {
1670 - matchers[_i] = arguments[_i];
1671 - }
1672 - return function (action) {
1673 - return matchers.some(function (matcher) { return matches(matcher, action); });
1674 - };
1675 -}
1676 -function isAllOf() {
1677 - var matchers = [];
1678 - for (var _i = 0; _i < arguments.length; _i++) {
1679 - matchers[_i] = arguments[_i];
1680 - }
1681 - return function (action) {
1682 - return matchers.every(function (matcher) { return matches(matcher, action); });
1683 - };
1684 -}
1685 -function hasExpectedRequestMetadata(action, validStatus) {
1686 - if (!action || !action.meta)
1687 - return false;
1688 - var hasValidRequestId = typeof action.meta.requestId === "string";
1689 - var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
1690 - return hasValidRequestId && hasValidRequestStatus;
1691 -}
1692 -function isAsyncThunkArray(a) {
1693 - return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
1694 -}
1695 -function isPending() {
1696 - var asyncThunks = [];
1697 - for (var _i = 0; _i < arguments.length; _i++) {
1698 - asyncThunks[_i] = arguments[_i];
1699 - }
1700 - if (asyncThunks.length === 0) {
1701 - return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
1702 - }
1703 - if (!isAsyncThunkArray(asyncThunks)) {
1704 - return isPending()(asyncThunks[0]);
1705 - }
1706 - return function (action) {
1707 - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
1708 - var combinedMatcher = isAnyOf.apply(void 0, matchers);
1709 - return combinedMatcher(action);
1710 - };
1711 -}
1712 -function isRejected() {
1713 - var asyncThunks = [];
1714 - for (var _i = 0; _i < arguments.length; _i++) {
1715 - asyncThunks[_i] = arguments[_i];
1716 - }
1717 - if (asyncThunks.length === 0) {
1718 - return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
1719 - }
1720 - if (!isAsyncThunkArray(asyncThunks)) {
1721 - return isRejected()(asyncThunks[0]);
1722 - }
1723 - return function (action) {
1724 - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
1725 - var combinedMatcher = isAnyOf.apply(void 0, matchers);
1726 - return combinedMatcher(action);
1727 - };
1728 -}
1729 -function isRejectedWithValue() {
1730 - var asyncThunks = [];
1731 - for (var _i = 0; _i < arguments.length; _i++) {
1732 - asyncThunks[_i] = arguments[_i];
1733 - }
1734 - var hasFlag = function (action) {
1735 - return action && action.meta && action.meta.rejectedWithValue;
1736 - };
1737 - if (asyncThunks.length === 0) {
1738 - return function (action) {
1739 - var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1740 - return combinedMatcher(action);
1741 - };
1742 - }
1743 - if (!isAsyncThunkArray(asyncThunks)) {
1744 - return isRejectedWithValue()(asyncThunks[0]);
1745 - }
1746 - return function (action) {
1747 - var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1748 - return combinedMatcher(action);
1749 - };
1750 -}
1751 -function isFulfilled() {
1752 - var asyncThunks = [];
1753 - for (var _i = 0; _i < arguments.length; _i++) {
1754 - asyncThunks[_i] = arguments[_i];
1755 - }
1756 - if (asyncThunks.length === 0) {
1757 - return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
1758 - }
1759 - if (!isAsyncThunkArray(asyncThunks)) {
1760 - return isFulfilled()(asyncThunks[0]);
1761 - }
1762 - return function (action) {
1763 - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
1764 - var combinedMatcher = isAnyOf.apply(void 0, matchers);
1765 - return combinedMatcher(action);
1766 - };
1767 -}
1768 -function isAsyncThunkAction() {
1769 - var asyncThunks = [];
1770 - for (var _i = 0; _i < arguments.length; _i++) {
1771 - asyncThunks[_i] = arguments[_i];
1772 - }
1773 - if (asyncThunks.length === 0) {
1774 - return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
1775 - }
1776 - if (!isAsyncThunkArray(asyncThunks)) {
1777 - return isAsyncThunkAction()(asyncThunks[0]);
1778 - }
1779 - return function (action) {
1780 - var matchers = [];
1781 - for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
1782 - var asyncThunk = asyncThunks_1[_i];
1783 - matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
1784 - }
1785 - var combinedMatcher = isAnyOf.apply(void 0, matchers);
1786 - return combinedMatcher(action);
1787 - };
1788 -}
1789 -// src/listenerMiddleware/utils.ts
1790 -var assertFunction = function (func, expected) {
1791 - if (typeof func !== "function") {
1792 - throw new TypeError(expected + " is not a function");
1793 - }
1794 -};
1795 -var noop = function () {
1796 -};
1797 -var catchRejection = function (promise2, onError) {
1798 - if (onError === void 0) { onError = noop; }
1799 - promise2.catch(onError);
1800 - return promise2;
1801 -};
1802 -var addAbortSignalListener = function (abortSignal, callback) {
1803 - abortSignal.addEventListener("abort", callback, { once: true });
1804 - return function () { return abortSignal.removeEventListener("abort", callback); };
1805 -};
1806 -var abortControllerWithReason = function (abortController, reason) {
1807 - var signal = abortController.signal;
1808 - if (signal.aborted) {
1809 - return;
1810 - }
1811 - if (!("reason" in signal)) {
1812 - Object.defineProperty(signal, "reason", {
1813 - enumerable: true,
1814 - value: reason,
1815 - configurable: true,
1816 - writable: true
1817 - });
1818 - }
1819 - ;
1820 - abortController.abort(reason);
1821 -};
1822 -// src/listenerMiddleware/exceptions.ts
1823 -var task = "task";
1824 -var listener = "listener";
1825 -var completed = "completed";
1826 -var cancelled = "cancelled";
1827 -var taskCancelled = "task-" + cancelled;
1828 -var taskCompleted = "task-" + completed;
1829 -var listenerCancelled = listener + "-" + cancelled;
1830 -var listenerCompleted = listener + "-" + completed;
1831 -var TaskAbortError = /** @class */ (function () {
1832 - function TaskAbortError(code) {
1833 - this.code = code;
1834 - this.name = "TaskAbortError";
1835 - this.message = task + " " + cancelled + " (reason: " + code + ")";
1836 - }
1837 - return TaskAbortError;
1838 -}());
1839 -// src/listenerMiddleware/task.ts
1840 -var validateActive = function (signal) {
1841 - if (signal.aborted) {
1842 - throw new TaskAbortError(signal.reason);
1843 - }
1844 -};
1845 -function raceWithSignal(signal, promise2) {
1846 - var cleanup = noop;
1847 - return new Promise(function (resolve, reject) {
1848 - var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
1849 - if (signal.aborted) {
1850 - notifyRejection();
1851 - return;
1852 - }
1853 - cleanup = addAbortSignalListener(signal, notifyRejection);
1854 - promise2.finally(function () { return cleanup(); }).then(resolve, reject);
1855 - }).finally(function () {
1856 - cleanup = noop;
1857 - });
1858 -}
1859 -var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
1860 - var value, error_1;
1861 - return __generator(this, function (_c) {
1862 - switch (_c.label) {
1863 - case 0:
1864 - _c.trys.push([0, 3, 4, 5]);
1865 - return [4 /*yield*/, Promise.resolve()];
1866 - case 1:
1867 - _c.sent();
1868 - return [4 /*yield*/, task2()];
1869 - case 2:
1870 - value = _c.sent();
1871 - return [2 /*return*/, {
1872 - status: "ok",
1873 - value: value
1874 - }];
1875 - case 3:
1876 - error_1 = _c.sent();
1877 - return [2 /*return*/, {
1878 - status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
1879 - error: error_1
1880 - }];
1881 - case 4:
1882 - cleanUp == null ? void 0 : cleanUp();
1883 - return [7 /*endfinally*/];
1884 - case 5: return [2 /*return*/];
1885 - }
1886 - });
1887 -}); };
1888 -var createPause = function (signal) {
1889 - return function (promise2) {
1890 - return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
1891 - validateActive(signal);
1892 - return output;
1893 - }));
1894 - };
1895 -};
1896 -var createDelay = function (signal) {
1897 - var pause = createPause(signal);
1898 - return function (timeoutMs) {
1899 - return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
1900 - };
1901 -};
1902 -// src/listenerMiddleware/index.ts
1903 -var assign = Object.assign;
1904 -var INTERNAL_NIL_TOKEN = {};
1905 -var alm = "listenerMiddleware";
1906 -var createFork = function (parentAbortSignal, parentBlockingPromises) {
1907 - var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
1908 - return function (taskExecutor, opts) {
1909 - assertFunction(taskExecutor, "taskExecutor");
1910 - var childAbortController = new AbortController();
1911 - linkControllers(childAbortController);
1912 - var result = runTask(function () { return __async(void 0, null, function () {
1913 - var result2;
1914 - return __generator(this, function (_c) {
1915 - switch (_c.label) {
1916 - case 0:
1917 - validateActive(parentAbortSignal);
1918 - validateActive(childAbortController.signal);
1919 - return [4 /*yield*/, taskExecutor({
1920 - pause: createPause(childAbortController.signal),
1921 - delay: createDelay(childAbortController.signal),
1922 - signal: childAbortController.signal
1923 - })];
1924 - case 1:
1925 - result2 = _c.sent();
1926 - validateActive(childAbortController.signal);
1927 - return [2 /*return*/, result2];
1928 - }
1929 - });
1930 - }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
1931 - if (opts == null ? void 0 : opts.autoJoin) {
1932 - parentBlockingPromises.push(result);
1933 - }
1934 - return {
1935 - result: createPause(parentAbortSignal)(result),
1936 - cancel: function () {
1937 - abortControllerWithReason(childAbortController, taskCancelled);
1938 - }
1939 - };
1940 - };
1941 -};
1942 -var createTakePattern = function (startListening, signal) {
1943 - var take = function (predicate, timeout) { return __async(void 0, null, function () {
1944 - var unsubscribe, tuplePromise, promises, output;
1945 - return __generator(this, function (_c) {
1946 - switch (_c.label) {
1947 - case 0:
1948 - validateActive(signal);
1949 - unsubscribe = function () {
1950 - };
1951 - tuplePromise = new Promise(function (resolve, reject) {
1952 - var stopListening = startListening({
1953 - predicate: predicate,
1954 - effect: function (action, listenerApi) {
1955 - listenerApi.unsubscribe();
1956 - resolve([
1957 - action,
1958 - listenerApi.getState(),
1959 - listenerApi.getOriginalState()
1960 - ]);
1961 - }
1962 - });
1963 - unsubscribe = function () {
1964 - stopListening();
1965 - reject();
1966 - };
1967 - });
1968 - promises = [
1969 - tuplePromise
1970 - ];
1971 - if (timeout != null) {
1972 - promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
1973 - }
1974 - _c.label = 1;
1975 - case 1:
1976 - _c.trys.push([1, , 3, 4]);
1977 - return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
1978 - case 2:
1979 - output = _c.sent();
1980 - validateActive(signal);
1981 - return [2 /*return*/, output];
1982 - case 3:
1983 - unsubscribe();
1984 - return [7 /*endfinally*/];
1985 - case 4: return [2 /*return*/];
1986 - }
1987 - });
1988 - }); };
1989 - return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
1990 -};
1991 -var getListenerEntryPropsFrom = function (options) {
1992 - var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
1993 - if (type) {
1994 - predicate = createAction(type).match;
1995 - }
1996 - else if (actionCreator) {
1997 - type = actionCreator.type;
1998 - predicate = actionCreator.match;
1999 - }
2000 - else if (matcher) {
2001 - predicate = matcher;
2002 - }
2003 - else if (predicate) {
2004 - }
2005 - else {
2006 - throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
2007 - }
2008 - assertFunction(effect, "options.listener");
2009 - return { predicate: predicate, type: type, effect: effect };
2010 -};
2011 -var createListenerEntry = function (options) {
2012 - var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
2013 - var id = nanoid();
2014 - var entry = {
2015 - id: id,
2016 - effect: effect,
2017 - type: type,
2018 - predicate: predicate,
2019 - pending: new Set(),
2020 - unsubscribe: function () {
2021 - throw new Error("Unsubscribe not initialized");
2022 - }
2023 - };
2024 - return entry;
2025 -};
2026 -var cancelActiveListeners = function (entry) {
2027 - entry.pending.forEach(function (controller) {
2028 - abortControllerWithReason(controller, listenerCancelled);
2029 - });
2030 -};
2031 -var createClearListenerMiddleware = function (listenerMap) {
2032 - return function () {
2033 - listenerMap.forEach(cancelActiveListeners);
2034 - listenerMap.clear();
2035 - };
2036 -};
2037 -var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
2038 - try {
2039 - errorHandler(errorToNotify, errorInfo);
2040 - }
2041 - catch (errorHandlerError) {
2042 - setTimeout(function () {
2043 - throw errorHandlerError;
2044 - }, 0);
2045 - }
2046 -};
2047 -var addListener = createAction(alm + "/add");
2048 -var clearAllListeners = createAction(alm + "/removeAll");
2049 -var removeListener = createAction(alm + "/remove");
2050 -var defaultErrorHandler = function () {
2051 - var args = [];
2052 - for (var _i = 0; _i < arguments.length; _i++) {
2053 - args[_i] = arguments[_i];
2054 - }
2055 - console.error.apply(console, __spreadArray([alm + "/error"], args));
2056 -};
2057 -function createListenerMiddleware(middlewareOptions) {
2058 - var _this = this;
2059 - if (middlewareOptions === void 0) { middlewareOptions = {}; }
2060 - var listenerMap = new Map();
2061 - var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
2062 - assertFunction(onError, "onError");
2063 - var insertEntry = function (entry) {
2064 - entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
2065 - listenerMap.set(entry.id, entry);
2066 - return function (cancelOptions) {
2067 - entry.unsubscribe();
2068 - if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
2069 - cancelActiveListeners(entry);
2070 - }
2071 - };
2072 - };
2073 - var findListenerEntry = function (comparator) {
2074 - for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
2075 - var entry = _c[_i];
2076 - if (comparator(entry)) {
2077 - return entry;
2078 - }
2079 - }
2080 - return void 0;
2081 - };
2082 - var startListening = function (options) {
2083 - var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
2084 - if (!entry) {
2085 - entry = createListenerEntry(options);
2086 - }
2087 - return insertEntry(entry);
2088 - };
2089 - var stopListening = function (options) {
2090 - var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
2091 - var entry = findListenerEntry(function (entry2) {
2092 - var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
2093 - return matchPredicateOrType && entry2.effect === effect;
2094 - });
2095 - if (entry) {
2096 - entry.unsubscribe();
2097 - if (options.cancelActive) {
2098 - cancelActiveListeners(entry);
2099 - }
2100 - }
2101 - return !!entry;
2102 - };
2103 - var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
2104 - var internalTaskController, take, autoJoinPromises, listenerError_1;
2105 - return __generator(this, function (_c) {
2106 - switch (_c.label) {
2107 - case 0:
2108 - internalTaskController = new AbortController();
2109 - take = createTakePattern(startListening, internalTaskController.signal);
2110 - autoJoinPromises = [];
2111 - _c.label = 1;
2112 - case 1:
2113 - _c.trys.push([1, 3, 4, 6]);
2114 - entry.pending.add(internalTaskController);
2115 - return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
2116 - getOriginalState: getOriginalState,
2117 - condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
2118 - take: take,
2119 - delay: createDelay(internalTaskController.signal),
2120 - pause: createPause(internalTaskController.signal),
2121 - extra: extra,
2122 - signal: internalTaskController.signal,
2123 - fork: createFork(internalTaskController.signal, autoJoinPromises),
2124 - unsubscribe: entry.unsubscribe,
2125 - subscribe: function () {
2126 - listenerMap.set(entry.id, entry);
2127 - },
2128 - cancelActiveListeners: function () {
2129 - entry.pending.forEach(function (controller, _, set) {
2130 - if (controller !== internalTaskController) {
2131 - abortControllerWithReason(controller, listenerCancelled);
2132 - set.delete(controller);
2133 - }
2134 - });
2135 - }
2136 - })))];
2137 - case 2:
2138 - _c.sent();
2139 - return [3 /*break*/, 6];
2140 - case 3:
2141 - listenerError_1 = _c.sent();
2142 - if (!(listenerError_1 instanceof TaskAbortError)) {
2143 - safelyNotifyError(onError, listenerError_1, {
2144 - raisedBy: "effect"
2145 - });
2146 - }
2147 - return [3 /*break*/, 6];
2148 - case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
2149 - case 5:
2150 - _c.sent();
2151 - abortControllerWithReason(internalTaskController, listenerCompleted);
2152 - entry.pending.delete(internalTaskController);
2153 - return [7 /*endfinally*/];
2154 - case 6: return [2 /*return*/];
2155 - }
2156 - });
2157 - }); };
2158 - var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
2159 - var middleware = function (api) { return function (next) { return function (action) {
2160 - if (!isAction(action)) {
2161 - return next(action);
2162 - }
2163 - if (addListener.match(action)) {
2164 - return startListening(action.payload);
2165 - }
2166 - if (clearAllListeners.match(action)) {
2167 - clearListenerMiddleware();
2168 - return;
2169 - }
2170 - if (removeListener.match(action)) {
2171 - return stopListening(action.payload);
2172 - }
2173 - var originalState = api.getState();
2174 - var getOriginalState = function () {
2175 - if (originalState === INTERNAL_NIL_TOKEN) {
2176 - throw new Error(alm + ": getOriginalState can only be called synchronously");
2177 - }
2178 - return originalState;
2179 - };
2180 - var result;
2181 - try {
2182 - result = next(action);
2183 - if (listenerMap.size > 0) {
2184 - var currentState = api.getState();
2185 - var listenerEntries = Array.from(listenerMap.values());
2186 - for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
2187 - var entry = listenerEntries_1[_i];
2188 - var runListener = false;
2189 - try {
2190 - runListener = entry.predicate(action, currentState, originalState);
2191 - }
2192 - catch (predicateError) {
2193 - runListener = false;
2194 - safelyNotifyError(onError, predicateError, {
2195 - raisedBy: "predicate"
2196 - });
2197 - }
2198 - if (!runListener) {
2199 - continue;
2200 - }
2201 - notifyListener(entry, action, api, getOriginalState);
2202 - }
2203 - }
2204 - }
2205 - finally {
2206 - originalState = INTERNAL_NIL_TOKEN;
2207 - }
2208 - return result;
2209 - }; }; };
2210 - return {
2211 - middleware: middleware,
2212 - startListening: startListening,
2213 - stopListening: stopListening,
2214 - clearListeners: clearListenerMiddleware
2215 - };
2216 -}
2217 -// src/autoBatchEnhancer.ts
2218 -var SHOULD_AUTOBATCH = "RTK_autoBatch";
2219 -var prepareAutoBatched = function () { return function (payload) {
2220 - var _c;
2221 - return ({
2222 - payload: payload,
2223 - meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
2224 - });
2225 -}; };
2226 -var promise;
2227 -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 () {
2228 - throw err;
2229 -}, 0); }); };
2230 -var createQueueWithTimer = function (timeout) {
2231 - return function (notify) {
2232 - setTimeout(notify, timeout);
2233 - };
2234 -};
2235 -var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
2236 -var autoBatchEnhancer = function (options) {
2237 - if (options === void 0) { options = { type: "raf" }; }
2238 - return function (next) { return function () {
2239 - var args = [];
2240 - for (var _i = 0; _i < arguments.length; _i++) {
2241 - args[_i] = arguments[_i];
2242 - }
2243 - var store = next.apply(void 0, args);
2244 - var notifying = true;
2245 - var shouldNotifyAtEndOfTick = false;
2246 - var notificationQueued = false;
2247 - var listeners = new Set();
2248 - var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
2249 - var notifyListeners = function () {
2250 - notificationQueued = false;
2251 - if (shouldNotifyAtEndOfTick) {
2252 - shouldNotifyAtEndOfTick = false;
2253 - listeners.forEach(function (l) { return l(); });
2254 - }
2255 - };
2256 - return Object.assign({}, store, {
2257 - subscribe: function (listener2) {
2258 - var wrappedListener = function () { return notifying && listener2(); };
2259 - var unsubscribe = store.subscribe(wrappedListener);
2260 - listeners.add(listener2);
2261 - return function () {
2262 - unsubscribe();
2263 - listeners.delete(listener2);
2264 - };
2265 - },
2266 - dispatch: function (action) {
2267 - var _a;
2268 - try {
2269 - notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
2270 - shouldNotifyAtEndOfTick = !notifying;
2271 - if (shouldNotifyAtEndOfTick) {
2272 - if (!notificationQueued) {
2273 - notificationQueued = true;
2274 - queueCallback(notifyListeners);
2275 - }
2276 - }
2277 - return store.dispatch(action);
2278 - }
2279 - finally {
2280 - notifying = true;
2281 - }
2282 - }
2283 - });
2284 - }; };
2285 -};
2286 -// src/index.ts
2287 -(0,immer__WEBPACK_IMPORTED_MODULE_0__.enableES5)();
2288 -
2289 -//# sourceMappingURL=redux-toolkit.esm.js.map
2290 -
2291 -/***/ }),
2292 -
2293 -/***/ "../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
2294 -/*!***********************************************************************************!*\
2295 - !*** ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
2296 - \***********************************************************************************/
2297 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2298 -
2299 -"use strict";
2300 -
2301 -
2302 -var reactIs = __webpack_require__(/*! react-is */ "../node_modules/hoist-non-react-statics/node_modules/react-is/index.js");
2303 -
3354 +//#endregion
3355 +//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
2304 3356 /**
2305 - * Copyright 2015, Yahoo! Inc.
2306 - * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2307 - */
2308 -var REACT_STATICS = {
2309 - childContextTypes: true,
2310 - contextType: true,
2311 - contextTypes: true,
2312 - defaultProps: true,
2313 - displayName: true,
2314 - getDefaultProps: true,
2315 - getDerivedStateFromError: true,
2316 - getDerivedStateFromProps: true,
2317 - mixins: true,
2318 - propTypes: true,
2319 - type: true
2320 -};
2321 -var KNOWN_STATICS = {
2322 - name: true,
2323 - length: true,
2324 - prototype: true,
2325 - caller: true,
2326 - callee: true,
2327 - arguments: true,
2328 - arity: true
2329 -};
2330 -var FORWARD_REF_STATICS = {
2331 - '$$typeof': true,
2332 - render: true,
2333 - defaultProps: true,
2334 - displayName: true,
2335 - propTypes: true
2336 -};
2337 -var MEMO_STATICS = {
2338 - '$$typeof': true,
2339 - compare: true,
2340 - defaultProps: true,
2341 - displayName: true,
2342 - propTypes: true,
2343 - type: true
2344 -};
2345 -var TYPE_STATICS = {};
2346 -TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
2347 -TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
3357 + * @license React
3358 + * use-sync-external-store-shim.development.js
3359 + *
3360 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3361 + *
3362 + * This source code is licensed under the MIT license found in the
3363 + * LICENSE file in the root directory of this source tree.
3364 + */
3365 + var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJSMin(((exports) => {
3366 + (function() {
3367 + function is(x, y) {
3368 + return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
3369 + }
3370 + function useSyncExternalStore$2(subscribe, getSnapshot) {
3371 + didWarnOld18Alpha || void 0 === React.startTransition || (didWarnOld18Alpha = !0, console.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."));
3372 + var value = getSnapshot();
3373 + if (!didWarnUncachedGetSnapshot) {
3374 + var cachedValue = getSnapshot();
3375 + objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
3376 + }
3377 + cachedValue = useState({ inst: {
3378 + value,
3379 + getSnapshot
3380 + } });
3381 + var inst = cachedValue[0].inst;
3382 + var forceUpdate = cachedValue[1];
3383 + useLayoutEffect(function() {
3384 + inst.value = value;
3385 + inst.getSnapshot = getSnapshot;
3386 + checkIfSnapshotChanged(inst) && forceUpdate({ inst });
3387 + }, [
3388 + subscribe,
3389 + value,
3390 + getSnapshot
3391 + ]);
3392 + useEffect(function() {
3393 + checkIfSnapshotChanged(inst) && forceUpdate({ inst });
3394 + return subscribe(function() {
3395 + checkIfSnapshotChanged(inst) && forceUpdate({ inst });
3396 + });
3397 + }, [subscribe]);
3398 + useDebugValue(value);
3399 + return value;
3400 + }
3401 + function checkIfSnapshotChanged(inst) {
3402 + var latestGetSnapshot = inst.getSnapshot;
3403 + inst = inst.value;
3404 + try {
3405 + var nextValue = latestGetSnapshot();
3406 + return !objectIs(inst, nextValue);
3407 + } catch (error) {
3408 + return !0;
3409 + }
3410 + }
3411 + function useSyncExternalStore$1(subscribe, getSnapshot) {
3412 + return getSnapshot();
3413 + }
3414 + "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3415 + var React = (globalThis.React);
3416 + var objectIs = "function" === typeof Object.is ? Object.is : is;
3417 + var useState = React.useState;
3418 + var useEffect = React.useEffect;
3419 + var useLayoutEffect = React.useLayoutEffect;
3420 + var useDebugValue = React.useDebugValue;
3421 + var didWarnOld18Alpha = !1;
3422 + var didWarnUncachedGetSnapshot = !1;
3423 + var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
3424 + exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
3425 + "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3426 + })();
3427 + }));
2348 3428
2349 -function getStatics(component) {
2350 - // React v16.11 and below
2351 - if (reactIs.isMemo(component)) {
2352 - return MEMO_STATICS;
2353 - } // React v16.12 and above
3429 +//#endregion
3430 +//#region node_modules/use-sync-external-store/shim/index.js
3431 + var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3432 + module.exports = require_use_sync_external_store_shim_development();
3433 + }));
2354 3434
2355 -
2356 - return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
2357 -}
2358 -
2359 -var defineProperty = Object.defineProperty;
2360 -var getOwnPropertyNames = Object.getOwnPropertyNames;
2361 -var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2362 -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2363 -var getPrototypeOf = Object.getPrototypeOf;
2364 -var objectPrototype = Object.prototype;
2365 -function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2366 - if (typeof sourceComponent !== 'string') {
2367 - // don't hoist over string (html) components
2368 - if (objectPrototype) {
2369 - var inheritedComponent = getPrototypeOf(sourceComponent);
2370 -
2371 - if (inheritedComponent && inheritedComponent !== objectPrototype) {
2372 - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
2373 - }
2374 - }
2375 -
2376 - var keys = getOwnPropertyNames(sourceComponent);
2377 -
2378 - if (getOwnPropertySymbols) {
2379 - keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2380 - }
2381 -
2382 - var targetStatics = getStatics(targetComponent);
2383 - var sourceStatics = getStatics(sourceComponent);
2384 -
2385 - for (var i = 0; i < keys.length; ++i) {
2386 - var key = keys[i];
2387 -
2388 - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
2389 - var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
2390 -
2391 - try {
2392 - // Avoid failures from read-only properties
2393 - defineProperty(targetComponent, key, descriptor);
2394 - } catch (e) {}
2395 - }
2396 - }
2397 - }
2398 -
2399 - return targetComponent;
2400 -}
2401 -
2402 -module.exports = hoistNonReactStatics;
2403 -
2404 -
2405 -/***/ }),
2406 -
2407 -/***/ "../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js":
2408 -/*!*************************************************************************************************!*\
2409 - !*** ../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js ***!
2410 - \*************************************************************************************************/
2411 -/***/ ((__unused_webpack_module, exports) => {
2412 -
2413 -"use strict";
2414 -/** @license React v16.13.1
2415 - * react-is.development.js
2416 - *
2417 - * Copyright (c) Facebook, Inc. and its affiliates.
2418 - *
2419 - * This source code is licensed under the MIT license found in the
2420 - * LICENSE file in the root directory of this source tree.
2421 - */
2422 -
2423 -
2424 -
2425 -
2426 -
2427 -if (true) {
2428 - (function() {
2429 -'use strict';
2430 -
2431 -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2432 -// nor polyfill, then a plain number is used for performance.
2433 -var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2434 -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2435 -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2436 -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2437 -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2438 -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2439 -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2440 -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
2441 -// (unstable) APIs that have been removed. Can we remove the symbols?
2442 -
2443 -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
2444 -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2445 -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2446 -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2447 -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
2448 -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2449 -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2450 -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
2451 -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
2452 -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
2453 -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
2454 -
2455 -function isValidElementType(type) {
2456 - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2457 - 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);
2458 -}
2459 -
2460 -function typeOf(object) {
2461 - if (typeof object === 'object' && object !== null) {
2462 - var $$typeof = object.$$typeof;
2463 -
2464 - switch ($$typeof) {
2465 - case REACT_ELEMENT_TYPE:
2466 - var type = object.type;
2467 -
2468 - switch (type) {
2469 - case REACT_ASYNC_MODE_TYPE:
2470 - case REACT_CONCURRENT_MODE_TYPE:
2471 - case REACT_FRAGMENT_TYPE:
2472 - case REACT_PROFILER_TYPE:
2473 - case REACT_STRICT_MODE_TYPE:
2474 - case REACT_SUSPENSE_TYPE:
2475 - return type;
2476 -
2477 - default:
2478 - var $$typeofType = type && type.$$typeof;
2479 -
2480 - switch ($$typeofType) {
2481 - case REACT_CONTEXT_TYPE:
2482 - case REACT_FORWARD_REF_TYPE:
2483 - case REACT_LAZY_TYPE:
2484 - case REACT_MEMO_TYPE:
2485 - case REACT_PROVIDER_TYPE:
2486 - return $$typeofType;
2487 -
2488 - default:
2489 - return $$typeof;
2490 - }
2491 -
2492 - }
2493 -
2494 - case REACT_PORTAL_TYPE:
2495 - return $$typeof;
2496 - }
2497 - }
2498 -
2499 - return undefined;
2500 -} // AsyncMode is deprecated along with isAsyncMode
2501 -
2502 -var AsyncMode = REACT_ASYNC_MODE_TYPE;
2503 -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
2504 -var ContextConsumer = REACT_CONTEXT_TYPE;
2505 -var ContextProvider = REACT_PROVIDER_TYPE;
2506 -var Element = REACT_ELEMENT_TYPE;
2507 -var ForwardRef = REACT_FORWARD_REF_TYPE;
2508 -var Fragment = REACT_FRAGMENT_TYPE;
2509 -var Lazy = REACT_LAZY_TYPE;
2510 -var Memo = REACT_MEMO_TYPE;
2511 -var Portal = REACT_PORTAL_TYPE;
2512 -var Profiler = REACT_PROFILER_TYPE;
2513 -var StrictMode = REACT_STRICT_MODE_TYPE;
2514 -var Suspense = REACT_SUSPENSE_TYPE;
2515 -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
2516 -
2517 -function isAsyncMode(object) {
2518 - {
2519 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2520 - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2521 -
2522 - 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.');
2523 - }
2524 - }
2525 -
2526 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2527 -}
2528 -function isConcurrentMode(object) {
2529 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2530 -}
2531 -function isContextConsumer(object) {
2532 - return typeOf(object) === REACT_CONTEXT_TYPE;
2533 -}
2534 -function isContextProvider(object) {
2535 - return typeOf(object) === REACT_PROVIDER_TYPE;
2536 -}
2537 -function isElement(object) {
2538 - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2539 -}
2540 -function isForwardRef(object) {
2541 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
2542 -}
2543 -function isFragment(object) {
2544 - return typeOf(object) === REACT_FRAGMENT_TYPE;
2545 -}
2546 -function isLazy(object) {
2547 - return typeOf(object) === REACT_LAZY_TYPE;
2548 -}
2549 -function isMemo(object) {
2550 - return typeOf(object) === REACT_MEMO_TYPE;
2551 -}
2552 -function isPortal(object) {
2553 - return typeOf(object) === REACT_PORTAL_TYPE;
2554 -}
2555 -function isProfiler(object) {
2556 - return typeOf(object) === REACT_PROFILER_TYPE;
2557 -}
2558 -function isStrictMode(object) {
2559 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
2560 -}
2561 -function isSuspense(object) {
2562 - return typeOf(object) === REACT_SUSPENSE_TYPE;
2563 -}
2564 -
2565 -exports.AsyncMode = AsyncMode;
2566 -exports.ConcurrentMode = ConcurrentMode;
2567 -exports.ContextConsumer = ContextConsumer;
2568 -exports.ContextProvider = ContextProvider;
2569 -exports.Element = Element;
2570 -exports.ForwardRef = ForwardRef;
2571 -exports.Fragment = Fragment;
2572 -exports.Lazy = Lazy;
2573 -exports.Memo = Memo;
2574 -exports.Portal = Portal;
2575 -exports.Profiler = Profiler;
2576 -exports.StrictMode = StrictMode;
2577 -exports.Suspense = Suspense;
2578 -exports.isAsyncMode = isAsyncMode;
2579 -exports.isConcurrentMode = isConcurrentMode;
2580 -exports.isContextConsumer = isContextConsumer;
2581 -exports.isContextProvider = isContextProvider;
2582 -exports.isElement = isElement;
2583 -exports.isForwardRef = isForwardRef;
2584 -exports.isFragment = isFragment;
2585 -exports.isLazy = isLazy;
2586 -exports.isMemo = isMemo;
2587 -exports.isPortal = isPortal;
2588 -exports.isProfiler = isProfiler;
2589 -exports.isStrictMode = isStrictMode;
2590 -exports.isSuspense = isSuspense;
2591 -exports.isValidElementType = isValidElementType;
2592 -exports.typeOf = typeOf;
2593 - })();
2594 -}
2595 -
2596 -
2597 -/***/ }),
2598 -
2599 -/***/ "../node_modules/hoist-non-react-statics/node_modules/react-is/index.js":
2600 -/*!******************************************************************************!*\
2601 - !*** ../node_modules/hoist-non-react-statics/node_modules/react-is/index.js ***!
2602 - \******************************************************************************/
2603 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2604 -
2605 -"use strict";
2606 -
2607 -
2608 -if (false) // removed by dead control flow
2609 -{} else {
2610 - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js");
2611 -}
2612 -
2613 -
2614 -/***/ }),
2615 -
2616 -/***/ "../node_modules/immer/dist/immer.esm.mjs":
2617 -/*!************************************************!*\
2618 - !*** ../node_modules/immer/dist/immer.esm.mjs ***!
2619 - \************************************************/
2620 -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2621 -
2622 -"use strict";
2623 -__webpack_require__.r(__webpack_exports__);
2624 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2625 -/* harmony export */ Immer: () => (/* binding */ un),
2626 -/* harmony export */ applyPatches: () => (/* binding */ pn),
2627 -/* harmony export */ castDraft: () => (/* binding */ K),
2628 -/* harmony export */ castImmutable: () => (/* binding */ $),
2629 -/* harmony export */ createDraft: () => (/* binding */ ln),
2630 -/* harmony export */ current: () => (/* binding */ R),
2631 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
2632 -/* harmony export */ enableAllPlugins: () => (/* binding */ J),
2633 -/* harmony export */ enableES5: () => (/* binding */ F),
2634 -/* harmony export */ enableMapSet: () => (/* binding */ C),
2635 -/* harmony export */ enablePatches: () => (/* binding */ T),
2636 -/* harmony export */ finishDraft: () => (/* binding */ dn),
2637 -/* harmony export */ freeze: () => (/* binding */ d),
2638 -/* harmony export */ immerable: () => (/* binding */ L),
2639 -/* harmony export */ isDraft: () => (/* binding */ r),
2640 -/* harmony export */ isDraftable: () => (/* binding */ t),
2641 -/* harmony export */ nothing: () => (/* binding */ H),
2642 -/* harmony export */ original: () => (/* binding */ e),
2643 -/* harmony export */ produce: () => (/* binding */ fn),
2644 -/* harmony export */ produceWithPatches: () => (/* binding */ cn),
2645 -/* harmony export */ setAutoFreeze: () => (/* binding */ sn),
2646 -/* harmony export */ setUseProxies: () => (/* binding */ vn)
2647 -/* harmony export */ });
2648 -function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}// removed by dead control flow
2649 -}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return false||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if( true&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.g&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=o(f),p=i[s];"string"!=typeof p&&"number"!=typeof p&&(p=""+p),0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},N:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.R,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.R,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.R=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=N(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.g&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,R:void 0,t:n,k:this,C:!1,g:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.R.set(n,!0),t.o.set(n,r),t.R.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.R.set(n,!1):r.R.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.R=new Map,i(n.t,(function(r){n.R.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=N(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,g:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{F:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){F(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?g(c):O(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn);
2650 -//# sourceMappingURL=immer.esm.js.map
2651 -
2652 -
2653 -/***/ }),
2654 -
2655 -/***/ "../node_modules/react-is/cjs/react-is.development.js":
2656 -/*!************************************************************!*\
2657 - !*** ../node_modules/react-is/cjs/react-is.development.js ***!
2658 - \************************************************************/
2659 -/***/ ((__unused_webpack_module, exports) => {
2660 -
2661 -"use strict";
3435 +//#endregion
3436 +//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
2662 3437 /**
2663 - * @license React
2664 - * react-is.development.js
2665 - *
2666 - * Copyright (c) Facebook, Inc. and its affiliates.
2667 - *
2668 - * This source code is licensed under the MIT license found in the
2669 - * LICENSE file in the root directory of this source tree.
2670 - */
3438 + * @license React
3439 + * use-sync-external-store-shim/with-selector.development.js
3440 + *
3441 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3442 + *
3443 + * This source code is licensed under the MIT license found in the
3444 + * LICENSE file in the root directory of this source tree.
3445 + */
3446 + var require_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports) => {
3447 + (function() {
3448 + function is(x, y) {
3449 + return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
3450 + }
3451 + "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3452 + var React = (globalThis.React);
3453 + var shim = require_shim();
3454 + var objectIs = "function" === typeof Object.is ? Object.is : is;
3455 + var useSyncExternalStore = shim.useSyncExternalStore;
3456 + var useRef = React.useRef;
3457 + var useEffect = React.useEffect;
3458 + var useMemo = React.useMemo;
3459 + var useDebugValue = React.useDebugValue;
3460 + exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
3461 + var instRef = useRef(null);
3462 + if (null === instRef.current) {
3463 + var inst = {
3464 + hasValue: !1,
3465 + value: null
3466 + };
3467 + instRef.current = inst;
3468 + } else inst = instRef.current;
3469 + instRef = useMemo(function() {
3470 + function memoizedSelector(nextSnapshot) {
3471 + if (!hasMemo) {
3472 + hasMemo = !0;
3473 + memoizedSnapshot = nextSnapshot;
3474 + nextSnapshot = selector(nextSnapshot);
3475 + if (void 0 !== isEqual && inst.hasValue) {
3476 + var currentSelection = inst.value;
3477 + if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
3478 + }
3479 + return memoizedSelection = nextSnapshot;
3480 + }
3481 + currentSelection = memoizedSelection;
3482 + if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
3483 + var nextSelection = selector(nextSnapshot);
3484 + if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
3485 + memoizedSnapshot = nextSnapshot;
3486 + return memoizedSelection = nextSelection;
3487 + }
3488 + var hasMemo = !1;
3489 + var memoizedSnapshot;
3490 + var memoizedSelection;
3491 + var maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
3492 + return [function() {
3493 + return memoizedSelector(getSnapshot());
3494 + }, null === maybeGetServerSnapshot ? void 0 : function() {
3495 + return memoizedSelector(maybeGetServerSnapshot());
3496 + }];
3497 + }, [
3498 + getSnapshot,
3499 + getServerSnapshot,
3500 + selector,
3501 + isEqual
3502 + ]);
3503 + var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
3504 + useEffect(function() {
3505 + inst.hasValue = !0;
3506 + inst.value = value;
3507 + }, [value]);
3508 + useDebugValue(value);
3509 + return value;
3510 + };
3511 + "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3512 + })();
3513 + }));
2671 3514
3515 +//#endregion
3516 +//#region node_modules/use-sync-external-store/shim/with-selector.js
3517 + var require_with_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3518 + module.exports = require_with_selector_development();
3519 + }));
2672 3520
3521 +//#endregion
3522 +//#region node_modules/react-redux/es/utils/reactBatchedUpdates.js
3523 +var import_shim = require_shim();
3524 +var import_with_selector = require_with_selector();
2673 3525
2674 -if (true) {
2675 - (function() {
2676 -'use strict';
3526 +//#endregion
3527 +//#region node_modules/react-redux/es/utils/batch.js
3528 + function defaultNoopBatch(callback) {
3529 + callback();
3530 + }
3531 + var batch = defaultNoopBatch;
3532 + var setBatch = (newBatch) => batch = newBatch;
3533 + var getBatch = () => batch;
2677 3534
2678 -// ATTENTION
2679 -// When adding new symbols to this file,
2680 -// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
2681 -// The Symbol used to tag the ReactElement-like types.
2682 -var REACT_ELEMENT_TYPE = Symbol.for('react.element');
2683 -var REACT_PORTAL_TYPE = Symbol.for('react.portal');
2684 -var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
2685 -var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2686 -var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2687 -var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2688 -var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2689 -var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
2690 -var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2691 -var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2692 -var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2693 -var REACT_MEMO_TYPE = Symbol.for('react.memo');
2694 -var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2695 -var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
3535 +//#endregion
3536 +//#region node_modules/react-redux/es/components/Context.js
3537 + var ContextKey = Symbol.for(`react-redux-context`);
3538 + var gT = typeof globalThis !== "undefined" ? globalThis : {};
3539 + function getContext() {
3540 + var _gT$ContextKey;
3541 + if (!react.createContext) return {};
3542 + const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = /* @__PURE__ */ new Map();
3543 + let realContext = contextMap.get(react.createContext);
3544 + if (!realContext) {
3545 + realContext = react.createContext(null);
3546 + realContext.displayName = "ReactRedux";
3547 + contextMap.set(react.createContext, realContext);
3548 + }
3549 + return realContext;
3550 + }
3551 + var ReactReduxContext = /*#__PURE__*/ getContext();
2696 3552
2697 -// -----------------------------------------------------------------------------
2698 -
2699 -var enableScopeAPI = false; // Experimental Create Event Handle API.
2700 -var enableCacheElement = false;
2701 -var enableTransitionTracing = false; // No known bugs, but needs performance testing
2702 -
2703 -var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
2704 -// stuff. Intended to enable React core members to more easily debug scheduling
2705 -// issues in DEV builds.
2706 -
2707 -var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
2708 -
2709 -var REACT_MODULE_REFERENCE;
2710 -
2711 -{
2712 - REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
2713 -}
2714 -
2715 -function isValidElementType(type) {
2716 - if (typeof type === 'string' || typeof type === 'function') {
2717 - return true;
2718 - } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
2719 -
2720 -
2721 - 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 ) {
2722 - return true;
2723 - }
2724 -
2725 - if (typeof type === 'object' && type !== null) {
2726 - 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
2727 - // types supported by any Flight configuration anywhere since
2728 - // we don't know which Flight build this will end up being used
2729 - // with.
2730 - type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
2731 - return true;
2732 - }
2733 - }
2734 -
2735 - return false;
2736 -}
2737 -
2738 -function typeOf(object) {
2739 - if (typeof object === 'object' && object !== null) {
2740 - var $$typeof = object.$$typeof;
2741 -
2742 - switch ($$typeof) {
2743 - case REACT_ELEMENT_TYPE:
2744 - var type = object.type;
2745 -
2746 - switch (type) {
2747 - case REACT_FRAGMENT_TYPE:
2748 - case REACT_PROFILER_TYPE:
2749 - case REACT_STRICT_MODE_TYPE:
2750 - case REACT_SUSPENSE_TYPE:
2751 - case REACT_SUSPENSE_LIST_TYPE:
2752 - return type;
2753 -
2754 - default:
2755 - var $$typeofType = type && type.$$typeof;
2756 -
2757 - switch ($$typeofType) {
2758 - case REACT_SERVER_CONTEXT_TYPE:
2759 - case REACT_CONTEXT_TYPE:
2760 - case REACT_FORWARD_REF_TYPE:
2761 - case REACT_LAZY_TYPE:
2762 - case REACT_MEMO_TYPE:
2763 - case REACT_PROVIDER_TYPE:
2764 - return $$typeofType;
2765 -
2766 - default:
2767 - return $$typeof;
2768 - }
2769 -
2770 - }
2771 -
2772 - case REACT_PORTAL_TYPE:
2773 - return $$typeof;
2774 - }
2775 - }
2776 -
2777 - return undefined;
2778 -}
2779 -var ContextConsumer = REACT_CONTEXT_TYPE;
2780 -var ContextProvider = REACT_PROVIDER_TYPE;
2781 -var Element = REACT_ELEMENT_TYPE;
2782 -var ForwardRef = REACT_FORWARD_REF_TYPE;
2783 -var Fragment = REACT_FRAGMENT_TYPE;
2784 -var Lazy = REACT_LAZY_TYPE;
2785 -var Memo = REACT_MEMO_TYPE;
2786 -var Portal = REACT_PORTAL_TYPE;
2787 -var Profiler = REACT_PROFILER_TYPE;
2788 -var StrictMode = REACT_STRICT_MODE_TYPE;
2789 -var Suspense = REACT_SUSPENSE_TYPE;
2790 -var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
2791 -var hasWarnedAboutDeprecatedIsAsyncMode = false;
2792 -var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
2793 -
2794 -function isAsyncMode(object) {
2795 - {
2796 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2797 - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2798 -
2799 - console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
2800 - }
2801 - }
2802 -
2803 - return false;
2804 -}
2805 -function isConcurrentMode(object) {
2806 - {
2807 - if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
2808 - hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
2809 -
2810 - console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
2811 - }
2812 - }
2813 -
2814 - return false;
2815 -}
2816 -function isContextConsumer(object) {
2817 - return typeOf(object) === REACT_CONTEXT_TYPE;
2818 -}
2819 -function isContextProvider(object) {
2820 - return typeOf(object) === REACT_PROVIDER_TYPE;
2821 -}
2822 -function isElement(object) {
2823 - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2824 -}
2825 -function isForwardRef(object) {
2826 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
2827 -}
2828 -function isFragment(object) {
2829 - return typeOf(object) === REACT_FRAGMENT_TYPE;
2830 -}
2831 -function isLazy(object) {
2832 - return typeOf(object) === REACT_LAZY_TYPE;
2833 -}
2834 -function isMemo(object) {
2835 - return typeOf(object) === REACT_MEMO_TYPE;
2836 -}
2837 -function isPortal(object) {
2838 - return typeOf(object) === REACT_PORTAL_TYPE;
2839 -}
2840 -function isProfiler(object) {
2841 - return typeOf(object) === REACT_PROFILER_TYPE;
2842 -}
2843 -function isStrictMode(object) {
2844 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
2845 -}
2846 -function isSuspense(object) {
2847 - return typeOf(object) === REACT_SUSPENSE_TYPE;
2848 -}
2849 -function isSuspenseList(object) {
2850 - return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
2851 -}
2852 -
2853 -exports.ContextConsumer = ContextConsumer;
2854 -exports.ContextProvider = ContextProvider;
2855 -exports.Element = Element;
2856 -exports.ForwardRef = ForwardRef;
2857 -exports.Fragment = Fragment;
2858 -exports.Lazy = Lazy;
2859 -exports.Memo = Memo;
2860 -exports.Portal = Portal;
2861 -exports.Profiler = Profiler;
2862 -exports.StrictMode = StrictMode;
2863 -exports.Suspense = Suspense;
2864 -exports.SuspenseList = SuspenseList;
2865 -exports.isAsyncMode = isAsyncMode;
2866 -exports.isConcurrentMode = isConcurrentMode;
2867 -exports.isContextConsumer = isContextConsumer;
2868 -exports.isContextProvider = isContextProvider;
2869 -exports.isElement = isElement;
2870 -exports.isForwardRef = isForwardRef;
2871 -exports.isFragment = isFragment;
2872 -exports.isLazy = isLazy;
2873 -exports.isMemo = isMemo;
2874 -exports.isPortal = isPortal;
2875 -exports.isProfiler = isProfiler;
2876 -exports.isStrictMode = isStrictMode;
2877 -exports.isSuspense = isSuspense;
2878 -exports.isSuspenseList = isSuspenseList;
2879 -exports.isValidElementType = isValidElementType;
2880 -exports.typeOf = typeOf;
2881 - })();
2882 -}
2883 -
2884 -
2885 -/***/ }),
2886 -
2887 -/***/ "../node_modules/react-is/index.js":
2888 -/*!*****************************************!*\
2889 - !*** ../node_modules/react-is/index.js ***!
2890 - \*****************************************/
2891 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2892 -
2893 -"use strict";
2894 -
2895 -
2896 -if (false) // removed by dead control flow
2897 -{} else {
2898 - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/react-is/cjs/react-is.development.js");
2899 -}
2900 -
2901 -
2902 -/***/ }),
2903 -
2904 -/***/ "../node_modules/react-redux/es/components/Context.js":
2905 -/*!************************************************************!*\
2906 - !*** ../node_modules/react-redux/es/components/Context.js ***!
2907 - \************************************************************/
2908 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2909 -
2910 -"use strict";
2911 -__webpack_require__.r(__webpack_exports__);
2912 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2913 -/* harmony export */ ReactReduxContext: () => (/* binding */ ReactReduxContext),
2914 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2915 -/* harmony export */ });
2916 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
2917 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2918 -
2919 -const ContextKey = Symbol.for(`react-redux-context`);
2920 -const gT = typeof globalThis !== "undefined" ? globalThis :
2921 -/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
2922 -{};
2923 -
2924 -function getContext() {
2925 - var _gT$ContextKey;
2926 -
2927 - if (!react__WEBPACK_IMPORTED_MODULE_0__.createContext) return {};
2928 - const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
2929 - let realContext = contextMap.get(react__WEBPACK_IMPORTED_MODULE_0__.createContext);
2930 -
2931 - if (!realContext) {
2932 - realContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
2933 -
2934 - if (true) {
2935 - realContext.displayName = 'ReactRedux';
2936 - }
2937 -
2938 - contextMap.set(react__WEBPACK_IMPORTED_MODULE_0__.createContext, realContext);
2939 - }
2940 -
2941 - return realContext;
2942 -}
2943 -
2944 -const ReactReduxContext = /*#__PURE__*/getContext();
2945 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReactReduxContext);
2946 -
2947 -/***/ }),
2948 -
2949 -/***/ "../node_modules/react-redux/es/components/Provider.js":
2950 -/*!*************************************************************!*\
2951 - !*** ../node_modules/react-redux/es/components/Provider.js ***!
2952 - \*************************************************************/
2953 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2954 -
2955 -"use strict";
2956 -__webpack_require__.r(__webpack_exports__);
2957 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2958 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2959 -/* harmony export */ });
2960 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
2961 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2962 -/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Context */ "../node_modules/react-redux/es/components/Context.js");
2963 -/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Subscription */ "../node_modules/react-redux/es/utils/Subscription.js");
2964 -/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
2965 -
2966 -
2967 -
2968 -
2969 -
2970 -function Provider({
2971 - store,
2972 - context,
2973 - children,
2974 - serverState,
2975 - stabilityCheck = 'once',
2976 - noopCheck = 'once'
2977 -}) {
2978 - const contextValue = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => {
2979 - const subscription = (0,_utils_Subscription__WEBPACK_IMPORTED_MODULE_2__.createSubscription)(store);
2980 - return {
2981 - store,
2982 - subscription,
2983 - getServerState: serverState ? () => serverState : undefined,
2984 - stabilityCheck,
2985 - noopCheck
2986 - };
2987 - }, [store, serverState, stabilityCheck, noopCheck]);
2988 - const previousState = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => store.getState(), [store]);
2989 - (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(() => {
2990 - const {
2991 - subscription
2992 - } = contextValue;
2993 - subscription.onStateChange = subscription.notifyNestedSubs;
2994 - subscription.trySubscribe();
2995 -
2996 - if (previousState !== store.getState()) {
2997 - subscription.notifyNestedSubs();
2998 - }
2999 -
3000 - return () => {
3001 - subscription.tryUnsubscribe();
3002 - subscription.onStateChange = undefined;
3003 - };
3004 - }, [contextValue, previousState]);
3005 - 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
3006 -
3007 - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Context.Provider, {
3008 - value: contextValue
3009 - }, children);
3010 -}
3011 -
3012 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
3013 -
3014 -/***/ }),
3015 -
3016 -/***/ "../node_modules/react-redux/es/components/connect.js":
3017 -/*!************************************************************!*\
3018 - !*** ../node_modules/react-redux/es/components/connect.js ***!
3019 - \************************************************************/
3020 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3021 -
3022 -"use strict";
3023 -__webpack_require__.r(__webpack_exports__);
3024 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3025 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
3026 -/* harmony export */ initializeConnect: () => (/* binding */ initializeConnect)
3027 -/* harmony export */ });
3028 -/* 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");
3029 -/* 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");
3030 -/* 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");
3031 -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
3032 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
3033 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
3034 -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-is */ "../node_modules/react-is/index.js");
3035 -/* harmony import */ var _connect_selectorFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../connect/selectorFactory */ "../node_modules/react-redux/es/connect/selectorFactory.js");
3036 -/* harmony import */ var _connect_mapDispatchToProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../connect/mapDispatchToProps */ "../node_modules/react-redux/es/connect/mapDispatchToProps.js");
3037 -/* harmony import */ var _connect_mapStateToProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../connect/mapStateToProps */ "../node_modules/react-redux/es/connect/mapStateToProps.js");
3038 -/* harmony import */ var _connect_mergeProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../connect/mergeProps */ "../node_modules/react-redux/es/connect/mergeProps.js");
3039 -/* harmony import */ var _utils_Subscription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/Subscription */ "../node_modules/react-redux/es/utils/Subscription.js");
3040 -/* harmony import */ var _utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/useIsomorphicLayoutEffect */ "../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js");
3041 -/* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/shallowEqual */ "../node_modules/react-redux/es/utils/shallowEqual.js");
3042 -/* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/warning */ "../node_modules/react-redux/es/utils/warning.js");
3043 -/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Context */ "../node_modules/react-redux/es/components/Context.js");
3044 -/* harmony import */ var _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/useSyncExternalStore */ "../node_modules/react-redux/es/utils/useSyncExternalStore.js");
3045 -
3046 -
3047 -const _excluded = ["reactReduxForwardedRef"];
3048 -
3049 -/* eslint-disable valid-jsdoc, @typescript-eslint/no-unused-vars */
3050 -
3051 -
3052 -
3053 -
3054 -
3055 -
3056 -
3057 -
3058 -
3059 -
3060 -
3061 -
3062 -
3063 -let useSyncExternalStore = _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_14__.notInitialized;
3064 -const initializeConnect = fn => {
3065 - useSyncExternalStore = fn;
3066 -}; // Define some constant arrays just to avoid re-creating these
3067 -
3068 -const EMPTY_ARRAY = [null, 0];
3069 -const NO_SUBSCRIPTION_ARRAY = [null, null]; // Attempts to stringify whatever not-really-a-component value we were given
3070 -// for logging in an error message
3071 -
3072 -const stringifyComponent = Comp => {
3073 - try {
3074 - return JSON.stringify(Comp);
3075 - } catch (err) {
3076 - return String(Comp);
3077 - }
3078 -};
3079 -
3080 -// This is "just" a `useLayoutEffect`, but with two modifications:
3081 -// - we need to fall back to `useEffect` in SSR to avoid annoying warnings
3082 -// - we extract this to a separate function to avoid closing over values
3083 -// and causing memory leaks
3084 -function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
3085 - (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => effectFunc(...effectArgs), dependencies);
3086 -} // Effect callback, extracted: assign the latest props values to refs for later usage
3087 -
3088 -
3089 -function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, // actualChildProps: unknown,
3090 -childPropsFromStoreUpdate, notifyNestedSubs) {
3091 - // We want to capture the wrapper props and child props we used for later comparisons
3092 - lastWrapperProps.current = wrapperProps;
3093 - renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
3094 -
3095 - if (childPropsFromStoreUpdate.current) {
3096 - childPropsFromStoreUpdate.current = null;
3097 - notifyNestedSubs();
3098 - }
3099 -} // Effect callback, extracted: subscribe to the Redux store or nearest connected ancestor,
3100 -// check for updates after dispatched actions, and trigger re-renders.
3101 -
3102 -
3103 -function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, // forceComponentUpdateDispatch: React.Dispatch<any>,
3104 -additionalSubscribeListener) {
3105 - // If we're not subscribed to the store, nothing to do here
3106 - if (!shouldHandleStateChanges) return () => {}; // Capture values for checking if and when this component unmounts
3107 -
3108 - let didUnsubscribe = false;
3109 - let lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
3110 -
3111 - const checkForUpdates = () => {
3112 - if (didUnsubscribe || !isMounted.current) {
3113 - // Don't run stale listeners.
3114 - // Redux doesn't guarantee unsubscriptions happen until next dispatch.
3115 - return;
3116 - } // TODO We're currently calling getState ourselves here, rather than letting `uSES` do it
3117 -
3118 -
3119 - const latestStoreState = store.getState();
3120 - let newChildProps, error;
3121 -
3122 - try {
3123 - // Actually run the selector with the most recent store state and wrapper props
3124 - // to determine what the child props should be
3125 - newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
3126 - } catch (e) {
3127 - error = e;
3128 - lastThrownError = e;
3129 - }
3130 -
3131 - if (!error) {
3132 - lastThrownError = null;
3133 - } // If the child props haven't changed, nothing to do here - cascade the subscription update
3134 -
3135 -
3136 - if (newChildProps === lastChildProps.current) {
3137 - if (!renderIsScheduled.current) {
3138 - notifyNestedSubs();
3139 - }
3140 - } else {
3141 - // Save references to the new child props. Note that we track the "child props from store update"
3142 - // as a ref instead of a useState/useReducer because we need a way to determine if that value has
3143 - // been processed. If this went into useState/useReducer, we couldn't clear out the value without
3144 - // forcing another re-render, which we don't want.
3145 - lastChildProps.current = newChildProps;
3146 - childPropsFromStoreUpdate.current = newChildProps;
3147 - renderIsScheduled.current = true; // TODO This is hacky and not how `uSES` is meant to be used
3148 - // Trigger the React `useSyncExternalStore` subscriber
3149 -
3150 - additionalSubscribeListener();
3151 - }
3152 - }; // Actually subscribe to the nearest connected ancestor (or store)
3153 -
3154 -
3155 - subscription.onStateChange = checkForUpdates;
3156 - subscription.trySubscribe(); // Pull data from the store after first render in case the store has
3157 - // changed since we began.
3158 -
3159 - checkForUpdates();
3160 -
3161 - const unsubscribeWrapper = () => {
3162 - didUnsubscribe = true;
3163 - subscription.tryUnsubscribe();
3164 - subscription.onStateChange = null;
3165 -
3166 - if (lastThrownError) {
3167 - // It's possible that we caught an error due to a bad mapState function, but the
3168 - // parent re-rendered without this component and we're about to unmount.
3169 - // This shouldn't happen as long as we do top-down subscriptions correctly, but
3170 - // if we ever do those wrong, this throw will surface the error in our tests.
3171 - // In that case, throw the error from here so it doesn't get lost.
3172 - throw lastThrownError;
3173 - }
3174 - };
3175 -
3176 - return unsubscribeWrapper;
3177 -} // Reducer initial state creation for our update reducer
3178 -
3179 -
3180 -const initStateUpdates = () => EMPTY_ARRAY;
3181 -
3182 -function strictEqual(a, b) {
3183 - return a === b;
3184 -}
3185 -/**
3186 - * Infers the type of props that a connector will inject into a component.
3187 - */
3188 -
3189 -
3190 -let hasWarnedAboutDeprecatedPureOption = false;
3191 -/**
3192 - * Connects a React component to a Redux store.
3193 - *
3194 - * - Without arguments, just wraps the component, without changing the behavior / props
3195 - *
3196 - * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
3197 - * is to override ownProps (as stated in the docs), so what remains is everything that's
3198 - * not a state or dispatch prop
3199 - *
3200 - * - When 3rd param is passed, we don't know if ownProps propagate and whether they
3201 - * should be valid component props, because it depends on mergeProps implementation.
3202 - * As such, it is the user's responsibility to extend ownProps interface from state or
3203 - * dispatch props or both when applicable
3204 - *
3205 - * @param mapStateToProps A function that extracts values from state
3206 - * @param mapDispatchToProps Setup for dispatching actions
3207 - * @param mergeProps Optional callback to merge state and dispatch props together
3208 - * @param options Options for configuring the connection
3209 - *
3210 - */
3211 -
3212 -function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
3213 - // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
3214 - // @ts-ignore
3215 - pure,
3216 - areStatesEqual = strictEqual,
3217 - areOwnPropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
3218 - areStatePropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
3219 - areMergedPropsEqual = _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_11__["default"],
3220 - // use React's forwardRef to expose a ref of the wrapped component
3221 - forwardRef = false,
3222 - // the context consumer to use
3223 - context = _Context__WEBPACK_IMPORTED_MODULE_13__.ReactReduxContext
3224 -} = {}) {
3225 - if (true) {
3226 - if (pure !== undefined && !hasWarnedAboutDeprecatedPureOption) {
3227 - hasWarnedAboutDeprecatedPureOption = true;
3228 - (0,_utils_warning__WEBPACK_IMPORTED_MODULE_12__["default"])('The `pure` option has been removed. `connect` is now always a "pure/memoized" component');
3229 - }
3230 - }
3231 -
3232 - const Context = context;
3233 - const initMapStateToProps = (0,_connect_mapStateToProps__WEBPACK_IMPORTED_MODULE_7__.mapStateToPropsFactory)(mapStateToProps);
3234 - const initMapDispatchToProps = (0,_connect_mapDispatchToProps__WEBPACK_IMPORTED_MODULE_6__.mapDispatchToPropsFactory)(mapDispatchToProps);
3235 - const initMergeProps = (0,_connect_mergeProps__WEBPACK_IMPORTED_MODULE_8__.mergePropsFactory)(mergeProps);
3236 - const shouldHandleStateChanges = Boolean(mapStateToProps);
3237 -
3238 - const wrapWithConnect = WrappedComponent => {
3239 - if ( true && !(0,react_is__WEBPACK_IMPORTED_MODULE_4__.isValidElementType)(WrappedComponent)) {
3240 - throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(WrappedComponent)}`);
3241 - }
3242 -
3243 - const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
3244 - const displayName = `Connect(${wrappedComponentName})`;
3245 - const selectorFactoryOptions = {
3246 - shouldHandleStateChanges,
3247 - displayName,
3248 - wrappedComponentName,
3249 - WrappedComponent,
3250 - // @ts-ignore
3251 - initMapStateToProps,
3252 - // @ts-ignore
3253 - initMapDispatchToProps,
3254 - initMergeProps,
3255 - areStatesEqual,
3256 - areStatePropsEqual,
3257 - areOwnPropsEqual,
3258 - areMergedPropsEqual
3259 - };
3260 -
3261 - function ConnectFunction(props) {
3262 - const [propsContext, reactReduxForwardedRef, wrapperProps] = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3263 - // Distinguish between actual "data" props that were passed to the wrapper component,
3264 - // and values needed to control behavior (forwarded refs, alternate context instances).
3265 - // To maintain the wrapperProps object reference, memoize this destructuring.
3266 - const {
3267 - reactReduxForwardedRef
3268 - } = props,
3269 - wrapperProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(props, _excluded);
3270 -
3271 - return [props.context, reactReduxForwardedRef, wrapperProps];
3272 - }, [props]);
3273 - const ContextToUse = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3274 - // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
3275 - // Memoize the check that determines which context instance we should use.
3276 - return propsContext && propsContext.Consumer && // @ts-ignore
3277 - (0,react_is__WEBPACK_IMPORTED_MODULE_4__.isContextConsumer)( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(propsContext.Consumer, null)) ? propsContext : Context;
3278 - }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
3279 -
3280 - const contextValue = react__WEBPACK_IMPORTED_MODULE_3__.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
3281 - // We'll check to see if it _looks_ like a Redux store first.
3282 - // This allows us to pass through a `store` prop that is just a plain value.
3283 -
3284 - const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
3285 - const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
3286 -
3287 - if ( true && !didStoreComeFromProps && !didStoreComeFromContext) {
3288 - 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.`);
3289 - } // Based on the previous check, one of these must be true
3290 -
3291 -
3292 - const store = didStoreComeFromProps ? props.store : contextValue.store;
3293 - const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
3294 - const childPropsSelector = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3295 - // The child props selector needs the store reference as an input.
3296 - // Re-create this selector whenever the store changes.
3297 - return (0,_connect_selectorFactory__WEBPACK_IMPORTED_MODULE_5__["default"])(store.dispatch, selectorFactoryOptions);
3298 - }, [store]);
3299 - const [subscription, notifyNestedSubs] = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3300 - if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
3301 - // connected to the store via props shouldn't use subscription from context, or vice versa.
3302 -
3303 - 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
3304 - // the middle of the notification loop, where `subscription` will then be null. This can
3305 - // probably be avoided if Subscription's listeners logic is changed to not call listeners
3306 - // that have been unsubscribed in the middle of the notification loop.
3307 -
3308 - const notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
3309 - return [subscription, notifyNestedSubs];
3310 - }, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
3311 - // and memoize that value to avoid unnecessary context updates.
3312 -
3313 - const overriddenContextValue = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3314 - if (didStoreComeFromProps) {
3315 - // This component is directly subscribed to a store from props.
3316 - // We don't want descendants reading from this store - pass down whatever
3317 - // the existing context value is from the nearest connected ancestor.
3318 - return contextValue;
3319 - } // Otherwise, put this component's subscription instance into context, so that
3320 - // connected descendants won't update until after this component is done
3321 -
3322 -
3323 - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, contextValue, {
3324 - subscription
3325 - });
3326 - }, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
3327 -
3328 - const lastChildProps = react__WEBPACK_IMPORTED_MODULE_3__.useRef();
3329 - const lastWrapperProps = react__WEBPACK_IMPORTED_MODULE_3__.useRef(wrapperProps);
3330 - const childPropsFromStoreUpdate = react__WEBPACK_IMPORTED_MODULE_3__.useRef();
3331 - const renderIsScheduled = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
3332 - const isProcessingDispatch = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
3333 - const isMounted = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
3334 - const latestSubscriptionCallbackError = react__WEBPACK_IMPORTED_MODULE_3__.useRef();
3335 - (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => {
3336 - isMounted.current = true;
3337 - return () => {
3338 - isMounted.current = false;
3339 - };
3340 - }, []);
3341 - const actualChildPropsSelector = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3342 - const selector = () => {
3343 - // Tricky logic here:
3344 - // - This render may have been triggered by a Redux store update that produced new child props
3345 - // - However, we may have gotten new wrapper props after that
3346 - // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
3347 - // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
3348 - // So, we'll use the child props from store update only if the wrapper props are the same as last time.
3349 - if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
3350 - return childPropsFromStoreUpdate.current;
3351 - } // TODO We're reading the store directly in render() here. Bad idea?
3352 - // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
3353 - // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
3354 - // to determine what the child props should be.
3355 -
3356 -
3357 - return childPropsSelector(store.getState(), wrapperProps);
3358 - };
3359 -
3360 - return selector;
3361 - }, [store, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
3362 - // about useLayoutEffect in SSR, so we try to detect environment and fall back to
3363 - // just useEffect instead to avoid the warning, since neither will run anyway.
3364 -
3365 - const subscribeForReact = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3366 - const subscribe = reactListener => {
3367 - if (!subscription) {
3368 - return () => {};
3369 - }
3370 -
3371 - return subscribeUpdates(shouldHandleStateChanges, store, subscription, // @ts-ignore
3372 - childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);
3373 - };
3374 -
3375 - return subscribe;
3376 - }, [subscription]);
3377 - useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs]);
3378 - let actualChildProps;
3379 -
3380 - try {
3381 - actualChildProps = useSyncExternalStore( // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
3382 - subscribeForReact, // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
3383 - // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
3384 - actualChildPropsSelector, getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);
3385 - } catch (err) {
3386 - if (latestSubscriptionCallbackError.current) {
3387 - ;
3388 - err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;
3389 - }
3390 -
3391 - throw err;
3392 - }
3393 -
3394 - (0,_utils_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_10__.useIsomorphicLayoutEffect)(() => {
3395 - latestSubscriptionCallbackError.current = undefined;
3396 - childPropsFromStoreUpdate.current = undefined;
3397 - lastChildProps.current = actualChildProps;
3398 - }); // Now that all that's done, we can finally try to actually render the child component.
3399 - // We memoize the elements for the rendered child component as an optimization.
3400 -
3401 - const renderedWrappedComponent = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3402 - return (
3403 - /*#__PURE__*/
3404 - // @ts-ignore
3405 - react__WEBPACK_IMPORTED_MODULE_3__.createElement(WrappedComponent, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, actualChildProps, {
3406 - ref: reactReduxForwardedRef
3407 - }))
3408 - );
3409 - }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
3410 - // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
3411 -
3412 - const renderedChild = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
3413 - if (shouldHandleStateChanges) {
3414 - // If this component is subscribed to store updates, we need to pass its own
3415 - // subscription instance down to our descendants. That means rendering the same
3416 - // Context instance, and putting a different value into the context.
3417 - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(ContextToUse.Provider, {
3418 - value: overriddenContextValue
3419 - }, renderedWrappedComponent);
3420 - }
3421 -
3422 - return renderedWrappedComponent;
3423 - }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
3424 - return renderedChild;
3425 - }
3426 -
3427 - const _Connect = react__WEBPACK_IMPORTED_MODULE_3__.memo(ConnectFunction);
3428 -
3429 - // Add a hacky cast to get the right output type
3430 - const Connect = _Connect;
3431 - Connect.WrappedComponent = WrappedComponent;
3432 - Connect.displayName = ConnectFunction.displayName = displayName;
3433 -
3434 - if (forwardRef) {
3435 - const _forwarded = react__WEBPACK_IMPORTED_MODULE_3__.forwardRef(function forwardConnectRef(props, ref) {
3436 - // @ts-ignore
3437 - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Connect, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
3438 - reactReduxForwardedRef: ref
3439 - }));
3440 - });
3441 -
3442 - const forwarded = _forwarded;
3443 - forwarded.displayName = displayName;
3444 - forwarded.WrappedComponent = WrappedComponent;
3445 - return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(forwarded, WrappedComponent);
3446 - }
3447 -
3448 - return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(Connect, WrappedComponent);
3449 - };
3450 -
3451 - return wrapWithConnect;
3452 -}
3453 -
3454 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (connect);
3455 -
3456 -/***/ }),
3457 -
3458 -/***/ "../node_modules/react-redux/es/connect/invalidArgFactory.js":
3459 -/*!*******************************************************************!*\
3460 - !*** ../node_modules/react-redux/es/connect/invalidArgFactory.js ***!
3461 - \*******************************************************************/
3462 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3463 -
3464 -"use strict";
3465 -__webpack_require__.r(__webpack_exports__);
3466 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3467 -/* harmony export */ createInvalidArgFactory: () => (/* binding */ createInvalidArgFactory)
3468 -/* harmony export */ });
3469 -function createInvalidArgFactory(arg, name) {
3470 - return (dispatch, options) => {
3471 - throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
3472 - };
3473 -}
3474 -
3475 -/***/ }),
3476 -
3477 -/***/ "../node_modules/react-redux/es/connect/mapDispatchToProps.js":
3478 -/*!********************************************************************!*\
3479 - !*** ../node_modules/react-redux/es/connect/mapDispatchToProps.js ***!
3480 - \********************************************************************/
3481 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3482 -
3483 -"use strict";
3484 -__webpack_require__.r(__webpack_exports__);
3485 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3486 -/* harmony export */ mapDispatchToPropsFactory: () => (/* binding */ mapDispatchToPropsFactory)
3487 -/* harmony export */ });
3488 -/* harmony import */ var _utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/bindActionCreators */ "../node_modules/react-redux/es/utils/bindActionCreators.js");
3489 -/* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrapMapToProps */ "../node_modules/react-redux/es/connect/wrapMapToProps.js");
3490 -/* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./invalidArgFactory */ "../node_modules/react-redux/es/connect/invalidArgFactory.js");
3491 -
3492 -
3493 -
3494 -function mapDispatchToPropsFactory(mapDispatchToProps) {
3495 - return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(dispatch => // @ts-ignore
3496 - (0,_utils_bindActionCreators__WEBPACK_IMPORTED_MODULE_0__["default"])(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsConstant)(dispatch => ({
3497 - dispatch
3498 - })) : typeof mapDispatchToProps === 'function' ? // @ts-ignore
3499 - (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_1__.wrapMapToPropsFunc)(mapDispatchToProps, 'mapDispatchToProps') : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__.createInvalidArgFactory)(mapDispatchToProps, 'mapDispatchToProps');
3500 -}
3501 -
3502 -/***/ }),
3503 -
3504 -/***/ "../node_modules/react-redux/es/connect/mapStateToProps.js":
3505 -/*!*****************************************************************!*\
3506 - !*** ../node_modules/react-redux/es/connect/mapStateToProps.js ***!
3507 - \*****************************************************************/
3508 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3509 -
3510 -"use strict";
3511 -__webpack_require__.r(__webpack_exports__);
3512 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3513 -/* harmony export */ mapStateToPropsFactory: () => (/* binding */ mapStateToPropsFactory)
3514 -/* harmony export */ });
3515 -/* harmony import */ var _wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./wrapMapToProps */ "../node_modules/react-redux/es/connect/wrapMapToProps.js");
3516 -/* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./invalidArgFactory */ "../node_modules/react-redux/es/connect/invalidArgFactory.js");
3517 -
3518 -
3519 -function mapStateToPropsFactory(mapStateToProps) {
3520 - return !mapStateToProps ? (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsConstant)(() => ({})) : typeof mapStateToProps === 'function' ? // @ts-ignore
3521 - (0,_wrapMapToProps__WEBPACK_IMPORTED_MODULE_0__.wrapMapToPropsFunc)(mapStateToProps, 'mapStateToProps') : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_1__.createInvalidArgFactory)(mapStateToProps, 'mapStateToProps');
3522 -}
3523 -
3524 -/***/ }),
3525 -
3526 -/***/ "../node_modules/react-redux/es/connect/mergeProps.js":
3527 -/*!************************************************************!*\
3528 - !*** ../node_modules/react-redux/es/connect/mergeProps.js ***!
3529 - \************************************************************/
3530 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3531 -
3532 -"use strict";
3533 -__webpack_require__.r(__webpack_exports__);
3534 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3535 -/* harmony export */ defaultMergeProps: () => (/* binding */ defaultMergeProps),
3536 -/* harmony export */ mergePropsFactory: () => (/* binding */ mergePropsFactory),
3537 -/* harmony export */ wrapMergePropsFunc: () => (/* binding */ wrapMergePropsFunc)
3538 -/* harmony export */ });
3539 -/* 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");
3540 -/* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "../node_modules/react-redux/es/utils/verifyPlainObject.js");
3541 -/* harmony import */ var _invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./invalidArgFactory */ "../node_modules/react-redux/es/connect/invalidArgFactory.js");
3542 -
3543 -
3544 -
3545 -function defaultMergeProps(stateProps, dispatchProps, ownProps) {
3546 - // @ts-ignore
3547 - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, ownProps, stateProps, dispatchProps);
3548 -}
3549 -function wrapMergePropsFunc(mergeProps) {
3550 - return function initMergePropsProxy(dispatch, {
3551 - displayName,
3552 - areMergedPropsEqual
3553 - }) {
3554 - let hasRunOnce = false;
3555 - let mergedProps;
3556 - return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
3557 - const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3558 -
3559 - if (hasRunOnce) {
3560 - if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
3561 - } else {
3562 - hasRunOnce = true;
3563 - mergedProps = nextMergedProps;
3564 - if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_1__["default"])(mergedProps, displayName, 'mergeProps');
3565 - }
3566 -
3567 - return mergedProps;
3568 - };
3569 - };
3570 -}
3571 -function mergePropsFactory(mergeProps) {
3572 - return !mergeProps ? () => defaultMergeProps : typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : (0,_invalidArgFactory__WEBPACK_IMPORTED_MODULE_2__.createInvalidArgFactory)(mergeProps, 'mergeProps');
3573 -}
3574 -
3575 -/***/ }),
3576 -
3577 -/***/ "../node_modules/react-redux/es/connect/selectorFactory.js":
3578 -/*!*****************************************************************!*\
3579 - !*** ../node_modules/react-redux/es/connect/selectorFactory.js ***!
3580 - \*****************************************************************/
3581 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3582 -
3583 -"use strict";
3584 -__webpack_require__.r(__webpack_exports__);
3585 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3586 -/* harmony export */ "default": () => (/* binding */ finalPropsSelectorFactory),
3587 -/* harmony export */ pureFinalPropsSelectorFactory: () => (/* binding */ pureFinalPropsSelectorFactory)
3588 -/* harmony export */ });
3589 -/* 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");
3590 -/* harmony import */ var _verifySubselectors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./verifySubselectors */ "../node_modules/react-redux/es/connect/verifySubselectors.js");
3591 -
3592 -const _excluded = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
3593 -
3594 -function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {
3595 - areStatesEqual,
3596 - areOwnPropsEqual,
3597 - areStatePropsEqual
3598 -}) {
3599 - let hasRunAtLeastOnce = false;
3600 - let state;
3601 - let ownProps;
3602 - let stateProps;
3603 - let dispatchProps;
3604 - let mergedProps;
3605 -
3606 - function handleFirstCall(firstState, firstOwnProps) {
3607 - state = firstState;
3608 - ownProps = firstOwnProps;
3609 - stateProps = mapStateToProps(state, ownProps);
3610 - dispatchProps = mapDispatchToProps(dispatch, ownProps);
3611 - mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3612 - hasRunAtLeastOnce = true;
3613 - return mergedProps;
3614 - }
3615 -
3616 - function handleNewPropsAndNewState() {
3617 - stateProps = mapStateToProps(state, ownProps);
3618 - if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
3619 - mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3620 - return mergedProps;
3621 - }
3622 -
3623 - function handleNewProps() {
3624 - if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
3625 - if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
3626 - mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3627 - return mergedProps;
3628 - }
3629 -
3630 - function handleNewState() {
3631 - const nextStateProps = mapStateToProps(state, ownProps);
3632 - const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
3633 - stateProps = nextStateProps;
3634 - if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3635 - return mergedProps;
3636 - }
3637 -
3638 - function handleSubsequentCalls(nextState, nextOwnProps) {
3639 - const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
3640 - const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);
3641 - state = nextState;
3642 - ownProps = nextOwnProps;
3643 - if (propsChanged && stateChanged) return handleNewPropsAndNewState();
3644 - if (propsChanged) return handleNewProps();
3645 - if (stateChanged) return handleNewState();
3646 - return mergedProps;
3647 - }
3648 -
3649 - return function pureFinalPropsSelector(nextState, nextOwnProps) {
3650 - return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
3651 - };
3652 -}
3653 -// TODO: Add more comments
3654 -// The selector returned by selectorFactory will memoize its results,
3655 -// allowing connect's shouldComponentUpdate to return false if final
3656 -// props have not changed.
3657 -function finalPropsSelectorFactory(dispatch, _ref) {
3658 - let {
3659 - initMapStateToProps,
3660 - initMapDispatchToProps,
3661 - initMergeProps
3662 - } = _ref,
3663 - options = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, _excluded);
3664 -
3665 - const mapStateToProps = initMapStateToProps(dispatch, options);
3666 - const mapDispatchToProps = initMapDispatchToProps(dispatch, options);
3667 - const mergeProps = initMergeProps(dispatch, options);
3668 -
3669 - if (true) {
3670 - (0,_verifySubselectors__WEBPACK_IMPORTED_MODULE_1__["default"])(mapStateToProps, mapDispatchToProps, mergeProps);
3671 - }
3672 -
3673 - return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
3674 -}
3675 -
3676 -/***/ }),
3677 -
3678 -/***/ "../node_modules/react-redux/es/connect/verifySubselectors.js":
3679 -/*!********************************************************************!*\
3680 - !*** ../node_modules/react-redux/es/connect/verifySubselectors.js ***!
3681 - \********************************************************************/
3682 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3683 -
3684 -"use strict";
3685 -__webpack_require__.r(__webpack_exports__);
3686 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3687 -/* harmony export */ "default": () => (/* binding */ verifySubselectors)
3688 -/* harmony export */ });
3689 -/* harmony import */ var _utils_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/warning */ "../node_modules/react-redux/es/utils/warning.js");
3690 -
3691 -
3692 -function verify(selector, methodName) {
3693 - if (!selector) {
3694 - throw new Error(`Unexpected value for ${methodName} in connect.`);
3695 - } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
3696 - if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
3697 - (0,_utils_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
3698 - }
3699 - }
3700 -}
3701 -
3702 -function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {
3703 - verify(mapStateToProps, 'mapStateToProps');
3704 - verify(mapDispatchToProps, 'mapDispatchToProps');
3705 - verify(mergeProps, 'mergeProps');
3706 -}
3707 -
3708 -/***/ }),
3709 -
3710 -/***/ "../node_modules/react-redux/es/connect/wrapMapToProps.js":
3711 -/*!****************************************************************!*\
3712 - !*** ../node_modules/react-redux/es/connect/wrapMapToProps.js ***!
3713 - \****************************************************************/
3714 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3715 -
3716 -"use strict";
3717 -__webpack_require__.r(__webpack_exports__);
3718 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3719 -/* harmony export */ getDependsOnOwnProps: () => (/* binding */ getDependsOnOwnProps),
3720 -/* harmony export */ wrapMapToPropsConstant: () => (/* binding */ wrapMapToPropsConstant),
3721 -/* harmony export */ wrapMapToPropsFunc: () => (/* binding */ wrapMapToPropsFunc)
3722 -/* harmony export */ });
3723 -/* harmony import */ var _utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/verifyPlainObject */ "../node_modules/react-redux/es/utils/verifyPlainObject.js");
3724 -
3725 -function wrapMapToPropsConstant( // * Note:
3726 -// It seems that the dispatch argument
3727 -// could be a dispatch function in some cases (ex: whenMapDispatchToPropsIsMissing)
3728 -// and a state object in some others (ex: whenMapStateToPropsIsMissing)
3729 -// eslint-disable-next-line no-unused-vars
3730 -getConstant) {
3731 - return function initConstantSelector(dispatch) {
3732 - const constant = getConstant(dispatch);
3733 -
3734 - function constantSelector() {
3735 - return constant;
3736 - }
3737 -
3738 - constantSelector.dependsOnOwnProps = false;
3739 - return constantSelector;
3740 - };
3741 -} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
3742 -// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
3743 -// whether mapToProps needs to be invoked when props have changed.
3744 -//
3745 -// A length of one signals that mapToProps does not depend on props from the parent component.
3746 -// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
3747 -// therefore not reporting its length accurately..
3748 -// TODO Can this get pulled out so that we can subscribe directly to the store if we don't need ownProps?
3749 -
3750 -function getDependsOnOwnProps(mapToProps) {
3751 - return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
3752 -} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
3753 -// this function wraps mapToProps in a proxy function which does several things:
3754 -//
3755 -// * Detects whether the mapToProps function being called depends on props, which
3756 -// is used by selectorFactory to decide if it should reinvoke on props changes.
3757 -//
3758 -// * On first call, handles mapToProps if returns another function, and treats that
3759 -// new function as the true mapToProps for subsequent calls.
3760 -//
3761 -// * On first call, verifies the first result is a plain object, in order to warn
3762 -// the developer that their mapToProps function is not returning a valid result.
3763 -//
3764 -
3765 -function wrapMapToPropsFunc(mapToProps, methodName) {
3766 - return function initProxySelector(dispatch, {
3767 - displayName
3768 - }) {
3769 - const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
3770 - return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, undefined);
3771 - }; // allow detectFactoryAndVerify to get ownProps
3772 -
3773 -
3774 - proxy.dependsOnOwnProps = true;
3775 -
3776 - proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
3777 - proxy.mapToProps = mapToProps;
3778 - proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
3779 - let props = proxy(stateOrDispatch, ownProps);
3780 -
3781 - if (typeof props === 'function') {
3782 - proxy.mapToProps = props;
3783 - proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
3784 - props = proxy(stateOrDispatch, ownProps);
3785 - }
3786 -
3787 - if (true) (0,_utils_verifyPlainObject__WEBPACK_IMPORTED_MODULE_0__["default"])(props, displayName, methodName);
3788 - return props;
3789 - };
3790 -
3791 - return proxy;
3792 - };
3793 -}
3794 -
3795 -/***/ }),
3796 -
3797 -/***/ "../node_modules/react-redux/es/exports.js":
3798 -/*!*************************************************!*\
3799 - !*** ../node_modules/react-redux/es/exports.js ***!
3800 - \*************************************************/
3801 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3802 -
3803 -"use strict";
3804 -__webpack_require__.r(__webpack_exports__);
3805 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3806 -/* harmony export */ Provider: () => (/* reexport safe */ _components_Provider__WEBPACK_IMPORTED_MODULE_0__["default"]),
3807 -/* harmony export */ ReactReduxContext: () => (/* reexport safe */ _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext),
3808 -/* harmony export */ connect: () => (/* reexport safe */ _components_connect__WEBPACK_IMPORTED_MODULE_1__["default"]),
3809 -/* harmony export */ createDispatchHook: () => (/* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__.createDispatchHook),
3810 -/* harmony export */ createSelectorHook: () => (/* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.createSelectorHook),
3811 -/* harmony export */ createStoreHook: () => (/* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__.createStoreHook),
3812 -/* harmony export */ shallowEqual: () => (/* reexport safe */ _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_6__["default"]),
3813 -/* harmony export */ useDispatch: () => (/* reexport safe */ _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__.useDispatch),
3814 -/* harmony export */ useSelector: () => (/* reexport safe */ _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.useSelector),
3815 -/* harmony export */ useStore: () => (/* reexport safe */ _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__.useStore)
3816 -/* harmony export */ });
3817 -/* harmony import */ var _components_Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Provider */ "../node_modules/react-redux/es/components/Provider.js");
3818 -/* harmony import */ var _components_connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/connect */ "../node_modules/react-redux/es/components/connect.js");
3819 -/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Context */ "../node_modules/react-redux/es/components/Context.js");
3820 -/* harmony import */ var _hooks_useDispatch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hooks/useDispatch */ "../node_modules/react-redux/es/hooks/useDispatch.js");
3821 -/* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useSelector */ "../node_modules/react-redux/es/hooks/useSelector.js");
3822 -/* harmony import */ var _hooks_useStore__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useStore */ "../node_modules/react-redux/es/hooks/useStore.js");
3823 -/* harmony import */ var _utils_shallowEqual__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/shallowEqual */ "../node_modules/react-redux/es/utils/shallowEqual.js");
3824 -/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./types */ "../node_modules/react-redux/es/types.js");
3825 -
3826 -
3827 -
3828 -
3829 -
3830 -
3831 -
3832 -
3833 -
3834 -
3835 -/***/ }),
3836 -
3837 -/***/ "../node_modules/react-redux/es/hooks/useDispatch.js":
3838 -/*!***********************************************************!*\
3839 - !*** ../node_modules/react-redux/es/hooks/useDispatch.js ***!
3840 - \***********************************************************/
3841 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3842 -
3843 -"use strict";
3844 -__webpack_require__.r(__webpack_exports__);
3845 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3846 -/* harmony export */ createDispatchHook: () => (/* binding */ createDispatchHook),
3847 -/* harmony export */ useDispatch: () => (/* binding */ useDispatch)
3848 -/* harmony export */ });
3849 -/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Context */ "../node_modules/react-redux/es/components/Context.js");
3850 -/* harmony import */ var _useStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useStore */ "../node_modules/react-redux/es/hooks/useStore.js");
3851 -
3852 -
3853 -/**
3854 - * Hook factory, which creates a `useDispatch` hook bound to a given context.
3855 - *
3856 - * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3857 - * @returns {Function} A `useDispatch` hook bound to the specified context.
3858 - */
3859 -
3860 -function createDispatchHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext) {
3861 - const useStore = // @ts-ignore
3862 - context === _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext ? _useStore__WEBPACK_IMPORTED_MODULE_1__.useStore : (0,_useStore__WEBPACK_IMPORTED_MODULE_1__.createStoreHook)(context);
3863 - return function useDispatch() {
3864 - const store = useStore(); // @ts-ignore
3865 -
3866 - return store.dispatch;
3867 - };
3868 -}
3869 -/**
3870 - * A hook to access the redux `dispatch` function.
3871 - *
3872 - * @returns {any|function} redux store's `dispatch` function
3873 - *
3874 - * @example
3875 - *
3876 - * import React, { useCallback } from 'react'
3877 - * import { useDispatch } from 'react-redux'
3878 - *
3879 - * export const CounterComponent = ({ value }) => {
3880 - * const dispatch = useDispatch()
3881 - * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
3882 - * return (
3883 - * <div>
3884 - * <span>{value}</span>
3885 - * <button onClick={increaseCounter}>Increase counter</button>
3886 - * </div>
3887 - * )
3888 - * }
3889 - */
3890 -
3891 -const useDispatch = /*#__PURE__*/createDispatchHook();
3892 -
3893 -/***/ }),
3894 -
3895 -/***/ "../node_modules/react-redux/es/hooks/useReduxContext.js":
3896 -/*!***************************************************************!*\
3897 - !*** ../node_modules/react-redux/es/hooks/useReduxContext.js ***!
3898 - \***************************************************************/
3899 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3900 -
3901 -"use strict";
3902 -__webpack_require__.r(__webpack_exports__);
3903 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3904 -/* harmony export */ createReduxContextHook: () => (/* binding */ createReduxContextHook),
3905 -/* harmony export */ useReduxContext: () => (/* binding */ useReduxContext)
3906 -/* harmony export */ });
3907 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3908 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3909 -/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Context */ "../node_modules/react-redux/es/components/Context.js");
3910 -
3911 -
3912 -
3913 -/**
3914 - * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
3915 - * hook that you should usually not need to call directly.
3916 - *
3917 - * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3918 - * @returns {Function} A `useReduxContext` hook bound to the specified context.
3919 - */
3920 -function createReduxContextHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_1__.ReactReduxContext) {
3921 - return function useReduxContext() {
3922 - const contextValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(context);
3923 -
3924 - if ( true && !contextValue) {
3925 - throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');
3926 - }
3927 -
3928 - return contextValue;
3929 - };
3930 -}
3931 -/**
3932 - * A hook to access the value of the `ReactReduxContext`. This is a low-level
3933 - * hook that you should usually not need to call directly.
3934 - *
3935 - * @returns {any} the value of the `ReactReduxContext`
3936 - *
3937 - * @example
3938 - *
3939 - * import React from 'react'
3940 - * import { useReduxContext } from 'react-redux'
3941 - *
3942 - * export const CounterComponent = () => {
3943 - * const { store } = useReduxContext()
3944 - * return <div>{store.getState()}</div>
3945 - * }
3946 - */
3947 -
3948 -const useReduxContext = /*#__PURE__*/createReduxContextHook();
3949 -
3950 -/***/ }),
3951 -
3952 -/***/ "../node_modules/react-redux/es/hooks/useSelector.js":
3953 -/*!***********************************************************!*\
3954 - !*** ../node_modules/react-redux/es/hooks/useSelector.js ***!
3955 - \***********************************************************/
3956 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3957 -
3958 -"use strict";
3959 -__webpack_require__.r(__webpack_exports__);
3960 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
3961 -/* harmony export */ createSelectorHook: () => (/* binding */ createSelectorHook),
3962 -/* harmony export */ initializeUseSelector: () => (/* binding */ initializeUseSelector),
3963 -/* harmony export */ useSelector: () => (/* binding */ useSelector)
3964 -/* harmony export */ });
3965 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3966 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3967 -/* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useReduxContext */ "../node_modules/react-redux/es/hooks/useReduxContext.js");
3968 -/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/Context */ "../node_modules/react-redux/es/components/Context.js");
3969 -/* harmony import */ var _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/useSyncExternalStore */ "../node_modules/react-redux/es/utils/useSyncExternalStore.js");
3970 -
3971 -
3972 -
3973 -
3974 -let useSyncExternalStoreWithSelector = _utils_useSyncExternalStore__WEBPACK_IMPORTED_MODULE_3__.notInitialized;
3975 -const initializeUseSelector = fn => {
3976 - useSyncExternalStoreWithSelector = fn;
3977 -};
3978 -
3979 -const refEquality = (a, b) => a === b;
3980 -/**
3981 - * Hook factory, which creates a `useSelector` hook bound to a given context.
3982 - *
3983 - * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3984 - * @returns {Function} A `useSelector` hook bound to the specified context.
3985 - */
3986 -
3987 -
3988 -function createSelectorHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext) {
3989 - const useReduxContext = context === _components_Context__WEBPACK_IMPORTED_MODULE_2__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_1__.useReduxContext : (0,_useReduxContext__WEBPACK_IMPORTED_MODULE_1__.createReduxContextHook)(context);
3990 - return function useSelector(selector, equalityFnOrOptions = {}) {
3991 - const {
3992 - equalityFn = refEquality,
3993 - stabilityCheck = undefined,
3994 - noopCheck = undefined
3995 - } = typeof equalityFnOrOptions === 'function' ? {
3996 - equalityFn: equalityFnOrOptions
3997 - } : equalityFnOrOptions;
3998 -
3999 - if (true) {
4000 - if (!selector) {
4001 - throw new Error(`You must pass a selector to useSelector`);
4002 - }
4003 -
4004 - if (typeof selector !== 'function') {
4005 - throw new Error(`You must pass a function as a selector to useSelector`);
4006 - }
4007 -
4008 - if (typeof equalityFn !== 'function') {
4009 - throw new Error(`You must pass a function as an equality function to useSelector`);
4010 - }
4011 - }
4012 -
4013 - const {
4014 - store,
4015 - subscription,
4016 - getServerState,
4017 - stabilityCheck: globalStabilityCheck,
4018 - noopCheck: globalNoopCheck
4019 - } = useReduxContext();
4020 - const firstRun = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);
4021 - const wrappedSelector = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)({
4022 - [selector.name](state) {
4023 - const selected = selector(state);
4024 -
4025 - if (true) {
4026 - const finalStabilityCheck = typeof stabilityCheck === 'undefined' ? globalStabilityCheck : stabilityCheck;
4027 -
4028 - if (finalStabilityCheck === 'always' || finalStabilityCheck === 'once' && firstRun.current) {
4029 - const toCompare = selector(state);
4030 -
4031 - if (!equalityFn(selected, toCompare)) {
4032 - let stack = undefined;
4033 -
4034 - try {
4035 - throw new Error();
4036 - } catch (e) {
4037 - ;
4038 - ({
4039 - stack
4040 - } = e);
4041 - }
4042 -
4043 - 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', {
4044 - state,
4045 - selected,
4046 - selected2: toCompare,
4047 - stack
4048 - });
4049 - }
4050 - }
4051 -
4052 - const finalNoopCheck = typeof noopCheck === 'undefined' ? globalNoopCheck : noopCheck;
4053 -
4054 - if (finalNoopCheck === 'always' || finalNoopCheck === 'once' && firstRun.current) {
4055 - // @ts-ignore
4056 - if (selected === state) {
4057 - let stack = undefined;
4058 -
4059 - try {
4060 - throw new Error();
4061 - } catch (e) {
4062 - ;
4063 - ({
4064 - stack
4065 - } = e);
4066 - }
4067 -
4068 - 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.', {
4069 - stack
4070 - });
4071 - }
4072 - }
4073 -
4074 - if (firstRun.current) firstRun.current = false;
4075 - }
4076 -
4077 - return selected;
4078 - }
4079 -
4080 - }[selector.name], [selector, globalStabilityCheck, stabilityCheck]);
4081 - const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);
4082 - (0,react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue)(selectedState);
4083 - return selectedState;
4084 - };
4085 -}
4086 -/**
4087 - * A hook to access the redux store's state. This hook takes a selector function
4088 - * as an argument. The selector is called with the store state.
4089 - *
4090 - * This hook takes an optional equality comparison function as the second parameter
4091 - * that allows you to customize the way the selected state is compared to determine
4092 - * whether the component needs to be re-rendered.
4093 - *
4094 - * @param {Function} selector the selector function
4095 - * @param {Function=} equalityFn the function that will be used to determine equality
4096 - *
4097 - * @returns {any} the selected state
4098 - *
4099 - * @example
4100 - *
4101 - * import React from 'react'
4102 - * import { useSelector } from 'react-redux'
4103 - *
4104 - * export const CounterComponent = () => {
4105 - * const counter = useSelector(state => state.counter)
4106 - * return <div>{counter}</div>
4107 - * }
4108 - */
4109 -
4110 -const useSelector = /*#__PURE__*/createSelectorHook();
4111 -
4112 -/***/ }),
4113 -
4114 -/***/ "../node_modules/react-redux/es/hooks/useStore.js":
4115 -/*!********************************************************!*\
4116 - !*** ../node_modules/react-redux/es/hooks/useStore.js ***!
4117 - \********************************************************/
4118 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4119 -
4120 -"use strict";
4121 -__webpack_require__.r(__webpack_exports__);
4122 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4123 -/* harmony export */ createStoreHook: () => (/* binding */ createStoreHook),
4124 -/* harmony export */ useStore: () => (/* binding */ useStore)
4125 -/* harmony export */ });
4126 -/* harmony import */ var _components_Context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Context */ "../node_modules/react-redux/es/components/Context.js");
4127 -/* harmony import */ var _useReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useReduxContext */ "../node_modules/react-redux/es/hooks/useReduxContext.js");
4128 -
4129 -
4130 -/**
4131 - * Hook factory, which creates a `useStore` hook bound to a given context.
4132 - *
4133 - * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4134 - * @returns {Function} A `useStore` hook bound to the specified context.
4135 - */
4136 -
4137 -function createStoreHook(context = _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext) {
4138 - const useReduxContext = // @ts-ignore
4139 - context === _components_Context__WEBPACK_IMPORTED_MODULE_0__.ReactReduxContext ? _useReduxContext__WEBPACK_IMPORTED_MODULE_1__.useReduxContext : // @ts-ignore
4140 - (0,_useReduxContext__WEBPACK_IMPORTED_MODULE_1__.createReduxContextHook)(context);
4141 - return function useStore() {
4142 - const {
4143 - store
4144 - } = useReduxContext(); // @ts-ignore
4145 -
4146 - return store;
4147 - };
4148 -}
4149 -/**
4150 - * A hook to access the redux store.
4151 - *
4152 - * @returns {any} the redux store
4153 - *
4154 - * @example
4155 - *
4156 - * import React from 'react'
4157 - * import { useStore } from 'react-redux'
4158 - *
4159 - * export const ExampleComponent = () => {
4160 - * const store = useStore()
4161 - * return <div>{store.getState()}</div>
4162 - * }
4163 - */
4164 -
4165 -const useStore = /*#__PURE__*/createStoreHook();
4166 -
4167 -/***/ }),
4168 -
4169 -/***/ "../node_modules/react-redux/es/index.js":
4170 -/*!***********************************************!*\
4171 - !*** ../node_modules/react-redux/es/index.js ***!
4172 - \***********************************************/
4173 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4174 -
4175 -"use strict";
4176 -__webpack_require__.r(__webpack_exports__);
4177 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4178 -/* harmony export */ Provider: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.Provider),
4179 -/* harmony export */ ReactReduxContext: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.ReactReduxContext),
4180 -/* harmony export */ batch: () => (/* reexport safe */ _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates),
4181 -/* harmony export */ connect: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.connect),
4182 -/* harmony export */ createDispatchHook: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createDispatchHook),
4183 -/* harmony export */ createSelectorHook: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createSelectorHook),
4184 -/* harmony export */ createStoreHook: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.createStoreHook),
4185 -/* harmony export */ shallowEqual: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.shallowEqual),
4186 -/* harmony export */ useDispatch: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useDispatch),
4187 -/* harmony export */ useSelector: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useSelector),
4188 -/* harmony export */ useStore: () => (/* reexport safe */ _exports__WEBPACK_IMPORTED_MODULE_6__.useStore)
4189 -/* harmony export */ });
4190 -/* 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");
4191 -/* 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");
4192 -/* harmony import */ var _utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/reactBatchedUpdates */ "../node_modules/react-redux/es/utils/reactBatchedUpdates.js");
4193 -/* harmony import */ var _utils_batch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/batch */ "../node_modules/react-redux/es/utils/batch.js");
4194 -/* harmony import */ var _hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useSelector */ "../node_modules/react-redux/es/hooks/useSelector.js");
4195 -/* harmony import */ var _components_connect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/connect */ "../node_modules/react-redux/es/components/connect.js");
4196 -/* harmony import */ var _exports__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./exports */ "../node_modules/react-redux/es/exports.js");
4197 -// The primary entry point assumes we're working with standard ReactDOM/RN, but
4198 -// older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).
4199 -// Because of that, the useSyncExternalStore compat shim is needed.
4200 -
4201 -
4202 -
4203 -
4204 -
4205 -
4206 -(0,_hooks_useSelector__WEBPACK_IMPORTED_MODULE_4__.initializeUseSelector)(use_sync_external_store_shim_with_selector__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStoreWithSelector);
4207 -(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
4208 -// with standard React renderers (ReactDOM, React Native)
4209 -
4210 -(0,_utils_batch__WEBPACK_IMPORTED_MODULE_3__.setBatch)(_utils_reactBatchedUpdates__WEBPACK_IMPORTED_MODULE_2__.unstable_batchedUpdates);
4211 -
4212 -
4213 -
4214 -/***/ }),
4215 -
4216 -/***/ "../node_modules/react-redux/es/types.js":
4217 -/*!***********************************************!*\
4218 - !*** ../node_modules/react-redux/es/types.js ***!
4219 - \***********************************************/
4220 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4221 -
4222 -"use strict";
4223 -__webpack_require__.r(__webpack_exports__);
4224 -
4225 -
4226 -/***/ }),
4227 -
4228 -/***/ "../node_modules/react-redux/es/utils/Subscription.js":
4229 -/*!************************************************************!*\
4230 - !*** ../node_modules/react-redux/es/utils/Subscription.js ***!
4231 - \************************************************************/
4232 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4233 -
4234 -"use strict";
4235 -__webpack_require__.r(__webpack_exports__);
4236 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4237 -/* harmony export */ createSubscription: () => (/* binding */ createSubscription)
4238 -/* harmony export */ });
4239 -/* harmony import */ var _batch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./batch */ "../node_modules/react-redux/es/utils/batch.js");
4240 - // encapsulates the subscription logic for connecting a component to the redux store, as
4241 -// well as nesting subscriptions of descendant components, so that we can ensure the
4242 -// ancestor components re-render before descendants
4243 -
4244 -function createListenerCollection() {
4245 - const batch = (0,_batch__WEBPACK_IMPORTED_MODULE_0__.getBatch)();
4246 - let first = null;
4247 - let last = null;
4248 - return {
4249 - clear() {
4250 - first = null;
4251 - last = null;
4252 - },
4253 -
4254 - notify() {
4255 - batch(() => {
4256 - let listener = first;
4257 -
4258 - while (listener) {
4259 - listener.callback();
4260 - listener = listener.next;
4261 - }
4262 - });
4263 - },
4264 -
4265 - get() {
4266 - let listeners = [];
4267 - let listener = first;
4268 -
4269 - while (listener) {
4270 - listeners.push(listener);
4271 - listener = listener.next;
4272 - }
4273 -
4274 - return listeners;
4275 - },
4276 -
4277 - subscribe(callback) {
4278 - let isSubscribed = true;
4279 - let listener = last = {
4280 - callback,
4281 - next: null,
4282 - prev: last
4283 - };
4284 -
4285 - if (listener.prev) {
4286 - listener.prev.next = listener;
4287 - } else {
4288 - first = listener;
4289 - }
4290 -
4291 - return function unsubscribe() {
4292 - if (!isSubscribed || first === null) return;
4293 - isSubscribed = false;
4294 -
4295 - if (listener.next) {
4296 - listener.next.prev = listener.prev;
4297 - } else {
4298 - last = listener.prev;
4299 - }
4300 -
4301 - if (listener.prev) {
4302 - listener.prev.next = listener.next;
4303 - } else {
4304 - first = listener.next;
4305 - }
4306 - };
4307 - }
4308 -
4309 - };
4310 -}
4311 -
4312 -const nullListeners = {
4313 - notify() {},
4314 -
4315 - get: () => []
4316 -};
4317 -function createSubscription(store, parentSub) {
4318 - let unsubscribe;
4319 - let listeners = nullListeners; // Reasons to keep the subscription active
4320 -
4321 - let subscriptionsAmount = 0; // Is this specific subscription subscribed (or only nested ones?)
4322 -
4323 - let selfSubscribed = false;
4324 -
4325 - function addNestedSub(listener) {
4326 - trySubscribe();
4327 - const cleanupListener = listeners.subscribe(listener); // cleanup nested sub
4328 -
4329 - let removed = false;
4330 - return () => {
4331 - if (!removed) {
4332 - removed = true;
4333 - cleanupListener();
4334 - tryUnsubscribe();
4335 - }
4336 - };
4337 - }
4338 -
4339 - function notifyNestedSubs() {
4340 - listeners.notify();
4341 - }
4342 -
4343 - function handleChangeWrapper() {
4344 - if (subscription.onStateChange) {
4345 - subscription.onStateChange();
4346 - }
4347 - }
4348 -
4349 - function isSubscribed() {
4350 - return selfSubscribed;
4351 - }
4352 -
4353 - function trySubscribe() {
4354 - subscriptionsAmount++;
4355 -
4356 - if (!unsubscribe) {
4357 - unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
4358 - listeners = createListenerCollection();
4359 - }
4360 - }
4361 -
4362 - function tryUnsubscribe() {
4363 - subscriptionsAmount--;
4364 -
4365 - if (unsubscribe && subscriptionsAmount === 0) {
4366 - unsubscribe();
4367 - unsubscribe = undefined;
4368 - listeners.clear();
4369 - listeners = nullListeners;
4370 - }
4371 - }
4372 -
4373 - function trySubscribeSelf() {
4374 - if (!selfSubscribed) {
4375 - selfSubscribed = true;
4376 - trySubscribe();
4377 - }
4378 - }
4379 -
4380 - function tryUnsubscribeSelf() {
4381 - if (selfSubscribed) {
4382 - selfSubscribed = false;
4383 - tryUnsubscribe();
4384 - }
4385 - }
4386 -
4387 - const subscription = {
4388 - addNestedSub,
4389 - notifyNestedSubs,
4390 - handleChangeWrapper,
4391 - isSubscribed,
4392 - trySubscribe: trySubscribeSelf,
4393 - tryUnsubscribe: tryUnsubscribeSelf,
4394 - getListeners: () => listeners
4395 - };
4396 - return subscription;
4397 -}
4398 -
4399 -/***/ }),
4400 -
4401 -/***/ "../node_modules/react-redux/es/utils/batch.js":
4402 -/*!*****************************************************!*\
4403 - !*** ../node_modules/react-redux/es/utils/batch.js ***!
4404 - \*****************************************************/
4405 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4406 -
4407 -"use strict";
4408 -__webpack_require__.r(__webpack_exports__);
4409 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4410 -/* harmony export */ getBatch: () => (/* binding */ getBatch),
4411 -/* harmony export */ setBatch: () => (/* binding */ setBatch)
4412 -/* harmony export */ });
4413 -// Default to a dummy "batch" implementation that just runs the callback
4414 -function defaultNoopBatch(callback) {
4415 - callback();
4416 -}
4417 -
4418 -let batch = defaultNoopBatch; // Allow injecting another batching function later
4419 -
4420 -const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip dealing with ESM bindings
4421 -
4422 -const getBatch = () => batch;
4423 -
4424 -/***/ }),
4425 -
4426 -/***/ "../node_modules/react-redux/es/utils/bindActionCreators.js":
4427 -/*!******************************************************************!*\
4428 - !*** ../node_modules/react-redux/es/utils/bindActionCreators.js ***!
4429 - \******************************************************************/
4430 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4431 -
4432 -"use strict";
4433 -__webpack_require__.r(__webpack_exports__);
4434 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4435 -/* harmony export */ "default": () => (/* binding */ bindActionCreators)
4436 -/* harmony export */ });
4437 -function bindActionCreators(actionCreators, dispatch) {
4438 - const boundActionCreators = {};
4439 -
4440 - for (const key in actionCreators) {
4441 - const actionCreator = actionCreators[key];
4442 -
4443 - if (typeof actionCreator === 'function') {
4444 - boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));
4445 - }
4446 - }
4447 -
4448 - return boundActionCreators;
4449 -}
4450 -
4451 -/***/ }),
4452 -
4453 -/***/ "../node_modules/react-redux/es/utils/isPlainObject.js":
4454 -/*!*************************************************************!*\
4455 - !*** ../node_modules/react-redux/es/utils/isPlainObject.js ***!
4456 - \*************************************************************/
4457 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4458 -
4459 -"use strict";
4460 -__webpack_require__.r(__webpack_exports__);
4461 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4462 -/* harmony export */ "default": () => (/* binding */ isPlainObject)
4463 -/* harmony export */ });
4464 -/**
4465 - * @param {any} obj The object to inspect.
4466 - * @returns {boolean} True if the argument appears to be a plain object.
4467 - */
4468 -function isPlainObject(obj) {
4469 - if (typeof obj !== 'object' || obj === null) return false;
4470 - let proto = Object.getPrototypeOf(obj);
4471 - if (proto === null) return true;
4472 - let baseProto = proto;
4473 -
4474 - while (Object.getPrototypeOf(baseProto) !== null) {
4475 - baseProto = Object.getPrototypeOf(baseProto);
4476 - }
4477 -
4478 - return proto === baseProto;
4479 -}
4480 -
4481 -/***/ }),
4482 -
4483 -/***/ "../node_modules/react-redux/es/utils/reactBatchedUpdates.js":
4484 -/*!*******************************************************************!*\
4485 - !*** ../node_modules/react-redux/es/utils/reactBatchedUpdates.js ***!
4486 - \*******************************************************************/
4487 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4488 -
4489 -"use strict";
4490 -__webpack_require__.r(__webpack_exports__);
4491 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4492 -/* harmony export */ unstable_batchedUpdates: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unstable_batchedUpdates)
4493 -/* harmony export */ });
4494 -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
4495 -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
4496 -
4497 -
4498 -/***/ }),
4499 -
4500 -/***/ "../node_modules/react-redux/es/utils/shallowEqual.js":
4501 -/*!************************************************************!*\
4502 - !*** ../node_modules/react-redux/es/utils/shallowEqual.js ***!
4503 - \************************************************************/
4504 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4505 -
4506 -"use strict";
4507 -__webpack_require__.r(__webpack_exports__);
4508 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4509 -/* harmony export */ "default": () => (/* binding */ shallowEqual)
4510 -/* harmony export */ });
4511 -function is(x, y) {
4512 - if (x === y) {
4513 - return x !== 0 || y !== 0 || 1 / x === 1 / y;
4514 - } else {
4515 - return x !== x && y !== y;
4516 - }
4517 -}
4518 -
4519 -function shallowEqual(objA, objB) {
4520 - if (is(objA, objB)) return true;
4521 -
4522 - if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
4523 - return false;
4524 - }
4525 -
4526 - const keysA = Object.keys(objA);
4527 - const keysB = Object.keys(objB);
4528 - if (keysA.length !== keysB.length) return false;
4529 -
4530 - for (let i = 0; i < keysA.length; i++) {
4531 - if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
4532 - return false;
4533 - }
4534 - }
4535 -
4536 - return true;
4537 -}
4538 -
4539 -/***/ }),
4540 -
4541 -/***/ "../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js":
4542 -/*!*************************************************************************!*\
4543 - !*** ../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js ***!
4544 - \*************************************************************************/
4545 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4546 -
4547 -"use strict";
4548 -__webpack_require__.r(__webpack_exports__);
4549 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4550 -/* harmony export */ canUseDOM: () => (/* binding */ canUseDOM),
4551 -/* harmony export */ useIsomorphicLayoutEffect: () => (/* binding */ useIsomorphicLayoutEffect)
4552 -/* harmony export */ });
4553 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
4554 -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4555 - // React currently throws a warning when using useLayoutEffect on the server.
4556 -// To get around it, we can conditionally useEffect on the server (no-op) and
4557 -// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
4558 -// subscription callback always has the selector from the latest render commit
4559 -// available, otherwise a store update may happen between render and the effect,
4560 -// which may cause missed updates; we also must ensure the store subscription
4561 -// is created synchronously, otherwise a store update may occur before the
4562 -// subscription is created and an inconsistent state may be observed
4563 -// Matches logic in React's `shared/ExecutionEnvironment` file
4564 -
4565 -const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
4566 -const useIsomorphicLayoutEffect = canUseDOM ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
4567 -
4568 -/***/ }),
4569 -
4570 -/***/ "../node_modules/react-redux/es/utils/useSyncExternalStore.js":
4571 -/*!********************************************************************!*\
4572 - !*** ../node_modules/react-redux/es/utils/useSyncExternalStore.js ***!
4573 - \********************************************************************/
4574 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4575 -
4576 -"use strict";
4577 -__webpack_require__.r(__webpack_exports__);
4578 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4579 -/* harmony export */ notInitialized: () => (/* binding */ notInitialized)
4580 -/* harmony export */ });
4581 -const notInitialized = () => {
4582 - throw new Error('uSES not initialized!');
4583 -};
4584 -
4585 -/***/ }),
4586 -
4587 -/***/ "../node_modules/react-redux/es/utils/verifyPlainObject.js":
4588 -/*!*****************************************************************!*\
4589 - !*** ../node_modules/react-redux/es/utils/verifyPlainObject.js ***!
4590 - \*****************************************************************/
4591 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4592 -
4593 -"use strict";
4594 -__webpack_require__.r(__webpack_exports__);
4595 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4596 -/* harmony export */ "default": () => (/* binding */ verifyPlainObject)
4597 -/* harmony export */ });
4598 -/* harmony import */ var _isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isPlainObject */ "../node_modules/react-redux/es/utils/isPlainObject.js");
4599 -/* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./warning */ "../node_modules/react-redux/es/utils/warning.js");
4600 -
4601 -
4602 -function verifyPlainObject(value, displayName, methodName) {
4603 - if (!(0,_isPlainObject__WEBPACK_IMPORTED_MODULE_0__["default"])(value)) {
4604 - (0,_warning__WEBPACK_IMPORTED_MODULE_1__["default"])(`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`);
4605 - }
4606 -}
4607 -
4608 -/***/ }),
4609 -
4610 -/***/ "../node_modules/react-redux/es/utils/warning.js":
4611 -/*!*******************************************************!*\
4612 - !*** ../node_modules/react-redux/es/utils/warning.js ***!
4613 - \*******************************************************/
4614 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4615 -
4616 -"use strict";
4617 -__webpack_require__.r(__webpack_exports__);
4618 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4619 -/* harmony export */ "default": () => (/* binding */ warning)
4620 -/* harmony export */ });
4621 -/**
4622 - * Prints a warning in the console if it exists.
4623 - *
4624 - * @param {String} message The warning message.
4625 - * @returns {void}
4626 - */
4627 -function warning(message) {
4628 - /* eslint-disable no-console */
4629 - if (typeof console !== 'undefined' && typeof console.error === 'function') {
4630 - console.error(message);
4631 - }
4632 - /* eslint-enable no-console */
4633 -
4634 -
4635 - try {
4636 - // This error was thrown as a convenience so that if you enable
4637 - // "break on all exceptions" in your console,
4638 - // it would pause the execution at this line.
4639 - throw new Error(message);
4640 - /* eslint-disable no-empty */
4641 - } catch (e) {}
4642 - /* eslint-enable no-empty */
4643 -
4644 -}
4645 -
4646 -/***/ }),
4647 -
4648 -/***/ "../node_modules/redux-thunk/es/index.js":
4649 -/*!***********************************************!*\
4650 - !*** ../node_modules/redux-thunk/es/index.js ***!
4651 - \***********************************************/
4652 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4653 -
4654 -"use strict";
4655 -__webpack_require__.r(__webpack_exports__);
4656 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4657 -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4658 -/* harmony export */ });
4659 -/** A function that accepts a potential "extra argument" value to be injected later,
4660 - * and returns an instance of the thunk middleware that uses that value
4661 - */
4662 -function createThunkMiddleware(extraArgument) {
4663 - // Standard Redux middleware definition pattern:
4664 - // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4665 - var middleware = function middleware(_ref) {
4666 - var dispatch = _ref.dispatch,
4667 - getState = _ref.getState;
4668 - return function (next) {
4669 - return function (action) {
4670 - // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4671 - // If this "action" is really a function, call it and return the result.
4672 - if (typeof action === 'function') {
4673 - // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4674 - return action(dispatch, getState, extraArgument);
4675 - } // Otherwise, pass the action down the middleware chain as usual
4676 -
4677 -
4678 - return next(action);
4679 - };
4680 - };
4681 - };
4682 -
4683 - return middleware;
4684 -}
4685 -
4686 -var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4687 -// with whatever "extra arg" they want to inject into their thunks
4688 -
4689 -thunk.withExtraArgument = createThunkMiddleware;
4690 -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
4691 -
4692 -/***/ }),
4693 -
4694 -/***/ "../node_modules/redux/es/redux.js":
4695 -/*!*****************************************!*\
4696 - !*** ../node_modules/redux/es/redux.js ***!
4697 - \*****************************************/
4698 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4699 -
4700 -"use strict";
4701 -__webpack_require__.r(__webpack_exports__);
4702 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4703 -/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes),
4704 -/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware),
4705 -/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators),
4706 -/* harmony export */ combineReducers: () => (/* binding */ combineReducers),
4707 -/* harmony export */ compose: () => (/* binding */ compose),
4708 -/* harmony export */ createStore: () => (/* binding */ createStore),
4709 -/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore)
4710 -/* harmony export */ });
4711 -/* 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");
4712 -
4713 -
3553 +//#endregion
3554 +//#region node_modules/react-redux/es/hooks/useReduxContext.js
4714 3555 /**
4715 - * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
4716 - *
4717 - * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
4718 - * during build.
4719 - * @param {number} code
4720 - */
4721 -function formatProdErrorMessage(code) {
4722 - 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. ';
4723 -}
3556 + * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
3557 + * hook that you should usually not need to call directly.
3558 + *
3559 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3560 + * @returns {Function} A `useReduxContext` hook bound to the specified context.
3561 + */
3562 + function createReduxContextHook(context = ReactReduxContext) {
3563 + return function useReduxContext() {
3564 + const contextValue = (0, react.useContext)(context);
3565 + if (!contextValue) throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");
3566 + return contextValue;
3567 + };
3568 + }
3569 + /**
3570 + * A hook to access the value of the `ReactReduxContext`. This is a low-level
3571 + * hook that you should usually not need to call directly.
3572 + *
3573 + * @returns {any} the value of the `ReactReduxContext`
3574 + *
3575 + * @example
3576 + *
3577 + * import React from 'react'
3578 + * import { useReduxContext } from 'react-redux'
3579 + *
3580 + * export const CounterComponent = () => {
3581 + * const { store } = useReduxContext()
3582 + * return <div>{store.getState()}</div>
3583 + * }
3584 + */
3585 + var useReduxContext = /*#__PURE__*/ createReduxContextHook();
4724 3586
4725 -// Inlined version of the `symbol-observable` polyfill
4726 -var $$observable = (function () {
4727 - return typeof Symbol === 'function' && Symbol.observable || '@@observable';
4728 -})();
3587 +//#endregion
3588 +//#region node_modules/react-redux/es/utils/useSyncExternalStore.js
3589 + var notInitialized = () => {
3590 + throw new Error("uSES not initialized!");
3591 + };
4729 3592
4730 -/**
4731 - * These are private action types reserved by Redux.
4732 - * For any unknown actions, you must return the current state.
4733 - * If the current state is undefined, you must return the initial state.
4734 - * Do not reference these action types directly in your code.
4735 - */
4736 -var randomString = function randomString() {
4737 - return Math.random().toString(36).substring(7).split('').join('.');
4738 -};
3593 +//#endregion
3594 +//#region node_modules/react-redux/es/hooks/useSelector.js
3595 + var useSyncExternalStoreWithSelector$1 = notInitialized;
3596 + var initializeUseSelector = (fn) => {
3597 + useSyncExternalStoreWithSelector$1 = fn;
3598 + };
3599 + var refEquality = (a, b) => a === b;
3600 + /**
3601 + * Hook factory, which creates a `useSelector` hook bound to a given context.
3602 + *
3603 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3604 + * @returns {Function} A `useSelector` hook bound to the specified context.
3605 + */
3606 + function createSelectorHook(context = ReactReduxContext) {
3607 + const useReduxContext$2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
3608 + return function useSelector(selector, equalityFnOrOptions = {}) {
3609 + const { equalityFn = refEquality, stabilityCheck = void 0, noopCheck = void 0 } = typeof equalityFnOrOptions === "function" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;
3610 + if (!selector) throw new Error(`You must pass a selector to useSelector`);
3611 + if (typeof selector !== "function") throw new Error(`You must pass a function as a selector to useSelector`);
3612 + if (typeof equalityFn !== "function") throw new Error(`You must pass a function as an equality function to useSelector`);
3613 + const { store, subscription, getServerState, stabilityCheck: globalStabilityCheck, noopCheck: globalNoopCheck } = useReduxContext$2();
3614 + const firstRun = (0, react.useRef)(true);
3615 + const wrappedSelector = (0, react.useCallback)({ [selector.name](state) {
3616 + const selected = selector(state);
3617 + {
3618 + const finalStabilityCheck = typeof stabilityCheck === "undefined" ? globalStabilityCheck : stabilityCheck;
3619 + if (finalStabilityCheck === "always" || finalStabilityCheck === "once" && firstRun.current) {
3620 + const toCompare = selector(state);
3621 + if (!equalityFn(selected, toCompare)) {
3622 + let stack = void 0;
3623 + try {
3624 + throw new Error();
3625 + } catch (e) {
3626 + ({stack} = e);
3627 + }
3628 + 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", {
3629 + state,
3630 + selected,
3631 + selected2: toCompare,
3632 + stack
3633 + });
3634 + }
3635 + }
3636 + const finalNoopCheck = typeof noopCheck === "undefined" ? globalNoopCheck : noopCheck;
3637 + if (finalNoopCheck === "always" || finalNoopCheck === "once" && firstRun.current) {
3638 + if (selected === state) {
3639 + let stack = void 0;
3640 + try {
3641 + throw new Error();
3642 + } catch (e) {
3643 + ({stack} = e);
3644 + }
3645 + 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.", { stack });
3646 + }
3647 + }
3648 + if (firstRun.current) firstRun.current = false;
3649 + }
3650 + return selected;
3651 + } }[selector.name], [
3652 + selector,
3653 + globalStabilityCheck,
3654 + stabilityCheck
3655 + ]);
3656 + const selectedState = useSyncExternalStoreWithSelector$1(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);
3657 + (0, react.useDebugValue)(selectedState);
3658 + return selectedState;
3659 + };
3660 + }
3661 + /**
3662 + * A hook to access the redux store's state. This hook takes a selector function
3663 + * as an argument. The selector is called with the store state.
3664 + *
3665 + * This hook takes an optional equality comparison function as the second parameter
3666 + * that allows you to customize the way the selected state is compared to determine
3667 + * whether the component needs to be re-rendered.
3668 + *
3669 + * @param {Function} selector the selector function
3670 + * @param {Function=} equalityFn the function that will be used to determine equality
3671 + *
3672 + * @returns {any} the selected state
3673 + *
3674 + * @example
3675 + *
3676 + * import React from 'react'
3677 + * import { useSelector } from 'react-redux'
3678 + *
3679 + * export const CounterComponent = () => {
3680 + * const counter = useSelector(state => state.counter)
3681 + * return <div>{counter}</div>
3682 + * }
3683 + */
3684 + var useSelector = /*#__PURE__*/ createSelectorHook();
4739 3685
4740 -var ActionTypes = {
4741 - INIT: "@@redux/INIT" + randomString(),
4742 - REPLACE: "@@redux/REPLACE" + randomString(),
4743 - PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
4744 - return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
4745 - }
4746 -};
3686 +//#endregion
3687 +//#region node_modules/@babel/runtime/helpers/esm/extends.js
3688 + function _extends() {
3689 + return _extends = Object.assign ? Object.assign.bind() : function(n) {
3690 + for (var e = 1; e < arguments.length; e++) {
3691 + var t = arguments[e];
3692 + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3693 + }
3694 + return n;
3695 + }, _extends.apply(null, arguments);
3696 + }
4747 3697
4748 -/**
4749 - * @param {any} obj The object to inspect.
4750 - * @returns {boolean} True if the argument appears to be a plain object.
4751 - */
4752 -function isPlainObject(obj) {
4753 - if (typeof obj !== 'object' || obj === null) return false;
4754 - var proto = obj;
3698 +//#endregion
3699 +//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
3700 + function _objectWithoutPropertiesLoose(r, e) {
3701 + if (null == r) return {};
3702 + var t = {};
3703 + for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3704 + if (-1 !== e.indexOf(n)) continue;
3705 + t[n] = r[n];
3706 + }
3707 + return t;
3708 + }
4755 3709
4756 - while (Object.getPrototypeOf(proto) !== null) {
4757 - proto = Object.getPrototypeOf(proto);
4758 - }
3710 +//#endregion
3711 +//#region node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
3712 +/** @license React v16.13.1
3713 + * react-is.development.js
3714 + *
3715 + * Copyright (c) Facebook, Inc. and its affiliates.
3716 + *
3717 + * This source code is licensed under the MIT license found in the
3718 + * LICENSE file in the root directory of this source tree.
3719 + */
3720 + var require_react_is_development$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3721 + (function() {
3722 + "use strict";
3723 + var hasSymbol = typeof Symbol === "function" && Symbol.for;
3724 + var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
3725 + var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
3726 + var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
3727 + var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
3728 + var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
3729 + var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
3730 + var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
3731 + var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
3732 + var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
3733 + var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
3734 + var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
3735 + var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
3736 + var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
3737 + var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
3738 + var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
3739 + var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
3740 + var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
3741 + var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
3742 + function isValidElementType(type) {
3743 + return typeof type === "string" || typeof type === "function" || 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);
3744 + }
3745 + function typeOf(object) {
3746 + if (typeof object === "object" && object !== null) {
3747 + var $$typeof = object.$$typeof;
3748 + switch ($$typeof) {
3749 + case REACT_ELEMENT_TYPE:
3750 + var type = object.type;
3751 + switch (type) {
3752 + case REACT_ASYNC_MODE_TYPE:
3753 + case REACT_CONCURRENT_MODE_TYPE:
3754 + case REACT_FRAGMENT_TYPE:
3755 + case REACT_PROFILER_TYPE:
3756 + case REACT_STRICT_MODE_TYPE:
3757 + case REACT_SUSPENSE_TYPE: return type;
3758 + default:
3759 + var $$typeofType = type && type.$$typeof;
3760 + switch ($$typeofType) {
3761 + case REACT_CONTEXT_TYPE:
3762 + case REACT_FORWARD_REF_TYPE:
3763 + case REACT_LAZY_TYPE:
3764 + case REACT_MEMO_TYPE:
3765 + case REACT_PROVIDER_TYPE: return $$typeofType;
3766 + default: return $$typeof;
3767 + }
3768 + }
3769 + case REACT_PORTAL_TYPE: return $$typeof;
3770 + }
3771 + }
3772 + }
3773 + var AsyncMode = REACT_ASYNC_MODE_TYPE;
3774 + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
3775 + var ContextConsumer = REACT_CONTEXT_TYPE;
3776 + var ContextProvider = REACT_PROVIDER_TYPE;
3777 + var Element = REACT_ELEMENT_TYPE;
3778 + var ForwardRef = REACT_FORWARD_REF_TYPE;
3779 + var Fragment = REACT_FRAGMENT_TYPE;
3780 + var Lazy = REACT_LAZY_TYPE;
3781 + var Memo = REACT_MEMO_TYPE;
3782 + var Portal = REACT_PORTAL_TYPE;
3783 + var Profiler = REACT_PROFILER_TYPE;
3784 + var StrictMode = REACT_STRICT_MODE_TYPE;
3785 + var Suspense = REACT_SUSPENSE_TYPE;
3786 + var hasWarnedAboutDeprecatedIsAsyncMode = false;
3787 + function isAsyncMode(object) {
3788 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
3789 + hasWarnedAboutDeprecatedIsAsyncMode = true;
3790 + 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.");
3791 + }
3792 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
3793 + }
3794 + function isConcurrentMode(object) {
3795 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
3796 + }
3797 + function isContextConsumer(object) {
3798 + return typeOf(object) === REACT_CONTEXT_TYPE;
3799 + }
3800 + function isContextProvider(object) {
3801 + return typeOf(object) === REACT_PROVIDER_TYPE;
3802 + }
3803 + function isElement(object) {
3804 + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3805 + }
3806 + function isForwardRef(object) {
3807 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
3808 + }
3809 + function isFragment(object) {
3810 + return typeOf(object) === REACT_FRAGMENT_TYPE;
3811 + }
3812 + function isLazy(object) {
3813 + return typeOf(object) === REACT_LAZY_TYPE;
3814 + }
3815 + function isMemo(object) {
3816 + return typeOf(object) === REACT_MEMO_TYPE;
3817 + }
3818 + function isPortal(object) {
3819 + return typeOf(object) === REACT_PORTAL_TYPE;
3820 + }
3821 + function isProfiler(object) {
3822 + return typeOf(object) === REACT_PROFILER_TYPE;
3823 + }
3824 + function isStrictMode(object) {
3825 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
3826 + }
3827 + function isSuspense(object) {
3828 + return typeOf(object) === REACT_SUSPENSE_TYPE;
3829 + }
3830 + exports.AsyncMode = AsyncMode;
3831 + exports.ConcurrentMode = ConcurrentMode;
3832 + exports.ContextConsumer = ContextConsumer;
3833 + exports.ContextProvider = ContextProvider;
3834 + exports.Element = Element;
3835 + exports.ForwardRef = ForwardRef;
3836 + exports.Fragment = Fragment;
3837 + exports.Lazy = Lazy;
3838 + exports.Memo = Memo;
3839 + exports.Portal = Portal;
3840 + exports.Profiler = Profiler;
3841 + exports.StrictMode = StrictMode;
3842 + exports.Suspense = Suspense;
3843 + exports.isAsyncMode = isAsyncMode;
3844 + exports.isConcurrentMode = isConcurrentMode;
3845 + exports.isContextConsumer = isContextConsumer;
3846 + exports.isContextProvider = isContextProvider;
3847 + exports.isElement = isElement;
3848 + exports.isForwardRef = isForwardRef;
3849 + exports.isFragment = isFragment;
3850 + exports.isLazy = isLazy;
3851 + exports.isMemo = isMemo;
3852 + exports.isPortal = isPortal;
3853 + exports.isProfiler = isProfiler;
3854 + exports.isStrictMode = isStrictMode;
3855 + exports.isSuspense = isSuspense;
3856 + exports.isValidElementType = isValidElementType;
3857 + exports.typeOf = typeOf;
3858 + })();
3859 + }));
4759 3860
4760 - return Object.getPrototypeOf(obj) === proto;
4761 -}
3861 +//#endregion
3862 +//#region node_modules/hoist-non-react-statics/node_modules/react-is/index.js
3863 + var require_react_is$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3864 + module.exports = require_react_is_development$1();
3865 + }));
4762 3866
4763 -// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
4764 -function miniKindOf(val) {
4765 - if (val === void 0) return 'undefined';
4766 - if (val === null) return 'null';
4767 - var type = typeof val;
3867 +//#endregion
3868 +//#region node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
3869 + var require_hoist_non_react_statics_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3870 + var reactIs = require_react_is$1();
3871 + /**
3872 + * Copyright 2015, Yahoo! Inc.
3873 + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
3874 + */
3875 + var REACT_STATICS = {
3876 + childContextTypes: true,
3877 + contextType: true,
3878 + contextTypes: true,
3879 + defaultProps: true,
3880 + displayName: true,
3881 + getDefaultProps: true,
3882 + getDerivedStateFromError: true,
3883 + getDerivedStateFromProps: true,
3884 + mixins: true,
3885 + propTypes: true,
3886 + type: true
3887 + };
3888 + var KNOWN_STATICS = {
3889 + name: true,
3890 + length: true,
3891 + prototype: true,
3892 + caller: true,
3893 + callee: true,
3894 + arguments: true,
3895 + arity: true
3896 + };
3897 + var FORWARD_REF_STATICS = {
3898 + "$$typeof": true,
3899 + render: true,
3900 + defaultProps: true,
3901 + displayName: true,
3902 + propTypes: true
3903 + };
3904 + var MEMO_STATICS = {
3905 + "$$typeof": true,
3906 + compare: true,
3907 + defaultProps: true,
3908 + displayName: true,
3909 + propTypes: true,
3910 + type: true
3911 + };
3912 + var TYPE_STATICS = {};
3913 + TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
3914 + TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
3915 + function getStatics(component) {
3916 + if (reactIs.isMemo(component)) return MEMO_STATICS;
3917 + return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
3918 + }
3919 + var defineProperty = Object.defineProperty;
3920 + var getOwnPropertyNames = Object.getOwnPropertyNames;
3921 + var getOwnPropertySymbols = Object.getOwnPropertySymbols;
3922 + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3923 + var getPrototypeOf = Object.getPrototypeOf;
3924 + var objectPrototype = Object.prototype;
3925 + function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
3926 + if (typeof sourceComponent !== "string") {
3927 + if (objectPrototype) {
3928 + var inheritedComponent = getPrototypeOf(sourceComponent);
3929 + if (inheritedComponent && inheritedComponent !== objectPrototype) hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
3930 + }
3931 + var keys = getOwnPropertyNames(sourceComponent);
3932 + if (getOwnPropertySymbols) keys = keys.concat(getOwnPropertySymbols(sourceComponent));
3933 + var targetStatics = getStatics(targetComponent);
3934 + var sourceStatics = getStatics(sourceComponent);
3935 + for (var i = 0; i < keys.length; ++i) {
3936 + var key = keys[i];
3937 + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
3938 + var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
3939 + try {
3940 + defineProperty(targetComponent, key, descriptor);
3941 + } catch (e) {}
3942 + }
3943 + }
3944 + }
3945 + return targetComponent;
3946 + }
3947 + module.exports = hoistNonReactStatics;
3948 + }));
4768 3949
4769 - switch (type) {
4770 - case 'boolean':
4771 - case 'string':
4772 - case 'number':
4773 - case 'symbol':
4774 - case 'function':
4775 - {
4776 - return type;
4777 - }
4778 - }
4779 -
4780 - if (Array.isArray(val)) return 'array';
4781 - if (isDate(val)) return 'date';
4782 - if (isError(val)) return 'error';
4783 - var constructorName = ctorName(val);
4784 -
4785 - switch (constructorName) {
4786 - case 'Symbol':
4787 - case 'Promise':
4788 - case 'WeakMap':
4789 - case 'WeakSet':
4790 - case 'Map':
4791 - case 'Set':
4792 - return constructorName;
4793 - } // other
4794 -
4795 -
4796 - return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
4797 -}
4798 -
4799 -function ctorName(val) {
4800 - return typeof val.constructor === 'function' ? val.constructor.name : null;
4801 -}
4802 -
4803 -function isError(val) {
4804 - return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
4805 -}
4806 -
4807 -function isDate(val) {
4808 - if (val instanceof Date) return true;
4809 - return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
4810 -}
4811 -
4812 -function kindOf(val) {
4813 - var typeOfVal = typeof val;
4814 -
4815 - if (true) {
4816 - typeOfVal = miniKindOf(val);
4817 - }
4818 -
4819 - return typeOfVal;
4820 -}
4821 -
3950 +//#endregion
3951 +//#region node_modules/react-is/cjs/react-is.development.js
4822 3952 /**
4823 - * @deprecated
4824 - *
4825 - * **We recommend using the `configureStore` method
4826 - * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
4827 - *
4828 - * Redux Toolkit is our recommended approach for writing Redux logic today,
4829 - * including store setup, reducers, data fetching, and more.
4830 - *
4831 - * **For more details, please read this Redux docs page:**
4832 - * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4833 - *
4834 - * `configureStore` from Redux Toolkit is an improved version of `createStore` that
4835 - * simplifies setup and helps avoid common bugs.
4836 - *
4837 - * You should not be using the `redux` core package by itself today, except for learning purposes.
4838 - * The `createStore` method from the core `redux` package will not be removed, but we encourage
4839 - * all users to migrate to using Redux Toolkit for all Redux code.
4840 - *
4841 - * If you want to use `createStore` without this visual deprecation warning, use
4842 - * the `legacy_createStore` import instead:
4843 - *
4844 - * `import { legacy_createStore as createStore} from 'redux'`
4845 - *
4846 - */
3953 + * @license React
3954 + * react-is.development.js
3955 + *
3956 + * Copyright (c) Facebook, Inc. and its affiliates.
3957 + *
3958 + * This source code is licensed under the MIT license found in the
3959 + * LICENSE file in the root directory of this source tree.
3960 + */
3961 + var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
3962 + (function() {
3963 + "use strict";
3964 + var REACT_ELEMENT_TYPE = Symbol.for("react.element");
3965 + var REACT_PORTAL_TYPE = Symbol.for("react.portal");
3966 + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
3967 + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
3968 + var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
3969 + var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
3970 + var REACT_CONTEXT_TYPE = Symbol.for("react.context");
3971 + var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
3972 + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
3973 + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
3974 + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
3975 + var REACT_MEMO_TYPE = Symbol.for("react.memo");
3976 + var REACT_LAZY_TYPE = Symbol.for("react.lazy");
3977 + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
3978 + var enableScopeAPI = false;
3979 + var enableCacheElement = false;
3980 + var enableTransitionTracing = false;
3981 + var enableLegacyHidden = false;
3982 + var enableDebugTracing = false;
3983 + var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
3984 + function isValidElementType(type) {
3985 + if (typeof type === "string" || typeof type === "function") return true;
3986 + 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) return true;
3987 + if (typeof type === "object" && type !== null) {
3988 + 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 || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) return true;
3989 + }
3990 + return false;
3991 + }
3992 + function typeOf(object) {
3993 + if (typeof object === "object" && object !== null) {
3994 + var $$typeof = object.$$typeof;
3995 + switch ($$typeof) {
3996 + case REACT_ELEMENT_TYPE:
3997 + var type = object.type;
3998 + switch (type) {
3999 + case REACT_FRAGMENT_TYPE:
4000 + case REACT_PROFILER_TYPE:
4001 + case REACT_STRICT_MODE_TYPE:
4002 + case REACT_SUSPENSE_TYPE:
4003 + case REACT_SUSPENSE_LIST_TYPE: return type;
4004 + default:
4005 + var $$typeofType = type && type.$$typeof;
4006 + switch ($$typeofType) {
4007 + case REACT_SERVER_CONTEXT_TYPE:
4008 + case REACT_CONTEXT_TYPE:
4009 + case REACT_FORWARD_REF_TYPE:
4010 + case REACT_LAZY_TYPE:
4011 + case REACT_MEMO_TYPE:
4012 + case REACT_PROVIDER_TYPE: return $$typeofType;
4013 + default: return $$typeof;
4014 + }
4015 + }
4016 + case REACT_PORTAL_TYPE: return $$typeof;
4017 + }
4018 + }
4019 + }
4020 + var ContextConsumer = REACT_CONTEXT_TYPE;
4021 + var ContextProvider = REACT_PROVIDER_TYPE;
4022 + var Element = REACT_ELEMENT_TYPE;
4023 + var ForwardRef = REACT_FORWARD_REF_TYPE;
4024 + var Fragment = REACT_FRAGMENT_TYPE;
4025 + var Lazy = REACT_LAZY_TYPE;
4026 + var Memo = REACT_MEMO_TYPE;
4027 + var Portal = REACT_PORTAL_TYPE;
4028 + var Profiler = REACT_PROFILER_TYPE;
4029 + var StrictMode = REACT_STRICT_MODE_TYPE;
4030 + var Suspense = REACT_SUSPENSE_TYPE;
4031 + var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
4032 + var hasWarnedAboutDeprecatedIsAsyncMode = false;
4033 + var hasWarnedAboutDeprecatedIsConcurrentMode = false;
4034 + function isAsyncMode(object) {
4035 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
4036 + hasWarnedAboutDeprecatedIsAsyncMode = true;
4037 + console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
4038 + }
4039 + return false;
4040 + }
4041 + function isConcurrentMode(object) {
4042 + if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
4043 + hasWarnedAboutDeprecatedIsConcurrentMode = true;
4044 + console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
4045 + }
4046 + return false;
4047 + }
4048 + function isContextConsumer(object) {
4049 + return typeOf(object) === REACT_CONTEXT_TYPE;
4050 + }
4051 + function isContextProvider(object) {
4052 + return typeOf(object) === REACT_PROVIDER_TYPE;
4053 + }
4054 + function isElement(object) {
4055 + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4056 + }
4057 + function isForwardRef(object) {
4058 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
4059 + }
4060 + function isFragment(object) {
4061 + return typeOf(object) === REACT_FRAGMENT_TYPE;
4062 + }
4063 + function isLazy(object) {
4064 + return typeOf(object) === REACT_LAZY_TYPE;
4065 + }
4066 + function isMemo(object) {
4067 + return typeOf(object) === REACT_MEMO_TYPE;
4068 + }
4069 + function isPortal(object) {
4070 + return typeOf(object) === REACT_PORTAL_TYPE;
4071 + }
4072 + function isProfiler(object) {
4073 + return typeOf(object) === REACT_PROFILER_TYPE;
4074 + }
4075 + function isStrictMode(object) {
4076 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
4077 + }
4078 + function isSuspense(object) {
4079 + return typeOf(object) === REACT_SUSPENSE_TYPE;
4080 + }
4081 + function isSuspenseList(object) {
4082 + return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
4083 + }
4084 + exports.ContextConsumer = ContextConsumer;
4085 + exports.ContextProvider = ContextProvider;
4086 + exports.Element = Element;
4087 + exports.ForwardRef = ForwardRef;
4088 + exports.Fragment = Fragment;
4089 + exports.Lazy = Lazy;
4090 + exports.Memo = Memo;
4091 + exports.Portal = Portal;
4092 + exports.Profiler = Profiler;
4093 + exports.StrictMode = StrictMode;
4094 + exports.Suspense = Suspense;
4095 + exports.SuspenseList = SuspenseList;
4096 + exports.isAsyncMode = isAsyncMode;
4097 + exports.isConcurrentMode = isConcurrentMode;
4098 + exports.isContextConsumer = isContextConsumer;
4099 + exports.isContextProvider = isContextProvider;
4100 + exports.isElement = isElement;
4101 + exports.isForwardRef = isForwardRef;
4102 + exports.isFragment = isFragment;
4103 + exports.isLazy = isLazy;
4104 + exports.isMemo = isMemo;
4105 + exports.isPortal = isPortal;
4106 + exports.isProfiler = isProfiler;
4107 + exports.isStrictMode = isStrictMode;
4108 + exports.isSuspense = isSuspense;
4109 + exports.isSuspenseList = isSuspenseList;
4110 + exports.isValidElementType = isValidElementType;
4111 + exports.typeOf = typeOf;
4112 + })();
4113 + }));
4847 4114
4848 -function createStore(reducer, preloadedState, enhancer) {
4849 - var _ref2;
4115 +//#endregion
4116 +//#region node_modules/react-is/index.js
4117 + var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4118 + module.exports = require_react_is_development();
4119 + }));
4850 4120
4851 - if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
4852 - 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.');
4853 - }
4854 -
4855 - if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
4856 - enhancer = preloadedState;
4857 - preloadedState = undefined;
4858 - }
4859 -
4860 - if (typeof enhancer !== 'undefined') {
4861 - if (typeof enhancer !== 'function') {
4862 - throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
4863 - }
4864 -
4865 - return enhancer(createStore)(reducer, preloadedState);
4866 - }
4867 -
4868 - if (typeof reducer !== 'function') {
4869 - throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
4870 - }
4871 -
4872 - var currentReducer = reducer;
4873 - var currentState = preloadedState;
4874 - var currentListeners = [];
4875 - var nextListeners = currentListeners;
4876 - var isDispatching = false;
4877 - /**
4878 - * This makes a shallow copy of currentListeners so we can use
4879 - * nextListeners as a temporary list while dispatching.
4880 - *
4881 - * This prevents any bugs around consumers calling
4882 - * subscribe/unsubscribe in the middle of a dispatch.
4883 - */
4884 -
4885 - function ensureCanMutateNextListeners() {
4886 - if (nextListeners === currentListeners) {
4887 - nextListeners = currentListeners.slice();
4888 - }
4889 - }
4890 - /**
4891 - * Reads the state tree managed by the store.
4892 - *
4893 - * @returns {any} The current state tree of your application.
4894 - */
4895 -
4896 -
4897 - function getState() {
4898 - if (isDispatching) {
4899 - 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.');
4900 - }
4901 -
4902 - return currentState;
4903 - }
4904 - /**
4905 - * Adds a change listener. It will be called any time an action is dispatched,
4906 - * and some part of the state tree may potentially have changed. You may then
4907 - * call `getState()` to read the current state tree inside the callback.
4908 - *
4909 - * You may call `dispatch()` from a change listener, with the following
4910 - * caveats:
4911 - *
4912 - * 1. The subscriptions are snapshotted just before every `dispatch()` call.
4913 - * If you subscribe or unsubscribe while the listeners are being invoked, this
4914 - * will not have any effect on the `dispatch()` that is currently in progress.
4915 - * However, the next `dispatch()` call, whether nested or not, will use a more
4916 - * recent snapshot of the subscription list.
4917 - *
4918 - * 2. The listener should not expect to see all state changes, as the state
4919 - * might have been updated multiple times during a nested `dispatch()` before
4920 - * the listener is called. It is, however, guaranteed that all subscribers
4921 - * registered before the `dispatch()` started will be called with the latest
4922 - * state by the time it exits.
4923 - *
4924 - * @param {Function} listener A callback to be invoked on every dispatch.
4925 - * @returns {Function} A function to remove this change listener.
4926 - */
4927 -
4928 -
4929 - function subscribe(listener) {
4930 - if (typeof listener !== 'function') {
4931 - throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
4932 - }
4933 -
4934 - if (isDispatching) {
4935 - 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.');
4936 - }
4937 -
4938 - var isSubscribed = true;
4939 - ensureCanMutateNextListeners();
4940 - nextListeners.push(listener);
4941 - return function unsubscribe() {
4942 - if (!isSubscribed) {
4943 - return;
4944 - }
4945 -
4946 - if (isDispatching) {
4947 - 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.');
4948 - }
4949 -
4950 - isSubscribed = false;
4951 - ensureCanMutateNextListeners();
4952 - var index = nextListeners.indexOf(listener);
4953 - nextListeners.splice(index, 1);
4954 - currentListeners = null;
4955 - };
4956 - }
4957 - /**
4958 - * Dispatches an action. It is the only way to trigger a state change.
4959 - *
4960 - * The `reducer` function, used to create the store, will be called with the
4961 - * current state tree and the given `action`. Its return value will
4962 - * be considered the **next** state of the tree, and the change listeners
4963 - * will be notified.
4964 - *
4965 - * The base implementation only supports plain object actions. If you want to
4966 - * dispatch a Promise, an Observable, a thunk, or something else, you need to
4967 - * wrap your store creating function into the corresponding middleware. For
4968 - * example, see the documentation for the `redux-thunk` package. Even the
4969 - * middleware will eventually dispatch plain object actions using this method.
4970 - *
4971 - * @param {Object} action A plain object representing “what changed”. It is
4972 - * a good idea to keep actions serializable so you can record and replay user
4973 - * sessions, or use the time travelling `redux-devtools`. An action must have
4974 - * a `type` property which may not be `undefined`. It is a good idea to use
4975 - * string constants for action types.
4976 - *
4977 - * @returns {Object} For convenience, the same action object you dispatched.
4978 - *
4979 - * Note that, if you use a custom middleware, it may wrap `dispatch()` to
4980 - * return something else (for example, a Promise you can await).
4981 - */
4982 -
4983 -
4984 - function dispatch(action) {
4985 - if (!isPlainObject(action)) {
4986 - 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.");
4987 - }
4988 -
4989 - if (typeof action.type === 'undefined') {
4990 - throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
4991 - }
4992 -
4993 - if (isDispatching) {
4994 - throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
4995 - }
4996 -
4997 - try {
4998 - isDispatching = true;
4999 - currentState = currentReducer(currentState, action);
5000 - } finally {
5001 - isDispatching = false;
5002 - }
5003 -
5004 - var listeners = currentListeners = nextListeners;
5005 -
5006 - for (var i = 0; i < listeners.length; i++) {
5007 - var listener = listeners[i];
5008 - listener();
5009 - }
5010 -
5011 - return action;
5012 - }
5013 - /**
5014 - * Replaces the reducer currently used by the store to calculate the state.
5015 - *
5016 - * You might need this if your app implements code splitting and you want to
5017 - * load some of the reducers dynamically. You might also need this if you
5018 - * implement a hot reloading mechanism for Redux.
5019 - *
5020 - * @param {Function} nextReducer The reducer for the store to use instead.
5021 - * @returns {void}
5022 - */
5023 -
5024 -
5025 - function replaceReducer(nextReducer) {
5026 - if (typeof nextReducer !== 'function') {
5027 - throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
5028 - }
5029 -
5030 - currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
5031 - // Any reducers that existed in both the new and old rootReducer
5032 - // will receive the previous state. This effectively populates
5033 - // the new state tree with any relevant data from the old one.
5034 -
5035 - dispatch({
5036 - type: ActionTypes.REPLACE
5037 - });
5038 - }
5039 - /**
5040 - * Interoperability point for observable/reactive libraries.
5041 - * @returns {observable} A minimal observable of state changes.
5042 - * For more information, see the observable proposal:
5043 - * https://github.com/tc39/proposal-observable
5044 - */
5045 -
5046 -
5047 - function observable() {
5048 - var _ref;
5049 -
5050 - var outerSubscribe = subscribe;
5051 - return _ref = {
5052 - /**
5053 - * The minimal observable subscription method.
5054 - * @param {Object} observer Any object that can be used as an observer.
5055 - * The observer object should have a `next` method.
5056 - * @returns {subscription} An object with an `unsubscribe` method that can
5057 - * be used to unsubscribe the observable from the store, and prevent further
5058 - * emission of values from the observable.
5059 - */
5060 - subscribe: function subscribe(observer) {
5061 - if (typeof observer !== 'object' || observer === null) {
5062 - throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
5063 - }
5064 -
5065 - function observeState() {
5066 - if (observer.next) {
5067 - observer.next(getState());
5068 - }
5069 - }
5070 -
5071 - observeState();
5072 - var unsubscribe = outerSubscribe(observeState);
5073 - return {
5074 - unsubscribe: unsubscribe
5075 - };
5076 - }
5077 - }, _ref[$$observable] = function () {
5078 - return this;
5079 - }, _ref;
5080 - } // When a store is created, an "INIT" action is dispatched so that every
5081 - // reducer returns their initial state. This effectively populates
5082 - // the initial state tree.
5083 -
5084 -
5085 - dispatch({
5086 - type: ActionTypes.INIT
5087 - });
5088 - return _ref2 = {
5089 - dispatch: dispatch,
5090 - subscribe: subscribe,
5091 - getState: getState,
5092 - replaceReducer: replaceReducer
5093 - }, _ref2[$$observable] = observable, _ref2;
5094 -}
4121 +//#endregion
4122 +//#region node_modules/react-redux/es/utils/warning.js
4123 +var import_hoist_non_react_statics_cjs = /* @__PURE__ */ __toESM(require_hoist_non_react_statics_cjs());
4124 +var import_react_is = require_react_is();
5095 4125 /**
5096 - * Creates a Redux store that holds the state tree.
5097 - *
5098 - * **We recommend using `configureStore` from the
5099 - * `@reduxjs/toolkit` package**, which replaces `createStore`:
5100 - * **https://redux.js.org/introduction/why-rtk-is-redux-today**
5101 - *
5102 - * The only way to change the data in the store is to call `dispatch()` on it.
5103 - *
5104 - * There should only be a single store in your app. To specify how different
5105 - * parts of the state tree respond to actions, you may combine several reducers
5106 - * into a single reducer function by using `combineReducers`.
5107 - *
5108 - * @param {Function} reducer A function that returns the next state tree, given
5109 - * the current state tree and the action to handle.
5110 - *
5111 - * @param {any} [preloadedState] The initial state. You may optionally specify it
5112 - * to hydrate the state from the server in universal apps, or to restore a
5113 - * previously serialized user session.
5114 - * If you use `combineReducers` to produce the root reducer function, this must be
5115 - * an object with the same shape as `combineReducers` keys.
5116 - *
5117 - * @param {Function} [enhancer] The store enhancer. You may optionally specify it
5118 - * to enhance the store with third-party capabilities such as middleware,
5119 - * time travel, persistence, etc. The only store enhancer that ships with Redux
5120 - * is `applyMiddleware()`.
5121 - *
5122 - * @returns {Store} A Redux store that lets you read the state, dispatch actions
5123 - * and subscribe to changes.
5124 - */
4126 + * Prints a warning in the console if it exists.
4127 + *
4128 + * @param {String} message The warning message.
4129 + * @returns {void}
4130 + */
4131 + function warning(message) {
4132 + if (typeof console !== "undefined" && typeof console.error === "function") console.error(message);
4133 + try {
4134 + throw new Error(message);
4135 + } catch (e) {}
4136 + }
5125 4137
5126 -var legacy_createStore = createStore;
4138 +//#endregion
4139 +//#region node_modules/react-redux/es/connect/verifySubselectors.js
4140 + function verify(selector, methodName) {
4141 + if (!selector) throw new Error(`Unexpected value for ${methodName} in connect.`);
4142 + else if (methodName === "mapStateToProps" || methodName === "mapDispatchToProps") {
4143 + if (!Object.prototype.hasOwnProperty.call(selector, "dependsOnOwnProps")) warning(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
4144 + }
4145 + }
4146 + function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {
4147 + verify(mapStateToProps, "mapStateToProps");
4148 + verify(mapDispatchToProps, "mapDispatchToProps");
4149 + verify(mergeProps, "mergeProps");
4150 + }
5127 4151
5128 -/**
5129 - * Prints a warning in the console if it exists.
5130 - *
5131 - * @param {String} message The warning message.
5132 - * @returns {void}
5133 - */
5134 -function warning(message) {
5135 - /* eslint-disable no-console */
5136 - if (typeof console !== 'undefined' && typeof console.error === 'function') {
5137 - console.error(message);
5138 - }
5139 - /* eslint-enable no-console */
4152 +//#endregion
4153 +//#region node_modules/react-redux/es/connect/selectorFactory.js
4154 + var _excluded$1 = [
4155 + "initMapStateToProps",
4156 + "initMapDispatchToProps",
4157 + "initMergeProps"
4158 + ];
4159 + function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, { areStatesEqual, areOwnPropsEqual, areStatePropsEqual }) {
4160 + let hasRunAtLeastOnce = false;
4161 + let state;
4162 + let ownProps;
4163 + let stateProps;
4164 + let dispatchProps;
4165 + let mergedProps;
4166 + function handleFirstCall(firstState, firstOwnProps) {
4167 + state = firstState;
4168 + ownProps = firstOwnProps;
4169 + stateProps = mapStateToProps(state, ownProps);
4170 + dispatchProps = mapDispatchToProps(dispatch, ownProps);
4171 + mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
4172 + hasRunAtLeastOnce = true;
4173 + return mergedProps;
4174 + }
4175 + function handleNewPropsAndNewState() {
4176 + stateProps = mapStateToProps(state, ownProps);
4177 + if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
4178 + mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
4179 + return mergedProps;
4180 + }
4181 + function handleNewProps() {
4182 + if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
4183 + if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
4184 + mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
4185 + return mergedProps;
4186 + }
4187 + function handleNewState() {
4188 + const nextStateProps = mapStateToProps(state, ownProps);
4189 + const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
4190 + stateProps = nextStateProps;
4191 + if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
4192 + return mergedProps;
4193 + }
4194 + function handleSubsequentCalls(nextState, nextOwnProps) {
4195 + const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
4196 + const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);
4197 + state = nextState;
4198 + ownProps = nextOwnProps;
4199 + if (propsChanged && stateChanged) return handleNewPropsAndNewState();
4200 + if (propsChanged) return handleNewProps();
4201 + if (stateChanged) return handleNewState();
4202 + return mergedProps;
4203 + }
4204 + return function pureFinalPropsSelector(nextState, nextOwnProps) {
4205 + return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
4206 + };
4207 + }
4208 + function finalPropsSelectorFactory(dispatch, _ref) {
4209 + let { initMapStateToProps, initMapDispatchToProps, initMergeProps } = _ref, options = _objectWithoutPropertiesLoose(_ref, _excluded$1);
4210 + const mapStateToProps = initMapStateToProps(dispatch, options);
4211 + const mapDispatchToProps = initMapDispatchToProps(dispatch, options);
4212 + const mergeProps = initMergeProps(dispatch, options);
4213 + verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps);
4214 + return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
4215 + }
5140 4216
4217 +//#endregion
4218 +//#region node_modules/react-redux/es/utils/bindActionCreators.js
4219 + function bindActionCreators(actionCreators, dispatch) {
4220 + const boundActionCreators = {};
4221 + for (const key in actionCreators) {
4222 + const actionCreator = actionCreators[key];
4223 + if (typeof actionCreator === "function") boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));
4224 + }
4225 + return boundActionCreators;
4226 + }
5141 4227
5142 - try {
5143 - // This error was thrown as a convenience so that if you enable
5144 - // "break on all exceptions" in your console,
5145 - // it would pause the execution at this line.
5146 - throw new Error(message);
5147 - } catch (e) {} // eslint-disable-line no-empty
5148 -
5149 -}
5150 -
5151 -function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
5152 - var reducerKeys = Object.keys(reducers);
5153 - var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
5154 -
5155 - if (reducerKeys.length === 0) {
5156 - return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
5157 - }
5158 -
5159 - if (!isPlainObject(inputState)) {
5160 - return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
5161 - }
5162 -
5163 - var unexpectedKeys = Object.keys(inputState).filter(function (key) {
5164 - return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
5165 - });
5166 - unexpectedKeys.forEach(function (key) {
5167 - unexpectedKeyCache[key] = true;
5168 - });
5169 - if (action && action.type === ActionTypes.REPLACE) return;
5170 -
5171 - if (unexpectedKeys.length > 0) {
5172 - 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.");
5173 - }
5174 -}
5175 -
5176 -function assertReducerShape(reducers) {
5177 - Object.keys(reducers).forEach(function (key) {
5178 - var reducer = reducers[key];
5179 - var initialState = reducer(undefined, {
5180 - type: ActionTypes.INIT
5181 - });
5182 -
5183 - if (typeof initialState === 'undefined') {
5184 - 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.");
5185 - }
5186 -
5187 - if (typeof reducer(undefined, {
5188 - type: ActionTypes.PROBE_UNKNOWN_ACTION()
5189 - }) === 'undefined') {
5190 - 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.");
5191 - }
5192 - });
5193 -}
4228 +//#endregion
4229 +//#region node_modules/react-redux/es/utils/isPlainObject.js
5194 4230 /**
5195 - * Turns an object whose values are different reducer functions, into a single
5196 - * reducer function. It will call every child reducer, and gather their results
5197 - * into a single state object, whose keys correspond to the keys of the passed
5198 - * reducer functions.
5199 - *
5200 - * @param {Object} reducers An object whose values correspond to different
5201 - * reducer functions that need to be combined into one. One handy way to obtain
5202 - * it is to use ES6 `import * as reducers` syntax. The reducers may never return
5203 - * undefined for any action. Instead, they should return their initial state
5204 - * if the state passed to them was undefined, and the current state for any
5205 - * unrecognized action.
5206 - *
5207 - * @returns {Function} A reducer function that invokes every reducer inside the
5208 - * passed object, and builds a state object with the same shape.
5209 - */
4231 + * @param {any} obj The object to inspect.
4232 + * @returns {boolean} True if the argument appears to be a plain object.
4233 + */
4234 + function isPlainObject(obj) {
4235 + if (typeof obj !== "object" || obj === null) return false;
4236 + let proto = Object.getPrototypeOf(obj);
4237 + if (proto === null) return true;
4238 + let baseProto = proto;
4239 + while (Object.getPrototypeOf(baseProto) !== null) baseProto = Object.getPrototypeOf(baseProto);
4240 + return proto === baseProto;
4241 + }
5210 4242
4243 +//#endregion
4244 +//#region node_modules/react-redux/es/utils/verifyPlainObject.js
4245 + function verifyPlainObject(value, displayName, methodName) {
4246 + if (!isPlainObject(value)) warning(`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`);
4247 + }
5211 4248
5212 -function combineReducers(reducers) {
5213 - var reducerKeys = Object.keys(reducers);
5214 - var finalReducers = {};
4249 +//#endregion
4250 +//#region node_modules/react-redux/es/connect/wrapMapToProps.js
4251 + function wrapMapToPropsConstant(getConstant) {
4252 + return function initConstantSelector(dispatch) {
4253 + const constant = getConstant(dispatch);
4254 + function constantSelector() {
4255 + return constant;
4256 + }
4257 + constantSelector.dependsOnOwnProps = false;
4258 + return constantSelector;
4259 + };
4260 + }
4261 + function getDependsOnOwnProps(mapToProps) {
4262 + return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
4263 + }
4264 + function wrapMapToPropsFunc(mapToProps, methodName) {
4265 + return function initProxySelector(dispatch, { displayName }) {
4266 + const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
4267 + return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, void 0);
4268 + };
4269 + proxy.dependsOnOwnProps = true;
4270 + proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
4271 + proxy.mapToProps = mapToProps;
4272 + proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
4273 + let props = proxy(stateOrDispatch, ownProps);
4274 + if (typeof props === "function") {
4275 + proxy.mapToProps = props;
4276 + proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
4277 + props = proxy(stateOrDispatch, ownProps);
4278 + }
4279 + verifyPlainObject(props, displayName, methodName);
4280 + return props;
4281 + };
4282 + return proxy;
4283 + };
4284 + }
5215 4285
5216 - for (var i = 0; i < reducerKeys.length; i++) {
5217 - var key = reducerKeys[i];
4286 +//#endregion
4287 +//#region node_modules/react-redux/es/connect/invalidArgFactory.js
4288 + function createInvalidArgFactory(arg, name) {
4289 + return (dispatch, options) => {
4290 + throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
4291 + };
4292 + }
5218 4293
5219 - if (true) {
5220 - if (typeof reducers[key] === 'undefined') {
5221 - warning("No reducer provided for key \"" + key + "\"");
5222 - }
5223 - }
4294 +//#endregion
4295 +//#region node_modules/react-redux/es/connect/mapDispatchToProps.js
4296 + function mapDispatchToPropsFactory(mapDispatchToProps) {
4297 + return mapDispatchToProps && typeof mapDispatchToProps === "object" ? wrapMapToPropsConstant((dispatch) => bindActionCreators(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? wrapMapToPropsConstant((dispatch) => ({ dispatch })) : typeof mapDispatchToProps === "function" ? wrapMapToPropsFunc(mapDispatchToProps, "mapDispatchToProps") : createInvalidArgFactory(mapDispatchToProps, "mapDispatchToProps");
4298 + }
5224 4299
5225 - if (typeof reducers[key] === 'function') {
5226 - finalReducers[key] = reducers[key];
5227 - }
5228 - }
4300 +//#endregion
4301 +//#region node_modules/react-redux/es/connect/mapStateToProps.js
4302 + function mapStateToPropsFactory(mapStateToProps) {
4303 + return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : typeof mapStateToProps === "function" ? wrapMapToPropsFunc(mapStateToProps, "mapStateToProps") : createInvalidArgFactory(mapStateToProps, "mapStateToProps");
4304 + }
5229 4305
5230 - var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
5231 - // keys multiple times.
4306 +//#endregion
4307 +//#region node_modules/react-redux/es/connect/mergeProps.js
4308 + function defaultMergeProps(stateProps, dispatchProps, ownProps) {
4309 + return _extends({}, ownProps, stateProps, dispatchProps);
4310 + }
4311 + function wrapMergePropsFunc(mergeProps) {
4312 + return function initMergePropsProxy(dispatch, { displayName, areMergedPropsEqual }) {
4313 + let hasRunOnce = false;
4314 + let mergedProps;
4315 + return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
4316 + const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
4317 + if (hasRunOnce) {
4318 + if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
4319 + } else {
4320 + hasRunOnce = true;
4321 + mergedProps = nextMergedProps;
4322 + verifyPlainObject(mergedProps, displayName, "mergeProps");
4323 + }
4324 + return mergedProps;
4325 + };
4326 + };
4327 + }
4328 + function mergePropsFactory(mergeProps) {
4329 + return !mergeProps ? () => defaultMergeProps : typeof mergeProps === "function" ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, "mergeProps");
4330 + }
5232 4331
5233 - var unexpectedKeyCache;
4332 +//#endregion
4333 +//#region node_modules/react-redux/es/utils/Subscription.js
4334 + function createListenerCollection() {
4335 + const batch = getBatch();
4336 + let first = null;
4337 + let last = null;
4338 + return {
4339 + clear() {
4340 + first = null;
4341 + last = null;
4342 + },
4343 + notify() {
4344 + batch(() => {
4345 + let listener = first;
4346 + while (listener) {
4347 + listener.callback();
4348 + listener = listener.next;
4349 + }
4350 + });
4351 + },
4352 + get() {
4353 + let listeners = [];
4354 + let listener = first;
4355 + while (listener) {
4356 + listeners.push(listener);
4357 + listener = listener.next;
4358 + }
4359 + return listeners;
4360 + },
4361 + subscribe(callback) {
4362 + let isSubscribed = true;
4363 + let listener = last = {
4364 + callback,
4365 + next: null,
4366 + prev: last
4367 + };
4368 + if (listener.prev) listener.prev.next = listener;
4369 + else first = listener;
4370 + return function unsubscribe() {
4371 + if (!isSubscribed || first === null) return;
4372 + isSubscribed = false;
4373 + if (listener.next) listener.next.prev = listener.prev;
4374 + else last = listener.prev;
4375 + if (listener.prev) listener.prev.next = listener.next;
4376 + else first = listener.next;
4377 + };
4378 + }
4379 + };
4380 + }
4381 + var nullListeners = {
4382 + notify() {},
4383 + get: () => []
4384 + };
4385 + function createSubscription(store, parentSub) {
4386 + let unsubscribe;
4387 + let listeners = nullListeners;
4388 + let subscriptionsAmount = 0;
4389 + let selfSubscribed = false;
4390 + function addNestedSub(listener) {
4391 + trySubscribe();
4392 + const cleanupListener = listeners.subscribe(listener);
4393 + let removed = false;
4394 + return () => {
4395 + if (!removed) {
4396 + removed = true;
4397 + cleanupListener();
4398 + tryUnsubscribe();
4399 + }
4400 + };
4401 + }
4402 + function notifyNestedSubs() {
4403 + listeners.notify();
4404 + }
4405 + function handleChangeWrapper() {
4406 + if (subscription.onStateChange) subscription.onStateChange();
4407 + }
4408 + function isSubscribed() {
4409 + return selfSubscribed;
4410 + }
4411 + function trySubscribe() {
4412 + subscriptionsAmount++;
4413 + if (!unsubscribe) {
4414 + unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
4415 + listeners = createListenerCollection();
4416 + }
4417 + }
4418 + function tryUnsubscribe() {
4419 + subscriptionsAmount--;
4420 + if (unsubscribe && subscriptionsAmount === 0) {
4421 + unsubscribe();
4422 + unsubscribe = void 0;
4423 + listeners.clear();
4424 + listeners = nullListeners;
4425 + }
4426 + }
4427 + function trySubscribeSelf() {
4428 + if (!selfSubscribed) {
4429 + selfSubscribed = true;
4430 + trySubscribe();
4431 + }
4432 + }
4433 + function tryUnsubscribeSelf() {
4434 + if (selfSubscribed) {
4435 + selfSubscribed = false;
4436 + tryUnsubscribe();
4437 + }
4438 + }
4439 + const subscription = {
4440 + addNestedSub,
4441 + notifyNestedSubs,
4442 + handleChangeWrapper,
4443 + isSubscribed,
4444 + trySubscribe: trySubscribeSelf,
4445 + tryUnsubscribe: tryUnsubscribeSelf,
4446 + getListeners: () => listeners
4447 + };
4448 + return subscription;
4449 + }
5234 4450
5235 - if (true) {
5236 - unexpectedKeyCache = {};
5237 - }
4451 +//#endregion
4452 +//#region node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
4453 + var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
4454 + var useIsomorphicLayoutEffect = canUseDOM ? react.useLayoutEffect : react.useEffect;
5238 4455
5239 - var shapeAssertionError;
4456 +//#endregion
4457 +//#region node_modules/react-redux/es/utils/shallowEqual.js
4458 + function is(x, y) {
4459 + if (x === y) return x !== 0 || y !== 0 || 1 / x === 1 / y;
4460 + else return x !== x && y !== y;
4461 + }
4462 + function shallowEqual(objA, objB) {
4463 + if (is(objA, objB)) return true;
4464 + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) return false;
4465 + const keysA = Object.keys(objA);
4466 + const keysB = Object.keys(objB);
4467 + if (keysA.length !== keysB.length) return false;
4468 + for (let i = 0; i < keysA.length; i++) if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return false;
4469 + return true;
4470 + }
5240 4471
5241 - try {
5242 - assertReducerShape(finalReducers);
5243 - } catch (e) {
5244 - shapeAssertionError = e;
5245 - }
4472 +//#endregion
4473 +//#region node_modules/react-redux/es/components/connect.js
4474 + var _excluded = ["reactReduxForwardedRef"];
4475 + var useSyncExternalStore$1 = notInitialized;
4476 + var initializeConnect = (fn) => {
4477 + useSyncExternalStore$1 = fn;
4478 + };
4479 + var NO_SUBSCRIPTION_ARRAY = [null, null];
4480 + var stringifyComponent = (Comp) => {
4481 + try {
4482 + return JSON.stringify(Comp);
4483 + } catch (err) {
4484 + return String(Comp);
4485 + }
4486 + };
4487 + function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
4488 + useIsomorphicLayoutEffect(() => effectFunc(...effectArgs), dependencies);
4489 + }
4490 + function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs) {
4491 + lastWrapperProps.current = wrapperProps;
4492 + renderIsScheduled.current = false;
4493 + if (childPropsFromStoreUpdate.current) {
4494 + childPropsFromStoreUpdate.current = null;
4495 + notifyNestedSubs();
4496 + }
4497 + }
4498 + function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, additionalSubscribeListener) {
4499 + if (!shouldHandleStateChanges) return () => {};
4500 + let didUnsubscribe = false;
4501 + let lastThrownError = null;
4502 + const checkForUpdates = () => {
4503 + if (didUnsubscribe || !isMounted.current) return;
4504 + const latestStoreState = store.getState();
4505 + let newChildProps;
4506 + let error;
4507 + try {
4508 + newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
4509 + } catch (e) {
4510 + error = e;
4511 + lastThrownError = e;
4512 + }
4513 + if (!error) lastThrownError = null;
4514 + if (newChildProps === lastChildProps.current) {
4515 + if (!renderIsScheduled.current) notifyNestedSubs();
4516 + } else {
4517 + lastChildProps.current = newChildProps;
4518 + childPropsFromStoreUpdate.current = newChildProps;
4519 + renderIsScheduled.current = true;
4520 + additionalSubscribeListener();
4521 + }
4522 + };
4523 + subscription.onStateChange = checkForUpdates;
4524 + subscription.trySubscribe();
4525 + checkForUpdates();
4526 + const unsubscribeWrapper = () => {
4527 + didUnsubscribe = true;
4528 + subscription.tryUnsubscribe();
4529 + subscription.onStateChange = null;
4530 + if (lastThrownError) throw lastThrownError;
4531 + };
4532 + return unsubscribeWrapper;
4533 + }
4534 + function strictEqual(a, b) {
4535 + return a === b;
4536 + }
4537 + /**
4538 + * Infers the type of props that a connector will inject into a component.
4539 + */
4540 + var hasWarnedAboutDeprecatedPureOption = false;
4541 + /**
4542 + * Connects a React component to a Redux store.
4543 + *
4544 + * - Without arguments, just wraps the component, without changing the behavior / props
4545 + *
4546 + * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
4547 + * is to override ownProps (as stated in the docs), so what remains is everything that's
4548 + * not a state or dispatch prop
4549 + *
4550 + * - When 3rd param is passed, we don't know if ownProps propagate and whether they
4551 + * should be valid component props, because it depends on mergeProps implementation.
4552 + * As such, it is the user's responsibility to extend ownProps interface from state or
4553 + * dispatch props or both when applicable
4554 + *
4555 + * @param mapStateToProps A function that extracts values from state
4556 + * @param mapDispatchToProps Setup for dispatching actions
4557 + * @param mergeProps Optional callback to merge state and dispatch props together
4558 + * @param options Options for configuring the connection
4559 + *
4560 + */
4561 + function connect(mapStateToProps, mapDispatchToProps, mergeProps, { pure, areStatesEqual = strictEqual, areOwnPropsEqual = shallowEqual, areStatePropsEqual = shallowEqual, areMergedPropsEqual = shallowEqual, forwardRef = false, context = ReactReduxContext } = {}) {
4562 + if (pure !== void 0 && !hasWarnedAboutDeprecatedPureOption) {
4563 + hasWarnedAboutDeprecatedPureOption = true;
4564 + warning("The `pure` option has been removed. `connect` is now always a \"pure/memoized\" component");
4565 + }
4566 + const Context = context;
4567 + const initMapStateToProps = mapStateToPropsFactory(mapStateToProps);
4568 + const initMapDispatchToProps = mapDispatchToPropsFactory(mapDispatchToProps);
4569 + const initMergeProps = mergePropsFactory(mergeProps);
4570 + const shouldHandleStateChanges = Boolean(mapStateToProps);
4571 + const wrapWithConnect = (WrappedComponent) => {
4572 + if (!(0, import_react_is.isValidElementType)(WrappedComponent)) throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(WrappedComponent)}`);
4573 + const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
4574 + const displayName = `Connect(${wrappedComponentName})`;
4575 + const selectorFactoryOptions = {
4576 + shouldHandleStateChanges,
4577 + displayName,
4578 + wrappedComponentName,
4579 + WrappedComponent,
4580 + initMapStateToProps,
4581 + initMapDispatchToProps,
4582 + initMergeProps,
4583 + areStatesEqual,
4584 + areStatePropsEqual,
4585 + areOwnPropsEqual,
4586 + areMergedPropsEqual
4587 + };
4588 + function ConnectFunction(props) {
4589 + const [propsContext, reactReduxForwardedRef, wrapperProps] = react.useMemo(() => {
4590 + const { reactReduxForwardedRef } = props, wrapperProps = _objectWithoutPropertiesLoose(props, _excluded);
4591 + return [
4592 + props.context,
4593 + reactReduxForwardedRef,
4594 + wrapperProps
4595 + ];
4596 + }, [props]);
4597 + const ContextToUse = react.useMemo(() => {
4598 + return propsContext && propsContext.Consumer && (0, import_react_is.isContextConsumer)(/*#__PURE__*/ react.createElement(propsContext.Consumer, null)) ? propsContext : Context;
4599 + }, [propsContext, Context]);
4600 + const contextValue = react.useContext(ContextToUse);
4601 + const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
4602 + const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
4603 + if (!didStoreComeFromProps && !didStoreComeFromContext) 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.`);
4604 + const store = didStoreComeFromProps ? props.store : contextValue.store;
4605 + const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
4606 + const childPropsSelector = react.useMemo(() => {
4607 + return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);
4608 + }, [store]);
4609 + const [subscription, notifyNestedSubs] = react.useMemo(() => {
4610 + if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY;
4611 + const subscription = createSubscription(store, didStoreComeFromProps ? void 0 : contextValue.subscription);
4612 + return [subscription, subscription.notifyNestedSubs.bind(subscription)];
4613 + }, [
4614 + store,
4615 + didStoreComeFromProps,
4616 + contextValue
4617 + ]);
4618 + const overriddenContextValue = react.useMemo(() => {
4619 + if (didStoreComeFromProps) return contextValue;
4620 + return _extends({}, contextValue, { subscription });
4621 + }, [
4622 + didStoreComeFromProps,
4623 + contextValue,
4624 + subscription
4625 + ]);
4626 + const lastChildProps = react.useRef();
4627 + const lastWrapperProps = react.useRef(wrapperProps);
4628 + const childPropsFromStoreUpdate = react.useRef();
4629 + const renderIsScheduled = react.useRef(false);
4630 + react.useRef(false);
4631 + const isMounted = react.useRef(false);
4632 + const latestSubscriptionCallbackError = react.useRef();
4633 + useIsomorphicLayoutEffect(() => {
4634 + isMounted.current = true;
4635 + return () => {
4636 + isMounted.current = false;
4637 + };
4638 + }, []);
4639 + const actualChildPropsSelector = react.useMemo(() => {
4640 + const selector = () => {
4641 + if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) return childPropsFromStoreUpdate.current;
4642 + return childPropsSelector(store.getState(), wrapperProps);
4643 + };
4644 + return selector;
4645 + }, [store, wrapperProps]);
4646 + const subscribeForReact = react.useMemo(() => {
4647 + const subscribe = (reactListener) => {
4648 + if (!subscription) return () => {};
4649 + return subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);
4650 + };
4651 + return subscribe;
4652 + }, [subscription]);
4653 + useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [
4654 + lastWrapperProps,
4655 + lastChildProps,
4656 + renderIsScheduled,
4657 + wrapperProps,
4658 + childPropsFromStoreUpdate,
4659 + notifyNestedSubs
4660 + ]);
4661 + let actualChildProps;
4662 + try {
4663 + actualChildProps = useSyncExternalStore$1(subscribeForReact, actualChildPropsSelector, getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);
4664 + } catch (err) {
4665 + if (latestSubscriptionCallbackError.current) err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;
4666 + throw err;
4667 + }
4668 + useIsomorphicLayoutEffect(() => {
4669 + latestSubscriptionCallbackError.current = void 0;
4670 + childPropsFromStoreUpdate.current = void 0;
4671 + lastChildProps.current = actualChildProps;
4672 + });
4673 + const renderedWrappedComponent = react.useMemo(() => {
4674 + return /*#__PURE__*/ react.createElement(WrappedComponent, _extends({}, actualChildProps, { ref: reactReduxForwardedRef }));
4675 + }, [
4676 + reactReduxForwardedRef,
4677 + WrappedComponent,
4678 + actualChildProps
4679 + ]);
4680 + return react.useMemo(() => {
4681 + if (shouldHandleStateChanges) return /*#__PURE__*/ react.createElement(ContextToUse.Provider, { value: overriddenContextValue }, renderedWrappedComponent);
4682 + return renderedWrappedComponent;
4683 + }, [
4684 + ContextToUse,
4685 + renderedWrappedComponent,
4686 + overriddenContextValue
4687 + ]);
4688 + }
4689 + const Connect = react.memo(ConnectFunction);
4690 + Connect.WrappedComponent = WrappedComponent;
4691 + Connect.displayName = ConnectFunction.displayName = displayName;
4692 + if (forwardRef) {
4693 + const forwarded = react.forwardRef(function forwardConnectRef(props, ref) {
4694 + return /*#__PURE__*/ react.createElement(Connect, _extends({}, props, { reactReduxForwardedRef: ref }));
4695 + });
4696 + forwarded.displayName = displayName;
4697 + forwarded.WrappedComponent = WrappedComponent;
4698 + return (0, import_hoist_non_react_statics_cjs.default)(forwarded, WrappedComponent);
4699 + }
4700 + return (0, import_hoist_non_react_statics_cjs.default)(Connect, WrappedComponent);
4701 + };
4702 + return wrapWithConnect;
4703 + }
5246 4704
5247 - return function combination(state, action) {
5248 - if (state === void 0) {
5249 - state = {};
5250 - }
4705 +//#endregion
4706 +//#region node_modules/react-redux/es/components/Provider.js
4707 + function Provider({ store, context, children, serverState, stabilityCheck = "once", noopCheck = "once" }) {
4708 + const contextValue = react.useMemo(() => {
4709 + return {
4710 + store,
4711 + subscription: createSubscription(store),
4712 + getServerState: serverState ? () => serverState : void 0,
4713 + stabilityCheck,
4714 + noopCheck
4715 + };
4716 + }, [
4717 + store,
4718 + serverState,
4719 + stabilityCheck,
4720 + noopCheck
4721 + ]);
4722 + const previousState = react.useMemo(() => store.getState(), [store]);
4723 + useIsomorphicLayoutEffect(() => {
4724 + const { subscription } = contextValue;
4725 + subscription.onStateChange = subscription.notifyNestedSubs;
4726 + subscription.trySubscribe();
4727 + if (previousState !== store.getState()) subscription.notifyNestedSubs();
4728 + return () => {
4729 + subscription.tryUnsubscribe();
4730 + subscription.onStateChange = void 0;
4731 + };
4732 + }, [contextValue, previousState]);
4733 + const Context = context || ReactReduxContext;
4734 + return /*#__PURE__*/ react.createElement(Context.Provider, { value: contextValue }, children);
4735 + }
5251 4736
5252 - if (shapeAssertionError) {
5253 - throw shapeAssertionError;
5254 - }
5255 -
5256 - if (true) {
5257 - var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
5258 -
5259 - if (warningMessage) {
5260 - warning(warningMessage);
5261 - }
5262 - }
5263 -
5264 - var hasChanged = false;
5265 - var nextState = {};
5266 -
5267 - for (var _i = 0; _i < finalReducerKeys.length; _i++) {
5268 - var _key = finalReducerKeys[_i];
5269 - var reducer = finalReducers[_key];
5270 - var previousStateForKey = state[_key];
5271 - var nextStateForKey = reducer(previousStateForKey, action);
5272 -
5273 - if (typeof nextStateForKey === 'undefined') {
5274 - var actionType = action && action.type;
5275 - 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.");
5276 - }
5277 -
5278 - nextState[_key] = nextStateForKey;
5279 - hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
5280 - }
5281 -
5282 - hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
5283 - return hasChanged ? nextState : state;
5284 - };
5285 -}
5286 -
5287 -function bindActionCreator(actionCreator, dispatch) {
5288 - return function () {
5289 - return dispatch(actionCreator.apply(this, arguments));
5290 - };
5291 -}
4737 +//#endregion
4738 +//#region node_modules/react-redux/es/hooks/useStore.js
5292 4739 /**
5293 - * Turns an object whose values are action creators, into an object with the
5294 - * same keys, but with every function wrapped into a `dispatch` call so they
5295 - * may be invoked directly. This is just a convenience method, as you can call
5296 - * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
5297 - *
5298 - * For convenience, you can also pass an action creator as the first argument,
5299 - * and get a dispatch wrapped function in return.
5300 - *
5301 - * @param {Function|Object} actionCreators An object whose values are action
5302 - * creator functions. One handy way to obtain it is to use ES6 `import * as`
5303 - * syntax. You may also pass a single function.
5304 - *
5305 - * @param {Function} dispatch The `dispatch` function available on your Redux
5306 - * store.
5307 - *
5308 - * @returns {Function|Object} The object mimicking the original object, but with
5309 - * every action creator wrapped into the `dispatch` call. If you passed a
5310 - * function as `actionCreators`, the return value will also be a single
5311 - * function.
5312 - */
4740 + * Hook factory, which creates a `useStore` hook bound to a given context.
4741 + *
4742 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4743 + * @returns {Function} A `useStore` hook bound to the specified context.
4744 + */
4745 + function createStoreHook(context = ReactReduxContext) {
4746 + const useReduxContext$1 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);
4747 + return function useStore() {
4748 + const { store } = useReduxContext$1();
4749 + return store;
4750 + };
4751 + }
4752 + /**
4753 + * A hook to access the redux store.
4754 + *
4755 + * @returns {any} the redux store
4756 + *
4757 + * @example
4758 + *
4759 + * import React from 'react'
4760 + * import { useStore } from 'react-redux'
4761 + *
4762 + * export const ExampleComponent = () => {
4763 + * const store = useStore()
4764 + * return <div>{store.getState()}</div>
4765 + * }
4766 + */
4767 + var useStore = /*#__PURE__*/ createStoreHook();
5313 4768
5314 -
5315 -function bindActionCreators(actionCreators, dispatch) {
5316 - if (typeof actionCreators === 'function') {
5317 - return bindActionCreator(actionCreators, dispatch);
5318 - }
5319 -
5320 - if (typeof actionCreators !== 'object' || actionCreators === null) {
5321 - 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\"?");
5322 - }
5323 -
5324 - var boundActionCreators = {};
5325 -
5326 - for (var key in actionCreators) {
5327 - var actionCreator = actionCreators[key];
5328 -
5329 - if (typeof actionCreator === 'function') {
5330 - boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
5331 - }
5332 - }
5333 -
5334 - return boundActionCreators;
5335 -}
5336 -
4769 +//#endregion
4770 +//#region node_modules/react-redux/es/hooks/useDispatch.js
5337 4771 /**
5338 - * Composes single-argument functions from right to left. The rightmost
5339 - * function can take multiple arguments as it provides the signature for
5340 - * the resulting composite function.
5341 - *
5342 - * @param {...Function} funcs The functions to compose.
5343 - * @returns {Function} A function obtained by composing the argument functions
5344 - * from right to left. For example, compose(f, g, h) is identical to doing
5345 - * (...args) => f(g(h(...args))).
5346 - */
5347 -function compose() {
5348 - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5349 - funcs[_key] = arguments[_key];
5350 - }
4772 + * Hook factory, which creates a `useDispatch` hook bound to a given context.
4773 + *
4774 + * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4775 + * @returns {Function} A `useDispatch` hook bound to the specified context.
4776 + */
4777 + function createDispatchHook(context = ReactReduxContext) {
4778 + const useStore$1 = context === ReactReduxContext ? useStore : createStoreHook(context);
4779 + return function useDispatch() {
4780 + return useStore$1().dispatch;
4781 + };
4782 + }
4783 + /**
4784 + * A hook to access the redux `dispatch` function.
4785 + *
4786 + * @returns {any|function} redux store's `dispatch` function
4787 + *
4788 + * @example
4789 + *
4790 + * import React, { useCallback } from 'react'
4791 + * import { useDispatch } from 'react-redux'
4792 + *
4793 + * export const CounterComponent = ({ value }) => {
4794 + * const dispatch = useDispatch()
4795 + * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
4796 + * return (
4797 + * <div>
4798 + * <span>{value}</span>
4799 + * <button onClick={increaseCounter}>Increase counter</button>
4800 + * </div>
4801 + * )
4802 + * }
4803 + */
4804 + var useDispatch = /*#__PURE__*/ createDispatchHook();
5351 4805
5352 - if (funcs.length === 0) {
5353 - return function (arg) {
5354 - return arg;
5355 - };
5356 - }
4806 +//#endregion
4807 +//#region node_modules/react-redux/es/index.js
4808 + var es_exports = /* @__PURE__ */ __exportAll({
4809 + Provider: () => Provider,
4810 + ReactReduxContext: () => ReactReduxContext,
4811 + batch: () => react_dom.unstable_batchedUpdates,
4812 + connect: () => connect,
4813 + createDispatchHook: () => createDispatchHook,
4814 + createSelectorHook: () => createSelectorHook,
4815 + createStoreHook: () => createStoreHook,
4816 + shallowEqual: () => shallowEqual,
4817 + useDispatch: () => useDispatch,
4818 + useSelector: () => useSelector,
4819 + useStore: () => useStore
4820 + });
4821 + initializeUseSelector(import_with_selector.useSyncExternalStoreWithSelector);
4822 + initializeConnect(import_shim.useSyncExternalStore);
4823 + setBatch(react_dom.unstable_batchedUpdates);
5357 4824
5358 - if (funcs.length === 1) {
5359 - return funcs[0];
5360 - }
4825 +//#endregion
4826 +//#region core/common/assets/js/vendors-redux.js
4827 + window.elementorVendors = window.elementorVendors || {};
4828 + window.elementorVendors.reduxToolkit = redux_toolkit_esm_exports;
4829 + window.elementorVendors.reactRedux = es_exports;
5361 4830
5362 - return funcs.reduce(function (a, b) {
5363 - return function () {
5364 - return a(b.apply(void 0, arguments));
5365 - };
5366 - });
5367 -}
5368 -
5369 -/**
5370 - * Creates a store enhancer that applies middleware to the dispatch method
5371 - * of the Redux store. This is handy for a variety of tasks, such as expressing
5372 - * asynchronous actions in a concise manner, or logging every action payload.
5373 - *
5374 - * See `redux-thunk` package as an example of the Redux middleware.
5375 - *
5376 - * Because middleware is potentially asynchronous, this should be the first
5377 - * store enhancer in the composition chain.
5378 - *
5379 - * Note that each middleware will be given the `dispatch` and `getState` functions
5380 - * as named arguments.
5381 - *
5382 - * @param {...Function} middlewares The middleware chain to be applied.
5383 - * @returns {Function} A store enhancer applying the middleware.
5384 - */
5385 -
5386 -function applyMiddleware() {
5387 - for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
5388 - middlewares[_key] = arguments[_key];
5389 - }
5390 -
5391 - return function (createStore) {
5392 - return function () {
5393 - var store = createStore.apply(void 0, arguments);
5394 -
5395 - var _dispatch = function dispatch() {
5396 - throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
5397 - };
5398 -
5399 - var middlewareAPI = {
5400 - getState: store.getState,
5401 - dispatch: function dispatch() {
5402 - return _dispatch.apply(void 0, arguments);
5403 - }
5404 - };
5405 - var chain = middlewares.map(function (middleware) {
5406 - return middleware(middlewareAPI);
5407 - });
5408 - _dispatch = compose.apply(void 0, chain)(store.dispatch);
5409 - return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
5410 - dispatch: _dispatch
5411 - });
5412 - };
5413 - };
5414 -}
5415 -
5416 -
5417 -
5418 -
5419 -/***/ }),
5420 -
5421 -/***/ "../node_modules/reselect/es/defaultMemoize.js":
5422 -/*!*****************************************************!*\
5423 - !*** ../node_modules/reselect/es/defaultMemoize.js ***!
5424 - \*****************************************************/
5425 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5426 -
5427 -"use strict";
5428 -__webpack_require__.r(__webpack_exports__);
5429 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5430 -/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator),
5431 -/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck),
5432 -/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize)
5433 -/* harmony export */ });
5434 -// Cache implementation based on Erik Rasmussen's `lru-memoize`:
5435 -// https://github.com/erikras/lru-memoize
5436 -var NOT_FOUND = 'NOT_FOUND';
5437 -
5438 -function createSingletonCache(equals) {
5439 - var entry;
5440 - return {
5441 - get: function get(key) {
5442 - if (entry && equals(entry.key, key)) {
5443 - return entry.value;
5444 - }
5445 -
5446 - return NOT_FOUND;
5447 - },
5448 - put: function put(key, value) {
5449 - entry = {
5450 - key: key,
5451 - value: value
5452 - };
5453 - },
5454 - getEntries: function getEntries() {
5455 - return entry ? [entry] : [];
5456 - },
5457 - clear: function clear() {
5458 - entry = undefined;
5459 - }
5460 - };
5461 -}
5462 -
5463 -function createLruCache(maxSize, equals) {
5464 - var entries = [];
5465 -
5466 - function get(key) {
5467 - var cacheIndex = entries.findIndex(function (entry) {
5468 - return equals(key, entry.key);
5469 - }); // We found a cached entry
5470 -
5471 - if (cacheIndex > -1) {
5472 - var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
5473 -
5474 - if (cacheIndex > 0) {
5475 - entries.splice(cacheIndex, 1);
5476 - entries.unshift(entry);
5477 - }
5478 -
5479 - return entry.value;
5480 - } // No entry found in cache, return sentinel
5481 -
5482 -
5483 - return NOT_FOUND;
5484 - }
5485 -
5486 - function put(key, value) {
5487 - if (get(key) === NOT_FOUND) {
5488 - // TODO Is unshift slow?
5489 - entries.unshift({
5490 - key: key,
5491 - value: value
5492 - });
5493 -
5494 - if (entries.length > maxSize) {
5495 - entries.pop();
5496 - }
5497 - }
5498 - }
5499 -
5500 - function getEntries() {
5501 - return entries;
5502 - }
5503 -
5504 - function clear() {
5505 - entries = [];
5506 - }
5507 -
5508 - return {
5509 - get: get,
5510 - put: put,
5511 - getEntries: getEntries,
5512 - clear: clear
5513 - };
5514 -}
5515 -
5516 -var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
5517 - return a === b;
5518 -};
5519 -function createCacheKeyComparator(equalityCheck) {
5520 - return function areArgumentsShallowlyEqual(prev, next) {
5521 - if (prev === null || next === null || prev.length !== next.length) {
5522 - return false;
5523 - } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
5524 -
5525 -
5526 - var length = prev.length;
5527 -
5528 - for (var i = 0; i < length; i++) {
5529 - if (!equalityCheck(prev[i], next[i])) {
5530 - return false;
5531 - }
5532 - }
5533 -
5534 - return true;
5535 - };
5536 -}
5537 -// defaultMemoize now supports a configurable cache size with LRU behavior,
5538 -// and optional comparison of the result value with existing values
5539 -function defaultMemoize(func, equalityCheckOrOptions) {
5540 - var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
5541 - equalityCheck: equalityCheckOrOptions
5542 - };
5543 - var _providedOptions$equa = providedOptions.equalityCheck,
5544 - equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
5545 - _providedOptions$maxS = providedOptions.maxSize,
5546 - maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
5547 - resultEqualityCheck = providedOptions.resultEqualityCheck;
5548 - var comparator = createCacheKeyComparator(equalityCheck);
5549 - var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
5550 -
5551 - function memoized() {
5552 - var value = cache.get(arguments);
5553 -
5554 - if (value === NOT_FOUND) {
5555 - // @ts-ignore
5556 - value = func.apply(null, arguments);
5557 -
5558 - if (resultEqualityCheck) {
5559 - var entries = cache.getEntries();
5560 - var matchingEntry = entries.find(function (entry) {
5561 - return resultEqualityCheck(entry.value, value);
5562 - });
5563 -
5564 - if (matchingEntry) {
5565 - value = matchingEntry.value;
5566 - }
5567 - }
5568 -
5569 - cache.put(arguments, value);
5570 - }
5571 -
5572 - return value;
5573 - }
5574 -
5575 - memoized.clearCache = function () {
5576 - return cache.clear();
5577 - };
5578 -
5579 - return memoized;
5580 -}
5581 -
5582 -/***/ }),
5583 -
5584 -/***/ "../node_modules/reselect/es/index.js":
5585 -/*!********************************************!*\
5586 - !*** ../node_modules/reselect/es/index.js ***!
5587 - \********************************************/
5588 -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5589 -
5590 -"use strict";
5591 -__webpack_require__.r(__webpack_exports__);
5592 -/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5593 -/* harmony export */ createSelector: () => (/* binding */ createSelector),
5594 -/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator),
5595 -/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector),
5596 -/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
5597 -/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
5598 -/* harmony export */ });
5599 -/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
5600 -
5601 -
5602 -
5603 -function getDependencies(funcs) {
5604 - var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
5605 -
5606 - if (!dependencies.every(function (dep) {
5607 - return typeof dep === 'function';
5608 - })) {
5609 - var dependencyTypes = dependencies.map(function (dep) {
5610 - return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
5611 - }).join(', ');
5612 - throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
5613 - }
5614 -
5615 - return dependencies;
5616 -}
5617 -
5618 -function createSelectorCreator(memoize) {
5619 - for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5620 - memoizeOptionsFromArgs[_key - 1] = arguments[_key];
5621 - }
5622 -
5623 - var createSelector = function createSelector() {
5624 - for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5625 - funcs[_key2] = arguments[_key2];
5626 - }
5627 -
5628 - var _recomputations = 0;
5629 -
5630 - var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5631 - // So, start by declaring the default value here.
5632 - // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5633 -
5634 -
5635 - var directlyPassedOptions = {
5636 - memoizeOptions: undefined
5637 - }; // Normally, the result func or "output selector" is the last arg
5638 -
5639 - var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5640 -
5641 - if (typeof resultFunc === 'object') {
5642 - directlyPassedOptions = resultFunc; // and pop the real result func off
5643 -
5644 - resultFunc = funcs.pop();
5645 - }
5646 -
5647 - if (typeof resultFunc !== 'function') {
5648 - throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5649 - } // Determine which set of options we're using. Prefer options passed directly,
5650 - // but fall back to options given to createSelectorCreator.
5651 -
5652 -
5653 - var _directlyPassedOption = directlyPassedOptions,
5654 - _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5655 - memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5656 - // is an array. In most libs I've looked at, it's an equality function or options object.
5657 - // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5658 - // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5659 - // we wrap it in an array so we can apply it.
5660 -
5661 - var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5662 - var dependencies = getDependencies(funcs);
5663 - var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5664 - _recomputations++; // apply arguments instead of spreading for performance.
5665 -
5666 - return resultFunc.apply(null, arguments);
5667 - }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5668 -
5669 - var selector = memoize(function dependenciesChecker() {
5670 - var params = [];
5671 - var length = dependencies.length;
5672 -
5673 - for (var i = 0; i < length; i++) {
5674 - // apply arguments instead of spreading and mutate a local list of params for performance.
5675 - // @ts-ignore
5676 - params.push(dependencies[i].apply(null, arguments));
5677 - } // apply arguments instead of spreading for performance.
5678 -
5679 -
5680 - _lastResult = memoizedResultFunc.apply(null, params);
5681 - return _lastResult;
5682 - });
5683 - Object.assign(selector, {
5684 - resultFunc: resultFunc,
5685 - memoizedResultFunc: memoizedResultFunc,
5686 - dependencies: dependencies,
5687 - lastResult: function lastResult() {
5688 - return _lastResult;
5689 - },
5690 - recomputations: function recomputations() {
5691 - return _recomputations;
5692 - },
5693 - resetRecomputations: function resetRecomputations() {
5694 - return _recomputations = 0;
5695 - }
5696 - });
5697 - return selector;
5698 - }; // @ts-ignore
5699 -
5700 -
5701 - return createSelector;
5702 -}
5703 -var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
5704 -// Manual definition of state and output arguments
5705 -var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
5706 - if (selectorCreator === void 0) {
5707 - selectorCreator = createSelector;
5708 - }
5709 -
5710 - if (typeof selectors !== 'object') {
5711 - throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
5712 - }
5713 -
5714 - var objectKeys = Object.keys(selectors);
5715 - var resultSelector = selectorCreator( // @ts-ignore
5716 - objectKeys.map(function (key) {
5717 - return selectors[key];
5718 - }), function () {
5719 - for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5720 - values[_key3] = arguments[_key3];
5721 - }
5722 -
5723 - return values.reduce(function (composition, value, index) {
5724 - composition[objectKeys[index]] = value;
5725 - return composition;
5726 - }, {});
5727 - });
5728 - return resultSelector;
5729 -};
5730 -
5731 -/***/ }),
5732 -
5733 -/***/ "../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js":
5734 -/*!***********************************************************************************************!*\
5735 - !*** ../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js ***!
5736 - \***********************************************************************************************/
5737 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5738 -
5739 -"use strict";
5740 -/**
5741 - * @license React
5742 - * use-sync-external-store-shim.development.js
5743 - *
5744 - * Copyright (c) Meta Platforms, Inc. and affiliates.
5745 - *
5746 - * This source code is licensed under the MIT license found in the
5747 - * LICENSE file in the root directory of this source tree.
5748 - */
5749 -
5750 -
5751 - true &&
5752 - (function () {
5753 - function is(x, y) {
5754 - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
5755 - }
5756 - function useSyncExternalStore$2(subscribe, getSnapshot) {
5757 - didWarnOld18Alpha ||
5758 - void 0 === React.startTransition ||
5759 - ((didWarnOld18Alpha = !0),
5760 - console.error(
5761 - "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."
5762 - ));
5763 - var value = getSnapshot();
5764 - if (!didWarnUncachedGetSnapshot) {
5765 - var cachedValue = getSnapshot();
5766 - objectIs(value, cachedValue) ||
5767 - (console.error(
5768 - "The result of getSnapshot should be cached to avoid an infinite loop"
5769 - ),
5770 - (didWarnUncachedGetSnapshot = !0));
5771 - }
5772 - cachedValue = useState({
5773 - inst: { value: value, getSnapshot: getSnapshot }
5774 - });
5775 - var inst = cachedValue[0].inst,
5776 - forceUpdate = cachedValue[1];
5777 - useLayoutEffect(
5778 - function () {
5779 - inst.value = value;
5780 - inst.getSnapshot = getSnapshot;
5781 - checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
5782 - },
5783 - [subscribe, value, getSnapshot]
5784 - );
5785 - useEffect(
5786 - function () {
5787 - checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
5788 - return subscribe(function () {
5789 - checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
5790 - });
5791 - },
5792 - [subscribe]
5793 - );
5794 - useDebugValue(value);
5795 - return value;
5796 - }
5797 - function checkIfSnapshotChanged(inst) {
5798 - var latestGetSnapshot = inst.getSnapshot;
5799 - inst = inst.value;
5800 - try {
5801 - var nextValue = latestGetSnapshot();
5802 - return !objectIs(inst, nextValue);
5803 - } catch (error) {
5804 - return !0;
5805 - }
5806 - }
5807 - function useSyncExternalStore$1(subscribe, getSnapshot) {
5808 - return getSnapshot();
5809 - }
5810 - "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
5811 - "function" ===
5812 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
5813 - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
5814 - var React = __webpack_require__(/*! react */ "react"),
5815 - objectIs = "function" === typeof Object.is ? Object.is : is,
5816 - useState = React.useState,
5817 - useEffect = React.useEffect,
5818 - useLayoutEffect = React.useLayoutEffect,
5819 - useDebugValue = React.useDebugValue,
5820 - didWarnOld18Alpha = !1,
5821 - didWarnUncachedGetSnapshot = !1,
5822 - shim =
5823 - "undefined" === typeof window ||
5824 - "undefined" === typeof window.document ||
5825 - "undefined" === typeof window.document.createElement
5826 - ? useSyncExternalStore$1
5827 - : useSyncExternalStore$2;
5828 - exports.useSyncExternalStore =
5829 - void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
5830 - "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
5831 - "function" ===
5832 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
5833 - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
5834 - })();
5835 -
5836 -
5837 -/***/ }),
5838 -
5839 -/***/ "../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js":
5840 -/*!*************************************************************************************************************!*\
5841 - !*** ../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js ***!
5842 - \*************************************************************************************************************/
5843 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5844 -
5845 -"use strict";
5846 -/**
5847 - * @license React
5848 - * use-sync-external-store-shim/with-selector.development.js
5849 - *
5850 - * Copyright (c) Meta Platforms, Inc. and affiliates.
5851 - *
5852 - * This source code is licensed under the MIT license found in the
5853 - * LICENSE file in the root directory of this source tree.
5854 - */
5855 -
5856 -
5857 - true &&
5858 - (function () {
5859 - function is(x, y) {
5860 - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
5861 - }
5862 - "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
5863 - "function" ===
5864 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
5865 - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
5866 - var React = __webpack_require__(/*! react */ "react"),
5867 - shim = __webpack_require__(/*! use-sync-external-store/shim */ "../node_modules/use-sync-external-store/shim/index.js"),
5868 - objectIs = "function" === typeof Object.is ? Object.is : is,
5869 - useSyncExternalStore = shim.useSyncExternalStore,
5870 - useRef = React.useRef,
5871 - useEffect = React.useEffect,
5872 - useMemo = React.useMemo,
5873 - useDebugValue = React.useDebugValue;
5874 - exports.useSyncExternalStoreWithSelector = function (
5875 - subscribe,
5876 - getSnapshot,
5877 - getServerSnapshot,
5878 - selector,
5879 - isEqual
5880 - ) {
5881 - var instRef = useRef(null);
5882 - if (null === instRef.current) {
5883 - var inst = { hasValue: !1, value: null };
5884 - instRef.current = inst;
5885 - } else inst = instRef.current;
5886 - instRef = useMemo(
5887 - function () {
5888 - function memoizedSelector(nextSnapshot) {
5889 - if (!hasMemo) {
5890 - hasMemo = !0;
5891 - memoizedSnapshot = nextSnapshot;
5892 - nextSnapshot = selector(nextSnapshot);
5893 - if (void 0 !== isEqual && inst.hasValue) {
5894 - var currentSelection = inst.value;
5895 - if (isEqual(currentSelection, nextSnapshot))
5896 - return (memoizedSelection = currentSelection);
5897 - }
5898 - return (memoizedSelection = nextSnapshot);
5899 - }
5900 - currentSelection = memoizedSelection;
5901 - if (objectIs(memoizedSnapshot, nextSnapshot))
5902 - return currentSelection;
5903 - var nextSelection = selector(nextSnapshot);
5904 - if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
5905 - return (memoizedSnapshot = nextSnapshot), currentSelection;
5906 - memoizedSnapshot = nextSnapshot;
5907 - return (memoizedSelection = nextSelection);
5908 - }
5909 - var hasMemo = !1,
5910 - memoizedSnapshot,
5911 - memoizedSelection,
5912 - maybeGetServerSnapshot =
5913 - void 0 === getServerSnapshot ? null : getServerSnapshot;
5914 - return [
5915 - function () {
5916 - return memoizedSelector(getSnapshot());
5917 - },
5918 - null === maybeGetServerSnapshot
5919 - ? void 0
5920 - : function () {
5921 - return memoizedSelector(maybeGetServerSnapshot());
5922 - }
5923 - ];
5924 - },
5925 - [getSnapshot, getServerSnapshot, selector, isEqual]
5926 - );
5927 - var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
5928 - useEffect(
5929 - function () {
5930 - inst.hasValue = !0;
5931 - inst.value = value;
5932 - },
5933 - [value]
5934 - );
5935 - useDebugValue(value);
5936 - return value;
5937 - };
5938 - "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
5939 - "function" ===
5940 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
5941 - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
5942 - })();
5943 -
5944 -
5945 -/***/ }),
5946 -
5947 -/***/ "../node_modules/use-sync-external-store/shim/index.js":
5948 -/*!*************************************************************!*\
5949 - !*** ../node_modules/use-sync-external-store/shim/index.js ***!
5950 - \*************************************************************/
5951 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5952 -
5953 -"use strict";
5954 -
5955 -
5956 -if (false) // removed by dead control flow
5957 -{} else {
5958 - 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");
5959 -}
5960 -
5961 -
5962 -/***/ }),
5963 -
5964 -/***/ "../node_modules/use-sync-external-store/shim/with-selector.js":
5965 -/*!*********************************************************************!*\
5966 - !*** ../node_modules/use-sync-external-store/shim/with-selector.js ***!
5967 - \*********************************************************************/
5968 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5969 -
5970 -"use strict";
5971 -
5972 -
5973 -if (false) // removed by dead control flow
5974 -{} else {
5975 - 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");
5976 -}
5977 -
5978 -
5979 -/***/ }),
5980 -
5981 -/***/ "react":
5982 -/*!************************!*\
5983 - !*** external "React" ***!
5984 - \************************/
5985 -/***/ ((module) => {
5986 -
5987 -"use strict";
5988 -module.exports = React;
5989 -
5990 -/***/ }),
5991 -
5992 -/***/ "react-dom":
5993 -/*!***************************!*\
5994 - !*** external "ReactDOM" ***!
5995 - \***************************/
5996 -/***/ ((module) => {
5997 -
5998 -"use strict";
5999 -module.exports = ReactDOM;
6000 -
6001 -/***/ })
6002 -
6003 -/******/ });
6004 -/************************************************************************/
6005 -/******/ // The module cache
6006 -/******/ var __webpack_module_cache__ = {};
6007 -/******/
6008 -/******/ // The require function
6009 -/******/ function __webpack_require__(moduleId) {
6010 -/******/ // Check if module is in cache
6011 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
6012 -/******/ if (cachedModule !== undefined) {
6013 -/******/ return cachedModule.exports;
6014 -/******/ }
6015 -/******/ // Create a new module (and put it into the cache)
6016 -/******/ var module = __webpack_module_cache__[moduleId] = {
6017 -/******/ // no module.id needed
6018 -/******/ // no module.loaded needed
6019 -/******/ exports: {}
6020 -/******/ };
6021 -/******/
6022 -/******/ // Execute the module function
6023 -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6024 -/******/
6025 -/******/ // Return the exports of the module
6026 -/******/ return module.exports;
6027 -/******/ }
6028 -/******/
6029 -/************************************************************************/
6030 -/******/ /* webpack/runtime/compat get default export */
6031 -/******/ (() => {
6032 -/******/ // getDefaultExport function for compatibility with non-harmony modules
6033 -/******/ __webpack_require__.n = (module) => {
6034 -/******/ var getter = module && module.__esModule ?
6035 -/******/ () => (module['default']) :
6036 -/******/ () => (module);
6037 -/******/ __webpack_require__.d(getter, { a: getter });
6038 -/******/ return getter;
6039 -/******/ };
6040 -/******/ })();
6041 -/******/
6042 -/******/ /* webpack/runtime/define property getters */
6043 -/******/ (() => {
6044 -/******/ // define getter functions for harmony exports
6045 -/******/ __webpack_require__.d = (exports, definition) => {
6046 -/******/ for(var key in definition) {
6047 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
6048 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
6049 -/******/ }
6050 -/******/ }
6051 -/******/ };
6052 -/******/ })();
6053 -/******/
6054 -/******/ /* webpack/runtime/global */
6055 -/******/ (() => {
6056 -/******/ __webpack_require__.g = (function() {
6057 -/******/ if (typeof globalThis === 'object') return globalThis;
6058 -/******/ try {
6059 -/******/ return this || new Function('return this')();
6060 -/******/ } catch (e) {
6061 -/******/ if (typeof window === 'object') return window;
6062 -/******/ }
6063 -/******/ })();
6064 -/******/ })();
6065 -/******/
6066 -/******/ /* webpack/runtime/hasOwnProperty shorthand */
6067 -/******/ (() => {
6068 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
6069 -/******/ })();
6070 -/******/
6071 -/******/ /* webpack/runtime/make namespace object */
6072 -/******/ (() => {
6073 -/******/ // define __esModule on exports
6074 -/******/ __webpack_require__.r = (exports) => {
6075 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6076 -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6077 -/******/ }
6078 -/******/ Object.defineProperty(exports, '__esModule', { value: true });
6079 -/******/ };
6080 -/******/ })();
6081 -/******/
6082 -/************************************************************************/
6083 -var __webpack_exports__ = {};
6084 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
6085 -(() => {
6086 -"use strict";
6087 -/*!*************************************************!*\
6088 - !*** ../core/common/assets/js/vendors-redux.js ***!
6089 - \*************************************************/
6090 -
6091 -
6092 -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
6093 -var reduxToolkit = _interopRequireWildcard(__webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"));
6094 -var reactRedux = _interopRequireWildcard(__webpack_require__(/*! react-redux */ "../node_modules/react-redux/es/index.js"));
6095 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
6096 -window.elementorVendors = window.elementorVendors || {};
6097 -window.elementorVendors.reduxToolkit = reduxToolkit;
6098 -window.elementorVendors.reactRedux = reactRedux;
6099 -})();
6100 -
6101 -/******/ })()
6102 -;
4831 +//#endregion
4832 +})(React, ReactDOM);
6103 4833 //# sourceMappingURL=vendors-redux.js.map