PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.4
Elementor Website Builder – more than just a page builder v3.0.4
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.0.4, at assets/js/common.js

15,652 lines 411.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.0.4 - 30-08-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 = 711);
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__(155);
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__(137);
148
149 var setPrototypeOf = __webpack_require__(135);
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__(107);
173
174 var getPrototypeOf = __webpack_require__(16);
175
176 var isNativeReflectConstruct = __webpack_require__(148);
177
178 var possibleConstructorReturn = __webpack_require__(170);
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__(31);
214 var hide = __webpack_require__(24);
215 var has = __webpack_require__(19);
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__(76)('wks');
301 var uid = __webpack_require__(59);
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 /* 12 */
316 /***/ (function(module, exports, __webpack_require__) {
317
318 var store = __webpack_require__(66)('wks');
319 var uid = __webpack_require__(67);
320 var Symbol = __webpack_require__(17).Symbol;
321 var USE_SYMBOL = typeof Symbol == 'function';
322
323 var $exports = module.exports = function (name) {
324 return store[name] || (store[name] =
325 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
326 };
327
328 $exports.store = store;
329
330
331 /***/ }),
332 /* 13 */
333 /***/ (function(module, exports, __webpack_require__) {
334
335 var isObject = __webpack_require__(9);
336 module.exports = function (it) {
337 if (!isObject(it)) throw TypeError(it + ' is not an object!');
338 return it;
339 };
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__(22)(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__(13);
357 var IE8_DOM_DEFINE = __webpack_require__(114);
358 var toPrimitive = __webpack_require__(74);
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__(157);
379
380 var _Object$setPrototypeOf = __webpack_require__(115);
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 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
396 var global = module.exports = typeof window != 'undefined' && window.Math == Math
397 ? window : typeof self != 'undefined' && self.Math == Math ? self
398 // eslint-disable-next-line no-new-func
399 : Function('return this')();
400 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
401
402
403 /***/ }),
404 /* 18 */
405 /***/ (function(module, exports, __webpack_require__) {
406
407 var isObject = __webpack_require__(30);
408 module.exports = function (it) {
409 if (!isObject(it)) throw TypeError(it + ' is not an object!');
410 return it;
411 };
412
413
414 /***/ }),
415 /* 19 */
416 /***/ (function(module, exports) {
417
418 var hasOwnProperty = {}.hasOwnProperty;
419 module.exports = function (it, key) {
420 return hasOwnProperty.call(it, key);
421 };
422
423
424 /***/ }),
425 /* 20 */
426 /***/ (function(module, exports, __webpack_require__) {
427
428 // to indexed object, toObject with fallback for non-array-like ES3 strings
429 var IObject = __webpack_require__(103);
430 var defined = __webpack_require__(65);
431 module.exports = function (it) {
432 return IObject(defined(it));
433 };
434
435
436 /***/ }),
437 /* 21 */
438 /***/ (function(module, exports, __webpack_require__) {
439
440 "use strict";
441
442
443 var _interopRequireDefault = __webpack_require__(0);
444
445 var _Object$defineProperty = __webpack_require__(1);
446
447 _Object$defineProperty(exports, "__esModule", {
448 value: true
449 });
450
451 exports.default = void 0;
452
453 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
454
455 var _regenerator = _interopRequireDefault(__webpack_require__(89));
456
457 __webpack_require__(145);
458
459 __webpack_require__(117);
460
461 __webpack_require__(72);
462
463 __webpack_require__(271);
464
465 var _promise = _interopRequireDefault(__webpack_require__(133));
466
467 var _isArray = _interopRequireDefault(__webpack_require__(81));
468
469 __webpack_require__(69);
470
471 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(90));
472
473 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
474
475 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
476
477 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
478
479 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
480
481 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
482
483 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
484
485 var _argsObject = _interopRequireDefault(__webpack_require__(223));
486
487 var CommandBase = /*#__PURE__*/function (_ArgsObject) {
488 (0, _inherits2.default)(CommandBase, _ArgsObject);
489
490 var _super = (0, _createSuper2.default)(CommandBase);
491
492 (0, _createClass2.default)(CommandBase, null, [{
493 key: "getInstanceType",
494 value: function getInstanceType() {
495 return 'CommandBase';
496 }
497 /**
498 * Current component.
499 *
500 * @type {Component}
501 */
502
503 }]);
504
505 /**
506 * Function constructor().
507 *
508 * Create Commands Base.
509 *
510 * @param [args={}]
511 * @param [commandsAPI={}]
512 */
513 function CommandBase(args) {
514 var _this;
515
516 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commands;
517 (0, _classCallCheck2.default)(this, CommandBase);
518 _this = _super.call(this, args); // Acknowledge self about which command it run.
519
520 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "component", void 0);
521 _this.currentCommand = commandsAPI.getCurrentLast(); // Assign instance of current component.
522
523 _this.component = commandsAPI.getComponent(_this.currentCommand); // Who ever need do something before without `super` the constructor can use `initialize` method.
524
525 _this.initialize(args); // Refresh args, maybe the changed via `initialize`.
526
527
528 args = _this.args; // Validate args before run.
529
530 _this.validateArgs(args);
531
532 return _this;
533 }
534 /**
535 * Function requireContainer().
536 *
537 * Validate `arg.container` & `arg.containers`.
538 *
539 * @param {{}} args
540 *
541 * @throws {Error}
542 */
543
544
545 (0, _createClass2.default)(CommandBase, [{
546 key: "requireContainer",
547 value: function requireContainer() {
548 var _this2 = this;
549
550 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
551
552 if (!args.container && !args.containers) {
553 throw Error('container or containers are required.');
554 }
555
556 if (args.container && args.containers) {
557 throw Error('container and containers cannot go together please select one of them.');
558 }
559
560 var containers = args.containers || [args.container];
561 containers.forEach(function (container) {
562 _this2.requireArgumentInstance('container', elementorModules.editor.Container, {
563 container: container
564 });
565 });
566 }
567 /**
568 * Function initialize().
569 *
570 * Initialize command, called after construction.
571 *
572 * @param [args={}]
573 */
574
575 }, {
576 key: "initialize",
577 value: function initialize() {
578 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
579 } // eslint-disable-line no-unused-vars
580
581 /**
582 * Function validateArgs().
583 *
584 * Validate command arguments.
585 *
586 * @param [args={}]
587 */
588
589 }, {
590 key: "validateArgs",
591 value: function validateArgs() {
592 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
593 } // eslint-disable-line no-unused-vars
594
595 /**
596 * Function isDataChanged().
597 *
598 * Whether the editor needs to set change flag on/off.
599 *
600 * @returns {boolean}
601 */
602
603 }, {
604 key: "isDataChanged",
605 value: function isDataChanged() {
606 return false;
607 }
608 /**
609 * Function apply().
610 *
611 * Do the actual command.
612 *
613 * @param [args={}]
614 *
615 * @returns {*}
616 */
617
618 }, {
619 key: "apply",
620 value: function apply() {
621 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
622 // eslint-disable-line no-unused-vars
623 elementorModules.ForceMethodImplementation();
624 }
625 /**
626 * Function run().
627 *
628 * Run command with history & hooks.
629 *
630 * @returns {*}
631 */
632
633 }, {
634 key: "run",
635 value: function run() {
636 var result; // For UI Hooks.
637
638 this.onBeforeRun(this.args);
639
640 try {
641 // For Data hooks.
642 this.onBeforeApply(this.args);
643 result = this.apply(this.args);
644 } catch (e) {
645 this.onCatchApply(e); // Catch 'Hook-Break' that comes from hooks base.
646
647 if (e instanceof $e.modules.HookBreak) {
648 // Bypass.
649 return false;
650 }
651 }
652
653 return this.runAfter(result);
654 }
655 }, {
656 key: "runAfter",
657 value: function runAfter(result) {
658 var _this3 = this;
659
660 var onAfter = function onAfter(_result) {
661 // Run Data hooks.
662 _this3.onAfterApply(_this3.args, _result); // TODO: Create Command-Base for Command-Document and apply it on after.
663
664
665 if (_this3.isDataChanged()) {
666 $e.internal('document/save/set-is-modified', {
667 status: true
668 });
669 } // For UI hooks.
670
671
672 _this3.onAfterRun(_this3.args, _result);
673 },
674 asyncOnAfter = /*#__PURE__*/function () {
675 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_result) {
676 var results, promises;
677 return _regenerator.default.wrap(function _callee$(_context) {
678 while (1) {
679 switch (_context.prev = _context.next) {
680 case 0:
681 // Run Data hooks.
682 results = _this3.onAfterApply(_this3.args, _result), promises = (0, _isArray.default)(results) ? results.flat().filter(function (filtered) {
683 return filtered instanceof _promise.default;
684 }) : [];
685
686 if (!promises.length) {
687 _context.next = 4;
688 break;
689 }
690
691 _context.next = 4;
692 return _promise.default.all(promises);
693
694 case 4:
695 if (_this3.isDataChanged()) {
696 // TODO: Create Command-Base for Command-Document and apply it on after.
697 $e.internal('document/save/set-is-modified', {
698 status: true
699 });
700 } // For UI hooks.
701
702
703 _this3.onAfterRun(_this3.args, _result);
704
705 case 6:
706 case "end":
707 return _context.stop();
708 }
709 }
710 }, _callee);
711 }));
712
713 return function asyncOnAfter(_x) {
714 return _ref.apply(this, arguments);
715 };
716 }(); // TODO: Temp code determine if it's a jQuery deferred object.
717
718
719 if (result && 'object' === (0, _typeof2.default)(result) && result.promise && result.then && result.fail) {
720 result.fail(this.onCatchApply.bind(this));
721 result.done(onAfter);
722 } else if (result instanceof _promise.default) {
723 // Override initial result ( promise ) to await onAfter promises, first!.
724 return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
725 return _regenerator.default.wrap(function _callee2$(_context2) {
726 while (1) {
727 switch (_context2.prev = _context2.next) {
728 case 0:
729 _context2.next = 2;
730 return result.catch(_this3.onCatchApply.bind(_this3));
731
732 case 2:
733 _context2.next = 4;
734 return result.then(function (_result) {
735 return asyncOnAfter(_result);
736 });
737
738 case 4:
739 return _context2.abrupt("return", result);
740
741 case 5:
742 case "end":
743 return _context2.stop();
744 }
745 }
746 }, _callee2);
747 }))();
748 } else {
749 onAfter(result);
750 }
751
752 return result;
753 }
754 /**
755 * Function onBeforeRun.
756 *
757 * Called before run().
758 *
759 * @param [args={}]
760 */
761
762 }, {
763 key: "onBeforeRun",
764 value: function onBeforeRun() {
765 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
766 $e.hooks.runUIBefore(this.currentCommand, args);
767 }
768 /**
769 * Function onAfterRun.
770 *
771 * Called after run().
772 *
773 * @param [args={}]
774 * @param [result={*}]
775 */
776
777 }, {
778 key: "onAfterRun",
779 value: function onAfterRun() {
780 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
781 var result = arguments.length > 1 ? arguments[1] : undefined;
782 $e.hooks.runUIAfter(this.currentCommand, args, result);
783 }
784 /**
785 * Function onBeforeApply.
786 *
787 * Called before apply().
788 *
789 * @param [args={}]
790 */
791
792 }, {
793 key: "onBeforeApply",
794 value: function onBeforeApply() {
795 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
796 $e.hooks.runDataDependency(this.currentCommand, args);
797 }
798 /**
799 * Function onAfterApply.
800 *
801 * Called after apply().
802 *
803 * @param [args={}]
804 * @param [result={*}]
805 */
806
807 }, {
808 key: "onAfterApply",
809 value: function onAfterApply() {
810 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
811 var result = arguments.length > 1 ? arguments[1] : undefined;
812 return $e.hooks.runDataAfter(this.currentCommand, args, result);
813 }
814 /**
815 * Function onCatchApply.
816 *
817 * Called after apply() failed.
818 *
819 * @param {Error} e
820 */
821
822 }, {
823 key: "onCatchApply",
824 value: function onCatchApply(e) {
825 $e.hooks.runDataCatch(this.currentCommand, this.args, e);
826 elementorCommon.helpers.consoleError(e);
827 $e.hooks.runUICatch(this.currentCommand, this.args, e);
828 }
829 }]);
830 return CommandBase;
831 }(_argsObject.default);
832
833 exports.default = CommandBase;
834
835 /***/ }),
836 /* 22 */
837 /***/ (function(module, exports) {
838
839 module.exports = function (exec) {
840 try {
841 return !!exec();
842 } catch (e) {
843 return true;
844 }
845 };
846
847
848 /***/ }),
849 /* 23 */
850 /***/ (function(module, exports, __webpack_require__) {
851
852 module.exports = __webpack_require__(201);
853
854 /***/ }),
855 /* 24 */
856 /***/ (function(module, exports, __webpack_require__) {
857
858 var dP = __webpack_require__(15);
859 var createDesc = __webpack_require__(44);
860 module.exports = __webpack_require__(14) ? function (object, key, value) {
861 return dP.f(object, key, createDesc(1, value));
862 } : function (object, key, value) {
863 object[key] = value;
864 return object;
865 };
866
867
868 /***/ }),
869 /* 25 */
870 /***/ (function(module, exports, __webpack_require__) {
871
872 var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
873
874 var _Reflect$get = __webpack_require__(193);
875
876 var superPropBase = __webpack_require__(196);
877
878 function _get(target, property, receiver) {
879 if (typeof Reflect !== "undefined" && _Reflect$get) {
880 module.exports = _get = _Reflect$get;
881 } else {
882 module.exports = _get = function _get(target, property, receiver) {
883 var base = superPropBase(target, property);
884 if (!base) return;
885
886 var desc = _Object$getOwnPropertyDescriptor(base, property);
887
888 if (desc.get) {
889 return desc.get.call(receiver);
890 }
891
892 return desc.value;
893 };
894 }
895
896 return _get(target, property, receiver || target);
897 }
898
899 module.exports = _get;
900
901 /***/ }),
902 /* 26 */
903 /***/ (function(module, exports, __webpack_require__) {
904
905 "use strict";
906
907 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
908 var $export = __webpack_require__(37);
909 var $find = __webpack_require__(181)(5);
910 var KEY = 'find';
911 var forced = true;
912 // Shouldn't skip holes
913 if (KEY in []) Array(1)[KEY](function () { forced = false; });
914 $export($export.P + $export.F * forced, 'Array', {
915 find: function find(callbackfn /* , that = undefined */) {
916 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
917 }
918 });
919 __webpack_require__(85)(KEY);
920
921
922 /***/ }),
923 /* 27 */
924 /***/ (function(module, exports, __webpack_require__) {
925
926 // Thank's IE8 for his funny defineProperty
927 module.exports = !__webpack_require__(33)(function () {
928 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
929 });
930
931
932 /***/ }),
933 /* 28 */
934 /***/ (function(module, exports, __webpack_require__) {
935
936 var _Object$defineProperty = __webpack_require__(1);
937
938 function _defineProperty(obj, key, value) {
939 if (key in obj) {
940 _Object$defineProperty(obj, key, {
941 value: value,
942 enumerable: true,
943 configurable: true,
944 writable: true
945 });
946 } else {
947 obj[key] = value;
948 }
949
950 return obj;
951 }
952
953 module.exports = _defineProperty;
954
955 /***/ }),
956 /* 29 */
957 /***/ (function(module, exports, __webpack_require__) {
958
959 var dP = __webpack_require__(45);
960 var createDesc = __webpack_require__(102);
961 module.exports = __webpack_require__(27) ? function (object, key, value) {
962 return dP.f(object, key, createDesc(1, value));
963 } : function (object, key, value) {
964 object[key] = value;
965 return object;
966 };
967
968
969 /***/ }),
970 /* 30 */
971 /***/ (function(module, exports) {
972
973 module.exports = function (it) {
974 return typeof it === 'object' ? it !== null : typeof it === 'function';
975 };
976
977
978 /***/ }),
979 /* 31 */
980 /***/ (function(module, exports, __webpack_require__) {
981
982 // optional / simple context binding
983 var aFunction = __webpack_require__(38);
984 module.exports = function (fn, that, length) {
985 aFunction(fn);
986 if (that === undefined) return fn;
987 switch (length) {
988 case 1: return function (a) {
989 return fn.call(that, a);
990 };
991 case 2: return function (a, b) {
992 return fn.call(that, a, b);
993 };
994 case 3: return function (a, b, c) {
995 return fn.call(that, a, b, c);
996 };
997 }
998 return function (/* ...args */) {
999 return fn.apply(that, arguments);
1000 };
1001 };
1002
1003
1004 /***/ }),
1005 /* 32 */
1006 /***/ (function(module, exports, __webpack_require__) {
1007
1008 // 7.1.13 ToObject(argument)
1009 var defined = __webpack_require__(65);
1010 module.exports = function (it) {
1011 return Object(defined(it));
1012 };
1013
1014
1015 /***/ }),
1016 /* 33 */
1017 /***/ (function(module, exports) {
1018
1019 module.exports = function (exec) {
1020 try {
1021 return !!exec();
1022 } catch (e) {
1023 return true;
1024 }
1025 };
1026
1027
1028 /***/ }),
1029 /* 34 */
1030 /***/ (function(module, exports) {
1031
1032 module.exports = {};
1033
1034
1035 /***/ }),
1036 /* 35 */
1037 /***/ (function(module, exports, __webpack_require__) {
1038
1039 var global = __webpack_require__(17);
1040 var hide = __webpack_require__(29);
1041 var has = __webpack_require__(61);
1042 var SRC = __webpack_require__(67)('src');
1043 var $toString = __webpack_require__(143);
1044 var TO_STRING = 'toString';
1045 var TPL = ('' + $toString).split(TO_STRING);
1046
1047 __webpack_require__(55).inspectSource = function (it) {
1048 return $toString.call(it);
1049 };
1050
1051 (module.exports = function (O, key, val, safe) {
1052 var isFunction = typeof val == 'function';
1053 if (isFunction) has(val, 'name') || hide(val, 'name', key);
1054 if (O[key] === val) return;
1055 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
1056 if (O === global) {
1057 O[key] = val;
1058 } else if (!safe) {
1059 delete O[key];
1060 hide(O, key, val);
1061 } else if (O[key]) {
1062 O[key] = val;
1063 } else {
1064 hide(O, key, val);
1065 }
1066 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1067 })(Function.prototype, TO_STRING, function toString() {
1068 return typeof this == 'function' && this[SRC] || $toString.call(this);
1069 });
1070
1071
1072 /***/ }),
1073 /* 36 */
1074 /***/ (function(module, exports, __webpack_require__) {
1075
1076 var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
1077
1078 var _Object$defineProperty = __webpack_require__(1);
1079
1080 var _typeof = __webpack_require__(48);
1081
1082 var _WeakMap = __webpack_require__(263);
1083
1084 function _getRequireWildcardCache() {
1085 if (typeof _WeakMap !== "function") return null;
1086 var cache = new _WeakMap();
1087
1088 _getRequireWildcardCache = function _getRequireWildcardCache() {
1089 return cache;
1090 };
1091
1092 return cache;
1093 }
1094
1095 function _interopRequireWildcard(obj) {
1096 if (obj && obj.__esModule) {
1097 return obj;
1098 }
1099
1100 if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
1101 return {
1102 "default": obj
1103 };
1104 }
1105
1106 var cache = _getRequireWildcardCache();
1107
1108 if (cache && cache.has(obj)) {
1109 return cache.get(obj);
1110 }
1111
1112 var newObj = {};
1113 var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
1114
1115 for (var key in obj) {
1116 if (Object.prototype.hasOwnProperty.call(obj, key)) {
1117 var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
1118
1119 if (desc && (desc.get || desc.set)) {
1120 _Object$defineProperty(newObj, key, desc);
1121 } else {
1122 newObj[key] = obj[key];
1123 }
1124 }
1125 }
1126
1127 newObj["default"] = obj;
1128
1129 if (cache) {
1130 cache.set(obj, newObj);
1131 }
1132
1133 return newObj;
1134 }
1135
1136 module.exports = _interopRequireWildcard;
1137
1138 /***/ }),
1139 /* 37 */
1140 /***/ (function(module, exports, __webpack_require__) {
1141
1142 var global = __webpack_require__(17);
1143 var core = __webpack_require__(55);
1144 var hide = __webpack_require__(29);
1145 var redefine = __webpack_require__(35);
1146 var ctx = __webpack_require__(73);
1147 var PROTOTYPE = 'prototype';
1148
1149 var $export = function (type, name, source) {
1150 var IS_FORCED = type & $export.F;
1151 var IS_GLOBAL = type & $export.G;
1152 var IS_STATIC = type & $export.S;
1153 var IS_PROTO = type & $export.P;
1154 var IS_BIND = type & $export.B;
1155 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
1156 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
1157 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
1158 var key, own, out, exp;
1159 if (IS_GLOBAL) source = name;
1160 for (key in source) {
1161 // contains in native
1162 own = !IS_FORCED && target && target[key] !== undefined;
1163 // export native or passed
1164 out = (own ? target : source)[key];
1165 // bind timers to global for call from export context
1166 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
1167 // extend global
1168 if (target) redefine(target, key, out, type & $export.U);
1169 // export
1170 if (exports[key] != out) hide(exports, key, exp);
1171 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
1172 }
1173 };
1174 global.core = core;
1175 // type bitmap
1176 $export.F = 1; // forced
1177 $export.G = 2; // global
1178 $export.S = 4; // static
1179 $export.P = 8; // proto
1180 $export.B = 16; // bind
1181 $export.W = 32; // wrap
1182 $export.U = 64; // safe
1183 $export.R = 128; // real proto method for `library`
1184 module.exports = $export;
1185
1186
1187 /***/ }),
1188 /* 38 */
1189 /***/ (function(module, exports) {
1190
1191 module.exports = function (it) {
1192 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1193 return it;
1194 };
1195
1196
1197 /***/ }),
1198 /* 39 */
1199 /***/ (function(module, exports, __webpack_require__) {
1200
1201 var dP = __webpack_require__(45).f;
1202 var FProto = Function.prototype;
1203 var nameRE = /^\s*function ([^ (]*)/;
1204 var NAME = 'name';
1205
1206 // 19.2.4.2 name
1207 NAME in FProto || __webpack_require__(27) && dP(FProto, NAME, {
1208 configurable: true,
1209 get: function () {
1210 try {
1211 return ('' + this).match(nameRE)[1];
1212 } catch (e) {
1213 return '';
1214 }
1215 }
1216 });
1217
1218
1219 /***/ }),
1220 /* 40 */
1221 /***/ (function(module, exports, __webpack_require__) {
1222
1223 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1224 var $keys = __webpack_require__(116);
1225 var enumBugKeys = __webpack_require__(78);
1226
1227 module.exports = Object.keys || function keys(O) {
1228 return $keys(O, enumBugKeys);
1229 };
1230
1231
1232 /***/ }),
1233 /* 41 */,
1234 /* 42 */
1235 /***/ (function(module, exports) {
1236
1237 // 7.2.1 RequireObjectCoercible(argument)
1238 module.exports = function (it) {
1239 if (it == undefined) throw TypeError("Can't call method on " + it);
1240 return it;
1241 };
1242
1243
1244 /***/ }),
1245 /* 43 */
1246 /***/ (function(module, exports, __webpack_require__) {
1247
1248 // 7.1.15 ToLength
1249 var toInteger = __webpack_require__(57);
1250 var min = Math.min;
1251 module.exports = function (it) {
1252 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1253 };
1254
1255
1256 /***/ }),
1257 /* 44 */
1258 /***/ (function(module, exports) {
1259
1260 module.exports = function (bitmap, value) {
1261 return {
1262 enumerable: !(bitmap & 1),
1263 configurable: !(bitmap & 2),
1264 writable: !(bitmap & 4),
1265 value: value
1266 };
1267 };
1268
1269
1270 /***/ }),
1271 /* 45 */
1272 /***/ (function(module, exports, __webpack_require__) {
1273
1274 var anObject = __webpack_require__(18);
1275 var IE8_DOM_DEFINE = __webpack_require__(129);
1276 var toPrimitive = __webpack_require__(123);
1277 var dP = Object.defineProperty;
1278
1279 exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
1280 anObject(O);
1281 P = toPrimitive(P, true);
1282 anObject(Attributes);
1283 if (IE8_DOM_DEFINE) try {
1284 return dP(O, P, Attributes);
1285 } catch (e) { /* empty */ }
1286 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
1287 if ('value' in Attributes) O[P] = Attributes.value;
1288 return O;
1289 };
1290
1291
1292 /***/ }),
1293 /* 46 */
1294 /***/ (function(module, exports) {
1295
1296 var toString = {}.toString;
1297
1298 module.exports = function (it) {
1299 return toString.call(it).slice(8, -1);
1300 };
1301
1302
1303 /***/ }),
1304 /* 47 */
1305 /***/ (function(module, exports) {
1306
1307 module.exports = true;
1308
1309
1310 /***/ }),
1311 /* 48 */
1312 /***/ (function(module, exports, __webpack_require__) {
1313
1314 var _Symbol$iterator = __webpack_require__(151);
1315
1316 var _Symbol = __webpack_require__(111);
1317
1318 function _typeof(obj) {
1319 "@babel/helpers - typeof";
1320
1321 if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
1322 module.exports = _typeof = function _typeof(obj) {
1323 return typeof obj;
1324 };
1325 } else {
1326 module.exports = _typeof = function _typeof(obj) {
1327 return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
1328 };
1329 }
1330
1331 return _typeof(obj);
1332 }
1333
1334 module.exports = _typeof;
1335
1336 /***/ }),
1337 /* 49 */
1338 /***/ (function(module, exports) {
1339
1340 function _assertThisInitialized(self) {
1341 if (self === void 0) {
1342 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1343 }
1344
1345 return self;
1346 }
1347
1348 module.exports = _assertThisInitialized;
1349
1350 /***/ }),
1351 /* 50 */
1352 /***/ (function(module, exports) {
1353
1354 exports.f = {}.propertyIsEnumerable;
1355
1356
1357 /***/ }),
1358 /* 51 */
1359 /***/ (function(module, exports, __webpack_require__) {
1360
1361 var pIE = __webpack_require__(50);
1362 var createDesc = __webpack_require__(44);
1363 var toIObject = __webpack_require__(20);
1364 var toPrimitive = __webpack_require__(74);
1365 var has = __webpack_require__(19);
1366 var IE8_DOM_DEFINE = __webpack_require__(114);
1367 var gOPD = Object.getOwnPropertyDescriptor;
1368
1369 exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) {
1370 O = toIObject(O);
1371 P = toPrimitive(P, true);
1372 if (IE8_DOM_DEFINE) try {
1373 return gOPD(O, P);
1374 } catch (e) { /* empty */ }
1375 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
1376 };
1377
1378
1379 /***/ }),
1380 /* 52 */
1381 /***/ (function(module, exports, __webpack_require__) {
1382
1383 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1384 var anObject = __webpack_require__(13);
1385 var dPs = __webpack_require__(134);
1386 var enumBugKeys = __webpack_require__(78);
1387 var IE_PROTO = __webpack_require__(75)('IE_PROTO');
1388 var Empty = function () { /* empty */ };
1389 var PROTOTYPE = 'prototype';
1390
1391 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1392 var createDict = function () {
1393 // Thrash, waste and sodomy: IE GC bug
1394 var iframe = __webpack_require__(92)('iframe');
1395 var i = enumBugKeys.length;
1396 var lt = '<';
1397 var gt = '>';
1398 var iframeDocument;
1399 iframe.style.display = 'none';
1400 __webpack_require__(131).appendChild(iframe);
1401 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1402 // createDict = iframe.contentWindow.Object;
1403 // html.removeChild(iframe);
1404 iframeDocument = iframe.contentWindow.document;
1405 iframeDocument.open();
1406 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1407 iframeDocument.close();
1408 createDict = iframeDocument.F;
1409 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1410 return createDict();
1411 };
1412
1413 module.exports = Object.create || function create(O, Properties) {
1414 var result;
1415 if (O !== null) {
1416 Empty[PROTOTYPE] = anObject(O);
1417 result = new Empty();
1418 Empty[PROTOTYPE] = null;
1419 // add "__proto__" for Object.getPrototypeOf polyfill
1420 result[IE_PROTO] = O;
1421 } else result = createDict();
1422 return Properties === undefined ? result : dPs(result, Properties);
1423 };
1424
1425
1426 /***/ }),
1427 /* 53 */
1428 /***/ (function(module, exports, __webpack_require__) {
1429
1430 var def = __webpack_require__(15).f;
1431 var has = __webpack_require__(19);
1432 var TAG = __webpack_require__(10)('toStringTag');
1433
1434 module.exports = function (it, tag, stat) {
1435 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1436 };
1437
1438
1439 /***/ }),
1440 /* 54 */
1441 /***/ (function(module, exports, __webpack_require__) {
1442
1443 module.exports = __webpack_require__(239);
1444
1445 /***/ }),
1446 /* 55 */
1447 /***/ (function(module, exports) {
1448
1449 var core = module.exports = { version: '2.6.11' };
1450 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1451
1452
1453 /***/ }),
1454 /* 56 */
1455 /***/ (function(module, exports) {
1456
1457 var toString = {}.toString;
1458
1459 module.exports = function (it) {
1460 return toString.call(it).slice(8, -1);
1461 };
1462
1463
1464 /***/ }),
1465 /* 57 */
1466 /***/ (function(module, exports) {
1467
1468 // 7.1.4 ToInteger
1469 var ceil = Math.ceil;
1470 var floor = Math.floor;
1471 module.exports = function (it) {
1472 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1473 };
1474
1475
1476 /***/ }),
1477 /* 58 */
1478 /***/ (function(module, exports, __webpack_require__) {
1479
1480 "use strict";
1481
1482
1483 var anObject = __webpack_require__(18);
1484 var toObject = __webpack_require__(96);
1485 var toLength = __webpack_require__(43);
1486 var toInteger = __webpack_require__(57);
1487 var advanceStringIndex = __webpack_require__(105);
1488 var regExpExec = __webpack_require__(94);
1489 var max = Math.max;
1490 var min = Math.min;
1491 var floor = Math.floor;
1492 var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1493 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1494
1495 var maybeToString = function (it) {
1496 return it === undefined ? it : String(it);
1497 };
1498
1499 // @@replace logic
1500 __webpack_require__(95)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1501 return [
1502 // `String.prototype.replace` method
1503 // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1504 function replace(searchValue, replaceValue) {
1505 var O = defined(this);
1506 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1507 return fn !== undefined
1508 ? fn.call(searchValue, O, replaceValue)
1509 : $replace.call(String(O), searchValue, replaceValue);
1510 },
1511 // `RegExp.prototype[@@replace]` method
1512 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1513 function (regexp, replaceValue) {
1514 var res = maybeCallNative($replace, regexp, this, replaceValue);
1515 if (res.done) return res.value;
1516
1517 var rx = anObject(regexp);
1518 var S = String(this);
1519 var functionalReplace = typeof replaceValue === 'function';
1520 if (!functionalReplace) replaceValue = String(replaceValue);
1521 var global = rx.global;
1522 if (global) {
1523 var fullUnicode = rx.unicode;
1524 rx.lastIndex = 0;
1525 }
1526 var results = [];
1527 while (true) {
1528 var result = regExpExec(rx, S);
1529 if (result === null) break;
1530 results.push(result);
1531 if (!global) break;
1532 var matchStr = String(result[0]);
1533 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1534 }
1535 var accumulatedResult = '';
1536 var nextSourcePosition = 0;
1537 for (var i = 0; i < results.length; i++) {
1538 result = results[i];
1539 var matched = String(result[0]);
1540 var position = max(min(toInteger(result.index), S.length), 0);
1541 var captures = [];
1542 // NOTE: This is equivalent to
1543 // captures = result.slice(1).map(maybeToString)
1544 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1545 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1546 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1547 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1548 var namedCaptures = result.groups;
1549 if (functionalReplace) {
1550 var replacerArgs = [matched].concat(captures, position, S);
1551 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1552 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1553 } else {
1554 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1555 }
1556 if (position >= nextSourcePosition) {
1557 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1558 nextSourcePosition = position + matched.length;
1559 }
1560 }
1561 return accumulatedResult + S.slice(nextSourcePosition);
1562 }
1563 ];
1564
1565 // https://tc39.github.io/ecma262/#sec-getsubstitution
1566 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1567 var tailPos = position + matched.length;
1568 var m = captures.length;
1569 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1570 if (namedCaptures !== undefined) {
1571 namedCaptures = toObject(namedCaptures);
1572 symbols = SUBSTITUTION_SYMBOLS;
1573 }
1574 return $replace.call(replacement, symbols, function (match, ch) {
1575 var capture;
1576 switch (ch.charAt(0)) {
1577 case '$': return '$';
1578 case '&': return matched;
1579 case '`': return str.slice(0, position);
1580 case "'": return str.slice(tailPos);
1581 case '<':
1582 capture = namedCaptures[ch.slice(1, -1)];
1583 break;
1584 default: // \d\d?
1585 var n = +ch;
1586 if (n === 0) return match;
1587 if (n > m) {
1588 var f = floor(n / 10);
1589 if (f === 0) return match;
1590 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1591 return match;
1592 }
1593 capture = captures[n - 1];
1594 }
1595 return capture === undefined ? '' : capture;
1596 });
1597 }
1598 });
1599
1600
1601 /***/ }),
1602 /* 59 */
1603 /***/ (function(module, exports) {
1604
1605 var id = 0;
1606 var px = Math.random();
1607 module.exports = function (key) {
1608 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1609 };
1610
1611
1612 /***/ }),
1613 /* 60 */
1614 /***/ (function(module, exports, __webpack_require__) {
1615
1616 "use strict";
1617
1618 var $at = __webpack_require__(172)(true);
1619
1620 // 21.1.3.27 String.prototype[@@iterator]()
1621 __webpack_require__(108)(String, 'String', function (iterated) {
1622 this._t = String(iterated); // target
1623 this._i = 0; // next index
1624 // 21.1.5.2.1 %StringIteratorPrototype%.next()
1625 }, function () {
1626 var O = this._t;
1627 var index = this._i;
1628 var point;
1629 if (index >= O.length) return { value: undefined, done: true };
1630 point = $at(O, index);
1631 this._i += point.length;
1632 return { value: point, done: false };
1633 });
1634
1635
1636 /***/ }),
1637 /* 61 */
1638 /***/ (function(module, exports) {
1639
1640 var hasOwnProperty = {}.hasOwnProperty;
1641 module.exports = function (it, key) {
1642 return hasOwnProperty.call(it, key);
1643 };
1644
1645
1646 /***/ }),
1647 /* 62 */
1648 /***/ (function(module, exports, __webpack_require__) {
1649
1650 __webpack_require__(174);
1651 var global = __webpack_require__(8);
1652 var hide = __webpack_require__(24);
1653 var Iterators = __webpack_require__(34);
1654 var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
1655
1656 var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
1657 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
1658 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
1659 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
1660 'TextTrackList,TouchList').split(',');
1661
1662 for (var i = 0; i < DOMIterables.length; i++) {
1663 var NAME = DOMIterables[i];
1664 var Collection = global[NAME];
1665 var proto = Collection && Collection.prototype;
1666 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1667 Iterators[NAME] = Iterators.Array;
1668 }
1669
1670
1671 /***/ }),
1672 /* 63 */
1673 /***/ (function(module, exports, __webpack_require__) {
1674
1675 exports.f = __webpack_require__(10);
1676
1677
1678 /***/ }),
1679 /* 64 */
1680 /***/ (function(module, exports, __webpack_require__) {
1681
1682 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1683 var has = __webpack_require__(19);
1684 var toObject = __webpack_require__(32);
1685 var IE_PROTO = __webpack_require__(75)('IE_PROTO');
1686 var ObjectProto = Object.prototype;
1687
1688 module.exports = Object.getPrototypeOf || function (O) {
1689 O = toObject(O);
1690 if (has(O, IE_PROTO)) return O[IE_PROTO];
1691 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1692 return O.constructor.prototype;
1693 } return O instanceof Object ? ObjectProto : null;
1694 };
1695
1696
1697 /***/ }),
1698 /* 65 */
1699 /***/ (function(module, exports) {
1700
1701 // 7.2.1 RequireObjectCoercible(argument)
1702 module.exports = function (it) {
1703 if (it == undefined) throw TypeError("Can't call method on " + it);
1704 return it;
1705 };
1706
1707
1708 /***/ }),
1709 /* 66 */
1710 /***/ (function(module, exports, __webpack_require__) {
1711
1712 var core = __webpack_require__(55);
1713 var global = __webpack_require__(17);
1714 var SHARED = '__core-js_shared__';
1715 var store = global[SHARED] || (global[SHARED] = {});
1716
1717 (module.exports = function (key, value) {
1718 return store[key] || (store[key] = value !== undefined ? value : {});
1719 })('versions', []).push({
1720 version: core.version,
1721 mode: __webpack_require__(110) ? 'pure' : 'global',
1722 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1723 });
1724
1725
1726 /***/ }),
1727 /* 67 */
1728 /***/ (function(module, exports) {
1729
1730 var id = 0;
1731 var px = Math.random();
1732 module.exports = function (key) {
1733 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1734 };
1735
1736
1737 /***/ }),
1738 /* 68 */
1739 /***/ (function(module, exports, __webpack_require__) {
1740
1741 // 7.1.15 ToLength
1742 var toInteger = __webpack_require__(77);
1743 var min = Math.min;
1744 module.exports = function (it) {
1745 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1746 };
1747
1748
1749 /***/ }),
1750 /* 69 */
1751 /***/ (function(module, exports, __webpack_require__) {
1752
1753 /**
1754 * Copyright (c) 2014-present, Facebook, Inc.
1755 *
1756 * This source code is licensed under the MIT license found in the
1757 * LICENSE file in the root directory of this source tree.
1758 */
1759
1760 var runtime = (function (exports) {
1761 "use strict";
1762
1763 var Op = Object.prototype;
1764 var hasOwn = Op.hasOwnProperty;
1765 var undefined; // More compressible than void 0.
1766 var $Symbol = typeof Symbol === "function" ? Symbol : {};
1767 var iteratorSymbol = $Symbol.iterator || "@@iterator";
1768 var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1769 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1770
1771 function define(obj, key, value) {
1772 Object.defineProperty(obj, key, {
1773 value: value,
1774 enumerable: true,
1775 configurable: true,
1776 writable: true
1777 });
1778 return obj[key];
1779 }
1780 try {
1781 // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1782 define({}, "");
1783 } catch (err) {
1784 define = function(obj, key, value) {
1785 return obj[key] = value;
1786 };
1787 }
1788
1789 function wrap(innerFn, outerFn, self, tryLocsList) {
1790 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1791 var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1792 var generator = Object.create(protoGenerator.prototype);
1793 var context = new Context(tryLocsList || []);
1794
1795 // The ._invoke method unifies the implementations of the .next,
1796 // .throw, and .return methods.
1797 generator._invoke = makeInvokeMethod(innerFn, self, context);
1798
1799 return generator;
1800 }
1801 exports.wrap = wrap;
1802
1803 // Try/catch helper to minimize deoptimizations. Returns a completion
1804 // record like context.tryEntries[i].completion. This interface could
1805 // have been (and was previously) designed to take a closure to be
1806 // invoked without arguments, but in all the cases we care about we
1807 // already have an existing method we want to call, so there's no need
1808 // to create a new function object. We can even get away with assuming
1809 // the method takes exactly one argument, since that happens to be true
1810 // in every case, so we don't have to touch the arguments object. The
1811 // only additional allocation required is the completion record, which
1812 // has a stable shape and so hopefully should be cheap to allocate.
1813 function tryCatch(fn, obj, arg) {
1814 try {
1815 return { type: "normal", arg: fn.call(obj, arg) };
1816 } catch (err) {
1817 return { type: "throw", arg: err };
1818 }
1819 }
1820
1821 var GenStateSuspendedStart = "suspendedStart";
1822 var GenStateSuspendedYield = "suspendedYield";
1823 var GenStateExecuting = "executing";
1824 var GenStateCompleted = "completed";
1825
1826 // Returning this object from the innerFn has the same effect as
1827 // breaking out of the dispatch switch statement.
1828 var ContinueSentinel = {};
1829
1830 // Dummy constructor functions that we use as the .constructor and
1831 // .constructor.prototype properties for functions that return Generator
1832 // objects. For full spec compliance, you may wish to configure your
1833 // minifier not to mangle the names of these two functions.
1834 function Generator() {}
1835 function GeneratorFunction() {}
1836 function GeneratorFunctionPrototype() {}
1837
1838 // This is a polyfill for %IteratorPrototype% for environments that
1839 // don't natively support it.
1840 var IteratorPrototype = {};
1841 IteratorPrototype[iteratorSymbol] = function () {
1842 return this;
1843 };
1844
1845 var getProto = Object.getPrototypeOf;
1846 var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1847 if (NativeIteratorPrototype &&
1848 NativeIteratorPrototype !== Op &&
1849 hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1850 // This environment has a native %IteratorPrototype%; use it instead
1851 // of the polyfill.
1852 IteratorPrototype = NativeIteratorPrototype;
1853 }
1854
1855 var Gp = GeneratorFunctionPrototype.prototype =
1856 Generator.prototype = Object.create(IteratorPrototype);
1857 GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
1858 GeneratorFunctionPrototype.constructor = GeneratorFunction;
1859 GeneratorFunction.displayName = define(
1860 GeneratorFunctionPrototype,
1861 toStringTagSymbol,
1862 "GeneratorFunction"
1863 );
1864
1865 // Helper for defining the .next, .throw, and .return methods of the
1866 // Iterator interface in terms of a single ._invoke method.
1867 function defineIteratorMethods(prototype) {
1868 ["next", "throw", "return"].forEach(function(method) {
1869 define(prototype, method, function(arg) {
1870 return this._invoke(method, arg);
1871 });
1872 });
1873 }
1874
1875 exports.isGeneratorFunction = function(genFun) {
1876 var ctor = typeof genFun === "function" && genFun.constructor;
1877 return ctor
1878 ? ctor === GeneratorFunction ||
1879 // For the native GeneratorFunction constructor, the best we can
1880 // do is to check its .name property.
1881 (ctor.displayName || ctor.name) === "GeneratorFunction"
1882 : false;
1883 };
1884
1885 exports.mark = function(genFun) {
1886 if (Object.setPrototypeOf) {
1887 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1888 } else {
1889 genFun.__proto__ = GeneratorFunctionPrototype;
1890 define(genFun, toStringTagSymbol, "GeneratorFunction");
1891 }
1892 genFun.prototype = Object.create(Gp);
1893 return genFun;
1894 };
1895
1896 // Within the body of any async function, `await x` is transformed to
1897 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1898 // `hasOwn.call(value, "__await")` to determine if the yielded value is
1899 // meant to be awaited.
1900 exports.awrap = function(arg) {
1901 return { __await: arg };
1902 };
1903
1904 function AsyncIterator(generator, PromiseImpl) {
1905 function invoke(method, arg, resolve, reject) {
1906 var record = tryCatch(generator[method], generator, arg);
1907 if (record.type === "throw") {
1908 reject(record.arg);
1909 } else {
1910 var result = record.arg;
1911 var value = result.value;
1912 if (value &&
1913 typeof value === "object" &&
1914 hasOwn.call(value, "__await")) {
1915 return PromiseImpl.resolve(value.__await).then(function(value) {
1916 invoke("next", value, resolve, reject);
1917 }, function(err) {
1918 invoke("throw", err, resolve, reject);
1919 });
1920 }
1921
1922 return PromiseImpl.resolve(value).then(function(unwrapped) {
1923 // When a yielded Promise is resolved, its final value becomes
1924 // the .value of the Promise<{value,done}> result for the
1925 // current iteration.
1926 result.value = unwrapped;
1927 resolve(result);
1928 }, function(error) {
1929 // If a rejected Promise was yielded, throw the rejection back
1930 // into the async generator function so it can be handled there.
1931 return invoke("throw", error, resolve, reject);
1932 });
1933 }
1934 }
1935
1936 var previousPromise;
1937
1938 function enqueue(method, arg) {
1939 function callInvokeWithMethodAndArg() {
1940 return new PromiseImpl(function(resolve, reject) {
1941 invoke(method, arg, resolve, reject);
1942 });
1943 }
1944
1945 return previousPromise =
1946 // If enqueue has been called before, then we want to wait until
1947 // all previous Promises have been resolved before calling invoke,
1948 // so that results are always delivered in the correct order. If
1949 // enqueue has not been called before, then it is important to
1950 // call invoke immediately, without waiting on a callback to fire,
1951 // so that the async generator function has the opportunity to do
1952 // any necessary setup in a predictable way. This predictability
1953 // is why the Promise constructor synchronously invokes its
1954 // executor callback, and why async functions synchronously
1955 // execute code before the first await. Since we implement simple
1956 // async functions in terms of async generators, it is especially
1957 // important to get this right, even though it requires care.
1958 previousPromise ? previousPromise.then(
1959 callInvokeWithMethodAndArg,
1960 // Avoid propagating failures to Promises returned by later
1961 // invocations of the iterator.
1962 callInvokeWithMethodAndArg
1963 ) : callInvokeWithMethodAndArg();
1964 }
1965
1966 // Define the unified helper method that is used to implement .next,
1967 // .throw, and .return (see defineIteratorMethods).
1968 this._invoke = enqueue;
1969 }
1970
1971 defineIteratorMethods(AsyncIterator.prototype);
1972 AsyncIterator.prototype[asyncIteratorSymbol] = function () {
1973 return this;
1974 };
1975 exports.AsyncIterator = AsyncIterator;
1976
1977 // Note that simple async functions are implemented on top of
1978 // AsyncIterator objects; they just return a Promise for the value of
1979 // the final result produced by the iterator.
1980 exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1981 if (PromiseImpl === void 0) PromiseImpl = Promise;
1982
1983 var iter = new AsyncIterator(
1984 wrap(innerFn, outerFn, self, tryLocsList),
1985 PromiseImpl
1986 );
1987
1988 return exports.isGeneratorFunction(outerFn)
1989 ? iter // If outerFn is a generator, return the full iterator.
1990 : iter.next().then(function(result) {
1991 return result.done ? result.value : iter.next();
1992 });
1993 };
1994
1995 function makeInvokeMethod(innerFn, self, context) {
1996 var state = GenStateSuspendedStart;
1997
1998 return function invoke(method, arg) {
1999 if (state === GenStateExecuting) {
2000 throw new Error("Generator is already running");
2001 }
2002
2003 if (state === GenStateCompleted) {
2004 if (method === "throw") {
2005 throw arg;
2006 }
2007
2008 // Be forgiving, per 25.3.3.3.3 of the spec:
2009 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
2010 return doneResult();
2011 }
2012
2013 context.method = method;
2014 context.arg = arg;
2015
2016 while (true) {
2017 var delegate = context.delegate;
2018 if (delegate) {
2019 var delegateResult = maybeInvokeDelegate(delegate, context);
2020 if (delegateResult) {
2021 if (delegateResult === ContinueSentinel) continue;
2022 return delegateResult;
2023 }
2024 }
2025
2026 if (context.method === "next") {
2027 // Setting context._sent for legacy support of Babel's
2028 // function.sent implementation.
2029 context.sent = context._sent = context.arg;
2030
2031 } else if (context.method === "throw") {
2032 if (state === GenStateSuspendedStart) {
2033 state = GenStateCompleted;
2034 throw context.arg;
2035 }
2036
2037 context.dispatchException(context.arg);
2038
2039 } else if (context.method === "return") {
2040 context.abrupt("return", context.arg);
2041 }
2042
2043 state = GenStateExecuting;
2044
2045 var record = tryCatch(innerFn, self, context);
2046 if (record.type === "normal") {
2047 // If an exception is thrown from innerFn, we leave state ===
2048 // GenStateExecuting and loop back for another invocation.
2049 state = context.done
2050 ? GenStateCompleted
2051 : GenStateSuspendedYield;
2052
2053 if (record.arg === ContinueSentinel) {
2054 continue;
2055 }
2056
2057 return {
2058 value: record.arg,
2059 done: context.done
2060 };
2061
2062 } else if (record.type === "throw") {
2063 state = GenStateCompleted;
2064 // Dispatch the exception by looping back around to the
2065 // context.dispatchException(context.arg) call above.
2066 context.method = "throw";
2067 context.arg = record.arg;
2068 }
2069 }
2070 };
2071 }
2072
2073 // Call delegate.iterator[context.method](context.arg) and handle the
2074 // result, either by returning a { value, done } result from the
2075 // delegate iterator, or by modifying context.method and context.arg,
2076 // setting context.delegate to null, and returning the ContinueSentinel.
2077 function maybeInvokeDelegate(delegate, context) {
2078 var method = delegate.iterator[context.method];
2079 if (method === undefined) {
2080 // A .throw or .return when the delegate iterator has no .throw
2081 // method always terminates the yield* loop.
2082 context.delegate = null;
2083
2084 if (context.method === "throw") {
2085 // Note: ["return"] must be used for ES3 parsing compatibility.
2086 if (delegate.iterator["return"]) {
2087 // If the delegate iterator has a return method, give it a
2088 // chance to clean up.
2089 context.method = "return";
2090 context.arg = undefined;
2091 maybeInvokeDelegate(delegate, context);
2092
2093 if (context.method === "throw") {
2094 // If maybeInvokeDelegate(context) changed context.method from
2095 // "return" to "throw", let that override the TypeError below.
2096 return ContinueSentinel;
2097 }
2098 }
2099
2100 context.method = "throw";
2101 context.arg = new TypeError(
2102 "The iterator does not provide a 'throw' method");
2103 }
2104
2105 return ContinueSentinel;
2106 }
2107
2108 var record = tryCatch(method, delegate.iterator, context.arg);
2109
2110 if (record.type === "throw") {
2111 context.method = "throw";
2112 context.arg = record.arg;
2113 context.delegate = null;
2114 return ContinueSentinel;
2115 }
2116
2117 var info = record.arg;
2118
2119 if (! info) {
2120 context.method = "throw";
2121 context.arg = new TypeError("iterator result is not an object");
2122 context.delegate = null;
2123 return ContinueSentinel;
2124 }
2125
2126 if (info.done) {
2127 // Assign the result of the finished delegate to the temporary
2128 // variable specified by delegate.resultName (see delegateYield).
2129 context[delegate.resultName] = info.value;
2130
2131 // Resume execution at the desired location (see delegateYield).
2132 context.next = delegate.nextLoc;
2133
2134 // If context.method was "throw" but the delegate handled the
2135 // exception, let the outer generator proceed normally. If
2136 // context.method was "next", forget context.arg since it has been
2137 // "consumed" by the delegate iterator. If context.method was
2138 // "return", allow the original .return call to continue in the
2139 // outer generator.
2140 if (context.method !== "return") {
2141 context.method = "next";
2142 context.arg = undefined;
2143 }
2144
2145 } else {
2146 // Re-yield the result returned by the delegate method.
2147 return info;
2148 }
2149
2150 // The delegate iterator is finished, so forget it and continue with
2151 // the outer generator.
2152 context.delegate = null;
2153 return ContinueSentinel;
2154 }
2155
2156 // Define Generator.prototype.{next,throw,return} in terms of the
2157 // unified ._invoke helper method.
2158 defineIteratorMethods(Gp);
2159
2160 define(Gp, toStringTagSymbol, "Generator");
2161
2162 // A Generator should always return itself as the iterator object when the
2163 // @@iterator function is called on it. Some browsers' implementations of the
2164 // iterator prototype chain incorrectly implement this, causing the Generator
2165 // object to not be returned from this call. This ensures that doesn't happen.
2166 // See https://github.com/facebook/regenerator/issues/274 for more details.
2167 Gp[iteratorSymbol] = function() {
2168 return this;
2169 };
2170
2171 Gp.toString = function() {
2172 return "[object Generator]";
2173 };
2174
2175 function pushTryEntry(locs) {
2176 var entry = { tryLoc: locs[0] };
2177
2178 if (1 in locs) {
2179 entry.catchLoc = locs[1];
2180 }
2181
2182 if (2 in locs) {
2183 entry.finallyLoc = locs[2];
2184 entry.afterLoc = locs[3];
2185 }
2186
2187 this.tryEntries.push(entry);
2188 }
2189
2190 function resetTryEntry(entry) {
2191 var record = entry.completion || {};
2192 record.type = "normal";
2193 delete record.arg;
2194 entry.completion = record;
2195 }
2196
2197 function Context(tryLocsList) {
2198 // The root entry object (effectively a try statement without a catch
2199 // or a finally block) gives us a place to store values thrown from
2200 // locations where there is no enclosing try statement.
2201 this.tryEntries = [{ tryLoc: "root" }];
2202 tryLocsList.forEach(pushTryEntry, this);
2203 this.reset(true);
2204 }
2205
2206 exports.keys = function(object) {
2207 var keys = [];
2208 for (var key in object) {
2209 keys.push(key);
2210 }
2211 keys.reverse();
2212
2213 // Rather than returning an object with a next method, we keep
2214 // things simple and return the next function itself.
2215 return function next() {
2216 while (keys.length) {
2217 var key = keys.pop();
2218 if (key in object) {
2219 next.value = key;
2220 next.done = false;
2221 return next;
2222 }
2223 }
2224
2225 // To avoid creating an additional object, we just hang the .value
2226 // and .done properties off the next function object itself. This
2227 // also ensures that the minifier will not anonymize the function.
2228 next.done = true;
2229 return next;
2230 };
2231 };
2232
2233 function values(iterable) {
2234 if (iterable) {
2235 var iteratorMethod = iterable[iteratorSymbol];
2236 if (iteratorMethod) {
2237 return iteratorMethod.call(iterable);
2238 }
2239
2240 if (typeof iterable.next === "function") {
2241 return iterable;
2242 }
2243
2244 if (!isNaN(iterable.length)) {
2245 var i = -1, next = function next() {
2246 while (++i < iterable.length) {
2247 if (hasOwn.call(iterable, i)) {
2248 next.value = iterable[i];
2249 next.done = false;
2250 return next;
2251 }
2252 }
2253
2254 next.value = undefined;
2255 next.done = true;
2256
2257 return next;
2258 };
2259
2260 return next.next = next;
2261 }
2262 }
2263
2264 // Return an iterator with no values.
2265 return { next: doneResult };
2266 }
2267 exports.values = values;
2268
2269 function doneResult() {
2270 return { value: undefined, done: true };
2271 }
2272
2273 Context.prototype = {
2274 constructor: Context,
2275
2276 reset: function(skipTempReset) {
2277 this.prev = 0;
2278 this.next = 0;
2279 // Resetting context._sent for legacy support of Babel's
2280 // function.sent implementation.
2281 this.sent = this._sent = undefined;
2282 this.done = false;
2283 this.delegate = null;
2284
2285 this.method = "next";
2286 this.arg = undefined;
2287
2288 this.tryEntries.forEach(resetTryEntry);
2289
2290 if (!skipTempReset) {
2291 for (var name in this) {
2292 // Not sure about the optimal order of these conditions:
2293 if (name.charAt(0) === "t" &&
2294 hasOwn.call(this, name) &&
2295 !isNaN(+name.slice(1))) {
2296 this[name] = undefined;
2297 }
2298 }
2299 }
2300 },
2301
2302 stop: function() {
2303 this.done = true;
2304
2305 var rootEntry = this.tryEntries[0];
2306 var rootRecord = rootEntry.completion;
2307 if (rootRecord.type === "throw") {
2308 throw rootRecord.arg;
2309 }
2310
2311 return this.rval;
2312 },
2313
2314 dispatchException: function(exception) {
2315 if (this.done) {
2316 throw exception;
2317 }
2318
2319 var context = this;
2320 function handle(loc, caught) {
2321 record.type = "throw";
2322 record.arg = exception;
2323 context.next = loc;
2324
2325 if (caught) {
2326 // If the dispatched exception was caught by a catch block,
2327 // then let that catch block handle the exception normally.
2328 context.method = "next";
2329 context.arg = undefined;
2330 }
2331
2332 return !! caught;
2333 }
2334
2335 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2336 var entry = this.tryEntries[i];
2337 var record = entry.completion;
2338
2339 if (entry.tryLoc === "root") {
2340 // Exception thrown outside of any try block that could handle
2341 // it, so set the completion value of the entire function to
2342 // throw the exception.
2343 return handle("end");
2344 }
2345
2346 if (entry.tryLoc <= this.prev) {
2347 var hasCatch = hasOwn.call(entry, "catchLoc");
2348 var hasFinally = hasOwn.call(entry, "finallyLoc");
2349
2350 if (hasCatch && hasFinally) {
2351 if (this.prev < entry.catchLoc) {
2352 return handle(entry.catchLoc, true);
2353 } else if (this.prev < entry.finallyLoc) {
2354 return handle(entry.finallyLoc);
2355 }
2356
2357 } else if (hasCatch) {
2358 if (this.prev < entry.catchLoc) {
2359 return handle(entry.catchLoc, true);
2360 }
2361
2362 } else if (hasFinally) {
2363 if (this.prev < entry.finallyLoc) {
2364 return handle(entry.finallyLoc);
2365 }
2366
2367 } else {
2368 throw new Error("try statement without catch or finally");
2369 }
2370 }
2371 }
2372 },
2373
2374 abrupt: function(type, arg) {
2375 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2376 var entry = this.tryEntries[i];
2377 if (entry.tryLoc <= this.prev &&
2378 hasOwn.call(entry, "finallyLoc") &&
2379 this.prev < entry.finallyLoc) {
2380 var finallyEntry = entry;
2381 break;
2382 }
2383 }
2384
2385 if (finallyEntry &&
2386 (type === "break" ||
2387 type === "continue") &&
2388 finallyEntry.tryLoc <= arg &&
2389 arg <= finallyEntry.finallyLoc) {
2390 // Ignore the finally entry if control is not jumping to a
2391 // location outside the try/catch block.
2392 finallyEntry = null;
2393 }
2394
2395 var record = finallyEntry ? finallyEntry.completion : {};
2396 record.type = type;
2397 record.arg = arg;
2398
2399 if (finallyEntry) {
2400 this.method = "next";
2401 this.next = finallyEntry.finallyLoc;
2402 return ContinueSentinel;
2403 }
2404
2405 return this.complete(record);
2406 },
2407
2408 complete: function(record, afterLoc) {
2409 if (record.type === "throw") {
2410 throw record.arg;
2411 }
2412
2413 if (record.type === "break" ||
2414 record.type === "continue") {
2415 this.next = record.arg;
2416 } else if (record.type === "return") {
2417 this.rval = this.arg = record.arg;
2418 this.method = "return";
2419 this.next = "end";
2420 } else if (record.type === "normal" && afterLoc) {
2421 this.next = afterLoc;
2422 }
2423
2424 return ContinueSentinel;
2425 },
2426
2427 finish: function(finallyLoc) {
2428 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2429 var entry = this.tryEntries[i];
2430 if (entry.finallyLoc === finallyLoc) {
2431 this.complete(entry.completion, entry.afterLoc);
2432 resetTryEntry(entry);
2433 return ContinueSentinel;
2434 }
2435 }
2436 },
2437
2438 "catch": function(tryLoc) {
2439 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2440 var entry = this.tryEntries[i];
2441 if (entry.tryLoc === tryLoc) {
2442 var record = entry.completion;
2443 if (record.type === "throw") {
2444 var thrown = record.arg;
2445 resetTryEntry(entry);
2446 }
2447 return thrown;
2448 }
2449 }
2450
2451 // The context.catch method must only be called with a location
2452 // argument that corresponds to a known catch block.
2453 throw new Error("illegal catch attempt");
2454 },
2455
2456 delegateYield: function(iterable, resultName, nextLoc) {
2457 this.delegate = {
2458 iterator: values(iterable),
2459 resultName: resultName,
2460 nextLoc: nextLoc
2461 };
2462
2463 if (this.method === "next") {
2464 // Deliberately forget the last sent value so that we don't
2465 // accidentally pass it on to the delegate.
2466 this.arg = undefined;
2467 }
2468
2469 return ContinueSentinel;
2470 }
2471 };
2472
2473 // Regardless of whether this script is executing as a CommonJS module
2474 // or not, return the runtime object so that we can declare the variable
2475 // regeneratorRuntime in the outer scope, which allows this module to be
2476 // injected easily by `bin/regenerator --include-runtime script.js`.
2477 return exports;
2478
2479 }(
2480 // If this script is executing as a CommonJS module, use module.exports
2481 // as the regeneratorRuntime namespace. Otherwise create a new empty
2482 // object. Either way, the resulting object will be used to initialize
2483 // the regeneratorRuntime variable at the top of this file.
2484 true ? module.exports : undefined
2485 ));
2486
2487 try {
2488 regeneratorRuntime = runtime;
2489 } catch (accidentalStrictMode) {
2490 // This module should not be running in strict mode, so the above
2491 // assignment should always work unless something is misconfigured. Just
2492 // in case runtime.js accidentally runs in strict mode, we can escape
2493 // strict mode using a global Function call. This could conceivably fail
2494 // if a Content Security Policy forbids using Function, but in that case
2495 // the proper solution is to fix the accidental strict mode problem. If
2496 // you've misconfigured your bundler to force strict mode and applied a
2497 // CSP to forbid Function, and you're not willing to fix either of those
2498 // problems, please detail your unique predicament in a GitHub issue.
2499 Function("r", "regeneratorRuntime = r")(runtime);
2500 }
2501
2502
2503 /***/ }),
2504 /* 70 */
2505 /***/ (function(module, exports, __webpack_require__) {
2506
2507 var META = __webpack_require__(59)('meta');
2508 var isObject = __webpack_require__(9);
2509 var has = __webpack_require__(19);
2510 var setDesc = __webpack_require__(15).f;
2511 var id = 0;
2512 var isExtensible = Object.isExtensible || function () {
2513 return true;
2514 };
2515 var FREEZE = !__webpack_require__(22)(function () {
2516 return isExtensible(Object.preventExtensions({}));
2517 });
2518 var setMeta = function (it) {
2519 setDesc(it, META, { value: {
2520 i: 'O' + ++id, // object ID
2521 w: {} // weak collections IDs
2522 } });
2523 };
2524 var fastKey = function (it, create) {
2525 // return primitive with prefix
2526 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2527 if (!has(it, META)) {
2528 // can't set metadata to uncaught frozen object
2529 if (!isExtensible(it)) return 'F';
2530 // not necessary to add metadata
2531 if (!create) return 'E';
2532 // add missing metadata
2533 setMeta(it);
2534 // return object ID
2535 } return it[META].i;
2536 };
2537 var getWeak = function (it, create) {
2538 if (!has(it, META)) {
2539 // can't set metadata to uncaught frozen object
2540 if (!isExtensible(it)) return true;
2541 // not necessary to add metadata
2542 if (!create) return false;
2543 // add missing metadata
2544 setMeta(it);
2545 // return hash weak collections IDs
2546 } return it[META].w;
2547 };
2548 // add metadata on freeze-family methods calling
2549 var onFreeze = function (it) {
2550 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
2551 return it;
2552 };
2553 var meta = module.exports = {
2554 KEY: META,
2555 NEED: false,
2556 fastKey: fastKey,
2557 getWeak: getWeak,
2558 onFreeze: onFreeze
2559 };
2560
2561
2562 /***/ }),
2563 /* 71 */
2564 /***/ (function(module, exports) {
2565
2566 exports.f = Object.getOwnPropertySymbols;
2567
2568
2569 /***/ }),
2570 /* 72 */
2571 /***/ (function(module, exports, __webpack_require__) {
2572
2573 "use strict";
2574
2575 // 19.1.3.6 Object.prototype.toString()
2576 var classof = __webpack_require__(113);
2577 var test = {};
2578 test[__webpack_require__(12)('toStringTag')] = 'z';
2579 if (test + '' != '[object z]') {
2580 __webpack_require__(35)(Object.prototype, 'toString', function toString() {
2581 return '[object ' + classof(this) + ']';
2582 }, true);
2583 }
2584
2585
2586 /***/ }),
2587 /* 73 */
2588 /***/ (function(module, exports, __webpack_require__) {
2589
2590 // optional / simple context binding
2591 var aFunction = __webpack_require__(91);
2592 module.exports = function (fn, that, length) {
2593 aFunction(fn);
2594 if (that === undefined) return fn;
2595 switch (length) {
2596 case 1: return function (a) {
2597 return fn.call(that, a);
2598 };
2599 case 2: return function (a, b) {
2600 return fn.call(that, a, b);
2601 };
2602 case 3: return function (a, b, c) {
2603 return fn.call(that, a, b, c);
2604 };
2605 }
2606 return function (/* ...args */) {
2607 return fn.apply(that, arguments);
2608 };
2609 };
2610
2611
2612 /***/ }),
2613 /* 74 */
2614 /***/ (function(module, exports, __webpack_require__) {
2615
2616 // 7.1.1 ToPrimitive(input [, PreferredType])
2617 var isObject = __webpack_require__(9);
2618 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
2619 // and the second argument - flag - preferred type is a string
2620 module.exports = function (it, S) {
2621 if (!isObject(it)) return it;
2622 var fn, val;
2623 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2624 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2625 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2626 throw TypeError("Can't convert object to primitive value");
2627 };
2628
2629
2630 /***/ }),
2631 /* 75 */
2632 /***/ (function(module, exports, __webpack_require__) {
2633
2634 var shared = __webpack_require__(76)('keys');
2635 var uid = __webpack_require__(59);
2636 module.exports = function (key) {
2637 return shared[key] || (shared[key] = uid(key));
2638 };
2639
2640
2641 /***/ }),
2642 /* 76 */
2643 /***/ (function(module, exports, __webpack_require__) {
2644
2645 var core = __webpack_require__(6);
2646 var global = __webpack_require__(8);
2647 var SHARED = '__core-js_shared__';
2648 var store = global[SHARED] || (global[SHARED] = {});
2649
2650 (module.exports = function (key, value) {
2651 return store[key] || (store[key] = value !== undefined ? value : {});
2652 })('versions', []).push({
2653 version: core.version,
2654 mode: __webpack_require__(47) ? 'pure' : 'global',
2655 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
2656 });
2657
2658
2659 /***/ }),
2660 /* 77 */
2661 /***/ (function(module, exports) {
2662
2663 // 7.1.4 ToInteger
2664 var ceil = Math.ceil;
2665 var floor = Math.floor;
2666 module.exports = function (it) {
2667 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
2668 };
2669
2670
2671 /***/ }),
2672 /* 78 */
2673 /***/ (function(module, exports) {
2674
2675 // IE 8- don't enum bug keys
2676 module.exports = (
2677 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
2678 ).split(',');
2679
2680
2681 /***/ }),
2682 /* 79 */
2683 /***/ (function(module, exports, __webpack_require__) {
2684
2685 var global = __webpack_require__(8);
2686 var core = __webpack_require__(6);
2687 var LIBRARY = __webpack_require__(47);
2688 var wksExt = __webpack_require__(63);
2689 var defineProperty = __webpack_require__(15).f;
2690 module.exports = function (name) {
2691 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
2692 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
2693 };
2694
2695
2696 /***/ }),
2697 /* 80 */
2698 /***/ (function(module, exports, __webpack_require__) {
2699
2700 "use strict";
2701
2702
2703 var isRegExp = __webpack_require__(122);
2704 var anObject = __webpack_require__(18);
2705 var speciesConstructor = __webpack_require__(154);
2706 var advanceStringIndex = __webpack_require__(105);
2707 var toLength = __webpack_require__(43);
2708 var callRegExpExec = __webpack_require__(94);
2709 var regexpExec = __webpack_require__(88);
2710 var fails = __webpack_require__(33);
2711 var $min = Math.min;
2712 var $push = [].push;
2713 var $SPLIT = 'split';
2714 var LENGTH = 'length';
2715 var LAST_INDEX = 'lastIndex';
2716 var MAX_UINT32 = 0xffffffff;
2717
2718 // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
2719 var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
2720
2721 // @@split logic
2722 __webpack_require__(95)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
2723 var internalSplit;
2724 if (
2725 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
2726 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
2727 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
2728 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
2729 '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
2730 ''[$SPLIT](/.?/)[LENGTH]
2731 ) {
2732 // based on es5-shim implementation, need to rework it
2733 internalSplit = function (separator, limit) {
2734 var string = String(this);
2735 if (separator === undefined && limit === 0) return [];
2736 // If `separator` is not a regex, use native split
2737 if (!isRegExp(separator)) return $split.call(string, separator, limit);
2738 var output = [];
2739 var flags = (separator.ignoreCase ? 'i' : '') +
2740 (separator.multiline ? 'm' : '') +
2741 (separator.unicode ? 'u' : '') +
2742 (separator.sticky ? 'y' : '');
2743 var lastLastIndex = 0;
2744 var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
2745 // Make `global` and avoid `lastIndex` issues by working with a copy
2746 var separatorCopy = new RegExp(separator.source, flags + 'g');
2747 var match, lastIndex, lastLength;
2748 while (match = regexpExec.call(separatorCopy, string)) {
2749 lastIndex = separatorCopy[LAST_INDEX];
2750 if (lastIndex > lastLastIndex) {
2751 output.push(string.slice(lastLastIndex, match.index));
2752 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
2753 lastLength = match[0][LENGTH];
2754 lastLastIndex = lastIndex;
2755 if (output[LENGTH] >= splitLimit) break;
2756 }
2757 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
2758 }
2759 if (lastLastIndex === string[LENGTH]) {
2760 if (lastLength || !separatorCopy.test('')) output.push('');
2761 } else output.push(string.slice(lastLastIndex));
2762 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
2763 };
2764 // Chakra, V8
2765 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
2766 internalSplit = function (separator, limit) {
2767 return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
2768 };
2769 } else {
2770 internalSplit = $split;
2771 }
2772
2773 return [
2774 // `String.prototype.split` method
2775 // https://tc39.github.io/ecma262/#sec-string.prototype.split
2776 function split(separator, limit) {
2777 var O = defined(this);
2778 var splitter = separator == undefined ? undefined : separator[SPLIT];
2779 return splitter !== undefined
2780 ? splitter.call(separator, O, limit)
2781 : internalSplit.call(String(O), separator, limit);
2782 },
2783 // `RegExp.prototype[@@split]` method
2784 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
2785 //
2786 // NOTE: This cannot be properly polyfilled in engines that don't support
2787 // the 'y' flag.
2788 function (regexp, limit) {
2789 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
2790 if (res.done) return res.value;
2791
2792 var rx = anObject(regexp);
2793 var S = String(this);
2794 var C = speciesConstructor(rx, RegExp);
2795
2796 var unicodeMatching = rx.unicode;
2797 var flags = (rx.ignoreCase ? 'i' : '') +
2798 (rx.multiline ? 'm' : '') +
2799 (rx.unicode ? 'u' : '') +
2800 (SUPPORTS_Y ? 'y' : 'g');
2801
2802 // ^(? + rx + ) is needed, in combination with some S slicing, to
2803 // simulate the 'y' flag.
2804 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
2805 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2806 if (lim === 0) return [];
2807 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
2808 var p = 0;
2809 var q = 0;
2810 var A = [];
2811 while (q < S.length) {
2812 splitter.lastIndex = SUPPORTS_Y ? q : 0;
2813 var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
2814 var e;
2815 if (
2816 z === null ||
2817 (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
2818 ) {
2819 q = advanceStringIndex(S, q, unicodeMatching);
2820 } else {
2821 A.push(S.slice(p, q));
2822 if (A.length === lim) return A;
2823 for (var i = 1; i <= z.length - 1; i++) {
2824 A.push(z[i]);
2825 if (A.length === lim) return A;
2826 }
2827 q = p = e;
2828 }
2829 }
2830 A.push(S.slice(p));
2831 return A;
2832 }
2833 ];
2834 });
2835
2836
2837 /***/ }),
2838 /* 81 */
2839 /***/ (function(module, exports, __webpack_require__) {
2840
2841 module.exports = __webpack_require__(220);
2842
2843 /***/ }),
2844 /* 82 */
2845 /***/ (function(module, exports, __webpack_require__) {
2846
2847 "use strict";
2848
2849
2850 var _interopRequireDefault = __webpack_require__(0);
2851
2852 var _Object$defineProperty = __webpack_require__(1);
2853
2854 _Object$defineProperty(exports, "__esModule", {
2855 value: true
2856 });
2857
2858 exports.default = void 0;
2859
2860 __webpack_require__(58);
2861
2862 var _keys = _interopRequireDefault(__webpack_require__(23));
2863
2864 __webpack_require__(80);
2865
2866 var _values = _interopRequireDefault(__webpack_require__(54));
2867
2868 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104));
2869
2870 var _entries = _interopRequireDefault(__webpack_require__(87));
2871
2872 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
2873
2874 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
2875
2876 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
2877
2878 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
2879
2880 var ComponentBase = /*#__PURE__*/function (_elementorModules$Mod) {
2881 (0, _inherits2.default)(ComponentBase, _elementorModules$Mod);
2882
2883 var _super = (0, _createSuper2.default)(ComponentBase);
2884
2885 function ComponentBase() {
2886 (0, _classCallCheck2.default)(this, ComponentBase);
2887 return _super.apply(this, arguments);
2888 }
2889
2890 (0, _createClass2.default)(ComponentBase, [{
2891 key: "__construct",
2892 value: function __construct() {
2893 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2894
2895 if (args.manager) {
2896 this.manager = args.manager;
2897 }
2898
2899 this.commands = this.defaultCommands();
2900 this.commandsInternal = this.defaultCommandsInternal();
2901 this.hooks = this.defaultHooks();
2902 this.routes = this.defaultRoutes();
2903 this.tabs = this.defaultTabs();
2904 this.shortcuts = this.defaultShortcuts();
2905 this.utils = this.defaultUtils();
2906 this.data = this.defaultData();
2907 this.defaultRoute = '';
2908 this.currentTab = '';
2909 }
2910 }, {
2911 key: "registerAPI",
2912 value: function registerAPI() {
2913 var _this = this;
2914
2915 (0, _entries.default)(this.getTabs()).forEach(function (tab) {
2916 return _this.registerTabRoute(tab[0]);
2917 });
2918 (0, _entries.default)(this.getRoutes()).forEach(function (_ref) {
2919 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
2920 route = _ref2[0],
2921 callback = _ref2[1];
2922
2923 return _this.registerRoute(route, callback);
2924 });
2925 (0, _entries.default)(this.getCommands()).forEach(function (_ref3) {
2926 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
2927 command = _ref4[0],
2928 callback = _ref4[1];
2929
2930 return _this.registerCommand(command, callback);
2931 });
2932 (0, _entries.default)(this.getCommandsInternal()).forEach(function (_ref5) {
2933 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
2934 command = _ref6[0],
2935 callback = _ref6[1];
2936
2937 return _this.registerCommandInternal(command, callback);
2938 });
2939 (0, _values.default)(this.getHooks()).forEach(function (instance) {
2940 return _this.registerHook(instance);
2941 });
2942 (0, _entries.default)(this.getData()).forEach(function (_ref7) {
2943 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
2944 command = _ref8[0],
2945 callback = _ref8[1];
2946
2947 return _this.registerData(command, callback);
2948 });
2949 }
2950 /**
2951 * @returns {string}
2952 */
2953
2954 }, {
2955 key: "getNamespace",
2956 value: function getNamespace() {
2957 elementorModules.ForceMethodImplementation();
2958 }
2959 }, {
2960 key: "getRootContainer",
2961 value: function getRootContainer() {
2962 var parts = this.getNamespace().split('/');
2963 return parts[0];
2964 }
2965 }, {
2966 key: "defaultTabs",
2967 value: function defaultTabs() {
2968 return {};
2969 }
2970 }, {
2971 key: "defaultRoutes",
2972 value: function defaultRoutes() {
2973 return {};
2974 }
2975 }, {
2976 key: "defaultCommands",
2977 value: function defaultCommands() {
2978 return {};
2979 }
2980 }, {
2981 key: "defaultCommandsInternal",
2982 value: function defaultCommandsInternal() {
2983 return {};
2984 }
2985 }, {
2986 key: "defaultHooks",
2987 value: function defaultHooks() {
2988 return {};
2989 }
2990 }, {
2991 key: "defaultShortcuts",
2992 value: function defaultShortcuts() {
2993 return {};
2994 }
2995 }, {
2996 key: "defaultUtils",
2997 value: function defaultUtils() {
2998 return {};
2999 }
3000 }, {
3001 key: "defaultData",
3002 value: function defaultData() {
3003 return {};
3004 }
3005 }, {
3006 key: "getCommands",
3007 value: function getCommands() {
3008 return this.commands;
3009 }
3010 }, {
3011 key: "getCommandsInternal",
3012 value: function getCommandsInternal() {
3013 return this.commandsInternal;
3014 }
3015 }, {
3016 key: "getHooks",
3017 value: function getHooks() {
3018 return this.hooks;
3019 }
3020 }, {
3021 key: "getRoutes",
3022 value: function getRoutes() {
3023 return this.routes;
3024 }
3025 }, {
3026 key: "getTabs",
3027 value: function getTabs() {
3028 return this.tabs;
3029 }
3030 }, {
3031 key: "getShortcuts",
3032 value: function getShortcuts() {
3033 return this.shortcuts;
3034 }
3035 }, {
3036 key: "getData",
3037 value: function getData() {
3038 return this.data;
3039 }
3040 }, {
3041 key: "registerCommand",
3042 value: function registerCommand(command, callback) {
3043 $e.commands.register(this, command, callback);
3044 }
3045 /**
3046 * @param {HookBase} instance
3047 */
3048
3049 }, {
3050 key: "registerHook",
3051 value: function registerHook(instance) {
3052 return instance.register();
3053 }
3054 }, {
3055 key: "registerCommandInternal",
3056 value: function registerCommandInternal(command, callback) {
3057 $e.commandsInternal.register(this, command, callback);
3058 }
3059 }, {
3060 key: "registerRoute",
3061 value: function registerRoute(route, callback) {
3062 $e.routes.register(this, route, callback);
3063 }
3064 }, {
3065 key: "registerData",
3066 value: function registerData(command, callback) {
3067 $e.data.register(this, command, callback);
3068 }
3069 }, {
3070 key: "unregisterRoute",
3071 value: function unregisterRoute(route) {
3072 $e.routes.unregister(this, route);
3073 }
3074 }, {
3075 key: "registerTabRoute",
3076 value: function registerTabRoute(tab) {
3077 var _this2 = this;
3078
3079 this.registerRoute(tab, function (args) {
3080 return _this2.activateTab(tab, args);
3081 });
3082 }
3083 }, {
3084 key: "dependency",
3085 value: function dependency() {
3086 return true;
3087 }
3088 }, {
3089 key: "open",
3090 value: function open() {
3091 return true;
3092 }
3093 }, {
3094 key: "close",
3095 value: function close() {
3096 if (!this.isOpen) {
3097 return false;
3098 }
3099
3100 this.isOpen = false;
3101 this.inactivate();
3102 $e.routes.clearCurrent(this.getNamespace());
3103 $e.routes.clearHistory(this.getRootContainer());
3104 return true;
3105 }
3106 }, {
3107 key: "activate",
3108 value: function activate() {
3109 $e.components.activate(this.getNamespace());
3110 }
3111 }, {
3112 key: "inactivate",
3113 value: function inactivate() {
3114 $e.components.inactivate(this.getNamespace());
3115 }
3116 }, {
3117 key: "isActive",
3118 value: function isActive() {
3119 return $e.components.isActive(this.getNamespace());
3120 }
3121 }, {
3122 key: "onRoute",
3123 value: function onRoute(route) {
3124 this.toggleRouteClass(route, true);
3125 this.toggleHistoryClass();
3126 this.activate();
3127 this.trigger('route/open', route);
3128 }
3129 }, {
3130 key: "onCloseRoute",
3131 value: function onCloseRoute(route) {
3132 this.toggleRouteClass(route, false);
3133 this.inactivate();
3134 this.trigger('route/close', route);
3135 }
3136 }, {
3137 key: "setDefaultRoute",
3138 value: function setDefaultRoute(route) {
3139 this.defaultRoute = this.getNamespace() + '/' + route;
3140 }
3141 }, {
3142 key: "getDefaultRoute",
3143 value: function getDefaultRoute() {
3144 return this.defaultRoute;
3145 }
3146 }, {
3147 key: "removeTab",
3148 value: function removeTab(tab) {
3149 delete this.tabs[tab];
3150 this.unregisterRoute(tab);
3151 }
3152 }, {
3153 key: "hasTab",
3154 value: function hasTab(tab) {
3155 return !!this.tabs[tab];
3156 }
3157 }, {
3158 key: "addTab",
3159 value: function addTab(tab, args, position) {
3160 var _this3 = this;
3161
3162 this.tabs[tab] = args; // It can be 0.
3163
3164 if ('undefined' !== typeof position) {
3165 var newTabs = {};
3166 var ids = (0, _keys.default)(this.tabs); // Remove new tab
3167
3168 ids.pop(); // Add it to position.
3169
3170 ids.splice(position, 0, tab);
3171 ids.forEach(function (id) {
3172 newTabs[id] = _this3.tabs[id];
3173 });
3174 this.tabs = newTabs;
3175 }
3176
3177 this.registerTabRoute(tab);
3178 }
3179 }, {
3180 key: "getTabsWrapperSelector",
3181 value: function getTabsWrapperSelector() {
3182 return '';
3183 }
3184 }, {
3185 key: "getTabRoute",
3186 value: function getTabRoute(tab) {
3187 return this.getNamespace() + '/' + tab;
3188 }
3189 }, {
3190 key: "renderTab",
3191 value: function renderTab(tab) {} // eslint-disable-line
3192
3193 }, {
3194 key: "activateTab",
3195 value: function activateTab(tab, args) {
3196 var _this4 = this;
3197
3198 this.currentTab = tab;
3199 this.renderTab(tab, args);
3200 jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
3201 $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
3202 }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
3203 }
3204 }, {
3205 key: "getActiveTabConfig",
3206 value: function getActiveTabConfig() {
3207 return this.tabs[this.currentTab] || {};
3208 }
3209 }, {
3210 key: "getBodyClass",
3211 value: function getBodyClass(route) {
3212 return 'e-route-' + route.replace(/\//g, '-');
3213 }
3214 /**
3215 * If command includes uppercase character convert it to lowercase and add `-`.
3216 * e.g: `CopyAll` is converted to `copy-all`.
3217 */
3218
3219 }, {
3220 key: "normalizeCommandName",
3221 value: function normalizeCommandName(commandName) {
3222 return commandName.replace(/[A-Z]/g, function (match, offset) {
3223 return (offset > 0 ? '-' : '') + match.toLowerCase();
3224 });
3225 }
3226 }, {
3227 key: "importCommands",
3228 value: function importCommands(commandsFromImport) {
3229 var _this5 = this;
3230
3231 var commands = {}; // Convert `Commands` to `ComponentBase` workable format.
3232
3233 (0, _entries.default)(commandsFromImport).forEach(function (_ref9) {
3234 var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3235 className = _ref10[0],
3236 Class = _ref10[1];
3237
3238 var command = _this5.normalizeCommandName(className);
3239
3240 commands[command] = function (args) {
3241 return new Class(args).run();
3242 }; // TODO: Temporary code, remove after merge with 'require-commands-base' branch.
3243 // should not return callback, but Class or Instance without run ( gain performance ).
3244
3245
3246 $e.commands.classes[_this5.getNamespace() + '/' + command] = Class;
3247 });
3248 return commands;
3249 }
3250 }, {
3251 key: "importHooks",
3252 value: function importHooks(hooksFromImport) {
3253 var hooks = {};
3254
3255 for (var key in hooksFromImport) {
3256 var hook = new hooksFromImport[key]();
3257 hooks[hook.getId()] = hook;
3258 }
3259
3260 return hooks;
3261 }
3262 }, {
3263 key: "toggleRouteClass",
3264 value: function toggleRouteClass(route, state) {
3265 elementorCommon.elements.$body.toggleClass(this.getBodyClass(route), state);
3266 }
3267 }, {
3268 key: "toggleHistoryClass",
3269 value: function toggleHistoryClass() {
3270 elementorCommon.elements.$body.toggleClass('e-routes-has-history', !!$e.routes.getHistory(this.getRootContainer()).length);
3271 }
3272 }]);
3273 return ComponentBase;
3274 }(elementorModules.Module);
3275
3276 exports.default = ComponentBase;
3277
3278 /***/ }),
3279 /* 83 */
3280 /***/ (function(module, exports, __webpack_require__) {
3281
3282 // most Object methods by ES6 should accept primitives
3283 var $export = __webpack_require__(7);
3284 var core = __webpack_require__(6);
3285 var fails = __webpack_require__(22);
3286 module.exports = function (KEY, exec) {
3287 var fn = (core.Object || {})[KEY] || Object[KEY];
3288 var exp = {};
3289 exp[KEY] = exec(fn);
3290 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
3291 };
3292
3293
3294 /***/ }),
3295 /* 84 */,
3296 /* 85 */
3297 /***/ (function(module, exports, __webpack_require__) {
3298
3299 // 22.1.3.31 Array.prototype[@@unscopables]
3300 var UNSCOPABLES = __webpack_require__(12)('unscopables');
3301 var ArrayProto = Array.prototype;
3302 if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {});
3303 module.exports = function (key) {
3304 ArrayProto[UNSCOPABLES][key] = true;
3305 };
3306
3307
3308 /***/ }),
3309 /* 86 */
3310 /***/ (function(module, exports, __webpack_require__) {
3311
3312 var ctx = __webpack_require__(31);
3313 var call = __webpack_require__(139);
3314 var isArrayIter = __webpack_require__(140);
3315 var anObject = __webpack_require__(13);
3316 var toLength = __webpack_require__(68);
3317 var getIterFn = __webpack_require__(112);
3318 var BREAK = {};
3319 var RETURN = {};
3320 var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
3321 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
3322 var f = ctx(fn, that, entries ? 2 : 1);
3323 var index = 0;
3324 var length, step, iterator, result;
3325 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
3326 // fast case for arrays with default iterator
3327 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
3328 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
3329 if (result === BREAK || result === RETURN) return result;
3330 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
3331 result = call(iterator, f, step.value, entries);
3332 if (result === BREAK || result === RETURN) return result;
3333 }
3334 };
3335 exports.BREAK = BREAK;
3336 exports.RETURN = RETURN;
3337
3338
3339 /***/ }),
3340 /* 87 */
3341 /***/ (function(module, exports, __webpack_require__) {
3342
3343 module.exports = __webpack_require__(269);
3344
3345 /***/ }),
3346 /* 88 */
3347 /***/ (function(module, exports, __webpack_require__) {
3348
3349 "use strict";
3350
3351
3352 var regexpFlags = __webpack_require__(106);
3353
3354 var nativeExec = RegExp.prototype.exec;
3355 // This always refers to the native implementation, because the
3356 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
3357 // which loads this file before patching the method.
3358 var nativeReplace = String.prototype.replace;
3359
3360 var patchedExec = nativeExec;
3361
3362 var LAST_INDEX = 'lastIndex';
3363
3364 var UPDATES_LAST_INDEX_WRONG = (function () {
3365 var re1 = /a/,
3366 re2 = /b*/g;
3367 nativeExec.call(re1, 'a');
3368 nativeExec.call(re2, 'a');
3369 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
3370 })();
3371
3372 // nonparticipating capturing group, copied from es5-shim's String#split patch.
3373 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
3374
3375 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
3376
3377 if (PATCH) {
3378 patchedExec = function exec(str) {
3379 var re = this;
3380 var lastIndex, reCopy, match, i;
3381
3382 if (NPCG_INCLUDED) {
3383 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
3384 }
3385 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
3386
3387 match = nativeExec.call(re, str);
3388
3389 if (UPDATES_LAST_INDEX_WRONG && match) {
3390 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
3391 }
3392 if (NPCG_INCLUDED && match && match.length > 1) {
3393 // Fix browsers whose `exec` methods don't consistently return `undefined`
3394 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
3395 // eslint-disable-next-line no-loop-func
3396 nativeReplace.call(match[0], reCopy, function () {
3397 for (i = 1; i < arguments.length - 2; i++) {
3398 if (arguments[i] === undefined) match[i] = undefined;
3399 }
3400 });
3401 }
3402
3403 return match;
3404 };
3405 }
3406
3407 module.exports = patchedExec;
3408
3409
3410 /***/ }),
3411 /* 89 */
3412 /***/ (function(module, exports, __webpack_require__) {
3413
3414 module.exports = __webpack_require__(69);
3415
3416
3417 /***/ }),
3418 /* 90 */
3419 /***/ (function(module, exports, __webpack_require__) {
3420
3421 var _Promise = __webpack_require__(133);
3422
3423 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
3424 try {
3425 var info = gen[key](arg);
3426 var value = info.value;
3427 } catch (error) {
3428 reject(error);
3429 return;
3430 }
3431
3432 if (info.done) {
3433 resolve(value);
3434 } else {
3435 _Promise.resolve(value).then(_next, _throw);
3436 }
3437 }
3438
3439 function _asyncToGenerator(fn) {
3440 return function () {
3441 var self = this,
3442 args = arguments;
3443 return new _Promise(function (resolve, reject) {
3444 var gen = fn.apply(self, args);
3445
3446 function _next(value) {
3447 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
3448 }
3449
3450 function _throw(err) {
3451 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
3452 }
3453
3454 _next(undefined);
3455 });
3456 };
3457 }
3458
3459 module.exports = _asyncToGenerator;
3460
3461 /***/ }),
3462 /* 91 */
3463 /***/ (function(module, exports) {
3464
3465 module.exports = function (it) {
3466 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
3467 return it;
3468 };
3469
3470
3471 /***/ }),
3472 /* 92 */
3473 /***/ (function(module, exports, __webpack_require__) {
3474
3475 var isObject = __webpack_require__(9);
3476 var document = __webpack_require__(8).document;
3477 // typeof document.createElement is 'object' in old IE
3478 var is = isObject(document) && isObject(document.createElement);
3479 module.exports = function (it) {
3480 return is ? document.createElement(it) : {};
3481 };
3482
3483
3484 /***/ }),
3485 /* 93 */
3486 /***/ (function(module, exports, __webpack_require__) {
3487
3488 module.exports = __webpack_require__(24);
3489
3490
3491 /***/ }),
3492 /* 94 */
3493 /***/ (function(module, exports, __webpack_require__) {
3494
3495 "use strict";
3496
3497
3498 var classof = __webpack_require__(113);
3499 var builtinExec = RegExp.prototype.exec;
3500
3501 // `RegExpExec` abstract operation
3502 // https://tc39.github.io/ecma262/#sec-regexpexec
3503 module.exports = function (R, S) {
3504 var exec = R.exec;
3505 if (typeof exec === 'function') {
3506 var result = exec.call(R, S);
3507 if (typeof result !== 'object') {
3508 throw new TypeError('RegExp exec method returned something other than an Object or null');
3509 }
3510 return result;
3511 }
3512 if (classof(R) !== 'RegExp') {
3513 throw new TypeError('RegExp#exec called on incompatible receiver');
3514 }
3515 return builtinExec.call(R, S);
3516 };
3517
3518
3519 /***/ }),
3520 /* 95 */
3521 /***/ (function(module, exports, __webpack_require__) {
3522
3523 "use strict";
3524
3525 __webpack_require__(190);
3526 var redefine = __webpack_require__(35);
3527 var hide = __webpack_require__(29);
3528 var fails = __webpack_require__(33);
3529 var defined = __webpack_require__(42);
3530 var wks = __webpack_require__(12);
3531 var regexpExec = __webpack_require__(88);
3532
3533 var SPECIES = wks('species');
3534
3535 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
3536 // #replace needs built-in support for named groups.
3537 // #match works fine because it just return the exec results, even if it has
3538 // a "grops" property.
3539 var re = /./;
3540 re.exec = function () {
3541 var result = [];
3542 result.groups = { a: '7' };
3543 return result;
3544 };
3545 return ''.replace(re, '$<a>') !== '7';
3546 });
3547
3548 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
3549 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
3550 var re = /(?:)/;
3551 var originalExec = re.exec;
3552 re.exec = function () { return originalExec.apply(this, arguments); };
3553 var result = 'ab'.split(re);
3554 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
3555 })();
3556
3557 module.exports = function (KEY, length, exec) {
3558 var SYMBOL = wks(KEY);
3559
3560 var DELEGATES_TO_SYMBOL = !fails(function () {
3561 // String methods call symbol-named RegEp methods
3562 var O = {};
3563 O[SYMBOL] = function () { return 7; };
3564 return ''[KEY](O) != 7;
3565 });
3566
3567 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
3568 // Symbol-named RegExp methods call .exec
3569 var execCalled = false;
3570 var re = /a/;
3571 re.exec = function () { execCalled = true; return null; };
3572 if (KEY === 'split') {
3573 // RegExp[@@split] doesn't call the regex's exec method, but first creates
3574 // a new one. We need to return the patched regex when creating the new one.
3575 re.constructor = {};
3576 re.constructor[SPECIES] = function () { return re; };
3577 }
3578 re[SYMBOL]('');
3579 return !execCalled;
3580 }) : undefined;
3581
3582 if (
3583 !DELEGATES_TO_SYMBOL ||
3584 !DELEGATES_TO_EXEC ||
3585 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
3586 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
3587 ) {
3588 var nativeRegExpMethod = /./[SYMBOL];
3589 var fns = exec(
3590 defined,
3591 SYMBOL,
3592 ''[KEY],
3593 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
3594 if (regexp.exec === regexpExec) {
3595 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
3596 // The native String method already delegates to @@method (this
3597 // polyfilled function), leasing to infinite recursion.
3598 // We avoid it by directly calling the native @@method method.
3599 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
3600 }
3601 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
3602 }
3603 return { done: false };
3604 }
3605 );
3606 var strfn = fns[0];
3607 var rxfn = fns[1];
3608
3609 redefine(String.prototype, KEY, strfn);
3610 hide(RegExp.prototype, SYMBOL, length == 2
3611 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
3612 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
3613 ? function (string, arg) { return rxfn.call(string, this, arg); }
3614 // 21.2.5.6 RegExp.prototype[@@match](string)
3615 // 21.2.5.9 RegExp.prototype[@@search](string)
3616 : function (string) { return rxfn.call(string, this); }
3617 );
3618 }
3619 };
3620
3621
3622 /***/ }),
3623 /* 96 */
3624 /***/ (function(module, exports, __webpack_require__) {
3625
3626 // 7.1.13 ToObject(argument)
3627 var defined = __webpack_require__(42);
3628 module.exports = function (it) {
3629 return Object(defined(it));
3630 };
3631
3632
3633 /***/ }),
3634 /* 97 */
3635 /***/ (function(module, exports, __webpack_require__) {
3636
3637 // 7.2.2 IsArray(argument)
3638 var cof = __webpack_require__(56);
3639 module.exports = Array.isArray || function isArray(arg) {
3640 return cof(arg) == 'Array';
3641 };
3642
3643
3644 /***/ }),
3645 /* 98 */
3646 /***/ (function(module, exports, __webpack_require__) {
3647
3648 // to indexed object, toObject with fallback for non-array-like ES3 strings
3649 var IObject = __webpack_require__(120);
3650 var defined = __webpack_require__(42);
3651 module.exports = function (it) {
3652 return IObject(defined(it));
3653 };
3654
3655
3656 /***/ }),
3657 /* 99 */
3658 /***/ (function(module, exports, __webpack_require__) {
3659
3660 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
3661 var $keys = __webpack_require__(116);
3662 var hiddenKeys = __webpack_require__(78).concat('length', 'prototype');
3663
3664 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
3665 return $keys(O, hiddenKeys);
3666 };
3667
3668
3669 /***/ }),
3670 /* 100 */
3671 /***/ (function(module, exports) {
3672
3673
3674
3675 /***/ }),
3676 /* 101 */
3677 /***/ (function(module, exports, __webpack_require__) {
3678
3679 // getting tag from 19.1.3.6 Object.prototype.toString()
3680 var cof = __webpack_require__(56);
3681 var TAG = __webpack_require__(10)('toStringTag');
3682 // ES3 wrong here
3683 var ARG = cof(function () { return arguments; }()) == 'Arguments';
3684
3685 // fallback for IE11 Script Access Denied error
3686 var tryGet = function (it, key) {
3687 try {
3688 return it[key];
3689 } catch (e) { /* empty */ }
3690 };
3691
3692 module.exports = function (it) {
3693 var O, T, B;
3694 return it === undefined ? 'Undefined' : it === null ? 'Null'
3695 // @@toStringTag case
3696 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
3697 // builtinTag case
3698 : ARG ? cof(O)
3699 // ES3 arguments fallback
3700 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
3701 };
3702
3703
3704 /***/ }),
3705 /* 102 */
3706 /***/ (function(module, exports) {
3707
3708 module.exports = function (bitmap, value) {
3709 return {
3710 enumerable: !(bitmap & 1),
3711 configurable: !(bitmap & 2),
3712 writable: !(bitmap & 4),
3713 value: value
3714 };
3715 };
3716
3717
3718 /***/ }),
3719 /* 103 */
3720 /***/ (function(module, exports, __webpack_require__) {
3721
3722 // fallback for non-array-like ES3 and non-enumerable old V8 strings
3723 var cof = __webpack_require__(56);
3724 // eslint-disable-next-line no-prototype-builtins
3725 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
3726 return cof(it) == 'String' ? it.split('') : Object(it);
3727 };
3728
3729
3730 /***/ }),
3731 /* 104 */
3732 /***/ (function(module, exports, __webpack_require__) {
3733
3734 var arrayWithHoles = __webpack_require__(247);
3735
3736 var iterableToArrayLimit = __webpack_require__(248);
3737
3738 var unsupportedIterableToArray = __webpack_require__(186);
3739
3740 var nonIterableRest = __webpack_require__(251);
3741
3742 function _slicedToArray(arr, i) {
3743 return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3744 }
3745
3746 module.exports = _slicedToArray;
3747
3748 /***/ }),
3749 /* 105 */
3750 /***/ (function(module, exports, __webpack_require__) {
3751
3752 "use strict";
3753
3754 var at = __webpack_require__(142)(true);
3755
3756 // `AdvanceStringIndex` abstract operation
3757 // https://tc39.github.io/ecma262/#sec-advancestringindex
3758 module.exports = function (S, index, unicode) {
3759 return index + (unicode ? at(S, index).length : 1);
3760 };
3761
3762
3763 /***/ }),
3764 /* 106 */
3765 /***/ (function(module, exports, __webpack_require__) {
3766
3767 "use strict";
3768
3769 // 21.2.5.3 get RegExp.prototype.flags
3770 var anObject = __webpack_require__(18);
3771 module.exports = function () {
3772 var that = anObject(this);
3773 var result = '';
3774 if (that.global) result += 'g';
3775 if (that.ignoreCase) result += 'i';
3776 if (that.multiline) result += 'm';
3777 if (that.unicode) result += 'u';
3778 if (that.sticky) result += 'y';
3779 return result;
3780 };
3781
3782
3783 /***/ }),
3784 /* 107 */
3785 /***/ (function(module, exports, __webpack_require__) {
3786
3787 module.exports = __webpack_require__(167);
3788
3789 /***/ }),
3790 /* 108 */
3791 /***/ (function(module, exports, __webpack_require__) {
3792
3793 "use strict";
3794
3795 var LIBRARY = __webpack_require__(47);
3796 var $export = __webpack_require__(7);
3797 var redefine = __webpack_require__(93);
3798 var hide = __webpack_require__(24);
3799 var Iterators = __webpack_require__(34);
3800 var $iterCreate = __webpack_require__(173);
3801 var setToStringTag = __webpack_require__(53);
3802 var getPrototypeOf = __webpack_require__(64);
3803 var ITERATOR = __webpack_require__(10)('iterator');
3804 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
3805 var FF_ITERATOR = '@@iterator';
3806 var KEYS = 'keys';
3807 var VALUES = 'values';
3808
3809 var returnThis = function () { return this; };
3810
3811 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
3812 $iterCreate(Constructor, NAME, next);
3813 var getMethod = function (kind) {
3814 if (!BUGGY && kind in proto) return proto[kind];
3815 switch (kind) {
3816 case KEYS: return function keys() { return new Constructor(this, kind); };
3817 case VALUES: return function values() { return new Constructor(this, kind); };
3818 } return function entries() { return new Constructor(this, kind); };
3819 };
3820 var TAG = NAME + ' Iterator';
3821 var DEF_VALUES = DEFAULT == VALUES;
3822 var VALUES_BUG = false;
3823 var proto = Base.prototype;
3824 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
3825 var $default = $native || getMethod(DEFAULT);
3826 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
3827 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
3828 var methods, key, IteratorPrototype;
3829 // Fix native
3830 if ($anyNative) {
3831 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
3832 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
3833 // Set @@toStringTag to native iterators
3834 setToStringTag(IteratorPrototype, TAG, true);
3835 // fix for some old engines
3836 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
3837 }
3838 }
3839 // fix Array#{values, @@iterator}.name in V8 / FF
3840 if (DEF_VALUES && $native && $native.name !== VALUES) {
3841 VALUES_BUG = true;
3842 $default = function values() { return $native.call(this); };
3843 }
3844 // Define iterator
3845 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
3846 hide(proto, ITERATOR, $default);
3847 }
3848 // Plug for library
3849 Iterators[NAME] = $default;
3850 Iterators[TAG] = returnThis;
3851 if (DEFAULT) {
3852 methods = {
3853 values: DEF_VALUES ? $default : getMethod(VALUES),
3854 keys: IS_SET ? $default : getMethod(KEYS),
3855 entries: $entries
3856 };
3857 if (FORCED) for (key in methods) {
3858 if (!(key in proto)) redefine(proto, key, methods[key]);
3859 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
3860 }
3861 return methods;
3862 };
3863
3864
3865 /***/ }),
3866 /* 109 */
3867 /***/ (function(module, exports, __webpack_require__) {
3868
3869 var isObject = __webpack_require__(30);
3870 var document = __webpack_require__(17).document;
3871 // typeof document.createElement is 'object' in old IE
3872 var is = isObject(document) && isObject(document.createElement);
3873 module.exports = function (it) {
3874 return is ? document.createElement(it) : {};
3875 };
3876
3877
3878 /***/ }),
3879 /* 110 */
3880 /***/ (function(module, exports) {
3881
3882 module.exports = false;
3883
3884
3885 /***/ }),
3886 /* 111 */
3887 /***/ (function(module, exports, __webpack_require__) {
3888
3889 module.exports = __webpack_require__(176);
3890
3891 /***/ }),
3892 /* 112 */
3893 /***/ (function(module, exports, __webpack_require__) {
3894
3895 var classof = __webpack_require__(101);
3896 var ITERATOR = __webpack_require__(10)('iterator');
3897 var Iterators = __webpack_require__(34);
3898 module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
3899 if (it != undefined) return it[ITERATOR]
3900 || it['@@iterator']
3901 || Iterators[classof(it)];
3902 };
3903
3904
3905 /***/ }),
3906 /* 113 */
3907 /***/ (function(module, exports, __webpack_require__) {
3908
3909 // getting tag from 19.1.3.6 Object.prototype.toString()
3910 var cof = __webpack_require__(46);
3911 var TAG = __webpack_require__(12)('toStringTag');
3912 // ES3 wrong here
3913 var ARG = cof(function () { return arguments; }()) == 'Arguments';
3914
3915 // fallback for IE11 Script Access Denied error
3916 var tryGet = function (it, key) {
3917 try {
3918 return it[key];
3919 } catch (e) { /* empty */ }
3920 };
3921
3922 module.exports = function (it) {
3923 var O, T, B;
3924 return it === undefined ? 'Undefined' : it === null ? 'Null'
3925 // @@toStringTag case
3926 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
3927 // builtinTag case
3928 : ARG ? cof(O)
3929 // ES3 arguments fallback
3930 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
3931 };
3932
3933
3934 /***/ }),
3935 /* 114 */
3936 /***/ (function(module, exports, __webpack_require__) {
3937
3938 module.exports = !__webpack_require__(14) && !__webpack_require__(22)(function () {
3939 return Object.defineProperty(__webpack_require__(92)('div'), 'a', { get: function () { return 7; } }).a != 7;
3940 });
3941
3942
3943 /***/ }),
3944 /* 115 */
3945 /***/ (function(module, exports, __webpack_require__) {
3946
3947 module.exports = __webpack_require__(160);
3948
3949 /***/ }),
3950 /* 116 */
3951 /***/ (function(module, exports, __webpack_require__) {
3952
3953 var has = __webpack_require__(19);
3954 var toIObject = __webpack_require__(20);
3955 var arrayIndexOf = __webpack_require__(165)(false);
3956 var IE_PROTO = __webpack_require__(75)('IE_PROTO');
3957
3958 module.exports = function (object, names) {
3959 var O = toIObject(object);
3960 var i = 0;
3961 var result = [];
3962 var key;
3963 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
3964 // Don't enum bug & hidden keys
3965 while (names.length > i) if (has(O, key = names[i++])) {
3966 ~arrayIndexOf(result, key) || result.push(key);
3967 }
3968 return result;
3969 };
3970
3971
3972 /***/ }),
3973 /* 117 */
3974 /***/ (function(module, exports, __webpack_require__) {
3975
3976 "use strict";
3977
3978 var addToUnscopables = __webpack_require__(85);
3979 var step = __webpack_require__(241);
3980 var Iterators = __webpack_require__(118);
3981 var toIObject = __webpack_require__(98);
3982
3983 // 22.1.3.4 Array.prototype.entries()
3984 // 22.1.3.13 Array.prototype.keys()
3985 // 22.1.3.29 Array.prototype.values()
3986 // 22.1.3.30 Array.prototype[@@iterator]()
3987 module.exports = __webpack_require__(197)(Array, 'Array', function (iterated, kind) {
3988 this._t = toIObject(iterated); // target
3989 this._i = 0; // next index
3990 this._k = kind; // kind
3991 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
3992 }, function () {
3993 var O = this._t;
3994 var kind = this._k;
3995 var index = this._i++;
3996 if (!O || index >= O.length) {
3997 this._t = undefined;
3998 return step(1);
3999 }
4000 if (kind == 'keys') return step(0, index);
4001 if (kind == 'values') return step(0, O[index]);
4002 return step(0, [index, O[index]]);
4003 }, 'values');
4004
4005 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
4006 Iterators.Arguments = Iterators.Array;
4007
4008 addToUnscopables('keys');
4009 addToUnscopables('values');
4010 addToUnscopables('entries');
4011
4012
4013 /***/ }),
4014 /* 118 */
4015 /***/ (function(module, exports) {
4016
4017 module.exports = {};
4018
4019
4020 /***/ }),
4021 /* 119 */
4022 /***/ (function(module, exports, __webpack_require__) {
4023
4024 "use strict";
4025
4026
4027 var anObject = __webpack_require__(18);
4028 var toLength = __webpack_require__(43);
4029 var advanceStringIndex = __webpack_require__(105);
4030 var regExpExec = __webpack_require__(94);
4031
4032 // @@match logic
4033 __webpack_require__(95)('match', 1, function (defined, MATCH, $match, maybeCallNative) {
4034 return [
4035 // `String.prototype.match` method
4036 // https://tc39.github.io/ecma262/#sec-string.prototype.match
4037 function match(regexp) {
4038 var O = defined(this);
4039 var fn = regexp == undefined ? undefined : regexp[MATCH];
4040 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
4041 },
4042 // `RegExp.prototype[@@match]` method
4043 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
4044 function (regexp) {
4045 var res = maybeCallNative($match, regexp, this);
4046 if (res.done) return res.value;
4047 var rx = anObject(regexp);
4048 var S = String(this);
4049 if (!rx.global) return regExpExec(rx, S);
4050 var fullUnicode = rx.unicode;
4051 rx.lastIndex = 0;
4052 var A = [];
4053 var n = 0;
4054 var result;
4055 while ((result = regExpExec(rx, S)) !== null) {
4056 var matchStr = String(result[0]);
4057 A[n] = matchStr;
4058 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4059 n++;
4060 }
4061 return n === 0 ? null : A;
4062 }
4063 ];
4064 });
4065
4066
4067 /***/ }),
4068 /* 120 */
4069 /***/ (function(module, exports, __webpack_require__) {
4070
4071 // fallback for non-array-like ES3 and non-enumerable old V8 strings
4072 var cof = __webpack_require__(46);
4073 // eslint-disable-next-line no-prototype-builtins
4074 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
4075 return cof(it) == 'String' ? it.split('') : Object(it);
4076 };
4077
4078
4079 /***/ }),
4080 /* 121 */
4081 /***/ (function(module, exports, __webpack_require__) {
4082
4083 var isObject = __webpack_require__(9);
4084 module.exports = function (it, TYPE) {
4085 if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
4086 return it;
4087 };
4088
4089
4090 /***/ }),
4091 /* 122 */
4092 /***/ (function(module, exports, __webpack_require__) {
4093
4094 // 7.2.8 IsRegExp(argument)
4095 var isObject = __webpack_require__(30);
4096 var cof = __webpack_require__(46);
4097 var MATCH = __webpack_require__(12)('match');
4098 module.exports = function (it) {
4099 var isRegExp;
4100 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
4101 };
4102
4103
4104 /***/ }),
4105 /* 123 */
4106 /***/ (function(module, exports, __webpack_require__) {
4107
4108 // 7.1.1 ToPrimitive(input [, PreferredType])
4109 var isObject = __webpack_require__(30);
4110 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
4111 // and the second argument - flag - preferred type is a string
4112 module.exports = function (it, S) {
4113 if (!isObject(it)) return it;
4114 var fn, val;
4115 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
4116 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
4117 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
4118 throw TypeError("Can't convert object to primitive value");
4119 };
4120
4121
4122 /***/ }),
4123 /* 124 */
4124 /***/ (function(module, exports, __webpack_require__) {
4125
4126 module.exports = __webpack_require__(191);
4127
4128 /***/ }),
4129 /* 125 */
4130 /***/ (function(module, exports) {
4131
4132 module.exports = function (it, Constructor, name, forbiddenField) {
4133 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
4134 throw TypeError(name + ': incorrect invocation!');
4135 } return it;
4136 };
4137
4138
4139 /***/ }),
4140 /* 126 */
4141 /***/ (function(module, exports, __webpack_require__) {
4142
4143 var hide = __webpack_require__(24);
4144 module.exports = function (target, src, safe) {
4145 for (var key in src) {
4146 if (safe && target[key]) target[key] = src[key];
4147 else hide(target, key, src[key]);
4148 } return target;
4149 };
4150
4151
4152 /***/ }),
4153 /* 127 */,
4154 /* 128 */,
4155 /* 129 */
4156 /***/ (function(module, exports, __webpack_require__) {
4157
4158 module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () {
4159 return Object.defineProperty(__webpack_require__(109)('div'), 'a', { get: function () { return 7; } }).a != 7;
4160 });
4161
4162
4163 /***/ }),
4164 /* 130 */
4165 /***/ (function(module, exports, __webpack_require__) {
4166
4167 var shared = __webpack_require__(66)('keys');
4168 var uid = __webpack_require__(67);
4169 module.exports = function (key) {
4170 return shared[key] || (shared[key] = uid(key));
4171 };
4172
4173
4174 /***/ }),
4175 /* 131 */
4176 /***/ (function(module, exports, __webpack_require__) {
4177
4178 var document = __webpack_require__(8).document;
4179 module.exports = document && document.documentElement;
4180
4181
4182 /***/ }),
4183 /* 132 */
4184 /***/ (function(module, exports) {
4185
4186 // fast apply, http://jsperf.lnkit.com/fast-apply/5
4187 module.exports = function (fn, args, that) {
4188 var un = that === undefined;
4189 switch (args.length) {
4190 case 0: return un ? fn()
4191 : fn.call(that);
4192 case 1: return un ? fn(args[0])
4193 : fn.call(that, args[0]);
4194 case 2: return un ? fn(args[0], args[1])
4195 : fn.call(that, args[0], args[1]);
4196 case 3: return un ? fn(args[0], args[1], args[2])
4197 : fn.call(that, args[0], args[1], args[2]);
4198 case 4: return un ? fn(args[0], args[1], args[2], args[3])
4199 : fn.call(that, args[0], args[1], args[2], args[3]);
4200 } return fn.apply(that, args);
4201 };
4202
4203
4204 /***/ }),
4205 /* 133 */
4206 /***/ (function(module, exports, __webpack_require__) {
4207
4208 module.exports = __webpack_require__(257);
4209
4210 /***/ }),
4211 /* 134 */
4212 /***/ (function(module, exports, __webpack_require__) {
4213
4214 var dP = __webpack_require__(15);
4215 var anObject = __webpack_require__(13);
4216 var getKeys = __webpack_require__(40);
4217
4218 module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
4219 anObject(O);
4220 var keys = getKeys(Properties);
4221 var length = keys.length;
4222 var i = 0;
4223 var P;
4224 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
4225 return O;
4226 };
4227
4228
4229 /***/ }),
4230 /* 135 */
4231 /***/ (function(module, exports, __webpack_require__) {
4232
4233 var _Object$setPrototypeOf = __webpack_require__(115);
4234
4235 function _setPrototypeOf(o, p) {
4236 module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
4237 o.__proto__ = p;
4238 return o;
4239 };
4240
4241 return _setPrototypeOf(o, p);
4242 }
4243
4244 module.exports = _setPrototypeOf;
4245
4246 /***/ }),
4247 /* 136 */
4248 /***/ (function(module, exports, __webpack_require__) {
4249
4250 // 0 -> Array#forEach
4251 // 1 -> Array#map
4252 // 2 -> Array#filter
4253 // 3 -> Array#some
4254 // 4 -> Array#every
4255 // 5 -> Array#find
4256 // 6 -> Array#findIndex
4257 var ctx = __webpack_require__(31);
4258 var IObject = __webpack_require__(103);
4259 var toObject = __webpack_require__(32);
4260 var toLength = __webpack_require__(68);
4261 var asc = __webpack_require__(245);
4262 module.exports = function (TYPE, $create) {
4263 var IS_MAP = TYPE == 1;
4264 var IS_FILTER = TYPE == 2;
4265 var IS_SOME = TYPE == 3;
4266 var IS_EVERY = TYPE == 4;
4267 var IS_FIND_INDEX = TYPE == 6;
4268 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
4269 var create = $create || asc;
4270 return function ($this, callbackfn, that) {
4271 var O = toObject($this);
4272 var self = IObject(O);
4273 var f = ctx(callbackfn, that, 3);
4274 var length = toLength(self.length);
4275 var index = 0;
4276 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
4277 var val, res;
4278 for (;length > index; index++) if (NO_HOLES || index in self) {
4279 val = self[index];
4280 res = f(val, index, O);
4281 if (TYPE) {
4282 if (IS_MAP) result[index] = res; // map
4283 else if (res) switch (TYPE) {
4284 case 3: return true; // some
4285 case 5: return val; // find
4286 case 6: return index; // findIndex
4287 case 2: result.push(val); // filter
4288 } else if (IS_EVERY) return false; // every
4289 }
4290 }
4291 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
4292 };
4293 };
4294
4295
4296 /***/ }),
4297 /* 137 */
4298 /***/ (function(module, exports, __webpack_require__) {
4299
4300 module.exports = __webpack_require__(163);
4301
4302 /***/ }),
4303 /* 138 */
4304 /***/ (function(module, exports, __webpack_require__) {
4305
4306 "use strict";
4307
4308 // ECMAScript 6 symbols shim
4309 var global = __webpack_require__(8);
4310 var has = __webpack_require__(19);
4311 var DESCRIPTORS = __webpack_require__(14);
4312 var $export = __webpack_require__(7);
4313 var redefine = __webpack_require__(93);
4314 var META = __webpack_require__(70).KEY;
4315 var $fails = __webpack_require__(22);
4316 var shared = __webpack_require__(76);
4317 var setToStringTag = __webpack_require__(53);
4318 var uid = __webpack_require__(59);
4319 var wks = __webpack_require__(10);
4320 var wksExt = __webpack_require__(63);
4321 var wksDefine = __webpack_require__(79);
4322 var enumKeys = __webpack_require__(177);
4323 var isArray = __webpack_require__(97);
4324 var anObject = __webpack_require__(13);
4325 var isObject = __webpack_require__(9);
4326 var toObject = __webpack_require__(32);
4327 var toIObject = __webpack_require__(20);
4328 var toPrimitive = __webpack_require__(74);
4329 var createDesc = __webpack_require__(44);
4330 var _create = __webpack_require__(52);
4331 var gOPNExt = __webpack_require__(178);
4332 var $GOPD = __webpack_require__(51);
4333 var $GOPS = __webpack_require__(71);
4334 var $DP = __webpack_require__(15);
4335 var $keys = __webpack_require__(40);
4336 var gOPD = $GOPD.f;
4337 var dP = $DP.f;
4338 var gOPN = gOPNExt.f;
4339 var $Symbol = global.Symbol;
4340 var $JSON = global.JSON;
4341 var _stringify = $JSON && $JSON.stringify;
4342 var PROTOTYPE = 'prototype';
4343 var HIDDEN = wks('_hidden');
4344 var TO_PRIMITIVE = wks('toPrimitive');
4345 var isEnum = {}.propertyIsEnumerable;
4346 var SymbolRegistry = shared('symbol-registry');
4347 var AllSymbols = shared('symbols');
4348 var OPSymbols = shared('op-symbols');
4349 var ObjectProto = Object[PROTOTYPE];
4350 var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
4351 var QObject = global.QObject;
4352 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
4353 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
4354
4355 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
4356 var setSymbolDesc = DESCRIPTORS && $fails(function () {
4357 return _create(dP({}, 'a', {
4358 get: function () { return dP(this, 'a', { value: 7 }).a; }
4359 })).a != 7;
4360 }) ? function (it, key, D) {
4361 var protoDesc = gOPD(ObjectProto, key);
4362 if (protoDesc) delete ObjectProto[key];
4363 dP(it, key, D);
4364 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
4365 } : dP;
4366
4367 var wrap = function (tag) {
4368 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
4369 sym._k = tag;
4370 return sym;
4371 };
4372
4373 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
4374 return typeof it == 'symbol';
4375 } : function (it) {
4376 return it instanceof $Symbol;
4377 };
4378
4379 var $defineProperty = function defineProperty(it, key, D) {
4380 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
4381 anObject(it);
4382 key = toPrimitive(key, true);
4383 anObject(D);
4384 if (has(AllSymbols, key)) {
4385 if (!D.enumerable) {
4386 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
4387 it[HIDDEN][key] = true;
4388 } else {
4389 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
4390 D = _create(D, { enumerable: createDesc(0, false) });
4391 } return setSymbolDesc(it, key, D);
4392 } return dP(it, key, D);
4393 };
4394 var $defineProperties = function defineProperties(it, P) {
4395 anObject(it);
4396 var keys = enumKeys(P = toIObject(P));
4397 var i = 0;
4398 var l = keys.length;
4399 var key;
4400 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
4401 return it;
4402 };
4403 var $create = function create(it, P) {
4404 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
4405 };
4406 var $propertyIsEnumerable = function propertyIsEnumerable(key) {
4407 var E = isEnum.call(this, key = toPrimitive(key, true));
4408 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
4409 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
4410 };
4411 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
4412 it = toIObject(it);
4413 key = toPrimitive(key, true);
4414 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
4415 var D = gOPD(it, key);
4416 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
4417 return D;
4418 };
4419 var $getOwnPropertyNames = function getOwnPropertyNames(it) {
4420 var names = gOPN(toIObject(it));
4421 var result = [];
4422 var i = 0;
4423 var key;
4424 while (names.length > i) {
4425 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
4426 } return result;
4427 };
4428 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
4429 var IS_OP = it === ObjectProto;
4430 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
4431 var result = [];
4432 var i = 0;
4433 var key;
4434 while (names.length > i) {
4435 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
4436 } return result;
4437 };
4438
4439 // 19.4.1.1 Symbol([description])
4440 if (!USE_NATIVE) {
4441 $Symbol = function Symbol() {
4442 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
4443 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
4444 var $set = function (value) {
4445 if (this === ObjectProto) $set.call(OPSymbols, value);
4446 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
4447 setSymbolDesc(this, tag, createDesc(1, value));
4448 };
4449 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
4450 return wrap(tag);
4451 };
4452 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
4453 return this._k;
4454 });
4455
4456 $GOPD.f = $getOwnPropertyDescriptor;
4457 $DP.f = $defineProperty;
4458 __webpack_require__(99).f = gOPNExt.f = $getOwnPropertyNames;
4459 __webpack_require__(50).f = $propertyIsEnumerable;
4460 $GOPS.f = $getOwnPropertySymbols;
4461
4462 if (DESCRIPTORS && !__webpack_require__(47)) {
4463 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
4464 }
4465
4466 wksExt.f = function (name) {
4467 return wrap(wks(name));
4468 };
4469 }
4470
4471 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
4472
4473 for (var es6Symbols = (
4474 // 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
4475 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
4476 ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
4477
4478 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
4479
4480 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
4481 // 19.4.2.1 Symbol.for(key)
4482 'for': function (key) {
4483 return has(SymbolRegistry, key += '')
4484 ? SymbolRegistry[key]
4485 : SymbolRegistry[key] = $Symbol(key);
4486 },
4487 // 19.4.2.5 Symbol.keyFor(sym)
4488 keyFor: function keyFor(sym) {
4489 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
4490 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
4491 },
4492 useSetter: function () { setter = true; },
4493 useSimple: function () { setter = false; }
4494 });
4495
4496 $export($export.S + $export.F * !USE_NATIVE, 'Object', {
4497 // 19.1.2.2 Object.create(O [, Properties])
4498 create: $create,
4499 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
4500 defineProperty: $defineProperty,
4501 // 19.1.2.3 Object.defineProperties(O, Properties)
4502 defineProperties: $defineProperties,
4503 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
4504 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
4505 // 19.1.2.7 Object.getOwnPropertyNames(O)
4506 getOwnPropertyNames: $getOwnPropertyNames,
4507 // 19.1.2.8 Object.getOwnPropertySymbols(O)
4508 getOwnPropertySymbols: $getOwnPropertySymbols
4509 });
4510
4511 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
4512 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
4513 var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
4514
4515 $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
4516 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
4517 return $GOPS.f(toObject(it));
4518 }
4519 });
4520
4521 // 24.3.2 JSON.stringify(value [, replacer [, space]])
4522 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
4523 var S = $Symbol();
4524 // MS Edge converts symbol values to JSON as {}
4525 // WebKit converts symbol values to JSON as null
4526 // V8 throws on boxed symbols
4527 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
4528 })), 'JSON', {
4529 stringify: function stringify(it) {
4530 var args = [it];
4531 var i = 1;
4532 var replacer, $replacer;
4533 while (arguments.length > i) args.push(arguments[i++]);
4534 $replacer = replacer = args[1];
4535 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
4536 if (!isArray(replacer)) replacer = function (key, value) {
4537 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
4538 if (!isSymbol(value)) return value;
4539 };
4540 args[1] = replacer;
4541 return _stringify.apply($JSON, args);
4542 }
4543 });
4544
4545 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
4546 $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
4547 // 19.4.3.5 Symbol.prototype[@@toStringTag]
4548 setToStringTag($Symbol, 'Symbol');
4549 // 20.2.1.9 Math[@@toStringTag]
4550 setToStringTag(Math, 'Math', true);
4551 // 24.3.3 JSON[@@toStringTag]
4552 setToStringTag(global.JSON, 'JSON', true);
4553
4554
4555 /***/ }),
4556 /* 139 */
4557 /***/ (function(module, exports, __webpack_require__) {
4558
4559 // call something on iterator step with safe closing on error
4560 var anObject = __webpack_require__(13);
4561 module.exports = function (iterator, fn, value, entries) {
4562 try {
4563 return entries ? fn(anObject(value)[0], value[1]) : fn(value);
4564 // 7.4.6 IteratorClose(iterator, completion)
4565 } catch (e) {
4566 var ret = iterator['return'];
4567 if (ret !== undefined) anObject(ret.call(iterator));
4568 throw e;
4569 }
4570 };
4571
4572
4573 /***/ }),
4574 /* 140 */
4575 /***/ (function(module, exports, __webpack_require__) {
4576
4577 // check on default Array iterator
4578 var Iterators = __webpack_require__(34);
4579 var ITERATOR = __webpack_require__(10)('iterator');
4580 var ArrayProto = Array.prototype;
4581
4582 module.exports = function (it) {
4583 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
4584 };
4585
4586
4587 /***/ }),
4588 /* 141 */
4589 /***/ (function(module, exports, __webpack_require__) {
4590
4591 "use strict";
4592
4593 // https://github.com/tc39/Array.prototype.includes
4594 var $export = __webpack_require__(37);
4595 var $includes = __webpack_require__(146)(true);
4596
4597 $export($export.P, 'Array', {
4598 includes: function includes(el /* , fromIndex = 0 */) {
4599 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4600 }
4601 });
4602
4603 __webpack_require__(85)('includes');
4604
4605
4606 /***/ }),
4607 /* 142 */
4608 /***/ (function(module, exports, __webpack_require__) {
4609
4610 var toInteger = __webpack_require__(57);
4611 var defined = __webpack_require__(42);
4612 // true -> String#at
4613 // false -> String#codePointAt
4614 module.exports = function (TO_STRING) {
4615 return function (that, pos) {
4616 var s = String(defined(that));
4617 var i = toInteger(pos);
4618 var l = s.length;
4619 var a, b;
4620 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
4621 a = s.charCodeAt(i);
4622 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
4623 ? TO_STRING ? s.charAt(i) : a
4624 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
4625 };
4626 };
4627
4628
4629 /***/ }),
4630 /* 143 */
4631 /***/ (function(module, exports, __webpack_require__) {
4632
4633 module.exports = __webpack_require__(66)('native-function-to-string', Function.toString);
4634
4635
4636 /***/ }),
4637 /* 144 */
4638 /***/ (function(module, exports, __webpack_require__) {
4639
4640 "use strict";
4641
4642 // 25.4.1.5 NewPromiseCapability(C)
4643 var aFunction = __webpack_require__(38);
4644
4645 function PromiseCapability(C) {
4646 var resolve, reject;
4647 this.promise = new C(function ($$resolve, $$reject) {
4648 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
4649 resolve = $$resolve;
4650 reject = $$reject;
4651 });
4652 this.resolve = aFunction(resolve);
4653 this.reject = aFunction(reject);
4654 }
4655
4656 module.exports.f = function (C) {
4657 return new PromiseCapability(C);
4658 };
4659
4660
4661 /***/ }),
4662 /* 145 */
4663 /***/ (function(module, exports, __webpack_require__) {
4664
4665 var $iterators = __webpack_require__(117);
4666 var getKeys = __webpack_require__(183);
4667 var redefine = __webpack_require__(35);
4668 var global = __webpack_require__(17);
4669 var hide = __webpack_require__(29);
4670 var Iterators = __webpack_require__(118);
4671 var wks = __webpack_require__(12);
4672 var ITERATOR = wks('iterator');
4673 var TO_STRING_TAG = wks('toStringTag');
4674 var ArrayValues = Iterators.Array;
4675
4676 var DOMIterables = {
4677 CSSRuleList: true, // TODO: Not spec compliant, should be false.
4678 CSSStyleDeclaration: false,
4679 CSSValueList: false,
4680 ClientRectList: false,
4681 DOMRectList: false,
4682 DOMStringList: false,
4683 DOMTokenList: true,
4684 DataTransferItemList: false,
4685 FileList: false,
4686 HTMLAllCollection: false,
4687 HTMLCollection: false,
4688 HTMLFormElement: false,
4689 HTMLSelectElement: false,
4690 MediaList: true, // TODO: Not spec compliant, should be false.
4691 MimeTypeArray: false,
4692 NamedNodeMap: false,
4693 NodeList: true,
4694 PaintRequestList: false,
4695 Plugin: false,
4696 PluginArray: false,
4697 SVGLengthList: false,
4698 SVGNumberList: false,
4699 SVGPathSegList: false,
4700 SVGPointList: false,
4701 SVGStringList: false,
4702 SVGTransformList: false,
4703 SourceBufferList: false,
4704 StyleSheetList: true, // TODO: Not spec compliant, should be false.
4705 TextTrackCueList: false,
4706 TextTrackList: false,
4707 TouchList: false
4708 };
4709
4710 for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
4711 var NAME = collections[i];
4712 var explicit = DOMIterables[NAME];
4713 var Collection = global[NAME];
4714 var proto = Collection && Collection.prototype;
4715 var key;
4716 if (proto) {
4717 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
4718 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
4719 Iterators[NAME] = ArrayValues;
4720 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
4721 }
4722 }
4723
4724
4725 /***/ }),
4726 /* 146 */
4727 /***/ (function(module, exports, __webpack_require__) {
4728
4729 // false -> Array#indexOf
4730 // true -> Array#includes
4731 var toIObject = __webpack_require__(98);
4732 var toLength = __webpack_require__(43);
4733 var toAbsoluteIndex = __webpack_require__(198);
4734 module.exports = function (IS_INCLUDES) {
4735 return function ($this, el, fromIndex) {
4736 var O = toIObject($this);
4737 var length = toLength(O.length);
4738 var index = toAbsoluteIndex(fromIndex, length);
4739 var value;
4740 // Array#includes uses SameValueZero equality algorithm
4741 // eslint-disable-next-line no-self-compare
4742 if (IS_INCLUDES && el != el) while (length > index) {
4743 value = O[index++];
4744 // eslint-disable-next-line no-self-compare
4745 if (value != value) return true;
4746 // Array#indexOf ignores holes, Array#includes - not
4747 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4748 if (O[index] === el) return IS_INCLUDES || index || 0;
4749 } return !IS_INCLUDES && -1;
4750 };
4751 };
4752
4753
4754 /***/ }),
4755 /* 147 */
4756 /***/ (function(module, exports) {
4757
4758 // IE 8- don't enum bug keys
4759 module.exports = (
4760 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
4761 ).split(',');
4762
4763
4764 /***/ }),
4765 /* 148 */
4766 /***/ (function(module, exports, __webpack_require__) {
4767
4768 var _Reflect$construct = __webpack_require__(107);
4769
4770 function _isNativeReflectConstruct() {
4771 if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
4772 if (_Reflect$construct.sham) return false;
4773 if (typeof Proxy === "function") return true;
4774
4775 try {
4776 Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
4777 return true;
4778 } catch (e) {
4779 return false;
4780 }
4781 }
4782
4783 module.exports = _isNativeReflectConstruct;
4784
4785 /***/ }),
4786 /* 149 */
4787 /***/ (function(module, exports) {
4788
4789 module.exports = function (done, value) {
4790 return { value: value, done: !!done };
4791 };
4792
4793
4794 /***/ }),
4795 /* 150 */
4796 /***/ (function(module, exports, __webpack_require__) {
4797
4798 module.exports = __webpack_require__(287);
4799
4800 /***/ }),
4801 /* 151 */
4802 /***/ (function(module, exports, __webpack_require__) {
4803
4804 module.exports = __webpack_require__(171);
4805
4806 /***/ }),
4807 /* 152 */
4808 /***/ (function(module, exports, __webpack_require__) {
4809
4810 var ITERATOR = __webpack_require__(10)('iterator');
4811 var SAFE_CLOSING = false;
4812
4813 try {
4814 var riter = [7][ITERATOR]();
4815 riter['return'] = function () { SAFE_CLOSING = true; };
4816 // eslint-disable-next-line no-throw-literal
4817 Array.from(riter, function () { throw 2; });
4818 } catch (e) { /* empty */ }
4819
4820 module.exports = function (exec, skipClosing) {
4821 if (!skipClosing && !SAFE_CLOSING) return false;
4822 var safe = false;
4823 try {
4824 var arr = [7];
4825 var iter = arr[ITERATOR]();
4826 iter.next = function () { return { done: safe = true }; };
4827 arr[ITERATOR] = function () { return iter; };
4828 exec(arr);
4829 } catch (e) { /* empty */ }
4830 return safe;
4831 };
4832
4833
4834 /***/ }),
4835 /* 153 */
4836 /***/ (function(module, exports, __webpack_require__) {
4837
4838 var def = __webpack_require__(45).f;
4839 var has = __webpack_require__(61);
4840 var TAG = __webpack_require__(12)('toStringTag');
4841
4842 module.exports = function (it, tag, stat) {
4843 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
4844 };
4845
4846
4847 /***/ }),
4848 /* 154 */
4849 /***/ (function(module, exports, __webpack_require__) {
4850
4851 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
4852 var anObject = __webpack_require__(18);
4853 var aFunction = __webpack_require__(91);
4854 var SPECIES = __webpack_require__(12)('species');
4855 module.exports = function (O, D) {
4856 var C = anObject(O).constructor;
4857 var S;
4858 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
4859 };
4860
4861
4862 /***/ }),
4863 /* 155 */
4864 /***/ (function(module, exports, __webpack_require__) {
4865
4866 __webpack_require__(156);
4867 var $Object = __webpack_require__(6).Object;
4868 module.exports = function defineProperty(it, key, desc) {
4869 return $Object.defineProperty(it, key, desc);
4870 };
4871
4872
4873 /***/ }),
4874 /* 156 */
4875 /***/ (function(module, exports, __webpack_require__) {
4876
4877 var $export = __webpack_require__(7);
4878 // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
4879 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f });
4880
4881
4882 /***/ }),
4883 /* 157 */
4884 /***/ (function(module, exports, __webpack_require__) {
4885
4886 module.exports = __webpack_require__(158);
4887
4888 /***/ }),
4889 /* 158 */
4890 /***/ (function(module, exports, __webpack_require__) {
4891
4892 __webpack_require__(159);
4893 module.exports = __webpack_require__(6).Object.getPrototypeOf;
4894
4895
4896 /***/ }),
4897 /* 159 */
4898 /***/ (function(module, exports, __webpack_require__) {
4899
4900 // 19.1.2.9 Object.getPrototypeOf(O)
4901 var toObject = __webpack_require__(32);
4902 var $getPrototypeOf = __webpack_require__(64);
4903
4904 __webpack_require__(83)('getPrototypeOf', function () {
4905 return function getPrototypeOf(it) {
4906 return $getPrototypeOf(toObject(it));
4907 };
4908 });
4909
4910
4911 /***/ }),
4912 /* 160 */
4913 /***/ (function(module, exports, __webpack_require__) {
4914
4915 __webpack_require__(161);
4916 module.exports = __webpack_require__(6).Object.setPrototypeOf;
4917
4918
4919 /***/ }),
4920 /* 161 */
4921 /***/ (function(module, exports, __webpack_require__) {
4922
4923 // 19.1.3.19 Object.setPrototypeOf(O, proto)
4924 var $export = __webpack_require__(7);
4925 $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(162).set });
4926
4927
4928 /***/ }),
4929 /* 162 */
4930 /***/ (function(module, exports, __webpack_require__) {
4931
4932 // Works with __proto__ only. Old v8 can't work with null proto objects.
4933 /* eslint-disable no-proto */
4934 var isObject = __webpack_require__(9);
4935 var anObject = __webpack_require__(13);
4936 var check = function (O, proto) {
4937 anObject(O);
4938 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
4939 };
4940 module.exports = {
4941 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
4942 function (test, buggy, set) {
4943 try {
4944 set = __webpack_require__(31)(Function.call, __webpack_require__(51).f(Object.prototype, '__proto__').set, 2);
4945 set(test, []);
4946 buggy = !(test instanceof Array);
4947 } catch (e) { buggy = true; }
4948 return function setPrototypeOf(O, proto) {
4949 check(O, proto);
4950 if (buggy) O.__proto__ = proto;
4951 else set(O, proto);
4952 return O;
4953 };
4954 }({}, false) : undefined),
4955 check: check
4956 };
4957
4958
4959 /***/ }),
4960 /* 163 */
4961 /***/ (function(module, exports, __webpack_require__) {
4962
4963 __webpack_require__(164);
4964 var $Object = __webpack_require__(6).Object;
4965 module.exports = function create(P, D) {
4966 return $Object.create(P, D);
4967 };
4968
4969
4970 /***/ }),
4971 /* 164 */
4972 /***/ (function(module, exports, __webpack_require__) {
4973
4974 var $export = __webpack_require__(7);
4975 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
4976 $export($export.S, 'Object', { create: __webpack_require__(52) });
4977
4978
4979 /***/ }),
4980 /* 165 */
4981 /***/ (function(module, exports, __webpack_require__) {
4982
4983 // false -> Array#indexOf
4984 // true -> Array#includes
4985 var toIObject = __webpack_require__(20);
4986 var toLength = __webpack_require__(68);
4987 var toAbsoluteIndex = __webpack_require__(166);
4988 module.exports = function (IS_INCLUDES) {
4989 return function ($this, el, fromIndex) {
4990 var O = toIObject($this);
4991 var length = toLength(O.length);
4992 var index = toAbsoluteIndex(fromIndex, length);
4993 var value;
4994 // Array#includes uses SameValueZero equality algorithm
4995 // eslint-disable-next-line no-self-compare
4996 if (IS_INCLUDES && el != el) while (length > index) {
4997 value = O[index++];
4998 // eslint-disable-next-line no-self-compare
4999 if (value != value) return true;
5000 // Array#indexOf ignores holes, Array#includes - not
5001 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
5002 if (O[index] === el) return IS_INCLUDES || index || 0;
5003 } return !IS_INCLUDES && -1;
5004 };
5005 };
5006
5007
5008 /***/ }),
5009 /* 166 */
5010 /***/ (function(module, exports, __webpack_require__) {
5011
5012 var toInteger = __webpack_require__(77);
5013 var max = Math.max;
5014 var min = Math.min;
5015 module.exports = function (index, length) {
5016 index = toInteger(index);
5017 return index < 0 ? max(index + length, 0) : min(index, length);
5018 };
5019
5020
5021 /***/ }),
5022 /* 167 */
5023 /***/ (function(module, exports, __webpack_require__) {
5024
5025 __webpack_require__(168);
5026 module.exports = __webpack_require__(6).Reflect.construct;
5027
5028
5029 /***/ }),
5030 /* 168 */
5031 /***/ (function(module, exports, __webpack_require__) {
5032
5033 // 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
5034 var $export = __webpack_require__(7);
5035 var create = __webpack_require__(52);
5036 var aFunction = __webpack_require__(38);
5037 var anObject = __webpack_require__(13);
5038 var isObject = __webpack_require__(9);
5039 var fails = __webpack_require__(22);
5040 var bind = __webpack_require__(169);
5041 var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
5042
5043 // MS Edge supports only 2 arguments and argumentsList argument is optional
5044 // FF Nightly sets third argument as `new.target`, but does not create `this` from it
5045 var NEW_TARGET_BUG = fails(function () {
5046 function F() { /* empty */ }
5047 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
5048 });
5049 var ARGS_BUG = !fails(function () {
5050 rConstruct(function () { /* empty */ });
5051 });
5052
5053 $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
5054 construct: function construct(Target, args /* , newTarget */) {
5055 aFunction(Target);
5056 anObject(args);
5057 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
5058 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
5059 if (Target == newTarget) {
5060 // w/o altered newTarget, optimization for 0-4 arguments
5061 switch (args.length) {
5062 case 0: return new Target();
5063 case 1: return new Target(args[0]);
5064 case 2: return new Target(args[0], args[1]);
5065 case 3: return new Target(args[0], args[1], args[2]);
5066 case 4: return new Target(args[0], args[1], args[2], args[3]);
5067 }
5068 // w/o altered newTarget, lot of arguments case
5069 var $args = [null];
5070 $args.push.apply($args, args);
5071 return new (bind.apply(Target, $args))();
5072 }
5073 // with altered newTarget, not support built-in constructors
5074 var proto = newTarget.prototype;
5075 var instance = create(isObject(proto) ? proto : Object.prototype);
5076 var result = Function.apply.call(Target, instance, args);
5077 return isObject(result) ? result : instance;
5078 }
5079 });
5080
5081
5082 /***/ }),
5083 /* 169 */
5084 /***/ (function(module, exports, __webpack_require__) {
5085
5086 "use strict";
5087
5088 var aFunction = __webpack_require__(38);
5089 var isObject = __webpack_require__(9);
5090 var invoke = __webpack_require__(132);
5091 var arraySlice = [].slice;
5092 var factories = {};
5093
5094 var construct = function (F, len, args) {
5095 if (!(len in factories)) {
5096 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
5097 // eslint-disable-next-line no-new-func
5098 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
5099 } return factories[len](F, args);
5100 };
5101
5102 module.exports = Function.bind || function bind(that /* , ...args */) {
5103 var fn = aFunction(this);
5104 var partArgs = arraySlice.call(arguments, 1);
5105 var bound = function (/* args... */) {
5106 var args = partArgs.concat(arraySlice.call(arguments));
5107 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
5108 };
5109 if (isObject(fn.prototype)) bound.prototype = fn.prototype;
5110 return bound;
5111 };
5112
5113
5114 /***/ }),
5115 /* 170 */
5116 /***/ (function(module, exports, __webpack_require__) {
5117
5118 var _typeof = __webpack_require__(48);
5119
5120 var assertThisInitialized = __webpack_require__(49);
5121
5122 function _possibleConstructorReturn(self, call) {
5123 if (call && (_typeof(call) === "object" || typeof call === "function")) {
5124 return call;
5125 }
5126
5127 return assertThisInitialized(self);
5128 }
5129
5130 module.exports = _possibleConstructorReturn;
5131
5132 /***/ }),
5133 /* 171 */
5134 /***/ (function(module, exports, __webpack_require__) {
5135
5136 __webpack_require__(60);
5137 __webpack_require__(62);
5138 module.exports = __webpack_require__(63).f('iterator');
5139
5140
5141 /***/ }),
5142 /* 172 */
5143 /***/ (function(module, exports, __webpack_require__) {
5144
5145 var toInteger = __webpack_require__(77);
5146 var defined = __webpack_require__(65);
5147 // true -> String#at
5148 // false -> String#codePointAt
5149 module.exports = function (TO_STRING) {
5150 return function (that, pos) {
5151 var s = String(defined(that));
5152 var i = toInteger(pos);
5153 var l = s.length;
5154 var a, b;
5155 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
5156 a = s.charCodeAt(i);
5157 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
5158 ? TO_STRING ? s.charAt(i) : a
5159 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
5160 };
5161 };
5162
5163
5164 /***/ }),
5165 /* 173 */
5166 /***/ (function(module, exports, __webpack_require__) {
5167
5168 "use strict";
5169
5170 var create = __webpack_require__(52);
5171 var descriptor = __webpack_require__(44);
5172 var setToStringTag = __webpack_require__(53);
5173 var IteratorPrototype = {};
5174
5175 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
5176 __webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
5177
5178 module.exports = function (Constructor, NAME, next) {
5179 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
5180 setToStringTag(Constructor, NAME + ' Iterator');
5181 };
5182
5183
5184 /***/ }),
5185 /* 174 */
5186 /***/ (function(module, exports, __webpack_require__) {
5187
5188 "use strict";
5189
5190 var addToUnscopables = __webpack_require__(175);
5191 var step = __webpack_require__(149);
5192 var Iterators = __webpack_require__(34);
5193 var toIObject = __webpack_require__(20);
5194
5195 // 22.1.3.4 Array.prototype.entries()
5196 // 22.1.3.13 Array.prototype.keys()
5197 // 22.1.3.29 Array.prototype.values()
5198 // 22.1.3.30 Array.prototype[@@iterator]()
5199 module.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) {
5200 this._t = toIObject(iterated); // target
5201 this._i = 0; // next index
5202 this._k = kind; // kind
5203 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
5204 }, function () {
5205 var O = this._t;
5206 var kind = this._k;
5207 var index = this._i++;
5208 if (!O || index >= O.length) {
5209 this._t = undefined;
5210 return step(1);
5211 }
5212 if (kind == 'keys') return step(0, index);
5213 if (kind == 'values') return step(0, O[index]);
5214 return step(0, [index, O[index]]);
5215 }, 'values');
5216
5217 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
5218 Iterators.Arguments = Iterators.Array;
5219
5220 addToUnscopables('keys');
5221 addToUnscopables('values');
5222 addToUnscopables('entries');
5223
5224
5225 /***/ }),
5226 /* 175 */
5227 /***/ (function(module, exports) {
5228
5229 module.exports = function () { /* empty */ };
5230
5231
5232 /***/ }),
5233 /* 176 */
5234 /***/ (function(module, exports, __webpack_require__) {
5235
5236 __webpack_require__(138);
5237 __webpack_require__(100);
5238 __webpack_require__(179);
5239 __webpack_require__(180);
5240 module.exports = __webpack_require__(6).Symbol;
5241
5242
5243 /***/ }),
5244 /* 177 */
5245 /***/ (function(module, exports, __webpack_require__) {
5246
5247 // all enumerable object keys, includes symbols
5248 var getKeys = __webpack_require__(40);
5249 var gOPS = __webpack_require__(71);
5250 var pIE = __webpack_require__(50);
5251 module.exports = function (it) {
5252 var result = getKeys(it);
5253 var getSymbols = gOPS.f;
5254 if (getSymbols) {
5255 var symbols = getSymbols(it);
5256 var isEnum = pIE.f;
5257 var i = 0;
5258 var key;
5259 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
5260 } return result;
5261 };
5262
5263
5264 /***/ }),
5265 /* 178 */
5266 /***/ (function(module, exports, __webpack_require__) {
5267
5268 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
5269 var toIObject = __webpack_require__(20);
5270 var gOPN = __webpack_require__(99).f;
5271 var toString = {}.toString;
5272
5273 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
5274 ? Object.getOwnPropertyNames(window) : [];
5275
5276 var getWindowNames = function (it) {
5277 try {
5278 return gOPN(it);
5279 } catch (e) {
5280 return windowNames.slice();
5281 }
5282 };
5283
5284 module.exports.f = function getOwnPropertyNames(it) {
5285 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
5286 };
5287
5288
5289 /***/ }),
5290 /* 179 */
5291 /***/ (function(module, exports, __webpack_require__) {
5292
5293 __webpack_require__(79)('asyncIterator');
5294
5295
5296 /***/ }),
5297 /* 180 */
5298 /***/ (function(module, exports, __webpack_require__) {
5299
5300 __webpack_require__(79)('observable');
5301
5302
5303 /***/ }),
5304 /* 181 */
5305 /***/ (function(module, exports, __webpack_require__) {
5306
5307 // 0 -> Array#forEach
5308 // 1 -> Array#map
5309 // 2 -> Array#filter
5310 // 3 -> Array#some
5311 // 4 -> Array#every
5312 // 5 -> Array#find
5313 // 6 -> Array#findIndex
5314 var ctx = __webpack_require__(73);
5315 var IObject = __webpack_require__(120);
5316 var toObject = __webpack_require__(96);
5317 var toLength = __webpack_require__(43);
5318 var asc = __webpack_require__(216);
5319 module.exports = function (TYPE, $create) {
5320 var IS_MAP = TYPE == 1;
5321 var IS_FILTER = TYPE == 2;
5322 var IS_SOME = TYPE == 3;
5323 var IS_EVERY = TYPE == 4;
5324 var IS_FIND_INDEX = TYPE == 6;
5325 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
5326 var create = $create || asc;
5327 return function ($this, callbackfn, that) {
5328 var O = toObject($this);
5329 var self = IObject(O);
5330 var f = ctx(callbackfn, that, 3);
5331 var length = toLength(self.length);
5332 var index = 0;
5333 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
5334 var val, res;
5335 for (;length > index; index++) if (NO_HOLES || index in self) {
5336 val = self[index];
5337 res = f(val, index, O);
5338 if (TYPE) {
5339 if (IS_MAP) result[index] = res; // map
5340 else if (res) switch (TYPE) {
5341 case 3: return true; // some
5342 case 5: return val; // find
5343 case 6: return index; // findIndex
5344 case 2: result.push(val); // filter
5345 } else if (IS_EVERY) return false; // every
5346 }
5347 }
5348 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
5349 };
5350 };
5351
5352
5353 /***/ }),
5354 /* 182 */
5355 /***/ (function(module, exports, __webpack_require__) {
5356
5357 "use strict";
5358
5359 __webpack_require__(279);
5360 var anObject = __webpack_require__(18);
5361 var $flags = __webpack_require__(106);
5362 var DESCRIPTORS = __webpack_require__(27);
5363 var TO_STRING = 'toString';
5364 var $toString = /./[TO_STRING];
5365
5366 var define = function (fn) {
5367 __webpack_require__(35)(RegExp.prototype, TO_STRING, fn, true);
5368 };
5369
5370 // 21.2.5.14 RegExp.prototype.toString()
5371 if (__webpack_require__(33)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
5372 define(function toString() {
5373 var R = anObject(this);
5374 return '/'.concat(R.source, '/',
5375 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
5376 });
5377 // FF44- RegExp#toString has a wrong name
5378 } else if ($toString.name != TO_STRING) {
5379 define(function toString() {
5380 return $toString.call(this);
5381 });
5382 }
5383
5384
5385 /***/ }),
5386 /* 183 */
5387 /***/ (function(module, exports, __webpack_require__) {
5388
5389 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
5390 var $keys = __webpack_require__(219);
5391 var enumBugKeys = __webpack_require__(147);
5392
5393 module.exports = Object.keys || function keys(O) {
5394 return $keys(O, enumBugKeys);
5395 };
5396
5397
5398 /***/ }),
5399 /* 184 */
5400 /***/ (function(module, exports, __webpack_require__) {
5401
5402 var DESCRIPTORS = __webpack_require__(14);
5403 var getKeys = __webpack_require__(40);
5404 var toIObject = __webpack_require__(20);
5405 var isEnum = __webpack_require__(50).f;
5406 module.exports = function (isEntries) {
5407 return function (it) {
5408 var O = toIObject(it);
5409 var keys = getKeys(O);
5410 var length = keys.length;
5411 var i = 0;
5412 var result = [];
5413 var key;
5414 while (length > i) {
5415 key = keys[i++];
5416 if (!DESCRIPTORS || isEnum.call(O, key)) {
5417 result.push(isEntries ? [key, O[key]] : O[key]);
5418 }
5419 }
5420 return result;
5421 };
5422 };
5423
5424
5425 /***/ }),
5426 /* 185 */
5427 /***/ (function(module, exports, __webpack_require__) {
5428
5429 "use strict";
5430
5431 var $defineProperty = __webpack_require__(15);
5432 var createDesc = __webpack_require__(44);
5433
5434 module.exports = function (object, index, value) {
5435 if (index in object) $defineProperty.f(object, index, createDesc(0, value));
5436 else object[index] = value;
5437 };
5438
5439
5440 /***/ }),
5441 /* 186 */
5442 /***/ (function(module, exports, __webpack_require__) {
5443
5444 var _Array$from = __webpack_require__(200);
5445
5446 var arrayLikeToArray = __webpack_require__(199);
5447
5448 function _unsupportedIterableToArray(o, minLen) {
5449 if (!o) return;
5450 if (typeof o === "string") return arrayLikeToArray(o, minLen);
5451 var n = Object.prototype.toString.call(o).slice(8, -1);
5452 if (n === "Object" && o.constructor) n = o.constructor.name;
5453 if (n === "Map" || n === "Set") return _Array$from(o);
5454 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5455 }
5456
5457 module.exports = _unsupportedIterableToArray;
5458
5459 /***/ }),
5460 /* 187 */,
5461 /* 188 */
5462 /***/ (function(module, exports, __webpack_require__) {
5463
5464 "use strict";
5465 // 21.1.3.7 String.prototype.includes(searchString, position = 0)
5466
5467 var $export = __webpack_require__(37);
5468 var context = __webpack_require__(213);
5469 var INCLUDES = 'includes';
5470
5471 $export($export.P + $export.F * __webpack_require__(214)(INCLUDES), 'String', {
5472 includes: function includes(searchString /* , position = 0 */) {
5473 return !!~context(this, searchString, INCLUDES)
5474 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
5475 }
5476 });
5477
5478
5479 /***/ }),
5480 /* 189 */,
5481 /* 190 */
5482 /***/ (function(module, exports, __webpack_require__) {
5483
5484 "use strict";
5485
5486 var regexpExec = __webpack_require__(88);
5487 __webpack_require__(37)({
5488 target: 'RegExp',
5489 proto: true,
5490 forced: regexpExec !== /./.exec
5491 }, {
5492 exec: regexpExec
5493 });
5494
5495
5496 /***/ }),
5497 /* 191 */
5498 /***/ (function(module, exports, __webpack_require__) {
5499
5500 __webpack_require__(192);
5501 var $Object = __webpack_require__(6).Object;
5502 module.exports = function getOwnPropertyDescriptor(it, key) {
5503 return $Object.getOwnPropertyDescriptor(it, key);
5504 };
5505
5506
5507 /***/ }),
5508 /* 192 */
5509 /***/ (function(module, exports, __webpack_require__) {
5510
5511 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
5512 var toIObject = __webpack_require__(20);
5513 var $getOwnPropertyDescriptor = __webpack_require__(51).f;
5514
5515 __webpack_require__(83)('getOwnPropertyDescriptor', function () {
5516 return function getOwnPropertyDescriptor(it, key) {
5517 return $getOwnPropertyDescriptor(toIObject(it), key);
5518 };
5519 });
5520
5521
5522 /***/ }),
5523 /* 193 */
5524 /***/ (function(module, exports, __webpack_require__) {
5525
5526 module.exports = __webpack_require__(194);
5527
5528 /***/ }),
5529 /* 194 */
5530 /***/ (function(module, exports, __webpack_require__) {
5531
5532 __webpack_require__(195);
5533 module.exports = __webpack_require__(6).Reflect.get;
5534
5535
5536 /***/ }),
5537 /* 195 */
5538 /***/ (function(module, exports, __webpack_require__) {
5539
5540 // 26.1.6 Reflect.get(target, propertyKey [, receiver])
5541 var gOPD = __webpack_require__(51);
5542 var getPrototypeOf = __webpack_require__(64);
5543 var has = __webpack_require__(19);
5544 var $export = __webpack_require__(7);
5545 var isObject = __webpack_require__(9);
5546 var anObject = __webpack_require__(13);
5547
5548 function get(target, propertyKey /* , receiver */) {
5549 var receiver = arguments.length < 3 ? target : arguments[2];
5550 var desc, proto;
5551 if (anObject(target) === receiver) return target[propertyKey];
5552 if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
5553 ? desc.value
5554 : desc.get !== undefined
5555 ? desc.get.call(receiver)
5556 : undefined;
5557 if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
5558 }
5559
5560 $export($export.S, 'Reflect', { get: get });
5561
5562
5563 /***/ }),
5564 /* 196 */
5565 /***/ (function(module, exports, __webpack_require__) {
5566
5567 var getPrototypeOf = __webpack_require__(16);
5568
5569 function _superPropBase(object, property) {
5570 while (!Object.prototype.hasOwnProperty.call(object, property)) {
5571 object = getPrototypeOf(object);
5572 if (object === null) break;
5573 }
5574
5575 return object;
5576 }
5577
5578 module.exports = _superPropBase;
5579
5580 /***/ }),
5581 /* 197 */
5582 /***/ (function(module, exports, __webpack_require__) {
5583
5584 "use strict";
5585
5586 var LIBRARY = __webpack_require__(110);
5587 var $export = __webpack_require__(37);
5588 var redefine = __webpack_require__(35);
5589 var hide = __webpack_require__(29);
5590 var Iterators = __webpack_require__(118);
5591 var $iterCreate = __webpack_require__(242);
5592 var setToStringTag = __webpack_require__(153);
5593 var getPrototypeOf = __webpack_require__(244);
5594 var ITERATOR = __webpack_require__(12)('iterator');
5595 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
5596 var FF_ITERATOR = '@@iterator';
5597 var KEYS = 'keys';
5598 var VALUES = 'values';
5599
5600 var returnThis = function () { return this; };
5601
5602 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
5603 $iterCreate(Constructor, NAME, next);
5604 var getMethod = function (kind) {
5605 if (!BUGGY && kind in proto) return proto[kind];
5606 switch (kind) {
5607 case KEYS: return function keys() { return new Constructor(this, kind); };
5608 case VALUES: return function values() { return new Constructor(this, kind); };
5609 } return function entries() { return new Constructor(this, kind); };
5610 };
5611 var TAG = NAME + ' Iterator';
5612 var DEF_VALUES = DEFAULT == VALUES;
5613 var VALUES_BUG = false;
5614 var proto = Base.prototype;
5615 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
5616 var $default = $native || getMethod(DEFAULT);
5617 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
5618 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
5619 var methods, key, IteratorPrototype;
5620 // Fix native
5621 if ($anyNative) {
5622 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
5623 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
5624 // Set @@toStringTag to native iterators
5625 setToStringTag(IteratorPrototype, TAG, true);
5626 // fix for some old engines
5627 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
5628 }
5629 }
5630 // fix Array#{values, @@iterator}.name in V8 / FF
5631 if (DEF_VALUES && $native && $native.name !== VALUES) {
5632 VALUES_BUG = true;
5633 $default = function values() { return $native.call(this); };
5634 }
5635 // Define iterator
5636 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
5637 hide(proto, ITERATOR, $default);
5638 }
5639 // Plug for library
5640 Iterators[NAME] = $default;
5641 Iterators[TAG] = returnThis;
5642 if (DEFAULT) {
5643 methods = {
5644 values: DEF_VALUES ? $default : getMethod(VALUES),
5645 keys: IS_SET ? $default : getMethod(KEYS),
5646 entries: $entries
5647 };
5648 if (FORCED) for (key in methods) {
5649 if (!(key in proto)) redefine(proto, key, methods[key]);
5650 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
5651 }
5652 return methods;
5653 };
5654
5655
5656 /***/ }),
5657 /* 198 */
5658 /***/ (function(module, exports, __webpack_require__) {
5659
5660 var toInteger = __webpack_require__(57);
5661 var max = Math.max;
5662 var min = Math.min;
5663 module.exports = function (index, length) {
5664 index = toInteger(index);
5665 return index < 0 ? max(index + length, 0) : min(index, length);
5666 };
5667
5668
5669 /***/ }),
5670 /* 199 */
5671 /***/ (function(module, exports) {
5672
5673 function _arrayLikeToArray(arr, len) {
5674 if (len == null || len > arr.length) len = arr.length;
5675
5676 for (var i = 0, arr2 = new Array(len); i < len; i++) {
5677 arr2[i] = arr[i];
5678 }
5679
5680 return arr2;
5681 }
5682
5683 module.exports = _arrayLikeToArray;
5684
5685 /***/ }),
5686 /* 200 */
5687 /***/ (function(module, exports, __webpack_require__) {
5688
5689 module.exports = __webpack_require__(228);
5690
5691 /***/ }),
5692 /* 201 */
5693 /***/ (function(module, exports, __webpack_require__) {
5694
5695 __webpack_require__(202);
5696 module.exports = __webpack_require__(6).Object.keys;
5697
5698
5699 /***/ }),
5700 /* 202 */
5701 /***/ (function(module, exports, __webpack_require__) {
5702
5703 // 19.1.2.14 Object.keys(O)
5704 var toObject = __webpack_require__(32);
5705 var $keys = __webpack_require__(40);
5706
5707 __webpack_require__(83)('keys', function () {
5708 return function keys(it) {
5709 return $keys(toObject(it));
5710 };
5711 });
5712
5713
5714 /***/ }),
5715 /* 203 */
5716 /***/ (function(module, exports, __webpack_require__) {
5717
5718 "use strict";
5719
5720
5721 var _interopRequireDefault = __webpack_require__(0);
5722
5723 var _Object$defineProperty = __webpack_require__(1);
5724
5725 _Object$defineProperty(exports, "__esModule", {
5726 value: true
5727 });
5728
5729 exports.default = void 0;
5730
5731 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
5732
5733 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
5734
5735 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
5736
5737 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
5738
5739 var _commandBase = _interopRequireDefault(__webpack_require__(21));
5740
5741 var CommandInternalBase = /*#__PURE__*/function (_CommandBase) {
5742 (0, _inherits2.default)(CommandInternalBase, _CommandBase);
5743
5744 var _super = (0, _createSuper2.default)(CommandInternalBase);
5745
5746 (0, _createClass2.default)(CommandInternalBase, null, [{
5747 key: "getInstanceType",
5748 value: function getInstanceType() {
5749 return 'CommandInternalBase';
5750 }
5751 }]);
5752
5753 function CommandInternalBase(args) {
5754 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commandsInternal;
5755 (0, _classCallCheck2.default)(this, CommandInternalBase);
5756 return _super.call(this, args, commandsAPI);
5757 }
5758
5759 return CommandInternalBase;
5760 }(_commandBase.default);
5761
5762 exports.default = CommandInternalBase;
5763
5764 /***/ }),
5765 /* 204 */
5766 /***/ (function(module, exports, __webpack_require__) {
5767
5768 module.exports = __webpack_require__(316);
5769
5770 /***/ }),
5771 /* 205 */
5772 /***/ (function(module, exports, __webpack_require__) {
5773
5774 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
5775 var anObject = __webpack_require__(13);
5776 var aFunction = __webpack_require__(38);
5777 var SPECIES = __webpack_require__(10)('species');
5778 module.exports = function (O, D) {
5779 var C = anObject(O).constructor;
5780 var S;
5781 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
5782 };
5783
5784
5785 /***/ }),
5786 /* 206 */
5787 /***/ (function(module, exports, __webpack_require__) {
5788
5789 var ctx = __webpack_require__(31);
5790 var invoke = __webpack_require__(132);
5791 var html = __webpack_require__(131);
5792 var cel = __webpack_require__(92);
5793 var global = __webpack_require__(8);
5794 var process = global.process;
5795 var setTask = global.setImmediate;
5796 var clearTask = global.clearImmediate;
5797 var MessageChannel = global.MessageChannel;
5798 var Dispatch = global.Dispatch;
5799 var counter = 0;
5800 var queue = {};
5801 var ONREADYSTATECHANGE = 'onreadystatechange';
5802 var defer, channel, port;
5803 var run = function () {
5804 var id = +this;
5805 // eslint-disable-next-line no-prototype-builtins
5806 if (queue.hasOwnProperty(id)) {
5807 var fn = queue[id];
5808 delete queue[id];
5809 fn();
5810 }
5811 };
5812 var listener = function (event) {
5813 run.call(event.data);
5814 };
5815 // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5816 if (!setTask || !clearTask) {
5817 setTask = function setImmediate(fn) {
5818 var args = [];
5819 var i = 1;
5820 while (arguments.length > i) args.push(arguments[i++]);
5821 queue[++counter] = function () {
5822 // eslint-disable-next-line no-new-func
5823 invoke(typeof fn == 'function' ? fn : Function(fn), args);
5824 };
5825 defer(counter);
5826 return counter;
5827 };
5828 clearTask = function clearImmediate(id) {
5829 delete queue[id];
5830 };
5831 // Node.js 0.8-
5832 if (__webpack_require__(56)(process) == 'process') {
5833 defer = function (id) {
5834 process.nextTick(ctx(run, id, 1));
5835 };
5836 // Sphere (JS game engine) Dispatch API
5837 } else if (Dispatch && Dispatch.now) {
5838 defer = function (id) {
5839 Dispatch.now(ctx(run, id, 1));
5840 };
5841 // Browsers with MessageChannel, includes WebWorkers
5842 } else if (MessageChannel) {
5843 channel = new MessageChannel();
5844 port = channel.port2;
5845 channel.port1.onmessage = listener;
5846 defer = ctx(port.postMessage, port, 1);
5847 // Browsers with postMessage, skip WebWorkers
5848 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5849 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
5850 defer = function (id) {
5851 global.postMessage(id + '', '*');
5852 };
5853 global.addEventListener('message', listener, false);
5854 // IE8-
5855 } else if (ONREADYSTATECHANGE in cel('script')) {
5856 defer = function (id) {
5857 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
5858 html.removeChild(this);
5859 run.call(id);
5860 };
5861 };
5862 // Rest old browsers
5863 } else {
5864 defer = function (id) {
5865 setTimeout(ctx(run, id, 1), 0);
5866 };
5867 }
5868 }
5869 module.exports = {
5870 set: setTask,
5871 clear: clearTask
5872 };
5873
5874
5875 /***/ }),
5876 /* 207 */
5877 /***/ (function(module, exports) {
5878
5879 module.exports = function (exec) {
5880 try {
5881 return { e: false, v: exec() };
5882 } catch (e) {
5883 return { e: true, v: e };
5884 }
5885 };
5886
5887
5888 /***/ }),
5889 /* 208 */
5890 /***/ (function(module, exports, __webpack_require__) {
5891
5892 var anObject = __webpack_require__(13);
5893 var isObject = __webpack_require__(9);
5894 var newPromiseCapability = __webpack_require__(144);
5895
5896 module.exports = function (C, x) {
5897 anObject(C);
5898 if (isObject(x) && x.constructor === C) return x;
5899 var promiseCapability = newPromiseCapability.f(C);
5900 var resolve = promiseCapability.resolve;
5901 resolve(x);
5902 return promiseCapability.promise;
5903 };
5904
5905
5906 /***/ }),
5907 /* 209 */
5908 /***/ (function(module, exports, __webpack_require__) {
5909
5910 module.exports = __webpack_require__(230);
5911
5912 /***/ }),
5913 /* 210 */
5914 /***/ (function(module, exports, __webpack_require__) {
5915
5916 "use strict";
5917
5918 // 19.1.2.1 Object.assign(target, source, ...)
5919 var DESCRIPTORS = __webpack_require__(14);
5920 var getKeys = __webpack_require__(40);
5921 var gOPS = __webpack_require__(71);
5922 var pIE = __webpack_require__(50);
5923 var toObject = __webpack_require__(32);
5924 var IObject = __webpack_require__(103);
5925 var $assign = Object.assign;
5926
5927 // should work with symbols and should have deterministic property order (V8 bug)
5928 module.exports = !$assign || __webpack_require__(22)(function () {
5929 var A = {};
5930 var B = {};
5931 // eslint-disable-next-line no-undef
5932 var S = Symbol();
5933 var K = 'abcdefghijklmnopqrst';
5934 A[S] = 7;
5935 K.split('').forEach(function (k) { B[k] = k; });
5936 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
5937 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
5938 var T = toObject(target);
5939 var aLen = arguments.length;
5940 var index = 1;
5941 var getSymbols = gOPS.f;
5942 var isEnum = pIE.f;
5943 while (aLen > index) {
5944 var S = IObject(arguments[index++]);
5945 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
5946 var length = keys.length;
5947 var j = 0;
5948 var key;
5949 while (length > j) {
5950 key = keys[j++];
5951 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
5952 }
5953 } return T;
5954 } : $assign;
5955
5956
5957 /***/ }),
5958 /* 211 */,
5959 /* 212 */
5960 /***/ (function(module, exports, __webpack_require__) {
5961
5962 var _Object$defineProperty = __webpack_require__(1);
5963
5964 var _Object$defineProperties = __webpack_require__(289);
5965
5966 var _Object$getOwnPropertyDescriptors = __webpack_require__(303);
5967
5968 var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
5969
5970 var _Object$getOwnPropertySymbols = __webpack_require__(307);
5971
5972 var _Object$keys = __webpack_require__(23);
5973
5974 var defineProperty = __webpack_require__(28);
5975
5976 function ownKeys(object, enumerableOnly) {
5977 var keys = _Object$keys(object);
5978
5979 if (_Object$getOwnPropertySymbols) {
5980 var symbols = _Object$getOwnPropertySymbols(object);
5981
5982 if (enumerableOnly) symbols = symbols.filter(function (sym) {
5983 return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
5984 });
5985 keys.push.apply(keys, symbols);
5986 }
5987
5988 return keys;
5989 }
5990
5991 function _objectSpread2(target) {
5992 for (var i = 1; i < arguments.length; i++) {
5993 var source = arguments[i] != null ? arguments[i] : {};
5994
5995 if (i % 2) {
5996 ownKeys(Object(source), true).forEach(function (key) {
5997 defineProperty(target, key, source[key]);
5998 });
5999 } else if (_Object$getOwnPropertyDescriptors) {
6000 _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
6001 } else {
6002 ownKeys(Object(source)).forEach(function (key) {
6003 _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
6004 });
6005 }
6006 }
6007
6008 return target;
6009 }
6010
6011 module.exports = _objectSpread2;
6012
6013 /***/ }),
6014 /* 213 */
6015 /***/ (function(module, exports, __webpack_require__) {
6016
6017 // helper for String#{startsWith, endsWith, includes}
6018 var isRegExp = __webpack_require__(122);
6019 var defined = __webpack_require__(42);
6020
6021 module.exports = function (that, searchString, NAME) {
6022 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
6023 return String(defined(that));
6024 };
6025
6026
6027 /***/ }),
6028 /* 214 */
6029 /***/ (function(module, exports, __webpack_require__) {
6030
6031 var MATCH = __webpack_require__(12)('match');
6032 module.exports = function (KEY) {
6033 var re = /./;
6034 try {
6035 '/./'[KEY](re);
6036 } catch (e) {
6037 try {
6038 re[MATCH] = false;
6039 return !'/./'[KEY](re);
6040 } catch (f) { /* empty */ }
6041 } return true;
6042 };
6043
6044
6045 /***/ }),
6046 /* 215 */,
6047 /* 216 */
6048 /***/ (function(module, exports, __webpack_require__) {
6049
6050 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
6051 var speciesConstructor = __webpack_require__(217);
6052
6053 module.exports = function (original, length) {
6054 return new (speciesConstructor(original))(length);
6055 };
6056
6057
6058 /***/ }),
6059 /* 217 */
6060 /***/ (function(module, exports, __webpack_require__) {
6061
6062 var isObject = __webpack_require__(30);
6063 var isArray = __webpack_require__(218);
6064 var SPECIES = __webpack_require__(12)('species');
6065
6066 module.exports = function (original) {
6067 var C;
6068 if (isArray(original)) {
6069 C = original.constructor;
6070 // cross-realm fallback
6071 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
6072 if (isObject(C)) {
6073 C = C[SPECIES];
6074 if (C === null) C = undefined;
6075 }
6076 } return C === undefined ? Array : C;
6077 };
6078
6079
6080 /***/ }),
6081 /* 218 */
6082 /***/ (function(module, exports, __webpack_require__) {
6083
6084 // 7.2.2 IsArray(argument)
6085 var cof = __webpack_require__(46);
6086 module.exports = Array.isArray || function isArray(arg) {
6087 return cof(arg) == 'Array';
6088 };
6089
6090
6091 /***/ }),
6092 /* 219 */
6093 /***/ (function(module, exports, __webpack_require__) {
6094
6095 var has = __webpack_require__(61);
6096 var toIObject = __webpack_require__(98);
6097 var arrayIndexOf = __webpack_require__(146)(false);
6098 var IE_PROTO = __webpack_require__(130)('IE_PROTO');
6099
6100 module.exports = function (object, names) {
6101 var O = toIObject(object);
6102 var i = 0;
6103 var result = [];
6104 var key;
6105 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
6106 // Don't enum bug & hidden keys
6107 while (names.length > i) if (has(O, key = names[i++])) {
6108 ~arrayIndexOf(result, key) || result.push(key);
6109 }
6110 return result;
6111 };
6112
6113
6114 /***/ }),
6115 /* 220 */
6116 /***/ (function(module, exports, __webpack_require__) {
6117
6118 __webpack_require__(221);
6119 module.exports = __webpack_require__(6).Array.isArray;
6120
6121
6122 /***/ }),
6123 /* 221 */
6124 /***/ (function(module, exports, __webpack_require__) {
6125
6126 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
6127 var $export = __webpack_require__(7);
6128
6129 $export($export.S, 'Array', { isArray: __webpack_require__(97) });
6130
6131
6132 /***/ }),
6133 /* 222 */,
6134 /* 223 */
6135 /***/ (function(module, exports, __webpack_require__) {
6136
6137 "use strict";
6138
6139
6140 var _interopRequireDefault = __webpack_require__(0);
6141
6142 var _Object$defineProperty = __webpack_require__(1);
6143
6144 _Object$defineProperty(exports, "__esModule", {
6145 value: true
6146 });
6147
6148 exports.default = void 0;
6149
6150 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
6151
6152 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6153
6154 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6155
6156 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
6157
6158 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
6159
6160 var _instanceType = _interopRequireDefault(__webpack_require__(252));
6161
6162 var ArgsObject = /*#__PURE__*/function (_InstanceType) {
6163 (0, _inherits2.default)(ArgsObject, _InstanceType);
6164
6165 var _super = (0, _createSuper2.default)(ArgsObject);
6166
6167 (0, _createClass2.default)(ArgsObject, null, [{
6168 key: "getInstanceType",
6169 value: function getInstanceType() {
6170 return 'ArgsObject';
6171 }
6172 /**
6173 * Function constructor().
6174 *
6175 * Create ArgsObject.
6176 *
6177 * @param {{}} args
6178 */
6179
6180 }]);
6181
6182 function ArgsObject(args) {
6183 var _this;
6184
6185 (0, _classCallCheck2.default)(this, ArgsObject);
6186 _this = _super.call(this);
6187 _this.args = args;
6188 return _this;
6189 }
6190 /**
6191 * Function requireArgument().
6192 *
6193 * Validate property in args.
6194 *
6195 * @param {string} property
6196 * @param {{}} args
6197 *
6198 * @throws {Error}
6199 *
6200 */
6201
6202
6203 (0, _createClass2.default)(ArgsObject, [{
6204 key: "requireArgument",
6205 value: function requireArgument(property) {
6206 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
6207
6208 if (!args.hasOwnProperty(property)) {
6209 throw Error("".concat(property, " is required."));
6210 }
6211 }
6212 /**
6213 * Function requireArgumentType().
6214 *
6215 * Validate property in args using `type === typeof(args.whatever)`.
6216 *
6217 * @param {string} property
6218 * @param {string} type
6219 * @param {{}} args
6220 *
6221 * @throws {Error}
6222 *
6223 */
6224
6225 }, {
6226 key: "requireArgumentType",
6227 value: function requireArgumentType(property, type) {
6228 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6229 this.requireArgument(property, args);
6230
6231 if ((0, _typeof2.default)(args[property]) !== type) {
6232 throw Error("".concat(property, " invalid type: ").concat(type, "."));
6233 }
6234 }
6235 /**
6236 * Function requireArgumentInstance().
6237 *
6238 * Validate property in args using `args.whatever instanceof instance`.
6239 *
6240 * @param {string} property
6241 * @param {instanceof} instance
6242 * @param {{}} args
6243 *
6244 * @throws {Error}
6245 *
6246 */
6247
6248 }, {
6249 key: "requireArgumentInstance",
6250 value: function requireArgumentInstance(property, instance) {
6251 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6252 this.requireArgument(property, args);
6253
6254 if (!(args[property] instanceof instance)) {
6255 throw Error("".concat(property, " invalid instance."));
6256 }
6257 }
6258 /**
6259 * Function requireArgumentConstructor().
6260 *
6261 * Validate property in args using `type === args.whatever.constructor`.
6262 *
6263 * @param {string} property
6264 * @param {*} type
6265 * @param {{}} args
6266 *
6267 * @throws {Error}
6268 *
6269 */
6270
6271 }, {
6272 key: "requireArgumentConstructor",
6273 value: function requireArgumentConstructor(property, type) {
6274 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
6275 this.requireArgument(property, args);
6276
6277 if (args[property].constructor !== type) {
6278 throw Error("".concat(property, " invalid constructor type."));
6279 }
6280 }
6281 }]);
6282 return ArgsObject;
6283 }(_instanceType.default);
6284
6285 exports.default = ArgsObject;
6286
6287 /***/ }),
6288 /* 224 */
6289 /***/ (function(module, exports, __webpack_require__) {
6290
6291 "use strict";
6292
6293
6294 var _interopRequireDefault = __webpack_require__(0);
6295
6296 var _Object$defineProperty = __webpack_require__(1);
6297
6298 _Object$defineProperty(exports, "__esModule", {
6299 value: true
6300 });
6301
6302 exports.default = exports.After = void 0;
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 _base = _interopRequireDefault(__webpack_require__(285));
6313
6314 var After = /*#__PURE__*/function (_Base) {
6315 (0, _inherits2.default)(After, _Base);
6316
6317 var _super = (0, _createSuper2.default)(After);
6318
6319 function After() {
6320 (0, _classCallCheck2.default)(this, After);
6321 return _super.apply(this, arguments);
6322 }
6323
6324 (0, _createClass2.default)(After, [{
6325 key: "register",
6326 value: function register() {
6327 $e.hooks.registerDataAfter(this);
6328 }
6329 }]);
6330 return After;
6331 }(_base.default);
6332
6333 exports.After = After;
6334 var _default = After;
6335 exports.default = _default;
6336
6337 /***/ }),
6338 /* 225 */
6339 /***/ (function(module, exports, __webpack_require__) {
6340
6341 "use strict";
6342
6343 var global = __webpack_require__(8);
6344 var core = __webpack_require__(6);
6345 var dP = __webpack_require__(15);
6346 var DESCRIPTORS = __webpack_require__(14);
6347 var SPECIES = __webpack_require__(10)('species');
6348
6349 module.exports = function (KEY) {
6350 var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
6351 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
6352 configurable: true,
6353 get: function () { return this; }
6354 });
6355 };
6356
6357
6358 /***/ }),
6359 /* 226 */
6360 /***/ (function(module, exports, __webpack_require__) {
6361
6362 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
6363 var anObject = __webpack_require__(18);
6364 var dPs = __webpack_require__(243);
6365 var enumBugKeys = __webpack_require__(147);
6366 var IE_PROTO = __webpack_require__(130)('IE_PROTO');
6367 var Empty = function () { /* empty */ };
6368 var PROTOTYPE = 'prototype';
6369
6370 // Create object with fake `null` prototype: use iframe Object with cleared prototype
6371 var createDict = function () {
6372 // Thrash, waste and sodomy: IE GC bug
6373 var iframe = __webpack_require__(109)('iframe');
6374 var i = enumBugKeys.length;
6375 var lt = '<';
6376 var gt = '>';
6377 var iframeDocument;
6378 iframe.style.display = 'none';
6379 __webpack_require__(227).appendChild(iframe);
6380 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
6381 // createDict = iframe.contentWindow.Object;
6382 // html.removeChild(iframe);
6383 iframeDocument = iframe.contentWindow.document;
6384 iframeDocument.open();
6385 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
6386 iframeDocument.close();
6387 createDict = iframeDocument.F;
6388 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
6389 return createDict();
6390 };
6391
6392 module.exports = Object.create || function create(O, Properties) {
6393 var result;
6394 if (O !== null) {
6395 Empty[PROTOTYPE] = anObject(O);
6396 result = new Empty();
6397 Empty[PROTOTYPE] = null;
6398 // add "__proto__" for Object.getPrototypeOf polyfill
6399 result[IE_PROTO] = O;
6400 } else result = createDict();
6401 return Properties === undefined ? result : dPs(result, Properties);
6402 };
6403
6404
6405 /***/ }),
6406 /* 227 */
6407 /***/ (function(module, exports, __webpack_require__) {
6408
6409 var document = __webpack_require__(17).document;
6410 module.exports = document && document.documentElement;
6411
6412
6413 /***/ }),
6414 /* 228 */
6415 /***/ (function(module, exports, __webpack_require__) {
6416
6417 __webpack_require__(60);
6418 __webpack_require__(229);
6419 module.exports = __webpack_require__(6).Array.from;
6420
6421
6422 /***/ }),
6423 /* 229 */
6424 /***/ (function(module, exports, __webpack_require__) {
6425
6426 "use strict";
6427
6428 var ctx = __webpack_require__(31);
6429 var $export = __webpack_require__(7);
6430 var toObject = __webpack_require__(32);
6431 var call = __webpack_require__(139);
6432 var isArrayIter = __webpack_require__(140);
6433 var toLength = __webpack_require__(68);
6434 var createProperty = __webpack_require__(185);
6435 var getIterFn = __webpack_require__(112);
6436
6437 $export($export.S + $export.F * !__webpack_require__(152)(function (iter) { Array.from(iter); }), 'Array', {
6438 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
6439 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
6440 var O = toObject(arrayLike);
6441 var C = typeof this == 'function' ? this : Array;
6442 var aLen = arguments.length;
6443 var mapfn = aLen > 1 ? arguments[1] : undefined;
6444 var mapping = mapfn !== undefined;
6445 var index = 0;
6446 var iterFn = getIterFn(O);
6447 var length, result, step, iterator;
6448 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
6449 // if object isn't iterable or it's array with default iterator - use simple case
6450 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
6451 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
6452 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
6453 }
6454 } else {
6455 length = toLength(O.length);
6456 for (result = new C(length); length > index; index++) {
6457 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
6458 }
6459 }
6460 result.length = index;
6461 return result;
6462 }
6463 });
6464
6465
6466 /***/ }),
6467 /* 230 */
6468 /***/ (function(module, exports, __webpack_require__) {
6469
6470 __webpack_require__(62);
6471 __webpack_require__(60);
6472 module.exports = __webpack_require__(231);
6473
6474
6475 /***/ }),
6476 /* 231 */
6477 /***/ (function(module, exports, __webpack_require__) {
6478
6479 var classof = __webpack_require__(101);
6480 var ITERATOR = __webpack_require__(10)('iterator');
6481 var Iterators = __webpack_require__(34);
6482 module.exports = __webpack_require__(6).isIterable = function (it) {
6483 var O = Object(it);
6484 return O[ITERATOR] !== undefined
6485 || '@@iterator' in O
6486 // eslint-disable-next-line no-prototype-builtins
6487 || Iterators.hasOwnProperty(classof(O));
6488 };
6489
6490
6491 /***/ }),
6492 /* 232 */
6493 /***/ (function(module, exports, __webpack_require__) {
6494
6495 "use strict";
6496
6497 var global = __webpack_require__(8);
6498 var $export = __webpack_require__(7);
6499 var meta = __webpack_require__(70);
6500 var fails = __webpack_require__(22);
6501 var hide = __webpack_require__(24);
6502 var redefineAll = __webpack_require__(126);
6503 var forOf = __webpack_require__(86);
6504 var anInstance = __webpack_require__(125);
6505 var isObject = __webpack_require__(9);
6506 var setToStringTag = __webpack_require__(53);
6507 var dP = __webpack_require__(15).f;
6508 var each = __webpack_require__(136)(0);
6509 var DESCRIPTORS = __webpack_require__(14);
6510
6511 module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
6512 var Base = global[NAME];
6513 var C = Base;
6514 var ADDER = IS_MAP ? 'set' : 'add';
6515 var proto = C && C.prototype;
6516 var O = {};
6517 if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
6518 new C().entries().next();
6519 }))) {
6520 // create collection constructor
6521 C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
6522 redefineAll(C.prototype, methods);
6523 meta.NEED = true;
6524 } else {
6525 C = wrapper(function (target, iterable) {
6526 anInstance(target, C, NAME, '_c');
6527 target._c = new Base();
6528 if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
6529 });
6530 each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
6531 var IS_ADDER = KEY == 'add' || KEY == 'set';
6532 if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
6533 anInstance(this, C, KEY);
6534 if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
6535 var result = this._c[KEY](a === 0 ? 0 : a, b);
6536 return IS_ADDER ? this : result;
6537 });
6538 });
6539 IS_WEAK || dP(C.prototype, 'size', {
6540 get: function () {
6541 return this._c.size;
6542 }
6543 });
6544 }
6545
6546 setToStringTag(C, NAME);
6547
6548 O[NAME] = C;
6549 $export($export.G + $export.W + $export.F, O);
6550
6551 if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
6552
6553 return C;
6554 };
6555
6556
6557 /***/ }),
6558 /* 233 */
6559 /***/ (function(module, exports, __webpack_require__) {
6560
6561 "use strict";
6562
6563 // https://tc39.github.io/proposal-setmap-offrom/
6564 var $export = __webpack_require__(7);
6565
6566 module.exports = function (COLLECTION) {
6567 $export($export.S, COLLECTION, { of: function of() {
6568 var length = arguments.length;
6569 var A = new Array(length);
6570 while (length--) A[length] = arguments[length];
6571 return new this(A);
6572 } });
6573 };
6574
6575
6576 /***/ }),
6577 /* 234 */
6578 /***/ (function(module, exports, __webpack_require__) {
6579
6580 "use strict";
6581
6582 // https://tc39.github.io/proposal-setmap-offrom/
6583 var $export = __webpack_require__(7);
6584 var aFunction = __webpack_require__(38);
6585 var ctx = __webpack_require__(31);
6586 var forOf = __webpack_require__(86);
6587
6588 module.exports = function (COLLECTION) {
6589 $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
6590 var mapFn = arguments[1];
6591 var mapping, A, n, cb;
6592 aFunction(this);
6593 mapping = mapFn !== undefined;
6594 if (mapping) aFunction(mapFn);
6595 if (source == undefined) return new this();
6596 A = [];
6597 if (mapping) {
6598 n = 0;
6599 cb = ctx(mapFn, arguments[2], 2);
6600 forOf(source, false, function (nextItem) {
6601 A.push(cb(nextItem, n++));
6602 });
6603 } else {
6604 forOf(source, false, A.push, A);
6605 }
6606 return new this(A);
6607 } });
6608 };
6609
6610
6611 /***/ }),
6612 /* 235 */,
6613 /* 236 */
6614 /***/ (function(module, exports, __webpack_require__) {
6615
6616 module.exports = __webpack_require__(249);
6617
6618 /***/ }),
6619 /* 237 */,
6620 /* 238 */,
6621 /* 239 */
6622 /***/ (function(module, exports, __webpack_require__) {
6623
6624 __webpack_require__(240);
6625 module.exports = __webpack_require__(6).Object.values;
6626
6627
6628 /***/ }),
6629 /* 240 */
6630 /***/ (function(module, exports, __webpack_require__) {
6631
6632 // https://github.com/tc39/proposal-object-values-entries
6633 var $export = __webpack_require__(7);
6634 var $values = __webpack_require__(184)(false);
6635
6636 $export($export.S, 'Object', {
6637 values: function values(it) {
6638 return $values(it);
6639 }
6640 });
6641
6642
6643 /***/ }),
6644 /* 241 */
6645 /***/ (function(module, exports) {
6646
6647 module.exports = function (done, value) {
6648 return { value: value, done: !!done };
6649 };
6650
6651
6652 /***/ }),
6653 /* 242 */
6654 /***/ (function(module, exports, __webpack_require__) {
6655
6656 "use strict";
6657
6658 var create = __webpack_require__(226);
6659 var descriptor = __webpack_require__(102);
6660 var setToStringTag = __webpack_require__(153);
6661 var IteratorPrototype = {};
6662
6663 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
6664 __webpack_require__(29)(IteratorPrototype, __webpack_require__(12)('iterator'), function () { return this; });
6665
6666 module.exports = function (Constructor, NAME, next) {
6667 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
6668 setToStringTag(Constructor, NAME + ' Iterator');
6669 };
6670
6671
6672 /***/ }),
6673 /* 243 */
6674 /***/ (function(module, exports, __webpack_require__) {
6675
6676 var dP = __webpack_require__(45);
6677 var anObject = __webpack_require__(18);
6678 var getKeys = __webpack_require__(183);
6679
6680 module.exports = __webpack_require__(27) ? Object.defineProperties : function defineProperties(O, Properties) {
6681 anObject(O);
6682 var keys = getKeys(Properties);
6683 var length = keys.length;
6684 var i = 0;
6685 var P;
6686 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
6687 return O;
6688 };
6689
6690
6691 /***/ }),
6692 /* 244 */
6693 /***/ (function(module, exports, __webpack_require__) {
6694
6695 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
6696 var has = __webpack_require__(61);
6697 var toObject = __webpack_require__(96);
6698 var IE_PROTO = __webpack_require__(130)('IE_PROTO');
6699 var ObjectProto = Object.prototype;
6700
6701 module.exports = Object.getPrototypeOf || function (O) {
6702 O = toObject(O);
6703 if (has(O, IE_PROTO)) return O[IE_PROTO];
6704 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
6705 return O.constructor.prototype;
6706 } return O instanceof Object ? ObjectProto : null;
6707 };
6708
6709
6710 /***/ }),
6711 /* 245 */
6712 /***/ (function(module, exports, __webpack_require__) {
6713
6714 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
6715 var speciesConstructor = __webpack_require__(246);
6716
6717 module.exports = function (original, length) {
6718 return new (speciesConstructor(original))(length);
6719 };
6720
6721
6722 /***/ }),
6723 /* 246 */
6724 /***/ (function(module, exports, __webpack_require__) {
6725
6726 var isObject = __webpack_require__(9);
6727 var isArray = __webpack_require__(97);
6728 var SPECIES = __webpack_require__(10)('species');
6729
6730 module.exports = function (original) {
6731 var C;
6732 if (isArray(original)) {
6733 C = original.constructor;
6734 // cross-realm fallback
6735 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
6736 if (isObject(C)) {
6737 C = C[SPECIES];
6738 if (C === null) C = undefined;
6739 }
6740 } return C === undefined ? Array : C;
6741 };
6742
6743
6744 /***/ }),
6745 /* 247 */
6746 /***/ (function(module, exports, __webpack_require__) {
6747
6748 var _Array$isArray = __webpack_require__(81);
6749
6750 function _arrayWithHoles(arr) {
6751 if (_Array$isArray(arr)) return arr;
6752 }
6753
6754 module.exports = _arrayWithHoles;
6755
6756 /***/ }),
6757 /* 248 */
6758 /***/ (function(module, exports, __webpack_require__) {
6759
6760 var _getIterator = __webpack_require__(236);
6761
6762 var _isIterable = __webpack_require__(209);
6763
6764 var _Symbol = __webpack_require__(111);
6765
6766 function _iterableToArrayLimit(arr, i) {
6767 if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return;
6768 var _arr = [];
6769 var _n = true;
6770 var _d = false;
6771 var _e = undefined;
6772
6773 try {
6774 for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
6775 _arr.push(_s.value);
6776
6777 if (i && _arr.length === i) break;
6778 }
6779 } catch (err) {
6780 _d = true;
6781 _e = err;
6782 } finally {
6783 try {
6784 if (!_n && _i["return"] != null) _i["return"]();
6785 } finally {
6786 if (_d) throw _e;
6787 }
6788 }
6789
6790 return _arr;
6791 }
6792
6793 module.exports = _iterableToArrayLimit;
6794
6795 /***/ }),
6796 /* 249 */
6797 /***/ (function(module, exports, __webpack_require__) {
6798
6799 __webpack_require__(62);
6800 __webpack_require__(60);
6801 module.exports = __webpack_require__(250);
6802
6803
6804 /***/ }),
6805 /* 250 */
6806 /***/ (function(module, exports, __webpack_require__) {
6807
6808 var anObject = __webpack_require__(13);
6809 var get = __webpack_require__(112);
6810 module.exports = __webpack_require__(6).getIterator = function (it) {
6811 var iterFn = get(it);
6812 if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
6813 return anObject(iterFn.call(it));
6814 };
6815
6816
6817 /***/ }),
6818 /* 251 */
6819 /***/ (function(module, exports) {
6820
6821 function _nonIterableRest() {
6822 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6823 }
6824
6825 module.exports = _nonIterableRest;
6826
6827 /***/ }),
6828 /* 252 */
6829 /***/ (function(module, exports, __webpack_require__) {
6830
6831 "use strict";
6832
6833
6834 var _interopRequireDefault = __webpack_require__(0);
6835
6836 var _Object$defineProperty = __webpack_require__(1);
6837
6838 _Object$defineProperty(exports, "__esModule", {
6839 value: true
6840 });
6841
6842 exports.default = void 0;
6843
6844 __webpack_require__(39);
6845
6846 var _isArray = _interopRequireDefault(__webpack_require__(81));
6847
6848 var _hasInstance = _interopRequireDefault(__webpack_require__(253));
6849
6850 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
6851
6852 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
6853
6854 var _get2 = _interopRequireDefault(__webpack_require__(25));
6855
6856 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
6857
6858 var InstanceType = /*#__PURE__*/function () {
6859 (0, _createClass2.default)(InstanceType, null, [{
6860 key: _hasInstance.default,
6861 value: function value(target) {
6862 /**
6863 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
6864 * its give's opportunity to mange capabilities of instanceOf operator.
6865 * saving current class each time will give option later to handle instanceOf manually.
6866 */
6867 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.
6868
6869 if (target && !target.constructor.getInstanceType) {
6870 return result;
6871 }
6872
6873 if (target) {
6874 if (!target.instanceTypes) {
6875 target.instanceTypes = [];
6876 }
6877
6878 if (!result) {
6879 if (this.getInstanceType() === target.constructor.getInstanceType()) {
6880 result = true;
6881 }
6882 }
6883
6884 if (result) {
6885 var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
6886
6887 if (-1 === target.instanceTypes.indexOf(name)) {
6888 target.instanceTypes.push(name);
6889 }
6890 }
6891 }
6892
6893 if (!result && target) {
6894 // Check if the given 'target', is instance of known types.
6895 result = target.instanceTypes && (0, _isArray.default)(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
6896 }
6897
6898 return result;
6899 }
6900 }]);
6901
6902 function InstanceType() {
6903 var _this = this;
6904
6905 (0, _classCallCheck2.default)(this, InstanceType);
6906 // Since anonymous classes sometimes do not get validated by babel, do it manually.
6907 var target = this instanceof InstanceType ? this.constructor : void 0;
6908 var prototypes = [];
6909
6910 while (target.__proto__ && target.__proto__.name) {
6911 prototypes.push(target.__proto__);
6912 target = target.__proto__;
6913 }
6914
6915 prototypes.reverse().forEach(function (proto) {
6916 return _this instanceof proto;
6917 });
6918 }
6919
6920 (0, _createClass2.default)(InstanceType, null, [{
6921 key: "getInstanceType",
6922 value: function getInstanceType() {
6923 elementorModules.ForceMethodImplementation();
6924 }
6925 }]);
6926 return InstanceType;
6927 }();
6928
6929 exports.default = InstanceType;
6930
6931 /***/ }),
6932 /* 253 */
6933 /***/ (function(module, exports, __webpack_require__) {
6934
6935 module.exports = __webpack_require__(254);
6936
6937 /***/ }),
6938 /* 254 */
6939 /***/ (function(module, exports, __webpack_require__) {
6940
6941 __webpack_require__(255);
6942 module.exports = __webpack_require__(63).f('hasInstance');
6943
6944
6945 /***/ }),
6946 /* 255 */
6947 /***/ (function(module, exports, __webpack_require__) {
6948
6949 "use strict";
6950
6951 var isObject = __webpack_require__(9);
6952 var getPrototypeOf = __webpack_require__(64);
6953 var HAS_INSTANCE = __webpack_require__(10)('hasInstance');
6954 var FunctionProto = Function.prototype;
6955 // 19.2.3.6 Function.prototype[@@hasInstance](V)
6956 if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(15).f(FunctionProto, HAS_INSTANCE, { value: function (O) {
6957 if (typeof this != 'function' || !isObject(O)) return false;
6958 if (!isObject(this.prototype)) return O instanceof this;
6959 // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
6960 while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
6961 return false;
6962 } });
6963
6964
6965 /***/ }),
6966 /* 256 */,
6967 /* 257 */
6968 /***/ (function(module, exports, __webpack_require__) {
6969
6970 __webpack_require__(100);
6971 __webpack_require__(60);
6972 __webpack_require__(62);
6973 __webpack_require__(258);
6974 __webpack_require__(261);
6975 __webpack_require__(262);
6976 module.exports = __webpack_require__(6).Promise;
6977
6978
6979 /***/ }),
6980 /* 258 */
6981 /***/ (function(module, exports, __webpack_require__) {
6982
6983 "use strict";
6984
6985 var LIBRARY = __webpack_require__(47);
6986 var global = __webpack_require__(8);
6987 var ctx = __webpack_require__(31);
6988 var classof = __webpack_require__(101);
6989 var $export = __webpack_require__(7);
6990 var isObject = __webpack_require__(9);
6991 var aFunction = __webpack_require__(38);
6992 var anInstance = __webpack_require__(125);
6993 var forOf = __webpack_require__(86);
6994 var speciesConstructor = __webpack_require__(205);
6995 var task = __webpack_require__(206).set;
6996 var microtask = __webpack_require__(259)();
6997 var newPromiseCapabilityModule = __webpack_require__(144);
6998 var perform = __webpack_require__(207);
6999 var userAgent = __webpack_require__(260);
7000 var promiseResolve = __webpack_require__(208);
7001 var PROMISE = 'Promise';
7002 var TypeError = global.TypeError;
7003 var process = global.process;
7004 var versions = process && process.versions;
7005 var v8 = versions && versions.v8 || '';
7006 var $Promise = global[PROMISE];
7007 var isNode = classof(process) == 'process';
7008 var empty = function () { /* empty */ };
7009 var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
7010 var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
7011
7012 var USE_NATIVE = !!function () {
7013 try {
7014 // correct subclassing with @@species support
7015 var promise = $Promise.resolve(1);
7016 var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) {
7017 exec(empty, empty);
7018 };
7019 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
7020 return (isNode || typeof PromiseRejectionEvent == 'function')
7021 && promise.then(empty) instanceof FakePromise
7022 // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
7023 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
7024 // we can't detect it synchronously, so just check versions
7025 && v8.indexOf('6.6') !== 0
7026 && userAgent.indexOf('Chrome/66') === -1;
7027 } catch (e) { /* empty */ }
7028 }();
7029
7030 // helpers
7031 var isThenable = function (it) {
7032 var then;
7033 return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
7034 };
7035 var notify = function (promise, isReject) {
7036 if (promise._n) return;
7037 promise._n = true;
7038 var chain = promise._c;
7039 microtask(function () {
7040 var value = promise._v;
7041 var ok = promise._s == 1;
7042 var i = 0;
7043 var run = function (reaction) {
7044 var handler = ok ? reaction.ok : reaction.fail;
7045 var resolve = reaction.resolve;
7046 var reject = reaction.reject;
7047 var domain = reaction.domain;
7048 var result, then, exited;
7049 try {
7050 if (handler) {
7051 if (!ok) {
7052 if (promise._h == 2) onHandleUnhandled(promise);
7053 promise._h = 1;
7054 }
7055 if (handler === true) result = value;
7056 else {
7057 if (domain) domain.enter();
7058 result = handler(value); // may throw
7059 if (domain) {
7060 domain.exit();
7061 exited = true;
7062 }
7063 }
7064 if (result === reaction.promise) {
7065 reject(TypeError('Promise-chain cycle'));
7066 } else if (then = isThenable(result)) {
7067 then.call(result, resolve, reject);
7068 } else resolve(result);
7069 } else reject(value);
7070 } catch (e) {
7071 if (domain && !exited) domain.exit();
7072 reject(e);
7073 }
7074 };
7075 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
7076 promise._c = [];
7077 promise._n = false;
7078 if (isReject && !promise._h) onUnhandled(promise);
7079 });
7080 };
7081 var onUnhandled = function (promise) {
7082 task.call(global, function () {
7083 var value = promise._v;
7084 var unhandled = isUnhandled(promise);
7085 var result, handler, console;
7086 if (unhandled) {
7087 result = perform(function () {
7088 if (isNode) {
7089 process.emit('unhandledRejection', value, promise);
7090 } else if (handler = global.onunhandledrejection) {
7091 handler({ promise: promise, reason: value });
7092 } else if ((console = global.console) && console.error) {
7093 console.error('Unhandled promise rejection', value);
7094 }
7095 });
7096 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
7097 promise._h = isNode || isUnhandled(promise) ? 2 : 1;
7098 } promise._a = undefined;
7099 if (unhandled && result.e) throw result.v;
7100 });
7101 };
7102 var isUnhandled = function (promise) {
7103 return promise._h !== 1 && (promise._a || promise._c).length === 0;
7104 };
7105 var onHandleUnhandled = function (promise) {
7106 task.call(global, function () {
7107 var handler;
7108 if (isNode) {
7109 process.emit('rejectionHandled', promise);
7110 } else if (handler = global.onrejectionhandled) {
7111 handler({ promise: promise, reason: promise._v });
7112 }
7113 });
7114 };
7115 var $reject = function (value) {
7116 var promise = this;
7117 if (promise._d) return;
7118 promise._d = true;
7119 promise = promise._w || promise; // unwrap
7120 promise._v = value;
7121 promise._s = 2;
7122 if (!promise._a) promise._a = promise._c.slice();
7123 notify(promise, true);
7124 };
7125 var $resolve = function (value) {
7126 var promise = this;
7127 var then;
7128 if (promise._d) return;
7129 promise._d = true;
7130 promise = promise._w || promise; // unwrap
7131 try {
7132 if (promise === value) throw TypeError("Promise can't be resolved itself");
7133 if (then = isThenable(value)) {
7134 microtask(function () {
7135 var wrapper = { _w: promise, _d: false }; // wrap
7136 try {
7137 then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
7138 } catch (e) {
7139 $reject.call(wrapper, e);
7140 }
7141 });
7142 } else {
7143 promise._v = value;
7144 promise._s = 1;
7145 notify(promise, false);
7146 }
7147 } catch (e) {
7148 $reject.call({ _w: promise, _d: false }, e); // wrap
7149 }
7150 };
7151
7152 // constructor polyfill
7153 if (!USE_NATIVE) {
7154 // 25.4.3.1 Promise(executor)
7155 $Promise = function Promise(executor) {
7156 anInstance(this, $Promise, PROMISE, '_h');
7157 aFunction(executor);
7158 Internal.call(this);
7159 try {
7160 executor(ctx($resolve, this, 1), ctx($reject, this, 1));
7161 } catch (err) {
7162 $reject.call(this, err);
7163 }
7164 };
7165 // eslint-disable-next-line no-unused-vars
7166 Internal = function Promise(executor) {
7167 this._c = []; // <- awaiting reactions
7168 this._a = undefined; // <- checked in isUnhandled reactions
7169 this._s = 0; // <- state
7170 this._d = false; // <- done
7171 this._v = undefined; // <- value
7172 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
7173 this._n = false; // <- notify
7174 };
7175 Internal.prototype = __webpack_require__(126)($Promise.prototype, {
7176 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
7177 then: function then(onFulfilled, onRejected) {
7178 var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
7179 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
7180 reaction.fail = typeof onRejected == 'function' && onRejected;
7181 reaction.domain = isNode ? process.domain : undefined;
7182 this._c.push(reaction);
7183 if (this._a) this._a.push(reaction);
7184 if (this._s) notify(this, false);
7185 return reaction.promise;
7186 },
7187 // 25.4.5.1 Promise.prototype.catch(onRejected)
7188 'catch': function (onRejected) {
7189 return this.then(undefined, onRejected);
7190 }
7191 });
7192 OwnPromiseCapability = function () {
7193 var promise = new Internal();
7194 this.promise = promise;
7195 this.resolve = ctx($resolve, promise, 1);
7196 this.reject = ctx($reject, promise, 1);
7197 };
7198 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
7199 return C === $Promise || C === Wrapper
7200 ? new OwnPromiseCapability(C)
7201 : newGenericPromiseCapability(C);
7202 };
7203 }
7204
7205 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
7206 __webpack_require__(53)($Promise, PROMISE);
7207 __webpack_require__(225)(PROMISE);
7208 Wrapper = __webpack_require__(6)[PROMISE];
7209
7210 // statics
7211 $export($export.S + $export.F * !USE_NATIVE, PROMISE, {
7212 // 25.4.4.5 Promise.reject(r)
7213 reject: function reject(r) {
7214 var capability = newPromiseCapability(this);
7215 var $$reject = capability.reject;
7216 $$reject(r);
7217 return capability.promise;
7218 }
7219 });
7220 $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
7221 // 25.4.4.6 Promise.resolve(x)
7222 resolve: function resolve(x) {
7223 return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
7224 }
7225 });
7226 $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(152)(function (iter) {
7227 $Promise.all(iter)['catch'](empty);
7228 })), PROMISE, {
7229 // 25.4.4.1 Promise.all(iterable)
7230 all: function all(iterable) {
7231 var C = this;
7232 var capability = newPromiseCapability(C);
7233 var resolve = capability.resolve;
7234 var reject = capability.reject;
7235 var result = perform(function () {
7236 var values = [];
7237 var index = 0;
7238 var remaining = 1;
7239 forOf(iterable, false, function (promise) {
7240 var $index = index++;
7241 var alreadyCalled = false;
7242 values.push(undefined);
7243 remaining++;
7244 C.resolve(promise).then(function (value) {
7245 if (alreadyCalled) return;
7246 alreadyCalled = true;
7247 values[$index] = value;
7248 --remaining || resolve(values);
7249 }, reject);
7250 });
7251 --remaining || resolve(values);
7252 });
7253 if (result.e) reject(result.v);
7254 return capability.promise;
7255 },
7256 // 25.4.4.4 Promise.race(iterable)
7257 race: function race(iterable) {
7258 var C = this;
7259 var capability = newPromiseCapability(C);
7260 var reject = capability.reject;
7261 var result = perform(function () {
7262 forOf(iterable, false, function (promise) {
7263 C.resolve(promise).then(capability.resolve, reject);
7264 });
7265 });
7266 if (result.e) reject(result.v);
7267 return capability.promise;
7268 }
7269 });
7270
7271
7272 /***/ }),
7273 /* 259 */
7274 /***/ (function(module, exports, __webpack_require__) {
7275
7276 var global = __webpack_require__(8);
7277 var macrotask = __webpack_require__(206).set;
7278 var Observer = global.MutationObserver || global.WebKitMutationObserver;
7279 var process = global.process;
7280 var Promise = global.Promise;
7281 var isNode = __webpack_require__(56)(process) == 'process';
7282
7283 module.exports = function () {
7284 var head, last, notify;
7285
7286 var flush = function () {
7287 var parent, fn;
7288 if (isNode && (parent = process.domain)) parent.exit();
7289 while (head) {
7290 fn = head.fn;
7291 head = head.next;
7292 try {
7293 fn();
7294 } catch (e) {
7295 if (head) notify();
7296 else last = undefined;
7297 throw e;
7298 }
7299 } last = undefined;
7300 if (parent) parent.enter();
7301 };
7302
7303 // Node.js
7304 if (isNode) {
7305 notify = function () {
7306 process.nextTick(flush);
7307 };
7308 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
7309 } else if (Observer && !(global.navigator && global.navigator.standalone)) {
7310 var toggle = true;
7311 var node = document.createTextNode('');
7312 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
7313 notify = function () {
7314 node.data = toggle = !toggle;
7315 };
7316 // environments with maybe non-completely correct, but existent Promise
7317 } else if (Promise && Promise.resolve) {
7318 // Promise.resolve without an argument throws an error in LG WebOS 2
7319 var promise = Promise.resolve(undefined);
7320 notify = function () {
7321 promise.then(flush);
7322 };
7323 // for other environments - macrotask based on:
7324 // - setImmediate
7325 // - MessageChannel
7326 // - window.postMessag
7327 // - onreadystatechange
7328 // - setTimeout
7329 } else {
7330 notify = function () {
7331 // strange IE + webpack dev server bug - use .call(global)
7332 macrotask.call(global, flush);
7333 };
7334 }
7335
7336 return function (fn) {
7337 var task = { fn: fn, next: undefined };
7338 if (last) last.next = task;
7339 if (!head) {
7340 head = task;
7341 notify();
7342 } last = task;
7343 };
7344 };
7345
7346
7347 /***/ }),
7348 /* 260 */
7349 /***/ (function(module, exports, __webpack_require__) {
7350
7351 var global = __webpack_require__(8);
7352 var navigator = global.navigator;
7353
7354 module.exports = navigator && navigator.userAgent || '';
7355
7356
7357 /***/ }),
7358 /* 261 */
7359 /***/ (function(module, exports, __webpack_require__) {
7360
7361 "use strict";
7362 // https://github.com/tc39/proposal-promise-finally
7363
7364 var $export = __webpack_require__(7);
7365 var core = __webpack_require__(6);
7366 var global = __webpack_require__(8);
7367 var speciesConstructor = __webpack_require__(205);
7368 var promiseResolve = __webpack_require__(208);
7369
7370 $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
7371 var C = speciesConstructor(this, core.Promise || global.Promise);
7372 var isFunction = typeof onFinally == 'function';
7373 return this.then(
7374 isFunction ? function (x) {
7375 return promiseResolve(C, onFinally()).then(function () { return x; });
7376 } : onFinally,
7377 isFunction ? function (e) {
7378 return promiseResolve(C, onFinally()).then(function () { throw e; });
7379 } : onFinally
7380 );
7381 } });
7382
7383
7384 /***/ }),
7385 /* 262 */
7386 /***/ (function(module, exports, __webpack_require__) {
7387
7388 "use strict";
7389
7390 // https://github.com/tc39/proposal-promise-try
7391 var $export = __webpack_require__(7);
7392 var newPromiseCapability = __webpack_require__(144);
7393 var perform = __webpack_require__(207);
7394
7395 $export($export.S, 'Promise', { 'try': function (callbackfn) {
7396 var promiseCapability = newPromiseCapability.f(this);
7397 var result = perform(callbackfn);
7398 (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
7399 return promiseCapability.promise;
7400 } });
7401
7402
7403 /***/ }),
7404 /* 263 */
7405 /***/ (function(module, exports, __webpack_require__) {
7406
7407 module.exports = __webpack_require__(264);
7408
7409 /***/ }),
7410 /* 264 */
7411 /***/ (function(module, exports, __webpack_require__) {
7412
7413 __webpack_require__(100);
7414 __webpack_require__(62);
7415 __webpack_require__(265);
7416 __webpack_require__(267);
7417 __webpack_require__(268);
7418 module.exports = __webpack_require__(6).WeakMap;
7419
7420
7421 /***/ }),
7422 /* 265 */
7423 /***/ (function(module, exports, __webpack_require__) {
7424
7425 "use strict";
7426
7427 var global = __webpack_require__(8);
7428 var each = __webpack_require__(136)(0);
7429 var redefine = __webpack_require__(93);
7430 var meta = __webpack_require__(70);
7431 var assign = __webpack_require__(210);
7432 var weak = __webpack_require__(266);
7433 var isObject = __webpack_require__(9);
7434 var validate = __webpack_require__(121);
7435 var NATIVE_WEAK_MAP = __webpack_require__(121);
7436 var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
7437 var WEAK_MAP = 'WeakMap';
7438 var getWeak = meta.getWeak;
7439 var isExtensible = Object.isExtensible;
7440 var uncaughtFrozenStore = weak.ufstore;
7441 var InternalMap;
7442
7443 var wrapper = function (get) {
7444 return function WeakMap() {
7445 return get(this, arguments.length > 0 ? arguments[0] : undefined);
7446 };
7447 };
7448
7449 var methods = {
7450 // 23.3.3.3 WeakMap.prototype.get(key)
7451 get: function get(key) {
7452 if (isObject(key)) {
7453 var data = getWeak(key);
7454 if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
7455 return data ? data[this._i] : undefined;
7456 }
7457 },
7458 // 23.3.3.5 WeakMap.prototype.set(key, value)
7459 set: function set(key, value) {
7460 return weak.def(validate(this, WEAK_MAP), key, value);
7461 }
7462 };
7463
7464 // 23.3 WeakMap Objects
7465 var $WeakMap = module.exports = __webpack_require__(232)(WEAK_MAP, wrapper, methods, weak, true, true);
7466
7467 // IE11 WeakMap frozen keys fix
7468 if (NATIVE_WEAK_MAP && IS_IE11) {
7469 InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
7470 assign(InternalMap.prototype, methods);
7471 meta.NEED = true;
7472 each(['delete', 'has', 'get', 'set'], function (key) {
7473 var proto = $WeakMap.prototype;
7474 var method = proto[key];
7475 redefine(proto, key, function (a, b) {
7476 // store frozen objects on internal weakmap shim
7477 if (isObject(a) && !isExtensible(a)) {
7478 if (!this._f) this._f = new InternalMap();
7479 var result = this._f[key](a, b);
7480 return key == 'set' ? this : result;
7481 // store all the rest on native weakmap
7482 } return method.call(this, a, b);
7483 });
7484 });
7485 }
7486
7487
7488 /***/ }),
7489 /* 266 */
7490 /***/ (function(module, exports, __webpack_require__) {
7491
7492 "use strict";
7493
7494 var redefineAll = __webpack_require__(126);
7495 var getWeak = __webpack_require__(70).getWeak;
7496 var anObject = __webpack_require__(13);
7497 var isObject = __webpack_require__(9);
7498 var anInstance = __webpack_require__(125);
7499 var forOf = __webpack_require__(86);
7500 var createArrayMethod = __webpack_require__(136);
7501 var $has = __webpack_require__(19);
7502 var validate = __webpack_require__(121);
7503 var arrayFind = createArrayMethod(5);
7504 var arrayFindIndex = createArrayMethod(6);
7505 var id = 0;
7506
7507 // fallback for uncaught frozen keys
7508 var uncaughtFrozenStore = function (that) {
7509 return that._l || (that._l = new UncaughtFrozenStore());
7510 };
7511 var UncaughtFrozenStore = function () {
7512 this.a = [];
7513 };
7514 var findUncaughtFrozen = function (store, key) {
7515 return arrayFind(store.a, function (it) {
7516 return it[0] === key;
7517 });
7518 };
7519 UncaughtFrozenStore.prototype = {
7520 get: function (key) {
7521 var entry = findUncaughtFrozen(this, key);
7522 if (entry) return entry[1];
7523 },
7524 has: function (key) {
7525 return !!findUncaughtFrozen(this, key);
7526 },
7527 set: function (key, value) {
7528 var entry = findUncaughtFrozen(this, key);
7529 if (entry) entry[1] = value;
7530 else this.a.push([key, value]);
7531 },
7532 'delete': function (key) {
7533 var index = arrayFindIndex(this.a, function (it) {
7534 return it[0] === key;
7535 });
7536 if (~index) this.a.splice(index, 1);
7537 return !!~index;
7538 }
7539 };
7540
7541 module.exports = {
7542 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
7543 var C = wrapper(function (that, iterable) {
7544 anInstance(that, C, NAME, '_i');
7545 that._t = NAME; // collection type
7546 that._i = id++; // collection id
7547 that._l = undefined; // leak store for uncaught frozen objects
7548 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
7549 });
7550 redefineAll(C.prototype, {
7551 // 23.3.3.2 WeakMap.prototype.delete(key)
7552 // 23.4.3.3 WeakSet.prototype.delete(value)
7553 'delete': function (key) {
7554 if (!isObject(key)) return false;
7555 var data = getWeak(key);
7556 if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
7557 return data && $has(data, this._i) && delete data[this._i];
7558 },
7559 // 23.3.3.4 WeakMap.prototype.has(key)
7560 // 23.4.3.4 WeakSet.prototype.has(value)
7561 has: function has(key) {
7562 if (!isObject(key)) return false;
7563 var data = getWeak(key);
7564 if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
7565 return data && $has(data, this._i);
7566 }
7567 });
7568 return C;
7569 },
7570 def: function (that, key, value) {
7571 var data = getWeak(anObject(key), true);
7572 if (data === true) uncaughtFrozenStore(that).set(key, value);
7573 else data[that._i] = value;
7574 return that;
7575 },
7576 ufstore: uncaughtFrozenStore
7577 };
7578
7579
7580 /***/ }),
7581 /* 267 */
7582 /***/ (function(module, exports, __webpack_require__) {
7583
7584 // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
7585 __webpack_require__(233)('WeakMap');
7586
7587
7588 /***/ }),
7589 /* 268 */
7590 /***/ (function(module, exports, __webpack_require__) {
7591
7592 // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
7593 __webpack_require__(234)('WeakMap');
7594
7595
7596 /***/ }),
7597 /* 269 */
7598 /***/ (function(module, exports, __webpack_require__) {
7599
7600 __webpack_require__(270);
7601 module.exports = __webpack_require__(6).Object.entries;
7602
7603
7604 /***/ }),
7605 /* 270 */
7606 /***/ (function(module, exports, __webpack_require__) {
7607
7608 // https://github.com/tc39/proposal-object-values-entries
7609 var $export = __webpack_require__(7);
7610 var $entries = __webpack_require__(184)(true);
7611
7612 $export($export.S, 'Object', {
7613 entries: function entries(it) {
7614 return $entries(it);
7615 }
7616 });
7617
7618
7619 /***/ }),
7620 /* 271 */
7621 /***/ (function(module, exports, __webpack_require__) {
7622
7623 "use strict";
7624
7625 var $at = __webpack_require__(142)(true);
7626
7627 // 21.1.3.27 String.prototype[@@iterator]()
7628 __webpack_require__(197)(String, 'String', function (iterated) {
7629 this._t = String(iterated); // target
7630 this._i = 0; // next index
7631 // 21.1.5.2.1 %StringIteratorPrototype%.next()
7632 }, function () {
7633 var O = this._t;
7634 var index = this._i;
7635 var point;
7636 if (index >= O.length) return { value: undefined, done: true };
7637 point = $at(O, index);
7638 this._i += point.length;
7639 return { value: point, done: false };
7640 });
7641
7642
7643 /***/ }),
7644 /* 272 */
7645 /***/ (function(module, exports, __webpack_require__) {
7646
7647 "use strict";
7648
7649
7650 var _Object$defineProperty = __webpack_require__(1);
7651
7652 _Object$defineProperty(exports, "__esModule", {
7653 value: true
7654 });
7655
7656 exports.default = void 0;
7657 var userAgent = navigator.userAgent;
7658 var _default = {
7659 webkit: -1 !== userAgent.indexOf('AppleWebKit'),
7660 firefox: -1 !== userAgent.indexOf('Firefox'),
7661 ie: /Trident|MSIE/.test(userAgent),
7662 edge: -1 !== userAgent.indexOf('Edge'),
7663 mac: -1 !== userAgent.indexOf('Macintosh'),
7664 safari: /^((?!chrome|android).)*safari/i.test(userAgent)
7665 };
7666 exports.default = _default;
7667
7668 /***/ }),
7669 /* 273 */,
7670 /* 274 */,
7671 /* 275 */,
7672 /* 276 */
7673 /***/ (function(module, exports, __webpack_require__) {
7674
7675 "use strict";
7676 // 21.1.3.18 String.prototype.startsWith(searchString [, position ])
7677
7678 var $export = __webpack_require__(37);
7679 var toLength = __webpack_require__(43);
7680 var context = __webpack_require__(213);
7681 var STARTS_WITH = 'startsWith';
7682 var $startsWith = ''[STARTS_WITH];
7683
7684 $export($export.P + $export.F * __webpack_require__(214)(STARTS_WITH), 'String', {
7685 startsWith: function startsWith(searchString /* , position = 0 */) {
7686 var that = context(this, searchString, STARTS_WITH);
7687 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
7688 var search = String(searchString);
7689 return $startsWith
7690 ? $startsWith.call(that, search, index)
7691 : that.slice(index, index + search.length) === search;
7692 }
7693 });
7694
7695
7696 /***/ }),
7697 /* 277 */
7698 /***/ (function(module, exports, __webpack_require__) {
7699
7700 "use strict";
7701
7702
7703 var _interopRequireDefault = __webpack_require__(0);
7704
7705 var _Object$defineProperty = __webpack_require__(1);
7706
7707 _Object$defineProperty(exports, "__esModule", {
7708 value: true
7709 });
7710
7711 exports.default = exports.After = void 0;
7712
7713 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7714
7715 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7716
7717 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7718
7719 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7720
7721 var _base = _interopRequireDefault(__webpack_require__(314));
7722
7723 var After = /*#__PURE__*/function (_Base) {
7724 (0, _inherits2.default)(After, _Base);
7725
7726 var _super = (0, _createSuper2.default)(After);
7727
7728 function After() {
7729 (0, _classCallCheck2.default)(this, After);
7730 return _super.apply(this, arguments);
7731 }
7732
7733 (0, _createClass2.default)(After, [{
7734 key: "register",
7735 value: function register() {
7736 $e.hooks.registerUIAfter(this);
7737 }
7738 }]);
7739 return After;
7740 }(_base.default);
7741
7742 exports.After = After;
7743 var _default = After;
7744 exports.default = _default;
7745
7746 /***/ }),
7747 /* 278 */,
7748 /* 279 */
7749 /***/ (function(module, exports, __webpack_require__) {
7750
7751 // 21.2.5.3 get RegExp.prototype.flags()
7752 if (__webpack_require__(27) && /./g.flags != 'g') __webpack_require__(45).f(RegExp.prototype, 'flags', {
7753 configurable: true,
7754 get: __webpack_require__(106)
7755 });
7756
7757
7758 /***/ }),
7759 /* 280 */,
7760 /* 281 */,
7761 /* 282 */,
7762 /* 283 */,
7763 /* 284 */,
7764 /* 285 */
7765 /***/ (function(module, exports, __webpack_require__) {
7766
7767 "use strict";
7768
7769
7770 var _interopRequireDefault = __webpack_require__(0);
7771
7772 var _Object$defineProperty = __webpack_require__(1);
7773
7774 _Object$defineProperty(exports, "__esModule", {
7775 value: true
7776 });
7777
7778 exports.default = exports.Base = void 0;
7779
7780 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7781
7782 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7783
7784 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7785
7786 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7787
7788 var _hookBase = _interopRequireDefault(__webpack_require__(294));
7789
7790 var Base = /*#__PURE__*/function (_HookBase) {
7791 (0, _inherits2.default)(Base, _HookBase);
7792
7793 var _super = (0, _createSuper2.default)(Base);
7794
7795 function Base() {
7796 (0, _classCallCheck2.default)(this, Base);
7797 return _super.apply(this, arguments);
7798 }
7799
7800 (0, _createClass2.default)(Base, [{
7801 key: "getType",
7802 value: function getType() {
7803 return 'data';
7804 }
7805 }]);
7806 return Base;
7807 }(_hookBase.default);
7808
7809 exports.Base = Base;
7810 var _default = Base;
7811 exports.default = _default;
7812
7813 /***/ }),
7814 /* 286 */
7815 /***/ (function(module, exports, __webpack_require__) {
7816
7817 "use strict";
7818
7819
7820 var _interopRequireWildcard = __webpack_require__(36);
7821
7822 var _interopRequireDefault = __webpack_require__(0);
7823
7824 var _Object$defineProperty = __webpack_require__(1);
7825
7826 _Object$defineProperty(exports, "__esModule", {
7827 value: true
7828 });
7829
7830 exports.default = void 0;
7831
7832 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7833
7834 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7835
7836 var _get2 = _interopRequireDefault(__webpack_require__(25));
7837
7838 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
7839
7840 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7841
7842 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7843
7844 var _componentBase = _interopRequireDefault(__webpack_require__(82));
7845
7846 var commands = _interopRequireWildcard(__webpack_require__(321));
7847
7848 var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) {
7849 (0, _inherits2.default)(ComponentModalBase, _ComponentBase);
7850
7851 var _super = (0, _createSuper2.default)(ComponentModalBase);
7852
7853 function ComponentModalBase() {
7854 (0, _classCallCheck2.default)(this, ComponentModalBase);
7855 return _super.apply(this, arguments);
7856 }
7857
7858 (0, _createClass2.default)(ComponentModalBase, [{
7859 key: "registerAPI",
7860 value: function registerAPI() {
7861 var _this = this;
7862
7863 (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this);
7864 $e.shortcuts.register('esc', {
7865 scopes: [this.getNamespace()],
7866 callback: function callback() {
7867 return _this.close();
7868 }
7869 });
7870 }
7871 }, {
7872 key: "defaultCommands",
7873 value: function defaultCommands() {
7874 return this.importCommands(commands);
7875 }
7876 }, {
7877 key: "defaultRoutes",
7878 value: function defaultRoutes() {
7879 return {
7880 '': function _() {
7881 /* Nothing to do, it's already rendered. */
7882 }
7883 };
7884 }
7885 }, {
7886 key: "open",
7887 value: function open() {
7888 var _this2 = this;
7889
7890 if (!this.layout) {
7891 var layout = this.getModalLayout();
7892 this.layout = new layout({
7893 component: this
7894 });
7895 this.layout.getModal().on('hide', function () {
7896 return _this2.close();
7897 });
7898 }
7899
7900 this.layout.showModal();
7901 return true;
7902 }
7903 }, {
7904 key: "close",
7905 value: function close() {
7906 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) {
7907 return false;
7908 }
7909
7910 this.layout.getModal().hide();
7911 return true;
7912 }
7913 }, {
7914 key: "getModalLayout",
7915 value: function getModalLayout() {
7916 elementorModules.ForceMethodImplementation();
7917 }
7918 }]);
7919 return ComponentModalBase;
7920 }(_componentBase.default);
7921
7922 exports.default = ComponentModalBase;
7923
7924 /***/ }),
7925 /* 287 */
7926 /***/ (function(module, exports, __webpack_require__) {
7927
7928 __webpack_require__(288);
7929 module.exports = __webpack_require__(6).Object.assign;
7930
7931
7932 /***/ }),
7933 /* 288 */
7934 /***/ (function(module, exports, __webpack_require__) {
7935
7936 // 19.1.3.1 Object.assign(target, source)
7937 var $export = __webpack_require__(7);
7938
7939 $export($export.S + $export.F, 'Object', { assign: __webpack_require__(210) });
7940
7941
7942 /***/ }),
7943 /* 289 */
7944 /***/ (function(module, exports, __webpack_require__) {
7945
7946 module.exports = __webpack_require__(290);
7947
7948 /***/ }),
7949 /* 290 */
7950 /***/ (function(module, exports, __webpack_require__) {
7951
7952 __webpack_require__(291);
7953 var $Object = __webpack_require__(6).Object;
7954 module.exports = function defineProperties(T, D) {
7955 return $Object.defineProperties(T, D);
7956 };
7957
7958
7959 /***/ }),
7960 /* 291 */
7961 /***/ (function(module, exports, __webpack_require__) {
7962
7963 var $export = __webpack_require__(7);
7964 // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
7965 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(134) });
7966
7967
7968 /***/ }),
7969 /* 292 */,
7970 /* 293 */,
7971 /* 294 */
7972 /***/ (function(module, exports, __webpack_require__) {
7973
7974 "use strict";
7975
7976
7977 var _interopRequireDefault = __webpack_require__(0);
7978
7979 var _Object$defineProperty = __webpack_require__(1);
7980
7981 _Object$defineProperty(exports, "__esModule", {
7982 value: true
7983 });
7984
7985 exports.default = void 0;
7986
7987 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7988
7989 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7990
7991 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
7992
7993 var HookBase = /*#__PURE__*/function () {
7994 /**
7995 * Callback type, eg ( hook, event ).
7996 *
7997 * @type {string}
7998 */
7999
8000 /**
8001 * Full command address, that will hook the callback.
8002 *
8003 * @type (string)
8004 */
8005
8006 /**
8007 * Unique id of the callback.
8008 *
8009 * @type {string}
8010 */
8011
8012 /**
8013 * Function constructor().
8014 *
8015 * Create callback base.
8016 */
8017 function HookBase() {
8018 (0, _classCallCheck2.default)(this, HookBase);
8019 (0, _defineProperty2.default)(this, "type", void 0);
8020 (0, _defineProperty2.default)(this, "command", void 0);
8021 (0, _defineProperty2.default)(this, "id", void 0);
8022 this.initialize();
8023 this.type = this.getType();
8024 this.command = this.getCommand();
8025 this.id = this.getId();
8026 }
8027 /**
8028 * Function initialize().
8029 *
8030 * Called after creation of the base, used for initialize extras.
8031 * Without expending constructor.
8032 */
8033
8034
8035 (0, _createClass2.default)(HookBase, [{
8036 key: "initialize",
8037 value: function initialize() {}
8038 /**
8039 * Function register().
8040 *
8041 * Used to register the callback.
8042 *
8043 * @throws {Error}
8044 */
8045
8046 }, {
8047 key: "register",
8048 value: function register() {
8049 elementorModules.ForceMethodImplementation();
8050 }
8051 /**
8052 * Function getType().
8053 *
8054 * Get type eg: ( hook, event, etc ... ).
8055 *
8056 * @returns {string}
8057 *
8058 * @throws {Error}
8059 */
8060
8061 }, {
8062 key: "getType",
8063 value: function getType() {
8064 elementorModules.ForceMethodImplementation();
8065 }
8066 /**
8067 * Function getCommand().
8068 *
8069 * Returns the full command path for callback binding.
8070 *
8071 * Supports array of strings ( commands ).
8072 *
8073 * @returns {string}
8074 *
8075 * @throws {Error}
8076 */
8077
8078 }, {
8079 key: "getCommand",
8080 value: function getCommand() {
8081 elementorModules.ForceMethodImplementation();
8082 }
8083 /**
8084 * Function getId().
8085 *
8086 * Returns command id for the hook (should be unique).
8087 *
8088 * @returns {string}
8089 *
8090 * @throws {Error}
8091 */
8092
8093 }, {
8094 key: "getId",
8095 value: function getId() {
8096 elementorModules.ForceMethodImplementation();
8097 }
8098 /**
8099 * Function getContainerType().
8100 *
8101 * Bind eContainer type to callback.
8102 *
8103 * Used to gain performance.
8104 *
8105 * @return {string} type
8106 */
8107
8108 }, {
8109 key: "getContainerType",
8110 value: function getContainerType() {}
8111 /**
8112 * Function getConditions().
8113 *
8114 * Condition for running the callback, if true, call to apply().
8115 *
8116 * @param [args={}]
8117 * @param [result=*]
8118 *
8119 * @returns {boolean}
8120 */
8121
8122 }, {
8123 key: "getConditions",
8124 value: function getConditions() {
8125 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8126 var result = arguments.length > 1 ? arguments[1] : undefined;
8127 // eslint-disable-line no-unused-vars
8128 return true;
8129 }
8130 /**
8131 * Function apply().
8132 *
8133 * Apply the callback, ( The actual affect of the callback ).
8134 *
8135 * @param [args={}]
8136 *
8137 * @returns {*}
8138 */
8139
8140 }, {
8141 key: "apply",
8142 value: function apply(args) {
8143 // eslint-disable-line no-unused-vars
8144 elementorModules.ForceMethodImplementation();
8145 }
8146 /**
8147 * Function run().
8148 *
8149 * Run the callback.
8150 *
8151 * @param {*} args
8152 *
8153 * @returns {*}
8154 */
8155
8156 }, {
8157 key: "run",
8158 value: function run() {
8159 var _ref = arguments.length <= 0 ? undefined : arguments[0],
8160 _ref$options = _ref.options,
8161 options = _ref$options === void 0 ? {} : _ref$options; // Disable callback if requested by args.options.
8162
8163
8164 if (options.callbacks && false === options.callbacks[this.id]) {
8165 return true;
8166 }
8167
8168 if (this.getConditions.apply(this, arguments)) {
8169 if ($e.devTools) {
8170 $e.devTools.log.callbacks().active(this.type, this.command, this.id);
8171 }
8172
8173 return this.apply.apply(this, arguments);
8174 }
8175
8176 return true;
8177 }
8178 }]);
8179 return HookBase;
8180 }();
8181
8182 exports.default = HookBase;
8183
8184 /***/ }),
8185 /* 295 */
8186 /***/ (function(module, exports, __webpack_require__) {
8187
8188 var global = __webpack_require__(17);
8189 var inheritIfRequired = __webpack_require__(310);
8190 var dP = __webpack_require__(45).f;
8191 var gOPN = __webpack_require__(312).f;
8192 var isRegExp = __webpack_require__(122);
8193 var $flags = __webpack_require__(106);
8194 var $RegExp = global.RegExp;
8195 var Base = $RegExp;
8196 var proto = $RegExp.prototype;
8197 var re1 = /a/g;
8198 var re2 = /a/g;
8199 // "new" creates a new object, old webkit buggy here
8200 var CORRECT_NEW = new $RegExp(re1) !== re1;
8201
8202 if (__webpack_require__(27) && (!CORRECT_NEW || __webpack_require__(33)(function () {
8203 re2[__webpack_require__(12)('match')] = false;
8204 // RegExp constructor can alter flags and IsRegExp works correct with @@match
8205 return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
8206 }))) {
8207 $RegExp = function RegExp(p, f) {
8208 var tiRE = this instanceof $RegExp;
8209 var piRE = isRegExp(p);
8210 var fiU = f === undefined;
8211 return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
8212 : inheritIfRequired(CORRECT_NEW
8213 ? new Base(piRE && !fiU ? p.source : p, f)
8214 : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
8215 , tiRE ? this : proto, $RegExp);
8216 };
8217 var proxy = function (key) {
8218 key in $RegExp || dP($RegExp, key, {
8219 configurable: true,
8220 get: function () { return Base[key]; },
8221 set: function (it) { Base[key] = it; }
8222 });
8223 };
8224 for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
8225 proto.constructor = $RegExp;
8226 $RegExp.prototype = proto;
8227 __webpack_require__(35)(global, 'RegExp', $RegExp);
8228 }
8229
8230 __webpack_require__(309)('RegExp');
8231
8232
8233 /***/ }),
8234 /* 296 */,
8235 /* 297 */,
8236 /* 298 */,
8237 /* 299 */,
8238 /* 300 */,
8239 /* 301 */,
8240 /* 302 */,
8241 /* 303 */
8242 /***/ (function(module, exports, __webpack_require__) {
8243
8244 module.exports = __webpack_require__(304);
8245
8246 /***/ }),
8247 /* 304 */
8248 /***/ (function(module, exports, __webpack_require__) {
8249
8250 __webpack_require__(305);
8251 module.exports = __webpack_require__(6).Object.getOwnPropertyDescriptors;
8252
8253
8254 /***/ }),
8255 /* 305 */
8256 /***/ (function(module, exports, __webpack_require__) {
8257
8258 // https://github.com/tc39/proposal-object-getownpropertydescriptors
8259 var $export = __webpack_require__(7);
8260 var ownKeys = __webpack_require__(306);
8261 var toIObject = __webpack_require__(20);
8262 var gOPD = __webpack_require__(51);
8263 var createProperty = __webpack_require__(185);
8264
8265 $export($export.S, 'Object', {
8266 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
8267 var O = toIObject(object);
8268 var getDesc = gOPD.f;
8269 var keys = ownKeys(O);
8270 var result = {};
8271 var i = 0;
8272 var key, desc;
8273 while (keys.length > i) {
8274 desc = getDesc(O, key = keys[i++]);
8275 if (desc !== undefined) createProperty(result, key, desc);
8276 }
8277 return result;
8278 }
8279 });
8280
8281
8282 /***/ }),
8283 /* 306 */
8284 /***/ (function(module, exports, __webpack_require__) {
8285
8286 // all object keys, includes non-enumerable and symbols
8287 var gOPN = __webpack_require__(99);
8288 var gOPS = __webpack_require__(71);
8289 var anObject = __webpack_require__(13);
8290 var Reflect = __webpack_require__(8).Reflect;
8291 module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
8292 var keys = gOPN.f(anObject(it));
8293 var getSymbols = gOPS.f;
8294 return getSymbols ? keys.concat(getSymbols(it)) : keys;
8295 };
8296
8297
8298 /***/ }),
8299 /* 307 */
8300 /***/ (function(module, exports, __webpack_require__) {
8301
8302 module.exports = __webpack_require__(308);
8303
8304 /***/ }),
8305 /* 308 */
8306 /***/ (function(module, exports, __webpack_require__) {
8307
8308 __webpack_require__(138);
8309 module.exports = __webpack_require__(6).Object.getOwnPropertySymbols;
8310
8311
8312 /***/ }),
8313 /* 309 */
8314 /***/ (function(module, exports, __webpack_require__) {
8315
8316 "use strict";
8317
8318 var global = __webpack_require__(17);
8319 var dP = __webpack_require__(45);
8320 var DESCRIPTORS = __webpack_require__(27);
8321 var SPECIES = __webpack_require__(12)('species');
8322
8323 module.exports = function (KEY) {
8324 var C = global[KEY];
8325 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
8326 configurable: true,
8327 get: function () { return this; }
8328 });
8329 };
8330
8331
8332 /***/ }),
8333 /* 310 */
8334 /***/ (function(module, exports, __webpack_require__) {
8335
8336 var isObject = __webpack_require__(30);
8337 var setPrototypeOf = __webpack_require__(330).set;
8338 module.exports = function (that, target, C) {
8339 var S = target.constructor;
8340 var P;
8341 if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
8342 setPrototypeOf(that, P);
8343 } return that;
8344 };
8345
8346
8347 /***/ }),
8348 /* 311 */
8349 /***/ (function(module, exports, __webpack_require__) {
8350
8351 var pIE = __webpack_require__(331);
8352 var createDesc = __webpack_require__(102);
8353 var toIObject = __webpack_require__(98);
8354 var toPrimitive = __webpack_require__(123);
8355 var has = __webpack_require__(61);
8356 var IE8_DOM_DEFINE = __webpack_require__(129);
8357 var gOPD = Object.getOwnPropertyDescriptor;
8358
8359 exports.f = __webpack_require__(27) ? gOPD : function getOwnPropertyDescriptor(O, P) {
8360 O = toIObject(O);
8361 P = toPrimitive(P, true);
8362 if (IE8_DOM_DEFINE) try {
8363 return gOPD(O, P);
8364 } catch (e) { /* empty */ }
8365 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
8366 };
8367
8368
8369 /***/ }),
8370 /* 312 */
8371 /***/ (function(module, exports, __webpack_require__) {
8372
8373 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
8374 var $keys = __webpack_require__(219);
8375 var hiddenKeys = __webpack_require__(147).concat('length', 'prototype');
8376
8377 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
8378 return $keys(O, hiddenKeys);
8379 };
8380
8381
8382 /***/ }),
8383 /* 313 */
8384 /***/ (function(module, exports, __webpack_require__) {
8385
8386 "use strict";
8387
8388
8389 var _interopRequireDefault = __webpack_require__(0);
8390
8391 var _Object$defineProperty = __webpack_require__(1);
8392
8393 _Object$defineProperty(exports, "__esModule", {
8394 value: true
8395 });
8396
8397 exports.default = void 0;
8398
8399 var _assign = _interopRequireDefault(__webpack_require__(150));
8400
8401 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8402
8403 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
8404
8405 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8406
8407 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8408
8409 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8410
8411 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
8412
8413 var _commandBase = _interopRequireDefault(__webpack_require__(21));
8414
8415 var CommandData = /*#__PURE__*/function (_CommandBase) {
8416 (0, _inherits2.default)(CommandData, _CommandBase);
8417
8418 var _super = (0, _createSuper2.default)(CommandData);
8419
8420 (0, _createClass2.default)(CommandData, null, [{
8421 key: "getInstanceType",
8422
8423 /**
8424 * Data returned from remote.
8425 *
8426 * @type {*}
8427 */
8428
8429 /**
8430 * Fetch type.
8431 *
8432 * @type {DataTypes}
8433 */
8434 value: function getInstanceType() {
8435 return 'CommandData';
8436 }
8437 }]);
8438
8439 function CommandData(args) {
8440 var _this$args$options;
8441
8442 var _this;
8443
8444 var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.data;
8445 (0, _classCallCheck2.default)(this, CommandData);
8446 _this = _super.call(this, args, commandsAPI);
8447 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", void 0);
8448 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0);
8449
8450 if ((_this$args$options = _this.args.options) === null || _this$args$options === void 0 ? void 0 : _this$args$options.type) {
8451 _this.type = _this.args.options.type;
8452 }
8453
8454 return _this;
8455 }
8456 /**
8457 * Function getEndpointFormat().
8458 *
8459 * @returns {(null|string)}
8460 */
8461
8462
8463 (0, _createClass2.default)(CommandData, [{
8464 key: "getApplyMethods",
8465
8466 /**
8467 * @param {DataTypes} type
8468 *
8469 * @returns {boolean|{before: (function(*=): {}), after: (function({}, *=): {})}}
8470 */
8471 value: function getApplyMethods() {
8472 var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.type;
8473 var before, after;
8474
8475 switch (type) {
8476 case 'create':
8477 before = this.applyBeforeCreate;
8478 after = this.applyAfterCreate;
8479 break;
8480
8481 case 'delete':
8482 before = this.applyBeforeDelete;
8483 after = this.applyAfterDelete;
8484 break;
8485
8486 case 'get':
8487 before = this.applyBeforeGet;
8488 after = this.applyAfterGet;
8489 break;
8490
8491 case 'update':
8492 before = this.applyBeforeUpdate;
8493 after = this.applyAfterUpdate;
8494 break;
8495
8496 default:
8497 return false;
8498 }
8499
8500 return {
8501 before: before,
8502 after: after
8503 };
8504 }
8505 /**
8506 * Function getRequestData().
8507 *
8508 * @returns {RequestData}
8509 */
8510
8511 }, {
8512 key: "getRequestData",
8513 value: function getRequestData() {
8514 return {
8515 type: this.type,
8516 args: this.args,
8517 timestamp: new Date().getTime(),
8518 component: this.component,
8519 command: this.currentCommand,
8520 endpoint: $e.data.commandToEndpoint(this.currentCommand, elementorCommon.helpers.cloneObject(this.args), this.constructor.getEndpointFormat())
8521 };
8522 }
8523 }, {
8524 key: "apply",
8525 value: function apply() {
8526 var _this2 = this;
8527
8528 var applyMethods = this.getApplyMethods(); // Run 'before' method.
8529
8530 this.args = applyMethods.before(this.args);
8531 var requestData = this.getRequestData();
8532 return $e.data.fetch(requestData).then(function (data) {
8533 _this2.data = data; // Run 'after' method.
8534
8535 _this2.data = applyMethods.after(data, _this2.args);
8536 _this2.data = {
8537 data: _this2.data
8538 }; // Append requestData.
8539
8540 _this2.data = (0, _assign.default)({
8541 __requestData__: requestData
8542 }, _this2.data);
8543 return _this2.data;
8544 });
8545 }
8546 /**
8547 * @param [args={}]
8548 * @returns {{}} filtered args
8549 */
8550
8551 }, {
8552 key: "applyBeforeCreate",
8553 value: function applyBeforeCreate() {
8554 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8555 return args;
8556 }
8557 /**
8558 * @param {{}} data
8559 * @param [args={}]
8560 * @returns {{}} filtered result
8561 */
8562
8563 }, {
8564 key: "applyAfterCreate",
8565 value: function applyAfterCreate(data) {
8566 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8567 // eslint-disable-line no-unused-vars
8568 return data;
8569 }
8570 /**
8571 * @param [args={}]
8572 * @returns {{}} filtered args
8573 */
8574
8575 }, {
8576 key: "applyBeforeDelete",
8577 value: function applyBeforeDelete() {
8578 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8579 return args;
8580 }
8581 /**
8582 * @param {{}} data
8583 * @param [args={}]
8584 * @returns {{}} filtered result
8585 */
8586
8587 }, {
8588 key: "applyAfterDelete",
8589 value: function applyAfterDelete(data) {
8590 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8591 // eslint-disable-line no-unused-vars
8592 return data;
8593 }
8594 /**
8595 * @param [args={}]
8596 * @returns {{}} filtered args
8597 */
8598
8599 }, {
8600 key: "applyBeforeGet",
8601 value: function applyBeforeGet() {
8602 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8603 return args;
8604 }
8605 /**
8606 * @param {{}} data
8607 * @param [args={}]
8608 * @returns {{}} filtered result
8609 */
8610
8611 }, {
8612 key: "applyAfterGet",
8613 value: function applyAfterGet(data) {
8614 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8615 // eslint-disable-line no-unused-vars
8616 return data;
8617 }
8618 /**
8619 * @param [args={}]
8620 * @returns {{}} filtered args
8621 */
8622
8623 }, {
8624 key: "applyBeforeUpdate",
8625 value: function applyBeforeUpdate() {
8626 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8627 return args;
8628 }
8629 /**
8630 * @param {{}} data
8631 * @param [args={}]
8632 * @returns {{}} filtered result
8633 */
8634
8635 }, {
8636 key: "applyAfterUpdate",
8637 value: function applyAfterUpdate(data) {
8638 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8639 // eslint-disable-line no-unused-vars
8640 return data;
8641 }
8642 }], [{
8643 key: "getEndpointFormat",
8644 value: function getEndpointFormat() {
8645 return null;
8646 }
8647 }]);
8648 return CommandData;
8649 }(_commandBase.default);
8650
8651 exports.default = CommandData;
8652
8653 /***/ }),
8654 /* 314 */
8655 /***/ (function(module, exports, __webpack_require__) {
8656
8657 "use strict";
8658
8659
8660 var _interopRequireDefault = __webpack_require__(0);
8661
8662 var _Object$defineProperty = __webpack_require__(1);
8663
8664 _Object$defineProperty(exports, "__esModule", {
8665 value: true
8666 });
8667
8668 exports.default = exports.Base = void 0;
8669
8670 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8671
8672 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8673
8674 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8675
8676 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8677
8678 var _hookBase = _interopRequireDefault(__webpack_require__(294));
8679
8680 var Base = /*#__PURE__*/function (_HookBase) {
8681 (0, _inherits2.default)(Base, _HookBase);
8682
8683 var _super = (0, _createSuper2.default)(Base);
8684
8685 function Base() {
8686 (0, _classCallCheck2.default)(this, Base);
8687 return _super.apply(this, arguments);
8688 }
8689
8690 (0, _createClass2.default)(Base, [{
8691 key: "getType",
8692 value: function getType() {
8693 return 'ui';
8694 }
8695 }]);
8696 return Base;
8697 }(_hookBase.default);
8698
8699 exports.Base = Base;
8700 var _default = Base;
8701 exports.default = _default;
8702
8703 /***/ }),
8704 /* 315 */,
8705 /* 316 */
8706 /***/ (function(module, exports, __webpack_require__) {
8707
8708 var core = __webpack_require__(6);
8709 var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
8710 module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
8711 return $JSON.stringify.apply($JSON, arguments);
8712 };
8713
8714
8715 /***/ }),
8716 /* 317 */,
8717 /* 318 */,
8718 /* 319 */,
8719 /* 320 */,
8720 /* 321 */
8721 /***/ (function(module, exports, __webpack_require__) {
8722
8723 "use strict";
8724
8725
8726 var _Object$defineProperty = __webpack_require__(1);
8727
8728 _Object$defineProperty(exports, "__esModule", {
8729 value: true
8730 });
8731
8732 _Object$defineProperty(exports, "Close", {
8733 enumerable: true,
8734 get: function get() {
8735 return _close.Close;
8736 }
8737 });
8738
8739 _Object$defineProperty(exports, "Open", {
8740 enumerable: true,
8741 get: function get() {
8742 return _open.Open;
8743 }
8744 });
8745
8746 _Object$defineProperty(exports, "Toggle", {
8747 enumerable: true,
8748 get: function get() {
8749 return _toggle.Toggle;
8750 }
8751 });
8752
8753 var _close = __webpack_require__(322);
8754
8755 var _open = __webpack_require__(323);
8756
8757 var _toggle = __webpack_require__(324);
8758
8759 /***/ }),
8760 /* 322 */
8761 /***/ (function(module, exports, __webpack_require__) {
8762
8763 "use strict";
8764
8765
8766 var _interopRequireDefault = __webpack_require__(0);
8767
8768 var _Object$defineProperty = __webpack_require__(1);
8769
8770 _Object$defineProperty(exports, "__esModule", {
8771 value: true
8772 });
8773
8774 exports.default = exports.Close = void 0;
8775
8776 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8777
8778 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8779
8780 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8781
8782 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8783
8784 var _commandBase = _interopRequireDefault(__webpack_require__(21));
8785
8786 var Close = /*#__PURE__*/function (_CommandBase) {
8787 (0, _inherits2.default)(Close, _CommandBase);
8788
8789 var _super = (0, _createSuper2.default)(Close);
8790
8791 function Close() {
8792 (0, _classCallCheck2.default)(this, Close);
8793 return _super.apply(this, arguments);
8794 }
8795
8796 (0, _createClass2.default)(Close, [{
8797 key: "apply",
8798 value: function apply() {
8799 this.component.close();
8800 }
8801 }]);
8802 return Close;
8803 }(_commandBase.default);
8804
8805 exports.Close = Close;
8806 var _default = Close;
8807 exports.default = _default;
8808
8809 /***/ }),
8810 /* 323 */
8811 /***/ (function(module, exports, __webpack_require__) {
8812
8813 "use strict";
8814
8815
8816 var _interopRequireDefault = __webpack_require__(0);
8817
8818 var _Object$defineProperty = __webpack_require__(1);
8819
8820 _Object$defineProperty(exports, "__esModule", {
8821 value: true
8822 });
8823
8824 exports.default = exports.Open = void 0;
8825
8826 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8827
8828 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8829
8830 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8831
8832 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8833
8834 var _commandBase = _interopRequireDefault(__webpack_require__(21));
8835
8836 var Open = /*#__PURE__*/function (_CommandBase) {
8837 (0, _inherits2.default)(Open, _CommandBase);
8838
8839 var _super = (0, _createSuper2.default)(Open);
8840
8841 function Open() {
8842 (0, _classCallCheck2.default)(this, Open);
8843 return _super.apply(this, arguments);
8844 }
8845
8846 (0, _createClass2.default)(Open, [{
8847 key: "apply",
8848 value: function apply() {
8849 $e.route(this.component.getNamespace());
8850 }
8851 }]);
8852 return Open;
8853 }(_commandBase.default);
8854
8855 exports.Open = Open;
8856 var _default = Open;
8857 exports.default = _default;
8858
8859 /***/ }),
8860 /* 324 */
8861 /***/ (function(module, exports, __webpack_require__) {
8862
8863 "use strict";
8864
8865
8866 var _interopRequireDefault = __webpack_require__(0);
8867
8868 var _Object$defineProperty = __webpack_require__(1);
8869
8870 _Object$defineProperty(exports, "__esModule", {
8871 value: true
8872 });
8873
8874 exports.default = exports.Toggle = void 0;
8875
8876 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8877
8878 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8879
8880 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8881
8882 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8883
8884 var _commandBase = _interopRequireDefault(__webpack_require__(21));
8885
8886 var Toggle = /*#__PURE__*/function (_CommandBase) {
8887 (0, _inherits2.default)(Toggle, _CommandBase);
8888
8889 var _super = (0, _createSuper2.default)(Toggle);
8890
8891 function Toggle() {
8892 (0, _classCallCheck2.default)(this, Toggle);
8893 return _super.apply(this, arguments);
8894 }
8895
8896 (0, _createClass2.default)(Toggle, [{
8897 key: "apply",
8898 value: function apply() {
8899 if (this.component.isOpen) {
8900 this.component.close();
8901 } else {
8902 $e.route(this.component.getNamespace());
8903 }
8904 }
8905 }]);
8906 return Toggle;
8907 }(_commandBase.default);
8908
8909 exports.Toggle = Toggle;
8910 var _default = Toggle;
8911 exports.default = _default;
8912
8913 /***/ }),
8914 /* 325 */,
8915 /* 326 */,
8916 /* 327 */,
8917 /* 328 */,
8918 /* 329 */,
8919 /* 330 */
8920 /***/ (function(module, exports, __webpack_require__) {
8921
8922 // Works with __proto__ only. Old v8 can't work with null proto objects.
8923 /* eslint-disable no-proto */
8924 var isObject = __webpack_require__(30);
8925 var anObject = __webpack_require__(18);
8926 var check = function (O, proto) {
8927 anObject(O);
8928 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
8929 };
8930 module.exports = {
8931 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
8932 function (test, buggy, set) {
8933 try {
8934 set = __webpack_require__(73)(Function.call, __webpack_require__(311).f(Object.prototype, '__proto__').set, 2);
8935 set(test, []);
8936 buggy = !(test instanceof Array);
8937 } catch (e) { buggy = true; }
8938 return function setPrototypeOf(O, proto) {
8939 check(O, proto);
8940 if (buggy) O.__proto__ = proto;
8941 else set(O, proto);
8942 return O;
8943 };
8944 }({}, false) : undefined),
8945 check: check
8946 };
8947
8948
8949 /***/ }),
8950 /* 331 */
8951 /***/ (function(module, exports) {
8952
8953 exports.f = {}.propertyIsEnumerable;
8954
8955
8956 /***/ }),
8957 /* 332 */,
8958 /* 333 */,
8959 /* 334 */,
8960 /* 335 */,
8961 /* 336 */,
8962 /* 337 */,
8963 /* 338 */,
8964 /* 339 */,
8965 /* 340 */,
8966 /* 341 */
8967 /***/ (function(module, exports, __webpack_require__) {
8968
8969 "use strict";
8970
8971
8972 var _interopRequireDefault = __webpack_require__(0);
8973
8974 var _Object$defineProperty = __webpack_require__(1);
8975
8976 _Object$defineProperty(exports, "__esModule", {
8977 value: true
8978 });
8979
8980 exports.default = void 0;
8981
8982 var _values = _interopRequireDefault(__webpack_require__(54));
8983
8984 __webpack_require__(145);
8985
8986 __webpack_require__(117);
8987
8988 __webpack_require__(72);
8989
8990 var _keys = _interopRequireDefault(__webpack_require__(23));
8991
8992 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
8993
8994 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
8995
8996 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
8997
8998 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
8999
9000 var _commands = _interopRequireDefault(__webpack_require__(627));
9001
9002 var Commands = /*#__PURE__*/function (_CommandsBackwardsCom) {
9003 (0, _inherits2.default)(Commands, _CommandsBackwardsCom);
9004
9005 var _super = (0, _createSuper2.default)(Commands);
9006
9007 /**
9008 * Function constructor().
9009 *
9010 * Create `$e.commands` API.
9011 *
9012 * @param {{}} args
9013 */
9014 function Commands() {
9015 var _this;
9016
9017 (0, _classCallCheck2.default)(this, Commands);
9018
9019 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9020 args[_key] = arguments[_key];
9021 }
9022
9023 _this = _super.call.apply(_super, [this].concat(args));
9024 _this.current = {};
9025 _this.currentArgs = {};
9026 _this.currentTrace = [];
9027 _this.commands = {};
9028 _this.components = {};
9029 _this.classes = {};
9030 return _this;
9031 }
9032 /**
9033 * @param id
9034 * @returns {CommandBase}
9035 */
9036
9037
9038 (0, _createClass2.default)(Commands, [{
9039 key: "getCommandClass",
9040 value: function getCommandClass(id) {
9041 return this.classes[id];
9042 }
9043 /**
9044 * Function getAll().
9045 *
9046 * Receive all loaded commands.
9047 *
9048 * @returns {string[]}
9049 */
9050
9051 }, {
9052 key: "getAll",
9053 value: function getAll() {
9054 return (0, _keys.default)(this.commands).sort();
9055 }
9056 /**
9057 * Function register().
9058 *
9059 * Register new command.
9060 *
9061 * @param {ComponentBase|string} component
9062 * @param {string} command
9063 * @param {function()} callback
9064 *
9065 * @returns {Commands}
9066 */
9067
9068 }, {
9069 key: "register",
9070 value: function register(component, command, callback) {
9071 var _this2 = this;
9072
9073 var namespace;
9074
9075 if ('string' === typeof component) {
9076 namespace = component;
9077 component = $e.components.get(namespace);
9078
9079 if (!component) {
9080 this.error("'".concat(namespace, "' component is not exist."));
9081 }
9082 } else {
9083 namespace = component.getNamespace();
9084 }
9085
9086 var fullCommand = namespace + (command ? '/' + command : '');
9087
9088 if (this.commands[fullCommand]) {
9089 this.error("`".concat(fullCommand, "` is already registered."));
9090 }
9091
9092 this.commands[fullCommand] = callback;
9093 this.components[fullCommand] = namespace;
9094 var shortcuts = component.getShortcuts(),
9095 shortcut = shortcuts[command];
9096
9097 if (shortcut) {
9098 shortcut.command = fullCommand;
9099
9100 shortcut.callback = function (event) {
9101 return _this2.runShortcut(fullCommand, event);
9102 };
9103
9104 $e.shortcuts.register(shortcut.keys, shortcut);
9105 }
9106
9107 return this;
9108 }
9109 }, {
9110 key: "unregister",
9111 value: function unregister(component, command) {
9112 var namespace;
9113
9114 if ('string' === typeof component) {
9115 namespace = component;
9116 component = $e.components.get(namespace);
9117
9118 if (!component) {
9119 this.error("'".concat(namespace, "' component is not exist."));
9120 }
9121 } else {
9122 namespace = component.getNamespace();
9123 }
9124
9125 var fullCommand = namespace + (command ? '/' + command : '');
9126
9127 if (!this.commands[fullCommand]) {
9128 this.error("`".concat(fullCommand, "` not exist."));
9129 }
9130
9131 delete this.commands[fullCommand];
9132 delete this.components[fullCommand];
9133 var shortcuts = component.getShortcuts(),
9134 shortcut = shortcuts[command];
9135
9136 if (shortcut) {
9137 $e.shortcuts.unregister(shortcut.keys, shortcut);
9138 }
9139
9140 return this;
9141 }
9142 /**
9143 * Function getComponent().
9144 *
9145 * Receive Component of the command.
9146 *
9147 * @param {string} command
9148 *
9149 * @returns {Component}
9150 */
9151
9152 }, {
9153 key: "getComponent",
9154 value: function getComponent(command) {
9155 var namespace = this.components[command];
9156 return $e.components.get(namespace);
9157 }
9158 /**
9159 * Function is().
9160 *
9161 * Checks if current running command is the same parameter command.
9162 *
9163 * @param {string} command
9164 *
9165 * @returns {boolean}
9166 */
9167
9168 }, {
9169 key: "is",
9170 value: function is(command) {
9171 var component = this.getComponent(command);
9172
9173 if (!component) {
9174 return false;
9175 }
9176
9177 return command === this.current[component.getRootContainer()];
9178 }
9179 /**
9180 * Function isCurrentFirstTrace().
9181 *
9182 * Checks if parameter command is the first command in trace that currently running.
9183 *
9184 * @param {string} command
9185 *
9186 * @returns {boolean}
9187 */
9188
9189 }, {
9190 key: "isCurrentFirstTrace",
9191 value: function isCurrentFirstTrace(command) {
9192 return command === this.getCurrentFirstTrace();
9193 }
9194 /**
9195 * Function getCurrent().
9196 *
9197 * Receive currently running components and its commands.
9198 *
9199 * @param {string} container
9200 *
9201 * @returns {{}|boolean|*}
9202 */
9203
9204 }, {
9205 key: "getCurrent",
9206 value: function getCurrent() {
9207 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9208
9209 if (container) {
9210 if (!this.current[container]) {
9211 return false;
9212 }
9213
9214 return this.current[container];
9215 }
9216
9217 return this.current;
9218 }
9219 /**
9220 * Function getCurrentArgs().
9221 *
9222 * Receive currently running command args.
9223 *
9224 * @param {string} container
9225 *
9226 * @returns {{}|boolean|*}
9227 */
9228
9229 }, {
9230 key: "getCurrentArgs",
9231 value: function getCurrentArgs() {
9232 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9233
9234 if (container) {
9235 if (!this.currentArgs[container]) {
9236 return false;
9237 }
9238
9239 return this.currentArgs[container];
9240 }
9241
9242 return this.currentArgs;
9243 }
9244 /**
9245 * Function getCurrentFirst().
9246 *
9247 * Receive first command that currently running.
9248 *
9249 * @returns {string}
9250 */
9251
9252 }, {
9253 key: "getCurrentFirst",
9254 value: function getCurrentFirst() {
9255 return (0, _values.default)(this.current)[0];
9256 }
9257 /**
9258 * Function getCurrentLast().
9259 *
9260 * Receive last command that currently running.
9261 *
9262 * @returns {string}
9263 */
9264
9265 }, {
9266 key: "getCurrentLast",
9267 value: function getCurrentLast() {
9268 var current = (0, _values.default)(this.current);
9269 return current[current.length - 1];
9270 }
9271 /**
9272 * Function getCurrentFirstTrace().
9273 *
9274 * Receive first command in trace that currently running
9275 *
9276 * @returns {string}
9277 */
9278
9279 }, {
9280 key: "getCurrentFirstTrace",
9281 value: function getCurrentFirstTrace() {
9282 return this.currentTrace[0];
9283 }
9284 /**
9285 * Function beforeRun().
9286 *
9287 * @param {string} command
9288 * @param {} args
9289 *
9290 * @returns {boolean} dependency result
9291 */
9292
9293 }, {
9294 key: "beforeRun",
9295 value: function beforeRun(command) {
9296 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9297
9298 if (!this.commands[command]) {
9299 this.error("`".concat(command, "` not found."));
9300 }
9301
9302 this.currentTrace.push(command);
9303 return this.getComponent(command).dependency(command, args);
9304 }
9305 /**
9306 * Function run().
9307 *
9308 * Runs a command.
9309 *
9310 * @param {string} command
9311 * @param {{}} args
9312 *
9313 * @returns {boolean|*} results
9314 */
9315
9316 }, {
9317 key: "run",
9318 value: function run(command) {
9319 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9320
9321 if (!this.beforeRun(command, args)) {
9322 return false;
9323 }
9324
9325 var component = this.getComponent(command),
9326 container = component.getRootContainer();
9327 this.current[container] = command;
9328 this.currentArgs[container] = args;
9329 this.trigger('run:before', component, command, args);
9330
9331 if (args.onBefore) {
9332 args.onBefore.apply(component, [args]);
9333 }
9334
9335 var results = this.commands[command].apply(component, [args]); // TODO: Consider add results to `$e.devTools`.
9336
9337 if (args.onAfter) {
9338 args.onAfter.apply(component, [args, results]);
9339 }
9340
9341 this.trigger('run:after', component, command, args, results);
9342 this.afterRun(command);
9343
9344 if (false === args.returnValue) {
9345 return true;
9346 }
9347
9348 return results;
9349 }
9350 /**
9351 * Function runShortcut().
9352 *
9353 * Run shortcut.
9354 *
9355 * It's separated in order to allow override.
9356 *
9357 * @param {string} command
9358 * @param {*} event
9359 *
9360 * @returns {boolean|*}
9361 */
9362
9363 }, {
9364 key: "runShortcut",
9365 value: function runShortcut(command, event) {
9366 return this.run(command, event);
9367 }
9368 /**
9369 * Function afterRun().
9370 *
9371 * Method fired after the command runs.
9372 *
9373 * @param {string} command
9374 */
9375
9376 }, {
9377 key: "afterRun",
9378 value: function afterRun(command) {
9379 var component = this.getComponent(command),
9380 container = component.getRootContainer();
9381 this.currentTrace.pop();
9382 delete this.current[container];
9383 delete this.currentArgs[container];
9384 }
9385 /**
9386 * Function error().
9387 *
9388 * Throws error.
9389 *
9390 * @throw {Error}
9391 *
9392 * @param {string} message
9393 */
9394
9395 }, {
9396 key: "error",
9397 value: function error(message) {
9398 throw Error("Commands: ".concat(message));
9399 }
9400 }]);
9401 return Commands;
9402 }(_commands.default);
9403
9404 exports.default = Commands;
9405
9406 /***/ }),
9407 /* 342 */
9408 /***/ (function(module, exports, __webpack_require__) {
9409
9410 var _Object$create = __webpack_require__(137);
9411
9412 var _Map = __webpack_require__(392);
9413
9414 var getPrototypeOf = __webpack_require__(16);
9415
9416 var setPrototypeOf = __webpack_require__(135);
9417
9418 var isNativeFunction = __webpack_require__(401);
9419
9420 var construct = __webpack_require__(402);
9421
9422 function _wrapNativeSuper(Class) {
9423 var _cache = typeof _Map === "function" ? new _Map() : undefined;
9424
9425 module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
9426 if (Class === null || !isNativeFunction(Class)) return Class;
9427
9428 if (typeof Class !== "function") {
9429 throw new TypeError("Super expression must either be null or a function");
9430 }
9431
9432 if (typeof _cache !== "undefined") {
9433 if (_cache.has(Class)) return _cache.get(Class);
9434
9435 _cache.set(Class, Wrapper);
9436 }
9437
9438 function Wrapper() {
9439 return construct(Class, arguments, getPrototypeOf(this).constructor);
9440 }
9441
9442 Wrapper.prototype = _Object$create(Class.prototype, {
9443 constructor: {
9444 value: Wrapper,
9445 enumerable: false,
9446 writable: true,
9447 configurable: true
9448 }
9449 });
9450 return setPrototypeOf(Wrapper, Class);
9451 };
9452
9453 return _wrapNativeSuper(Class);
9454 }
9455
9456 module.exports = _wrapNativeSuper;
9457
9458 /***/ }),
9459 /* 343 */
9460 /***/ (function(module, exports, __webpack_require__) {
9461
9462 "use strict";
9463
9464
9465 var _interopRequireDefault = __webpack_require__(0);
9466
9467 var _Object$defineProperty = __webpack_require__(1);
9468
9469 _Object$defineProperty(exports, "__esModule", {
9470 value: true
9471 });
9472
9473 exports.default = exports.Dependency = void 0;
9474
9475 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9476
9477 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9478
9479 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9480
9481 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9482
9483 var _base = _interopRequireDefault(__webpack_require__(285));
9484
9485 var Dependency = /*#__PURE__*/function (_Base) {
9486 (0, _inherits2.default)(Dependency, _Base);
9487
9488 var _super = (0, _createSuper2.default)(Dependency);
9489
9490 function Dependency() {
9491 (0, _classCallCheck2.default)(this, Dependency);
9492 return _super.apply(this, arguments);
9493 }
9494
9495 (0, _createClass2.default)(Dependency, [{
9496 key: "register",
9497 value: function register() {
9498 $e.hooks.registerDataDependency(this);
9499 }
9500 }]);
9501 return Dependency;
9502 }(_base.default);
9503
9504 exports.Dependency = Dependency;
9505 var _default = Dependency;
9506 exports.default = _default;
9507
9508 /***/ }),
9509 /* 344 */,
9510 /* 345 */,
9511 /* 346 */,
9512 /* 347 */,
9513 /* 348 */,
9514 /* 349 */,
9515 /* 350 */,
9516 /* 351 */,
9517 /* 352 */,
9518 /* 353 */,
9519 /* 354 */,
9520 /* 355 */,
9521 /* 356 */,
9522 /* 357 */,
9523 /* 358 */,
9524 /* 359 */,
9525 /* 360 */,
9526 /* 361 */,
9527 /* 362 */,
9528 /* 363 */,
9529 /* 364 */,
9530 /* 365 */,
9531 /* 366 */,
9532 /* 367 */,
9533 /* 368 */,
9534 /* 369 */,
9535 /* 370 */,
9536 /* 371 */,
9537 /* 372 */,
9538 /* 373 */,
9539 /* 374 */,
9540 /* 375 */,
9541 /* 376 */,
9542 /* 377 */,
9543 /* 378 */,
9544 /* 379 */,
9545 /* 380 */,
9546 /* 381 */,
9547 /* 382 */,
9548 /* 383 */,
9549 /* 384 */,
9550 /* 385 */,
9551 /* 386 */,
9552 /* 387 */,
9553 /* 388 */,
9554 /* 389 */,
9555 /* 390 */,
9556 /* 391 */,
9557 /* 392 */
9558 /***/ (function(module, exports, __webpack_require__) {
9559
9560 module.exports = __webpack_require__(393);
9561
9562 /***/ }),
9563 /* 393 */
9564 /***/ (function(module, exports, __webpack_require__) {
9565
9566 __webpack_require__(100);
9567 __webpack_require__(60);
9568 __webpack_require__(62);
9569 __webpack_require__(394);
9570 __webpack_require__(396);
9571 __webpack_require__(399);
9572 __webpack_require__(400);
9573 module.exports = __webpack_require__(6).Map;
9574
9575
9576 /***/ }),
9577 /* 394 */
9578 /***/ (function(module, exports, __webpack_require__) {
9579
9580 "use strict";
9581
9582 var strong = __webpack_require__(395);
9583 var validate = __webpack_require__(121);
9584 var MAP = 'Map';
9585
9586 // 23.1 Map Objects
9587 module.exports = __webpack_require__(232)(MAP, function (get) {
9588 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
9589 }, {
9590 // 23.1.3.6 Map.prototype.get(key)
9591 get: function get(key) {
9592 var entry = strong.getEntry(validate(this, MAP), key);
9593 return entry && entry.v;
9594 },
9595 // 23.1.3.9 Map.prototype.set(key, value)
9596 set: function set(key, value) {
9597 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
9598 }
9599 }, strong, true);
9600
9601
9602 /***/ }),
9603 /* 395 */
9604 /***/ (function(module, exports, __webpack_require__) {
9605
9606 "use strict";
9607
9608 var dP = __webpack_require__(15).f;
9609 var create = __webpack_require__(52);
9610 var redefineAll = __webpack_require__(126);
9611 var ctx = __webpack_require__(31);
9612 var anInstance = __webpack_require__(125);
9613 var forOf = __webpack_require__(86);
9614 var $iterDefine = __webpack_require__(108);
9615 var step = __webpack_require__(149);
9616 var setSpecies = __webpack_require__(225);
9617 var DESCRIPTORS = __webpack_require__(14);
9618 var fastKey = __webpack_require__(70).fastKey;
9619 var validate = __webpack_require__(121);
9620 var SIZE = DESCRIPTORS ? '_s' : 'size';
9621
9622 var getEntry = function (that, key) {
9623 // fast case
9624 var index = fastKey(key);
9625 var entry;
9626 if (index !== 'F') return that._i[index];
9627 // frozen object case
9628 for (entry = that._f; entry; entry = entry.n) {
9629 if (entry.k == key) return entry;
9630 }
9631 };
9632
9633 module.exports = {
9634 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
9635 var C = wrapper(function (that, iterable) {
9636 anInstance(that, C, NAME, '_i');
9637 that._t = NAME; // collection type
9638 that._i = create(null); // index
9639 that._f = undefined; // first entry
9640 that._l = undefined; // last entry
9641 that[SIZE] = 0; // size
9642 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
9643 });
9644 redefineAll(C.prototype, {
9645 // 23.1.3.1 Map.prototype.clear()
9646 // 23.2.3.2 Set.prototype.clear()
9647 clear: function clear() {
9648 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
9649 entry.r = true;
9650 if (entry.p) entry.p = entry.p.n = undefined;
9651 delete data[entry.i];
9652 }
9653 that._f = that._l = undefined;
9654 that[SIZE] = 0;
9655 },
9656 // 23.1.3.3 Map.prototype.delete(key)
9657 // 23.2.3.4 Set.prototype.delete(value)
9658 'delete': function (key) {
9659 var that = validate(this, NAME);
9660 var entry = getEntry(that, key);
9661 if (entry) {
9662 var next = entry.n;
9663 var prev = entry.p;
9664 delete that._i[entry.i];
9665 entry.r = true;
9666 if (prev) prev.n = next;
9667 if (next) next.p = prev;
9668 if (that._f == entry) that._f = next;
9669 if (that._l == entry) that._l = prev;
9670 that[SIZE]--;
9671 } return !!entry;
9672 },
9673 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
9674 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
9675 forEach: function forEach(callbackfn /* , that = undefined */) {
9676 validate(this, NAME);
9677 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
9678 var entry;
9679 while (entry = entry ? entry.n : this._f) {
9680 f(entry.v, entry.k, this);
9681 // revert to the last existing entry
9682 while (entry && entry.r) entry = entry.p;
9683 }
9684 },
9685 // 23.1.3.7 Map.prototype.has(key)
9686 // 23.2.3.7 Set.prototype.has(value)
9687 has: function has(key) {
9688 return !!getEntry(validate(this, NAME), key);
9689 }
9690 });
9691 if (DESCRIPTORS) dP(C.prototype, 'size', {
9692 get: function () {
9693 return validate(this, NAME)[SIZE];
9694 }
9695 });
9696 return C;
9697 },
9698 def: function (that, key, value) {
9699 var entry = getEntry(that, key);
9700 var prev, index;
9701 // change existing entry
9702 if (entry) {
9703 entry.v = value;
9704 // create new entry
9705 } else {
9706 that._l = entry = {
9707 i: index = fastKey(key, true), // <- index
9708 k: key, // <- key
9709 v: value, // <- value
9710 p: prev = that._l, // <- previous entry
9711 n: undefined, // <- next entry
9712 r: false // <- removed
9713 };
9714 if (!that._f) that._f = entry;
9715 if (prev) prev.n = entry;
9716 that[SIZE]++;
9717 // add to index
9718 if (index !== 'F') that._i[index] = entry;
9719 } return that;
9720 },
9721 getEntry: getEntry,
9722 setStrong: function (C, NAME, IS_MAP) {
9723 // add .keys, .values, .entries, [@@iterator]
9724 // 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
9725 $iterDefine(C, NAME, function (iterated, kind) {
9726 this._t = validate(iterated, NAME); // target
9727 this._k = kind; // kind
9728 this._l = undefined; // previous
9729 }, function () {
9730 var that = this;
9731 var kind = that._k;
9732 var entry = that._l;
9733 // revert to the last existing entry
9734 while (entry && entry.r) entry = entry.p;
9735 // get next entry
9736 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
9737 // or finish the iteration
9738 that._t = undefined;
9739 return step(1);
9740 }
9741 // return step by kind
9742 if (kind == 'keys') return step(0, entry.k);
9743 if (kind == 'values') return step(0, entry.v);
9744 return step(0, [entry.k, entry.v]);
9745 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
9746
9747 // add [@@species], 23.1.2.2, 23.2.2.2
9748 setSpecies(NAME);
9749 }
9750 };
9751
9752
9753 /***/ }),
9754 /* 396 */
9755 /***/ (function(module, exports, __webpack_require__) {
9756
9757 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
9758 var $export = __webpack_require__(7);
9759
9760 $export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(397)('Map') });
9761
9762
9763 /***/ }),
9764 /* 397 */
9765 /***/ (function(module, exports, __webpack_require__) {
9766
9767 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
9768 var classof = __webpack_require__(101);
9769 var from = __webpack_require__(398);
9770 module.exports = function (NAME) {
9771 return function toJSON() {
9772 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
9773 return from(this);
9774 };
9775 };
9776
9777
9778 /***/ }),
9779 /* 398 */
9780 /***/ (function(module, exports, __webpack_require__) {
9781
9782 var forOf = __webpack_require__(86);
9783
9784 module.exports = function (iter, ITERATOR) {
9785 var result = [];
9786 forOf(iter, false, result.push, result, ITERATOR);
9787 return result;
9788 };
9789
9790
9791 /***/ }),
9792 /* 399 */
9793 /***/ (function(module, exports, __webpack_require__) {
9794
9795 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
9796 __webpack_require__(233)('Map');
9797
9798
9799 /***/ }),
9800 /* 400 */
9801 /***/ (function(module, exports, __webpack_require__) {
9802
9803 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
9804 __webpack_require__(234)('Map');
9805
9806
9807 /***/ }),
9808 /* 401 */
9809 /***/ (function(module, exports) {
9810
9811 function _isNativeFunction(fn) {
9812 return Function.toString.call(fn).indexOf("[native code]") !== -1;
9813 }
9814
9815 module.exports = _isNativeFunction;
9816
9817 /***/ }),
9818 /* 402 */
9819 /***/ (function(module, exports, __webpack_require__) {
9820
9821 var _Reflect$construct = __webpack_require__(107);
9822
9823 var setPrototypeOf = __webpack_require__(135);
9824
9825 var isNativeReflectConstruct = __webpack_require__(148);
9826
9827 function _construct(Parent, args, Class) {
9828 if (isNativeReflectConstruct()) {
9829 module.exports = _construct = _Reflect$construct;
9830 } else {
9831 module.exports = _construct = function _construct(Parent, args, Class) {
9832 var a = [null];
9833 a.push.apply(a, args);
9834 var Constructor = Function.bind.apply(Parent, a);
9835 var instance = new Constructor();
9836 if (Class) setPrototypeOf(instance, Class.prototype);
9837 return instance;
9838 };
9839 }
9840
9841 return _construct.apply(null, arguments);
9842 }
9843
9844 module.exports = _construct;
9845
9846 /***/ }),
9847 /* 403 */,
9848 /* 404 */,
9849 /* 405 */,
9850 /* 406 */,
9851 /* 407 */,
9852 /* 408 */,
9853 /* 409 */,
9854 /* 410 */,
9855 /* 411 */
9856 /***/ (function(module, exports, __webpack_require__) {
9857
9858 "use strict";
9859
9860
9861 var _interopRequireDefault = __webpack_require__(0);
9862
9863 var _Object$defineProperty = __webpack_require__(1);
9864
9865 _Object$defineProperty(exports, "__esModule", {
9866 value: true
9867 });
9868
9869 exports.default = void 0;
9870
9871 var _keys = _interopRequireDefault(__webpack_require__(23));
9872
9873 var _values = _interopRequireDefault(__webpack_require__(54));
9874
9875 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9876
9877 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9878
9879 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9880
9881 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9882
9883 var HooksBase = /*#__PURE__*/function (_elementorModules$Mod) {
9884 (0, _inherits2.default)(HooksBase, _elementorModules$Mod);
9885
9886 var _super = (0, _createSuper2.default)(HooksBase);
9887
9888 /**
9889 * Function constructor().
9890 *
9891 * Create hooks base.
9892 *
9893 * @param {{}} args
9894 */
9895 function HooksBase() {
9896 var _this;
9897
9898 (0, _classCallCheck2.default)(this, HooksBase);
9899
9900 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9901 args[_key] = arguments[_key];
9902 }
9903
9904 _this = _super.call.apply(_super, [this].concat(args));
9905 /**
9906 * Current command.
9907 *
9908 * @type {string}
9909 */
9910
9911 _this.current = '';
9912 /**
9913 * Array of ids which in use.
9914 *
9915 * @type {Array}
9916 */
9917
9918 _this.usedIds = [];
9919 /**
9920 * Object of callbacks that was bound by container type.
9921 *
9922 * @type {{}}
9923 */
9924
9925 _this.callbacks = {
9926 after: {},
9927 catch: {}
9928 };
9929 /**
9930 * Object of depth.
9931 *
9932 * @type {{}}
9933 */
9934
9935 _this.depth = {
9936 after: {},
9937 catch: {}
9938 };
9939 _this.callbacksFlatList = {};
9940 return _this;
9941 }
9942
9943 (0, _createClass2.default)(HooksBase, [{
9944 key: "activate",
9945 value: function activate() {
9946 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
9947 callback.activate();
9948 });
9949 }
9950 }, {
9951 key: "deactivate",
9952 value: function deactivate() {
9953 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
9954 callback.deactivate();
9955 });
9956 }
9957 /**
9958 * Function getType().
9959 *
9960 * Returns type eg: ( event, hook, etc ... ).
9961 *
9962 * @returns {string} type
9963 */
9964
9965 }, {
9966 key: "getType",
9967 value: function getType() {
9968 elementorModules.forceMethodImplementation();
9969 }
9970 }, {
9971 key: "get",
9972 value: function get(id) {
9973 return this.callbacksFlatList[id];
9974 }
9975 /**
9976 * Function getAll().
9977 *
9978 * Return all possible callbacks.
9979 *
9980 * @param {boolean} flat
9981 *
9982 * @returns {{}}
9983 */
9984
9985 }, {
9986 key: "getAll",
9987 value: function getAll() {
9988 var _this2 = this;
9989
9990 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
9991
9992 if (flat) {
9993 return this.callbacksFlatList;
9994 }
9995
9996 var result = {};
9997 (0, _keys.default)(this.callbacks).forEach(function (event) {
9998 if (!result[event]) {
9999 result[event] = [];
10000 }
10001
10002 (0, _keys.default)(_this2.callbacks[event]).forEach(function (command) {
10003 result[event].push({
10004 command: command,
10005 callbacks: _this2.callbacks[event][command]
10006 });
10007 });
10008 });
10009 return result;
10010 }
10011 /**
10012 * Function getCurrent();
10013 *
10014 * Return current command.
10015 *
10016 * @returns {string}
10017 */
10018
10019 }, {
10020 key: "getCurrent",
10021 value: function getCurrent() {
10022 return this.current;
10023 }
10024 /**
10025 * Function getUsedIds().
10026 *
10027 * Returns the current used ids.
10028 *
10029 * @returns {Array}
10030 */
10031
10032 }, {
10033 key: "getUsedIds",
10034 value: function getUsedIds() {
10035 return this.usedIds;
10036 }
10037 /**
10038 * Function getCallbacks().
10039 *
10040 * Get available callbacks for specific event and command.
10041 *
10042 * @param {string} event
10043 * @param {string} command
10044 *
10045 * @returns {(array|boolean)} callbacks
10046 */
10047
10048 }, {
10049 key: "getCallbacks",
10050 value: function getCallbacks(event, command, args) {
10051 var _args$containers = args.containers,
10052 containers = _args$containers === void 0 ? [args.container] : _args$containers,
10053 containerType = containers[0] ? containers[0].type : false;
10054 var callbacks = [];
10055
10056 if (this.callbacks[event] && this.callbacks[event][command]) {
10057 if (containerType && this.callbacks[event][command][containerType]) {
10058 callbacks = callbacks.concat(this.callbacks[event][command][containerType]);
10059 }
10060
10061 if (this.callbacks[event][command].all) {
10062 callbacks = callbacks.concat(this.callbacks[event][command].all);
10063 }
10064 }
10065
10066 if (callbacks.length) {
10067 return callbacks;
10068 }
10069
10070 return false;
10071 }
10072 /**
10073 * function checkEvent().
10074 *
10075 * Validate if the event is available.
10076 *
10077 * @param {string} event
10078 */
10079
10080 }, {
10081 key: "checkEvent",
10082 value: function checkEvent(event) {
10083 if (-1 === (0, _keys.default)(this.callbacks).indexOf(event)) {
10084 throw Error("".concat(this.getType(), ": '").concat(event, "' is not available."));
10085 }
10086 }
10087 /**
10088 * Function checkInstance().
10089 *
10090 * Validate given instance.
10091 *
10092 * @param {HookBase} instance
10093 */
10094
10095 }, {
10096 key: "checkInstance",
10097 value: function checkInstance(instance) {
10098 if (instance.getType() !== this.getType()) {
10099 throw new Error("invalid instance, please use: 'elementor-api/modules/hook-base.js'. ");
10100 }
10101 }
10102 /**
10103 * Function checkId().
10104 *
10105 * Validate if the id is not used before.
10106 *
10107 * @param {string} id
10108 */
10109
10110 }, {
10111 key: "checkId",
10112 value: function checkId(id) {
10113 if (-1 !== this.usedIds.indexOf(id)) {
10114 throw Error("id: '".concat(id, "' is already in use."));
10115 }
10116 }
10117 /**
10118 * Function shouldRun().
10119 *
10120 * Determine if the event should run.
10121 *
10122 * @param {array} callbacks
10123 *
10124 * @return {boolean}
10125 *
10126 * @throw {Error}
10127 */
10128
10129 }, {
10130 key: "shouldRun",
10131 value: function shouldRun(callbacks) {
10132 return !!callbacks && callbacks.length;
10133 }
10134 /**
10135 * Function register().
10136 *
10137 * Register the callback instance.
10138 *
10139 * @param {string} event
10140 * @param {HookBase} instance
10141 *
10142 * @returns {{}} Created callback
10143 */
10144
10145 }, {
10146 key: "register",
10147 value: function register(event, instance) {
10148 var command = instance.getCommand(),
10149 id = instance.getId(),
10150 containerType = instance.getContainerType();
10151 this.checkEvent(event);
10152 this.checkInstance(instance);
10153 this.checkId(id);
10154 return this.registerCallback(id, event, command, instance, containerType);
10155 }
10156 /**
10157 * Function registerCallback().
10158 *
10159 * Register callback.
10160 *
10161 * @param {string} id
10162 * @param {string} event
10163 * @param {string} command
10164 * @param {HookBase} instance
10165 * @param {string} containerType
10166 *
10167 * TODO: Consider replace with typedef.
10168 * @returns {{callback: *, id: *, isActive: boolean}}
10169 */
10170
10171 }, {
10172 key: "registerCallback",
10173 value: function registerCallback(id, event, command, instance, containerType) {
10174 if (!this.callbacks[event][command]) {
10175 this.callbacks[event][command] = [];
10176 } // Save used id(s).
10177
10178
10179 this.usedIds.push(id);
10180
10181 if (!this.callbacks[event][command]) {
10182 this.callbacks[event][command] = {};
10183 } // TODO: Create HookCallback class/type.
10184
10185
10186 var callback = {
10187 id: id,
10188 callback: instance.run.bind(instance),
10189 isActive: true,
10190 activate: function activate() {
10191 this.isActive = true;
10192 },
10193 deactivate: function deactivate() {
10194 this.isActive = false;
10195 }
10196 };
10197
10198 if (containerType) {
10199 if (!this.callbacks[event][command][containerType]) {
10200 this.callbacks[event][command][containerType] = [];
10201 }
10202
10203 this.callbacks[event][command][containerType].push(callback);
10204 } else {
10205 if (!this.callbacks[event][command].all) {
10206 this.callbacks[event][command].all = [];
10207 }
10208
10209 this.callbacks[event][command].all.push(callback);
10210 }
10211
10212 this.callbacksFlatList[callback.id] = callback;
10213 return callback;
10214 }
10215 /**
10216 * Function run().
10217 *
10218 * Run the callbacks.
10219 *
10220 * @param {string} event
10221 * @param {string} command
10222 * @param {{}} args
10223 * @param {*} result
10224 *
10225 * @returns {*}
10226 */
10227
10228 }, {
10229 key: "run",
10230 value: function run(event, command, args) {
10231 var result = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
10232 var callbacks = this.getCallbacks(event, command, args);
10233
10234 if (this.shouldRun(callbacks)) {
10235 this.current = command;
10236 this.onRun(command, args, event);
10237 return this.runCallbacks(event, command, callbacks, args, result);
10238 }
10239
10240 return false;
10241 }
10242 /**
10243 * Function runCallbacks().
10244 *
10245 * Run's the given callbacks.
10246 *
10247 * @param {string} event
10248 * @param {string} command
10249 * @param {array} callbacks
10250 * @param {{}} args
10251 * @param {[]} result
10252 */
10253
10254 }, {
10255 key: "runCallbacks",
10256 value: function runCallbacks(event, command, callbacks, args, result) {
10257 var callbacksResult = [];
10258
10259 for (var i in callbacks) {
10260 var callback = callbacks[i];
10261
10262 if (!callback.isActive) {
10263 continue;
10264 } // If not exist, set zero.
10265
10266
10267 if (undefined === this.depth[event][callback.id]) {
10268 this.depth[event][callback.id] = 0;
10269 }
10270
10271 this.depth[event][callback.id]++; // Prevent recursive hooks.
10272
10273 if (1 === this.depth[event][callback.id]) {
10274 this.onCallback(command, args, event, callback.id);
10275
10276 try {
10277 var callbackResult = this.runCallback(event, callback, args, result);
10278
10279 if (!callbackResult) {
10280 throw Error("Callback failed, event: '".concat(event, "'"));
10281 }
10282
10283 callbacksResult.push(callbackResult);
10284 } catch (e) {
10285 // If its 'Hook-Break' then parent `try {}` will handle it.
10286 if (e instanceof $e.modules.HookBreak) {
10287 throw e;
10288 }
10289
10290 elementorCommon.helpers.consoleError(e);
10291 }
10292 }
10293
10294 this.depth[event][callback.id]--;
10295 }
10296
10297 return callbacksResult;
10298 }
10299 /**
10300 * Function runCallback().
10301 *
10302 * Run's the given callback.
10303 *
10304 * @param {string} event
10305 * @param {{}} callback
10306 * @param {{}} args
10307 * @param {*} result
10308 *
10309 * @returns {*}
10310 *
10311 * @throw {Error}
10312 */
10313
10314 }, {
10315 key: "runCallback",
10316 value: function runCallback(event, callback, args, result) {
10317 // eslint-disable-line no-unused-vars
10318 elementorModules.forceMethodImplementation();
10319 }
10320 /**
10321 * Function onRun().
10322 *
10323 * Called before run a set of callbacks.
10324 *
10325 * @param {string} command
10326 * @param {{}} args
10327 * @param {string} event
10328 *
10329 * @throw {Error}
10330 */
10331
10332 }, {
10333 key: "onRun",
10334 value: function onRun(command, args, event) {
10335 // eslint-disable-line no-unused-vars
10336 elementorModules.forceMethodImplementation();
10337 }
10338 /**
10339 * Function onCallback().
10340 *
10341 * Called before a single callback.
10342 *
10343 * @param {string} command
10344 * @param {{}} args
10345 * @param {string} event
10346 * @param {string} id
10347 *
10348 * @throw {Error}
10349 */
10350
10351 }, {
10352 key: "onCallback",
10353 value: function onCallback(command, args, event, id) {
10354 // eslint-disable-line no-unused-vars
10355 elementorModules.forceMethodImplementation();
10356 }
10357 }]);
10358 return HooksBase;
10359 }(elementorModules.Module);
10360
10361 exports.default = HooksBase;
10362
10363 /***/ }),
10364 /* 412 */,
10365 /* 413 */,
10366 /* 414 */,
10367 /* 415 */,
10368 /* 416 */,
10369 /* 417 */,
10370 /* 418 */,
10371 /* 419 */,
10372 /* 420 */,
10373 /* 421 */,
10374 /* 422 */,
10375 /* 423 */,
10376 /* 424 */,
10377 /* 425 */,
10378 /* 426 */,
10379 /* 427 */,
10380 /* 428 */,
10381 /* 429 */,
10382 /* 430 */,
10383 /* 431 */,
10384 /* 432 */,
10385 /* 433 */,
10386 /* 434 */,
10387 /* 435 */,
10388 /* 436 */,
10389 /* 437 */,
10390 /* 438 */,
10391 /* 439 */,
10392 /* 440 */,
10393 /* 441 */,
10394 /* 442 */,
10395 /* 443 */,
10396 /* 444 */,
10397 /* 445 */,
10398 /* 446 */,
10399 /* 447 */,
10400 /* 448 */,
10401 /* 449 */,
10402 /* 450 */,
10403 /* 451 */,
10404 /* 452 */,
10405 /* 453 */,
10406 /* 454 */,
10407 /* 455 */,
10408 /* 456 */,
10409 /* 457 */,
10410 /* 458 */,
10411 /* 459 */,
10412 /* 460 */,
10413 /* 461 */,
10414 /* 462 */,
10415 /* 463 */,
10416 /* 464 */,
10417 /* 465 */,
10418 /* 466 */,
10419 /* 467 */,
10420 /* 468 */,
10421 /* 469 */,
10422 /* 470 */,
10423 /* 471 */,
10424 /* 472 */,
10425 /* 473 */,
10426 /* 474 */,
10427 /* 475 */,
10428 /* 476 */,
10429 /* 477 */,
10430 /* 478 */,
10431 /* 479 */,
10432 /* 480 */,
10433 /* 481 */,
10434 /* 482 */,
10435 /* 483 */,
10436 /* 484 */,
10437 /* 485 */,
10438 /* 486 */,
10439 /* 487 */,
10440 /* 488 */,
10441 /* 489 */,
10442 /* 490 */,
10443 /* 491 */,
10444 /* 492 */,
10445 /* 493 */,
10446 /* 494 */,
10447 /* 495 */,
10448 /* 496 */,
10449 /* 497 */,
10450 /* 498 */,
10451 /* 499 */,
10452 /* 500 */,
10453 /* 501 */,
10454 /* 502 */,
10455 /* 503 */,
10456 /* 504 */,
10457 /* 505 */,
10458 /* 506 */,
10459 /* 507 */,
10460 /* 508 */,
10461 /* 509 */,
10462 /* 510 */,
10463 /* 511 */,
10464 /* 512 */,
10465 /* 513 */,
10466 /* 514 */,
10467 /* 515 */,
10468 /* 516 */,
10469 /* 517 */,
10470 /* 518 */,
10471 /* 519 */,
10472 /* 520 */,
10473 /* 521 */,
10474 /* 522 */,
10475 /* 523 */,
10476 /* 524 */,
10477 /* 525 */,
10478 /* 526 */,
10479 /* 527 */,
10480 /* 528 */,
10481 /* 529 */,
10482 /* 530 */,
10483 /* 531 */,
10484 /* 532 */,
10485 /* 533 */,
10486 /* 534 */,
10487 /* 535 */,
10488 /* 536 */,
10489 /* 537 */,
10490 /* 538 */,
10491 /* 539 */,
10492 /* 540 */,
10493 /* 541 */,
10494 /* 542 */,
10495 /* 543 */,
10496 /* 544 */,
10497 /* 545 */,
10498 /* 546 */,
10499 /* 547 */,
10500 /* 548 */,
10501 /* 549 */,
10502 /* 550 */,
10503 /* 551 */,
10504 /* 552 */,
10505 /* 553 */,
10506 /* 554 */,
10507 /* 555 */,
10508 /* 556 */,
10509 /* 557 */,
10510 /* 558 */,
10511 /* 559 */,
10512 /* 560 */,
10513 /* 561 */,
10514 /* 562 */,
10515 /* 563 */,
10516 /* 564 */,
10517 /* 565 */,
10518 /* 566 */,
10519 /* 567 */,
10520 /* 568 */,
10521 /* 569 */,
10522 /* 570 */,
10523 /* 571 */,
10524 /* 572 */,
10525 /* 573 */,
10526 /* 574 */,
10527 /* 575 */,
10528 /* 576 */,
10529 /* 577 */,
10530 /* 578 */,
10531 /* 579 */,
10532 /* 580 */,
10533 /* 581 */,
10534 /* 582 */,
10535 /* 583 */,
10536 /* 584 */,
10537 /* 585 */,
10538 /* 586 */,
10539 /* 587 */,
10540 /* 588 */,
10541 /* 589 */,
10542 /* 590 */,
10543 /* 591 */,
10544 /* 592 */,
10545 /* 593 */,
10546 /* 594 */,
10547 /* 595 */,
10548 /* 596 */,
10549 /* 597 */,
10550 /* 598 */,
10551 /* 599 */,
10552 /* 600 */,
10553 /* 601 */,
10554 /* 602 */,
10555 /* 603 */,
10556 /* 604 */,
10557 /* 605 */,
10558 /* 606 */,
10559 /* 607 */,
10560 /* 608 */,
10561 /* 609 */,
10562 /* 610 */,
10563 /* 611 */,
10564 /* 612 */,
10565 /* 613 */,
10566 /* 614 */,
10567 /* 615 */,
10568 /* 616 */,
10569 /* 617 */,
10570 /* 618 */,
10571 /* 619 */,
10572 /* 620 */,
10573 /* 621 */,
10574 /* 622 */,
10575 /* 623 */,
10576 /* 624 */,
10577 /* 625 */,
10578 /* 626 */
10579 /***/ (function(module, exports, __webpack_require__) {
10580
10581 "use strict";
10582
10583
10584 var _interopRequireDefault = __webpack_require__(0);
10585
10586 var _Object$defineProperty = __webpack_require__(1);
10587
10588 _Object$defineProperty(exports, "__esModule", {
10589 value: true
10590 });
10591
10592 exports.default = void 0;
10593
10594 var _stringify = _interopRequireDefault(__webpack_require__(204));
10595
10596 var _keys = _interopRequireDefault(__webpack_require__(23));
10597
10598 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10599
10600 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10601
10602 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10603
10604 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10605
10606 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
10607 (0, _inherits2.default)(_default, _elementorModules$Mod);
10608
10609 var _super = (0, _createSuper2.default)(_default);
10610
10611 function _default() {
10612 (0, _classCallCheck2.default)(this, _default);
10613 return _super.apply(this, arguments);
10614 }
10615
10616 (0, _createClass2.default)(_default, [{
10617 key: "get",
10618 value: function get(key, options) {
10619 options = options || {};
10620 var storage;
10621
10622 try {
10623 storage = options.session ? sessionStorage : localStorage;
10624 } catch (e) {
10625 return key ? undefined : {};
10626 }
10627
10628 var elementorStorage = storage.getItem('elementor');
10629
10630 if (elementorStorage) {
10631 elementorStorage = JSON.parse(elementorStorage);
10632 } else {
10633 elementorStorage = {};
10634 }
10635
10636 if (!elementorStorage.__expiration) {
10637 elementorStorage.__expiration = {};
10638 }
10639
10640 var expiration = elementorStorage.__expiration;
10641 var expirationToCheck = [];
10642
10643 if (key) {
10644 if (expiration[key]) {
10645 expirationToCheck = [key];
10646 }
10647 } else {
10648 expirationToCheck = (0, _keys.default)(expiration);
10649 }
10650
10651 var entryExpired = false;
10652 expirationToCheck.forEach(function (expirationKey) {
10653 if (new Date(expiration[expirationKey]) < new Date()) {
10654 delete elementorStorage[expirationKey];
10655 delete expiration[expirationKey];
10656 entryExpired = true;
10657 }
10658 });
10659
10660 if (entryExpired) {
10661 this.save(elementorStorage, options.session);
10662 }
10663
10664 if (key) {
10665 return elementorStorage[key];
10666 }
10667
10668 return elementorStorage;
10669 }
10670 }, {
10671 key: "set",
10672 value: function set(key, value, options) {
10673 options = options || {};
10674 var elementorStorage = this.get(null, options);
10675 elementorStorage[key] = value;
10676
10677 if (options.lifetimeInSeconds) {
10678 var date = new Date();
10679 date.setTime(date.getTime() + options.lifetimeInSeconds * 1000);
10680 elementorStorage.__expiration[key] = date.getTime();
10681 }
10682
10683 this.save(elementorStorage, options.session);
10684 }
10685 }, {
10686 key: "save",
10687 value: function save(object, session) {
10688 var storage;
10689
10690 try {
10691 storage = session ? sessionStorage : localStorage;
10692 } catch (e) {
10693 return;
10694 }
10695
10696 storage.setItem('elementor', (0, _stringify.default)(object));
10697 }
10698 }]);
10699 return _default;
10700 }(elementorModules.Module);
10701
10702 exports.default = _default;
10703
10704 /***/ }),
10705 /* 627 */
10706 /***/ (function(module, exports, __webpack_require__) {
10707
10708 "use strict";
10709
10710
10711 var _interopRequireDefault = __webpack_require__(0);
10712
10713 var _Object$defineProperty = __webpack_require__(1);
10714
10715 _Object$defineProperty(exports, "__esModule", {
10716 value: true
10717 });
10718
10719 exports.default = void 0;
10720
10721 __webpack_require__(58);
10722
10723 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10724
10725 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10726
10727 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
10728
10729 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10730
10731 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10732
10733 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
10734
10735 var CommandsBackwardsCompatibility = /*#__PURE__*/function (_elementorModules$Mod) {
10736 (0, _inherits2.default)(CommandsBackwardsCompatibility, _elementorModules$Mod);
10737
10738 var _super = (0, _createSuper2.default)(CommandsBackwardsCompatibility);
10739
10740 function CommandsBackwardsCompatibility() {
10741 var _this;
10742
10743 (0, _classCallCheck2.default)(this, CommandsBackwardsCompatibility);
10744
10745 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10746 args[_key] = arguments[_key];
10747 }
10748
10749 _this = _super.call.apply(_super, [this].concat(args));
10750 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "on", function (eventName, callback) {
10751 if ('run' === eventName) {
10752 var componentName = _this.getConstructorID(); // Regex takes the first letter and convert it to lower case.
10753
10754
10755 componentName = componentName.replace(/^./, function (val) {
10756 return val.toLowerCase();
10757 });
10758 elementorCommon.helpers.softDeprecated("$e.".concat(componentName, ".on( 'run', ... )"), '3.0.0', "$e.".concat(componentName, ".on( 'run:before', ... )"));
10759
10760 _this.onOrig('run:before', callback);
10761
10762 return;
10763 }
10764
10765 _this.onOrig(eventName, callback);
10766 });
10767 return _this;
10768 }
10769
10770 (0, _createClass2.default)(CommandsBackwardsCompatibility, [{
10771 key: "__construct",
10772 value: function __construct() {
10773 this.onOrig = this.on;
10774 }
10775 }]);
10776 return CommandsBackwardsCompatibility;
10777 }(elementorModules.Module);
10778
10779 exports.default = CommandsBackwardsCompatibility;
10780
10781 /***/ }),
10782 /* 628 */
10783 /***/ (function(module, exports, __webpack_require__) {
10784
10785 "use strict";
10786
10787
10788 var _interopRequireDefault = __webpack_require__(0);
10789
10790 var _Object$defineProperty = __webpack_require__(1);
10791
10792 _Object$defineProperty(exports, "__esModule", {
10793 value: true
10794 });
10795
10796 exports.default = exports.ALLMETHODS = exports.DELETABLE = exports.EDITABLE = exports.CREATABLE = exports.READABLE = void 0;
10797
10798 var _regenerator = _interopRequireDefault(__webpack_require__(89));
10799
10800 __webpack_require__(69);
10801
10802 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(90));
10803
10804 var _promise = _interopRequireDefault(__webpack_require__(133));
10805
10806 var _stringify = _interopRequireDefault(__webpack_require__(204));
10807
10808 __webpack_require__(295);
10809
10810 __webpack_require__(182);
10811
10812 __webpack_require__(72);
10813
10814 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104));
10815
10816 var _entries = _interopRequireDefault(__webpack_require__(87));
10817
10818 __webpack_require__(26);
10819
10820 __webpack_require__(58);
10821
10822 __webpack_require__(80);
10823
10824 __webpack_require__(141);
10825
10826 __webpack_require__(188);
10827
10828 var _values = _interopRequireDefault(__webpack_require__(54));
10829
10830 var _assign = _interopRequireDefault(__webpack_require__(150));
10831
10832 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10833
10834 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10835
10836 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
10837
10838 var _get2 = _interopRequireDefault(__webpack_require__(25));
10839
10840 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
10841
10842 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10843
10844 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10845
10846 var _argsObject = _interopRequireDefault(__webpack_require__(223));
10847
10848 var _commands = _interopRequireDefault(__webpack_require__(341));
10849
10850 var _cache = _interopRequireDefault(__webpack_require__(629));
10851
10852 /**
10853 * @typedef {('create'|'delete'|'get'|'update')} DataTypes
10854 */
10855
10856 /**
10857 * @typedef {{}} RequestData
10858 * @property {ComponentBase} component
10859 * @property {string} command
10860 * @property {string} endpoint
10861 * @property {DataTypes} [type]
10862 * @property {{}} [args]
10863 * @property {number} [timestamp]
10864 * @property {('hit'|'miss')} [cache]
10865 */
10866
10867 /**
10868 * @typedef {object} ExtractedCommand
10869 * @property {string} command
10870 * @property {object} args
10871 */
10872 // TODO: Return it from the server. Original at WP_REST_Server.
10873 var READABLE = ['GET'],
10874 CREATABLE = ['POST'],
10875 EDITABLE = ['POST', 'PUT', 'PATCH'],
10876 DELETABLE = ['DELETE'],
10877 ALLMETHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
10878 exports.ALLMETHODS = ALLMETHODS;
10879 exports.DELETABLE = DELETABLE;
10880 exports.EDITABLE = EDITABLE;
10881 exports.CREATABLE = CREATABLE;
10882 exports.READABLE = READABLE;
10883
10884 var Data = /*#__PURE__*/function (_Commands) {
10885 (0, _inherits2.default)(Data, _Commands);
10886
10887 var _super = (0, _createSuper2.default)(Data);
10888
10889 function Data() {
10890 var _this;
10891
10892 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10893 (0, _classCallCheck2.default)(this, Data);
10894 _this = _super.call(this, args);
10895 _this.args = (0, _assign.default)(args, {
10896 namespace: 'elementor',
10897 version: '1'
10898 });
10899 _this.cache = new _cache.default((0, _assertThisInitialized2.default)(_this));
10900 _this.validatedRequests = {};
10901 _this.commandFormats = {};
10902 _this.baseEndpointAddress = '';
10903 var _this$args = _this.args,
10904 namespace = _this$args.namespace,
10905 version = _this$args.version;
10906 _this.baseEndpointAddress = "".concat(elementorCommon.config.urls.rest).concat(namespace, "/v").concat(version, "/");
10907 return _this;
10908 }
10909 /**
10910 * Function getHTTPMethod().
10911 *
10912 * Returns HTTP Method by type.
10913 *
10914 * @param {DataTypes} type
10915 *
10916 * @return {string|boolean}
10917 */
10918
10919
10920 (0, _createClass2.default)(Data, [{
10921 key: "getHTTPMethod",
10922 value: function getHTTPMethod(type) {
10923 switch (type) {
10924 case 'create':
10925 return 'POST';
10926
10927 case 'delete':
10928 return 'DELETE';
10929
10930 case 'get':
10931 return 'GET';
10932
10933 case 'update':
10934 return 'PUT';
10935 }
10936
10937 return false;
10938 }
10939 /**
10940 * Function getAllowedMethods().
10941 *
10942 * Returns allowed HTTP methods by type.
10943 *
10944 * @param {DataTypes} type
10945 *
10946 * @return {[string]|boolean}
10947 */
10948
10949 }, {
10950 key: "getAllowedMethods",
10951 value: function getAllowedMethods(type) {
10952 switch (type) {
10953 case 'create':
10954 return CREATABLE;
10955
10956 case 'delete':
10957 return DELETABLE;
10958
10959 case 'get':
10960 return READABLE;
10961
10962 case 'update':
10963 return EDITABLE;
10964 }
10965
10966 return false;
10967 }
10968 /**
10969 * Function commandToEndpoint().
10970 *
10971 * Convert command to endpoint.
10972 *
10973 * For example `component/command/{arg}` => `controller/endpoint/8`.
10974 *
10975 * TODO: Find a better solution.
10976 *
10977 * @param {string} command
10978 * @param {{}} args
10979 * @param {string|null} [format]
10980 *
10981 * @returns {string} endpoint
10982 */
10983
10984 }, {
10985 key: "commandToEndpoint",
10986 value: function commandToEndpoint(command, args) {
10987 var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
10988 var endpoint = command;
10989 var argsQueryLength = (args === null || args === void 0 ? void 0 : args.query) ? (0, _values.default)(args.query).length : 0;
10990
10991 if (argsQueryLength) {
10992 if (format && format.includes('/{')) {
10993 // Means command includes magic query arguments ( controller/endpoint/{whatever} ).
10994 var magicParams = format.split('/').filter(function (str) {
10995 return '{' === str.charAt(0);
10996 });
10997 magicParams.forEach(function (param) {
10998 // Remove the '{', '}'.
10999 param = param.replace('{', '');
11000 param = param.replace('}', '');
11001 var formatted = (0, _entries.default)(args.query).find(function (_ref) {
11002 var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
11003 key = _ref2[0];
11004
11005 return key === param;
11006 });
11007
11008 if (!formatted) {
11009 return;
11010 }
11011
11012 var key = formatted[0],
11013 value = formatted[1].toString(); // Replace magic params with values.
11014
11015 format = format.replace(new RegExp('{' + param + '}', 'g'), value);
11016 delete args.query[key];
11017 });
11018 endpoint = format;
11019 }
11020 } else if (format) {
11021 // No magic params, but still format,
11022 endpoint = format;
11023 } // If requested magic param does not exist in args, need to remove it to have fixed endpoint.
11024 // eg: 'documents/{documentId}/elements/{elementId}' and args { documentId: 4123 }.
11025 // result: 'documents/4123/elements'
11026
11027
11028 if (format && endpoint.includes('/{')) {
11029 endpoint = endpoint.substring(0, endpoint.indexOf('/{'));
11030 }
11031
11032 if (args.query && (0, _values.default)(args.query).length) {
11033 // Sorting since the endpoint later will be used as key to store the cache.
11034 var queryEntries = (0, _entries.default)(args.query).sort(function (_ref3, _ref4) {
11035 var _ref5 = (0, _slicedToArray2.default)(_ref3, 1),
11036 aKey = _ref5[0];
11037
11038 var _ref6 = (0, _slicedToArray2.default)(_ref4, 1),
11039 bKey = _ref6[0];
11040
11041 return aKey - bKey;
11042 } // Sort by param name.
11043 ); // `args.query` will become a part of GET params.
11044
11045 if (queryEntries.length) {
11046 endpoint += '?';
11047 queryEntries.forEach(function (_ref7) {
11048 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
11049 name = _ref8[0],
11050 value = _ref8[1];
11051
11052 endpoint += name + '=' + value + '&';
11053 });
11054 } // If last character is '&' remove it.
11055
11056
11057 endpoint = endpoint.replace(/&$/, '');
11058 }
11059
11060 return endpoint;
11061 }
11062 /**
11063 * Function commandExtractArgs().
11064 *
11065 * If the command have query convert it to args.
11066 *
11067 * @param {string} command
11068 * @param {object} args
11069 *
11070 * @returns {ExtractedCommand} command
11071 */
11072
11073 }, {
11074 key: "commandExtractArgs",
11075 value: function commandExtractArgs(command) {
11076 var _command;
11077
11078 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11079
11080 if ((_command = command) === null || _command === void 0 ? void 0 : _command.includes('?')) {
11081 if (!args.query) {
11082 args.query = {};
11083 }
11084
11085 var commandParts = command.split('?'),
11086 pureCommand = commandParts[0],
11087 queryString = commandParts[1],
11088 query = new URLSearchParams(queryString);
11089 (0, _assign.default)(args.query, Object.fromEntries(query));
11090 command = pureCommand;
11091 }
11092
11093 return {
11094 command: command,
11095 args: args
11096 };
11097 }
11098 /**
11099 * Function validateRequestData().
11100 *
11101 * Validate request data requirements.
11102 *
11103 * @param {RequestData} requestData
11104 * @param {boolean} [requireArgsData]
11105 */
11106
11107 }, {
11108 key: "validateRequestData",
11109 value: function validateRequestData(requestData) {
11110 var requireArgsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
11111
11112 // Do not validate if its already valid.
11113 if (requestData.timestamp && this.validatedRequests[requestData.timestamp]) {
11114 return;
11115 }
11116
11117 var argsObject = new _argsObject.default(requestData);
11118 argsObject.requireArgument('component');
11119 argsObject.requireArgumentType('command', 'string');
11120 argsObject.requireArgumentType('endpoint', 'string');
11121
11122 if (requireArgsData) {
11123 argsObject.requireArgumentType('data', 'object', requestData.args);
11124 } // Ensure timestamp.
11125
11126
11127 if (!requestData.timestamp) {
11128 requestData.timestamp = new Date().getTime();
11129 }
11130
11131 this.validatedRequests[requestData.timestamp] = true;
11132 }
11133 /**
11134 * Function prepareHeaders().
11135 *
11136 * @param {RequestData} requestData
11137 *
11138 * @return {{}} params
11139 */
11140
11141 }, {
11142 key: "prepareHeaders",
11143 value: function prepareHeaders(requestData) {
11144 /* global wpApiSettings */
11145 var type = requestData.type,
11146 nonce = wpApiSettings.nonce,
11147 params = {
11148 credentials: 'include' // cookies is required for wp reset.
11149
11150 },
11151 headers = {
11152 'X-WP-Nonce': nonce
11153 };
11154 /**
11155 * Translate:
11156 * 'create, delete, get, update' to HTTP Methods:
11157 * 'GET, POST, PUT, PATCH, DELETE'
11158 */
11159
11160 var allowedMethods = this.getAllowedMethods(type),
11161 method = this.getHTTPMethod(type);
11162
11163 if ('GET' === method) {
11164 (0, _assign.default)(params, {
11165 headers: headers
11166 });
11167 } else if (allowedMethods) {
11168 var _requestData$args;
11169
11170 if (['POST', 'PUT'].includes(method) && !((_requestData$args = requestData.args) === null || _requestData$args === void 0 ? void 0 : _requestData$args.data)) {
11171 throw Error('Invalid requestData.args.data');
11172 }
11173
11174 (0, _assign.default)(headers, {
11175 'Content-Type': 'application/json'
11176 });
11177 (0, _assign.default)(params, {
11178 method: method,
11179 headers: headers,
11180 body: (0, _stringify.default)(requestData.args.data)
11181 });
11182 } else {
11183 throw Error("Invalid type: '".concat(type, "'"));
11184 }
11185
11186 return params;
11187 }
11188 /**
11189 * Function fetch().
11190 *
11191 * @param {RequestData} requestData
11192 * @param {function(input: RequestInfo, init?) : Promise<Response> } [fetchAPI]
11193 *
11194 * @return {{}} params
11195 */
11196
11197 }, {
11198 key: "fetch",
11199 value: function fetch(requestData) {
11200 var _requestData$args$opt,
11201 _this2 = this;
11202
11203 var fetchAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.fetch;
11204 requestData.cache = 'miss';
11205 var params = this.prepareHeaders(requestData),
11206 refresh = (_requestData$args$opt = requestData.args.options) === null || _requestData$args$opt === void 0 ? void 0 : _requestData$args$opt.refresh,
11207 getCache = 'get' === requestData.type && !refresh,
11208 saveCache = ['create', 'get'].includes(requestData.type) && !refresh;
11209
11210 if (getCache) {
11211 var cachePromise = this.cache.getAsync(requestData);
11212
11213 if (cachePromise) {
11214 return cachePromise;
11215 }
11216 }
11217
11218 return new _promise.default( /*#__PURE__*/function () {
11219 var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {
11220 var request, response;
11221 return _regenerator.default.wrap(function _callee2$(_context2) {
11222 while (1) {
11223 switch (_context2.prev = _context2.next) {
11224 case 0:
11225 _context2.prev = 0;
11226 request = fetchAPI(_this2.baseEndpointAddress + requestData.endpoint, params);
11227 _context2.next = 4;
11228 return request.then( /*#__PURE__*/function () {
11229 var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_response) {
11230 return _regenerator.default.wrap(function _callee$(_context) {
11231 while (1) {
11232 switch (_context.prev = _context.next) {
11233 case 0:
11234 if (_response.ok) {
11235 _context.next = 6;
11236 break;
11237 }
11238
11239 if (!_response.headers.get('content-type').includes('application/json')) {
11240 _context.next = 5;
11241 break;
11242 }
11243
11244 _context.next = 4;
11245 return _response.json();
11246
11247 case 4:
11248 _response = _context.sent;
11249
11250 case 5:
11251 throw _response;
11252
11253 case 6:
11254 return _context.abrupt("return", _response.json());
11255
11256 case 7:
11257 case "end":
11258 return _context.stop();
11259 }
11260 }
11261 }, _callee);
11262 }));
11263
11264 return function (_x3) {
11265 return _ref10.apply(this, arguments);
11266 };
11267 }());
11268
11269 case 4:
11270 response = _context2.sent;
11271
11272 // At this point, it got the resolved response from remote.
11273 // So load cache, and resolve it.
11274 if (saveCache) {
11275 _this2.cache.set(requestData, response);
11276 }
11277
11278 resolve(response);
11279 _context2.next = 12;
11280 break;
11281
11282 case 9:
11283 _context2.prev = 9;
11284 _context2.t0 = _context2["catch"](0);
11285 reject(_context2.t0);
11286
11287 case 12:
11288 case "end":
11289 return _context2.stop();
11290 }
11291 }
11292 }, _callee2, null, [[0, 9]]);
11293 }));
11294
11295 return function (_x, _x2) {
11296 return _ref9.apply(this, arguments);
11297 };
11298 }());
11299 }
11300 /**
11301 * Function getCache().
11302 *
11303 * @param {ComponentBase} component
11304 * @param {string} command
11305 * @param {{}} query
11306 *
11307 * @returns {{}}
11308 */
11309
11310 }, {
11311 key: "getCache",
11312 value: function getCache(component, command) {
11313 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11314 var args = {
11315 query: query
11316 };
11317 return this.cache.get({
11318 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11319 component: component,
11320 command: command,
11321 args: args
11322 });
11323 }
11324 /**
11325 * Function setCache().
11326 *
11327 * @param {ComponentBase} component
11328 * @param {string} command
11329 * @param {{}} query
11330 * @param {*} data
11331 */
11332
11333 }, {
11334 key: "setCache",
11335 value: function setCache(component, command, query, data) {
11336 var args = {
11337 query: query
11338 };
11339 this.cache.set({
11340 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11341 component: component,
11342 command: command,
11343 args: args
11344 }, data);
11345 }
11346 /**
11347 * Function updateCache().
11348 *
11349 * The difference between 'setCache' and 'updateCache' is update will only modify exist values.
11350 * and 'setCache' will create or update.
11351 *
11352 * @param {ComponentBase} component
11353 * @param {string} command
11354 * @param {{}} query
11355 * @param {*} data
11356 */
11357
11358 }, {
11359 key: "updateCache",
11360 value: function updateCache(component, command, query, data) {
11361 var args = {
11362 query: query,
11363 data: data
11364 };
11365 this.cache.update({
11366 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11367 component: component,
11368 command: command,
11369 args: args
11370 });
11371 }
11372 /**
11373 * Function deleteCache().
11374 *
11375 * @param {ComponentBase} component
11376 * @param {string} command
11377 * @param {{}} query
11378 */
11379
11380 }, {
11381 key: "deleteCache",
11382 value: function deleteCache(component, command) {
11383 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11384 var args = {
11385 query: query
11386 };
11387 this.cache.delete({
11388 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11389 component: component,
11390 command: command,
11391 args: args
11392 });
11393 }
11394 /**
11395 * Function registerFormat().
11396 *
11397 * Register's format for each command.
11398 *
11399 * @param {string} command
11400 * @param {string} format
11401 */
11402
11403 }, {
11404 key: "registerFormat",
11405 value: function registerFormat(command, format) {
11406 this.commandFormats[command] = format;
11407 }
11408 }, {
11409 key: "create",
11410 value: function create(command, data) {
11411 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11412 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11413 return this.run('create', command, {
11414 query: query,
11415 options: options,
11416 data: data
11417 });
11418 }
11419 }, {
11420 key: "delete",
11421 value: function _delete(command) {
11422 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11423 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11424 return this.run('delete', command, {
11425 query: query,
11426 options: options
11427 });
11428 }
11429 }, {
11430 key: "get",
11431 value: function get(command) {
11432 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11433 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11434 return this.run('get', command, {
11435 query: query,
11436 options: options
11437 });
11438 }
11439 }, {
11440 key: "update",
11441 value: function update(command, data) {
11442 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11443 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11444 return this.run('update', command, {
11445 query: query,
11446 options: options,
11447 data: data
11448 });
11449 }
11450 /**
11451 * @param {ComponentBase} component
11452 * @param {string} command
11453 * @param callback
11454 */
11455
11456 }, {
11457 key: "register",
11458 value: function register(component, command, callback) {
11459 (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "register", this).call(this, component, command, callback);
11460 var fullCommandName = component.getNamespace() + '/' + command,
11461 commandInstance = $e.commands.getCommandClass(fullCommandName),
11462 format = (commandInstance === null || commandInstance === void 0 ? void 0 : commandInstance.getEndpointFormat) ? commandInstance.getEndpointFormat() : false;
11463
11464 if (format) {
11465 $e.data.registerFormat(fullCommandName, format);
11466 }
11467 }
11468 /**
11469 * TODO: Add JSDOC typedef for args ( query and options ).
11470 *
11471 * @param {DataTypes} type
11472 * @param {string} command
11473 * @param {{}} args
11474 *
11475 * @return {*}
11476 */
11477
11478 }, {
11479 key: "run",
11480 value: function run(type, command, args) {
11481 args.options.type = type;
11482
11483 var _this$commandExtractA = this.commandExtractArgs(command, args);
11484
11485 command = _this$commandExtractA.command;
11486 args = _this$commandExtractA.args;
11487 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "run", this).call(this, command, args);
11488 }
11489 }, {
11490 key: "error",
11491 value: function error(message) {
11492 throw Error('Data commands: ' + message);
11493 }
11494 }]);
11495 return Data;
11496 }(_commands.default);
11497
11498 exports.default = Data;
11499
11500 /***/ }),
11501 /* 629 */
11502 /***/ (function(module, exports, __webpack_require__) {
11503
11504 "use strict";
11505
11506
11507 var _interopRequireDefault = __webpack_require__(0);
11508
11509 var _Object$defineProperty = __webpack_require__(1);
11510
11511 _Object$defineProperty(exports, "__esModule", {
11512 value: true
11513 });
11514
11515 exports.default = void 0;
11516
11517 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
11518
11519 var _keys = _interopRequireDefault(__webpack_require__(23));
11520
11521 var _values = _interopRequireDefault(__webpack_require__(54));
11522
11523 __webpack_require__(141);
11524
11525 __webpack_require__(188);
11526
11527 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104));
11528
11529 var _entries = _interopRequireDefault(__webpack_require__(87));
11530
11531 var _assign = _interopRequireDefault(__webpack_require__(150));
11532
11533 __webpack_require__(80);
11534
11535 __webpack_require__(58);
11536
11537 var _regenerator = _interopRequireDefault(__webpack_require__(89));
11538
11539 __webpack_require__(69);
11540
11541 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(90));
11542
11543 var _promise = _interopRequireDefault(__webpack_require__(133));
11544
11545 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11546
11547 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11548
11549 var _localStorage = _interopRequireDefault(__webpack_require__(630));
11550
11551 /**
11552 * TODO: Search common logic, create functions to reduce code size.
11553 */
11554 var Cache = /*#__PURE__*/function () {
11555 /**
11556 * Function constructor().
11557 *
11558 * Create cache.
11559 *
11560 * @param {Data} manager
11561 */
11562 function Cache(manager) {
11563 (0, _classCallCheck2.default)(this, Cache);
11564 this.manager = manager;
11565 this.storage = new _localStorage.default();
11566 }
11567 /**
11568 * Function getAsync().
11569 *
11570 * Receive from cache. the difference between getAsync() and get() is that receive return it as promise...
11571 * to fake fetch mechanism.
11572 *
11573 * @param {RequestData} requestData
11574 *
11575 * @return {(Promise|boolean)}
11576 */
11577
11578
11579 (0, _createClass2.default)(Cache, [{
11580 key: "getAsync",
11581 value: function getAsync(requestData) {
11582 var data = this.get(requestData);
11583
11584 if (null !== data) {
11585 // If data comes from cache, add 'cache = hit' to requestData.
11586 requestData.cache = 'hit';
11587 return new _promise.default( /*#__PURE__*/function () {
11588 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve) {
11589 return _regenerator.default.wrap(function _callee$(_context) {
11590 while (1) {
11591 switch (_context.prev = _context.next) {
11592 case 0:
11593 resolve(data);
11594
11595 case 1:
11596 case "end":
11597 return _context.stop();
11598 }
11599 }
11600 }, _callee);
11601 }));
11602
11603 return function (_x) {
11604 return _ref.apply(this, arguments);
11605 };
11606 }());
11607 } // TODO: Check if possible, always return promise and reject it.
11608
11609
11610 return false;
11611 }
11612 /**
11613 * Function set().
11614 *
11615 * set data to cache.
11616 *
11617 * The difference between set() and update() is that set, will modify the data anyway...
11618 * when update() will only modify exist objects/values.
11619 *
11620 * @param {RequestData} requestData
11621 * @param {*} data
11622 */
11623
11624 }, {
11625 key: "set",
11626 value: function set(requestData, data) {
11627 $e.data.validateRequestData(requestData);
11628 var componentName = requestData.component.getNamespace(),
11629 pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11630 pureEndpointParts = pureEndpoint.split('/');
11631 var newData = {}; // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'load(): deep'.
11632 // Analyze reaming endpoint.
11633
11634 if (pureEndpointParts.length && pureEndpoint !== componentName) {
11635 // Using reaming endpoint parts, to build new data object.
11636 var result = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11637 accumulator[pureEndpointPart] = {};
11638 return accumulator[pureEndpointPart];
11639 }, newData); // 'result' is equal to 'newData' with a deeper pointer, build based on 'pureEndpointParts' ( will effect newData ).
11640
11641 (0, _assign.default)(result, data);
11642 } else {
11643 newData = data;
11644 }
11645
11646 var oldData = this.storage.getItem(componentName); // When have old data, merge it recursively with newData using jQuery.extend().
11647
11648 if (oldData !== null) {
11649 newData = jQuery.extend(true, oldData, newData);
11650 }
11651
11652 this.storage.setItem(componentName, newData);
11653 }
11654 /**
11655 * Function get().
11656 *
11657 * Get from exist storage.
11658 *
11659 * @param {RequestData} requestData
11660 *
11661 * @return {{}}
11662 */
11663
11664 }, {
11665 key: "get",
11666 value: function get(requestData) {
11667 $e.data.validateRequestData(requestData);
11668 var componentName = requestData.component.getNamespace(),
11669 componentData = this.storage.getItem(componentName);
11670
11671 if (componentData !== null) {
11672 if (componentName === requestData.endpoint) {
11673 return componentData;
11674 } // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'get(): complex'.
11675 // Analyze reaming endpoint (Using reduce over endpoint parts, build the right index).
11676
11677
11678 var pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
11679 pureEndpointParts = pureEndpoint.split('/'),
11680 result = pureEndpointParts.reduce(function (accumulator, endpointPart) {
11681 if (accumulator && accumulator[endpointPart]) {
11682 return accumulator[endpointPart];
11683 }
11684 }, componentData); // Since $e.data.cache.receive will reject only if null is the result.
11685
11686 return result || null;
11687 }
11688
11689 return null;
11690 }
11691 /**
11692 * Function update().
11693 *
11694 * Update only already exist storage, runs over all storage
11695 *
11696 * @param {RequestData} requestData
11697 *
11698 * @return {boolean} is updated
11699 */
11700
11701 }, {
11702 key: "update",
11703 value: function update(requestData) {
11704 $e.data.validateRequestData(requestData, true);
11705 var endpoint = requestData.endpoint;
11706 var response = {}; // Simulate response from cache.
11707
11708 (0, _entries.default)(this.storage.getAll()).forEach(function (_ref2) {
11709 var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
11710 endpointKey = _ref3[0],
11711
11712 /*string*/
11713 endpointValue = _ref3[1];
11714
11715 if (endpointValue && endpoint.includes(endpointKey)) {
11716 // Assuming it is a specific endpoint.
11717 var oldData = endpointValue,
11718 pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
11719 pureEndpointParts = pureEndpoint.split('/'),
11720 isComponentUpdate = 1 === pureEndpointParts.length && endpointKey === requestData.endpoint && endpointKey === requestData.component.getNamespace(); // Component update or specific update?
11721
11722 if (isComponentUpdate) {
11723 response = jQuery.extend(true, oldData, requestData.args.data);
11724 } else {
11725 var oldSpecificData = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11726 return accumulator[pureEndpointPart];
11727 }, oldData);
11728 response = jQuery.extend(true, oldSpecificData, requestData.args.data);
11729 }
11730 }
11731 }); // If response not found.
11732
11733 if (0 === (0, _values.default)(response).length) {
11734 return false;
11735 } // Update cache.
11736
11737
11738 this.set(requestData, response);
11739 return true;
11740 }
11741 /**
11742 * Function delete().
11743 *
11744 * Delete endpoint from storage.
11745 *
11746 * @param {RequestData} requestData
11747 *
11748 * @return {boolean} is deleted
11749 */
11750
11751 }, {
11752 key: "delete",
11753 value: function _delete(requestData) {
11754 $e.data.validateRequestData(requestData);
11755 var result = false;
11756 var componentName = requestData.component.getNamespace();
11757
11758 if (componentName !== requestData.endpoint) {
11759 var oldData = this.storage.getItem(componentName),
11760 newData = {};
11761
11762 if (null === oldData) {
11763 return false;
11764 }
11765
11766 var pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11767 pureEndpointParts = pureEndpoint.split('/'),
11768 lastEndpointPart = pureEndpointParts[pureEndpointParts.length - 1];
11769 pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11770 if (pureEndpointPart === lastEndpointPart) {
11771 // Null, means delete.
11772 accumulator[pureEndpointPart] = null;
11773 } else {
11774 accumulator[pureEndpointPart] = {};
11775 }
11776
11777 return accumulator[pureEndpointPart];
11778 }, newData);
11779
11780 if ((0, _keys.default)(oldData).length) {
11781 var deleteKeys = function deleteKeys(target, nullsObject) {
11782 if (nullsObject) {
11783 (0, _keys.default)(nullsObject).forEach(function (key) {
11784 if (nullsObject[key] && 'object' === (0, _typeof2.default)(nullsObject[key])) {
11785 deleteKeys(target[key], nullsObject[key]);
11786 } else if (null === nullsObject[key]) {
11787 delete target[key];
11788 result = true;
11789 }
11790 });
11791 } else {
11792 // Means need to clear all the object.
11793 (0, _keys.default)(target).forEach(function (key) {
11794 return delete target[key];
11795 });
11796 }
11797
11798 return target;
11799 };
11800
11801 this.storage.setItem(componentName, deleteKeys(oldData, newData));
11802 }
11803 } else {
11804 for (var key in this.storage.getAll()) {
11805 if (key === requestData.endpoint) {
11806 this.storage.removeItem(requestData.endpoint);
11807 result = true;
11808 break;
11809 }
11810 }
11811 }
11812
11813 return result;
11814 }
11815 }]);
11816 return Cache;
11817 }();
11818
11819 exports.default = Cache;
11820
11821 /***/ }),
11822 /* 630 */
11823 /***/ (function(module, exports, __webpack_require__) {
11824
11825 "use strict";
11826
11827
11828 var _interopRequireDefault = __webpack_require__(0);
11829
11830 var _Object$defineProperty = __webpack_require__(1);
11831
11832 _Object$defineProperty(exports, "__esModule", {
11833 value: true
11834 });
11835
11836 exports.default = void 0;
11837
11838 var _keys = _interopRequireDefault(__webpack_require__(23));
11839
11840 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11841
11842 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11843
11844 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11845
11846 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11847
11848 var _basePrefixStorage = _interopRequireDefault(__webpack_require__(631));
11849
11850 var LocalStorage = /*#__PURE__*/function (_BasePrefixStorage) {
11851 (0, _inherits2.default)(LocalStorage, _BasePrefixStorage);
11852
11853 var _super = (0, _createSuper2.default)(LocalStorage);
11854
11855 function LocalStorage() {
11856 var _this;
11857
11858 (0, _classCallCheck2.default)(this, LocalStorage);
11859 _this = _super.call(this, localStorage);
11860
11861 _this.clear();
11862
11863 return _this;
11864 }
11865
11866 (0, _createClass2.default)(LocalStorage, [{
11867 key: "debug",
11868 value: function debug() {
11869 var entries = this.getAll(),
11870 ordered = {};
11871 (0, _keys.default)(entries).sort().forEach(function (key) {
11872 var value = entries[key];
11873 ordered[key] = value;
11874 });
11875 return ordered;
11876 }
11877 }]);
11878 return LocalStorage;
11879 }(_basePrefixStorage.default);
11880
11881 exports.default = LocalStorage;
11882
11883 /***/ }),
11884 /* 631 */
11885 /***/ (function(module, exports, __webpack_require__) {
11886
11887 "use strict";
11888
11889
11890 var _interopRequireDefault = __webpack_require__(0);
11891
11892 var _Object$defineProperty = __webpack_require__(1);
11893
11894 _Object$defineProperty(exports, "__esModule", {
11895 value: true
11896 });
11897
11898 exports.default = void 0;
11899
11900 __webpack_require__(58);
11901
11902 __webpack_require__(276);
11903
11904 var _keys = _interopRequireDefault(__webpack_require__(23));
11905
11906 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11907
11908 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11909
11910 var _get2 = _interopRequireDefault(__webpack_require__(25));
11911
11912 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
11913
11914 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11915
11916 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11917
11918 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
11919
11920 var _baseStorage = _interopRequireDefault(__webpack_require__(632));
11921
11922 var BasePrefixStorage = /*#__PURE__*/function (_BaseStorage) {
11923 (0, _inherits2.default)(BasePrefixStorage, _BaseStorage);
11924
11925 var _super = (0, _createSuper2.default)(BasePrefixStorage);
11926
11927 function BasePrefixStorage() {
11928 (0, _classCallCheck2.default)(this, BasePrefixStorage);
11929 return _super.apply(this, arguments);
11930 }
11931
11932 (0, _createClass2.default)(BasePrefixStorage, [{
11933 key: "clear",
11934 value: function clear() {
11935 var _this = this;
11936
11937 (0, _keys.default)(this.getAll()).forEach(function (key) {
11938 return _this.removeItem(key);
11939 });
11940 }
11941 }, {
11942 key: "getItem",
11943 value: function getItem(key) {
11944 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "getItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
11945 }
11946 }, {
11947 key: "removeItem",
11948 value: function removeItem(key) {
11949 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "removeItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
11950 }
11951 }, {
11952 key: "setItem",
11953 value: function setItem(key, value) {
11954 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "setItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key, value);
11955 }
11956 }, {
11957 key: "getAll",
11958 value: function getAll() {
11959 var _this2 = this;
11960
11961 var DEFAULT_KEY_PREFIX = BasePrefixStorage.DEFAULT_KEY_PREFIX,
11962 keys = (0, _keys.default)(this.provider),
11963 result = {};
11964 keys.forEach(function (key) {
11965 if (key.startsWith(DEFAULT_KEY_PREFIX)) {
11966 key = key.replace(DEFAULT_KEY_PREFIX, '');
11967 result[key] = _this2.getItem(key);
11968 }
11969 });
11970 return result;
11971 }
11972 }]);
11973 return BasePrefixStorage;
11974 }(_baseStorage.default);
11975
11976 exports.default = BasePrefixStorage;
11977 (0, _defineProperty2.default)(BasePrefixStorage, "DEFAULT_KEY_PREFIX", 'e_');
11978
11979 /***/ }),
11980 /* 632 */
11981 /***/ (function(module, exports, __webpack_require__) {
11982
11983 "use strict";
11984
11985
11986 var _interopRequireDefault = __webpack_require__(0);
11987
11988 var _Object$defineProperty = __webpack_require__(1);
11989
11990 _Object$defineProperty(exports, "__esModule", {
11991 value: true
11992 });
11993
11994 exports.default = void 0;
11995
11996 var _keys = _interopRequireDefault(__webpack_require__(23));
11997
11998 var _stringify = _interopRequireDefault(__webpack_require__(204));
11999
12000 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12001
12002 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12003
12004 /**
12005 * TODO: Merge all storage's to one.
12006 * Using this technique give's the ability to use JSDOC from 'window.storage'.
12007 *
12008 * @implements {Storage}
12009 */
12010 var BaseStorage = /*#__PURE__*/function () {
12011 /**
12012 * Create storage wrapper.
12013 *
12014 * @param {Storage} provider
12015 */
12016 function BaseStorage(provider) {
12017 (0, _classCallCheck2.default)(this, BaseStorage);
12018
12019 if (BaseStorage === (this instanceof BaseStorage ? this.constructor : void 0)) {
12020 throw new TypeError('Cannot construct BaseStorage instances directly');
12021 }
12022
12023 this.provider = provider;
12024 }
12025
12026 (0, _createClass2.default)(BaseStorage, [{
12027 key: "clear",
12028 value: function clear() {
12029 return this.provider.clear();
12030 }
12031 }, {
12032 key: "getItem",
12033 value: function getItem(key) {
12034 var result = this.provider.getItem(key);
12035
12036 if (null !== result) {
12037 return JSON.parse(result);
12038 }
12039
12040 return result;
12041 }
12042 }, {
12043 key: "key",
12044 value: function key(index) {
12045 return this.provider.key(index);
12046 }
12047 }, {
12048 key: "removeItem",
12049 value: function removeItem(key) {
12050 return this.provider.removeItem(key);
12051 }
12052 }, {
12053 key: "setItem",
12054 value: function setItem(key, value) {
12055 return this.provider.setItem(key, (0, _stringify.default)(value));
12056 }
12057 }, {
12058 key: "getAll",
12059 value: function getAll() {
12060 var _this = this;
12061
12062 var keys = (0, _keys.default)(this.provider),
12063 result = {};
12064 keys.forEach(function (key) {
12065 result[key] = _this.getItem(key);
12066 });
12067 return result;
12068 }
12069 }]);
12070 return BaseStorage;
12071 }();
12072
12073 exports.default = BaseStorage;
12074
12075 /***/ }),
12076 /* 633 */
12077 /***/ (function(module, exports, __webpack_require__) {
12078
12079 "use strict";
12080
12081
12082 var _interopRequireDefault = __webpack_require__(0);
12083
12084 var _Object$defineProperty = __webpack_require__(1);
12085
12086 _Object$defineProperty(exports, "__esModule", {
12087 value: true
12088 });
12089
12090 exports.default = void 0;
12091
12092 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12093
12094 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12095
12096 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12097
12098 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(342));
12099
12100 var HookBreak = /*#__PURE__*/function (_Error) {
12101 (0, _inherits2.default)(HookBreak, _Error);
12102
12103 var _super = (0, _createSuper2.default)(HookBreak);
12104
12105 function HookBreak() {
12106 (0, _classCallCheck2.default)(this, HookBreak);
12107 return _super.call(this, 'HookBreak');
12108 }
12109
12110 return HookBreak;
12111 }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
12112
12113 exports.default = HookBreak;
12114
12115 /***/ }),
12116 /* 634 */
12117 /***/ (function(module, exports, __webpack_require__) {
12118
12119 "use strict";
12120
12121
12122 var _interopRequireDefault = __webpack_require__(0);
12123
12124 var _Object$defineProperty = __webpack_require__(1);
12125
12126 _Object$defineProperty(exports, "__esModule", {
12127 value: true
12128 });
12129
12130 exports.default = exports.Before = void 0;
12131
12132 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12133
12134 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12135
12136 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12137
12138 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12139
12140 var _base = _interopRequireDefault(__webpack_require__(314));
12141
12142 var Before = /*#__PURE__*/function (_Base) {
12143 (0, _inherits2.default)(Before, _Base);
12144
12145 var _super = (0, _createSuper2.default)(Before);
12146
12147 function Before() {
12148 (0, _classCallCheck2.default)(this, Before);
12149 return _super.apply(this, arguments);
12150 }
12151
12152 (0, _createClass2.default)(Before, [{
12153 key: "register",
12154 value: function register() {
12155 $e.hooks.registerUIBefore(this);
12156 }
12157 }]);
12158 return Before;
12159 }(_base.default);
12160
12161 exports.Before = Before;
12162 var _default = Before;
12163 exports.default = _default;
12164
12165 /***/ }),
12166 /* 635 */
12167 /***/ (function(module, exports, __webpack_require__) {
12168
12169 "use strict";
12170
12171
12172 var _interopRequireDefault = __webpack_require__(0);
12173
12174 var _Object$defineProperty = __webpack_require__(1);
12175
12176 _Object$defineProperty(exports, "__esModule", {
12177 value: true
12178 });
12179
12180 exports.default = exports.Catch = void 0;
12181
12182 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12183
12184 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12185
12186 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12187
12188 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12189
12190 var _base = _interopRequireDefault(__webpack_require__(314));
12191
12192 var Catch = /*#__PURE__*/function (_Base) {
12193 (0, _inherits2.default)(Catch, _Base);
12194
12195 var _super = (0, _createSuper2.default)(Catch);
12196
12197 function Catch() {
12198 (0, _classCallCheck2.default)(this, Catch);
12199 return _super.apply(this, arguments);
12200 }
12201
12202 (0, _createClass2.default)(Catch, [{
12203 key: "register",
12204 value: function register() {
12205 $e.hooks.registerUICatch(this);
12206 }
12207 }]);
12208 return Catch;
12209 }(_base.default);
12210
12211 exports.Catch = Catch;
12212 var _default = Catch;
12213 exports.default = _default;
12214
12215 /***/ }),
12216 /* 636 */,
12217 /* 637 */,
12218 /* 638 */,
12219 /* 639 */,
12220 /* 640 */,
12221 /* 641 */,
12222 /* 642 */,
12223 /* 643 */,
12224 /* 644 */,
12225 /* 645 */,
12226 /* 646 */,
12227 /* 647 */,
12228 /* 648 */,
12229 /* 649 */,
12230 /* 650 */,
12231 /* 651 */,
12232 /* 652 */,
12233 /* 653 */,
12234 /* 654 */,
12235 /* 655 */,
12236 /* 656 */,
12237 /* 657 */,
12238 /* 658 */,
12239 /* 659 */,
12240 /* 660 */,
12241 /* 661 */,
12242 /* 662 */,
12243 /* 663 */,
12244 /* 664 */,
12245 /* 665 */,
12246 /* 666 */,
12247 /* 667 */,
12248 /* 668 */,
12249 /* 669 */,
12250 /* 670 */,
12251 /* 671 */,
12252 /* 672 */,
12253 /* 673 */,
12254 /* 674 */,
12255 /* 675 */,
12256 /* 676 */,
12257 /* 677 */
12258 /***/ (function(module, exports, __webpack_require__) {
12259
12260 "use strict";
12261
12262
12263 var _interopRequireDefault = __webpack_require__(0);
12264
12265 var _Object$defineProperty = __webpack_require__(1);
12266
12267 _Object$defineProperty(exports, "__esModule", {
12268 value: true
12269 });
12270
12271 exports.default = void 0;
12272
12273 var _values = _interopRequireDefault(__webpack_require__(54));
12274
12275 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12276
12277 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12278
12279 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12280
12281 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12282
12283 var _item = _interopRequireDefault(__webpack_require__(720));
12284
12285 var _item2 = _interopRequireDefault(__webpack_require__(721));
12286
12287 var _default = /*#__PURE__*/function (_Marionette$Composite) {
12288 (0, _inherits2.default)(_default, _Marionette$Composite);
12289
12290 var _super = (0, _createSuper2.default)(_default);
12291
12292 function _default() {
12293 (0, _classCallCheck2.default)(this, _default);
12294 return _super.apply(this, arguments);
12295 }
12296
12297 (0, _createClass2.default)(_default, [{
12298 key: "className",
12299 value: function className() {
12300 return 'elementor-finder__results__category';
12301 }
12302 }, {
12303 key: "getTemplate",
12304 value: function getTemplate() {
12305 return '#tmpl-elementor-finder__results__category';
12306 }
12307 }, {
12308 key: "getChildView",
12309 value: function getChildView() {
12310 return _item.default;
12311 }
12312 }, {
12313 key: "initialize",
12314 value: function initialize() {
12315 this.childViewContainer = '.elementor-finder__results__category__items';
12316 this.isVisible = true;
12317 var items = this.model.get('items');
12318
12319 if (items) {
12320 items = (0, _values.default)(items);
12321 }
12322
12323 this.collection = new Backbone.Collection(items, {
12324 model: _item2.default
12325 });
12326 }
12327 }, {
12328 key: "filter",
12329 value: function filter(childModel) {
12330 var textFilter = this.getTextFilter();
12331
12332 if (childModel.get('title').toLowerCase().indexOf(textFilter) >= 0) {
12333 return true;
12334 }
12335
12336 return childModel.get('keywords').some(function (keyword) {
12337 return keyword.indexOf(textFilter) >= 0;
12338 });
12339 }
12340 }, {
12341 key: "getTextFilter",
12342 value: function getTextFilter() {
12343 return elementorCommon.finder.channel.request('filter:text').trim().toLowerCase();
12344 }
12345 }, {
12346 key: "toggleElement",
12347 value: function toggleElement() {
12348 var isCurrentlyVisible = !!this.children.length;
12349
12350 if (isCurrentlyVisible !== this.isVisible) {
12351 this.isVisible = isCurrentlyVisible;
12352 this.$el.toggle(isCurrentlyVisible);
12353 this.triggerMethod('toggle:visibility');
12354 }
12355 }
12356 }, {
12357 key: "onRender",
12358 value: function onRender() {
12359 this.listenTo(elementorCommon.finder.channel, 'filter:change', this.onFilterChange.bind(this));
12360 }
12361 }, {
12362 key: "onFilterChange",
12363 value: function onFilterChange() {
12364 this._renderChildren();
12365 }
12366 }, {
12367 key: "onRenderCollection",
12368 value: function onRenderCollection() {
12369 this.toggleElement();
12370 }
12371 }]);
12372 return _default;
12373 }(Marionette.CompositeView);
12374
12375 exports.default = _default;
12376
12377 /***/ }),
12378 /* 678 */,
12379 /* 679 */,
12380 /* 680 */,
12381 /* 681 */,
12382 /* 682 */,
12383 /* 683 */,
12384 /* 684 */,
12385 /* 685 */,
12386 /* 686 */,
12387 /* 687 */,
12388 /* 688 */,
12389 /* 689 */,
12390 /* 690 */,
12391 /* 691 */,
12392 /* 692 */,
12393 /* 693 */,
12394 /* 694 */,
12395 /* 695 */,
12396 /* 696 */,
12397 /* 697 */,
12398 /* 698 */,
12399 /* 699 */,
12400 /* 700 */,
12401 /* 701 */,
12402 /* 702 */,
12403 /* 703 */,
12404 /* 704 */,
12405 /* 705 */,
12406 /* 706 */,
12407 /* 707 */,
12408 /* 708 */,
12409 /* 709 */,
12410 /* 710 */,
12411 /* 711 */
12412 /***/ (function(module, exports, __webpack_require__) {
12413
12414 "use strict";
12415
12416
12417 var _interopRequireDefault = __webpack_require__(0);
12418
12419 __webpack_require__(58);
12420
12421 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12422
12423 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12424
12425 var _get2 = _interopRequireDefault(__webpack_require__(25));
12426
12427 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
12428
12429 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12430
12431 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12432
12433 var _helpers = _interopRequireDefault(__webpack_require__(712));
12434
12435 var _storage = _interopRequireDefault(__webpack_require__(626));
12436
12437 var _debug = _interopRequireDefault(__webpack_require__(713));
12438
12439 var _ajax = _interopRequireDefault(__webpack_require__(714));
12440
12441 var _finder = _interopRequireDefault(__webpack_require__(715));
12442
12443 var _connect = _interopRequireDefault(__webpack_require__(727));
12444
12445 var _api = _interopRequireDefault(__webpack_require__(728));
12446
12447 var ElementorCommonApp = /*#__PURE__*/function (_elementorModules$Vie) {
12448 (0, _inherits2.default)(ElementorCommonApp, _elementorModules$Vie);
12449
12450 var _super = (0, _createSuper2.default)(ElementorCommonApp);
12451
12452 function ElementorCommonApp() {
12453 (0, _classCallCheck2.default)(this, ElementorCommonApp);
12454 return _super.apply(this, arguments);
12455 }
12456
12457 (0, _createClass2.default)(ElementorCommonApp, [{
12458 key: "setMarionetteTemplateCompiler",
12459 value: function setMarionetteTemplateCompiler() {
12460 Marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate, options) {
12461 options = {
12462 evaluate: /<#([\s\S]+?)#>/g,
12463 interpolate: /{{{([\s\S]+?)}}}/g,
12464 escape: /{{([^}]+?)}}(?!})/g
12465 };
12466 return _.template(rawTemplate, options);
12467 };
12468 }
12469 }, {
12470 key: "getDefaultElements",
12471 value: function getDefaultElements() {
12472 return {
12473 $window: jQuery(window),
12474 $document: jQuery(document),
12475 $body: jQuery(document.body)
12476 };
12477 }
12478 }, {
12479 key: "initComponents",
12480 value: function initComponents() {
12481 this.debug = new _debug.default();
12482 this.helpers = new _helpers.default();
12483 this.storage = new _storage.default();
12484 this.dialogsManager = new DialogsManager.Instance();
12485 this.api = new _api.default();
12486 this.initModules();
12487 }
12488 }, {
12489 key: "initModules",
12490 value: function initModules() {
12491 var _this = this;
12492
12493 var activeModules = this.config.activeModules;
12494 var modules = {
12495 ajax: _ajax.default,
12496 finder: _finder.default,
12497 connect: _connect.default
12498 };
12499 activeModules.forEach(function (name) {
12500 if (modules[name]) {
12501 _this[name] = new modules[name](_this.config[name]);
12502 }
12503 });
12504 }
12505 }, {
12506 key: "compileArrayTemplateArgs",
12507 value: function compileArrayTemplateArgs(template, templateArgs) {
12508 return template.replace(/%(?:(\d+)\$)?s/g, function (match, number) {
12509 if (!number) {
12510 number = 1;
12511 }
12512
12513 number--;
12514 return undefined !== templateArgs[number] ? templateArgs[number] : match;
12515 });
12516 }
12517 }, {
12518 key: "compileObjectTemplateArgs",
12519 value: function compileObjectTemplateArgs(template, templateArgs) {
12520 return template.replace(/{{(?:([ \w]+))}}/g, function (match, name) {
12521 return templateArgs[name] ? templateArgs[name] : match;
12522 });
12523 }
12524 }, {
12525 key: "compileTemplate",
12526 value: function compileTemplate(template, templateArgs) {
12527 return jQuery.isPlainObject(templateArgs) ? this.compileObjectTemplateArgs(template, templateArgs) : this.compileArrayTemplateArgs(template, templateArgs);
12528 }
12529 }, {
12530 key: "translate",
12531 value: function translate(stringKey, context, templateArgs, i18nStack) {
12532 if (context) {
12533 i18nStack = this.config[context].i18n;
12534 }
12535
12536 if (!i18nStack) {
12537 i18nStack = this.config.i18n;
12538 }
12539
12540 var string = i18nStack[stringKey];
12541
12542 if (undefined === string) {
12543 string = stringKey;
12544 }
12545
12546 if (templateArgs) {
12547 string = this.compileTemplate(string, templateArgs);
12548 }
12549
12550 return string;
12551 }
12552 }, {
12553 key: "onInit",
12554 value: function onInit() {
12555 (0, _get2.default)((0, _getPrototypeOf2.default)(ElementorCommonApp.prototype), "onInit", this).call(this);
12556 this.config = elementorCommonConfig;
12557 this.setMarionetteTemplateCompiler();
12558 }
12559 }]);
12560 return ElementorCommonApp;
12561 }(elementorModules.ViewModule);
12562
12563 window.elementorCommon = new ElementorCommonApp();
12564 elementorCommon.initComponents();
12565
12566 /***/ }),
12567 /* 712 */
12568 /***/ (function(module, exports, __webpack_require__) {
12569
12570 "use strict";
12571
12572
12573 var _interopRequireDefault = __webpack_require__(0);
12574
12575 var _Object$defineProperty = __webpack_require__(1);
12576
12577 _Object$defineProperty(exports, "__esModule", {
12578 value: true
12579 });
12580
12581 exports.default = void 0;
12582
12583 __webpack_require__(182);
12584
12585 __webpack_require__(72);
12586
12587 __webpack_require__(58);
12588
12589 var _stringify = _interopRequireDefault(__webpack_require__(204));
12590
12591 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12592
12593 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12594
12595 var Helpers = /*#__PURE__*/function () {
12596 function Helpers() {
12597 (0, _classCallCheck2.default)(this, Helpers);
12598 }
12599
12600 (0, _createClass2.default)(Helpers, [{
12601 key: "softDeprecated",
12602 value: function softDeprecated(name, version, replacement) {
12603 if (elementorCommon.config.isDebug) {
12604 this.deprecatedMessage('soft', name, version, replacement);
12605 }
12606 }
12607 }, {
12608 key: "hardDeprecated",
12609 value: function hardDeprecated(name, version, replacement) {
12610 this.deprecatedMessage('hard', name, version, replacement);
12611 }
12612 }, {
12613 key: "deprecatedMessage",
12614 value: function deprecatedMessage(type, name, version, replacement) {
12615 var message = "%c %c`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
12616
12617 if (replacement) {
12618 message += " - Use `".concat(replacement, "` instead");
12619 }
12620
12621 this.consoleWarn(message);
12622 }
12623 }, {
12624 key: "consoleWarn",
12625 value: function consoleWarn() {
12626 var _console;
12627
12628 var style = "font-size: 12px; background-image: url(\"".concat(elementorCommon.config.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
12629
12630 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12631 args[_key] = arguments[_key];
12632 }
12633
12634 args.push(style, '');
12635
12636 (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
12637
12638 }
12639 }, {
12640 key: "consoleError",
12641 value: function consoleError(message) {
12642 // TODO: function is part of $e.
12643 // Show an error if devTools is available.
12644 if ($e.devTools) {
12645 $e.devTools.log.error(message);
12646 } // If not a 'Hook-Break' then show error.
12647
12648
12649 if (!(message instanceof $e.modules.HookBreak)) {
12650 // eslint-disable-next-line no-console
12651 console.error(message);
12652 }
12653 }
12654 }, {
12655 key: "deprecatedMethod",
12656 value: function deprecatedMethod(methodName, version, replacement) {
12657 this.deprecatedMessage('hard', methodName, version, replacement); // This itself is deprecated.
12658
12659 this.softDeprecated('elementorCommon.helpers.deprecatedMethod', '2.8.0', 'elementorCommon.helpers.softDeprecated || elementorCommon.helpers.hardDeprecated');
12660 }
12661 }, {
12662 key: "cloneObject",
12663 value: function cloneObject(object) {
12664 return JSON.parse((0, _stringify.default)(object));
12665 }
12666 }, {
12667 key: "upperCaseWords",
12668 value: function upperCaseWords(string) {
12669 return (string + '').replace(/^(.)|\s+(.)/g, function ($1) {
12670 return $1.toUpperCase();
12671 });
12672 }
12673 }, {
12674 key: "getUniqueId",
12675 value: function getUniqueId() {
12676 return Math.random().toString(16).substr(2, 7);
12677 }
12678 }]);
12679 return Helpers;
12680 }();
12681
12682 exports.default = Helpers;
12683
12684 /***/ }),
12685 /* 713 */
12686 /***/ (function(module, exports, __webpack_require__) {
12687
12688 "use strict";
12689
12690
12691 __webpack_require__(119);
12692
12693 __webpack_require__(39);
12694
12695 // Moved from assets/dev/js/editor/utils
12696 var Debug = function Debug() {
12697 var self = this,
12698 errorStack = [],
12699 settings = {},
12700 elements = {};
12701
12702 var initSettings = function initSettings() {
12703 settings = {
12704 debounceDelay: 500,
12705 urlsToWatch: ['elementor/assets']
12706 };
12707 };
12708
12709 var initElements = function initElements() {
12710 elements.$window = jQuery(window);
12711 };
12712
12713 var onError = function onError(event) {
12714 var originalEvent = event.originalEvent,
12715 error = originalEvent.error;
12716
12717 if (!error) {
12718 return;
12719 }
12720
12721 var isInWatchList = false,
12722 urlsToWatch = settings.urlsToWatch;
12723 jQuery.each(urlsToWatch, function () {
12724 if (-1 !== error.stack.indexOf(this)) {
12725 isInWatchList = true;
12726 return false;
12727 }
12728 });
12729
12730 if (!isInWatchList) {
12731 return;
12732 }
12733
12734 self.addError({
12735 type: error.name,
12736 message: error.message,
12737 url: originalEvent.filename,
12738 line: originalEvent.lineno,
12739 column: originalEvent.colno
12740 });
12741 };
12742
12743 var bindEvents = function bindEvents() {
12744 elements.$window.on('error', onError);
12745 };
12746
12747 var init = function init() {
12748 initSettings();
12749 initElements();
12750 bindEvents();
12751 self.sendErrors = _.debounce(self.sendErrors, settings.debounceDelay);
12752 };
12753
12754 this.addURLToWatch = function (url) {
12755 settings.urlsToWatch.push(url);
12756 };
12757
12758 this.addCustomError = function (error, category, tag) {
12759 var errorInfo = {
12760 type: error.name,
12761 message: error.message,
12762 url: error.fileName || error.sourceURL,
12763 line: error.lineNumber || error.line,
12764 column: error.columnNumber || error.column,
12765 customFields: {
12766 category: category || 'general',
12767 tag: tag
12768 }
12769 };
12770
12771 if (!errorInfo.url) {
12772 var stackInfo = error.stack.match(/\n {4}at (.*?(?=:(\d+):(\d+)))/);
12773
12774 if (stackInfo) {
12775 errorInfo.url = stackInfo[1];
12776 errorInfo.line = stackInfo[2];
12777 errorInfo.column = stackInfo[3];
12778 }
12779 }
12780
12781 this.addError(errorInfo);
12782 };
12783
12784 this.addError = function (errorParams) {
12785 var defaultParams = {
12786 type: 'Error',
12787 timestamp: Math.floor(new Date().getTime() / 1000),
12788 message: null,
12789 url: null,
12790 line: null,
12791 column: null,
12792 customFields: {}
12793 };
12794 errorStack.push(jQuery.extend(true, defaultParams, errorParams));
12795 self.sendErrors();
12796 };
12797
12798 this.sendErrors = function () {
12799 // Avoid recursions on errors in ajax
12800 elements.$window.off('error', onError);
12801 jQuery.ajax({
12802 url: elementorCommon.config.ajax.url,
12803 method: 'POST',
12804 data: {
12805 action: 'elementor_js_log',
12806 _nonce: elementorCommon.ajax.getSettings('nonce'),
12807 data: errorStack
12808 },
12809 success: function success() {
12810 errorStack = []; // Restore error handler
12811
12812 elements.$window.on('error', onError);
12813 }
12814 });
12815 };
12816
12817 init();
12818 };
12819
12820 module.exports = Debug;
12821
12822 /***/ }),
12823 /* 714 */
12824 /***/ (function(module, exports, __webpack_require__) {
12825
12826 "use strict";
12827
12828
12829 var _interopRequireDefault = __webpack_require__(0);
12830
12831 var _Object$defineProperty = __webpack_require__(1);
12832
12833 _Object$defineProperty(exports, "__esModule", {
12834 value: true
12835 });
12836
12837 exports.default = void 0;
12838
12839 var _values = _interopRequireDefault(__webpack_require__(54));
12840
12841 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104));
12842
12843 var _entries = _interopRequireDefault(__webpack_require__(87));
12844
12845 var _stringify = _interopRequireDefault(__webpack_require__(204));
12846
12847 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12848
12849 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
12850
12851 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12852
12853 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12854
12855 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12856
12857 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
12858 (0, _inherits2.default)(_default, _elementorModules$Mod);
12859
12860 var _super = (0, _createSuper2.default)(_default);
12861
12862 (0, _createClass2.default)(_default, [{
12863 key: "getDefaultSettings",
12864 value: function getDefaultSettings() {
12865 return {
12866 ajaxParams: {
12867 type: 'POST',
12868 url: elementorCommon.config.ajax.url,
12869 data: {},
12870 dataType: 'json'
12871 },
12872 actionPrefix: 'elementor_'
12873 };
12874 }
12875 }]);
12876
12877 function _default() {
12878 var _this;
12879
12880 (0, _classCallCheck2.default)(this, _default);
12881
12882 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12883 args[_key] = arguments[_key];
12884 }
12885
12886 _this = _super.call.apply(_super, [this].concat(args));
12887 _this.requests = {};
12888 _this.cache = {};
12889
12890 _this.initRequestConstants();
12891
12892 _this.debounceSendBatch = _.debounce(_this.sendBatch.bind((0, _assertThisInitialized2.default)(_this)), 500);
12893 return _this;
12894 }
12895
12896 (0, _createClass2.default)(_default, [{
12897 key: "initRequestConstants",
12898 value: function initRequestConstants() {
12899 this.requestConstants = {
12900 _nonce: this.getSettings('nonce')
12901 };
12902 }
12903 }, {
12904 key: "addRequestConstant",
12905 value: function addRequestConstant(key, value) {
12906 this.requestConstants[key] = value;
12907 }
12908 }, {
12909 key: "getCacheKey",
12910 value: function getCacheKey(request) {
12911 return (0, _stringify.default)({
12912 unique_id: request.unique_id,
12913 data: request.data
12914 });
12915 }
12916 }, {
12917 key: "loadObjects",
12918 value: function loadObjects(options) {
12919 var _this2 = this;
12920
12921 var dataCollection = {};
12922 var deferredArray = [];
12923
12924 if (options.before) {
12925 options.before();
12926 }
12927
12928 options.ids.forEach(function (objectId) {
12929 deferredArray.push(_this2.load({
12930 action: options.action,
12931 unique_id: options.data.unique_id + objectId,
12932 data: jQuery.extend({
12933 id: objectId
12934 }, options.data)
12935 }).done(function (data) {
12936 return dataCollection = jQuery.extend(dataCollection, data);
12937 }));
12938 });
12939 jQuery.when.apply(jQuery, deferredArray).done(function () {
12940 return options.success(dataCollection);
12941 });
12942 }
12943 }, {
12944 key: "load",
12945 value: function load(request, immediately) {
12946 var _this3 = this;
12947
12948 if (!request.unique_id) {
12949 request.unique_id = request.action;
12950 }
12951
12952 if (request.before) {
12953 request.before();
12954 }
12955
12956 var deferred;
12957 var cacheKey = this.getCacheKey(request);
12958
12959 if (_.has(this.cache, cacheKey)) {
12960 deferred = jQuery.Deferred().done(request.success).resolve(this.cache[cacheKey]);
12961 } else {
12962 deferred = this.addRequest(request.action, {
12963 data: request.data,
12964 unique_id: request.unique_id,
12965 success: function success(data) {
12966 return _this3.cache[cacheKey] = data;
12967 }
12968 }, immediately).done(request.success);
12969 }
12970
12971 return deferred;
12972 }
12973 }, {
12974 key: "addRequest",
12975 value: function addRequest(action, options, immediately) {
12976 options = options || {};
12977
12978 if (!options.unique_id) {
12979 options.unique_id = action;
12980 }
12981
12982 options.deferred = jQuery.Deferred().done(options.success).fail(options.error).always(options.complete);
12983 var request = {
12984 action: action,
12985 options: options
12986 };
12987
12988 if (immediately) {
12989 var requests = {};
12990 requests[options.unique_id] = request;
12991 options.deferred.jqXhr = this.sendBatch(requests);
12992 } else {
12993 this.requests[options.unique_id] = request;
12994 this.debounceSendBatch();
12995 }
12996
12997 return options.deferred;
12998 }
12999 }, {
13000 key: "sendBatch",
13001 value: function sendBatch(requests) {
13002 var actions = {};
13003
13004 if (!requests) {
13005 requests = this.requests; // Empty for next batch.
13006
13007 this.requests = {};
13008 }
13009
13010 (0, _entries.default)(requests).forEach(function (_ref) {
13011 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
13012 id = _ref2[0],
13013 request = _ref2[1];
13014
13015 return actions[id] = {
13016 action: request.action,
13017 data: request.options.data
13018 };
13019 });
13020 return this.send('ajax', {
13021 data: {
13022 actions: (0, _stringify.default)(actions)
13023 },
13024 success: function success(data) {
13025 (0, _entries.default)(data.responses).forEach(function (_ref3) {
13026 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
13027 id = _ref4[0],
13028 response = _ref4[1];
13029
13030 var options = requests[id].options;
13031
13032 if (options) {
13033 if (response.success) {
13034 options.deferred.resolve(response.data);
13035 } else if (!response.success) {
13036 options.deferred.reject(response.data);
13037 }
13038 }
13039 });
13040 },
13041 error: function error(data) {
13042 return (0, _values.default)(requests).forEach(function (args) {
13043 if (args.options) {
13044 args.options.deferred.reject(data);
13045 }
13046 });
13047 }
13048 });
13049 }
13050 }, {
13051 key: "prepareSend",
13052 value: function prepareSend(action, options) {
13053 var _this4 = this;
13054
13055 var settings = this.getSettings(),
13056 ajaxParams = elementorCommon.helpers.cloneObject(settings.ajaxParams);
13057 options = options || {};
13058 action = settings.actionPrefix + action;
13059 jQuery.extend(ajaxParams, options);
13060 var requestConstants = elementorCommon.helpers.cloneObject(this.requestConstants);
13061 requestConstants.action = action;
13062 var isFormData = ajaxParams.data instanceof FormData;
13063 (0, _entries.default)(requestConstants).forEach(function (_ref5) {
13064 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
13065 key = _ref6[0],
13066 value = _ref6[1];
13067
13068 if (isFormData) {
13069 ajaxParams.data.append(key, value);
13070 } else {
13071 ajaxParams.data[key] = value;
13072 }
13073 });
13074 var successCallback = ajaxParams.success,
13075 errorCallback = ajaxParams.error;
13076
13077 if (successCallback || errorCallback) {
13078 ajaxParams.success = function (response) {
13079 if (response.success && successCallback) {
13080 successCallback(response.data);
13081 }
13082
13083 if (!response.success && errorCallback) {
13084 errorCallback(response.data);
13085 }
13086 };
13087
13088 if (errorCallback) {
13089 ajaxParams.error = function (data) {
13090 return errorCallback(data);
13091 };
13092 } else {
13093 ajaxParams.error = function (xmlHttpRequest) {
13094 if (xmlHttpRequest.readyState || 'abort' !== xmlHttpRequest.statusText) {
13095 _this4.trigger('request:unhandledError', xmlHttpRequest);
13096 }
13097 };
13098 }
13099 }
13100
13101 return ajaxParams;
13102 }
13103 }, {
13104 key: "send",
13105 value: function send(action, options) {
13106 return jQuery.ajax(this.prepareSend(action, options));
13107 }
13108 }, {
13109 key: "addRequestCache",
13110 value: function addRequestCache(request, data) {
13111 var cacheKey = this.getCacheKey(request);
13112 this.cache[cacheKey] = data;
13113 }
13114 }, {
13115 key: "invalidateCache",
13116 value: function invalidateCache(request) {
13117 var cacheKey = this.getCacheKey(request);
13118 delete this.cache[cacheKey];
13119 }
13120 }]);
13121 return _default;
13122 }(elementorModules.Module);
13123
13124 exports.default = _default;
13125
13126 /***/ }),
13127 /* 715 */
13128 /***/ (function(module, exports, __webpack_require__) {
13129
13130 "use strict";
13131
13132
13133 var _interopRequireDefault = __webpack_require__(0);
13134
13135 var _Object$defineProperty = __webpack_require__(1);
13136
13137 _Object$defineProperty(exports, "__esModule", {
13138 value: true
13139 });
13140
13141 exports.default = void 0;
13142
13143 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13144
13145 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13146
13147 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13148
13149 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13150
13151 var _component = _interopRequireDefault(__webpack_require__(716));
13152
13153 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
13154 (0, _inherits2.default)(_default, _elementorModules$Mod);
13155
13156 var _super = (0, _createSuper2.default)(_default);
13157
13158 function _default() {
13159 (0, _classCallCheck2.default)(this, _default);
13160 return _super.apply(this, arguments);
13161 }
13162
13163 (0, _createClass2.default)(_default, [{
13164 key: "onInit",
13165 value: function onInit() {
13166 // TODO: Temp fix, do not load finder in theme-builder.
13167 // Better to pass into '$e' constructor the app owner. ( admin, editor, preview, iframe ).
13168 if (window.top !== window) {
13169 return;
13170 }
13171
13172 this.channel = Backbone.Radio.channel('ELEMENTOR:finder');
13173 $e.components.register(new _component.default({
13174 manager: this
13175 }));
13176 }
13177 }]);
13178 return _default;
13179 }(elementorModules.Module);
13180
13181 exports.default = _default;
13182
13183 /***/ }),
13184 /* 716 */
13185 /***/ (function(module, exports, __webpack_require__) {
13186
13187 "use strict";
13188
13189
13190 var _interopRequireWildcard = __webpack_require__(36);
13191
13192 var _interopRequireDefault = __webpack_require__(0);
13193
13194 var _Object$defineProperty = __webpack_require__(1);
13195
13196 _Object$defineProperty(exports, "__esModule", {
13197 value: true
13198 });
13199
13200 exports.default = void 0;
13201
13202 var _objectSpread2 = _interopRequireDefault(__webpack_require__(212));
13203
13204 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13205
13206 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13207
13208 var _get2 = _interopRequireDefault(__webpack_require__(25));
13209
13210 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13211
13212 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13213
13214 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13215
13216 var _componentModalBase = _interopRequireDefault(__webpack_require__(286));
13217
13218 var _layout = _interopRequireDefault(__webpack_require__(717));
13219
13220 var commands = _interopRequireWildcard(__webpack_require__(723));
13221
13222 var Component = /*#__PURE__*/function (_ComponentModalBase) {
13223 (0, _inherits2.default)(Component, _ComponentModalBase);
13224
13225 var _super = (0, _createSuper2.default)(Component);
13226
13227 function Component() {
13228 (0, _classCallCheck2.default)(this, Component);
13229 return _super.apply(this, arguments);
13230 }
13231
13232 (0, _createClass2.default)(Component, [{
13233 key: "getNamespace",
13234 value: function getNamespace() {
13235 return 'finder';
13236 }
13237 }, {
13238 key: "defaultShortcuts",
13239 value: function defaultShortcuts() {
13240 var _this = this;
13241
13242 return {
13243 '': {
13244 keys: 'ctrl+e'
13245 },
13246 'navigate-down': {
13247 keys: 'down',
13248 scopes: [this.getNamespace()],
13249 dependency: function dependency() {
13250 return _this.getItemsView();
13251 }
13252 },
13253 'navigate-up': {
13254 keys: 'up',
13255 scopes: [this.getNamespace()],
13256 dependency: function dependency() {
13257 return _this.getItemsView();
13258 }
13259 },
13260 'navigate-select': {
13261 keys: 'enter',
13262 scopes: [this.getNamespace()],
13263 dependency: function dependency() {
13264 return _this.getItemsView().$activeItem;
13265 }
13266 }
13267 };
13268 }
13269 }, {
13270 key: "defaultCommands",
13271 value: function defaultCommands() {
13272 var modalCommands = (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "defaultCommands", this).call(this);
13273 return (0, _objectSpread2.default)((0, _objectSpread2.default)({
13274 'navigate/down': function navigateDown() {
13275 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/down' )", '3.0.0', "$e.run( 'finder/navigate-down' )");
13276 $e.run('finder/navigate-down');
13277 },
13278 'navigate/up': function navigateUp() {
13279 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/up' )", '3.0.0', "$e.run( 'finder/navigate-up' )");
13280 $e.run('finder/navigate-up');
13281 },
13282 'navigate/select': function navigateSelect(event) {
13283 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 ).
13284
13285 $e.run('finder/navigate-select', event);
13286 }
13287 }, modalCommands), this.importCommands(commands));
13288 }
13289 }, {
13290 key: "getModalLayout",
13291 value: function getModalLayout() {
13292 return _layout.default;
13293 }
13294 }, {
13295 key: "getItemsView",
13296 value: function getItemsView() {
13297 return this.layout.modalContent.currentView.content.currentView;
13298 }
13299 }]);
13300 return Component;
13301 }(_componentModalBase.default);
13302
13303 exports.default = Component;
13304
13305 /***/ }),
13306 /* 717 */
13307 /***/ (function(module, exports, __webpack_require__) {
13308
13309 "use strict";
13310
13311
13312 var _interopRequireDefault = __webpack_require__(0);
13313
13314 var _Object$defineProperty = __webpack_require__(1);
13315
13316 _Object$defineProperty(exports, "__esModule", {
13317 value: true
13318 });
13319
13320 exports.default = void 0;
13321
13322 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13323
13324 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13325
13326 var _get4 = _interopRequireDefault(__webpack_require__(25));
13327
13328 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13329
13330 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13331
13332 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13333
13334 var _content = _interopRequireDefault(__webpack_require__(718));
13335
13336 var _default = /*#__PURE__*/function (_elementorModules$com) {
13337 (0, _inherits2.default)(_default, _elementorModules$com);
13338
13339 var _super = (0, _createSuper2.default)(_default);
13340
13341 function _default() {
13342 (0, _classCallCheck2.default)(this, _default);
13343 return _super.apply(this, arguments);
13344 }
13345
13346 (0, _createClass2.default)(_default, [{
13347 key: "getModalOptions",
13348 value: function getModalOptions() {
13349 return {
13350 id: 'elementor-finder__modal',
13351 draggable: true,
13352 effects: {
13353 show: 'show',
13354 hide: 'hide'
13355 },
13356 position: {
13357 enable: false
13358 }
13359 };
13360 }
13361 }, {
13362 key: "getLogoOptions",
13363 value: function getLogoOptions() {
13364 return {
13365 title: elementorCommon.translate('finder', 'finder')
13366 };
13367 }
13368 }, {
13369 key: "initialize",
13370 value: function initialize() {
13371 var _get2;
13372
13373 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13374 args[_key] = arguments[_key];
13375 }
13376
13377 (_get2 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "initialize", this)).call.apply(_get2, [this].concat(args));
13378
13379 this.showLogo();
13380 this.showContentView();
13381 }
13382 }, {
13383 key: "showContentView",
13384 value: function showContentView() {
13385 this.modalContent.show(new _content.default());
13386 }
13387 }, {
13388 key: "showModal",
13389 value: function showModal() {
13390 var _get3;
13391
13392 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13393 args[_key2] = arguments[_key2];
13394 }
13395
13396 (_get3 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "showModal", this)).call.apply(_get3, [this].concat(args));
13397
13398 this.modalContent.currentView.ui.searchInput.focus();
13399 }
13400 }]);
13401 return _default;
13402 }(elementorModules.common.views.modal.Layout);
13403
13404 exports.default = _default;
13405
13406 /***/ }),
13407 /* 718 */
13408 /***/ (function(module, exports, __webpack_require__) {
13409
13410 "use strict";
13411
13412
13413 var _interopRequireDefault = __webpack_require__(0);
13414
13415 var _Object$defineProperty = __webpack_require__(1);
13416
13417 _Object$defineProperty(exports, "__esModule", {
13418 value: true
13419 });
13420
13421 exports.default = void 0;
13422
13423 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13424
13425 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13426
13427 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13428
13429 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13430
13431 var _categories = _interopRequireDefault(__webpack_require__(719));
13432
13433 var _default = /*#__PURE__*/function (_Marionette$LayoutVie) {
13434 (0, _inherits2.default)(_default, _Marionette$LayoutVie);
13435
13436 var _super = (0, _createSuper2.default)(_default);
13437
13438 function _default() {
13439 (0, _classCallCheck2.default)(this, _default);
13440 return _super.apply(this, arguments);
13441 }
13442
13443 (0, _createClass2.default)(_default, [{
13444 key: "id",
13445 value: function id() {
13446 return 'elementor-finder';
13447 }
13448 }, {
13449 key: "getTemplate",
13450 value: function getTemplate() {
13451 return '#tmpl-elementor-finder';
13452 }
13453 }, {
13454 key: "ui",
13455 value: function ui() {
13456 return {
13457 searchInput: '#elementor-finder__search__input'
13458 };
13459 }
13460 }, {
13461 key: "events",
13462 value: function events() {
13463 return {
13464 'input @ui.searchInput': 'onSearchInputInput'
13465 };
13466 }
13467 }, {
13468 key: "regions",
13469 value: function regions() {
13470 return {
13471 content: '#elementor-finder__content'
13472 };
13473 }
13474 }, {
13475 key: "showCategoriesView",
13476 value: function showCategoriesView() {
13477 this.content.show(new _categories.default());
13478 }
13479 }, {
13480 key: "onSearchInputInput",
13481 value: function onSearchInputInput() {
13482 var value = this.ui.searchInput.val();
13483
13484 if (value) {
13485 elementorCommon.finder.channel.reply('filter:text', value).trigger('filter:change');
13486
13487 if (!(this.content.currentView instanceof _categories.default)) {
13488 this.showCategoriesView();
13489 }
13490 }
13491
13492 this.content.currentView.$el.toggle(!!value);
13493 }
13494 }]);
13495 return _default;
13496 }(Marionette.LayoutView);
13497
13498 exports.default = _default;
13499
13500 /***/ }),
13501 /* 719 */
13502 /***/ (function(module, exports, __webpack_require__) {
13503
13504 "use strict";
13505
13506
13507 var _interopRequireDefault = __webpack_require__(0);
13508
13509 var _Object$defineProperty = __webpack_require__(1);
13510
13511 _Object$defineProperty(exports, "__esModule", {
13512 value: true
13513 });
13514
13515 exports.default = void 0;
13516
13517 var _values = _interopRequireDefault(__webpack_require__(54));
13518
13519 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13520
13521 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13522
13523 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13524
13525 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13526
13527 var _category = _interopRequireDefault(__webpack_require__(677));
13528
13529 var _dynamicCategory = _interopRequireDefault(__webpack_require__(722));
13530
13531 var _default = /*#__PURE__*/function (_Marionette$Composite) {
13532 (0, _inherits2.default)(_default, _Marionette$Composite);
13533
13534 var _super = (0, _createSuper2.default)(_default);
13535
13536 function _default() {
13537 (0, _classCallCheck2.default)(this, _default);
13538 return _super.apply(this, arguments);
13539 }
13540
13541 (0, _createClass2.default)(_default, [{
13542 key: "id",
13543 value: function id() {
13544 return 'elementor-finder__results-container';
13545 }
13546 }, {
13547 key: "ui",
13548 value: function ui() {
13549 return {
13550 noResults: '#elementor-finder__no-results',
13551 categoryItem: '.elementor-finder__results__item'
13552 };
13553 }
13554 }, {
13555 key: "events",
13556 value: function events() {
13557 return {
13558 'mouseenter @ui.categoryItem': 'onCategoryItemMouseEnter'
13559 };
13560 }
13561 }, {
13562 key: "getTemplate",
13563 value: function getTemplate() {
13564 return '#tmpl-elementor-finder-results-container';
13565 }
13566 }, {
13567 key: "getChildView",
13568 value: function getChildView(childModel) {
13569 return childModel.get('dynamic') ? _dynamicCategory.default : _category.default;
13570 }
13571 }, {
13572 key: "initialize",
13573 value: function initialize() {
13574 this.$activeItem = null;
13575 this.childViewContainer = '#elementor-finder__results';
13576 this.collection = new Backbone.Collection((0, _values.default)(elementorCommon.finder.getSettings('data')));
13577 }
13578 }, {
13579 key: "activateItem",
13580 value: function activateItem($item) {
13581 if (this.$activeItem) {
13582 this.$activeItem.removeClass('elementor-active');
13583 }
13584
13585 $item.addClass('elementor-active');
13586 this.$activeItem = $item;
13587 }
13588 }, {
13589 key: "activateNextItem",
13590 value: function activateNextItem(reverse) {
13591 var $allItems = jQuery(this.ui.categoryItem.selector);
13592 var nextItemIndex = 0;
13593
13594 if (this.$activeItem) {
13595 nextItemIndex = $allItems.index(this.$activeItem) + (reverse ? -1 : 1);
13596
13597 if (nextItemIndex >= $allItems.length) {
13598 nextItemIndex = 0;
13599 } else if (nextItemIndex < 0) {
13600 nextItemIndex = $allItems.length - 1;
13601 }
13602 }
13603
13604 var $nextItem = $allItems.eq(nextItemIndex);
13605 this.activateItem($nextItem);
13606 $nextItem[0].scrollIntoView({
13607 block: 'nearest'
13608 });
13609 }
13610 }, {
13611 key: "goToActiveItem",
13612 value: function goToActiveItem(event) {
13613 var $a = this.$activeItem.children('a'),
13614 isControlClicked = $e.shortcuts.isControlEvent(event);
13615
13616 if (isControlClicked) {
13617 $a.attr('target', '_blank');
13618 }
13619
13620 $a[0].click();
13621
13622 if (isControlClicked) {
13623 $a.removeAttr('target');
13624 }
13625 }
13626 }, {
13627 key: "onCategoryItemMouseEnter",
13628 value: function onCategoryItemMouseEnter(event) {
13629 this.activateItem(jQuery(event.currentTarget));
13630 }
13631 }, {
13632 key: "onChildviewToggleVisibility",
13633 value: function onChildviewToggleVisibility() {
13634 var allCategoriesAreEmpty = this.children.every(function (child) {
13635 return !child.isVisible;
13636 });
13637 this.ui.noResults.toggle(allCategoriesAreEmpty);
13638 }
13639 }]);
13640 return _default;
13641 }(Marionette.CompositeView);
13642
13643 exports.default = _default;
13644
13645 /***/ }),
13646 /* 720 */
13647 /***/ (function(module, exports, __webpack_require__) {
13648
13649 "use strict";
13650
13651
13652 var _interopRequireDefault = __webpack_require__(0);
13653
13654 var _Object$defineProperty = __webpack_require__(1);
13655
13656 _Object$defineProperty(exports, "__esModule", {
13657 value: true
13658 });
13659
13660 exports.default = void 0;
13661
13662 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13663
13664 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13665
13666 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13667
13668 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13669
13670 var _default = /*#__PURE__*/function (_Marionette$ItemView) {
13671 (0, _inherits2.default)(_default, _Marionette$ItemView);
13672
13673 var _super = (0, _createSuper2.default)(_default);
13674
13675 function _default() {
13676 (0, _classCallCheck2.default)(this, _default);
13677 return _super.apply(this, arguments);
13678 }
13679
13680 (0, _createClass2.default)(_default, [{
13681 key: "className",
13682 value: function className() {
13683 return 'elementor-finder__results__item';
13684 }
13685 }, {
13686 key: "getTemplate",
13687 value: function getTemplate() {
13688 return '#tmpl-elementor-finder__results__item';
13689 }
13690 }]);
13691 return _default;
13692 }(Marionette.ItemView);
13693
13694 exports.default = _default;
13695
13696 /***/ }),
13697 /* 721 */
13698 /***/ (function(module, exports, __webpack_require__) {
13699
13700 "use strict";
13701
13702
13703 var _interopRequireDefault = __webpack_require__(0);
13704
13705 var _Object$defineProperty = __webpack_require__(1);
13706
13707 _Object$defineProperty(exports, "__esModule", {
13708 value: true
13709 });
13710
13711 exports.default = void 0;
13712
13713 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13714
13715 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13716
13717 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13718
13719 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13720
13721 var _default = /*#__PURE__*/function (_Backbone$Model) {
13722 (0, _inherits2.default)(_default, _Backbone$Model);
13723
13724 var _super = (0, _createSuper2.default)(_default);
13725
13726 function _default() {
13727 (0, _classCallCheck2.default)(this, _default);
13728 return _super.apply(this, arguments);
13729 }
13730
13731 (0, _createClass2.default)(_default, [{
13732 key: "defaults",
13733 value: function defaults() {
13734 return {
13735 description: '',
13736 icon: 'settings',
13737 url: '',
13738 keywords: [],
13739 actions: []
13740 };
13741 }
13742 }]);
13743 return _default;
13744 }(Backbone.Model);
13745
13746 exports.default = _default;
13747
13748 /***/ }),
13749 /* 722 */
13750 /***/ (function(module, exports, __webpack_require__) {
13751
13752 "use strict";
13753
13754
13755 var _interopRequireDefault = __webpack_require__(0);
13756
13757 var _Object$defineProperty = __webpack_require__(1);
13758
13759 _Object$defineProperty(exports, "__esModule", {
13760 value: true
13761 });
13762
13763 exports.default = void 0;
13764
13765 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13766
13767 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13768
13769 var _get2 = _interopRequireDefault(__webpack_require__(25));
13770
13771 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13772
13773 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13774
13775 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13776
13777 var _category = _interopRequireDefault(__webpack_require__(677));
13778
13779 var _default = /*#__PURE__*/function (_Category) {
13780 (0, _inherits2.default)(_default, _Category);
13781
13782 var _super = (0, _createSuper2.default)(_default);
13783
13784 function _default() {
13785 (0, _classCallCheck2.default)(this, _default);
13786 return _super.apply(this, arguments);
13787 }
13788
13789 (0, _createClass2.default)(_default, [{
13790 key: "className",
13791 value: function className() {
13792 return (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "className", this).call(this) + ' elementor-finder__results__category--dynamic';
13793 }
13794 }, {
13795 key: "ui",
13796 value: function ui() {
13797 return {
13798 title: '.elementor-finder__results__category__title'
13799 };
13800 }
13801 }, {
13802 key: "fetchData",
13803 value: function fetchData() {
13804 var _this = this;
13805
13806 this.ui.loadingIcon.show();
13807 elementorCommon.ajax.addRequest('finder_get_category_items', {
13808 data: {
13809 category: this.model.get('name'),
13810 filter: this.getTextFilter()
13811 },
13812 success: function success(data) {
13813 if (_this.isDestroyed) {
13814 return;
13815 }
13816
13817 _this.collection.set(data);
13818
13819 _this.toggleElement();
13820
13821 _this.ui.loadingIcon.hide();
13822 }
13823 });
13824 }
13825 }, {
13826 key: "filter",
13827 value: function filter() {
13828 return true;
13829 }
13830 }, {
13831 key: "onFilterChange",
13832 value: function onFilterChange() {
13833 this.fetchData();
13834 }
13835 }, {
13836 key: "onRender",
13837 value: function onRender() {
13838 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onRender", this).call(this);
13839 this.ui.loadingIcon = jQuery('<i>', {
13840 class: 'eicon-loading eicon-animation-spin'
13841 });
13842 this.ui.title.after(this.ui.loadingIcon);
13843 this.fetchData();
13844 }
13845 }]);
13846 return _default;
13847 }(_category.default);
13848
13849 exports.default = _default;
13850
13851 /***/ }),
13852 /* 723 */
13853 /***/ (function(module, exports, __webpack_require__) {
13854
13855 "use strict";
13856
13857
13858 var _Object$defineProperty = __webpack_require__(1);
13859
13860 _Object$defineProperty(exports, "__esModule", {
13861 value: true
13862 });
13863
13864 _Object$defineProperty(exports, "NavigateDown", {
13865 enumerable: true,
13866 get: function get() {
13867 return _navigateDown.NavigateDown;
13868 }
13869 });
13870
13871 _Object$defineProperty(exports, "NavigateSelect", {
13872 enumerable: true,
13873 get: function get() {
13874 return _navigateSelect.NavigateSelect;
13875 }
13876 });
13877
13878 _Object$defineProperty(exports, "NavigateUp", {
13879 enumerable: true,
13880 get: function get() {
13881 return _navigateUp.NavigateUp;
13882 }
13883 });
13884
13885 var _navigateDown = __webpack_require__(724);
13886
13887 var _navigateSelect = __webpack_require__(725);
13888
13889 var _navigateUp = __webpack_require__(726);
13890
13891 /***/ }),
13892 /* 724 */
13893 /***/ (function(module, exports, __webpack_require__) {
13894
13895 "use strict";
13896
13897
13898 var _interopRequireDefault = __webpack_require__(0);
13899
13900 var _Object$defineProperty = __webpack_require__(1);
13901
13902 _Object$defineProperty(exports, "__esModule", {
13903 value: true
13904 });
13905
13906 exports.default = exports.NavigateDown = void 0;
13907
13908 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13909
13910 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13911
13912 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13913
13914 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13915
13916 var _commandBase = _interopRequireDefault(__webpack_require__(21));
13917
13918 var NavigateDown = /*#__PURE__*/function (_CommandBase) {
13919 (0, _inherits2.default)(NavigateDown, _CommandBase);
13920
13921 var _super = (0, _createSuper2.default)(NavigateDown);
13922
13923 function NavigateDown() {
13924 (0, _classCallCheck2.default)(this, NavigateDown);
13925 return _super.apply(this, arguments);
13926 }
13927
13928 (0, _createClass2.default)(NavigateDown, [{
13929 key: "apply",
13930 value: function apply() {
13931 this.component.getItemsView().activateNextItem();
13932 }
13933 }]);
13934 return NavigateDown;
13935 }(_commandBase.default);
13936
13937 exports.NavigateDown = NavigateDown;
13938 var _default = NavigateDown;
13939 exports.default = _default;
13940
13941 /***/ }),
13942 /* 725 */
13943 /***/ (function(module, exports, __webpack_require__) {
13944
13945 "use strict";
13946
13947
13948 var _interopRequireDefault = __webpack_require__(0);
13949
13950 var _Object$defineProperty = __webpack_require__(1);
13951
13952 _Object$defineProperty(exports, "__esModule", {
13953 value: true
13954 });
13955
13956 exports.default = exports.NavigateSelect = void 0;
13957
13958 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13959
13960 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13961
13962 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13963
13964 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13965
13966 var _commandBase = _interopRequireDefault(__webpack_require__(21));
13967
13968 var NavigateSelect = /*#__PURE__*/function (_CommandBase) {
13969 (0, _inherits2.default)(NavigateSelect, _CommandBase);
13970
13971 var _super = (0, _createSuper2.default)(NavigateSelect);
13972
13973 function NavigateSelect() {
13974 (0, _classCallCheck2.default)(this, NavigateSelect);
13975 return _super.apply(this, arguments);
13976 }
13977
13978 (0, _createClass2.default)(NavigateSelect, [{
13979 key: "apply",
13980 value: function apply(args) {
13981 this.component.getItemsView().goToActiveItem(args);
13982 }
13983 }]);
13984 return NavigateSelect;
13985 }(_commandBase.default);
13986
13987 exports.NavigateSelect = NavigateSelect;
13988 var _default = NavigateSelect;
13989 exports.default = _default;
13990
13991 /***/ }),
13992 /* 726 */
13993 /***/ (function(module, exports, __webpack_require__) {
13994
13995 "use strict";
13996
13997
13998 var _interopRequireDefault = __webpack_require__(0);
13999
14000 var _Object$defineProperty = __webpack_require__(1);
14001
14002 _Object$defineProperty(exports, "__esModule", {
14003 value: true
14004 });
14005
14006 exports.default = exports.NavigateUp = void 0;
14007
14008 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14009
14010 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14011
14012 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14013
14014 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14015
14016 var _commandBase = _interopRequireDefault(__webpack_require__(21));
14017
14018 var NavigateUp = /*#__PURE__*/function (_CommandBase) {
14019 (0, _inherits2.default)(NavigateUp, _CommandBase);
14020
14021 var _super = (0, _createSuper2.default)(NavigateUp);
14022
14023 function NavigateUp() {
14024 (0, _classCallCheck2.default)(this, NavigateUp);
14025 return _super.apply(this, arguments);
14026 }
14027
14028 (0, _createClass2.default)(NavigateUp, [{
14029 key: "apply",
14030 value: function apply() {
14031 this.component.getItemsView().activateNextItem(true);
14032 }
14033 }]);
14034 return NavigateUp;
14035 }(_commandBase.default);
14036
14037 exports.NavigateUp = NavigateUp;
14038 var _default = NavigateUp;
14039 exports.default = _default;
14040
14041 /***/ }),
14042 /* 727 */
14043 /***/ (function(module, exports, __webpack_require__) {
14044
14045 "use strict";
14046
14047
14048 var _interopRequireDefault = __webpack_require__(0);
14049
14050 var _Object$defineProperty = __webpack_require__(1);
14051
14052 _Object$defineProperty(exports, "__esModule", {
14053 value: true
14054 });
14055
14056 exports.default = void 0;
14057
14058 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14059
14060 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14061
14062 var _get2 = _interopRequireDefault(__webpack_require__(25));
14063
14064 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14065
14066 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14067
14068 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14069
14070 var _default = /*#__PURE__*/function (_elementorModules$Vie) {
14071 (0, _inherits2.default)(_default, _elementorModules$Vie);
14072
14073 var _super = (0, _createSuper2.default)(_default);
14074
14075 function _default() {
14076 (0, _classCallCheck2.default)(this, _default);
14077 return _super.apply(this, arguments);
14078 }
14079
14080 (0, _createClass2.default)(_default, [{
14081 key: "addPopupPlugin",
14082 value: function addPopupPlugin() {
14083 var counter = 0;
14084
14085 jQuery.fn.elementorConnect = function (options) {
14086 var settings = jQuery.extend({
14087 // These are the defaults.
14088 success: function success() {
14089 return location.reload();
14090 },
14091 error: function error() {
14092 elementor.notifications.showToast({
14093 message: elementor.translate('connect_error')
14094 });
14095 }
14096 }, options);
14097 this.each(function () {
14098 counter++;
14099 var $this = jQuery(this),
14100 callbackId = 'cb' + counter;
14101 $this.attr({
14102 target: '_blank',
14103 href: $this.attr('href') + '&mode=popup&callback_id=' + callbackId
14104 });
14105 elementorCommon.elements.$window.on('elementor/connect/success/' + callbackId, settings.success).on('elementor/connect/error/' + callbackId, settings.error);
14106 });
14107 return this;
14108 };
14109 }
14110 }, {
14111 key: "getDefaultSettings",
14112 value: function getDefaultSettings() {
14113 return {
14114 selectors: {
14115 connectButton: '#elementor-template-library-connect__button'
14116 }
14117 };
14118 }
14119 }, {
14120 key: "getDefaultElements",
14121 value: function getDefaultElements() {
14122 return {
14123 $connectButton: jQuery(this.getSettings('selectors.connectButton'))
14124 };
14125 }
14126 }, {
14127 key: "applyPopup",
14128 value: function applyPopup() {
14129 this.elements.$connectButton.elementorConnect();
14130 }
14131 }, {
14132 key: "onInit",
14133 value: function onInit() {
14134 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
14135 this.addPopupPlugin();
14136 this.applyPopup();
14137 }
14138 }]);
14139 return _default;
14140 }(elementorModules.ViewModule);
14141
14142 exports.default = _default;
14143
14144 /***/ }),
14145 /* 728 */
14146 /***/ (function(module, exports, __webpack_require__) {
14147
14148 "use strict";
14149
14150
14151 var _interopRequireWildcard = __webpack_require__(36);
14152
14153 var _interopRequireDefault = __webpack_require__(0);
14154
14155 var _Object$defineProperty = __webpack_require__(1);
14156
14157 _Object$defineProperty(exports, "__esModule", {
14158 value: true
14159 });
14160
14161 exports.default = void 0;
14162
14163 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14164
14165 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14166
14167 var _backwardsCompatibility = _interopRequireDefault(__webpack_require__(729));
14168
14169 var _commandBase = _interopRequireDefault(__webpack_require__(21));
14170
14171 var _commandInternalBase = _interopRequireDefault(__webpack_require__(203));
14172
14173 var _commandData = _interopRequireDefault(__webpack_require__(313));
14174
14175 var _commands = _interopRequireDefault(__webpack_require__(341));
14176
14177 var _commandsInternal = _interopRequireDefault(__webpack_require__(730));
14178
14179 var _componentBase = _interopRequireDefault(__webpack_require__(82));
14180
14181 var _componentModalBase = _interopRequireDefault(__webpack_require__(286));
14182
14183 var _components = _interopRequireDefault(__webpack_require__(731));
14184
14185 var _data = _interopRequireDefault(__webpack_require__(628));
14186
14187 var _hookBreak = _interopRequireDefault(__webpack_require__(633));
14188
14189 var _hooks = _interopRequireDefault(__webpack_require__(732));
14190
14191 var _routes = _interopRequireDefault(__webpack_require__(735));
14192
14193 var _shortcuts = _interopRequireDefault(__webpack_require__(736));
14194
14195 var hookData = _interopRequireWildcard(__webpack_require__(737));
14196
14197 var hookUI = _interopRequireWildcard(__webpack_require__(739));
14198
14199 /* Alphabetical order */
14200 var API = /*#__PURE__*/function () {
14201 /**
14202 * Function constructor().
14203 *
14204 * Create's 'elementor' api.
14205 */
14206 function API() {
14207 (0, _classCallCheck2.default)(this, API);
14208 window.$e = this;
14209 this.components = new _components.default();
14210 this.commands = new _commands.default();
14211 this.commandsInternal = new _commandsInternal.default();
14212 this.hooks = new _hooks.default();
14213 this.routes = new _routes.default();
14214 this.shortcuts = new _shortcuts.default(jQuery(window));
14215 this.data = new _data.default();
14216 this.modules = {
14217 CommandBase: _commandBase.default,
14218 CommandInternalBase: _commandInternalBase.default,
14219 CommandData: _commandData.default,
14220 ComponentBase: _componentBase.default,
14221 ComponentModalBase: _componentModalBase.default,
14222 HookBreak: _hookBreak.default,
14223 hookData: hookData,
14224 hookUI: hookUI
14225 }; // Backwards compatibility should be last, in order to handle others.
14226
14227 this.bc = new _backwardsCompatibility.default();
14228 }
14229 /**
14230 * Function run().
14231 *
14232 * Alias of `$e.commands.run()`.
14233 *
14234 * @param {string} command
14235 * @param [args={}]
14236 *
14237 * @returns {*}
14238 */
14239
14240
14241 (0, _createClass2.default)(API, [{
14242 key: "run",
14243 value: function run(command) {
14244 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14245 return $e.commands.run(command, args);
14246 }
14247 /**
14248 * Function internal().
14249 *
14250 * Alias of `$e.commandsInternal.run()`.
14251 *
14252 * @param {string} command
14253 * @param [args={}]
14254 *
14255 * @returns {boolean}
14256 */
14257
14258 }, {
14259 key: "internal",
14260 value: function internal(command) {
14261 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14262 return $e.commandsInternal.run(command, args);
14263 }
14264 /**
14265 * Function route().
14266 *
14267 * Alias of `$e.routes.to()`.
14268 *
14269 * @param {string} route
14270 * @param [args={}]
14271 */
14272
14273 }, {
14274 key: "route",
14275 value: function route(_route) {
14276 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14277 return $e.routes.to(_route, args);
14278 } // TODO: shortcut();
14279
14280 }]);
14281 return API;
14282 }();
14283
14284 exports.default = API;
14285
14286 /***/ }),
14287 /* 729 */
14288 /***/ (function(module, exports, __webpack_require__) {
14289
14290 "use strict";
14291
14292
14293 var _interopRequireDefault = __webpack_require__(0);
14294
14295 var _Object$defineProperty = __webpack_require__(1);
14296
14297 _Object$defineProperty(exports, "__esModule", {
14298 value: true
14299 });
14300
14301 exports.default = void 0;
14302
14303 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14304
14305 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14306
14307 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14308
14309 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14310
14311 var _componentBase = _interopRequireDefault(__webpack_require__(82));
14312
14313 var BackwardsCompatibility = /*#__PURE__*/function () {
14314 function BackwardsCompatibility() {
14315 (0, _classCallCheck2.default)(this, BackwardsCompatibility);
14316 }
14317
14318 (0, _createClass2.default)(BackwardsCompatibility, [{
14319 key: "ensureTab",
14320 value: function ensureTab(namespace, tabSlug) {
14321 var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
14322 var component = $e.components.get(namespace);
14323
14324 if (!component) {
14325 var Component = /*#__PURE__*/function (_ComponentBase) {
14326 (0, _inherits2.default)(Component, _ComponentBase);
14327
14328 var _super = (0, _createSuper2.default)(Component);
14329
14330 function Component() {
14331 (0, _classCallCheck2.default)(this, Component);
14332 return _super.apply(this, arguments);
14333 }
14334
14335 (0, _createClass2.default)(Component, [{
14336 key: "getNamespace",
14337 value: function getNamespace() {
14338 return namespace;
14339 }
14340 }, {
14341 key: "renderTab",
14342 value: function renderTab(tab) {
14343 elementor.getPanelView().setPage(page).activateTab(tab);
14344 }
14345 }]);
14346 return Component;
14347 }(_componentBase.default);
14348
14349 component = $e.components.register(new Component());
14350 }
14351
14352 if (!component.hasTab(tabSlug) && elementor.config.tabs[tabSlug]) {
14353 component.addTab(tabSlug, {
14354 title: elementor.config.tabs[tabSlug]
14355 });
14356 }
14357 }
14358 }]);
14359 return BackwardsCompatibility;
14360 }();
14361
14362 exports.default = BackwardsCompatibility;
14363
14364 /***/ }),
14365 /* 730 */
14366 /***/ (function(module, exports, __webpack_require__) {
14367
14368 "use strict";
14369
14370
14371 var _interopRequireDefault = __webpack_require__(0);
14372
14373 var _Object$defineProperty = __webpack_require__(1);
14374
14375 _Object$defineProperty(exports, "__esModule", {
14376 value: true
14377 });
14378
14379 exports.default = void 0;
14380
14381 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14382
14383 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14384
14385 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14386
14387 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14388
14389 var _commands = _interopRequireDefault(__webpack_require__(341));
14390
14391 var CommandsInternal = /*#__PURE__*/function (_Commands) {
14392 (0, _inherits2.default)(CommandsInternal, _Commands);
14393
14394 var _super = (0, _createSuper2.default)(CommandsInternal);
14395
14396 function CommandsInternal() {
14397 (0, _classCallCheck2.default)(this, CommandsInternal);
14398 return _super.apply(this, arguments);
14399 }
14400
14401 (0, _createClass2.default)(CommandsInternal, [{
14402 key: "error",
14403 value: function error(message) {
14404 throw Error('Commands internal: ' + message);
14405 }
14406 }]);
14407 return CommandsInternal;
14408 }(_commands.default);
14409
14410 exports.default = CommandsInternal;
14411
14412 /***/ }),
14413 /* 731 */
14414 /***/ (function(module, exports, __webpack_require__) {
14415
14416 "use strict";
14417
14418
14419 var _interopRequireDefault = __webpack_require__(0);
14420
14421 var _Object$defineProperty = __webpack_require__(1);
14422
14423 _Object$defineProperty(exports, "__esModule", {
14424 value: true
14425 });
14426
14427 exports.default = void 0;
14428
14429 var _keys = _interopRequireDefault(__webpack_require__(23));
14430
14431 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14432
14433 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14434
14435 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14436
14437 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14438
14439 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
14440 (0, _inherits2.default)(_default, _elementorModules$Mod);
14441
14442 var _super = (0, _createSuper2.default)(_default);
14443
14444 function _default() {
14445 var _this;
14446
14447 (0, _classCallCheck2.default)(this, _default);
14448
14449 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14450 args[_key] = arguments[_key];
14451 }
14452
14453 _this = _super.call.apply(_super, [this].concat(args));
14454 _this.components = {};
14455 _this.activeComponents = {};
14456 return _this;
14457 }
14458
14459 (0, _createClass2.default)(_default, [{
14460 key: "getAll",
14461 value: function getAll() {
14462 return (0, _keys.default)(this.components).sort();
14463 }
14464 }, {
14465 key: "register",
14466 value: function register(component) {
14467 if (this.components[component.getNamespace()]) {
14468 return;
14469 }
14470
14471 component.registerAPI();
14472 this.components[component.getNamespace()] = component;
14473 return component;
14474 }
14475 /**
14476 * @returns {Component}
14477 */
14478
14479 }, {
14480 key: "get",
14481 value: function get(id) {
14482 return this.components[id];
14483 }
14484 }, {
14485 key: "getActive",
14486 value: function getActive() {
14487 return this.activeComponents;
14488 }
14489 }, {
14490 key: "activate",
14491 value: function activate(namespace) {
14492 // Add as last.
14493 this.inactivate(namespace);
14494 this.activeComponents[namespace] = true;
14495 }
14496 }, {
14497 key: "inactivate",
14498 value: function inactivate(namespace) {
14499 delete this.activeComponents[namespace];
14500 }
14501 }, {
14502 key: "isActive",
14503 value: function isActive(namespace) {
14504 return !!this.activeComponents[namespace];
14505 }
14506 }]);
14507 return _default;
14508 }(elementorModules.Module);
14509
14510 exports.default = _default;
14511
14512 /***/ }),
14513 /* 732 */
14514 /***/ (function(module, exports, __webpack_require__) {
14515
14516 "use strict";
14517
14518
14519 var _interopRequireDefault = __webpack_require__(0);
14520
14521 var _Object$defineProperty = __webpack_require__(1);
14522
14523 _Object$defineProperty(exports, "__esModule", {
14524 value: true
14525 });
14526
14527 exports.default = void 0;
14528
14529 __webpack_require__(26);
14530
14531 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14532
14533 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14534
14535 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
14536
14537 var _data = _interopRequireDefault(__webpack_require__(733));
14538
14539 var _ui = _interopRequireDefault(__webpack_require__(734));
14540
14541 var Hooks = /*#__PURE__*/function () {
14542 function Hooks() {
14543 (0, _classCallCheck2.default)(this, Hooks);
14544 (0, _defineProperty2.default)(this, "data", new _data.default());
14545 (0, _defineProperty2.default)(this, "ui", new _ui.default());
14546 }
14547
14548 (0, _createClass2.default)(Hooks, [{
14549 key: "activate",
14550
14551 /**
14552 * Function activate().
14553 *
14554 * Activate all hooks.
14555 */
14556 value: function activate() {
14557 this.getTypes().forEach(function (hooksType) {
14558 hooksType.activate();
14559 });
14560 }
14561 /**
14562 * Function deactivate().
14563 *
14564 * Deactivate all hooks.
14565 */
14566
14567 }, {
14568 key: "deactivate",
14569 value: function deactivate() {
14570 this.getTypes().forEach(function (hooksType) {
14571 hooksType.deactivate();
14572 });
14573 }
14574 }, {
14575 key: "getAll",
14576 value: function getAll() {
14577 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
14578 var result = {};
14579 this.getTypes().forEach(function (hooksType) {
14580 result[hooksType.getType()] = hooksType.getAll(flat);
14581 });
14582 return result;
14583 }
14584 }, {
14585 key: "getTypes",
14586 value: function getTypes() {
14587 return [this.data, this.ui];
14588 }
14589 }, {
14590 key: "getType",
14591 value: function getType(type) {
14592 return this.getTypes().find(function (hooks) {
14593 return type === hooks.getType();
14594 });
14595 }
14596 /**
14597 * Function register().
14598 *
14599 * Register hook.
14600 *
14601 * @param {string} type
14602 * @param {string} event
14603 * @param {HookBase} instance
14604 *
14605 * @returns {{}} Created callback
14606 */
14607
14608 }, {
14609 key: "register",
14610 value: function register(type, event, instance) {
14611 return this.getType(type).register(event, instance);
14612 }
14613 /**
14614 * Function run().
14615 *
14616 * Run's a hook.
14617 *
14618 * @param {string} type
14619 * @param {string} event
14620 * @param {string} command
14621 * @param {{}} args
14622 * @param {*} result
14623 *
14624 * @returns {boolean}
14625 */
14626
14627 }, {
14628 key: "run",
14629 value: function run(type, event, command, args) {
14630 var result = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
14631 return this.getType(type).run(event, command, args, result);
14632 }
14633 /**
14634 * Function registerDataAfter().
14635 *
14636 * Register data hook that's run after the command.
14637 *
14638 * @param {HookBase} instance
14639 *
14640 * @returns {{}}
14641 */
14642
14643 }, {
14644 key: "registerDataAfter",
14645 value: function registerDataAfter(instance) {
14646 return this.register('data', 'after', instance);
14647 }
14648 /**
14649 * Function registerDataCatch().
14650 *
14651 * Register data hook that's run when the command fails.
14652 *
14653 * @param {HookBase} instance
14654 *
14655 * @returns {{}}
14656 */
14657
14658 }, {
14659 key: "registerDataCatch",
14660 value: function registerDataCatch(instance) {
14661 return this.register('data', 'catch', instance);
14662 }
14663 /**
14664 * Function registerDataDependency().
14665 *
14666 * Register data hook that's run before the command as dependency.
14667 *
14668 * @param {HookBase} instance
14669 *
14670 * @returns {{}}
14671 */
14672
14673 }, {
14674 key: "registerDataDependency",
14675 value: function registerDataDependency(instance) {
14676 return this.register('data', 'dependency', instance);
14677 }
14678 /**
14679 * Function registerUIAfter().
14680 *
14681 * Register UI hook that's run after the commands run.
14682 *
14683 * @param {HookBase} instance
14684 *
14685 * @returns {{}}
14686 */
14687
14688 }, {
14689 key: "registerUIAfter",
14690 value: function registerUIAfter(instance) {
14691 return this.register('ui', 'after', instance);
14692 }
14693 /**
14694 * Function registerUICatch().
14695 *
14696 * Register UI hook that's run when the command fails.
14697 *
14698 * @param {HookBase} instance
14699 *
14700 * @returns {{}}
14701 */
14702
14703 }, {
14704 key: "registerUICatch",
14705 value: function registerUICatch(instance) {
14706 return this.register('ui', 'catch', instance);
14707 }
14708 /**
14709 * Function registerUIBefore().
14710 *
14711 * Register UI hook that's run before the command.
14712 *
14713 * @param {HookBase} instance
14714 *
14715 * @returns {{}}
14716 */
14717
14718 }, {
14719 key: "registerUIBefore",
14720 value: function registerUIBefore(instance) {
14721 return this.register('ui', 'before', instance);
14722 }
14723 /**
14724 * Function runDataAfter().
14725 *
14726 * Run data hook that's run after the command.
14727 *
14728 * @param {string} command
14729 * @param {{}} args
14730 * @param {*} result
14731 *
14732 * @returns {boolean}
14733 */
14734
14735 }, {
14736 key: "runDataAfter",
14737 value: function runDataAfter(command, args, result) {
14738 return this.run('data', 'after', command, args, result);
14739 }
14740 /**
14741 * Function runDataCatch().
14742 *
14743 * Run data hook that's run when the command fails.
14744 *
14745 * @param {string} command
14746 * @param {{}} args
14747 * @param {*} error
14748 *
14749 * @returns {boolean}
14750 */
14751
14752 }, {
14753 key: "runDataCatch",
14754 value: function runDataCatch(command, args, error) {
14755 return this.run('data', 'catch', command, args, error);
14756 }
14757 /**
14758 * Function runDataDependency().
14759 *
14760 * Run data hook that's run before the command as dependency.
14761 *
14762 * @param {string} command
14763 * @param {{}} args
14764 *
14765 * @returns {boolean}
14766 */
14767
14768 }, {
14769 key: "runDataDependency",
14770 value: function runDataDependency(command, args) {
14771 return this.run('data', 'dependency', command, args);
14772 }
14773 /**
14774 * Function runUIAfter().
14775 *
14776 * Run UI hook that's run after the commands run.
14777 *
14778 * @param {string} command
14779 * @param {{}} args
14780 * @param {*} result
14781 *
14782 * @returns {boolean}
14783 */
14784
14785 }, {
14786 key: "runUIAfter",
14787 value: function runUIAfter(command, args, result) {
14788 return this.run('ui', 'after', command, args, result);
14789 }
14790 /**
14791 * Function runUICatch().
14792 *
14793 * Run UI hook that's run when the command fails.
14794 *
14795 * @param {string} command
14796 * @param {{}} args
14797 * @param {*} e
14798 *
14799 * @returns {boolean}
14800 */
14801
14802 }, {
14803 key: "runUICatch",
14804 value: function runUICatch(command, args, e) {
14805 return this.run('ui', 'catch', command, args, e);
14806 }
14807 /**
14808 * Function runUIBefore().
14809 *
14810 * Run UI hook that's run before the command.
14811 *
14812 * @param {string} command
14813 * @param {{}} args
14814 *
14815 * @returns {boolean}
14816 */
14817
14818 }, {
14819 key: "runUIBefore",
14820 value: function runUIBefore(command, args) {
14821 return this.run('ui', 'before', command, args);
14822 }
14823 }]);
14824 return Hooks;
14825 }();
14826
14827 exports.default = Hooks;
14828
14829 /***/ }),
14830 /* 733 */
14831 /***/ (function(module, exports, __webpack_require__) {
14832
14833 "use strict";
14834
14835
14836 var _interopRequireDefault = __webpack_require__(0);
14837
14838 var _Object$defineProperty = __webpack_require__(1);
14839
14840 _Object$defineProperty(exports, "__esModule", {
14841 value: true
14842 });
14843
14844 exports.default = void 0;
14845
14846 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14847
14848 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14849
14850 var _get2 = _interopRequireDefault(__webpack_require__(25));
14851
14852 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14853
14854 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14855
14856 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14857
14858 var _base = _interopRequireDefault(__webpack_require__(411));
14859
14860 var Data = /*#__PURE__*/function (_HooksBase) {
14861 (0, _inherits2.default)(Data, _HooksBase);
14862
14863 var _super = (0, _createSuper2.default)(Data);
14864
14865 function Data() {
14866 var _this;
14867
14868 (0, _classCallCheck2.default)(this, Data);
14869
14870 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14871 args[_key] = arguments[_key];
14872 }
14873
14874 _this = _super.call.apply(_super, [this].concat(args));
14875 _this.callbacks.dependency = {};
14876 _this.depth.dependency = {};
14877 return _this;
14878 }
14879
14880 (0, _createClass2.default)(Data, [{
14881 key: "getType",
14882 value: function getType() {
14883 return 'data';
14884 }
14885 }, {
14886 key: "runCallback",
14887 value: function runCallback(event, callback, args, result) {
14888 switch (event) {
14889 case 'dependency':
14890 {
14891 // If callback returns false and its dependency, then 'Hook-Break'.
14892 if (!callback.callback(args)) {
14893 this.depth[event][callback.id]--; // Throw custom break to be catch by the base for 'Safe' exit.
14894
14895 throw new $e.modules.HookBreak();
14896 }
14897
14898 return true;
14899 }
14900
14901 case 'catch':
14902 case 'after':
14903 {
14904 /**
14905 * When handling HOOK which is data after (not breakable),
14906 * even the result of the callback is negative, it is required to return positive,
14907 * since result of runCallback determine if the callback succeeded.
14908 */
14909 return callback.callback(args, result) || 'after' === event;
14910 }
14911 }
14912
14913 return false;
14914 }
14915 }, {
14916 key: "shouldRun",
14917 value: function shouldRun(callbacks) {
14918 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "shouldRun", this).call(this, callbacks) && elementor.documents.getCurrent().history.getActive();
14919 }
14920 }, {
14921 key: "onRun",
14922 value: function onRun(command, args, event) {
14923 if (!$e.devTools) {
14924 return;
14925 }
14926
14927 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
14928 }
14929 }, {
14930 key: "onCallback",
14931 value: function onCallback(command, args, event, id) {
14932 if (!$e.devTools) {
14933 return;
14934 }
14935
14936 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
14937 }
14938 }]);
14939 return Data;
14940 }(_base.default);
14941
14942 exports.default = Data;
14943
14944 /***/ }),
14945 /* 734 */
14946 /***/ (function(module, exports, __webpack_require__) {
14947
14948 "use strict";
14949
14950
14951 var _interopRequireDefault = __webpack_require__(0);
14952
14953 var _Object$defineProperty = __webpack_require__(1);
14954
14955 _Object$defineProperty(exports, "__esModule", {
14956 value: true
14957 });
14958
14959 exports.default = void 0;
14960
14961 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14962
14963 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14964
14965 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14966
14967 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14968
14969 var _base = _interopRequireDefault(__webpack_require__(411));
14970
14971 var Ui = /*#__PURE__*/function (_HooksBase) {
14972 (0, _inherits2.default)(Ui, _HooksBase);
14973
14974 var _super = (0, _createSuper2.default)(Ui);
14975
14976 function Ui() {
14977 var _this;
14978
14979 (0, _classCallCheck2.default)(this, Ui);
14980
14981 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14982 args[_key] = arguments[_key];
14983 }
14984
14985 _this = _super.call.apply(_super, [this].concat(args));
14986 _this.callbacks.before = {};
14987 _this.depth.before = {};
14988 return _this;
14989 }
14990
14991 (0, _createClass2.default)(Ui, [{
14992 key: "getType",
14993 value: function getType() {
14994 return 'ui';
14995 }
14996 }, {
14997 key: "runCallback",
14998 value: function runCallback(event, callback, args, result) {
14999 switch (event) {
15000 case 'before':
15001 callback.callback(args);
15002 break;
15003
15004 case 'catch':
15005 case 'after':
15006 callback.callback(args, result);
15007 break;
15008
15009 default:
15010 return false;
15011 }
15012
15013 return true;
15014 }
15015 }, {
15016 key: "onRun",
15017 value: function onRun(command, args, event) {
15018 if (!$e.devTools) {
15019 return;
15020 }
15021
15022 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
15023 }
15024 }, {
15025 key: "onCallback",
15026 value: function onCallback(command, args, event, id) {
15027 if (!$e.devTools) {
15028 return;
15029 }
15030
15031 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
15032 }
15033 }]);
15034 return Ui;
15035 }(_base.default);
15036
15037 exports.default = Ui;
15038
15039 /***/ }),
15040 /* 735 */
15041 /***/ (function(module, exports, __webpack_require__) {
15042
15043 "use strict";
15044
15045
15046 var _interopRequireDefault = __webpack_require__(0);
15047
15048 var _Object$defineProperty = __webpack_require__(1);
15049
15050 _Object$defineProperty(exports, "__esModule", {
15051 value: true
15052 });
15053
15054 exports.default = void 0;
15055
15056 __webpack_require__(80);
15057
15058 var _keys = _interopRequireDefault(__webpack_require__(23));
15059
15060 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15061
15062 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15063
15064 var _get2 = _interopRequireDefault(__webpack_require__(25));
15065
15066 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
15067
15068 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15069
15070 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15071
15072 var _commands = _interopRequireDefault(__webpack_require__(341));
15073
15074 var Routes = /*#__PURE__*/function (_Commands) {
15075 (0, _inherits2.default)(Routes, _Commands);
15076
15077 var _super = (0, _createSuper2.default)(Routes);
15078
15079 function Routes() {
15080 var _this;
15081
15082 (0, _classCallCheck2.default)(this, Routes);
15083
15084 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15085 args[_key] = arguments[_key];
15086 }
15087
15088 _this = _super.call.apply(_super, [this].concat(args));
15089 _this.savedStates = {};
15090 _this.historyPerComponent = {};
15091 return _this;
15092 }
15093
15094 (0, _createClass2.default)(Routes, [{
15095 key: "refreshContainer",
15096 value: function refreshContainer(container) {
15097 var currentRoute = this.getCurrent(container),
15098 currentArgs = this.getCurrentArgs(container);
15099 this.clearCurrent(container);
15100 this.to(currentRoute, currentArgs);
15101 }
15102 }, {
15103 key: "getHistory",
15104 value: function getHistory() {
15105 var namespaceRoot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
15106
15107 if (namespaceRoot) {
15108 return this.historyPerComponent[namespaceRoot] || [];
15109 }
15110
15111 return this.historyPerComponent;
15112 }
15113 }, {
15114 key: "clearHistory",
15115 value: function clearHistory(namespaceRoot) {
15116 delete this.historyPerComponent[namespaceRoot];
15117 }
15118 }, {
15119 key: "clearCurrent",
15120 value: function clearCurrent(container) {
15121 var route = this.current[container];
15122
15123 if (!route) {
15124 return;
15125 }
15126
15127 delete this.current[container];
15128 delete this.currentArgs[container];
15129 this.getComponent(route).onCloseRoute(route);
15130 }
15131 }, {
15132 key: "clear",
15133 value: function clear() {
15134 var _this2 = this;
15135
15136 (0, _keys.default)(this.current).forEach(function (container) {
15137 return _this2.clearCurrent(container);
15138 });
15139 }
15140 }, {
15141 key: "saveState",
15142 value: function saveState(container) {
15143 this.savedStates[container] = {
15144 route: this.current[container],
15145 args: this.currentArgs[container]
15146 };
15147 return this;
15148 }
15149 }, {
15150 key: "restoreState",
15151 value: function restoreState(container) {
15152 if (!this.savedStates[container]) {
15153 return false;
15154 }
15155
15156 this.to(this.savedStates[container].route, this.savedStates[container].args);
15157 return true;
15158 }
15159 }, {
15160 key: "beforeRun",
15161 value: function beforeRun(route, args) {
15162 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "beforeRun", this).call(this, route, args)) {
15163 return false;
15164 }
15165
15166 if (this.is(route, args) && !args.refresh) {
15167 return false;
15168 }
15169
15170 var component = this.getComponent(route),
15171 container = component.getRootContainer(),
15172 oldRoute = this.current[container];
15173
15174 if (oldRoute) {
15175 this.getComponent(oldRoute).onCloseRoute(oldRoute);
15176 }
15177
15178 if (!component.isOpen || args.reOpen) {
15179 component.isOpen = component.open(args);
15180 }
15181
15182 return component.isOpen;
15183 }
15184 }, {
15185 key: "to",
15186 value: function to(route, args) {
15187 this.run(route, args);
15188 var namespaceRoot = this.getComponent(route).getRootContainer();
15189
15190 if (!this.historyPerComponent[namespaceRoot]) {
15191 this.historyPerComponent[namespaceRoot] = [];
15192 }
15193
15194 this.historyPerComponent[namespaceRoot].push({
15195 route: route,
15196 args: args
15197 });
15198 }
15199 }, {
15200 key: "back",
15201 value: function back(namespaceRoot) {
15202 var history = this.getHistory(namespaceRoot); // Remove current;
15203
15204 history.pop();
15205 var last = history.pop();
15206
15207 if (!last) {
15208 return;
15209 }
15210
15211 this.to(last.route, last.args);
15212 } // Don't use the event object.
15213
15214 }, {
15215 key: "runShortcut",
15216 value: function runShortcut(command) {
15217 this.to(command);
15218 } // Don't clear current route.
15219
15220 }, {
15221 key: "afterRun",
15222 value: function afterRun(route, args) {
15223 this.getComponent(route).onRoute(route, args);
15224 }
15225 }, {
15226 key: "is",
15227 value: function is(route) {
15228 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15229
15230 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "is", this).call(this, route)) {
15231 return false;
15232 }
15233
15234 var container = this.getComponent(route).getRootContainer();
15235 return _.isEqual(args, this.currentArgs[container]);
15236 }
15237 }, {
15238 key: "isPartOf",
15239 value: function isPartOf(route) {
15240 /**
15241 * Check against current command hierarchically.
15242 * For example `is( 'panel' )` will be true for `panel/elements`
15243 * `is( 'panel/editor' )` will be true for `panel/editor/style`
15244 */
15245 var parts = route.split('/'),
15246 container = parts[0],
15247 toCheck = [],
15248 currentParts = this.current[container] ? this.current[container].split('/') : [];
15249 var match = false;
15250 currentParts.forEach(function (part) {
15251 toCheck.push(part);
15252
15253 if (toCheck.join('/') === route) {
15254 match = true;
15255 }
15256 });
15257 return match;
15258 }
15259 }, {
15260 key: "error",
15261 value: function error(message) {
15262 throw Error('Routes: ' + message);
15263 }
15264 }]);
15265 return Routes;
15266 }(_commands.default);
15267
15268 exports.default = Routes;
15269
15270 /***/ }),
15271 /* 736 */
15272 /***/ (function(module, exports, __webpack_require__) {
15273
15274 "use strict";
15275
15276
15277 var _interopRequireDefault = __webpack_require__(0);
15278
15279 var _Object$defineProperty = __webpack_require__(1);
15280
15281 _Object$defineProperty(exports, "__esModule", {
15282 value: true
15283 });
15284
15285 exports.default = void 0;
15286
15287 var _keys = _interopRequireDefault(__webpack_require__(23));
15288
15289 __webpack_require__(58);
15290
15291 __webpack_require__(80);
15292
15293 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15294
15295 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15296
15297 var _environment = _interopRequireDefault(__webpack_require__(272));
15298
15299 var Shortcuts = /*#__PURE__*/function () {
15300 function Shortcuts($window) {
15301 (0, _classCallCheck2.default)(this, Shortcuts);
15302 this.specialKeys = {
15303 13: 'enter',
15304 27: 'esc',
15305 38: 'up',
15306 40: 'down',
15307 46: 'del',
15308 191: '?'
15309 };
15310 this.component = '';
15311 this.handlers = {};
15312 this.bindListener($window);
15313 }
15314
15315 (0, _createClass2.default)(Shortcuts, [{
15316 key: "bindListener",
15317 value: function bindListener($window) {
15318 var _this = this;
15319
15320 $window.on('keydown', function (event) {
15321 return _this.handle(event);
15322 });
15323 }
15324 }, {
15325 key: "getAll",
15326 value: function getAll() {
15327 var shortcuts = {};
15328 jQuery.each(this.handlers, function (key, handler) {
15329 jQuery.each(handler, function (index, config) {
15330 shortcuts[config.command] = key;
15331 });
15332 });
15333 return shortcuts;
15334 }
15335 /**
15336 * @param shortcuts
15337 * @param {{callback: (function(): boolean), scopes: [void]}} args
15338 * @param {callback} args.callback Required
15339 * @param {string} args.component Optional
15340 * @param {callback} args.dependency Optional
15341 * @param {array} args.exclude Optional
15342 * @param {bool} args.allowAltKey Optional
15343 */
15344
15345 }, {
15346 key: "register",
15347 value: function register(shortcuts, args) {
15348 var _this2 = this;
15349
15350 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15351 if (!_this2.handlers[shortcut]) {
15352 _this2.handlers[shortcut] = [];
15353 }
15354
15355 _this2.handlers[shortcut].push(args);
15356 });
15357 }
15358 }, {
15359 key: "unregister",
15360 value: function unregister(shortcuts, args) {
15361 var _this3 = this;
15362
15363 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15364 _this3.handlers[shortcut].forEach(function (index, handler) {
15365 if (args === handler) {
15366 delete _this3.handlers[shortcut][index];
15367 }
15368 });
15369 });
15370 }
15371 }, {
15372 key: "handle",
15373 value: function handle(event) {
15374 var handlers = this.getHandlersByPriority(event);
15375
15376 if (!handlers) {
15377 return;
15378 }
15379
15380 var filteredHandlers = handlers.filter(function (handler) {
15381 if (handler.exclude && -1 !== handler.exclude.indexOf('input')) {
15382 var $target = jQuery(event.target);
15383
15384 if ($target.is(':input, .elementor-input') || $target.closest('[contenteditable="true"]').length) {
15385 return false;
15386 }
15387 }
15388
15389 if (handler.dependency && !handler.dependency(event)) {
15390 return false;
15391 } // Fix for some keyboard sources that consider alt key as ctrl key
15392
15393
15394 if (!handler.allowAltKey && event.altKey) {
15395 return false;
15396 }
15397
15398 return true;
15399 });
15400
15401 if (!filteredHandlers.length) {
15402 return;
15403 }
15404
15405 if (1 < filteredHandlers.length && elementorCommon.config.isDebug) {
15406 elementorCommon.helpers.consoleWarn('Multiple handlers for shortcut.', filteredHandlers, event);
15407 }
15408
15409 event.preventDefault();
15410 filteredHandlers[0].callback(event);
15411 }
15412 }, {
15413 key: "isControlEvent",
15414 value: function isControlEvent(event) {
15415 return event[_environment.default.mac ? 'metaKey' : 'ctrlKey'];
15416 }
15417 }, {
15418 key: "getEventShortcut",
15419 value: function getEventShortcut(event) {
15420 var shortcut = [];
15421
15422 if (event.altKey) {
15423 shortcut.push('alt');
15424 }
15425
15426 if (this.isControlEvent(event)) {
15427 shortcut.push('ctrl');
15428 }
15429
15430 if (event.shiftKey) {
15431 shortcut.push('shift');
15432 }
15433
15434 if (this.specialKeys[event.which]) {
15435 shortcut.push(this.specialKeys[event.which]);
15436 } else {
15437 shortcut.push(String.fromCharCode(event.which).toLowerCase());
15438 }
15439
15440 return shortcut.join('+');
15441 }
15442 }, {
15443 key: "isActiveScope",
15444 value: function isActiveScope(scopes) {
15445 var activeComponents = (0, _keys.default)($e.components.activeComponents),
15446 activeComponent = activeComponents[activeComponents.length - 1],
15447 component = $e.components.get(activeComponent);
15448
15449 if (!component) {
15450 return false;
15451 }
15452
15453 var namespace = component.getNamespace(),
15454 namespaceRoot = component.getRootContainer();
15455 var filteredByNamespace = scopes.some(function (scope) {
15456 return namespace === scope;
15457 });
15458
15459 if (filteredByNamespace) {
15460 return true;
15461 } // Else filter by namespaceRoot.
15462
15463
15464 return scopes.some(function (scope) {
15465 return namespaceRoot === scope;
15466 });
15467 }
15468 }, {
15469 key: "getHandlersByPriority",
15470 value: function getHandlersByPriority(event) {
15471 var _this4 = this;
15472
15473 var handlers = this.handlers[this.getEventShortcut(event)];
15474
15475 if (!handlers) {
15476 return false;
15477 } // TODO: Prioritize current scope before roo scope.
15478
15479
15480 var inCurrentScope = handlers.filter(function (handler) {
15481 return handler.scopes && _this4.isActiveScope(handler.scopes);
15482 });
15483
15484 if (inCurrentScope.length) {
15485 return inCurrentScope;
15486 }
15487
15488 var noScope = handlers.filter(function (handler) {
15489 return !handler.scopes;
15490 });
15491
15492 if (noScope.length) {
15493 return noScope;
15494 }
15495 }
15496 }]);
15497 return Shortcuts;
15498 }();
15499
15500 exports.default = Shortcuts;
15501
15502 /***/ }),
15503 /* 737 */
15504 /***/ (function(module, exports, __webpack_require__) {
15505
15506 "use strict";
15507
15508
15509 var _Object$defineProperty = __webpack_require__(1);
15510
15511 _Object$defineProperty(exports, "__esModule", {
15512 value: true
15513 });
15514
15515 _Object$defineProperty(exports, "After", {
15516 enumerable: true,
15517 get: function get() {
15518 return _after.After;
15519 }
15520 });
15521
15522 _Object$defineProperty(exports, "Base", {
15523 enumerable: true,
15524 get: function get() {
15525 return _base.Base;
15526 }
15527 });
15528
15529 _Object$defineProperty(exports, "Catch", {
15530 enumerable: true,
15531 get: function get() {
15532 return _catch.Catch;
15533 }
15534 });
15535
15536 _Object$defineProperty(exports, "Dependency", {
15537 enumerable: true,
15538 get: function get() {
15539 return _dependency.Dependency;
15540 }
15541 });
15542
15543 var _after = __webpack_require__(224);
15544
15545 var _base = __webpack_require__(285);
15546
15547 var _catch = __webpack_require__(738);
15548
15549 var _dependency = __webpack_require__(343);
15550
15551 /***/ }),
15552 /* 738 */
15553 /***/ (function(module, exports, __webpack_require__) {
15554
15555 "use strict";
15556
15557
15558 var _interopRequireDefault = __webpack_require__(0);
15559
15560 var _Object$defineProperty = __webpack_require__(1);
15561
15562 _Object$defineProperty(exports, "__esModule", {
15563 value: true
15564 });
15565
15566 exports.default = exports.Catch = void 0;
15567
15568 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15569
15570 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15571
15572 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15573
15574 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15575
15576 var _base = _interopRequireDefault(__webpack_require__(285));
15577
15578 var Catch = /*#__PURE__*/function (_Base) {
15579 (0, _inherits2.default)(Catch, _Base);
15580
15581 var _super = (0, _createSuper2.default)(Catch);
15582
15583 function Catch() {
15584 (0, _classCallCheck2.default)(this, Catch);
15585 return _super.apply(this, arguments);
15586 }
15587
15588 (0, _createClass2.default)(Catch, [{
15589 key: "register",
15590 value: function register() {
15591 $e.hooks.registerDataCatch(this);
15592 }
15593 }]);
15594 return Catch;
15595 }(_base.default);
15596
15597 exports.Catch = Catch;
15598 var _default = Catch;
15599 exports.default = _default;
15600
15601 /***/ }),
15602 /* 739 */
15603 /***/ (function(module, exports, __webpack_require__) {
15604
15605 "use strict";
15606
15607
15608 var _Object$defineProperty = __webpack_require__(1);
15609
15610 _Object$defineProperty(exports, "__esModule", {
15611 value: true
15612 });
15613
15614 _Object$defineProperty(exports, "After", {
15615 enumerable: true,
15616 get: function get() {
15617 return _after.After;
15618 }
15619 });
15620
15621 _Object$defineProperty(exports, "Base", {
15622 enumerable: true,
15623 get: function get() {
15624 return _base.Base;
15625 }
15626 });
15627
15628 _Object$defineProperty(exports, "Before", {
15629 enumerable: true,
15630 get: function get() {
15631 return _before.Before;
15632 }
15633 });
15634
15635 _Object$defineProperty(exports, "Catch", {
15636 enumerable: true,
15637 get: function get() {
15638 return _catch.Catch;
15639 }
15640 });
15641
15642 var _after = __webpack_require__(277);
15643
15644 var _base = __webpack_require__(314);
15645
15646 var _before = __webpack_require__(634);
15647
15648 var _catch = __webpack_require__(635);
15649
15650 /***/ })
15651 /******/ ]);
15652 //# sourceMappingURL=common.js.map