@dereekb/firebase 13.41.0 → 13.42.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 +145 -170
- package/eslint/package.json +3 -3
- package/index.esm.js +2865 -551
- package/package.json +5 -5
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +4 -0
- package/src/lib/common/storage/context.d.ts +9 -1
- package/src/lib/common/storage/driver/accessor.d.ts +12 -0
- package/src/lib/common/storage/index.d.ts +1 -0
- package/src/lib/common/storage/storage.url.d.ts +69 -0
- package/src/lib/model/calendar/calendar.action.d.ts +34 -0
- package/src/lib/model/calendar/calendar.api.d.ts +147 -0
- package/src/lib/model/calendar/calendar.api.error.d.ts +24 -0
- package/src/lib/model/calendar/calendar.d.ts +460 -0
- package/src/lib/model/calendar/calendar.expand.d.ts +95 -0
- package/src/lib/model/calendar/calendar.ics.d.ts +322 -0
- package/src/lib/model/calendar/calendar.id.d.ts +110 -0
- package/src/lib/model/calendar/calendar.processing.d.ts +77 -0
- package/src/lib/model/calendar/calendar.query.d.ts +76 -0
- package/src/lib/model/calendar/calendar.schedule.d.ts +82 -0
- package/src/lib/model/calendar/calendar.type.d.ts +188 -0
- package/src/lib/model/calendar/calendar.util.d.ts +485 -0
- package/src/lib/model/calendar/index.d.ts +12 -0
- package/src/lib/model/index.d.ts +1 -0
- package/src/lib/model/notification/notification.message.d.ts +83 -0
- package/src/lib/model/notification/notification.query.d.ts +41 -0
- package/src/lib/model/oidcmodel/oidcmodel.query.d.ts +36 -0
- package/src/lib/model/storagefile/storagefile.api.d.ts +23 -2
- package/src/lib/model/storagefile/storagefile.create.d.ts +14 -3
- package/src/lib/model/storagefile/storagefile.query.d.ts +36 -0
- package/src/lib/model/system/index.d.ts +1 -0
- package/src/lib/model/system/system.scheduler.d.ts +235 -0
- package/test/index.esm.js +24 -1
- package/test/package.json +6 -6
package/eslint/index.esm.js
CHANGED
|
@@ -244,7 +244,7 @@ import { parse as parse$2 } from '@typescript-eslint/parser';
|
|
|
244
244
|
description: 'Reject function signatures with more than four positional parameters; require a single config object.'
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
-
function _array_like_to_array$
|
|
247
|
+
function _array_like_to_array$h(arr, len) {
|
|
248
248
|
if (len == null || len > arr.length) len = arr.length;
|
|
249
249
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
250
250
|
return arr2;
|
|
@@ -280,15 +280,15 @@ function _non_iterable_rest$a() {
|
|
|
280
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
|
-
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$
|
|
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();
|
|
284
284
|
}
|
|
285
|
-
function _unsupported_iterable_to_array$
|
|
285
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
286
286
|
if (!o) return;
|
|
287
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
287
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
288
288
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
289
289
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
290
290
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
291
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
291
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
292
292
|
}
|
|
293
293
|
var TAG_LINE_REGEX = /^@([A-Za-z_]\w*)\s*(.*)$/;
|
|
294
294
|
var TYPE_ANNOTATION_REGEX = /^\{([^}]*)\}\s*(.*)$/;
|
|
@@ -637,7 +637,7 @@ var LINE_PREFIX_REGEX = /^(\s*\*?\s?)(.*)$/;
|
|
|
637
637
|
* companions are required/optional, what value format each accepts, and which
|
|
638
638
|
* messageId to emit when a check fails. The rule body itself only wires the
|
|
639
639
|
* visitors and message map; all value-format validation lives here.
|
|
640
|
-
*/ function _array_like_to_array$
|
|
640
|
+
*/ function _array_like_to_array$g(arr, len) {
|
|
641
641
|
if (len == null || len > arr.length) len = arr.length;
|
|
642
642
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
643
643
|
return arr2;
|
|
@@ -673,15 +673,15 @@ function _non_iterable_rest$9() {
|
|
|
673
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
|
-
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$
|
|
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();
|
|
677
677
|
}
|
|
678
|
-
function _unsupported_iterable_to_array$
|
|
678
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
679
679
|
if (!o) return;
|
|
680
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
680
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
681
681
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
682
682
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
683
683
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
684
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
684
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
687
|
* Kebab-case slug pattern: lowercase letters/digits, words separated by single hyphens,
|
|
@@ -1129,30 +1129,30 @@ function checkCompanion(input) {
|
|
|
1129
1129
|
return result;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
function _array_like_to_array$
|
|
1132
|
+
function _array_like_to_array$f(arr, len) {
|
|
1133
1133
|
if (len == null || len > arr.length) len = arr.length;
|
|
1134
1134
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1135
1135
|
return arr2;
|
|
1136
1136
|
}
|
|
1137
|
-
function _array_without_holes$
|
|
1138
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1137
|
+
function _array_without_holes$a(arr) {
|
|
1138
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
1139
1139
|
}
|
|
1140
|
-
function _iterable_to_array$
|
|
1140
|
+
function _iterable_to_array$a(iter) {
|
|
1141
1141
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1142
1142
|
}
|
|
1143
|
-
function _non_iterable_spread$
|
|
1143
|
+
function _non_iterable_spread$a() {
|
|
1144
1144
|
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
1145
|
}
|
|
1146
|
-
function _to_consumable_array$
|
|
1147
|
-
return _array_without_holes$
|
|
1146
|
+
function _to_consumable_array$a(arr) {
|
|
1147
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$a();
|
|
1148
1148
|
}
|
|
1149
|
-
function _unsupported_iterable_to_array$
|
|
1149
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
1150
1150
|
if (!o) return;
|
|
1151
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1151
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
1152
1152
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1153
1153
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1154
1154
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1155
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1155
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
1156
1156
|
}
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Module that publishes the `@dereekb/firebase` Firestore constraint factories (`where`, `orderBy`, etc.).
|
|
@@ -1301,7 +1301,7 @@ function qualifiedNameTail(node) {
|
|
|
1301
1301
|
* Combined list of every Firestore constraint factory exported from `@dereekb/firebase`. Used
|
|
1302
1302
|
* by the body-coherence rule to ensure a tagged factory body contains at least one constraint
|
|
1303
1303
|
* call of any kind (index-affecting or pagination) before warning that the marker is orphaned.
|
|
1304
|
-
*/ var DEFAULT_CONSTRAINT_FACTORY_NAMES = _to_consumable_array$
|
|
1304
|
+
*/ var DEFAULT_CONSTRAINT_FACTORY_NAMES = _to_consumable_array$a(DEFAULT_INDEX_AFFECTING_CONSTRAINT_NAMES).concat(_to_consumable_array$a(DEFAULT_PAGINATION_CONSTRAINT_NAMES));
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Creates an empty {@link ImportRegistry}.
|
|
1307
1307
|
*
|
|
@@ -1762,30 +1762,30 @@ function qualifiedNameTail(node) {
|
|
|
1762
1762
|
});
|
|
1763
1763
|
}
|
|
1764
1764
|
|
|
1765
|
-
function _array_like_to_array$
|
|
1765
|
+
function _array_like_to_array$e(arr, len) {
|
|
1766
1766
|
if (len == null || len > arr.length) len = arr.length;
|
|
1767
1767
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1768
1768
|
return arr2;
|
|
1769
1769
|
}
|
|
1770
|
-
function _array_without_holes$
|
|
1771
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1770
|
+
function _array_without_holes$9(arr) {
|
|
1771
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
1772
1772
|
}
|
|
1773
|
-
function _iterable_to_array$
|
|
1773
|
+
function _iterable_to_array$9(iter) {
|
|
1774
1774
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1775
1775
|
}
|
|
1776
|
-
function _non_iterable_spread$
|
|
1776
|
+
function _non_iterable_spread$9() {
|
|
1777
1777
|
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
1778
|
}
|
|
1779
|
-
function _to_consumable_array$
|
|
1780
|
-
return _array_without_holes$
|
|
1779
|
+
function _to_consumable_array$9(arr) {
|
|
1780
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$9();
|
|
1781
1781
|
}
|
|
1782
|
-
function _unsupported_iterable_to_array$
|
|
1782
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
1783
1783
|
if (!o) return;
|
|
1784
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1784
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
1785
1785
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1786
1786
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1787
1787
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1788
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1788
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
1789
1789
|
}
|
|
1790
1790
|
/**
|
|
1791
1791
|
* ESLint rule that forbids inline `@dereekb/firebase` Firestore constraint factory calls
|
|
@@ -1843,7 +1843,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
1843
1843
|
var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
|
|
1844
1844
|
var sourceCode = context.sourceCode;
|
|
1845
1845
|
var baseNames = (_options_constraintNames = options.constraintNames) !== null && _options_constraintNames !== void 0 ? _options_constraintNames : DEFAULT_INDEX_AFFECTING_CONSTRAINT_NAMES;
|
|
1846
|
-
var constraintNames = new Set(_to_consumable_array$
|
|
1846
|
+
var constraintNames = new Set(_to_consumable_array$9(baseNames).concat(_to_consumable_array$9((_options_additionalConstraintNames = options.additionalConstraintNames) !== null && _options_additionalConstraintNames !== void 0 ? _options_additionalConstraintNames : [])));
|
|
1847
1847
|
var allowedSources = new Set((_options_allowedImportSources = options.allowedImportSources) !== null && _options_allowedImportSources !== void 0 ? _options_allowedImportSources : [
|
|
1848
1848
|
FIREBASE_MODULE
|
|
1849
1849
|
]);
|
|
@@ -2927,30 +2927,30 @@ function recordVariableDeclarator(node, emptyArrayDeclarators) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
};
|
|
2929
2929
|
|
|
2930
|
-
function _array_like_to_array$
|
|
2930
|
+
function _array_like_to_array$d(arr, len) {
|
|
2931
2931
|
if (len == null || len > arr.length) len = arr.length;
|
|
2932
2932
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2933
2933
|
return arr2;
|
|
2934
2934
|
}
|
|
2935
|
-
function _array_without_holes$
|
|
2936
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2935
|
+
function _array_without_holes$8(arr) {
|
|
2936
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
2937
2937
|
}
|
|
2938
|
-
function _iterable_to_array$
|
|
2938
|
+
function _iterable_to_array$8(iter) {
|
|
2939
2939
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2940
2940
|
}
|
|
2941
|
-
function _non_iterable_spread$
|
|
2941
|
+
function _non_iterable_spread$8() {
|
|
2942
2942
|
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
2943
|
}
|
|
2944
|
-
function _to_consumable_array$
|
|
2945
|
-
return _array_without_holes$
|
|
2944
|
+
function _to_consumable_array$8(arr) {
|
|
2945
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$8();
|
|
2946
2946
|
}
|
|
2947
|
-
function _unsupported_iterable_to_array$
|
|
2947
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
2948
2948
|
if (!o) return;
|
|
2949
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2949
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
2950
2950
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2951
2951
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2952
2952
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2953
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2953
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
2954
2954
|
}
|
|
2955
2955
|
function hasTypeArgument(node) {
|
|
2956
2956
|
var _node_typeArguments;
|
|
@@ -3010,7 +3010,7 @@ function hasTypeArgument(node) {
|
|
|
3010
3010
|
var _context_options_, _options_constraintNames, _options_additionalConstraintNames, _options_allowedImportSources;
|
|
3011
3011
|
var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
|
|
3012
3012
|
var baseNames = (_options_constraintNames = options.constraintNames) !== null && _options_constraintNames !== void 0 ? _options_constraintNames : DEFAULT_INDEX_AFFECTING_CONSTRAINT_NAMES;
|
|
3013
|
-
var constraintNames = new Set(_to_consumable_array$
|
|
3013
|
+
var constraintNames = new Set(_to_consumable_array$8(baseNames).concat(_to_consumable_array$8((_options_additionalConstraintNames = options.additionalConstraintNames) !== null && _options_additionalConstraintNames !== void 0 ? _options_additionalConstraintNames : [])));
|
|
3014
3014
|
var allowedSources = new Set((_options_allowedImportSources = options.allowedImportSources) !== null && _options_allowedImportSources !== void 0 ? _options_allowedImportSources : [
|
|
3015
3015
|
FIREBASE_MODULE
|
|
3016
3016
|
]);
|
|
@@ -3051,7 +3051,7 @@ function hasTypeArgument(node) {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
};
|
|
3053
3053
|
|
|
3054
|
-
function _array_like_to_array$
|
|
3054
|
+
function _array_like_to_array$c(arr, len) {
|
|
3055
3055
|
if (len == null || len > arr.length) len = arr.length;
|
|
3056
3056
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3057
3057
|
return arr2;
|
|
@@ -3087,15 +3087,15 @@ function _non_iterable_rest$8() {
|
|
|
3087
3087
|
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
3088
|
}
|
|
3089
3089
|
function _sliced_to_array$8(arr, i) {
|
|
3090
|
-
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$
|
|
3090
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$8();
|
|
3091
3091
|
}
|
|
3092
|
-
function _unsupported_iterable_to_array$
|
|
3092
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
3093
3093
|
if (!o) return;
|
|
3094
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3094
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
3095
3095
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3096
3096
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3097
3097
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3098
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3098
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
3099
3099
|
}
|
|
3100
3100
|
/**
|
|
3101
3101
|
* Type-reference name that triggers this rule. Variables whose declared type is
|
|
@@ -4663,7 +4663,7 @@ var RESERVED = new Set([
|
|
|
4663
4663
|
'prototype'
|
|
4664
4664
|
]);
|
|
4665
4665
|
|
|
4666
|
-
function _array_like_to_array$
|
|
4666
|
+
function _array_like_to_array$b(arr, len) {
|
|
4667
4667
|
if (len == null || len > arr.length) len = arr.length;
|
|
4668
4668
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4669
4669
|
return arr2;
|
|
@@ -4766,19 +4766,19 @@ function _non_iterable_rest$7() {
|
|
|
4766
4766
|
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
4767
|
}
|
|
4768
4768
|
function _sliced_to_array$7(arr, i) {
|
|
4769
|
-
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$
|
|
4769
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$7();
|
|
4770
4770
|
}
|
|
4771
4771
|
function _type_of$6(obj) {
|
|
4772
4772
|
"@swc/helpers - typeof";
|
|
4773
4773
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
4774
4774
|
}
|
|
4775
|
-
function _unsupported_iterable_to_array$
|
|
4775
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
4776
4776
|
if (!o) return;
|
|
4777
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4777
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
4778
4778
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4779
4779
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4780
4780
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4781
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4781
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
4782
4782
|
}
|
|
4783
4783
|
var _value = /*#__PURE__*/ new WeakMap();
|
|
4784
4784
|
var _Symbol_for = Symbol.for('nodejs.util.inspect.custom');
|
|
@@ -5433,7 +5433,7 @@ function stringSize(str) {
|
|
|
5433
5433
|
return count;
|
|
5434
5434
|
}
|
|
5435
5435
|
|
|
5436
|
-
function _array_like_to_array$
|
|
5436
|
+
function _array_like_to_array$a(arr, len) {
|
|
5437
5437
|
if (len == null || len > arr.length) len = arr.length;
|
|
5438
5438
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5439
5439
|
return arr2;
|
|
@@ -5441,8 +5441,8 @@ function _array_like_to_array$b(arr, len) {
|
|
|
5441
5441
|
function _array_with_holes$6(arr) {
|
|
5442
5442
|
if (Array.isArray(arr)) return arr;
|
|
5443
5443
|
}
|
|
5444
|
-
function _array_without_holes$
|
|
5445
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5444
|
+
function _array_without_holes$7(arr) {
|
|
5445
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
5446
5446
|
}
|
|
5447
5447
|
function _assert_this_initialized$2(self) {
|
|
5448
5448
|
if (self === void 0) {
|
|
@@ -5598,7 +5598,7 @@ function _instanceof$6(left, right) {
|
|
|
5598
5598
|
function _is_native_function(fn) {
|
|
5599
5599
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
5600
5600
|
}
|
|
5601
|
-
function _iterable_to_array$
|
|
5601
|
+
function _iterable_to_array$7(iter) {
|
|
5602
5602
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5603
5603
|
}
|
|
5604
5604
|
function _iterable_to_array_limit$6(arr, i) {
|
|
@@ -5628,7 +5628,7 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
5628
5628
|
function _non_iterable_rest$6() {
|
|
5629
5629
|
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
5630
|
}
|
|
5631
|
-
function _non_iterable_spread$
|
|
5631
|
+
function _non_iterable_spread$7() {
|
|
5632
5632
|
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
5633
|
}
|
|
5634
5634
|
function _possible_constructor_return$2(self, call) {
|
|
@@ -5645,7 +5645,7 @@ function _set_prototype_of$2(o, p) {
|
|
|
5645
5645
|
return _set_prototype_of$2(o, p);
|
|
5646
5646
|
}
|
|
5647
5647
|
function _sliced_to_array$6(arr, i) {
|
|
5648
|
-
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$
|
|
5648
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$6();
|
|
5649
5649
|
}
|
|
5650
5650
|
function _super_prop_base(object, property) {
|
|
5651
5651
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
@@ -5654,20 +5654,20 @@ function _super_prop_base(object, property) {
|
|
|
5654
5654
|
}
|
|
5655
5655
|
return object;
|
|
5656
5656
|
}
|
|
5657
|
-
function _to_consumable_array$
|
|
5658
|
-
return _array_without_holes$
|
|
5657
|
+
function _to_consumable_array$7(arr) {
|
|
5658
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$7();
|
|
5659
5659
|
}
|
|
5660
5660
|
function _type_of$5(obj) {
|
|
5661
5661
|
"@swc/helpers - typeof";
|
|
5662
5662
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5663
5663
|
}
|
|
5664
|
-
function _unsupported_iterable_to_array$
|
|
5664
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
5665
5665
|
if (!o) return;
|
|
5666
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5666
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
5667
5667
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5668
5668
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5669
5669
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5670
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5670
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
5671
5671
|
}
|
|
5672
5672
|
function _wrap_native_super(Class) {
|
|
5673
5673
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
@@ -6513,7 +6513,7 @@ var objTypesDecls = [
|
|
|
6513
6513
|
TYPES.bytes,
|
|
6514
6514
|
celTypes.bytes
|
|
6515
6515
|
]
|
|
6516
|
-
].concat(_to_consumable_array$
|
|
6516
|
+
].concat(_to_consumable_array$7(typeof Buffer !== 'undefined' ? [
|
|
6517
6517
|
[
|
|
6518
6518
|
Buffer,
|
|
6519
6519
|
'bytes',
|
|
@@ -7156,11 +7156,11 @@ function ensureCandiate(c, key) {
|
|
|
7156
7156
|
}
|
|
7157
7157
|
function getOperators() {
|
|
7158
7158
|
if (_class_private_field_get$2(this, _operators)) return _class_private_field_get$2(this, _operators);
|
|
7159
|
-
return _class_private_field_set$2(this, _operators, _to_consumable_array$
|
|
7159
|
+
return _class_private_field_set$2(this, _operators, _to_consumable_array$7(_class_private_field_get$2(this, _others).operators));
|
|
7160
7160
|
}
|
|
7161
7161
|
function getFunctions() {
|
|
7162
7162
|
if (_class_private_field_get$2(this, _functions)) return _class_private_field_get$2(this, _functions);
|
|
7163
|
-
return _class_private_field_set$2(this, _functions, _to_consumable_array$
|
|
7163
|
+
return _class_private_field_set$2(this, _functions, _to_consumable_array$7(_class_private_field_get$2(this, _others).functions));
|
|
7164
7164
|
}
|
|
7165
7165
|
function functionCandidates(key) {
|
|
7166
7166
|
if (_class_private_field_get$2(this, _functionsByKey)) return _class_private_method_get$2(this, _ensureCandiate, ensureCandiate).call(this, _class_private_field_get$2(this, _functionsByKey), key);
|
|
@@ -7272,7 +7272,7 @@ function createDeclaration(creator, key) {
|
|
|
7272
7272
|
for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
|
|
7273
7273
|
args[_key - 2] = arguments[_key];
|
|
7274
7274
|
}
|
|
7275
|
-
return _class_private_field_get$2(this, _typeDeclarations).get(key) || _class_private_field_get$2(this, _typeDeclarations).set(key, creator.apply(void 0, _to_consumable_array$
|
|
7275
|
+
return _class_private_field_get$2(this, _typeDeclarations).get(key) || _class_private_field_get$2(this, _typeDeclarations).set(key, creator.apply(void 0, _to_consumable_array$7(args))).get(key);
|
|
7276
7276
|
}
|
|
7277
7277
|
function toCelFieldType(field) {
|
|
7278
7278
|
if (typeof field === 'string') return {
|
|
@@ -7725,7 +7725,7 @@ var OverlayContext = /*#__PURE__*/ function() {
|
|
|
7725
7725
|
}
|
|
7726
7726
|
}
|
|
7727
7727
|
|
|
7728
|
-
function _array_like_to_array$
|
|
7728
|
+
function _array_like_to_array$9(arr, len) {
|
|
7729
7729
|
if (len == null || len > arr.length) len = arr.length;
|
|
7730
7730
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7731
7731
|
return arr2;
|
|
@@ -7733,8 +7733,8 @@ function _array_like_to_array$a(arr, len) {
|
|
|
7733
7733
|
function _array_with_holes$5(arr) {
|
|
7734
7734
|
if (Array.isArray(arr)) return arr;
|
|
7735
7735
|
}
|
|
7736
|
-
function _array_without_holes$
|
|
7737
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7736
|
+
function _array_without_holes$6(arr) {
|
|
7737
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
7738
7738
|
}
|
|
7739
7739
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7740
7740
|
try {
|
|
@@ -7804,7 +7804,7 @@ function _instanceof$5(left, right) {
|
|
|
7804
7804
|
return left instanceof right;
|
|
7805
7805
|
}
|
|
7806
7806
|
}
|
|
7807
|
-
function _iterable_to_array$
|
|
7807
|
+
function _iterable_to_array$6(iter) {
|
|
7808
7808
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7809
7809
|
}
|
|
7810
7810
|
function _iterable_to_array_limit$5(arr, i) {
|
|
@@ -7834,26 +7834,26 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
7834
7834
|
function _non_iterable_rest$5() {
|
|
7835
7835
|
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
7836
|
}
|
|
7837
|
-
function _non_iterable_spread$
|
|
7837
|
+
function _non_iterable_spread$6() {
|
|
7838
7838
|
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
7839
|
}
|
|
7840
7840
|
function _sliced_to_array$5(arr, i) {
|
|
7841
|
-
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$
|
|
7841
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$5();
|
|
7842
7842
|
}
|
|
7843
|
-
function _to_consumable_array$
|
|
7844
|
-
return _array_without_holes$
|
|
7843
|
+
function _to_consumable_array$6(arr) {
|
|
7844
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$6();
|
|
7845
7845
|
}
|
|
7846
7846
|
function _type_of$4(obj) {
|
|
7847
7847
|
"@swc/helpers - typeof";
|
|
7848
7848
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7849
7849
|
}
|
|
7850
|
-
function _unsupported_iterable_to_array$
|
|
7850
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7851
7851
|
if (!o) return;
|
|
7852
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7852
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7853
7853
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7854
7854
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7855
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$
|
|
7856
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7857
7857
|
}
|
|
7858
7858
|
function _ts_generator(thisArg, body) {
|
|
7859
7859
|
var f, y, t, _ = {
|
|
@@ -8243,8 +8243,8 @@ function comprehensionElementType(chk, iterable, ctx) {
|
|
|
8243
8243
|
throw chk.createError('invalid_comprehension_range', "Expression of type '".concat(chk.formatType(iterType), "' cannot be range of a comprehension (must be list, map, or dynamic)."), iterable);
|
|
8244
8244
|
}
|
|
8245
8245
|
function toIterable(ev, args, coll) {
|
|
8246
|
-
if (_instanceof$5(coll, Set)) return _to_consumable_array$
|
|
8247
|
-
if (_instanceof$5(coll, Map)) return _to_consumable_array$
|
|
8246
|
+
if (_instanceof$5(coll, Set)) return _to_consumable_array$6(coll);
|
|
8247
|
+
if (_instanceof$5(coll, Map)) return _to_consumable_array$6(coll.keys());
|
|
8248
8248
|
if (coll && (typeof coll === "undefined" ? "undefined" : _type_of$4(coll)) === 'object') return objKeys(coll);
|
|
8249
8249
|
throw ev.createError('invalid_comprehension_range', "Expression of type '".concat(ev.debugType(coll), "' cannot be range of a comprehension (must be list, map, or dynamic)."), args.iterable);
|
|
8250
8250
|
}
|
|
@@ -8515,7 +8515,7 @@ var OPERATORS = {
|
|
|
8515
8515
|
});
|
|
8516
8516
|
ast.receiverWithArgs = [
|
|
8517
8517
|
receiver
|
|
8518
|
-
].concat(_to_consumable_array$
|
|
8518
|
+
].concat(_to_consumable_array$6(args));
|
|
8519
8519
|
ast.handle = maybeAsync(ast.receiverWithArgs, false, callRecFn);
|
|
8520
8520
|
if (receiverType.kind === 'dyn' && candidates.returnType) return candidates.returnType;
|
|
8521
8521
|
var decl = candidates.findFunction(argTypes, receiverType);
|
|
@@ -8768,7 +8768,7 @@ try {
|
|
|
8768
8768
|
}
|
|
8769
8769
|
}
|
|
8770
8770
|
|
|
8771
|
-
function _array_like_to_array$
|
|
8771
|
+
function _array_like_to_array$8(arr, len) {
|
|
8772
8772
|
if (len == null || len > arr.length) len = arr.length;
|
|
8773
8773
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8774
8774
|
return arr2;
|
|
@@ -8817,15 +8817,15 @@ function _non_iterable_rest$4() {
|
|
|
8817
8817
|
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
8818
|
}
|
|
8819
8819
|
function _sliced_to_array$4(arr, i) {
|
|
8820
|
-
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$
|
|
8820
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$4();
|
|
8821
8821
|
}
|
|
8822
|
-
function _unsupported_iterable_to_array$
|
|
8822
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
8823
8823
|
if (!o) return;
|
|
8824
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8824
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
8825
8825
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8826
8826
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8827
8827
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8828
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8828
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
8829
8829
|
}
|
|
8830
8830
|
var identity = function identity(x) {
|
|
8831
8831
|
return x;
|
|
@@ -9065,7 +9065,7 @@ function registerMacros(registry) {
|
|
|
9065
9065
|
});
|
|
9066
9066
|
}
|
|
9067
9067
|
|
|
9068
|
-
function _array_like_to_array$
|
|
9068
|
+
function _array_like_to_array$7(arr, len) {
|
|
9069
9069
|
if (len == null || len > arr.length) len = arr.length;
|
|
9070
9070
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9071
9071
|
return arr2;
|
|
@@ -9073,8 +9073,8 @@ function _array_like_to_array$8(arr, len) {
|
|
|
9073
9073
|
function _array_with_holes$3(arr) {
|
|
9074
9074
|
if (Array.isArray(arr)) return arr;
|
|
9075
9075
|
}
|
|
9076
|
-
function _array_without_holes$
|
|
9077
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9076
|
+
function _array_without_holes$5(arr) {
|
|
9077
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
9078
9078
|
}
|
|
9079
9079
|
function _instanceof$3(left, right) {
|
|
9080
9080
|
"@swc/helpers - instanceof";
|
|
@@ -9084,7 +9084,7 @@ function _instanceof$3(left, right) {
|
|
|
9084
9084
|
return left instanceof right;
|
|
9085
9085
|
}
|
|
9086
9086
|
}
|
|
9087
|
-
function _iterable_to_array$
|
|
9087
|
+
function _iterable_to_array$5(iter) {
|
|
9088
9088
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9089
9089
|
}
|
|
9090
9090
|
function _iterable_to_array_limit$3(arr, i) {
|
|
@@ -9114,26 +9114,26 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
9114
9114
|
function _non_iterable_rest$3() {
|
|
9115
9115
|
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
9116
|
}
|
|
9117
|
-
function _non_iterable_spread$
|
|
9117
|
+
function _non_iterable_spread$5() {
|
|
9118
9118
|
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
9119
|
}
|
|
9120
9120
|
function _sliced_to_array$3(arr, i) {
|
|
9121
|
-
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$
|
|
9121
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$3();
|
|
9122
9122
|
}
|
|
9123
|
-
function _to_consumable_array$
|
|
9124
|
-
return _array_without_holes$
|
|
9123
|
+
function _to_consumable_array$5(arr) {
|
|
9124
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$5();
|
|
9125
9125
|
}
|
|
9126
9126
|
function _type_of$3(obj) {
|
|
9127
9127
|
"@swc/helpers - typeof";
|
|
9128
9128
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9129
9129
|
}
|
|
9130
|
-
function _unsupported_iterable_to_array$
|
|
9130
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
9131
9131
|
if (!o) return;
|
|
9132
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9132
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
9133
9133
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9134
9134
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9135
9135
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9136
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9136
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
9137
9137
|
}
|
|
9138
9138
|
function registerOverloads(registry) {
|
|
9139
9139
|
var unaryOverload = function unaryOverload(op, t, h, ret) {
|
|
@@ -9200,7 +9200,7 @@ function registerOverloads(registry) {
|
|
|
9200
9200
|
return a + b;
|
|
9201
9201
|
});
|
|
9202
9202
|
binaryOverload('list<V>', '+', 'list<V>', function(a, b) {
|
|
9203
|
-
return _to_consumable_array$
|
|
9203
|
+
return _to_consumable_array$5(a).concat(_to_consumable_array$5(b));
|
|
9204
9204
|
});
|
|
9205
9205
|
binaryOverload('bytes', '+', 'bytes', function(a, b) {
|
|
9206
9206
|
if (!a.length) return b;
|
|
@@ -9673,13 +9673,13 @@ var toDynTypeBinding = new Map().set('A', 'dyn').set('T', 'dyn').set('K', 'dyn')
|
|
|
9673
9673
|
return TypeChecker;
|
|
9674
9674
|
}(Base);
|
|
9675
9675
|
|
|
9676
|
-
function _array_like_to_array$
|
|
9676
|
+
function _array_like_to_array$6(arr, len) {
|
|
9677
9677
|
if (len == null || len > arr.length) len = arr.length;
|
|
9678
9678
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9679
9679
|
return arr2;
|
|
9680
9680
|
}
|
|
9681
|
-
function _array_without_holes$
|
|
9682
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9681
|
+
function _array_without_holes$4(arr) {
|
|
9682
|
+
if (Array.isArray(arr)) return _array_like_to_array$6(arr);
|
|
9683
9683
|
}
|
|
9684
9684
|
function _check_private_redeclaration$1(obj, privateCollection) {
|
|
9685
9685
|
if (privateCollection.has(obj)) {
|
|
@@ -9770,22 +9770,22 @@ function _instanceof$2(left, right) {
|
|
|
9770
9770
|
return left instanceof right;
|
|
9771
9771
|
}
|
|
9772
9772
|
}
|
|
9773
|
-
function _iterable_to_array$
|
|
9773
|
+
function _iterable_to_array$4(iter) {
|
|
9774
9774
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9775
9775
|
}
|
|
9776
|
-
function _non_iterable_spread$
|
|
9776
|
+
function _non_iterable_spread$4() {
|
|
9777
9777
|
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
9778
|
}
|
|
9779
|
-
function _to_consumable_array$
|
|
9780
|
-
return _array_without_holes$
|
|
9779
|
+
function _to_consumable_array$4(arr) {
|
|
9780
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$4();
|
|
9781
9781
|
}
|
|
9782
|
-
function _unsupported_iterable_to_array$
|
|
9782
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
9783
9783
|
if (!o) return;
|
|
9784
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9784
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
9785
9785
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9786
9786
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9787
9787
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9788
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9788
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
9789
9789
|
}
|
|
9790
9790
|
var TOKEN = {
|
|
9791
9791
|
EOF: 0,
|
|
@@ -9982,7 +9982,7 @@ var ASTNode = /*#__PURE__*/ function() {
|
|
|
9982
9982
|
];
|
|
9983
9983
|
return [
|
|
9984
9984
|
this.op
|
|
9985
|
-
].concat(_to_consumable_array$
|
|
9985
|
+
].concat(_to_consumable_array$4(args.map(function(a) {
|
|
9986
9986
|
return _instanceof$2(a, ASTNode) ? a.toOldStructure() : a;
|
|
9987
9987
|
})));
|
|
9988
9988
|
}
|
|
@@ -11327,7 +11327,7 @@ function parse(expression) {
|
|
|
11327
11327
|
return globalEnvironment.parse(expression);
|
|
11328
11328
|
}
|
|
11329
11329
|
|
|
11330
|
-
function _array_like_to_array$
|
|
11330
|
+
function _array_like_to_array$5(arr, len) {
|
|
11331
11331
|
if (len == null || len > arr.length) len = arr.length;
|
|
11332
11332
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11333
11333
|
return arr2;
|
|
@@ -11335,8 +11335,8 @@ function _array_like_to_array$6(arr, len) {
|
|
|
11335
11335
|
function _array_with_holes$2(arr) {
|
|
11336
11336
|
if (Array.isArray(arr)) return arr;
|
|
11337
11337
|
}
|
|
11338
|
-
function _array_without_holes$
|
|
11339
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11338
|
+
function _array_without_holes$3(arr) {
|
|
11339
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
11340
11340
|
}
|
|
11341
11341
|
function _instanceof(left, right) {
|
|
11342
11342
|
"@swc/helpers - instanceof";
|
|
@@ -11346,7 +11346,7 @@ function _instanceof(left, right) {
|
|
|
11346
11346
|
return left instanceof right;
|
|
11347
11347
|
}
|
|
11348
11348
|
}
|
|
11349
|
-
function _iterable_to_array$
|
|
11349
|
+
function _iterable_to_array$3(iter) {
|
|
11350
11350
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11351
11351
|
}
|
|
11352
11352
|
function _iterable_to_array_limit$2(arr, i) {
|
|
@@ -11376,26 +11376,26 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
11376
11376
|
function _non_iterable_rest$2() {
|
|
11377
11377
|
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
11378
|
}
|
|
11379
|
-
function _non_iterable_spread$
|
|
11379
|
+
function _non_iterable_spread$3() {
|
|
11380
11380
|
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
11381
|
}
|
|
11382
11382
|
function _sliced_to_array$2(arr, i) {
|
|
11383
|
-
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$
|
|
11383
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$2();
|
|
11384
11384
|
}
|
|
11385
|
-
function _to_consumable_array$
|
|
11386
|
-
return _array_without_holes$
|
|
11385
|
+
function _to_consumable_array$3(arr) {
|
|
11386
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$3();
|
|
11387
11387
|
}
|
|
11388
11388
|
function _type_of(obj) {
|
|
11389
11389
|
"@swc/helpers - typeof";
|
|
11390
11390
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
11391
11391
|
}
|
|
11392
|
-
function _unsupported_iterable_to_array$
|
|
11392
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
11393
11393
|
if (!o) return;
|
|
11394
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11394
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
11395
11395
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11396
11396
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11397
11397
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11398
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11398
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
11399
11399
|
}
|
|
11400
11400
|
var REGEX_METACHARS_RE = /[.*+?^${}()|[\]\\]/;
|
|
11401
11401
|
var HELPER_INLINE_MAX_DEPTH = 8;
|
|
@@ -11639,7 +11639,7 @@ function collectUniqueBranches(ast, helpers) {
|
|
|
11639
11639
|
var result;
|
|
11640
11640
|
if (node.op === '||') {
|
|
11641
11641
|
var _node_args = _sliced_to_array$2(node.args, 2), l = _node_args[0], r = _node_args[1];
|
|
11642
|
-
result = _to_consumable_array$
|
|
11642
|
+
result = _to_consumable_array$3(toDnf(l)).concat(_to_consumable_array$3(toDnf(r)));
|
|
11643
11643
|
} else if (node.op === '&&') {
|
|
11644
11644
|
var _node_args1 = _sliced_to_array$2(node.args, 2), l1 = _node_args1[0], r1 = _node_args1[1];
|
|
11645
11645
|
var left = toDnf(l1);
|
|
@@ -11653,7 +11653,7 @@ function collectUniqueBranches(ast, helpers) {
|
|
|
11653
11653
|
try {
|
|
11654
11654
|
for(var _iterator1 = right[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
11655
11655
|
var rd = _step1.value;
|
|
11656
|
-
result.push(_to_consumable_array$
|
|
11656
|
+
result.push(_to_consumable_array$3(ld).concat(_to_consumable_array$3(rd)));
|
|
11657
11657
|
}
|
|
11658
11658
|
} catch (err) {
|
|
11659
11659
|
_didIteratorError1 = true;
|
|
@@ -11977,10 +11977,10 @@ function applyNumericBinaryOp(op, left, right) {
|
|
|
11977
11977
|
* @param branch - The parsed branch.
|
|
11978
11978
|
* @returns A signature string usable as a Map/Set key.
|
|
11979
11979
|
*/ function branchSignature(branch) {
|
|
11980
|
-
var literals = _to_consumable_array$
|
|
11980
|
+
var literals = _to_consumable_array$3(branch.allowedMimeLiterals).sort(function(a, b) {
|
|
11981
11981
|
return a.localeCompare(b);
|
|
11982
11982
|
});
|
|
11983
|
-
var regexes = _to_consumable_array$
|
|
11983
|
+
var regexes = _to_consumable_array$3(branch.allowedMimeRegexes).sort(function(a, b) {
|
|
11984
11984
|
return a.localeCompare(b);
|
|
11985
11985
|
});
|
|
11986
11986
|
return "".concat(branch.maxFileSizeBytes, "|").concat(literals.join(','), "|").concat(regexes.join(','));
|
|
@@ -12582,30 +12582,30 @@ var ALLOW_WRITE_RE = /allow\s+(?:write|create|update)(?:\s*,\s*(?:write|create|u
|
|
|
12582
12582
|
return ctx.results;
|
|
12583
12583
|
}
|
|
12584
12584
|
|
|
12585
|
-
function _array_like_to_array$
|
|
12585
|
+
function _array_like_to_array$4(arr, len) {
|
|
12586
12586
|
if (len == null || len > arr.length) len = arr.length;
|
|
12587
12587
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12588
12588
|
return arr2;
|
|
12589
12589
|
}
|
|
12590
|
-
function _array_without_holes$
|
|
12591
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12590
|
+
function _array_without_holes$2(arr) {
|
|
12591
|
+
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
12592
12592
|
}
|
|
12593
|
-
function _iterable_to_array$
|
|
12593
|
+
function _iterable_to_array$2(iter) {
|
|
12594
12594
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12595
12595
|
}
|
|
12596
|
-
function _non_iterable_spread$
|
|
12596
|
+
function _non_iterable_spread$2() {
|
|
12597
12597
|
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
12598
|
}
|
|
12599
|
-
function _to_consumable_array$
|
|
12600
|
-
return _array_without_holes$
|
|
12599
|
+
function _to_consumable_array$2(arr) {
|
|
12600
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$2();
|
|
12601
12601
|
}
|
|
12602
|
-
function _unsupported_iterable_to_array$
|
|
12602
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
12603
12603
|
if (!o) return;
|
|
12604
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12604
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
12605
12605
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12606
12606
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12607
12607
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12608
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12608
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
12609
12609
|
}
|
|
12610
12610
|
var MAX_FOLD_DEPTH = 24;
|
|
12611
12611
|
var PATH_SEPARATOR = '/';
|
|
@@ -12820,7 +12820,7 @@ function foldTemplateLiteral(node, frame, depth) {
|
|
|
12820
12820
|
var _ref;
|
|
12821
12821
|
var _quasis_i_value, _quasis_i;
|
|
12822
12822
|
var cooked = (_ref = (_quasis_i = quasis[i]) === null || _quasis_i === void 0 ? void 0 : (_quasis_i_value = _quasis_i.value) === null || _quasis_i_value === void 0 ? void 0 : _quasis_i_value.cooked) !== null && _ref !== void 0 ? _ref : '';
|
|
12823
|
-
var next = _to_consumable_array$
|
|
12823
|
+
var next = _to_consumable_array$2(result).concat([
|
|
12824
12824
|
{
|
|
12825
12825
|
kind: 'literal',
|
|
12826
12826
|
value: cooked
|
|
@@ -12828,7 +12828,7 @@ function foldTemplateLiteral(node, frame, depth) {
|
|
|
12828
12828
|
]);
|
|
12829
12829
|
if (i < expressions.length) {
|
|
12830
12830
|
var exprFrags = foldFrags(expressions[i], frame, depth + 1);
|
|
12831
|
-
result = exprFrags ? _to_consumable_array$
|
|
12831
|
+
result = exprFrags ? _to_consumable_array$2(next).concat(_to_consumable_array$2(exprFrags)) : null;
|
|
12832
12832
|
} else {
|
|
12833
12833
|
result = next;
|
|
12834
12834
|
}
|
|
@@ -12840,7 +12840,7 @@ function foldStringConcat(node, frame, depth) {
|
|
|
12840
12840
|
var left = foldFrags(node.left, frame, depth + 1);
|
|
12841
12841
|
var right = foldFrags(node.right, frame, depth + 1);
|
|
12842
12842
|
if (left && right) {
|
|
12843
|
-
result = _to_consumable_array$
|
|
12843
|
+
result = _to_consumable_array$2(left).concat(_to_consumable_array$2(right));
|
|
12844
12844
|
}
|
|
12845
12845
|
return result;
|
|
12846
12846
|
}
|
|
@@ -12933,7 +12933,7 @@ function foldStringConcat(node, frame, depth) {
|
|
|
12933
12933
|
value: PATH_SEPARATOR
|
|
12934
12934
|
});
|
|
12935
12935
|
}
|
|
12936
|
-
(_joined = joined).push.apply(_joined, _to_consumable_array$
|
|
12936
|
+
(_joined = joined).push.apply(_joined, _to_consumable_array$2(item));
|
|
12937
12937
|
first = false;
|
|
12938
12938
|
}
|
|
12939
12939
|
}
|
|
@@ -13061,10 +13061,10 @@ function foldStringConcat(node, frame, depth) {
|
|
|
13061
13061
|
}
|
|
13062
13062
|
if ((arg === null || arg === void 0 ? void 0 : arg.type) === 'SpreadElement') {
|
|
13063
13063
|
var list = foldSpreadOperand(arg.argument, frame, depth);
|
|
13064
|
-
result = list ? _to_consumable_array$
|
|
13064
|
+
result = list ? _to_consumable_array$2(result).concat(_to_consumable_array$2(list)) : null;
|
|
13065
13065
|
} else {
|
|
13066
13066
|
var frags = foldFrags(arg, frame, depth + 1);
|
|
13067
|
-
result = frags ? _to_consumable_array$
|
|
13067
|
+
result = frags ? _to_consumable_array$2(result).concat([
|
|
13068
13068
|
frags
|
|
13069
13069
|
]) : null;
|
|
13070
13070
|
}
|
|
@@ -13129,10 +13129,10 @@ function foldStringConcat(node, frame, depth) {
|
|
|
13129
13129
|
result = null;
|
|
13130
13130
|
} else if (element.type === 'SpreadElement') {
|
|
13131
13131
|
var list = foldSpreadOperand(element.argument, frame, depth);
|
|
13132
|
-
result = list ? _to_consumable_array$
|
|
13132
|
+
result = list ? _to_consumable_array$2(result).concat(_to_consumable_array$2(list)) : null;
|
|
13133
13133
|
} else {
|
|
13134
13134
|
var frags = foldFrags(element, frame, depth + 1);
|
|
13135
|
-
result = frags ? _to_consumable_array$
|
|
13135
|
+
result = frags ? _to_consumable_array$2(result).concat([
|
|
13136
13136
|
frags
|
|
13137
13137
|
]) : null;
|
|
13138
13138
|
}
|
|
@@ -13519,7 +13519,7 @@ function fragListsToStrings(items) {
|
|
|
13519
13519
|
break;
|
|
13520
13520
|
}
|
|
13521
13521
|
var str = fragsToConcreteString(item);
|
|
13522
|
-
result = str == null ? null : _to_consumable_array$
|
|
13522
|
+
result = str == null ? null : _to_consumable_array$2(result).concat([
|
|
13523
13523
|
str
|
|
13524
13524
|
]);
|
|
13525
13525
|
}
|
|
@@ -14587,31 +14587,6 @@ function unwrapVariableDeclaration$1(statement) {
|
|
|
14587
14587
|
}
|
|
14588
14588
|
}
|
|
14589
14589
|
|
|
14590
|
-
function _array_like_to_array$4(arr, len) {
|
|
14591
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
14592
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14593
|
-
return arr2;
|
|
14594
|
-
}
|
|
14595
|
-
function _array_without_holes$2(arr) {
|
|
14596
|
-
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
14597
|
-
}
|
|
14598
|
-
function _iterable_to_array$2(iter) {
|
|
14599
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14600
|
-
}
|
|
14601
|
-
function _non_iterable_spread$2() {
|
|
14602
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14603
|
-
}
|
|
14604
|
-
function _to_consumable_array$2(arr) {
|
|
14605
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$2();
|
|
14606
|
-
}
|
|
14607
|
-
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
14608
|
-
if (!o) return;
|
|
14609
|
-
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
14610
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14611
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14612
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14613
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
14614
|
-
}
|
|
14615
14590
|
var ALLOW_RE = /\ballow\s+([A-Za-z, \t]+?)\s*:\s*if\b/g;
|
|
14616
14591
|
var COLLECTION_GROUP_PREFIX = /^\/\{[A-Za-z_]\w*=\*\*\}\//;
|
|
14617
14592
|
var BARE_IDENTIFIER_RE = /^[A-Za-z_]\w*$/;
|
|
@@ -14654,7 +14629,7 @@ var BARE_IDENTIFIER_RE = /^[A-Za-z_]\w*$/;
|
|
|
14654
14629
|
}
|
|
14655
14630
|
match = ALLOW_RE.exec(body);
|
|
14656
14631
|
}
|
|
14657
|
-
return
|
|
14632
|
+
return Array.from(seen);
|
|
14658
14633
|
}
|
|
14659
14634
|
/**
|
|
14660
14635
|
* Pulls the first bare-identifier collection token from a match path. Skips an optional
|