PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.1
Elementor Website Builder – more than just a page builder v3.8.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/app-loader.js +3878 -388 4.2.0-beta2 → 3.8.1 View file →
@@ -1,7 +1,1845 @@
1 +/*! elementor - v3.8.1 - 13-11-2022 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
5 +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
6 +/*!******************************************************************!*\
7 + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
8 + \******************************************************************/
9 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10 +
11 +"use strict";
12 +__webpack_require__.r(__webpack_exports__);
13 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
14 +/* harmony export */ "MiddlewareArray": () => (/* binding */ MiddlewareArray),
15 +/* harmony export */ "TaskAbortError": () => (/* binding */ TaskAbortError),
16 +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes),
17 +/* harmony export */ "addListener": () => (/* binding */ addListener),
18 +/* harmony export */ "applyMiddleware": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware),
19 +/* harmony export */ "bindActionCreators": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators),
20 +/* harmony export */ "clearAllListeners": () => (/* binding */ clearAllListeners),
21 +/* harmony export */ "combineReducers": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers),
22 +/* harmony export */ "compose": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose),
23 +/* harmony export */ "configureStore": () => (/* binding */ configureStore),
24 +/* harmony export */ "createAction": () => (/* binding */ createAction),
25 +/* harmony export */ "createAsyncThunk": () => (/* binding */ createAsyncThunk),
26 +/* harmony export */ "createDraftSafeSelector": () => (/* binding */ createDraftSafeSelector),
27 +/* harmony export */ "createEntityAdapter": () => (/* binding */ createEntityAdapter),
28 +/* harmony export */ "createImmutableStateInvariantMiddleware": () => (/* binding */ createImmutableStateInvariantMiddleware),
29 +/* harmony export */ "createListenerMiddleware": () => (/* binding */ createListenerMiddleware),
30 +/* harmony export */ "createNextState": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]),
31 +/* harmony export */ "createReducer": () => (/* binding */ createReducer),
32 +/* harmony export */ "createSelector": () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector),
33 +/* harmony export */ "createSerializableStateInvariantMiddleware": () => (/* binding */ createSerializableStateInvariantMiddleware),
34 +/* harmony export */ "createSlice": () => (/* binding */ createSlice),
35 +/* harmony export */ "createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore),
36 +/* harmony export */ "current": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current),
37 +/* harmony export */ "findNonSerializableValue": () => (/* binding */ findNonSerializableValue),
38 +/* harmony export */ "freeze": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze),
39 +/* harmony export */ "getDefaultMiddleware": () => (/* binding */ getDefaultMiddleware),
40 +/* harmony export */ "getType": () => (/* binding */ getType),
41 +/* harmony export */ "isAllOf": () => (/* binding */ isAllOf),
42 +/* harmony export */ "isAnyOf": () => (/* binding */ isAnyOf),
43 +/* harmony export */ "isAsyncThunkAction": () => (/* binding */ isAsyncThunkAction),
44 +/* harmony export */ "isDraft": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft),
45 +/* harmony export */ "isFulfilled": () => (/* binding */ isFulfilled),
46 +/* harmony export */ "isImmutableDefault": () => (/* binding */ isImmutableDefault),
47 +/* harmony export */ "isPending": () => (/* binding */ isPending),
48 +/* harmony export */ "isPlain": () => (/* binding */ isPlain),
49 +/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
50 +/* harmony export */ "isRejected": () => (/* binding */ isRejected),
51 +/* harmony export */ "isRejectedWithValue": () => (/* binding */ isRejectedWithValue),
52 +/* harmony export */ "legacy_createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore),
53 +/* harmony export */ "miniSerializeError": () => (/* binding */ miniSerializeError),
54 +/* harmony export */ "nanoid": () => (/* binding */ nanoid),
55 +/* harmony export */ "original": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original),
56 +/* harmony export */ "removeListener": () => (/* binding */ removeListener),
57 +/* harmony export */ "unwrapResult": () => (/* binding */ unwrapResult)
58 +/* harmony export */ });
59 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
60 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
61 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
62 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
63 +var __extends = (undefined && undefined.__extends) || (function () {
64 + var extendStatics = function (d, b) {
65 + extendStatics = Object.setPrototypeOf ||
66 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
67 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
68 + return extendStatics(d, b);
69 + };
70 + return function (d, b) {
71 + if (typeof b !== "function" && b !== null)
72 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
73 + extendStatics(d, b);
74 + function __() { this.constructor = d; }
75 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
76 + };
77 +})();
78 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
79 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
80 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
81 + function verb(n) { return function (v) { return step([n, v]); }; }
82 + function step(op) {
83 + if (f) throw new TypeError("Generator is already executing.");
84 + while (_) try {
85 + 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;
86 + if (y = 0, t) op = [op[0] & 2, t.value];
87 + switch (op[0]) {
88 + case 0: case 1: t = op; break;
89 + case 4: _.label++; return { value: op[1], done: false };
90 + case 5: _.label++; y = op[1]; op = [0]; continue;
91 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
92 + default:
93 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
94 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
95 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
96 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
97 + if (t[2]) _.ops.pop();
98 + _.trys.pop(); continue;
99 + }
100 + op = body.call(thisArg, _);
101 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
102 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
103 + }
104 +};
105 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
106 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
107 + to[j] = from[i];
108 + return to;
109 +};
110 +var __defProp = Object.defineProperty;
111 +var __defProps = Object.defineProperties;
112 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
113 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
114 +var __hasOwnProp = Object.prototype.hasOwnProperty;
115 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
116 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
117 +var __spreadValues = function (a, b) {
118 + for (var prop in b || (b = {}))
119 + if (__hasOwnProp.call(b, prop))
120 + __defNormalProp(a, prop, b[prop]);
121 + if (__getOwnPropSymbols)
122 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
123 + var prop = _c[_i];
124 + if (__propIsEnum.call(b, prop))
125 + __defNormalProp(a, prop, b[prop]);
126 + }
127 + return a;
128 +};
129 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
130 +var __async = function (__this, __arguments, generator) {
131 + return new Promise(function (resolve, reject) {
132 + var fulfilled = function (value) {
133 + try {
134 + step(generator.next(value));
135 + }
136 + catch (e) {
137 + reject(e);
138 + }
139 + };
140 + var rejected = function (value) {
141 + try {
142 + step(generator.throw(value));
143 + }
144 + catch (e) {
145 + reject(e);
146 + }
147 + };
148 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
149 + step((generator = generator.apply(__this, __arguments)).next());
150 + });
151 +};
152 +// src/index.ts
153 +
154 +
155 +
156 +
157 +// src/createDraftSafeSelector.ts
158 +
159 +
160 +var createDraftSafeSelector = function () {
161 + var args = [];
162 + for (var _i = 0; _i < arguments.length; _i++) {
163 + args[_i] = arguments[_i];
164 + }
165 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
166 + var wrappedSelector = function (value) {
167 + var rest = [];
168 + for (var _i = 1; _i < arguments.length; _i++) {
169 + rest[_i - 1] = arguments[_i];
170 + }
171 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
172 + };
173 + return wrappedSelector;
174 +};
175 +// src/configureStore.ts
176 +
177 +// src/devtoolsExtension.ts
178 +
179 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
180 + if (arguments.length === 0)
181 + return void 0;
182 + if (typeof arguments[0] === "object")
183 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
184 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
185 +};
186 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
187 + return function (noop2) {
188 + return noop2;
189 + };
190 +};
191 +// src/isPlainObject.ts
192 +function isPlainObject(value) {
193 + if (typeof value !== "object" || value === null)
194 + return false;
195 + var proto = Object.getPrototypeOf(value);
196 + if (proto === null)
197 + return true;
198 + var baseProto = proto;
199 + while (Object.getPrototypeOf(baseProto) !== null) {
200 + baseProto = Object.getPrototypeOf(baseProto);
201 + }
202 + return proto === baseProto;
203 +}
204 +// src/getDefaultMiddleware.ts
205 +
206 +// src/utils.ts
207 +
208 +function getTimeMeasureUtils(maxDelay, fnName) {
209 + var elapsed = 0;
210 + return {
211 + measureTime: function (fn) {
212 + var started = Date.now();
213 + try {
214 + return fn();
215 + }
216 + finally {
217 + var finished = Date.now();
218 + elapsed += finished - started;
219 + }
220 + },
221 + warnIfExceeded: function () {
222 + if (elapsed > maxDelay) {
223 + 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.");
224 + }
225 + }
226 + };
227 +}
228 +var MiddlewareArray = /** @class */ (function (_super) {
229 + __extends(MiddlewareArray, _super);
230 + function MiddlewareArray() {
231 + var args = [];
232 + for (var _i = 0; _i < arguments.length; _i++) {
233 + args[_i] = arguments[_i];
234 + }
235 + var _this = _super.apply(this, args) || this;
236 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
237 + return _this;
238 + }
239 + Object.defineProperty(MiddlewareArray, Symbol.species, {
240 + get: function () {
241 + return MiddlewareArray;
242 + },
243 + enumerable: false,
244 + configurable: true
245 + });
246 + MiddlewareArray.prototype.concat = function () {
247 + var arr = [];
248 + for (var _i = 0; _i < arguments.length; _i++) {
249 + arr[_i] = arguments[_i];
250 + }
251 + return _super.prototype.concat.apply(this, arr);
252 + };
253 + MiddlewareArray.prototype.prepend = function () {
254 + var arr = [];
255 + for (var _i = 0; _i < arguments.length; _i++) {
256 + arr[_i] = arguments[_i];
257 + }
258 + if (arr.length === 1 && Array.isArray(arr[0])) {
259 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
260 + }
261 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
262 + };
263 + return MiddlewareArray;
264 +}(Array));
265 +function freezeDraftable(val) {
266 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
267 + }) : val;
268 +}
269 +// src/immutableStateInvariantMiddleware.ts
270 +var isProduction = "development" === "production";
271 +var prefix = "Invariant failed";
272 +function invariant(condition, message) {
273 + if (condition) {
274 + return;
275 + }
276 + if (isProduction) {
277 + throw new Error(prefix);
278 + }
279 + throw new Error(prefix + ": " + (message || ""));
280 +}
281 +function stringify(obj, serializer, indent, decycler) {
282 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
283 +}
284 +function getSerialize(serializer, decycler) {
285 + var stack = [], keys = [];
286 + if (!decycler)
287 + decycler = function (_, value) {
288 + if (stack[0] === value)
289 + return "[Circular ~]";
290 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
291 + };
292 + return function (key, value) {
293 + if (stack.length > 0) {
294 + var thisPos = stack.indexOf(this);
295 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
296 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
297 + if (~stack.indexOf(value))
298 + value = decycler.call(this, key, value);
299 + }
300 + else
301 + stack.push(value);
302 + return serializer == null ? value : serializer.call(this, key, value);
303 + };
304 +}
305 +function isImmutableDefault(value) {
306 + return typeof value !== "object" || value === null || typeof value === "undefined" || Object.isFrozen(value);
307 +}
308 +function trackForMutations(isImmutable, ignorePaths, obj) {
309 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
310 + return {
311 + detectMutations: function () {
312 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
313 + }
314 + };
315 +}
316 +function trackProperties(isImmutable, ignorePaths, obj, path) {
317 + if (ignorePaths === void 0) { ignorePaths = []; }
318 + if (path === void 0) { path = ""; }
319 + var tracked = { value: obj };
320 + if (!isImmutable(obj)) {
321 + tracked.children = {};
322 + for (var key in obj) {
323 + var childPath = path ? path + "." + key : key;
324 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
325 + continue;
326 + }
327 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
328 + }
329 + }
330 + return tracked;
331 +}
332 +function detectMutations(isImmutable, ignorePaths, trackedProperty, obj, sameParentRef, path) {
333 + if (ignorePaths === void 0) { ignorePaths = []; }
334 + if (sameParentRef === void 0) { sameParentRef = false; }
335 + if (path === void 0) { path = ""; }
336 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
337 + var sameRef = prevObj === obj;
338 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
339 + return { wasMutated: true, path: path };
340 + }
341 + if (isImmutable(prevObj) || isImmutable(obj)) {
342 + return { wasMutated: false };
343 + }
344 + var keysToDetect = {};
345 + for (var key in trackedProperty.children) {
346 + keysToDetect[key] = true;
347 + }
348 + for (var key in obj) {
349 + keysToDetect[key] = true;
350 + }
351 + for (var key in keysToDetect) {
352 + var childPath = path ? path + "." + key : key;
353 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
354 + continue;
355 + }
356 + var result = detectMutations(isImmutable, ignorePaths, trackedProperty.children[key], obj[key], sameRef, childPath);
357 + if (result.wasMutated) {
358 + return result;
359 + }
360 + }
361 + return { wasMutated: false };
362 +}
363 +function createImmutableStateInvariantMiddleware(options) {
364 + if (options === void 0) { options = {}; }
365 + if (false) {}
366 + 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;
367 + ignoredPaths = ignoredPaths || ignore;
368 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
369 + return function (_c) {
370 + var getState = _c.getState;
371 + var state = getState();
372 + var tracker = track(state);
373 + var result;
374 + return function (next) { return function (action) {
375 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
376 + measureUtils.measureTime(function () {
377 + state = getState();
378 + result = tracker.detectMutations();
379 + tracker = track(state);
380 + 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)");
381 + });
382 + var dispatchedAction = next(action);
383 + measureUtils.measureTime(function () {
384 + state = getState();
385 + result = tracker.detectMutations();
386 + tracker = track(state);
387 + 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)");
388 + });
389 + measureUtils.warnIfExceeded();
390 + return dispatchedAction;
391 + }; };
392 + };
393 +}
394 +// src/serializableStateInvariantMiddleware.ts
395 +function isPlain(val) {
396 + var type = typeof val;
397 + return type === "undefined" || val === null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
398 +}
399 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths) {
400 + if (path === void 0) { path = ""; }
401 + if (isSerializable === void 0) { isSerializable = isPlain; }
402 + if (ignoredPaths === void 0) { ignoredPaths = []; }
403 + var foundNestedSerializable;
404 + if (!isSerializable(value)) {
405 + return {
406 + keyPath: path || "<root>",
407 + value: value
408 + };
409 + }
410 + if (typeof value !== "object" || value === null) {
411 + return false;
412 + }
413 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
414 + var hasIgnoredPaths = ignoredPaths.length > 0;
415 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
416 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
417 + var nestedPath = path ? path + "." + key : key;
418 + if (hasIgnoredPaths && ignoredPaths.indexOf(nestedPath) >= 0) {
419 + continue;
420 + }
421 + if (!isSerializable(nestedValue)) {
422 + return {
423 + keyPath: nestedPath,
424 + value: nestedValue
425 + };
426 + }
427 + if (typeof nestedValue === "object") {
428 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths);
429 + if (foundNestedSerializable) {
430 + return foundNestedSerializable;
431 + }
432 + }
433 + }
434 + return false;
435 +}
436 +function createSerializableStateInvariantMiddleware(options) {
437 + if (options === void 0) { options = {}; }
438 + if (false) {}
439 + 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;
440 + return function (storeAPI) { return function (next) { return function (action) {
441 + var result = next(action);
442 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
443 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
444 + measureUtils.measureTime(function () {
445 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths);
446 + if (foundActionNonSerializableValue) {
447 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
448 + 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)");
449 + }
450 + });
451 + }
452 + if (!ignoreState) {
453 + measureUtils.measureTime(function () {
454 + var state = storeAPI.getState();
455 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths);
456 + if (foundStateNonSerializableValue) {
457 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
458 + 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)");
459 + }
460 + });
461 + measureUtils.warnIfExceeded();
462 + }
463 + return result;
464 + }; }; };
465 +}
466 +// src/getDefaultMiddleware.ts
467 +function isBoolean(x) {
468 + return typeof x === "boolean";
469 +}
470 +function curryGetDefaultMiddleware() {
471 + return function curriedGetDefaultMiddleware(options) {
472 + return getDefaultMiddleware(options);
473 + };
474 +}
475 +function getDefaultMiddleware(options) {
476 + if (options === void 0) { options = {}; }
477 + 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;
478 + var middlewareArray = new MiddlewareArray();
479 + if (thunk) {
480 + if (isBoolean(thunk)) {
481 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
482 + }
483 + else {
484 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
485 + }
486 + }
487 + if (true) {
488 + if (immutableCheck) {
489 + var immutableOptions = {};
490 + if (!isBoolean(immutableCheck)) {
491 + immutableOptions = immutableCheck;
492 + }
493 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
494 + }
495 + if (serializableCheck) {
496 + var serializableOptions = {};
497 + if (!isBoolean(serializableCheck)) {
498 + serializableOptions = serializableCheck;
499 + }
500 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
501 + }
502 + }
503 + return middlewareArray;
504 +}
505 +// src/configureStore.ts
506 +var IS_PRODUCTION = "development" === "production";
507 +function configureStore(options) {
508 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
509 + 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;
510 + var rootReducer;
511 + if (typeof reducer === "function") {
512 + rootReducer = reducer;
513 + }
514 + else if (isPlainObject(reducer)) {
515 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
516 + }
517 + else {
518 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
519 + }
520 + var finalMiddleware = middleware;
521 + if (typeof finalMiddleware === "function") {
522 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
523 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
524 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
525 + }
526 + }
527 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
528 + throw new Error("each middleware provided to configureStore must be a function");
529 + }
530 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
531 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
532 + if (devTools) {
533 + finalCompose = composeWithDevTools(__spreadValues({
534 + trace: !IS_PRODUCTION
535 + }, typeof devTools === "object" && devTools));
536 + }
537 + var storeEnhancers = [middlewareEnhancer];
538 + if (Array.isArray(enhancers)) {
539 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
540 + }
541 + else if (typeof enhancers === "function") {
542 + storeEnhancers = enhancers(storeEnhancers);
543 + }
544 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
545 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
546 +}
547 +// src/createAction.ts
548 +function createAction(type, prepareAction) {
549 + function actionCreator() {
550 + var args = [];
551 + for (var _i = 0; _i < arguments.length; _i++) {
552 + args[_i] = arguments[_i];
553 + }
554 + if (prepareAction) {
555 + var prepared = prepareAction.apply(void 0, args);
556 + if (!prepared) {
557 + throw new Error("prepareAction did not return an object");
558 + }
559 + return __spreadValues(__spreadValues({
560 + type: type,
561 + payload: prepared.payload
562 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
563 + }
564 + return { type: type, payload: args[0] };
565 + }
566 + actionCreator.toString = function () { return "" + type; };
567 + actionCreator.type = type;
568 + actionCreator.match = function (action) { return action.type === type; };
569 + return actionCreator;
570 +}
571 +function isFSA(action) {
572 + return isPlainObject(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
573 +}
574 +function isValidKey(key) {
575 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
576 +}
577 +function getType(actionCreator) {
578 + return "" + actionCreator;
579 +}
580 +// src/createReducer.ts
581 +
582 +// src/mapBuilders.ts
583 +function executeReducerBuilderCallback(builderCallback) {
584 + var actionsMap = {};
585 + var actionMatchers = [];
586 + var defaultCaseReducer;
587 + var builder = {
588 + addCase: function (typeOrActionCreator, reducer) {
589 + if (true) {
590 + if (actionMatchers.length > 0) {
591 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
592 + }
593 + if (defaultCaseReducer) {
594 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
595 + }
596 + }
597 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
598 + if (type in actionsMap) {
599 + throw new Error("addCase cannot be called with two reducers for the same action type");
600 + }
601 + actionsMap[type] = reducer;
602 + return builder;
603 + },
604 + addMatcher: function (matcher, reducer) {
605 + if (true) {
606 + if (defaultCaseReducer) {
607 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
608 + }
609 + }
610 + actionMatchers.push({ matcher: matcher, reducer: reducer });
611 + return builder;
612 + },
613 + addDefaultCase: function (reducer) {
614 + if (true) {
615 + if (defaultCaseReducer) {
616 + throw new Error("`builder.addDefaultCase` can only be called once");
617 + }
618 + }
619 + defaultCaseReducer = reducer;
620 + return builder;
621 + }
622 + };
623 + builderCallback(builder);
624 + return [actionsMap, actionMatchers, defaultCaseReducer];
625 +}
626 +// src/createReducer.ts
627 +function isStateFunction(x) {
628 + return typeof x === "function";
629 +}
630 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
631 + if (actionMatchers === void 0) { actionMatchers = []; }
632 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
633 + var getInitialState;
634 + if (isStateFunction(initialState)) {
635 + getInitialState = function () { return freezeDraftable(initialState()); };
636 + }
637 + else {
638 + var frozenInitialState_1 = freezeDraftable(initialState);
639 + getInitialState = function () { return frozenInitialState_1; };
640 + }
641 + function reducer(state, action) {
642 + if (state === void 0) { state = getInitialState(); }
643 + var caseReducers = __spreadArray([
644 + actionsMap[action.type]
645 + ], finalActionMatchers.filter(function (_c) {
646 + var matcher = _c.matcher;
647 + return matcher(action);
648 + }).map(function (_c) {
649 + var reducer2 = _c.reducer;
650 + return reducer2;
651 + }));
652 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
653 + caseReducers = [finalDefaultCaseReducer];
654 + }
655 + return caseReducers.reduce(function (previousState, caseReducer) {
656 + if (caseReducer) {
657 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
658 + var draft = previousState;
659 + var result = caseReducer(draft, action);
660 + if (typeof result === "undefined") {
661 + return previousState;
662 + }
663 + return result;
664 + }
665 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
666 + var result = caseReducer(previousState, action);
667 + if (typeof result === "undefined") {
668 + if (previousState === null) {
669 + return previousState;
670 + }
671 + throw Error("A case reducer on a non-draftable value must not return undefined");
672 + }
673 + return result;
674 + }
675 + else {
676 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
677 + return caseReducer(draft, action);
678 + });
679 + }
680 + }
681 + return previousState;
682 + }, state);
683 + }
684 + reducer.getInitialState = getInitialState;
685 + return reducer;
686 +}
687 +// src/createSlice.ts
688 +function getType2(slice, actionKey) {
689 + return slice + "/" + actionKey;
690 +}
691 +function createSlice(options) {
692 + var name = options.name;
693 + if (!name) {
694 + throw new Error("`name` is a required option for createSlice");
695 + }
696 + if (typeof process !== "undefined" && "development" === "development") {
697 + if (options.initialState === void 0) {
698 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
699 + }
700 + }
701 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
702 + var reducers = options.reducers || {};
703 + var reducerNames = Object.keys(reducers);
704 + var sliceCaseReducersByName = {};
705 + var sliceCaseReducersByType = {};
706 + var actionCreators = {};
707 + reducerNames.forEach(function (reducerName) {
708 + var maybeReducerWithPrepare = reducers[reducerName];
709 + var type = getType2(name, reducerName);
710 + var caseReducer;
711 + var prepareCallback;
712 + if ("reducer" in maybeReducerWithPrepare) {
713 + caseReducer = maybeReducerWithPrepare.reducer;
714 + prepareCallback = maybeReducerWithPrepare.prepare;
715 + }
716 + else {
717 + caseReducer = maybeReducerWithPrepare;
718 + }
719 + sliceCaseReducersByName[reducerName] = caseReducer;
720 + sliceCaseReducersByType[type] = caseReducer;
721 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
722 + });
723 + function buildReducer() {
724 + 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;
725 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
726 + return createReducer(initialState, finalCaseReducers, actionMatchers, defaultCaseReducer);
727 + }
728 + var _reducer;
729 + return {
730 + name: name,
731 + reducer: function (state, action) {
732 + if (!_reducer)
733 + _reducer = buildReducer();
734 + return _reducer(state, action);
735 + },
736 + actions: actionCreators,
737 + caseReducers: sliceCaseReducersByName,
738 + getInitialState: function () {
739 + if (!_reducer)
740 + _reducer = buildReducer();
741 + return _reducer.getInitialState();
742 + }
743 + };
744 +}
745 +// src/entities/entity_state.ts
746 +function getInitialEntityState() {
747 + return {
748 + ids: [],
749 + entities: {}
750 + };
751 +}
752 +function createInitialStateFactory() {
753 + function getInitialState(additionalState) {
754 + if (additionalState === void 0) { additionalState = {}; }
755 + return Object.assign(getInitialEntityState(), additionalState);
756 + }
757 + return { getInitialState: getInitialState };
758 +}
759 +// src/entities/state_selectors.ts
760 +function createSelectorsFactory() {
761 + function getSelectors(selectState) {
762 + var selectIds = function (state) { return state.ids; };
763 + var selectEntities = function (state) { return state.entities; };
764 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
765 + var selectId = function (_, id) { return id; };
766 + var selectById = function (entities, id) { return entities[id]; };
767 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
768 + if (!selectState) {
769 + return {
770 + selectIds: selectIds,
771 + selectEntities: selectEntities,
772 + selectAll: selectAll,
773 + selectTotal: selectTotal,
774 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
775 + };
776 + }
777 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
778 + return {
779 + selectIds: createDraftSafeSelector(selectState, selectIds),
780 + selectEntities: selectGlobalizedEntities,
781 + selectAll: createDraftSafeSelector(selectState, selectAll),
782 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
783 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
784 + };
785 + }
786 + return { getSelectors: getSelectors };
787 +}
788 +// src/entities/state_adapter.ts
789 +
790 +function createSingleArgumentStateOperator(mutator) {
791 + var operator = createStateOperator(function (_, state) { return mutator(state); });
792 + return function operation(state) {
793 + return operator(state, void 0);
794 + };
795 +}
796 +function createStateOperator(mutator) {
797 + return function operation(state, arg) {
798 + function isPayloadActionArgument(arg2) {
799 + return isFSA(arg2);
800 + }
801 + var runMutator = function (draft) {
802 + if (isPayloadActionArgument(arg)) {
803 + mutator(arg.payload, draft);
804 + }
805 + else {
806 + mutator(arg, draft);
807 + }
808 + };
809 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
810 + runMutator(state);
811 + return state;
812 + }
813 + else {
814 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
815 + }
816 + };
817 +}
818 +// src/entities/utils.ts
819 +function selectIdValue(entity, selectId) {
820 + var key = selectId(entity);
821 + if ( true && key === void 0) {
822 + console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString());
823 + }
824 + return key;
825 +}
826 +function ensureEntitiesArray(entities) {
827 + if (!Array.isArray(entities)) {
828 + entities = Object.values(entities);
829 + }
830 + return entities;
831 +}
832 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
833 + newEntities = ensureEntitiesArray(newEntities);
834 + var added = [];
835 + var updated = [];
836 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
837 + var entity = newEntities_1[_i];
838 + var id = selectIdValue(entity, selectId);
839 + if (id in state.entities) {
840 + updated.push({ id: id, changes: entity });
841 + }
842 + else {
843 + added.push(entity);
844 + }
845 + }
846 + return [added, updated];
847 +}
848 +// src/entities/unsorted_state_adapter.ts
849 +function createUnsortedStateAdapter(selectId) {
850 + function addOneMutably(entity, state) {
851 + var key = selectIdValue(entity, selectId);
852 + if (key in state.entities) {
853 + return;
854 + }
855 + state.ids.push(key);
856 + state.entities[key] = entity;
857 + }
858 + function addManyMutably(newEntities, state) {
859 + newEntities = ensureEntitiesArray(newEntities);
860 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
861 + var entity = newEntities_2[_i];
862 + addOneMutably(entity, state);
863 + }
864 + }
865 + function setOneMutably(entity, state) {
866 + var key = selectIdValue(entity, selectId);
867 + if (!(key in state.entities)) {
868 + state.ids.push(key);
869 + }
870 + state.entities[key] = entity;
871 + }
872 + function setManyMutably(newEntities, state) {
873 + newEntities = ensureEntitiesArray(newEntities);
874 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
875 + var entity = newEntities_3[_i];
876 + setOneMutably(entity, state);
877 + }
878 + }
879 + function setAllMutably(newEntities, state) {
880 + newEntities = ensureEntitiesArray(newEntities);
881 + state.ids = [];
882 + state.entities = {};
883 + addManyMutably(newEntities, state);
884 + }
885 + function removeOneMutably(key, state) {
886 + return removeManyMutably([key], state);
887 + }
888 + function removeManyMutably(keys, state) {
889 + var didMutate = false;
890 + keys.forEach(function (key) {
891 + if (key in state.entities) {
892 + delete state.entities[key];
893 + didMutate = true;
894 + }
895 + });
896 + if (didMutate) {
897 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
898 + }
899 + }
900 + function removeAllMutably(state) {
901 + Object.assign(state, {
902 + ids: [],
903 + entities: {}
904 + });
905 + }
906 + function takeNewKey(keys, update, state) {
907 + var original2 = state.entities[update.id];
908 + var updated = Object.assign({}, original2, update.changes);
909 + var newKey = selectIdValue(updated, selectId);
910 + var hasNewKey = newKey !== update.id;
911 + if (hasNewKey) {
912 + keys[update.id] = newKey;
913 + delete state.entities[update.id];
914 + }
915 + state.entities[newKey] = updated;
916 + return hasNewKey;
917 + }
918 + function updateOneMutably(update, state) {
919 + return updateManyMutably([update], state);
920 + }
921 + function updateManyMutably(updates, state) {
922 + var newKeys = {};
923 + var updatesPerEntity = {};
924 + updates.forEach(function (update) {
925 + if (update.id in state.entities) {
926 + updatesPerEntity[update.id] = {
927 + id: update.id,
928 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
929 + };
930 + }
931 + });
932 + updates = Object.values(updatesPerEntity);
933 + var didMutateEntities = updates.length > 0;
934 + if (didMutateEntities) {
935 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
936 + if (didMutateIds) {
937 + state.ids = state.ids.map(function (id) { return newKeys[id] || id; });
938 + }
939 + }
940 + }
941 + function upsertOneMutably(entity, state) {
942 + return upsertManyMutably([entity], state);
943 + }
944 + function upsertManyMutably(newEntities, state) {
945 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
946 + updateManyMutably(updated, state);
947 + addManyMutably(added, state);
948 + }
949 + return {
950 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
951 + addOne: createStateOperator(addOneMutably),
952 + addMany: createStateOperator(addManyMutably),
953 + setOne: createStateOperator(setOneMutably),
954 + setMany: createStateOperator(setManyMutably),
955 + setAll: createStateOperator(setAllMutably),
956 + updateOne: createStateOperator(updateOneMutably),
957 + updateMany: createStateOperator(updateManyMutably),
958 + upsertOne: createStateOperator(upsertOneMutably),
959 + upsertMany: createStateOperator(upsertManyMutably),
960 + removeOne: createStateOperator(removeOneMutably),
961 + removeMany: createStateOperator(removeManyMutably)
962 + };
963 +}
964 +// src/entities/sorted_state_adapter.ts
965 +function createSortedStateAdapter(selectId, sort) {
966 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
967 + function addOneMutably(entity, state) {
968 + return addManyMutably([entity], state);
969 + }
970 + function addManyMutably(newEntities, state) {
971 + newEntities = ensureEntitiesArray(newEntities);
972 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
973 + if (models.length !== 0) {
974 + merge(models, state);
975 + }
976 + }
977 + function setOneMutably(entity, state) {
978 + return setManyMutably([entity], state);
979 + }
980 + function setManyMutably(newEntities, state) {
981 + newEntities = ensureEntitiesArray(newEntities);
982 + if (newEntities.length !== 0) {
983 + merge(newEntities, state);
984 + }
985 + }
986 + function setAllMutably(newEntities, state) {
987 + newEntities = ensureEntitiesArray(newEntities);
988 + state.entities = {};
989 + state.ids = [];
990 + addManyMutably(newEntities, state);
991 + }
992 + function updateOneMutably(update, state) {
993 + return updateManyMutably([update], state);
994 + }
995 + function updateManyMutably(updates, state) {
996 + var appliedUpdates = false;
997 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
998 + var update = updates_1[_i];
999 + var entity = state.entities[update.id];
1000 + if (!entity) {
1001 + continue;
1002 + }
1003 + appliedUpdates = true;
1004 + Object.assign(entity, update.changes);
1005 + var newId = selectId(entity);
1006 + if (update.id !== newId) {
1007 + delete state.entities[update.id];
1008 + state.entities[newId] = entity;
1009 + }
1010 + }
1011 + if (appliedUpdates) {
1012 + resortEntities(state);
1013 + }
1014 + }
1015 + function upsertOneMutably(entity, state) {
1016 + return upsertManyMutably([entity], state);
1017 + }
1018 + function upsertManyMutably(newEntities, state) {
1019 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
1020 + updateManyMutably(updated, state);
1021 + addManyMutably(added, state);
1022 + }
1023 + function areArraysEqual(a, b) {
1024 + if (a.length !== b.length) {
1025 + return false;
1026 + }
1027 + for (var i = 0; i < a.length && i < b.length; i++) {
1028 + if (a[i] === b[i]) {
1029 + continue;
1030 + }
1031 + return false;
1032 + }
1033 + return true;
1034 + }
1035 + function merge(models, state) {
1036 + models.forEach(function (model) {
1037 + state.entities[selectId(model)] = model;
1038 + });
1039 + resortEntities(state);
1040 + }
1041 + function resortEntities(state) {
1042 + var allEntities = Object.values(state.entities);
1043 + allEntities.sort(sort);
1044 + var newSortedIds = allEntities.map(selectId);
1045 + var ids = state.ids;
1046 + if (!areArraysEqual(ids, newSortedIds)) {
1047 + state.ids = newSortedIds;
1048 + }
1049 + }
1050 + return {
1051 + removeOne: removeOne,
1052 + removeMany: removeMany,
1053 + removeAll: removeAll,
1054 + addOne: createStateOperator(addOneMutably),
1055 + updateOne: createStateOperator(updateOneMutably),
1056 + upsertOne: createStateOperator(upsertOneMutably),
1057 + setOne: createStateOperator(setOneMutably),
1058 + setMany: createStateOperator(setManyMutably),
1059 + setAll: createStateOperator(setAllMutably),
1060 + addMany: createStateOperator(addManyMutably),
1061 + updateMany: createStateOperator(updateManyMutably),
1062 + upsertMany: createStateOperator(upsertManyMutably)
1063 + };
1064 +}
1065 +// src/entities/create_adapter.ts
1066 +function createEntityAdapter(options) {
1067 + if (options === void 0) { options = {}; }
1068 + var _c = __spreadValues({
1069 + sortComparer: false,
1070 + selectId: function (instance) { return instance.id; }
1071 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
1072 + var stateFactory = createInitialStateFactory();
1073 + var selectorsFactory = createSelectorsFactory();
1074 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
1075 + return __spreadValues(__spreadValues(__spreadValues({
1076 + selectId: selectId,
1077 + sortComparer: sortComparer
1078 + }, stateFactory), selectorsFactory), stateAdapter);
1079 +}
1080 +// src/nanoid.ts
1081 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
1082 +var nanoid = function (size) {
1083 + if (size === void 0) { size = 21; }
1084 + var id = "";
1085 + var i = size;
1086 + while (i--) {
1087 + id += urlAlphabet[Math.random() * 64 | 0];
1088 + }
1089 + return id;
1090 +};
1091 +// src/createAsyncThunk.ts
1092 +var commonProperties = [
1093 + "name",
1094 + "message",
1095 + "stack",
1096 + "code"
1097 +];
1098 +var RejectWithValue = /** @class */ (function () {
1099 + function RejectWithValue(payload, meta) {
1100 + this.payload = payload;
1101 + this.meta = meta;
1102 + }
1103 + return RejectWithValue;
1104 +}());
1105 +var FulfillWithMeta = /** @class */ (function () {
1106 + function FulfillWithMeta(payload, meta) {
1107 + this.payload = payload;
1108 + this.meta = meta;
1109 + }
1110 + return FulfillWithMeta;
1111 +}());
1112 +var miniSerializeError = function (value) {
1113 + if (typeof value === "object" && value !== null) {
1114 + var simpleError = {};
1115 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
1116 + var property = commonProperties_1[_i];
1117 + if (typeof value[property] === "string") {
1118 + simpleError[property] = value[property];
1119 + }
1120 + }
1121 + return simpleError;
1122 + }
1123 + return { message: String(value) };
1124 +};
1125 +function createAsyncThunk(typePrefix, payloadCreator, options) {
1126 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
1127 + payload: payload,
1128 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1129 + arg: arg,
1130 + requestId: requestId,
1131 + requestStatus: "fulfilled"
1132 + })
1133 + }); });
1134 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
1135 + payload: void 0,
1136 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1137 + arg: arg,
1138 + requestId: requestId,
1139 + requestStatus: "pending"
1140 + })
1141 + }); });
1142 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
1143 + payload: payload,
1144 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
1145 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1146 + arg: arg,
1147 + requestId: requestId,
1148 + rejectedWithValue: !!payload,
1149 + requestStatus: "rejected",
1150 + aborted: (error == null ? void 0 : error.name) === "AbortError",
1151 + condition: (error == null ? void 0 : error.name) === "ConditionError"
1152 + })
1153 + }); });
1154 + var displayedWarning = false;
1155 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
1156 + function class_1() {
1157 + this.signal = {
1158 + aborted: false,
1159 + addEventListener: function () {
1160 + },
1161 + dispatchEvent: function () {
1162 + return false;
1163 + },
1164 + onabort: function () {
1165 + },
1166 + removeEventListener: function () {
1167 + },
1168 + reason: void 0,
1169 + throwIfAborted: function () {
1170 + }
1171 + };
1172 + }
1173 + class_1.prototype.abort = function () {
1174 + if (true) {
1175 + if (!displayedWarning) {
1176 + displayedWarning = true;
1177 + console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.");
1178 + }
1179 + }
1180 + };
1181 + return class_1;
1182 + }());
1183 + function actionCreator(arg) {
1184 + return function (dispatch, getState, extra) {
1185 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
1186 + var abortController = new AC();
1187 + var abortReason;
1188 + var abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ name: "AbortError", message: abortReason || "Aborted" }); }); });
1189 + var started = false;
1190 + function abort(reason) {
1191 + if (started) {
1192 + abortReason = reason;
1193 + abortController.abort();
1194 + }
1195 + }
1196 + var promise = function () {
1197 + return __async(this, null, function () {
1198 + var _a, _b, finalAction, conditionResult, err_1, skipDispatch;
1199 + return __generator(this, function (_c) {
1200 + switch (_c.label) {
1201 + case 0:
1202 + _c.trys.push([0, 4, , 5]);
1203 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
1204 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
1205 + return [4 /*yield*/, conditionResult];
1206 + case 1:
1207 + conditionResult = _c.sent();
1208 + _c.label = 2;
1209 + case 2:
1210 + if (conditionResult === false) {
1211 + throw {
1212 + name: "ConditionError",
1213 + message: "Aborted due to condition callback returning false."
1214 + };
1215 + }
1216 + started = true;
1217 + 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 })));
1218 + return [4 /*yield*/, Promise.race([
1219 + abortedPromise,
1220 + Promise.resolve(payloadCreator(arg, {
1221 + dispatch: dispatch,
1222 + getState: getState,
1223 + extra: extra,
1224 + requestId: requestId,
1225 + signal: abortController.signal,
1226 + rejectWithValue: function (value, meta) {
1227 + return new RejectWithValue(value, meta);
1228 + },
1229 + fulfillWithValue: function (value, meta) {
1230 + return new FulfillWithMeta(value, meta);
1231 + }
1232 + })).then(function (result) {
1233 + if (result instanceof RejectWithValue) {
1234 + throw result;
1235 + }
1236 + if (result instanceof FulfillWithMeta) {
1237 + return fulfilled(result.payload, requestId, arg, result.meta);
1238 + }
1239 + return fulfilled(result, requestId, arg);
1240 + })
1241 + ])];
1242 + case 3:
1243 + finalAction = _c.sent();
1244 + return [3 /*break*/, 5];
1245 + case 4:
1246 + err_1 = _c.sent();
1247 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
1248 + return [3 /*break*/, 5];
1249 + case 5:
1250 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
1251 + if (!skipDispatch) {
1252 + dispatch(finalAction);
1253 + }
1254 + return [2 /*return*/, finalAction];
1255 + }
1256 + });
1257 + });
1258 + }();
1259 + return Object.assign(promise, {
1260 + abort: abort,
1261 + requestId: requestId,
1262 + arg: arg,
1263 + unwrap: function () {
1264 + return promise.then(unwrapResult);
1265 + }
1266 + });
1267 + };
1268 + }
1269 + return Object.assign(actionCreator, {
1270 + pending: pending,
1271 + rejected: rejected,
1272 + fulfilled: fulfilled,
1273 + typePrefix: typePrefix
1274 + });
1275 +}
1276 +function unwrapResult(action) {
1277 + if (action.meta && action.meta.rejectedWithValue) {
1278 + throw action.payload;
1279 + }
1280 + if (action.error) {
1281 + throw action.error;
1282 + }
1283 + return action.payload;
1284 +}
1285 +function isThenable(value) {
1286 + return value !== null && typeof value === "object" && typeof value.then === "function";
1287 +}
1288 +// src/tsHelpers.ts
1289 +var hasMatchFunction = function (v) {
1290 + return v && typeof v.match === "function";
1291 +};
1292 +// src/matchers.ts
1293 +var matches = function (matcher, action) {
1294 + if (hasMatchFunction(matcher)) {
1295 + return matcher.match(action);
1296 + }
1297 + else {
1298 + return matcher(action);
1299 + }
1300 +};
1301 +function isAnyOf() {
1302 + var matchers = [];
1303 + for (var _i = 0; _i < arguments.length; _i++) {
1304 + matchers[_i] = arguments[_i];
1305 + }
1306 + return function (action) {
1307 + return matchers.some(function (matcher) { return matches(matcher, action); });
1308 + };
1309 +}
1310 +function isAllOf() {
1311 + var matchers = [];
1312 + for (var _i = 0; _i < arguments.length; _i++) {
1313 + matchers[_i] = arguments[_i];
1314 + }
1315 + return function (action) {
1316 + return matchers.every(function (matcher) { return matches(matcher, action); });
1317 + };
1318 +}
1319 +function hasExpectedRequestMetadata(action, validStatus) {
1320 + if (!action || !action.meta)
1321 + return false;
1322 + var hasValidRequestId = typeof action.meta.requestId === "string";
1323 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
1324 + return hasValidRequestId && hasValidRequestStatus;
1325 +}
1326 +function isAsyncThunkArray(a) {
1327 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
1328 +}
1329 +function isPending() {
1330 + var asyncThunks = [];
1331 + for (var _i = 0; _i < arguments.length; _i++) {
1332 + asyncThunks[_i] = arguments[_i];
1333 + }
1334 + if (asyncThunks.length === 0) {
1335 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
1336 + }
1337 + if (!isAsyncThunkArray(asyncThunks)) {
1338 + return isPending()(asyncThunks[0]);
1339 + }
1340 + return function (action) {
1341 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
1342 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1343 + return combinedMatcher(action);
1344 + };
1345 +}
1346 +function isRejected() {
1347 + var asyncThunks = [];
1348 + for (var _i = 0; _i < arguments.length; _i++) {
1349 + asyncThunks[_i] = arguments[_i];
1350 + }
1351 + if (asyncThunks.length === 0) {
1352 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
1353 + }
1354 + if (!isAsyncThunkArray(asyncThunks)) {
1355 + return isRejected()(asyncThunks[0]);
1356 + }
1357 + return function (action) {
1358 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
1359 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1360 + return combinedMatcher(action);
1361 + };
1362 +}
1363 +function isRejectedWithValue() {
1364 + var asyncThunks = [];
1365 + for (var _i = 0; _i < arguments.length; _i++) {
1366 + asyncThunks[_i] = arguments[_i];
1367 + }
1368 + var hasFlag = function (action) {
1369 + return action && action.meta && action.meta.rejectedWithValue;
1370 + };
1371 + if (asyncThunks.length === 0) {
1372 + return function (action) {
1373 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1374 + return combinedMatcher(action);
1375 + };
1376 + }
1377 + if (!isAsyncThunkArray(asyncThunks)) {
1378 + return isRejectedWithValue()(asyncThunks[0]);
1379 + }
1380 + return function (action) {
1381 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1382 + return combinedMatcher(action);
1383 + };
1384 +}
1385 +function isFulfilled() {
1386 + var asyncThunks = [];
1387 + for (var _i = 0; _i < arguments.length; _i++) {
1388 + asyncThunks[_i] = arguments[_i];
1389 + }
1390 + if (asyncThunks.length === 0) {
1391 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
1392 + }
1393 + if (!isAsyncThunkArray(asyncThunks)) {
1394 + return isFulfilled()(asyncThunks[0]);
1395 + }
1396 + return function (action) {
1397 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
1398 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1399 + return combinedMatcher(action);
1400 + };
1401 +}
1402 +function isAsyncThunkAction() {
1403 + var asyncThunks = [];
1404 + for (var _i = 0; _i < arguments.length; _i++) {
1405 + asyncThunks[_i] = arguments[_i];
1406 + }
1407 + if (asyncThunks.length === 0) {
1408 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
1409 + }
1410 + if (!isAsyncThunkArray(asyncThunks)) {
1411 + return isAsyncThunkAction()(asyncThunks[0]);
1412 + }
1413 + return function (action) {
1414 + var matchers = [];
1415 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
1416 + var asyncThunk = asyncThunks_1[_i];
1417 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
1418 + }
1419 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1420 + return combinedMatcher(action);
1421 + };
1422 +}
1423 +// src/listenerMiddleware/utils.ts
1424 +var assertFunction = function (func, expected) {
1425 + if (typeof func !== "function") {
1426 + throw new TypeError(expected + " is not a function");
1427 + }
1428 +};
1429 +var noop = function () {
1430 +};
1431 +var catchRejection = function (promise, onError) {
1432 + if (onError === void 0) { onError = noop; }
1433 + promise.catch(onError);
1434 + return promise;
1435 +};
1436 +var addAbortSignalListener = function (abortSignal, callback) {
1437 + abortSignal.addEventListener("abort", callback, { once: true });
1438 +};
1439 +var abortControllerWithReason = function (abortController, reason) {
1440 + var signal = abortController.signal;
1441 + if (signal.aborted) {
1442 + return;
1443 + }
1444 + if (!("reason" in signal)) {
1445 + Object.defineProperty(signal, "reason", {
1446 + enumerable: true,
1447 + value: reason,
1448 + configurable: true,
1449 + writable: true
1450 + });
1451 + }
1452 + ;
1453 + abortController.abort(reason);
1454 +};
1455 +// src/listenerMiddleware/exceptions.ts
1456 +var task = "task";
1457 +var listener = "listener";
1458 +var completed = "completed";
1459 +var cancelled = "cancelled";
1460 +var taskCancelled = "task-" + cancelled;
1461 +var taskCompleted = "task-" + completed;
1462 +var listenerCancelled = listener + "-" + cancelled;
1463 +var listenerCompleted = listener + "-" + completed;
1464 +var TaskAbortError = /** @class */ (function () {
1465 + function TaskAbortError(code) {
1466 + this.code = code;
1467 + this.name = "TaskAbortError";
1468 + this.message = task + " " + cancelled + " (reason: " + code + ")";
1469 + }
1470 + return TaskAbortError;
1471 +}());
1472 +// src/listenerMiddleware/task.ts
1473 +var validateActive = function (signal) {
1474 + if (signal.aborted) {
1475 + throw new TaskAbortError(signal.reason);
1476 + }
1477 +};
1478 +var promisifyAbortSignal = function (signal) {
1479 + return catchRejection(new Promise(function (_, reject) {
1480 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
1481 + if (signal.aborted) {
1482 + notifyRejection();
1483 + }
1484 + else {
1485 + addAbortSignalListener(signal, notifyRejection);
1486 + }
1487 + }));
1488 +};
1489 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
1490 + var value, error_1;
1491 + return __generator(this, function (_c) {
1492 + switch (_c.label) {
1493 + case 0:
1494 + _c.trys.push([0, 3, 4, 5]);
1495 + return [4 /*yield*/, Promise.resolve()];
1496 + case 1:
1497 + _c.sent();
1498 + return [4 /*yield*/, task2()];
1499 + case 2:
1500 + value = _c.sent();
1501 + return [2 /*return*/, {
1502 + status: "ok",
1503 + value: value
1504 + }];
1505 + case 3:
1506 + error_1 = _c.sent();
1507 + return [2 /*return*/, {
1508 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
1509 + error: error_1
1510 + }];
1511 + case 4:
1512 + cleanUp == null ? void 0 : cleanUp();
1513 + return [7 /*endfinally*/];
1514 + case 5: return [2 /*return*/];
1515 + }
1516 + });
1517 +}); };
1518 +var createPause = function (signal) {
1519 + return function (promise) {
1520 + return catchRejection(Promise.race([promisifyAbortSignal(signal), promise]).then(function (output) {
1521 + validateActive(signal);
1522 + return output;
1523 + }));
1524 + };
1525 +};
1526 +var createDelay = function (signal) {
1527 + var pause = createPause(signal);
1528 + return function (timeoutMs) {
1529 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
1530 + };
1531 +};
1532 +// src/listenerMiddleware/index.ts
1533 +var assign = Object.assign;
1534 +var INTERNAL_NIL_TOKEN = {};
1535 +var alm = "listenerMiddleware";
1536 +var createFork = function (parentAbortSignal) {
1537 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
1538 + return function (taskExecutor) {
1539 + assertFunction(taskExecutor, "taskExecutor");
1540 + var childAbortController = new AbortController();
1541 + linkControllers(childAbortController);
1542 + var result = runTask(function () { return __async(void 0, null, function () {
1543 + var result2;
1544 + return __generator(this, function (_c) {
1545 + switch (_c.label) {
1546 + case 0:
1547 + validateActive(parentAbortSignal);
1548 + validateActive(childAbortController.signal);
1549 + return [4 /*yield*/, taskExecutor({
1550 + pause: createPause(childAbortController.signal),
1551 + delay: createDelay(childAbortController.signal),
1552 + signal: childAbortController.signal
1553 + })];
1554 + case 1:
1555 + result2 = _c.sent();
1556 + validateActive(childAbortController.signal);
1557 + return [2 /*return*/, result2];
1558 + }
1559 + });
1560 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
1561 + return {
1562 + result: createPause(parentAbortSignal)(result),
1563 + cancel: function () {
1564 + abortControllerWithReason(childAbortController, taskCancelled);
1565 + }
1566 + };
1567 + };
1568 +};
1569 +var createTakePattern = function (startListening, signal) {
1570 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
1571 + var unsubscribe, tuplePromise, promises, output;
1572 + return __generator(this, function (_c) {
1573 + switch (_c.label) {
1574 + case 0:
1575 + validateActive(signal);
1576 + unsubscribe = function () {
1577 + };
1578 + tuplePromise = new Promise(function (resolve) {
1579 + unsubscribe = startListening({
1580 + predicate: predicate,
1581 + effect: function (action, listenerApi) {
1582 + listenerApi.unsubscribe();
1583 + resolve([
1584 + action,
1585 + listenerApi.getState(),
1586 + listenerApi.getOriginalState()
1587 + ]);
1588 + }
1589 + });
1590 + });
1591 + promises = [
1592 + promisifyAbortSignal(signal),
1593 + tuplePromise
1594 + ];
1595 + if (timeout != null) {
1596 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
1597 + }
1598 + _c.label = 1;
1599 + case 1:
1600 + _c.trys.push([1, , 3, 4]);
1601 + return [4 /*yield*/, Promise.race(promises)];
1602 + case 2:
1603 + output = _c.sent();
1604 + validateActive(signal);
1605 + return [2 /*return*/, output];
1606 + case 3:
1607 + unsubscribe();
1608 + return [7 /*endfinally*/];
1609 + case 4: return [2 /*return*/];
1610 + }
1611 + });
1612 + }); };
1613 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
1614 +};
1615 +var getListenerEntryPropsFrom = function (options) {
1616 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
1617 + if (type) {
1618 + predicate = createAction(type).match;
1619 + }
1620 + else if (actionCreator) {
1621 + type = actionCreator.type;
1622 + predicate = actionCreator.match;
1623 + }
1624 + else if (matcher) {
1625 + predicate = matcher;
1626 + }
1627 + else if (predicate) {
1628 + }
1629 + else {
1630 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
1631 + }
1632 + assertFunction(effect, "options.listener");
1633 + return { predicate: predicate, type: type, effect: effect };
1634 +};
1635 +var createListenerEntry = function (options) {
1636 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
1637 + var id = nanoid();
1638 + var entry = {
1639 + id: id,
1640 + effect: effect,
1641 + type: type,
1642 + predicate: predicate,
1643 + pending: new Set(),
1644 + unsubscribe: function () {
1645 + throw new Error("Unsubscribe not initialized");
1646 + }
1647 + };
1648 + return entry;
1649 +};
1650 +var createClearListenerMiddleware = function (listenerMap) {
1651 + return function () {
1652 + listenerMap.forEach(cancelActiveListeners);
1653 + listenerMap.clear();
1654 + };
1655 +};
1656 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
1657 + try {
1658 + errorHandler(errorToNotify, errorInfo);
1659 + }
1660 + catch (errorHandlerError) {
1661 + setTimeout(function () {
1662 + throw errorHandlerError;
1663 + }, 0);
1664 + }
1665 +};
1666 +var addListener = createAction(alm + "/add");
1667 +var clearAllListeners = createAction(alm + "/removeAll");
1668 +var removeListener = createAction(alm + "/remove");
1669 +var defaultErrorHandler = function () {
1670 + var args = [];
1671 + for (var _i = 0; _i < arguments.length; _i++) {
1672 + args[_i] = arguments[_i];
1673 + }
1674 + console.error.apply(console, __spreadArray([alm + "/error"], args));
1675 +};
1676 +var cancelActiveListeners = function (entry) {
1677 + entry.pending.forEach(function (controller) {
1678 + abortControllerWithReason(controller, listenerCancelled);
1679 + });
1680 +};
1681 +function createListenerMiddleware(middlewareOptions) {
1682 + var _this = this;
1683 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
1684 + var listenerMap = new Map();
1685 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
1686 + assertFunction(onError, "onError");
1687 + var insertEntry = function (entry) {
1688 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
1689 + listenerMap.set(entry.id, entry);
1690 + return function (cancelOptions) {
1691 + entry.unsubscribe();
1692 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
1693 + cancelActiveListeners(entry);
1694 + }
1695 + };
1696 + };
1697 + var findListenerEntry = function (comparator) {
1698 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
1699 + var entry = _c[_i];
1700 + if (comparator(entry)) {
1701 + return entry;
1702 + }
1703 + }
1704 + return void 0;
1705 + };
1706 + var startListening = function (options) {
1707 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
1708 + if (!entry) {
1709 + entry = createListenerEntry(options);
1710 + }
1711 + return insertEntry(entry);
1712 + };
1713 + var stopListening = function (options) {
1714 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
1715 + var entry = findListenerEntry(function (entry2) {
1716 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
1717 + return matchPredicateOrType && entry2.effect === effect;
1718 + });
1719 + if (entry) {
1720 + entry.unsubscribe();
1721 + if (options.cancelActive) {
1722 + cancelActiveListeners(entry);
1723 + }
1724 + }
1725 + return !!entry;
1726 + };
1727 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
1728 + var internalTaskController, take, listenerError_1;
1729 + return __generator(this, function (_c) {
1730 + switch (_c.label) {
1731 + case 0:
1732 + internalTaskController = new AbortController();
1733 + take = createTakePattern(startListening, internalTaskController.signal);
1734 + _c.label = 1;
1735 + case 1:
1736 + _c.trys.push([1, 3, 4, 5]);
1737 + entry.pending.add(internalTaskController);
1738 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
1739 + getOriginalState: getOriginalState,
1740 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
1741 + take: take,
1742 + delay: createDelay(internalTaskController.signal),
1743 + pause: createPause(internalTaskController.signal),
1744 + extra: extra,
1745 + signal: internalTaskController.signal,
1746 + fork: createFork(internalTaskController.signal),
1747 + unsubscribe: entry.unsubscribe,
1748 + subscribe: function () {
1749 + listenerMap.set(entry.id, entry);
1750 + },
1751 + cancelActiveListeners: function () {
1752 + entry.pending.forEach(function (controller, _, set) {
1753 + if (controller !== internalTaskController) {
1754 + abortControllerWithReason(controller, listenerCancelled);
1755 + set.delete(controller);
1756 + }
1757 + });
1758 + }
1759 + })))];
1760 + case 2:
1761 + _c.sent();
1762 + return [3 /*break*/, 5];
1763 + case 3:
1764 + listenerError_1 = _c.sent();
1765 + if (!(listenerError_1 instanceof TaskAbortError)) {
1766 + safelyNotifyError(onError, listenerError_1, {
1767 + raisedBy: "effect"
1768 + });
1769 + }
1770 + return [3 /*break*/, 5];
1771 + case 4:
1772 + abortControllerWithReason(internalTaskController, listenerCompleted);
1773 + entry.pending.delete(internalTaskController);
1774 + return [7 /*endfinally*/];
1775 + case 5: return [2 /*return*/];
1776 + }
1777 + });
1778 + }); };
1779 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
1780 + var middleware = function (api) { return function (next) { return function (action) {
1781 + if (addListener.match(action)) {
1782 + return startListening(action.payload);
1783 + }
1784 + if (clearAllListeners.match(action)) {
1785 + clearListenerMiddleware();
1786 + return;
1787 + }
1788 + if (removeListener.match(action)) {
1789 + return stopListening(action.payload);
1790 + }
1791 + var originalState = api.getState();
1792 + var getOriginalState = function () {
1793 + if (originalState === INTERNAL_NIL_TOKEN) {
1794 + throw new Error(alm + ": getOriginalState can only be called synchronously");
1795 + }
1796 + return originalState;
1797 + };
1798 + var result;
1799 + try {
1800 + result = next(action);
1801 + if (listenerMap.size > 0) {
1802 + var currentState = api.getState();
1803 + var listenerEntries = Array.from(listenerMap.values());
1804 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
1805 + var entry = listenerEntries_1[_i];
1806 + var runListener = false;
1807 + try {
1808 + runListener = entry.predicate(action, currentState, originalState);
1809 + }
1810 + catch (predicateError) {
1811 + runListener = false;
1812 + safelyNotifyError(onError, predicateError, {
1813 + raisedBy: "predicate"
1814 + });
1815 + }
1816 + if (!runListener) {
1817 + continue;
1818 + }
1819 + notifyListener(entry, action, api, getOriginalState);
1820 + }
1821 + }
1822 + }
1823 + finally {
1824 + originalState = INTERNAL_NIL_TOKEN;
1825 + }
1826 + return result;
1827 + }; }; };
1828 + return {
1829 + middleware: middleware,
1830 + startListening: startListening,
1831 + stopListening: stopListening,
1832 + clearListeners: clearListenerMiddleware
1833 + };
1834 +}
1835 +// src/index.ts
1836 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
1837 +
1838 +//# sourceMappingURL=redux-toolkit.esm.js.map
1839 +
1840 +/***/ }),
1841 +
4 1842 /***/ "../app/assets/js/loader/commands/close.js":
5 1843 /*!*************************************************!*\
6 1844 !*** ../app/assets/js/loader/commands/close.js ***!
7 1845 \*************************************************/
@@ -10,39 +1848,57 @@
10 1848 "use strict";
11 1849
12 1850
13 1851 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1852 +
14 1853 Object.defineProperty(exports, "__esModule", ({
15 1854 value: true
16 1855 }));
17 1856 exports["default"] = exports.Close = void 0;
1857 +
18 1858 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1859 +
19 1860 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1861 +
1862 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1863 +
20 1864 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1865 +
21 1866 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
22 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
23 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
24 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25 -var Close = exports.Close = /*#__PURE__*/function (_$e$modules$CommandBa) {
1867 +
1868 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
1869 +
1870 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1871 +
1872 +var Close = /*#__PURE__*/function (_$e$modules$CommandBa) {
1873 + (0, _inherits2.default)(Close, _$e$modules$CommandBa);
1874 +
1875 + var _super = _createSuper(Close);
1876 +
26 1877 function Close() {
27 1878 (0, _classCallCheck2.default)(this, Close);
28 - return _callSuper(this, Close, arguments);
1879 + return _super.apply(this, arguments);
29 1880 }
30 - (0, _inherits2.default)(Close, _$e$modules$CommandBa);
31 - return (0, _createClass2.default)(Close, [{
1881 +
1882 + (0, _createClass2.default)(Close, [{
32 1883 key: "apply",
33 1884 value: function apply() {
34 1885 if (!this.component.close()) {
35 1886 return false;
36 1887 }
1888 +
37 1889 this.component.iframe.remove();
38 1890 this.component.iframe = null;
39 1891 return true;
40 1892 }
41 1893 }]);
1894 + return Close;
42 1895 }($e.modules.CommandBase);
43 -var _default = exports["default"] = Close;
44 1896
1897 +exports.Close = Close;
1898 +var _default = Close;
1899 +exports["default"] = _default;
1900 +
45 1901 /***/ }),
46 1902
47 1903 /***/ "../app/assets/js/loader/commands/index.js":
48 1904 /*!*************************************************!*\
@@ -73,10 +1929,13 @@
73 1929 get: function get() {
74 1930 return _open.Open;
75 1931 }
76 1932 }));
1933 +
77 1934 var _close = __webpack_require__(/*! ./close */ "../app/assets/js/loader/commands/close.js");
1935 +
78 1936 var _load = __webpack_require__(/*! ./load */ "../app/assets/js/loader/commands/load.js");
1937 +
79 1938 var _open = __webpack_require__(/*! ./open */ "../app/assets/js/loader/commands/open.js");
80 1939
81 1940 /***/ }),
82 1941
@@ -89,29 +1948,43 @@
89 1948 "use strict";
90 1949
91 1950
92 1951 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1952 +
93 1953 Object.defineProperty(exports, "__esModule", ({
94 1954 value: true
95 1955 }));
96 1956 exports["default"] = exports.Load = void 0;
1957 +
97 1958 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1959 +
98 1960 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1961 +
1962 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1963 +
99 1964 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1965 +
100 1966 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
101 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
102 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
103 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
104 -var Load = exports.Load = /*#__PURE__*/function (_$e$modules$CommandBa) {
1967 +
1968 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
1969 +
1970 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
1971 +
1972 +var Load = /*#__PURE__*/function (_$e$modules$CommandBa) {
1973 + (0, _inherits2.default)(Load, _$e$modules$CommandBa);
1974 +
1975 + var _super = _createSuper(Load);
1976 +
105 1977 function Load() {
106 1978 (0, _classCallCheck2.default)(this, Load);
107 - return _callSuper(this, Load, arguments);
1979 + return _super.apply(this, arguments);
108 1980 }
109 - (0, _inherits2.default)(Load, _$e$modules$CommandBa);
110 - return (0, _createClass2.default)(Load, [{
1981 +
1982 + (0, _createClass2.default)(Load, [{
111 1983 key: "apply",
112 1984 value: function apply(args) {
113 1985 var component = this.component;
1986 +
114 1987 if (!component.iframe) {
115 1988 component.iframe = document.createElement('iframe');
116 1989 component.iframe.className = 'elementor-app-iframe';
117 1990 component.iframe.style.cssText = '' + 'display: none;' + 'width: 100%;' + 'height: 100%;' + 'position: fixed;' + 'top: 0;' + 'left: 0;' + 'z-index: 99999; /* Over WP Admin Bar */' + 'background-color: rgba(0, 0, 0, 0.8);';
@@ -116,17 +1989,23 @@
116 1989 component.iframe.className = 'elementor-app-iframe';
117 1990 component.iframe.style.cssText = '' + 'display: none;' + 'width: 100%;' + 'height: 100%;' + 'position: fixed;' + 'top: 0;' + 'left: 0;' + 'z-index: 99999; /* Over WP Admin Bar */' + 'background-color: rgba(0, 0, 0, 0.8);';
118 1991 document.body.appendChild(component.iframe);
119 1992 }
1993 +
120 1994 if (args.url === component.iframe.src) {
121 1995 return;
122 1996 }
1997 +
123 1998 component.iframe.src = args.url;
124 1999 }
125 2000 }]);
2001 + return Load;
126 2002 }($e.modules.CommandBase);
127 -var _default = exports["default"] = Load;
128 2003
2004 +exports.Load = Load;
2005 +var _default = Load;
2006 +exports["default"] = _default;
2007 +
129 2008 /***/ }),
130 2009
131 2010 /***/ "../app/assets/js/loader/commands/open.js":
132 2011 /*!************************************************!*\
@@ -137,26 +2016,39 @@
137 2016 "use strict";
138 2017
139 2018
140 2019 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2020 +
141 2021 Object.defineProperty(exports, "__esModule", ({
142 2022 value: true
143 2023 }));
144 2024 exports["default"] = exports.Open = void 0;
2025 +
145 2026 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2027 +
146 2028 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2029 +
2030 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2031 +
147 2032 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2033 +
148 2034 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
149 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
150 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
151 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
152 -var Open = exports.Open = /*#__PURE__*/function (_$e$modules$CommandBa) {
2035 +
2036 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
2037 +
2038 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2039 +
2040 +var Open = /*#__PURE__*/function (_$e$modules$CommandBa) {
2041 + (0, _inherits2.default)(Open, _$e$modules$CommandBa);
2042 +
2043 + var _super = _createSuper(Open);
2044 +
153 2045 function Open() {
154 2046 (0, _classCallCheck2.default)(this, Open);
155 - return _callSuper(this, Open, arguments);
2047 + return _super.apply(this, arguments);
156 2048 }
157 - (0, _inherits2.default)(Open, _$e$modules$CommandBa);
158 - return (0, _createClass2.default)(Open, [{
2049 +
2050 + (0, _createClass2.default)(Open, [{
159 2051 key: "apply",
160 2052 value: function apply(args) {
161 2053 $e.route('app', args);
162 2054 return true;
@@ -161,11 +2053,15 @@
161 2053 $e.route('app', args);
162 2054 return true;
163 2055 }
164 2056 }]);
2057 + return Open;
165 2058 }($e.modules.CommandBase);
166 -var _default = exports["default"] = Open;
167 2059
2060 +exports.Open = Open;
2061 +var _default = Open;
2062 +exports["default"] = _default;
2063 +
168 2064 /***/ }),
169 2065
170 2066 /***/ "../app/assets/js/loader/component.js":
171 2067 /*!********************************************!*\
@@ -176,30 +2072,49 @@
176 2072 "use strict";
177 2073
178 2074
179 2075 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2076 +
180 2077 var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
2078 +
181 2079 Object.defineProperty(exports, "__esModule", ({
182 2080 value: true
183 2081 }));
184 2082 exports["default"] = void 0;
2083 +
185 2084 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2085 +
186 2086 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2087 +
2088 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2089 +
187 2090 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2091 +
188 2092 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
189 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2093 +
190 2094 var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js"));
2095 +
191 2096 var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../app/assets/js/loader/commands/index.js"));
192 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
193 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
194 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
195 -var Component = exports["default"] = /*#__PURE__*/function (_ComponentModalBase) {
2097 +
2098 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
2099 +
2100 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
2101 +
2102 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
2103 +
2104 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2105 +
2106 +var Component = /*#__PURE__*/function (_ComponentModalBase) {
2107 + (0, _inherits2.default)(Component, _ComponentModalBase);
2108 +
2109 + var _super = _createSuper(Component);
2110 +
196 2111 function Component() {
197 2112 (0, _classCallCheck2.default)(this, Component);
198 - return _callSuper(this, Component, arguments);
2113 + return _super.apply(this, arguments);
199 2114 }
200 - (0, _inherits2.default)(Component, _ComponentModalBase);
201 - return (0, _createClass2.default)(Component, [{
2115 +
2116 + (0, _createClass2.default)(Component, [{
202 2117 key: "getNamespace",
203 2118 value: function getNamespace() {
204 2119 return 'app';
205 2120 }
@@ -206,8 +2121,9 @@
206 2121 }, {
207 2122 key: "defaultRoutes",
208 2123 value: function defaultRoutes() {
209 2124 var _this = this;
2125 +
210 2126 return {
211 2127 '': function _(args) {
212 2128 args.url = args.url || elementorAppConfig.menu_url;
213 2129 $e.run('app/load', args);
@@ -234,10 +2150,13 @@
234 2150 }
235 2151 };
236 2152 }
237 2153 }]);
2154 + return Component;
238 2155 }(_componentBase.default);
239 2156
2157 +exports["default"] = Component;
2158 +
240 2159 /***/ }),
241 2160
242 2161 /***/ "../assets/dev/js/editor/utils/is-instanceof.js":
243 2162 /*!******************************************************!*\
@@ -251,11 +2170,15 @@
251 2170 Object.defineProperty(exports, "__esModule", ({
252 2171 value: true
253 2172 }));
254 2173 exports["default"] = void 0;
255 -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
256 -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
257 -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2174 +
2175 +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2176 +
2177 +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2178 +
2179 +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2180 +
258 2181 /**
259 2182 * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
260 2183 * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
261 2184 * check whether it's instanceof by using the objects constructor and prototype names.
@@ -263,16 +2186,19 @@
263 2186 * @param object
264 2187 * @param constructors
265 2188 * @return {boolean}
266 2189 */
267 -var _default = exports["default"] = function _default(object, constructors) {
2190 +var _default = function _default(object, constructors) {
268 2191 constructors = Array.isArray(constructors) ? constructors : [constructors];
2192 +
269 2193 var _iterator = _createForOfIteratorHelper(constructors),
270 - _step;
2194 + _step;
2195 +
271 2196 try {
272 2197 for (_iterator.s(); !(_step = _iterator.n()).done;) {
273 - var constructor = _step.value;
274 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) {
2198 + var _constructor = _step.value;
2199 +
2200 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
275 2201 return true;
276 2202 }
277 2203 }
278 2204 } catch (err) {
@@ -279,11 +2205,14 @@
279 2205 _iterator.e(err);
280 2206 } finally {
281 2207 _iterator.f();
282 2208 }
2209 +
283 2210 return false;
284 2211 };
285 2212
2213 +exports["default"] = _default;
2214 +
286 2215 /***/ }),
287 2216
288 2217 /***/ "../assets/dev/js/modules/imports/args-object.js":
289 2218 /*!*******************************************************!*\
@@ -294,23 +2223,39 @@
294 2223 "use strict";
295 2224
296 2225
297 2226 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2227 +
298 2228 Object.defineProperty(exports, "__esModule", ({
299 2229 value: true
300 2230 }));
301 2231 exports["default"] = void 0;
2232 +
302 2233 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
2234 +
303 2235 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2236 +
304 2237 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2238 +
2239 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2240 +
305 2241 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2242 +
306 2243 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
307 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2244 +
308 2245 var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
2246 +
309 2247 var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
310 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
311 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
312 -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
2248 +
2249 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
2250 +
2251 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2252 +
2253 +var ArgsObject = /*#__PURE__*/function (_InstanceType) {
2254 + (0, _inherits2.default)(ArgsObject, _InstanceType);
2255 +
2256 + var _super = _createSuper(ArgsObject);
2257 +
313 2258 /**
314 2259 * Function constructor().
315 2260 *
316 2261 * Create ArgsObject.
@@ -318,14 +2263,14 @@
318 2263 * @param {{}} args
319 2264 */
320 2265 function ArgsObject(args) {
321 2266 var _this;
2267 +
322 2268 (0, _classCallCheck2.default)(this, ArgsObject);
323 - _this = _callSuper(this, ArgsObject);
2269 + _this = _super.call(this);
324 2270 _this.args = args;
325 2271 return _this;
326 2272 }
327 -
328 2273 /**
329 2274 * Function requireArgument().
330 2275 *
331 2276 * Validate property in args.
@@ -333,19 +2278,21 @@
333 2278 * @param {string} property
334 2279 * @param {{}} args
335 2280 *
336 2281 * @throws {Error}
2282 + *
337 2283 */
338 - (0, _inherits2.default)(ArgsObject, _InstanceType);
339 - return (0, _createClass2.default)(ArgsObject, [{
2284 +
2285 +
2286 + (0, _createClass2.default)(ArgsObject, [{
340 2287 key: "requireArgument",
341 2288 value: function requireArgument(property) {
342 2289 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
2290 +
343 2291 if (!Object.prototype.hasOwnProperty.call(args, property)) {
344 2292 throw Error("".concat(property, " is required."));
345 2293 }
346 2294 }
347 -
348 2295 /**
349 2296 * Function requireArgumentType().
350 2297 *
351 2298 * Validate property in args using `type === typeof(args.whatever)`.
@@ -354,19 +2301,21 @@
354 2301 * @param {string} type
355 2302 * @param {{}} args
356 2303 *
357 2304 * @throws {Error}
2305 + *
358 2306 */
2307 +
359 2308 }, {
360 2309 key: "requireArgumentType",
361 2310 value: function requireArgumentType(property, type) {
362 2311 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
363 2312 this.requireArgument(property, args);
2313 +
364 2314 if ((0, _typeof2.default)(args[property]) !== type) {
365 2315 throw Error("".concat(property, " invalid type: ").concat(type, "."));
366 2316 }
367 2317 }
368 -
369 2318 /**
370 2319 * Function requireArgumentInstance().
371 2320 *
372 2321 * Validate property in args using `args.whatever instanceof instance`.
@@ -375,19 +2324,21 @@
375 2324 * @param {*} instance
376 2325 * @param {{}} args
377 2326 *
378 2327 * @throws {Error}
2328 + *
379 2329 */
2330 +
380 2331 }, {
381 2332 key: "requireArgumentInstance",
382 2333 value: function requireArgumentInstance(property, instance) {
383 2334 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
384 2335 this.requireArgument(property, args);
2336 +
385 2337 if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
386 2338 throw Error("".concat(property, " invalid instance."));
387 2339 }
388 2340 }
389 -
390 2341 /**
391 2342 * Function requireArgumentConstructor().
392 2343 *
393 2344 * Validate property in args using `type === args.whatever.constructor`.
@@ -396,17 +2347,18 @@
396 2347 * @param {*} type
397 2348 * @param {{}} args
398 2349 *
399 2350 * @throws {Error}
2351 + *
400 2352 */
2353 +
401 2354 }, {
402 2355 key: "requireArgumentConstructor",
403 2356 value: function requireArgumentConstructor(property, type) {
404 2357 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
405 - this.requireArgument(property, args);
2358 + this.requireArgument(property, args); // Note: Converting the constructor to string in order to avoid equation issues
2359 + // due to different memory addresses between iframes (window.Object !== window.top.Object).
406 2360
407 - // Note: Converting the constructor to string in order to avoid equation issues
408 - // due to different memory addresses between iframes (window.Object !== window.top.Object).
409 2361 if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
410 2362 throw Error("".concat(property, " invalid constructor type."));
411 2363 }
412 2364 }
@@ -415,10 +2367,13 @@
415 2367 value: function getInstanceType() {
416 2368 return 'ArgsObject';
417 2369 }
418 2370 }]);
2371 + return ArgsObject;
419 2372 }(_instanceType.default);
420 2373
2374 +exports["default"] = ArgsObject;
2375 +
421 2376 /***/ }),
422 2377
423 2378 /***/ "../assets/dev/js/modules/imports/instance-type.js":
424 2379 /*!*********************************************************!*\
@@ -429,34 +2384,43 @@
429 2384 "use strict";
430 2385
431 2386
432 2387 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2388 +
433 2389 Object.defineProperty(exports, "__esModule", ({
434 2390 value: true
435 2391 }));
436 2392 exports["default"] = void 0;
2393 +
437 2394 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2395 +
438 2396 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2397 +
2398 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
2399 +
439 2400 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
440 -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
441 -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
442 -var InstanceType = exports["default"] = /*#__PURE__*/function () {
2401 +
2402 +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) {
443 2403 function InstanceType() {
444 2404 var _this = this;
2405 +
445 2406 (0, _classCallCheck2.default)(this, InstanceType);
446 2407 // Since anonymous classes sometimes do not get validated by babel, do it manually.
447 2408 var target = this instanceof InstanceType ? this.constructor : void 0;
448 2409 var prototypes = [];
2410 +
449 2411 while (target.__proto__ && target.__proto__.name) {
450 2412 prototypes.push(target.__proto__);
451 2413 target = target.__proto__;
452 2414 }
2415 +
453 2416 prototypes.reverse().forEach(function (proto) {
454 2417 return _this instanceof proto;
455 2418 });
456 2419 }
457 - return (0, _createClass2.default)(InstanceType, null, [{
458 - key: Symbol.hasInstance,
2420 +
2421 + (0, _createClass2.default)(InstanceType, null, [{
2422 + key: _Symbol$hasInstance,
459 2423 value: function value(target) {
460 2424 /**
461 2425 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
462 2426 * its give's opportunity to mange capabilities of instanceOf operator.
@@ -461,34 +2425,39 @@
461 2425 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
462 2426 * its give's opportunity to mange capabilities of instanceOf operator.
463 2427 * saving current class each time will give option later to handle instanceOf manually.
464 2428 */
465 - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
2429 + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); // Act normal when validate a class, which does not have instance type.
466 2430
467 - // Act normal when validate a class, which does not have instance type.
468 2431 if (target && !target.constructor.getInstanceType) {
469 2432 return result;
470 2433 }
2434 +
471 2435 if (target) {
472 2436 if (!target.instanceTypes) {
473 2437 target.instanceTypes = [];
474 2438 }
2439 +
475 2440 if (!result) {
476 2441 if (this.getInstanceType() === target.constructor.getInstanceType()) {
477 2442 result = true;
478 2443 }
479 2444 }
2445 +
480 2446 if (result) {
481 2447 var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
2448 +
482 2449 if (-1 === target.instanceTypes.indexOf(name)) {
483 2450 target.instanceTypes.push(name);
484 2451 }
485 2452 }
486 2453 }
2454 +
487 2455 if (!result && target) {
488 2456 // Check if the given 'target', is instance of known types.
489 2457 result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
490 2458 }
2459 +
491 2460 return result;
492 2461 }
493 2462 }, {
494 2463 key: "getInstanceType",
@@ -495,10 +2464,13 @@
495 2464 value: function getInstanceType() {
496 2465 elementorModules.ForceMethodImplementation();
497 2466 }
498 2467 }]);
499 -}();
2468 + return InstanceType;
2469 +}(Symbol.hasInstance);
500 2470
2471 +exports["default"] = InstanceType;
2472 +
501 2473 /***/ }),
502 2474
503 2475 /***/ "../assets/dev/js/modules/imports/module.js":
504 2476 /*!**************************************************!*\
@@ -509,91 +2481,117 @@
509 2481 "use strict";
510 2482
511 2483
512 2484 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2485 +
513 2486 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
2487 +
514 2488 var Module = function Module() {
515 2489 var $ = jQuery,
516 - instanceParams = arguments,
517 - self = this,
518 - events = {};
2490 + instanceParams = arguments,
2491 + self = this,
2492 + events = {};
519 2493 var settings;
2494 +
520 2495 var ensureClosureMethods = function ensureClosureMethods() {
521 2496 $.each(self, function (methodName) {
522 2497 var oldMethod = self[methodName];
2498 +
523 2499 if ('function' !== typeof oldMethod) {
524 2500 return;
525 2501 }
2502 +
526 2503 self[methodName] = function () {
527 2504 return oldMethod.apply(self, arguments);
528 2505 };
529 2506 });
530 2507 };
2508 +
531 2509 var initSettings = function initSettings() {
532 2510 settings = self.getDefaultSettings();
533 2511 var instanceSettings = instanceParams[0];
2512 +
534 2513 if (instanceSettings) {
535 2514 $.extend(true, settings, instanceSettings);
536 2515 }
537 2516 };
2517 +
538 2518 var init = function init() {
539 2519 self.__construct.apply(self, instanceParams);
2520 +
540 2521 ensureClosureMethods();
541 2522 initSettings();
542 2523 self.trigger('init');
543 2524 };
2525 +
544 2526 this.getItems = function (items, itemKey) {
545 2527 if (itemKey) {
546 2528 var keyStack = itemKey.split('.'),
547 - currentKey = keyStack.splice(0, 1);
2529 + currentKey = keyStack.splice(0, 1);
2530 +
548 2531 if (!keyStack.length) {
549 2532 return items[currentKey];
550 2533 }
2534 +
551 2535 if (!items[currentKey]) {
552 2536 return;
553 2537 }
2538 +
554 2539 return this.getItems(items[currentKey], keyStack.join('.'));
555 2540 }
2541 +
556 2542 return items;
557 2543 };
2544 +
558 2545 this.getSettings = function (setting) {
559 2546 return this.getItems(settings, setting);
560 2547 };
2548 +
561 2549 this.setSettings = function (settingKey, value, settingsContainer) {
562 2550 if (!settingsContainer) {
563 2551 settingsContainer = settings;
564 2552 }
2553 +
565 2554 if ('object' === (0, _typeof2.default)(settingKey)) {
566 2555 $.extend(settingsContainer, settingKey);
567 2556 return self;
568 2557 }
2558 +
569 2559 var keyStack = settingKey.split('.'),
570 - currentKey = keyStack.splice(0, 1);
2560 + currentKey = keyStack.splice(0, 1);
2561 +
571 2562 if (!keyStack.length) {
572 2563 settingsContainer[currentKey] = value;
573 2564 return self;
574 2565 }
2566 +
575 2567 if (!settingsContainer[currentKey]) {
576 2568 settingsContainer[currentKey] = {};
577 2569 }
2570 +
578 2571 return self.setSettings(keyStack.join('.'), value, settingsContainer[currentKey]);
579 2572 };
2573 +
580 2574 this.getErrorMessage = function (type, functionName) {
581 2575 var message;
2576 +
582 2577 switch (type) {
583 2578 case 'forceMethodImplementation':
584 2579 message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
585 2580 break;
2581 +
586 2582 default:
587 2583 message = 'An error occurs';
588 2584 }
2585 +
589 2586 return message;
590 - };
2587 + }; // TODO: This function should be deleted ?.
591 2588
592 - // TODO: This function should be deleted ?.
2589 +
593 2590 this.forceMethodImplementation = function (functionName) {
594 2591 throw new Error(this.getErrorMessage('forceMethodImplementation', functionName));
595 2592 };
2593 +
596 2594 this.on = function (eventName, callback) {
597 2595 if ('object' === (0, _typeof2.default)(eventName)) {
598 2596 $.each(eventName, function (singleEventName) {
599 2597 self.on(singleEventName, this);
@@ -599,66 +2597,84 @@
599 2597 self.on(singleEventName, this);
600 2598 });
601 2599 return self;
602 2600 }
2601 +
603 2602 var eventNames = eventName.split(' ');
604 2603 eventNames.forEach(function (singleEventName) {
605 2604 if (!events[singleEventName]) {
606 2605 events[singleEventName] = [];
607 2606 }
2607 +
608 2608 events[singleEventName].push(callback);
609 2609 });
610 2610 return self;
611 2611 };
2612 +
612 2613 this.off = function (eventName, callback) {
613 2614 if (!events[eventName]) {
614 2615 return self;
615 2616 }
2617 +
616 2618 if (!callback) {
617 2619 delete events[eventName];
618 2620 return self;
619 2621 }
2622 +
620 2623 var callbackIndex = events[eventName].indexOf(callback);
2624 +
621 2625 if (-1 !== callbackIndex) {
622 - delete events[eventName][callbackIndex];
2626 + delete events[eventName][callbackIndex]; // Reset array index (for next off on same event).
623 2627
624 - // Reset array index (for next off on same event).
625 2628 events[eventName] = events[eventName].filter(function (val) {
626 2629 return val;
627 2630 });
628 2631 }
2632 +
629 2633 return self;
630 2634 };
2635 +
631 2636 this.trigger = function (eventName) {
632 2637 var methodName = 'on' + eventName[0].toUpperCase() + eventName.slice(1),
633 - params = Array.prototype.slice.call(arguments, 1);
2638 + params = Array.prototype.slice.call(arguments, 1);
2639 +
634 2640 if (self[methodName]) {
635 2641 self[methodName].apply(self, params);
636 2642 }
2643 +
637 2644 var callbacks = events[eventName];
2645 +
638 2646 if (!callbacks) {
639 2647 return self;
640 2648 }
2649 +
641 2650 $.each(callbacks, function (index, callback) {
642 2651 callback.apply(self, params);
643 2652 });
644 2653 return self;
645 2654 };
2655 +
646 2656 init();
647 2657 };
2658 +
648 2659 Module.prototype.__construct = function () {};
2660 +
649 2661 Module.prototype.getDefaultSettings = function () {
650 2662 return {};
651 2663 };
2664 +
652 2665 Module.prototype.getConstructorID = function () {
653 2666 return this.constructor.name;
654 2667 };
2668 +
655 2669 Module.extend = function (properties) {
656 2670 var $ = jQuery,
657 - parent = this;
2671 + parent = this;
2672 +
658 2673 var child = function child() {
659 2674 return parent.apply(this, arguments);
660 2675 };
2676 +
661 2677 $.extend(child, parent);
662 2678 child.prototype = Object.create($.extend({}, parent.prototype, properties));
663 2679 child.prototype.constructor = child;
664 2680 child.__super__ = parent.prototype;
@@ -663,8 +2679,9 @@
663 2679 child.prototype.constructor = child;
664 2680 child.__super__ = parent.prototype;
665 2681 return child;
666 2682 };
2683 +
667 2684 module.exports = Module;
668 2685
669 2686 /***/ }),
670 2687
@@ -677,31 +2694,46 @@
677 2694 "use strict";
678 2695
679 2696
680 2697 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2698 +
681 2699 Object.defineProperty(exports, "__esModule", ({
682 2700 value: true
683 2701 }));
684 2702 exports["default"] = void 0;
2703 +
685 2704 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2705 +
686 2706 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2707 +
2708 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2709 +
687 2710 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2711 +
688 2712 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
689 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2713 +
690 2714 var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js"));
2715 +
691 2716 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
692 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
693 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2717 +
2718 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
2719 +
2720 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2721 +
694 2722 /**
695 2723 * @name $e.modules.CommandBase
696 2724 */
697 -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) {
2725 +var CommandBase = /*#__PURE__*/function (_CommandInfra) {
2726 + (0, _inherits2.default)(CommandBase, _CommandInfra);
2727 +
2728 + var _super = _createSuper(CommandBase);
2729 +
698 2730 function CommandBase() {
699 2731 (0, _classCallCheck2.default)(this, CommandBase);
700 - return _callSuper(this, CommandBase, arguments);
2732 + return _super.apply(this, arguments);
701 2733 }
702 - (0, _inherits2.default)(CommandBase, _CommandInfra);
703 - return (0, _createClass2.default)(CommandBase, [{
2734 +
2735 + (0, _createClass2.default)(CommandBase, [{
704 2736 key: "onBeforeRun",
705 2737 value: function onBeforeRun() {
706 2738 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
707 2739 $e.hooks.runUIBefore(this.command, args);
@@ -723,9 +2755,9 @@
723 2755 key: "onAfterApply",
724 2756 value: function onAfterApply() {
725 2757 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
726 2758 var result = arguments.length > 1 ? arguments[1] : undefined;
727 - return $e.hooks.runDataAfter(this.command, args, result);
2759 + $e.hooks.runDataAfter(this.command, args, result);
728 2760 }
729 2761 }, {
730 2762 key: "onCatchApply",
731 2763 value: function onCatchApply(e) {
@@ -730,14 +2762,14 @@
730 2762 key: "onCatchApply",
731 2763 value: function onCatchApply(e) {
732 2764 this.runCatchHooks(e);
733 2765 }
734 -
735 2766 /**
736 2767 * Run all the catch hooks.
737 2768 *
738 2769 * @param {Error} e
739 2770 */
2771 +
740 2772 }, {
741 2773 key: "runCatchHooks",
742 2774 value: function runCatchHooks(e) {
743 2775 $e.hooks.runDataCatch(this.command, this.args, e);
@@ -742,9 +2774,8 @@
742 2774 value: function runCatchHooks(e) {
743 2775 $e.hooks.runDataCatch(this.command, this.args, e);
744 2776 $e.hooks.runUICatch(this.command, this.args, e);
745 2777 }
746 -
747 2778 /**
748 2779 * TODO - Remove - Backwards compatibility.
749 2780 *
750 2781 * Function requireContainer().
@@ -751,24 +2782,29 @@
751 2782 *
752 2783 * Validate `arg.container` & `arg.containers`.
753 2784 *
754 2785 * @param {{}} args
755 - * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead.
756 2786 *
757 2787 * @throws {Error}
758 2788 */
2789 +
759 2790 }, {
760 2791 key: "requireContainer",
761 2792 value: function requireContainer() {
762 2793 var _this = this;
2794 +
763 2795 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
764 - _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`');
2796 +
2797 + _deprecation.default.deprecated('requireContainer', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`');
2798 +
765 2799 if (!args.container && !args.containers) {
766 2800 throw Error('container or containers are required.');
767 2801 }
2802 +
768 2803 if (args.container && args.containers) {
769 2804 throw Error('container and containers cannot go together please select one of them.');
770 2805 }
2806 +
771 2807 var containers = args.containers || [args.container];
772 2808 containers.forEach(function (container) {
773 2809 _this.requireArgumentInstance('container', elementorModules.editor.Container, {
774 2810 container: container
@@ -780,10 +2816,13 @@
780 2816 value: function getInstanceType() {
781 2817 return 'CommandBase';
782 2818 }
783 2819 }]);
2820 + return CommandBase;
784 2821 }(_commandInfra.default);
785 2822
2823 +exports["default"] = CommandBase;
2824 +
786 2825 /***/ }),
787 2826
788 2827 /***/ "../modules/web-cli/assets/js/modules/command-callback-base.js":
789 2828 /*!*********************************************************************!*\
@@ -794,30 +2833,44 @@
794 2833 "use strict";
795 2834
796 2835
797 2836 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2837 +
798 2838 Object.defineProperty(exports, "__esModule", ({
799 2839 value: true
800 2840 }));
801 2841 exports["default"] = void 0;
2842 +
802 2843 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2844 +
803 2845 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2846 +
2847 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2848 +
804 2849 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2850 +
805 2851 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
806 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2852 +
807 2853 var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
808 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
809 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2854 +
2855 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
2856 +
2857 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2858 +
810 2859 /**
811 2860 * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
812 2861 */
813 -var CommandCallbackBase = exports["default"] = /*#__PURE__*/function (_CommandBase) {
2862 +var CommandCallbackBase = /*#__PURE__*/function (_CommandBase) {
2863 + (0, _inherits2.default)(CommandCallbackBase, _CommandBase);
2864 +
2865 + var _super = _createSuper(CommandCallbackBase);
2866 +
814 2867 function CommandCallbackBase() {
815 2868 (0, _classCallCheck2.default)(this, CommandCallbackBase);
816 - return _callSuper(this, CommandCallbackBase, arguments);
2869 + return _super.apply(this, arguments);
817 2870 }
818 - (0, _inherits2.default)(CommandCallbackBase, _CommandBase);
819 - return (0, _createClass2.default)(CommandCallbackBase, [{
2871 +
2872 + (0, _createClass2.default)(CommandCallbackBase, [{
820 2873 key: "apply",
821 2874 value: function apply() {
822 2875 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
823 2876 return this.constructor.getCallback()(args);
@@ -826,9 +2879,8 @@
826 2879 key: "getInstanceType",
827 2880 value: function getInstanceType() {
828 2881 return 'CommandCallbackBase';
829 2882 }
830 -
831 2883 /**
832 2884 * Get original callback of the command.
833 2885 *
834 2886 * Support pure callbacks ( Non command-base ).
@@ -834,8 +2886,9 @@
834 2886 * Support pure callbacks ( Non command-base ).
835 2887 *
836 2888 * @return {()=>{}} Command Results.
837 2889 */
2890 +
838 2891 }, {
839 2892 key: "getCallback",
840 2893 value: function getCallback() {
841 2894 return this.registerConfig.callback;
@@ -840,10 +2893,13 @@
840 2893 value: function getCallback() {
841 2894 return this.registerConfig.callback;
842 2895 }
843 2896 }]);
2897 + return CommandCallbackBase;
844 2898 }(_commandBase.default);
845 2899
2900 +exports["default"] = CommandCallbackBase;
2901 +
846 2902 /***/ }),
847 2903
848 2904 /***/ "../modules/web-cli/assets/js/modules/command-infra.js":
849 2905 /*!*************************************************************!*\
@@ -854,26 +2910,42 @@
854 2910 "use strict";
855 2911
856 2912
857 2913 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2914 +
858 2915 Object.defineProperty(exports, "__esModule", ({
859 2916 value: true
860 2917 }));
861 2918 exports["default"] = void 0;
2919 +
862 2920 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2921 +
863 2922 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2923 +
2924 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2925 +
864 2926 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2927 +
865 2928 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
866 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2929 +
867 2930 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
2931 +
868 2932 var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
2933 +
869 2934 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
870 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
871 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
2935 +
2936 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
2937 +
2938 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2939 +
872 2940 /**
873 2941 * @typedef {import('../modules/component-base')} ComponentBase
874 2942 */
875 -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
2943 +var CommandInfra = /*#__PURE__*/function (_ArgsObject) {
2944 + (0, _inherits2.default)(CommandInfra, _ArgsObject);
2945 +
2946 + var _super = _createSuper(CommandInfra);
2947 +
876 2948 /**
877 2949 * Function constructor().
878 2950 *
879 2951 * Create Commands Base.
@@ -881,32 +2953,31 @@
881 2953 * @param {{}} args
882 2954 */
883 2955 function CommandInfra() {
884 2956 var _this;
2957 +
885 2958 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
886 2959 (0, _classCallCheck2.default)(this, CommandInfra);
887 - _this = _callSuper(this, CommandInfra, [args]);
2960 + _this = _super.call(this, args);
2961 +
888 2962 if (!_this.constructor.registerConfig) {
889 2963 throw RangeError('Doing it wrong: Each command type should have `registerConfig`.');
890 - }
2964 + } // Acknowledge self about which command it run.
891 2965
892 - // Acknowledge self about which command it run.
893 - _this.command = _this.constructor.getCommand();
894 2966
895 - // Assign instance of current component.
896 - _this.component = _this.constructor.getComponent();
2967 + _this.command = _this.constructor.getCommand(); // Assign instance of current component.
897 2968
898 - // Who ever need do something before without `super` the constructor can use `initialize` method.
899 - _this.initialize(args);
2969 + _this.component = _this.constructor.getComponent(); // Who ever need do something before without `super` the constructor can use `initialize` method.
900 2970
901 - // Refresh args, maybe the changed via `initialize`.
902 - args = _this.args;
2971 + _this.initialize(args); // Refresh args, maybe the changed via `initialize`.
903 2972
904 - // Validate args before run.
2973 +
2974 + args = _this.args; // Validate args before run.
2975 +
905 2976 _this.validateArgs(args);
2977 +
906 2978 return _this;
907 2979 }
908 -
909 2980 /**
910 2981 * Function initialize().
911 2982 *
912 2983 * Initialize command, called after construction.
@@ -912,17 +2983,16 @@
912 2983 * Initialize command, called after construction.
913 2984 *
914 2985 * @param {{}} args
915 2986 */
916 - (0, _inherits2.default)(CommandInfra, _ArgsObject);
917 - return (0, _createClass2.default)(CommandInfra, [{
2987 +
2988 +
2989 + (0, _createClass2.default)(CommandInfra, [{
918 2990 key: "currentCommand",
919 - get:
920 - /**
921 - * @deprecated since 3.7.0, use `this.command` instead.
922 - */
2991 + get: // TODO - Remove backwards compatibility.
923 2992 function get() {
924 2993 _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command');
2994 +
925 2995 return this.command;
926 2996 }
927 2997 }, {
928 2998 key: "initialize",
@@ -936,15 +3006,16 @@
936 3006 * Validate command arguments.
937 3007 *
938 3008 * @param {{}} args
939 3009 */
3010 +
940 3011 }, {
941 3012 key: "validateArgs",
942 3013 value: function validateArgs() {
943 3014 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
944 3015 } // eslint-disable-line no-unused-vars
3016 + // eslint-disable-next-line jsdoc/require-returns-check
945 3017
946 - // eslint-disable-next-line jsdoc/require-returns-check
947 3018 /**
948 3019 * Function apply().
949 3020 *
950 3021 * Do the actual command.
@@ -952,8 +3023,9 @@
952 3023 * @param {{}} args
953 3024 *
954 3025 * @return {*} Command results.
955 3026 */
3027 +
956 3028 }, {
957 3029 key: "apply",
958 3030 value: function apply() {
959 3031 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -959,9 +3031,8 @@
959 3031 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
960 3032 // eslint-disable-line no-unused-vars
961 3033 elementorModules.ForceMethodImplementation();
962 3034 }
963 -
964 3035 /**
965 3036 * Function run().
966 3037 *
967 3038 * Run command with history & hooks.
@@ -967,14 +3038,14 @@
967 3038 * Run command with history & hooks.
968 3039 *
969 3040 * @return {*} Command results.
970 3041 */
3042 +
971 3043 }, {
972 3044 key: "run",
973 3045 value: function run() {
974 3046 return this.apply(this.args);
975 3047 }
976 -
977 3048 /**
978 3049 * Function onBeforeRun.
979 3050 *
980 3051 * Called before run().
@@ -980,8 +3051,9 @@
980 3051 * Called before run().
981 3052 *
982 3053 * @param {{}} args
983 3054 */
3055 +
984 3056 }, {
985 3057 key: "onBeforeRun",
986 3058 value: function onBeforeRun() {
987 3059 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -994,8 +3066,9 @@
994 3066 *
995 3067 * @param {{}} args
996 3068 * @param {*} result
997 3069 */
3070 +
998 3071 }, {
999 3072 key: "onAfterRun",
1000 3073 value: function onAfterRun() {
1001 3074 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1008,8 +3081,9 @@
1008 3081 * Called before apply().
1009 3082 *
1010 3083 * @param {{}} args
1011 3084 */
3085 +
1012 3086 }, {
1013 3087 key: "onBeforeApply",
1014 3088 value: function onBeforeApply() {
1015 3089 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1022,8 +3096,9 @@
1022 3096 *
1023 3097 * @param {{}} args
1024 3098 * @param {*} result
1025 3099 */
3100 +
1026 3101 }, {
1027 3102 key: "onAfterApply",
1028 3103 value: function onAfterApply() {
1029 3104 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1036,40 +3111,46 @@
1036 3111 * Called after apply() failed.
1037 3112 *
1038 3113 * @param {Error} e
1039 3114 */
3115 +
1040 3116 }, {
1041 3117 key: "onCatchApply",
1042 3118 value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars
3119 +
1043 3120 }], [{
1044 3121 key: "getInstanceType",
1045 - value: function getInstanceType() {
3122 + value:
3123 + /**
3124 + * @type {Object}
3125 + */
3126 + function getInstanceType() {
1046 3127 return 'CommandInfra';
1047 3128 }
1048 -
1049 3129 /**
1050 3130 * Get info of command.
1051 3131 *
1052 3132 * @return {Object} Extra information about the command.
1053 3133 */
3134 +
1054 3135 }, {
1055 3136 key: "getInfo",
1056 3137 value: function getInfo() {
1057 3138 return {};
1058 3139 }
1059 -
1060 3140 /**
1061 3141 * @return {string} Self command name.
1062 3142 */
3143 +
1063 3144 }, {
1064 3145 key: "getCommand",
1065 3146 value: function getCommand() {
1066 3147 return this.registerConfig.command;
1067 3148 }
1068 -
1069 3149 /**
1070 3150 * @return {ComponentBase} Self component
1071 3151 */
3152 +
1072 3153 }, {
1073 3154 key: "getComponent",
1074 3155 value: function getComponent() {
1075 3156 return this.registerConfig.component;
@@ -1079,12 +3160,12 @@
1079 3160 value: function setRegisterConfig(config) {
1080 3161 this.registerConfig = Object.freeze(config);
1081 3162 }
1082 3163 }]);
3164 + return CommandInfra;
1083 3165 }(_argsObject.default);
1084 -/**
1085 - * @type {Object}
1086 - */
3166 +
3167 +exports["default"] = CommandInfra;
1087 3168 (0, _defineProperty2.default)(CommandInfra, "registerConfig", null);
1088 3169
1089 3170 /***/ }),
1090 3171
@@ -1097,46 +3178,70 @@
1097 3178 "use strict";
1098 3179
1099 3180
1100 3181 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3182 +
1101 3183 Object.defineProperty(exports, "__esModule", ({
1102 3184 value: true
1103 3185 }));
1104 3186 exports["default"] = void 0;
3187 +
1105 3188 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
3189 +
1106 3190 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
3191 +
1107 3192 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3193 +
1108 3194 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3195 +
3196 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3197 +
1109 3198 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3199 +
1110 3200 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1111 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3201 +
1112 3202 var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
1113 -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit");
3203 +
3204 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
3205 +
1114 3206 var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
3207 +
1115 3208 var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
3209 +
1116 3210 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
1117 -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1118 -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1119 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
1120 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
3211 +
3212 +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3213 +
3214 +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3215 +
3216 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
3217 +
3218 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3219 +
1121 3220 /**
1122 3221 * @typedef {import('./command-infra')} CommandInfra
1123 3222 * @typedef {import('./hook-base')} HookBase
1124 3223 * @typedef {import('../core/states/ui-state-base')} UiStateBase
1125 3224 */
1126 -var ComponentBase = exports["default"] = /*#__PURE__*/function (_Module) {
3225 +var ComponentBase = /*#__PURE__*/function (_Module) {
3226 + (0, _inherits2.default)(ComponentBase, _Module);
3227 +
3228 + var _super = _createSuper(ComponentBase);
3229 +
1127 3230 function ComponentBase() {
1128 3231 (0, _classCallCheck2.default)(this, ComponentBase);
1129 - return _callSuper(this, ComponentBase, arguments);
3232 + return _super.apply(this, arguments);
1130 3233 }
1131 - (0, _inherits2.default)(ComponentBase, _Module);
1132 - return (0, _createClass2.default)(ComponentBase, [{
3234 +
3235 + (0, _createClass2.default)(ComponentBase, [{
1133 3236 key: "__construct",
1134 3237 value: function __construct() {
1135 3238 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3239 +
1136 3240 if (args.manager) {
1137 3241 this.manager = args.manager;
1138 3242 }
3243 +
1139 3244 this.commands = this.defaultCommands();
1140 3245 this.commandsInternal = this.defaultCommandsInternal();
1141 3246 this.hooks = this.defaultHooks();
1142 3247 this.routes = this.defaultRoutes();
@@ -1152,27 +3257,31 @@
1152 3257 }, {
1153 3258 key: "registerAPI",
1154 3259 value: function registerAPI() {
1155 3260 var _this = this;
3261 +
1156 3262 Object.entries(this.getTabs()).forEach(function (tab) {
1157 3263 return _this.registerTabRoute(tab[0]);
1158 3264 });
1159 3265 Object.entries(this.getRoutes()).forEach(function (_ref) {
1160 3266 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
1161 - route = _ref2[0],
1162 - callback = _ref2[1];
3267 + route = _ref2[0],
3268 + callback = _ref2[1];
3269 +
1163 3270 return _this.registerRoute(route, callback);
1164 3271 });
1165 3272 Object.entries(this.getCommands()).forEach(function (_ref3) {
1166 3273 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
1167 - command = _ref4[0],
1168 - callback = _ref4[1];
3274 + command = _ref4[0],
3275 + callback = _ref4[1];
3276 +
1169 3277 return _this.registerCommand(command, callback);
1170 3278 });
1171 3279 Object.entries(this.getCommandsInternal()).forEach(function (_ref5) {
1172 3280 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
1173 - command = _ref6[0],
1174 - callback = _ref6[1];
3281 + command = _ref6[0],
3282 + callback = _ref6[1];
3283 +
1175 3284 return _this.registerCommandInternal(command, callback);
1176 3285 });
1177 3286 Object.values(this.getHooks()).forEach(function (instance) {
1178 3287 return _this.registerHook(instance);
@@ -1178,10 +3287,11 @@
1178 3287 return _this.registerHook(instance);
1179 3288 });
1180 3289 Object.entries(this.getData()).forEach(function (_ref7) {
1181 3290 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
1182 - command = _ref8[0],
1183 - callback = _ref8[1];
3291 + command = _ref8[0],
3292 + callback = _ref8[1];
3293 +
1184 3294 return _this.registerData(command, callback);
1185 3295 });
1186 3296 Object.values(this.getUiStates()).forEach(function (instance) {
1187 3297 return _this.registerUiState(instance);
@@ -1186,32 +3296,30 @@
1186 3296 Object.values(this.getUiStates()).forEach(function (instance) {
1187 3297 return _this.registerUiState(instance);
1188 3298 });
1189 3299 Object.entries(this.getStates()).forEach(function (_ref9) {
1190 - var _ref0 = (0, _slicedToArray2.default)(_ref9, 2),
1191 - id = _ref0[0],
1192 - state = _ref0[1];
3300 + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3301 + id = _ref10[0],
3302 + state = _ref10[1];
3303 +
1193 3304 return _this.registerState(id, state);
1194 3305 });
1195 - }
3306 + } // eslint-disable-next-line jsdoc/require-returns-check
1196 3307
1197 - // eslint-disable-next-line jsdoc/require-returns-check
1198 3308 /**
1199 3309 * @return {string} namespace
1200 3310 */
3311 +
1201 3312 }, {
1202 3313 key: "getNamespace",
1203 3314 value: function getNamespace() {
1204 3315 (0, _forceMethodImplementation.default)();
1205 3316 }
1206 -
1207 - /**
1208 - * @deprecated since 3.7.0, use `getServiceName()` instead.
1209 - */
1210 3317 }, {
1211 3318 key: "getRootContainer",
1212 3319 value: function getRootContainer() {
1213 3320 _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()');
3321 +
1214 3322 return this.getServiceName();
1215 3323 }
1216 3324 }, {
1217 3325 key: "getServiceName",
@@ -1247,25 +3355,25 @@
1247 3355 key: "defaultHooks",
1248 3356 value: function defaultHooks() {
1249 3357 return {};
1250 3358 }
1251 -
1252 3359 /**
1253 3360 * Get the component's default UI states.
1254 3361 *
1255 3362 * @return {Object} default UI states
1256 3363 */
3364 +
1257 3365 }, {
1258 3366 key: "defaultUiStates",
1259 3367 value: function defaultUiStates() {
1260 3368 return {};
1261 3369 }
1262 -
1263 3370 /**
1264 3371 * Get the component's Redux slice settings.
1265 3372 *
1266 3373 * @return {Object} Redux slice settings
1267 3374 */
3375 +
1268 3376 }, {
1269 3377 key: "defaultStates",
1270 3378 value: function defaultStates() {
1271 3379 return {};
@@ -1299,25 +3407,25 @@
1299 3407 key: "getHooks",
1300 3408 value: function getHooks() {
1301 3409 return this.hooks;
1302 3410 }
1303 -
1304 3411 /**
1305 3412 * Retrieve the component's UI states.
1306 3413 *
1307 3414 * @return {Object} UI states
1308 3415 */
3416 +
1309 3417 }, {
1310 3418 key: "getUiStates",
1311 3419 value: function getUiStates() {
1312 3420 return this.uiStates;
1313 3421 }
1314 -
1315 3422 /**
1316 3423 * Retrieve the component's Redux Slice.
1317 3424 *
1318 3425 * @return {Object} Redux Slice
1319 3426 */
3427 +
1320 3428 }, {
1321 3429 key: "getStates",
1322 3430 value: function getStates() {
1323 3431 return this.states;
@@ -1341,63 +3449,72 @@
1341 3449 key: "getData",
1342 3450 value: function getData() {
1343 3451 return this.data;
1344 3452 }
1345 -
1346 3453 /**
1347 3454 * @param {string} command
1348 3455 * @param {(()=>{}|CommandInfra)} context
1349 3456 * @param {'default'|'internal'|'data'} commandsType
1350 3457 */
3458 +
1351 3459 }, {
1352 3460 key: "registerCommand",
1353 3461 value: function registerCommand(command, context) {
1354 3462 var commandsType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default';
1355 3463 var commandsManager;
3464 +
1356 3465 switch (commandsType) {
1357 3466 case 'default':
1358 3467 commandsManager = $e.commands;
1359 3468 break;
3469 +
1360 3470 case 'internal':
1361 3471 commandsManager = $e.commandsInternal;
1362 3472 break;
3473 +
1363 3474 case 'data':
1364 3475 commandsManager = $e.data;
1365 3476 break;
3477 +
1366 3478 default:
1367 3479 throw new Error("Invalid commands type: '".concat(command, "'"));
1368 3480 }
3481 +
1369 3482 var fullCommand = this.getNamespace() + '/' + command,
1370 - instanceType = context.getInstanceType ? context.getInstanceType() : false,
1371 - registerConfig = {
1372 - command: fullCommand,
1373 - component: this
1374 - };
3483 + instanceType = context.getInstanceType ? context.getInstanceType() : false,
3484 + registerConfig = {
3485 + command: fullCommand,
3486 + component: this
3487 + }; // Support pure callback.
1375 3488
1376 - // Support pure callback.
1377 3489 if (!instanceType) {
1378 3490 if ($e.devTools) {
1379 3491 $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
1380 3492 }
1381 - registerConfig.callback = context;
1382 3493
1383 - // Unique class.
3494 + registerConfig.callback = context; // Unique class.
3495 +
1384 3496 context = /*#__PURE__*/function (_CommandCallbackBase) {
3497 + (0, _inherits2.default)(context, _CommandCallbackBase);
3498 +
3499 + var _super2 = _createSuper(context);
3500 +
1385 3501 function context() {
1386 3502 (0, _classCallCheck2.default)(this, context);
1387 - return _callSuper(this, context, arguments);
3503 + return _super2.apply(this, arguments);
1388 3504 }
1389 - (0, _inherits2.default)(context, _CommandCallbackBase);
3505 +
1390 3506 return (0, _createClass2.default)(context);
1391 3507 }(_commandCallbackBase.default);
1392 3508 }
3509 +
1393 3510 context.setRegisterConfig(registerConfig);
1394 3511 commandsManager.register(this, command, context);
1395 3512 }
1396 -
1397 3513 /**
1398 3514 * @param {HookBase} instance
1399 3515 */
3516 +
1400 3517 }, {
1401 3518 key: "registerHook",
1402 3519 value: function registerHook(instance) {
1403 3520 return instance.register();
@@ -1406,9 +3523,8 @@
1406 3523 key: "registerCommandInternal",
1407 3524 value: function registerCommandInternal(command, context) {
1408 3525 this.registerCommand(command, context, 'internal');
1409 3526 }
1410 -
1411 3527 /**
1412 3528 * Register a UI state.
1413 3529 *
1414 3530 * @param {UiStateBase} instance - UI state instance.
@@ -1414,14 +3530,14 @@
1414 3530 * @param {UiStateBase} instance - UI state instance.
1415 3531 *
1416 3532 * @return {void}
1417 3533 */
3534 +
1418 3535 }, {
1419 3536 key: "registerUiState",
1420 3537 value: function registerUiState(instance) {
1421 3538 $e.uiStates.register(instance);
1422 3539 }
1423 -
1424 3540 /**
1425 3541 * Register a Redux Slice.
1426 3542 *
1427 3543 * @param {string} id - State id.
@@ -1428,8 +3544,9 @@
1428 3544 * @param {Object} stateConfig - The state config.
1429 3545 *
1430 3546 * @return {void}
1431 3547 */
3548 +
1432 3549 }, {
1433 3550 key: "registerState",
1434 3551 value: function registerState(id, stateConfig) {
1435 3552 id = this.getNamespace() + (id ? "/".concat(id) : '');
@@ -1456,8 +3573,9 @@
1456 3573 }, {
1457 3574 key: "registerTabRoute",
1458 3575 value: function registerTabRoute(tab) {
1459 3576 var _this2 = this;
3577 +
1460 3578 this.registerRoute(tab, function (args) {
1461 3579 return _this2.activateTab(tab, args);
1462 3580 });
1463 3581 }
@@ -1476,8 +3594,9 @@
1476 3594 value: function close() {
1477 3595 if (!this.isOpen) {
1478 3596 return false;
1479 3597 }
3598 +
1480 3599 this.isOpen = false;
1481 3600 this.inactivate();
1482 3601 $e.routes.clearCurrent(this.getNamespace());
1483 3602 $e.routes.clearHistory(this.getServiceName());
@@ -1537,17 +3656,17 @@
1537 3656 }, {
1538 3657 key: "addTab",
1539 3658 value: function addTab(tab, args, position) {
1540 3659 var _this3 = this;
1541 - this.tabs[tab] = args;
1542 - // It can be 0.
3660 +
3661 + this.tabs[tab] = args; // It can be 0.
3662 +
1543 3663 if ('undefined' !== typeof position) {
1544 3664 var newTabs = {};
1545 - var ids = Object.keys(this.tabs);
1546 - // Remove new tab
1547 - ids.pop();
3665 + var ids = Object.keys(this.tabs); // Remove new tab
1548 3666
1549 - // Add it to position.
3667 + ids.pop(); // Add it to position.
3668 +
1550 3669 ids.splice(position, 0, tab);
1551 3670 ids.forEach(function (id) {
1552 3671 newTabs[id] = _this3.tabs[id];
1553 3672 });
@@ -1552,8 +3671,9 @@
1552 3671 newTabs[id] = _this3.tabs[id];
1553 3672 });
1554 3673 this.tabs = newTabs;
1555 3674 }
3675 +
1556 3676 this.registerTabRoute(tab);
1557 3677 }
1558 3678 }, {
1559 3679 key: "getTabsWrapperSelector",
@@ -1567,12 +3687,15 @@
1567 3687 }
1568 3688 }, {
1569 3689 key: "renderTab",
1570 3690 value: function renderTab(tab) {} // eslint-disable-line
3691 +
1571 3692 }, {
1572 3693 key: "activateTab",
1573 3694 value: function activateTab(tab, args) {
1574 3695 var _this4 = this;
3696 +
3697 + this.currentTab = tab;
1575 3698 this.renderTab(tab, args);
1576 3699 jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
1577 3700 $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
1578 3701 }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
@@ -1586,9 +3709,8 @@
1586 3709 key: "getBodyClass",
1587 3710 value: function getBodyClass(route) {
1588 3711 return 'e-route-' + route.replace(/\//g, '-');
1589 3712 }
1590 -
1591 3713 /**
1592 3714 * If command includes uppercase character convert it to lowercase and add `-`.
1593 3715 * e.g: `CopyAll` is converted to `copy-all`.
1594 3716 *
@@ -1593,8 +3715,9 @@
1593 3715 * e.g: `CopyAll` is converted to `copy-all`.
1594 3716 *
1595 3717 * @param {string} commandName
1596 3718 */
3719 +
1597 3720 }, {
1598 3721 key: "normalizeCommandName",
1599 3722 value: function normalizeCommandName(commandName) {
1600 3723 return commandName.replace(/[A-Z]/g, function (match, offset) {
@@ -1600,25 +3723,27 @@
1600 3723 return commandName.replace(/[A-Z]/g, function (match, offset) {
1601 3724 return (offset > 0 ? '-' : '') + match.toLowerCase();
1602 3725 });
1603 3726 }
1604 -
1605 3727 /**
1606 3728 * @param {{}} commandsFromImport
1607 3729 * @return {{}} imported commands
1608 3730 */
3731 +
1609 3732 }, {
1610 3733 key: "importCommands",
1611 3734 value: function importCommands(commandsFromImport) {
1612 3735 var _this5 = this;
1613 - var commands = {};
1614 3736
1615 - // Convert `Commands` to `ComponentBase` workable format.
1616 - Object.entries(commandsFromImport).forEach(function (_ref1) {
1617 - var _ref10 = (0, _slicedToArray2.default)(_ref1, 2),
1618 - className = _ref10[0],
1619 - Class = _ref10[1];
3737 + var commands = {}; // Convert `Commands` to `ComponentBase` workable format.
3738 +
3739 + Object.entries(commandsFromImport).forEach(function (_ref11) {
3740 + var _ref12 = (0, _slicedToArray2.default)(_ref11, 2),
3741 + className = _ref12[0],
3742 + Class = _ref12[1];
3743 +
1620 3744 var command = _this5.normalizeCommandName(className);
3745 +
1621 3746 commands[command] = Class;
1622 3747 });
1623 3748 return commands;
1624 3749 }
@@ -1625,15 +3750,16 @@
1625 3750 }, {
1626 3751 key: "importHooks",
1627 3752 value: function importHooks(hooksFromImport) {
1628 3753 var hooks = {};
3754 +
1629 3755 for (var key in hooksFromImport) {
1630 3756 var hook = new hooksFromImport[key]();
1631 3757 hooks[hook.getId()] = hook;
1632 3758 }
3759 +
1633 3760 return hooks;
1634 3761 }
1635 -
1636 3762 /**
1637 3763 * Import & initialize the component's UI states.
1638 3764 * Should be used inside `defaultUiState()`.
1639 3765 *
@@ -1640,12 +3766,14 @@
1640 3766 * @param {Object} statesFromImport - UI states from import.
1641 3767 *
1642 3768 * @return {Object} UI States
1643 3769 */
3770 +
1644 3771 }, {
1645 3772 key: "importUiStates",
1646 3773 value: function importUiStates(statesFromImport) {
1647 3774 var _this6 = this;
3775 +
1648 3776 var uiStates = {};
1649 3777 Object.values(statesFromImport).forEach(function (className) {
1650 3778 var uiState = new className(_this6);
1651 3779 uiStates[uiState.getId()] = uiState;
@@ -1651,9 +3779,8 @@
1651 3779 uiStates[uiState.getId()] = uiState;
1652 3780 });
1653 3781 return uiStates;
1654 3782 }
1655 -
1656 3783 /**
1657 3784 * Set a UI state value.
1658 3785 * TODO: Should we provide such function? Maybe the developer should implicitly pass the full state ID?
1659 3786 *
@@ -1661,8 +3788,9 @@
1661 3788 * @param {*} value - New state value.
1662 3789 *
1663 3790 * @return {void}
1664 3791 */
3792 +
1665 3793 }, {
1666 3794 key: "setUiState",
1667 3795 value: function setUiState(state, value) {
1668 3796 $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
@@ -1677,10 +3805,13 @@
1677 3805 value: function toggleHistoryClass() {
1678 3806 document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length);
1679 3807 }
1680 3808 }]);
3809 + return ComponentBase;
1681 3810 }(_module.default);
1682 3811
3812 +exports["default"] = ComponentBase;
3813 +
1683 3814 /***/ }),
1684 3815
1685 3816 /***/ "../modules/web-cli/assets/js/utils/console.js":
1686 3817 /*!*****************************************************!*\
@@ -1691,27 +3822,32 @@
1691 3822 "use strict";
1692 3823
1693 3824
1694 3825 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3826 +
1695 3827 Object.defineProperty(exports, "__esModule", ({
1696 3828 value: true
1697 3829 }));
1698 3830 exports["default"] = void 0;
3831 +
1699 3832 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3833 +
1700 3834 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1701 -var Console = exports["default"] = /*#__PURE__*/function () {
3835 +
3836 +var Console = /*#__PURE__*/function () {
1702 3837 function Console() {
1703 3838 (0, _classCallCheck2.default)(this, Console);
1704 3839 }
1705 - return (0, _createClass2.default)(Console, null, [{
3840 +
3841 + (0, _createClass2.default)(Console, null, [{
1706 3842 key: "error",
1707 3843 value: function error(message) {
1708 3844 // Show an error if devTools is available.
1709 3845 if ($e.devTools) {
1710 3846 $e.devTools.log.error(message);
1711 - }
3847 + } // If not a 'Hook-Break' then show error.
1712 3848
1713 - // If not a 'Hook-Break' then show error.
3849 +
1714 3850 if (!(message instanceof $e.modules.HookBreak)) {
1715 3851 // eslint-disable-next-line no-console
1716 3852 console.error(message);
1717 3853 }
@@ -1719,18 +3855,26 @@
1719 3855 }, {
1720 3856 key: "warn",
1721 3857 value: function warn() {
1722 3858 var _console;
3859 +
1723 3860 var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
3861 +
1724 3862 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1725 3863 args[_key] = arguments[_key];
1726 3864 }
3865 +
1727 3866 args.unshift('%c %c', style, '');
3867 +
1728 3868 (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
3869 +
1729 3870 }
1730 3871 }]);
3872 + return Console;
1731 3873 }();
1732 3874
3875 +exports["default"] = Console;
3876 +
1733 3877 /***/ }),
1734 3878
1735 3879 /***/ "../modules/web-cli/assets/js/utils/deprecation.js":
1736 3880 /*!*********************************************************!*\
@@ -1741,17 +3885,24 @@
1741 3885 "use strict";
1742 3886
1743 3887
1744 3888 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3889 +
1745 3890 Object.defineProperty(exports, "__esModule", ({
1746 3891 value: true
1747 3892 }));
1748 3893 exports["default"] = void 0;
3894 +
1749 3895 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
3896 +
1750 3897 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3898 +
1751 3899 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3900 +
1752 3901 var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js"));
3902 +
1753 3903 // Copied from `modules/dev-tools/assets/js/deprecation.js`
3904 +
1754 3905 /**
1755 3906 * @typedef {Object} Version
1756 3907 * @property {number} major1 The first number
1757 3908 * @property {number} major2 The second number
@@ -1757,29 +3908,34 @@
1757 3908 * @property {number} major2 The second number
1758 3909 * @property {number} minor The third number
1759 3910 * @property {string} build The fourth number
1760 3911 */
1761 -
1762 3912 var softDeprecated = function softDeprecated(name, version, replacement) {
1763 3913 if (elementorWebCliConfig.isDebug) {
1764 3914 deprecatedMessage('soft', name, version, replacement);
1765 3915 }
1766 3916 };
3917 +
1767 3918 var hardDeprecated = function hardDeprecated(name, version, replacement) {
1768 3919 deprecatedMessage('hard', name, version, replacement);
1769 3920 };
3921 +
1770 3922 var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
1771 3923 var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
3924 +
1772 3925 if (replacement) {
1773 3926 message += " - Use `".concat(replacement, "` instead");
1774 3927 }
3928 +
1775 3929 _console.default.warn(message);
1776 3930 };
1777 -var Deprecation = exports["default"] = /*#__PURE__*/function () {
3931 +
3932 +var Deprecation = /*#__PURE__*/function () {
1778 3933 function Deprecation() {
1779 3934 (0, _classCallCheck2.default)(this, Deprecation);
1780 3935 }
1781 - return (0, _createClass2.default)(Deprecation, null, [{
3936 +
3937 + (0, _createClass2.default)(Deprecation, null, [{
1782 3938 key: "deprecated",
1783 3939 value: function deprecated(name, version, replacement) {
1784 3940 if (this.isHardDeprecated(version)) {
1785 3941 hardDeprecated(name, version, replacement);
@@ -1786,27 +3942,30 @@
1786 3942 } else {
1787 3943 softDeprecated(name, version, replacement);
1788 3944 }
1789 3945 }
1790 -
1791 3946 /**
1792 3947 * @param {string} version
1793 3948 *
1794 3949 * @return {Version}
1795 3950 */
3951 +
1796 3952 }, {
1797 3953 key: "parseVersion",
1798 3954 value: function parseVersion(version) {
1799 3955 var versionParts = version.split('.');
3956 +
1800 3957 if (versionParts.length < 3 || versionParts.length > 4) {
1801 3958 throw new RangeError('Invalid Semantic Version string provided');
1802 3959 }
3960 +
1803 3961 var _versionParts = (0, _slicedToArray2.default)(versionParts, 4),
1804 - major1 = _versionParts[0],
1805 - major2 = _versionParts[1],
1806 - minor = _versionParts[2],
1807 - _versionParts$ = _versionParts[3],
1808 - build = _versionParts$ === void 0 ? '' : _versionParts$;
3962 + major1 = _versionParts[0],
3963 + major2 = _versionParts[1],
3964 + minor = _versionParts[2],
3965 + _versionParts$ = _versionParts[3],
3966 + build = _versionParts$ === void 0 ? '' : _versionParts$;
3967 +
1809 3968 return {
1810 3969 major1: parseInt(major1),
1811 3970 major2: parseInt(major2),
1812 3971 minor: parseInt(minor),
@@ -1812,9 +3971,8 @@
1812 3971 minor: parseInt(minor),
1813 3972 build: build
1814 3973 };
1815 3974 }
1816 -
1817 3975 /**
1818 3976 * Get total of major.
1819 3977 *
1820 3978 * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example,
@@ -1823,19 +3981,21 @@
1823 3981 * @param {Version} versionObj
1824 3982 *
1825 3983 * @return {number}
1826 3984 */
3985 +
1827 3986 }, {
1828 3987 key: "getTotalMajor",
1829 3988 value: function getTotalMajor(versionObj) {
1830 3989 var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
1831 3990 total = Number((total / 10).toFixed(0));
3991 +
1832 3992 if (versionObj.major2 > 9) {
1833 3993 total = versionObj.major2 - 9;
1834 3994 }
3995 +
1835 3996 return total;
1836 3997 }
1837 -
1838 3998 /**
1839 3999 * @param {string} version1
1840 4000 * @param {string} version2
1841 4001 *
@@ -1840,12 +4000,14 @@
1840 4000 * @param {string} version2
1841 4001 *
1842 4002 * @return {number}
1843 4003 */
4004 +
1844 4005 }, {
1845 4006 key: "compareVersion",
1846 4007 value: function compareVersion(version1, version2) {
1847 4008 var _this = this;
4009 +
1848 4010 return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) {
1849 4011 return _this.getTotalMajor(versionObj);
1850 4012 }).reduce(function (acc, major) {
1851 4013 return acc - major;
@@ -1850,14 +4012,14 @@
1850 4012 }).reduce(function (acc, major) {
1851 4013 return acc - major;
1852 4014 });
1853 4015 }
1854 -
1855 4016 /**
1856 4017 * @param {string} version
1857 4018 *
1858 4019 * @return {boolean}
1859 4020 */
4021 +
1860 4022 }, {
1861 4023 key: "isSoftDeprecated",
1862 4024 value: function isSoftDeprecated(version) {
1863 4025 var total = this.compareVersion(version, elementorWebCliConfig.version);
@@ -1862,13 +4024,13 @@
1862 4024 value: function isSoftDeprecated(version) {
1863 4025 var total = this.compareVersion(version, elementorWebCliConfig.version);
1864 4026 return total <= 4;
1865 4027 }
1866 -
1867 4028 /**
1868 4029 * @param {string} version
1869 4030 * @return {boolean}
1870 4031 */
4032 +
1871 4033 }, {
1872 4034 key: "isHardDeprecated",
1873 4035 value: function isHardDeprecated(version) {
1874 4036 var total = this.compareVersion(version, elementorWebCliConfig.version);
@@ -1874,10 +4036,13 @@
1874 4036 var total = this.compareVersion(version, elementorWebCliConfig.version);
1875 4037 return total < 0 || total >= 8;
1876 4038 }
1877 4039 }]);
4040 + return Deprecation;
1878 4041 }();
1879 4042
4043 +exports["default"] = Deprecation;
4044 +
1880 4045 /***/ }),
1881 4046
1882 4047 /***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js":
1883 4048 /*!*************************************************************************!*\
@@ -1888,40 +4053,61 @@
1888 4053 "use strict";
1889 4054
1890 4055
1891 4056 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4057 +
1892 4058 Object.defineProperty(exports, "__esModule", ({
1893 4059 value: true
1894 4060 }));
1895 4061 exports["default"] = exports.ForceMethodImplementation = void 0;
4062 +
1896 4063 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4064 +
1897 4065 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4066 +
4067 +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
4068 +
4069 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
4070 +
1898 4071 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
4072 +
1899 4073 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1900 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
4074 +
1901 4075 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
1902 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
1903 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
4076 +
4077 +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
4078 +
4079 +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
4080 +
1904 4081 // TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`;
1905 -var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) {
4082 +var ForceMethodImplementation = /*#__PURE__*/function (_Error) {
4083 + (0, _inherits2.default)(ForceMethodImplementation, _Error);
4084 +
4085 + var _super = _createSuper(ForceMethodImplementation);
4086 +
1906 4087 function ForceMethodImplementation() {
1907 4088 var _this;
4089 +
1908 4090 var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1909 4091 (0, _classCallCheck2.default)(this, ForceMethodImplementation);
1910 - _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]);
1911 - Error.captureStackTrace(_this, ForceMethodImplementation);
4092 + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."));
4093 + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation);
1912 4094 return _this;
1913 4095 }
1914 - (0, _inherits2.default)(ForceMethodImplementation, _Error);
4096 +
1915 4097 return (0, _createClass2.default)(ForceMethodImplementation);
1916 -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
1917 -var _default = exports["default"] = function _default() {
4098 +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
4099 +
4100 +exports.ForceMethodImplementation = ForceMethodImplementation;
4101 +
4102 +var _default = function _default() {
1918 4103 var stack = Error().stack,
1919 - caller = stack.split('\n')[2].trim(),
1920 - callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1],
1921 - info = {};
4104 + caller = stack.split('\n')[2].trim(),
4105 + callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1],
4106 + info = {};
1922 4107 info.functionName = callerName;
1923 4108 info.fullName = callerName;
4109 +
1924 4110 if (info.functionName.includes('.')) {
1925 4111 var parts = info.functionName.split('.');
1926 4112 info.className = parts[0];
1927 4113 info.functionName = parts[1];
@@ -1927,13 +4113,1112 @@
1927 4113 info.functionName = parts[1];
1928 4114 } else {
1929 4115 info.isStatic = true;
1930 4116 }
4117 +
1931 4118 throw new ForceMethodImplementation(info);
1932 4119 };
1933 4120
4121 +exports["default"] = _default;
4122 +
1934 4123 /***/ }),
1935 4124
4125 +/***/ "../node_modules/redux-thunk/es/index.js":
4126 +/*!***********************************************!*\
4127 + !*** ../node_modules/redux-thunk/es/index.js ***!
4128 + \***********************************************/
4129 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4130 +
4131 +"use strict";
4132 +__webpack_require__.r(__webpack_exports__);
4133 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4134 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4135 +/* harmony export */ });
4136 +/** A function that accepts a potential "extra argument" value to be injected later,
4137 + * and returns an instance of the thunk middleware that uses that value
4138 + */
4139 +function createThunkMiddleware(extraArgument) {
4140 + // Standard Redux middleware definition pattern:
4141 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4142 + var middleware = function middleware(_ref) {
4143 + var dispatch = _ref.dispatch,
4144 + getState = _ref.getState;
4145 + return function (next) {
4146 + return function (action) {
4147 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4148 + // If this "action" is really a function, call it and return the result.
4149 + if (typeof action === 'function') {
4150 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4151 + return action(dispatch, getState, extraArgument);
4152 + } // Otherwise, pass the action down the middleware chain as usual
4153 +
4154 +
4155 + return next(action);
4156 + };
4157 + };
4158 + };
4159 +
4160 + return middleware;
4161 +}
4162 +
4163 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4164 +// with whatever "extra arg" they want to inject into their thunks
4165 +
4166 +thunk.withExtraArgument = createThunkMiddleware;
4167 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
4168 +
4169 +/***/ }),
4170 +
4171 +/***/ "../node_modules/redux/es/redux.js":
4172 +/*!*****************************************!*\
4173 + !*** ../node_modules/redux/es/redux.js ***!
4174 + \*****************************************/
4175 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4176 +
4177 +"use strict";
4178 +__webpack_require__.r(__webpack_exports__);
4179 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4180 +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes),
4181 +/* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware),
4182 +/* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators),
4183 +/* harmony export */ "combineReducers": () => (/* binding */ combineReducers),
4184 +/* harmony export */ "compose": () => (/* binding */ compose),
4185 +/* harmony export */ "createStore": () => (/* binding */ createStore),
4186 +/* harmony export */ "legacy_createStore": () => (/* binding */ legacy_createStore)
4187 +/* harmony export */ });
4188 +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
4189 +
4190 +
4191 +/**
4192 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
4193 + *
4194 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
4195 + * during build.
4196 + * @param {number} code
4197 + */
4198 +function formatProdErrorMessage(code) {
4199 + 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. ';
4200 +}
4201 +
4202 +// Inlined version of the `symbol-observable` polyfill
4203 +var $$observable = (function () {
4204 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
4205 +})();
4206 +
4207 +/**
4208 + * These are private action types reserved by Redux.
4209 + * For any unknown actions, you must return the current state.
4210 + * If the current state is undefined, you must return the initial state.
4211 + * Do not reference these action types directly in your code.
4212 + */
4213 +var randomString = function randomString() {
4214 + return Math.random().toString(36).substring(7).split('').join('.');
4215 +};
4216 +
4217 +var ActionTypes = {
4218 + INIT: "@@redux/INIT" + randomString(),
4219 + REPLACE: "@@redux/REPLACE" + randomString(),
4220 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
4221 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
4222 + }
4223 +};
4224 +
4225 +/**
4226 + * @param {any} obj The object to inspect.
4227 + * @returns {boolean} True if the argument appears to be a plain object.
4228 + */
4229 +function isPlainObject(obj) {
4230 + if (typeof obj !== 'object' || obj === null) return false;
4231 + var proto = obj;
4232 +
4233 + while (Object.getPrototypeOf(proto) !== null) {
4234 + proto = Object.getPrototypeOf(proto);
4235 + }
4236 +
4237 + return Object.getPrototypeOf(obj) === proto;
4238 +}
4239 +
4240 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
4241 +function miniKindOf(val) {
4242 + if (val === void 0) return 'undefined';
4243 + if (val === null) return 'null';
4244 + var type = typeof val;
4245 +
4246 + switch (type) {
4247 + case 'boolean':
4248 + case 'string':
4249 + case 'number':
4250 + case 'symbol':
4251 + case 'function':
4252 + {
4253 + return type;
4254 + }
4255 + }
4256 +
4257 + if (Array.isArray(val)) return 'array';
4258 + if (isDate(val)) return 'date';
4259 + if (isError(val)) return 'error';
4260 + var constructorName = ctorName(val);
4261 +
4262 + switch (constructorName) {
4263 + case 'Symbol':
4264 + case 'Promise':
4265 + case 'WeakMap':
4266 + case 'WeakSet':
4267 + case 'Map':
4268 + case 'Set':
4269 + return constructorName;
4270 + } // other
4271 +
4272 +
4273 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
4274 +}
4275 +
4276 +function ctorName(val) {
4277 + return typeof val.constructor === 'function' ? val.constructor.name : null;
4278 +}
4279 +
4280 +function isError(val) {
4281 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
4282 +}
4283 +
4284 +function isDate(val) {
4285 + if (val instanceof Date) return true;
4286 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
4287 +}
4288 +
4289 +function kindOf(val) {
4290 + var typeOfVal = typeof val;
4291 +
4292 + if (true) {
4293 + typeOfVal = miniKindOf(val);
4294 + }
4295 +
4296 + return typeOfVal;
4297 +}
4298 +
4299 +/**
4300 + * @deprecated
4301 + *
4302 + * **We recommend using the `configureStore` method
4303 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
4304 + *
4305 + * Redux Toolkit is our recommended approach for writing Redux logic today,
4306 + * including store setup, reducers, data fetching, and more.
4307 + *
4308 + * **For more details, please read this Redux docs page:**
4309 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4310 + *
4311 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
4312 + * simplifies setup and helps avoid common bugs.
4313 + *
4314 + * You should not be using the `redux` core package by itself today, except for learning purposes.
4315 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
4316 + * all users to migrate to using Redux Toolkit for all Redux code.
4317 + *
4318 + * If you want to use `createStore` without this visual deprecation warning, use
4319 + * the `legacy_createStore` import instead:
4320 + *
4321 + * `import { legacy_createStore as createStore} from 'redux'`
4322 + *
4323 + */
4324 +
4325 +function createStore(reducer, preloadedState, enhancer) {
4326 + var _ref2;
4327 +
4328 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
4329 + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
4330 + }
4331 +
4332 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
4333 + enhancer = preloadedState;
4334 + preloadedState = undefined;
4335 + }
4336 +
4337 + if (typeof enhancer !== 'undefined') {
4338 + if (typeof enhancer !== 'function') {
4339 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
4340 + }
4341 +
4342 + return enhancer(createStore)(reducer, preloadedState);
4343 + }
4344 +
4345 + if (typeof reducer !== 'function') {
4346 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
4347 + }
4348 +
4349 + var currentReducer = reducer;
4350 + var currentState = preloadedState;
4351 + var currentListeners = [];
4352 + var nextListeners = currentListeners;
4353 + var isDispatching = false;
4354 + /**
4355 + * This makes a shallow copy of currentListeners so we can use
4356 + * nextListeners as a temporary list while dispatching.
4357 + *
4358 + * This prevents any bugs around consumers calling
4359 + * subscribe/unsubscribe in the middle of a dispatch.
4360 + */
4361 +
4362 + function ensureCanMutateNextListeners() {
4363 + if (nextListeners === currentListeners) {
4364 + nextListeners = currentListeners.slice();
4365 + }
4366 + }
4367 + /**
4368 + * Reads the state tree managed by the store.
4369 + *
4370 + * @returns {any} The current state tree of your application.
4371 + */
4372 +
4373 +
4374 + function getState() {
4375 + if (isDispatching) {
4376 + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
4377 + }
4378 +
4379 + return currentState;
4380 + }
4381 + /**
4382 + * Adds a change listener. It will be called any time an action is dispatched,
4383 + * and some part of the state tree may potentially have changed. You may then
4384 + * call `getState()` to read the current state tree inside the callback.
4385 + *
4386 + * You may call `dispatch()` from a change listener, with the following
4387 + * caveats:
4388 + *
4389 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
4390 + * If you subscribe or unsubscribe while the listeners are being invoked, this
4391 + * will not have any effect on the `dispatch()` that is currently in progress.
4392 + * However, the next `dispatch()` call, whether nested or not, will use a more
4393 + * recent snapshot of the subscription list.
4394 + *
4395 + * 2. The listener should not expect to see all state changes, as the state
4396 + * might have been updated multiple times during a nested `dispatch()` before
4397 + * the listener is called. It is, however, guaranteed that all subscribers
4398 + * registered before the `dispatch()` started will be called with the latest
4399 + * state by the time it exits.
4400 + *
4401 + * @param {Function} listener A callback to be invoked on every dispatch.
4402 + * @returns {Function} A function to remove this change listener.
4403 + */
4404 +
4405 +
4406 + function subscribe(listener) {
4407 + if (typeof listener !== 'function') {
4408 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
4409 + }
4410 +
4411 + if (isDispatching) {
4412 + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
4413 + }
4414 +
4415 + var isSubscribed = true;
4416 + ensureCanMutateNextListeners();
4417 + nextListeners.push(listener);
4418 + return function unsubscribe() {
4419 + if (!isSubscribed) {
4420 + return;
4421 + }
4422 +
4423 + if (isDispatching) {
4424 + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
4425 + }
4426 +
4427 + isSubscribed = false;
4428 + ensureCanMutateNextListeners();
4429 + var index = nextListeners.indexOf(listener);
4430 + nextListeners.splice(index, 1);
4431 + currentListeners = null;
4432 + };
4433 + }
4434 + /**
4435 + * Dispatches an action. It is the only way to trigger a state change.
4436 + *
4437 + * The `reducer` function, used to create the store, will be called with the
4438 + * current state tree and the given `action`. Its return value will
4439 + * be considered the **next** state of the tree, and the change listeners
4440 + * will be notified.
4441 + *
4442 + * The base implementation only supports plain object actions. If you want to
4443 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
4444 + * wrap your store creating function into the corresponding middleware. For
4445 + * example, see the documentation for the `redux-thunk` package. Even the
4446 + * middleware will eventually dispatch plain object actions using this method.
4447 + *
4448 + * @param {Object} action A plain object representing “what changed”. It is
4449 + * a good idea to keep actions serializable so you can record and replay user
4450 + * sessions, or use the time travelling `redux-devtools`. An action must have
4451 + * a `type` property which may not be `undefined`. It is a good idea to use
4452 + * string constants for action types.
4453 + *
4454 + * @returns {Object} For convenience, the same action object you dispatched.
4455 + *
4456 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
4457 + * return something else (for example, a Promise you can await).
4458 + */
4459 +
4460 +
4461 + function dispatch(action) {
4462 + if (!isPlainObject(action)) {
4463 + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
4464 + }
4465 +
4466 + if (typeof action.type === 'undefined') {
4467 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
4468 + }
4469 +
4470 + if (isDispatching) {
4471 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
4472 + }
4473 +
4474 + try {
4475 + isDispatching = true;
4476 + currentState = currentReducer(currentState, action);
4477 + } finally {
4478 + isDispatching = false;
4479 + }
4480 +
4481 + var listeners = currentListeners = nextListeners;
4482 +
4483 + for (var i = 0; i < listeners.length; i++) {
4484 + var listener = listeners[i];
4485 + listener();
4486 + }
4487 +
4488 + return action;
4489 + }
4490 + /**
4491 + * Replaces the reducer currently used by the store to calculate the state.
4492 + *
4493 + * You might need this if your app implements code splitting and you want to
4494 + * load some of the reducers dynamically. You might also need this if you
4495 + * implement a hot reloading mechanism for Redux.
4496 + *
4497 + * @param {Function} nextReducer The reducer for the store to use instead.
4498 + * @returns {void}
4499 + */
4500 +
4501 +
4502 + function replaceReducer(nextReducer) {
4503 + if (typeof nextReducer !== 'function') {
4504 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
4505 + }
4506 +
4507 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
4508 + // Any reducers that existed in both the new and old rootReducer
4509 + // will receive the previous state. This effectively populates
4510 + // the new state tree with any relevant data from the old one.
4511 +
4512 + dispatch({
4513 + type: ActionTypes.REPLACE
4514 + });
4515 + }
4516 + /**
4517 + * Interoperability point for observable/reactive libraries.
4518 + * @returns {observable} A minimal observable of state changes.
4519 + * For more information, see the observable proposal:
4520 + * https://github.com/tc39/proposal-observable
4521 + */
4522 +
4523 +
4524 + function observable() {
4525 + var _ref;
4526 +
4527 + var outerSubscribe = subscribe;
4528 + return _ref = {
4529 + /**
4530 + * The minimal observable subscription method.
4531 + * @param {Object} observer Any object that can be used as an observer.
4532 + * The observer object should have a `next` method.
4533 + * @returns {subscription} An object with an `unsubscribe` method that can
4534 + * be used to unsubscribe the observable from the store, and prevent further
4535 + * emission of values from the observable.
4536 + */
4537 + subscribe: function subscribe(observer) {
4538 + if (typeof observer !== 'object' || observer === null) {
4539 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
4540 + }
4541 +
4542 + function observeState() {
4543 + if (observer.next) {
4544 + observer.next(getState());
4545 + }
4546 + }
4547 +
4548 + observeState();
4549 + var unsubscribe = outerSubscribe(observeState);
4550 + return {
4551 + unsubscribe: unsubscribe
4552 + };
4553 + }
4554 + }, _ref[$$observable] = function () {
4555 + return this;
4556 + }, _ref;
4557 + } // When a store is created, an "INIT" action is dispatched so that every
4558 + // reducer returns their initial state. This effectively populates
4559 + // the initial state tree.
4560 +
4561 +
4562 + dispatch({
4563 + type: ActionTypes.INIT
4564 + });
4565 + return _ref2 = {
4566 + dispatch: dispatch,
4567 + subscribe: subscribe,
4568 + getState: getState,
4569 + replaceReducer: replaceReducer
4570 + }, _ref2[$$observable] = observable, _ref2;
4571 +}
4572 +/**
4573 + * Creates a Redux store that holds the state tree.
4574 + *
4575 + * **We recommend using `configureStore` from the
4576 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
4577 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4578 + *
4579 + * The only way to change the data in the store is to call `dispatch()` on it.
4580 + *
4581 + * There should only be a single store in your app. To specify how different
4582 + * parts of the state tree respond to actions, you may combine several reducers
4583 + * into a single reducer function by using `combineReducers`.
4584 + *
4585 + * @param {Function} reducer A function that returns the next state tree, given
4586 + * the current state tree and the action to handle.
4587 + *
4588 + * @param {any} [preloadedState] The initial state. You may optionally specify it
4589 + * to hydrate the state from the server in universal apps, or to restore a
4590 + * previously serialized user session.
4591 + * If you use `combineReducers` to produce the root reducer function, this must be
4592 + * an object with the same shape as `combineReducers` keys.
4593 + *
4594 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
4595 + * to enhance the store with third-party capabilities such as middleware,
4596 + * time travel, persistence, etc. The only store enhancer that ships with Redux
4597 + * is `applyMiddleware()`.
4598 + *
4599 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
4600 + * and subscribe to changes.
4601 + */
4602 +
4603 +var legacy_createStore = createStore;
4604 +
4605 +/**
4606 + * Prints a warning in the console if it exists.
4607 + *
4608 + * @param {String} message The warning message.
4609 + * @returns {void}
4610 + */
4611 +function warning(message) {
4612 + /* eslint-disable no-console */
4613 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
4614 + console.error(message);
4615 + }
4616 + /* eslint-enable no-console */
4617 +
4618 +
4619 + try {
4620 + // This error was thrown as a convenience so that if you enable
4621 + // "break on all exceptions" in your console,
4622 + // it would pause the execution at this line.
4623 + throw new Error(message);
4624 + } catch (e) {} // eslint-disable-line no-empty
4625 +
4626 +}
4627 +
4628 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
4629 + var reducerKeys = Object.keys(reducers);
4630 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
4631 +
4632 + if (reducerKeys.length === 0) {
4633 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
4634 + }
4635 +
4636 + if (!isPlainObject(inputState)) {
4637 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
4638 + }
4639 +
4640 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
4641 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
4642 + });
4643 + unexpectedKeys.forEach(function (key) {
4644 + unexpectedKeyCache[key] = true;
4645 + });
4646 + if (action && action.type === ActionTypes.REPLACE) return;
4647 +
4648 + if (unexpectedKeys.length > 0) {
4649 + 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.");
4650 + }
4651 +}
4652 +
4653 +function assertReducerShape(reducers) {
4654 + Object.keys(reducers).forEach(function (key) {
4655 + var reducer = reducers[key];
4656 + var initialState = reducer(undefined, {
4657 + type: ActionTypes.INIT
4658 + });
4659 +
4660 + if (typeof initialState === 'undefined') {
4661 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
4662 + }
4663 +
4664 + if (typeof reducer(undefined, {
4665 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
4666 + }) === 'undefined') {
4667 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
4668 + }
4669 + });
4670 +}
4671 +/**
4672 + * Turns an object whose values are different reducer functions, into a single
4673 + * reducer function. It will call every child reducer, and gather their results
4674 + * into a single state object, whose keys correspond to the keys of the passed
4675 + * reducer functions.
4676 + *
4677 + * @param {Object} reducers An object whose values correspond to different
4678 + * reducer functions that need to be combined into one. One handy way to obtain
4679 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
4680 + * undefined for any action. Instead, they should return their initial state
4681 + * if the state passed to them was undefined, and the current state for any
4682 + * unrecognized action.
4683 + *
4684 + * @returns {Function} A reducer function that invokes every reducer inside the
4685 + * passed object, and builds a state object with the same shape.
4686 + */
4687 +
4688 +
4689 +function combineReducers(reducers) {
4690 + var reducerKeys = Object.keys(reducers);
4691 + var finalReducers = {};
4692 +
4693 + for (var i = 0; i < reducerKeys.length; i++) {
4694 + var key = reducerKeys[i];
4695 +
4696 + if (true) {
4697 + if (typeof reducers[key] === 'undefined') {
4698 + warning("No reducer provided for key \"" + key + "\"");
4699 + }
4700 + }
4701 +
4702 + if (typeof reducers[key] === 'function') {
4703 + finalReducers[key] = reducers[key];
4704 + }
4705 + }
4706 +
4707 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
4708 + // keys multiple times.
4709 +
4710 + var unexpectedKeyCache;
4711 +
4712 + if (true) {
4713 + unexpectedKeyCache = {};
4714 + }
4715 +
4716 + var shapeAssertionError;
4717 +
4718 + try {
4719 + assertReducerShape(finalReducers);
4720 + } catch (e) {
4721 + shapeAssertionError = e;
4722 + }
4723 +
4724 + return function combination(state, action) {
4725 + if (state === void 0) {
4726 + state = {};
4727 + }
4728 +
4729 + if (shapeAssertionError) {
4730 + throw shapeAssertionError;
4731 + }
4732 +
4733 + if (true) {
4734 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
4735 +
4736 + if (warningMessage) {
4737 + warning(warningMessage);
4738 + }
4739 + }
4740 +
4741 + var hasChanged = false;
4742 + var nextState = {};
4743 +
4744 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
4745 + var _key = finalReducerKeys[_i];
4746 + var reducer = finalReducers[_key];
4747 + var previousStateForKey = state[_key];
4748 + var nextStateForKey = reducer(previousStateForKey, action);
4749 +
4750 + if (typeof nextStateForKey === 'undefined') {
4751 + var actionType = action && action.type;
4752 + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
4753 + }
4754 +
4755 + nextState[_key] = nextStateForKey;
4756 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
4757 + }
4758 +
4759 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
4760 + return hasChanged ? nextState : state;
4761 + };
4762 +}
4763 +
4764 +function bindActionCreator(actionCreator, dispatch) {
4765 + return function () {
4766 + return dispatch(actionCreator.apply(this, arguments));
4767 + };
4768 +}
4769 +/**
4770 + * Turns an object whose values are action creators, into an object with the
4771 + * same keys, but with every function wrapped into a `dispatch` call so they
4772 + * may be invoked directly. This is just a convenience method, as you can call
4773 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
4774 + *
4775 + * For convenience, you can also pass an action creator as the first argument,
4776 + * and get a dispatch wrapped function in return.
4777 + *
4778 + * @param {Function|Object} actionCreators An object whose values are action
4779 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
4780 + * syntax. You may also pass a single function.
4781 + *
4782 + * @param {Function} dispatch The `dispatch` function available on your Redux
4783 + * store.
4784 + *
4785 + * @returns {Function|Object} The object mimicking the original object, but with
4786 + * every action creator wrapped into the `dispatch` call. If you passed a
4787 + * function as `actionCreators`, the return value will also be a single
4788 + * function.
4789 + */
4790 +
4791 +
4792 +function bindActionCreators(actionCreators, dispatch) {
4793 + if (typeof actionCreators === 'function') {
4794 + return bindActionCreator(actionCreators, dispatch);
4795 + }
4796 +
4797 + if (typeof actionCreators !== 'object' || actionCreators === null) {
4798 + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
4799 + }
4800 +
4801 + var boundActionCreators = {};
4802 +
4803 + for (var key in actionCreators) {
4804 + var actionCreator = actionCreators[key];
4805 +
4806 + if (typeof actionCreator === 'function') {
4807 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
4808 + }
4809 + }
4810 +
4811 + return boundActionCreators;
4812 +}
4813 +
4814 +/**
4815 + * Composes single-argument functions from right to left. The rightmost
4816 + * function can take multiple arguments as it provides the signature for
4817 + * the resulting composite function.
4818 + *
4819 + * @param {...Function} funcs The functions to compose.
4820 + * @returns {Function} A function obtained by composing the argument functions
4821 + * from right to left. For example, compose(f, g, h) is identical to doing
4822 + * (...args) => f(g(h(...args))).
4823 + */
4824 +function compose() {
4825 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
4826 + funcs[_key] = arguments[_key];
4827 + }
4828 +
4829 + if (funcs.length === 0) {
4830 + return function (arg) {
4831 + return arg;
4832 + };
4833 + }
4834 +
4835 + if (funcs.length === 1) {
4836 + return funcs[0];
4837 + }
4838 +
4839 + return funcs.reduce(function (a, b) {
4840 + return function () {
4841 + return a(b.apply(void 0, arguments));
4842 + };
4843 + });
4844 +}
4845 +
4846 +/**
4847 + * Creates a store enhancer that applies middleware to the dispatch method
4848 + * of the Redux store. This is handy for a variety of tasks, such as expressing
4849 + * asynchronous actions in a concise manner, or logging every action payload.
4850 + *
4851 + * See `redux-thunk` package as an example of the Redux middleware.
4852 + *
4853 + * Because middleware is potentially asynchronous, this should be the first
4854 + * store enhancer in the composition chain.
4855 + *
4856 + * Note that each middleware will be given the `dispatch` and `getState` functions
4857 + * as named arguments.
4858 + *
4859 + * @param {...Function} middlewares The middleware chain to be applied.
4860 + * @returns {Function} A store enhancer applying the middleware.
4861 + */
4862 +
4863 +function applyMiddleware() {
4864 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
4865 + middlewares[_key] = arguments[_key];
4866 + }
4867 +
4868 + return function (createStore) {
4869 + return function () {
4870 + var store = createStore.apply(void 0, arguments);
4871 +
4872 + var _dispatch = function dispatch() {
4873 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
4874 + };
4875 +
4876 + var middlewareAPI = {
4877 + getState: store.getState,
4878 + dispatch: function dispatch() {
4879 + return _dispatch.apply(void 0, arguments);
4880 + }
4881 + };
4882 + var chain = middlewares.map(function (middleware) {
4883 + return middleware(middlewareAPI);
4884 + });
4885 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
4886 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
4887 + dispatch: _dispatch
4888 + });
4889 + };
4890 + };
4891 +}
4892 +
4893 +/*
4894 + * This is a dummy function to check if the function name has been altered by minification.
4895 + * If the function has been minified and NODE_ENV !== 'production', warn the user.
4896 + */
4897 +
4898 +function isCrushed() {}
4899 +
4900 +if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
4901 + warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
4902 +}
4903 +
4904 +
4905 +
4906 +
4907 +/***/ }),
4908 +
4909 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
4910 +/*!*****************************************************!*\
4911 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
4912 + \*****************************************************/
4913 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4914 +
4915 +"use strict";
4916 +__webpack_require__.r(__webpack_exports__);
4917 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4918 +/* harmony export */ "createCacheKeyComparator": () => (/* binding */ createCacheKeyComparator),
4919 +/* harmony export */ "defaultEqualityCheck": () => (/* binding */ defaultEqualityCheck),
4920 +/* harmony export */ "defaultMemoize": () => (/* binding */ defaultMemoize)
4921 +/* harmony export */ });
4922 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
4923 +// https://github.com/erikras/lru-memoize
4924 +var NOT_FOUND = 'NOT_FOUND';
4925 +
4926 +function createSingletonCache(equals) {
4927 + var entry;
4928 + return {
4929 + get: function get(key) {
4930 + if (entry && equals(entry.key, key)) {
4931 + return entry.value;
4932 + }
4933 +
4934 + return NOT_FOUND;
4935 + },
4936 + put: function put(key, value) {
4937 + entry = {
4938 + key: key,
4939 + value: value
4940 + };
4941 + },
4942 + getEntries: function getEntries() {
4943 + return entry ? [entry] : [];
4944 + },
4945 + clear: function clear() {
4946 + entry = undefined;
4947 + }
4948 + };
4949 +}
4950 +
4951 +function createLruCache(maxSize, equals) {
4952 + var entries = [];
4953 +
4954 + function get(key) {
4955 + var cacheIndex = entries.findIndex(function (entry) {
4956 + return equals(key, entry.key);
4957 + }); // We found a cached entry
4958 +
4959 + if (cacheIndex > -1) {
4960 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
4961 +
4962 + if (cacheIndex > 0) {
4963 + entries.splice(cacheIndex, 1);
4964 + entries.unshift(entry);
4965 + }
4966 +
4967 + return entry.value;
4968 + } // No entry found in cache, return sentinel
4969 +
4970 +
4971 + return NOT_FOUND;
4972 + }
4973 +
4974 + function put(key, value) {
4975 + if (get(key) === NOT_FOUND) {
4976 + // TODO Is unshift slow?
4977 + entries.unshift({
4978 + key: key,
4979 + value: value
4980 + });
4981 +
4982 + if (entries.length > maxSize) {
4983 + entries.pop();
4984 + }
4985 + }
4986 + }
4987 +
4988 + function getEntries() {
4989 + return entries;
4990 + }
4991 +
4992 + function clear() {
4993 + entries = [];
4994 + }
4995 +
4996 + return {
4997 + get: get,
4998 + put: put,
4999 + getEntries: getEntries,
5000 + clear: clear
5001 + };
5002 +}
5003 +
5004 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
5005 + return a === b;
5006 +};
5007 +function createCacheKeyComparator(equalityCheck) {
5008 + return function areArgumentsShallowlyEqual(prev, next) {
5009 + if (prev === null || next === null || prev.length !== next.length) {
5010 + return false;
5011 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
5012 +
5013 +
5014 + var length = prev.length;
5015 +
5016 + for (var i = 0; i < length; i++) {
5017 + if (!equalityCheck(prev[i], next[i])) {
5018 + return false;
5019 + }
5020 + }
5021 +
5022 + return true;
5023 + };
5024 +}
5025 +// defaultMemoize now supports a configurable cache size with LRU behavior,
5026 +// and optional comparison of the result value with existing values
5027 +function defaultMemoize(func, equalityCheckOrOptions) {
5028 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
5029 + equalityCheck: equalityCheckOrOptions
5030 + };
5031 + var _providedOptions$equa = providedOptions.equalityCheck,
5032 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
5033 + _providedOptions$maxS = providedOptions.maxSize,
5034 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
5035 + resultEqualityCheck = providedOptions.resultEqualityCheck;
5036 + var comparator = createCacheKeyComparator(equalityCheck);
5037 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
5038 +
5039 + function memoized() {
5040 + var value = cache.get(arguments);
5041 +
5042 + if (value === NOT_FOUND) {
5043 + // @ts-ignore
5044 + value = func.apply(null, arguments);
5045 +
5046 + if (resultEqualityCheck) {
5047 + var entries = cache.getEntries();
5048 + var matchingEntry = entries.find(function (entry) {
5049 + return resultEqualityCheck(entry.value, value);
5050 + });
5051 +
5052 + if (matchingEntry) {
5053 + value = matchingEntry.value;
5054 + }
5055 + }
5056 +
5057 + cache.put(arguments, value);
5058 + }
5059 +
5060 + return value;
5061 + }
5062 +
5063 + memoized.clearCache = function () {
5064 + return cache.clear();
5065 + };
5066 +
5067 + return memoized;
5068 +}
5069 +
5070 +/***/ }),
5071 +
5072 +/***/ "../node_modules/reselect/es/index.js":
5073 +/*!********************************************!*\
5074 + !*** ../node_modules/reselect/es/index.js ***!
5075 + \********************************************/
5076 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5077 +
5078 +"use strict";
5079 +__webpack_require__.r(__webpack_exports__);
5080 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5081 +/* harmony export */ "createSelector": () => (/* binding */ createSelector),
5082 +/* harmony export */ "createSelectorCreator": () => (/* binding */ createSelectorCreator),
5083 +/* harmony export */ "createStructuredSelector": () => (/* binding */ createStructuredSelector),
5084 +/* harmony export */ "defaultEqualityCheck": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
5085 +/* harmony export */ "defaultMemoize": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
5086 +/* harmony export */ });
5087 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
5088 +
5089 +
5090 +
5091 +function getDependencies(funcs) {
5092 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
5093 +
5094 + if (!dependencies.every(function (dep) {
5095 + return typeof dep === 'function';
5096 + })) {
5097 + var dependencyTypes = dependencies.map(function (dep) {
5098 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
5099 + }).join(', ');
5100 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
5101 + }
5102 +
5103 + return dependencies;
5104 +}
5105 +
5106 +function createSelectorCreator(memoize) {
5107 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5108 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
5109 + }
5110 +
5111 + var createSelector = function createSelector() {
5112 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5113 + funcs[_key2] = arguments[_key2];
5114 + }
5115 +
5116 + var _recomputations = 0;
5117 +
5118 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5119 + // So, start by declaring the default value here.
5120 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5121 +
5122 +
5123 + var directlyPassedOptions = {
5124 + memoizeOptions: undefined
5125 + }; // Normally, the result func or "output selector" is the last arg
5126 +
5127 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5128 +
5129 + if (typeof resultFunc === 'object') {
5130 + directlyPassedOptions = resultFunc; // and pop the real result func off
5131 +
5132 + resultFunc = funcs.pop();
5133 + }
5134 +
5135 + if (typeof resultFunc !== 'function') {
5136 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5137 + } // Determine which set of options we're using. Prefer options passed directly,
5138 + // but fall back to options given to createSelectorCreator.
5139 +
5140 +
5141 + var _directlyPassedOption = directlyPassedOptions,
5142 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5143 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5144 + // is an array. In most libs I've looked at, it's an equality function or options object.
5145 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5146 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5147 + // we wrap it in an array so we can apply it.
5148 +
5149 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5150 + var dependencies = getDependencies(funcs);
5151 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5152 + _recomputations++; // apply arguments instead of spreading for performance.
5153 +
5154 + return resultFunc.apply(null, arguments);
5155 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5156 +
5157 + var selector = memoize(function dependenciesChecker() {
5158 + var params = [];
5159 + var length = dependencies.length;
5160 +
5161 + for (var i = 0; i < length; i++) {
5162 + // apply arguments instead of spreading and mutate a local list of params for performance.
5163 + // @ts-ignore
5164 + params.push(dependencies[i].apply(null, arguments));
5165 + } // apply arguments instead of spreading for performance.
5166 +
5167 +
5168 + _lastResult = memoizedResultFunc.apply(null, params);
5169 + return _lastResult;
5170 + });
5171 + Object.assign(selector, {
5172 + resultFunc: resultFunc,
5173 + memoizedResultFunc: memoizedResultFunc,
5174 + dependencies: dependencies,
5175 + lastResult: function lastResult() {
5176 + return _lastResult;
5177 + },
5178 + recomputations: function recomputations() {
5179 + return _recomputations;
5180 + },
5181 + resetRecomputations: function resetRecomputations() {
5182 + return _recomputations = 0;
5183 + }
5184 + });
5185 + return selector;
5186 + }; // @ts-ignore
5187 +
5188 +
5189 + return createSelector;
5190 +}
5191 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
5192 +// Manual definition of state and output arguments
5193 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
5194 + if (selectorCreator === void 0) {
5195 + selectorCreator = createSelector;
5196 + }
5197 +
5198 + if (typeof selectors !== 'object') {
5199 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
5200 + }
5201 +
5202 + var objectKeys = Object.keys(selectors);
5203 + var resultSelector = selectorCreator( // @ts-ignore
5204 + objectKeys.map(function (key) {
5205 + return selectors[key];
5206 + }), function () {
5207 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5208 + values[_key3] = arguments[_key3];
5209 + }
5210 +
5211 + return values.reduce(function (composition, value, index) {
5212 + composition[objectKeys[index]] = value;
5213 + return composition;
5214 + }, {});
5215 + });
5216 + return resultSelector;
5217 +};
5218 +
5219 +/***/ }),
5220 +
1936 5221 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1937 5222 /*!******************************************************************!*\
1938 5223 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1939 5224 \******************************************************************/
@@ -1938,13 +5223,18 @@
1938 5223 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1939 5224 \******************************************************************/
1940 5225 /***/ ((module) => {
1941 5226
1942 -function _arrayLikeToArray(r, a) {
1943 - (null == a || a > r.length) && (a = r.length);
1944 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1945 - return n;
5227 +function _arrayLikeToArray(arr, len) {
5228 + if (len == null || len > arr.length) len = arr.length;
5229 +
5230 + for (var i = 0, arr2 = new Array(len); i < len; i++) {
5231 + arr2[i] = arr[i];
5232 + }
5233 +
5234 + return arr2;
1946 5235 }
5236 +
1947 5237 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1948 5238
1949 5239 /***/ }),
1950 5240
@@ -1953,11 +5243,12 @@
1953 5243 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1954 5244 \****************************************************************/
1955 5245 /***/ ((module) => {
1956 5246
1957 -function _arrayWithHoles(r) {
1958 - if (Array.isArray(r)) return r;
5247 +function _arrayWithHoles(arr) {
5248 + if (Array.isArray(arr)) return arr;
1959 5249 }
5250 +
1960 5251 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1961 5252
1962 5253 /***/ }),
1963 5254
@@ -1966,12 +5257,16 @@
1966 5257 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
1967 5258 \***********************************************************************/
1968 5259 /***/ ((module) => {
1969 5260
1970 -function _assertThisInitialized(e) {
1971 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1972 - return e;
5261 +function _assertThisInitialized(self) {
5262 + if (self === void 0) {
5263 + throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5264 + }
5265 +
5266 + return self;
1973 5267 }
5268 +
1974 5269 module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
1975 5270
1976 5271 /***/ }),
1977 5272
@@ -1980,11 +5275,14 @@
1980 5275 !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1981 5276 \****************************************************************/
1982 5277 /***/ ((module) => {
1983 5278
1984 -function _classCallCheck(a, n) {
1985 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
5279 +function _classCallCheck(instance, Constructor) {
5280 + if (!(instance instanceof Constructor)) {
5281 + throw new TypeError("Cannot call a class as a function");
5282 + }
1986 5283 }
5284 +
1987 5285 module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1988 5286
1989 5287 /***/ }),
1990 5288
@@ -1993,17 +5291,29 @@
1993 5291 !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
1994 5292 \***********************************************************/
1995 5293 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1996 5294
5295 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
5296 +
1997 5297 var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
1998 -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
1999 -function _construct(t, e, r) {
2000 - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
2001 - var o = [null];
2002 - o.push.apply(o, e);
2003 - var p = new (t.bind.apply(t, o))();
2004 - return r && setPrototypeOf(p, r.prototype), p;
5298 +
5299 +function _construct(Parent, args, Class) {
5300 + if (isNativeReflectConstruct()) {
5301 + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
5302 + } else {
5303 + module.exports = _construct = function _construct(Parent, args, Class) {
5304 + var a = [null];
5305 + a.push.apply(a, args);
5306 + var Constructor = Function.bind.apply(Parent, a);
5307 + var instance = new Constructor();
5308 + if (Class) setPrototypeOf(instance, Class.prototype);
5309 + return instance;
5310 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5311 + }
5312 +
5313 + return _construct.apply(null, arguments);
2005 5314 }
5315 +
2006 5316 module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2007 5317
2008 5318 /***/ }),
2009 5319
@@ -2010,22 +5320,29 @@
2010 5320 /***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2011 5321 /*!*************************************************************!*\
2012 5322 !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2013 5323 \*************************************************************/
2014 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5324 +/***/ ((module) => {
2015 5325
2016 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2017 -function _defineProperties(e, r) {
2018 - for (var t = 0; t < r.length; t++) {
2019 - var o = r[t];
2020 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
5326 +function _defineProperties(target, props) {
5327 + for (var i = 0; i < props.length; i++) {
5328 + var descriptor = props[i];
5329 + descriptor.enumerable = descriptor.enumerable || false;
5330 + descriptor.configurable = true;
5331 + if ("value" in descriptor) descriptor.writable = true;
5332 + Object.defineProperty(target, descriptor.key, descriptor);
2021 5333 }
2022 5334 }
2023 -function _createClass(e, r, t) {
2024 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2025 - writable: !1
2026 - }), e;
5335 +
5336 +function _createClass(Constructor, protoProps, staticProps) {
5337 + if (protoProps) _defineProperties(Constructor.prototype, protoProps);
5338 + if (staticProps) _defineProperties(Constructor, staticProps);
5339 + Object.defineProperty(Constructor, "prototype", {
5340 + writable: false
5341 + });
5342 + return Constructor;
2027 5343 }
5344 +
2028 5345 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2029 5346
2030 5347 /***/ }),
2031 5348
@@ -2032,19 +5349,25 @@
2032 5349 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2033 5350 /*!****************************************************************!*\
2034 5351 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2035 5352 \****************************************************************/
2036 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5353 +/***/ ((module) => {
2037 5354
2038 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2039 -function _defineProperty(e, r, t) {
2040 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2041 - value: t,
2042 - enumerable: !0,
2043 - configurable: !0,
2044 - writable: !0
2045 - }) : e[r] = t, e;
5355 +function _defineProperty(obj, key, value) {
5356 + if (key in obj) {
5357 + Object.defineProperty(obj, key, {
5358 + value: value,
5359 + enumerable: true,
5360 + configurable: true,
5361 + writable: true
5362 + });
5363 + } else {
5364 + obj[key] = value;
5365 + }
5366 +
5367 + return obj;
2046 5368 }
5369 +
2047 5370 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2048 5371
2049 5372 /***/ }),
2050 5373
@@ -2054,17 +5377,29 @@
2054 5377 \*****************************************************/
2055 5378 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2056 5379
2057 5380 var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
5381 +
2058 5382 function _get() {
2059 - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
2060 - var p = superPropBase(e, t);
2061 - if (p) {
2062 - var n = Object.getOwnPropertyDescriptor(p, t);
2063 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
2064 - }
2065 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
5383 + if (typeof Reflect !== "undefined" && Reflect.get) {
5384 + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
5385 + } else {
5386 + module.exports = _get = function _get(target, property, receiver) {
5387 + var base = superPropBase(target, property);
5388 + if (!base) return;
5389 + var desc = Object.getOwnPropertyDescriptor(base, property);
5390 +
5391 + if (desc.get) {
5392 + return desc.get.call(arguments.length < 3 ? target : receiver);
5393 + }
5394 +
5395 + return desc.value;
5396 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5397 + }
5398 +
5399 + return _get.apply(this, arguments);
2066 5400 }
5401 +
2067 5402 module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
2068 5403
2069 5404 /***/ }),
2070 5405
@@ -2073,13 +5408,15 @@
2073 5408 !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2074 5409 \****************************************************************/
2075 5410 /***/ ((module) => {
2076 5411
2077 -function _getPrototypeOf(t) {
2078 - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2079 - return t.__proto__ || Object.getPrototypeOf(t);
2080 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
5412 +function _getPrototypeOf(o) {
5413 + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
5414 + return o.__proto__ || Object.getPrototypeOf(o);
5415 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5416 + return _getPrototypeOf(o);
2081 5417 }
5418 +
2082 5419 module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2083 5420
2084 5421 /***/ }),
2085 5422
@@ -2089,20 +5426,27 @@
2089 5426 \**********************************************************/
2090 5427 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2091 5428
2092 5429 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2093 -function _inherits(t, e) {
2094 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2095 - t.prototype = Object.create(e && e.prototype, {
5430 +
5431 +function _inherits(subClass, superClass) {
5432 + if (typeof superClass !== "function" && superClass !== null) {
5433 + throw new TypeError("Super expression must either be null or a function");
5434 + }
5435 +
5436 + subClass.prototype = Object.create(superClass && superClass.prototype, {
2096 5437 constructor: {
2097 - value: t,
2098 - writable: !0,
2099 - configurable: !0
5438 + value: subClass,
5439 + writable: true,
5440 + configurable: true
2100 5441 }
2101 - }), Object.defineProperty(t, "prototype", {
2102 - writable: !1
2103 - }), e && setPrototypeOf(t, e);
5442 + });
5443 + Object.defineProperty(subClass, "prototype", {
5444 + writable: false
5445 + });
5446 + if (superClass) setPrototypeOf(subClass, superClass);
2104 5447 }
5448 +
2105 5449 module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2106 5450
2107 5451 /***/ }),
2108 5452
@@ -2111,13 +5455,14 @@
2111 5455 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2112 5456 \***********************************************************************/
2113 5457 /***/ ((module) => {
2114 5458
2115 -function _interopRequireDefault(e) {
2116 - return e && e.__esModule ? e : {
2117 - "default": e
5459 +function _interopRequireDefault(obj) {
5460 + return obj && obj.__esModule ? obj : {
5461 + "default": obj
2118 5462 };
2119 5463 }
5464 +
2120 5465 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2121 5466
2122 5467 /***/ }),
2123 5468
@@ -2126,15 +5471,12 @@
2126 5471 !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
2127 5472 \******************************************************************/
2128 5473 /***/ ((module) => {
2129 5474
2130 -function _isNativeFunction(t) {
2131 - try {
2132 - return -1 !== Function.toString.call(t).indexOf("[native code]");
2133 - } catch (n) {
2134 - return "function" == typeof t;
2135 - }
5475 +function _isNativeFunction(fn) {
5476 + return Function.toString.call(fn).indexOf("[native code]") !== -1;
2136 5477 }
5478 +
2137 5479 module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2138 5480
2139 5481 /***/ }),
2140 5482
@@ -2144,15 +5486,20 @@
2144 5486 \**************************************************************************/
2145 5487 /***/ ((module) => {
2146 5488
2147 5489 function _isNativeReflectConstruct() {
5490 + if (typeof Reflect === "undefined" || !Reflect.construct) return false;
5491 + if (Reflect.construct.sham) return false;
5492 + if (typeof Proxy === "function") return true;
5493 +
2148 5494 try {
2149 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2150 - } catch (t) {}
2151 - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
2152 - return !!t;
2153 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
5495 + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
5496 + return true;
5497 + } catch (e) {
5498 + return false;
5499 + }
2154 5500 }
5501 +
2155 5502 module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2156 5503
2157 5504 /***/ }),
2158 5505
@@ -2161,35 +5508,38 @@
2161 5508 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2162 5509 \**********************************************************************/
2163 5510 /***/ ((module) => {
2164 5511
2165 -function _iterableToArrayLimit(r, l) {
2166 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2167 - if (null != t) {
2168 - var e,
2169 - n,
2170 - i,
2171 - u,
2172 - a = [],
2173 - f = !0,
2174 - o = !1;
5512 +function _iterableToArrayLimit(arr, i) {
5513 + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5514 +
5515 + if (_i == null) return;
5516 + var _arr = [];
5517 + var _n = true;
5518 + var _d = false;
5519 +
5520 + var _s, _e;
5521 +
5522 + try {
5523 + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
5524 + _arr.push(_s.value);
5525 +
5526 + if (i && _arr.length === i) break;
5527 + }
5528 + } catch (err) {
5529 + _d = true;
5530 + _e = err;
5531 + } finally {
2175 5532 try {
2176 - if (i = (t = t.call(r)).next, 0 === l) {
2177 - if (Object(t) !== t) return;
2178 - f = !1;
2179 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2180 - } catch (r) {
2181 - o = !0, n = r;
5533 + if (!_n && _i["return"] != null) _i["return"]();
2182 5534 } finally {
2183 - try {
2184 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2185 - } finally {
2186 - if (o) throw n;
2187 - }
5535 + if (_d) throw _e;
2188 5536 }
2189 - return a;
2190 5537 }
5538 +
5539 + return _arr;
2191 5540 }
5541 +
2192 5542 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2193 5543
2194 5544 /***/ }),
2195 5545
@@ -2201,8 +5551,9 @@
2201 5551
2202 5552 function _nonIterableRest() {
2203 5553 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2204 5554 }
5555 +
2205 5556 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2206 5557
2207 5558 /***/ }),
2208 5559
@@ -2212,14 +5563,21 @@
2212 5563 \***************************************************************************/
2213 5564 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2214 5565
2215 5566 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
5567 +
2216 5568 var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2217 -function _possibleConstructorReturn(t, e) {
2218 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2219 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2220 - return assertThisInitialized(t);
5569 +
5570 +function _possibleConstructorReturn(self, call) {
5571 + if (call && (_typeof(call) === "object" || typeof call === "function")) {
5572 + return call;
5573 + } else if (call !== void 0) {
5574 + throw new TypeError("Derived constructors may only return object or undefined");
5575 + }
5576 +
5577 + return assertThisInitialized(self);
2221 5578 }
5579 +
2222 5580 module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2223 5581
2224 5582 /***/ }),
2225 5583
@@ -2228,13 +5586,16 @@
2228 5586 !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2229 5587 \****************************************************************/
2230 5588 /***/ ((module) => {
2231 5589
2232 -function _setPrototypeOf(t, e) {
2233 - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2234 - return t.__proto__ = e, t;
2235 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
5590 +function _setPrototypeOf(o, p) {
5591 + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
5592 + o.__proto__ = p;
5593 + return o;
5594 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5595 + return _setPrototypeOf(o, p);
2236 5596 }
5597 +
2237 5598 module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2238 5599
2239 5600 /***/ }),
2240 5601
@@ -2244,14 +5605,19 @@
2244 5605 \***************************************************************/
2245 5606 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2246 5607
2247 5608 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
5609 +
2248 5610 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
5611 +
2249 5612 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
5613 +
2250 5614 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2251 -function _slicedToArray(r, e) {
2252 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
5615 +
5616 +function _slicedToArray(arr, i) {
5617 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
2253 5618 }
5619 +
2254 5620 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2255 5621
2256 5622 /***/ }),
2257 5623
@@ -2261,51 +5627,20 @@
2261 5627 \***************************************************************/
2262 5628 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2263 5629
2264 5630 var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2265 -function _superPropBase(t, o) {
2266 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
2267 - return t;
2268 -}
2269 -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2270 5631
2271 -/***/ }),
5632 +function _superPropBase(object, property) {
5633 + while (!Object.prototype.hasOwnProperty.call(object, property)) {
5634 + object = getPrototypeOf(object);
5635 + if (object === null) break;
5636 + }
2272 5637
2273 -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2274 -/*!*************************************************************!*\
2275 - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2276 - \*************************************************************/
2277 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2278 -
2279 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2280 -function toPrimitive(t, r) {
2281 - if ("object" != _typeof(t) || !t) return t;
2282 - var e = t[Symbol.toPrimitive];
2283 - if (void 0 !== e) {
2284 - var i = e.call(t, r || "default");
2285 - if ("object" != _typeof(i)) return i;
2286 - throw new TypeError("@@toPrimitive must return a primitive value.");
2287 - }
2288 - return ("string" === r ? String : Number)(t);
5638 + return object;
2289 5639 }
2290 -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2291 5640
2292 -/***/ }),
5641 +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2293 5642
2294 -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2295 -/*!***************************************************************!*\
2296 - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2297 - \***************************************************************/
2298 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2299 -
2300 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2301 -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2302 -function toPropertyKey(t) {
2303 - var i = toPrimitive(t, "string");
2304 - return "symbol" == _typeof(i) ? i : i + "";
2305 -}
2306 -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2307 -
2308 5643 /***/ }),
2309 5644
2310 5645 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2311 5646 /*!********************************************************!*\
@@ -2312,17 +5647,18 @@
2312 5647 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2313 5648 \********************************************************/
2314 5649 /***/ ((module) => {
2315 5650
2316 -function _typeof(o) {
5651 +function _typeof(obj) {
2317 5652 "@babel/helpers - typeof";
2318 5653
2319 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2320 - return typeof o;
2321 - } : function (o) {
2322 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2323 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
5654 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
5655 + return typeof obj;
5656 + } : function (obj) {
5657 + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
5658 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
2324 5659 }
5660 +
2325 5661 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2326 5662
2327 5663 /***/ }),
2328 5664
@@ -2332,15 +5668,18 @@
2332 5668 \****************************************************************************/
2333 5669 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2334 5670
2335 5671 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2336 -function _unsupportedIterableToArray(r, a) {
2337 - if (r) {
2338 - if ("string" == typeof r) return arrayLikeToArray(r, a);
2339 - var t = {}.toString.call(r).slice(8, -1);
2340 - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
2341 - }
5672 +
5673 +function _unsupportedIterableToArray(o, minLen) {
5674 + if (!o) return;
5675 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
5676 + var n = Object.prototype.toString.call(o).slice(8, -1);
5677 + if (n === "Object" && o.constructor) n = o.constructor.name;
5678 + if (n === "Map" || n === "Set") return Array.from(o);
5679 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
2342 5680 }
5681 +
2343 5682 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2344 5683
2345 5684 /***/ }),
2346 5685
@@ -2350,46 +5689,158 @@
2350 5689 \*****************************************************************/
2351 5690 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2352 5691
2353 5692 var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
5693 +
2354 5694 var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
5695 +
2355 5696 var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
5697 +
2356 5698 var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
2357 -function _wrapNativeSuper(t) {
2358 - var r = "function" == typeof Map ? new Map() : void 0;
2359 - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
2360 - if (null === t || !isNativeFunction(t)) return t;
2361 - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
2362 - if (void 0 !== r) {
2363 - if (r.has(t)) return r.get(t);
2364 - r.set(t, Wrapper);
5699 +
5700 +function _wrapNativeSuper(Class) {
5701 + var _cache = typeof Map === "function" ? new Map() : undefined;
5702 +
5703 + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
5704 + if (Class === null || !isNativeFunction(Class)) return Class;
5705 +
5706 + if (typeof Class !== "function") {
5707 + throw new TypeError("Super expression must either be null or a function");
2365 5708 }
5709 +
5710 + if (typeof _cache !== "undefined") {
5711 + if (_cache.has(Class)) return _cache.get(Class);
5712 +
5713 + _cache.set(Class, Wrapper);
5714 + }
5715 +
2366 5716 function Wrapper() {
2367 - return construct(t, arguments, getPrototypeOf(this).constructor);
5717 + return construct(Class, arguments, getPrototypeOf(this).constructor);
2368 5718 }
2369 - return Wrapper.prototype = Object.create(t.prototype, {
5719 +
5720 + Wrapper.prototype = Object.create(Class.prototype, {
2370 5721 constructor: {
2371 5722 value: Wrapper,
2372 - enumerable: !1,
2373 - writable: !0,
2374 - configurable: !0
5723 + enumerable: false,
5724 + writable: true,
5725 + configurable: true
2375 5726 }
2376 - }), setPrototypeOf(Wrapper, t);
2377 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
5727 + });
5728 + return setPrototypeOf(Wrapper, Class);
5729 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5730 + return _wrapNativeSuper(Class);
2378 5731 }
5732 +
2379 5733 module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2380 5734
2381 5735 /***/ }),
2382 5736
2383 -/***/ "@reduxjs/toolkit":
5737 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
5738 +/*!********************************************************************!*\
5739 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
5740 + \********************************************************************/
5741 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5742 +
5743 +"use strict";
5744 +__webpack_require__.r(__webpack_exports__);
5745 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5746 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
5747 +/* harmony export */ });
5748 +function _defineProperty(obj, key, value) {
5749 + if (key in obj) {
5750 + Object.defineProperty(obj, key, {
5751 + value: value,
5752 + enumerable: true,
5753 + configurable: true,
5754 + writable: true
5755 + });
5756 + } else {
5757 + obj[key] = value;
5758 + }
5759 +
5760 + return obj;
5761 +}
5762 +
5763 +/***/ }),
5764 +
5765 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
5766 +/*!*******************************************************************!*\
5767 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
5768 + \*******************************************************************/
5769 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
5770 +
5771 +"use strict";
5772 +__webpack_require__.r(__webpack_exports__);
5773 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5774 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
5775 +/* harmony export */ });
5776 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
5777 +
5778 +
5779 +function ownKeys(object, enumerableOnly) {
5780 + var keys = Object.keys(object);
5781 +
5782 + if (Object.getOwnPropertySymbols) {
5783 + var symbols = Object.getOwnPropertySymbols(object);
5784 + enumerableOnly && (symbols = symbols.filter(function (sym) {
5785 + return Object.getOwnPropertyDescriptor(object, sym).enumerable;
5786 + })), keys.push.apply(keys, symbols);
5787 + }
5788 +
5789 + return keys;
5790 +}
5791 +
5792 +function _objectSpread2(target) {
5793 + for (var i = 1; i < arguments.length; i++) {
5794 + var source = null != arguments[i] ? arguments[i] : {};
5795 + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
5796 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]);
5797 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
5798 + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5799 + });
5800 + }
5801 +
5802 + return target;
5803 +}
5804 +
5805 +/***/ }),
5806 +
5807 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
2384 5808 /*!************************************************!*\
2385 - !*** external "elementorVendors.reduxToolkit" ***!
5809 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
2386 5810 \************************************************/
2387 -/***/ ((module) => {
5811 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2388 5812
2389 5813 "use strict";
2390 -module.exports = elementorVendors.reduxToolkit;
5814 +__webpack_require__.r(__webpack_exports__);
5815 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5816 +/* harmony export */ "Immer": () => (/* binding */ un),
5817 +/* harmony export */ "applyPatches": () => (/* binding */ pn),
5818 +/* harmony export */ "castDraft": () => (/* binding */ K),
5819 +/* harmony export */ "castImmutable": () => (/* binding */ $),
5820 +/* harmony export */ "createDraft": () => (/* binding */ ln),
5821 +/* harmony export */ "current": () => (/* binding */ D),
5822 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
5823 +/* harmony export */ "enableAllPlugins": () => (/* binding */ J),
5824 +/* harmony export */ "enableES5": () => (/* binding */ N),
5825 +/* harmony export */ "enableMapSet": () => (/* binding */ C),
5826 +/* harmony export */ "enablePatches": () => (/* binding */ T),
5827 +/* harmony export */ "finishDraft": () => (/* binding */ dn),
5828 +/* harmony export */ "freeze": () => (/* binding */ d),
5829 +/* harmony export */ "immerable": () => (/* binding */ L),
5830 +/* harmony export */ "isDraft": () => (/* binding */ r),
5831 +/* harmony export */ "isDraftable": () => (/* binding */ t),
5832 +/* harmony export */ "nothing": () => (/* binding */ H),
5833 +/* harmony export */ "original": () => (/* binding */ e),
5834 +/* harmony export */ "produce": () => (/* binding */ fn),
5835 +/* harmony export */ "produceWithPatches": () => (/* binding */ cn),
5836 +/* harmony export */ "setAutoFreeze": () => (/* binding */ sn),
5837 +/* harmony export */ "setUseProxies": () => (/* binding */ vn)
5838 +/* harmony export */ });
5839 +function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[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.delete(r),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)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return false||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(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.O=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b("ES5").S(e,r,o),o?(i[Q].P&&(O(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,[]),O(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;i(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( true&&c===o&&n(5),r(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r(v))return;e.m=!1}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&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 R(n,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},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 D(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=F(r,c),u.I=!1}else e=F(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 F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.O&&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,D:{},l:r,t:n,k:i,o:null,O:!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.D,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];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},R: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.D,(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.D,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.D=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=R(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.O&&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,D:void 0,t:n,k:this,C:!1,O:!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.D.set(n,!0),t.o.set(n,r),t.D.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.D.set(n,!1):r.D.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.D=new Map,i(n.t,(function(r){n.D.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=R(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,O:!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",{N:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){N(),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]=R(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.D[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&&"number"!=typeof t&&(void 0!==t||r in n.o)||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.g=B,this.F=!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=R(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?O(c):g(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(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.F&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(r){r&&!B&&n(20),this.g=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn);
5840 +//# sourceMappingURL=immer.esm.js.map
2391 5841
5842 +
2392 5843 /***/ })
2393 5844
2394 5845 /******/ });
2395 5846 /************************************************************************/
@@ -2417,10 +5868,39 @@
2417 5868 /******/ return module.exports;
2418 5869 /******/ }
2419 5870 /******/
2420 5871 /************************************************************************/
5872 +/******/ /* webpack/runtime/define property getters */
5873 +/******/ (() => {
5874 +/******/ // define getter functions for harmony exports
5875 +/******/ __webpack_require__.d = (exports, definition) => {
5876 +/******/ for(var key in definition) {
5877 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5878 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5879 +/******/ }
5880 +/******/ }
5881 +/******/ };
5882 +/******/ })();
5883 +/******/
5884 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
5885 +/******/ (() => {
5886 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5887 +/******/ })();
5888 +/******/
5889 +/******/ /* webpack/runtime/make namespace object */
5890 +/******/ (() => {
5891 +/******/ // define __esModule on exports
5892 +/******/ __webpack_require__.r = (exports) => {
5893 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5894 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5895 +/******/ }
5896 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
5897 +/******/ };
5898 +/******/ })();
5899 +/******/
5900 +/************************************************************************/
2421 5901 var __webpack_exports__ = {};
2422 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
5902 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
2423 5903 (() => {
2424 5904 "use strict";
2425 5905 /*!**************************************!*\
2426 5906 !*** ../app/assets/js/app-loader.js ***!
@@ -2427,12 +5907,17 @@
2427 5907 \**************************************/
2428 5908
2429 5909
2430 5910 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
5911 +
2431 5912 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
5913 +
2432 5914 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
5915 +
2433 5916 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
5917 +
2434 5918 var _component = _interopRequireDefault(__webpack_require__(/*! ./loader/component */ "../app/assets/js/loader/component.js"));
5919 +
2435 5920 var AppLoader = /*#__PURE__*/function () {
2436 5921 function AppLoader() {
2437 5922 (0, _classCallCheck2.default)(this, AppLoader);
2438 5923 (0, _defineProperty2.default)(this, "selector", 'a.elementor-app-link, .elementor-app-link .ab-item');
@@ -2438,15 +5923,18 @@
2438 5923 (0, _defineProperty2.default)(this, "selector", 'a.elementor-app-link, .elementor-app-link .ab-item');
2439 5924 $e.components.register(new _component.default());
2440 5925 window.addEventListener('DOMContentLoaded', this.onLoad.bind(this));
2441 5926 }
2442 - return (0, _createClass2.default)(AppLoader, [{
5927 +
5928 + (0, _createClass2.default)(AppLoader, [{
2443 5929 key: "onLoad",
2444 5930 value: function onLoad() {
2445 5931 var links = document.querySelectorAll(this.selector);
5932 +
2446 5933 if (!links.length) {
2447 5934 return;
2448 5935 }
5936 +
2449 5937 links.forEach(function (link) {
2450 5938 link.addEventListener('click', function (event) {
2451 5939 event.preventDefault();
2452 5940 $e.run('app/open', {
@@ -2460,9 +5948,11 @@
2460 5948 });
2461 5949 });
2462 5950 }
2463 5951 }]);
5952 + return AppLoader;
2464 5953 }();
5954 +
2465 5955 window.elementorAppLoader = new AppLoader();
2466 5956 })();
2467 5957
2468 5958 /******/ })()