@byteluck-fe/model-driven-engine 7.0.0-props.115 → 7.0.0-props.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,11 +14,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
14
14
  reject(error);
15
15
  return;
16
16
  }
17
- if (info.done) {
18
- resolve(value);
19
- } else {
20
- Promise.resolve(value).then(_next, _throw);
21
- }
17
+ if (info.done) resolve(value);
18
+ else Promise.resolve(value).then(_next, _throw);
22
19
  }
23
20
  function _async_to_generator(fn) {
24
21
  return function() {
@@ -36,9 +33,7 @@ function _async_to_generator(fn) {
36
33
  };
37
34
  }
38
35
  function _class_call_check(instance, Constructor) {
39
- if (!(instance instanceof Constructor)) {
40
- throw new TypeError("Cannot call a class as a function");
41
- }
36
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
42
37
  }
43
38
  function _defineProperties(target, props) {
44
39
  for(var i = 0; i < props.length; i++){
@@ -62,28 +57,20 @@ function _define_property(obj, key, value) {
62
57
  configurable: true,
63
58
  writable: true
64
59
  });
65
- } else {
66
- obj[key] = value;
67
- }
60
+ } else obj[key] = value;
68
61
  return obj;
69
62
  }
70
63
  function _iterable_to_array(iter) {
71
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
64
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
65
+ return Array.from(iter);
66
+ }
72
67
  }
73
68
  function _non_iterable_spread() {
74
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
69
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
75
70
  }
76
71
  function _to_consumable_array(arr) {
77
72
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
78
73
  }
79
- function _unsupported_iterable_to_array(o, minLen) {
80
- if (!o) return;
81
- if (typeof o === "string") return _array_like_to_array(o, minLen);
82
- var n = Object.prototype.toString.call(o).slice(8, -1);
83
- if (n === "Object" && o.constructor) n = o.constructor.name;
84
- if (n === "Map" || n === "Set") return Array.from(n);
85
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
86
- }
87
74
  function _ts_generator(thisArg, body) {
88
75
  var f, y, t, _ = {
89
76
  label: 0,
@@ -183,6 +170,14 @@ function _ts_generator(thisArg, body) {
183
170
  };
184
171
  }
185
172
  }
173
+ function _unsupported_iterable_to_array(o, minLen) {
174
+ if (!o) return;
175
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
176
+ var n = Object.prototype.toString.call(o).slice(8, -1);
177
+ if (n === "Object" && o.constructor) n = o.constructor.name;
178
+ if (n === "Map" || n === "Set") return Array.from(n);
179
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
180
+ }
186
181
  import { error, logerror } from '@byteluck-fe/model-driven-shared';
187
182
  export var ActionManager = /*#__PURE__*/ function() {
188
183
  "use strict";
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
6
6
  reject(error);
7
7
  return;
8
8
  }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
9
+ if (info.done) resolve(value);
10
+ else Promise.resolve(value).then(_next, _throw);
14
11
  }
15
12
  function _async_to_generator(fn) {
16
13
  return function() {
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
28
25
  };
29
26
  }
30
27
  function _class_call_check(instance, Constructor) {
31
- if (!(instance instanceof Constructor)) {
32
- throw new TypeError("Cannot call a class as a function");
33
- }
28
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
34
29
  }
35
30
  function _defineProperties(target, props) {
36
31
  for(var i = 0; i < props.length; i++){
@@ -54,9 +49,7 @@ function _define_property(obj, key, value) {
54
49
  configurable: true,
55
50
  writable: true
56
51
  });
57
- } else {
58
- obj[key] = value;
59
- }
52
+ } else obj[key] = value;
60
53
  return obj;
61
54
  }
62
55
  function _ts_generator(thisArg, body) {
@@ -10,9 +10,7 @@ function _array_without_holes(arr) {
10
10
  if (Array.isArray(arr)) return _array_like_to_array(arr);
11
11
  }
12
12
  function _assert_this_initialized(self) {
13
- if (self === void 0) {
14
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15
- }
13
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16
14
  return self;
17
15
  }
18
16
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -23,11 +21,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
23
21
  reject(error);
24
22
  return;
25
23
  }
