PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.0-dev1
Elementor Website Builder – more than just a page builder v3.1.0-dev1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / assets / js / common.js

common.js in Elementor Website Builder – more than just a page builder 3.1.0-dev1, at assets/js/common.js

15,970 lines 419.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.0.13 - 12-11-2020 */
2 /******/ (function(modules) { // webpackBootstrap
3 /******/ // The module cache
4 /******/ var installedModules = {};
5 /******/
6 /******/ // The require function
7 /******/ function __webpack_require__(moduleId) {
8 /******/
9 /******/ // Check if module is in cache
10 /******/ if(installedModules[moduleId]) {
11 /******/ return installedModules[moduleId].exports;
12 /******/ }
13 /******/ // Create a new module (and put it into the cache)
14 /******/ var module = installedModules[moduleId] = {
15 /******/ i: moduleId,
16 /******/ l: false,
17 /******/ exports: {}
18 /******/ };
19 /******/
20 /******/ // Execute the module function
21 /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22 /******/
23 /******/ // Flag the module as loaded
24 /******/ module.l = true;
25 /******/
26 /******/ // Return the exports of the module
27 /******/ return module.exports;
28 /******/ }
29 /******/
30 /******/
31 /******/ // expose the modules object (__webpack_modules__)
32 /******/ __webpack_require__.m = modules;
33 /******/
34 /******/ // expose the module cache
35 /******/ __webpack_require__.c = installedModules;
36 /******/
37 /******/ // define getter function for harmony exports
38 /******/ __webpack_require__.d = function(exports, name, getter) {
39 /******/ if(!__webpack_require__.o(exports, name)) {
40 /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41 /******/ }
42 /******/ };
43 /******/
44 /******/ // define __esModule on exports
45 /******/ __webpack_require__.r = function(exports) {
46 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48 /******/ }
49 /******/ Object.defineProperty(exports, '__esModule', { value: true });
50 /******/ };
51 /******/
52 /******/ // create a fake namespace object
53 /******/ // mode & 1: value is a module id, require it
54 /******/ // mode & 2: merge all properties of value into the ns
55 /******/ // mode & 4: return value when already ns object
56 /******/ // mode & 8|1: behave like require
57 /******/ __webpack_require__.t = function(value, mode) {
58 /******/ if(mode & 1) value = __webpack_require__(value);
59 /******/ if(mode & 8) return value;
60 /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61 /******/ var ns = Object.create(null);
62 /******/ __webpack_require__.r(ns);
63 /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64 /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65 /******/ return ns;
66 /******/ };
67 /******/
68 /******/ // getDefaultExport function for compatibility with non-harmony modules
69 /******/ __webpack_require__.n = function(module) {
70 /******/ var getter = module && module.__esModule ?
71 /******/ function getDefault() { return module['default']; } :
72 /******/ function getModuleExports() { return module; };
73 /******/ __webpack_require__.d(getter, 'a', getter);
74 /******/ return getter;
75 /******/ };
76 /******/
77 /******/ // Object.prototype.hasOwnProperty.call
78 /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79 /******/
80 /******/ // __webpack_public_path__
81 /******/ __webpack_require__.p = "";
82 /******/
83 /******/
84 /******/ // Load entry module and return exports
85 /******/ return __webpack_require__(__webpack_require__.s = 720);
86 /******/ })
87 /************************************************************************/
88 /******/ ([
89 /* 0 */
90 /***/ (function(module, exports) {
91
92 function _interopRequireDefault(obj) {
93 return obj && obj.__esModule ? obj : {
94 "default": obj
95 };
96 }
97
98 module.exports = _interopRequireDefault;
99
100 /***/ }),
101 /* 1 */
102 /***/ (function(module, exports, __webpack_require__) {
103
104 module.exports = __webpack_require__(152);
105
106 /***/ }),
107 /* 2 */
108 /***/ (function(module, exports) {
109
110 function _classCallCheck(instance, Constructor) {
111 if (!(instance instanceof Constructor)) {
112 throw new TypeError("Cannot call a class as a function");
113 }
114 }
115
116 module.exports = _classCallCheck;
117
118 /***/ }),
119 /* 3 */
120 /***/ (function(module, exports, __webpack_require__) {
121
122 var _Object$defineProperty = __webpack_require__(1);
123
124 function _defineProperties(target, props) {
125 for (var i = 0; i < props.length; i++) {
126 var descriptor = props[i];
127 descriptor.enumerable = descriptor.enumerable || false;
128 descriptor.configurable = true;
129 if ("value" in descriptor) descriptor.writable = true;
130
131 _Object$defineProperty(target, descriptor.key, descriptor);
132 }
133 }
134
135 function _createClass(Constructor, protoProps, staticProps) {
136 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
137 if (staticProps) _defineProperties(Constructor, staticProps);
138 return Constructor;
139 }
140
141 module.exports = _createClass;
142
143 /***/ }),
144 /* 4 */
145 /***/ (function(module, exports, __webpack_require__) {
146
147 var _Object$create = __webpack_require__(130);
148
149 var setPrototypeOf = __webpack_require__(119);
150
151 function _inherits(subClass, superClass) {
152 if (typeof superClass !== "function" && superClass !== null) {
153 throw new TypeError("Super expression must either be null or a function");
154 }
155
156 subClass.prototype = _Object$create(superClass && superClass.prototype, {
157 constructor: {
158 value: subClass,
159 writable: true,
160 configurable: true
161 }
162 });
163 if (superClass) setPrototypeOf(subClass, superClass);
164 }
165
166 module.exports = _inherits;
167
168 /***/ }),
169 /* 5 */
170 /***/ (function(module, exports, __webpack_require__) {
171
172 var _Reflect$construct = __webpack_require__(95);
173
174 var getPrototypeOf = __webpack_require__(16);
175
176 var isNativeReflectConstruct = __webpack_require__(138);
177
178 var possibleConstructorReturn = __webpack_require__(167);
179
180 function _createSuper(Derived) {
181 var hasNativeReflectConstruct = isNativeReflectConstruct();
182 return function _createSuperInternal() {
183 var Super = getPrototypeOf(Derived),
184 result;
185
186 if (hasNativeReflectConstruct) {
187 var NewTarget = getPrototypeOf(this).constructor;
188 result = _Reflect$construct(Super, arguments, NewTarget);
189 } else {
190 result = Super.apply(this, arguments);
191 }
192
193 return possibleConstructorReturn(this, result);
194 };
195 }
196
197 module.exports = _createSuper;
198
199 /***/ }),
200 /* 6 */
201 /***/ (function(module, exports) {
202
203 var core = module.exports = { version: '2.6.11' };
204 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
205
206
207 /***/ }),
208 /* 7 */
209 /***/ (function(module, exports, __webpack_require__) {
210
211 var global = __webpack_require__(8);
212 var core = __webpack_require__(6);
213 var ctx = __webpack_require__(29);
214 var hide = __webpack_require__(22);
215 var has = __webpack_require__(17);
216 var PROTOTYPE = 'prototype';
217
218 var $export = function (type, name, source) {
219 var IS_FORCED = type & $export.F;
220 var IS_GLOBAL = type & $export.G;
221 var IS_STATIC = type & $export.S;
222 var IS_PROTO = type & $export.P;
223 var IS_BIND = type & $export.B;
224 var IS_WRAP = type & $export.W;
225 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
226 var expProto = exports[PROTOTYPE];
227 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
228 var key, own, out;
229 if (IS_GLOBAL) source = name;
230 for (key in source) {
231 // contains in native
232 own = !IS_FORCED && target && target[key] !== undefined;
233 if (own && has(exports, key)) continue;
234 // export native or passed
235 out = own ? target[key] : source[key];
236 // prevent global pollution for namespaces
237 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
238 // bind timers to global for call from export context
239 : IS_BIND && own ? ctx(out, global)
240 // wrap global constructors for prevent change them in library
241 : IS_WRAP && target[key] == out ? (function (C) {
242 var F = function (a, b, c) {
243 if (this instanceof C) {
244 switch (arguments.length) {
245 case 0: return new C();
246 case 1: return new C(a);
247 case 2: return new C(a, b);
248 } return new C(a, b, c);
249 } return C.apply(this, arguments);
250 };
251 F[PROTOTYPE] = C[PROTOTYPE];
252 return F;
253 // make static versions for prototype methods
254 })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
255 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
256 if (IS_PROTO) {
257 (exports.virtual || (exports.virtual = {}))[key] = out;
258 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
259 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
260 }
261 }
262 };
263 // type bitmap
264 $export.F = 1; // forced
265 $export.G = 2; // global
266 $export.S = 4; // static
267 $export.P = 8; // proto
268 $export.B = 16; // bind
269 $export.W = 32; // wrap
270 $export.U = 64; // safe
271 $export.R = 128; // real proto method for `library`
272 module.exports = $export;
273
274
275 /***/ }),
276 /* 8 */
277 /***/ (function(module, exports) {
278
279 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
280 var global = module.exports = typeof window != 'undefined' && window.Math == Math
281 ? window : typeof self != 'undefined' && self.Math == Math ? self
282 // eslint-disable-next-line no-new-func
283 : Function('return this')();
284 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
285
286
287 /***/ }),
288 /* 9 */
289 /***/ (function(module, exports) {
290
291 module.exports = function (it) {
292 return typeof it === 'object' ? it !== null : typeof it === 'function';
293 };
294
295
296 /***/ }),
297 /* 10 */
298 /***/ (function(module, exports, __webpack_require__) {
299
300 var store = __webpack_require__(71)('wks');
301 var uid = __webpack_require__(55);
302 var Symbol = __webpack_require__(8).Symbol;
303 var USE_SYMBOL = typeof Symbol == 'function';
304
305 var $exports = module.exports = function (name) {
306 return store[name] || (store[name] =
307 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
308 };
309
310 $exports.store = store;
311
312
313 /***/ }),
314 /* 11 */
315 /***/ (function(module, exports, __webpack_require__) {
316
317 var isObject = __webpack_require__(9);
318 module.exports = function (it) {
319 if (!isObject(it)) throw TypeError(it + ' is not an object!');
320 return it;
321 };
322
323
324 /***/ }),
325 /* 12 */,
326 /* 13 */
327 /***/ (function(module, exports, __webpack_require__) {
328
329 var store = __webpack_require__(76)('wks');
330 var uid = __webpack_require__(77);
331 var Symbol = __webpack_require__(18).Symbol;
332 var USE_SYMBOL = typeof Symbol == 'function';
333
334 var $exports = module.exports = function (name) {
335 return store[name] || (store[name] =
336 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
337 };
338
339 $exports.store = store;
340
341
342 /***/ }),
343 /* 14 */
344 /***/ (function(module, exports, __webpack_require__) {
345
346 // Thank's IE8 for his funny defineProperty
347 module.exports = !__webpack_require__(21)(function () {
348 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
349 });
350
351
352 /***/ }),
353 /* 15 */
354 /***/ (function(module, exports, __webpack_require__) {
355
356 var anObject = __webpack_require__(11);
357 var IE8_DOM_DEFINE = __webpack_require__(110);
358 var toPrimitive = __webpack_require__(69);
359 var dP = Object.defineProperty;
360
361 exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
362 anObject(O);
363 P = toPrimitive(P, true);
364 anObject(Attributes);
365 if (IE8_DOM_DEFINE) try {
366 return dP(O, P, Attributes);
367 } catch (e) { /* empty */ }
368 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
369 if ('value' in Attributes) O[P] = Attributes.value;
370 return O;
371 };
372
373
374 /***/ }),
375 /* 16 */
376 /***/ (function(module, exports, __webpack_require__) {
377
378 var _Object$getPrototypeOf = __webpack_require__(154);
379
380 var _Object$setPrototypeOf = __webpack_require__(111);
381
382 function _getPrototypeOf(o) {
383 module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {
384 return o.__proto__ || _Object$getPrototypeOf(o);
385 };
386 return _getPrototypeOf(o);
387 }
388
389 module.exports = _getPrototypeOf;
390
391 /***/ }),
392 /* 17 */
393 /***/ (function(module, exports) {
394
395 var hasOwnProperty = {}.hasOwnProperty;
396 module.exports = function (it, key) {
397 return hasOwnProperty.call(it, key);
398 };
399
400
401 /***/ }),
402 /* 18 */
403 /***/ (function(module, exports) {
404
405 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
406 var global = module.exports = typeof window != 'undefined' && window.Math == Math
407 ? window : typeof self != 'undefined' && self.Math == Math ? self
408 // eslint-disable-next-line no-new-func
409 : Function('return this')();
410 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
411
412
413 /***/ }),
414 /* 19 */
415 /***/ (function(module, exports, __webpack_require__) {
416
417 // to indexed object, toObject with fallback for non-array-like ES3 strings
418 var IObject = __webpack_require__(103);
419 var defined = __webpack_require__(65);
420 module.exports = function (it) {
421 return IObject(defined(it));
422 };
423
424
425 /***/ }),
426 /* 20 */
427 /***/ (function(module, exports, __webpack_require__) {
428
429 var isObject = __webpack_require__(31);
430 module.exports = function (it) {
431 if (!isObject(it)) throw TypeError(it + ' is not an object!');
432 return it;
433 };
434
435
436 /***/ }),
437 /* 21 */
438 /***/ (function(module, exports) {
439
440 module.exports = function (exec) {
441 try {
442 return !!exec();
443 } catch (e) {
444 return true;
445 }
446 };
447
448
449 /***/ }),
450 /* 22 */
451 /***/ (function(module, exports, __webpack_require__) {
452
453 var dP = __webpack_require__(15);
454 var createDesc = __webpack_require__(42);
455 module.exports = __webpack_require__(14) ? function (object, key, value) {
456 return dP.f(object, key, createDesc(1, value));
457 } : function (object, key, value) {
458 object[key] = value;
459 return object;
460 };
461
462
463 /***/ }),
464 /* 23 */
465 /***/ (function(module, exports, __webpack_require__) {
466
467 "use strict";
468
469
470 var _interopRequireDefault = __webpack_require__(0);
471
472 var _Object$defineProperty = __webpack_require__(1);
473
474 _Object$defineProperty(exports, "__esModule", {
475 value: true
476 });
477
478 exports.default = void 0;
479
480 var _typeof2 = _interopRequireDefault(__webpack_require__(50));
481
482 var _regenerator = _interopRequireDefault(__webpack_require__(84));
483
484 __webpack_require__(150);
485
486 __webpack_require__(122);
487
488 __webpack_require__(80);
489
490 __webpack_require__(271);
491
492 var _promise = _interopRequireDefault(__webpack_require__(134));
493
494 var _isArray = _interopRequireDefault(__webpack_require__(86));
495
496 __webpack_require__(68);
497
498 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(85));
499
500 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
501
502 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
503
504 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
505
506 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
507
508 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
509
510 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
511
512 var _argsObject = _interopRequireDefault(__webpack_require__(227));
513
514 var CommandBase = /*#__PURE__*/function (_ArgsObject) {
515 (0, _inherits2.default)(CommandBase, _ArgsObject);
516
517 var _super = (0, _createSuper2.default)(CommandBase);
518
519 (0, _createClass2.default)(CommandBase, null, [{
520 key: "getInstanceType",
521 value: function getInstanceType() {
522 return 'CommandBase';
523 }
524 /**
525 * Current component.
526 *
527 * @type {Component}
528 */
529
530 }]);
531
532 /**
533 * Function constructor().
534 *
535 * Create Commands Base.
536 *
537 * @param [args={}]
538 * @param [commandsAPI={}]
539 */
540 function CommandBase(args) {
541 var _this;
542
543 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commands;
544 (0, _classCallCheck2.default)(this, CommandBase);
545 _this = _super.call(this, args); // Acknowledge self about which command it run.
546
547 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "component", void 0);
548 _this.currentCommand = commandsAPI.getCurrentLast(); // Assign instance of current component.
549
550 _this.component = commandsAPI.getComponent(_this.currentCommand); // Who ever need do something before without `super` the constructor can use `initialize` method.
551
552 _this.initialize(args); // Refresh args, maybe the changed via `initialize`.
553
554
555 args = _this.args; // Validate args before run.
556
557 _this.validateArgs(args);
558
559 return _this;
560 }
561 /**
562 * Function requireContainer().
563 *
564 * Validate `arg.container` & `arg.containers`.
565 *
566 * @param {{}} args
567 *
568 * @throws {Error}
569 */
570
571
572 (0, _createClass2.default)(CommandBase, [{
573 key: "requireContainer",
574 value: function requireContainer() {
575 var _this2 = this;
576
577 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
578
579 if (!args.container && !args.containers) {
580 throw Error('container or containers are required.');
581 }
582
583 if (args.container && args.containers) {
584 throw Error('container and containers cannot go together please select one of them.');
585 }
586
587 var containers = args.containers || [args.container];
588 containers.forEach(function (container) {
589 _this2.requireArgumentInstance('container', elementorModules.editor.Container, {
590 container: container
591 });
592 });
593 }
594 /**
595 * Function initialize().
596 *
597 * Initialize command, called after construction.
598 *
599 * @param [args={}]
600 */
601
602 }, {
603 key: "initialize",
604 value: function initialize() {
605 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
606 } // eslint-disable-line no-unused-vars
607
608 /**
609 * Function validateArgs().
610 *
611 * Validate command arguments.
612 *
613 * @param [args={}]
614 */
615
616 }, {
617 key: "validateArgs",
618 value: function validateArgs() {
619 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
620 } // eslint-disable-line no-unused-vars
621
622 /**
623 * Function isDataChanged().
624 *
625 * Whether the editor needs to set change flag on/off.
626 *
627 * @returns {boolean}
628 */
629
630 }, {
631 key: "isDataChanged",
632 value: function isDataChanged() {
633 return false;
634 }
635 /**
636 * Function apply().
637 *
638 * Do the actual command.
639 *
640 * @param [args={}]
641 *
642 * @returns {*}
643 */
644
645 }, {
646 key: "apply",
647 value: function apply() {
648 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
649 // eslint-disable-line no-unused-vars
650 elementorModules.ForceMethodImplementation();
651 }
652 /**
653 * Function run().
654 *
655 * Run command with history & hooks.
656 *
657 * @returns {*}
658 */
659
660 }, {
661 key: "run",
662 value: function run() {
663 var result; // For UI Hooks.
664
665 this.onBeforeRun(this.args);
666
667 try {
668 // For Data hooks.
669 this.onBeforeApply(this.args);
670 result = this.apply(this.args);
671 } catch (e) {
672 this.onCatchApply(e); // Catch 'Hook-Break' that comes from hooks base.
673
674 if (e instanceof $e.modules.HookBreak) {
675 // Bypass.
676 return false;
677 }
678 }
679
680 return this.runAfter(result);
681 }
682 }, {
683 key: "runAfter",
684 value: function runAfter(result) {
685 var _this3 = this;
686
687 var onAfter = function onAfter(_result) {
688 // Run Data hooks.
689 _this3.onAfterApply(_this3.args, _result); // TODO: Create Command-Base for Command-Document and apply it on after.
690
691
692 if (_this3.isDataChanged()) {
693 $e.internal('document/save/set-is-modified', {
694 status: true
695 });
696 } // For UI hooks.
697
698
699 _this3.onAfterRun(_this3.args, _result);
700 },
701 asyncOnAfter = /*#__PURE__*/function () {
702 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_result) {
703 var results, promises;
704 return _regenerator.default.wrap(function _callee$(_context) {
705 while (1) {
706 switch (_context.prev = _context.next) {
707 case 0:
708 // Run Data hooks.
709 results = _this3.onAfterApply(_this3.args, _result), promises = (0, _isArray.default)(results) ? results.flat().filter(function (filtered) {
710 return filtered instanceof _promise.default;
711 }) : [];
712
713 if (!promises.length) {
714 _context.next = 4;
715 break;
716 }
717
718 _context.next = 4;
719 return _promise.default.all(promises);
720
721 case 4:
722 if (_this3.isDataChanged()) {
723 // TODO: Create Command-Base for Command-Document and apply it on after.
724 $e.internal('document/save/set-is-modified', {
725 status: true
726 });
727 } // For UI hooks.
728
729
730 _this3.onAfterRun(_this3.args, _result);
731
732 case 6:
733 case "end":
734 return _context.stop();
735 }
736 }
737 }, _callee);
738 }));
739
740 return function asyncOnAfter(_x) {
741 return _ref.apply(this, arguments);
742 };
743 }(); // TODO: Temp code determine if it's a jQuery deferred object.
744
745
746 if (result && 'object' === (0, _typeof2.default)(result) && result.promise && result.then && result.fail) {
747 result.fail(this.onCatchApply.bind(this));
748 result.done(onAfter);
749 } else if (result instanceof _promise.default) {
750 // Override initial result ( promise ) to await onAfter promises, first!.
751 return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
752 return _regenerator.default.wrap(function _callee2$(_context2) {
753 while (1) {
754 switch (_context2.prev = _context2.next) {
755 case 0:
756 _context2.next = 2;
757 return result.catch(_this3.onCatchApply.bind(_this3));
758
759 case 2:
760 _context2.next = 4;
761 return result.then(function (_result) {
762 return asyncOnAfter(_result);
763 });
764
765 case 4:
766 return _context2.abrupt("return", result);
767
768 case 5:
769 case "end":
770 return _context2.stop();
771 }
772 }
773 }, _callee2);
774 }))();
775 } else {
776 onAfter(result);
777 }
778
779 return result;
780 }
781 /**
782 * Run all the catch hooks.
783 *
784 * @param {Error} e
785 */
786
787 }, {
788 key: "runCatchHooks",
789 value: function runCatchHooks(e) {
790 $e.hooks.runDataCatch(this.currentCommand, this.args, e);
791 $e.hooks.runUICatch(this.currentCommand, this.args, e);
792 }
793 /**
794 * Function onBeforeRun.
795 *
796 * Called before run().
797 *
798 * @param [args={}]
799 */
800
801 }, {
802 key: "onBeforeRun",
803 value: function onBeforeRun() {
804 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
805 $e.hooks.runUIBefore(this.currentCommand, args);
806 }
807 /**
808 * Function onAfterRun.
809 *
810 * Called after run().
811 *
812 * @param [args={}]
813 * @param [result={*}]
814 */
815
816 }, {
817 key: "onAfterRun",
818 value: function onAfterRun() {
819 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
820 var result = arguments.length > 1 ? arguments[1] : undefined;
821 $e.hooks.runUIAfter(this.currentCommand, args, result);
822 }
823 /**
824 * Function onBeforeApply.
825 *
826 * Called before apply().
827 *
828 * @param [args={}]
829 */
830
831 }, {
832 key: "onBeforeApply",
833 value: function onBeforeApply() {
834 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
835 $e.hooks.runDataDependency(this.currentCommand, args);
836 }
837 /**
838 * Function onAfterApply.
839 *
840 * Called after apply().
841 *
842 * @param [args={}]
843 * @param [result={*}]
844 */
845
846 }, {
847 key: "onAfterApply",
848 value: function onAfterApply() {
849 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
850 var result = arguments.length > 1 ? arguments[1] : undefined;
851 return $e.hooks.runDataAfter(this.currentCommand, args, result);
852 }
853 /**
854 * Function onCatchApply.
855 *
856 * Called after apply() failed.
857 *
858 * @param {Error} e
859 */
860
861 }, {
862 key: "onCatchApply",
863 value: function onCatchApply(e) {
864 this.runCatchHooks(e);
865 elementorCommon.helpers.consoleError(e);
866 }
867 }]);
868 return CommandBase;
869 }(_argsObject.default);
870
871 exports.default = CommandBase;
872
873 /***/ }),
874 /* 24 */
875 /***/ (function(module, exports, __webpack_require__) {
876
877 "use strict";
878
879 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
880 var $export = __webpack_require__(38);
881 var $find = __webpack_require__(190)(5);
882 var KEY = 'find';
883 var forced = true;
884 // Shouldn't skip holes
885 if (KEY in []) Array(1)[KEY](function () { forced = false; });
886 $export($export.P + $export.F * forced, 'Array', {
887 find: function find(callbackfn /* , that = undefined */) {
888 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
889 }
890 });
891 __webpack_require__(90)(KEY);
892
893
894 /***/ }),
895 /* 25 */
896 /***/ (function(module, exports, __webpack_require__) {
897
898 module.exports = __webpack_require__(202);
899
900 /***/ }),
901 /* 26 */
902 /***/ (function(module, exports, __webpack_require__) {
903
904 var _Object$getOwnPropertyDescriptor = __webpack_require__(116);
905
906 var _Reflect$get = __webpack_require__(186);
907
908 var superPropBase = __webpack_require__(189);
909
910 function _get(target, property, receiver) {
911 if (typeof Reflect !== "undefined" && _Reflect$get) {
912 module.exports = _get = _Reflect$get;
913 } else {
914 module.exports = _get = function _get(target, property, receiver) {
915 var base = superPropBase(target, property);
916 if (!base) return;
917
918 var desc = _Object$getOwnPropertyDescriptor(base, property);
919
920 if (desc.get) {
921 return desc.get.call(receiver);
922 }
923
924 return desc.value;
925 };
926 }
927
928 return _get(target, property, receiver || target);
929 }
930
931 module.exports = _get;
932
933 /***/ }),
934 /* 27 */
935 /***/ (function(module, exports, __webpack_require__) {
936
937 var _Object$defineProperty = __webpack_require__(1);
938
939 function _defineProperty(obj, key, value) {
940 if (key in obj) {
941 _Object$defineProperty(obj, key, {
942 value: value,
943 enumerable: true,
944 configurable: true,
945 writable: true
946 });
947 } else {
948 obj[key] = value;
949 }
950
951 return obj;
952 }
953
954 module.exports = _defineProperty;
955
956 /***/ }),
957 /* 28 */
958 /***/ (function(module, exports, __webpack_require__) {
959
960 // Thank's IE8 for his funny defineProperty
961 module.exports = !__webpack_require__(36)(function () {
962 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
963 });
964
965
966 /***/ }),
967 /* 29 */
968 /***/ (function(module, exports, __webpack_require__) {
969
970 // optional / simple context binding
971 var aFunction = __webpack_require__(35);
972 module.exports = function (fn, that, length) {
973 aFunction(fn);
974 if (that === undefined) return fn;
975 switch (length) {
976 case 1: return function (a) {
977 return fn.call(that, a);
978 };
979 case 2: return function (a, b) {
980 return fn.call(that, a, b);
981 };
982 case 3: return function (a, b, c) {
983 return fn.call(that, a, b, c);
984 };
985 }
986 return function (/* ...args */) {
987 return fn.apply(that, arguments);
988 };
989 };
990
991
992 /***/ }),
993 /* 30 */
994 /***/ (function(module, exports, __webpack_require__) {
995
996 var dP = __webpack_require__(51);
997 var createDesc = __webpack_require__(106);
998 module.exports = __webpack_require__(28) ? function (object, key, value) {
999 return dP.f(object, key, createDesc(1, value));
1000 } : function (object, key, value) {
1001 object[key] = value;
1002 return object;
1003 };
1004
1005
1006 /***/ }),
1007 /* 31 */
1008 /***/ (function(module, exports) {
1009
1010 module.exports = function (it) {
1011 return typeof it === 'object' ? it !== null : typeof it === 'function';
1012 };
1013
1014
1015 /***/ }),
1016 /* 32 */
1017 /***/ (function(module, exports, __webpack_require__) {
1018
1019 // 7.1.13 ToObject(argument)
1020 var defined = __webpack_require__(65);
1021 module.exports = function (it) {
1022 return Object(defined(it));
1023 };
1024
1025
1026 /***/ }),
1027 /* 33 */
1028 /***/ (function(module, exports) {
1029
1030 module.exports = {};
1031
1032
1033 /***/ }),
1034 /* 34 */
1035 /***/ (function(module, exports, __webpack_require__) {
1036
1037 var _Object$getOwnPropertyDescriptor = __webpack_require__(116);
1038
1039 var _Object$defineProperty = __webpack_require__(1);
1040
1041 var _typeof = __webpack_require__(50);
1042
1043 var _WeakMap = __webpack_require__(263);
1044
1045 function _getRequireWildcardCache() {
1046 if (typeof _WeakMap !== "function") return null;
1047 var cache = new _WeakMap();
1048
1049 _getRequireWildcardCache = function _getRequireWildcardCache() {
1050 return cache;
1051 };
1052
1053 return cache;
1054 }
1055
1056 function _interopRequireWildcard(obj) {
1057 if (obj && obj.__esModule) {
1058 return obj;
1059 }
1060
1061 if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
1062 return {
1063 "default": obj
1064 };
1065 }
1066
1067 var cache = _getRequireWildcardCache();
1068
1069 if (cache && cache.has(obj)) {
1070 return cache.get(obj);
1071 }
1072
1073 var newObj = {};
1074 var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
1075
1076 for (var key in obj) {
1077 if (Object.prototype.hasOwnProperty.call(obj, key)) {
1078 var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
1079
1080 if (desc && (desc.get || desc.set)) {
1081 _Object$defineProperty(newObj, key, desc);
1082 } else {
1083 newObj[key] = obj[key];
1084 }
1085 }
1086 }
1087
1088 newObj["default"] = obj;
1089
1090 if (cache) {
1091 cache.set(obj, newObj);
1092 }
1093
1094 return newObj;
1095 }
1096
1097 module.exports = _interopRequireWildcard;
1098
1099 /***/ }),
1100 /* 35 */
1101 /***/ (function(module, exports) {
1102
1103 module.exports = function (it) {
1104 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1105 return it;
1106 };
1107
1108
1109 /***/ }),
1110 /* 36 */
1111 /***/ (function(module, exports) {
1112
1113 module.exports = function (exec) {
1114 try {
1115 return !!exec();
1116 } catch (e) {
1117 return true;
1118 }
1119 };
1120
1121
1122 /***/ }),
1123 /* 37 */
1124 /***/ (function(module, exports, __webpack_require__) {
1125
1126 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1127 var $keys = __webpack_require__(112);
1128 var enumBugKeys = __webpack_require__(74);
1129
1130 module.exports = Object.keys || function keys(O) {
1131 return $keys(O, enumBugKeys);
1132 };
1133
1134
1135 /***/ }),
1136 /* 38 */
1137 /***/ (function(module, exports, __webpack_require__) {
1138
1139 var global = __webpack_require__(18);
1140 var core = __webpack_require__(58);
1141 var hide = __webpack_require__(30);
1142 var redefine = __webpack_require__(39);
1143 var ctx = __webpack_require__(81);
1144 var PROTOTYPE = 'prototype';
1145
1146 var $export = function (type, name, source) {
1147 var IS_FORCED = type & $export.F;
1148 var IS_GLOBAL = type & $export.G;
1149 var IS_STATIC = type & $export.S;
1150 var IS_PROTO = type & $export.P;
1151 var IS_BIND = type & $export.B;
1152 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
1153 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
1154 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
1155 var key, own, out, exp;
1156 if (IS_GLOBAL) source = name;
1157 for (key in source) {
1158 // contains in native
1159 own = !IS_FORCED && target && target[key] !== undefined;
1160 // export native or passed
1161 out = (own ? target : source)[key];
1162 // bind timers to global for call from export context
1163 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
1164 // extend global
1165 if (target) redefine(target, key, out, type & $export.U);
1166 // export
1167 if (exports[key] != out) hide(exports, key, exp);
1168 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
1169 }
1170 };
1171 global.core = core;
1172 // type bitmap
1173 $export.F = 1; // forced
1174 $export.G = 2; // global
1175 $export.S = 4; // static
1176 $export.P = 8; // proto
1177 $export.B = 16; // bind
1178 $export.W = 32; // wrap
1179 $export.U = 64; // safe
1180 $export.R = 128; // real proto method for `library`
1181 module.exports = $export;
1182
1183
1184 /***/ }),
1185 /* 39 */
1186 /***/ (function(module, exports, __webpack_require__) {
1187
1188 var global = __webpack_require__(18);
1189 var hide = __webpack_require__(30);
1190 var has = __webpack_require__(64);
1191 var SRC = __webpack_require__(77)('src');
1192 var $toString = __webpack_require__(147);
1193 var TO_STRING = 'toString';
1194 var TPL = ('' + $toString).split(TO_STRING);
1195
1196 __webpack_require__(58).inspectSource = function (it) {
1197 return $toString.call(it);
1198 };
1199
1200 (module.exports = function (O, key, val, safe) {
1201 var isFunction = typeof val == 'function';
1202 if (isFunction) has(val, 'name') || hide(val, 'name', key);
1203 if (O[key] === val) return;
1204 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
1205 if (O === global) {
1206 O[key] = val;
1207 } else if (!safe) {
1208 delete O[key];
1209 hide(O, key, val);
1210 } else if (O[key]) {
1211 O[key] = val;
1212 } else {
1213 hide(O, key, val);
1214 }
1215 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1216 })(Function.prototype, TO_STRING, function toString() {
1217 return typeof this == 'function' && this[SRC] || $toString.call(this);
1218 });
1219
1220
1221 /***/ }),
1222 /* 40 */
1223 /***/ (function(module, exports, __webpack_require__) {
1224
1225 var dP = __webpack_require__(51).f;
1226 var FProto = Function.prototype;
1227 var nameRE = /^\s*function ([^ (]*)/;
1228 var NAME = 'name';
1229
1230 // 19.2.4.2 name
1231 NAME in FProto || __webpack_require__(28) && dP(FProto, NAME, {
1232 configurable: true,
1233 get: function () {
1234 try {
1235 return ('' + this).match(nameRE)[1];
1236 } catch (e) {
1237 return '';
1238 }
1239 }
1240 });
1241
1242
1243 /***/ }),
1244 /* 41 */,
1245 /* 42 */
1246 /***/ (function(module, exports) {
1247
1248 module.exports = function (bitmap, value) {
1249 return {
1250 enumerable: !(bitmap & 1),
1251 configurable: !(bitmap & 2),
1252 writable: !(bitmap & 4),
1253 value: value
1254 };
1255 };
1256
1257
1258 /***/ }),
1259 /* 43 */
1260 /***/ (function(module, exports) {
1261
1262 // 7.2.1 RequireObjectCoercible(argument)
1263 module.exports = function (it) {
1264 if (it == undefined) throw TypeError("Can't call method on " + it);
1265 return it;
1266 };
1267
1268
1269 /***/ }),
1270 /* 44 */
1271 /***/ (function(module, exports) {
1272
1273 module.exports = true;
1274
1275
1276 /***/ }),
1277 /* 45 */
1278 /***/ (function(module, exports) {
1279
1280 function _assertThisInitialized(self) {
1281 if (self === void 0) {
1282 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1283 }
1284
1285 return self;
1286 }
1287
1288 module.exports = _assertThisInitialized;
1289
1290 /***/ }),
1291 /* 46 */
1292 /***/ (function(module, exports, __webpack_require__) {
1293
1294 // 7.1.15 ToLength
1295 var toInteger = __webpack_require__(60);
1296 var min = Math.min;
1297 module.exports = function (it) {
1298 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1299 };
1300
1301
1302 /***/ }),
1303 /* 47 */
1304 /***/ (function(module, exports, __webpack_require__) {
1305
1306 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1307 var anObject = __webpack_require__(11);
1308 var dPs = __webpack_require__(131);
1309 var enumBugKeys = __webpack_require__(74);
1310 var IE_PROTO = __webpack_require__(70)('IE_PROTO');
1311 var Empty = function () { /* empty */ };
1312 var PROTOTYPE = 'prototype';
1313
1314 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1315 var createDict = function () {
1316 // Thrash, waste and sodomy: IE GC bug
1317 var iframe = __webpack_require__(88)('iframe');
1318 var i = enumBugKeys.length;
1319 var lt = '<';
1320 var gt = '>';
1321 var iframeDocument;
1322 iframe.style.display = 'none';
1323 __webpack_require__(132).appendChild(iframe);
1324 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1325 // createDict = iframe.contentWindow.Object;
1326 // html.removeChild(iframe);
1327 iframeDocument = iframe.contentWindow.document;
1328 iframeDocument.open();
1329 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1330 iframeDocument.close();
1331 createDict = iframeDocument.F;
1332 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1333 return createDict();
1334 };
1335
1336 module.exports = Object.create || function create(O, Properties) {
1337 var result;
1338 if (O !== null) {
1339 Empty[PROTOTYPE] = anObject(O);
1340 result = new Empty();
1341 Empty[PROTOTYPE] = null;
1342 // add "__proto__" for Object.getPrototypeOf polyfill
1343 result[IE_PROTO] = O;
1344 } else result = createDict();
1345 return Properties === undefined ? result : dPs(result, Properties);
1346 };
1347
1348
1349 /***/ }),
1350 /* 48 */
1351 /***/ (function(module, exports, __webpack_require__) {
1352
1353 var pIE = __webpack_require__(49);
1354 var createDesc = __webpack_require__(42);
1355 var toIObject = __webpack_require__(19);
1356 var toPrimitive = __webpack_require__(69);
1357 var has = __webpack_require__(17);
1358 var IE8_DOM_DEFINE = __webpack_require__(110);
1359 var gOPD = Object.getOwnPropertyDescriptor;
1360
1361 exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) {
1362 O = toIObject(O);
1363 P = toPrimitive(P, true);
1364 if (IE8_DOM_DEFINE) try {
1365 return gOPD(O, P);
1366 } catch (e) { /* empty */ }
1367 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
1368 };
1369
1370
1371 /***/ }),
1372 /* 49 */
1373 /***/ (function(module, exports) {
1374
1375 exports.f = {}.propertyIsEnumerable;
1376
1377
1378 /***/ }),
1379 /* 50 */
1380 /***/ (function(module, exports, __webpack_require__) {
1381
1382 var _Symbol$iterator = __webpack_require__(148);
1383
1384 var _Symbol = __webpack_require__(107);
1385
1386 function _typeof(obj) {
1387 "@babel/helpers - typeof";
1388
1389 if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
1390 module.exports = _typeof = function _typeof(obj) {
1391 return typeof obj;
1392 };
1393 } else {
1394 module.exports = _typeof = function _typeof(obj) {
1395 return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
1396 };
1397 }
1398
1399 return _typeof(obj);
1400 }
1401
1402 module.exports = _typeof;
1403
1404 /***/ }),
1405 /* 51 */
1406 /***/ (function(module, exports, __webpack_require__) {
1407
1408 var anObject = __webpack_require__(20);
1409 var IE8_DOM_DEFINE = __webpack_require__(135);
1410 var toPrimitive = __webpack_require__(127);
1411 var dP = Object.defineProperty;
1412
1413 exports.f = __webpack_require__(28) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
1414 anObject(O);
1415 P = toPrimitive(P, true);
1416 anObject(Attributes);
1417 if (IE8_DOM_DEFINE) try {
1418 return dP(O, P, Attributes);
1419 } catch (e) { /* empty */ }
1420 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
1421 if ('value' in Attributes) O[P] = Attributes.value;
1422 return O;
1423 };
1424
1425
1426 /***/ }),
1427 /* 52 */
1428 /***/ (function(module, exports) {
1429
1430 var toString = {}.toString;
1431
1432 module.exports = function (it) {
1433 return toString.call(it).slice(8, -1);
1434 };
1435
1436
1437 /***/ }),
1438 /* 53 */
1439 /***/ (function(module, exports, __webpack_require__) {
1440
1441 var def = __webpack_require__(15).f;
1442 var has = __webpack_require__(17);
1443 var TAG = __webpack_require__(10)('toStringTag');
1444
1445 module.exports = function (it, tag, stat) {
1446 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1447 };
1448
1449
1450 /***/ }),
1451 /* 54 */
1452 /***/ (function(module, exports, __webpack_require__) {
1453
1454 module.exports = __webpack_require__(229);
1455
1456 /***/ }),
1457 /* 55 */
1458 /***/ (function(module, exports) {
1459
1460 var id = 0;
1461 var px = Math.random();
1462 module.exports = function (key) {
1463 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1464 };
1465
1466
1467 /***/ }),
1468 /* 56 */
1469 /***/ (function(module, exports) {
1470
1471 var toString = {}.toString;
1472
1473 module.exports = function (it) {
1474 return toString.call(it).slice(8, -1);
1475 };
1476
1477
1478 /***/ }),
1479 /* 57 */
1480 /***/ (function(module, exports, __webpack_require__) {
1481
1482 "use strict";
1483
1484 var $at = __webpack_require__(169)(true);
1485
1486 // 21.1.3.27 String.prototype[@@iterator]()
1487 __webpack_require__(96)(String, 'String', function (iterated) {
1488 this._t = String(iterated); // target
1489 this._i = 0; // next index
1490 // 21.1.5.2.1 %StringIteratorPrototype%.next()
1491 }, function () {
1492 var O = this._t;
1493 var index = this._i;
1494 var point;
1495 if (index >= O.length) return { value: undefined, done: true };
1496 point = $at(O, index);
1497 this._i += point.length;
1498 return { value: point, done: false };
1499 });
1500
1501
1502 /***/ }),
1503 /* 58 */
1504 /***/ (function(module, exports) {
1505
1506 var core = module.exports = { version: '2.6.11' };
1507 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1508
1509
1510 /***/ }),
1511 /* 59 */
1512 /***/ (function(module, exports, __webpack_require__) {
1513
1514 __webpack_require__(171);
1515 var global = __webpack_require__(8);
1516 var hide = __webpack_require__(22);
1517 var Iterators = __webpack_require__(33);
1518 var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
1519
1520 var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
1521 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
1522 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
1523 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
1524 'TextTrackList,TouchList').split(',');
1525
1526 for (var i = 0; i < DOMIterables.length; i++) {
1527 var NAME = DOMIterables[i];
1528 var Collection = global[NAME];
1529 var proto = Collection && Collection.prototype;
1530 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1531 Iterators[NAME] = Iterators.Array;
1532 }
1533
1534
1535 /***/ }),
1536 /* 60 */
1537 /***/ (function(module, exports) {
1538
1539 // 7.1.4 ToInteger
1540 var ceil = Math.ceil;
1541 var floor = Math.floor;
1542 module.exports = function (it) {
1543 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1544 };
1545
1546
1547 /***/ }),
1548 /* 61 */
1549 /***/ (function(module, exports, __webpack_require__) {
1550
1551 "use strict";
1552
1553
1554 var anObject = __webpack_require__(20);
1555 var toObject = __webpack_require__(102);
1556 var toLength = __webpack_require__(46);
1557 var toInteger = __webpack_require__(60);
1558 var advanceStringIndex = __webpack_require__(108);
1559 var regExpExec = __webpack_require__(100);
1560 var max = Math.max;
1561 var min = Math.min;
1562 var floor = Math.floor;
1563 var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1564 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1565
1566 var maybeToString = function (it) {
1567 return it === undefined ? it : String(it);
1568 };
1569
1570 // @@replace logic
1571 __webpack_require__(101)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1572 return [
1573 // `String.prototype.replace` method
1574 // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1575 function replace(searchValue, replaceValue) {
1576 var O = defined(this);
1577 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1578 return fn !== undefined
1579 ? fn.call(searchValue, O, replaceValue)
1580 : $replace.call(String(O), searchValue, replaceValue);
1581 },
1582 // `RegExp.prototype[@@replace]` method
1583 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1584 function (regexp, replaceValue) {
1585 var res = maybeCallNative($replace, regexp, this, replaceValue);
1586 if (res.done) return res.value;
1587
1588 var rx = anObject(regexp);
1589 var S = String(this);
1590 var functionalReplace = typeof replaceValue === 'function';
1591 if (!functionalReplace) replaceValue = String(replaceValue);
1592 var global = rx.global;
1593 if (global) {
1594 var fullUnicode = rx.unicode;
1595 rx.lastIndex = 0;
1596 }
1597 var results = [];
1598 while (true) {
1599 var result = regExpExec(rx, S);
1600 if (result === null) break;
1601 results.push(result);
1602 if (!global) break;
1603 var matchStr = String(result[0]);
1604 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1605 }
1606 var accumulatedResult = '';
1607 var nextSourcePosition = 0;
1608 for (var i = 0; i < results.length; i++) {
1609 result = results[i];
1610 var matched = String(result[0]);
1611 var position = max(min(toInteger(result.index), S.length), 0);
1612 var captures = [];
1613 // NOTE: This is equivalent to
1614 // captures = result.slice(1).map(maybeToString)
1615 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1616 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1617 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1618 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1619 var namedCaptures = result.groups;
1620 if (functionalReplace) {
1621 var replacerArgs = [matched].concat(captures, position, S);
1622 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1623 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1624 } else {
1625 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1626 }
1627 if (position >= nextSourcePosition) {
1628 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1629 nextSourcePosition = position + matched.length;
1630 }
1631 }
1632 return accumulatedResult + S.slice(nextSourcePosition);
1633 }
1634 ];
1635
1636 // https://tc39.github.io/ecma262/#sec-getsubstitution
1637 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1638 var tailPos = position + matched.length;
1639 var m = captures.length;
1640 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1641 if (namedCaptures !== undefined) {
1642 namedCaptures = toObject(namedCaptures);
1643 symbols = SUBSTITUTION_SYMBOLS;
1644 }
1645 return $replace.call(replacement, symbols, function (match, ch) {
1646 var capture;
1647 switch (ch.charAt(0)) {
1648 case '$': return '$';
1649 case '&': return matched;
1650 case '`': return str.slice(0, position);
1651 case "'": return str.slice(tailPos);
1652 case '<':
1653 capture = namedCaptures[ch.slice(1, -1)];
1654 break;
1655 default: // \d\d?
1656 var n = +ch;
1657 if (n === 0) return match;
1658 if (n > m) {
1659 var f = floor(n / 10);
1660 if (f === 0) return match;
1661 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1662 return match;
1663 }
1664 capture = captures[n - 1];
1665 }
1666 return capture === undefined ? '' : capture;
1667 });
1668 }
1669 });
1670
1671
1672 /***/ }),
1673 /* 62 */
1674 /***/ (function(module, exports, __webpack_require__) {
1675
1676 exports.f = __webpack_require__(10);
1677
1678
1679 /***/ }),
1680 /* 63 */
1681 /***/ (function(module, exports, __webpack_require__) {
1682
1683 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1684 var has = __webpack_require__(17);
1685 var toObject = __webpack_require__(32);
1686 var IE_PROTO = __webpack_require__(70)('IE_PROTO');
1687 var ObjectProto = Object.prototype;
1688
1689 module.exports = Object.getPrototypeOf || function (O) {
1690 O = toObject(O);
1691 if (has(O, IE_PROTO)) return O[IE_PROTO];
1692 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1693 return O.constructor.prototype;
1694 } return O instanceof Object ? ObjectProto : null;
1695 };
1696
1697
1698 /***/ }),
1699 /* 64 */
1700 /***/ (function(module, exports) {
1701
1702 var hasOwnProperty = {}.hasOwnProperty;
1703 module.exports = function (it, key) {
1704 return hasOwnProperty.call(it, key);
1705 };
1706
1707
1708 /***/ }),
1709 /* 65 */
1710 /***/ (function(module, exports) {
1711
1712 // 7.2.1 RequireObjectCoercible(argument)
1713 module.exports = function (it) {
1714 if (it == undefined) throw TypeError("Can't call method on " + it);
1715 return it;
1716 };
1717
1718
1719 /***/ }),
1720 /* 66 */
1721 /***/ (function(module, exports, __webpack_require__) {
1722
1723 var META = __webpack_require__(55)('meta');
1724 var isObject = __webpack_require__(9);
1725 var has = __webpack_require__(17);
1726 var setDesc = __webpack_require__(15).f;
1727 var id = 0;
1728 var isExtensible = Object.isExtensible || function () {
1729 return true;
1730 };
1731 var FREEZE = !__webpack_require__(21)(function () {
1732 return isExtensible(Object.preventExtensions({}));
1733 });
1734 var setMeta = function (it) {
1735 setDesc(it, META, { value: {
1736 i: 'O' + ++id, // object ID
1737 w: {} // weak collections IDs
1738 } });
1739 };
1740 var fastKey = function (it, create) {
1741 // return primitive with prefix
1742 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1743 if (!has(it, META)) {
1744 // can't set metadata to uncaught frozen object
1745 if (!isExtensible(it)) return 'F';
1746 // not necessary to add metadata
1747 if (!create) return 'E';
1748 // add missing metadata
1749 setMeta(it);
1750 // return object ID
1751 } return it[META].i;
1752 };
1753 var getWeak = function (it, create) {
1754 if (!has(it, META)) {
1755 // can't set metadata to uncaught frozen object
1756 if (!isExtensible(it)) return true;
1757 // not necessary to add metadata
1758 if (!create) return false;
1759 // add missing metadata
1760 setMeta(it);
1761 // return hash weak collections IDs
1762 } return it[META].w;
1763 };
1764 // add metadata on freeze-family methods calling
1765 var onFreeze = function (it) {
1766 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
1767 return it;
1768 };
1769 var meta = module.exports = {
1770 KEY: META,
1771 NEED: false,
1772 fastKey: fastKey,
1773 getWeak: getWeak,
1774 onFreeze: onFreeze
1775 };
1776
1777
1778 /***/ }),
1779 /* 67 */
1780 /***/ (function(module, exports) {
1781
1782 exports.f = Object.getOwnPropertySymbols;
1783
1784
1785 /***/ }),
1786 /* 68 */
1787 /***/ (function(module, exports, __webpack_require__) {
1788
1789 /**
1790 * Copyright (c) 2014-present, Facebook, Inc.
1791 *
1792 * This source code is licensed under the MIT license found in the
1793 * LICENSE file in the root directory of this source tree.
1794 */
1795
1796 var runtime = (function (exports) {
1797 "use strict";
1798
1799 var Op = Object.prototype;
1800 var hasOwn = Op.hasOwnProperty;
1801 var undefined; // More compressible than void 0.
1802 var $Symbol = typeof Symbol === "function" ? Symbol : {};
1803 var iteratorSymbol = $Symbol.iterator || "@@iterator";
1804 var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1805 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1806
1807 function define(obj, key, value) {
1808 Object.defineProperty(obj, key, {
1809 value: value,
1810 enumerable: true,
1811 configurable: true,
1812 writable: true
1813 });
1814 return obj[key];
1815 }
1816 try {
1817 // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1818 define({}, "");
1819 } catch (err) {
1820 define = function(obj, key, value) {
1821 return obj[key] = value;
1822 };
1823 }
1824
1825 function wrap(innerFn, outerFn, self, tryLocsList) {
1826 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1827 var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1828 var generator = Object.create(protoGenerator.prototype);
1829 var context = new Context(tryLocsList || []);
1830
1831 // The ._invoke method unifies the implementations of the .next,
1832 // .throw, and .return methods.
1833 generator._invoke = makeInvokeMethod(innerFn, self, context);
1834
1835 return generator;
1836 }
1837 exports.wrap = wrap;
1838
1839 // Try/catch helper to minimize deoptimizations. Returns a completion
1840 // record like context.tryEntries[i].completion. This interface could
1841 // have been (and was previously) designed to take a closure to be
1842 // invoked without arguments, but in all the cases we care about we
1843 // already have an existing method we want to call, so there's no need
1844 // to create a new function object. We can even get away with assuming
1845 // the method takes exactly one argument, since that happens to be true
1846 // in every case, so we don't have to touch the arguments object. The
1847 // only additional allocation required is the completion record, which
1848 // has a stable shape and so hopefully should be cheap to allocate.
1849 function tryCatch(fn, obj, arg) {
1850 try {
1851 return { type: "normal", arg: fn.call(obj, arg) };
1852 } catch (err) {
1853 return { type: "throw", arg: err };
1854 }
1855 }
1856
1857 var GenStateSuspendedStart = "suspendedStart";
1858 var GenStateSuspendedYield = "suspendedYield";
1859 var GenStateExecuting = "executing";
1860 var GenStateCompleted = "completed";
1861
1862 // Returning this object from the innerFn has the same effect as
1863 // breaking out of the dispatch switch statement.
1864 var ContinueSentinel = {};
1865
1866 // Dummy constructor functions that we use as the .constructor and
1867 // .constructor.prototype properties for functions that return Generator
1868 // objects. For full spec compliance, you may wish to configure your
1869 // minifier not to mangle the names of these two functions.
1870 function Generator() {}
1871 function GeneratorFunction() {}
1872 function GeneratorFunctionPrototype() {}
1873
1874 // This is a polyfill for %IteratorPrototype% for environments that
1875 // don't natively support it.
1876 var IteratorPrototype = {};
1877 IteratorPrototype[iteratorSymbol] = function () {
1878 return this;
1879 };
1880
1881 var getProto = Object.getPrototypeOf;
1882 var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1883 if (NativeIteratorPrototype &&
1884 NativeIteratorPrototype !== Op &&
1885 hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1886 // This environment has a native %IteratorPrototype%; use it instead
1887 // of the polyfill.
1888 IteratorPrototype = NativeIteratorPrototype;
1889 }
1890
1891 var Gp = GeneratorFunctionPrototype.prototype =
1892 Generator.prototype = Object.create(IteratorPrototype);
1893 GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
1894 GeneratorFunctionPrototype.constructor = GeneratorFunction;
1895 GeneratorFunction.displayName = define(
1896 GeneratorFunctionPrototype,
1897 toStringTagSymbol,
1898 "GeneratorFunction"
1899 );
1900
1901 // Helper for defining the .next, .throw, and .return methods of the
1902 // Iterator interface in terms of a single ._invoke method.
1903 function defineIteratorMethods(prototype) {
1904 ["next", "throw", "return"].forEach(function(method) {
1905 define(prototype, method, function(arg) {
1906 return this._invoke(method, arg);
1907 });
1908 });
1909 }
1910
1911 exports.isGeneratorFunction = function(genFun) {
1912 var ctor = typeof genFun === "function" && genFun.constructor;
1913 return ctor
1914 ? ctor === GeneratorFunction ||
1915 // For the native GeneratorFunction constructor, the best we can
1916 // do is to check its .name property.
1917 (ctor.displayName || ctor.name) === "GeneratorFunction"
1918 : false;
1919 };
1920
1921 exports.mark = function(genFun) {
1922 if (Object.setPrototypeOf) {
1923 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1924 } else {
1925 genFun.__proto__ = GeneratorFunctionPrototype;
1926 define(genFun, toStringTagSymbol, "GeneratorFunction");
1927 }
1928 genFun.prototype = Object.create(Gp);
1929 return genFun;
1930 };
1931
1932 // Within the body of any async function, `await x` is transformed to
1933 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1934 // `hasOwn.call(value, "__await")` to determine if the yielded value is
1935 // meant to be awaited.
1936 exports.awrap = function(arg) {
1937 return { __await: arg };
1938 };
1939
1940 function AsyncIterator(generator, PromiseImpl) {
1941 function invoke(method, arg, resolve, reject) {
1942 var record = tryCatch(generator[method], generator, arg);
1943 if (record.type === "throw") {
1944 reject(record.arg);
1945 } else {
1946 var result = record.arg;
1947 var value = result.value;
1948 if (value &&
1949 typeof value === "object" &&
1950 hasOwn.call(value, "__await")) {
1951 return PromiseImpl.resolve(value.__await).then(function(value) {
1952 invoke("next", value, resolve, reject);
1953 }, function(err) {
1954 invoke("throw", err, resolve, reject);
1955 });
1956 }
1957
1958 return PromiseImpl.resolve(value).then(function(unwrapped) {
1959 // When a yielded Promise is resolved, its final value becomes
1960 // the .value of the Promise<{value,done}> result for the
1961 // current iteration.
1962 result.value = unwrapped;
1963 resolve(result);
1964 }, function(error) {
1965 // If a rejected Promise was yielded, throw the rejection back
1966 // into the async generator function so it can be handled there.
1967 return invoke("throw", error, resolve, reject);
1968 });
1969 }
1970 }
1971
1972 var previousPromise;
1973
1974 function enqueue(method, arg) {
1975 function callInvokeWithMethodAndArg() {
1976 return new PromiseImpl(function(resolve, reject) {
1977 invoke(method, arg, resolve, reject);
1978 });
1979 }
1980
1981 return previousPromise =
1982 // If enqueue has been called before, then we want to wait until
1983 // all previous Promises have been resolved before calling invoke,
1984 // so that results are always delivered in the correct order. If
1985 // enqueue has not been called before, then it is important to
1986 // call invoke immediately, without waiting on a callback to fire,
1987 // so that the async generator function has the opportunity to do
1988 // any necessary setup in a predictable way. This predictability
1989 // is why the Promise constructor synchronously invokes its
1990 // executor callback, and why async functions synchronously
1991 // execute code before the first await. Since we implement simple
1992 // async functions in terms of async generators, it is especially
1993 // important to get this right, even though it requires care.
1994 previousPromise ? previousPromise.then(
1995 callInvokeWithMethodAndArg,
1996 // Avoid propagating failures to Promises returned by later
1997 // invocations of the iterator.
1998 callInvokeWithMethodAndArg
1999 ) : callInvokeWithMethodAndArg();
2000 }
2001
2002 // Define the unified helper method that is used to implement .next,
2003 // .throw, and .return (see defineIteratorMethods).
2004 this._invoke = enqueue;
2005 }
2006
2007 defineIteratorMethods(AsyncIterator.prototype);
2008 AsyncIterator.prototype[asyncIteratorSymbol] = function () {
2009 return this;
2010 };
2011 exports.AsyncIterator = AsyncIterator;
2012
2013 // Note that simple async functions are implemented on top of
2014 // AsyncIterator objects; they just return a Promise for the value of
2015 // the final result produced by the iterator.
2016 exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
2017 if (PromiseImpl === void 0) PromiseImpl = Promise;
2018
2019 var iter = new AsyncIterator(
2020 wrap(innerFn, outerFn, self, tryLocsList),
2021 PromiseImpl
2022 );
2023
2024 return exports.isGeneratorFunction(outerFn)
2025 ? iter // If outerFn is a generator, return the full iterator.
2026 : iter.next().then(function(result) {
2027 return result.done ? result.value : iter.next();
2028 });
2029 };
2030
2031 function makeInvokeMethod(innerFn, self, context) {
2032 var state = GenStateSuspendedStart;
2033
2034 return function invoke(method, arg) {
2035 if (state === GenStateExecuting) {
2036 throw new Error("Generator is already running");
2037 }
2038
2039 if (state === GenStateCompleted) {
2040 if (method === "throw") {
2041 throw arg;
2042 }
2043
2044 // Be forgiving, per 25.3.3.3.3 of the spec:
2045 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
2046 return doneResult();
2047 }
2048
2049 context.method = method;
2050 context.arg = arg;
2051
2052 while (true) {
2053 var delegate = context.delegate;
2054 if (delegate) {
2055 var delegateResult = maybeInvokeDelegate(delegate, context);
2056 if (delegateResult) {
2057 if (delegateResult === ContinueSentinel) continue;
2058 return delegateResult;
2059 }
2060 }
2061
2062 if (context.method === "next") {
2063 // Setting context._sent for legacy support of Babel's
2064 // function.sent implementation.
2065 context.sent = context._sent = context.arg;
2066
2067 } else if (context.method === "throw") {
2068 if (state === GenStateSuspendedStart) {
2069 state = GenStateCompleted;
2070 throw context.arg;
2071 }
2072
2073 context.dispatchException(context.arg);
2074
2075 } else if (context.method === "return") {
2076 context.abrupt("return", context.arg);
2077 }
2078
2079 state = GenStateExecuting;
2080
2081 var record = tryCatch(innerFn, self, context);
2082 if (record.type === "normal") {
2083 // If an exception is thrown from innerFn, we leave state ===
2084 // GenStateExecuting and loop back for another invocation.
2085 state = context.done
2086 ? GenStateCompleted
2087 : GenStateSuspendedYield;
2088
2089 if (record.arg === ContinueSentinel) {
2090 continue;
2091 }
2092
2093 return {
2094 value: record.arg,
2095 done: context.done
2096 };
2097
2098 } else if (record.type === "throw") {
2099 state = GenStateCompleted;
2100 // Dispatch the exception by looping back around to the
2101 // context.dispatchException(context.arg) call above.
2102 context.method = "throw";
2103 context.arg = record.arg;
2104 }
2105 }
2106 };
2107 }
2108
2109 // Call delegate.iterator[context.method](context.arg) and handle the
2110 // result, either by returning a { value, done } result from the
2111 // delegate iterator, or by modifying context.method and context.arg,
2112 // setting context.delegate to null, and returning the ContinueSentinel.
2113 function maybeInvokeDelegate(delegate, context) {
2114 var method = delegate.iterator[context.method];
2115 if (method === undefined) {
2116 // A .throw or .return when the delegate iterator has no .throw
2117 // method always terminates the yield* loop.
2118 context.delegate = null;
2119
2120 if (context.method === "throw") {
2121 // Note: ["return"] must be used for ES3 parsing compatibility.
2122 if (delegate.iterator["return"]) {
2123 // If the delegate iterator has a return method, give it a
2124 // chance to clean up.
2125 context.method = "return";
2126 context.arg = undefined;
2127 maybeInvokeDelegate(delegate, context);
2128
2129 if (context.method === "throw") {
2130 // If maybeInvokeDelegate(context) changed context.method from
2131 // "return" to "throw", let that override the TypeError below.
2132 return ContinueSentinel;
2133 }
2134 }
2135
2136 context.method = "throw";
2137 context.arg = new TypeError(
2138 "The iterator does not provide a 'throw' method");
2139 }
2140
2141 return ContinueSentinel;
2142 }
2143
2144 var record = tryCatch(method, delegate.iterator, context.arg);
2145
2146 if (record.type === "throw") {
2147 context.method = "throw";
2148 context.arg = record.arg;
2149 context.delegate = null;
2150 return ContinueSentinel;
2151 }
2152
2153 var info = record.arg;
2154
2155 if (! info) {
2156 context.method = "throw";
2157 context.arg = new TypeError("iterator result is not an object");
2158 context.delegate = null;
2159 return ContinueSentinel;
2160 }
2161
2162 if (info.done) {
2163 // Assign the result of the finished delegate to the temporary
2164 // variable specified by delegate.resultName (see delegateYield).
2165 context[delegate.resultName] = info.value;
2166
2167 // Resume execution at the desired location (see delegateYield).
2168 context.next = delegate.nextLoc;
2169
2170 // If context.method was "throw" but the delegate handled the
2171 // exception, let the outer generator proceed normally. If
2172 // context.method was "next", forget context.arg since it has been
2173 // "consumed" by the delegate iterator. If context.method was
2174 // "return", allow the original .return call to continue in the
2175 // outer generator.
2176 if (context.method !== "return") {
2177 context.method = "next";
2178 context.arg = undefined;
2179 }
2180
2181 } else {
2182 // Re-yield the result returned by the delegate method.
2183 return info;
2184 }
2185
2186 // The delegate iterator is finished, so forget it and continue with
2187 // the outer generator.
2188 context.delegate = null;
2189 return ContinueSentinel;
2190 }
2191
2192 // Define Generator.prototype.{next,throw,return} in terms of the
2193 // unified ._invoke helper method.
2194 defineIteratorMethods(Gp);
2195
2196 define(Gp, toStringTagSymbol, "Generator");
2197
2198 // A Generator should always return itself as the iterator object when the
2199 // @@iterator function is called on it. Some browsers' implementations of the
2200 // iterator prototype chain incorrectly implement this, causing the Generator
2201 // object to not be returned from this call. This ensures that doesn't happen.
2202 // See https://github.com/facebook/regenerator/issues/274 for more details.
2203 Gp[iteratorSymbol] = function() {
2204 return this;
2205 };
2206
2207 Gp.toString = function() {
2208 return "[object Generator]";
2209 };
2210
2211 function pushTryEntry(locs) {
2212 var entry = { tryLoc: locs[0] };
2213
2214 if (1 in locs) {
2215 entry.catchLoc = locs[1];
2216 }
2217
2218 if (2 in locs) {
2219 entry.finallyLoc = locs[2];
2220 entry.afterLoc = locs[3];
2221 }
2222
2223 this.tryEntries.push(entry);
2224 }
2225
2226 function resetTryEntry(entry) {
2227 var record = entry.completion || {};
2228 record.type = "normal";
2229 delete record.arg;
2230 entry.completion = record;
2231 }
2232
2233 function Context(tryLocsList) {
2234 // The root entry object (effectively a try statement without a catch
2235 // or a finally block) gives us a place to store values thrown from
2236 // locations where there is no enclosing try statement.
2237 this.tryEntries = [{ tryLoc: "root" }];
2238 tryLocsList.forEach(pushTryEntry, this);
2239 this.reset(true);
2240 }
2241
2242 exports.keys = function(object) {
2243 var keys = [];
2244 for (var key in object) {
2245 keys.push(key);
2246 }
2247 keys.reverse();
2248
2249 // Rather than returning an object with a next method, we keep
2250 // things simple and return the next function itself.
2251 return function next() {
2252 while (keys.length) {
2253 var key = keys.pop();
2254 if (key in object) {
2255 next.value = key;
2256 next.done = false;
2257 return next;
2258 }
2259 }
2260
2261 // To avoid creating an additional object, we just hang the .value
2262 // and .done properties off the next function object itself. This
2263 // also ensures that the minifier will not anonymize the function.
2264 next.done = true;
2265 return next;
2266 };
2267 };
2268
2269 function values(iterable) {
2270 if (iterable) {
2271 var iteratorMethod = iterable[iteratorSymbol];
2272 if (iteratorMethod) {
2273 return iteratorMethod.call(iterable);
2274 }
2275
2276 if (typeof iterable.next === "function") {
2277 return iterable;
2278 }
2279
2280 if (!isNaN(iterable.length)) {
2281 var i = -1, next = function next() {
2282 while (++i < iterable.length) {
2283 if (hasOwn.call(iterable, i)) {
2284 next.value = iterable[i];
2285 next.done = false;
2286 return next;
2287 }
2288 }
2289
2290 next.value = undefined;
2291 next.done = true;
2292
2293 return next;
2294 };
2295
2296 return next.next = next;
2297 }
2298 }
2299
2300 // Return an iterator with no values.
2301 return { next: doneResult };
2302 }
2303 exports.values = values;
2304
2305 function doneResult() {
2306 return { value: undefined, done: true };
2307 }
2308
2309 Context.prototype = {
2310 constructor: Context,
2311
2312 reset: function(skipTempReset) {
2313 this.prev = 0;
2314 this.next = 0;
2315 // Resetting context._sent for legacy support of Babel's
2316 // function.sent implementation.
2317 this.sent = this._sent = undefined;
2318 this.done = false;
2319 this.delegate = null;
2320
2321 this.method = "next";
2322 this.arg = undefined;
2323
2324 this.tryEntries.forEach(resetTryEntry);
2325
2326 if (!skipTempReset) {
2327 for (var name in this) {
2328 // Not sure about the optimal order of these conditions:
2329 if (name.charAt(0) === "t" &&
2330 hasOwn.call(this, name) &&
2331 !isNaN(+name.slice(1))) {
2332 this[name] = undefined;
2333 }
2334 }
2335 }
2336 },
2337
2338 stop: function() {
2339 this.done = true;
2340
2341 var rootEntry = this.tryEntries[0];
2342 var rootRecord = rootEntry.completion;
2343 if (rootRecord.type === "throw") {
2344 throw rootRecord.arg;
2345 }
2346
2347 return this.rval;
2348 },
2349
2350 dispatchException: function(exception) {
2351 if (this.done) {
2352 throw exception;
2353 }
2354
2355 var context = this;
2356 function handle(loc, caught) {
2357 record.type = "throw";
2358 record.arg = exception;
2359 context.next = loc;
2360
2361 if (caught) {
2362 // If the dispatched exception was caught by a catch block,
2363 // then let that catch block handle the exception normally.
2364 context.method = "next";
2365 context.arg = undefined;
2366 }
2367
2368 return !! caught;
2369 }
2370
2371 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2372 var entry = this.tryEntries[i];
2373 var record = entry.completion;
2374
2375 if (entry.tryLoc === "root") {
2376 // Exception thrown outside of any try block that could handle
2377 // it, so set the completion value of the entire function to
2378 // throw the exception.
2379 return handle("end");
2380 }
2381
2382 if (entry.tryLoc <= this.prev) {
2383 var hasCatch = hasOwn.call(entry, "catchLoc");
2384 var hasFinally = hasOwn.call(entry, "finallyLoc");
2385
2386 if (hasCatch && hasFinally) {
2387 if (this.prev < entry.catchLoc) {
2388 return handle(entry.catchLoc, true);
2389 } else if (this.prev < entry.finallyLoc) {
2390 return handle(entry.finallyLoc);
2391 }
2392
2393 } else if (hasCatch) {
2394 if (this.prev < entry.catchLoc) {
2395 return handle(entry.catchLoc, true);
2396 }
2397
2398 } else if (hasFinally) {
2399 if (this.prev < entry.finallyLoc) {
2400 return handle(entry.finallyLoc);
2401 }
2402
2403 } else {
2404 throw new Error("try statement without catch or finally");
2405 }
2406 }
2407 }
2408 },
2409
2410 abrupt: function(type, arg) {
2411 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2412 var entry = this.tryEntries[i];
2413 if (entry.tryLoc <= this.prev &&
2414 hasOwn.call(entry, "finallyLoc") &&
2415 this.prev < entry.finallyLoc) {
2416 var finallyEntry = entry;
2417 break;
2418 }
2419 }
2420
2421 if (finallyEntry &&
2422 (type === "break" ||
2423 type === "continue") &&
2424 finallyEntry.tryLoc <= arg &&
2425 arg <= finallyEntry.finallyLoc) {
2426 // Ignore the finally entry if control is not jumping to a
2427 // location outside the try/catch block.
2428 finallyEntry = null;
2429 }
2430
2431 var record = finallyEntry ? finallyEntry.completion : {};
2432 record.type = type;
2433 record.arg = arg;
2434
2435 if (finallyEntry) {
2436 this.method = "next";
2437 this.next = finallyEntry.finallyLoc;
2438 return ContinueSentinel;
2439 }
2440
2441 return this.complete(record);
2442 },
2443
2444 complete: function(record, afterLoc) {
2445 if (record.type === "throw") {
2446 throw record.arg;
2447 }
2448
2449 if (record.type === "break" ||
2450 record.type === "continue") {
2451 this.next = record.arg;
2452 } else if (record.type === "return") {
2453 this.rval = this.arg = record.arg;
2454 this.method = "return";
2455 this.next = "end";
2456 } else if (record.type === "normal" && afterLoc) {
2457 this.next = afterLoc;
2458 }
2459
2460 return ContinueSentinel;
2461 },
2462
2463 finish: function(finallyLoc) {
2464 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2465 var entry = this.tryEntries[i];
2466 if (entry.finallyLoc === finallyLoc) {
2467 this.complete(entry.completion, entry.afterLoc);
2468 resetTryEntry(entry);
2469 return ContinueSentinel;
2470 }
2471 }
2472 },
2473
2474 "catch": function(tryLoc) {
2475 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2476 var entry = this.tryEntries[i];
2477 if (entry.tryLoc === tryLoc) {
2478 var record = entry.completion;
2479 if (record.type === "throw") {
2480 var thrown = record.arg;
2481 resetTryEntry(entry);
2482 }
2483 return thrown;
2484 }
2485 }
2486
2487 // The context.catch method must only be called with a location
2488 // argument that corresponds to a known catch block.
2489 throw new Error("illegal catch attempt");
2490 },
2491
2492 delegateYield: function(iterable, resultName, nextLoc) {
2493 this.delegate = {
2494 iterator: values(iterable),
2495 resultName: resultName,
2496 nextLoc: nextLoc
2497 };
2498
2499 if (this.method === "next") {
2500 // Deliberately forget the last sent value so that we don't
2501 // accidentally pass it on to the delegate.
2502 this.arg = undefined;
2503 }
2504
2505 return ContinueSentinel;
2506 }
2507 };
2508
2509 // Regardless of whether this script is executing as a CommonJS module
2510 // or not, return the runtime object so that we can declare the variable
2511 // regeneratorRuntime in the outer scope, which allows this module to be
2512 // injected easily by `bin/regenerator --include-runtime script.js`.
2513 return exports;
2514
2515 }(
2516 // If this script is executing as a CommonJS module, use module.exports
2517 // as the regeneratorRuntime namespace. Otherwise create a new empty
2518 // object. Either way, the resulting object will be used to initialize
2519 // the regeneratorRuntime variable at the top of this file.
2520 true ? module.exports : undefined
2521 ));
2522
2523 try {
2524 regeneratorRuntime = runtime;
2525 } catch (accidentalStrictMode) {
2526 // This module should not be running in strict mode, so the above
2527 // assignment should always work unless something is misconfigured. Just
2528 // in case runtime.js accidentally runs in strict mode, we can escape
2529 // strict mode using a global Function call. This could conceivably fail
2530 // if a Content Security Policy forbids using Function, but in that case
2531 // the proper solution is to fix the accidental strict mode problem. If
2532 // you've misconfigured your bundler to force strict mode and applied a
2533 // CSP to forbid Function, and you're not willing to fix either of those
2534 // problems, please detail your unique predicament in a GitHub issue.
2535 Function("r", "regeneratorRuntime = r")(runtime);
2536 }
2537
2538
2539 /***/ }),
2540 /* 69 */
2541 /***/ (function(module, exports, __webpack_require__) {
2542
2543 // 7.1.1 ToPrimitive(input [, PreferredType])
2544 var isObject = __webpack_require__(9);
2545 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
2546 // and the second argument - flag - preferred type is a string
2547 module.exports = function (it, S) {
2548 if (!isObject(it)) return it;
2549 var fn, val;
2550 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2551 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2552 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2553 throw TypeError("Can't convert object to primitive value");
2554 };
2555
2556
2557 /***/ }),
2558 /* 70 */
2559 /***/ (function(module, exports, __webpack_require__) {
2560
2561 var shared = __webpack_require__(71)('keys');
2562 var uid = __webpack_require__(55);
2563 module.exports = function (key) {
2564 return shared[key] || (shared[key] = uid(key));
2565 };
2566
2567
2568 /***/ }),
2569 /* 71 */
2570 /***/ (function(module, exports, __webpack_require__) {
2571
2572 var core = __webpack_require__(6);
2573 var global = __webpack_require__(8);
2574 var SHARED = '__core-js_shared__';
2575 var store = global[SHARED] || (global[SHARED] = {});
2576
2577 (module.exports = function (key, value) {
2578 return store[key] || (store[key] = value !== undefined ? value : {});
2579 })('versions', []).push({
2580 version: core.version,
2581 mode: __webpack_require__(44) ? 'pure' : 'global',
2582 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
2583 });
2584
2585
2586 /***/ }),
2587 /* 72 */
2588 /***/ (function(module, exports, __webpack_require__) {
2589
2590 // 7.1.15 ToLength
2591 var toInteger = __webpack_require__(73);
2592 var min = Math.min;
2593 module.exports = function (it) {
2594 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
2595 };
2596
2597
2598 /***/ }),
2599 /* 73 */
2600 /***/ (function(module, exports) {
2601
2602 // 7.1.4 ToInteger
2603 var ceil = Math.ceil;
2604 var floor = Math.floor;
2605 module.exports = function (it) {
2606 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
2607 };
2608
2609
2610 /***/ }),
2611 /* 74 */
2612 /***/ (function(module, exports) {
2613
2614 // IE 8- don't enum bug keys
2615 module.exports = (
2616 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
2617 ).split(',');
2618
2619
2620 /***/ }),
2621 /* 75 */
2622 /***/ (function(module, exports, __webpack_require__) {
2623
2624 var global = __webpack_require__(8);
2625 var core = __webpack_require__(6);
2626 var LIBRARY = __webpack_require__(44);
2627 var wksExt = __webpack_require__(62);
2628 var defineProperty = __webpack_require__(15).f;
2629 module.exports = function (name) {
2630 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
2631 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
2632 };
2633
2634
2635 /***/ }),
2636 /* 76 */
2637 /***/ (function(module, exports, __webpack_require__) {
2638
2639 var core = __webpack_require__(58);
2640 var global = __webpack_require__(18);
2641 var SHARED = '__core-js_shared__';
2642 var store = global[SHARED] || (global[SHARED] = {});
2643
2644 (module.exports = function (key, value) {
2645 return store[key] || (store[key] = value !== undefined ? value : {});
2646 })('versions', []).push({
2647 version: core.version,
2648 mode: __webpack_require__(115) ? 'pure' : 'global',
2649 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
2650 });
2651
2652
2653 /***/ }),
2654 /* 77 */
2655 /***/ (function(module, exports) {
2656
2657 var id = 0;
2658 var px = Math.random();
2659 module.exports = function (key) {
2660 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
2661 };
2662
2663
2664 /***/ }),
2665 /* 78 */
2666 /***/ (function(module, exports, __webpack_require__) {
2667
2668 // most Object methods by ES6 should accept primitives
2669 var $export = __webpack_require__(7);
2670 var core = __webpack_require__(6);
2671 var fails = __webpack_require__(21);
2672 module.exports = function (KEY, exec) {
2673 var fn = (core.Object || {})[KEY] || Object[KEY];
2674 var exp = {};
2675 exp[KEY] = exec(fn);
2676 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
2677 };
2678
2679
2680 /***/ }),
2681 /* 79 */
2682 /***/ (function(module, exports, __webpack_require__) {
2683
2684 var ctx = __webpack_require__(29);
2685 var call = __webpack_require__(143);
2686 var isArrayIter = __webpack_require__(144);
2687 var anObject = __webpack_require__(11);
2688 var toLength = __webpack_require__(72);
2689 var getIterFn = __webpack_require__(117);
2690 var BREAK = {};
2691 var RETURN = {};
2692 var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
2693 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
2694 var f = ctx(fn, that, entries ? 2 : 1);
2695 var index = 0;
2696 var length, step, iterator, result;
2697 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
2698 // fast case for arrays with default iterator
2699 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
2700 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
2701 if (result === BREAK || result === RETURN) return result;
2702 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
2703 result = call(iterator, f, step.value, entries);
2704 if (result === BREAK || result === RETURN) return result;
2705 }
2706 };
2707 exports.BREAK = BREAK;
2708 exports.RETURN = RETURN;
2709
2710
2711 /***/ }),
2712 /* 80 */
2713 /***/ (function(module, exports, __webpack_require__) {
2714
2715 "use strict";
2716
2717 // 19.1.3.6 Object.prototype.toString()
2718 var classof = __webpack_require__(118);
2719 var test = {};
2720 test[__webpack_require__(13)('toStringTag')] = 'z';
2721 if (test + '' != '[object z]') {
2722 __webpack_require__(39)(Object.prototype, 'toString', function toString() {
2723 return '[object ' + classof(this) + ']';
2724 }, true);
2725 }
2726
2727
2728 /***/ }),
2729 /* 81 */
2730 /***/ (function(module, exports, __webpack_require__) {
2731
2732 // optional / simple context binding
2733 var aFunction = __webpack_require__(98);
2734 module.exports = function (fn, that, length) {
2735 aFunction(fn);
2736 if (that === undefined) return fn;
2737 switch (length) {
2738 case 1: return function (a) {
2739 return fn.call(that, a);
2740 };
2741 case 2: return function (a, b) {
2742 return fn.call(that, a, b);
2743 };
2744 case 3: return function (a, b, c) {
2745 return fn.call(that, a, b, c);
2746 };
2747 }
2748 return function (/* ...args */) {
2749 return fn.apply(that, arguments);
2750 };
2751 };
2752
2753
2754 /***/ }),
2755 /* 82 */
2756 /***/ (function(module, exports, __webpack_require__) {
2757
2758 "use strict";
2759
2760
2761 var isRegExp = __webpack_require__(126);
2762 var anObject = __webpack_require__(20);
2763 var speciesConstructor = __webpack_require__(180);
2764 var advanceStringIndex = __webpack_require__(108);
2765 var toLength = __webpack_require__(46);
2766 var callRegExpExec = __webpack_require__(100);
2767 var regexpExec = __webpack_require__(94);
2768 var fails = __webpack_require__(36);
2769 var $min = Math.min;
2770 var $push = [].push;
2771 var $SPLIT = 'split';
2772 var LENGTH = 'length';
2773 var LAST_INDEX = 'lastIndex';
2774 var MAX_UINT32 = 0xffffffff;
2775
2776 // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
2777 var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
2778
2779 // @@split logic
2780 __webpack_require__(101)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
2781 var internalSplit;
2782 if (
2783 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
2784 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
2785 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
2786 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
2787 '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
2788 ''[$SPLIT](/.?/)[LENGTH]
2789 ) {
2790 // based on es5-shim implementation, need to rework it
2791 internalSplit = function (separator, limit) {
2792 var string = String(this);
2793 if (separator === undefined && limit === 0) return [];
2794 // If `separator` is not a regex, use native split
2795 if (!isRegExp(separator)) return $split.call(string, separator, limit);
2796 var output = [];
2797 var flags = (separator.ignoreCase ? 'i' : '') +
2798 (separator.multiline ? 'm' : '') +
2799 (separator.unicode ? 'u' : '') +
2800 (separator.sticky ? 'y' : '');
2801 var lastLastIndex = 0;
2802 var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
2803 // Make `global` and avoid `lastIndex` issues by working with a copy
2804 var separatorCopy = new RegExp(separator.source, flags + 'g');
2805 var match, lastIndex, lastLength;
2806 while (match = regexpExec.call(separatorCopy, string)) {
2807 lastIndex = separatorCopy[LAST_INDEX];
2808 if (lastIndex > lastLastIndex) {
2809 output.push(string.slice(lastLastIndex, match.index));
2810 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
2811 lastLength = match[0][LENGTH];
2812 lastLastIndex = lastIndex;
2813 if (output[LENGTH] >= splitLimit) break;
2814 }
2815 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
2816 }
2817 if (lastLastIndex === string[LENGTH]) {
2818 if (lastLength || !separatorCopy.test('')) output.push('');
2819 } else output.push(string.slice(lastLastIndex));
2820 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
2821 };
2822 // Chakra, V8
2823 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
2824 internalSplit = function (separator, limit) {
2825 return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
2826 };
2827 } else {
2828 internalSplit = $split;
2829 }
2830
2831 return [
2832 // `String.prototype.split` method
2833 // https://tc39.github.io/ecma262/#sec-string.prototype.split
2834 function split(separator, limit) {
2835 var O = defined(this);
2836 var splitter = separator == undefined ? undefined : separator[SPLIT];
2837 return splitter !== undefined
2838 ? splitter.call(separator, O, limit)
2839 : internalSplit.call(String(O), separator, limit);
2840 },
2841 // `RegExp.prototype[@@split]` method
2842 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
2843 //
2844 // NOTE: This cannot be properly polyfilled in engines that don't support
2845 // the 'y' flag.
2846 function (regexp, limit) {
2847 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
2848 if (res.done) return res.value;
2849
2850 var rx = anObject(regexp);
2851 var S = String(this);
2852 var C = speciesConstructor(rx, RegExp);
2853
2854 var unicodeMatching = rx.unicode;
2855 var flags = (rx.ignoreCase ? 'i' : '') +
2856 (rx.multiline ? 'm' : '') +
2857 (rx.unicode ? 'u' : '') +
2858 (SUPPORTS_Y ? 'y' : 'g');
2859
2860 // ^(? + rx + ) is needed, in combination with some S slicing, to
2861 // simulate the 'y' flag.
2862 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
2863 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2864 if (lim === 0) return [];
2865 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
2866 var p = 0;
2867 var q = 0;
2868 var A = [];
2869 while (q < S.length) {
2870 splitter.lastIndex = SUPPORTS_Y ? q : 0;
2871 var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
2872 var e;
2873 if (
2874 z === null ||
2875 (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
2876 ) {
2877 q = advanceStringIndex(S, q, unicodeMatching);
2878 } else {
2879 A.push(S.slice(p, q));
2880 if (A.length === lim) return A;
2881 for (var i = 1; i <= z.length - 1; i++) {
2882 A.push(z[i]);
2883 if (A.length === lim) return A;
2884 }
2885 q = p = e;
2886 }
2887 }
2888 A.push(S.slice(p));
2889 return A;
2890 }
2891 ];
2892 });
2893
2894
2895 /***/ }),
2896 /* 83 */,
2897 /* 84 */
2898 /***/ (function(module, exports, __webpack_require__) {
2899
2900 module.exports = __webpack_require__(68);
2901
2902
2903 /***/ }),
2904 /* 85 */
2905 /***/ (function(module, exports, __webpack_require__) {
2906
2907 var _Promise = __webpack_require__(134);
2908
2909 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2910 try {
2911 var info = gen[key](arg);
2912 var value = info.value;
2913 } catch (error) {
2914 reject(error);
2915 return;
2916 }
2917
2918 if (info.done) {
2919 resolve(value);
2920 } else {
2921 _Promise.resolve(value).then(_next, _throw);
2922 }
2923 }
2924
2925 function _asyncToGenerator(fn) {
2926 return function () {
2927 var self = this,
2928 args = arguments;
2929 return new _Promise(function (resolve, reject) {
2930 var gen = fn.apply(self, args);
2931
2932 function _next(value) {
2933 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
2934 }
2935
2936 function _throw(err) {
2937 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
2938 }
2939
2940 _next(undefined);
2941 });
2942 };
2943 }
2944
2945 module.exports = _asyncToGenerator;
2946
2947 /***/ }),
2948 /* 86 */
2949 /***/ (function(module, exports, __webpack_require__) {
2950
2951 module.exports = __webpack_require__(221);
2952
2953 /***/ }),
2954 /* 87 */
2955 /***/ (function(module, exports, __webpack_require__) {
2956
2957 "use strict";
2958
2959
2960 var _interopRequireDefault = __webpack_require__(0);
2961
2962 var _Object$defineProperty = __webpack_require__(1);
2963
2964 _Object$defineProperty(exports, "__esModule", {
2965 value: true
2966 });
2967
2968 exports.default = void 0;
2969
2970 __webpack_require__(61);
2971
2972 var _keys = _interopRequireDefault(__webpack_require__(25));
2973
2974 __webpack_require__(82);
2975
2976 var _values = _interopRequireDefault(__webpack_require__(54));
2977
2978 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(105));
2979
2980 var _entries = _interopRequireDefault(__webpack_require__(93));
2981
2982 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
2983
2984 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
2985
2986 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
2987
2988 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
2989
2990 var ComponentBase = /*#__PURE__*/function (_elementorModules$Mod) {
2991 (0, _inherits2.default)(ComponentBase, _elementorModules$Mod);
2992
2993 var _super = (0, _createSuper2.default)(ComponentBase);
2994
2995 function ComponentBase() {
2996 (0, _classCallCheck2.default)(this, ComponentBase);
2997 return _super.apply(this, arguments);
2998 }
2999
3000 (0, _createClass2.default)(ComponentBase, [{
3001 key: "__construct",
3002 value: function __construct() {
3003 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3004
3005 if (args.manager) {
3006 this.manager = args.manager;
3007 }
3008
3009 this.commands = this.defaultCommands();
3010 this.commandsInternal = this.defaultCommandsInternal();
3011 this.hooks = this.defaultHooks();
3012 this.routes = this.defaultRoutes();
3013 this.tabs = this.defaultTabs();
3014 this.shortcuts = this.defaultShortcuts();
3015 this.utils = this.defaultUtils();
3016 this.data = this.defaultData();
3017 this.defaultRoute = '';
3018 this.currentTab = '';
3019 }
3020 }, {
3021 key: "registerAPI",
3022 value: function registerAPI() {
3023 var _this = this;
3024
3025 (0, _entries.default)(this.getTabs()).forEach(function (tab) {
3026 return _this.registerTabRoute(tab[0]);
3027 });
3028 (0, _entries.default)(this.getRoutes()).forEach(function (_ref) {
3029 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
3030 route = _ref2[0],
3031 callback = _ref2[1];
3032
3033 return _this.registerRoute(route, callback);
3034 });
3035 (0, _entries.default)(this.getCommands()).forEach(function (_ref3) {
3036 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
3037 command = _ref4[0],
3038 callback = _ref4[1];
3039
3040 return _this.registerCommand(command, callback);
3041 });
3042 (0, _entries.default)(this.getCommandsInternal()).forEach(function (_ref5) {
3043 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
3044 command = _ref6[0],
3045 callback = _ref6[1];
3046
3047 return _this.registerCommandInternal(command, callback);
3048 });
3049 (0, _values.default)(this.getHooks()).forEach(function (instance) {
3050 return _this.registerHook(instance);
3051 });
3052 (0, _entries.default)(this.getData()).forEach(function (_ref7) {
3053 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
3054 command = _ref8[0],
3055 callback = _ref8[1];
3056
3057 return _this.registerData(command, callback);
3058 });
3059 }
3060 /**
3061 * @returns {string}
3062 */
3063
3064 }, {
3065 key: "getNamespace",
3066 value: function getNamespace() {
3067 elementorModules.ForceMethodImplementation();
3068 }
3069 }, {
3070 key: "getRootContainer",
3071 value: function getRootContainer() {
3072 var parts = this.getNamespace().split('/');
3073 return parts[0];
3074 }
3075 }, {
3076 key: "defaultTabs",
3077 value: function defaultTabs() {
3078 return {};
3079 }
3080 }, {
3081 key: "defaultRoutes",
3082 value: function defaultRoutes() {
3083 return {};
3084 }
3085 }, {
3086 key: "defaultCommands",
3087 value: function defaultCommands() {
3088 return {};
3089 }
3090 }, {
3091 key: "defaultCommandsInternal",
3092 value: function defaultCommandsInternal() {
3093 return {};
3094 }
3095 }, {
3096 key: "defaultHooks",
3097 value: function defaultHooks() {
3098 return {};
3099 }
3100 }, {
3101 key: "defaultShortcuts",
3102 value: function defaultShortcuts() {
3103 return {};
3104 }
3105 }, {
3106 key: "defaultUtils",
3107 value: function defaultUtils() {
3108 return {};
3109 }
3110 }, {
3111 key: "defaultData",
3112 value: function defaultData() {
3113 return {};
3114 }
3115 }, {
3116 key: "getCommands",
3117 value: function getCommands() {
3118 return this.commands;
3119 }
3120 }, {
3121 key: "getCommandsInternal",
3122 value: function getCommandsInternal() {
3123 return this.commandsInternal;
3124 }
3125 }, {
3126 key: "getHooks",
3127 value: function getHooks() {
3128 return this.hooks;
3129 }
3130 }, {
3131 key: "getRoutes",
3132 value: function getRoutes() {
3133 return this.routes;
3134 }
3135 }, {
3136 key: "getTabs",
3137 value: function getTabs() {
3138 return this.tabs;
3139 }
3140 }, {
3141 key: "getShortcuts",
3142 value: function getShortcuts() {
3143 return this.shortcuts;
3144 }
3145 }, {
3146 key: "getData",
3147 value: function getData() {
3148 return this.data;
3149 }
3150 }, {
3151 key: "registerCommand",
3152 value: function registerCommand(command, callback) {
3153 $e.commands.register(this, command, callback);
3154 }
3155 /**
3156 * @param {HookBase} instance
3157 */
3158
3159 }, {
3160 key: "registerHook",
3161 value: function registerHook(instance) {
3162 return instance.register();
3163 }
3164 }, {
3165 key: "registerCommandInternal",
3166 value: function registerCommandInternal(command, callback) {
3167 $e.commandsInternal.register(this, command, callback);
3168 }
3169 }, {
3170 key: "registerRoute",
3171 value: function registerRoute(route, callback) {
3172 $e.routes.register(this, route, callback);
3173 }
3174 }, {
3175 key: "registerData",
3176 value: function registerData(command, callback) {
3177 $e.data.register(this, command, callback);
3178 }
3179 }, {
3180 key: "unregisterRoute",
3181 value: function unregisterRoute(route) {
3182 $e.routes.unregister(this, route);
3183 }
3184 }, {
3185 key: "registerTabRoute",
3186 value: function registerTabRoute(tab) {
3187 var _this2 = this;
3188
3189 this.registerRoute(tab, function (args) {
3190 return _this2.activateTab(tab, args);
3191 });
3192 }
3193 }, {
3194 key: "dependency",
3195 value: function dependency() {
3196 return true;
3197 }
3198 }, {
3199 key: "open",
3200 value: function open() {
3201 return true;
3202 }
3203 }, {
3204 key: "close",
3205 value: function close() {
3206 if (!this.isOpen) {
3207 return false;
3208 }
3209
3210 this.isOpen = false;
3211 this.inactivate();
3212 $e.routes.clearCurrent(this.getNamespace());
3213 $e.routes.clearHistory(this.getRootContainer());
3214 return true;
3215 }
3216 }, {
3217 key: "activate",
3218 value: function activate() {
3219 $e.components.activate(this.getNamespace());
3220 }
3221 }, {
3222 key: "inactivate",
3223 value: function inactivate() {
3224 $e.components.inactivate(this.getNamespace());
3225 }
3226 }, {
3227 key: "isActive",
3228 value: function isActive() {
3229 return $e.components.isActive(this.getNamespace());
3230 }
3231 }, {
3232 key: "onRoute",
3233 value: function onRoute(route) {
3234 this.toggleRouteClass(route, true);
3235 this.toggleHistoryClass();
3236 this.activate();
3237 this.trigger('route/open', route);
3238 }
3239 }, {
3240 key: "onCloseRoute",
3241 value: function onCloseRoute(route) {
3242 this.toggleRouteClass(route, false);
3243 this.inactivate();
3244 this.trigger('route/close', route);
3245 }
3246 }, {
3247 key: "setDefaultRoute",
3248 value: function setDefaultRoute(route) {
3249 this.defaultRoute = this.getNamespace() + '/' + route;
3250 }
3251 }, {
3252 key: "getDefaultRoute",
3253 value: function getDefaultRoute() {
3254 return this.defaultRoute;
3255 }
3256 }, {
3257 key: "removeTab",
3258 value: function removeTab(tab) {
3259 delete this.tabs[tab];
3260 this.unregisterRoute(tab);
3261 }
3262 }, {
3263 key: "hasTab",
3264 value: function hasTab(tab) {
3265 return !!this.tabs[tab];
3266 }
3267 }, {
3268 key: "addTab",
3269 value: function addTab(tab, args, position) {
3270 var _this3 = this;
3271
3272 this.tabs[tab] = args; // It can be 0.
3273
3274 if ('undefined' !== typeof position) {
3275 var newTabs = {};
3276 var ids = (0, _keys.default)(this.tabs); // Remove new tab
3277
3278 ids.pop(); // Add it to position.
3279
3280 ids.splice(position, 0, tab);
3281 ids.forEach(function (id) {
3282 newTabs[id] = _this3.tabs[id];
3283 });
3284 this.tabs = newTabs;
3285 }
3286
3287 this.registerTabRoute(tab);
3288 }
3289 }, {
3290 key: "getTabsWrapperSelector",
3291 value: function getTabsWrapperSelector() {
3292 return '';
3293 }
3294 }, {
3295 key: "getTabRoute",
3296 value: function getTabRoute(tab) {
3297 return this.getNamespace() + '/' + tab;
3298 }
3299 }, {
3300 key: "renderTab",
3301 value: function renderTab(tab) {} // eslint-disable-line
3302
3303 }, {
3304 key: "activateTab",
3305 value: function activateTab(tab, args) {
3306 var _this4 = this;
3307
3308 this.currentTab = tab;
3309 this.renderTab(tab, args);
3310 jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
3311 $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
3312 }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
3313 }
3314 }, {
3315 key: "getActiveTabConfig",
3316 value: function getActiveTabConfig() {
3317 return this.tabs[this.currentTab] || {};
3318 }
3319 }, {
3320 key: "getBodyClass",
3321 value: function getBodyClass(route) {
3322 return 'e-route-' + route.replace(/\//g, '-');
3323 }
3324 /**
3325 * If command includes uppercase character convert it to lowercase and add `-`.
3326 * e.g: `CopyAll` is converted to `copy-all`.
3327 */
3328
3329 }, {
3330 key: "normalizeCommandName",
3331 value: function normalizeCommandName(commandName) {
3332 return commandName.replace(/[A-Z]/g, function (match, offset) {
3333 return (offset > 0 ? '-' : '') + match.toLowerCase();
3334 });
3335 }
3336 }, {
3337 key: "importCommands",
3338 value: function importCommands(commandsFromImport) {
3339 var _this5 = this;
3340
3341 var commands = {}; // Convert `Commands` to `ComponentBase` workable format.
3342
3343 (0, _entries.default)(commandsFromImport).forEach(function (_ref9) {
3344 var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3345 className = _ref10[0],
3346 Class = _ref10[1];
3347
3348 var command = _this5.normalizeCommandName(className);
3349
3350 commands[command] = function (args) {
3351 return new Class(args).run();
3352 }; // TODO: Temporary code, remove after merge with 'require-commands-base' branch.
3353 // should not return callback, but Class or Instance without run ( gain performance ).
3354
3355
3356 $e.commands.classes[_this5.getNamespace() + '/' + command] = Class;
3357 });
3358 return commands;
3359 }
3360 }, {
3361 key: "importHooks",
3362 value: function importHooks(hooksFromImport) {
3363 var hooks = {};
3364
3365 for (var key in hooksFromImport) {
3366 var hook = new hooksFromImport[key]();
3367 hooks[hook.getId()] = hook;
3368 }
3369
3370 return hooks;
3371 }
3372 }, {
3373 key: "toggleRouteClass",
3374 value: function toggleRouteClass(route, state) {
3375 elementorCommon.elements.$body.toggleClass(this.getBodyClass(route), state);
3376 }
3377 }, {
3378 key: "toggleHistoryClass",
3379 value: function toggleHistoryClass() {
3380 elementorCommon.elements.$body.toggleClass('e-routes-has-history', !!$e.routes.getHistory(this.getRootContainer()).length);
3381 }
3382 }]);
3383 return ComponentBase;
3384 }(elementorModules.Module);
3385
3386 exports.default = ComponentBase;
3387
3388 /***/ }),
3389 /* 88 */
3390 /***/ (function(module, exports, __webpack_require__) {
3391
3392 var isObject = __webpack_require__(9);
3393 var document = __webpack_require__(8).document;
3394 // typeof document.createElement is 'object' in old IE
3395 var is = isObject(document) && isObject(document.createElement);
3396 module.exports = function (it) {
3397 return is ? document.createElement(it) : {};
3398 };
3399
3400
3401 /***/ }),
3402 /* 89 */
3403 /***/ (function(module, exports, __webpack_require__) {
3404
3405 module.exports = __webpack_require__(22);
3406
3407
3408 /***/ }),
3409 /* 90 */
3410 /***/ (function(module, exports, __webpack_require__) {
3411
3412 // 22.1.3.31 Array.prototype[@@unscopables]
3413 var UNSCOPABLES = __webpack_require__(13)('unscopables');
3414 var ArrayProto = Array.prototype;
3415 if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(30)(ArrayProto, UNSCOPABLES, {});
3416 module.exports = function (key) {
3417 ArrayProto[UNSCOPABLES][key] = true;
3418 };
3419
3420
3421 /***/ }),
3422 /* 91 */
3423 /***/ (function(module, exports, __webpack_require__) {
3424
3425 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
3426 var $keys = __webpack_require__(112);
3427 var hiddenKeys = __webpack_require__(74).concat('length', 'prototype');
3428
3429 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
3430 return $keys(O, hiddenKeys);
3431 };
3432
3433
3434 /***/ }),
3435 /* 92 */
3436 /***/ (function(module, exports) {
3437
3438
3439
3440 /***/ }),
3441 /* 93 */
3442 /***/ (function(module, exports, __webpack_require__) {
3443
3444 module.exports = __webpack_require__(269);
3445
3446 /***/ }),
3447 /* 94 */
3448 /***/ (function(module, exports, __webpack_require__) {
3449
3450 "use strict";
3451
3452
3453 var regexpFlags = __webpack_require__(109);
3454
3455 var nativeExec = RegExp.prototype.exec;
3456 // This always refers to the native implementation, because the
3457 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
3458 // which loads this file before patching the method.
3459 var nativeReplace = String.prototype.replace;
3460
3461 var patchedExec = nativeExec;
3462
3463 var LAST_INDEX = 'lastIndex';
3464
3465 var UPDATES_LAST_INDEX_WRONG = (function () {
3466 var re1 = /a/,
3467 re2 = /b*/g;
3468 nativeExec.call(re1, 'a');
3469 nativeExec.call(re2, 'a');
3470 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
3471 })();
3472
3473 // nonparticipating capturing group, copied from es5-shim's String#split patch.
3474 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
3475
3476 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
3477
3478 if (PATCH) {
3479 patchedExec = function exec(str) {
3480 var re = this;
3481 var lastIndex, reCopy, match, i;
3482
3483 if (NPCG_INCLUDED) {
3484 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
3485 }
3486 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
3487
3488 match = nativeExec.call(re, str);
3489
3490 if (UPDATES_LAST_INDEX_WRONG && match) {
3491 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
3492 }
3493 if (NPCG_INCLUDED && match && match.length > 1) {
3494 // Fix browsers whose `exec` methods don't consistently return `undefined`
3495 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
3496 // eslint-disable-next-line no-loop-func
3497 nativeReplace.call(match[0], reCopy, function () {
3498 for (i = 1; i < arguments.length - 2; i++) {
3499 if (arguments[i] === undefined) match[i] = undefined;
3500 }
3501 });
3502 }
3503
3504 return match;
3505 };
3506 }
3507
3508 module.exports = patchedExec;
3509
3510
3511 /***/ }),
3512 /* 95 */
3513 /***/ (function(module, exports, __webpack_require__) {
3514
3515 module.exports = __webpack_require__(164);
3516
3517 /***/ }),
3518 /* 96 */
3519 /***/ (function(module, exports, __webpack_require__) {
3520
3521 "use strict";
3522
3523 var LIBRARY = __webpack_require__(44);
3524 var $export = __webpack_require__(7);
3525 var redefine = __webpack_require__(89);
3526 var hide = __webpack_require__(22);
3527 var Iterators = __webpack_require__(33);
3528 var $iterCreate = __webpack_require__(170);
3529 var setToStringTag = __webpack_require__(53);
3530 var getPrototypeOf = __webpack_require__(63);
3531 var ITERATOR = __webpack_require__(10)('iterator');
3532 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
3533 var FF_ITERATOR = '@@iterator';
3534 var KEYS = 'keys';
3535 var VALUES = 'values';
3536
3537 var returnThis = function () { return this; };
3538
3539 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
3540 $iterCreate(Constructor, NAME, next);
3541 var getMethod = function (kind) {
3542 if (!BUGGY && kind in proto) return proto[kind];
3543 switch (kind) {
3544 case KEYS: return function keys() { return new Constructor(this, kind); };
3545 case VALUES: return function values() { return new Constructor(this, kind); };
3546 } return function entries() { return new Constructor(this, kind); };
3547 };
3548 var TAG = NAME + ' Iterator';
3549 var DEF_VALUES = DEFAULT == VALUES;
3550 var VALUES_BUG = false;
3551 var proto = Base.prototype;
3552 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
3553 var $default = $native || getMethod(DEFAULT);
3554 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
3555 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
3556 var methods, key, IteratorPrototype;
3557 // Fix native
3558 if ($anyNative) {
3559 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
3560 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
3561 // Set @@toStringTag to native iterators
3562 setToStringTag(IteratorPrototype, TAG, true);
3563 // fix for some old engines
3564 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
3565 }
3566 }
3567 // fix Array#{values, @@iterator}.name in V8 / FF
3568 if (DEF_VALUES && $native && $native.name !== VALUES) {
3569 VALUES_BUG = true;
3570 $default = function values() { return $native.call(this); };
3571 }
3572 // Define iterator
3573 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
3574 hide(proto, ITERATOR, $default);
3575 }
3576 // Plug for library
3577 Iterators[NAME] = $default;
3578 Iterators[TAG] = returnThis;
3579 if (DEFAULT) {
3580 methods = {
3581 values: DEF_VALUES ? $default : getMethod(VALUES),
3582 keys: IS_SET ? $default : getMethod(KEYS),
3583 entries: $entries
3584 };
3585 if (FORCED) for (key in methods) {
3586 if (!(key in proto)) redefine(proto, key, methods[key]);
3587 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
3588 }
3589 return methods;
3590 };
3591
3592
3593 /***/ }),
3594 /* 97 */
3595 /***/ (function(module, exports, __webpack_require__) {
3596
3597 // 7.2.2 IsArray(argument)
3598 var cof = __webpack_require__(56);
3599 module.exports = Array.isArray || function isArray(arg) {
3600 return cof(arg) == 'Array';
3601 };
3602
3603
3604 /***/ }),
3605 /* 98 */
3606 /***/ (function(module, exports) {
3607
3608 module.exports = function (it) {
3609 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
3610 return it;
3611 };
3612
3613
3614 /***/ }),
3615 /* 99 */
3616 /***/ (function(module, exports, __webpack_require__) {
3617
3618 // getting tag from 19.1.3.6 Object.prototype.toString()
3619 var cof = __webpack_require__(56);
3620 var TAG = __webpack_require__(10)('toStringTag');
3621 // ES3 wrong here
3622 var ARG = cof(function () { return arguments; }()) == 'Arguments';
3623
3624 // fallback for IE11 Script Access Denied error
3625 var tryGet = function (it, key) {
3626 try {
3627 return it[key];
3628 } catch (e) { /* empty */ }
3629 };
3630
3631 module.exports = function (it) {
3632 var O, T, B;
3633 return it === undefined ? 'Undefined' : it === null ? 'Null'
3634 // @@toStringTag case
3635 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
3636 // builtinTag case
3637 : ARG ? cof(O)
3638 // ES3 arguments fallback
3639 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
3640 };
3641
3642
3643 /***/ }),
3644 /* 100 */
3645 /***/ (function(module, exports, __webpack_require__) {
3646
3647 "use strict";
3648
3649
3650 var classof = __webpack_require__(118);
3651 var builtinExec = RegExp.prototype.exec;
3652
3653 // `RegExpExec` abstract operation
3654 // https://tc39.github.io/ecma262/#sec-regexpexec
3655 module.exports = function (R, S) {
3656 var exec = R.exec;
3657 if (typeof exec === 'function') {
3658 var result = exec.call(R, S);
3659 if (typeof result !== 'object') {
3660 throw new TypeError('RegExp exec method returned something other than an Object or null');
3661 }
3662 return result;
3663 }
3664 if (classof(R) !== 'RegExp') {
3665 throw new TypeError('RegExp#exec called on incompatible receiver');
3666 }
3667 return builtinExec.call(R, S);
3668 };
3669
3670
3671 /***/ }),
3672 /* 101 */
3673 /***/ (function(module, exports, __webpack_require__) {
3674
3675 "use strict";
3676
3677 __webpack_require__(197);
3678 var redefine = __webpack_require__(39);
3679 var hide = __webpack_require__(30);
3680 var fails = __webpack_require__(36);
3681 var defined = __webpack_require__(43);
3682 var wks = __webpack_require__(13);
3683 var regexpExec = __webpack_require__(94);
3684
3685 var SPECIES = wks('species');
3686
3687 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
3688 // #replace needs built-in support for named groups.
3689 // #match works fine because it just return the exec results, even if it has
3690 // a "grops" property.
3691 var re = /./;
3692 re.exec = function () {
3693 var result = [];
3694 result.groups = { a: '7' };
3695 return result;
3696 };
3697 return ''.replace(re, '$<a>') !== '7';
3698 });
3699
3700 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
3701 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
3702 var re = /(?:)/;
3703 var originalExec = re.exec;
3704 re.exec = function () { return originalExec.apply(this, arguments); };
3705 var result = 'ab'.split(re);
3706 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
3707 })();
3708
3709 module.exports = function (KEY, length, exec) {
3710 var SYMBOL = wks(KEY);
3711
3712 var DELEGATES_TO_SYMBOL = !fails(function () {
3713 // String methods call symbol-named RegEp methods
3714 var O = {};
3715 O[SYMBOL] = function () { return 7; };
3716 return ''[KEY](O) != 7;
3717 });
3718
3719 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
3720 // Symbol-named RegExp methods call .exec
3721 var execCalled = false;
3722 var re = /a/;
3723 re.exec = function () { execCalled = true; return null; };
3724 if (KEY === 'split') {
3725 // RegExp[@@split] doesn't call the regex's exec method, but first creates
3726 // a new one. We need to return the patched regex when creating the new one.
3727 re.constructor = {};
3728 re.constructor[SPECIES] = function () { return re; };
3729 }
3730 re[SYMBOL]('');
3731 return !execCalled;
3732 }) : undefined;
3733
3734 if (
3735 !DELEGATES_TO_SYMBOL ||
3736 !DELEGATES_TO_EXEC ||
3737 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
3738 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
3739 ) {
3740 var nativeRegExpMethod = /./[SYMBOL];
3741 var fns = exec(
3742 defined,
3743 SYMBOL,
3744 ''[KEY],
3745 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
3746 if (regexp.exec === regexpExec) {
3747 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3748 // The native String method already delegates to @@method (this
3749 // polyfilled function), leasing to infinite recursion.
3750 // We avoid it by directly calling the native @@method method.
3751 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
3752 }
3753 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
3754 }
3755 return { done: false };
3756 }
3757 );
3758 var strfn = fns[0];
3759 var rxfn = fns[1];
3760
3761 redefine(String.prototype, KEY, strfn);
3762 hide(RegExp.prototype, SYMBOL, length == 2
3763 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
3764 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
3765 ? function (string, arg) { return rxfn.call(string, this, arg); }
3766 // 21.2.5.6 RegExp.prototype[@@match](string)
3767 // 21.2.5.9 RegExp.prototype[@@search](string)
3768 : function (string) { return rxfn.call(string, this); }
3769 );
3770 }
3771 };
3772
3773
3774 /***/ }),
3775 /* 102 */
3776 /***/ (function(module, exports, __webpack_require__) {
3777
3778 // 7.1.13 ToObject(argument)
3779 var defined = __webpack_require__(43);
3780 module.exports = function (it) {
3781 return Object(defined(it));
3782 };
3783
3784
3785 /***/ }),
3786 /* 103 */
3787 /***/ (function(module, exports, __webpack_require__) {
3788
3789 // fallback for non-array-like ES3 and non-enumerable old V8 strings
3790 var cof = __webpack_require__(56);
3791 // eslint-disable-next-line no-prototype-builtins
3792 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
3793 return cof(it) == 'String' ? it.split('') : Object(it);
3794 };
3795
3796
3797 /***/ }),
3798 /* 104 */
3799 /***/ (function(module, exports, __webpack_require__) {
3800
3801 // to indexed object, toObject with fallback for non-array-like ES3 strings
3802 var IObject = __webpack_require__(125);
3803 var defined = __webpack_require__(43);
3804 module.exports = function (it) {
3805 return IObject(defined(it));
3806 };
3807
3808
3809 /***/ }),
3810 /* 105 */
3811 /***/ (function(module, exports, __webpack_require__) {
3812
3813 var arrayWithHoles = __webpack_require__(247);
3814
3815 var iterableToArrayLimit = __webpack_require__(248);
3816
3817 var unsupportedIterableToArray = __webpack_require__(194);
3818
3819 var nonIterableRest = __webpack_require__(251);
3820
3821 function _slicedToArray(arr, i) {
3822 return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3823 }
3824
3825 module.exports = _slicedToArray;
3826
3827 /***/ }),
3828 /* 106 */
3829 /***/ (function(module, exports) {
3830
3831 module.exports = function (bitmap, value) {
3832 return {
3833 enumerable: !(bitmap & 1),
3834 configurable: !(bitmap & 2),
3835 writable: !(bitmap & 4),
3836 value: value
3837 };
3838 };
3839
3840
3841 /***/ }),
3842 /* 107 */
3843 /***/ (function(module, exports, __webpack_require__) {
3844
3845 module.exports = __webpack_require__(173);
3846
3847 /***/ }),
3848 /* 108 */
3849 /***/ (function(module, exports, __webpack_require__) {
3850
3851 "use strict";
3852
3853 var at = __webpack_require__(146)(true);
3854
3855 // `AdvanceStringIndex` abstract operation
3856 // https://tc39.github.io/ecma262/#sec-advancestringindex
3857 module.exports = function (S, index, unicode) {
3858 return index + (unicode ? at(S, index).length : 1);
3859 };
3860
3861
3862 /***/ }),
3863 /* 109 */
3864 /***/ (function(module, exports, __webpack_require__) {
3865
3866 "use strict";
3867
3868 // 21.2.5.3 get RegExp.prototype.flags
3869 var anObject = __webpack_require__(20);
3870 module.exports = function () {
3871 var that = anObject(this);
3872 var result = '';
3873 if (that.global) result += 'g';
3874 if (that.ignoreCase) result += 'i';
3875 if (that.multiline) result += 'm';
3876 if (that.unicode) result += 'u';
3877 if (that.sticky) result += 'y';
3878 return result;
3879 };
3880
3881
3882 /***/ }),
3883 /* 110 */
3884 /***/ (function(module, exports, __webpack_require__) {
3885
3886 module.exports = !__webpack_require__(14) && !__webpack_require__(21)(function () {
3887 return Object.defineProperty(__webpack_require__(88)('div'), 'a', { get: function () { return 7; } }).a != 7;
3888 });
3889
3890
3891 /***/ }),
3892 /* 111 */
3893 /***/ (function(module, exports, __webpack_require__) {
3894
3895 module.exports = __webpack_require__(157);
3896
3897 /***/ }),
3898 /* 112 */
3899 /***/ (function(module, exports, __webpack_require__) {
3900
3901 var has = __webpack_require__(17);
3902 var toIObject = __webpack_require__(19);
3903 var arrayIndexOf = __webpack_require__(162)(false);
3904 var IE_PROTO = __webpack_require__(70)('IE_PROTO');
3905
3906 module.exports = function (object, names) {
3907 var O = toIObject(object);
3908 var i = 0;
3909 var result = [];
3910 var key;
3911 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
3912 // Don't enum bug & hidden keys
3913 while (names.length > i) if (has(O, key = names[i++])) {
3914 ~arrayIndexOf(result, key) || result.push(key);
3915 }
3916 return result;
3917 };
3918
3919
3920 /***/ }),
3921 /* 113 */
3922 /***/ (function(module, exports, __webpack_require__) {
3923
3924 var isObject = __webpack_require__(9);
3925 module.exports = function (it, TYPE) {
3926 if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
3927 return it;
3928 };
3929
3930
3931 /***/ }),
3932 /* 114 */
3933 /***/ (function(module, exports, __webpack_require__) {
3934
3935 var isObject = __webpack_require__(31);
3936 var document = __webpack_require__(18).document;
3937 // typeof document.createElement is 'object' in old IE
3938 var is = isObject(document) && isObject(document.createElement);
3939 module.exports = function (it) {
3940 return is ? document.createElement(it) : {};
3941 };
3942
3943
3944 /***/ }),
3945 /* 115 */
3946 /***/ (function(module, exports) {
3947
3948 module.exports = false;
3949
3950
3951 /***/ }),
3952 /* 116 */
3953 /***/ (function(module, exports, __webpack_require__) {
3954
3955 module.exports = __webpack_require__(184);
3956
3957 /***/ }),
3958 /* 117 */
3959 /***/ (function(module, exports, __webpack_require__) {
3960
3961 var classof = __webpack_require__(99);
3962 var ITERATOR = __webpack_require__(10)('iterator');
3963 var Iterators = __webpack_require__(33);
3964 module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
3965 if (it != undefined) return it[ITERATOR]
3966 || it['@@iterator']
3967 || Iterators[classof(it)];
3968 };
3969
3970
3971 /***/ }),
3972 /* 118 */
3973 /***/ (function(module, exports, __webpack_require__) {
3974
3975 // getting tag from 19.1.3.6 Object.prototype.toString()
3976 var cof = __webpack_require__(52);
3977 var TAG = __webpack_require__(13)('toStringTag');
3978 // ES3 wrong here
3979 var ARG = cof(function () { return arguments; }()) == 'Arguments';
3980
3981 // fallback for IE11 Script Access Denied error
3982 var tryGet = function (it, key) {
3983 try {
3984 return it[key];
3985 } catch (e) { /* empty */ }
3986 };
3987
3988 module.exports = function (it) {
3989 var O, T, B;
3990 return it === undefined ? 'Undefined' : it === null ? 'Null'
3991 // @@toStringTag case
3992 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
3993 // builtinTag case
3994 : ARG ? cof(O)
3995 // ES3 arguments fallback
3996 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
3997 };
3998
3999
4000 /***/ }),
4001 /* 119 */
4002 /***/ (function(module, exports, __webpack_require__) {
4003
4004 var _Object$setPrototypeOf = __webpack_require__(111);
4005
4006 function _setPrototypeOf(o, p) {
4007 module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
4008 o.__proto__ = p;
4009 return o;
4010 };
4011
4012 return _setPrototypeOf(o, p);
4013 }
4014
4015 module.exports = _setPrototypeOf;
4016
4017 /***/ }),
4018 /* 120 */
4019 /***/ (function(module, exports) {
4020
4021 module.exports = function (it, Constructor, name, forbiddenField) {
4022 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
4023 throw TypeError(name + ': incorrect invocation!');
4024 } return it;
4025 };
4026
4027
4028 /***/ }),
4029 /* 121 */
4030 /***/ (function(module, exports, __webpack_require__) {
4031
4032 var hide = __webpack_require__(22);
4033 module.exports = function (target, src, safe) {
4034 for (var key in src) {
4035 if (safe && target[key]) target[key] = src[key];
4036 else hide(target, key, src[key]);
4037 } return target;
4038 };
4039
4040
4041 /***/ }),
4042 /* 122 */
4043 /***/ (function(module, exports, __webpack_require__) {
4044
4045 "use strict";
4046
4047 var addToUnscopables = __webpack_require__(90);
4048 var step = __webpack_require__(241);
4049 var Iterators = __webpack_require__(123);
4050 var toIObject = __webpack_require__(104);
4051
4052 // 22.1.3.4 Array.prototype.entries()
4053 // 22.1.3.13 Array.prototype.keys()
4054 // 22.1.3.29 Array.prototype.values()
4055 // 22.1.3.30 Array.prototype[@@iterator]()
4056 module.exports = __webpack_require__(198)(Array, 'Array', function (iterated, kind) {
4057 this._t = toIObject(iterated); // target
4058 this._i = 0; // next index
4059 this._k = kind; // kind
4060 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
4061 }, function () {
4062 var O = this._t;
4063 var kind = this._k;
4064 var index = this._i++;
4065 if (!O || index >= O.length) {
4066 this._t = undefined;
4067 return step(1);
4068 }
4069 if (kind == 'keys') return step(0, index);
4070 if (kind == 'values') return step(0, O[index]);
4071 return step(0, [index, O[index]]);
4072 }, 'values');
4073
4074 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
4075 Iterators.Arguments = Iterators.Array;
4076
4077 addToUnscopables('keys');
4078 addToUnscopables('values');
4079 addToUnscopables('entries');
4080
4081
4082 /***/ }),
4083 /* 123 */
4084 /***/ (function(module, exports) {
4085
4086 module.exports = {};
4087
4088
4089 /***/ }),
4090 /* 124 */
4091 /***/ (function(module, exports, __webpack_require__) {
4092
4093 "use strict";
4094
4095
4096 var anObject = __webpack_require__(20);
4097 var toLength = __webpack_require__(46);
4098 var advanceStringIndex = __webpack_require__(108);
4099 var regExpExec = __webpack_require__(100);
4100
4101 // @@match logic
4102 __webpack_require__(101)('match', 1, function (defined, MATCH, $match, maybeCallNative) {
4103 return [
4104 // `String.prototype.match` method
4105 // https://tc39.github.io/ecma262/#sec-string.prototype.match
4106 function match(regexp) {
4107 var O = defined(this);
4108 var fn = regexp == undefined ? undefined : regexp[MATCH];
4109 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
4110 },
4111 // `RegExp.prototype[@@match]` method
4112 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
4113 function (regexp) {
4114 var res = maybeCallNative($match, regexp, this);
4115 if (res.done) return res.value;
4116 var rx = anObject(regexp);
4117 var S = String(this);
4118 if (!rx.global) return regExpExec(rx, S);
4119 var fullUnicode = rx.unicode;
4120 rx.lastIndex = 0;
4121 var A = [];
4122 var n = 0;
4123 var result;
4124 while ((result = regExpExec(rx, S)) !== null) {
4125 var matchStr = String(result[0]);
4126 A[n] = matchStr;
4127 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4128 n++;
4129 }
4130 return n === 0 ? null : A;
4131 }
4132 ];
4133 });
4134
4135
4136 /***/ }),
4137 /* 125 */
4138 /***/ (function(module, exports, __webpack_require__) {
4139
4140 // fallback for non-array-like ES3 and non-enumerable old V8 strings
4141 var cof = __webpack_require__(52);
4142 // eslint-disable-next-line no-prototype-builtins
4143 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
4144 return cof(it) == 'String' ? it.split('') : Object(it);
4145 };
4146
4147
4148 /***/ }),
4149 /* 126 */
4150 /***/ (function(module, exports, __webpack_require__) {
4151
4152 // 7.2.8 IsRegExp(argument)
4153 var isObject = __webpack_require__(31);
4154 var cof = __webpack_require__(52);
4155 var MATCH = __webpack_require__(13)('match');
4156 module.exports = function (it) {
4157 var isRegExp;
4158 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
4159 };
4160
4161
4162 /***/ }),
4163 /* 127 */
4164 /***/ (function(module, exports, __webpack_require__) {
4165
4166 // 7.1.1 ToPrimitive(input [, PreferredType])
4167 var isObject = __webpack_require__(31);
4168 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
4169 // and the second argument - flag - preferred type is a string
4170 module.exports = function (it, S) {
4171 if (!isObject(it)) return it;
4172 var fn, val;
4173 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
4174 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
4175 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
4176 throw TypeError("Can't convert object to primitive value");
4177 };
4178
4179
4180 /***/ }),
4181 /* 128 */,
4182 /* 129 */,
4183 /* 130 */
4184 /***/ (function(module, exports, __webpack_require__) {
4185
4186 module.exports = __webpack_require__(160);
4187
4188 /***/ }),
4189 /* 131 */
4190 /***/ (function(module, exports, __webpack_require__) {
4191
4192 var dP = __webpack_require__(15);
4193 var anObject = __webpack_require__(11);
4194 var getKeys = __webpack_require__(37);
4195
4196 module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
4197 anObject(O);
4198 var keys = getKeys(Properties);
4199 var length = keys.length;
4200 var i = 0;
4201 var P;
4202 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
4203 return O;
4204 };
4205
4206
4207 /***/ }),
4208 /* 132 */
4209 /***/ (function(module, exports, __webpack_require__) {
4210
4211 var document = __webpack_require__(8).document;
4212 module.exports = document && document.documentElement;
4213
4214
4215 /***/ }),
4216 /* 133 */
4217 /***/ (function(module, exports) {
4218
4219 // fast apply, http://jsperf.lnkit.com/fast-apply/5
4220 module.exports = function (fn, args, that) {
4221 var un = that === undefined;
4222 switch (args.length) {
4223 case 0: return un ? fn()
4224 : fn.call(that);
4225 case 1: return un ? fn(args[0])
4226 : fn.call(that, args[0]);
4227 case 2: return un ? fn(args[0], args[1])
4228 : fn.call(that, args[0], args[1]);
4229 case 3: return un ? fn(args[0], args[1], args[2])
4230 : fn.call(that, args[0], args[1], args[2]);
4231 case 4: return un ? fn(args[0], args[1], args[2], args[3])
4232 : fn.call(that, args[0], args[1], args[2], args[3]);
4233 } return fn.apply(that, args);
4234 };
4235
4236
4237 /***/ }),
4238 /* 134 */
4239 /***/ (function(module, exports, __webpack_require__) {
4240
4241 module.exports = __webpack_require__(257);
4242
4243 /***/ }),
4244 /* 135 */
4245 /***/ (function(module, exports, __webpack_require__) {
4246
4247 module.exports = !__webpack_require__(28) && !__webpack_require__(36)(function () {
4248 return Object.defineProperty(__webpack_require__(114)('div'), 'a', { get: function () { return 7; } }).a != 7;
4249 });
4250
4251
4252 /***/ }),
4253 /* 136 */
4254 /***/ (function(module, exports, __webpack_require__) {
4255
4256 "use strict";
4257
4258 // ECMAScript 6 symbols shim
4259 var global = __webpack_require__(8);
4260 var has = __webpack_require__(17);
4261 var DESCRIPTORS = __webpack_require__(14);
4262 var $export = __webpack_require__(7);
4263 var redefine = __webpack_require__(89);
4264 var META = __webpack_require__(66).KEY;
4265 var $fails = __webpack_require__(21);
4266 var shared = __webpack_require__(71);
4267 var setToStringTag = __webpack_require__(53);
4268 var uid = __webpack_require__(55);
4269 var wks = __webpack_require__(10);
4270 var wksExt = __webpack_require__(62);
4271 var wksDefine = __webpack_require__(75);
4272 var enumKeys = __webpack_require__(174);
4273 var isArray = __webpack_require__(97);
4274 var anObject = __webpack_require__(11);
4275 var isObject = __webpack_require__(9);
4276 var toObject = __webpack_require__(32);
4277 var toIObject = __webpack_require__(19);
4278 var toPrimitive = __webpack_require__(69);
4279 var createDesc = __webpack_require__(42);
4280 var _create = __webpack_require__(47);
4281 var gOPNExt = __webpack_require__(175);
4282 var $GOPD = __webpack_require__(48);
4283 var $GOPS = __webpack_require__(67);
4284 var $DP = __webpack_require__(15);
4285 var $keys = __webpack_require__(37);
4286 var gOPD = $GOPD.f;
4287 var dP = $DP.f;
4288 var gOPN = gOPNExt.f;
4289 var $Symbol = global.Symbol;
4290 var $JSON = global.JSON;
4291 var _stringify = $JSON && $JSON.stringify;
4292 var PROTOTYPE = 'prototype';
4293 var HIDDEN = wks('_hidden');
4294 var TO_PRIMITIVE = wks('toPrimitive');
4295 var isEnum = {}.propertyIsEnumerable;
4296 var SymbolRegistry = shared('symbol-registry');
4297 var AllSymbols = shared('symbols');
4298 var OPSymbols = shared('op-symbols');
4299 var ObjectProto = Object[PROTOTYPE];
4300 var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
4301 var QObject = global.QObject;
4302 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
4303 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
4304
4305 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
4306 var setSymbolDesc = DESCRIPTORS && $fails(function () {
4307 return _create(dP({}, 'a', {
4308 get: function () { return dP(this, 'a', { value: 7 }).a; }
4309 })).a != 7;
4310 }) ? function (it, key, D) {
4311 var protoDesc = gOPD(ObjectProto, key);
4312 if (protoDesc) delete ObjectProto[key];
4313 dP(it, key, D);
4314 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
4315 } : dP;
4316
4317 var wrap = function (tag) {
4318 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
4319 sym._k = tag;
4320 return sym;
4321 };
4322
4323 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
4324 return typeof it == 'symbol';
4325 } : function (it) {
4326 return it instanceof $Symbol;
4327 };
4328
4329 var $defineProperty = function defineProperty(it, key, D) {
4330 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
4331 anObject(it);
4332 key = toPrimitive(key, true);
4333 anObject(D);
4334 if (has(AllSymbols, key)) {
4335 if (!D.enumerable) {
4336 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
4337 it[HIDDEN][key] = true;
4338 } else {
4339 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
4340 D = _create(D, { enumerable: createDesc(0, false) });
4341 } return setSymbolDesc(it, key, D);
4342 } return dP(it, key, D);
4343 };
4344 var $defineProperties = function defineProperties(it, P) {
4345 anObject(it);
4346 var keys = enumKeys(P = toIObject(P));
4347 var i = 0;
4348 var l = keys.length;
4349 var key;
4350 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
4351 return it;
4352 };
4353 var $create = function create(it, P) {
4354 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
4355 };
4356 var $propertyIsEnumerable = function propertyIsEnumerable(key) {
4357 var E = isEnum.call(this, key = toPrimitive(key, true));
4358 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
4359 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
4360 };
4361 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
4362 it = toIObject(it);
4363 key = toPrimitive(key, true);
4364 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
4365 var D = gOPD(it, key);
4366 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
4367 return D;
4368 };
4369 var $getOwnPropertyNames = function getOwnPropertyNames(it) {
4370 var names = gOPN(toIObject(it));
4371 var result = [];
4372 var i = 0;
4373 var key;
4374 while (names.length > i) {
4375 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
4376 } return result;
4377 };
4378 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
4379 var IS_OP = it === ObjectProto;
4380 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
4381 var result = [];
4382 var i = 0;
4383 var key;
4384 while (names.length > i) {
4385 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
4386 } return result;
4387 };
4388
4389 // 19.4.1.1 Symbol([description])
4390 if (!USE_NATIVE) {
4391 $Symbol = function Symbol() {
4392 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
4393 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
4394 var $set = function (value) {
4395 if (this === ObjectProto) $set.call(OPSymbols, value);
4396 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
4397 setSymbolDesc(this, tag, createDesc(1, value));
4398 };
4399 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
4400 return wrap(tag);
4401 };
4402 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
4403 return this._k;
4404 });
4405
4406 $GOPD.f = $getOwnPropertyDescriptor;
4407 $DP.f = $defineProperty;
4408 __webpack_require__(91).f = gOPNExt.f = $getOwnPropertyNames;
4409 __webpack_require__(49).f = $propertyIsEnumerable;
4410 $GOPS.f = $getOwnPropertySymbols;
4411
4412 if (DESCRIPTORS && !__webpack_require__(44)) {
4413 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
4414 }
4415
4416 wksExt.f = function (name) {
4417 return wrap(wks(name));
4418 };
4419 }
4420
4421 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
4422
4423 for (var es6Symbols = (
4424 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
4425 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
4426 ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
4427
4428 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
4429
4430 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
4431 // 19.4.2.1 Symbol.for(key)
4432 'for': function (key) {
4433 return has(SymbolRegistry, key += '')
4434 ? SymbolRegistry[key]
4435 : SymbolRegistry[key] = $Symbol(key);
4436 },
4437 // 19.4.2.5 Symbol.keyFor(sym)
4438 keyFor: function keyFor(sym) {
4439 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
4440 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
4441 },
4442 useSetter: function () { setter = true; },
4443 useSimple: function () { setter = false; }
4444 });
4445
4446 $export($export.S + $export.F * !USE_NATIVE, 'Object', {
4447 // 19.1.2.2 Object.create(O [, Properties])
4448 create: $create,
4449 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
4450 defineProperty: $defineProperty,
4451 // 19.1.2.3 Object.defineProperties(O, Properties)
4452 defineProperties: $defineProperties,
4453 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
4454 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
4455 // 19.1.2.7 Object.getOwnPropertyNames(O)
4456 getOwnPropertyNames: $getOwnPropertyNames,
4457 // 19.1.2.8 Object.getOwnPropertySymbols(O)
4458 getOwnPropertySymbols: $getOwnPropertySymbols
4459 });
4460
4461 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
4462 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
4463 var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
4464
4465 $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
4466 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
4467 return $GOPS.f(toObject(it));
4468 }
4469 });
4470
4471 // 24.3.2 JSON.stringify(value [, replacer [, space]])
4472 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
4473 var S = $Symbol();
4474 // MS Edge converts symbol values to JSON as {}
4475 // WebKit converts symbol values to JSON as null
4476 // V8 throws on boxed symbols
4477 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
4478 })), 'JSON', {
4479 stringify: function stringify(it) {
4480 var args = [it];
4481 var i = 1;
4482 var replacer, $replacer;
4483 while (arguments.length > i) args.push(arguments[i++]);
4484 $replacer = replacer = args[1];
4485 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
4486 if (!isArray(replacer)) replacer = function (key, value) {
4487 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
4488 if (!isSymbol(value)) return value;
4489 };
4490 args[1] = replacer;
4491 return _stringify.apply($JSON, args);
4492 }
4493 });
4494
4495 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
4496 $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(22)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
4497 // 19.4.3.5 Symbol.prototype[@@toStringTag]
4498 setToStringTag($Symbol, 'Symbol');
4499 // 20.2.1.9 Math[@@toStringTag]
4500 setToStringTag(Math, 'Math', true);
4501 // 24.3.3 JSON[@@toStringTag]
4502 setToStringTag(global.JSON, 'JSON', true);
4503
4504
4505 /***/ }),
4506 /* 137 */
4507 /***/ (function(module, exports, __webpack_require__) {
4508
4509 var shared = __webpack_require__(76)('keys');
4510 var uid = __webpack_require__(77);
4511 module.exports = function (key) {
4512 return shared[key] || (shared[key] = uid(key));
4513 };
4514
4515
4516 /***/ }),
4517 /* 138 */
4518 /***/ (function(module, exports, __webpack_require__) {
4519
4520 var _Reflect$construct = __webpack_require__(95);
4521
4522 function _isNativeReflectConstruct() {
4523 if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
4524 if (_Reflect$construct.sham) return false;
4525 if (typeof Proxy === "function") return true;
4526
4527 try {
4528 Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
4529 return true;
4530 } catch (e) {
4531 return false;
4532 }
4533 }
4534
4535 module.exports = _isNativeReflectConstruct;
4536
4537 /***/ }),
4538 /* 139 */
4539 /***/ (function(module, exports) {
4540
4541 module.exports = function (done, value) {
4542 return { value: value, done: !!done };
4543 };
4544
4545
4546 /***/ }),
4547 /* 140 */
4548 /***/ (function(module, exports, __webpack_require__) {
4549
4550 module.exports = __webpack_require__(291);
4551
4552 /***/ }),
4553 /* 141 */
4554 /***/ (function(module, exports, __webpack_require__) {
4555
4556 "use strict";
4557
4558 // https://github.com/tc39/Array.prototype.includes
4559 var $export = __webpack_require__(38);
4560 var $includes = __webpack_require__(145)(true);
4561
4562 $export($export.P, 'Array', {
4563 includes: function includes(el /* , fromIndex = 0 */) {
4564 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4565 }
4566 });
4567
4568 __webpack_require__(90)('includes');
4569
4570
4571 /***/ }),
4572 /* 142 */
4573 /***/ (function(module, exports, __webpack_require__) {
4574
4575 // 0 -> Array#forEach
4576 // 1 -> Array#map
4577 // 2 -> Array#filter
4578 // 3 -> Array#some
4579 // 4 -> Array#every
4580 // 5 -> Array#find
4581 // 6 -> Array#findIndex
4582 var ctx = __webpack_require__(29);
4583 var IObject = __webpack_require__(103);
4584 var toObject = __webpack_require__(32);
4585 var toLength = __webpack_require__(72);
4586 var asc = __webpack_require__(245);
4587 module.exports = function (TYPE, $create) {
4588 var IS_MAP = TYPE == 1;
4589 var IS_FILTER = TYPE == 2;
4590 var IS_SOME = TYPE == 3;
4591 var IS_EVERY = TYPE == 4;
4592 var IS_FIND_INDEX = TYPE == 6;
4593 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
4594 var create = $create || asc;
4595 return function ($this, callbackfn, that) {
4596 var O = toObject($this);
4597 var self = IObject(O);
4598 var f = ctx(callbackfn, that, 3);
4599 var length = toLength(self.length);
4600 var index = 0;
4601 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
4602 var val, res;
4603 for (;length > index; index++) if (NO_HOLES || index in self) {
4604 val = self[index];
4605 res = f(val, index, O);
4606 if (TYPE) {
4607 if (IS_MAP) result[index] = res; // map
4608 else if (res) switch (TYPE) {
4609 case 3: return true; // some
4610 case 5: return val; // find
4611 case 6: return index; // findIndex
4612 case 2: result.push(val); // filter
4613 } else if (IS_EVERY) return false; // every
4614 }
4615 }
4616 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
4617 };
4618 };
4619
4620
4621 /***/ }),
4622 /* 143 */
4623 /***/ (function(module, exports, __webpack_require__) {
4624
4625 // call something on iterator step with safe closing on error
4626 var anObject = __webpack_require__(11);
4627 module.exports = function (iterator, fn, value, entries) {
4628 try {
4629 return entries ? fn(anObject(value)[0], value[1]) : fn(value);
4630 // 7.4.6 IteratorClose(iterator, completion)
4631 } catch (e) {
4632 var ret = iterator['return'];
4633 if (ret !== undefined) anObject(ret.call(iterator));
4634 throw e;
4635 }
4636 };
4637
4638
4639 /***/ }),
4640 /* 144 */
4641 /***/ (function(module, exports, __webpack_require__) {
4642
4643 // check on default Array iterator
4644 var Iterators = __webpack_require__(33);
4645 var ITERATOR = __webpack_require__(10)('iterator');
4646 var ArrayProto = Array.prototype;
4647
4648 module.exports = function (it) {
4649 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
4650 };
4651
4652
4653 /***/ }),
4654 /* 145 */
4655 /***/ (function(module, exports, __webpack_require__) {
4656
4657 // false -> Array#indexOf
4658 // true -> Array#includes
4659 var toIObject = __webpack_require__(104);
4660 var toLength = __webpack_require__(46);
4661 var toAbsoluteIndex = __webpack_require__(199);
4662 module.exports = function (IS_INCLUDES) {
4663 return function ($this, el, fromIndex) {
4664 var O = toIObject($this);
4665 var length = toLength(O.length);
4666 var index = toAbsoluteIndex(fromIndex, length);
4667 var value;
4668 // Array#includes uses SameValueZero equality algorithm
4669 // eslint-disable-next-line no-self-compare
4670 if (IS_INCLUDES && el != el) while (length > index) {
4671 value = O[index++];
4672 // eslint-disable-next-line no-self-compare
4673 if (value != value) return true;
4674 // Array#indexOf ignores holes, Array#includes - not
4675 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4676 if (O[index] === el) return IS_INCLUDES || index || 0;
4677 } return !IS_INCLUDES && -1;
4678 };
4679 };
4680
4681
4682 /***/ }),
4683 /* 146 */
4684 /***/ (function(module, exports, __webpack_require__) {
4685
4686 var toInteger = __webpack_require__(60);
4687 var defined = __webpack_require__(43);
4688 // true -> String#at
4689 // false -> String#codePointAt
4690 module.exports = function (TO_STRING) {
4691 return function (that, pos) {
4692 var s = String(defined(that));
4693 var i = toInteger(pos);
4694 var l = s.length;
4695 var a, b;
4696 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
4697 a = s.charCodeAt(i);
4698 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
4699 ? TO_STRING ? s.charAt(i) : a
4700 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
4701 };
4702 };
4703
4704
4705 /***/ }),
4706 /* 147 */
4707 /***/ (function(module, exports, __webpack_require__) {
4708
4709 module.exports = __webpack_require__(76)('native-function-to-string', Function.toString);
4710
4711
4712 /***/ }),
4713 /* 148 */
4714 /***/ (function(module, exports, __webpack_require__) {
4715
4716 module.exports = __webpack_require__(168);
4717
4718 /***/ }),
4719 /* 149 */
4720 /***/ (function(module, exports, __webpack_require__) {
4721
4722 "use strict";
4723
4724 // 25.4.1.5 NewPromiseCapability(C)
4725 var aFunction = __webpack_require__(35);
4726
4727 function PromiseCapability(C) {
4728 var resolve, reject;
4729 this.promise = new C(function ($$resolve, $$reject) {
4730 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
4731 resolve = $$resolve;
4732 reject = $$reject;
4733 });
4734 this.resolve = aFunction(resolve);
4735 this.reject = aFunction(reject);
4736 }
4737
4738 module.exports.f = function (C) {
4739 return new PromiseCapability(C);
4740 };
4741
4742
4743 /***/ }),
4744 /* 150 */
4745 /***/ (function(module, exports, __webpack_require__) {
4746
4747 var $iterators = __webpack_require__(122);
4748 var getKeys = __webpack_require__(192);
4749 var redefine = __webpack_require__(39);
4750 var global = __webpack_require__(18);
4751 var hide = __webpack_require__(30);
4752 var Iterators = __webpack_require__(123);
4753 var wks = __webpack_require__(13);
4754 var ITERATOR = wks('iterator');
4755 var TO_STRING_TAG = wks('toStringTag');
4756 var ArrayValues = Iterators.Array;
4757
4758 var DOMIterables = {
4759 CSSRuleList: true, // TODO: Not spec compliant, should be false.
4760 CSSStyleDeclaration: false,
4761 CSSValueList: false,
4762 ClientRectList: false,
4763 DOMRectList: false,
4764 DOMStringList: false,
4765 DOMTokenList: true,
4766 DataTransferItemList: false,
4767 FileList: false,
4768 HTMLAllCollection: false,
4769 HTMLCollection: false,
4770 HTMLFormElement: false,
4771 HTMLSelectElement: false,
4772 MediaList: true, // TODO: Not spec compliant, should be false.
4773 MimeTypeArray: false,
4774 NamedNodeMap: false,
4775 NodeList: true,
4776 PaintRequestList: false,
4777 Plugin: false,
4778 PluginArray: false,
4779 SVGLengthList: false,
4780 SVGNumberList: false,
4781 SVGPathSegList: false,
4782 SVGPointList: false,
4783 SVGStringList: false,
4784 SVGTransformList: false,
4785 SourceBufferList: false,
4786 StyleSheetList: true, // TODO: Not spec compliant, should be false.
4787 TextTrackCueList: false,
4788 TextTrackList: false,
4789 TouchList: false
4790 };
4791
4792 for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
4793 var NAME = collections[i];
4794 var explicit = DOMIterables[NAME];
4795 var Collection = global[NAME];
4796 var proto = Collection && Collection.prototype;
4797 var key;
4798 if (proto) {
4799 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
4800 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
4801 Iterators[NAME] = ArrayValues;
4802 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
4803 }
4804 }
4805
4806
4807 /***/ }),
4808 /* 151 */
4809 /***/ (function(module, exports) {
4810
4811 // IE 8- don't enum bug keys
4812 module.exports = (
4813 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
4814 ).split(',');
4815
4816
4817 /***/ }),
4818 /* 152 */
4819 /***/ (function(module, exports, __webpack_require__) {
4820
4821 __webpack_require__(153);
4822 var $Object = __webpack_require__(6).Object;
4823 module.exports = function defineProperty(it, key, desc) {
4824 return $Object.defineProperty(it, key, desc);
4825 };
4826
4827
4828 /***/ }),
4829 /* 153 */
4830 /***/ (function(module, exports, __webpack_require__) {
4831
4832 var $export = __webpack_require__(7);
4833 // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
4834 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f });
4835
4836
4837 /***/ }),
4838 /* 154 */
4839 /***/ (function(module, exports, __webpack_require__) {
4840
4841 module.exports = __webpack_require__(155);
4842
4843 /***/ }),
4844 /* 155 */
4845 /***/ (function(module, exports, __webpack_require__) {
4846
4847 __webpack_require__(156);
4848 module.exports = __webpack_require__(6).Object.getPrototypeOf;
4849
4850
4851 /***/ }),
4852 /* 156 */
4853 /***/ (function(module, exports, __webpack_require__) {
4854
4855 // 19.1.2.9 Object.getPrototypeOf(O)
4856 var toObject = __webpack_require__(32);
4857 var $getPrototypeOf = __webpack_require__(63);
4858
4859 __webpack_require__(78)('getPrototypeOf', function () {
4860 return function getPrototypeOf(it) {
4861 return $getPrototypeOf(toObject(it));
4862 };
4863 });
4864
4865
4866 /***/ }),
4867 /* 157 */
4868 /***/ (function(module, exports, __webpack_require__) {
4869
4870 __webpack_require__(158);
4871 module.exports = __webpack_require__(6).Object.setPrototypeOf;
4872
4873
4874 /***/ }),
4875 /* 158 */
4876 /***/ (function(module, exports, __webpack_require__) {
4877
4878 // 19.1.3.19 Object.setPrototypeOf(O, proto)
4879 var $export = __webpack_require__(7);
4880 $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(159).set });
4881
4882
4883 /***/ }),
4884 /* 159 */
4885 /***/ (function(module, exports, __webpack_require__) {
4886
4887 // Works with __proto__ only. Old v8 can't work with null proto objects.
4888 /* eslint-disable no-proto */
4889 var isObject = __webpack_require__(9);
4890 var anObject = __webpack_require__(11);
4891 var check = function (O, proto) {
4892 anObject(O);
4893 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
4894 };
4895 module.exports = {
4896 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
4897 function (test, buggy, set) {
4898 try {
4899 set = __webpack_require__(29)(Function.call, __webpack_require__(48).f(Object.prototype, '__proto__').set, 2);
4900 set(test, []);
4901 buggy = !(test instanceof Array);
4902 } catch (e) { buggy = true; }
4903 return function setPrototypeOf(O, proto) {
4904 check(O, proto);
4905 if (buggy) O.__proto__ = proto;
4906 else set(O, proto);
4907 return O;
4908 };
4909 }({}, false) : undefined),
4910 check: check
4911 };
4912
4913
4914 /***/ }),
4915 /* 160 */
4916 /***/ (function(module, exports, __webpack_require__) {
4917
4918 __webpack_require__(161);
4919 var $Object = __webpack_require__(6).Object;
4920 module.exports = function create(P, D) {
4921 return $Object.create(P, D);
4922 };
4923
4924
4925 /***/ }),
4926 /* 161 */
4927 /***/ (function(module, exports, __webpack_require__) {
4928
4929 var $export = __webpack_require__(7);
4930 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
4931 $export($export.S, 'Object', { create: __webpack_require__(47) });
4932
4933
4934 /***/ }),
4935 /* 162 */
4936 /***/ (function(module, exports, __webpack_require__) {
4937
4938 // false -> Array#indexOf
4939 // true -> Array#includes
4940 var toIObject = __webpack_require__(19);
4941 var toLength = __webpack_require__(72);
4942 var toAbsoluteIndex = __webpack_require__(163);
4943 module.exports = function (IS_INCLUDES) {
4944 return function ($this, el, fromIndex) {
4945 var O = toIObject($this);
4946 var length = toLength(O.length);
4947 var index = toAbsoluteIndex(fromIndex, length);
4948 var value;
4949 // Array#includes uses SameValueZero equality algorithm
4950 // eslint-disable-next-line no-self-compare
4951 if (IS_INCLUDES && el != el) while (length > index) {
4952 value = O[index++];
4953 // eslint-disable-next-line no-self-compare
4954 if (value != value) return true;
4955 // Array#indexOf ignores holes, Array#includes - not
4956 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4957 if (O[index] === el) return IS_INCLUDES || index || 0;
4958 } return !IS_INCLUDES && -1;
4959 };
4960 };
4961
4962
4963 /***/ }),
4964 /* 163 */
4965 /***/ (function(module, exports, __webpack_require__) {
4966
4967 var toInteger = __webpack_require__(73);
4968 var max = Math.max;
4969 var min = Math.min;
4970 module.exports = function (index, length) {
4971 index = toInteger(index);
4972 return index < 0 ? max(index + length, 0) : min(index, length);
4973 };
4974
4975
4976 /***/ }),
4977 /* 164 */
4978 /***/ (function(module, exports, __webpack_require__) {
4979
4980 __webpack_require__(165);
4981 module.exports = __webpack_require__(6).Reflect.construct;
4982
4983
4984 /***/ }),
4985 /* 165 */
4986 /***/ (function(module, exports, __webpack_require__) {
4987
4988 // 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
4989 var $export = __webpack_require__(7);
4990 var create = __webpack_require__(47);
4991 var aFunction = __webpack_require__(35);
4992 var anObject = __webpack_require__(11);
4993 var isObject = __webpack_require__(9);
4994 var fails = __webpack_require__(21);
4995 var bind = __webpack_require__(166);
4996 var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
4997
4998 // MS Edge supports only 2 arguments and argumentsList argument is optional
4999 // FF Nightly sets third argument as `new.target`, but does not create `this` from it
5000 var NEW_TARGET_BUG = fails(function () {
5001 function F() { /* empty */ }
5002 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
5003 });
5004 var ARGS_BUG = !fails(function () {
5005 rConstruct(function () { /* empty */ });
5006 });
5007
5008 $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
5009 construct: function construct(Target, args /* , newTarget */) {
5010 aFunction(Target);
5011 anObject(args);
5012 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
5013 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
5014 if (Target == newTarget) {
5015 // w/o altered newTarget, optimization for 0-4 arguments
5016 switch (args.length) {
5017 case 0: return new Target();
5018 case 1: return new Target(args[0]);
5019 case 2: return new Target(args[0], args[1]);
5020 case 3: return new Target(args[0], args[1], args[2]);
5021 case 4: return new Target(args[0], args[1], args[2], args[3]);
5022 }
5023 // w/o altered newTarget, lot of arguments case
5024 var $args = [null];
5025 $args.push.apply($args, args);
5026 return new (bind.apply(Target, $args))();
5027 }
5028 // with altered newTarget, not support built-in constructors
5029 var proto = newTarget.prototype;
5030 var instance = create(isObject(proto) ? proto : Object.prototype);
5031 var result = Function.apply.call(Target, instance, args);
5032 return isObject(result) ? result : instance;
5033 }
5034 });
5035
5036
5037 /***/ }),
5038 /* 166 */
5039 /***/ (function(module, exports, __webpack_require__) {
5040
5041 "use strict";
5042
5043 var aFunction = __webpack_require__(35);
5044 var isObject = __webpack_require__(9);
5045 var invoke = __webpack_require__(133);
5046 var arraySlice = [].slice;
5047 var factories = {};
5048
5049 var construct = function (F, len, args) {
5050 if (!(len in factories)) {
5051 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
5052 // eslint-disable-next-line no-new-func
5053 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
5054 } return factories[len](F, args);
5055 };
5056
5057 module.exports = Function.bind || function bind(that /* , ...args */) {
5058 var fn = aFunction(this);
5059 var partArgs = arraySlice.call(arguments, 1);
5060 var bound = function (/* args... */) {
5061 var args = partArgs.concat(arraySlice.call(arguments));
5062 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
5063 };
5064 if (isObject(fn.prototype)) bound.prototype = fn.prototype;
5065 return bound;
5066 };
5067
5068
5069 /***/ }),
5070 /* 167 */
5071 /***/ (function(module, exports, __webpack_require__) {
5072
5073 var _typeof = __webpack_require__(50);
5074
5075 var assertThisInitialized = __webpack_require__(45);
5076
5077 function _possibleConstructorReturn(self, call) {
5078 if (call && (_typeof(call) === "object" || typeof call === "function")) {
5079 return call;
5080 }
5081
5082 return assertThisInitialized(self);
5083 }
5084
5085 module.exports = _possibleConstructorReturn;
5086
5087 /***/ }),
5088 /* 168 */
5089 /***/ (function(module, exports, __webpack_require__) {
5090
5091 __webpack_require__(57);
5092 __webpack_require__(59);
5093 module.exports = __webpack_require__(62).f('iterator');
5094
5095
5096 /***/ }),
5097 /* 169 */
5098 /***/ (function(module, exports, __webpack_require__) {
5099
5100 var toInteger = __webpack_require__(73);
5101 var defined = __webpack_require__(65);
5102 // true -> String#at
5103 // false -> String#codePointAt
5104 module.exports = function (TO_STRING) {
5105 return function (that, pos) {
5106 var s = String(defined(that));
5107 var i = toInteger(pos);
5108 var l = s.length;
5109 var a, b;
5110 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
5111 a = s.charCodeAt(i);
5112 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
5113 ? TO_STRING ? s.charAt(i) : a
5114 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
5115 };
5116 };
5117
5118
5119 /***/ }),
5120 /* 170 */
5121 /***/ (function(module, exports, __webpack_require__) {
5122
5123 "use strict";
5124
5125 var create = __webpack_require__(47);
5126 var descriptor = __webpack_require__(42);
5127 var setToStringTag = __webpack_require__(53);
5128 var IteratorPrototype = {};
5129
5130 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
5131 __webpack_require__(22)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
5132
5133 module.exports = function (Constructor, NAME, next) {
5134 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
5135 setToStringTag(Constructor, NAME + ' Iterator');
5136 };
5137
5138
5139 /***/ }),
5140 /* 171 */
5141 /***/ (function(module, exports, __webpack_require__) {
5142
5143 "use strict";
5144
5145 var addToUnscopables = __webpack_require__(172);
5146 var step = __webpack_require__(139);
5147 var Iterators = __webpack_require__(33);
5148 var toIObject = __webpack_require__(19);
5149
5150 // 22.1.3.4 Array.prototype.entries()
5151 // 22.1.3.13 Array.prototype.keys()
5152 // 22.1.3.29 Array.prototype.values()
5153 // 22.1.3.30 Array.prototype[@@iterator]()
5154 module.exports = __webpack_require__(96)(Array, 'Array', function (iterated, kind) {
5155 this._t = toIObject(iterated); // target
5156 this._i = 0; // next index
5157 this._k = kind; // kind
5158 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
5159 }, function () {
5160 var O = this._t;
5161 var kind = this._k;
5162 var index = this._i++;
5163 if (!O || index >= O.length) {
5164 this._t = undefined;
5165 return step(1);
5166 }
5167 if (kind == 'keys') return step(0, index);
5168 if (kind == 'values') return step(0, O[index]);
5169 return step(0, [index, O[index]]);
5170 }, 'values');
5171
5172 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
5173 Iterators.Arguments = Iterators.Array;
5174
5175 addToUnscopables('keys');
5176 addToUnscopables('values');
5177 addToUnscopables('entries');
5178
5179
5180 /***/ }),
5181 /* 172 */
5182 /***/ (function(module, exports) {
5183
5184 module.exports = function () { /* empty */ };
5185
5186
5187 /***/ }),
5188 /* 173 */
5189 /***/ (function(module, exports, __webpack_require__) {
5190
5191 __webpack_require__(136);
5192 __webpack_require__(92);
5193 __webpack_require__(176);
5194 __webpack_require__(177);
5195 module.exports = __webpack_require__(6).Symbol;
5196
5197
5198 /***/ }),
5199 /* 174 */
5200 /***/ (function(module, exports, __webpack_require__) {
5201
5202 // all enumerable object keys, includes symbols
5203 var getKeys = __webpack_require__(37);
5204 var gOPS = __webpack_require__(67);
5205 var pIE = __webpack_require__(49);
5206 module.exports = function (it) {
5207 var result = getKeys(it);
5208 var getSymbols = gOPS.f;
5209 if (getSymbols) {
5210 var symbols = getSymbols(it);
5211 var isEnum = pIE.f;
5212 var i = 0;
5213 var key;
5214 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
5215 } return result;
5216 };
5217
5218
5219 /***/ }),
5220 /* 175 */
5221 /***/ (function(module, exports, __webpack_require__) {
5222
5223 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
5224 var toIObject = __webpack_require__(19);
5225 var gOPN = __webpack_require__(91).f;
5226 var toString = {}.toString;
5227
5228 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
5229 ? Object.getOwnPropertyNames(window) : [];
5230
5231 var getWindowNames = function (it) {
5232 try {
5233 return gOPN(it);
5234 } catch (e) {
5235 return windowNames.slice();
5236 }
5237 };
5238
5239 module.exports.f = function getOwnPropertyNames(it) {
5240 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
5241 };
5242
5243
5244 /***/ }),
5245 /* 176 */
5246 /***/ (function(module, exports, __webpack_require__) {
5247
5248 __webpack_require__(75)('asyncIterator');
5249
5250
5251 /***/ }),
5252 /* 177 */
5253 /***/ (function(module, exports, __webpack_require__) {
5254
5255 __webpack_require__(75)('observable');
5256
5257
5258 /***/ }),
5259 /* 178 */
5260 /***/ (function(module, exports, __webpack_require__) {
5261
5262 var ITERATOR = __webpack_require__(10)('iterator');
5263 var SAFE_CLOSING = false;
5264
5265 try {
5266 var riter = [7][ITERATOR]();
5267 riter['return'] = function () { SAFE_CLOSING = true; };
5268 // eslint-disable-next-line no-throw-literal
5269 Array.from(riter, function () { throw 2; });
5270 } catch (e) { /* empty */ }
5271
5272 module.exports = function (exec, skipClosing) {
5273 if (!skipClosing && !SAFE_CLOSING) return false;
5274 var safe = false;
5275 try {
5276 var arr = [7];
5277 var iter = arr[ITERATOR]();
5278 iter.next = function () { return { done: safe = true }; };
5279 arr[ITERATOR] = function () { return iter; };
5280 exec(arr);
5281 } catch (e) { /* empty */ }
5282 return safe;
5283 };
5284
5285
5286 /***/ }),
5287 /* 179 */
5288 /***/ (function(module, exports, __webpack_require__) {
5289
5290 var def = __webpack_require__(51).f;
5291 var has = __webpack_require__(64);
5292 var TAG = __webpack_require__(13)('toStringTag');
5293
5294 module.exports = function (it, tag, stat) {
5295 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
5296 };
5297
5298
5299 /***/ }),
5300 /* 180 */
5301 /***/ (function(module, exports, __webpack_require__) {
5302
5303 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
5304 var anObject = __webpack_require__(20);
5305 var aFunction = __webpack_require__(98);
5306 var SPECIES = __webpack_require__(13)('species');
5307 module.exports = function (O, D) {
5308 var C = anObject(O).constructor;
5309 var S;
5310 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
5311 };
5312
5313
5314 /***/ }),
5315 /* 181 */
5316 /***/ (function(module, exports, __webpack_require__) {
5317
5318 var DESCRIPTORS = __webpack_require__(14);
5319 var getKeys = __webpack_require__(37);
5320 var toIObject = __webpack_require__(19);
5321 var isEnum = __webpack_require__(49).f;
5322 module.exports = function (isEntries) {
5323 return function (it) {
5324 var O = toIObject(it);
5325 var keys = getKeys(O);
5326 var length = keys.length;
5327 var i = 0;
5328 var result = [];
5329 var key;
5330 while (length > i) {
5331 key = keys[i++];
5332 if (!DESCRIPTORS || isEnum.call(O, key)) {
5333 result.push(isEntries ? [key, O[key]] : O[key]);
5334 }
5335 }
5336 return result;
5337 };
5338 };
5339
5340
5341 /***/ }),
5342 /* 182 */
5343 /***/ (function(module, exports, __webpack_require__) {
5344
5345 var _Object$defineProperty = __webpack_require__(1);
5346
5347 var _Object$defineProperties = __webpack_require__(273);
5348
5349 var _Object$getOwnPropertyDescriptors = __webpack_require__(293);
5350
5351 var _Object$getOwnPropertyDescriptor = __webpack_require__(116);
5352
5353 var _Object$getOwnPropertySymbols = __webpack_require__(297);
5354
5355 var _Object$keys = __webpack_require__(25);
5356
5357 var defineProperty = __webpack_require__(27);
5358
5359 function ownKeys(object, enumerableOnly) {
5360 var keys = _Object$keys(object);
5361
5362 if (_Object$getOwnPropertySymbols) {
5363 var symbols = _Object$getOwnPropertySymbols(object);
5364
5365 if (enumerableOnly) symbols = symbols.filter(function (sym) {
5366 return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
5367 });
5368 keys.push.apply(keys, symbols);
5369 }
5370
5371 return keys;
5372 }
5373
5374 function _objectSpread2(target) {
5375 for (var i = 1; i < arguments.length; i++) {
5376 var source = arguments[i] != null ? arguments[i] : {};
5377
5378 if (i % 2) {
5379 ownKeys(Object(source), true).forEach(function (key) {
5380 defineProperty(target, key, source[key]);
5381 });
5382 } else if (_Object$getOwnPropertyDescriptors) {
5383 _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
5384 } else {
5385 ownKeys(Object(source)).forEach(function (key) {
5386 _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
5387 });
5388 }
5389 }
5390
5391 return target;
5392 }
5393
5394 module.exports = _objectSpread2;
5395
5396 /***/ }),
5397 /* 183 */
5398 /***/ (function(module, exports, __webpack_require__) {
5399
5400 "use strict";
5401 // 21.1.3.7 String.prototype.includes(searchString, position = 0)
5402
5403 var $export = __webpack_require__(38);
5404 var context = __webpack_require__(205);
5405 var INCLUDES = 'includes';
5406
5407 $export($export.P + $export.F * __webpack_require__(206)(INCLUDES), 'String', {
5408 includes: function includes(searchString /* , position = 0 */) {
5409 return !!~context(this, searchString, INCLUDES)
5410 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
5411 }
5412 });
5413
5414
5415 /***/ }),
5416 /* 184 */
5417 /***/ (function(module, exports, __webpack_require__) {
5418
5419 __webpack_require__(185);
5420 var $Object = __webpack_require__(6).Object;
5421 module.exports = function getOwnPropertyDescriptor(it, key) {
5422 return $Object.getOwnPropertyDescriptor(it, key);
5423 };
5424
5425
5426 /***/ }),
5427 /* 185 */
5428 /***/ (function(module, exports, __webpack_require__) {
5429
5430 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
5431 var toIObject = __webpack_require__(19);
5432 var $getOwnPropertyDescriptor = __webpack_require__(48).f;
5433
5434 __webpack_require__(78)('getOwnPropertyDescriptor', function () {
5435 return function getOwnPropertyDescriptor(it, key) {
5436 return $getOwnPropertyDescriptor(toIObject(it), key);
5437 };
5438 });
5439
5440
5441 /***/ }),
5442 /* 186 */
5443 /***/ (function(module, exports, __webpack_require__) {
5444
5445 module.exports = __webpack_require__(187);
5446
5447 /***/ }),
5448 /* 187 */
5449 /***/ (function(module, exports, __webpack_require__) {
5450
5451 __webpack_require__(188);
5452 module.exports = __webpack_require__(6).Reflect.get;
5453
5454
5455 /***/ }),
5456 /* 188 */
5457 /***/ (function(module, exports, __webpack_require__) {
5458
5459 // 26.1.6 Reflect.get(target, propertyKey [, receiver])
5460 var gOPD = __webpack_require__(48);
5461 var getPrototypeOf = __webpack_require__(63);
5462 var has = __webpack_require__(17);
5463 var $export = __webpack_require__(7);
5464 var isObject = __webpack_require__(9);
5465 var anObject = __webpack_require__(11);
5466
5467 function get(target, propertyKey /* , receiver */) {
5468 var receiver = arguments.length < 3 ? target : arguments[2];
5469 var desc, proto;
5470 if (anObject(target) === receiver) return target[propertyKey];
5471 if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
5472 ? desc.value
5473 : desc.get !== undefined
5474 ? desc.get.call(receiver)
5475 : undefined;
5476 if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
5477 }
5478
5479 $export($export.S, 'Reflect', { get: get });
5480
5481
5482 /***/ }),
5483 /* 189 */
5484 /***/ (function(module, exports, __webpack_require__) {
5485
5486 var getPrototypeOf = __webpack_require__(16);
5487
5488 function _superPropBase(object, property) {
5489 while (!Object.prototype.hasOwnProperty.call(object, property)) {
5490 object = getPrototypeOf(object);
5491 if (object === null) break;
5492 }
5493
5494 return object;
5495 }
5496
5497 module.exports = _superPropBase;
5498
5499 /***/ }),
5500 /* 190 */
5501 /***/ (function(module, exports, __webpack_require__) {
5502
5503 // 0 -> Array#forEach
5504 // 1 -> Array#map
5505 // 2 -> Array#filter
5506 // 3 -> Array#some
5507 // 4 -> Array#every
5508 // 5 -> Array#find
5509 // 6 -> Array#findIndex
5510 var ctx = __webpack_require__(81);
5511 var IObject = __webpack_require__(125);
5512 var toObject = __webpack_require__(102);
5513 var toLength = __webpack_require__(46);
5514 var asc = __webpack_require__(216);
5515 module.exports = function (TYPE, $create) {
5516 var IS_MAP = TYPE == 1;
5517 var IS_FILTER = TYPE == 2;
5518 var IS_SOME = TYPE == 3;
5519 var IS_EVERY = TYPE == 4;
5520 var IS_FIND_INDEX = TYPE == 6;
5521 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
5522 var create = $create || asc;
5523 return function ($this, callbackfn, that) {
5524 var O = toObject($this);
5525 var self = IObject(O);
5526 var f = ctx(callbackfn, that, 3);
5527 var length = toLength(self.length);
5528 var index = 0;
5529 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
5530 var val, res;
5531 for (;length > index; index++) if (NO_HOLES || index in self) {
5532 val = self[index];
5533 res = f(val, index, O);
5534 if (TYPE) {
5535 if (IS_MAP) result[index] = res; // map
5536 else if (res) switch (TYPE) {
5537 case 3: return true; // some
5538 case 5: return val; // find
5539 case 6: return index; // findIndex
5540 case 2: result.push(val); // filter
5541 } else if (IS_EVERY) return false; // every
5542 }
5543 }
5544 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
5545 };
5546 };
5547
5548
5549 /***/ }),
5550 /* 191 */
5551 /***/ (function(module, exports, __webpack_require__) {
5552
5553 "use strict";
5554
5555 __webpack_require__(283);
5556 var anObject = __webpack_require__(20);
5557 var $flags = __webpack_require__(109);
5558 var DESCRIPTORS = __webpack_require__(28);
5559 var TO_STRING = 'toString';
5560 var $toString = /./[TO_STRING];
5561
5562 var define = function (fn) {
5563 __webpack_require__(39)(RegExp.prototype, TO_STRING, fn, true);
5564 };
5565
5566 // 21.2.5.14 RegExp.prototype.toString()
5567 if (__webpack_require__(36)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
5568 define(function toString() {
5569 var R = anObject(this);
5570 return '/'.concat(R.source, '/',
5571 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
5572 });
5573 // FF44- RegExp#toString has a wrong name
5574 } else if ($toString.name != TO_STRING) {
5575 define(function toString() {
5576 return $toString.call(this);
5577 });
5578 }
5579
5580
5581 /***/ }),
5582 /* 192 */
5583 /***/ (function(module, exports, __webpack_require__) {
5584
5585 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
5586 var $keys = __webpack_require__(220);
5587 var enumBugKeys = __webpack_require__(151);
5588
5589 module.exports = Object.keys || function keys(O) {
5590 return $keys(O, enumBugKeys);
5591 };
5592
5593
5594 /***/ }),
5595 /* 193 */
5596 /***/ (function(module, exports, __webpack_require__) {
5597
5598 "use strict";
5599
5600 var $defineProperty = __webpack_require__(15);
5601 var createDesc = __webpack_require__(42);
5602
5603 module.exports = function (object, index, value) {
5604 if (index in object) $defineProperty.f(object, index, createDesc(0, value));
5605 else object[index] = value;
5606 };
5607
5608
5609 /***/ }),
5610 /* 194 */
5611 /***/ (function(module, exports, __webpack_require__) {
5612
5613 var _Array$from = __webpack_require__(201);
5614
5615 var arrayLikeToArray = __webpack_require__(200);
5616
5617 function _unsupportedIterableToArray(o, minLen) {
5618 if (!o) return;
5619 if (typeof o === "string") return arrayLikeToArray(o, minLen);
5620 var n = Object.prototype.toString.call(o).slice(8, -1);
5621 if (n === "Object" && o.constructor) n = o.constructor.name;
5622 if (n === "Map" || n === "Set") return _Array$from(o);
5623 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5624 }
5625
5626 module.exports = _unsupportedIterableToArray;
5627
5628 /***/ }),
5629 /* 195 */,
5630 /* 196 */,
5631 /* 197 */
5632 /***/ (function(module, exports, __webpack_require__) {
5633
5634 "use strict";
5635
5636 var regexpExec = __webpack_require__(94);
5637 __webpack_require__(38)({
5638 target: 'RegExp',
5639 proto: true,
5640 forced: regexpExec !== /./.exec
5641 }, {
5642 exec: regexpExec
5643 });
5644
5645
5646 /***/ }),
5647 /* 198 */
5648 /***/ (function(module, exports, __webpack_require__) {
5649
5650 "use strict";
5651
5652 var LIBRARY = __webpack_require__(115);
5653 var $export = __webpack_require__(38);
5654 var redefine = __webpack_require__(39);
5655 var hide = __webpack_require__(30);
5656 var Iterators = __webpack_require__(123);
5657 var $iterCreate = __webpack_require__(242);
5658 var setToStringTag = __webpack_require__(179);
5659 var getPrototypeOf = __webpack_require__(244);
5660 var ITERATOR = __webpack_require__(13)('iterator');
5661 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
5662 var FF_ITERATOR = '@@iterator';
5663 var KEYS = 'keys';
5664 var VALUES = 'values';
5665
5666 var returnThis = function () { return this; };
5667
5668 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
5669 $iterCreate(Constructor, NAME, next);
5670 var getMethod = function (kind) {
5671 if (!BUGGY && kind in proto) return proto[kind];
5672 switch (kind) {
5673 case KEYS: return function keys() { return new Constructor(this, kind); };
5674 case VALUES: return function values() { return new Constructor(this, kind); };
5675 } return function entries() { return new Constructor(this, kind); };
5676 };
5677 var TAG = NAME + ' Iterator';
5678 var DEF_VALUES = DEFAULT == VALUES;
5679 var VALUES_BUG = false;
5680 var proto = Base.prototype;
5681 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
5682 var $default = $native || getMethod(DEFAULT);
5683 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
5684 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
5685 var methods, key, IteratorPrototype;
5686 // Fix native
5687 if ($anyNative) {
5688 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
5689 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
5690 // Set @@toStringTag to native iterators
5691 setToStringTag(IteratorPrototype, TAG, true);
5692 // fix for some old engines
5693 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
5694 }
5695 }
5696 // fix Array#{values, @@iterator}.name in V8 / FF
5697 if (DEF_VALUES && $native && $native.name !== VALUES) {
5698 VALUES_BUG = true;
5699 $default = function values() { return $native.call(this); };
5700 }
5701 // Define iterator
5702 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
5703 hide(proto, ITERATOR, $default);
5704 }
5705 // Plug for library
5706 Iterators[NAME] = $default;
5707 Iterators[TAG] = returnThis;
5708 if (DEFAULT) {
5709 methods = {
5710 values: DEF_VALUES ? $default : getMethod(VALUES),
5711 keys: IS_SET ? $default : getMethod(KEYS),
5712 entries: $entries
5713 };
5714 if (FORCED) for (key in methods) {
5715 if (!(key in proto)) redefine(proto, key, methods[key]);
5716 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
5717 }
5718 return methods;
5719 };
5720
5721
5722 /***/ }),
5723 /* 199 */
5724 /***/ (function(module, exports, __webpack_require__) {
5725
5726 var toInteger = __webpack_require__(60);
5727 var max = Math.max;
5728 var min = Math.min;
5729 module.exports = function (index, length) {
5730 index = toInteger(index);
5731 return index < 0 ? max(index + length, 0) : min(index, length);
5732 };
5733
5734
5735 /***/ }),
5736 /* 200 */
5737 /***/ (function(module, exports) {
5738
5739 function _arrayLikeToArray(arr, len) {
5740 if (len == null || len > arr.length) len = arr.length;
5741
5742 for (var i = 0, arr2 = new Array(len); i < len; i++) {
5743 arr2[i] = arr[i];
5744 }
5745
5746 return arr2;
5747 }
5748
5749 module.exports = _arrayLikeToArray;
5750
5751 /***/ }),
5752 /* 201 */
5753 /***/ (function(module, exports, __webpack_require__) {
5754
5755 module.exports = __webpack_require__(233);
5756
5757 /***/ }),
5758 /* 202 */
5759 /***/ (function(module, exports, __webpack_require__) {
5760
5761 __webpack_require__(203);
5762 module.exports = __webpack_require__(6).Object.keys;
5763
5764
5765 /***/ }),
5766 /* 203 */
5767 /***/ (function(module, exports, __webpack_require__) {
5768
5769 // 19.1.2.14 Object.keys(O)
5770 var toObject = __webpack_require__(32);
5771 var $keys = __webpack_require__(37);
5772
5773 __webpack_require__(78)('keys', function () {
5774 return function keys(it) {
5775 return $keys(toObject(it));
5776 };
5777 });
5778
5779
5780 /***/ }),
5781 /* 204 */
5782 /***/ (function(module, exports, __webpack_require__) {
5783
5784 "use strict";
5785
5786
5787 var _interopRequireDefault = __webpack_require__(0);
5788
5789 var _Object$defineProperty = __webpack_require__(1);
5790
5791 _Object$defineProperty(exports, "__esModule", {
5792 value: true
5793 });
5794
5795 exports.default = void 0;
5796
5797 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
5798
5799 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
5800
5801 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
5802
5803 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
5804
5805 var _commandBase = _interopRequireDefault(__webpack_require__(23));
5806
5807 var CommandInternalBase = /*#__PURE__*/function (_CommandBase) {
5808 (0, _inherits2.default)(CommandInternalBase, _CommandBase);
5809
5810 var _super = (0, _createSuper2.default)(CommandInternalBase);
5811
5812 (0, _createClass2.default)(CommandInternalBase, null, [{
5813 key: "getInstanceType",
5814 value: function getInstanceType() {
5815 return 'CommandInternalBase';
5816 }
5817 }]);
5818
5819 function CommandInternalBase(args) {
5820 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commandsInternal;
5821 (0, _classCallCheck2.default)(this, CommandInternalBase);
5822 return _super.call(this, args, commandsAPI);
5823 }
5824
5825 return CommandInternalBase;
5826 }(_commandBase.default);
5827
5828 exports.default = CommandInternalBase;
5829
5830 /***/ }),
5831 /* 205 */
5832 /***/ (function(module, exports, __webpack_require__) {
5833
5834 // helper for String#{startsWith, endsWith, includes}
5835 var isRegExp = __webpack_require__(126);
5836 var defined = __webpack_require__(43);
5837
5838 module.exports = function (that, searchString, NAME) {
5839 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
5840 return String(defined(that));
5841 };
5842
5843
5844 /***/ }),
5845 /* 206 */
5846 /***/ (function(module, exports, __webpack_require__) {
5847
5848 var MATCH = __webpack_require__(13)('match');
5849 module.exports = function (KEY) {
5850 var re = /./;
5851 try {
5852 '/./'[KEY](re);
5853 } catch (e) {
5854 try {
5855 re[MATCH] = false;
5856 return !'/./'[KEY](re);
5857 } catch (f) { /* empty */ }
5858 } return true;
5859 };
5860
5861
5862 /***/ }),
5863 /* 207 */
5864 /***/ (function(module, exports, __webpack_require__) {
5865
5866 module.exports = __webpack_require__(329);
5867
5868 /***/ }),
5869 /* 208 */
5870 /***/ (function(module, exports, __webpack_require__) {
5871
5872 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
5873 var anObject = __webpack_require__(11);
5874 var aFunction = __webpack_require__(35);
5875 var SPECIES = __webpack_require__(10)('species');
5876 module.exports = function (O, D) {
5877 var C = anObject(O).constructor;
5878 var S;
5879 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
5880 };
5881
5882
5883 /***/ }),
5884 /* 209 */
5885 /***/ (function(module, exports, __webpack_require__) {
5886
5887 var ctx = __webpack_require__(29);
5888 var invoke = __webpack_require__(133);
5889 var html = __webpack_require__(132);
5890 var cel = __webpack_require__(88);
5891 var global = __webpack_require__(8);
5892 var process = global.process;
5893 var setTask = global.setImmediate;
5894 var clearTask = global.clearImmediate;
5895 var MessageChannel = global.MessageChannel;
5896 var Dispatch = global.Dispatch;
5897 var counter = 0;
5898 var queue = {};
5899 var ONREADYSTATECHANGE = 'onreadystatechange';
5900 var defer, channel, port;
5901 var run = function () {
5902 var id = +this;
5903 // eslint-disable-next-line no-prototype-builtins
5904 if (queue.hasOwnProperty(id)) {
5905 var fn = queue[id];
5906 delete queue[id];
5907 fn();
5908 }
5909 };
5910 var listener = function (event) {
5911 run.call(event.data);
5912 };
5913 // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5914 if (!setTask || !clearTask) {
5915 setTask = function setImmediate(fn) {
5916 var args = [];
5917 var i = 1;
5918 while (arguments.length > i) args.push(arguments[i++]);
5919 queue[++counter] = function () {
5920 // eslint-disable-next-line no-new-func
5921 invoke(typeof fn == 'function' ? fn : Function(fn), args);
5922 };
5923 defer(counter);
5924 return counter;
5925 };
5926 clearTask = function clearImmediate(id) {
5927 delete queue[id];
5928 };
5929 // Node.js 0.8-
5930 if (__webpack_require__(56)(process) == 'process') {
5931 defer = function (id) {
5932 process.nextTick(ctx(run, id, 1));
5933 };
5934 // Sphere (JS game engine) Dispatch API
5935 } else if (Dispatch && Dispatch.now) {
5936 defer = function (id) {
5937 Dispatch.now(ctx(run, id, 1));
5938 };
5939 // Browsers with MessageChannel, includes WebWorkers
5940 } else if (MessageChannel) {
5941 channel = new MessageChannel();
5942 port = channel.port2;
5943 channel.port1.onmessage = listener;
5944 defer = ctx(port.postMessage, port, 1);
5945 // Browsers with postMessage, skip WebWorkers
5946 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5947 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
5948 defer = function (id) {
5949 global.postMessage(id + '', '*');
5950 };
5951 global.addEventListener('message', listener, false);
5952 // IE8-
5953 } else if (ONREADYSTATECHANGE in cel('script')) {
5954 defer = function (id) {
5955 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
5956 html.removeChild(this);
5957 run.call(id);
5958 };
5959 };
5960 // Rest old browsers
5961 } else {
5962 defer = function (id) {
5963 setTimeout(ctx(run, id, 1), 0);
5964 };
5965 }
5966 }
5967 module.exports = {
5968 set: setTask,
5969 clear: clearTask
5970 };
5971
5972
5973 /***/ }),
5974 /* 210 */
5975 /***/ (function(module, exports) {
5976
5977 module.exports = function (exec) {
5978 try {
5979 return { e: false, v: exec() };
5980 } catch (e) {
5981 return { e: true, v: e };
5982 }
5983 };
5984
5985
5986 /***/ }),
5987 /* 211 */
5988 /***/ (function(module, exports, __webpack_require__) {
5989
5990 var anObject = __webpack_require__(11);
5991 var isObject = __webpack_require__(9);
5992 var newPromiseCapability = __webpack_require__(149);
5993
5994 module.exports = function (C, x) {
5995 anObject(C);
5996 if (isObject(x) && x.constructor === C) return x;
5997 var promiseCapability = newPromiseCapability.f(C);
5998 var resolve = promiseCapability.resolve;
5999 resolve(x);
6000 return promiseCapability.promise;
6001 };
6002
6003
6004 /***/ }),
6005 /* 212 */
6006 /***/ (function(module, exports, __webpack_require__) {
6007
6008 module.exports = __webpack_require__(235);
6009
6010 /***/ }),
6011 /* 213 */
6012 /***/ (function(module, exports, __webpack_require__) {
6013
6014 "use strict";
6015
6016 // 19.1.2.1 Object.assign(target, source, ...)
6017 var DESCRIPTORS = __webpack_require__(14);
6018 var getKeys = __webpack_require__(37);
6019 var gOPS = __webpack_require__(67);
6020 var pIE = __webpack_require__(49);
6021 var toObject = __webpack_require__(32);
6022 var IObject = __webpack_require__(103);
6023 var $assign = Object.assign;
6024
6025 // should work with symbols and should have deterministic property order (V8 bug)
6026 module.exports = !$assign || __webpack_require__(21)(function () {
6027 var A = {};
6028 var B = {};
6029 // eslint-disable-next-line no-undef
6030 var S = Symbol();
6031 var K = 'abcdefghijklmnopqrst';
6032 A[S] = 7;
6033 K.split('').forEach(function (k) { B[k] = k; });
6034 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
6035 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
6036 var T = toObject(target);
6037 var aLen = arguments.length;
6038 var index = 1;
6039 var getSymbols = gOPS.f;
6040 var isEnum = pIE.f;
6041 while (aLen > index) {
6042 var S = IObject(arguments[index++]);
6043 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
6044 var length = keys.length;
6045 var j = 0;
6046 var key;
6047 while (length > j) {
6048 key = keys[j++];
6049 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
6050 }
6051 } return T;
6052 } : $assign;
6053
6054
6055 /***/ }),
6056 /* 214 */,
6057 /* 215 */,
6058 /* 216 */
6059 /***/ (function(module, exports, __webpack_require__) {
6060
6061 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
6062 var speciesConstructor = __webpack_require__(217);
6063
6064 module.exports = function (original, length) {
6065 return new (speciesConstructor(original))(length);
6066 };
6067
6068
6069 /***/ }),
6070 /* 217 */
6071 /***/ (function(module, exports, __webpack_require__) {
6072
6073 var isObject = __webpack_require__(31);
6074 var isArray = __webpack_require__(218);
6075 var SPECIES = __webpack_require__(13)('species');
6076
6077 module.exports = function (original) {
6078 var C;
6079 if (isArray(original)) {
6080 C = original.constructor;
6081 // cross-realm fallback
6082 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
6083 if (isObject(C)) {
6084 C = C[SPECIES];
6085 if (C === null) C = undefined;
6086 }
6087 } return C === undefined ? Array : C;
6088 };
6089
6090
6091 /***/ }),
6092 /* 218 */
6093 /***/ (function(module, exports, __webpack_require__) {
6094
6095 // 7.2.2 IsArray(argument)
6096 var cof = __webpack_require__(52);
6097 module.exports = Array.isArray || function isArray(arg) {
6098 return cof(arg) == 'Array';
6099 };
6100
6101
6102 /***/ }),
6103 /* 219 */
6104 /***/ (function(module, exports, __webpack_require__) {
6105
6106 "use strict";
6107
6108 var global = __webpack_require__(8);
6109 var core = __webpack_require__(6);
6110 var dP = __webpack_require__(15);
6111 var DESCRIPTORS = __webpack_require__(14);
6112 var SPECIES = __webpack_require__(10)('species');
6113
6114 module.exports = function (KEY) {
6115 var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
6116 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
6117 configurable: true,
6118 get: function () { return this; }
6119 });
6120 };
6121
6122
6123 /***/ }),
6124 /* 220 */
6125 /***/ (function(module, exports, __webpack_require__) {
6126
6127 var has = __webpack_require__(64);
6128 var toIObject = __webpack_require__(104);
6129 var arrayIndexOf = __webpack_require__(145)(false);
6130 var IE_PROTO = __webpack_require__(137)('IE_PROTO');
6131
6132 module.exports = function (object, names) {
6133 var O = toIObject(object);
6134 var i = 0;
6135 var result = [];
6136 var key;
6137 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
6138 // Don't enum bug & hidden keys
6139 while (names.length > i) if (has(O, key = names[i++])) {
6140 ~arrayIndexOf(result, key) || result.push(key);
6141 }
6142 return result;
6143 };
6144
6145
6146 /***/ }),
6147 /* 221 */
6148 /***/ (function(module, exports, __webpack_require__) {
6149
6150 __webpack_require__(222);
6151 module.exports = __webpack_require__(6).Array.isArray;
6152
6153
6154 /***/ }),
6155 /* 222 */
6156 /***/ (function(module, exports, __webpack_require__) {
6157
6158 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
6159 var $export = __webpack_require__(7);
6160
6161 $export($export.S, 'Array', { isArray: __webpack_require__(97) });
6162
6163
6164 /***/ }),
6165 /* 223 */
6166 /***/ (function(module, exports, __webpack_require__) {
6167
6168 "use strict";
6169
6170 var global = __webpack_require__(8);
6171 var $export = __webpack_require__(7);
6172 var meta = __webpack_require__(66);
6173 var fails = __webpack_require__(21);
6174 var hide = __webpack_require__(22);
6175 var redefineAll = __webpack_require__(121);
6176 var forOf = __webpack_require__(79);
6177 var anInstance = __webpack_require__(120);
6178 var isObject = __webpack_require__(9);
6179 var setToStringTag = __webpack_require__(53);
6180 var dP = __webpack_require__(15).f;
6181 var each = __webpack_require__(142)(0);
6182 var DESCRIPTORS = __webpack_require__(14);
6183
6184 module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
6185 var Base = global[NAME];
6186 var C = Base;
6187 var ADDER = IS_MAP ? 'set' : 'add';
6188 var proto = C && C.prototype;
6189 var O = {};
6190 if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
6191 new C().entries().next();
6192 }))) {
6193 // create collection constructor
6194 C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
6195 redefineAll(C.prototype, methods);
6196 meta.NEED = true;
6197 } else {
6198 C = wrapper(function (target, iterable) {
6199 anInstance(target, C, NAME, '_c');
6200 target._c = new Base();
6201 if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
6202 });
6203 each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
6204 var IS_ADDER = KEY == 'add' || KEY == 'set';
6205 if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
6206 anInstance(this, C, KEY);
6207 if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
6208 var result = this._c[KEY](a === 0 ? 0 : a, b);
6209 return IS_ADDER ? this : result;
6210 });
6211 });
6212 IS_WEAK || dP(C.prototype, 'size', {
6213 get: function () {
6214 return this._c.size;
6215 }
6216 });
6217 }
6218
6219 setToStringTag(C, NAME);
6220
6221 O[NAME] = C;
6222 $export($export.G + $export.W + $export.F, O);
6223
6224 if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
6225
6226 return C;
6227 };
6228
6229
6230 /***/ }),
6231 /* 224 */
6232 /***/ (function(module, exports, __webpack_require__) {
6233
6234 "use strict";
6235
6236 // https://tc39.github.io/proposal-setmap-offrom/
6237 var $export = __webpack_require__(7);
6238
6239 module.exports = function (COLLECTION) {
6240 $export($export.S, COLLECTION, { of: function of() {
6241 var length = arguments.length;
6242 var A = new Array(length);
6243 while (length--) A[length] = arguments[length];
6244 return new this(A);
6245 } });
6246 };
6247
6248
6249 /***/ }),
6250 /* 225 */
6251 /***/ (function(module, exports, __webpack_require__) {
6252
6253 "use strict";
6254
6255 // https://tc39.github.io/proposal-setmap-offrom/
6256 var $export = __webpack_require__(7);
6257 var aFunction = __webpack_require__(35);
6258 var ctx = __webpack_require__(29);
6259 var forOf = __webpack_require__(79);
6260
6261 module.exports = function (COLLECTION) {
6262 $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
6263 var mapFn = arguments[1];
6264 var mapping, A, n, cb;
6265 aFunction(this);
6266 mapping = mapFn !== undefined;
6267 if (mapping) aFunction(mapFn);
6268 if (source == undefined) return new this();
6269 A = [];
6270 if (mapping) {
6271 n = 0;
6272 cb = ctx(mapFn, arguments[2], 2);
6273 forOf(source, false, function (nextItem) {
6274 A.push(cb(nextItem, n++));
6275 });
6276 } else {
6277 forOf(source, false, A.push, A);
6278 }
6279 return new this(A);
6280 } });
6281 };
6282
6283
6284 /***/ }),
6285 /* 226 */,
6286 /* 227 */
6287 /***/ (function(module, exports, __webpack_require__) {
6288
6289 "use strict";
6290
6291
6292 var _interopRequireDefault = __webpack_require__(0);
6293
6294 var _Object$defineProperty = __webpack_require__(1);
6295
6296 _Object$defineProperty(exports, "__esModule", {
6297 value: true
6298 });
6299
6300 exports.default = void 0;
6301
6302 var _typeof2 = _interopRequireDefault(__webpack_require__(50));
6303
6304 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6305
6306 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6307
6308 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6309
6310 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6311
6312 var _instanceType = _interopRequireDefault(__webpack_require__(252));
6313
6314 var ArgsObject = /*#__PURE__*/function (_InstanceType) {
6315 (0, _inherits2.default)(ArgsObject, _InstanceType);
6316
6317 var _super = (0, _createSuper2.default)(ArgsObject);
6318
6319 (0, _createClass2.default)(ArgsObject, null, [{
6320 key: "getInstanceType",
6321 value: function getInstanceType() {
6322 return 'ArgsObject';
6323 }
6324 /**
6325 * Function constructor().
6326 *
6327 * Create ArgsObject.
6328 *
6329 * @param {{}} args
6330 */
6331
6332 }]);
6333
6334 function ArgsObject(args) {
6335 var _this;
6336
6337 (0, _classCallCheck2.default)(this, ArgsObject);
6338 _this = _super.call(this);
6339 _this.args = args;
6340 return _this;
6341 }
6342 /**
6343 * Function requireArgument().
6344 *
6345 * Validate property in args.
6346 *
6347 * @param {string} property
6348 * @param {{}} args
6349 *
6350 * @throws {Error}
6351 *
6352 */
6353
6354
6355 (0, _createClass2.default)(ArgsObject, [{
6356 key: "requireArgument",
6357 value: function requireArgument(property) {
6358 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
6359
6360 if (!args.hasOwnProperty(property)) {
6361 throw Error("".concat(property, " is required."));
6362 }
6363 }
6364 /**
6365 * Function requireArgumentType().
6366 *
6367 * Validate property in args using `type === typeof(args.whatever)`.
6368 *
6369 * @param {string} property
6370 * @param {string} type
6371 * @param {{}} args
6372 *
6373 * @throws {Error}
6374 *
6375 */
6376
6377 }, {
6378 key: "requireArgumentType",
6379 value: function requireArgumentType(property, type) {
6380 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6381 this.requireArgument(property, args);
6382
6383 if ((0, _typeof2.default)(args[property]) !== type) {
6384 throw Error("".concat(property, " invalid type: ").concat(type, "."));
6385 }
6386 }
6387 /**
6388 * Function requireArgumentInstance().
6389 *
6390 * Validate property in args using `args.whatever instanceof instance`.
6391 *
6392 * @param {string} property
6393 * @param {instanceof} instance
6394 * @param {{}} args
6395 *
6396 * @throws {Error}
6397 *
6398 */
6399
6400 }, {
6401 key: "requireArgumentInstance",
6402 value: function requireArgumentInstance(property, instance) {
6403 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6404 this.requireArgument(property, args);
6405
6406 if (!(args[property] instanceof instance)) {
6407 throw Error("".concat(property, " invalid instance."));
6408 }
6409 }
6410 /**
6411 * Function requireArgumentConstructor().
6412 *
6413 * Validate property in args using `type === args.whatever.constructor`.
6414 *
6415 * @param {string} property
6416 * @param {*} type
6417 * @param {{}} args
6418 *
6419 * @throws {Error}
6420 *
6421 */
6422
6423 }, {
6424 key: "requireArgumentConstructor",
6425 value: function requireArgumentConstructor(property, type) {
6426 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6427 this.requireArgument(property, args);
6428
6429 if (args[property].constructor !== type) {
6430 throw Error("".concat(property, " invalid constructor type."));
6431 }
6432 }
6433 }]);
6434 return ArgsObject;
6435 }(_instanceType.default);
6436
6437 exports.default = ArgsObject;
6438
6439 /***/ }),
6440 /* 228 */
6441 /***/ (function(module, exports, __webpack_require__) {
6442
6443 "use strict";
6444
6445
6446 var _interopRequireDefault = __webpack_require__(0);
6447
6448 var _Object$defineProperty = __webpack_require__(1);
6449
6450 _Object$defineProperty(exports, "__esModule", {
6451 value: true
6452 });
6453
6454 exports.default = exports.After = void 0;
6455
6456 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6457
6458 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6459
6460 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6461
6462 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6463
6464 var _base = _interopRequireDefault(__webpack_require__(289));
6465
6466 var After = /*#__PURE__*/function (_Base) {
6467 (0, _inherits2.default)(After, _Base);
6468
6469 var _super = (0, _createSuper2.default)(After);
6470
6471 function After() {
6472 (0, _classCallCheck2.default)(this, After);
6473 return _super.apply(this, arguments);
6474 }
6475
6476 (0, _createClass2.default)(After, [{
6477 key: "register",
6478 value: function register() {
6479 $e.hooks.registerDataAfter(this);
6480 }
6481 }]);
6482 return After;
6483 }(_base.default);
6484
6485 exports.After = After;
6486 var _default = After;
6487 exports.default = _default;
6488
6489 /***/ }),
6490 /* 229 */
6491 /***/ (function(module, exports, __webpack_require__) {
6492
6493 __webpack_require__(230);
6494 module.exports = __webpack_require__(6).Object.values;
6495
6496
6497 /***/ }),
6498 /* 230 */
6499 /***/ (function(module, exports, __webpack_require__) {
6500
6501 // https://github.com/tc39/proposal-object-values-entries
6502 var $export = __webpack_require__(7);
6503 var $values = __webpack_require__(181)(false);
6504
6505 $export($export.S, 'Object', {
6506 values: function values(it) {
6507 return $values(it);
6508 }
6509 });
6510
6511
6512 /***/ }),
6513 /* 231 */
6514 /***/ (function(module, exports, __webpack_require__) {
6515
6516 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
6517 var anObject = __webpack_require__(20);
6518 var dPs = __webpack_require__(243);
6519 var enumBugKeys = __webpack_require__(151);
6520 var IE_PROTO = __webpack_require__(137)('IE_PROTO');
6521 var Empty = function () { /* empty */ };
6522 var PROTOTYPE = 'prototype';
6523
6524 // Create object with fake `null` prototype: use iframe Object with cleared prototype
6525 var createDict = function () {
6526 // Thrash, waste and sodomy: IE GC bug
6527 var iframe = __webpack_require__(114)('iframe');
6528 var i = enumBugKeys.length;
6529 var lt = '<';
6530 var gt = '>';
6531 var iframeDocument;
6532 iframe.style.display = 'none';
6533 __webpack_require__(232).appendChild(iframe);
6534 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
6535 // createDict = iframe.contentWindow.Object;
6536 // html.removeChild(iframe);
6537 iframeDocument = iframe.contentWindow.document;
6538 iframeDocument.open();
6539 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
6540 iframeDocument.close();
6541 createDict = iframeDocument.F;
6542 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
6543 return createDict();
6544 };
6545
6546 module.exports = Object.create || function create(O, Properties) {
6547 var result;
6548 if (O !== null) {
6549 Empty[PROTOTYPE] = anObject(O);
6550 result = new Empty();
6551 Empty[PROTOTYPE] = null;
6552 // add "__proto__" for Object.getPrototypeOf polyfill
6553 result[IE_PROTO] = O;
6554 } else result = createDict();
6555 return Properties === undefined ? result : dPs(result, Properties);
6556 };
6557
6558
6559 /***/ }),
6560 /* 232 */
6561 /***/ (function(module, exports, __webpack_require__) {
6562
6563 var document = __webpack_require__(18).document;
6564 module.exports = document && document.documentElement;
6565
6566
6567 /***/ }),
6568 /* 233 */
6569 /***/ (function(module, exports, __webpack_require__) {
6570
6571 __webpack_require__(57);
6572 __webpack_require__(234);
6573 module.exports = __webpack_require__(6).Array.from;
6574
6575
6576 /***/ }),
6577 /* 234 */
6578 /***/ (function(module, exports, __webpack_require__) {
6579
6580 "use strict";
6581
6582 var ctx = __webpack_require__(29);
6583 var $export = __webpack_require__(7);
6584 var toObject = __webpack_require__(32);
6585 var call = __webpack_require__(143);
6586 var isArrayIter = __webpack_require__(144);
6587 var toLength = __webpack_require__(72);
6588 var createProperty = __webpack_require__(193);
6589 var getIterFn = __webpack_require__(117);
6590
6591 $export($export.S + $export.F * !__webpack_require__(178)(function (iter) { Array.from(iter); }), 'Array', {
6592 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
6593 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
6594 var O = toObject(arrayLike);
6595 var C = typeof this == 'function' ? this : Array;
6596 var aLen = arguments.length;
6597 var mapfn = aLen > 1 ? arguments[1] : undefined;
6598 var mapping = mapfn !== undefined;
6599 var index = 0;
6600 var iterFn = getIterFn(O);
6601 var length, result, step, iterator;
6602 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
6603 // if object isn't iterable or it's array with default iterator - use simple case
6604 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
6605 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
6606 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
6607 }
6608 } else {
6609 length = toLength(O.length);
6610 for (result = new C(length); length > index; index++) {
6611 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
6612 }
6613 }
6614 result.length = index;
6615 return result;
6616 }
6617 });
6618
6619
6620 /***/ }),
6621 /* 235 */
6622 /***/ (function(module, exports, __webpack_require__) {
6623
6624 __webpack_require__(59);
6625 __webpack_require__(57);
6626 module.exports = __webpack_require__(236);
6627
6628
6629 /***/ }),
6630 /* 236 */
6631 /***/ (function(module, exports, __webpack_require__) {
6632
6633 var classof = __webpack_require__(99);
6634 var ITERATOR = __webpack_require__(10)('iterator');
6635 var Iterators = __webpack_require__(33);
6636 module.exports = __webpack_require__(6).isIterable = function (it) {
6637 var O = Object(it);
6638 return O[ITERATOR] !== undefined
6639 || '@@iterator' in O
6640 // eslint-disable-next-line no-prototype-builtins
6641 || Iterators.hasOwnProperty(classof(O));
6642 };
6643
6644
6645 /***/ }),
6646 /* 237 */,
6647 /* 238 */
6648 /***/ (function(module, exports, __webpack_require__) {
6649
6650 module.exports = __webpack_require__(249);
6651
6652 /***/ }),
6653 /* 239 */,
6654 /* 240 */,
6655 /* 241 */
6656 /***/ (function(module, exports) {
6657
6658 module.exports = function (done, value) {
6659 return { value: value, done: !!done };
6660 };
6661
6662
6663 /***/ }),
6664 /* 242 */
6665 /***/ (function(module, exports, __webpack_require__) {
6666
6667 "use strict";
6668
6669 var create = __webpack_require__(231);
6670 var descriptor = __webpack_require__(106);
6671 var setToStringTag = __webpack_require__(179);
6672 var IteratorPrototype = {};
6673
6674 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
6675 __webpack_require__(30)(IteratorPrototype, __webpack_require__(13)('iterator'), function () { return this; });
6676
6677 module.exports = function (Constructor, NAME, next) {
6678 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
6679 setToStringTag(Constructor, NAME + ' Iterator');
6680 };
6681
6682
6683 /***/ }),
6684 /* 243 */
6685 /***/ (function(module, exports, __webpack_require__) {
6686
6687 var dP = __webpack_require__(51);
6688 var anObject = __webpack_require__(20);
6689 var getKeys = __webpack_require__(192);
6690
6691 module.exports = __webpack_require__(28) ? Object.defineProperties : function defineProperties(O, Properties) {
6692 anObject(O);
6693 var keys = getKeys(Properties);
6694 var length = keys.length;
6695 var i = 0;
6696 var P;
6697 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
6698 return O;
6699 };
6700
6701
6702 /***/ }),
6703 /* 244 */
6704 /***/ (function(module, exports, __webpack_require__) {
6705
6706 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
6707 var has = __webpack_require__(64);
6708 var toObject = __webpack_require__(102);
6709 var IE_PROTO = __webpack_require__(137)('IE_PROTO');
6710 var ObjectProto = Object.prototype;
6711
6712 module.exports = Object.getPrototypeOf || function (O) {
6713 O = toObject(O);
6714 if (has(O, IE_PROTO)) return O[IE_PROTO];
6715 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
6716 return O.constructor.prototype;
6717 } return O instanceof Object ? ObjectProto : null;
6718 };
6719
6720
6721 /***/ }),
6722 /* 245 */
6723 /***/ (function(module, exports, __webpack_require__) {
6724
6725 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
6726 var speciesConstructor = __webpack_require__(246);
6727
6728 module.exports = function (original, length) {
6729 return new (speciesConstructor(original))(length);
6730 };
6731
6732
6733 /***/ }),
6734 /* 246 */
6735 /***/ (function(module, exports, __webpack_require__) {
6736
6737 var isObject = __webpack_require__(9);
6738 var isArray = __webpack_require__(97);
6739 var SPECIES = __webpack_require__(10)('species');
6740
6741 module.exports = function (original) {
6742 var C;
6743 if (isArray(original)) {
6744 C = original.constructor;
6745 // cross-realm fallback
6746 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
6747 if (isObject(C)) {
6748 C = C[SPECIES];
6749 if (C === null) C = undefined;
6750 }
6751 } return C === undefined ? Array : C;
6752 };
6753
6754
6755 /***/ }),
6756 /* 247 */
6757 /***/ (function(module, exports, __webpack_require__) {
6758
6759 var _Array$isArray = __webpack_require__(86);
6760
6761 function _arrayWithHoles(arr) {
6762 if (_Array$isArray(arr)) return arr;
6763 }
6764
6765 module.exports = _arrayWithHoles;
6766
6767 /***/ }),
6768 /* 248 */
6769 /***/ (function(module, exports, __webpack_require__) {
6770
6771 var _getIterator = __webpack_require__(238);
6772
6773 var _isIterable = __webpack_require__(212);
6774
6775 var _Symbol = __webpack_require__(107);
6776
6777 function _iterableToArrayLimit(arr, i) {
6778 if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return;
6779 var _arr = [];
6780 var _n = true;
6781 var _d = false;
6782 var _e = undefined;
6783
6784 try {
6785 for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
6786 _arr.push(_s.value);
6787
6788 if (i && _arr.length === i) break;
6789 }
6790 } catch (err) {
6791 _d = true;
6792 _e = err;
6793 } finally {
6794 try {
6795 if (!_n && _i["return"] != null) _i["return"]();
6796 } finally {
6797 if (_d) throw _e;
6798 }
6799 }
6800
6801 return _arr;
6802 }
6803
6804 module.exports = _iterableToArrayLimit;
6805
6806 /***/ }),
6807 /* 249 */
6808 /***/ (function(module, exports, __webpack_require__) {
6809
6810 __webpack_require__(59);
6811 __webpack_require__(57);
6812 module.exports = __webpack_require__(250);
6813
6814
6815 /***/ }),
6816 /* 250 */
6817 /***/ (function(module, exports, __webpack_require__) {
6818
6819 var anObject = __webpack_require__(11);
6820 var get = __webpack_require__(117);
6821 module.exports = __webpack_require__(6).getIterator = function (it) {
6822 var iterFn = get(it);
6823 if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
6824 return anObject(iterFn.call(it));
6825 };
6826
6827
6828 /***/ }),
6829 /* 251 */
6830 /***/ (function(module, exports) {
6831
6832 function _nonIterableRest() {
6833 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6834 }
6835
6836 module.exports = _nonIterableRest;
6837
6838 /***/ }),
6839 /* 252 */
6840 /***/ (function(module, exports, __webpack_require__) {
6841
6842 "use strict";
6843
6844
6845 var _interopRequireDefault = __webpack_require__(0);
6846
6847 var _Object$defineProperty = __webpack_require__(1);
6848
6849 _Object$defineProperty(exports, "__esModule", {
6850 value: true
6851 });
6852
6853 exports.default = void 0;
6854
6855 __webpack_require__(40);
6856
6857 var _isArray = _interopRequireDefault(__webpack_require__(86));
6858
6859 var _hasInstance = _interopRequireDefault(__webpack_require__(253));
6860
6861 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6862
6863 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6864
6865 var _get2 = _interopRequireDefault(__webpack_require__(26));
6866
6867 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
6868
6869 var InstanceType = /*#__PURE__*/function () {
6870 (0, _createClass2.default)(InstanceType, null, [{
6871 key: _hasInstance.default,
6872 value: function value(target) {
6873 /**
6874 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
6875 * its give's opportunity to mange capabilities of instanceOf operator.
6876 * saving current class each time will give option later to handle instanceOf manually.
6877 */
6878 var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), _hasInstance.default, this).call(this, target); // Act normal when validate a class, which does not have instance type.
6879
6880 if (target && !target.constructor.getInstanceType) {
6881 return result;
6882 }
6883
6884 if (target) {
6885 if (!target.instanceTypes) {
6886 target.instanceTypes = [];
6887 }
6888
6889 if (!result) {
6890 if (this.getInstanceType() === target.constructor.getInstanceType()) {
6891 result = true;
6892 }
6893 }
6894
6895 if (result) {
6896 var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
6897
6898 if (-1 === target.instanceTypes.indexOf(name)) {
6899 target.instanceTypes.push(name);
6900 }
6901 }
6902 }
6903
6904 if (!result && target) {
6905 // Check if the given 'target', is instance of known types.
6906 result = target.instanceTypes && (0, _isArray.default)(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
6907 }
6908
6909 return result;
6910 }
6911 }]);
6912
6913 function InstanceType() {
6914 var _this = this;
6915
6916 (0, _classCallCheck2.default)(this, InstanceType);
6917 // Since anonymous classes sometimes do not get validated by babel, do it manually.
6918 var target = this instanceof InstanceType ? this.constructor : void 0;
6919 var prototypes = [];
6920
6921 while (target.__proto__ && target.__proto__.name) {
6922 prototypes.push(target.__proto__);
6923 target = target.__proto__;
6924 }
6925
6926 prototypes.reverse().forEach(function (proto) {
6927 return _this instanceof proto;
6928 });
6929 }
6930
6931 (0, _createClass2.default)(InstanceType, null, [{
6932 key: "getInstanceType",
6933 value: function getInstanceType() {
6934 elementorModules.ForceMethodImplementation();
6935 }
6936 }]);
6937 return InstanceType;
6938 }();
6939
6940 exports.default = InstanceType;
6941
6942 /***/ }),
6943 /* 253 */
6944 /***/ (function(module, exports, __webpack_require__) {
6945
6946 module.exports = __webpack_require__(254);
6947
6948 /***/ }),
6949 /* 254 */
6950 /***/ (function(module, exports, __webpack_require__) {
6951
6952 __webpack_require__(255);
6953 module.exports = __webpack_require__(62).f('hasInstance');
6954
6955
6956 /***/ }),
6957 /* 255 */
6958 /***/ (function(module, exports, __webpack_require__) {
6959
6960 "use strict";
6961
6962 var isObject = __webpack_require__(9);
6963 var getPrototypeOf = __webpack_require__(63);
6964 var HAS_INSTANCE = __webpack_require__(10)('hasInstance');
6965 var FunctionProto = Function.prototype;
6966 // 19.2.3.6 Function.prototype[@@hasInstance](V)
6967 if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(15).f(FunctionProto, HAS_INSTANCE, { value: function (O) {
6968 if (typeof this != 'function' || !isObject(O)) return false;
6969 if (!isObject(this.prototype)) return O instanceof this;
6970 // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
6971 while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
6972 return false;
6973 } });
6974
6975
6976 /***/ }),
6977 /* 256 */,
6978 /* 257 */
6979 /***/ (function(module, exports, __webpack_require__) {
6980
6981 __webpack_require__(92);
6982 __webpack_require__(57);
6983 __webpack_require__(59);
6984 __webpack_require__(258);
6985 __webpack_require__(261);
6986 __webpack_require__(262);
6987 module.exports = __webpack_require__(6).Promise;
6988
6989
6990 /***/ }),
6991 /* 258 */
6992 /***/ (function(module, exports, __webpack_require__) {
6993
6994 "use strict";
6995
6996 var LIBRARY = __webpack_require__(44);
6997 var global = __webpack_require__(8);
6998 var ctx = __webpack_require__(29);
6999 var classof = __webpack_require__(99);
7000 var $export = __webpack_require__(7);
7001 var isObject = __webpack_require__(9);
7002 var aFunction = __webpack_require__(35);
7003 var anInstance = __webpack_require__(120);
7004 var forOf = __webpack_require__(79);
7005 var speciesConstructor = __webpack_require__(208);
7006 var task = __webpack_require__(209).set;
7007 var microtask = __webpack_require__(259)();
7008 var newPromiseCapabilityModule = __webpack_require__(149);
7009 var perform = __webpack_require__(210);
7010 var userAgent = __webpack_require__(260);
7011 var promiseResolve = __webpack_require__(211);
7012 var PROMISE = 'Promise';
7013 var TypeError = global.TypeError;
7014 var process = global.process;
7015 var versions = process && process.versions;
7016 var v8 = versions && versions.v8 || '';
7017 var $Promise = global[PROMISE];
7018 var isNode = classof(process) == 'process';
7019 var empty = function () { /* empty */ };
7020 var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
7021 var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
7022
7023 var USE_NATIVE = !!function () {
7024 try {
7025 // correct subclassing with @@species support
7026 var promise = $Promise.resolve(1);
7027 var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) {
7028 exec(empty, empty);
7029 };
7030 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
7031 return (isNode || typeof PromiseRejectionEvent == 'function')
7032 && promise.then(empty) instanceof FakePromise
7033 // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
7034 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
7035 // we can't detect it synchronously, so just check versions
7036 && v8.indexOf('6.6') !== 0
7037 && userAgent.indexOf('Chrome/66') === -1;
7038 } catch (e) { /* empty */ }
7039 }();
7040
7041 // helpers
7042 var isThenable = function (it) {
7043 var then;
7044 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
7045 };
7046 var notify = function (promise, isReject) {
7047 if (promise._n) return;
7048 promise._n = true;
7049 var chain = promise._c;
7050 microtask(function () {
7051 var value = promise._v;
7052 var ok = promise._s == 1;
7053 var i = 0;
7054 var run = function (reaction) {
7055 var handler = ok ? reaction.ok : reaction.fail;
7056 var resolve = reaction.resolve;
7057 var reject = reaction.reject;
7058 var domain = reaction.domain;
7059 var result, then, exited;
7060 try {
7061 if (handler) {
7062 if (!ok) {
7063 if (promise._h == 2) onHandleUnhandled(promise);
7064 promise._h = 1;
7065 }
7066 if (handler === true) result = value;
7067 else {
7068 if (domain) domain.enter();
7069 result = handler(value); // may throw
7070 if (domain) {
7071 domain.exit();
7072 exited = true;
7073 }
7074 }
7075 if (result === reaction.promise) {
7076 reject(TypeError('Promise-chain cycle'));
7077 } else if (then = isThenable(result)) {
7078 then.call(result, resolve, reject);
7079 } else resolve(result);
7080 } else reject(value);
7081 } catch (e) {
7082 if (domain && !exited) domain.exit();
7083 reject(e);
7084 }
7085 };
7086 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
7087 promise._c = [];
7088 promise._n = false;
7089 if (isReject && !promise._h) onUnhandled(promise);
7090 });
7091 };
7092 var onUnhandled = function (promise) {
7093 task.call(global, function () {
7094 var value = promise._v;
7095 var unhandled = isUnhandled(promise);
7096 var result, handler, console;
7097 if (unhandled) {
7098 result = perform(function () {
7099 if (isNode) {
7100 process.emit('unhandledRejection', value, promise);
7101 } else if (handler = global.onunhandledrejection) {
7102 handler({ promise: promise, reason: value });
7103 } else if ((console = global.console) && console.error) {
7104 console.error('Unhandled promise rejection', value);
7105 }
7106 });
7107 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
7108 promise._h = isNode || isUnhandled(promise) ? 2 : 1;
7109 } promise._a = undefined;
7110 if (unhandled && result.e) throw result.v;
7111 });
7112 };
7113 var isUnhandled = function (promise) {
7114 return promise._h !== 1 && (promise._a || promise._c).length === 0;
7115 };
7116 var onHandleUnhandled = function (promise) {
7117 task.call(global, function () {
7118 var handler;
7119 if (isNode) {
7120 process.emit('rejectionHandled', promise);
7121 } else if (handler = global.onrejectionhandled) {
7122 handler({ promise: promise, reason: promise._v });
7123 }
7124 });
7125 };
7126 var $reject = function (value) {
7127 var promise = this;
7128 if (promise._d) return;
7129 promise._d = true;
7130 promise = promise._w || promise; // unwrap
7131 promise._v = value;
7132 promise._s = 2;
7133 if (!promise._a) promise._a = promise._c.slice();
7134 notify(promise, true);
7135 };
7136 var $resolve = function (value) {
7137 var promise = this;
7138 var then;
7139 if (promise._d) return;
7140 promise._d = true;
7141 promise = promise._w || promise; // unwrap
7142 try {
7143 if (promise === value) throw TypeError("Promise can't be resolved itself");
7144 if (then = isThenable(value)) {
7145 microtask(function () {
7146 var wrapper = { _w: promise, _d: false }; // wrap
7147 try {
7148 then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
7149 } catch (e) {
7150 $reject.call(wrapper, e);
7151 }
7152 });
7153 } else {
7154 promise._v = value;
7155 promise._s = 1;
7156 notify(promise, false);
7157 }
7158 } catch (e) {
7159 $reject.call({ _w: promise, _d: false }, e); // wrap
7160 }
7161 };
7162
7163 // constructor polyfill
7164 if (!USE_NATIVE) {
7165 // 25.4.3.1 Promise(executor)
7166 $Promise = function Promise(executor) {
7167 anInstance(this, $Promise, PROMISE, '_h');
7168 aFunction(executor);
7169 Internal.call(this);
7170 try {
7171 executor(ctx($resolve, this, 1), ctx($reject, this, 1));
7172 } catch (err) {
7173 $reject.call(this, err);
7174 }
7175 };
7176 // eslint-disable-next-line no-unused-vars
7177 Internal = function Promise(executor) {
7178 this._c = []; // <- awaiting reactions
7179 this._a = undefined; // <- checked in isUnhandled reactions
7180 this._s = 0; // <- state
7181 this._d = false; // <- done
7182 this._v = undefined; // <- value
7183 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
7184 this._n = false; // <- notify
7185 };
7186 Internal.prototype = __webpack_require__(121)($Promise.prototype, {
7187 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
7188 then: function then(onFulfilled, onRejected) {
7189 var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
7190 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
7191 reaction.fail = typeof onRejected == 'function' && onRejected;
7192 reaction.domain = isNode ? process.domain : undefined;
7193 this._c.push(reaction);
7194 if (this._a) this._a.push(reaction);
7195 if (this._s) notify(this, false);
7196 return reaction.promise;
7197 },
7198 // 25.4.5.1 Promise.prototype.catch(onRejected)
7199 'catch': function (onRejected) {
7200 return this.then(undefined, onRejected);
7201 }
7202 });
7203 OwnPromiseCapability = function () {
7204 var promise = new Internal();
7205 this.promise = promise;
7206 this.resolve = ctx($resolve, promise, 1);
7207 this.reject = ctx($reject, promise, 1);
7208 };
7209 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
7210 return C === $Promise || C === Wrapper
7211 ? new OwnPromiseCapability(C)
7212 : newGenericPromiseCapability(C);
7213 };
7214 }
7215
7216 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
7217 __webpack_require__(53)($Promise, PROMISE);
7218 __webpack_require__(219)(PROMISE);
7219 Wrapper = __webpack_require__(6)[PROMISE];
7220
7221 // statics
7222 $export($export.S + $export.F * !USE_NATIVE, PROMISE, {
7223 // 25.4.4.5 Promise.reject(r)
7224 reject: function reject(r) {
7225 var capability = newPromiseCapability(this);
7226 var $$reject = capability.reject;
7227 $$reject(r);
7228 return capability.promise;
7229 }
7230 });
7231 $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
7232 // 25.4.4.6 Promise.resolve(x)
7233 resolve: function resolve(x) {
7234 return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
7235 }
7236 });
7237 $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(178)(function (iter) {
7238 $Promise.all(iter)['catch'](empty);
7239 })), PROMISE, {
7240 // 25.4.4.1 Promise.all(iterable)
7241 all: function all(iterable) {
7242 var C = this;
7243 var capability = newPromiseCapability(C);
7244 var resolve = capability.resolve;
7245 var reject = capability.reject;
7246 var result = perform(function () {
7247 var values = [];
7248 var index = 0;
7249 var remaining = 1;
7250 forOf(iterable, false, function (promise) {
7251 var $index = index++;
7252 var alreadyCalled = false;
7253 values.push(undefined);
7254 remaining++;
7255 C.resolve(promise).then(function (value) {
7256 if (alreadyCalled) return;
7257 alreadyCalled = true;
7258 values[$index] = value;
7259 --remaining || resolve(values);
7260 }, reject);
7261 });
7262 --remaining || resolve(values);
7263 });
7264 if (result.e) reject(result.v);
7265 return capability.promise;
7266 },
7267 // 25.4.4.4 Promise.race(iterable)
7268 race: function race(iterable) {
7269 var C = this;
7270 var capability = newPromiseCapability(C);
7271 var reject = capability.reject;
7272 var result = perform(function () {
7273 forOf(iterable, false, function (promise) {
7274 C.resolve(promise).then(capability.resolve, reject);
7275 });
7276 });
7277 if (result.e) reject(result.v);
7278 return capability.promise;
7279 }
7280 });
7281
7282
7283 /***/ }),
7284 /* 259 */
7285 /***/ (function(module, exports, __webpack_require__) {
7286
7287 var global = __webpack_require__(8);
7288 var macrotask = __webpack_require__(209).set;
7289 var Observer = global.MutationObserver || global.WebKitMutationObserver;
7290 var process = global.process;
7291 var Promise = global.Promise;
7292 var isNode = __webpack_require__(56)(process) == 'process';
7293
7294 module.exports = function () {
7295 var head, last, notify;
7296
7297 var flush = function () {
7298 var parent, fn;
7299 if (isNode && (parent = process.domain)) parent.exit();
7300 while (head) {
7301 fn = head.fn;
7302 head = head.next;
7303 try {
7304 fn();
7305 } catch (e) {
7306 if (head) notify();
7307 else last = undefined;
7308 throw e;
7309 }
7310 } last = undefined;
7311 if (parent) parent.enter();
7312 };
7313
7314 // Node.js
7315 if (isNode) {
7316 notify = function () {
7317 process.nextTick(flush);
7318 };
7319 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
7320 } else if (Observer && !(global.navigator && global.navigator.standalone)) {
7321 var toggle = true;
7322 var node = document.createTextNode('');
7323 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
7324 notify = function () {
7325 node.data = toggle = !toggle;
7326 };
7327 // environments with maybe non-completely correct, but existent Promise
7328 } else if (Promise && Promise.resolve) {
7329 // Promise.resolve without an argument throws an error in LG WebOS 2
7330 var promise = Promise.resolve(undefined);
7331 notify = function () {
7332 promise.then(flush);
7333 };
7334 // for other environments - macrotask based on:
7335 // - setImmediate
7336 // - MessageChannel
7337 // - window.postMessag
7338 // - onreadystatechange
7339 // - setTimeout
7340 } else {
7341 notify = function () {
7342 // strange IE + webpack dev server bug - use .call(global)
7343 macrotask.call(global, flush);
7344 };
7345 }
7346
7347 return function (fn) {
7348 var task = { fn: fn, next: undefined };
7349 if (last) last.next = task;
7350 if (!head) {
7351 head = task;
7352 notify();
7353 } last = task;
7354 };
7355 };
7356
7357
7358 /***/ }),
7359 /* 260 */
7360 /***/ (function(module, exports, __webpack_require__) {
7361
7362 var global = __webpack_require__(8);
7363 var navigator = global.navigator;
7364
7365 module.exports = navigator && navigator.userAgent || '';
7366
7367
7368 /***/ }),
7369 /* 261 */
7370 /***/ (function(module, exports, __webpack_require__) {
7371
7372 "use strict";
7373 // https://github.com/tc39/proposal-promise-finally
7374
7375 var $export = __webpack_require__(7);
7376 var core = __webpack_require__(6);
7377 var global = __webpack_require__(8);
7378 var speciesConstructor = __webpack_require__(208);
7379 var promiseResolve = __webpack_require__(211);
7380
7381 $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
7382 var C = speciesConstructor(this, core.Promise || global.Promise);
7383 var isFunction = typeof onFinally == 'function';
7384 return this.then(
7385 isFunction ? function (x) {
7386 return promiseResolve(C, onFinally()).then(function () { return x; });
7387 } : onFinally,
7388 isFunction ? function (e) {
7389 return promiseResolve(C, onFinally()).then(function () { throw e; });
7390 } : onFinally
7391 );
7392 } });
7393
7394
7395 /***/ }),
7396 /* 262 */
7397 /***/ (function(module, exports, __webpack_require__) {
7398
7399 "use strict";
7400
7401 // https://github.com/tc39/proposal-promise-try
7402 var $export = __webpack_require__(7);
7403 var newPromiseCapability = __webpack_require__(149);
7404 var perform = __webpack_require__(210);
7405
7406 $export($export.S, 'Promise', { 'try': function (callbackfn) {
7407 var promiseCapability = newPromiseCapability.f(this);
7408 var result = perform(callbackfn);
7409 (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
7410 return promiseCapability.promise;
7411 } });
7412
7413
7414 /***/ }),
7415 /* 263 */
7416 /***/ (function(module, exports, __webpack_require__) {
7417
7418 module.exports = __webpack_require__(264);
7419
7420 /***/ }),
7421 /* 264 */
7422 /***/ (function(module, exports, __webpack_require__) {
7423
7424 __webpack_require__(92);
7425 __webpack_require__(59);
7426 __webpack_require__(265);
7427 __webpack_require__(267);
7428 __webpack_require__(268);
7429 module.exports = __webpack_require__(6).WeakMap;
7430
7431
7432 /***/ }),
7433 /* 265 */
7434 /***/ (function(module, exports, __webpack_require__) {
7435
7436 "use strict";
7437
7438 var global = __webpack_require__(8);
7439 var each = __webpack_require__(142)(0);
7440 var redefine = __webpack_require__(89);
7441 var meta = __webpack_require__(66);
7442 var assign = __webpack_require__(213);
7443 var weak = __webpack_require__(266);
7444 var isObject = __webpack_require__(9);
7445 var validate = __webpack_require__(113);
7446 var NATIVE_WEAK_MAP = __webpack_require__(113);
7447 var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
7448 var WEAK_MAP = 'WeakMap';
7449 var getWeak = meta.getWeak;
7450 var isExtensible = Object.isExtensible;
7451 var uncaughtFrozenStore = weak.ufstore;
7452 var InternalMap;
7453
7454 var wrapper = function (get) {
7455 return function WeakMap() {
7456 return get(this, arguments.length > 0 ? arguments[0] : undefined);
7457 };
7458 };
7459
7460 var methods = {
7461 // 23.3.3.3 WeakMap.prototype.get(key)
7462 get: function get(key) {
7463 if (isObject(key)) {
7464 var data = getWeak(key);
7465 if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
7466 return data ? data[this._i] : undefined;
7467 }
7468 },
7469 // 23.3.3.5 WeakMap.prototype.set(key, value)
7470 set: function set(key, value) {
7471 return weak.def(validate(this, WEAK_MAP), key, value);
7472 }
7473 };
7474
7475 // 23.3 WeakMap Objects
7476 var $WeakMap = module.exports = __webpack_require__(223)(WEAK_MAP, wrapper, methods, weak, true, true);
7477
7478 // IE11 WeakMap frozen keys fix
7479 if (NATIVE_WEAK_MAP && IS_IE11) {
7480 InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
7481 assign(InternalMap.prototype, methods);
7482 meta.NEED = true;
7483 each(['delete', 'has', 'get', 'set'], function (key) {
7484 var proto = $WeakMap.prototype;
7485 var method = proto[key];
7486 redefine(proto, key, function (a, b) {
7487 // store frozen objects on internal weakmap shim
7488 if (isObject(a) && !isExtensible(a)) {
7489 if (!this._f) this._f = new InternalMap();
7490 var result = this._f[key](a, b);
7491 return key == 'set' ? this : result;
7492 // store all the rest on native weakmap
7493 } return method.call(this, a, b);
7494 });
7495 });
7496 }
7497
7498
7499 /***/ }),
7500 /* 266 */
7501 /***/ (function(module, exports, __webpack_require__) {
7502
7503 "use strict";
7504
7505 var redefineAll = __webpack_require__(121);
7506 var getWeak = __webpack_require__(66).getWeak;
7507 var anObject = __webpack_require__(11);
7508 var isObject = __webpack_require__(9);
7509 var anInstance = __webpack_require__(120);
7510 var forOf = __webpack_require__(79);
7511 var createArrayMethod = __webpack_require__(142);
7512 var $has = __webpack_require__(17);
7513 var validate = __webpack_require__(113);
7514 var arrayFind = createArrayMethod(5);
7515 var arrayFindIndex = createArrayMethod(6);
7516 var id = 0;
7517
7518 // fallback for uncaught frozen keys
7519 var uncaughtFrozenStore = function (that) {
7520 return that._l || (that._l = new UncaughtFrozenStore());
7521 };
7522 var UncaughtFrozenStore = function () {
7523 this.a = [];
7524 };
7525 var findUncaughtFrozen = function (store, key) {
7526 return arrayFind(store.a, function (it) {
7527 return it[0] === key;
7528 });
7529 };
7530 UncaughtFrozenStore.prototype = {
7531 get: function (key) {
7532 var entry = findUncaughtFrozen(this, key);
7533 if (entry) return entry[1];
7534 },
7535 has: function (key) {
7536 return !!findUncaughtFrozen(this, key);
7537 },
7538 set: function (key, value) {
7539 var entry = findUncaughtFrozen(this, key);
7540 if (entry) entry[1] = value;
7541 else this.a.push([key, value]);
7542 },
7543 'delete': function (key) {
7544 var index = arrayFindIndex(this.a, function (it) {
7545 return it[0] === key;
7546 });
7547 if (~index) this.a.splice(index, 1);
7548 return !!~index;
7549 }
7550 };
7551
7552 module.exports = {
7553 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
7554 var C = wrapper(function (that, iterable) {
7555 anInstance(that, C, NAME, '_i');
7556 that._t = NAME; // collection type
7557 that._i = id++; // collection id
7558 that._l = undefined; // leak store for uncaught frozen objects
7559 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
7560 });
7561 redefineAll(C.prototype, {
7562 // 23.3.3.2 WeakMap.prototype.delete(key)
7563 // 23.4.3.3 WeakSet.prototype.delete(value)
7564 'delete': function (key) {
7565 if (!isObject(key)) return false;
7566 var data = getWeak(key);
7567 if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
7568 return data && $has(data, this._i) && delete data[this._i];
7569 },
7570 // 23.3.3.4 WeakMap.prototype.has(key)
7571 // 23.4.3.4 WeakSet.prototype.has(value)
7572 has: function has(key) {
7573 if (!isObject(key)) return false;
7574 var data = getWeak(key);
7575 if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
7576 return data && $has(data, this._i);
7577 }
7578 });
7579 return C;
7580 },
7581 def: function (that, key, value) {
7582 var data = getWeak(anObject(key), true);
7583 if (data === true) uncaughtFrozenStore(that).set(key, value);
7584 else data[that._i] = value;
7585 return that;
7586 },
7587 ufstore: uncaughtFrozenStore
7588 };
7589
7590
7591 /***/ }),
7592 /* 267 */
7593 /***/ (function(module, exports, __webpack_require__) {
7594
7595 // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
7596 __webpack_require__(224)('WeakMap');
7597
7598
7599 /***/ }),
7600 /* 268 */
7601 /***/ (function(module, exports, __webpack_require__) {
7602
7603 // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
7604 __webpack_require__(225)('WeakMap');
7605
7606
7607 /***/ }),
7608 /* 269 */
7609 /***/ (function(module, exports, __webpack_require__) {
7610
7611 __webpack_require__(270);
7612 module.exports = __webpack_require__(6).Object.entries;
7613
7614
7615 /***/ }),
7616 /* 270 */
7617 /***/ (function(module, exports, __webpack_require__) {
7618
7619 // https://github.com/tc39/proposal-object-values-entries
7620 var $export = __webpack_require__(7);
7621 var $entries = __webpack_require__(181)(true);
7622
7623 $export($export.S, 'Object', {
7624 entries: function entries(it) {
7625 return $entries(it);
7626 }
7627 });
7628
7629
7630 /***/ }),
7631 /* 271 */
7632 /***/ (function(module, exports, __webpack_require__) {
7633
7634 "use strict";
7635
7636 var $at = __webpack_require__(146)(true);
7637
7638 // 21.1.3.27 String.prototype[@@iterator]()
7639 __webpack_require__(198)(String, 'String', function (iterated) {
7640 this._t = String(iterated); // target
7641 this._i = 0; // next index
7642 // 21.1.5.2.1 %StringIteratorPrototype%.next()
7643 }, function () {
7644 var O = this._t;
7645 var index = this._i;
7646 var point;
7647 if (index >= O.length) return { value: undefined, done: true };
7648 point = $at(O, index);
7649 this._i += point.length;
7650 return { value: point, done: false };
7651 });
7652
7653
7654 /***/ }),
7655 /* 272 */
7656 /***/ (function(module, exports, __webpack_require__) {
7657
7658 "use strict";
7659
7660
7661 var _Object$defineProperty = __webpack_require__(1);
7662
7663 _Object$defineProperty(exports, "__esModule", {
7664 value: true
7665 });
7666
7667 exports.default = void 0;
7668 var userAgent = navigator.userAgent;
7669 var _default = {
7670 webkit: -1 !== userAgent.indexOf('AppleWebKit'),
7671 firefox: -1 !== userAgent.indexOf('Firefox'),
7672 ie: /Trident|MSIE/.test(userAgent),
7673 edge: -1 !== userAgent.indexOf('Edge'),
7674 mac: -1 !== userAgent.indexOf('Macintosh'),
7675 safari: /^((?!chrome|android).)*safari/i.test(userAgent)
7676 };
7677 exports.default = _default;
7678
7679 /***/ }),
7680 /* 273 */
7681 /***/ (function(module, exports, __webpack_require__) {
7682
7683 module.exports = __webpack_require__(274);
7684
7685 /***/ }),
7686 /* 274 */
7687 /***/ (function(module, exports, __webpack_require__) {
7688
7689 __webpack_require__(275);
7690 var $Object = __webpack_require__(6).Object;
7691 module.exports = function defineProperties(T, D) {
7692 return $Object.defineProperties(T, D);
7693 };
7694
7695
7696 /***/ }),
7697 /* 275 */
7698 /***/ (function(module, exports, __webpack_require__) {
7699
7700 var $export = __webpack_require__(7);
7701 // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
7702 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(131) });
7703
7704
7705 /***/ }),
7706 /* 276 */,
7707 /* 277 */,
7708 /* 278 */,
7709 /* 279 */,
7710 /* 280 */
7711 /***/ (function(module, exports, __webpack_require__) {
7712
7713 "use strict";
7714 // 21.1.3.18 String.prototype.startsWith(searchString [, position ])
7715
7716 var $export = __webpack_require__(38);
7717 var toLength = __webpack_require__(46);
7718 var context = __webpack_require__(205);
7719 var STARTS_WITH = 'startsWith';
7720 var $startsWith = ''[STARTS_WITH];
7721
7722 $export($export.P + $export.F * __webpack_require__(206)(STARTS_WITH), 'String', {
7723 startsWith: function startsWith(searchString /* , position = 0 */) {
7724 var that = context(this, searchString, STARTS_WITH);
7725 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
7726 var search = String(searchString);
7727 return $startsWith
7728 ? $startsWith.call(that, search, index)
7729 : that.slice(index, index + search.length) === search;
7730 }
7731 });
7732
7733
7734 /***/ }),
7735 /* 281 */
7736 /***/ (function(module, exports, __webpack_require__) {
7737
7738 "use strict";
7739
7740
7741 var _interopRequireDefault = __webpack_require__(0);
7742
7743 var _Object$defineProperty = __webpack_require__(1);
7744
7745 _Object$defineProperty(exports, "__esModule", {
7746 value: true
7747 });
7748
7749 exports.default = exports.After = void 0;
7750
7751 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7752
7753 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7754
7755 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7756
7757 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7758
7759 var _base = _interopRequireDefault(__webpack_require__(327));
7760
7761 var After = /*#__PURE__*/function (_Base) {
7762 (0, _inherits2.default)(After, _Base);
7763
7764 var _super = (0, _createSuper2.default)(After);
7765
7766 function After() {
7767 (0, _classCallCheck2.default)(this, After);
7768 return _super.apply(this, arguments);
7769 }
7770
7771 (0, _createClass2.default)(After, [{
7772 key: "register",
7773 value: function register() {
7774 $e.hooks.registerUIAfter(this);
7775 }
7776 }]);
7777 return After;
7778 }(_base.default);
7779
7780 exports.After = After;
7781 var _default = After;
7782 exports.default = _default;
7783
7784 /***/ }),
7785 /* 282 */,
7786 /* 283 */
7787 /***/ (function(module, exports, __webpack_require__) {
7788
7789 // 21.2.5.3 get RegExp.prototype.flags()
7790 if (__webpack_require__(28) && /./g.flags != 'g') __webpack_require__(51).f(RegExp.prototype, 'flags', {
7791 configurable: true,
7792 get: __webpack_require__(109)
7793 });
7794
7795
7796 /***/ }),
7797 /* 284 */,
7798 /* 285 */,
7799 /* 286 */,
7800 /* 287 */,
7801 /* 288 */,
7802 /* 289 */
7803 /***/ (function(module, exports, __webpack_require__) {
7804
7805 "use strict";
7806
7807
7808 var _interopRequireDefault = __webpack_require__(0);
7809
7810 var _Object$defineProperty = __webpack_require__(1);
7811
7812 _Object$defineProperty(exports, "__esModule", {
7813 value: true
7814 });
7815
7816 exports.default = exports.Base = void 0;
7817
7818 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7819
7820 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7821
7822 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7823
7824 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7825
7826 var _hookBase = _interopRequireDefault(__webpack_require__(301));
7827
7828 var Base = /*#__PURE__*/function (_HookBase) {
7829 (0, _inherits2.default)(Base, _HookBase);
7830
7831 var _super = (0, _createSuper2.default)(Base);
7832
7833 function Base() {
7834 (0, _classCallCheck2.default)(this, Base);
7835 return _super.apply(this, arguments);
7836 }
7837
7838 (0, _createClass2.default)(Base, [{
7839 key: "getType",
7840 value: function getType() {
7841 return 'data';
7842 }
7843 }]);
7844 return Base;
7845 }(_hookBase.default);
7846
7847 exports.Base = Base;
7848 var _default = Base;
7849 exports.default = _default;
7850
7851 /***/ }),
7852 /* 290 */
7853 /***/ (function(module, exports, __webpack_require__) {
7854
7855 "use strict";
7856
7857
7858 var _interopRequireWildcard = __webpack_require__(34);
7859
7860 var _interopRequireDefault = __webpack_require__(0);
7861
7862 var _Object$defineProperty = __webpack_require__(1);
7863
7864 _Object$defineProperty(exports, "__esModule", {
7865 value: true
7866 });
7867
7868 exports.default = void 0;
7869
7870 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7871
7872 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7873
7874 var _get2 = _interopRequireDefault(__webpack_require__(26));
7875
7876 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
7877
7878 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7879
7880 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7881
7882 var _componentBase = _interopRequireDefault(__webpack_require__(87));
7883
7884 var commands = _interopRequireWildcard(__webpack_require__(334));
7885
7886 var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) {
7887 (0, _inherits2.default)(ComponentModalBase, _ComponentBase);
7888
7889 var _super = (0, _createSuper2.default)(ComponentModalBase);
7890
7891 function ComponentModalBase() {
7892 (0, _classCallCheck2.default)(this, ComponentModalBase);
7893 return _super.apply(this, arguments);
7894 }
7895
7896 (0, _createClass2.default)(ComponentModalBase, [{
7897 key: "registerAPI",
7898 value: function registerAPI() {
7899 var _this = this;
7900
7901 (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this);
7902 $e.shortcuts.register('esc', {
7903 scopes: [this.getNamespace()],
7904 callback: function callback() {
7905 return _this.close();
7906 }
7907 });
7908 }
7909 }, {
7910 key: "defaultCommands",
7911 value: function defaultCommands() {
7912 return this.importCommands(commands);
7913 }
7914 }, {
7915 key: "defaultRoutes",
7916 value: function defaultRoutes() {
7917 return {
7918 '': function _() {
7919 /* Nothing to do, it's already rendered. */
7920 }
7921 };
7922 }
7923 }, {
7924 key: "open",
7925 value: function open() {
7926 var _this2 = this;
7927
7928 if (!this.layout) {
7929 var layout = this.getModalLayout();
7930 this.layout = new layout({
7931 component: this
7932 });
7933 this.layout.getModal().on('hide', function () {
7934 return _this2.close();
7935 });
7936 }
7937
7938 this.layout.showModal();
7939 return true;
7940 }
7941 }, {
7942 key: "close",
7943 value: function close() {
7944 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) {
7945 return false;
7946 }
7947
7948 this.layout.getModal().hide();
7949 return true;
7950 }
7951 }, {
7952 key: "getModalLayout",
7953 value: function getModalLayout() {
7954 elementorModules.ForceMethodImplementation();
7955 }
7956 }]);
7957 return ComponentModalBase;
7958 }(_componentBase.default);
7959
7960 exports.default = ComponentModalBase;
7961
7962 /***/ }),
7963 /* 291 */
7964 /***/ (function(module, exports, __webpack_require__) {
7965
7966 __webpack_require__(292);
7967 module.exports = __webpack_require__(6).Object.assign;
7968
7969
7970 /***/ }),
7971 /* 292 */
7972 /***/ (function(module, exports, __webpack_require__) {
7973
7974 // 19.1.3.1 Object.assign(target, source)
7975 var $export = __webpack_require__(7);
7976
7977 $export($export.S + $export.F, 'Object', { assign: __webpack_require__(213) });
7978
7979
7980 /***/ }),
7981 /* 293 */
7982 /***/ (function(module, exports, __webpack_require__) {
7983
7984 module.exports = __webpack_require__(294);
7985
7986 /***/ }),
7987 /* 294 */
7988 /***/ (function(module, exports, __webpack_require__) {
7989
7990 __webpack_require__(295);
7991 module.exports = __webpack_require__(6).Object.getOwnPropertyDescriptors;
7992
7993
7994 /***/ }),
7995 /* 295 */
7996 /***/ (function(module, exports, __webpack_require__) {
7997
7998 // https://github.com/tc39/proposal-object-getownpropertydescriptors
7999 var $export = __webpack_require__(7);
8000 var ownKeys = __webpack_require__(296);
8001 var toIObject = __webpack_require__(19);
8002 var gOPD = __webpack_require__(48);
8003 var createProperty = __webpack_require__(193);
8004
8005 $export($export.S, 'Object', {
8006 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
8007 var O = toIObject(object);
8008 var getDesc = gOPD.f;
8009 var keys = ownKeys(O);
8010 var result = {};
8011 var i = 0;
8012 var key, desc;
8013 while (keys.length > i) {
8014 desc = getDesc(O, key = keys[i++]);
8015 if (desc !== undefined) createProperty(result, key, desc);
8016 }
8017 return result;
8018 }
8019 });
8020
8021
8022 /***/ }),
8023 /* 296 */
8024 /***/ (function(module, exports, __webpack_require__) {
8025
8026 // all object keys, includes non-enumerable and symbols
8027 var gOPN = __webpack_require__(91);
8028 var gOPS = __webpack_require__(67);
8029 var anObject = __webpack_require__(11);
8030 var Reflect = __webpack_require__(8).Reflect;
8031 module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
8032 var keys = gOPN.f(anObject(it));
8033 var getSymbols = gOPS.f;
8034 return getSymbols ? keys.concat(getSymbols(it)) : keys;
8035 };
8036
8037
8038 /***/ }),
8039 /* 297 */
8040 /***/ (function(module, exports, __webpack_require__) {
8041
8042 module.exports = __webpack_require__(298);
8043
8044 /***/ }),
8045 /* 298 */
8046 /***/ (function(module, exports, __webpack_require__) {
8047
8048 __webpack_require__(136);
8049 module.exports = __webpack_require__(6).Object.getOwnPropertySymbols;
8050
8051
8052 /***/ }),
8053 /* 299 */,
8054 /* 300 */
8055 /***/ (function(module, exports, __webpack_require__) {
8056
8057 var _Object$create = __webpack_require__(130);
8058
8059 var _Map = __webpack_require__(315);
8060
8061 var getPrototypeOf = __webpack_require__(16);
8062
8063 var setPrototypeOf = __webpack_require__(119);
8064
8065 var isNativeFunction = __webpack_require__(324);
8066
8067 var construct = __webpack_require__(325);
8068
8069 function _wrapNativeSuper(Class) {
8070 var _cache = typeof _Map === "function" ? new _Map() : undefined;
8071
8072 module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
8073 if (Class === null || !isNativeFunction(Class)) return Class;
8074
8075 if (typeof Class !== "function") {
8076 throw new TypeError("Super expression must either be null or a function");
8077 }
8078
8079 if (typeof _cache !== "undefined") {
8080 if (_cache.has(Class)) return _cache.get(Class);
8081
8082 _cache.set(Class, Wrapper);
8083 }
8084
8085 function Wrapper() {
8086 return construct(Class, arguments, getPrototypeOf(this).constructor);
8087 }
8088
8089 Wrapper.prototype = _Object$create(Class.prototype, {
8090 constructor: {
8091 value: Wrapper,
8092 enumerable: false,
8093 writable: true,
8094 configurable: true
8095 }
8096 });
8097 return setPrototypeOf(Wrapper, Class);
8098 };
8099
8100 return _wrapNativeSuper(Class);
8101 }
8102
8103 module.exports = _wrapNativeSuper;
8104
8105 /***/ }),
8106 /* 301 */
8107 /***/ (function(module, exports, __webpack_require__) {
8108
8109 "use strict";
8110
8111
8112 var _interopRequireDefault = __webpack_require__(0);
8113
8114 var _Object$defineProperty = __webpack_require__(1);
8115
8116 _Object$defineProperty(exports, "__esModule", {
8117 value: true
8118 });
8119
8120 exports.default = void 0;
8121
8122 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8123
8124 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8125
8126 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
8127
8128 var HookBase = /*#__PURE__*/function () {
8129 /**
8130 * Callback type, eg ( hook, event ).
8131 *
8132 * @type {string}
8133 */
8134
8135 /**
8136 * Full command address, that will hook the callback.
8137 *
8138 * @type (string)
8139 */
8140
8141 /**
8142 * Unique id of the callback.
8143 *
8144 * @type {string}
8145 */
8146
8147 /**
8148 * Function constructor().
8149 *
8150 * Create callback base.
8151 */
8152 function HookBase() {
8153 (0, _classCallCheck2.default)(this, HookBase);
8154 (0, _defineProperty2.default)(this, "type", void 0);
8155 (0, _defineProperty2.default)(this, "command", void 0);
8156 (0, _defineProperty2.default)(this, "id", void 0);
8157 this.initialize();
8158 this.type = this.getType();
8159 this.command = this.getCommand();
8160 this.id = this.getId();
8161 }
8162 /**
8163 * Function initialize().
8164 *
8165 * Called after creation of the base, used for initialize extras.
8166 * Without expending constructor.
8167 */
8168
8169
8170 (0, _createClass2.default)(HookBase, [{
8171 key: "initialize",
8172 value: function initialize() {}
8173 /**
8174 * Function register().
8175 *
8176 * Used to register the callback.
8177 *
8178 * @throws {Error}
8179 */
8180
8181 }, {
8182 key: "register",
8183 value: function register() {
8184 elementorModules.ForceMethodImplementation();
8185 }
8186 /**
8187 * Function getType().
8188 *
8189 * Get type eg: ( hook, event, etc ... ).
8190 *
8191 * @returns {string}
8192 *
8193 * @throws {Error}
8194 */
8195
8196 }, {
8197 key: "getType",
8198 value: function getType() {
8199 elementorModules.ForceMethodImplementation();
8200 }
8201 /**
8202 * Function getCommand().
8203 *
8204 * Returns the full command path for callback binding.
8205 *
8206 * Supports array of strings ( commands ).
8207 *
8208 * @returns {string}
8209 *
8210 * @throws {Error}
8211 */
8212
8213 }, {
8214 key: "getCommand",
8215 value: function getCommand() {
8216 elementorModules.ForceMethodImplementation();
8217 }
8218 /**
8219 * Function getId().
8220 *
8221 * Returns command id for the hook (should be unique).
8222 *
8223 * @returns {string}
8224 *
8225 * @throws {Error}
8226 */
8227
8228 }, {
8229 key: "getId",
8230 value: function getId() {
8231 elementorModules.ForceMethodImplementation();
8232 }
8233 /**
8234 * Function getContainerType().
8235 *
8236 * Bind eContainer type to callback.
8237 *
8238 * Used to gain performance.
8239 *
8240 * @return {string} type
8241 */
8242
8243 }, {
8244 key: "getContainerType",
8245 value: function getContainerType() {}
8246 /**
8247 * Function getConditions().
8248 *
8249 * Condition for running the callback, if true, call to apply().
8250 *
8251 * @param [args={}]
8252 * @param [result=*]
8253 *
8254 * @returns {boolean}
8255 */
8256
8257 }, {
8258 key: "getConditions",
8259 value: function getConditions() {
8260 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8261 var result = arguments.length > 1 ? arguments[1] : undefined;
8262 // eslint-disable-line no-unused-vars
8263 return true;
8264 }
8265 /**
8266 * Function apply().
8267 *
8268 * Apply the callback, ( The actual affect of the callback ).
8269 *
8270 * @param [args={}]
8271 *
8272 * @returns {*}
8273 */
8274
8275 }, {
8276 key: "apply",
8277 value: function apply(args) {
8278 // eslint-disable-line no-unused-vars
8279 elementorModules.ForceMethodImplementation();
8280 }
8281 /**
8282 * Function run().
8283 *
8284 * Run the callback.
8285 *
8286 * @param {*} args
8287 *
8288 * @returns {*}
8289 */
8290
8291 }, {
8292 key: "run",
8293 value: function run() {
8294 var _ref = arguments.length <= 0 ? undefined : arguments[0],
8295 _ref$options = _ref.options,
8296 options = _ref$options === void 0 ? {} : _ref$options; // Disable callback if requested by args.options.
8297
8298
8299 if (options.callbacks && false === options.callbacks[this.id]) {
8300 return true;
8301 }
8302
8303 if (this.getConditions.apply(this, arguments)) {
8304 if ($e.devTools) {
8305 $e.devTools.log.callbacks().active(this.type, this.command, this.id);
8306 }
8307
8308 return this.apply.apply(this, arguments);
8309 }
8310
8311 return true;
8312 }
8313 }]);
8314 return HookBase;
8315 }();
8316
8317 exports.default = HookBase;
8318
8319 /***/ }),
8320 /* 302 */
8321 /***/ (function(module, exports, __webpack_require__) {
8322
8323 var global = __webpack_require__(18);
8324 var inheritIfRequired = __webpack_require__(311);
8325 var dP = __webpack_require__(51).f;
8326 var gOPN = __webpack_require__(313).f;
8327 var isRegExp = __webpack_require__(126);
8328 var $flags = __webpack_require__(109);
8329 var $RegExp = global.RegExp;
8330 var Base = $RegExp;
8331 var proto = $RegExp.prototype;
8332 var re1 = /a/g;
8333 var re2 = /a/g;
8334 // "new" creates a new object, old webkit buggy here
8335 var CORRECT_NEW = new $RegExp(re1) !== re1;
8336
8337 if (__webpack_require__(28) && (!CORRECT_NEW || __webpack_require__(36)(function () {
8338 re2[__webpack_require__(13)('match')] = false;
8339 // RegExp constructor can alter flags and IsRegExp works correct with @@match
8340 return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
8341 }))) {
8342 $RegExp = function RegExp(p, f) {
8343 var tiRE = this instanceof $RegExp;
8344 var piRE = isRegExp(p);
8345 var fiU = f === undefined;
8346 return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
8347 : inheritIfRequired(CORRECT_NEW
8348 ? new Base(piRE && !fiU ? p.source : p, f)
8349 : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
8350 , tiRE ? this : proto, $RegExp);
8351 };
8352 var proxy = function (key) {
8353 key in $RegExp || dP($RegExp, key, {
8354 configurable: true,
8355 get: function () { return Base[key]; },
8356 set: function (it) { Base[key] = it; }
8357 });
8358 };
8359 for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
8360 proto.constructor = $RegExp;
8361 $RegExp.prototype = proto;
8362 __webpack_require__(39)(global, 'RegExp', $RegExp);
8363 }
8364
8365 __webpack_require__(310)('RegExp');
8366
8367
8368 /***/ }),
8369 /* 303 */,
8370 /* 304 */,
8371 /* 305 */,
8372 /* 306 */,
8373 /* 307 */,
8374 /* 308 */,
8375 /* 309 */,
8376 /* 310 */
8377 /***/ (function(module, exports, __webpack_require__) {
8378
8379 "use strict";
8380
8381 var global = __webpack_require__(18);
8382 var dP = __webpack_require__(51);
8383 var DESCRIPTORS = __webpack_require__(28);
8384 var SPECIES = __webpack_require__(13)('species');
8385
8386 module.exports = function (KEY) {
8387 var C = global[KEY];
8388 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
8389 configurable: true,
8390 get: function () { return this; }
8391 });
8392 };
8393
8394
8395 /***/ }),
8396 /* 311 */
8397 /***/ (function(module, exports, __webpack_require__) {
8398
8399 var isObject = __webpack_require__(31);
8400 var setPrototypeOf = __webpack_require__(343).set;
8401 module.exports = function (that, target, C) {
8402 var S = target.constructor;
8403 var P;
8404 if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
8405 setPrototypeOf(that, P);
8406 } return that;
8407 };
8408
8409
8410 /***/ }),
8411 /* 312 */
8412 /***/ (function(module, exports, __webpack_require__) {
8413
8414 var pIE = __webpack_require__(344);
8415 var createDesc = __webpack_require__(106);
8416 var toIObject = __webpack_require__(104);
8417 var toPrimitive = __webpack_require__(127);
8418 var has = __webpack_require__(64);
8419 var IE8_DOM_DEFINE = __webpack_require__(135);
8420 var gOPD = Object.getOwnPropertyDescriptor;
8421
8422 exports.f = __webpack_require__(28) ? gOPD : function getOwnPropertyDescriptor(O, P) {
8423 O = toIObject(O);
8424 P = toPrimitive(P, true);
8425 if (IE8_DOM_DEFINE) try {
8426 return gOPD(O, P);
8427 } catch (e) { /* empty */ }
8428 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
8429 };
8430
8431
8432 /***/ }),
8433 /* 313 */
8434 /***/ (function(module, exports, __webpack_require__) {
8435
8436 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
8437 var $keys = __webpack_require__(220);
8438 var hiddenKeys = __webpack_require__(151).concat('length', 'prototype');
8439
8440 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
8441 return $keys(O, hiddenKeys);
8442 };
8443
8444
8445 /***/ }),
8446 /* 314 */
8447 /***/ (function(module, exports, __webpack_require__) {
8448
8449 "use strict";
8450
8451
8452 var _interopRequireWildcard = __webpack_require__(34);
8453
8454 var _interopRequireDefault = __webpack_require__(0);
8455
8456 var _Object$defineProperty = __webpack_require__(1);
8457
8458 _Object$defineProperty(exports, "__esModule", {
8459 value: true
8460 });
8461
8462 exports.default = void 0;
8463
8464 var _values = _interopRequireDefault(__webpack_require__(54));
8465
8466 __webpack_require__(24);
8467
8468 var _assign = _interopRequireDefault(__webpack_require__(140));
8469
8470 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8471
8472 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
8473
8474 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8475
8476 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8477
8478 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8479
8480 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
8481
8482 var _commandBase = _interopRequireDefault(__webpack_require__(23));
8483
8484 var errors = _interopRequireWildcard(__webpack_require__(354));
8485
8486 var CommandData = /*#__PURE__*/function (_CommandBase) {
8487 (0, _inherits2.default)(CommandData, _CommandBase);
8488
8489 var _super = (0, _createSuper2.default)(CommandData);
8490
8491 (0, _createClass2.default)(CommandData, null, [{
8492 key: "getInstanceType",
8493
8494 /**
8495 * Data returned from remote.
8496 *
8497 * @type {*}
8498 */
8499
8500 /**
8501 * Fetch type.
8502 *
8503 * @type {DataTypes}
8504 */
8505 value: function getInstanceType() {
8506 return 'CommandData';
8507 }
8508 }]);
8509
8510 function CommandData(args) {
8511 var _this$args$options;
8512
8513 var _this;
8514
8515 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.data;
8516 (0, _classCallCheck2.default)(this, CommandData);
8517 _this = _super.call(this, args, commandsAPI);
8518 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", void 0);
8519 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0);
8520
8521 if ((_this$args$options = _this.args.options) === null || _this$args$options === void 0 ? void 0 : _this$args$options.type) {
8522 _this.type = _this.args.options.type;
8523 }
8524
8525 return _this;
8526 }
8527 /**
8528 * Function getEndpointFormat().
8529 *
8530 * @returns {(null|string)}
8531 */
8532
8533
8534 (0, _createClass2.default)(CommandData, [{
8535 key: "getApplyMethods",
8536
8537 /**
8538 * @param {DataTypes} type
8539 *
8540 * @returns {boolean|{before: (function(*=): {}), after: (function({}, *=): {})}}
8541 */
8542 value: function getApplyMethods() {
8543 var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.type;
8544 var before, after;
8545
8546 switch (type) {
8547 case 'create':
8548 before = this.applyBeforeCreate;
8549 after = this.applyAfterCreate;
8550 break;
8551
8552 case 'delete':
8553 before = this.applyBeforeDelete;
8554 after = this.applyAfterDelete;
8555 break;
8556
8557 case 'get':
8558 before = this.applyBeforeGet;
8559 after = this.applyAfterGet;
8560 break;
8561
8562 case 'update':
8563 before = this.applyBeforeUpdate;
8564 after = this.applyAfterUpdate;
8565 break;
8566
8567 default:
8568 return false;
8569 }
8570
8571 return {
8572 before: before,
8573 after: after
8574 };
8575 }
8576 /**
8577 * Function getRequestData().
8578 *
8579 * @returns {RequestData}
8580 */
8581
8582 }, {
8583 key: "getRequestData",
8584 value: function getRequestData() {
8585 return {
8586 type: this.type,
8587 args: this.args,
8588 timestamp: new Date().getTime(),
8589 component: this.component,
8590 command: this.currentCommand,
8591 endpoint: $e.data.commandToEndpoint(this.currentCommand, elementorCommon.helpers.cloneObject(this.args), this.constructor.getEndpointFormat())
8592 };
8593 }
8594 }, {
8595 key: "apply",
8596 value: function apply() {
8597 var _this2 = this;
8598
8599 var applyMethods = this.getApplyMethods(); // Run 'before' method.
8600
8601 this.args = applyMethods.before(this.args);
8602 var requestData = this.getRequestData();
8603 return $e.data.fetch(requestData).then(function (data) {
8604 _this2.data = data; // Run 'after' method.
8605
8606 _this2.data = applyMethods.after(data, _this2.args);
8607 _this2.data = {
8608 data: _this2.data
8609 }; // Append requestData.
8610
8611 _this2.data = (0, _assign.default)({
8612 __requestData__: requestData
8613 }, _this2.data);
8614 return _this2.data;
8615 });
8616 }
8617 /**
8618 * @param [args={}]
8619 * @returns {{}} filtered args
8620 */
8621
8622 }, {
8623 key: "applyBeforeCreate",
8624 value: function applyBeforeCreate() {
8625 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8626 return args;
8627 }
8628 /**
8629 * @param {{}} data
8630 * @param [args={}]
8631 * @returns {{}} filtered result
8632 */
8633
8634 }, {
8635 key: "applyAfterCreate",
8636 value: function applyAfterCreate(data) {
8637 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8638 // eslint-disable-line no-unused-vars
8639 return data;
8640 }
8641 /**
8642 * @param [args={}]
8643 * @returns {{}} filtered args
8644 */
8645
8646 }, {
8647 key: "applyBeforeDelete",
8648 value: function applyBeforeDelete() {
8649 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8650 return args;
8651 }
8652 /**
8653 * @param {{}} data
8654 * @param [args={}]
8655 * @returns {{}} filtered result
8656 */
8657
8658 }, {
8659 key: "applyAfterDelete",
8660 value: function applyAfterDelete(data) {
8661 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8662 // eslint-disable-line no-unused-vars
8663 return data;
8664 }
8665 /**
8666 * @param [args={}]
8667 * @returns {{}} filtered args
8668 */
8669
8670 }, {
8671 key: "applyBeforeGet",
8672 value: function applyBeforeGet() {
8673 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8674 return args;
8675 }
8676 /**
8677 * @param {{}} data
8678 * @param [args={}]
8679 * @returns {{}} filtered result
8680 */
8681
8682 }, {
8683 key: "applyAfterGet",
8684 value: function applyAfterGet(data) {
8685 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8686 // eslint-disable-line no-unused-vars
8687 return data;
8688 }
8689 /**
8690 * @param [args={}]
8691 * @returns {{}} filtered args
8692 */
8693
8694 }, {
8695 key: "applyBeforeUpdate",
8696 value: function applyBeforeUpdate() {
8697 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8698 return args;
8699 }
8700 /**
8701 * @param {{}} data
8702 * @param [args={}]
8703 * @returns {{}} filtered result
8704 */
8705
8706 }, {
8707 key: "applyAfterUpdate",
8708 value: function applyAfterUpdate(data) {
8709 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8710 // eslint-disable-line no-unused-vars
8711 return data;
8712 }
8713 /**
8714 * Called after apply() failed.
8715 *
8716 * @param e
8717 */
8718
8719 }, {
8720 key: "onCatchApply",
8721 value: function onCatchApply(e) {
8722 var _e, _e$data;
8723
8724 // TODO: If the errors that returns from the server is consistent remove the '?' from 'e'
8725 var status = ((_e = e) === null || _e === void 0 ? void 0 : (_e$data = _e.data) === null || _e$data === void 0 ? void 0 : _e$data.status) || 0,
8726 dataError = (0, _values.default)(errors).find(function (error) {
8727 return error.getStatus() === status;
8728 });
8729 e = dataError.create(e.message, e.code, e.data || []);
8730 this.runCatchHooks(e);
8731 e.notify();
8732 }
8733 }], [{
8734 key: "getEndpointFormat",
8735 value: function getEndpointFormat() {
8736 return null;
8737 }
8738 }]);
8739 return CommandData;
8740 }(_commandBase.default);
8741
8742 exports.default = CommandData;
8743
8744 /***/ }),
8745 /* 315 */
8746 /***/ (function(module, exports, __webpack_require__) {
8747
8748 module.exports = __webpack_require__(316);
8749
8750 /***/ }),
8751 /* 316 */
8752 /***/ (function(module, exports, __webpack_require__) {
8753
8754 __webpack_require__(92);
8755 __webpack_require__(57);
8756 __webpack_require__(59);
8757 __webpack_require__(317);
8758 __webpack_require__(319);
8759 __webpack_require__(322);
8760 __webpack_require__(323);
8761 module.exports = __webpack_require__(6).Map;
8762
8763
8764 /***/ }),
8765 /* 317 */
8766 /***/ (function(module, exports, __webpack_require__) {
8767
8768 "use strict";
8769
8770 var strong = __webpack_require__(318);
8771 var validate = __webpack_require__(113);
8772 var MAP = 'Map';
8773
8774 // 23.1 Map Objects
8775 module.exports = __webpack_require__(223)(MAP, function (get) {
8776 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
8777 }, {
8778 // 23.1.3.6 Map.prototype.get(key)
8779 get: function get(key) {
8780 var entry = strong.getEntry(validate(this, MAP), key);
8781 return entry && entry.v;
8782 },
8783 // 23.1.3.9 Map.prototype.set(key, value)
8784 set: function set(key, value) {
8785 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
8786 }
8787 }, strong, true);
8788
8789
8790 /***/ }),
8791 /* 318 */
8792 /***/ (function(module, exports, __webpack_require__) {
8793
8794 "use strict";
8795
8796 var dP = __webpack_require__(15).f;
8797 var create = __webpack_require__(47);
8798 var redefineAll = __webpack_require__(121);
8799 var ctx = __webpack_require__(29);
8800 var anInstance = __webpack_require__(120);
8801 var forOf = __webpack_require__(79);
8802 var $iterDefine = __webpack_require__(96);
8803 var step = __webpack_require__(139);
8804 var setSpecies = __webpack_require__(219);
8805 var DESCRIPTORS = __webpack_require__(14);
8806 var fastKey = __webpack_require__(66).fastKey;
8807 var validate = __webpack_require__(113);
8808 var SIZE = DESCRIPTORS ? '_s' : 'size';
8809
8810 var getEntry = function (that, key) {
8811 // fast case
8812 var index = fastKey(key);
8813 var entry;
8814 if (index !== 'F') return that._i[index];
8815 // frozen object case
8816 for (entry = that._f; entry; entry = entry.n) {
8817 if (entry.k == key) return entry;
8818 }
8819 };
8820
8821 module.exports = {
8822 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
8823 var C = wrapper(function (that, iterable) {
8824 anInstance(that, C, NAME, '_i');
8825 that._t = NAME; // collection type
8826 that._i = create(null); // index
8827 that._f = undefined; // first entry
8828 that._l = undefined; // last entry
8829 that[SIZE] = 0; // size
8830 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
8831 });
8832 redefineAll(C.prototype, {
8833 // 23.1.3.1 Map.prototype.clear()
8834 // 23.2.3.2 Set.prototype.clear()
8835 clear: function clear() {
8836 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
8837 entry.r = true;
8838 if (entry.p) entry.p = entry.p.n = undefined;
8839 delete data[entry.i];
8840 }
8841 that._f = that._l = undefined;
8842 that[SIZE] = 0;
8843 },
8844 // 23.1.3.3 Map.prototype.delete(key)
8845 // 23.2.3.4 Set.prototype.delete(value)
8846 'delete': function (key) {
8847 var that = validate(this, NAME);
8848 var entry = getEntry(that, key);
8849 if (entry) {
8850 var next = entry.n;
8851 var prev = entry.p;
8852 delete that._i[entry.i];
8853 entry.r = true;
8854 if (prev) prev.n = next;
8855 if (next) next.p = prev;
8856 if (that._f == entry) that._f = next;
8857 if (that._l == entry) that._l = prev;
8858 that[SIZE]--;
8859 } return !!entry;
8860 },
8861 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
8862 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
8863 forEach: function forEach(callbackfn /* , that = undefined */) {
8864 validate(this, NAME);
8865 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
8866 var entry;
8867 while (entry = entry ? entry.n : this._f) {
8868 f(entry.v, entry.k, this);
8869 // revert to the last existing entry
8870 while (entry && entry.r) entry = entry.p;
8871 }
8872 },
8873 // 23.1.3.7 Map.prototype.has(key)
8874 // 23.2.3.7 Set.prototype.has(value)
8875 has: function has(key) {
8876 return !!getEntry(validate(this, NAME), key);
8877 }
8878 });
8879 if (DESCRIPTORS) dP(C.prototype, 'size', {
8880 get: function () {
8881 return validate(this, NAME)[SIZE];
8882 }
8883 });
8884 return C;
8885 },
8886 def: function (that, key, value) {
8887 var entry = getEntry(that, key);
8888 var prev, index;
8889 // change existing entry
8890 if (entry) {
8891 entry.v = value;
8892 // create new entry
8893 } else {
8894 that._l = entry = {
8895 i: index = fastKey(key, true), // <- index
8896 k: key, // <- key
8897 v: value, // <- value
8898 p: prev = that._l, // <- previous entry
8899 n: undefined, // <- next entry
8900 r: false // <- removed
8901 };
8902 if (!that._f) that._f = entry;
8903 if (prev) prev.n = entry;
8904 that[SIZE]++;
8905 // add to index
8906 if (index !== 'F') that._i[index] = entry;
8907 } return that;
8908 },
8909 getEntry: getEntry,
8910 setStrong: function (C, NAME, IS_MAP) {
8911 // add .keys, .values, .entries, [@@iterator]
8912 // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
8913 $iterDefine(C, NAME, function (iterated, kind) {
8914 this._t = validate(iterated, NAME); // target
8915 this._k = kind; // kind
8916 this._l = undefined; // previous
8917 }, function () {
8918 var that = this;
8919 var kind = that._k;
8920 var entry = that._l;
8921 // revert to the last existing entry
8922 while (entry && entry.r) entry = entry.p;
8923 // get next entry
8924 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
8925 // or finish the iteration
8926 that._t = undefined;
8927 return step(1);
8928 }
8929 // return step by kind
8930 if (kind == 'keys') return step(0, entry.k);
8931 if (kind == 'values') return step(0, entry.v);
8932 return step(0, [entry.k, entry.v]);
8933 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
8934
8935 // add [@@species], 23.1.2.2, 23.2.2.2
8936 setSpecies(NAME);
8937 }
8938 };
8939
8940
8941 /***/ }),
8942 /* 319 */
8943 /***/ (function(module, exports, __webpack_require__) {
8944
8945 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
8946 var $export = __webpack_require__(7);
8947
8948 $export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(320)('Map') });
8949
8950
8951 /***/ }),
8952 /* 320 */
8953 /***/ (function(module, exports, __webpack_require__) {
8954
8955 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
8956 var classof = __webpack_require__(99);
8957 var from = __webpack_require__(321);
8958 module.exports = function (NAME) {
8959 return function toJSON() {
8960 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
8961 return from(this);
8962 };
8963 };
8964
8965
8966 /***/ }),
8967 /* 321 */
8968 /***/ (function(module, exports, __webpack_require__) {
8969
8970 var forOf = __webpack_require__(79);
8971
8972 module.exports = function (iter, ITERATOR) {
8973 var result = [];
8974 forOf(iter, false, result.push, result, ITERATOR);
8975 return result;
8976 };
8977
8978
8979 /***/ }),
8980 /* 322 */
8981 /***/ (function(module, exports, __webpack_require__) {
8982
8983 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
8984 __webpack_require__(224)('Map');
8985
8986
8987 /***/ }),
8988 /* 323 */
8989 /***/ (function(module, exports, __webpack_require__) {
8990
8991 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
8992 __webpack_require__(225)('Map');
8993
8994
8995 /***/ }),
8996 /* 324 */
8997 /***/ (function(module, exports) {
8998
8999 function _isNativeFunction(fn) {
9000 return Function.toString.call(fn).indexOf("[native code]") !== -1;
9001 }
9002
9003 module.exports = _isNativeFunction;
9004
9005 /***/ }),
9006 /* 325 */
9007 /***/ (function(module, exports, __webpack_require__) {
9008
9009 var _Reflect$construct = __webpack_require__(95);
9010
9011 var setPrototypeOf = __webpack_require__(119);
9012
9013 var isNativeReflectConstruct = __webpack_require__(138);
9014
9015 function _construct(Parent, args, Class) {
9016 if (isNativeReflectConstruct()) {
9017 module.exports = _construct = _Reflect$construct;
9018 } else {
9019 module.exports = _construct = function _construct(Parent, args, Class) {
9020 var a = [null];
9021 a.push.apply(a, args);
9022 var Constructor = Function.bind.apply(Parent, a);
9023 var instance = new Constructor();
9024 if (Class) setPrototypeOf(instance, Class.prototype);
9025 return instance;
9026 };
9027 }
9028
9029 return _construct.apply(null, arguments);
9030 }
9031
9032 module.exports = _construct;
9033
9034 /***/ }),
9035 /* 326 */
9036 /***/ (function(module, exports, __webpack_require__) {
9037
9038 "use strict";
9039
9040
9041 var _interopRequireDefault = __webpack_require__(0);
9042
9043 var _Object$defineProperty = __webpack_require__(1);
9044
9045 _Object$defineProperty(exports, "__esModule", {
9046 value: true
9047 });
9048
9049 exports.default = void 0;
9050
9051 var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
9052
9053 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9054
9055 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
9056
9057 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9058
9059 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9060
9061 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9062
9063 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(300));
9064
9065 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
9066
9067 var BaseError = /*#__PURE__*/function (_Error) {
9068 (0, _inherits2.default)(BaseError, _Error);
9069
9070 var _super = (0, _createSuper2.default)(BaseError);
9071
9072 (0, _createClass2.default)(BaseError, null, [{
9073 key: "create",
9074
9075 /**
9076 * The server error code.
9077 *
9078 * @type {string}
9079 */
9080
9081 /**
9082 * Additional data about the current error.
9083 *
9084 * @type {*[]}
9085 */
9086
9087 /**
9088 * Static helper function to create the error.
9089 *
9090 * @param message
9091 * @param code
9092 * @param data
9093 * @returns {BaseError}
9094 */
9095 value: function create(message) {
9096 var code = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
9097 var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
9098 return new this(message, code, data);
9099 }
9100 /**
9101 * Returns the status code of the error.
9102 */
9103
9104 }, {
9105 key: "getStatus",
9106 value: function getStatus() {
9107 elementorModules.ForceMethodImplementation();
9108 }
9109 /**
9110 * Error constructor.
9111 *
9112 * @param code
9113 * @param message
9114 * @param data
9115 */
9116
9117 }]);
9118
9119 function BaseError() {
9120 var _this;
9121
9122 var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9123 var code = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
9124 var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
9125 (0, _classCallCheck2.default)(this, BaseError);
9126 _this = _super.call(this, message);
9127 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "code", '');
9128 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", []);
9129 _this.code = code;
9130 _this.data = data;
9131 return _this;
9132 }
9133 /**
9134 * Notify a message when the error occurs.
9135 */
9136
9137
9138 (0, _createClass2.default)(BaseError, [{
9139 key: "notify",
9140 value: function notify() {
9141 elementorCommon.helpers.consoleError((0, _objectSpread2.default)({
9142 message: this.message
9143 }, this));
9144 }
9145 }]);
9146 return BaseError;
9147 }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
9148
9149 exports.default = BaseError;
9150
9151 /***/ }),
9152 /* 327 */
9153 /***/ (function(module, exports, __webpack_require__) {
9154
9155 "use strict";
9156
9157
9158 var _interopRequireDefault = __webpack_require__(0);
9159
9160 var _Object$defineProperty = __webpack_require__(1);
9161
9162 _Object$defineProperty(exports, "__esModule", {
9163 value: true
9164 });
9165
9166 exports.default = exports.Base = void 0;
9167
9168 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9169
9170 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9171
9172 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9173
9174 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9175
9176 var _hookBase = _interopRequireDefault(__webpack_require__(301));
9177
9178 var Base = /*#__PURE__*/function (_HookBase) {
9179 (0, _inherits2.default)(Base, _HookBase);
9180
9181 var _super = (0, _createSuper2.default)(Base);
9182
9183 function Base() {
9184 (0, _classCallCheck2.default)(this, Base);
9185 return _super.apply(this, arguments);
9186 }
9187
9188 (0, _createClass2.default)(Base, [{
9189 key: "getType",
9190 value: function getType() {
9191 return 'ui';
9192 }
9193 }]);
9194 return Base;
9195 }(_hookBase.default);
9196
9197 exports.Base = Base;
9198 var _default = Base;
9199 exports.default = _default;
9200
9201 /***/ }),
9202 /* 328 */,
9203 /* 329 */
9204 /***/ (function(module, exports, __webpack_require__) {
9205
9206 var core = __webpack_require__(6);
9207 var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
9208 module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
9209 return $JSON.stringify.apply($JSON, arguments);
9210 };
9211
9212
9213 /***/ }),
9214 /* 330 */,
9215 /* 331 */,
9216 /* 332 */,
9217 /* 333 */,
9218 /* 334 */
9219 /***/ (function(module, exports, __webpack_require__) {
9220
9221 "use strict";
9222
9223
9224 var _Object$defineProperty = __webpack_require__(1);
9225
9226 _Object$defineProperty(exports, "__esModule", {
9227 value: true
9228 });
9229
9230 _Object$defineProperty(exports, "Close", {
9231 enumerable: true,
9232 get: function get() {
9233 return _close.Close;
9234 }
9235 });
9236
9237 _Object$defineProperty(exports, "Open", {
9238 enumerable: true,
9239 get: function get() {
9240 return _open.Open;
9241 }
9242 });
9243
9244 _Object$defineProperty(exports, "Toggle", {
9245 enumerable: true,
9246 get: function get() {
9247 return _toggle.Toggle;
9248 }
9249 });
9250
9251 var _close = __webpack_require__(335);
9252
9253 var _open = __webpack_require__(336);
9254
9255 var _toggle = __webpack_require__(337);
9256
9257 /***/ }),
9258 /* 335 */
9259 /***/ (function(module, exports, __webpack_require__) {
9260
9261 "use strict";
9262
9263
9264 var _interopRequireDefault = __webpack_require__(0);
9265
9266 var _Object$defineProperty = __webpack_require__(1);
9267
9268 _Object$defineProperty(exports, "__esModule", {
9269 value: true
9270 });
9271
9272 exports.default = exports.Close = void 0;
9273
9274 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9275
9276 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9277
9278 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9279
9280 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9281
9282 var _commandBase = _interopRequireDefault(__webpack_require__(23));
9283
9284 var Close = /*#__PURE__*/function (_CommandBase) {
9285 (0, _inherits2.default)(Close, _CommandBase);
9286
9287 var _super = (0, _createSuper2.default)(Close);
9288
9289 function Close() {
9290 (0, _classCallCheck2.default)(this, Close);
9291 return _super.apply(this, arguments);
9292 }
9293
9294 (0, _createClass2.default)(Close, [{
9295 key: "apply",
9296 value: function apply() {
9297 this.component.close();
9298 }
9299 }]);
9300 return Close;
9301 }(_commandBase.default);
9302
9303 exports.Close = Close;
9304 var _default = Close;
9305 exports.default = _default;
9306
9307 /***/ }),
9308 /* 336 */
9309 /***/ (function(module, exports, __webpack_require__) {
9310
9311 "use strict";
9312
9313
9314 var _interopRequireDefault = __webpack_require__(0);
9315
9316 var _Object$defineProperty = __webpack_require__(1);
9317
9318 _Object$defineProperty(exports, "__esModule", {
9319 value: true
9320 });
9321
9322 exports.default = exports.Open = void 0;
9323
9324 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9325
9326 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9327
9328 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9329
9330 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9331
9332 var _commandBase = _interopRequireDefault(__webpack_require__(23));
9333
9334 var Open = /*#__PURE__*/function (_CommandBase) {
9335 (0, _inherits2.default)(Open, _CommandBase);
9336
9337 var _super = (0, _createSuper2.default)(Open);
9338
9339 function Open() {
9340 (0, _classCallCheck2.default)(this, Open);
9341 return _super.apply(this, arguments);
9342 }
9343
9344 (0, _createClass2.default)(Open, [{
9345 key: "apply",
9346 value: function apply() {
9347 $e.route(this.component.getNamespace());
9348 }
9349 }]);
9350 return Open;
9351 }(_commandBase.default);
9352
9353 exports.Open = Open;
9354 var _default = Open;
9355 exports.default = _default;
9356
9357 /***/ }),
9358 /* 337 */
9359 /***/ (function(module, exports, __webpack_require__) {
9360
9361 "use strict";
9362
9363
9364 var _interopRequireDefault = __webpack_require__(0);
9365
9366 var _Object$defineProperty = __webpack_require__(1);
9367
9368 _Object$defineProperty(exports, "__esModule", {
9369 value: true
9370 });
9371
9372 exports.default = exports.Toggle = void 0;
9373
9374 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9375
9376 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9377
9378 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9379
9380 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9381
9382 var _commandBase = _interopRequireDefault(__webpack_require__(23));
9383
9384 var Toggle = /*#__PURE__*/function (_CommandBase) {
9385 (0, _inherits2.default)(Toggle, _CommandBase);
9386
9387 var _super = (0, _createSuper2.default)(Toggle);
9388
9389 function Toggle() {
9390 (0, _classCallCheck2.default)(this, Toggle);
9391 return _super.apply(this, arguments);
9392 }
9393
9394 (0, _createClass2.default)(Toggle, [{
9395 key: "apply",
9396 value: function apply() {
9397 if (this.component.isOpen) {
9398 this.component.close();
9399 } else {
9400 $e.route(this.component.getNamespace());
9401 }
9402 }
9403 }]);
9404 return Toggle;
9405 }(_commandBase.default);
9406
9407 exports.Toggle = Toggle;
9408 var _default = Toggle;
9409 exports.default = _default;
9410
9411 /***/ }),
9412 /* 338 */,
9413 /* 339 */,
9414 /* 340 */,
9415 /* 341 */,
9416 /* 342 */,
9417 /* 343 */
9418 /***/ (function(module, exports, __webpack_require__) {
9419
9420 // Works with __proto__ only. Old v8 can't work with null proto objects.
9421 /* eslint-disable no-proto */
9422 var isObject = __webpack_require__(31);
9423 var anObject = __webpack_require__(20);
9424 var check = function (O, proto) {
9425 anObject(O);
9426 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
9427 };
9428 module.exports = {
9429 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
9430 function (test, buggy, set) {
9431 try {
9432 set = __webpack_require__(81)(Function.call, __webpack_require__(312).f(Object.prototype, '__proto__').set, 2);
9433 set(test, []);
9434 buggy = !(test instanceof Array);
9435 } catch (e) { buggy = true; }
9436 return function setPrototypeOf(O, proto) {
9437 check(O, proto);
9438 if (buggy) O.__proto__ = proto;
9439 else set(O, proto);
9440 return O;
9441 };
9442 }({}, false) : undefined),
9443 check: check
9444 };
9445
9446
9447 /***/ }),
9448 /* 344 */
9449 /***/ (function(module, exports) {
9450
9451 exports.f = {}.propertyIsEnumerable;
9452
9453
9454 /***/ }),
9455 /* 345 */,
9456 /* 346 */,
9457 /* 347 */,
9458 /* 348 */,
9459 /* 349 */,
9460 /* 350 */,
9461 /* 351 */,
9462 /* 352 */,
9463 /* 353 */,
9464 /* 354 */
9465 /***/ (function(module, exports, __webpack_require__) {
9466
9467 "use strict";
9468
9469
9470 var _Object$defineProperty = __webpack_require__(1);
9471
9472 _Object$defineProperty(exports, "__esModule", {
9473 value: true
9474 });
9475
9476 _Object$defineProperty(exports, "NotFoundError", {
9477 enumerable: true,
9478 get: function get() {
9479 return _notFoundError.NotFoundError;
9480 }
9481 });
9482
9483 _Object$defineProperty(exports, "DefaultError", {
9484 enumerable: true,
9485 get: function get() {
9486 return _defaultError.DefaultError;
9487 }
9488 });
9489
9490 var _notFoundError = __webpack_require__(406);
9491
9492 var _defaultError = __webpack_require__(407);
9493
9494 /***/ }),
9495 /* 355 */
9496 /***/ (function(module, exports, __webpack_require__) {
9497
9498 "use strict";
9499
9500
9501 var _interopRequireDefault = __webpack_require__(0);
9502
9503 var _Object$defineProperty = __webpack_require__(1);
9504
9505 _Object$defineProperty(exports, "__esModule", {
9506 value: true
9507 });
9508
9509 exports.default = void 0;
9510
9511 var _values = _interopRequireDefault(__webpack_require__(54));
9512
9513 __webpack_require__(150);
9514
9515 __webpack_require__(122);
9516
9517 __webpack_require__(80);
9518
9519 var _keys = _interopRequireDefault(__webpack_require__(25));
9520
9521 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9522
9523 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9524
9525 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9526
9527 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9528
9529 var _commands = _interopRequireDefault(__webpack_require__(635));
9530
9531 var Commands = /*#__PURE__*/function (_CommandsBackwardsCom) {
9532 (0, _inherits2.default)(Commands, _CommandsBackwardsCom);
9533
9534 var _super = (0, _createSuper2.default)(Commands);
9535
9536 /**
9537 * Function constructor().
9538 *
9539 * Create `$e.commands` API.
9540 *
9541 * @param {{}} args
9542 */
9543 function Commands() {
9544 var _this;
9545
9546 (0, _classCallCheck2.default)(this, Commands);
9547
9548 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9549 args[_key] = arguments[_key];
9550 }
9551
9552 _this = _super.call.apply(_super, [this].concat(args));
9553 _this.current = {};
9554 _this.currentArgs = {};
9555 _this.currentTrace = [];
9556 _this.commands = {};
9557 _this.components = {};
9558 _this.classes = {};
9559 return _this;
9560 }
9561 /**
9562 * @param id
9563 * @returns {CommandBase}
9564 */
9565
9566
9567 (0, _createClass2.default)(Commands, [{
9568 key: "getCommandClass",
9569 value: function getCommandClass(id) {
9570 return this.classes[id];
9571 }
9572 /**
9573 * Function getAll().
9574 *
9575 * Receive all loaded commands.
9576 *
9577 * @returns {string[]}
9578 */
9579
9580 }, {
9581 key: "getAll",
9582 value: function getAll() {
9583 return (0, _keys.default)(this.commands).sort();
9584 }
9585 /**
9586 * Function register().
9587 *
9588 * Register new command.
9589 *
9590 * @param {ComponentBase|string} component
9591 * @param {string} command
9592 * @param {function()} callback
9593 *
9594 * @returns {Commands}
9595 */
9596
9597 }, {
9598 key: "register",
9599 value: function register(component, command, callback) {
9600 var _this2 = this;
9601
9602 var namespace;
9603
9604 if ('string' === typeof component) {
9605 namespace = component;
9606 component = $e.components.get(namespace);
9607
9608 if (!component) {
9609 this.error("'".concat(namespace, "' component is not exist."));
9610 }
9611 } else {
9612 namespace = component.getNamespace();
9613 }
9614
9615 var fullCommand = namespace + (command ? '/' + command : '');
9616
9617 if (this.commands[fullCommand]) {
9618 this.error("`".concat(fullCommand, "` is already registered."));
9619 }
9620
9621 this.commands[fullCommand] = callback;
9622 this.components[fullCommand] = namespace;
9623 var shortcuts = component.getShortcuts(),
9624 shortcut = shortcuts[command];
9625
9626 if (shortcut) {
9627 shortcut.command = fullCommand;
9628
9629 shortcut.callback = function (event) {
9630 return _this2.runShortcut(fullCommand, event);
9631 };
9632
9633 $e.shortcuts.register(shortcut.keys, shortcut);
9634 }
9635
9636 return this;
9637 }
9638 }, {
9639 key: "unregister",
9640 value: function unregister(component, command) {
9641 var namespace;
9642
9643 if ('string' === typeof component) {
9644 namespace = component;
9645 component = $e.components.get(namespace);
9646
9647 if (!component) {
9648 this.error("'".concat(namespace, "' component is not exist."));
9649 }
9650 } else {
9651 namespace = component.getNamespace();
9652 }
9653
9654 var fullCommand = namespace + (command ? '/' + command : '');
9655
9656 if (!this.commands[fullCommand]) {
9657 this.error("`".concat(fullCommand, "` not exist."));
9658 }
9659
9660 delete this.commands[fullCommand];
9661 delete this.components[fullCommand];
9662 var shortcuts = component.getShortcuts(),
9663 shortcut = shortcuts[command];
9664
9665 if (shortcut) {
9666 $e.shortcuts.unregister(shortcut.keys, shortcut);
9667 }
9668
9669 return this;
9670 }
9671 /**
9672 * Function getComponent().
9673 *
9674 * Receive Component of the command.
9675 *
9676 * @param {string} command
9677 *
9678 * @returns {Component}
9679 */
9680
9681 }, {
9682 key: "getComponent",
9683 value: function getComponent(command) {
9684 var namespace = this.components[command];
9685 return $e.components.get(namespace);
9686 }
9687 /**
9688 * Function is().
9689 *
9690 * Checks if current running command is the same parameter command.
9691 *
9692 * @param {string} command
9693 *
9694 * @returns {boolean}
9695 */
9696
9697 }, {
9698 key: "is",
9699 value: function is(command) {
9700 var component = this.getComponent(command);
9701
9702 if (!component) {
9703 return false;
9704 }
9705
9706 return command === this.current[component.getRootContainer()];
9707 }
9708 /**
9709 * Function isCurrentFirstTrace().
9710 *
9711 * Checks if parameter command is the first command in trace that currently running.
9712 *
9713 * @param {string} command
9714 *
9715 * @returns {boolean}
9716 */
9717
9718 }, {
9719 key: "isCurrentFirstTrace",
9720 value: function isCurrentFirstTrace(command) {
9721 return command === this.getCurrentFirstTrace();
9722 }
9723 /**
9724 * Function getCurrent().
9725 *
9726 * Receive currently running components and its commands.
9727 *
9728 * @param {string} container
9729 *
9730 * @returns {{}|boolean|*}
9731 */
9732
9733 }, {
9734 key: "getCurrent",
9735 value: function getCurrent() {
9736 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9737
9738 if (container) {
9739 if (!this.current[container]) {
9740 return false;
9741 }
9742
9743 return this.current[container];
9744 }
9745
9746 return this.current;
9747 }
9748 /**
9749 * Function getCurrentArgs().
9750 *
9751 * Receive currently running command args.
9752 *
9753 * @param {string} container
9754 *
9755 * @returns {{}|boolean|*}
9756 */
9757
9758 }, {
9759 key: "getCurrentArgs",
9760 value: function getCurrentArgs() {
9761 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9762
9763 if (container) {
9764 if (!this.currentArgs[container]) {
9765 return false;
9766 }
9767
9768 return this.currentArgs[container];
9769 }
9770
9771 return this.currentArgs;
9772 }
9773 /**
9774 * Function getCurrentFirst().
9775 *
9776 * Receive first command that currently running.
9777 *
9778 * @returns {string}
9779 */
9780
9781 }, {
9782 key: "getCurrentFirst",
9783 value: function getCurrentFirst() {
9784 return (0, _values.default)(this.current)[0];
9785 }
9786 /**
9787 * Function getCurrentLast().
9788 *
9789 * Receive last command that currently running.
9790 *
9791 * @returns {string}
9792 */
9793
9794 }, {
9795 key: "getCurrentLast",
9796 value: function getCurrentLast() {
9797 var current = (0, _values.default)(this.current);
9798 return current[current.length - 1];
9799 }
9800 /**
9801 * Function getCurrentFirstTrace().
9802 *
9803 * Receive first command in trace that currently running
9804 *
9805 * @returns {string}
9806 */
9807
9808 }, {
9809 key: "getCurrentFirstTrace",
9810 value: function getCurrentFirstTrace() {
9811 return this.currentTrace[0];
9812 }
9813 /**
9814 * Function beforeRun().
9815 *
9816 * @param {string} command
9817 * @param {} args
9818 *
9819 * @returns {boolean} dependency result
9820 */
9821
9822 }, {
9823 key: "beforeRun",
9824 value: function beforeRun(command) {
9825 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9826
9827 if (!this.commands[command]) {
9828 this.error("`".concat(command, "` not found."));
9829 }
9830
9831 this.currentTrace.push(command);
9832 return this.getComponent(command).dependency(command, args);
9833 }
9834 /**
9835 * Function run().
9836 *
9837 * Runs a command.
9838 *
9839 * @param {string} command
9840 * @param {{}} args
9841 *
9842 * @returns {boolean|*} results
9843 */
9844
9845 }, {
9846 key: "run",
9847 value: function run(command) {
9848 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9849
9850 if (!this.beforeRun(command, args)) {
9851 return false;
9852 }
9853
9854 var component = this.getComponent(command),
9855 container = component.getRootContainer();
9856 this.current[container] = command;
9857 this.currentArgs[container] = args;
9858 this.trigger('run:before', component, command, args);
9859
9860 if (args.onBefore) {
9861 args.onBefore.apply(component, [args]);
9862 }
9863
9864 var results = this.commands[command].apply(component, [args]); // TODO: Consider add results to `$e.devTools`.
9865
9866 if (args.onAfter) {
9867 args.onAfter.apply(component, [args, results]);
9868 }
9869
9870 this.trigger('run:after', component, command, args, results);
9871 this.afterRun(command);
9872
9873 if (false === args.returnValue) {
9874 return true;
9875 }
9876
9877 return results;
9878 }
9879 /**
9880 * Function runShortcut().
9881 *
9882 * Run shortcut.
9883 *
9884 * It's separated in order to allow override.
9885 *
9886 * @param {string} command
9887 * @param {*} event
9888 *
9889 * @returns {boolean|*}
9890 */
9891
9892 }, {
9893 key: "runShortcut",
9894 value: function runShortcut(command, event) {
9895 return this.run(command, event);
9896 }
9897 /**
9898 * Function afterRun().
9899 *
9900 * Method fired after the command runs.
9901 *
9902 * @param {string} command
9903 */
9904
9905 }, {
9906 key: "afterRun",
9907 value: function afterRun(command) {
9908 var component = this.getComponent(command),
9909 container = component.getRootContainer();
9910 this.currentTrace.pop();
9911 delete this.current[container];
9912 delete this.currentArgs[container];
9913 }
9914 /**
9915 * Function error().
9916 *
9917 * Throws error.
9918 *
9919 * @throw {Error}
9920 *
9921 * @param {string} message
9922 */
9923
9924 }, {
9925 key: "error",
9926 value: function error(message) {
9927 throw Error("Commands: ".concat(message));
9928 }
9929 }]);
9930 return Commands;
9931 }(_commands.default);
9932
9933 exports.default = Commands;
9934
9935 /***/ }),
9936 /* 356 */
9937 /***/ (function(module, exports, __webpack_require__) {
9938
9939 "use strict";
9940
9941
9942 var _interopRequireDefault = __webpack_require__(0);
9943
9944 var _Object$defineProperty = __webpack_require__(1);
9945
9946 _Object$defineProperty(exports, "__esModule", {
9947 value: true
9948 });
9949
9950 exports.default = exports.Dependency = void 0;
9951
9952 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9953
9954 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9955
9956 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9957
9958 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9959
9960 var _base = _interopRequireDefault(__webpack_require__(289));
9961
9962 var Dependency = /*#__PURE__*/function (_Base) {
9963 (0, _inherits2.default)(Dependency, _Base);
9964
9965 var _super = (0, _createSuper2.default)(Dependency);
9966
9967 function Dependency() {
9968 (0, _classCallCheck2.default)(this, Dependency);
9969 return _super.apply(this, arguments);
9970 }
9971
9972 (0, _createClass2.default)(Dependency, [{
9973 key: "register",
9974 value: function register() {
9975 $e.hooks.registerDataDependency(this);
9976 }
9977 }]);
9978 return Dependency;
9979 }(_base.default);
9980
9981 exports.Dependency = Dependency;
9982 var _default = Dependency;
9983 exports.default = _default;
9984
9985 /***/ }),
9986 /* 357 */,
9987 /* 358 */,
9988 /* 359 */,
9989 /* 360 */,
9990 /* 361 */,
9991 /* 362 */,
9992 /* 363 */,
9993 /* 364 */,
9994 /* 365 */,
9995 /* 366 */,
9996 /* 367 */,
9997 /* 368 */,
9998 /* 369 */,
9999 /* 370 */,
10000 /* 371 */,
10001 /* 372 */,
10002 /* 373 */,
10003 /* 374 */,
10004 /* 375 */,
10005 /* 376 */,
10006 /* 377 */,
10007 /* 378 */,
10008 /* 379 */,
10009 /* 380 */,
10010 /* 381 */,
10011 /* 382 */,
10012 /* 383 */,
10013 /* 384 */,
10014 /* 385 */,
10015 /* 386 */,
10016 /* 387 */,
10017 /* 388 */,
10018 /* 389 */,
10019 /* 390 */,
10020 /* 391 */,
10021 /* 392 */,
10022 /* 393 */,
10023 /* 394 */,
10024 /* 395 */,
10025 /* 396 */,
10026 /* 397 */,
10027 /* 398 */,
10028 /* 399 */,
10029 /* 400 */,
10030 /* 401 */,
10031 /* 402 */,
10032 /* 403 */,
10033 /* 404 */,
10034 /* 405 */,
10035 /* 406 */
10036 /***/ (function(module, exports, __webpack_require__) {
10037
10038 "use strict";
10039
10040
10041 var _interopRequireDefault = __webpack_require__(0);
10042
10043 var _Object$defineProperty = __webpack_require__(1);
10044
10045 _Object$defineProperty(exports, "__esModule", {
10046 value: true
10047 });
10048
10049 exports.default = exports.NotFoundError = void 0;
10050
10051 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10052
10053 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10054
10055 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10056
10057 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10058
10059 var _baseError = _interopRequireDefault(__webpack_require__(326));
10060
10061 var NotFoundError = /*#__PURE__*/function (_BaseError) {
10062 (0, _inherits2.default)(NotFoundError, _BaseError);
10063
10064 var _super = (0, _createSuper2.default)(NotFoundError);
10065
10066 function NotFoundError() {
10067 (0, _classCallCheck2.default)(this, NotFoundError);
10068 return _super.apply(this, arguments);
10069 }
10070
10071 (0, _createClass2.default)(NotFoundError, [{
10072 key: "notify",
10073 value: function notify() {
10074 elementorCommon.helpers.consoleWarn(this.message);
10075 }
10076 }], [{
10077 key: "getStatus",
10078 value: function getStatus() {
10079 return 404;
10080 }
10081 }]);
10082 return NotFoundError;
10083 }(_baseError.default);
10084
10085 exports.NotFoundError = NotFoundError;
10086 var _default = NotFoundError;
10087 exports.default = _default;
10088
10089 /***/ }),
10090 /* 407 */
10091 /***/ (function(module, exports, __webpack_require__) {
10092
10093 "use strict";
10094
10095
10096 var _interopRequireDefault = __webpack_require__(0);
10097
10098 var _Object$defineProperty = __webpack_require__(1);
10099
10100 _Object$defineProperty(exports, "__esModule", {
10101 value: true
10102 });
10103
10104 exports.default = exports.DefaultError = void 0;
10105
10106 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10107
10108 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10109
10110 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10111
10112 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10113
10114 var _baseError = _interopRequireDefault(__webpack_require__(326));
10115
10116 var DefaultError = /*#__PURE__*/function (_BaseError) {
10117 (0, _inherits2.default)(DefaultError, _BaseError);
10118
10119 var _super = (0, _createSuper2.default)(DefaultError);
10120
10121 function DefaultError() {
10122 (0, _classCallCheck2.default)(this, DefaultError);
10123 return _super.apply(this, arguments);
10124 }
10125
10126 (0, _createClass2.default)(DefaultError, null, [{
10127 key: "getStatus",
10128 value: function getStatus() {
10129 return 0;
10130 }
10131 }]);
10132 return DefaultError;
10133 }(_baseError.default);
10134
10135 exports.DefaultError = DefaultError;
10136 var _default = DefaultError;
10137 exports.default = _default;
10138
10139 /***/ }),
10140 /* 408 */,
10141 /* 409 */,
10142 /* 410 */,
10143 /* 411 */,
10144 /* 412 */,
10145 /* 413 */,
10146 /* 414 */,
10147 /* 415 */,
10148 /* 416 */
10149 /***/ (function(module, exports, __webpack_require__) {
10150
10151 "use strict";
10152
10153
10154 var _interopRequireDefault = __webpack_require__(0);
10155
10156 var _Object$defineProperty = __webpack_require__(1);
10157
10158 _Object$defineProperty(exports, "__esModule", {
10159 value: true
10160 });
10161
10162 exports.default = void 0;
10163
10164 var _keys = _interopRequireDefault(__webpack_require__(25));
10165
10166 var _values = _interopRequireDefault(__webpack_require__(54));
10167
10168 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10169
10170 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10171
10172 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10173
10174 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10175
10176 var HooksBase = /*#__PURE__*/function (_elementorModules$Mod) {
10177 (0, _inherits2.default)(HooksBase, _elementorModules$Mod);
10178
10179 var _super = (0, _createSuper2.default)(HooksBase);
10180
10181 /**
10182 * Function constructor().
10183 *
10184 * Create hooks base.
10185 *
10186 * @param {{}} args
10187 */
10188 function HooksBase() {
10189 var _this;
10190
10191 (0, _classCallCheck2.default)(this, HooksBase);
10192
10193 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10194 args[_key] = arguments[_key];
10195 }
10196
10197 _this = _super.call.apply(_super, [this].concat(args));
10198 /**
10199 * Current command.
10200 *
10201 * @type {string}
10202 */
10203
10204 _this.current = '';
10205 /**
10206 * Array of ids which in use.
10207 *
10208 * @type {Array}
10209 */
10210
10211 _this.usedIds = [];
10212 /**
10213 * Object of callbacks that was bound by container type.
10214 *
10215 * @type {{}}
10216 */
10217
10218 _this.callbacks = {
10219 after: {},
10220 catch: {}
10221 };
10222 /**
10223 * Object of depth.
10224 *
10225 * @type {{}}
10226 */
10227
10228 _this.depth = {
10229 after: {},
10230 catch: {}
10231 };
10232 _this.callbacksFlatList = {};
10233 return _this;
10234 }
10235
10236 (0, _createClass2.default)(HooksBase, [{
10237 key: "activate",
10238 value: function activate() {
10239 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
10240 callback.activate();
10241 });
10242 }
10243 }, {
10244 key: "deactivate",
10245 value: function deactivate() {
10246 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
10247 callback.deactivate();
10248 });
10249 }
10250 /**
10251 * Function getType().
10252 *
10253 * Returns type eg: ( event, hook, etc ... ).
10254 *
10255 * @returns {string} type
10256 */
10257
10258 }, {
10259 key: "getType",
10260 value: function getType() {
10261 elementorModules.forceMethodImplementation();
10262 }
10263 }, {
10264 key: "get",
10265 value: function get(id) {
10266 return this.callbacksFlatList[id];
10267 }
10268 /**
10269 * Function getAll().
10270 *
10271 * Return all possible callbacks.
10272 *
10273 * @param {boolean} flat
10274 *
10275 * @returns {{}}
10276 */
10277
10278 }, {
10279 key: "getAll",
10280 value: function getAll() {
10281 var _this2 = this;
10282
10283 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
10284
10285 if (flat) {
10286 return this.callbacksFlatList;
10287 }
10288
10289 var result = {};
10290 (0, _keys.default)(this.callbacks).forEach(function (event) {
10291 if (!result[event]) {
10292 result[event] = [];
10293 }
10294
10295 (0, _keys.default)(_this2.callbacks[event]).forEach(function (command) {
10296 result[event].push({
10297 command: command,
10298 callbacks: _this2.callbacks[event][command]
10299 });
10300 });
10301 });
10302 return result;
10303 }
10304 /**
10305 * Function getCurrent();
10306 *
10307 * Return current command.
10308 *
10309 * @returns {string}
10310 */
10311
10312 }, {
10313 key: "getCurrent",
10314 value: function getCurrent() {
10315 return this.current;
10316 }
10317 /**
10318 * Function getUsedIds().
10319 *
10320 * Returns the current used ids.
10321 *
10322 * @returns {Array}
10323 */
10324
10325 }, {
10326 key: "getUsedIds",
10327 value: function getUsedIds() {
10328 return this.usedIds;
10329 }
10330 /**
10331 * Function getCallbacks().
10332 *
10333 * Get available callbacks for specific event and command.
10334 *
10335 * @param {string} event
10336 * @param {string} command
10337 *
10338 * @returns {(array|boolean)} callbacks
10339 */
10340
10341 }, {
10342 key: "getCallbacks",
10343 value: function getCallbacks(event, command, args) {
10344 var _args$containers = args.containers,
10345 containers = _args$containers === void 0 ? [args.container] : _args$containers,
10346 containerType = containers[0] ? containers[0].type : false;
10347 var callbacks = [];
10348
10349 if (this.callbacks[event] && this.callbacks[event][command]) {
10350 if (containerType && this.callbacks[event][command][containerType]) {
10351 callbacks = callbacks.concat(this.callbacks[event][command][containerType]);
10352 }
10353
10354 if (this.callbacks[event][command].all) {
10355 callbacks = callbacks.concat(this.callbacks[event][command].all);
10356 }
10357 }
10358
10359 if (callbacks.length) {
10360 return callbacks;
10361 }
10362
10363 return false;
10364 }
10365 /**
10366 * function checkEvent().
10367 *
10368 * Validate if the event is available.
10369 *
10370 * @param {string} event
10371 */
10372
10373 }, {
10374 key: "checkEvent",
10375 value: function checkEvent(event) {
10376 if (-1 === (0, _keys.default)(this.callbacks).indexOf(event)) {
10377 throw Error("".concat(this.getType(), ": '").concat(event, "' is not available."));
10378 }
10379 }
10380 /**
10381 * Function checkInstance().
10382 *
10383 * Validate given instance.
10384 *
10385 * @param {HookBase} instance
10386 */
10387
10388 }, {
10389 key: "checkInstance",
10390 value: function checkInstance(instance) {
10391 if (instance.getType() !== this.getType()) {
10392 throw new Error("invalid instance, please use: 'elementor-api/modules/hook-base.js'. ");
10393 }
10394 }
10395 /**
10396 * Function checkId().
10397 *
10398 * Validate if the id is not used before.
10399 *
10400 * @param {string} id
10401 */
10402
10403 }, {
10404 key: "checkId",
10405 value: function checkId(id) {
10406 if (-1 !== this.usedIds.indexOf(id)) {
10407 throw Error("id: '".concat(id, "' is already in use."));
10408 }
10409 }
10410 /**
10411 * Function shouldRun().
10412 *
10413 * Determine if the event should run.
10414 *
10415 * @param {array} callbacks
10416 *
10417 * @return {boolean}
10418 *
10419 * @throw {Error}
10420 */
10421
10422 }, {
10423 key: "shouldRun",
10424 value: function shouldRun(callbacks) {
10425 return !!callbacks && callbacks.length;
10426 }
10427 /**
10428 * Function register().
10429 *
10430 * Register the callback instance.
10431 *
10432 * @param {string} event
10433 * @param {HookBase} instance
10434 *
10435 * @returns {{}} Created callback
10436 */
10437
10438 }, {
10439 key: "register",
10440 value: function register(event, instance) {
10441 var command = instance.getCommand(),
10442 id = instance.getId(),
10443 containerType = instance.getContainerType();
10444 this.checkEvent(event);
10445 this.checkInstance(instance);
10446 this.checkId(id);
10447 return this.registerCallback(id, event, command, instance, containerType);
10448 }
10449 /**
10450 * Function registerCallback().
10451 *
10452 * Register callback.
10453 *
10454 * @param {string} id
10455 * @param {string} event
10456 * @param {string} command
10457 * @param {HookBase} instance
10458 * @param {string} containerType
10459 *
10460 * TODO: Consider replace with typedef.
10461 * @returns {{callback: *, id: *, isActive: boolean}}
10462 */
10463
10464 }, {
10465 key: "registerCallback",
10466 value: function registerCallback(id, event, command, instance, containerType) {
10467 if (!this.callbacks[event][command]) {
10468 this.callbacks[event][command] = [];
10469 } // Save used id(s).
10470
10471
10472 this.usedIds.push(id);
10473
10474 if (!this.callbacks[event][command]) {
10475 this.callbacks[event][command] = {};
10476 } // TODO: Create HookCallback class/type.
10477
10478
10479 var callback = {
10480 id: id,
10481 callback: instance.run.bind(instance),
10482 isActive: true,
10483 activate: function activate() {
10484 this.isActive = true;
10485 },
10486 deactivate: function deactivate() {
10487 this.isActive = false;
10488 }
10489 };
10490
10491 if (containerType) {
10492 if (!this.callbacks[event][command][containerType]) {
10493 this.callbacks[event][command][containerType] = [];
10494 }
10495
10496 this.callbacks[event][command][containerType].push(callback);
10497 } else {
10498 if (!this.callbacks[event][command].all) {
10499 this.callbacks[event][command].all = [];
10500 }
10501
10502 this.callbacks[event][command].all.push(callback);
10503 }
10504
10505 this.callbacksFlatList[callback.id] = callback;
10506 return callback;
10507 }
10508 /**
10509 * Function run().
10510 *
10511 * Run the callbacks.
10512 *
10513 * @param {string} event
10514 * @param {string} command
10515 * @param {{}} args
10516 * @param {*} result
10517 *
10518 * @returns {*}
10519 */
10520
10521 }, {
10522 key: "run",
10523 value: function run(event, command, args) {
10524 var result = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
10525 var callbacks = this.getCallbacks(event, command, args);
10526
10527 if (this.shouldRun(callbacks)) {
10528 this.current = command;
10529 this.onRun(command, args, event);
10530 return this.runCallbacks(event, command, callbacks, args, result);
10531 }
10532
10533 return false;
10534 }
10535 /**
10536 * Function runCallbacks().
10537 *
10538 * Run's the given callbacks.
10539 *
10540 * @param {string} event
10541 * @param {string} command
10542 * @param {array} callbacks
10543 * @param {{}} args
10544 * @param {[]} result
10545 */
10546
10547 }, {
10548 key: "runCallbacks",
10549 value: function runCallbacks(event, command, callbacks, args, result) {
10550 var callbacksResult = [];
10551
10552 for (var i in callbacks) {
10553 var callback = callbacks[i];
10554
10555 if (!callback.isActive) {
10556 continue;
10557 } // If not exist, set zero.
10558
10559
10560 if (undefined === this.depth[event][callback.id]) {
10561 this.depth[event][callback.id] = 0;
10562 }
10563
10564 this.depth[event][callback.id]++; // Prevent recursive hooks.
10565
10566 if (1 === this.depth[event][callback.id]) {
10567 this.onCallback(command, args, event, callback.id);
10568
10569 try {
10570 var callbackResult = this.runCallback(event, callback, args, result);
10571
10572 if (!callbackResult) {
10573 throw Error("Callback failed, event: '".concat(event, "'"));
10574 }
10575
10576 callbacksResult.push(callbackResult);
10577 } catch (e) {
10578 // If its 'Hook-Break' then parent `try {}` will handle it.
10579 if (e instanceof $e.modules.HookBreak) {
10580 throw e;
10581 }
10582
10583 elementorCommon.helpers.consoleError(e);
10584 }
10585 }
10586
10587 this.depth[event][callback.id]--;
10588 }
10589
10590 return callbacksResult;
10591 }
10592 /**
10593 * Function runCallback().
10594 *
10595 * Run's the given callback.
10596 *
10597 * @param {string} event
10598 * @param {{}} callback
10599 * @param {{}} args
10600 * @param {*} result
10601 *
10602 * @returns {*}
10603 *
10604 * @throw {Error}
10605 */
10606
10607 }, {
10608 key: "runCallback",
10609 value: function runCallback(event, callback, args, result) {
10610 // eslint-disable-line no-unused-vars
10611 elementorModules.forceMethodImplementation();
10612 }
10613 /**
10614 * Function onRun().
10615 *
10616 * Called before run a set of callbacks.
10617 *
10618 * @param {string} command
10619 * @param {{}} args
10620 * @param {string} event
10621 *
10622 * @throw {Error}
10623 */
10624
10625 }, {
10626 key: "onRun",
10627 value: function onRun(command, args, event) {
10628 // eslint-disable-line no-unused-vars
10629 elementorModules.forceMethodImplementation();
10630 }
10631 /**
10632 * Function onCallback().
10633 *
10634 * Called before a single callback.
10635 *
10636 * @param {string} command
10637 * @param {{}} args
10638 * @param {string} event
10639 * @param {string} id
10640 *
10641 * @throw {Error}
10642 */
10643
10644 }, {
10645 key: "onCallback",
10646 value: function onCallback(command, args, event, id) {
10647 // eslint-disable-line no-unused-vars
10648 elementorModules.forceMethodImplementation();
10649 }
10650 }]);
10651 return HooksBase;
10652 }(elementorModules.Module);
10653
10654 exports.default = HooksBase;
10655
10656 /***/ }),
10657 /* 417 */,
10658 /* 418 */,
10659 /* 419 */,
10660 /* 420 */,
10661 /* 421 */,
10662 /* 422 */,
10663 /* 423 */,
10664 /* 424 */,
10665 /* 425 */,
10666 /* 426 */,
10667 /* 427 */,
10668 /* 428 */,
10669 /* 429 */,
10670 /* 430 */,
10671 /* 431 */,
10672 /* 432 */,
10673 /* 433 */,
10674 /* 434 */,
10675 /* 435 */,
10676 /* 436 */,
10677 /* 437 */,
10678 /* 438 */,
10679 /* 439 */,
10680 /* 440 */,
10681 /* 441 */,
10682 /* 442 */,
10683 /* 443 */,
10684 /* 444 */,
10685 /* 445 */,
10686 /* 446 */,
10687 /* 447 */,
10688 /* 448 */,
10689 /* 449 */,
10690 /* 450 */,
10691 /* 451 */,
10692 /* 452 */,
10693 /* 453 */,
10694 /* 454 */,
10695 /* 455 */,
10696 /* 456 */,
10697 /* 457 */,
10698 /* 458 */,
10699 /* 459 */,
10700 /* 460 */,
10701 /* 461 */,
10702 /* 462 */,
10703 /* 463 */,
10704 /* 464 */,
10705 /* 465 */,
10706 /* 466 */,
10707 /* 467 */,
10708 /* 468 */,
10709 /* 469 */,
10710 /* 470 */,
10711 /* 471 */,
10712 /* 472 */,
10713 /* 473 */,
10714 /* 474 */,
10715 /* 475 */,
10716 /* 476 */,
10717 /* 477 */,
10718 /* 478 */,
10719 /* 479 */,
10720 /* 480 */,
10721 /* 481 */,
10722 /* 482 */,
10723 /* 483 */,
10724 /* 484 */,
10725 /* 485 */,
10726 /* 486 */,
10727 /* 487 */,
10728 /* 488 */,
10729 /* 489 */,
10730 /* 490 */,
10731 /* 491 */,
10732 /* 492 */,
10733 /* 493 */,
10734 /* 494 */,
10735 /* 495 */,
10736 /* 496 */,
10737 /* 497 */,
10738 /* 498 */,
10739 /* 499 */,
10740 /* 500 */,
10741 /* 501 */,
10742 /* 502 */,
10743 /* 503 */,
10744 /* 504 */,
10745 /* 505 */,
10746 /* 506 */,
10747 /* 507 */,
10748 /* 508 */,
10749 /* 509 */,
10750 /* 510 */,
10751 /* 511 */,
10752 /* 512 */,
10753 /* 513 */,
10754 /* 514 */,
10755 /* 515 */,
10756 /* 516 */,
10757 /* 517 */,
10758 /* 518 */,
10759 /* 519 */,
10760 /* 520 */,
10761 /* 521 */,
10762 /* 522 */,
10763 /* 523 */,
10764 /* 524 */,
10765 /* 525 */,
10766 /* 526 */,
10767 /* 527 */,
10768 /* 528 */,
10769 /* 529 */,
10770 /* 530 */,
10771 /* 531 */,
10772 /* 532 */,
10773 /* 533 */,
10774 /* 534 */,
10775 /* 535 */,
10776 /* 536 */,
10777 /* 537 */,
10778 /* 538 */,
10779 /* 539 */,
10780 /* 540 */,
10781 /* 541 */,
10782 /* 542 */,
10783 /* 543 */,
10784 /* 544 */,
10785 /* 545 */,
10786 /* 546 */,
10787 /* 547 */,
10788 /* 548 */,
10789 /* 549 */,
10790 /* 550 */,
10791 /* 551 */,
10792 /* 552 */,
10793 /* 553 */,
10794 /* 554 */,
10795 /* 555 */,
10796 /* 556 */,
10797 /* 557 */,
10798 /* 558 */,
10799 /* 559 */,
10800 /* 560 */,
10801 /* 561 */,
10802 /* 562 */,
10803 /* 563 */,
10804 /* 564 */,
10805 /* 565 */,
10806 /* 566 */,
10807 /* 567 */,
10808 /* 568 */,
10809 /* 569 */,
10810 /* 570 */,
10811 /* 571 */,
10812 /* 572 */,
10813 /* 573 */,
10814 /* 574 */,
10815 /* 575 */,
10816 /* 576 */,
10817 /* 577 */,
10818 /* 578 */,
10819 /* 579 */,
10820 /* 580 */,
10821 /* 581 */,
10822 /* 582 */,
10823 /* 583 */,
10824 /* 584 */,
10825 /* 585 */,
10826 /* 586 */,
10827 /* 587 */,
10828 /* 588 */,
10829 /* 589 */,
10830 /* 590 */,
10831 /* 591 */,
10832 /* 592 */,
10833 /* 593 */,
10834 /* 594 */,
10835 /* 595 */,
10836 /* 596 */,
10837 /* 597 */,
10838 /* 598 */,
10839 /* 599 */,
10840 /* 600 */,
10841 /* 601 */,
10842 /* 602 */,
10843 /* 603 */,
10844 /* 604 */,
10845 /* 605 */,
10846 /* 606 */,
10847 /* 607 */,
10848 /* 608 */,
10849 /* 609 */,
10850 /* 610 */,
10851 /* 611 */,
10852 /* 612 */,
10853 /* 613 */,
10854 /* 614 */,
10855 /* 615 */,
10856 /* 616 */,
10857 /* 617 */,
10858 /* 618 */,
10859 /* 619 */,
10860 /* 620 */,
10861 /* 621 */,
10862 /* 622 */,
10863 /* 623 */,
10864 /* 624 */,
10865 /* 625 */,
10866 /* 626 */,
10867 /* 627 */,
10868 /* 628 */,
10869 /* 629 */,
10870 /* 630 */,
10871 /* 631 */,
10872 /* 632 */,
10873 /* 633 */,
10874 /* 634 */
10875 /***/ (function(module, exports, __webpack_require__) {
10876
10877 "use strict";
10878
10879
10880 var _interopRequireDefault = __webpack_require__(0);
10881
10882 var _Object$defineProperty = __webpack_require__(1);
10883
10884 _Object$defineProperty(exports, "__esModule", {
10885 value: true
10886 });
10887
10888 exports.default = void 0;
10889
10890 var _stringify = _interopRequireDefault(__webpack_require__(207));
10891
10892 var _keys = _interopRequireDefault(__webpack_require__(25));
10893
10894 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10895
10896 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10897
10898 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10899
10900 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10901
10902 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
10903 (0, _inherits2.default)(_default, _elementorModules$Mod);
10904
10905 var _super = (0, _createSuper2.default)(_default);
10906
10907 function _default() {
10908 (0, _classCallCheck2.default)(this, _default);
10909 return _super.apply(this, arguments);
10910 }
10911
10912 (0, _createClass2.default)(_default, [{
10913 key: "get",
10914 value: function get(key, options) {
10915 options = options || {};
10916 var storage;
10917
10918 try {
10919 storage = options.session ? sessionStorage : localStorage;
10920 } catch (e) {
10921 return key ? undefined : {};
10922 }
10923
10924 var elementorStorage = storage.getItem('elementor');
10925
10926 if (elementorStorage) {
10927 elementorStorage = JSON.parse(elementorStorage);
10928 } else {
10929 elementorStorage = {};
10930 }
10931
10932 if (!elementorStorage.__expiration) {
10933 elementorStorage.__expiration = {};
10934 }
10935
10936 var expiration = elementorStorage.__expiration;
10937 var expirationToCheck = [];
10938
10939 if (key) {
10940 if (expiration[key]) {
10941 expirationToCheck = [key];
10942 }
10943 } else {
10944 expirationToCheck = (0, _keys.default)(expiration);
10945 }
10946
10947 var entryExpired = false;
10948 expirationToCheck.forEach(function (expirationKey) {
10949 if (new Date(expiration[expirationKey]) < new Date()) {
10950 delete elementorStorage[expirationKey];
10951 delete expiration[expirationKey];
10952 entryExpired = true;
10953 }
10954 });
10955
10956 if (entryExpired) {
10957 this.save(elementorStorage, options.session);
10958 }
10959
10960 if (key) {
10961 return elementorStorage[key];
10962 }
10963
10964 return elementorStorage;
10965 }
10966 }, {
10967 key: "set",
10968 value: function set(key, value, options) {
10969 options = options || {};
10970 var elementorStorage = this.get(null, options);
10971 elementorStorage[key] = value;
10972
10973 if (options.lifetimeInSeconds) {
10974 var date = new Date();
10975 date.setTime(date.getTime() + options.lifetimeInSeconds * 1000);
10976 elementorStorage.__expiration[key] = date.getTime();
10977 }
10978
10979 this.save(elementorStorage, options.session);
10980 }
10981 }, {
10982 key: "save",
10983 value: function save(object, session) {
10984 var storage;
10985
10986 try {
10987 storage = session ? sessionStorage : localStorage;
10988 } catch (e) {
10989 return;
10990 }
10991
10992 storage.setItem('elementor', (0, _stringify.default)(object));
10993 }
10994 }]);
10995 return _default;
10996 }(elementorModules.Module);
10997
10998 exports.default = _default;
10999
11000 /***/ }),
11001 /* 635 */
11002 /***/ (function(module, exports, __webpack_require__) {
11003
11004 "use strict";
11005
11006
11007 var _interopRequireDefault = __webpack_require__(0);
11008
11009 var _Object$defineProperty = __webpack_require__(1);
11010
11011 _Object$defineProperty(exports, "__esModule", {
11012 value: true
11013 });
11014
11015 exports.default = void 0;
11016
11017 __webpack_require__(61);
11018
11019 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11020
11021 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11022
11023 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
11024
11025 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11026
11027 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11028
11029 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
11030
11031 var CommandsBackwardsCompatibility = /*#__PURE__*/function (_elementorModules$Mod) {
11032 (0, _inherits2.default)(CommandsBackwardsCompatibility, _elementorModules$Mod);
11033
11034 var _super = (0, _createSuper2.default)(CommandsBackwardsCompatibility);
11035
11036 function CommandsBackwardsCompatibility() {
11037 var _this;
11038
11039 (0, _classCallCheck2.default)(this, CommandsBackwardsCompatibility);
11040
11041 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11042 args[_key] = arguments[_key];
11043 }
11044
11045 _this = _super.call.apply(_super, [this].concat(args));
11046 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "on", function (eventName, callback) {
11047 if ('run' === eventName) {
11048 var componentName = _this.getConstructorID(); // Regex takes the first letter and convert it to lower case.
11049
11050
11051 componentName = componentName.replace(/^./, function (val) {
11052 return val.toLowerCase();
11053 });
11054 elementorCommon.helpers.softDeprecated("$e.".concat(componentName, ".on( 'run', ... )"), '3.0.0', "$e.".concat(componentName, ".on( 'run:before', ... )"));
11055
11056 _this.onOrig('run:before', callback);
11057
11058 return;
11059 }
11060
11061 _this.onOrig(eventName, callback);
11062 });
11063 return _this;
11064 }
11065
11066 (0, _createClass2.default)(CommandsBackwardsCompatibility, [{
11067 key: "__construct",
11068 value: function __construct() {
11069 this.onOrig = this.on;
11070 }
11071 }]);
11072 return CommandsBackwardsCompatibility;
11073 }(elementorModules.Module);
11074
11075 exports.default = CommandsBackwardsCompatibility;
11076
11077 /***/ }),
11078 /* 636 */
11079 /***/ (function(module, exports, __webpack_require__) {
11080
11081 "use strict";
11082
11083
11084 var _interopRequireDefault = __webpack_require__(0);
11085
11086 var _Object$defineProperty = __webpack_require__(1);
11087
11088 _Object$defineProperty(exports, "__esModule", {
11089 value: true
11090 });
11091
11092 exports.default = exports.ALLMETHODS = exports.DELETABLE = exports.EDITABLE = exports.CREATABLE = exports.READABLE = void 0;
11093
11094 var _regenerator = _interopRequireDefault(__webpack_require__(84));
11095
11096 __webpack_require__(68);
11097
11098 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(85));
11099
11100 var _promise = _interopRequireDefault(__webpack_require__(134));
11101
11102 var _stringify = _interopRequireDefault(__webpack_require__(207));
11103
11104 __webpack_require__(302);
11105
11106 __webpack_require__(191);
11107
11108 __webpack_require__(80);
11109
11110 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(105));
11111
11112 var _entries = _interopRequireDefault(__webpack_require__(93));
11113
11114 __webpack_require__(24);
11115
11116 __webpack_require__(61);
11117
11118 __webpack_require__(82);
11119
11120 __webpack_require__(141);
11121
11122 __webpack_require__(183);
11123
11124 var _values = _interopRequireDefault(__webpack_require__(54));
11125
11126 var _assign = _interopRequireDefault(__webpack_require__(140));
11127
11128 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11129
11130 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11131
11132 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
11133
11134 var _get2 = _interopRequireDefault(__webpack_require__(26));
11135
11136 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
11137
11138 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11139
11140 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11141
11142 var _argsObject = _interopRequireDefault(__webpack_require__(227));
11143
11144 var _commands = _interopRequireDefault(__webpack_require__(355));
11145
11146 var _cache = _interopRequireDefault(__webpack_require__(637));
11147
11148 /**
11149 * @typedef {('create'|'delete'|'get'|'update')} DataTypes
11150 */
11151
11152 /**
11153 * @typedef {{}} RequestData
11154 * @property {ComponentBase} component
11155 * @property {string} command
11156 * @property {string} endpoint
11157 * @property {DataTypes} [type]
11158 * @property {{}} [args]
11159 * @property {number} [timestamp]
11160 * @property {('hit'|'miss')} [cache]
11161 */
11162
11163 /**
11164 * @typedef {object} ExtractedCommand
11165 * @property {string} command
11166 * @property {object} args
11167 */
11168 // TODO: Return it from the server. Original at WP_REST_Server.
11169 var READABLE = ['GET'],
11170 CREATABLE = ['POST'],
11171 EDITABLE = ['POST', 'PUT', 'PATCH'],
11172 DELETABLE = ['DELETE'],
11173 ALLMETHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
11174 exports.ALLMETHODS = ALLMETHODS;
11175 exports.DELETABLE = DELETABLE;
11176 exports.EDITABLE = EDITABLE;
11177 exports.CREATABLE = CREATABLE;
11178 exports.READABLE = READABLE;
11179
11180 var Data = /*#__PURE__*/function (_Commands) {
11181 (0, _inherits2.default)(Data, _Commands);
11182
11183 var _super = (0, _createSuper2.default)(Data);
11184
11185 function Data() {
11186 var _this;
11187
11188 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11189 (0, _classCallCheck2.default)(this, Data);
11190 _this = _super.call(this, args);
11191 _this.args = (0, _assign.default)(args, {
11192 namespace: 'elementor',
11193 version: '1'
11194 });
11195 _this.cache = new _cache.default((0, _assertThisInitialized2.default)(_this));
11196 _this.validatedRequests = {};
11197 _this.commandFormats = {};
11198 _this.baseEndpointAddress = '';
11199 var _this$args = _this.args,
11200 namespace = _this$args.namespace,
11201 version = _this$args.version;
11202 _this.baseEndpointAddress = "".concat(elementorCommon.config.urls.rest).concat(namespace, "/v").concat(version, "/");
11203 return _this;
11204 }
11205 /**
11206 * Function getHTTPMethod().
11207 *
11208 * Returns HTTP Method by type.
11209 *
11210 * @param {DataTypes} type
11211 *
11212 * @return {string|boolean}
11213 */
11214
11215
11216 (0, _createClass2.default)(Data, [{
11217 key: "getHTTPMethod",
11218 value: function getHTTPMethod(type) {
11219 switch (type) {
11220 case 'create':
11221 return 'POST';
11222
11223 case 'delete':
11224 return 'DELETE';
11225
11226 case 'get':
11227 return 'GET';
11228
11229 case 'update':
11230 return 'PUT';
11231 }
11232
11233 return false;
11234 }
11235 /**
11236 * Function getAllowedMethods().
11237 *
11238 * Returns allowed HTTP methods by type.
11239 *
11240 * @param {DataTypes} type
11241 *
11242 * @return {[string]|boolean}
11243 */
11244
11245 }, {
11246 key: "getAllowedMethods",
11247 value: function getAllowedMethods(type) {
11248 switch (type) {
11249 case 'create':
11250 return CREATABLE;
11251
11252 case 'delete':
11253 return DELETABLE;
11254
11255 case 'get':
11256 return READABLE;
11257
11258 case 'update':
11259 return EDITABLE;
11260 }
11261
11262 return false;
11263 }
11264 /**
11265 * Function commandToEndpoint().
11266 *
11267 * Convert command to endpoint.
11268 *
11269 * For example `component/command/{arg}` => `controller/endpoint/8`.
11270 *
11271 * TODO: Find a better solution.
11272 *
11273 * @param {string} command
11274 * @param {{}} args
11275 * @param {string|null} [format]
11276 *
11277 * @returns {string} endpoint
11278 */
11279
11280 }, {
11281 key: "commandToEndpoint",
11282 value: function commandToEndpoint(command, args) {
11283 var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
11284 var endpoint = command;
11285 var argsQueryLength = (args === null || args === void 0 ? void 0 : args.query) ? (0, _values.default)(args.query).length : 0;
11286
11287 if (argsQueryLength) {
11288 if (format && format.includes('/{')) {
11289 // Means command includes magic query arguments ( controller/endpoint/{whatever} ).
11290 var magicParams = format.split('/').filter(function (str) {
11291 return '{' === str.charAt(0);
11292 });
11293 magicParams.forEach(function (param) {
11294 // Remove the '{', '}'.
11295 param = param.replace('{', '');
11296 param = param.replace('}', '');
11297 var formatted = (0, _entries.default)(args.query).find(function (_ref) {
11298 var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
11299 key = _ref2[0];
11300
11301 return key === param;
11302 });
11303
11304 if (!formatted) {
11305 return;
11306 }
11307
11308 var key = formatted[0],
11309 value = formatted[1].toString(); // Replace magic params with values.
11310
11311 format = format.replace(new RegExp('{' + param + '}', 'g'), value);
11312 delete args.query[key];
11313 });
11314 endpoint = format;
11315 }
11316 } else if (format) {
11317 // No magic params, but still format,
11318 endpoint = format;
11319 } // If requested magic param does not exist in args, need to remove it to have fixed endpoint.
11320 // eg: 'documents/{documentId}/elements/{elementId}' and args { documentId: 4123 }.
11321 // result: 'documents/4123/elements'
11322
11323
11324 if (format && endpoint.includes('/{')) {
11325 endpoint = endpoint.substring(0, endpoint.indexOf('/{'));
11326 }
11327
11328 if (args.query && (0, _values.default)(args.query).length) {
11329 // Sorting since the endpoint later will be used as key to store the cache.
11330 var queryEntries = (0, _entries.default)(args.query).sort(function (_ref3, _ref4) {
11331 var _ref5 = (0, _slicedToArray2.default)(_ref3, 1),
11332 aKey = _ref5[0];
11333
11334 var _ref6 = (0, _slicedToArray2.default)(_ref4, 1),
11335 bKey = _ref6[0];
11336
11337 return aKey - bKey;
11338 } // Sort by param name.
11339 ); // `args.query` will become a part of GET params.
11340
11341 if (queryEntries.length) {
11342 endpoint += '?';
11343 queryEntries.forEach(function (_ref7) {
11344 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
11345 name = _ref8[0],
11346 value = _ref8[1];
11347
11348 // Replace the character '/' with the encoded version,
11349 // mostly because when saving this endpoint value to the cache it splits the url base on the '/' character.
11350 value = "".concat(value).replace(/\//g, '%2F');
11351 endpoint += name + '=' + value + '&';
11352 });
11353 } // If last character is '&' remove it.
11354
11355
11356 endpoint = endpoint.replace(/&$/, '');
11357 }
11358
11359 return endpoint;
11360 }
11361 /**
11362 * Function commandExtractArgs().
11363 *
11364 * If the command have query convert it to args.
11365 *
11366 * @param {string} command
11367 * @param {object} args
11368 *
11369 * @returns {ExtractedCommand} command
11370 */
11371
11372 }, {
11373 key: "commandExtractArgs",
11374 value: function commandExtractArgs(command) {
11375 var _command;
11376
11377 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11378
11379 if ((_command = command) === null || _command === void 0 ? void 0 : _command.includes('?')) {
11380 if (!args.query) {
11381 args.query = {};
11382 }
11383
11384 var commandParts = command.split('?'),
11385 pureCommand = commandParts[0],
11386 queryString = commandParts[1],
11387 query = new URLSearchParams(queryString);
11388 (0, _assign.default)(args.query, Object.fromEntries(query));
11389 command = pureCommand;
11390 }
11391
11392 return {
11393 command: command,
11394 args: args
11395 };
11396 }
11397 /**
11398 * Function validateRequestData().
11399 *
11400 * Validate request data requirements.
11401 *
11402 * @param {RequestData} requestData
11403 * @param {boolean} [requireArgsData]
11404 */
11405
11406 }, {
11407 key: "validateRequestData",
11408 value: function validateRequestData(requestData) {
11409 var requireArgsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
11410
11411 // Do not validate if its already valid.
11412 if (requestData.timestamp && this.validatedRequests[requestData.timestamp]) {
11413 return;
11414 }
11415
11416 var argsObject = new _argsObject.default(requestData);
11417 argsObject.requireArgument('component');
11418 argsObject.requireArgumentType('command', 'string');
11419 argsObject.requireArgumentType('endpoint', 'string');
11420
11421 if (requireArgsData) {
11422 argsObject.requireArgumentType('data', 'object', requestData.args);
11423 } // Ensure timestamp.
11424
11425
11426 if (!requestData.timestamp) {
11427 requestData.timestamp = new Date().getTime();
11428 }
11429
11430 this.validatedRequests[requestData.timestamp] = true;
11431 }
11432 /**
11433 * Function prepareHeaders().
11434 *
11435 * @param {RequestData} requestData
11436 *
11437 * @return {{}} params
11438 */
11439
11440 }, {
11441 key: "prepareHeaders",
11442 value: function prepareHeaders(requestData) {
11443 /* global wpApiSettings */
11444 var type = requestData.type,
11445 nonce = wpApiSettings.nonce,
11446 params = {
11447 credentials: 'include' // cookies is required for wp reset.
11448
11449 },
11450 headers = {
11451 'X-WP-Nonce': nonce
11452 };
11453 /**
11454 * Translate:
11455 * 'create, delete, get, update' to HTTP Methods:
11456 * 'GET, POST, PUT, PATCH, DELETE'
11457 */
11458
11459 var allowedMethods = this.getAllowedMethods(type),
11460 method = this.getHTTPMethod(type);
11461
11462 if ('GET' === method) {
11463 (0, _assign.default)(params, {
11464 headers: headers
11465 });
11466 } else if (allowedMethods) {
11467 var _requestData$args;
11468
11469 if (['POST', 'PUT'].includes(method) && !((_requestData$args = requestData.args) === null || _requestData$args === void 0 ? void 0 : _requestData$args.data)) {
11470 throw Error('Invalid requestData.args.data');
11471 }
11472
11473 (0, _assign.default)(headers, {
11474 'Content-Type': 'application/json'
11475 });
11476 (0, _assign.default)(params, {
11477 method: method,
11478 headers: headers,
11479 body: (0, _stringify.default)(requestData.args.data)
11480 });
11481 } else {
11482 throw Error("Invalid type: '".concat(type, "'"));
11483 }
11484
11485 return params;
11486 }
11487 /**
11488 * This method response for building a final endpoint,
11489 * the main problem is with plain permalink mode + command with query params that creates a weird url,
11490 * the current method should fix it.
11491 *
11492 * @param endpoint
11493 * @returns {string}
11494 */
11495
11496 }, {
11497 key: "prepareEndpoint",
11498 value: function prepareEndpoint(endpoint) {
11499 var splitUrl = endpoint.split('?'),
11500 path = splitUrl.shift();
11501 var url = this.baseEndpointAddress + path;
11502
11503 if (splitUrl.length) {
11504 var separator = url.includes('?') ? '&' : '?';
11505 url += separator + splitUrl.pop();
11506 }
11507
11508 return url;
11509 }
11510 /**
11511 * Function fetch().
11512 *
11513 * @param {RequestData} requestData
11514 * @param {function(input: RequestInfo, init?) : Promise<Response> } [fetchAPI]
11515 *
11516 * @return {{}} params
11517 */
11518
11519 }, {
11520 key: "fetch",
11521 value: function fetch(requestData) {
11522 var _requestData$args$opt,
11523 _this2 = this;
11524
11525 var fetchAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.fetch;
11526 requestData.cache = 'miss';
11527 var params = this.prepareHeaders(requestData),
11528 refresh = (_requestData$args$opt = requestData.args.options) === null || _requestData$args$opt === void 0 ? void 0 : _requestData$args$opt.refresh,
11529 getCache = 'get' === requestData.type && !refresh,
11530 saveCache = ['create', 'get'].includes(requestData.type) && !refresh;
11531
11532 if (getCache) {
11533 var cachePromise = this.cache.getAsync(requestData);
11534
11535 if (cachePromise) {
11536 return cachePromise;
11537 }
11538 }
11539
11540 return new _promise.default( /*#__PURE__*/function () {
11541 var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {
11542 var endpoint, request, response;
11543 return _regenerator.default.wrap(function _callee2$(_context2) {
11544 while (1) {
11545 switch (_context2.prev = _context2.next) {
11546 case 0:
11547 _context2.prev = 0;
11548 endpoint = _this2.prepareEndpoint(requestData.endpoint);
11549 request = fetchAPI(endpoint, params);
11550 _context2.next = 5;
11551 return request.then( /*#__PURE__*/function () {
11552 var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_response) {
11553 return _regenerator.default.wrap(function _callee$(_context) {
11554 while (1) {
11555 switch (_context.prev = _context.next) {
11556 case 0:
11557 if (_response.ok) {
11558 _context.next = 6;
11559 break;
11560 }
11561
11562 if (!_response.headers.get('content-type').includes('application/json')) {
11563 _context.next = 5;
11564 break;
11565 }
11566
11567 _context.next = 4;
11568 return _response.json();
11569
11570 case 4:
11571 _response = _context.sent;
11572
11573 case 5:
11574 throw _response;
11575
11576 case 6:
11577 return _context.abrupt("return", _response.json());
11578
11579 case 7:
11580 case "end":
11581 return _context.stop();
11582 }
11583 }
11584 }, _callee);
11585 }));
11586
11587 return function (_x3) {
11588 return _ref10.apply(this, arguments);
11589 };
11590 }());
11591
11592 case 5:
11593 response = _context2.sent;
11594
11595 // At this point, it got the resolved response from remote.
11596 // So load cache, and resolve it.
11597 if (saveCache) {
11598 _this2.cache.set(requestData, response);
11599 }
11600
11601 resolve(response);
11602 _context2.next = 13;
11603 break;
11604
11605 case 10:
11606 _context2.prev = 10;
11607 _context2.t0 = _context2["catch"](0);
11608 reject(_context2.t0);
11609
11610 case 13:
11611 case "end":
11612 return _context2.stop();
11613 }
11614 }
11615 }, _callee2, null, [[0, 10]]);
11616 }));
11617
11618 return function (_x, _x2) {
11619 return _ref9.apply(this, arguments);
11620 };
11621 }());
11622 }
11623 /**
11624 * Function getCache().
11625 *
11626 * @param {ComponentBase} component
11627 * @param {string} command
11628 * @param {{}} query
11629 *
11630 * @returns {{}}
11631 */
11632
11633 }, {
11634 key: "getCache",
11635 value: function getCache(component, command) {
11636 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11637 var args = {
11638 query: query
11639 };
11640 return this.cache.get({
11641 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11642 component: component,
11643 command: command,
11644 args: args
11645 });
11646 }
11647 /**
11648 * Function setCache().
11649 *
11650 * @param {ComponentBase} component
11651 * @param {string} command
11652 * @param {{}} query
11653 * @param {*} data
11654 */
11655
11656 }, {
11657 key: "setCache",
11658 value: function setCache(component, command, query, data) {
11659 var args = {
11660 query: query
11661 };
11662 this.cache.set({
11663 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11664 component: component,
11665 command: command,
11666 args: args
11667 }, data);
11668 }
11669 /**
11670 * Function updateCache().
11671 *
11672 * The difference between 'setCache' and 'updateCache' is update will only modify exist values.
11673 * and 'setCache' will create or update.
11674 *
11675 * @param {ComponentBase} component
11676 * @param {string} command
11677 * @param {{}} query
11678 * @param {*} data
11679 */
11680
11681 }, {
11682 key: "updateCache",
11683 value: function updateCache(component, command, query, data) {
11684 var args = {
11685 query: query,
11686 data: data
11687 };
11688 this.cache.update({
11689 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11690 component: component,
11691 command: command,
11692 args: args
11693 });
11694 }
11695 /**
11696 * Function deleteCache().
11697 *
11698 * @param {ComponentBase} component
11699 * @param {string} command
11700 * @param {{}} query
11701 */
11702
11703 }, {
11704 key: "deleteCache",
11705 value: function deleteCache(component, command) {
11706 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11707 var args = {
11708 query: query
11709 };
11710 this.cache.delete({
11711 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11712 component: component,
11713 command: command,
11714 args: args
11715 });
11716 }
11717 /**
11718 * Function registerFormat().
11719 *
11720 * Register's format for each command.
11721 *
11722 * @param {string} command
11723 * @param {string} format
11724 */
11725
11726 }, {
11727 key: "registerFormat",
11728 value: function registerFormat(command, format) {
11729 this.commandFormats[command] = format;
11730 }
11731 }, {
11732 key: "create",
11733 value: function create(command, data) {
11734 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11735 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11736 return this.run('create', command, {
11737 query: query,
11738 options: options,
11739 data: data
11740 });
11741 }
11742 }, {
11743 key: "delete",
11744 value: function _delete(command) {
11745 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11746 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11747 return this.run('delete', command, {
11748 query: query,
11749 options: options
11750 });
11751 }
11752 }, {
11753 key: "get",
11754 value: function get(command) {
11755 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11756 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11757 return this.run('get', command, {
11758 query: query,
11759 options: options
11760 });
11761 }
11762 }, {
11763 key: "update",
11764 value: function update(command, data) {
11765 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11766 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11767 return this.run('update', command, {
11768 query: query,
11769 options: options,
11770 data: data
11771 });
11772 }
11773 /**
11774 * @param {ComponentBase} component
11775 * @param {string} command
11776 * @param callback
11777 */
11778
11779 }, {
11780 key: "register",
11781 value: function register(component, command, callback) {
11782 (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "register", this).call(this, component, command, callback);
11783 var fullCommandName = component.getNamespace() + '/' + command,
11784 commandInstance = $e.commands.getCommandClass(fullCommandName),
11785 format = (commandInstance === null || commandInstance === void 0 ? void 0 : commandInstance.getEndpointFormat) ? commandInstance.getEndpointFormat() : false;
11786
11787 if (format) {
11788 $e.data.registerFormat(fullCommandName, format);
11789 }
11790 }
11791 /**
11792 * TODO: Add JSDOC typedef for args ( query and options ).
11793 *
11794 * @param {DataTypes} type
11795 * @param {string} command
11796 * @param {{}} args
11797 *
11798 * @return {*}
11799 */
11800
11801 }, {
11802 key: "run",
11803 value: function run(type, command, args) {
11804 args.options.type = type;
11805
11806 var _this$commandExtractA = this.commandExtractArgs(command, args);
11807
11808 command = _this$commandExtractA.command;
11809 args = _this$commandExtractA.args;
11810 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "run", this).call(this, command, args);
11811 }
11812 }, {
11813 key: "error",
11814 value: function error(message) {
11815 throw Error('Data commands: ' + message);
11816 }
11817 }]);
11818 return Data;
11819 }(_commands.default);
11820
11821 exports.default = Data;
11822
11823 /***/ }),
11824 /* 637 */
11825 /***/ (function(module, exports, __webpack_require__) {
11826
11827 "use strict";
11828
11829
11830 var _interopRequireDefault = __webpack_require__(0);
11831
11832 var _Object$defineProperty = __webpack_require__(1);
11833
11834 _Object$defineProperty(exports, "__esModule", {
11835 value: true
11836 });
11837
11838 exports.default = void 0;
11839
11840 var _typeof2 = _interopRequireDefault(__webpack_require__(50));
11841
11842 var _keys = _interopRequireDefault(__webpack_require__(25));
11843
11844 var _values = _interopRequireDefault(__webpack_require__(54));
11845
11846 __webpack_require__(141);
11847
11848 __webpack_require__(183);
11849
11850 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(105));
11851
11852 var _entries = _interopRequireDefault(__webpack_require__(93));
11853
11854 var _assign = _interopRequireDefault(__webpack_require__(140));
11855
11856 __webpack_require__(82);
11857
11858 __webpack_require__(61);
11859
11860 var _regenerator = _interopRequireDefault(__webpack_require__(84));
11861
11862 __webpack_require__(68);
11863
11864 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(85));
11865
11866 var _promise = _interopRequireDefault(__webpack_require__(134));
11867
11868 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11869
11870 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11871
11872 var _localStorage = _interopRequireDefault(__webpack_require__(638));
11873
11874 /**
11875 * TODO: Search common logic, create functions to reduce code size.
11876 */
11877 var Cache = /*#__PURE__*/function () {
11878 /**
11879 * Function constructor().
11880 *
11881 * Create cache.
11882 *
11883 * @param {Data} manager
11884 */
11885 function Cache(manager) {
11886 (0, _classCallCheck2.default)(this, Cache);
11887 this.manager = manager;
11888 this.storage = new _localStorage.default();
11889 }
11890 /**
11891 * Function getAsync().
11892 *
11893 * Receive from cache. the difference between getAsync() and get() is that receive return it as promise...
11894 * to fake fetch mechanism.
11895 *
11896 * @param {RequestData} requestData
11897 *
11898 * @return {(Promise|boolean)}
11899 */
11900
11901
11902 (0, _createClass2.default)(Cache, [{
11903 key: "getAsync",
11904 value: function getAsync(requestData) {
11905 var data = this.get(requestData);
11906
11907 if (null !== data) {
11908 // If data comes from cache, add 'cache = hit' to requestData.
11909 requestData.cache = 'hit';
11910 return new _promise.default( /*#__PURE__*/function () {
11911 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve) {
11912 return _regenerator.default.wrap(function _callee$(_context) {
11913 while (1) {
11914 switch (_context.prev = _context.next) {
11915 case 0:
11916 resolve(data);
11917
11918 case 1:
11919 case "end":
11920 return _context.stop();
11921 }
11922 }
11923 }, _callee);
11924 }));
11925
11926 return function (_x) {
11927 return _ref.apply(this, arguments);
11928 };
11929 }());
11930 } // TODO: Check if possible, always return promise and reject it.
11931
11932
11933 return false;
11934 }
11935 /**
11936 * Function set().
11937 *
11938 * set data to cache.
11939 *
11940 * The difference between set() and update() is that set, will modify the data anyway...
11941 * when update() will only modify exist objects/values.
11942 *
11943 * @param {RequestData} requestData
11944 * @param {*} data
11945 */
11946
11947 }, {
11948 key: "set",
11949 value: function set(requestData, data) {
11950 $e.data.validateRequestData(requestData);
11951 var componentName = requestData.component.getNamespace(),
11952 pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11953 pureEndpointParts = pureEndpoint.split('/');
11954 var newData = {}; // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'load(): deep'.
11955 // Analyze reaming endpoint.
11956
11957 if (pureEndpointParts.length && pureEndpoint !== componentName) {
11958 // Using reaming endpoint parts, to build new data object.
11959 var result = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11960 accumulator[pureEndpointPart] = {};
11961 return accumulator[pureEndpointPart];
11962 }, newData); // 'result' is equal to 'newData' with a deeper pointer, build based on 'pureEndpointParts' ( will effect newData ).
11963
11964 (0, _assign.default)(result, data);
11965 } else {
11966 newData = data;
11967 }
11968
11969 var oldData = this.storage.getItem(componentName); // When have old data, merge it recursively with newData using jQuery.extend().
11970
11971 if (oldData !== null) {
11972 newData = jQuery.extend(true, oldData, newData);
11973 }
11974
11975 this.storage.setItem(componentName, newData);
11976 }
11977 /**
11978 * Function get().
11979 *
11980 * Get from exist storage.
11981 *
11982 * @param {RequestData} requestData
11983 *
11984 * @return {{}}
11985 */
11986
11987 }, {
11988 key: "get",
11989 value: function get(requestData) {
11990 $e.data.validateRequestData(requestData);
11991 var componentName = requestData.component.getNamespace(),
11992 componentData = this.storage.getItem(componentName);
11993
11994 if (componentData !== null) {
11995 if (componentName === requestData.endpoint) {
11996 return componentData;
11997 } // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'get(): complex'.
11998 // Analyze reaming endpoint (Using reduce over endpoint parts, build the right index).
11999
12000
12001 var pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
12002 pureEndpointParts = pureEndpoint.split('/'),
12003 result = pureEndpointParts.reduce(function (accumulator, endpointPart) {
12004 if (accumulator && accumulator[endpointPart]) {
12005 return accumulator[endpointPart];
12006 }
12007 }, componentData); // Since $e.data.cache.receive will reject only if null is the result.
12008
12009 return result || null;
12010 }
12011
12012 return null;
12013 }
12014 /**
12015 * Function update().
12016 *
12017 * Update only already exist storage, runs over all storage
12018 *
12019 * @param {RequestData} requestData
12020 *
12021 * @return {boolean} is updated
12022 */
12023
12024 }, {
12025 key: "update",
12026 value: function update(requestData) {
12027 $e.data.validateRequestData(requestData, true);
12028 var endpoint = requestData.endpoint;
12029 var response = {}; // Simulate response from cache.
12030
12031 (0, _entries.default)(this.storage.getAll()).forEach(function (_ref2) {
12032 var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
12033 endpointKey = _ref3[0],
12034
12035 /*string*/
12036 endpointValue = _ref3[1];
12037
12038 if (endpointValue && endpoint.includes(endpointKey)) {
12039 // Assuming it is a specific endpoint.
12040 var oldData = endpointValue,
12041 pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
12042 pureEndpointParts = pureEndpoint.split('/'),
12043 isComponentUpdate = 1 === pureEndpointParts.length && endpointKey === requestData.endpoint && endpointKey === requestData.component.getNamespace(); // Component update or specific update?
12044
12045 if (isComponentUpdate) {
12046 response = jQuery.extend(true, oldData, requestData.args.data);
12047 } else {
12048 var oldSpecificData = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
12049 return accumulator[pureEndpointPart];
12050 }, oldData);
12051 response = jQuery.extend(true, oldSpecificData, requestData.args.data);
12052 }
12053 }
12054 }); // If response not found.
12055
12056 if (0 === (0, _values.default)(response).length) {
12057 return false;
12058 } // Update cache.
12059
12060
12061 this.set(requestData, response);
12062 return true;
12063 }
12064 /**
12065 * Function delete().
12066 *
12067 * Delete endpoint from storage.
12068 *
12069 * @param {RequestData} requestData
12070 *
12071 * @return {boolean} is deleted
12072 */
12073
12074 }, {
12075 key: "delete",
12076 value: function _delete(requestData) {
12077 $e.data.validateRequestData(requestData);
12078 var result = false;
12079 var componentName = requestData.component.getNamespace();
12080
12081 if (componentName !== requestData.endpoint) {
12082 var oldData = this.storage.getItem(componentName),
12083 newData = {};
12084
12085 if (null === oldData) {
12086 return false;
12087 }
12088
12089 var pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
12090 pureEndpointParts = pureEndpoint.split('/'),
12091 lastEndpointPart = pureEndpointParts[pureEndpointParts.length - 1];
12092 pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
12093 if (pureEndpointPart === lastEndpointPart) {
12094 // Null, means delete.
12095 accumulator[pureEndpointPart] = null;
12096 } else {
12097 accumulator[pureEndpointPart] = {};
12098 }
12099
12100 return accumulator[pureEndpointPart];
12101 }, newData);
12102
12103 if ((0, _keys.default)(oldData).length) {
12104 var deleteKeys = function deleteKeys(target, nullsObject) {
12105 if (nullsObject) {
12106 (0, _keys.default)(nullsObject).forEach(function (key) {
12107 if (nullsObject[key] && 'object' === (0, _typeof2.default)(nullsObject[key])) {
12108 deleteKeys(target[key], nullsObject[key]);
12109 } else if (null === nullsObject[key]) {
12110 delete target[key];
12111 result = true;
12112 }
12113 });
12114 } else {
12115 // Means need to clear all the object.
12116 (0, _keys.default)(target).forEach(function (key) {
12117 return delete target[key];
12118 });
12119 }
12120
12121 return target;
12122 };
12123
12124 this.storage.setItem(componentName, deleteKeys(oldData, newData));
12125 }
12126 } else {
12127 for (var key in this.storage.getAll()) {
12128 if (key === requestData.endpoint) {
12129 this.storage.removeItem(requestData.endpoint);
12130 result = true;
12131 break;
12132 }
12133 }
12134 }
12135
12136 return result;
12137 }
12138 }]);
12139 return Cache;
12140 }();
12141
12142 exports.default = Cache;
12143
12144 /***/ }),
12145 /* 638 */
12146 /***/ (function(module, exports, __webpack_require__) {
12147
12148 "use strict";
12149
12150
12151 var _interopRequireDefault = __webpack_require__(0);
12152
12153 var _Object$defineProperty = __webpack_require__(1);
12154
12155 _Object$defineProperty(exports, "__esModule", {
12156 value: true
12157 });
12158
12159 exports.default = void 0;
12160
12161 var _keys = _interopRequireDefault(__webpack_require__(25));
12162
12163 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12164
12165 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12166
12167 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12168
12169 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12170
12171 var _basePrefixStorage = _interopRequireDefault(__webpack_require__(639));
12172
12173 var LocalStorage = /*#__PURE__*/function (_BasePrefixStorage) {
12174 (0, _inherits2.default)(LocalStorage, _BasePrefixStorage);
12175
12176 var _super = (0, _createSuper2.default)(LocalStorage);
12177
12178 function LocalStorage() {
12179 (0, _classCallCheck2.default)(this, LocalStorage);
12180 return _super.call(this, localStorage);
12181 }
12182
12183 (0, _createClass2.default)(LocalStorage, [{
12184 key: "debug",
12185 value: function debug() {
12186 var entries = this.getAll(),
12187 ordered = {};
12188 (0, _keys.default)(entries).sort().forEach(function (key) {
12189 var value = entries[key];
12190 ordered[key] = value;
12191 });
12192 return ordered;
12193 }
12194 }]);
12195 return LocalStorage;
12196 }(_basePrefixStorage.default);
12197
12198 exports.default = LocalStorage;
12199
12200 /***/ }),
12201 /* 639 */
12202 /***/ (function(module, exports, __webpack_require__) {
12203
12204 "use strict";
12205
12206
12207 var _interopRequireDefault = __webpack_require__(0);
12208
12209 var _Object$defineProperty = __webpack_require__(1);
12210
12211 _Object$defineProperty(exports, "__esModule", {
12212 value: true
12213 });
12214
12215 exports.default = void 0;
12216
12217 __webpack_require__(61);
12218
12219 __webpack_require__(280);
12220
12221 var _keys = _interopRequireDefault(__webpack_require__(25));
12222
12223 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12224
12225 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12226
12227 var _get2 = _interopRequireDefault(__webpack_require__(26));
12228
12229 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
12230
12231 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12232
12233 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12234
12235 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
12236
12237 var _baseStorage = _interopRequireDefault(__webpack_require__(640));
12238
12239 var BasePrefixStorage = /*#__PURE__*/function (_BaseStorage) {
12240 (0, _inherits2.default)(BasePrefixStorage, _BaseStorage);
12241
12242 var _super = (0, _createSuper2.default)(BasePrefixStorage);
12243
12244 function BasePrefixStorage() {
12245 (0, _classCallCheck2.default)(this, BasePrefixStorage);
12246 return _super.apply(this, arguments);
12247 }
12248
12249 (0, _createClass2.default)(BasePrefixStorage, [{
12250 key: "clear",
12251 value: function clear() {
12252 var _this = this;
12253
12254 (0, _keys.default)(this.getAll()).forEach(function (key) {
12255 return _this.removeItem(key);
12256 });
12257 }
12258 }, {
12259 key: "getItem",
12260 value: function getItem(key) {
12261 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "getItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
12262 }
12263 }, {
12264 key: "removeItem",
12265 value: function removeItem(key) {
12266 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "removeItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
12267 }
12268 }, {
12269 key: "setItem",
12270 value: function setItem(key, value) {
12271 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "setItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key, value);
12272 }
12273 }, {
12274 key: "getAll",
12275 value: function getAll() {
12276 var _this2 = this;
12277
12278 var DEFAULT_KEY_PREFIX = BasePrefixStorage.DEFAULT_KEY_PREFIX,
12279 keys = (0, _keys.default)(this.provider),
12280 result = {};
12281 keys.forEach(function (key) {
12282 if (key.startsWith(DEFAULT_KEY_PREFIX)) {
12283 key = key.replace(DEFAULT_KEY_PREFIX, '');
12284 result[key] = _this2.getItem(key);
12285 }
12286 });
12287 return result;
12288 }
12289 }]);
12290 return BasePrefixStorage;
12291 }(_baseStorage.default);
12292
12293 exports.default = BasePrefixStorage;
12294 (0, _defineProperty2.default)(BasePrefixStorage, "DEFAULT_KEY_PREFIX", 'e_');
12295
12296 /***/ }),
12297 /* 640 */
12298 /***/ (function(module, exports, __webpack_require__) {
12299
12300 "use strict";
12301
12302
12303 var _interopRequireDefault = __webpack_require__(0);
12304
12305 var _Object$defineProperty = __webpack_require__(1);
12306
12307 _Object$defineProperty(exports, "__esModule", {
12308 value: true
12309 });
12310
12311 exports.default = void 0;
12312
12313 var _keys = _interopRequireDefault(__webpack_require__(25));
12314
12315 var _stringify = _interopRequireDefault(__webpack_require__(207));
12316
12317 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12318
12319 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12320
12321 /**
12322 * TODO: Merge all storage's to one.
12323 * Using this technique give's the ability to use JSDOC from 'window.storage'.
12324 *
12325 * @implements {Storage}
12326 */
12327 var BaseStorage = /*#__PURE__*/function () {
12328 /**
12329 * Create storage wrapper.
12330 *
12331 * @param {Storage} provider
12332 */
12333 function BaseStorage(provider) {
12334 (0, _classCallCheck2.default)(this, BaseStorage);
12335
12336 if (BaseStorage === (this instanceof BaseStorage ? this.constructor : void 0)) {
12337 throw new TypeError('Cannot construct BaseStorage instances directly');
12338 }
12339
12340 this.provider = provider;
12341 }
12342
12343 (0, _createClass2.default)(BaseStorage, [{
12344 key: "clear",
12345 value: function clear() {
12346 return this.provider.clear();
12347 }
12348 }, {
12349 key: "getItem",
12350 value: function getItem(key) {
12351 var result = this.provider.getItem(key);
12352
12353 if (null !== result) {
12354 return JSON.parse(result);
12355 }
12356
12357 return result;
12358 }
12359 }, {
12360 key: "key",
12361 value: function key(index) {
12362 return this.provider.key(index);
12363 }
12364 }, {
12365 key: "removeItem",
12366 value: function removeItem(key) {
12367 return this.provider.removeItem(key);
12368 }
12369 }, {
12370 key: "setItem",
12371 value: function setItem(key, value) {
12372 return this.provider.setItem(key, (0, _stringify.default)(value));
12373 }
12374 }, {
12375 key: "getAll",
12376 value: function getAll() {
12377 var _this = this;
12378
12379 var keys = (0, _keys.default)(this.provider),
12380 result = {};
12381 keys.forEach(function (key) {
12382 result[key] = _this.getItem(key);
12383 });
12384 return result;
12385 }
12386 }]);
12387 return BaseStorage;
12388 }();
12389
12390 exports.default = BaseStorage;
12391
12392 /***/ }),
12393 /* 641 */
12394 /***/ (function(module, exports, __webpack_require__) {
12395
12396 "use strict";
12397
12398
12399 var _interopRequireDefault = __webpack_require__(0);
12400
12401 var _Object$defineProperty = __webpack_require__(1);
12402
12403 _Object$defineProperty(exports, "__esModule", {
12404 value: true
12405 });
12406
12407 exports.default = void 0;
12408
12409 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12410
12411 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12412
12413 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12414
12415 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(300));
12416
12417 var HookBreak = /*#__PURE__*/function (_Error) {
12418 (0, _inherits2.default)(HookBreak, _Error);
12419
12420 var _super = (0, _createSuper2.default)(HookBreak);
12421
12422 function HookBreak() {
12423 (0, _classCallCheck2.default)(this, HookBreak);
12424 return _super.call(this, 'HookBreak');
12425 }
12426
12427 return HookBreak;
12428 }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
12429
12430 exports.default = HookBreak;
12431
12432 /***/ }),
12433 /* 642 */
12434 /***/ (function(module, exports, __webpack_require__) {
12435
12436 "use strict";
12437
12438
12439 var _interopRequireDefault = __webpack_require__(0);
12440
12441 var _Object$defineProperty = __webpack_require__(1);
12442
12443 _Object$defineProperty(exports, "__esModule", {
12444 value: true
12445 });
12446
12447 exports.default = exports.Before = void 0;
12448
12449 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12450
12451 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12452
12453 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12454
12455 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12456
12457 var _base = _interopRequireDefault(__webpack_require__(327));
12458
12459 var Before = /*#__PURE__*/function (_Base) {
12460 (0, _inherits2.default)(Before, _Base);
12461
12462 var _super = (0, _createSuper2.default)(Before);
12463
12464 function Before() {
12465 (0, _classCallCheck2.default)(this, Before);
12466 return _super.apply(this, arguments);
12467 }
12468
12469 (0, _createClass2.default)(Before, [{
12470 key: "register",
12471 value: function register() {
12472 $e.hooks.registerUIBefore(this);
12473 }
12474 }]);
12475 return Before;
12476 }(_base.default);
12477
12478 exports.Before = Before;
12479 var _default = Before;
12480 exports.default = _default;
12481
12482 /***/ }),
12483 /* 643 */
12484 /***/ (function(module, exports, __webpack_require__) {
12485
12486 "use strict";
12487
12488
12489 var _interopRequireDefault = __webpack_require__(0);
12490
12491 var _Object$defineProperty = __webpack_require__(1);
12492
12493 _Object$defineProperty(exports, "__esModule", {
12494 value: true
12495 });
12496
12497 exports.default = exports.Catch = void 0;
12498
12499 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12500
12501 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12502
12503 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12504
12505 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12506
12507 var _base = _interopRequireDefault(__webpack_require__(327));
12508
12509 var Catch = /*#__PURE__*/function (_Base) {
12510 (0, _inherits2.default)(Catch, _Base);
12511
12512 var _super = (0, _createSuper2.default)(Catch);
12513
12514 function Catch() {
12515 (0, _classCallCheck2.default)(this, Catch);
12516 return _super.apply(this, arguments);
12517 }
12518
12519 (0, _createClass2.default)(Catch, [{
12520 key: "register",
12521 value: function register() {
12522 $e.hooks.registerUICatch(this);
12523 }
12524 }]);
12525 return Catch;
12526 }(_base.default);
12527
12528 exports.Catch = Catch;
12529 var _default = Catch;
12530 exports.default = _default;
12531
12532 /***/ }),
12533 /* 644 */,
12534 /* 645 */,
12535 /* 646 */,
12536 /* 647 */,
12537 /* 648 */,
12538 /* 649 */,
12539 /* 650 */,
12540 /* 651 */,
12541 /* 652 */,
12542 /* 653 */,
12543 /* 654 */,
12544 /* 655 */,
12545 /* 656 */,
12546 /* 657 */,
12547 /* 658 */,
12548 /* 659 */,
12549 /* 660 */,
12550 /* 661 */,
12551 /* 662 */,
12552 /* 663 */,
12553 /* 664 */,
12554 /* 665 */,
12555 /* 666 */,
12556 /* 667 */,
12557 /* 668 */,
12558 /* 669 */,
12559 /* 670 */,
12560 /* 671 */,
12561 /* 672 */,
12562 /* 673 */,
12563 /* 674 */,
12564 /* 675 */,
12565 /* 676 */,
12566 /* 677 */,
12567 /* 678 */,
12568 /* 679 */,
12569 /* 680 */,
12570 /* 681 */,
12571 /* 682 */,
12572 /* 683 */,
12573 /* 684 */
12574 /***/ (function(module, exports, __webpack_require__) {
12575
12576 "use strict";
12577
12578
12579 var _interopRequireDefault = __webpack_require__(0);
12580
12581 var _Object$defineProperty = __webpack_require__(1);
12582
12583 _Object$defineProperty(exports, "__esModule", {
12584 value: true
12585 });
12586
12587 exports.default = void 0;
12588
12589 var _values = _interopRequireDefault(__webpack_require__(54));
12590
12591 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12592
12593 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12594
12595 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12596
12597 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12598
12599 var _item = _interopRequireDefault(__webpack_require__(729));
12600
12601 var _item2 = _interopRequireDefault(__webpack_require__(730));
12602
12603 var _default = /*#__PURE__*/function (_Marionette$Composite) {
12604 (0, _inherits2.default)(_default, _Marionette$Composite);
12605
12606 var _super = (0, _createSuper2.default)(_default);
12607
12608 function _default() {
12609 (0, _classCallCheck2.default)(this, _default);
12610 return _super.apply(this, arguments);
12611 }
12612
12613 (0, _createClass2.default)(_default, [{
12614 key: "className",
12615 value: function className() {
12616 return 'elementor-finder__results__category';
12617 }
12618 }, {
12619 key: "getTemplate",
12620 value: function getTemplate() {
12621 return '#tmpl-elementor-finder__results__category';
12622 }
12623 }, {
12624 key: "getChildView",
12625 value: function getChildView() {
12626 return _item.default;
12627 }
12628 }, {
12629 key: "initialize",
12630 value: function initialize() {
12631 this.childViewContainer = '.elementor-finder__results__category__items';
12632 this.isVisible = true;
12633 var items = this.model.get('items');
12634
12635 if (items) {
12636 items = (0, _values.default)(items);
12637 }
12638
12639 this.collection = new Backbone.Collection(items, {
12640 model: _item2.default
12641 });
12642 }
12643 }, {
12644 key: "filter",
12645 value: function filter(childModel) {
12646 var textFilter = this.getTextFilter();
12647
12648 if (childModel.get('title').toLowerCase().indexOf(textFilter) >= 0) {
12649 return true;
12650 }
12651
12652 return childModel.get('keywords').some(function (keyword) {
12653 return keyword.indexOf(textFilter) >= 0;
12654 });
12655 }
12656 }, {
12657 key: "getTextFilter",
12658 value: function getTextFilter() {
12659 return elementorCommon.finder.channel.request('filter:text').trim().toLowerCase();
12660 }
12661 }, {
12662 key: "toggleElement",
12663 value: function toggleElement() {
12664 var isCurrentlyVisible = !!this.children.length;
12665
12666 if (isCurrentlyVisible !== this.isVisible) {
12667 this.isVisible = isCurrentlyVisible;
12668 this.$el.toggle(isCurrentlyVisible);
12669 this.triggerMethod('toggle:visibility');
12670 }
12671 }
12672 }, {
12673 key: "onRender",
12674 value: function onRender() {
12675 this.listenTo(elementorCommon.finder.channel, 'filter:change', this.onFilterChange.bind(this));
12676 }
12677 }, {
12678 key: "onFilterChange",
12679 value: function onFilterChange() {
12680 this._renderChildren();
12681 }
12682 }, {
12683 key: "onRenderCollection",
12684 value: function onRenderCollection() {
12685 this.toggleElement();
12686 }
12687 }]);
12688 return _default;
12689 }(Marionette.CompositeView);
12690
12691 exports.default = _default;
12692
12693 /***/ }),
12694 /* 685 */,
12695 /* 686 */,
12696 /* 687 */,
12697 /* 688 */,
12698 /* 689 */,
12699 /* 690 */,
12700 /* 691 */,
12701 /* 692 */,
12702 /* 693 */,
12703 /* 694 */,
12704 /* 695 */,
12705 /* 696 */,
12706 /* 697 */,
12707 /* 698 */,
12708 /* 699 */,
12709 /* 700 */,
12710 /* 701 */,
12711 /* 702 */,
12712 /* 703 */,
12713 /* 704 */,
12714 /* 705 */,
12715 /* 706 */,
12716 /* 707 */,
12717 /* 708 */,
12718 /* 709 */,
12719 /* 710 */,
12720 /* 711 */,
12721 /* 712 */,
12722 /* 713 */,
12723 /* 714 */,
12724 /* 715 */,
12725 /* 716 */,
12726 /* 717 */,
12727 /* 718 */,
12728 /* 719 */,
12729 /* 720 */
12730 /***/ (function(module, exports, __webpack_require__) {
12731
12732 "use strict";
12733
12734
12735 var _interopRequireDefault = __webpack_require__(0);
12736
12737 __webpack_require__(61);
12738
12739 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12740
12741 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12742
12743 var _get2 = _interopRequireDefault(__webpack_require__(26));
12744
12745 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
12746
12747 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12748
12749 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12750
12751 var _helpers = _interopRequireDefault(__webpack_require__(721));
12752
12753 var _storage = _interopRequireDefault(__webpack_require__(634));
12754
12755 var _debug = _interopRequireDefault(__webpack_require__(722));
12756
12757 var _ajax = _interopRequireDefault(__webpack_require__(723));
12758
12759 var _finder = _interopRequireDefault(__webpack_require__(724));
12760
12761 var _connect = _interopRequireDefault(__webpack_require__(736));
12762
12763 var _api = _interopRequireDefault(__webpack_require__(737));
12764
12765 var ElementorCommonApp = /*#__PURE__*/function (_elementorModules$Vie) {
12766 (0, _inherits2.default)(ElementorCommonApp, _elementorModules$Vie);
12767
12768 var _super = (0, _createSuper2.default)(ElementorCommonApp);
12769
12770 function ElementorCommonApp() {
12771 (0, _classCallCheck2.default)(this, ElementorCommonApp);
12772 return _super.apply(this, arguments);
12773 }
12774
12775 (0, _createClass2.default)(ElementorCommonApp, [{
12776 key: "setMarionetteTemplateCompiler",
12777 value: function setMarionetteTemplateCompiler() {
12778 Marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate, options) {
12779 options = {
12780 evaluate: /<#([\s\S]+?)#>/g,
12781 interpolate: /{{{([\s\S]+?)}}}/g,
12782 escape: /{{([^}]+?)}}(?!})/g
12783 };
12784 return _.template(rawTemplate, options);
12785 };
12786 }
12787 }, {
12788 key: "getDefaultElements",
12789 value: function getDefaultElements() {
12790 return {
12791 $window: jQuery(window),
12792 $document: jQuery(document),
12793 $body: jQuery(document.body)
12794 };
12795 }
12796 }, {
12797 key: "initComponents",
12798 value: function initComponents() {
12799 this.debug = new _debug.default();
12800 this.helpers = new _helpers.default();
12801 this.storage = new _storage.default();
12802 this.dialogsManager = new DialogsManager.Instance();
12803 this.api = new _api.default();
12804 this.initModules();
12805 }
12806 }, {
12807 key: "initModules",
12808 value: function initModules() {
12809 var _this = this;
12810
12811 var activeModules = this.config.activeModules;
12812 var modules = {
12813 ajax: _ajax.default,
12814 finder: _finder.default,
12815 connect: _connect.default
12816 };
12817 activeModules.forEach(function (name) {
12818 if (modules[name]) {
12819 _this[name] = new modules[name](_this.config[name]);
12820 }
12821 });
12822 }
12823 }, {
12824 key: "compileArrayTemplateArgs",
12825 value: function compileArrayTemplateArgs(template, templateArgs) {
12826 return template.replace(/%(?:(\d+)\$)?s/g, function (match, number) {
12827 if (!number) {
12828 number = 1;
12829 }
12830
12831 number--;
12832 return undefined !== templateArgs[number] ? templateArgs[number] : match;
12833 });
12834 }
12835 }, {
12836 key: "compileObjectTemplateArgs",
12837 value: function compileObjectTemplateArgs(template, templateArgs) {
12838 return template.replace(/{{(?:([ \w]+))}}/g, function (match, name) {
12839 return templateArgs[name] ? templateArgs[name] : match;
12840 });
12841 }
12842 }, {
12843 key: "compileTemplate",
12844 value: function compileTemplate(template, templateArgs) {
12845 return jQuery.isPlainObject(templateArgs) ? this.compileObjectTemplateArgs(template, templateArgs) : this.compileArrayTemplateArgs(template, templateArgs);
12846 }
12847 }, {
12848 key: "translate",
12849 value: function translate(stringKey, context, templateArgs, i18nStack) {
12850 if (context) {
12851 i18nStack = this.config[context].i18n;
12852 }
12853
12854 if (!i18nStack) {
12855 i18nStack = this.config.i18n;
12856 }
12857
12858 var string = i18nStack[stringKey];
12859
12860 if (undefined === string) {
12861 string = stringKey;
12862 }
12863
12864 if (templateArgs) {
12865 string = this.compileTemplate(string, templateArgs);
12866 }
12867
12868 return string;
12869 }
12870 }, {
12871 key: "onInit",
12872 value: function onInit() {
12873 (0, _get2.default)((0, _getPrototypeOf2.default)(ElementorCommonApp.prototype), "onInit", this).call(this);
12874 this.config = elementorCommonConfig;
12875 this.setMarionetteTemplateCompiler();
12876 }
12877 }]);
12878 return ElementorCommonApp;
12879 }(elementorModules.ViewModule);
12880
12881 window.elementorCommon = new ElementorCommonApp();
12882 elementorCommon.initComponents();
12883
12884 /***/ }),
12885 /* 721 */
12886 /***/ (function(module, exports, __webpack_require__) {
12887
12888 "use strict";
12889
12890
12891 var _interopRequireDefault = __webpack_require__(0);
12892
12893 var _Object$defineProperty = __webpack_require__(1);
12894
12895 _Object$defineProperty(exports, "__esModule", {
12896 value: true
12897 });
12898
12899 exports.default = void 0;
12900
12901 __webpack_require__(191);
12902
12903 __webpack_require__(80);
12904
12905 __webpack_require__(61);
12906
12907 var _stringify = _interopRequireDefault(__webpack_require__(207));
12908
12909 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12910
12911 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12912
12913 var Helpers = /*#__PURE__*/function () {
12914 function Helpers() {
12915 (0, _classCallCheck2.default)(this, Helpers);
12916 }
12917
12918 (0, _createClass2.default)(Helpers, [{
12919 key: "softDeprecated",
12920 value: function softDeprecated(name, version, replacement) {
12921 if (elementorCommon.config.isDebug) {
12922 this.deprecatedMessage('soft', name, version, replacement);
12923 }
12924 }
12925 }, {
12926 key: "hardDeprecated",
12927 value: function hardDeprecated(name, version, replacement) {
12928 this.deprecatedMessage('hard', name, version, replacement);
12929 }
12930 }, {
12931 key: "deprecatedMessage",
12932 value: function deprecatedMessage(type, name, version, replacement) {
12933 var message = "%c %c`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
12934
12935 if (replacement) {
12936 message += " - Use `".concat(replacement, "` instead");
12937 }
12938
12939 this.consoleWarn(message);
12940 }
12941 }, {
12942 key: "consoleWarn",
12943 value: function consoleWarn() {
12944 var _console;
12945
12946 var style = "font-size: 12px; background-image: url(\"".concat(elementorCommon.config.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
12947
12948 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12949 args[_key] = arguments[_key];
12950 }
12951
12952 args.push(style, '');
12953
12954 (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
12955
12956 }
12957 }, {
12958 key: "consoleError",
12959 value: function consoleError(message) {
12960 // TODO: function is part of $e.
12961 // Show an error if devTools is available.
12962 if ($e.devTools) {
12963 $e.devTools.log.error(message);
12964 } // If not a 'Hook-Break' then show error.
12965
12966
12967 if (!(message instanceof $e.modules.HookBreak)) {
12968 // eslint-disable-next-line no-console
12969 console.error(message);
12970 }
12971 }
12972 }, {
12973 key: "deprecatedMethod",
12974 value: function deprecatedMethod(methodName, version, replacement) {
12975 this.deprecatedMessage('hard', methodName, version, replacement); // This itself is deprecated.
12976
12977 this.softDeprecated('elementorCommon.helpers.deprecatedMethod', '2.8.0', 'elementorCommon.helpers.softDeprecated || elementorCommon.helpers.hardDeprecated');
12978 }
12979 }, {
12980 key: "cloneObject",
12981 value: function cloneObject(object) {
12982 return JSON.parse((0, _stringify.default)(object));
12983 }
12984 }, {
12985 key: "upperCaseWords",
12986 value: function upperCaseWords(string) {
12987 return (string + '').replace(/^(.)|\s+(.)/g, function ($1) {
12988 return $1.toUpperCase();
12989 });
12990 }
12991 }, {
12992 key: "getUniqueId",
12993 value: function getUniqueId() {
12994 return Math.random().toString(16).substr(2, 7);
12995 }
12996 }]);
12997 return Helpers;
12998 }();
12999
13000 exports.default = Helpers;
13001
13002 /***/ }),
13003 /* 722 */
13004 /***/ (function(module, exports, __webpack_require__) {
13005
13006 "use strict";
13007
13008
13009 __webpack_require__(124);
13010
13011 __webpack_require__(40);
13012
13013 // Moved from assets/dev/js/editor/utils
13014 var Debug = function Debug() {
13015 var self = this,
13016 errorStack = [],
13017 settings = {},
13018 elements = {};
13019
13020 var initSettings = function initSettings() {
13021 settings = {
13022 debounceDelay: 500,
13023 urlsToWatch: ['elementor/assets']
13024 };
13025 };
13026
13027 var initElements = function initElements() {
13028 elements.$window = jQuery(window);
13029 };
13030
13031 var onError = function onError(event) {
13032 var originalEvent = event.originalEvent,
13033 error = originalEvent.error;
13034
13035 if (!error) {
13036 return;
13037 }
13038
13039 var isInWatchList = false,
13040 urlsToWatch = settings.urlsToWatch;
13041 jQuery.each(urlsToWatch, function () {
13042 if (-1 !== error.stack.indexOf(this)) {
13043 isInWatchList = true;
13044 return false;
13045 }
13046 });
13047
13048 if (!isInWatchList) {
13049 return;
13050 }
13051
13052 self.addError({
13053 type: error.name,
13054 message: error.message,
13055 url: originalEvent.filename,
13056 line: originalEvent.lineno,
13057 column: originalEvent.colno
13058 });
13059 };
13060
13061 var bindEvents = function bindEvents() {
13062 elements.$window.on('error', onError);
13063 };
13064
13065 var init = function init() {
13066 initSettings();
13067 initElements();
13068 bindEvents();
13069 self.sendErrors = _.debounce(self.sendErrors, settings.debounceDelay);
13070 };
13071
13072 this.addURLToWatch = function (url) {
13073 settings.urlsToWatch.push(url);
13074 };
13075
13076 this.addCustomError = function (error, category, tag) {
13077 var errorInfo = {
13078 type: error.name,
13079 message: error.message,
13080 url: error.fileName || error.sourceURL,
13081 line: error.lineNumber || error.line,
13082 column: error.columnNumber || error.column,
13083 customFields: {
13084 category: category || 'general',
13085 tag: tag
13086 }
13087 };
13088
13089 if (!errorInfo.url) {
13090 var stackInfo = error.stack.match(/\n {4}at (.*?(?=:(\d+):(\d+)))/);
13091
13092 if (stackInfo) {
13093 errorInfo.url = stackInfo[1];
13094 errorInfo.line = stackInfo[2];
13095 errorInfo.column = stackInfo[3];
13096 }
13097 }
13098
13099 this.addError(errorInfo);
13100 };
13101
13102 this.addError = function (errorParams) {
13103 var defaultParams = {
13104 type: 'Error',
13105 timestamp: Math.floor(new Date().getTime() / 1000),
13106 message: null,
13107 url: null,
13108 line: null,
13109 column: null,
13110 customFields: {}
13111 };
13112 errorStack.push(jQuery.extend(true, defaultParams, errorParams));
13113 self.sendErrors();
13114 };
13115
13116 this.sendErrors = function () {
13117 // Avoid recursions on errors in ajax
13118 elements.$window.off('error', onError);
13119 jQuery.ajax({
13120 url: elementorCommon.config.ajax.url,
13121 method: 'POST',
13122 data: {
13123 action: 'elementor_js_log',
13124 _nonce: elementorCommon.ajax.getSettings('nonce'),
13125 data: errorStack
13126 },
13127 success: function success() {
13128 errorStack = []; // Restore error handler
13129
13130 elements.$window.on('error', onError);
13131 }
13132 });
13133 };
13134
13135 init();
13136 };
13137
13138 module.exports = Debug;
13139
13140 /***/ }),
13141 /* 723 */
13142 /***/ (function(module, exports, __webpack_require__) {
13143
13144 "use strict";
13145
13146
13147 var _interopRequireDefault = __webpack_require__(0);
13148
13149 var _Object$defineProperty = __webpack_require__(1);
13150
13151 _Object$defineProperty(exports, "__esModule", {
13152 value: true
13153 });
13154
13155 exports.default = void 0;
13156
13157 var _values = _interopRequireDefault(__webpack_require__(54));
13158
13159 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(105));
13160
13161 var _entries = _interopRequireDefault(__webpack_require__(93));
13162
13163 var _stringify = _interopRequireDefault(__webpack_require__(207));
13164
13165 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13166
13167 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(45));
13168
13169 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13170
13171 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13172
13173 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13174
13175 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
13176 (0, _inherits2.default)(_default, _elementorModules$Mod);
13177
13178 var _super = (0, _createSuper2.default)(_default);
13179
13180 (0, _createClass2.default)(_default, [{
13181 key: "getDefaultSettings",
13182 value: function getDefaultSettings() {
13183 return {
13184 ajaxParams: {
13185 type: 'POST',
13186 url: elementorCommon.config.ajax.url,
13187 data: {},
13188 dataType: 'json'
13189 },
13190 actionPrefix: 'elementor_'
13191 };
13192 }
13193 }]);
13194
13195 function _default() {
13196 var _this;
13197
13198 (0, _classCallCheck2.default)(this, _default);
13199
13200 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13201 args[_key] = arguments[_key];
13202 }
13203
13204 _this = _super.call.apply(_super, [this].concat(args));
13205 _this.requests = {};
13206 _this.cache = {};
13207
13208 _this.initRequestConstants();
13209
13210 _this.debounceSendBatch = _.debounce(_this.sendBatch.bind((0, _assertThisInitialized2.default)(_this)), 500);
13211 return _this;
13212 }
13213
13214 (0, _createClass2.default)(_default, [{
13215 key: "initRequestConstants",
13216 value: function initRequestConstants() {
13217 this.requestConstants = {
13218 _nonce: this.getSettings('nonce')
13219 };
13220 }
13221 }, {
13222 key: "addRequestConstant",
13223 value: function addRequestConstant(key, value) {
13224 this.requestConstants[key] = value;
13225 }
13226 }, {
13227 key: "getCacheKey",
13228 value: function getCacheKey(request) {
13229 return (0, _stringify.default)({
13230 unique_id: request.unique_id,
13231 data: request.data
13232 });
13233 }
13234 }, {
13235 key: "loadObjects",
13236 value: function loadObjects(options) {
13237 var _this2 = this;
13238
13239 var dataCollection = {};
13240 var deferredArray = [];
13241
13242 if (options.before) {
13243 options.before();
13244 }
13245
13246 options.ids.forEach(function (objectId) {
13247 deferredArray.push(_this2.load({
13248 action: options.action,
13249 unique_id: options.data.unique_id + objectId,
13250 data: jQuery.extend({
13251 id: objectId
13252 }, options.data)
13253 }).done(function (data) {
13254 return dataCollection = jQuery.extend(dataCollection, data);
13255 }));
13256 });
13257 jQuery.when.apply(jQuery, deferredArray).done(function () {
13258 return options.success(dataCollection);
13259 });
13260 }
13261 }, {
13262 key: "load",
13263 value: function load(request, immediately) {
13264 var _this3 = this;
13265
13266 if (!request.unique_id) {
13267 request.unique_id = request.action;
13268 }
13269
13270 if (request.before) {
13271 request.before();
13272 }
13273
13274 var deferred;
13275 var cacheKey = this.getCacheKey(request);
13276
13277 if (_.has(this.cache, cacheKey)) {
13278 deferred = jQuery.Deferred().done(request.success).resolve(this.cache[cacheKey]);
13279 } else {
13280 deferred = this.addRequest(request.action, {
13281 data: request.data,
13282 unique_id: request.unique_id,
13283 success: function success(data) {
13284 return _this3.cache[cacheKey] = data;
13285 }
13286 }, immediately).done(request.success);
13287 }
13288
13289 return deferred;
13290 }
13291 }, {
13292 key: "addRequest",
13293 value: function addRequest(action, options, immediately) {
13294 options = options || {};
13295
13296 if (!options.unique_id) {
13297 options.unique_id = action;
13298 }
13299
13300 options.deferred = jQuery.Deferred().done(options.success).fail(options.error).always(options.complete);
13301 var request = {
13302 action: action,
13303 options: options
13304 };
13305
13306 if (immediately) {
13307 var requests = {};
13308 requests[options.unique_id] = request;
13309 options.deferred.jqXhr = this.sendBatch(requests);
13310 } else {
13311 this.requests[options.unique_id] = request;
13312 this.debounceSendBatch();
13313 }
13314
13315 return options.deferred;
13316 }
13317 }, {
13318 key: "sendBatch",
13319 value: function sendBatch(requests) {
13320 var actions = {};
13321
13322 if (!requests) {
13323 requests = this.requests; // Empty for next batch.
13324
13325 this.requests = {};
13326 }
13327
13328 (0, _entries.default)(requests).forEach(function (_ref) {
13329 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
13330 id = _ref2[0],
13331 request = _ref2[1];
13332
13333 return actions[id] = {
13334 action: request.action,
13335 data: request.options.data
13336 };
13337 });
13338 return this.send('ajax', {
13339 data: {
13340 actions: (0, _stringify.default)(actions)
13341 },
13342 success: function success(data) {
13343 (0, _entries.default)(data.responses).forEach(function (_ref3) {
13344 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
13345 id = _ref4[0],
13346 response = _ref4[1];
13347
13348 var options = requests[id].options;
13349
13350 if (options) {
13351 if (response.success) {
13352 options.deferred.resolve(response.data);
13353 } else if (!response.success) {
13354 options.deferred.reject(response.data);
13355 }
13356 }
13357 });
13358 },
13359 error: function error(data) {
13360 return (0, _values.default)(requests).forEach(function (args) {
13361 if (args.options) {
13362 args.options.deferred.reject(data);
13363 }
13364 });
13365 }
13366 });
13367 }
13368 }, {
13369 key: "prepareSend",
13370 value: function prepareSend(action, options) {
13371 var _this4 = this;
13372
13373 var settings = this.getSettings(),
13374 ajaxParams = elementorCommon.helpers.cloneObject(settings.ajaxParams);
13375 options = options || {};
13376 action = settings.actionPrefix + action;
13377 jQuery.extend(ajaxParams, options);
13378 var requestConstants = elementorCommon.helpers.cloneObject(this.requestConstants);
13379 requestConstants.action = action;
13380 var isFormData = ajaxParams.data instanceof FormData;
13381 (0, _entries.default)(requestConstants).forEach(function (_ref5) {
13382 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
13383 key = _ref6[0],
13384 value = _ref6[1];
13385
13386 if (isFormData) {
13387 ajaxParams.data.append(key, value);
13388 } else {
13389 ajaxParams.data[key] = value;
13390 }
13391 });
13392 var successCallback = ajaxParams.success,
13393 errorCallback = ajaxParams.error;
13394
13395 if (successCallback || errorCallback) {
13396 ajaxParams.success = function (response) {
13397 if (response.success && successCallback) {
13398 successCallback(response.data);
13399 }
13400
13401 if (!response.success && errorCallback) {
13402 errorCallback(response.data);
13403 }
13404 };
13405
13406 if (errorCallback) {
13407 ajaxParams.error = function (data) {
13408 return errorCallback(data);
13409 };
13410 } else {
13411 ajaxParams.error = function (xmlHttpRequest) {
13412 if (xmlHttpRequest.readyState || 'abort' !== xmlHttpRequest.statusText) {
13413 _this4.trigger('request:unhandledError', xmlHttpRequest);
13414 }
13415 };
13416 }
13417 }
13418
13419 return ajaxParams;
13420 }
13421 }, {
13422 key: "send",
13423 value: function send(action, options) {
13424 return jQuery.ajax(this.prepareSend(action, options));
13425 }
13426 }, {
13427 key: "addRequestCache",
13428 value: function addRequestCache(request, data) {
13429 var cacheKey = this.getCacheKey(request);
13430 this.cache[cacheKey] = data;
13431 }
13432 }, {
13433 key: "invalidateCache",
13434 value: function invalidateCache(request) {
13435 var cacheKey = this.getCacheKey(request);
13436 delete this.cache[cacheKey];
13437 }
13438 }]);
13439 return _default;
13440 }(elementorModules.Module);
13441
13442 exports.default = _default;
13443
13444 /***/ }),
13445 /* 724 */
13446 /***/ (function(module, exports, __webpack_require__) {
13447
13448 "use strict";
13449
13450
13451 var _interopRequireDefault = __webpack_require__(0);
13452
13453 var _Object$defineProperty = __webpack_require__(1);
13454
13455 _Object$defineProperty(exports, "__esModule", {
13456 value: true
13457 });
13458
13459 exports.default = void 0;
13460
13461 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13462
13463 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13464
13465 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13466
13467 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13468
13469 var _component = _interopRequireDefault(__webpack_require__(725));
13470
13471 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
13472 (0, _inherits2.default)(_default, _elementorModules$Mod);
13473
13474 var _super = (0, _createSuper2.default)(_default);
13475
13476 function _default() {
13477 (0, _classCallCheck2.default)(this, _default);
13478 return _super.apply(this, arguments);
13479 }
13480
13481 (0, _createClass2.default)(_default, [{
13482 key: "onInit",
13483 value: function onInit() {
13484 // TODO: Temp fix, do not load finder in theme-builder.
13485 // Better to pass into '$e' constructor the app owner. ( admin, editor, preview, iframe ).
13486 if (window.top !== window) {
13487 return;
13488 }
13489
13490 this.channel = Backbone.Radio.channel('ELEMENTOR:finder');
13491 $e.components.register(new _component.default({
13492 manager: this
13493 }));
13494 }
13495 }]);
13496 return _default;
13497 }(elementorModules.Module);
13498
13499 exports.default = _default;
13500
13501 /***/ }),
13502 /* 725 */
13503 /***/ (function(module, exports, __webpack_require__) {
13504
13505 "use strict";
13506
13507
13508 var _interopRequireWildcard = __webpack_require__(34);
13509
13510 var _interopRequireDefault = __webpack_require__(0);
13511
13512 var _Object$defineProperty = __webpack_require__(1);
13513
13514 _Object$defineProperty(exports, "__esModule", {
13515 value: true
13516 });
13517
13518 exports.default = void 0;
13519
13520 var _objectSpread2 = _interopRequireDefault(__webpack_require__(182));
13521
13522 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13523
13524 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13525
13526 var _get2 = _interopRequireDefault(__webpack_require__(26));
13527
13528 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13529
13530 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13531
13532 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13533
13534 var _componentModalBase = _interopRequireDefault(__webpack_require__(290));
13535
13536 var _layout = _interopRequireDefault(__webpack_require__(726));
13537
13538 var commands = _interopRequireWildcard(__webpack_require__(732));
13539
13540 var Component = /*#__PURE__*/function (_ComponentModalBase) {
13541 (0, _inherits2.default)(Component, _ComponentModalBase);
13542
13543 var _super = (0, _createSuper2.default)(Component);
13544
13545 function Component() {
13546 (0, _classCallCheck2.default)(this, Component);
13547 return _super.apply(this, arguments);
13548 }
13549
13550 (0, _createClass2.default)(Component, [{
13551 key: "getNamespace",
13552 value: function getNamespace() {
13553 return 'finder';
13554 }
13555 }, {
13556 key: "defaultShortcuts",
13557 value: function defaultShortcuts() {
13558 var _this = this;
13559
13560 return {
13561 '': {
13562 keys: 'ctrl+e'
13563 },
13564 'navigate-down': {
13565 keys: 'down',
13566 scopes: [this.getNamespace()],
13567 dependency: function dependency() {
13568 return _this.getItemsView();
13569 }
13570 },
13571 'navigate-up': {
13572 keys: 'up',
13573 scopes: [this.getNamespace()],
13574 dependency: function dependency() {
13575 return _this.getItemsView();
13576 }
13577 },
13578 'navigate-select': {
13579 keys: 'enter',
13580 scopes: [this.getNamespace()],
13581 dependency: function dependency() {
13582 return _this.getItemsView().$activeItem;
13583 }
13584 }
13585 };
13586 }
13587 }, {
13588 key: "defaultCommands",
13589 value: function defaultCommands() {
13590 var modalCommands = (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "defaultCommands", this).call(this);
13591 return (0, _objectSpread2.default)((0, _objectSpread2.default)({
13592 'navigate/down': function navigateDown() {
13593 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/down' )", '3.0.0', "$e.run( 'finder/navigate-down' )");
13594 $e.run('finder/navigate-down');
13595 },
13596 'navigate/up': function navigateUp() {
13597 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/up' )", '3.0.0', "$e.run( 'finder/navigate-up' )");
13598 $e.run('finder/navigate-up');
13599 },
13600 'navigate/select': function navigateSelect(event) {
13601 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/select', event )", '3.0.0', "$e.run( 'finder/navigate-select', event )"); // TODO: Fix $e.shortcuts use args. ( args.event ).
13602
13603 $e.run('finder/navigate-select', event);
13604 }
13605 }, modalCommands), this.importCommands(commands));
13606 }
13607 }, {
13608 key: "getModalLayout",
13609 value: function getModalLayout() {
13610 return _layout.default;
13611 }
13612 }, {
13613 key: "getItemsView",
13614 value: function getItemsView() {
13615 return this.layout.modalContent.currentView.content.currentView;
13616 }
13617 }]);
13618 return Component;
13619 }(_componentModalBase.default);
13620
13621 exports.default = Component;
13622
13623 /***/ }),
13624 /* 726 */
13625 /***/ (function(module, exports, __webpack_require__) {
13626
13627 "use strict";
13628
13629
13630 var _interopRequireDefault = __webpack_require__(0);
13631
13632 var _Object$defineProperty = __webpack_require__(1);
13633
13634 _Object$defineProperty(exports, "__esModule", {
13635 value: true
13636 });
13637
13638 exports.default = void 0;
13639
13640 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13641
13642 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13643
13644 var _get4 = _interopRequireDefault(__webpack_require__(26));
13645
13646 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13647
13648 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13649
13650 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13651
13652 var _content = _interopRequireDefault(__webpack_require__(727));
13653
13654 var _default = /*#__PURE__*/function (_elementorModules$com) {
13655 (0, _inherits2.default)(_default, _elementorModules$com);
13656
13657 var _super = (0, _createSuper2.default)(_default);
13658
13659 function _default() {
13660 (0, _classCallCheck2.default)(this, _default);
13661 return _super.apply(this, arguments);
13662 }
13663
13664 (0, _createClass2.default)(_default, [{
13665 key: "getModalOptions",
13666 value: function getModalOptions() {
13667 return {
13668 id: 'elementor-finder__modal',
13669 draggable: true,
13670 effects: {
13671 show: 'show',
13672 hide: 'hide'
13673 },
13674 position: {
13675 enable: false
13676 }
13677 };
13678 }
13679 }, {
13680 key: "getLogoOptions",
13681 value: function getLogoOptions() {
13682 return {
13683 title: elementorCommon.translate('finder', 'finder')
13684 };
13685 }
13686 }, {
13687 key: "initialize",
13688 value: function initialize() {
13689 var _get2;
13690
13691 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13692 args[_key] = arguments[_key];
13693 }
13694
13695 (_get2 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "initialize", this)).call.apply(_get2, [this].concat(args));
13696
13697 this.showLogo();
13698 this.showContentView();
13699 }
13700 }, {
13701 key: "showContentView",
13702 value: function showContentView() {
13703 this.modalContent.show(new _content.default());
13704 }
13705 }, {
13706 key: "showModal",
13707 value: function showModal() {
13708 var _get3;
13709
13710 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13711 args[_key2] = arguments[_key2];
13712 }
13713
13714 (_get3 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "showModal", this)).call.apply(_get3, [this].concat(args));
13715
13716 this.modalContent.currentView.ui.searchInput.focus();
13717 }
13718 }]);
13719 return _default;
13720 }(elementorModules.common.views.modal.Layout);
13721
13722 exports.default = _default;
13723
13724 /***/ }),
13725 /* 727 */
13726 /***/ (function(module, exports, __webpack_require__) {
13727
13728 "use strict";
13729
13730
13731 var _interopRequireDefault = __webpack_require__(0);
13732
13733 var _Object$defineProperty = __webpack_require__(1);
13734
13735 _Object$defineProperty(exports, "__esModule", {
13736 value: true
13737 });
13738
13739 exports.default = void 0;
13740
13741 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13742
13743 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13744
13745 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13746
13747 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13748
13749 var _categories = _interopRequireDefault(__webpack_require__(728));
13750
13751 var _default = /*#__PURE__*/function (_Marionette$LayoutVie) {
13752 (0, _inherits2.default)(_default, _Marionette$LayoutVie);
13753
13754 var _super = (0, _createSuper2.default)(_default);
13755
13756 function _default() {
13757 (0, _classCallCheck2.default)(this, _default);
13758 return _super.apply(this, arguments);
13759 }
13760
13761 (0, _createClass2.default)(_default, [{
13762 key: "id",
13763 value: function id() {
13764 return 'elementor-finder';
13765 }
13766 }, {
13767 key: "getTemplate",
13768 value: function getTemplate() {
13769 return '#tmpl-elementor-finder';
13770 }
13771 }, {
13772 key: "ui",
13773 value: function ui() {
13774 return {
13775 searchInput: '#elementor-finder__search__input'
13776 };
13777 }
13778 }, {
13779 key: "events",
13780 value: function events() {
13781 return {
13782 'input @ui.searchInput': 'onSearchInputInput'
13783 };
13784 }
13785 }, {
13786 key: "regions",
13787 value: function regions() {
13788 return {
13789 content: '#elementor-finder__content'
13790 };
13791 }
13792 }, {
13793 key: "showCategoriesView",
13794 value: function showCategoriesView() {
13795 this.content.show(new _categories.default());
13796 }
13797 }, {
13798 key: "onSearchInputInput",
13799 value: function onSearchInputInput() {
13800 var value = this.ui.searchInput.val();
13801
13802 if (value) {
13803 elementorCommon.finder.channel.reply('filter:text', value).trigger('filter:change');
13804
13805 if (!(this.content.currentView instanceof _categories.default)) {
13806 this.showCategoriesView();
13807 }
13808 }
13809
13810 this.content.currentView.$el.toggle(!!value);
13811 }
13812 }]);
13813 return _default;
13814 }(Marionette.LayoutView);
13815
13816 exports.default = _default;
13817
13818 /***/ }),
13819 /* 728 */
13820 /***/ (function(module, exports, __webpack_require__) {
13821
13822 "use strict";
13823
13824
13825 var _interopRequireDefault = __webpack_require__(0);
13826
13827 var _Object$defineProperty = __webpack_require__(1);
13828
13829 _Object$defineProperty(exports, "__esModule", {
13830 value: true
13831 });
13832
13833 exports.default = void 0;
13834
13835 var _values = _interopRequireDefault(__webpack_require__(54));
13836
13837 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13838
13839 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13840
13841 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13842
13843 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13844
13845 var _category = _interopRequireDefault(__webpack_require__(684));
13846
13847 var _dynamicCategory = _interopRequireDefault(__webpack_require__(731));
13848
13849 var _default = /*#__PURE__*/function (_Marionette$Composite) {
13850 (0, _inherits2.default)(_default, _Marionette$Composite);
13851
13852 var _super = (0, _createSuper2.default)(_default);
13853
13854 function _default() {
13855 (0, _classCallCheck2.default)(this, _default);
13856 return _super.apply(this, arguments);
13857 }
13858
13859 (0, _createClass2.default)(_default, [{
13860 key: "id",
13861 value: function id() {
13862 return 'elementor-finder__results-container';
13863 }
13864 }, {
13865 key: "ui",
13866 value: function ui() {
13867 return {
13868 noResults: '#elementor-finder__no-results',
13869 categoryItem: '.elementor-finder__results__item'
13870 };
13871 }
13872 }, {
13873 key: "events",
13874 value: function events() {
13875 return {
13876 'mouseenter @ui.categoryItem': 'onCategoryItemMouseEnter'
13877 };
13878 }
13879 }, {
13880 key: "getTemplate",
13881 value: function getTemplate() {
13882 return '#tmpl-elementor-finder-results-container';
13883 }
13884 }, {
13885 key: "getChildView",
13886 value: function getChildView(childModel) {
13887 return childModel.get('dynamic') ? _dynamicCategory.default : _category.default;
13888 }
13889 }, {
13890 key: "initialize",
13891 value: function initialize() {
13892 this.$activeItem = null;
13893 this.childViewContainer = '#elementor-finder__results';
13894 this.collection = new Backbone.Collection((0, _values.default)(elementorCommon.finder.getSettings('data')));
13895 }
13896 }, {
13897 key: "activateItem",
13898 value: function activateItem($item) {
13899 if (this.$activeItem) {
13900 this.$activeItem.removeClass('elementor-active');
13901 }
13902
13903 $item.addClass('elementor-active');
13904 this.$activeItem = $item;
13905 }
13906 }, {
13907 key: "activateNextItem",
13908 value: function activateNextItem(reverse) {
13909 var $allItems = jQuery(this.ui.categoryItem.selector);
13910 var nextItemIndex = 0;
13911
13912 if (this.$activeItem) {
13913 nextItemIndex = $allItems.index(this.$activeItem) + (reverse ? -1 : 1);
13914
13915 if (nextItemIndex >= $allItems.length) {
13916 nextItemIndex = 0;
13917 } else if (nextItemIndex < 0) {
13918 nextItemIndex = $allItems.length - 1;
13919 }
13920 }
13921
13922 var $nextItem = $allItems.eq(nextItemIndex);
13923 this.activateItem($nextItem);
13924 $nextItem[0].scrollIntoView({
13925 block: 'nearest'
13926 });
13927 }
13928 }, {
13929 key: "goToActiveItem",
13930 value: function goToActiveItem(event) {
13931 var $a = this.$activeItem.children('a'),
13932 isControlClicked = $e.shortcuts.isControlEvent(event);
13933
13934 if (isControlClicked) {
13935 $a.attr('target', '_blank');
13936 }
13937
13938 $a[0].click();
13939
13940 if (isControlClicked) {
13941 $a.removeAttr('target');
13942 }
13943 }
13944 }, {
13945 key: "onCategoryItemMouseEnter",
13946 value: function onCategoryItemMouseEnter(event) {
13947 this.activateItem(jQuery(event.currentTarget));
13948 }
13949 }, {
13950 key: "onChildviewToggleVisibility",
13951 value: function onChildviewToggleVisibility() {
13952 var allCategoriesAreEmpty = this.children.every(function (child) {
13953 return !child.isVisible;
13954 });
13955 this.ui.noResults.toggle(allCategoriesAreEmpty);
13956 }
13957 }]);
13958 return _default;
13959 }(Marionette.CompositeView);
13960
13961 exports.default = _default;
13962
13963 /***/ }),
13964 /* 729 */
13965 /***/ (function(module, exports, __webpack_require__) {
13966
13967 "use strict";
13968
13969
13970 var _interopRequireDefault = __webpack_require__(0);
13971
13972 var _Object$defineProperty = __webpack_require__(1);
13973
13974 _Object$defineProperty(exports, "__esModule", {
13975 value: true
13976 });
13977
13978 exports.default = void 0;
13979
13980 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13981
13982 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13983
13984 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13985
13986 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13987
13988 var _default = /*#__PURE__*/function (_Marionette$ItemView) {
13989 (0, _inherits2.default)(_default, _Marionette$ItemView);
13990
13991 var _super = (0, _createSuper2.default)(_default);
13992
13993 function _default() {
13994 (0, _classCallCheck2.default)(this, _default);
13995 return _super.apply(this, arguments);
13996 }
13997
13998 (0, _createClass2.default)(_default, [{
13999 key: "className",
14000 value: function className() {
14001 return 'elementor-finder__results__item';
14002 }
14003 }, {
14004 key: "getTemplate",
14005 value: function getTemplate() {
14006 return '#tmpl-elementor-finder__results__item';
14007 }
14008 }]);
14009 return _default;
14010 }(Marionette.ItemView);
14011
14012 exports.default = _default;
14013
14014 /***/ }),
14015 /* 730 */
14016 /***/ (function(module, exports, __webpack_require__) {
14017
14018 "use strict";
14019
14020
14021 var _interopRequireDefault = __webpack_require__(0);
14022
14023 var _Object$defineProperty = __webpack_require__(1);
14024
14025 _Object$defineProperty(exports, "__esModule", {
14026 value: true
14027 });
14028
14029 exports.default = void 0;
14030
14031 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14032
14033 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14034
14035 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14036
14037 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14038
14039 var _default = /*#__PURE__*/function (_Backbone$Model) {
14040 (0, _inherits2.default)(_default, _Backbone$Model);
14041
14042 var _super = (0, _createSuper2.default)(_default);
14043
14044 function _default() {
14045 (0, _classCallCheck2.default)(this, _default);
14046 return _super.apply(this, arguments);
14047 }
14048
14049 (0, _createClass2.default)(_default, [{
14050 key: "defaults",
14051 value: function defaults() {
14052 return {
14053 description: '',
14054 icon: 'settings',
14055 url: '',
14056 keywords: [],
14057 actions: []
14058 };
14059 }
14060 }]);
14061 return _default;
14062 }(Backbone.Model);
14063
14064 exports.default = _default;
14065
14066 /***/ }),
14067 /* 731 */
14068 /***/ (function(module, exports, __webpack_require__) {
14069
14070 "use strict";
14071
14072
14073 var _interopRequireDefault = __webpack_require__(0);
14074
14075 var _Object$defineProperty = __webpack_require__(1);
14076
14077 _Object$defineProperty(exports, "__esModule", {
14078 value: true
14079 });
14080
14081 exports.default = void 0;
14082
14083 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14084
14085 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14086
14087 var _get2 = _interopRequireDefault(__webpack_require__(26));
14088
14089 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14090
14091 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14092
14093 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14094
14095 var _category = _interopRequireDefault(__webpack_require__(684));
14096
14097 var _default = /*#__PURE__*/function (_Category) {
14098 (0, _inherits2.default)(_default, _Category);
14099
14100 var _super = (0, _createSuper2.default)(_default);
14101
14102 function _default() {
14103 (0, _classCallCheck2.default)(this, _default);
14104 return _super.apply(this, arguments);
14105 }
14106
14107 (0, _createClass2.default)(_default, [{
14108 key: "className",
14109 value: function className() {
14110 return (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "className", this).call(this) + ' elementor-finder__results__category--dynamic';
14111 }
14112 }, {
14113 key: "ui",
14114 value: function ui() {
14115 return {
14116 title: '.elementor-finder__results__category__title'
14117 };
14118 }
14119 }, {
14120 key: "fetchData",
14121 value: function fetchData() {
14122 var _this = this;
14123
14124 this.ui.loadingIcon.show();
14125 elementorCommon.ajax.addRequest('finder_get_category_items', {
14126 data: {
14127 category: this.model.get('name'),
14128 filter: this.getTextFilter()
14129 },
14130 success: function success(data) {
14131 if (_this.isDestroyed) {
14132 return;
14133 }
14134
14135 _this.collection.set(data);
14136
14137 _this.toggleElement();
14138
14139 _this.ui.loadingIcon.hide();
14140 }
14141 });
14142 }
14143 }, {
14144 key: "filter",
14145 value: function filter() {
14146 return true;
14147 }
14148 }, {
14149 key: "onFilterChange",
14150 value: function onFilterChange() {
14151 this.fetchData();
14152 }
14153 }, {
14154 key: "onRender",
14155 value: function onRender() {
14156 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onRender", this).call(this);
14157 this.ui.loadingIcon = jQuery('<i>', {
14158 class: 'eicon-loading eicon-animation-spin'
14159 });
14160 this.ui.title.after(this.ui.loadingIcon);
14161 this.fetchData();
14162 }
14163 }]);
14164 return _default;
14165 }(_category.default);
14166
14167 exports.default = _default;
14168
14169 /***/ }),
14170 /* 732 */
14171 /***/ (function(module, exports, __webpack_require__) {
14172
14173 "use strict";
14174
14175
14176 var _Object$defineProperty = __webpack_require__(1);
14177
14178 _Object$defineProperty(exports, "__esModule", {
14179 value: true
14180 });
14181
14182 _Object$defineProperty(exports, "NavigateDown", {
14183 enumerable: true,
14184 get: function get() {
14185 return _navigateDown.NavigateDown;
14186 }
14187 });
14188
14189 _Object$defineProperty(exports, "NavigateSelect", {
14190 enumerable: true,
14191 get: function get() {
14192 return _navigateSelect.NavigateSelect;
14193 }
14194 });
14195
14196 _Object$defineProperty(exports, "NavigateUp", {
14197 enumerable: true,
14198 get: function get() {
14199 return _navigateUp.NavigateUp;
14200 }
14201 });
14202
14203 var _navigateDown = __webpack_require__(733);
14204
14205 var _navigateSelect = __webpack_require__(734);
14206
14207 var _navigateUp = __webpack_require__(735);
14208
14209 /***/ }),
14210 /* 733 */
14211 /***/ (function(module, exports, __webpack_require__) {
14212
14213 "use strict";
14214
14215
14216 var _interopRequireDefault = __webpack_require__(0);
14217
14218 var _Object$defineProperty = __webpack_require__(1);
14219
14220 _Object$defineProperty(exports, "__esModule", {
14221 value: true
14222 });
14223
14224 exports.default = exports.NavigateDown = void 0;
14225
14226 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14227
14228 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14229
14230 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14231
14232 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14233
14234 var _commandBase = _interopRequireDefault(__webpack_require__(23));
14235
14236 var NavigateDown = /*#__PURE__*/function (_CommandBase) {
14237 (0, _inherits2.default)(NavigateDown, _CommandBase);
14238
14239 var _super = (0, _createSuper2.default)(NavigateDown);
14240
14241 function NavigateDown() {
14242 (0, _classCallCheck2.default)(this, NavigateDown);
14243 return _super.apply(this, arguments);
14244 }
14245
14246 (0, _createClass2.default)(NavigateDown, [{
14247 key: "apply",
14248 value: function apply() {
14249 this.component.getItemsView().activateNextItem();
14250 }
14251 }]);
14252 return NavigateDown;
14253 }(_commandBase.default);
14254
14255 exports.NavigateDown = NavigateDown;
14256 var _default = NavigateDown;
14257 exports.default = _default;
14258
14259 /***/ }),
14260 /* 734 */
14261 /***/ (function(module, exports, __webpack_require__) {
14262
14263 "use strict";
14264
14265
14266 var _interopRequireDefault = __webpack_require__(0);
14267
14268 var _Object$defineProperty = __webpack_require__(1);
14269
14270 _Object$defineProperty(exports, "__esModule", {
14271 value: true
14272 });
14273
14274 exports.default = exports.NavigateSelect = void 0;
14275
14276 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14277
14278 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14279
14280 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14281
14282 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14283
14284 var _commandBase = _interopRequireDefault(__webpack_require__(23));
14285
14286 var NavigateSelect = /*#__PURE__*/function (_CommandBase) {
14287 (0, _inherits2.default)(NavigateSelect, _CommandBase);
14288
14289 var _super = (0, _createSuper2.default)(NavigateSelect);
14290
14291 function NavigateSelect() {
14292 (0, _classCallCheck2.default)(this, NavigateSelect);
14293 return _super.apply(this, arguments);
14294 }
14295
14296 (0, _createClass2.default)(NavigateSelect, [{
14297 key: "apply",
14298 value: function apply(args) {
14299 this.component.getItemsView().goToActiveItem(args);
14300 }
14301 }]);
14302 return NavigateSelect;
14303 }(_commandBase.default);
14304
14305 exports.NavigateSelect = NavigateSelect;
14306 var _default = NavigateSelect;
14307 exports.default = _default;
14308
14309 /***/ }),
14310 /* 735 */
14311 /***/ (function(module, exports, __webpack_require__) {
14312
14313 "use strict";
14314
14315
14316 var _interopRequireDefault = __webpack_require__(0);
14317
14318 var _Object$defineProperty = __webpack_require__(1);
14319
14320 _Object$defineProperty(exports, "__esModule", {
14321 value: true
14322 });
14323
14324 exports.default = exports.NavigateUp = void 0;
14325
14326 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14327
14328 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14329
14330 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14331
14332 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14333
14334 var _commandBase = _interopRequireDefault(__webpack_require__(23));
14335
14336 var NavigateUp = /*#__PURE__*/function (_CommandBase) {
14337 (0, _inherits2.default)(NavigateUp, _CommandBase);
14338
14339 var _super = (0, _createSuper2.default)(NavigateUp);
14340
14341 function NavigateUp() {
14342 (0, _classCallCheck2.default)(this, NavigateUp);
14343 return _super.apply(this, arguments);
14344 }
14345
14346 (0, _createClass2.default)(NavigateUp, [{
14347 key: "apply",
14348 value: function apply() {
14349 this.component.getItemsView().activateNextItem(true);
14350 }
14351 }]);
14352 return NavigateUp;
14353 }(_commandBase.default);
14354
14355 exports.NavigateUp = NavigateUp;
14356 var _default = NavigateUp;
14357 exports.default = _default;
14358
14359 /***/ }),
14360 /* 736 */
14361 /***/ (function(module, exports, __webpack_require__) {
14362
14363 "use strict";
14364
14365
14366 var _interopRequireDefault = __webpack_require__(0);
14367
14368 var _Object$defineProperty = __webpack_require__(1);
14369
14370 _Object$defineProperty(exports, "__esModule", {
14371 value: true
14372 });
14373
14374 exports.default = void 0;
14375
14376 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14377
14378 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14379
14380 var _get2 = _interopRequireDefault(__webpack_require__(26));
14381
14382 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14383
14384 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14385
14386 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14387
14388 var _default = /*#__PURE__*/function (_elementorModules$Vie) {
14389 (0, _inherits2.default)(_default, _elementorModules$Vie);
14390
14391 var _super = (0, _createSuper2.default)(_default);
14392
14393 function _default() {
14394 (0, _classCallCheck2.default)(this, _default);
14395 return _super.apply(this, arguments);
14396 }
14397
14398 (0, _createClass2.default)(_default, [{
14399 key: "addPopupPlugin",
14400 value: function addPopupPlugin() {
14401 var counter = 0;
14402
14403 jQuery.fn.elementorConnect = function (options) {
14404 var settings = jQuery.extend({
14405 // These are the defaults.
14406 success: function success() {
14407 return location.reload();
14408 },
14409 error: function error() {
14410 elementor.notifications.showToast({
14411 message: elementor.translate('connect_error')
14412 });
14413 }
14414 }, options);
14415 this.each(function () {
14416 counter++;
14417 var $this = jQuery(this),
14418 callbackId = 'cb' + counter;
14419 $this.attr({
14420 target: '_blank',
14421 href: $this.attr('href') + '&mode=popup&callback_id=' + callbackId
14422 });
14423 elementorCommon.elements.$window.on('elementor/connect/success/' + callbackId, settings.success).on('elementor/connect/error/' + callbackId, settings.error);
14424 });
14425 return this;
14426 };
14427 }
14428 }, {
14429 key: "getDefaultSettings",
14430 value: function getDefaultSettings() {
14431 return {
14432 selectors: {
14433 connectButton: '#elementor-template-library-connect__button'
14434 }
14435 };
14436 }
14437 }, {
14438 key: "getDefaultElements",
14439 value: function getDefaultElements() {
14440 return {
14441 $connectButton: jQuery(this.getSettings('selectors.connectButton'))
14442 };
14443 }
14444 }, {
14445 key: "applyPopup",
14446 value: function applyPopup() {
14447 this.elements.$connectButton.elementorConnect();
14448 }
14449 }, {
14450 key: "onInit",
14451 value: function onInit() {
14452 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
14453 this.addPopupPlugin();
14454 this.applyPopup();
14455 }
14456 }]);
14457 return _default;
14458 }(elementorModules.ViewModule);
14459
14460 exports.default = _default;
14461
14462 /***/ }),
14463 /* 737 */
14464 /***/ (function(module, exports, __webpack_require__) {
14465
14466 "use strict";
14467
14468
14469 var _interopRequireWildcard = __webpack_require__(34);
14470
14471 var _interopRequireDefault = __webpack_require__(0);
14472
14473 var _Object$defineProperty = __webpack_require__(1);
14474
14475 _Object$defineProperty(exports, "__esModule", {
14476 value: true
14477 });
14478
14479 exports.default = void 0;
14480
14481 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14482
14483 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14484
14485 var _backwardsCompatibility = _interopRequireDefault(__webpack_require__(738));
14486
14487 var _commandBase = _interopRequireDefault(__webpack_require__(23));
14488
14489 var _commandInternalBase = _interopRequireDefault(__webpack_require__(204));
14490
14491 var _commandData = _interopRequireDefault(__webpack_require__(314));
14492
14493 var _commands = _interopRequireDefault(__webpack_require__(355));
14494
14495 var _commandsInternal = _interopRequireDefault(__webpack_require__(739));
14496
14497 var _componentBase = _interopRequireDefault(__webpack_require__(87));
14498
14499 var _componentModalBase = _interopRequireDefault(__webpack_require__(290));
14500
14501 var _components = _interopRequireDefault(__webpack_require__(740));
14502
14503 var _data = _interopRequireDefault(__webpack_require__(636));
14504
14505 var _hookBreak = _interopRequireDefault(__webpack_require__(641));
14506
14507 var _hooks = _interopRequireDefault(__webpack_require__(741));
14508
14509 var _routes = _interopRequireDefault(__webpack_require__(744));
14510
14511 var _shortcuts = _interopRequireDefault(__webpack_require__(745));
14512
14513 var hookData = _interopRequireWildcard(__webpack_require__(746));
14514
14515 var hookUI = _interopRequireWildcard(__webpack_require__(748));
14516
14517 /* Alphabetical order */
14518 var API = /*#__PURE__*/function () {
14519 /**
14520 * Function constructor().
14521 *
14522 * Create's 'elementor' api.
14523 */
14524 function API() {
14525 (0, _classCallCheck2.default)(this, API);
14526 window.$e = this;
14527 this.components = new _components.default();
14528 this.commands = new _commands.default();
14529 this.commandsInternal = new _commandsInternal.default();
14530 this.hooks = new _hooks.default();
14531 this.routes = new _routes.default();
14532 this.shortcuts = new _shortcuts.default(jQuery(window));
14533 this.data = new _data.default();
14534 this.modules = {
14535 CommandBase: _commandBase.default,
14536 CommandInternalBase: _commandInternalBase.default,
14537 CommandData: _commandData.default,
14538 ComponentBase: _componentBase.default,
14539 ComponentModalBase: _componentModalBase.default,
14540 HookBreak: _hookBreak.default,
14541 hookData: hookData,
14542 hookUI: hookUI
14543 }; // Backwards compatibility should be last, in order to handle others.
14544
14545 this.bc = new _backwardsCompatibility.default();
14546 }
14547 /**
14548 * Function run().
14549 *
14550 * Alias of `$e.commands.run()`.
14551 *
14552 * @param {string} command
14553 * @param [args={}]
14554 *
14555 * @returns {*}
14556 */
14557
14558
14559 (0, _createClass2.default)(API, [{
14560 key: "run",
14561 value: function run(command) {
14562 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14563 return $e.commands.run(command, args);
14564 }
14565 /**
14566 * Function internal().
14567 *
14568 * Alias of `$e.commandsInternal.run()`.
14569 *
14570 * @param {string} command
14571 * @param [args={}]
14572 *
14573 * @returns {boolean}
14574 */
14575
14576 }, {
14577 key: "internal",
14578 value: function internal(command) {
14579 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14580 return $e.commandsInternal.run(command, args);
14581 }
14582 /**
14583 * Function route().
14584 *
14585 * Alias of `$e.routes.to()`.
14586 *
14587 * @param {string} route
14588 * @param [args={}]
14589 */
14590
14591 }, {
14592 key: "route",
14593 value: function route(_route) {
14594 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14595 return $e.routes.to(_route, args);
14596 } // TODO: shortcut();
14597
14598 }]);
14599 return API;
14600 }();
14601
14602 exports.default = API;
14603
14604 /***/ }),
14605 /* 738 */
14606 /***/ (function(module, exports, __webpack_require__) {
14607
14608 "use strict";
14609
14610
14611 var _interopRequireDefault = __webpack_require__(0);
14612
14613 var _Object$defineProperty = __webpack_require__(1);
14614
14615 _Object$defineProperty(exports, "__esModule", {
14616 value: true
14617 });
14618
14619 exports.default = void 0;
14620
14621 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14622
14623 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14624
14625 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14626
14627 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14628
14629 var _componentBase = _interopRequireDefault(__webpack_require__(87));
14630
14631 var BackwardsCompatibility = /*#__PURE__*/function () {
14632 function BackwardsCompatibility() {
14633 (0, _classCallCheck2.default)(this, BackwardsCompatibility);
14634 }
14635
14636 (0, _createClass2.default)(BackwardsCompatibility, [{
14637 key: "ensureTab",
14638 value: function ensureTab(namespace, tabSlug) {
14639 var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
14640 var component = $e.components.get(namespace);
14641
14642 if (!component) {
14643 var Component = /*#__PURE__*/function (_ComponentBase) {
14644 (0, _inherits2.default)(Component, _ComponentBase);
14645
14646 var _super = (0, _createSuper2.default)(Component);
14647
14648 function Component() {
14649 (0, _classCallCheck2.default)(this, Component);
14650 return _super.apply(this, arguments);
14651 }
14652
14653 (0, _createClass2.default)(Component, [{
14654 key: "getNamespace",
14655 value: function getNamespace() {
14656 return namespace;
14657 }
14658 }, {
14659 key: "renderTab",
14660 value: function renderTab(tab) {
14661 elementor.getPanelView().setPage(page).activateTab(tab);
14662 }
14663 }]);
14664 return Component;
14665 }(_componentBase.default);
14666
14667 component = $e.components.register(new Component());
14668 }
14669
14670 if (!component.hasTab(tabSlug) && elementor.config.tabs[tabSlug]) {
14671 component.addTab(tabSlug, {
14672 title: elementor.config.tabs[tabSlug]
14673 });
14674 }
14675 }
14676 }]);
14677 return BackwardsCompatibility;
14678 }();
14679
14680 exports.default = BackwardsCompatibility;
14681
14682 /***/ }),
14683 /* 739 */
14684 /***/ (function(module, exports, __webpack_require__) {
14685
14686 "use strict";
14687
14688
14689 var _interopRequireDefault = __webpack_require__(0);
14690
14691 var _Object$defineProperty = __webpack_require__(1);
14692
14693 _Object$defineProperty(exports, "__esModule", {
14694 value: true
14695 });
14696
14697 exports.default = void 0;
14698
14699 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14700
14701 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14702
14703 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14704
14705 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14706
14707 var _commands = _interopRequireDefault(__webpack_require__(355));
14708
14709 var CommandsInternal = /*#__PURE__*/function (_Commands) {
14710 (0, _inherits2.default)(CommandsInternal, _Commands);
14711
14712 var _super = (0, _createSuper2.default)(CommandsInternal);
14713
14714 function CommandsInternal() {
14715 (0, _classCallCheck2.default)(this, CommandsInternal);
14716 return _super.apply(this, arguments);
14717 }
14718
14719 (0, _createClass2.default)(CommandsInternal, [{
14720 key: "error",
14721 value: function error(message) {
14722 throw Error('Commands internal: ' + message);
14723 }
14724 }]);
14725 return CommandsInternal;
14726 }(_commands.default);
14727
14728 exports.default = CommandsInternal;
14729
14730 /***/ }),
14731 /* 740 */
14732 /***/ (function(module, exports, __webpack_require__) {
14733
14734 "use strict";
14735
14736
14737 var _interopRequireDefault = __webpack_require__(0);
14738
14739 var _Object$defineProperty = __webpack_require__(1);
14740
14741 _Object$defineProperty(exports, "__esModule", {
14742 value: true
14743 });
14744
14745 exports.default = void 0;
14746
14747 var _keys = _interopRequireDefault(__webpack_require__(25));
14748
14749 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14750
14751 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14752
14753 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14754
14755 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14756
14757 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
14758 (0, _inherits2.default)(_default, _elementorModules$Mod);
14759
14760 var _super = (0, _createSuper2.default)(_default);
14761
14762 function _default() {
14763 var _this;
14764
14765 (0, _classCallCheck2.default)(this, _default);
14766
14767 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14768 args[_key] = arguments[_key];
14769 }
14770
14771 _this = _super.call.apply(_super, [this].concat(args));
14772 _this.components = {};
14773 _this.activeComponents = {};
14774 return _this;
14775 }
14776
14777 (0, _createClass2.default)(_default, [{
14778 key: "getAll",
14779 value: function getAll() {
14780 return (0, _keys.default)(this.components).sort();
14781 }
14782 }, {
14783 key: "register",
14784 value: function register(component) {
14785 if (this.components[component.getNamespace()]) {
14786 return;
14787 }
14788
14789 component.registerAPI();
14790 this.components[component.getNamespace()] = component;
14791 return component;
14792 }
14793 /**
14794 * @returns {Component}
14795 */
14796
14797 }, {
14798 key: "get",
14799 value: function get(id) {
14800 return this.components[id];
14801 }
14802 }, {
14803 key: "getActive",
14804 value: function getActive() {
14805 return this.activeComponents;
14806 }
14807 }, {
14808 key: "activate",
14809 value: function activate(namespace) {
14810 // Add as last.
14811 this.inactivate(namespace);
14812 this.activeComponents[namespace] = true;
14813 }
14814 }, {
14815 key: "inactivate",
14816 value: function inactivate(namespace) {
14817 delete this.activeComponents[namespace];
14818 }
14819 }, {
14820 key: "isActive",
14821 value: function isActive(namespace) {
14822 return !!this.activeComponents[namespace];
14823 }
14824 }]);
14825 return _default;
14826 }(elementorModules.Module);
14827
14828 exports.default = _default;
14829
14830 /***/ }),
14831 /* 741 */
14832 /***/ (function(module, exports, __webpack_require__) {
14833
14834 "use strict";
14835
14836
14837 var _interopRequireDefault = __webpack_require__(0);
14838
14839 var _Object$defineProperty = __webpack_require__(1);
14840
14841 _Object$defineProperty(exports, "__esModule", {
14842 value: true
14843 });
14844
14845 exports.default = void 0;
14846
14847 __webpack_require__(24);
14848
14849 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14850
14851 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14852
14853 var _defineProperty2 = _interopRequireDefault(__webpack_require__(27));
14854
14855 var _data = _interopRequireDefault(__webpack_require__(742));
14856
14857 var _ui = _interopRequireDefault(__webpack_require__(743));
14858
14859 var Hooks = /*#__PURE__*/function () {
14860 function Hooks() {
14861 (0, _classCallCheck2.default)(this, Hooks);
14862 (0, _defineProperty2.default)(this, "data", new _data.default());
14863 (0, _defineProperty2.default)(this, "ui", new _ui.default());
14864 }
14865
14866 (0, _createClass2.default)(Hooks, [{
14867 key: "activate",
14868
14869 /**
14870 * Function activate().
14871 *
14872 * Activate all hooks.
14873 */
14874 value: function activate() {
14875 this.getTypes().forEach(function (hooksType) {
14876 hooksType.activate();
14877 });
14878 }
14879 /**
14880 * Function deactivate().
14881 *
14882 * Deactivate all hooks.
14883 */
14884
14885 }, {
14886 key: "deactivate",
14887 value: function deactivate() {
14888 this.getTypes().forEach(function (hooksType) {
14889 hooksType.deactivate();
14890 });
14891 }
14892 }, {
14893 key: "getAll",
14894 value: function getAll() {
14895 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
14896 var result = {};
14897 this.getTypes().forEach(function (hooksType) {
14898 result[hooksType.getType()] = hooksType.getAll(flat);
14899 });
14900 return result;
14901 }
14902 }, {
14903 key: "getTypes",
14904 value: function getTypes() {
14905 return [this.data, this.ui];
14906 }
14907 }, {
14908 key: "getType",
14909 value: function getType(type) {
14910 return this.getTypes().find(function (hooks) {
14911 return type === hooks.getType();
14912 });
14913 }
14914 /**
14915 * Function register().
14916 *
14917 * Register hook.
14918 *
14919 * @param {string} type
14920 * @param {string} event
14921 * @param {HookBase} instance
14922 *
14923 * @returns {{}} Created callback
14924 */
14925
14926 }, {
14927 key: "register",
14928 value: function register(type, event, instance) {
14929 return this.getType(type).register(event, instance);
14930 }
14931 /**
14932 * Function run().
14933 *
14934 * Run's a hook.
14935 *
14936 * @param {string} type
14937 * @param {string} event
14938 * @param {string} command
14939 * @param {{}} args
14940 * @param {*} result
14941 *
14942 * @returns {boolean}
14943 */
14944
14945 }, {
14946 key: "run",
14947 value: function run(type, event, command, args) {
14948 var result = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
14949 return this.getType(type).run(event, command, args, result);
14950 }
14951 /**
14952 * Function registerDataAfter().
14953 *
14954 * Register data hook that's run after the command.
14955 *
14956 * @param {HookBase} instance
14957 *
14958 * @returns {{}}
14959 */
14960
14961 }, {
14962 key: "registerDataAfter",
14963 value: function registerDataAfter(instance) {
14964 return this.register('data', 'after', instance);
14965 }
14966 /**
14967 * Function registerDataCatch().
14968 *
14969 * Register data hook that's run when the command fails.
14970 *
14971 * @param {HookBase} instance
14972 *
14973 * @returns {{}}
14974 */
14975
14976 }, {
14977 key: "registerDataCatch",
14978 value: function registerDataCatch(instance) {
14979 return this.register('data', 'catch', instance);
14980 }
14981 /**
14982 * Function registerDataDependency().
14983 *
14984 * Register data hook that's run before the command as dependency.
14985 *
14986 * @param {HookBase} instance
14987 *
14988 * @returns {{}}
14989 */
14990
14991 }, {
14992 key: "registerDataDependency",
14993 value: function registerDataDependency(instance) {
14994 return this.register('data', 'dependency', instance);
14995 }
14996 /**
14997 * Function registerUIAfter().
14998 *
14999 * Register UI hook that's run after the commands run.
15000 *
15001 * @param {HookBase} instance
15002 *
15003 * @returns {{}}
15004 */
15005
15006 }, {
15007 key: "registerUIAfter",
15008 value: function registerUIAfter(instance) {
15009 return this.register('ui', 'after', instance);
15010 }
15011 /**
15012 * Function registerUICatch().
15013 *
15014 * Register UI hook that's run when the command fails.
15015 *
15016 * @param {HookBase} instance
15017 *
15018 * @returns {{}}
15019 */
15020
15021 }, {
15022 key: "registerUICatch",
15023 value: function registerUICatch(instance) {
15024 return this.register('ui', 'catch', instance);
15025 }
15026 /**
15027 * Function registerUIBefore().
15028 *
15029 * Register UI hook that's run before the command.
15030 *
15031 * @param {HookBase} instance
15032 *
15033 * @returns {{}}
15034 */
15035
15036 }, {
15037 key: "registerUIBefore",
15038 value: function registerUIBefore(instance) {
15039 return this.register('ui', 'before', instance);
15040 }
15041 /**
15042 * Function runDataAfter().
15043 *
15044 * Run data hook that's run after the command.
15045 *
15046 * @param {string} command
15047 * @param {{}} args
15048 * @param {*} result
15049 *
15050 * @returns {boolean}
15051 */
15052
15053 }, {
15054 key: "runDataAfter",
15055 value: function runDataAfter(command, args, result) {
15056 return this.run('data', 'after', command, args, result);
15057 }
15058 /**
15059 * Function runDataCatch().
15060 *
15061 * Run data hook that's run when the command fails.
15062 *
15063 * @param {string} command
15064 * @param {{}} args
15065 * @param {*} error
15066 *
15067 * @returns {boolean}
15068 */
15069
15070 }, {
15071 key: "runDataCatch",
15072 value: function runDataCatch(command, args, error) {
15073 return this.run('data', 'catch', command, args, error);
15074 }
15075 /**
15076 * Function runDataDependency().
15077 *
15078 * Run data hook that's run before the command as dependency.
15079 *
15080 * @param {string} command
15081 * @param {{}} args
15082 *
15083 * @returns {boolean}
15084 */
15085
15086 }, {
15087 key: "runDataDependency",
15088 value: function runDataDependency(command, args) {
15089 return this.run('data', 'dependency', command, args);
15090 }
15091 /**
15092 * Function runUIAfter().
15093 *
15094 * Run UI hook that's run after the commands run.
15095 *
15096 * @param {string} command
15097 * @param {{}} args
15098 * @param {*} result
15099 *
15100 * @returns {boolean}
15101 */
15102
15103 }, {
15104 key: "runUIAfter",
15105 value: function runUIAfter(command, args, result) {
15106 return this.run('ui', 'after', command, args, result);
15107 }
15108 /**
15109 * Function runUICatch().
15110 *
15111 * Run UI hook that's run when the command fails.
15112 *
15113 * @param {string} command
15114 * @param {{}} args
15115 * @param {*} e
15116 *
15117 * @returns {boolean}
15118 */
15119
15120 }, {
15121 key: "runUICatch",
15122 value: function runUICatch(command, args, e) {
15123 return this.run('ui', 'catch', command, args, e);
15124 }
15125 /**
15126 * Function runUIBefore().
15127 *
15128 * Run UI hook that's run before the command.
15129 *
15130 * @param {string} command
15131 * @param {{}} args
15132 *
15133 * @returns {boolean}
15134 */
15135
15136 }, {
15137 key: "runUIBefore",
15138 value: function runUIBefore(command, args) {
15139 return this.run('ui', 'before', command, args);
15140 }
15141 }]);
15142 return Hooks;
15143 }();
15144
15145 exports.default = Hooks;
15146
15147 /***/ }),
15148 /* 742 */
15149 /***/ (function(module, exports, __webpack_require__) {
15150
15151 "use strict";
15152
15153
15154 var _interopRequireDefault = __webpack_require__(0);
15155
15156 var _Object$defineProperty = __webpack_require__(1);
15157
15158 _Object$defineProperty(exports, "__esModule", {
15159 value: true
15160 });
15161
15162 exports.default = void 0;
15163
15164 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15165
15166 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15167
15168 var _get2 = _interopRequireDefault(__webpack_require__(26));
15169
15170 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
15171
15172 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15173
15174 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15175
15176 var _base = _interopRequireDefault(__webpack_require__(416));
15177
15178 var Data = /*#__PURE__*/function (_HooksBase) {
15179 (0, _inherits2.default)(Data, _HooksBase);
15180
15181 var _super = (0, _createSuper2.default)(Data);
15182
15183 function Data() {
15184 var _this;
15185
15186 (0, _classCallCheck2.default)(this, Data);
15187
15188 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15189 args[_key] = arguments[_key];
15190 }
15191
15192 _this = _super.call.apply(_super, [this].concat(args));
15193 _this.callbacks.dependency = {};
15194 _this.depth.dependency = {};
15195 return _this;
15196 }
15197
15198 (0, _createClass2.default)(Data, [{
15199 key: "getType",
15200 value: function getType() {
15201 return 'data';
15202 }
15203 }, {
15204 key: "runCallback",
15205 value: function runCallback(event, callback, args, result) {
15206 switch (event) {
15207 case 'dependency':
15208 {
15209 // If callback returns false and its dependency, then 'Hook-Break'.
15210 if (!callback.callback(args)) {
15211 this.depth[event][callback.id]--; // Throw custom break to be catch by the base for 'Safe' exit.
15212
15213 throw new $e.modules.HookBreak();
15214 }
15215
15216 return true;
15217 }
15218
15219 case 'catch':
15220 case 'after':
15221 {
15222 /**
15223 * When handling HOOK which is data after (not breakable),
15224 * even the result of the callback is negative, it is required to return positive,
15225 * since result of runCallback determine if the callback succeeded.
15226 */
15227 return callback.callback(args, result) || 'after' === event;
15228 }
15229 }
15230
15231 return false;
15232 }
15233 }, {
15234 key: "shouldRun",
15235 value: function shouldRun(callbacks) {
15236 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "shouldRun", this).call(this, callbacks) && elementor.documents.getCurrent().history.getActive();
15237 }
15238 }, {
15239 key: "onRun",
15240 value: function onRun(command, args, event) {
15241 if (!$e.devTools) {
15242 return;
15243 }
15244
15245 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
15246 }
15247 }, {
15248 key: "onCallback",
15249 value: function onCallback(command, args, event, id) {
15250 if (!$e.devTools) {
15251 return;
15252 }
15253
15254 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
15255 }
15256 }]);
15257 return Data;
15258 }(_base.default);
15259
15260 exports.default = Data;
15261
15262 /***/ }),
15263 /* 743 */
15264 /***/ (function(module, exports, __webpack_require__) {
15265
15266 "use strict";
15267
15268
15269 var _interopRequireDefault = __webpack_require__(0);
15270
15271 var _Object$defineProperty = __webpack_require__(1);
15272
15273 _Object$defineProperty(exports, "__esModule", {
15274 value: true
15275 });
15276
15277 exports.default = void 0;
15278
15279 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15280
15281 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15282
15283 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15284
15285 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15286
15287 var _base = _interopRequireDefault(__webpack_require__(416));
15288
15289 var Ui = /*#__PURE__*/function (_HooksBase) {
15290 (0, _inherits2.default)(Ui, _HooksBase);
15291
15292 var _super = (0, _createSuper2.default)(Ui);
15293
15294 function Ui() {
15295 var _this;
15296
15297 (0, _classCallCheck2.default)(this, Ui);
15298
15299 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15300 args[_key] = arguments[_key];
15301 }
15302
15303 _this = _super.call.apply(_super, [this].concat(args));
15304 _this.callbacks.before = {};
15305 _this.depth.before = {};
15306 return _this;
15307 }
15308
15309 (0, _createClass2.default)(Ui, [{
15310 key: "getType",
15311 value: function getType() {
15312 return 'ui';
15313 }
15314 }, {
15315 key: "runCallback",
15316 value: function runCallback(event, callback, args, result) {
15317 switch (event) {
15318 case 'before':
15319 callback.callback(args);
15320 break;
15321
15322 case 'catch':
15323 case 'after':
15324 callback.callback(args, result);
15325 break;
15326
15327 default:
15328 return false;
15329 }
15330
15331 return true;
15332 }
15333 }, {
15334 key: "onRun",
15335 value: function onRun(command, args, event) {
15336 if (!$e.devTools) {
15337 return;
15338 }
15339
15340 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
15341 }
15342 }, {
15343 key: "onCallback",
15344 value: function onCallback(command, args, event, id) {
15345 if (!$e.devTools) {
15346 return;
15347 }
15348
15349 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
15350 }
15351 }]);
15352 return Ui;
15353 }(_base.default);
15354
15355 exports.default = Ui;
15356
15357 /***/ }),
15358 /* 744 */
15359 /***/ (function(module, exports, __webpack_require__) {
15360
15361 "use strict";
15362
15363
15364 var _interopRequireDefault = __webpack_require__(0);
15365
15366 var _Object$defineProperty = __webpack_require__(1);
15367
15368 _Object$defineProperty(exports, "__esModule", {
15369 value: true
15370 });
15371
15372 exports.default = void 0;
15373
15374 __webpack_require__(82);
15375
15376 var _keys = _interopRequireDefault(__webpack_require__(25));
15377
15378 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15379
15380 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15381
15382 var _get2 = _interopRequireDefault(__webpack_require__(26));
15383
15384 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
15385
15386 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15387
15388 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15389
15390 var _commands = _interopRequireDefault(__webpack_require__(355));
15391
15392 var Routes = /*#__PURE__*/function (_Commands) {
15393 (0, _inherits2.default)(Routes, _Commands);
15394
15395 var _super = (0, _createSuper2.default)(Routes);
15396
15397 function Routes() {
15398 var _this;
15399
15400 (0, _classCallCheck2.default)(this, Routes);
15401
15402 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15403 args[_key] = arguments[_key];
15404 }
15405
15406 _this = _super.call.apply(_super, [this].concat(args));
15407 _this.savedStates = {};
15408 _this.historyPerComponent = {};
15409 return _this;
15410 }
15411
15412 (0, _createClass2.default)(Routes, [{
15413 key: "refreshContainer",
15414 value: function refreshContainer(container) {
15415 var currentRoute = this.getCurrent(container),
15416 currentArgs = this.getCurrentArgs(container);
15417 this.clearCurrent(container);
15418 this.to(currentRoute, currentArgs);
15419 }
15420 }, {
15421 key: "getHistory",
15422 value: function getHistory() {
15423 var namespaceRoot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
15424
15425 if (namespaceRoot) {
15426 return this.historyPerComponent[namespaceRoot] || [];
15427 }
15428
15429 return this.historyPerComponent;
15430 }
15431 }, {
15432 key: "clearHistory",
15433 value: function clearHistory(namespaceRoot) {
15434 delete this.historyPerComponent[namespaceRoot];
15435 }
15436 }, {
15437 key: "clearCurrent",
15438 value: function clearCurrent(container) {
15439 var route = this.current[container];
15440
15441 if (!route) {
15442 return;
15443 }
15444
15445 delete this.current[container];
15446 delete this.currentArgs[container];
15447 this.getComponent(route).onCloseRoute(route);
15448 }
15449 }, {
15450 key: "clear",
15451 value: function clear() {
15452 var _this2 = this;
15453
15454 (0, _keys.default)(this.current).forEach(function (container) {
15455 return _this2.clearCurrent(container);
15456 });
15457 }
15458 }, {
15459 key: "saveState",
15460 value: function saveState(container) {
15461 this.savedStates[container] = {
15462 route: this.current[container],
15463 args: this.currentArgs[container]
15464 };
15465 return this;
15466 }
15467 }, {
15468 key: "restoreState",
15469 value: function restoreState(container) {
15470 if (!this.savedStates[container]) {
15471 return false;
15472 }
15473
15474 this.to(this.savedStates[container].route, this.savedStates[container].args);
15475 return true;
15476 }
15477 }, {
15478 key: "beforeRun",
15479 value: function beforeRun(route, args) {
15480 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "beforeRun", this).call(this, route, args)) {
15481 return false;
15482 }
15483
15484 if (this.is(route, args) && !args.refresh) {
15485 return false;
15486 }
15487
15488 var component = this.getComponent(route),
15489 container = component.getRootContainer(),
15490 oldRoute = this.current[container];
15491
15492 if (oldRoute) {
15493 this.getComponent(oldRoute).onCloseRoute(oldRoute);
15494 }
15495
15496 if (!component.isOpen || args.reOpen) {
15497 component.isOpen = component.open(args);
15498 }
15499
15500 return component.isOpen;
15501 }
15502 }, {
15503 key: "to",
15504 value: function to(route, args) {
15505 this.run(route, args);
15506 var namespaceRoot = this.getComponent(route).getRootContainer();
15507
15508 if (!this.historyPerComponent[namespaceRoot]) {
15509 this.historyPerComponent[namespaceRoot] = [];
15510 }
15511
15512 this.historyPerComponent[namespaceRoot].push({
15513 route: route,
15514 args: args
15515 });
15516 }
15517 }, {
15518 key: "back",
15519 value: function back(namespaceRoot) {
15520 var history = this.getHistory(namespaceRoot); // Remove current;
15521
15522 history.pop();
15523 var last = history.pop();
15524
15525 if (!last) {
15526 return;
15527 }
15528
15529 this.to(last.route, last.args);
15530 } // Don't use the event object.
15531
15532 }, {
15533 key: "runShortcut",
15534 value: function runShortcut(command) {
15535 this.to(command);
15536 } // Don't clear current route.
15537
15538 }, {
15539 key: "afterRun",
15540 value: function afterRun(route, args) {
15541 this.getComponent(route).onRoute(route, args);
15542 }
15543 }, {
15544 key: "is",
15545 value: function is(route) {
15546 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15547
15548 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "is", this).call(this, route)) {
15549 return false;
15550 }
15551
15552 var container = this.getComponent(route).getRootContainer();
15553 return _.isEqual(args, this.currentArgs[container]);
15554 }
15555 }, {
15556 key: "isPartOf",
15557 value: function isPartOf(route) {
15558 /**
15559 * Check against current command hierarchically.
15560 * For example `is( 'panel' )` will be true for `panel/elements`
15561 * `is( 'panel/editor' )` will be true for `panel/editor/style`
15562 */
15563 var parts = route.split('/'),
15564 container = parts[0],
15565 toCheck = [],
15566 currentParts = this.current[container] ? this.current[container].split('/') : [];
15567 var match = false;
15568 currentParts.forEach(function (part) {
15569 toCheck.push(part);
15570
15571 if (toCheck.join('/') === route) {
15572 match = true;
15573 }
15574 });
15575 return match;
15576 }
15577 }, {
15578 key: "error",
15579 value: function error(message) {
15580 throw Error('Routes: ' + message);
15581 }
15582 }]);
15583 return Routes;
15584 }(_commands.default);
15585
15586 exports.default = Routes;
15587
15588 /***/ }),
15589 /* 745 */
15590 /***/ (function(module, exports, __webpack_require__) {
15591
15592 "use strict";
15593
15594
15595 var _interopRequireDefault = __webpack_require__(0);
15596
15597 var _Object$defineProperty = __webpack_require__(1);
15598
15599 _Object$defineProperty(exports, "__esModule", {
15600 value: true
15601 });
15602
15603 exports.default = void 0;
15604
15605 var _keys = _interopRequireDefault(__webpack_require__(25));
15606
15607 __webpack_require__(61);
15608
15609 __webpack_require__(82);
15610
15611 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15612
15613 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15614
15615 var _environment = _interopRequireDefault(__webpack_require__(272));
15616
15617 var Shortcuts = /*#__PURE__*/function () {
15618 function Shortcuts($window) {
15619 (0, _classCallCheck2.default)(this, Shortcuts);
15620 this.specialKeys = {
15621 13: 'enter',
15622 27: 'esc',
15623 38: 'up',
15624 40: 'down',
15625 46: 'del',
15626 191: '?'
15627 };
15628 this.component = '';
15629 this.handlers = {};
15630 this.bindListener($window);
15631 }
15632
15633 (0, _createClass2.default)(Shortcuts, [{
15634 key: "bindListener",
15635 value: function bindListener($window) {
15636 var _this = this;
15637
15638 $window.on('keydown', function (event) {
15639 return _this.handle(event);
15640 });
15641 }
15642 }, {
15643 key: "getAll",
15644 value: function getAll() {
15645 var shortcuts = {};
15646 jQuery.each(this.handlers, function (key, handler) {
15647 jQuery.each(handler, function (index, config) {
15648 shortcuts[config.command] = key;
15649 });
15650 });
15651 return shortcuts;
15652 }
15653 /**
15654 * @param shortcuts
15655 * @param {{callback: (function(): boolean), scopes: [void]}} args
15656 * @param {callback} args.callback Required
15657 * @param {string} args.component Optional
15658 * @param {callback} args.dependency Optional
15659 * @param {array} args.exclude Optional
15660 * @param {bool} args.allowAltKey Optional
15661 */
15662
15663 }, {
15664 key: "register",
15665 value: function register(shortcuts, args) {
15666 var _this2 = this;
15667
15668 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15669 if (!_this2.handlers[shortcut]) {
15670 _this2.handlers[shortcut] = [];
15671 }
15672
15673 _this2.handlers[shortcut].push(args);
15674 });
15675 }
15676 }, {
15677 key: "unregister",
15678 value: function unregister(shortcuts, args) {
15679 var _this3 = this;
15680
15681 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15682 _this3.handlers[shortcut].forEach(function (index, handler) {
15683 if (args === handler) {
15684 delete _this3.handlers[shortcut][index];
15685 }
15686 });
15687 });
15688 }
15689 }, {
15690 key: "handle",
15691 value: function handle(event) {
15692 var handlers = this.getHandlersByPriority(event);
15693
15694 if (!handlers) {
15695 return;
15696 }
15697
15698 var filteredHandlers = handlers.filter(function (handler) {
15699 if (handler.exclude && -1 !== handler.exclude.indexOf('input')) {
15700 var $target = jQuery(event.target);
15701
15702 if ($target.is(':input, .elementor-input') || $target.closest('[contenteditable="true"]').length) {
15703 return false;
15704 }
15705 }
15706
15707 if (handler.dependency && !handler.dependency(event)) {
15708 return false;
15709 } // Fix for some keyboard sources that consider alt key as ctrl key
15710
15711
15712 if (!handler.allowAltKey && event.altKey) {
15713 return false;
15714 }
15715
15716 return true;
15717 });
15718
15719 if (!filteredHandlers.length) {
15720 return;
15721 }
15722
15723 if (1 < filteredHandlers.length && elementorCommon.config.isDebug) {
15724 elementorCommon.helpers.consoleWarn('Multiple handlers for shortcut.', filteredHandlers, event);
15725 }
15726
15727 event.preventDefault();
15728 filteredHandlers[0].callback(event);
15729 }
15730 }, {
15731 key: "isControlEvent",
15732 value: function isControlEvent(event) {
15733 return event[_environment.default.mac ? 'metaKey' : 'ctrlKey'];
15734 }
15735 }, {
15736 key: "getEventShortcut",
15737 value: function getEventShortcut(event) {
15738 var shortcut = [];
15739
15740 if (event.altKey) {
15741 shortcut.push('alt');
15742 }
15743
15744 if (this.isControlEvent(event)) {
15745 shortcut.push('ctrl');
15746 }
15747
15748 if (event.shiftKey) {
15749 shortcut.push('shift');
15750 }
15751
15752 if (this.specialKeys[event.which]) {
15753 shortcut.push(this.specialKeys[event.which]);
15754 } else {
15755 shortcut.push(String.fromCharCode(event.which).toLowerCase());
15756 }
15757
15758 return shortcut.join('+');
15759 }
15760 }, {
15761 key: "isActiveScope",
15762 value: function isActiveScope(scopes) {
15763 var activeComponents = (0, _keys.default)($e.components.activeComponents),
15764 activeComponent = activeComponents[activeComponents.length - 1],
15765 component = $e.components.get(activeComponent);
15766
15767 if (!component) {
15768 return false;
15769 }
15770
15771 var namespace = component.getNamespace(),
15772 namespaceRoot = component.getRootContainer();
15773 var filteredByNamespace = scopes.some(function (scope) {
15774 return namespace === scope;
15775 });
15776
15777 if (filteredByNamespace) {
15778 return true;
15779 } // Else filter by namespaceRoot.
15780
15781
15782 return scopes.some(function (scope) {
15783 return namespaceRoot === scope;
15784 });
15785 }
15786 }, {
15787 key: "getHandlersByPriority",
15788 value: function getHandlersByPriority(event) {
15789 var _this4 = this;
15790
15791 var handlers = this.handlers[this.getEventShortcut(event)];
15792
15793 if (!handlers) {
15794 return false;
15795 } // TODO: Prioritize current scope before roo scope.
15796
15797
15798 var inCurrentScope = handlers.filter(function (handler) {
15799 return handler.scopes && _this4.isActiveScope(handler.scopes);
15800 });
15801
15802 if (inCurrentScope.length) {
15803 return inCurrentScope;
15804 }
15805
15806 var noScope = handlers.filter(function (handler) {
15807 return !handler.scopes;
15808 });
15809
15810 if (noScope.length) {
15811 return noScope;
15812 }
15813 }
15814 }]);
15815 return Shortcuts;
15816 }();
15817
15818 exports.default = Shortcuts;
15819
15820 /***/ }),
15821 /* 746 */
15822 /***/ (function(module, exports, __webpack_require__) {
15823
15824 "use strict";
15825
15826
15827 var _Object$defineProperty = __webpack_require__(1);
15828
15829 _Object$defineProperty(exports, "__esModule", {
15830 value: true
15831 });
15832
15833 _Object$defineProperty(exports, "After", {
15834 enumerable: true,
15835 get: function get() {
15836 return _after.After;
15837 }
15838 });
15839
15840 _Object$defineProperty(exports, "Base", {
15841 enumerable: true,
15842 get: function get() {
15843 return _base.Base;
15844 }
15845 });
15846
15847 _Object$defineProperty(exports, "Catch", {
15848 enumerable: true,
15849 get: function get() {
15850 return _catch.Catch;
15851 }
15852 });
15853
15854 _Object$defineProperty(exports, "Dependency", {
15855 enumerable: true,
15856 get: function get() {
15857 return _dependency.Dependency;
15858 }
15859 });
15860
15861 var _after = __webpack_require__(228);
15862
15863 var _base = __webpack_require__(289);
15864
15865 var _catch = __webpack_require__(747);
15866
15867 var _dependency = __webpack_require__(356);
15868
15869 /***/ }),
15870 /* 747 */
15871 /***/ (function(module, exports, __webpack_require__) {
15872
15873 "use strict";
15874
15875
15876 var _interopRequireDefault = __webpack_require__(0);
15877
15878 var _Object$defineProperty = __webpack_require__(1);
15879
15880 _Object$defineProperty(exports, "__esModule", {
15881 value: true
15882 });
15883
15884 exports.default = exports.Catch = void 0;
15885
15886 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15887
15888 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15889
15890 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15891
15892 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15893
15894 var _base = _interopRequireDefault(__webpack_require__(289));
15895
15896 var Catch = /*#__PURE__*/function (_Base) {
15897 (0, _inherits2.default)(Catch, _Base);
15898
15899 var _super = (0, _createSuper2.default)(Catch);
15900
15901 function Catch() {
15902 (0, _classCallCheck2.default)(this, Catch);
15903 return _super.apply(this, arguments);
15904 }
15905
15906 (0, _createClass2.default)(Catch, [{
15907 key: "register",
15908 value: function register() {
15909 $e.hooks.registerDataCatch(this);
15910 }
15911 }]);
15912 return Catch;
15913 }(_base.default);
15914
15915 exports.Catch = Catch;
15916 var _default = Catch;
15917 exports.default = _default;
15918
15919 /***/ }),
15920 /* 748 */
15921 /***/ (function(module, exports, __webpack_require__) {
15922
15923 "use strict";
15924
15925
15926 var _Object$defineProperty = __webpack_require__(1);
15927
15928 _Object$defineProperty(exports, "__esModule", {
15929 value: true
15930 });
15931
15932 _Object$defineProperty(exports, "After", {
15933 enumerable: true,
15934 get: function get() {
15935 return _after.After;
15936 }
15937 });
15938
15939 _Object$defineProperty(exports, "Base", {
15940 enumerable: true,
15941 get: function get() {
15942 return _base.Base;
15943 }
15944 });
15945
15946 _Object$defineProperty(exports, "Before", {
15947 enumerable: true,
15948 get: function get() {
15949 return _before.Before;
15950 }
15951 });
15952
15953 _Object$defineProperty(exports, "Catch", {
15954 enumerable: true,
15955 get: function get() {
15956 return _catch.Catch;
15957 }
15958 });
15959
15960 var _after = __webpack_require__(281);
15961
15962 var _base = __webpack_require__(327);
15963
15964 var _before = __webpack_require__(642);
15965
15966 var _catch = __webpack_require__(643);
15967
15968 /***/ })
15969 /******/ ]);
15970 //# sourceMappingURL=common.js.map