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

15,677 lines 412.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.0.7 - 09-09-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 = 715);
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__(156);
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__(139);
148
149 var setPrototypeOf = __webpack_require__(137);
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__(149);
177
178 var possibleConstructorReturn = __webpack_require__(171);
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__(67)('wks');
319 var uid = __webpack_require__(68);
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__(158);
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__(104);
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__(82));
456
457 __webpack_require__(147);
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__(84));
468
469 __webpack_require__(66);
470
471 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(83));
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 "use strict";
873
874 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
875 var $export = __webpack_require__(34);
876 var $find = __webpack_require__(182)(5);
877 var KEY = 'find';
878 var forced = true;
879 // Shouldn't skip holes
880 if (KEY in []) Array(1)[KEY](function () { forced = false; });
881 $export($export.P + $export.F * forced, 'Array', {
882 find: function find(callbackfn /* , that = undefined */) {
883 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
884 }
885 });
886 __webpack_require__(87)(KEY);
887
888
889 /***/ }),
890 /* 26 */
891 /***/ (function(module, exports, __webpack_require__) {
892
893 var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
894
895 var _Reflect$get = __webpack_require__(193);
896
897 var superPropBase = __webpack_require__(196);
898
899 function _get(target, property, receiver) {
900 if (typeof Reflect !== "undefined" && _Reflect$get) {
901 module.exports = _get = _Reflect$get;
902 } else {
903 module.exports = _get = function _get(target, property, receiver) {
904 var base = superPropBase(target, property);
905 if (!base) return;
906
907 var desc = _Object$getOwnPropertyDescriptor(base, property);
908
909 if (desc.get) {
910 return desc.get.call(receiver);
911 }
912
913 return desc.value;
914 };
915 }
916
917 return _get(target, property, receiver || target);
918 }
919
920 module.exports = _get;
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__(103);
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, __webpack_require__) {
1031
1032 var global = __webpack_require__(17);
1033 var core = __webpack_require__(54);
1034 var hide = __webpack_require__(29);
1035 var redefine = __webpack_require__(37);
1036 var ctx = __webpack_require__(73);
1037 var PROTOTYPE = 'prototype';
1038
1039 var $export = function (type, name, source) {
1040 var IS_FORCED = type & $export.F;
1041 var IS_GLOBAL = type & $export.G;
1042 var IS_STATIC = type & $export.S;
1043 var IS_PROTO = type & $export.P;
1044 var IS_BIND = type & $export.B;
1045 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
1046 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
1047 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
1048 var key, own, out, exp;
1049 if (IS_GLOBAL) source = name;
1050 for (key in source) {
1051 // contains in native
1052 own = !IS_FORCED && target && target[key] !== undefined;
1053 // export native or passed
1054 out = (own ? target : source)[key];
1055 // bind timers to global for call from export context
1056 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
1057 // extend global
1058 if (target) redefine(target, key, out, type & $export.U);
1059 // export
1060 if (exports[key] != out) hide(exports, key, exp);
1061 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
1062 }
1063 };
1064 global.core = core;
1065 // type bitmap
1066 $export.F = 1; // forced
1067 $export.G = 2; // global
1068 $export.S = 4; // static
1069 $export.P = 8; // proto
1070 $export.B = 16; // bind
1071 $export.W = 32; // wrap
1072 $export.U = 64; // safe
1073 $export.R = 128; // real proto method for `library`
1074 module.exports = $export;
1075
1076
1077 /***/ }),
1078 /* 35 */
1079 /***/ (function(module, exports) {
1080
1081 module.exports = {};
1082
1083
1084 /***/ }),
1085 /* 36 */
1086 /***/ (function(module, exports, __webpack_require__) {
1087
1088 var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
1089
1090 var _Object$defineProperty = __webpack_require__(1);
1091
1092 var _typeof = __webpack_require__(48);
1093
1094 var _WeakMap = __webpack_require__(263);
1095
1096 function _getRequireWildcardCache() {
1097 if (typeof _WeakMap !== "function") return null;
1098 var cache = new _WeakMap();
1099
1100 _getRequireWildcardCache = function _getRequireWildcardCache() {
1101 return cache;
1102 };
1103
1104 return cache;
1105 }
1106
1107 function _interopRequireWildcard(obj) {
1108 if (obj && obj.__esModule) {
1109 return obj;
1110 }
1111
1112 if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
1113 return {
1114 "default": obj
1115 };
1116 }
1117
1118 var cache = _getRequireWildcardCache();
1119
1120 if (cache && cache.has(obj)) {
1121 return cache.get(obj);
1122 }
1123
1124 var newObj = {};
1125 var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
1126
1127 for (var key in obj) {
1128 if (Object.prototype.hasOwnProperty.call(obj, key)) {
1129 var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
1130
1131 if (desc && (desc.get || desc.set)) {
1132 _Object$defineProperty(newObj, key, desc);
1133 } else {
1134 newObj[key] = obj[key];
1135 }
1136 }
1137 }
1138
1139 newObj["default"] = obj;
1140
1141 if (cache) {
1142 cache.set(obj, newObj);
1143 }
1144
1145 return newObj;
1146 }
1147
1148 module.exports = _interopRequireWildcard;
1149
1150 /***/ }),
1151 /* 37 */
1152 /***/ (function(module, exports, __webpack_require__) {
1153
1154 var global = __webpack_require__(17);
1155 var hide = __webpack_require__(29);
1156 var has = __webpack_require__(61);
1157 var SRC = __webpack_require__(68)('src');
1158 var $toString = __webpack_require__(145);
1159 var TO_STRING = 'toString';
1160 var TPL = ('' + $toString).split(TO_STRING);
1161
1162 __webpack_require__(54).inspectSource = function (it) {
1163 return $toString.call(it);
1164 };
1165
1166 (module.exports = function (O, key, val, safe) {
1167 var isFunction = typeof val == 'function';
1168 if (isFunction) has(val, 'name') || hide(val, 'name', key);
1169 if (O[key] === val) return;
1170 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
1171 if (O === global) {
1172 O[key] = val;
1173 } else if (!safe) {
1174 delete O[key];
1175 hide(O, key, val);
1176 } else if (O[key]) {
1177 O[key] = val;
1178 } else {
1179 hide(O, key, val);
1180 }
1181 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1182 })(Function.prototype, TO_STRING, function toString() {
1183 return typeof this == 'function' && this[SRC] || $toString.call(this);
1184 });
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__(136);
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) {
1442
1443 var core = module.exports = { version: '2.6.11' };
1444 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1445
1446
1447 /***/ }),
1448 /* 55 */
1449 /***/ (function(module, exports, __webpack_require__) {
1450
1451 module.exports = __webpack_require__(239);
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__(173)(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__(175);
1651 var global = __webpack_require__(8);
1652 var hide = __webpack_require__(24);
1653 var Iterators = __webpack_require__(35);
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 /**
1713 * Copyright (c) 2014-present, Facebook, Inc.
1714 *
1715 * This source code is licensed under the MIT license found in the
1716 * LICENSE file in the root directory of this source tree.
1717 */
1718
1719 var runtime = (function (exports) {
1720 "use strict";
1721
1722 var Op = Object.prototype;
1723 var hasOwn = Op.hasOwnProperty;
1724 var undefined; // More compressible than void 0.
1725 var $Symbol = typeof Symbol === "function" ? Symbol : {};
1726 var iteratorSymbol = $Symbol.iterator || "@@iterator";
1727 var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1728 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1729
1730 function define(obj, key, value) {
1731 Object.defineProperty(obj, key, {
1732 value: value,
1733 enumerable: true,
1734 configurable: true,
1735 writable: true
1736 });
1737 return obj[key];
1738 }
1739 try {
1740 // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1741 define({}, "");
1742 } catch (err) {
1743 define = function(obj, key, value) {
1744 return obj[key] = value;
1745 };
1746 }
1747
1748 function wrap(innerFn, outerFn, self, tryLocsList) {
1749 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1750 var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1751 var generator = Object.create(protoGenerator.prototype);
1752 var context = new Context(tryLocsList || []);
1753
1754 // The ._invoke method unifies the implementations of the .next,
1755 // .throw, and .return methods.
1756 generator._invoke = makeInvokeMethod(innerFn, self, context);
1757
1758 return generator;
1759 }
1760 exports.wrap = wrap;
1761
1762 // Try/catch helper to minimize deoptimizations. Returns a completion
1763 // record like context.tryEntries[i].completion. This interface could
1764 // have been (and was previously) designed to take a closure to be
1765 // invoked without arguments, but in all the cases we care about we
1766 // already have an existing method we want to call, so there's no need
1767 // to create a new function object. We can even get away with assuming
1768 // the method takes exactly one argument, since that happens to be true
1769 // in every case, so we don't have to touch the arguments object. The
1770 // only additional allocation required is the completion record, which
1771 // has a stable shape and so hopefully should be cheap to allocate.
1772 function tryCatch(fn, obj, arg) {
1773 try {
1774 return { type: "normal", arg: fn.call(obj, arg) };
1775 } catch (err) {
1776 return { type: "throw", arg: err };
1777 }
1778 }
1779
1780 var GenStateSuspendedStart = "suspendedStart";
1781 var GenStateSuspendedYield = "suspendedYield";
1782 var GenStateExecuting = "executing";
1783 var GenStateCompleted = "completed";
1784
1785 // Returning this object from the innerFn has the same effect as
1786 // breaking out of the dispatch switch statement.
1787 var ContinueSentinel = {};
1788
1789 // Dummy constructor functions that we use as the .constructor and
1790 // .constructor.prototype properties for functions that return Generator
1791 // objects. For full spec compliance, you may wish to configure your
1792 // minifier not to mangle the names of these two functions.
1793 function Generator() {}
1794 function GeneratorFunction() {}
1795 function GeneratorFunctionPrototype() {}
1796
1797 // This is a polyfill for %IteratorPrototype% for environments that
1798 // don't natively support it.
1799 var IteratorPrototype = {};
1800 IteratorPrototype[iteratorSymbol] = function () {
1801 return this;
1802 };
1803
1804 var getProto = Object.getPrototypeOf;
1805 var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1806 if (NativeIteratorPrototype &&
1807 NativeIteratorPrototype !== Op &&
1808 hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1809 // This environment has a native %IteratorPrototype%; use it instead
1810 // of the polyfill.
1811 IteratorPrototype = NativeIteratorPrototype;
1812 }
1813
1814 var Gp = GeneratorFunctionPrototype.prototype =
1815 Generator.prototype = Object.create(IteratorPrototype);
1816 GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
1817 GeneratorFunctionPrototype.constructor = GeneratorFunction;
1818 GeneratorFunction.displayName = define(
1819 GeneratorFunctionPrototype,
1820 toStringTagSymbol,
1821 "GeneratorFunction"
1822 );
1823
1824 // Helper for defining the .next, .throw, and .return methods of the
1825 // Iterator interface in terms of a single ._invoke method.
1826 function defineIteratorMethods(prototype) {
1827 ["next", "throw", "return"].forEach(function(method) {
1828 define(prototype, method, function(arg) {
1829 return this._invoke(method, arg);
1830 });
1831 });
1832 }
1833
1834 exports.isGeneratorFunction = function(genFun) {
1835 var ctor = typeof genFun === "function" && genFun.constructor;
1836 return ctor
1837 ? ctor === GeneratorFunction ||
1838 // For the native GeneratorFunction constructor, the best we can
1839 // do is to check its .name property.
1840 (ctor.displayName || ctor.name) === "GeneratorFunction"
1841 : false;
1842 };
1843
1844 exports.mark = function(genFun) {
1845 if (Object.setPrototypeOf) {
1846 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1847 } else {
1848 genFun.__proto__ = GeneratorFunctionPrototype;
1849 define(genFun, toStringTagSymbol, "GeneratorFunction");
1850 }
1851 genFun.prototype = Object.create(Gp);
1852 return genFun;
1853 };
1854
1855 // Within the body of any async function, `await x` is transformed to
1856 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1857 // `hasOwn.call(value, "__await")` to determine if the yielded value is
1858 // meant to be awaited.
1859 exports.awrap = function(arg) {
1860 return { __await: arg };
1861 };
1862
1863 function AsyncIterator(generator, PromiseImpl) {
1864 function invoke(method, arg, resolve, reject) {
1865 var record = tryCatch(generator[method], generator, arg);
1866 if (record.type === "throw") {
1867 reject(record.arg);
1868 } else {
1869 var result = record.arg;
1870 var value = result.value;
1871 if (value &&
1872 typeof value === "object" &&
1873 hasOwn.call(value, "__await")) {
1874 return PromiseImpl.resolve(value.__await).then(function(value) {
1875 invoke("next", value, resolve, reject);
1876 }, function(err) {
1877 invoke("throw", err, resolve, reject);
1878 });
1879 }
1880
1881 return PromiseImpl.resolve(value).then(function(unwrapped) {
1882 // When a yielded Promise is resolved, its final value becomes
1883 // the .value of the Promise<{value,done}> result for the
1884 // current iteration.
1885 result.value = unwrapped;
1886 resolve(result);
1887 }, function(error) {
1888 // If a rejected Promise was yielded, throw the rejection back
1889 // into the async generator function so it can be handled there.
1890 return invoke("throw", error, resolve, reject);
1891 });
1892 }
1893 }
1894
1895 var previousPromise;
1896
1897 function enqueue(method, arg) {
1898 function callInvokeWithMethodAndArg() {
1899 return new PromiseImpl(function(resolve, reject) {
1900 invoke(method, arg, resolve, reject);
1901 });
1902 }
1903
1904 return previousPromise =
1905 // If enqueue has been called before, then we want to wait until
1906 // all previous Promises have been resolved before calling invoke,
1907 // so that results are always delivered in the correct order. If
1908 // enqueue has not been called before, then it is important to
1909 // call invoke immediately, without waiting on a callback to fire,
1910 // so that the async generator function has the opportunity to do
1911 // any necessary setup in a predictable way. This predictability
1912 // is why the Promise constructor synchronously invokes its
1913 // executor callback, and why async functions synchronously
1914 // execute code before the first await. Since we implement simple
1915 // async functions in terms of async generators, it is especially
1916 // important to get this right, even though it requires care.
1917 previousPromise ? previousPromise.then(
1918 callInvokeWithMethodAndArg,
1919 // Avoid propagating failures to Promises returned by later
1920 // invocations of the iterator.
1921 callInvokeWithMethodAndArg
1922 ) : callInvokeWithMethodAndArg();
1923 }
1924
1925 // Define the unified helper method that is used to implement .next,
1926 // .throw, and .return (see defineIteratorMethods).
1927 this._invoke = enqueue;
1928 }
1929
1930 defineIteratorMethods(AsyncIterator.prototype);
1931 AsyncIterator.prototype[asyncIteratorSymbol] = function () {
1932 return this;
1933 };
1934 exports.AsyncIterator = AsyncIterator;
1935
1936 // Note that simple async functions are implemented on top of
1937 // AsyncIterator objects; they just return a Promise for the value of
1938 // the final result produced by the iterator.
1939 exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1940 if (PromiseImpl === void 0) PromiseImpl = Promise;
1941
1942 var iter = new AsyncIterator(
1943 wrap(innerFn, outerFn, self, tryLocsList),
1944 PromiseImpl
1945 );
1946
1947 return exports.isGeneratorFunction(outerFn)
1948 ? iter // If outerFn is a generator, return the full iterator.
1949 : iter.next().then(function(result) {
1950 return result.done ? result.value : iter.next();
1951 });
1952 };
1953
1954 function makeInvokeMethod(innerFn, self, context) {
1955 var state = GenStateSuspendedStart;
1956
1957 return function invoke(method, arg) {
1958 if (state === GenStateExecuting) {
1959 throw new Error("Generator is already running");
1960 }
1961
1962 if (state === GenStateCompleted) {
1963 if (method === "throw") {
1964 throw arg;
1965 }
1966
1967 // Be forgiving, per 25.3.3.3.3 of the spec:
1968 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1969 return doneResult();
1970 }
1971
1972 context.method = method;
1973 context.arg = arg;
1974
1975 while (true) {
1976 var delegate = context.delegate;
1977 if (delegate) {
1978 var delegateResult = maybeInvokeDelegate(delegate, context);
1979 if (delegateResult) {
1980 if (delegateResult === ContinueSentinel) continue;
1981 return delegateResult;
1982 }
1983 }
1984
1985 if (context.method === "next") {
1986 // Setting context._sent for legacy support of Babel's
1987 // function.sent implementation.
1988 context.sent = context._sent = context.arg;
1989
1990 } else if (context.method === "throw") {
1991 if (state === GenStateSuspendedStart) {
1992 state = GenStateCompleted;
1993 throw context.arg;
1994 }
1995
1996 context.dispatchException(context.arg);
1997
1998 } else if (context.method === "return") {
1999 context.abrupt("return", context.arg);
2000 }
2001
2002 state = GenStateExecuting;
2003
2004 var record = tryCatch(innerFn, self, context);
2005 if (record.type === "normal") {
2006 // If an exception is thrown from innerFn, we leave state ===
2007 // GenStateExecuting and loop back for another invocation.
2008 state = context.done
2009 ? GenStateCompleted
2010 : GenStateSuspendedYield;
2011
2012 if (record.arg === ContinueSentinel) {
2013 continue;
2014 }
2015
2016 return {
2017 value: record.arg,
2018 done: context.done
2019 };
2020
2021 } else if (record.type === "throw") {
2022 state = GenStateCompleted;
2023 // Dispatch the exception by looping back around to the
2024 // context.dispatchException(context.arg) call above.
2025 context.method = "throw";
2026 context.arg = record.arg;
2027 }
2028 }
2029 };
2030 }
2031
2032 // Call delegate.iterator[context.method](context.arg) and handle the
2033 // result, either by returning a { value, done } result from the
2034 // delegate iterator, or by modifying context.method and context.arg,
2035 // setting context.delegate to null, and returning the ContinueSentinel.
2036 function maybeInvokeDelegate(delegate, context) {
2037 var method = delegate.iterator[context.method];
2038 if (method === undefined) {
2039 // A .throw or .return when the delegate iterator has no .throw
2040 // method always terminates the yield* loop.
2041 context.delegate = null;
2042
2043 if (context.method === "throw") {
2044 // Note: ["return"] must be used for ES3 parsing compatibility.
2045 if (delegate.iterator["return"]) {
2046 // If the delegate iterator has a return method, give it a
2047 // chance to clean up.
2048 context.method = "return";
2049 context.arg = undefined;
2050 maybeInvokeDelegate(delegate, context);
2051
2052 if (context.method === "throw") {
2053 // If maybeInvokeDelegate(context) changed context.method from
2054 // "return" to "throw", let that override the TypeError below.
2055 return ContinueSentinel;
2056 }
2057 }
2058
2059 context.method = "throw";
2060 context.arg = new TypeError(
2061 "The iterator does not provide a 'throw' method");
2062 }
2063
2064 return ContinueSentinel;
2065 }
2066
2067 var record = tryCatch(method, delegate.iterator, context.arg);
2068
2069 if (record.type === "throw") {
2070 context.method = "throw";
2071 context.arg = record.arg;
2072 context.delegate = null;
2073 return ContinueSentinel;
2074 }
2075
2076 var info = record.arg;
2077
2078 if (! info) {
2079 context.method = "throw";
2080 context.arg = new TypeError("iterator result is not an object");
2081 context.delegate = null;
2082 return ContinueSentinel;
2083 }
2084
2085 if (info.done) {
2086 // Assign the result of the finished delegate to the temporary
2087 // variable specified by delegate.resultName (see delegateYield).
2088 context[delegate.resultName] = info.value;
2089
2090 // Resume execution at the desired location (see delegateYield).
2091 context.next = delegate.nextLoc;
2092
2093 // If context.method was "throw" but the delegate handled the
2094 // exception, let the outer generator proceed normally. If
2095 // context.method was "next", forget context.arg since it has been
2096 // "consumed" by the delegate iterator. If context.method was
2097 // "return", allow the original .return call to continue in the
2098 // outer generator.
2099 if (context.method !== "return") {
2100 context.method = "next";
2101 context.arg = undefined;
2102 }
2103
2104 } else {
2105 // Re-yield the result returned by the delegate method.
2106 return info;
2107 }
2108
2109 // The delegate iterator is finished, so forget it and continue with
2110 // the outer generator.
2111 context.delegate = null;
2112 return ContinueSentinel;
2113 }
2114
2115 // Define Generator.prototype.{next,throw,return} in terms of the
2116 // unified ._invoke helper method.
2117 defineIteratorMethods(Gp);
2118
2119 define(Gp, toStringTagSymbol, "Generator");
2120
2121 // A Generator should always return itself as the iterator object when the
2122 // @@iterator function is called on it. Some browsers' implementations of the
2123 // iterator prototype chain incorrectly implement this, causing the Generator
2124 // object to not be returned from this call. This ensures that doesn't happen.
2125 // See https://github.com/facebook/regenerator/issues/274 for more details.
2126 Gp[iteratorSymbol] = function() {
2127 return this;
2128 };
2129
2130 Gp.toString = function() {
2131 return "[object Generator]";
2132 };
2133
2134 function pushTryEntry(locs) {
2135 var entry = { tryLoc: locs[0] };
2136
2137 if (1 in locs) {
2138 entry.catchLoc = locs[1];
2139 }
2140
2141 if (2 in locs) {
2142 entry.finallyLoc = locs[2];
2143 entry.afterLoc = locs[3];
2144 }
2145
2146 this.tryEntries.push(entry);
2147 }
2148
2149 function resetTryEntry(entry) {
2150 var record = entry.completion || {};
2151 record.type = "normal";
2152 delete record.arg;
2153 entry.completion = record;
2154 }
2155
2156 function Context(tryLocsList) {
2157 // The root entry object (effectively a try statement without a catch
2158 // or a finally block) gives us a place to store values thrown from
2159 // locations where there is no enclosing try statement.
2160 this.tryEntries = [{ tryLoc: "root" }];
2161 tryLocsList.forEach(pushTryEntry, this);
2162 this.reset(true);
2163 }
2164
2165 exports.keys = function(object) {
2166 var keys = [];
2167 for (var key in object) {
2168 keys.push(key);
2169 }
2170 keys.reverse();
2171
2172 // Rather than returning an object with a next method, we keep
2173 // things simple and return the next function itself.
2174 return function next() {
2175 while (keys.length) {
2176 var key = keys.pop();
2177 if (key in object) {
2178 next.value = key;
2179 next.done = false;
2180 return next;
2181 }
2182 }
2183
2184 // To avoid creating an additional object, we just hang the .value
2185 // and .done properties off the next function object itself. This
2186 // also ensures that the minifier will not anonymize the function.
2187 next.done = true;
2188 return next;
2189 };
2190 };
2191
2192 function values(iterable) {
2193 if (iterable) {
2194 var iteratorMethod = iterable[iteratorSymbol];
2195 if (iteratorMethod) {
2196 return iteratorMethod.call(iterable);
2197 }
2198
2199 if (typeof iterable.next === "function") {
2200 return iterable;
2201 }
2202
2203 if (!isNaN(iterable.length)) {
2204 var i = -1, next = function next() {
2205 while (++i < iterable.length) {
2206 if (hasOwn.call(iterable, i)) {
2207 next.value = iterable[i];
2208 next.done = false;
2209 return next;
2210 }
2211 }
2212
2213 next.value = undefined;
2214 next.done = true;
2215
2216 return next;
2217 };
2218
2219 return next.next = next;
2220 }
2221 }
2222
2223 // Return an iterator with no values.
2224 return { next: doneResult };
2225 }
2226 exports.values = values;
2227
2228 function doneResult() {
2229 return { value: undefined, done: true };
2230 }
2231
2232 Context.prototype = {
2233 constructor: Context,
2234
2235 reset: function(skipTempReset) {
2236 this.prev = 0;
2237 this.next = 0;
2238 // Resetting context._sent for legacy support of Babel's
2239 // function.sent implementation.
2240 this.sent = this._sent = undefined;
2241 this.done = false;
2242 this.delegate = null;
2243
2244 this.method = "next";
2245 this.arg = undefined;
2246
2247 this.tryEntries.forEach(resetTryEntry);
2248
2249 if (!skipTempReset) {
2250 for (var name in this) {
2251 // Not sure about the optimal order of these conditions:
2252 if (name.charAt(0) === "t" &&
2253 hasOwn.call(this, name) &&
2254 !isNaN(+name.slice(1))) {
2255 this[name] = undefined;
2256 }
2257 }
2258 }
2259 },
2260
2261 stop: function() {
2262 this.done = true;
2263
2264 var rootEntry = this.tryEntries[0];
2265 var rootRecord = rootEntry.completion;
2266 if (rootRecord.type === "throw") {
2267 throw rootRecord.arg;
2268 }
2269
2270 return this.rval;
2271 },
2272
2273 dispatchException: function(exception) {
2274 if (this.done) {
2275 throw exception;
2276 }
2277
2278 var context = this;
2279 function handle(loc, caught) {
2280 record.type = "throw";
2281 record.arg = exception;
2282 context.next = loc;
2283
2284 if (caught) {
2285 // If the dispatched exception was caught by a catch block,
2286 // then let that catch block handle the exception normally.
2287 context.method = "next";
2288 context.arg = undefined;
2289 }
2290
2291 return !! caught;
2292 }
2293
2294 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2295 var entry = this.tryEntries[i];
2296 var record = entry.completion;
2297
2298 if (entry.tryLoc === "root") {
2299 // Exception thrown outside of any try block that could handle
2300 // it, so set the completion value of the entire function to
2301 // throw the exception.
2302 return handle("end");
2303 }
2304
2305 if (entry.tryLoc <= this.prev) {
2306 var hasCatch = hasOwn.call(entry, "catchLoc");
2307 var hasFinally = hasOwn.call(entry, "finallyLoc");
2308
2309 if (hasCatch && hasFinally) {
2310 if (this.prev < entry.catchLoc) {
2311 return handle(entry.catchLoc, true);
2312 } else if (this.prev < entry.finallyLoc) {
2313 return handle(entry.finallyLoc);
2314 }
2315
2316 } else if (hasCatch) {
2317 if (this.prev < entry.catchLoc) {
2318 return handle(entry.catchLoc, true);
2319 }
2320
2321 } else if (hasFinally) {
2322 if (this.prev < entry.finallyLoc) {
2323 return handle(entry.finallyLoc);
2324 }
2325
2326 } else {
2327 throw new Error("try statement without catch or finally");
2328 }
2329 }
2330 }
2331 },
2332
2333 abrupt: function(type, arg) {
2334 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2335 var entry = this.tryEntries[i];
2336 if (entry.tryLoc <= this.prev &&
2337 hasOwn.call(entry, "finallyLoc") &&
2338 this.prev < entry.finallyLoc) {
2339 var finallyEntry = entry;
2340 break;
2341 }
2342 }
2343
2344 if (finallyEntry &&
2345 (type === "break" ||
2346 type === "continue") &&
2347 finallyEntry.tryLoc <= arg &&
2348 arg <= finallyEntry.finallyLoc) {
2349 // Ignore the finally entry if control is not jumping to a
2350 // location outside the try/catch block.
2351 finallyEntry = null;
2352 }
2353
2354 var record = finallyEntry ? finallyEntry.completion : {};
2355 record.type = type;
2356 record.arg = arg;
2357
2358 if (finallyEntry) {
2359 this.method = "next";
2360 this.next = finallyEntry.finallyLoc;
2361 return ContinueSentinel;
2362 }
2363
2364 return this.complete(record);
2365 },
2366
2367 complete: function(record, afterLoc) {
2368 if (record.type === "throw") {
2369 throw record.arg;
2370 }
2371
2372 if (record.type === "break" ||
2373 record.type === "continue") {
2374 this.next = record.arg;
2375 } else if (record.type === "return") {
2376 this.rval = this.arg = record.arg;
2377 this.method = "return";
2378 this.next = "end";
2379 } else if (record.type === "normal" && afterLoc) {
2380 this.next = afterLoc;
2381 }
2382
2383 return ContinueSentinel;
2384 },
2385
2386 finish: function(finallyLoc) {
2387 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2388 var entry = this.tryEntries[i];
2389 if (entry.finallyLoc === finallyLoc) {
2390 this.complete(entry.completion, entry.afterLoc);
2391 resetTryEntry(entry);
2392 return ContinueSentinel;
2393 }
2394 }
2395 },
2396
2397 "catch": function(tryLoc) {
2398 for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2399 var entry = this.tryEntries[i];
2400 if (entry.tryLoc === tryLoc) {
2401 var record = entry.completion;
2402 if (record.type === "throw") {
2403 var thrown = record.arg;
2404 resetTryEntry(entry);
2405 }
2406 return thrown;
2407 }
2408 }
2409
2410 // The context.catch method must only be called with a location
2411 // argument that corresponds to a known catch block.
2412 throw new Error("illegal catch attempt");
2413 },
2414
2415 delegateYield: function(iterable, resultName, nextLoc) {
2416 this.delegate = {
2417 iterator: values(iterable),
2418 resultName: resultName,
2419 nextLoc: nextLoc
2420 };
2421
2422 if (this.method === "next") {
2423 // Deliberately forget the last sent value so that we don't
2424 // accidentally pass it on to the delegate.
2425 this.arg = undefined;
2426 }
2427
2428 return ContinueSentinel;
2429 }
2430 };
2431
2432 // Regardless of whether this script is executing as a CommonJS module
2433 // or not, return the runtime object so that we can declare the variable
2434 // regeneratorRuntime in the outer scope, which allows this module to be
2435 // injected easily by `bin/regenerator --include-runtime script.js`.
2436 return exports;
2437
2438 }(
2439 // If this script is executing as a CommonJS module, use module.exports
2440 // as the regeneratorRuntime namespace. Otherwise create a new empty
2441 // object. Either way, the resulting object will be used to initialize
2442 // the regeneratorRuntime variable at the top of this file.
2443 true ? module.exports : undefined
2444 ));
2445
2446 try {
2447 regeneratorRuntime = runtime;
2448 } catch (accidentalStrictMode) {
2449 // This module should not be running in strict mode, so the above
2450 // assignment should always work unless something is misconfigured. Just
2451 // in case runtime.js accidentally runs in strict mode, we can escape
2452 // strict mode using a global Function call. This could conceivably fail
2453 // if a Content Security Policy forbids using Function, but in that case
2454 // the proper solution is to fix the accidental strict mode problem. If
2455 // you've misconfigured your bundler to force strict mode and applied a
2456 // CSP to forbid Function, and you're not willing to fix either of those
2457 // problems, please detail your unique predicament in a GitHub issue.
2458 Function("r", "regeneratorRuntime = r")(runtime);
2459 }
2460
2461
2462 /***/ }),
2463 /* 67 */
2464 /***/ (function(module, exports, __webpack_require__) {
2465
2466 var core = __webpack_require__(54);
2467 var global = __webpack_require__(17);
2468 var SHARED = '__core-js_shared__';
2469 var store = global[SHARED] || (global[SHARED] = {});
2470
2471 (module.exports = function (key, value) {
2472 return store[key] || (store[key] = value !== undefined ? value : {});
2473 })('versions', []).push({
2474 version: core.version,
2475 mode: __webpack_require__(110) ? 'pure' : 'global',
2476 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
2477 });
2478
2479
2480 /***/ }),
2481 /* 68 */
2482 /***/ (function(module, exports) {
2483
2484 var id = 0;
2485 var px = Math.random();
2486 module.exports = function (key) {
2487 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
2488 };
2489
2490
2491 /***/ }),
2492 /* 69 */
2493 /***/ (function(module, exports, __webpack_require__) {
2494
2495 // 7.1.15 ToLength
2496 var toInteger = __webpack_require__(77);
2497 var min = Math.min;
2498 module.exports = function (it) {
2499 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
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__(37)(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__(90);
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 /* 82 */
2840 /***/ (function(module, exports, __webpack_require__) {
2841
2842 module.exports = __webpack_require__(66);
2843
2844
2845 /***/ }),
2846 /* 83 */
2847 /***/ (function(module, exports, __webpack_require__) {
2848
2849 var _Promise = __webpack_require__(133);
2850
2851 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2852 try {
2853 var info = gen[key](arg);
2854 var value = info.value;
2855 } catch (error) {
2856 reject(error);
2857 return;
2858 }
2859
2860 if (info.done) {
2861 resolve(value);
2862 } else {
2863 _Promise.resolve(value).then(_next, _throw);
2864 }
2865 }
2866
2867 function _asyncToGenerator(fn) {
2868 return function () {
2869 var self = this,
2870 args = arguments;
2871 return new _Promise(function (resolve, reject) {
2872 var gen = fn.apply(self, args);
2873
2874 function _next(value) {
2875 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
2876 }
2877
2878 function _throw(err) {
2879 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
2880 }
2881
2882 _next(undefined);
2883 });
2884 };
2885 }
2886
2887 module.exports = _asyncToGenerator;
2888
2889 /***/ }),
2890 /* 84 */
2891 /***/ (function(module, exports, __webpack_require__) {
2892
2893 module.exports = __webpack_require__(220);
2894
2895 /***/ }),
2896 /* 85 */
2897 /***/ (function(module, exports, __webpack_require__) {
2898
2899 "use strict";
2900
2901
2902 var _interopRequireDefault = __webpack_require__(0);
2903
2904 var _Object$defineProperty = __webpack_require__(1);
2905
2906 _Object$defineProperty(exports, "__esModule", {
2907 value: true
2908 });
2909
2910 exports.default = void 0;
2911
2912 __webpack_require__(58);
2913
2914 var _keys = _interopRequireDefault(__webpack_require__(23));
2915
2916 __webpack_require__(80);
2917
2918 var _values = _interopRequireDefault(__webpack_require__(55));
2919
2920 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(102));
2921
2922 var _entries = _interopRequireDefault(__webpack_require__(89));
2923
2924 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
2925
2926 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
2927
2928 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
2929
2930 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
2931
2932 var ComponentBase = /*#__PURE__*/function (_elementorModules$Mod) {
2933 (0, _inherits2.default)(ComponentBase, _elementorModules$Mod);
2934
2935 var _super = (0, _createSuper2.default)(ComponentBase);
2936
2937 function ComponentBase() {
2938 (0, _classCallCheck2.default)(this, ComponentBase);
2939 return _super.apply(this, arguments);
2940 }
2941
2942 (0, _createClass2.default)(ComponentBase, [{
2943 key: "__construct",
2944 value: function __construct() {
2945 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2946
2947 if (args.manager) {
2948 this.manager = args.manager;
2949 }
2950
2951 this.commands = this.defaultCommands();
2952 this.commandsInternal = this.defaultCommandsInternal();
2953 this.hooks = this.defaultHooks();
2954 this.routes = this.defaultRoutes();
2955 this.tabs = this.defaultTabs();
2956 this.shortcuts = this.defaultShortcuts();
2957 this.utils = this.defaultUtils();
2958 this.data = this.defaultData();
2959 this.defaultRoute = '';
2960 this.currentTab = '';
2961 }
2962 }, {
2963 key: "registerAPI",
2964 value: function registerAPI() {
2965 var _this = this;
2966
2967 (0, _entries.default)(this.getTabs()).forEach(function (tab) {
2968 return _this.registerTabRoute(tab[0]);
2969 });
2970 (0, _entries.default)(this.getRoutes()).forEach(function (_ref) {
2971 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
2972 route = _ref2[0],
2973 callback = _ref2[1];
2974
2975 return _this.registerRoute(route, callback);
2976 });
2977 (0, _entries.default)(this.getCommands()).forEach(function (_ref3) {
2978 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
2979 command = _ref4[0],
2980 callback = _ref4[1];
2981
2982 return _this.registerCommand(command, callback);
2983 });
2984 (0, _entries.default)(this.getCommandsInternal()).forEach(function (_ref5) {
2985 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
2986 command = _ref6[0],
2987 callback = _ref6[1];
2988
2989 return _this.registerCommandInternal(command, callback);
2990 });
2991 (0, _values.default)(this.getHooks()).forEach(function (instance) {
2992 return _this.registerHook(instance);
2993 });
2994 (0, _entries.default)(this.getData()).forEach(function (_ref7) {
2995 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
2996 command = _ref8[0],
2997 callback = _ref8[1];
2998
2999 return _this.registerData(command, callback);
3000 });
3001 }
3002 /**
3003 * @returns {string}
3004 */
3005
3006 }, {
3007 key: "getNamespace",
3008 value: function getNamespace() {
3009 elementorModules.ForceMethodImplementation();
3010 }
3011 }, {
3012 key: "getRootContainer",
3013 value: function getRootContainer() {
3014 var parts = this.getNamespace().split('/');
3015 return parts[0];
3016 }
3017 }, {
3018 key: "defaultTabs",
3019 value: function defaultTabs() {
3020 return {};
3021 }
3022 }, {
3023 key: "defaultRoutes",
3024 value: function defaultRoutes() {
3025 return {};
3026 }
3027 }, {
3028 key: "defaultCommands",
3029 value: function defaultCommands() {
3030 return {};
3031 }
3032 }, {
3033 key: "defaultCommandsInternal",
3034 value: function defaultCommandsInternal() {
3035 return {};
3036 }
3037 }, {
3038 key: "defaultHooks",
3039 value: function defaultHooks() {
3040 return {};
3041 }
3042 }, {
3043 key: "defaultShortcuts",
3044 value: function defaultShortcuts() {
3045 return {};
3046 }
3047 }, {
3048 key: "defaultUtils",
3049 value: function defaultUtils() {
3050 return {};
3051 }
3052 }, {
3053 key: "defaultData",
3054 value: function defaultData() {
3055 return {};
3056 }
3057 }, {
3058 key: "getCommands",
3059 value: function getCommands() {
3060 return this.commands;
3061 }
3062 }, {
3063 key: "getCommandsInternal",
3064 value: function getCommandsInternal() {
3065 return this.commandsInternal;
3066 }
3067 }, {
3068 key: "getHooks",
3069 value: function getHooks() {
3070 return this.hooks;
3071 }
3072 }, {
3073 key: "getRoutes",
3074 value: function getRoutes() {
3075 return this.routes;
3076 }
3077 }, {
3078 key: "getTabs",
3079 value: function getTabs() {
3080 return this.tabs;
3081 }
3082 }, {
3083 key: "getShortcuts",
3084 value: function getShortcuts() {
3085 return this.shortcuts;
3086 }
3087 }, {
3088 key: "getData",
3089 value: function getData() {
3090 return this.data;
3091 }
3092 }, {
3093 key: "registerCommand",
3094 value: function registerCommand(command, callback) {
3095 $e.commands.register(this, command, callback);
3096 }
3097 /**
3098 * @param {HookBase} instance
3099 */
3100
3101 }, {
3102 key: "registerHook",
3103 value: function registerHook(instance) {
3104 return instance.register();
3105 }
3106 }, {
3107 key: "registerCommandInternal",
3108 value: function registerCommandInternal(command, callback) {
3109 $e.commandsInternal.register(this, command, callback);
3110 }
3111 }, {
3112 key: "registerRoute",
3113 value: function registerRoute(route, callback) {
3114 $e.routes.register(this, route, callback);
3115 }
3116 }, {
3117 key: "registerData",
3118 value: function registerData(command, callback) {
3119 $e.data.register(this, command, callback);
3120 }
3121 }, {
3122 key: "unregisterRoute",
3123 value: function unregisterRoute(route) {
3124 $e.routes.unregister(this, route);
3125 }
3126 }, {
3127 key: "registerTabRoute",
3128 value: function registerTabRoute(tab) {
3129 var _this2 = this;
3130
3131 this.registerRoute(tab, function (args) {
3132 return _this2.activateTab(tab, args);
3133 });
3134 }
3135 }, {
3136 key: "dependency",
3137 value: function dependency() {
3138 return true;
3139 }
3140 }, {
3141 key: "open",
3142 value: function open() {
3143 return true;
3144 }
3145 }, {
3146 key: "close",
3147 value: function close() {
3148 if (!this.isOpen) {
3149 return false;
3150 }
3151
3152 this.isOpen = false;
3153 this.inactivate();
3154 $e.routes.clearCurrent(this.getNamespace());
3155 $e.routes.clearHistory(this.getRootContainer());
3156 return true;
3157 }
3158 }, {
3159 key: "activate",
3160 value: function activate() {
3161 $e.components.activate(this.getNamespace());
3162 }
3163 }, {
3164 key: "inactivate",
3165 value: function inactivate() {
3166 $e.components.inactivate(this.getNamespace());
3167 }
3168 }, {
3169 key: "isActive",
3170 value: function isActive() {
3171 return $e.components.isActive(this.getNamespace());
3172 }
3173 }, {
3174 key: "onRoute",
3175 value: function onRoute(route) {
3176 this.toggleRouteClass(route, true);
3177 this.toggleHistoryClass();
3178 this.activate();
3179 this.trigger('route/open', route);
3180 }
3181 }, {
3182 key: "onCloseRoute",
3183 value: function onCloseRoute(route) {
3184 this.toggleRouteClass(route, false);
3185 this.inactivate();
3186 this.trigger('route/close', route);
3187 }
3188 }, {
3189 key: "setDefaultRoute",
3190 value: function setDefaultRoute(route) {
3191 this.defaultRoute = this.getNamespace() + '/' + route;
3192 }
3193 }, {
3194 key: "getDefaultRoute",
3195 value: function getDefaultRoute() {
3196 return this.defaultRoute;
3197 }
3198 }, {
3199 key: "removeTab",
3200 value: function removeTab(tab) {
3201 delete this.tabs[tab];
3202 this.unregisterRoute(tab);
3203 }
3204 }, {
3205 key: "hasTab",
3206 value: function hasTab(tab) {
3207 return !!this.tabs[tab];
3208 }
3209 }, {
3210 key: "addTab",
3211 value: function addTab(tab, args, position) {
3212 var _this3 = this;
3213
3214 this.tabs[tab] = args; // It can be 0.
3215
3216 if ('undefined' !== typeof position) {
3217 var newTabs = {};
3218 var ids = (0, _keys.default)(this.tabs); // Remove new tab
3219
3220 ids.pop(); // Add it to position.
3221
3222 ids.splice(position, 0, tab);
3223 ids.forEach(function (id) {
3224 newTabs[id] = _this3.tabs[id];
3225 });
3226 this.tabs = newTabs;
3227 }
3228
3229 this.registerTabRoute(tab);
3230 }
3231 }, {
3232 key: "getTabsWrapperSelector",
3233 value: function getTabsWrapperSelector() {
3234 return '';
3235 }
3236 }, {
3237 key: "getTabRoute",
3238 value: function getTabRoute(tab) {
3239 return this.getNamespace() + '/' + tab;
3240 }
3241 }, {
3242 key: "renderTab",
3243 value: function renderTab(tab) {} // eslint-disable-line
3244
3245 }, {
3246 key: "activateTab",
3247 value: function activateTab(tab, args) {
3248 var _this4 = this;
3249
3250 this.currentTab = tab;
3251 this.renderTab(tab, args);
3252 jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
3253 $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
3254 }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
3255 }
3256 }, {
3257 key: "getActiveTabConfig",
3258 value: function getActiveTabConfig() {
3259 return this.tabs[this.currentTab] || {};
3260 }
3261 }, {
3262 key: "getBodyClass",
3263 value: function getBodyClass(route) {
3264 return 'e-route-' + route.replace(/\//g, '-');
3265 }
3266 /**
3267 * If command includes uppercase character convert it to lowercase and add `-`.
3268 * e.g: `CopyAll` is converted to `copy-all`.
3269 */
3270
3271 }, {
3272 key: "normalizeCommandName",
3273 value: function normalizeCommandName(commandName) {
3274 return commandName.replace(/[A-Z]/g, function (match, offset) {
3275 return (offset > 0 ? '-' : '') + match.toLowerCase();
3276 });
3277 }
3278 }, {
3279 key: "importCommands",
3280 value: function importCommands(commandsFromImport) {
3281 var _this5 = this;
3282
3283 var commands = {}; // Convert `Commands` to `ComponentBase` workable format.
3284
3285 (0, _entries.default)(commandsFromImport).forEach(function (_ref9) {
3286 var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3287 className = _ref10[0],
3288 Class = _ref10[1];
3289
3290 var command = _this5.normalizeCommandName(className);
3291
3292 commands[command] = function (args) {
3293 return new Class(args).run();
3294 }; // TODO: Temporary code, remove after merge with 'require-commands-base' branch.
3295 // should not return callback, but Class or Instance without run ( gain performance ).
3296
3297
3298 $e.commands.classes[_this5.getNamespace() + '/' + command] = Class;
3299 });
3300 return commands;
3301 }
3302 }, {
3303 key: "importHooks",
3304 value: function importHooks(hooksFromImport) {
3305 var hooks = {};
3306
3307 for (var key in hooksFromImport) {
3308 var hook = new hooksFromImport[key]();
3309 hooks[hook.getId()] = hook;
3310 }
3311
3312 return hooks;
3313 }
3314 }, {
3315 key: "toggleRouteClass",
3316 value: function toggleRouteClass(route, state) {
3317 elementorCommon.elements.$body.toggleClass(this.getBodyClass(route), state);
3318 }
3319 }, {
3320 key: "toggleHistoryClass",
3321 value: function toggleHistoryClass() {
3322 elementorCommon.elements.$body.toggleClass('e-routes-has-history', !!$e.routes.getHistory(this.getRootContainer()).length);
3323 }
3324 }]);
3325 return ComponentBase;
3326 }(elementorModules.Module);
3327
3328 exports.default = ComponentBase;
3329
3330 /***/ }),
3331 /* 86 */
3332 /***/ (function(module, exports, __webpack_require__) {
3333
3334 // most Object methods by ES6 should accept primitives
3335 var $export = __webpack_require__(7);
3336 var core = __webpack_require__(6);
3337 var fails = __webpack_require__(22);
3338 module.exports = function (KEY, exec) {
3339 var fn = (core.Object || {})[KEY] || Object[KEY];
3340 var exp = {};
3341 exp[KEY] = exec(fn);
3342 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
3343 };
3344
3345
3346 /***/ }),
3347 /* 87 */
3348 /***/ (function(module, exports, __webpack_require__) {
3349
3350 // 22.1.3.31 Array.prototype[@@unscopables]
3351 var UNSCOPABLES = __webpack_require__(12)('unscopables');
3352 var ArrayProto = Array.prototype;
3353 if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {});
3354 module.exports = function (key) {
3355 ArrayProto[UNSCOPABLES][key] = true;
3356 };
3357
3358
3359 /***/ }),
3360 /* 88 */
3361 /***/ (function(module, exports, __webpack_require__) {
3362
3363 var ctx = __webpack_require__(31);
3364 var call = __webpack_require__(141);
3365 var isArrayIter = __webpack_require__(142);
3366 var anObject = __webpack_require__(13);
3367 var toLength = __webpack_require__(69);
3368 var getIterFn = __webpack_require__(112);
3369 var BREAK = {};
3370 var RETURN = {};
3371 var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
3372 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
3373 var f = ctx(fn, that, entries ? 2 : 1);
3374 var index = 0;
3375 var length, step, iterator, result;
3376 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
3377 // fast case for arrays with default iterator
3378 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
3379 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
3380 if (result === BREAK || result === RETURN) return result;
3381 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
3382 result = call(iterator, f, step.value, entries);
3383 if (result === BREAK || result === RETURN) return result;
3384 }
3385 };
3386 exports.BREAK = BREAK;
3387 exports.RETURN = RETURN;
3388
3389
3390 /***/ }),
3391 /* 89 */
3392 /***/ (function(module, exports, __webpack_require__) {
3393
3394 module.exports = __webpack_require__(269);
3395
3396 /***/ }),
3397 /* 90 */
3398 /***/ (function(module, exports, __webpack_require__) {
3399
3400 "use strict";
3401
3402
3403 var regexpFlags = __webpack_require__(106);
3404
3405 var nativeExec = RegExp.prototype.exec;
3406 // This always refers to the native implementation, because the
3407 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
3408 // which loads this file before patching the method.
3409 var nativeReplace = String.prototype.replace;
3410
3411 var patchedExec = nativeExec;
3412
3413 var LAST_INDEX = 'lastIndex';
3414
3415 var UPDATES_LAST_INDEX_WRONG = (function () {
3416 var re1 = /a/,
3417 re2 = /b*/g;
3418 nativeExec.call(re1, 'a');
3419 nativeExec.call(re2, 'a');
3420 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
3421 })();
3422
3423 // nonparticipating capturing group, copied from es5-shim's String#split patch.
3424 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
3425
3426 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
3427
3428 if (PATCH) {
3429 patchedExec = function exec(str) {
3430 var re = this;
3431 var lastIndex, reCopy, match, i;
3432
3433 if (NPCG_INCLUDED) {
3434 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
3435 }
3436 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
3437
3438 match = nativeExec.call(re, str);
3439
3440 if (UPDATES_LAST_INDEX_WRONG && match) {
3441 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
3442 }
3443 if (NPCG_INCLUDED && match && match.length > 1) {
3444 // Fix browsers whose `exec` methods don't consistently return `undefined`
3445 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
3446 // eslint-disable-next-line no-loop-func
3447 nativeReplace.call(match[0], reCopy, function () {
3448 for (i = 1; i < arguments.length - 2; i++) {
3449 if (arguments[i] === undefined) match[i] = undefined;
3450 }
3451 });
3452 }
3453
3454 return match;
3455 };
3456 }
3457
3458 module.exports = patchedExec;
3459
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__(37);
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__(90);
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, __webpack_require__) {
3707
3708 var arrayWithHoles = __webpack_require__(247);
3709
3710 var iterableToArrayLimit = __webpack_require__(248);
3711
3712 var unsupportedIterableToArray = __webpack_require__(187);
3713
3714 var nonIterableRest = __webpack_require__(251);
3715
3716 function _slicedToArray(arr, i) {
3717 return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3718 }
3719
3720 module.exports = _slicedToArray;
3721
3722 /***/ }),
3723 /* 103 */
3724 /***/ (function(module, exports) {
3725
3726 module.exports = function (bitmap, value) {
3727 return {
3728 enumerable: !(bitmap & 1),
3729 configurable: !(bitmap & 2),
3730 writable: !(bitmap & 4),
3731 value: value
3732 };
3733 };
3734
3735
3736 /***/ }),
3737 /* 104 */
3738 /***/ (function(module, exports, __webpack_require__) {
3739
3740 // fallback for non-array-like ES3 and non-enumerable old V8 strings
3741 var cof = __webpack_require__(56);
3742 // eslint-disable-next-line no-prototype-builtins
3743 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
3744 return cof(it) == 'String' ? it.split('') : Object(it);
3745 };
3746
3747
3748 /***/ }),
3749 /* 105 */
3750 /***/ (function(module, exports, __webpack_require__) {
3751
3752 "use strict";
3753
3754 var at = __webpack_require__(144)(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__(168);
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__(35);
3800 var $iterCreate = __webpack_require__(174);
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__(177);
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__(35);
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__(161);
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__(166)(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__(87);
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__(67)('keys');
4168 var uid = __webpack_require__(68);
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 module.exports = __webpack_require__(288);
4215
4216 /***/ }),
4217 /* 135 */
4218 /***/ (function(module, exports, __webpack_require__) {
4219
4220 "use strict";
4221
4222 // https://github.com/tc39/Array.prototype.includes
4223 var $export = __webpack_require__(34);
4224 var $includes = __webpack_require__(143)(true);
4225
4226 $export($export.P, 'Array', {
4227 includes: function includes(el /* , fromIndex = 0 */) {
4228 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4229 }
4230 });
4231
4232 __webpack_require__(87)('includes');
4233
4234
4235 /***/ }),
4236 /* 136 */
4237 /***/ (function(module, exports, __webpack_require__) {
4238
4239 var dP = __webpack_require__(15);
4240 var anObject = __webpack_require__(13);
4241 var getKeys = __webpack_require__(40);
4242
4243 module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
4244 anObject(O);
4245 var keys = getKeys(Properties);
4246 var length = keys.length;
4247 var i = 0;
4248 var P;
4249 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
4250 return O;
4251 };
4252
4253
4254 /***/ }),
4255 /* 137 */
4256 /***/ (function(module, exports, __webpack_require__) {
4257
4258 var _Object$setPrototypeOf = __webpack_require__(115);
4259
4260 function _setPrototypeOf(o, p) {
4261 module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
4262 o.__proto__ = p;
4263 return o;
4264 };
4265
4266 return _setPrototypeOf(o, p);
4267 }
4268
4269 module.exports = _setPrototypeOf;
4270
4271 /***/ }),
4272 /* 138 */
4273 /***/ (function(module, exports, __webpack_require__) {
4274
4275 // 0 -> Array#forEach
4276 // 1 -> Array#map
4277 // 2 -> Array#filter
4278 // 3 -> Array#some
4279 // 4 -> Array#every
4280 // 5 -> Array#find
4281 // 6 -> Array#findIndex
4282 var ctx = __webpack_require__(31);
4283 var IObject = __webpack_require__(104);
4284 var toObject = __webpack_require__(32);
4285 var toLength = __webpack_require__(69);
4286 var asc = __webpack_require__(245);
4287 module.exports = function (TYPE, $create) {
4288 var IS_MAP = TYPE == 1;
4289 var IS_FILTER = TYPE == 2;
4290 var IS_SOME = TYPE == 3;
4291 var IS_EVERY = TYPE == 4;
4292 var IS_FIND_INDEX = TYPE == 6;
4293 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
4294 var create = $create || asc;
4295 return function ($this, callbackfn, that) {
4296 var O = toObject($this);
4297 var self = IObject(O);
4298 var f = ctx(callbackfn, that, 3);
4299 var length = toLength(self.length);
4300 var index = 0;
4301 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
4302 var val, res;
4303 for (;length > index; index++) if (NO_HOLES || index in self) {
4304 val = self[index];
4305 res = f(val, index, O);
4306 if (TYPE) {
4307 if (IS_MAP) result[index] = res; // map
4308 else if (res) switch (TYPE) {
4309 case 3: return true; // some
4310 case 5: return val; // find
4311 case 6: return index; // findIndex
4312 case 2: result.push(val); // filter
4313 } else if (IS_EVERY) return false; // every
4314 }
4315 }
4316 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
4317 };
4318 };
4319
4320
4321 /***/ }),
4322 /* 139 */
4323 /***/ (function(module, exports, __webpack_require__) {
4324
4325 module.exports = __webpack_require__(164);
4326
4327 /***/ }),
4328 /* 140 */
4329 /***/ (function(module, exports, __webpack_require__) {
4330
4331 "use strict";
4332
4333 // ECMAScript 6 symbols shim
4334 var global = __webpack_require__(8);
4335 var has = __webpack_require__(19);
4336 var DESCRIPTORS = __webpack_require__(14);
4337 var $export = __webpack_require__(7);
4338 var redefine = __webpack_require__(93);
4339 var META = __webpack_require__(70).KEY;
4340 var $fails = __webpack_require__(22);
4341 var shared = __webpack_require__(76);
4342 var setToStringTag = __webpack_require__(53);
4343 var uid = __webpack_require__(59);
4344 var wks = __webpack_require__(10);
4345 var wksExt = __webpack_require__(63);
4346 var wksDefine = __webpack_require__(79);
4347 var enumKeys = __webpack_require__(178);
4348 var isArray = __webpack_require__(97);
4349 var anObject = __webpack_require__(13);
4350 var isObject = __webpack_require__(9);
4351 var toObject = __webpack_require__(32);
4352 var toIObject = __webpack_require__(20);
4353 var toPrimitive = __webpack_require__(74);
4354 var createDesc = __webpack_require__(44);
4355 var _create = __webpack_require__(52);
4356 var gOPNExt = __webpack_require__(179);
4357 var $GOPD = __webpack_require__(51);
4358 var $GOPS = __webpack_require__(71);
4359 var $DP = __webpack_require__(15);
4360 var $keys = __webpack_require__(40);
4361 var gOPD = $GOPD.f;
4362 var dP = $DP.f;
4363 var gOPN = gOPNExt.f;
4364 var $Symbol = global.Symbol;
4365 var $JSON = global.JSON;
4366 var _stringify = $JSON && $JSON.stringify;
4367 var PROTOTYPE = 'prototype';
4368 var HIDDEN = wks('_hidden');
4369 var TO_PRIMITIVE = wks('toPrimitive');
4370 var isEnum = {}.propertyIsEnumerable;
4371 var SymbolRegistry = shared('symbol-registry');
4372 var AllSymbols = shared('symbols');
4373 var OPSymbols = shared('op-symbols');
4374 var ObjectProto = Object[PROTOTYPE];
4375 var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
4376 var QObject = global.QObject;
4377 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
4378 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
4379
4380 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
4381 var setSymbolDesc = DESCRIPTORS && $fails(function () {
4382 return _create(dP({}, 'a', {
4383 get: function () { return dP(this, 'a', { value: 7 }).a; }
4384 })).a != 7;
4385 }) ? function (it, key, D) {
4386 var protoDesc = gOPD(ObjectProto, key);
4387 if (protoDesc) delete ObjectProto[key];
4388 dP(it, key, D);
4389 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
4390 } : dP;
4391
4392 var wrap = function (tag) {
4393 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
4394 sym._k = tag;
4395 return sym;
4396 };
4397
4398 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
4399 return typeof it == 'symbol';
4400 } : function (it) {
4401 return it instanceof $Symbol;
4402 };
4403
4404 var $defineProperty = function defineProperty(it, key, D) {
4405 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
4406 anObject(it);
4407 key = toPrimitive(key, true);
4408 anObject(D);
4409 if (has(AllSymbols, key)) {
4410 if (!D.enumerable) {
4411 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
4412 it[HIDDEN][key] = true;
4413 } else {
4414 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
4415 D = _create(D, { enumerable: createDesc(0, false) });
4416 } return setSymbolDesc(it, key, D);
4417 } return dP(it, key, D);
4418 };
4419 var $defineProperties = function defineProperties(it, P) {
4420 anObject(it);
4421 var keys = enumKeys(P = toIObject(P));
4422 var i = 0;
4423 var l = keys.length;
4424 var key;
4425 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
4426 return it;
4427 };
4428 var $create = function create(it, P) {
4429 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
4430 };
4431 var $propertyIsEnumerable = function propertyIsEnumerable(key) {
4432 var E = isEnum.call(this, key = toPrimitive(key, true));
4433 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
4434 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
4435 };
4436 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
4437 it = toIObject(it);
4438 key = toPrimitive(key, true);
4439 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
4440 var D = gOPD(it, key);
4441 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
4442 return D;
4443 };
4444 var $getOwnPropertyNames = function getOwnPropertyNames(it) {
4445 var names = gOPN(toIObject(it));
4446 var result = [];
4447 var i = 0;
4448 var key;
4449 while (names.length > i) {
4450 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
4451 } return result;
4452 };
4453 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
4454 var IS_OP = it === ObjectProto;
4455 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
4456 var result = [];
4457 var i = 0;
4458 var key;
4459 while (names.length > i) {
4460 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
4461 } return result;
4462 };
4463
4464 // 19.4.1.1 Symbol([description])
4465 if (!USE_NATIVE) {
4466 $Symbol = function Symbol() {
4467 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
4468 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
4469 var $set = function (value) {
4470 if (this === ObjectProto) $set.call(OPSymbols, value);
4471 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
4472 setSymbolDesc(this, tag, createDesc(1, value));
4473 };
4474 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
4475 return wrap(tag);
4476 };
4477 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
4478 return this._k;
4479 });
4480
4481 $GOPD.f = $getOwnPropertyDescriptor;
4482 $DP.f = $defineProperty;
4483 __webpack_require__(99).f = gOPNExt.f = $getOwnPropertyNames;
4484 __webpack_require__(50).f = $propertyIsEnumerable;
4485 $GOPS.f = $getOwnPropertySymbols;
4486
4487 if (DESCRIPTORS && !__webpack_require__(47)) {
4488 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
4489 }
4490
4491 wksExt.f = function (name) {
4492 return wrap(wks(name));
4493 };
4494 }
4495
4496 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
4497
4498 for (var es6Symbols = (
4499 // 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
4500 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
4501 ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
4502
4503 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
4504
4505 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
4506 // 19.4.2.1 Symbol.for(key)
4507 'for': function (key) {
4508 return has(SymbolRegistry, key += '')
4509 ? SymbolRegistry[key]
4510 : SymbolRegistry[key] = $Symbol(key);
4511 },
4512 // 19.4.2.5 Symbol.keyFor(sym)
4513 keyFor: function keyFor(sym) {
4514 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
4515 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
4516 },
4517 useSetter: function () { setter = true; },
4518 useSimple: function () { setter = false; }
4519 });
4520
4521 $export($export.S + $export.F * !USE_NATIVE, 'Object', {
4522 // 19.1.2.2 Object.create(O [, Properties])
4523 create: $create,
4524 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
4525 defineProperty: $defineProperty,
4526 // 19.1.2.3 Object.defineProperties(O, Properties)
4527 defineProperties: $defineProperties,
4528 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
4529 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
4530 // 19.1.2.7 Object.getOwnPropertyNames(O)
4531 getOwnPropertyNames: $getOwnPropertyNames,
4532 // 19.1.2.8 Object.getOwnPropertySymbols(O)
4533 getOwnPropertySymbols: $getOwnPropertySymbols
4534 });
4535
4536 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
4537 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
4538 var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
4539
4540 $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
4541 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
4542 return $GOPS.f(toObject(it));
4543 }
4544 });
4545
4546 // 24.3.2 JSON.stringify(value [, replacer [, space]])
4547 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
4548 var S = $Symbol();
4549 // MS Edge converts symbol values to JSON as {}
4550 // WebKit converts symbol values to JSON as null
4551 // V8 throws on boxed symbols
4552 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
4553 })), 'JSON', {
4554 stringify: function stringify(it) {
4555 var args = [it];
4556 var i = 1;
4557 var replacer, $replacer;
4558 while (arguments.length > i) args.push(arguments[i++]);
4559 $replacer = replacer = args[1];
4560 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
4561 if (!isArray(replacer)) replacer = function (key, value) {
4562 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
4563 if (!isSymbol(value)) return value;
4564 };
4565 args[1] = replacer;
4566 return _stringify.apply($JSON, args);
4567 }
4568 });
4569
4570 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
4571 $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
4572 // 19.4.3.5 Symbol.prototype[@@toStringTag]
4573 setToStringTag($Symbol, 'Symbol');
4574 // 20.2.1.9 Math[@@toStringTag]
4575 setToStringTag(Math, 'Math', true);
4576 // 24.3.3 JSON[@@toStringTag]
4577 setToStringTag(global.JSON, 'JSON', true);
4578
4579
4580 /***/ }),
4581 /* 141 */
4582 /***/ (function(module, exports, __webpack_require__) {
4583
4584 // call something on iterator step with safe closing on error
4585 var anObject = __webpack_require__(13);
4586 module.exports = function (iterator, fn, value, entries) {
4587 try {
4588 return entries ? fn(anObject(value)[0], value[1]) : fn(value);
4589 // 7.4.6 IteratorClose(iterator, completion)
4590 } catch (e) {
4591 var ret = iterator['return'];
4592 if (ret !== undefined) anObject(ret.call(iterator));
4593 throw e;
4594 }
4595 };
4596
4597
4598 /***/ }),
4599 /* 142 */
4600 /***/ (function(module, exports, __webpack_require__) {
4601
4602 // check on default Array iterator
4603 var Iterators = __webpack_require__(35);
4604 var ITERATOR = __webpack_require__(10)('iterator');
4605 var ArrayProto = Array.prototype;
4606
4607 module.exports = function (it) {
4608 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
4609 };
4610
4611
4612 /***/ }),
4613 /* 143 */
4614 /***/ (function(module, exports, __webpack_require__) {
4615
4616 // false -> Array#indexOf
4617 // true -> Array#includes
4618 var toIObject = __webpack_require__(98);
4619 var toLength = __webpack_require__(43);
4620 var toAbsoluteIndex = __webpack_require__(198);
4621 module.exports = function (IS_INCLUDES) {
4622 return function ($this, el, fromIndex) {
4623 var O = toIObject($this);
4624 var length = toLength(O.length);
4625 var index = toAbsoluteIndex(fromIndex, length);
4626 var value;
4627 // Array#includes uses SameValueZero equality algorithm
4628 // eslint-disable-next-line no-self-compare
4629 if (IS_INCLUDES && el != el) while (length > index) {
4630 value = O[index++];
4631 // eslint-disable-next-line no-self-compare
4632 if (value != value) return true;
4633 // Array#indexOf ignores holes, Array#includes - not
4634 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4635 if (O[index] === el) return IS_INCLUDES || index || 0;
4636 } return !IS_INCLUDES && -1;
4637 };
4638 };
4639
4640
4641 /***/ }),
4642 /* 144 */
4643 /***/ (function(module, exports, __webpack_require__) {
4644
4645 var toInteger = __webpack_require__(57);
4646 var defined = __webpack_require__(42);
4647 // true -> String#at
4648 // false -> String#codePointAt
4649 module.exports = function (TO_STRING) {
4650 return function (that, pos) {
4651 var s = String(defined(that));
4652 var i = toInteger(pos);
4653 var l = s.length;
4654 var a, b;
4655 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
4656 a = s.charCodeAt(i);
4657 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
4658 ? TO_STRING ? s.charAt(i) : a
4659 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
4660 };
4661 };
4662
4663
4664 /***/ }),
4665 /* 145 */
4666 /***/ (function(module, exports, __webpack_require__) {
4667
4668 module.exports = __webpack_require__(67)('native-function-to-string', Function.toString);
4669
4670
4671 /***/ }),
4672 /* 146 */
4673 /***/ (function(module, exports, __webpack_require__) {
4674
4675 "use strict";
4676
4677 // 25.4.1.5 NewPromiseCapability(C)
4678 var aFunction = __webpack_require__(38);
4679
4680 function PromiseCapability(C) {
4681 var resolve, reject;
4682 this.promise = new C(function ($$resolve, $$reject) {
4683 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
4684 resolve = $$resolve;
4685 reject = $$reject;
4686 });
4687 this.resolve = aFunction(resolve);
4688 this.reject = aFunction(reject);
4689 }
4690
4691 module.exports.f = function (C) {
4692 return new PromiseCapability(C);
4693 };
4694
4695
4696 /***/ }),
4697 /* 147 */
4698 /***/ (function(module, exports, __webpack_require__) {
4699
4700 var $iterators = __webpack_require__(117);
4701 var getKeys = __webpack_require__(184);
4702 var redefine = __webpack_require__(37);
4703 var global = __webpack_require__(17);
4704 var hide = __webpack_require__(29);
4705 var Iterators = __webpack_require__(118);
4706 var wks = __webpack_require__(12);
4707 var ITERATOR = wks('iterator');
4708 var TO_STRING_TAG = wks('toStringTag');
4709 var ArrayValues = Iterators.Array;
4710
4711 var DOMIterables = {
4712 CSSRuleList: true, // TODO: Not spec compliant, should be false.
4713 CSSStyleDeclaration: false,
4714 CSSValueList: false,
4715 ClientRectList: false,
4716 DOMRectList: false,
4717 DOMStringList: false,
4718 DOMTokenList: true,
4719 DataTransferItemList: false,
4720 FileList: false,
4721 HTMLAllCollection: false,
4722 HTMLCollection: false,
4723 HTMLFormElement: false,
4724 HTMLSelectElement: false,
4725 MediaList: true, // TODO: Not spec compliant, should be false.
4726 MimeTypeArray: false,
4727 NamedNodeMap: false,
4728 NodeList: true,
4729 PaintRequestList: false,
4730 Plugin: false,
4731 PluginArray: false,
4732 SVGLengthList: false,
4733 SVGNumberList: false,
4734 SVGPathSegList: false,
4735 SVGPointList: false,
4736 SVGStringList: false,
4737 SVGTransformList: false,
4738 SourceBufferList: false,
4739 StyleSheetList: true, // TODO: Not spec compliant, should be false.
4740 TextTrackCueList: false,
4741 TextTrackList: false,
4742 TouchList: false
4743 };
4744
4745 for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
4746 var NAME = collections[i];
4747 var explicit = DOMIterables[NAME];
4748 var Collection = global[NAME];
4749 var proto = Collection && Collection.prototype;
4750 var key;
4751 if (proto) {
4752 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
4753 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
4754 Iterators[NAME] = ArrayValues;
4755 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
4756 }
4757 }
4758
4759
4760 /***/ }),
4761 /* 148 */
4762 /***/ (function(module, exports) {
4763
4764 // IE 8- don't enum bug keys
4765 module.exports = (
4766 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
4767 ).split(',');
4768
4769
4770 /***/ }),
4771 /* 149 */
4772 /***/ (function(module, exports, __webpack_require__) {
4773
4774 var _Reflect$construct = __webpack_require__(107);
4775
4776 function _isNativeReflectConstruct() {
4777 if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
4778 if (_Reflect$construct.sham) return false;
4779 if (typeof Proxy === "function") return true;
4780
4781 try {
4782 Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
4783 return true;
4784 } catch (e) {
4785 return false;
4786 }
4787 }
4788
4789 module.exports = _isNativeReflectConstruct;
4790
4791 /***/ }),
4792 /* 150 */
4793 /***/ (function(module, exports) {
4794
4795 module.exports = function (done, value) {
4796 return { value: value, done: !!done };
4797 };
4798
4799
4800 /***/ }),
4801 /* 151 */
4802 /***/ (function(module, exports, __webpack_require__) {
4803
4804 module.exports = __webpack_require__(172);
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 "use strict";
4867 // 21.1.3.7 String.prototype.includes(searchString, position = 0)
4868
4869 var $export = __webpack_require__(34);
4870 var context = __webpack_require__(204);
4871 var INCLUDES = 'includes';
4872
4873 $export($export.P + $export.F * __webpack_require__(205)(INCLUDES), 'String', {
4874 includes: function includes(searchString /* , position = 0 */) {
4875 return !!~context(this, searchString, INCLUDES)
4876 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
4877 }
4878 });
4879
4880
4881 /***/ }),
4882 /* 156 */
4883 /***/ (function(module, exports, __webpack_require__) {
4884
4885 __webpack_require__(157);
4886 var $Object = __webpack_require__(6).Object;
4887 module.exports = function defineProperty(it, key, desc) {
4888 return $Object.defineProperty(it, key, desc);
4889 };
4890
4891
4892 /***/ }),
4893 /* 157 */
4894 /***/ (function(module, exports, __webpack_require__) {
4895
4896 var $export = __webpack_require__(7);
4897 // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
4898 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f });
4899
4900
4901 /***/ }),
4902 /* 158 */
4903 /***/ (function(module, exports, __webpack_require__) {
4904
4905 module.exports = __webpack_require__(159);
4906
4907 /***/ }),
4908 /* 159 */
4909 /***/ (function(module, exports, __webpack_require__) {
4910
4911 __webpack_require__(160);
4912 module.exports = __webpack_require__(6).Object.getPrototypeOf;
4913
4914
4915 /***/ }),
4916 /* 160 */
4917 /***/ (function(module, exports, __webpack_require__) {
4918
4919 // 19.1.2.9 Object.getPrototypeOf(O)
4920 var toObject = __webpack_require__(32);
4921 var $getPrototypeOf = __webpack_require__(64);
4922
4923 __webpack_require__(86)('getPrototypeOf', function () {
4924 return function getPrototypeOf(it) {
4925 return $getPrototypeOf(toObject(it));
4926 };
4927 });
4928
4929
4930 /***/ }),
4931 /* 161 */
4932 /***/ (function(module, exports, __webpack_require__) {
4933
4934 __webpack_require__(162);
4935 module.exports = __webpack_require__(6).Object.setPrototypeOf;
4936
4937
4938 /***/ }),
4939 /* 162 */
4940 /***/ (function(module, exports, __webpack_require__) {
4941
4942 // 19.1.3.19 Object.setPrototypeOf(O, proto)
4943 var $export = __webpack_require__(7);
4944 $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(163).set });
4945
4946
4947 /***/ }),
4948 /* 163 */
4949 /***/ (function(module, exports, __webpack_require__) {
4950
4951 // Works with __proto__ only. Old v8 can't work with null proto objects.
4952 /* eslint-disable no-proto */
4953 var isObject = __webpack_require__(9);
4954 var anObject = __webpack_require__(13);
4955 var check = function (O, proto) {
4956 anObject(O);
4957 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
4958 };
4959 module.exports = {
4960 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
4961 function (test, buggy, set) {
4962 try {
4963 set = __webpack_require__(31)(Function.call, __webpack_require__(51).f(Object.prototype, '__proto__').set, 2);
4964 set(test, []);
4965 buggy = !(test instanceof Array);
4966 } catch (e) { buggy = true; }
4967 return function setPrototypeOf(O, proto) {
4968 check(O, proto);
4969 if (buggy) O.__proto__ = proto;
4970 else set(O, proto);
4971 return O;
4972 };
4973 }({}, false) : undefined),
4974 check: check
4975 };
4976
4977
4978 /***/ }),
4979 /* 164 */
4980 /***/ (function(module, exports, __webpack_require__) {
4981
4982 __webpack_require__(165);
4983 var $Object = __webpack_require__(6).Object;
4984 module.exports = function create(P, D) {
4985 return $Object.create(P, D);
4986 };
4987
4988
4989 /***/ }),
4990 /* 165 */
4991 /***/ (function(module, exports, __webpack_require__) {
4992
4993 var $export = __webpack_require__(7);
4994 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
4995 $export($export.S, 'Object', { create: __webpack_require__(52) });
4996
4997
4998 /***/ }),
4999 /* 166 */
5000 /***/ (function(module, exports, __webpack_require__) {
5001
5002 // false -> Array#indexOf
5003 // true -> Array#includes
5004 var toIObject = __webpack_require__(20);
5005 var toLength = __webpack_require__(69);
5006 var toAbsoluteIndex = __webpack_require__(167);
5007 module.exports = function (IS_INCLUDES) {
5008 return function ($this, el, fromIndex) {
5009 var O = toIObject($this);
5010 var length = toLength(O.length);
5011 var index = toAbsoluteIndex(fromIndex, length);
5012 var value;
5013 // Array#includes uses SameValueZero equality algorithm
5014 // eslint-disable-next-line no-self-compare
5015 if (IS_INCLUDES && el != el) while (length > index) {
5016 value = O[index++];
5017 // eslint-disable-next-line no-self-compare
5018 if (value != value) return true;
5019 // Array#indexOf ignores holes, Array#includes - not
5020 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
5021 if (O[index] === el) return IS_INCLUDES || index || 0;
5022 } return !IS_INCLUDES && -1;
5023 };
5024 };
5025
5026
5027 /***/ }),
5028 /* 167 */
5029 /***/ (function(module, exports, __webpack_require__) {
5030
5031 var toInteger = __webpack_require__(77);
5032 var max = Math.max;
5033 var min = Math.min;
5034 module.exports = function (index, length) {
5035 index = toInteger(index);
5036 return index < 0 ? max(index + length, 0) : min(index, length);
5037 };
5038
5039
5040 /***/ }),
5041 /* 168 */
5042 /***/ (function(module, exports, __webpack_require__) {
5043
5044 __webpack_require__(169);
5045 module.exports = __webpack_require__(6).Reflect.construct;
5046
5047
5048 /***/ }),
5049 /* 169 */
5050 /***/ (function(module, exports, __webpack_require__) {
5051
5052 // 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
5053 var $export = __webpack_require__(7);
5054 var create = __webpack_require__(52);
5055 var aFunction = __webpack_require__(38);
5056 var anObject = __webpack_require__(13);
5057 var isObject = __webpack_require__(9);
5058 var fails = __webpack_require__(22);
5059 var bind = __webpack_require__(170);
5060 var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
5061
5062 // MS Edge supports only 2 arguments and argumentsList argument is optional
5063 // FF Nightly sets third argument as `new.target`, but does not create `this` from it
5064 var NEW_TARGET_BUG = fails(function () {
5065 function F() { /* empty */ }
5066 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
5067 });
5068 var ARGS_BUG = !fails(function () {
5069 rConstruct(function () { /* empty */ });
5070 });
5071
5072 $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
5073 construct: function construct(Target, args /* , newTarget */) {
5074 aFunction(Target);
5075 anObject(args);
5076 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
5077 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
5078 if (Target == newTarget) {
5079 // w/o altered newTarget, optimization for 0-4 arguments
5080 switch (args.length) {
5081 case 0: return new Target();
5082 case 1: return new Target(args[0]);
5083 case 2: return new Target(args[0], args[1]);
5084 case 3: return new Target(args[0], args[1], args[2]);
5085 case 4: return new Target(args[0], args[1], args[2], args[3]);
5086 }
5087 // w/o altered newTarget, lot of arguments case
5088 var $args = [null];
5089 $args.push.apply($args, args);
5090 return new (bind.apply(Target, $args))();
5091 }
5092 // with altered newTarget, not support built-in constructors
5093 var proto = newTarget.prototype;
5094 var instance = create(isObject(proto) ? proto : Object.prototype);
5095 var result = Function.apply.call(Target, instance, args);
5096 return isObject(result) ? result : instance;
5097 }
5098 });
5099
5100
5101 /***/ }),
5102 /* 170 */
5103 /***/ (function(module, exports, __webpack_require__) {
5104
5105 "use strict";
5106
5107 var aFunction = __webpack_require__(38);
5108 var isObject = __webpack_require__(9);
5109 var invoke = __webpack_require__(132);
5110 var arraySlice = [].slice;
5111 var factories = {};
5112
5113 var construct = function (F, len, args) {
5114 if (!(len in factories)) {
5115 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
5116 // eslint-disable-next-line no-new-func
5117 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
5118 } return factories[len](F, args);
5119 };
5120
5121 module.exports = Function.bind || function bind(that /* , ...args */) {
5122 var fn = aFunction(this);
5123 var partArgs = arraySlice.call(arguments, 1);
5124 var bound = function (/* args... */) {
5125 var args = partArgs.concat(arraySlice.call(arguments));
5126 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
5127 };
5128 if (isObject(fn.prototype)) bound.prototype = fn.prototype;
5129 return bound;
5130 };
5131
5132
5133 /***/ }),
5134 /* 171 */
5135 /***/ (function(module, exports, __webpack_require__) {
5136
5137 var _typeof = __webpack_require__(48);
5138
5139 var assertThisInitialized = __webpack_require__(49);
5140
5141 function _possibleConstructorReturn(self, call) {
5142 if (call && (_typeof(call) === "object" || typeof call === "function")) {
5143 return call;
5144 }
5145
5146 return assertThisInitialized(self);
5147 }
5148
5149 module.exports = _possibleConstructorReturn;
5150
5151 /***/ }),
5152 /* 172 */
5153 /***/ (function(module, exports, __webpack_require__) {
5154
5155 __webpack_require__(60);
5156 __webpack_require__(62);
5157 module.exports = __webpack_require__(63).f('iterator');
5158
5159
5160 /***/ }),
5161 /* 173 */
5162 /***/ (function(module, exports, __webpack_require__) {
5163
5164 var toInteger = __webpack_require__(77);
5165 var defined = __webpack_require__(65);
5166 // true -> String#at
5167 // false -> String#codePointAt
5168 module.exports = function (TO_STRING) {
5169 return function (that, pos) {
5170 var s = String(defined(that));
5171 var i = toInteger(pos);
5172 var l = s.length;
5173 var a, b;
5174 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
5175 a = s.charCodeAt(i);
5176 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
5177 ? TO_STRING ? s.charAt(i) : a
5178 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
5179 };
5180 };
5181
5182
5183 /***/ }),
5184 /* 174 */
5185 /***/ (function(module, exports, __webpack_require__) {
5186
5187 "use strict";
5188
5189 var create = __webpack_require__(52);
5190 var descriptor = __webpack_require__(44);
5191 var setToStringTag = __webpack_require__(53);
5192 var IteratorPrototype = {};
5193
5194 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
5195 __webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
5196
5197 module.exports = function (Constructor, NAME, next) {
5198 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
5199 setToStringTag(Constructor, NAME + ' Iterator');
5200 };
5201
5202
5203 /***/ }),
5204 /* 175 */
5205 /***/ (function(module, exports, __webpack_require__) {
5206
5207 "use strict";
5208
5209 var addToUnscopables = __webpack_require__(176);
5210 var step = __webpack_require__(150);
5211 var Iterators = __webpack_require__(35);
5212 var toIObject = __webpack_require__(20);
5213
5214 // 22.1.3.4 Array.prototype.entries()
5215 // 22.1.3.13 Array.prototype.keys()
5216 // 22.1.3.29 Array.prototype.values()
5217 // 22.1.3.30 Array.prototype[@@iterator]()
5218 module.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) {
5219 this._t = toIObject(iterated); // target
5220 this._i = 0; // next index
5221 this._k = kind; // kind
5222 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
5223 }, function () {
5224 var O = this._t;
5225 var kind = this._k;
5226 var index = this._i++;
5227 if (!O || index >= O.length) {
5228 this._t = undefined;
5229 return step(1);
5230 }
5231 if (kind == 'keys') return step(0, index);
5232 if (kind == 'values') return step(0, O[index]);
5233 return step(0, [index, O[index]]);
5234 }, 'values');
5235
5236 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
5237 Iterators.Arguments = Iterators.Array;
5238
5239 addToUnscopables('keys');
5240 addToUnscopables('values');
5241 addToUnscopables('entries');
5242
5243
5244 /***/ }),
5245 /* 176 */
5246 /***/ (function(module, exports) {
5247
5248 module.exports = function () { /* empty */ };
5249
5250
5251 /***/ }),
5252 /* 177 */
5253 /***/ (function(module, exports, __webpack_require__) {
5254
5255 __webpack_require__(140);
5256 __webpack_require__(100);
5257 __webpack_require__(180);
5258 __webpack_require__(181);
5259 module.exports = __webpack_require__(6).Symbol;
5260
5261
5262 /***/ }),
5263 /* 178 */
5264 /***/ (function(module, exports, __webpack_require__) {
5265
5266 // all enumerable object keys, includes symbols
5267 var getKeys = __webpack_require__(40);
5268 var gOPS = __webpack_require__(71);
5269 var pIE = __webpack_require__(50);
5270 module.exports = function (it) {
5271 var result = getKeys(it);
5272 var getSymbols = gOPS.f;
5273 if (getSymbols) {
5274 var symbols = getSymbols(it);
5275 var isEnum = pIE.f;
5276 var i = 0;
5277 var key;
5278 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
5279 } return result;
5280 };
5281
5282
5283 /***/ }),
5284 /* 179 */
5285 /***/ (function(module, exports, __webpack_require__) {
5286
5287 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
5288 var toIObject = __webpack_require__(20);
5289 var gOPN = __webpack_require__(99).f;
5290 var toString = {}.toString;
5291
5292 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
5293 ? Object.getOwnPropertyNames(window) : [];
5294
5295 var getWindowNames = function (it) {
5296 try {
5297 return gOPN(it);
5298 } catch (e) {
5299 return windowNames.slice();
5300 }
5301 };
5302
5303 module.exports.f = function getOwnPropertyNames(it) {
5304 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
5305 };
5306
5307
5308 /***/ }),
5309 /* 180 */
5310 /***/ (function(module, exports, __webpack_require__) {
5311
5312 __webpack_require__(79)('asyncIterator');
5313
5314
5315 /***/ }),
5316 /* 181 */
5317 /***/ (function(module, exports, __webpack_require__) {
5318
5319 __webpack_require__(79)('observable');
5320
5321
5322 /***/ }),
5323 /* 182 */
5324 /***/ (function(module, exports, __webpack_require__) {
5325
5326 // 0 -> Array#forEach
5327 // 1 -> Array#map
5328 // 2 -> Array#filter
5329 // 3 -> Array#some
5330 // 4 -> Array#every
5331 // 5 -> Array#find
5332 // 6 -> Array#findIndex
5333 var ctx = __webpack_require__(73);
5334 var IObject = __webpack_require__(120);
5335 var toObject = __webpack_require__(96);
5336 var toLength = __webpack_require__(43);
5337 var asc = __webpack_require__(216);
5338 module.exports = function (TYPE, $create) {
5339 var IS_MAP = TYPE == 1;
5340 var IS_FILTER = TYPE == 2;
5341 var IS_SOME = TYPE == 3;
5342 var IS_EVERY = TYPE == 4;
5343 var IS_FIND_INDEX = TYPE == 6;
5344 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
5345 var create = $create || asc;
5346 return function ($this, callbackfn, that) {
5347 var O = toObject($this);
5348 var self = IObject(O);
5349 var f = ctx(callbackfn, that, 3);
5350 var length = toLength(self.length);
5351 var index = 0;
5352 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
5353 var val, res;
5354 for (;length > index; index++) if (NO_HOLES || index in self) {
5355 val = self[index];
5356 res = f(val, index, O);
5357 if (TYPE) {
5358 if (IS_MAP) result[index] = res; // map
5359 else if (res) switch (TYPE) {
5360 case 3: return true; // some
5361 case 5: return val; // find
5362 case 6: return index; // findIndex
5363 case 2: result.push(val); // filter
5364 } else if (IS_EVERY) return false; // every
5365 }
5366 }
5367 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
5368 };
5369 };
5370
5371
5372 /***/ }),
5373 /* 183 */
5374 /***/ (function(module, exports, __webpack_require__) {
5375
5376 "use strict";
5377
5378 __webpack_require__(280);
5379 var anObject = __webpack_require__(18);
5380 var $flags = __webpack_require__(106);
5381 var DESCRIPTORS = __webpack_require__(27);
5382 var TO_STRING = 'toString';
5383 var $toString = /./[TO_STRING];
5384
5385 var define = function (fn) {
5386 __webpack_require__(37)(RegExp.prototype, TO_STRING, fn, true);
5387 };
5388
5389 // 21.2.5.14 RegExp.prototype.toString()
5390 if (__webpack_require__(33)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
5391 define(function toString() {
5392 var R = anObject(this);
5393 return '/'.concat(R.source, '/',
5394 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
5395 });
5396 // FF44- RegExp#toString has a wrong name
5397 } else if ($toString.name != TO_STRING) {
5398 define(function toString() {
5399 return $toString.call(this);
5400 });
5401 }
5402
5403
5404 /***/ }),
5405 /* 184 */
5406 /***/ (function(module, exports, __webpack_require__) {
5407
5408 // 19.1.2.14 / 15.2.3.14 Object.keys(O)
5409 var $keys = __webpack_require__(219);
5410 var enumBugKeys = __webpack_require__(148);
5411
5412 module.exports = Object.keys || function keys(O) {
5413 return $keys(O, enumBugKeys);
5414 };
5415
5416
5417 /***/ }),
5418 /* 185 */
5419 /***/ (function(module, exports, __webpack_require__) {
5420
5421 var DESCRIPTORS = __webpack_require__(14);
5422 var getKeys = __webpack_require__(40);
5423 var toIObject = __webpack_require__(20);
5424 var isEnum = __webpack_require__(50).f;
5425 module.exports = function (isEntries) {
5426 return function (it) {
5427 var O = toIObject(it);
5428 var keys = getKeys(O);
5429 var length = keys.length;
5430 var i = 0;
5431 var result = [];
5432 var key;
5433 while (length > i) {
5434 key = keys[i++];
5435 if (!DESCRIPTORS || isEnum.call(O, key)) {
5436 result.push(isEntries ? [key, O[key]] : O[key]);
5437 }
5438 }
5439 return result;
5440 };
5441 };
5442
5443
5444 /***/ }),
5445 /* 186 */
5446 /***/ (function(module, exports, __webpack_require__) {
5447
5448 "use strict";
5449
5450 var $defineProperty = __webpack_require__(15);
5451 var createDesc = __webpack_require__(44);
5452
5453 module.exports = function (object, index, value) {
5454 if (index in object) $defineProperty.f(object, index, createDesc(0, value));
5455 else object[index] = value;
5456 };
5457
5458
5459 /***/ }),
5460 /* 187 */
5461 /***/ (function(module, exports, __webpack_require__) {
5462
5463 var _Array$from = __webpack_require__(200);
5464
5465 var arrayLikeToArray = __webpack_require__(199);
5466
5467 function _unsupportedIterableToArray(o, minLen) {
5468 if (!o) return;
5469 if (typeof o === "string") return arrayLikeToArray(o, minLen);
5470 var n = Object.prototype.toString.call(o).slice(8, -1);
5471 if (n === "Object" && o.constructor) n = o.constructor.name;
5472 if (n === "Map" || n === "Set") return _Array$from(o);
5473 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
5474 }
5475
5476 module.exports = _unsupportedIterableToArray;
5477
5478 /***/ }),
5479 /* 188 */,
5480 /* 189 */,
5481 /* 190 */
5482 /***/ (function(module, exports, __webpack_require__) {
5483
5484 "use strict";
5485
5486 var regexpExec = __webpack_require__(90);
5487 __webpack_require__(34)({
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__(86)('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__(34);
5588 var redefine = __webpack_require__(37);
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__(86)('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 // helper for String#{startsWith, endsWith, includes}
5769 var isRegExp = __webpack_require__(122);
5770 var defined = __webpack_require__(42);
5771
5772 module.exports = function (that, searchString, NAME) {
5773 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
5774 return String(defined(that));
5775 };
5776
5777
5778 /***/ }),
5779 /* 205 */
5780 /***/ (function(module, exports, __webpack_require__) {
5781
5782 var MATCH = __webpack_require__(12)('match');
5783 module.exports = function (KEY) {
5784 var re = /./;
5785 try {
5786 '/./'[KEY](re);
5787 } catch (e) {
5788 try {
5789 re[MATCH] = false;
5790 return !'/./'[KEY](re);
5791 } catch (f) { /* empty */ }
5792 } return true;
5793 };
5794
5795
5796 /***/ }),
5797 /* 206 */
5798 /***/ (function(module, exports, __webpack_require__) {
5799
5800 module.exports = __webpack_require__(316);
5801
5802 /***/ }),
5803 /* 207 */
5804 /***/ (function(module, exports, __webpack_require__) {
5805
5806 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
5807 var anObject = __webpack_require__(13);
5808 var aFunction = __webpack_require__(38);
5809 var SPECIES = __webpack_require__(10)('species');
5810 module.exports = function (O, D) {
5811 var C = anObject(O).constructor;
5812 var S;
5813 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
5814 };
5815
5816
5817 /***/ }),
5818 /* 208 */
5819 /***/ (function(module, exports, __webpack_require__) {
5820
5821 var ctx = __webpack_require__(31);
5822 var invoke = __webpack_require__(132);
5823 var html = __webpack_require__(131);
5824 var cel = __webpack_require__(92);
5825 var global = __webpack_require__(8);
5826 var process = global.process;
5827 var setTask = global.setImmediate;
5828 var clearTask = global.clearImmediate;
5829 var MessageChannel = global.MessageChannel;
5830 var Dispatch = global.Dispatch;
5831 var counter = 0;
5832 var queue = {};
5833 var ONREADYSTATECHANGE = 'onreadystatechange';
5834 var defer, channel, port;
5835 var run = function () {
5836 var id = +this;
5837 // eslint-disable-next-line no-prototype-builtins
5838 if (queue.hasOwnProperty(id)) {
5839 var fn = queue[id];
5840 delete queue[id];
5841 fn();
5842 }
5843 };
5844 var listener = function (event) {
5845 run.call(event.data);
5846 };
5847 // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5848 if (!setTask || !clearTask) {
5849 setTask = function setImmediate(fn) {
5850 var args = [];
5851 var i = 1;
5852 while (arguments.length > i) args.push(arguments[i++]);
5853 queue[++counter] = function () {
5854 // eslint-disable-next-line no-new-func
5855 invoke(typeof fn == 'function' ? fn : Function(fn), args);
5856 };
5857 defer(counter);
5858 return counter;
5859 };
5860 clearTask = function clearImmediate(id) {
5861 delete queue[id];
5862 };
5863 // Node.js 0.8-
5864 if (__webpack_require__(56)(process) == 'process') {
5865 defer = function (id) {
5866 process.nextTick(ctx(run, id, 1));
5867 };
5868 // Sphere (JS game engine) Dispatch API
5869 } else if (Dispatch && Dispatch.now) {
5870 defer = function (id) {
5871 Dispatch.now(ctx(run, id, 1));
5872 };
5873 // Browsers with MessageChannel, includes WebWorkers
5874 } else if (MessageChannel) {
5875 channel = new MessageChannel();
5876 port = channel.port2;
5877 channel.port1.onmessage = listener;
5878 defer = ctx(port.postMessage, port, 1);
5879 // Browsers with postMessage, skip WebWorkers
5880 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5881 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
5882 defer = function (id) {
5883 global.postMessage(id + '', '*');
5884 };
5885 global.addEventListener('message', listener, false);
5886 // IE8-
5887 } else if (ONREADYSTATECHANGE in cel('script')) {
5888 defer = function (id) {
5889 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
5890 html.removeChild(this);
5891 run.call(id);
5892 };
5893 };
5894 // Rest old browsers
5895 } else {
5896 defer = function (id) {
5897 setTimeout(ctx(run, id, 1), 0);
5898 };
5899 }
5900 }
5901 module.exports = {
5902 set: setTask,
5903 clear: clearTask
5904 };
5905
5906
5907 /***/ }),
5908 /* 209 */
5909 /***/ (function(module, exports) {
5910
5911 module.exports = function (exec) {
5912 try {
5913 return { e: false, v: exec() };
5914 } catch (e) {
5915 return { e: true, v: e };
5916 }
5917 };
5918
5919
5920 /***/ }),
5921 /* 210 */
5922 /***/ (function(module, exports, __webpack_require__) {
5923
5924 var anObject = __webpack_require__(13);
5925 var isObject = __webpack_require__(9);
5926 var newPromiseCapability = __webpack_require__(146);
5927
5928 module.exports = function (C, x) {
5929 anObject(C);
5930 if (isObject(x) && x.constructor === C) return x;
5931 var promiseCapability = newPromiseCapability.f(C);
5932 var resolve = promiseCapability.resolve;
5933 resolve(x);
5934 return promiseCapability.promise;
5935 };
5936
5937
5938 /***/ }),
5939 /* 211 */
5940 /***/ (function(module, exports, __webpack_require__) {
5941
5942 module.exports = __webpack_require__(230);
5943
5944 /***/ }),
5945 /* 212 */
5946 /***/ (function(module, exports, __webpack_require__) {
5947
5948 "use strict";
5949
5950 // 19.1.2.1 Object.assign(target, source, ...)
5951 var DESCRIPTORS = __webpack_require__(14);
5952 var getKeys = __webpack_require__(40);
5953 var gOPS = __webpack_require__(71);
5954 var pIE = __webpack_require__(50);
5955 var toObject = __webpack_require__(32);
5956 var IObject = __webpack_require__(104);
5957 var $assign = Object.assign;
5958
5959 // should work with symbols and should have deterministic property order (V8 bug)
5960 module.exports = !$assign || __webpack_require__(22)(function () {
5961 var A = {};
5962 var B = {};
5963 // eslint-disable-next-line no-undef
5964 var S = Symbol();
5965 var K = 'abcdefghijklmnopqrst';
5966 A[S] = 7;
5967 K.split('').forEach(function (k) { B[k] = k; });
5968 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
5969 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
5970 var T = toObject(target);
5971 var aLen = arguments.length;
5972 var index = 1;
5973 var getSymbols = gOPS.f;
5974 var isEnum = pIE.f;
5975 while (aLen > index) {
5976 var S = IObject(arguments[index++]);
5977 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
5978 var length = keys.length;
5979 var j = 0;
5980 var key;
5981 while (length > j) {
5982 key = keys[j++];
5983 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
5984 }
5985 } return T;
5986 } : $assign;
5987
5988
5989 /***/ }),
5990 /* 213 */,
5991 /* 214 */
5992 /***/ (function(module, exports, __webpack_require__) {
5993
5994 var _Object$defineProperty = __webpack_require__(1);
5995
5996 var _Object$defineProperties = __webpack_require__(290);
5997
5998 var _Object$getOwnPropertyDescriptors = __webpack_require__(303);
5999
6000 var _Object$getOwnPropertyDescriptor = __webpack_require__(124);
6001
6002 var _Object$getOwnPropertySymbols = __webpack_require__(307);
6003
6004 var _Object$keys = __webpack_require__(23);
6005
6006 var defineProperty = __webpack_require__(28);
6007
6008 function ownKeys(object, enumerableOnly) {
6009 var keys = _Object$keys(object);
6010
6011 if (_Object$getOwnPropertySymbols) {
6012 var symbols = _Object$getOwnPropertySymbols(object);
6013
6014 if (enumerableOnly) symbols = symbols.filter(function (sym) {
6015 return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
6016 });
6017 keys.push.apply(keys, symbols);
6018 }
6019
6020 return keys;
6021 }
6022
6023 function _objectSpread2(target) {
6024 for (var i = 1; i < arguments.length; i++) {
6025 var source = arguments[i] != null ? arguments[i] : {};
6026
6027 if (i % 2) {
6028 ownKeys(Object(source), true).forEach(function (key) {
6029 defineProperty(target, key, source[key]);
6030 });
6031 } else if (_Object$getOwnPropertyDescriptors) {
6032 _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
6033 } else {
6034 ownKeys(Object(source)).forEach(function (key) {
6035 _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
6036 });
6037 }
6038 }
6039
6040 return target;
6041 }
6042
6043 module.exports = _objectSpread2;
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__(143)(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__(286));
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__(148);
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__(141);
6432 var isArrayIter = __webpack_require__(142);
6433 var toLength = __webpack_require__(69);
6434 var createProperty = __webpack_require__(186);
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__(35);
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__(88);
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__(138)(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__(88);
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__(185)(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__(103);
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__(184);
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__(84);
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__(211);
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__(84));
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__(26));
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__(88);
6994 var speciesConstructor = __webpack_require__(207);
6995 var task = __webpack_require__(208).set;
6996 var microtask = __webpack_require__(259)();
6997 var newPromiseCapabilityModule = __webpack_require__(146);
6998 var perform = __webpack_require__(209);
6999 var userAgent = __webpack_require__(260);
7000 var promiseResolve = __webpack_require__(210);
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__(208).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__(207);
7368 var promiseResolve = __webpack_require__(210);
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__(146);
7393 var perform = __webpack_require__(209);
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__(138)(0);
7429 var redefine = __webpack_require__(93);
7430 var meta = __webpack_require__(70);
7431 var assign = __webpack_require__(212);
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__(88);
7500 var createArrayMethod = __webpack_require__(138);
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__(185)(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__(144)(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 /* 277 */
7674 /***/ (function(module, exports, __webpack_require__) {
7675
7676 "use strict";
7677 // 21.1.3.18 String.prototype.startsWith(searchString [, position ])
7678
7679 var $export = __webpack_require__(34);
7680 var toLength = __webpack_require__(43);
7681 var context = __webpack_require__(204);
7682 var STARTS_WITH = 'startsWith';
7683 var $startsWith = ''[STARTS_WITH];
7684
7685 $export($export.P + $export.F * __webpack_require__(205)(STARTS_WITH), 'String', {
7686 startsWith: function startsWith(searchString /* , position = 0 */) {
7687 var that = context(this, searchString, STARTS_WITH);
7688 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
7689 var search = String(searchString);
7690 return $startsWith
7691 ? $startsWith.call(that, search, index)
7692 : that.slice(index, index + search.length) === search;
7693 }
7694 });
7695
7696
7697 /***/ }),
7698 /* 278 */
7699 /***/ (function(module, exports, __webpack_require__) {
7700
7701 "use strict";
7702
7703
7704 var _interopRequireDefault = __webpack_require__(0);
7705
7706 var _Object$defineProperty = __webpack_require__(1);
7707
7708 _Object$defineProperty(exports, "__esModule", {
7709 value: true
7710 });
7711
7712 exports.default = exports.After = void 0;
7713
7714 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7715
7716 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7717
7718 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7719
7720 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7721
7722 var _base = _interopRequireDefault(__webpack_require__(314));
7723
7724 var After = /*#__PURE__*/function (_Base) {
7725 (0, _inherits2.default)(After, _Base);
7726
7727 var _super = (0, _createSuper2.default)(After);
7728
7729 function After() {
7730 (0, _classCallCheck2.default)(this, After);
7731 return _super.apply(this, arguments);
7732 }
7733
7734 (0, _createClass2.default)(After, [{
7735 key: "register",
7736 value: function register() {
7737 $e.hooks.registerUIAfter(this);
7738 }
7739 }]);
7740 return After;
7741 }(_base.default);
7742
7743 exports.After = After;
7744 var _default = After;
7745 exports.default = _default;
7746
7747 /***/ }),
7748 /* 279 */,
7749 /* 280 */
7750 /***/ (function(module, exports, __webpack_require__) {
7751
7752 // 21.2.5.3 get RegExp.prototype.flags()
7753 if (__webpack_require__(27) && /./g.flags != 'g') __webpack_require__(45).f(RegExp.prototype, 'flags', {
7754 configurable: true,
7755 get: __webpack_require__(106)
7756 });
7757
7758
7759 /***/ }),
7760 /* 281 */,
7761 /* 282 */,
7762 /* 283 */,
7763 /* 284 */,
7764 /* 285 */,
7765 /* 286 */
7766 /***/ (function(module, exports, __webpack_require__) {
7767
7768 "use strict";
7769
7770
7771 var _interopRequireDefault = __webpack_require__(0);
7772
7773 var _Object$defineProperty = __webpack_require__(1);
7774
7775 _Object$defineProperty(exports, "__esModule", {
7776 value: true
7777 });
7778
7779 exports.default = exports.Base = void 0;
7780
7781 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7782
7783 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7784
7785 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7786
7787 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7788
7789 var _hookBase = _interopRequireDefault(__webpack_require__(294));
7790
7791 var Base = /*#__PURE__*/function (_HookBase) {
7792 (0, _inherits2.default)(Base, _HookBase);
7793
7794 var _super = (0, _createSuper2.default)(Base);
7795
7796 function Base() {
7797 (0, _classCallCheck2.default)(this, Base);
7798 return _super.apply(this, arguments);
7799 }
7800
7801 (0, _createClass2.default)(Base, [{
7802 key: "getType",
7803 value: function getType() {
7804 return 'data';
7805 }
7806 }]);
7807 return Base;
7808 }(_hookBase.default);
7809
7810 exports.Base = Base;
7811 var _default = Base;
7812 exports.default = _default;
7813
7814 /***/ }),
7815 /* 287 */
7816 /***/ (function(module, exports, __webpack_require__) {
7817
7818 "use strict";
7819
7820
7821 var _interopRequireWildcard = __webpack_require__(36);
7822
7823 var _interopRequireDefault = __webpack_require__(0);
7824
7825 var _Object$defineProperty = __webpack_require__(1);
7826
7827 _Object$defineProperty(exports, "__esModule", {
7828 value: true
7829 });
7830
7831 exports.default = void 0;
7832
7833 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
7834
7835 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
7836
7837 var _get2 = _interopRequireDefault(__webpack_require__(26));
7838
7839 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
7840
7841 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
7842
7843 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
7844
7845 var _componentBase = _interopRequireDefault(__webpack_require__(85));
7846
7847 var commands = _interopRequireWildcard(__webpack_require__(321));
7848
7849 var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) {
7850 (0, _inherits2.default)(ComponentModalBase, _ComponentBase);
7851
7852 var _super = (0, _createSuper2.default)(ComponentModalBase);
7853
7854 function ComponentModalBase() {
7855 (0, _classCallCheck2.default)(this, ComponentModalBase);
7856 return _super.apply(this, arguments);
7857 }
7858
7859 (0, _createClass2.default)(ComponentModalBase, [{
7860 key: "registerAPI",
7861 value: function registerAPI() {
7862 var _this = this;
7863
7864 (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this);
7865 $e.shortcuts.register('esc', {
7866 scopes: [this.getNamespace()],
7867 callback: function callback() {
7868 return _this.close();
7869 }
7870 });
7871 }
7872 }, {
7873 key: "defaultCommands",
7874 value: function defaultCommands() {
7875 return this.importCommands(commands);
7876 }
7877 }, {
7878 key: "defaultRoutes",
7879 value: function defaultRoutes() {
7880 return {
7881 '': function _() {
7882 /* Nothing to do, it's already rendered. */
7883 }
7884 };
7885 }
7886 }, {
7887 key: "open",
7888 value: function open() {
7889 var _this2 = this;
7890
7891 if (!this.layout) {
7892 var layout = this.getModalLayout();
7893 this.layout = new layout({
7894 component: this
7895 });
7896 this.layout.getModal().on('hide', function () {
7897 return _this2.close();
7898 });
7899 }
7900
7901 this.layout.showModal();
7902 return true;
7903 }
7904 }, {
7905 key: "close",
7906 value: function close() {
7907 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) {
7908 return false;
7909 }
7910
7911 this.layout.getModal().hide();
7912 return true;
7913 }
7914 }, {
7915 key: "getModalLayout",
7916 value: function getModalLayout() {
7917 elementorModules.ForceMethodImplementation();
7918 }
7919 }]);
7920 return ComponentModalBase;
7921 }(_componentBase.default);
7922
7923 exports.default = ComponentModalBase;
7924
7925 /***/ }),
7926 /* 288 */
7927 /***/ (function(module, exports, __webpack_require__) {
7928
7929 __webpack_require__(289);
7930 module.exports = __webpack_require__(6).Object.assign;
7931
7932
7933 /***/ }),
7934 /* 289 */
7935 /***/ (function(module, exports, __webpack_require__) {
7936
7937 // 19.1.3.1 Object.assign(target, source)
7938 var $export = __webpack_require__(7);
7939
7940 $export($export.S + $export.F, 'Object', { assign: __webpack_require__(212) });
7941
7942
7943 /***/ }),
7944 /* 290 */
7945 /***/ (function(module, exports, __webpack_require__) {
7946
7947 module.exports = __webpack_require__(291);
7948
7949 /***/ }),
7950 /* 291 */
7951 /***/ (function(module, exports, __webpack_require__) {
7952
7953 __webpack_require__(292);
7954 var $Object = __webpack_require__(6).Object;
7955 module.exports = function defineProperties(T, D) {
7956 return $Object.defineProperties(T, D);
7957 };
7958
7959
7960 /***/ }),
7961 /* 292 */
7962 /***/ (function(module, exports, __webpack_require__) {
7963
7964 var $export = __webpack_require__(7);
7965 // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
7966 $export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(136) });
7967
7968
7969 /***/ }),
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__(37)(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__(186);
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__(140);
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__(103);
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__(148).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__(134));
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__(55));
8983
8984 __webpack_require__(147);
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__(631));
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__(139);
9411
9412 var _Map = __webpack_require__(393);
9413
9414 var getPrototypeOf = __webpack_require__(16);
9415
9416 var setPrototypeOf = __webpack_require__(137);
9417
9418 var isNativeFunction = __webpack_require__(402);
9419
9420 var construct = __webpack_require__(403);
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__(286));
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 /* 393 */
9559 /***/ (function(module, exports, __webpack_require__) {
9560
9561 module.exports = __webpack_require__(394);
9562
9563 /***/ }),
9564 /* 394 */
9565 /***/ (function(module, exports, __webpack_require__) {
9566
9567 __webpack_require__(100);
9568 __webpack_require__(60);
9569 __webpack_require__(62);
9570 __webpack_require__(395);
9571 __webpack_require__(397);
9572 __webpack_require__(400);
9573 __webpack_require__(401);
9574 module.exports = __webpack_require__(6).Map;
9575
9576
9577 /***/ }),
9578 /* 395 */
9579 /***/ (function(module, exports, __webpack_require__) {
9580
9581 "use strict";
9582
9583 var strong = __webpack_require__(396);
9584 var validate = __webpack_require__(121);
9585 var MAP = 'Map';
9586
9587 // 23.1 Map Objects
9588 module.exports = __webpack_require__(232)(MAP, function (get) {
9589 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
9590 }, {
9591 // 23.1.3.6 Map.prototype.get(key)
9592 get: function get(key) {
9593 var entry = strong.getEntry(validate(this, MAP), key);
9594 return entry && entry.v;
9595 },
9596 // 23.1.3.9 Map.prototype.set(key, value)
9597 set: function set(key, value) {
9598 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
9599 }
9600 }, strong, true);
9601
9602
9603 /***/ }),
9604 /* 396 */
9605 /***/ (function(module, exports, __webpack_require__) {
9606
9607 "use strict";
9608
9609 var dP = __webpack_require__(15).f;
9610 var create = __webpack_require__(52);
9611 var redefineAll = __webpack_require__(126);
9612 var ctx = __webpack_require__(31);
9613 var anInstance = __webpack_require__(125);
9614 var forOf = __webpack_require__(88);
9615 var $iterDefine = __webpack_require__(108);
9616 var step = __webpack_require__(150);
9617 var setSpecies = __webpack_require__(225);
9618 var DESCRIPTORS = __webpack_require__(14);
9619 var fastKey = __webpack_require__(70).fastKey;
9620 var validate = __webpack_require__(121);
9621 var SIZE = DESCRIPTORS ? '_s' : 'size';
9622
9623 var getEntry = function (that, key) {
9624 // fast case
9625 var index = fastKey(key);
9626 var entry;
9627 if (index !== 'F') return that._i[index];
9628 // frozen object case
9629 for (entry = that._f; entry; entry = entry.n) {
9630 if (entry.k == key) return entry;
9631 }
9632 };
9633
9634 module.exports = {
9635 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
9636 var C = wrapper(function (that, iterable) {
9637 anInstance(that, C, NAME, '_i');
9638 that._t = NAME; // collection type
9639 that._i = create(null); // index
9640 that._f = undefined; // first entry
9641 that._l = undefined; // last entry
9642 that[SIZE] = 0; // size
9643 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
9644 });
9645 redefineAll(C.prototype, {
9646 // 23.1.3.1 Map.prototype.clear()
9647 // 23.2.3.2 Set.prototype.clear()
9648 clear: function clear() {
9649 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
9650 entry.r = true;
9651 if (entry.p) entry.p = entry.p.n = undefined;
9652 delete data[entry.i];
9653 }
9654 that._f = that._l = undefined;
9655 that[SIZE] = 0;
9656 },
9657 // 23.1.3.3 Map.prototype.delete(key)
9658 // 23.2.3.4 Set.prototype.delete(value)
9659 'delete': function (key) {
9660 var that = validate(this, NAME);
9661 var entry = getEntry(that, key);
9662 if (entry) {
9663 var next = entry.n;
9664 var prev = entry.p;
9665 delete that._i[entry.i];
9666 entry.r = true;
9667 if (prev) prev.n = next;
9668 if (next) next.p = prev;
9669 if (that._f == entry) that._f = next;
9670 if (that._l == entry) that._l = prev;
9671 that[SIZE]--;
9672 } return !!entry;
9673 },
9674 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
9675 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
9676 forEach: function forEach(callbackfn /* , that = undefined */) {
9677 validate(this, NAME);
9678 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
9679 var entry;
9680 while (entry = entry ? entry.n : this._f) {
9681 f(entry.v, entry.k, this);
9682 // revert to the last existing entry
9683 while (entry && entry.r) entry = entry.p;
9684 }
9685 },
9686 // 23.1.3.7 Map.prototype.has(key)
9687 // 23.2.3.7 Set.prototype.has(value)
9688 has: function has(key) {
9689 return !!getEntry(validate(this, NAME), key);
9690 }
9691 });
9692 if (DESCRIPTORS) dP(C.prototype, 'size', {
9693 get: function () {
9694 return validate(this, NAME)[SIZE];
9695 }
9696 });
9697 return C;
9698 },
9699 def: function (that, key, value) {
9700 var entry = getEntry(that, key);
9701 var prev, index;
9702 // change existing entry
9703 if (entry) {
9704 entry.v = value;
9705 // create new entry
9706 } else {
9707 that._l = entry = {
9708 i: index = fastKey(key, true), // <- index
9709 k: key, // <- key
9710 v: value, // <- value
9711 p: prev = that._l, // <- previous entry
9712 n: undefined, // <- next entry
9713 r: false // <- removed
9714 };
9715 if (!that._f) that._f = entry;
9716 if (prev) prev.n = entry;
9717 that[SIZE]++;
9718 // add to index
9719 if (index !== 'F') that._i[index] = entry;
9720 } return that;
9721 },
9722 getEntry: getEntry,
9723 setStrong: function (C, NAME, IS_MAP) {
9724 // add .keys, .values, .entries, [@@iterator]
9725 // 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
9726 $iterDefine(C, NAME, function (iterated, kind) {
9727 this._t = validate(iterated, NAME); // target
9728 this._k = kind; // kind
9729 this._l = undefined; // previous
9730 }, function () {
9731 var that = this;
9732 var kind = that._k;
9733 var entry = that._l;
9734 // revert to the last existing entry
9735 while (entry && entry.r) entry = entry.p;
9736 // get next entry
9737 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
9738 // or finish the iteration
9739 that._t = undefined;
9740 return step(1);
9741 }
9742 // return step by kind
9743 if (kind == 'keys') return step(0, entry.k);
9744 if (kind == 'values') return step(0, entry.v);
9745 return step(0, [entry.k, entry.v]);
9746 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
9747
9748 // add [@@species], 23.1.2.2, 23.2.2.2
9749 setSpecies(NAME);
9750 }
9751 };
9752
9753
9754 /***/ }),
9755 /* 397 */
9756 /***/ (function(module, exports, __webpack_require__) {
9757
9758 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
9759 var $export = __webpack_require__(7);
9760
9761 $export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(398)('Map') });
9762
9763
9764 /***/ }),
9765 /* 398 */
9766 /***/ (function(module, exports, __webpack_require__) {
9767
9768 // https://github.com/DavidBruant/Map-Set.prototype.toJSON
9769 var classof = __webpack_require__(101);
9770 var from = __webpack_require__(399);
9771 module.exports = function (NAME) {
9772 return function toJSON() {
9773 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
9774 return from(this);
9775 };
9776 };
9777
9778
9779 /***/ }),
9780 /* 399 */
9781 /***/ (function(module, exports, __webpack_require__) {
9782
9783 var forOf = __webpack_require__(88);
9784
9785 module.exports = function (iter, ITERATOR) {
9786 var result = [];
9787 forOf(iter, false, result.push, result, ITERATOR);
9788 return result;
9789 };
9790
9791
9792 /***/ }),
9793 /* 400 */
9794 /***/ (function(module, exports, __webpack_require__) {
9795
9796 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
9797 __webpack_require__(233)('Map');
9798
9799
9800 /***/ }),
9801 /* 401 */
9802 /***/ (function(module, exports, __webpack_require__) {
9803
9804 // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
9805 __webpack_require__(234)('Map');
9806
9807
9808 /***/ }),
9809 /* 402 */
9810 /***/ (function(module, exports) {
9811
9812 function _isNativeFunction(fn) {
9813 return Function.toString.call(fn).indexOf("[native code]") !== -1;
9814 }
9815
9816 module.exports = _isNativeFunction;
9817
9818 /***/ }),
9819 /* 403 */
9820 /***/ (function(module, exports, __webpack_require__) {
9821
9822 var _Reflect$construct = __webpack_require__(107);
9823
9824 var setPrototypeOf = __webpack_require__(137);
9825
9826 var isNativeReflectConstruct = __webpack_require__(149);
9827
9828 function _construct(Parent, args, Class) {
9829 if (isNativeReflectConstruct()) {
9830 module.exports = _construct = _Reflect$construct;
9831 } else {
9832 module.exports = _construct = function _construct(Parent, args, Class) {
9833 var a = [null];
9834 a.push.apply(a, args);
9835 var Constructor = Function.bind.apply(Parent, a);
9836 var instance = new Constructor();
9837 if (Class) setPrototypeOf(instance, Class.prototype);
9838 return instance;
9839 };
9840 }
9841
9842 return _construct.apply(null, arguments);
9843 }
9844
9845 module.exports = _construct;
9846
9847 /***/ }),
9848 /* 404 */,
9849 /* 405 */,
9850 /* 406 */,
9851 /* 407 */,
9852 /* 408 */,
9853 /* 409 */,
9854 /* 410 */,
9855 /* 411 */,
9856 /* 412 */
9857 /***/ (function(module, exports, __webpack_require__) {
9858
9859 "use strict";
9860
9861
9862 var _interopRequireDefault = __webpack_require__(0);
9863
9864 var _Object$defineProperty = __webpack_require__(1);
9865
9866 _Object$defineProperty(exports, "__esModule", {
9867 value: true
9868 });
9869
9870 exports.default = void 0;
9871
9872 var _keys = _interopRequireDefault(__webpack_require__(23));
9873
9874 var _values = _interopRequireDefault(__webpack_require__(55));
9875
9876 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
9877
9878 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
9879
9880 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
9881
9882 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
9883
9884 var HooksBase = /*#__PURE__*/function (_elementorModules$Mod) {
9885 (0, _inherits2.default)(HooksBase, _elementorModules$Mod);
9886
9887 var _super = (0, _createSuper2.default)(HooksBase);
9888
9889 /**
9890 * Function constructor().
9891 *
9892 * Create hooks base.
9893 *
9894 * @param {{}} args
9895 */
9896 function HooksBase() {
9897 var _this;
9898
9899 (0, _classCallCheck2.default)(this, HooksBase);
9900
9901 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9902 args[_key] = arguments[_key];
9903 }
9904
9905 _this = _super.call.apply(_super, [this].concat(args));
9906 /**
9907 * Current command.
9908 *
9909 * @type {string}
9910 */
9911
9912 _this.current = '';
9913 /**
9914 * Array of ids which in use.
9915 *
9916 * @type {Array}
9917 */
9918
9919 _this.usedIds = [];
9920 /**
9921 * Object of callbacks that was bound by container type.
9922 *
9923 * @type {{}}
9924 */
9925
9926 _this.callbacks = {
9927 after: {},
9928 catch: {}
9929 };
9930 /**
9931 * Object of depth.
9932 *
9933 * @type {{}}
9934 */
9935
9936 _this.depth = {
9937 after: {},
9938 catch: {}
9939 };
9940 _this.callbacksFlatList = {};
9941 return _this;
9942 }
9943
9944 (0, _createClass2.default)(HooksBase, [{
9945 key: "activate",
9946 value: function activate() {
9947 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
9948 callback.activate();
9949 });
9950 }
9951 }, {
9952 key: "deactivate",
9953 value: function deactivate() {
9954 (0, _values.default)(this.getAll(true)).forEach(function (callback) {
9955 callback.deactivate();
9956 });
9957 }
9958 /**
9959 * Function getType().
9960 *
9961 * Returns type eg: ( event, hook, etc ... ).
9962 *
9963 * @returns {string} type
9964 */
9965
9966 }, {
9967 key: "getType",
9968 value: function getType() {
9969 elementorModules.forceMethodImplementation();
9970 }
9971 }, {
9972 key: "get",
9973 value: function get(id) {
9974 return this.callbacksFlatList[id];
9975 }
9976 /**
9977 * Function getAll().
9978 *
9979 * Return all possible callbacks.
9980 *
9981 * @param {boolean} flat
9982 *
9983 * @returns {{}}
9984 */
9985
9986 }, {
9987 key: "getAll",
9988 value: function getAll() {
9989 var _this2 = this;
9990
9991 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
9992
9993 if (flat) {
9994 return this.callbacksFlatList;
9995 }
9996
9997 var result = {};
9998 (0, _keys.default)(this.callbacks).forEach(function (event) {
9999 if (!result[event]) {
10000 result[event] = [];
10001 }
10002
10003 (0, _keys.default)(_this2.callbacks[event]).forEach(function (command) {
10004 result[event].push({
10005 command: command,
10006 callbacks: _this2.callbacks[event][command]
10007 });
10008 });
10009 });
10010 return result;
10011 }
10012 /**
10013 * Function getCurrent();
10014 *
10015 * Return current command.
10016 *
10017 * @returns {string}
10018 */
10019
10020 }, {
10021 key: "getCurrent",
10022 value: function getCurrent() {
10023 return this.current;
10024 }
10025 /**
10026 * Function getUsedIds().
10027 *
10028 * Returns the current used ids.
10029 *
10030 * @returns {Array}
10031 */
10032
10033 }, {
10034 key: "getUsedIds",
10035 value: function getUsedIds() {
10036 return this.usedIds;
10037 }
10038 /**
10039 * Function getCallbacks().
10040 *
10041 * Get available callbacks for specific event and command.
10042 *
10043 * @param {string} event
10044 * @param {string} command
10045 *
10046 * @returns {(array|boolean)} callbacks
10047 */
10048
10049 }, {
10050 key: "getCallbacks",
10051 value: function getCallbacks(event, command, args) {
10052 var _args$containers = args.containers,
10053 containers = _args$containers === void 0 ? [args.container] : _args$containers,
10054 containerType = containers[0] ? containers[0].type : false;
10055 var callbacks = [];
10056
10057 if (this.callbacks[event] && this.callbacks[event][command]) {
10058 if (containerType && this.callbacks[event][command][containerType]) {
10059 callbacks = callbacks.concat(this.callbacks[event][command][containerType]);
10060 }
10061
10062 if (this.callbacks[event][command].all) {
10063 callbacks = callbacks.concat(this.callbacks[event][command].all);
10064 }
10065 }
10066
10067 if (callbacks.length) {
10068 return callbacks;
10069 }
10070
10071 return false;
10072 }
10073 /**
10074 * function checkEvent().
10075 *
10076 * Validate if the event is available.
10077 *
10078 * @param {string} event
10079 */
10080
10081 }, {
10082 key: "checkEvent",
10083 value: function checkEvent(event) {
10084 if (-1 === (0, _keys.default)(this.callbacks).indexOf(event)) {
10085 throw Error("".concat(this.getType(), ": '").concat(event, "' is not available."));
10086 }
10087 }
10088 /**
10089 * Function checkInstance().
10090 *
10091 * Validate given instance.
10092 *
10093 * @param {HookBase} instance
10094 */
10095
10096 }, {
10097 key: "checkInstance",
10098 value: function checkInstance(instance) {
10099 if (instance.getType() !== this.getType()) {
10100 throw new Error("invalid instance, please use: 'elementor-api/modules/hook-base.js'. ");
10101 }
10102 }
10103 /**
10104 * Function checkId().
10105 *
10106 * Validate if the id is not used before.
10107 *
10108 * @param {string} id
10109 */
10110
10111 }, {
10112 key: "checkId",
10113 value: function checkId(id) {
10114 if (-1 !== this.usedIds.indexOf(id)) {
10115 throw Error("id: '".concat(id, "' is already in use."));
10116 }
10117 }
10118 /**
10119 * Function shouldRun().
10120 *
10121 * Determine if the event should run.
10122 *
10123 * @param {array} callbacks
10124 *
10125 * @return {boolean}
10126 *
10127 * @throw {Error}
10128 */
10129
10130 }, {
10131 key: "shouldRun",
10132 value: function shouldRun(callbacks) {
10133 return !!callbacks && callbacks.length;
10134 }
10135 /**
10136 * Function register().
10137 *
10138 * Register the callback instance.
10139 *
10140 * @param {string} event
10141 * @param {HookBase} instance
10142 *
10143 * @returns {{}} Created callback
10144 */
10145
10146 }, {
10147 key: "register",
10148 value: function register(event, instance) {
10149 var command = instance.getCommand(),
10150 id = instance.getId(),
10151 containerType = instance.getContainerType();
10152 this.checkEvent(event);
10153 this.checkInstance(instance);
10154 this.checkId(id);
10155 return this.registerCallback(id, event, command, instance, containerType);
10156 }
10157 /**
10158 * Function registerCallback().
10159 *
10160 * Register callback.
10161 *
10162 * @param {string} id
10163 * @param {string} event
10164 * @param {string} command
10165 * @param {HookBase} instance
10166 * @param {string} containerType
10167 *
10168 * TODO: Consider replace with typedef.
10169 * @returns {{callback: *, id: *, isActive: boolean}}
10170 */
10171
10172 }, {
10173 key: "registerCallback",
10174 value: function registerCallback(id, event, command, instance, containerType) {
10175 if (!this.callbacks[event][command]) {
10176 this.callbacks[event][command] = [];
10177 } // Save used id(s).
10178
10179
10180 this.usedIds.push(id);
10181
10182 if (!this.callbacks[event][command]) {
10183 this.callbacks[event][command] = {};
10184 } // TODO: Create HookCallback class/type.
10185
10186
10187 var callback = {
10188 id: id,
10189 callback: instance.run.bind(instance),
10190 isActive: true,
10191 activate: function activate() {
10192 this.isActive = true;
10193 },
10194 deactivate: function deactivate() {
10195 this.isActive = false;
10196 }
10197 };
10198
10199 if (containerType) {
10200 if (!this.callbacks[event][command][containerType]) {
10201 this.callbacks[event][command][containerType] = [];
10202 }
10203
10204 this.callbacks[event][command][containerType].push(callback);
10205 } else {
10206 if (!this.callbacks[event][command].all) {
10207 this.callbacks[event][command].all = [];
10208 }
10209
10210 this.callbacks[event][command].all.push(callback);
10211 }
10212
10213 this.callbacksFlatList[callback.id] = callback;
10214 return callback;
10215 }
10216 /**
10217 * Function run().
10218 *
10219 * Run the callbacks.
10220 *
10221 * @param {string} event
10222 * @param {string} command
10223 * @param {{}} args
10224 * @param {*} result
10225 *
10226 * @returns {*}
10227 */
10228
10229 }, {
10230 key: "run",
10231 value: function run(event, command, args) {
10232 var result = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
10233 var callbacks = this.getCallbacks(event, command, args);
10234
10235 if (this.shouldRun(callbacks)) {
10236 this.current = command;
10237 this.onRun(command, args, event);
10238 return this.runCallbacks(event, command, callbacks, args, result);
10239 }
10240
10241 return false;
10242 }
10243 /**
10244 * Function runCallbacks().
10245 *
10246 * Run's the given callbacks.
10247 *
10248 * @param {string} event
10249 * @param {string} command
10250 * @param {array} callbacks
10251 * @param {{}} args
10252 * @param {[]} result
10253 */
10254
10255 }, {
10256 key: "runCallbacks",
10257 value: function runCallbacks(event, command, callbacks, args, result) {
10258 var callbacksResult = [];
10259
10260 for (var i in callbacks) {
10261 var callback = callbacks[i];
10262
10263 if (!callback.isActive) {
10264 continue;
10265 } // If not exist, set zero.
10266
10267
10268 if (undefined === this.depth[event][callback.id]) {
10269 this.depth[event][callback.id] = 0;
10270 }
10271
10272 this.depth[event][callback.id]++; // Prevent recursive hooks.
10273
10274 if (1 === this.depth[event][callback.id]) {
10275 this.onCallback(command, args, event, callback.id);
10276
10277 try {
10278 var callbackResult = this.runCallback(event, callback, args, result);
10279
10280 if (!callbackResult) {
10281 throw Error("Callback failed, event: '".concat(event, "'"));
10282 }
10283
10284 callbacksResult.push(callbackResult);
10285 } catch (e) {
10286 // If its 'Hook-Break' then parent `try {}` will handle it.
10287 if (e instanceof $e.modules.HookBreak) {
10288 throw e;
10289 }
10290
10291 elementorCommon.helpers.consoleError(e);
10292 }
10293 }
10294
10295 this.depth[event][callback.id]--;
10296 }
10297
10298 return callbacksResult;
10299 }
10300 /**
10301 * Function runCallback().
10302 *
10303 * Run's the given callback.
10304 *
10305 * @param {string} event
10306 * @param {{}} callback
10307 * @param {{}} args
10308 * @param {*} result
10309 *
10310 * @returns {*}
10311 *
10312 * @throw {Error}
10313 */
10314
10315 }, {
10316 key: "runCallback",
10317 value: function runCallback(event, callback, args, result) {
10318 // eslint-disable-line no-unused-vars
10319 elementorModules.forceMethodImplementation();
10320 }
10321 /**
10322 * Function onRun().
10323 *
10324 * Called before run a set of callbacks.
10325 *
10326 * @param {string} command
10327 * @param {{}} args
10328 * @param {string} event
10329 *
10330 * @throw {Error}
10331 */
10332
10333 }, {
10334 key: "onRun",
10335 value: function onRun(command, args, event) {
10336 // eslint-disable-line no-unused-vars
10337 elementorModules.forceMethodImplementation();
10338 }
10339 /**
10340 * Function onCallback().
10341 *
10342 * Called before a single callback.
10343 *
10344 * @param {string} command
10345 * @param {{}} args
10346 * @param {string} event
10347 * @param {string} id
10348 *
10349 * @throw {Error}
10350 */
10351
10352 }, {
10353 key: "onCallback",
10354 value: function onCallback(command, args, event, id) {
10355 // eslint-disable-line no-unused-vars
10356 elementorModules.forceMethodImplementation();
10357 }
10358 }]);
10359 return HooksBase;
10360 }(elementorModules.Module);
10361
10362 exports.default = HooksBase;
10363
10364 /***/ }),
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 /* 627 */,
10580 /* 628 */,
10581 /* 629 */,
10582 /* 630 */
10583 /***/ (function(module, exports, __webpack_require__) {
10584
10585 "use strict";
10586
10587
10588 var _interopRequireDefault = __webpack_require__(0);
10589
10590 var _Object$defineProperty = __webpack_require__(1);
10591
10592 _Object$defineProperty(exports, "__esModule", {
10593 value: true
10594 });
10595
10596 exports.default = void 0;
10597
10598 var _stringify = _interopRequireDefault(__webpack_require__(206));
10599
10600 var _keys = _interopRequireDefault(__webpack_require__(23));
10601
10602 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10603
10604 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10605
10606 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10607
10608 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10609
10610 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
10611 (0, _inherits2.default)(_default, _elementorModules$Mod);
10612
10613 var _super = (0, _createSuper2.default)(_default);
10614
10615 function _default() {
10616 (0, _classCallCheck2.default)(this, _default);
10617 return _super.apply(this, arguments);
10618 }
10619
10620 (0, _createClass2.default)(_default, [{
10621 key: "get",
10622 value: function get(key, options) {
10623 options = options || {};
10624 var storage;
10625
10626 try {
10627 storage = options.session ? sessionStorage : localStorage;
10628 } catch (e) {
10629 return key ? undefined : {};
10630 }
10631
10632 var elementorStorage = storage.getItem('elementor');
10633
10634 if (elementorStorage) {
10635 elementorStorage = JSON.parse(elementorStorage);
10636 } else {
10637 elementorStorage = {};
10638 }
10639
10640 if (!elementorStorage.__expiration) {
10641 elementorStorage.__expiration = {};
10642 }
10643
10644 var expiration = elementorStorage.__expiration;
10645 var expirationToCheck = [];
10646
10647 if (key) {
10648 if (expiration[key]) {
10649 expirationToCheck = [key];
10650 }
10651 } else {
10652 expirationToCheck = (0, _keys.default)(expiration);
10653 }
10654
10655 var entryExpired = false;
10656 expirationToCheck.forEach(function (expirationKey) {
10657 if (new Date(expiration[expirationKey]) < new Date()) {
10658 delete elementorStorage[expirationKey];
10659 delete expiration[expirationKey];
10660 entryExpired = true;
10661 }
10662 });
10663
10664 if (entryExpired) {
10665 this.save(elementorStorage, options.session);
10666 }
10667
10668 if (key) {
10669 return elementorStorage[key];
10670 }
10671
10672 return elementorStorage;
10673 }
10674 }, {
10675 key: "set",
10676 value: function set(key, value, options) {
10677 options = options || {};
10678 var elementorStorage = this.get(null, options);
10679 elementorStorage[key] = value;
10680
10681 if (options.lifetimeInSeconds) {
10682 var date = new Date();
10683 date.setTime(date.getTime() + options.lifetimeInSeconds * 1000);
10684 elementorStorage.__expiration[key] = date.getTime();
10685 }
10686
10687 this.save(elementorStorage, options.session);
10688 }
10689 }, {
10690 key: "save",
10691 value: function save(object, session) {
10692 var storage;
10693
10694 try {
10695 storage = session ? sessionStorage : localStorage;
10696 } catch (e) {
10697 return;
10698 }
10699
10700 storage.setItem('elementor', (0, _stringify.default)(object));
10701 }
10702 }]);
10703 return _default;
10704 }(elementorModules.Module);
10705
10706 exports.default = _default;
10707
10708 /***/ }),
10709 /* 631 */
10710 /***/ (function(module, exports, __webpack_require__) {
10711
10712 "use strict";
10713
10714
10715 var _interopRequireDefault = __webpack_require__(0);
10716
10717 var _Object$defineProperty = __webpack_require__(1);
10718
10719 _Object$defineProperty(exports, "__esModule", {
10720 value: true
10721 });
10722
10723 exports.default = void 0;
10724
10725 __webpack_require__(58);
10726
10727 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10728
10729 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10730
10731 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
10732
10733 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10734
10735 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10736
10737 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
10738
10739 var CommandsBackwardsCompatibility = /*#__PURE__*/function (_elementorModules$Mod) {
10740 (0, _inherits2.default)(CommandsBackwardsCompatibility, _elementorModules$Mod);
10741
10742 var _super = (0, _createSuper2.default)(CommandsBackwardsCompatibility);
10743
10744 function CommandsBackwardsCompatibility() {
10745 var _this;
10746
10747 (0, _classCallCheck2.default)(this, CommandsBackwardsCompatibility);
10748
10749 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10750 args[_key] = arguments[_key];
10751 }
10752
10753 _this = _super.call.apply(_super, [this].concat(args));
10754 (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "on", function (eventName, callback) {
10755 if ('run' === eventName) {
10756 var componentName = _this.getConstructorID(); // Regex takes the first letter and convert it to lower case.
10757
10758
10759 componentName = componentName.replace(/^./, function (val) {
10760 return val.toLowerCase();
10761 });
10762 elementorCommon.helpers.softDeprecated("$e.".concat(componentName, ".on( 'run', ... )"), '3.0.0', "$e.".concat(componentName, ".on( 'run:before', ... )"));
10763
10764 _this.onOrig('run:before', callback);
10765
10766 return;
10767 }
10768
10769 _this.onOrig(eventName, callback);
10770 });
10771 return _this;
10772 }
10773
10774 (0, _createClass2.default)(CommandsBackwardsCompatibility, [{
10775 key: "__construct",
10776 value: function __construct() {
10777 this.onOrig = this.on;
10778 }
10779 }]);
10780 return CommandsBackwardsCompatibility;
10781 }(elementorModules.Module);
10782
10783 exports.default = CommandsBackwardsCompatibility;
10784
10785 /***/ }),
10786 /* 632 */
10787 /***/ (function(module, exports, __webpack_require__) {
10788
10789 "use strict";
10790
10791
10792 var _interopRequireDefault = __webpack_require__(0);
10793
10794 var _Object$defineProperty = __webpack_require__(1);
10795
10796 _Object$defineProperty(exports, "__esModule", {
10797 value: true
10798 });
10799
10800 exports.default = exports.ALLMETHODS = exports.DELETABLE = exports.EDITABLE = exports.CREATABLE = exports.READABLE = void 0;
10801
10802 var _regenerator = _interopRequireDefault(__webpack_require__(82));
10803
10804 __webpack_require__(66);
10805
10806 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(83));
10807
10808 var _promise = _interopRequireDefault(__webpack_require__(133));
10809
10810 var _stringify = _interopRequireDefault(__webpack_require__(206));
10811
10812 __webpack_require__(295);
10813
10814 __webpack_require__(183);
10815
10816 __webpack_require__(72);
10817
10818 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(102));
10819
10820 var _entries = _interopRequireDefault(__webpack_require__(89));
10821
10822 __webpack_require__(25);
10823
10824 __webpack_require__(58);
10825
10826 __webpack_require__(80);
10827
10828 __webpack_require__(135);
10829
10830 __webpack_require__(155);
10831
10832 var _values = _interopRequireDefault(__webpack_require__(55));
10833
10834 var _assign = _interopRequireDefault(__webpack_require__(134));
10835
10836 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
10837
10838 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
10839
10840 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
10841
10842 var _get2 = _interopRequireDefault(__webpack_require__(26));
10843
10844 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
10845
10846 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
10847
10848 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
10849
10850 var _argsObject = _interopRequireDefault(__webpack_require__(223));
10851
10852 var _commands = _interopRequireDefault(__webpack_require__(341));
10853
10854 var _cache = _interopRequireDefault(__webpack_require__(633));
10855
10856 /**
10857 * @typedef {('create'|'delete'|'get'|'update')} DataTypes
10858 */
10859
10860 /**
10861 * @typedef {{}} RequestData
10862 * @property {ComponentBase} component
10863 * @property {string} command
10864 * @property {string} endpoint
10865 * @property {DataTypes} [type]
10866 * @property {{}} [args]
10867 * @property {number} [timestamp]
10868 * @property {('hit'|'miss')} [cache]
10869 */
10870
10871 /**
10872 * @typedef {object} ExtractedCommand
10873 * @property {string} command
10874 * @property {object} args
10875 */
10876 // TODO: Return it from the server. Original at WP_REST_Server.
10877 var READABLE = ['GET'],
10878 CREATABLE = ['POST'],
10879 EDITABLE = ['POST', 'PUT', 'PATCH'],
10880 DELETABLE = ['DELETE'],
10881 ALLMETHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
10882 exports.ALLMETHODS = ALLMETHODS;
10883 exports.DELETABLE = DELETABLE;
10884 exports.EDITABLE = EDITABLE;
10885 exports.CREATABLE = CREATABLE;
10886 exports.READABLE = READABLE;
10887
10888 var Data = /*#__PURE__*/function (_Commands) {
10889 (0, _inherits2.default)(Data, _Commands);
10890
10891 var _super = (0, _createSuper2.default)(Data);
10892
10893 function Data() {
10894 var _this;
10895
10896 var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10897 (0, _classCallCheck2.default)(this, Data);
10898 _this = _super.call(this, args);
10899 _this.args = (0, _assign.default)(args, {
10900 namespace: 'elementor',
10901 version: '1'
10902 });
10903 _this.cache = new _cache.default((0, _assertThisInitialized2.default)(_this));
10904 _this.validatedRequests = {};
10905 _this.commandFormats = {};
10906 _this.baseEndpointAddress = '';
10907 var _this$args = _this.args,
10908 namespace = _this$args.namespace,
10909 version = _this$args.version;
10910 _this.baseEndpointAddress = "".concat(elementorCommon.config.urls.rest).concat(namespace, "/v").concat(version, "/");
10911 return _this;
10912 }
10913 /**
10914 * Function getHTTPMethod().
10915 *
10916 * Returns HTTP Method by type.
10917 *
10918 * @param {DataTypes} type
10919 *
10920 * @return {string|boolean}
10921 */
10922
10923
10924 (0, _createClass2.default)(Data, [{
10925 key: "getHTTPMethod",
10926 value: function getHTTPMethod(type) {
10927 switch (type) {
10928 case 'create':
10929 return 'POST';
10930
10931 case 'delete':
10932 return 'DELETE';
10933
10934 case 'get':
10935 return 'GET';
10936
10937 case 'update':
10938 return 'PUT';
10939 }
10940
10941 return false;
10942 }
10943 /**
10944 * Function getAllowedMethods().
10945 *
10946 * Returns allowed HTTP methods by type.
10947 *
10948 * @param {DataTypes} type
10949 *
10950 * @return {[string]|boolean}
10951 */
10952
10953 }, {
10954 key: "getAllowedMethods",
10955 value: function getAllowedMethods(type) {
10956 switch (type) {
10957 case 'create':
10958 return CREATABLE;
10959
10960 case 'delete':
10961 return DELETABLE;
10962
10963 case 'get':
10964 return READABLE;
10965
10966 case 'update':
10967 return EDITABLE;
10968 }
10969
10970 return false;
10971 }
10972 /**
10973 * Function commandToEndpoint().
10974 *
10975 * Convert command to endpoint.
10976 *
10977 * For example `component/command/{arg}` => `controller/endpoint/8`.
10978 *
10979 * TODO: Find a better solution.
10980 *
10981 * @param {string} command
10982 * @param {{}} args
10983 * @param {string|null} [format]
10984 *
10985 * @returns {string} endpoint
10986 */
10987
10988 }, {
10989 key: "commandToEndpoint",
10990 value: function commandToEndpoint(command, args) {
10991 var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
10992 var endpoint = command;
10993 var argsQueryLength = (args === null || args === void 0 ? void 0 : args.query) ? (0, _values.default)(args.query).length : 0;
10994
10995 if (argsQueryLength) {
10996 if (format && format.includes('/{')) {
10997 // Means command includes magic query arguments ( controller/endpoint/{whatever} ).
10998 var magicParams = format.split('/').filter(function (str) {
10999 return '{' === str.charAt(0);
11000 });
11001 magicParams.forEach(function (param) {
11002 // Remove the '{', '}'.
11003 param = param.replace('{', '');
11004 param = param.replace('}', '');
11005 var formatted = (0, _entries.default)(args.query).find(function (_ref) {
11006 var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
11007 key = _ref2[0];
11008
11009 return key === param;
11010 });
11011
11012 if (!formatted) {
11013 return;
11014 }
11015
11016 var key = formatted[0],
11017 value = formatted[1].toString(); // Replace magic params with values.
11018
11019 format = format.replace(new RegExp('{' + param + '}', 'g'), value);
11020 delete args.query[key];
11021 });
11022 endpoint = format;
11023 }
11024 } else if (format) {
11025 // No magic params, but still format,
11026 endpoint = format;
11027 } // If requested magic param does not exist in args, need to remove it to have fixed endpoint.
11028 // eg: 'documents/{documentId}/elements/{elementId}' and args { documentId: 4123 }.
11029 // result: 'documents/4123/elements'
11030
11031
11032 if (format && endpoint.includes('/{')) {
11033 endpoint = endpoint.substring(0, endpoint.indexOf('/{'));
11034 }
11035
11036 if (args.query && (0, _values.default)(args.query).length) {
11037 // Sorting since the endpoint later will be used as key to store the cache.
11038 var queryEntries = (0, _entries.default)(args.query).sort(function (_ref3, _ref4) {
11039 var _ref5 = (0, _slicedToArray2.default)(_ref3, 1),
11040 aKey = _ref5[0];
11041
11042 var _ref6 = (0, _slicedToArray2.default)(_ref4, 1),
11043 bKey = _ref6[0];
11044
11045 return aKey - bKey;
11046 } // Sort by param name.
11047 ); // `args.query` will become a part of GET params.
11048
11049 if (queryEntries.length) {
11050 endpoint += '?';
11051 queryEntries.forEach(function (_ref7) {
11052 var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
11053 name = _ref8[0],
11054 value = _ref8[1];
11055
11056 // Replace the character '/' with the encoded version,
11057 // mostly because when saving this endpoint value to the cache it splits the url base on the '/' character.
11058 value = "".concat(value).replace(/\//g, '%2F');
11059 endpoint += name + '=' + value + '&';
11060 });
11061 } // If last character is '&' remove it.
11062
11063
11064 endpoint = endpoint.replace(/&$/, '');
11065 }
11066
11067 return endpoint;
11068 }
11069 /**
11070 * Function commandExtractArgs().
11071 *
11072 * If the command have query convert it to args.
11073 *
11074 * @param {string} command
11075 * @param {object} args
11076 *
11077 * @returns {ExtractedCommand} command
11078 */
11079
11080 }, {
11081 key: "commandExtractArgs",
11082 value: function commandExtractArgs(command) {
11083 var _command;
11084
11085 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11086
11087 if ((_command = command) === null || _command === void 0 ? void 0 : _command.includes('?')) {
11088 if (!args.query) {
11089 args.query = {};
11090 }
11091
11092 var commandParts = command.split('?'),
11093 pureCommand = commandParts[0],
11094 queryString = commandParts[1],
11095 query = new URLSearchParams(queryString);
11096 (0, _assign.default)(args.query, Object.fromEntries(query));
11097 command = pureCommand;
11098 }
11099
11100 return {
11101 command: command,
11102 args: args
11103 };
11104 }
11105 /**
11106 * Function validateRequestData().
11107 *
11108 * Validate request data requirements.
11109 *
11110 * @param {RequestData} requestData
11111 * @param {boolean} [requireArgsData]
11112 */
11113
11114 }, {
11115 key: "validateRequestData",
11116 value: function validateRequestData(requestData) {
11117 var requireArgsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
11118
11119 // Do not validate if its already valid.
11120 if (requestData.timestamp && this.validatedRequests[requestData.timestamp]) {
11121 return;
11122 }
11123
11124 var argsObject = new _argsObject.default(requestData);
11125 argsObject.requireArgument('component');
11126 argsObject.requireArgumentType('command', 'string');
11127 argsObject.requireArgumentType('endpoint', 'string');
11128
11129 if (requireArgsData) {
11130 argsObject.requireArgumentType('data', 'object', requestData.args);
11131 } // Ensure timestamp.
11132
11133
11134 if (!requestData.timestamp) {
11135 requestData.timestamp = new Date().getTime();
11136 }
11137
11138 this.validatedRequests[requestData.timestamp] = true;
11139 }
11140 /**
11141 * Function prepareHeaders().
11142 *
11143 * @param {RequestData} requestData
11144 *
11145 * @return {{}} params
11146 */
11147
11148 }, {
11149 key: "prepareHeaders",
11150 value: function prepareHeaders(requestData) {
11151 /* global wpApiSettings */
11152 var type = requestData.type,
11153 nonce = wpApiSettings.nonce,
11154 params = {
11155 credentials: 'include' // cookies is required for wp reset.
11156
11157 },
11158 headers = {
11159 'X-WP-Nonce': nonce
11160 };
11161 /**
11162 * Translate:
11163 * 'create, delete, get, update' to HTTP Methods:
11164 * 'GET, POST, PUT, PATCH, DELETE'
11165 */
11166
11167 var allowedMethods = this.getAllowedMethods(type),
11168 method = this.getHTTPMethod(type);
11169
11170 if ('GET' === method) {
11171 (0, _assign.default)(params, {
11172 headers: headers
11173 });
11174 } else if (allowedMethods) {
11175 var _requestData$args;
11176
11177 if (['POST', 'PUT'].includes(method) && !((_requestData$args = requestData.args) === null || _requestData$args === void 0 ? void 0 : _requestData$args.data)) {
11178 throw Error('Invalid requestData.args.data');
11179 }
11180
11181 (0, _assign.default)(headers, {
11182 'Content-Type': 'application/json'
11183 });
11184 (0, _assign.default)(params, {
11185 method: method,
11186 headers: headers,
11187 body: (0, _stringify.default)(requestData.args.data)
11188 });
11189 } else {
11190 throw Error("Invalid type: '".concat(type, "'"));
11191 }
11192
11193 return params;
11194 }
11195 /**
11196 * This method response for building a final endpoint,
11197 * the main problem is with plain permalink mode + command with query params that creates a weird url,
11198 * the current method should fix it.
11199 *
11200 * @param endpoint
11201 * @returns {string}
11202 */
11203
11204 }, {
11205 key: "prepareEndpoint",
11206 value: function prepareEndpoint(endpoint) {
11207 var splitUrl = endpoint.split('?'),
11208 path = splitUrl.shift();
11209 var url = this.baseEndpointAddress + path;
11210
11211 if (splitUrl.length) {
11212 var separator = url.includes('?') ? '&' : '?';
11213 url += separator + splitUrl.pop();
11214 }
11215
11216 return url;
11217 }
11218 /**
11219 * Function fetch().
11220 *
11221 * @param {RequestData} requestData
11222 * @param {function(input: RequestInfo, init?) : Promise<Response> } [fetchAPI]
11223 *
11224 * @return {{}} params
11225 */
11226
11227 }, {
11228 key: "fetch",
11229 value: function fetch(requestData) {
11230 var _requestData$args$opt,
11231 _this2 = this;
11232
11233 var fetchAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.fetch;
11234 requestData.cache = 'miss';
11235 var params = this.prepareHeaders(requestData),
11236 refresh = (_requestData$args$opt = requestData.args.options) === null || _requestData$args$opt === void 0 ? void 0 : _requestData$args$opt.refresh,
11237 getCache = 'get' === requestData.type && !refresh,
11238 saveCache = ['create', 'get'].includes(requestData.type) && !refresh;
11239
11240 if (getCache) {
11241 var cachePromise = this.cache.getAsync(requestData);
11242
11243 if (cachePromise) {
11244 return cachePromise;
11245 }
11246 }
11247
11248 return new _promise.default( /*#__PURE__*/function () {
11249 var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {
11250 var endpoint, request, response;
11251 return _regenerator.default.wrap(function _callee2$(_context2) {
11252 while (1) {
11253 switch (_context2.prev = _context2.next) {
11254 case 0:
11255 _context2.prev = 0;
11256 endpoint = _this2.prepareEndpoint(requestData.endpoint);
11257 request = fetchAPI(endpoint, params);
11258 _context2.next = 5;
11259 return request.then( /*#__PURE__*/function () {
11260 var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_response) {
11261 return _regenerator.default.wrap(function _callee$(_context) {
11262 while (1) {
11263 switch (_context.prev = _context.next) {
11264 case 0:
11265 if (_response.ok) {
11266 _context.next = 6;
11267 break;
11268 }
11269
11270 if (!_response.headers.get('content-type').includes('application/json')) {
11271 _context.next = 5;
11272 break;
11273 }
11274
11275 _context.next = 4;
11276 return _response.json();
11277
11278 case 4:
11279 _response = _context.sent;
11280
11281 case 5:
11282 throw _response;
11283
11284 case 6:
11285 return _context.abrupt("return", _response.json());
11286
11287 case 7:
11288 case "end":
11289 return _context.stop();
11290 }
11291 }
11292 }, _callee);
11293 }));
11294
11295 return function (_x3) {
11296 return _ref10.apply(this, arguments);
11297 };
11298 }());
11299
11300 case 5:
11301 response = _context2.sent;
11302
11303 // At this point, it got the resolved response from remote.
11304 // So load cache, and resolve it.
11305 if (saveCache) {
11306 _this2.cache.set(requestData, response);
11307 }
11308
11309 resolve(response);
11310 _context2.next = 13;
11311 break;
11312
11313 case 10:
11314 _context2.prev = 10;
11315 _context2.t0 = _context2["catch"](0);
11316 reject(_context2.t0);
11317
11318 case 13:
11319 case "end":
11320 return _context2.stop();
11321 }
11322 }
11323 }, _callee2, null, [[0, 10]]);
11324 }));
11325
11326 return function (_x, _x2) {
11327 return _ref9.apply(this, arguments);
11328 };
11329 }());
11330 }
11331 /**
11332 * Function getCache().
11333 *
11334 * @param {ComponentBase} component
11335 * @param {string} command
11336 * @param {{}} query
11337 *
11338 * @returns {{}}
11339 */
11340
11341 }, {
11342 key: "getCache",
11343 value: function getCache(component, command) {
11344 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11345 var args = {
11346 query: query
11347 };
11348 return this.cache.get({
11349 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11350 component: component,
11351 command: command,
11352 args: args
11353 });
11354 }
11355 /**
11356 * Function setCache().
11357 *
11358 * @param {ComponentBase} component
11359 * @param {string} command
11360 * @param {{}} query
11361 * @param {*} data
11362 */
11363
11364 }, {
11365 key: "setCache",
11366 value: function setCache(component, command, query, data) {
11367 var args = {
11368 query: query
11369 };
11370 this.cache.set({
11371 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11372 component: component,
11373 command: command,
11374 args: args
11375 }, data);
11376 }
11377 /**
11378 * Function updateCache().
11379 *
11380 * The difference between 'setCache' and 'updateCache' is update will only modify exist values.
11381 * and 'setCache' will create or update.
11382 *
11383 * @param {ComponentBase} component
11384 * @param {string} command
11385 * @param {{}} query
11386 * @param {*} data
11387 */
11388
11389 }, {
11390 key: "updateCache",
11391 value: function updateCache(component, command, query, data) {
11392 var args = {
11393 query: query,
11394 data: data
11395 };
11396 this.cache.update({
11397 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11398 component: component,
11399 command: command,
11400 args: args
11401 });
11402 }
11403 /**
11404 * Function deleteCache().
11405 *
11406 * @param {ComponentBase} component
11407 * @param {string} command
11408 * @param {{}} query
11409 */
11410
11411 }, {
11412 key: "deleteCache",
11413 value: function deleteCache(component, command) {
11414 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11415 var args = {
11416 query: query
11417 };
11418 this.cache.delete({
11419 endpoint: this.commandToEndpoint(command, args, this.commandFormats[command]),
11420 component: component,
11421 command: command,
11422 args: args
11423 });
11424 }
11425 /**
11426 * Function registerFormat().
11427 *
11428 * Register's format for each command.
11429 *
11430 * @param {string} command
11431 * @param {string} format
11432 */
11433
11434 }, {
11435 key: "registerFormat",
11436 value: function registerFormat(command, format) {
11437 this.commandFormats[command] = format;
11438 }
11439 }, {
11440 key: "create",
11441 value: function create(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('create', command, {
11445 query: query,
11446 options: options,
11447 data: data
11448 });
11449 }
11450 }, {
11451 key: "delete",
11452 value: function _delete(command) {
11453 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11454 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11455 return this.run('delete', command, {
11456 query: query,
11457 options: options
11458 });
11459 }
11460 }, {
11461 key: "get",
11462 value: function get(command) {
11463 var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11464 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11465 return this.run('get', command, {
11466 query: query,
11467 options: options
11468 });
11469 }
11470 }, {
11471 key: "update",
11472 value: function update(command, data) {
11473 var query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11474 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
11475 return this.run('update', command, {
11476 query: query,
11477 options: options,
11478 data: data
11479 });
11480 }
11481 /**
11482 * @param {ComponentBase} component
11483 * @param {string} command
11484 * @param callback
11485 */
11486
11487 }, {
11488 key: "register",
11489 value: function register(component, command, callback) {
11490 (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "register", this).call(this, component, command, callback);
11491 var fullCommandName = component.getNamespace() + '/' + command,
11492 commandInstance = $e.commands.getCommandClass(fullCommandName),
11493 format = (commandInstance === null || commandInstance === void 0 ? void 0 : commandInstance.getEndpointFormat) ? commandInstance.getEndpointFormat() : false;
11494
11495 if (format) {
11496 $e.data.registerFormat(fullCommandName, format);
11497 }
11498 }
11499 /**
11500 * TODO: Add JSDOC typedef for args ( query and options ).
11501 *
11502 * @param {DataTypes} type
11503 * @param {string} command
11504 * @param {{}} args
11505 *
11506 * @return {*}
11507 */
11508
11509 }, {
11510 key: "run",
11511 value: function run(type, command, args) {
11512 args.options.type = type;
11513
11514 var _this$commandExtractA = this.commandExtractArgs(command, args);
11515
11516 command = _this$commandExtractA.command;
11517 args = _this$commandExtractA.args;
11518 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "run", this).call(this, command, args);
11519 }
11520 }, {
11521 key: "error",
11522 value: function error(message) {
11523 throw Error('Data commands: ' + message);
11524 }
11525 }]);
11526 return Data;
11527 }(_commands.default);
11528
11529 exports.default = Data;
11530
11531 /***/ }),
11532 /* 633 */
11533 /***/ (function(module, exports, __webpack_require__) {
11534
11535 "use strict";
11536
11537
11538 var _interopRequireDefault = __webpack_require__(0);
11539
11540 var _Object$defineProperty = __webpack_require__(1);
11541
11542 _Object$defineProperty(exports, "__esModule", {
11543 value: true
11544 });
11545
11546 exports.default = void 0;
11547
11548 var _typeof2 = _interopRequireDefault(__webpack_require__(48));
11549
11550 var _keys = _interopRequireDefault(__webpack_require__(23));
11551
11552 var _values = _interopRequireDefault(__webpack_require__(55));
11553
11554 __webpack_require__(135);
11555
11556 __webpack_require__(155);
11557
11558 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(102));
11559
11560 var _entries = _interopRequireDefault(__webpack_require__(89));
11561
11562 var _assign = _interopRequireDefault(__webpack_require__(134));
11563
11564 __webpack_require__(80);
11565
11566 __webpack_require__(58);
11567
11568 var _regenerator = _interopRequireDefault(__webpack_require__(82));
11569
11570 __webpack_require__(66);
11571
11572 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(83));
11573
11574 var _promise = _interopRequireDefault(__webpack_require__(133));
11575
11576 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11577
11578 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11579
11580 var _localStorage = _interopRequireDefault(__webpack_require__(634));
11581
11582 /**
11583 * TODO: Search common logic, create functions to reduce code size.
11584 */
11585 var Cache = /*#__PURE__*/function () {
11586 /**
11587 * Function constructor().
11588 *
11589 * Create cache.
11590 *
11591 * @param {Data} manager
11592 */
11593 function Cache(manager) {
11594 (0, _classCallCheck2.default)(this, Cache);
11595 this.manager = manager;
11596 this.storage = new _localStorage.default();
11597 }
11598 /**
11599 * Function getAsync().
11600 *
11601 * Receive from cache. the difference between getAsync() and get() is that receive return it as promise...
11602 * to fake fetch mechanism.
11603 *
11604 * @param {RequestData} requestData
11605 *
11606 * @return {(Promise|boolean)}
11607 */
11608
11609
11610 (0, _createClass2.default)(Cache, [{
11611 key: "getAsync",
11612 value: function getAsync(requestData) {
11613 var data = this.get(requestData);
11614
11615 if (null !== data) {
11616 // If data comes from cache, add 'cache = hit' to requestData.
11617 requestData.cache = 'hit';
11618 return new _promise.default( /*#__PURE__*/function () {
11619 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve) {
11620 return _regenerator.default.wrap(function _callee$(_context) {
11621 while (1) {
11622 switch (_context.prev = _context.next) {
11623 case 0:
11624 resolve(data);
11625
11626 case 1:
11627 case "end":
11628 return _context.stop();
11629 }
11630 }
11631 }, _callee);
11632 }));
11633
11634 return function (_x) {
11635 return _ref.apply(this, arguments);
11636 };
11637 }());
11638 } // TODO: Check if possible, always return promise and reject it.
11639
11640
11641 return false;
11642 }
11643 /**
11644 * Function set().
11645 *
11646 * set data to cache.
11647 *
11648 * The difference between set() and update() is that set, will modify the data anyway...
11649 * when update() will only modify exist objects/values.
11650 *
11651 * @param {RequestData} requestData
11652 * @param {*} data
11653 */
11654
11655 }, {
11656 key: "set",
11657 value: function set(requestData, data) {
11658 $e.data.validateRequestData(requestData);
11659 var componentName = requestData.component.getNamespace(),
11660 pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11661 pureEndpointParts = pureEndpoint.split('/');
11662 var newData = {}; // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'load(): deep'.
11663 // Analyze reaming endpoint.
11664
11665 if (pureEndpointParts.length && pureEndpoint !== componentName) {
11666 // Using reaming endpoint parts, to build new data object.
11667 var result = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11668 accumulator[pureEndpointPart] = {};
11669 return accumulator[pureEndpointPart];
11670 }, newData); // 'result' is equal to 'newData' with a deeper pointer, build based on 'pureEndpointParts' ( will effect newData ).
11671
11672 (0, _assign.default)(result, data);
11673 } else {
11674 newData = data;
11675 }
11676
11677 var oldData = this.storage.getItem(componentName); // When have old data, merge it recursively with newData using jQuery.extend().
11678
11679 if (oldData !== null) {
11680 newData = jQuery.extend(true, oldData, newData);
11681 }
11682
11683 this.storage.setItem(componentName, newData);
11684 }
11685 /**
11686 * Function get().
11687 *
11688 * Get from exist storage.
11689 *
11690 * @param {RequestData} requestData
11691 *
11692 * @return {{}}
11693 */
11694
11695 }, {
11696 key: "get",
11697 value: function get(requestData) {
11698 $e.data.validateRequestData(requestData);
11699 var componentName = requestData.component.getNamespace(),
11700 componentData = this.storage.getItem(componentName);
11701
11702 if (componentData !== null) {
11703 if (componentName === requestData.endpoint) {
11704 return componentData;
11705 } // Example of working with reaming endpoint part(s) can be found at 'cache.spec.js' test: 'get(): complex'.
11706 // Analyze reaming endpoint (Using reduce over endpoint parts, build the right index).
11707
11708
11709 var pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
11710 pureEndpointParts = pureEndpoint.split('/'),
11711 result = pureEndpointParts.reduce(function (accumulator, endpointPart) {
11712 if (accumulator && accumulator[endpointPart]) {
11713 return accumulator[endpointPart];
11714 }
11715 }, componentData); // Since $e.data.cache.receive will reject only if null is the result.
11716
11717 return result || null;
11718 }
11719
11720 return null;
11721 }
11722 /**
11723 * Function update().
11724 *
11725 * Update only already exist storage, runs over all storage
11726 *
11727 * @param {RequestData} requestData
11728 *
11729 * @return {boolean} is updated
11730 */
11731
11732 }, {
11733 key: "update",
11734 value: function update(requestData) {
11735 $e.data.validateRequestData(requestData, true);
11736 var endpoint = requestData.endpoint;
11737 var response = {}; // Simulate response from cache.
11738
11739 (0, _entries.default)(this.storage.getAll()).forEach(function (_ref2) {
11740 var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
11741 endpointKey = _ref3[0],
11742
11743 /*string*/
11744 endpointValue = _ref3[1];
11745
11746 if (endpointValue && endpoint.includes(endpointKey)) {
11747 // Assuming it is a specific endpoint.
11748 var oldData = endpointValue,
11749 pureEndpoint = requestData.endpoint.replace(requestData.component.getNamespace() + '/', ''),
11750 pureEndpointParts = pureEndpoint.split('/'),
11751 isComponentUpdate = 1 === pureEndpointParts.length && endpointKey === requestData.endpoint && endpointKey === requestData.component.getNamespace(); // Component update or specific update?
11752
11753 if (isComponentUpdate) {
11754 response = jQuery.extend(true, oldData, requestData.args.data);
11755 } else {
11756 var oldSpecificData = pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11757 return accumulator[pureEndpointPart];
11758 }, oldData);
11759 response = jQuery.extend(true, oldSpecificData, requestData.args.data);
11760 }
11761 }
11762 }); // If response not found.
11763
11764 if (0 === (0, _values.default)(response).length) {
11765 return false;
11766 } // Update cache.
11767
11768
11769 this.set(requestData, response);
11770 return true;
11771 }
11772 /**
11773 * Function delete().
11774 *
11775 * Delete endpoint from storage.
11776 *
11777 * @param {RequestData} requestData
11778 *
11779 * @return {boolean} is deleted
11780 */
11781
11782 }, {
11783 key: "delete",
11784 value: function _delete(requestData) {
11785 $e.data.validateRequestData(requestData);
11786 var result = false;
11787 var componentName = requestData.component.getNamespace();
11788
11789 if (componentName !== requestData.endpoint) {
11790 var oldData = this.storage.getItem(componentName),
11791 newData = {};
11792
11793 if (null === oldData) {
11794 return false;
11795 }
11796
11797 var pureEndpoint = requestData.endpoint.replace(componentName + '/', ''),
11798 pureEndpointParts = pureEndpoint.split('/'),
11799 lastEndpointPart = pureEndpointParts[pureEndpointParts.length - 1];
11800 pureEndpointParts.reduce(function (accumulator, pureEndpointPart) {
11801 if (pureEndpointPart === lastEndpointPart) {
11802 // Null, means delete.
11803 accumulator[pureEndpointPart] = null;
11804 } else {
11805 accumulator[pureEndpointPart] = {};
11806 }
11807
11808 return accumulator[pureEndpointPart];
11809 }, newData);
11810
11811 if ((0, _keys.default)(oldData).length) {
11812 var deleteKeys = function deleteKeys(target, nullsObject) {
11813 if (nullsObject) {
11814 (0, _keys.default)(nullsObject).forEach(function (key) {
11815 if (nullsObject[key] && 'object' === (0, _typeof2.default)(nullsObject[key])) {
11816 deleteKeys(target[key], nullsObject[key]);
11817 } else if (null === nullsObject[key]) {
11818 delete target[key];
11819 result = true;
11820 }
11821 });
11822 } else {
11823 // Means need to clear all the object.
11824 (0, _keys.default)(target).forEach(function (key) {
11825 return delete target[key];
11826 });
11827 }
11828
11829 return target;
11830 };
11831
11832 this.storage.setItem(componentName, deleteKeys(oldData, newData));
11833 }
11834 } else {
11835 for (var key in this.storage.getAll()) {
11836 if (key === requestData.endpoint) {
11837 this.storage.removeItem(requestData.endpoint);
11838 result = true;
11839 break;
11840 }
11841 }
11842 }
11843
11844 return result;
11845 }
11846 }]);
11847 return Cache;
11848 }();
11849
11850 exports.default = Cache;
11851
11852 /***/ }),
11853 /* 634 */
11854 /***/ (function(module, exports, __webpack_require__) {
11855
11856 "use strict";
11857
11858
11859 var _interopRequireDefault = __webpack_require__(0);
11860
11861 var _Object$defineProperty = __webpack_require__(1);
11862
11863 _Object$defineProperty(exports, "__esModule", {
11864 value: true
11865 });
11866
11867 exports.default = void 0;
11868
11869 var _keys = _interopRequireDefault(__webpack_require__(23));
11870
11871 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11872
11873 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11874
11875 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11876
11877 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11878
11879 var _basePrefixStorage = _interopRequireDefault(__webpack_require__(635));
11880
11881 var LocalStorage = /*#__PURE__*/function (_BasePrefixStorage) {
11882 (0, _inherits2.default)(LocalStorage, _BasePrefixStorage);
11883
11884 var _super = (0, _createSuper2.default)(LocalStorage);
11885
11886 function LocalStorage() {
11887 (0, _classCallCheck2.default)(this, LocalStorage);
11888 return _super.call(this, localStorage);
11889 }
11890
11891 (0, _createClass2.default)(LocalStorage, [{
11892 key: "debug",
11893 value: function debug() {
11894 var entries = this.getAll(),
11895 ordered = {};
11896 (0, _keys.default)(entries).sort().forEach(function (key) {
11897 var value = entries[key];
11898 ordered[key] = value;
11899 });
11900 return ordered;
11901 }
11902 }]);
11903 return LocalStorage;
11904 }(_basePrefixStorage.default);
11905
11906 exports.default = LocalStorage;
11907
11908 /***/ }),
11909 /* 635 */
11910 /***/ (function(module, exports, __webpack_require__) {
11911
11912 "use strict";
11913
11914
11915 var _interopRequireDefault = __webpack_require__(0);
11916
11917 var _Object$defineProperty = __webpack_require__(1);
11918
11919 _Object$defineProperty(exports, "__esModule", {
11920 value: true
11921 });
11922
11923 exports.default = void 0;
11924
11925 __webpack_require__(58);
11926
11927 __webpack_require__(277);
11928
11929 var _keys = _interopRequireDefault(__webpack_require__(23));
11930
11931 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
11932
11933 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
11934
11935 var _get2 = _interopRequireDefault(__webpack_require__(26));
11936
11937 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
11938
11939 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
11940
11941 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
11942
11943 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
11944
11945 var _baseStorage = _interopRequireDefault(__webpack_require__(636));
11946
11947 var BasePrefixStorage = /*#__PURE__*/function (_BaseStorage) {
11948 (0, _inherits2.default)(BasePrefixStorage, _BaseStorage);
11949
11950 var _super = (0, _createSuper2.default)(BasePrefixStorage);
11951
11952 function BasePrefixStorage() {
11953 (0, _classCallCheck2.default)(this, BasePrefixStorage);
11954 return _super.apply(this, arguments);
11955 }
11956
11957 (0, _createClass2.default)(BasePrefixStorage, [{
11958 key: "clear",
11959 value: function clear() {
11960 var _this = this;
11961
11962 (0, _keys.default)(this.getAll()).forEach(function (key) {
11963 return _this.removeItem(key);
11964 });
11965 }
11966 }, {
11967 key: "getItem",
11968 value: function getItem(key) {
11969 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "getItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
11970 }
11971 }, {
11972 key: "removeItem",
11973 value: function removeItem(key) {
11974 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "removeItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key);
11975 }
11976 }, {
11977 key: "setItem",
11978 value: function setItem(key, value) {
11979 return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "setItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key, value);
11980 }
11981 }, {
11982 key: "getAll",
11983 value: function getAll() {
11984 var _this2 = this;
11985
11986 var DEFAULT_KEY_PREFIX = BasePrefixStorage.DEFAULT_KEY_PREFIX,
11987 keys = (0, _keys.default)(this.provider),
11988 result = {};
11989 keys.forEach(function (key) {
11990 if (key.startsWith(DEFAULT_KEY_PREFIX)) {
11991 key = key.replace(DEFAULT_KEY_PREFIX, '');
11992 result[key] = _this2.getItem(key);
11993 }
11994 });
11995 return result;
11996 }
11997 }]);
11998 return BasePrefixStorage;
11999 }(_baseStorage.default);
12000
12001 exports.default = BasePrefixStorage;
12002 (0, _defineProperty2.default)(BasePrefixStorage, "DEFAULT_KEY_PREFIX", 'e_');
12003
12004 /***/ }),
12005 /* 636 */
12006 /***/ (function(module, exports, __webpack_require__) {
12007
12008 "use strict";
12009
12010
12011 var _interopRequireDefault = __webpack_require__(0);
12012
12013 var _Object$defineProperty = __webpack_require__(1);
12014
12015 _Object$defineProperty(exports, "__esModule", {
12016 value: true
12017 });
12018
12019 exports.default = void 0;
12020
12021 var _keys = _interopRequireDefault(__webpack_require__(23));
12022
12023 var _stringify = _interopRequireDefault(__webpack_require__(206));
12024
12025 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12026
12027 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12028
12029 /**
12030 * TODO: Merge all storage's to one.
12031 * Using this technique give's the ability to use JSDOC from 'window.storage'.
12032 *
12033 * @implements {Storage}
12034 */
12035 var BaseStorage = /*#__PURE__*/function () {
12036 /**
12037 * Create storage wrapper.
12038 *
12039 * @param {Storage} provider
12040 */
12041 function BaseStorage(provider) {
12042 (0, _classCallCheck2.default)(this, BaseStorage);
12043
12044 if (BaseStorage === (this instanceof BaseStorage ? this.constructor : void 0)) {
12045 throw new TypeError('Cannot construct BaseStorage instances directly');
12046 }
12047
12048 this.provider = provider;
12049 }
12050
12051 (0, _createClass2.default)(BaseStorage, [{
12052 key: "clear",
12053 value: function clear() {
12054 return this.provider.clear();
12055 }
12056 }, {
12057 key: "getItem",
12058 value: function getItem(key) {
12059 var result = this.provider.getItem(key);
12060
12061 if (null !== result) {
12062 return JSON.parse(result);
12063 }
12064
12065 return result;
12066 }
12067 }, {
12068 key: "key",
12069 value: function key(index) {
12070 return this.provider.key(index);
12071 }
12072 }, {
12073 key: "removeItem",
12074 value: function removeItem(key) {
12075 return this.provider.removeItem(key);
12076 }
12077 }, {
12078 key: "setItem",
12079 value: function setItem(key, value) {
12080 return this.provider.setItem(key, (0, _stringify.default)(value));
12081 }
12082 }, {
12083 key: "getAll",
12084 value: function getAll() {
12085 var _this = this;
12086
12087 var keys = (0, _keys.default)(this.provider),
12088 result = {};
12089 keys.forEach(function (key) {
12090 result[key] = _this.getItem(key);
12091 });
12092 return result;
12093 }
12094 }]);
12095 return BaseStorage;
12096 }();
12097
12098 exports.default = BaseStorage;
12099
12100 /***/ }),
12101 /* 637 */
12102 /***/ (function(module, exports, __webpack_require__) {
12103
12104 "use strict";
12105
12106
12107 var _interopRequireDefault = __webpack_require__(0);
12108
12109 var _Object$defineProperty = __webpack_require__(1);
12110
12111 _Object$defineProperty(exports, "__esModule", {
12112 value: true
12113 });
12114
12115 exports.default = void 0;
12116
12117 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12118
12119 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12120
12121 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12122
12123 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(342));
12124
12125 var HookBreak = /*#__PURE__*/function (_Error) {
12126 (0, _inherits2.default)(HookBreak, _Error);
12127
12128 var _super = (0, _createSuper2.default)(HookBreak);
12129
12130 function HookBreak() {
12131 (0, _classCallCheck2.default)(this, HookBreak);
12132 return _super.call(this, 'HookBreak');
12133 }
12134
12135 return HookBreak;
12136 }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
12137
12138 exports.default = HookBreak;
12139
12140 /***/ }),
12141 /* 638 */
12142 /***/ (function(module, exports, __webpack_require__) {
12143
12144 "use strict";
12145
12146
12147 var _interopRequireDefault = __webpack_require__(0);
12148
12149 var _Object$defineProperty = __webpack_require__(1);
12150
12151 _Object$defineProperty(exports, "__esModule", {
12152 value: true
12153 });
12154
12155 exports.default = exports.Before = void 0;
12156
12157 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12158
12159 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12160
12161 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12162
12163 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12164
12165 var _base = _interopRequireDefault(__webpack_require__(314));
12166
12167 var Before = /*#__PURE__*/function (_Base) {
12168 (0, _inherits2.default)(Before, _Base);
12169
12170 var _super = (0, _createSuper2.default)(Before);
12171
12172 function Before() {
12173 (0, _classCallCheck2.default)(this, Before);
12174 return _super.apply(this, arguments);
12175 }
12176
12177 (0, _createClass2.default)(Before, [{
12178 key: "register",
12179 value: function register() {
12180 $e.hooks.registerUIBefore(this);
12181 }
12182 }]);
12183 return Before;
12184 }(_base.default);
12185
12186 exports.Before = Before;
12187 var _default = Before;
12188 exports.default = _default;
12189
12190 /***/ }),
12191 /* 639 */
12192 /***/ (function(module, exports, __webpack_require__) {
12193
12194 "use strict";
12195
12196
12197 var _interopRequireDefault = __webpack_require__(0);
12198
12199 var _Object$defineProperty = __webpack_require__(1);
12200
12201 _Object$defineProperty(exports, "__esModule", {
12202 value: true
12203 });
12204
12205 exports.default = exports.Catch = void 0;
12206
12207 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12208
12209 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12210
12211 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12212
12213 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12214
12215 var _base = _interopRequireDefault(__webpack_require__(314));
12216
12217 var Catch = /*#__PURE__*/function (_Base) {
12218 (0, _inherits2.default)(Catch, _Base);
12219
12220 var _super = (0, _createSuper2.default)(Catch);
12221
12222 function Catch() {
12223 (0, _classCallCheck2.default)(this, Catch);
12224 return _super.apply(this, arguments);
12225 }
12226
12227 (0, _createClass2.default)(Catch, [{
12228 key: "register",
12229 value: function register() {
12230 $e.hooks.registerUICatch(this);
12231 }
12232 }]);
12233 return Catch;
12234 }(_base.default);
12235
12236 exports.Catch = Catch;
12237 var _default = Catch;
12238 exports.default = _default;
12239
12240 /***/ }),
12241 /* 640 */,
12242 /* 641 */,
12243 /* 642 */,
12244 /* 643 */,
12245 /* 644 */,
12246 /* 645 */,
12247 /* 646 */,
12248 /* 647 */,
12249 /* 648 */,
12250 /* 649 */,
12251 /* 650 */,
12252 /* 651 */,
12253 /* 652 */,
12254 /* 653 */,
12255 /* 654 */,
12256 /* 655 */,
12257 /* 656 */,
12258 /* 657 */,
12259 /* 658 */,
12260 /* 659 */,
12261 /* 660 */,
12262 /* 661 */,
12263 /* 662 */,
12264 /* 663 */,
12265 /* 664 */,
12266 /* 665 */,
12267 /* 666 */,
12268 /* 667 */,
12269 /* 668 */,
12270 /* 669 */,
12271 /* 670 */,
12272 /* 671 */,
12273 /* 672 */,
12274 /* 673 */,
12275 /* 674 */,
12276 /* 675 */,
12277 /* 676 */,
12278 /* 677 */,
12279 /* 678 */,
12280 /* 679 */,
12281 /* 680 */
12282 /***/ (function(module, exports, __webpack_require__) {
12283
12284 "use strict";
12285
12286
12287 var _interopRequireDefault = __webpack_require__(0);
12288
12289 var _Object$defineProperty = __webpack_require__(1);
12290
12291 _Object$defineProperty(exports, "__esModule", {
12292 value: true
12293 });
12294
12295 exports.default = void 0;
12296
12297 var _values = _interopRequireDefault(__webpack_require__(55));
12298
12299 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12300
12301 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12302
12303 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12304
12305 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12306
12307 var _item = _interopRequireDefault(__webpack_require__(724));
12308
12309 var _item2 = _interopRequireDefault(__webpack_require__(725));
12310
12311 var _default = /*#__PURE__*/function (_Marionette$Composite) {
12312 (0, _inherits2.default)(_default, _Marionette$Composite);
12313
12314 var _super = (0, _createSuper2.default)(_default);
12315
12316 function _default() {
12317 (0, _classCallCheck2.default)(this, _default);
12318 return _super.apply(this, arguments);
12319 }
12320
12321 (0, _createClass2.default)(_default, [{
12322 key: "className",
12323 value: function className() {
12324 return 'elementor-finder__results__category';
12325 }
12326 }, {
12327 key: "getTemplate",
12328 value: function getTemplate() {
12329 return '#tmpl-elementor-finder__results__category';
12330 }
12331 }, {
12332 key: "getChildView",
12333 value: function getChildView() {
12334 return _item.default;
12335 }
12336 }, {
12337 key: "initialize",
12338 value: function initialize() {
12339 this.childViewContainer = '.elementor-finder__results__category__items';
12340 this.isVisible = true;
12341 var items = this.model.get('items');
12342
12343 if (items) {
12344 items = (0, _values.default)(items);
12345 }
12346
12347 this.collection = new Backbone.Collection(items, {
12348 model: _item2.default
12349 });
12350 }
12351 }, {
12352 key: "filter",
12353 value: function filter(childModel) {
12354 var textFilter = this.getTextFilter();
12355
12356 if (childModel.get('title').toLowerCase().indexOf(textFilter) >= 0) {
12357 return true;
12358 }
12359
12360 return childModel.get('keywords').some(function (keyword) {
12361 return keyword.indexOf(textFilter) >= 0;
12362 });
12363 }
12364 }, {
12365 key: "getTextFilter",
12366 value: function getTextFilter() {
12367 return elementorCommon.finder.channel.request('filter:text').trim().toLowerCase();
12368 }
12369 }, {
12370 key: "toggleElement",
12371 value: function toggleElement() {
12372 var isCurrentlyVisible = !!this.children.length;
12373
12374 if (isCurrentlyVisible !== this.isVisible) {
12375 this.isVisible = isCurrentlyVisible;
12376 this.$el.toggle(isCurrentlyVisible);
12377 this.triggerMethod('toggle:visibility');
12378 }
12379 }
12380 }, {
12381 key: "onRender",
12382 value: function onRender() {
12383 this.listenTo(elementorCommon.finder.channel, 'filter:change', this.onFilterChange.bind(this));
12384 }
12385 }, {
12386 key: "onFilterChange",
12387 value: function onFilterChange() {
12388 this._renderChildren();
12389 }
12390 }, {
12391 key: "onRenderCollection",
12392 value: function onRenderCollection() {
12393 this.toggleElement();
12394 }
12395 }]);
12396 return _default;
12397 }(Marionette.CompositeView);
12398
12399 exports.default = _default;
12400
12401 /***/ }),
12402 /* 681 */,
12403 /* 682 */,
12404 /* 683 */,
12405 /* 684 */,
12406 /* 685 */,
12407 /* 686 */,
12408 /* 687 */,
12409 /* 688 */,
12410 /* 689 */,
12411 /* 690 */,
12412 /* 691 */,
12413 /* 692 */,
12414 /* 693 */,
12415 /* 694 */,
12416 /* 695 */,
12417 /* 696 */,
12418 /* 697 */,
12419 /* 698 */,
12420 /* 699 */,
12421 /* 700 */,
12422 /* 701 */,
12423 /* 702 */,
12424 /* 703 */,
12425 /* 704 */,
12426 /* 705 */,
12427 /* 706 */,
12428 /* 707 */,
12429 /* 708 */,
12430 /* 709 */,
12431 /* 710 */,
12432 /* 711 */,
12433 /* 712 */,
12434 /* 713 */,
12435 /* 714 */,
12436 /* 715 */
12437 /***/ (function(module, exports, __webpack_require__) {
12438
12439 "use strict";
12440
12441
12442 var _interopRequireDefault = __webpack_require__(0);
12443
12444 __webpack_require__(58);
12445
12446 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12447
12448 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12449
12450 var _get2 = _interopRequireDefault(__webpack_require__(26));
12451
12452 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
12453
12454 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12455
12456 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12457
12458 var _helpers = _interopRequireDefault(__webpack_require__(716));
12459
12460 var _storage = _interopRequireDefault(__webpack_require__(630));
12461
12462 var _debug = _interopRequireDefault(__webpack_require__(717));
12463
12464 var _ajax = _interopRequireDefault(__webpack_require__(718));
12465
12466 var _finder = _interopRequireDefault(__webpack_require__(719));
12467
12468 var _connect = _interopRequireDefault(__webpack_require__(731));
12469
12470 var _api = _interopRequireDefault(__webpack_require__(732));
12471
12472 var ElementorCommonApp = /*#__PURE__*/function (_elementorModules$Vie) {
12473 (0, _inherits2.default)(ElementorCommonApp, _elementorModules$Vie);
12474
12475 var _super = (0, _createSuper2.default)(ElementorCommonApp);
12476
12477 function ElementorCommonApp() {
12478 (0, _classCallCheck2.default)(this, ElementorCommonApp);
12479 return _super.apply(this, arguments);
12480 }
12481
12482 (0, _createClass2.default)(ElementorCommonApp, [{
12483 key: "setMarionetteTemplateCompiler",
12484 value: function setMarionetteTemplateCompiler() {
12485 Marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate, options) {
12486 options = {
12487 evaluate: /<#([\s\S]+?)#>/g,
12488 interpolate: /{{{([\s\S]+?)}}}/g,
12489 escape: /{{([^}]+?)}}(?!})/g
12490 };
12491 return _.template(rawTemplate, options);
12492 };
12493 }
12494 }, {
12495 key: "getDefaultElements",
12496 value: function getDefaultElements() {
12497 return {
12498 $window: jQuery(window),
12499 $document: jQuery(document),
12500 $body: jQuery(document.body)
12501 };
12502 }
12503 }, {
12504 key: "initComponents",
12505 value: function initComponents() {
12506 this.debug = new _debug.default();
12507 this.helpers = new _helpers.default();
12508 this.storage = new _storage.default();
12509 this.dialogsManager = new DialogsManager.Instance();
12510 this.api = new _api.default();
12511 this.initModules();
12512 }
12513 }, {
12514 key: "initModules",
12515 value: function initModules() {
12516 var _this = this;
12517
12518 var activeModules = this.config.activeModules;
12519 var modules = {
12520 ajax: _ajax.default,
12521 finder: _finder.default,
12522 connect: _connect.default
12523 };
12524 activeModules.forEach(function (name) {
12525 if (modules[name]) {
12526 _this[name] = new modules[name](_this.config[name]);
12527 }
12528 });
12529 }
12530 }, {
12531 key: "compileArrayTemplateArgs",
12532 value: function compileArrayTemplateArgs(template, templateArgs) {
12533 return template.replace(/%(?:(\d+)\$)?s/g, function (match, number) {
12534 if (!number) {
12535 number = 1;
12536 }
12537
12538 number--;
12539 return undefined !== templateArgs[number] ? templateArgs[number] : match;
12540 });
12541 }
12542 }, {
12543 key: "compileObjectTemplateArgs",
12544 value: function compileObjectTemplateArgs(template, templateArgs) {
12545 return template.replace(/{{(?:([ \w]+))}}/g, function (match, name) {
12546 return templateArgs[name] ? templateArgs[name] : match;
12547 });
12548 }
12549 }, {
12550 key: "compileTemplate",
12551 value: function compileTemplate(template, templateArgs) {
12552 return jQuery.isPlainObject(templateArgs) ? this.compileObjectTemplateArgs(template, templateArgs) : this.compileArrayTemplateArgs(template, templateArgs);
12553 }
12554 }, {
12555 key: "translate",
12556 value: function translate(stringKey, context, templateArgs, i18nStack) {
12557 if (context) {
12558 i18nStack = this.config[context].i18n;
12559 }
12560
12561 if (!i18nStack) {
12562 i18nStack = this.config.i18n;
12563 }
12564
12565 var string = i18nStack[stringKey];
12566
12567 if (undefined === string) {
12568 string = stringKey;
12569 }
12570
12571 if (templateArgs) {
12572 string = this.compileTemplate(string, templateArgs);
12573 }
12574
12575 return string;
12576 }
12577 }, {
12578 key: "onInit",
12579 value: function onInit() {
12580 (0, _get2.default)((0, _getPrototypeOf2.default)(ElementorCommonApp.prototype), "onInit", this).call(this);
12581 this.config = elementorCommonConfig;
12582 this.setMarionetteTemplateCompiler();
12583 }
12584 }]);
12585 return ElementorCommonApp;
12586 }(elementorModules.ViewModule);
12587
12588 window.elementorCommon = new ElementorCommonApp();
12589 elementorCommon.initComponents();
12590
12591 /***/ }),
12592 /* 716 */
12593 /***/ (function(module, exports, __webpack_require__) {
12594
12595 "use strict";
12596
12597
12598 var _interopRequireDefault = __webpack_require__(0);
12599
12600 var _Object$defineProperty = __webpack_require__(1);
12601
12602 _Object$defineProperty(exports, "__esModule", {
12603 value: true
12604 });
12605
12606 exports.default = void 0;
12607
12608 __webpack_require__(183);
12609
12610 __webpack_require__(72);
12611
12612 __webpack_require__(58);
12613
12614 var _stringify = _interopRequireDefault(__webpack_require__(206));
12615
12616 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12617
12618 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12619
12620 var Helpers = /*#__PURE__*/function () {
12621 function Helpers() {
12622 (0, _classCallCheck2.default)(this, Helpers);
12623 }
12624
12625 (0, _createClass2.default)(Helpers, [{
12626 key: "softDeprecated",
12627 value: function softDeprecated(name, version, replacement) {
12628 if (elementorCommon.config.isDebug) {
12629 this.deprecatedMessage('soft', name, version, replacement);
12630 }
12631 }
12632 }, {
12633 key: "hardDeprecated",
12634 value: function hardDeprecated(name, version, replacement) {
12635 this.deprecatedMessage('hard', name, version, replacement);
12636 }
12637 }, {
12638 key: "deprecatedMessage",
12639 value: function deprecatedMessage(type, name, version, replacement) {
12640 var message = "%c %c`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
12641
12642 if (replacement) {
12643 message += " - Use `".concat(replacement, "` instead");
12644 }
12645
12646 this.consoleWarn(message);
12647 }
12648 }, {
12649 key: "consoleWarn",
12650 value: function consoleWarn() {
12651 var _console;
12652
12653 var style = "font-size: 12px; background-image: url(\"".concat(elementorCommon.config.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
12654
12655 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12656 args[_key] = arguments[_key];
12657 }
12658
12659 args.push(style, '');
12660
12661 (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
12662
12663 }
12664 }, {
12665 key: "consoleError",
12666 value: function consoleError(message) {
12667 // TODO: function is part of $e.
12668 // Show an error if devTools is available.
12669 if ($e.devTools) {
12670 $e.devTools.log.error(message);
12671 } // If not a 'Hook-Break' then show error.
12672
12673
12674 if (!(message instanceof $e.modules.HookBreak)) {
12675 // eslint-disable-next-line no-console
12676 console.error(message);
12677 }
12678 }
12679 }, {
12680 key: "deprecatedMethod",
12681 value: function deprecatedMethod(methodName, version, replacement) {
12682 this.deprecatedMessage('hard', methodName, version, replacement); // This itself is deprecated.
12683
12684 this.softDeprecated('elementorCommon.helpers.deprecatedMethod', '2.8.0', 'elementorCommon.helpers.softDeprecated || elementorCommon.helpers.hardDeprecated');
12685 }
12686 }, {
12687 key: "cloneObject",
12688 value: function cloneObject(object) {
12689 return JSON.parse((0, _stringify.default)(object));
12690 }
12691 }, {
12692 key: "upperCaseWords",
12693 value: function upperCaseWords(string) {
12694 return (string + '').replace(/^(.)|\s+(.)/g, function ($1) {
12695 return $1.toUpperCase();
12696 });
12697 }
12698 }, {
12699 key: "getUniqueId",
12700 value: function getUniqueId() {
12701 return Math.random().toString(16).substr(2, 7);
12702 }
12703 }]);
12704 return Helpers;
12705 }();
12706
12707 exports.default = Helpers;
12708
12709 /***/ }),
12710 /* 717 */
12711 /***/ (function(module, exports, __webpack_require__) {
12712
12713 "use strict";
12714
12715
12716 __webpack_require__(119);
12717
12718 __webpack_require__(39);
12719
12720 // Moved from assets/dev/js/editor/utils
12721 var Debug = function Debug() {
12722 var self = this,
12723 errorStack = [],
12724 settings = {},
12725 elements = {};
12726
12727 var initSettings = function initSettings() {
12728 settings = {
12729 debounceDelay: 500,
12730 urlsToWatch: ['elementor/assets']
12731 };
12732 };
12733
12734 var initElements = function initElements() {
12735 elements.$window = jQuery(window);
12736 };
12737
12738 var onError = function onError(event) {
12739 var originalEvent = event.originalEvent,
12740 error = originalEvent.error;
12741
12742 if (!error) {
12743 return;
12744 }
12745
12746 var isInWatchList = false,
12747 urlsToWatch = settings.urlsToWatch;
12748 jQuery.each(urlsToWatch, function () {
12749 if (-1 !== error.stack.indexOf(this)) {
12750 isInWatchList = true;
12751 return false;
12752 }
12753 });
12754
12755 if (!isInWatchList) {
12756 return;
12757 }
12758
12759 self.addError({
12760 type: error.name,
12761 message: error.message,
12762 url: originalEvent.filename,
12763 line: originalEvent.lineno,
12764 column: originalEvent.colno
12765 });
12766 };
12767
12768 var bindEvents = function bindEvents() {
12769 elements.$window.on('error', onError);
12770 };
12771
12772 var init = function init() {
12773 initSettings();
12774 initElements();
12775 bindEvents();
12776 self.sendErrors = _.debounce(self.sendErrors, settings.debounceDelay);
12777 };
12778
12779 this.addURLToWatch = function (url) {
12780 settings.urlsToWatch.push(url);
12781 };
12782
12783 this.addCustomError = function (error, category, tag) {
12784 var errorInfo = {
12785 type: error.name,
12786 message: error.message,
12787 url: error.fileName || error.sourceURL,
12788 line: error.lineNumber || error.line,
12789 column: error.columnNumber || error.column,
12790 customFields: {
12791 category: category || 'general',
12792 tag: tag
12793 }
12794 };
12795
12796 if (!errorInfo.url) {
12797 var stackInfo = error.stack.match(/\n {4}at (.*?(?=:(\d+):(\d+)))/);
12798
12799 if (stackInfo) {
12800 errorInfo.url = stackInfo[1];
12801 errorInfo.line = stackInfo[2];
12802 errorInfo.column = stackInfo[3];
12803 }
12804 }
12805
12806 this.addError(errorInfo);
12807 };
12808
12809 this.addError = function (errorParams) {
12810 var defaultParams = {
12811 type: 'Error',
12812 timestamp: Math.floor(new Date().getTime() / 1000),
12813 message: null,
12814 url: null,
12815 line: null,
12816 column: null,
12817 customFields: {}
12818 };
12819 errorStack.push(jQuery.extend(true, defaultParams, errorParams));
12820 self.sendErrors();
12821 };
12822
12823 this.sendErrors = function () {
12824 // Avoid recursions on errors in ajax
12825 elements.$window.off('error', onError);
12826 jQuery.ajax({
12827 url: elementorCommon.config.ajax.url,
12828 method: 'POST',
12829 data: {
12830 action: 'elementor_js_log',
12831 _nonce: elementorCommon.ajax.getSettings('nonce'),
12832 data: errorStack
12833 },
12834 success: function success() {
12835 errorStack = []; // Restore error handler
12836
12837 elements.$window.on('error', onError);
12838 }
12839 });
12840 };
12841
12842 init();
12843 };
12844
12845 module.exports = Debug;
12846
12847 /***/ }),
12848 /* 718 */
12849 /***/ (function(module, exports, __webpack_require__) {
12850
12851 "use strict";
12852
12853
12854 var _interopRequireDefault = __webpack_require__(0);
12855
12856 var _Object$defineProperty = __webpack_require__(1);
12857
12858 _Object$defineProperty(exports, "__esModule", {
12859 value: true
12860 });
12861
12862 exports.default = void 0;
12863
12864 var _values = _interopRequireDefault(__webpack_require__(55));
12865
12866 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(102));
12867
12868 var _entries = _interopRequireDefault(__webpack_require__(89));
12869
12870 var _stringify = _interopRequireDefault(__webpack_require__(206));
12871
12872 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
12873
12874 var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
12875
12876 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
12877
12878 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
12879
12880 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
12881
12882 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
12883 (0, _inherits2.default)(_default, _elementorModules$Mod);
12884
12885 var _super = (0, _createSuper2.default)(_default);
12886
12887 (0, _createClass2.default)(_default, [{
12888 key: "getDefaultSettings",
12889 value: function getDefaultSettings() {
12890 return {
12891 ajaxParams: {
12892 type: 'POST',
12893 url: elementorCommon.config.ajax.url,
12894 data: {},
12895 dataType: 'json'
12896 },
12897 actionPrefix: 'elementor_'
12898 };
12899 }
12900 }]);
12901
12902 function _default() {
12903 var _this;
12904
12905 (0, _classCallCheck2.default)(this, _default);
12906
12907 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12908 args[_key] = arguments[_key];
12909 }
12910
12911 _this = _super.call.apply(_super, [this].concat(args));
12912 _this.requests = {};
12913 _this.cache = {};
12914
12915 _this.initRequestConstants();
12916
12917 _this.debounceSendBatch = _.debounce(_this.sendBatch.bind((0, _assertThisInitialized2.default)(_this)), 500);
12918 return _this;
12919 }
12920
12921 (0, _createClass2.default)(_default, [{
12922 key: "initRequestConstants",
12923 value: function initRequestConstants() {
12924 this.requestConstants = {
12925 _nonce: this.getSettings('nonce')
12926 };
12927 }
12928 }, {
12929 key: "addRequestConstant",
12930 value: function addRequestConstant(key, value) {
12931 this.requestConstants[key] = value;
12932 }
12933 }, {
12934 key: "getCacheKey",
12935 value: function getCacheKey(request) {
12936 return (0, _stringify.default)({
12937 unique_id: request.unique_id,
12938 data: request.data
12939 });
12940 }
12941 }, {
12942 key: "loadObjects",
12943 value: function loadObjects(options) {
12944 var _this2 = this;
12945
12946 var dataCollection = {};
12947 var deferredArray = [];
12948
12949 if (options.before) {
12950 options.before();
12951 }
12952
12953 options.ids.forEach(function (objectId) {
12954 deferredArray.push(_this2.load({
12955 action: options.action,
12956 unique_id: options.data.unique_id + objectId,
12957 data: jQuery.extend({
12958 id: objectId
12959 }, options.data)
12960 }).done(function (data) {
12961 return dataCollection = jQuery.extend(dataCollection, data);
12962 }));
12963 });
12964 jQuery.when.apply(jQuery, deferredArray).done(function () {
12965 return options.success(dataCollection);
12966 });
12967 }
12968 }, {
12969 key: "load",
12970 value: function load(request, immediately) {
12971 var _this3 = this;
12972
12973 if (!request.unique_id) {
12974 request.unique_id = request.action;
12975 }
12976
12977 if (request.before) {
12978 request.before();
12979 }
12980
12981 var deferred;
12982 var cacheKey = this.getCacheKey(request);
12983
12984 if (_.has(this.cache, cacheKey)) {
12985 deferred = jQuery.Deferred().done(request.success).resolve(this.cache[cacheKey]);
12986 } else {
12987 deferred = this.addRequest(request.action, {
12988 data: request.data,
12989 unique_id: request.unique_id,
12990 success: function success(data) {
12991 return _this3.cache[cacheKey] = data;
12992 }
12993 }, immediately).done(request.success);
12994 }
12995
12996 return deferred;
12997 }
12998 }, {
12999 key: "addRequest",
13000 value: function addRequest(action, options, immediately) {
13001 options = options || {};
13002
13003 if (!options.unique_id) {
13004 options.unique_id = action;
13005 }
13006
13007 options.deferred = jQuery.Deferred().done(options.success).fail(options.error).always(options.complete);
13008 var request = {
13009 action: action,
13010 options: options
13011 };
13012
13013 if (immediately) {
13014 var requests = {};
13015 requests[options.unique_id] = request;
13016 options.deferred.jqXhr = this.sendBatch(requests);
13017 } else {
13018 this.requests[options.unique_id] = request;
13019 this.debounceSendBatch();
13020 }
13021
13022 return options.deferred;
13023 }
13024 }, {
13025 key: "sendBatch",
13026 value: function sendBatch(requests) {
13027 var actions = {};
13028
13029 if (!requests) {
13030 requests = this.requests; // Empty for next batch.
13031
13032 this.requests = {};
13033 }
13034
13035 (0, _entries.default)(requests).forEach(function (_ref) {
13036 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
13037 id = _ref2[0],
13038 request = _ref2[1];
13039
13040 return actions[id] = {
13041 action: request.action,
13042 data: request.options.data
13043 };
13044 });
13045 return this.send('ajax', {
13046 data: {
13047 actions: (0, _stringify.default)(actions)
13048 },
13049 success: function success(data) {
13050 (0, _entries.default)(data.responses).forEach(function (_ref3) {
13051 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
13052 id = _ref4[0],
13053 response = _ref4[1];
13054
13055 var options = requests[id].options;
13056
13057 if (options) {
13058 if (response.success) {
13059 options.deferred.resolve(response.data);
13060 } else if (!response.success) {
13061 options.deferred.reject(response.data);
13062 }
13063 }
13064 });
13065 },
13066 error: function error(data) {
13067 return (0, _values.default)(requests).forEach(function (args) {
13068 if (args.options) {
13069 args.options.deferred.reject(data);
13070 }
13071 });
13072 }
13073 });
13074 }
13075 }, {
13076 key: "prepareSend",
13077 value: function prepareSend(action, options) {
13078 var _this4 = this;
13079
13080 var settings = this.getSettings(),
13081 ajaxParams = elementorCommon.helpers.cloneObject(settings.ajaxParams);
13082 options = options || {};
13083 action = settings.actionPrefix + action;
13084 jQuery.extend(ajaxParams, options);
13085 var requestConstants = elementorCommon.helpers.cloneObject(this.requestConstants);
13086 requestConstants.action = action;
13087 var isFormData = ajaxParams.data instanceof FormData;
13088 (0, _entries.default)(requestConstants).forEach(function (_ref5) {
13089 var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
13090 key = _ref6[0],
13091 value = _ref6[1];
13092
13093 if (isFormData) {
13094 ajaxParams.data.append(key, value);
13095 } else {
13096 ajaxParams.data[key] = value;
13097 }
13098 });
13099 var successCallback = ajaxParams.success,
13100 errorCallback = ajaxParams.error;
13101
13102 if (successCallback || errorCallback) {
13103 ajaxParams.success = function (response) {
13104 if (response.success && successCallback) {
13105 successCallback(response.data);
13106 }
13107
13108 if (!response.success && errorCallback) {
13109 errorCallback(response.data);
13110 }
13111 };
13112
13113 if (errorCallback) {
13114 ajaxParams.error = function (data) {
13115 return errorCallback(data);
13116 };
13117 } else {
13118 ajaxParams.error = function (xmlHttpRequest) {
13119 if (xmlHttpRequest.readyState || 'abort' !== xmlHttpRequest.statusText) {
13120 _this4.trigger('request:unhandledError', xmlHttpRequest);
13121 }
13122 };
13123 }
13124 }
13125
13126 return ajaxParams;
13127 }
13128 }, {
13129 key: "send",
13130 value: function send(action, options) {
13131 return jQuery.ajax(this.prepareSend(action, options));
13132 }
13133 }, {
13134 key: "addRequestCache",
13135 value: function addRequestCache(request, data) {
13136 var cacheKey = this.getCacheKey(request);
13137 this.cache[cacheKey] = data;
13138 }
13139 }, {
13140 key: "invalidateCache",
13141 value: function invalidateCache(request) {
13142 var cacheKey = this.getCacheKey(request);
13143 delete this.cache[cacheKey];
13144 }
13145 }]);
13146 return _default;
13147 }(elementorModules.Module);
13148
13149 exports.default = _default;
13150
13151 /***/ }),
13152 /* 719 */
13153 /***/ (function(module, exports, __webpack_require__) {
13154
13155 "use strict";
13156
13157
13158 var _interopRequireDefault = __webpack_require__(0);
13159
13160 var _Object$defineProperty = __webpack_require__(1);
13161
13162 _Object$defineProperty(exports, "__esModule", {
13163 value: true
13164 });
13165
13166 exports.default = void 0;
13167
13168 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13169
13170 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13171
13172 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13173
13174 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13175
13176 var _component = _interopRequireDefault(__webpack_require__(720));
13177
13178 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
13179 (0, _inherits2.default)(_default, _elementorModules$Mod);
13180
13181 var _super = (0, _createSuper2.default)(_default);
13182
13183 function _default() {
13184 (0, _classCallCheck2.default)(this, _default);
13185 return _super.apply(this, arguments);
13186 }
13187
13188 (0, _createClass2.default)(_default, [{
13189 key: "onInit",
13190 value: function onInit() {
13191 // TODO: Temp fix, do not load finder in theme-builder.
13192 // Better to pass into '$e' constructor the app owner. ( admin, editor, preview, iframe ).
13193 if (window.top !== window) {
13194 return;
13195 }
13196
13197 this.channel = Backbone.Radio.channel('ELEMENTOR:finder');
13198 $e.components.register(new _component.default({
13199 manager: this
13200 }));
13201 }
13202 }]);
13203 return _default;
13204 }(elementorModules.Module);
13205
13206 exports.default = _default;
13207
13208 /***/ }),
13209 /* 720 */
13210 /***/ (function(module, exports, __webpack_require__) {
13211
13212 "use strict";
13213
13214
13215 var _interopRequireWildcard = __webpack_require__(36);
13216
13217 var _interopRequireDefault = __webpack_require__(0);
13218
13219 var _Object$defineProperty = __webpack_require__(1);
13220
13221 _Object$defineProperty(exports, "__esModule", {
13222 value: true
13223 });
13224
13225 exports.default = void 0;
13226
13227 var _objectSpread2 = _interopRequireDefault(__webpack_require__(214));
13228
13229 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13230
13231 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13232
13233 var _get2 = _interopRequireDefault(__webpack_require__(26));
13234
13235 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13236
13237 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13238
13239 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13240
13241 var _componentModalBase = _interopRequireDefault(__webpack_require__(287));
13242
13243 var _layout = _interopRequireDefault(__webpack_require__(721));
13244
13245 var commands = _interopRequireWildcard(__webpack_require__(727));
13246
13247 var Component = /*#__PURE__*/function (_ComponentModalBase) {
13248 (0, _inherits2.default)(Component, _ComponentModalBase);
13249
13250 var _super = (0, _createSuper2.default)(Component);
13251
13252 function Component() {
13253 (0, _classCallCheck2.default)(this, Component);
13254 return _super.apply(this, arguments);
13255 }
13256
13257 (0, _createClass2.default)(Component, [{
13258 key: "getNamespace",
13259 value: function getNamespace() {
13260 return 'finder';
13261 }
13262 }, {
13263 key: "defaultShortcuts",
13264 value: function defaultShortcuts() {
13265 var _this = this;
13266
13267 return {
13268 '': {
13269 keys: 'ctrl+e'
13270 },
13271 'navigate-down': {
13272 keys: 'down',
13273 scopes: [this.getNamespace()],
13274 dependency: function dependency() {
13275 return _this.getItemsView();
13276 }
13277 },
13278 'navigate-up': {
13279 keys: 'up',
13280 scopes: [this.getNamespace()],
13281 dependency: function dependency() {
13282 return _this.getItemsView();
13283 }
13284 },
13285 'navigate-select': {
13286 keys: 'enter',
13287 scopes: [this.getNamespace()],
13288 dependency: function dependency() {
13289 return _this.getItemsView().$activeItem;
13290 }
13291 }
13292 };
13293 }
13294 }, {
13295 key: "defaultCommands",
13296 value: function defaultCommands() {
13297 var modalCommands = (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "defaultCommands", this).call(this);
13298 return (0, _objectSpread2.default)((0, _objectSpread2.default)({
13299 'navigate/down': function navigateDown() {
13300 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/down' )", '3.0.0', "$e.run( 'finder/navigate-down' )");
13301 $e.run('finder/navigate-down');
13302 },
13303 'navigate/up': function navigateUp() {
13304 elementorCommon.helpers.softDeprecated("$e.run( 'finder/navigate/up' )", '3.0.0', "$e.run( 'finder/navigate-up' )");
13305 $e.run('finder/navigate-up');
13306 },
13307 'navigate/select': function navigateSelect(event) {
13308 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 ).
13309
13310 $e.run('finder/navigate-select', event);
13311 }
13312 }, modalCommands), this.importCommands(commands));
13313 }
13314 }, {
13315 key: "getModalLayout",
13316 value: function getModalLayout() {
13317 return _layout.default;
13318 }
13319 }, {
13320 key: "getItemsView",
13321 value: function getItemsView() {
13322 return this.layout.modalContent.currentView.content.currentView;
13323 }
13324 }]);
13325 return Component;
13326 }(_componentModalBase.default);
13327
13328 exports.default = Component;
13329
13330 /***/ }),
13331 /* 721 */
13332 /***/ (function(module, exports, __webpack_require__) {
13333
13334 "use strict";
13335
13336
13337 var _interopRequireDefault = __webpack_require__(0);
13338
13339 var _Object$defineProperty = __webpack_require__(1);
13340
13341 _Object$defineProperty(exports, "__esModule", {
13342 value: true
13343 });
13344
13345 exports.default = void 0;
13346
13347 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13348
13349 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13350
13351 var _get4 = _interopRequireDefault(__webpack_require__(26));
13352
13353 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13354
13355 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13356
13357 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13358
13359 var _content = _interopRequireDefault(__webpack_require__(722));
13360
13361 var _default = /*#__PURE__*/function (_elementorModules$com) {
13362 (0, _inherits2.default)(_default, _elementorModules$com);
13363
13364 var _super = (0, _createSuper2.default)(_default);
13365
13366 function _default() {
13367 (0, _classCallCheck2.default)(this, _default);
13368 return _super.apply(this, arguments);
13369 }
13370
13371 (0, _createClass2.default)(_default, [{
13372 key: "getModalOptions",
13373 value: function getModalOptions() {
13374 return {
13375 id: 'elementor-finder__modal',
13376 draggable: true,
13377 effects: {
13378 show: 'show',
13379 hide: 'hide'
13380 },
13381 position: {
13382 enable: false
13383 }
13384 };
13385 }
13386 }, {
13387 key: "getLogoOptions",
13388 value: function getLogoOptions() {
13389 return {
13390 title: elementorCommon.translate('finder', 'finder')
13391 };
13392 }
13393 }, {
13394 key: "initialize",
13395 value: function initialize() {
13396 var _get2;
13397
13398 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13399 args[_key] = arguments[_key];
13400 }
13401
13402 (_get2 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "initialize", this)).call.apply(_get2, [this].concat(args));
13403
13404 this.showLogo();
13405 this.showContentView();
13406 }
13407 }, {
13408 key: "showContentView",
13409 value: function showContentView() {
13410 this.modalContent.show(new _content.default());
13411 }
13412 }, {
13413 key: "showModal",
13414 value: function showModal() {
13415 var _get3;
13416
13417 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
13418 args[_key2] = arguments[_key2];
13419 }
13420
13421 (_get3 = (0, _get4.default)((0, _getPrototypeOf2.default)(_default.prototype), "showModal", this)).call.apply(_get3, [this].concat(args));
13422
13423 this.modalContent.currentView.ui.searchInput.focus();
13424 }
13425 }]);
13426 return _default;
13427 }(elementorModules.common.views.modal.Layout);
13428
13429 exports.default = _default;
13430
13431 /***/ }),
13432 /* 722 */
13433 /***/ (function(module, exports, __webpack_require__) {
13434
13435 "use strict";
13436
13437
13438 var _interopRequireDefault = __webpack_require__(0);
13439
13440 var _Object$defineProperty = __webpack_require__(1);
13441
13442 _Object$defineProperty(exports, "__esModule", {
13443 value: true
13444 });
13445
13446 exports.default = void 0;
13447
13448 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13449
13450 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13451
13452 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13453
13454 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13455
13456 var _categories = _interopRequireDefault(__webpack_require__(723));
13457
13458 var _default = /*#__PURE__*/function (_Marionette$LayoutVie) {
13459 (0, _inherits2.default)(_default, _Marionette$LayoutVie);
13460
13461 var _super = (0, _createSuper2.default)(_default);
13462
13463 function _default() {
13464 (0, _classCallCheck2.default)(this, _default);
13465 return _super.apply(this, arguments);
13466 }
13467
13468 (0, _createClass2.default)(_default, [{
13469 key: "id",
13470 value: function id() {
13471 return 'elementor-finder';
13472 }
13473 }, {
13474 key: "getTemplate",
13475 value: function getTemplate() {
13476 return '#tmpl-elementor-finder';
13477 }
13478 }, {
13479 key: "ui",
13480 value: function ui() {
13481 return {
13482 searchInput: '#elementor-finder__search__input'
13483 };
13484 }
13485 }, {
13486 key: "events",
13487 value: function events() {
13488 return {
13489 'input @ui.searchInput': 'onSearchInputInput'
13490 };
13491 }
13492 }, {
13493 key: "regions",
13494 value: function regions() {
13495 return {
13496 content: '#elementor-finder__content'
13497 };
13498 }
13499 }, {
13500 key: "showCategoriesView",
13501 value: function showCategoriesView() {
13502 this.content.show(new _categories.default());
13503 }
13504 }, {
13505 key: "onSearchInputInput",
13506 value: function onSearchInputInput() {
13507 var value = this.ui.searchInput.val();
13508
13509 if (value) {
13510 elementorCommon.finder.channel.reply('filter:text', value).trigger('filter:change');
13511
13512 if (!(this.content.currentView instanceof _categories.default)) {
13513 this.showCategoriesView();
13514 }
13515 }
13516
13517 this.content.currentView.$el.toggle(!!value);
13518 }
13519 }]);
13520 return _default;
13521 }(Marionette.LayoutView);
13522
13523 exports.default = _default;
13524
13525 /***/ }),
13526 /* 723 */
13527 /***/ (function(module, exports, __webpack_require__) {
13528
13529 "use strict";
13530
13531
13532 var _interopRequireDefault = __webpack_require__(0);
13533
13534 var _Object$defineProperty = __webpack_require__(1);
13535
13536 _Object$defineProperty(exports, "__esModule", {
13537 value: true
13538 });
13539
13540 exports.default = void 0;
13541
13542 var _values = _interopRequireDefault(__webpack_require__(55));
13543
13544 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13545
13546 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13547
13548 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13549
13550 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13551
13552 var _category = _interopRequireDefault(__webpack_require__(680));
13553
13554 var _dynamicCategory = _interopRequireDefault(__webpack_require__(726));
13555
13556 var _default = /*#__PURE__*/function (_Marionette$Composite) {
13557 (0, _inherits2.default)(_default, _Marionette$Composite);
13558
13559 var _super = (0, _createSuper2.default)(_default);
13560
13561 function _default() {
13562 (0, _classCallCheck2.default)(this, _default);
13563 return _super.apply(this, arguments);
13564 }
13565
13566 (0, _createClass2.default)(_default, [{
13567 key: "id",
13568 value: function id() {
13569 return 'elementor-finder__results-container';
13570 }
13571 }, {
13572 key: "ui",
13573 value: function ui() {
13574 return {
13575 noResults: '#elementor-finder__no-results',
13576 categoryItem: '.elementor-finder__results__item'
13577 };
13578 }
13579 }, {
13580 key: "events",
13581 value: function events() {
13582 return {
13583 'mouseenter @ui.categoryItem': 'onCategoryItemMouseEnter'
13584 };
13585 }
13586 }, {
13587 key: "getTemplate",
13588 value: function getTemplate() {
13589 return '#tmpl-elementor-finder-results-container';
13590 }
13591 }, {
13592 key: "getChildView",
13593 value: function getChildView(childModel) {
13594 return childModel.get('dynamic') ? _dynamicCategory.default : _category.default;
13595 }
13596 }, {
13597 key: "initialize",
13598 value: function initialize() {
13599 this.$activeItem = null;
13600 this.childViewContainer = '#elementor-finder__results';
13601 this.collection = new Backbone.Collection((0, _values.default)(elementorCommon.finder.getSettings('data')));
13602 }
13603 }, {
13604 key: "activateItem",
13605 value: function activateItem($item) {
13606 if (this.$activeItem) {
13607 this.$activeItem.removeClass('elementor-active');
13608 }
13609
13610 $item.addClass('elementor-active');
13611 this.$activeItem = $item;
13612 }
13613 }, {
13614 key: "activateNextItem",
13615 value: function activateNextItem(reverse) {
13616 var $allItems = jQuery(this.ui.categoryItem.selector);
13617 var nextItemIndex = 0;
13618
13619 if (this.$activeItem) {
13620 nextItemIndex = $allItems.index(this.$activeItem) + (reverse ? -1 : 1);
13621
13622 if (nextItemIndex >= $allItems.length) {
13623 nextItemIndex = 0;
13624 } else if (nextItemIndex < 0) {
13625 nextItemIndex = $allItems.length - 1;
13626 }
13627 }
13628
13629 var $nextItem = $allItems.eq(nextItemIndex);
13630 this.activateItem($nextItem);
13631 $nextItem[0].scrollIntoView({
13632 block: 'nearest'
13633 });
13634 }
13635 }, {
13636 key: "goToActiveItem",
13637 value: function goToActiveItem(event) {
13638 var $a = this.$activeItem.children('a'),
13639 isControlClicked = $e.shortcuts.isControlEvent(event);
13640
13641 if (isControlClicked) {
13642 $a.attr('target', '_blank');
13643 }
13644
13645 $a[0].click();
13646
13647 if (isControlClicked) {
13648 $a.removeAttr('target');
13649 }
13650 }
13651 }, {
13652 key: "onCategoryItemMouseEnter",
13653 value: function onCategoryItemMouseEnter(event) {
13654 this.activateItem(jQuery(event.currentTarget));
13655 }
13656 }, {
13657 key: "onChildviewToggleVisibility",
13658 value: function onChildviewToggleVisibility() {
13659 var allCategoriesAreEmpty = this.children.every(function (child) {
13660 return !child.isVisible;
13661 });
13662 this.ui.noResults.toggle(allCategoriesAreEmpty);
13663 }
13664 }]);
13665 return _default;
13666 }(Marionette.CompositeView);
13667
13668 exports.default = _default;
13669
13670 /***/ }),
13671 /* 724 */
13672 /***/ (function(module, exports, __webpack_require__) {
13673
13674 "use strict";
13675
13676
13677 var _interopRequireDefault = __webpack_require__(0);
13678
13679 var _Object$defineProperty = __webpack_require__(1);
13680
13681 _Object$defineProperty(exports, "__esModule", {
13682 value: true
13683 });
13684
13685 exports.default = void 0;
13686
13687 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13688
13689 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13690
13691 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13692
13693 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13694
13695 var _default = /*#__PURE__*/function (_Marionette$ItemView) {
13696 (0, _inherits2.default)(_default, _Marionette$ItemView);
13697
13698 var _super = (0, _createSuper2.default)(_default);
13699
13700 function _default() {
13701 (0, _classCallCheck2.default)(this, _default);
13702 return _super.apply(this, arguments);
13703 }
13704
13705 (0, _createClass2.default)(_default, [{
13706 key: "className",
13707 value: function className() {
13708 return 'elementor-finder__results__item';
13709 }
13710 }, {
13711 key: "getTemplate",
13712 value: function getTemplate() {
13713 return '#tmpl-elementor-finder__results__item';
13714 }
13715 }]);
13716 return _default;
13717 }(Marionette.ItemView);
13718
13719 exports.default = _default;
13720
13721 /***/ }),
13722 /* 725 */
13723 /***/ (function(module, exports, __webpack_require__) {
13724
13725 "use strict";
13726
13727
13728 var _interopRequireDefault = __webpack_require__(0);
13729
13730 var _Object$defineProperty = __webpack_require__(1);
13731
13732 _Object$defineProperty(exports, "__esModule", {
13733 value: true
13734 });
13735
13736 exports.default = void 0;
13737
13738 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13739
13740 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13741
13742 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13743
13744 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13745
13746 var _default = /*#__PURE__*/function (_Backbone$Model) {
13747 (0, _inherits2.default)(_default, _Backbone$Model);
13748
13749 var _super = (0, _createSuper2.default)(_default);
13750
13751 function _default() {
13752 (0, _classCallCheck2.default)(this, _default);
13753 return _super.apply(this, arguments);
13754 }
13755
13756 (0, _createClass2.default)(_default, [{
13757 key: "defaults",
13758 value: function defaults() {
13759 return {
13760 description: '',
13761 icon: 'settings',
13762 url: '',
13763 keywords: [],
13764 actions: []
13765 };
13766 }
13767 }]);
13768 return _default;
13769 }(Backbone.Model);
13770
13771 exports.default = _default;
13772
13773 /***/ }),
13774 /* 726 */
13775 /***/ (function(module, exports, __webpack_require__) {
13776
13777 "use strict";
13778
13779
13780 var _interopRequireDefault = __webpack_require__(0);
13781
13782 var _Object$defineProperty = __webpack_require__(1);
13783
13784 _Object$defineProperty(exports, "__esModule", {
13785 value: true
13786 });
13787
13788 exports.default = void 0;
13789
13790 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13791
13792 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13793
13794 var _get2 = _interopRequireDefault(__webpack_require__(26));
13795
13796 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
13797
13798 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13799
13800 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13801
13802 var _category = _interopRequireDefault(__webpack_require__(680));
13803
13804 var _default = /*#__PURE__*/function (_Category) {
13805 (0, _inherits2.default)(_default, _Category);
13806
13807 var _super = (0, _createSuper2.default)(_default);
13808
13809 function _default() {
13810 (0, _classCallCheck2.default)(this, _default);
13811 return _super.apply(this, arguments);
13812 }
13813
13814 (0, _createClass2.default)(_default, [{
13815 key: "className",
13816 value: function className() {
13817 return (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "className", this).call(this) + ' elementor-finder__results__category--dynamic';
13818 }
13819 }, {
13820 key: "ui",
13821 value: function ui() {
13822 return {
13823 title: '.elementor-finder__results__category__title'
13824 };
13825 }
13826 }, {
13827 key: "fetchData",
13828 value: function fetchData() {
13829 var _this = this;
13830
13831 this.ui.loadingIcon.show();
13832 elementorCommon.ajax.addRequest('finder_get_category_items', {
13833 data: {
13834 category: this.model.get('name'),
13835 filter: this.getTextFilter()
13836 },
13837 success: function success(data) {
13838 if (_this.isDestroyed) {
13839 return;
13840 }
13841
13842 _this.collection.set(data);
13843
13844 _this.toggleElement();
13845
13846 _this.ui.loadingIcon.hide();
13847 }
13848 });
13849 }
13850 }, {
13851 key: "filter",
13852 value: function filter() {
13853 return true;
13854 }
13855 }, {
13856 key: "onFilterChange",
13857 value: function onFilterChange() {
13858 this.fetchData();
13859 }
13860 }, {
13861 key: "onRender",
13862 value: function onRender() {
13863 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onRender", this).call(this);
13864 this.ui.loadingIcon = jQuery('<i>', {
13865 class: 'eicon-loading eicon-animation-spin'
13866 });
13867 this.ui.title.after(this.ui.loadingIcon);
13868 this.fetchData();
13869 }
13870 }]);
13871 return _default;
13872 }(_category.default);
13873
13874 exports.default = _default;
13875
13876 /***/ }),
13877 /* 727 */
13878 /***/ (function(module, exports, __webpack_require__) {
13879
13880 "use strict";
13881
13882
13883 var _Object$defineProperty = __webpack_require__(1);
13884
13885 _Object$defineProperty(exports, "__esModule", {
13886 value: true
13887 });
13888
13889 _Object$defineProperty(exports, "NavigateDown", {
13890 enumerable: true,
13891 get: function get() {
13892 return _navigateDown.NavigateDown;
13893 }
13894 });
13895
13896 _Object$defineProperty(exports, "NavigateSelect", {
13897 enumerable: true,
13898 get: function get() {
13899 return _navigateSelect.NavigateSelect;
13900 }
13901 });
13902
13903 _Object$defineProperty(exports, "NavigateUp", {
13904 enumerable: true,
13905 get: function get() {
13906 return _navigateUp.NavigateUp;
13907 }
13908 });
13909
13910 var _navigateDown = __webpack_require__(728);
13911
13912 var _navigateSelect = __webpack_require__(729);
13913
13914 var _navigateUp = __webpack_require__(730);
13915
13916 /***/ }),
13917 /* 728 */
13918 /***/ (function(module, exports, __webpack_require__) {
13919
13920 "use strict";
13921
13922
13923 var _interopRequireDefault = __webpack_require__(0);
13924
13925 var _Object$defineProperty = __webpack_require__(1);
13926
13927 _Object$defineProperty(exports, "__esModule", {
13928 value: true
13929 });
13930
13931 exports.default = exports.NavigateDown = void 0;
13932
13933 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13934
13935 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13936
13937 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13938
13939 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13940
13941 var _commandBase = _interopRequireDefault(__webpack_require__(21));
13942
13943 var NavigateDown = /*#__PURE__*/function (_CommandBase) {
13944 (0, _inherits2.default)(NavigateDown, _CommandBase);
13945
13946 var _super = (0, _createSuper2.default)(NavigateDown);
13947
13948 function NavigateDown() {
13949 (0, _classCallCheck2.default)(this, NavigateDown);
13950 return _super.apply(this, arguments);
13951 }
13952
13953 (0, _createClass2.default)(NavigateDown, [{
13954 key: "apply",
13955 value: function apply() {
13956 this.component.getItemsView().activateNextItem();
13957 }
13958 }]);
13959 return NavigateDown;
13960 }(_commandBase.default);
13961
13962 exports.NavigateDown = NavigateDown;
13963 var _default = NavigateDown;
13964 exports.default = _default;
13965
13966 /***/ }),
13967 /* 729 */
13968 /***/ (function(module, exports, __webpack_require__) {
13969
13970 "use strict";
13971
13972
13973 var _interopRequireDefault = __webpack_require__(0);
13974
13975 var _Object$defineProperty = __webpack_require__(1);
13976
13977 _Object$defineProperty(exports, "__esModule", {
13978 value: true
13979 });
13980
13981 exports.default = exports.NavigateSelect = void 0;
13982
13983 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
13984
13985 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
13986
13987 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
13988
13989 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
13990
13991 var _commandBase = _interopRequireDefault(__webpack_require__(21));
13992
13993 var NavigateSelect = /*#__PURE__*/function (_CommandBase) {
13994 (0, _inherits2.default)(NavigateSelect, _CommandBase);
13995
13996 var _super = (0, _createSuper2.default)(NavigateSelect);
13997
13998 function NavigateSelect() {
13999 (0, _classCallCheck2.default)(this, NavigateSelect);
14000 return _super.apply(this, arguments);
14001 }
14002
14003 (0, _createClass2.default)(NavigateSelect, [{
14004 key: "apply",
14005 value: function apply(args) {
14006 this.component.getItemsView().goToActiveItem(args);
14007 }
14008 }]);
14009 return NavigateSelect;
14010 }(_commandBase.default);
14011
14012 exports.NavigateSelect = NavigateSelect;
14013 var _default = NavigateSelect;
14014 exports.default = _default;
14015
14016 /***/ }),
14017 /* 730 */
14018 /***/ (function(module, exports, __webpack_require__) {
14019
14020 "use strict";
14021
14022
14023 var _interopRequireDefault = __webpack_require__(0);
14024
14025 var _Object$defineProperty = __webpack_require__(1);
14026
14027 _Object$defineProperty(exports, "__esModule", {
14028 value: true
14029 });
14030
14031 exports.default = exports.NavigateUp = void 0;
14032
14033 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14034
14035 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14036
14037 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14038
14039 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14040
14041 var _commandBase = _interopRequireDefault(__webpack_require__(21));
14042
14043 var NavigateUp = /*#__PURE__*/function (_CommandBase) {
14044 (0, _inherits2.default)(NavigateUp, _CommandBase);
14045
14046 var _super = (0, _createSuper2.default)(NavigateUp);
14047
14048 function NavigateUp() {
14049 (0, _classCallCheck2.default)(this, NavigateUp);
14050 return _super.apply(this, arguments);
14051 }
14052
14053 (0, _createClass2.default)(NavigateUp, [{
14054 key: "apply",
14055 value: function apply() {
14056 this.component.getItemsView().activateNextItem(true);
14057 }
14058 }]);
14059 return NavigateUp;
14060 }(_commandBase.default);
14061
14062 exports.NavigateUp = NavigateUp;
14063 var _default = NavigateUp;
14064 exports.default = _default;
14065
14066 /***/ }),
14067 /* 731 */
14068 /***/ (function(module, exports, __webpack_require__) {
14069
14070 "use strict";
14071
14072
14073 var _interopRequireDefault = __webpack_require__(0);
14074
14075 var _Object$defineProperty = __webpack_require__(1);
14076
14077 _Object$defineProperty(exports, "__esModule", {
14078 value: true
14079 });
14080
14081 exports.default = void 0;
14082
14083 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14084
14085 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14086
14087 var _get2 = _interopRequireDefault(__webpack_require__(26));
14088
14089 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14090
14091 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14092
14093 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14094
14095 var _default = /*#__PURE__*/function (_elementorModules$Vie) {
14096 (0, _inherits2.default)(_default, _elementorModules$Vie);
14097
14098 var _super = (0, _createSuper2.default)(_default);
14099
14100 function _default() {
14101 (0, _classCallCheck2.default)(this, _default);
14102 return _super.apply(this, arguments);
14103 }
14104
14105 (0, _createClass2.default)(_default, [{
14106 key: "addPopupPlugin",
14107 value: function addPopupPlugin() {
14108 var counter = 0;
14109
14110 jQuery.fn.elementorConnect = function (options) {
14111 var settings = jQuery.extend({
14112 // These are the defaults.
14113 success: function success() {
14114 return location.reload();
14115 },
14116 error: function error() {
14117 elementor.notifications.showToast({
14118 message: elementor.translate('connect_error')
14119 });
14120 }
14121 }, options);
14122 this.each(function () {
14123 counter++;
14124 var $this = jQuery(this),
14125 callbackId = 'cb' + counter;
14126 $this.attr({
14127 target: '_blank',
14128 href: $this.attr('href') + '&mode=popup&callback_id=' + callbackId
14129 });
14130 elementorCommon.elements.$window.on('elementor/connect/success/' + callbackId, settings.success).on('elementor/connect/error/' + callbackId, settings.error);
14131 });
14132 return this;
14133 };
14134 }
14135 }, {
14136 key: "getDefaultSettings",
14137 value: function getDefaultSettings() {
14138 return {
14139 selectors: {
14140 connectButton: '#elementor-template-library-connect__button'
14141 }
14142 };
14143 }
14144 }, {
14145 key: "getDefaultElements",
14146 value: function getDefaultElements() {
14147 return {
14148 $connectButton: jQuery(this.getSettings('selectors.connectButton'))
14149 };
14150 }
14151 }, {
14152 key: "applyPopup",
14153 value: function applyPopup() {
14154 this.elements.$connectButton.elementorConnect();
14155 }
14156 }, {
14157 key: "onInit",
14158 value: function onInit() {
14159 (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
14160 this.addPopupPlugin();
14161 this.applyPopup();
14162 }
14163 }]);
14164 return _default;
14165 }(elementorModules.ViewModule);
14166
14167 exports.default = _default;
14168
14169 /***/ }),
14170 /* 732 */
14171 /***/ (function(module, exports, __webpack_require__) {
14172
14173 "use strict";
14174
14175
14176 var _interopRequireWildcard = __webpack_require__(36);
14177
14178 var _interopRequireDefault = __webpack_require__(0);
14179
14180 var _Object$defineProperty = __webpack_require__(1);
14181
14182 _Object$defineProperty(exports, "__esModule", {
14183 value: true
14184 });
14185
14186 exports.default = void 0;
14187
14188 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14189
14190 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14191
14192 var _backwardsCompatibility = _interopRequireDefault(__webpack_require__(733));
14193
14194 var _commandBase = _interopRequireDefault(__webpack_require__(21));
14195
14196 var _commandInternalBase = _interopRequireDefault(__webpack_require__(203));
14197
14198 var _commandData = _interopRequireDefault(__webpack_require__(313));
14199
14200 var _commands = _interopRequireDefault(__webpack_require__(341));
14201
14202 var _commandsInternal = _interopRequireDefault(__webpack_require__(734));
14203
14204 var _componentBase = _interopRequireDefault(__webpack_require__(85));
14205
14206 var _componentModalBase = _interopRequireDefault(__webpack_require__(287));
14207
14208 var _components = _interopRequireDefault(__webpack_require__(735));
14209
14210 var _data = _interopRequireDefault(__webpack_require__(632));
14211
14212 var _hookBreak = _interopRequireDefault(__webpack_require__(637));
14213
14214 var _hooks = _interopRequireDefault(__webpack_require__(736));
14215
14216 var _routes = _interopRequireDefault(__webpack_require__(739));
14217
14218 var _shortcuts = _interopRequireDefault(__webpack_require__(740));
14219
14220 var hookData = _interopRequireWildcard(__webpack_require__(741));
14221
14222 var hookUI = _interopRequireWildcard(__webpack_require__(743));
14223
14224 /* Alphabetical order */
14225 var API = /*#__PURE__*/function () {
14226 /**
14227 * Function constructor().
14228 *
14229 * Create's 'elementor' api.
14230 */
14231 function API() {
14232 (0, _classCallCheck2.default)(this, API);
14233 window.$e = this;
14234 this.components = new _components.default();
14235 this.commands = new _commands.default();
14236 this.commandsInternal = new _commandsInternal.default();
14237 this.hooks = new _hooks.default();
14238 this.routes = new _routes.default();
14239 this.shortcuts = new _shortcuts.default(jQuery(window));
14240 this.data = new _data.default();
14241 this.modules = {
14242 CommandBase: _commandBase.default,
14243 CommandInternalBase: _commandInternalBase.default,
14244 CommandData: _commandData.default,
14245 ComponentBase: _componentBase.default,
14246 ComponentModalBase: _componentModalBase.default,
14247 HookBreak: _hookBreak.default,
14248 hookData: hookData,
14249 hookUI: hookUI
14250 }; // Backwards compatibility should be last, in order to handle others.
14251
14252 this.bc = new _backwardsCompatibility.default();
14253 }
14254 /**
14255 * Function run().
14256 *
14257 * Alias of `$e.commands.run()`.
14258 *
14259 * @param {string} command
14260 * @param [args={}]
14261 *
14262 * @returns {*}
14263 */
14264
14265
14266 (0, _createClass2.default)(API, [{
14267 key: "run",
14268 value: function run(command) {
14269 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14270 return $e.commands.run(command, args);
14271 }
14272 /**
14273 * Function internal().
14274 *
14275 * Alias of `$e.commandsInternal.run()`.
14276 *
14277 * @param {string} command
14278 * @param [args={}]
14279 *
14280 * @returns {boolean}
14281 */
14282
14283 }, {
14284 key: "internal",
14285 value: function internal(command) {
14286 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14287 return $e.commandsInternal.run(command, args);
14288 }
14289 /**
14290 * Function route().
14291 *
14292 * Alias of `$e.routes.to()`.
14293 *
14294 * @param {string} route
14295 * @param [args={}]
14296 */
14297
14298 }, {
14299 key: "route",
14300 value: function route(_route) {
14301 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14302 return $e.routes.to(_route, args);
14303 } // TODO: shortcut();
14304
14305 }]);
14306 return API;
14307 }();
14308
14309 exports.default = API;
14310
14311 /***/ }),
14312 /* 733 */
14313 /***/ (function(module, exports, __webpack_require__) {
14314
14315 "use strict";
14316
14317
14318 var _interopRequireDefault = __webpack_require__(0);
14319
14320 var _Object$defineProperty = __webpack_require__(1);
14321
14322 _Object$defineProperty(exports, "__esModule", {
14323 value: true
14324 });
14325
14326 exports.default = void 0;
14327
14328 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14329
14330 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14331
14332 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14333
14334 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14335
14336 var _componentBase = _interopRequireDefault(__webpack_require__(85));
14337
14338 var BackwardsCompatibility = /*#__PURE__*/function () {
14339 function BackwardsCompatibility() {
14340 (0, _classCallCheck2.default)(this, BackwardsCompatibility);
14341 }
14342
14343 (0, _createClass2.default)(BackwardsCompatibility, [{
14344 key: "ensureTab",
14345 value: function ensureTab(namespace, tabSlug) {
14346 var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
14347 var component = $e.components.get(namespace);
14348
14349 if (!component) {
14350 var Component = /*#__PURE__*/function (_ComponentBase) {
14351 (0, _inherits2.default)(Component, _ComponentBase);
14352
14353 var _super = (0, _createSuper2.default)(Component);
14354
14355 function Component() {
14356 (0, _classCallCheck2.default)(this, Component);
14357 return _super.apply(this, arguments);
14358 }
14359
14360 (0, _createClass2.default)(Component, [{
14361 key: "getNamespace",
14362 value: function getNamespace() {
14363 return namespace;
14364 }
14365 }, {
14366 key: "renderTab",
14367 value: function renderTab(tab) {
14368 elementor.getPanelView().setPage(page).activateTab(tab);
14369 }
14370 }]);
14371 return Component;
14372 }(_componentBase.default);
14373
14374 component = $e.components.register(new Component());
14375 }
14376
14377 if (!component.hasTab(tabSlug) && elementor.config.tabs[tabSlug]) {
14378 component.addTab(tabSlug, {
14379 title: elementor.config.tabs[tabSlug]
14380 });
14381 }
14382 }
14383 }]);
14384 return BackwardsCompatibility;
14385 }();
14386
14387 exports.default = BackwardsCompatibility;
14388
14389 /***/ }),
14390 /* 734 */
14391 /***/ (function(module, exports, __webpack_require__) {
14392
14393 "use strict";
14394
14395
14396 var _interopRequireDefault = __webpack_require__(0);
14397
14398 var _Object$defineProperty = __webpack_require__(1);
14399
14400 _Object$defineProperty(exports, "__esModule", {
14401 value: true
14402 });
14403
14404 exports.default = void 0;
14405
14406 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14407
14408 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14409
14410 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14411
14412 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14413
14414 var _commands = _interopRequireDefault(__webpack_require__(341));
14415
14416 var CommandsInternal = /*#__PURE__*/function (_Commands) {
14417 (0, _inherits2.default)(CommandsInternal, _Commands);
14418
14419 var _super = (0, _createSuper2.default)(CommandsInternal);
14420
14421 function CommandsInternal() {
14422 (0, _classCallCheck2.default)(this, CommandsInternal);
14423 return _super.apply(this, arguments);
14424 }
14425
14426 (0, _createClass2.default)(CommandsInternal, [{
14427 key: "error",
14428 value: function error(message) {
14429 throw Error('Commands internal: ' + message);
14430 }
14431 }]);
14432 return CommandsInternal;
14433 }(_commands.default);
14434
14435 exports.default = CommandsInternal;
14436
14437 /***/ }),
14438 /* 735 */
14439 /***/ (function(module, exports, __webpack_require__) {
14440
14441 "use strict";
14442
14443
14444 var _interopRequireDefault = __webpack_require__(0);
14445
14446 var _Object$defineProperty = __webpack_require__(1);
14447
14448 _Object$defineProperty(exports, "__esModule", {
14449 value: true
14450 });
14451
14452 exports.default = void 0;
14453
14454 var _keys = _interopRequireDefault(__webpack_require__(23));
14455
14456 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14457
14458 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14459
14460 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14461
14462 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14463
14464 var _default = /*#__PURE__*/function (_elementorModules$Mod) {
14465 (0, _inherits2.default)(_default, _elementorModules$Mod);
14466
14467 var _super = (0, _createSuper2.default)(_default);
14468
14469 function _default() {
14470 var _this;
14471
14472 (0, _classCallCheck2.default)(this, _default);
14473
14474 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14475 args[_key] = arguments[_key];
14476 }
14477
14478 _this = _super.call.apply(_super, [this].concat(args));
14479 _this.components = {};
14480 _this.activeComponents = {};
14481 return _this;
14482 }
14483
14484 (0, _createClass2.default)(_default, [{
14485 key: "getAll",
14486 value: function getAll() {
14487 return (0, _keys.default)(this.components).sort();
14488 }
14489 }, {
14490 key: "register",
14491 value: function register(component) {
14492 if (this.components[component.getNamespace()]) {
14493 return;
14494 }
14495
14496 component.registerAPI();
14497 this.components[component.getNamespace()] = component;
14498 return component;
14499 }
14500 /**
14501 * @returns {Component}
14502 */
14503
14504 }, {
14505 key: "get",
14506 value: function get(id) {
14507 return this.components[id];
14508 }
14509 }, {
14510 key: "getActive",
14511 value: function getActive() {
14512 return this.activeComponents;
14513 }
14514 }, {
14515 key: "activate",
14516 value: function activate(namespace) {
14517 // Add as last.
14518 this.inactivate(namespace);
14519 this.activeComponents[namespace] = true;
14520 }
14521 }, {
14522 key: "inactivate",
14523 value: function inactivate(namespace) {
14524 delete this.activeComponents[namespace];
14525 }
14526 }, {
14527 key: "isActive",
14528 value: function isActive(namespace) {
14529 return !!this.activeComponents[namespace];
14530 }
14531 }]);
14532 return _default;
14533 }(elementorModules.Module);
14534
14535 exports.default = _default;
14536
14537 /***/ }),
14538 /* 736 */
14539 /***/ (function(module, exports, __webpack_require__) {
14540
14541 "use strict";
14542
14543
14544 var _interopRequireDefault = __webpack_require__(0);
14545
14546 var _Object$defineProperty = __webpack_require__(1);
14547
14548 _Object$defineProperty(exports, "__esModule", {
14549 value: true
14550 });
14551
14552 exports.default = void 0;
14553
14554 __webpack_require__(25);
14555
14556 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14557
14558 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14559
14560 var _defineProperty2 = _interopRequireDefault(__webpack_require__(28));
14561
14562 var _data = _interopRequireDefault(__webpack_require__(737));
14563
14564 var _ui = _interopRequireDefault(__webpack_require__(738));
14565
14566 var Hooks = /*#__PURE__*/function () {
14567 function Hooks() {
14568 (0, _classCallCheck2.default)(this, Hooks);
14569 (0, _defineProperty2.default)(this, "data", new _data.default());
14570 (0, _defineProperty2.default)(this, "ui", new _ui.default());
14571 }
14572
14573 (0, _createClass2.default)(Hooks, [{
14574 key: "activate",
14575
14576 /**
14577 * Function activate().
14578 *
14579 * Activate all hooks.
14580 */
14581 value: function activate() {
14582 this.getTypes().forEach(function (hooksType) {
14583 hooksType.activate();
14584 });
14585 }
14586 /**
14587 * Function deactivate().
14588 *
14589 * Deactivate all hooks.
14590 */
14591
14592 }, {
14593 key: "deactivate",
14594 value: function deactivate() {
14595 this.getTypes().forEach(function (hooksType) {
14596 hooksType.deactivate();
14597 });
14598 }
14599 }, {
14600 key: "getAll",
14601 value: function getAll() {
14602 var flat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
14603 var result = {};
14604 this.getTypes().forEach(function (hooksType) {
14605 result[hooksType.getType()] = hooksType.getAll(flat);
14606 });
14607 return result;
14608 }
14609 }, {
14610 key: "getTypes",
14611 value: function getTypes() {
14612 return [this.data, this.ui];
14613 }
14614 }, {
14615 key: "getType",
14616 value: function getType(type) {
14617 return this.getTypes().find(function (hooks) {
14618 return type === hooks.getType();
14619 });
14620 }
14621 /**
14622 * Function register().
14623 *
14624 * Register hook.
14625 *
14626 * @param {string} type
14627 * @param {string} event
14628 * @param {HookBase} instance
14629 *
14630 * @returns {{}} Created callback
14631 */
14632
14633 }, {
14634 key: "register",
14635 value: function register(type, event, instance) {
14636 return this.getType(type).register(event, instance);
14637 }
14638 /**
14639 * Function run().
14640 *
14641 * Run's a hook.
14642 *
14643 * @param {string} type
14644 * @param {string} event
14645 * @param {string} command
14646 * @param {{}} args
14647 * @param {*} result
14648 *
14649 * @returns {boolean}
14650 */
14651
14652 }, {
14653 key: "run",
14654 value: function run(type, event, command, args) {
14655 var result = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
14656 return this.getType(type).run(event, command, args, result);
14657 }
14658 /**
14659 * Function registerDataAfter().
14660 *
14661 * Register data hook that's run after the command.
14662 *
14663 * @param {HookBase} instance
14664 *
14665 * @returns {{}}
14666 */
14667
14668 }, {
14669 key: "registerDataAfter",
14670 value: function registerDataAfter(instance) {
14671 return this.register('data', 'after', instance);
14672 }
14673 /**
14674 * Function registerDataCatch().
14675 *
14676 * Register data hook that's run when the command fails.
14677 *
14678 * @param {HookBase} instance
14679 *
14680 * @returns {{}}
14681 */
14682
14683 }, {
14684 key: "registerDataCatch",
14685 value: function registerDataCatch(instance) {
14686 return this.register('data', 'catch', instance);
14687 }
14688 /**
14689 * Function registerDataDependency().
14690 *
14691 * Register data hook that's run before the command as dependency.
14692 *
14693 * @param {HookBase} instance
14694 *
14695 * @returns {{}}
14696 */
14697
14698 }, {
14699 key: "registerDataDependency",
14700 value: function registerDataDependency(instance) {
14701 return this.register('data', 'dependency', instance);
14702 }
14703 /**
14704 * Function registerUIAfter().
14705 *
14706 * Register UI hook that's run after the commands run.
14707 *
14708 * @param {HookBase} instance
14709 *
14710 * @returns {{}}
14711 */
14712
14713 }, {
14714 key: "registerUIAfter",
14715 value: function registerUIAfter(instance) {
14716 return this.register('ui', 'after', instance);
14717 }
14718 /**
14719 * Function registerUICatch().
14720 *
14721 * Register UI hook that's run when the command fails.
14722 *
14723 * @param {HookBase} instance
14724 *
14725 * @returns {{}}
14726 */
14727
14728 }, {
14729 key: "registerUICatch",
14730 value: function registerUICatch(instance) {
14731 return this.register('ui', 'catch', instance);
14732 }
14733 /**
14734 * Function registerUIBefore().
14735 *
14736 * Register UI hook that's run before the command.
14737 *
14738 * @param {HookBase} instance
14739 *
14740 * @returns {{}}
14741 */
14742
14743 }, {
14744 key: "registerUIBefore",
14745 value: function registerUIBefore(instance) {
14746 return this.register('ui', 'before', instance);
14747 }
14748 /**
14749 * Function runDataAfter().
14750 *
14751 * Run data hook that's run after the command.
14752 *
14753 * @param {string} command
14754 * @param {{}} args
14755 * @param {*} result
14756 *
14757 * @returns {boolean}
14758 */
14759
14760 }, {
14761 key: "runDataAfter",
14762 value: function runDataAfter(command, args, result) {
14763 return this.run('data', 'after', command, args, result);
14764 }
14765 /**
14766 * Function runDataCatch().
14767 *
14768 * Run data hook that's run when the command fails.
14769 *
14770 * @param {string} command
14771 * @param {{}} args
14772 * @param {*} error
14773 *
14774 * @returns {boolean}
14775 */
14776
14777 }, {
14778 key: "runDataCatch",
14779 value: function runDataCatch(command, args, error) {
14780 return this.run('data', 'catch', command, args, error);
14781 }
14782 /**
14783 * Function runDataDependency().
14784 *
14785 * Run data hook that's run before the command as dependency.
14786 *
14787 * @param {string} command
14788 * @param {{}} args
14789 *
14790 * @returns {boolean}
14791 */
14792
14793 }, {
14794 key: "runDataDependency",
14795 value: function runDataDependency(command, args) {
14796 return this.run('data', 'dependency', command, args);
14797 }
14798 /**
14799 * Function runUIAfter().
14800 *
14801 * Run UI hook that's run after the commands run.
14802 *
14803 * @param {string} command
14804 * @param {{}} args
14805 * @param {*} result
14806 *
14807 * @returns {boolean}
14808 */
14809
14810 }, {
14811 key: "runUIAfter",
14812 value: function runUIAfter(command, args, result) {
14813 return this.run('ui', 'after', command, args, result);
14814 }
14815 /**
14816 * Function runUICatch().
14817 *
14818 * Run UI hook that's run when the command fails.
14819 *
14820 * @param {string} command
14821 * @param {{}} args
14822 * @param {*} e
14823 *
14824 * @returns {boolean}
14825 */
14826
14827 }, {
14828 key: "runUICatch",
14829 value: function runUICatch(command, args, e) {
14830 return this.run('ui', 'catch', command, args, e);
14831 }
14832 /**
14833 * Function runUIBefore().
14834 *
14835 * Run UI hook that's run before the command.
14836 *
14837 * @param {string} command
14838 * @param {{}} args
14839 *
14840 * @returns {boolean}
14841 */
14842
14843 }, {
14844 key: "runUIBefore",
14845 value: function runUIBefore(command, args) {
14846 return this.run('ui', 'before', command, args);
14847 }
14848 }]);
14849 return Hooks;
14850 }();
14851
14852 exports.default = Hooks;
14853
14854 /***/ }),
14855 /* 737 */
14856 /***/ (function(module, exports, __webpack_require__) {
14857
14858 "use strict";
14859
14860
14861 var _interopRequireDefault = __webpack_require__(0);
14862
14863 var _Object$defineProperty = __webpack_require__(1);
14864
14865 _Object$defineProperty(exports, "__esModule", {
14866 value: true
14867 });
14868
14869 exports.default = void 0;
14870
14871 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14872
14873 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14874
14875 var _get2 = _interopRequireDefault(__webpack_require__(26));
14876
14877 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
14878
14879 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14880
14881 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14882
14883 var _base = _interopRequireDefault(__webpack_require__(412));
14884
14885 var Data = /*#__PURE__*/function (_HooksBase) {
14886 (0, _inherits2.default)(Data, _HooksBase);
14887
14888 var _super = (0, _createSuper2.default)(Data);
14889
14890 function Data() {
14891 var _this;
14892
14893 (0, _classCallCheck2.default)(this, Data);
14894
14895 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14896 args[_key] = arguments[_key];
14897 }
14898
14899 _this = _super.call.apply(_super, [this].concat(args));
14900 _this.callbacks.dependency = {};
14901 _this.depth.dependency = {};
14902 return _this;
14903 }
14904
14905 (0, _createClass2.default)(Data, [{
14906 key: "getType",
14907 value: function getType() {
14908 return 'data';
14909 }
14910 }, {
14911 key: "runCallback",
14912 value: function runCallback(event, callback, args, result) {
14913 switch (event) {
14914 case 'dependency':
14915 {
14916 // If callback returns false and its dependency, then 'Hook-Break'.
14917 if (!callback.callback(args)) {
14918 this.depth[event][callback.id]--; // Throw custom break to be catch by the base for 'Safe' exit.
14919
14920 throw new $e.modules.HookBreak();
14921 }
14922
14923 return true;
14924 }
14925
14926 case 'catch':
14927 case 'after':
14928 {
14929 /**
14930 * When handling HOOK which is data after (not breakable),
14931 * even the result of the callback is negative, it is required to return positive,
14932 * since result of runCallback determine if the callback succeeded.
14933 */
14934 return callback.callback(args, result) || 'after' === event;
14935 }
14936 }
14937
14938 return false;
14939 }
14940 }, {
14941 key: "shouldRun",
14942 value: function shouldRun(callbacks) {
14943 return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "shouldRun", this).call(this, callbacks) && elementor.documents.getCurrent().history.getActive();
14944 }
14945 }, {
14946 key: "onRun",
14947 value: function onRun(command, args, event) {
14948 if (!$e.devTools) {
14949 return;
14950 }
14951
14952 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
14953 }
14954 }, {
14955 key: "onCallback",
14956 value: function onCallback(command, args, event, id) {
14957 if (!$e.devTools) {
14958 return;
14959 }
14960
14961 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
14962 }
14963 }]);
14964 return Data;
14965 }(_base.default);
14966
14967 exports.default = Data;
14968
14969 /***/ }),
14970 /* 738 */
14971 /***/ (function(module, exports, __webpack_require__) {
14972
14973 "use strict";
14974
14975
14976 var _interopRequireDefault = __webpack_require__(0);
14977
14978 var _Object$defineProperty = __webpack_require__(1);
14979
14980 _Object$defineProperty(exports, "__esModule", {
14981 value: true
14982 });
14983
14984 exports.default = void 0;
14985
14986 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
14987
14988 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
14989
14990 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
14991
14992 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
14993
14994 var _base = _interopRequireDefault(__webpack_require__(412));
14995
14996 var Ui = /*#__PURE__*/function (_HooksBase) {
14997 (0, _inherits2.default)(Ui, _HooksBase);
14998
14999 var _super = (0, _createSuper2.default)(Ui);
15000
15001 function Ui() {
15002 var _this;
15003
15004 (0, _classCallCheck2.default)(this, Ui);
15005
15006 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15007 args[_key] = arguments[_key];
15008 }
15009
15010 _this = _super.call.apply(_super, [this].concat(args));
15011 _this.callbacks.before = {};
15012 _this.depth.before = {};
15013 return _this;
15014 }
15015
15016 (0, _createClass2.default)(Ui, [{
15017 key: "getType",
15018 value: function getType() {
15019 return 'ui';
15020 }
15021 }, {
15022 key: "runCallback",
15023 value: function runCallback(event, callback, args, result) {
15024 switch (event) {
15025 case 'before':
15026 callback.callback(args);
15027 break;
15028
15029 case 'catch':
15030 case 'after':
15031 callback.callback(args, result);
15032 break;
15033
15034 default:
15035 return false;
15036 }
15037
15038 return true;
15039 }
15040 }, {
15041 key: "onRun",
15042 value: function onRun(command, args, event) {
15043 if (!$e.devTools) {
15044 return;
15045 }
15046
15047 $e.devTools.log.callbacks().run(this.getType(), command, args, event);
15048 }
15049 }, {
15050 key: "onCallback",
15051 value: function onCallback(command, args, event, id) {
15052 if (!$e.devTools) {
15053 return;
15054 }
15055
15056 $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id);
15057 }
15058 }]);
15059 return Ui;
15060 }(_base.default);
15061
15062 exports.default = Ui;
15063
15064 /***/ }),
15065 /* 739 */
15066 /***/ (function(module, exports, __webpack_require__) {
15067
15068 "use strict";
15069
15070
15071 var _interopRequireDefault = __webpack_require__(0);
15072
15073 var _Object$defineProperty = __webpack_require__(1);
15074
15075 _Object$defineProperty(exports, "__esModule", {
15076 value: true
15077 });
15078
15079 exports.default = void 0;
15080
15081 __webpack_require__(80);
15082
15083 var _keys = _interopRequireDefault(__webpack_require__(23));
15084
15085 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15086
15087 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15088
15089 var _get2 = _interopRequireDefault(__webpack_require__(26));
15090
15091 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16));
15092
15093 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15094
15095 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15096
15097 var _commands = _interopRequireDefault(__webpack_require__(341));
15098
15099 var Routes = /*#__PURE__*/function (_Commands) {
15100 (0, _inherits2.default)(Routes, _Commands);
15101
15102 var _super = (0, _createSuper2.default)(Routes);
15103
15104 function Routes() {
15105 var _this;
15106
15107 (0, _classCallCheck2.default)(this, Routes);
15108
15109 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15110 args[_key] = arguments[_key];
15111 }
15112
15113 _this = _super.call.apply(_super, [this].concat(args));
15114 _this.savedStates = {};
15115 _this.historyPerComponent = {};
15116 return _this;
15117 }
15118
15119 (0, _createClass2.default)(Routes, [{
15120 key: "refreshContainer",
15121 value: function refreshContainer(container) {
15122 var currentRoute = this.getCurrent(container),
15123 currentArgs = this.getCurrentArgs(container);
15124 this.clearCurrent(container);
15125 this.to(currentRoute, currentArgs);
15126 }
15127 }, {
15128 key: "getHistory",
15129 value: function getHistory() {
15130 var namespaceRoot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
15131
15132 if (namespaceRoot) {
15133 return this.historyPerComponent[namespaceRoot] || [];
15134 }
15135
15136 return this.historyPerComponent;
15137 }
15138 }, {
15139 key: "clearHistory",
15140 value: function clearHistory(namespaceRoot) {
15141 delete this.historyPerComponent[namespaceRoot];
15142 }
15143 }, {
15144 key: "clearCurrent",
15145 value: function clearCurrent(container) {
15146 var route = this.current[container];
15147
15148 if (!route) {
15149 return;
15150 }
15151
15152 delete this.current[container];
15153 delete this.currentArgs[container];
15154 this.getComponent(route).onCloseRoute(route);
15155 }
15156 }, {
15157 key: "clear",
15158 value: function clear() {
15159 var _this2 = this;
15160
15161 (0, _keys.default)(this.current).forEach(function (container) {
15162 return _this2.clearCurrent(container);
15163 });
15164 }
15165 }, {
15166 key: "saveState",
15167 value: function saveState(container) {
15168 this.savedStates[container] = {
15169 route: this.current[container],
15170 args: this.currentArgs[container]
15171 };
15172 return this;
15173 }
15174 }, {
15175 key: "restoreState",
15176 value: function restoreState(container) {
15177 if (!this.savedStates[container]) {
15178 return false;
15179 }
15180
15181 this.to(this.savedStates[container].route, this.savedStates[container].args);
15182 return true;
15183 }
15184 }, {
15185 key: "beforeRun",
15186 value: function beforeRun(route, args) {
15187 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "beforeRun", this).call(this, route, args)) {
15188 return false;
15189 }
15190
15191 if (this.is(route, args) && !args.refresh) {
15192 return false;
15193 }
15194
15195 var component = this.getComponent(route),
15196 container = component.getRootContainer(),
15197 oldRoute = this.current[container];
15198
15199 if (oldRoute) {
15200 this.getComponent(oldRoute).onCloseRoute(oldRoute);
15201 }
15202
15203 if (!component.isOpen || args.reOpen) {
15204 component.isOpen = component.open(args);
15205 }
15206
15207 return component.isOpen;
15208 }
15209 }, {
15210 key: "to",
15211 value: function to(route, args) {
15212 this.run(route, args);
15213 var namespaceRoot = this.getComponent(route).getRootContainer();
15214
15215 if (!this.historyPerComponent[namespaceRoot]) {
15216 this.historyPerComponent[namespaceRoot] = [];
15217 }
15218
15219 this.historyPerComponent[namespaceRoot].push({
15220 route: route,
15221 args: args
15222 });
15223 }
15224 }, {
15225 key: "back",
15226 value: function back(namespaceRoot) {
15227 var history = this.getHistory(namespaceRoot); // Remove current;
15228
15229 history.pop();
15230 var last = history.pop();
15231
15232 if (!last) {
15233 return;
15234 }
15235
15236 this.to(last.route, last.args);
15237 } // Don't use the event object.
15238
15239 }, {
15240 key: "runShortcut",
15241 value: function runShortcut(command) {
15242 this.to(command);
15243 } // Don't clear current route.
15244
15245 }, {
15246 key: "afterRun",
15247 value: function afterRun(route, args) {
15248 this.getComponent(route).onRoute(route, args);
15249 }
15250 }, {
15251 key: "is",
15252 value: function is(route) {
15253 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15254
15255 if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "is", this).call(this, route)) {
15256 return false;
15257 }
15258
15259 var container = this.getComponent(route).getRootContainer();
15260 return _.isEqual(args, this.currentArgs[container]);
15261 }
15262 }, {
15263 key: "isPartOf",
15264 value: function isPartOf(route) {
15265 /**
15266 * Check against current command hierarchically.
15267 * For example `is( 'panel' )` will be true for `panel/elements`
15268 * `is( 'panel/editor' )` will be true for `panel/editor/style`
15269 */
15270 var parts = route.split('/'),
15271 container = parts[0],
15272 toCheck = [],
15273 currentParts = this.current[container] ? this.current[container].split('/') : [];
15274 var match = false;
15275 currentParts.forEach(function (part) {
15276 toCheck.push(part);
15277
15278 if (toCheck.join('/') === route) {
15279 match = true;
15280 }
15281 });
15282 return match;
15283 }
15284 }, {
15285 key: "error",
15286 value: function error(message) {
15287 throw Error('Routes: ' + message);
15288 }
15289 }]);
15290 return Routes;
15291 }(_commands.default);
15292
15293 exports.default = Routes;
15294
15295 /***/ }),
15296 /* 740 */
15297 /***/ (function(module, exports, __webpack_require__) {
15298
15299 "use strict";
15300
15301
15302 var _interopRequireDefault = __webpack_require__(0);
15303
15304 var _Object$defineProperty = __webpack_require__(1);
15305
15306 _Object$defineProperty(exports, "__esModule", {
15307 value: true
15308 });
15309
15310 exports.default = void 0;
15311
15312 var _keys = _interopRequireDefault(__webpack_require__(23));
15313
15314 __webpack_require__(58);
15315
15316 __webpack_require__(80);
15317
15318 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15319
15320 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15321
15322 var _environment = _interopRequireDefault(__webpack_require__(272));
15323
15324 var Shortcuts = /*#__PURE__*/function () {
15325 function Shortcuts($window) {
15326 (0, _classCallCheck2.default)(this, Shortcuts);
15327 this.specialKeys = {
15328 13: 'enter',
15329 27: 'esc',
15330 38: 'up',
15331 40: 'down',
15332 46: 'del',
15333 191: '?'
15334 };
15335 this.component = '';
15336 this.handlers = {};
15337 this.bindListener($window);
15338 }
15339
15340 (0, _createClass2.default)(Shortcuts, [{
15341 key: "bindListener",
15342 value: function bindListener($window) {
15343 var _this = this;
15344
15345 $window.on('keydown', function (event) {
15346 return _this.handle(event);
15347 });
15348 }
15349 }, {
15350 key: "getAll",
15351 value: function getAll() {
15352 var shortcuts = {};
15353 jQuery.each(this.handlers, function (key, handler) {
15354 jQuery.each(handler, function (index, config) {
15355 shortcuts[config.command] = key;
15356 });
15357 });
15358 return shortcuts;
15359 }
15360 /**
15361 * @param shortcuts
15362 * @param {{callback: (function(): boolean), scopes: [void]}} args
15363 * @param {callback} args.callback Required
15364 * @param {string} args.component Optional
15365 * @param {callback} args.dependency Optional
15366 * @param {array} args.exclude Optional
15367 * @param {bool} args.allowAltKey Optional
15368 */
15369
15370 }, {
15371 key: "register",
15372 value: function register(shortcuts, args) {
15373 var _this2 = this;
15374
15375 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15376 if (!_this2.handlers[shortcut]) {
15377 _this2.handlers[shortcut] = [];
15378 }
15379
15380 _this2.handlers[shortcut].push(args);
15381 });
15382 }
15383 }, {
15384 key: "unregister",
15385 value: function unregister(shortcuts, args) {
15386 var _this3 = this;
15387
15388 shortcuts.replace(' ', '').split(',').forEach(function (shortcut) {
15389 _this3.handlers[shortcut].forEach(function (index, handler) {
15390 if (args === handler) {
15391 delete _this3.handlers[shortcut][index];
15392 }
15393 });
15394 });
15395 }
15396 }, {
15397 key: "handle",
15398 value: function handle(event) {
15399 var handlers = this.getHandlersByPriority(event);
15400
15401 if (!handlers) {
15402 return;
15403 }
15404
15405 var filteredHandlers = handlers.filter(function (handler) {
15406 if (handler.exclude && -1 !== handler.exclude.indexOf('input')) {
15407 var $target = jQuery(event.target);
15408
15409 if ($target.is(':input, .elementor-input') || $target.closest('[contenteditable="true"]').length) {
15410 return false;
15411 }
15412 }
15413
15414 if (handler.dependency && !handler.dependency(event)) {
15415 return false;
15416 } // Fix for some keyboard sources that consider alt key as ctrl key
15417
15418
15419 if (!handler.allowAltKey && event.altKey) {
15420 return false;
15421 }
15422
15423 return true;
15424 });
15425
15426 if (!filteredHandlers.length) {
15427 return;
15428 }
15429
15430 if (1 < filteredHandlers.length && elementorCommon.config.isDebug) {
15431 elementorCommon.helpers.consoleWarn('Multiple handlers for shortcut.', filteredHandlers, event);
15432 }
15433
15434 event.preventDefault();
15435 filteredHandlers[0].callback(event);
15436 }
15437 }, {
15438 key: "isControlEvent",
15439 value: function isControlEvent(event) {
15440 return event[_environment.default.mac ? 'metaKey' : 'ctrlKey'];
15441 }
15442 }, {
15443 key: "getEventShortcut",
15444 value: function getEventShortcut(event) {
15445 var shortcut = [];
15446
15447 if (event.altKey) {
15448 shortcut.push('alt');
15449 }
15450
15451 if (this.isControlEvent(event)) {
15452 shortcut.push('ctrl');
15453 }
15454
15455 if (event.shiftKey) {
15456 shortcut.push('shift');
15457 }
15458
15459 if (this.specialKeys[event.which]) {
15460 shortcut.push(this.specialKeys[event.which]);
15461 } else {
15462 shortcut.push(String.fromCharCode(event.which).toLowerCase());
15463 }
15464
15465 return shortcut.join('+');
15466 }
15467 }, {
15468 key: "isActiveScope",
15469 value: function isActiveScope(scopes) {
15470 var activeComponents = (0, _keys.default)($e.components.activeComponents),
15471 activeComponent = activeComponents[activeComponents.length - 1],
15472 component = $e.components.get(activeComponent);
15473
15474 if (!component) {
15475 return false;
15476 }
15477
15478 var namespace = component.getNamespace(),
15479 namespaceRoot = component.getRootContainer();
15480 var filteredByNamespace = scopes.some(function (scope) {
15481 return namespace === scope;
15482 });
15483
15484 if (filteredByNamespace) {
15485 return true;
15486 } // Else filter by namespaceRoot.
15487
15488
15489 return scopes.some(function (scope) {
15490 return namespaceRoot === scope;
15491 });
15492 }
15493 }, {
15494 key: "getHandlersByPriority",
15495 value: function getHandlersByPriority(event) {
15496 var _this4 = this;
15497
15498 var handlers = this.handlers[this.getEventShortcut(event)];
15499
15500 if (!handlers) {
15501 return false;
15502 } // TODO: Prioritize current scope before roo scope.
15503
15504
15505 var inCurrentScope = handlers.filter(function (handler) {
15506 return handler.scopes && _this4.isActiveScope(handler.scopes);
15507 });
15508
15509 if (inCurrentScope.length) {
15510 return inCurrentScope;
15511 }
15512
15513 var noScope = handlers.filter(function (handler) {
15514 return !handler.scopes;
15515 });
15516
15517 if (noScope.length) {
15518 return noScope;
15519 }
15520 }
15521 }]);
15522 return Shortcuts;
15523 }();
15524
15525 exports.default = Shortcuts;
15526
15527 /***/ }),
15528 /* 741 */
15529 /***/ (function(module, exports, __webpack_require__) {
15530
15531 "use strict";
15532
15533
15534 var _Object$defineProperty = __webpack_require__(1);
15535
15536 _Object$defineProperty(exports, "__esModule", {
15537 value: true
15538 });
15539
15540 _Object$defineProperty(exports, "After", {
15541 enumerable: true,
15542 get: function get() {
15543 return _after.After;
15544 }
15545 });
15546
15547 _Object$defineProperty(exports, "Base", {
15548 enumerable: true,
15549 get: function get() {
15550 return _base.Base;
15551 }
15552 });
15553
15554 _Object$defineProperty(exports, "Catch", {
15555 enumerable: true,
15556 get: function get() {
15557 return _catch.Catch;
15558 }
15559 });
15560
15561 _Object$defineProperty(exports, "Dependency", {
15562 enumerable: true,
15563 get: function get() {
15564 return _dependency.Dependency;
15565 }
15566 });
15567
15568 var _after = __webpack_require__(224);
15569
15570 var _base = __webpack_require__(286);
15571
15572 var _catch = __webpack_require__(742);
15573
15574 var _dependency = __webpack_require__(343);
15575
15576 /***/ }),
15577 /* 742 */
15578 /***/ (function(module, exports, __webpack_require__) {
15579
15580 "use strict";
15581
15582
15583 var _interopRequireDefault = __webpack_require__(0);
15584
15585 var _Object$defineProperty = __webpack_require__(1);
15586
15587 _Object$defineProperty(exports, "__esModule", {
15588 value: true
15589 });
15590
15591 exports.default = exports.Catch = void 0;
15592
15593 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
15594
15595 var _createClass2 = _interopRequireDefault(__webpack_require__(3));
15596
15597 var _inherits2 = _interopRequireDefault(__webpack_require__(4));
15598
15599 var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
15600
15601 var _base = _interopRequireDefault(__webpack_require__(286));
15602
15603 var Catch = /*#__PURE__*/function (_Base) {
15604 (0, _inherits2.default)(Catch, _Base);
15605
15606 var _super = (0, _createSuper2.default)(Catch);
15607
15608 function Catch() {
15609 (0, _classCallCheck2.default)(this, Catch);
15610 return _super.apply(this, arguments);
15611 }
15612
15613 (0, _createClass2.default)(Catch, [{
15614 key: "register",
15615 value: function register() {
15616 $e.hooks.registerDataCatch(this);
15617 }
15618 }]);
15619 return Catch;
15620 }(_base.default);
15621
15622 exports.Catch = Catch;
15623 var _default = Catch;
15624 exports.default = _default;
15625
15626 /***/ }),
15627 /* 743 */
15628 /***/ (function(module, exports, __webpack_require__) {
15629
15630 "use strict";
15631
15632
15633 var _Object$defineProperty = __webpack_require__(1);
15634
15635 _Object$defineProperty(exports, "__esModule", {
15636 value: true
15637 });
15638
15639 _Object$defineProperty(exports, "After", {
15640 enumerable: true,
15641 get: function get() {
15642 return _after.After;
15643 }
15644 });
15645
15646 _Object$defineProperty(exports, "Base", {
15647 enumerable: true,
15648 get: function get() {
15649 return _base.Base;
15650 }
15651 });
15652
15653 _Object$defineProperty(exports, "Before", {
15654 enumerable: true,
15655 get: function get() {
15656 return _before.Before;
15657 }
15658 });
15659
15660 _Object$defineProperty(exports, "Catch", {
15661 enumerable: true,
15662 get: function get() {
15663 return _catch.Catch;
15664 }
15665 });
15666
15667 var _after = __webpack_require__(278);
15668
15669 var _base = __webpack_require__(314);
15670
15671 var _before = __webpack_require__(638);
15672
15673 var _catch = __webpack_require__(639);
15674
15675 /***/ })
15676 /******/ ]);
15677 //# sourceMappingURL=common.js.map