26
- if (info.done) {
27
- resolve(value);
28
- } else {
29
- Promise.resolve(value).then(_next, _throw);
30
- }
24
+ if (info.done) resolve(value);
25
+ else Promise.resolve(value).then(_next, _throw);
31
26
  }
32
27
  function _async_to_generator(fn) {
33
28
  return function() {
@@ -49,9 +44,7 @@ function _call_super(_this, derived, args) {
49
44
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
50
45
  }
51
46
  function _class_call_check(instance, Constructor) {
52
- if (!(instance instanceof Constructor)) {
53
- throw new TypeError("Cannot call a class as a function");
54
- }
47
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
55
48
  }
56
49
  function _defineProperties(target, props) {
57
50
  for(var i = 0; i < props.length; i++){
@@ -75,22 +68,17 @@ function _define_property(obj, key, value) {
75
68
  configurable: true,
76
69
  writable: true
77
70
  });
78
- } else {
79
- obj[key] = value;
80
- }
71
+ } else obj[key] = value;
81
72
  return obj;
82
73
  }
83
74
  function _get(target, property, receiver) {
84
- if (typeof Reflect !== "undefined" && Reflect.get) {
85
- _get = Reflect.get;
86
- } else {
75
+ if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
76
+ else {
87
77
  _get = function get(target, property, receiver) {
88
78
  var base = _super_prop_base(target, property);
89
79
  if (!base) return;
90
80
  var desc = Object.getOwnPropertyDescriptor(base, property);
91
- if (desc.get) {
92
- return desc.get.call(receiver || target);
93
- }
81
+ if (desc.get) return desc.get.call(receiver || target);
94
82
  return desc.value;
95
83
  };
96
84
  }
@@ -115,8 +103,18 @@ function _inherits(subClass, superClass) {
115
103
  });
116
104
  if (superClass) _set_prototype_of(subClass, superClass);
117
105
  }
106
+ function _is_native_reflect_construct() {
107
+ try {
108
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
109
+ } catch (_) {}
110
+ return (_is_native_reflect_construct = function() {
111
+ return !!result;
112
+ })();
113
+ }
118
114
  function _iterable_to_array(iter) {
119
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
115
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
116
+ return Array.from(iter);
117
+ }
120
118
  }
