@dereekb/firebase 13.43.0 → 14.0.0
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.
- package/eslint/index.esm.js +209 -302
- package/eslint/package.json +9 -9
- package/index.esm.js +768 -816
- package/package.json +10 -10
- package/src/lib/common/firestore/accessor/document.rxjs.d.ts +0 -4
- package/src/lib/common/firestore/query/accumulator.d.ts +2 -2
- package/src/lib/common/firestore/query/iterator.d.ts +1 -1
- package/src/lib/common/model/function.d.ts +0 -14
- package/src/lib/model/formspace/formspace.api.d.ts +24 -0
- package/src/lib/model/formspace/formspace.api.error.d.ts +25 -0
- package/src/lib/model/formspace/formspace.d.ts +76 -5
- package/src/lib/model/formspace/formspace.task.d.ts +67 -6
- package/src/lib/model/formspace/formspace.type.d.ts +33 -0
- package/src/lib/model/formspace/formspace.util.d.ts +168 -2
- package/src/lib/model/notification/notification.task.d.ts +3 -1
- package/test/index.esm.js +158 -258
- package/test/package.json +8 -8
- package/test/src/lib/common/firebase.instance.d.ts +0 -4
- package/test/src/lib/common/firestore/firestore.instance.d.ts +0 -4
- package/test/src/lib/common/mock/mock.item.collection.fixture.d.ts +0 -7
- package/test/src/lib/common/storage/storage.instance.d.ts +0 -4
package/eslint/index.esm.js
CHANGED
|
@@ -277,7 +277,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
277
277
|
return _arr;
|
|
278
278
|
}
|
|
279
279
|
function _non_iterable_rest$a() {
|
|
280
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
280
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
281
281
|
}
|
|
282
282
|
function _sliced_to_array$a(arr, i) {
|
|
283
283
|
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$a();
|
|
@@ -670,7 +670,7 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
670
670
|
return _arr;
|
|
671
671
|
}
|
|
672
672
|
function _non_iterable_rest$9() {
|
|
673
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
673
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
674
674
|
}
|
|
675
675
|
function _sliced_to_array$9(arr, i) {
|
|
676
676
|
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$9();
|
|
@@ -1138,10 +1138,12 @@ function _array_without_holes$a(arr) {
|
|
|
1138
1138
|
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
1139
1139
|
}
|
|
1140
1140
|
function _iterable_to_array$a(iter) {
|
|
1141
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1141
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
1142
|
+
return Array.from(iter);
|
|
1143
|
+
}
|
|
1142
1144
|
}
|
|
1143
1145
|
function _non_iterable_spread$a() {
|
|
1144
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1146
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1145
1147
|
}
|
|
1146
1148
|
function _to_consumable_array$a(arr) {
|
|
1147
1149
|
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$a();
|
|
@@ -1771,10 +1773,12 @@ function _array_without_holes$9(arr) {
|
|
|
1771
1773
|
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
1772
1774
|
}
|
|
1773
1775
|
function _iterable_to_array$9(iter) {
|
|
1774
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1776
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
1777
|
+
return Array.from(iter);
|
|
1778
|
+
}
|
|
1775
1779
|
}
|
|
1776
1780
|
function _non_iterable_spread$9() {
|
|
1777
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1781
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1778
1782
|
}
|
|
1779
1783
|
function _to_consumable_array$9(arr) {
|
|
1780
1784
|
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$9();
|
|
@@ -2936,10 +2940,12 @@ function _array_without_holes$8(arr) {
|
|
|
2936
2940
|
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
2937
2941
|
}
|
|
2938
2942
|
function _iterable_to_array$8(iter) {
|
|
2939
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
2943
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
2944
|
+
return Array.from(iter);
|
|
2945
|
+
}
|
|
2940
2946
|
}
|
|
2941
2947
|
function _non_iterable_spread$8() {
|
|
2942
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
2948
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2943
2949
|
}
|
|
2944
2950
|
function _to_consumable_array$8(arr) {
|
|
2945
2951
|
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$8();
|
|
@@ -3084,7 +3090,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
3084
3090
|
return _arr;
|
|
3085
3091
|
}
|
|
3086
3092
|
function _non_iterable_rest$8() {
|
|
3087
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3093
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3088
3094
|
}
|
|
3089
3095
|
function _sliced_to_array$8(arr, i) {
|
|
3090
3096
|
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$8();
|
|
@@ -4023,9 +4029,7 @@ function validateModelEntry(input) {
|
|
|
4023
4029
|
};
|
|
4024
4030
|
|
|
4025
4031
|
function _assert_this_initialized$3(self) {
|
|
4026
|
-
if (self === void 0)
|
|
4027
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4028
|
-
}
|
|
4032
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4029
4033
|
return self;
|
|
4030
4034
|
}
|
|
4031
4035
|
function _call_super$3(_this, derived, args) {
|
|
@@ -4038,15 +4042,12 @@ function _check_private_redeclaration$5(obj, privateCollection) {
|
|
|
4038
4042
|
}
|
|
4039
4043
|
}
|
|
4040
4044
|
function _class_apply_descriptor_get$5(receiver, descriptor) {
|
|
4041
|
-
if (descriptor.get)
|
|
4042
|
-
return descriptor.get.call(receiver);
|
|
4043
|
-
}
|
|
4045
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
4044
4046
|
return descriptor.value;
|
|
4045
4047
|
}
|
|
4046
4048
|
function _class_apply_descriptor_set$5(receiver, descriptor, value) {
|
|
4047
|
-
if (descriptor.set)
|
|
4048
|
-
|
|
4049
|
-
} else {
|
|
4049
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
4050
|
+
else {
|
|
4050
4051
|
if (!descriptor.writable) {
|
|
4051
4052
|
throw new TypeError("attempted to set read only private field");
|
|
4052
4053
|
}
|
|
@@ -4054,14 +4055,10 @@ function _class_apply_descriptor_set$5(receiver, descriptor, value) {
|
|
|
4054
4055
|
}
|
|
4055
4056
|
}
|
|
4056
4057
|
function _class_call_check$8(instance, Constructor) {
|
|
4057
|
-
if (!(instance instanceof Constructor))
|
|
4058
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4059
|
-
}
|
|
4058
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
4060
4059
|
}
|
|
4061
4060
|
function _class_extract_field_descriptor$5(receiver, privateMap, action) {
|
|
4062
|
-
if (!privateMap.has(receiver))
|
|
4063
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
4064
|
-
}
|
|
4061
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
4065
4062
|
return privateMap.get(receiver);
|
|
4066
4063
|
}
|
|
4067
4064
|
function _class_private_field_get$5(receiver, privateMap) {
|
|
@@ -4078,9 +4075,8 @@ function _class_private_field_set$5(receiver, privateMap, value) {
|
|
|
4078
4075
|
return value;
|
|
4079
4076
|
}
|
|
4080
4077
|
function _construct$1(Parent, args, Class) {
|
|
4081
|
-
if (_is_native_reflect_construct$3())
|
|
4082
|
-
|
|
4083
|
-
} else {
|
|
4078
|
+
if (_is_native_reflect_construct$3()) _construct$1 = Reflect.construct;
|
|
4079
|
+
else {
|
|
4084
4080
|
_construct$1 = function construct(Parent, args, Class) {
|
|
4085
4081
|
var a = [
|
|
4086
4082
|
null
|
|
@@ -4130,17 +4126,21 @@ function _instanceof$9(left, right) {
|
|
|
4130
4126
|
"@swc/helpers - instanceof";
|
|
4131
4127
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
4132
4128
|
return !!right[Symbol.hasInstance](left);
|
|
4133
|
-
} else
|
|
4134
|
-
return left instanceof right;
|
|
4135
|
-
}
|
|
4129
|
+
} else return left instanceof right;
|
|
4136
4130
|
}
|
|
4137
4131
|
function _is_native_function$1(fn) {
|
|
4138
4132
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
4139
4133
|
}
|
|
4134
|
+
function _is_native_reflect_construct$3() {
|
|
4135
|
+
try {
|
|
4136
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
4137
|
+
} catch (_) {}
|
|
4138
|
+
return (_is_native_reflect_construct$3 = function() {
|
|
4139
|
+
return !!result;
|
|
4140
|
+
})();
|
|
4141
|
+
}
|
|
4140
4142
|
function _possible_constructor_return$3(self, call) {
|
|
4141
|
-
if (call && (_type_of$7(call) === "object" || typeof call === "function"))
|
|
4142
|
-
return call;
|
|
4143
|
-
}
|
|
4143
|
+
if (call && (_type_of$7(call) === "object" || typeof call === "function")) return call;
|
|
4144
4144
|
return _assert_this_initialized$3(self);
|
|
4145
4145
|
}
|
|
4146
4146
|
function _set_prototype_of$3(o, p) {
|
|
@@ -4156,11 +4156,9 @@ function _type_of$7(obj) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
function _wrap_native_super$1(Class) {
|
|
4158
4158
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
4159
|
-
_wrap_native_super$1 = function
|
|
4159
|
+
_wrap_native_super$1 = function(Class) {
|
|
4160
4160
|
if (Class === null || !_is_native_function$1(Class)) return Class;
|
|
4161
|
-
if (typeof Class !== "function")
|
|
4162
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
4163
|
-
}
|
|
4161
|
+
if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
4164
4162
|
if (typeof _cache !== "undefined") {
|
|
4165
4163
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
4166
4164
|
_cache.set(Class, Wrapper);
|
|
@@ -4180,14 +4178,6 @@ function _wrap_native_super$1(Class) {
|
|
|
4180
4178
|
};
|
|
4181
4179
|
return _wrap_native_super$1(Class);
|
|
4182
4180
|
}
|
|
4183
|
-
function _is_native_reflect_construct$3() {
|
|
4184
|
-
try {
|
|
4185
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
4186
|
-
} catch (_) {}
|
|
4187
|
-
return (_is_native_reflect_construct$3 = function() {
|
|
4188
|
-
return !!result;
|
|
4189
|
-
})();
|
|
4190
|
-
}
|
|
4191
4181
|
var _node$1 = /*#__PURE__*/ new WeakMap(), _code = /*#__PURE__*/ new WeakMap(), _range = /*#__PURE__*/ new WeakMap(), _summary = /*#__PURE__*/ new WeakMap();
|
|
4192
4182
|
var CelError = /*#__PURE__*/ function(Error1) {
|
|
4193
4183
|
_inherits$3(CelError, Error1);
|
|
@@ -4380,15 +4370,12 @@ function _check_private_redeclaration$4(obj, privateCollection) {
|
|
|
4380
4370
|
}
|
|
4381
4371
|
}
|
|
4382
4372
|
function _class_apply_descriptor_get$4(receiver, descriptor) {
|
|
4383
|
-
if (descriptor.get)
|
|
4384
|
-
return descriptor.get.call(receiver);
|
|
4385
|
-
}
|
|
4373
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
4386
4374
|
return descriptor.value;
|
|
4387
4375
|
}
|
|
4388
4376
|
function _class_apply_descriptor_set$4(receiver, descriptor, value) {
|
|
4389
|
-
if (descriptor.set)
|
|
4390
|
-
|
|
4391
|
-
} else {
|
|
4377
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
4378
|
+
else {
|
|
4392
4379
|
if (!descriptor.writable) {
|
|
4393
4380
|
throw new TypeError("attempted to set read only private field");
|
|
4394
4381
|
}
|
|
@@ -4396,14 +4383,10 @@ function _class_apply_descriptor_set$4(receiver, descriptor, value) {
|
|
|
4396
4383
|
}
|
|
4397
4384
|
}
|
|
4398
4385
|
function _class_call_check$7(instance, Constructor) {
|
|
4399
|
-
if (!(instance instanceof Constructor))
|
|
4400
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4401
|
-
}
|
|
4386
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
4402
4387
|
}
|
|
4403
4388
|
function _class_extract_field_descriptor$4(receiver, privateMap, action) {
|
|
4404
|
-
if (!privateMap.has(receiver))
|
|
4405
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
4406
|
-
}
|
|
4389
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
4407
4390
|
return privateMap.get(receiver);
|
|
4408
4391
|
}
|
|
4409
4392
|
function _class_private_field_get$4(receiver, privateMap) {
|
|
@@ -4437,9 +4420,7 @@ function _instanceof$8(left, right) {
|
|
|
4437
4420
|
"@swc/helpers - instanceof";
|
|
4438
4421
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
4439
4422
|
return !!right[Symbol.hasInstance](left);
|
|
4440
|
-
} else
|
|
4441
|
-
return left instanceof right;
|
|
4442
|
-
}
|
|
4423
|
+
} else return left instanceof right;
|
|
4443
4424
|
}
|
|
4444
4425
|
var _value$1 = /*#__PURE__*/ new WeakMap();
|
|
4445
4426
|
var _Symbol_for$1 = Symbol.for('nodejs.util.inspect.custom');
|
|
@@ -4548,7 +4529,7 @@ function register(registry) {
|
|
|
4548
4529
|
throw evaluationError('optional_expected', "".concat(description, " must be optional"), ast);
|
|
4549
4530
|
}
|
|
4550
4531
|
function evaluateOptional(ev, macro, ctx) {
|
|
4551
|
-
var v = ev.
|
|
4532
|
+
var v = ev.run(macro.receiver, ctx);
|
|
4552
4533
|
if (_instanceof$8(v, Promise)) return v.then(function(_v) {
|
|
4553
4534
|
return handleOptionalResolved(_v, ev, macro, ctx);
|
|
4554
4535
|
});
|
|
@@ -4600,7 +4581,7 @@ function register(registry) {
|
|
|
4600
4581
|
},
|
|
4601
4582
|
onEmpty: function onEmpty(ev, macro, ctx) {
|
|
4602
4583
|
var ast = macro.arg;
|
|
4603
|
-
var v = ev.
|
|
4584
|
+
var v = ev.run(ast, ctx);
|
|
4604
4585
|
if (_instanceof$8(v, Promise)) return v.then(function(_v) {
|
|
4605
4586
|
return ensureOptional(_v, ast, invalidOrArg);
|
|
4606
4587
|
});
|
|
@@ -4613,7 +4594,7 @@ function register(registry) {
|
|
|
4613
4594
|
return optionalValue.value();
|
|
4614
4595
|
},
|
|
4615
4596
|
onEmpty: function onEmpty(ev, macro, ctx) {
|
|
4616
|
-
return ev.
|
|
4597
|
+
return ev.run(macro.arg, ctx);
|
|
4617
4598
|
},
|
|
4618
4599
|
evaluate: evaluateOptional,
|
|
4619
4600
|
typeCheck: function typeCheck(check, macro, ctx) {
|
|
@@ -4677,15 +4658,12 @@ function _check_private_redeclaration$3(obj, privateCollection) {
|
|
|
4677
4658
|
}
|
|
4678
4659
|
}
|
|
4679
4660
|
function _class_apply_descriptor_get$3(receiver, descriptor) {
|
|
4680
|
-
if (descriptor.get)
|
|
4681
|
-
return descriptor.get.call(receiver);
|
|
4682
|
-
}
|
|
4661
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
4683
4662
|
return descriptor.value;
|
|
4684
4663
|
}
|
|
4685
4664
|
function _class_apply_descriptor_set$3(receiver, descriptor, value) {
|
|
4686
|
-
if (descriptor.set)
|
|
4687
|
-
|
|
4688
|
-
} else {
|
|
4665
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
4666
|
+
else {
|
|
4689
4667
|
if (!descriptor.writable) {
|
|
4690
4668
|
throw new TypeError("attempted to set read only private field");
|
|
4691
4669
|
}
|
|
@@ -4693,14 +4671,10 @@ function _class_apply_descriptor_set$3(receiver, descriptor, value) {
|
|
|
4693
4671
|
}
|
|
4694
4672
|
}
|
|
4695
4673
|
function _class_call_check$6(instance, Constructor) {
|
|
4696
|
-
if (!(instance instanceof Constructor))
|
|
4697
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4698
|
-
}
|
|
4674
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
4699
4675
|
}
|
|
4700
4676
|
function _class_extract_field_descriptor$3(receiver, privateMap, action) {
|
|
4701
|
-
if (!privateMap.has(receiver))
|
|
4702
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
4703
|
-
}
|
|
4677
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
4704
4678
|
return privateMap.get(receiver);
|
|
4705
4679
|
}
|
|
4706
4680
|
function _class_private_field_get$3(receiver, privateMap) {
|
|
@@ -4734,9 +4708,7 @@ function _instanceof$7(left, right) {
|
|
|
4734
4708
|
"@swc/helpers - instanceof";
|
|
4735
4709
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
4736
4710
|
return !!right[Symbol.hasInstance](left);
|
|
4737
|
-
} else
|
|
4738
|
-
return left instanceof right;
|
|
4739
|
-
}
|
|
4711
|
+
} else return left instanceof right;
|
|
4740
4712
|
}
|
|
4741
4713
|
function _iterable_to_array_limit$7(arr, i) {
|
|
4742
4714
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -4763,7 +4735,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
4763
4735
|
return _arr;
|
|
4764
4736
|
}
|
|
4765
4737
|
function _non_iterable_rest$7() {
|
|
4766
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
4738
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4767
4739
|
}
|
|
4768
4740
|
function _sliced_to_array$7(arr, i) {
|
|
4769
4741
|
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$7();
|
|
@@ -5445,9 +5417,7 @@ function _array_without_holes$7(arr) {
|
|
|
5445
5417
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
5446
5418
|
}
|
|
5447
5419
|
function _assert_this_initialized$2(self) {
|
|
5448
|
-
if (self === void 0)
|
|
5449
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5450
|
-
}
|
|
5420
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5451
5421
|
return self;
|
|
5452
5422
|
}
|
|
5453
5423
|
function _call_super$2(_this, derived, args) {
|
|
@@ -5460,15 +5430,12 @@ function _check_private_redeclaration$2(obj, privateCollection) {
|
|
|
5460
5430
|
}
|
|
5461
5431
|
}
|
|
5462
5432
|
function _class_apply_descriptor_get$2(receiver, descriptor) {
|
|
5463
|
-
if (descriptor.get)
|
|
5464
|
-
return descriptor.get.call(receiver);
|
|
5465
|
-
}
|
|
5433
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
5466
5434
|
return descriptor.value;
|
|
5467
5435
|
}
|
|
5468
5436
|
function _class_apply_descriptor_set$2(receiver, descriptor, value) {
|
|
5469
|
-
if (descriptor.set)
|
|
5470
|
-
|
|
5471
|
-
} else {
|
|
5437
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
5438
|
+
else {
|
|
5472
5439
|
if (!descriptor.writable) {
|
|
5473
5440
|
throw new TypeError("attempted to set read only private field");
|
|
5474
5441
|
}
|
|
@@ -5476,14 +5443,10 @@ function _class_apply_descriptor_set$2(receiver, descriptor, value) {
|
|
|
5476
5443
|
}
|
|
5477
5444
|
}
|
|
5478
5445
|
function _class_call_check$5(instance, Constructor) {
|
|
5479
|
-
if (!(instance instanceof Constructor))
|
|
5480
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5481
|
-
}
|
|
5446
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
5482
5447
|
}
|
|
5483
5448
|
function _class_extract_field_descriptor$2(receiver, privateMap, action) {
|
|
5484
|
-
if (!privateMap.has(receiver))
|
|
5485
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
5486
|
-
}
|
|
5449
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
5487
5450
|
return privateMap.get(receiver);
|
|
5488
5451
|
}
|
|
5489
5452
|
function _class_private_field_get$2(receiver, privateMap) {
|
|
@@ -5500,9 +5463,7 @@ function _class_private_field_set$2(receiver, privateMap, value) {
|
|
|
5500
5463
|
return value;
|
|
5501
5464
|
}
|
|
5502
5465
|
function _class_private_method_get$2(receiver, privateSet, fn) {
|
|
5503
|
-
if (!privateSet.has(receiver))
|
|
5504
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
5505
|
-
}
|
|
5466
|
+
if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
|
|
5506
5467
|
return fn;
|
|
5507
5468
|
}
|
|
5508
5469
|
function _class_private_method_init$2(obj, privateSet) {
|
|
@@ -5510,9 +5471,8 @@ function _class_private_method_init$2(obj, privateSet) {
|
|
|
5510
5471
|
privateSet.add(obj);
|
|
5511
5472
|
}
|
|
5512
5473
|
function _construct(Parent, args, Class) {
|
|
5513
|
-
if (_is_native_reflect_construct$2())
|
|
5514
|
-
|
|
5515
|
-
} else {
|
|
5474
|
+
if (_is_native_reflect_construct$2()) _construct = Reflect.construct;
|
|
5475
|
+
else {
|
|
5516
5476
|
_construct = function construct(Parent, args, Class) {
|
|
5517
5477
|
var a = [
|
|
5518
5478
|
null
|
|
@@ -5547,22 +5507,17 @@ function _define_property$5(obj, key, value) {
|
|
|
5547
5507
|
configurable: true,
|
|
5548
5508
|
writable: true
|
|
5549
5509
|
});
|
|
5550
|
-
} else
|
|
5551
|
-
obj[key] = value;
|
|
5552
|
-
}
|
|
5510
|
+
} else obj[key] = value;
|
|
5553
5511
|
return obj;
|
|
5554
5512
|
}
|
|
5555
5513
|
function _get(target, property, receiver) {
|
|
5556
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
5557
|
-
|
|
5558
|
-
} else {
|
|
5514
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
|
|
5515
|
+
else {
|
|
5559
5516
|
_get = function get(target, property, receiver) {
|
|
5560
5517
|
var base = _super_prop_base(target, property);
|
|
5561
5518
|
if (!base) return;
|
|
5562
5519
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
5563
|
-
if (desc.get)
|
|
5564
|
-
return desc.get.call(receiver || target);
|
|
5565
|
-
}
|
|
5520
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
5566
5521
|
return desc.value;
|
|
5567
5522
|
};
|
|
5568
5523
|
}
|
|
@@ -5591,15 +5546,23 @@ function _instanceof$6(left, right) {
|
|
|
5591
5546
|
"@swc/helpers - instanceof";
|
|
5592
5547
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
5593
5548
|
return !!right[Symbol.hasInstance](left);
|
|
5594
|
-
} else
|
|
5595
|
-
return left instanceof right;
|
|
5596
|
-
}
|
|
5549
|
+
} else return left instanceof right;
|
|
5597
5550
|
}
|
|
5598
5551
|
function _is_native_function(fn) {
|
|
5599
5552
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
5600
5553
|
}
|
|
5554
|
+
function _is_native_reflect_construct$2() {
|
|
5555
|
+
try {
|
|
5556
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
5557
|
+
} catch (_) {}
|
|
5558
|
+
return (_is_native_reflect_construct$2 = function() {
|
|
5559
|
+
return !!result;
|
|
5560
|
+
})();
|
|
5561
|
+
}
|
|
5601
5562
|
function _iterable_to_array$7(iter) {
|
|
5602
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
5563
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
5564
|
+
return Array.from(iter);
|
|
5565
|
+
}
|
|
5603
5566
|
}
|
|
5604
5567
|
function _iterable_to_array_limit$6(arr, i) {
|
|
5605
5568
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -5626,15 +5589,13 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
5626
5589
|
return _arr;
|
|
5627
5590
|
}
|
|
5628
5591
|
function _non_iterable_rest$6() {
|
|
5629
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5592
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5630
5593
|
}
|
|
5631
5594
|
function _non_iterable_spread$7() {
|
|
5632
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
5595
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5633
5596
|
}
|
|
5634
5597
|
function _possible_constructor_return$2(self, call) {
|
|
5635
|
-
if (call && (_type_of$5(call) === "object" || typeof call === "function"))
|
|
5636
|
-
return call;
|
|
5637
|
-
}
|
|
5598
|
+
if (call && (_type_of$5(call) === "object" || typeof call === "function")) return call;
|
|
5638
5599
|
return _assert_this_initialized$2(self);
|
|
5639
5600
|
}
|
|
5640
5601
|
function _set_prototype_of$2(o, p) {
|
|
@@ -5671,11 +5632,9 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
5671
5632
|
}
|
|
5672
5633
|
function _wrap_native_super(Class) {
|
|
5673
5634
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
5674
|
-
_wrap_native_super = function
|
|
5635
|
+
_wrap_native_super = function(Class) {
|
|
5675
5636
|
if (Class === null || !_is_native_function(Class)) return Class;
|
|
5676
|
-
if (typeof Class !== "function")
|
|
5677
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
5678
|
-
}
|
|
5637
|
+
if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
5679
5638
|
if (typeof _cache !== "undefined") {
|
|
5680
5639
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
5681
5640
|
_cache.set(Class, Wrapper);
|
|
@@ -5695,14 +5654,6 @@ function _wrap_native_super(Class) {
|
|
|
5695
5654
|
};
|
|
5696
5655
|
return _wrap_native_super(Class);
|
|
5697
5656
|
}
|
|
5698
|
-
function _is_native_reflect_construct$2() {
|
|
5699
|
-
try {
|
|
5700
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
5701
|
-
} catch (_) {}
|
|
5702
|
-
return (_is_native_reflect_construct$2 = function() {
|
|
5703
|
-
return !!result;
|
|
5704
|
-
})();
|
|
5705
|
-
}
|
|
5706
5657
|
var _name = /*#__PURE__*/ new WeakMap();
|
|
5707
5658
|
var Type = /*#__PURE__*/ function() {
|
|
5708
5659
|
function Type(name) {
|
|
@@ -7744,11 +7695,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7744
7695
|
reject(error);
|
|
7745
7696
|
return;
|
|
7746
7697
|
}
|
|
7747
|
-
if (info.done)
|
|
7748
|
-
|
|
7749
|
-
} else {
|
|
7750
|
-
Promise.resolve(value).then(_next, _throw);
|
|
7751
|
-
}
|
|
7698
|
+
if (info.done) resolve(value);
|
|
7699
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
7752
7700
|
}
|
|
7753
7701
|
function _async_to_generator(fn) {
|
|
7754
7702
|
return function() {
|
|
@@ -7766,9 +7714,7 @@ function _async_to_generator(fn) {
|
|
|
7766
7714
|
};
|
|
7767
7715
|
}
|
|
7768
7716
|
function _class_call_check$4(instance, Constructor) {
|
|
7769
|
-
if (!(instance instanceof Constructor))
|
|
7770
|
-
throw new TypeError("Cannot call a class as a function");
|
|
7771
|
-
}
|
|
7717
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
7772
7718
|
}
|
|
7773
7719
|
function _defineProperties$3(target, props) {
|
|
7774
7720
|
for(var i = 0; i < props.length; i++){
|
|
@@ -7791,21 +7737,19 @@ function _define_property$4(obj, key, value) {
|
|
|
7791
7737
|
configurable: true,
|
|
7792
7738
|
writable: true
|
|
7793
7739
|
});
|
|
7794
|
-
} else
|
|
7795
|
-
obj[key] = value;
|
|
7796
|
-
}
|
|
7740
|
+
} else obj[key] = value;
|
|
7797
7741
|
return obj;
|
|
7798
7742
|
}
|
|
7799
7743
|
function _instanceof$5(left, right) {
|
|
7800
7744
|
"@swc/helpers - instanceof";
|
|
7801
7745
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
7802
7746
|
return !!right[Symbol.hasInstance](left);
|
|
7803
|
-
} else
|
|
7804
|
-
return left instanceof right;
|
|
7805
|
-
}
|
|
7747
|
+
} else return left instanceof right;
|
|
7806
7748
|
}
|
|
7807
7749
|
function _iterable_to_array$6(iter) {
|
|
7808
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
7750
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
7751
|
+
return Array.from(iter);
|
|
7752
|
+
}
|
|
7809
7753
|
}
|
|
7810
7754
|
function _iterable_to_array_limit$5(arr, i) {
|
|
7811
7755
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -7832,10 +7776,10 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
7832
7776
|
return _arr;
|
|
7833
7777
|
}
|
|
7834
7778
|
function _non_iterable_rest$5() {
|
|
7835
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
7779
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7836
7780
|
}
|
|
7837
7781
|
function _non_iterable_spread$6() {
|
|
7838
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
7782
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7839
7783
|
}
|
|
7840
7784
|
function _sliced_to_array$5(arr, i) {
|
|
7841
7785
|
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$5();
|
|
@@ -7843,18 +7787,6 @@ function _sliced_to_array$5(arr, i) {
|
|
|
7843
7787
|
function _to_consumable_array$6(arr) {
|
|
7844
7788
|
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$6();
|
|
7845
7789
|
}
|
|
7846
|
-
function _type_of$4(obj) {
|
|
7847
|
-
"@swc/helpers - typeof";
|
|
7848
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7849
|
-
}
|
|
7850
|
-
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7851
|
-
if (!o) return;
|
|
7852
|
-
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7853
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7854
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7855
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7856
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7857
|
-
}
|
|
7858
7790
|
function _ts_generator(thisArg, body) {
|
|
7859
7791
|
var f, y, t, _ = {
|
|
7860
7792
|
label: 0,
|
|
@@ -7954,6 +7886,18 @@ function _ts_generator(thisArg, body) {
|
|
|
7954
7886
|
};
|
|
7955
7887
|
}
|
|
7956
7888
|
}
|
|
7889
|
+
function _type_of$4(obj) {
|
|
7890
|
+
"@swc/helpers - typeof";
|
|
7891
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7892
|
+
}
|
|
7893
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7894
|
+
if (!o) return;
|
|
7895
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7896
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7897
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7898
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7899
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7900
|
+
}
|
|
7957
7901
|
var dynType = celTypes.dyn;
|
|
7958
7902
|
var Base = /*#__PURE__*/ function() {
|
|
7959
7903
|
function Base(opts) {
|
|
@@ -8092,8 +8036,8 @@ function ternaryConditionError(ev, value, node) {
|
|
|
8092
8036
|
return ev.createError('invalid_condition_type', "".concat(node.meta.label || 'Ternary condition must be bool', ", got '").concat(type, "'"), node);
|
|
8093
8037
|
}
|
|
8094
8038
|
function handleTernary(c, ev, ast, ctx) {
|
|
8095
|
-
if (c === true) return ev.
|
|
8096
|
-
if (c === false) return ev.
|
|
8039
|
+
if (c === true) return ev.run(ast.left, ctx);
|
|
8040
|
+
if (c === false) return ev.run(ast.right, ctx);
|
|
8097
8041
|
throw ternaryConditionError(ev, c, ast.condition);
|
|
8098
8042
|
}
|
|
8099
8043
|
function logicalOperandError(ev, value, node) {
|
|
@@ -8154,7 +8098,7 @@ function handleUnary(left, ast, ev) {
|
|
|
8154
8098
|
throw ev.createError('no_such_overload', "no such overload: ".concat(ast.op[0]).concat(leftType), ast);
|
|
8155
8099
|
}
|
|
8156
8100
|
function evaluateUnary(ev, ast, ctx) {
|
|
8157
|
-
return ast.handle(ev.
|
|
8101
|
+
return ast.handle(ev.run(ast.args, ctx), ast, ev);
|
|
8158
8102
|
}
|
|
8159
8103
|
function checkBinary(chk, ast, ctx) {
|
|
8160
8104
|
var op = ast.op;
|
|
@@ -8171,10 +8115,10 @@ function checkBinary(chk, ast, ctx) {
|
|
|
8171
8115
|
throw chk.createError('no_such_overload', "no such overload: ".concat(chk.formatType(left), " ").concat(op, " ").concat(chk.formatType(right)), ast);
|
|
8172
8116
|
}
|
|
8173
8117
|
function evaluateBinary(ev, ast, ctx) {
|
|
8174
|
-
return ast.handle(ev.
|
|
8118
|
+
return ast.handle(ev.run(ast.left, ctx), ev.run(ast.right, ctx), ast, ev);
|
|
8175
8119
|
}
|
|
8176
8120
|
function evaluateBinaryFirst(ev, ast, ctx) {
|
|
8177
|
-
return ast.handle(ev.
|
|
8121
|
+
return ast.handle(ev.run(ast.left, ctx), ast.right, ast, ev);
|
|
8178
8122
|
}
|
|
8179
8123
|
function handleBinary(left, right, ast, ev) {
|
|
8180
8124
|
var leftType = ast.leftStaticType || ev.debugTypeDeep(left).wrappedType;
|
|
@@ -8223,7 +8167,7 @@ function resolveAstArray(ev, astArray, ctx) {
|
|
|
8223
8167
|
if (i === 0) return [];
|
|
8224
8168
|
var async;
|
|
8225
8169
|
var results = new Array(i);
|
|
8226
|
-
while(i--)if (_instanceof$5(results[i] = ev.
|
|
8170
|
+
while(i--)if (_instanceof$5(results[i] = ev.run(astArray[i], ctx), Promise)) async !== null && async !== void 0 ? async : async = true;
|
|
8227
8171
|
return async ? Promise.all(results) : results;
|
|
8228
8172
|
}
|
|
8229
8173
|
function safeFromEntries(entries) {
|
|
@@ -8250,14 +8194,14 @@ function toIterable(ev, args, coll) {
|
|
|
8250
8194
|
}
|
|
8251
8195
|
function runQualifier(items, args, ev, ctx) {
|
|
8252
8196
|
if (!isArray(items)) items = toIterable(ev, args, items);
|
|
8253
|
-
var accu = ev.
|
|
8197
|
+
var accu = ev.run(args.init, ctx = args.iterCtx.reuse(ctx));
|
|
8254
8198
|
ctx.accuValue = accu;
|
|
8255
8199
|
if (ctx === args.iterCtx) return iterateQuantifier(ev, ctx, args, items, accu, 0);
|
|
8256
8200
|
return continueQuantifier(ev, ctx, args, items, accu, 0);
|
|
8257
8201
|
}
|
|
8258
8202
|
function runComprehension(items, args, ev, ctx) {
|
|
8259
8203
|
if (!isArray(items)) items = toIterable(ev, args, items);
|
|
8260
|
-
var accu = ev.
|
|
8204
|
+
var accu = ev.run(args.init, ctx = args.iterCtx.reuse(ctx));
|
|
8261
8205
|
ctx.accuValue = accu;
|
|
8262
8206
|
if (ctx === args.iterCtx) return iterateLoop(ev, ctx, args, items, accu, 0);
|
|
8263
8207
|
return continueLoop(ev, ctx, args, items, accu, 0);
|
|
@@ -8268,7 +8212,7 @@ function iterateLoop(ev, ctx, args, items, accu, i) {
|
|
|
8268
8212
|
var len = items.length;
|
|
8269
8213
|
while(i < len){
|
|
8270
8214
|
if (condition && !condition(accu)) break;
|
|
8271
|
-
accu = ev.
|
|
8215
|
+
accu = ev.run(step, ctx.setIterValue(items[i++], ev));
|
|
8272
8216
|
if (_instanceof$5(accu, Promise)) return continueLoop(ev, ctx, args, items, accu, i);
|
|
8273
8217
|
}
|
|
8274
8218
|
return args.result(accu);
|
|
@@ -8299,7 +8243,7 @@ function continueLoop(ev, ctx, args, items, accu, i) {
|
|
|
8299
8243
|
2,
|
|
8300
8244
|
args.result(accu)
|
|
8301
8245
|
];
|
|
8302
|
-
accu = ev.
|
|
8246
|
+
accu = ev.run(step, ctx.setIterValue(items[i++], ev));
|
|
8303
8247
|
if (!_instanceof$5(accu, Promise)) return [
|
|
8304
8248
|
3,
|
|
8305
8249
|
4
|
|
@@ -8574,8 +8518,8 @@ var OPERATORS = {
|
|
|
8574
8518
|
var async;
|
|
8575
8519
|
for(var i = 0; i < len; i++){
|
|
8576
8520
|
var e = astEntries[i];
|
|
8577
|
-
var k = ev.
|
|
8578
|
-
var v = ev.
|
|
8521
|
+
var k = ev.run(e[0], ctx);
|
|
8522
|
+
var v = ev.run(e[1], ctx);
|
|
8579
8523
|
if (_instanceof$5(k, Promise) || _instanceof$5(v, Promise)) {
|
|
8580
8524
|
results[i] = Promise.all([
|
|
8581
8525
|
k,
|
|
@@ -8604,7 +8548,7 @@ var OPERATORS = {
|
|
|
8604
8548
|
return stepType;
|
|
8605
8549
|
},
|
|
8606
8550
|
evaluate: function evaluate(ev, ast, ctx) {
|
|
8607
|
-
return ast.handle(ev.
|
|
8551
|
+
return ast.handle(ev.run(ast.args.iterable, ctx), ast.args, ev, ctx);
|
|
8608
8552
|
}
|
|
8609
8553
|
},
|
|
8610
8554
|
accuValue: {
|
|
@@ -8632,11 +8576,11 @@ var OPERATORS = {
|
|
|
8632
8576
|
return chk.registry.getListType(itemType);
|
|
8633
8577
|
},
|
|
8634
8578
|
evaluateSync: function evaluateSync(ev, ast, ctx) {
|
|
8635
|
-
return ctx.accuValue.push(ev.
|
|
8579
|
+
return ctx.accuValue.push(ev.run(ast.args, ctx)), ctx.accuValue;
|
|
8636
8580
|
},
|
|
8637
8581
|
evaluate: function evaluate(ev, ast, ctx) {
|
|
8638
8582
|
var arr = ctx.accuValue;
|
|
8639
|
-
var el = ev.
|
|
8583
|
+
var el = ev.run(ast.args, ctx);
|
|
8640
8584
|
if (_instanceof$5(el, Promise)) return el.then(function(_e) {
|
|
8641
8585
|
return arr.push(_e) && arr;
|
|
8642
8586
|
});
|
|
@@ -8662,7 +8606,7 @@ var OPERATORS = {
|
|
|
8662
8606
|
throw chk.createError('incompatible_ternary_branches', "Ternary branches must have the same type, got '".concat(chk.formatType(leftType), "' and '").concat(chk.formatType(rightType), "'"), ast);
|
|
8663
8607
|
},
|
|
8664
8608
|
evaluate: function evaluate(ev, ast, ctx) {
|
|
8665
|
-
return ast.handle(ev.
|
|
8609
|
+
return ast.handle(ev.run(ast.condition, ctx), ev, ast, ctx);
|
|
8666
8610
|
}
|
|
8667
8611
|
},
|
|
8668
8612
|
'||': {
|
|
@@ -8671,14 +8615,14 @@ var OPERATORS = {
|
|
|
8671
8615
|
var l = ev.tryEval(ast.left, ctx);
|
|
8672
8616
|
if (l === true) return true;
|
|
8673
8617
|
if (l === false) {
|
|
8674
|
-
var right = ev.
|
|
8618
|
+
var right = ev.run(ast.right, ctx);
|
|
8675
8619
|
if (typeof right === 'boolean') return right;
|
|
8676
8620
|
return _logicalOp(true, ev, ast, l, right);
|
|
8677
8621
|
}
|
|
8678
8622
|
if (_instanceof$5(l, Promise)) return l.then(function(_l) {
|
|
8679
|
-
return _l === true ? _l : _logicalOp(true, ev, ast, _l, ev.
|
|
8623
|
+
return _l === true ? _l : _logicalOp(true, ev, ast, _l, ev.run(ast.right, ctx));
|
|
8680
8624
|
});
|
|
8681
|
-
return _logicalOp(true, ev, ast, l, ev.
|
|
8625
|
+
return _logicalOp(true, ev, ast, l, ev.run(ast.right, ctx));
|
|
8682
8626
|
}
|
|
8683
8627
|
},
|
|
8684
8628
|
'&&': {
|
|
@@ -8687,14 +8631,14 @@ var OPERATORS = {
|
|
|
8687
8631
|
var l = ev.tryEval(ast.left, ctx);
|
|
8688
8632
|
if (l === false) return false;
|
|
8689
8633
|
if (l === true) {
|
|
8690
|
-
var right = ev.
|
|
8634
|
+
var right = ev.run(ast.right, ctx);
|
|
8691
8635
|
if (typeof right === 'boolean') return right;
|
|
8692
8636
|
return _logicalOp(false, ev, ast, l, right);
|
|
8693
8637
|
}
|
|
8694
8638
|
if (_instanceof$5(l, Promise)) return l.then(function(_l) {
|
|
8695
|
-
return _l === false ? _l : _logicalOp(false, ev, ast, _l, ev.
|
|
8639
|
+
return _l === false ? _l : _logicalOp(false, ev, ast, _l, ev.run(ast.right, ctx));
|
|
8696
8640
|
});
|
|
8697
|
-
return _logicalOp(false, ev, ast, l, ev.
|
|
8641
|
+
return _logicalOp(false, ev, ast, l, ev.run(ast.right, ctx));
|
|
8698
8642
|
}
|
|
8699
8643
|
},
|
|
8700
8644
|
'!_': {
|
|
@@ -8777,17 +8721,13 @@ function _array_with_holes$4(arr) {
|
|
|
8777
8721
|
if (Array.isArray(arr)) return arr;
|
|
8778
8722
|
}
|
|
8779
8723
|
function _class_call_check$3(instance, Constructor) {
|
|
8780
|
-
if (!(instance instanceof Constructor))
|
|
8781
|
-
throw new TypeError("Cannot call a class as a function");
|
|
8782
|
-
}
|
|
8724
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
8783
8725
|
}
|
|
8784
8726
|
function _instanceof$4(left, right) {
|
|
8785
8727
|
"@swc/helpers - instanceof";
|
|
8786
8728
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
8787
8729
|
return !!right[Symbol.hasInstance](left);
|
|
8788
|
-
} else
|
|
8789
|
-
return left instanceof right;
|
|
8790
|
-
}
|
|
8730
|
+
} else return left instanceof right;
|
|
8791
8731
|
}
|
|
8792
8732
|
function _iterable_to_array_limit$4(arr, i) {
|
|
8793
8733
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -8814,7 +8754,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
8814
8754
|
return _arr;
|
|
8815
8755
|
}
|
|
8816
8756
|
function _non_iterable_rest$4() {
|
|
8817
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
8757
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8818
8758
|
}
|
|
8819
8759
|
function _sliced_to_array$4(arr, i) {
|
|
8820
8760
|
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$4();
|
|
@@ -8924,7 +8864,7 @@ function createHasExpander() {
|
|
|
8924
8864
|
function evaluate(ev, macro, ctx) {
|
|
8925
8865
|
var nodes = macro.macroHasProps;
|
|
8926
8866
|
var i = nodes.length;
|
|
8927
|
-
var obj = ev.
|
|
8867
|
+
var obj = ev.run(nodes[--i], ctx);
|
|
8928
8868
|
var inOptionalContext;
|
|
8929
8869
|
while(i--){
|
|
8930
8870
|
var node = nodes[i];
|
|
@@ -9035,13 +8975,13 @@ function registerMacros(registry) {
|
|
|
9035
8975
|
return type;
|
|
9036
8976
|
}
|
|
9037
8977
|
function bindOptionalEvaluate(ev, exp, bindCtx, ctx, boundValue) {
|
|
9038
|
-
var res = ev.
|
|
8978
|
+
var res = ev.run(exp, ctx = bindCtx.reuse(ctx).setIterValue(boundValue, ev));
|
|
9039
8979
|
if (_instanceof$4(res, Promise) && ctx === bindCtx) ctx.async = true;
|
|
9040
8980
|
return res;
|
|
9041
8981
|
}
|
|
9042
8982
|
function bindEvaluate(ev, param, ctx) {
|
|
9043
8983
|
var val = param.val, exp = param.exp, bindCtx = param.bindCtx;
|
|
9044
|
-
var v = ev.
|
|
8984
|
+
var v = ev.run(val, ctx);
|
|
9045
8985
|
if (_instanceof$4(v, Promise)) return v.then(function(_v) {
|
|
9046
8986
|
return bindOptionalEvaluate(ev, exp, bindCtx, ctx, _v);
|
|
9047
8987
|
});
|
|
@@ -9049,7 +8989,7 @@ function registerMacros(registry) {
|
|
|
9049
8989
|
}
|
|
9050
8990
|
function bindEvaluateSync(ev, param, ctx) {
|
|
9051
8991
|
var val = param.val, exp = param.exp, bindCtx = param.bindCtx;
|
|
9052
|
-
return ev.
|
|
8992
|
+
return ev.run(exp, bindCtx.reuse(ctx).setIterValue(ev.run(val, ctx), ev));
|
|
9053
8993
|
}
|
|
9054
8994
|
functionOverload('CelNamespace.bind(ast, dyn, ast): dyn', function(param) {
|
|
9055
8995
|
var ast = param.ast, args = param.args;
|
|
@@ -9080,12 +9020,12 @@ function _instanceof$3(left, right) {
|
|
|
9080
9020
|
"@swc/helpers - instanceof";
|
|
9081
9021
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
9082
9022
|
return !!right[Symbol.hasInstance](left);
|
|
9083
|
-
} else
|
|
9084
|
-
return left instanceof right;
|
|
9085
|
-
}
|
|
9023
|
+
} else return left instanceof right;
|
|
9086
9024
|
}
|
|
9087
9025
|
function _iterable_to_array$5(iter) {
|
|
9088
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
9026
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
9027
|
+
return Array.from(iter);
|
|
9028
|
+
}
|
|
9089
9029
|
}
|
|
9090
9030
|
function _iterable_to_array_limit$3(arr, i) {
|
|
9091
9031
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -9112,10 +9052,10 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
9112
9052
|
return _arr;
|
|
9113
9053
|
}
|
|
9114
9054
|
function _non_iterable_rest$3() {
|
|
9115
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
9055
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9116
9056
|
}
|
|
9117
9057
|
function _non_iterable_spread$5() {
|
|
9118
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
9058
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9119
9059
|
}
|
|
9120
9060
|
function _sliced_to_array$3(arr, i) {
|
|
9121
9061
|
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$3();
|
|
@@ -9512,9 +9452,7 @@ function isEqual(a, b, ast, ev) {
|
|
|
9512
9452
|
}
|
|
9513
9453
|
|
|
9514
9454
|
function _assert_this_initialized$1(self) {
|
|
9515
|
-
if (self === void 0)
|
|
9516
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9517
|
-
}
|
|
9455
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9518
9456
|
return self;
|
|
9519
9457
|
}
|
|
9520
9458
|
function _call_super$1(_this, derived, args) {
|
|
@@ -9522,9 +9460,7 @@ function _call_super$1(_this, derived, args) {
|
|
|
9522
9460
|
return _possible_constructor_return$1(_this, _is_native_reflect_construct$1() ? Reflect.construct(derived, args || [], _get_prototype_of$1(_this).constructor) : derived.apply(_this, args));
|
|
9523
9461
|
}
|
|
9524
9462
|
function _class_call_check$2(instance, Constructor) {
|
|
9525
|
-
if (!(instance instanceof Constructor))
|
|
9526
|
-
throw new TypeError("Cannot call a class as a function");
|
|
9527
|
-
}
|
|
9463
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
9528
9464
|
}
|
|
9529
9465
|
function _defineProperties$2(target, props) {
|
|
9530
9466
|
for(var i = 0; i < props.length; i++){
|
|
@@ -9558,10 +9494,16 @@ function _inherits$1(subClass, superClass) {
|
|
|
9558
9494
|
});
|
|
9559
9495
|
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
9560
9496
|
}
|
|
9497
|
+
function _is_native_reflect_construct$1() {
|
|
9498
|
+
try {
|
|
9499
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9500
|
+
} catch (_) {}
|
|
9501
|
+
return (_is_native_reflect_construct$1 = function() {
|
|
9502
|
+
return !!result;
|
|
9503
|
+
})();
|
|
9504
|
+
}
|
|
9561
9505
|
function _possible_constructor_return$1(self, call) {
|
|
9562
|
-
if (call && (_type_of$2(call) === "object" || typeof call === "function"))
|
|
9563
|
-
return call;
|
|
9564
|
-
}
|
|
9506
|
+
if (call && (_type_of$2(call) === "object" || typeof call === "function")) return call;
|
|
9565
9507
|
return _assert_this_initialized$1(self);
|
|
9566
9508
|
}
|
|
9567
9509
|
function _set_prototype_of$1(o, p) {
|
|
@@ -9575,14 +9517,6 @@ function _type_of$2(obj) {
|
|
|
9575
9517
|
"@swc/helpers - typeof";
|
|
9576
9518
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9577
9519
|
}
|
|
9578
|
-
function _is_native_reflect_construct$1() {
|
|
9579
|
-
try {
|
|
9580
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9581
|
-
} catch (_) {}
|
|
9582
|
-
return (_is_native_reflect_construct$1 = function() {
|
|
9583
|
-
return !!result;
|
|
9584
|
-
})();
|
|
9585
|
-
}
|
|
9586
9520
|
var toDynTypeBinding = new Map().set('A', 'dyn').set('T', 'dyn').set('K', 'dyn').set('V', 'dyn');
|
|
9587
9521
|
/**
|
|
9588
9522
|
* TypeChecker performs static type analysis on CEL expressions
|
|
@@ -9687,15 +9621,12 @@ function _check_private_redeclaration$1(obj, privateCollection) {
|
|
|
9687
9621
|
}
|
|
9688
9622
|
}
|
|
9689
9623
|
function _class_apply_descriptor_get$1(receiver, descriptor) {
|
|
9690
|
-
if (descriptor.get)
|
|
9691
|
-
return descriptor.get.call(receiver);
|
|
9692
|
-
}
|
|
9624
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
9693
9625
|
return descriptor.value;
|
|
9694
9626
|
}
|
|
9695
9627
|
function _class_apply_descriptor_set$1(receiver, descriptor, value) {
|
|
9696
|
-
if (descriptor.set)
|
|
9697
|
-
|
|
9698
|
-
} else {
|
|
9628
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
9629
|
+
else {
|
|
9699
9630
|
if (!descriptor.writable) {
|
|
9700
9631
|
throw new TypeError("attempted to set read only private field");
|
|
9701
9632
|
}
|
|
@@ -9703,14 +9634,10 @@ function _class_apply_descriptor_set$1(receiver, descriptor, value) {
|
|
|
9703
9634
|
}
|
|
9704
9635
|
}
|
|
9705
9636
|
function _class_call_check$1(instance, Constructor) {
|
|
9706
|
-
if (!(instance instanceof Constructor))
|
|
9707
|
-
throw new TypeError("Cannot call a class as a function");
|
|
9708
|
-
}
|
|
9637
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
9709
9638
|
}
|
|
9710
9639
|
function _class_extract_field_descriptor$1(receiver, privateMap, action) {
|
|
9711
|
-
if (!privateMap.has(receiver))
|
|
9712
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
9713
|
-
}
|
|
9640
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
9714
9641
|
return privateMap.get(receiver);
|
|
9715
9642
|
}
|
|
9716
9643
|
function _class_private_field_get$1(receiver, privateMap) {
|
|
@@ -9727,9 +9654,7 @@ function _class_private_field_set$1(receiver, privateMap, value) {
|
|
|
9727
9654
|
return value;
|
|
9728
9655
|
}
|
|
9729
9656
|
function _class_private_method_get$1(receiver, privateSet, fn) {
|
|
9730
|
-
if (!privateSet.has(receiver))
|
|
9731
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
9732
|
-
}
|
|
9657
|
+
if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
|
|
9733
9658
|
return fn;
|
|
9734
9659
|
}
|
|
9735
9660
|
function _class_private_method_init$1(obj, privateSet) {
|
|
@@ -9757,24 +9682,22 @@ function _define_property$3(obj, key, value) {
|
|
|
9757
9682
|
configurable: true,
|
|
9758
9683
|
writable: true
|
|
9759
9684
|
});
|
|
9760
|
-
} else
|
|
9761
|
-
obj[key] = value;
|
|
9762
|
-
}
|
|
9685
|
+
} else obj[key] = value;
|
|
9763
9686
|
return obj;
|
|
9764
9687
|
}
|
|
9765
9688
|
function _instanceof$2(left, right) {
|
|
9766
9689
|
"@swc/helpers - instanceof";
|
|
9767
9690
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
9768
9691
|
return !!right[Symbol.hasInstance](left);
|
|
9769
|
-
} else
|
|
9770
|
-
return left instanceof right;
|
|
9771
|
-
}
|
|
9692
|
+
} else return left instanceof right;
|
|
9772
9693
|
}
|
|
9773
9694
|
function _iterable_to_array$4(iter) {
|
|
9774
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
9695
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
9696
|
+
return Array.from(iter);
|
|
9697
|
+
}
|
|
9775
9698
|
}
|
|
9776
9699
|
function _non_iterable_spread$4() {
|
|
9777
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
9700
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9778
9701
|
}
|
|
9779
9702
|
function _to_consumable_array$4(arr) {
|
|
9780
9703
|
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$4();
|
|
@@ -10880,9 +10803,7 @@ function _define_property$2(obj, key, value) {
|
|
|
10880
10803
|
configurable: true,
|
|
10881
10804
|
writable: true
|
|
10882
10805
|
});
|
|
10883
|
-
} else
|
|
10884
|
-
obj[key] = value;
|
|
10885
|
-
}
|
|
10806
|
+
} else obj[key] = value;
|
|
10886
10807
|
return obj;
|
|
10887
10808
|
}
|
|
10888
10809
|
function _object_spread$2(target) {
|
|
@@ -10962,9 +10883,7 @@ function createOptions(opts) {
|
|
|
10962
10883
|
}
|
|
10963
10884
|
|
|
10964
10885
|
function _assert_this_initialized(self) {
|
|
10965
|
-
if (self === void 0)
|
|
10966
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10967
|
-
}
|
|
10886
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10968
10887
|
return self;
|
|
10969
10888
|
}
|
|
10970
10889
|
function _call_super(_this, derived, args) {
|
|
@@ -10977,15 +10896,12 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
10977
10896
|
}
|
|
10978
10897
|
}
|
|
10979
10898
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
10980
|
-
if (descriptor.get)
|
|
10981
|
-
return descriptor.get.call(receiver);
|
|
10982
|
-
}
|
|
10899
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
10983
10900
|
return descriptor.value;
|
|
10984
10901
|
}
|
|
10985
10902
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
10986
|
-
if (descriptor.set)
|
|
10987
|
-
|
|
10988
|
-
} else {
|
|
10903
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
10904
|
+
else {
|
|
10989
10905
|
if (!descriptor.writable) {
|
|
10990
10906
|
throw new TypeError("attempted to set read only private field");
|
|
10991
10907
|
}
|
|
@@ -10993,14 +10909,10 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
10993
10909
|
}
|
|
10994
10910
|
}
|
|
10995
10911
|
function _class_call_check(instance, Constructor) {
|
|
10996
|
-
if (!(instance instanceof Constructor))
|
|
10997
|
-
throw new TypeError("Cannot call a class as a function");
|
|
10998
|
-
}
|
|
10912
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
10999
10913
|
}
|
|
11000
10914
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
11001
|
-
if (!privateMap.has(receiver))
|
|
11002
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
11003
|
-
}
|
|
10915
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
11004
10916
|
return privateMap.get(receiver);
|
|
11005
10917
|
}
|
|
11006
10918
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -11017,9 +10929,7 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
11017
10929
|
return value;
|
|
11018
10930
|
}
|
|
11019
10931
|
function _class_private_method_get(receiver, privateSet, fn) {
|
|
11020
|
-
if (!privateSet.has(receiver))
|
|
11021
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
11022
|
-
}
|
|
10932
|
+
if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
|
|
11023
10933
|
return fn;
|
|
11024
10934
|
}
|
|
11025
10935
|
function _class_private_method_init(obj, privateSet) {
|
|
@@ -11062,14 +10972,18 @@ function _instanceof$1(left, right) {
|
|
|
11062
10972
|
"@swc/helpers - instanceof";
|
|
11063
10973
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
11064
10974
|
return !!right[Symbol.hasInstance](left);
|
|
11065
|
-
} else
|
|
11066
|
-
|
|
11067
|
-
|
|
10975
|
+
} else return left instanceof right;
|
|
10976
|
+
}
|
|
10977
|
+
function _is_native_reflect_construct() {
|
|
10978
|
+
try {
|
|
10979
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
10980
|
+
} catch (_) {}
|
|
10981
|
+
return (_is_native_reflect_construct = function() {
|
|
10982
|
+
return !!result;
|
|
10983
|
+
})();
|
|
11068
10984
|
}
|
|
11069
10985
|
function _possible_constructor_return(self, call) {
|
|
11070
|
-
if (call && (_type_of$1(call) === "object" || typeof call === "function"))
|
|
11071
|
-
return call;
|
|
11072
|
-
}
|
|
10986
|
+
if (call && (_type_of$1(call) === "object" || typeof call === "function")) return call;
|
|
11073
10987
|
return _assert_this_initialized(self);
|
|
11074
10988
|
}
|
|
11075
10989
|
function _set_prototype_of(o, p) {
|
|
@@ -11083,14 +10997,6 @@ function _type_of$1(obj) {
|
|
|
11083
10997
|
"@swc/helpers - typeof";
|
|
11084
10998
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
11085
10999
|
}
|
|
11086
|
-
function _is_native_reflect_construct() {
|
|
11087
|
-
try {
|
|
11088
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
11089
|
-
} catch (_) {}
|
|
11090
|
-
return (_is_native_reflect_construct = function() {
|
|
11091
|
-
return !!result;
|
|
11092
|
-
})();
|
|
11093
|
-
}
|
|
11094
11000
|
var globalRegistry = createRegistry({
|
|
11095
11001
|
enableOptionalTypes: false
|
|
11096
11002
|
});
|
|
@@ -11294,7 +11200,7 @@ var Evaluator = /*#__PURE__*/ function(Base) {
|
|
|
11294
11200
|
key: "tryEval",
|
|
11295
11201
|
value: function tryEval(ast, ctx) {
|
|
11296
11202
|
try {
|
|
11297
|
-
var res = this.
|
|
11203
|
+
var res = this.run(ast, ctx);
|
|
11298
11204
|
if (_instanceof$1(res, Promise)) return res.catch(function(err) {
|
|
11299
11205
|
return err;
|
|
11300
11206
|
});
|
|
@@ -11305,8 +11211,8 @@ var Evaluator = /*#__PURE__*/ function(Base) {
|
|
|
11305
11211
|
}
|
|
11306
11212
|
},
|
|
11307
11213
|
{
|
|
11308
|
-
key: "
|
|
11309
|
-
value: function
|
|
11214
|
+
key: "run",
|
|
11215
|
+
value: function run(ast, ctx) {
|
|
11310
11216
|
return ast.evaluate(this, ast, ctx);
|
|
11311
11217
|
}
|
|
11312
11218
|
}
|
|
@@ -11342,12 +11248,12 @@ function _instanceof(left, right) {
|
|
|
11342
11248
|
"@swc/helpers - instanceof";
|
|
11343
11249
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
11344
11250
|
return !!right[Symbol.hasInstance](left);
|
|
11345
|
-
} else
|
|
11346
|
-
return left instanceof right;
|
|
11347
|
-
}
|
|
11251
|
+
} else return left instanceof right;
|
|
11348
11252
|
}
|
|
11349
11253
|
function _iterable_to_array$3(iter) {
|
|
11350
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11254
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
11255
|
+
return Array.from(iter);
|
|
11256
|
+
}
|
|
11351
11257
|
}
|
|
11352
11258
|
function _iterable_to_array_limit$2(arr, i) {
|
|
11353
11259
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -11374,10 +11280,10 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
11374
11280
|
return _arr;
|
|
11375
11281
|
}
|
|
11376
11282
|
function _non_iterable_rest$2() {
|
|
11377
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
11283
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11378
11284
|
}
|
|
11379
11285
|
function _non_iterable_spread$3() {
|
|
11380
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
11286
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11381
11287
|
}
|
|
11382
11288
|
function _sliced_to_array$2(arr, i) {
|
|
11383
11289
|
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$2();
|
|
@@ -12228,9 +12134,7 @@ function _define_property$1(obj, key, value) {
|
|
|
12228
12134
|
configurable: true,
|
|
12229
12135
|
writable: true
|
|
12230
12136
|
});
|
|
12231
|
-
} else
|
|
12232
|
-
obj[key] = value;
|
|
12233
|
-
}
|
|
12137
|
+
} else obj[key] = value;
|
|
12234
12138
|
return obj;
|
|
12235
12139
|
}
|
|
12236
12140
|
function _object_spread$1(target) {
|
|
@@ -12591,10 +12495,12 @@ function _array_without_holes$2(arr) {
|
|
|
12591
12495
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
12592
12496
|
}
|
|
12593
12497
|
function _iterable_to_array$2(iter) {
|
|
12594
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
12498
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
12499
|
+
return Array.from(iter);
|
|
12500
|
+
}
|
|
12595
12501
|
}
|
|
12596
12502
|
function _non_iterable_spread$2() {
|
|
12597
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
12503
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12598
12504
|
}
|
|
12599
12505
|
function _to_consumable_array$2(arr) {
|
|
12600
12506
|
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$2();
|
|
@@ -14807,9 +14713,7 @@ function _define_property(obj, key, value) {
|
|
|
14807
14713
|
configurable: true,
|
|
14808
14714
|
writable: true
|
|
14809
14715
|
});
|
|
14810
|
-
} else
|
|
14811
|
-
obj[key] = value;
|
|
14812
|
-
}
|
|
14716
|
+
} else obj[key] = value;
|
|
14813
14717
|
return obj;
|
|
14814
14718
|
}
|
|
14815
14719
|
function _iterable_to_array_limit$1(arr, i) {
|
|
@@ -14837,7 +14741,7 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
14837
14741
|
return _arr;
|
|
14838
14742
|
}
|
|
14839
14743
|
function _non_iterable_rest$1() {
|
|
14840
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
14744
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14841
14745
|
}
|
|
14842
14746
|
function _object_spread(target) {
|
|
14843
14747
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -14864,9 +14768,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
14864
14768
|
}
|
|
14865
14769
|
function _object_spread_props(target, source) {
|
|
14866
14770
|
source = source != null ? source : {};
|
|
14867
|
-
if (Object.getOwnPropertyDescriptors)
|
|
14868
|
-
|
|
14869
|
-
} else {
|
|
14771
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14772
|
+
else {
|
|
14870
14773
|
ownKeys(Object(source)).forEach(function(key) {
|
|
14871
14774
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14872
14775
|
});
|
|
@@ -16220,10 +16123,12 @@ function _array_without_holes$1(arr) {
|
|
|
16220
16123
|
if (Array.isArray(arr)) return _array_like_to_array$2(arr);
|
|
16221
16124
|
}
|
|
16222
16125
|
function _iterable_to_array$1(iter) {
|
|
16223
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
16126
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
16127
|
+
return Array.from(iter);
|
|
16128
|
+
}
|
|
16224
16129
|
}
|
|
16225
16130
|
function _non_iterable_spread$1() {
|
|
16226
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
16131
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16227
16132
|
}
|
|
16228
16133
|
function _to_consumable_array$1(arr) {
|
|
16229
16134
|
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$1();
|
|
@@ -16560,7 +16465,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
16560
16465
|
return _arr;
|
|
16561
16466
|
}
|
|
16562
16467
|
function _non_iterable_rest() {
|
|
16563
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
16468
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16564
16469
|
}
|
|
16565
16470
|
function _sliced_to_array(arr, i) {
|
|
16566
16471
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest();
|
|
@@ -16590,10 +16495,10 @@ var MODEL_COMPANIONS = [
|
|
|
16590
16495
|
'CompositeKey',
|
|
16591
16496
|
'Read'
|
|
16592
16497
|
];
|
|
16593
|
-
var PROPERTY_COMPANIONS = [
|
|
16498
|
+
var PROPERTY_COMPANIONS = new Set([
|
|
16594
16499
|
'Variable',
|
|
16595
16500
|
'VariableSyncFlag'
|
|
16596
|
-
];
|
|
16501
|
+
]);
|
|
16597
16502
|
var DEFAULT_ALLOWED_ENCODINGS = [
|
|
16598
16503
|
'two-way',
|
|
16599
16504
|
'one-way'
|
|
@@ -16683,7 +16588,7 @@ function reportUnknownModelCompanions(ctx, companions, knownCompanions) {
|
|
|
16683
16588
|
try {
|
|
16684
16589
|
for(var _iterator = companions.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
16685
16590
|
var _step_value = _sliced_to_array(_step.value, 2), suffix = _step_value[0], instances = _step_value[1];
|
|
16686
|
-
if (PROPERTY_COMPANIONS.
|
|
16591
|
+
if (PROPERTY_COMPANIONS.has(suffix)) continue;
|
|
16687
16592
|
if (knownCompanions.includes(suffix)) continue;
|
|
16688
16593
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
16689
16594
|
try {
|
|
@@ -17896,10 +17801,12 @@ function _array_without_holes(arr) {
|
|
|
17896
17801
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
17897
17802
|
}
|
|
17898
17803
|
function _iterable_to_array(iter) {
|
|
17899
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
17804
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
17805
|
+
return Array.from(iter);
|
|
17806
|
+
}
|
|
17900
17807
|
}
|
|
17901
17808
|
function _non_iterable_spread() {
|
|
17902
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
17809
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17903
17810
|
}
|
|
17904
17811
|
function _to_consumable_array(arr) {
|
|
17905
17812
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|