@dereekb/util 13.22.0 → 13.24.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.cjs.js +433 -106
- package/eslint/index.esm.js +414 -107
- package/eslint/package.json +4 -3
- package/eslint/src/lib/index.d.ts +1 -0
- package/eslint/src/lib/no-enum-literal-cast.rule.d.ts +51 -0
- package/eslint/src/lib/plugin.d.ts +2 -0
- package/fetch/package.json +2 -2
- package/index.cjs.js +779 -191
- package/index.esm.js +771 -192
- package/oidc/LICENSE +21 -0
- package/oidc/index.cjs.default.js +1 -0
- package/oidc/index.cjs.js +1071 -0
- package/oidc/index.cjs.mjs +2 -0
- package/oidc/index.d.ts +1 -0
- package/oidc/index.esm.js +1057 -0
- package/oidc/package.json +19 -0
- package/oidc/src/index.d.ts +1 -0
- package/oidc/src/lib/index.d.ts +2 -0
- package/oidc/src/lib/oidc.protocol.d.ts +96 -0
- package/oidc/src/lib/oidc.token.d.ts +175 -0
- package/package.json +7 -1
- package/src/lib/auth/auth.impersonation.d.ts +10 -0
- package/src/lib/auth/index.d.ts +1 -0
- package/src/lib/auth/oauth.d.ts +277 -0
- package/test/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var extraSet = require('extra-set');
|
|
4
4
|
var makeError = require('make-error');
|
|
5
5
|
|
|
6
|
-
function _array_like_to_array$
|
|
6
|
+
function _array_like_to_array$C(arr, len) {
|
|
7
7
|
if (len == null || len > arr.length) len = arr.length;
|
|
8
8
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9
9
|
return arr2;
|
|
10
10
|
}
|
|
11
11
|
function _array_without_holes$n(arr) {
|
|
12
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12
|
+
if (Array.isArray(arr)) return _array_like_to_array$C(arr);
|
|
13
13
|
}
|
|
14
14
|
function _iterable_to_array$n(iter) {
|
|
15
15
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -18,19 +18,19 @@ function _non_iterable_spread$n() {
|
|
|
18
18
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
19
|
}
|
|
20
20
|
function _to_consumable_array$n(arr) {
|
|
21
|
-
return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$
|
|
21
|
+
return _array_without_holes$n(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$C(arr) || _non_iterable_spread$n();
|
|
22
22
|
}
|
|
23
|
-
function _type_of$
|
|
23
|
+
function _type_of$n(obj) {
|
|
24
24
|
"@swc/helpers - typeof";
|
|
25
25
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
26
26
|
}
|
|
27
|
-
function _unsupported_iterable_to_array$
|
|
27
|
+
function _unsupported_iterable_to_array$C(o, minLen) {
|
|
28
28
|
if (!o) return;
|
|
29
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
29
|
+
if (typeof o === "string") return _array_like_to_array$C(o, minLen);
|
|
30
30
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
31
31
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
32
32
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
33
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
33
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$C(o, minLen);
|
|
34
34
|
}
|
|
35
35
|
// MARK: Functions
|
|
36
36
|
/**
|
|
@@ -126,7 +126,7 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
126
126
|
var result;
|
|
127
127
|
if (typeof values === 'string') {
|
|
128
128
|
result = treatStringAsIterable;
|
|
129
|
-
} else if (values != null && (typeof values === "undefined" ? "undefined" : _type_of$
|
|
129
|
+
} else if (values != null && (typeof values === "undefined" ? "undefined" : _type_of$n(values)) === 'object' && Symbol.iterator in values) {
|
|
130
130
|
result = true;
|
|
131
131
|
} else {
|
|
132
132
|
result = false;
|
|
@@ -413,13 +413,13 @@ function _unsupported_iterable_to_array$B(o, minLen) {
|
|
|
413
413
|
return result;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
function _array_like_to_array$
|
|
416
|
+
function _array_like_to_array$B(arr, len) {
|
|
417
417
|
if (len == null || len > arr.length) len = arr.length;
|
|
418
418
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
419
419
|
return arr2;
|
|
420
420
|
}
|
|
421
421
|
function _array_without_holes$m(arr) {
|
|
422
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
422
|
+
if (Array.isArray(arr)) return _array_like_to_array$B(arr);
|
|
423
423
|
}
|
|
424
424
|
function _iterable_to_array$m(iter) {
|
|
425
425
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -428,15 +428,15 @@ function _non_iterable_spread$m() {
|
|
|
428
428
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
429
429
|
}
|
|
430
430
|
function _to_consumable_array$m(arr) {
|
|
431
|
-
return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$
|
|
431
|
+
return _array_without_holes$m(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$B(arr) || _non_iterable_spread$m();
|
|
432
432
|
}
|
|
433
|
-
function _unsupported_iterable_to_array$
|
|
433
|
+
function _unsupported_iterable_to_array$B(o, minLen) {
|
|
434
434
|
if (!o) return;
|
|
435
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
435
|
+
if (typeof o === "string") return _array_like_to_array$B(o, minLen);
|
|
436
436
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
437
437
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
438
438
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
439
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
439
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$B(o, minLen);
|
|
440
440
|
}
|
|
441
441
|
// MARK: Functions
|
|
442
442
|
/**
|
|
@@ -887,13 +887,13 @@ function _unsupported_iterable_to_array$A(o, minLen) {
|
|
|
887
887
|
return readKeysSetFunction(readKey)(values);
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
function _array_like_to_array$
|
|
890
|
+
function _array_like_to_array$A(arr, len) {
|
|
891
891
|
if (len == null || len > arr.length) len = arr.length;
|
|
892
892
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
893
893
|
return arr2;
|
|
894
894
|
}
|
|
895
895
|
function _array_without_holes$l(arr) {
|
|
896
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
896
|
+
if (Array.isArray(arr)) return _array_like_to_array$A(arr);
|
|
897
897
|
}
|
|
898
898
|
function _iterable_to_array$l(iter) {
|
|
899
899
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -902,15 +902,15 @@ function _non_iterable_spread$l() {
|
|
|
902
902
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
903
903
|
}
|
|
904
904
|
function _to_consumable_array$l(arr) {
|
|
905
|
-
return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$
|
|
905
|
+
return _array_without_holes$l(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$A(arr) || _non_iterable_spread$l();
|
|
906
906
|
}
|
|
907
|
-
function _unsupported_iterable_to_array$
|
|
907
|
+
function _unsupported_iterable_to_array$A(o, minLen) {
|
|
908
908
|
if (!o) return;
|
|
909
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
909
|
+
if (typeof o === "string") return _array_like_to_array$A(o, minLen);
|
|
910
910
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
911
911
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
912
912
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
913
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
913
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$A(o, minLen);
|
|
914
914
|
}
|
|
915
915
|
/**
|
|
916
916
|
* Converts an {@link IterableOrValue} into a Set. Strings are treated as single values rather than character iterables.
|
|
@@ -1444,13 +1444,13 @@ function _unsupported_iterable_to_array$z(o, minLen) {
|
|
|
1444
1444
|
return a && b ? a.size === b.size && setContainsAllValues(a, b, true) : a == b;
|
|
1445
1445
|
}
|
|
1446
1446
|
|
|
1447
|
-
function _array_like_to_array$
|
|
1447
|
+
function _array_like_to_array$z(arr, len) {
|
|
1448
1448
|
if (len == null || len > arr.length) len = arr.length;
|
|
1449
1449
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1450
1450
|
return arr2;
|
|
1451
1451
|
}
|
|
1452
1452
|
function _array_without_holes$k(arr) {
|
|
1453
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1453
|
+
if (Array.isArray(arr)) return _array_like_to_array$z(arr);
|
|
1454
1454
|
}
|
|
1455
1455
|
function _iterable_to_array$k(iter) {
|
|
1456
1456
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -1459,15 +1459,15 @@ function _non_iterable_spread$k() {
|
|
|
1459
1459
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1460
1460
|
}
|
|
1461
1461
|
function _to_consumable_array$k(arr) {
|
|
1462
|
-
return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$
|
|
1462
|
+
return _array_without_holes$k(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$z(arr) || _non_iterable_spread$k();
|
|
1463
1463
|
}
|
|
1464
|
-
function _unsupported_iterable_to_array$
|
|
1464
|
+
function _unsupported_iterable_to_array$z(o, minLen) {
|
|
1465
1465
|
if (!o) return;
|
|
1466
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1466
|
+
if (typeof o === "string") return _array_like_to_array$z(o, minLen);
|
|
1467
1467
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1468
1468
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1469
1469
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1470
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1470
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$z(o, minLen);
|
|
1471
1471
|
}
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Inverts the output of an arbitrary boolean-returning function.
|
|
@@ -1538,7 +1538,7 @@ function _unsupported_iterable_to_array$y(o, minLen) {
|
|
|
1538
1538
|
return arrayDecisionFunction(decision, mode)(values);
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
|
-
function _define_property$
|
|
1541
|
+
function _define_property$o(obj, key, value) {
|
|
1542
1542
|
if (key in obj) {
|
|
1543
1543
|
Object.defineProperty(obj, key, {
|
|
1544
1544
|
value: value,
|
|
@@ -1561,7 +1561,7 @@ function _object_spread$g(target) {
|
|
|
1561
1561
|
}));
|
|
1562
1562
|
}
|
|
1563
1563
|
ownKeys.forEach(function(key) {
|
|
1564
|
-
_define_property$
|
|
1564
|
+
_define_property$o(target, key, source[key]);
|
|
1565
1565
|
});
|
|
1566
1566
|
}
|
|
1567
1567
|
return target;
|
|
@@ -1630,7 +1630,7 @@ function objectHasKeys(obj, keys, mode) {
|
|
|
1630
1630
|
return _object_spread$g({}, input);
|
|
1631
1631
|
}
|
|
1632
1632
|
|
|
1633
|
-
function _type_of$
|
|
1633
|
+
function _type_of$m(obj) {
|
|
1634
1634
|
"@swc/helpers - typeof";
|
|
1635
1635
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1636
1636
|
}
|
|
@@ -1686,7 +1686,7 @@ function _type_of$l(obj) {
|
|
|
1686
1686
|
if (isIterable(value, true)) {
|
|
1687
1687
|
result = !isEmptyIterable(value);
|
|
1688
1688
|
} else if (isNotNullOrEmptyString(value)) {
|
|
1689
|
-
result = (typeof value === "undefined" ? "undefined" : _type_of$
|
|
1689
|
+
result = (typeof value === "undefined" ? "undefined" : _type_of$m(value)) === 'object' ? !objectHasNoKeys(value) : true;
|
|
1690
1690
|
} else {
|
|
1691
1691
|
result = false;
|
|
1692
1692
|
}
|
|
@@ -2111,13 +2111,13 @@ function chainMapFunction(a, b) {
|
|
|
2111
2111
|
} : a;
|
|
2112
2112
|
}
|
|
2113
2113
|
|
|
2114
|
-
function _array_like_to_array$
|
|
2114
|
+
function _array_like_to_array$y(arr, len) {
|
|
2115
2115
|
if (len == null || len > arr.length) len = arr.length;
|
|
2116
2116
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2117
2117
|
return arr2;
|
|
2118
2118
|
}
|
|
2119
2119
|
function _array_without_holes$j(arr) {
|
|
2120
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2120
|
+
if (Array.isArray(arr)) return _array_like_to_array$y(arr);
|
|
2121
2121
|
}
|
|
2122
2122
|
function _iterable_to_array$j(iter) {
|
|
2123
2123
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2126,15 +2126,15 @@ function _non_iterable_spread$j() {
|
|
|
2126
2126
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2127
2127
|
}
|
|
2128
2128
|
function _to_consumable_array$j(arr) {
|
|
2129
|
-
return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$
|
|
2129
|
+
return _array_without_holes$j(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$j();
|
|
2130
2130
|
}
|
|
2131
|
-
function _unsupported_iterable_to_array$
|
|
2131
|
+
function _unsupported_iterable_to_array$y(o, minLen) {
|
|
2132
2132
|
if (!o) return;
|
|
2133
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2133
|
+
if (typeof o === "string") return _array_like_to_array$y(o, minLen);
|
|
2134
2134
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2135
2135
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2136
2136
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2137
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2137
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
|
|
2138
2138
|
}
|
|
2139
2139
|
/**
|
|
2140
2140
|
* Concatenates multiple arrays and returns only unique values.
|
|
@@ -2311,12 +2311,12 @@ function allowValueOnceFilter(inputReadKey) {
|
|
|
2311
2311
|
return fn;
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
|
-
function _class_call_check$
|
|
2314
|
+
function _class_call_check$c(instance, Constructor) {
|
|
2315
2315
|
if (!(instance instanceof Constructor)) {
|
|
2316
2316
|
throw new TypeError("Cannot call a class as a function");
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
function _define_property$
|
|
2319
|
+
function _define_property$n(obj, key, value) {
|
|
2320
2320
|
if (key in obj) {
|
|
2321
2321
|
Object.defineProperty(obj, key, {
|
|
2322
2322
|
value: value,
|
|
@@ -2329,7 +2329,7 @@ function _define_property$m(obj, key, value) {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
return obj;
|
|
2331
2331
|
}
|
|
2332
|
-
function _type_of$
|
|
2332
|
+
function _type_of$l(obj) {
|
|
2333
2333
|
"@swc/helpers - typeof";
|
|
2334
2334
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2335
2335
|
}
|
|
@@ -2478,7 +2478,7 @@ function readModelKey(input) {
|
|
|
2478
2478
|
var key;
|
|
2479
2479
|
if (typeof input === 'string') {
|
|
2480
2480
|
key = input;
|
|
2481
|
-
} else if (input != null && (typeof input === "undefined" ? "undefined" : _type_of$
|
|
2481
|
+
} else if (input != null && (typeof input === "undefined" ? "undefined" : _type_of$l(input)) === 'object') {
|
|
2482
2482
|
// typeof null === 'object', so guard against null before passing to `read`.
|
|
2483
2483
|
key = read(input);
|
|
2484
2484
|
}
|
|
@@ -2587,19 +2587,19 @@ function readModelKey(input) {
|
|
|
2587
2587
|
*
|
|
2588
2588
|
* @deprecated Use {@link UniqueModel} instead.
|
|
2589
2589
|
*/ var AbstractUniqueModel = function AbstractUniqueModel(template) {
|
|
2590
|
-
_class_call_check$
|
|
2591
|
-
_define_property$
|
|
2590
|
+
_class_call_check$c(this, AbstractUniqueModel);
|
|
2591
|
+
_define_property$n(this, "id", void 0);
|
|
2592
2592
|
this.id = template.id;
|
|
2593
2593
|
}
|
|
2594
2594
|
;
|
|
2595
2595
|
|
|
2596
|
-
function _array_like_to_array$
|
|
2596
|
+
function _array_like_to_array$x(arr, len) {
|
|
2597
2597
|
if (len == null || len > arr.length) len = arr.length;
|
|
2598
2598
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2599
2599
|
return arr2;
|
|
2600
2600
|
}
|
|
2601
2601
|
function _array_without_holes$i(arr) {
|
|
2602
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2602
|
+
if (Array.isArray(arr)) return _array_like_to_array$x(arr);
|
|
2603
2603
|
}
|
|
2604
2604
|
function _iterable_to_array$i(iter) {
|
|
2605
2605
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2608,15 +2608,15 @@ function _non_iterable_spread$i() {
|
|
|
2608
2608
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2609
2609
|
}
|
|
2610
2610
|
function _to_consumable_array$i(arr) {
|
|
2611
|
-
return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$
|
|
2611
|
+
return _array_without_holes$i(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$i();
|
|
2612
2612
|
}
|
|
2613
|
-
function _unsupported_iterable_to_array$
|
|
2613
|
+
function _unsupported_iterable_to_array$x(o, minLen) {
|
|
2614
2614
|
if (!o) return;
|
|
2615
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2615
|
+
if (typeof o === "string") return _array_like_to_array$x(o, minLen);
|
|
2616
2616
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2617
2617
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2618
2618
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2619
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2619
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
|
|
2620
2620
|
}
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Wraps a key reading function to ensure that empty string keys are not used in boolean key arrays.
|
|
@@ -2723,15 +2723,15 @@ function _unsupported_iterable_to_array$w(o, minLen) {
|
|
|
2723
2723
|
return x || undefined;
|
|
2724
2724
|
});
|
|
2725
2725
|
|
|
2726
|
-
function _array_like_to_array$
|
|
2726
|
+
function _array_like_to_array$w(arr, len) {
|
|
2727
2727
|
if (len == null || len > arr.length) len = arr.length;
|
|
2728
2728
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2729
2729
|
return arr2;
|
|
2730
2730
|
}
|
|
2731
2731
|
function _array_without_holes$h(arr) {
|
|
2732
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2732
|
+
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2733
2733
|
}
|
|
2734
|
-
function _class_call_check$
|
|
2734
|
+
function _class_call_check$b(instance, Constructor) {
|
|
2735
2735
|
if (!(instance instanceof Constructor)) {
|
|
2736
2736
|
throw new TypeError("Cannot call a class as a function");
|
|
2737
2737
|
}
|
|
@@ -2749,7 +2749,7 @@ function _create_class$7(Constructor, protoProps, staticProps) {
|
|
|
2749
2749
|
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
2750
2750
|
return Constructor;
|
|
2751
2751
|
}
|
|
2752
|
-
function _define_property$
|
|
2752
|
+
function _define_property$m(obj, key, value) {
|
|
2753
2753
|
if (key in obj) {
|
|
2754
2754
|
Object.defineProperty(obj, key, {
|
|
2755
2755
|
value: value,
|
|
@@ -2769,15 +2769,15 @@ function _non_iterable_spread$h() {
|
|
|
2769
2769
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2770
2770
|
}
|
|
2771
2771
|
function _to_consumable_array$h(arr) {
|
|
2772
|
-
return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$
|
|
2772
|
+
return _array_without_holes$h(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$h();
|
|
2773
2773
|
}
|
|
2774
|
-
function _unsupported_iterable_to_array$
|
|
2774
|
+
function _unsupported_iterable_to_array$w(o, minLen) {
|
|
2775
2775
|
if (!o) return;
|
|
2776
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2776
|
+
if (typeof o === "string") return _array_like_to_array$w(o, minLen);
|
|
2777
2777
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2778
2778
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2779
2779
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2780
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2780
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
|
|
2781
2781
|
}
|
|
2782
2782
|
/**
|
|
2783
2783
|
* Set that is implemented internally using a Map, and input values have their keys read.
|
|
@@ -2786,9 +2786,9 @@ function _unsupported_iterable_to_array$v(o, minLen) {
|
|
|
2786
2786
|
*/ var HashSet = /*#__PURE__*/ function() {
|
|
2787
2787
|
function HashSet(config, values) {
|
|
2788
2788
|
var _this = this;
|
|
2789
|
-
_class_call_check$
|
|
2790
|
-
_define_property$
|
|
2791
|
-
_define_property$
|
|
2789
|
+
_class_call_check$b(this, HashSet);
|
|
2790
|
+
_define_property$m(this, "_map", new Map());
|
|
2791
|
+
_define_property$m(this, "_config", void 0);
|
|
2792
2792
|
this._config = config;
|
|
2793
2793
|
if (values) {
|
|
2794
2794
|
values.forEach(function(x) {
|
|
@@ -2973,13 +2973,13 @@ function _unsupported_iterable_to_array$v(o, minLen) {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
();
|
|
2975
2975
|
|
|
2976
|
-
function _array_like_to_array$
|
|
2976
|
+
function _array_like_to_array$v(arr, len) {
|
|
2977
2977
|
if (len == null || len > arr.length) len = arr.length;
|
|
2978
2978
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2979
2979
|
return arr2;
|
|
2980
2980
|
}
|
|
2981
2981
|
function _array_without_holes$g(arr) {
|
|
2982
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2982
|
+
if (Array.isArray(arr)) return _array_like_to_array$v(arr);
|
|
2983
2983
|
}
|
|
2984
2984
|
function _iterable_to_array$g(iter) {
|
|
2985
2985
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2988,15 +2988,15 @@ function _non_iterable_spread$g() {
|
|
|
2988
2988
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2989
2989
|
}
|
|
2990
2990
|
function _to_consumable_array$g(arr) {
|
|
2991
|
-
return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$
|
|
2991
|
+
return _array_without_holes$g(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$g();
|
|
2992
2992
|
}
|
|
2993
|
-
function _unsupported_iterable_to_array$
|
|
2993
|
+
function _unsupported_iterable_to_array$v(o, minLen) {
|
|
2994
2994
|
if (!o) return;
|
|
2995
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2995
|
+
if (typeof o === "string") return _array_like_to_array$v(o, minLen);
|
|
2996
2996
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2997
2997
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2998
2998
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2999
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2999
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
|
|
3000
3000
|
}
|
|
3001
3001
|
var SORT_VALUE_LESS_THAN = -1;
|
|
3002
3002
|
var SORT_VALUE_GREATER_THAN = 1;
|
|
@@ -3150,21 +3150,21 @@ function reverseCompareFn(compareFn) {
|
|
|
3150
3150
|
};
|
|
3151
3151
|
}
|
|
3152
3152
|
|
|
3153
|
-
function _array_like_to_array$
|
|
3153
|
+
function _array_like_to_array$u(arr, len) {
|
|
3154
3154
|
if (len == null || len > arr.length) len = arr.length;
|
|
3155
3155
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3156
3156
|
return arr2;
|
|
3157
3157
|
}
|
|
3158
|
-
function _array_with_holes$
|
|
3158
|
+
function _array_with_holes$m(arr) {
|
|
3159
3159
|
if (Array.isArray(arr)) return arr;
|
|
3160
3160
|
}
|
|
3161
3161
|
function _array_without_holes$f(arr) {
|
|
3162
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3162
|
+
if (Array.isArray(arr)) return _array_like_to_array$u(arr);
|
|
3163
3163
|
}
|
|
3164
3164
|
function _iterable_to_array$f(iter) {
|
|
3165
3165
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3166
3166
|
}
|
|
3167
|
-
function _iterable_to_array_limit$
|
|
3167
|
+
function _iterable_to_array_limit$m(arr, i) {
|
|
3168
3168
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3169
3169
|
if (_i == null) return;
|
|
3170
3170
|
var _arr = [];
|
|
@@ -3188,25 +3188,25 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
3188
3188
|
}
|
|
3189
3189
|
return _arr;
|
|
3190
3190
|
}
|
|
3191
|
-
function _non_iterable_rest$
|
|
3191
|
+
function _non_iterable_rest$m() {
|
|
3192
3192
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3193
3193
|
}
|
|
3194
3194
|
function _non_iterable_spread$f() {
|
|
3195
3195
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3196
3196
|
}
|
|
3197
|
-
function _sliced_to_array$
|
|
3198
|
-
return _array_with_holes$
|
|
3197
|
+
function _sliced_to_array$m(arr, i) {
|
|
3198
|
+
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$u(arr, i) || _non_iterable_rest$m();
|
|
3199
3199
|
}
|
|
3200
3200
|
function _to_consumable_array$f(arr) {
|
|
3201
|
-
return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$
|
|
3201
|
+
return _array_without_holes$f(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_spread$f();
|
|
3202
3202
|
}
|
|
3203
|
-
function _unsupported_iterable_to_array$
|
|
3203
|
+
function _unsupported_iterable_to_array$u(o, minLen) {
|
|
3204
3204
|
if (!o) return;
|
|
3205
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3205
|
+
if (typeof o === "string") return _array_like_to_array$u(o, minLen);
|
|
3206
3206
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3207
3207
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3208
3208
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3209
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3209
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
|
|
3210
3210
|
}
|
|
3211
3211
|
/**
|
|
3212
3212
|
* Splits the input array into batches of a maximum size. Each batch carries its zero-based index as `.i`.
|
|
@@ -3366,7 +3366,7 @@ function _unsupported_iterable_to_array$t(o, minLen) {
|
|
|
3366
3366
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3367
3367
|
try {
|
|
3368
3368
|
for(var _iterator = pairs.pairs[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3369
|
-
var _step_value = _sliced_to_array$
|
|
3369
|
+
var _step_value = _sliced_to_array$m(_step.value, 2), aa = _step_value[0], bb = _step_value[1];
|
|
3370
3370
|
// If any item is not the same, break.
|
|
3371
3371
|
if (!isEqual(aa, bb)) {
|
|
3372
3372
|
areDifferent = true;
|
|
@@ -3480,15 +3480,15 @@ function makeValuesGroupMap(values, groupKeyFn) {
|
|
|
3480
3480
|
return map;
|
|
3481
3481
|
}
|
|
3482
3482
|
|
|
3483
|
-
function _array_like_to_array$
|
|
3483
|
+
function _array_like_to_array$t(arr, len) {
|
|
3484
3484
|
if (len == null || len > arr.length) len = arr.length;
|
|
3485
3485
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3486
3486
|
return arr2;
|
|
3487
3487
|
}
|
|
3488
|
-
function _array_with_holes$
|
|
3488
|
+
function _array_with_holes$l(arr) {
|
|
3489
3489
|
if (Array.isArray(arr)) return arr;
|
|
3490
3490
|
}
|
|
3491
|
-
function _iterable_to_array_limit$
|
|
3491
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
3492
3492
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3493
3493
|
if (_i == null) return;
|
|
3494
3494
|
var _arr = [];
|
|
@@ -3512,19 +3512,19 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
return _arr;
|
|
3514
3514
|
}
|
|
3515
|
-
function _non_iterable_rest$
|
|
3515
|
+
function _non_iterable_rest$l() {
|
|
3516
3516
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3517
3517
|
}
|
|
3518
|
-
function _sliced_to_array$
|
|
3519
|
-
return _array_with_holes$
|
|
3518
|
+
function _sliced_to_array$l(arr, i) {
|
|
3519
|
+
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$t(arr, i) || _non_iterable_rest$l();
|
|
3520
3520
|
}
|
|
3521
|
-
function _unsupported_iterable_to_array$
|
|
3521
|
+
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
3522
3522
|
if (!o) return;
|
|
3523
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3523
|
+
if (typeof o === "string") return _array_like_to_array$t(o, minLen);
|
|
3524
3524
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3525
3525
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3526
3526
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3527
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3527
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
|
|
3528
3528
|
}
|
|
3529
3529
|
/**
|
|
3530
3530
|
* Combines multiple Maps into a single Map. Later maps override earlier values for the same key.
|
|
@@ -3580,7 +3580,7 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
3580
3580
|
*/ function expandArrayValueTuples(values) {
|
|
3581
3581
|
var tuples = [];
|
|
3582
3582
|
values.forEach(function(param) {
|
|
3583
|
-
var _param = _sliced_to_array$
|
|
3583
|
+
var _param = _sliced_to_array$l(param, 2), key = _param[0], _$values = _param[1];
|
|
3584
3584
|
useIterableOrValue(_$values, function(value) {
|
|
3585
3585
|
tuples.push([
|
|
3586
3586
|
key,
|
|
@@ -3932,7 +3932,7 @@ function isNonClassFunction(x) {
|
|
|
3932
3932
|
return type != null && type !== 'class';
|
|
3933
3933
|
}
|
|
3934
3934
|
|
|
3935
|
-
function _type_of$
|
|
3935
|
+
function _type_of$k(obj) {
|
|
3936
3936
|
"@swc/helpers - typeof";
|
|
3937
3937
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
3938
3938
|
}
|
|
@@ -4003,7 +4003,7 @@ function getValueFromGetter(input, args) {
|
|
|
4003
4003
|
*
|
|
4004
4004
|
* @__NO_SIDE_EFFECTS__
|
|
4005
4005
|
*/ function asObjectCopyFactory(input, copyFunction) {
|
|
4006
|
-
return (typeof input === "undefined" ? "undefined" : _type_of$
|
|
4006
|
+
return (typeof input === "undefined" ? "undefined" : _type_of$k(input)) === 'object' ? objectCopyFactory(input, copyFunction) : asGetter(input);
|
|
4007
4007
|
}
|
|
4008
4008
|
/**
|
|
4009
4009
|
* Wraps the input value in a Getter function that always returns it.
|
|
@@ -4204,7 +4204,7 @@ function makeWithFactoryInput(factory, input) {
|
|
|
4204
4204
|
return Math.max(Math.min(input, max), min);
|
|
4205
4205
|
}
|
|
4206
4206
|
|
|
4207
|
-
function _type_of$
|
|
4207
|
+
function _type_of$j(obj) {
|
|
4208
4208
|
"@swc/helpers - typeof";
|
|
4209
4209
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
4210
4210
|
}
|
|
@@ -4251,7 +4251,7 @@ function _type_of$i(obj) {
|
|
|
4251
4251
|
* @dbxUtilTags number, parse, convert, coerce, string, normalize
|
|
4252
4252
|
*/ function asNumber(input) {
|
|
4253
4253
|
var value;
|
|
4254
|
-
switch(typeof input === "undefined" ? "undefined" : _type_of$
|
|
4254
|
+
switch(typeof input === "undefined" ? "undefined" : _type_of$j(input)){
|
|
4255
4255
|
case 'number':
|
|
4256
4256
|
value = input;
|
|
4257
4257
|
break;
|
|
@@ -4390,7 +4390,7 @@ function _type_of$i(obj) {
|
|
|
4390
4390
|
return Math.log(y) / Math.log(x);
|
|
4391
4391
|
}
|
|
4392
4392
|
|
|
4393
|
-
function _type_of$
|
|
4393
|
+
function _type_of$i(obj) {
|
|
4394
4394
|
"@swc/helpers - typeof";
|
|
4395
4395
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
4396
4396
|
}
|
|
@@ -4572,7 +4572,7 @@ function _type_of$h(obj) {
|
|
|
4572
4572
|
}
|
|
4573
4573
|
var fn = function fn(input) {
|
|
4574
4574
|
var value;
|
|
4575
|
-
switch(typeof input === "undefined" ? "undefined" : _type_of$
|
|
4575
|
+
switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
|
|
4576
4576
|
case 'number':
|
|
4577
4577
|
value = input;
|
|
4578
4578
|
break;
|
|
@@ -7127,17 +7127,17 @@ function caseInsensitiveString(input) {
|
|
|
7127
7127
|
};
|
|
7128
7128
|
}
|
|
7129
7129
|
|
|
7130
|
-
function _assert_this_initialized$
|
|
7130
|
+
function _assert_this_initialized$5(self) {
|
|
7131
7131
|
if (self === void 0) {
|
|
7132
7132
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7133
7133
|
}
|
|
7134
7134
|
return self;
|
|
7135
7135
|
}
|
|
7136
|
-
function _call_super$
|
|
7137
|
-
derived = _get_prototype_of$
|
|
7138
|
-
return _possible_constructor_return$
|
|
7136
|
+
function _call_super$5(_this, derived, args) {
|
|
7137
|
+
derived = _get_prototype_of$5(derived);
|
|
7138
|
+
return _possible_constructor_return$5(_this, _is_native_reflect_construct$5() ? Reflect.construct(derived, args || [], _get_prototype_of$5(_this).constructor) : derived.apply(_this, args));
|
|
7139
7139
|
}
|
|
7140
|
-
function _class_call_check$
|
|
7140
|
+
function _class_call_check$a(instance, Constructor) {
|
|
7141
7141
|
if (!(instance instanceof Constructor)) {
|
|
7142
7142
|
throw new TypeError("Cannot call a class as a function");
|
|
7143
7143
|
}
|
|
@@ -7155,7 +7155,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
7155
7155
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
7156
7156
|
return Constructor;
|
|
7157
7157
|
}
|
|
7158
|
-
function _define_property$
|
|
7158
|
+
function _define_property$l(obj, key, value) {
|
|
7159
7159
|
if (key in obj) {
|
|
7160
7160
|
Object.defineProperty(obj, key, {
|
|
7161
7161
|
value: value,
|
|
@@ -7168,13 +7168,13 @@ function _define_property$k(obj, key, value) {
|
|
|
7168
7168
|
}
|
|
7169
7169
|
return obj;
|
|
7170
7170
|
}
|
|
7171
|
-
function _get_prototype_of$
|
|
7172
|
-
_get_prototype_of$
|
|
7171
|
+
function _get_prototype_of$5(o) {
|
|
7172
|
+
_get_prototype_of$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
7173
7173
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
7174
7174
|
};
|
|
7175
|
-
return _get_prototype_of$
|
|
7175
|
+
return _get_prototype_of$5(o);
|
|
7176
7176
|
}
|
|
7177
|
-
function _inherits$
|
|
7177
|
+
function _inherits$6(subClass, superClass) {
|
|
7178
7178
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7179
7179
|
throw new TypeError("Super expression must either be null or a function");
|
|
7180
7180
|
}
|
|
@@ -7185,30 +7185,30 @@ function _inherits$5(subClass, superClass) {
|
|
|
7185
7185
|
configurable: true
|
|
7186
7186
|
}
|
|
7187
7187
|
});
|
|
7188
|
-
if (superClass) _set_prototype_of$
|
|
7188
|
+
if (superClass) _set_prototype_of$6(subClass, superClass);
|
|
7189
7189
|
}
|
|
7190
|
-
function _possible_constructor_return$
|
|
7191
|
-
if (call && (_type_of$
|
|
7190
|
+
function _possible_constructor_return$5(self, call) {
|
|
7191
|
+
if (call && (_type_of$h(call) === "object" || typeof call === "function")) {
|
|
7192
7192
|
return call;
|
|
7193
7193
|
}
|
|
7194
|
-
return _assert_this_initialized$
|
|
7194
|
+
return _assert_this_initialized$5(self);
|
|
7195
7195
|
}
|
|
7196
|
-
function _set_prototype_of$
|
|
7197
|
-
_set_prototype_of$
|
|
7196
|
+
function _set_prototype_of$6(o, p) {
|
|
7197
|
+
_set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7198
7198
|
o.__proto__ = p;
|
|
7199
7199
|
return o;
|
|
7200
7200
|
};
|
|
7201
|
-
return _set_prototype_of$
|
|
7201
|
+
return _set_prototype_of$6(o, p);
|
|
7202
7202
|
}
|
|
7203
|
-
function _type_of$
|
|
7203
|
+
function _type_of$h(obj) {
|
|
7204
7204
|
"@swc/helpers - typeof";
|
|
7205
7205
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7206
7206
|
}
|
|
7207
|
-
function _is_native_reflect_construct$
|
|
7207
|
+
function _is_native_reflect_construct$5() {
|
|
7208
7208
|
try {
|
|
7209
7209
|
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
7210
7210
|
} catch (_) {}
|
|
7211
|
-
return (_is_native_reflect_construct$
|
|
7211
|
+
return (_is_native_reflect_construct$5 = function() {
|
|
7212
7212
|
return !!result;
|
|
7213
7213
|
})();
|
|
7214
7214
|
}
|
|
@@ -7219,13 +7219,13 @@ function _is_native_reflect_construct$4() {
|
|
|
7219
7219
|
* Error thrown when an assertion fails.
|
|
7220
7220
|
* Extends BaseError and implements ReadableError interface.
|
|
7221
7221
|
*/ var AssertionError = /*#__PURE__*/ function(BaseError) {
|
|
7222
|
-
_inherits$
|
|
7222
|
+
_inherits$6(AssertionError, BaseError);
|
|
7223
7223
|
function AssertionError(error, message) {
|
|
7224
|
-
_class_call_check$
|
|
7224
|
+
_class_call_check$a(this, AssertionError);
|
|
7225
7225
|
var _this;
|
|
7226
|
-
_this = _call_super$
|
|
7226
|
+
_this = _call_super$5(this, AssertionError, [
|
|
7227
7227
|
message
|
|
7228
|
-
]), _define_property$
|
|
7228
|
+
]), _define_property$l(_this, "code", ASSERTION_ERROR_CODE), _define_property$l(_this, "_target", void 0), _define_property$l(_this, "_property", void 0);
|
|
7229
7229
|
_this.name = 'AssertionError';
|
|
7230
7230
|
_this._target = error.target;
|
|
7231
7231
|
_this._property = error.propertyKey;
|
|
@@ -7259,7 +7259,7 @@ function _is_native_reflect_construct$4() {
|
|
|
7259
7259
|
* Handler for assertion issues that builds and throws appropriate errors.
|
|
7260
7260
|
*/ var AssertionIssueHandler = /*#__PURE__*/ function() {
|
|
7261
7261
|
function AssertionIssueHandler() {
|
|
7262
|
-
_class_call_check$
|
|
7262
|
+
_class_call_check$a(this, AssertionIssueHandler);
|
|
7263
7263
|
}
|
|
7264
7264
|
_create_class$6(AssertionIssueHandler, [
|
|
7265
7265
|
{
|
|
@@ -7312,7 +7312,7 @@ function _is_native_reflect_construct$4() {
|
|
|
7312
7312
|
* TODO: Allow changing, if needed.
|
|
7313
7313
|
*/ var ASSERTION_HANDLER = new AssertionIssueHandler();
|
|
7314
7314
|
|
|
7315
|
-
function _class_call_check$
|
|
7315
|
+
function _class_call_check$9(instance, Constructor) {
|
|
7316
7316
|
if (!(instance instanceof Constructor)) {
|
|
7317
7317
|
throw new TypeError("Cannot call a class as a function");
|
|
7318
7318
|
}
|
|
@@ -7330,7 +7330,7 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
7330
7330
|
if (staticProps) _defineProperties$5(Constructor, staticProps);
|
|
7331
7331
|
return Constructor;
|
|
7332
7332
|
}
|
|
7333
|
-
function _define_property$
|
|
7333
|
+
function _define_property$k(obj, key, value) {
|
|
7334
7334
|
if (key in obj) {
|
|
7335
7335
|
Object.defineProperty(obj, key, {
|
|
7336
7336
|
value: value,
|
|
@@ -7353,7 +7353,7 @@ function _object_spread$f(target) {
|
|
|
7353
7353
|
}));
|
|
7354
7354
|
}
|
|
7355
7355
|
ownKeys.forEach(function(key) {
|
|
7356
|
-
_define_property$
|
|
7356
|
+
_define_property$k(target, key, source[key]);
|
|
7357
7357
|
});
|
|
7358
7358
|
}
|
|
7359
7359
|
return target;
|
|
@@ -7365,7 +7365,7 @@ function _object_spread$f(target) {
|
|
|
7365
7365
|
* Used to build TypeScript decorator functions that enforce assertions on property setters.
|
|
7366
7366
|
*/ var PropertyDescriptorUtility = /*#__PURE__*/ function() {
|
|
7367
7367
|
function PropertyDescriptorUtility() {
|
|
7368
|
-
_class_call_check$
|
|
7368
|
+
_class_call_check$9(this, PropertyDescriptorUtility);
|
|
7369
7369
|
}
|
|
7370
7370
|
_create_class$5(PropertyDescriptorUtility, null, [
|
|
7371
7371
|
{
|
|
@@ -7476,6 +7476,16 @@ function _object_spread$f(target) {
|
|
|
7476
7476
|
}, options, DEFAULT_OPTIONS);
|
|
7477
7477
|
}
|
|
7478
7478
|
|
|
7479
|
+
/**
|
|
7480
|
+
* URL query parameter used to request client-side impersonation ("view as another user").
|
|
7481
|
+
*
|
|
7482
|
+
* When present on an in-app URL (e.g. `/app/dashboard?imp=<uid>`), the value is the
|
|
7483
|
+
* {@link AuthUserIdentifier} of the user to impersonate. It is read by the client-side impersonation
|
|
7484
|
+
* trigger (to begin/end impersonation) and by URL-decoding tooling (to resolve `{authUid}` model-key
|
|
7485
|
+
* placeholders to the impersonated user). Impersonation is client-side only — it never escalates
|
|
7486
|
+
* server-side privileges.
|
|
7487
|
+
*/ var IMPERSONATION_URL_QUERY_PARAM = 'imp';
|
|
7488
|
+
|
|
7479
7489
|
/**
|
|
7480
7490
|
* Auth role for an account that has signed the terms of service.
|
|
7481
7491
|
*/ var AUTH_TOS_SIGNED_ROLE = 'tos';
|
|
@@ -7546,15 +7556,15 @@ function _object_spread$f(target) {
|
|
|
7546
7556
|
* @returns The inverted filter function, or the original if invert is false
|
|
7547
7557
|
*/ var invertFilter = invertBooleanReturnFunction;
|
|
7548
7558
|
|
|
7549
|
-
function _array_like_to_array$
|
|
7559
|
+
function _array_like_to_array$s(arr, len) {
|
|
7550
7560
|
if (len == null || len > arr.length) len = arr.length;
|
|
7551
7561
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7552
7562
|
return arr2;
|
|
7553
7563
|
}
|
|
7554
|
-
function _array_with_holes$
|
|
7564
|
+
function _array_with_holes$k(arr) {
|
|
7555
7565
|
if (Array.isArray(arr)) return arr;
|
|
7556
7566
|
}
|
|
7557
|
-
function _iterable_to_array_limit$
|
|
7567
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
7558
7568
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7559
7569
|
if (_i == null) return;
|
|
7560
7570
|
var _arr = [];
|
|
@@ -7578,23 +7588,23 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
7578
7588
|
}
|
|
7579
7589
|
return _arr;
|
|
7580
7590
|
}
|
|
7581
|
-
function _non_iterable_rest$
|
|
7591
|
+
function _non_iterable_rest$k() {
|
|
7582
7592
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7583
7593
|
}
|
|
7584
|
-
function _sliced_to_array$
|
|
7585
|
-
return _array_with_holes$
|
|
7594
|
+
function _sliced_to_array$k(arr, i) {
|
|
7595
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$k();
|
|
7586
7596
|
}
|
|
7587
|
-
function _type_of$
|
|
7597
|
+
function _type_of$g(obj) {
|
|
7588
7598
|
"@swc/helpers - typeof";
|
|
7589
7599
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7590
7600
|
}
|
|
7591
|
-
function _unsupported_iterable_to_array$
|
|
7601
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
7592
7602
|
if (!o) return;
|
|
7593
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7603
|
+
if (typeof o === "string") return _array_like_to_array$s(o, minLen);
|
|
7594
7604
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7595
7605
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7596
7606
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7597
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7607
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
|
|
7598
7608
|
}
|
|
7599
7609
|
/**
|
|
7600
7610
|
* Iterates over filtered key/value tuples of an object and invokes a callback for each.
|
|
@@ -7722,7 +7732,7 @@ function _unsupported_iterable_to_array$r(o, minLen) {
|
|
|
7722
7732
|
* @param input - Enum value or filter object.
|
|
7723
7733
|
* @returns Normalized filter object.
|
|
7724
7734
|
*/ function filterKeyValueTuplesInputToFilter(input) {
|
|
7725
|
-
return (typeof input === "undefined" ? "undefined" : _type_of$
|
|
7735
|
+
return (typeof input === "undefined" ? "undefined" : _type_of$g(input)) === 'object' ? input : {
|
|
7726
7736
|
valueFilter: input
|
|
7727
7737
|
};
|
|
7728
7738
|
}
|
|
@@ -7756,43 +7766,43 @@ function _unsupported_iterable_to_array$r(o, minLen) {
|
|
|
7756
7766
|
switch(type){
|
|
7757
7767
|
case exports.KeyValueTypleValueFilter.UNDEFINED:
|
|
7758
7768
|
filterFn = function filterFn(param) {
|
|
7759
|
-
var _param = _sliced_to_array$
|
|
7769
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7760
7770
|
return x !== undefined;
|
|
7761
7771
|
};
|
|
7762
7772
|
break;
|
|
7763
7773
|
case exports.KeyValueTypleValueFilter.NULL:
|
|
7764
7774
|
filterFn = function filterFn(param) {
|
|
7765
|
-
var _param = _sliced_to_array$
|
|
7775
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7766
7776
|
return x != null;
|
|
7767
7777
|
};
|
|
7768
7778
|
break;
|
|
7769
7779
|
case exports.KeyValueTypleValueFilter.FALSY:
|
|
7770
7780
|
filterFn = function filterFn(param) {
|
|
7771
|
-
var _param = _sliced_to_array$
|
|
7781
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7772
7782
|
return Boolean(x);
|
|
7773
7783
|
};
|
|
7774
7784
|
break;
|
|
7775
7785
|
case exports.KeyValueTypleValueFilter.EMPTY:
|
|
7776
7786
|
filterFn = function filterFn(param) {
|
|
7777
|
-
var _param = _sliced_to_array$
|
|
7787
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7778
7788
|
return hasValueOrNotEmpty(x);
|
|
7779
7789
|
};
|
|
7780
7790
|
break;
|
|
7781
7791
|
case exports.KeyValueTypleValueFilter.EMPTY_STRICT:
|
|
7782
7792
|
filterFn = function filterFn(param) {
|
|
7783
|
-
var _param = _sliced_to_array$
|
|
7793
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7784
7794
|
return hasValueOrNotEmptyObject(x);
|
|
7785
7795
|
};
|
|
7786
7796
|
break;
|
|
7787
7797
|
case exports.KeyValueTypleValueFilter.FALSY_AND_EMPTY:
|
|
7788
7798
|
filterFn = function filterFn(param) {
|
|
7789
|
-
var _param = _sliced_to_array$
|
|
7799
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7790
7800
|
return Boolean(x) && hasValueOrNotEmpty(x);
|
|
7791
7801
|
};
|
|
7792
7802
|
break;
|
|
7793
7803
|
case exports.KeyValueTypleValueFilter.FALSY_AND_EMPTY_STRICT:
|
|
7794
7804
|
filterFn = function filterFn(param) {
|
|
7795
|
-
var _param = _sliced_to_array$
|
|
7805
|
+
var _param = _sliced_to_array$k(param, 2), x = _param[1];
|
|
7796
7806
|
return Boolean(x) && hasValueOrNotEmptyObject(x);
|
|
7797
7807
|
};
|
|
7798
7808
|
break;
|
|
@@ -7899,15 +7909,15 @@ function cachedGetter(factory) {
|
|
|
7899
7909
|
};
|
|
7900
7910
|
}
|
|
7901
7911
|
|
|
7902
|
-
function _array_like_to_array$
|
|
7912
|
+
function _array_like_to_array$r(arr, len) {
|
|
7903
7913
|
if (len == null || len > arr.length) len = arr.length;
|
|
7904
7914
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7905
7915
|
return arr2;
|
|
7906
7916
|
}
|
|
7907
|
-
function _array_with_holes$
|
|
7917
|
+
function _array_with_holes$j(arr) {
|
|
7908
7918
|
if (Array.isArray(arr)) return arr;
|
|
7909
7919
|
}
|
|
7910
|
-
function _define_property$
|
|
7920
|
+
function _define_property$j(obj, key, value) {
|
|
7911
7921
|
if (key in obj) {
|
|
7912
7922
|
Object.defineProperty(obj, key, {
|
|
7913
7923
|
value: value,
|
|
@@ -7920,7 +7930,7 @@ function _define_property$i(obj, key, value) {
|
|
|
7920
7930
|
}
|
|
7921
7931
|
return obj;
|
|
7922
7932
|
}
|
|
7923
|
-
function _iterable_to_array_limit$
|
|
7933
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
7924
7934
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7925
7935
|
if (_i == null) return;
|
|
7926
7936
|
var _arr = [];
|
|
@@ -7944,7 +7954,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
7944
7954
|
}
|
|
7945
7955
|
return _arr;
|
|
7946
7956
|
}
|
|
7947
|
-
function _non_iterable_rest$
|
|
7957
|
+
function _non_iterable_rest$j() {
|
|
7948
7958
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7949
7959
|
}
|
|
7950
7960
|
function _object_spread$e(target) {
|
|
@@ -7957,25 +7967,25 @@ function _object_spread$e(target) {
|
|
|
7957
7967
|
}));
|
|
7958
7968
|
}
|
|
7959
7969
|
ownKeys.forEach(function(key) {
|
|
7960
|
-
_define_property$
|
|
7970
|
+
_define_property$j(target, key, source[key]);
|
|
7961
7971
|
});
|
|
7962
7972
|
}
|
|
7963
7973
|
return target;
|
|
7964
7974
|
}
|
|
7965
|
-
function _sliced_to_array$
|
|
7966
|
-
return _array_with_holes$
|
|
7975
|
+
function _sliced_to_array$j(arr, i) {
|
|
7976
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$j();
|
|
7967
7977
|
}
|
|
7968
|
-
function _type_of$
|
|
7978
|
+
function _type_of$f(obj) {
|
|
7969
7979
|
"@swc/helpers - typeof";
|
|
7970
7980
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7971
7981
|
}
|
|
7972
|
-
function _unsupported_iterable_to_array$
|
|
7982
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
7973
7983
|
if (!o) return;
|
|
7974
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7984
|
+
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
7975
7985
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7976
7986
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7977
7987
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7978
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7988
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
|
|
7979
7989
|
}
|
|
7980
7990
|
/**
|
|
7981
7991
|
* Creates a reusable {@link StripObjectFunction} that filters values from an object and returns
|
|
@@ -8351,7 +8361,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
8351
8361
|
filter: filter,
|
|
8352
8362
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
8353
8363
|
forEach: function forEach(param, i, obj, context) {
|
|
8354
|
-
var _param = _sliced_to_array$
|
|
8364
|
+
var _param = _sliced_to_array$j(param, 1), key = _param[0];
|
|
8355
8365
|
context.keys.push(key);
|
|
8356
8366
|
}
|
|
8357
8367
|
});
|
|
@@ -8490,7 +8500,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
8490
8500
|
var forEachFn = forEachKeyValueOnPOJOFunction({
|
|
8491
8501
|
filter: filter,
|
|
8492
8502
|
forEach: function forEach(param, i, object) {
|
|
8493
|
-
var _param = _sliced_to_array$
|
|
8503
|
+
var _param = _sliced_to_array$j(param, 1), key = _param[0];
|
|
8494
8504
|
delete object[key];
|
|
8495
8505
|
}
|
|
8496
8506
|
});
|
|
@@ -8570,12 +8580,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
8570
8580
|
var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : exports.KeyValueTypleValueFilter.UNDEFINED;
|
|
8571
8581
|
var _ref;
|
|
8572
8582
|
var filter = input;
|
|
8573
|
-
var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$
|
|
8583
|
+
var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$f(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
|
|
8574
8584
|
var assignEachValueToTarget = forEachKeyValueOnPOJOFunction({
|
|
8575
8585
|
filter: filter,
|
|
8576
8586
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
8577
8587
|
forEach: function forEach(param, i, object, target) {
|
|
8578
|
-
var _param = _sliced_to_array$
|
|
8588
|
+
var _param = _sliced_to_array$j(param, 2), key = _param[0], value = _param[1];
|
|
8579
8589
|
target[key] = value;
|
|
8580
8590
|
}
|
|
8581
8591
|
});
|
|
@@ -8645,7 +8655,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
8645
8655
|
filter: filter,
|
|
8646
8656
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
8647
8657
|
forEach: function forEach(param, i, obj, context) {
|
|
8648
|
-
var _param = _sliced_to_array$
|
|
8658
|
+
var _param = _sliced_to_array$j(param, 2), value = _param[1];
|
|
8649
8659
|
context.values.push(value);
|
|
8650
8660
|
}
|
|
8651
8661
|
});
|
|
@@ -8690,7 +8700,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
8690
8700
|
var invertFilter = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
8691
8701
|
var keysSet = new Set(keysToFilter);
|
|
8692
8702
|
var filterFn = invertBooleanReturnFunction(function(param) {
|
|
8693
|
-
var _param = _sliced_to_array$
|
|
8703
|
+
var _param = _sliced_to_array$j(param, 1), key = _param[0];
|
|
8694
8704
|
return keysSet.has(key);
|
|
8695
8705
|
}, invertFilter);
|
|
8696
8706
|
return filterTuplesOnPOJOFunction(filterFn);
|
|
@@ -8918,15 +8928,15 @@ function isInSetDecisionFunction(set, inputReadValue) {
|
|
|
8918
8928
|
return input == null ? input : new Set(asArray(input));
|
|
8919
8929
|
}
|
|
8920
8930
|
|
|
8921
|
-
function _array_like_to_array$
|
|
8931
|
+
function _array_like_to_array$q(arr, len) {
|
|
8922
8932
|
if (len == null || len > arr.length) len = arr.length;
|
|
8923
8933
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8924
8934
|
return arr2;
|
|
8925
8935
|
}
|
|
8926
|
-
function _array_with_holes$
|
|
8936
|
+
function _array_with_holes$i(arr) {
|
|
8927
8937
|
if (Array.isArray(arr)) return arr;
|
|
8928
8938
|
}
|
|
8929
|
-
function _iterable_to_array_limit$
|
|
8939
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
8930
8940
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8931
8941
|
if (_i == null) return;
|
|
8932
8942
|
var _arr = [];
|
|
@@ -8950,23 +8960,23 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
8950
8960
|
}
|
|
8951
8961
|
return _arr;
|
|
8952
8962
|
}
|
|
8953
|
-
function _non_iterable_rest$
|
|
8963
|
+
function _non_iterable_rest$i() {
|
|
8954
8964
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8955
8965
|
}
|
|
8956
|
-
function _sliced_to_array$
|
|
8957
|
-
return _array_with_holes$
|
|
8966
|
+
function _sliced_to_array$i(arr, i) {
|
|
8967
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$i();
|
|
8958
8968
|
}
|
|
8959
|
-
function _type_of$
|
|
8969
|
+
function _type_of$e(obj) {
|
|
8960
8970
|
"@swc/helpers - typeof";
|
|
8961
8971
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8962
8972
|
}
|
|
8963
|
-
function _unsupported_iterable_to_array$
|
|
8973
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
8964
8974
|
if (!o) return;
|
|
8965
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8975
|
+
if (typeof o === "string") return _array_like_to_array$q(o, minLen);
|
|
8966
8976
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8967
8977
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8968
8978
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8969
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8979
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
|
|
8970
8980
|
}
|
|
8971
8981
|
var DEFAULT_AUTH_ROLE_CLAIMS_CLAIM_VALUE = 1;
|
|
8972
8982
|
var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
@@ -9008,7 +9018,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9008
9018
|
var inverse = (_inputEntry_inverse = inputEntry.inverse) !== null && _inputEntry_inverse !== void 0 ? _inputEntry_inverse : false;
|
|
9009
9019
|
// since checking uses equivalence, the objects will never match equivalence via the === properly.
|
|
9010
9020
|
// AuthRoleClaimsFactoryConfigEntryEncodeOptions is likely to be used for these cases unknownways, but this will help avoid unexpected errors.
|
|
9011
|
-
if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$
|
|
9021
|
+
if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$e(expectedValue)) === 'object') {
|
|
9012
9022
|
throw new TypeError("failed decoding claims. Expected value to be a string or number. Object isn't supported with simple claims.");
|
|
9013
9023
|
}
|
|
9014
9024
|
if (inverse) {
|
|
@@ -9065,7 +9075,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9065
9075
|
var claims = {};
|
|
9066
9076
|
// iterate by each claim value to build the claims.
|
|
9067
9077
|
tuples.forEach(function(param) {
|
|
9068
|
-
var _param = _sliced_to_array$
|
|
9078
|
+
var _param = _sliced_to_array$i(param, 2), claimsKey = _param[0], entry = _param[1];
|
|
9069
9079
|
var _entry_encodeValueFromRoles;
|
|
9070
9080
|
var claimsValue = (_entry_encodeValueFromRoles = entry.encodeValueFromRoles(roles)) !== null && _entry_encodeValueFromRoles !== void 0 ? _entry_encodeValueFromRoles : defaultEmptyValue;
|
|
9071
9081
|
claims[claimsKey] = claimsValue;
|
|
@@ -9075,7 +9085,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9075
9085
|
var forEachKeyValueAddToSet = forEachKeyValueOnPOJOFunction({
|
|
9076
9086
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9077
9087
|
forEach: function forEach(param, i, claims, roles) {
|
|
9078
|
-
var _param = _sliced_to_array$
|
|
9088
|
+
var _param = _sliced_to_array$i(param, 2), claimsKey = _param[0], value = _param[1];
|
|
9079
9089
|
var entry = authRoleMap.get(claimsKey);
|
|
9080
9090
|
if (entry != null) {
|
|
9081
9091
|
var decodedRoles = entry.decodeRolesFromValue(value);
|
|
@@ -9089,7 +9099,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9089
9099
|
return roles;
|
|
9090
9100
|
};
|
|
9091
9101
|
var claimKeys = tuples.map(function(param) {
|
|
9092
|
-
var _param = _sliced_to_array$
|
|
9102
|
+
var _param = _sliced_to_array$i(param, 1), key = _param[0];
|
|
9093
9103
|
return key;
|
|
9094
9104
|
});
|
|
9095
9105
|
var copyClaims = function copyClaims(source) {
|
|
@@ -9127,19 +9137,7 @@ var DEFAULT_AUTH_ROLE_CLAIMS_EMPTY_VALUE = null;
|
|
|
9127
9137
|
});
|
|
9128
9138
|
}
|
|
9129
9139
|
|
|
9130
|
-
|
|
9131
|
-
* Standard "out-of-band" OAuth 2.0 redirect URI URN.
|
|
9132
|
-
*
|
|
9133
|
-
* Defined by RFC 6749 §1.3 / draft-ietf-oauth-native-apps. Used by native and CLI clients that
|
|
9134
|
-
* have no HTTP server to receive the redirect — the authorization server displays the
|
|
9135
|
-
* authorization code on a final page and the user pastes it back into the application.
|
|
9136
|
-
*
|
|
9137
|
-
* Many providers have deprecated this in favor of loopback redirects (e.g.
|
|
9138
|
-
* `http://127.0.0.1:<port>/callback`), but it remains in use as a fallback for tools that cannot
|
|
9139
|
-
* bind a local port.
|
|
9140
|
-
*/ var OAUTH_OOB_REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob';
|
|
9141
|
-
|
|
9142
|
-
function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9140
|
+
function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9143
9141
|
try {
|
|
9144
9142
|
var info = gen[key](arg);
|
|
9145
9143
|
var value = info.value;
|
|
@@ -9153,22 +9151,22 @@ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
9153
9151
|
Promise.resolve(value).then(_next, _throw);
|
|
9154
9152
|
}
|
|
9155
9153
|
}
|
|
9156
|
-
function _async_to_generator$
|
|
9154
|
+
function _async_to_generator$e(fn) {
|
|
9157
9155
|
return function() {
|
|
9158
9156
|
var self = this, args = arguments;
|
|
9159
9157
|
return new Promise(function(resolve, reject) {
|
|
9160
9158
|
var gen = fn.apply(self, args);
|
|
9161
9159
|
function _next(value) {
|
|
9162
|
-
asyncGeneratorStep$
|
|
9160
|
+
asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
|
|
9163
9161
|
}
|
|
9164
9162
|
function _throw(err) {
|
|
9165
|
-
asyncGeneratorStep$
|
|
9163
|
+
asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
|
|
9166
9164
|
}
|
|
9167
9165
|
_next(undefined);
|
|
9168
9166
|
});
|
|
9169
9167
|
};
|
|
9170
9168
|
}
|
|
9171
|
-
function _ts_generator$
|
|
9169
|
+
function _ts_generator$e(thisArg, body) {
|
|
9172
9170
|
var f, y, t, _ = {
|
|
9173
9171
|
label: 0,
|
|
9174
9172
|
sent: function() {
|
|
@@ -9282,9 +9280,9 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9282
9280
|
* @param verifier - The code verifier string to hash.
|
|
9283
9281
|
* @returns A base64url-encoded SHA-256 hash of the verifier.
|
|
9284
9282
|
*/ function generatePkceCodeChallenge(verifier) {
|
|
9285
|
-
return _async_to_generator$
|
|
9283
|
+
return _async_to_generator$e(function() {
|
|
9286
9284
|
var encoder, data, digest;
|
|
9287
|
-
return _ts_generator$
|
|
9285
|
+
return _ts_generator$e(this, function(_state) {
|
|
9288
9286
|
switch(_state.label){
|
|
9289
9287
|
case 0:
|
|
9290
9288
|
encoder = new TextEncoder();
|
|
@@ -9310,6 +9308,587 @@ function base64UrlEncode(bytes) {
|
|
|
9310
9308
|
return btoa(binString).replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');
|
|
9311
9309
|
}
|
|
9312
9310
|
|
|
9311
|
+
function _array_like_to_array$p(arr, len) {
|
|
9312
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
9313
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9314
|
+
return arr2;
|
|
9315
|
+
}
|
|
9316
|
+
function _array_with_holes$h(arr) {
|
|
9317
|
+
if (Array.isArray(arr)) return arr;
|
|
9318
|
+
}
|
|
9319
|
+
function _assert_this_initialized$4(self) {
|
|
9320
|
+
if (self === void 0) {
|
|
9321
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9322
|
+
}
|
|
9323
|
+
return self;
|
|
9324
|
+
}
|
|
9325
|
+
function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9326
|
+
try {
|
|
9327
|
+
var info = gen[key](arg);
|
|
9328
|
+
var value = info.value;
|
|
9329
|
+
} catch (error) {
|
|
9330
|
+
reject(error);
|
|
9331
|
+
return;
|
|
9332
|
+
}
|
|
9333
|
+
if (info.done) {
|
|
9334
|
+
resolve(value);
|
|
9335
|
+
} else {
|
|
9336
|
+
Promise.resolve(value).then(_next, _throw);
|
|
9337
|
+
}
|
|
9338
|
+
}
|
|
9339
|
+
function _async_to_generator$d(fn) {
|
|
9340
|
+
return function() {
|
|
9341
|
+
var self = this, args = arguments;
|
|
9342
|
+
return new Promise(function(resolve, reject) {
|
|
9343
|
+
var gen = fn.apply(self, args);
|
|
9344
|
+
function _next(value) {
|
|
9345
|
+
asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
|
|
9346
|
+
}
|
|
9347
|
+
function _throw(err) {
|
|
9348
|
+
asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
|
|
9349
|
+
}
|
|
9350
|
+
_next(undefined);
|
|
9351
|
+
});
|
|
9352
|
+
};
|
|
9353
|
+
}
|
|
9354
|
+
function _call_super$4(_this, derived, args) {
|
|
9355
|
+
derived = _get_prototype_of$4(derived);
|
|
9356
|
+
return _possible_constructor_return$4(_this, _is_native_reflect_construct$4() ? Reflect.construct(derived, args || [], _get_prototype_of$4(_this).constructor) : derived.apply(_this, args));
|
|
9357
|
+
}
|
|
9358
|
+
function _class_call_check$8(instance, Constructor) {
|
|
9359
|
+
if (!(instance instanceof Constructor)) {
|
|
9360
|
+
throw new TypeError("Cannot call a class as a function");
|
|
9361
|
+
}
|
|
9362
|
+
}
|
|
9363
|
+
function _define_property$i(obj, key, value) {
|
|
9364
|
+
if (key in obj) {
|
|
9365
|
+
Object.defineProperty(obj, key, {
|
|
9366
|
+
value: value,
|
|
9367
|
+
enumerable: true,
|
|
9368
|
+
configurable: true,
|
|
9369
|
+
writable: true
|
|
9370
|
+
});
|
|
9371
|
+
} else {
|
|
9372
|
+
obj[key] = value;
|
|
9373
|
+
}
|
|
9374
|
+
return obj;
|
|
9375
|
+
}
|
|
9376
|
+
function _get_prototype_of$4(o) {
|
|
9377
|
+
_get_prototype_of$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
9378
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
9379
|
+
};
|
|
9380
|
+
return _get_prototype_of$4(o);
|
|
9381
|
+
}
|
|
9382
|
+
function _inherits$5(subClass, superClass) {
|
|
9383
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
9384
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
9385
|
+
}
|
|
9386
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
9387
|
+
constructor: {
|
|
9388
|
+
value: subClass,
|
|
9389
|
+
writable: true,
|
|
9390
|
+
configurable: true
|
|
9391
|
+
}
|
|
9392
|
+
});
|
|
9393
|
+
if (superClass) _set_prototype_of$5(subClass, superClass);
|
|
9394
|
+
}
|
|
9395
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
9396
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9397
|
+
if (_i == null) return;
|
|
9398
|
+
var _arr = [];
|
|
9399
|
+
var _n = true;
|
|
9400
|
+
var _d = false;
|
|
9401
|
+
var _s, _e;
|
|
9402
|
+
try {
|
|
9403
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
9404
|
+
_arr.push(_s.value);
|
|
9405
|
+
if (i && _arr.length === i) break;
|
|
9406
|
+
}
|
|
9407
|
+
} catch (err) {
|
|
9408
|
+
_d = true;
|
|
9409
|
+
_e = err;
|
|
9410
|
+
} finally{
|
|
9411
|
+
try {
|
|
9412
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
9413
|
+
} finally{
|
|
9414
|
+
if (_d) throw _e;
|
|
9415
|
+
}
|
|
9416
|
+
}
|
|
9417
|
+
return _arr;
|
|
9418
|
+
}
|
|
9419
|
+
function _non_iterable_rest$h() {
|
|
9420
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9421
|
+
}
|
|
9422
|
+
function _possible_constructor_return$4(self, call) {
|
|
9423
|
+
if (call && (_type_of$d(call) === "object" || typeof call === "function")) {
|
|
9424
|
+
return call;
|
|
9425
|
+
}
|
|
9426
|
+
return _assert_this_initialized$4(self);
|
|
9427
|
+
}
|
|
9428
|
+
function _set_prototype_of$5(o, p) {
|
|
9429
|
+
_set_prototype_of$5 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
9430
|
+
o.__proto__ = p;
|
|
9431
|
+
return o;
|
|
9432
|
+
};
|
|
9433
|
+
return _set_prototype_of$5(o, p);
|
|
9434
|
+
}
|
|
9435
|
+
function _sliced_to_array$h(arr, i) {
|
|
9436
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$h();
|
|
9437
|
+
}
|
|
9438
|
+
function _type_of$d(obj) {
|
|
9439
|
+
"@swc/helpers - typeof";
|
|
9440
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9441
|
+
}
|
|
9442
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
9443
|
+
if (!o) return;
|
|
9444
|
+
if (typeof o === "string") return _array_like_to_array$p(o, minLen);
|
|
9445
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9446
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9447
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9448
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
|
|
9449
|
+
}
|
|
9450
|
+
function _is_native_reflect_construct$4() {
|
|
9451
|
+
try {
|
|
9452
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
9453
|
+
} catch (_) {}
|
|
9454
|
+
return (_is_native_reflect_construct$4 = function() {
|
|
9455
|
+
return !!result;
|
|
9456
|
+
})();
|
|
9457
|
+
}
|
|
9458
|
+
function _ts_generator$d(thisArg, body) {
|
|
9459
|
+
var f, y, t, _ = {
|
|
9460
|
+
label: 0,
|
|
9461
|
+
sent: function() {
|
|
9462
|
+
if (t[0] & 1) throw t[1];
|
|
9463
|
+
return t[1];
|
|
9464
|
+
},
|
|
9465
|
+
trys: [],
|
|
9466
|
+
ops: []
|
|
9467
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
9468
|
+
return d(g, "next", {
|
|
9469
|
+
value: verb(0)
|
|
9470
|
+
}), d(g, "throw", {
|
|
9471
|
+
value: verb(1)
|
|
9472
|
+
}), d(g, "return", {
|
|
9473
|
+
value: verb(2)
|
|
9474
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
9475
|
+
value: function() {
|
|
9476
|
+
return this;
|
|
9477
|
+
}
|
|
9478
|
+
}), g;
|
|
9479
|
+
function verb(n) {
|
|
9480
|
+
return function(v) {
|
|
9481
|
+
return step([
|
|
9482
|
+
n,
|
|
9483
|
+
v
|
|
9484
|
+
]);
|
|
9485
|
+
};
|
|
9486
|
+
}
|
|
9487
|
+
function step(op) {
|
|
9488
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
9489
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
9490
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
9491
|
+
if (y = 0, t) op = [
|
|
9492
|
+
op[0] & 2,
|
|
9493
|
+
t.value
|
|
9494
|
+
];
|
|
9495
|
+
switch(op[0]){
|
|
9496
|
+
case 0:
|
|
9497
|
+
case 1:
|
|
9498
|
+
t = op;
|
|
9499
|
+
break;
|
|
9500
|
+
case 4:
|
|
9501
|
+
_.label++;
|
|
9502
|
+
return {
|
|
9503
|
+
value: op[1],
|
|
9504
|
+
done: false
|
|
9505
|
+
};
|
|
9506
|
+
case 5:
|
|
9507
|
+
_.label++;
|
|
9508
|
+
y = op[1];
|
|
9509
|
+
op = [
|
|
9510
|
+
0
|
|
9511
|
+
];
|
|
9512
|
+
continue;
|
|
9513
|
+
case 7:
|
|
9514
|
+
op = _.ops.pop();
|
|
9515
|
+
_.trys.pop();
|
|
9516
|
+
continue;
|
|
9517
|
+
default:
|
|
9518
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
9519
|
+
_ = 0;
|
|
9520
|
+
continue;
|
|
9521
|
+
}
|
|
9522
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
9523
|
+
_.label = op[1];
|
|
9524
|
+
break;
|
|
9525
|
+
}
|
|
9526
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
9527
|
+
_.label = t[1];
|
|
9528
|
+
t = op;
|
|
9529
|
+
break;
|
|
9530
|
+
}
|
|
9531
|
+
if (t && _.label < t[2]) {
|
|
9532
|
+
_.label = t[2];
|
|
9533
|
+
_.ops.push(op);
|
|
9534
|
+
break;
|
|
9535
|
+
}
|
|
9536
|
+
if (t[2]) _.ops.pop();
|
|
9537
|
+
_.trys.pop();
|
|
9538
|
+
continue;
|
|
9539
|
+
}
|
|
9540
|
+
op = body.call(thisArg, _);
|
|
9541
|
+
} catch (e) {
|
|
9542
|
+
op = [
|
|
9543
|
+
6,
|
|
9544
|
+
e
|
|
9545
|
+
];
|
|
9546
|
+
y = 0;
|
|
9547
|
+
} finally{
|
|
9548
|
+
f = t = 0;
|
|
9549
|
+
}
|
|
9550
|
+
if (op[0] & 5) throw op[1];
|
|
9551
|
+
return {
|
|
9552
|
+
value: op[0] ? op[1] : void 0,
|
|
9553
|
+
done: true
|
|
9554
|
+
};
|
|
9555
|
+
}
|
|
9556
|
+
}
|
|
9557
|
+
/**
|
|
9558
|
+
* Standard "out-of-band" OAuth 2.0 redirect URI URN.
|
|
9559
|
+
*
|
|
9560
|
+
* Defined by RFC 6749 §1.3 / draft-ietf-oauth-native-apps. Used by native and CLI clients that
|
|
9561
|
+
* have no HTTP server to receive the redirect — the authorization server displays the
|
|
9562
|
+
* authorization code on a final page and the user pastes it back into the application.
|
|
9563
|
+
*
|
|
9564
|
+
* Many providers have deprecated this in favor of loopback redirects (e.g.
|
|
9565
|
+
* `http://127.0.0.1:<port>/callback`), but it remains in use as a fallback for tools that cannot
|
|
9566
|
+
* bind a local port.
|
|
9567
|
+
*/ var OAUTH_OOB_REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob';
|
|
9568
|
+
/**
|
|
9569
|
+
* Default OAuth scope requested by an OIDC relying party when no explicit scope list is provided.
|
|
9570
|
+
*
|
|
9571
|
+
* `openid` is the one scope every OpenID Connect flow must request to receive an ID token.
|
|
9572
|
+
*/ var DEFAULT_OIDC_RELYING_PARTY_SCOPE = 'openid';
|
|
9573
|
+
/**
|
|
9574
|
+
* Error raised by the OIDC relying-party layer (pure helpers here + the network protocol functions
|
|
9575
|
+
* in `@dereekb/util/oidc`). Carries a stable {@link OidcRelyingPartyErrorCode} so environment shells
|
|
9576
|
+
* (CLI, browser) can branch on or re-wrap it without string-matching messages.
|
|
9577
|
+
*/ var OidcRelyingPartyError = /*#__PURE__*/ function(BaseError) {
|
|
9578
|
+
_inherits$5(OidcRelyingPartyError, BaseError);
|
|
9579
|
+
function OidcRelyingPartyError(input) {
|
|
9580
|
+
_class_call_check$8(this, OidcRelyingPartyError);
|
|
9581
|
+
var _this;
|
|
9582
|
+
_this = _call_super$4(this, OidcRelyingPartyError, [
|
|
9583
|
+
input.message
|
|
9584
|
+
]), _define_property$i(_this, "code", void 0), _define_property$i(_this, "_error", void 0);
|
|
9585
|
+
_this.code = input.code;
|
|
9586
|
+
_this._error = input._error;
|
|
9587
|
+
return _this;
|
|
9588
|
+
}
|
|
9589
|
+
return OidcRelyingPartyError;
|
|
9590
|
+
}(makeError.BaseError);
|
|
9591
|
+
// MARK: Discovery Candidates
|
|
9592
|
+
/**
|
|
9593
|
+
* Builds the ordered list of `.well-known/openid-configuration` URLs probed when discovering OIDC
|
|
9594
|
+
* metadata.
|
|
9595
|
+
*
|
|
9596
|
+
* 1. `<issuer>/.well-known/openid-configuration` (OpenID Connect Discovery 1.0).
|
|
9597
|
+
* 2. `<issuer-origin>/.well-known/openid-configuration` (host-rooted; matches projects that
|
|
9598
|
+
* mount the discovery controller at the API/dev-server root rather than under the issuer
|
|
9599
|
+
* sub-path — e.g. demo's `OidcWellKnownController`).
|
|
9600
|
+
* 3. `<fallbackBaseUrl>/.well-known/openid-configuration` when supplied and not already covered.
|
|
9601
|
+
*
|
|
9602
|
+
* Exported so diagnostic surfaces (e.g. a CLI `doctor`) can show the exact URLs the discovery step
|
|
9603
|
+
* tried — without re-implementing the candidate ordering.
|
|
9604
|
+
*
|
|
9605
|
+
* @param input - The discovery request.
|
|
9606
|
+
* @param input.issuer - The OIDC issuer URL whose `.well-known/openid-configuration` is fetched first.
|
|
9607
|
+
* @param input.fallbackBaseUrl - Optional sibling base URL appended after the issuer-prefixed and origin-rooted candidates.
|
|
9608
|
+
* @returns The candidate URL list in probe order, de-duplicated.
|
|
9609
|
+
*
|
|
9610
|
+
* @__NO_SIDE_EFFECTS__
|
|
9611
|
+
*/ function buildOidcDiscoveryCandidates(input) {
|
|
9612
|
+
var candidates = [
|
|
9613
|
+
"".concat(trimSlash(input.issuer), "/.well-known/openid-configuration")
|
|
9614
|
+
];
|
|
9615
|
+
try {
|
|
9616
|
+
var originCandidate = "".concat(new URL(input.issuer).origin, "/.well-known/openid-configuration");
|
|
9617
|
+
if (!candidates.includes(originCandidate)) {
|
|
9618
|
+
candidates.push(originCandidate);
|
|
9619
|
+
}
|
|
9620
|
+
} catch (unused) {
|
|
9621
|
+
// Issuer URL didn't parse — skip the origin-rooted candidate and let the explicit fallback handle it.
|
|
9622
|
+
}
|
|
9623
|
+
if (input.fallbackBaseUrl) {
|
|
9624
|
+
var fallbackCandidate = "".concat(trimSlash(input.fallbackBaseUrl), "/.well-known/openid-configuration");
|
|
9625
|
+
if (!candidates.includes(fallbackCandidate)) {
|
|
9626
|
+
candidates.push(fallbackCandidate);
|
|
9627
|
+
}
|
|
9628
|
+
}
|
|
9629
|
+
return candidates;
|
|
9630
|
+
}
|
|
9631
|
+
/**
|
|
9632
|
+
* Returns the input URL string with a single trailing slash removed, if present.
|
|
9633
|
+
*
|
|
9634
|
+
* @param url - The URL string to trim.
|
|
9635
|
+
* @returns The URL without a trailing slash.
|
|
9636
|
+
*
|
|
9637
|
+
* @__NO_SIDE_EFFECTS__
|
|
9638
|
+
*/ function trimSlash(url) {
|
|
9639
|
+
return url.endsWith('/') ? url.slice(0, -1) : url;
|
|
9640
|
+
}
|
|
9641
|
+
/**
|
|
9642
|
+
* Builds the authorization URL the user opens in a browser to start the PKCE flow.
|
|
9643
|
+
*
|
|
9644
|
+
* The user-facing endpoint is the discovered `authorizationEndpoint` (typically `/oidc/auth`)
|
|
9645
|
+
* with its origin optionally rebased. The rebase origin is the first non-empty value among
|
|
9646
|
+
* `appClientUrl` → `oidcIssuer` origin → `apiBaseUrl` origin. In a typical single-host
|
|
9647
|
+
* deployment all three resolve to the same origin and the rebase is a no-op; in a split-host
|
|
9648
|
+
* setup (frontend dev server proxying `/oidc/**` to the API) `appClientUrl` redirects the user
|
|
9649
|
+
* through the frontend. When none of the three is provided, the discovered endpoint is used
|
|
9650
|
+
* unchanged.
|
|
9651
|
+
*
|
|
9652
|
+
* Always lands at the actual authorization endpoint so oidc-provider can create an interaction
|
|
9653
|
+
* and redirect to the app login page with a `uid`.
|
|
9654
|
+
*
|
|
9655
|
+
* @param input - The authorization URL inputs.
|
|
9656
|
+
* @param input.authorizationEndpoint - The authorization endpoint discovered from OIDC metadata.
|
|
9657
|
+
* @param input.appClientUrl - Optional client origin to rebase the authorization endpoint onto. Takes precedence over `oidcIssuer` and `apiBaseUrl`.
|
|
9658
|
+
* @param input.oidcIssuer - Optional OIDC issuer URL; falls back to its origin as the rebase target when `appClientUrl` is missing.
|
|
9659
|
+
* @param input.apiBaseUrl - Optional API base URL; falls back to its origin as the rebase target when neither `appClientUrl` nor `oidcIssuer` is set.
|
|
9660
|
+
* @param input.clientId - The OAuth client ID.
|
|
9661
|
+
* @param input.redirectUri - The redirect URI registered with the OAuth client.
|
|
9662
|
+
* @param input.scopes - Space-separated scope list. Defaults to {@link DEFAULT_OIDC_RELYING_PARTY_SCOPE}.
|
|
9663
|
+
* @param input.state - The opaque OAuth state token used for CSRF protection.
|
|
9664
|
+
* @param input.codeChallenge - The PKCE code challenge derived from the verifier.
|
|
9665
|
+
* @returns The full authorization URL with all OAuth params merged in.
|
|
9666
|
+
* @throws {OidcRelyingPartyError} When `requestedSessionTtlSeconds` is provided but is not a positive integer.
|
|
9667
|
+
*
|
|
9668
|
+
* @__NO_SIDE_EFFECTS__
|
|
9669
|
+
*/ function buildAuthorizationUrl(input) {
|
|
9670
|
+
var _input_scopes;
|
|
9671
|
+
var resolvedScope = (_input_scopes = input.scopes) !== null && _input_scopes !== void 0 ? _input_scopes : DEFAULT_OIDC_RELYING_PARTY_SCOPE;
|
|
9672
|
+
var authParams = {
|
|
9673
|
+
response_type: 'code',
|
|
9674
|
+
client_id: input.clientId,
|
|
9675
|
+
redirect_uri: input.redirectUri,
|
|
9676
|
+
scope: resolvedScope,
|
|
9677
|
+
code_challenge: input.codeChallenge,
|
|
9678
|
+
code_challenge_method: 'S256',
|
|
9679
|
+
state: input.state
|
|
9680
|
+
};
|
|
9681
|
+
// oidc-provider's check_scope middleware silently strips `offline_access` unless the
|
|
9682
|
+
// auth request also includes `prompt=consent`. Auto-add it so refresh tokens are
|
|
9683
|
+
// actually issued whenever offline access is requested.
|
|
9684
|
+
if (resolvedScope.split(/\s+/).includes('offline_access')) {
|
|
9685
|
+
authParams.prompt = 'consent';
|
|
9686
|
+
}
|
|
9687
|
+
if (input.requestedSessionTtlSeconds != null) {
|
|
9688
|
+
if (!Number.isInteger(input.requestedSessionTtlSeconds) || input.requestedSessionTtlSeconds <= 0) {
|
|
9689
|
+
throw new OidcRelyingPartyError({
|
|
9690
|
+
message: "requestedSessionTtlSeconds must be a positive integer (got ".concat(input.requestedSessionTtlSeconds, ")."),
|
|
9691
|
+
code: 'INVALID_SESSION_TTL'
|
|
9692
|
+
});
|
|
9693
|
+
}
|
|
9694
|
+
authParams.dbx_session_ttl = String(input.requestedSessionTtlSeconds);
|
|
9695
|
+
}
|
|
9696
|
+
var rebaseOrigin = resolveAuthorizationRebaseOrigin({
|
|
9697
|
+
appClientUrl: input.appClientUrl,
|
|
9698
|
+
oidcIssuer: input.oidcIssuer,
|
|
9699
|
+
apiBaseUrl: input.apiBaseUrl
|
|
9700
|
+
});
|
|
9701
|
+
var endpoint = rebaseOrigin ? rebaseUrlOrigin({
|
|
9702
|
+
url: input.authorizationEndpoint,
|
|
9703
|
+
originUrl: rebaseOrigin
|
|
9704
|
+
}) : input.authorizationEndpoint;
|
|
9705
|
+
// Merge into the existing query string (preserving any params already on the endpoint) so
|
|
9706
|
+
// a pre-baked endpoint like `/oidc/auth?source=cli` survives unchanged.
|
|
9707
|
+
var url = new URL(endpoint);
|
|
9708
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
9709
|
+
try {
|
|
9710
|
+
for(var _iterator = Object.entries(authParams)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
9711
|
+
var _step_value = _sliced_to_array$h(_step.value, 2), key = _step_value[0], value = _step_value[1];
|
|
9712
|
+
url.searchParams.set(key, value);
|
|
9713
|
+
}
|
|
9714
|
+
} catch (err) {
|
|
9715
|
+
_didIteratorError = true;
|
|
9716
|
+
_iteratorError = err;
|
|
9717
|
+
} finally{
|
|
9718
|
+
try {
|
|
9719
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
9720
|
+
_iterator.return();
|
|
9721
|
+
}
|
|
9722
|
+
} finally{
|
|
9723
|
+
if (_didIteratorError) {
|
|
9724
|
+
throw _iteratorError;
|
|
9725
|
+
}
|
|
9726
|
+
}
|
|
9727
|
+
}
|
|
9728
|
+
return url.toString();
|
|
9729
|
+
}
|
|
9730
|
+
/**
|
|
9731
|
+
* Picks the origin used to rebase the discovered authorization endpoint, in priority order:
|
|
9732
|
+
* 1. `appClientUrl` (verbatim — the explicit override)
|
|
9733
|
+
* 2. `oidcIssuer` (parsed `origin`, e.g. `https://api.example.com/oidc` → `https://api.example.com`)
|
|
9734
|
+
* 3. `apiBaseUrl` (parsed `origin`, e.g. `https://api.example.com/api` → `https://api.example.com`)
|
|
9735
|
+
*
|
|
9736
|
+
* Returns `undefined` when none is set or every candidate fails to parse; the caller should then
|
|
9737
|
+
* use the discovered endpoint unchanged.
|
|
9738
|
+
*
|
|
9739
|
+
* @param input - The candidate URLs in priority order.
|
|
9740
|
+
* @returns The selected origin, or `undefined` when no candidate yields one.
|
|
9741
|
+
*/ function resolveAuthorizationRebaseOrigin(input) {
|
|
9742
|
+
var result;
|
|
9743
|
+
if (input.appClientUrl) {
|
|
9744
|
+
result = input.appClientUrl;
|
|
9745
|
+
} else {
|
|
9746
|
+
var _input_oidcIssuer;
|
|
9747
|
+
var fallbackSource = (_input_oidcIssuer = input.oidcIssuer) !== null && _input_oidcIssuer !== void 0 ? _input_oidcIssuer : input.apiBaseUrl;
|
|
9748
|
+
if (fallbackSource) {
|
|
9749
|
+
try {
|
|
9750
|
+
result = new URL(fallbackSource).origin;
|
|
9751
|
+
} catch (unused) {
|
|
9752
|
+
// Fall through with result undefined
|
|
9753
|
+
}
|
|
9754
|
+
}
|
|
9755
|
+
}
|
|
9756
|
+
return result;
|
|
9757
|
+
}
|
|
9758
|
+
/**
|
|
9759
|
+
* Returns `url` with its origin replaced by the origin of `originUrl`. The path and search of
|
|
9760
|
+
* `url` are preserved. When `originUrl` is empty/missing or either URL fails to parse, returns
|
|
9761
|
+
* `url` unchanged.
|
|
9762
|
+
*
|
|
9763
|
+
* @param input - The rebase inputs.
|
|
9764
|
+
* @param input.url - The URL whose path/search should be preserved.
|
|
9765
|
+
* @param input.originUrl - The origin to rebase `url` onto.
|
|
9766
|
+
* @returns The rebased URL string, or `input.url` unchanged when rebasing isn't possible.
|
|
9767
|
+
*/ function rebaseUrlOrigin(input) {
|
|
9768
|
+
var result = input.url;
|
|
9769
|
+
if (input.originUrl) {
|
|
9770
|
+
try {
|
|
9771
|
+
var parsedUrl = new URL(input.url);
|
|
9772
|
+
var parsedOrigin = new URL(input.originUrl);
|
|
9773
|
+
parsedUrl.protocol = parsedOrigin.protocol;
|
|
9774
|
+
parsedUrl.host = parsedOrigin.host;
|
|
9775
|
+
result = parsedUrl.toString();
|
|
9776
|
+
} catch (unused) {
|
|
9777
|
+
// Fall through with the original url unchanged
|
|
9778
|
+
}
|
|
9779
|
+
}
|
|
9780
|
+
return result;
|
|
9781
|
+
}
|
|
9782
|
+
/**
|
|
9783
|
+
* Generates a fresh PKCE code verifier and the matching SHA-256 code challenge.
|
|
9784
|
+
*
|
|
9785
|
+
* @returns A {@link PkceMaterial} pair consisting of the random `codeVerifier` and its derived `codeChallenge`.
|
|
9786
|
+
*/ function generatePkceMaterial() {
|
|
9787
|
+
return _async_to_generator$d(function() {
|
|
9788
|
+
var codeVerifier, codeChallenge;
|
|
9789
|
+
return _ts_generator$d(this, function(_state) {
|
|
9790
|
+
switch(_state.label){
|
|
9791
|
+
case 0:
|
|
9792
|
+
codeVerifier = generatePkceCodeVerifier();
|
|
9793
|
+
return [
|
|
9794
|
+
4,
|
|
9795
|
+
generatePkceCodeChallenge(codeVerifier)
|
|
9796
|
+
];
|
|
9797
|
+
case 1:
|
|
9798
|
+
codeChallenge = _state.sent();
|
|
9799
|
+
return [
|
|
9800
|
+
2,
|
|
9801
|
+
{
|
|
9802
|
+
codeVerifier: codeVerifier,
|
|
9803
|
+
codeChallenge: codeChallenge
|
|
9804
|
+
}
|
|
9805
|
+
];
|
|
9806
|
+
}
|
|
9807
|
+
});
|
|
9808
|
+
})();
|
|
9809
|
+
}
|
|
9810
|
+
/**
|
|
9811
|
+
* Generates a random URL-safe state value for the OAuth state parameter.
|
|
9812
|
+
*
|
|
9813
|
+
* @returns A 32-character hex string derived from 16 random bytes.
|
|
9814
|
+
*/ function generateOAuthState() {
|
|
9815
|
+
var bytes = new Uint8Array(16);
|
|
9816
|
+
crypto.getRandomValues(bytes);
|
|
9817
|
+
return Array.from(bytes, function(b) {
|
|
9818
|
+
return b.toString(16).padStart(2, '0');
|
|
9819
|
+
}).join('');
|
|
9820
|
+
}
|
|
9821
|
+
/**
|
|
9822
|
+
* Parses an authorization code out of a redirect URL or a bare code string.
|
|
9823
|
+
*
|
|
9824
|
+
* Validates the `state` parameter when an expected value is provided.
|
|
9825
|
+
*
|
|
9826
|
+
* @param input - The parse inputs.
|
|
9827
|
+
* @param input.url - The redirect URL or bare authorization code.
|
|
9828
|
+
* @param input.expectedState - Optional state value to assert against `state` when present in the URL.
|
|
9829
|
+
* @returns The {@link ParsedAuthorizationRedirect} containing `code` and (when present) `state`.
|
|
9830
|
+
* @throws {OidcRelyingPartyError} When `url` is empty, when the URL contains no `code` parameter, or when `expectedState` does not match the URL's `state`.
|
|
9831
|
+
*/ function parseAuthorizationRedirect(input) {
|
|
9832
|
+
var trimmed = input.url.trim();
|
|
9833
|
+
if (!trimmed) {
|
|
9834
|
+
throw new OidcRelyingPartyError({
|
|
9835
|
+
message: 'No code or redirect URL was provided.',
|
|
9836
|
+
code: 'AUTH_NO_CODE'
|
|
9837
|
+
});
|
|
9838
|
+
}
|
|
9839
|
+
var isUrl = trimmed.startsWith('http://') || trimmed.startsWith('https://') || trimmed.startsWith('urn:');
|
|
9840
|
+
return isUrl ? parseUrlRedirect(trimmed, input.expectedState) : {
|
|
9841
|
+
code: trimmed
|
|
9842
|
+
};
|
|
9843
|
+
}
|
|
9844
|
+
function parseRedirectUrlOrThrow(trimmed) {
|
|
9845
|
+
var url;
|
|
9846
|
+
try {
|
|
9847
|
+
// Native URL doesn't parse all urn: schemes — handle the urn:ietf paste case explicitly
|
|
9848
|
+
url = trimmed.startsWith('urn:') ? new URL("https://placeholder.invalid?".concat(trimmed.split('?').slice(1).join('?'))) : new URL(trimmed);
|
|
9849
|
+
} catch (unused) {
|
|
9850
|
+
throw new OidcRelyingPartyError({
|
|
9851
|
+
message: 'Could not parse redirect URL',
|
|
9852
|
+
code: 'AUTH_REDIRECT_PARSE_FAILED'
|
|
9853
|
+
});
|
|
9854
|
+
}
|
|
9855
|
+
return url;
|
|
9856
|
+
}
|
|
9857
|
+
function throwForUrlMissingCode(url) {
|
|
9858
|
+
var errorParam = url.searchParams.get('error');
|
|
9859
|
+
if (errorParam) {
|
|
9860
|
+
var errorDescription = url.searchParams.get('error_description');
|
|
9861
|
+
var descriptionSuffix = errorDescription ? " (".concat(errorDescription, ")") : '';
|
|
9862
|
+
throw new OidcRelyingPartyError({
|
|
9863
|
+
message: "Authorization server returned an error: ".concat(errorParam).concat(descriptionSuffix),
|
|
9864
|
+
code: 'AUTH_PROVIDER_ERROR'
|
|
9865
|
+
});
|
|
9866
|
+
}
|
|
9867
|
+
throw new OidcRelyingPartyError({
|
|
9868
|
+
message: 'No `code` parameter found in the redirect URL.',
|
|
9869
|
+
code: 'AUTH_NO_CODE'
|
|
9870
|
+
});
|
|
9871
|
+
}
|
|
9872
|
+
function parseUrlRedirect(trimmed, expectedState) {
|
|
9873
|
+
var _url_searchParams_get;
|
|
9874
|
+
var url = parseRedirectUrlOrThrow(trimmed);
|
|
9875
|
+
var code = url.searchParams.get('code');
|
|
9876
|
+
if (!code) {
|
|
9877
|
+
throwForUrlMissingCode(url);
|
|
9878
|
+
}
|
|
9879
|
+
var state = (_url_searchParams_get = url.searchParams.get('state')) !== null && _url_searchParams_get !== void 0 ? _url_searchParams_get : undefined;
|
|
9880
|
+
if (expectedState && state !== expectedState) {
|
|
9881
|
+
throw new OidcRelyingPartyError({
|
|
9882
|
+
message: 'OAuth state mismatch — possible CSRF or stale flow.',
|
|
9883
|
+
code: 'INVALID_STATE'
|
|
9884
|
+
});
|
|
9885
|
+
}
|
|
9886
|
+
return {
|
|
9887
|
+
code: code,
|
|
9888
|
+
state: state
|
|
9889
|
+
};
|
|
9890
|
+
}
|
|
9891
|
+
|
|
9313
9892
|
function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9314
9893
|
try {
|
|
9315
9894
|
var info = gen[key](arg);
|
|
@@ -25627,6 +26206,7 @@ exports.DEFAULT_LAT_LNG_STRING_VALUE = DEFAULT_LAT_LNG_STRING_VALUE;
|
|
|
25627
26206
|
exports.DEFAULT_NAME_TO_INITIALS_MAX_INITIALS = DEFAULT_NAME_TO_INITIALS_MAX_INITIALS;
|
|
25628
26207
|
exports.DEFAULT_NAME_TO_INITIALS_MIN_INITIALS = DEFAULT_NAME_TO_INITIALS_MIN_INITIALS;
|
|
25629
26208
|
exports.DEFAULT_NUMBER_STRING_DENCODER_64_NEGATIVE_PREFIX = DEFAULT_NUMBER_STRING_DENCODER_64_NEGATIVE_PREFIX;
|
|
26209
|
+
exports.DEFAULT_OIDC_RELYING_PARTY_SCOPE = DEFAULT_OIDC_RELYING_PARTY_SCOPE;
|
|
25630
26210
|
exports.DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG = DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG;
|
|
25631
26211
|
exports.DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG = DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG;
|
|
25632
26212
|
exports.DEFAULT_READABLE_ERROR_CODE = DEFAULT_READABLE_ERROR_CODE;
|
|
@@ -25664,6 +26244,7 @@ exports.HTTP_OR_HTTPS_REGEX = HTTP_OR_HTTPS_REGEX;
|
|
|
25664
26244
|
exports.HashSet = HashSet;
|
|
25665
26245
|
exports.IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD = IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD;
|
|
25666
26246
|
exports.IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD = IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD;
|
|
26247
|
+
exports.IMPERSONATION_URL_QUERY_PARAM = IMPERSONATION_URL_QUERY_PARAM;
|
|
25667
26248
|
exports.ISO8601_DAY_STRING_REGEX = ISO8601_DAY_STRING_REGEX;
|
|
25668
26249
|
exports.ISO8601_DAY_STRING_START_REGEX = ISO8601_DAY_STRING_START_REGEX;
|
|
25669
26250
|
exports.ISO_8601_DATE_STRING_REGEX = ISO_8601_DATE_STRING_REGEX;
|
|
@@ -25707,6 +26288,7 @@ exports.NOOP_MODIFIER = NOOP_MODIFIER;
|
|
|
25707
26288
|
exports.NUMBER_STRING_DENCODER_64 = NUMBER_STRING_DENCODER_64;
|
|
25708
26289
|
exports.NUMBER_STRING_DENCODER_64_DIGITS = NUMBER_STRING_DENCODER_64_DIGITS;
|
|
25709
26290
|
exports.OAUTH_OOB_REDIRECT_URI = OAUTH_OOB_REDIRECT_URI;
|
|
26291
|
+
exports.OidcRelyingPartyError = OidcRelyingPartyError;
|
|
25710
26292
|
exports.PDF_ENCRYPT_MARKER = PDF_ENCRYPT_MARKER;
|
|
25711
26293
|
exports.PDF_EOF_MARKER = PDF_EOF_MARKER;
|
|
25712
26294
|
exports.PDF_HEADER = PDF_HEADER;
|
|
@@ -25837,7 +26419,9 @@ exports.boundToRectangle = boundToRectangle;
|
|
|
25837
26419
|
exports.breadthFirstExploreTreeTraversalFactoryFunction = breadthFirstExploreTreeTraversalFactoryFunction;
|
|
25838
26420
|
exports.bufferHasValidPdfMarkings = bufferHasValidPdfMarkings;
|
|
25839
26421
|
exports.build = build;
|
|
26422
|
+
exports.buildAuthorizationUrl = buildAuthorizationUrl;
|
|
25840
26423
|
exports.buildCanonicalFilename = buildCanonicalFilename;
|
|
26424
|
+
exports.buildOidcDiscoveryCandidates = buildOidcDiscoveryCandidates;
|
|
25841
26425
|
exports.cachedGetter = cachedGetter;
|
|
25842
26426
|
exports.calculateExpirationDate = calculateExpirationDate;
|
|
25843
26427
|
exports.camelOrPascalToScreamingSnake = camelOrPascalToScreamingSnake;
|
|
@@ -26024,8 +26608,10 @@ exports.forEachWithArray = forEachWithArray;
|
|
|
26024
26608
|
exports.forwardFunction = forwardFunction;
|
|
26025
26609
|
exports.fractionalHoursToMinutes = fractionalHoursToMinutes;
|
|
26026
26610
|
exports.generateIfDoesNotExist = generateIfDoesNotExist;
|
|
26611
|
+
exports.generateOAuthState = generateOAuthState;
|
|
26027
26612
|
exports.generatePkceCodeChallenge = generatePkceCodeChallenge;
|
|
26028
26613
|
exports.generatePkceCodeVerifier = generatePkceCodeVerifier;
|
|
26614
|
+
exports.generatePkceMaterial = generatePkceMaterial;
|
|
26029
26615
|
exports.getArrayNextIndex = getArrayNextIndex;
|
|
26030
26616
|
exports.getBaseLog = getBaseLog;
|
|
26031
26617
|
exports.getDayOffset = getDayOffset;
|
|
@@ -26332,6 +26918,7 @@ exports.overrideInObject = overrideInObject;
|
|
|
26332
26918
|
exports.overrideInObjectFunctionFactory = overrideInObjectFunctionFactory;
|
|
26333
26919
|
exports.padStartFunction = padStartFunction;
|
|
26334
26920
|
exports.pairGroupValues = pairGroupValues;
|
|
26921
|
+
exports.parseAuthorizationRedirect = parseAuthorizationRedirect;
|
|
26335
26922
|
exports.parseISO8601DayStringToUTCDate = parseISO8601DayStringToUTCDate;
|
|
26336
26923
|
exports.partialServerError = partialServerError;
|
|
26337
26924
|
exports.passThrough = MAP_IDENTITY;
|
|
@@ -26560,6 +27147,7 @@ exports.transformStringFunction = transformStringFunction;
|
|
|
26560
27147
|
exports.transformStringFunctionConfig = transformStringFunctionConfig;
|
|
26561
27148
|
exports.transformStrings = transformStrings;
|
|
26562
27149
|
exports.trimArray = trimArray;
|
|
27150
|
+
exports.trimSlash = trimSlash;
|
|
26563
27151
|
exports.trueOrFalseString = trueOrFalseString;
|
|
26564
27152
|
exports.tryConvertToE164PhoneNumber = tryConvertToE164PhoneNumber;
|
|
26565
27153
|
exports.tryWithPromiseFactoriesFunction = tryWithPromiseFactoriesFunction;
|