121
119
  function _iterable_to_array_limit(arr, i) {
122
120
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
@@ -143,10 +141,10 @@ function _iterable_to_array_limit(arr, i) {
143
141
  return _arr;
144
142
  }
145
143
  function _non_iterable_rest() {
146
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
144
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
147
145
  }
148
146
  function _non_iterable_spread() {
149
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
147
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
150
148
  }
151
149
  function _object_spread(target) {
152
150
  for(var i = 1; i < arguments.length; i++){
@@ -178,9 +176,8 @@ function ownKeys(object, enumerableOnly) {
178
176
  }
179
177
  function _object_spread_props(target, source) {
180
178
  source = source != null ? source : {};
181
- if (Object.getOwnPropertyDescriptors) {
182
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
183
- } else {
179
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
180
+ else {
184
181
  ownKeys(Object(source)).forEach(function(key) {
185
182
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
186
183
  });
@@ -188,9 +185,7 @@ function _object_spread_props(target, source) {
188
185
  return target;
189
186
  }
190
187
  function _possible_constructor_return(self, call) {
191
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
192
- return call;
193
- }
188
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
194
189
  return _assert_this_initialized(self);
195
190
  }
196
191
  function _set_prototype_of(o, p) {
@@ -213,26 +208,6 @@ function _super_prop_base(object, property) {
213
208
  function _to_consumable_array(arr) {
214
209
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
215
210
  }
216
- function _type_of(obj) {
217
- "@swc/helpers - typeof";
218
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
219
- }
220
- function _unsupported_iterable_to_array(o, minLen) {
221
- if (!o) return;
222
- if (typeof o === "string") return _array_like_to_array(o, minLen);
223
- var n = Object.prototype.toString.call(o).slice(8, -1);
224
- if (n === "Object" && o.constructor) n = o.constructor.name;
225
- if (n === "Map" || n === "Set") return Array.from(n);
226
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
227
- }
228
- function _is_native_reflect_construct() {
229
- try {
230
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
231
- } catch (_) {}
232
- return (_is_native_reflect_construct = function() {
233
- return !!result;
234
- })();
235
- }
236
211
  function _ts_generator(thisArg, body) {
237
212
  var f, y, t, _ = {
238
213
  label: 0,
@@ -332,6 +307,18 @@ function _ts_generator(thisArg, body) {
332
307
  };
333
308
  }
334
309
  }
310
+ function _type_of(obj) {
311
+ "@swc/helpers - typeof";
312
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
313
+ }
314
+ function _unsupported_iterable_to_array(o, minLen) {
315
+ if (!o) return;
316
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
317
+ var n = Object.prototype.toString.call(o).slice(8, -1);
318
+ if (n === "Object" && o.constructor) n = o.constructor.name;
319
+ if (n === "Map" || n === "Set") return Array.from(n);
320
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
321
+ }
335
322
  import { getLocaleText } from '@byteluck-fe/locale-message';
336
323
  import { isDataBind } from '@byteluck-fe/model-driven-core';
337
324
  import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, updateValueFromKeys, warn, Watcher, isBuiltInControls } from '@byteluck-fe/model-driven-shared';
@@ -1,7 +1,5 @@
1
1
  function _class_call_check(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
2
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
5
3
  }
6
4
  function _defineProperties(target, props) {
7
5
  for(var i = 0; i < props.length; i++){
@@ -25,9 +23,7 @@ function _define_property(obj, key, value) {
25
23
  configurable: true,
26
24
  writable: true
27
25
  });
28
- } else {
29
- obj[key] = value;
30
- }
26
+ } else obj[key] = value;
31
27
  return obj;
32
28
  }
33
29
  import { log } from '@byteluck-fe/model-driven-shared';
@@ -1,7 +1,5 @@
1
1
  function _class_call_check(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
2
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
5
3
  }
6
4
  var Plugin = function Plugin() {
7
5
  "use strict";
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { RegisterControls, isDataBind } from '@byteluck-fe/model-driven-core';
88
80
  import { CONTROL_BASE_TYPE, CONTROL_TYPE, JSONCopy, loopFormSchema, isArray } from '@byteluck-fe/model-driven-shared';
89
81
  import { hasChildrenControl, loopDataViewControl, loopFormControl } from '../utils/runtimeUtils';
@@ -1,7 +1,5 @@
1
1
  function _class_call_check(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
2
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
5
3
  }
6
4
  function _defineProperties(target, props) {
7
5
  for(var i = 0; i < props.length; i++){
@@ -25,9 +23,7 @@ function _define_property(obj, key, value) {
25
23
  configurable: true,
26
24
  writable: true
27
25
  });
28
- } else {
29
- obj[key] = value;
30
- }
26
+ } else obj[key] = value;
31
27
  return obj;
32
28
  }
33
29
  function _object_spread(target) {
@@ -7,9 +7,7 @@ function _array_with_holes(arr) {
7
7
  if (Array.isArray(arr)) return arr;
8
8
  }
9
9
  function _assert_this_initialized(self) {
10
- if (self === void 0) {
11
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12
- }
10
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13
11
  return self;
14
12
  }
15
13
  function _call_super(_this, derived, args) {
@@ -17,9 +15,7 @@ function _call_super(_this, derived, args) {
17
15
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
18
16
  }
19
17
  function _class_call_check(instance, Constructor) {
20
- if (!(instance instanceof Constructor)) {
21
- throw new TypeError("Cannot call a class as a function");
22
- }
18
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
23
19
  }
24
20
  function _defineProperties(target, props) {
25
21
  for(var i = 0; i < props.length; i++){
@@ -43,9 +39,7 @@ function _define_property(obj, key, value) {
43
39
  configurable: true,
44
40
  writable: true
45
41
  });
46
- } else {
47
- obj[key] = value;
48
- }
42
+ } else obj[key] = value;
49
43
  return obj;
50
44
  }
51
45
  function _get_prototype_of(o) {
@@ -67,6 +61,14 @@ function _inherits(subClass, superClass) {
67
61
  });
68
62
  if (superClass) _set_prototype_of(subClass, superClass);
69
63
  }
64
+ function _is_native_reflect_construct() {
65
+ try {
66
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ } catch (_) {}
68
+ return (_is_native_reflect_construct = function() {
69
+ return !!result;
70
+ })();
71
+ }
70
72
  function _iterable_to_array_limit(arr, i) {
71
73
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
72
74
  if (_i == null) return;
@@ -92,7 +94,7 @@ function _iterable_to_array_limit(arr, i) {
92
94
  return _arr;
93
95
  }
94
96
  function _non_iterable_rest() {
95
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
97
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
96
98
  }
97
99
  function _object_spread(target) {
98
100
  for(var i = 1; i < arguments.length; i++){
@@ -110,9 +112,7 @@ function _object_spread(target) {
110
112
  return target;
111
113
  }
112
114
  function _possible_constructor_return(self, call) {
113
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
114
- return call;
115
- }
115
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
116
116
  return _assert_this_initialized(self);
117
117
  }
118
118
  function _set_prototype_of(o, p) {
@@ -137,14 +137,6 @@ function _unsupported_iterable_to_array(o, minLen) {
137
137
  if (n === "Map" || n === "Set") return Array.from(n);
138
138
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
139
139
  }
140
- function _is_native_reflect_construct() {
141
- try {
142
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
143
- } catch (_) {}
144
- return (_is_native_reflect_construct = function() {
145
- return !!result;
146
- })();
147
- }
148
140
  import { isArray, isFunction, isString, isJSONArray, isJSONObject, isNumber, isNumberAndEmptyStringArray, isPlainObject, isStringArray, FieldTypes, isObject } from '@byteluck-fe/model-driven-shared';
149
141
  import { AddressValue, AmountValue, CalcValue, RangeDateValue } from '@byteluck-fe/model-driven-core';
150
142
  import { camelizeKeys } from 'humps';
@@ -7,10 +7,12 @@ function _array_without_holes(arr) {
7
7
  if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
9
  function _iterable_to_array(iter) {
10
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
10
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
11
+ return Array.from(iter);
12
+ }
11
13
  }
12
14
  function _non_iterable_spread() {
13
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14
16
  }
15
17
  function _to_consumable_array(arr) {
16
18
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
@@ -7,9 +7,7 @@ function _array_without_holes(arr) {
7
7
  if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
9
  function _class_call_check(instance, Constructor) {
10
- if (!(instance instanceof Constructor)) {
11
- throw new TypeError("Cannot call a class as a function");
12
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
13
11
  }
14
12
  function _defineProperties(target, props) {
15
13
  for(var i = 0; i < props.length; i++){
@@ -33,16 +31,16 @@ function _define_property(obj, key, value) {
33
31
  configurable: true,
34
32
  writable: true
35
33
  });
36
- } else {
37
- obj[key] = value;
38
- }
34
+ } else obj[key] = value;
39
35
  return obj;
40
36
  }
41
37
  function _iterable_to_array(iter) {
42
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
38
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
39
+ return Array.from(iter);
40
+ }
43
41
  }
44
42
  function _non_iterable_spread() {
45
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
46
44
  }
47
45
  function _to_consumable_array(arr) {
48
46
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
6
6
  reject(error);
7
7
  return;
8
8
  }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
9
+ if (info.done) resolve(value);
10
+ else Promise.resolve(value).then(_next, _throw);
14
11
  }
15
12
  function _async_to_generator(fn) {
16
13
  return function() {
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
28
25
  };
29
26
  }
30
27
  function _class_call_check(instance, Constructor) {
31
- if (!(instance instanceof Constructor)) {
32
- throw new TypeError("Cannot call a class as a function");
33
- }
28
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
34
29
  }
35
30
  function _defineProperties(target, props) {
36
31
  for(var i = 0; i < props.length; i++){
@@ -54,9 +49,7 @@ function _define_property(obj, key, value) {
54
49
  configurable: true,
55
50
  writable: true
56
51
  });
57
- } else {
58
- obj[key] = value;
59
- }
52
+ } else obj[key] = value;
60
53
  return obj;
61
54
  }
62
55
  function _ts_generator(thisArg, body) {
@@ -7,9 +7,7 @@ function _array_with_holes(arr) {
7
7
  if (Array.isArray(arr)) return arr;
8
8
  }
9
9
  function _class_call_check(instance, Constructor) {
10
- if (!(instance instanceof Constructor)) {
11
- throw new TypeError("Cannot call a class as a function");
12
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
13
11
  }
14
12
  function _defineProperties(target, props) {
15
13
  for(var i = 0; i < props.length; i++){
@@ -33,9 +31,7 @@ function _define_property(obj, key, value) {
33
31
  configurable: true,
34
32
  writable: true
35
33
  });
36
- } else {
37
- obj[key] = value;
38
- }
34
+ } else obj[key] = value;
39
35
  return obj;
40
36
  }
41
37
  function _iterable_to_array_limit(arr, i) {
@@ -63,7 +59,7 @@ function _iterable_to_array_limit(arr, i) {
63
59
  return _arr;
64
60
  }
65
61
  function _non_iterable_rest() {
66
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
62
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67
63
  }
68
64
  function _sliced_to_array(arr, i) {
69
65
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
@@ -14,11 +14,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
14
14
  reject(error);
15
15
  return;
16
16
  }
17
- if (info.done) {
18
- resolve(value);
19
- } else {
20
- Promise.resolve(value).then(_next, _throw);
21
- }
17
+ if (info.done) resolve(value);
18
+ else Promise.resolve(value).then(_next, _throw);
22
19
  }
23
20
  function _async_to_generator(fn) {
24
21
  return function() {
@@ -36,9 +33,7 @@ function _async_to_generator(fn) {
36
33
  };
37
34
  }
38
35
  function _class_call_check(instance, Constructor) {
39
- if (!(instance instanceof Constructor)) {
40
- throw new TypeError("Cannot call a class as a function");
41
- }
36
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
42
37
  }
43
38
  function _defineProperties(target, props) {
44
39
  for(var i = 0; i < props.length; i++){
@@ -62,9 +57,7 @@ function _define_property(obj, key, value) {
62
57
  configurable: true,
63
58
  writable: true
64
59
  });
65
- } else {
66
- obj[key] = value;
67
- }
60
+ } else obj[key] = value;
68
61
  return obj;
69
62
  }
70
63
  function _iterable_to_array_limit(arr, i) {
@@ -92,19 +85,11 @@ function _iterable_to_array_limit(arr, i) {
92
85
  return _arr;
93
86
  }
94
87
  function _non_iterable_rest() {
95
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
88
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
96
89
  }
97
90
  function _sliced_to_array(arr, i) {
98
91
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
99
92
  }
100
- function _unsupported_iterable_to_array(o, minLen) {
101
- if (!o) return;
102
- if (typeof o === "string") return _array_like_to_array(o, minLen);
103
- var n = Object.prototype.toString.call(o).slice(8, -1);
104
- if (n === "Object" && o.constructor) n = o.constructor.name;
105
- if (n === "Map" || n === "Set") return Array.from(n);
106
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
107
- }
108
93
  function _ts_generator(thisArg, body) {
109
94
  var f, y, t, _ = {
110
95
  label: 0,
@@ -204,6 +189,14 @@ function _ts_generator(thisArg, body) {
204
189
  };
205
190
  }
206
191
  }
192
+ function _unsupported_iterable_to_array(o, minLen) {
193
+ if (!o) return;
194
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
195
+ var n = Object.prototype.toString.call(o).slice(8, -1);
196
+ if (n === "Object" && o.constructor) n = o.constructor.name;
197
+ if (n === "Map" || n === "Set") return Array.from(n);
198
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
199
+ }
207
200
  var LifecycleEventKeyMap = {
208
201
  'engine-initialized': 'did_init',
209
202
  'engine-mounted': 'did_mount',