PageSourceSearch

https://tbpnickel.com/_next/static/chunks/pages/_app-f9136a6089e008a0.js

js tbpnickel.com collected 2026-09-26 08:25:55 UTC 199,119 bytes, 4,692 lines download raw bytes

1(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[888],{
2
3/***/ 8679:
4/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5
6"use strict";
7
8
9var reactIs = __webpack_require__(9864);
10
11/**
12 * Copyright 2015, Yahoo! Inc.
13 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
14 */
15var REACT_STATICS = {
16  childContextTypes: true,
17  contextType: true,
18  contextTypes: true,
19  defaultProps: true,
20  displayName: true,
21  getDefaultProps: true,
22  getDerivedStateFromError: true,
23  getDerivedStateFromProps: true,
24  mixins: true,
25  propTypes: true,
26  type: true
27};
28var KNOWN_STATICS = {
29  name: true,
30  length: true,
31  prototype: true,
32  caller: true,
33  callee: true,
34  arguments: true,
35  arity: true
36};
37var FORWARD_REF_STATICS = {
38  '$$typeof': true,
39  render: true,
40  defaultProps: true,
41  displayName: true,
42  propTypes: true
43};
44var MEMO_STATICS = {
45  '$$typeof': true,
46  compare: true,
47  defaultProps: true,
48  displayName: true,
49  propTypes: true,
50  type: true
51};
52var TYPE_STATICS = {};
53TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
54TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
55
56function getStatics(component) {
57  // React v16.11 and below
58  if (reactIs.isMemo(component)) {
59    return MEMO_STATICS;
60  } // React v16.12 and above
61
62
63  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
64}
65
66var defineProperty = Object.defineProperty;
67var getOwnPropertyNames = Object.getOwnPropertyNames;
68var getOwnPropertySymbols = Object.getOwnPropertySymbols;
69var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
70var getPrototypeOf = Object.getPrototypeOf;
71var objectPrototype = Object.prototype;
72function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
73  if (typeof sourceComponent !== 'string') {
74    // don't hoist over string (html) components
75    if (objectPrototype) {
76      var inheritedComponent = getPrototypeOf(sourceComponent);
77
78      if (inheritedComponent && inheritedComponent !== objectPrototype) {
79        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
80      }
81    }
82
83    var keys = getOwnPropertyNames(sourceComponent);
84
85    if (getOwnPropertySymbols) {
86      keys = keys.concat(getOwnPropertySymbols(sourceComponent));
87    }
88
89    var targetStatics = getStatics(targetComponent);
90    var sourceStatics = getStatics(sourceComponent);
91
92    for (var i = 0; i < keys.length; ++i) {
93      var key = keys[i];
94
95      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
96        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
97
98        try {
99          // Avoid failures from read-only properties
100          defineProperty(targetComponent, key, descriptor);
101        } catch (e) {}
102      }
103    }
104  }
105
106  return targetComponent;
107}
108
109module.exports = hoistNonReactStatics;
110
111
112/***/ }),
113
114/***/ 3454:
115/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
116
117"use strict";
118
119var _global_process, _global_process1;
120module.exports = ((_global_process = __webpack_require__.g.process) == null ? void 0 : _global_process.env) && typeof ((_global_process1 = __webpack_require__.g.process) == null ? void 0 : _global_process1.env) === "object" ? __webpack_require__.g.process : __webpack_require__(7663);
121
122//# sourceMappingURL=process.js.map
123
124/***/ }),
125
126/***/ 6840:
127/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
128
129
130    (window.__NEXT_P = window.__NEXT_P || []).push([
131      "/_app",
132      function () {
133        return __webpack_require__(9645);
134      }
135    ]);
136    if(false) {}
137  
138
139/***/ }),
140
141/***/ 9645:
142/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
143
144"use strict";
145__webpack_require__.r(__webpack_exports__);
146/* harmony export */ __webpack_require__.d(__webpack_exports__, {
147/* harmony export */   "default": function() { return /* binding */ App; }
148/* harmony export */ });
149/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5893);
150/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7294);
151/* harmony import */ var _styles_globals_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(168);
152/* harmony import */ var _styles_globals_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_styles_globals_scss__WEBPACK_IMPORTED_MODULE_2__);
153/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6064);
154/* harmony import */ var _reduxstore_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5947);
155
156
157
158
159
160function App(param) {
161    let { Component, pageProps } = param;
162    const storeRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
163    const isInitialMount = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(true);
164    if (!storeRef.current) {
165        storeRef.current = (0,_reduxstore_index__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(pageProps === null || pageProps === void 0 ? void 0 : pageProps.initialReduxState);
166    }
167    (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{
168        // Skip first mount — preloadedState already handles initial hydration
169        if (isInitialMount.current) {
170            isInitialMount.current = false;
171            return;
172        }
173        if (storeRef.current && (pageProps === null || pageProps === void 0 ? void 0 : pageProps.initialReduxState)) {
174            const s = pageProps.initialReduxState;
175            if (s.pageData !== undefined) storeRef.current.dispatch({
176                type: "pageData",
177                value: s.pageData
178            });
179            if (s.pageDataArray !== undefined) storeRef.current.dispatch({
180                type: "pageDataArray",
181                value: s.pageDataArray
182            });
183            if (s.paginationData !== undefined) storeRef.current.dispatch({
184                type: "paginationData",
185                value: s.paginationData
186            });
187            if (s.settingData !== undefined) storeRef.current.dispatch({
188                type: "settingData",
189                value: s.settingData
190            });
191            if (s.wordingData !== undefined) storeRef.current.dispatch({
192                type: "wordingData",
193                value: s.wordingData
194            });
195            if (s.navigationData !== undefined) storeRef.current.dispatch({
196                type: "navigationData",
197                value: s.navigationData
198            });
199            if (s.currentTemplate !== undefined) storeRef.current.dispatch({
200                type: "currentTemplate",
201                value: s.currentTemplate
202            });
203            if (s.paramData !== undefined) storeRef.current.dispatch({
204                type: "paramData",
205                value: s.paramData
206            });
207            if (s.slugData !== undefined) storeRef.current.dispatch({
208                type: "slugData",
209                value: s.slugData
210            });
211        }
212    }, [
213        pageProps === null || pageProps === void 0 ? void 0 : pageProps.initialReduxState
214    ]);
215    return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_redux__WEBPACK_IMPORTED_MODULE_3__/* .Provider */ .zt, {
216        store: storeRef.current,
217        children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Component, {
218            ...pageProps
219        })
220    });
221}
222
223
224/***/ }),
225
226/***/ 5947:
227/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
228
229"use strict";
230
231// EXPORTS
232__webpack_require__.d(__webpack_exports__, {
233  A: function() { return /* binding */ ConnectManage; },
234  Z: function() { return /* binding */ reduxstore; }
235});
236
237// NAMESPACE OBJECT: ./reduxstore/global/actions.tsx
238var actions_namespaceObject = {};
239__webpack_require__.r(actions_namespaceObject);
240__webpack_require__.d(actions_namespaceObject, {
241  setCurrentTemplate: function() { return setCurrentTemplate; },
242  setMetaData: function() { return setMetaData; },
243  setNavigationData: function() { return setNavigationData; },
244  setPageData: function() { return setPageData; },
245  setPageDataArray: function() { return setPageDataArray; },
246  setPaginationData: function() { return setPaginationData; },
247  setParamData: function() { return setParamData; },
248  setPdfUrlReader: function() { return setPdfUrlReader; },
249  setSettingData: function() { return setSettingData; },
250  setSlugData: function() { return setSlugData; },
251  setToken: function() { return setToken; },
252  setWordingData: function() { return setWordingData; }
253});
254
255;// CONCATENATED MODULE: ./node_modules/immer/dist/immer.esm.mjs
256function 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(false){ var i, o; }throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}
vendor: 16,245 bytes, line 256
256(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 true||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( false&&0,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 false&&0,en.get(r,n)},set:function(r){var t=this[Q]; false&&0,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 false&&0,on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return false&&0,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)}
256var 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]; false&&(0);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 */ var immer_esm = ((/* unused pure expression or super */ null && (fn)));
257//# sourceMappingURL=immer.esm.js.map
258
259;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
260function _typeof(o) {
261  "@babel/helpers - typeof";
262
263  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
264    return typeof o;
265  } : function (o) {
266    return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
267  }, _typeof(o);
268}
269
270;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
271
272function toPrimitive(t, r) {
273  if ("object" != _typeof(t) || !t) return t;
274  var e = t[Symbol.toPrimitive];
275  if (void 0 !== e) {
276    var i = e.call(t, r || "default");
277    if ("object" != _typeof(i)) return i;
278    throw new TypeError("@@toPrimitive must return a primitive value.");
279  }
280  return ("string" === r ? String : Number)(t);
281}
282
283;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
284
285
286function toPropertyKey(t) {
287  var i = toPrimitive(t, "string");
288  return "symbol" == _typeof(i) ? i : i + "";
289}
290
291;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
292
293function _defineProperty(e, r, t) {
294  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
295    value: t,
296    enumerable: !0,
297    configurable: !0,
298    writable: !0
299  }) : e[r] = t, e;
300}
301
302;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
303
304function ownKeys(e, r) {
305  var t = Object.keys(e);
306  if (Object.getOwnPropertySymbols) {
307    var o = Object.getOwnPropertySymbols(e);
308    r && (o = o.filter(function (r) {
309      return Object.getOwnPropertyDescriptor(e, r).enumerable;
310    })), t.push.apply(t, o);
311  }
312  return t;
313}
314function _objectSpread2(e) {
315  for (var r = 1; r < arguments.length; r++) {
316    var t = null != arguments[r] ? arguments[r] : {};
317    r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
318      _defineProperty(e, r, t[r]);
319    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
320      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
321    });
322  }
323  return e;
324}
325
326;// CONCATENATED MODULE: ./node_modules/redux/es/redux.js
327
328
329/**
330 * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
331 *
332 * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
333 * during build.
334 * @param {number} code
335 */
336function formatProdErrorMessage(code) {
337  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. ';
338}
339
340// Inlined version of the `symbol-observable` polyfill
341var $$observable = (function () {
342  return typeof Symbol === 'function' && Symbol.observable || '@@observable';
343})();
344
345/**
346 * These are private action types reserved by Redux.
347 * For any unknown actions, you must return the current state.
348 * If the current state is undefined, you must return the initial state.
349 * Do not reference these action types directly in your code.
350 */
351var randomString = function randomString() {
352  return Math.random().toString(36).substring(7).split('').join('.');
353};
354
355var ActionTypes = {
356  INIT: "@@redux/INIT" + randomString(),
357  REPLACE: "@@redux/REPLACE" + randomString(),
358  PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
359    return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
360  }
361};
362
363/**
364 * @param {any} obj The object to inspect.
365 * @returns {boolean} True if the argument appears to be a plain object.
366 */
367function isPlainObject(obj) {
368  if (typeof obj !== 'object' || obj === null) return false;
vendor: 11,017 bytes, lines 369-716
369  var proto = obj;
370
371  while (Object.getPrototypeOf(proto) !== null) {
372    proto = Object.getPrototypeOf(proto);
373  }
374
375  return Object.getPrototypeOf(obj) === proto;
376}
377
378// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
379function miniKindOf(val) {
380  if (val === void 0) return 'undefined';
381  if (val === null) return 'null';
382  var type = typeof val;
383
384  switch (type) {
385    case 'boolean':
386    case 'string':
387    case 'number':
388    case 'symbol':
389    case 'function':
390      {
391        return type;
392      }
393  }
394
395  if (Array.isArray(val)) return 'array';
396  if (isDate(val)) return 'date';
397  if (isError(val)) return 'error';
398  var constructorName = ctorName(val);
399
400  switch (constructorName) {
401    case 'Symbol':
402    case 'Promise':
403    case 'WeakMap':
404    case 'WeakSet':
405    case 'Map':
406    case 'Set':
407      return constructorName;
408  } // other
409
410
411  return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
412}
413
414function ctorName(val) {
415  return typeof val.constructor === 'function' ? val.constructor.name : null;
416}
417
418function isError(val) {
419  return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
420}
421
422function isDate(val) {
423  if (val instanceof Date) return true;
424  return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
425}
426
427function kindOf(val) {
428  var typeOfVal = typeof val;
429
430  if (false) {}
431
432  return typeOfVal;
433}
434
435/**
436 * @deprecated
437 *
438 * **We recommend using the `configureStore` method
439 * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
440 *
441 * Redux Toolkit is our recommended approach for writing Redux logic today,
442 * including store setup, reducers, data fetching, and more.
443 *
444 * **For more details, please read this Redux docs page:**
445 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
446 *
447 * `configureStore` from Redux Toolkit is an improved version of `createStore` that
448 * simplifies setup and helps avoid common bugs.
449 *
450 * You should not be using the `redux` core package by itself today, except for learning purposes.
451 * The `createStore` method from the core `redux` package will not be removed, but we encourage
452 * all users to migrate to using Redux Toolkit for all Redux code.
453 *
454 * If you want to use `createStore` without this visual deprecation warning, use
455 * the `legacy_createStore` import instead:
456 *
457 * `import { legacy_createStore as createStore} from 'redux'`
458 *
459 */
460
461function createStore(reducer, preloadedState, enhancer) {
462  var _ref2;
463
464  if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
465    throw new Error( true ? formatProdErrorMessage(0) : 0);
466  }
467
468  if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
469    enhancer = preloadedState;
470    preloadedState = undefined;
471  }
472
473  if (typeof enhancer !== 'undefined') {
474    if (typeof enhancer !== 'function') {
475      throw new Error( true ? formatProdErrorMessage(1) : 0);
476    }
477
478    return enhancer(createStore)(reducer, preloadedState);
479  }
480
481  if (typeof reducer !== 'function') {
482    throw new Error( true ? formatProdErrorMessage(2) : 0);
483  }
484
485  var currentReducer = reducer;
486  var currentState = preloadedState;
487  var currentListeners = [];
488  var nextListeners = currentListeners;
489  var isDispatching = false;
490  /**
491   * This makes a shallow copy of currentListeners so we can use
492   * nextListeners as a temporary list while dispatching.
493   *
494   * This prevents any bugs around consumers calling
495   * subscribe/unsubscribe in the middle of a dispatch.
496   */
497
498  function ensureCanMutateNextListeners() {
499    if (nextListeners === currentListeners) {
500      nextListeners = currentListeners.slice();
501    }
502  }
503  /**
504   * Reads the state tree managed by the store.
505   *
506   * @returns {any} The current state tree of your application.
507   */
508
509
510  function getState() {
511    if (isDispatching) {
512      throw new Error( true ? formatProdErrorMessage(3) : 0);
513    }
514
515    return currentState;
516  }
517  /**
518   * Adds a change listener. It will be called any time an action is dispatched,
519   * and some part of the state tree may potentially have changed. You may then
520   * call `getState()` to read the current state tree inside the callback.
521   *
522   * You may call `dispatch()` from a change listener, with the following
523   * caveats:
524   *
525   * 1. The subscriptions are snapshotted just before every `dispatch()` call.
526   * If you subscribe or unsubscribe while the listeners are being invoked, this
527   * will not have any effect on the `dispatch()` that is currently in progress.
528   * However, the next `dispatch()` call, whether nested or not, will use a more
529   * recent snapshot of the subscription list.
530   *
531   * 2. The listener should not expect to see all state changes, as the state
532   * might have been updated multiple times during a nested `dispatch()` before
533   * the listener is called. It is, however, guaranteed that all subscribers
534   * registered before the `dispatch()` started will be called with the latest
535   * state by the time it exits.
536   *
537   * @param {Function} listener A callback to be invoked on every dispatch.
538   * @returns {Function} A function to remove this change listener.
539   */
540
541
542  function subscribe(listener) {
543    if (typeof listener !== 'function') {
544      throw new Error( true ? formatProdErrorMessage(4) : 0);
545    }
546
547    if (isDispatching) {
548      throw new Error( true ? formatProdErrorMessage(5) : 0);
549    }
550
551    var isSubscribed = true;
552    ensureCanMutateNextListeners();
553    nextListeners.push(listener);
554    return function unsubscribe() {
555      if (!isSubscribed) {
556        return;
557      }
558
559      if (isDispatching) {
560        throw new Error( true ? formatProdErrorMessage(6) : 0);
561      }
562
563      isSubscribed = false;
564      ensureCanMutateNextListeners();
565      var index = nextListeners.indexOf(listener);
566      nextListeners.splice(index, 1);
567      currentListeners = null;
568    };
569  }
570  /**
571   * Dispatches an action. It is the only way to trigger a state change.
572   *
573   * The `reducer` function, used to create the store, will be called with the
574   * current state tree and the given `action`. Its return value will
575   * be considered the **next** state of the tree, and the change listeners
576   * will be notified.
577   *
578   * The base implementation only supports plain object actions. If you want to
579   * dispatch a Promise, an Observable, a thunk, or something else, you need to
580   * wrap your store creating function into the corresponding middleware. For
581   * example, see the documentation for the `redux-thunk` package. Even the
582   * middleware will eventually dispatch plain object actions using this method.
583   *
584   * @param {Object} action A plain object representing “what changed”. It is
585   * a good idea to keep actions serializable so you can record and replay user
586   * sessions, or use the time travelling `redux-devtools`. An action must have
587   * a `type` property which may not be `undefined`. It is a good idea to use
588   * string constants for action types.
589   *
590   * @returns {Object} For convenience, the same action object you dispatched.
591   *
592   * Note that, if you use a custom middleware, it may wrap `dispatch()` to
593   * return something else (for example, a Promise you can await).
594   */
595
596
597  function dispatch(action) {
598    if (!isPlainObject(action)) {
599      throw new Error( true ? formatProdErrorMessage(7) : 0);
600    }
601
602    if (typeof action.type === 'undefined') {
603      throw new Error( true ? formatProdErrorMessage(8) : 0);
604    }
605
606    if (isDispatching) {
607      throw new Error( true ? formatProdErrorMessage(9) : 0);
608    }
609
610    try {
611      isDispatching = true;
612      currentState = currentReducer(currentState, action);
613    } finally {
614      isDispatching = false;
615    }
616
617    var listeners = currentListeners = nextListeners;
618
619    for (var i = 0; i < listeners.length; i++) {
620      var listener = listeners[i];
621      listener();
622    }
623
624    return action;
625  }
626  /**
627   * Replaces the reducer currently used by the store to calculate the state.
628   *
629   * You might need this if your app implements code splitting and you want to
630   * load some of the reducers dynamically. You might also need this if you
631   * implement a hot reloading mechanism for Redux.
632   *
633   * @param {Function} nextReducer The reducer for the store to use instead.
634   * @returns {void}
635   */
636
637
638  function replaceReducer(nextReducer) {
639    if (typeof nextReducer !== 'function') {
640      throw new Error( true ? formatProdErrorMessage(10) : 0);
641    }
642
643    currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
644    // Any reducers that existed in both the new and old rootReducer
645    // will receive the previous state. This effectively populates
646    // the new state tree with any relevant data from the old one.
647
648    dispatch({
649      type: ActionTypes.REPLACE
650    });
651  }
652  /**
653   * Interoperability point for observable/reactive libraries.
654   * @returns {observable} A minimal observable of state changes.
655   * For more information, see the observable proposal:
656   * https://github.com/tc39/proposal-observable
657   */
658
659
660  function observable() {
661    var _ref;
662
663    var outerSubscribe = subscribe;
664    return _ref = {
665      /**
666       * The minimal observable subscription method.
667       * @param {Object} observer Any object that can be used as an observer.
668       * The observer object should have a `next` method.
669       * @returns {subscription} An object with an `unsubscribe` method that can
670       * be used to unsubscribe the observable from the store, and prevent further
671       * emission of values from the observable.
672       */
673      subscribe: function subscribe(observer) {
674        if (typeof observer !== 'object' || observer === null) {
675          throw new Error( true ? formatProdErrorMessage(11) : 0);
676        }
677
678        function observeState() {
679          if (observer.next) {
680            observer.next(getState());
681          }
682        }
683
684        observeState();
685        var unsubscribe = outerSubscribe(observeState);
686        return {
687          unsubscribe: unsubscribe
688        };
689      }
690    }, _ref[$$observable] = function () {
691      return this;
692    }, _ref;
693  } // When a store is created, an "INIT" action is dispatched so that every
694  // reducer returns their initial state. This effectively populates
695  // the initial state tree.
696
697
698  dispatch({
699    type: ActionTypes.INIT
700  });
701  return _ref2 = {
702    dispatch: dispatch,
703    subscribe: subscribe,
704    getState: getState,
705    replaceReducer: replaceReducer
706  }, _ref2[$$observable] = observable, _ref2;
707}
708/**
709 * Creates a Redux store that holds the state tree.
710 *
711 * **We recommend using `configureStore` from the
712 * `@reduxjs/toolkit` package**, which replaces `createStore`:
713 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
714 *
715 * The only way to change the data in the store is to call `dispatch()` on it.
716 *
717 * There should only be a single store in your app. To specify how different
718 * parts of the state tree respond to actions, you may combine several reducers
719 * into a single reducer function by using `combineReducers`.
720 *
721 * @param {Function} reducer A function that returns the next state tree, given
722 * the current state tree and the action to handle.
723 *
724 * @param {any} [preloadedState] The initial state. You may optionally specify it
725 * to hydrate the state from the server in universal apps, or to restore a
726 * previously serialized user session.
727 * If you use `combineReducers` to produce the root reducer function, this must be
728 * an object with the same shape as `combineReducers` keys.
729 *
730 * @param {Function} [enhancer] The store enhancer. You may optionally specify it
731 * to enhance the store with third-party capabilities such as middleware,
732 * time travel, persistence, etc. The only store enhancer that ships with Redux
733 * is `applyMiddleware()`.
734 *
735 * @returns {Store} A Redux store that lets you read the state, dispatch actions
736 * and subscribe to changes.
737 */
738
739var legacy_createStore = (/* unused pure expression or super */ null && (createStore))
vendor: 8,978 bytes, lines 739-1016
739;
740
741/**
742 * Prints a warning in the console if it exists.
743 *
744 * @param {String} message The warning message.
745 * @returns {void}
746 */
747function warning(message) {
748  /* eslint-disable no-console */
749  if (typeof console !== 'undefined' && typeof console.error === 'function') {
750    console.error(message);
751  }
752  /* eslint-enable no-console */
753
754
755  try {
756    // This error was thrown as a convenience so that if you enable
757    // "break on all exceptions" in your console,
758    // it would pause the execution at this line.
759    throw new Error(message);
760  } catch (e) {} // eslint-disable-line no-empty
761
762}
763
764function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
765  var reducerKeys = Object.keys(reducers);
766  var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
767
768  if (reducerKeys.length === 0) {
769    return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
770  }
771
772  if (!isPlainObject(inputState)) {
773    return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
774  }
775
776  var unexpectedKeys = Object.keys(inputState).filter(function (key) {
777    return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
778  });
779  unexpectedKeys.forEach(function (key) {
780    unexpectedKeyCache[key] = true;
781  });
782  if (action && action.type === ActionTypes.REPLACE) return;
783
784  if (unexpectedKeys.length > 0) {
785    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.");
786  }
787}
788
789function assertReducerShape(reducers) {
790  Object.keys(reducers).forEach(function (key) {
791    var reducer = reducers[key];
792    var initialState = reducer(undefined, {
793      type: ActionTypes.INIT
794    });
795
796    if (typeof initialState === 'undefined') {
797      throw new Error( true ? formatProdErrorMessage(12) : 0);
798    }
799
800    if (typeof reducer(undefined, {
801      type: ActionTypes.PROBE_UNKNOWN_ACTION()
802    }) === 'undefined') {
803      throw new Error( true ? formatProdErrorMessage(13) : 0);
804    }
805  });
806}
807/**
808 * Turns an object whose values are different reducer functions, into a single
809 * reducer function. It will call every child reducer, and gather their results
810 * into a single state object, whose keys correspond to the keys of the passed
811 * reducer functions.
812 *
813 * @param {Object} reducers An object whose values correspond to different
814 * reducer functions that need to be combined into one. One handy way to obtain
815 * it is to use ES6 `import * as reducers` syntax. The reducers may never return
816 * undefined for any action. Instead, they should return their initial state
817 * if the state passed to them was undefined, and the current state for any
818 * unrecognized action.
819 *
820 * @returns {Function} A reducer function that invokes every reducer inside the
821 * passed object, and builds a state object with the same shape.
822 */
823
824
825function combineReducers(reducers) {
826  var reducerKeys = Object.keys(reducers);
827  var finalReducers = {};
828
829  for (var i = 0; i < reducerKeys.length; i++) {
830    var key = reducerKeys[i];
831
832    if (false) {}
833
834    if (typeof reducers[key] === 'function') {
835      finalReducers[key] = reducers[key];
836    }
837  }
838
839  var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
840  // keys multiple times.
841
842  var unexpectedKeyCache;
843
844  if (false) {}
845
846  var shapeAssertionError;
847
848  try {
849    assertReducerShape(finalReducers);
850  } catch (e) {
851    shapeAssertionError = e;
852  }
853
854  return function combination(state, action) {
855    if (state === void 0) {
856      state = {};
857    }
858
859    if (shapeAssertionError) {
860      throw shapeAssertionError;
861    }
862
863    if (false) { var warningMessage; }
864
865    var hasChanged = false;
866    var nextState = {};
867
868    for (var _i = 0; _i < finalReducerKeys.length; _i++) {
869      var _key = finalReducerKeys[_i];
870      var reducer = finalReducers[_key];
871      var previousStateForKey = state[_key];
872      var nextStateForKey = reducer(previousStateForKey, action);
873
874      if (typeof nextStateForKey === 'undefined') {
875        var actionType = action && action.type;
876        throw new Error( true ? formatProdErrorMessage(14) : 0);
877      }
878
879      nextState[_key] = nextStateForKey;
880      hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
881    }
882
883    hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
884    return hasChanged ? nextState : state;
885  };
886}
887
888function bindActionCreator(actionCreator, dispatch) {
889  return function () {
890    return dispatch(actionCreator.apply(this, arguments));
891  };
892}
893/**
894 * Turns an object whose values are action creators, into an object with the
895 * same keys, but with every function wrapped into a `dispatch` call so they
896 * may be invoked directly. This is just a convenience method, as you can call
897 * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
898 *
899 * For convenience, you can also pass an action creator as the first argument,
900 * and get a dispatch wrapped function in return.
901 *
902 * @param {Function|Object} actionCreators An object whose values are action
903 * creator functions. One handy way to obtain it is to use ES6 `import * as`
904 * syntax. You may also pass a single function.
905 *
906 * @param {Function} dispatch The `dispatch` function available on your Redux
907 * store.
908 *
909 * @returns {Function|Object} The object mimicking the original object, but with
910 * every action creator wrapped into the `dispatch` call. If you passed a
911 * function as `actionCreators`, the return value will also be a single
912 * function.
913 */
914
915
916function bindActionCreators(actionCreators, dispatch) {
917  if (typeof actionCreators === 'function') {
918    return bindActionCreator(actionCreators, dispatch);
919  }
920
921  if (typeof actionCreators !== 'object' || actionCreators === null) {
922    throw new Error( true ? formatProdErrorMessage(16) : 0);
923  }
924
925  var boundActionCreators = {};
926
927  for (var key in actionCreators) {
928    var actionCreator = actionCreators[key];
929
930    if (typeof actionCreator === 'function') {
931      boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
932    }
933  }
934
935  return boundActionCreators;
936}
937
938/**
939 * Composes single-argument functions from right to left. The rightmost
940 * function can take multiple arguments as it provides the signature for
941 * the resulting composite function.
942 *
943 * @param {...Function} funcs The functions to compose.
944 * @returns {Function} A function obtained by composing the argument functions
945 * from right to left. For example, compose(f, g, h) is identical to doing
946 * (...args) => f(g(h(...args))).
947 */
948function compose() {
949  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
950    funcs[_key] = arguments[_key];
951  }
952
953  if (funcs.length === 0) {
954    return function (arg) {
955      return arg;
956    };
957  }
958
959  if (funcs.length === 1) {
960    return funcs[0];
961  }
962
963  return funcs.reduce(function (a, b) {
964    return function () {
965      return a(b.apply(void 0, arguments));
966    };
967  });
968}
969
970/**
971 * Creates a store enhancer that applies middleware to the dispatch method
972 * of the Redux store. This is handy for a variety of tasks, such as expressing
973 * asynchronous actions in a concise manner, or logging every action payload.
974 *
975 * See `redux-thunk` package as an example of the Redux middleware.
976 *
977 * Because middleware is potentially asynchronous, this should be the first
978 * store enhancer in the composition chain.
979 *
980 * Note that each middleware will be given the `dispatch` and `getState` functions
981 * as named arguments.
982 *
983 * @param {...Function} middlewares The middleware chain to be applied.
984 * @returns {Function} A store enhancer applying the middleware.
985 */
986
987function applyMiddleware() {
988  for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
989    middlewares[_key] = arguments[_key];
990  }
991
992  return function (createStore) {
993    return function () {
994      var store = createStore.apply(void 0, arguments);
995
996      var _dispatch = function dispatch() {
997        throw new Error( true ? formatProdErrorMessage(15) : 0);
998      };
999
1000      var middlewareAPI = {
1001        getState: store.getState,
1002        dispatch: function dispatch() {
1003          return _dispatch.apply(void 0, arguments);
1004        }
1005      };
1006      var chain = middlewares.map(function (middleware) {
1007        return middleware(middlewareAPI);
1008      });
1009      _dispatch = compose.apply(void 0, chain)(store.dispatch);
1010      return _objectSpread2(_objectSpread2({}, store), {}, {
1011        dispatch: _dispatch
1012      });
1013    };
1014  };
1015}
1016
1017
1018
1019;// CONCATENATED MODULE: ./node_modules/redux-thunk/es/index.js
1020/** A function that accepts a potential "extra argument" value to be injected later,
1021 * and returns an instance of the thunk middleware that uses that value
1022 */
1023function createThunkMiddleware(extraArgument) {
1024  // Standard Redux middleware definition pattern:
1025  // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
1026  var middleware = function middleware(_ref) {
1027    var dispatch = _ref.dispatch,
1028        getState = _ref.getState;
1029    return function (next) {
1030      return function (action) {
1031        // The thunk middleware looks for any functions that were passed to `store.dispatch`.
1032        // If this "action" is really a function, call it and return the result.
1033        if (typeof action === 'function') {
1034          // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
1035          return action(dispatch, getState, extraArgument);
1036        } // Otherwise, pass the action down the middleware chain as usual
1037
1038
1039        return next(action);
1040      };
1041    };
1042  };
1043
1044  return middleware;
1045}
1046
1047var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
1048// with whatever "extra arg" they want to inject into their thunks
1049
1050thunk.withExtraArgument = createThunkMiddleware;
1051/* harmony default export */ var es = (thunk);
1052;// CONCATENATED MODULE: ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js
1053/* provided dependency */ var process = __webpack_require__(3454);
1054var __extends = (undefined && undefined.__extends) || (function () {
1055    var extendStatics = function (d, b) {
1056        extendStatics = Object.setPrototypeOf ||
1057            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1058            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1059        return extendStatics(d, b);
1060    };
1061    return function (d, b) {
1062        if (typeof b !== "function" && b !== null)
1063            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1064        extendStatics(d, b);
1065        function __() { this.constructor = d; }
1066        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1067    };
1068})();
1069var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
1070    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1071    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1072    function verb(n) { return function (v) { return step([n, v]); }; }
1073    function step(op) {
1074        if (f) throw new TypeError("Generator is already executing.");
1075        while (_) try {
1076            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;
1077            if (y = 0, t) op = [op[0] & 2, t.value];
1078            switch (op[0]) {
1079                case 0: case 1: t = op; break;
1080                case 4: _.label++; return { value: op[1], done: false };
1081                case 5: _.label++; y = op[1]; op = [0]; continue;
1082                case 7: op = _.ops.pop(); _.trys.pop(); continue;
1083                default:
1084                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1085                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1086                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1087                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1088                    if (t[2]) _.ops.pop();
1089                    _.trys.pop(); continue;
1090            }
1091            op = body.call(thisArg, _);
1092        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1093        if (op[0] & 5) throw op[1];
1093 return { value: op[0] ? op[1] : void 0, done: true };
1094    }
1095};
1096var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
1097    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
1098        to[j] = from[i];
1099    return to;
1100};
1101var __defProp = Object.defineProperty;
1102var __defProps = Object.defineProperties;
1103var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1104var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1105var __hasOwnProp = Object.prototype.hasOwnProperty;
1106var __propIsEnum = Object.prototype.propertyIsEnumerable;
1107var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
1108var __spreadValues = function (a, b) {
1109    for (var prop in b || (b = {}))
1110        if (__hasOwnProp.call(b, prop))
1111            __defNormalProp(a, prop, b[prop]);
1112    if (__getOwnPropSymbols)
1113        for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
1114            var prop = _c[_i];
1115            if (__propIsEnum.call(b, prop))
1116                __defNormalProp(a, prop, b[prop]);
1117        }
1118    return a;
1119};
1120var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
1121var __async = function (__this, __arguments, generator) {
1122    return new Promise(function (resolve, reject) {
1123        var fulfilled = function (value) {
1124            try {
1125                step(generator.next(value));
1126            }
1127            catch (e) {
1128                reject(e);
1129            }
1130        };
1131        var rejected = function (value) {
1132            try {
1133                step(generator.throw(value));
1134            }
1135            catch (e) {
1136                reject(e);
1137            }
1138        };
1139        var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
1140        step((generator = generator.apply(__this, __arguments)).next());
1141    });
1142};
1143// src/index.ts
1144
1145
1146
1147
1148// src/createDraftSafeSelector.ts
1149
1150
1151var createDraftSafeSelector = function () {
1152    var args = [];
1153    for (var _i = 0; _i < arguments.length; _i++) {
1154        args[_i] = arguments[_i];
1155    }
1156    var selector = createSelector.apply(void 0, args);
1157    var wrappedSelector = function (value) {
1158        var rest = [];
1159        for (var _i = 1; _i < arguments.length; _i++) {
1160            rest[_i - 1] = arguments[_i];
1161        }
1162        return selector.apply(void 0, __spreadArray([isDraft(value) ? current(value) : value], rest));
1163    };
1164    return wrappedSelector;
1165};
1166// src/configureStore.ts
1167
1168// src/devtoolsExtension.ts
1169
1170var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
1171    if (arguments.length === 0)
1172        return void 0;
1173    if (typeof arguments[0] === "object")
1174        return compose;
1175    return compose.apply(null, arguments);
1176};
1177var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
1178    return function (noop2) {
1179        return noop2;
1180    };
1181};
1182// src/isPlainObject.ts
1183function redux_toolkit_esm_isPlainObject(value) {
1184    if (typeof value !== "object" || value === null)
1185        return false;
1186    var proto = Object.getPrototypeOf(value);
1187    if (proto === null)
1188        return true;
1189    var baseProto = proto;
1190    while (Object.getPrototypeOf(baseProto) !== null) {
1191        baseProto = Object.getPrototypeOf(baseProto);
1192    }
1193    return proto === baseProto;
1194}
1195// src/getDefaultMiddleware.ts
1196
1197// src/tsHelpers.ts
1198var hasMatchFunction = function (v) {
1199    return v && typeof v.match === "function";
1200};
1201// src/createAction.ts
1202function createAction(type, prepareAction) {
1203    function actionCreator() {
1204        var args = [];
1205        for (var _i = 0; _i < arguments.length; _i++) {
1206            args[_i] = arguments[_i];
1207        }
1208        if (prepareAction) {
1209            var prepared = prepareAction.apply(void 0, args);
1210            if (!prepared) {
1211                throw new Error("prepareAction did not return an object");
1212            }
1213            return __spreadValues(__spreadValues({
1214                type: type,
1215                payload: prepared.payload
1216            }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
1217        }
1218        return { type: type, payload: args[0] };
1219    }
1220    actionCreator.toString = function () { return "" + type; };
1221    actionCreator.type = type;
1222    actionCreator.match = function (action) { return action.type === type; };
1223    return actionCreator;
1224}
1225function isAction(action) {
1226    return redux_toolkit_esm_isPlainObject(action) && "type" in action;
1227}
1228function isActionCreator(action) {
1229    return typeof action === "function" && "type" in action && hasMatchFunction(action);
1230}
1231function isFSA(action) {
1232    return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
1233}
1234function isValidKey(key) {
1235    return ["type", "payload", "error", "meta"].indexOf(key) > -1;
1236}
1237function getType(actionCreator) {
1238    return "" + actionCreator;
1239}
1240// src/actionCreatorInvariantMiddleware.ts
1241function getMessage(type) {
1242    var splitType = type ? ("" + type).split("/") : [];
1243    var actionName = splitType[splitType.length - 1] || "actionCreator";
1244    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.";
1245}
1246function createActionCreatorInvariantMiddleware(options) {
1247    if (options === void 0) { options = {}; }
1248    if (true) {
1249        return function () { return function (next) { return function (action) { return next(action); }; }; };
1250    }
1251    var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
1252    return function () { return function (next) { return function (action) {
1253        if (isActionCreator2(action)) {
1254            console.warn(getMessage(action.type));
1255        }
1256        return next(action);
1257    }; }; };
1258}
1259// src/utils.ts
1260
1261function getTimeMeasureUtils(maxDelay, fnName) {
1262    var elapsed = 0;
1263    return {
1264        measureTime: function (fn) {
1265            var started = Date.now();
1266            try {
1267                return fn();
1268            }
1269            finally {
1270                var finished = Date.now();
1271                elapsed += finished - started;
1272            }
1273        },
1274        warnIfExceeded: function () {
1275            if (elapsed > maxDelay) {
1276                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.");
1277            }
1278        }
1279    };
1280}
1281var MiddlewareArray = /** @class */ (function (_super) {
1282    __extends(MiddlewareArray, _super);
1283    function MiddlewareArray() {
1284        var args = [];
1285        for (var _i = 0; _i < arguments.length; _i++) {
1286            args[_i] = arguments[_i];
1287        }
1288        var _this = _super.apply(this, args) || this;
1289        Object.setPrototypeOf(_this, MiddlewareArray.prototype);
1290        return _this;
1291    }
1292    Object.defineProperty(MiddlewareArray, Symbol.species, {
1293        get: function () {
1294            return MiddlewareArray;
1295        },
1296        enumerable: false,
1297        configurable: true
1298    });
1299    MiddlewareArray.prototype.concat = function () {
1300        var arr = [];
1301        for (var _i = 0; _i < arguments.length; _i++) {
1302            arr[_i] = arguments[_i];
1303        }
1304        return _super.prototype.concat.apply(this, arr);
1305    };
1306    MiddlewareArray.prototype.prepend = function () {
1307        var arr = [];
1308        for (var _i = 0; _i < arguments.length; _i++) {
1309            arr[_i] = arguments[_i];
1310        }
1311        if (arr.length === 1 && Array.isArray(arr[0])) {
1312            return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
1313        }
1314        return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
1315    };
1316    return MiddlewareArray;
1317}(Array));
1318var EnhancerArray = /** @class */ (function (_super) {
1319    __extends(EnhancerArray, _super);
1320    function EnhancerArray() {
1321        var args = [];
1322        for (var _i = 0; _i < arguments.length; _i++) {
1323            args[_i] = arguments[_i];
1324        }
1325        var _this = _super.apply(this, args) || this;
1326        Object.setPrototypeOf(_this, EnhancerArray.prototype);
1327        return _this;
1328    }
1329    Object.defineProperty(EnhancerArray, Symbol.species, {
1330        get: function () {
1331            return EnhancerArray;
1332        },
1333        enumerable: false,
1334        configurable: true
1335    });
1336    EnhancerArray.prototype.concat = function () {
1337        var arr = [];
1338        for (var _i = 0; _i < arguments.length; _i++) {
1339            arr[_i] = arguments[_i];
1340        }
1341        return _super.prototype.concat.apply(this, arr);
1342    };
1343    EnhancerArray.prototype.prepend = function () {
1344        var arr = [];
1345        for (var _i = 0; _i < arguments.length; _i++) {
1346            arr[_i] = arguments[_i];
1347        }
1348        if (arr.length === 1 && Array.isArray(arr[0])) {
1349            return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
1350        }
1351        return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
1352    };
1353    return EnhancerArray;
1354}(Array));
1355function freezeDraftable(val) {
1356    return isDraftable(val) ? createNextState(val, function () {
1357    }) : val;
1358}
1359// src/immutableStateInvariantMiddleware.ts
1360var isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
1361var prefix = "Invariant failed";
1362function invariant(condition, message) {
1363    if (condition) {
1364        return;
1365    }
1366    if (isProduction) {
1367        throw new Error(prefix);
1368    }
1369    throw new Error(prefix + ": " + (message || ""));
1370}
1371function stringify(obj, serializer, indent, decycler) {
1372    return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
1373}
1374function getSerialize(serializer, decycler) {
1375    var stack = [], keys = [];
1376    if (!decycler)
1377        decycler = function (_, value) {
1378            if (stack[0] === value)
1379                return "[Circular ~]";
1380            return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
1381        };
1382    return function (key, value) {
1383        if (stack.length > 0) {
1384            var thisPos = stack.indexOf(this);
1385            ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
1386            ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
1387            if (~stack.indexOf(value))
1388                value = decycler.call(this, key, value);
1389        }
1390        else
1391            stack.push(value);
1392        return serializer == null ? value : serializer.call(this, key, value);
1393    };
1394}
1395function isImmutableDefault(value) {
1396    return typeof value !== "object" || value == null || Object.isFrozen(value);
1397}
1398function trackForMutations(isImmutable, ignorePaths, obj) {
1399    var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
1400    return {
1401        detectMutations: function () {
1402            return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
1403        }
1404    };
1405}
1406function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
1407    if (ignorePaths === void 0) { ignorePaths = []; }
1408    if (path === void 0) { path = ""; }
1409    if (checkedObjects === void 0) { checkedObjects = new Set(); }
1410    var tracked = { value: obj };
1411    if (!isImmutable(obj) && !checkedObjects.has(obj)) {
1412        checkedObjects.add(obj);
1413        tracked.children = {};
1414        for (var key in obj) {
1415            var childPath = path ? path + "." + key : key;
1416            if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
1417                continue;
1418            }
1419            tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
1420        }
1421    }
1422    return tracked;
1423}
1424function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
1425    if (ignoredPaths === void 0) { ignoredPaths = []; }
1426    if (sameParentRef === void 0) { sameParentRef = false; }
1427    if (path === void 0) { path = ""; }
1428    var prevObj = trackedProperty ? trackedProperty.value : void 0;
1429    var sameRef = prevObj === obj;
1430    if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
1431        return { wasMutated: true, path: path };
1432    }
1433    if (isImmutable(prevObj) || isImmutable(obj)) {
1434        return { wasMutated: false };
1435    }
1436    var keysToDetect = {};
1437    for (var key in trackedProperty.children) {
1438        keysToDetect[key] = true;
1439    }
1440    for (var key in obj) {
1441        keysToDetect[key] = true;
1442    }
1443    var hasIgnoredPaths = ignoredPaths.length > 0;
1444    var _loop_1 = function (key) {
1445        var nestedPath = path ? path + "." + key : key;
1446        if (hasIgnoredPaths) {
1447            var hasMatches = ignoredPaths.some(function (ignored) {
1448                if (ignored instanceof RegExp) {
1449                    return ignored.test(nestedPath);
1450                }
1451                return nestedPath === ignored;
1452            });
1453            if (hasMatches) {
1454                return "continue";
1455            }
1456        }
1457        var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
1458        if (result.wasMutated) {
1459            return { value: result };
1460        }
1461    };
1462    for (var key in keysToDetect) {
1463        var state_1 = _loop_1(key);
1464        if (typeof state_1 === "object")
1465            return state_1.value;
1466    }
1467    return { wasMutated: false };
1468}
1469function createImmutableStateInvariantMiddleware(options) {
1470    if (options === void 0) { options = {}; }
1471    if (true) {
1472        return function () { return function (next) { return function (action) { return next(action); }; }; };
1473    }
1474    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;
1475    ignoredPaths = ignoredPaths || ignore;
1476    var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
1477    return function (_c) {
1478        var getState = _c.getState;
1479        var state = getState();
1480        var tracker = track(state);
1481        var result;
1482        return function (next) { return function (action) {
1483            var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
1484            measureUtils.measureTime(function () {
1485                state = getState();
1486                result = tracker.detectMutations();
1487                tracker = track(state);
1488                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)");
1489            });
1490            var dispatchedAction = next(action);
1491            measureUtils.measureTime(function () {
1492                state = getState();
1493                result = tracker.detectMutations();
1494                tracker = track(state);
1495                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)");
1496            });
1497            measureUtils.warnIfExceeded();
1498            return dispatchedAction;
1499        }; };
1500    };
1501}
1502// src/serializableStateInvariantMiddleware.ts
1503function isPlain(val) {
1504    var type = typeof val;
1505    return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || redux_toolkit_esm_isPlainObject(val);
1506}
1507function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
1508    if (path === void 0) { path = ""; }
1509    if (isSerializable === void 0) { isSerializable = isPlain; }
1510    if (ignoredPaths === void 0) { ignoredPaths = []; }
1511    var foundNestedSerializable;
1512    if (!isSerializable(value)) {
1513        return {
1514            keyPath: path || "<root>",
1515            value: value
1516        };
1517    }
1518    if (typeof value !== "object" || value === null) {
1519        return false;
1520    }
1521    if (cache == null ? void 0 : cache.has(value))
1522        return false;
1523    var entries = getEntries != null ? getEntries(value) : Object.entries(value);
1524    var hasIgnoredPaths = ignoredPaths.length > 0;
1525    var _loop_2 = function (key, nestedValue) {
1526        var nestedPath = path ? path + "." + key : key;
1527        if (hasIgnoredPaths) {
1528            var hasMatches = ignoredPaths.some(function (ignored) {
1529                if (ignored instanceof RegExp) {
1530                    return ignored.test(nestedPath);
1531                }
1532                return nestedPath === ignored;
1533            });
1534            if (hasMatches) {
1535                return "continue";
1536            }
1537        }
1538        if (!isSerializable(nestedValue)) {
1539            return { value: {
1540                    keyPath: nestedPath,
1541                    value: nestedValue
1542                } };
1543        }
1544        if (typeof nestedValue === "object") {
1545            foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
1546            if (foundNestedSerializable) {
1547                return { value: foundNestedSerializable };
1548            }
1549        }
1550    };
1551    for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
1552        var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
1553        var state_2 = _loop_2(key, nestedValue);
1554        if (typeof state_2 === "object")
1555            return state_2.value;
1556    }
1557    if (cache && isNestedFrozen(value))
1558        cache.add(value);
1559    return false;
1560}
1561function isNestedFrozen(value) {
1562    if (!Object.isFrozen(value))
1563        return false;
1564    for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
1565        var nestedValue = _c[_i];
1566        if (typeof nestedValue !== "object" || nestedValue === null)
1567            continue;
1568        if (!isNestedFrozen(nestedValue))
1569            return false;
1570    }
1571    return true;
1572}
1573function createSerializableStateInvariantMiddleware(options) {
1574    if (options === void 0) { options = {}; }
1575    if (true) {
1576        return function () { return function (next) { return function (action) { return next(action); }; }; };
1577    }
1578    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;
1579    var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
1580    return function (storeAPI) { return function (next) { return function (action) {
1581        var result = next(action);
1582        var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
1583        if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
1584            measureUtils.measureTime(function () {
1585                var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
1586                if (foundActionNonSerializableValue) {
1587                    var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
1588                    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)");
1589                }
1590            });
1591        }
1592        if (!ignoreState) {
1593            measureUtils.measureTime(function () {
1594                var state = storeAPI.getState();
1595                var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
1596                if (foundStateNonSerializableValue) {
1597                    var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
1598                    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)");
1599                }
1600            });
1601            measureUtils.warnIfExceeded();
1602        }
1603        return result;
1604    }; }; };
1605}
1606// src/getDefaultMiddleware.ts
1607function isBoolean(x) {
1608    return typeof x === "boolean";
1609}
1610function curryGetDefaultMiddleware() {
1611    return function curriedGetDefaultMiddleware(options) {
1612        return getDefaultMiddleware(options);
1613    };
1614}
1615function getDefaultMiddleware(options) {
1616    if (options === void 0) { options = {}; }
1617    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;
1618    var middlewareArray = new MiddlewareArray();
1619    if (thunk) {
1620        if (isBoolean(thunk)) {
1621            middlewareArray.push(es);
1622        }
1623        else {
1624            middlewareArray.push(es.withExtraArgument(thunk.extraArgument));
1625        }
1626    }
1627    if (false) { var actionCreatorOptions, serializableOptions, immutableOptions; }
1628    return middlewareArray;
1629}
1630// src/configureStore.ts
1631var IS_PRODUCTION = "production" === "production";
1632function configureStore(options) {
1633    var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
1634    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;
1635    var rootReducer;
1636    if (typeof reducer === "function") {
1637        rootReducer = reducer;
1638    }
1639    else if (redux_toolkit_esm_isPlainObject(reducer)) {
1640        rootReducer = combineReducers(reducer);
1641    }
1642    else {
1643        throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
1644    }
1645    var finalMiddleware = middleware;
1646    if (typeof finalMiddleware === "function") {
1647        finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
1648        if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
1649            throw new Error("when using a middleware builder function, an array of middleware must be returned");
1650        }
1651    }
1652    if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
1653        throw new Error("each middleware provided to configureStore must be a function");
1654    }
1655    var middlewareEnhancer = applyMiddleware.apply(void 0, finalMiddleware);
1656    var finalCompose = compose;
1657    if (devTools) {
1658        finalCompose = composeWithDevTools(__spreadValues({
1659            trace: !IS_PRODUCTION
1660        }, typeof devTools === "object" && devTools));
1661    }
1662    var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
1663    var storeEnhancers = defaultEnhancers;
1664    if (Array.isArray(enhancers)) {
1665        storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
1666    }
1667    else if (typeof enhancers === "function") {
1668        storeEnhancers = enhancers(defaultEnhancers);
1669    }
1670    var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
1671    return createStore(rootReducer, preloadedState, composedEnhancer);
1672}
1673// src/createReducer.ts
1674
1675// src/mapBuilders.ts
1676function executeReducerBuilderCallback(builderCallback) {
1677    var actionsMap = {};
1678    var actionMatchers = [];
1679    var defaultCaseReducer;
1680    var builder = {
1681        addCase: function (typeOrActionCreator, reducer) {
1682            if (false) {}
1683            var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
1684            if (!type) {
1685                throw new Error("`builder.addCase` cannot be called with an empty action type");
1686            }
1687            if (type in actionsMap) {
1688                throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
1689            }
1690            actionsMap[type] = reducer;
1691            return builder;
1692        },
1693        addMatcher: function (matcher, reducer) {
1694            if (false) {}
1695            actionMatchers.push({ matcher: matcher, reducer: reducer });
1696            return builder;
1697        },
1698        addDefaultCase: function (reducer) {
1699            if (false) {}
1700            defaultCaseReducer = reducer;
1701            return builder;
1702        }
1703    };
1704    builderCallback(builder);
1705    return [actionsMap, actionMatchers, defaultCaseReducer];
1706}
1707// src/createReducer.ts
1708function isStateFunction(x) {
1709    return typeof x === "function";
1710}
1711var hasWarnedAboutObjectNotation = false;
1712function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
1713    if (actionMatchers === void 0) { actionMatchers = []; }
1714    if (false) {}
1715    var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
1716    var getInitialState;
1717    if (isStateFunction(initialState)) {
1718        getInitialState = function () { return freezeDraftable(initialState()); };
1719    }
1720    else {
1721        var frozenInitialState_1 = freezeDraftable(initialState);
1722        getInitialState = function () { return frozenInitialState_1; };
1723    }
1724    function reducer(state, action) {
1725        if (state === void 0) { state = getInitialState(); }
1726        var caseReducers = __spreadArray([
1727            actionsMap[action.type]
1728        ], finalActionMatchers.filter(function (_c) {
1729            var matcher = _c.matcher;
1730            return matcher(action);
1731        }).map(function (_c) {
1732            var reducer2 = _c.reducer;
1733            return reducer2;
1734        }));
1735        if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
1736            caseReducers = [finalDefaultCaseReducer];
1737        }
1738        return caseReducers.reduce(function (previousState, caseReducer) {
1739            if (caseReducer) {
1740                if (isDraft2(previousState)) {
1741                    var draft = previousState;
1742                    var result = caseReducer(draft, action);
1743                    if (result === void 0) {
1744                        return previousState;
1745                    }
1746                    return result;
1747                }
1748                else if (!isDraftable2(previousState)) {
1749                    var result = caseReducer(previousState, action);
1750                    if (result === void 0) {
1751                        if (previousState === null) {
1752                            return previousState;
1753                        }
1754                        throw Error("A case reducer on a non-draftable value must not return undefined");
1755                    }
1756                    return result;
1757                }
1758                else {
1759                    return createNextState2(previousState, function (draft) {
1760                        return caseReducer(draft, action);
1761                    });
1762                }
1763            }
1764            return previousState;
1765        }, state);
1766    }
1767    reducer.getInitialState = getInitialState;
1768    return reducer;
1769}
1770// src/createSlice.ts
1771var hasWarnedAboutObjectNotation2 = false;
1772function getType2(slice, actionKey) {
1773    return slice + "/" + actionKey;
1774}
1775function createSlice(options) {
1776    var name = options.name;
1777    if (!name) {
1778        throw new Error("`name` is a required option for createSlice");
1779    }
1780    if (typeof process !== "undefined" && "production" === "development") {}
1781    var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
1782    var reducers = options.reducers || {};
1783    var reducerNames = Object.keys(reducers);
1784    var sliceCaseReducersByName = {};
1785    var sliceCaseReducersByType = {};
1786    var actionCreators = {};
1787    reducerNames.forEach(function (reducerName) {
1788        var maybeReducerWithPrepare = reducers[reducerName];
1789        var type = getType2(name, reducerName);
1790        var caseReducer;
1791        var prepareCallback;
1792        if ("reducer" in maybeReducerWithPrepare) {
1793            caseReducer = maybeReducerWithPrepare.reducer;
1794            prepareCallback = maybeReducerWithPrepare.prepare;
1795        }
1796        else {
1797            caseReducer = maybeReducerWithPrepare;
1798        }
1799        sliceCaseReducersByName[reducerName] = caseReducer;
1800        sliceCaseReducersByType[type] = caseReducer;
1801        actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
1802    });
1803    function buildReducer() {
1804        if (false) {}
1805        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;
1806        var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
1807        return createReducer(initialState, function (builder) {
1808            for (var key in finalCaseReducers) {
1809                builder.addCase(key, finalCaseReducers[key]);
1810            }
1811            for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
1812                var m = actionMatchers_1[_i];
1813                builder.addMatcher(m.matcher, m.reducer);
1814            }
1815            if (defaultCaseReducer) {
1816                builder.addDefaultCase(defaultCaseReducer);
1817            }
1818        });
1819    }
1820    var _reducer;
1821    return {
1822        name: name,
1823        reducer: function (state, action) {
1824            if (!_reducer)
1825                _reducer = buildReducer();
1826            return _reducer(state, action);
1827        },
1828        actions: actionCreators,
1829        caseReducers: sliceCaseReducersByName,
1830        getInitialState: function () {
1831            if (!_reducer)
1832                _reducer = buildReducer();
1833            return _reducer.getInitialState();
1834        }
1835    };
1836}
1837// src/entities/entity_state.ts
1838function getInitialEntityState() {
1839    return {
1840        ids: [],
1841        entities: {}
1842    };
1843}
1844function createInitialStateFactory() {
1845    function getInitialState(additionalState) {
1846        if (additionalState === void 0) { additionalState = {}; }
1847        return Object.assign(getInitialEntityState(), additionalState);
1848    }
1849    return { getInitialState: getInitialState };
1850}
1851// src/entities/state_selectors.ts
1852function createSelectorsFactory() {
1853    function getSelectors(selectState) {
1854        var selectIds = function (state) { return state.ids; };
1855        var selectEntities = function (state) { return state.entities; };
1856        var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
1857        var selectId = function (_, id) { return id; };
1858        var selectById = function (entities, id) { return entities[id]; };
1859        var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
1860        if (!selectState) {
1861            return {
1862                selectIds: selectIds,
1863                selectEntities: selectEntities,
1864                selectAll: selectAll,
1865                selectTotal: selectTotal,
1866                selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
1867            };
1868        }
1869        var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
1870        return {
1871            selectIds: createDraftSafeSelector(selectState, selectIds),
1872            selectEntities: selectGlobalizedEntities,
1873            selectAll: createDraftSafeSelector(selectState, selectAll),
1874            selectTotal: createDraftSafeSelector(selectState, selectTotal),
1875            selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
1876        };
1877    }
1878    return { getSelectors: getSelectors };
1879}
1880// src/entities/state_adapter.ts
1881
1882function createSingleArgumentStateOperator(mutator) {
1883    var operator = createStateOperator(function (_, state) { return mutator(state); });
1884    return function operation(state) {
1885        return operator(state, void 0);
1886    };
1887}
1888function createStateOperator(mutator) {
1889    return function operation(state, arg) {
1890        function isPayloadActionArgument(arg2) {
1891            return isFSA(arg2);
1892        }
1893        var runMutator = function (draft) {
1894            if (isPayloadActionArgument(arg)) {
1895                mutator(arg.payload, draft);
1896            }
1897            else {
1898                mutator(arg, draft);
1899            }
1900        };
1901        if (isDraft3(state)) {
1902            runMutator(state);
1903            return state;
1904        }
1905        else {
1906            return createNextState3(state, runMutator);
1907        }
1908    };
1909}
1910// src/entities/utils.ts
1911function selectIdValue(entity, selectId) {
1912    var key = selectId(entity);
1913    if (false) {}
1914    return key;
1915}
1916function ensureEntitiesArray(entities) {
1917    if (!Array.isArray(entities)) {
1918        entities = Object.values(entities);
1919    }
1920    return entities;
1921}
1922function splitAddedUpdatedEntities(newEntities, selectId, state) {
1923    newEntities = ensureEntitiesArray(newEntities);
1924    var added = [];
1925    var updated = [];
1926    for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
1927        var entity = newEntities_1[_i];
1928        var id = selectIdValue(entity, selectId);
1929        if (id in state.entities) {
1930            updated.push({ id: id, changes: entity });
1931        }
1932        else {
1933            added.push(entity);
1934        }
1935    }
1936    return [added, updated];
1937}
1938// src/entities/unsorted_state_adapter.ts
1939function createUnsortedStateAdapter(selectId) {
1940    function addOneMutably(entity, state) {
1941        var key = selectIdValue(entity, selectId);
1942        if (key in state.entities) {
1943            return;
1944        }
1945        state.ids.push(key);
1946        state.entities[key] = entity;
1947    }
1948    function addManyMutably(newEntities, state) {
1949        newEntities = ensureEntitiesArray(newEntities);
1950        for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
1951            var entity = newEntities_2[_i];
1952            addOneMutably(entity, state);
1953        }
1954    }
1955    function setOneMutably(entity, state) {
1956        var key = selectIdValue(entity, selectId);
1957        if (!(key in state.entities)) {
1958            state.ids.push(key);
1959        }
1960        state.entities[key] = entity;
1961    }
1962    function setManyMutably(newEntities, state) {
1963        newEntities = ensureEntitiesArray(newEntities);
1964        for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
1965            var entity = newEntities_3[_i];
1966            setOneMutably(entity, state);
1967        }
1968    }
1969    function setAllMutably(newEntities, state) {
1970        newEntities = ensureEntitiesArray(newEntities);
1971        state.ids = [];
1972        state.entities = {};
1973        addManyMutably(newEntities, state);
1974    }
1975    function removeOneMutably(key, state) {
1976        return removeManyMutably([key], state);
1977    }
1978    function removeManyMutably(keys, state) {
1979        var didMutate = false;
1980        keys.forEach(function (key) {
1981            if (key in state.entities) {
1982                delete state.entities[key];
1983                didMutate = true;
1984            }
1985        });
1986        if (didMutate) {
1987            state.ids = state.ids.filter(function (id) { return id in state.entities; });
1988        }
1989    }
1990    function removeAllMutably(state) {
1991        Object.assign(state, {
1992            ids: [],
1993            entities: {}
1994        });
1995    }
1996    function takeNewKey(keys, update, state) {
1997        var original2 = state.entities[update.id];
1998        var updated = Object.assign({}, original2, update.changes);
1999        var newKey = selectIdValue(updated, selectId);
2000        var hasNewKey = newKey !== update.id;
2001        if (hasNewKey) {
2002            keys[update.id] = newKey;
2003            delete state.entities[update.id];
2004        }
2005        state.entities[newKey] = updated;
2006        return hasNewKey;
2007    }
2008    function updateOneMutably(update, state) {
2009        return updateManyMutably([update], state);
2010    }
2011    function updateManyMutably(updates, state) {
2012        var newKeys = {};
2013        var updatesPerEntity = {};
2014        updates.forEach(function (update) {
2015            if (update.id in state.entities) {
2016                updatesPerEntity[update.id] = {
2017                    id: update.id,
2018                    changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
2019                };
2020            }
2021        });
2022        updates = Object.values(updatesPerEntity);
2023        var didMutateEntities = updates.length > 0;
2024        if (didMutateEntities) {
2025            var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
2026            if (didMutateIds) {
2027                state.ids = Object.keys(state.entities);
2028            }
2029        }
2030    }
2031    function upsertOneMutably(entity, state) {
2032        return upsertManyMutably([entity], state);
2033    }
2034    function upsertManyMutably(newEntities, state) {
2035        var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
2036        updateManyMutably(updated, state);
2037        addManyMutably(added, state);
2038    }
2039    return {
2040        removeAll: createSingleArgumentStateOperator(removeAllMutably),
2041        addOne: createStateOperator(addOneMutably),
2042        addMany: createStateOperator(addManyMutably),
2043        setOne: createStateOperator(setOneMutably),
2044        setMany: createStateOperator(setManyMutably),
2045        setAll: createStateOperator(setAllMutably),
2046        updateOne: createStateOperator(updateOneMutably),
2047        updateMany: createStateOperator(updateManyMutably),
2048        upsertOne: createStateOperator(upsertOneMutably),
2049        upsertMany: createStateOperator(upsertManyMutably),
2050        removeOne: createStateOperator(removeOneMutably),
2051        removeMany: createStateOperator(removeManyMutably)
2052    };
2053}
2054// src/entities/sorted_state_adapter.ts
2055function createSortedStateAdapter(selectId, sort) {
2056    var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
2057    function addOneMutably(entity, state) {
2058        return addManyMutably([entity], state);
2059    }
2060    function addManyMutably(newEntities, state) {
2061        newEntities = ensureEntitiesArray(newEntities);
2062        var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
2063        if (models.length !== 0) {
2064            merge(models, state);
2065        }
2066    }
2067    function setOneMutably(entity, state) {
2068        return setManyMutably([entity], state);
2069    }
2070    function setManyMutably(newEntities, state) {
2071        newEntities = ensureEntitiesArray(newEntities);
2072        if (newEntities.length !== 0) {
2073            merge(newEntities, state);
2074        }
2075    }
2076    function setAllMutably(newEntities, state) {
2077        newEntities = ensureEntitiesArray(newEntities);
2078        state.entities = {};
2079        state.ids = [];
2080        addManyMutably(newEntities, state);
2081    }
2082    function updateOneMutably(update, state) {
2083        return updateManyMutably([update], state);
2084    }
2085    function updateManyMutably(updates, state) {
2086        var appliedUpdates = false;
2087        for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
2088            var update = updates_1[_i];
2089            var entity = state.entities[update.id];
2090            if (!entity) {
2091                continue;
2092            }
2093            appliedUpdates = true;
2094            Object.assign(entity, update.changes);
2095            var newId = selectId(entity);
2096            if (update.id !== newId) {
2097                delete state.entities[update.id];
2098                state.entities[newId] = entity;
2099            }
2100        }
2101        if (appliedUpdates) {
2102            resortEntities(state);
2103        }
2104    }
2105    function upsertOneMutably(entity, state) {
2106        return upsertManyMutably([entity], state);
2107    }
2108    function upsertManyMutably(newEntities, state) {
2109        var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
2110        updateManyMutably(updated, state);
2111        addManyMutably(added, state);
2112    }
2113    function areArraysEqual(a, b) {
2114        if (a.length !== b.length) {
2115            return false;
2116        }
2117        for (var i = 0; i < a.length && i < b.length; i++) {
2118            if (a[i] === b[i]) {
2119                continue;
2120            }
2121            return false;
2122        }
2123        return true;
2124    }
2125    function merge(models, state) {
2126        models.forEach(function (model) {
2127            state.entities[selectId(model)] = model;
2128        });
2129        resortEntities(state);
2130    }
2131    function resortEntities(state) {
2132        var allEntities = Object.values(state.entities);
2133        allEntities.sort(sort);
2134        var newSortedIds = allEntities.map(selectId);
2135        var ids = state.ids;
2136        if (!areArraysEqual(ids, newSortedIds)) {
2137            state.ids = newSortedIds;
2138        }
2139    }
2140    return {
2141        removeOne: removeOne,
2142        removeMany: removeMany,
2143        removeAll: removeAll,
2144        addOne: createStateOperator(addOneMutably),
2145        updateOne: createStateOperator(updateOneMutably),
2146        upsertOne: createStateOperator(upsertOneMutably),
2147        setOne: createStateOperator(setOneMutably),
2148        setMany: createStateOperator(setManyMutably),
2149        setAll: createStateOperator(setAllMutably),
2150        addMany: createStateOperator(addManyMutably),
2151        updateMany: createStateOperator(updateManyMutably),
2152        upsertMany: createStateOperator(upsertManyMutably)
2153    };
2154}
2155// src/entities/create_adapter.ts
2156function createEntityAdapter(options) {
2157    if (options === void 0) { options = {}; }
2158    var _c = __spreadValues({
2159        sortComparer: false,
2160        selectId: function (instance) { return instance.id; }
2161    }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
2162    var stateFactory = createInitialStateFactory();
2163    var selectorsFactory = createSelectorsFactory();
2164    var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
2165    return __spreadValues(__spreadValues(__spreadValues({
2166        selectId: selectId,
2167        sortComparer: sortComparer
2168    }, stateFactory), selectorsFactory), stateAdapter);
2169}
2170// src/nanoid.ts
2171var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
2172var nanoid = function (size) {
2173    if (size === void 0) { size = 21; }
2174    var id = "";
2175    var i = size;
2176    while (i--) {
2177        id += urlAlphabet[Math.random() * 64 | 0];
2178    }
2179    return id;
2180};
2181// src/createAsyncThunk.ts
2182var commonProperties = [
2183    "name",
2184    "message",
2185    "stack",
2186    "code"
2187];
2188var RejectWithValue = /** @class */ (function () {
2189    function RejectWithValue(payload, meta) {
2190        this.payload = payload;
2191        this.meta = meta;
2192    }
2193    return RejectWithValue;
2194}());
2195var FulfillWithMeta = /** @class */ (function () {
2196    function FulfillWithMeta(payload, meta) {
2197        this.payload = payload;
2198        this.meta = meta;
2199    }
2200    return FulfillWithMeta;
2201}());
2202var miniSerializeError = function (value) {
2203    if (typeof value === "object" && value !== null) {
2204        var simpleError = {};
2205        for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
2206            var property = commonProperties_1[_i];
2207            if (typeof value[property] === "string") {
2208                simpleError[property] = value[property];
2209            }
2210        }
2211        return simpleError;
2212    }
2213    return { message: String(value) };
2214};
2215var createAsyncThunk = (function () {
2216    function createAsyncThunk2(typePrefix, payloadCreator, options) {
2217        var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
2218            payload: payload,
2219            meta: __spreadProps(__spreadValues({}, meta || {}), {
2220                arg: arg,
2221                requestId: requestId,
2222                requestStatus: "fulfilled"
2223            })
2224        }); });
2225        var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
2226            payload: void 0,
2227            meta: __spreadProps(__spreadValues({}, meta || {}), {
2228                arg: arg,
2229                requestId: requestId,
2230                requestStatus: "pending"
2231            })
2232        }); });
2233        var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
2234            payload: payload,
2235            error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
2236            meta: __spreadProps(__spreadValues({}, meta || {}), {
2237                arg: arg,
2238                requestId: requestId,
2239                rejectedWithValue: !!payload,
2240                requestStatus: "rejected",
2241                aborted: (error == null ? void 0 : error.name) === "AbortError",
2242                condition: (error == null ? void 0 : error.name) === "ConditionError"
2243            })
2244        }); });
2245        var displayedWarning = false;
2246        var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
2247            function class_1() {
2248                this.signal = {
2249                    aborted: false,
2250                    addEventListener: function () {
2251                    },
2252                    dispatchEvent: function () {
2253                        return false;
2254                    },
2255                    onabort: function () {
2256                    },
2257                    removeEventListener: function () {
2258                    },
2259                    reason: void 0,
2260                    throwIfAborted: function () {
2261                    }
2262                };
2263            }
2264            class_1.prototype.abort = function () {
2265                if (false) {}
2266            };
2267            return class_1;
2268        }());
2269        function actionCreator(arg) {
2270            return function (dispatch, getState, extra) {
2271                var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
2272                var abortController = new AC();
2273                var abortReason;
2274                var started = false;
2275                function abort(reason) {
2276                    abortReason = reason;
2277                    abortController.abort();
2278                }
2279                var promise2 = function () {
2280                    return __async(this, null, function () {
2281                        var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
2282                        return __generator(this, function (_c) {
2283                            switch (_c.label) {
2284                                case 0:
2285                                    _c.trys.push([0, 4, , 5]);
2286                                    conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
2287                                    if (!isThenable(conditionResult)) return [3 /*break*/, 2];
2288                                    return [4 /*yield*/, conditionResult];
2289                                case 1:
2290                                    conditionResult = _c.sent();
2291                                    _c.label = 2;
2292                                case 2:
2293                                    if (conditionResult === false || abortController.signal.aborted) {
2294                                        throw {
2295                                            name: "ConditionError",
2296                                            message: "Aborted due to condition callback returning false."
2297                                        };
2298                                    }
2299                                    started = true;
2300                                    abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
2301                                        name: "AbortError",
2302                                        message: abortReason || "Aborted"
2303                                    }); }); });
2304                                    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 })));
2305                                    return [4 /*yield*/, Promise.race([
2306                                            abortedPromise,
2307                                            Promise.resolve(payloadCreator(arg, {
2308                                                dispatch: dispatch,
2309                                                getState: getState,
2310                                                extra: extra,
2311                                                requestId: requestId,
2312                                                signal: abortController.signal,
2313                                                abort: abort,
2314                                                rejectWithValue: function (value, meta) {
2315                                                    return new RejectWithValue(value, meta);
2316                                                },
2317                                                fulfillWithValue: function (value, meta) {
2318                                                    return new FulfillWithMeta(value, meta);
2319                                                }
2320                                            })).then(function (result) {
2321                                                if (result instanceof RejectWithValue) {
2322                                                    throw result;
2323                                                }
2324                                                if (result instanceof FulfillWithMeta) {
2325                                                    return fulfilled(result.payload, requestId, arg, result.meta);
2326                                                }
2327                                                return fulfilled(result, requestId, arg);
2328                                            })
2329                                        ])];
2330                                case 3:
2331                                    finalAction = _c.sent();
2332                                    return [3 /*break*/, 5];
2333                                case 4:
2334                                    err_1 = _c.sent();
2335                                    finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
2336                                    return [3 /*break*/, 5];
2337                                case 5:
2338                                    skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
2339                                    if (!skipDispatch) {
2340                                        dispatch(finalAction);
2341                                    }
2342                                    return [2 /*return*/, finalAction];
2343                            }
2344                        });
2345                    });
2346                }();
2347                return Object.assign(promise2, {
2348                    abort: abort,
2349                    requestId: requestId,
2350                    arg: arg,
2351                    unwrap: function () {
2352                        return promise2.then(unwrapResult);
2353                    }
2354                });
2355            };
2356        }
2357        return Object.assign(actionCreator, {
2358            pending: pending,
2359            rejected: rejected,
2360            fulfilled: fulfilled,
2361            typePrefix: typePrefix
2362        });
2363    }
2364    createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
2365    return createAsyncThunk2;
2366})();
2367function unwrapResult(action) {
2368    if (action.meta && action.meta.rejectedWithValue) {
2369        throw action.payload;
2370    }
2371    if (action.error) {
2372        throw action.error;
2373    }
2374    return action.payload;
2375}
2376function isThenable(value) {
2377    return value !== null && typeof value === "object" && typeof value.then === "function";
2378}
2379// src/matchers.ts
2380var matches = function (matcher, action) {
2381    if (hasMatchFunction(matcher)) {
2382        return matcher.match(action);
2383    }
2384    else {
2385        return matcher(action);
2386    }
2387};
2388function isAnyOf() {
2389    var matchers = [];
2390    for (var _i = 0; _i < arguments.length; _i++) {
2391        matchers[_i] = arguments[_i];
2392    }
2393    return function (action) {
2394        return matchers.some(function (matcher) { return matches(matcher, action); });
2395    };
2396}
2397function isAllOf() {
2398    var matchers = [];
2399    for (var _i = 0; _i < arguments.length; _i++) {
2400        matchers[_i] = arguments[_i];
2401    }
2402    return function (action) {
2403        return matchers.every(function (matcher) { return matches(matcher, action); });
2404    };
2405}
2406function hasExpectedRequestMetadata(action, validStatus) {
2407    if (!action || !action.meta)
2408        return false;
2409    var hasValidRequestId = typeof action.meta.requestId === "string";
2410    var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
2411    return hasValidRequestId && hasValidRequestStatus;
2412}
2413function isAsyncThunkArray(a) {
2414    return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
2415}
2416function isPending() {
2417    var asyncThunks = [];
2418    for (var _i = 0; _i < arguments.length; _i++) {
2419        asyncThunks[_i] = arguments[_i];
2420    }
2421    if (asyncThunks.length === 0) {
2422        return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
2423    }
2424    if (!isAsyncThunkArray(asyncThunks)) {
2425        return isPending()(asyncThunks[0]);
2426    }
2427    return function (action) {
2428        var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
2429        var combinedMatcher = isAnyOf.apply(void 0, matchers);
2430        return combinedMatcher(action);
2431    };
2432}
2433function isRejected() {
2434    var asyncThunks = [];
2435    for (var _i = 0; _i < arguments.length; _i++) {
2436        asyncThunks[_i] = arguments[_i];
2437    }
2438    if (asyncThunks.length === 0) {
2439        return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
2440    }
2441    if (!isAsyncThunkArray(asyncThunks)) {
2442        return isRejected()(asyncThunks[0]);
2443    }
2444    return function (action) {
2445        var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
2446        var combinedMatcher = isAnyOf.apply(void 0, matchers);
2447        return combinedMatcher(action);
2448    };
2449}
2450function isRejectedWithValue() {
2451    var asyncThunks = [];
2452    for (var _i = 0; _i < arguments.length; _i++) {
2453        asyncThunks[_i] = arguments[_i];
2454    }
2455    var hasFlag = function (action) {
2456        return action && action.meta && action.meta.rejectedWithValue;
2457    };
2458    if (asyncThunks.length === 0) {
2459        return function (action) {
2460            var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
2461            return combinedMatcher(action);
2462        };
2463    }
2464    if (!isAsyncThunkArray(asyncThunks)) {
2465        return isRejectedWithValue()(asyncThunks[0]);
2466    }
2467    return function (action) {
2468        var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
2469        return combinedMatcher(action);
2470    };
2471}
2472function isFulfilled() {
2473    var asyncThunks = [];
2474    for (var _i = 0; _i < arguments.length; _i++) {
2475        asyncThunks[_i] = arguments[_i];
2476    }
2477    if (asyncThunks.length === 0) {
2478        return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
2479    }
2480    if (!isAsyncThunkArray(asyncThunks)) {
2481        return isFulfilled()(asyncThunks[0]);
2482    }
2483    return function (action) {
2484        var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
2485        var combinedMatcher = isAnyOf.apply(void 0, matchers);
2486        return combinedMatcher(action);
2487    };
2488}
2489function isAsyncThunkAction() {
2490    var asyncThunks = [];
2491    for (var _i = 0; _i < arguments.length; _i++) {
2492        asyncThunks[_i] = arguments[_i];
2493    }
2494    if (asyncThunks.length === 0) {
2495        return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
2496    }
2497    if (!isAsyncThunkArray(asyncThunks)) {
2498        return isAsyncThunkAction()(asyncThunks[0]);
2499    }
2500    return function (action) {
2501        var matchers = [];
2502        for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
2503            var asyncThunk = asyncThunks_1[_i];
2504            matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
2505        }
2506        var combinedMatcher = isAnyOf.apply(void 0, matchers);
2507        return combinedMatcher(action);
2508    };
2509}
2510// src/listenerMiddleware/utils.ts
2511var assertFunction = function (func, expected) {
2512    if (typeof func !== "function") {
2513        throw new TypeError(expected + " is not a function");
2514    }
2515};
2516var noop = function () {
2517};
2518var catchRejection = function (promise2, onError) {
2519    if (onError === void 0) { onError = noop; }
2520    promise2.catch(onError);
2521    return promise2;
2522};
2523var addAbortSignalListener = function (abortSignal, callback) {
2524    abortSignal.addEventListener("abort", callback, { once: true });
2525    return function () { return abortSignal.removeEventListener("abort", callback); };
2526};
2527var abortControllerWithReason = function (abortController, reason) {
2528    var signal = abortController.signal;
2529    if (signal.aborted) {
2530        return;
2531    }
2532    if (!("reason" in signal)) {
2533        Object.defineProperty(signal, "reason", {
2534            enumerable: true,
2535            value: reason,
2536            configurable: true,
2537            writable: true
2538        });
2539    }
2540    ;
2541    abortController.abort(reason);
2542};
2543// src/listenerMiddleware/exceptions.ts
2544var task = "task";
2545var listener = "listener";
2546var completed = "completed";
2547var cancelled = "cancelled";
2548var taskCancelled = "task-" + cancelled;
2549var taskCompleted = "task-" + completed;
2550var listenerCancelled = listener + "-" + cancelled;
2551var listenerCompleted = listener + "-" + completed;
2552var TaskAbortError = /** @class */ (function () {
2553    function TaskAbortError(code) {
2554        this.code = code;
2555        this.name = "TaskAbortError";
2556        this.message = task + " " + cancelled + " (reason: " + code + ")";
2557    }
2558    return TaskAbortError;
2559}());
2560// src/listenerMiddleware/task.ts
2561var validateActive = function (signal) {
2562    if (signal.aborted) {
2563        throw new TaskAbortError(signal.reason);
2564    }
2565};
2566function raceWithSignal(signal, promise2) {
2567    var cleanup = noop;
2568    return new Promise(function (resolve, reject) {
2569        var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
2570        if (signal.aborted) {
2571            notifyRejection();
2572            return;
2573        }
2574        cleanup = addAbortSignalListener(signal, notifyRejection);
2575        promise2.finally(function () { return cleanup(); }).then(resolve, reject);
2576    }).finally(function () {
2577        cleanup = noop;
2578    });
2579}
2580var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
2581    var value, error_1;
2582    return __generator(this, function (_c) {
2583        switch (_c.label) {
2584            case 0:
2585                _c.trys.push([0, 3, 4, 5]);
2586                return [4 /*yield*/, Promise.resolve()];
2587            case 1:
2588                _c.sent();
2589                return [4 /*yield*/, task2()];
2590            case 2:
2591                value = _c.sent();
2592                return [2 /*return*/, {
2593                        status: "ok",
2594                        value: value
2595                    }];
2596            case 3:
2597                error_1 = _c.sent();
2598                return [2 /*return*/, {
2599                        status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
2600                        error: error_1
2601                    }];
2602            case 4:
2603                cleanUp == null ? void 0 : cleanUp();
2604                return [7 /*endfinally*/];
2605            case 5: return [2 /*return*/];
2606        }
2607    });
2608}); };
2609var createPause = function (signal) {
2610    return function (promise2) {
2611        return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
2612            validateActive(signal);
2613            return output;
2614        }));
2615    };
2616};
2617var createDelay = function (signal) {
2618    var pause = createPause(signal);
2619    return function (timeoutMs) {
2620        return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
2621    };
2622};
2623// src/listenerMiddleware/index.ts
2624var redux_toolkit_esm_assign = Object.assign;
2625var INTERNAL_NIL_TOKEN = {};
2626var alm = "listenerMiddleware";
2627var createFork = function (parentAbortSignal, parentBlockingPromises) {
2628    var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
2629    return function (taskExecutor, opts) {
2630        assertFunction(taskExecutor, "taskExecutor");
2631        var childAbortController = new AbortController();
2632        linkControllers(childAbortController);
2633        var result = runTask(function () { return __async(void 0, null, function () {
2634            var result2;
2635            return __generator(this, function (_c) {
2636                switch (_c.label) {
2637                    case 0:
2638                        validateActive(parentAbortSignal);
2639                        validateActive(childAbortController.signal);
2640                        return [4 /*yield*/, taskExecutor({
2641                                pause: createPause(childAbortController.signal),
2642                                delay: createDelay(childAbortController.signal),
2643                                signal: childAbortController.signal
2644                            })];
2645                    case 1:
2646                        result2 = _c.sent();
2647                        validateActive(childAbortController.signal);
2648                        return [2 /*return*/, result2];
2649                }
2650            });
2651        }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
2652        if (opts == null ? void 0 : opts.autoJoin) {
2653            parentBlockingPromises.push(result);
2654        }
2655        return {
2656            result: createPause(parentAbortSignal)(result),
2657            cancel: function () {
2658                abortControllerWithReason(childAbortController, taskCancelled);
2659            }
2660        };
2661    };
2662};
2663var createTakePattern = function (startListening, signal) {
2664    var take = function (predicate, timeout) { return __async(void 0, null, function () {
2665        var unsubscribe, tuplePromise, promises, output;
2666        return __generator(this, function (_c) {
2667            switch (_c.label) {
2668                case 0:
2669                    validateActive(signal);
2670                    unsubscribe = function () {
2671                    };
2672                    tuplePromise = new Promise(function (resolve, reject) {
2673                        var stopListening = startListening({
2674                            predicate: predicate,
2675                            effect: function (action, listenerApi) {
2676                                listenerApi.unsubscribe();
2677                                resolve([
2678                                    action,
2679                                    listenerApi.getState(),
2680                                    listenerApi.getOriginalState()
2681                                ]);
2682                            }
2683                        });
2684                        unsubscribe = function () {
2685                            stopListening();
2686                            reject();
2687                        };
2688                    });
2689                    promises = [
2690                        tuplePromise
2691                    ];
2692                    if (timeout != null) {
2693                        promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
2694                    }
2695                    _c.label = 1;
2696                case 1:
2697                    _c.trys.push([1, , 3, 4]);
2698                    return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
2699                case 2:
2700                    output = _c.sent();
2701                    validateActive(signal);
2702                    return [2 /*return*/, output];
2703                case 3:
2704                    unsubscribe();
2705                    return [7 /*endfinally*/];
2706                case 4: return [2 /*return*/];
2707            }
2708        });
2709    }); };
2710    return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
2711};
2712var getListenerEntryPropsFrom = function (options) {
2713    var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
2714    if (type) {
2715        predicate = createAction(type).match;
2716    }
2717    else if (actionCreator) {
2718        type = actionCreator.type;
2719        predicate = actionCreator.match;
2720    }
2721    else if (matcher) {
2722        predicate = matcher;
2723    }
2724    else if (predicate) {
2725    }
2726    else {
2727        throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
2728    }
2729    assertFunction(effect, "options.listener");
2730    return { predicate: predicate, type: type, effect: effect };
2731};
2732var createListenerEntry = function (options) {
2733    var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
2734    var id = nanoid();
2735    var entry = {
2736        id: id,
2737        effect: effect,
2738        type: type,
2739        predicate: predicate,
2740        pending: new Set(),
2741        unsubscribe: function () {
2742            throw new Error("Unsubscribe not initialized");
2743        }
2744    };
2745    return entry;
2746};
2747var cancelActiveListeners = function (entry) {
2748    entry.pending.forEach(function (controller) {
2749        abortControllerWithReason(controller, listenerCancelled);
2750    });
2751};
2752var createClearListenerMiddleware = function (listenerMap) {
2753    return function () {
2754        listenerMap.forEach(cancelActiveListeners);
2755        listenerMap.clear();
2756    };
2757};
2758var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
2759    try {
2760        errorHandler(errorToNotify, errorInfo);
2761    }
2762    catch (errorHandlerError) {
2763        setTimeout(function () {
2764            throw errorHandlerError;
2765        }, 0);
2766    }
2767};
2768var addListener = createAction(alm + "/add");
2769var clearAllListeners = createAction(alm + "/removeAll");
2770var removeListener = createAction(alm + "/remove");
2771var defaultErrorHandler = function () {
2772    var args = [];
2773    for (var _i = 0; _i < arguments.length; _i++) {
2774        args[_i] = arguments[_i];
2775    }
2776    console.error.apply(console, __spreadArray([alm + "/error"], args));
2777};
2778function createListenerMiddleware(middlewareOptions) {
2779    var _this = this;
2780    if (middlewareOptions === void 0) { middlewareOptions = {}; }
2781    var listenerMap = new Map();
2782    var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
2783    assertFunction(onError, "onError");
2784    var insertEntry = function (entry) {
2785        entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
2786        listenerMap.set(entry.id, entry);
2787        return function (cancelOptions) {
2788            entry.unsubscribe();
2789            if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
2790                cancelActiveListeners(entry);
2791            }
2792        };
2793    };
2794    var findListenerEntry = function (comparator) {
2795        for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
2796            var entry = _c[_i];
2797            if (comparator(entry)) {
2798                return entry;
2799            }
2800        }
2801        return void 0;
2802    };
2803    var startListening = function (options) {
2804        var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
2805        if (!entry) {
2806            entry = createListenerEntry(options);
2807        }
2808        return insertEntry(entry);
2809    };
2810    var stopListening = function (options) {
2811        var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
2812        var entry = findListenerEntry(function (entry2) {
2813            var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
2814            return matchPredicateOrType && entry2.effect === effect;
2815        });
2816        if (entry) {
2817            entry.unsubscribe();
2818            if (options.cancelActive) {
2819                cancelActiveListeners(entry);
2820            }
2821        }
2822        return !!entry;
2823    };
2824    var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
2825        var internalTaskController, take, autoJoinPromises, listenerError_1;
2826        return __generator(this, function (_c) {
2827            switch (_c.label) {
2828                case 0:
2829                    internalTaskController = new AbortController();
2830                    take = createTakePattern(startListening, internalTaskController.signal);
2831                    autoJoinPromises = [];
2832                    _c.label = 1;
2833                case 1:
2834                    _c.trys.push([1, 3, 4, 6]);
2835                    entry.pending.add(internalTaskController);
2836                    return [4 /*yield*/, Promise.resolve(entry.effect(action, redux_toolkit_esm_assign({}, api, {
2837                            getOriginalState: getOriginalState,
2838                            condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
2839                            take: take,
2840                            delay: createDelay(internalTaskController.signal),
2841                            pause: createPause(internalTaskController.signal),
2842                            extra: extra,
2843                            signal: internalTaskController.signal,
2844                            fork: createFork(internalTaskController.signal, autoJoinPromises),
2845                            unsubscribe: entry.unsubscribe,
2846                            subscribe: function () {
2847                                listenerMap.set(entry.id, entry);
2848                            },
2849                            cancelActiveListeners: function () {
2850                                entry.pending.forEach(function (controller, _, set) {
2851                                    if (controller !== internalTaskController) {
2852                                        abortControllerWithReason(controller, listenerCancelled);
2853                                        set.delete(controller);
2854                                    }
2855                                });
2856                            }
2857                        })))];
2858                case 2:
2859                    _c.sent();
2860                    return [3 /*break*/, 6];
2861                case 3:
2862                    listenerError_1 = _c.sent();
2863                    if (!(listenerError_1 instanceof TaskAbortError)) {
2864                        safelyNotifyError(onError, listenerError_1, {
2865                            raisedBy: "effect"
2866                        });
2867                    }
2868                    return [3 /*break*/, 6];
2869                case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
2870                case 5:
2871                    _c.sent();
2872                    abortControllerWithReason(internalTaskController, listenerCompleted);
2873                    entry.pending.delete(internalTaskController);
2874                    return [7 /*endfinally*/];
2875                case 6: return [2 /*return*/];
2876            }
2877        });
2878    }); };
2879    var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
2880    var middleware = function (api) { return function (next) { return function (action) {
2881        if (!isAction(action)) {
2882            return next(action);
2883        }
2884        if (addListener.match(action)) {
2885            return startListening(action.payload);
2886        }
2887        if (clearAllListeners.match(action)) {
2888            clearListenerMiddleware();
2889            return;
2890        }
2891        if (removeListener.match(action)) {
2892            return stopListening(action.payload);
2893        }
2894        var originalState = api.getState();
2895        var getOriginalState = function () {
2896            if (originalState === INTERNAL_NIL_TOKEN) {
2897                throw new Error(alm + ": getOriginalState can only be called synchronously");
2898            }
2899            return originalState;
2900        };
2901        var result;
2902        try {
2903            result = next(action);
2904            if (listenerMap.size > 0) {
2905                var currentState = api.getState();
2906                var listenerEntries = Array.from(listenerMap.values());
2907                for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
2908                    var entry = listenerEntries_1[_i];
2909                    var runListener = false;
2910                    try {
2911                        runListener = entry.predicate(action, currentState, originalState);
2912                    }
2913                    catch (predicateError) {
2914                        runListener = false;
2915                        safelyNotifyError(onError, predicateError, {
2916                            raisedBy: "predicate"
2917                        });
2918                    }
2919                    if (!runListener) {
2920                        continue;
2921                    }
2922                    notifyListener(entry, action, api, getOriginalState);
2923                }
2924            }
2925        }
2926        finally {
2927            originalState = INTERNAL_NIL_TOKEN;
2928        }
2929        return result;
2930    }; }; };
2931    return {
2932        middleware: middleware,
2933        startListening: startListening,
2934        stopListening: stopListening,
2935        clearListeners: clearListenerMiddleware
2936    };
2937}
2938// src/autoBatchEnhancer.ts
2939var SHOULD_AUTOBATCH = "RTK_autoBatch";
2940var prepareAutoBatched = function () { return function (payload) {
2941    var _c;
2942    return ({
2943        payload: payload,
2944        meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
2945    });
2946}; };
2947var promise;
2948var 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 () {
2949    throw err;
2950}, 0); }); };
2951var createQueueWithTimer = function (timeout) {
2952    return function (notify) {
2953        setTimeout(notify, timeout);
2954    };
2955};
2956var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
2957var autoBatchEnhancer = function (options) {
2958    if (options === void 0) { options = { type: "raf" }; }
2959    return function (next) { return function () {
2960        var args = [];
2961        for (var _i = 0; _i < arguments.length; _i++) {
2962            args[_i] = arguments[_i];
2963        }
2964        var store = next.apply(void 0, args);
2965        var notifying = true;
2966        var shouldNotifyAtEndOfTick = false;
2967        var notificationQueued = false;
2968        var listeners = new Set();
2969        var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
2970        var notifyListeners = function () {
2971            notificationQueued = false;
2972            if (shouldNotifyAtEndOfTick) {
2973                shouldNotifyAtEndOfTick = false;
2974                listeners.forEach(function (l) { return l(); });
2975            }
2976        };
2977        return Object.assign({}, store, {
2978            subscribe: function (listener2) {
2979                var wrappedListener = function () { return notifying && listener2(); };
2980                var unsubscribe = store.subscribe(wrappedListener);
2981                listeners.add(listener2);
2982                return function () {
2983                    unsubscribe();
2984                    listeners.delete(listener2);
2985                };
2986            },
2987            dispatch: function (action) {
2988                var _a;
2989                try {
2990                    notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
2991                    shouldNotifyAtEndOfTick = !notifying;
2992                    if (shouldNotifyAtEndOfTick) {
2993                        if (!notificationQueued) {
2994                            notificationQueued = true;
2995                            queueCallback(notifyListeners);
2996                        }
2997                    }
2998                    return store.dispatch(action);
2999                }
3000                finally {
3001                    notifying = true;
3002                }
3003            }
3004        });
3005    }; };
3006};
3007// src/index.ts
3008F();
3009
3010//# sourceMappingURL=redux-toolkit.esm.js.map
3011;// CONCATENATED MODULE: ./reduxstore/global/reducer.tsx
3012const INITIAL_STATE = {};
3013const reducer = function() {
3014    let state = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : INITIAL_STATE, action = arguments.length > 1 ? arguments[1] : void 0;
3015    switch(action.type){
3016        case "pageData":
3017            return {
3018                ...state,
3019                pageData: action.value
3020            };
3021        case "pageDataArray":
3022            return {
3023                ...state,
3024                pageDataArray: action.value
3025            };
3026        case "paginationData":
3027            return {
3028                ...state,
3029                paginationData: action.value
3030            };
3031        case "settingData":
3032            return {
3033                ...state,
3034                settingData: action.value
3035            };
3036        case "wordingData":
3037            return {
3038                ...state,
3039                wordingData: action.value
3040            };
3041        case "navigationData":
3042            return {
3043                ...state,
3044                navigationData: action.value
3045            };
3046        case "metaData":
3047            return {
3048                ...state,
3049                metaData: action.value
3050            };
3051        case "token":
3052            return {
3053                ...state,
3054                token: action.value
3055            };
3056        case "currentTemplate":
3057            return {
3058                ...state,
3059                currentTemplate: action.value
3060            };
3061        case "paramData":
3062            return {
3063                ...state,
3064                paramData: action.value
3065            };
3066        case "slugData":
3067            return {
3068                ...state,
3069                slugData: action.value
3070            };
3071        case "pdfUrlReader":
3072            return {
3073                ...state,
3074                pdfUrlReader: action.value
3075            };
3076        default:
3077            return state;
3078    }
3079};
3080/* harmony default export */ var global_reducer = (reducer);
3081
3082;// CONCATENATED MODULE: ./reduxstore/global/actions.tsx
3083const setPageData = (value)=>{
3084    return async (dispatch, getState)=>{
3085        dispatch({
3086            type: "pageData",
3087            value: value
3088        });
3089    };
3090};
3091const setPageDataArray = (value)=>{
3092    return async (dispatch, getState)=>{
3093        dispatch({
3094            type: "pageDataArray",
3095            value: value
3096        });
3097    };
3098};
3099const setPaginationData = (value)=>{
3100    return async (dispatch, getState)=>{
3101        dispatch({
3102            type: "paginationData",
3103            value: value
3104        });
3105    };
3106};
3107const setSettingData = (value)=>{
3108    return async (dispatch, getState)=>{
3109        dispatch({
3110            type: "settingData",
3111            value: value
3112        });
3113    };
3114};
3115const setWordingData = (value)=>{
3116    return async (dispatch, getState)=>{
3117        dispatch({
3118            type: "wordingData",
3119            value: value
3120        });
3121    };
3122};
3123const setNavigationData = (value)=>{
3124    return async (dispatch, getState)=>{
3125        dispatch({
3126            type: "navigationData",
3127            value: value
3128        });
3129    };
3130};
3131const setMetaData = (value)=>{
3132    return async (dispatch, getState)=>{
3133        dispatch({
3134            type: "metaData",
3135            value: value
3136        });
3137    };
3138};
3139const setToken = (value)=>{
3140    return async (dispatch, getState)=>{
3141        dispatch({
3142            type: "token",
3143            value: value
3144        });
3145    };
3146};
3147const setCurrentTemplate = (value)=>{
3148    return async (dispatch, getState)=>{
3149        dispatch({
3150            type: "currentTemplate",
3151            value: value
3152        });
3153    };
3154};
3155const setParamData = (value)=>{
3156    return async (dispatch, getState)=>{
3157        dispatch({
3158            type: "paramData",
3159            value: value
3160        });
3161    };
3162};
3163const setSlugData = (value)=>{
3164    return async (dispatch, getState)=>{
3165        dispatch({
3166            type: "slugData",
3167            value: value
3168        });
3169    };
3170};
3171const setPdfUrlReader = (value)=>{
3172    return async (dispatch, getState)=>{
3173        dispatch({
3174            type: "pdfUrlReader",
3175            value: value
3176        });
3177    };
3178};
3179
3180// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 23 modules
3181var react_redux_es = __webpack_require__(6064);
3182;// CONCATENATED MODULE: ./reduxstore/index.tsx
3183
3184
3185
3186
3187const storeConfiguration = (preloadedState)=>{
3188    const store = configureStore({
3189        reducer: global_reducer,
3190        preloadedState
3191    });
3192    return store;
3193};
3194function ConnectManage(component) {
3195    const mapStateToProps = function(state) {
3196        return state;
3197    };
3198    const mapDispatchToProps = (dispatch)=>{
3199        return bindActionCreators(Object.assign(actions_namespaceObject), dispatch);
3200    };
3201    return (0,react_redux_es/* connect */.$j)(mapStateToProps, mapDispatchToProps)(component);
3202}
3203/* harmony default export */ var reduxstore = (storeConfiguration);
3204
3205
3206/***/ }),
3207
3208/***/ 168:
3209/***/ (function() {
3210
3211// extracted by mini-css-extract-plugin
3212
3213/***/ }),
3214
3215/***/ 7663:
3216/***/ (function(module) {
3217
3218var __dirname = "/";
3219(function(){var e={229:function(e){var t=e.exports={};var r;var n;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=defaultSetTimout}}catch(e){r=defaultSetTimout}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=defaultClearTimeout}}catch(e){n=defaultClearTimeout}})();function runTimeout(e){if(r===setTimeout){return setTimeout(e,0)}if((r===defaultSetTimout||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function runClearTimeout(e){if(n===clearTimeout){return clearTimeout(e)}if((n===defaultClearTimeout||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var i=[];var o=false;var u;var a=-1;function cleanUpNextTick(){if(!o||!u){return}o=false;if(u.length){i=u.concat(i)}else{a=-1}if(i.length){drainQueue()}}function drainQueue(){if(o){return}var e=runTimeout(cleanUpNextTick);o=true;var t=i.length;while(t){u=i;i=[];while(++a<t){if(u){u[a].run()}}a=-1;t=i.length}u=null;o=false;runClearTimeout(e)}t.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}}i.push(new Item(e,t));if(i.length===1&&!o){runTimeout(drainQueue)}};function Item(e,t){this.fun=e;this.array=t}Item.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=true;t.env={};t.argv=[];t.version="";t.versions={};function noop(){}t.on=noop;t.addListener=noop;t.once=noop;t.off=noop;t.removeListener=noop;t.removeAllListeners=noop;t.emit=noop;t.prependListener=noop;t.prependOnceListener=noop;t.listeners=function(e){return[]};t.binding=function(e){throw new Error("process.binding is not supported")};t.cwd=function(){return"/"};t.chdir=function(e){throw new Error("process.chdir is not supported")};t.umask=function(){return 0}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(229);module.exports=r})();
3220
3221/***/ }),
3222
3223/***/ 9921:
3224/***/ (function(__unused_webpack_module, exports) {
3225
3226"use strict";
3227/** @license React v16.13.1
3228 * react-is.production.min.js
3229 *
3230 * Copyright (c) Facebook, Inc. and its affiliates.
3231 *
3232 * This source code is licensed under the MIT license found in the
3233 * LICENSE file in the root directory of this source tree.
3234 */
3235
3236var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
3237Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
3238function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
3239exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};
3239exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
3240exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
3241exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
3242
3243
3244/***/ }),
3245
3246/***/ 9864:
3247/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3248
3249"use strict";
3250
3251
3252if (true) {
3253  module.exports = __webpack_require__(9921);
3254} else {}
3255
3256
3257/***/ }),
3258
3259/***/ 6064:
3260/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3261
3262"use strict";
3263
3264// EXPORTS
3265__webpack_require__.d(__webpack_exports__, {
3266  zt: function() { return /* reexport */ components_Provider; },
3267  $j: function() { return /* reexport */ components_connect; }
3268});
3269
3270// UNUSED EXPORTS: ReactReduxContext, batch, createDispatchHook, createSelectorHook, createStoreHook, shallowEqual, useDispatch, useSelector, useStore
3271
3272// EXTERNAL MODULE: ./node_modules/use-sync-external-store/shim/index.js
3273var shim = __webpack_require__(1688);
3274// EXTERNAL MODULE: ./node_modules/use-sync-external-store/shim/with-selector.js
3275var with_selector = __webpack_require__(2798);
3276// EXTERNAL MODULE: ./node_modules/react-dom/index.js
3277var react_dom = __webpack_require__(3935);
3278;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/reactBatchedUpdates.js
3279
3280;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/batch.js
3281// Default to a dummy "batch" implementation that just runs the callback
3282function defaultNoopBatch(callback) {
3283  callback();
3284}
3285
3286let batch = defaultNoopBatch; // Allow injecting another batching function later
3287
3288const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip dealing with ESM bindings
3289
3290const getBatch = () => batch;
3291// EXTERNAL MODULE: ./node_modules/react/index.js
3292var react = __webpack_require__(7294);
3293;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
3294
3295const ContextKey = Symbol.for(`react-redux-context`);
3296const gT = typeof globalThis !== "undefined" ? globalThis :
3297/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
3298{};
3299
3300function getContext() {
3301  var _gT$ContextKey;
3302
3303  if (!react.createContext) return {};
3304  const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
3305  let realContext = contextMap.get(react.createContext);
3306
3307  if (!realContext) {
3308    realContext = react.createContext(null);
3309
3310    if (false) {}
3311
3312    contextMap.set(react.createContext, realContext);
3313  }
3314
3315  return realContext;
3316}
3317
3318const Context_ReactReduxContext = /*#__PURE__*/getContext();
3319/* harmony default export */ var Context = ((/* unused pure expression or super */ null && (Context_ReactReduxContext)));
3320;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
3321
3322
3323
3324/**
3325 * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
3326 * hook that you should usually not need to call directly.
3327 *
3328 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3329 * @returns {Function} A `useReduxContext` hook bound to the specified context.
3330 */
3331function useReduxContext_createReduxContextHook(context = ReactReduxContext) {
3332  return function useReduxContext() {
3333    const contextValue = useContext(context);
3334
3335    if (false) {}
3336
3337    return contextValue;
3338  };
3339}
3340/**
3341 * A hook to access the value of the `ReactReduxContext`. This is a low-level
3342 * hook that you should usually not need to call directly.
3343 *
3344 * @returns {any} the value of the `ReactReduxContext`
3345 *
3346 * @example
3347 *
3348 * import React from 'react'
3349 * import { useReduxContext } from 'react-redux'
3350 *
3351 * export const CounterComponent = () => {
3352 *   const { store } = useReduxContext()
3353 *   return <div>{store.getState()}</div>
3354 * }
3355 */
3356
3357const useReduxContext = /*#__PURE__*/(/* unused pure expression or super */ null && (useReduxContext_createReduxContextHook()));
3358;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useSelector.js
3359
3360
3361
3362
3363let useSyncExternalStoreWithSelector = (/* unused pure expression or super */ null && (notInitialized));
3364const initializeUseSelector = fn => {
3365  useSyncExternalStoreWithSelector = fn;
3366};
3367
3368const refEquality = (a, b) => a === b;
3369/**
3370 * Hook factory, which creates a `useSelector` hook bound to a given context.
3371 *
3372 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
3373 * @returns {Function} A `useSelector` hook bound to the specified context.
3374 */
3375
3376
3377function createSelectorHook(context = ReactReduxContext) {
3378  const useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : createReduxContextHook(context);
3379  return function useSelector(selector, equalityFnOrOptions = {}) {
3380    const {
3381      equalityFn = refEquality,
3382      stabilityCheck = undefined,
3383      noopCheck = undefined
3384    } = typeof equalityFnOrOptions === 'function' ? {
3385      equalityFn: equalityFnOrOptions
3386    } : equalityFnOrOptions;
3387
3388    if (false) {}
3389
3390    const {
3391      store,
3392      subscription,
3393      getServerState,
3394      stabilityCheck: globalStabilityCheck,
3395      noopCheck: globalNoopCheck
3396    } = useReduxContext();
3397    const firstRun = useRef(true);
3398    const wrappedSelector = useCallback({
3399      [selector.name](state) {
3400        const selected = selector(state);
3401
3402        if (false) {}
3403
3404        return selected;
3405      }
3406
3407    }[selector.name], [selector, globalStabilityCheck, stabilityCheck]);
3408    const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);
3409    useDebugValue(selectedState);
3410    return selectedState;
3411  };
3412}
3413/**
3414 * A hook to access the redux store's state. This hook takes a selector function
3415 * as an argument. The selector is called with the store state.
3416 *
3417 * This hook takes an optional equality comparison function as the second parameter
3418 * that allows you to customize the way the selected state is compared to determine
3419 * whether the component needs to be re-rendered.
3420 *
3421 * @param {Function} selector the selector function
3422 * @param {Function=} equalityFn the function that will be used to determine equality
3423 *
3424 * @returns {any} the selected state
3425 *
3426 * @example
3427 *
3428 * import React from 'react'
3429 * import { useSelector } from 'react-redux'
3430 *
3431 * export const CounterComponent = () => {
3432 *   const counter = useSelector(state => state.counter)
3433 *   return <div>{counter}</div>
3434 * }
3435 */
3436
3437const useSelector = /*#__PURE__*/(/* unused pure expression or super */ null && (createSelectorHook()));
3438;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
3439function _extends() {
3440  return _extends = Object.assign ? Object.assign.bind() : function (n) {
3441    for (var e = 1; e < arguments.length; e++) {
3442      var t = arguments[e];
3443      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3444    }
3445    return n;
3446  }, _extends.apply(null, arguments);
3447}
3448
3449;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
3450function _objectWithoutPropertiesLoose(r, e) {
3451  if (null == r) return {};
3452  var t = {};
3453  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3454    if (-1 !== e.indexOf(n)) continue;
3455    t[n] = r[n];
3456  }
3457  return t;
3458}
3459
3460// EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
3461var hoist_non_react_statics_cjs = __webpack_require__(8679);
3462var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
3463// EXTERNAL MODULE: ./node_modules/react-redux/node_modules/react-is/index.js
3464var react_is = __webpack_require__(2973);
3465;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/selectorFactory.js
3466
3467const _excluded = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
3468
3469function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {
3470  areStatesEqual,
3471  areOwnPropsEqual,
3472  areStatePropsEqual
3473}) {
3474  let hasRunAtLeastOnce = false;
3475  let state;
3476  let ownProps;
3477  let stateProps;
3478  let dispatchProps;
3479  let mergedProps;
3480
3481  function handleFirstCall(firstState, firstOwnProps) {
3482    state = firstState;
3483    ownProps = firstOwnProps;
3484    stateProps = mapStateToProps(state, ownProps);
3485    dispatchProps = mapDispatchToProps(dispatch, ownProps);
3486    mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3487    hasRunAtLeastOnce = true;
3488    return mergedProps;
3489  }
3490
3491  function handleNewPropsAndNewState() {
3492    stateProps = mapStateToProps(state, ownProps);
3493    if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
3494    mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3495    return mergedProps;
3496  }
3497
3498  function handleNewProps() {
3499    if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
3500    if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
3501    mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3502    return mergedProps;
3503  }
3504
3505  function handleNewState() {
3506    const nextStateProps = mapStateToProps(state, ownProps);
3507    const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
3508    stateProps = nextStateProps;
3509    if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3510    return mergedProps;
3511  }
3512
3513  function handleSubsequentCalls(nextState, nextOwnProps) {
3514    const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
3515    const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);
3516    state = nextState;
3517    ownProps = nextOwnProps;
3518    if (propsChanged && stateChanged) return handleNewPropsAndNewState();
3519    if (propsChanged) return handleNewProps();
3520    if (stateChanged) return handleNewState();
3521    return mergedProps;
3522  }
3523
3524  return function pureFinalPropsSelector(nextState, nextOwnProps) {
3525    return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
3526  };
3527}
3528// TODO: Add more comments
3529// The selector returned by selectorFactory will memoize its results,
3530// allowing connect's shouldComponentUpdate to return false if final
3531// props have not changed.
3532function finalPropsSelectorFactory(dispatch, _ref) {
3533  let {
3534    initMapStateToProps,
3535    initMapDispatchToProps,
3536    initMergeProps
3537  } = _ref,
3538      options = _objectWithoutPropertiesLoose(_ref, _excluded);
3539
3540  const mapStateToProps = initMapStateToProps(dispatch, options);
3541  const mapDispatchToProps = initMapDispatchToProps(dispatch, options);
3542  const mergeProps = initMergeProps(dispatch, options);
3543
3544  if (false) {}
3545
3546  return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
3547}
3548;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/bindActionCreators.js
3549function bindActionCreators(actionCreators, dispatch) {
3550  const boundActionCreators = {};
3551
3552  for (const key in actionCreators) {
3553    const actionCreator = actionCreators[key];
3554
3555    if (typeof actionCreator === 'function') {
3556      boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));
3557    }
3558  }
3559
3560  return boundActionCreators;
3561}
3562;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/wrapMapToProps.js
3563
3564function wrapMapToPropsConstant( // * Note:
3565//  It seems that the dispatch argument
3566//  could be a dispatch function in some cases (ex: whenMapDispatchToPropsIsMissing)
3567//  and a state object in some others (ex: whenMapStateToPropsIsMissing)
3568// eslint-disable-next-line no-unused-vars
3569getConstant) {
3570  return function initConstantSelector(dispatch) {
3571    const constant = getConstant(dispatch);
3572
3573    function constantSelector() {
3574      return constant;
3575    }
3576
3577    constantSelector.dependsOnOwnProps = false;
3578    return constantSelector;
3579  };
3580} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
3581// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
3582// whether mapToProps needs to be invoked when props have changed.
3583//
3584// A length of one signals that mapToProps does not depend on props from the parent component.
3585// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
3586// therefore not reporting its length accurately..
3587// TODO Can this get pulled out so that we can subscribe directly to the store if we don't need ownProps?
3588
3589function getDependsOnOwnProps(mapToProps) {
3590  return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
3591} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
3592// this function wraps mapToProps in a proxy function which does several things:
3593//
3594//  * Detects whether the mapToProps function being called depends on props, which
3595//    is used by selectorFactory to decide if it should reinvoke on props changes.
3596//
3597//  * On first call, handles mapToProps if returns another function, and treats that
3598//    new function as the true mapToProps for subsequent calls.
3599//
3600//  * On first call, verifies the first result is a plain object, in order to warn
3601//    the developer that their mapToProps function is not returning a valid result.
3602//
3603
3604function wrapMapToPropsFunc(mapToProps, methodName) {
3605  return function initProxySelector(dispatch, {
3606    displayName
3607  }) {
3608    const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
3609      return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, undefined);
3610    }; // allow detectFactoryAndVerify to get ownProps
3611
3612
3613    proxy.dependsOnOwnProps = true;
3614
3615    proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
3616      proxy.mapToProps = mapToProps;
3617      proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
3618      let props = proxy(stateOrDispatch, ownProps);
3619
3620      if (typeof props === 'function') {
3621        proxy.mapToProps = props;
3622        proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
3623        props = proxy(stateOrDispatch, ownProps);
3624      }
3625
3626      if (false) {}
3627      return props;
3628    };
3629
3630    return proxy;
3631  };
3632}
3633;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/invalidArgFactory.js
3634function createInvalidArgFactory(arg, name) {
3635  return (dispatch, options) => {
3636    throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
3637  };
3638}
3639;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapDispatchToProps.js
3640
3641
3642
3643function mapDispatchToPropsFactory(mapDispatchToProps) {
3644  return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(dispat
3644ch => // @ts-ignore
3645  bindActionCreators(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? wrapMapToPropsConstant(dispatch => ({
3646    dispatch
3647  })) : typeof mapDispatchToProps === 'function' ? // @ts-ignore
3648  wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : createInvalidArgFactory(mapDispatchToProps, 'mapDispatchToProps');
3649}
3650;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapStateToProps.js
3651
3652
3653function mapStateToPropsFactory(mapStateToProps) {
3654  return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : typeof mapStateToProps === 'function' ? // @ts-ignore
3655  wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : createInvalidArgFactory(mapStateToProps, 'mapStateToProps');
3656}
3657;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mergeProps.js
3658
3659
3660
3661function defaultMergeProps(stateProps, dispatchProps, ownProps) {
3662  // @ts-ignore
3663  return _extends({}, ownProps, stateProps, dispatchProps);
3664}
3665function wrapMergePropsFunc(mergeProps) {
3666  return function initMergePropsProxy(dispatch, {
3667    displayName,
3668    areMergedPropsEqual
3669  }) {
3670    let hasRunOnce = false;
3671    let mergedProps;
3672    return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
3673      const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
3674
3675      if (hasRunOnce) {
3676        if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
3677      } else {
3678        hasRunOnce = true;
3679        mergedProps = nextMergedProps;
3680        if (false) {}
3681      }
3682
3683      return mergedProps;
3684    };
3685  };
3686}
3687function mergePropsFactory(mergeProps) {
3688  return !mergeProps ? () => defaultMergeProps : typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, 'mergeProps');
3689}
3690;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/Subscription.js
3691 // encapsulates the subscription logic for connecting a component to the redux store, as
3692// well as nesting subscriptions of descendant components, so that we can ensure the
3693// ancestor components re-render before descendants
3694
3695function createListenerCollection() {
3696  const batch = getBatch();
3697  let first = null;
3698  let last = null;
3699  return {
3700    clear() {
3701      first = null;
3702      last = null;
3703    },
3704
3705    notify() {
3706      batch(() => {
3707        let listener = first;
3708
3709        while (listener) {
3710          listener.callback();
3711          listener = listener.next;
3712        }
3713      });
3714    },
3715
3716    get() {
3717      let listeners = [];
3718      let listener = first;
3719
3720      while (listener) {
3721        listeners.push(listener);
3722        listener = listener.next;
3723      }
3724
3725      return listeners;
3726    },
3727
3728    subscribe(callback) {
3729      let isSubscribed = true;
3730      let listener = last = {
3731        callback,
3732        next: null,
3733        prev: last
3734      };
3735
3736      if (listener.prev) {
3737        listener.prev.next = listener;
3738      } else {
3739        first = listener;
3740      }
3741
3742      return function unsubscribe() {
3743        if (!isSubscribed || first === null) return;
3744        isSubscribed = false;
3745
3746        if (listener.next) {
3747          listener.next.prev = listener.prev;
3748        } else {
3749          last = listener.prev;
3750        }
3751
3752        if (listener.prev) {
3753          listener.prev.next = listener.next;
3754        } else {
3755          first = listener.next;
3756        }
3757      };
3758    }
3759
3760  };
3761}
3762
3763const nullListeners = {
3764  notify() {},
3765
3766  get: () => []
3767};
3768function createSubscription(store, parentSub) {
3769  let unsubscribe;
3770  let listeners = nullListeners; // Reasons to keep the subscription active
3771
3772  let subscriptionsAmount = 0; // Is this specific subscription subscribed (or only nested ones?)
3773
3774  let selfSubscribed = false;
3775
3776  function addNestedSub(listener) {
3777    trySubscribe();
3778    const cleanupListener = listeners.subscribe(listener); // cleanup nested sub
3779
3780    let removed = false;
3781    return () => {
3782      if (!removed) {
3783        removed = true;
3784        cleanupListener();
3785        tryUnsubscribe();
3786      }
3787    };
3788  }
3789
3790  function notifyNestedSubs() {
3791    listeners.notify();
3792  }
3793
3794  function handleChangeWrapper() {
3795    if (subscription.onStateChange) {
3796      subscription.onStateChange();
3797    }
3798  }
3799
3800  function isSubscribed() {
3801    return selfSubscribed;
3802  }
3803
3804  function trySubscribe() {
3805    subscriptionsAmount++;
3806
3807    if (!unsubscribe) {
3808      unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);
3809      listeners = createListenerCollection();
3810    }
3811  }
3812
3813  function tryUnsubscribe() {
3814    subscriptionsAmount--;
3815
3816    if (unsubscribe && subscriptionsAmount === 0) {
3817      unsubscribe();
3818      unsubscribe = undefined;
3819      listeners.clear();
3820      listeners = nullListeners;
3821    }
3822  }
3823
3824  function trySubscribeSelf() {
3825    if (!selfSubscribed) {
3826      selfSubscribed = true;
3827      trySubscribe();
3828    }
3829  }
3830
3831  function tryUnsubscribeSelf() {
3832    if (selfSubscribed) {
3833      selfSubscribed = false;
3834      tryUnsubscribe();
3835    }
3836  }
3837
3838  const subscription = {
3839    addNestedSub,
3840    notifyNestedSubs,
3841    handleChangeWrapper,
3842    isSubscribed,
3843    trySubscribe: trySubscribeSelf,
3844    tryUnsubscribe: tryUnsubscribeSelf,
3845    getListeners: () => listeners
3846  };
3847  return subscription;
3848}
3849;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
3850 // React currently throws a warning when using useLayoutEffect on the server.
3851// To get around it, we can conditionally useEffect on the server (no-op) and
3852// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
3853// subscription callback always has the selector from the latest render commit
3854// available, otherwise a store update may happen between render and the effect,
3855// which may cause missed updates; we also must ensure the store subscription
3856// is created synchronously, otherwise a store update may occur before the
3857// subscription is created and an inconsistent state may be observed
3858// Matches logic in React's `shared/ExecutionEnvironment` file
3859
3860const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
3861const useIsomorphicLayoutEffect = canUseDOM ? react.useLayoutEffect : react.useEffect;
3862;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/shallowEqual.js
3863function is(x, y) {
3864  if (x === y) {
3865    return x !== 0 || y !== 0 || 1 / x === 1 / y;
3866  } else {
3867    return x !== x && y !== y;
3868  }
3869}
3870
3871function shallowEqual(objA, objB) {
3872  if (is(objA, objB)) return true;
3873
3874  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
3875    return false;
3876  }
3877
3878  const keysA = Object.keys(objA);
3879  const keysB = Object.keys(objB);
3880  if (keysA.length !== keysB.length) return false;
3881
3882  for (let i = 0; i < keysA.length; i++) {
3883    if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
3884      return false;
3885    }
3886  }
3887
3888  return true;
3889}
3890;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/useSyncExternalStore.js
3891const useSyncExternalStore_notInitialized = () => {
3892  throw new Error('uSES not initialized!');
3893};
3894;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/connect.js
3895
3896
3897const connect_excluded = ["reactReduxForwardedRef"];
3898
3899/* eslint-disable valid-jsdoc, @typescript-eslint/no-unused-vars */
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913let useSyncExternalStore = useSyncExternalStore_notInitialized;
3914const initializeConnect = fn => {
3915  useSyncExternalStore = fn;
3916}; // Define some constant arrays just to avoid re-creating these
3917
3918const EMPTY_ARRAY = (/* unused pure expression or super */ null && ([null, 0]));
3919const NO_SUBSCRIPTION_ARRAY = [null, null]; // Attempts to stringify whatever not-really-a-component value we were given
3920// for logging in an error message
3921
3922const stringifyComponent = Comp => {
3923  try {
3924    return JSON.stringify(Comp);
3925  } catch (err) {
3926    return String(Comp);
3927  }
3928};
3929
3930// This is "just" a `useLayoutEffect`, but with two modifications:
3931// - we need to fall back to `useEffect` in SSR to avoid annoying warnings
3932// - we extract this to a separate function to avoid closing over values
3933//   and causing memory leaks
3934function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
3935  useIsomorphicLayoutEffect(() => effectFunc(...effectArgs), dependencies);
3936} // Effect callback, extracted: assign the latest props values to refs for later usage
3937
3938
3939function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, // actualChildProps: unknown,
3940childPropsFromStoreUpdate, notifyNestedSubs) {
3941  // We want to capture the wrapper props and child props we used for later comparisons
3942  lastWrapperProps.current = wrapperProps;
3943  renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
3944
3945  if (childPropsFromStoreUpdate.current) {
3946    childPropsFromStoreUpdate.current = null;
3947    notifyNestedSubs();
3948  }
3949} // Effect callback, extracted: subscribe to the Redux store or nearest connected ancestor,
3950// check for updates after dispatched actions, and trigger re-renders.
3951
3952
3953function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, // forceComponentUpdateDispatch: React.Dispatch<any>,
3954additionalSubscribeListener) {
3955  // If we're not subscribed to the store, nothing to do here
3956  if (!shouldHandleStateChanges) return () => {}; // Capture values for checking if and when this component unmounts
3957
3958  let didUnsubscribe = false;
3959  let lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
3960
3961  const checkForUpdates = () => {
3962    if (didUnsubscribe || !isMounted.current) {
3963      // Don't run stale listeners.
3964      // Redux doesn't guarantee unsubscriptions happen until next dispatch.
3965      return;
3966    } // TODO We're currently calling getState ourselves here, rather than letting `uSES` do it
3967
3968
3969    const latestStoreState = store.getState();
3970    let newChildProps, error;
3971
3972    try {
3973      // Actually run the selector with the most recent store state and wrapper props
3974      // to determine what the child props should be
3975      newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
3976    } catch (e) {
3977      error = e;
3978      lastThrownError = e;
3979    }
3980
3981    if (!error) {
3982      lastThrownError = null;
3983    } // If the child props haven't changed, nothing to do here - cascade the subscription update
3984
3985
3986    if (newChildProps === lastChildProps.current) {
3987      if (!renderIsScheduled.current) {
3988        notifyNestedSubs();
3989      }
3990    } else {
3991      // Save references to the new child props.  Note that we track the "child props from store update"
3992      // as a ref instead of a useState/useReducer because we need a way to determine if that value has
3993      // been processed.  If this went into useState/useReducer, we couldn't clear out the value without
3994      // forcing another re-render, which we don't want.
3995      lastChildProps.current = newChildProps;
3996      childPropsFromStoreUpdate.current = newChildProps;
3997      renderIsScheduled.current = true; // TODO This is hacky and not how `uSES` is meant to be used
3998      // Trigger the React `useSyncExternalStore` subscriber
3999
4000      additionalSubscribeListener();
4001    }
4002  }; // Actually subscribe to the nearest connected ancestor (or store)
4003
4004
4005  subscription.onStateChange = checkForUpdates;
4006  subscription.trySubscribe(); // Pull data from the store after first render in case the store has
4007  // changed since we began.
4008
4009  checkForUpdates();
4010
4011  const unsubscribeWrapper = () => {
4012    didUnsubscribe = true;
4013    subscription.tryUnsubscribe();
4014    subscription.onStateChange = null;
4015
4016    if (lastThrownError) {
4017      // It's possible that we caught an error due to a bad mapState function, but the
4018      // parent re-rendered without this component and we're about to unmount.
4019      // This shouldn't happen as long as we do top-down subscriptions correctly, but
4020      // if we ever do those wrong, this throw will surface the error in our tests.
4021      // In that case, throw the error from here so it doesn't get lost.
4022      throw lastThrownError;
4023    }
4024  };
4025
4026  return unsubscribeWrapper;
4027} // Reducer initial state creation for our update reducer
4028
4029
4030const initStateUpdates = () => EMPTY_ARRAY;
4031
4032function strictEqual(a, b) {
4033  return a === b;
4034}
4035/**
4036 * Infers the type of props that a connector will inject into a component.
4037 */
4038
4039
4040let hasWarnedAboutDeprecatedPureOption = false;
4041/**
4042 * Connects a React component to a Redux store.
4043 *
4044 * - Without arguments, just wraps the component, without changing the behavior / props
4045 *
4046 * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
4047 * is to override ownProps (as stated in the docs), so what remains is everything that's
4048 * not a state or dispatch prop
4049 *
4050 * - When 3rd param is passed, we don't know if ownProps propagate and whether they
4051 * should be valid component props, because it depends on mergeProps implementation.
4052 * As such, it is the user's responsibility to extend ownProps interface from state or
4053 * dispatch props or both when applicable
4054 *
4055 * @param mapStateToProps A function that extracts values from state
4056 * @param mapDispatchToProps Setup for dispatching actions
4057 * @param mergeProps Optional callback to merge state and dispatch props together
4058 * @param options Options for configuring the connection
4059 *
4060 */
4061
4062function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
4063  // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
4064  // @ts-ignore
4065  pure,
4066  areStatesEqual = strictEqual,
4067  areOwnPropsEqual = shallowEqual,
4068  areStatePropsEqual = shallowEqual,
4069  areMergedPropsEqual = shallowEqual,
4070  // use React's forwardRef to expose a ref of the wrapped component
4071  forwardRef = false,
4072  // the context consumer to use
4073  context = Context_ReactReduxContext
4074} = {}) {
4075  if (false) {}
4076
4077  const Context = context;
4078  const initMapStateToProps = mapStateToPropsFactory(mapStateToProps);
4079  const initMapDispatchToProps = mapDispatchToPropsFactory(mapDispatchToProps);
4080  const initMergeProps = mergePropsFactory(mergeProps);
4081  const shouldHandleStateChanges = Boolean(mapStateToProps);
4082
4083  const wrapWithConnect = WrappedComponent => {
4084    if (false) {}
4085
4086    const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
4087    const displayName = `Connect(${wrappedComponentName})`;
4088    const selectorFactoryOptions = {
4089      shouldHandleStateChanges,
4090      displayName,
4091      wrappedComponentName,
4092      WrappedComponent,
4093      // @ts-ignore
4094      initMapStateToProps,
4095      // @ts-ignore
4096      initMapDispatchToProps,
4097      initMergeProps,
4098      areStatesEqual,
4099      areStatePropsEqual,
4100      areOwnPropsEqual,
4101      areMergedPropsEqual
4102    };
4103
4104    function ConnectFunction(props) {
4105      const [propsContext, reactReduxForwardedRef, wrapperProps] = react.useMemo(() => {
4106        // Distinguish between actual "data" props that were passed to the wrapper component,
4107        // and values needed to control behavior (forwarded refs, alternate context instances).
4108        // To maintain the wrapperProps object reference, memoize this destructuring.
4109        const {
4110          reactReduxForwardedRef
4111        } = props,
4112              wrapperProps = _objectWithoutPropertiesLoose(props, connect_excluded);
4113
4114        return [props.context, reactReduxForwardedRef, wrapperProps];
4115      }, [props]);
4116      const ContextToUse = react.useMemo(() => {
4117        // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
4118        // Memoize the check that determines which context instance we should use.
4119        return propsContext && propsContext.Consumer && // @ts-ignore
4120        (0,react_is.isContextConsumer)( /*#__PURE__*/react.createElement(propsContext.Consumer, null)) ? propsContext : Context;
4121      }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
4122
4123      const contextValue = react.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
4124      // We'll check to see if it _looks_ like a Redux store first.
4125      // This allows us to pass through a `store` prop that is just a plain value.
4126
4127      const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
4128      const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
4129
4130      if (false) {} // Based on the previous check, one of these must be true
4131
4132
4133      const store = didStoreComeFromProps ? props.store : contextValue.store;
4134      const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
4135      const childPropsSelector = react.useMemo(() => {
4136        // The child props selector needs the store reference as an input.
4137        // Re-create this selector whenever the store changes.
4138        return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);
4139      }, [store]);
4140      const [subscription, notifyNestedSubs] = react.useMemo(() => {
4141        if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
4142        // connected to the store via props shouldn't use subscription from context, or vice versa.
4143
4144        const subscription = createSubscription(store, didStoreComeFromProps ? undefined : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
4145        // the middle of the notification loop, where `subscription` will then be null. This can
4146        // probably be avoided if Subscription's listeners logic is changed to not call listeners
4147        // that have been unsubscribed in the  middle of the notification loop.
4148
4149        const notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
4150        return [subscription, notifyNestedSubs];
4151      }, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
4152      // and memoize that value to avoid unnecessary context updates.
4153
4154      const overriddenContextValue = react.useMemo(() => {
4155        if (didStoreComeFromProps) {
4156          // This component is directly subscribed to a store from props.
4157          // We don't want descendants reading from this store - pass down whatever
4158          // the existing context value is from the nearest connected ancestor.
4159          return contextValue;
4160        } // Otherwise, put this component's subscription instance into context, so that
4161        // connected descendants won't update until after this component is done
4162
4163
4164        return _extends({}, contextValue, {
4165          subscription
4166        });
4167      }, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
4168
4169      const lastChildProps = react.useRef();
4170      const lastWrapperProps = react.useRef(wrapperProps);
4171      const childPropsFromStoreUpdate = react.useRef();
4172      const renderIsScheduled = react.useRef(false);
4173      const isProcessingDispatch = react.useRef(false);
4174      const isMounted = react.useRef(false);
4175      const latestSubscriptionCallbackError = react.useRef();
4176      useIsomorphicLayoutEffect(() => {
4177        isMounted.current = true;
4178        return () => {
4179          isMounted.current = false;
4180        };
4181      }, []);
4182      const actualChildPropsSelector = react.useMemo(() => {
4183        const selector = () => {
4184          // Tricky logic here:
4185          // - This render may have been triggered by a Redux store update that produced new child props
4186          // - However, we may have gotten new wrapper props after that
4187          // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
4188          // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
4189          // So, we'll use the child props from store update only if the wrapper props are the same as last time.
4190          if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
4191            return childPropsFromStoreUpdate.current;
4192          } // TODO We're reading the store directly in render() here. Bad idea?
4193          // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
4194          // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
4195          // to determine what the child props should be.
4196
4197
4198          return childPropsSelector(store.getState(), wrapperProps);
4199        };
4200
4201        return selector;
4202      }, [store, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
4203      // about useLayoutEffect in SSR, so we try to detect environment and fall back to
4204      // just useEffect instead to avoid the warning, since neither will run anyway.
4205
4206      const subscribeForReact = react.useMemo(() => {
4207        const subscribe = reactListener => {
4208          if (!subscription) {
4209            return () => {};
4210          }
4211
4212          return subscribeUpdates(shouldHandleStateChanges, store, subscription, // @ts-ignore
4213          childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);
4214        };
4215
4216        return subscribe;
4217      }, [subscription]);
4218      useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs]);
4219      let actualChildProps;
4220
4221      try {
4222        actualChildProps = useSyncExternalStore( // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
4223        subscribeForReact, // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
4224        // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
4225        actualChildPropsSelector, getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);
4226      } catch (err) {
4227        if (latestSubscriptionCallbackError.current) {
4228          ;
4229          err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;
4230        }
4231
4232        throw err;
4233      }
4234
4235      useIsomorphicLayoutEffect(() => {
4236        latestSubscriptionCallbackError.current = undefined;
4237        childPropsFromStoreUpdate.current = undefined;
4238        lastChildProps.current = actualChildProps;
4239      }); // Now that all that's done, we can finally try to actually render the child component.
4240      // We memoize the elements for the rendered child component as an optimization.
4241
4242      const renderedWrappedComponent = react.useMemo(() => {
4243        return (
4244          /*#__PURE__*/
4245          // @ts-ignore
4246          react.createElement(WrappedComponent, _extends({}, actualChildProps, {
4247            ref: reactReduxForwardedRef
4248          }))
4249        );
4250      }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
4251      // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
4252
4253      const renderedChild = react.useMemo(() => {
4254        if (shouldHandleStateChanges) {
4255          // If this component is subscribed to store updates, we need to pass its own
4256          // subscription instance down to our descendants. That means rendering the same
4257          // Context instance, and putting a different value into the context.
4258          return /*#__PURE__*/react.createElement(ContextToUse.Provider, {
4259            value: overriddenContextValue
4260          }, renderedWrappedComponent);
4261        }
4262
4263        return renderedWrappedComponent;
4264      }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
4265      return renderedChild;
4266    }
4267
4268    const _Connect = react.memo(ConnectFunction);
4269
4270    // Add a hacky cast to get the right output type
4271    const Connect = _Connect;
4272    Connect.WrappedComponent = WrappedComponent;
4273    Connect.displayName = ConnectFunction.displayName = displayName;
4274
4275    if (forwardRef) {
4276      const _forwarded = react.forwardRef(function forwardConnectRef(props, ref) {
4277        // @ts-ignore
4278        return /*#__PURE__*/react.createElement(Connect, _extends({}, props, {
4279          reactReduxForwardedRef: ref
4280        }));
4281      });
4282
4283      const forwarded = _forwarded;
4284      forwarded.displayName = displayName;
4285      forwarded.WrappedComponent = WrappedComponent;
4286      return hoist_non_react_statics_cjs_default()(forwarded, WrappedComponent);
4287    }
4288
4289    return hoist_non_react_statics_cjs_default()(Connect, WrappedComponent);
4290  };
4291
4292  return wrapWithConnect;
4293}
4294
4295/* harmony default export */ var components_connect = (connect);
4296;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Provider.js
4297
4298
4299
4300
4301
4302function Provider({
4303  store,
4304  context,
4305  children,
4306  serverState,
4307  stabilityCheck = 'once',
4308  noopCheck = 'once'
4309}) {
4310  const contextValue = react.useMemo(() => {
4311    const subscription = createSubscription(store);
4312    return {
4313      store,
4314      subscription,
4315      getServerState: serverState ? () => serverState : undefined,
4316      stabilityCheck,
4317      noopCheck
4318    };
4319  }, [store, serverState, stabilityCheck, noopCheck]);
4320  const previousState = react.useMemo(() => store.getState(), [store]);
4321  useIsomorphicLayoutEffect(() => {
4322    const {
4323      subscription
4324    } = contextValue;
4325    subscription.onStateChange = subscription.notifyNestedSubs;
4326    subscription.trySubscribe();
4327
4328    if (previousState !== store.getState()) {
4329      subscription.notifyNestedSubs();
4330    }
4331
4332    return () => {
4333      subscription.tryUnsubscribe();
4334      subscription.onStateChange = undefined;
4335    };
4336  }, [contextValue, previousState]);
4337  const Context = context || Context_ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype
4338
4339  return /*#__PURE__*/react.createElement(Context.Provider, {
4340    value: contextValue
4341  }, children);
4342}
4343
4344/* harmony default export */ var components_Provider = (Provider);
4345;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
4346
4347
4348/**
4349 * Hook factory, which creates a `useStore` hook bound to a given context.
4350 *
4351 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4352 * @returns {Function} A `useStore` hook bound to the specified context.
4353 */
4354
4355function useStore_createStoreHook(context = ReactReduxContext) {
4356  const useReduxContext = // @ts-ignore
4357  context === ReactReduxContext ? useDefaultReduxContext : // @ts-ignore
4358  createReduxContextHook(context);
4359  return function useStore() {
4360    const {
4361      store
4362    } = useReduxContext(); // @ts-ignore
4363
4364    return store;
4365  };
4366}
4367/**
4368 * A hook to access the redux store.
4369 *
4370 * @returns {any} the redux store
4371 *
4372 * @example
4373 *
4374 * import React from 'react'
4375 * import { useStore } from 'react-redux'
4376 *
4377 * export const ExampleComponent = () => {
4378 *   const store = useStore()
4379 *   return <div>{store.getState()}</div>
4380 * }
4381 */
4382
4383const useStore = /*#__PURE__*/(/* unused pure expression or super */ null && (useStore_createStoreHook()));
4384;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
4385
4386
4387/**
4388 * Hook factory, which creates a `useDispatch` hook bound to a given context.
4389 *
4390 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
4391 * @returns {Function} A `useDispatch` hook bound to the specified context.
4392 */
4393
4394function createDispatchHook(context = ReactReduxContext) {
4395  const useStore = // @ts-ignore
4396  context === ReactReduxContext ? useDefaultStore : createStoreHook(context);
4397  return function useDispatch() {
4398    const store = useStore(); // @ts-ignore
4399
4400    return store.dispatch;
4401  };
4402}
4403/**
4404 * A hook to access the redux `dispatch` function.
4405 *
4406 * @returns {any|function} redux store's `dispatch` function
4407 *
4408 * @example
4409 *
4410 * import React, { useCallback } from 'react'
4411 * import { useDispatch } from 'react-redux'
4412 *
4413 * export const CounterComponent = ({ value }) => {
4414 *   const dispatch = useDispatch()
4415 *   const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
4416 *   return (
4417 *     <div>
4418 *       <span>{value}</span>
4419 *       <button onClick={increaseCounter}>Increase counter</button>
4420 *     </div>
4421 *   )
4422 * }
4423 */
4424
4425const useDispatch = /*#__PURE__*/(/* unused pure expression or super */ null && (createDispatchHook()));
4426;// CONCATENATED MODULE: ./node_modules/react-redux/es/exports.js
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436;// CONCATENATED MODULE: ./node_modules/react-redux/es/index.js
4437// The primary entry point assumes we're working with standard ReactDOM/RN, but
4438// older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).
4439// Because of that, the useSyncExternalStore compat shim is needed.
4440
4441
4442
4443
4444
4445
4446initializeUseSelector(with_selector.useSyncExternalStoreWithSelector);
4447initializeConnect(shim.useSyncExternalStore); // Enable batched updates in our subscriptions for use
4448// with standard React renderers (ReactDOM, React Native)
4449
4450setBatch(react_dom.unstable_batchedUpdates);
4451
4452
4453
4454/***/ }),
4455
4456/***/ 8359:
4457/***/ (function(__unused_webpack_module, exports) {
4458
4459"use strict";
4460var __webpack_unused_export__;
4461/**
4462 * @license React
4463 * react-is.production.min.js
4464 *
4465 * Copyright (c) Facebook, Inc. and its affiliates.
4466 *
4467 * This source code is licensed under the MIT license found in the
4468 * LICENSE file in the root directory of this source tree.
4469 */
4470var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
4471function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}__webpack_unused_export__=h;__webpack_unused_export__=g;__webpack_unused_export__=b;__webpack_unused_export__=l;__webpack_unused_export__=d;__webpack_unused_export__=q;__webpack_unused_export__=p;__webpack_unused_export__=c;__webpack_unused_export__=f;__webpack_unused_export__=e;__webpack_unused_export__=m;
4472__webpack_unused_export__=n;__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};__webpack_unused_export__=function(a){return v(a)===g};__webpack_unused_export__=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};__webpack_unused_export__=function(a){return v(a)===l};__webpack_unused_export__=function(a){return v(a)===d};__webpack_unused_export__=function(a){return v(a)===q};__webpack_unused_export__=function(a){return v(a)===p};
4473__webpack_unused_export__=function(a){return v(a)===c};__webpack_unused_export__=function(a){return v(a)===f};__webpack_unused_export__=function(a){return v(a)===e};__webpack_unused_export__=function(a){return v(a)===m};__webpack_unused_export__=function(a){return v(a)===n};
4474__webpack_unused_export__=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};__webpack_unused_export__=v;
4475
4476
4477/***/ }),
4478
4479/***/ 2973:
4480/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4481
4482"use strict";
4483
4484
4485if (true) {
4486  module.exports = __webpack_require__(8359);
4487} else {}
4488
4489
4490/***/ }),
4491
4492/***/ 83:
4493/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
4494
4495"use strict";
4496/**
4497 * @license React
4498 * use-sync-external-store-shim.production.js
4499 *
4500 * Copyright (c) Meta Platforms, Inc. and affiliates.
4501 *
4502 * This source code is licensed under the MIT license found in the
4503 * LICENSE file in the root directory of this source tree.
4504 */
4505
4506
4507var React = __webpack_require__(7294);
4508function is(x, y) {
4509  return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
4510}
4511var objectIs = "function" === typeof Object.is ? Object.is : is,
4512  useState = React.useState,
4513  useEffect = React.useEffect,
4514  useLayoutEffect = React.useLayoutEffect,
4515  useDebugValue = React.useDebugValue;
4516function useSyncExternalStore$2(subscribe, getSnapshot) {
4517  var value = getSnapshot(),
4518    _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
4519    inst = _useState[0].inst,
4520    forceUpdate = _useState[1];
4521  useLayoutEffect(
4522    function () {
4523      inst.value = value;
4524      inst.getSnapshot = getSnapshot;
4525      checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
4526    },
4527    [subscribe, value, getSnapshot]
4528  );
4529  useEffect(
4530    function () {
4531      checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
4532      return subscribe(function () {
4533        checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
4534      });
4535    },
4536    [subscribe]
4537  );
4538  useDebugValue(value);
4539  return value;
4540}
4541function checkIfSnapshotChanged(inst) {
4542  var latestGetSnapshot = inst.getSnapshot;
4543  inst = inst.value;
4544  try {
4545    var nextValue = latestGetSnapshot();
4546    return !objectIs(inst, nextValue);
4547  } catch (error) {
4548    return !0;
4549  }
4550}
4551function useSyncExternalStore$1(subscribe, getSnapshot) {
4552  return getSnapshot();
4553}
4554var shim =
4555  "undefined" === typeof window ||
4556  "undefined" === typeof window.document ||
4557  "undefined" === typeof window.document.createElement
4558    ? useSyncExternalStore$1
4559    : useSyncExternalStore$2;
4560exports.useSyncExternalStore =
4561  void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
4562
4563
4564/***/ }),
4565
4566/***/ 6251:
4567/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
4568
4569"use strict";
4570/**
4571 * @license React
4572 * use-sync-external-store-shim/with-selector.production.js
4573 *
4574 * Copyright (c) Meta Platforms, Inc. and affiliates.
4575 *
4576 * This source code is licensed under the MIT license found in the
4577 * LICENSE file in the root directory of this source tree.
4578 */
4579
4580
4581var React = __webpack_require__(7294),
4582  shim = __webpack_require__(1688);
4583function is(x, y) {
4584  return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
4585}
4586var objectIs = "function" === typeof Object.is ? Object.is : is,
4587  useSyncExternalStore = shim.useSyncExternalStore,
4588  useRef = React.useRef,
4589  useEffect = React.useEffect,
4590  useMemo = React.useMemo,
4591  useDebugValue = React.useDebugValue;
4592exports.useSyncExternalStoreWithSelector = function (
4593  subscribe,
4594  getSnapshot,
4595  getServerSnapshot,
4596  selector,
4597  isEqual
4598) {
4599  var instRef = useRef(null);
4600  if (null === instRef.current) {
4601    var inst = { hasValue: !1, value: null };
4602    instRef.current = inst;
4603  } else inst = instRef.current;
4604  instRef = useMemo(
4605    function () {
4606      function memoizedSelector(nextSnapshot) {
4607        if (!hasMemo) {
4608          hasMemo = !0;
4609          memoizedSnapshot = nextSnapshot;
4610          nextSnapshot = selector(nextSnapshot);
4611          if (void 0 !== isEqual && inst.hasValue) {
4612            var currentSelection = inst.value;
4613            if (isEqual(currentSelection, nextSnapshot))
4614              return (memoizedSelection = currentSelection);
4615          }
4616          return (memoizedSelection = nextSnapshot);
4617        }
4618        currentSelection = memoizedSelection;
4619        if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
4620        var nextSelection = selector(nextSnapshot);
4621        if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
4622          return (memoizedSnapshot = nextSnapshot), currentSelection;
4623        memoizedSnapshot = nextSnapshot;
4624        return (memoizedSelection = nextSelection);
4625      }
4626      var hasMemo = !1,
4627        memoizedSnapshot,
4628        memoizedSelection,
4629        maybeGetServerSnapshot =
4630          void 0 === getServerSnapshot ? null : getServerSnapshot;
4631      return [
4632        function () {
4633          return memoizedSelector(getSnapshot());
4634        },
4635        null === maybeGetServerSnapshot
4636          ? void 0
4637          : function () {
4638              return memoizedSelector(maybeGetServerSnapshot());
4639            }
4640      ];
4641    },
4642    [getSnapshot, getServerSnapshot, selector, isEqual]
4643  );
4644  var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
4645  useEffect(
4646    function () {
4647      inst.hasValue = !0;
4648      inst.value = value;
4649    },
4650    [value]
4651  );
4652  useDebugValue(value);
4653  return value;
4654};
4655
4656
4657/***/ }),
4658
4659/***/ 1688:
4660/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4661
4662"use strict";
4663
4664
4665if (true) {
4666  module.exports = __webpack_require__(83);
4667} else {}
4668
4669
4670/***/ }),
4671
4672/***/ 2798:
4673/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4674
4675"use strict";
4676
4677
4678if (true) {
4679  module.exports = __webpack_require__(6251);
4680} else {}
4681
4682
4683/***/ })
4684
4685},
4686/******/ function(__webpack_require__) { // webpackRuntimeModules
4687/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
4688/******/ __webpack_require__.O(0, [774,179], function() { return __webpack_exec__(6840), __webpack_exec__(3079); });
4689/******/ var __webpack_exports__ = __webpack_require__.O();
4690/******/ _N_E = __webpack_exports__;
4691/******/ }
4692]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.